diff --git a/dist/changelog.md b/dist/changelog.md index 23d933df..24df4c34 100644 --- a/dist/changelog.md +++ b/dist/changelog.md @@ -1,3 +1,6 @@ +#### 3.2.16 +* added `Accept-Language: en-US` to all requests + #### 3.2.15 * temporary fix for scorecard columns filtering when axis contains children diff --git a/dist/index.html b/dist/index.html index e3a62ac1..5c535d78 100644 --- a/dist/index.html +++ b/dist/index.html @@ -31,6 +31,6 @@ - + \ No newline at end of file diff --git a/dist/main.4290a5b714206a15.js b/dist/main.4290a5b714206a15.js deleted file mode 100644 index 4a492c1f..00000000 --- a/dist/main.4290a5b714206a15.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkDeepSeeWeb=self.webpackChunkDeepSeeWeb||[]).push([[179],{4492:(Jt,$t,ht)=>{"use strict";ht.d($t,{b:()=>Io});var pt=ht(1481),t=ht(1571),Y=ht(4411),q=ht(4470),O=ht(1444),W=ht(1332),G=ht(8297),Z=ht(1135);class ${constructor(){this.visible$=new Z.X(!1),this.onSearch=new Z.X(""),this.onSearchReset=new t.EventEmitter,this.shareDashboardEmitter=new t.EventEmitter,this.gotoZenDeepSeeEmitter=new t.EventEmitter,this.mobileFilterToggle=new t.EventEmitter,this.mobileFilterDialogToggle=new t.EventEmitter}resetSearch(){this.onSearchReset.emit()}shareDashboard(){this.shareDashboardEmitter.emit()}gotoZenDeepSee(){this.gotoZenDeepSeeEmitter.emit()}showMobileFilterButton(){this.mobileFilterToggle.emit(!0)}hideMobileFilterButton(){this.mobileFilterToggle.emit(!1)}toggleMobileFilterDialog(){this.mobileFilterDialogToggle.emit()}}$.\u0275fac=function(s){return new(s||$)},$.\u0275prov=t.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"});var U=ht(5613),V=ht(1188),R=ht(6895),P=ht(2076),k=ht(9751),E=ht(4742),w=ht(8421),T=ht(3269),y=ht(5403),A=ht(3268),g=ht(1810);var S=ht(4004);class N{constructor(s,c){this._renderer=s,this._elementRef=c,this.onChange=Q=>{},this.onTouched=()=>{}}setProperty(s,c){this._renderer.setProperty(this._elementRef.nativeElement,s,c)}registerOnTouched(s){this.onTouched=s}registerOnChange(s){this.onChange=s}setDisabledState(s){this.setProperty("disabled",s)}}N.\u0275fac=function(s){return new(s||N)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef))},N.\u0275dir=t.\u0275\u0275defineDirective({type:N});class j extends N{}j.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(j)))(c||j)}}(),j.\u0275dir=t.\u0275\u0275defineDirective({type:j,features:[t.\u0275\u0275InheritDefinitionFeature]});const M=new t.InjectionToken("NgValueAccessor"),D={provide:M,useExisting:(0,t.forwardRef)(()=>I),multi:!0};class I extends j{writeValue(s){this.setProperty("checked",s)}}I.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(I)))(c||I)}}(),I.\u0275dir=t.\u0275\u0275defineDirective({type:I,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("change",function(dt){return c.onChange(dt.target.checked)})("blur",function(){return c.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([D]),t.\u0275\u0275InheritDefinitionFeature]});const b={provide:M,useExisting:(0,t.forwardRef)(()=>a),multi:!0};const u=new t.InjectionToken("CompositionEventMode");class a extends N{constructor(s,c,Q){super(s,c),this._compositionMode=Q,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function d(){const lt=(0,R.\u0275getDOM)()?(0,R.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(lt.toLowerCase())}())}writeValue(s){const c=s??"";this.setProperty("value",c)}_handleInput(s){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(s)}_compositionStart(){this._composing=!0}_compositionEnd(s){this._composing=!1,this._compositionMode&&this.onChange(s)}}a.\u0275fac=function(s){return new(s||a)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(u,8))},a.\u0275dir=t.\u0275\u0275defineDirective({type:a,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(s,c){1&s&&t.\u0275\u0275listener("input",function(dt){return c._handleInput(dt.target.value)})("blur",function(){return c.onTouched()})("compositionstart",function(){return c._compositionStart()})("compositionend",function(dt){return c._compositionEnd(dt.target.value)})},features:[t.\u0275\u0275ProvidersFeature([b]),t.\u0275\u0275InheritDefinitionFeature]});function o(lt){return null==lt||("string"==typeof lt||Array.isArray(lt))&&0===lt.length}function m(lt){return null!=lt&&"number"==typeof lt.length}const _=new t.InjectionToken("NgValidators"),B=new t.InjectionToken("NgAsyncValidators"),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])?)*$/;function rt(lt){return s=>{if(o(s.value)||o(lt))return null;const c=parseFloat(s.value);return!isNaN(c)&&c{if(o(s.value)||o(lt))return null;const c=parseFloat(s.value);return!isNaN(c)&&c>lt?{max:{max:lt,actual:s.value}}:null}}function z(lt){return o(lt.value)?{required:!0}:null}function et(lt){return!0===lt.value?null:{required:!0}}function at(lt){return o(lt.value)||X.test(lt.value)?null:{email:!0}}function st(lt){return s=>o(s.value)||!m(s.value)?null:s.value.lengthm(s.value)&&s.value.length>lt?{maxlength:{requiredLength:lt,actualLength:s.value.length}}:null}function ot(lt){if(!lt)return nt;let s,c;return"string"==typeof lt?(c="","^"!==lt.charAt(0)&&(c+="^"),c+=lt,"$"!==lt.charAt(lt.length-1)&&(c+="$"),s=new RegExp(c)):(c=lt.toString(),s=lt),Q=>{if(o(Q.value))return null;const dt=Q.value;return s.test(dt)?null:{pattern:{requiredPattern:c,actualValue:dt}}}}function nt(lt){return null}function yt(lt){return null!=lt}function gt(lt){const s=(0,t.\u0275isPromise)(lt)?(0,P.D)(lt):lt;return s}function mt(lt){let s={};return lt.forEach(c=>{s=null!=c?{...s,...c}:s}),0===Object.keys(s).length?null:s}function St(lt,s){return s.map(c=>c(lt))}function Mt(lt){return lt.map(s=>function wt(lt){return!lt.validate}(s)?s:c=>s.validate(c))}function Dt(lt){if(!lt)return null;const s=lt.filter(yt);return 0==s.length?null:function(c){return mt(St(c,s))}}function Pt(lt){return null!=lt?Dt(Mt(lt)):null}function Ft(lt){if(!lt)return null;const s=lt.filter(yt);return 0==s.length?null:function(c){return function v(...lt){const s=(0,T.jO)(lt),{args:c,keys:Q}=(0,E.D)(lt),dt=new k.y(It=>{const{length:Kt}=c;if(!Kt)return void It.complete();const le=new Array(Kt);let xe=Kt,Me=Kt;for(let oi=0;oi{hi||(hi=!0,Me--),le[oi]=Li},()=>xe--,void 0,()=>{(!xe||!hi)&&(Me||It.next(Q?(0,g.n)(Q,le):le),It.complete())}))}});return s?dt.pipe((0,A.Z)(s)):dt}(St(c,s).map(gt)).pipe((0,S.U)(mt))}}function jt(lt){return null!=lt?Ft(Mt(lt)):null}function Wt(lt,s){return null===lt?[s]:Array.isArray(lt)?[...lt,s]:[lt,s]}function bt(lt){return lt._rawValidators}function _t(lt){return lt._rawAsyncValidators}function xt(lt){return lt?Array.isArray(lt)?lt:[lt]:[]}function ft(lt,s){return Array.isArray(lt)?lt.includes(s):lt===s}function Ct(lt,s){const c=xt(s);return xt(lt).forEach(dt=>{ft(c,dt)||c.push(dt)}),c}function Ot(lt,s){return xt(s).filter(c=>!ft(lt,c))}class Rt{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(s){this._rawValidators=s||[],this._composedValidatorFn=Pt(this._rawValidators)}_setAsyncValidators(s){this._rawAsyncValidators=s||[],this._composedAsyncValidatorFn=jt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(s){this._onDestroyCallbacks.push(s)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(s=>s()),this._onDestroyCallbacks=[]}reset(s){this.control&&this.control.reset(s)}hasError(s,c){return!!this.control&&this.control.hasError(s,c)}getError(s,c){return this.control?this.control.getError(s,c):null}}class Zt extends Rt{get formDirective(){return null}get path(){return null}}class he extends Rt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ie{constructor(s){this._cd=s}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}}class He extends Ie{constructor(s){super(s)}}He.\u0275fac=function(s){return new(s||He)(t.\u0275\u0275directiveInject(he,2))},He.\u0275dir=t.\u0275\u0275defineDirective({type:He,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(s,c){2&s&&t.\u0275\u0275classProp("ng-untouched",c.isUntouched)("ng-touched",c.isTouched)("ng-pristine",c.isPristine)("ng-dirty",c.isDirty)("ng-valid",c.isValid)("ng-invalid",c.isInvalid)("ng-pending",c.isPending)},features:[t.\u0275\u0275InheritDefinitionFeature]});class ze extends Ie{constructor(s){super(s)}}ze.\u0275fac=function(s){return new(s||ze)(t.\u0275\u0275directiveInject(Zt,10))},ze.\u0275dir=t.\u0275\u0275defineDirective({type:ze,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(s,c){2&s&&t.\u0275\u0275classProp("ng-untouched",c.isUntouched)("ng-touched",c.isTouched)("ng-pristine",c.isPristine)("ng-dirty",c.isDirty)("ng-valid",c.isValid)("ng-invalid",c.isInvalid)("ng-pending",c.isPending)("ng-submitted",c.isSubmitted)},features:[t.\u0275\u0275InheritDefinitionFeature]});const si="VALID",ce="INVALID",Ee="PENDING",Ke="DISABLED";function di(lt){return(zn(lt)?lt.validators:lt)||null}function Hi(lt,s){return(zn(s)?s.asyncValidators:lt)||null}function zn(lt){return null!=lt&&!Array.isArray(lt)&&"object"==typeof lt}function Ji(lt,s,c){const Q=lt.controls;if(!(s?Object.keys(Q):Q).length)throw new t.\u0275RuntimeError(1e3,"");if(!Q[c])throw new t.\u0275RuntimeError(1001,"")}function lr(lt,s,c){lt._forEachChild((Q,dt)=>{if(void 0===c[dt])throw new t.\u0275RuntimeError(1002,"")})}class Or{constructor(s,c){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(s),this._assignAsyncValidators(c)}get validator(){return this._composedValidatorFn}set validator(s){this._rawValidators=this._composedValidatorFn=s}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(s){this._rawAsyncValidators=this._composedAsyncValidatorFn=s}get parent(){return this._parent}get valid(){return this.status===si}get invalid(){return this.status===ce}get pending(){return this.status==Ee}get disabled(){return this.status===Ke}get enabled(){return this.status!==Ke}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(s){this._assignValidators(s)}setAsyncValidators(s){this._assignAsyncValidators(s)}addValidators(s){this.setValidators(Ct(s,this._rawValidators))}addAsyncValidators(s){this.setAsyncValidators(Ct(s,this._rawAsyncValidators))}removeValidators(s){this.setValidators(Ot(s,this._rawValidators))}removeAsyncValidators(s){this.setAsyncValidators(Ot(s,this._rawAsyncValidators))}hasValidator(s){return ft(this._rawValidators,s)}hasAsyncValidator(s){return ft(this._rawAsyncValidators,s)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(s={}){this.touched=!0,this._parent&&!s.onlySelf&&this._parent.markAsTouched(s)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(s=>s.markAllAsTouched())}markAsUntouched(s={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(c=>{c.markAsUntouched({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}markAsDirty(s={}){this.pristine=!1,this._parent&&!s.onlySelf&&this._parent.markAsDirty(s)}markAsPristine(s={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(c=>{c.markAsPristine({onlySelf:!0})}),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}markAsPending(s={}){this.status=Ee,!1!==s.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!s.onlySelf&&this._parent.markAsPending(s)}disable(s={}){const c=this._parentMarkedDirty(s.onlySelf);this.status=Ke,this.errors=null,this._forEachChild(Q=>{Q.disable({...s,onlySelf:!0})}),this._updateValue(),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...s,skipPristineCheck:c}),this._onDisabledChange.forEach(Q=>Q(!0))}enable(s={}){const c=this._parentMarkedDirty(s.onlySelf);this.status=si,this._forEachChild(Q=>{Q.enable({...s,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent}),this._updateAncestors({...s,skipPristineCheck:c}),this._onDisabledChange.forEach(Q=>Q(!1))}_updateAncestors(s){this._parent&&!s.onlySelf&&(this._parent.updateValueAndValidity(s),s.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(s){this._parent=s}getRawValue(){return this.value}updateValueAndValidity(s={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===si||this.status===Ee)&&this._runAsyncValidator(s.emitEvent)),!1!==s.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!s.onlySelf&&this._parent.updateValueAndValidity(s)}_updateTreeValidity(s={emitEvent:!0}){this._forEachChild(c=>c._updateTreeValidity(s)),this.updateValueAndValidity({onlySelf:!0,emitEvent:s.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ke:si}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(s){if(this.asyncValidator){this.status=Ee,this._hasOwnPendingAsyncValidator=!0;const c=gt(this.asyncValidator(this));this._asyncValidationSubscription=c.subscribe(Q=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Q,{emitEvent:s})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(s,c={}){this.errors=s,this._updateControlsErrors(!1!==c.emitEvent)}get(s){let c=s;return null==c||(Array.isArray(c)||(c=c.split(".")),0===c.length)?null:c.reduce((Q,dt)=>Q&&Q._find(dt),this)}getError(s,c){const Q=c?this.get(c):this;return Q&&Q.errors?Q.errors[s]:null}hasError(s,c){return!!this.getError(s,c)}get root(){let s=this;for(;s._parent;)s=s._parent;return s}_updateControlsErrors(s){this.status=this._calculateStatus(),s&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(s)}_initObservables(){this.valueChanges=new t.EventEmitter,this.statusChanges=new t.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Ke:this.errors?ce:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ee)?Ee:this._anyControlsHaveStatus(ce)?ce:si}_anyControlsHaveStatus(s){return this._anyControls(c=>c.status===s)}_anyControlsDirty(){return this._anyControls(s=>s.dirty)}_anyControlsTouched(){return this._anyControls(s=>s.touched)}_updatePristine(s={}){this.pristine=!this._anyControlsDirty(),this._parent&&!s.onlySelf&&this._parent._updatePristine(s)}_updateTouched(s={}){this.touched=this._anyControlsTouched(),this._parent&&!s.onlySelf&&this._parent._updateTouched(s)}_registerOnCollectionChange(s){this._onCollectionChange=s}_setUpdateStrategy(s){zn(s)&&null!=s.updateOn&&(this._updateOn=s.updateOn)}_parentMarkedDirty(s){const c=this._parent&&this._parent.dirty;return!s&&!!c&&!this._parent._anyControlsDirty()}_find(s){return null}_assignValidators(s){this._rawValidators=Array.isArray(s)?s.slice():s,this._composedValidatorFn=function Fi(lt){return Array.isArray(lt)?Pt(lt):lt||null}(this._rawValidators)}_assignAsyncValidators(s){this._rawAsyncValidators=Array.isArray(s)?s.slice():s,this._composedAsyncValidatorFn=function Dn(lt){return Array.isArray(lt)?jt(lt):lt||null}(this._rawAsyncValidators)}}class Jn extends Or{constructor(s,c,Q){super(di(c),Hi(Q,c)),this.controls=s,this._initObservables(),this._setUpdateStrategy(c),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(s,c){return this.controls[s]?this.controls[s]:(this.controls[s]=c,c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange),c)}addControl(s,c,Q={}){this.registerControl(s,c),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}removeControl(s,c={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}setControl(s,c,Q={}){this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),delete this.controls[s],c&&this.registerControl(s,c),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}contains(s){return this.controls.hasOwnProperty(s)&&this.controls[s].enabled}setValue(s,c={}){lr(this,0,s),Object.keys(s).forEach(Q=>{Ji(this,!0,Q),this.controls[Q].setValue(s[Q],{onlySelf:!0,emitEvent:c.emitEvent})}),this.updateValueAndValidity(c)}patchValue(s,c={}){null!=s&&(Object.keys(s).forEach(Q=>{const dt=this.controls[Q];dt&&dt.patchValue(s[Q],{onlySelf:!0,emitEvent:c.emitEvent})}),this.updateValueAndValidity(c))}reset(s={},c={}){this._forEachChild((Q,dt)=>{Q.reset(s[dt],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}getRawValue(){return this._reduceChildren({},(s,c,Q)=>(s[Q]=c.getRawValue(),s))}_syncPendingControls(){let s=this._reduceChildren(!1,(c,Q)=>!!Q._syncPendingControls()||c);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){Object.keys(this.controls).forEach(c=>{const Q=this.controls[c];Q&&s(Q,c)})}_setUpControls(){this._forEachChild(s=>{s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(s){for(const[c,Q]of Object.entries(this.controls))if(this.contains(c)&&s(Q))return!0;return!1}_reduceValue(){return this._reduceChildren({},(c,Q,dt)=>((Q.enabled||this.disabled)&&(c[dt]=Q.value),c))}_reduceChildren(s,c){let Q=s;return this._forEachChild((dt,It)=>{Q=c(Q,dt,It)}),Q}_allControlsDisabled(){for(const s of Object.keys(this.controls))if(this.controls[s].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(s){return this.controls.hasOwnProperty(s)?this.controls[s]:null}}class te extends Jn{}const me=new t.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>ge}),ge="always";function De(lt,s){return[...s.path,lt]}function Pe(lt,s,c=ge){ri(lt,s),s.valueAccessor.writeValue(lt.value),(lt.disabled||"always"===c)&&s.valueAccessor.setDisabledState?.(lt.disabled),function gi(lt,s){s.valueAccessor.registerOnChange(c=>{lt._pendingValue=c,lt._pendingChange=!0,lt._pendingDirty=!0,"change"===lt.updateOn&&ci(lt,s)})}(lt,s),function li(lt,s){const c=(Q,dt)=>{s.valueAccessor.writeValue(Q),dt&&s.viewToModelUpdate(Q)};lt.registerOnChange(c),s._registerOnDestroy(()=>{lt._unregisterOnChange(c)})}(lt,s),function Ye(lt,s){s.valueAccessor.registerOnTouched(()=>{lt._pendingTouched=!0,"blur"===lt.updateOn&<._pendingChange&&ci(lt,s),"submit"!==lt.updateOn&<.markAsTouched()})}(lt,s),function Ze(lt,s){if(s.valueAccessor.setDisabledState){const c=Q=>{s.valueAccessor.setDisabledState(Q)};lt.registerOnDisabledChange(c),s._registerOnDestroy(()=>{lt._unregisterOnDisabledChange(c)})}}(lt,s)}function Ae(lt,s,c=!0){const Q=()=>{};s.valueAccessor&&(s.valueAccessor.registerOnChange(Q),s.valueAccessor.registerOnTouched(Q)),Qe(lt,s),lt&&(s._invokeOnDestroyCallbacks(),lt._registerOnCollectionChange(()=>{}))}function Fe(lt,s){lt.forEach(c=>{c.registerOnValidatorChange&&c.registerOnValidatorChange(s)})}function ri(lt,s){const c=bt(lt);null!==s.validator?lt.setValidators(Wt(c,s.validator)):"function"==typeof c&<.setValidators([c]);const Q=_t(lt);null!==s.asyncValidator?lt.setAsyncValidators(Wt(Q,s.asyncValidator)):"function"==typeof Q&<.setAsyncValidators([Q]);const dt=()=>lt.updateValueAndValidity();Fe(s._rawValidators,dt),Fe(s._rawAsyncValidators,dt)}function Qe(lt,s){let c=!1;if(null!==lt){if(null!==s.validator){const dt=bt(lt);if(Array.isArray(dt)&&dt.length>0){const It=dt.filter(Kt=>Kt!==s.validator);It.length!==dt.length&&(c=!0,lt.setValidators(It))}}if(null!==s.asyncValidator){const dt=_t(lt);if(Array.isArray(dt)&&dt.length>0){const It=dt.filter(Kt=>Kt!==s.asyncValidator);It.length!==dt.length&&(c=!0,lt.setAsyncValidators(It))}}}const Q=()=>{};return Fe(s._rawValidators,Q),Fe(s._rawAsyncValidators,Q),c}function ci(lt,s){lt._pendingDirty&<.markAsDirty(),lt.setValue(lt._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(lt._pendingValue),lt._pendingChange=!1}function ai(lt,s){ri(lt,s)}function ve(lt,s){if(!lt.hasOwnProperty("model"))return!1;const c=lt.model;return!!c.isFirstChange()||!Object.is(s,c.currentValue)}function ti(lt,s){lt._syncPendingControls(),s.forEach(c=>{const Q=c.control;"submit"===Q.updateOn&&Q._pendingChange&&(c.viewToModelUpdate(Q._pendingValue),Q._pendingChange=!1)})}function mi(lt,s){if(!s)return null;let c,Q,dt;return Array.isArray(s),s.forEach(It=>{It.constructor===a?c=It:function qe(lt){return Object.getPrototypeOf(lt.constructor)===j}(It)?Q=It:dt=It}),dt||Q||c||null}const fn={provide:Zt,useExisting:(0,t.forwardRef)(()=>Ti)},tn=Promise.resolve();class Ti extends Zt{constructor(s,c,Q){super(),this.callSetDisabledState=Q,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.EventEmitter,this.form=new Jn({},Pt(s),jt(c))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(s){tn.then(()=>{const c=this._findContainer(s.path);s.control=c.registerControl(s.name,s.control),Pe(s.control,s,this.callSetDisabledState),s.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(s)})}getControl(s){return this.form.get(s.path)}removeControl(s){tn.then(()=>{const c=this._findContainer(s.path);c&&c.removeControl(s.name),this._directives.delete(s)})}addFormGroup(s){tn.then(()=>{const c=this._findContainer(s.path),Q=new Jn({});ai(Q,s),c.registerControl(s.name,Q),Q.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(s){tn.then(()=>{const c=this._findContainer(s.path);c&&c.removeControl(s.name)})}getFormGroup(s){return this.form.get(s.path)}updateModel(s,c){tn.then(()=>{this.form.get(s.path).setValue(c)})}setValue(s){this.control.setValue(s)}onSubmit(s){return this.submitted=!0,ti(this.form,this._directives),this.ngSubmit.emit(s),"dialog"===s?.target?.method}onReset(){this.resetForm()}resetForm(s){this.form.reset(s),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(s){return s.pop(),s.length?this.form.get(s):this.form}}function nn(lt,s){const c=lt.indexOf(s);c>-1&<.splice(c,1)}function Yi(lt){return"object"==typeof lt&&null!==lt&&2===Object.keys(lt).length&&"value"in lt&&"disabled"in lt}Ti.\u0275fac=function(s){return new(s||Ti)(t.\u0275\u0275directiveInject(_,10),t.\u0275\u0275directiveInject(B,10),t.\u0275\u0275directiveInject(me,8))},Ti.\u0275dir=t.\u0275\u0275defineDirective({type:Ti,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("submit",function(dt){return c.onSubmit(dt)})("reset",function(){return c.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([fn]),t.\u0275\u0275InheritDefinitionFeature]});const Xi=class extends Or{constructor(s=null,c,Q){super(di(c),Hi(Q,c)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(s),this._setUpdateStrategy(c),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zn(c)&&(c.nonNullable||c.initialValueIsDefault)&&(Yi(s)?this.defaultValue=s.value:this.defaultValue=s)}setValue(s,c={}){this.value=this._pendingValue=s,this._onChange.length&&!1!==c.emitModelToViewChange&&this._onChange.forEach(Q=>Q(this.value,!1!==c.emitViewToModelChange)),this.updateValueAndValidity(c)}patchValue(s,c={}){this.setValue(s,c)}reset(s=this.defaultValue,c={}){this._applyFormState(s),this.markAsPristine(c),this.markAsUntouched(c),this.setValue(this.value,c),this._pendingChange=!1}_updateValue(){}_anyControls(s){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(s){this._onChange.push(s)}_unregisterOnChange(s){nn(this._onChange,s)}registerOnDisabledChange(s){this._onDisabledChange.push(s)}_unregisterOnDisabledChange(s){nn(this._onDisabledChange,s)}_forEachChild(s){}_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(s){Yi(s)?(this.value=this._pendingValue=s.value,s.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=s}};class Ci extends Zt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return De(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}Ci.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Ci)))(c||Ci)}}(),Ci.\u0275dir=t.\u0275\u0275defineDirective({type:Ci,features:[t.\u0275\u0275InheritDefinitionFeature]});const $r={provide:Zt,useExisting:(0,t.forwardRef)(()=>Ln)};class Ln extends Ci{constructor(s,c,Q){super(),this._parent=s,this._setValidators(c),this._setAsyncValidators(Q)}_checkParentType(){!(this._parent instanceof Ln)&&this._parent}}Ln.\u0275fac=function(s){return new(s||Ln)(t.\u0275\u0275directiveInject(Zt,5),t.\u0275\u0275directiveInject(_,10),t.\u0275\u0275directiveInject(B,10))},Ln.\u0275dir=t.\u0275\u0275defineDirective({type:Ln,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[t.\u0275\u0275ProvidersFeature([$r]),t.\u0275\u0275InheritDefinitionFeature]});const je={provide:he,useExisting:(0,t.forwardRef)(()=>gn)},ee=Promise.resolve();class gn extends he{constructor(s,c,Q,dt,It,Kt){super(),this._changeDetectorRef=It,this.callSetDisabledState=Kt,this.control=new Xi,this._registered=!1,this.update=new t.EventEmitter,this._parent=s,this._setValidators(c),this._setAsyncValidators(Q),this.valueAccessor=mi(0,dt)}ngOnChanges(s){if(this._checkForErrors(),!this._registered||"name"in s){if(this._registered&&(this._checkName(),this.formDirective)){const c=s.name.previousValue;this.formDirective.removeControl({name:c,path:this._getPath(c)})}this._setUpControl()}"isDisabled"in s&&this._updateDisabled(s),ve(s,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(s){this.viewModel=s,this.update.emit(s)}_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(){Pe(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()&&this.name}_updateValue(s){ee.then(()=>{this.control.setValue(s,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(s){const c=s.isDisabled.currentValue,Q=0!==c&&(0,t.\u0275coerceToBoolean)(c);ee.then(()=>{Q&&!this.control.disabled?this.control.disable():!Q&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(s){return this._parent?De(s,this._parent):[s]}}gn.\u0275fac=function(s){return new(s||gn)(t.\u0275\u0275directiveInject(Zt,9),t.\u0275\u0275directiveInject(_,10),t.\u0275\u0275directiveInject(B,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(t.ChangeDetectorRef,8),t.\u0275\u0275directiveInject(me,8))},gn.\u0275dir=t.\u0275\u0275defineDirective({type:gn,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.\u0275\u0275ProvidersFeature([je]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]});class xr{}xr.\u0275fac=function(s){return new(s||xr)},xr.\u0275dir=t.\u0275\u0275defineDirective({type:xr,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});const pr={provide:M,useExisting:(0,t.forwardRef)(()=>Er),multi:!0};class Er extends j{writeValue(s){const c=s??"";this.setProperty("value",c)}registerOnChange(s){this.onChange=c=>{s(""==c?null:parseFloat(c))}}}Er.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Er)))(c||Er)}}(),Er.\u0275dir=t.\u0275\u0275defineDirective({type:Er,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("input",function(dt){return c.onChange(dt.target.value)})("blur",function(){return c.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([pr]),t.\u0275\u0275InheritDefinitionFeature]});const xs={provide:M,useExisting:(0,t.forwardRef)(()=>Sr),multi:!0};class cr{}cr.\u0275fac=function(s){return new(s||cr)},cr.\u0275mod=t.\u0275\u0275defineNgModule({type:cr}),cr.\u0275inj=t.\u0275\u0275defineInjector({});class Kr{constructor(){this._accessors=[]}add(s,c){this._accessors.push([s,c])}remove(s){for(let c=this._accessors.length-1;c>=0;--c)if(this._accessors[c][1]===s)return void this._accessors.splice(c,1)}select(s){this._accessors.forEach(c=>{this._isSameGroup(c,s)&&c[1]!==s&&c[1].fireUncheck(s.value)})}_isSameGroup(s,c){return!!s[0].control&&(s[0]._parent===c._control._parent&&s[1].name===c.name)}}Kr.\u0275fac=function(s){return new(s||Kr)},Kr.\u0275prov=t.\u0275\u0275defineInjectable({token:Kr,factory:Kr.\u0275fac,providedIn:cr});class Sr extends j{constructor(s,c,Q,dt){super(s,c),this._registry=Q,this._injector=dt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(he),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(s){this._state=s===this.value,this.setProperty("checked",this._state)}registerOnChange(s){this._fn=s,this.onChange=()=>{s(this.value),this._registry.select(this)}}fireUncheck(s){this.writeValue(s)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}Sr.\u0275fac=function(s){return new(s||Sr)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Kr),t.\u0275\u0275directiveInject(t.Injector))},Sr.\u0275dir=t.\u0275\u0275defineDirective({type:Sr,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("change",function(){return c.onChange()})("blur",function(){return c.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t.\u0275\u0275ProvidersFeature([xs]),t.\u0275\u0275InheritDefinitionFeature]});const la={provide:M,useExisting:(0,t.forwardRef)(()=>is),multi:!0};class is extends j{writeValue(s){this.setProperty("value",parseFloat(s))}registerOnChange(s){this.onChange=c=>{s(""==c?null:parseFloat(c))}}}is.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(is)))(c||is)}}(),is.\u0275dir=t.\u0275\u0275defineDirective({type:is,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("change",function(dt){return c.onChange(dt.target.value)})("input",function(dt){return c.onChange(dt.target.value)})("blur",function(){return c.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([la]),t.\u0275\u0275InheritDefinitionFeature]});const fr=new t.InjectionToken("NgModelWithFormControlWarning"),Hh={provide:he,useExisting:(0,t.forwardRef)(()=>gr)};class gr extends he{set isDisabled(s){}constructor(s,c,Q,dt,It){super(),this._ngModelWarningConfig=dt,this.callSetDisabledState=It,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(s),this._setAsyncValidators(c),this.valueAccessor=mi(0,Q)}ngOnChanges(s){if(this._isControlChanged(s)){const c=s.form.previousValue;c&&Ae(c,this,!1),Pe(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ve(s,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ae(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(s){this.viewModel=s,this.update.emit(s)}_isControlChanged(s){return s.hasOwnProperty("form")}}gr._ngModelWarningSentOnce=!1,gr.\u0275fac=function(s){return new(s||gr)(t.\u0275\u0275directiveInject(_,10),t.\u0275\u0275directiveInject(B,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(fr,8),t.\u0275\u0275directiveInject(me,8))},gr.\u0275dir=t.\u0275\u0275defineDirective({type:gr,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([Hh]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]});const Oa={provide:Zt,useExisting:(0,t.forwardRef)(()=>Cs)};class Cs extends Zt{constructor(s,c,Q){super(),this.callSetDisabledState=Q,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.EventEmitter,this._setValidators(s),this._setAsyncValidators(c)}ngOnChanges(s){this._checkFormPresent(),s.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(s){const c=this.form.get(s.path);return Pe(c,s,this.callSetDisabledState),c.updateValueAndValidity({emitEvent:!1}),this.directives.push(s),c}getControl(s){return this.form.get(s.path)}removeControl(s){Ae(s.control||null,s,!1),function Mi(lt,s){const c=lt.indexOf(s);c>-1&<.splice(c,1)}(this.directives,s)}addFormGroup(s){this._setUpFormContainer(s)}removeFormGroup(s){this._cleanUpFormContainer(s)}getFormGroup(s){return this.form.get(s.path)}addFormArray(s){this._setUpFormContainer(s)}removeFormArray(s){this._cleanUpFormContainer(s)}getFormArray(s){return this.form.get(s.path)}updateModel(s,c){this.form.get(s.path).setValue(c)}onSubmit(s){return this.submitted=!0,ti(this.form,this.directives),this.ngSubmit.emit(s),"dialog"===s?.target?.method}onReset(){this.resetForm()}resetForm(s){this.form.reset(s),this.submitted=!1}_updateDomValue(){this.directives.forEach(s=>{const c=s.control,Q=this.form.get(s.path);c!==Q&&(Ae(c||null,s),Q instanceof Xi&&(Pe(Q,s,this.callSetDisabledState),s.control=Q))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(s){const c=this.form.get(s.path);ai(c,s),c.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(s){if(this.form){const c=this.form.get(s.path);c&&function Je(lt,s){return Qe(lt,s)}(c,s)&&c.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ri(this.form,this),this._oldForm&&Qe(this._oldForm,this)}_checkFormPresent(){this.form}}Cs.\u0275fac=function(s){return new(s||Cs)(t.\u0275\u0275directiveInject(_,10),t.\u0275\u0275directiveInject(B,10),t.\u0275\u0275directiveInject(me,8))},Cs.\u0275dir=t.\u0275\u0275defineDirective({type:Cs,selectors:[["","formGroup",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("submit",function(dt){return c.onSubmit(dt)})("reset",function(){return c.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([Oa]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]});const ca={provide:Zt,useExisting:(0,t.forwardRef)(()=>hs)};class hs extends Ci{constructor(s,c,Q){super(),this._parent=s,this._setValidators(c),this._setAsyncValidators(Q)}_checkParentType(){us(this._parent)}}hs.\u0275fac=function(s){return new(s||hs)(t.\u0275\u0275directiveInject(Zt,13),t.\u0275\u0275directiveInject(_,10),t.\u0275\u0275directiveInject(B,10))},hs.\u0275dir=t.\u0275\u0275defineDirective({type:hs,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[t.\u0275\u0275ProvidersFeature([ca]),t.\u0275\u0275InheritDefinitionFeature]});const ka={provide:Zt,useExisting:(0,t.forwardRef)(()=>ir)};class ir extends Zt{constructor(s,c,Q){super(),this._parent=s,this._setValidators(c),this._setAsyncValidators(Q)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return De(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){us(this._parent)}}function us(lt){return!(lt instanceof hs||lt instanceof Cs||lt instanceof ir)}ir.\u0275fac=function(s){return new(s||ir)(t.\u0275\u0275directiveInject(Zt,13),t.\u0275\u0275directiveInject(_,10),t.\u0275\u0275directiveInject(B,10))},ir.\u0275dir=t.\u0275\u0275defineDirective({type:ir,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[t.\u0275\u0275ProvidersFeature([ka]),t.\u0275\u0275InheritDefinitionFeature]});const io={provide:he,useExisting:(0,t.forwardRef)(()=>Oo)};class Oo extends he{set isDisabled(s){}constructor(s,c,Q,dt,It){super(),this._ngModelWarningConfig=It,this._added=!1,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._parent=s,this._setValidators(c),this._setAsyncValidators(Q),this.valueAccessor=mi(0,dt)}ngOnChanges(s){this._added||this._setUpControl(),ve(s,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(s){this.viewModel=s,this.update.emit(s)}get path(){return De(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}Oo._ngModelWarningSentOnce=!1,Oo.\u0275fac=function(s){return new(s||Oo)(t.\u0275\u0275directiveInject(Zt,13),t.\u0275\u0275directiveInject(_,10),t.\u0275\u0275directiveInject(B,10),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(fr,8))},Oo.\u0275dir=t.\u0275\u0275defineDirective({type:Oo,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.\u0275\u0275ProvidersFeature([io]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]});const La={provide:M,useExisting:(0,t.forwardRef)(()=>kr),multi:!0};function mr(lt,s){return null==lt?`${s}`:(s&&"object"==typeof s&&(s="Object"),`${lt}: ${s}`.slice(0,50))}class kr extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(s){this._compareWith=s}writeValue(s){this.value=s;const Q=mr(this._getOptionId(s),s);this.setProperty("value",Q)}registerOnChange(s){this.onChange=c=>{this.value=this._getOptionValue(c),s(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(s){for(const c of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(c),s))return c;return null}_getOptionValue(s){const c=function fo(lt){return lt.split(":")[0]}(s);return this._optionMap.has(c)?this._optionMap.get(c):s}}kr.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(kr)))(c||kr)}}(),kr.\u0275dir=t.\u0275\u0275defineDirective({type:kr,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("change",function(dt){return c.onChange(dt.target.value)})("blur",function(){return c.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([La]),t.\u0275\u0275InheritDefinitionFeature]});class Dr{constructor(s,c,Q){this._element=s,this._renderer=c,this._select=Q,this._select&&(this.id=this._select._registerOption())}set ngValue(s){null!=this._select&&(this._select._optionMap.set(this.id,s),this._setElementValue(mr(this.id,s)),this._select.writeValue(this._select.value))}set value(s){this._setElementValue(s),this._select&&this._select.writeValue(this._select.value)}_setElementValue(s){this._renderer.setProperty(this._element.nativeElement,"value",s)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}Dr.\u0275fac=function(s){return new(s||Dr)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(kr,9))},Dr.\u0275dir=t.\u0275\u0275defineDirective({type:Dr,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});const el={provide:M,useExisting:(0,t.forwardRef)(()=>Ws),multi:!0};function ds(lt,s){return null==lt?`${s}`:("string"==typeof s&&(s=`'${s}'`),s&&"object"==typeof s&&(s="Object"),`${lt}: ${s}`.slice(0,50))}class Ws extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(s){this._compareWith=s}writeValue(s){let c;if(this.value=s,Array.isArray(s)){const Q=s.map(dt=>this._getOptionId(dt));c=(dt,It)=>{dt._setSelected(Q.indexOf(It.toString())>-1)}}else c=(Q,dt)=>{Q._setSelected(!1)};this._optionMap.forEach(c)}registerOnChange(s){this.onChange=c=>{const Q=[],dt=c.selectedOptions;if(void 0!==dt){const It=dt;for(let Kt=0;Kt$i),multi:!0};class $i extends Vn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=s=>Tn(s),this.createValidator=s=>L(s)}}$i.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory($i)))(c||$i)}}(),$i.\u0275dir=t.\u0275\u0275defineDirective({type:$i,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(s,c){2&s&&t.\u0275\u0275attribute("max",c._enabled?c.max:null)},inputs:{max:"max"},features:[t.\u0275\u0275ProvidersFeature([hr]),t.\u0275\u0275InheritDefinitionFeature]});const Lr={provide:_,useExisting:(0,t.forwardRef)(()=>Cr),multi:!0};class Cr extends Vn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=s=>Tn(s),this.createValidator=s=>rt(s)}}Cr.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Cr)))(c||Cr)}}(),Cr.\u0275dir=t.\u0275\u0275defineDirective({type:Cr,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(s,c){2&s&&t.\u0275\u0275attribute("min",c._enabled?c.min:null)},inputs:{min:"min"},features:[t.\u0275\u0275ProvidersFeature([Lr]),t.\u0275\u0275InheritDefinitionFeature]});const Cn={provide:_,useExisting:(0,t.forwardRef)(()=>Gn),multi:!0},Rr={provide:_,useExisting:(0,t.forwardRef)(()=>Fn),multi:!0};class Gn extends Vn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.\u0275coerceToBoolean,this.createValidator=s=>z}enabled(s){return s}}Gn.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Gn)))(c||Gn)}}(),Gn.\u0275dir=t.\u0275\u0275defineDirective({type:Gn,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(s,c){2&s&&t.\u0275\u0275attribute("required",c._enabled?"":null)},inputs:{required:"required"},features:[t.\u0275\u0275ProvidersFeature([Cn]),t.\u0275\u0275InheritDefinitionFeature]});class Fn extends Gn{constructor(){super(...arguments),this.createValidator=s=>et}}Fn.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Fn)))(c||Fn)}}(),Fn.\u0275dir=t.\u0275\u0275defineDirective({type:Fn,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(s,c){2&s&&t.\u0275\u0275attribute("required",c._enabled?"":null)},features:[t.\u0275\u0275ProvidersFeature([Rr]),t.\u0275\u0275InheritDefinitionFeature]});const tr={provide:_,useExisting:(0,t.forwardRef)(()=>ko),multi:!0};class ko extends Vn{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=t.\u0275coerceToBoolean,this.createValidator=s=>at}enabled(s){return s}}ko.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(ko)))(c||ko)}}(),ko.\u0275dir=t.\u0275\u0275defineDirective({type:ko,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[t.\u0275\u0275ProvidersFeature([tr]),t.\u0275\u0275InheritDefinitionFeature]});const il={provide:_,useExisting:(0,t.forwardRef)(()=>Us),multi:!0};class Us extends Vn{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=s=>vr(s),this.createValidator=s=>st(s)}}Us.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Us)))(c||Us)}}(),Us.\u0275dir=t.\u0275\u0275defineDirective({type:Us,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(s,c){2&s&&t.\u0275\u0275attribute("minlength",c._enabled?c.minlength:null)},inputs:{minlength:"minlength"},features:[t.\u0275\u0275ProvidersFeature([il]),t.\u0275\u0275InheritDefinitionFeature]});const bs={provide:_,useExisting:(0,t.forwardRef)(()=>Lo),multi:!0};class Lo extends Vn{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=s=>vr(s),this.createValidator=s=>H(s)}}Lo.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Lo)))(c||Lo)}}(),Lo.\u0275dir=t.\u0275\u0275defineDirective({type:Lo,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(s,c){2&s&&t.\u0275\u0275attribute("maxlength",c._enabled?c.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t.\u0275\u0275ProvidersFeature([bs]),t.\u0275\u0275InheritDefinitionFeature]});const Pl={provide:_,useExisting:(0,t.forwardRef)(()=>Qi),multi:!0};class Qi extends Vn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=s=>s,this.createValidator=s=>ot(s)}}Qi.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Qi)))(c||Qi)}}(),Qi.\u0275dir=t.\u0275\u0275defineDirective({type:Qi,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(s,c){2&s&&t.\u0275\u0275attribute("pattern",c._enabled?c.pattern:null)},inputs:{pattern:"pattern"},features:[t.\u0275\u0275ProvidersFeature([Pl]),t.\u0275\u0275InheritDefinitionFeature]});class Ro{}Ro.\u0275fac=function(s){return new(s||Ro)},Ro.\u0275mod=t.\u0275\u0275defineNgModule({type:Ro}),Ro.\u0275inj=t.\u0275\u0275defineInjector({imports:[cr]});class Zn extends Or{constructor(s,c,Q){super(di(c),Hi(Q,c)),this.controls=s,this._initObservables(),this._setUpdateStrategy(c),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(s){return this.controls[this._adjustIndex(s)]}push(s,c={}){this.controls.push(s),this._registerControl(s),this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}insert(s,c,Q={}){this.controls.splice(s,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:Q.emitEvent})}removeAt(s,c={}){let Q=this._adjustIndex(s);Q<0&&(Q=0),this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),this.controls.splice(Q,1),this.updateValueAndValidity({emitEvent:c.emitEvent})}setControl(s,c,Q={}){let dt=this._adjustIndex(s);dt<0&&(dt=0),this.controls[dt]&&this.controls[dt]._registerOnCollectionChange(()=>{}),this.controls.splice(dt,1),c&&(this.controls.splice(dt,0,c),this._registerControl(c)),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(s,c={}){lr(this,0,s),s.forEach((Q,dt)=>{Ji(this,!1,dt),this.at(dt).setValue(Q,{onlySelf:!0,emitEvent:c.emitEvent})}),this.updateValueAndValidity(c)}patchValue(s,c={}){null!=s&&(s.forEach((Q,dt)=>{this.at(dt)&&this.at(dt).patchValue(Q,{onlySelf:!0,emitEvent:c.emitEvent})}),this.updateValueAndValidity(c))}reset(s=[],c={}){this._forEachChild((Q,dt)=>{Q.reset(s[dt],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}getRawValue(){return this.controls.map(s=>s.getRawValue())}clear(s={}){this.controls.length<1||(this._forEachChild(c=>c._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:s.emitEvent}))}_adjustIndex(s){return s<0?s+this.length:s}_syncPendingControls(){let s=this.controls.reduce((c,Q)=>!!Q._syncPendingControls()||c,!1);return s&&this.updateValueAndValidity({onlySelf:!0}),s}_forEachChild(s){this.controls.forEach((c,Q)=>{s(c,Q)})}_updateValue(){this.value=this.controls.filter(s=>s.enabled||this.disabled).map(s=>s.value)}_anyControls(s){return this.controls.some(c=>c.enabled&&s(c))}_setUpControls(){this._forEachChild(s=>this._registerControl(s))}_allControlsDisabled(){for(const s of this.controls)if(s.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(s){s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange)}_find(s){return this.at(s)??null}}function ws(lt){return!!lt&&(void 0!==lt.asyncValidators||void 0!==lt.validators||void 0!==lt.updateOn)}class pi{constructor(){this.useNonNullable=!1}get nonNullable(){const s=new pi;return s.useNonNullable=!0,s}group(s,c=null){const Q=this._reduceControls(s);let dt={};return ws(c)?dt=c:null!==c&&(dt.validators=c.validator,dt.asyncValidators=c.asyncValidator),new Jn(Q,dt)}record(s,c=null){const Q=this._reduceControls(s);return new te(Q,c)}control(s,c,Q){let dt={};return this.useNonNullable?(ws(c)?dt=c:(dt.validators=c,dt.asyncValidators=Q),new Xi(s,{...dt,nonNullable:!0})):new Xi(s,c,Q)}array(s,c,Q){const dt=s.map(It=>this._createControl(It));return new Zn(dt,c,Q)}_reduceControls(s){const c={};return Object.keys(s).forEach(Q=>{c[Q]=this._createControl(s[Q])}),c}_createControl(s){if(s instanceof Xi)return s;if(s instanceof Or)return s;if(Array.isArray(s)){const c=s[0],Q=s.length>1?s[1]:null,dt=s.length>2?s[2]:null;return this.control(c,Q,dt)}return this.control(s)}}pi.\u0275fac=function(s){return new(s||pi)},pi.\u0275prov=t.\u0275\u0275defineInjectable({token:pi,factory:pi.\u0275fac,providedIn:"root"});class vn{}vn.\u0275fac=function(s){return new(s||vn)},vn.\u0275prov=t.\u0275\u0275defineInjectable({token:vn,factory:function(){return(0,t.inject)(pi).nonNullable},providedIn:"root"});class Es extends pi{group(s,c=null){return super.group(s,c)}control(s,c,Q){return super.control(s,c,Q)}array(s,c,Q){return super.array(s,c,Q)}}Es.\u0275fac=function(){let lt;return function(c){return(lt||(lt=t.\u0275\u0275getInheritedFactory(Es)))(c||Es)}}(),Es.\u0275prov=t.\u0275\u0275defineInjectable({token:Es,factory:Es.\u0275fac,providedIn:"root"});new t.Version("15.1.3");class qn{static withConfig(s){return{ngModule:qn,providers:[{provide:me,useValue:s.callSetDisabledState??ge}]}}}qn.\u0275fac=function(s){return new(s||qn)},qn.\u0275mod=t.\u0275\u0275defineNgModule({type:qn}),qn.\u0275inj=t.\u0275\u0275defineInjector({imports:[Ro]});class Fo{static withConfig(s){return{ngModule:Fo,providers:[{provide:fr,useValue:s.warnOnNgModelWithFormControl??"always"},{provide:me,useValue:s.callSetDisabledState??ge}]}}}Fo.\u0275fac=function(s){return new(s||Fo)},Fo.\u0275mod=t.\u0275\u0275defineNgModule({type:Fo}),Fo.\u0275inj=t.\u0275\u0275defineInjector({imports:[Ro]});class gs{constructor(s){this.el=s}onReturnPressed(s){s.preventDefault();const c=document.getElementById(this.el.nativeElement.attributes.dswFocusNext.value);c&&c.focus()}}gs.\u0275fac=function(s){return new(s||gs)(t.\u0275\u0275directiveInject(t.ElementRef))},gs.\u0275dir=t.\u0275\u0275defineDirective({type:gs,selectors:[["","dswFocusNext",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("keydown.enter",function(dt){return c.onReturnPressed(dt)})}});var Mr=ht(7241);class rr{constructor(s,c){this.el=s,this.us=c}ngAfterViewInit(){"desktop"===this.el.nativeElement.attributes.getNamedItem("dswAutoFocus").value&&this.us.isMobile()||this.el.nativeElement.focus()}}function Yr(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",14),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onLoginOAuthClick())}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"signinOAuth")))}rr.\u0275fac=function(s){return new(s||rr)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Mr.f))},rr.\u0275dir=t.\u0275\u0275defineDirective({type:rr,selectors:[["","dswAutoFocus",""]]});class Fr{constructor(s,c,Q,dt,It,Kt,le,xe){this.ds=s,this.i18n=c,this.hs=Q,this.ss=dt,this.ns=It,this.st=Kt,this.route=le,this.router=xe,this.hs.visible$.next(!1),this.ss.showComponent(null),delete sessionStorage.dashboarList,q._.desktop&&delete localStorage.DSWMobileServer,this.initModel(),q._.mobile&&this.fillFieldsWithSelectedServer(),this.initNamespace();let Me=this.route.snapshot.queryParamMap.get("ns");const oi=this.route.snapshot.queryParamMap.get("from");oi&&(Me=oi.split("/").filter(hi=>hi)[0]),this.model.namespace=Me||O.l||""}initModel(){this.model={isDesktop:q._.desktop,ver:q._.const.ver,server:localStorage.DSWMobileServer||location.hostname,login:"",password:"",namespace:"",error:"",oAuthUrl:""}}initNamespace(){const s=this.route.snapshot.queryParamMap.get("from");if(s){const c=decodeURIComponent(s),Q=this.getParameterByName("ns",c);Q&&(this.model.namespace=Q)}else{const c=this.route.snapshot.queryParamMap.get("ns");c&&(this.model.namespace=c)}}ngOnInit(){this.loadOAuthConfig()}loadOAuthConfig(){this.ds.loadOAuthConfig().then(s=>{try{if("string"==typeof s){const c=JSON.parse(s);this.model.oAuthUrl=c.url||""}else this.model.oAuthUrl=s.url||""}catch{}}).catch(()=>{})}fillFieldsWithSelectedServer(){let s=localStorage.selectedServer;if(!s||(s=parseInt(s,10),isNaN(s)))return;let c=[];try{c=JSON.parse(localStorage.serverList||"[]")}catch(dt){console.error(dt)}const Q=c[s];Q&&(this.model.server=Q.server||"",this.model.login=Q.login||"",this.model.password=Q.password||"",this.model.namespace=Q.namespace||"")}saveServer(){const s=prompt("Please enter server name",this.model.server);let c=[];try{c=JSON.parse(localStorage.serverList||"[]")}catch(Q){console.error(Q)}c.push({name:s,server:this.model.server,login:this.model.login,password:this.model.password,namespace:this.model.namespace}),localStorage.serverList=JSON.stringify(c),localStorage.selectedServer=c.length-1}showServers(){}getParameterByName(s,c){s=s.replace(/[\[\]]/g,"\\$&");const dt=new RegExp("[?&]"+s+"(=([^&#]*)|&|#|$)").exec(c);return dt?dt[2]?decodeURIComponent(dt[2].replace(/\+/g," ")):"":null}onLoginOAuthClick(){window.location.href=this.model.oAuthUrl}onLoginClick(){this.clearError();const s=this.getMobileUrl();this.startTime=(new Date).getTime(),this.ds.signIn(this.model.login,this.model.password,this.model.namespace,q._.mobile&&!q._.desktop?s:void 0).catch(c=>this.onError(c)).then(c=>this.onSuccess(c,this.model.namespace))}getMobileUrl(){let s=this.model.server;const c=-1!==s.replace("://","").indexOf("/");return-1===s.toLowerCase().indexOf("http")&&(s="http://"+s),c||(s+="/MDX2JSON/"),"/"!==s.charAt(s.length-1)&&(s+="/"),s}onSuccess(s,c){if(!s)return;q._.mobile&&q._.desktop,localStorage.DSWMobileServer=this.model.server,localStorage.userName=this.ds.username,this.ns.setNamespaces(s.Mappings.Mapped),this.ns.setCurrent(c),this.st.loadServerSettings(s);const Q=this.route.snapshot.queryParamMap.get("from");Q?this.router.navigateByUrl(Q):this.router.navigateByUrl("/"+c)}onError(s){const{error:c,status:Q}=s;if((new Date).getTime()-this.startTime>=q._.const.timeout)this.showError(this.i18n.get("errTimeout"));else switch(Q){case 0:this.showError(this.i18n.get("errNotFound"));break;case 401:case 403:this.showError(this.i18n.get("errUnauth"));break;case 500:this.showError(c.Error||s.message);break;default:this.showError(s.message)}}clearError(){this.model.error=""}showError(s){this.model.error=s}scanSettings(){cordova.plugins.barcodeScanner.scan(s=>{const Q=s.text.split("|");"dsw"===Q[0].toLowerCase()?(this.model.server=Q[1],this.model.login=Q[2],this.model.password=Q[3],this.model.namespace=Q[4],this.onLoginClick()):alert("Incorrect QR code")},s=>{alert("Scanning failed: "+s)})}}Fr.\u0275fac=function(s){return new(s||Fr)(t.\u0275\u0275directiveInject(W.Do),t.\u0275\u0275directiveInject(G.D),t.\u0275\u0275directiveInject($),t.\u0275\u0275directiveInject(U.P),t.\u0275\u0275directiveInject(O.L),t.\u0275\u0275directiveInject(V.V),t.\u0275\u0275directiveInject(Y.ActivatedRoute),t.\u0275\u0275directiveInject(Y.Router))},Fr.\u0275cmp=t.\u0275\u0275defineComponent({type:Fr,selectors:[["app-login-screen"]],decls:24,vars:26,consts:[[1,"ver"],["desktop-hidden","",1,"qr-scanner-btn",3,"click"],[1,"fa","fa-camera"],[1,"login-form"],[1,"logo"],["type","text","name","server","focus-next","dswLogin",3,"hidden","ngModel","placeholder","ngModelChange"],["id","dswLogin","type","text","name","dswLogin","dswAutoFocus","","dswFocusNext","dswPasword",3,"ngModel","placeholder","ngModelChange"],["id","dswPasword","name","dswPasword","type","password","dswFocusNext","ns",3,"ngModel","placeholder","ngModelChange"],["id","ns","type","text","dswFocusNext","login","required","",1,"form-control",3,"ngModel","placeholder","ngModelChange"],[1,"button-row"],["desktop-hidden","",1,"btn","btn-success",3,"hidden","click"],["id","login",1,"btn",3,"click"],["id","btnLoginOAuth","class","btn btn-link",3,"click",4,"ngIf"],[1,"msg-error",3,"hidden"],["id","btnLoginOAuth",1,"btn","btn-link",3,"click"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"span",0),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"span",1),t.\u0275\u0275listener("click",function(){return c.scanSettings()}),t.\u0275\u0275element(3,"i",2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",3)(5,"div",4),t.\u0275\u0275text(6," IRIS Analytics\n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"input",5),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.server=dt}),t.\u0275\u0275pipe(8,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"input",6),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.login=dt}),t.\u0275\u0275pipe(10,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"input",7),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.password=dt}),t.\u0275\u0275pipe(12,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"input",8),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.namespace=dt}),t.\u0275\u0275pipe(14,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"div",9)(16,"button",10),t.\u0275\u0275listener("click",function(){return c.showServers()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"button",10),t.\u0275\u0275listener("click",function(){return c.saveServer()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(18,"button",11),t.\u0275\u0275listener("click",function(){return c.onLoginClick()}),t.\u0275\u0275text(19),t.\u0275\u0275pipe(20,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(21,Yr,3,3,"button",12),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(22,"div",13),t.\u0275\u0275text(23),t.\u0275\u0275elementEnd()()),2&s&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.model.ver),t.\u0275\u0275advance(6),t.\u0275\u0275propertyInterpolate("placeholder",t.\u0275\u0275pipeBind1(8,16,"server")),t.\u0275\u0275property("hidden",c.model.isDesktop)("ngModel",c.model.server),t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("placeholder",t.\u0275\u0275pipeBind1(10,18,"login")),t.\u0275\u0275property("ngModel",c.model.login),t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("placeholder",t.\u0275\u0275pipeBind1(12,20,"password")),t.\u0275\u0275property("ngModel",c.model.password),t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("placeholder",t.\u0275\u0275pipeBind1(14,22,"namespace")),t.\u0275\u0275property("ngModel",c.model.namespace),t.\u0275\u0275advance(3),t.\u0275\u0275property("hidden",c.model.isDesktop),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",c.model.isDesktop),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(20,24,"signin")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",c.model.oAuthUrl),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",!c.model.error),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",c.model.error," "))},dependencies:[R.NgIf,a,He,Gn,gn,gs,rr,G.C],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:url(assets/img/bg.jpg);background-size:cover}.login-form[_ngcontent-%COMP%]{position:relative;width:300px;padding:25px;margin-bottom:20vh;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 0 10px #0000001a;border-radius:10px;background-color:#ffffff80}.login-form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%;display:flex;justify-content:center;align-items:center}.ver[_ngcontent-%COMP%]{position:absolute;right:2px;top:0;font-size:8px}.msg-error[_ngcontent-%COMP%]{text-align:center;padding-top:16px;word-break:break-word;position:absolute;width:100%;font-size:14px;color:#d11818;margin-left:-25px;margin-top:25px;font-weight:500}img[_ngcontent-%COMP%]{margin-bottom:16px}input[_ngcontent-%COMP%]{margin-bottom:24px;width:100%}@media (max-width: 576px){input[_ngcontent-%COMP%]{margin-bottom:16px;height:40px}}.btn[_ngcontent-%COMP%]{width:100%;display:block;margin-top:30px;margin-bottom:4px;height:40px}.btn-link[_ngcontent-%COMP%]{margin-bottom:-15px}.logo[_ngcontent-%COMP%]{font-size:26px;font-weight:700;margin-bottom:30px;color:#1c1d20}"]});var Nr=ht(9841);class sr{constructor(){this.onEditDashboard=new t.EventEmitter,this.onSetTitle=new t.EventEmitter}}sr.\u0275fac=function(s){return new(s||sr)},sr.\u0275prov=t.\u0275\u0275defineInjectable({token:sr,factory:sr.\u0275fac,providedIn:"root"});var Wn=ht(2722),Br=ht(4986),ns=ht(4482);var mo=ht(5963);function Ju(lt,s=Br.z){return function Gs(lt){return(0,ns.e)((s,c)=>{let Q=!1,dt=null,It=null,Kt=!1;const le=()=>{if(It?.unsubscribe(),It=null,Q){Q=!1;const Me=dt;dt=null,c.next(Me)}Kt&&c.complete()},xe=()=>{It=null,Kt&&c.complete()};s.subscribe((0,y.x)(c,Me=>{Q=!0,dt=Me,It||(0,w.Xf)(lt(Me)).subscribe(It=(0,y.x)(c,le,xe))},()=>{Kt=!0,(!Q||!It||It.closed)&&c.complete()}))})}(()=>(0,mo.H)(lt,s))}var ua=ht(8675),nl=ht(8505),No=ht(8372),Zr=ht(9300),vo=ht(4408),ic=ht(727);const Ss={schedule(lt){let s=requestAnimationFrame,c=cancelAnimationFrame;const{delegate:Q}=Ss;Q&&(s=Q.requestAnimationFrame,c=Q.cancelAnimationFrame);const dt=s(It=>{c=void 0,lt(It)});return new ic.w0(()=>c?.(dt))},requestAnimationFrame(...lt){const{delegate:s}=Ss;return(s?.requestAnimationFrame||requestAnimationFrame)(...lt)},cancelAnimationFrame(...lt){const{delegate:s}=Ss;return(s?.cancelAnimationFrame||cancelAnimationFrame)(...lt)},delegate:void 0};class nc extends vo.o{constructor(s,c){super(s,c),this.scheduler=s,this.work=c}requestAsyncId(s,c,Q=0){return null!==Q&&Q>0?super.requestAsyncId(s,c,Q):(s.actions.push(this),s._scheduled||(s._scheduled=Ss.requestAnimationFrame(()=>s.flush(void 0))))}recycleAsyncId(s,c,Q=0){var dt;if(null!=Q?Q>0:this.delay>0)return super.recycleAsyncId(s,c,Q);const{actions:It}=s;null!=c&&(null===(dt=It[It.length-1])||void 0===dt?void 0:dt.id)!==c&&(Ss.cancelAnimationFrame(c),s._scheduled=void 0)}}var Qc=ht(640);class pn extends Qc.v{flush(s){this._active=!0;const c=this._scheduled;this._scheduled=void 0;const{actions:Q}=this;let dt;s=s||Q.shift();do{if(dt=s.execute(s.state,s.delay))break}while((s=Q[0])&&s.id===c&&Q.shift());if(this._active=!1,dt){for(;(s=Q[0])&&s.id===c&&Q.shift();)s.unsubscribe();throw dt}}}const Nn=new pn(nc);let Bo,Xh=1;const da={};function $h(lt){return lt in da&&(delete da[lt],!0)}const Il={setImmediate(lt){const s=Xh++;return da[s]=!0,Bo||(Bo=Promise.resolve()),Bo.then(()=>$h(s)&<()),s},clearImmediate(lt){$h(lt)}},{setImmediate:Ra,clearImmediate:nr}=Il,Ol={setImmediate(...lt){const{delegate:s}=Ol;return(s?.setImmediate||Ra)(...lt)},clearImmediate(lt){const{delegate:s}=Ol;return(s?.clearImmediate||nr)(lt)},delegate:void 0};class Jc extends vo.o{constructor(s,c){super(s,c),this.scheduler=s,this.work=c}requestAsyncId(s,c,Q=0){return null!==Q&&Q>0?super.requestAsyncId(s,c,Q):(s.actions.push(this),s._scheduled||(s._scheduled=Ol.setImmediate(s.flush.bind(s,void 0))))}recycleAsyncId(s,c,Q=0){var dt;if(null!=Q?Q>0:this.delay>0)return super.recycleAsyncId(s,c,Q);const{actions:It}=s;null!=c&&(null===(dt=It[It.length-1])||void 0===dt?void 0:dt.id)!==c&&(Ol.clearImmediate(c),s._scheduled=void 0)}}class th extends Qc.v{flush(s){this._active=!0;const c=this._scheduled;this._scheduled=void 0;const{actions:Q}=this;let dt;s=s||Q.shift();do{if(dt=s.execute(s.state,s.delay))break}while((s=Q[0])&&s.id===c&&Q.shift());if(this._active=!1,dt){for(;(s=Q[0])&&s.id===c&&Q.shift();)s.unsubscribe();throw dt}}}const Kh=new th(Jc);var kt=ht(7579),ne=ht(5577),pe=ht(1144),Ve=ht(576);const ni=["addListener","removeListener"],Ai=["addEventListener","removeEventListener"],Zi=["on","off"];function ln(lt,s,c,Q){if((0,Ve.m)(c)&&(Q=c,c=void 0),Q)return ln(lt,s,c).pipe((0,A.Z)(Q));const[dt,It]=function or(lt){return(0,Ve.m)(lt.addEventListener)&&(0,Ve.m)(lt.removeEventListener)}(lt)?Ai.map(Kt=>le=>lt[Kt](s,le,c)):function In(lt){return(0,Ve.m)(lt.addListener)&&(0,Ve.m)(lt.removeListener)}(lt)?ni.map(mn(lt,s)):function wn(lt){return(0,Ve.m)(lt.on)&&(0,Ve.m)(lt.off)}(lt)?Zi.map(mn(lt,s)):[];if(!dt&&(0,pe.z)(lt))return(0,ne.z)(Kt=>ln(Kt,s,c))((0,w.Xf)(lt));if(!dt)throw new TypeError("Invalid event target");return new k.y(Kt=>{const le=(...xe)=>Kt.next(1It(le)})}function mn(lt,s){return c=>Q=>lt[c](s,Q)}var On=ht(6451);const Xn=["content"],rs=["scroll"],yo=["padding"],Ds=function(lt){return{searchTerm:lt}};function jr(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",6),t.\u0275\u0275elementContainer(1,7),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",c.headerTemplate)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(2,Ds,c.filterValue))}}function ss(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275elementContainer(1,7),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",c.footerTemplate)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(2,Ds,c.filterValue))}}const jo=["*"],Vr=["searchInput"];function pa(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",15),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext().$implicit,It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.unselect(dt))}),t.\u0275\u0275text(1,"\xd7"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(2,"span",16)}if(2<){const c=t.\u0275\u0275nextContext().$implicit,Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275property("ngItemLabel",c.label)("escape",Q.escapeHTML)}}function rl(lt,s){}const rc=function(lt,s,c){return{item:lt,clear:s,label:c}};function fa(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275template(1,pa,3,2,"ng-template",null,13,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(3,rl,0,0,"ng-template",14),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit,Q=t.\u0275\u0275reference(2),dt=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("ng-value-disabled",c.disabled),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngTemplateOutlet",dt.labelTemplate||Q)("ngTemplateOutletContext",t.\u0275\u0275pureFunction3(4,rc,c.value,dt.clearItem,c.label))}}function Ms(lt,s){if(1<&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,fa,4,8,"div",11),t.\u0275\u0275elementContainerEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.selectedItems)("ngForTrackBy",c.trackByOption)}}function _o(lt,s){}const ga=function(lt,s){return{items:lt,clear:s}};function sc(lt,s){if(1<&&t.\u0275\u0275template(0,_o,0,0,"ng-template",14),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngTemplateOutlet",c.multiLabelTemplate)("ngTemplateOutletContext",t.\u0275\u0275pureFunction2(2,ga,c.selectedValues,c.clearItem))}}function Yh(lt,s){1<&&t.\u0275\u0275element(0,"div",19)}function Zh(lt,s){}function gp(lt,s){if(1<&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,Yh,1,0,"ng-template",null,17,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(3,Zh,0,0,"ng-template",18),t.\u0275\u0275elementContainerEnd()),2<){const c=t.\u0275\u0275reference(2),Q=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275property("ngTemplateOutlet",Q.loadingSpinnerTemplate||c)}}function Vo(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"span",20)(1,"span",21),t.\u0275\u0275text(2,"\xd7"),t.\u0275\u0275elementEnd()()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275propertyInterpolate("title",c.clearAllText)}}function sl(lt,s){if(1<&&t.\u0275\u0275element(0,"span",27),2<){const c=t.\u0275\u0275nextContext().$implicit,Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngItemLabel",c.label)("escape",Q.escapeHTML)}}function ar(lt,s){}const ol=function(lt,s,c,Q){return{item:lt,item$:s,index:c,searchTerm:Q}};function yr(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",25),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(Kt.toggleItem(It))})("mouseover",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(Kt.onItemHover(It))}),t.\u0275\u0275template(1,sl,1,2,"ng-template",null,26,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(3,ar,0,0,"ng-template",14),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275reference(2),dt=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("ng-option-disabled",c.disabled)("ng-option-selected",c.selected)("ng-optgroup",c.children)("ng-option",!c.children)("ng-option-child",!!c.parent)("ng-option-marked",c===dt.itemsList.markedItem),t.\u0275\u0275attribute("role",c.children?"group":"option")("aria-selected",c.selected)("id",null==c?null:c.htmlId),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngTemplateOutlet",c.children?dt.optgroupTemplate||Q:dt.optionTemplate||Q)("ngTemplateOutletContext",t.\u0275\u0275pureFunction4(17,ol,c.value,c,c.index,dt.searchTerm))}}function xo(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"span")(1,"span",30),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.addTagText),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1('"',c.searchTerm,'"')}}function qh(lt,s){}function oc(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",28),t.\u0275\u0275listener("mouseover",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.itemsList.unmarkItem())})("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.selectTag())}),t.\u0275\u0275template(1,xo,4,2,"ng-template",null,29,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(3,qh,0,0,"ng-template",14),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275reference(2),Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("ng-option-marked",!Q.itemsList.markedItem),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngTemplateOutlet",Q.tagTemplate||c)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(4,Ds,Q.searchTerm))}}function al(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",32),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.notFoundText)}}function er(lt,s){}function Fa(lt,s){if(1<&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,al,2,1,"ng-template",null,31,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(3,er,0,0,"ng-template",14),t.\u0275\u0275elementContainerEnd()),2<){const c=t.\u0275\u0275reference(2),Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275property("ngTemplateOutlet",Q.notFoundTemplate||c)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(2,Ds,Q.searchTerm))}}function zo(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",32),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.typeToSearchText)}}function ma(lt,s){}function Wo(lt,s){if(1<&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,zo,2,1,"ng-template",null,33,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(3,ma,0,0,"ng-template",18),t.\u0275\u0275elementContainerEnd()),2<){const c=t.\u0275\u0275reference(2),Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275property("ngTemplateOutlet",Q.typeToSearchTemplate||c)}}function Na(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",32),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.loadingText)}}function Qh(lt,s){}function va(lt,s){if(1<&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,Na,2,1,"ng-template",null,34,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(3,Qh,0,0,"ng-template",14),t.\u0275\u0275elementContainerEnd()),2<){const c=t.\u0275\u0275reference(2),Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275property("ngTemplateOutlet",Q.loadingTextTemplate||c)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(2,Ds,Q.searchTerm))}}function eh(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ng-dropdown-panel",22),t.\u0275\u0275listener("update",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.viewPortItems=dt)})("scroll",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.scroll.emit(dt))})("scrollToEnd",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.scrollToEnd.emit(dt))})("outsideClick",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.close())}),t.\u0275\u0275elementContainerStart(1),t.\u0275\u0275template(2,yr,4,22,"div",23),t.\u0275\u0275template(3,oc,4,6,"div",24),t.\u0275\u0275elementContainerEnd(),t.\u0275\u0275template(4,Fa,4,4,"ng-container",3),t.\u0275\u0275template(5,Wo,4,1,"ng-container",3),t.\u0275\u0275template(6,va,4,4,"ng-container",3),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("ng-select-multiple",c.multiple),t.\u0275\u0275property("virtualScroll",c.virtualScroll)("bufferAmount",c.bufferAmount)("appendTo",c.appendTo)("position",c.dropdownPosition)("headerTemplate",c.headerTemplate)("footerTemplate",c.footerTemplate)("filterValue",c.searchTerm)("items",c.itemsList.filteredItems)("markedItem",c.itemsList.markedItem)("ngClass",c.appendTo?c.classes:null)("id",c.dropdownId),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",c.viewPortItems)("ngForTrackBy",c.trackByOption),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.showAddTag),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.showNoItemsFound()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.showTypeToSearch()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.loading&&0===c.itemsList.filteredItems.length)}}const ll=/[&<>"']/g,ih=RegExp(ll.source),Xs={"&":"&","<":"<",">":">",'"':""","'":"'"};function ur(lt){return null!=lt}function Uo(lt){return"object"==typeof lt&&ur(lt)}function Co(lt){return lt instanceof Function}class no{constructor(s){this.element=s,this.escape=!0}ngOnChanges(s){this.element.nativeElement.innerHTML=this.escape?function qr(lt){return lt&&ih.test(lt)?lt.replace(ll,s=>Xs[s]):lt}(this.ngItemLabel):this.ngItemLabel}}no.\u0275fac=function(s){return new(s||no)(t.\u0275\u0275directiveInject(t.ElementRef))},no.\u0275dir=t.\u0275\u0275defineDirective({type:no,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[t.\u0275\u0275NgOnChangesFeature]});class $s{constructor(s){this.template=s}}$s.\u0275fac=function(s){return new(s||$s)(t.\u0275\u0275directiveInject(t.TemplateRef))},$s.\u0275dir=t.\u0275\u0275defineDirective({type:$s,selectors:[["","ng-option-tmp",""]]});class Ks{constructor(s){this.template=s}}Ks.\u0275fac=function(s){return new(s||Ks)(t.\u0275\u0275directiveInject(t.TemplateRef))},Ks.\u0275dir=t.\u0275\u0275defineDirective({type:Ks,selectors:[["","ng-optgroup-tmp",""]]});class ya{constructor(s){this.template=s}}ya.\u0275fac=function(s){return new(s||ya)(t.\u0275\u0275directiveInject(t.TemplateRef))},ya.\u0275dir=t.\u0275\u0275defineDirective({type:ya,selectors:[["","ng-label-tmp",""]]});class As{constructor(s){this.template=s}}As.\u0275fac=function(s){return new(s||As)(t.\u0275\u0275directiveInject(t.TemplateRef))},As.\u0275dir=t.\u0275\u0275defineDirective({type:As,selectors:[["","ng-multi-label-tmp",""]]});class Qr{constructor(s){this.template=s}}Qr.\u0275fac=function(s){return new(s||Qr)(t.\u0275\u0275directiveInject(t.TemplateRef))},Qr.\u0275dir=t.\u0275\u0275defineDirective({type:Qr,selectors:[["","ng-header-tmp",""]]});class kl{constructor(s){this.template=s}}kl.\u0275fac=function(s){return new(s||kl)(t.\u0275\u0275directiveInject(t.TemplateRef))},kl.\u0275dir=t.\u0275\u0275defineDirective({type:kl,selectors:[["","ng-footer-tmp",""]]});class Bn{constructor(s){this.template=s}}Bn.\u0275fac=function(s){return new(s||Bn)(t.\u0275\u0275directiveInject(t.TemplateRef))},Bn.\u0275dir=t.\u0275\u0275defineDirective({type:Bn,selectors:[["","ng-notfound-tmp",""]]});class _a{constructor(s){this.template=s}}_a.\u0275fac=function(s){return new(s||_a)(t.\u0275\u0275directiveInject(t.TemplateRef))},_a.\u0275dir=t.\u0275\u0275defineDirective({type:_a,selectors:[["","ng-typetosearch-tmp",""]]});class Go{constructor(s){this.template=s}}Go.\u0275fac=function(s){return new(s||Go)(t.\u0275\u0275directiveInject(t.TemplateRef))},Go.\u0275dir=t.\u0275\u0275defineDirective({type:Go,selectors:[["","ng-loadingtext-tmp",""]]});class br{constructor(s){this.template=s}}br.\u0275fac=function(s){return new(s||br)(t.\u0275\u0275directiveInject(t.TemplateRef))},br.\u0275dir=t.\u0275\u0275defineDirective({type:br,selectors:[["","ng-tag-tmp",""]]});class xa{constructor(s){this.template=s}}function td(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}xa.\u0275fac=function(s){return new(s||xa)(t.\u0275\u0275directiveInject(t.TemplateRef))},xa.\u0275dir=t.\u0275\u0275defineDirective({type:xa,selectors:[["","ng-loadingspinner-tmp",""]]});const ed={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function ro(lt){return lt.replace(/[^\u0000-\u007E]/g,c=>ed[c]||c)}class bo{constructor(s,c){this._ngSelect=s,this._selectionModel=c,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let s=this.selectedItems.length-1;for(;s>=0;s--){const c=this.selectedItems[s];if(!c.disabled)return c}return null}setItems(s){this._items=s.map((c,Q)=>this.mapItem(c,Q)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(s){if(s.selected||this.maxItemsSelected)return;const c=this._ngSelect.multiple;c||this.clearSelected(),this._selectionModel.select(s,c,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(s)}unselect(s){s.selected&&(this._selectionModel.unselect(s,this._ngSelect.multiple),this._ngSelect.hideSelected&&ur(s.index)&&this._ngSelect.multiple&&this._showSelected(s))}findItem(s){let c;return c=this._ngSelect.compareWith?Q=>this._ngSelect.compareWith(Q.value,s):this._ngSelect.bindValue?Q=>!Q.children&&this.resolveNested(Q.value,this._ngSelect.bindValue)===s:Q=>Q.value===s||!Q.children&&Q.label&&Q.label===this.resolveNested(s,this._ngSelect.bindLabel),this._items.find(Q=>c(Q))}addItem(s){const c=this.mapItem(s,this._items.length);return this._items.push(c),this._filteredItems.push(c),c}clearSelected(s=!1){this._selectionModel.clear(s),this._items.forEach(c=>{c.selected=s&&c.selected&&c.disabled,c.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(s){return s=ro(s).toLocaleLowerCase(),this.filteredItems.find(c=>ro(c.label).toLocaleLowerCase().substr(0,s.length)===s)}filter(s){if(!s)return void this.resetFilteredItems();this._filteredItems=[],s=this._ngSelect.searchFn?s:ro(s).toLocaleLowerCase();const c=this._ngSelect.searchFn||this._defaultSearchFn,Q=this._ngSelect.hideSelected;for(const dt of Array.from(this._groups.keys())){const It=[];for(const Kt of this._groups.get(dt)){if(Q&&(Kt.parent&&Kt.parent.selected||Kt.selected))continue;c(s,this._ngSelect.searchFn?Kt.value:Kt)&&It.push(Kt)}if(It.length>0){const[Kt]=It.slice(-1);if(Kt.parent){const le=this._items.find(xe=>xe===Kt.parent);this._filteredItems.push(le)}this._filteredItems.push(...It)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(s=>!s.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(s){this._markedIndex=this._filteredItems.indexOf(s)}markSelectedOrDefault(s){if(0===this._filteredItems.length)return;const c=this._getLastMarkedIndex();this._markedIndex=c>-1?c:s?this.filteredItems.findIndex(Q=>!Q.disabled):-1}resolveNested(s,c){if(!Uo(s))return s;if(-1===c.indexOf("."))return s[c];{const Q=c.split(".");let dt=s;for(let It=0,Kt=Q.length;It-1===this.selectedItems.indexOf(c)))}_showSelected(s){if(this._filteredItems.push(s),s.parent){const c=s.parent;this._filteredItems.find(dt=>dt===c)||this._filteredItems.push(c)}else if(s.children)for(const c of s.children)c.selected=!1,this._filteredItems.push(c);this._filteredItems=[...this._filteredItems.sort((c,Q)=>c.index-Q.index)]}_hideSelected(s){this._filteredItems=this._filteredItems.filter(c=>c!==s),s.parent?s.parent.children.every(Q=>Q.selected)&&(this._filteredItems=this._filteredItems.filter(Q=>Q!==s.parent)):s.children&&(this._filteredItems=this.filteredItems.filter(c=>c.parent!==s))}_defaultSearchFn(s,c){return ro(c.label).toLocaleLowerCase().indexOf(s)>-1}_getNextItemIndex(s){return s>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(s){0===this._filteredItems.length||this._filteredItems.every(c=>c.disabled)||(this._markedIndex=this._getNextItemIndex(s),this.markedItem.disabled&&this._stepToItem(s))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const s=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&s<0?-1:Math.max(this.markedIndex,s)}_groupBy(s,c){const Q=new Map;if(0===s.length)return Q;if(Array.isArray(s[0].value[c])){for(const Kt of s){const le=(Kt.value[c]||[]).map((xe,Me)=>this.mapItem(xe,Me));Q.set(Kt,le)}return Q}const dt=Co(this._ngSelect.groupBy),It=Kt=>{const le=dt?c(Kt.value):Kt.value[c];return ur(le)?le:void 0};for(const Kt of s){const le=It(Kt),xe=Q.get(le);xe?xe.push(Kt):Q.set(le,[Kt])}return Q}_flatten(s){const c=Co(this._ngSelect.groupBy),Q=[];for(const dt of Array.from(s.keys())){let It=Q.length;if(void 0===dt){const hi=s.get(void 0)||[];Q.push(...hi.map(Li=>(Li.index=It++,Li)));continue}const Kt=Uo(dt),le={label:Kt?"":String(dt),children:void 0,parent:null,index:It++,disabled:!this._ngSelect.selectableGroup,htmlId:td()},xe=c?this._ngSelect.bindLabel:this._ngSelect.groupBy,Me=this._ngSelect.groupValue||(()=>Kt?dt.value:{[xe]:dt}),oi=s.get(dt).map(hi=>(hi.parent=le,hi.children=void 0,hi.index=It++,hi));le.children=oi,le.value=Me(dt,oi.map(hi=>hi.value)),Q.push(le),Q.push(...oi)}return Q}}var zr,lt;(lt=zr||(zr={}))[lt.Tab=9]="Tab",lt[lt.Enter=13]="Enter",lt[lt.Esc=27]="Esc",lt[lt.Space=32]="Space",lt[lt.ArrowUp=38]="ArrowUp",lt[lt.ArrowDown=40]="ArrowDown",lt[lt.Backspace=8]="Backspace";class os{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(s,c,Q){const dt=this._dimensions,It=dt.itemHeight*c,le=Math.max(0,s)/It*c;let xe=Math.min(c,Math.ceil(le)+(dt.itemsPerViewport+1));const oi=Math.max(0,xe-dt.itemsPerViewport);let hi=Math.min(oi,Math.floor(le)),Li=dt.itemHeight*Math.ceil(hi)-dt.itemHeight*Math.min(hi,Q);return Li=isNaN(Li)?0:Li,hi=isNaN(hi)?-1:hi,xe=isNaN(xe)?-1:xe,hi-=Q,hi=Math.max(0,hi),xe+=Q,xe=Math.min(c,xe),{topPadding:Li,scrollHeight:It,start:hi,end:xe}}setDimensions(s,c){const Q=Math.max(1,Math.floor(c/s));this._dimensions={itemHeight:s,panelHeight:c,itemsPerViewport:Q}}getScrollTo(s,c,Q){const{panelHeight:dt}=this.dimensions,It=s+c,le=Q+dt;return dt>=It&&Q===s?null:It>le?Q+It-le:s<=Q?s:null}}os.\u0275fac=function(s){return new(s||os)},os.\u0275prov=t.\u0275\u0275defineInjectable({token:os,factory:os.\u0275fac});const $n=["top","right","bottom","left"],Bt=typeof requestAnimationFrame<"u"?Nn:Kh;class At{constructor(s,c,Q,dt,It){this._renderer=s,this._zone=c,this._panelService=Q,this._document=It,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new t.EventEmitter,this.scroll=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.outsideClick=new t.EventEmitter,this._destroy$=new kt.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=dt.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(s){s!==this._itemsLength&&(this._itemsLength=s,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:s,panelHeight:c}=this._panelService.dimensions,Q=this.markedItem.index*s;return c>Q?0:Q}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(s){if(s.items){const c=s.items;this._onItemsChange(c.currentValue,c.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(s,c=!1){if(!s)return;const Q=this.items.indexOf(s);if(Q<0||Q>=this.itemsLength)return;let dt;if(this.virtualScroll){const It=this._panelService.dimensions.itemHeight;dt=this._panelService.getScrollTo(Q*It,It,this._lastScrollPosition)}else{const It=this._dropdown.querySelector(`#${s.htmlId}`),Kt=c?It.offsetTop:this._lastScrollPosition;dt=this._panelService.getScrollTo(It.offsetTop,It.clientHeight,Kt)}ur(dt)&&(this._scrollablePanel.scrollTop=dt)}scrollToTag(){const s=this._scrollablePanel;s.scrollTop=s.scrollHeight-s.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),$n.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(s){$n.forEach(Q=>{const dt=`ng-select-${Q}`;this._renderer.removeClass(this._dropdown,dt),this._renderer.removeClass(this._select,dt)});const c=`ng-select-${s}`;this._renderer.addClass(this._dropdown,c),this._renderer.addClass(this._select,c)}_handleScroll(){this._zone.runOutsideAngular(()=>{ln(this.scrollElementRef.nativeElement,"scroll").pipe((0,Wn.R)(this._destroy$),Ju(0,Bt)).subscribe(s=>{const c=s.path||s.composedPath&&s.composedPath(),Q=c&&0!==c.length?c[0].scrollTop:s.target.scrollTop;this._onContentScrolled(Q)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,On.T)(ln(this._document,"touchstart",{capture:!0}),ln(this._document,"mousedown",{capture:!0})).pipe((0,Wn.R)(this._destroy$)).subscribe(s=>this._checkToClose(s))})}_checkToClose(s){if(this._select.contains(s.target)||this._dropdown.contains(s.target))return;const c=s.path||s.composedPath&&s.composedPath();s.target&&s.target.shadowRoot&&c&&c[0]&&this._select.contains(c[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(s,c){this.items=s||[],this._scrollToEndFired=!1,this.itemsLength=s.length,this.virtualScroll?this._updateItemsRange(c):(this._setVirtualHeight(),this._updateItems(c))}_updateItems(s){this.update.emit(this.items),!1!==s&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{const c=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,c),this._handleDropdownPosition(),this.scrollTo(this.markedItem,s)})})}_updateItemsRange(s){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{s?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(s){this.virtualScroll&&this._renderItemsRange(s),this._lastScrollPosition=s,this._fireScrollToEnd(s)}_updateVirtualHeight(s){this._updateScrollHeight&&(this._virtualPadding.style.height=`${s}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(s=null){if(s&&this._lastScrollPosition===s)return;s=s||this._scrollablePanel.scrollTop;const c=this._panelService.calculateItems(s,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(c.scrollHeight),this._contentPanel.style.transform=`translateY(${c.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(c.start,c.end)),this.scroll.emit({start:c.start,end:c.end})}),ur(s)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=s,this._lastScrollPosition=s)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[s]=this.items;return this.update.emit([s]),Promise.resolve().then(()=>{const Q=this._dropdown.querySelector(`#${s.htmlId}`).clientHeight;this._virtualPadding.style.height=Q*this.itemsLength+"px";const dt=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(Q,dt),this._panelService.dimensions})}_fireScrollToEnd(s){if(this._scrollToEndFired||0===s)return;const c=this.virtualScroll?this._virtualPadding:this._contentPanel;s+this._dropdown.clientHeight>=c.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(s){if("auto"!==this.position)return this.position;const c=this._select.getBoundingClientRect(),Q=document.documentElement.scrollTop||document.body.scrollTop;return c.top+window.pageYOffset+c.height+s.getBoundingClientRect().height>Q+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const s=this._select.getBoundingClientRect(),c=this._parent.getBoundingClientRect(),Q=s.left-c.left;this._dropdown.style.left=Q+"px",this._dropdown.style.width=s.width+"px",this._dropdown.style.minWidth=s.width+"px"}_updateYPosition(){const s=this._select.getBoundingClientRect(),c=this._parent.getBoundingClientRect(),Q=s.height;if("top"===this._currentPosition){const dt=c.bottom-s.bottom;this._dropdown.style.bottom=dt+Q+"px",this._dropdown.style.top="auto"}else if("bottom"===this._currentPosition){const dt=s.top-c.top;this._dropdown.style.top=dt+Q+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{ln(this._dropdown,"mousedown").pipe((0,Wn.R)(this._destroy$)).subscribe(s=>{"INPUT"!==s.target.tagName&&s.preventDefault()})})}}At.\u0275fac=function(s){return new(s||At)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(os),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(R.DOCUMENT,8))},At.\u0275cmp=t.\u0275\u0275defineComponent({type:At,selectors:[["ng-dropdown-panel"]],viewQuery:function(s,c){if(1&s&&(t.\u0275\u0275viewQuery(Xn,7,t.ElementRef),t.\u0275\u0275viewQuery(rs,7,t.ElementRef),t.\u0275\u0275viewQuery(yo,7,t.ElementRef)),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.contentElementRef=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.scrollElementRef=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.paddingElementRef=Q.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[t.\u0275\u0275NgOnChangesFeature],ngContentSelectors:jo,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(s,c){1&s&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,jr,2,4,"div",0),t.\u0275\u0275elementStart(1,"div",1,2),t.\u0275\u0275element(3,"div",null,3),t.\u0275\u0275elementStart(5,"div",null,4),t.\u0275\u0275projection(7),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(8,ss,2,4,"div",5)),2&s&&(t.\u0275\u0275property("ngIf",c.headerTemplate),t.\u0275\u0275advance(3),t.\u0275\u0275classProp("total-padding",c.virtualScroll),t.\u0275\u0275advance(2),t.\u0275\u0275classProp("scrollable-content",c.virtualScroll&&c.items.length),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",c.footerTemplate))},dependencies:[R.NgIf,R.NgTemplateOutlet],encapsulation:2,changeDetection:0});class Lt{constructor(s){this.elementRef=s,this.stateChange$=new kt.x,this._disabled=!1}get disabled(){return this._disabled}set disabled(s){this._disabled=this._isDisabled(s)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(s){s.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(s){return null!=s&&"false"!=`${s}`}}Lt.\u0275fac=function(s){return new(s||Lt)(t.\u0275\u0275directiveInject(t.ElementRef))},Lt.\u0275cmp=t.\u0275\u0275defineComponent({type:Lt,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[t.\u0275\u0275NgOnChangesFeature],ngContentSelectors:jo,decls:1,vars:0,template:function(s,c){1&s&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0});class Xt{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}Xt.\u0275fac=function(s){return new(s||Xt)},Xt.\u0275prov=t.\u0275\u0275defineInjectable({token:Xt,factory:Xt.\u0275fac,providedIn:"root"});class qt{warn(s){console.warn(s)}}qt.\u0275fac=function(s){return new(s||qt)},qt.\u0275prov=t.\u0275\u0275defineInjectable({token:qt,factory:qt.\u0275fac,providedIn:"root"});const re=new t.InjectionToken("ng-select-selection-model");class _e{constructor(s,c,Q,dt,It,Kt,le){this.classes=s,this.autoFocus=c,this.config=Q,this._cd=Kt,this._console=le,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=xe=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new t.EventEmitter,this.focusEvent=new t.EventEmitter,this.changeEvent=new t.EventEmitter,this.openEvent=new t.EventEmitter,this.closeEvent=new t.EventEmitter,this.searchEvent=new t.EventEmitter,this.clearEvent=new t.EventEmitter,this.addEvent=new t.EventEmitter,this.removeEvent=new t.EventEmitter,this.scroll=new t.EventEmitter,this.scrollToEnd=new t.EventEmitter,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=td(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new kt.x,this._keyPress$=new kt.x,this._onChange=xe=>{},this._onTouched=()=>{},this.clearItem=xe=>{const Me=this.selectedItems.find(oi=>oi.value===xe);this.unselect(Me)},this.trackByOption=(xe,Me)=>this.trackByFn?this.trackByFn(Me.value):Me,this._mergeGlobalConfig(Q),this.itemsList=new bo(this,dt()),this.element=It.nativeElement}get items(){return this._items}set items(s){null===s&&(s=[]),this._itemsAreUsed=!0,this._items=s}get compareWith(){return this._compareWith}set compareWith(s){if(null!=s&&!Co(s))throw Error("`compareWith` must be a function.");this._compareWith=s}get clearSearchOnAdd(){return ur(this._clearSearchOnAdd)?this._clearSearchOnAdd:ur(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(s){this._clearSearchOnAdd=s}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(s=>s.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(s){s.multiple&&this.itemsList.clearSelected(),s.items&&this._setItems(s.items.currentValue||[]),s.isOpen&&(this._manualOpen=ur(s.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),ur(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(s){if(zr[s.which]){if(!1===this.keyDownFn(s))return;this.handleKeyCode(s)}else s.key&&1===s.key.length&&this._keyPress$.next(s.key.toLocaleLowerCase())}handleKeyCode(s){switch(s.which){case zr.ArrowDown:this._handleArrowDown(s);break;case zr.ArrowUp:this._handleArrowUp(s);break;case zr.Space:this._handleSpace(s);break;case zr.Enter:this._handleEnter(s);break;case zr.Tab:this._handleTab(s);break;case zr.Esc:this.close(),s.preventDefault();break;case zr.Backspace:this._handleBackspace()}}handleMousedown(s){const c=s.target;"INPUT"!==c.tagName&&s.preventDefault(),c.classList.contains("ng-clear-wrapper")?this.handleClearClick():c.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():c.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(s){this.itemsList.clearSelected(),this._handleWriteValue(s),this._cd.markForCheck()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}setDisabledState(s){this._disabled=s,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(s){!s||s.disabled||this.disabled||(this.multiple&&s.selected?this.unselect(s):this.select(s),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(s){s.selected||(this.itemsList.select(s),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(s.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.readOnly||this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(s){s&&(this.itemsList.unselect(s),this.focus(),this._updateNgModel(),this.removeEvent.emit(s))}selectTag(){let s;s=Co(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const c=Q=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(Q,null):this.itemsList.addItem(Q);!function Ho(lt){return lt instanceof Promise}(s)?s&&this.select(c(s)):s.then(Q=>this.select(c(Q))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const s=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(c=>c.label.toLowerCase()===s)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(c=>c.label.toLowerCase()===s))&&!this.loading}showNoItemsFound(){const s=0===this.itemsList.filteredItems.length;return(s&&!this._isTypeahead&&!this.loading||s&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(s){this._isComposing=!1,!this.searchWhileComposing&&this.filter(s)}filter(s){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=s,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(s),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:s,items:this.itemsList.filteredItems.map(c=>c.value)}),this.open())}onInputFocus(s){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(s),this.focused=!0)}onInputBlur(s){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(s),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(s){s.disabled||this.itemsList.markItem(s)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const s=this.selectedItems&&this.selectedItems[0];this.searchTerm=s&&s.label||null}_setItems(s){const c=s[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=ur(c)?!Uo(c):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(s),s.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&ur(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const s=Q=>{this.items=Q.map(dt=>({$ngOptionValue:dt.value,$ngOptionLabel:dt.elementRef.nativeElement.innerHTML,disabled:dt.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},c=()=>{const Q=(0,On.T)(this.ngOptions.changes,this._destroy$);(0,On.T)(...this.ngOptions.map(dt=>dt.stateChange$)).pipe((0,Wn.R)(Q)).subscribe(dt=>{const It=this.itemsList.findItem(dt.value);It.disabled=dt.disabled,It.label=dt.label||It.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,ua.O)(this.ngOptions),(0,Wn.R)(this._destroy$)).subscribe(Q=>{this.bindLabel=this._defaultLabel,s(Q),c()})}_isValidWriteValue(s){if(!ur(s)||this.multiple&&""===s||Array.isArray(s)&&0===s.length)return!1;const c=Q=>!(!ur(this.compareWith)&&Uo(Q)&&this.bindValue)||(this._console.warn(`Setting object(${JSON.stringify(Q)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1);return this.multiple?Array.isArray(s)?s.every(Q=>c(Q)):(this._console.warn("Multiple select ngModel should be array."),!1):c(s)}_handleWriteValue(s){if(!this._isValidWriteValue(s))return;const c=Q=>{let dt=this.itemsList.findItem(Q);if(dt)this.itemsList.select(dt);else{const It=Uo(Q),Kt=!It&&!this.bindValue;It||Kt?this.itemsList.select(this.itemsList.mapItem(Q,null)):this.bindValue&&(dt={[this.bindLabel]:null,[this.bindValue]:Q},this.itemsList.select(this.itemsList.mapItem(dt,null)))}};this.multiple?s.forEach(Q=>c(Q)):c(s)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,Wn.R)(this._destroy$),(0,nl.b)(s=>this._pressedKeys.push(s)),(0,No.b)(200),(0,Zr.h)(()=>this._pressedKeys.length>0),(0,S.U)(()=>this._pressedKeys.join(""))).subscribe(s=>{const c=this.itemsList.findByLabel(s);c&&(this.isOpen?(this.itemsList.markItem(c),this._scrollToMarked(),this._cd.markForCheck()):this.select(c)),this._pressedKeys=[]})}_setInputAttributes(){const s=this.searchInput.nativeElement,c={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const Q of Object.keys(c))s.setAttribute(Q,c[Q])}_updateNgModel(){const s=[];for(const Q of this.selectedItems)if(this.bindValue){let dt=null;if(Q.children){const It=this.groupValue?this.bindValue:this.groupBy;dt=Q.value[It||this.groupBy]}else dt=this.itemsList.resolveNested(Q.value,this.bindValue);s.push(dt)}else s.push(Q.value);const c=this.selectedItems.map(Q=>Q.value);this.multiple?(this._onChange(s),this.changeEvent.emit(c)):(this._onChange(ur(s[0])?s[0]:null),this.changeEvent.emit(c[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(s){this.searchTerm=s,this._isTypeahead&&this.typeahead.next(s)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(s){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),s.preventDefault()):this.showAddTag?(this.selectTag(),s.preventDefault()):this.close():this.close())}_handleEnter(s){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}s.preventDefault()}_handleSpace(s){this.isOpen||this._manualOpen||(this.open(),s.preventDefault())}_handleArrowDown(s){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),s.preventDefault()}_handleArrowUp(s){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),s.preventDefault())}_nextItemIsTag(s){const c=this.itemsList.markedIndex+s;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(c<0||c===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const s=this.searchTerm&&this.searchTerm.trim();return s&&s.length>=this.minTermLength}_mergeGlobalConfig(s){this.placeholder=this.placeholder||s.placeholder,this.notFoundText=this.notFoundText||s.notFoundText,this.typeToSearchText=this.typeToSearchText||s.typeToSearchText,this.addTagText=this.addTagText||s.addTagText,this.loadingText=this.loadingText||s.loadingText,this.clearAllText=this.clearAllText||s.clearAllText,this.virtualScroll=ur(this.virtualScroll)?this.virtualScroll:!!ur(s.disableVirtualScroll)&&!s.disableVirtualScroll,this.openOnEnter=ur(this.openOnEnter)?this.openOnEnter:s.openOnEnter,this.appendTo=this.appendTo||s.appendTo,this.bindValue=this.bindValue||s.bindValue,this.bindLabel=this.bindLabel||s.bindLabel,this.appearance=this.appearance||s.appearance}}_e.\u0275fac=function(s){return new(s||_e)(t.\u0275\u0275injectAttribute("class"),t.\u0275\u0275injectAttribute("autofocus"),t.\u0275\u0275directiveInject(Xt),t.\u0275\u0275directiveInject(re),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(qt))},_e.\u0275cmp=t.\u0275\u0275defineComponent({type:_e,selectors:[["ng-select"]],contentQueries:function(s,c,Q){if(1&s&&(t.\u0275\u0275contentQuery(Q,$s,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,Ks,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,ya,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,As,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,Qr,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,kl,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,Bn,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,_a,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,Go,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,br,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,xa,5,t.TemplateRef),t.\u0275\u0275contentQuery(Q,Lt,5)),2&s){let dt;t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.optionTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.optgroupTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.labelTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.multiLabelTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.headerTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.footerTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.notFoundTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.typeToSearchTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.loadingTextTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.tagTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.loadingSpinnerTemplate=dt.first),t.\u0275\u0275queryRefresh(dt=t.\u0275\u0275loadQuery())&&(c.ngOptions=dt)}},viewQuery:function(s,c){if(1&s&&(t.\u0275\u0275viewQuery(At,5),t.\u0275\u0275viewQuery(Vr,7)),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.dropdownPanel=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.searchInput=Q.first)}},hostVars:20,hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("keydown",function(dt){return c.handleKeyDown(dt)}),2&s&&t.\u0275\u0275classProp("ng-select-typeahead",c.typeahead)("ng-select-multiple",c.multiple)("ng-select-taggable",c.addTag)("ng-select-searchable",c.searchable)("ng-select-clearable",c.clearable)("ng-select-opened",c.isOpen)("ng-select",c.useDefaultClass)("ng-select-disabled",c.disabled)("ng-select-filtered",c.filtered)("ng-select-single",c.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[t.\u0275\u0275ProvidersFeature([{provide:M,useExisting:(0,t.forwardRef)(()=>_e),multi:!0},os]),t.\u0275\u0275NgOnChangesFeature],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(s,c){if(1&s){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275listener("mousedown",function(It){return c.handleMousedown(It)}),t.\u0275\u0275elementStart(1,"div",1)(2,"div",2),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,Ms,2,2,"ng-container",3),t.\u0275\u0275template(5,sc,1,5,null,3),t.\u0275\u0275elementStart(6,"div",4)(7,"input",5,6),t.\u0275\u0275listener("input",function(){t.\u0275\u0275restoreView(Q);const It=t.\u0275\u0275reference(8);return t.\u0275\u0275resetView(c.filter(It.value))})("compositionstart",function(){return c.onCompositionStart()})("compositionend",function(){t.\u0275\u0275restoreView(Q);const It=t.\u0275\u0275reference(8);return t.\u0275\u0275resetView(c.onCompositionEnd(It.value))})("focus",function(It){return c.onInputFocus(It)})("blur",function(It){return c.onInputBlur(It)})("change",function(It){return It.stopPropagation()}),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(9,gp,4,1,"ng-container",3),t.\u0275\u0275template(10,Vo,3,1,"span",7),t.\u0275\u0275elementStart(11,"span",8),t.\u0275\u0275element(12,"span",9),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(13,eh,7,19,"ng-dropdown-panel",10)}2&s&&(t.\u0275\u0275classProp("ng-appearance-outline","outline"===c.appearance)("ng-has-value",c.hasValue),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(c.placeholder),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(!c.multiLabelTemplate||!c.multiple)&&c.selectedItems.length>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.multiple&&c.multiLabelTemplate&&c.selectedValues.length>0),t.\u0275\u0275advance(1),t.\u0275\u0275attribute("aria-expanded",c.isOpen)("aria-owns",c.isOpen?c.dropdownId:null),t.\u0275\u0275advance(1),t.\u0275\u0275property("readOnly",!c.searchable||c.itemsList.maxItemsSelected)("disabled",c.disabled)("value",c.searchTerm?c.searchTerm:""),t.\u0275\u0275attribute("id",c.labelForId)("tabindex",c.tabIndex)("aria-activedescendant",c.isOpen?null==c.itemsList||null==c.itemsList.markedItem?null:c.itemsList.markedItem.htmlId:null)("aria-controls",c.isOpen?c.dropdownId:null),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",c.loading),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.showClear()),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",c.isOpen))},dependencies:[R.NgClass,R.NgForOf,R.NgIf,R.NgTemplateOutlet,At,no],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0});class yi{constructor(){this._selected=[]}get value(){return this._selected}select(s,c,Q){if(s.selected=!0,(!s.children||!c&&Q)&&this._selected.push(s),c)if(s.parent){const dt=s.parent.children.length,It=s.parent.children.filter(Kt=>Kt.selected).length;s.parent.selected=dt===It}else s.children&&(this._setChildrenSelectedState(s.children,!0),this._removeChildren(s),Q&&this._activeChildren(s)?this._selected=[...this._selected.filter(dt=>dt.parent!==s),s]:this._selected=[...this._selected,...s.children.filter(dt=>!dt.disabled)])}unselect(s,c){if(this._selected=this._selected.filter(Q=>Q!==s),s.selected=!1,c)if(s.parent&&s.parent.selected){const Q=s.parent.children;this._removeParent(s.parent),this._removeChildren(s.parent),this._selected.push(...Q.filter(dt=>dt!==s&&!dt.disabled)),s.parent.selected=!1}else s.children&&(this._setChildrenSelectedState(s.children,!1),this._removeChildren(s))}clear(s){this._selected=s?this._selected.filter(c=>c.disabled):[]}_setChildrenSelectedState(s,c){for(const Q of s)Q.disabled||(Q.selected=c)}_removeChildren(s){this._selected=[...this._selected.filter(c=>c.parent!==s),...s.children.filter(c=>c.parent===s&&c.disabled&&c.selected)]}_removeParent(s){this._selected=this._selected.filter(c=>c!==s)}_activeChildren(s){return s.children.every(c=>!c.disabled||c.selected)}}class Ei{}Ei.\u0275fac=function(s){return new(s||Ei)},Ei.\u0275mod=t.\u0275\u0275defineNgModule({type:Ei}),Ei.\u0275inj=t.\u0275\u0275defineInjector({providers:[{provide:re,useValue:function Ge(){return new yi}}],imports:[R.CommonModule]});var yn=ht(655);const _r=["elements"];function Un(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",3,4),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.tabClick(It))}),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("hidden-offscreen",c.hidden)("active",Q.currentTab===c),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",c.text,"\n")}}function Ts(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",5),t.\u0275\u0275listener("click",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onOpenTabsClick(dt))}),t.\u0275\u0275element(1,"img",6),t.\u0275\u0275elementEnd()}}const as=function(lt){return{tab:lt,edit:null}};function Xo(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",9),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(Kt.tabClick(It))}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("active",Q.currentTab===c),t.\u0275\u0275property("routerLink","./")("queryParams",Q.useQuery?t.\u0275\u0275pureFunction1(5,as,c.id):void 0),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",c.text," ")}}function $o(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",7),t.\u0275\u0275template(1,Xo,2,7,"div",8),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.hiddenTabs)("ngForTrackBy",c.trackByIdentity)}}class ac{constructor(s,c,Q){this.el=s,this.cd=c,this.zone=Q,this.tabs=[],this.useQuery=!1,this.currentTabChange=new t.EventEmitter,this.isMoreButtonVisible=!1,this.isOpened=!1,this.trackByIdentity=(dt,It)=>It.id,this.zone.runOutsideAngular(()=>{this.subClick=ln(window,"click").subscribe(dt=>{let It=dt.target;for(;It;){if(It.classList.contains("btn-more"))return;It=It.parentElement}this.isOpened=!1}),this.subResize=ln(window,"resize").pipe((0,No.b)(50)).subscribe(dt=>{this.recalcTabsVisibility(!0)})})}get hiddenTabs(){return this.tabs.filter(s=>s.hidden)}tabClick(s){this.currentTab=s,this.currentTabChange.emit(this.currentTab)}scrollToTabs(){this.el.nativeElement.scrollIntoView()}ngAfterViewInit(){this.recalcTabsVisibility()}ngOnChanges(s){var c,Q;const dt=s.tabs;if(dt.previousValue!==dt.currentValue||(null===(c=dt.previousValue)||void 0===c?void 0:c.length)!==(null===(Q=dt.currentValue)||void 0===Q?void 0:Q.length)){if(this.isArraysEqual(dt.previousValue,dt.currentValue))return!1;setTimeout(()=>{this.recalcTabsVisibility()})}}recalcTabsVisibility(s=!1){if(!this.elements)return;const c=this.el.nativeElement.offsetWidth,Q=this.elements.toArray().map(It=>It.nativeElement);let dt=0;this.isMoreButtonVisible=!1,Q.forEach((It,Kt)=>{const le=Kt===Q.length-1,xe=It.getBoundingClientRect();dt+=xe.width,dt>c+8-(le?0:37)?(this.tabs[Kt].hidden=!0,this.isMoreButtonVisible=!0):this.tabs[Kt].hidden=!1}),s&&this.cd.detectChanges()}ngOnDestroy(){this.subClick&&this.subClick.unsubscribe(),this.subResize&&this.subResize.unsubscribe()}onOpenTabsClick(s){this.isOpened=!this.isOpened}isArraysEqual(s,c){if(!s||!c||s.length!==c.length)return!1;for(let Q=0;Q img[_ngcontent-%COMP%]{height:7px;opacity:.4}.dropdown[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;background-color:#fff;display:flex;flex-direction:column;box-shadow:0 0 10px #0000001f;border-radius:4px;z-index:1;overflow:hidden}.dropdown[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:6px 16px}.dropdown[_ngcontent-%COMP%] > div.active[_ngcontent-%COMP%]{background-color:var(--cl-bg);color:var(--cl-input-text)}'],changeDetection:0});const ym=["table"];function mp(lt,s){1<&&t.\u0275\u0275element(0,"img",11)}function vp(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",9),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext().level,le=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(le.selectRow(It,Kt))}),t.\u0275\u0275template(1,mp,1,0,"img",10),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext().level,dt=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("selected",dt.selected[Q]===c),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.children?null:c.children.length),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",c.name," ")}}function nd(lt,s){if(1<&&t.\u0275\u0275template(0,vp,3,4,"div",8),2<){const c=s.data,Q=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngForOf",c)("ngForTrackBy",Q.trackByIndex)}}function Jh(lt,s){1<&&t.\u0275\u0275elementContainer(0)}function tu(lt,s){1<&&t.\u0275\u0275elementContainer(0)}const nh=function(lt,s){return{data:lt,level:s}};function eu(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,tu,1,0,"ng-container",5),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit,Q=s.index;t.\u0275\u0275nextContext();const dt=t.\u0275\u0275reference(3);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",dt)("ngTemplateOutletContext",t.\u0275\u0275pureFunction2(2,nh,c.children,Q+1))}}function ja(lt,s){1<&&(t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275element(1,"img",13),t.\u0275\u0275elementEnd())}const cl=function(lt){return{data:lt,level:0}};class lc{constructor(s,c){this.ds=s,this.cd=c,this.select=new t.EventEmitter,this.isLoading=!0,this.tabs=[{id:"pivot",text:"Pivot tables"},{id:"kpi",text:"KPI"},{id:"worksheets",text:"Worksheets"},{id:"metrics",text:"Metrics"}],this.currentTab=this.tabs[0],this.data=[],this.filteredData=[],this.selected=[],this.trackByIndex=(Q,dt)=>Q}ngOnInit(){this.subSearch=this.$modal.search.subscribe(s=>{this.applyFiltering(s)}),this.requestData()}selectRow(s,c){if(!s.children)return this.select.emit(s),void this.$modal.close();this.selected[c]=s,this.selected.splice(c+1,this.selected.length-c),this.scrollToLast()}requestData(s){return(0,yn.mG)(this,void 0,void 0,function*(){s||(s=this.currentTab),this.isLoading=!0,this.ds.requestListOfDataSources(s.id).then(c=>{this.retrieveData(c)}).catch(c=>{console.error(c)}).finally(()=>{this.isLoading=!1,this.cd.detectChanges()})})}retrieveData(s){this.data=s.children,this.selected=[],this.applyFiltering()}ngOnDestroy(){clearTimeout(this.scrollTimeout),this.subSearch.unsubscribe()}scrollToLast(){clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const s=this.table.nativeElement,c=this.table.nativeElement.children[0].offsetWidth;s.scroll({left:this.selected.length*c,behavior:"smooth"})},10)}applyFiltering(s=""){if(""===s)return this.filteredData=this.data,void this.cd.detectChanges();this.selected=[],this.filteredData=JSON.parse(JSON.stringify(this.data)),this.filterItems(this.filteredData,s.toLowerCase()),this.scrollToLast(),this.cd.detectChanges()}filterItems(s,c){const Q=[];return s.forEach(dt=>{var It;null!==(It=dt.children)&&void 0!==It&&It.length&&this.filterItems(dt.children,c)||dt.name.toLowerCase().includes(c)||Q.push(dt)}),Q.forEach(dt=>{s.splice(s.indexOf(dt),1)}),!!s.length}}lc.\u0275fac=function(s){return new(s||lc)(t.\u0275\u0275directiveInject(W.Do),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},lc.\u0275cmp=t.\u0275\u0275defineComponent({type:lc,selectors:[["dsw-ds-sel-dialog"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(ym,5),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.table=Q.first)}},outputs:{select:"select"},decls:10,vars:10,consts:[[1,"header"],[3,"tabs","currentTab","useQuery","currentTabChange"],["items",""],[1,"table"],["table",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","dsw-spinner",4,"ngIf"],["class","row",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"row",3,"click"],["src","assets/img/widget-icons/folder-1.svg",4,"ngIf"],["src","assets/img/widget-icons/folder-1.svg"],[1,"dsw-spinner"],["src","assets/img/spinner.svg"]],template:function(s,c){if(1&s&&(t.\u0275\u0275elementStart(0,"section",0)(1,"dsw-tabs",1),t.\u0275\u0275listener("currentTabChange",function(dt){return c.requestData(dt)}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(2,nd,1,2,"ng-template",null,2,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(4,"section",3,4)(6,"div"),t.\u0275\u0275template(7,Jh,1,0,"ng-container",5),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(8,eu,2,5,"div",6),t.\u0275\u0275template(9,ja,2,0,"div",7),t.\u0275\u0275elementEnd()),2&s){const Q=t.\u0275\u0275reference(3);t.\u0275\u0275advance(1),t.\u0275\u0275property("tabs",c.tabs)("currentTab",c.currentTab)("useQuery",!1),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngTemplateOutlet",Q)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(8,cl,c.filteredData)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.selected)("ngForTrackBy",c.trackByIndex),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.isLoading)}},dependencies:[R.NgForOf,R.NgIf,R.NgTemplateOutlet,ac],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.header[_ngcontent-%COMP%]{flex-shrink:0}.table[_ngcontent-%COMP%]{position:relative;flex:1 1 100%;min-width:800px;min-height:0;display:flex;white-space:nowrap;overflow:hidden}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-shrink:0;flex-grow:1;flex-basis:25%;border-right:1px solid var(--cl-input-border);overflow:auto;min-width:25%;width:25%}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#EBEBEA}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:0;background:rgba(28,29,32,.4)}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{position:sticky;left:0;z-index:2;background:white}.row[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:5px 4px;cursor:pointer;align-items:center;color:var(--cl-widget-filter-txt);max-width:25em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative}.row[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover);color:var(--cl-header-txt)}.row.selected[_ngcontent-%COMP%]{color:var(--cl-accent);background-color:var(--cl-sidebar-bg)}.row[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:18px;vertical-align:text-top;margin-right:2px}'],changeDetection:0});var En=ht(8714);const iu=[{label:"OK",default:!0,autoClose:!0}];class Ys{constructor(){this.modals=new Z.X([])}show(s,c){"string"==typeof s&&(s={message:s}),s.buttons||(s.buttons=JSON.parse(JSON.stringify(iu)),c&&(s.buttons[0].click=c));const Q=this.modals.getValue();Q.push(s),this.modals.next(Q)}close(s){const c=this.modals.getValue(),Q=c.indexOf(s);-1!==Q&&(c.splice(Q,1),this.modals.next(c),s.onClose&&s.onClose())}}Ys.\u0275fac=function(s){return new(s||Ys)},Ys.\u0275prov=t.\u0275\u0275defineInjectable({token:Ys,factory:Ys.\u0275fac,providedIn:"root"});var rd=ht(9386);function _m(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",2)(1,"label"),t.\u0275\u0275text(2,"Widget type"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"ng-select",3),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.type=dt)})("change",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onTypeChange())}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"label"),t.\u0275\u0275text(5,"Data source"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"dsw-input",4),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.model.dataSource=dt)})("keydown.enter",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onDatasourceChanged())})("choose",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onSelectDataSource())}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"label"),t.\u0275\u0275text(8,"Reference to"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"ng-select",5),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.model.dataLink=dt)})("change",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onLinkChange())}),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275property("ngModel",c.type)("items",c.widgetTypes)("clearable",!1)("closeOnSelect",!0),t.\u0275\u0275advance(3),t.\u0275\u0275property("required",c.invalid.includes("datasource"))("ngModel",c.model.dataSource),t.\u0275\u0275advance(3),t.\u0275\u0275property("items",c.widgetList)("ngModel",c.model.dataLink)("clearable",!1)("closeOnSelect",!0)}}class Ca{constructor(s,c,Q){this.ms=s,this.eds=c,this.ds=Q,this.model=null,this.invalid=[],this.widgetList=[],this.widgetTypes=[En.hg.pivot,En.hg.columnChart,En.hg.columnChartStacked,En.hg.columnChart3D,En.hg.barChart,En.hg.barChartStacked,En.hg.lineChart,En.hg.lineChartMarkers,En.hg.comboChart,En.hg.hilowChart,En.hg.areaChart,En.hg.bubbleChart,En.hg.xyChart,En.hg.pieChart,En.hg.pieChart3D,En.hg.donutChart,En.hg.donutChart3D,En.hg.treeMapChart,En.hg.bullseyeChart,En.hg.timeChart,En.hg.regular,En.hg.textMeter,En.hg.map]}ngOnInit(){var s,c,Q;this.widgetList=this.eds.getWidgetsList([null===(s=this.model)||void 0===s?void 0:s.name]),this.type=En.hg[null===(Q=null===(c=this.model)||void 0===c?void 0:c.type)||void 0===Q?void 0:Q.toLowerCase()]}onSelectDataSource(){this.ms.show({title:"Choose data source",component:lc,buttons:[{label:"Cancel",autoClose:!0}],closeByEsc:!0,search:"",minHeight:!0,outputs:{select:s=>{this.model.dataSource=s.value+"."+s.type,this.onDatasourceChanged()}}})}ngOnDestroy(){this.eds.cancelEditing()}onTypeChange(){this.model&&(this.model.type=Object.entries(En.hg).find(s=>s[1]===this.type)[0]),this.eds.updateEditedWidget({widget:this.model,reCreate:!0})}onDatasourceChanged(){this.eds.generateWidgetMdx(this.model).then(()=>{this.eds.updateEditedWidget({widget:this.model,refreshData:!0})})}onLinkChange(){this.eds.updateEditedWidget({widget:this.model,reCreate:!0})}onSave(){this.eds.save(this.model)}}function cc(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.deleteWidgetClick())}),t.\u0275\u0275text(1,"Delete widget"),t.\u0275\u0275elementEnd()}}Ca.\u0275fac=function(s){return new(s||Ca)(t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(Ko),t.\u0275\u0275directiveInject(rd.s))},Ca.\u0275cmp=t.\u0275\u0275defineComponent({type:Ca,selectors:[["dsw-type-and-ds"]],inputs:{model:"model",invalid:"invalid"},decls:3,vars:2,consts:[["isWidgetEditorWarning","true",3,"isBack","apply"],["class","container",4,"ngIf"],[1,"container"],["bindLabel","label",1,"dsw",3,"ngModel","items","clearable","closeOnSelect","ngModelChange","change"],["chooseButton","true",3,"required","ngModel","ngModelChange","keydown.enter","choose"],["bindLabel","label","bindValue","name",1,"dsw",3,"items","ngModel","clearable","closeOnSelect","ngModelChange","change"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"dsw-sidebar-actions",0),t.\u0275\u0275listener("apply",function(){return c.onSave()}),t.\u0275\u0275text(1," Type & Datasource\n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(2,_m,10,10,"div",1)),2&s&&(t.\u0275\u0275property("isBack",!0),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",c.model))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#EBEBEA}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:rgba(28,29,32,.4)}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Roboto Condensed;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}"]});class Zs{constructor(s,c,Q,dt,It){this.ms=s,this.dbs=c,this.eds=Q,this.mds=dt,this.sbs=It,this.widget=null,this.invalid=[],this.model={edKey:"ed"+(new Date).getTime(),dashboard:this.dbs.current.value,name:"",title:"",dataSource:"",type:"pivot",dataLink:"",dataProperties:[],dependents:[],controls:[],mdx:"",x:0,y:0,rows:4,cols:4}}ngOnInit(){this.eds.resetSavedState(),this.widget?(this.model=this.widget,this.widget.oldWidget=JSON.parse(JSON.stringify(this.widget)),this.eds.updateEditedWidget({widget:this.model}),this.eds.resetSavedState()):this.initializeNewWidget()}ngOnDestroy(){this.eds.cancelEditing()}onCancelEditing(){this.close()}close(){this.sbs.showComponent(null)}onSave(){this.eds.save(this.model)}initializeNewWidget(){const s=this.dbs.getWidgets().filter(c=>c.type!==q._.const.emptyWidgetClass).length+1;this.model.name=`Widget${s}`,this.eds.onNewWidget.emit(this.model)}onTypeAndDataSourceClick(){this.eds.navigateDataSourceAndType(this.model)}updateWidget(){this.eds.updateEditedWidget({widget:this.model})}deleteWidgetClick(){this.eds.deleteWidget(this.model)}}Zs.\u0275fac=function(s){return new(s||Zs)(t.\u0275\u0275directiveInject(sr),t.\u0275\u0275directiveInject(rd.s),t.\u0275\u0275directiveInject(Ko),t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(U.P))},Zs.\u0275cmp=t.\u0275\u0275defineComponent({type:Zs,selectors:[["dsw-widget-editor"]],inputs:{widget:"widget",invalid:"invalid"},decls:37,vars:4,consts:[["isWidgetEditorWarning","true",3,"cancel","apply"],[1,"container"],[1,"headline"],[3,"required","ngModel","ngModelChange","change"],[3,"ngModel","ngModelChange","change"],[1,"navigation"],[1,"btn-section",3,"click"],["src","assets/img/icons/icon-next-blue.svg"],["title","Not implemented yet",1,"btn-section","disabled"],[1,"footer"],["class","btn btn-white",3,"click",4,"ngIf"],[1,"btn","btn-white",3,"click"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"dsw-sidebar-actions",0),t.\u0275\u0275listener("cancel",function(){return c.onCancelEditing()})("apply",function(){return c.onSave()}),t.\u0275\u0275text(1," Add widget\n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"div",1)(3,"div",2),t.\u0275\u0275text(4," General settings "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"label"),t.\u0275\u0275text(6,"Name"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"dsw-input",3),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.name=dt})("change",function(){return c.updateWidget()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"label"),t.\u0275\u0275text(9,"Title"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"dsw-input",4),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.title=dt})("change",function(){return c.updateWidget()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"div",5)(12,"button",6),t.\u0275\u0275listener("click",function(){return c.onTypeAndDataSourceClick()}),t.\u0275\u0275text(13," Type and data source "),t.\u0275\u0275element(14,"img",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"button",8),t.\u0275\u0275text(16," Widget settings "),t.\u0275\u0275element(17,"img",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(18,"button",8),t.\u0275\u0275text(19," Controls "),t.\u0275\u0275element(20,"img",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(21,"button",8),t.\u0275\u0275text(22," Data properties "),t.\u0275\u0275element(23,"img",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(24,"div",2),t.\u0275\u0275text(25," Diagram and pivot table "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(26,"button",8),t.\u0275\u0275text(27," Table settings "),t.\u0275\u0275element(28,"img",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(29,"button",8),t.\u0275\u0275text(30," Diagram settings "),t.\u0275\u0275element(31,"img",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(32,"button",8),t.\u0275\u0275text(33," Diagram legend "),t.\u0275\u0275element(34,"img",7),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(35,"div",9),t.\u0275\u0275template(36,cc,2,0,"button",10),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275advance(7),t.\u0275\u0275property("required",c.invalid.includes("name"))("ngModel",c.model.name),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngModel",c.model.title),t.\u0275\u0275advance(26),t.\u0275\u0275property("ngIf",c.widget))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#EBEBEA}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:rgba(28,29,32,.4)}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Roboto Condensed;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}"],changeDetection:0});var nu=ht(2544),hc=ht(4889);class Ko{constructor(s,c,Q,dt,It,Kt){this.dbs=s,this.ms=c,this.sbs=Q,this.bs=dt,this.es=It,this.ds=Kt,this.onCancelEditing=new t.EventEmitter,this.onNewWidget=new t.EventEmitter,this.onEditedWidgetChanged=new t.EventEmitter,this.onSave=new t.EventEmitter,this.onUnsavedChanged=new Z.X(!1),this.onDeleteWidget=new t.EventEmitter}resetSavedState(){this.onUnsavedChanged.next(!1)}unsaved(){this.onUnsavedChanged.next(!0)}getWidgetsList(s=[],c=!0){const Q=this.dbs.getWidgetsWithoutEmpty(s).map(dt=>({name:dt.name,label:dt.name+(dt.title?` (${dt.title})`:"")}));return c?[{label:"",name:""},...Q]:Q}updateEditedWidget(s){this.unsaved(),s.reCreate&&(s.widget.edKey="ed"+(new Date).getTime()),this.onEditedWidgetChanged.emit(s)}cancelEditing(){this.onCancelEditing.emit(),this.resetSavedState()}save(s){var c;this.validate(s)&&(this.dbs.generateDisplayInfo(s),this.ds.saveWidget(s.dashboard,s,null===(c=s?.oldWidget)||void 0===c?void 0:c.name).then(Q=>{this.dbs.saveWidgetPositionAndSize(s),this.onSave.emit(),this.sbs.showComponent(null),this.resetSavedState(),this.bs.broadcast("refresh-dashboard")}).catch(Q=>{}))}generateWidgetMdx(s){return(0,yn.mG)(this,void 0,void 0,function*(){if(s.mdx="",s.kpiclass="",s.kpitype="",!s.dataSource)return;const c=s.dataSource.split(".");if("kpi"===c.pop().toLowerCase())s.kpiclass=c.join("."),s.kpitype="sql";else{const dt=yield this.ds.getPivotData(s.dataSource);dt&&(s.mdx=dt.mdx||"")}})}askForWidgetDeletion(s,c){this.ms.show({message:`Do you really want do delete widget "${s.name}"?`,buttons:[{label:"No",autoClose:!0},{label:"Yes",default:!0,autoClose:!0,click:c}]})}deleteWidget(s){const c=()=>{this.onDeleteWidget.emit(s),this.sbs.showComponent(null)};this.askForWidgetDeletion(s,()=>{s.oldWidget?this.ds.deleteWidget(s.dashboard,s.oldWidget.name).then(()=>{c()}):c()})}validate(s){return s.name?!(!s.dataSource&&!s.dataLink)||(this.es.show('Please choose "Data source" or "Reference to"',!0),void this.navigateDataSourceAndType(s,["datasource"])):(this.es.show("Please enter widget name",!0),void this.sbs.showComponent({component:Zs,single:!0,inputs:{invalid:["name"]}}))}navigateDataSourceAndType(s,c=[]){this.sbs.showComponent({component:Ca,single:!0,inputs:{model:s,invalid:c}})}}function xm(lt,s){1<&&(t.\u0275\u0275elementStart(0,"div",3),t.\u0275\u0275text(1,"You have unsaved changes"),t.\u0275\u0275elementEnd())}Ko.\u0275fac=function(s){return new(s||Ko)(t.\u0275\u0275inject(rd.s),t.\u0275\u0275inject(Ys),t.\u0275\u0275inject(U.P),t.\u0275\u0275inject(nu.M),t.\u0275\u0275inject(hc.T),t.\u0275\u0275inject(W.Do))},Ko.\u0275prov=t.\u0275\u0275defineInjectable({token:Ko,factory:Ko.\u0275fac,providedIn:"root"});class Ps{constructor(s,c,Q){this.sbs=s,this.eds=c,this.cd=Q,this.isBack=!1,this.isWidgetEditorWarning=!1,this.cancel=new t.EventEmitter,this.apply=new t.EventEmitter,this.isWidgetEditorWarningVisible=!1}ngOnInit(){this.subOnUnsavedChanged=this.eds.onUnsavedChanged.subscribe(s=>{this.isWidgetEditorWarningVisible=s,this.cd.detectChanges()})}onCloseClick(){this.isBack&&this.sbs.popComponent(),this.cancel.emit()}ngOnDestroy(){this.subOnUnsavedChanged.unsubscribe()}}function _p(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",3),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onSelectButtonClick())}),t.\u0275\u0275text(1,"..."),t.\u0275\u0275elementEnd()}}Ps.\u0275fac=function(s){return new(s||Ps)(t.\u0275\u0275directiveInject(U.P),t.\u0275\u0275directiveInject(Ko),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},Ps.\u0275cmp=t.\u0275\u0275defineComponent({type:Ps,selectors:[["dsw-sidebar-actions"]],inputs:{isBack:"isBack",isWidgetEditorWarning:"isWidgetEditorWarning"},outputs:{cancel:"cancel",apply:"apply"},ngContentSelectors:["*"],decls:11,vars:10,consts:[[3,"title","click"],["class","unsaved",4,"ngIf"],["src","assets/img/icons/icon-check.svg"],[1,"unsaved"]],template:function(s,c){1&s&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"button",0),t.\u0275\u0275listener("click",function(){return c.onCloseClick()}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"label")(4,"div"),t.\u0275\u0275projection(5),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(6,xm,2,0,"div",1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"button",0),t.\u0275\u0275listener("click",function(){return c.apply.emit()}),t.\u0275\u0275pipe(8,"i18n"),t.\u0275\u0275element(9,"img",2),t.\u0275\u0275text(10," Save\n"),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,6,"cancel")),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",c.isBack?"Back":"Close","\n"),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",c.isWidgetEditorWarning&&c.isWidgetEditorWarningVisible),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("warning",c.isWidgetEditorWarning&&c.isWidgetEditorWarningVisible),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(8,8,"save")))},dependencies:[R.NgIf,G.C],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative;white-space:nowrap;height:var(--header-height);display:flex;justify-content:space-between;border-bottom:1px solid var(--cl-header-border);margin-bottom:6px;margin-left:20px}[_nghost-%COMP%] button[_ngcontent-%COMP%]{padding:0;cursor:pointer;font-family:Roboto Condensed;display:block;text-align:left;font-size:14px;background-color:transparent;border:none;outline:none;flex-shrink:0;flex-grow:0;color:var(--cl-accent);min-width:50px;transition:background-color .3s linear}[_nghost-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--cl-header-btn-hover)}[_nghost-%COMP%] button[_ngcontent-%COMP%]:last-child{text-align:right}[_nghost-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:none;vertical-align:middle;transform:translateY(-1px);margin-right:4px;width:14px}[_nghost-%COMP%] > label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-family:Roboto Condensed;color:#000;font-size:16px}.img-accept[_ngcontent-%COMP%]{max-width:60%;max-height:60%}.unsaved[_ngcontent-%COMP%]{position:absolute;left:0;right:0;text-align:center;bottom:0;font-family:Roboto Condensed;font-size:12px;color:#f70000}"],changeDetection:0});class Kn{constructor(){this.type="text",this.required=!1,this.chooseButton=!1,this.choose=new t.EventEmitter,this.onChange=s=>{},this.onTouched=()=>{}}get isInvalid(){return this.required&&!this.model}writeValue(s){this.model=s}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){}onSelectButtonClick(){this.choose.emit()}onModelChange(s){this.writeValue(s),this.onChange(s)}}function Va(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",7),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).index,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.setTileColor(It))}),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=s.index,dt=t.\u0275\u0275nextContext();t.\u0275\u0275classMap("color-rect "+c),t.\u0275\u0275classProp("active",dt.tile.color==Q)}}function ru(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",7),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).index,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.setFontColor(It))}),t.\u0275\u0275elementStart(1,"span"),t.\u0275\u0275text(2,"A"),t.\u0275\u0275elementEnd()()}if(2<){const c=s.$implicit,Q=s.index,dt=t.\u0275\u0275nextContext();t.\u0275\u0275classMap("color-rect "+c+" "+dt.model.colors[dt.tile.color]),t.\u0275\u0275classProp("active",dt.tile.fontColor==Q),t.\u0275\u0275advance(1),t.\u0275\u0275classMap(c)}}function xp(lt,s){if(1<&&t.\u0275\u0275element(0,"img",10),2<){const c=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("src","assets/img/widget-icons/"+c,t.\u0275\u0275sanitizeUrl)}}function Bv(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).index,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.setIcon(It))}),t.\u0275\u0275template(1,xp,1,1,"img",9),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=s.index,dt=t.\u0275\u0275nextContext();t.\u0275\u0275classMap("cl"+dt.tile.color+" "+(dt.tile.icon==Q?"active":"")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c)}}Kn.\u0275fac=function(s){return new(s||Kn)},Kn.\u0275cmp=t.\u0275\u0275defineComponent({type:Kn,selectors:[["dsw-input"]],hostVars:4,hostBindings:function(s,c){2&s&&t.\u0275\u0275classProp("choose",c.chooseButton)("invalid",c.isInvalid)},inputs:{model:"model",type:"type",required:"required",chooseButton:"chooseButton"},outputs:{choose:"choose"},features:[t.\u0275\u0275ProvidersFeature([{provide:M,useExisting:(0,t.forwardRef)(()=>Kn),multi:!0}])],decls:3,vars:3,consts:[[3,"ngModel","type","ngModelChange","keydown.enter"],["inp",""],[3,"click",4,"ngIf"],[3,"click"]],template:function(s,c){if(1&s){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",0,1),t.\u0275\u0275listener("ngModelChange",function(It){return c.model=It})("ngModelChange",function(It){return c.onModelChange(It)})("keydown.enter",function(){t.\u0275\u0275restoreView(Q);const It=t.\u0275\u0275reference(1);return t.\u0275\u0275resetView(It.blur())}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(2,_p,2,0,"button",2)}2&s&&(t.\u0275\u0275property("ngModel",c.model)("type",c.type),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",c.chooseButton))},dependencies:[R.NgIf,a,He,gn],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative;display:block}.choose[_nghost-%COMP%] > input[_ngcontent-%COMP%]{width:calc(100% - var(--cl-input-height));border-radius:4px 0 0 4px}.invalid[_nghost-%COMP%] input[_ngcontent-%COMP%]{border-color:red}input[_ngcontent-%COMP%]{font-family:Roboto Condensed;font-size:13px;border-radius:4px;height:var(--cl-input-height);text-overflow:ellipsis}button[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:var(--cl-input-height);height:var(--cl-input-height);padding:0;border:1px solid var(--cl-input-border);border-left:none;background-color:var(--cl-input-bg);cursor:pointer;font-family:Roboto Condensed;color:var(--cl-input-text);font-size:16px;border-radius:0 4px 4px 0;transition:background-color .2s linear}button[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}button[_ngcontent-%COMP%]:active{transform:translateY(1px)}"]});class uc{set tile(s){const c=s!==this._tile;this._tile=s,c&&this.requestWidgetList()}get tile(){return this._tile}constructor(s,c,Q,dt,It,Kt,le){this.ds=s,this.ms=c,this.sbs=Q,this.st=dt,this.ns=It,this.router=Kt,this.cd=le,this.model={colors:q._.const.bgColorClasses,fontColors:q._.const.fontColors,icons:q._.const.icons,widgetList:[]}}ngOnInit(){this.subRouteChange=this.router.events.subscribe(s=>{s instanceof Y.NavigationStart&&this.onCancelEditing()}),this.saveOriginalTiles(),this.requestWidgetList()}ngOnDestroy(){this.ms.onEditDashboard.emit(!1),this.subRouteChange.unsubscribe()}saveOriginalTiles(){this.originalTiles=JSON.stringify(this.tiles)}restoreOriginalTiles(){this.tiles.splice(0,this.tiles.length),JSON.parse(this.originalTiles).forEach(c=>this.tiles.push(c))}requestWidgetList(){this.model.widgetList=[],this.tile&&!this.tile.isFolder&&this.ds.getWidgets(this.tile.fullPath).then(s=>this.fillWidgetList(s))}fillWidgetList(s){s&&(this.model.widgetList=s.widgets.map((c,Q)=>({idx:Q,name:c.title||c.name})),this.model.widgetList=[{idx:"",name:""},...this.model.widgetList],this.cd.detectChanges())}saveTiles(){const s=this.st.getTilesSettings();for(let c=0;c .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}",".color[_ngcontent-%COMP%]{display:inline-flex}.divider[_ngcontent-%COMP%]{margin-bottom:10px}.color-rect[_ngcontent-%COMP%]{display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;transition:outline .1s ease-out;outline-offset:-2px;float:left}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:16px}","[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}input[type=checkbox][_ngcontent-%COMP%]{cursor:pointer;outline:none;display:inline}input[type=checkbox][_ngcontent-%COMP%]:focus, input[type=checkbox][_ngcontent-%COMP%]:active{outline:none}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}"],changeDetection:0});var za=ht(3900),Cp=ht(4671);function bp(lt,s=Cp.y){return lt=lt??rh,(0,ns.e)((c,Q)=>{let dt,It=!0;c.subscribe((0,y.x)(Q,Kt=>{const le=s(Kt);(It||!lt(dt,le))&&(It=!1,dt=le,Q.next(Kt))}))})}function rh(lt,s){return lt===s}class dc{constructor(s,c){this.us=s,this.ss=c,this.title="Share dashboard",this.btnTitle="Copy link",this.shareUrl="",this.isSmall=!1,this.onCopy=()=>{},this.isCopied=!1,this.timeout=0,this.asBase64=!1,this.denyResize=!1,this.denyMove=!1,this.preventFilters=!1,this.url="",this.asBase64="1"===this.ss.storage.getItem("dsw-share-format-base64"),this.denyResize="1"===this.ss.storage.getItem("dsw-share-format-denyResize"),this.denyMove="1"===this.ss.storage.getItem("dsw-share-format-denyMove"),this.preventFilters="1"===this.ss.storage.getItem("dsw-share-format-preventFilters")}ngOnInit(){this.convertLink()}ngOnChanges(s){s.shareUrl.previousValue!==s.shareUrl.currentValue&&this.convertLink()}onCopyClick(){this.us.copyToClipboard(this.url),this.isCopied=!0,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isCopied=!1},2e3),this.onCopy()}ngOnDestroy(){clearTimeout(this.timeout)}onFormatChange(){this.ss.storage.setItem("dsw-share-format-base64",this.asBase64?"1":"0"),this.ss.storage.setItem("dsw-share-format-denyMove",this.denyMove?"1":"0"),this.ss.storage.setItem("dsw-share-format-denyResize",this.denyResize?"1":"0"),this.ss.storage.setItem("dsw-share-format-preventFilters",this.preventFilters?"1":"0"),this.convertLink()}convertLink(){this.url=this.shareUrl;const s=this.shareUrl.split("?"),c=s[1];if(!c)return;let Q=c.split("&");Q=Q.map(dt=>{const It=dt.split("=");return"FILTERS"===It[0]?(this.asBase64&&(It[1]=btoa(It[1])),this.preventFilters?"":It.join("=")):dt}),this.denyMove&&Q.push("nodrag=1"),this.denyResize&&Q.push("noresize=1"),this.preventFilters&&Q.push("nofilters=1"),s[1]=Q.filter(dt=>!!dt).join("&"),this.url=s.join("?")}}dc.\u0275fac=function(s){return new(s||dc)(t.\u0275\u0275directiveInject(Mr.f),t.\u0275\u0275directiveInject(V.V))},dc.\u0275cmp=t.\u0275\u0275defineComponent({type:dc,selectors:[["dsw-share-dashboard"]],inputs:{title:"title",btnTitle:"btnTitle",shareUrl:"shareUrl",isSmall:"isSmall"},features:[t.\u0275\u0275NgOnChangesFeature],decls:18,vars:9,consts:[["type","text",3,"value"],["type","checkbox",3,"ngModel","ngModelChange","change"],[1,"btn",3,"click"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"div")(1,"p"),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(3,"textarea",0),t.\u0275\u0275elementStart(4,"label")(5,"input",1),t.\u0275\u0275listener("ngModelChange",function(dt){return c.asBase64=dt})("change",function(){return c.onFormatChange()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(6,"Filters as Base64"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"label")(8,"input",1),t.\u0275\u0275listener("ngModelChange",function(dt){return c.denyResize=dt})("change",function(){return c.onFormatChange()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(9,"Deny widget resizing"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"label")(11,"input",1),t.\u0275\u0275listener("ngModelChange",function(dt){return c.denyMove=dt})("change",function(){return c.onFormatChange()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(12,"Deny widget moving"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"label")(14,"input",1),t.\u0275\u0275listener("ngModelChange",function(dt){return c.preventFilters=dt})("change",function(){return c.onFormatChange()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(15,"Ignore filters"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(16,"button",2),t.\u0275\u0275listener("click",function(){return c.onCopyClick()}),t.\u0275\u0275text(17),t.\u0275\u0275elementEnd()()),2&s&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.title),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("small",c.isSmall),t.\u0275\u0275property("value",c.url),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",c.asBase64),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngModel",c.denyResize),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngModel",c.denyMove),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngModel",c.preventFilters),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(c.isCopied?"Copied!":c.btnTitle))},dependencies:[I,He,gn],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{z-index:4;text-align:left;padding:20px}div[_ngcontent-%COMP%]{background:#FFFFFF;box-shadow:0 0 10px #0000001a;border-radius:10px;padding:20px}p[_ngcontent-%COMP%]{font-family:Roboto Condensed;font-weight:500;font-size:14px;line-height:16px;color:var(--cl-header-txt);margin-top:0;margin-bottom:20px}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin-bottom:10px;min-width:200px;color:var(--cl-header-txt);font-size:12px;line-height:14px}textarea[_ngcontent-%COMP%]{min-height:120px}textarea.small[_ngcontent-%COMP%]{min-height:80px}button[_ngcontent-%COMP%]{width:100%}input[_ngcontent-%COMP%]{min-width:16px;width:16px;display:inline-block;margin:0 4px 0 0;vertical-align:bottom}label[_ngcontent-%COMP%]{display:block;margin-bottom:10px;font-weight:400}"],changeDetection:0});var pc=ht(2983),su=ht(7207);const Cm=["container"],bm=["header"],jv=["filters"];function wm(lt,s){}function Em(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.model.error)}}class Ll{constructor(s,c,Q,dt,It,Kt,le,xe,Me,oi,hi,Li){this.fs=s,this.ds=c,this.ss=Q,this.vs=dt,this.i18n=It,this.wts=Kt,this.ns=le,this.bs=xe,this.ms=Me,this.cd=oi,this.route=hi,this.cfr=Li,this.model={error:"",filters:null},this.hasDatasourceChoser=!1,this.hasActions=!1,this.isHeader=!0,this.isHeader="1"!==this.route.snapshot.queryParamMap.get("noheader")}ngAfterViewInit(){}onHeaderButton(s){"displayAsPivot"===s.name&&this.component?this.component.displayAsPivot():(this.component&&this.component.onHeaderButton(s),this.header.cd.detectChanges())}ngOnInit(){if(this.createWidgetComponent(),this.widget.shared){const c=this.route.snapshot.queryParamMap.get("datasource");c&&(this.component.customDataSource=c)}const s=this.route.snapshot.queryParamMap.get("drilldown");s&&(this.component.drills=decodeURIComponent(s).split("~").map(c=>({path:c,name:c})),this.widget.backButton=!!this.component.drills.length,this.widget.title=this.component.getDrillTitle(this.component.drills[this.component.drills.length-1]),this.header.cd.detectChanges()),this.model.filters=this.fs.getWidgetModelFilters(this.widget.name),this.updateFiltersText(),this.setupPivotVariables(),0===this.model.filters.length&&!this.hasDatasourceChoser&&!this.hasActions&&!this.widget.pvItems.length&&this.hideToolbar(),this.subFilter=this.bs.subscribe("filter"+this.widget.name,c=>this.applyFilter(c)),this.subUpdateFilterText=this.bs.subscribe("updateFilterText"+this.widget.name,c=>this.updateFilterText(c)),this.subFilterAll=this.bs.subscribe("filterAll",c=>this.applyFilter(c)),this.subRefresh=this.bs.subscribe("refresh:"+this.widget.name,()=>this.requestData()),this.subCopyMdx=this.bs.subscribe(`copyMDX:${this.widget.name}`,()=>this.copyMDX()),this.subShare=this.bs.subscribe(`share:${this.widget.name}`,()=>this.share()),this.subChangeType=this.bs.subscribe("setType:"+this.widget.name,c=>this.changeType(c))}setupPivotVariables(){this.widget.pvItems=[];const s="mdx2json.emptyportlet"===this.widget.type;let c=[];this.vs.isExists()&&(c=this.vs.items.filter(Q=>s?"dashboard"===Q.location:"dashboard"!==Q.location&&("*"===Q.location||Q.location===this.widget.name)),this.widget.pvItems=c,this.showToolbar())}showLoading(){this.widget.isLoading=!0}hideLoading(){this.widget.isLoading=!1}ngOnDestroy(){this.subCopyMdx&&this.subCopyMdx.unsubscribe(),this.subRefresh&&this.subRefresh.unsubscribe(),this.subFilter&&this.subFilter.unsubscribe(),this.subUpdateFilterText&&this.subUpdateFilterText.unsubscribe(),this.subFilterAll&&this.subFilterAll.unsubscribe(),this.subShare&&this.subShare.unsubscribe(),this.subChangeType&&this.subChangeType.unsubscribe(),this.component&&this.component.destroy()}clearError(){this.model.error=""}showError(s){this.model.error=s}updateFiltersText(){if("mdx2json.emptyportlet"===this.widget.type)for(let s=0;s{Q.title="Copy MDX",Q.btnTitle="Copy",Q.shareUrl=s,Q.onCopy=()=>{this.ms.close(c)}}};this.ms.show(c)}appendShareState(s,c){const Q=this.widget[c];return Q&&(s+="&"+c+"="+Q),s}share(){const s=this.component.chart;let c=this.fs.getFiltersShareUrl();const Q=c.split("#")[1],dt=(this.widget.name||this.widget.idx).toString();if(Q&&-1===Q.indexOf("?")?c+="?widget="+dt:c+="&widget="+dt,c=this.appendShareState(c,"isLegend"),c=this.appendShareState(c,"isTop"),c=this.appendShareState(c,"showZero"),c=this.appendShareState(c,"showValues"),s&&s.series){const oi=s.series.map((hi,Li)=>({v:hi.visible,i:Li})).filter(hi=>!hi.v);oi.length&&(c+="&hiddenSeries="+oi.map(hi=>hi.i).join(","))}const le=this.component.getDrillsAsParameter();le&&(c+="&drilldown="+le);let xe='";const Me={title:"",component:dc,closeByEsc:!0,buttons:[],class:"modal-no-border",componentStyles:{padding:"0"},onComponentInit:oi=>{oi.title="Share widget",oi.btnTitle="Copy",oi.shareUrl=xe,oi.onCopy=()=>{this.ms.close(Me)}}};this.ms.show(Me)}requestData(){this.component&&this.component.requestData()}applyFilter(s){this.updateFiltersText(),this.requestData()}changeStyle(s,c,Q){}showToolbar(){this.widget.toolbar=!0}hideToolbar(){this.widget.toolbar=!1}createWidgetComponent(s){var c;if(!this.container)return void console.error("Can't find container for widget: ",this.widget);this.destroyComponent(),this.container.clear(),this.typeDesc=this.wts.getDesc(s||this.widget.type);const Q=null===(c=this.typeDesc)||void 0===c?void 0:c.class;if(Q){this.widget.isSupported=!0;const dt=this.cfr.resolveComponentFactory(Q);this.componentRef=this.container.createComponent(dt),this.component=this.componentRef.instance,this.component.widget=this.widget,this.component.model=this.model,this.component.parent=this,this.component.createWidgetComponent=It=>{this.createWidgetComponent(It)},this.header&&(this.header.typeDesc=this.typeDesc,this.header.widget=this.widget,this.header.loadButtons())}else this.widget.isSupported=!1,this.showError(this.i18n.get("errWidgetNotSupported")+": "+this.widget.type)}destroyComponent(){this.componentRef&&this.componentRef.destroy()}onHeaderButtonBack(){this.component&&this.component.doDrillUp()}onResetClickFilter(){this.component&&this.component.resetClickFilter()}onFilterVariable(s){this.component&&this.component.onVariableChange(s)}onFilterDatasource(s){this.component&&this.component.onDataSourceChange(s)}onFilterAction(s){this.component&&this.component.performAction(s)}onFilter(s){}updateFilterText(s){this.updateFiltersText()}}Ll.\u0275fac=function(s){return new(s||Ll)(t.\u0275\u0275directiveInject(pc.i),t.\u0275\u0275directiveInject(U.Do),t.\u0275\u0275directiveInject(V.V),t.\u0275\u0275directiveInject(su.a),t.\u0275\u0275directiveInject(G.D),t.\u0275\u0275directiveInject(En.Xw),t.\u0275\u0275directiveInject(O.L),t.\u0275\u0275directiveInject(nu.M),t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Y.ActivatedRoute),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver))},Ll.\u0275cmp=t.\u0275\u0275defineComponent({type:Ll,selectors:[["dsw-widget"]],viewQuery:function(s,c){if(1&s&&(t.\u0275\u0275viewQuery(Cm,7,t.ViewContainerRef),t.\u0275\u0275viewQuery(bm,7),t.\u0275\u0275viewQuery(jv,7)),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.container=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.header=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.filters=Q.first)}},inputs:{widget:"widget"},decls:9,vars:7,consts:[[3,"typeDesc","hidden","onButtonClick","onBack","onResetClickFilter"],["header",""],[3,"hidden","widget","filters","onVariable","onDataSource","onAction"],["filters",""],["container",""],["class","error",4,"ngIf"],[1,"spinner",3,"hidden"],["src","assets/img/spinner.svg"],[1,"error"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"dsw-widget-header",0,1),t.\u0275\u0275listener("onButtonClick",function(dt){return c.onHeaderButton(dt)})("onBack",function(){return c.onHeaderButtonBack()})("onResetClickFilter",function(){return c.onResetClickFilter()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"dsw-widget-filter",2,3),t.\u0275\u0275listener("onVariable",function(dt){return c.onFilterVariable(dt)})("onDataSource",function(dt){return c.onFilterDatasource(dt)})("onAction",function(dt){return c.onFilterAction(dt)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,wm,0,0,"ng-template",null,4,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(6,Em,2,1,"div",5),t.\u0275\u0275elementStart(7,"div",6),t.\u0275\u0275element(8,"img",7),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275property("typeDesc",c.typeDesc)("hidden",(null==c.widget?null:c.widget.tile)||!c.isHeader),t.\u0275\u0275advance(2),t.\u0275\u0275property("hidden",(null==c.widget?null:c.widget.tile)||!c.isHeader)("widget",c.widget)("filters",c.model.filters),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",c.model.error),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",c.model.error||!(null!=c.component&&c.component.isSpinner)))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;display:-webkit-flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden;background-color:var(--cl-widget-bg);padding:20px}.error[_ngcontent-%COMP%]{font-family:Roboto Condensed;position:absolute;left:0;right:0;color:#d7070294;background-color:transparent;top:40%;padding:6px;text-align:center;z-index:10;background:var(--cl-widget-bg)}.spinner[_ngcontent-%COMP%]{position:absolute;inset:44px 0 0;z-index:3;display:flex;justify-content:center;align-items:center;background-color:#ffffffe6;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);height:auto}dsw-widget-filter[_ngcontent-%COMP%]{z-index:4}"]});var ba=ht(9583);const sd=["gridster"],Hf=["widgets"];function wp(lt,s){if(1<&&t.\u0275\u0275element(0,"dsw-widget",9,10),2<){const c=t.\u0275\u0275nextContext().$implicit,Q=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("transparent",Q.itemDescs[c.idx].inline),t.\u0275\u0275property("widget",Q.itemDescs[c.idx])}}function Gf(lt,s){if(1<&&t.\u0275\u0275element(0,"img",11),2<){const c=s.ngIf;t.\u0275\u0275property("src","assets/img/widget-icons/"+c,t.\u0275\u0275sanitizeUrl)}}function fc(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"gridster-item",4),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.onItemClicked(It))}),t.\u0275\u0275template(1,wp,2,3,"dsw-widget",5),t.\u0275\u0275elementStart(2,"div",6),t.\u0275\u0275template(3,Gf,1,1,"img",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"label",8)(5,"span"),t.\u0275\u0275text(6),t.\u0275\u0275elementEnd()()()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext();t.\u0275\u0275classMap("tile cl"+c.color+" "+(c.template?"tile-with-widget":"")),t.\u0275\u0275styleProp("background-image","url("+c.Cover+")"),t.\u0275\u0275classProp("selected",Q.model.edItem==c)("editing",Q.model.edItem),t.\u0275\u0275property("item",c),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",Q.itemDescs[c.idx]),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",Q.itemDescs[c.idx]),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",Q.model.icons[c.icon]),t.\u0275\u0275advance(1),t.\u0275\u0275classMap(Q.model.fontColors[c.fontColor]),t.\u0275\u0275property("hidden",c.hideTitle)("title",c.customTitle||c.title),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.customTitle||c.title)}}class ou{constructor(s,c,Q,dt,It,Kt,le,xe,Me,oi,hi,Li){this.st=s,this.route=c,this.router=Q,this.ss=dt,this.cd=It,this.hs=Kt,this.ms=le,this.ds=xe,this.es=Me,this.i18n=oi,this.fs=hi,this.ns=Li,this.folder="",this.itemDescs=[],this.isResizing=!1,this.tilesOptions={maxCols:8,minCols:8,fixedRowHeight:122,gridType:"verticalFixed",mobileBreakpoint:576,margin:20,draggable:{enabled:!1},resizable:{enabled:!1}},this.isLoading=!1,this.isSpinner=!0,this.trackByIndex=(Pi,Ki)=>Pi,this.onResize(),this.settings=s.getAppSettings(),this.ms.onSetTitle.emit(""),this.fs.clear(),this.model={tiles:[],widgetList:[],fontColors:q._.const.fontColors,icons:q._.const.icons,edItem:null}}onResize(){}ngOnInit(){this.data$=(0,Nr.a)([this.st.onTilesChanged.pipe((0,ua.O)("")),this.route.url,this.route.params.pipe((0,za.w)(s=>(s.ns&&s.ns.toLowerCase()!==O.l.toLowerCase()&&this.ns.setCurrent(s.ns),this.ds.getDashboards()))),this.hs.onSearch.pipe(bp())]).pipe((0,S.U)(([s,c,Q,dt])=>{this.folder=decodeURIComponent(c.map(Kt=>Kt.path).join("/")||""),this.isLoading=!1;const It=this.retrieveData(JSON.parse(JSON.stringify(Q)),dt||"");return this.isSpinner=!1,It})),this.subSidebarAnimEnd=this.ss.onAnimEnd.subscribe(()=>{this.tilesOptions.api.resize()}),this.subEditDashboard=this.ms.onEditDashboard.subscribe(s=>{s?this.enableEditing():this.disableEditing()}),this.subscribeForGridsterResize()}ngOnDestroy(){this.subAnimation.unsubscribe(),this.subSidebarAnimEnd.unsubscribe(),this.subEditDashboard.unsubscribe()}getDesc(s){return this.itemDescs[s]}enableEditing(){this.model.edItem=this.model.tiles[0],this.tilesOptions.draggable.enabled=!0,this.tilesOptions.resizable.enabled=!0,this.tilesOptions.api.optionsChanged(),this.ss.showComponent({component:uc,single:!0,inputs:{tiles:this.model.tiles,tile:this.model.tiles[0],folder:this.folder}})}disableEditing(){this.tilesOptions.draggable.enabled=!1,this.tilesOptions.resizable.enabled=!1,this.tilesOptions.api.optionsChanged(),this.model.edItem=null}onItemClicked(s){if(this.model.edItem)return this.model.edItem=s,void this.ss.showComponent({component:uc,single:!0,inputs:{tile:s}});let c=s.fullPath;s.isFolder&&(c=""===s.title?"..":s.title),this.router.navigate([c],{relativeTo:s.isFolder?this.route:this.route.root.children[0]})}retrieveData(s,c){if(s){if(s&&s.Error)return void this.es.show(s.data.Error);if(s){if(!s.children||0===s.children.length)return void this.es.show(this.i18n.get("errNoDashboards"));this.model.tiles=this.getTiles(s,c)}return this.model.tiles}}setupList(s){for(let c=0;c{this.retriveWidgetData(Q,s[c])}))}createDataCallback(s){return function(c){this.retriveWidgetData(c,s)}}getTiles(s,c){let Q=s.children,dt=this.st.getTilesSettings();if(dt=dt[this.folder]||{},Q.forEach(It=>{It.fullPath||(It.fullPath=It.path)}),c)Q=Q.filter(It=>-1!==It.title.toLocaleLowerCase().indexOf(c.toLocaleLowerCase()));else{this.folder&&(Q=Q.filter(Kt=>Kt.fullPath.startsWith(this.folder+"/")));const It=[];Q.forEach(Kt=>{Kt.fullPath.toLowerCase().startsWith(this.folder.toLowerCase()+"/")&&(Kt.path=Kt.fullPath.slice(0!==this.folder.length?this.folder.length+1:0,Kt.fullPath.length));const le=Kt.path.split("/");1!==le.length&&(It.some(xe=>xe===le[0])||It.push(le[0]))}),Q=Q.filter(Kt=>1===Kt.path.split("/").length),Q=[...Q,...It.map(Kt=>({isFolder:!0,title:Kt}))]}Q.forEach(It=>{!It.isFolder&&!It.title&&(It.title=It.path.split("/").splice(-1)[0].replace(".dashboard",""))}),this.folder&&!c&&Q.push({isFolder:!0,title:""}),Q=Q.sort((It,Kt)=>It.isFolder&&!Kt.isFolder?-1:Kt.isFolder&&!It.isFolder||It.title>Kt.title?1:-1);for(let It=0;It{!this.widgets||"width"!==s.propertyName&&"height"!==s.propertyName||this.widgets.toArray().forEach(c=>{c.component&&c.component.onResize()})})}}ou.\u0275fac=function(s){return new(s||ou)(t.\u0275\u0275directiveInject(V.V),t.\u0275\u0275directiveInject(Y.ActivatedRoute),t.\u0275\u0275directiveInject(Y.Router),t.\u0275\u0275directiveInject(W.P),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject($),t.\u0275\u0275directiveInject(sr),t.\u0275\u0275directiveInject(U.Do),t.\u0275\u0275directiveInject(hc.T),t.\u0275\u0275directiveInject(G.D),t.\u0275\u0275directiveInject(pc.i),t.\u0275\u0275directiveInject(O.L))},ou.\u0275cmp=t.\u0275\u0275defineComponent({type:ou,selectors:[["dsw-folder-screen"]],viewQuery:function(s,c){if(1&s&&(t.\u0275\u0275viewQuery(sd,7,t.ElementRef),t.\u0275\u0275viewQuery(sd,7),t.\u0275\u0275viewQuery(Hf,5,Ll)),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.gridster=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.gridsterComp=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.widgets=Q)}},hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("resize",function(dt){return c.onResize(dt)},!1,t.\u0275\u0275resolveWindow)},decls:5,vars:7,consts:[[1,"gridster",3,"options"],["gridster",""],[3,"selected","editing","class","item","backgroundImage","click",4,"ngFor","ngForOf"],["src","assets/img/spinner.svg",3,"hidden"],[3,"item","click"],[3,"widget","transparent",4,"ngIf"],[1,"tile-icon",3,"hidden"],[3,"src",4,"ngIf"],[3,"hidden","title"],[3,"widget"],["widgets",""],[3,"src"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"gridster",0,1),t.\u0275\u0275template(2,fc,7,17,"gridster-item",2),t.\u0275\u0275pipe(3,"async"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(4,"img",3)),2&s&&(t.\u0275\u0275classProp("no-anim",c.isResizing),t.\u0275\u0275property("options",c.tilesOptions),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(3,5,c.data$)),t.\u0275\u0275advance(2),t.\u0275\u0275property("hidden",!c.isSpinner))},dependencies:[R.NgForOf,R.NgIf,ba.sm,ba.IM,Ll,R.AsyncPipe],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:block;width:100%;height:100%}gridster[_ngcontent-%COMP%]{background:var(--cl-bg);overflow-y:overlay!important}.tile[_ngcontent-%COMP%]{border-radius:var(--tile-border-radius);border:var(--tile-border);cursor:pointer;overflow:hidden;user-select:none;-webkit-user-select:none;background-size:cover;background:transparent no-repeat 50% 50%;padding:20px;border:1px solid #EBEBEA;border-radius:10px}.tile[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #0000001a}.tile.editing[_ngcontent-%COMP%]{opacity:.5}.tile.selected[_ngcontent-%COMP%]{opacity:1;border:2px solid var(--cl-accent)}@media (max-width: 576px){.tile[_ngcontent-%COMP%]{border:none;border-bottom:var(--tile-border);display:flex!important;justify-content:flex-start;align-items:center}}.tile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:Roboto Condensed;font-style:normal;outline-color:#1c5ec7;position:absolute;inset:auto 20px 20px;text-align:left;font-weight:500;font-size:14px;line-height:16px;color:var(--cl-header-txt);max-height:2.3em;display:inline-block;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 576px){.tile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:static;font-size:14px}}.tile-icon[_ngcontent-%COMP%]{height:100%;width:100%;overflow:hidden}@media (max-width: 576px){.tile-icon[_ngcontent-%COMP%]{width:80px;height:80px;display:inline-flex;align-items:center;justify-content:center}}.tile-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-family:FontAwesome;height:50%;width:50%;margin-top:10%;margin-left:25%;margin-right:25%}@media (max-width: 576px){.tile-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:80%;width:80%;margin:0}}dsw-widget[_ngcontent-%COMP%]{pointer-events:none}dsw-widget.transparent[_ngcontent-%COMP%]{background-color:transparent}"]});var Xf=ht(1851),$f=ht(7630);const hl=["gridster"],au=["widgets"];class ul{constructor(s){this.inj=s,this.scrollToNewWidgetTimeout=0,this.list=[],this.editedWidget=null,this.ds=this.inj.get(U.Do),this.vs=this.inj.get(su.a),this.fs=this.inj.get(pc.i),this.us=this.inj.get(Mr.f),this.ss=this.inj.get(V.V),this.sbs=this.inj.get(W.P),this.es=this.inj.get(hc.T),this.hs=this.inj.get($),this.dbs=this.inj.get(rd.s),this.router=this.inj.get(Y.Router),this.i18n=this.inj.get(G.D),this.ns=this.inj.get(O.L),this.cd=this.inj.get(t.ChangeDetectorRef),this.bs=this.inj.get(nu.M),this.eds=this.inj.get(Ko),this.r2=this.inj.get(t.Renderer2),this.ms=this.inj.get(sr),this.route=this.inj.get(Y.ActivatedRoute)}getWidgetByInfo(s){return this.widgets.find(c=>c.widget===s)}subscribeForEditing(){this.subOnEditedWidgetChanged=this.eds.onEditedWidgetChanged.subscribe(s=>this.updateEditedWidget(s)),this.subOnNewWidget=this.eds.onNewWidget.subscribe(s=>this.newWidget(s)),this.subOnSaveWidget=this.eds.onSave.subscribe(()=>this.onSaveWidget()),this.subCancelEditing=this.eds.onCancelEditing.subscribe(()=>this.cancelEditing()),this.subOnDeleteWidget=this.eds.onDeleteWidget.subscribe(s=>this.deleteWidget(s))}updateEditedWidget(s){this.editedWidget||(this.editedWidget=s.widget);const c=this.getWidgetByInfo(this.editedWidget);c.header.cd.detectChanges(),c.cd.detectChanges(),s.refreshData&&c.requestData(),this.detectChanges()}newWidget(s){const c=this.dbs.getWidgetsWithoutEmpty().pop();c&&(s.cols=c.cols,s.rows=c.rows),this.editedWidget=s,this.list.push(this.editedWidget);const Q=this.gridster.getFirstPossiblePosition(this.editedWidget);this.editedWidget.x=Q.x,this.editedWidget.y=Q.y,this.editedWidget.cols=Q.cols,this.editedWidget.rows=Q.rows,this.detectChanges(),this.scrollNewWidgetIntoView()}onSaveWidget(){delete this.editedWidget.edKey,this.editedWidget=null,this.detectChanges()}cancelEditing(){var s;if(!this.editedWidget)return;const c=this.list.indexOf(this.editedWidget);if(null!==(s=this.editedWidget)&&void 0!==s&&s.oldWidget)return this.editedWidget=this.editedWidget.oldWidget,this.editedWidget.edKey="ed"+(new Date).getTime(),this.list[c]=this.editedWidget,this.cd.detectChanges(),delete this.editedWidget.edKey,this.editedWidget=null,void this.detectChanges();-1!==c&&this.list.splice(c,1),this.editedWidget=null,this.detectChanges()}scrollNewWidgetIntoView(){clearTimeout(this.scrollToNewWidgetTimeout),this.scrollToNewWidgetTimeout=setTimeout(()=>{const s=document.getElementById("edited-widget");s&&s.scrollIntoView({behavior:"smooth",block:"nearest"})},300)}ngOnDestroy(){clearTimeout(this.scrollToNewWidgetTimeout),this.subOnNewWidget.unsubscribe(),this.subOnEditedWidgetChanged.unsubscribe(),this.subCancelEditing.unsubscribe(),this.subOnSaveWidget.unsubscribe(),this.subOnDeleteWidget.unsubscribe()}detectChanges(){const s=this.gridster.el.scrollLeft,c=this.gridster.el.scrollTop;this.cd.detectChanges(),this.gridster.onResize(),this.gridster.el.scrollLeft=s,this.gridster.el.scrollTop=c}deleteWidget(s){this.editedWidget=null;const c=this.list.indexOf(s);-1!==c&&this.list.splice(c,1),this.list=[...this.list],this.cd.detectChanges()}}ul.\u0275fac=function(s){return new(s||ul)(t.\u0275\u0275directiveInject(t.Injector))},ul.\u0275cmp=t.\u0275\u0275defineComponent({type:ul,selectors:[["ng-component"]],viewQuery:function(s,c){if(1&s&&(t.\u0275\u0275viewQuery(hl,5),t.\u0275\u0275viewQuery(au,5)),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.gridster=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.widgets=Q)}},decls:0,vars:0,template:function(s,c){},encapsulation:2});const Jr=["ctxMenu"];function od(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"gridster-item",17,18),t.\u0275\u0275listener("transitionend",function(dt){const Kt=t.\u0275\u0275restoreView(c).$implicit,le=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(le.onWidgetSizeChanged(Kt,dt))})("contextmenu",function(dt){const Kt=t.\u0275\u0275restoreView(c).$implicit,le=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(le.showContextMenu(Kt,dt))}),t.\u0275\u0275element(2,"dsw-widget",19,20),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("editing",c===Q.editedWidget)("no-anim",Q.isLoading||Q.editedWidget)("expanded",c.isExpanded),t.\u0275\u0275property("id",c===Q.editedWidget?"edited-widget":void 0)("item",c),t.\u0275\u0275advance(2),t.\u0275\u0275property("widget",c)}}function wo(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"gridster",14,15),t.\u0275\u0275template(2,od,4,9,"gridster-item",16),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275property("options",c.tilesOptions),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",c.list)("ngForTrackBy",c.trackByName)}}function sh(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",24),t.\u0275\u0275element(1,"dsw-widget",19,20),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("widget",c)}}function ad(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",25),t.\u0275\u0275element(1,"dsw-widget",19),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275styleProp("transform","translateX(calc(-100vw * "+-c.page+"))"),t.\u0275\u0275advance(1),t.\u0275\u0275property("widget",c.mobileFilter)}}function ms(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",21),t.\u0275\u0275template(1,sh,3,1,"div",22),t.\u0275\u0275template(2,ad,2,3,"div",23),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("transform","translateX(calc(100vw * "+-c.page+"))"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.list),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.isMobileFilterVisible)}}function lu(lt,s){if(1<&&t.\u0275\u0275element(0,"span"),2<){const c=s.index,Q=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("active",c===Q.page)}}function dl(lt,s){1<&&(t.\u0275\u0275elementStart(0,"div",26),t.\u0275\u0275element(1,"img",27),t.\u0275\u0275elementEnd())}function cu(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.ctxDrill())}),t.\u0275\u0275text(1,"Drilldown"),t.\u0275\u0275elementEnd()}}function ls(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.ctxDrillthrough())}),t.\u0275\u0275text(1,"Drillthrough"),t.\u0275\u0275elementEnd()}}function Rl(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.printItem())}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"print")))}function hu(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.gotoKPIPage(dt.ctxItem))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"showKPI")))}function ld(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.gotoAnalyzer(dt.ctxItem))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"openAnalyzer")))}function cd(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.exportWidget("svg"))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"svgImage")))}function so(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.exportWidget("png"))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"pngImage")))}function hd(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.exportWidget("jpg"))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"jpgImage")))}function ud(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.exportWidget("pdf"))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"pdfDoc")))}function qs(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",10),t.\u0275\u0275listener("mouseover",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275reference(4),Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.showSubmenu(It,dt))}),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275elementStart(3,"div",11,28)(5,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.setType("area"))}),t.\u0275\u0275text(6,"Area chart"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.setType("bar"))}),t.\u0275\u0275text(8,"Bar chart"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.setType("barchartstacked"))}),t.\u0275\u0275text(10,"Stacked bar chart"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.setType("column"))}),t.\u0275\u0275text(12,"Column chart"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.setType("columnchartstacked"))}),t.\u0275\u0275text(14,"Stacked column chart"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(15,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.setType("line"))}),t.\u0275\u0275text(16,"Line chart"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.setType("pie"))}),t.\u0275\u0275text(18,"Pie chart"),t.\u0275\u0275elementEnd()()()}2<&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"viewAs")," "))}function wa(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.ctxEdit())}),t.\u0275\u0275text(1,"Edit widget"),t.\u0275\u0275elementEnd()}}class Fl extends ul{constructor(s){super(s),this.inj=s,this.path="",this.page=0,this.model={items:[]},this.ctxItem=null,this.contexMenuData={canDrill:!1,canDrillthrough:!1},this.tilesOptions={useTransformPositioning:!0,margin:20,gridType:ba.tQ.VerticalFixed,draggable:{ignoreContent:!0,dragHandleClass:"drag-handle",enabled:!0},resizable:{enabled:!0}},this.isMobile=!1,this.isLoading=!0,this.itemsInitialized=0,this.isMobileFilterVisible=!1,this.onLoadingTimeout=0,this.trackByName=(c,Q)=>{const dt=this.path+"-"+Q.name.toString();return Q===this.editedWidget&&this.editedWidget.edKey||dt},this.checkRestrictions(),this.hs.resetSearch(),this.hs.hideMobileFilterButton(),this.sharedWidget=this.route.snapshot.queryParamMap.get("widget"),this.subscribeForGridsterEvents(),this.loadSettings(),this.subscribeForSettingsChanged(),this.subscribeForEditing(),this.subOnSidebarAnim=this.sbs.onAnimEnd.subscribe(()=>{this.gridster.onResize()}),this.setupSharedWidget(),this.isMobile=this.us.isMobile(),this.subReset=this.bs.subscribe("refresh-dashboard",()=>{this.requestData()}),this.subMobileFilterDialog=this.hs.mobileFilterDialogToggle.subscribe(()=>{this.isMobileFilterVisible=!this.isMobileFilterVisible,this.cd.detectChanges()}),this.subContextMenu=this.bs.subscribe("contextmenu",c=>{this.showContextMenu(c.widget,c.event,c.ctxData),this.cd.detectChanges()})}ngOnInit(){this.subscribeForParamsChange()}ngAfterViewInit(){}ngOnDestroy(){super.ngOnDestroy(),clearTimeout(this.onLoadingTimeout),window.onafterprint=null,this.subParamsChange.unsubscribe(),this.subOnSidebarAnim.unsubscribe(),this.subContextMenu.unsubscribe(),this.subMobileFilterDialog.unsubscribe(),this.subCtxClose&&this.subCtxClose.unsubscribe(),this.subReset&&this.subReset.unsubscribe()}setType(s){this.ctxItem&&(this.bs.broadcast("setType:"+this.ctxItem.name,s),this.hideContextMenu())}hideContextMenu(){this.ctxItem=null,this.r2.setStyle(this.ctxMenu.nativeElement,"visibility","hidden")}shareItem(){this.ctxItem&&(this.bs.broadcast("share:"+this.ctxItem.name),this.hideContextMenu())}copyMDX(){this.ctxItem&&(this.bs.broadcast("copyMDX:"+this.ctxItem.name),this.hideContextMenu())}printItem(){this.ctxItem&&(this.bs.broadcast("print:"+this.ctxItem.name),this.hideContextMenu())}refreshItem(){this.ctxItem&&(this.bs.broadcast("refresh:"+this.ctxItem.name),this.hideContextMenu())}prepareData(s){var c,Q;let dt;if(this.itemsInitialized=0,!s)return;if(s.Error)return void this.es.show(s.Error);if(!s.widgets)return void this.es.show(this.i18n.get("errNoWidgets"));if(s.displayInfo&&s.displayInfo.gridRows&&!this.settings.widgetHeight&&!this.sharedWidget){const le=s.displayInfo.gridRows,xe=20;let Me=window.innerHeight;Me<800&&(Me=800),this.tilesOptions.fixedRowHeight=Math.floor((Me-(63+xe*(le+1)))/le),this.gridster&&this.gridster.optionsChanged()}this.vs.init(s),s.filters&&this.fs.init(s.filters,this.path);let It=!1;if((this.fs.isFiltersOnToolbarExists||this.vs.isExists())&&!this.sharedWidget){for(dt=0;dtthis.tilesOptions.maxCols&&(Kt.cols=this.tilesOptions.maxCols)}(s.widgets[dt].autocreated&&(delete Kt.x,delete Kt.y),s.widgets[dt].name&&this.setWidgetSizeAndPos(Kt,s.widgets[dt].name.toString()),this.sharedWidget&&(Kt.x=0,Kt.y=0,Kt.idx=0,Kt.cols=1,Kt.rows=1,Kt.menuDisabled=!0,Kt.shared=!0),Kt=Object.assign(Object.assign({},JSON.parse(JSON.stringify(s.widgets[dt]))),JSON.parse(JSON.stringify(Kt))),this.sharedWidget||this.fillDependentWidgets(Kt,s.widgets),this.isMobile&&Kt.type===q._.const.emptyWidgetClass)?(this.mobileFilter=Kt,this.hs.showMobileFilterButton()):this.list.push(Kt)}this.sharedWidget||setTimeout(()=>this.broadcastDependents(),0),this.fitEmptyWidget(),this.dbs.setWidgets(this.list),this.ms.onSetTitle.emit(null===(Q=this.dbs.getWidgets()[this.page])||void 0===Q?void 0:Q.title),setTimeout(()=>{})}broadcastDependents(){const s=[];for(let c=0;c"disableContextMenu"===oi.name);if(le&&(Kt=1===le.dataValue),s.type===q._.const.emptyWidgetClass||Kt||this.us.isPreventContextMenu())return;c.preventDefault(),this.ctxItem=s;let xe=c.clientY,Me=c.clientX;setTimeout(()=>{xe+It.offsetHeight>window.innerHeight&&(xe-=It.offsetHeight),Me+It.offsetWidth>window.innerWidth&&(Me-=It.offsetWidth),this.r2.setStyle(It,"left",Me+"px"),this.r2.setStyle(It,"top",xe+"px"),this.subCtxClose&&this.subCtxClose.unsubscribe(),this.subCtxClose=ln(document,"mousedown").subscribe(oi=>{this.subCtxClose.unsubscribe(),!oi.target.parentElement.classList.contains("ctx-menu")&&(this.hideContextMenu(),this.cd.detectChanges())}),this.r2.setStyle(It,"visibility","visible")})}exportWidget(s){const c=this.getWidgetByInfo(this.ctxItem).component,Q={sourceWidth:Math.floor(window.screen.width/2),sourceHeight:Math.floor(window.screen.height/2),filename:this.ctxItem.tile||"chart",type:"image/svg+xml"};switch(s){case"png":Q.type="image/png";break;case"svg":Q.type="image/svg+xml";break;case"jpg":Q.type="image/jpeg";break;case"pdf":Q.type="application/pdf";break;case"xls":{let dt=c?.getMDX();if(!dt)return void console.warn(`Can't get MDX for widget: ${this.ctxItem}`);if(c?.lpt){const le=c.lpt;dt=le._dataSourcesStack[le._dataSourcesStack.length-1].BASIC_MDX+le.dataSource.FILTERS}const Kt=(this.ss.serverSettings.DefaultApp||"/csp/"+O.l)+"/_DeepSee.UI.MDXExcel.zen?MDX="+encodeURIComponent(dt);return window.open(Kt,"_blank"),void this.hideContextMenu()}case"csv":return this.exportToCsv(),void this.hideContextMenu()}this.ctxItem.isChart&&c.chart.exportChart(Q,null),this.hideContextMenu()}exportToCsv(){const s=this.getWidgetByInfo(this.ctxItem).component,c=s._currentData;if(!s.lpt&&!c)return;let Q,dt,It;s.lpt?(dt=s.lpt.dataController.getData().dimensions[0],Q=s.lpt.dataController.getData().dimensions[1],It=s.lpt.dataController.getData().dataArray):(Q=c.Cols[1].tuples,dt=c.Cols[0].tuples,It=c.Data);let Me,oi,xe='"sep=|"\r\n';for(Q[0]&&Q[0].dimension&&(xe+=Q[0].dimension+"|"),oi=0;oi{Pi.click(),document.body.removeChild(Pi)},10)}}}showSubmenu(s,c){c.target.classList.contains("ctx-sub")&&(this.r2.removeStyle(s,"transform"),this.r2.setStyle(s,"visibility","hidden"),setTimeout(()=>{const Q=s.getBoundingClientRect();let dt=0,It=0;Q.top+Q.height>window.innerHeight&&(It=Q.top+Q.height-window.innerHeight+10),Q.left+Q.width>window.innerWidth&&(dt=Q.width+s.parentElement.getBoundingClientRect().width+2),this.r2.setStyle(s,"transform",`translateX(${-dt}px) translateY(${-It}px)`),this.r2.setStyle(s,"visibility","visible")}))}onTouchStart(s){this.touchInfo={startTime:performance.now(),endTime:0,sx:s.changedTouches[0].screenX,sy:s.changedTouches[0].screenY,ex:0,ey:0}}onTouchEnd(s){if(this.isMobileFilterVisible)return;const c=this.touchInfo;if(c.endTime=performance.now(),c.ex=s.changedTouches[0].screenX,c.ey=s.changedTouches[0].screenY,c.endTime-c.startTime>200||Math.abs(c.ey-c.sy)>100||Math.abs(c.ex-c.sx)<50)return;const Q=c.ex>c.sx?-1:1;this.page+=Q;const dt=this.dbs.getWidgets().length;this.page<0&&(this.page=0),this.page>dt-1&&(this.page=dt-1),this.ms.onSetTitle.emit(this.dbs.getWidgets()[this.page].title);const It=this.widgets.toArray()[this.page].component;It instanceof Xf.X?It.adjustSize():It instanceof $f.Uh&&"treemap"!==It.chartConfig.chart.type&&It.updateChart(!0,!1)}ctxDrill(){this.bs.broadcast("drilldown:"+this.ctxItem.name,{path:this.contexMenuData.drillPath,title:this.contexMenuData.drillTitle}),this.hideContextMenu()}ctxDrillthrough(){this.bs.broadcast("drillthrough:"+this.ctxItem.name,{path:this.contexMenuData.drillPath,title:this.contexMenuData.drillTitle}),this.hideContextMenu()}fitEmptyWidget(){let s=null,c=0,Q=0;this.list.forEach(dt=>{if("emptyWidget"===dt.name)return void(s=dt);const It=(dt.x||0)+(dt.cols||0),Kt=(dt.y||0)+(dt.rows||0);It>c&&(c=It),Kt>Q&&(Q=Kt)}),s&&!s.rows&&(s.rows=Q||2)}gotoKPIPage(s){if(!s.kpiclass)return;const Q=(this.ss.serverSettings.DefaultApp||"/csp/"+O.l)+"/"+s.kpiclass+".cls";window.open(Q,"_blank")}gotoAnalyzer(s){if(!s.dataSource)return;const c=this.ss.serverSettings.DefaultApp||"/csp/"+O.l,Q=this.fs.getFiltersUrlString(s.name,!1,"\t","\n");let dt=c+"/_DeepSee.UI.Dialog.Analyzer.zen?&PIVOT="+encodeURIComponent(s.dataSource);Q&&(dt+="&FILTERSTATE="+Q),window.open(dt,"_blank")}requestData(){this.list=[],-1!==this.path.indexOf(".dashboard")&&(this.isLoading=!0,this.cd.detectChanges(),this.ds.getWidgets(this.path||"").then(s=>{this.dbs.dashboard.next(s),this.prepareData(s)}).finally(()=>{this.onDataLoaded()}))}subscribeForParamsChange(){this.subParamsChange=(0,Nr.a)([this.route.url,this.route.params]).subscribe(([s,c])=>{this.switchNamespaceAndPath(s,c),this.requestData()})}switchNamespaceAndPath(s,c){c.ns&&c.ns.toLowerCase()!==O.l.toLowerCase()&&this.ns.setCurrent(c.ns),this.path=[c.name,...s.map(Q=>Q.path)].join("/").slice(1),this.dbs.current.next(this.path)}ctxEdit(){var s;if(this.editedWidget&&this.editedWidget!==this.ctxItem&&this.sbs.showComponent(null),this.ctxItem.isExpanded){null===(s=this.getWidgetByInfo(this.ctxItem)?.header)||void 0===s||s.onClick("expand")}this.sbs.showComponent({component:Zs,single:!0,inputs:{widget:this.ctxItem}}),this.hideContextMenu()}onDataLoaded(){this.cd.detectChanges(),this.gridster.onResize(),clearTimeout(this.onLoadingTimeout),this.onLoadingTimeout=setTimeout(()=>{this.isLoading=!1,this.cd.detectChanges()},1)}subscribeForSettingsChanged(){this.subSettingsChanged=this.ss.onSettingsChanged.subscribe(s=>{this.tilesOptions.maxCols=s.colCount||12,this.tilesOptions.minCols=this.tilesOptions.maxCols,this.gridster&&(this.gridster.optionsChanged(),setTimeout(()=>{this.gridster.onResize()},1e3))})}subscribeForGridsterEvents(){this.tilesOptions.itemResizeCallback=s=>{this.onWidgetSizeChanged(s)},this.tilesOptions.draggable.start=()=>{this.cd.detach()},this.tilesOptions.draggable.stop=()=>{this.cd.reattach()},this.tilesOptions.itemChangeCallback=(s,c)=>{this.isLoading||this.dbs.saveWidgetPositionAndSize(s)}}loadSettings(){this.settings=this.ss.getAppSettings(),this.tilesOptions.maxCols=parseInt(this.settings.colCount,10)||12,this.tilesOptions.minCols=this.tilesOptions.maxCols,this.tilesOptions.fixedRowHeight=parseInt(this.settings.widgetHeight,10)||Math.floor((window.innerHeight-158)/10)-1}setupSharedWidget(){if(!this.sharedWidget)return;this.tilesOptions.maxCols=1,this.tilesOptions.minCols=1,this.tilesOptions.maxRows=1,this.tilesOptions.minRows=1,this.tilesOptions.gridType="fit";const c=this.route.snapshot.queryParamMap.get("height");c&&(this.tilesOptions.rowHeight=parseInt(c,10)),this.tilesOptions.draggable={enabled:!1,dragHandleClass:""},this.tilesOptions.resizable={enabled:!1}}checkRestrictions(){"1"===this.route.snapshot.queryParamMap.get("nodrag")&&(this.tilesOptions.draggable.enabled=!1),"1"===this.route.snapshot.queryParamMap.get("noresize")&&(this.tilesOptions.resizable.enabled=!1)}}function Qs(lt,s){1<&&t.\u0275\u0275element(0,"dsw-folder-screen")}function Nl(lt,s){1<&&t.\u0275\u0275element(0,"dsw-dashboard-screen")}Fl.\u0275fac=function(s){return new(s||Fl)(t.\u0275\u0275directiveInject(t.Injector))},Fl.\u0275cmp=t.\u0275\u0275defineComponent({type:Fl,selectors:[["dsw-dashboard-screen"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(Jr,5),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.ctxMenu=Q.first)}},hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("touchstart",function(dt){return c.onTouchStart(dt)})("touchend",function(dt){return c.onTouchEnd(dt)})},features:[t.\u0275\u0275InheritDefinitionFeature],decls:39,vars:31,consts:[[3,"options",4,"ngIf"],["class","mobile-widgets",3,"transform",4,"ngIf"],[1,"pager",3,"hidden"],[3,"active",4,"ngFor","ngForOf"],["class","dsw-spinner",4,"ngIf"],[1,"ctx-menu",2,"visibility","hidden"],["ctxMenu",""],[3,"click",4,"ngIf"],[3,"click"],[1,"divider"],[1,"ctx-sub",3,"mouseover"],[1,"ctx-menu"],["sub1",""],["class","ctx-sub",3,"mouseover",4,"ngIf"],[3,"options"],["gridster",""],["class","tile",3,"id","editing","no-anim","expanded","item","transitionend","contextmenu",4,"ngFor","ngForOf","ngForTrackBy"],[1,"tile",3,"id","item","transitionend","contextmenu"],["list",""],[3,"widget"],["widgets",""],[1,"mobile-widgets"],["class","tile",4,"ngFor","ngForOf"],["class","tile mobile-filter",3,"transform",4,"ngIf"],[1,"tile"],[1,"tile","mobile-filter"],[1,"dsw-spinner"],["src","assets/img/spinner.svg"],["sub2",""]],template:function(s,c){if(1&s){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275template(0,wo,3,3,"gridster",0),t.\u0275\u0275template(1,ms,3,4,"div",1),t.\u0275\u0275elementStart(2,"div",2)(3,"div"),t.\u0275\u0275template(4,lu,1,2,"span",3),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(5,dl,2,0,"div",4),t.\u0275\u0275elementStart(6,"div",5,6),t.\u0275\u0275template(8,cu,2,0,"div",7),t.\u0275\u0275template(9,ls,2,0,"div",7),t.\u0275\u0275elementStart(10,"div",8),t.\u0275\u0275listener("click",function(){return c.refreshItem()}),t.\u0275\u0275text(11),t.\u0275\u0275pipe(12,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(13,Rl,3,3,"div",7),t.\u0275\u0275elementStart(14,"div",8),t.\u0275\u0275listener("click",function(){return c.shareItem()}),t.\u0275\u0275text(15),t.\u0275\u0275pipe(16,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"div",8),t.\u0275\u0275listener("click",function(){return c.copyMDX()}),t.\u0275\u0275text(18),t.\u0275\u0275pipe(19,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(20,hu,3,3,"div",7),t.\u0275\u0275template(21,ld,3,3,"div",7),t.\u0275\u0275element(22,"div",9),t.\u0275\u0275elementStart(23,"div",10),t.\u0275\u0275listener("mouseover",function(It){t.\u0275\u0275restoreView(Q);const Kt=t.\u0275\u0275reference(26);return t.\u0275\u0275resetView(c.showSubmenu(Kt,It))}),t.\u0275\u0275text(24," Export "),t.\u0275\u0275elementStart(25,"div",11,12),t.\u0275\u0275template(27,cd,3,3,"div",7),t.\u0275\u0275template(28,so,3,3,"div",7),t.\u0275\u0275template(29,hd,3,3,"div",7),t.\u0275\u0275template(30,ud,3,3,"div",7),t.\u0275\u0275elementStart(31,"div",8),t.\u0275\u0275listener("click",function(){return c.exportWidget("xls")}),t.\u0275\u0275text(32),t.\u0275\u0275pipe(33,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(34,"div",8),t.\u0275\u0275listener("click",function(){return c.exportWidget("csv")}),t.\u0275\u0275text(35),t.\u0275\u0275pipe(36,"i18n"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(37,qs,19,3,"div",13),t.\u0275\u0275template(38,wa,2,0,"div",7),t.\u0275\u0275elementEnd()}2&s&&(t.\u0275\u0275property("ngIf",!c.isMobile),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.isMobile),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",c.isMobileFilterVisible||c.us.isEmbedded()),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",c.dbs.getWidgets()),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.isLoading),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",null==c.contexMenuData?null:c.contexMenuData.canDrill),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.contexMenuData?null:c.contexMenuData.canDrillthrough),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(12,21,"refresh")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==c.ctxItem?null:c.ctxItem.isChart),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(16,23,"share")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(19,25,"copyMDX")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==c.ctxItem?null:c.ctxItem.kpitype),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.ctxItem?null:c.ctxItem.dataSource),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",null==c.ctxItem?null:c.ctxItem.isChart),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.ctxItem?null:c.ctxItem.isChart),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.ctxItem?null:c.ctxItem.isChart),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.ctxItem?null:c.ctxItem.isChart),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(33,27,"xlsDoc")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(36,29,"csvDoc")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",null==c.ctxItem?null:c.ctxItem.isChart),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.ctxItem))},dependencies:[R.NgForOf,R.NgIf,ba.sm,ba.IM,Ll,G.C],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:block;width:100%;height:100%;padding-bottom:20px}gridster[_ngcontent-%COMP%]{background:var(--cl-bg)}.mobile-widgets[_ngcontent-%COMP%]{display:flex;width:-moz-fit-content;width:fit-content;transition:transform .2s linear;white-space:nowrap;height:100%}.tile[_ngcontent-%COMP%]{content-visibility:auto;overflow:visible;display:flex!important;flex-direction:column;position:absolute;border-radius:var(--tile-border-radius);border:1px solid var(--cl-header-border);user-select:none;-webkit-user-select:none}.tile.expanded[_ngcontent-%COMP%]{position:fixed;z-index:3!important;left:15px!important;top:calc(var(--header-height) + 15px)!important;right:15px!important;bottom:15px!important;width:auto!important;height:auto!important;transform:none!important;transition:none!important;margin:0!important;box-shadow:0 0 10px #0000001a;border:1px solid darkgray}.tile.expanded[_ngcontent-%COMP%] .gridster-item-resizable-handler.handle-se{display:none!important;pointer-events:none!important}@media (max-width: 576px){.tile[_ngcontent-%COMP%]{position:static;margin-bottom:0!important;width:100vw;display:inline-flex!important;border:none}}.ctx-menu[_ngcontent-%COMP%]{font-family:Roboto Condensed;position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:1px solid var(--cl-header-border);border-radius:4px;z-index:4;background-color:#fff;white-space:nowrap;box-shadow:0 0 5px #0000001f;min-width:140px}.ctx-menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;padding:10px 20px;cursor:pointer;-webkit-user-select:none;user-select:none}.ctx-menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover{background-color:#0000000d}.ctx-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{height:0;margin:0;padding:0;border-bottom:1px solid var(--cl-header-border)}.ctx-sub[_ngcontent-%COMP%]{position:relative}.ctx-sub[_ngcontent-%COMP%]:after{content:"";background-image:url(assets/img/icons/next.svg);position:absolute;right:6px;display:block;z-index:1;top:14px;width:12px;height:12px;opacity:.4;transform:scaleX(.6)}.ctx-sub[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:none;position:absolute;left:calc(100% + 1px);top:0}.ctx-sub[_ngcontent-%COMP%]:hover > div[_ngcontent-%COMP%]{display:block}.pager[_ngcontent-%COMP%]{display:none;position:absolute;left:0;width:100vw;bottom:calc(var(--header-height) - 10px);z-index:1;align-items:center;justify-content:center}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2px;background-color:var(--cl-widget-bg);border-radius:20px;border:1px solid var(--cl-header-border);height:20px}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:9px;height:9px;border-radius:20px;background-color:var(--cl-header-bg);border:1px solid var(--cl-header-border);margin-left:4px;margin-right:4px}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{width:14px;height:14px;position:relative}@media (max-width: 576px){.pager[_ngcontent-%COMP%]{display:flex}}.mobile-filter[_ngcontent-%COMP%]{position:absolute;left:0;top:0;bottom:0;z-index:10}.editing[_ngcontent-%COMP%]{border:2px solid var(--cl-accent)}gridster-item[_ngcontent-%COMP%]:not([style]){display:none}.dsw-spinner[_ngcontent-%COMP%]{top:var(--header-height)}'],changeDetection:0});class gc{constructor(s,c){this.route=s,this.hs=c,this.isFolder=!0,this.hs.visible$.next(!0),this.subRoutechange=(0,Nr.a)([this.route.url,this.route.params]).subscribe(([Q,dt])=>{const It=[dt.name,...Q.map(Kt=>Kt.path)].join("/");this.isFolder=-1===It.indexOf(".dashboard")})}ngOnInit(){}ngOnDestroy(){this.subRoutechange.unsubscribe()}}gc.\u0275fac=function(s){return new(s||gc)(t.\u0275\u0275directiveInject(Y.ActivatedRoute),t.\u0275\u0275directiveInject($))},gc.\u0275cmp=t.\u0275\u0275defineComponent({type:gc,selectors:[["dsw-main-screen"]],decls:2,vars:2,consts:[[4,"ngIf"]],template:function(s,c){1&s&&(t.\u0275\u0275template(0,Qs,1,0,"dsw-folder-screen",0),t.\u0275\u0275template(1,Nl,1,0,"dsw-dashboard-screen",0)),2&s&&(t.\u0275\u0275property("ngIf",c.isFolder),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.isFolder))},dependencies:[R.NgIf,ou,Fl],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}"]});class Wa{constructor(s,c,Q,dt,It,Kt){this.router=s,this.ds=c,this.route=Q,this.st=dt,this.ns=It,this.wt=Kt,this.model={},this.isLoaded=!1,this.previousNS=""}checkEmbed(s){var c;const Q=null===(c=this.st.serverSettings)||void 0===c?void 0:c.Embed;if(Q&&s.url.split("?")[0]!==Q)return this.router.navigateByUrl(Q),!0}resolve(s,c){const Q=s.params.ns;return new k.y(dt=>{const It=()=>{this.isLoaded=!0,dt.next(this.model),dt.complete()};if(this.checkEmbed(c))return;if(!O.l){if(!Q)return this.router.navigateByUrl("/login"),void It();this.ns.setCurrent(Q)}if(this.previousNS===O.l)return void It();const Kt=this.ds.loadConfig(O.l).then(xe=>this.st.loadConfig(xe)).catch(xe=>this.st.loadConfig(null)),le=this.loadServerSettings();Promise.all([Kt,le]).finally(()=>{this.checkEmbed(c)||(this.previousNS=O.l,It())})})}loadServerSettings(){return new Promise(s=>{this.ds.getSettings(O.l).then(c=>{this.st.loadServerSettings(c)}).finally(()=>s())})}}Wa.\u0275fac=function(s){return new(s||Wa)(t.\u0275\u0275inject(Y.Router),t.\u0275\u0275inject(U.Do),t.\u0275\u0275inject(Y.ActivatedRoute),t.\u0275\u0275inject(V.V),t.\u0275\u0275inject(O.L),t.\u0275\u0275inject(En.Xw))},Wa.\u0275prov=t.\u0275\u0275defineInjectable({token:Wa,factory:Wa.\u0275fac});const Sp=[{path:"",component:Fr,resolve:{model:O.L}},{path:"login",component:Fr},{path:":ns",resolve:{model:Wa},runGuardsAndResolvers:"always",children:[{path:"**",component:gc,data:{isDashboard:!0},resolve:{model:Wa},runGuardsAndResolvers:"always"}]}];class mc{}mc.\u0275fac=function(s){return new(s||mc)},mc.\u0275mod=t.\u0275\u0275defineNgModule({type:mc}),mc.\u0275inj=t.\u0275\u0275defineInjector({imports:[Y.RouterModule.forRoot(Sp,{useHash:!0}),Y.RouterModule]});class vc{}class du{}const Is="*";function dd(lt,s){return{type:7,name:lt,definitions:s,options:{}}}function Bl(lt,s=null){return{type:4,styles:s,timings:lt}}function pd(lt,s=null){return{type:2,steps:lt,options:s}}function oo(lt){return{type:6,styles:lt,offset:null}}function yc(lt,s,c=null){return{type:1,expr:lt,animation:s,options:c}}function Kf(lt){Promise.resolve().then(lt)}class kn{constructor(s=0,c=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=s+c}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Kf(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){const c="start"==s?this._onStartFns:this._onDoneFns;c.forEach(Q=>Q()),c.length=0}}class Mp{constructor(s){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;let c=0,Q=0,dt=0;const It=this.players.length;0==It?Kf(()=>this._onFinish()):this.players.forEach(Kt=>{Kt.onDone(()=>{++c==It&&this._onFinish()}),Kt.onDestroy(()=>{++Q==It&&this._onDestroy()}),Kt.onStart(()=>{++dt==It&&this._onStart()})}),this.totalTime=this.players.reduce((Kt,le)=>Math.max(Kt,le.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){const c=s*this.totalTime;this.players.forEach(Q=>{const dt=Q.totalTime?Math.min(1,c/Q.totalTime):1;Q.setPosition(dt)})}getPosition(){const s=this.players.reduce((c,Q)=>null===c||Q.totalTime>c.totalTime?Q:c,null);return null!=s?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){const c="start"==s?this._onStartFns:this._onDoneFns;c.forEach(Q=>Q()),c.length=0}}const Os=["container"],Yf=dd("toggle",[yc(":enter",[oo({transform:"translateX(-100%)"}),Bl("100ms",oo({transform:"translateX(0)"}))]),yc(":leave",[oo({transform:"translateX(0)"}),Bl("100ms",oo({transform:"translateX(-100%)"}))])]);class _c{constructor(s,c,Q){this.ss=s,this.r2=c,this.cfr=Q}ngOnInit(){this.subSidebarToggle=this.ss.sidebarToggle.subscribe(s=>{null!==s&&(this.container.length&&this.container.detach(0),s.compRef?this.container.insert(s.compRef.hostView,0):s.compRef=this.createComponent(s))})}ngOnDestroy(){this.subSidebarToggle.unsubscribe()}createComponent(s){const c=this.cfr.resolveComponentFactory(s.component);return this.component=this.container.createComponent(c),this.ss.updateComponentProperties(this.component,s),this.component}removeComponent(){this.component&&(this.component.destroy(),this.component=null)}}_c.\u0275fac=function(s){return new(s||_c)(t.\u0275\u0275directiveInject(W.P),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver))},_c.\u0275cmp=t.\u0275\u0275defineComponent({type:_c,selectors:[["dsw-sidebar"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(Os,7,t.ViewContainerRef),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.container=Q.first)}},decls:2,vars:0,consts:[["hidden",""],["container",""]],template:function(s,c){1&s&&t.\u0275\u0275element(0,"div",0,1)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:block;height:100%;width:var(--sidebar-width);max-width:var(--sidebar-width);background-color:var(--cl-sidebar-bg);color:var(--cl-sidebar-txt);flex:0 0 var(--sidebar-width);border-right:1px solid var(--cl-sidebar-border);z-index:3;position:relative;overflow:hidden}"]});const Tm=dd("toggleError",[yc(":enter",[oo({transform:"translateX(100%)"}),Bl("100ms",oo({transform:"translateX(0)"}))]),yc(":leave",[oo({transform:"translateX(0)"}),Bl("100ms",oo({transform:"translateX(100%)"}))])]),oh=dd("toggleErrorLeft",[yc(":enter",[oo({transform:"translateX(-100%)"}),Bl("100ms",oo({transform:"translateX(0)"}))]),yc(":leave",[oo({transform:"translateX(0)"}),Bl("100ms",oo({transform:"translateX(-100%)"}))])]);class pu{constructor(s,c){this.es=s,this.el=c,this.height=32}get isLeft(){return this.error.isLeft}ngOnInit(){}ngAfterViewInit(){}onClick(s){this.es.close(this.error)}get getOffset(){return 8+this.es.getIndex(this.error)*(this.height+8)}}function Ap(lt,s){1<&&t.\u0275\u0275element(0,"img",2)}function xc(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",3),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.selectNamespace(It))}),t.\u0275\u0275element(1,"img",4),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("src",Q.isSelected(c)?"assets/img/icons/check-black-18dp.svg":"",t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",c," ")}}pu.\u0275fac=function(s){return new(s||pu)(t.\u0275\u0275directiveInject(hc.T),t.\u0275\u0275directiveInject(t.ElementRef))},pu.\u0275cmp=t.\u0275\u0275defineComponent({type:pu,selectors:[["dsw-error"]],hostVars:4,hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("click",function(dt){return c.onClick(dt)}),2&s&&(t.\u0275\u0275styleProp("bottom",c.getOffset,"px"),t.\u0275\u0275classProp("left",c.isLeft))},inputs:{error:"error"},decls:2,vars:1,template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.error.message))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{font-family:Roboto Condensed;cursor:pointer;position:absolute;padding:4px 10px;height:32px;color:#fff;background-color:red;display:flex;justify-content:flex-start;align-items:center;border-radius:4px;right:10px;white-space:nowrap;max-width:50%;transition:bottom .1s linear;z-index:100}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{min-width:0;overflow:hidden;text-overflow:ellipsis}.left[_nghost-%COMP%]{right:auto;left:10px}"]});class fl{constructor(s,c,Q,dt){this.ss=s,this.ns=c,this.ds=Q,this.router=dt,this.items=[],this.isLoading=!0,this.ds.getSettings(O.l).then(It=>{this.ns.setNamespaces(It.Mappings.Mapped)}).finally(()=>{this.isLoading=!1,this.items=c.getNamespaces()})}selectNamespace(s){this.ns.setCurrent(s),this.router.navigateByUrl(s),this.ss.showComponent(null)}isSelected(s){return s.toLowerCase()===O.l.toLowerCase()}}function gd(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",1),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.selectLanguage(It))}),t.\u0275\u0275element(1,"img",2),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("src",Q.isSelected(c)?"assets/img/icons/check-black-18dp.svg":"",t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",Q.i18n.getLanguageName(c)," ")}}fl.\u0275fac=function(s){return new(s||fl)(t.\u0275\u0275directiveInject(W.P),t.\u0275\u0275directiveInject(O.L),t.\u0275\u0275directiveInject(U.Do),t.\u0275\u0275directiveInject(Y.Router))},fl.\u0275cmp=t.\u0275\u0275defineComponent({type:fl,selectors:[["dsw-namespace-selector"]],decls:3,vars:2,consts:[["class","spinner","src","assets/img/spinner.svg",4,"ngIf"],[3,"click",4,"ngFor","ngForOf"],["src","assets/img/spinner.svg",1,"spinner"],[3,"click"],[3,"src"]],template:function(s,c){1&s&&(t.\u0275\u0275template(0,Ap,1,0,"img",0),t.\u0275\u0275elementStart(1,"ul"),t.\u0275\u0275template(2,xc,3,2,"li",1),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275property("ngIf",c.isLoading),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",c.items))},dependencies:[R.NgForOf,R.NgIf],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Roboto Condensed;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Roboto Condensed;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});class gl{constructor(s,c,Q){this.i18n=s,this.storage=c,this.ss=Q,this.languages=this.i18n.getLanguages()}selectLanguage(s){const c=this.storage.getAppSettings();this.i18n.current=s,c.language=s,this.storage.setAppSettings(c),window.location.reload(),this.ss.showComponent(null)}isSelected(s){return this.i18n.current===s}}gl.\u0275fac=function(s){return new(s||gl)(t.\u0275\u0275directiveInject(G.D),t.\u0275\u0275directiveInject(V.V),t.\u0275\u0275directiveInject(W.P))},gl.\u0275cmp=t.\u0275\u0275defineComponent({type:gl,selectors:[["dsw-language-selector"]],decls:2,vars:1,consts:[[3,"click",4,"ngFor","ngForOf"],[3,"click"],[3,"src"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"ul"),t.\u0275\u0275template(1,gd,3,2,"li",0),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.languages))},dependencies:[R.NgForOf],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Roboto Condensed;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Roboto Condensed;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});var md=ht(4826);class ml{constructor(s,c){this.ds=s,this.san=c,this.ds.getFile("changelog.md").then(Q=>{this.changelog=md({html:!0}).render(Q)})}}ml.\u0275fac=function(s){return new(s||ml)(t.\u0275\u0275directiveInject(U.Do),t.\u0275\u0275directiveInject(pt.DomSanitizer))},ml.\u0275cmp=t.\u0275\u0275defineComponent({type:ml,selectors:[["dsw-about"]],decls:8,vars:1,consts:[["href","https://github.com/intersystems-community/DeepSeeWeb"],[1,"changelog",3,"innerHTML"]],template:function(s,c){1&s&&(t.\u0275\u0275text(0,"Renderer for DeepSee Dashboards in Browser with MDX2JSON as a Serverside and JS web-client.\n"),t.\u0275\u0275element(1,"br"),t.\u0275\u0275text(2,"\nMore info at: "),t.\u0275\u0275elementStart(3,"a",0),t.\u0275\u0275text(4,"Github DeepSeeWeb repository"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"h2"),t.\u0275\u0275text(6,"Changelog"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(7,"div",1)),2&s&&(t.\u0275\u0275advance(7),t.\u0275\u0275property("innerHTML",c.changelog,t.\u0275\u0275sanitizeHtml))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{font-family:Roboto Condensed;max-width:50vw}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;margin-bottom:20px;font-weight:400}"]});const Zf=["dialogPopup"],Tp=["hueSlider"],Pp=["alphaSlider"];function Ip(lt,s){if(1<&&t.\u0275\u0275element(0,"div"),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275classMapInterpolate1("arrow arrow-",c.cpUsePosition,""),t.\u0275\u0275styleProp("top",c.arrowTop,"px")}}function fu(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",26),t.\u0275\u0275listener("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onColorChange(dt))})("dragStart",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onDragStart("saturation-lightness"))})("dragEnd",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onDragEnd("saturation-lightness"))}),t.\u0275\u0275element(1,"div",13),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("background-color",c.hueSliderColor),t.\u0275\u0275property("rgX",1)("rgY",1),t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("top",null==c.slider?null:c.slider.v,"px")("left",null==c.slider?null:c.slider.s,"px")}}function qf(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",27),t.\u0275\u0275listener("click",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAddPresetColor(dt,It.selectedColor))}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275classMap(c.cpAddColorButtonClass),t.\u0275\u0275property("disabled",c.cpPresetColors&&c.cpPresetColors.length>=c.cpMaxPresetColorsLength),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",c.cpAddColorButtonText," ")}}function gu(lt,s){1<&&t.\u0275\u0275element(0,"div",28)}function Op(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",34),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAlphaInput(dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("rg",1)("value",null==c.cmykText?null:c.cmykText.a)}}function kp(lt,s){1<&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275text(1,"A"),t.\u0275\u0275elementEnd())}function Pm(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",29)(1,"div",30)(2,"input",31),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onCyanInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"input",31),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onMagentaInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"input",31),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onYellowInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"input",31),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onBlackInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(6,Op,1,2,"input",32),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div",30)(8,"div"),t.\u0275\u0275text(9,"C"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"div"),t.\u0275\u0275text(11,"M"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"div"),t.\u0275\u0275text(13,"Y"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(14,"div"),t.\u0275\u0275text(15,"K"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(16,kp,2,0,"div",33),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("display",3!==c.format?"none":"block"),t.\u0275\u0275advance(2),t.\u0275\u0275property("rg",100)("value",null==c.cmykText?null:c.cmykText.c),t.\u0275\u0275advance(1),t.\u0275\u0275property("rg",100)("value",null==c.cmykText?null:c.cmykText.m),t.\u0275\u0275advance(1),t.\u0275\u0275property("rg",100)("value",null==c.cmykText?null:c.cmykText.y),t.\u0275\u0275advance(1),t.\u0275\u0275property("rg",100)("value",null==c.cmykText?null:c.cmykText.k),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","disabled"!==c.cpAlphaChannel),t.\u0275\u0275advance(10),t.\u0275\u0275property("ngIf","disabled"!==c.cpAlphaChannel)}}function Qf(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",34),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAlphaInput(dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("rg",1)("value",null==c.hslaText?null:c.hslaText.a)}}function Jf(lt,s){1<&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275text(1,"A"),t.\u0275\u0275elementEnd())}function Ga(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",35)(1,"div",30)(2,"input",36),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onHueInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"input",31),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onSaturationInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"input",31),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onLightnessInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(5,Qf,1,2,"input",32),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",30)(7,"div"),t.\u0275\u0275text(8,"H"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"div"),t.\u0275\u0275text(10,"S"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"div"),t.\u0275\u0275text(12,"L"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(13,Jf,2,0,"div",33),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("display",2!==c.format?"none":"block"),t.\u0275\u0275advance(2),t.\u0275\u0275property("rg",360)("value",null==c.hslaText?null:c.hslaText.h),t.\u0275\u0275advance(1),t.\u0275\u0275property("rg",100)("value",null==c.hslaText?null:c.hslaText.s),t.\u0275\u0275advance(1),t.\u0275\u0275property("rg",100)("value",null==c.hslaText?null:c.hslaText.l),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","disabled"!==c.cpAlphaChannel),t.\u0275\u0275advance(8),t.\u0275\u0275property("ngIf","disabled"!==c.cpAlphaChannel)}}function vd(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",34),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAlphaInput(dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("rg",1)("value",null==c.rgbaText?null:c.rgbaText.a)}}function Cc(lt,s){1<&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275text(1,"A"),t.\u0275\u0275elementEnd())}function tg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",37)(1,"div",30)(2,"input",38),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onRedInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"input",38),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onGreenInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"input",38),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onBlueInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(5,vd,1,2,"input",32),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",30)(7,"div"),t.\u0275\u0275text(8,"R"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"div"),t.\u0275\u0275text(10,"G"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"div"),t.\u0275\u0275text(12,"B"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(13,Cc,2,0,"div",33),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("display",1!==c.format?"none":"block"),t.\u0275\u0275advance(2),t.\u0275\u0275property("rg",255)("value",null==c.rgbaText?null:c.rgbaText.r),t.\u0275\u0275advance(1),t.\u0275\u0275property("rg",255)("value",null==c.rgbaText?null:c.rgbaText.g),t.\u0275\u0275advance(1),t.\u0275\u0275property("rg",255)("value",null==c.rgbaText?null:c.rgbaText.b),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","disabled"!==c.cpAlphaChannel),t.\u0275\u0275advance(8),t.\u0275\u0275property("ngIf","disabled"!==c.cpAlphaChannel)}}function Im(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",34),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAlphaInput(dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("rg",1)("value",c.hexAlpha)}}function mu(lt,s){1<&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275text(1,"A"),t.\u0275\u0275elementEnd())}function eg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",39)(1,"div",30)(2,"input",40),t.\u0275\u0275listener("blur",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onHexInput(null))})("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onHexInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,Im,1,2,"input",32),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",30)(5,"div"),t.\u0275\u0275text(6,"Hex"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(7,mu,2,0,"div",33),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275styleProp("display",0!==c.format?"none":"block"),t.\u0275\u0275classProp("hex-alpha","forced"===c.cpAlphaChannel),t.\u0275\u0275advance(2),t.\u0275\u0275property("value",c.hexText),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","forced"===c.cpAlphaChannel),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf","forced"===c.cpAlphaChannel)}}function Lp(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",34),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAlphaInput(dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("rg",1)("value",null==c.hslaText?null:c.hslaText.a)}}function Om(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",41)(1,"div",30)(2,"input",31),t.\u0275\u0275listener("keyup.enter",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onAcceptColor(dt))})("newValue",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onValueInput(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,Lp,1,2,"input",32),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",30)(5,"div"),t.\u0275\u0275text(6,"V"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div"),t.\u0275\u0275text(8,"A"),t.\u0275\u0275elementEnd()()()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275property("rg",100)("value",null==c.hslaText?null:c.hslaText.l),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","disabled"!==c.cpAlphaChannel)}}function Rp(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",42)(1,"span",43),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onFormatToggle(-1))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"span",43),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onFormatToggle(1))}),t.\u0275\u0275elementEnd()()}}function yd(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",50),t.\u0275\u0275listener("click",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext().$implicit,Kt=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(Kt.onRemovePresetColor(dt,It))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(4);t.\u0275\u0275classMap(c.cpRemoveColorButtonClass)}}function Fp(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",48),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(Kt.setColorFromString(It))}),t.\u0275\u0275template(1,yd,1,3,"span",49),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext(3);t.\u0275\u0275styleProp("background-color",c),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",Q.cpAddColorButton)}}function ig(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,Fp,2,3,"div",47),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classMap(c.cpPresetColorsClass),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.cpPresetColors)}}function _d(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classMap(c.cpPresetEmptyMessageClass),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.cpPresetEmptyMessage)}}function ng(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",44),t.\u0275\u0275element(1,"hr"),t.\u0275\u0275elementStart(2,"div",45),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,ig,2,4,"div",46),t.\u0275\u0275template(5,_d,2,4,"div",46),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(c.cpPresetLabel),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.cpPresetColors?null:c.cpPresetColors.length),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=c.cpPresetColors&&c.cpPresetColors.length)&&c.cpAddColorButton)}}function bc(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",53),t.\u0275\u0275listener("click",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onCancelColor(dt))}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classMap(c.cpCancelButtonClass),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.cpCancelButtonText)}}function rg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",53),t.\u0275\u0275listener("click",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onAcceptColor(dt))}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classMap(c.cpOKButtonClass),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.cpOKButtonText)}}function sg(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",51),t.\u0275\u0275template(1,bc,2,4,"button",52),t.\u0275\u0275template(2,rg,2,4,"button",52),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.cpCancelButton),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.cpOKButton)}}var ks;!function(lt){lt[lt.HEX=0]="HEX",lt[lt.RGBA=1]="RGBA",lt[lt.HSLA=2]="HSLA",lt[lt.CMYK=3]="CMYK"}(ks||(ks={}));class vl{constructor(s,c,Q,dt){this.r=s,this.g=c,this.b=Q,this.a=dt}}class xd{constructor(s,c,Q,dt){this.h=s,this.s=c,this.v=Q,this.a=dt}}class Js{constructor(s,c,Q,dt){this.h=s,this.s=c,this.l=Q,this.a=dt}}class Yo{constructor(s,c,Q,dt,It=1){this.c=s,this.m=c,this.y=Q,this.k=dt,this.a=It}}class ah{constructor(){this.newValue=new t.EventEmitter}inputChange(s){const c=s.target.value;if(void 0===this.rg)this.newValue.emit(c);else{const Q=parseFloat(c);this.newValue.emit({v:Q,rg:this.rg})}}}ah.\u0275fac=function(s){return new(s||ah)},ah.\u0275dir=t.\u0275\u0275defineDirective({type:ah,selectors:[["","text",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("input",function(dt){return c.inputChange(dt)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}}),ah.propDecorators={rg:[{type:t.Input}],text:[{type:t.Input}],newValue:[{type:t.Output}],inputChange:[{type:t.HostListener,args:["input",["$event"]]}]};class wc{constructor(s){this.elRef=s,this.dragEnd=new t.EventEmitter,this.dragStart=new t.EventEmitter,this.newValue=new t.EventEmitter,this.listenerMove=c=>this.move(c),this.listenerStop=()=>this.stop()}mouseDown(s){this.start(s)}touchStart(s){this.start(s)}move(s){s.preventDefault(),this.setCursor(s)}start(s){this.setCursor(s),s.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(s){const c=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==s.pageX?s.pageX:s.touches[0].pageX)-c.left-window.pageXOffset}getY(s){const c=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==s.pageY?s.pageY:s.touches[0].pageY)-c.top-window.pageYOffset}setCursor(s){const c=this.elRef.nativeElement.offsetWidth,Q=this.elRef.nativeElement.offsetHeight,dt=Math.max(0,Math.min(this.getX(s),c)),It=Math.max(0,Math.min(this.getY(s),Q));void 0!==this.rgX&&void 0!==this.rgY?this.newValue.emit({s:dt/c,v:1-It/Q,rgX:this.rgX,rgY:this.rgY}):void 0===this.rgX&&void 0!==this.rgY?this.newValue.emit({v:It/Q,rgY:this.rgY}):void 0!==this.rgX&&void 0===this.rgY&&this.newValue.emit({v:dt/c,rgX:this.rgX})}}wc.\u0275fac=function(s){return new(s||wc)(t.\u0275\u0275directiveInject(t.ElementRef))},wc.\u0275dir=t.\u0275\u0275defineDirective({type:wc,selectors:[["","slider",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("mousedown",function(dt){return c.mouseDown(dt)})("touchstart",function(dt){return c.touchStart(dt)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),wc.ctorParameters=()=>[{type:t.ElementRef}],wc.propDecorators={rgX:[{type:t.Input}],rgY:[{type:t.Input}],slider:[{type:t.Input}],dragEnd:[{type:t.Output}],dragStart:[{type:t.Output}],newValue:[{type:t.Output}],mouseDown:[{type:t.HostListener,args:["mousedown",["$event"]]}],touchStart:[{type:t.HostListener,args:["touchstart",["$event"]]}]};class og{constructor(s,c,Q,dt){this.h=s,this.s=c,this.v=Q,this.a=dt}}class ag{constructor(s,c,Q,dt){this.h=s,this.s=c,this.v=Q,this.a=dt}}class Eo{constructor(){this.active=null}setActive(s){this.active&&this.active!==s&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=s}hsva2hsla(s){const c=s.h,Q=s.s,dt=s.v,It=s.a;if(0===dt)return new Js(c,0,0,It);if(0===Q&&1===dt)return new Js(c,1,1,It);{const Kt=dt*(2-Q)/2;return new Js(c,dt*Q/(1-Math.abs(2*Kt-1)),Kt,It)}}hsla2hsva(s){const c=Math.min(s.h,1),Q=Math.min(s.s,1),dt=Math.min(s.l,1),It=Math.min(s.a,1);if(0===dt)return new xd(c,0,0,It);{const Kt=dt+Q*(1-Math.abs(2*dt-1))/2;return new xd(c,2*(Kt-dt)/Kt,Kt,It)}}hsvaToRgba(s){let c,Q,dt;const It=s.h,Kt=s.s,le=s.v,xe=s.a,Me=Math.floor(6*It),oi=6*It-Me,hi=le*(1-Kt),Li=le*(1-oi*Kt),Pi=le*(1-(1-oi)*Kt);switch(Me%6){case 0:c=le,Q=Pi,dt=hi;break;case 1:c=Li,Q=le,dt=hi;break;case 2:c=hi,Q=le,dt=Pi;break;case 3:c=hi,Q=Li,dt=le;break;case 4:c=Pi,Q=hi,dt=le;break;case 5:c=le,Q=hi,dt=Li;break;default:c=0,Q=0,dt=0}return new vl(c,Q,dt,xe)}cmykToRgb(s){const c=(1-s.c)*(1-s.k),Q=(1-s.m)*(1-s.k),dt=(1-s.y)*(1-s.k);return new vl(c,Q,dt,s.a)}rgbaToCmyk(s){const c=1-Math.max(s.r,s.g,s.b);if(1===c)return new Yo(0,0,0,1,s.a);{const Q=(1-s.r-c)/(1-c),dt=(1-s.g-c)/(1-c),It=(1-s.b-c)/(1-c);return new Yo(Q,dt,It,c,s.a)}}rgbaToHsva(s){let c,Q;const dt=Math.min(s.r,1),It=Math.min(s.g,1),Kt=Math.min(s.b,1),le=Math.min(s.a,1),xe=Math.max(dt,It,Kt),Me=Math.min(dt,It,Kt),oi=xe,hi=xe-Me;if(Q=0===xe?0:hi/xe,xe===Me)c=0;else{switch(xe){case dt:c=(It-Kt)/hi+(It[];class Ec{constructor(s,c,Q){this.elRef=s,this.cdRef=c,this.service=Q,this.isIE10=!1,this.dialogArrowSize=10,this.dialogArrowOffset=15,this.dialogInputFields=[ks.HEX,ks.RGBA,ks.HSLA,ks.CMYK],this.useRootViewContainer=!1}handleEsc(s){this.show&&"popup"===this.cpDialogDisplay&&this.onCancelColor(s)}handleEnter(s){this.show&&"popup"===this.cpDialogDisplay&&this.onAcceptColor(s)}ngOnInit(){this.slider=new og(0,0,0,0);const s=this.hueSlider.nativeElement.offsetWidth||140,c=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new ag(s,this.cpWidth,130,c),this.cpCmykEnabled?this.format=ks.CMYK:"rgba"===this.cpOutputFormat?this.format=ks.RGBA:"hsla"===this.cpOutputFormat?this.format=ks.HSLA:this.format=ks.HEX,this.listenerMouseDown=Q=>{this.onMouseDown(Q)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(230!==this.cpWidth||"inline"===this.cpDialogDisplay){const s=this.hueSlider.nativeElement.offsetWidth||140,c=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new ag(s,this.cpWidth,130,c),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(s,c=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(s),this.setColorFromString(s,c),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(s,c,Q,dt,It,Kt,le,xe,Me,oi,hi,Li,Pi,Ki,on,Rn,Yn,Ur,Tr,Wr,na,ra,zs,sa,oa,Aa,Kc,Ta,ho,uo,lp,Bi,ji,Gi,an){this.setInitialColor(Q),this.setColorMode(xe),this.isIE10=10===function km(){let lt="";typeof navigator<"u"&&(lt=navigator.userAgent.toLowerCase());const s=lt.indexOf("msie ");return s>0&&parseInt(lt.substring(s+5,lt.indexOf(".",s)),10)}(),this.directiveInstance=s,this.directiveElementRef=c,this.cpDisableInput=Li,this.cpCmykEnabled=Me,this.cpAlphaChannel=oi,this.cpOutputFormat=hi,this.cpDialogDisplay=Kt,this.cpIgnoredElements=Pi,this.cpSaveClickOutside=Ki,this.cpCloseClickOutside=on,this.useRootViewContainer=Rn,this.width=this.cpWidth=parseInt(dt,10),this.height=this.cpHeight=parseInt(It,10),this.cpPosition=Yn,this.cpPositionOffset=parseInt(Ur,10),this.cpOKButton=Aa,this.cpOKButtonText=Ta,this.cpOKButtonClass=Kc,this.cpCancelButton=ho,this.cpCancelButtonText=lp,this.cpCancelButtonClass=uo,this.fallbackColor=le||"#fff",this.setPresetConfig(Wr,na),this.cpPresetColorsClass=ra,this.cpMaxPresetColorsLength=zs,this.cpPresetEmptyMessage=sa,this.cpPresetEmptyMessageClass=oa,this.cpAddColorButton=Bi,this.cpAddColorButtonText=Gi,this.cpAddColorButtonClass=ji,this.cpRemoveColorButtonClass=an,Tr||(this.dialogArrowOffset=0),"inline"===Kt&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),"hex"===hi&&"always"!==oi&&"forced"!==oi&&(this.cpAlphaChannel="disabled")}setColorMode(s){switch(s.toString().toUpperCase()){case"1":case"C":case"COLOR":default:this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3}}setInitialColor(s){this.initialColor=s}setPresetConfig(s,c){this.cpPresetLabel=s,this.cpPresetColors=c}setColorFromString(s,c=!0,Q=!0){let dt;"always"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel?(dt=this.service.stringToHsva(s,!0),!dt&&!this.hsva&&(dt=this.service.stringToHsva(s,!1))):dt=this.service.stringToHsva(s,!1),!dt&&!this.hsva&&(dt=this.service.stringToHsva(this.fallbackColor,!1)),dt&&(this.hsva=dt,this.sliderH=this.hsva.h,"hex"===this.cpOutputFormat&&"disabled"===this.cpAlphaChannel&&(this.hsva.a=1),this.updateColorPicker(c,Q))}onResize(){"fixed"===this.position?this.setDialogPosition():"inline"!==this.cpDialogDisplay&&this.closeColorPicker()}onDragEnd(s){this.directiveInstance.sliderDragEnd({slider:s,color:this.outputColor})}onDragStart(s){this.directiveInstance.sliderDragStart({slider:s,color:this.outputColor})}onMouseDown(s){this.show&&!this.isIE10&&"popup"===this.cpDialogDisplay&&s.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,s.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,s.target)&&0===this.cpIgnoredElements.filter(c=>c===s.target).length&&(this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker())}onAcceptColor(s){s.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),"popup"===this.cpDialogDisplay&&this.closeColorPicker()}onCancelColor(s){this.hsva=null,s.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),"popup"===this.cpDialogDisplay&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onFormatToggle(s){const c=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),Q=((this.dialogInputFields.indexOf(this.format)+s)%c+c)%c;this.format=this.dialogInputFields[Q]}onColorChange(s){this.hsva.s=s.s/s.rgX,this.hsva.v=s.v/s.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(s){this.hsva.h=s.v/s.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(s){this.hsva.v=s.v/s.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(s){this.hsva.a=s.v/s.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(s){if(null===s)this.updateColorPicker();else{s&&"#"!==s[0]&&(s="#"+s);let c=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;"always"===this.cpAlphaChannel&&(c=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);const Q=c.test(s);Q&&(s.length<5&&(s="#"+s.substring(1).split("").map(dt=>dt+dt).join("")),"forced"===this.cpAlphaChannel&&(s+=Math.round(255*this.hsva.a).toString(16)),this.setColorFromString(s,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:Q,value:s,color:this.outputColor})}}onRedInput(s){const c=this.service.hsvaToRgba(this.hsva),Q=!isNaN(s.v)&&s.v>=0&&s.v<=s.rg;Q&&(c.r=s.v/s.rg,this.hsva=this.service.rgbaToHsva(c),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:Q,value:c.r,color:this.outputColor})}onBlueInput(s){const c=this.service.hsvaToRgba(this.hsva),Q=!isNaN(s.v)&&s.v>=0&&s.v<=s.rg;Q&&(c.b=s.v/s.rg,this.hsva=this.service.rgbaToHsva(c),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:Q,value:c.b,color:this.outputColor})}onGreenInput(s){const c=this.service.hsvaToRgba(this.hsva),Q=!isNaN(s.v)&&s.v>=0&&s.v<=s.rg;Q&&(c.g=s.v/s.rg,this.hsva=this.service.rgbaToHsva(c),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:Q,value:c.g,color:this.outputColor})}onHueInput(s){const c=!isNaN(s.v)&&s.v>=0&&s.v<=s.rg;c&&(this.hsva.h=s.v/s.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:c,value:this.hsva.h,color:this.outputColor})}onValueInput(s){const c=!isNaN(s.v)&&s.v>=0&&s.v<=s.rg;c&&(this.hsva.v=s.v/s.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:c,value:this.hsva.v,color:this.outputColor})}onAlphaInput(s){const c=!isNaN(s.v)&&s.v>=0&&s.v<=s.rg;c&&(this.hsva.a=s.v/s.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:c,value:this.hsva.a,color:this.outputColor})}onLightnessInput(s){const c=this.service.hsva2hsla(this.hsva),Q=!isNaN(s.v)&&s.v>=0&&s.v<=s.rg;Q&&(c.l=s.v/s.rg,this.hsva=this.service.hsla2hsva(c),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:Q,value:c.l,color:this.outputColor})}onSaturationInput(s){const c=this.service.hsva2hsla(this.hsva),Q=!isNaN(s.v)&&s.v>=0&&s.v<=s.rg;Q&&(c.s=s.v/s.rg,this.hsva=this.service.hsla2hsva(c),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:Q,value:c.s,color:this.outputColor})}onCyanInput(s){!isNaN(s.v)&&s.v>=0&&s.v<=s.rg&&(this.cmyk.c=s.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(s){!isNaN(s.v)&&s.v>=0&&s.v<=s.rg&&(this.cmyk.m=s.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(s){!isNaN(s.v)&&s.v>=0&&s.v<=s.rg&&(this.cmyk.y=s.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(s){!isNaN(s.v)&&s.v>=0&&s.v<=s.rg&&(this.cmyk.k=s.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(s,c){s.stopPropagation(),this.cpPresetColors.filter(Q=>Q===c).length||(this.cpPresetColors=this.cpPresetColors.concat(c),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(s,c){s.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(Q=>Q!==c),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||(document.addEventListener("mousedown",this.listenerMouseDown),document.addEventListener("touchstart",this.listenerMouseDown)),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(document.removeEventListener("mousedown",this.listenerMouseDown),document.removeEventListener("touchstart",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(s=!0,c=!0,Q=!1){if(this.sliderDimMax){let dt,It,Kt;2===this.cpColorMode&&(this.hsva.s=0);const le=this.outputColor;if(It=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(Q?(Kt=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(Kt)):(Kt=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(Kt))),Kt=this.service.denormalizeRGBA(Kt),this.sliderH=this.hsva.h):Kt=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),dt=this.service.denormalizeRGBA(this.service.hsvaToRgba(new xd(this.sliderH||this.hsva.h,1,1,1))),c){this.hslaText=new Js(Math.round(360*It.h),Math.round(100*It.s),Math.round(100*It.l),Math.round(100*It.a)/100),this.rgbaText=new vl(Kt.r,Kt.g,Kt.b,Math.round(100*Kt.a)/100),this.cpCmykEnabled&&(this.cmykText=new Yo(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(100*this.cmyk.a)/100));const xe="always"===this.cpAlphaChannel;this.hexText=this.service.rgbaToHex(Kt,xe),this.hexAlpha=this.rgbaText.a}if("auto"===this.cpOutputFormat&&this.format!==ks.RGBA&&this.format!==ks.CMYK&&this.hsva.a<1&&(this.format=this.hsva.a<1?ks.RGBA:ks.HEX),this.hueSliderColor="rgb("+dt.r+","+dt.g+","+dt.b+")",this.alphaSliderColor="rgb("+Kt.r+","+Kt.g+","+Kt.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==ks.CMYK)this.cmykColor="";else if("always"===this.cpAlphaChannel||"enabled"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel){const xe=Math.round(100*this.cmyk.a)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${xe})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new og((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),s&&le!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if("inline"===this.cpDialogDisplay)this.position="relative";else{let Q,s="static",c="",dt=null,It=null,Kt=this.directiveElementRef.nativeElement.parentNode;const le=this.dialogElement.nativeElement.offsetHeight;for(;null!==Kt&&"HTML"!==Kt.tagName;){if(Q=window.getComputedStyle(Kt),s=Q.getPropertyValue("position"),c=Q.getPropertyValue("transform"),"static"!==s&&null===dt&&(dt=Kt),c&&"none"!==c&&null===It&&(It=Kt),"fixed"===s){dt=It;break}Kt=Kt.parentNode}const xe=this.createDialogBox(this.directiveElementRef.nativeElement,"fixed"!==s);if(this.useRootViewContainer||"fixed"===s&&(!dt||dt instanceof HTMLUnknownElement))this.top=xe.top,this.left=xe.left;else{null===dt&&(dt=Kt);const oi=this.createDialogBox(dt,"fixed"!==s);this.top=xe.top-oi.top,this.left=xe.left-oi.left}"fixed"===s&&(this.position="fixed");let Me=this.cpPosition;if("auto"===this.cpPosition){Me=function vu(lt){let s="right",c="bottom";const{height:Q,width:dt,top:It,bottom:Kt,left:le,right:xe}=lt,Me=It-Q<0,oi=Kt+Q>(window.innerHeight||document.documentElement.clientHeight),hi=le-dt<0,Li=xe+dt>(window.innerWidth||document.documentElement.clientWidth);return oi&&(c="top"),Me&&(c="bottom"),hi&&(s="right"),Li&&(s="left"),Me&&oi&&hi&&Li?["left","right","top","bottom"].reduce((on,Rn)=>lt[on]>lt[Rn]?on:Rn):hi&&Li?Me?"bottom":oi||It>Kt?"top":"bottom":Me&&oi?hi?"right":Li||le>xe?"left":"right":`${c}-${s}`}(this.dialogElement.nativeElement.getBoundingClientRect())}"top"===Me?(this.arrowTop=le-1,this.top-=le+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*xe.width-this.dialogArrowOffset):"bottom"===Me?(this.top+=xe.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*xe.width-this.dialogArrowOffset):"top-left"===Me||"left-top"===Me?(this.top-=le-xe.height+xe.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset):"top-right"===Me||"right-top"===Me?(this.top-=le-xe.height+xe.height*this.cpPositionOffset/100,this.left+=xe.width+this.dialogArrowSize-2-this.dialogArrowOffset):"left"===Me||"bottom-left"===Me||"left-bottom"===Me?(this.top+=xe.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2):(this.top+=xe.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=xe.width+this.dialogArrowSize-2)}}isDescendant(s,c){let Q=c.parentNode;for(;null!==Q;){if(Q===s)return!0;Q=Q.parentNode}return!1}createDialogBox(s,c){return{top:s.getBoundingClientRect().top+(c?window.pageYOffset:0),left:s.getBoundingClientRect().left+(c?window.pageXOffset:0),width:s.offsetWidth,height:s.offsetHeight}}}Ec.\u0275fac=function(s){return new(s||Ec)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Eo))},Ec.\u0275cmp=t.\u0275\u0275defineComponent({type:Ec,selectors:[["color-picker"]],viewQuery:function(s,c){if(1&s&&(t.\u0275\u0275viewQuery(Zf,7),t.\u0275\u0275viewQuery(Tp,7),t.\u0275\u0275viewQuery(Pp,7)),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.dialogElement=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.hueSlider=Q.first),t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.alphaSlider=Q.first)}},hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("keyup.esc",function(dt){return c.handleEsc(dt)},!1,t.\u0275\u0275resolveDocument)("keyup.enter",function(dt){return c.handleEnter(dt)},!1,t.\u0275\u0275resolveDocument)},decls:28,vars:47,consts:[[1,"color-picker",3,"click"],["dialogPopup",""],[3,"class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"slider","rgX","newValue","dragStart","dragEnd"],["hueSlider",""],[1,"cursor"],[1,"value",3,"slider","rgX","newValue","dragStart","dragEnd"],["valueSlider",""],[1,"alpha",3,"slider","rgX","newValue","dragStart","dragEnd"],["alphaSlider",""],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],[1,"saturation-lightness",3,"slider","rgX","rgY","newValue","dragStart","dragEnd"],["type","button",3,"disabled","click"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"text","rg","value","keyup.enter","newValue"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"text","rg","value","keyup.enter","newValue"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"text","rg","value","keyup.enter","newValue"],[1,"hex-text"],[3,"text","value","blur","keyup.enter","newValue"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"div",0,1),t.\u0275\u0275listener("click",function(dt){return dt.stopPropagation()}),t.\u0275\u0275template(2,Ip,1,5,"div",2),t.\u0275\u0275template(3,fu,2,8,"div",3),t.\u0275\u0275elementStart(4,"div",4)(5,"div",5),t.\u0275\u0275element(6,"div",6)(7,"div",7),t.\u0275\u0275template(8,qf,2,5,"button",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"div",9),t.\u0275\u0275template(10,gu,1,0,"div",10),t.\u0275\u0275elementStart(11,"div",11,12),t.\u0275\u0275listener("newValue",function(dt){return c.onHueChange(dt)})("dragStart",function(){return c.onDragStart("hue")})("dragEnd",function(){return c.onDragEnd("hue")}),t.\u0275\u0275element(13,"div",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(14,"div",14,15),t.\u0275\u0275listener("newValue",function(dt){return c.onValueChange(dt)})("dragStart",function(){return c.onDragStart("value")})("dragEnd",function(){return c.onDragEnd("value")}),t.\u0275\u0275element(16,"div",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"div",16,17),t.\u0275\u0275listener("newValue",function(dt){return c.onAlphaChange(dt)})("dragStart",function(){return c.onDragStart("alpha")})("dragEnd",function(){return c.onDragEnd("alpha")}),t.\u0275\u0275element(19,"div",13),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275template(20,Pm,17,12,"div",18),t.\u0275\u0275template(21,Ga,14,10,"div",19),t.\u0275\u0275template(22,tg,14,10,"div",20),t.\u0275\u0275template(23,eg,8,7,"div",21),t.\u0275\u0275template(24,Om,9,3,"div",22),t.\u0275\u0275template(25,Rp,3,0,"div",23),t.\u0275\u0275template(26,ng,6,3,"div",24),t.\u0275\u0275template(27,sg,3,2,"div",25),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275styleProp("display",c.show?"block":"none")("visibility",c.hidden?"hidden":"visible")("top",c.top,"px")("left",c.left,"px")("position",c.position)("height",c.cpHeight,"px")("width",c.cpWidth,"px"),t.\u0275\u0275classProp("open",c.show),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf","popup"==c.cpDialogDisplay),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",1===(c.cpColorMode||1)),t.\u0275\u0275advance(4),t.\u0275\u0275styleProp("background-color",c.selectedColor),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.cpAddColorButton),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf","disabled"===c.cpAlphaChannel),t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("display",1===(c.cpColorMode||1)?"block":"none"),t.\u0275\u0275property("rgX",1),t.\u0275\u0275advance(2),t.\u0275\u0275styleProp("left",null==c.slider?null:c.slider.h,"px"),t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("display",2===(c.cpColorMode||1)?"block":"none"),t.\u0275\u0275property("rgX",1),t.\u0275\u0275advance(2),t.\u0275\u0275styleProp("right",null==c.slider?null:c.slider.v,"px"),t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("display","disabled"===c.cpAlphaChannel?"none":"block")("background-color",c.alphaSliderColor),t.\u0275\u0275property("rgX",1),t.\u0275\u0275advance(2),t.\u0275\u0275styleProp("left",null==c.slider?null:c.slider.a,"px"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.cpDisableInput&&1===(c.cpColorMode||1)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.cpDisableInput&&1===(c.cpColorMode||1)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.cpDisableInput&&1===(c.cpColorMode||1)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.cpDisableInput&&1===(c.cpColorMode||1)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.cpDisableInput&&2===(c.cpColorMode||1)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.cpDisableInput&&1===(c.cpColorMode||1)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==c.cpPresetColors?null:c.cpPresetColors.length)||c.cpAddColorButton),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.cpOKButton||c.cpCancelButton))},dependencies:[R.NgForOf,R.NgIf,ah,wc],styles:['.color-picker{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;background-color:#fff;border:1px solid #777;cursor:default;height:auto;position:absolute;user-select:none;width:230px;z-index:1000}.color-picker *{box-sizing:border-box;font-size:11px;margin:0}.color-picker input{color:#000;font-size:13px;height:26px;min-width:0;text-align:center;width:0}.color-picker input:-moz-submit-invalid,.color-picker input:-moz-ui-invalid,.color-picker input:invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.color-picker .arrow{border-style:solid;height:0;position:absolute;width:0;z-index:999999}.color-picker .arrow.arrow-top{border-color:#777 transparent transparent;border-width:10px 5px;left:8px}.color-picker .arrow.arrow-bottom{border-color:transparent transparent #777;border-width:10px 5px;left:8px;top:-20px}.color-picker .arrow.arrow-left-top,.color-picker .arrow.arrow-top-left{border-color:transparent transparent transparent #777;border-width:5px 10px;bottom:8px;right:-21px}.color-picker .arrow.arrow-right-top,.color-picker .arrow.arrow-top-right{border-color:transparent #777 transparent transparent;border-width:5px 10px;bottom:8px;left:-20px}.color-picker .arrow.arrow-bottom-left,.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom{border-color:transparent transparent transparent #777;border-width:5px 10px;right:-21px;top:8px}.color-picker .arrow.arrow-bottom-right,.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom{border-color:transparent #777 transparent transparent;border-width:5px 10px;left:-20px;top:8px}.color-picker .cursor{border:2px solid #222;border-radius:50%;cursor:default;height:16px;position:relative;width:16px}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{padding:16px 8px;position:relative}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{color:#555;font-size:11px;overflow:hidden;padding:4px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.color-picker .preset-area .preset-color{border:1px solid #a9a9a9;border-radius:25%;cursor:pointer;display:inline-block;height:18px;margin:4px 6px 8px;position:relative;width:18px}.color-picker .preset-area .preset-empty-message{font-style:italic;margin-bottom:8px;margin-top:4px;min-height:18px;text-align:center}.color-picker .hex-text{font-size:11px;padding:4px 8px;width:100%}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{clear:left;color:#555;flex:1 1 auto;float:left;text-align:center}.color-picker .hex-text .box input{border:1px solid #a9a9a9;flex:1 1 auto;padding:1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{font-size:11px;padding:4px 8px;width:100%}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{color:#555;flex:1 1 auto;margin-right:8px;text-align:center}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{border:1px solid #a9a9a9;flex:1;float:left;margin:0 8px 0 0;padding:1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC");direction:ltr}.color-picker .hue,.color-picker .value{background-size:100% 100%;border:none;cursor:pointer;height:16px;margin-bottom:16px;width:100%}.color-picker .value{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=");direction:rtl}.color-picker .alpha{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==");background-size:100% 100%;border:none;cursor:pointer;direction:ltr;height:16px;width:100%}.color-picker .type-policy{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==");background-position:50%;background-repeat:no-repeat;background-size:8px 16px;height:24px;position:absolute;right:12px;top:218px;width:16px}.color-picker .type-policy .type-policy-arrow{display:block;height:50%;width:100%}.color-picker .selected-color{border:1px solid #a9a9a9;border-radius:50%;height:40px;left:8px;position:absolute;top:16px;width:40px}.color-picker .selected-color-background{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC");border-radius:50%;height:40px;width:40px}.color-picker .saturation-lightness{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==");background-size:100% 100%;border:none;cursor:pointer;direction:ltr;height:130px;touch-action:manipulation;width:100%}.color-picker .cp-add-color-button-class{background:transparent;border:0;cursor:pointer;display:inline;margin:3px -3px;padding:0;position:absolute}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{color:#999;cursor:not-allowed}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{background:#fff;border-radius:50%;box-shadow:1px 1px 5px #333;cursor:pointer;display:block;height:10px;position:absolute;right:-5px;text-align:center;top:-5px;width:10px}.color-picker .cp-remove-color-button-class:before{bottom:3.5px;content:"x";display:inline-block;font-size:10px;position:relative}'],encapsulation:2}),Ec.ctorParameters=()=>[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:Eo}],Ec.propDecorators={dialogElement:[{type:t.ViewChild,args:["dialogPopup",{static:!0}]}],hueSlider:[{type:t.ViewChild,args:["hueSlider",{static:!0}]}],alphaSlider:[{type:t.ViewChild,args:["alphaSlider",{static:!0}]}],handleEsc:[{type:t.HostListener,args:["document:keyup.esc",["$event"]]}],handleEnter:[{type:t.HostListener,args:["document:keyup.enter",["$event"]]}]};class jl{constructor(s,c,Q,dt,It,Kt){this.injector=s,this.cfr=c,this.appRef=Q,this.vcRef=dt,this.elRef=It,this._service=Kt,this.dialogCreated=!1,this.ignoreChanges=!1,this.viewAttachedToAppRef=!1,this.cpWidth="230px",this.cpHeight="auto",this.cpToggle=!1,this.cpDisabled=!1,this.cpIgnoredElements=[],this.cpFallbackColor="",this.cpColorMode="color",this.cpCmykEnabled=!1,this.cpOutputFormat="auto",this.cpAlphaChannel="enabled",this.cpDisableInput=!1,this.cpDialogDisplay="popup",this.cpSaveClickOutside=!0,this.cpCloseClickOutside=!0,this.cpUseRootViewContainer=!1,this.cpPosition="auto",this.cpPositionOffset="0%",this.cpPositionRelativeToArrow=!1,this.cpOKButton=!1,this.cpOKButtonText="OK",this.cpOKButtonClass="cp-ok-button-class",this.cpCancelButton=!1,this.cpCancelButtonText="Cancel",this.cpCancelButtonClass="cp-cancel-button-class",this.cpPresetLabel="Preset colors",this.cpPresetColorsClass="cp-preset-colors-class",this.cpMaxPresetColorsLength=6,this.cpPresetEmptyMessage="No colors added",this.cpPresetEmptyMessageClass="preset-empty-message",this.cpAddColorButton=!1,this.cpAddColorButtonText="Add color",this.cpAddColorButtonClass="cp-add-color-button-class",this.cpRemoveColorButtonClass="cp-remove-color-button-class",this.cpInputChange=new t.EventEmitter(!0),this.cpToggleChange=new t.EventEmitter(!0),this.cpSliderChange=new t.EventEmitter(!0),this.cpSliderDragEnd=new t.EventEmitter(!0),this.cpSliderDragStart=new t.EventEmitter(!0),this.colorPickerOpen=new t.EventEmitter(!0),this.colorPickerClose=new t.EventEmitter(!0),this.colorPickerCancel=new t.EventEmitter(!0),this.colorPickerSelect=new t.EventEmitter(!0),this.colorPickerChange=new t.EventEmitter(!1),this.cpCmykColorChange=new t.EventEmitter(!0),this.cpPresetColorsChange=new t.EventEmitter(!0)}handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(s){this.inputChange(s)}ngOnDestroy(){null!=this.cmpRef&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(s){s.cpToggle&&!this.cpDisabled&&(s.cpToggle.currentValue?this.openDialog():s.cpToggle.currentValue||this.closeDialog()),s.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(s.colorPicker.currentValue),this.dialog.setColorFromString(s.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(s.cpPresetLabel||s.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let s=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){const Q=this.appRef.componentTypes[0],dt=this.injector.get(Q,t.Injector.NULL);dt!==t.Injector.NULL?(s=dt.vcRef||dt.viewContainerRef||this.vcRef,s===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}const c=this.cfr.resolveComponentFactory(Ec);if(this.viewAttachedToAppRef)this.cmpRef=c.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{const Q=t.ReflectiveInjector.fromResolvedProviders([],s.parentInjector);this.cmpRef=s.createComponent(c,0,Q,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass),this.dialog=this.cmpRef.instance,this.vcRef!==s&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&"popup"===this.cpDialogDisplay&&this.dialog.closeDialog()}cmykChanged(s){this.cpCmykColorChange.emit(s)}stateChanged(s){this.cpToggleChange.emit(s),s?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(s,c=!0){this.ignoreChanges=c,this.colorPickerChange.emit(s)}colorSelected(s){this.colorPickerSelect.emit(s)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){const s=this.elRef.nativeElement,c=this.cpIgnoredElements.filter(Q=>Q===s);!this.cpDisabled&&!c.length&&(typeof document<"u"&&s===document.activeElement?this.openDialog():this.dialog&&this.dialog.show?this.closeDialog():this.openDialog())}inputChange(s){this.dialog?this.dialog.setColorFromString(s.target.value,!0):(this.colorPicker=s.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(s){this.cpInputChange.emit(s)}sliderChanged(s){this.cpSliderChange.emit(s)}sliderDragEnd(s){this.cpSliderDragEnd.emit(s)}sliderDragStart(s){this.cpSliderDragStart.emit(s)}presetColorsChanged(s){this.cpPresetColorsChange.emit(s)}}jl.\u0275fac=function(s){return new(s||jl)(t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(t.ApplicationRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Eo))},jl.\u0275dir=t.\u0275\u0275defineDirective({type:jl,selectors:[["","colorPicker",""]],hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("click",function(){return c.handleClick()})("focus",function(){return c.handleFocus()})("input",function(dt){return c.handleInput(dt)})},inputs:{cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpPresetLabel:"cpPresetLabel",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",colorPicker:"colorPicker",cpPresetColors:"cpPresetColors"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[t.\u0275\u0275NgOnChangesFeature]}),jl.ctorParameters=()=>[{type:t.Injector},{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.ViewContainerRef},{type:t.ElementRef},{type:Eo}],jl.propDecorators={colorPicker:[{type:t.Input}],cpWidth:[{type:t.Input}],cpHeight:[{type:t.Input}],cpToggle:[{type:t.Input}],cpDisabled:[{type:t.Input}],cpIgnoredElements:[{type:t.Input}],cpFallbackColor:[{type:t.Input}],cpColorMode:[{type:t.Input}],cpCmykEnabled:[{type:t.Input}],cpOutputFormat:[{type:t.Input}],cpAlphaChannel:[{type:t.Input}],cpDisableInput:[{type:t.Input}],cpDialogDisplay:[{type:t.Input}],cpSaveClickOutside:[{type:t.Input}],cpCloseClickOutside:[{type:t.Input}],cpUseRootViewContainer:[{type:t.Input}],cpPosition:[{type:t.Input}],cpPositionOffset:[{type:t.Input}],cpPositionRelativeToArrow:[{type:t.Input}],cpOKButton:[{type:t.Input}],cpOKButtonText:[{type:t.Input}],cpOKButtonClass:[{type:t.Input}],cpCancelButton:[{type:t.Input}],cpCancelButtonText:[{type:t.Input}],cpCancelButtonClass:[{type:t.Input}],cpPresetLabel:[{type:t.Input}],cpPresetColors:[{type:t.Input}],cpPresetColorsClass:[{type:t.Input}],cpMaxPresetColorsLength:[{type:t.Input}],cpPresetEmptyMessage:[{type:t.Input}],cpPresetEmptyMessageClass:[{type:t.Input}],cpAddColorButton:[{type:t.Input}],cpAddColorButtonText:[{type:t.Input}],cpAddColorButtonClass:[{type:t.Input}],cpRemoveColorButtonClass:[{type:t.Input}],cpInputChange:[{type:t.Output}],cpToggleChange:[{type:t.Output}],cpSliderChange:[{type:t.Output}],cpSliderDragEnd:[{type:t.Output}],cpSliderDragStart:[{type:t.Output}],colorPickerOpen:[{type:t.Output}],colorPickerClose:[{type:t.Output}],colorPickerCancel:[{type:t.Output}],colorPickerSelect:[{type:t.Output}],colorPickerChange:[{type:t.Output}],cpCmykColorChange:[{type:t.Output}],cpPresetColorsChange:[{type:t.Output}],handleClick:[{type:t.HostListener,args:["click"]}],handleFocus:[{type:t.HostListener,args:["focus"]}],handleInput:[{type:t.HostListener,args:["input",["$event"]]}]};class lh{}function lg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",8),t.\u0275\u0275listener("colorPickerChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext().$implicit;return t.\u0275\u0275resetView(It.value=dt)})("colorPickerChange",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext().$implicit,It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.updateVariable(dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275styleProp("background",c.value),t.\u0275\u0275property("colorPicker",c.value)}}function yu(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",9),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext().$implicit;return t.\u0275\u0275resetView(It.value=dt)})("change",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext().$implicit,It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.updateVariable(dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("ngModel",c.value)}}function yl(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"tr")(1,"td"),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"td"),t.\u0275\u0275template(4,lg,1,3,"input",6),t.\u0275\u0275template(5,yu,1,1,"input",7),t.\u0275\u0275elementEnd()()),2<){const c=s.$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.name),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",c.isColor),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.isColor)}}lh.\u0275fac=function(s){return new(s||lh)},lh.\u0275mod=t.\u0275\u0275defineNgModule({type:lh}),lh.\u0275inj=t.\u0275\u0275defineInjector({providers:[Eo],imports:[R.CommonModule]});class Zo{constructor(s,c,Q){this.sbs=s,this.ss=c,this.cd=Q,this.variables=[],this.isApplied=!1,this.settings=this.ss.getAppSettings(),this.model={themes:q._.const.themes,theme:this.settings.theme},this.initializeVariables()}ngOnDestroy(){this.isApplied||this.restoreTheme()}initializeVariables(){this.variables=this.getAllCssVariables().map(s=>{const c=getComputedStyle(document.documentElement).getPropertyValue(s);return{name:s.replace("--",""),value:c,isColor:this.isColor(c)}})}isColor(s){const c=(new Option).style;return c.color=s,""!==c.color}onCancel(){this.sbs.showComponent(null)}onApply(){const s=this.ss.getAppSettings();s.theme=this.model.theme,this.ss.setAppSettings(s),this.isApplied=!0,this.sbs.showComponent(null)}getAllCssVariables(){return Array.from(document.styleSheets).filter(s=>null===s.href||s.href.startsWith(window.location.origin)).reduce((s,c)=>[...s,...Array.from(c.cssRules).reduce((Q,dt)=>":root"===dt.selectorText?[...Q,...Array.from(dt.style).filter(It=>It.startsWith("--"))]:Q,[])],[])}exportTheme(){let s=":root {\r\n";this.variables.forEach(Q=>{s+="\t--"+Q.name+": "+Q.value+";\r\n"}),s+="}";const c=document.createElement("a");c.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(s)),c.setAttribute("download","theme.css"),c.style.display="none",document.body.appendChild(c),c.click(),document.body.removeChild(c)}updateVariable(s){document.documentElement.style.setProperty("--"+s.name,s.value)}restoreTheme(){this.model.theme=this.settings.theme,this.applyTheme()}trackVariable(s,c){return c.name}applyTheme(){this.variables.forEach(c=>{document.documentElement.style.setProperty("--"+c.name,null)});let s=document.getElementById("page-theme");s||(s=document.createElement("link")),s.id="page-theme",s.rel="stylesheet",s.type="text/css",this.model.theme?s.href="css/"+this.model.theme:s.href="",document.head.appendChild(s),setTimeout(()=>{this.initializeVariables()},100)}}Zo.\u0275fac=function(s){return new(s||Zo)(t.\u0275\u0275directiveInject(W.P),t.\u0275\u0275directiveInject(V.V),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},Zo.\u0275cmp=t.\u0275\u0275defineComponent({type:Zo,selectors:[["dsw-theme-settings"]],decls:20,vars:5,consts:[[3,"cancel","apply"],[1,"container"],["bindValue","file","bindLabel","text",1,"dsw",3,"ngModel","clearable","items","ngModelChange"],[1,"variables-container"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"btn","btn-success",3,"click"],["class","color","cpPosition","bottom","readonly","",3,"colorPicker","background","colorPickerChange",4,"ngIf"],["class","input",3,"ngModel","ngModelChange","change",4,"ngIf"],["cpPosition","bottom","readonly","",1,"color",3,"colorPicker","colorPickerChange"],[1,"input",3,"ngModel","ngModelChange","change"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"dsw-sidebar-actions",0),t.\u0275\u0275listener("cancel",function(){return c.onCancel()})("apply",function(){return c.onApply()}),t.\u0275\u0275text(1,"Theme settings"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"div",1)(3,"label"),t.\u0275\u0275text(4,"Current theme"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"ng-select",2),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.theme=dt}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"label"),t.\u0275\u0275text(7,"Theme variables"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",3)(9,"table")(10,"thead")(11,"tr")(12,"td"),t.\u0275\u0275text(13,"Name"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(14,"td"),t.\u0275\u0275text(15,"Value"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(16,"tbody"),t.\u0275\u0275template(17,yl,6,3,"tr",4),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(18,"button",5),t.\u0275\u0275listener("click",function(){return c.exportTheme()}),t.\u0275\u0275text(19,"Download theme"),t.\u0275\u0275elementEnd()()),2&s&&(t.\u0275\u0275advance(5),t.\u0275\u0275property("ngModel",c.model.theme)("clearable",!1)("items",c.model.themes),t.\u0275\u0275advance(12),t.\u0275\u0275property("ngForOf",c.variables)("ngForTrackBy",c.trackVariable))},dependencies:[R.NgForOf,R.NgIf,_e,a,He,gn,jl,Ps],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#EBEBEA}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:rgba(28,29,32,.4)}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Roboto Condensed;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}","[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}table[_ngcontent-%COMP%]{font-size:12px}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]{opacity:.7}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:50%}.color[_ngcontent-%COMP%]{height:14px;cursor:pointer}.input[_ngcontent-%COMP%]{height:14px}.btn-success[_ngcontent-%COMP%]{margin-top:10px}"]});class Sc{constructor(s,c,Q,dt,It){this.sbs=s,this.ss=c,this.us=Q,this.modal=dt,this.i18n=It,this.settings=this.ss.getAppSettings(),this.model={isSaveFilters:void 0===this.settings.isSaveFilters||this.settings.isSaveFilters,isRelatedFilters:void 0===this.settings.isRelatedFilters||this.settings.isRelatedFilters,colCount:this.settings.colCount||12}}ngOnInit(){}onCancel(){this.sbs.showComponent(null)}onApply(){this.applySettrings(),this.sbs.showComponent(null)}applySettrings(){this.settings.isSaveFilters=!!this.model.isSaveFilters,this.settings.isRelatedFilters=!!this.model.isRelatedFilters,this.settings.colCount=this.model.colCount,this.ss.onSettingsChanged.emit(this.settings),this.ss.setAppSettings(this.settings)}readSettings(s){const c=s.target.files[0];if(!c)return;const Q=new FileReader;Q.onload=dt=>{const It=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(dt.target.result)));this.ss.setAllSettings(It),this.ss.onSettingsChanged.emit(this.ss.getAppSettings()),this.sbs.showComponent(null),this.modal.show(this.i18n.get("settingsImported"),()=>{window.location.reload()})},Q.readAsArrayBuffer(c)}exportSettings(){const s=O.l+"."+(new Date).toLocaleDateString()+".json",c=JSON.stringify(this.ss.getAllSettings());this.downloadFile(s,c)}downloadFile(s,c){const Q=document.createElement("a");Q.style.setProperty("display","none"),Q.download=s;const dt=new Blob([c],{type:"application/octet-stream"}),It=window.URL.createObjectURL(dt);Q.href=It,document.body.appendChild(Q),Q.click(),setTimeout(Kt=>{document.body.removeChild(Q),window.URL.revokeObjectURL(It)},100)}resetSettings(){const s=c=>{delete c.userSettings,this.modal.show(this.i18n.get("settingsReset"),()=>{window.location.reload()})};s(sessionStorage);try{s(localStorage)}catch{}}}Sc.\u0275fac=function(s){return new(s||Sc)(t.\u0275\u0275directiveInject(W.P),t.\u0275\u0275directiveInject(V.V),t.\u0275\u0275directiveInject(Mr.f),t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(G.D))},Sc.\u0275cmp=t.\u0275\u0275defineComponent({type:Sc,selectors:[["dsw-app-settings"]],decls:26,vars:21,consts:[[3,"cancel","apply"],[1,"container"],["type","number",3,"ngModel","ngModelChange"],["type","checkbox",3,"ngModel","ngModelChange"],["type","file","enctype","multipart/form-data",3,"change"],[1,"actions"],[1,"btn",3,"click"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"dsw-sidebar-actions",0),t.\u0275\u0275listener("cancel",function(){return c.onCancel()})("apply",function(){return c.onApply()}),t.\u0275\u0275text(1,"Settings"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"div",1)(3,"label"),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"dsw-input",2),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.colCount=dt}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"label"),t.\u0275\u0275text(8),t.\u0275\u0275pipe(9,"i18n"),t.\u0275\u0275elementStart(10,"input",3),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.isSaveFilters=dt}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(11,"label"),t.\u0275\u0275text(12),t.\u0275\u0275pipe(13,"i18n"),t.\u0275\u0275elementStart(14,"input",3),t.\u0275\u0275listener("ngModelChange",function(dt){return c.model.isRelatedFilters=dt}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(15,"label"),t.\u0275\u0275text(16),t.\u0275\u0275pipe(17,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(18,"input",4),t.\u0275\u0275listener("change",function(dt){return c.readSettings(dt)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(19,"div",5)(20,"button",6),t.\u0275\u0275listener("click",function(){return c.resetSettings()}),t.\u0275\u0275text(21),t.\u0275\u0275pipe(22,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(23,"button",6),t.\u0275\u0275listener("click",function(){return c.exportSettings()}),t.\u0275\u0275text(24),t.\u0275\u0275pipe(25,"i18n"),t.\u0275\u0275elementEnd()()()),2&s&&(t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(5,9,"dashColumns")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",c.model.colCount),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(9,11,"saveFilters")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",c.model.isSaveFilters),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(13,13,"relatedFilters")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",c.model.isRelatedFilters),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(17,15,"importSettings")),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(22,17,"resetSettings")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(25,19,"exportSettings")))},dependencies:[I,He,gn,Ps,Kn,G.C],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#EBEBEA}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:rgba(28,29,32,.4)}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Roboto Condensed;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}",".actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:20px;margin-bottom:10px}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-right:5px}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:last-child{margin-left:5px}"]});var Cd=ht(5526);class Dc{constructor(s){this.sbs=s}ngOnInit(){}showThemeSettings(){this.sbs.showComponent({component:Zo})}showAppSettings(){this.sbs.showComponent({component:Sc})}showChartsSettings(){this.sbs.showComponent({component:Cd.m})}}function Lm(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",6),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.gotoZenDeepSee())}),t.\u0275\u0275element(1,"img",11),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"i18n"),t.\u0275\u0275elementEnd()}2<&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,1,"gotoDeepSee")," "))}function Rm(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",3),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.editDashboard())}),t.\u0275\u0275element(1,"img",12),t.\u0275\u0275text(2," Edit dashboard "),t.\u0275\u0275elementEnd()}}Dc.\u0275fac=function(s){return new(s||Dc)(t.\u0275\u0275directiveInject(W.P))},Dc.\u0275cmp=t.\u0275\u0275defineComponent({type:Dc,selectors:[["dsw-menu-settings"]],decls:10,vars:0,consts:[[3,"click"],["src","assets/img/icons/icon-settings.svg"],["src","assets/img/icons/palette-icon.svg"],["src","assets/img/icons/top-records.svg"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"ul")(1,"li",0),t.\u0275\u0275listener("click",function(){return c.showAppSettings()}),t.\u0275\u0275element(2,"img",1),t.\u0275\u0275text(3," Application "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"li",0),t.\u0275\u0275listener("click",function(){return c.showThemeSettings()}),t.\u0275\u0275element(5,"img",2),t.\u0275\u0275text(6," Theme "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"li",0),t.\u0275\u0275listener("click",function(){return c.showChartsSettings()}),t.\u0275\u0275element(8,"img",3),t.\u0275\u0275text(9," Charts "),t.\u0275\u0275elementEnd()())},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Roboto Condensed;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Roboto Condensed;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});class _u{constructor(s,c,Q,dt,It,Kt,le){this.router=s,this.route=c,this.ds=Q,this.ms=dt,this.modal=It,this.sbs=Kt,this.hs=le,this.isHome=!1,this.version=q._.const.ver,this.checkHome()}ngOnInit(){this.subOnRouteChange=this.router.events.subscribe(s=>{s instanceof Y.NavigationEnd&&this.checkHome()})}ngOnDestroy(){this.subOnRouteChange.unsubscribe()}checkHome(){var s;const c=this.router.url.split("/");this.isHome=!(null!==(s=c[c.length-1])&&void 0!==s&&s.endsWith(".dashboard"))}editDashboard(){this.hs.resetSearch(),this.ms.onEditDashboard.emit(!0)}logout(){this.ds.signOut()}showNamespaceSelector(){this.sbs.showComponent({component:fl})}showLanguageSelector(){this.sbs.showComponent({component:gl})}showAboutDialog(){this.modal.show({title:"DeepSeeWeb v."+this.version,component:ml,closeByEsc:!0,closeByBackdropClick:!0}),this.sbs.showComponent(null)}showSettingsMenu(){this.sbs.showComponent({component:Dc})}shareDashboard(){this.hs.shareDashboard()}gotoZenDeepSee(){this.hs.gotoZenDeepSee()}}_u.\u0275fac=function(s){return new(s||_u)(t.\u0275\u0275directiveInject(Y.Router),t.\u0275\u0275directiveInject(Y.ActivatedRoute),t.\u0275\u0275directiveInject(U.Do),t.\u0275\u0275directiveInject(sr),t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(W.P),t.\u0275\u0275directiveInject($))},_u.\u0275cmp=t.\u0275\u0275defineComponent({type:_u,selectors:[["dsw-menu"]],decls:21,vars:3,consts:[["class","only-sm",3,"click",4,"ngIf"],[1,"divider","only-sm"],[3,"click",4,"ngIf"],[3,"click"],["src","assets/img/icons/icon-settings.svg"],["src","assets/img/icons/icon-namespace.svg"],[1,"only-sm",3,"click"],["src","assets/img/icons/language-24px.svg"],["src","assets/img/icons/icon-info.svg"],["src","assets/img/icons/icon-logout.svg"],[1,"version"],["src","assets/img/icons/icon-navigate.svg"],["src","assets/img/icons/icon-edit.svg"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"ul"),t.\u0275\u0275template(1,Lm,4,3,"li",0),t.\u0275\u0275element(2,"div",1),t.\u0275\u0275template(3,Rm,3,0,"li",2),t.\u0275\u0275elementStart(4,"li",3),t.\u0275\u0275listener("click",function(){return c.showSettingsMenu()}),t.\u0275\u0275element(5,"img",4),t.\u0275\u0275text(6," Settings "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"li",3),t.\u0275\u0275listener("click",function(){return c.showNamespaceSelector()}),t.\u0275\u0275element(8,"img",5),t.\u0275\u0275text(9," Namespace "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"li",6),t.\u0275\u0275listener("click",function(){return c.showLanguageSelector()}),t.\u0275\u0275element(11,"img",7),t.\u0275\u0275text(12," Language "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"li",3),t.\u0275\u0275listener("click",function(){return c.showAboutDialog()}),t.\u0275\u0275element(14,"img",8),t.\u0275\u0275text(15," About "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(16,"li",6),t.\u0275\u0275listener("click",function(){return c.logout()}),t.\u0275\u0275element(17,"img",9),t.\u0275\u0275text(18," Logout "),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(19,"span",10),t.\u0275\u0275text(20),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.isHome),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",c.isHome),t.\u0275\u0275advance(17),t.\u0275\u0275textInterpolate1("v.",c.version,""))},dependencies:[R.NgIf,G.C],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Roboto Condensed;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Roboto Condensed;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});var ch=ht(9646);const bd=["inp"];class dn{constructor(){this.search=new t.EventEmitter,this.value="",this.onChange=s=>{},this.onTouched=()=>{}}ngOnInit(){this.subOnSearch=ln(this.inp.nativeElement,"input").pipe((0,No.b)(200),bp()).subscribe(()=>{this.search.emit(this.value)})}writeValue(s){this.value=s}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){}onModelChange(s){this.writeValue(s),this.onChange(s)}emitValueChanged(){this.search.emit(this.value)}ngOnDestroy(){this.subOnSearch&&this.subOnSearch.unsubscribe()}}dn.\u0275fac=function(s){return new(s||dn)},dn.\u0275cmp=t.\u0275\u0275defineComponent({type:dn,selectors:[["dsw-search-input"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(bd,7),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.inp=Q.first)}},outputs:{search:"search"},features:[t.\u0275\u0275ProvidersFeature([{provide:M,useExisting:(0,t.forwardRef)(()=>dn),multi:!0}])],decls:3,vars:1,consts:[["src","assets/img/icons/icon-search.svg"],["type","search","placeholder","Search",3,"ngModel","ngModelChange"],["inp",""]],template:function(s,c){1&s&&(t.\u0275\u0275element(0,"img",0),t.\u0275\u0275elementStart(1,"input",1,2),t.\u0275\u0275listener("ngModelChange",function(dt){return c.value=dt})("ngModelChange",function(dt){return c.onModelChange(dt)}),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngModel",c.value))},dependencies:[a,He,gn],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative;display:block}[_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-decoration, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-cancel-button, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-results-button, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-results-decoration{-webkit-appearance:none}input[type=search][_ngcontent-%COMP%]{border:none;color:#606367;height:24px;border-bottom:1px solid #EBEBEA;padding-left:16px;border-radius:0}input[type=search][_ngcontent-%COMP%]:focus, input[type=search][_ngcontent-%COMP%]:active{border:none;border-bottom:1px solid var(--cl-accent);outline:none}input[type=search][_ngcontent-%COMP%]::placeholder{color:var(--cl-header-txt);opacity:.5}img[_ngcontent-%COMP%]{position:absolute;pointer-events:none;top:5px}"]});const Fm=["inpSearch"];function Np(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",17),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.title)}}function _l(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",21),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.isMorePressed=!dt.isMorePressed)}),t.\u0275\u0275text(1," ... "),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("pressed",c.isMorePressed)}}function cg(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"a",24),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit;t.\u0275\u0275property("routerLink",c.url)("title",c.title),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.title)}}function Nm(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",22),t.\u0275\u0275template(1,cg,2,3,"a",23),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.moreList)}}function Bm(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",18),t.\u0275\u0275listener("click",function(dt){const Kt=t.\u0275\u0275restoreView(c).$implicit,le=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(le.hideMoreDropdown(dt,Kt.isMoreButton))}),t.\u0275\u0275text(1),t.\u0275\u0275template(2,_l,2,2,"span",19),t.\u0275\u0275template(3,Nm,2,1,"div",20),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("show-only-last",Q.isSearch),t.\u0275\u0275property("routerLink",c.url)("title",c.title),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",c.title," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.isMoreButton),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.isMoreButton&&Q.isMorePressed)}}function hg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",25),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.gotoZenDeepSee())}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",26),t.\u0275\u0275elementEnd()}2<&&t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,1,"gotoDeepSee"))}function hh(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",27),t.\u0275\u0275listener("mouseover",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.showShareDashboard())}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",28)(3,"dsw-share-dashboard",29),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,3,"shareDashboard")),t.\u0275\u0275advance(3),t.\u0275\u0275property("shareUrl",c.shareUrl)("isSmall",!0)}}function ug(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",25),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onAddClick())}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275elementStart(2,"span",30),t.\u0275\u0275text(3,"+"),t.\u0275\u0275elementEnd()()}2<&&t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,1,"addWidget"))}function Bp(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",31),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.toggleMobileFilter())}),t.\u0275\u0275element(1,"img",32),t.\u0275\u0275elementEnd()}}function jm(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"option",33),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit;t.\u0275\u0275property("value",c),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c)}}class vs{constructor(s,c,Q,dt,It,Kt,le,xe,Me,oi,hi){var Li;this.ss=s,this.hs=c,this.ds=Q,this.ms=dt,this.us=It,this.modal=Kt,this.fs=le,this.storage=xe,this.i18n=Me,this.route=oi,this.router=hi,this.pathSegments=[],this.namespace="",this.isSearch=!1,this.title="",this.path=[],this.isMobileFilterButton=!1,this.selectedLanguage=this.i18n.current.toUpperCase(),this.isMorePressed=!1,this.shareUrl="",this.search="",this.languages=this.i18n.getLanguages().map(Pi=>Pi.toUpperCase()),this.path$=this.getNavigationEndStream(),(!(null===(Li=this.storage.serverSettings)||void 0===Li)&&Li.Embed||this.us.isEmbedded())&&this.hs.visible$.next(!1),this.subOnSearchReset=this.hs.onSearchReset.subscribe(()=>{this.inpSearch.value="",this.inpSearch.emitValueChanged()})}static processPath(s,c,Q){let dt=decodeURIComponent(c);return-1!==dt.indexOf("?")&&(dt=dt.split("?")[0]),{title:dt,url:decodeURIComponent(s.slice(0,Q+1).join("/"))}}ngOnInit(){this.namespace=O.l,this.subTitle=this.ms.onSetTitle.subscribe(s=>{var c,Q;this.title=s||(null===(Q=this.path[(null===(c=this.path)||void 0===c?void 0:c.length)-1])||void 0===Q?void 0:Q.title)||""}),this.subGotoDSZ=this.hs.gotoZenDeepSeeEmitter.subscribe(()=>{this.gotoZenDeepSee()}),this.subToggleMobileFilter=this.hs.mobileFilterToggle.subscribe(s=>{this.isMobileFilterButton=s})}ngOnDestroy(){this.subOnSearchReset.unsubscribe(),this.subToggleMobileFilter.unsubscribe(),this.subGotoDSZ.unsubscribe(),this.subTitle.unsubscribe()}ngAfterViewInit(){}getPathFromLocation(){const s=window.location.href.split("#")[1].split("/").slice(1);return this.initSearch(s),this.pathSegments=s.map((c,Q)=>vs.processPath(s,c,Q)),this.buildMoreDropdown(),this.pathSegments}toggleMenu(){this.ss.sidebarToggle.value?this.ss.showComponent(null):this.ss.showComponent({component:_u})}getPathFromNavigation(s){var c,Q;const It=(null===(Q=null===(c=this.router.parseUrl(this.router.url).root.children.primary)||void 0===c?void 0:c.segments)||void 0===Q?void 0:Q.map(Kt=>Kt.path))||[];return this.initSearch(It),this.pathSegments=It.map((Kt,le)=>vs.processPath(It,Kt,le)),this.buildMoreDropdown(),this.pathSegments}buildMoreDropdown(){if(this.pathSegments.length>3){const s=this.pathSegments.splice(1,this.pathSegments.length-2);this.pathSegments.splice(1,0,{title:"",isMoreButton:!0,moreList:s})}}initSearch(s){var c,Q;this.isSearch=!(null!==(Q=null===(c=s[s.length-1])||void 0===c?void 0:c.split("?")[0])&&void 0!==Q&&Q.endsWith(".dashboard"))}getNavigationEndStream(){return(0,On.T)((0,ch.of)(this.getPathFromLocation()),this.router.events.pipe((0,Zr.h)(s=>s instanceof Y.NavigationEnd),(0,S.U)(s=>this.getPathFromNavigation(s)))).pipe((0,nl.b)(s=>(this.path=s,s)))}gotoZenDeepSee(){const s=this.storage.serverSettings.DefaultApp||"/csp/"+O.l,c=this.path[this.path.length-1].url.split("/").slice(1).join("/"),dt=(location.pathname.split("/").slice(0,-2).join("/")||"")+s+"/_DeepSee.UserPortal.DashboardViewer.zen?DASHBOARD="+encodeURIComponent(decodeURIComponent(c));window.open(dt)}showShareDashboard(){this.shareUrl=this.fs.getFiltersShareUrl()}toggleMobileFilter(){this.hs.toggleMobileFilterDialog()}selectLanguage(s){const c=s.toLowerCase(),Q=this.storage.getAppSettings();this.i18n.current=c,Q.language=c,this.storage.setAppSettings(Q),window.location.reload()}logout(){this.ds.signOut()}hideMoreDropdown(s,c=!1){var Q,dt;c||null!==(dt=null===(Q=s?.target)||void 0===Q?void 0:Q.classList)&&void 0!==dt&&dt.contains("btn-more")||(this.isMorePressed=!1)}onAddClick(){this.ss.showComponent(null),this.ss.showComponent({component:Zs,single:!0})}onSearch(s){this.ms.onEditDashboard.emit(!1),this.hs.onSearch.next(s)}}vs.\u0275fac=function(s){return new(s||vs)(t.\u0275\u0275directiveInject(W.P),t.\u0275\u0275directiveInject($),t.\u0275\u0275directiveInject(U.Do),t.\u0275\u0275directiveInject(sr),t.\u0275\u0275directiveInject(Mr.f),t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(pc.i),t.\u0275\u0275directiveInject(V.V),t.\u0275\u0275directiveInject(G.D),t.\u0275\u0275directiveInject(Y.ActivatedRoute),t.\u0275\u0275directiveInject(Y.Router))},vs.\u0275cmp=t.\u0275\u0275defineComponent({type:vs,selectors:[["dsw-header"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(Fm,5),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.inpSearch=Q.first)}},hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("click",function(dt){return c.hideMoreDropdown(dt)},!1,t.\u0275\u0275resolveDocument)},decls:24,vars:23,consts:[[1,"btn","square","btn-side-menu",3,"click"],["src","assets/img/icons/menu.svg"],[1,"breadcrumbs"],["class","only-sm",4,"ngIf"],[1,"items"],["class","path",3,"routerLink","title","show-only-last","click",4,"ngFor","ngForOf"],["class","btn btn-icon square s60 btn-goto only-desktop",3,"title","click",4,"ngIf"],["class","btn btn-icon square s60 only-desktop btn-share",3,"title","mouseover",4,"ngIf"],["class","btn btn-icon square btn-mobile-filter only-sm",3,"click",4,"ngIf"],[1,"search-block"],[3,"hidden","search"],["inpSearch",""],[1,"lang-selector","only-desktop",3,"ngModel","ngModelChange","change"],["lang",""],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-icon","only-desktop",3,"title","click"],["src","assets/img/icons/icon-logout.svg"],[1,"only-sm"],[1,"path",3,"routerLink","title","click"],["class","btn-more",3,"pressed","click",4,"ngIf"],["class","dropdown-more",4,"ngIf"],[1,"btn-more",3,"click"],[1,"dropdown-more"],["class","path",3,"routerLink","title",4,"ngFor","ngForOf"],[1,"path",3,"routerLink","title"],[1,"btn","btn-icon","square","s60","btn-goto","only-desktop",3,"title","click"],["src","assets/img/icons/icon-navigate.svg",1,"flip"],[1,"btn","btn-icon","square","s60","only-desktop","btn-share",3,"title","mouseover"],["src","assets/img/icons/icon-share.svg"],[3,"shareUrl","isSmall"],[1,"icon-plus"],[1,"btn","btn-icon","square","btn-mobile-filter","only-sm",3,"click"],["src","assets/img/icons/filter_alt-black-18dp.svg"],[3,"value"]],template:function(s,c){if(1&s){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"button",0),t.\u0275\u0275listener("click",function(){return c.toggleMenu()}),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275element(3,"img",1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"h2",2),t.\u0275\u0275template(5,Np,2,1,"div",3),t.\u0275\u0275elementStart(6,"div",4),t.\u0275\u0275template(7,Bm,4,7,"a",5),t.\u0275\u0275pipe(8,"async"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(9,hg,3,3,"button",6),t.\u0275\u0275template(10,hh,4,5,"div",7),t.\u0275\u0275template(11,ug,4,3,"button",6),t.\u0275\u0275template(12,Bp,2,0,"div",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"div",9)(14,"dsw-search-input",10,11),t.\u0275\u0275listener("search",function(It){return c.onSearch(It)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(16,"select",12,13),t.\u0275\u0275listener("ngModelChange",function(It){return c.selectedLanguage=It})("change",function(){t.\u0275\u0275restoreView(Q);const It=t.\u0275\u0275reference(17);return t.\u0275\u0275resetView(c.selectLanguage(It.value))}),t.\u0275\u0275template(18,jm,2,2,"option",14),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(19,"button",15),t.\u0275\u0275listener("click",function(){return c.logout()}),t.\u0275\u0275pipe(20,"i18n"),t.\u0275\u0275element(21,"img",16),t.\u0275\u0275text(22),t.\u0275\u0275pipe(23,"i18n"),t.\u0275\u0275elementEnd()()}if(2&s){let Q;t.\u0275\u0275advance(1),t.\u0275\u0275classProp("active",!(null==(Q=t.\u0275\u0275pipeBind1(2,15,c.ss.sidebarToggle))||!Q.component)),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",!c.isSearch),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("no-opacity",c.isSearch),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(8,17,c.path$)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!c.isSearch),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.isSearch),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.isSearch),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!c.isSearch&&c.isMobileFilterButton),t.\u0275\u0275advance(2),t.\u0275\u0275property("hidden",!c.isSearch),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",c.selectedLanguage),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",c.languages),t.\u0275\u0275advance(1),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(20,19,"signout")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(23,21,"signout")," ")}},dependencies:[R.NgForOf,R.NgIf,Dr,fs,kr,He,gn,Y.RouterLink,dc,dn,R.AsyncPipe,G.C],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;flex:0 0 var(--header-height);justify-content:space-between;background-color:var(--cl-header-bg);height:var(--header-height);width:100%;border-bottom:1px solid var(--cl-header-border)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex-shrink:1;min-width:0;width:100%}@media (max-width: 576px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%}}.btn-side-menu[_ngcontent-%COMP%]{flex-shrink:0}.breadcrumbs[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:1;min-width:0;max-width:60%;overflow:visible}.breadcrumbs[_ngcontent-%COMP%] > .items[_ngcontent-%COMP%]{display:flex;max-height:17px}.breadcrumbs[_ngcontent-%COMP%] > .items[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{position:relative}@media (max-width: 576px){.breadcrumbs[_ngcontent-%COMP%]{max-width:100%;width:100%}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(100% - 6px);overflow:hidden;text-overflow:ellipsis}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{opacity:.6}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .path.show-only-last[_ngcontent-%COMP%]{display:none}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .path.show-only-last[_ngcontent-%COMP%]:last-child{opacity:1;display:block;font-size:18px}}label[_ngcontent-%COMP%]{font-family:Roboto Condensed;color:var(--cl-header-txt);opacity:.7;flex:0 0 auto;margin-left:10px;margin-right:10px}label[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:4px}h2[_ngcontent-%COMP%]{font-family:Roboto Condensed;color:var(--cl-header-txt);font-size:18px;margin-left:16px;-webkit-user-select:none;user-select:none}@media (max-width: 576px){h2[_ngcontent-%COMP%]{margin-left:8px}}.btn[_ngcontent-%COMP%]{position:relative;height:100%;border:none;background-color:transparent;outline:none;box-shadow:none;transition:background-color .3s linear;color:var(--cl-header-ico);padding-left:8px;padding-right:8px}.btn[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:24px}.btn[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}.btn.square[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;width:var(--header-height)}.btn.square.s60[_ngcontent-%COMP%]{height:26px;width:calc(var(--header-height) * .4)}.btn.square[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:0}.btn.active[_ngcontent-%COMP%]{background-color:var(--cl-sidebar-bg);height:calc(100% + 1px)}.btn[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}.path[_ngcontent-%COMP%]{cursor:pointer;outline:none;text-decoration:none;font-weight:700;font-size:14px;color:#1c1d20;font-family:Roboto Condensed}.path[_ngcontent-%COMP%]:hover{text-decoration:underline}.path[_ngcontent-%COMP%]:not(:last-child){color:var(--cl-header-txt)}@media (max-width: 576px){.path[_ngcontent-%COMP%]:not(:last-child){opacity:1}}.path[_ngcontent-%COMP%]:last-child{cursor:default;pointer-events:none;text-overflow:ellipsis;overflow:hidden}.path[_ngcontent-%COMP%]:not(:last-child):after{content:"/";font-family:Roboto Condensed;opacity:.7;display:inline-block;margin-left:8px;margin-right:8px}@media (max-width: 576px){.path[_ngcontent-%COMP%]:not(:last-child):after{margin-left:4px;margin-right:4px}}@media (max-width: 576px){.path[_ngcontent-%COMP%]{font-size:13px}}.btn-goto[_ngcontent-%COMP%]{margin-left:8px}.search-block[_ngcontent-%COMP%]{padding-right:20px}@media (max-width: 576px){.no-opacity[_ngcontent-%COMP%]{opacity:1!important}}.btn-mobile-filter[_ngcontent-%COMP%]{flex-shrink:0;height:100%;min-width:var(--header-height)}.btn-mobile-filter[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:calc(var(--header-height) * .5);opacity:.6}.lang-selector[_ngcontent-%COMP%]{border:none;width:50px;padding:0;margin-right:10px}.lang-selector[_ngcontent-%COMP%]:focus, .lang-selector[_ngcontent-%COMP%]:active{outline:none;border:none}.btn-more[_ngcontent-%COMP%]{width:20px;height:20px;display:inline-flex;justify-content:center;border-radius:2px}.btn-more.pressed[_ngcontent-%COMP%]{background:var(--cl-hover)}.btn-more[_ngcontent-%COMP%]:after{display:none}.dropdown-more[_ngcontent-%COMP%]{position:absolute;left:-10px;top:30px;padding:20px;background-color:var(--cl-header-bg);box-shadow:0 0 10px #0000001a;border-radius:5px;z-index:4}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:last-child{cursor:pointer;color:var(--cl-header-txt);pointer-events:auto}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:after{display:none}.btn-share[_ngcontent-%COMP%] > dsw-share-dashboard[_ngcontent-%COMP%]{display:none}.btn-share[_ngcontent-%COMP%]:hover, .btn-share[_ngcontent-%COMP%]:active{transform:none}.btn-share[_ngcontent-%COMP%]:hover > dsw-share-dashboard[_ngcontent-%COMP%], .btn-share[_ngcontent-%COMP%]:active > dsw-share-dashboard[_ngcontent-%COMP%]{display:block}dsw-share-dashboard[_ngcontent-%COMP%]{position:absolute;top:17px;left:-20px}.icon-plus[_ngcontent-%COMP%]{font-weight:600;font-family:serif;font-size:23px}dsw-search-input[_ngcontent-%COMP%]{width:min(15vw,300px);margin-right:20px}@media (max-width: 576px){dsw-search-input[_ngcontent-%COMP%]{transition:width .2s linear;width:0;overflow:hidden}dsw-search-input.active[_ngcontent-%COMP%]{width:120px}}']});const jp=["dynamicComponent"];function wd(lt,s){}function dg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"dsw-search-input",8),t.\u0275\u0275listener("search",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.onSearch(dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngModel",c.data.search)}}function xu(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",9),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(Kt.onButtonClick(It))}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit;t.\u0275\u0275classProp("btn-white",!c.default),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",c.label," ")}}function pg(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div",5),t.\u0275\u0275template(1,dg,1,1,"dsw-search-input",6),t.\u0275\u0275template(2,xu,2,3,"button",7),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",void 0!==c.data.search),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.data.buttons)}}class uh{get noBackdrop(){return this.data.hideBackdrop}constructor(s,c,Q,dt){this.ms=s,this.el=c,this.r2=Q,this.cfr=dt,this.search=new t.EventEmitter,this.subscriptions=[]}ngOnInit(){if(this.data.component){const s=this.cfr.resolveComponentFactory(this.data.component);this.compRef=this.dynComponent.createComponent(s),this.component=this.compRef.instance,this.component.$modal=this,this.r2.setAttribute(this.compRef.location.nativeElement,"dynamic-component","");const c=this.data.componentStyles;if(c)for(let Q in c)this.r2.setStyle(this.compRef.location.nativeElement,Q,c[Q]);this.data.onComponentInit&&this.data.onComponentInit(this.component),this.subscribeForOutputs()}}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe()),this.compRef&&this.compRef.destroy()}getPath(s){const c=[];let Q=s.target;for(;Q;)c.push(Q),Q=Q.parentElement;return-1===c.indexOf(window)&&-1===c.indexOf(document)&&c.push(document),-1===c.indexOf(window)&&c.push(window),c}onClick(s){this.data.closeByBackdropClick&&(this.getPath(s).some(Q=>Q.attributes&&Q.attributes["dynamic-component"])||(this.close(),s.preventDefault()))}onGlobalKeyPressed(s){if(this.isTopmost())switch(s.code.toLowerCase()){case"enter":case"numpadenter":this.processEnterKey();break;case"escape":this.processEscapeKey()}}close(){this.ms.close(this.data)}onButtonClick(s){s.click&&s.click(this,this.data,s),s.autoClose&&this.close()}processEnterKey(){var s;if(null===(s=this.data.buttons)||void 0===s||!s.length)return;const c=this.data.buttons.find(Q=>Q.default);c&&(c.click&&c.click(this,this.data,c),c.autoClose&&this.close())}processEscapeKey(){this.data.closeByEsc&&this.close()}isTopmost(){const s=this.ms.modals.getValue();return s[s.length-1]===this.data}subscribeForOutputs(){if(this.data.outputs)for(const s in this.data.outputs){const c=this.component[s];if(!(c&&c instanceof t.EventEmitter))return;this.subscriptions.push(c.subscribe((...Q)=>this.data.outputs[s](...Q)))}}onSearch(s){this.search.emit(s)}}uh.\u0275fac=function(s){return new(s||uh)(t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver))},uh.\u0275cmp=t.\u0275\u0275defineComponent({type:uh,selectors:[["dsw-modal"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(jp,7,t.ViewContainerRef),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.dynComponent=Q.first)}},hostVars:2,hostBindings:function(s,c){1&s&&t.\u0275\u0275listener("mousedown",function(dt){return c.onClick(dt)})("keydown",function(dt){return c.onGlobalKeyPressed(dt)},!1,t.\u0275\u0275resolveDocument),2&s&&t.\u0275\u0275classProp("no-backdrop",c.noBackdrop)},inputs:{data:"data"},decls:8,vars:8,consts:[[1,"modal"],[1,"title",3,"hidden"],[1,"content"],["dynamicComponent",""],["class","footer",4,"ngIf"],[1,"footer"],[3,"ngModel","search",4,"ngIf"],["class","btn",3,"btn-white","click",4,"ngFor","ngForOf"],[3,"ngModel","search"],[1,"btn",3,"click"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",2),t.\u0275\u0275text(4),t.\u0275\u0275template(5,wd,0,0,"ng-template",null,3,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(7,pg,3,2,"div",4),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275classProp("no-padding",c.data.noPadding)("min-height",c.data.minHeight),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",!c.data.title),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",c.data.title," "),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",c.data.message," "),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",null==c.data.buttons?null:c.data.buttons.length))},dependencies:[R.NgForOf,R.NgIf,He,gn,dn],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{font-family:Roboto Condensed;display:flex;justify-content:center;align-items:center;background-color:#0006;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10;position:fixed;inset:0}.no-backdrop[_nghost-%COMP%]{background:none;background-color:none;-webkit-backdrop-filter:none;backdrop-filter:none}.modal[_ngcontent-%COMP%]{background-color:var(--cl-modal-bg);color:var(--cl-sidebar-txt);max-height:90vh;display:flex;flex-direction:column;min-width:320px;max-width:calc(100vw - 100px);font-family:Roboto Condensed;box-shadow:0 0 10px #0000001a;border-radius:10px;padding:20px}.modal.min-height[_ngcontent-%COMP%]{height:min(500px,90vh)}.modal.no-padding[_ngcontent-%COMP%]{padding:0}.title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:20px;font-weight:400;color:#000}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-top:20px;flex-shrink:0}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-left:10px;min-width:80px}.content[_ngcontent-%COMP%]{overflow:auto;display:flex;flex-direction:column;margin-bottom:auto}dsw-search-input[_ngcontent-%COMP%]{margin-right:auto}"]});const fg=["sidebar"];function Vm(lt,s){1<&&t.\u0275\u0275element(0,"dsw-header")}function gg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"dsw-sidebar",null,4),t.\u0275\u0275listener("@toggle.done",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onAnimDone())})("@toggle.start",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onAnimStart())}),t.\u0275\u0275elementEnd()}2<&&t.\u0275\u0275property("@toggle",void 0)}function Uv(lt,s){if(1<&&t.\u0275\u0275element(0,"dsw-modal",5),2<){const c=s.$implicit;t.\u0275\u0275property("data",c)("ngClass",c.class)}}function zm(lt,s){if(1<&&t.\u0275\u0275element(0,"dsw-error",6),2<){const c=s.$implicit;t.\u0275\u0275property("@toggleError",!c.isLeft)("@toggleErrorLeft",c.isLeft)("error",c)}}class ao{constructor(s,c,Q,dt,It){this.sbs=s,this.hs=c,this.es=Q,this.ms=dt,this.router=It,this.title="DeepSeeWeb",this.isSidebar=!1}ngOnInit(){this.router.events.subscribe(s=>{s instanceof Y.NavigationStart&&this.sbs.showComponent(null)}),this.sbs.sidebarToggle.subscribe(s=>{this.isSidebar=!!s})}onAnimDone(){this.sbs.onAnimEnd.emit()}onAnimStart(){this.sbs.onAnimStart.emit()}trackError(s,c){return c.id}}ao.\u0275fac=function(s){return new(s||ao)(t.\u0275\u0275directiveInject(W.P),t.\u0275\u0275directiveInject($),t.\u0275\u0275directiveInject(hc.T),t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(Y.Router))},ao.\u0275cmp=t.\u0275\u0275defineComponent({type:ao,selectors:[["app-root"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(fg,5),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.sidebar=Q.first)}},decls:9,vars:11,consts:[[4,"ngIf"],[1,"content"],[3,"data","ngClass",4,"ngFor","ngForOf"],[3,"error",4,"ngFor","ngForOf","ngForTrackBy"],["sidebar",""],[3,"data","ngClass"],[3,"error"]],template:function(s,c){1&s&&(t.\u0275\u0275template(0,Vm,1,0,"dsw-header",0),t.\u0275\u0275pipe(1,"async"),t.\u0275\u0275elementStart(2,"div",1),t.\u0275\u0275template(3,gg,2,1,"dsw-sidebar",0),t.\u0275\u0275element(4,"router-outlet"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(5,Uv,1,2,"dsw-modal",2),t.\u0275\u0275pipe(6,"async"),t.\u0275\u0275template(7,zm,1,3,"dsw-error",3),t.\u0275\u0275pipe(8,"async")),2&s&&(t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(1,5,c.hs.visible$)),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",c.isSidebar),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(6,7,c.ms.modals)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(8,9,c.es.errors$))("ngForTrackBy",c.trackError))},dependencies:[R.NgClass,R.NgForOf,R.NgIf,Y.RouterOutlet,vs,_c,pu,uh,R.AsyncPipe],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.content[_ngcontent-%COMP%]{display:flex;flex:1 1 100%;height:100%;min-height:0}"],data:{animation:[Yf,Tm,oh]}});var Mc=ht(529),Ed=ht(5468);function Ac(lt){return new t.\u0275RuntimeError(3e3,!1)}function Vl(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ls(lt){switch(lt.length){case 0:return new kn;case 1:return lt[0];default:return new Mp(lt)}}function Td(lt,s,c,Q,dt=new Map,It=new Map){const Kt=[],le=[];let xe=-1,Me=null;if(Q.forEach(oi=>{const hi=oi.get("offset"),Li=hi==xe,Pi=Li&&Me||new Map;oi.forEach((Ki,on)=>{let Rn=on,Yn=Ki;if("offset"!==on)switch(Rn=s.normalizePropertyName(Rn,Kt),Yn){case"!":Yn=dt.get(on);break;case Is:Yn=It.get(on);break;default:Yn=s.normalizeStyleValue(on,Rn,Yn,Kt)}Pi.set(Rn,Yn)}),Li||le.push(Pi),Me=Pi,xe=hi}),Kt.length)throw function Md(lt){return new t.\u0275RuntimeError(3502,!1)}();return le}function Pd(lt,s,c,Q){switch(s){case"start":lt.onStart(()=>Q(c&&Rs(c,"start",lt)));break;case"done":lt.onDone(()=>Q(c&&Rs(c,"done",lt)));break;case"destroy":lt.onDestroy(()=>Q(c&&Rs(c,"destroy",lt)))}}function Rs(lt,s,c){const Q=c.totalTime,dt=!!c.disabled,It=Id(lt.element,lt.triggerName,lt.fromState,lt.toState,s||lt.phaseName,Q??lt.totalTime,dt),Kt=lt._data;return null!=Kt&&(It._data=Kt),It}function Id(lt,s,c,Q,dt="",It=0,Kt){return{element:lt,triggerName:s,fromState:c,toState:Q,phaseName:dt,totalTime:It,disabled:!!Kt}}function Fs(lt,s,c){let Q=lt.get(s);return Q||lt.set(s,Q=c),Q}function Gp(lt){const s=lt.indexOf(":");return[lt.substring(1,s),lt.slice(s+1)]}let Od=(lt,s)=>!1,Du=(lt,s,c)=>[],kd=null;function Ld(lt){const s=lt.parentNode||lt.host;return s===kd?null:s}(Vl()||typeof Element<"u")&&(function xg(){return typeof window<"u"&&typeof window.document<"u"}()?(kd=(()=>document.documentElement)(),Od=(lt,s)=>{for(;s;){if(s===lt)return!0;s=Ld(s)}return!1}):Od=(lt,s)=>lt.contains(s),Du=(lt,s,c)=>{if(c)return Array.from(lt.querySelectorAll(s));const Q=lt.querySelector(s);return Q?[Q]:[]});let $a=null,Rd=!1;function Ea(lt){$a||($a=function bg(){return typeof document<"u"?document.body:null}()||{},Rd=!!$a.style&&"WebkitAppearance"in $a.style);let s=!0;return $a.style&&!function Cl(lt){return"ebkit"==lt.substring(1,6)}(lt)&&(s=lt in $a.style,!s&&Rd&&(s="Webkit"+lt.charAt(0).toUpperCase()+lt.slice(1)in $a.style)),s}const Mu=Od,Nd=Du;class Ns{validateStyleProperty(s){return Ea(s)}matchesElement(s,c){return!1}containsElement(s,c){return Mu(s,c)}getParentElement(s){return Ld(s)}query(s,c,Q){return Nd(s,c,Q)}computeStyle(s,c,Q){return Q||""}animate(s,c,Q,dt,It,Kt=[],le){return new kn(Q,dt)}}Ns.\u0275fac=function(s){return new(s||Ns)},Ns.\u0275prov=t.\u0275\u0275defineInjectable({token:Ns,factory:Ns.\u0275fac});class Au{}Au.NOOP=new Ns;const Bd="ng-enter",Xp="ng-leave",vh="ng-trigger",yh=".ng-trigger",Eg="ng-animating",Tu=".ng-animating";function zl(lt){if("number"==typeof lt)return lt;const s=lt.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:$p(parseFloat(s[1]),s[2])}function $p(lt,s){return"s"===s?1e3*lt:lt}function Do(lt,s,c){return lt.hasOwnProperty("duration")?lt:function jd(lt,s,c){const Q=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let dt,It=0,Kt="";if("string"==typeof lt){const le=lt.match(Q);if(null===le)return s.push(Ac()),{duration:0,delay:0,easing:""};dt=$p(parseFloat(le[1]),le[2]);const xe=le[3];null!=xe&&(It=$p(parseFloat(xe),le[4]));const Me=le[5];Me&&(Kt=Me)}else dt=lt;if(!c){let le=!1,xe=s.length;dt<0&&(s.push(function Cu(){return new t.\u0275RuntimeError(3100,!1)}()),le=!0),It<0&&(s.push(function dh(){return new t.\u0275RuntimeError(3101,!1)}()),le=!0),le&&s.splice(xe,0,Ac())}return{duration:dt,delay:It,easing:Kt}}(lt,s,c)}function Ic(lt,s={}){return Object.keys(lt).forEach(c=>{s[c]=lt[c]}),s}function Kp(lt){const s=new Map;return Object.keys(lt).forEach(c=>{const Q=lt[c];s.set(c,Q)}),s}function Ul(lt,s=new Map,c){if(c)for(let[Q,dt]of c)s.set(Q,dt);for(let[Q,dt]of lt)s.set(Q,dt);return s}function Yp(lt,s,c){return c?s+":"+c+";":""}function Mg(lt){let s="";for(let c=0;c{const It=Zp(dt);c&&!c.has(dt)&&c.set(dt,lt.style[It]),lt.style[It]=Q}),Vl()&&Mg(lt))}function Oc(lt,s){lt.style&&(s.forEach((c,Q)=>{const dt=Zp(Q);lt.style[dt]=""}),Vl()&&Mg(lt))}function cn(lt){return Array.isArray(lt)?1==lt.length?lt[0]:pd(lt):lt}function Vd(lt,s,c){const Q=s.params||{},dt=Ka(lt);dt.length&&dt.forEach(It=>{Q.hasOwnProperty(It)||c.push(function Vp(lt){return new t.\u0275RuntimeError(3001,!1)}())})}const _h=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ka(lt){let s=[];if("string"==typeof lt){let c;for(;c=_h.exec(lt);)s.push(c[1]);_h.lastIndex=0}return s}function Pu(lt,s,c){const Q=lt.toString(),dt=Q.replace(_h,(It,Kt)=>{let le=s[Kt];return null==le&&(c.push(function bu(lt){return new t.\u0275RuntimeError(3003,!1)}()),le=""),le.toString()});return dt==Q?lt:dt}function zd(lt){const s=[];let c=lt.next();for(;!c.done;)s.push(c.value),c=lt.next();return s}const Ag=/-+([a-z0-9])/g;function Zp(lt){return lt.replace(Ag,(...s)=>s[1].toUpperCase())}function Tg(lt){return lt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mo(lt,s,c){switch(s.type){case 7:return lt.visitTrigger(s,c);case 0:return lt.visitState(s,c);case 1:return lt.visitTransition(s,c);case 2:return lt.visitSequence(s,c);case 3:return lt.visitGroup(s,c);case 4:return lt.visitAnimate(s,c);case 5:return lt.visitKeyframes(s,c);case 6:return lt.visitStyle(s,c);case 8:return lt.visitReference(s,c);case 9:return lt.visitAnimateChild(s,c);case 10:return lt.visitAnimateRef(s,c);case 11:return lt.visitQuery(s,c);case 12:return lt.visitStagger(s,c);default:throw function Tc(lt){return new t.\u0275RuntimeError(3004,!1)}(s.type)}}function Ud(lt,s){return window.getComputedStyle(lt)[s]}function Ig(lt,s){const c=[];return"string"==typeof lt?lt.split(/\s*,\s*/).forEach(Q=>function Og(lt,s,c){if(":"==lt[0]){const xe=function Qp(lt,s){switch(lt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(c,Q)=>parseFloat(Q)>parseFloat(c);case":decrement":return(c,Q)=>parseFloat(Q) *"}}(lt,c);if("function"==typeof xe)return void s.push(xe);lt=xe}const Q=lt.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Q||Q.length<4)return c.push(function Pc(lt){return new t.\u0275RuntimeError(3015,!1)}()),s;const dt=Q[1],It=Q[2],Kt=Q[3];s.push(lo(dt,Kt));const le="*"==dt&&"*"==Kt;"<"==It[0]&&!le&&s.push(lo(Kt,dt))}(Q,c,s)):c.push(lt),c}const ku=new Set(["true","1"]),Wd=new Set(["false","0"]);function lo(lt,s){const c=ku.has(lt)||Wd.has(lt),Q=ku.has(s)||Wd.has(s);return(dt,It)=>{let Kt="*"==lt||lt==dt,le="*"==s||s==It;return!Kt&&c&&"boolean"==typeof dt&&(Kt=dt?ku.has(lt):Wd.has(lt)),!le&&Q&&"boolean"==typeof It&&(le=It?ku.has(s):Wd.has(s)),Kt&&le}}const bl=":self",Jp=new RegExp("s*:selfs*,?","g");function xh(lt,s,c,Q){return new Lg(lt).build(s,c,Q)}class Lg{constructor(s){this._driver=s}build(s,c,Q){const dt=new tf(c);return this._resetContextStyleTimingState(dt),Mo(this,cn(s),dt)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,c){let Q=c.queryCount=0,dt=c.depCount=0;const It=[],Kt=[];return"@"==s.name.charAt(0)&&c.errors.push(function Sn(){return new t.\u0275RuntimeError(3006,!1)}()),s.definitions.forEach(le=>{if(this._resetContextStyleTimingState(c),0==le.type){const xe=le,Me=xe.name;Me.toString().split(/\s*,\s*/).forEach(oi=>{xe.name=oi,It.push(this.visitState(xe,c))}),xe.name=Me}else if(1==le.type){const xe=this.visitTransition(le,c);Q+=xe.queryCount,dt+=xe.depCount,Kt.push(xe)}else c.errors.push(function Wv(){return new t.\u0275RuntimeError(3007,!1)}())}),{type:7,name:s.name,states:It,transitions:Kt,queryCount:Q,depCount:dt,options:null}}visitState(s,c){const Q=this.visitStyle(s.styles,c),dt=s.options&&s.options.params||null;if(Q.containsDynamicStyles){const It=new Set,Kt=dt||{};if(Q.styles.forEach(le=>{le instanceof Map&&le.forEach(xe=>{Ka(xe).forEach(Me=>{Kt.hasOwnProperty(Me)||It.add(Me)})})}),It.size){zd(It.values());c.errors.push(function So(lt,s){return new t.\u0275RuntimeError(3008,!1)}(s.name))}}return{type:0,name:s.name,style:Q,options:dt?{params:dt}:null}}visitTransition(s,c){c.queryCount=0,c.depCount=0;const Q=Mo(this,cn(s.animation),c);return{type:1,matchers:Ig(s.expr,c.errors),animation:Q,queryCount:c.queryCount,depCount:c.depCount,options:Wl(s.options)}}visitSequence(s,c){return{type:2,steps:s.steps.map(Q=>Mo(this,Q,c)),options:Wl(s.options)}}visitGroup(s,c){const Q=c.currentTime;let dt=0;const It=s.steps.map(Kt=>{c.currentTime=Q;const le=Mo(this,Kt,c);return dt=Math.max(dt,c.currentTime),le});return c.currentTime=dt,{type:3,steps:It,options:Wl(s.options)}}visitAnimate(s,c){const Q=function qm(lt,s){if(lt.hasOwnProperty("duration"))return lt;if("number"==typeof lt){return Jo(Do(lt,s).duration,0,"")}const c=lt;if(c.split(/\s+/).some(It=>"{"==It.charAt(0)&&"{"==It.charAt(1))){const It=Jo(0,0,"");return It.dynamic=!0,It.strValue=c,It}const dt=Do(c,s);return Jo(dt.duration,dt.delay,dt.easing)}(s.timings,c.errors);c.currentAnimateTimings=Q;let dt,It=s.styles?s.styles:oo({});if(5==It.type)dt=this.visitKeyframes(It,c);else{let Kt=s.styles,le=!1;if(!Kt){le=!0;const Me={};Q.easing&&(Me.easing=Q.easing),Kt=oo(Me)}c.currentTime+=Q.duration+Q.delay;const xe=this.visitStyle(Kt,c);xe.isEmptyStep=le,dt=xe}return c.currentAnimateTimings=null,{type:4,timings:Q,style:dt,options:null}}visitStyle(s,c){const Q=this._makeStyleAst(s,c);return this._validateStyleAst(Q,c),Q}_makeStyleAst(s,c){const Q=[],dt=Array.isArray(s.styles)?s.styles:[s.styles];for(let le of dt)"string"==typeof le?le===Is?Q.push(le):c.errors.push(new t.\u0275RuntimeError(3002,!1)):Q.push(Kp(le));let It=!1,Kt=null;return Q.forEach(le=>{if(le instanceof Map&&(le.has("easing")&&(Kt=le.get("easing"),le.delete("easing")),!It))for(let xe of le.values())if(xe.toString().indexOf("{{")>=0){It=!0;break}}),{type:6,styles:Q,easing:Kt,offset:s.offset,containsDynamicStyles:It,options:null}}_validateStyleAst(s,c){const Q=c.currentAnimateTimings;let dt=c.currentTime,It=c.currentTime;Q&&It>0&&(It-=Q.duration+Q.delay),s.styles.forEach(Kt=>{"string"!=typeof Kt&&Kt.forEach((le,xe)=>{const Me=c.collectedStyles.get(c.currentQuerySelector),oi=Me.get(xe);let hi=!0;oi&&(It!=dt&&It>=oi.startTime&&dt<=oi.endTime&&(c.errors.push(function xl(lt,s,c,Q,dt){return new t.\u0275RuntimeError(3010,!1)}(0,oi.startTime,oi.endTime)),hi=!1),It=oi.startTime),hi&&Me.set(xe,{startTime:It,endTime:dt}),c.options&&Vd(le,c.options,c.errors)})})}visitKeyframes(s,c){const Q={type:5,styles:[],options:null};if(!c.currentAnimateTimings)return c.errors.push(function Wm(){return new t.\u0275RuntimeError(3011,!1)}()),Q;let It=0;const Kt=[];let le=!1,xe=!1,Me=0;const oi=s.steps.map(Yn=>{const Ur=this._makeStyleAst(Yn,c);let Tr=null!=Ur.offset?Ur.offset:function Zm(lt){if("string"==typeof lt)return null;let s=null;if(Array.isArray(lt))lt.forEach(c=>{if(c instanceof Map&&c.has("offset")){const Q=c;s=parseFloat(Q.get("offset")),Q.delete("offset")}});else if(lt instanceof Map&<.has("offset")){const c=lt;s=parseFloat(c.get("offset")),c.delete("offset")}return s}(Ur.styles),Wr=0;return null!=Tr&&(It++,Wr=Ur.offset=Tr),xe=xe||Wr<0||Wr>1,le=le||Wr0&&It{const Tr=Li>0?Ur==Pi?1:Li*Ur:Kt[Ur],Wr=Tr*Rn;c.currentTime=Ki+on.delay+Wr,on.duration=Wr,this._validateStyleAst(Yn,c),Yn.offset=Tr,Q.styles.push(Yn)}),Q}visitReference(s,c){return{type:8,animation:Mo(this,cn(s.animation),c),options:Wl(s.options)}}visitAnimateChild(s,c){return c.depCount++,{type:9,options:Wl(s.options)}}visitAnimateRef(s,c){return{type:10,animation:this.visitReference(s.animation,c),options:Wl(s.options)}}visitQuery(s,c){const Q=c.currentQuerySelector,dt=s.options||{};c.queryCount++,c.currentQuery=s;const[It,Kt]=function Rg(lt){const s=!!lt.split(/\s*,\s*/).find(c=>c==bl);return s&&(lt=lt.replace(Jp,"")),lt=lt.replace(/@\*/g,yh).replace(/@\w+/g,c=>yh+"-"+c.slice(1)).replace(/:animating/g,Tu),[lt,s]}(s.selector);c.currentQuerySelector=Q.length?Q+" "+It:It,Fs(c.collectedStyles,c.currentQuerySelector,new Map);const le=Mo(this,cn(s.animation),c);return c.currentQuery=null,c.currentQuerySelector=Q,{type:11,selector:It,limit:dt.limit||0,optional:!!dt.optional,includeSelf:Kt,animation:le,originalSelector:s.selector,options:Wl(s.options)}}visitStagger(s,c){c.currentQuery||c.errors.push(function Up(){return new t.\u0275RuntimeError(3013,!1)}());const Q="full"===s.timings?{duration:0,delay:0,easing:"full"}:Do(s.timings,c.errors,!0);return{type:12,animation:Mo(this,cn(s.animation),c),timings:Q,options:null}}}class tf{constructor(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Wl(lt){return lt?(lt=Ic(lt)).params&&(lt.params=function Fg(lt){return lt?Ic(lt):null}(lt.params)):lt={},lt}function Jo(lt,s,c){return{duration:lt,delay:s,easing:c}}function Hd(lt,s,c,Q,dt,It,Kt=null,le=!1){return{type:1,element:lt,keyframes:s,preStyleProps:c,postStyleProps:Q,duration:dt,delay:It,totalTime:dt+It,easing:Kt,subTimeline:le}}class kc{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,c){let Q=this._map.get(s);Q||this._map.set(s,Q=[]),Q.push(...c)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const Lc=new RegExp(":enter","g"),Qm=new RegExp(":leave","g");function Hl(lt,s,c,Q,dt,It=new Map,Kt=new Map,le,xe,Me=[]){return(new ef).buildKeyframes(lt,s,c,Q,dt,It,Kt,le,xe,Me)}class ef{buildKeyframes(s,c,Q,dt,It,Kt,le,xe,Me,oi=[]){Me=Me||new kc;const hi=new Gd(s,c,Me,dt,It,oi,[]);hi.options=xe;const Li=xe.delay?zl(xe.delay):0;hi.currentTimeline.delayNextStep(Li),hi.currentTimeline.setStyles([Kt],null,hi.errors,xe),Mo(this,Q,hi);const Pi=hi.timelines.filter(Ki=>Ki.containsAnimation());if(Pi.length&&le.size){let Ki;for(let on=Pi.length-1;on>=0;on--){const Rn=Pi[on];if(Rn.element===c){Ki=Rn;break}}Ki&&!Ki.allowOnlyTimelineStyles()&&Ki.setStyles([le],null,hi.errors,xe)}return Pi.length?Pi.map(Ki=>Ki.buildKeyframes()):[Hd(c,[],[],[],0,Li,"",!1)]}visitTrigger(s,c){}visitState(s,c){}visitTransition(s,c){}visitAnimateChild(s,c){const Q=c.subInstructions.get(c.element);if(Q){const dt=c.createSubContext(s.options),It=c.currentTimeline.currentTime,Kt=this._visitSubInstructions(Q,dt,dt.options);It!=Kt&&c.transformIntoNewTimeline(Kt)}c.previousNode=s}visitAnimateRef(s,c){const Q=c.createSubContext(s.options);Q.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],c,Q),this.visitReference(s.animation,Q),c.transformIntoNewTimeline(Q.currentTimeline.currentTime),c.previousNode=s}_applyAnimationRefDelays(s,c,Q){for(const dt of s){const It=dt?.delay;if(It){const Kt="number"==typeof It?It:zl(Pu(It,dt?.params??{},c.errors));Q.delayNextStep(Kt)}}}_visitSubInstructions(s,c,Q){let It=c.currentTimeline.currentTime;const Kt=null!=Q.duration?zl(Q.duration):null,le=null!=Q.delay?zl(Q.delay):null;return 0!==Kt&&s.forEach(xe=>{const Me=c.appendInstructionToTimeline(xe,Kt,le);It=Math.max(It,Me.duration+Me.delay)}),It}visitReference(s,c){c.updateOptions(s.options,!0),Mo(this,s.animation,c),c.previousNode=s}visitSequence(s,c){const Q=c.subContextCount;let dt=c;const It=s.options;if(It&&(It.params||It.delay)&&(dt=c.createSubContext(It),dt.transformIntoNewTimeline(),null!=It.delay)){6==dt.previousNode.type&&(dt.currentTimeline.snapshotCurrentStyles(),dt.previousNode=Ru);const Kt=zl(It.delay);dt.delayNextStep(Kt)}s.steps.length&&(s.steps.forEach(Kt=>Mo(this,Kt,dt)),dt.currentTimeline.applyStylesToKeyframe(),dt.subContextCount>Q&&dt.transformIntoNewTimeline()),c.previousNode=s}visitGroup(s,c){const Q=[];let dt=c.currentTimeline.currentTime;const It=s.options&&s.options.delay?zl(s.options.delay):0;s.steps.forEach(Kt=>{const le=c.createSubContext(s.options);It&&le.delayNextStep(It),Mo(this,Kt,le),dt=Math.max(dt,le.currentTimeline.currentTime),Q.push(le.currentTimeline)}),Q.forEach(Kt=>c.currentTimeline.mergeTimelineCollectedStyles(Kt)),c.transformIntoNewTimeline(dt),c.previousNode=s}_visitTiming(s,c){if(s.dynamic){const Q=s.strValue;return Do(c.params?Pu(Q,c.params,c.errors):Q,c.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,c){const Q=c.currentAnimateTimings=this._visitTiming(s.timings,c),dt=c.currentTimeline;Q.delay&&(c.incrementTime(Q.delay),dt.snapshotCurrentStyles());const It=s.style;5==It.type?this.visitKeyframes(It,c):(c.incrementTime(Q.duration),this.visitStyle(It,c),dt.applyStylesToKeyframe()),c.currentAnimateTimings=null,c.previousNode=s}visitStyle(s,c){const Q=c.currentTimeline,dt=c.currentAnimateTimings;!dt&&Q.hasCurrentStyleProperties()&&Q.forwardFrame();const It=dt&&dt.easing||s.easing;s.isEmptyStep?Q.applyEmptyStep(It):Q.setStyles(s.styles,It,c.errors,c.options),c.previousNode=s}visitKeyframes(s,c){const Q=c.currentAnimateTimings,dt=c.currentTimeline.duration,It=Q.duration,le=c.createSubContext().currentTimeline;le.easing=Q.easing,s.styles.forEach(xe=>{const Me=xe.offset||0;le.forwardTime(Me*It),le.setStyles(xe.styles,xe.easing,c.errors,c.options),le.applyStylesToKeyframe()}),c.currentTimeline.mergeTimelineCollectedStyles(le),c.transformIntoNewTimeline(dt+It),c.previousNode=s}visitQuery(s,c){const Q=c.currentTimeline.currentTime,dt=s.options||{},It=dt.delay?zl(dt.delay):0;It&&(6===c.previousNode.type||0==Q&&c.currentTimeline.hasCurrentStyleProperties())&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=Ru);let Kt=Q;const le=c.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!dt.optional,c.errors);c.currentQueryTotal=le.length;let xe=null;le.forEach((Me,oi)=>{c.currentQueryIndex=oi;const hi=c.createSubContext(s.options,Me);It&&hi.delayNextStep(It),Me===c.element&&(xe=hi.currentTimeline),Mo(this,s.animation,hi),hi.currentTimeline.applyStylesToKeyframe();const Li=hi.currentTimeline.currentTime;Kt=Math.max(Kt,Li)}),c.currentQueryIndex=0,c.currentQueryTotal=0,c.transformIntoNewTimeline(Kt),xe&&(c.currentTimeline.mergeTimelineCollectedStyles(xe),c.currentTimeline.snapshotCurrentStyles()),c.previousNode=s}visitStagger(s,c){const Q=c.parentContext,dt=c.currentTimeline,It=s.timings,Kt=Math.abs(It.duration),le=Kt*(c.currentQueryTotal-1);let xe=Kt*c.currentQueryIndex;switch(It.duration<0?"reverse":It.easing){case"reverse":xe=le-xe;break;case"full":xe=Q.currentStaggerTime}const oi=c.currentTimeline;xe&&oi.delayNextStep(xe);const hi=oi.currentTime;Mo(this,s.animation,c),c.previousNode=s,Q.currentStaggerTime=dt.currentTime-hi+(dt.startTime-Q.currentTimeline.startTime)}}const Ru={};class Gd{constructor(s,c,Q,dt,It,Kt,le,xe){this._driver=s,this.element=c,this.subInstructions=Q,this._enterClassName=dt,this._leaveClassName=It,this.errors=Kt,this.timelines=le,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=xe||new Xd(this._driver,c,0),le.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,c){if(!s)return;const Q=s;let dt=this.options;null!=Q.duration&&(dt.duration=zl(Q.duration)),null!=Q.delay&&(dt.delay=zl(Q.delay));const It=Q.params;if(It){let Kt=dt.params;Kt||(Kt=this.options.params={}),Object.keys(It).forEach(le=>{(!c||!Kt.hasOwnProperty(le))&&(Kt[le]=Pu(It[le],Kt,this.errors))})}}_copyOptions(){const s={};if(this.options){const c=this.options.params;if(c){const Q=s.params={};Object.keys(c).forEach(dt=>{Q[dt]=c[dt]})}}return s}createSubContext(s=null,c,Q){const dt=c||this.element,It=new Gd(this._driver,dt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(dt,Q||0));return It.previousNode=this.previousNode,It.currentAnimateTimings=this.currentAnimateTimings,It.options=this._copyOptions(),It.updateOptions(s),It.currentQueryIndex=this.currentQueryIndex,It.currentQueryTotal=this.currentQueryTotal,It.parentContext=this,this.subContextCount++,It}transformIntoNewTimeline(s){return this.previousNode=Ru,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,c,Q){const dt={duration:c??s.duration,delay:this.currentTimeline.currentTime+(Q??0)+s.delay,easing:""},It=new Ng(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,dt,s.stretchStartingKeyframe);return this.timelines.push(It),dt}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,c,Q,dt,It,Kt){let le=[];if(dt&&le.push(this.element),s.length>0){s=(s=s.replace(Lc,"."+this._enterClassName)).replace(Qm,"."+this._leaveClassName);const xe=1!=Q;let Me=this._driver.query(this.element,s,xe);0!==Q&&(Me=Q<0?Me.slice(Me.length+Q,Me.length):Me.slice(0,Q)),le.push(...Me)}return!It&&0==le.length&&Kt.push(function Dd(lt){return new t.\u0275RuntimeError(3014,!1)}()),le}}class Xd{constructor(s,c,Q,dt){this._driver=s,this.element=c,this.startTime=Q,this._elementTimelineStylesLookup=dt,this.duration=0,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(c),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(c,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(s){const c=1===this._keyframes.size&&this._pendingStyles.size;this.duration||c?(this.forwardTime(this.currentTime+s),c&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,c){return this.applyStylesToKeyframe(),new Xd(this._driver,s,c||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,c){this._localTimelineStyles.set(s,c),this._globalTimelineStyles.set(s,c),this._styleSummary.set(s,{time:this.currentTime,value:c})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[c,Q]of this._globalTimelineStyles)this._backFill.set(c,Q||Is),this._currentKeyframe.set(c,Is);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,c,Q,dt){c&&this._previousKeyframe.set("easing",c);const It=dt&&dt.params||{},Kt=function wh(lt,s){const c=new Map;let Q;return lt.forEach(dt=>{if("*"===dt){Q=Q||s.keys();for(let It of Q)c.set(It,Is)}else Ul(dt,c)}),c}(s,this._globalTimelineStyles);for(let[le,xe]of Kt){const Me=Pu(xe,It,Q);this._pendingStyles.set(le,Me),this._localTimelineStyles.has(le)||this._backFill.set(le,this._globalTimelineStyles.get(le)??Is),this._updateStyle(le,Me)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,c)=>{this._currentKeyframe.set(c,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,c)=>{this._currentKeyframe.has(c)||this._currentKeyframe.set(c,s)}))}snapshotCurrentStyles(){for(let[s,c]of this._localTimelineStyles)this._pendingStyles.set(s,c),this._updateStyle(s,c)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let c in this._currentKeyframe)s.push(c);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((c,Q)=>{const dt=this._styleSummary.get(Q);(!dt||c.time>dt.time)&&this._updateStyle(Q,c.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,c=new Set,Q=1===this._keyframes.size&&0===this.duration;let dt=[];this._keyframes.forEach((le,xe)=>{const Me=Ul(le,new Map,this._backFill);Me.forEach((oi,hi)=>{"!"===oi?s.add(hi):oi===Is&&c.add(hi)}),Q||Me.set("offset",xe/this.duration),dt.push(Me)});const It=s.size?zd(s.values()):[],Kt=c.size?zd(c.values()):[];if(Q){const le=dt[0],xe=new Map(le);le.set("offset",0),xe.set("offset",1),dt=[le,xe]}return Hd(this.element,dt,It,Kt,this.duration,this.startTime,this.easing,!1)}}class Ng extends Xd{constructor(s,c,Q,dt,It,Kt,le=!1){super(s,c,Kt.delay),this.keyframes=Q,this.preStyleProps=dt,this.postStyleProps=It,this._stretchStartingKeyframe=le,this.timings={duration:Kt.duration,delay:Kt.delay,easing:Kt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:c,duration:Q,easing:dt}=this.timings;if(this._stretchStartingKeyframe&&c){const It=[],Kt=Q+c,le=c/Kt,xe=Ul(s[0]);xe.set("offset",0),It.push(xe);const Me=Ul(s[0]);Me.set("offset",Fu(le)),It.push(Me);const oi=s.length-1;for(let hi=1;hi<=oi;hi++){let Li=Ul(s[hi]);const Ki=c+Li.get("offset")*Q;Li.set("offset",Fu(Ki/Kt)),It.push(Li)}Q=Kt,c=0,dt="",s=It}return Hd(this.element,s,this.preStyleProps,this.postStyleProps,Q,c,dt,!0)}}function Fu(lt,s=3){const c=Math.pow(10,s-1);return Math.round(lt*c)/c}class Rc{}const $d=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 Vg extends Rc{normalizePropertyName(s,c){return Zp(s)}normalizeStyleValue(s,c,Q,dt){let It="";const Kt=Q.toString().trim();if($d.has(c)&&0!==Q&&"0"!==Q)if("number"==typeof Q)It="px";else{const le=Q.match(/^[+-]?[\d\.]+([a-z]*)$/);le&&0==le[1].length&&dt.push(function Sd(lt,s){return new t.\u0275RuntimeError(3005,!1)}())}return Kt+It}}function ta(lt,s,c,Q,dt,It,Kt,le,xe,Me,oi,hi,Li){return{type:0,element:lt,triggerName:s,isRemovalTransition:dt,fromState:c,fromStyles:It,toState:Q,toStyles:Kt,timelines:le,queriedElements:xe,preStyleProps:Me,postStyleProps:oi,totalTime:hi,errors:Li}}const Nu={};class Bu{constructor(s,c,Q){this._triggerName=s,this.ast=c,this._stateStyles=Q}match(s,c,Q,dt){return function nf(lt,s,c,Q,dt){return lt.some(It=>It(s,c,Q,dt))}(this.ast.matchers,s,c,Q,dt)}buildStyles(s,c,Q){let dt=this._stateStyles.get("*");return void 0!==s&&(dt=this._stateStyles.get(s?.toString())||dt),dt?dt.buildStyles(c,Q):new Map}build(s,c,Q,dt,It,Kt,le,xe,Me,oi){const hi=[],Li=this.ast.options&&this.ast.options.params||Nu,Pi=le&&le.params||Nu,Ki=this.buildStyles(Q,Pi,hi),on=xe&&xe.params||Nu,Rn=this.buildStyles(dt,on,hi),Yn=new Set,Ur=new Map,Tr=new Map,Wr="void"===dt,na={params:tv(on,Li),delay:this.ast.options?.delay},ra=oi?[]:Hl(s,c,this.ast.animation,It,Kt,Ki,Rn,na,Me,hi);let zs=0;if(ra.forEach(oa=>{zs=Math.max(oa.duration+oa.delay,zs)}),hi.length)return ta(c,this._triggerName,Q,dt,Wr,Ki,Rn,[],[],Ur,Tr,zs,hi);ra.forEach(oa=>{const Aa=oa.element,Kc=Fs(Ur,Aa,new Set);oa.preStyleProps.forEach(ho=>Kc.add(ho));const Ta=Fs(Tr,Aa,new Set);oa.postStyleProps.forEach(ho=>Ta.add(ho)),Aa!==c&&Yn.add(Aa)});const sa=zd(Yn.values());return ta(c,this._triggerName,Q,dt,Wr,Ki,Rn,ra,sa,Ur,Tr,zs)}}function tv(lt,s){const c=Ic(s);for(const Q in lt)lt.hasOwnProperty(Q)&&null!=lt[Q]&&(c[Q]=lt[Q]);return c}class ev{constructor(s,c,Q){this.styles=s,this.defaultParams=c,this.normalizer=Q}buildStyles(s,c){const Q=new Map,dt=Ic(this.defaultParams);return Object.keys(s).forEach(It=>{const Kt=s[It];null!==Kt&&(dt[It]=Kt)}),this.styles.styles.forEach(It=>{"string"!=typeof It&&It.forEach((Kt,le)=>{Kt&&(Kt=Pu(Kt,dt,c));const xe=this.normalizer.normalizePropertyName(le,c);Kt=this.normalizer.normalizeStyleValue(le,xe,Kt,c),Q.set(le,Kt)})}),Q}}class iv{constructor(s,c,Q){this.name=s,this.ast=c,this._normalizer=Q,this.transitionFactories=[],this.states=new Map,c.states.forEach(dt=>{const It=dt.options&&dt.options.params||{};this.states.set(dt.name,new ev(dt.style,It,Q))}),rf(this.states,"true","1"),rf(this.states,"false","0"),c.transitions.forEach(dt=>{this.transitionFactories.push(new Bu(s,dt,this.states))}),this.fallbackTransition=function Ug(lt,s,c){return new Bu(lt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Kt,le)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,c,Q,dt){return this.transitionFactories.find(Kt=>Kt.match(s,c,Q,dt))||null}matchStyles(s,c,Q){return this.fallbackTransition.buildStyles(s,c,Q)}}function rf(lt,s,c){lt.has(s)?lt.has(c)||lt.set(c,lt.get(s)):lt.has(c)&<.set(s,lt.get(c))}const nv=new kc;class rv{constructor(s,c,Q){this.bodyNode=s,this._driver=c,this._normalizer=Q,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,c){const Q=[],dt=[],It=xh(this._driver,c,Q,dt);if(Q.length)throw function fh(lt){return new t.\u0275RuntimeError(3503,!1)}();dt.length,this._animations.set(s,It)}_buildPlayer(s,c,Q){const dt=s.element,It=Td(this._driver,this._normalizer,0,s.keyframes,c,Q);return this._driver.animate(dt,It,s.duration,s.delay,s.easing,[],!0)}create(s,c,Q={}){const dt=[],It=this._animations.get(s);let Kt;const le=new Map;if(It?(Kt=Hl(this._driver,c,It,Bd,Xp,new Map,new Map,Q,nv,dt),Kt.forEach(oi=>{const hi=Fs(le,oi.element,new Map);oi.postStyleProps.forEach(Li=>hi.set(Li,null))})):(dt.push(function _n(){return new t.\u0275RuntimeError(3300,!1)}()),Kt=[]),dt.length)throw function yg(lt){return new t.\u0275RuntimeError(3504,!1)}();le.forEach((oi,hi)=>{oi.forEach((Li,Pi)=>{oi.set(Pi,this._driver.computeStyle(hi,Pi,Is))})});const Me=Ls(Kt.map(oi=>{const hi=le.get(oi.element);return this._buildPlayer(oi,new Map,hi)}));return this._playersById.set(s,Me),Me.onDestroy(()=>this.destroy(s)),this.players.push(Me),Me}destroy(s){const c=this._getPlayer(s);c.destroy(),this._playersById.delete(s);const Q=this.players.indexOf(c);Q>=0&&this.players.splice(Q,1)}_getPlayer(s){const c=this._playersById.get(s);if(!c)throw function gh(lt){return new t.\u0275RuntimeError(3301,!1)}();return c}listen(s,c,Q,dt){const It=Id(c,"","","");return Pd(this._getPlayer(s),Q,It,dt),()=>{}}command(s,c,Q,dt){if("register"==Q)return void this.register(s,dt[0]);if("create"==Q){const Kt=dt[0]||{};return void this.create(s,c,Kt)}const It=this._getPlayer(s);switch(Q){case"play":It.play();break;case"pause":It.pause();break;case"reset":It.reset();break;case"restart":It.restart();break;case"finish":It.finish();break;case"init":It.init();break;case"setPosition":It.setPosition(parseFloat(dt[0]));break;case"destroy":this.destroy(s)}}}const co="ng-animate-queued",sf="ng-animate-disabled",sv=[],of={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},af={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ao="__ng_removed";class Ya{get params(){return this.options.params}constructor(s,c=""){this.namespaceId=c;const Q=s&&s.hasOwnProperty("value"),dt=Q?s.value:s;if(this.value=function av(lt){return lt??null}(dt),Q){const It=Ic(s);delete It.value,this.options=It}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const c=s.params;if(c){const Q=this.options.params;Object.keys(c).forEach(dt=>{null==Q[dt]&&(Q[dt]=c[dt])})}}}const Eh="void",Vu=new Ya(Eh);class lf{constructor(s,c,Q){this.id=s,this.hostElement=c,this._engine=Q,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,to(c,this._hostClassName)}listen(s,c,Q,dt){if(!this._triggers.has(c))throw function Ad(lt,s){return new t.\u0275RuntimeError(3302,!1)}();if(null==Q||0==Q.length)throw function Eu(lt){return new t.\u0275RuntimeError(3303,!1)}();if(!function zu(lt){return"start"==lt||"done"==lt}(Q))throw function Su(lt,s){return new t.\u0275RuntimeError(3400,!1)}();const It=Fs(this._elementListeners,s,[]),Kt={name:c,phase:Q,callback:dt};It.push(Kt);const le=Fs(this._engine.statesByElement,s,new Map);return le.has(c)||(to(s,vh),to(s,vh+"-"+c),le.set(c,Vu)),()=>{this._engine.afterFlush(()=>{const xe=It.indexOf(Kt);xe>=0&&It.splice(xe,1),this._triggers.has(c)||le.delete(c)})}}register(s,c){return!this._triggers.has(s)&&(this._triggers.set(s,c),!0)}_getTrigger(s){const c=this._triggers.get(s);if(!c)throw function Hp(lt){return new t.\u0275RuntimeError(3401,!1)}();return c}trigger(s,c,Q,dt=!0){const It=this._getTrigger(c),Kt=new cf(this.id,c,s);let le=this._engine.statesByElement.get(s);le||(to(s,vh),to(s,vh+"-"+c),this._engine.statesByElement.set(s,le=new Map));let xe=le.get(c);const Me=new Ya(Q,this.id);if(!(Q&&Q.hasOwnProperty("value"))&&xe&&Me.absorbOptions(xe.options),le.set(c,Me),xe||(xe=Vu),Me.value!==Eh&&xe.value===Me.value){if(!function cv(lt,s){const c=Object.keys(lt),Q=Object.keys(s);if(c.length!=Q.length)return!1;for(let dt=0;dt{Oc(s,Rn),Qo(s,Yn)})}return}const Li=Fs(this._engine.playersByElement,s,[]);Li.forEach(on=>{on.namespaceId==this.id&&on.triggerName==c&&on.queued&&on.destroy()});let Pi=It.matchTransition(xe.value,Me.value,s,Me.params),Ki=!1;if(!Pi){if(!dt)return;Pi=It.fallbackTransition,Ki=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:c,transition:Pi,fromState:xe,toState:Me,player:Kt,isFallbackTransition:Ki}),Ki||(to(s,co),Kt.onStart(()=>{Sh(s,co)})),Kt.onDone(()=>{let on=this.players.indexOf(Kt);on>=0&&this.players.splice(on,1);const Rn=this._engine.playersByElement.get(s);if(Rn){let Yn=Rn.indexOf(Kt);Yn>=0&&Rn.splice(Yn,1)}}),this.players.push(Kt),Li.push(Kt),Kt}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(c=>c.delete(s)),this._elementListeners.forEach((c,Q)=>{this._elementListeners.set(Q,c.filter(dt=>dt.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const c=this._engine.playersByElement.get(s);c&&(c.forEach(Q=>Q.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,c){const Q=this._engine.driver.query(s,yh,!0);Q.forEach(dt=>{if(dt[Ao])return;const It=this._engine.fetchNamespacesByElement(dt);It.size?It.forEach(Kt=>Kt.triggerLeaveAnimation(dt,c,!1,!0)):this.clearElementCache(dt)}),this._engine.afterFlushAnimationsDone(()=>Q.forEach(dt=>this.clearElementCache(dt)))}triggerLeaveAnimation(s,c,Q,dt){const It=this._engine.statesByElement.get(s),Kt=new Map;if(It){const le=[];if(It.forEach((xe,Me)=>{if(Kt.set(Me,xe.value),this._triggers.has(Me)){const oi=this.trigger(s,Me,Eh,dt);oi&&le.push(oi)}}),le.length)return this._engine.markElementAsRemoved(this.id,s,!0,c,Kt),Q&&Ls(le).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const c=this._elementListeners.get(s),Q=this._engine.statesByElement.get(s);if(c&&Q){const dt=new Set;c.forEach(It=>{const Kt=It.name;if(dt.has(Kt))return;dt.add(Kt);const xe=this._triggers.get(Kt).fallbackTransition,Me=Q.get(Kt)||Vu,oi=new Ya(Eh),hi=new cf(this.id,Kt,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:Kt,transition:xe,fromState:Me,toState:oi,player:hi,isFallbackTransition:!0})})}}removeNode(s,c){const Q=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,c),this.triggerLeaveAnimation(s,c,!0))return;let dt=!1;if(Q.totalAnimations){const It=Q.players.length?Q.playersByQueriedElement.get(s):[];if(It&&It.length)dt=!0;else{let Kt=s;for(;Kt=Kt.parentNode;)if(Q.statesByElement.get(Kt)){dt=!0;break}}}if(this.prepareLeaveAnimationListeners(s),dt)Q.markElementAsRemoved(this.id,s,!1,c);else{const It=s[Ao];(!It||It===of)&&(Q.afterFlush(()=>this.clearElementCache(s)),Q.destroyInnerAnimations(s),Q._onRemovalComplete(s,c))}}insertNode(s,c){to(s,this._hostClassName)}drainQueuedTransitions(s){const c=[];return this._queue.forEach(Q=>{const dt=Q.player;if(dt.destroyed)return;const It=Q.element,Kt=this._elementListeners.get(It);Kt&&Kt.forEach(le=>{if(le.name==Q.triggerName){const xe=Id(It,Q.triggerName,Q.fromState.value,Q.toState.value);xe._data=s,Pd(Q.player,le.phase,xe,le.callback)}}),dt.markedForDestroy?this._engine.afterFlush(()=>{dt.destroy()}):c.push(Q)}),this._queue=[],c.sort((Q,dt)=>{const It=Q.transition.ast.depCount,Kt=dt.transition.ast.depCount;return 0==It||0==Kt?It-Kt:this._engine.driver.containsElement(Q.element,dt.element)?1:-1})}destroy(s){this.players.forEach(c=>c.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}elementContainsData(s){let c=!1;return this._elementListeners.has(s)&&(c=!0),c=!!this._queue.find(Q=>Q.element===s)||c,c}}class Gg{_onRemovalComplete(s,c){this.onRemovalComplete(s,c)}constructor(s,c,Q){this.bodyNode=s,this.driver=c,this._normalizer=Q,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=(dt,It)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(c=>{c.players.forEach(Q=>{Q.queued&&s.push(Q)})}),s}createNamespace(s,c){const Q=new lf(s,c,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,c)?this._balanceNamespaceList(Q,c):(this.newHostElements.set(c,Q),this.collectEnterElement(c)),this._namespaceLookup[s]=Q}_balanceNamespaceList(s,c){const Q=this._namespaceList,dt=this.namespacesByHostElement;if(Q.length-1>=0){let Kt=!1,le=this.driver.getParentElement(c);for(;le;){const xe=dt.get(le);if(xe){const Me=Q.indexOf(xe);Q.splice(Me+1,0,s),Kt=!0;break}le=this.driver.getParentElement(le)}Kt||Q.unshift(s)}else Q.push(s);return dt.set(c,s),s}register(s,c){let Q=this._namespaceLookup[s];return Q||(Q=this.createNamespace(s,c)),Q}registerTrigger(s,c,Q){let dt=this._namespaceLookup[s];dt&&dt.register(c,Q)&&this.totalAnimations++}destroy(s,c){if(!s)return;const Q=this._fetchNamespace(s);this.afterFlush(()=>{this.namespacesByHostElement.delete(Q.hostElement),delete this._namespaceLookup[s];const dt=this._namespaceList.indexOf(Q);dt>=0&&this._namespaceList.splice(dt,1)}),this.afterFlushAnimationsDone(()=>Q.destroy(c))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const c=new Set,Q=this.statesByElement.get(s);if(Q)for(let dt of Q.values())if(dt.namespaceId){const It=this._fetchNamespace(dt.namespaceId);It&&c.add(It)}return c}trigger(s,c,Q,dt){if(To(c)){const It=this._fetchNamespace(s);if(It)return It.trigger(c,Q,dt),!0}return!1}insertNode(s,c,Q,dt){if(!To(c))return;const It=c[Ao];if(It&&It.setForRemoval){It.setForRemoval=!1,It.setForMove=!0;const Kt=this.collectedLeaveElements.indexOf(c);Kt>=0&&this.collectedLeaveElements.splice(Kt,1)}if(s){const Kt=this._fetchNamespace(s);Kt&&Kt.insertNode(c,Q)}dt&&this.collectEnterElement(c)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,c){c?this.disabledNodes.has(s)||(this.disabledNodes.add(s),to(s,sf)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),Sh(s,sf))}removeNode(s,c,Q,dt){if(To(c)){const It=s?this._fetchNamespace(s):null;if(It?It.removeNode(c,dt):this.markElementAsRemoved(s,c,!1,dt),Q){const Kt=this.namespacesByHostElement.get(c);Kt&&Kt.id!==s&&Kt.removeNode(c,dt)}}else this._onRemovalComplete(c,dt)}markElementAsRemoved(s,c,Q,dt,It){this.collectedLeaveElements.push(c),c[Ao]={namespaceId:s,setForRemoval:dt,hasAnimation:Q,removedBeforeQueried:!1,previousTriggersValues:It}}listen(s,c,Q,dt,It){return To(c)?this._fetchNamespace(s).listen(c,Q,dt,It):()=>{}}_buildInstruction(s,c,Q,dt,It){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,Q,dt,s.fromState.options,s.toState.options,c,It)}destroyInnerAnimations(s){let c=this.driver.query(s,yh,!0);c.forEach(Q=>this.destroyActiveAnimationsForElement(Q)),0!=this.playersByQueriedElement.size&&(c=this.driver.query(s,Tu,!0),c.forEach(Q=>this.finishActiveQueriedAnimationOnElement(Q)))}destroyActiveAnimationsForElement(s){const c=this.playersByElement.get(s);c&&c.forEach(Q=>{Q.queued?Q.markedForDestroy=!0:Q.destroy()})}finishActiveQueriedAnimationOnElement(s){const c=this.playersByQueriedElement.get(s);c&&c.forEach(Q=>Q.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return Ls(this.players).onDone(()=>s());s()})}processLeaveNode(s){const c=s[Ao];if(c&&c.setForRemoval){if(s[Ao]=of,c.namespaceId){this.destroyInnerAnimations(s);const Q=this._fetchNamespace(c.namespaceId);Q&&Q.clearElementCache(s)}this._onRemovalComplete(s,c.setForRemoval)}s.classList?.contains(sf)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(Q=>{this.markElementAsDisabled(Q,!1)})}flush(s=-1){let c=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Q,dt)=>this._balanceNamespaceList(Q,dt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Q=0;QQ()),this._flushFns=[],this._whenQuietFns.length){const Q=this._whenQuietFns;this._whenQuietFns=[],c.length?Ls(c).onDone(()=>{Q.forEach(dt=>dt())}):Q.forEach(dt=>dt())}}reportError(s){throw function _g(lt){return new t.\u0275RuntimeError(3402,!1)}()}_flushAnimations(s,c){const Q=new kc,dt=[],It=new Map,Kt=[],le=new Map,xe=new Map,Me=new Map,oi=new Set;this.disabledNodes.forEach(Bi=>{oi.add(Bi);const ji=this.driver.query(Bi,".ng-animate-queued",!0);for(let Gi=0;Gi{const Gi=Bd+on++;Ki.set(ji,Gi),Bi.forEach(an=>to(an,Gi))});const Rn=[],Yn=new Set,Ur=new Set;for(let Bi=0;BiYn.add(an)):Ur.add(ji))}const Tr=new Map,Wr=Gl(Li,Array.from(Yn));Wr.forEach((Bi,ji)=>{const Gi=Xp+on++;Tr.set(ji,Gi),Bi.forEach(an=>to(an,Gi))}),s.push(()=>{Pi.forEach((Bi,ji)=>{const Gi=Ki.get(ji);Bi.forEach(an=>Sh(an,Gi))}),Wr.forEach((Bi,ji)=>{const Gi=Tr.get(ji);Bi.forEach(an=>Sh(an,Gi))}),Rn.forEach(Bi=>{this.processLeaveNode(Bi)})});const na=[],ra=[];for(let Bi=this._namespaceList.length-1;Bi>=0;Bi--)this._namespaceList[Bi].drainQueuedTransitions(c).forEach(Gi=>{const an=Gi.player,Pr=Gi.element;if(na.push(an),this.collectedEnterElements.length){const Hr=Pr[Ao];if(Hr&&Hr.setForMove){if(Hr.previousTriggersValues&&Hr.previousTriggersValues.has(Gi.triggerName)){const Yc=Hr.previousTriggersValues.get(Gi.triggerName),aa=this.statesByElement.get(Gi.element);if(aa&&aa.has(Gi.triggerName)){const hp=aa.get(Gi.triggerName);hp.value=Yc,aa.set(Gi.triggerName,hp)}}return void an.destroy()}}const Pa=!hi||!this.driver.containsElement(hi,Pr),po=Tr.get(Pr),ql=Ki.get(Pr),wr=this._buildInstruction(Gi,Q,ql,po,Pa);if(wr.errors&&wr.errors.length)return void ra.push(wr);if(Pa)return an.onStart(()=>Oc(Pr,wr.fromStyles)),an.onDestroy(()=>Qo(Pr,wr.toStyles)),void dt.push(an);if(Gi.isFallbackTransition)return an.onStart(()=>Oc(Pr,wr.fromStyles)),an.onDestroy(()=>Qo(Pr,wr.toStyles)),void dt.push(an);const jf=[];wr.timelines.forEach(Hr=>{Hr.stretchStartingKeyframe=!0,this.disabledNodes.has(Hr.element)||jf.push(Hr)}),wr.timelines=jf,Q.append(Pr,wr.timelines);const cp={instruction:wr,player:an,element:Pr};Kt.push(cp),wr.queriedElements.forEach(Hr=>Fs(le,Hr,[]).push(an)),wr.preStyleProps.forEach((Hr,Yc)=>{if(Hr.size){let aa=xe.get(Yc);aa||xe.set(Yc,aa=new Set),Hr.forEach((hp,up)=>aa.add(up))}}),wr.postStyleProps.forEach((Hr,Yc)=>{let aa=Me.get(Yc);aa||Me.set(Yc,aa=new Set),Hr.forEach((hp,up)=>aa.add(up))})});if(ra.length){const Bi=[];ra.forEach(ji=>{Bi.push(function Xm(lt,s){return new t.\u0275RuntimeError(3505,!1)}(ji.triggerName,ji.errors))}),na.forEach(ji=>ji.destroy()),this.reportError(Bi)}const zs=new Map,sa=new Map;Kt.forEach(Bi=>{const ji=Bi.element;Q.has(ji)&&(sa.set(ji,ji),this._beforeAnimationBuild(Bi.player.namespaceId,Bi.instruction,zs))}),dt.forEach(Bi=>{const ji=Bi.element;this._getPreviousPlayers(ji,!1,Bi.namespaceId,Bi.triggerName,null).forEach(an=>{Fs(zs,ji,[]).push(an),an.destroy()})});const oa=Rn.filter(Bi=>Uu(Bi,xe,Me)),Aa=new Map;uf(Aa,this.driver,Ur,Me,Is).forEach(Bi=>{Uu(Bi,xe,Me)&&oa.push(Bi)});const Ta=new Map;Pi.forEach((Bi,ji)=>{uf(Ta,this.driver,new Set(Bi),xe,"!")}),oa.forEach(Bi=>{const ji=Aa.get(Bi),Gi=Ta.get(Bi);Aa.set(Bi,new Map([...Array.from(ji?.entries()??[]),...Array.from(Gi?.entries()??[])]))});const ho=[],uo=[],lp={};Kt.forEach(Bi=>{const{element:ji,player:Gi,instruction:an}=Bi;if(Q.has(ji)){if(oi.has(ji))return Gi.onDestroy(()=>Qo(ji,an.toStyles)),Gi.disabled=!0,Gi.overrideTotalTime(an.totalTime),void dt.push(Gi);let Pr=lp;if(sa.size>1){let po=ji;const ql=[];for(;po=po.parentNode;){const wr=sa.get(po);if(wr){Pr=wr;break}ql.push(po)}ql.forEach(wr=>sa.set(wr,Pr))}const Pa=this._buildAnimation(Gi.namespaceId,an,zs,It,Ta,Aa);if(Gi.setRealPlayer(Pa),Pr===lp)ho.push(Gi);else{const po=this.playersByElement.get(Pr);po&&po.length&&(Gi.parentPlayer=Ls(po)),dt.push(Gi)}}else Oc(ji,an.fromStyles),Gi.onDestroy(()=>Qo(ji,an.toStyles)),uo.push(Gi),oi.has(ji)&&dt.push(Gi)}),uo.forEach(Bi=>{const ji=It.get(Bi.element);if(ji&&ji.length){const Gi=Ls(ji);Bi.setRealPlayer(Gi)}}),dt.forEach(Bi=>{Bi.parentPlayer?Bi.syncPlayerEvents(Bi.parentPlayer):Bi.destroy()});for(let Bi=0;Bi!Pa.destroyed);Pr.length?lv(this,ji,Pr):this.processLeaveNode(ji)}return Rn.length=0,ho.forEach(Bi=>{this.players.push(Bi),Bi.onDone(()=>{Bi.destroy();const ji=this.players.indexOf(Bi);this.players.splice(ji,1)}),Bi.play()}),ho}elementContainsData(s,c){let Q=!1;const dt=c[Ao];return dt&&dt.setForRemoval&&(Q=!0),this.playersByElement.has(c)&&(Q=!0),this.playersByQueriedElement.has(c)&&(Q=!0),this.statesByElement.has(c)&&(Q=!0),this._fetchNamespace(s).elementContainsData(c)||Q}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,c,Q,dt,It){let Kt=[];if(c){const le=this.playersByQueriedElement.get(s);le&&(Kt=le)}else{const le=this.playersByElement.get(s);if(le){const xe=!It||It==Eh;le.forEach(Me=>{Me.queued||!xe&&Me.triggerName!=dt||Kt.push(Me)})}}return(Q||dt)&&(Kt=Kt.filter(le=>!(Q&&Q!=le.namespaceId||dt&&dt!=le.triggerName))),Kt}_beforeAnimationBuild(s,c,Q){const dt=c.triggerName,It=c.element,Kt=c.isRemovalTransition?void 0:s,le=c.isRemovalTransition?void 0:dt;for(const xe of c.timelines){const Me=xe.element,oi=Me!==It,hi=Fs(Q,Me,[]);this._getPreviousPlayers(Me,oi,Kt,le,c.toState).forEach(Pi=>{const Ki=Pi.getRealPlayer();Ki.beforeDestroy&&Ki.beforeDestroy(),Pi.destroy(),hi.push(Pi)})}Oc(It,c.fromStyles)}_buildAnimation(s,c,Q,dt,It,Kt){const le=c.triggerName,xe=c.element,Me=[],oi=new Set,hi=new Set,Li=c.timelines.map(Ki=>{const on=Ki.element;oi.add(on);const Rn=on[Ao];if(Rn&&Rn.removedBeforeQueried)return new kn(Ki.duration,Ki.delay);const Yn=on!==xe,Ur=function Kd(lt){const s=[];return Xg(lt,s),s}((Q.get(on)||sv).map(zs=>zs.getRealPlayer())).filter(zs=>{const sa=zs;return!!sa.element&&sa.element===on}),Tr=It.get(on),Wr=Kt.get(on),na=Td(this.driver,this._normalizer,0,Ki.keyframes,Tr,Wr),ra=this._buildPlayer(Ki,na,Ur);if(Ki.subTimeline&&dt&&hi.add(on),Yn){const zs=new cf(s,le,on);zs.setRealPlayer(ra),Me.push(zs)}return ra});Me.forEach(Ki=>{Fs(this.playersByQueriedElement,Ki.element,[]).push(Ki),Ki.onDone(()=>function ov(lt,s,c){let Q=lt.get(s);if(Q){if(Q.length){const dt=Q.indexOf(c);Q.splice(dt,1)}0==Q.length&<.delete(s)}return Q}(this.playersByQueriedElement,Ki.element,Ki))}),oi.forEach(Ki=>to(Ki,Eg));const Pi=Ls(Li);return Pi.onDestroy(()=>{oi.forEach(Ki=>Sh(Ki,Eg)),Qo(xe,c.toStyles)}),hi.forEach(Ki=>{Fs(dt,Ki,[]).push(Pi)}),Pi}_buildPlayer(s,c,Q){return c.length>0?this.driver.animate(s.element,c,s.duration,s.delay,s.easing,Q):new kn(s.duration,s.delay)}}class cf{constructor(s,c,Q){this.namespaceId=s,this.triggerName=c,this.element=Q,this._player=new kn,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((c,Q)=>{c.forEach(dt=>Pd(s,Q,void 0,dt))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const c=this._player;c.triggerCallback&&s.onStart(()=>c.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,c){Fs(this._queuedCallbacks,s,[]).push(c)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const c=this._player;c.triggerCallback&&c.triggerCallback(s)}}function To(lt){return lt&&1===lt.nodeType}function hf(lt,s){const c=lt.style.display;return lt.style.display=s??"none",c}function uf(lt,s,c,Q,dt){const It=[];c.forEach(xe=>It.push(hf(xe)));const Kt=[];Q.forEach((xe,Me)=>{const oi=new Map;xe.forEach(hi=>{const Li=s.computeStyle(Me,hi,dt);oi.set(hi,Li),(!Li||0==Li.length)&&(Me[Ao]=af,Kt.push(Me))}),lt.set(Me,oi)});let le=0;return c.forEach(xe=>hf(xe,It[le++])),Kt}function Gl(lt,s){const c=new Map;if(lt.forEach(le=>c.set(le,[])),0==s.length)return c;const dt=new Set(s),It=new Map;function Kt(le){if(!le)return 1;let xe=It.get(le);if(xe)return xe;const Me=le.parentNode;return xe=c.has(Me)?Me:dt.has(Me)?1:Kt(Me),It.set(le,xe),xe}return s.forEach(le=>{const xe=Kt(le);1!==xe&&c.get(xe).push(le)}),c}function to(lt,s){lt.classList?.add(s)}function Sh(lt,s){lt.classList?.remove(s)}function lv(lt,s,c){Ls(c).onDone(()=>lt.processLeaveNode(s))}function Xg(lt,s){for(let c=0;cdt.add(It)):s.set(lt,Q),c.delete(lt),!0}class Fc{constructor(s,c,Q){this.bodyNode=s,this._driver=c,this._normalizer=Q,this._triggerCache={},this.onRemovalComplete=(dt,It)=>{},this._transitionEngine=new Gg(s,c,Q),this._timelineEngine=new rv(s,c,Q),this._transitionEngine.onRemovalComplete=(dt,It)=>this.onRemovalComplete(dt,It)}registerTrigger(s,c,Q,dt,It){const Kt=s+"-"+dt;let le=this._triggerCache[Kt];if(!le){const xe=[],Me=[],oi=xh(this._driver,It,xe,Me);if(xe.length)throw function Gm(lt,s){return new t.\u0275RuntimeError(3404,!1)}();Me.length,le=function zg(lt,s,c){return new iv(lt,s,c)}(dt,oi,this._normalizer),this._triggerCache[Kt]=le}this._transitionEngine.registerTrigger(c,dt,le)}register(s,c){this._transitionEngine.register(s,c)}destroy(s,c){this._transitionEngine.destroy(s,c)}onInsert(s,c,Q,dt){this._transitionEngine.insertNode(s,c,Q,dt)}onRemove(s,c,Q,dt){this._transitionEngine.removeNode(s,c,dt||!1,Q)}disableAnimations(s,c){this._transitionEngine.markElementAsDisabled(s,c)}process(s,c,Q,dt){if("@"==Q.charAt(0)){const[It,Kt]=Gp(Q),le=dt;this._timelineEngine.command(It,c,Kt,le)}else this._transitionEngine.trigger(s,c,Q,dt)}listen(s,c,Q,dt,It){if("@"==Q.charAt(0)){const[Kt,le]=Gp(Q);return this._timelineEngine.listen(Kt,c,le,It)}return this._transitionEngine.listen(s,c,Q,dt,It)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}class Dh{constructor(s,c,Q){this._element=s,this._startStyles=c,this._endStyles=Q,this._state=0;let dt=Dh.initialStylesByElement.get(s);dt||Dh.initialStylesByElement.set(s,dt=new Map),this._initialStyles=dt}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Dh.initialStylesByElement.delete(this._element),this._startStyles&&(Oc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Oc(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}}function Wu(lt){let s=null;return lt.forEach((c,Q)=>{(function Kv(lt){return"display"===lt||"position"===lt})(Q)&&(s=s||new Map,s.set(Q,c))}),s}Dh.initialStylesByElement=new WeakMap;class df{constructor(s,c,Q,dt){this.element=s,this.keyframes=c,this.options=Q,this._specialStyles=dt,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=Q.duration,this._delay=Q.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const c=[];return s.forEach(Q=>{c.push(Object.fromEntries(Q))}),c}_triggerWebAnimation(s,c,Q){return s.animate(this._convertKeyframesToObject(c),Q)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Q,dt)=>{"offset"!==dt&&s.set(dt,this._finished?Q:Ud(this.element,dt))}),this.currentSnapshot=s}triggerCallback(s){const c="start"===s?this._onStartFns:this._onDoneFns;c.forEach(Q=>Q()),c.length=0}}class $g{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}matchesElement(s,c){return!1}containsElement(s,c){return Mu(s,c)}getParentElement(s){return Ld(s)}query(s,c,Q){return Nd(s,c,Q)}computeStyle(s,c,Q){return window.getComputedStyle(s)[c]}animate(s,c,Q,dt,It,Kt=[]){const xe={duration:Q,delay:dt,fill:0==dt?"both":"forwards"};It&&(xe.easing=It);const Me=new Map,oi=Kt.filter(Pi=>Pi instanceof df);(function Km(lt,s){return 0===lt||0===s})(Q,dt)&&oi.forEach(Pi=>{Pi.currentSnapshot.forEach((Ki,on)=>Me.set(on,Ki))});let hi=function Sg(lt){return lt.length?lt[0]instanceof Map?lt:lt.map(s=>Kp(s)):[]}(c).map(Pi=>Ul(Pi));hi=function Ym(lt,s,c){if(c.size&&s.length){let Q=s[0],dt=[];if(c.forEach((It,Kt)=>{Q.has(Kt)||dt.push(Kt),Q.set(Kt,It)}),dt.length)for(let It=1;ItKt.set(le,Ud(lt,le)))}}return s}(s,hi,Me);const Li=function Nc(lt,s){let c=null,Q=null;return Array.isArray(s)&&s.length?(c=Wu(s[0]),s.length>1&&(Q=Wu(s[s.length-1]))):s instanceof Map&&(c=Wu(s)),c||Q?new Dh(lt,c,Q):null}(s,hi);return new df(s,hi,xe,Li)}}class wl extends vc{constructor(s,c){super(),this._nextAnimationId=0;const Q={id:"0",encapsulation:t.ViewEncapsulation.None,styles:[],data:{animation:[]}};this._renderer=s.createRenderer(c.body,Q)}build(s){const c=this._nextAnimationId.toString();this._nextAnimationId++;const Q=Array.isArray(s)?pd(s):s;return Za(this._renderer,null,c,"register",[Q]),new Hu(c,this._renderer)}}wl.\u0275fac=function(s){return new(s||wl)(t.\u0275\u0275inject(t.RendererFactory2),t.\u0275\u0275inject(R.DOCUMENT))},wl.\u0275prov=t.\u0275\u0275defineInjectable({token:wl,factory:wl.\u0275fac});class Hu extends du{constructor(s,c){super(),this._id=s,this._renderer=c}create(s,c){return new Yd(this._id,s,c||{},this._renderer)}}class Yd{constructor(s,c,Q,dt){this.id=s,this.element=c,this._renderer=dt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Q)}_listen(s,c){return this._renderer.listen(this.element,`@@${this.id}:${s}`,c)}_command(s,...c){return Za(this._renderer,this.element,this.id,s,c)}onDone(s){this._listen("done",s)}onStart(s){this._listen("start",s)}onDestroy(s){this._listen("destroy",s)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(s){this._command("setPosition",s)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Za(lt,s,c,Q,dt){return lt.setProperty(s,`@@${c}:${Q}`,dt)}const Gu="@.disabled";class ea{constructor(s,c,Q){this.delegate=s,this.engine=c,this._zone=Q,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),c.onRemovalComplete=(dt,It)=>{const Kt=It?.parentNode(dt);Kt&&It.removeChild(Kt,dt)}}createRenderer(s,c){const dt=this.delegate.createRenderer(s,c);if(!(s&&c&&c.data&&c.data.animation)){let Me=this._rendererCache.get(dt);if(!Me){const oi=()=>this._rendererCache.delete(dt);Me=new Kg("",dt,this.engine,oi),this._rendererCache.set(dt,Me)}return Me}const It=c.id,Kt=c.id+"-"+this._currentId;this._currentId++,this.engine.register(Kt,s);const le=Me=>{Array.isArray(Me)?Me.forEach(le):this.engine.registerTrigger(It,Kt,s,Me.name,Me)};return c.data.animation.forEach(le),new Yg(this,Kt,dt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(s,c,Q){s>=0&&sc(Q)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(dt=>{const[It,Kt]=dt;It(Kt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([c,Q]))}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()}}ea.\u0275fac=function(s){return new(s||ea)(t.\u0275\u0275inject(t.RendererFactory2),t.\u0275\u0275inject(Fc),t.\u0275\u0275inject(t.NgZone))},ea.\u0275prov=t.\u0275\u0275defineInjectable({token:ea,factory:ea.\u0275fac});class Kg{constructor(s,c,Q,dt){this.namespaceId=s,this.delegate=c,this.engine=Q,this._onDestroy=dt,this.destroyNode=this.delegate.destroyNode?It=>c.destroyNode(It):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(s,c){return this.delegate.createElement(s,c)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,c){this.delegate.appendChild(s,c),this.engine.onInsert(this.namespaceId,c,s,!1)}insertBefore(s,c,Q,dt=!0){this.delegate.insertBefore(s,c,Q),this.engine.onInsert(this.namespaceId,c,s,dt)}removeChild(s,c,Q){this.engine.onRemove(this.namespaceId,c,this.delegate,Q)}selectRootElement(s,c){return this.delegate.selectRootElement(s,c)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,c,Q,dt){this.delegate.setAttribute(s,c,Q,dt)}removeAttribute(s,c,Q){this.delegate.removeAttribute(s,c,Q)}addClass(s,c){this.delegate.addClass(s,c)}removeClass(s,c){this.delegate.removeClass(s,c)}setStyle(s,c,Q,dt){this.delegate.setStyle(s,c,Q,dt)}removeStyle(s,c,Q){this.delegate.removeStyle(s,c,Q)}setProperty(s,c,Q){"@"==c.charAt(0)&&c==Gu?this.disableAnimations(s,!!Q):this.delegate.setProperty(s,c,Q)}setValue(s,c){this.delegate.setValue(s,c)}listen(s,c,Q){return this.delegate.listen(s,c,Q)}disableAnimations(s,c){this.engine.disableAnimations(s,c)}}class Yg extends Kg{constructor(s,c,Q,dt,It){super(c,Q,dt,It),this.factory=s,this.namespaceId=c}setProperty(s,c,Q){"@"==c.charAt(0)?"."==c.charAt(1)&&c==Gu?(Q=void 0===Q||!!Q,this.disableAnimations(s,Q)):this.engine.process(this.namespaceId,s,c.slice(1),Q):this.delegate.setProperty(s,c,Q)}listen(s,c,Q){if("@"==c.charAt(0)){const dt=function pf(lt){switch(lt){case"body":return document.body;case"document":return document;case"window":return window;default:return lt}}(s);let It=c.slice(1),Kt="";return"@"!=It.charAt(0)&&([It,Kt]=function Zg(lt){const s=lt.indexOf("."),c=lt.substring(0,s),Q=lt.slice(s+1);return[c,Q]}(It)),this.engine.listen(this.namespaceId,dt,It,Kt,le=>{const xe=le._data||-1;this.factory.scheduleListenerCallback(xe,Q,le)})}return this.delegate.listen(s,c,Q)}}class Mh extends Fc{constructor(s,c,Q,dt){super(s.body,c,Q)}ngOnDestroy(){this.flush()}}Mh.\u0275fac=function(s){return new(s||Mh)(t.\u0275\u0275inject(R.DOCUMENT),t.\u0275\u0275inject(Au),t.\u0275\u0275inject(Rc),t.\u0275\u0275inject(t.ApplicationRef))},Mh.\u0275prov=t.\u0275\u0275defineInjectable({token:Mh,factory:Mh.\u0275fac});const hv=[{provide:vc,useClass:wl},{provide:Rc,useFactory:function Ah(){return new Vg}},{provide:Fc,useClass:Mh},{provide:t.RendererFactory2,useFactory:function ff(lt,s,c){return new ea(lt,s,c)},deps:[pt.\u0275DomRendererFactory2,Fc,t.NgZone]}],Zd=[{provide:Au,useFactory:()=>new $g},{provide:t.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...hv],gf=[{provide:Au,useClass:Ns},{provide:t.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...hv];class Xl{static withConfig(s){return{ngModule:Xl,providers:s.disableAnimations?gf:Zd}}}Xl.\u0275fac=function(s){return new(s||Xl)},Xl.\u0275mod=t.\u0275\u0275defineNgModule({type:Xl}),Xl.\u0275inj=t.\u0275\u0275defineInjector({providers:Zd,imports:[pt.BrowserModule]});class Xu{}Xu.\u0275fac=function(s){return new(s||Xu)},Xu.\u0275mod=t.\u0275\u0275defineNgModule({type:Xu}),Xu.\u0275inj=t.\u0275\u0275defineInjector({providers:gf,imports:[pt.BrowserModule]});class El{constructor(){this.onToggleHeaderButton=new t.EventEmitter}toggleButton(s){this.onToggleHeaderButton.emit(s)}}El.\u0275fac=function(s){return new(s||El)},El.\u0275prov=t.\u0275\u0275defineInjectable({token:El,factory:El.\u0275fac,providedIn:"root"});class jc{constructor(s){this.el=s,this.tooltip="",this.tooltipEl=null,this.onHover=c=>this.showTooltip(c),this.onOut=c=>this.removeTooltip()}ngAfterViewInit(){this.el.nativeElement.addEventListener("mouseover",this.onHover),this.el.nativeElement.addEventListener("mouseout",this.onOut)}showTooltip(s){if(this.tooltipEl)return;this.createTooltip();const c=s.clientX,Q=s.clientY,dt=this.tooltipEl.offsetWidth,It=this.tooltipEl.offsetHeight;let xe=c,Me=Q;c+dt>window.innerWidth&&(xe=c-dt),Q+It>window.innerHeight&&(Me=Q-It),this.tooltipEl.style.left=xe+"px",this.tooltipEl.style.top=Me+"px"}removeTooltip(){this.tooltipEl&&(this.tooltipEl.parentNode.removeChild(this.tooltipEl),this.tooltipEl=null)}createTooltip(){this.removeTooltip(),this.tooltipEl=document.createElement("div"),this.tooltipEl.classList.add("dsw-tooltip"),this.tooltipEl.innerHTML=this.tooltip,document.body.appendChild(this.tooltipEl)}ngOnDestroy(){this.el.nativeElement.removeEventListener("mouseover",this.onHover),this.el.nativeElement.removeEventListener("mouseout",this.onOut),this.removeTooltip()}}function qd(lt,s){if(1<&&t.\u0275\u0275element(0,"img",6),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275property("tooltip",c.filtersTooltip)}}function uv(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",7),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onBackClick())}),t.\u0275\u0275element(1,"img",8),t.\u0275\u0275elementStart(2,"label"),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"i18n"),t.\u0275\u0275elementEnd()()}2<&&(t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,1,"back")))}function vf(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",7),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onResetClickFilterHandler())}),t.\u0275\u0275element(1,"img",9),t.\u0275\u0275elementStart(2,"label"),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"i18n"),t.\u0275\u0275elementEnd()()}2<&&(t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,1,"resetClickFilter")))}function qg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onClick("by6columns"))}),t.\u0275\u0275pipe(2,"i18n"),t.\u0275\u0275element(3,"img",11),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onClick("by5columns"))}),t.\u0275\u0275pipe(5,"i18n"),t.\u0275\u0275element(6,"img",12),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onClick("by4columns"))}),t.\u0275\u0275pipe(8,"i18n"),t.\u0275\u0275element(9,"img",13),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(10,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onClick("by3columns"))}),t.\u0275\u0275pipe(11,"i18n"),t.\u0275\u0275element(12,"img",14),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onClick("by2columns"))}),t.\u0275\u0275pipe(14,"i18n"),t.\u0275\u0275element(15,"img",15),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(16,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onClick("byRows"))}),t.\u0275\u0275pipe(17,"i18n"),t.\u0275\u0275element(18,"img",16),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(19,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.onClick("setDefault"))}),t.\u0275\u0275pipe(20,"i18n"),t.\u0275\u0275element(21,"img",18),t.\u0275\u0275elementStart(22,"label"),t.\u0275\u0275text(23),t.\u0275\u0275pipe(24,"i18n"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(25,"button",19),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.closeMobileFilter())}),t.\u0275\u0275element(26,"img",9),t.\u0275\u0275elementStart(27,"label"),t.\u0275\u0275text(28),t.\u0275\u0275pipe(29,"i18n"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275classProp("active",5===(null==c.widget?null:c.widget.viewSize)),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(2,21,"by6columns")),t.\u0275\u0275advance(3),t.\u0275\u0275classProp("active",4===(null==c.widget?null:c.widget.viewSize)),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(5,23,"by5columns")),t.\u0275\u0275advance(3),t.\u0275\u0275classProp("active",3===(null==c.widget?null:c.widget.viewSize)),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(8,25,"by4columns")),t.\u0275\u0275advance(3),t.\u0275\u0275classProp("active",2===(null==c.widget?null:c.widget.viewSize)),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(11,27,"by3columns")),t.\u0275\u0275advance(3),t.\u0275\u0275classProp("active",1===(null==c.widget?null:c.widget.viewSize)),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(14,29,"by2columns")),t.\u0275\u0275advance(3),t.\u0275\u0275classProp("active",0===(null==c.widget?null:c.widget.viewSize)),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(17,31,"byRows")),t.\u0275\u0275advance(3),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(20,33,"setDefault")),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(24,35,"refresh")),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(29,37,"close"))}}function dv(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"button",20),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.deleteWidgetClick())}),t.\u0275\u0275element(2,"img",21),t.\u0275\u0275elementStart(3,"label"),t.\u0275\u0275text(4,"Delete widget"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementContainerEnd()}}function pv(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(Kt.onClick(It.id))}),t.\u0275\u0275element(1,"img",26),t.\u0275\u0275elementStart(2,"label"),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd()()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("active",Q.widget[c.id]),t.\u0275\u0275property("title",c.tooltip),t.\u0275\u0275advance(1),t.\u0275\u0275property("src",c.icon,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.text)}}function fv(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.onClick("isLegend"))}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",27),t.\u0275\u0275elementStart(3,"label"),t.\u0275\u0275text(4,"Legend"),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("active",null==c.widget?null:c.widget.isLegend),t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(1,3,"showLegend"))}}function gv(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.onClick("showValues"))}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",28),t.\u0275\u0275elementStart(3,"label"),t.\u0275\u0275text(4,"Values"),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("active",null==c.widget?null:c.widget.showValues),t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(1,3,"showValues"))}}function Qg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.onClick("isTop"))}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",29),t.\u0275\u0275elementStart(3,"label"),t.\u0275\u0275text(4,"Top"),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("active",null==c.widget?null:c.widget.isTop),t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(1,3,"showTop"))}}function Jg(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.onClick("showZero"))}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",30),t.\u0275\u0275elementStart(3,"label"),t.\u0275\u0275text(4,"Zero"),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("active",null==c.widget?null:c.widget.showZero),t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(1,3,"showZero"))}}function tm(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.onClick("displayAsPivot"))}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",31),t.\u0275\u0275elementStart(3,"label"),t.\u0275\u0275text(4,"Pivot"),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("active","pivot"===(null==c.widget?null:c.widget.type)),t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(1,3,"showPivot"))}}function yf(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",17),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.onClick("chartConfig"))}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",32),t.\u0275\u0275elementStart(3,"label"),t.\u0275\u0275text(4,"Colors"),t.\u0275\u0275elementEnd()()}2<&&t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(1,1,"changeColors"))}function mv(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",33),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(dt.onClick("expand"))}),t.\u0275\u0275pipe(1,"i18n"),t.\u0275\u0275element(2,"img",34),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("active",null==c.widget?null:c.widget.isExpanded),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(1,4,"fullscreen"))("hidden",c.isEmptyWidget()||!(null!=c.widget&&c.widget.isSupported))}}function _f(lt,s){if(1<&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,pv,4,5,"button",22),t.\u0275\u0275template(2,fv,5,5,"button",23),t.\u0275\u0275template(3,gv,5,5,"button",23),t.\u0275\u0275template(4,Qg,5,5,"button",23),t.\u0275\u0275template(5,Jg,5,5,"button",23),t.\u0275\u0275template(6,tm,5,5,"button",23),t.\u0275\u0275template(7,yf,5,3,"button",24),t.\u0275\u0275template(8,mv,3,6,"button",25),t.\u0275\u0275elementContainerEnd()),2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==c.typeDesc?null:c.typeDesc.headerButtons),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=c.typeDesc&&c.typeDesc.disableLegend)&&(null==c.widget?null:c.widget.isChart)&&!c.widget.noToggleLegend),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.widget?null:c.widget.isBtnValues),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.widget?null:c.widget.isChart),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.widget?null:c.widget.isBtnZero),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==c.widget?null:c.widget.isChart)||(null==c.widget?null:c.widget.isMap)||"regular"===(null==c.widget?null:c.widget.type)||"regular"===(null==c.widget?null:c.widget.oldType)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==c.widget?null:c.widget.isChart)||"regular"===(null==c.widget?null:c.widget.type)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=c.widget&&c.widget.shared))}}jc.\u0275fac=function(s){return new(s||jc)(t.\u0275\u0275directiveInject(t.ElementRef))},jc.\u0275dir=t.\u0275\u0275defineDirective({type:jc,selectors:[["","tooltip",""]],inputs:{tooltip:"tooltip"}});class qa{constructor(s,c,Q,dt,It,Kt,le,xe,Me){this.ss=s,this.us=c,this.ws=Q,this.cd=dt,this.ns=It,this.fs=Kt,this.hs=le,this.eds=xe,this.route=Me,this.onButtonClick=new t.EventEmitter,this.onBack=new t.EventEmitter,this.onResetClickFilter=new t.EventEmitter,this.hasFilters=!1,this.filtersTooltip="",this.noDrag=!1,this.noDrag="1"===this.route.snapshot.queryParamMap.get("nodrag")}ngOnInit(){this.subFiltersChanged=this.fs.onFiltersChanged.subscribe(()=>{this.updateActiveFiltersInfo(),this.cd.detectChanges()}),this.updateActiveFiltersInfo()}updateActiveFiltersInfo(){var s;if(!this.widget||this.widget.type===q._.const.emptyWidgetClass)return;const c=this.fs.getWidgetFilters(null===(s=this.widget)||void 0===s?void 0:s.name).filter(Q=>""!==Q.value||Q.isInterval);this.hasFilters=!!c.length,this.filtersTooltip=c.map(Q=>Q.label+': '+Q.valueDisplay+"").join("\n")}loadButtons(){var s;this.widgetsSettings=this.ss.getWidgetsSettings(this.widget.dashboard)||{},this.loadToolbarButton(this.widgetsSettings,"isLegend"),this.loadToolbarButton(this.widgetsSettings,"isTop"),this.loadToolbarButton(this.widgetsSettings,"showZero"),this.loadToolbarButton(this.widgetsSettings,"showValues");const c=null===(s=this.typeDesc)||void 0===s?void 0:s.headerButtons;if(c)for(let Q=0;Q .drag-handle[_ngcontent-%COMP%]{position:absolute;inset:-20px -20px 0}[_nghost-%COMP%] button[_ngcontent-%COMP%]{z-index:1;flex:0 0 auto;cursor:pointer;background-color:transparent;border:none;padding-left:4px;padding-right:4px;margin:-3px 0 0;height:22px;display:flex;align-items:center;justify-content:center;transition:background-color .3s line-height;outline:none}[_nghost-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{opacity:var(--widget-header-btn-opacity);filter:var(--widget-header-btn-filter)}[_nghost-%COMP%] button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{opacity:var(--widget-header-btn-opacity);filter:var(--widget-header-btn-filter)}[_nghost-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--cl-header-btn-hover-darken)}[_nghost-%COMP%] button.active[_ngcontent-%COMP%] > img[_ngcontent-%COMP%], [_nghost-%COMP%] button.active[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{opacity:1;filter:var(--widget-header-btn-active-filter)}[_nghost-%COMP%] button[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:none}@media (max-width: 576px){[_nghost-%COMP%] button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;flex:1 1 100%}[_nghost-%COMP%] button[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:inline-block;font-size:13px;opacity:var(--widget-header-btn-opacity);filter:var(--widget-header-btn-filter)}[_nghost-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:calc(var(--header-height) * .5)}}@media (max-width: 576px){[_nghost-%COMP%]{order:3;height:var(--header-height);border-bottom:none;border-top:1px solid var(--cl-header-border)}}.drag-handle[_ngcontent-%COMP%]{cursor:move;flex:1 1 100%;display:flex;justify-content:center;align-items:center}.drag-handle.no-drag[_ngcontent-%COMP%], .drag-handle.expanded[_ngcontent-%COMP%]{cursor:default}button.btn-with-text[_ngcontent-%COMP%]{cursor:pointer;color:var(--cl-widget-header-txt);display:flex;align-items:center}button.btn-with-text[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:100%}button.btn-with-text[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:block;cursor:pointer}@media (max-width: 576px){button.btn-with-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;flex:1 1 100%}button.btn-with-text[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:inline-block;font-size:13px;opacity:var(--widget-header-btn-opacity);filter:var(--widget-header-btn-filter)}button.btn-with-text[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:calc(var(--header-height) * .5)}}.title-text[_ngcontent-%COMP%]{pointer-events:none;margin-left:0;margin-right:4px;font-size:14px;font-weight:700;z-index:2}@media (max-width: 576px){.title-text[_ngcontent-%COMP%]{display:none!important}}.divider[_ngcontent-%COMP%]{margin-left:auto}.btn-filters[_ngcontent-%COMP%]{pointer-events:auto;vertical-align:top}"]});var Qd=ht(9926);const vv=ht.n(Qd)();var Th=ht(6485);class Ph{constructor(s){this.el=s,this.inline=!1,this.range=!1,this.select=new t.EventEmitter,this.ignoreSelectEvent=!1}ngOnInit(){}ngAfterViewInit(){this.dp=new vv(this.el.nativeElement,{inline:this.inline,range:this.range,toggleSelected:!1,locale:Th.Z,onSelect:(s,c,Q)=>{this.ignoreSelectEvent||this.select.emit({date:s,formattedDate:c,datepicker:Q})}})}setDateRange(s,c){this.ignoreSelectEvent=!0,this.dp.clear(),this.dp.update({range:!!c}),this.dp.selectDate(s,{silent:!0}),c&&this.dp.selectDate(c,{silent:!0}),setTimeout(()=>{this.ignoreSelectEvent=!1})}}Ph.\u0275fac=function(s){return new(s||Ph)(t.\u0275\u0275directiveInject(t.ElementRef))},Ph.\u0275cmp=t.\u0275\u0275defineComponent({type:Ph,selectors:[["dsw-date-picker"]],inputs:{inline:"inline",range:"range"},outputs:{select:"select"},decls:0,vars:0,template:function(s,c){},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}"]});const em=["datePicker"];function xf(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",3),t.\u0275\u0275listener("click",function(){const dt=t.\u0275\u0275restoreView(c),It=dt.$implicit,Kt=dt.index,le=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(le.setFilter(It,Kt))}),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()}if(2<){const c=s.$implicit,Q=s.index,dt=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("selected",dt.curFilter===Q),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.label)}}class Vc{constructor(s){this.cd=s,this.filters=[{label:"Today",init:function(){const Q=new Date;this.dateFrom=Q}},{label:"This week",init:function(){const Q=new Date,dt=Q.getDate()-Q.getDay()+1,It=dt+6;this.dateFrom=new Date(Q.setDate(dt)),this.dateTo=new Date(Q.setDate(It))}},{label:"Last 30 days",init:function(){const Q=new Date,dt=(new Date).setDate(Q.getDate()-30);this.dateFrom=new Date(dt),this.dateTo=Q}},{label:"Last 3 months",init:function(){const Q=new Date,dt=(new Date).setMonth(Q.getMonth()-3);this.dateFrom=new Date(dt),this.dateTo=Q}},{label:"Last 6 months",init:function(){const Q=new Date,dt=(new Date).setMonth(Q.getMonth()-6);this.dateFrom=new Date(dt),this.dateTo=Q}},{label:"Last year",init:function(){const Q=new Date((new Date).getFullYear()-1,0,1);this.dateFrom=new Date(Q.getFullYear(),0,1),this.dateTo=new Date(Q.getFullYear(),11,31)}},{label:"This year (Jan - Today)",init:function(){const Q=new Date;this.dateFrom=new Date(Q.getFullYear(),0,1),this.dateTo=Q}},{label:"Custom",init:function(){this.dateFrom=new Date,this.dateTo=new Date}}],this.curFilter=this.filters.length-1,this.initialize()}initialize(){this.filters.forEach(s=>{s.init&&s.init()})}setFilter(s,c){this.curFilter=c,this.datePicker&&this.datePicker.setDateRange(s.dateFrom,s.dateTo)}onSelect(s){this.curFilter=this.filters.length-1,this.datePicker.dp.update({range:!0})}getValues(){const s=this.datePicker.dp.selectedDates;return s.length>1&&s[0].toDateString()===s[1].toDateString()&&s.pop(),s}setDateRange(s,c){this.datePicker.setDateRange(s,c);const Q=this.filters.findIndex(dt=>c?dt.dateFrom.toDateString()===s.toDateString()&&dt.dateTo.toDateString()===c.toDateString():dt.dateFrom.toDateString()===s.toDateString());-1!==Q&&(this.curFilter=Q),this.cd.detectChanges()}}Vc.\u0275fac=function(s){return new(s||Vc)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},Vc.\u0275cmp=t.\u0275\u0275defineComponent({type:Vc,selectors:[["dsw-date-filter"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(em,5),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.datePicker=Q.first)}},decls:4,vars:3,consts:[[3,"selected","click",4,"ngFor","ngForOf"],[3,"inline","range","select"],["datePicker",""],[3,"click"]],template:function(s,c){1&s&&(t.\u0275\u0275elementStart(0,"ul"),t.\u0275\u0275template(1,xf,2,3,"li",0),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"dsw-date-picker",1,2),t.\u0275\u0275listener("select",function(dt){return c.onSelect(dt)}),t.\u0275\u0275elementEnd()),2&s&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.filters),t.\u0275\u0275advance(1),t.\u0275\u0275property("inline",!0)("range",!0))},dependencies:[R.NgForOf,Ph],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{font-family:Roboto Condensed;font-size:14px;color:var(--cl-widget-filter-txt);display:flex;align-items:flex-start;overflow:auto}[_nghost-%COMP%]::-webkit-scrollbar{width:5px;height:8px;background-color:#eee}[_nghost-%COMP%]::-webkit-scrollbar-thumb{background:#aaa}ul[_ngcontent-%COMP%]{border-right:1px solid var(--cl-input-border);padding:20px;margin:0;list-style-type:none}li[_ngcontent-%COMP%]{white-space:nowrap;cursor:pointer}li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}li.selected[_ngcontent-%COMP%]{position:relative;color:var(--cl-accent)}li.selected[_ngcontent-%COMP%]:before{position:absolute;left:-20px;top:0;height:100%;width:2px;content:"";background-color:var(--cl-accent)}dsw-date-picker[_ngcontent-%COMP%] .air-datepicker{border:none}'],changeDetection:0});const Qa=["dateFilter"];function $u(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",17)(1,"span",18)(2,"input",19),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.model.isAll=dt)})("click",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.setAll(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"label",20),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"i18n"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"span",18)(7,"input",21),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.model.isExclude=dt)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"label",22),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"i18n"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(11,"span")(12,"input",23),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.model.isInterval=dt)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"label",24),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"i18n"),t.\u0275\u0275elementEnd()()()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",c.model.isInterval),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngModel",c.model.isAll),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(5,8,"all")),t.\u0275\u0275advance(2),t.\u0275\u0275property("hidden",c.model.isInterval),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngModel",c.model.isExclude),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(10,10,"exclude")),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngModel",c.model.isInterval),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(15,12,"interval"))}}function Vs(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"option",29),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit;t.\u0275\u0275property("ngValue",c.path),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.name)}}function Sl(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"option",29),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit;t.\u0275\u0275property("ngValue",c.path),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.name)}}function Jd(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",25)(1,"div")(2,"label"),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"select",26),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.model.from=dt)}),t.\u0275\u0275template(6,Vs,2,2,"option",27),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(7,"div")(8,"label"),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"select",28),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.model.to=dt)}),t.\u0275\u0275template(12,Sl,2,2,"option",27),t.\u0275\u0275elementEnd()()()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,6,"from")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",c.model.from),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.model.values),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(10,8,"to")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",c.model.to),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.model.values)}}function ia(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",30),t.\u0275\u0275listener("click",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(It.setAll(dt))}),t.\u0275\u0275element(1,"input",31),t.\u0275\u0275elementStart(2,"div"),t.\u0275\u0275text(3,"Default"),t.\u0275\u0275elementEnd()()}if(2<){const c=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("checked",c.model.isAll)}}function tp(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c.info)}}function Sa(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",30),t.\u0275\u0275listener("click",function(dt){const Kt=t.\u0275\u0275restoreView(c).$implicit,le=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(le.toggleRow(Kt,dt))}),t.\u0275\u0275elementStart(1,"input",32,33),t.\u0275\u0275listener("click",function(dt){const Kt=t.\u0275\u0275restoreView(c).$implicit,le=t.\u0275\u0275reference(2),xe=t.\u0275\u0275nextContext(2);return Kt.checked=le.checked,t.\u0275\u0275resetView(xe.onItemSelect(dt))}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div"),t.\u0275\u0275text(4),t.\u0275\u0275template(5,tp,2,1,"div",0),t.\u0275\u0275elementEnd()()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275classProp("readonly",Q.isRadio),t.\u0275\u0275property("type",Q.isRadio?"radio":"checkbox")("checked",c.checked),t.\u0275\u0275advance(2),t.\u0275\u0275classMap(c.default?"bold":""),t.\u0275\u0275classProp("selected",c.checked),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("",c.name," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.info)}}function zc(lt,s){1<&&(t.\u0275\u0275elementStart(0,"div",34),t.\u0275\u0275element(1,"img",35),t.\u0275\u0275elementEnd())}function Uc(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"div",7),t.\u0275\u0275element(2,"img",8),t.\u0275\u0275elementStart(3,"input",9,10),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.model.search=dt)})("search",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275reference(4),It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onSearch(dt.value))})("keyup",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275reference(4),It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onSearch(dt.value))})("keydown.enter",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(dt.searchFilters())}),t.\u0275\u0275pipe(5,"i18n"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(6,$u,16,14,"div",11),t.\u0275\u0275template(7,Jd,13,10,"div",12),t.\u0275\u0275elementStart(8,"div",13),t.\u0275\u0275template(9,ia,4,1,"div",14),t.\u0275\u0275template(10,Sa,6,10,"div",15),t.\u0275\u0275template(11,zc,2,0,"div",16),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementContainerEnd()}if(2<){const c=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275propertyInterpolate("placeholder",t.\u0275\u0275pipeBind1(5,9,"search")),t.\u0275\u0275property("ngModel",c.model.search),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",!c.isRadio),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.model.isInterval),t.\u0275\u0275advance(1),t.\u0275\u0275property("hidden",c.model.isInterval),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.hasDefault),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.model.values)("ngForTrackBy",c.trackByIndex),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",c.model.isLoading)}}function Ih(lt,s){1<&&t.\u0275\u0275element(0,"dsw-date-filter",null,36)}class Da{constructor(s,c,Q,dt,It,Kt,le,xe){this.ss=s,this.el=c,this.ds=Q,this.dbs=dt,this.fs=It,this.es=Kt,this.us=le,this.locale=xe,this.model={search:"",isLoading:!1,filter:null,values:[],isAll:!1,isExclude:!1,isInterval:!1,from:"",to:""},this.isRelatedFilters=!1,this.trackByIndex=(oi,hi)=>oi,this.datePipe=new R.DatePipe(xe);const Me=this.ss.getAppSettings();this.isRelatedFilters=void 0===Me.isRelatedFilters||Me.isRelatedFilters}get isDateFilter(){var s,c;return null===(c=null===(s=this.model)||void 0===s?void 0:s.filter)||void 0===c?void 0:c.isDate}get isRadio(){var s,c;return"radioSet"===(null===(s=this.model)||void 0===s?void 0:s.filter.type)||"applyVariable"===(null===(c=this.model)||void 0===c?void 0:c.filter.action)}get hasDefault(){var s,c;return"radioSet"===(null===(s=this.model)||void 0===s?void 0:s.filter.type)&&"applyVariable"!==(null===(c=this.model)||void 0===c?void 0:c.filter.action)}ngAfterViewInit(){var s;const c=null===(s=this.el)||void 0===s?void 0:s.nativeElement;if(!c)return;const Q=c.getBoundingClientRect(),dt=window.innerHeight;if(Q.top+Q.height>dt){const It=dt-Q.top,Kt=Q.top-26-4-4;if(dt-Q.top<200&&Kt>It){const le=dt-Q.top+30+4,xe=dt-le-Q.height;c.style.maxHeight=Q.height+xe-20+"px",c.style.top="",c.style.bottom=le+"px"}else{const le=Q.top+Q.height-dt;c.style.maxHeight=Q.height-le-20+"px"}}this.initializeDateFilter()}initialize(s,c,Q){this.widget=s,this.model.filter=c,!c.isDate&&this.isRelatedFilters?this.requestRelatedFilters():this.prepareFilters(),this.model.isAll=!this.isAnyChecked(),this.model.isExclude=c.isExclude,this.model.isInterval=c.isInterval}ngOnInit(){}requestRelatedFilters(){var s,c,Q;const dt=this.getDataSource();if(this.prepareFilters(),!dt)return;const Kt=this.fs.items;let le=Kt.filter(Me=>!Me.isInterval&&Me.targetProperty!==this.model.filter.targetProperty&&""!==Me.value);le.forEach(Me=>{Me.Value=Me.value,Me.isExclude&&(Me.Value=Me.Value.split("|").map(oi=>oi+".%NOT").join("|")),Me.isInterval&&(Me.Value=Me.Value.replace("|",":")),-1!==Me.value.indexOf("|")&&(Me.Value="{"+Me.Value.replace(/\|/g,",")+"}")}),le=le.map(Me=>({Filter:Me.targetProperty,Value:Me.Value})),(null===(Q=null===(c=null===(s=Kt.find(Me=>{var oi,hi;return Me.targetProperty===(null===(hi=null===(oi=this.model)||void 0===oi?void 0:oi.filter)||void 0===hi?void 0:hi.targetProperty)}))||void 0===s?void 0:s.values)||void 0===c?void 0:c.filter(Me=>!Me._saved))||void 0===Q||!Q.length)&&(this.model.isLoading=!0,this.ds.searchFilters("",dt,le,[this.model.filter.targetProperty]).catch(Me=>this.onError(Me,Me.status)).then(Me=>{this.onFilterValuesReceived(Me),this.onSearch("")}))}getDataSource(){var s;let c="";try{if(this.widget.type.toLowerCase()===q._.const.emptyWidgetClass){const Q=(null===(s=this.model.filter)||void 0===s?void 0:s.source)||"";c=this.dbs.getWidgets().filter(It=>It.name===Q)[0]?.dataSource||""}else c=this.widget.dataSource}catch{c=""}return c}prepareFilters(){this.fs.filtersChanged=!1,this.model.values=[];for(let s=0;sthis.onError(Q,Q.status)).then(Q=>{this.onFilterValuesReceived(Q),this.onSearch(c)}))}onFilterValuesReceived(s,c=!1){if(this.model.isLoading=!1,!s)return;const Q=s.children.filter(le=>le.path===this.model.filter.targetProperty);if(0===Q.length)return;const dt=Q[0];if(!dt.children||0===dt.children.length)return;let It=this.model.filter.values.slice();const Kt=[];dt.children.forEach(le=>{let xe=It.find(Me=>Me?.path===le?.path||!isNaN(le?.path)&&parseInt(Me?.path,10)===le?.path);xe?Object.assign(le,xe):Kt.push(le)}),this.model.filter.values.push(...Kt)}onError(s,c){this.model.isLoading=!1,this.es.show(`Error ${c.toString()}`)}removeFilter(){this.model.filter.isInterval=!1,delete this.model.filter.fromIdx,delete this.model.filter.toIdx;for(let s=0;ss.path===this.model.from),this.model.filter.toIdx=this.model.values.findIndex(s=>s.path===this.model.to)):(delete this.model.filter.from,delete this.model.filter.to),this.model.filter.isDate){this.model.filter.isInterval=!1,delete this.model.filter.from,delete this.model.filter.to;const s=this.dateFilter.getValues();this.model.filter.values=s.map(c=>{const Q=c.getFullYear()+"-"+("0"+(c.getMonth()+1)).slice(-2)+"-"+("0"+c.getDate()).slice(-2);return{name:this.datePipe.transform(c,"dd MMM yyyy"),path:`&[${Q}]`,checked:!0}}),2===s.length&&(this.model.filter.isInterval=!0,this.model.filter.fromIdx=0,this.model.filter.toIdx=1)}this.fs.applyFilter(this.model.filter),this.fs.filtersChanged=!0,this.close()}close(){this.$modal.close()}initializeDateFilter(){var s,c,Q,dt;if(null===(c=null===(s=this.model)||void 0===s?void 0:s.filter)||void 0===c||!c.isDate||!this.dateFilter)return;const It=null===(dt=null===(Q=this.model)||void 0===Q?void 0:Q.filter)||void 0===dt?void 0:dt.value;if(!It)return;let Kt=It.split("|").map(le=>this.createDate(le));this.dateFilter.setDateRange(Kt[0],Kt[1])}createDate(s){return this.us.toDate(s.replace("&[","").replace("]",""))}}Da.\u0275fac=function(s){return new(s||Da)(t.\u0275\u0275directiveInject(V.V),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(U.Do),t.\u0275\u0275directiveInject(rd.s),t.\u0275\u0275directiveInject(pc.i),t.\u0275\u0275directiveInject(hc.T),t.\u0275\u0275directiveInject(Mr.f),t.\u0275\u0275directiveInject(t.LOCALE_ID))},Da.\u0275cmp=t.\u0275\u0275defineComponent({type:Da,selectors:[["dsw-filter-popup"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(Qa,5),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.dateFilter=Q.first)}},hostVars:2,hostBindings:function(s,c){2&s&&t.\u0275\u0275classProp("date-filter",c.isDateFilter)},decls:15,vars:11,consts:[[4,"ngIf"],[1,"footer"],[1,"btn","default",3,"click"],["src","assets/img/icons/icon-check.svg",1,"ico","ico-accept"],[1,"btn",3,"click"],["src","assets/img/icons/icon-reload.svg",1,"ico","ico-accept"],["src","assets/img/icons/icon-close.svg",1,"ico","ico-close"],[1,"header"],["src","assets/img/icons/icon-search.svg"],["type","search","dswAutoFocus","desktop",3,"placeholder","ngModel","ngModelChange","search","keyup","keydown.enter"],["sr",""],["class","checks-container",4,"ngIf"],["class","interval-container",4,"ngIf"],[1,"values-list",3,"hidden"],["class","value-row",3,"click",4,"ngIf"],["class","value-row",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["class","spinner",4,"ngIf"],[1,"checks-container"],[3,"hidden"],["id","all","type","checkbox",3,"ngModel","ngModelChange","click"],["for","all"],["id","exclude","type","checkbox",3,"ngModel","ngModelChange"],["for","exclude"],["id","interval","type","checkbox",3,"ngModel","ngModelChange"],["for","interval"],[1,"interval-container"],[3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"ngValue"],[1,"value-row",3,"click"],["type","radio","name","filter-item",3,"checked"],["name","filter-item",3,"type","checked","click"],["inp",""],[1,"spinner"],["src","assets/img/spinner.svg"],["dateFilter",""]],template:function(s,c){1&s&&(t.\u0275\u0275template(0,Uc,12,11,"ng-container",0),t.\u0275\u0275template(1,Ih,2,0,"dsw-date-filter",0),t.\u0275\u0275elementStart(2,"div",1)(3,"button",2),t.\u0275\u0275listener("click",function(){return c.acceptFilter()}),t.\u0275\u0275element(4,"img",3),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"button",4),t.\u0275\u0275listener("click",function(){return c.removeFilter()}),t.\u0275\u0275element(8,"img",5),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"i18n"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"button",4),t.\u0275\u0275listener("click",function(){return c.close()}),t.\u0275\u0275element(12,"img",6),t.\u0275\u0275text(13),t.\u0275\u0275pipe(14,"i18n"),t.\u0275\u0275elementEnd()()),2&s&&(t.\u0275\u0275property("ngIf",!(null!=c.model&&null!=c.model.filter&&c.model.filter.isDate)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==c.model||null==c.model.filter?null:c.model.filter.isDate),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,5,"accept")," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(10,7,"dismiss")," "),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(14,9,"close")," "))},dependencies:[R.NgForOf,R.NgIf,Dr,fs,a,I,kr,He,gn,rr,Vc,G.C],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:absolute;-webkit-user-select:none;user-select:none;display:flex;flex-direction:column;width:340px;background-color:var(--cl-widget-filter-bg);filter:drop-shadow(0px 0px 10px rgba(0,0,0,.1));border-radius:10px;padding:20px 20px 63px}@media (max-width: 576px){[_nghost-%COMP%]{left:0!important;width:100vw;display:flex;flex-direction:column;padding-top:4px}}.date-filter[_nghost-%COMP%]{padding:0 0 45px;width:auto}.header[_ngcontent-%COMP%]{position:relative;margin-bottom:10px}.header[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{position:absolute;pointer-events:none;top:5px}.header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{width:100%;border:none;color:#606367;height:24px;border-bottom:1px solid #EBEBEA;padding-left:16px;border-radius:0}.header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus, .header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:active{border:none;border-bottom:1px solid var(--cl-accent);outline:none}.values-list[_ngcontent-%COMP%]{overflow:auto;max-height:280px;color:var(--cl-txt)}.value-row[_ngcontent-%COMP%]{display:flex;padding:5px 0;cursor:pointer;align-items:center;color:var(--cl-widget-filter-txt)}.value-row[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover);color:var(--cl-header-txt)}@media (max-width: 576px){.value-row[_ngcontent-%COMP%]{padding:0;display:flex}}.value-row[_ngcontent-%COMP%] > div.selected[_ngcontent-%COMP%]{color:var(--cl-accent)}input[type=search][_ngcontent-%COMP%]{width:116px}@media (max-width: 576px){input[type=search][_ngcontent-%COMP%]{width:100%;height:calc(100% - 8px);background-color:transparent;border:none;box-shadow:none}}input[_ngcontent-%COMP%]:focus{outline:1px solid var(--cl-accent);outline-offset:-1px}input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{flex-grow:0;margin-right:5px}input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{cursor:pointer}input[type=checkbox][_ngcontent-%COMP%]:focus, input[type=radio][_ngcontent-%COMP%]:focus{outline:none}@media (max-width: 576px){input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{height:34px;margin-right:4px;margin-left:4px}}.checks-container[_ngcontent-%COMP%]{color:var(--cl-widget-filter-txt);display:flex;padding-bottom:12px}.checks-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;margin-right:12px;align-items:center}.ico[_ngcontent-%COMP%]{opacity:.7;vertical-align:middle}.spinner[_ngcontent-%COMP%]{display:flex;justify-content:center}.interval-container[_ngcontent-%COMP%]{padding:4px;color:var(--cl-txt)}.interval-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:10px}.readonly[_ngcontent-%COMP%]{pointer-events:none}.footer[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:100%;display:flex;justify-content:flex-end;border-top:1px solid #EBEBEA}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]{height:44px;padding:0 10px;border:none;box-shadow:none;background:transparent;color:#606367;display:flex;align-items:center;transition:filter .3s linear}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:6px}.footer[_ngcontent-%COMP%] > .btn.default[_ngcontent-%COMP%]{color:var(--cl-accent)}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:hover{filter:contrast(3)}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:focus, .footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:active{border:none;outline:none}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:last-child{padding-right:20px}"]});const Wc=["filterPopup"];function Hc(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",2)(1,"label"),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"input",3),t.\u0275\u0275listener("ngModelChange",function(dt){const Kt=t.\u0275\u0275restoreView(c).$implicit;return t.\u0275\u0275resetView(Kt.value=dt)})("keydown.enter",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.emitVarChange(It))}),t.\u0275\u0275elementEnd()()}if(2<){const c=s.$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.label),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngModel",c.value)}}function Oh(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"option",8),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit;t.\u0275\u0275property("ngValue",c),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(c)}}function kh(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"select",6),t.\u0275\u0275listener("ngModelChange",function(dt){t.\u0275\u0275restoreView(c);const It=t.\u0275\u0275nextContext().$implicit;return t.\u0275\u0275resetView(It.dsSelected=dt)})("change",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275nextContext().$implicit,It=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(It.onDataSourceChangeHandler(dt))}),t.\u0275\u0275template(1,Oh,2,2,"option",7),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("ngModel",c.dsSelected),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.labels)}}function Cf(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",9,10),t.\u0275\u0275listener("keydown.enter",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275reference(1);return t.\u0275\u0275resetView(dt.blur())})("change",function(){t.\u0275\u0275restoreView(c);const dt=t.\u0275\u0275reference(1),It=t.\u0275\u0275nextContext().$implicit,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.setControlValue(It,dt.value,dt))}),t.\u0275\u0275elementEnd()}if(2<){const c=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275property("type",c.type)("value",c._value)}}function bf(lt,s){if(1<&&(t.\u0275\u0275elementStart(0,"span",2)(1,"label"),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,kh,2,2,"select",4),t.\u0275\u0275template(4,Cf,2,2,"input",5),t.\u0275\u0275elementEnd()),2<){const c=s.$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.label),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","select"===c.field),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","input"===c.field)}}function wf(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",2)(1,"button",11),t.\u0275\u0275listener("click",function(){const It=t.\u0275\u0275restoreView(c).$implicit,Kt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Kt.performAction(It))}),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd()()}if(2<){const c=s.$implicit;t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.label||c.action)}}function Lh(lt,s){if(1<){const c=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",2)(1,"label"),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"input",12),t.\u0275\u0275listener("click",function(dt){const Kt=t.\u0275\u0275restoreView(c).$implicit,le=t.\u0275\u0275nextContext();return Kt.isOpen=!0,t.\u0275\u0275resetView(le.toggleFilter(Kt.idx,dt))}),t.\u0275\u0275elementEnd()()}if(2<){const c=s.$implicit,Q=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("active",Q.openedFilter===c.idx),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(c.label),t.\u0275\u0275advance(1),t.\u0275\u0275propertyInterpolate("value",c.text),t.\u0275\u0275propertyInterpolate("title",c.text)}}class Gc{constructor(s,c,Q,dt,It,Kt,le){this.fs=s,this.r2=c,this.ms=Q,this.el=dt,this.us=It,this.bs=Kt,this.cd=le,this.onVariable=new t.EventEmitter,this.onDataSource=new t.EventEmitter,this.onAction=new t.EventEmitter,this.onFilter=new t.EventEmitter,this.openedFilter=-1}get colCount2(){var s;return 1===(null===(s=this.widget)||void 0===s?void 0:s.viewSize)}get colCount3(){var s;return 2===(null===(s=this.widget)||void 0===s?void 0:s.viewSize)}get colCount4(){var s;return 3===(null===(s=this.widget)||void 0===s?void 0:s.viewSize)}get colCount5(){var s;return 4===(null===(s=this.widget)||void 0===s?void 0:s.viewSize)}get colCount6(){var s;return 5===(null===(s=this.widget)||void 0===s?void 0:s.viewSize)}get colCount1(){var s;return 0===(null===(s=this.widget)||void 0===s?void 0:s.viewSize)}ngOnInit(){}emitVarChange(s){this.onVariable.emit(s)}onDataSourceChangeHandler(s){this.onDataSource.emit(s)}performAction(s){this.onAction.emit(s)}toggleFilter(s,c){const Q=this.fs.getFilter(s);if(!Q)return;this.openedFilter=s;const It=c.target.getBoundingClientRect();let Kt=It.x-4;const le=It.y+It.height+4,xe=Q.isDate?420:340;Kt+xe>window.innerWidth&&(Kt=It.x+It.width-xe);const Me=this.us.isMobile();let oi;if(Me){const hi=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-height"),10);oi=window.document.body.offsetHeight-hi-this.el.nativeElement.offsetHeight}this.ms.show({component:Da,hideBackdrop:!0,closeByEsc:!0,closeByBackdropClick:!0,buttons:[],noPadding:!0,componentStyles:{position:"absolute",left:Kt+"px",top:le+"px",height:Me?`${oi}px`:void 0},onComponentInit:hi=>{hi.initialize(this.widget,Q,this.widget.dataSource)},onClose:()=>{this.openedFilter=-1,this.cd.detectChanges()}})}setControlValue(s,c,Q){const dt=parseInt(c,10);isNaN(dt)||0===dt?(delete s._value,Q.value=""):s._value=c,this.bs.broadcast("refresh:"+this.widget.name)}}Gc.\u0275fac=function(s){return new(s||Gc)(t.\u0275\u0275directiveInject(pc.i),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(Ys),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Mr.f),t.\u0275\u0275directiveInject(nu.M),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},Gc.\u0275cmp=t.\u0275\u0275defineComponent({type:Gc,selectors:[["dsw-widget-filter"]],viewQuery:function(s,c){if(1&s&&t.\u0275\u0275viewQuery(Wc,7,t.ViewContainerRef),2&s){let Q;t.\u0275\u0275queryRefresh(Q=t.\u0275\u0275loadQuery())&&(c.filterPopup=Q.first)}},hostVars:12,hostBindings:function(s,c){2&s&&t.\u0275\u0275classProp("col-2",c.colCount2)("col-3",c.colCount3)("col-4",c.colCount4)("col-5",c.colCount5)("col-6",c.colCount6)("col-1",c.colCount1)},inputs:{widget:"widget",filters:"filters"},outputs:{onVariable:"onVariable",onDataSource:"onDataSource",onAction:"onAction",onFilter:"onFilter"},decls:4,vars:4,consts:[["class","flt-holder",4,"ngFor","ngForOf"],["class","flt-holder",3,"active",4,"ngFor","ngForOf"],[1,"flt-holder"],[3,"ngModel","ngModelChange","keydown.enter"],[3,"ngModel","ngModelChange","change",4,"ngIf"],[3,"type","value","keydown.enter","change",4,"ngIf"],[3,"ngModel","ngModelChange","change"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[3,"type","value","keydown.enter","change"],["inp",""],[1,"btn-round",3,"click"],["readonly","","type","text",3,"value","title","click"]],template:function(s,c){1&s&&(t.\u0275\u0275template(0,Hc,4,2,"span",0),t.\u0275\u0275template(1,bf,5,3,"span",0),t.\u0275\u0275template(2,wf,3,1,"span",0),t.\u0275\u0275template(3,Lh,4,5,"span",1)),2&s&&(t.\u0275\u0275property("ngForOf",null==c.widget?null:c.widget.pvItems),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==c.widget?null:c.widget.dsItems),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==c.widget?null:c.widget.acItems),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",c.filters))},dependencies:[R.NgForOf,R.NgIf,Dr,fs,a,kr,He,gn],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative;display:flex;flex-shrink:0;background:var(--cl-widget-filter-bg);height:auto;flex-wrap:wrap;margin-bottom:5px}.col-1[_nghost-%COMP%], .col-2[_nghost-%COMP%], .col-3[_nghost-%COMP%], .col-4[_nghost-%COMP%], .col-5[_nghost-%COMP%], .col-6[_nghost-%COMP%]{display:grid;gap:10px}.col-1[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-2[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-3[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-4[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-5[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-6[_nghost-%COMP%] > span[_ngcontent-%COMP%]{width:100%;padding:0}.col-1[_nghost-%COMP%]{grid-template-columns:1fr}.col-2[_nghost-%COMP%]{grid-template-columns:1fr 1fr}.col-3[_nghost-%COMP%]{grid-template-columns:1fr 1fr 1fr}.col-4[_nghost-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr}.col-5[_nghost-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.col-6[_nghost-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.flt-holder[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;padding:2px 4px}.flt-holder[_ngcontent-%COMP%]:first-child{padding-left:0}.flt-holder[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{font-size:12px;color:var(--cl-widget-filter-txt);margin-bottom:4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.flt-holder[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .flt-holder[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{cursor:pointer;height:26px;padding:0 10px;border:1px solid #EBEBEA;border-radius:13px;box-shadow:none}.flt-holder[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus, .flt-holder[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]:focus{outline:none;outline-offset:-1px}@media (max-width: 576px){.flt-holder[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .flt-holder[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{height:34px}}.flt-holder.active[_ngcontent-%COMP%]{background-color:var(--cl-widget-filter-bg)}.flt-holder.active[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .flt-holder.active[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{border-color:var(--cl-accent)}@media (max-width: 576px){.flt-holder[_ngcontent-%COMP%]{width:auto!important;flex:1 1 25%!important}}.input-group[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]});var ep=ht(9770),Ef=ht(2843),Sf=ht(7272),Ku=ht(5032);const Dl=new k.y(Ku.Z);var Rh=ht(4033);const nm={connector:()=>new kt.x};function ip(lt,s=nm){const{connector:c}=s;return(0,ns.e)((Q,dt)=>{const It=c();(0,w.Xf)(lt(function im(lt){return new k.y(s=>lt.subscribe(s))}(It))).subscribe(dt),dt.add(Q.subscribe(It))})}function _v(lt){return lt?s=>ip(lt)(s):s=>function np(lt,s){const c=(0,Ve.m)(lt)?lt:()=>lt;return(0,Ve.m)(s)?ip(s,{connector:c}):Q=>new Rh.c(Q,c)}(new kt.x)(s)}var Ma=ht(5698);var Po=ht(9718);function Df(lt,s){return s?c=>(0,Sf.z)(s.pipe((0,Ma.q)(1),function rp(){return(0,ns.e)((lt,s)=>{lt.subscribe((0,y.x)(s,Ku.Z))})}()),c.pipe(Df(lt))):(0,ne.z)((c,Q)=>(0,w.Xf)(lt(c,Q)).pipe((0,Ma.q)(1),(0,Po.h)(c)))}const Kl="Service workers are disabled or not supported by this browser";class Fh{constructor(s){if(this.serviceWorker=s,s){const Q=ln(s,"controllerchange").pipe((0,S.U)(()=>s.controller)),dt=(0,ep.P)(()=>(0,ch.of)(s.controller)),It=(0,Sf.z)(dt,Q);this.worker=It.pipe((0,Zr.h)(oi=>!!oi)),this.registration=this.worker.pipe((0,za.w)(()=>s.getRegistration()));const Me=ln(s,"message").pipe((0,S.U)(oi=>oi.data)).pipe((0,Zr.h)(oi=>oi&&oi.type)).pipe(_v());Me.connect(),this.events=Me}else this.worker=this.events=this.registration=function Mf(lt){return(0,ep.P)(()=>(0,Ef._)(new Error(lt)))}(Kl)}postMessage(s,c){return this.worker.pipe((0,Ma.q)(1),(0,nl.b)(Q=>{Q.postMessage({action:s,...c})})).toPromise().then(()=>{})}postMessageWithOperation(s,c,Q){const dt=this.waitForOperationCompleted(Q),It=this.postMessage(s,c);return Promise.all([It,dt]).then(([,Kt])=>Kt)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(s){let c;return c="string"==typeof s?Q=>Q.type===s:Q=>s.includes(Q.type),this.events.pipe((0,Zr.h)(c))}nextEventOfType(s){return this.eventsOfType(s).pipe((0,Ma.q)(1))}waitForOperationCompleted(s){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Zr.h)(c=>c.nonce===s),(0,Ma.q)(1),(0,S.U)(c=>{if(void 0!==c.result)return c.result;throw new Error(c.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}class Yl{get isEnabled(){return this.sw.isEnabled}constructor(s){if(this.sw=s,this.pushManager=null,this.subscriptionChanges=new kt.x,!s.isEnabled)return this.messages=Dl,this.notificationClicks=Dl,void(this.subscription=Dl);this.messages=this.sw.eventsOfType("PUSH").pipe((0,S.U)(Q=>Q.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,S.U)(Q=>Q.data)),this.pushManager=this.sw.registration.pipe((0,S.U)(Q=>Q.pushManager));const c=this.pushManager.pipe((0,za.w)(Q=>Q.getSubscription()));this.subscription=(0,On.T)(c,this.subscriptionChanges)}requestSubscription(s){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(Kl));const c={userVisibleOnly:!0};let Q=this.decodeBase64(s.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),dt=new Uint8Array(new ArrayBuffer(Q.length));for(let It=0;ItIt.subscribe(c)),(0,Ma.q)(1)).toPromise().then(It=>(this.subscriptionChanges.next(It),It))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(Kl));return this.subscription.pipe((0,Ma.q)(1),(0,za.w)(c=>{if(null===c)throw new Error("Not subscribed to push notifications.");return c.unsubscribe().then(Q=>{if(!Q)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise()}decodeBase64(s){return atob(s)}}Yl.\u0275fac=function(s){return new(s||Yl)(t.\u0275\u0275inject(Fh))},Yl.\u0275prov=t.\u0275\u0275defineInjectable({token:Yl,factory:Yl.\u0275fac});class Xc{get isEnabled(){return this.sw.isEnabled}constructor(s){if(this.sw=s,!s.isEnabled)return this.versionUpdates=Dl,this.available=Dl,this.activated=Dl,void(this.unrecoverable=Dl);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,Zr.h)(c=>"VERSION_READY"===c.type),(0,S.U)(c=>({type:"UPDATE_AVAILABLE",current:c.currentVersion,available:c.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Kl));const s=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:s},s)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Kl));const s=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:s},s)}}Xc.\u0275fac=function(s){return new(s||Xc)(t.\u0275\u0275inject(Fh))},Xc.\u0275prov=t.\u0275\u0275defineInjectable({token:Xc,factory:Xc.\u0275fac});class op{}const Ml=new t.InjectionToken("NGSW_REGISTER_SCRIPT");function Af(lt,s,c,Q){return()=>{if(!(0,R.isPlatformBrowser)(Q)||!("serviceWorker"in navigator)||!1===c.enabled)return;let dt;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof c.registrationStrategy)dt=c.registrationStrategy();else{const[Kt,...le]=(c.registrationStrategy||"registerWhenStable:30000").split(":");switch(Kt){case"registerImmediately":dt=(0,ch.of)(null);break;case"registerWithDelay":dt=rm(+le[0]||0);break;case"registerWhenStable":dt=le[0]?(0,On.T)(Tf(lt),rm(+le[0])):Tf(lt);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${c.registrationStrategy}`)}}lt.get(t.NgZone).runOutsideAngular(()=>dt.pipe((0,Ma.q)(1)).subscribe(()=>navigator.serviceWorker.register(s,{scope:c.scope}).catch(Kt=>console.error("Service worker registration failed with:",Kt))))}}function rm(lt){return(0,ch.of)(null).pipe(function sp(lt,s=Br.z){const c=(0,mo.H)(lt,s);return Df(()=>c)}(lt))}function Tf(lt){return lt.get(t.ApplicationRef).isStable.pipe((0,Zr.h)(c=>c))}function Zl(lt,s){return new Fh((0,R.isPlatformBrowser)(s)&&!1!==lt.enabled?navigator.serviceWorker:void 0)}class Al{static register(s,c={}){return{ngModule:Al,providers:[{provide:Ml,useValue:s},{provide:op,useValue:c},{provide:Fh,useFactory:Zl,deps:[op,t.PLATFORM_ID]},{provide:t.APP_INITIALIZER,useFactory:Af,deps:[t.Injector,Ml,op,t.PLATFORM_ID],multi:!0}]}}}Al.\u0275fac=function(s){return new(s||Al)},Al.\u0275mod=t.\u0275\u0275defineNgModule({type:Al}),Al.\u0275inj=t.\u0275\u0275defineInjector({providers:[Yl,Xc]});var sm=ht(2340),$c=ht(6150),om=ht(2407),am=ht.n(om),Pf=ht(217),Nh=ht.n(Pf),If=ht(2586),ap=ht.n(If),Of=ht(2112),kf=ht.n(Of),Lf=ht(780),Rf=ht.n(Lf),Ff=ht(3461),Nf=ht.n(Ff);am()($c),Nh()($c),ap()($c),Nf()($c),kf()($c),Rf()($c);class Io{}Io.\u0275fac=function(s){return new(s||Io)},Io.\u0275mod=t.\u0275\u0275defineNgModule({type:Io,bootstrap:[ao]}),Io.\u0275inj=t.\u0275\u0275defineInjector({providers:[G.D,U.Do,Ed.H,Wa,{provide:t.APP_INITIALIZER,useFactory:lt=>()=>lt.initialize(),deps:[Ed.H],multi:!0}],imports:[Xl,ba.IX,pt.BrowserModule,Ei,qn,Fo,mc,Mc.JF,Al.register("ngsw-worker.js",{enabled:sm.N.production}),lh]}),t.\u0275\u0275setComponentScope(Ll,function(){return[R.NgIf,qa,Gc]},[]),t.\u0275\u0275setComponentScope(Cd.m,function(){return[R.NgForOf,jl,Ps]},function(){return[G.C]}),t.\u0275\u0275setComponentScope(Zs,function(){return[R.NgIf,He,Gn,gn,Ps,Kn]},[]),t.\u0275\u0275setComponentScope(Ca,function(){return[R.NgIf,_e,He,Gn,gn,Ps,Kn]},[])},5526:(Jt,$t,ht)=>{"use strict";ht.d($t,{m:()=>Z});var pt=ht(6150),Y=ht(1571),q=ht(5613),O=ht(1188),U=ht(2544);function G($,W){if(1&$){const V=Y.\u0275\u0275getCurrentView();Y.\u0275\u0275elementStart(0,"span",3)(1,"input",7),Y.\u0275\u0275listener("colorPickerChange",function(P){const E=Y.\u0275\u0275restoreView(V).index,w=Y.\u0275\u0275nextContext();return Y.\u0275\u0275resetView(w.model.themeColors.hcColors[E]=P)})("colorPickerChange",function(){Y.\u0275\u0275restoreView(V);const P=Y.\u0275\u0275nextContext();return Y.\u0275\u0275resetView(P.update())}),Y.\u0275\u0275elementEnd()()}if(2&$){const V=W.index,R=Y.\u0275\u0275nextContext();Y.\u0275\u0275property("hidden",(null==R.appearance?null:R.appearance.showSeries)&&!1===(null==R.appearance?null:R.appearance.showSeries[V])),Y.\u0275\u0275advance(1),Y.\u0275\u0275styleProp("background",R.model.themeColors.hcColors[V]),Y.\u0275\u0275property("colorPicker",R.model.themeColors.hcColors[V])}}class Z{constructor(W,V,R,P){this.sbs=W,this.ss=V,this.cd=R,this.bs=P,this.isApplied=!1,this.isChanged=!1,this.model={themeColors:{hcColors:[],hcTextColor:"",hcBackground:"",hcLineColor:"",hcBorderColor:""}}}ngOnInit(){const W=this.ss.getAppSettings();if(this.key=W.theme||"",this.widgetSettings){const V=this.widgetSettings.themeColors[this.key];V&&(this.model.themeColors=JSON.parse(JSON.stringify(V)))}else W.themeColors[this.key]&&(this.globalOriginalColors=JSON.parse(JSON.stringify(W.themeColors[this.key]))),W.themeColors[this.key]?this.model.themeColors=W.themeColors[this.key]:W.themeColors[this.key]=this.model.themeColors;this.initColors()}ngOnDestroy(){this.isApplied||this.restoreColors()}onCancel(){this.sbs.showComponent(null)}onApply(){if(this.isApplied=!0,this.onSave)this.isChanged&&(this.widgetSettings.themeColors[this.key]=this.model.themeColors),this.onSave();else{const W=this.ss.getAppSettings();W.themeColors[this.key]=this.model.themeColors,this.ss.setAppSettings(W)}this.sbs.showComponent(null)}update(){this.isChanged=!0,this.onUpdate?this.onUpdate(this.model.themeColors):this.bs.broadcast("charts:update-colors",this.model.themeColors)}initColors(){const W=this.model.themeColors,V=this.getDefaultColors();(!W.hcColors||0===W.hcColors.length)&&(W.hcColors=V.hcColors),W.hcTextColor||(W.hcTextColor=V.hcTextColor),W.hcBackground||(W.hcBackground=V.hcBackground),W.hcBorderColor||(W.hcBorderColor=V.hcBorderColor),W.hcLineColor||(W.hcLineColor=V.hcLineColor),this.originalColors=JSON.parse(JSON.stringify(W))}byIndex(W,V){return W}restoreColors(){if(this.widgetSettings)this.widgetSettings.themeColors[this.key]=this.originalColors;else{this.ss.getAppSettings().themeColors[this.key]=this.globalOriginalColors}this.onUpdate?this.onUpdate(this.originalColors):this.bs.broadcast("charts:update-colors",this.originalColors)}getDefaultColors(){const W=pt.getOptions();return{hcColors:W.colors.slice(),hcBackground:W.chart.backgroundColor,hcTextColor:W.labels.style.color,hcBorderColor:null,hcLineColor:"#e6e6e6"}}resetToDefault(){var W;const V=this.getDefaultColors();this.model.themeColors.hcLineColor=V.hcLineColor,this.model.themeColors.hcBorderColor=V.hcBorderColor,this.model.themeColors.hcBackground=V.hcBackground,this.model.themeColors.hcTextColor=V.hcTextColor,this.model.themeColors.hcColors=V.hcColors,(null===(W=this.widgetSettings)||void 0===W?void 0:W.themeColors[this.key])&&(this.widgetSettings.themeColors[this.key]=null),this.onUpdate?this.onUpdate(V):this.bs.broadcast("charts:update-colors",V),this.isChanged=!1}}Z.\u0275fac=function(W){return new(W||Z)(Y.\u0275\u0275directiveInject(q.P),Y.\u0275\u0275directiveInject(O.V),Y.\u0275\u0275directiveInject(Y.ChangeDetectorRef),Y.\u0275\u0275directiveInject(U.M))},Z.\u0275cmp=Y.\u0275\u0275defineComponent({type:Z,selectors:[["dsw-chart-config"]],inputs:{chart:"chart",widgetSettings:"widgetSettings",onSave:"onSave",appearance:"appearance",onUpdate:"onUpdate"},decls:22,vars:25,consts:[[3,"cancel","apply"],[1,"container"],[3,"hidden",4,"ngFor","ngForOf","ngForTrackBy"],[3,"hidden"],["readonly","",1,"color-rect",3,"hidden","colorPicker","colorPickerChange"],[1,"divider"],[1,"btn","btn-success",3,"click"],["cpPosition","bottom","readonly","",1,"color-rect",3,"colorPicker","colorPickerChange"]],template:function(W,V){1&W&&(Y.\u0275\u0275elementStart(0,"dsw-sidebar-actions",0),Y.\u0275\u0275listener("cancel",function(){return V.onCancel()})("apply",function(){return V.onApply()}),Y.\u0275\u0275text(1,"Chart colors"),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(2,"div",1)(3,"label"),Y.\u0275\u0275text(4),Y.\u0275\u0275pipe(5,"i18n"),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275template(6,G,2,4,"span",2),Y.\u0275\u0275elementStart(7,"label",3),Y.\u0275\u0275text(8,"Chart background"),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(9,"input",4),Y.\u0275\u0275listener("colorPickerChange",function(P){return V.model.themeColors.hcBackground=P})("colorPickerChange",function(){return V.update()}),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(10,"label",3),Y.\u0275\u0275text(11,"Lines color"),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(12,"input",4),Y.\u0275\u0275listener("colorPickerChange",function(P){return V.model.themeColors.hcLineColor=P})("colorPickerChange",function(){return V.update()}),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(13,"label",3),Y.\u0275\u0275text(14,"Text color"),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(15,"input",4),Y.\u0275\u0275listener("colorPickerChange",function(P){return V.model.themeColors.hcTextColor=P})("colorPickerChange",function(){return V.update()}),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(16,"label",3),Y.\u0275\u0275text(17,"Series border color"),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(18,"input",4),Y.\u0275\u0275listener("colorPickerChange",function(P){return V.model.themeColors.hcBorderColor=P})("colorPickerChange",function(){return V.update()}),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275element(19,"div",5),Y.\u0275\u0275elementStart(20,"button",6),Y.\u0275\u0275listener("click",function(){return V.resetToDefault()}),Y.\u0275\u0275text(21,"Reset to default"),Y.\u0275\u0275elementEnd()()),2&W&&(Y.\u0275\u0275advance(4),Y.\u0275\u0275textInterpolate(Y.\u0275\u0275pipeBind1(5,23,"seriesColor")),Y.\u0275\u0275advance(2),Y.\u0275\u0275property("ngForOf",V.model.themeColors.hcColors)("ngForTrackBy",V.byIndex),Y.\u0275\u0275advance(1),Y.\u0275\u0275property("hidden",!1===(null==V.appearance?null:V.appearance.showBackground)),Y.\u0275\u0275advance(2),Y.\u0275\u0275styleProp("background",V.model.themeColors.hcBackground),Y.\u0275\u0275property("hidden",!1===(null==V.appearance?null:V.appearance.showBackground))("colorPicker",V.model.themeColors.hcBackground),Y.\u0275\u0275advance(1),Y.\u0275\u0275property("hidden",!1===(null==V.appearance?null:V.appearance.showLines)),Y.\u0275\u0275advance(2),Y.\u0275\u0275styleProp("background",V.model.themeColors.hcLineColor),Y.\u0275\u0275property("hidden",!1===(null==V.appearance?null:V.appearance.showLines))("colorPicker",V.model.themeColors.hcLineColor),Y.\u0275\u0275advance(1),Y.\u0275\u0275property("hidden",!1===(null==V.appearance?null:V.appearance.showText)),Y.\u0275\u0275advance(2),Y.\u0275\u0275styleProp("background",V.model.themeColors.hcTextColor),Y.\u0275\u0275property("hidden",!1===(null==V.appearance?null:V.appearance.showText))("colorPicker",V.model.themeColors.hcTextColor),Y.\u0275\u0275advance(1),Y.\u0275\u0275property("hidden",!1===(null==V.appearance?null:V.appearance.showBorder)),Y.\u0275\u0275advance(2),Y.\u0275\u0275styleProp("background",V.model.themeColors.hcBorderColor),Y.\u0275\u0275property("hidden",!1===(null==V.appearance?null:V.appearance.showBorder))("colorPicker",V.model.themeColors.hcBorderColor))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#EBEBEA}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:rgba(28,29,32,.4)}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Roboto Condensed;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}",".color[_ngcontent-%COMP%]{display:inline-flex}.divider[_ngcontent-%COMP%]{margin-bottom:10px}.color-rect[_ngcontent-%COMP%]{display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;transition:outline .1s ease-out;outline-offset:-2px;float:left}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:16px}"]})},7028:(Jt,$t,ht)=>{"use strict";ht.d($t,{X:()=>y});var pt=ht(655),t=ht(1571),Y=ht(7241),q=ht(7207),O=ht(1188),U=ht(1332),G=ht(2983),Z=ht(4411),$=ht(8297),W=ht(8714),V=ht(1444),R=ht(2544),P=ht(1481),k=ht(5613),E=ht(9386),w=ht(3990);class y{get inline(){return this.widget.inline}constructor(g){this.inj=g,this.preventColFilteringBasedOnDataProperties=!1,this.el=null,this.us=null,this.vs=null,this.ss=null,this.ds=null,this.fs=null,this.wts=null,this.dbs=null,this.cfr=null,this.ns=null,this.route=null,this.i18n=null,this.bs=null,this.san=null,this.sbs=null,this.cd=null,this.zone=null,this.dataInfo=null,this.model={},this.isSpinner=!0,this.drills=[],this.drillFilter="",this.drillFilterDrills=[],this.pivotVariables=null,this.drillFilterWidgets=null,this._currentData=null,this._kpiData=null,this.tile=null,this.customColSpec="",this.customRowSpec="",this.customDataSource="",this.pivotData=null,this.linkedMdx="",this.liveUpdateInterval=null,this.canDoDrillthrough=!1,this.firstRun=!0,this.hasDatasourceChoser=!1,this.override=null,this.baseType="",this.oneItemDrillApplied=!1,this.onInit=()=>{},this.el=this.inj.get(t.ElementRef),this.us=this.inj.get(Y.f),this.vs=this.inj.get(q.a),this.ss=this.inj.get(O.V),this.ds=this.inj.get(U.Do),this.fs=this.inj.get(G.i),this.wts=this.inj.get(W.Xw),this.dbs=this.inj.get(E.s),this.cfr=this.inj.get(t.ComponentFactoryResolver),this.ns=this.inj.get(V.L),this.route=this.inj.get(Z.ActivatedRoute),this.i18n=this.inj.get($.D),this.bs=this.inj.get(R.M),this.san=this.inj.get(P.DomSanitizer),this.sbs=this.inj.get(k.P),this.cd=this.inj.get(t.ChangeDetectorRef),this.zone=this.inj.get(t.NgZone)}ngOnInit(){var g,v,S;this.baseType=null===(g=this.widget)||void 0===g?void 0:g.type,this.override=this.getOverride(),this.extendPropsWithOverrides();const N=this.ss.getAppSettings(),j=N.theme||"";if(this.widgetsSettings=this.ss.getWidgetsSettings(this.widget.dashboard)||{},this.tc=N.themeColors[j]||{},this.widgetsSettings[this.widget.name]&&this.widgetsSettings[this.widget.name].themeColors&&this.widgetsSettings[this.widget.name].themeColors[j]&&(this.tc=this.widgetsSettings[this.widget.name].themeColors[j]),this.widget&&this.widget.drills&&(this.drills=this.widget.drills),this.tile&&(this.widget={},this.us.mergeRecursive(this.widget,this.tile)),this.widget.acItems=[],this.widget.pvItems=[],this.widget.dsItems=[],this.widget.dsLabel="",this.widget.dsSelected="",this.widget&&this.widget.dataSource&&(this.widget.dsSelected=this.us.removeExt(this.widget.dataSource.split("/").pop())),this.widget.controls&&this.widget.controls.length&&(this.canDoDrillthrough=!0),this.widget&&this.widget.controls){const M=this.widget.controls.filter(I=>"setColumnSpec"===I.action);0!==M.length&&(this.customColSpec=M[0].targetProperty);const D=this.widget.controls.filter(I=>"refresh"===I.action&&parseInt(I.timeout)>0);0!==D.length&&(this.liveUpdateInterval=setInterval(()=>this.requestData(),1e3*parseInt(D[0].timeout)))}if(this.subDrillFilter=this.bs.subscribe("drillFilter:"+this.widget.name,({path:M,drills:D})=>{this.onDrillFilter(M,D)}),this.subDrillFilterAll=this.bs.subscribe("drillFilter:*",({path:M,drills:D})=>{this.onDrillFilter(M,D)}),this.subDrilldown=this.bs.subscribe("drilldown:"+this.widget.name,({path:M,title:D})=>{this.doDrillOnly(M,D,D)}),this.subDrillthrough=this.bs.subscribe("drillthrough:"+this.widget.name,({path:M,title:D})=>{this.doDrillthrough(M,D,D)}),this.subPivotVar=this.bs.subscribe("updatePivotVar:"+this.widget.name,M=>this.onPivotVarChanged()),this.subPivotVarAll=this.bs.subscribe("updatePivotVar:*",M=>this.onPivotVarChanged()),this.subColSpec=this.bs.subscribe("setColSpec:"+this.widget.name,M=>this.onColSpecChanged(M)),this.subColSpecAll=this.bs.subscribe("setColSpec:*",M=>this.onColSpecChanged(M)),this.subDataSourcechange=this.bs.subscribe("changeDataSource:"+this.widget.name,M=>this.changeDataSource(M)),this.isLinked())if(this.widget.shared||this.widget.inline||this.widget.edKey){const D=this.dbs.getAllWidgets().find(I=>I.name===this.widget.dataLink);D&&(this.linkedMdx=D.mdx)}else this.subLinkedMdx=this.bs.subscribe("setLinkedMDX:"+this.widget.name,M=>this.onSetLinkedMdx(null,M));this.hasDependents()&&(this.subRefreshDepenend=this.bs.subscribe("widget:"+this.widget.name+":refreshDependents",M=>this.onRefreshDependents())),this.setupDrillFilter(),this.setupChoseDataSource(),this.setupInputControls(),this.setupActions(),this.requestPivotData(),("table"!==(null===(S=null===(v=this.widget)||void 0===v?void 0:v.properties)||void 0===S?void 0:S.chartToggle)||"pivot"===this.widget.type||this.widget.oldType)&&this.customDataSource||this.requestData()}ngOnDestroy(){this.subDrilldown&&this.subDrilldown.unsubscribe(),this.subDrillthrough&&this.subDrillthrough.unsubscribe(),this.subLinkedMdx&&this.subLinkedMdx.unsubscribe(),this.subRefreshDepenend&&this.subRefreshDepenend.unsubscribe(),this.subDrillFilter&&this.subDrillFilter.unsubscribe(),this.subDrillFilterAll&&this.subDrillFilterAll.unsubscribe(),this.subPivotVar&&this.subPivotVar.unsubscribe(),this.subPivotVarAll&&this.subPivotVarAll.unsubscribe(),this.subDataSourcechange&&this.subDataSourcechange.unsubscribe(),this.subColSpec&&this.subColSpec.unsubscribe(),this.subColSpecAll&&this.subColSpecAll.unsubscribe(),this.destroy()}getDataProp(g){if(this.widget.dataProperties)return this.widget.dataProperties.find(v=>v.name===g)}getDataPropByDataValue(g){if(!this.widget.dataProperties)return;const v=g.split("/");return this.widget.dataProperties.find(S=>{var N;const j=null===(N=S.dataValue)||void 0===N?void 0:N.toString().split("/");return v.some(M=>j.includes(M))})}getDataPropValue(g){const v=this.getDataProp(g);if(v&&null!==v.dataValue&&void 0!==v.dataValue)return v.dataValue.toString()}getFormat(g,v,S){var N;let j="";return!(null===(N=this.widget)||void 0===N)&&N.format&&(j=this.widget.format),v.Cols[0].tuples[g].format&&(j=v.Cols[0].tuples[g].format),S?.format&&(j=S?.format),j}getDataValue(g,v,S){let N=v.Data[g];const j=this.getFormat(g,v,S);return j&&(N=w(N).format(j)),N}getOverride(){var g,v;let S=this.baseType;return"lineChartMarkers"===S&&(S="lineChart"),"regular"===S&&(S="scoreCard"),null===(v=null===(g=this.widget)||void 0===g?void 0:g.overrides)||void 0===v?void 0:v.find(N=>N._type===S)}setupActions(){if(!this.widget.controls||0===this.widget.controls.length)return;const g=["chooserowspec","setrowspec","choosedatasource","choosecharttype","applyfilter","setfilter","refresh","reloaddashboard","showlisting","showgeolisting","showbreakdown","setdatasource","applyvariable","setrowcount","setrowsort","setcolumncount","setcolumnsort","choosecolumnspec"],v=this.widget.controls.filter(S=>-1===g.indexOf(S.action.toLowerCase())&&"hidden"!==S.type);0!==v.length&&(this.widget.acItems=v)}setupChoseDataSource(){var g,v;return(0,pt.mG)(this,void 0,void 0,function*(){if(!this.widget)return;const S=M=>"chooseDataSource"===M.action||"chooseRowSpec"===M.action||"setRowSpec"===M.action||"chooseColumnSpec"===M.action,N="mdx2json.emptyportlet"===this.widget.type;if(!(N||this.widget.controls&&0!==this.widget.controls.length))return;let j=[];if(this.widget.controls&&(j=this.widget.controls.filter(S).filter(M=>"dashboard"!==M.location)),N){const M=this.dbs.getWidgets();for(let D=0;D"dashboard"===I.location)))}if(0!==j.length){this.hasDatasourceChoser=!0,this.widget.dsItems=[];for(let M=0;M{b[o]=n[m]})}}const u={action:j[M].action,label:j[M].label||this.i18n.get("dataSource"),dsSelected:j[M].value,control:j[M],labels:[],values:[],field:"select"};this.widget.dsItems.push(u);let a=null;if(a=d?yield this.ds.getTermList(d):b,a&&"object"==typeof a){for(const o in a)a[o]===this.widget.dataSource&&(this.widget.dsSelected=o);u.labels=[],u.values=[],("chooseRowSpec"===u.control.action||"setRowSpec"===u.control.action)&&(u.labels.push(""),u.values.push(""));for(const o in a)u.labels.push(o),u.values.push(a[o]);let n=-1;n=this.customDataSource?u.values.findIndex(o=>o===this.customDataSource):u.values.findIndex(o=>o.split("/").pop()===u.dsSelected),u.dsSelected=-1===n?u.labels[0]:u.labels[n],null===(v=null===(g=this.parent)||void 0===g?void 0:g.filters)||void 0===v||v.cd.detectChanges()}}}})}onVariableChange(g){const v=g.target;this.bs.broadcast(`updatePivotVar:${v}`)}onPivotVarChanged(){this.requestData()}getDataByColumnName(g,v,S,N=""){if(!(g&&g.Data&&g.Cols&&g.Cols[0]&&g.Cols[0].tuples))return;const j=g.Cols[0].tuples.filter(b=>b.caption.toLowerCase()===v.toLowerCase());if(0===j.length)return;let M=g.Cols[0].tuples.indexOf(j[0]);const D=g.Cols[0].tuples[M].originalIndex;void 0!==D&&(M=D);let I=g.Data[S+M];return N&&(I=this.formatNumber(I,N)),I}setupDrillFilter(){const g=this.fs.getClickFilterTarget(this.widget.name);g?.length&&(this.drillFilterWidgets=g)}resetClickFilter(){if(this.widget.clickFilterActive=!1,this.drillFilterWidgets&&this.drillFilterWidgets.length)for(let g=0;g{this.bs.broadcast("drillFilter:"+S,{path:"",drills:[]})})}doDrillFilter(g,v){var S,N;if(!this.drillFilterWidgets||!this.drillFilterWidgets.length)return;let j;const M=v.slice();for(g||M.pop(),this.widget.clickFilterActive=!!g,j=0;j{this.bs.broadcast("drillFilter:"+I,{path:g,drills:M})});null===(N=null===(S=this.parent)||void 0===S?void 0:S.header)||void 0===N||N.cd.detectChanges()}onDrillFilter(g,v){this.drillFilter=g,this.drillFilterDrills=v,this.requestData()}actionNavigate(g,v=!1){let S=g.targetProperty;const N=S.toUpperCase().indexOf("DASHBOARD=");if(-1!==N){let j=S.substring(N+10,S.length);-1===j.indexOf("?")&&(j=j.replace("&","?"));const M=location.href;-1!==M.indexOf("#")?S=M.split("#")[0]+"#/"+V.l+"/"+j:S+="#/"+V.l+"/"+j}if(S=S.replace("$$$FILTERS",this.fs.getFiltersUrlString(this.widget.name)),this.lpt&&this.lpt.getSelectedRows().length){const j=this.lpt.dataController.getData(),M=j.dataArray[(this.lpt.getSelectedRows()[0]-1)*j.columnProps.length],D=S.toLowerCase().indexOf("$$$currvalue");-1!==D&&(S=S.substring(0,D)+M+S.substring(D+12,S.length))}if(this.lpt&&this.lpt.getSelectedRows().length){const j=this.lpt.dataController.getData(),M=this.lpt.getSelectedRows(),D=[];for(let b=0;bthis.requestData())}getDrillTitle(g){if(!g)return this.widget.baseTitle||"";const v=g.path.split(".");return v.pop(),(this.widget.baseTitle?this.widget.baseTitle+" - ":"")+(g.name?v[v.length-1]+" - ":"")+(g.name||g.category)}isEmptyData(g){return!(g&&g.Cols&&g.Cols[1]&&g.Cols[1]&&g.Cols[1].tuples&&0!==g.Cols[1].tuples.length&&g.Data&&0!==g.Data.length&&"@NOPROPERTY"!==g.Data[0])}doDrillUp(){this.widget.isDrillthrough?(this.restoreWidgetType(),this.widget.isDrillthrough=!1):this.doDrillOnly()}restoreWidgetType(){var g;delete this.widget.pivotMdx,delete this.widget.pivotData,null!==(g=this.widget)&&void 0!==g&&g.oldType&&(this.widget.type=this.widget.oldType,this.createWidgetComponent())}changeWidgetType(g){this.widget.oldType=this.widget.type,this.widget.type=g,this.createWidgetComponent()}getDrillthroughMdx(g){var v;let S=g.toLowerCase(),N="select non empty",j=S.lastIndexOf(N);-1===j&&(N="select",j=S.lastIndexOf(N));const M=S.lastIndexOf("from");if(-1===j)return void console.warn("Can't find 'select' in MDX during calculation drillthrough mdx");if(-1===M)return void console.warn("Can't find 'from' in MDX during calculation drillthrough mdx");let D="";if(null!==(v=this.pivotData)&&void 0!==v&&v.listingRows){const b=parseInt(this.pivotData.listingRows,10);b&&(D=` MAXROWS ${b} `)}const I=this.widget.controls.find(b=>"showListing"===b.action);if(I){const b=I.targetPropertyDisplay;if(b)return"DRILLTHROUGH "+D+g.substring(0,j+N.length)+" "+g.substring(M,g.length)+` %LISTING [${b}]`}return"DRILLTHROUGH "+D+g.substring(0,j+N.length)+" "+g.substring(M,g.length)}doDrill(g,v,S,N,j=!1,M,D){return new Promise((I,b)=>{this.clearError(),j||this.doDrillFilter(g,this.drills);const d=this.drills.slice();g?this.drills.push({path:g,name:v,category:S}):this.drills.pop();const u=this.getMDX();this.drills=d,this.showLoading();const a=()=>{if(N)return void N();if(!this.canDoDrillthrough)return;const n=this.getDrillthroughMdx(u);this.ds.execMDX(n).then(o=>{!o||!o.children||0===o.children.length||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=o,this.displayAsPivot(n))}).catch(o=>{D&&D(o)})};this.showLoading(),this.ds.execMDX(u).catch(n=>{j?D&&D(n):a()}).then(n=>{var o,m;if(n){if(this.chartConfig&&(this.chartConfig.loading=!1),this.isEmptyData(n)&&g)return void a();this.isEmptyData(n)||(g?this.drills.push({path:g,name:v,category:S}):this.drills.pop(),this.widget.backButton=0!==this.drills.length,this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(u),this.retrieveData(n),this.updateLocationDrillParameters(),null===(m=null===(o=this.parent)||void 0===o?void 0:o.header)||void 0===m||m.cd.detectChanges(),M&&M())}}).finally(()=>{this.hideLoading(),I()})})}doDrillthrough(g,v,S,N,j=!1,M,D){return new Promise((I,b)=>{if(!this.canDoDrillthrough)return void I();this.clearError();const d=this.drills.slice();g?Array.isArray(g)?g.forEach(n=>{this.drills.push({path:n,name:v,category:S})}):this.drills.push({path:g,name:v,category:S}):this.drills.pop();const u=this.getMDX();this.drills=d,this.showLoading();const a=this.getDrillthroughMdx(u);this.ds.execMDX(a).then(n=>{!n||!n.children||0===n.children.length||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=n,this.displayAsPivot(a))}).catch(n=>{D&&D(n)}).finally(()=>{this.hideLoading()})})}doDrillOnly(g,v,S,N,j=!1,M,D){return new Promise((I,b)=>{this.clearError();const d=this.drills.slice();g?this.drills.push({path:g,name:v,category:S}):this.drills.pop();const u=this.getMDX();this.drills=d,this.showLoading(),this.ds.execMDX(u).catch(a=>{D&&D(a)}).then(a=>{var n,o;a&&(this.chartConfig&&(this.chartConfig.loading=!1),!this.isEmptyData(a)&&(this._currentData=a,g?this.drills.push({path:g,name:v,category:S}):this.drills.pop(),this.widget.backButton=0!==this.drills.length,this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(u),this.retrieveData(a),this.updateLocationDrillParameters(),null===(o=null===(n=this.parent)||void 0===n?void 0:n.header)||void 0===o||o.cd.detectChanges(),M&&M()))}).finally(()=>{this.hideLoading(),I()})})}checkForAutoDrill(g){var v,S;return(0,pt.mG)(this,void 0,void 0,function*(){let N=!1;return 1===(null===(S=null===(v=g?.Cols[1])||void 0===v?void 0:v.tuples)||void 0===S?void 0:S.length)&&(this.oneItemDrillApplied=!0,yield this.doDrill(g.Cols[1].tuples[0].path,g.Cols[1].tuples[0].caption,void 0,void 0,!0,()=>{var j,M;this.widget.backButton=!1,null===(M=null===(j=this.parent)||void 0===j?void 0:j.header)||void 0===M||M.cd.detectChanges(),N=!0},()=>{this.oneItemDrillApplied=!1})),N})}showLoading(){this.isSpinner||(this.isSpinner=!0,this.parent.cd.detectChanges(),this.cd.detectChanges())}hideLoading(){this.isSpinner&&(this.isSpinner=!1,this.parent.cd.detectChanges(),this.cd.detectChanges())}applyDrill(g){let v;const S=this.route.snapshot.queryParamMap.get("filter");S&&(g=g+" %FILTER "+S);let N=this.drills;if(0===N.length&&(N=this.drillFilterDrills),0===N.length)return g;let j=[];for(this.pivotData&&this.pivotData.rowAxisOptions&&this.pivotData.rowAxisOptions.drilldownSpec&&(j=this.pivotData.rowAxisOptions.drilldownSpec.split("^")),v=0;vthis._retriveDataSource(v)).catch(v=>{var S;this.showError((null===(S=v.error)||void 0===S?void 0:S.Error)||v.message)})}convertKPIToMDXData(g,v=!1){const S=g;g=g.Result;const N={Info:{cubeName:S.Info.KpiName},Cols:[],Data:[]};let j,M;const D=[];for(j=0;j!!j.value).map(j=>j.value.toString().split("|").map(D=>({name:j.targetProperty,value:D}))).flat();return g&&N.push(...g),this.showLoading(),this.ds.getKPIData(S,N,!!g).then(j=>this._retriveKPI(j,!!g)).finally(()=>{this.hideLoading()})}requestData(){var g,v;if(!this.widget.isSupported)return;if(this.oneItemDrillApplied&&(this.drills=[],this.oneItemDrillApplied=!1,this.widget.backButton=!1,this.widget.title=this.getDrillTitle(),null===(v=null===(g=this.parent)||void 0===g?void 0:g.header)||void 0===v||v.cd.detectChanges()),this.widget.kpitype)return void this._requestKPIData();const S=this.getMDX();S?(this.clearError(),setTimeout(()=>this.broadcastDependents(),0),-1!==S.indexOf("$")&&!this.pivotVariables&&this.ds.getPivotVariables(this.widget.cube).then(N=>{this.pivotVariables=N}).catch(N=>{this.showError(N.message)}),this.showLoading(),this.ds.execMDX(S).catch(N=>this._onRequestError(N)).then(N=>{this.removeColsThatNotExistInDataProperties(N),this._currentData=N,this.retrieveData(N)}).finally(()=>{this.hideLoading()})):this.isSpinner=!1}broadcastDependents(g){if(this.hasDependents())for(let v=0;v"applyVariable"===N.action);if(this.widget.shared){const N=this.route.snapshot.queryParamMap.get("variables");N&&N.split("~").forEach(M=>{const D=M.split("."),I=D[0],b=D[1],d=S.findIndex(u=>u.targetProperty==="$variable."+I);-1!==d?S[d].value=b:S.push({targetProperty:"$variable."+I,value:b})})}if(!S.length)return g;for(let N=0;Nd+a+(b?".%NOT":"")).join(","),g+="})"}else g+=" %FILTER "+I}}return g}dateToHorolog(g){const v=new Date("12/31/1840Z"),N=this.us.toDate(g).getTime()-v.getTime();return Math.ceil(N/864e5)}getMDX(){let v,S,N,j,g=!1;if(this.widget.kpitype)return"";const M=this.fs.getWidgetFilters(this.widget.name);if(this.isLinked())return j=this.replaceMDXVariables(this.linkedMdx||this.widget.linkedMdx||"",M),j=this.checkColSpec(j),this.applyDrill(j);if(this.drillFilter){const b=this.drillFilter.indexOf("&");-1!==b&&M.push({targetProperty:this.drillFilter.substring(0,b-1),value:"&"+this.drillFilter.substring(b+1,this.drillFilter.length)})}for(v=0;v{this.onResize()},0))}displayAsPivot(g){var v;"pivot"===this.widget.type?(this.widget.isDrillthrough=null,this.restoreWidgetType()):(this.widget.pivotMdx=g||this.getMDX(),this.changeWidgetType("pivot")),null!==(v=this.parent)&&void 0!==v&&v.cd&&this.parent.cd.detectChanges()}formatNumber(g,v){let S;if(S=v?w(g).format(v.replace(/;/g,"")):g.toString(),this.dataInfo){const N=this.dataInfo.numericGroupSeparator,j=this.dataInfo.numericGroupSize||3;if(N){const M=new RegExp(`\\B(?=(\\d{${j}})+(?!\\d))`,"g");S=S.replace(/,/g,this.dataInfo.numericGroupSeparator).replace(M,N)}this.dataInfo.decimalSeparator&&(S=S.replace(/\./g,this.dataInfo.decimalSeparator))}return S}updateLocationDrillParameters(){var g,v;if(null===(g=this.widget)||void 0===g||!g.shared)return;location.hash;const N=this.getDrillsAsParameter();this.ds.router.navigate([],{relativeTo:this.route,queryParams:{drilldown:N},queryParamsHandling:"merge"});const j={type:"drill",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,drills:this.drills};window.parent&&window.parent.postMessage(j,"*");try{null!==(v=window.parent.dsw)&&void 0!==v&&v.onDrill&&window.parent.dsw.onDrill(j)}catch(M){console.error(M)}}getDrillsAsParameter(){const g=this.drills;return g?.length?encodeURIComponent(g.map(v=>v.path).join("~")):""}updateDatasourceParameterInURL(){var g,v;if(null===(g=this.widget)||void 0===g||!g.shared)return;this.ds.router.navigate([],{relativeTo:this.route,queryParams:{datasource:this.customDataSource},queryParamsHandling:"merge"});const S={type:"datasource",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,datasource:this.customDataSource};window.parent&&window.parent.postMessage(S,"*");try{null!==(v=window.parent.dsw)&&void 0!==v&&v.onDataSource&&window.parent.dsw.onDataSource(S)}catch(N){console.error(N)}}navigateDashboard(g){this.ds.router.navigateByUrl(V.l+"/"+g)}setupInputControls(){this.widget.controls.filter(S=>"setRowCount".includes(S.action)).forEach(S=>{this.widget.dsItems.push({action:S.action,label:S.label||"Row count",field:"input",type:"number",_value:S.value||void 0})})}applyRowCount(g){const v=this.widget.dsItems.find(D=>"setRowCount"===D.action);if(!v||!v._value)return g;const S=/(HEAD\(.*),(.*)(\))/i;if(g.match(S))return g.replace(S,`$1,${v._value}$3`);let j=g.match(/ON 0,(.*)ON 1/)[1];if(!j)return g;j=j.replace("NON EMPTY","");const M=" HEAD("+j.trim()+`, ${v._value}) `;return g.replace(j,M)}extendPropsWithOverrides(){var g;this.override&&(null===(g=this.override.columns)||void 0===g||g.forEach((v,S)=>{const N=this.widget.dataProperties[S];N&&(v.showAs&&(N.showAs=v.showAs),v.format&&(N.format=v.format),v.display&&(N.display=v.display),v.label&&(N.label=v.label),v.summary&&(N.summary=v.summary),v.rangeLower&&(N.rangeLower=v.rangeLower),v.rangeUpper&&(N.rangeUpper=v.rangeUpper),v.targetValue&&(N.targetValue=v.targetValue),v.thresholdLower&&(N.thresholdLower=v.thresholdLower),v.thresholdUpper&&(N.thresholdUpper=v.thresholdUpper))}))}removeColsThatNotExistInDataProperties(g){var v,S,N,j,M,D,I;if(this.preventColFilteringBasedOnDataProperties||null===(v=this.widget.dataProperties)||void 0===v||!v.length||null===(N=null===(S=g?.Cols[0])||void 0===S?void 0:S.tuples)||void 0===N||!N.length)return;const b=[],d=(null===(M=null===(j=g.Cols[0])||void 0===j?void 0:j.tuples)||void 0===M?void 0:M.length)||0;d&&(g.Cols[0].tuples=null===(D=g?.Cols[0])||void 0===D?void 0:D.tuples.filter((u,a)=>{const n=u.dimension.toString().split("/"),o=this.widget.dataProperties.some(m=>m.dataValue.toString().split("/").some(B=>n.includes(B)));return o||b.push(a),o}),g.Data=null===(I=g.Data)||void 0===I?void 0:I.filter((u,a)=>!b.some(n=>a%d===n)))}}y.CURRENT_ADDON_VERSION=1,y.\u0275fac=function(g){return new(g||y)(t.\u0275\u0275directiveInject(t.Injector))},y.\u0275dir=t.\u0275\u0275defineDirective({type:y,hostVars:2,hostBindings:function(g,v){2&g&&t.\u0275\u0275classProp("inline",v.inline)}})},7630:(Jt,$t,ht)=>{"use strict";ht.d($t,{E1:()=>S,Uh:()=>M});var pt=ht(655),t=ht(7028),Y=ht(4470),q=ht(6150),U=ht(780),G=ht.n(U),Z=ht(2407),$=ht.n(Z),W=ht(217),V=ht.n(W),R=ht(2586),P=ht.n(R),k=ht(798),E=ht.n(k),w=ht(2112),T=ht.n(w),y=ht(1335),A=ht.n(y),g=ht(5526),v=ht(1571);G()(q),$()(q),V()(q),P()(q),E()(q),T()(q),A()(q);const S=20,j={treemap:{showLines:!1,showText:!1},pie:{showLines:!1}};class M extends t.X{constructor(){super(...arguments),this.widgetData=null,this.seriesTypes=[],this.firstRun=!0,this.axisLabelListeners=[],this.seriesVisibility=[]}ngOnInit(){var I,b;super.ngOnInit(),this.widget.isChart=!0,this.setupHeaderButtons(),!(null===(I=this.override)||void 0===I)&&I.seriesTypes&&(this.seriesTypes=null===(b=this.override)||void 0===b?void 0:b.seriesTypes.split(",")),this.subPrint=this.bs.subscribe("print:"+this.widget.name,()=>{if(this.chart){const d=new Blob([this.chart.getSVG()],{type:"image/svg+xml"}),u=window.open(URL.createObjectURL(d),"_blank");u.onload=()=>{const a=u.document.querySelector("svg");a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.style.height="auto",u.print()},u.onafterprint=()=>{u.close()}}}),this.setupChart(),this.widget.inline&&this.setupInline(),this.subColorsConfig=this.bs.subscribe("charts:update-colors",d=>this.updateColors(d))}ngAfterViewInit(){this.createChart(),setTimeout(()=>{this.chart.reflow()})}removeAxisListeners(){this.axisLabelListeners.forEach(I=>{I.element.removeEventListener(I.event,I.func)})}createChart(){var I,b;this.chartConfig.chart.renderTo=this.el.nativeElement,"map"===(null===(b=null===(I=this.chartConfig)||void 0===I?void 0:I.chart)||void 0===b?void 0:b.type)?this.chart=q.mapChart(this.chartConfig):"timechart"===this.widget.type.toLowerCase()?this.chart=q.stockChart(this.chartConfig):this.chart=q.chart(this.chartConfig)}clearSeries(I){const b=I||this.chart;if(b)for(;b.series.length>0;)b.series[0].remove(!1)}destroy(){this.subColorsConfig&&this.subColorsConfig.unsubscribe(),this.subPrint&&this.subPrint.unsubscribe(),super.destroy()}onHeaderButton(I){var b,d;switch(super.onHeaderButton(I),I.name){case"isLegend":this.toggleLegend(I.state);break;case"showValues":this.chartConfig.plotOptions.series.dataLabels.enabled=I.state,!(null===(d=null===(b=this.chartConfig.plotOptions)||void 0===b?void 0:b.pie)||void 0===d)&&d.dataLabels&&(this.chartConfig.plotOptions.pie.dataLabels.enabled=I.state),this.updateChart(),this.chart.legend.update({enabled:this.widget.isLegend},!0);break;case"showZero":this.showZeroOnAxis();break;case"isTop":this.limitSeriesAndData();break;case"chartConfig":this.showChartConfig()}}updateChart(I=!1,b=!1){this.chart&&this.chart.update(this.chartConfig,I,!1,b)}hasOption(I){const b=this.ss.getWidgetsSettings(this.widget.dashboard);return!(!b[this.widget.name]||void 0===b[this.widget.name][I]||!1===b[this.widget.name][I])}saveSeriesVisiblilityState(I,b){const d=this.ss.getWidgetsSettings(this.widget.dashboard);d[this.widget.name]||(d[this.widget.name]={});const u=d[this.widget.name];u.series||(u.series={}),u.series[I]=b,this.ss.setWidgetsSettings(d,this.widget.dashboard)}setYAxisMinToZero(){if(this.chartConfig.yAxis instanceof Array)for(let I=0;I{if(!u||!u.Info)return"";let a="";for(let n=0;nm.visible);(null===(a=null===(u=this.chart)||void 0===u?void 0:u.series)||void 0===a?void 0:a.length)>0;)this.chart.series[0].remove();if(this.widgetData=JSON.parse(JSON.stringify(I)),I.Error)this.showError(I.Error);else{if(I){const m=this.getMinValue(I.Data);if(m>0&&m<=10&&(this.chartConfig.yAxis.min=-10),!I.Cols)return;if(0===I.Cols[0].tuples.length&&0!==I.Data.length&&I.Cols[0].tuples.push({caption:this.i18n.get("count")}),this.parseData(I),this.widget.showZero&&this.setYAxisMinToZero(),this.firstRun){let _=this.ss.getWidgetsSettings(this.widget.dashboard);if(this.us.isEmbedded()){const B=this.route.snapshot.queryParamMap.get("hiddenSeries");let X=[];B&&(X=B.split(",")),X.forEach(it=>{this.chartConfig.series[it]&&(this.chartConfig.series[it].visible=!1)})}else if(_[this.widget.name]&&_[this.widget.name].series)for(o=0;oo.caption||"").join(" & ")}),this.chartConfig.xAxis&&I.Cols[1]&&I.Cols[1].tuples&&I.Cols[1].tuples.length&&(this.chartConfig.xAxis.title={text:I.Cols[1].tuples.map(o=>o.caption||"").join(" & ")})}addSeries(I,b,d,u=!1){var a,n,o,m;const _=b||this.chart,B=(this.chart||this.chartConfig).series.length;if(I&&I.data&&0!==I.data.length){let L=!0,z=!1;for(let et=0;etparseInt(et,10)));const z=(this.chart||this.chartConfig).series.length;I.yAxis=L[z]||0}I.showInLegend=!0,_.addSeries(I,u,!1);const rt=this.seriesVisibility[_.series.length-1];void 0!==rt&&(_.series[_.series.length-1].visible=rt)}enableStacking(){this.us.mergeRecursive(this.chartConfig,{plotOptions:{series:{stacking:"normal"}}})}setType(I){delete this.chart.options.plotOptions.series.stacking;const b=this.chartConfig.chart.type;"barchartstacked"===I&&(I="bar",this.chart.options.plotOptions.series.stacking="normal"),"columnchartstacked"===I&&(I="column",this.chart.options.plotOptions.series.stacking="normal"),b===I&&(this.chartConfig.chart.type="bar"===b?"column":"bar",this.updateChart(!0)),this.chartConfig.chart.type=I,this.updateChart(!0)}getMinValue(I){let b=1/0;for(let d=0;d"setRowCount"===m.action)[0],o=n&&n.value||S;if("normal"===this.chartConfig.plotOptions.series.stacking||!this.chartConfig.plotOptions.series.stacking){I.Cols[1].tuples;const _=I.Cols[0].tuples;if(this.widget.isTop){if(1!==_.length)return void I.Cols[1].tuples.splice(o,I.Cols[1].tuples.length-o);{let B=!0;for(;B;){let X;for(B=!1,X=0;X"setcolumncount"===B.action.toLowerCase());if(0!==u.Cols[0].tuples.length&&u.Cols[0].tuples[0].children&&0!==u.Cols[0].tuples[0].children.length&&(m=!0),m){let B=0;for(let X=0;X=_.value)continue;let X=u.Cols[0].tuples[B].originalIndex;void 0===X&&(X=B);const it=[];for(a=0;a{var _,B,X,it,rt,L,z;a.removeAxisListeners(),null===(B=null===(_=m.target)||void 0===_?void 0:_.series)||void 0===B||B.forEach(et=>{"pie"===a.chartConfig.chart.type&&a.chart.legend.allItems.forEach(at=>{var st;const H=yt=>{this.onLegendItemHover({series:at.series,index:at.index})},ot=yt=>{this.onLegendItemOut({series:at.series,index:at.index})},nt=null===(st=at.legendItem)||void 0===st?void 0:st.group.element;nt&&(nt.addEventListener("mouseover",H),a.axisLabelListeners.push({event:"mouseover",element:nt,func:H}),nt.addEventListener("mouseout",ot),a.axisLabelListeners.push({event:"out",element:nt,func:ot}))}),et.data.forEach((at,st)=>{var H,ot,nt;const yt="contextmenu",gt=null===(H=at.graphic)||void 0===H?void 0:H.element;if(!gt)return;const mt=St=>{var wt,Mt;St.preventDefault(),St.stopImmediatePropagation();const Dt=null===(Mt=null===(wt=a._currentData)||void 0===wt?void 0:wt.Cols[1])||void 0===Mt?void 0:Mt.tuples;if(!Dt||!Dt[st])return;const Pt=et.userOptions.path,Ft=[Dt[st].path];Pt&&Ft.push(Pt),this.bs.broadcast("contextmenu",{widget:this.widget,event:St,ctxData:{canDrillthrough:this.canDoDrillthrough,canDrill:!0,drillPath:Ft,drillTitle:Dt[st].caption||Dt[st].title}})};null===(nt=null===(ot=at.graphic)||void 0===ot?void 0:ot.element)||void 0===nt||nt.addEventListener(yt,mt),this.axisLabelListeners.push({event:yt,element:gt,func:mt})})}),null===(z=null===(L=null===(rt=null===(it=null===(X=a.chart)||void 0===X?void 0:X.xAxis[0])||void 0===it?void 0:it.labelGroup)||void 0===rt?void 0:rt.element)||void 0===L?void 0:L.childNodes)||void 0===z||z.forEach((et,at)=>{const st=()=>{var H,ot;const nt=null===(ot=null===(H=a._currentData)||void 0===H?void 0:H.Cols[1])||void 0===ot?void 0:ot.tuples;!nt||!nt[at]||(a.showLoading(),a.doDrillOnly(nt[at].path,nt[at].caption||nt[at].title,nt[at].caption||nt[at].title).finally(()=>{a.hideLoading()}))};et.addEventListener("click",st),this.axisLabelListeners.push({event:"click",element:et,func:st})})}}},credits:{enabled:!1},tooltip:{formatter(){const _=this,B=a.override?.valueLabelFormat||_.series.options.format;let X=_.y;X=a.formatNumber(X,B);let it=_.point.title;it===_.point.name&&(it="");let rt=(_.point.name||_.x||"")+"
"+(it?it+"
":"")+_.series.name+": "+X+"
";return _.point.percentage&&(rt+=a.formatNumber(this.point.percentage,a.getDataPropValue("percentageFormat")||"#.##")+"%"),rt}},exporting:{enabled:!1},plotOptions:{column:{borderColor:this.tc.hcBorderColor||void 0},bar:{borderColor:this.tc.hcBorderColor||void 0},pie:{borderColor:this.tc.hcBorderColor||void 0,colors:this.tc.hcColors||void 0},treemap:{borderColor:this.tc.hcBorderColor||void 0,colors:this.tc.hcColors||void 0},series:{opacity:this.tc.hcOpacity,cursor:"pointer",point:{events:{click(m){var _,B,X;if(null!==(_=a.drillFilterWidgets)&&void 0!==_&&_.length)return a.doDrillFilter(m.point.path,a.drills),void(null===(X=null===(B=a.parent)||void 0===B?void 0:B.header)||void 0===X||X.cd.detectChanges());if(!m.point)return;if(Y._.mobile&&a._selectedPoint!==m.point)return void(a._selectedPoint=m.point);const it=m.point.series.userOptions.path,rt=[m.point.path];it&&rt.push(it),a.showLoading(),a.doDrillthrough(rt,m.point.name,m.point.category).finally(()=>{a.hideLoading()})}}},dataLabels:{color:this.tc.hcTextColor,enabled:!0===this.widget.showValues,formatter(){const B=a.override?.valueLabelFormat||this.series.options.format;let X=this.y;return X=a.formatNumber(X,B),X}},events:{hide:m=>this.saveSeriesVisiblilityState(m.target.name,m.target.visible),show:m=>this.saveSeriesVisiblilityState(m.target.name,m.target.visible)}}},yAxis:{events:{},title:{text:""},labels:{style:{color:this.tc.hcTextColor,textOverflow:"none"},formatter:function o(){var m;let _=this.value;const B=a.override,it=(B?.valueLabelFormat,a.baseType);return("percent"===(null===(m=B?.yAxisList[0])||void 0===m?void 0:m.axisType)||"percent"===B?.xAxis.axisType&&("barChart"===it||"barChartStacked"===it))&&(_=a.formatNumber(_,"#%")),_}},minorGridLineColor:this.tc.hcLineColor||"#e6e6e6",gridLineColor:this.tc.hcLineColor||"#e6e6e6",lineColor:(null===(I=this.tc)||void 0===I?void 0:I.hcLineColor)||void 0,tickColor:(null===(b=this.tc)||void 0===b?void 0:b.hcLineColor)||void 0},xAxis:{events:{},title:{text:""},labels:{style:{color:this.tc.hcTextColor,textOverflow:"none",cursor:"pointer"}},minorGridLineColor:this.tc.hcLineColor||"#e6e6e6",gridLineColor:this.tc.hcLineColor||"#e6e6e6",lineColor:(null===(d=this.tc)||void 0===d?void 0:d.hcLineColor)||void 0,tickColor:(null===(u=this.tc)||void 0===u?void 0:u.hcLineColor)||void 0},series:[],title:{text:""}},this.setup3DChart(),this.chartConfig.navigator={outlineColor:this.tc.hcLineColor,xAxis:{gridLineColor:this.tc.hcLineColor},yAxis:{gridLineColor:this.tc.hcLineColor}},"combochart"===this.widget.type.toLowerCase()&&(this.chartConfig.yAxis=[{events:{},gridLineColor:this.tc.hcLineColor,lineColor:this.tc.hcLineColor,tickColor:this.tc.hcLineColor,labels:{style:{color:this.tc.hcTextColor}}},{events:{},opposite:!0,gridLineColor:this.tc.hcLineColor,lineColor:this.tc.hcLineColor,tickColor:this.tc.hcLineColor,labels:{style:{color:this.tc.hcTextColor}}}],this.widget.overrides&&this.widget.overrides[0]&&"comboChart"===this.widget.overrides[0]._type)){const _=this.widget.overrides.find(B=>"combochart"===B._type.toLowerCase())?.yAxisList;if(_&&_.length)for(let B=0;B<_.length;B++)_[B].title&&(this.chartConfig.yAxis[B].title||(this.chartConfig.yAxis[B].title={}),this.chartConfig.yAxis[B].title.text=_[B].title),_[B].axisType&&(this.chartConfig.yAxis[B].type=_[B].axisType,"percent"===_[B].axisType&&(this.chartConfig.yAxis[B].min=0,this.chartConfig.yAxis[B].max=1,this.chartConfig.yAxis[B].endOnTick=!1,this.chartConfig.yAxis[B].labels={formatter(){return(100*this.value).toFixed(0)+"%"}})),void 0!==_[B].maxValue&&(this.chartConfig.yAxis[B].max=_[B].maxValue),void 0!==_[B].minValue&&(this.chartConfig.yAxis[B].min=_[B].minValue)}}setupHeaderButtons(){void 0===this.widget.isBtnZero&&(this.widget.isBtnZero=!1),void 0===this.widget.isBtnValues&&(this.widget.isBtnValues=!1),void 0===this.widget.isLegend&&(this.widget.isLegend=!0)}setupInline(){if(this.chartConfig.chart.backgroundColor=null,this.chartConfig.plotOptions={series:{enableMouseTracking:!1}},this.chartConfig.legend={enabled:!1},this.widget.tile){const I={xAxis:{events:{},labels:{style:{color:window.getComputedStyle(document.querySelector("."+Y._.const.fontColors[this.widget.tile.fontColor])).getPropertyValue("color")}}},yAxis:{events:{},labels:{style:{color:window.getComputedStyle(document.querySelector("."+Y._.const.fontColors[this.widget.tile.fontColor])).getPropertyValue("color")}}}};this.us.mergeRecursive(this.chartConfig,I)}}showChartConfig(){var I,b,d;const u=this.widget.name,a=this.ss.getWidgetsSettings(this.widget.dashboard)||{};a[u]||(a[u]={}),a[u].themeColors||(a[u].themeColors={});const o=j[null===(d=null===(b=null===(I=this.chart)||void 0===I?void 0:I.options)||void 0===b?void 0:b.chart)||void 0===d?void 0:d.type];this.sbs.showComponent({component:g.m,inputs:{widgetSettings:a[u],appearance:o,onSave:()=>{this.ss.setWidgetsSettings(a,this.widget.dashboard)},onUpdate:m=>this.updateColors(m),chart:this.chart}})}updateColors(I){this.zone.runOutsideAngular(()=>{var b,d,u,a,n,o,m,_,B;const X=null===(u=null===(d=null===(b=this.chart)||void 0===b?void 0:b.options)||void 0===d?void 0:d.chart)||void 0===u?void 0:u.type;if(I.hcColors)if("treemap"===X||"pie"===X){this.chartConfig.plotOptions[X].colors=I.hcColors,this.chart.options.plotOptions[X].colors=I.hcColors;for(let rt=0;rt<(null===(a=this.chart.series[0])||void 0===a?void 0:a.points.length);rt++){const L=this.chart.series[0].points[rt],z=I.hcColors[L.colorIndex%I.hcColors.length];L.color=z,L.graphic.element.setAttribute("fill",z)}}else for(let rt=0;rt{var H;st.color=z;const ot=null===(H=st.graphic)||void 0===H?void 0:H.element;ot&&(ot.setAttribute("fill",z),ot.setAttribute("stroke",z))});const at=this.chart.legend.allItems[rt];at&&at.legendSymbol&&[at.legendSymbol.element,at.legendLine.element].forEach(st=>{st&&(st.setAttribute("fill",z),st.setAttribute("stroke",z))}),this.chart.series[rt].options.color=z}if(I.hcBorderColor&&!1!==(null===(o=j[X])||void 0===o?void 0:o.showBorder))for(let rt=0;rt{var et;const at=null===(et=z.graphic)||void 0===et?void 0:et.element;at&&at.setAttribute("stroke",I.hcBorderColor)});if(I.hcBackground&&!1!==(null===(m=j[X])||void 0===m?void 0:m.showBackground)){const rt=this.chart.chartBackground.element;rt.setAttribute("fill",I.hcBackground),rt.setAttribute("stroke",I.hcBackground),this.chart.options.chart.backgroundColor=I.hcBackground}if(I.hcLineColor&&!1!==(null===(_=j[X])||void 0===_?void 0:_.showLines)){const rt=I.hcLineColor;this.chart.yAxis.forEach(L=>{this.chart.yAxis[0].options.minorGridLineColor=rt,L.gridGroup.element.setAttribute("stroke",rt),L.gridGroup.element.childNodes.forEach(z=>{z.setAttribute("stroke",rt)})}),this.chart.xAxis.forEach(L=>{L.axisGroup.element.setAttribute("stroke",rt),L.axisGroup.element.childNodes.forEach(z=>{z.setAttribute("stroke",rt)})})}const it=I.hcTextColor;if(it&&!1!==(null===(B=j[X])||void 0===B?void 0:B.showText)){const rt=L=>{if(L.labelGroup){L.labelGroup.element.setAttribute("fill",it);for(let z=0;z{L.options.color=it,L.legendItem&&(L.legendItem.element.setAttribute("color",it),L.legendItem.element.setAttribute("fill",it),L.legendItem.element.style.fill=it,L.legendItem.element.style.color=it)}),this.chart.series.forEach(L=>L.data.forEach(z=>{var et,at,st;const H=null===(st=null===(at=null===(et=z.dataLabel)||void 0===et?void 0:et.element)||void 0===at?void 0:at.children[0])||void 0===st?void 0:st.style;H&&(H.color=it,H.fill=it)}))}})}setupAxisMinMax(I){const b=this.override,d=this.chartConfig.yAxis;this.chartConfig.xAxis;let a=b?.yAxisList[0];I.some(n=>n<0)||(d.min=0),("barChart"===this.baseType||"barChartStacked"===this.baseType)&&(a=b?.xAxis),void 0!==a?.minValue&&(d.min=a.minValue),void 0!==a?.maxValue&&(d.max=a.maxValue)}removeUndefinedColors(I){const b=(d,u)=>{void 0===d[u]&&delete d[u]};b(I.plotOptions.column,"borderColor"),b(I.plotOptions.bar,"borderColor"),b(I.plotOptions.pie,"borderColor"),b(I.plotOptions.treemap,"borderColor"),b(I.plotOptions.treemap,"borderColor"),b(I.drilldown.activeAxisLabelStyle,"color"),b(I.drilldown.activeDataLabelStyle,"color"),b(I.legend.itemStyle,"color"),b(I.chart,"backgroundColor"),b(I.plotOptions.series,"opacity"),b(I.plotOptions.series.dataLabels,"color"),b(I.yAxis.labels.style,"color"),b(I.yAxis,"minorGridLineColor"),b(I.yAxis,"gridLineColor"),b(I.yAxis,"lineColor"),b(I.yAxis,"tickColor"),b(I.xAxis.labels.style,"color"),b(I.xAxis,"minorGridLineColor"),b(I.xAxis,"gridLineColor"),b(I.xAxis,"lineColor"),b(I.xAxis,"tickColor"),this.removeEmptyObjects(I)}removeEmptyObjects(I){let b=!0;for(;b;)b=!1,Object.keys(I).forEach(d=>{"object"==typeof I[d]&&!Array.isArray(I[d])&&(0===Object.keys(I[d]).length?(b=!0,delete I[d]):this.removeEmptyObjects(I[d]))})}fixData(I){for(let b=0;b{d.set(u,a)}),I.forEach((u,a)=>{u.originalIndex=a}),I.sort((u,a)=>{const n=d.get(u.dimension),o=d.get(a.dimension);return void 0!==n&&void 0!==o?n-o:void 0!==n?-1:void 0!==o?1:0})}sortTuplesBasedOnLabels(I){var b,d,u;if(null===(b=I.Cols[0].tuples)||void 0===b||!b.length)return;const a=null===(d=this.widget.overrides)||void 0===d?void 0:d.find(o=>"chartLegend"===o._type);if(!a)return;const n=null===(u=a.legendLabels)||void 0===u?void 0:u.split(",");n&&this.sortTuplesArray(I.Cols[0].tuples,n)}}M.\u0275fac=function(){let D;return function(b){return(D||(D=v.\u0275\u0275getInheritedFactory(M)))(b||M)}}(),M.\u0275dir=v.\u0275\u0275defineDirective({type:M,features:[v.\u0275\u0275InheritDefinitionFeature]})},8695:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>MapWidgetComponent});var _base_widget_class__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7028),_environments_dsw__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4470),ol_Map__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4660),ol_View__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2811),ol_layer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4848),ol_layer__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9209),ol_source__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5672),ol_source__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(7402),ol_Feature__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(3171),ol_Collection__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(2815),ol_control__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(3969),ol_style__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6564),ol_style__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(5044),ol_style__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(6785),ol_style__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(109),ol_style__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(9570),ol_geom__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(187),ol_geom__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4173),ol_geom__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(301),ol_proj__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(6003),_angular_core__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1571);const _c0=["popup"],_c1=["tooltip"];class MapWidgetComponent extends _base_widget_class__WEBPACK_IMPORTED_MODULE_0__.X{constructor(){super(...arguments),this.CLUSTER_RANGE=1,this.markers=null,this.polys=null,this.iconStyle=null,this.isRGBColor=!1,this._selectedFeature=null,this.featureOverlay=null,this.mapData=null,this.hintTimeout=null,this.popupElement=null,this.polyData=null,this.isGeoJSON=!1,this.preventColFilteringBasedOnDataProperties=!0}ngOnInit(){super.ngOnInit(),this.popupElement=this.popupEl.nativeElement,this.model.tooltip={visible:!1,content:""},this.model.tooltip.name="",this.model.tooltip.items=[],this.widget.isMap=!0,this.requestPolygons(),this.us.isEmbedded()&&(this.onMessage=Jt=>{const $t=Jt.data;if("map.applyStyle"===$t.type)this.applyStyle($t)},window.addEventListener("message",this.onMessage))}applyStyle(Jt){const{selector:$t,style:ht,value:pt}=Jt;this.map.getTargetElement().querySelectorAll($t).forEach(q=>{q.style[ht]=pt})}ngAfterViewInit(){this.createMap()}ngOnDestroy(){var Jt,$t;this.us.isEmbedded()&&window.removeEventListener("message",this.onMessage),null===($t=null===(Jt=this.tooltip)||void 0===Jt?void 0:Jt.nativeElement)||void 0===$t||$t.remove(),this.tooltip=null,super.ngOnDestroy()}createMap(){this.ss.getAppSettings();let $t;$t=this.getDataPropValue("tileUrl");const ht=new ol_source__WEBPACK_IMPORTED_MODULE_3__.Z({wrapX:!0,url:$t}),pt=new ol_Map__WEBPACK_IMPORTED_MODULE_4__.Z({layers:[new ol_layer__WEBPACK_IMPORTED_MODULE_5__.Z({source:ht})],controls:(0,ol_control__WEBPACK_IMPORTED_MODULE_6__.c)({attributionOptions:{collapsible:!1}}),target:this.el.nativeElement,view:new ol_View__WEBPACK_IMPORTED_MODULE_7__.ZP({center:[0,0],zoom:2})});pt.getViewport().addEventListener("mouseout",t=>{this.hideTooltip()},!1),this.map=pt,this.initialize()}hideTooltip(){this.hintTimeout&&clearTimeout(this.hintTimeout),this.tooltip&&(this.tooltip.nativeElement.style.display="none")}rejectTooltipCreation(){clearTimeout(this.hintTimeout)}showTooltip(Jt,$t,ht){this.hintTimeout&&clearTimeout(this.hintTimeout),this.hintTimeout=setTimeout(()=>{let pt=this.tooltip.nativeElement;const t=this.getDataPropValue("tooltipStyles");if(t){const Y=JSON.parse(t);for(const q in Y)pt.style.setProperty(q,Y[q])}pt.innerHTML=Jt,pt.style.left=$t.toString()+"px",pt.style.top=ht.toString()+"px",pt.style.display="block"},600)}showPopup(){let Jt=this.popupElement;const $t=this.getDataPropValue("popupStyles");if($t){const ht=JSON.parse($t);for(const pt in ht)Jt.style.setProperty(pt,ht[pt])}this.popupElement.style.visibility="hidden",setTimeout(()=>{this.popupElement.style.visibility="visible",this.map.render()},0)}hidePopup(){this.popupElement.style.visibility="hidden"}doDrillUp(){this.hideTooltip(),this.hidePopup(),this.doDrill()}displayAsPivot(Jt){this.hideTooltip(),this.rejectTooltipCreation(),"pivot"===this.widget.type?(this.widget.isDrillthrough=null,this.restoreWidgetType()):(this.widget.pivotMdx=Jt||this.getMDX(),this.changeWidgetType("pivot"))}requestPolygons(){let Jt=this.widget.name;-1===this.widget.name.indexOf(".")&&(Jt+=".js"),Jt=this.getDataPropValue("coordsJsFile")||Jt;const ht=(this.ss.serverSettings.DefaultApp||"/csp")+"/"+Jt;this.ds.getFile(ht).then(pt=>this.onPolyFileLoaded(pt)).finally(()=>this.hideLoading())}onPolyFileLoaded(result){this.isGeoJSON=!1;try{const Jt=JSON.parse(result);return this.polyData=Jt,this.isGeoJSON=!0,void this.buildPolygons()}catch(Jt){}var polys={};result="("+result+")(polys)",eval(result),this.polyData=polys,this.buildPolygons()}onPolyJSONFileLoaded(Jt){this.polyData=Jt,this.buildPolygons()}getFeatureColor(name,value){let item=this.mapData.Cols[1].tuples.filter(Jt=>Jt.caption===name);if(0===item.length)return;item=item[0];let parts,idx=this.mapData.Cols[1].tuples.indexOf(item),l=this.mapData.Cols[0].tuples.length,colorProp="ColorExplicitValue",color;colorProp=this.getDataPropValue("colorProperty")||colorProp,color=isNaN(parseInt(colorProp,10))?this.mapData.Cols[0].tuples.filter(Jt=>Jt.caption===colorProp):this.mapData.Cols[0].tuples.slice(colorProp,1),color=color[0];const colorIdx=this.mapData.Cols[0].tuples.indexOf(color);let col=this.mapData.Data[idx*l+colorIdx];if(isNaN(parseFloat(col)))return-1!==col.toString().indexOf("rgb")&&-1===col.toString().indexOf("rgba")&&(col=col.replace("rgb","rgba"),col=col.substr(0,col.length-1)+", 0)"),parts=col.split(","),parts[3]="0.4)",parts.join(",");{let f=this.getDataPropValue("colorFormula")||"hsl((255-x)/255 * 120, 100%, 50%)";this.isRGBColor&&(f="rgb(x, 255-x, 0)");const fidx=f.indexOf("("),firstPart=f.substring(0,fidx).toLowerCase();f=f.substring(fidx+1,f.length-1),parts=f.split(",");const x=value||0;var tmp;for(let i=0;i255&&(tmp=255),tmp<0&&(tmp=0),parts[i]=Math.floor(tmp).toString());return-1===firstPart.indexOf("a")?firstPart+"a("+parts.join(",")+", 0.45)":firstPart+"("+parts.join(",")+")"}}centerView(Jt,$t){let ht,pt,t;if(this.widget.properties&&(ht=parseFloat(this.widget.properties.latitude),pt=parseFloat(this.widget.properties.longitude),t=parseFloat(this.widget.properties.zoom)),0!==this.drills.length||isNaN(ht)||isNaN(pt)||isNaN(t)||void 0===ht||void 0===pt||void 0===t){if(Math.abs(Jt[0]-$t[0])<1e-8&&Math.abs(Jt[1]-$t[1])<1e-8)return;let Y=(0,ol_proj__WEBPACK_IMPORTED_MODULE_2__.vs)([Jt[0],Jt[1]],"EPSG:4326","EPSG:900913"),q=(0,ol_proj__WEBPACK_IMPORTED_MODULE_2__.vs)([$t[0],$t[1]],"EPSG:4326","EPSG:900913");this.map.getView().fit([Y[0],Y[1],q[0],q[1]],this.map.getSize())}else this.map.getView().setCenter((0,ol_proj__WEBPACK_IMPORTED_MODULE_2__.vs)([pt,ht],"EPSG:4326","EPSG:900913")),this.map.getView().setZoom(t);"1"===this.getDataPropValue("fixMaxZoom")&&this.map.getView().setMaxZoom(this.map.getView().getZoom()),"1"===this.getDataPropValue("fixMinZoom")&&this.map.getView().setMinZoom(this.map.getView().getZoom()),this.getDataPropValue("maxZoom")&&this.map.getView().setMaxZoom(parseFloat(this.getDataPropValue("maxZoom")))}buildPolygons(){let Jt,$t,pt,Y,q,O,U,G,Z,$;this.isRGBColor=!1;let W=this.getDataPropValue("colorProperty")||"ColorHSLValue";const V=this.getDataPropValue("coordsProperty")||"CoordKeyValue";if(!this.polyData||!this.map||!this.mapData)return;let R=[];q=this.mapData.Cols[0].tuples.length;let P=Number.MAX_VALUE,k=Number.MIN_VALUE,E=0;for(isNaN(parseInt(W))?($=this.mapData.Cols[0].tuples.filter(A=>A.caption===W),E=this.mapData.Cols[0].tuples.indexOf($[0]),-1===E&&(this.isRGBColor=!0,W="ColorRGBValue",$=this.mapData.Cols[0].tuples.filter(A=>A.caption===W),E=this.mapData.Cols[0].tuples.indexOf($[0]))):E=parseInt(this.widget.properties.colorProperty,10)||0,O=0;Ok&&(k=U);let w=[99999999,99999999],T=[-99999999,-99999999];for(Z=-1,$=this.mapData.Cols[0].tuples.filter(A=>A.caption===V),0===$.length&&($=this.mapData.Cols[0].tuples.filter(A=>"Key"===A.caption)),0!==$.length&&(Z=this.mapData.Cols[0].tuples.indexOf($[0])),O=0;OT[0]&&(T[0]=parseFloat(o)),parseFloat($t)>T[1]&&(T[1]=parseFloat($t)),u.push(n.getCoordinates())}if(b.push(u),b.length>300){let a=[];for(pt=0;ptd.caption===j);if(0!==b.length){const d=this.mapData.Cols[0].tuples.indexOf(b[0]);-1!==d&&(N=this.mapData.Data[O*q+d])}}let M=ol_geom__WEBPACK_IMPORTED_MODULE_9__.ZP;this.isGeoJSON&&(G.type.toLowerCase(),M=ol_geom__WEBPACK_IMPORTED_MODULE_10__.Z);let I,D=new ol_Feature__WEBPACK_IMPORTED_MODULE_11__.Z({geometry:new M(v),key:A,title:N,dataIdx:O*q,path:this.mapData.Cols[1].tuples[O].path,desc:this.mapData.Cols[1].tuples[O].title});if(isNaN(parseFloat(N))||(N=this.formatNumber(N,"")),S){const b=JSON.parse(S),d=b.size||12,u=b.font||"Calibri,Arial,sans-serif",a=b.color||"#000",n=b.stroke||"#fff",o=b.strokeWidth||2;I=new ol_style__WEBPACK_IMPORTED_MODULE_12__.Z({font:`${d}px ${u}`,fill:new ol_style__WEBPACK_IMPORTED_MODULE_13__.Z({color:a}),stroke:new ol_style__WEBPACK_IMPORTED_MODULE_14__.Z({color:n,width:o}),text:N+""})}U=this.mapData.Data[O*q+E],D.setStyle(new ol_style__WEBPACK_IMPORTED_MODULE_15__.ZP({zIndex:0,fill:new ol_style__WEBPACK_IMPORTED_MODULE_13__.Z({color:this.getFeatureColor(A,255*(U-P)/(k-P))||"none"}),stroke:new ol_style__WEBPACK_IMPORTED_MODULE_14__.Z({color:"rgba(0, 0, 0, 0.3)",width:1}),text:I})),R.push(D)}this.featureOverlay.getSource().clear(),this.polys.clear(),this.polys.addFeatures(R),setTimeout(()=>{this.centerView(w,T)})}retrieveData(Jt){var $t,ht;if(setTimeout(()=>{this.map.updateSize()},0),Jt.Error)return void this.showError(Jt.Error);Jt.Info&&(this.dataInfo=Jt.Info),this.hideTooltip(),this.markers.clear(),this.mapData=Jt,this.buildPolygons();let pt=[Number.MAX_VALUE,Number.MAX_VALUE],t=[-Number.MAX_VALUE,-Number.MAX_VALUE];if(Jt&&this.map){let Y=Jt.Cols[0].tuples.length,q=0,O=[],U="latitude";this.widget.properties&&this.widget.properties.latitudeProperty&&(U=this.widget.properties.latitudeProperty);let G="longitude";this.widget.properties&&this.widget.properties.longitudeProperty&&(G=this.widget.properties.longitudeProperty);let Z=-1,$=-1,W=Jt.Cols[0].tuples.filter(R=>R.caption.toLowerCase()===U);if(0!==W.length&&($=Jt.Cols[0].tuples.indexOf(W[0])),W=Jt.Cols[0].tuples.filter(R=>R.caption.toLowerCase()===G),0!==W.length&&(Z=Jt.Cols[0].tuples.indexOf(W[0])),-1===$||-1===Z)return;let V=Jt.Cols[1].tuples;null!==($t=V[0])&&void 0!==$t&&$t.children&&(V=null===(ht=V[0])||void 0===ht?void 0:ht.children);for(let R=0;Rt[1]&&(t[1]=parseFloat(k.toString())),parseFloat(P.toString())>t[0]&&(t[0]=parseFloat(P.toString())),pt[0]==t[0]&&(pt[0]-=.25,t[0]+=.25),pt[1]==t[1]&&(pt[1]-=.25,t[1]+=.25),O.push(A),q+=Y}0!==O.length&&(this.markers.addFeatures(O),this.centerView(pt,t)),this.centerView(pt,t)}}initialize(){this.iconStyle=new ol_style__WEBPACK_IMPORTED_MODULE_15__.ZP({zIndex:100,image:new ol_style__WEBPACK_IMPORTED_MODULE_16__.Z({anchor:[.5,40],anchorXUnits:"fraction",anchorYUnits:"pixels",opacity:1,src:"assets/img/map-marker-red.png"})});this.map;const $t=new ol_style__WEBPACK_IMPORTED_MODULE_15__.ZP({zIndex:0,stroke:new ol_style__WEBPACK_IMPORTED_MODULE_14__.Z({color:"rgba(0, 0, 0, 0.5)",width:1})});this.polyStyle=$t,this.hoverStyle=new ol_style__WEBPACK_IMPORTED_MODULE_15__.ZP({zIndex:1,stroke:new ol_style__WEBPACK_IMPORTED_MODULE_14__.Z({color:"blue",width:2})}),this.polys=new ol_source__WEBPACK_IMPORTED_MODULE_17__.Z({features:[]});let ht=new ol_layer__WEBPACK_IMPORTED_MODULE_18__.Z({source:this.polys,style:this.polyStyle});ht.setZIndex(1),this.map.addLayer(ht),this.markers=new ol_source__WEBPACK_IMPORTED_MODULE_17__.Z({features:[]});let pt=new ol_Collection__WEBPACK_IMPORTED_MODULE_19__.Z;this.featureOverlay=new ol_layer__WEBPACK_IMPORTED_MODULE_18__.Z({map:this.map,source:new ol_source__WEBPACK_IMPORTED_MODULE_17__.Z({features:pt,useSpatialIndex:!1}),style:this.hoverStyle,updateWhileAnimating:!0,updateWhileInteracting:!0}),this.featureOverlay.setZIndex(10),this.featureOverlay.setMap(this.map),ht=new ol_layer__WEBPACK_IMPORTED_MODULE_18__.Z({source:this.markers,style:this.iconStyle}),ht.setZIndex(100),this.map.addLayer(ht),this.map.on("click",t=>this.onMapClick(t)),this.map.on("pointermove",t=>this.onPointerMove(t))}onPointerMove(Jt){var $t,ht;if(_environments_dsw__WEBPACK_IMPORTED_MODULE_1__._.mobile&&Jt.originalEvent.touches&&1!==Jt.originalEvent.touches.length)return;this.hideTooltip();let pt=this.map.forEachFeatureAtPixel(Jt.pixel,(q,O)=>q);if(pt){let O,q=pt.get("dataIdx"),U="TooltipValue",G="";const Z=this.getDataProp("tooltipProperty");Z&&(U=Z.dataValue,G=Z.format),O=this.getDataByColumnName(this.mapData,U||"Name",q,G),!O&&!(null===($t=this.widget.properties)||void 0===$t)&&$t.polygonTitleProperty&&pt.get("title")&&(O=pt.get("title")),O||(O=this.getDataByColumnName(this.mapData,"Name",q)),O||(O=((null===(ht=this.mapData.Cols[1].tuples[0])||void 0===ht?void 0:ht.children)||this.mapData.Cols[1].tuples)[Math.floor(q/this.mapData.Cols[0].tuples.length)].caption||""),O&&this.showTooltip(O,Jt.pixel[0],Jt.pixel[1])}if(Jt.dragging)return void this.hideTooltip();let t=this.map.getEventPixel(Jt.originalEvent),Y=this.map.hasFeatureAtPixel(t);this.map.getTarget().style.cursor=Y?"pointer":"",this.featureOverlay.getSource().clear(),pt&&this.featureOverlay.getSource().addFeature(pt)}getTooltipData(Jt){if(!this.mapData)return;let $t=[],ht=this.mapData.Cols[1].tuples.filter(O=>O.caption===Jt);if(0===ht.length)return;ht=ht[0];let pt=this.mapData.Cols[1].tuples.indexOf(ht),t=this.mapData.Cols[0].tuples.length,Y=this.mapData.Cols[0].tuples.filter(O=>"tooltip"===O.caption);if(0===Y.length)return;Y=Y[0];let q=this.mapData.Cols[0].tuples.indexOf(Y);return $t.push({label:"",value:this.mapData.Data[pt*t+q].split(":")[1]||""}),$t}onMapClick(Jt){if(this.hidePopup(),_environments_dsw__WEBPACK_IMPORTED_MODULE_1__._.mobile&&Jt.originalEvent.touches&&1!==Jt.originalEvent.touches.length)return;let $t=this.map.forEachFeatureAtPixel(Jt.pixel,(pt,t)=>pt);if($t){if(this.hideTooltip(),_environments_dsw__WEBPACK_IMPORTED_MODULE_1__._.mobile&&this._selectedFeature!==$t)return this._selectedFeature=$t,void this.onPointerMove(Jt);this.doDrill($t.get("path"),$t.get("name")||$t.get("title"),void 0,()=>{ht($t)})}else this.hideTooltip();const ht=pt=>{let q,t=pt.get("dataIdx"),O="PopupValue",U="";const G=this.getDataProp("popupProperty");if(G&&(O=G.dataValue,U=G.format),O?(q=""+(pt.get("key")||pt.values_.title)+"
",q+=O+": ",q+=this.getDataByColumnName(this.mapData,O,t,U)):q=this.mapData.Cols[1].tuples[Math.floor(t/this.mapData.Cols[0].tuples.length)].caption||this.mapData.Cols[1].tuples[Math.floor(t/this.mapData.Cols[0].tuples.length)].desc||"",!q)if(q=""+(pt.get("name")||pt.values_.title)+"
",this.mapData.Cols[0].tuples.length)for(let Z=0;Z${this.getDataByColumnName(this.mapData,$,t)}`,Z!==this.mapData.Cols[0].tuples.length-1&&(q+="
")}else q=this.getDataByColumnName(this.mapData,"Name",t);q&&(this.model.tooltip.content=q,this.popupElement.style.left=Jt.pixel[0]+"px",this.popupElement.style.top=Jt.pixel[1]-10+"px",this.popupElement.innerHTML=q,this.showPopup())}}onResize(){this.map&&this.map.updateSize()}buildGeoJSON(Jt){}getPartsByKey(Jt,$t="Key"){if(this.isGeoJSON){const ht=this.polyData.features.find(pt=>pt.properties[$t]===Jt);return ht?ht.geometry:void 0}if(this.polyData[Jt])return this.polyData[Jt].split(";")}convertCoordinatesOfGEOJson(Jt,$t,ht){const pt=JSON.parse(JSON.stringify(Jt.coordinates));for(let t=0;tht[0]&&(ht[0]=parseFloat(Z)),parseFloat(U)>ht[1]&&(ht[1]=parseFloat(U))}return{poly:pt,min:$t,max:ht}}}MapWidgetComponent.\u0275fac=function(){let Jt;return function(ht){return(Jt||(Jt=_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275getInheritedFactory(MapWidgetComponent)))(ht||MapWidgetComponent)}}(),MapWidgetComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275defineComponent({type:MapWidgetComponent,selectors:[["dsw-map-widget"]],viewQuery:function Jt($t,ht){if(1&$t&&(_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275viewQuery(_c0,7),_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275viewQuery(_c1,7)),2&$t){let pt;_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275queryRefresh(pt=_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275loadQuery())&&(ht.popupEl=pt.first),_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275queryRefresh(pt=_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275loadQuery())&&(ht.tooltip=pt.first)}},features:[_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275InheritDefinitionFeature],decls:7,vars:0,consts:[[1,"panel","panel-default","map-popup",2,"visibility","hidden"],["popup",""],["ng-bind-html","model.tooltip.content | sanitize"],[1,"arrow_box"],[1,"tooltip",2,"display","none"],["tooltip",""]],template:function Jt($t,ht){1&$t&&(_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275elementStart(0,"div",0,1)(2,"div"),_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275element(3,"div",2),_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275element(4,"div",3),_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275elementEnd(),_angular_core__WEBPACK_IMPORTED_MODULE_20__.\u0275\u0275element(5,"div",4,5))},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{position:relative}.tooltip[_ngcontent-%COMP%]{margin-top:24px;z-index:1000;position:absolute;border:solid 1px #000000;color:#000;background-color:#ffffe1;white-space:nowrap;font-family:Tahoma,sans-serif;fontSize:13px;box-shadow:2px 2px 4px #7f7f7f;padding:2px 3px}.map-popup[_ngcontent-%COMP%]{transform:translateY(-100%) translate(-50%);z-index:1;position:absolute;background-color:var(--cl-widget-filter-bg);margin-bottom:0;border-color:#b0b0b0;padding:4px;box-shadow:1px 1px 9px #32323280;color:var(--cl-widget-header-txt)}.map-popup[_ngcontent-%COMP%]:after{content:" ";display:block;width:0;height:0;border-style:solid;border-width:8px 4px 0 4px;bottom:-8px;left:calc(50% - 4px);position:absolute;border-color:var(--cl-widget-filter-bg) transparent transparent transparent}']})},1851:(Jt,$t,ht)=>{"use strict";ht.d($t,{X:()=>G});var pt=ht(7028),t=ht(4470),Y=ht(1571),q=ht(6895);const O=["images"];function U(Z,$){if(1&Z){const W=Y.\u0275\u0275getCurrentView();Y.\u0275\u0275elementStart(0,"div",1),Y.\u0275\u0275listener("click",function(){const P=Y.\u0275\u0275restoreView(W).$implicit,k=Y.\u0275\u0275nextContext();return Y.\u0275\u0275resetView(k.onClick(P))}),Y.\u0275\u0275namespaceSVG(),Y.\u0275\u0275elementStart(1,"svg",2,3)(3,"text"),Y.\u0275\u0275text(4),Y.\u0275\u0275elementStart(5,"tspan",4),Y.\u0275\u0275text(6),Y.\u0275\u0275elementEnd(),Y.\u0275\u0275elementStart(7,"tspan",5),Y.\u0275\u0275text(8),Y.\u0275\u0275elementEnd()()(),Y.\u0275\u0275namespaceHTML(),Y.\u0275\u0275elementStart(9,"label"),Y.\u0275\u0275text(10),Y.\u0275\u0275elementEnd()()}if(2&Z){const W=$.$implicit,V=Y.\u0275\u0275nextContext();Y.\u0275\u0275classProp("clickable",V.canDrillthrough),Y.\u0275\u0275advance(3),Y.\u0275\u0275styleProp("fill",W.valueColor),Y.\u0275\u0275advance(1),Y.\u0275\u0275textInterpolate1("",W.value," "),Y.\u0275\u0275advance(2),Y.\u0275\u0275textInterpolate(W.deltaNeg),Y.\u0275\u0275advance(2),Y.\u0275\u0275textInterpolate(W.delta),Y.\u0275\u0275advance(2),Y.\u0275\u0275textInterpolate(W.label)}}class G extends pt.X{get flexDirection(){var $;const W=null===($=this.el)||void 0===$?void 0:$.nativeElement;if(W)return W.offsetWidth>W.offsetHeight?"row":"column"}get canDrillthrough(){return this.canDoDrillthrough}ngOnInit(){this.model.textData=[],super.ngOnInit()}ngAfterViewInit(){}findDataPropByName($){if(this.widget.dataProperties)for(let W=0;W{const W=$.nativeElement,R=W.firstChild.getBBox();W.setAttribute("viewBox",[R.x,R.y,R.width,R.height].join(" "))})}retrieveData($){var W,V,R;if(this.model.textData=[],this.hideLoading(),$)for(let P=0;P<$.Cols[0].tuples.length;P++){let k=null;if(this.widget.dataProperties&&(k=this.getDataPropByDataValue($.Cols[0].tuples[P].dimension),!k))continue;const E=this.getDataValue(P,$,k);let w="var(--cl-text-widget-font)";this.widget.tile&&(w=window.getComputedStyle(document.querySelector("."+t._.const.fontColors[this.widget.tile.fontColor])).getPropertyValue("color"));let T=$.Cols[0].tuples[P].caption;const y=this.findDataPropByName(null===(W=$.Cols[0].tuples[P])||void 0===W?void 0:W.caption);if(y&&(T="$auto"===y.label?y.dataValue||T:y.label||T),"delta"===T.substr(0,5).toLowerCase()){const A=parseInt(T.substring(5,T.length),10)-1;!isNaN(A)&&this.model.textData[A]&&"0"!==E.toString()&&("-"!==E.toString()[0]?this.model.textData[A].delta="+"+E.toString():this.model.textData[A].deltaNeg=E.toString())}else{let A=w;if(y){const g=y.thresholdLower,v=y.thresholdUpper,S=y.override;if(S.normalStyle){const N=this.getCss(S.normalStyle);N.fill&&(A=N.fill)}if(void 0!==g&&""!==g&&this.getNumber(E)v){let N=null===(R=this.widget.properties)||void 0===R?void 0:R.highRangeColor;S.highStyle&&(N=this.getCss(S.highStyle).fill),N&&(A=N)}}this.model.textData.push({label:T,value:E,color:w,valueColor:A,dimension:$.Cols[0].tuples[P].dimension})}}this.cd.detectChanges(),setTimeout(()=>this.adjustSize())}getCss($){const W={};return $.split(";").filter(V=>V).forEach(V=>{const R=V.split(":");W[R[0]]=R[1]}),W}getNumber($){return"string"==typeof $?parseFloat($.replace(/,/g,"").replace(/ /g,"")):$}onClick($){this.doDrillthrough("",$.label)}}G.\u0275fac=function(){let Z;return function(W){return(Z||(Z=Y.\u0275\u0275getInheritedFactory(G)))(W||G)}}(),G.\u0275cmp=Y.\u0275\u0275defineComponent({type:G,selectors:[["dsw-wtext"]],viewQuery:function($,W){if(1&$&&Y.\u0275\u0275viewQuery(O,5),2&$){let V;Y.\u0275\u0275queryRefresh(V=Y.\u0275\u0275loadQuery())&&(W.images=V)}},hostVars:2,hostBindings:function($,W){2&$&&Y.\u0275\u0275styleProp("flex-direction",W.flexDirection)},inputs:{widget:"widget"},features:[Y.\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[["class","item2",3,"clickable","click",4,"ngFor","ngForOf"],[1,"item2",3,"click"],[1,"text-widget"],["images",""],[2,"font-size","4px","fill","red"],[2,"font-size","4px","fill","green"]],template:function($,W){1&$&&Y.\u0275\u0275template(0,U,11,8,"div",0),2&$&&Y.\u0275\u0275property("ngForOf",W.model.textData)},dependencies:[q.NgForOf],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:flex;flex-display:row;width:100%;height:100%;font-family:Roboto Condensed;-webkit-user-select:initial;user-select:initial}.inline[_nghost-%COMP%] label[_ngcontent-%COMP%]{background-color:transparent;background-image:none}.item[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0}label[_ngcontent-%COMP%]{display:block;flex-shrink:0;height:16px;background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);width:100%;text-align:center;font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item2[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 100%;justify-content:center;align-items:center;margin:10px;background-color:#fafafa;padding:10px;min-height:0;min-width:0}.item2.clickable[_ngcontent-%COMP%]{cursor:pointer}.item2[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{height:auto;background:transparent;color:gray;font-size:19px}.item2[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{height:50%;width:100%;display:block}.text-widget[_ngcontent-%COMP%]{height:100%}"]})},2544:(Jt,$t,ht)=>{"use strict";ht.d($t,{M:()=>t});var pt=ht(1571);class t{constructor(){this.emitter=new pt.EventEmitter}broadcast(q,O){this.emitter.emit({message:q,value:O})}subscribe(q,O){return this.emitter.subscribe(U=>{U.message===q&&O(U.value)})}}t.\u0275fac=function(q){return new(q||t)},t.\u0275prov=pt.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"})},9386:(Jt,$t,ht)=>{"use strict";ht.d($t,{s:()=>O});var pt=ht(4470),t=ht(1135),Y=ht(1571),q=ht(1188);class O{constructor(G){this.ss=G,this.widgets=[],this.allWidgets=[],this.current=new t.X(""),this.dashboard=new t.X(null)}setWidgets(G){this.widgets=G}getWidgets(){return this.widgets}getWidgetsWithoutEmpty(G=[]){return this.widgets.filter(Z=>Z.type!==pt._.const.emptyWidgetClass&&!G.includes(Z.name))}setAllWidgets(G){this.allWidgets=G}getAllWidgets(){return this.allWidgets}saveWidgetPositionAndSize(G){const Z=this.ss.getWidgetsSettings(G.dashboard),$=G.name;Z[$]||(Z[$]={}),isNaN(G.x)||(Z[$].col=G.x),isNaN(G.y)||(Z[$].row=G.y),isNaN(G.cols)||(Z[$].sizeX=G.cols),isNaN(G.rows)||(Z[$].sizeY=G.rows),this.ss.setWidgetsSettings(Z,G.dashboard)}generateDisplayInfo(G){if(G.displayInfo)return;let Z=1,$=1;const W=this.dashboard.value;W&&(Z=Math.floor(12/W.displayInfo.gridCols),Z<1&&(Z=1),$<1&&($=1));const V={topCol:Math.floor(G.x/Z),leftRow:Math.floor(G.y/$),colWidth:Math.floor(G.cols/Z),rowHeight:Math.floor(G.rows)};G.displayInfo=V}}O.\u0275fac=function(G){return new(G||O)(Y.\u0275\u0275inject(q.V))},O.\u0275prov=Y.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac,providedIn:"root"})},1332:(Jt,$t,ht)=>{"use strict";ht.d($t,{Do:()=>w});var pt=ht(655),t=ht(529),Y=ht(4470),q=ht(9646),O=ht(6805),U=ht(930);function G(T,y){const A="object"==typeof y;return new Promise((g,v)=>{const S=new U.Hp({next:N=>{g(N),S.unsubscribe()},error:v,complete:()=>{A?g(y.defaultValue):v(new O.K)}});T.subscribe(S)})}var Z=ht(8505),$=ht(262),W=ht(1444),V=ht(1571),R=ht(4411),P=ht(4889);let k="MDX2JSON",E="MDX2JSON";class w{get url(){let y="";const A=localStorage.getItem("connectorRedirect");return A&&(y=A),y+"../"+k+"/"}constructor(y,A,g,v){this.route=y,this.router=A,this.http=g,this.es=v,this.firstRun=!0,this.dashboardList=new Map,this.withCredentialsHeaders={withCredentials:!0,headers:new t.WM({"Accept-Language":"en-US"})},this.withoutCredentialsHeaders={headers:new t.WM({"Accept-Language":"en-US"})},this.withCredentialsTimeoutHeaders={withCredentials:!0,headers:new t.WM({timeout:Y._.const.timeout.toString(),"Accept-Language":"en-US"})},this.withoutCredentialsTimeoutHeaders={headers:new t.WM({timeout:Y._.const.timeout.toString(),"Accept-Language":"en-US"})},this.username=""}gotoLoginPage(){}getDashboards(){const y=W.l.toLowerCase();return this.dashboardList.has(y)?(0,q.of)(JSON.parse(this.dashboardList.get(y))):this.http.post(this.url+"Dashboards?Namespace="+W.l,{Folder:""},{withCredentials:!0}).pipe((0,Z.b)(A=>{this.dashboardList.set(W.l.toLowerCase(),JSON.stringify(A))}),this.handleError())}getKPIData(y,A,g=!1){return this.http.post(this.url+"KPI?Namespace="+W.l,{KPI:y,FILTERS:A,Drillthrough:g?1:void 0},this.withCredentialsTimeoutHeaders).toPromise()}getPivotData(y){return G(this.http.post(this.url+"DataSource?Namespace="+W.l,{DataSource:y},this.withCredentialsTimeoutHeaders))}getTermList(y){return this.http.post(this.url+"TermList?Namespace="+W.l,{TermList:y},this.withCredentialsTimeoutHeaders).toPromise()}execMDX(y){const A=y.split(" ");return A&&0!==A.length&&"DRILLTHROUGH"===A[0].toUpperCase()?this.execMDXDrillthrough(y,W.l):this.http.post(this.url+"MDX?Namespace="+W.l,{MDX:y},this.withCredentialsTimeoutHeaders).toPromise()}execMDXDrillthrough(y,A){return this.http.post(this.url+"MDXDrillthrough?Namespace="+A,{MDX:y},this.withCredentialsTimeoutHeaders).toPromise()}getWidgets(y){return G(this.http.post(this.url+"Dashboard?Namespace="+W.l,{Dashboard:y},Object.assign(Object.assign({},this.withCredentialsTimeoutHeaders),{"Content-Type":"application/json"})).pipe(this.handleError()))}handleError(){return(0,$.K)(y=>{var A,g;if(401===y.status||403===y.status)return this.router.navigateByUrl("/login?from="+encodeURIComponent(this.router.url)),(0,q.of)();let v=y.message;throw!(null===(A=y?.error)||void 0===A)&&A.summary&&(v=null===(g=y?.error)||void 0===g?void 0:g.summary),this.es.show(v),y})}searchFilters(y,A,g,v){let S={DataSource:A,Values:1,Search:y};return g&&g.length&&(S.RelatedFilters=g),v&&v.length&&(S.RequestedFilters=v),this.http.post(this.url+"Filters?Namespace="+W.l,S,this.withCredentialsTimeoutHeaders).toPromise()}getPivotVariables(y){return this.http.get(this.url+"PivotVariables/"+y+"?Namespace="+W.l,this.withCredentialsTimeoutHeaders).toPromise()}getFile(y){return this.http.get(y,{responseType:"text"}).toPromise()}loadMainConfig(){return this.http.get("config.json",{headers:new t.WM({withCredentials:"false"})}).toPromise().then(y=>{try{y&&y.endpoints&&y.endpoints.mdx2json&&(k=y.endpoints.mdx2json.replace(/\//gi,"").replace(/ /g,""),E=y.namespace.replace(/\//gi,"").replace(/ /g,""))}catch{console.error('Incorrect config in file "config.json"')}})}loadConfig(y){return this.http.get("configs/"+y.toLowerCase()+".json",{headers:new t.WM({withCredentials:"false"})}).toPromise()}loadAddons(){return(0,pt.mG)(this,void 0,void 0,function*(){return this.http.get(this.url+"Addons",this.withCredentialsHeaders).toPromise()})}loadNamespaceConfig(){return this.http.get(this.url+`Config/${W.l}?Namespace=${E}`,this.withCredentialsHeaders).toPromise()}loadOAuthConfig(){return this.http.get("dswoauth/check",this.withoutCredentialsHeaders).toPromise()}signIn(y,A,g,v){return this.username=y,this.http.get(v?v+"Test?Namespace="+g:this.url+"Test?Namespace="+g,{withCredentials:!0,headers:new t.WM({timeout:Y._.const.timeout.toString(),Authorization:"Basic "+btoa(y+":"+A)})}).toPromise()}signOut(){this.firstRun=!0;const A=(v,S,N)=>{const j=new Date;j.setTime(j.getTime()+864e5*N),document.cookie=v+"="+S+";path=/;expires="+j.toUTCString()};this.username="";try{localStorage.userName="",sessionStorage.userName=""}catch{}const g=()=>{A("CSPWSERVERID","",-1),A("CacheLoginToken","",-1),A("CSPSESSIONID-SP-80-UP-","",-1),A("CSPSESSIONID-SP-80-UP-MDX2JSON-","",-1),this.router.navigateByUrl("/login")};return this.http.get(this.url+`Logout?Namespace=${W.l}`,this.withCredentialsHeaders).toPromise().then(()=>{g()}).catch(()=>{g()})}execAction(y,A){return this.http.post(this.url+"Action/"+A+"/"+y+"?Namespace="+W.l,{},this.withCredentialsTimeoutHeaders).toPromise()}getSettings(y){return this.http.get(this.url+"Test?Namespace="+y,this.withCredentialsTimeoutHeaders).toPromise()}requestListOfDataSources(y){return G(this.http.post(this.url+`DataSourceList/${y}?Namespace=`+W.l,{},this.withCredentialsTimeoutHeaders))}saveWidget(y,A,g){return(0,pt.mG)(this,void 0,void 0,function*(){return G(this.http.post(this.url+"saveWidget?Namespace="+W.l,{key:g||"",Dashboard:y,WidgetData:A},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}deleteWidget(y,A){return(0,pt.mG)(this,void 0,void 0,function*(){return G(this.http.post(this.url+"deleteWidget?Namespace="+W.l,{key:A||"",Dashboard:y},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}}w.\u0275fac=function(y){return new(y||w)(V.\u0275\u0275inject(R.ActivatedRoute),V.\u0275\u0275inject(R.Router),V.\u0275\u0275inject(t.eN),V.\u0275\u0275inject(P.T))},w.\u0275prov=V.\u0275\u0275defineInjectable({token:w,factory:w.\u0275fac,providedIn:"root"})},4889:(Jt,$t,ht)=>{"use strict";ht.d($t,{T:()=>q});var pt=ht(1135),t=ht(1571);class q{constructor(){this.lastId=0,this.errors=[],this.errors$=new pt.X([])}emit(){this.errors$.next([...this.errors])}getIndex(U){return this.errors.indexOf(U)}close(U){const G=this.errors.findIndex(Z=>Z===U);-1!==G&&(this.errors.splice(G,1),this.emit())}show(U,G=!1,Z=5e3){this.lastId++;const $={id:this.lastId,message:U,delay:Z,isLeft:G};this.errors.push($),0!==Z&&setTimeout(()=>{this.close($)},Z),this.emit()}}q.\u0275fac=function(U){return new(U||q)},q.\u0275prov=t.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"})},2983:(Jt,$t,ht)=>{"use strict";ht.d($t,{i:()=>V});var pt=ht(1571),t=ht(4411),Y=ht(7241),q=ht(1188),O=ht(1332),U=ht(1444),G=ht(2544),Z=ht(9386),$=ht(8297);class V{constructor(P,k,E,w,T,y,A,g){this.route=P,this.us=k,this.ss=E,this.ds=w,this.ns=T,this.bs=y,this.dbs=A,this.i18n=g,this.dashboard="",this.filtersChanged=!1,this.isFiltersOnToolbarExists=!1,this.items=[],this.onApplyFilter=new pt.EventEmitter,this.onFiltersChanged=new pt.EventEmitter}init(P,k){var E,w;this.filtersChanged=!0,this.dashboard=k,this.items=[],this.isFiltersOnToolbarExists=!1;for(let T=0;T"&[now]"!==v.path.toLowerCase()))}y.label=y.label.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(\/\/.*)/g,"")}"1"===this.route.snapshot.queryParamMap.get("nofilters")&&(y.value=""),y.valueDisplay=this.findDisplayText(y)}this.loadFiltersFromSettings(),this.loadFiltersFromUrl()}removeParameterFromUrl(P,k){return P.replace(new RegExp("[?&]"+k+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+k+"=[^&]*&"),"$1")}getFiltersShareUrl(){let P=window.location.href.split("?")[0];const k=P.split("#")[1],E=this.getFiltersUrlString(),w="FILTERS=TARGET:*;FILTER:"+E;return E&&(k&&-1!==k.indexOf("?")?P+="&"+w:P+="?"+w),P}getFiltersUrlString(P,k=!1,E=".",w="~"){const T=[];let y=P?this.getAffectsFilters(P):this.items;k&&y&&(y=y.filter(A=>"*"!==A.target));for(let A=0;A{"filters"===g.split("=")[0].toLowerCase()&&(E=g.split("=")[1])});try{this.isBase64(decodeURIComponent(E))&&(E=decodeURIComponent(E),"="===E.charAt(E.length-1)&&(E=E.slice(0,-1)),E=atob(E))}catch{}if(!E){const g=Object.keys(this.route.snapshot.queryParams)[0];if(!g||(E=g.split("FILTERS=")[1],!E))return}const w=E.split(";");let T=null,y="";for(let g=0;g-1!==g.targetArray.indexOf(T)||g.target===T||"*"===g.target):this.items.slice(),A.forEach((g,v)=>{const S=decodeURIComponent(y).split("~");for(let N=0;Nd.path===I),g.toIdx=g.values.findIndex(d=>d.path===b),g.isInterval=!0}else g.value="&"+j.split(".&")[1]}}g.valueDisplay=this.findDisplayText(g)})}loadFiltersFromSettings(){var P;if("1"===this.route.snapshot.queryParamMap.get("nofilters")||this.us.isEmbedded()||!1===(null===(P=this.ss.getAppSettings())||void 0===P?void 0:P.isSaveFilters))return;let k=!1;const E=this.ss.getWidgetsSettings(this.dashboard);if(E._filters)for(let w=0;wA.targetProperty===T.targetProperty)[0];if(y){if(y.value=T.value,y.isExclude=T.isExclude,y.isInterval=T.isInterval,y.isInterval)y.fromIdx=T.fromIdx,y.toIdx=T.toIdx,y.isDate?(y.valueDisplay=T.valueDisplay,y.values=T.value.toString().split("|").map(A=>({path:A,checked:!0}))):y.valueDisplay=y.values[y.fromIdx].name+":"+y.values[y.toIdx].name;else{const A=T.value.toString().split("|");y.values.forEach(g=>{-1!==A.indexOf(g.path.toString())&&(g.checked=!0)}),this._addSavedFilterToFilterList(T,y),T.valueDisplay&&(y.valueDisplay=T.valueDisplay.trim()),y.valueDisplay||(y.valueDisplay=T.value.toString().split("|").map(g=>{const v=-1!==g.indexOf(".%NOT");v&&(g=g.replace(".%NOT",""));const S=y.values.find(j=>j.path==g);let N="";return S&&S.name&&(N=S.name.toString()),(v?this.i18n.get("not")+" ":"")+N}).join(","))}k=!0}}}getClickFilterTarget(P){const k=[];for(let E=0;E"*"===k.target||k.target===P||-1!==k.targetArray.indexOf(P))}findDisplayText(P){if(""===P.value||void 0===P.value)return"";let k=P.value,E=!1;if("string"==typeof k&&(E=k.toString().toUpperCase().endsWith(".%NOT")),E&&(k=k.toString().substr(0,k.toString().length-5)),P.isDate)return this.findDateText(P);P.value=k;const w=P.value.toString().split("|"),T=[];for(let y=0;y1&&w.includes(P.values[y].path))&&(P.values[y].checked=!0,P.values[y].default=!0,P.defaultExclude=E,P.isExclude=E,T.push(P.values[y].name));return T.join(",")}getWidgetModelFilters(P){const k=[];for(let E=0;E({targetProperty:A.targetProperty,value:A.value,isExclude:A.isExclude,isInterval:A.isInterval,fromIdx:A.fromIdx,toIdx:A.toIdx,valueDisplay:A.valueDisplay})),y=this.ss.getWidgetsSettings(this.dashboard);T.length?y._filters=T:delete y._filters,this.ss.setWidgetsSettings(y,this.dashboard)}getFilter(P){if(this.items[P])return this.items[P]}clear(){this.items=[]}_addSavedFilterToFilterList(P,k){const E=P.value.toString().split("|");if(!E.length||!P.valueDisplay)return;const w=P.valueDisplay.toString().split(",");E.forEach((T,y)=>{k.values.some(A=>A.path===T||!isNaN(A.path)&&parseInt(T,10)===A.path)||k.values.push({name:w[y],path:T,checked:!0,_saved:!0})})}initDateFilter(P){P.isInterval=!0,P.value=P.value.toString().replace(":","|");const k=P.value.toString().split("|");P.values||(P.value=[]),P.values.forEach(E=>E.checked=!1),P.fromIdx=P.values.findIndex(E=>E.path===k[0]),-1===P.fromIdx&&(P.values.push({path:k[0]}),P.fromIdx=P.values.length-1),P.values[P.fromIdx].checked=!0,P.toIdx=P.values.findIndex(E=>E.path===k[1]),-1===P.toIdx&&(P.values.push({path:k[1]}),P.toIdx=P.values.length-1),P.values[P.toIdx].checked=!0}findDateText(P){return(P.value||"").toString().split("|").map(E=>E.replace("&[","").replace("]","")).join(":")}}V.\u0275fac=function(P){return new(P||V)(pt.\u0275\u0275inject(t.ActivatedRoute),pt.\u0275\u0275inject(Y.f),pt.\u0275\u0275inject(q.V),pt.\u0275\u0275inject(O.Do),pt.\u0275\u0275inject(U.L),pt.\u0275\u0275inject(G.M),pt.\u0275\u0275inject(Z.s),pt.\u0275\u0275inject($.D))},V.\u0275prov=pt.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac,providedIn:"root"})},8297:(Jt,$t,ht)=>{"use strict";ht.d($t,{C:()=>Y,D:()=>q});var pt=ht(1571);const t={en:"English",de:"German",cs:"Czech",ru:"Russian"};class Y{constructor(G){this.i18n=G}transform(G){return this.i18n.get(G)}}Y.\u0275fac=function(G){return new(G||Y)(pt.\u0275\u0275directiveInject(q,16))},Y.\u0275pipe=pt.\u0275\u0275definePipe({name:"i18n",type:Y,pure:!0});class q{constructor(){switch(this.current="en",window.navigator.language.toLowerCase()){case"en":case"ru":this.current="ru";break;case"de":this.current="de";break;default:this.current="en"}}getLanguageName(G){return t[G]||""}get(G){return O[this.current]&&O[this.current][G]?O[this.current][G]:G}getLanguages(){return Object.keys(O)}}q.\u0275fac=function(G){return new(G||q)},q.\u0275prov=pt.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"});const O={en:{settingsImported:"Settings has been imported successfully! Page will be reloaded.",settingsReset:"Settings has been reset successfully! Page will be reloaded.",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",theme:"Theme",showLog:"Show log",server:"Server",saveFilters:"Save filters",exportSettings:"Export settings",importSettings:"Import settings",export:"Export",pngImage:"Image (*.png)",svgImage:"Image (*.svg)",jpgImage:"Image (*.jpg)",pdfDoc:"Document (*.pdf)",xlsDoc:"Document (*.xls)",csvDoc:"Document (*.csv)",about:"About",cancel:"Cancel",save:"Save",load:"Load",share:"Share",title:"Title",curSettings:"Current settings",newView:"New",language:"Language",dashboard:"Dashboard",folder:"Folder",signin:"Sign in",signout:"Logout",login:"Login",signinOAuth:"OAuth sign in",password:"Password",namespace:"Namespace",loading:"Loading...",search:"Search",accept:"Apply",close:"Close",dismiss:"Reset",home:"Home",zoom:"Zoom",resetSettings:"Reset settings",addToFavorites:"Add to favorites",removeFromFav:"Remove from favorites",refresh:"Refresh",showFolders:"Show folders",showTop:"Show top records",viewAs:"View as",count:"Count",filters:"Filters",setDefault:"Reset to default",dashColumns:"Column count",widgetHeight:"Widget height(px)",widgetHeightDyn:"Default: fit to window",noData:"No data to display",byRows:"Display by rows",by2columns:"Display by two columns",by3columns:"Display by three columns",by4columns:"Display by four columns",by5columns:"Display by five columns",by6columns:"Display by six columns",print:"Print...",fav:"Favorites",options:"Settings",gotoDeepSee:"Iris BI",showLegend:"Toggle legend",showPivot:"Show as pivot table",back:"Back",exclude:"Exclude",all:"All",interval:"Interval",not:"Not",from:"From",to:"To",metroStyle:"Metro UI",bgColor:"Background color",fntColor:"Font color",icon:"Icon",done:"Done",widget:"Widget",showImages:"Show images",dataSource:"Data source",hideTitle:"Hide title",showZero:"Set axis minimum to zero",showValues:"Show values",err:"Error",errWidgetRequest:"Unable to load widget data",errLoginRequired:"Please enter login",errPassRequired:"Please enter password",errUnauth:"Unknown login and password pair. Please try again",errNotFound:"Requested url not fount on server",errTimeout:"Request timeout",errWidgetNotSupported:"Widget is not supported",errNoWidgets:"No widgets received from server",errNoDashboards:"No dashboards in this namespace",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],changeColors:"Change colors",fullscreen:"Toggle fullscreen",showKPI:"Show KPI",openAnalyzer:"Open analyzer",addWidget:"Add widget"},de:{settingsImported:"Einstellungen wurden erfolgreich importiert!",settingsReset:"Einstellungen wurden erfolgreich zur\xfcckgesetzt!",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",theme:"Oberfl\xe4chendesign",showLog:"Log",server:"Server",saveFilters:"Filter speichern",exportSettings:"Export Einstellungen",importSettings:"Import Einstellungen",export:"Exportieren",pngImage:"als Bild (*.png)",svgImage:"als Bild (*.svg)",jpgImage:"als Bild (*.jpg)",pdfDoc:"als Dokument (*.pdf)",xlsDoc:"als Dokument (*.xls)",csvDoc:"als Dokument (*.csv)",about:"\xdcber",cancel:"Abbrechen",save:"Speichern",load:"Laden",share:"Teilen",title:"Title",curSettings:"Einstellungen",newView:"Neu",language:"Sprache",dashboard:"Dashboard",folder:"Ordner",signin:"Anmelden",signout:"Abmelden",login:"Benutzer",signinOAuth:"Mit OAuth einloggen",password:"Passwort",namespace:"Namespace",loading:"Laden...",search:"Suche",accept:"Start",close:"Schlie\xdfen",dismiss:"Leeren",home:"Startseite",zoom:"Zoom",resetSettings:"Kacheln einstellungen",addToFavorites:"Zu Favoriten hinzuf\xfcgen",removeFromFav:"Von Favoriten entfernen",refresh:"Neu laden",showFolders:"Ordner anzeigen",showTop:"Top Items",viewAs:"Anzeige wechseln",count:"Anzahl",filters:"Filter",setDefault:"Zur\xfccksetzen",dashColumns:"Spaltenanzahl",widgetHeight:"Widget H\xf6he(px)",widgetHeightDyn:"Default: fit to window",noData:"Keine Daten vorhanden",byRows:"Anzeige nach Zeilen",by2columns:"Anzeige mit zwei Spalten",by3columns:"Anzeige mit drei Spalten",print:"Drucken...",fav:"Favoriten",options:"Einstellungen",gotoDeepSee:"DeepSee",showLegend:"Legende An/Aus",showPivot:"Als Tabelle anzeigen",back:"Zur\xfcck",exclude:"Au\xdfer",all:"Alle",interval:"Interval",not:"Nicht",from:"Von",to:"Bis",metroStyle:"Metro UI",bgColor:"Farbe Hintergrund",fntColor:"Farbe Schrift",icon:"Icon",done:"Fertig",widget:"Widget",showImages:"Bilder anzeigen",dataSource:"Datenquelle",hideTitle:"Titel verbergen",showZero:"Achsen auf Ursprung",showValues:"Werte anzeigen",err:"Fehler",errWidgetRequest:"Fehler beim Laden der Daten",errLoginRequired:"Bitte anmelden",errPassRequired:"Bitte Passwort eingeben",errUnauth:"Benutzer oder Passwort ung\xfcltig",errNotFound:"URL nicht gefunden",errTimeout:"Zeit\xfcberschreitung der Anfrage",errWidgetNotSupported:"Widget nicht unterst\xfctzt",errNoWidgets:"Keine Widgets vom Server",errNoDashboards:"Keine Dashboards vorhanden",shortMonths:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],changeColors:"\xc4ndern Sie die Farben",fullscreen:"Vollbild umschalten",showKPI:"KPI anzeigen",openAnalyzer:"Analysator \xf6ffnen"},cs:{settingsImported:"Nastaven\xed bylo \xfasp\u011b\u0161n\u011b importov\xe1no!",settingsReset:"Nastaven\xed bylo \xfasp\u011b\u0161n\u011b resetov\xe1no!",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",saveFilters:"Ulo\u017eit filtry",exportSettings:"Export nastaven\xed",importSettings:"Import nastaven\xed",export:"Export",pngImage:"Image (*.png)",svgImage:"Image (*.svg)",jpgImage:"Image (*.jpg)",pdfDoc:"Document (*.pdf)",xlsDoc:"Document (*.xls)",csvDoc:"Document (*.csv)",about:"O m\u011b",cancel:"Zru\u0161it",save:"Ulo\u017eit",load:"Na\u010d\xedst",share:"Sd\xedlet",title:"Title",curSettings:"Moment\xe1ln\xed nastaven\xed",newView:"Nov\xfd",language:"Jazyky",dashboard:"N\xe1st\u011bnka",folder:"Slo\u017eka",signin:"P\u0159ihl\xe1sit",signout:"Odhl\xe1sit",login:"U\u017eivatelsk\xe9 jm\xe9no",signinOAuth:"OAuth sign in",password:"Heslo",namespace:"Namespace",loading:"Na\u010d\xedt\xe1m...",search:"Hledat",accept:"P\u0159\xedjmout",close:"Zav\u0159\xedt",dismiss:"Zam\xedtnout",home:"Dom\u016f",zoom:"P\u0159ibl\xed\u017eit",resetSettings:"Reset Titulk\u016f",addToFavorites:"P\u0159idat do obl\xedben\xfdch",removeFromFav:"Oddevrat z obl\xedbench",refresh:"Obnovit",showFolders:"Zobrazit slo\u017eku",showTop:"Zobrazit prvn\xed polo\u017eky",viewAs:"Zobrazit jako",count:"Po\u010det",filters:"Filtry",setDefault:"Obnovit v\xfdchoz\xed",dashColumns:"Po\u010det slouc\u016f",widgetHeight:"V\xfd\u0161ka widgetu(px)",widgetHeightDyn:"Default: fit to window",noData:"Nejsou data k zobrazen\xed",byRows:"Zobrazit \u0159\xe1dky",by2columns:"Zobrazit podle dvou sloupc\u016f",by3columns:"Zobrazit podle t\u0159\xed sloupc\u016f",print:"Tisk...",fav:"Obl\xedben\xe9",options:"Nastaven\xed",gotoDeepSee:"DeepSee",showLegend:"Zapnout/Vypnout Legendu",showPivot:"Zobrazit jako kontingen\u010dn\xed tabulku",back:"Zp\u011bt",exclude:"Vylou\u010dit",all:"V\u0161e",interval:"Interval",not:"Not",from:"Od",to:"Do",metroStyle:"Metro UI",bgColor:"Barva pozad\xed",fntColor:"Barva p\xedsma",icon:"Ikona",done:"Hotovo",widget:"Widget",showImages:"Zobrazit obr\xe1zky",dataSource:"Zdroje dat",hideTitle:"Skr\xfdt titulek",showZero:"Nastavt minimum osy na nulu",showValues:"Zobrazit hodnoty",err:"Error",errWidgetRequest:"Nelze na\u010d\xedst data widgetu",errLoginRequired:"Pros\xedm, zadejte p\u0159ihla\u0161ovac\xed jm\xe9no",errPassRequired:"Pros\xedm zadejte heslo",errUnauth:"Nespr\xe1vn\xe9 u\u017eivatelsk\xe9 jm\xe9no nebo heslo",errNotFound:"Po\u017eadovan\xe1 adresa URL nbyla nalezena na serveru",errTimeout:"vypr\u0161el \u010das Requestu",errWidgetNotSupported:"Widget nen\xed podporov\xe1n",errNoWidgets:"\u017d\xe1dn\xe9 p\u0159ijat\xe9 widgety ze serveru",errNoDashboards:"\u017d\xe1dn\xe9 n\xe1st\u011bnky v namespace",shortMonths:["Leden","\xdanor","B\u0159ezen","Duben","Kv\u011bten","\u010cerven","\u010cervenec","Srpen","Z\xe1\u0159\xed","\u0158\xedjen","Listopad","Prosinec"],changeColors:"Zm\u011bnit barvy",fullscreen:"P\u0159epnout na celou obrazovku",showKPI:"Zobrazit KPI",openAnalyzer:"Otev\u0159ete analyz\xe1tor"},ru:{settingsImported:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u044b\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e!",settingsReset:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u044b\u043b\u0438 \u0441\u0431\u0440\u043e\u0448\u0435\u043d\u044b. \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u0430.",resetClickFilter:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c click \u0444\u0438\u043b\u044c\u0442\u0440",copyMDX:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c MDX",seriesColor:"\u0426\u0432\u0435\u0442 \u0441\u0435\u0440\u0438\u0439",copy:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",shareDashboard:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0435\u0448\u0431\u043e\u0440\u0434\u043e\u043c",relatedFilters:"\u0412\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b",theme:"\u0422\u0435\u043c\u0430",showLog:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438",server:"\u0421\u0435\u0440\u0432\u0435\u0440",saveFilters:"\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u044b",exportSettings:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a",importSettings:"\u0418\u043c\u043f\u043e\u0440\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a",export:"\u042d\u043a\u0441\u043f\u043e\u0440\u0442",pngImage:"\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 (*.png)",svgImage:"\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 (*.svg)",jpgImage:"\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 (*.jpg)",pdfDoc:"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 (*.pdf)",xlsDoc:"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 (*.xls)",csvDoc:"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 (*.csv)",about:"\u041e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435",cancel:"\u041e\u0442\u043c\u0435\u043d\u0430",save:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c",load:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c",share:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",title:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a",curSettings:"\u0422\u0435\u043a\u0443\u0449\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",newView:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c",language:"\u042f\u0437\u044b\u043a",dashboard:"\u0418\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043d\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c",folder:"\u041f\u0430\u043f\u043a\u0430",signin:"\u0412\u0445\u043e\u0434",signout:"\u0412\u044b\u0445\u043e\u0434",login:"\u041b\u043e\u0433\u0438\u043d",signinOAuth:"\u0412\u0445\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f OAuth",password:"\u041f\u0430\u0440\u043e\u043b\u044c",namespace:"\u041e\u0431\u043b\u0430\u0441\u0442\u044c",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...",search:"\u041f\u043e\u0438\u0441\u043a",accept:"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c",close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",dismiss:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c",home:"\u0414\u043e\u043c\u043e\u0439",zoom:"\u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435",refresh:"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c",resetSettings:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",addToFavorites:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0438\u0437\u0431\u0440\u0430\u043d\u043e\u0435",removeFromFav:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0437 \u0438\u0437\u0431\u0440\u0430\u043d\u043e\u0433\u043e",showFolders:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0438",showTop:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0445\u043d\u0438\u0435",viewAs:"\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043a\u0430\u043a",count:"\u041a\u043e\u043b-\u0432\u043e",filters:"\u0424\u0438\u043b\u044c\u0442\u0440\u044b",setDefault:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",dashColumns:"\u041a\u043e\u043b\u043e\u043d\u043a\u0438",widgetHeight:"\u0412\u044b\u0441\u043e\u0442\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432(px)",widgetHeightDyn:"\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: \u043f\u043e\u0434\u043e\u0433\u043d\u0430\u0442\u044c \u043a \u0432\u044b\u0441\u043e\u0442\u0435 \u043e\u043a\u043d\u0430",noData:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445",byRows:"\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e",by2columns:"\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0434\u0432\u0443\u043c\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438",by3columns:"\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0442\u0440\u0435\u043c\u044f \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438",print:"\u041f\u0435\u0447\u0430\u0442\u044c...",fav:"\u0418\u0437\u0431\u0440\u0430\u043d\u043e\u0435",options:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",gotoDeepSee:"Iris BI",showLegend:"\u0412\u043a\u043b/\u0432\u044b\u043a\u043b \u043b\u0435\u0433\u0435\u043d\u0434\u0443",showPivot:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0443",back:"\u041d\u0430\u0437\u0430\u0434",exclude:"\u0418\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c",all:"\u0412\u0441\u0435",not:"\u041d\u0435",interval:"\u0418\u043d\u0442\u0435\u0440\u0432\u0430\u043b",from:"\u041e\u0442",to:"\u0414\u043e",metroStyle:"\u0421\u0442\u0438\u043b\u044c Metro",bgColor:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",fntColor:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",icon:"\u0417\u043d\u0430\u0447\u043e\u043a",done:"\u0413\u043e\u0442\u043e\u0432\u043e",widget:"\u0412\u0438\u0434\u0436\u0435\u0442",showImages:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438",dataSource:"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445",hideTitle:"\u0421\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a",showZero:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c 0 \u043d\u0430 \u043e\u0441\u0438",showValues:"\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f",err:"\u041e\u0448\u0438\u0431\u043a\u0430",errWidgetRequest:"\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u0430",errLoginRequired:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d",errPassRequired:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c",errUnauth:"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d \u0438\u043b\u0438 \u043f\u0430\u0440\u043e\u043b\u044c",errNotFound:"\u0417\u0430\u0434\u0430\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435",errTimeout:"\u041f\u0440\u0435\u0432\u044b\u0448\u0435\u043d \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430",errWidgetNotSupported:"\u0412\u0438\u0434\u0436\u0435\u0442 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",errNoWidgets:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043d\u0443\u043b \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432",errNoDashboards:"\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u043d\u0438 \u043d\u0435\u0442 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u043e\u0432",shortMonths:["\u042f\u043d\u0432","\u0424\u0435\u0432","\u041c\u0430\u0440","\u0410\u043f\u0440","\u041c\u0430\u0439","\u0418\u044e\u043d","\u0418\u044e\u043b","\u0410\u0432\u0433","\u0421\u0435\u043d","\u041e\u043a\u0442","\u041d\u043e\u044f","\u0414\u0435\u043a"],changeColors:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0446\u0432\u0435\u0442\u0430",fullscreen:"\u041d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",showKPI:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c KPI",openAnalyzer:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c analyzer"}}},1444:(Jt,$t,ht)=>{"use strict";ht.d($t,{L:()=>Z,l:()=>G});var pt=ht(9751),t=ht(1571),Y=ht(1188),q=ht(4411);const O="dsw.namespaces",U="dsw.namespace";let G="";class Z{constructor(W,V,R){this.ss=W,this.router=V,this.route=R,this.loadNamespaces()}resolve(W,V){return new pt.y(R=>{G?this.router.navigateByUrl(G):this.router.navigateByUrl("/login")})}get namespaces(){return this.list}loadNamespaces(){try{G=this.ss.storage.getItem(U);const V=this.ss.storage.getItem(O);this.list=JSON.parse(V)}catch{console.warn("Can't parse namespace list from storage")}}setNamespaces(W){this.list=W;try{this.ss.storage.setItem(O,JSON.stringify(W))}catch{console.warn("Can't set namespace list to storage")}}getNamespaces(){return this.list}setCurrent(W){this.ss.storage.setItem(U,W),G=W}}Z.\u0275fac=function(W){return new(W||Z)(t.\u0275\u0275inject(Y.V),t.\u0275\u0275inject(q.Router),t.\u0275\u0275inject(q.ActivatedRoute))},Z.\u0275prov=t.\u0275\u0275defineInjectable({token:Z,factory:Z.\u0275fac,providedIn:"root"})},5613:(Jt,$t,ht)=>{"use strict";ht.d($t,{P:()=>Y});var pt=ht(1571),t=ht(1135);class Y{constructor(){this.stack=[],this.sidebarToggle=new t.X(null),this.onAnimStart=new pt.EventEmitter,this.onAnimEnd=new pt.EventEmitter}updateComponentProperties(O,U){if(U.inputs)for(const G in U.inputs)O.instance[G]=U.inputs[G]}showComponent(O){if(O||this.resetComponentStack(),O?.single){const U=this.stack.find(G=>G.component===O?.component);if(U)return this.updateComponentProperties(U.compRef,O),void(U.compRef.instance.cd&&(U.compRef.instance.cd.markForCheck(),U.compRef.instance.cd.detectChanges()))}O?.component&&this.stack.push(O),this.sidebarToggle.next(O)}resetComponentStack(){this.stack.forEach(O=>{O.compRef&&O.compRef.destroy()}),this.stack=[]}popComponent(){this.stack.pop();const O=this.stack.pop()||null;this.showComponent(O)}}Y.\u0275fac=function(O){return new(O||Y)},Y.\u0275prov=pt.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac,providedIn:"root"})},5468:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>StartupService});var tslib__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(655),_angular_core__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(1571),_environments_dsw__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4470),angular_gridster2__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(9583),_data_service__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1332),_widget_type_service__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8714),_storage_service__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1188),_namespace_service__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1444),_angular_common__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(6895),_angular_router__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(4411),_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(4715),_angular_platform_browser__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(1481),highcharts_highstock__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6150),highcharts_highstock__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(highcharts_highstock__WEBPACK_IMPORTED_MODULE_5__),highcharts_highcharts_more__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2407),highcharts_highcharts_more__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(highcharts_highcharts_more__WEBPACK_IMPORTED_MODULE_6__),highcharts_modules_treemap__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(217),highcharts_modules_treemap__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(highcharts_modules_treemap__WEBPACK_IMPORTED_MODULE_7__),highcharts_modules_heatmap__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(2586),highcharts_modules_heatmap__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(highcharts_modules_heatmap__WEBPACK_IMPORTED_MODULE_8__),highcharts_modules_exporting__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2112),highcharts_modules_exporting__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(highcharts_modules_exporting__WEBPACK_IMPORTED_MODULE_9__),highcharts_modules_map__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(780),highcharts_modules_map__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(highcharts_modules_map__WEBPACK_IMPORTED_MODULE_10__),_util_service__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(7241),_components_widgets_base_widget_class__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7028),_components_widgets_charts_base_chart_class__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7630),_variables_service__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7207),_filter_service__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(2983),_dashboard_service__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(9386),_i18n_service__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(8297),_broadcast_service__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(2544),_sidebar_service__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(5613),_app_module__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(4492),_angular_common_http__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(529);class StartupService{constructor(Jt,$t,ht,pt,t,Y,q){this.ds=Jt,this.http=$t,this.wt=ht,this.us=pt,this.st=t,this.compiler=Y,this.ns=q}initialize(){return _environments_dsw__WEBPACK_IMPORTED_MODULE_0__._.mobile=screen.availWidth<=576,this.setupGridster(),this.us.isMobile()&&this.setupMobile(),new Promise((Jt,$t)=>{Promise.all([this.ds.loadMainConfig(),this.loadAddons()]).finally(()=>Jt())})}loadAddons(){return(0,tslib__WEBPACK_IMPORTED_MODULE_21__.mG)(this,void 0,void 0,function*(){return new Promise(Jt=>{this.ds.loadAddons().catch($t=>{console.log(`Can't load addons: ${$t}`),Jt()}).then($t=>{localStorage.devAddons&&($t=JSON.parse(localStorage.devAddons));const ht=[];if($t&&$t.length){_environments_dsw__WEBPACK_IMPORTED_MODULE_0__._.addons=[...$t];for(let pt=0;pt<_environments_dsw__WEBPACK_IMPORTED_MODULE_0__._.addons.length;pt++){const t=_environments_dsw__WEBPACK_IMPORTED_MODULE_0__._.addons[pt].split("/").pop().replace(".js","");ht.push(this.loadAddon(_environments_dsw__WEBPACK_IMPORTED_MODULE_0__._.addons[pt],t))}}Promise.all(ht).finally(()=>Jt())})})})}setupGridster(){angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.displayGrid=angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.KY.None,angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.draggable.dragHandleClass=".drag-handle",angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.resizable.handles={s:!1,e:!1,n:!1,w:!1,se:!0,ne:!1,sw:!1,nw:!1},angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.gridType="scrollVertical",angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.minCols=12,angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.maxCols=12,angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.floating=!0,angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.pushItems=!0,angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.resizable.enabled=!1,angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.draggable.enabled=!1,angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.margin=5,angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.mobileBreakPoint=576,-1!==window.location.href.split("#").pop().indexOf("widget=")&&(angular_gridster2__WEBPACK_IMPORTED_MODULE_22__.rd.mobileBreakPoint=0)}loadAddon(url,addonName){return new Promise((res,rej)=>{fetch(url).then(r=>(0,tslib__WEBPACK_IMPORTED_MODULE_21__.mG)(this,void 0,void 0,function*(){let file=yield r.text();const exports={},modules={"@angular/core":_angular_core__WEBPACK_IMPORTED_MODULE_23__,"@angular/common":_angular_common__WEBPACK_IMPORTED_MODULE_24__,"@angular/router":_angular_router__WEBPACK_IMPORTED_MODULE_25__,"@angular/platform-browser-dynamic":_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_26__,"@angular/platform-browser":_angular_platform_browser__WEBPACK_IMPORTED_MODULE_27__,"highcharts/highstock":highcharts_highstock__WEBPACK_IMPORTED_MODULE_5__,"highcharts/highcharts-more":highcharts_highcharts_more__WEBPACK_IMPORTED_MODULE_6__,"highcharts/modules/treemap":highcharts_modules_treemap__WEBPACK_IMPORTED_MODULE_7__,"highcharts/modules/heatmap":highcharts_modules_heatmap__WEBPACK_IMPORTED_MODULE_8__,"highcharts/modules/exporting":highcharts_modules_exporting__WEBPACK_IMPORTED_MODULE_9__,"highcharts/modules/map":highcharts_modules_map__WEBPACK_IMPORTED_MODULE_10__,"../app/services/util.service":{UtilService:_util_service__WEBPACK_IMPORTED_MODULE_11__.f},"../app/services/variables.service":{VariablesService:_variables_service__WEBPACK_IMPORTED_MODULE_14__.a},"../app/services/storage.service":{StorageService:_storage_service__WEBPACK_IMPORTED_MODULE_3__.V},"../app/services/data.service":{DataService:_data_service__WEBPACK_IMPORTED_MODULE_1__.Do},"../app/services/filter.service":{FilterService:_filter_service__WEBPACK_IMPORTED_MODULE_15__.i},"../app/services/widget-type.service":{WidgetTypeService:_widget_type_service__WEBPACK_IMPORTED_MODULE_2__.Xw},"../app/services/dashboard.service":{DashboardService:_dashboard_service__WEBPACK_IMPORTED_MODULE_16__.s},"../app/services/namespace.service":{NamespaceService:_namespace_service__WEBPACK_IMPORTED_MODULE_4__.L},"../app/services/i18n.service":{I18nService:_i18n_service__WEBPACK_IMPORTED_MODULE_17__.D},"../app/services/broadcast.service":{BroadcastService:_broadcast_service__WEBPACK_IMPORTED_MODULE_18__.M},"../app/services/sidebar.service":{SidebarService:_sidebar_service__WEBPACK_IMPORTED_MODULE_19__.P},"../app/components/widgets/base-widget.class":{BaseWidget:_components_widgets_base_widget_class__WEBPACK_IMPORTED_MODULE_12__.X},"../app/components/widgets/charts/base-chart.class":{BaseChartClass:_components_widgets_charts_base_chart_class__WEBPACK_IMPORTED_MODULE_13__.Uh},"../app/app.module":{AppModule:_app_module__WEBPACK_IMPORTED_MODULE_20__.b}},require=Jt=>(modules[Jt]||console.error(`Can't find module ${Jt} in required shim.`),modules[Jt]);file+="\r\n//# sourceURL="+url,eval(file);let module,name="";for(const Jt in exports)if(exports[Jt].toString().startsWith("class")){module=exports[Jt],name=Jt;break}if(module){const Jt=url.split("/").pop().toLowerCase().replace("dsw.addons.","").split(".").slice(0,-1).join("."),$t=module.AddonInfo;$t.overrideBaseType?this.wt.register($t.overrideBaseType,$t?.type||"custom",module,$t):this.wt.register(Jt,$t?.type||"custom",module,$t)}else console.warn(`Can't load addon for file: ${url}. Exported class not found.`);res()})).catch(Jt=>{console.error(Jt),res()})})}setupMobile(){window.addEventListener("resize",()=>{const Jt=.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${Jt}px`)})}}StartupService.\u0275fac=function Jt($t){return new($t||StartupService)(_angular_core__WEBPACK_IMPORTED_MODULE_23__.\u0275\u0275inject(_data_service__WEBPACK_IMPORTED_MODULE_1__.Do),_angular_core__WEBPACK_IMPORTED_MODULE_23__.\u0275\u0275inject(_angular_common_http__WEBPACK_IMPORTED_MODULE_28__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_23__.\u0275\u0275inject(_widget_type_service__WEBPACK_IMPORTED_MODULE_2__.Xw),_angular_core__WEBPACK_IMPORTED_MODULE_23__.\u0275\u0275inject(_util_service__WEBPACK_IMPORTED_MODULE_11__.f),_angular_core__WEBPACK_IMPORTED_MODULE_23__.\u0275\u0275inject(_storage_service__WEBPACK_IMPORTED_MODULE_3__.V),_angular_core__WEBPACK_IMPORTED_MODULE_23__.\u0275\u0275inject(_angular_core__WEBPACK_IMPORTED_MODULE_23__.Compiler),_angular_core__WEBPACK_IMPORTED_MODULE_23__.\u0275\u0275inject(_namespace_service__WEBPACK_IMPORTED_MODULE_4__.L))},StartupService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_23__.\u0275\u0275defineInjectable({token:StartupService,factory:StartupService.\u0275fac,providedIn:"root"})},1188:(Jt,$t,ht)=>{"use strict";ht.d($t,{V:()=>W});var pt=ht(1571),t=ht(4470),Y=ht(3470),O=ht(1444),U=ht(1332),G=ht(8297),Z=ht(4411),$=ht(7241);class W{get storage(){return this.isLocalStorage?localStorage:sessionStorage}constructor(R,P,k,E){this.ds=R,this.i18n=P,this.route=k,this.us=E,this.settings={},this.serverSettings={},this.configLoaded=!1,this.isLocalStorage=!1,this.onSettingsChanged=new pt.EventEmitter,this.onTilesChanged=new pt.EventEmitter,this.checkForLocalStorage()}checkForLocalStorage(){const R="dws_ls_test";try{localStorage.setItem(R,"test")}catch{return}localStorage.removeItem(R),this.isLocalStorage=!0}saveUserSettings(){const R=JSON.parse(this.storage.userSettings||"{}");R[O.l.toLocaleLowerCase()]=this.settings,this.storage.userSettings=JSON.stringify(R)}loadConfig(R){if(this.settings={},this.configLoaded=!0,R)if(R.constructor===Object)this.settings=R;else{let T;try{T=JSON.parse(R)}catch{T={}}this.settings=T}let P=null;this.storage.userSettings&&(P=JSON.parse(this.storage.userSettings)[O.l.toLocaleLowerCase()]),P&&this.us.mergeRecursive(this.settings,P);const k=this.getAppSettings();if(!t._.mobile&&k.theme){let T=document.getElementById("page-theme");T||(T=document.createElement("link")),T.id="page-theme",T.rel="stylesheet",T.type="text/css",T.href=k.theme,document.head.appendChild(T)}this.i18n.current=k.language||"en";const E=Y.getOptions().colors;for(let T=1;T<=E.length;T++){const y=window.getComputedStyle(document.querySelector(".hc"+T.toString())).getPropertyValue("background-color");"rgba(0, 0, 0, 0)"!==y&&"transparent"!==y&&(E[T-1]=y)}const w=k.themeColors[k.theme]||{};Y.setOptions({xAxis:{labels:{style:{color:w.hcTextColor}}},yAxis:{labels:{style:{color:w.hcTextColor}}},zAxis:{labels:{style:{color:w.hcTextColor}}},chart:{backgroundColor:w.hcBackground},colors:w.hcColors||E,time:{useUTC:!1},lang:{loading:"
",shortMonths:this.i18n.get("shortMonths"),rangeSelectorZoom:this.i18n.get("zoom"),rangeSelectorFrom:this.i18n.get("from"),rangeSelectorTo:this.i18n.get("to"),noData:this.i18n.get("noData")},noData:{style:{fontWeight:"bold",fontSize:"15px",color:"#303030"}}})}getAppSettings(){const R=this.route.snapshot.queryParamMap.get("lang");this.settings.app||(this.settings.app={});const P=this.settings.app;R&&(P.language=R),P.themeColors||(P.themeColors={});const k=this.route.snapshot.queryParamMap.get("theme");if(k){const E=t._.const.themes.find(w=>w.text===k);E&&(P.theme=E.file)}return P}setAppSettings(R){this.settings.app=R,this.saveUserSettings()}getWidgetsSettings(R){return this.settings&&this.settings.ns&&this.settings.ns.widgets&&this.settings.ns.widgets[R]||{}}setWidgetsSettings(R,P){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.widgets||(this.settings.ns.widgets={}),this.settings.ns.widgets[P]=JSON.parse(JSON.stringify(R)),this.saveUserSettings()}getTilesSettings(){return this.settings&&this.settings.ns&&this.settings.ns.tiles||{}}setTilesSettings(R){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.tiles=JSON.parse(JSON.stringify(R)),this.saveUserSettings()}getAllSettings(){return this.settings}setAllSettings(R){this.settings=R,this.saveUserSettings()}loadServerSettings(R){this.serverSettings=R||{}}}W.\u0275fac=function(R){return new(R||W)(pt.\u0275\u0275inject(U.Do),pt.\u0275\u0275inject(G.D),pt.\u0275\u0275inject(Z.ActivatedRoute),pt.\u0275\u0275inject($.f))},W.\u0275prov=pt.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"})},7241:(Jt,$t,ht)=>{"use strict";ht.d($t,{f:()=>Y});var pt=ht(1571),t=ht(4411);class Y{constructor(O){this.route=O}removeExt(O){const U=O.split(".");return 1===U.length?O:(U.pop(),U.join("."))}replaceFilename(O,U){const G=O.split("/");return G[G.length-1]=U,G.join("/")}isEmbedded(){var O;const U=window.location.hash.replace("?","").replace("#/","").split("&");for(let G=0;G{"use strict";ht.d($t,{a:()=>t});var pt=ht(1571);class t{constructor(){this.items=[],this.widgets=[]}init(q){if(this.items=[],this.widgets=[],q.widgets)for(let O=0;O{"use strict";ht.d($t,{hg:()=>St,Xw:()=>wt});var pt=ht(4470),t=ht(1851),Y=ht(7028),q=ht(1444),O=ht(1571);class U extends Y.X{constructor(){super(...arguments),this._oldMdx="",this.isSpinner=!1}ngAfterViewInit(){this.createPivotTable()}ngOnDestroy(){super.ngOnDestroy()}createPivotTable(){const Dt=this,Pt={initialData:this.widget.pivotData,container:this.el.nativeElement,pivotProperties:{},enableListingSelect:!1,enableSearch:!1,dataSource:{pivot:this.widget.dataSource,MDX2JSONSource:this.ds.url.substring(0,this.ds.url.length-1),basicMDX:this.widget.pivotMdx||this.getMDX(),namespace:q.l,sendCookies:!0},triggers:{drillDown:Ft=>this.onDrillDown(Ft),rowClick:(Ft,jt,Ut)=>{var bt,_t,xt;return null!==(bt=Dt.drillFilterWidgets)&&void 0!==bt&&bt.length?(Dt.doDrillFilter(Ut.source.path,Dt.drills),null===(xt=null===(_t=Dt.parent)||void 0===_t?void 0:_t.header)||void 0===xt||xt.cd.detectChanges(),!1):!this.widget.kpitype},back:Ft=>this.onDrillDown(Ft),cellDrillThrough:(...Ft)=>this.onDrillThrough(...Ft),responseHandler:Ft=>{200!==Ft.status&&this.showError(Ft.xhr.responseText)}},loadingMessageHTML:'',columnResizeAnimation:!0,locale:this.i18n.current,hideButtons:!0,formatNumbers:"#,###.##",controls:this.widget.controls};delete this.widget.pivotMdx,this.lpt=new LightPivotTable(Pt),this.widget.edKey&&this.lpt.pivotView.displayMessage("")}doDrillUp(){this.widget.isDrillthrough&&this.restoreWidgetType?(this.widget.isDrillthrough=null,this.restoreWidgetType(),this.widget.kpitype&&this.requestData()):this.lpt.CONTROLS.back(),this.widget.backButton=0!==this.lpt.DRILL_LEVEL,this.parent.cd.detectChanges()}onDrillThrough(...Dt){var Pt,Ft,jt;if(!this.canDoDrillthrough)return!1;if(this.widget.kpitype){const{cellData:Ut,x:bt,y:_t}=Dt[0],{info:xt,dimensions:ft}=Dt[1];if(!ft[0])return;const Ct=(null===(Pt=ft[0][bt-xt.leftHeaderColumnsNumber])||void 0===Pt?void 0:Pt.dimension)||"",Ot=(null===(Ft=ft[0][0])||void 0===Ft?void 0:Ft.dimension)||"",Rt=(null===(jt=ft[1][_t-xt.topHeaderRowsNumber])||void 0===jt?void 0:jt.title)||"";if(!Ct||!Ot)return;const Zt=[{name:Ct,value:Ut.value},{name:Ot,value:Rt}];return this._requestKPIData(Zt).then(()=>{this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.parent.cd.detectChanges()}),!1}return this._oldMdx=this.lpt.getActualMDX(),this.widget.backButton=!0,this.parent.cd.detectChanges(),!0}onDrillDown(Dt){Dt.path?(this.doDrillFilter(Dt.path,this.drills),this.drills.push({path:Dt.path,name:"",category:""}),this.widget.backButton=!0):(this.drills.pop(),this.doDrillFilter(Dt.path,this.drills)),this.parent.cd.detectChanges(),this.broadcastDependents(Dt.mdx)}requestData(){this.customDataSource||this.widget.dataSource;if(this.widget.kpitype)this._requestKPIData();else if(this.lpt){let Pt=this.getMDX();if(this.lpt.isListing()&&(delete this.lpt.CONFIG.initialData,"drillthrough"!==Pt.toLowerCase().substr(0,12)&&(Pt=this.getDrillthroughMdx(Pt))),""===Pt)return;this.drillFilter&&(Pt=Pt+" %FILTER "+this.drillFilter),this.broadcastDependents(),this.clearError(),this.lpt.changeBasicMDX(Pt)}}onResize(){this.lpt&&setTimeout(()=>this.lpt.updateSizes(),100)}print(){}}U.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(U)))(Pt||U)}}(),U.\u0275cmp=O.\u0275\u0275defineComponent({type:U,selectors:[["dsw-pivot"]],inputs:{widget:"widget"},features:[O.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(Dt,Pt){},styles:["[_nghost-%COMP%]{height:100%}"]});var G=ht(8695),Z=ht(7630);class $ extends Z.Uh{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,"columnchartstacked"===this.widget.type.toLowerCase()&&this.enableStacking()}}$.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory($)))(Pt||$)}}(),$.\u0275cmp=O.\u0275\u0275defineComponent({type:$,selectors:[["dsw-column-chart"]],features:[O.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(Dt,Pt){},encapsulation:2});class W extends Y.X{constructor(){super(...arguments),this.isSpinner=!1}ngOnInit(){this.widget.title=this.i18n.get("filters"),this.widget.toolbar=!0,this.widget.viewSize=this.getViewSize()}requestData(){}onHeaderButton(Dt){switch(Dt.name){case"setDefault":this.setFiltersToDefaults();break;case"byRows":this.setViewSize(0);break;case"by2columns":this.setViewSize(1);break;case"by3columns":this.setViewSize(2);break;case"by4columns":this.setViewSize(3);break;case"by5columns":this.setViewSize(4);break;case"by6columns":this.setViewSize(5)}}setFiltersToDefaults(){for(let Dt=0;Dt${Ut}%`}return`${this.point.caption}`}}}},tooltip:{formatter(){const Ut=this.series.userOptions.caption,bt=this.series.userOptions.format;let _t=this.point.value;return _t=Ft.formatNumber(_t,bt),this.point.caption+"
"+Ut+": "+_t+""}}};this.us.mergeRecursive(this.chartConfig,jt),null===(Pt=null===(Dt=this.chartConfig.plotOptions)||void 0===Dt?void 0:Dt.series)||void 0===Pt||delete Pt.dataLabels}parseData(Dt){return(0,V.mG)(this,void 0,void 0,function*(){this.prevData=Dt,Dt&&Dt.Info&&(this.dataInfo=Dt.Info);let Pt=[];if(Dt.Cols[0].tuples.length)if(Dt.Cols[0].tuples[0].children)console.error("Data converter for this treemap chart not implemented!");else{if(yield this.checkForAutoDrill(Dt))return;Pt=[];let Ft=0;for(let bt=0;bt"+parseFloat(parseFloat(Dt.Data[bt])/Ft*100).toFixed(2).toString()+"%",value:parseFloat(Dt.Data[bt]),y:parseFloat(Dt.Data[bt]),path:Dt.Cols[1].tuples[bt].path,name:Dt.Cols[1].tuples[bt].caption});let jt="",Ut="";Dt.Cols[0].tuples[0]&&(jt=Dt.Cols[0].tuples[0].caption,Ut=Dt.Cols[0].tuples[0].format),this.totalSum=Dt.Data.map(bt=>parseFloat(bt)||0).reduce((bt,_t)=>bt+_t,0),this.addSeries({data:Pt,name:"",layoutAlgorithm:"squarified",caption:jt,format:Ut,dataLabels:{enabled:!0}},void 0,void 0,!0)}})}setType(Dt){this.clearSeries(),super.setType(Dt),this.parseData(this.prevData)}}R.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(R)))(Pt||R)}}(),R.\u0275cmp=O.\u0275\u0275defineComponent({type:R,selectors:[["dsw-tree-map"]],features:[O.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(Dt,Pt){},encapsulation:2});var P=ht(3990);class k extends Z.Uh{constructor(){super(...arguments),this.thirdTitle=""}ngOnInit(){super.ngOnInit();const Dt=this,Pt={plotOptions:{bubble:{minSize:"5%",maxSize:"35%",sizeBy:"width"},series:{cursor:null,point:{events:{click:null}}}},chart:{zoomType:"xy"},legend:{enabled:!0},xAxis:{tickWidth:10,title:{enabled:!0}},tooltip:{formatter:function(){const Ft=this.series.userOptions.format1,jt=this.series.userOptions.format2,Ut=this.series.userOptions.format3;let bt=this.x,_t=this.y,xt=this.point.z;Ft&&(bt=P(bt).format(Ft)),jt&&(_t=P(_t).format(jt)),Ut&&(xt=P(xt).format(Ut));const ft=Dt.thirdTitle||"radius";return this.series.name+"
"+Dt.chartConfig.xAxis.title.text+":"+bt+"
"+Dt.chartConfig.yAxis.title.text+":"+_t+""+(xt?"
"+ft+": "+xt.toString()+"":"")}}};this.us.mergeRecursive(this.chartConfig,Pt)}getSeriesNames(Dt){const Pt={};if(4==Dt.Cols[0].tuples.length)for(let Ft=3;Ft=1&&(this.chartConfig.xAxis.title.text=Dt.Cols[0].tuples[0].caption),Dt.Cols[0].tuples.length>=2&&(this.chartConfig.yAxis.title.text=Dt.Cols[0].tuples[1].caption),Dt.Cols[0].tuples.length>=3&&(this.thirdTitle=Dt.Cols[0].tuples[2].caption);if(Dt.Cols[0].tuples[0].children)this.showError("Data converter for this bubble chart not implemented!");else{const jt=Dt.Cols[0].tuples.length;let Ut="",bt="",_t="";Dt.Cols[0].tuples[0]&&(Ut=Dt.Cols[0].tuples[0].format),Dt.Cols[0].tuples[1]&&(bt=Dt.Cols[0].tuples[1].format),Dt.Cols[0].tuples[2]&&(_t=Dt.Cols[0].tuples[2].format);const xt={};let Ct,ft=!1;if(this.hasOption("isTop")){ft=!0;const Zt=(this.widget.controls||[]).filter(function(he){return"setRowCount"===he.action})[0];Ct=Zt&&Zt.value||Z.E1}let Ot=ft?Ct:Dt.Data.length;Ot>Dt.Data.length&&(Ot=Dt.Data.length);for(let Rt=0;Rt"+Ft+":"+_t+"
"+Pt+":"+bt+""}}};this.us.mergeRecursive(this.chartConfig,Dt)}parseData(Dt){return(0,V.mG)(this,void 0,void 0,function*(){const Pt=this.chartConfig.xAxis;Pt.categories=[];for(let jt=0;jtPt.nativeElement);this.charts=[],this.confs.forEach((Pt,Ft)=>{Pt.chart.renderTo=Dt[Ft],this.charts.push(T.chart(Pt))})}retrieveData(Dt){if(this.hideLoading(),this.charts.forEach(Ft=>{for(;Ft.series.length>0;)Ft.series[0].remove()}),this.widgetData=JSON.parse(JSON.stringify(Dt)),Dt.Error)this.showError(Dt.Error);else if(Dt){if(!Dt.Cols)return;0===Dt.Cols[0].tuples.length&&0!==Dt.Data.length&&Dt.Cols[0].tuples.push({caption:this.i18n.get("count")}),this.parseData(Dt)}}parseData(Dt){return(0,V.mG)(this,void 0,void 0,function*(){if(0===this.confs.length){for(let Pt=0;PtUt.dataValue===Dt.Cols[0].tuples[Pt].dimension);jt&&jt.label&&"$auto"!==jt.label&&(Ft=jt.label),this.confs.push(this.us.mergeRecursive({},this.chartConfig)),this.confs[this.confs.length-1].title.text=Ft}return this.cd.markForCheck(),this.cd.detectChanges(),void setTimeout(()=>{this.createChart(),this.parseData(Dt)})}for(let Pt=0;Ptjt.max&&(Ot=jt.max),jt.plotBands=[],Ct!==jt.min&&jt.plotBands.push({from:jt.min,to:Ct,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),Ot!==jt.max&&jt.plotBands.push({from:Ot,to:jt.max,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),Ut.targetValue){const Rt=parseFloat(Ut.targetValue);jt.plotLines=[{value:Rt,color:"rgba(0, 180, 0, 0.4)",width:3,zIndex:5}]}}let bt="";this.widget.properties&&this.widget.properties.format&&(bt=this.widget.properties.format),Dt.Cols[0].tuples[Pt].format&&(bt=Dt.Cols[0].tuples[Pt].format);let _t=Dt.Cols[0].tuples[Pt].caption;Ut&&Ut.label&&"$auto"!==Ut.label&&(_t=Ut.label),this.addSeries({data:[Dt.Data[Pt]||0],name:_t,format:bt},this.charts[Pt],this.confs[Pt]),this.charts[Pt]&&this.charts[Pt].update(this.confs[Pt])}})}onResize(){super.onResize(),this.charts.forEach(Dt=>Dt.reflow())}}v.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(v)))(Pt||v)}}(),v.\u0275cmp=O.\u0275\u0275defineComponent({type:v,selectors:[["dsw-speedometer-chart"]],viewQuery:function(Dt,Pt){if(1&Dt&&O.\u0275\u0275viewQuery(A,5),2&Dt){let Ft;O.\u0275\u0275queryRefresh(Ft=O.\u0275\u0275loadQuery())&&(Pt.chartsEl=Ft)}},features:[O.\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["charts",""]],template:function(Dt,Pt){1&Dt&&O.\u0275\u0275template(0,g,2,0,"div",0),2&Dt&&O.\u0275\u0275property("ngForOf",Pt.confs)},dependencies:[y.NgForOf],styles:["[_nghost-%COMP%]{display:flex}div[_ngcontent-%COMP%]{flex:1 1 100%}"]});class S extends Z.Uh{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;this.us.mergeRecursive(this.chartConfig,{plotOptions:{series:{colorByPoint:!1},area:{stacking:"normal",marker:{enabled:!1}}}})}}S.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(S)))(Pt||S)}}(),S.\u0275cmp=O.\u0275\u0275defineComponent({type:S,selectors:[["dsw-area-chart"]],features:[O.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(Dt,Pt){},encapsulation:2});class N extends Z.Uh{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;this.us.mergeRecursive(this.chartConfig,{plotOptions:{series:{cursor:null,point:{events:{click:null}}},pie:{allowPointSelect:!1,dataLabels:{enabled:!0,color:"#000000",connectorColor:"#000000",formatter:function(){return""+this.point.name+": "+this.series.options.size}}}},tooltip:{formatter:function(){return this.key+": "+this.y+"
"}}})}parseData(Dt){return(0,V.mG)(this,void 0,void 0,function*(){const Pt=[];this.clearSeries();let Ft=Math.max.apply(null,Dt.Data);for(let jt=0;jtCt).join(", ")}},showInLegend:!0},series:{dataLabels:{formatter:function(){const Ut=this.series.options.format;let bt=this.y;return Ut&&(bt=Pt.formatNumber(bt,Ut)),this.key+", "+bt}},point:{events:{legendItemClick:function(){const jt=this.title,Ut=this.visible;Pt.chart.series.forEach(bt=>{bt.data.forEach(_t=>{_t.title===jt&&(_t!==this&&_t.update({visible:!Ut}),Ut&&_t.setState("normal"))})})},mouseOut:function(){const jt=[],Ut=this.series,bt=this.index;Ut.chart.series.forEach(_t=>{_t!==Ut&&jt.push(_t.points[bt])}),jt.forEach(_t=>{_t.setState("")})},mouseOver:function(){const jt=[],Ut=this.series,bt=this.index;Ut.chart.series.forEach(_t=>{_t!==Ut&&jt.push(_t.points[bt])}),jt.forEach(_t=>{_t.setState("hover")})}}}}}};this.us.mergeRecursive(this.chartConfig,Ft),this.chartConfig.plotOptions.series.dataLabels||(this.chartConfig.plotOptions.series.dataLabels={}),this.chartConfig.plotOptions.pie.dataLabels.enabled=this.isValuesVisible(),this.widget.showValues,this.updateChart(!0,!0)}isValuesVisible(){return this.widget.showValues||this.widget["btn.ShowAnnotations"]}onHeaderButton(Dt){var Pt,Ft;("ShowValues"===Dt.name||"btn.ShowAnnotations"===Dt.name||"btn.ShowPercents"===Dt.name)&&(this.chartConfig.plotOptions.pie.dataLabels.enabled=this.isValuesVisible(),this.updateChart(!0),null===(Pt=this.chart)||void 0===Pt||Pt.series.forEach((jt,Ut)=>{0!==Ut&&(jt.options.showInLegend=!1)}),(null===(Ft=this.chart)||void 0===Ft?void 0:Ft.series.length)>1&&this.chart.legend.update(this.chartConfig.legend,!0)),super.onHeaderButton(Dt)}addSeries(Dt,Pt,Ft,jt=!1){var Ut,bt,_t,xt,ft,Ct;const Ot=(null===(_t=null===(bt=null===(Ut=this._currentData)||void 0===Ut?void 0:Ut.Cols[0])||void 0===bt?void 0:bt.tuples)||void 0===_t?void 0:_t.length)||1,Rt=(null===(Ct=null===(ft=null===(xt=this._currentData)||void 0===xt?void 0:xt.Cols[1])||void 0===ft?void 0:ft.tuples)||void 0===Ct?void 0:Ct.length)||1;if(1!==Ot){const Zt=100/Ot,he=this.chart.series.length;Dt.center=[(Zt/2+he*Zt).toString()+"%","50%"],he>Rt&&(Dt.showInLegend=!1)}super.addSeries(Dt,Pt,Ft,jt),this.chart.series.length>1&&(this.chart.series[this.chart.series.length-1].options.showInLegend=!1)}onLegendItemHover(Dt){var Pt,Ft,jt;super.onLegendItemHover(Dt),(null===(Ft=null===(Pt=this.chart)||void 0===Pt?void 0:Pt.series)||void 0===Ft?void 0:Ft.length)>1&&(null===(jt=this.chart)||void 0===jt||jt.series.forEach(Ut=>{Ut!==Dt.series&&Ut.setState("inactive",!0)})),this.chartConfig.plotOptions.series.point.events.mouseOver.call(Dt)}onLegendItemOut(Dt){var Pt,Ft,jt;super.onLegendItemOut(Dt),(null===(Ft=null===(Pt=this.chart)||void 0===Pt?void 0:Pt.series)||void 0===Ft?void 0:Ft.length)>1&&(null===(jt=this.chart)||void 0===jt||jt.series.forEach(Ut=>{Ut!==Dt.series&&Ut.setState("normal",!0)})),this.chartConfig.plotOptions.series.point.events.mouseOut.call(Dt)}}j.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(j)))(Pt||j)}}(),j.\u0275cmp=O.\u0275\u0275defineComponent({type:j,selectors:[["dsw-line-chart"]],features:[O.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(Dt,Pt){},encapsulation:2});class M extends Z.Uh{ngOnInit(){super.ngOnInit(),this.chartConfig.plotOptions={series:{lineWidth:3,marker:{enabled:!0}}};const Dt=this;this.chartConfig.tooltip={formatter(){const Pt=this.series.userOptions,Ft=Pt.format1,jt=Pt.format2;let Ut=this.y,bt=this.x;Ft&&(Ut=P(Ut).format(Ft)),jt&&(bt=P(bt).format(jt));const _t=Dt.chartConfig.yAxis,xt=Dt.chartConfig.xAxis;return _t.title.text+":"+Ut+"
"+xt.title.text+":"+bt+""}},this.updateChart()}parseData(Dt){return(0,V.mG)(this,void 0,void 0,function*(){let Pt="";Dt.Cols[0].tuples.length>=1&&(this.chartConfig.xAxis.title.text=Dt.Cols[0].tuples[0].caption,Pt=Dt.Cols[0].tuples[0].format),Dt.Cols[0].tuples.length>=2&&(this.chartConfig.yAxis.title.text=Dt.Cols[0].tuples[1].caption,Pt=Dt.Cols[0].tuples[1].format),this.chartConfig.series=[];const jt=[];if(Dt.Cols[0].tuples[0].children)this.showError("Data converter for this xy chart not implemented!");else{for(let Ut=0;Ut"+ft+'
\u25cf'+_t.series.name+": "+bt,jt;jt=""+ft+"
";for(let Ct=_t.points.length-1;Ct>-1;Ct--)Ut=_t.points[Ct].series.options.format,bt=_t.points[Ct].y,bt=Dt.formatNumber(bt,Ut),jt+='\u25cf'+_t.points[Ct].series.name+": "+bt+"
";return jt}},navigator:{enabled:!0},scrollbar:{enabled:!1}},series:[],useHighStocks:!0,loading:!0};this.us.mergeRecursive(this.chartConfig,Ft)}parseData(Dt){return(0,V.mG)(this,void 0,void 0,function*(){Dt&&Dt.Info&&(this.dataInfo=Dt.Info),this.chartConfig.yAxis.min=this.getMinValue(Dt.Data),this.clearSeries();let Ft,jt,Pt=[];if(Dt.Cols[0].tuples[0].children){let Ut=0;for(let bt=0;bt=0;Ut--){for(Pt=[],jt=0;jt1&&(_t=parseInt(bt[1])),Ut=this.addDays(Ut,parseInt(Ft)),_t&&Ut.setSeconds(_t),Date.parse(Ut)}}}D.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(D)))(Pt||D)}}(),D.\u0275cmp=O.\u0275\u0275defineComponent({type:D,selectors:[["dsw-line-chart"]],features:[O.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(Dt,Pt){},encapsulation:2});class I extends Z.Uh{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,"barchartstacked"===this.widget.type.toLowerCase()&&this.enableStacking()}}I.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(I)))(Pt||I)}}(),I.\u0275cmp=O.\u0275\u0275defineComponent({type:I,selectors:[["dsw-bar-chart"]],features:[O.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(Dt,Pt){},encapsulation:2});var b=ht(5526);function d(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"div",6)(1,"div",7),O.\u0275\u0275text(2),O.\u0275\u0275elementEnd(),O.\u0275\u0275element(3,"span")(4,"span")(5,"span")(6,"span"),O.\u0275\u0275elementStart(7,"div",7),O.\u0275\u0275text(8),O.\u0275\u0275elementEnd()()),2&Mt){const Pt=O.\u0275\u0275nextContext().$implicit;O.\u0275\u0275advance(2),O.\u0275\u0275textInterpolate(Pt.rangeLower||"0"),O.\u0275\u0275advance(6),O.\u0275\u0275textInterpolate(Pt.rangeUpper||"0")}}function u(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"div"),O.\u0275\u0275text(1),O.\u0275\u0275elementEnd()),2&Mt){const Pt=O.\u0275\u0275nextContext().$implicit;O.\u0275\u0275classProp("align-left","label"===Pt.display),O.\u0275\u0275advance(1),O.\u0275\u0275textInterpolate1(" ",Pt.label," ")}}function a(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"td"),O.\u0275\u0275elementContainerStart(1,3),O.\u0275\u0275template(2,d,9,2,"div",4),O.\u0275\u0275template(3,u,2,3,"div",5),O.\u0275\u0275elementContainerEnd(),O.\u0275\u0275elementEnd()),2&Mt){const Pt=Dt.$implicit;O.\u0275\u0275classProp("plotbox-cell","plotBox"===Pt.display),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngSwitch",Pt.display),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngSwitchCase","plotBox")}}function n(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"div"),O.\u0275\u0275element(1,"img",12),O.\u0275\u0275elementEnd()),2&Mt){const Pt=O.\u0275\u0275nextContext().index,Ft=O.\u0275\u0275nextContext().index,jt=O.\u0275\u0275nextContext();O.\u0275\u0275advance(1),O.\u0275\u0275property("src",jt.data[Ft][Pt],O.\u0275\u0275sanitizeUrl)}}function o(Mt,Dt){if(1&Mt&&O.\u0275\u0275element(0,"span",15),2&Mt){const Pt=O.\u0275\u0275nextContext(2).index,Ft=O.\u0275\u0275nextContext().index,jt=O.\u0275\u0275nextContext();O.\u0275\u0275styleProp("left",jt.targets[Ft][Pt],"%")}}function m(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"div",13),O.\u0275\u0275template(1,o,1,2,"span",14),O.\u0275\u0275elementEnd()),2&Mt){const Pt=O.\u0275\u0275nextContext().index,Ft=O.\u0275\u0275nextContext().index,jt=O.\u0275\u0275nextContext();O.\u0275\u0275styleProp("background-color",jt.color)("width",jt.data[Ft][Pt],"%"),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngIf",jt.targets[Ft][Pt])}}function _(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"div"),O.\u0275\u0275text(1),O.\u0275\u0275elementEnd()),2&Mt){const Pt=O.\u0275\u0275nextContext().index,Ft=O.\u0275\u0275nextContext().index,jt=O.\u0275\u0275nextContext();O.\u0275\u0275advance(1),O.\u0275\u0275textInterpolate1(" ",jt.data[Ft]?jt.data[Ft][Pt]:""," ")}}function B(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"td"),O.\u0275\u0275elementContainerStart(1,3),O.\u0275\u0275template(2,n,2,1,"div",9),O.\u0275\u0275template(3,m,2,5,"div",10),O.\u0275\u0275template(4,_,2,1,"div",11),O.\u0275\u0275elementContainerEnd(),O.\u0275\u0275elementEnd()),2&Mt){const Pt=Dt.$implicit,Ft=O.\u0275\u0275nextContext(2);O.\u0275\u0275styleProp("width","plotBox"===Pt.display?100/Ft.props.length*2:null,"%"),O.\u0275\u0275classProp("align-left","label"===Pt.display)("align-center","itemNo"===Pt.display),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngSwitch",Pt.display),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngSwitchCase","trendLine"),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngSwitchCase","plotBox")}}function X(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"tr"),O.\u0275\u0275template(1,B,5,9,"td",8),O.\u0275\u0275elementEnd()),2&Mt){const Pt=O.\u0275\u0275nextContext();O.\u0275\u0275advance(1),O.\u0275\u0275property("ngForOf",Pt.props)}}function it(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"td"),O.\u0275\u0275text(1),O.\u0275\u0275elementEnd()),2&Mt){const Pt=Dt.$implicit;O.\u0275\u0275advance(1),O.\u0275\u0275textInterpolate1(" ",Pt," ")}}function rt(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"tr",16),O.\u0275\u0275template(1,it,2,1,"td",1),O.\u0275\u0275elementEnd()),2&Mt){const Pt=O.\u0275\u0275nextContext();O.\u0275\u0275advance(1),O.\u0275\u0275property("ngForOf",Pt.footerValues)}}class L extends Y.X{constructor(){super(...arguments),this.columns=[],this.rows=[],this.data=[],this.targets=[],this.hasFooter=!1,this.footerValues=[],this.totalByColumn={}}ngOnInit(){var Dt,Pt,Ft;super.ngOnInit(),this.color=T.getOptions().colors[0],this.tc&&this.tc.hcColors&&(this.color=this.tc.hcColors[0]),this.subColorsConfig=this.bs.subscribe("charts:update-colors",jt=>this.updateColors(jt)),this.prepareProps(),null!==(Dt=this.props)&&void 0!==Dt&&Dt.length||null!==(Ft=null===(Pt=this.override)||void 0===Pt?void 0:Pt.columns)&&void 0!==Ft&&Ft.length&&(this.props=this.override.columns)}ngOnDestroy(){this.subColorsConfig.unsubscribe(),super.ngOnDestroy()}retrieveData(Dt){var Pt;super.retrieveData(Dt),!Dt.Error&&(this.originalData=Dt.Data,this.columns=Dt.Cols[0].tuples,this.rows=(null===(Pt=Dt.Cols[1])||void 0===Pt?void 0:Pt.tuples)||[{}],this.prepareData(Dt.Data),this.cd.detectChanges())}prepareProps(){this.props=this.widget.dataProperties,this.props&&this.props.forEach(Dt=>Dt.label=Dt.label.replace("\\n","\n"))}updateColors(Dt){this.tc=Dt,this.color=Dt?.hcColors[0],this.originalData&&this.prepareData(this.originalData),this.cd.detectChanges()}onHeaderButton(Dt){if("chartConfig"===(super.onHeaderButton(Dt),Dt.name))this.showChartConfig()}showChartConfig(){const Dt=this.widget.name,Pt=this.ss.getWidgetsSettings(this.widget.dashboard)||{};Pt[Dt]||(Pt[Dt]={}),Pt[Dt].themeColors||(Pt[Dt].themeColors={}),this.sbs.showComponent({component:b.m,inputs:{appearance:{showSeries:[!0,!1,!1,!1,!1,!1,!1,!1,!1,!1],showBackground:!1,showLines:!1,showText:!1,showBorder:!1},widgetSettings:Pt[Dt],onSave:()=>{this.ss.setWidgetsSettings(Pt,this.widget.dashboard)},onUpdate:jt=>this.updateColors(jt)}})}getPropValue(Dt,Pt,Ft,jt="dataValue"){const Ut=!isNaN(parseFloat(Ft[jt]));let bt=Ft[jt];if(!Ut){const _t=this.getColumnIndex(Ft[jt]);bt=-1===_t?0:Dt[Pt*this.columns.length+_t]}return bt}getValue(Dt,Pt,Ft,jt,Ut){switch(Ft.display||""){case"itemNo":return(Pt+1).toString();case"label":return this.rows[Pt].caption;case"":case"value":case"plotBox":{const bt=Ft.format;let _t=this.getPropValue(Dt,Pt,Ft);if("plotBox"===Ft.display){let xt=Ft.rangeLower||0,ft=Ft.rangeUpper||0;return void 0!==jt&&(xt=jt),void 0!==Ut&&(ft=Ut),"target%"===Ft.showAs?parseFloat(_t)/parseFloat(this.getPropValue(Dt,Pt,Ft,"targetValue"))*100:ft-xt==0?0:(_t-xt)/(ft-xt)*100}if(""===_t)return"";if("target%"===Ft.showAs){const xt=this.getPropValue(Dt,Pt,Ft,"targetValue");return this.formatNumber(_t/xt,bt)}return"sum%"===Ft.showAs?this.formatNumber(_t/this.totalByColumn[Ft.dataValue],bt||"#.##%"):this.formatNumber(_t,bt)}case"trendLine":{const bt=this.getColumnIndex(Ft.dataValue);let _t="";return-1!==bt&&(_t=Dt[Pt*this.columns.length+bt]),this.getSvgForTrendLine(Ft,_t)}}return 0}getColumnIndex(Dt){return this.columns.findIndex(Ft=>Ft.dimension?Dt.split("/").includes(Ft.dimension):/^Properties\(\"([^)]+)\"\)/.exec(Ft.valueID)[1]===Dt)}prepareData(Dt){const Pt=[];for(let Ft=0;Ft(ft+bt)%this.columns.length==0);Ut=Math.max(..._t),jt=Math.min(..._t)}jt=0,Pt.push({min:jt,max:Ut}),this.props[Ft].rangeLower||(this.props[Ft].rangeLower=jt),this.props[Ft].rangeUpper||(this.props[Ft].rangeUpper=Ut)}else Pt.push({min:jt,max:Ut})}this.preparePercentageSums(Dt),this.data=[],this.targets=[];for(let Ft=0;Ft"sum"===Dt.summary),this.footerValues=[],this.hasFooter)for(let Dt=0;Dt{if(!Ct)return 0;const Ot=parseFloat(Ct);return isNaN(Ot)?0:Ot}):"number"==typeof Pt?jt=[Pt]:Array.isArray(Pt);const Ut=Math.max(...jt),bt=Math.min(...jt),_t=4*(jt.length-1);let xt=`\n "sum%"===Ft.showAs);0!==Pt.length&&Pt.forEach(Ft=>{const jt=this.columns.findIndex(Ut=>Ut.dimension===Ft.dataValue);this.totalByColumn[Ft.dataValue]=Dt.reduce((Ut,bt,_t)=>{if(_t%this.columns.length!==jt||""===bt)return Ut;const xt=parseFloat(bt);return isNaN(xt)?Ut:Ut+xt},0)})}}L.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(L)))(Pt||L)}}(),L.\u0275cmp=O.\u0275\u0275defineComponent({type:L,selectors:[["dsw-scorecard"]],inputs:{widget:"widget"},features:[O.\u0275\u0275InheritDefinitionFeature],decls:7,vars:3,consts:[[3,"plotbox-cell",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["class","footer",4,"ngIf"],[3,"ngSwitch"],["class","axis",4,"ngSwitchCase"],[3,"align-left",4,"ngSwitchDefault"],[1,"axis"],[1,"label"],[3,"width","align-left","align-center",4,"ngFor","ngForOf"],[4,"ngSwitchCase"],["class","box",3,"background-color","width",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"src"],[1,"box"],["class","target",3,"left",4,"ngIf"],[1,"target"],[1,"footer"]],template:function(Dt,Pt){1&Dt&&(O.\u0275\u0275elementStart(0,"table")(1,"thead")(2,"tr"),O.\u0275\u0275template(3,a,4,4,"td",0),O.\u0275\u0275elementEnd()(),O.\u0275\u0275elementStart(4,"tbody"),O.\u0275\u0275template(5,X,2,1,"tr",1),O.\u0275\u0275template(6,rt,2,1,"tr",2),O.\u0275\u0275elementEnd()()),2&Dt&&(O.\u0275\u0275advance(3),O.\u0275\u0275property("ngForOf",Pt.props),O.\u0275\u0275advance(2),O.\u0275\u0275property("ngForOf",Pt.rows),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngIf",Pt.hasFooter))},dependencies:[y.NgForOf,y.NgIf,y.NgSwitch,y.NgSwitchCase,y.NgSwitchDefault],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{overflow-y:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0;width:100%}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{color:#686868}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]{position:relative;z-index:2}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{white-space:pre;text-align:right;position:sticky;top:0;padding:0 10px;height:40px;background-color:var(--cl-widget-filter-bg);border-bottom:1px solid var(--cl-header-border)}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-left[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-center[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:6px 10px;text-align:right}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-left[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-center[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:30px}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#00000003}.box[_ngcontent-%COMP%]{height:18px;flex-shrink:0;flex-grow:0;position:relative}.boxes-container[_ngcontent-%COMP%]{display:flex}.boxes-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:40px;flex-shrink:0;flex-grow:0;margin-right:10px}.axis[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:10px;border-bottom:1px solid gray;height:6px;border-left:1px solid gray;margin-top:28px;position:relative}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{position:absolute;text-align:center;top:-14px}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]:first-child{left:0;transform:translate(-50%)}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]:last-child{right:0;transform:translate(50%)}.axis[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:100%;border-right:1px solid gray}.footer[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{color:var(--cl-txt);background-color:var(--cl-widget-filter-bg);border-top:1px solid var(--cl-header-border);position:sticky;bottom:0}.target[_ngcontent-%COMP%]{display:inline-block;width:2px;transform:translate(-1);background-color:#1c1d20;height:calc(100% + 4px);position:absolute;top:-2px}.plotbox-cell[_ngcontent-%COMP%]{z-index:1}"]});class z extends Y.X{constructor(){super(...arguments),this.data=[]}prepareMeterData(Dt){var Pt,Ft,jt;if(this.data=[],!Dt)return;const Ut=!(null===(Ft=null===(Pt=this.widget)||void 0===Pt?void 0:Pt.dataProperties)||void 0===Ft||!Ft.length),bt=Ut?null===(jt=this.widget)||void 0===jt?void 0:jt.dataProperties:Dt.Cols[0].tuples;for(let _t=0;_tNe.dimension===xt.dataValue);Ct=Dt.Cols[0].tuples[ye].caption,ft=Dt.Data[ye]}else Ct=bt[_t].caption,ft=Dt.Data[_t];let Ot=1,Rt=parseFloat(xt.rangeLower.toString()),Zt=parseFloat(xt.rangeUpper.toString());isNaN(Rt)&&(Rt=0),isNaN(Zt)&&(Zt=100);let he=Rt,Ie=Zt;isNaN(he)&&(he=33.33333),isNaN(Ie)&&(Ie=66.66666),ft=Ie&&(Ot=2),this.data.push({caption:Ct,state:Ot,value:ft,min:Rt,max:Zt})}}retrieveData(Dt){this.hideLoading(),this.prepareMeterData(Dt),this.cd.markForCheck(),this.cd.detectChanges()}}function et(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"div",1),O.\u0275\u0275element(1,"img",2),O.\u0275\u0275elementStart(2,"label"),O.\u0275\u0275text(3),O.\u0275\u0275elementEnd()()),2&Mt){const Pt=Dt.$implicit;O.\u0275\u0275advance(1),O.\u0275\u0275property("src","assets/img/smiley/"+(1===Pt.state?"smile-yellow.svg":0===Pt.state?"smile-red.svg":"smile-green.svg"),O.\u0275\u0275sanitizeUrl),O.\u0275\u0275advance(2),O.\u0275\u0275textInterpolate(Pt.caption)}}class at extends z{get gridColumns(){var Dt,Pt;return"repeat("+((null===(Dt=this.data)||void 0===Dt?void 0:Dt.length)>=3?3:(null===(Pt=this.data)||void 0===Pt?void 0:Pt.length)||0).toString()+", 1fr)"}}function st(Mt,Dt){if(1&Mt&&O.\u0275\u0275element(0,"div",4),2&Mt){const Pt=Dt.$implicit,Ft=O.\u0275\u0275nextContext().$implicit;O.\u0275\u0275classProp("filled",Ft.progress>=Pt+1)}}function H(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"div",1)(1,"div",2),O.\u0275\u0275template(2,st,1,2,"div",3),O.\u0275\u0275elementEnd(),O.\u0275\u0275elementStart(3,"label"),O.\u0275\u0275text(4),O.\u0275\u0275elementEnd()()),2&Mt){const Pt=Dt.$implicit,Ft=O.\u0275\u0275nextContext();O.\u0275\u0275advance(1),O.\u0275\u0275classProp("high",2===Pt.state)("low",0===Pt.state),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngForOf",Ft.dots),O.\u0275\u0275advance(2),O.\u0275\u0275textInterpolate(Pt.caption)}}at.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(at)))(Pt||at)}}(),at.\u0275cmp=O.\u0275\u0275defineComponent({type:at,selectors:[["dsw-wsmiley"]],hostVars:2,hostBindings:function(Dt,Pt){2&Dt&&O.\u0275\u0275styleProp("grid-template-columns",Pt.gridColumns)},inputs:{widget:"widget"},features:[O.\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[["class","card",4,"ngFor","ngForOf"],[1,"card"],[3,"src"]],template:function(Dt,Pt){1&Dt&&O.\u0275\u0275template(0,et,4,2,"div",0),2&Dt&&O.\u0275\u0275property("ngForOf",Pt.data)},dependencies:[y.NgForOf],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Roboto Condensed;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center}img[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 24px);max-width:100%}.card[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.card[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}label[_ngcontent-%COMP%]{width:100%;font-family:Roboto Condensed;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});class ot extends z{constructor(){super(...arguments),this.data=[],this.dots=[0,1,2,3,4,5,6,7,8,9]}get gridColumns(){var Dt;return"repeat("+((null===(Dt=this.data)||void 0===Dt?void 0:Dt.length)>=5?2:1).toString()+", 1fr)"}prepareMeterData(Dt){super.prepareMeterData(Dt),this.data.forEach(Pt=>{Pt.progress=(Pt.value-Pt.min)/(Pt.max-Pt.min)*10,isNaN(Pt.progress)&&(Pt.progress=0)}),console.log(this.data)}}function nt(Mt,Dt){if(1&Mt&&(O.\u0275\u0275elementStart(0,"div",1),O.\u0275\u0275element(1,"img",2),O.\u0275\u0275elementStart(2,"label"),O.\u0275\u0275text(3),O.\u0275\u0275elementEnd()()),2&Mt){const Pt=Dt.$implicit;O.\u0275\u0275advance(1),O.\u0275\u0275property("src","assets/img/traffic-light/"+(1===Pt.state?"yellow.svg":0===Pt.state?"red.svg":"green.svg"),O.\u0275\u0275sanitizeUrl),O.\u0275\u0275advance(2),O.\u0275\u0275textInterpolate(Pt.caption)}}ot.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(ot)))(Pt||ot)}}(),ot.\u0275cmp=O.\u0275\u0275defineComponent({type:ot,selectors:[["dsw-light-bar"]],hostVars:2,hostBindings:function(Dt,Pt){2&Dt&&O.\u0275\u0275styleProp("grid-template-columns",Pt.gridColumns)},inputs:{widget:"widget"},features:[O.\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[["class","holder",4,"ngFor","ngForOf"],[1,"holder"],[1,"bar"],["class","dot",3,"filled",4,"ngFor","ngForOf"],[1,"dot"]],template:function(Dt,Pt){1&Dt&&O.\u0275\u0275template(0,H,5,6,"div",0),2&Dt&&O.\u0275\u0275property("ngForOf",Pt.data)},dependencies:[y.NgForOf],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Roboto Condensed;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center;gap:20px}.holder[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}label[_ngcontent-%COMP%]{width:100%;font-family:Roboto Condensed;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar[_ngcontent-%COMP%]{display:flex;width:100%;height:24px;border:1px solid var(--cl-accent);border-radius:1000px;padding-left:3px;padding-right:3px;gap:4px;justify-content:space-between;align-items:center}.dot[_ngcontent-%COMP%]{background:var(--cl-hover);border-radius:1000px;width:100%;height:100%;max-width:18px;max-height:18px}.dot.filled[_ngcontent-%COMP%]{background:var(--cl-accent)}.bar.high[_ngcontent-%COMP%] > .dot[_ngcontent-%COMP%]:last-child{background-color:#e07d86}.bar.low[_ngcontent-%COMP%] > .dot[_ngcontent-%COMP%]:first-child{background-color:#175ab8}"],changeDetection:0});class yt extends z{get gridColumns(){var Dt,Pt;return"repeat("+((null===(Dt=this.data)||void 0===Dt?void 0:Dt.length)>=3?3:(null===(Pt=this.data)||void 0===Pt?void 0:Pt.length)||0).toString()+", 1fr)"}}yt.\u0275fac=function(){let Mt;return function(Pt){return(Mt||(Mt=O.\u0275\u0275getInheritedFactory(yt)))(Pt||yt)}}(),yt.\u0275cmp=O.\u0275\u0275defineComponent({type:yt,selectors:[["dsw-traffic-light"]],hostVars:2,hostBindings:function(Dt,Pt){2&Dt&&O.\u0275\u0275styleProp("grid-template-columns",Pt.gridColumns)},inputs:{widget:"widget"},features:[O.\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[["class","card",4,"ngFor","ngForOf"],[1,"card"],[3,"src"]],template:function(Dt,Pt){1&Dt&&O.\u0275\u0275template(0,nt,4,2,"div",0),2&Dt&&O.\u0275\u0275property("ngForOf",Pt.data)},dependencies:[y.NgForOf],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Roboto Condensed;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center;gap:20px}img[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 24px);max-width:100%}.card[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.card[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}label[_ngcontent-%COMP%]{width:100%;font-family:Roboto Condensed;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});const mt=[{id:"btn.ShowAnnotations",text:"Show annotations",tooltip:"Show annotations",icon:"assets/img/icons/text.svg",defValue:!0},{id:"btn.ShowPercents",text:"Show percents",tooltip:"Show percents",icon:"assets/img/icons/percent.svg"}],St={regular:{label:"Scorecard chart",class:L,allowShowAsPivot:!0},fuelGauge:{class:v,type:"chart",chart:"solidgauge",allowShowAsPivot:!0},bullseyeChart:{label:"Bullseye chart",class:N,type:"chart",chart:"pie",headerButtons:mt,allowShowAsPivot:!0},speedometer:{class:v,type:"chart",chart:"gauge",allowShowAsPivot:!0,disableLegend:!0},bubbleChart:{label:"Bubble chart",class:k,type:"chart",chart:"bubble",allowShowAsPivot:!0},treeMapChart:{label:"Tree map chart",class:R,type:"chart",chart:"treemap",allowShowAsPivot:!0},hilowChart:{label:"Hi-low chart",class:w,type:"chart",chart:"boxplot",allowShowAsPivot:!0},pieChart3D:{label:"Pie chart 3D",class:j,type:"chart",chart:"pie",headerButtons:mt,allowShowAsPivot:!0},donutChart3D:{label:"Donut chart 3D",class:j,type:"chart",chart:"pie",headerButtons:mt,allowShowAsPivot:!0},donutChart:{label:"Donut chart",class:j,type:"chart",chart:"pie",headerButtons:mt,allowShowAsPivot:!0},pieChart:{label:"Pie chart",class:j,type:"chart",chart:"pie",headerButtons:mt,allowShowAsPivot:!0},areaChart:{label:"Area chart",class:S,type:"chart",chart:"area",allowShowAsPivot:!0},barChart:{label:"Bar chart",class:I,type:"chart",chart:"bar",allowShowAsPivot:!0},"isc.kkbanalitics.portlets.stacionarkkbportlet":{type:"chart",allowShowAsPivot:!0},barChartStacked:{label:"Bar chart stacked",class:I,type:"chart",chart:"bar",allowShowAsPivot:!0},lineChart:{label:"Linear chart",class:E,type:"chart",chart:"line",allowShowAsPivot:!0},lineChartMarkers:{label:"Linear chart with markers",class:E,type:"chart",chart:"line",allowShowAsPivot:!0},comboChart:{label:"Combo chart",class:E,type:"chart",chart:"line",allowShowAsPivot:!0},columnChart:{label:"Column chart",class:$,type:"chart",chart:"column",allowShowAsPivot:!0},columnChart3D:{label:"Column chart 3D",class:$,type:"chart",chart:"column",allowShowAsPivot:!0},columnChartStacked:{label:"Column chart stacked",class:$,type:"chart",chart:"column",allowShowAsPivot:!0},xyChart:{label:"XY chart",class:M,type:"chart",chart:"scatter",allowShowAsPivot:!0},timeChart:{label:"Time chart",class:D,type:"chart",allowShowAsPivot:!0},pivot:{label:"Table",class:U,type:"pivot"},"deepsee.lightpivottable":{class:U,type:"pivot"},textMeter:{label:"Text meter",class:t.X,type:"text",allowShowAsPivot:!0},map:{label:"World map",class:G.a,type:"map",allowShowAsPivot:!0},"deepsee.enhancedmapportlet":{class:G.a,type:"map",allowShowAsPivot:!0},"rf.mapportlet":{class:G.a,type:"map",allowShowAsPivot:!0},horizontalControls:{class:W,type:"empty"},verticalControls:{class:W,type:"empty"},smiley:{class:at,allowShowAsPivot:!1},lightBar:{class:ot,allowShowAsPivot:!1},trafficLight:{class:yt,allowShowAsPivot:!1}};St[pt._.const.emptyWidgetClass]={class:W,type:"empty"};class wt{constructor(){}initialize(){const Dt=pt._.addons;if(Dt&&Dt&&Dt.length)for(let Pt=0;Pt{"use strict";ht.d($t,{_:()=>t});const t={addons:[],mobile:!1,desktop:!0,const:{themes:[{text:"Default",file:""},{text:"Contrast",file:"contrast.css"}],bgColorClasses:["","cl1","cl2","cl3","cl4","cl5","cl6","cl7","cl8","cl9"],fontColors:["fc1","fc2","fc3","fc4","fc5"],icons:["","back-1.svg","folder-1.svg","widget-1.svg","dashboard-1.svg","widget-2.svg","widget-3.svg","widget-4.svg"],timeout:6e4,ver:"3.2.16",emptyWidgetClass:"MDX2JSON.EmptyPortlet".toLowerCase()}}},2340:(Jt,$t,ht)=>{"use strict";ht.d($t,{N:()=>pt});const pt={production:!0}},4431:(Jt,$t,ht)=>{"use strict";var pt=ht(1481),t=ht(1571),Y=ht(4492);ht(2340).N.production&&(0,t.enableProdMode)(),pt.platformBrowser().bootstrapModule(Y.b).catch(O=>console.error(O))},9926:function(Jt){Jt.exports=function(){"use strict";var $t={d:function(st,H){for(var ot in H)$t.o(H,ot)&&!$t.o(st,ot)&&Object.defineProperty(st,ot,{enumerable:!0,get:H[ot]})},o:function(st,H){return Object.prototype.hasOwnProperty.call(st,H)}},ht={};$t.d(ht,{default:function(){return et}});var pt={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},t={classes:"",inline:!1,locale:{days:["\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0412\u0442\u043e\u0440\u043d\u0438\u043a","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041f\u044f\u0442\u043d\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043e\u0442\u0430"],daysShort:["\u0412\u043e\u0441","\u041f\u043e\u043d","\u0412\u0442\u043e","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041f\u044f\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041f\u043d","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041f\u0442","\u0421\u0431"],months:["\u042f\u043d\u0432\u0430\u0440\u044c","\u0424\u0435\u0432\u0440\u0430\u043b\u044c","\u041c\u0430\u0440\u0442","\u0410\u043f\u0440\u0435\u043b\u044c","\u041c\u0430\u0439","\u0418\u044e\u043d\u044c","\u0418\u044e\u043b\u044c","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u041e\u043a\u0442\u044f\u0431\u0440\u044c","\u041d\u043e\u044f\u0431\u0440\u044c","\u0414\u0435\u043a\u0430\u0431\u0440\u044c"],monthsShort:["\u042f\u043d\u0432","\u0424\u0435\u0432","\u041c\u0430\u0440","\u0410\u043f\u0440","\u041c\u0430\u0439","\u0418\u044e\u043d","\u0418\u044e\u043b","\u0410\u0432\u0433","\u0421\u0435\u043d","\u041e\u043a\u0442","\u041d\u043e\u044f","\u0414\u0435\u043a"],today:"\u0421\u0435\u0433\u043e\u0434\u043d\u044f",clear:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:pt.days,minView:pt.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,prevHtml:'',nextHtml:'',navTitles:{days:"MMMM, yyyy",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function Y(st){let H=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"string"==typeof st?H.querySelector(st):st}function q(){let{tagName:st="div",className:H="",innerHtml:ot="",id:nt="",attrs:yt={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},gt=document.createElement(st);return H&>.classList.add(...H.split(" ")),nt&&(gt.id=nt),ot&&(gt.innerHTML=ot),yt&&O(gt,yt),gt}function O(st,H){for(let[ot,nt]of Object.entries(H))void 0!==nt&&st.setAttribute(ot,nt);return st}function U(st){return new Date(st.getFullYear(),st.getMonth()+1,0).getDate()}function G(st){let H=st.getHours(),{hours:ot,dayPeriod:nt}=Z(H);return{year:st.getFullYear(),month:st.getMonth(),fullMonth:st.getMonth()+1<10?"0"+(st.getMonth()+1):st.getMonth()+1,date:st.getDate(),fullDate:st.getDate()<10?"0"+st.getDate():st.getDate(),day:st.getDay(),hours:H,fullHours:$(H),hours12:ot,dayPeriod:nt,fullHours12:$(ot),minutes:st.getMinutes(),fullMinutes:st.getMinutes()<10?"0"+st.getMinutes():st.getMinutes()}}function Z(st){return{dayPeriod:st>11?"pm":"am",hours:st%12==0?12:st%12}}function $(st){return st<10?"0"+st:st}function W(st){let H=10*Math.floor(st.getFullYear()/10);return[H,H+9]}function V(){let st=[];for(var H=arguments.length,ot=new Array(H),nt=0;nt{if("object"==typeof yt)for(let gt in yt)yt[gt]&&st.push(gt);else yt&&st.push(yt)}),st.join(" ")}function R(st,H){let ot=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pt.days;if(!st||!H)return!1;let nt=G(st),yt=G(H);return{[pt.days]:nt.date===yt.date&&nt.month===yt.month&&nt.year===yt.year,[pt.months]:nt.month===yt.month&&nt.year===yt.year,[pt.years]:nt.year===yt.year}[ot]}function P(st,H,ot){let nt=E(st,!1).getTime(),yt=E(H,!1).getTime();return ot?nt>=yt:nt>yt}function k(st,H){return!P(st,H,!0)}function E(st){let H=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],ot=new Date(st.getTime());return"boolean"!=typeof H||H||w(ot),ot}function w(st){return st.setHours(0,0,0,0),st}function T(st,H,ot){st.length?st.forEach(nt=>{nt.addEventListener(H,ot)}):st.addEventListener(H,ot)}function y(st,H){return!(!st||st===document||st instanceof DocumentFragment)&&(st.matches(H)?st:y(st.parentNode,H))}function A(st,H,ot){return st>ot?ot:st1?H-1:0),nt=1;ntyt).forEach(yt=>{for(let[gt,mt]of Object.entries(yt))if(void 0!==mt&&"[object Object]"===mt.toString()){let St=void 0!==st[gt]?st[gt].toString():void 0,wt=mt.toString(),Mt=Array.isArray(mt)?[]:{};st[gt]=st[gt]?St!==wt?Mt:st[gt]:Mt,g(st[gt],mt)}else st[gt]=mt}),st}function v(st){let H=st;return st instanceof Date||(H=new Date(st)),isNaN(H.getTime())&&(console.log(`Unable to convert value "${st}" to Date object`),H=!1),H}function S(st){let H="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+H+")("+st+")($|<|"+H+")","g")}function N(st,H,ot){return(H="symbol"==typeof(yt=function(gt,mt){if("object"!=typeof gt||null===gt)return gt;var St=gt[Symbol.toPrimitive];if(void 0!==St){var wt=St.call(gt,mt);if("object"!=typeof wt)return wt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(gt)}(H,"string"))?yt:String(yt))in st?Object.defineProperty(st,H,{value:ot,enumerable:!0,configurable:!0,writable:!0}):st[H]=ot,st;var yt}class j{constructor(){let{type:H,date:ot,dp:nt,opts:yt,body:gt}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,"focus",()=>{this.$cell.classList.add("-focus-"),this.focused=!0}),N(this,"removeFocus",()=>{this.$cell.classList.remove("-focus-"),this.focused=!1}),N(this,"select",()=>{this.$cell.classList.add("-selected-"),this.selected=!0}),N(this,"removeSelect",()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1}),N(this,"onChangeSelectedDate",()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())}),N(this,"onChangeFocusDate",mt=>{if(!mt)return void(this.focused&&this.removeFocus());let St=R(mt,this.date,this.type);St?this.focus():!St&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()}),N(this,"render",()=>(this.$cell.innerHTML=this._getHtml(),this.$cell.adpCell=this,this.$cell)),this.type=H,this.singleType=this.type.slice(0,-1),this.date=ot,this.dp=nt,this.opts=yt,this.body=gt,this.customData=!1,this.init()}init(){let{range:H,onRenderCell:ot}=this.opts;ot&&(this.customData=ot({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),H&&this._handleRangeStatus())}_bindDatepickerEvents(){this.dp.on(pt.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(pt.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(pt.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(pt.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var H;let{year:ot,month:nt,date:yt}=G(this.date),gt=(null===(H=this.customData)||void 0===H?void 0:H.attrs)||{};this.$cell=q({className:this._getClassName(),attrs:{"data-year":ot,"data-month":nt,"data-date":yt,...gt}})}_getClassName(){var H,ot;let nt=new Date,{selectOtherMonths:yt,selectOtherYears:gt}=this.opts,{minDate:mt,maxDate:St}=this.dp,{day:wt}=G(this.date),Mt=this._isOutOfMinMaxRange(),Dt=null===(H=this.customData)||void 0===H?void 0:H.disabled,Pt=V("air-datepicker-cell",`-${this.singleType}-`,{"-current-":R(nt,this.date,this.type),"-min-date-":mt&&R(mt,this.date,this.type),"-max-date-":St&&R(St,this.date,this.type)}),Ft="";switch(this.type){case pt.days:Ft=V({"-weekend-":this.dp.isWeekend(wt),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!yt||Mt||Dt});break;case pt.months:Ft=V({"-disabled-":Mt||Dt});break;case pt.years:Ft=V({"-other-decade-":this.isOtherDecade,"-disabled-":Mt||this.isOtherDecade&&!gt||Dt})}return V(Pt,Ft,null===(ot=this.customData)||void 0===ot?void 0:ot.classes)}_getHtml(){var H;let{year:ot,month:nt,date:yt}=G(this.date),{showOtherMonths:gt,showOtherYears:mt}=this.opts;if(null!==(H=this.customData)&&void 0!==H&&H.html)return this.customData.html;switch(this.type){case pt.days:return!gt&&this.isOtherMonth?"":yt;case pt.months:return this.dp.locale[this.opts.monthsField][nt];case pt.years:return!mt&&this.isOtherDecade?"":ot}}_isOutOfMinMaxRange(){let{minDate:H,maxDate:ot}=this.dp,{type:nt,date:yt}=this,{month:gt,year:mt,date:St}=G(yt),wt=nt===pt.days,Mt=nt===pt.years,Dt=!!H&&new Date(mt,Mt?H.getMonth():gt,wt?St:H.getDate()),Pt=!!ot&&new Date(mt,Mt?ot.getMonth():gt,wt?St:ot.getDate());return H&&ot?k(Dt,H)||P(Pt,ot):H?k(Dt,H):ot?P(Pt,ot):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{rangeDateFrom:H,rangeDateTo:ot}=this.dp,nt=V({"-in-range-":H&&ot&&(yt=this.date,gt=H,mt=ot,P(yt,gt)&&k(yt,mt)),"-range-from-":H&&R(this.date,H,this.type),"-range-to-":ot&&R(this.date,ot,this.type)});var yt,gt,mt;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),nt&&this.$cell.classList.add(...nt.split(" "))}_handleSelectedStatus(){let H=this.dp._checkIfDateIsSelected(this.date,this.type);H?this.select():!H&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){R(this.dp.focusDate,this.date,this.type)&&this.focus()}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function M(st,H,ot){return(H="symbol"==typeof(yt=function(gt,mt){if("object"!=typeof gt||null===gt)return gt;var St=gt[Symbol.toPrimitive];if(void 0!==St){var wt=St.call(gt,mt);if("object"!=typeof wt)return wt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(gt)}(H,"string"))?yt:String(yt))in st?Object.defineProperty(st,H,{value:ot,enumerable:!0,configurable:!0,writable:!0}):st[H]=ot,st;var yt}let D={[pt.days]:`
`,[pt.months]:`
`,[pt.years]:`
`};const I=".air-datepicker-cell";class b{constructor(H){let{dp:ot,type:nt,opts:yt}=H;M(this,"handleClick",gt=>{let mt=gt.target.closest(I).adpCell;if(mt.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let St=this.dp._checkIfDateIsSelected(mt.date,mt.type);St?this.dp._handleAlreadySelectedDates(St,mt.date):this.dp.selectDate(mt.date)}),M(this,"handleDayNameClick",gt=>{let mt=gt.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(mt),datepicker:this.dp})}),M(this,"onChangeCurrentView",gt=>{gt!==this.type?this.hide():(this.show(),this.render())}),M(this,"onMouseOverCell",gt=>{let mt=y(gt.target,I);this.dp.setFocusDate(!!mt&&mt.adpCell.date)}),M(this,"onMouseOutCell",()=>{this.dp.setFocusDate(!1)}),M(this,"onClickBody",gt=>{let{onClickDayName:mt}=this.opts,St=gt.target;St.closest(I)&&this.handleClick(gt),mt&&St.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(gt)}),M(this,"onMouseDown",gt=>{this.pressed=!0;let mt=y(gt.target,I),St=mt&&mt.adpCell;R(St.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),R(St.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)}),M(this,"onMouseMove",gt=>{if(!this.pressed||!this.dp.isMinViewReached)return;gt.preventDefault();let mt=y(gt.target,I),St=mt&&mt.adpCell,{selectedDates:wt,rangeDateTo:Mt,rangeDateFrom:Dt}=this.dp;if(!St||St.isDisabled)return;let{date:Pt}=St;if(2===wt.length){if(this.rangeFromFocused&&!P(Pt,Mt)){let{hours:Ft,minutes:jt}=G(Dt);Pt.setHours(Ft),Pt.setMinutes(jt),this.dp.rangeDateFrom=Pt,this.dp.replaceDate(Dt,Pt)}if(this.rangeToFocused&&!k(Pt,Dt)){let{hours:Ft,minutes:jt}=G(Mt);Pt.setHours(Ft),Pt.setMinutes(jt),this.dp.rangeDateTo=Pt,this.dp.replaceDate(Mt,Pt)}}}),M(this,"onMouseUp",()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1}),M(this,"onChangeViewDate",(gt,mt)=>{if(!this.isVisible)return;let St=W(gt),wt=W(mt);switch(this.dp.currentView){case pt.days:if(R(gt,mt,pt.months))return;break;case pt.months:if(R(gt,mt,pt.years))return;break;case pt.years:if(St[0]===wt[0]&&St[1]===wt[1])return}this.render()}),M(this,"render",()=>{this.destroyCells(),this._generateCells(),this.cells.forEach(gt=>{this.$cells.appendChild(gt.render())})}),this.dp=ot,this.type=nt,this.opts=yt,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===pt.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:H,dynamicRange:ot}=this.opts;T(this.$el,"mouseover",this.onMouseOverCell),T(this.$el,"mouseout",this.onMouseOutCell),T(this.$el,"click",this.onClickBody),H&&ot&&(T(this.$el,"mousedown",this.onMouseDown),T(this.$el,"mousemove",this.onMouseMove),T(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(pt.eventChangeViewDate,this.onChangeViewDate),this.dp.on(pt.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=q({className:`air-datepicker-body -${this.type}-`,innerHtml:D[this.type]}),this.$names=Y(".air-datepicker-body--day-names",this.$el),this.$cells=Y(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dp.locale.firstDay,ot="",nt=this.dp.isWeekend,{onClickDayName:yt}=this.opts,gt=H,mt=0;for(;mt<7;){let St=gt%7;ot+=`
${this.dp.locale.daysMin[St]}
`,mt++,gt++}return ot}_getDaysCells(){let{viewDate:H,locale:{firstDay:ot}}=this.dp,nt=U(H),{year:yt,month:gt}=G(H),mt=new Date(yt,gt,1),St=new Date(yt,gt,nt),wt=mt.getDay()-ot,Mt=6-St.getDay()+ot;wt=wt<0?wt+7:wt,Mt=Mt>6?Mt-7:Mt;let Dt=function(_t,xt){let{year:ft,month:Ct,date:Ot}=G(_t);return new Date(ft,Ct,Ot-xt)}(mt,wt),Pt=nt+wt+Mt,Ft=Dt.getDate(),{year:jt,month:Ut}=G(Dt),bt=0;for(;btH.destroy()),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(pt.eventChangeViewDate,this.onChangeViewDate),this.dp.off(pt.eventChangeCurrentView,this.onChangeCurrentView)}}function d(st,H,ot){return(H="symbol"==typeof(yt=function(gt,mt){if("object"!=typeof gt||null===gt)return gt;var St=gt[Symbol.toPrimitive];if(void 0!==St){var wt=St.call(gt,mt);if("object"!=typeof wt)return wt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(gt)}(H,"string"))?yt:String(yt))in st?Object.defineProperty(st,H,{value:ot,enumerable:!0,configurable:!0,writable:!0}):st[H]=ot,st;var yt}class u{constructor(H){let{dp:ot,opts:nt}=H;d(this,"onClickNav",yt=>{let gt=y(yt.target,".air-datepicker-nav--action");if(!gt)return;let mt=gt.dataset.action;this.dp[mt]()}),d(this,"onChangeViewDate",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),d(this,"onChangeCurrentView",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),d(this,"onClickNavTitle",()=>{this.dp.isFinalView||this.dp.up()}),d(this,"update",()=>{let{prevHtml:yt,nextHtml:gt}=this.opts;this.$prev.innerHTML=yt,this.$next.innerHTML=gt,this._resetNavStatus(),this.render(),this.handleNavStatus()}),d(this,"renderDelay",()=>{setTimeout(this.render)}),d(this,"render",()=>{this.$title.innerHTML=this._getTitle(),function(yt,gt){for(let mt in gt)gt[mt]?yt.classList.add(mt):yt.classList.remove(mt)}(this.$title,{"-disabled-":this.dp.isFinalView})}),this.dp=ot,this.opts=nt,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=Y(".air-datepicker-nav--title",this.$el),this.$prev=Y('[data-action="prev"]',this.$el),this.$next=Y('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(pt.eventChangeViewDate,this.onChangeViewDate),this.dp.on(pt.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(pt.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(pt.eventChangeTime,this.render))}destroy(){this.dp.off(pt.eventChangeViewDate,this.onChangeViewDate),this.dp.off(pt.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(pt.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(pt.eventChangeTime,this.render))}_createElement(){this.$el=q({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:H,opts:ot}=this,nt=ot.navTitles[H.currentView];return"function"==typeof nt?nt(H):H.formatDate(H.viewDate,nt)}handleNavStatus(){let{disableNavWhenOutOfRange:H}=this.opts,{minDate:ot,maxDate:nt}=this.dp;if(!ot&&!nt||!H)return;let{year:yt,month:gt}=this.dp.parsedViewDate,mt=!!ot&&G(ot),St=!!nt&&G(nt);switch(this.dp.currentView){case pt.days:ot&&mt.month>=gt&&mt.year>=yt&&this._disableNav("prev"),nt&&St.month<=gt&&St.year<=yt&&this._disableNav("next");break;case pt.months:ot&&mt.year>=yt&&this._disableNav("prev"),nt&&St.year<=yt&&this._disableNav("next");break;case pt.years:{let wt=W(this.dp.viewDate);ot&&mt.year>=wt[0]&&this._disableNav("prev"),nt&&St.year<=wt[1]&&this._disableNav("next");break}}}_disableNav(H){Y('[data-action="'+H+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){!function(H){for(var ot=arguments.length,nt=new Array(ot>1?ot-1:0),yt=1;yt{gt.classList.remove(...nt)}):H.classList.remove(...nt)}(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:H,nextHtml:ot}=this.opts;this.$el.innerHTML=`
${H}
${ot}
`}get isNavIsFunction(){let{navTitles:H}=this.opts;return Object.keys(H).find(ot=>"function"==typeof H[ot])}}var a={today:{content:st=>st.locale.today,onClick:st=>st.setViewDate(new Date)},clear:{content:st=>st.locale.clear,onClick:st=>st.clear()}};class n{constructor(H){let{dp:ot,opts:nt}=H;this.dp=ot,this.opts=nt,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=q({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:H}=this.opts;Array.isArray(H)||(H=[H]),H.forEach(ot=>{let nt=ot;"string"==typeof ot&&a[ot]&&(nt=a[ot]);let yt=this.createButton(nt);nt.onClick&&this.attachEventToButton(yt,nt.onClick),this.$el.appendChild(yt)})}attachEventToButton(H,ot){H.addEventListener("click",()=>{ot(this.dp)})}createButton(H){let{content:ot,className:nt,tagName:yt="button",attrs:gt={}}=H;return q({tagName:yt,innerHtml:`${"function"==typeof ot?ot(this.dp):ot}`,className:V("air-datepicker-button",nt),attrs:gt})}render(){this.generateButtons()}}function o(st,H,ot){return(H="symbol"==typeof(yt=function(gt,mt){if("object"!=typeof gt||null===gt)return gt;var St=gt[Symbol.toPrimitive];if(void 0!==St){var wt=St.call(gt,mt);if("object"!=typeof wt)return wt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(gt)}(H,"string"))?yt:String(yt))in st?Object.defineProperty(st,H,{value:ot,enumerable:!0,configurable:!0,writable:!0}):st[H]=ot,st;var yt}class m{constructor(){let{opts:H,dp:ot}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,"toggleTimepickerIsActive",yt=>{this.dp.timepickerIsActive=yt}),o(this,"onChangeSelectedDate",yt=>{let{date:gt,updateTime:mt=!1}=yt;gt&&(this.setMinMaxTime(gt),this.setCurrentTime(!!mt&>),this.addTimeToDate(gt))}),o(this,"onChangeLastSelectedDate",yt=>{yt&&(this.setTime(yt),this.render())}),o(this,"onChangeInputRange",yt=>{let gt=yt.target;this[gt.getAttribute("name")]=gt.value,this.updateText(),this.dp.trigger(pt.eventChangeTime,{hours:this.hours,minutes:this.minutes})}),o(this,"onMouseEnterLeave",yt=>{let gt=yt.target.getAttribute("name"),mt=this.$minutesText;"hours"===gt&&(mt=this.$hoursText),mt.classList.toggle("-focus-")}),o(this,"onFocus",()=>{this.toggleTimepickerIsActive(!0)}),o(this,"onBlur",()=>{this.toggleTimepickerIsActive(!1)}),this.opts=H,this.dp=ot;let{timeFormat:nt}=this.dp.locale;nt&&(nt.match(S("h"))||nt.match(S("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(pt.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(pt.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let H="input";navigator.userAgent.match(/trident/gi)&&(H="change"),T(this.$ranges,H,this.onChangeInputRange),T(this.$ranges,"mouseenter",this.onMouseEnterLeave),T(this.$ranges,"mouseleave",this.onMouseEnterLeave),T(this.$ranges,"focus",this.onFocus),T(this.$ranges,"mousedown",this.onFocus),T(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=q({className:V("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(pt.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(pt.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:H,hours:ot,displayHours:nt,minutes:yt,minHours:gt,minMinutes:mt,maxHours:St,maxMinutes:wt,dayPeriod:Mt,opts:{hoursStep:Dt,minutesStep:Pt}}=this;this.$el.innerHTML=`
${$(nt)} : ${$(yt)} `+(H?`${Mt}`:"")+`
`}defineDOM(){let H=ot=>Y(ot,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=H('[name="hours"]'),this.$minutes=H('[name="minutes"]'),this.$hoursText=H(".air-datepicker-time--current-hours"),this.$minutesText=H(".air-datepicker-time--current-minutes"),this.$ampm=H(".air-datepicker-time--current-ampm")}setTime(H){this.setMinMaxTime(H),this.setCurrentTime(H)}addTimeToDate(H){H&&(H.setHours(this.hours),H.setMinutes(this.minutes))}setMinMaxTime(H){if(this.setMinMaxTimeFromOptions(),H){let{minDate:ot,maxDate:nt}=this.dp;ot&&R(H,ot)&&this.setMinTimeFromMinDate(ot),nt&&R(H,nt)&&this.setMaxTimeFromMaxDate(nt)}}setCurrentTime(H){let{hours:ot,minutes:nt}=H?G(H):this;this.hours=A(ot,this.minHours,this.maxHours),this.minutes=A(nt,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:H,minMinutes:ot,maxHours:nt,maxMinutes:yt}=this.opts;this.minHours=A(H,0,23),this.minMinutes=A(ot,0,59),this.maxHours=A(nt,0,23),this.maxMinutes=A(yt,0,59)}setMinTimeFromMinDate(H){let{lastSelectedDate:ot}=this.dp;this.minHours=H.getHours(),ot&&ot.getHours()>H.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=H.getMinutes()}setMaxTimeFromMaxDate(H){let{lastSelectedDate:ot}=this.dp;this.maxHours=H.getHours(),ot&&ot.getHours()yt.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],yt=>yt.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],yt=>yt.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],yt=>yt.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],yt=>yt.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],yt=>yt.year-=10],[["Control","Shift","ArrowUp"],(yt,gt)=>gt.up()]])),_(this,"handleHotKey",yt=>{let gt=this.hotKeys.get(yt),mt=G(this.getInitialFocusDate());gt(mt,this.dp);let{year:St,month:wt,date:Mt}=mt,Dt=U(new Date(St,wt));Dt{let yt=!1,gt=this.pressedKeys.size,mt=St=>this.pressedKeys.has(St);for(let[St]of this.hotKeys){if(yt)break;if(Array.isArray(St[0]))St.forEach(wt=>{yt||gt!==wt.length||(yt=wt.every(mt)&&St)});else{if(gt!==St.length)continue;yt=St.every(mt)&&St}}return yt}),_(this,"isArrow",yt=>yt>=37&&yt<=40),_(this,"onKeyDown",yt=>{let{key:gt,which:mt}=yt,{dp:St,dp:{focusDate:wt},opts:Mt}=this;this.registerKey(gt);let Dt=this.isHotKeyPressed();if(Dt)return yt.preventDefault(),void this.handleHotKey(Dt);if(this.isArrow(mt))return yt.preventDefault(),void this.focusNextCell(gt);if("Enter"===gt){if(St.currentView!==Mt.minView)return void St.down();if(wt){let Pt=St._checkIfDateIsSelected(wt);return void(Pt?St._handleAlreadySelectedDates(Pt,wt):St.selectDate(wt))}}"Escape"===gt&&this.dp.hide()}),_(this,"onKeyUp",yt=>{this.removeKey(yt.key)}),this.dp=ot,this.opts=nt,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:H}=this.dp;H.addEventListener("keydown",this.onKeyDown),H.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:H}=this.dp;H.removeEventListener("keydown",this.onKeyDown),H.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:H,currentView:ot,selectedDates:nt,parsedViewDate:{year:yt,month:gt}}=this.dp,mt=H||nt[nt.length-1];if(!mt)switch(ot){case pt.days:mt=new Date(yt,gt,(new Date).getDate());break;case pt.months:mt=new Date(yt,gt,1);break;case pt.years:mt=new Date(yt,0,1)}return mt}focusNextCell(H){let ot=this.getInitialFocusDate(),{currentView:nt}=this.dp,{days:yt,months:gt,years:mt}=pt,St=G(ot),wt=St.year,Mt=St.month,Dt=St.date;switch(H){case"ArrowLeft":nt===yt&&(Dt-=1),nt===gt&&(Mt-=1),nt===mt&&(wt-=1);break;case"ArrowUp":nt===yt&&(Dt-=7),nt===gt&&(Mt-=3),nt===mt&&(wt-=4);break;case"ArrowRight":nt===yt&&(Dt+=1),nt===gt&&(Mt+=1),nt===mt&&(wt+=1);break;case"ArrowDown":nt===yt&&(Dt+=7),nt===gt&&(Mt+=3),nt===mt&&(wt+=4)}let Pt=this.dp.getClampedDate(new Date(wt,Mt,Dt));this.dp.setFocusDate(Pt,{viewDateTransition:!0})}registerKey(H){this.pressedKeys.add(H)}removeKey(H){this.pressedKeys.delete(H)}}let X={on(st,H){this.__events||(this.__events={}),this.__events[st]?this.__events[st].push(H):this.__events[st]=[H]},off(st,H){this.__events&&this.__events[st]&&(this.__events[st]=this.__events[st].filter(ot=>ot!==H))},removeAllEvents(){this.__events={}},trigger(st){for(var H=arguments.length,ot=new Array(H>1?H-1:0),nt=1;nt{yt(...ot)})}};function it(st,H,ot){return(H="symbol"==typeof(yt=function(gt,mt){if("object"!=typeof gt||null===gt)return gt;var St=gt[Symbol.toPrimitive];if(void 0!==St){var wt=St.call(gt,mt);if("object"!=typeof wt)return wt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(gt)}(H,"string"))?yt:String(yt))in st?Object.defineProperty(st,H,{value:ot,enumerable:!0,configurable:!0,writable:!0}):st[H]=ot,st;var yt}let rt="",L="",z=!1;class et{static buildGlobalContainer(H){z=!0,rt=q({className:H,id:H}),Y("body").appendChild(rt)}constructor(H,ot){var nt=this;if(it(this,"viewIndexes",[pt.days,pt.months,pt.years]),it(this,"next",()=>{let{year:mt,month:St}=this.parsedViewDate;switch(this.currentView){case pt.days:this.setViewDate(new Date(mt,St+1,1));break;case pt.months:this.setViewDate(new Date(mt+1,St,1));break;case pt.years:this.setViewDate(new Date(mt+10,0,1))}}),it(this,"prev",()=>{let{year:mt,month:St}=this.parsedViewDate;switch(this.currentView){case pt.days:this.setViewDate(new Date(mt,St-1,1));break;case pt.months:this.setViewDate(new Date(mt-1,St,1));break;case pt.years:this.setViewDate(new Date(mt-10,0,1))}}),it(this,"_finishHide",()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)}),it(this,"setPosition",function(mt){let St=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("function"==typeof(mt=mt||nt.opts.position))return void(nt.customHide=mt({$datepicker:nt.$datepicker,$target:nt.$el,$pointer:nt.$pointer,isViewChange:St,done:nt._finishHide}));let wt,Mt,{isMobile:Dt}=nt.opts,Pt=nt.$el.getBoundingClientRect(),Ft=nt.$el.getBoundingClientRect(),jt=nt.$datepicker.offsetParent,Ut=nt.$el.offsetParent,bt=nt.$datepicker.getBoundingClientRect(),_t=mt.split(" "),xt=window.scrollY,ft=window.scrollX,Ct=nt.opts.offset,Ot=_t[0],Rt=_t[1];if(Dt)nt.$datepicker.style.cssText="left: 50%; top: 50%";else{if(jt===Ut&&jt!==document.body&&(Ft={top:nt.$el.offsetTop,left:nt.$el.offsetLeft,width:Pt.width,height:nt.$el.offsetHeight},xt=0,ft=0),jt!==Ut&&jt!==document.body){let Zt=jt.getBoundingClientRect();Ft={top:Pt.top-Zt.top,left:Pt.left-Zt.left,width:Pt.width,height:Pt.height},xt=0,ft=0}switch(Ot){case"top":wt=Ft.top-bt.height-Ct;break;case"right":Mt=Ft.left+Ft.width+Ct;break;case"bottom":wt=Ft.top+Ft.height+Ct;break;case"left":Mt=Ft.left-bt.width-Ct}switch(Rt){case"top":wt=Ft.top;break;case"right":Mt=Ft.left+Ft.width-bt.width;break;case"bottom":wt=Ft.top+Ft.height-bt.height;break;case"left":Mt=Ft.left;break;case"center":/left|right/.test(Ot)?wt=Ft.top+Ft.height/2-bt.height/2:Mt=Ft.left+Ft.width/2-bt.width/2}nt.$datepicker.style.cssText=`left: ${Mt+ft}px; top: ${wt+xt}px`}}),it(this,"_setInputValue",()=>{let{opts:mt,$altField:St,locale:{dateFormat:wt}}=this,{altFieldDateFormat:Mt,altField:Dt}=mt;Dt&&St&&(St.value=this._getInputValue(Mt)),this.$el.value=this._getInputValue(wt)}),it(this,"_getInputValue",mt=>{let{selectedDates:St,opts:wt}=this,{multipleDates:Mt,multipleDatesSeparator:Dt}=wt;if(!St.length)return"";let Pt="function"==typeof mt,Ft=Pt?mt(Mt?St:St[0]):St.map(jt=>this.formatDate(jt,mt));return Ft=Pt?Ft:Ft.join(Dt),Ft}),it(this,"_checkIfDateIsSelected",function(mt){let St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pt.days,wt=!1;return nt.selectedDates.some(Mt=>{let Dt=R(mt,Mt,St);return wt=Dt&&Mt,Dt}),wt}),it(this,"_scheduleCallAfterTransition",mt=>{this._cancelScheduledCall(),mt&&mt(!1),this._onTransitionEnd=()=>{mt&&mt(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})}),it(this,"_cancelScheduledCall",()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)}),it(this,"setViewDate",mt=>{if(!((mt=v(mt))instanceof Date)||R(mt,this.viewDate))return;let St=this.viewDate;this.viewDate=mt;let{onChangeViewDate:wt}=this.opts;if(wt){let{month:Mt,year:Dt}=this.parsedViewDate;wt({month:Mt,year:Dt,decade:this.curDecade})}this.trigger(pt.eventChangeViewDate,mt,St)}),it(this,"setFocusDate",function(mt){let St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!mt||(mt=v(mt))instanceof Date)&&(nt.focusDate=mt,nt.opts.range&&mt&&nt._handleRangeOnFocus(),nt.trigger(pt.eventChangeFocusDate,mt,St))}),it(this,"setCurrentView",mt=>{if(this.viewIndexes.includes(mt)){if(this.currentView=mt,this.elIsInput&&this.visible&&this.setPosition(void 0,!0),this.trigger(pt.eventChangeCurrentView,mt),!this.views[mt]){let St=this.views[mt]=new b({dp:this,opts:this.opts,type:mt});this.shouldUpdateDOM&&this.$content.appendChild(St.$el)}this.opts.onChangeView&&this.opts.onChangeView(mt)}}),it(this,"_updateLastSelectedDate",mt=>{this.lastSelectedDate=mt,this.trigger(pt.eventChangeLastSelectedDate,mt)}),it(this,"destroy",()=>{let{showEvent:mt,isMobile:St}=this.opts,wt=this.$datepicker.parentNode;wt&&wt.removeChild(this.$datepicker),this.$el.removeEventListener(mt,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),St&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts=null,this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=null,this.rangeDateFrom=null,this.rangeDateTo=null}),it(this,"update",mt=>{let St=g({},this.opts);g(this.opts,mt);let{timepicker:wt,buttons:Mt,range:Dt,selectedDates:Pt,isMobile:Ft}=this.opts,jt=this.visible||this.treatAsInline;this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this._handleLocale(),!St.selectedDates&&Pt&&this.selectDate(Pt),mt.view&&this.setCurrentView(mt.view),this._setInputValue(),St.range&&!Dt?(this.rangeDateTo=!1,this.rangeDateFrom=!1):!St.range&&Dt&&this.selectedDates.length&&(this.rangeDateFrom=this.selectedDates[0],this.rangeDateTo=this.selectedDates[1]),St.timepicker&&!wt?(jt&&this.timepicker.destroy(),this.timepicker=!1,this.$timepicker.parentNode.removeChild(this.$timepicker)):!St.timepicker&&wt&&this._addTimepicker(),!St.buttons&&Mt?this._addButtons():St.buttons&&!Mt?(this.buttons.destroy(),this.$buttons.parentNode.removeChild(this.$buttons)):jt&&St.buttons&&Mt&&this.buttons.clearHtml().render(),!St.isMobile&&Ft?(this.treatAsInline||L||this._createMobileOverlay(),this._addMobileAttributes(),this.visible&&this._showMobileOverlay()):St.isMobile&&!Ft&&(this._removeMobileAttributes(),this.visible&&(L.classList.remove("-active-"),"function"!=typeof this.opts.position&&this.setPosition())),jt&&(this.nav.update(),this.views[this.currentView].render(),this.currentView===pt.days&&this.views[this.currentView].renderDayNames())}),it(this,"isOtherMonth",mt=>{let{month:St}=G(mt);return St!==this.parsedViewDate.month}),it(this,"isOtherYear",mt=>{let{year:St}=G(mt);return St!==this.parsedViewDate.year}),it(this,"isOtherDecade",mt=>{let{year:St}=G(mt),[wt,Mt]=W(this.viewDate);return StMt}),it(this,"_onChangeSelectedDate",mt=>{let{silent:St}=mt;setTimeout(()=>{this._setInputValue(),this.opts.onSelect&&!St&&this._triggerOnSelect()})}),it(this,"_onChangeFocusedDate",function(mt){let{viewDateTransition:St}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!mt)return;let wt=!1;St&&(wt=nt.isOtherMonth(mt)||nt.isOtherYear(mt)||nt.isOtherDecade(mt)),wt&&nt.setViewDate(mt)}),it(this,"_onChangeTime",mt=>{let{hours:St,minutes:wt}=mt,Mt=new Date,{lastSelectedDate:Dt,opts:{onSelect:Pt}}=this,Ft=Dt;Dt||(Ft=Mt);let jt=this.getCell(Ft,this.currentViewSingular),Ut=jt&&jt.adpCell;Ut&&Ut.isDisabled||(Ft.setHours(St),Ft.setMinutes(wt),Dt?(this._setInputValue(),Pt&&this._triggerOnSelect()):this.selectDate(Ft))}),it(this,"_onFocus",mt=>{this.visible||this.show()}),it(this,"_onBlur",mt=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()}),it(this,"_onMouseDown",mt=>{this.inFocus=!0}),it(this,"_onMouseUp",mt=>{this.inFocus=!1,this.$el.focus()}),it(this,"_onResize",()=>{this.visible&&"function"!=typeof this.opts.position&&this.setPosition()}),it(this,"_onClickOverlay",()=>{this.visible&&this.hide()}),it(this,"isWeekend",mt=>this.opts.weekends.includes(mt)),it(this,"getClampedDate",mt=>{let{minDate:St,maxDate:wt}=this,Mt=mt;return wt&&P(mt,wt)?Mt=wt:St&&k(mt,St)&&(Mt=St),Mt}),this.$el=Y(H),!this.$el)return;this.$datepicker=q({className:"air-datepicker"}),this.opts=g({},t,ot),this.$customContainer=!!this.opts.container&&Y(this.opts.container),this.$altField=Y(this.opts.altField||!1);let{view:yt,startDate:gt}=this.opts;gt||(this.opts.startDate=new Date),"INPUT"===this.$el.nodeName&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=v(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=yt,this.selectedDates=[],this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:H,treatAsInline:ot,opts:{inline:nt,isMobile:yt,selectedDates:gt,keyboardNav:mt,onlyTimepicker:St}}=this,wt=Y("body");(!z||z&&rt&&!wt.contains(rt))&&!nt&&this.elIsInput&&!this.$customContainer&&et.buildGlobalContainer(et.defaultGlobalContainerId),!yt||L||ot||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(nt||this._bindEvents(),mt&&!St&&(this.keyboardNav=new B({dp:this,opts:H}))),gt&&this.selectDate(gt,{silent:!0}),this.opts.visible&&!ot&&this.show(),yt&&!ot&&this.$el.setAttribute("readonly",!0),ot&&this._createComponents()}_createMobileOverlay(){L=q({className:"air-datepicker-overlay"}),rt.appendChild(L)}_createComponents(){let{opts:H,treatAsInline:ot,opts:{inline:nt,buttons:yt,timepicker:gt,position:mt,classes:St,onlyTimepicker:wt,isMobile:Mt}}=this;this._buildBaseHtml(),this.elIsInput&&(nt||this._setPositionClasses(mt)),!nt&&this.elIsInput||this.$datepicker.classList.add("-inline-"),St&&this.$datepicker.classList.add(...St.split(" ")),wt&&this.$datepicker.classList.add("-only-timepicker-"),Mt&&!ot&&this._addMobileAttributes(),this.views[this.currentView]=new b({dp:this,type:this.currentView,opts:H}),this.nav=new u({dp:this,opts:H}),gt&&this._addTimepicker(),yt&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let H in this.views)this.views[H].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){L.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){L.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||""===this.initialReadonly||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:H,maxDate:ot}=this.opts;this.minDate=!!H&&v(H),this.maxDate=!!ot&&v(ot)}_addTimepicker(){this.$timepicker=q({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new m({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=q({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new n({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(pt.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(pt.eventChangeFocusDate,this._onChangeFocusedDate),this.on(pt.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:H}=this.opts;var ot,nt;this.elIsInput?H?(ot=this.$datepicker,(nt=this.$el).parentNode.insertBefore(ot,nt.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='
',this.$content=Y(".air-datepicker--content",this.$datepicker),this.$pointer=Y(".air-datepicker--pointer",this.$datepicker),this.$nav=Y(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:H,dateFormat:ot,firstDay:nt,timepicker:yt,onlyTimepicker:gt,timeFormat:mt,dateTimeSeparator:St}=this.opts;var wt;this.locale=(wt=H,JSON.parse(JSON.stringify(wt))),ot&&(this.locale.dateFormat=ot),void 0!==mt&&""!==mt&&(this.locale.timeFormat=mt);let{timeFormat:Mt}=this.locale;if(""!==nt&&(this.locale.firstDay=nt),yt&&"function"!=typeof ot){let Dt=Mt?St:"";this.locale.dateFormat=[this.locale.dateFormat,Mt||""].join(Dt)}gt&&"function"!=typeof ot&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(H){if("function"==typeof H)return void this.$datepicker.classList.add("-custom-position-");let ot=(H=H.split(" "))[0],nt=`air-datepicker -${ot}-${H[1]}- -from-${ot}-`;this.$datepicker.classList.add(...nt.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:H,minDate:ot,maxDate:nt}=this;nt&&P(H,nt)&&this.setViewDate(nt),ot&&k(H,ot)&&this.setViewDate(ot)}formatDate(){let H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewDate,ot=arguments.length>1?arguments[1]:void 0;if(H=v(H),!(H instanceof Date))return;let nt=ot,yt=this.locale,gt=G(H),mt=gt.dayPeriod,St=W(H),wt=et.replacer,Mt={T:H.getTime(),m:gt.minutes,mm:gt.fullMinutes,h:gt.hours12,hh:gt.fullHours12,H:gt.hours,HH:gt.fullHours,aa:mt,AA:mt.toUpperCase(),E:yt.daysShort[gt.day],EEEE:yt.days[gt.day],d:gt.date,dd:gt.fullDate,M:gt.month+1,MM:gt.fullMonth,MMM:yt.monthsShort[gt.month],MMMM:yt.months[gt.month],yy:gt.year.toString().slice(-2),yyyy:gt.year,yyyy1:St[0],yyyy2:St[1]};for(let[Dt,Pt]of Object.entries(Mt))nt=wt(nt,S(Dt),Pt);return nt}down(H){this._handleUpDownActions(H,"down")}up(H){this._handleUpDownActions(H,"up")}selectDate(H){let ot,nt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{currentView:yt,parsedViewDate:gt,selectedDates:mt}=this,{updateTime:St}=nt,{moveToOtherMonthsOnSelect:wt,moveToOtherYearsOnSelect:Mt,multipleDates:Dt,range:Pt,autoClose:Ft}=this.opts,jt=mt.length;if(Array.isArray(H))return H.forEach(Ut=>{this.selectDate(Ut,nt)}),new Promise(Ut=>{setTimeout(Ut)});if((H=v(H))instanceof Date){if(yt===pt.days&&H.getMonth()!==gt.month&&wt&&(ot=new Date(H.getFullYear(),H.getMonth(),1)),yt===pt.years&&H.getFullYear()!==gt.year&&Mt&&(ot=new Date(H.getFullYear(),0,1)),ot&&this.setViewDate(ot),Dt&&!Pt){if(jt===Dt)return;this._checkIfDateIsSelected(H)||mt.push(H)}else if(Pt)switch(jt){case 1:mt.push(H),this.rangeDateTo||(this.rangeDateTo=H),P(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=H),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[H],this.rangeDateFrom=H,this.rangeDateTo="";break;default:this.selectedDates=[H],this.rangeDateFrom=H}else this.selectedDates=[H];return this.trigger(pt.eventChangeSelectedDate,{action:pt.actionSelectDate,silent:nt?.silent,date:H,updateTime:St}),this._updateLastSelectedDate(H),Ft&&!this.timepickerIsActive&&this.visible&&(Dt||Pt?Pt&&1===jt&&this.hide():this.hide()),new Promise(Ut=>{setTimeout(Ut)})}}unselectDate(H){let ot=this.selectedDates,nt=this;if((H=v(H))instanceof Date)return ot.some((yt,gt)=>{if(R(yt,H))return ot.splice(gt,1),nt.selectedDates.length?nt._updateLastSelectedDate(nt.selectedDates[nt.selectedDates.length-1]):(nt.rangeDateFrom="",nt.rangeDateTo="",nt._updateLastSelectedDate(!1)),this.trigger(pt.eventChangeSelectedDate,{action:pt.actionUnselectDate,date:H}),!0})}replaceDate(H,ot){let nt=this.selectedDates.find(gt=>R(gt,H,this.currentView)),yt=this.selectedDates.indexOf(nt);yt<0||R(this.selectedDates[yt],ot,this.currentView)||(this.selectedDates[yt]=ot,this.trigger(pt.eventChangeSelectedDate,{action:pt.actionSelectDate,date:ot,updateTime:!0}),this._updateLastSelectedDate(ot))}clear(){let H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.trigger(pt.eventChangeSelectedDate,{action:pt.actionUnselectDate,silent:H.silent}),new Promise(ot=>{setTimeout(ot)})}show(){let{onShow:H,isMobile:ot}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,H&&this._scheduleCallAfterTransition(H),ot&&this._showMobileOverlay()}hide(){let{onHide:H,isMobile:ot}=this.opts,nt=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition(yt=>{!this.customHide&&(yt&&nt||!yt&&!nt)&&this._finishHide(),H&&H(yt)}),ot&&L.classList.remove("-active-")}_triggerOnSelect(){let H=[],ot=[],{selectedDates:nt,locale:yt,opts:{onSelect:gt,multipleDates:mt,range:St}}=this,wt=mt||St,Mt="function"==typeof yt.dateFormat;nt.length&&(H=nt.map(E),ot=Mt?mt?yt.dateFormat(H):H.map(Dt=>yt.dateFormat(Dt)):H.map(Dt=>this.formatDate(Dt,yt.dateFormat))),gt({date:wt?H:H[0],formattedDate:wt?ot:ot[0],datepicker:this})}_handleAlreadySelectedDates(H,ot){let{range:nt,toggleSelected:yt}=this.opts;nt?yt?this.unselectDate(ot):2!==this.selectedDates.length&&this.selectDate(ot):yt&&this.unselectDate(ot),yt||this._updateLastSelectedDate(H)}_handleUpDownActions(H,ot){if(!((H=v(H||this.focusDate||this.viewDate))instanceof Date))return;let nt="up"===ot?this.viewIndex+1:this.viewIndex-1;nt>2&&(nt=2),nt<0&&(nt=0),this.setViewDate(new Date(H.getFullYear(),H.getMonth(),1)),this.setCurrentView(this.viewIndexes[nt])}_handleRangeOnFocus(){1===this.selectedDates.length&&(P(this.selectedDates[0],this.focusDate)?(this.rangeDateTo=this.selectedDates[0],this.rangeDateFrom=this.focusDate):(this.rangeDateTo=this.focusDate,this.rangeDateFrom=this.selectedDates[0]))}getCell(H){let ot=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pt.day;if(!((H=v(H))instanceof Date))return;let{year:nt,month:yt,date:gt}=G(H),mt=`[data-year="${nt}"]`,St=`[data-month="${yt}"]`,wt={[pt.day]:`${mt}${St}[data-date="${gt}"]`,[pt.month]:`${mt}${St}`,[pt.year]:`${mt}`};return this.views[this.currentView].$el.querySelector(wt[ot])}_showMobileOverlay(){L.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((H,ot)=>parseFloat(ot)+H,0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return G(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return W(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===pt.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===pt.days}get $container(){return this.$customContainer||rt}static replacer(H,ot,nt){return H.replace(ot,function(yt,gt,mt,St){return gt+nt+St})}}var at;return it(et,"defaults",t),it(et,"version","3.3.5"),it(et,"defaultGlobalContainerId","air-datepicker-global-container"),at=et.prototype,Object.assign(at,X),ht.default}()},6485:(Jt,$t)=>{"use strict";$t.Z=void 0;$t.Z={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",firstDay:0}},798:(Jt,$t,ht)=>{var pt,t,Y;Y=function(Y){function q(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}q(Y=Y?Y._modules:{},"Core/Math3D.js",[Y["Core/Globals.js"],Y["Core/Utilities.js"]],function(O,U){function G(R,P,k,E){var w=P.options.chart.options3d,T=V(E,!!k&&P.inverted),y={x:P.plotWidth/2,y:P.plotHeight/2,z:w.depth/2,vd:V(w.depth,1)*V(w.viewDistance,0)},A=P.scale3d||1;E=W*w.beta*(T?-1:1),w=W*w.alpha*(T?-1:1);var g=Math.cos(w),v=Math.cos(-E),S=Math.sin(w),N=Math.sin(-E);return k||(y.x+=P.plotLeft,y.y+=P.plotTop),R.map(function(j){var M=(T?j.y:j.x)-y.x,D=(T?j.x:j.y)-y.y;return j=(j.z||0)-y.z,(D=Z(M={x:v*M-N*j,y:-S*N*M+g*D-v*S*j,z:g*N*M+S*D+g*v*j},y,y.vd)).x=D.x*A+y.x,D.y=D.y*A+y.y,D.z=M.z*A+y.z,{x:T?D.y:D.x,y:T?D.x:D.y,z:D.z}})}function Z(R,P,k){return P=0m&&_-m>Math.PI/2+1e-4?it=(it=it.concat(this.curveTo(u,a,n,o,m,m+Math.PI/2,B,X))).concat(this.curveTo(u,a,n,o,m+Math.PI/2,_,B,X)):_Math.PI/2+1e-4?it=(it=it.concat(this.curveTo(u,a,n,o,m,m-Math.PI/2,B,X))).concat(this.curveTo(u,a,n,o,m-Math.PI/2,_,B,X)):[["C",u+n*Math.cos(m)-n*I*rt*Math.sin(m)+B,a+o*Math.sin(m)+o*I*rt*Math.cos(m)+X,u+n*Math.cos(_)+n*I*rt*Math.sin(_)+B,a+o*Math.sin(_)-o*I*rt*Math.cos(_)+X,u+n*Math.cos(_)+B,a+o*Math.sin(_)+X]]},d.prototype.toLinePath=function(u,a){var n=[];return u.forEach(function(o){n.push(["L",o.x,o.y])}),u.length&&(n[0][0]="M",a&&n.push(["Z"])),n},d.prototype.toLineSegments=function(u){var a=[],n=!0;return u.forEach(function(o){a.push(n?["M",o.x,o.y]:["L",o.x,o.y]),n=!n}),a},d.prototype.face3d=function(u){var a=this,n=this.createElement("path");return n.vertexes=[],n.insidePlotArea=!1,n.enabled=!0,n.attr=function(o){if("object"==typeof o&&(g(o.enabled)||g(o.vertexes)||g(o.insidePlotArea))){this.enabled=N(o.enabled,this.enabled),this.vertexes=N(o.vertexes,this.vertexes),this.insidePlotArea=N(o.insidePlotArea,this.insidePlotArea),delete o.enabled,delete o.vertexes,delete o.insidePlotArea;var m=y(this.vertexes,w[a.chartIndex],this.insidePlotArea),_=a.toLinePath(m,!0);m=A(m),o.d=_,o.visibility=this.enabled&&0m.faces.length;)n.faces.pop().destroy();for(;n.faces.lengthm.faces.length;)n.faces.pop().destroy();for(;n.faces.lengthyt?{x:et[yt].x,y:et[yt].y+10,z:et[yt].z}:et[0].x===et[7].x&&4<=yt?{x:et[yt].x+10,y:et[yt].y,z:et[yt].z}:0===it&&2>yt||5A(wt)?St=[wt,0]:0>A(Mt)?St=[Mt,1]:mt&&(at.push(mt),St=0>A(yt)?[wt,0]:0>A(gt)?[Mt,1]:[wt,0]),St},H=st([3,2,1,0],[7,6,5,4],"front");u=H[0];var ot=H[1];X=(H=st([1,6,7,0],[4,5,2,3],"top"))[0];var nt=H[1];return H=st([1,2,5,6],[0,7,4,3],"side"),st=H[0],1===(H=H[1])?z+=1e6*(rt.plotWidth-o):H||(z+=1e6*o),z+=10*(!nt||0<=L&&180>=L||360>L&&357.5Math.PI&&(St=2*Math.PI-St),St}var n=u.x||0,o=u.y||0,m=u.start||0,_=(u.end||0)-1e-5,B=u.r||0,X=u.innerR||0,it=u.depth||0,rt=u.alpha||0,L=u.beta||0,z=Math.cos(m),et=Math.sin(m);u=Math.cos(_);var at=Math.sin(_),st=B*Math.cos(L);B*=Math.cos(rt);var H=X*Math.cos(L),ot=X*Math.cos(rt);X=it*Math.sin(L);var nt=it*Math.sin(rt);(it=(it=[["M",n+st*z,o+B*et]]).concat(d.curveTo(n,o,st,B,m,_,0,0))).push(["L",n+H*u,o+ot*at]),(it=it.concat(d.curveTo(n,o,H,ot,_,m,0,0))).push(["Z"]);var yt=0-yt?m:_>-yt?-yt:m),o+B*M(yt)]]).concat(d.curveTo(n,o,st,B,yt,gt,0,0)),_>mt&&mD-L&&mwt?-1:0},et=z([{x:B,y:rt,z:L},{x:X,y:rt,z:L},{x:X,y:rt,z:0},{x:B,y:rt,z:0}]),at=z([{x:B,y:it,z:0},{x:X,y:it,z:0},{x:X,y:it,z:L},{x:B,y:it,z:L}]),st=z([{x:B,y:it,z:0},{x:B,y:it,z:L},{x:B,y:rt,z:L},{x:B,y:rt,z:0}]),H=z([{x:X,y:it,z:L},{x:X,y:it,z:0},{x:X,y:rt,z:0},{x:X,y:rt,z:L}]),ot=z([{x:B,y:rt,z:0},{x:X,y:rt,z:0},{x:X,y:it,z:0},{x:B,y:it,z:0}]);z=z([{x:B,y:it,z:L},{x:X,y:it,z:L},{x:X,y:rt,z:L},{x:B,y:rt,z:L}]);var nt=!1,yt=!1,gt=!1,mt=!1;[].concat(o.xAxis,o.yAxis,o.zAxis).forEach(function(wt){wt&&(wt.horiz?wt.opposite?yt=!0:nt=!0:wt.opposite?mt=!0:gt=!0)});var St=function(wt,Mt,Dt){for(var Pt=["size","color","visible"],Ft={},jt=0;jtDt*Pt[Ft][Mt]||Dt*Pt[jt][Mt]==Dt*Pt[Ft][Mt]&&Pt[jt].zz&&(H=Math.min(H,1-Math.abs((_+rt)/(z+rt))%1)),Bat&&(H=0>at?Math.min(H,(X+L)/(-at+X+L)):Math.min(H,1-(X+L)/(at+L)%1)),itthis.pos&&(k(this.start)||k(this.end)))for(var _=this.start||[1,0,0,1,0,0],B=this.end||[1,0,0,1,0,0],X=[],it=0;6>it;it++)X.push(this.pos*B[it]+(1-this.pos)*_[it]);else X=this.end;this.elem.attr(this.prop,X,null,!0)},E(!0,W,A.defaultOptions),P(n,"init",I),P(n,"addSeries",g),P(n,"afterDrawChartBox",v),P(n,"afterGetContainer",S),P(n,"afterInit",N),P(n,"afterSetChartSize",j),P(n,"beforeRedraw",M),P(n,"beforeRender",D),T(m,"isInsidePlot",b),T(m,"renderSeries",d),T(m,"setClassName",u)}}(y||(y={})),y}),q(Y,"Core/Axis/ZAxis.js",[Y["Core/Axis/Axis.js"],Y["Core/Utilities.js"]],function(O,U){function G(w){return new E(this,w)}function Z(){var w=this,T=this.options.zAxis=P(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],T.forEach(function(y,A){y.index=A,y.isX=!0,w.addZAxis(y).setScale()}))}var w,$=this&&this.__extends||(w=function(T,y){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,g){A.__proto__=g}||function(A,g){for(var v in g)g.hasOwnProperty(v)&&(A[v]=g[v])})(T,y)},function(T,y){function A(){this.constructor=T}w(T,y),T.prototype=null===y?Object.create(y):(A.prototype=y.prototype,new A)}),W=U.addEvent,V=U.merge,R=U.pick,P=U.splat,k=[],E=function(w){function T(y,A){return(y=w.call(this,y,A)||this).isZAxis=!0,y}return $(T,w),T.compose=function(y){-1===k.indexOf(y)&&(k.push(y),W(y,"afterGetAxes",Z),(y=y.prototype).addZAxis=G,y.collectionsWithInit.zAxis=[y.addZAxis],y.collectionsWithUpdate.push("zAxis"))},T.prototype.getSeriesExtremes=function(){var y=this,A=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(g){(g.visible||!A.options.chart.ignoreHiddenSeries)&&(y.hasVisibleSeries=!0,(g=g.zData).length&&(y.dataMin=Math.min(R(y.dataMin,g[0]),Math.min.apply(null,g)),y.dataMax=Math.max(R(y.dataMax,g[0]),Math.max.apply(null,g))))})},T.prototype.setAxisSize=function(){var y=this.chart;w.prototype.setAxisSize.call(this),this.width=this.len=y.options.chart.options3d&&y.options.chart.options3d.depth||0,this.right=y.chartWidth-this.width-this.left},T.prototype.setOptions=function(y){y=V({offset:0,lineWidth:0},y),this.isZAxis=!0,w.prototype.setOptions.call(this,y),this.coll="zAxis"},T}(O);return E}),q(Y,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),q(Y,"Core/Axis/Tick3DComposition.js",[Y["Core/Utilities.js"]],function(O){function U(R){var P=this.axis.axis3D;P&&$(R.pos,P.fix3dPosition(R.pos))}function G(R){var P=this.axis.axis3D,k=R.apply(this,[].slice.call(arguments,1));if(P){var E=k[0],w=k[1];if("M"===E[0]&&"L"===w[0])return P=[P.fix3dPosition({x:E[1],y:E[2],z:0}),P.fix3dPosition({x:w[1],y:w[2],z:0})],this.axis.chart.renderer.toLineSegments(P)}return k}var Z=O.addEvent,$=O.extend,W=O.wrap,V=[];return{compose:function(R){-1===V.indexOf(R)&&(V.push(R),Z(R,"afterGetLabelPosition",U),W(R.prototype,"getMarkPath",G))}}}),q(Y,"Core/Axis/Axis3DComposition.js",[Y["Core/Axis/Axis3DDefaults.js"],Y["Core/Globals.js"],Y["Core/Math3D.js"],Y["Core/Axis/Tick3DComposition.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$){function W(){var b=this.chart,d=this.options;b.is3d&&b.is3d()&&"colorAxis"!==this.coll&&(d.tickWidth=j(d.tickWidth,0),d.gridLineWidth=j(d.gridLineWidth,1))}function V(b){this.chart.is3d()&&"colorAxis"!==this.coll&&b.point&&(b.point.crosshairPos=this.isXAxis?b.point.axisXpos:this.len-b.point.axisYpos)}function R(){this.axis3D||(this.axis3D=new I(this))}function P(b){return this.chart.is3d()&&"colorAxis"!==this.coll?[]:b.apply(this,[].slice.call(arguments,1))}function k(b){if(!this.chart.is3d()||"colorAxis"===this.coll)return b.apply(this,[].slice.call(arguments,1));var d=arguments,u=d[2],a=[];if(d=this.getPlotLinePath({value:d[1]}),u=this.getPlotLinePath({value:u}),d&&u)for(var n=0;nv(A([d,{x:d.x+X.x,y:d.y+X.y,z:d.z+X.z},{x:d.x+et.x,y:d.y+et.y,z:d.z+et.z}],a.chart))&&(X={x:-X.x,y:-X.y,z:-X.z}),d=A([{x:d.x,y:d.y,z:d.z},{x:d.x+X.x,y:d.y+X.y,z:d.z+X.z},{x:d.x+et.x,y:d.y+et.y,z:d.z+et.z}],a.chart),n.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,n.x,n.y],n.matrix[4]-=n.x*n.matrix[0]+n.y*n.matrix[2],n.matrix[5]-=n.x*n.matrix[1]+n.y*n.matrix[3]),n},b.prototype.swapZ=function(d,u){var a=this.axis;return a.isZAxis?{x:(u=u?0:a.chart.plotLeft)+d.z,y:d.y,z:d.x-u}:d},b}();return I}),q(Y,"Core/Series/Series3D.js",[Y["Core/Math3D.js"],Y["Core/Series/Series.js"],Y["Core/Utilities.js"]],function(O,U,G){var k,Z=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),$=O.perspective;O=G.addEvent;var W=G.extend,V=G.merge,R=G.pick,P=G.isNumber;return G=function(k){function E(){return null!==k&&k.apply(this,arguments)||this}return Z(E,k),E.prototype.translate=function(){k.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},E.prototype.translate3dPoints=function(){var g,w=this.options,T=this.chart,y=R(this.zAxis,T.options.zAxis[0]),A=[],v=[];for(this.zPadding=(w.stacking?P(w.stack)?w.stack:0:this.index||0)*(w.depth||0+(w.groupZPadding||1)),g=0;g=y.min&&S<=y.max}else w.plotZ=this.zPadding;w.axisXpos=w.plotX,w.axisYpos=w.plotY,w.axisZpos=w.plotZ,A.push({x:w.plotX,y:w.plotY,z:w.plotZ}),v.push(w.plotX||0)}for(this.rawPointsX=v,T=$(A,T,!0),g=0;gw.beta?w.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))})),y.reversed=!0,(E=E.call(this,y,!0,!0))[0]&&"M"===E[0][0]&&(E[0]=["L",E[0][1],E[0][2]]),this.areaPath&&((E=this.areaPath.splice(0,this.areaPath.length/2).concat(E)).xMap=this.areaPath.xMap,this.areaPath=E),k}var $=O.perspective,W=U.seriesTypes.line.prototype,V=G.wrap,R=[];return{compose:function(P){-1===R.indexOf(P)&&(R.push(P),V(P.prototype,"getGraphPath",Z))}}}),q(Y,"Series/Column3D/Column3DComposition.js",[Y["Series/Column/ColumnSeries.js"],Y["Core/Globals.js"],Y["Core/Series/Series.js"],Y["Core/Math3D.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Axis/Stacking/StackItem.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V){function P(g){var v=g.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(v.stroke=this.options.edgeColor||v.fill,v["stroke-width"]=A(this.options.edgeWidth,1)),v}function k(g,v,S){var N=this.chart.is3d&&this.chart.is3d();N&&(this.options.inactiveOtherPoints=!0),g.call(this,v,S),N&&(this.options.inactiveOtherPoints=!1)}function E(g){for(var v=[],S=1;S(u=b[a[0]]-M)&&(b[a[1]]+=b[a[0]]+M,b[a[0]]=-M,u=0),u+b[a[1]]>g[a[0]+"Axis"].len&&0!==b[a[1]]&&(b[a[1]]=g[a[0]+"Axis"].len-b[a[0]]),0!==b[a[1]]&&(b[a[0]]>=g[a[0]+"Axis"].len||b[a[0]]+b[a[1]]<=M)){for(var n in b)b[n]="y"===n?-9999:0;I.outside3dPlot=!0}}),"rect"===I.shapeType&&(I.shapeType="cuboid"),b.z=j,b.depth=N,b.insidePlotArea=!0,D={x:b.x+b.width/2,y:b.y,z:j+N/2},v.inverted&&(D.x=b.height,D.y=I.clientX),I.plot3d=y([D],v,!0,!1)[0],d=y([{x:d[0],y:d[1],z:j+N/2}],v,!0,!1)[0],I.tooltipPos=[d.x,d.y]}}),g.z=j},V(w,"animate",function(g){if(this.chart.is3d()){var v=arguments[1],S=this.yAxis,N=this,j=this.yAxis.reversed;T&&(v?N.data.forEach(function(M){null!==M.y&&(M.height=M.shapeArgs.height,M.shapey=M.shapeArgs.y,M.shapeArgs.height=1,j||(M.shapeArgs.y=M.stackY?M.plotY+S.translate(M.stackY):M.plotY+(M.negative?-M.height:M.height)))}):(N.data.forEach(function(M){null!==M.y&&(M.shapeArgs.height=M.height,M.shapeArgs.y=M.shapey,M.graphic)&&M.graphic[M.outside3dPlot?"attr":"animate"](M.shapeArgs,N.options.animation)}),this.drawDataLabels()))}else g.apply(this,[].slice.call(arguments,1))}),V(w,"plotGroup",function(g,v,S,N,j,M){return"dataLabelsGroup"!==v&&"markerGroup"!==v&&this.chart.is3d()&&(this[v]&&delete this[v],M&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(M)),this[v]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[v].survive=!0,"group"===v&&(arguments[3]="visible"))),g.apply(this,Array.prototype.slice.call(arguments,1))}),V(w,"setVisible",function(g,v){var S=this;S.chart.is3d()&&S.data.forEach(function(N){N.visible=N.options.visible=v=typeof v>"u"?!A(S.visible,N.visible):v,S.options.data[S.data.indexOf(N)]=N.options,N.graphic&&N.graphic.attr({visibility:v?"visible":"hidden"})}),g.apply(this,Array.prototype.slice.call(arguments,1))}),U(O,"afterInit",function(){if(this.chart.is3d()){var g=this.options,v=g.grouping,S=g.stacking,N=this.yAxis.options.reversedStacks,j=0;if(typeof v>"u"||v){for(v=function R(g,v){var j,S=g.series,N={totalStacks:0},M=1;return S.forEach(function(D){j=A(D.options.stack,v?0:S.length-1-D.index),N[j]?N[j].series.push(D):(N[j]={series:[D],position:M},M++)}),N.totalStacks=M+1,N}(this.chart,S),j=g.stack||0,S=0;S=b.alpha&&(D.y+=v.shapeArgs.width)),D=y([D],M,!0,!1)[0],j.x=D.x-d,j.y=v.outside3dPlot?-9e9:D.y}g.apply(this,[].slice.call(arguments,1))}),V(W.prototype,"getStackBox",function(g,v){var S=g.apply(this,[].slice.call(arguments,1)),N=this.axis.chart,j=v.width;if(N.is3d()&&this.base){var M=+this.base.split(",")[0],D=N.series[M];M=N.options.chart.options3d,D&&D instanceof $.seriesTypes.column&&(D={x:S.x+(N.inverted?S.height:j/2),y:S.y,z:D.options.depth/2},N.inverted&&(S.width=0,90<=M.alpha&&270>=M.alpha&&(D.y+=j)),D=y([D],N,!0,!1)[0],S.x=D.x-j/2,S.y=D.y)}return S}),O}),q(Y,"Series/Pie3D/Pie3DPoint.js",[Y["Core/Series/SeriesRegistry.js"]],function(O){var Z,U=this&&this.__extends||(Z=function($,W){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,R){V.__proto__=R}||function(V,R){for(var P in R)R.hasOwnProperty(P)&&(V[P]=R[P])})($,W)},function($,W){function V(){this.constructor=$}Z($,W),$.prototype=null===W?Object.create(W):(V.prototype=W.prototype,new V)}),G=(O=O.seriesTypes.pie.prototype.pointClass).prototype.haloPath;return function(Z){function $(){var W=null!==Z&&Z.apply(this,arguments)||this;return W.series=void 0,W}return U($,Z),$.prototype.haloPath=function(){return this.series.chart.is3d()?[]:G.apply(this,arguments)},$}(O)}),q(Y,"Series/Pie3D/Pie3DSeries.js",[Y["Core/Globals.js"],Y["Series/Pie3D/Pie3DPoint.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var P,$=this&&this.__extends||(P=function(k,E){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var y in T)T.hasOwnProperty(y)&&(w[y]=T[y])})(k,E)},function(k,E){function w(){this.constructor=k}P(k,E),k.prototype=null===E?Object.create(E):(w.prototype=E.prototype,new w)}),W=O.deg2rad,V=O.svg;O=Z.extend;var R=Z.pick;return G=function(P){function k(){return null!==P&&P.apply(this,arguments)||this}return $(k,P),k.prototype.addPoint=function(){P.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},k.prototype.animate=function(E){if(this.chart.is3d()){var w=this.options.animation,T=this.center,y=this.group,A=this.markerGroup;V&&(!0===w&&(w={}),E?(y.oldtranslateX=R(y.oldtranslateX,y.translateX),y.oldtranslateY=R(y.oldtranslateY,y.translateY),T={translateX:T[0],translateY:T[1],scaleX:.001,scaleY:.001},y.attr(T),A&&(A.attrSetters=y.attrSetters,A.attr(T))):(T={translateX:y.oldtranslateX,translateY:y.oldtranslateY,scaleX:1,scaleY:1},y.animate(T,w),A&&A.animate(T,w)))}else P.prototype.animate.apply(this,arguments)},k.prototype.drawDataLabels=function(){if(this.chart.is3d()){var E=this.chart.options.chart.options3d;this.data.forEach(function(w){var T=w.shapeArgs,y=T.r,A=(T.start+T.end)/2,g=(w=w.labelPosition).connectorPosition,v=-y*(1-Math.cos((T.alpha||E.alpha)*W))*Math.sin(A),S=y*(Math.cos((T.beta||E.beta)*W)-1)*Math.cos(A);[w.natural,g.breakAt,g.touchingSliceAt].forEach(function(N){N.x+=S,N.y+=v})})}P.prototype.drawDataLabels.apply(this,arguments)},k.prototype.pointAttribs=function(E){var w=P.prototype.pointAttribs.apply(this,arguments),T=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(w.stroke=T.edgeColor||E.color||this.color,w["stroke-width"]=R(T.edgeWidth,1)),w},k.prototype.translate=function(){if(P.prototype.translate.apply(this,arguments),this.chart.is3d()){var E=this,w=E.options,T=w.depth||0,y=E.chart.options.chart.options3d,A=y.alpha,g=y.beta,v=w.stacking?(w.stack||0)*T:E._i*T;v+=T/2,!1!==w.grouping&&(v=0),E.data.forEach(function(S){var N=S.shapeArgs;S.shapeType="arc3d",N.z=v,N.depth=.75*T,N.alpha=A,N.beta=g,N.center=E.center,N=(N.end+N.start)/2,S.slicedTranslation={translateX:Math.round(Math.cos(N)*w.slicedOffset*Math.cos(A*W)),translateY:Math.round(Math.sin(N)*w.slicedOffset*Math.cos(A*W))}})}},k.prototype.drawTracker=function(){P.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(E){E.graphic&&["out","inn","side1","side2"].forEach(function(w){E.graphic&&(E.graphic[w].element.point=E)})})},k}(G.seriesTypes.pie),O(G.prototype,{pointClass:U}),G}),q(Y,"Series/Pie3D/Pie3DComposition.js",[Y["Series/Pie3D/Pie3DPoint.js"],Y["Series/Pie3D/Pie3DSeries.js"],Y["Core/Series/SeriesRegistry.js"]],function(O,U,G){G.seriesTypes.pie.prototype.pointClass.prototype.haloPath=O.prototype.haloPath,G.seriesTypes.pie=U}),q(Y,"Series/Scatter3D/Scatter3DPoint.js",[Y["Series/Scatter/ScatterSeries.js"],Y["Core/Utilities.js"]],function(O,U){var $,G=this&&this.__extends||($=function(W,V){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var k in P)P.hasOwnProperty(k)&&(R[k]=P[k])})(W,V)},function(W,V){function R(){this.constructor=W}$(W,V),W.prototype=null===V?Object.create(V):(R.prototype=V.prototype,new R)}),Z=U.defined;return function($){function W(){var V=null!==$&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V}return G(W,$),W.prototype.applyOptions=function(){return $.prototype.applyOptions.apply(this,arguments),Z(this.z)||(this.z=0),this},W}(O.prototype.pointClass)}),q(Y,"Series/Scatter3D/Scatter3DSeries.js",[Y["Core/Math3D.js"],Y["Series/Scatter3D/Scatter3DPoint.js"],Y["Series/Scatter/ScatterSeries.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$){var P,W=this&&this.__extends||(P=function(k,E){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var y in T)T.hasOwnProperty(y)&&(w[y]=T[y])})(k,E)},function(k,E){function w(){this.constructor=k}P(k,E),k.prototype=null===E?Object.create(E):(w.prototype=E.prototype,new w)}),V=O.pointCameraDistance;O=$.extend;var R=$.merge;return $=function(P){function k(){var E=null!==P&&P.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return W(k,P),k.prototype.pointAttribs=function(E){var w=P.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&E&&(w.zIndex=V(E,this.chart)),w},k.defaultOptions=R(G.defaultOptions,{tooltip:{pointFormat:"x: {point.x}
y: {point.y}
z: {point.z}
"}}),k}(G),O($.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:U}),Z.registerSeriesType("scatter3d",$),$}),q(Y,"masters/highcharts-3d.src.js",[Y["Core/Globals.js"],Y["Core/Renderer/SVG/SVGRenderer3D.js"],Y["Core/Chart/Chart3D.js"],Y["Core/Axis/ZAxis.js"],Y["Core/Axis/Axis3DComposition.js"],Y["Series/Area3D/Area3DSeries.js"]],function(O,U,G,Z,$,W){U.compose(O.SVGRenderer),G.compose(O.Chart,O.Fx),Z.compose(O.Chart),$.compose(O.Axis,O.Tick),W.compose(O.seriesTypes.area)})},Jt.exports?(Y.default=Y,Jt.exports=Y):(pt=[ht(3470)],void 0!==(t=function(q){return Y(q),Y.Highcharts=q,Y}.apply($t,pt))&&(Jt.exports=t))},2407:(Jt,$t,ht)=>{var pt,t,Y;Y=function(Y){function q(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}q(Y=Y?Y._modules:{},"Extensions/Pane.js",[Y["Core/Chart/Chart.js"],Y["Series/CenteredUtilities.js"],Y["Core/Globals.js"],Y["Core/Pointer.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$){function W(y,A,g,v,S){var N=!0,j=g[0],M=g[1],D=Math.sqrt(Math.pow(y-j,2)+Math.pow(A-M,2));return P(v)&&P(S)&&(y=Math.atan2(R(A-M,8),R(y-j,8)),S!==v&&(N=v>S?y>=v&&y<=Math.PI||y<=S&&y>=-Math.PI:y>=v&&y<=R(S,8))),D<=Math.ceil(g[2]/2)&&N}var V=$.addEvent,R=$.correctFloat,P=$.defined,k=$.extend,E=$.merge,w=$.pick,T=$.splat;return O.prototype.collectionsWithUpdate.push("pane"),$=function(){function y(A,g){this.options=this.chart=this.center=this.background=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(A,g)}return y.prototype.init=function(A,g){this.chart=g,this.background=[],g.pane.push(this),this.setOptions(A)},y.prototype.setOptions=function(A){this.options=E(this.defaultOptions,this.chart.angular?{background:{}}:void 0,A)},y.prototype.render=function(){var A=this.options,g=this.options.background,v=this.chart.renderer;if(this.group||(this.group=v.g("pane-group").attr({zIndex:A.zIndex||0}).add()),this.updateCenter(),g)for(g=T(g),A=Math.max(g.length,this.background.length||0),v=0;v\u25cf {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}};return Z=function(v){function S(){var N=null!==v&&v.apply(this,arguments)||this;return N.data=void 0,N.options=void 0,N.points=void 0,N.lowerStateMarkerGraphic=void 0,N.xAxis=void 0,N}return $(S,v),S.prototype.toYData=function(N){return[N.low,N.high]},S.prototype.highToXY=function(N){var j=this.chart,M=this.xAxis.postTranslate(N.rectPlotX||0,this.yAxis.len-(N.plotHigh||0));N.plotHighX=M.x-j.plotLeft,N.plotHigh=M.y-j.plotTop,N.plotLowX=N.plotX},S.prototype.getGraphPath=function(N){var a,j=[],M=[],D=R.getGraphPath,I=this.options,b=this.chart.polar,d=b&&!1!==I.connectEnds,u=I.connectNulls,n=I.step;for(a=(N=N||this.points).length;a--;){var o=N[a],m=b?{plotX:o.rectPlotX,plotY:o.yBottom,doCurve:!1}:{plotX:o.plotX,plotY:o.plotY,doCurve:!1};o.isNull||d||u||N[a+1]&&!N[a+1].isNull||M.push(m);var _={polarPlotY:o.polarPlotY,rectPlotX:o.rectPlotX,yBottom:o.yBottom,plotX:y(o.plotHighX,o.plotX),plotY:o.plotHigh,isNull:o.isNull};M.push(_),j.push(_),o.isNull||d||u||N[a-1]&&!N[a-1].isNull||M.push(m)}return N=D.call(this,N),n&&(!0===n&&(n="left"),I.step={left:"right",center:"center",right:"left"}[n]),j=D.call(this,j),M=D.call(this,M),I.step=n,I=[].concat(N,j),!this.chart.polar&&M[0]&&"M"===M[0][0]&&(M[0]=["L",M[0][1],M[0][2]]),this.graphPath=I,this.areaPath=N.concat(M),I.isArea=!0,I.xMap=N.xMap,this.areaPath.xMap=N.xMap,I},S.prototype.drawDataLabels=function(){var b,d,N=this.points,j=N.length,M=[],D=this.options.dataLabels,I=this.chart.inverted;if(D){if(w(D))var u=D[0]||{enabled:!1},a=D[1]||{enabled:!1};else(u=E({},D)).x=D.xHigh,u.y=D.yHigh,(a=E({},D)).x=D.xLow,a.y=D.yLow;if(u.enabled||this._hasPointLabels){for(b=j;b--;)if(d=N[b]){var n=d.plotHigh;n=void 0===n?0:n;var o=d.plotLow;o=void 0===o?0:o,o=u.inside?no,d.y=d.high,d._plotY=d.plotY,d.plotY=n,M[b]=d.dataLabel,d.dataLabel=d.dataLabelUpper,d.below=o,I?u.align||(u.align=o?"right":"left"):u.verticalAlign||(u.verticalAlign=o?"top":"bottom")}for(this.options.dataLabels=u,R.drawDataLabels&&R.drawDataLabels.apply(this,arguments),b=j;b--;)(d=N[b])&&(d.dataLabelUpper=d.dataLabel,d.dataLabel=M[b],delete d.dataLabels,d.y=d.low,d.plotY=d._plotY)}if(a.enabled||this._hasPointLabels){for(b=j;b--;)(d=N[b])&&(n=void 0===(M=d.plotHigh)?0:M,o=void 0===(M=d.plotLow)?0:M,o=a.inside?no,d.below=!o,I?a.align||(a.align=o?"left":"right"):a.verticalAlign||(a.verticalAlign=o?"bottom":"top"));this.options.dataLabels=a,R.drawDataLabels&&R.drawDataLabels.apply(this,arguments)}if(u.enabled)for(b=j;b--;)(d=N[b])&&(d.dataLabels=[d.dataLabelUpper,d.dataLabel].filter(function(m){return!!m}));this.options.dataLabels=D}},S.prototype.alignDataLabel=function(){P.alignDataLabel.apply(this,arguments)},S.prototype.drawPoints=function(){var j,N=this.points.length;for(R.drawPoints.apply(this,arguments),j=0;j\u25cf {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),k}(O),W(Z.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:U,setStackedPoints:U}),G.registerSeriesType("boxplot",Z),Z}),q(Y,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),q(Y,"Series/Bubble/BubbleLegendItem.js",[Y["Core/Color/Color.js"],Y["Core/FormatUtilities.js"],Y["Core/Globals.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var $=O.parse,W=G.noop,V=Z.arrayMax,R=Z.arrayMin,P=Z.isNumber,k=Z.merge,E=Z.pick,w=Z.stableSort;return O=function(){function T(y,A){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0,this.setState=W,this.init(y,A)}return T.prototype.init=function(y,A){this.options=y,this.visible=!0,this.chart=A.chart,this.legend=A},T.prototype.addToLegend=function(y){y.splice(this.options.legendIndex,0,this)},T.prototype.drawLegendSymbol=function(y){var A=this.chart,g=E(y.options.itemDistance,20),v=this.legendItem||{},S=this.options,N=S.ranges,j=S.connectorDistance;this.fontMetrics=A.renderer.fontMetrics(S.labels.style.fontSize),N&&N.length&&P(N[0].value)?(w(N,function(M,D){return D.value-M.value}),this.ranges=N,this.setOptions(),this.render(),y=this.getMaxLabelSize(),A=2*(N=this.ranges[0].radius),j=0<(j=j-N+y.width)?j:0,this.maxLabel=y,this.movementX="left"===S.labels.align?j:0,v.labelWidth=A+j+g,v.labelHeight=A+this.fontMetrics.h/2):y.options.bubbleLegend.autoRanges=!0},T.prototype.setOptions=function(){var y=this.ranges,A=this.options,g=this.chart.series[A.seriesIndex],v=this.legend.baseline,S={zIndex:A.zIndex,"stroke-width":A.borderWidth},N={zIndex:A.zIndex,"stroke-width":A.connectorWidth},j={align:this.legend.options.rtl||"left"===A.labels.align?"right":"left",zIndex:A.zIndex},M=g.options.marker.fillOpacity,D=this.chart.styledMode;y.forEach(function(I,b){D||(S.stroke=E(I.borderColor,A.borderColor,g.color),S.fill=E(I.color,A.color,1!==M?$(g.color).setOpacity(M).get("rgba"):g.color),N.stroke=E(I.connectorColor,A.connectorColor,g.color)),y[b].radius=this.getRangeRadius(I.value),y[b]=k(y[b],{center:y[0].radius-y[b].radius+v}),D||k(!0,y[b],{bubbleAttribs:k(S),connectorAttribs:k(N),labelAttribs:j})},this)},T.prototype.getRangeRadius=function(y){var A=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,A.ranges[A.ranges.length-1].value,A.ranges[0].value,A.minSize,A.maxSize,y)},T.prototype.render=function(){var y=this.legendItem||{},A=this.chart.renderer,g=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),y.symbol=A.g("bubble-legend"),y.label=A.g("bubble-legend-item"),y.symbol.translateX=0,A=y.symbol.translateY=0;for(var v=this.ranges;A=g&&this.renderRange(S)}y.symbol.add(y.label),y.label.add(y.group),this.hideOverlappingLabels()},T.prototype.renderRange=function(y){var A=this.options,g=A.labels,v=this.chart,S=v.series[A.seriesIndex],N=v.renderer,j=this.symbols;v=j.labels;var M=y.center,D=Math.abs(y.radius),I=A.connectorDistance||0,b=g.align,d=A.connectorWidth,u=this.ranges[0].radius||0,a=M-D-A.borderWidth/2+d/2,n=this.fontMetrics;n=n.f/2-(n.h-n.f)/2;var o=N.styledMode;I=this.legend.options.rtl||"left"===b?-I:I,"center"===b&&(I=0,A.connectorDistance=0,y.labelAttribs.align="center"),b=a+A.labels.y;var m=u+I+A.labels.x;j.bubbleItems.push(N.circle(u,M+((a%1?1:.5)-(d%2?0:.5)),D).attr(o?{}:y.bubbleAttribs).addClass((o?"highcharts-color-"+S.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(A.className||"")).add(this.legendItem.symbol)),j.connectors.push(N.path(N.crispLine([["M",u,a],["L",u+I,a]],A.connectorWidth)).attr(o?{}:y.connectorAttribs).addClass((o?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(A.connectorClassName||"")).add(this.legendItem.symbol)),y=N.text(this.formatLabel(y),m,b+n).attr(o?{}:y.labelAttribs).css(o?{}:g.style).addClass("highcharts-bubble-legend-labels "+(A.labels.className||"")).add(this.legendItem.symbol),v.push(y),y.placed=!0,y.alignAttr={x:m,y:b+n}},T.prototype.getMaxLabelSize=function(){var y,A;return this.symbols.labels.forEach(function(g){A=g.getBBox(!0),y=y?A.width>y.width?A:y:A}),y||{}},T.prototype.formatLabel=function(y){var A=this.options,g=A.labels.formatter;A=A.labels.format;var v=this.chart.numberFormatter;return A?U.format(A,y):g?g.call(y):v(y.value,1)},T.prototype.hideOverlappingLabels=function(){var y=this.chart,A=this.symbols;!this.options.labels.allowOverlap&&A&&(y.hideOverlappingLabels(A.labels),A.labels.forEach(function(g,v){g.newOpacity?g.newOpacity!==g.oldOpacity&&A.connectors[v].show():A.connectors[v].hide()}))},T.prototype.getRanges=function(){var g,y=this.legend.bubbleLegend,A=y.options.ranges,v=Number.MAX_VALUE,S=-Number.MAX_VALUE;y.chart.series.forEach(function(j){j.isBubble&&!j.ignoreSeries&&(g=j.zData.filter(P)).length&&(v=E(j.options.zMin,Math.min(v,Math.max(R(g),!1===j.options.displayNegative?j.options.zThreshold:-Number.MAX_VALUE))),S=E(j.options.zMax,Math.max(S,V(g))))});var N=v===S?[{value:S}]:[{value:v},{value:(v+S)/2},{value:S,autoRanges:!0}];return A.length&&A[0].radius&&N.reverse(),N.forEach(function(j,M){A&&A[M]&&(N[M]=k(A[M],j))}),N},T.prototype.predictBubbleSizes=function(){var y=this.chart,A=this.fontMetrics,g=y.legend.options,v=g.floating,S=(g="horizontal"===g.layout)?y.legend.lastLineHeight:0,N=y.plotSizeX,j=y.plotSizeY,M=y.series[this.options.seriesIndex],D=M.getPxExtremes();y=Math.ceil(D.minPxSize),D=Math.ceil(D.maxPxSize);var I=Math.min(j,N);return M=M.options.maxSize,v||!/%$/.test(M)?A=D:(M=parseFloat(M),A=(I+S-A.h/2)*M/100/(M/100+1),(g&&j-A>=N||!g&&N-A>=j)&&(A=D)),[y,Math.ceil(A)]},T.prototype.updateRanges=function(y,A){var g=this.legend.options.bubbleLegend;g.minSize=y,g.maxSize=A,g.ranges=this.getRanges()},T.prototype.correctSizes=function(){var y=this.legend,A=this.chart.series[this.options.seriesIndex].getPxExtremes();1M.height&&(M.height=g[j].itemHeight);M.step=N}}return v}function R(g){var v=this.bubbleLegend,S=this.options,N=S.bubbleLegend,j=W(this.chart);v&&v.ranges&&v.ranges.length&&(N.ranges.length&&(N.autoRanges=!!N.ranges[0].autoRanges),this.destroyItem(v)),0<=j&&S.enabled&&N.enabled&&(N.seriesIndex=j,this.bubbleLegend=new U(N,this),this.bubbleLegend.addToLegend(g.allItems))}function P(){var g=this.chart,v=this.visible,S=this.chart.legend;S&&S.bubbleLegend&&(this.visible=!v,this.ignoreSeries=v,g=0<=W(g),S.bubbleLegend.visible!==g&&(S.update({bubbleLegend:{enabled:g}}),S.bubbleLegend.visible=g),this.visible=v)}function k(g,v){var N,j,M,D,S=g.options.rtl,I=0;g.allItems.forEach(function(b,d){(D=b.legendItem||{}).group&&(N=D.group.translateX||0,j=D.y||0,((M=b.movementX)||S&&b.ranges)&&(M=S?N-b.options.maxSize/2:N+M,D.group.attr({translateX:M})),d>v[I].step&&I++,D.group.attr({translateY:Math.round(j+v[I].height/2)}),D.y=j+v[I].height/2)})}var E=G.setOptions,w=Z.addEvent,T=Z.objectEach,y=Z.wrap,A=[];return{compose:function(g,v,S){-1===A.indexOf(g)&&(A.push(g),E({legend:{bubbleLegend:O}}),y(g.prototype,"drawChartBox",$)),-1===A.indexOf(v)&&(A.push(v),w(v,"afterGetAllItems",R)),-1===A.indexOf(S)&&(A.push(S),w(S,"legendItemClick",P))}}}),q(Y,"Series/Bubble/BubblePoint.js",[Y["Core/Series/Point.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G){var $,Z=this&&this.__extends||($=function(W,V){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var k in P)P.hasOwnProperty(k)&&(R[k]=P[k])})(W,V)},function(W,V){function R(){this.constructor=W}$(W,V),W.prototype=null===V?Object.create(V):(R.prototype=V.prototype,new R)});return G=G.extend,U=function($){function W(){var V=null!==$&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V}return Z(W,$),W.prototype.haloPath=function(V){return O.prototype.haloPath.call(this,0===V?0:(this.marker&&this.marker.radius||0)+V)},W}(U.seriesTypes.scatter.prototype.pointClass),G(U.prototype,{ttBelow:!1}),U}),q(Y,"Series/Bubble/BubbleSeries.js",[Y["Series/Bubble/BubbleLegendComposition.js"],Y["Series/Bubble/BubblePoint.js"],Y["Core/Color/Color.js"],Y["Core/Globals.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W){function V(){var _,M=this,D=this.len,I=this.chart,b=this.isXAxis,d=b?"xData":"yData",u=this.min,a=this.max-u,n=0,o=D,m=D/a;this.series.forEach(function(B){if(B.bubblePadding&&(B.visible||!I.options.chart.ignoreHiddenSeries)){_=M.allowZoomOutside=!0;var X=B[d];if(b&&((B.onPoint||B).getRadii(0,0,B),B.onPoint&&(B.radii=B.onPoint.radii)),0"u"&&(M[B[0]]+=B[2]/m)}))}var M,R=this&&this.__extends||(M=function(D,I){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var u in d)d.hasOwnProperty(u)&&(b[u]=d[u])})(D,I)},function(D,I){function b(){this.constructor=D}M(D,I),D.prototype=null===I?Object.create(I):(b.prototype=I.prototype,new b)}),P=G.parse;G=Z.noop;var k=$.series,E=$.seriesTypes;Z=E.column.prototype;var w=E.scatter;E=W.addEvent;var T=W.arrayMax,y=W.arrayMin,A=W.clamp,g=W.extend,v=W.isNumber,S=W.merge,N=W.pick,j=[];return W=function(M){function D(){var I=null!==M&&M.apply(this,arguments)||this;return I.data=void 0,I.maxPxSize=void 0,I.minPxSize=void 0,I.options=void 0,I.points=void 0,I.radii=void 0,I.yData=void 0,I.zData=void 0,I}return R(D,M),D.compose=function(I,b,d,u){O.compose(b,d,u),-1===j.indexOf(I)&&(j.push(I),I.prototype.beforePadding=V)},D.prototype.animate=function(I){!I&&this.points.length=d/2?(a.marker=g(a.marker,{radius:n,width:2*n,height:2*n}),a.dlBox={x:a.plotX-n,y:a.plotY-n,width:2*n,height:2*n}):(a.shapeArgs=a.plotY=a.dlBox=void 0,a.isInside=!1)}},D.prototype.getPxExtremes=function(){var I=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(u){if("string"==typeof u){var a=/%$/.test(u);u=parseInt(u,10)}return a?I*u/100:u},d=b(N(this.options.minSize,8));return{minPxSize:d,maxPxSize:b=Math.max(b(N(this.options.maxSize,"20%")),d)}},D.prototype.getZExtremes=function(){var I=this.options,b=(this.zData||[]).filter(v);if(b.length){var d=N(I.zMin,A(y(b),!1===I.displayNegative?I.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(I=N(I.zMax,T(b)),v(d)&&v(I))return{zMin:d,zMax:I}}},D.defaultOptions=S(w.defaultOptions,{dataLabels:{formatter:function(){var I=this.series.chart.numberFormatter,b=this.point.z;return v(b)?I(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),D}(w),g(W.prototype,{alignDataLabel:Z.alignDataLabel,applyZones:G,bubblePadding:!0,buildKDTree:G,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:U,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),E(W,"updatedData",function(M){delete M.target.chart.bubbleZExtremes}),E(W,"remove",function(M){delete M.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",W),W}),q(Y,"Series/ColumnRange/ColumnRangePoint.js",[Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U){var V,G=this&&this.__extends||(V=function(R,P){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,E){k.__proto__=E}||function(k,E){for(var w in E)E.hasOwnProperty(w)&&(k[w]=E[w])})(R,P)},function(R,P){function k(){this.constructor=R}V(R,P),R.prototype=null===P?Object.create(P):(k.prototype=P.prototype,new k)}),Z=O.seriesTypes;O=Z.column.prototype.pointClass.prototype;var $=U.extend,W=U.isNumber;return U=function(V){function R(){var P=null!==V&&V.apply(this,arguments)||this;return P.options=void 0,P.series=void 0,P}return G(R,V),R.prototype.isValid=function(){return W(this.low)},R}(Z.arearange.prototype.pointClass),$(U.prototype,{setState:O.setState}),U}),q(Y,"Series/ColumnRange/ColumnRangeSeries.js",[Y["Series/ColumnRange/ColumnRangePoint.js"],Y["Core/Globals.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var A,$=this&&this.__extends||(A=function(g,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var j in N)N.hasOwnProperty(j)&&(S[j]=N[j])})(g,v)},function(g,v){function S(){this.constructor=g}A(g,v),g.prototype=null===v?Object.create(v):(S.prototype=v.prototype,new S)});U=U.noop;var W=G.seriesTypes,V=W.arearange,R=W.column,P=W.column.prototype,k=Z.clamp;W=Z.extend;var E=Z.isNumber,w=Z.merge,T=Z.pick,y={pointRange:null,marker:null,states:{hover:{halo:!1}}};return Z=function(A){function g(){return null!==A&&A.apply(this,arguments)||this}return $(g,A),g.prototype.setOptions=function(){return w(!0,arguments[0],{stacking:void 0}),V.prototype.setOptions.apply(this,arguments)},g.prototype.translate=function(){var b,d,u,a,v=this,S=this.yAxis,N=this.xAxis,j=N.startAngleRad,M=this.chart,D=this.xAxis.isRadial,I=Math.max(M.chartWidth,M.chartHeight)+999;P.translate.apply(this),this.points.forEach(function(n){var o=n.shapeArgs||{},m=v.options.minPointLength,_=n.plotY,B=S.translate(n.high,0,1,0,1);E(B)&&E(_)&&(n.plotHigh=k(B,-I,I),n.plotLow=k(_,-I,I),a=n.plotHigh,b=T(n.rectPlotY,n.plotY)-n.plotHigh,Math.abs(b)b&&(a-=b*=-1),D&&v.polar?(u=n.barX+j,n.shapeType="arc",n.shapeArgs=v.polar.arc(a+b,a,u,u+n.pointWidth)):(o.height=b,o.y=a,m=void 0===(m=o.x)?0:m,o=void 0===(o=o.width)?0:o,n.tooltipPos=M.inverted?[S.len+S.pos-M.plotLeft-a-b/2,N.len+N.pos-M.plotTop-m-o/2,b]:[N.left-M.plotLeft+m+o/2,S.pos-M.plotTop+a+b/2,b]))})},g.prototype.pointAttribs=function(){return P.pointAttribs.apply(this,arguments)},g.prototype.translate3dPoints=function(){return P.translate3dPoints.apply(this,arguments)},g.prototype.translate3dShapes=function(){return P.translate3dShapes.apply(this,arguments)},g.defaultOptions=w(R.defaultOptions,V.defaultOptions,y),g}(V),W(Z.prototype,{directTouch:!0,pointClass:O,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:P.adjustForMissingColumns,animate:P.animate,crispCol:P.crispCol,drawGraph:U,drawPoints:P.drawPoints,getSymbol:U,drawTracker:P.drawTracker,getColumnMetrics:P.getColumnMetrics}),G.registerSeriesType("columnrange",Z),Z}),q(Y,"Series/ColumnPyramid/ColumnPyramidSeries.js",[Y["Series/Column/ColumnSeries.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G){var P,Z=this&&this.__extends||(P=function(k,E){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var y in T)T.hasOwnProperty(y)&&(w[y]=T[y])})(k,E)},function(k,E){function w(){this.constructor=k}P(k,E),k.prototype=null===E?Object.create(E):(w.prototype=E.prototype,new w)}),$=O.prototype,W=G.clamp,V=G.merge,R=G.pick;return G=function(P){function k(){var E=null!==P&&P.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E}return Z(k,P),k.prototype.translate=function(){var E=this,w=E.chart,T=E.options,y=E.dense=2>E.closestPointRange*E.xAxis.transA;y=E.borderWidth=R(T.borderWidth,y?0:1);var A=E.yAxis,g=T.threshold,v=E.translatedThreshold=A.getThreshold(g),S=R(T.minPointLength,5),N=E.getColumnMetrics(),j=N.width,M=E.barW=Math.max(j,1+2*y),D=E.pointXOffset=N.offset;w.inverted&&(v-=.5),T.pointPadding&&(M=Math.ceil(M)),$.translate.apply(E),E.points.forEach(function(I){var b=R(I.yBottom,v),d=999+Math.abs(b),u=W(I.plotY,-d,A.len+d);d=I.plotX+D;var o,a=M/2,n=Math.min(u,b);b=Math.max(u,b)-n,I.barX=d,I.pointWidth=j,I.tooltipPos=w.inverted?[A.len+A.pos-w.plotLeft-u,E.xAxis.len-d-a,b]:[d+a,u+A.pos-w.plotTop,b],u=g+(I.total||I.y),"percent"===T.stacking&&(u=g+(0>I.y)?-100:100),u=A.toPixels(u,!0);var m=(o=w.plotHeight-u-(w.plotHeight-v))?a*(n-u)/o:0,_=o?a*(n+b-u)/o:0;o=d-m+a,m=d+m+a;var B=d+_+a;_=d-_+a;var X=n-S,it=n+b;0>I.y&&(X=n,it=n+b+S),w.inverted&&(_=a*(u-((B=A.width-n)-b))/(o=u-(A.width-v)),m=(o=d+a+(m=a*(u-B)/o))-2*m,B=d-_+a,_=d+_+a,X=n,it=n+b-S,0>I.y&&(it=n+b+S)),I.shapeType="path",I.shapeArgs={x:o,y:X,width:m-o,height:b,d:[["M",o,X],["L",m,X],["L",B,it],["L",_,it],["Z"]]}})},k.defaultOptions=V(O.defaultOptions,{}),k}(O),U.registerSeriesType("columnpyramid",G),G}),q(Y,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\u25cf {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),q(Y,"Series/ErrorBar/ErrorBarSeries.js",[Y["Series/BoxPlot/BoxPlotSeries.js"],Y["Series/Column/ColumnSeries.js"],Y["Series/ErrorBar/ErrorBarSeriesDefaults.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$){var E,W=this&&this.__extends||(E=function(w,T){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,A){y.__proto__=A}||function(y,A){for(var g in A)A.hasOwnProperty(g)&&(y[g]=A[g])})(w,T)},function(w,T){function y(){this.constructor=w}E(w,T),w.prototype=null===T?Object.create(T):(y.prototype=T.prototype,new y)}),V=Z.seriesTypes.arearange,R=$.addEvent,P=$.merge;$=$.extend;var k=function(E){function w(){var T=null!==E&&E.apply(this,arguments)||this;return T.data=void 0,T.options=void 0,T.points=void 0,T}return W(w,E),w.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||U.prototype.getColumnMetrics.call(this)},w.prototype.drawDataLabels=function(){var T=this.pointValKey;V&&(V.prototype.drawDataLabels.call(this),this.data.forEach(function(y){y.y=y[T]}))},w.prototype.toYData=function(T){return[T.low,T.high]},w.defaultOptions=P(O.defaultOptions,G),w}(O);return R(k,"afterTranslate",function(){this.points.forEach(function(E){E.plotLow=E.plotY})},{order:0}),$(k.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),Z.registerSeriesType("errorbar",k),k}),q(Y,"Series/Gauge/GaugePoint.js",[Y["Core/Series/SeriesRegistry.js"]],function(O){var G,U=this&&this.__extends||(G=function(Z,$){return(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,V){W.__proto__=V}||function(W,V){for(var R in V)V.hasOwnProperty(R)&&(W[R]=V[R])})(Z,$)},function(Z,$){function W(){this.constructor=Z}G(Z,$),Z.prototype=null===$?Object.create($):(W.prototype=$.prototype,new W)});return function(G){function Z(){var $=null!==G&&G.apply(this,arguments)||this;return $.options=void 0,$.series=void 0,$.shapeArgs=void 0,$}return U(Z,G),Z.prototype.setState=function($){this.state=$},Z}(O.series.prototype.pointClass)}),q(Y,"Series/Gauge/GaugeSeries.js",[Y["Series/Gauge/GaugePoint.js"],Y["Core/Globals.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var y,$=this&&this.__extends||(y=function(A,g){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var N in S)S.hasOwnProperty(N)&&(v[N]=S[N])})(A,g)},function(A,g){function v(){this.constructor=A}y(A,g),A.prototype=null===g?Object.create(g):(v.prototype=g.prototype,new v)});U=U.noop;var W=G.series,V=G.seriesTypes.column,R=Z.clamp,P=Z.isNumber,k=Z.extend,E=Z.merge,w=Z.pick,T=Z.pInt;return Z=function(y){function A(){var g=null!==y&&y.apply(this,arguments)||this;return g.data=void 0,g.points=void 0,g.options=void 0,g.yAxis=void 0,g}return $(A,y),A.prototype.translate=function(){var g=this.yAxis,v=this.options,S=g.center;this.generatePoints(),this.points.forEach(function(N){var j=E(v.dial,N.dial),M=T(j.radius)*S[2]/200,D=T(j.baseLength)*M/100,I=T(j.rearLength)*M/100,b=j.baseWidth,d=j.topWidth,u=v.overshoot,a=g.startAngleRad+g.translate(N.y,void 0,void 0,void 0,!0);(P(u)||!1===v.wrap)&&(u=P(u)?u/180*Math.PI:0,a=R(a,g.startAngleRad-u,g.endAngleRad+u)),a=180*a/Math.PI,N.shapeType="path",N.shapeArgs={d:j.path||[["M",-I,-b/2],["L",D,-b/2],["L",M,-d/2],["L",M,d/2],["L",D,b/2],["L",-I,b/2],["Z"]],translateX:S[0],translateY:S[1],rotation:a},N.plotX=S[0],N.plotY=S[1]})},A.prototype.drawPoints=function(){var g=this,v=g.chart,S=g.yAxis.center,N=g.pivot,j=g.options,M=j.pivot,D=v.renderer;g.points.forEach(function(I){var b=I.graphic,d=I.shapeArgs,u=d.d,a=E(j.dial,I.dial);b?(b.animate(d),d.d=u):I.graphic=D[I.shapeType](d).attr({rotation:d.rotation,zIndex:1}).addClass("highcharts-dial").add(g.group),v.styledMode||I.graphic[b?"animate":"attr"]({stroke:a.borderColor,"stroke-width":a.borderWidth,fill:a.backgroundColor})}),N?N.animate({translateX:S[0],translateY:S[1]}):M&&(g.pivot=D.circle(0,0,M.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(S[0],S[1]).add(g.group),v.styledMode||g.pivot.attr({fill:M.backgroundColor,stroke:M.borderColor,"stroke-width":M.borderWidth}))},A.prototype.animate=function(g){var v=this;g||v.points.forEach(function(S){var N=S.graphic;N&&(N.attr({rotation:180*v.yAxis.startAngleRad/Math.PI}),N.animate({rotation:S.shapeArgs.rotation},v.options.animation))})},A.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),W.prototype.render.call(this),this.group.clip(this.chart.clipRect)},A.prototype.setData=function(g,v){W.prototype.setData.call(this,g,!1),this.processData(),this.generatePoints(),w(v,!0)&&this.chart.redraw()},A.prototype.hasData=function(){return!!this.points.length},A.defaultOptions=E(W.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),A}(W),k(Z.prototype,{angular:!0,directTouch:!0,drawGraph:U,drawTracker:V.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:O,trackerGroups:["group","dataLabelsGroup"]}),G.registerSeriesType("gauge",Z),Z}),q(Y,"Series/DragNodesComposition.js",[Y["Core/Utilities.js"]],function(O){function U(){var W,V,R,$=this;$.container&&(W=G($.container,"mousedown",function(P){var k=$.hoverPoint;k&&k.series&&k.series.hasDraggableNodes&&k.series.options.draggable&&(k.series.onMouseDown(k,P),V=G($.container,"mousemove",function(E){return k&&k.series&&k.series.onMouseMove(k,E)}),R=G($.container.ownerDocument,"mouseup",function(E){return V(),R(),k&&k.series&&k.series.onMouseUp(k,E)}))})),G($,"destroy",function(){W()})}var G=O.addEvent,Z=[];return{compose:function($){-1===Z.indexOf($)&&(Z.push($),G($,"load",U))},onMouseDown:function($,W){W=this.chart.pointer.normalize(W),$.fixedPosition={chartX:W.chartX,chartY:W.chartY,plotX:$.plotX,plotY:$.plotY},$.inDragMode=!0},onMouseMove:function($,W){if($.fixedPosition&&$.inDragMode){var V=this.chart,R=V.pointer.normalize(W);W=$.fixedPosition.chartX-R.chartX,R=$.fixedPosition.chartY-R.chartY;var P=V.graphLayoutsLookup,k=void 0,E=void 0;(5O?1:0)}}}),q(Y,"Series/PackedBubble/PackedBubbleIntegration.js",[Y["Core/Globals.js"],Y["Series/Networkgraph/VerletIntegration.js"]],function(O,U){return{barycenter:function(){for(var W,V,G=this.options.gravitationalConstant,Z=this.box,$=this.nodes,R=0;R<$.length;R++){var P=$[R];this.options.splitSeries&&!P.isParentNode?(W=P.series.parentNode.plotX,V=P.series.parentNode.plotY):(W=Z.width/2,V=Z.height/2),P.fixedPosition||(P.plotX-=(P.plotX-W)*G/(P.mass*Math.sqrt($.length)),P.plotY-=(P.plotY-V)*G/(P.mass*Math.sqrt($.length)))}},getK:O.noop,integrate:U.integrate,repulsive:function(G,Z,$,W){var V=Z*this.diffTemperature/G.mass/G.degree;Z=$.x*V,$=$.y*V,G.fixedPosition||(G.plotX+=Z,G.plotY+=$),W.fixedPosition||(W.plotX-=Z,W.plotY-=$)},repulsiveForceFunction:function(G,Z,$,W){return Math.min(G,($.marker.radius+W.marker.radius)/2)}}}),q(Y,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(O,U,G,Z){var $=O.getMass(),W=G.x/Z*U;U*=G.y/Z,O.fromNode.fixedPosition||(O.fromNode.dispX-=W*$.fromNode/O.fromNode.degree,O.fromNode.dispY-=U*$.fromNode/O.fromNode.degree),O.toNode.fixedPosition||(O.toNode.dispX+=W*$.toNode/O.toNode.degree,O.toNode.dispY+=U*$.toNode/O.toNode.degree)},attractiveForceFunction:function(O,U){return O*O/U},barycenter:function(){var O=this.options.gravitationalConstant,U=this.barycenter.xFactor,G=this.barycenter.yFactor;this.nodes.forEach(function(Z){if(!Z.fixedPosition){var $=Z.getDegree();$*=1+$/2,Z.dispX+=(U-Z.plotX)*O*$/Z.degree,Z.dispY+=(G-Z.plotY)*O*$/Z.degree}})},getK:function(O){return Math.pow(O.box.width*O.box.height/O.nodes.length,.3)},integrate:function(O,U){U.dispX+=U.dispX*O.options.friction,U.dispY+=U.dispY*O.options.friction;var G=U.temperature=O.vectorLength({x:U.dispX,y:U.dispY});0!==G&&(U.plotX+=U.dispX/G*Math.min(Math.abs(U.dispX),O.temperature),U.plotY+=U.dispY/G*Math.min(Math.abs(U.dispY),O.temperature))},repulsive:function(O,U,G,Z){O.dispX+=G.x/Z*U/O.degree,O.dispY+=G.y/Z*U/O.degree},repulsiveForceFunction:function(O,U){return U*U/O}}}),q(Y,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function O(U){this.isInternal=this.isEmpty=this.body=!1,this.nodes=[],this.box=U,this.boxSize=Math.min(U.width,U.height)}return O.prototype.divideBox=function(){var U=this.box.width/2,G=this.box.height/2;this.nodes[0]=new O({left:this.box.left,top:this.box.top,width:U,height:G}),this.nodes[1]=new O({left:this.box.left+U,top:this.box.top,width:U,height:G}),this.nodes[2]=new O({left:this.box.left+U,top:this.box.top+G,width:U,height:G}),this.nodes[3]=new O({left:this.box.left,top:this.box.top+G,width:U,height:G})},O.prototype.getBoxPosition=function(U){var G=U.plotYMath.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature},w.prototype.getSystemTemperature=function(){for(var T=0,y=0,A=this.nodes;yMath.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>T||0>=this.temperature},w.prototype.setCircularPositions=function(){for(var v,S,T=this.box,y=this.nodes,A=2*Math.PI/(y.length+1),g=this.options.initialPositionRadius,N=0,j=0;j(g=T.vectorLength(v)-(S.marker.radius+N.marker.radius+y))&&(S.degree+=.01,S.neighbours++,A=T.repulsiveForce(-g/Math.sqrt(S.neighbours),T.k,S,N)),T.force("repulsive",S,A*N.mass,v,N,g))})})},w.prototype.applyLimitBox=function(T,y){if(this.options.splitSeries&&!T.isParentNode&&this.options.parentNodeLimit){var A=this.getDistXY(T,T.series.parentNode),g=T.series.parentNodeRadius-T.marker.radius-this.vectorLength(A);0>g&&g>-2*T.marker.radius&&(T.plotX-=.01*A.x,T.plotY-=.01*A.y)}E.prototype.applyLimitBox.call(this,T,y)},w}(G),O.layouts.packedbubble=Z}),q(Y,"Series/PackedBubble/PackedBubbleSeries.js",[Y["Core/Color/Color.js"],Y["Series/DragNodesComposition.js"],Y["Series/GraphLayoutComposition.js"],Y["Core/Globals.js"],Y["Series/PackedBubble/PackedBubblePoint.js"],Y["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],Y["Series/PackedBubble/PackedBubbleLayout.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P){var I,k=this&&this.__extends||(I=function(b,d){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var n in a)a.hasOwnProperty(n)&&(u[n]=a[n])})(b,d)},function(b,d){function u(){this.constructor=b}I(b,d),b.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)}),E=O.parse;O=Z.noop;var w=R.series.prototype,T=R.seriesTypes.bubble,y=P.addEvent,A=P.clamp,g=P.defined,v=P.extend,S=P.fireEvent,N=P.isArray,j=P.isNumber,M=P.merge,D=P.pick;return P=function(I){function b(){var d=null!==I&&I.apply(this,arguments)||this;return d.chart=void 0,d.data=void 0,d.layout=void 0,d.options=void 0,d.parentNodeMass=0,d.points=void 0,d.xData=void 0,d}return k(b,I),b.compose=function(d,u,a,n){T.compose(d,u,a,n),U.compose(u),V.compose(u)},b.prototype.accumulateAllPoints=function(){for(var a,d=this.chart,u=[],n=0,o=d.series;nn&&(n=m),mMath.sqrt(a*a+n*n)-Math.abs(d[2]+u[2])},b.prototype.createParentNodes=function(){var m,d=this,u=this.pointClass,a=this.chart,n=this.parentNodeLayout,o=this.layout.options,_=this.parentNode,B={radius:this.parentNodeRadius,lineColor:this.color,fillColor:E(this.color).brighten(.4).get()};o.parentNodeOptions&&(B=M(o.parentNodeOptions.marker||{},B)),this.parentNodeMass=0,this.points.forEach(function(X){d.parentNodeMass+=Math.PI*Math.pow(X.marker.radius,2)}),this.calculateParentRadius(),n.nodes.forEach(function(X){X.seriesIndex===d.index&&(m=!0)}),n.setArea(0,0,a.plotWidth,a.plotHeight),m||(_||(_=(new u).init(this,{mass:this.parentNodeRadius/2,marker:B,dataLabels:{inside:!1},states:{normal:{marker:B},hover:{marker:B}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(_.plotX=this.parentNode.plotX,_.plotY=this.parentNode.plotY),this.parentNode=_,n.addElementsToCollection([this],n.series),n.addElementsToCollection([_],n.nodes))},b.prototype.deferLayout=function(){var d=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),d.splitSeries&&this.addSeriesLayout())},b.prototype.destroy=function(){var d=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(u){u.removeElementFromCollection(d,u.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),w.destroy.apply(this,arguments)},b.prototype.drawDataLabels=function(){w.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",w.drawDataLabels.call(this,[this.parentNode]))},b.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var d=this.chart,u=this.layout.options.parentNodeOptions.marker;u={fill:u.fillColor||E(this.color).brighten(.4).get(),opacity:u.fillOpacity,stroke:u.lineColor||this.color,"stroke-width":D(u.lineWidth,this.options.lineWidth)},this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,d.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius();var a=M({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},u);this.parentNode.graphic||(this.graph=this.parentNode.graphic=d.renderer.symbol(u.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(a)}},b.prototype.drawTracker=function(){var d=this.parentNode;if(I.prototype.drawTracker.call(this),d){var u=N(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[];d.graphic&&(d.graphic.element.point=d),u.forEach(function(a){a.div?a.div.point=d:a.element.point=d})}},b.prototype.getPointRadius=function(){var it,rt,L,z,d=this,u=this.chart,a=this.options,n=a.useSimulation,o=Math.min(u.plotWidth,u.plotHeight),m={},_=[],B=u.allDataPoints||[],X=B.length;["minSize","maxSize"].forEach(function(at){var st=parseInt(a[at],10),H=/%$/.test(a[at]);m[at]=H?o*st/100:st*Math.sqrt(X)}),u.minRadius=it=m.minSize/Math.sqrt(X),u.maxRadius=rt=m.maxSize/Math.sqrt(X);var et=n?this.calculateZExtremes():[it,rt];B.forEach(function(at,st){L=n?A(at[2],et[0],et[1]):at[2],0===(z=d.getRadius(et[0],et[1],it,rt,L))&&(z=null),B[st][2]=z,_.push(z)}),this.radii=_},b.prototype.init=function(){return w.init.apply(this,arguments),this.eventsToUnbind.push(y(this,"updatedData",function(){var d=this;this.chart.series.forEach(function(u){u.type===d.type&&(u.isDirty=!0)},this)})),this},b.prototype.onMouseUp=function(d){var u=d;if(u.fixedPosition&&!u.removed){var o,a=this.layout,n=this.parentNodeLayout;n&&a.options.dragBetweenSeries&&n.nodes.forEach(function(_){u&&u.marker&&_!==u.series.parentNode&&(o=a.getDistXY(u,_),0>a.vectorLength(o)-_.marker.radius-u.marker.radius&&(_.series.addPoint(M(u.options,{plotX:u.plotX,plotY:u.plotY}),!1),a.removeElementFromCollection(u,a.nodes),u.remove()))}),U.onMouseUp.apply(this,arguments)}},b.prototype.placeBubbles=function(d){var X,u=this.checkOverlap,a=this.positionBubble,n=[],o=1,m=0,_=0,B=[];if((d=d.sort(function(it,rt){return rt[2]-it[2]})).length){if(n.push([[0,0,d[0][2],d[0][3],d[0][4]]]),1d[1]-u[1]?0:Math.PI)+m+o*(0>(d[0]-u[0])*(d[1]-u[1])?1:-1),[u[0]+(u[2]+a[2])*Math.sin(d),u[1]-(u[2]+a[2])*Math.cos(d),a[2],a[3],a[4]]},b.prototype.render=function(){var d=[];w.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(u){N(u.dataLabels)&&u.dataLabels.forEach(function(a){d.push(a)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(d))},b.prototype.resizeRadius=function(){for(var X,it,d=this.chart,u=d.rawPositions,a=Math.min,n=Math.max,o=d.plotLeft,m=d.plotTop,_=d.plotHeight,B=d.plotWidth,rt=X=Number.POSITIVE_INFINITY,L=it=Number.NEGATIVE_INFINITY,z=0;zB.height&&(B.y+=B.height,B.height*=-1);m.plotY=B.y=Math.round(B.y||0)-this.borderWidth%2/2,B.height=Math.max(Math.round(B.height||0),.001),m.yBottom=B.y+B.height,B.height<=D&&!m.isNull?(B.height=D,B.y-=I,m.plotY=B.y,m.minPointLengthOffset=0>m.y?-I:I):(m.isNull&&(B.width=0),m.minPointLengthOffset=0),it=m.plotY+(m.negative?B.height:0),m.below&&(m.plotY+=B.height),m.tooltipPos&&(this.chart.inverted?m.tooltipPos[0]=M.len-it:m.tooltipPos[1]=it),m.isInside=this.isPointInside(m)}}},N.prototype.processData=function(j){var u,a,n,o,m,M=this.options,D=this.yData,I=M.data,b=D.length,d=M.threshold||0;for(m=a=u=n=o=0;m_.y&&!u||0<_.y&&u)&&((_=n[n.length-2])&&"number"==typeof _[2]&&(_[2]+=B.height||0),(_=n[n.length-1])&&"number"==typeof _[2]&&(_[2]+=B.height||0))}return n},N.prototype.drawGraph=function(){k.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},N.prototype.setStackedPoints=function(){function j(H,ot,nt,yt){if(L){if(st)for(;nt_.indexOf(u)&&(X=!0),D[u]||(D[u]={}),_=D[u])for(var it=0;it"u"&&R(this.endAngleRad-this.startAngleRad)===R(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function N(){var mt=this;return function(){if(mt.isRadial&&mt.tickPositions&&mt.options.labels&&!0!==mt.options.labels.allowOverlap)return mt.tickPositions.map(function(St){return mt.ticks[St]&&mt.ticks[St].label}).filter(function(St){return!!St})}}function j(){return W}function M(mt,St,wt){var Mt=this.pane.center,Dt=mt.value;if(this.isCircular){if(P(Dt))mt.point&&(Pt=mt.point.shapeArgs||{}).start&&(Dt=this.chart.inverted?this.translate(mt.point.rectPlotY,!0):mt.point.x);else{var Pt=mt.chartX||0,Ft=mt.chartY||0;Dt=this.translate(Math.atan2(Ft-wt,Pt-St)-this.startAngleRad,!0)}Pt=(mt=this.getPosition(Dt)).x,Ft=mt.y}else P(Dt)||(Pt=mt.chartX,Ft=mt.chartY),P(Pt)&&P(Ft)&&(wt=Mt[1]+this.chart.plotTop,Dt=this.translate(Math.min(Math.sqrt(Math.pow(Pt-St,2)+Math.pow(Ft-wt,2)),Mt[2]/2)-Mt[3]/2,!0));return[Dt,Pt||0,Ft||0]}function D(mt,St,wt){mt=this.pane.center;var Mt=this.chart,Dt=this.left||0,Pt=this.top||0,Ft=T(St,mt[2]/2-this.offset);return typeof wt>"u"&&(wt=this.horiz?0:this.center&&-this.center[3]/2),wt&&(Ft+=wt),this.isCircular||typeof St<"u"?((St=this.chart.renderer.symbols.arc(Dt+mt[0],Pt+mt[1],Ft,Ft,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[Dt+mt[0]],St.yBounds=[Pt+mt[1]-Ft]):(St=this.postTranslate(this.angleRad,Ft),St=[["M",this.center[0]+Mt.plotLeft,this.center[1]+Mt.plotTop],["L",St.x,St.y]]),St}function I(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function b(mt,St,wt){var Mt=this.chart,Dt=function(Zt){if("string"==typeof Zt){var he=parseInt(Zt,10);return xt.test(Zt)&&(he=he*jt/100),he}return Zt},Pt=this.center,Ft=this.startAngleRad,jt=Pt[2]/2,Ut=Math.min(this.offset,0),bt=this.left||0,_t=this.top||0,xt=/%$/,ft=this.isCircular,Ct=T(Dt(wt.outerRadius),jt),Ot=Dt(wt.innerRadius);if(Dt=T(Dt(wt.thickness),10),"polygon"===this.options.gridLineInterpolation)Ut=this.getPlotLinePath({value:mt}).concat(this.getPlotLinePath({value:St,reverse:!0}));else{if(mt=Math.max(mt,this.min),St=Math.min(St,this.max),mt=this.translate(mt),St=this.translate(St),ft||(Ct=mt||0,Ot=St||0),"circle"!==wt.shape&&ft)wt=Ft+(mt||0),Ft+=St||0;else{wt=-Math.PI/2,Ft=1.5*Math.PI;var Rt=!0}Ct-=Ut,Ut=Mt.renderer.symbols.arc(bt+Pt[0],_t+Pt[1],Ct,Ct,{start:Math.min(wt,Ft),end:Math.max(wt,Ft),innerR:T(Ot,Ct-(Dt-Ut)),open:Rt}),ft&&(ft=(Ft+wt)/2,bt=bt+Pt[0]+Pt[2]/2*Math.cos(ft),Ut.xBounds=ft>-Math.PI/2&&ft-Math.PI&&0>ft||ft>Math.PI?-10:10)}return Ut}function d(mt){var St=this,wt=this.pane.center,Mt=this.chart,Dt=Mt.inverted,Pt=mt.reverse,Ft=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},jt=Ft.innerRadius||"0%",Ut=Ft.outerRadius||"100%",bt=wt[0]+Mt.plotLeft,_t=wt[1]+Mt.plotTop,xt=this.height,ft=mt.isCrosshair;Ft=wt[3]/2;var Ot,Ct=mt.value,Rt=this.getPosition(Ct),Zt=Rt.x;if(Rt=Rt.y,ft&&(Ct=(Rt=this.getCrosshairPosition(mt,bt,_t))[0],Zt=Rt[1],Rt=Rt[2]),this.isCircular)Ct=Math.sqrt(Math.pow(Zt-bt,2)+Math.pow(Rt-_t,2)),Pt="string"==typeof jt?y(jt,1):jt/Ct,Mt="string"==typeof Ut?y(Ut,1):Ut/Ct,wt&&Ft&&(Pt<(Ft/=Ct)&&(Pt=Ft),MtCt||Ct>xt)&&(Ct=0),"circle"===this.options.gridLineInterpolation)wt=this.getLinePath(0,Ct,Ft);else if(wt=[],Mt[Dt?"yAxis":"xAxis"].forEach(function(he){he.pane===St.pane&&(Ot=he)}),Ot)for(bt=Ot.tickPositions,Ot.autoConnect&&(bt=bt.concat([bt[0]])),Pt&&(bt=bt.slice().reverse()),Ct&&(Ct+=Ft),_t=0;_tmt?0:mt,this.center[2]/2)-this.offset)}function a(){var mt=this.center,St=this.chart,wt=this.options.title;return{x:St.plotLeft+mt[0]+(wt.x||0),y:St.plotTop+mt[1]-{high:.5,middle:.25,low:0}[wt.align]*mt[2]+(wt.y||0)}}function n(mt){mt.beforeSetTickPositions=S,mt.createLabelCollector=N,mt.getCrosshairPosition=M,mt.getLinePath=D,mt.getOffset=I,mt.getPlotBandPath=b,mt.getPlotLinePath=d,mt.getPosition=u,mt.getTitlePosition=a,mt.postTranslate=L,mt.setAxisSize=et,mt.setAxisTranslation=at,mt.setOptions=st}function o(){var mt=this.chart,St=this.options,wt=this.pane,Mt=wt&&wt.options;mt.angular&&this.isXAxis||!wt||!mt.angular&&!mt.polar||(mt=2*Math.PI,wt=(T(Mt.startAngle,0)-90)*Math.PI/180,Mt=(T(Mt.endAngle,T(Mt.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(St.angle||0)*Math.PI/180,this.startAngleRad=wt,this.endAngleRad=Mt,this.offset=St.offset||0,Mt=(Mt%mt+mt)%mt,(St=(wt%mt+mt)%mt)>Math.PI&&(St-=mt),Mt>Math.PI&&(Mt-=mt),this.normalizedStartAngleRad=St,this.normalizedEndAngleRad=Mt)}function m(mt){this.isRadial&&(mt.align=void 0,mt.preventDefault())}function _(){if(this.chart&&this.chart.labelCollectors){var mt=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=mt&&this.chart.labelCollectors.splice(mt,1)}}function B(mt){var Ut,St=this.chart,wt=St.inverted,Mt=St.angular,Dt=St.polar,Pt=this.isXAxis,Ft=this.coll,jt=Mt&&Pt;mt=mt.userOptions.pane||0,mt=this.pane=St.pane&&St.pane[mt],"colorAxis"===Ft?this.isRadial=!1:(Mt?(jt?(this.isHidden=!0,this.createLabelCollector=j,this.getOffset=W,this.render=this.redraw=z,this.setTitle=this.setCategories=this.setScale=W):n(this),(Ut=!Pt)&&(this.defaultPolarOptions=yt)):Dt&&(n(this),this.defaultPolarOptions=(Ut=this.horiz)?nt:w("xAxis"===Ft?O.defaultXAxisOptions:O.defaultYAxisOptions,gt),wt&&"yAxis"===Ft&&(this.defaultPolarOptions.stackLabels=O.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),Mt||Dt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&St.labelCollectors.push(this.labelCollector)):this.isRadial=!1,mt&&Ut&&(mt.axis=this),this.isCircular=Ut)}function X(){this.isRadial&&this.beforeSetTickPositions()}function it(mt){var St=this.label;if(St){var wt=this.axis,Mt=St.getBBox(),Dt=wt.options.labels,Pt=(wt.translate(this.pos)+wt.startAngleRad+Math.PI/2)/Math.PI*180%360,Ft=Math.round(Pt),jt=P(Dt.y)?0:.3*-Mt.height,Ut=Dt.y,bt=20,_t=Dt.align,xt="end",ft=0>Ft?Ft+360:Ft,Ct=ft,Ot=0,Rt=0;if(wt.isRadial){var Zt=wt.getPosition(this.pos,wt.center[2]/2+y(T(Dt.distance,-25),wt.center[2]/2,-wt.center[2]/2));"auto"===Dt.rotation?St.attr({rotation:Pt}):P(Ut)||(Ut=wt.chart.renderer.fontMetrics(St.styles&&St.styles.fontSize).b-Mt.height/2),P(_t)||(wt.isCircular?(Mt.width>wt.len*wt.tickInterval/(wt.max-wt.min)&&(bt=0),_t=Pt>bt&&Pt<180-bt?"left":Pt>180+bt&&Pt<360-bt?"right":"center"):_t="center",St.attr({align:_t})),"auto"===_t&&2===wt.tickPositions.length&&wt.isCircular&&(90ft?ft=180-ft:270=ft&&(ft=540-ft),180=Ct&&(Ct=360-Ct),(wt.pane.options.startAngle===Ft||wt.pane.options.startAngle===Ft+360||wt.pane.options.startAngle===Ft-360)&&(xt="start"),_t=-90<=Ft&&90>=Ft||-360<=Ft&&-270>=Ft||270<=Ft&&360>=Ft?"start"===xt?"right":"left":"start"===xt?"left":"right",70Ct&&(_t="center"),15>ft||180<=ft&&195>ft?Ot=.3*Mt.height:15<=ft&&35>=ft?Ot="start"===xt?0:.75*Mt.height:195<=ft&&215>=ft?Ot="start"===xt?.75*Mt.height:0:35=ft?Ot="start"===xt?.25*-Mt.height:Mt.height:215=ft&&(Ot="start"===xt?Mt.height:.25*-Mt.height),15>Ct?Rt="start"===xt?.15*-Mt.height:.15*Mt.height:165=Ct&&(Rt="start"===xt?.15*Mt.height:.15*-Mt.height),St.attr({align:_t}),St.translate(Rt,Ot+jt)),mt.pos.x=Zt.x+(Dt.x||0),mt.pos.y=Zt.y+(Ut||0)}}}function rt(mt){this.axis.getPosition&&k(mt.pos,this.axis.getPosition(this.pos))}function L(mt,St){var wt=this.chart,Mt=this.center;return mt=this.startAngleRad+mt,{x:wt.plotLeft+Mt[0]+Math.cos(mt)*St,y:wt.plotTop+Mt[1]+Math.sin(mt)*St}}function z(){this.isDirty=!1}function et(){if(this.constructor.prototype.setAxisSize.call(this),this.isRadial){this.pane.updateCenter(this);var mt=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var St=this.postTranslate(this.angleRad,mt[3]/2);mt[0]=St.x-this.chart.plotLeft,mt[1]=St.y-this.chart.plotTop}this.len=this.width=this.height=(mt[2]-mt[3])*T(this.sector,1)/2}}function at(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function st(mt){(mt=this.options=w(this.constructor.defaultOptions,this.defaultPolarOptions,$[this.coll],mt)).plotBands||(mt.plotBands=[]),E(this,"afterSetOptions")}function H(mt,St,wt,Mt,Dt,Pt,Ft){var jt=this.axis;return St=jt.isRadial?["M",St,wt,"L",(mt=jt.getPosition(this.pos,jt.center[2]/2+Mt)).x,mt.y]:mt.call(this,St,wt,Mt,Dt,Pt,Ft)}var ot=[],nt={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},yt={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},gt={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};v.compose=function(mt,St){return-1===ot.indexOf(mt)&&(ot.push(mt),V(mt,"afterInit",o),V(mt,"autoLabelAlign",m),V(mt,"destroy",_),V(mt,"init",B),V(mt,"initialAxisTranslation",X)),-1===ot.indexOf(St)&&(ot.push(St),V(St,"afterGetLabelPosition",it),V(St,"afterGetPosition",rt),A(St.prototype,"getMarkPath",H)),mt}}(g||(g={})),g}),q(Y,"Series/PolarComposition.js",[Y["Core/Animation/AnimationUtilities.js"],Y["Core/Globals.js"],Y["Extensions/Pane.js"],Y["Core/Axis/RadialAxis.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$){function W(L,z,et,at){var st=at?1:0,H=0<=z&&z<=L.length-1?z:0>z?L.length-1+z:0,ot=L[z=0>H-1?L.length-(1+st):H-1];st=L[H+1>L.length-1?st:H+1];var nt=ot.plotY,yt=st.plotX,gt=st.plotY;st=L[H].plotX,H=L[H].plotY,ot=(1.5*st+ot.plotX)/2.5,nt=(1.5*H+nt)/2.5,yt=(1.5*st+yt)/2.5;var mt=(1.5*H+gt)/2.5;gt=Math.sqrt(Math.pow(ot-st,2)+Math.pow(nt-H,2));var St=Math.sqrt(Math.pow(yt-st,2)+Math.pow(mt-H,2));return ot=Math.atan2(nt-H,ot-st),mt=Math.PI/2+(ot+Math.atan2(mt-H,yt-st))/2,Math.abs(ot-mt)>Math.PI/2&&(mt-=Math.PI),ot=st+Math.cos(mt)*gt,nt=H+Math.sin(mt)*gt,st={rightContX:yt=st+Math.cos(Math.PI+mt)*St,rightContY:mt=H+Math.sin(Math.PI+mt)*St,leftContX:ot,leftContY:nt,plotX:st,plotY:H},et&&(st.prevPointCont=W(L,z,!1,at)),st}function V(){(this.pane||[]).forEach(function(L){L.render()})}function R(L){var z=L.args[0].xAxis,et=L.args[0].yAxis;L=L.args[0].chart,z&&et&&("polygon"===et.gridLineInterpolation?(z.startOnTick=!0,z.endOnTick=!0):"polygon"===z.gridLineInterpolation&&L.inverted&&(et.startOnTick=!0,et.endOnTick=!0))}function P(){var L=this;this.pane||(this.pane=[]),this.options.pane=_(this.options.pane),this.options.pane.forEach(function(z){new G(z,L)},this)}function k(L){var z=L.args.marker,et=this.chart.xAxis[0],at=this.chart.yAxis[0],st=this.chart.inverted,H=st?at:et;if(et=st?et:at,this.chart.polar){L.preventDefault(),at=(z.attr?z.attr("start"):z.start)-H.startAngleRad,st=z.attr?z.attr("r"):z.r;var ot=(z.attr?z.attr("end"):z.end)-H.startAngleRad;z=z.attr?z.attr("innerR"):z.innerR,L.result.x=at+H.pos,L.result.width=ot-at,L.result.y=et.len+et.pos-z,L.result.height=z-st}}function E(L){var z=this.chart;if(z.polar&&z.hoverPane&&z.hoverPane.axis){L.preventDefault();var et=z.hoverPane.center,at=this.mouseDownX||0,st=this.mouseDownY||0,H=L.args.chartY,ot=L.args.chartX,nt=2*Math.PI,yt=z.hoverPane.axis.startAngleRad,gt=z.hoverPane.axis.endAngleRad,mt=z.inverted?z.xAxis[0]:z.yAxis[0],St={},wt="arc";if(St.x=et[0]+z.plotLeft,St.y=et[1]+z.plotTop,this.zoomHor){var Mt=0=Dt&&(Dt+=nt),0>=Pt&&(Pt+=nt),Ptgt+(nt-Mt)/2&&(Pt=Dt,Dt=0>=yt?yt:0),nt=St.start=Math.max(Dt+yt,yt),Dt=St.end=Math.min(Pt+yt,gt),"polygon"===mt.options.gridLineInterpolation&&(Mt=nt-(Pt=z.hoverPane.axis).startAngleRad+Pt.pos,Dt-=nt,wt=mt.getPlotLinePath({value:mt.max}),nt=Pt.toValue(Mt),Mt=Pt.toValue(Mt+Dt),ntet[2]/2&&(H=et[2]/2),atthis.xAxis.max?(z[et].isNull=!0,z[et].plotY=NaN):z[et].isNull=z[et].isValid&&!z[et].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(u(this,"afterRender",function(){if(L.polar){var at=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:at[0],y:at[1],r:at[2]/2,innerR:at[3]/2});else{var st=L.renderer,H=at[0],ot=at[1],nt=at[2]/2,yt=at[3]/2;at=B();var gt=st.createElement("clipPath").attr({id:at}).add(st.defs);(st=yt?st.arc(H,ot,nt,yt,0,2*Math.PI).add(gt):st.circle(H,ot,nt).add(gt)).id=at,st.clipPath=gt,this.clipCircle=st}this.group.clip(this.clipCircle),this.setClip=U.noop}})))}}function y(L){var z=this.chart,et=this.xAxis;return et=et.pane&&et.pane.center,this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(L.chartX-(et&&et[0]||0)-z.plotLeft,L.chartY-(et&&et[1]||0)-z.plotTop)})}function A(L,z,et,at){var st=at.tickInterval;at=at.tickPositions;var H=n(at,function(nt){return nt>=et}),ot=n(b([],at,!0).reverse(),function(nt){return nt<=z});return a(H)||(H=at[at.length-1]),a(ot)||(ot=at[0],H+=st,L[0][0]="L",L.unshift(L[L.length-3])),(L=L.slice(at.indexOf(ot),at.indexOf(H)+1))[0][0]="M",L}function g(L,z){return n(this.pane||[],function(et){return et.options.id===z})||L.call(this,z)}function v(L,z,et,at,st,H){var ot=this.chart,nt=m(at.inside,!!this.options.stacking);ot.polar?(L=z.rectPlotX/Math.PI*180,ot.inverted?(this.forceDL=ot.isInsidePlot(z.plotX,z.plotY),nt&&z.shapeArgs?(st=z.shapeArgs,st={x:(st=this.yAxis.postTranslate(((st.start||0)+(st.end||0))/2-this.xAxis.startAngleRad,z.barX+z.pointWidth/2)).x-ot.plotLeft,y:st.y-ot.plotTop}):z.tooltipPos&&(st={x:z.tooltipPos[0],y:z.tooltipPos[1]}),at.align=m(at.align,"center"),at.verticalAlign=m(at.verticalAlign,"middle")):(null===at.align&&(at.align=20L?"left":200L?"right":"center"),null===at.verticalAlign&&(at.verticalAlign=45>L||315L?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,z,et,at,st,H),this.isRadialBar&&z.shapeArgs&&z.shapeArgs.start===z.shapeArgs.end?et.hide():et.show()):L.call(this,z,et,at,st,H)}function S(L){var z=this.options,et=z.stacking,at=this.chart,st=this.xAxis,H=this.yAxis,ot=H.reversed,nt=H.center,yt=st.startAngleRad,gt=st.endAngleRad-yt,mt=0,St=0,wt=0;if(this.preventPostTranslate=!0,L.call(this),st.isRadial){st=(L=this.points).length;var Mt=H.translate(H.min),Dt=H.translate(H.max);for(z=z.threshold||0,at.inverted&&o(z)&&(mt=H.translate(z),a(mt)&&(0>mt?mt=0:mt>gt&&(mt=gt),this.translatedThreshold=mt+yt));st--;){var Pt=(z=L[st]).barX,Ft=z.x,jt=z.y;z.shapeType="arc",at.inverted?(z.plotY=H.translate(jt),et&&H.stacking?(jt=H.stacking.stacks[(0>jt?"-":"")+this.stackKey],this.visible&&jt&&jt[Ft]&&!z.isNull&&(wt=jt[Ft].points[this.getStackIndicator(void 0,Ft,this.index).key],St=H.translate(wt[0]),wt=H.translate(wt[1]),a(St)&&(St=$.clamp(St,0,gt)))):(St=mt,wt=z.plotY),St>wt&&(wt=[St,St=wt][0]),ot?wt>Mt?wt=Mt:StMt||wtDt?wt=Dt:(wtDt)&&(St=wt=0),H.min>H.max&&(St=wt=ot?gt:0),St+=yt,wt+=yt,nt&&(z.barX=Pt+=nt[3]/2),Ft=Math.max(Pt,0),jt=Math.max(Pt+z.pointWidth,0),z.shapeArgs={x:nt&&nt[0],y:nt&&nt[1],r:jt,innerR:Ft,start:St,end:wt},z.opacity=St===wt?0:void 0,z.plotY=(a(this.translatedThreshold)&&(Stnt[1])}}}function N(L,z){var et=this;if(this.chart.polar){z=z||this.points;for(var at=0;at"u"&&et.polar.toXY(ot)})}return st=L.apply(this,[].slice.call(arguments,1)),H&&z.pop(),st}function j(L,z){var et=this.chart,at={xAxis:[],yAxis:[]};return et.polar?et.axes.forEach(function(st){if("colorAxis"!==st.coll){var H=st.isXAxis,ot=st.center,nt=z.chartX-ot[0]-et.plotLeft;ot=z.chartY-ot[1]-et.plotTop,at[H?"xAxis":"yAxis"].push({axis:st,value:st.translate(H?Math.PI-Math.atan2(nt,ot):Math.sqrt(Math.pow(nt,2)+Math.pow(ot,2)),!0)})}}):at=L.call(this,z),at}function M(L,z){this.chart.polar||L.call(this,z)}function D(L,z){var mt,St,wt,Mt,et=this,at=this.chart,st=this.group,H=this.markerGroup,ot=this.xAxis&&this.xAxis.center,nt=at.plotLeft,yt=at.plotTop,gt=this.options.animation;if(at.polar){if(et.isRadialBar)z||(et.startAngleRad=m(et.translatedThreshold,et.xAxis.startAngleRad),U.seriesTypes.pie.prototype.animate.call(et,z));else if(at.renderer.isSVG)if(gt=d(gt),et.is("column")){if(!z){var Dt=ot[3]/2;et.points.forEach(function(Pt){mt=Pt.graphic,wt=(St=Pt.shapeArgs)&&St.r,Mt=St&&St.innerR,mt&&St&&(mt.attr({r:Dt,innerR:Dt}),mt.animate({r:wt,innerR:Mt},et.options.animation))})}}else z?(L={translateX:ot[0]+nt,translateY:ot[1]+yt,scaleX:.001,scaleY:.001},st.attr(L),H&&H.attr(L)):(L={translateX:nt,translateY:yt,scaleX:1,scaleY:1},st.animate(L,gt),H&&H.animate(L,gt))}else L.call(this,z)}function I(L,z,et,at){return this.chart.polar?at?(z=(L=W(z,at,!0,this.connectEnds)).prevPointCont&&L.prevPointCont.rightContX,et=L.prevPointCont&&L.prevPointCont.rightContY,L=["C",o(z)?z:L.plotX,o(et)?et:L.plotY,o(L.leftContX)?L.leftContX:L.plotX,o(L.leftContY)?L.leftContY:L.plotY,L.plotX,L.plotY]):L=["M",et.plotX,et.plotY]:L=L.call(this,z,et,at),L}var b=this&&this.__spreadArray||function(L,z,et){if(et||2===arguments.length)for(var H,at=0,st=z.length;atet&&(et=yt),0>z&&(z=yt)),{x:ot[0],y:ot[1],r:et,innerR:z,start:at,end:st}},L.prototype.toXY=function(z){var et=this.series,at=et.chart,st=et.xAxis,H=et.yAxis,ot=z.plotX,nt=at.inverted,yt=z.y,gt=z.plotY,mt=nt?ot:H.len-gt;nt&&et&&!et.isRadialBar&&(z.plotY=gt=o(yt)?H.translate(yt):0),z.rectPlotX=ot,z.rectPlotY=gt,H.center&&(mt+=H.center[3]/2),o(gt)&&(H=nt?H.postTranslate(gt,mt):st.postTranslate(ot,mt),z.plotX=z.polarPlotX=H.x-at.plotLeft,z.plotY=z.polarPlotY=H.y-at.plotTop),et.kdByAngle?(0>(et=(ot/Math.PI*180+st.pane.options.startAngle)%360)&&(et+=360),z.clientX=et):z.clientX=z.plotX},L}();return rt}),q(Y,"masters/highcharts-more.src.js",[Y["Core/Globals.js"],Y["Core/Series/SeriesRegistry.js"],Y["Series/Bubble/BubbleSeries.js"],Y["Series/PackedBubble/PackedBubbleSeries.js"],Y["Series/PolarComposition.js"]],function(O,U,G,Z,$){G.compose(O.Axis,O.Chart,O.Legend,O.Series),Z.compose(O.Axis,O.Chart,O.Legend,O.Series),$.compose(O.Axis,O.Chart,O.Pointer,O.Series,O.Tick,U.seriesTypes.areasplinerange,U.seriesTypes.column,U.seriesTypes.line,U.seriesTypes.spline)})},Jt.exports?(Y.default=Y,Jt.exports=Y):(pt=[ht(3470)],void 0!==(t=function(q){return Y(q),Y.Highcharts=q,Y}.apply($t,pt))&&(Jt.exports=t))},3470:function(Jt,$t,ht){var pt,t,Y;t=typeof window<"u"?window:this,Y=function(t){function Y(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}var q={};return Y(q,"Core/Globals.js",[],function(){var O,U;return(U=O||(O={})).SVG_NS="http://www.w3.org/2000/svg",U.product="Highcharts",U.version="10.3.3",U.win=typeof t<"u"?t:{},U.doc=U.win.document,U.svg=U.doc&&U.doc.createElementNS&&!!U.doc.createElementNS(U.SVG_NS,"svg").createSVGRect,U.userAgent=U.win.navigator&&U.win.navigator.userAgent||"",U.isChrome=-1!==U.userAgent.indexOf("Chrome"),U.isFirefox=-1!==U.userAgent.indexOf("Firefox"),U.isMS=/(edge|msie|trident)/i.test(U.userAgent)&&!U.win.opera,U.isSafari=!U.isChrome&&-1!==U.userAgent.indexOf("Safari"),U.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(U.userAgent),U.isWebKit=-1!==U.userAgent.indexOf("AppleWebKit"),U.deg2rad=2*Math.PI/360,U.hasBidiBug=U.isFirefox&&4>parseInt(U.userAgent.split("Firefox/")[1],10),U.hasTouch=!!U.win.TouchEvent,U.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],U.noop=function(){},U.supportsPassiveEvents=function(){var G=!1;if(!U.isMS){var Z=Object.defineProperty({},"passive",{get:function(){G=!0}});U.win.addEventListener&&U.win.removeEventListener&&(U.win.addEventListener("testPassive",U.noop,Z),U.win.removeEventListener("testPassive",U.noop,Z))}return G}(),U.charts=[],U.dateFormats={},U.seriesTypes={},U.symbolSizes={},U.chartCount=0,O}),Y(q,"Core/Utilities.js",[q["Core/Globals.js"]],function(O){function U(n,o,m,_){var B=o?"Highcharts error":"Highcharts warning";32===n&&(n=B+": Deprecated member");var X=k(n),it=X?B+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if(typeof _<"u"){var rt="";X&&(it+="?"),N(_,function(L,z){rt+="\n - ".concat(z,": ").concat(L),X&&(it+=encodeURI(z)+"="+encodeURI(L))}),it+=rt}M(O,"displayError",{chart:m,code:n,message:it,params:_},function(){if(o)throw Error(it);b.console&&-1===U.messages.indexOf(it)&&console.warn(it)}),U.messages.push(it)}function Z(n,o){return parseInt(n,o||10)}function $(n){return"string"==typeof n}function W(n){return"[object Array]"===(n=Object.prototype.toString.call(n))||"[object Array Iterator]"===n}function V(n,o){return!(!n||"object"!=typeof n||o&&W(n))}function R(n){return V(n)&&"number"==typeof n.nodeType}function P(n){var o=n&&n.constructor;return!(!V(n,!0)||R(n)||!o||!o.name||"Object"===o.name)}function k(n){return"number"==typeof n&&!isNaN(n)&&1/0>n&&-1/0m&&(m=n[o]);return m},arrayMin:function(n){for(var o=n.length,m=n[0];o--;)n[o]o?n"u"||"__proto__"===m||!E(o=o[m])||"function"==typeof o||"number"==typeof o.nodeType||o===b)return}return o},getStyle:function S(n,o,m){var _=O.getStyle||S;if("width"===o)return o=Math.min(n.offsetWidth,n.scrollWidth),(m=n.getBoundingClientRect&&n.getBoundingClientRect().width)=o-1&&(o=Math.floor(m)),Math.max(0,o-(_(n,"padding-left",!0)||0)-(_(n,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(_(n,"padding-top",!0)||0)-(_(n,"padding-bottom",!0)||0));if(b.getComputedStyle||U(27,!0),n=b.getComputedStyle(n,void 0)){var B=n.getPropertyValue(o);y(m,"opacity"!==o)&&(B=Z(B))}return B},inArray:function(n,o,m){return U(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),o.indexOf(n,m)},isArray:W,isClass:P,isDOMElement:R,isFunction:function(n){return"function"==typeof n},isNumber:k,isObject:V,isString:$,keys:function(n){return U(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(n)},merge:function(){var n,o=arguments,m={},_=function(X,it){return"object"!=typeof X&&(X={}),N(it,function(rt,L){"__proto__"!==L&&"constructor"!==L&&(!V(rt,!0)||P(rt)||R(rt)?X[L]=it[L]:X[L]=_(X[L]||{},rt))}),X};!0===o[0]&&(m=o[1],o=Array.prototype.slice.call(o,2));var B=o.length;for(n=0;n=m&&(o=[1/m]))),_=0;_=n||!B&&it<=(o[_]+(o[_+1]||o[_]))/2));_++);return v(X*m,-Math.round(Math.log(.001)/Math.LN10))},objectEach:N,offset:function(n){var o=I.documentElement;return{top:(n=n.parentElement||n.parentNode?n.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(b.pageYOffset||o.scrollTop)-(o.clientTop||0),left:n.left+(b.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:n.width,height:n.height}},pad:function(n,o,m){return Array((o||2)+1-String(n).replace("-","").length).join(m||"0")+n},pick:y,pInt:Z,relativeLength:function(n,o,m){return/%$/.test(n)?o*parseFloat(n)/100+(m||0):parseFloat(n)},removeEvent:j,splat:function(n){return W(n)?n:[n]},stableSort:function(n,o){var _,B,m=n.length;for(B=0;B>16,(65280&k)>>8,255&k,1]:4===P&&(R=[(3840&k)>>4|(3840&k)>>8,(240&k)>>4|240&k,(15&k)<<4|15&k,1])}if(!R)for(k=W.parsers.length;k--&&!R;){var E=W.parsers[k];(P=E.regex.exec(V))&&(R=E.parse(P))}}R&&(this.rgba=R)},W.prototype.get=function(V){var R=this.input,P=this.rgba;if("object"==typeof R&&typeof this.stops<"u"){var k=Z(R);return k.stops=[].slice.call(k.stops),this.stops.forEach(function(E,w){k.stops[w]=[k.stops[w][0],E.get(V)]}),k}return P&&G(P[0])?"rgb"===V||!V&&1===P[3]?"rgb("+P[0]+","+P[1]+","+P[2]+")":"a"===V?"".concat(P[3]):"rgba("+P.join(",")+")":R},W.prototype.brighten=function(V){var R=this.rgba;if(this.stops)this.stops.forEach(function(k){k.brighten(V)});else if(G(V)&&0!==V)for(var P=0;3>P;P++)R[P]+=$(255*V),0>R[P]&&(R[P]=0),255D?"AM":"PM",P:12>D?"am":"pm",S:k(M.getSeconds()),L:k(Math.floor(S%1e3),3)},O.dateFormats),P(M,function(m,_){for(;-1!==v.indexOf("%"+_);)v=v.replace("%"+_,"function"==typeof m?m.call(j,S):m)}),N?v.substr(0,1).toUpperCase()+v.substr(1):v},g.prototype.resolveDTLFormat=function(v){return V(v,!0)?v:{main:(v=w(v))[0],from:v[1],to:v[2]}},g.prototype.getTimeTicks=function(v,S,N,j){var a,M=this,D=[],I={},b=new M.Date(S),d=v.unitRange,u=v.count||1;if(j=E(j,1),Z(S)){if(M.set("Milliseconds",b,d>=T.second?0:u*Math.floor(M.get("Milliseconds",b)/u)),d>=T.second&&M.set("Seconds",b,d>=T.minute?0:u*Math.floor(M.get("Seconds",b)/u)),d>=T.minute&&M.set("Minutes",b,d>=T.hour?0:u*Math.floor(M.get("Minutes",b)/u)),d>=T.hour&&M.set("Hours",b,d>=T.day?0:u*Math.floor(M.get("Hours",b)/u)),d>=T.day&&M.set("Date",b,d>=T.month?1:Math.max(1,u*Math.floor(M.get("Date",b)/u))),d>=T.month){M.set("Month",b,d>=T.year?0:u*Math.floor(M.get("Month",b)/u));var n=M.get("FullYear",b)}d>=T.year&&M.set("FullYear",b,n-n%u),d===T.week&&(n=M.get("Day",b),M.set("Date",b,M.get("Date",b)-n+j+(n4*T.month||M.getTimezoneOffset(S)!==M.getTimezoneOffset(N)),S=b.getTime(),b=1;SD.length&&D.forEach(function(_){_%18e5==0&&"000000000"===M.dateFormat("%H%M%S%L",_)&&(I[_]="day")})}return D.info=W(v,{higherRanks:I,totalRange:d*u}),D},g.prototype.getDateFormat=function(v,S,N,j){var M=this.dateFormat("%m-%d %H:%M:%S.%L",S),D={millisecond:15,second:12,minute:9,hour:6,day:3},I="millisecond";for(b in T){if(v===T.week&&+this.dateFormat("%w",S)===N&&"00:00:00.000"===M.substr(6)){var b="week";break}if(T[b]>v){b=I;break}if(D[b]&&M.substr(D[b])!=="01-01 00:00:00.000".substr(D[b]))break;"week"!==b&&(I=b)}return this.resolveDTLFormat(j[b]).main},g}(),U}),Y(q,"Core/Defaults.js",[q["Core/Chart/ChartDefaults.js"],q["Core/Color/Color.js"],q["Core/Globals.js"],q["Core/Color/Palettes.js"],q["Core/Time.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W){U=U.parse;var V=W.merge,R={colors:Z.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:O,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:G.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:G.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:U("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};R.chart.styledMode=!1;var P=new $(V(R.global,R.time));return O={defaultOptions:R,defaultTime:P,getOptions:function(){return R},setOptions:function(k){return V(!0,R,k),(k.time||k.global)&&(G.time?G.time.update(V(R.global,R.time,k.global,k.time)):G.time=P),R}}}),Y(q,"Core/Animation/Fx.js",[q["Core/Color/Color.js"],q["Core/Globals.js"],q["Core/Utilities.js"]],function(O,U,G){var Z=O.parse,$=U.win,W=G.isNumber,V=G.objectEach;return function(){function R(P,k,E){this.pos=NaN,this.options=k,this.elem=P,this.prop=E}return R.prototype.dSetter=function(){var P=this.paths,k=P&&P[0];P=P&&P[1];var E=this.now||0,w=[];if(1!==E&&k&&P)if(k.length===P.length&&1>E)for(var T=0;T=y+this.startTime){this.now=this.end,this.pos=1,this.update();var g=A[this.prop]=!0;V(A,function(v){!0!==v&&(g=!1)}),g&&T&&T.call(w),P=!1}else this.pos=E.easing((k-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),P=!0;return P},R.prototype.initPath=function(P,k,E){function w(M,D){for(;M.length"u"&&(k=[])}if(k.length&&W(S)){var j=E.length+S*v;N?(w(k,E),T(E,k)):(w(E,k),T(k,E))}return[k,E]},R.prototype.fillSetter=function(){R.prototype.strokeSetter.apply(this,arguments)},R.prototype.strokeSetter=function(){this.elem.attr(this.prop,Z(this.start).tweenTo(Z(this.end),this.pos),void 0,!0)},R.timers=[],R}()}),Y(q,"Core/Animation/AnimationUtilities.js",[q["Core/Animation/Fx.js"],q["Core/Utilities.js"]],function(O,U){function G(T){return P(T)?k({duration:500,defer:0},T):{duration:T?500:0,defer:0}}function Z(T,y){for(var A=O.timers.length;A--;)O.timers[A].elem!==T||y&&y!==O.timers[A].prop||(O.timers[A].stopped=!0)}var $=U.defined,W=U.getStyle,V=U.isArray,R=U.isNumber,P=U.isObject,k=U.merge,E=U.objectEach,w=U.pick;return{animate:function(T,y,A){var g,S,N,v="";if(!P(A)){var j=arguments;A={duration:j[2],easing:j[3],complete:j[4]}}R(A.duration)||(A.duration=400),A.easing="function"==typeof A.easing?A.easing:Math[A.easing]||Math.easeInOutSine,A.curAnim=k(y),E(y,function(M,D){Z(T,D),N=new O(T,A,D),S=void 0,"d"===D&&V(y.d)?(N.paths=N.initPath(T,T.pathArray,y.d),N.toD=y.d,g=0,S=1):T.attr?g=T.attr(D):(g=parseFloat(W(T,D))||0,"opacity"!==D&&(v="px")),S||(S=M),"string"==typeof S&&S.match("px")&&(S=S.replace(/px/g,"")),N.run(g,S,v)})},animObject:G,getDeferredAnimation:function(T,y,A){var g=G(y),v=0,S=0;return(A?[A]:T.series).forEach(function(N){N=G(N.options.animation),v=y&&$(y.defer)?g.defer:Math.max(v,N.duration+N.defer),S=Math.min(g.duration,N.duration)}),T.renderer.forExport&&(v=0),{defer:Math.max(0,v-S),duration:Math.min(v,S)}},setAnimation:function(T,y){y.renderer.globalAnimation=w(T,y.options.chart.animation,!0)},stop:Z}}),Y(q,"Core/Renderer/HTML/AST.js",[q["Core/Globals.js"],q["Core/Utilities.js"]],function(O,U){var G=O.SVG_NS,Z=U.attr,$=U.createElement,W=U.css,V=U.error,R=U.isFunction,P=U.isString,k=U.objectEach,E=U.splat,w=(U=O.win.trustedTypes)&&R(U.createPolicy)&&U.createPolicy("highcharts",{createHTML:function(A){return A}}),T=w?w.createHTML(""):"";try{var y=!!(new DOMParser).parseFromString(T,"text/html")}catch{y=!1}return R=function(){function A(g){this.nodes="string"==typeof g?this.parseMarkup(g):g}return A.filterUserAttributes=function(g){return k(g,function(v,S){var N=!0;-1===A.allowedAttributes.indexOf(S)&&(N=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(S)&&(N=P(v)&&A.allowedReferences.some(function(j){return 0===v.indexOf(j)})),N||(V(33,!1,void 0,{"Invalid attribute in config":"".concat(S)}),delete g[S]),P(v)&&g[S]&&(g[S]=v.replace(/g[1]){var S=E+ +g[1];0<=S?(g[0]=(+g[0]).toExponential(S).split("e")[0],E=S):(g[0]=g[0].split(".")[0]||0,k=20>E?(g[0]*Math.pow(10,g[1])).toFixed(E):0,g[1]=0)}}else E=2;S=(Math.abs(g[1]?g[0]:k)+Math.pow(10,-Math.max(E,A)-1)).toFixed(E);var N=3<(A=String(P(S))).length?A.length%3:0;return w=R(w,y.decimalPoint),T=R(T,y.thousandsSep),k=(0>k?"-":"")+(N?A.substr(0,N)+T:""),k=0>+g[1]&&!v?"0":k+A.substr(N).replace(/(\d{3})(?=\d)/g,"$1"+T),E&&(k+=w+S.slice(-E)),g[1]&&0!=+k&&(k+="e"+g[1]),k}var Z=O.defaultOptions,$=O.defaultTime,W=U.getNestedProperty,V=U.isNumber,R=U.pick,P=U.pInt;return{dateFormat:function(k,E,w){return $.dateFormat(k,E,w)},format:function(k,E,w){var T="{",y=!1,A=/f$/,g=/\.([0-9])/,v=Z.lang,S=w&&w.time||$;w=w&&w.numberFormatter||G;for(var N=[];k;){var j=k.indexOf(T);if(-1===j)break;var M=k.slice(0,j);if(y){if(M=M.split(":"),T=W(M.shift()||"",E),M.length&&"number"==typeof T)if(M=M.join(":"),A.test(M)){var D=parseInt((M.match(g)||["","-1"])[1],10);null!==T&&(T=w(T,D,v.decimalPoint,-1w){for(Z(R,T),S=A=0;S<=w;)S+=R[A].size,A++;v=R.splice(A-1,R.length)}for(Z(R,y),R=R.map(function(N){return{size:N.size,targets:[N.target],align:G(N.align,.5)}});g;){for(A=R.length;A--;)w=R[A],T=(Math.min.apply(0,w.targets)+Math.max.apply(0,w.targets))/2,w.pos=U(T-w.size*w.align,0,P-w.size);for(A=R.length,g=!1;A--;)0R[A].pos&&(R[A-1].size+=R[A].size,R[A-1].targets=R[A-1].targets.concat(R[A].targets),R[A-1].align=.5,R[A-1].pos+R[A-1].size>P&&(R[A-1].pos=P-R[A-1].size),R.splice(A,1),g=!0)}return E.push.apply(E,v),A=0,R.some(function(N){var j=0;return(N.targets||[]).some(function(){return E[A].pos=N.pos+j,typeof k<"u"&&Math.abs(E[A].pos-E[A].target)>k?(E.slice(0,A+1).forEach(function(M){return delete M.pos}),E.reducedLen=(E.reducedLen||P)-.1*P,E.reducedLen>.1*P&&V(E,P,k),!0):(j+=E[A].size,A++,!1)})}),Z(E,y),E},$}),Y(q,"Core/Renderer/SVG/SVGElement.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Color/Color.js"],q["Core/Globals.js"],q["Core/Utilities.js"]],function(O,U,G,Z){var $=O.animate,W=O.animObject,V=O.stop,R=G.deg2rad,P=G.doc,k=G.svg,E=G.SVG_NS,w=G.win,T=Z.addEvent,y=Z.attr,A=Z.createElement,g=Z.css,v=Z.defined,S=Z.erase,N=Z.extend,j=Z.fireEvent,M=Z.isArray,D=Z.isFunction,I=Z.isString,b=Z.merge,d=Z.objectEach,u=Z.pick,a=Z.pInt,n=Z.syncTimeout,o=Z.uniqueKey;return O=function(){function m(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=E,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return m.prototype._defaultGetter=function(_){return _=u(this[_+"Value"],this[_],this.element?this.element.getAttribute(_):null,0),/^[\-0-9\.]+$/.test(_)&&(_=parseFloat(_)),_},m.prototype._defaultSetter=function(_,B,X){X.setAttribute(B,_)},m.prototype.add=function(_){var B=this.renderer,X=this.element;if(_&&(this.parentGroup=_),typeof this.textStr<"u"&&"text"===this.element.nodeName&&B.buildText(this),this.added=!0,!_||_.handleZ||this.zIndex)var it=this.zIndexSetter();return it||(_?_.element:B.box).appendChild(X),this.onAdd&&this.onAdd(),this},m.prototype.addClass=function(_,B){var X=B?"":this.attr("class")||"";return(_=(_||"").split(/ /g).reduce(function(it,rt){return-1===X.indexOf(rt)&&it.push(rt),it},X?[X]:[]).join(" "))!==X&&this.attr("class",_),this},m.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},m.prototype.align=function(_,B,X){var z,et,at,it={},rt=this.renderer,L=rt.alignedObjects;_?(this.alignOptions=_,this.alignByTranslate=B,(!X||I(X))&&(this.alignTo=z=X||"renderer",S(L,this),L.push(this),X=void 0)):(_=this.alignOptions,B=this.alignByTranslate,z=this.alignTo),X=u(X,rt[z],"scrollablePlotBox"===z?rt.plotBox:void 0,rt),z=_.align;var st=_.verticalAlign;return rt=(X.x||0)+(_.x||0),L=(X.y||0)+(_.y||0),"right"===z?et=1:"center"===z&&(et=2),et&&(rt+=(X.width-(_.width||0))/et),it[B?"translateX":"x"]=Math.round(rt),"bottom"===st?at=1:"middle"===st&&(at=2),at&&(L+=(X.height-(_.height||0))/at),it[B?"translateY":"y"]=Math.round(L),this[this.placed?"animate":"attr"](it),this.placed=!0,this.alignAttr=it,this},m.prototype.alignSetter=function(_){var B={left:"start",center:"middle",right:"end"};B[_]&&(this.alignValue=_,this.element.setAttribute("text-anchor",B[_]))},m.prototype.animate=function(_,B,X){var it=this,rt=W(u(B,this.renderer.globalAnimation,!0));return B=rt.defer,u(P.hidden,P.msHidden,P.webkitHidden,!1)&&(rt.duration=0),0!==rt.duration?(X&&(rt.complete=X),n(function(){it.element&&$(it,_,rt)},B)):(this.attr(_,void 0,X||rt.complete),d(_,function(L,z){rt.step&&rt.step.call(this,L,{prop:z,pos:1,elem:this})},this)),this},m.prototype.applyTextOutline=function(_){var B=this.element;-1!==_.indexOf("contrast")&&(_=_.replace(/contrast/g,this.renderer.getContrast(B.style.fill)));var X=_.split(" ");if(_=X[X.length-1],(X=X[0])&&"none"!==X&&G.svg){this.fakeTS=!0,X=X.replace(/(^[\d\.]+)(.*?)$/g,function(L,z,et){return 2*Number(z)+et}),this.removeTextOutline();var it=P.createElementNS(E,"tspan");y(it,{class:"highcharts-text-outline",fill:_,stroke:_,"stroke-width":X,"stroke-linejoin":"round"}),_=B.querySelector("textPath")||B,[].forEach.call(_.childNodes,function(L){var z=L.cloneNode(!0);z.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(et){return z.removeAttribute(et)}),it.appendChild(z)});var rt=0;[].forEach.call(_.querySelectorAll("text tspan"),function(L){rt+=Number(L.getAttribute("dy"))}),(X=P.createElementNS(E,"tspan")).textContent="\u200b",y(X,{x:Number(B.getAttribute("x")),dy:-rt}),it.appendChild(X),_.insertBefore(it,_.firstChild)}},m.prototype.attr=function(_,B,X,it){var z,at,st,rt=this.element,L=this.symbolCustomAttribs,et=this;if("string"==typeof _&&typeof B<"u"){var H=_;(_={})[H]=B}return"string"==typeof _?et=(this[_+"Getter"]||this._defaultGetter).call(this,_,rt):(d(_,function(ot,nt){at=!1,it||V(this,nt),this.symbolName&&-1!==L.indexOf(nt)&&(z||(this.symbolAttr(_),z=!0),at=!0),!this.rotation||"x"!==nt&&"y"!==nt||(this.doTransform=!0),at||((st=this[nt+"Setter"]||this._defaultSetter).call(this,ot,nt,rt),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(nt)&&this.updateShadows(nt,ot,st))},this),this.afterSetters()),X&&X.call(this),et},m.prototype.clip=function(_){return this.attr("clip-path",_?"url("+this.renderer.url+"#"+_.id+")":"none")},m.prototype.crisp=function(_,B){B=B||_.strokeWidth||0;var X=Math.round(B)%2/2;return _.x=Math.floor(_.x||this.x||0)+X,_.y=Math.floor(_.y||this.y||0)+X,_.width=Math.floor((_.width||this.width||0)-2*X),_.height=Math.floor((_.height||this.height||0)-2*X),v(_.strokeWidth)&&(_.strokeWidth=B),_},m.prototype.complexColor=function(_,B,X){var rt,L,z,et,at,st,H,ot,nt,yt,mt,it=this.renderer,gt=[];j(this.renderer,"complexColor",{args:arguments},function(){if(_.radialGradient?L="radialGradient":_.linearGradient&&(L="linearGradient"),L){if(z=_[L],at=it.gradients,st=_.stops,nt=X.radialReference,M(z)&&(_[L]=z={x1:z[0],y1:z[1],x2:z[2],y2:z[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===L&&nt&&!v(z.gradientUnits)&&(et=z,z=b(z,it.getRadialAttr(nt,et),{gradientUnits:"userSpaceOnUse"})),d(z,function(wt,Mt){"id"!==Mt&>.push(Mt,wt)}),d(st,function(wt){gt.push(wt)}),gt=gt.join(","),at[gt])yt=at[gt].attr("id");else{z.id=yt=o();var St=at[gt]=it.createElement(L).attr(z).add(it.defs);St.radAttr=et,St.stops=[],st.forEach(function(wt){0===wt[1].indexOf("rgba")?(rt=U.parse(wt[1]),H=rt.get("rgb"),ot=rt.get("a")):(H=wt[1],ot=1),wt=it.createElement("stop").attr({offset:wt[0],"stop-color":H,"stop-opacity":ot}).add(St),St.stops.push(wt)})}mt="url("+it.url+"#"+yt+")",X.setAttribute(B,mt),X.gradient=gt,_.toString=function(){return mt}}})},m.prototype.css=function(_){var B=this.styles,X={},it=this.element,rt=!B;if(_.color&&(_.fill=_.color),B&&d(_,function(et,at){B&&B[at]!==et&&(X[at]=et,rt=!0)}),rt){if(B&&(_=N(B,X)),null===_.width||"auto"===_.width)delete this.textWidth;else if("text"===it.nodeName.toLowerCase()&&_.width)var L=this.textWidth=a(_.width);this.styles=_,L&&!k&&this.renderer.forExport&&delete _.width;var z=b(_);it.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(et){return z&&delete z[et]}),g(it,z),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),_.textOutline&&this.applyTextOutline(_.textOutline))}return this},m.prototype.dashstyleSetter=function(_){var B=this["stroke-width"];if("inherit"===B&&(B=1),_=_&&_.toLowerCase()){var X=_.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(_=X.length;_--;)X[_]=""+a(X[_])*u(B,NaN);_=X.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",_)}},m.prototype.destroy=function(){var _=this,B=_.element||{},X=_.renderer,it=B.ownerSVGElement,rt=X.isSVG&&"SPAN"===B.nodeName&&_.parentGroup||void 0;if(B.onclick=B.onmouseout=B.onmouseover=B.onmousemove=B.point=null,V(_),_.clipPath&&it){var L=_.clipPath;[].forEach.call(it.querySelectorAll("[clip-path],[CLIP-PATH]"),function(z){-1ot.width)&&(ot={x:0,y:0,width:0,height:0})}else ot=this.htmlGetBBox();if(rt.isSVG&&(rt=ot.width,_=ot.height,st&&(ot.height=_={"11px,17":14,"13px,20":16}[""+(H||"")+",".concat(Math.round(_))]||_),B)){st=Number(it.getAttribute("y")||0)-ot.y,X={right:1,center:.5}[X||0]||0,L=B*R,H=(B-90)*R;var gt=rt*Math.cos(L);B=rt*Math.sin(L),yt=Math.cos(H),L=Math.sin(H),gt=(yt=(H=(rt=ot.x+X*(rt-gt)+st*yt)+gt)-_*yt)-gt,B=(_=(X=(st=ot.y+st-X*B+st*L)+B)-_*L)-B,ot.x=Math.min(rt,H,yt,gt),ot.y=Math.min(st,X,_,B),ot.width=Math.max(rt,H,yt,gt)-ot.x,ot.height=Math.max(st,X,_,B)-ot.y}if(nt&&(""===z||0]*>/g,"").replace(/</g,"<").replace(/>/g,">")},m.prototype.toFront=function(){var _=this.element;return _.parentNode.appendChild(_),this},m.prototype.translate=function(_,B){return this.attr({translateX:_,translateY:B})},m.prototype.updateShadows=function(_,B,X){var it=this.shadows;if(it)for(var rt=it.length;rt--;)X.call(it[rt],"height"===_?Math.max(B-(it[rt].cutHeight||0),0):"d"===_?this.d:B,_,it[rt])},m.prototype.updateTransform=function(){var _=this.element,B=this.matrix,X=this.rotation;X=void 0===X?0:X;var it=this.scaleX,rt=this.scaleY,L=this.translateX,z=this.translateY;L=["translate("+(void 0===L?0:L)+","+(void 0===z?0:z)+")"],v(B)&&L.push("matrix("+B.join(",")+")"),X&&L.push("rotate("+X+" "+u(this.rotationOriginX,_.getAttribute("x"),0)+" "+u(this.rotationOriginY,_.getAttribute("y")||0)+")"),(v(it)||v(rt))&&L.push("scale("+u(it,1)+" "+u(rt,1)+")"),L.length&&!(this.text||this).textPath&&_.setAttribute("transform",L.join(" "))},m.prototype.visibilitySetter=function(_,B,X){"inherit"===_?X.removeAttribute(B):this[B]!==_&&X.setAttribute(B,_),this[B]=_},m.prototype.xGetter=function(_){return"circle"===this.element.nodeName&&("x"===_?_="cx":"y"===_&&(_="cy")),this._defaultGetter(_)},m.prototype.zIndexSetter=function(_,B){var X=this.renderer,it=this.parentGroup,rt=(it||X).element||X.box,L=this.element;X=rt===X.box;var at,z=!1,et=this.added;if(v(_)?(L.setAttribute("data-z-index",_),_=+_,this[B]===_&&(et=!1)):v(this[B])&&L.removeAttribute("data-z-index"),this[B]=_,et){for((_=this.zIndex)&&it&&(it.handleZ=!0),at=(B=rt.childNodes).length-1;0<=at&&!z;at--){et=(it=B[at]).getAttribute("data-z-index");var st=!v(et);it!==L&&(0>_&&st&&!X&&!at?(rt.insertBefore(L,B[at]),z=!0):(a(et)<=_||st&&(!v(_)||0<=_))&&(rt.insertBefore(L,B[at+1]||null),z=!0))}z||(rt.insertBefore(L,B[X?3:0]||null),z=!0)}return z},m}(),O.prototype.strokeSetter=O.prototype.fillSetter,O.prototype.yGetter=O.prototype.xGetter,O.prototype.matrixSetter=O.prototype.rotationOriginXSetter=O.prototype.rotationOriginYSetter=O.prototype.rotationSetter=O.prototype.scaleXSetter=O.prototype.scaleYSetter=O.prototype.translateXSetter=O.prototype.translateYSetter=O.prototype.verticalAlignSetter=function(m,_){this[_]=m,this.doTransform=!0},O}),Y(q,"Core/Renderer/RendererRegistry.js",[q["Core/Globals.js"]],function(O){var U,G,Z;return(G=U||(U={})).rendererTypes={},G.getRendererType=function($){return void 0===$&&($=Z),G.rendererTypes[$]||G.rendererTypes[Z]},G.registerRendererType=function($,W,V){G.rendererTypes[$]=W,(!Z||V)&&(Z=$,O.Renderer=W)},U}),Y(q,"Core/Renderer/SVG/SVGLabel.js",[q["Core/Renderer/SVG/SVGElement.js"],q["Core/Utilities.js"]],function(O,U){var k,G=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),Z=U.defined,$=U.extend,W=U.isNumber,V=U.merge,R=U.pick,P=U.removeEvent;return function(k){function E(w,T,y,A,g,v,S,N,j,M){var I,D=k.call(this)||this;return D.paddingLeftSetter=D.paddingSetter,D.paddingRightSetter=D.paddingSetter,D.init(w,"g"),D.textStr=T,D.x=y,D.y=A,D.anchorX=v,D.anchorY=S,D.baseline=j,D.className=M,D.addClass("button"===M?"highcharts-no-tooltip":"highcharts-label"),M&&D.addClass("highcharts-"+M),D.text=w.text(void 0,0,0,N).attr({zIndex:1}),"string"==typeof g&&((I=/^url\((.*?)\)$/.test(g))||D.renderer.symbols[g])&&(D.symbolKey=g),D.bBox=E.emptyBBox,D.padding=3,D.baselineOffset=0,D.needsBox=w.styledMode||I,D.deferredAttr={},D.alignFactor=0,D}return G(E,k),E.prototype.alignSetter=function(w){(w={left:0,center:.5,right:1}[w])!==this.alignFactor&&(this.alignFactor=w,this.bBox&&W(this.xSetting)&&this.attr({x:this.xSetting}))},E.prototype.anchorXSetter=function(w,T){this.anchorX=w,this.boxAttr(T,Math.round(w)-this.getCrispAdjust()-this.xSetting)},E.prototype.anchorYSetter=function(w,T){this.anchorY=w,this.boxAttr(T,w-this.ySetting)},E.prototype.boxAttr=function(w,T){this.box?this.box.attr(w,T):this.deferredAttr[w]=T},E.prototype.css=function(w){if(w){var T={};w=V(w),E.textProps.forEach(function(y){typeof w[y]<"u"&&(T[y]=w[y],delete w[y])}),this.text.css(T),"fontSize"in T||"fontWeight"in T?this.updateTextPadding():("width"in T||"textOverflow"in T)&&this.updateBoxSize()}return O.prototype.css.call(this,w)},E.prototype.destroy=function(){P(this.element,"mouseenter"),P(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),O.prototype.destroy.call(this)},E.prototype.fillSetter=function(w,T){w&&(this.needsBox=!0),this.fill=w,this.boxAttr(T,w)},E.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var w=this.padding,T=R(this.paddingLeft,w);return{width:this.width,height:this.height,x:this.bBox.x-T,y:this.bBox.y-w}},E.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},E.prototype.heightSetter=function(w){this.heightSetting=w},E.prototype.onAdd=function(){this.text.add(this),this.attr({text:R(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&Z(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},E.prototype.paddingSetter=function(w,T){W(w)?w!==this[T]&&(this[T]=w,this.updateTextPadding()):this[T]=void 0},E.prototype.rSetter=function(w,T){this.boxAttr(T,w)},E.prototype.shadow=function(w){return w&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(w)),this},E.prototype.strokeSetter=function(w,T){this.stroke=w,this.boxAttr(T,w)},E.prototype["stroke-widthSetter"]=function(w,T){w&&(this.needsBox=!0),this["stroke-width"]=w,this.boxAttr(T,w)},E.prototype["text-alignSetter"]=function(w){this.textAlign=w},E.prototype.textSetter=function(w){typeof w<"u"&&this.text.attr({text:w}),this.updateTextPadding()},E.prototype.updateBoxSize=function(){var w=this.text,T=w.element.style,y={},A=this.padding,g=this.bBox=W(this.widthSetting)&&W(this.heightSetting)&&!this.textAlign||!Z(w.textStr)?E.emptyBBox:w.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||g.height||0)+2*A,T=this.renderer.fontMetrics(T&&T.fontSize,w),this.baselineOffset=A+Math.min((this.text.firstLineMetrics||T).b,g.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-T.h)/2),this.needsBox&&!w.textPath&&(this.box||((w=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),w.add(this)),w=this.getCrispAdjust(),y.x=w,y.y=(this.baseline?-this.baselineOffset:0)+w,y.width=Math.round(this.width),y.height=Math.round(this.height),this.box.attr($(y,this.deferredAttr)),this.deferredAttr={})},E.prototype.updateTextPadding=function(){var w=this.text;if(!w.textPath){this.updateBoxSize();var T=this.baseline?0:this.baselineOffset,y=R(this.paddingLeft,this.padding);Z(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(y+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(y!==w.x||T!==w.y)&&(w.attr("x",y),w.hasBoxWidthChanged&&(this.bBox=w.getBBox(!0)),typeof T<"u"&&w.attr("y",T)),w.x=y,w.y=T}},E.prototype.widthSetter=function(w){this.widthSetting=W(w)?w:void 0},E.prototype.getPaddedWidth=function(){var w=this.padding,T=R(this.paddingLeft,w);return w=R(this.paddingRight,w),(this.widthSetting||this.bBox.width||0)+T+w},E.prototype.xSetter=function(w){this.x=w,this.alignFactor&&(w-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(w),this.attr("translateX",this.xSetting)},E.prototype.ySetter=function(w){this.ySetting=this.y=Math.round(w),this.attr("translateY",this.ySetting)},E.emptyBBox={width:0,height:0,x:0,y:0},E.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),E}(O)}),Y(q,"Core/Renderer/SVG/Symbols.js",[q["Core/Utilities.js"]],function(O){function U(R,P,k,E,w){var T=[];if(w){var y=w.start||0,A=V(w.r,k);k=V(w.r,E||k);var g=(w.end||0)-.001;E=w.innerR;var v=V(w.open,.001>Math.abs((w.end||0)-y-2*Math.PI)),S=Math.cos(y),N=Math.sin(y),j=Math.cos(g),M=Math.sin(g);y=V(w.longArc,.001>g-y-Math.PI?0:1),T.push(["M",R+A*S,P+k*N],["A",A,k,0,y,V(w.clockwise,1),R+A*j,P+k*M]),$(E)&&T.push(v?["M",R+E*j,P+E*M]:["L",R+E*j,P+E*M],["A",E,E,0,y,$(w.clockwise)?1-w.clockwise:0,R+E*S,P+E*N]),v||T.push(["Z"])}return T}function G(R,P,k,E,w){return w&&w.r?Z(R,P,k,E,w):[["M",R,P],["L",R+k,P],["L",R+k,P+E],["L",R,P+E],["Z"]]}function Z(R,P,k,E,w){return[["M",R+(w=w&&w.r||0),P],["L",R+k-w,P],["C",R+k,P,R+k,P,R+k,P+w],["L",R+k,P+E-w],["C",R+k,P+E,R+k,P+E,R+k-w,P+E],["L",R+w,P+E],["C",R,P+E,R,P+E,R,P+E-w],["L",R,P+w],["C",R,P,R,P,R+w,P]]}var $=O.defined,W=O.isNumber,V=O.pick;return{arc:U,callout:function(R,P,k,E,w){var T=Math.min(w&&w.r||0,k,E),y=T+6,A=w&&w.anchorX;w=w&&w.anchorY||0;var g=Z(R,P,k,E,{r:T});return W(A)&&(R+A>=k?w>P+y&&w=R+A?w>P+y&&wE&&A>R+y&&Aw&&A>R+y&&A/g.test(v))?""!==v&&(g&&g.appendChild(A),v=new O(v),this.modifyTree(v.nodes),v.addToDOM(A),this.modifyDOM(),this.ellipsis&&-1!==(A.textContent||"").indexOf("\u2026")&&y.attr("title",this.unescapeEntities(y.textStr||"",["<",">"])),g&&g.removeChild(A)):A.appendChild(Z.createTextNode(this.unescapeEntities(v))),k(this.textOutline)&&y.applyTextOutline&&y.applyTextOutline(this.textOutline)}},T.prototype.modifyDOM=function(){var v,y=this,A=this.svgElement,g=V(A.element,"x");for(A.firstLineMetrics=void 0;(v=A.element.firstChild)&&/^[\s\u200B]*$/.test(v.textContent||" ");)A.element.removeChild(v);[].forEach.call(A.element.querySelectorAll("tspan.highcharts-br"),function(M,D){M.nextSibling&&M.previousSibling&&(0===D&&1===M.previousSibling.nodeType&&(A.firstLineMetrics=A.renderer.fontMetrics(void 0,M.previousSibling)),V(M,{dy:y.getLineHeight(M.nextSibling),x:g}))});var S=this.width||0;if(S){var j=function(M){[].slice.call(M.childNodes).forEach(function(D){D.nodeType===W.Node.TEXT_NODE?function(M,D){var I=M.textContent||"",b=I.replace(/([^\^])-/g,"$1- ").split(" "),d=!y.noWrap&&(1"u")if(B.getSubStringLength)try{I[_]=v+B.getSubStringLength(0,g?_+1:_)}catch{}else M.getSpanWidth&&(y.textContent=N(A||g,m),I[_]=v+M.getSpanWidth(j,y));return I[_]};j.rotation=0;var o=n(y.textContent.length);if(v+o>S){for(;b<=d;)u=Math.ceil((b+d)/2),g&&(a=N(g,u)),o=n(u,a&&a.length-1),b===d?b=d+1:o>S?d=u-1:b=u;0===d?y.textContent="":A&&d===A.length-1||(y.textContent=a||N(A||g,u))}g&&g.splice(0,u),j.actualWidth=o,j.rotation=D},T.prototype.unescapeEntities=function(y,A){return E(this.renderer.escapes,function(g,v){A&&-1!==A.indexOf(g)||(y=y.toString().replace(new RegExp(g,"g"),v))}),y},T}()}),Y(q,"Core/Renderer/SVG/SVGRenderer.js",[q["Core/Renderer/HTML/AST.js"],q["Core/Color/Color.js"],q["Core/Globals.js"],q["Core/Renderer/RendererRegistry.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Renderer/SVG/SVGLabel.js"],q["Core/Renderer/SVG/Symbols.js"],q["Core/Renderer/SVG/TextBuilder.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P){var rt,k=G.charts,E=G.deg2rad,w=G.doc,T=G.isFirefox,y=G.isMS,A=G.isWebKit,g=G.noop,v=G.SVG_NS,S=G.symbolSizes,N=G.win,j=P.addEvent,M=P.attr,D=P.createElement,I=P.css,b=P.defined,d=P.destroyObjectProperties,u=P.extend,a=P.isArray,n=P.isNumber,o=P.isObject,m=P.isString,_=P.merge,B=P.pick,X=P.pInt,it=P.uniqueKey;return G=function(){function L(z,et,at,st,H,ot,nt){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(z,et,at,st,H,ot,nt)}return L.prototype.init=function(z,et,at,st,H,ot,nt){var mt,yt=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),gt=yt.element;nt||yt.css(this.getStyle(st)),z.appendChild(gt),M(z,"dir","ltr"),-1===z.innerHTML.indexOf("xmlns")&&M(gt,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=gt,this.boxWrapper=yt,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(w.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=ot,this.forExport=H,this.styledMode=nt,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(et,at,!1),T&&z.getBoundingClientRect&&((et=function(){I(z,{left:0,top:0}),mt=z.getBoundingClientRect(),I(z,{left:Math.ceil(mt.left)-mt.left+"px",top:Math.ceil(mt.top)-mt.top+"px"})})(),this.unSubPixelFix=j(N,"resize",et))},L.prototype.definition=function(z){return new O([z]).addToDOM(this.defs.element)},L.prototype.getReferenceURL=function(){if((T||A)&&w.getElementsByTagName("base").length){if(!b(rt)){var z=it();z=new O([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:z},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(z,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(w.body),I(z,{position:"fixed",top:0,left:0,zIndex:9e5});var et=w.elementFromPoint(6,6);rt="hitme"===(et&&et.id),w.body.removeChild(z)}if(rt)return N.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},L.prototype.getStyle=function(z){return this.style=u({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},z)},L.prototype.setStyle=function(z){this.boxWrapper.css(this.getStyle(z))},L.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},L.prototype.destroy=function(){var z=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,z&&(this.defs=z.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},L.prototype.createElement=function(z){var et=new this.Element;return et.init(this,z),et},L.prototype.getRadialAttr=function(z,et){return{cx:z[0]-z[2]/2+(et.cx||0)*z[2],cy:z[1]-z[2]/2+(et.cy||0)*z[2],r:(et.r||0)*z[2]}},L.prototype.buildText=function(z){new R(z).buildSVG()},L.prototype.getContrast=function(z){return 1.05/(.05+(z=.2126*(z=U.parse(z).rgba.map(function(et){return.03928>=(et/=255)?et/12.92:Math.pow((et+.055)/1.055,2.4)}))[0]+.7152*z[1]+.0722*z[2]))>(z+.05)/.05?"#FFFFFF":"#000000"},L.prototype.button=function(z,et,at,st,H,ot,nt,yt,gt,mt){void 0===H&&(H={});var St=this.label(z,et,at,gt,void 0,void 0,mt,void 0,"button"),wt=this.styledMode;z=H.states||{};var Mt=0;delete(H=_(H)).states;var Dt=_({color:"#333333",cursor:"pointer",fontWeight:"normal"},H.style);delete H.style;var Pt=O.filterUserAttributes(H);if(St.attr(_({padding:8,r:2},Pt)),!wt){Pt=_({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},Pt);var Ft=(ot=_(Pt,{fill:"#e6e6e6"},O.filterUserAttributes(ot||z.hover||{}))).style;delete ot.style;var jt=(nt=_(Pt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},O.filterUserAttributes(nt||z.select||{}))).style;delete nt.style;var Ut=(yt=_(Pt,{style:{color:"#cccccc"}},O.filterUserAttributes(yt||z.disabled||{}))).style;delete yt.style}return j(St.element,y?"mouseover":"mouseenter",function(){3!==Mt&&St.setState(1)}),j(St.element,y?"mouseout":"mouseleave",function(){3!==Mt&&St.setState(Mt)}),St.setState=function(bt){1!==bt&&(St.state=Mt=bt),St.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][bt||0]),wt||(St.attr([Pt,ot,nt,yt][bt||0]),bt=[Dt,Ft,jt,Ut][bt||0],o(bt)&&St.css(bt))},wt||(St.attr(Pt).css(u({cursor:"default"},Dt)),mt&&St.text.css({pointerEvents:"none"})),St.on("touchstart",function(bt){return bt.stopPropagation()}).on("click",function(bt){3!==Mt&&st.call(St,bt)})},L.prototype.crispLine=function(z,et,at){void 0===at&&(at="round");var st=z[0],H=z[1];return b(st[1])&&st[1]===H[1]&&(st[1]=H[1]=Math[at](st[1])-et%2/2),b(st[2])&&st[2]===H[2]&&(st[2]=H[2]=Math[at](st[2])+et%2/2),z},L.prototype.path=function(z){var et=this.styledMode?{}:{fill:"none"};return a(z)?et.d=z:o(z)&&u(et,z),this.createElement("path").attr(et)},L.prototype.circle=function(z,et,at){return z=o(z)?z:typeof z>"u"?{}:{x:z,y:et,r:at},(et=this.createElement("circle")).xSetter=et.ySetter=function(st,H,ot){ot.setAttribute("c"+H,st)},et.attr(z)},L.prototype.arc=function(z,et,at,st,H,ot){return o(z)?(et=(st=z).y,at=st.r,z=st.x):st={innerR:st,start:H,end:ot},(z=this.symbol("arc",z,et,at,at,st)).r=at,z},L.prototype.rect=function(z,et,at,st,H,ot){H=o(z)?z.r:H;var nt=this.createElement("rect");return z=o(z)?z:typeof z>"u"?{}:{x:z,y:et,width:Math.max(at,0),height:Math.max(st,0)},this.styledMode||(typeof ot<"u"&&(z["stroke-width"]=ot,z=nt.crisp(z)),z.fill="none"),H&&(z.r=H),nt.rSetter=function(yt,gt,mt){nt.r=yt,M(mt,{rx:yt,ry:yt})},nt.rGetter=function(){return nt.r||0},nt.attr(z)},L.prototype.setSize=function(z,et,at){this.width=z,this.height=et,this.boxWrapper.animate({width:z,height:et},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:B(at,!0)?void 0:0}),this.alignElements()},L.prototype.g=function(z){var et=this.createElement("g");return z?et.attr({class:"highcharts-"+z}):et},L.prototype.image=function(z,et,at,st,H,ot){var nt={preserveAspectRatio:"none"},yt=function(mt,St){mt.setAttributeNS?mt.setAttributeNS("http://www.w3.org/1999/xlink","href",St):mt.setAttribute("hc-svg-href",St)};n(et)&&(nt.x=et),n(at)&&(nt.y=at),n(st)&&(nt.width=st),n(H)&&(nt.height=H);var gt=this.createElement("image").attr(nt);return et=function(mt){yt(gt.element,z),ot.call(gt,mt)},ot?(yt(gt.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),at=new N.Image,j(at,"load",et),at.src=z,at.complete&&et({})):yt(gt.element,z),gt},L.prototype.symbol=function(z,et,at,st,H,ot){var wt,nt=this,yt=/^url\((.*?)\)$/,gt=yt.test(z),mt=!gt&&(this.symbols[z]?z:"circle"),St=mt&&this.symbols[mt];if(St){"number"==typeof et&&(wt=St.call(this.symbols,Math.round(et||0),Math.round(at||0),st||0,H||0,ot));var Mt=this.path(wt);nt.styledMode||Mt.attr("fill","none"),u(Mt,{symbolName:mt||void 0,x:et,y:at,width:st,height:H}),ot&&u(Mt,ot)}else if(gt){var Dt=z.match(yt)[1],Pt=Mt=this.image(Dt);Pt.imgwidth=B(S[Dt]&&S[Dt].width,ot&&ot.width),Pt.imgheight=B(S[Dt]&&S[Dt].height,ot&&ot.height);var Ft=function(jt){return jt.attr({width:jt.width,height:jt.height})};["width","height"].forEach(function(jt){Pt[jt+"Setter"]=function(Ut,bt){this[bt]=Ut,Ut=this.alignByTranslate;var _t=this.element,xt=this.width,ft=this.height,Ct=this.imgwidth,Ot=this.imgheight,Rt=this["img"+bt];if(b(Rt)){var Zt=1;ot&&"within"===ot.backgroundSize&&xt&&ft?(Zt=Math.min(xt/Ct,ft/Ot),Rt=Math.round(Rt*Zt),M(_t,{width:Math.round(Ct*Zt),height:Math.round(Ot*Zt)})):_t&&_t.setAttribute(bt,Rt),Ut||this.translate(((xt||0)-Rt*Zt)/2,((ft||0)-Rt*Zt)/2)}}}),b(et)&&Pt.attr({x:et,y:at}),Pt.isImg=!0,b(Pt.imgwidth)&&b(Pt.imgheight)?Ft(Pt):(Pt.attr({width:0,height:0}),D("img",{onload:function(){var jt=k[nt.chartIndex];0===this.width&&(I(this,{position:"absolute",top:"-999em"}),w.body.appendChild(this)),S[Dt]={width:this.width,height:this.height},Pt.imgwidth=this.width,Pt.imgheight=this.height,Pt.element&&Ft(Pt),this.parentNode&&this.parentNode.removeChild(this),nt.imgCount--,!nt.imgCount&&jt&&!jt.hasLoaded&&jt.onload()},src:Dt}),this.imgCount++)}return Mt},L.prototype.clipRect=function(z,et,at,st){var H=it()+"-",ot=this.createElement("clipPath").attr({id:H}).add(this.defs);return(z=this.rect(z,et,at,st,0).add(ot)).id=H,z.clipPath=ot,z.count=0,z},L.prototype.text=function(z,et,at,st){var H={};return!st||!this.allowHTML&&this.forExport?(H.x=Math.round(et||0),at&&(H.y=Math.round(at)),b(z)&&(H.text=z),z=this.createElement("text").attr(H),(!st||this.forExport&&!this.allowHTML)&&(z.xSetter=function(ot,nt,yt){for(var wt,gt=yt.getElementsByTagName("tspan"),mt=yt.getAttribute(nt),St=0;St(z=/px/.test(z)?X(z):12)?z+3:Math.round(1.2*z),b:Math.round(.8*et),f:z}},L.prototype.rotCorr=function(z,et,at){var st=z;return et&&at&&(st=Math.max(st*Math.cos(et*E),4)),{x:-z/3*Math.sin(et*E),y:st}},L.prototype.pathToSegments=function(z){for(var et=[],at=[],st={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},H=0;H":">","'":"'",'"':"""},symbols:V,draw:g}),Z.registerRendererType("svg",G,!0),G}),Y(q,"Core/Renderer/HTML/HTMLElement.js",[q["Core/Globals.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Utilities.js"]],function(O,U,G){var y,Z=this&&this.__extends||(y=function(A,g){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var N in S)S.hasOwnProperty(N)&&(v[N]=S[N])})(A,g)},function(A,g){function v(){this.constructor=A}y(A,g),A.prototype=null===g?Object.create(g):(v.prototype=g.prototype,new v)}),$=O.isFirefox,W=O.isMS,V=O.isWebKit,R=O.win,P=G.css,k=G.defined,E=G.extend,w=G.pick,T=G.pInt;return function(y){function A(){return null!==y&&y.apply(this,arguments)||this}return Z(A,y),A.compose=function(g){if(-1===A.composedClasses.indexOf(g)){A.composedClasses.push(g);var v=A.prototype,S=g.prototype;S.getSpanCorrection=v.getSpanCorrection,S.htmlCss=v.htmlCss,S.htmlGetBBox=v.htmlGetBBox,S.htmlUpdateTransform=v.htmlUpdateTransform,S.setSpanRotation=v.setSpanRotation}return g},A.prototype.getSpanCorrection=function(g,v,S){this.xCorr=-g*S,this.yCorr=-v},A.prototype.htmlCss=function(g){var v="SPAN"===this.element.tagName&&g&&"width"in g,S=w(v&&g.width,void 0);if(v){delete g.width,this.textWidth=S;var N=!0}return g&&"ellipsis"===g.textOverflow&&(g.whiteSpace="nowrap",g.overflow="hidden"),this.styles=E(this.styles,g),P(this.element,g),N&&this.htmlUpdateTransform(),this},A.prototype.htmlGetBBox=function(){var g=this.element;return{x:g.offsetLeft,y:g.offsetTop,width:g.offsetWidth,height:g.offsetHeight}},A.prototype.htmlUpdateTransform=function(){if(this.added){var g=this.renderer,v=this.element,S=this.translateX||0,N=this.translateY||0,j=this.x||0,M=this.y||0,D=this.textAlign||"left",I={left:0,center:.5,right:1}[D],b=this.styles;if(b=b&&b.whiteSpace,P(v,{marginLeft:S,marginTop:N}),!g.styledMode&&this.shadows&&this.shadows.forEach(function(m){P(m,{marginLeft:S+1,marginTop:N+1})}),this.inverted&&[].forEach.call(v.childNodes,function(m){g.invertChild(m,v)}),"SPAN"===v.tagName){var d=this.rotation,u=this.textWidth&&T(this.textWidth),a=[d,D,v.innerHTML,this.textWidth,this.textAlign].join(),n=void 0;if(n=!1,u!==this.oldTextWidth){if(this.textPxLength)var o=this.textPxLength;else P(v,{width:"",whiteSpace:b||"nowrap"}),o=v.offsetWidth;(u>this.oldTextWidth||o>u)&&(/[ \-]/.test(v.textContent||v.innerText)||"ellipsis"===v.style.textOverflow)&&(P(v,{width:o>u||d?u+"px":"auto",display:"block",whiteSpace:b||"normal"}),this.oldTextWidth=u,n=!0)}this.hasBoxWidthChanged=n,a!==this.cTT&&(n=g.fontMetrics(v.style.fontSize,v).b,!k(d)||d===(this.oldRotation||0)&&D===this.oldAlign||this.setSpanRotation(d,I,n),this.getSpanCorrection(!k(d)&&this.textPxLength||v.offsetWidth,n,I,d,D)),P(v,{left:j+(this.xCorr||0)+"px",top:M+(this.yCorr||0)+"px"}),this.cTT=a,this.oldRotation=d,this.oldAlign=D}}else this.alignOnAdd=!0},A.prototype.setSpanRotation=function(g,v,S){var N={},j=W&&!/Edge/.test(R.navigator.userAgent)?"-ms-transform":V?"-webkit-transform":$?"MozTransform":R.opera?"-o-transform":void 0;j&&(N[j]=N.transform="rotate("+g+"deg)",N[j+($?"Origin":"-origin")]=N.transformOrigin=100*v+"% "+S+"px",P(this.element,N))},A.composedClasses=[],A}(U)}),Y(q,"Core/Renderer/HTML/HTMLRenderer.js",[q["Core/Renderer/HTML/AST.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Renderer/SVG/SVGRenderer.js"],q["Core/Utilities.js"]],function(O,U,G,Z){var k,$=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),W=Z.attr,V=Z.createElement,R=Z.extend,P=Z.pick;return function(k){function E(){return null!==k&&k.apply(this,arguments)||this}return $(E,k),E.compose=function(w){return-1===E.composedClasses.indexOf(w)&&(E.composedClasses.push(w),w.prototype.html=E.prototype.html),w},E.prototype.html=function(w,T,y){var A=this.createElement("span"),g=A.element,v=A.renderer,S=v.isSVG,N=function(j,M){["opacity","visibility"].forEach(function(D){j[D+"Setter"]=function(I,b,d){var u=j.div?j.div.style:M;U.prototype[D+"Setter"].call(this,I,b,d),u&&(u[b]=I)}}),j.addedSetters=!0};return A.textSetter=function(j){j!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,O.setElementHTML(this.element,P(j,"")),this.textStr=j,A.doTransform=!0)},S&&N(A,A.element.style),A.xSetter=A.ySetter=A.alignSetter=A.rotationSetter=function(j,M){"align"===M?A.alignValue=A.textAlign=j:A[M]=j,A.doTransform=!0},A.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},A.attr({text:w,x:Math.round(T),y:Math.round(y)}).css({position:"absolute"}),v.styledMode||A.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),g.style.whiteSpace="nowrap",A.css=A.htmlCss,S&&(A.add=function(j){var M=v.box.parentNode,D=[];if(this.parentGroup=j){var I=j.div;if(!I){for(;j;)D.push(j),j=j.parentGroup;D.reverse().forEach(function(b){function d(o,m){b[m]=o,"translateX"===m?n.left=o+"px":n.top=o+"px",b.doTransform=!0}var o,u=W(b.element,"class"),a=b.styles||{},n=(I=b.div=b.div||V("div",u?{className:u}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:a.cursor,pointerEvents:a.pointerEvents,visibility:b.visibility},I||M)).style;R(b,{classSetter:(o=I,function(m){this.element.setAttribute("class",m),o.className=m}),on:function(){return D[0].div&&A.on.apply({element:D[0].div,onEvents:b.onEvents},arguments),b},translateXSetter:d,translateYSetter:d}),b.addedSetters||N(b)})}}else I=M;return I.appendChild(g),A.added=!0,A.alignOnAdd&&A.htmlUpdateTransform(),A}),A},E.composedClasses=[],E}(G)}),Y(q,"Core/Axis/AxisDefaults.js",[],function(){var O,U;return(U=O||(O={})).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},U.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},U.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},U.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},U.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},U.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},O}),Y(q,"Core/Foundation.js",[q["Core/Utilities.js"]],function(O){var W,U=O.addEvent,G=O.isFunction,Z=O.objectEach,$=O.removeEvent;return(W||(W={})).registerEventOptions=function(R,P){R.eventOptions=R.eventOptions||{},Z(P.events,function(k,E){R.eventOptions[E]!==k&&(R.eventOptions[E]&&($(R,E,R.eventOptions[E]),delete R.eventOptions[E]),G(k)&&(R.eventOptions[E]=k,U(R,E,k)))})},W}),Y(q,"Core/Axis/Tick.js",[q["Core/FormatUtilities.js"],q["Core/Globals.js"],q["Core/Utilities.js"]],function(O,U,G){var Z=U.deg2rad,$=G.clamp,W=G.correctFloat,V=G.defined,R=G.destroyObjectProperties,P=G.extend,k=G.fireEvent,E=G.isNumber,w=G.merge,T=G.objectEach,y=G.pick;return U=function(){function A(g,v,S,N,j){this.isNewLabel=this.isNew=!0,this.axis=g,this.pos=v,this.type=S||"",this.parameters=j||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,k(this,"init"),S||N||this.addLabel()}return A.prototype.addLabel=function(){var g=this,v=g.axis,S=v.options,N=v.chart,j=v.categories,M=v.logarithmic,D=v.names,I=g.pos,b=y(g.options&&g.options.labels,S.labels),d=v.tickPositions,u=I===d[0],a=I===d[d.length-1],n=(!b.step||1===b.step)&&1===v.tickInterval;d=d.info;var m,o=g.label;if(j=this.parameters.category||(j?y(j[I],D[I],I):I),M&&E(j)&&(j=W(M.lin2log(j))),v.dateTime)if(d)var _=N.time.resolveDTLFormat(S.dateTimeLabelFormats[!S.grid&&d.higherRanks[I]||d.unitName]),B=_.main;else E(j)&&(B=v.dateTime.getXDateFormat(j,S.dateTimeLabelFormats||{}));g.isFirst=u,g.isLast=a;var X={axis:v,chart:N,dateTimeLabelFormat:B,isFirst:u,isLast:a,pos:I,tick:g,tickPositionInfo:d,value:j};k(this,"labelFormat",X);var it=function(L){return b.formatter?b.formatter.call(L,L):b.format?(L.text=v.defaultLabelFormatter.call(L,L),O.format(b.format,L,N)):v.defaultLabelFormatter.call(L,L)};S=it.call(X,X);var rt=_&&_.list;g.shortenLabel=rt?function(){for(m=0;mb&&N-d*uM&&(_=Math.round((j-N)/Math.cos(b*Z))):(j=N+(1-d)*u,N-d*uM&&(o=M-g.x+o*d,m=-1),(o=Math.min(a,o))o||v.autoRotation&&(I.styles||{}).width)&&(_=o)),_&&(this.shortenLabel?this.shortenLabel():(n.width=Math.floor(_)+"px",(S.style||{}).textOverflow||(n.textOverflow="ellipsis"),I.css(n)))},A.prototype.moveLabel=function(g,v){var S=this,N=S.label,j=S.axis,M=j.reversed,D=!1;if(N&&N.textStr===g?(S.movedLabel=N,D=!0,delete S.label):T(j.ticks,function(b){D||b.isNew||b===S||!b.label||b.label.textStr!==g||(S.movedLabel=b.label,D=!0,b.labelPos=S.movedLabel.xy,delete b.label)}),!D&&(S.labelPos||N)){var I=S.labelPos||N.xy;N=j.horiz?M?0:j.width+j.left:I.x,j=j.horiz?I.y:M?j.width+j.left:0,S.movedLabel=S.createLabel({x:N,y:j},g,v),S.movedLabel&&S.movedLabel.attr({opacity:0})}},A.prototype.render=function(g,v,S){var N=this.axis,j=N.horiz,M=this.pos,D=y(this.tickmarkOffset,N.tickmarkOffset);D=(M=this.getPosition(j,M,D,v)).x;var I=M.y;N=j&&D===N.pos+N.len||!j&&I===N.pos?-1:1,j=y(S,this.label&&this.label.newOpacity,1),S=y(S,1),this.isActive=!0,this.renderGridLine(v,S,N),this.renderMark(M,S,N),this.renderLabel(M,v,j,g),this.isNew=!1,k(this,"afterRender")},A.prototype.renderGridLine=function(g,v,S){var N=this.axis,j=N.options,M={},D=this.pos,I=this.type,b=y(this.tickmarkOffset,N.tickmarkOffset),d=N.chart.renderer,u=this.gridLine,a=j.gridLineWidth,n=j.gridLineColor,o=j.gridLineDashStyle;"minor"===this.type&&(a=j.minorGridLineWidth,n=j.minorGridLineColor,o=j.minorGridLineDashStyle),u||(N.chart.styledMode||(M.stroke=n,M["stroke-width"]=a||0,M.dashstyle=o),I||(M.zIndex=1),g&&(v=0),this.gridLine=u=d.path().attr(M).addClass("highcharts-"+(I?I+"-":"")+"grid-line").add(N.gridGroup)),u&&(S=N.getPlotLinePath({value:D+b,lineWidth:u.strokeWidth()*S,force:"pass",old:g,acrossPanes:!1}))&&u[g||this.isNew?"attr":"animate"]({d:S,opacity:v})},A.prototype.renderMark=function(g,v,S){var N=this.axis,j=N.options,M=N.chart.renderer,D=this.type,I=N.tickSize(D?D+"Tick":"tick"),b=g.x;g=g.y;var d=y(j["minor"!==D?"tickWidth":"minorTickWidth"],!D&&N.isXAxis?1:0);j=j["minor"!==D?"tickColor":"minorTickColor"];var u=this.mark,a=!u;I&&(N.opposite&&(I[0]=-I[0]),u||(this.mark=u=M.path().addClass("highcharts-"+(D?D+"-":"")+"tick").add(N.axisGroup),N.chart.styledMode||u.attr({stroke:j,"stroke-width":d})),u[a?"attr":"animate"]({d:this.getMarkPath(b,g,I[0],u.strokeWidth()*S,N.horiz,M),opacity:v}))},A.prototype.renderLabel=function(g,v,S,N){var j=this.axis,M=j.horiz,D=j.options,I=this.label,b=D.labels,d=b.step;j=y(this.tickmarkOffset,j.tickmarkOffset);var u=g.x;g=g.y;var a=!0;I&&E(u)&&(I.xy=g=this.getLabelPosition(u,g,I,M,b,j,N,d),this.isFirst&&!this.isLast&&!D.showFirstLabel||this.isLast&&!this.isFirst&&!D.showLastLabel?a=!1:!M||b.step||b.rotation||v||0===S||this.handleOverflow(g),d&&N%d&&(a=!1),a&&E(g.y)?(g.opacity=S,I[this.isNewLabel?"attr":"animate"](g).show(!0),this.isNewLabel=!1):(I.hide(),this.isNewLabel=!0))},A.prototype.replaceMovedLabel=function(){var g=this.label,v=this.axis,S=v.reversed;if(g&&!this.isNew){var N=v.horiz?S?v.left:v.width+v.left:g.xy.x;S=v.horiz?g.xy.y:S?v.width+v.top:v.top,g.animate({x:N,y:S,opacity:0},void 0,g.destroy),delete this.label}v.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},A}()}),Y(q,"Core/Axis/Axis.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Axis/AxisDefaults.js"],q["Core/Color/Color.js"],q["Core/Defaults.js"],q["Core/Foundation.js"],q["Core/Globals.js"],q["Core/Axis/Tick.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R){var P=O.animObject,k=Z.defaultOptions,E=$.registerEventOptions,w=W.deg2rad,T=R.arrayMax,y=R.arrayMin,A=R.clamp,g=R.correctFloat,v=R.defined,S=R.destroyObjectProperties,N=R.erase,j=R.error,M=R.extend,D=R.fireEvent,I=R.isArray,b=R.isNumber,d=R.isString,u=R.merge,a=R.normalizeTickInterval,n=R.objectEach,o=R.pick,m=R.relativeLength,_=R.removeEvent,B=R.splat,X=R.syncTimeout,it=function(rt,L){return a(L,void 0,void 0,o(rt.options.allowDecimals,.5>L||void 0!==rt.tickAmount),!!rt.tickAmount)};return O=function(){function rt(L,z){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(L,z)}return rt.prototype.init=function(L,z){var et=z.isX;this.chart=L,this.horiz=L.inverted&&!this.isZAxis?!et:et,this.isXAxis=et,this.coll=this.coll||(et?"xAxis":"yAxis"),D(this,"init",{userOptions:z}),this.opposite=o(z.opposite,this.opposite),this.side=o(z.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(z);var at=this.options,st=at.labels,H=at.type;this.userOptions=z,this.minPixelPadding=0,this.reversed=o(at.reversed,this.reversed),this.visible=at.visible,this.zoomEnabled=at.zoomEnabled,this.hasNames="category"===H||!0===at.categories,this.categories=at.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=v(at.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=at.minRange||at.maxZoom,this.range=at.range,this.offset=at.offset||0,this.min=this.max=null,z=o(at.crosshair,B(L.options.tooltip.crosshairs)[et?0:1]),this.crosshair=!0===z?{}:z,-1===L.axes.indexOf(this)&&(et?L.axes.splice(L.xAxis.length,0,this):L.axes.push(this),L[this.coll].push(this)),this.series=this.series||[],L.inverted&&!this.isZAxis&&et&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=b(st.rotation)?st.rotation:void 0,E(this,at),D(this,"afterInit")},rt.prototype.setOptions=function(L){this.options=u(U.defaultXAxisOptions,"yAxis"===this.coll&&U.defaultYAxisOptions,[U.defaultTopAxisOptions,U.defaultRightAxisOptions,U.defaultBottomAxisOptions,U.defaultLeftAxisOptions][this.side],u(k[this.coll],L)),D(this,"afterSetOptions",{userOptions:L})},rt.prototype.defaultLabelFormatter=function(L){var z=this.axis;L=this.chart.numberFormatter;var et=b(this.value)?this.value:NaN,at=z.chart.time,st=this.dateTimeLabelFormat,H=k.lang,ot=H.numericSymbols;H=H.numericSymbolMagnitude||1e3;var nt=z.logarithmic?Math.abs(et):z.tickInterval,yt=ot&&ot.length;if(z.categories)var gt="".concat(this.value);else if(st)gt=at.dateFormat(st,et);else if(yt&&1e3<=nt)for(;yt--&&typeof gt>"u";)nt>=(z=Math.pow(H,yt+1))&&10*et%z==0&&null!==ot[yt]&&0!==et&&(gt=L(et/z,-1)+ot[yt]);return typeof gt>"u"&&(gt=1e4<=Math.abs(et)?L(et,-1):L(et,-1,void 0,"")),gt},rt.prototype.getSeriesExtremes=function(){var et,L=this,z=L.chart;D(this,"getSeriesExtremes",null,function(){L.hasVisibleSeries=!1,L.dataMin=L.dataMax=L.threshold=null,L.softThreshold=!L.isXAxis,L.series.forEach(function(at){if(at.visible||!z.options.chart.ignoreHiddenSeries){var st=at.options,H=st.threshold;if(L.hasVisibleSeries=!0,L.positiveValuesOnly&&0>=H&&(H=null),L.isXAxis){if((st=at.xData).length){st=L.logarithmic?st.filter(L.validatePositiveValue):st;var ot=(et=at.getXExtremes(st)).min,nt=et.max;b(ot)||ot instanceof Date||(st=st.filter(b),ot=(et=at.getXExtremes(st)).min,nt=et.max),st.length&&(L.dataMin=Math.min(o(L.dataMin,ot),ot),L.dataMax=Math.max(o(L.dataMax,nt),nt))}}else at=at.applyExtremes(),b(at.dataMin)&&(ot=at.dataMin,L.dataMin=Math.min(o(L.dataMin,ot),ot)),b(at.dataMax)&&(nt=at.dataMax,L.dataMax=Math.max(o(L.dataMax,nt),nt)),v(H)&&(L.threshold=H),(!st.softThreshold||L.positiveValuesOnly)&&(L.softThreshold=!1)}})}),D(this,"afterGetSeriesExtremes")},rt.prototype.translate=function(L,z,et,at,st,H){var ot=this.linkedParent||this,nt=at&&ot.old?ot.old.min:ot.min;if(!b(nt))return NaN;var yt=ot.minPixelPadding;st=(ot.isOrdinal||ot.brokenAxis&&ot.brokenAxis.hasBreaks||ot.logarithmic&&st)&&ot.lin2val;var gt=1,mt=0;return(at=at&&ot.old?ot.old.transA:ot.transA)||(at=ot.transA),et&&(gt*=-1,mt=ot.len),ot.reversed&&(mt-=(gt*=-1)*(ot.sector||ot.len)),z?(H=(L*gt+mt-yt)/at+nt,st&&(H=ot.lin2val(H))):(st&&(L=ot.val2lin(L)),L=gt*(L-nt)*at,H=(ot.isRadial?L:g(L))+mt+gt*yt+(b(H)?at*H:0)),H},rt.prototype.toPixels=function(L,z){return this.translate(L,!1,!this.horiz,void 0,!0)+(z?0:this.pos)},rt.prototype.toValue=function(L,z){return this.translate(L-(z?0:this.pos),!0,!this.horiz,void 0,!0)},rt.prototype.getPlotLinePath=function(L){function z(bt,_t,xt){return"pass"!==Mt&&(bt<_t||bt>xt)&&(Mt?bt=A(bt,_t,xt):Ut=!0),bt}var Dt,Pt,Ft,jt,Ut,et=this,at=et.chart,st=et.left,H=et.top,ot=L.old,nt=L.value,yt=L.lineWidth,gt=ot&&at.oldChartHeight||at.chartHeight,mt=ot&&at.oldChartWidth||at.chartWidth,St=et.transB,wt=L.translatedValue,Mt=L.force;return L={value:nt,lineWidth:yt,old:ot,force:Mt,acrossPanes:L.acrossPanes,translatedValue:wt},D(this,"getPlotLinePath",L,function(bt){wt=o(wt,et.translate(nt,void 0,void 0,ot)),wt=A(wt,-1e5,1e5),Dt=Ft=Math.round(wt+St),Pt=jt=Math.round(gt-wt-St),b(wt)?et.horiz?(Pt=H,jt=gt-et.bottom,Dt=Ft=z(Dt,st,st+et.width)):(Dt=st,Ft=mt-et.right,Pt=jt=z(Pt,H,H+et.height)):(Ut=!0,Mt=!1),bt.path=Ut&&!Mt?null:at.renderer.crispLine([["M",Dt,Pt],["L",Ft,jt]],yt||1)}),L.path},rt.prototype.getLinearTickPositions=function(L,z,et){var at=g(Math.floor(z/L)*L);et=g(Math.ceil(et/L)*L);var H,st=[];if(g(at+L)===at&&(H=20),this.single)return[z];for(z=at;z<=et&&(st.push(z),(z=g(z+L,H))!==ot);)var ot=z;return st},rt.prototype.getMinorTickInterval=function(){var L=this.options;return!0===L.minorTicks?o(L.minorTickInterval,"auto"):!1===L.minorTicks?null:L.minorTickInterval},rt.prototype.getMinorTickPositions=function(){var L=this.options,z=this.tickPositions,et=this.minorTickInterval,at=this.pointRangePadding||0,st=this.min-at,H=(at=this.max+at)-st,ot=[];if(H&&H/et"u"&&!z&&(v(L.min)||v(L.max)||v(L.floor)||v(L.ceiling)?this.minRange=null:(this.series.forEach(function(wt){if(nt=wt.xData,yt=wt.xIncrement?1:nt.length-1,1=this.minRange,mt=this.minRange,St=(mt-at+et)/2;St=[et-St,o(L.min,et-St)],gt&&(St[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),at=[(et=T(St))+mt,o(L.max,et+mt)],gt&&(at[2]=z?z.log2lin(this.dataMax):this.dataMax),(at=y(at))-et=wt)Pt=wt,mt=0;else if(this.dataMax<=wt){var Ft=wt;gt=0}this.min=o(Mt,Pt,this.dataMin),this.max=o(Dt,Ft,this.dataMax)}if(et&&(this.positiveValuesOnly&&!L&&0>=Math.min(this.min,o(this.dataMin,this.min))&&j(10,1,z),this.min=g(et.log2lin(this.min),16),this.max=g(et.log2lin(this.max),16)),this.range&&v(this.max)&&(this.userMin=this.min=Mt=Math.max(this.dataMin,this.minFromRange()),this.userMax=Dt=this.max,this.range=null),D(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(nt||this.axisPointRange||this.stacking&&this.stacking.usePercentage||H)&&v(this.min)&&v(this.max)&&(z=this.max-this.min)&&(!v(Mt)&&mt&&(this.min-=z*mt),!v(Dt)&>&&(this.max+=z*gt)),b(this.userMin)||(b(at.softMin)&&at.softMinthis.max&&(this.max=Dt=at.softMax),b(at.ceiling)&&(this.max=Math.min(this.max,at.ceiling))),yt&&v(this.dataMin)&&(wt=wt||0,!v(Mt)&&this.min=wt?this.min=this.options.minRange?Math.min(wt,this.max-this.minRange):wt:!v(Dt)&&this.max>wt&&this.dataMax<=wt&&(this.max=this.options.minRange?Math.max(wt,this.min+this.minRange):wt)),b(this.min)&&b(this.max)&&!this.chart.polar&&this.min>this.max&&(v(this.options.min)?this.max=this.min:v(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:H&&this.linkedParent&&!St&&ot===this.linkedParent.options.tickPixelInterval?St=this.linkedParent.tickInterval:o(St,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,nt?1:(this.max-this.min)*ot/Math.max(this.len,ot)),st&&!L){var jt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(Ut){Ut.forceCrop=Ut.forceCropping&&Ut.forceCropping(),Ut.processData(jt)}),D(this,"postProcessData",{hasExtremesChanged:jt})}this.setAxisTranslation(),D(this,"initialAxisTranslation"),this.pointRange&&!St&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),L=o(at.minTickInterval,this.dateTime&&!this.series.some(function(Ut){return Ut.noSharedTooltip})?this.closestPointRange:0),!St&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)H=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,L.units),this.min,this.max,L.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)H=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(at=L=this.tickInterval;at<=2*L&&(H=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&H.length>this.tickAmount);)this.tickInterval=it(this,at*=1.1);else H=[this.min,this.max],j(19,!1,this.chart);H.length>this.len&&(H=[H[0],H[H.length-1]])[0]===H[1]&&(H.length=1),et&&(this.tickPositions=H,(nt=et.apply(this,[this.min,this.max]))&&(H=nt))}this.tickPositions=H,this.paddedTicks=H.slice(0),this.trimTicks(H,ot,st),!this.isLinked&&b(this.min)&&b(this.max)&&(this.single&&2>H.length&&!this.categories&&!this.series.some(function(yt){return yt.is("heatmap")&&"between"===yt.options.pointPlacement})&&(this.min-=.5,this.max+=.5),z||nt||this.adjustTickAmount()),D(this,"afterSetTickPositions")},rt.prototype.trimTicks=function(L,z,et){var at=L[0],st=L[L.length-1],H=!this.isOrdinal&&this.minPointOffset||0;if(D(this,"trimTicks"),!this.isLinked){if(z&&at!==-1/0)this.min=at;else for(;this.min-H>L[0];)L.shift();if(et)this.max=st;else for(;this.max+Het&&(this.finalTickAmt=et,et=5),this.tickAmount=et},rt.prototype.adjustTickAmount=function(){var L=this,z=L.finalTickAmt,et=L.max,at=L.min,st=L.options,H=L.tickPositions,ot=L.tickAmount,nt=L.thresholdAlignment,yt=H&&H.length,gt=o(L.threshold,L.softThreshold?0:null),mt=L.tickInterval;if(b(nt)){var St=.5>nt?Math.ceil(nt*(ot-1)):Math.floor(nt*(ot-1));st.reversed&&(St=ot-1-St)}if(L.hasData()&&b(at)&&b(et)){if(nt=function(){L.transA*=(yt-1)/(ot-1),L.min=st.startOnTick?H[0]:Math.min(at,H[0]),L.max=st.endOnTick?H[H.length-1]:Math.max(et,H[H.length-1])},b(St)&&b(L.threshold)){for(;H[St]!==gt||H.length!==ot||H[0]>at||H[H.length-1]L.threshold?H.unshift(g(H[0]-mt)):H.push(g(H[H.length-1]+mt));if(mt>8*L.tickInterval)break;mt*=2}nt()}else if(yt=z&&0nt&&(gt=nt)),v(st)&&(mtnt&&(mt=nt))),et.displayBtn=typeof gt<"u"||typeof mt<"u",et.setExtremes(gt,mt,!1,void 0,{trigger:"zoom"})),yt.zoomed=!0}),L.zoomed},rt.prototype.setAxisSize=function(){var L=this.chart,z=this.options,et=z.offsets||[0,0,0,0],at=this.horiz,st=this.width=Math.round(m(o(z.width,L.plotWidth-et[3]+et[1]),L.plotWidth)),H=this.height=Math.round(m(o(z.height,L.plotHeight-et[0]+et[2]),L.plotHeight)),ot=this.top=Math.round(m(o(z.top,L.plotTop+et[0]),L.plotHeight,L.plotTop));z=this.left=Math.round(m(o(z.left,L.plotLeft+et[3]),L.plotWidth,L.plotLeft)),this.bottom=L.chartHeight-H-ot,this.right=L.chartWidth-st-z,this.len=Math.max(at?st:H,0),this.pos=at?z:ot},rt.prototype.getExtremes=function(){var L=this.logarithmic;return{min:L?g(L.lin2log(this.min)):this.min,max:L?g(L.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},rt.prototype.getThreshold=function(L){var z=this.logarithmic,et=z?z.lin2log(this.min):this.min;return z=z?z.lin2log(this.max):this.max,null===L||L===-1/0?L=et:L===1/0?L=z:et>L?L=et:zz?et.align="right":195z&&(et.align="left")}),L.align},rt.prototype.tickSize=function(L){var z=this.options,et=o(z["tick"===L?"tickWidth":"minorTickWidth"],"tick"===L&&this.isXAxis&&!this.categories?1:0),at=z["tick"===L?"tickLength":"minorTickLength"];if(et&&at){"inside"===z[L+"Position"]&&(at=-at);var st=[at,et]}return D(this,"afterTickSize",L={tickSize:st}),L.tickSize},rt.prototype.labelMetrics=function(){var L=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[L]&&this.ticks[L].label)},rt.prototype.unsquish=function(){var L=this.options.labels,z=this.horiz,et=this.tickInterval,at=this.len/(((this.categories?1:0)+this.max-this.min)/et),st=L.rotation,H=this.labelMetrics(),ot=Math.max(this.max-this.min,0),nt=function(Ft){var jt=Ft/(at||1);return(jt=1ot&&Ft!==1/0&&at!==1/0&&ot&&(jt=Math.ceil(ot/et)),g(jt*et)},yt=et,gt=Number.MAX_VALUE;if(z){if(!L.staggerLines)if(b(st))var mt=[st];else at=Dt)&&(St=(z=nt(Math.abs(H.h/Math.sin(w*Dt))))+Math.abs(Dt/360))at.step)return at.rotation?0:(this.staggerLines||1)*this.len/st;if(!et){if(void 0!==(L=at.style.width))return parseInt(String(L),10);if(H)return H-z.spacing[3]}return.33*z.chartWidth},rt.prototype.renderUnsquish=function(){var L=this.chart,z=L.renderer,et=this.tickPositions,at=this.ticks,st=this.options.labels,H=st.style,ot=this.horiz,nt=this.getSlotWidth(),yt=Math.max(1,Math.round(nt-2*st.padding)),gt={},mt=this.labelMetrics(),St=H.textOverflow,wt=0;if(d(st.rotation)||(gt.rotation=st.rotation||0),et.forEach(function(Ft){(Ft=at[Ft]).movedLabel&&Ft.replaceMovedLabel(),Ft&&Ft.label&&Ft.label.textPxLength>wt&&(wt=Ft.label.textPxLength)}),this.maxLabelLength=wt,this.autoRotation)wt>yt&&wt>mt.h?gt.rotation=this.labelRotation:this.labelRotation=0;else if(nt){var Mt=yt;if(!St){var Dt="clip";for(yt=et.length;!ot&&yt--;){var Pt=et[yt];(Pt=at[Pt].label)&&(Pt.styles&&"ellipsis"===Pt.styles.textOverflow?Pt.css({textOverflow:"clip"}):Pt.textPxLength>nt&&Pt.css({width:nt+"px"}),Pt.getBBox().height>this.len/et.length-(mt.h-mt.f)&&(Pt.specificTextOverflow="ellipsis"))}}}gt.rotation&&(Mt=wt>.5*L.chartHeight?.33*L.chartHeight:wt,St||(Dt="ellipsis")),(this.labelAlign=st.align||this.autoLabelAlign(this.labelRotation))&&(gt.align=this.labelAlign),et.forEach(function(Ft){var jt=(Ft=at[Ft])&&Ft.label,Ut=H.width,bt={};jt&&(jt.attr(gt),Ft.shortenLabel?Ft.shortenLabel():Mt&&!Ut&&"nowrap"!==H.whiteSpace&&(Mt=this.min&&L<=this.max||this.grid&&this.grid.isColumn)&&(at[L]||(at[L]=new V(this,L)),et&&at[L].isNew&&at[L].render(z,!0,-1),at[L].render(z))},rt.prototype.render=function(){var Ft,jt,L=this,z=L.chart,et=L.logarithmic,at=L.options,st=L.isLinked,H=L.tickPositions,ot=L.axisTitle,nt=L.ticks,yt=L.minorTicks,gt=L.alternateBands,mt=at.stackLabels,St=at.alternateGridColor,wt=L.tickmarkOffset,Mt=L.axisLine,Dt=L.showAxis,Pt=P(z.renderer.globalAnimation);if(L.labelEdge.length=0,L.overlap=!1,[nt,yt,gt].forEach(function(bt){n(bt,function(_t){_t.isActive=!1})}),L.hasData()||st){var Ut=L.chart.hasRendered&&L.old&&b(L.old.min);L.minorTickInterval&&!L.categories&&L.getMinorTickPositions().forEach(function(bt){L.renderMinorTick(bt,Ut)}),H.length&&(H.forEach(function(bt,_t){L.renderTick(bt,_t,Ut)}),wt&&(0===L.min||L.single)&&(nt[-1]||(nt[-1]=new V(L,-1,null,!0)),nt[-1].render(-1))),St&&H.forEach(function(bt,_t){jt=typeof H[_t+1]<"u"?H[_t+1]+wt:L.max-wt,_t%2==0&&btT&&(!A||S<=y)&&typeof S<"u"&&N.push(S),S>y&&(D=!0),S=b}}}else T=this.lin2log(T),y=this.lin2log(y),w=A?g.getMinorTickInterval():S.tickInterval,w=Z("auto"===w?null:w,this.minorAutoInterval,S.tickPixelInterval/(A?5:1)*(y-T)/((A?v/g.tickPositions.length:v)||1)),w=G(w),N=g.getLinearTickPositions(w,T,y).map(this.log2lin),A||(this.minorAutoInterval=w/5);return A||(g.tickInterval=w),N},E.prototype.lin2log=function(w){return Math.pow(10,w)},E.prototype.log2lin=function(w){return Math.log(w)/Math.LN10},E}();W.Additions=k}($||($={})),$}),Y(q,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[q["Core/Utilities.js"]],function(O){var $,U=O.erase,G=O.extend,Z=O.isNumber;return function(W){var R,V=[];W.compose=function(k,E){return R||(R=k),-1===V.indexOf(E)&&(V.push(E),G(E.prototype,P.prototype)),E};var P=function(){function k(){}return k.prototype.getPlotBandPath=function(E,w,T){void 0===T&&(T=this.options);var y=this.getPlotLinePath({value:w,force:!0,acrossPanes:T.acrossPanes}),A=[],g=this.horiz;if(w=!Z(this.min)||!Z(this.max)||Ethis.max&&w>this.max,E=this.getPlotLinePath({value:E,force:!0,acrossPanes:T.acrossPanes}),T=1,E&&y){if(w){var v=E.toString()===y.toString();T=0}for(w=0;w"u"&&(I=d.normalize(I)),D=[I.chartX-b,I.chartY-a];else if(D[0].tooltipPos)D=D[0].tooltipPos;else{var n=0,o=0;D.forEach(function(m){(m=m.pos(!0))&&(n+=m[0],o+=m[1])}),n/=D.length,o/=D.length,this.shared&&1jt-n?jt:jt-n);else{if(!Ft)return!1;a[ot]=Math.max(St,mt+n+yt>nt?mt:mt+n)}},at=function(ot,nt,yt,gt,mt){var St;return mtnt-u?St=!1:a[ot]=mtnt-gt/2?nt-gt-2:mt-yt/2,St},st=function(ot){var nt=it;it=rt,rt=nt,L=ot},H=function(){!1!==et.apply(0,it)?!1!==at.apply(0,rt)||L||(st(!0),H()):L?a.x=a.y=0:(st(!0),H())};return(d.inverted||1jt})&&(D=D.map(function(Ft){var jt=b(Ft.anchorX,Ft.anchorY,Ft.point.isHeader,Ft.boxWidth,!1);return w(Ft,{target:jt.y,x:jt.x})})),d.cleanSplit(),R(D,Mt);var Dt=mt,Pt=mt;D.forEach(function(Ft){var jt=Ft.x,Ut=Ft.boxWidth;(Ft=Ft.isHeader)||(d.outside&&mt+jtPt&&(Pt=mt+jt))}),D.forEach(function(Ft){var jt=Ft.x,Ut=Ft.anchorX,bt=Ft.pos,_t=Ft.point.isHeader;if(bt={visibility:typeof bt>"u"?"hidden":"inherit",x:jt,y:(bt||0)+St,anchorX:Ut,anchorY:Ft.anchorY},d.outside&&jtb[0]?Math.max(Math.abs(b[0]),u.width-b[0]):Math.max(Math.abs(b[0]),u.width),d.height=0>b[1]?Math.max(Math.abs(b[1]),u.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),u.height),this.tracker?this.tracker.attr(d):(this.tracker=I.renderer.rect(d).addClass("highcharts-tracker").add(I),D.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},M.prototype.styledModeFormat=function(D){return D.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},M.prototype.tooltipFooterHeaderFormatter=function(D,I){var b=D.series,d=b.tooltipOptions,u=b.xAxis,a=u&&u.dateTime;u={isFooter:I,labelConfig:D};var n=d.xDateFormat,o=d[I?"footerFormat":"headerFormat"];return T(this,"headerFormatter",u,function(m){a&&!n&&A(D.key)&&(n=a.getXDateFormat(D.key,d.dateTimeLabelFormats)),a&&n&&(D.point&&D.point.tooltipDateKeys||["key"]).forEach(function(_){o=o.replace("{point."+_+"}","{point."+_+":"+n+"}")}),b.chart.styledMode&&(o=this.styledModeFormat(o)),m.text=W(o,{point:D,series:b},this.chart)}),u.text},M.prototype.update=function(D){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,D),this.init(this.chart,v(!0,this.options,D))},M.prototype.updatePosition=function(D){var I=this.chart,b=this.distance,d=this.options,u=I.pointer,a=this.getLabel(),n=u.getChartPosition();u=n.left;var o=n.top,m=n.scaleX;n=n.scaleY;var _=(d.positioner||this.getPosition).call(this,a.width,a.height,D),B=(D.plotX||0)+I.plotLeft;D=(D.plotY||0)+I.plotTop,this.outside&&(d.positioner&&(_.x+=u-b,_.y+=o-b),b=d.borderWidth+2*b,this.renderer.setSize(a.width+b,a.height+b,!1),(1!==m||1!==n)&&(k(this.container,{transform:"scale(".concat(m,", ").concat(n,")")}),B*=m,D*=n),B+=u-_.x,D+=o-_.y),this.move(Math.round(_.x),Math.round(_.y||0),B,D)},M}()}),Y(q,"Core/Series/Point.js",[q["Core/Renderer/HTML/AST.js"],q["Core/Animation/AnimationUtilities.js"],q["Core/Defaults.js"],q["Core/FormatUtilities.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$){var W=U.animObject,V=G.defaultOptions,R=Z.format,P=$.addEvent,k=$.defined,E=$.erase,w=$.extend,T=$.fireEvent,y=$.getNestedProperty,A=$.isArray,g=$.isFunction,v=$.isNumber,S=$.isObject,N=$.merge,j=$.objectEach,M=$.pick,D=$.syncTimeout,I=$.removeEvent,b=$.uniqueKey;return U=function(){function d(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return d.prototype.animateBeforeDestroy=function(){var u=this,a={x:u.startXPos,opacity:0},n=u.getGraphicalProps();n.singular.forEach(function(o){u[o]=u[o].animate("dataLabel"===o?{x:u[o].startXPos,y:u[o].startYPos,opacity:0}:a)}),n.plural.forEach(function(o){u[o].forEach(function(m){m.element&&m.animate(w({x:u.startXPos},m.startYPos?{x:m.startXPos,y:m.startYPos}:{}))})})},d.prototype.applyOptions=function(u,a){var n=this.series,o=n.options.pointValKey||n.pointValKey;return u=d.prototype.optionsToObject.call(this,u),w(this,u),this.options=this.options?w(this.options,u):u,u.group&&delete this.group,u.dataLabels&&delete this.dataLabels,o&&(this.y=d.prototype.getNestedProperty.call(this,o)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof a>"u"&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),typeof this.x>"u"&&n?this.x=typeof a>"u"?n.autoIncrement():a:v(u.x)&&n.options.relativeXValue&&(this.x=n.autoIncrement(u.x)),this},d.prototype.destroy=function(){function u(){for(B in(a.graphic||a.graphics||a.dataLabel||a.dataLabels)&&(I(a),a.destroyElements()),a)a[B]=null}var a=this,n=a.series,o=n.chart;n=n.options.dataSorting;var B,m=o.hoverPoints,_=W(a.series.chart.renderer.globalAnimation);a.legendItem&&o.legend.destroyItem(a),m&&(a.setState(),E(m,a),m.length||(o.hoverPoints=null)),a===o.hoverPoint&&a.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),D(u,_.duration)):u(),o.pointCount--},d.prototype.destroyElements=function(u){var a=this;(u=a.getGraphicalProps(u)).singular.forEach(function(n){a[n]=a[n].destroy()}),u.plural.forEach(function(n){a[n].forEach(function(o){o&&o.element&&o.destroy()}),delete a[n]})},d.prototype.firePointEvent=function(u,a,n){var o=this,m=this.series.options;(m.point.events[u]||o.options&&o.options.events&&o.options.events[u])&&o.importEvents(),"click"===u&&m.allowPointSelect&&(n=function(_){o.select&&o.select(null,_.ctrlKey||_.metaKey||_.shiftKey)}),T(o,u,a,n)},d.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},d.prototype.getGraphicalProps=function(u){var m,a=this,n=[],o={singular:[],plural:[]};for((u=u||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","shadowGroup"),u.dataLabel&&n.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),m=n.length;m--;){var _=n[m];a[_]&&o.singular.push(_)}return["graphic","dataLabel","connector"].forEach(function(B){var X=B+"s";u[B]&&a[X]&&o.plural.push(X)}),o},d.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},d.prototype.getNestedProperty=function(u){if(u)return 0===u.indexOf("custom.")?y(u,this.options):this[u]},d.prototype.getZone=function(){var u=this.series,a=u.zones;u=u.zoneAxis||"y";var n,o=0;for(n=a[o];this[u]>=n.value;)n=a[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},d.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},d.prototype.init=function(u,a,n){return this.series=u,this.applyOptions(a,n),this.id=k(this.id)?this.id:b(),this.resolveColor(),u.chart.pointCount++,T(this,"afterInit"),this},d.prototype.isValid=function(){return null!==this.x&&v(this.y)},d.prototype.optionsToObject=function(u){var a=this.series,n=a.options.keys,o=n||a.pointArrayMap||["y"],m=o.length,_={},B=0,X=0;if(v(u)||null===u)_[o[0]]=u;else if(A(u))for(!n&&u.length>m&&("string"==(a=typeof u[0])?_.name=u[0]:"number"===a&&(_.x=u[0]),B++);X"u"||(0d+a&&(X=d+a),itu+n&&(it=u+n),this.hasDragged=Math.sqrt(Math.pow(o-X,2)+Math.pow(m-it,2)),10u.options.findNearestPointBy.indexOf("y");if(u=u.searchPoint(b,a),(a=g(u,!0)&&u.series)&&!(a=!g(d,!0))){a=d.distX-u.distX;var n=d.dist-u.dist,o=(u.series.group&&u.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);a=0<(0!==a&&I?a:0!==n?n:0!==o?o:d.series.index>u.series.index?-1:1)}a&&(d=u)}),d},M.prototype.getChartCoordinatesFromPoint=function(D,I){var b=D.series,d=b.xAxis;b=b.yAxis;var u=D.shapeArgs;if(d&&b){var a=N(D.clientX,D.plotX),n=D.plotY||0;return D.isNode&&u&&A(u.x)&&A(u.y)&&(a=u.x,n=u.y),I?{chartX:b.len+b.pos-n,chartY:d.len+d.pos-a}:{chartX:a+d.pos,chartY:n+b.pos}}if(u&&u.x&&u.y)return{chartX:u.x,chartY:u.y}},M.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var D=this.chart.container,I=S(D);this.chartPosition={left:I.left,top:I.top,scaleX:1,scaleY:1};var b=D.offsetWidth;return D=D.offsetHeight,2"u"||I)&&(this.zoomOption(D),I&&D.preventDefault&&D.preventDefault(),this.dragStart(D))},M.prototype.onContainerMouseLeave=function(D){var I=W[N(M.hoverChartIndex,-1)],b=this.chart.tooltip;D=this.normalize(D),I&&(D.relatedTarget||D.toElement)&&(I.pointer.reset(),I.pointer.chartPosition=void 0),b&&!b.isHidden&&this.reset()},M.prototype.onContainerMouseEnter=function(D){delete this.chartPosition},M.prototype.onContainerMouseMove=function(D){var I=this.chart,b=I.tooltip;D=this.normalize(D),this.setHoverChartIndex(),D.preventDefault||(D.returnValue=!1),("mousedown"===I.mouseIsDown||this.touchSelect(D))&&this.drag(D),I.openMenu||!this.inClass(D.target,"highcharts-tracker")&&!I.isInsidePlot(D.chartX-I.plotLeft,D.chartY-I.plotTop,{visiblePlotOnly:!0})||b&&b.shouldStickOnContact(D)||(this.inClass(D.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(D))},M.prototype.onDocumentTouchEnd=function(D){var I=W[N(M.hoverChartIndex,-1)];I&&I.pointer.drop(D)},M.prototype.onContainerTouchMove=function(D){this.touchSelect(D)?this.onContainerMouseMove(D):this.touch(D)},M.prototype.onContainerTouchStart=function(D){this.touchSelect(D)?this.onContainerMouseDown(D):(this.zoomOption(D),this.touch(D,!0))},M.prototype.onDocumentMouseMove=function(D){var I=this.chart,b=I.tooltip,d=this.chartPosition;D=this.normalize(D,d),!d||I.isInsidePlot(D.chartX-I.plotLeft,D.chartY-I.plotTop,{visiblePlotOnly:!0})||b&&b.shouldStickOnContact(D)||this.inClass(D.target,"highcharts-tracker")||this.reset()},M.prototype.onDocumentMouseUp=function(D){var I=W[N(M.hoverChartIndex,-1)];I&&I.pointer.drop(D)},M.prototype.pinch=function(D){var I=this,b=I.chart,d=I.pinchDown,u=D.touches||[],a=u.length,n=I.lastValidTouch,o=I.hasZoom,m={},_=1===a&&(I.inClass(D.target,"highcharts-tracker")&&b.runTrackerClick||I.runChartClick),B={},X=I.chart.tooltip;X=1===a&&N(X&&X.options.followTouchMove,!0);var it=I.selectionMarker;1z.max&&(b=z.max-H,mt=!0);mt?(yt-=.8*(yt-n[_][0]),"number"==typeof gt&&(gt-=.8*(gt-n[_][1])),I()):n[_]=[yt,gt],L||(a[_]=ot-rt,a[it]=H),a=L?1/nt:nt,u[it]=H,u[_]=b,d[L?D?"scaleY":"scaleX":"scale"+B]=nt,d["translate"+B]=a*rt+(yt-a*at)},M.prototype.reset=function(D,I){var b=this.chart,d=b.hoverSeries,u=b.hoverPoint,a=b.hoverPoints,n=b.tooltip,o=n&&n.shared?a:u;D&&o&&j(o).forEach(function(m){m.series.isCartesian&&typeof m.plotX>"u"&&(D=!1)}),D?n&&o&&j(o).length&&(n.refresh(o),n.shared&&a?a.forEach(function(m){m.setState(m.state,!0),m.series.isCartesian&&(m.series.xAxis.crosshair&&m.series.xAxis.drawCrosshair(null,m),m.series.yAxis.crosshair&&m.series.yAxis.drawCrosshair(null,m))}):u&&(u.setState(u.state,!0),b.axes.forEach(function(m){m.crosshair&&u.series[m.coll]===m&&m.drawCrosshair(null,u)}))):(u&&u.onMouseOut(),a&&a.forEach(function(m){m.setState()}),d&&d.onMouseOut(),n&&n.hide(I),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),b.axes.forEach(function(m){m.hideCrosshair()}),this.hoverX=b.hoverPoints=b.hoverPoint=null)},M.prototype.runPointActions=function(D,I,b){var d=this.chart,u=d.tooltip&&d.tooltip.options.enabled?d.tooltip:void 0,a=!!u&&u.shared,n=I||d.hoverPoint,o=n&&n.series||d.hoverSeries;I=this.getHoverData(n,o,d.series,(!D||"touchmove"!==D.type)&&(!!I||o&&o.directTouch&&this.isDirectTouch),a,D),n=I.hoverPoint,o=I.hoverSeries;var m=I.hoverPoints;I=o&&o.tooltipOptions.followPointer&&!o.tooltipOptions.split;var _=a&&o&&!o.noSharedTooltip;if(n&&(b||n!==d.hoverPoint||u&&u.isHidden)){if((d.hoverPoints||[]).forEach(function(B){-1===m.indexOf(B)&&B.setState()}),d.hoverSeries!==o&&o.onMouseOver(),this.applyInactiveState(m),(m||[]).forEach(function(B){B.setState("hover")}),d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut"),!n.series)return;d.hoverPoints=m,d.hoverPoint=n,n.firePointEvent("mouseOver",void 0,function(){u&&n&&u.refresh(_?m:n,D)})}else I&&u&&!u.isHidden&&(b=u.getAnchor([{}],D),d.isInsidePlot(b[0],b[1],{visiblePlotOnly:!0})&&u.updatePosition({plotX:b[0],plotY:b[1]}));this.unDocMouseMove||(this.unDocMouseMove=R(d.container.ownerDocument,"mousemove",function(B){var X=W[M.hoverChartIndex];X&&X.pointer.onDocumentMouseMove(B)}),this.eventsToUnbind.push(this.unDocMouseMove)),d.axes.forEach(function(B){var it,X=N((B.crosshair||{}).snap,!0);X&&((it=d.hoverPoint)&&it.series[B.coll]===B||(it=T(m,function(rt){return rt.series&&rt.series[B.coll]===B}))),it||!X?B.drawCrosshair(D,it):B.hideCrosshair()})},M.prototype.scaleGroups=function(D,I){var b=this.chart;b.series.forEach(function(d){var u=D||d.getPlotBox();d.group&&(d.xAxis&&d.xAxis.zoomEnabled||b.mapView)&&(d.group.attr(u),d.markerGroup&&(d.markerGroup.attr(u),d.markerGroup.clip(I?b.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(u))}),b.clipRect.attr(I||b.clipBox)},M.prototype.setDOMEvents=function(){var D=this,I=this.chart.container,b=I.ownerDocument;I.onmousedown=this.onContainerMouseDown.bind(this),I.onmousemove=this.onContainerMouseMove.bind(this),I.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(R(I,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(R(I,"mouseleave",this.onContainerMouseLeave.bind(this))),M.unbindDocumentMouseUp||(M.unbindDocumentMouseUp=R(b,"mouseup",this.onDocumentMouseUp.bind(this)));for(var d=this.chart.renderTo.parentElement;d&&"BODY"!==d.tagName;)this.eventsToUnbind.push(R(d,"scroll",function(){delete D.chartPosition})),d=d.parentElement;U.hasTouch&&(this.eventsToUnbind.push(R(I,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(R(I,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),M.unbindDocumentTouchEnd||(M.unbindDocumentTouchEnd=R(b,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},M.prototype.setHoverChartIndex=function(){var D=this.chart,I=U.charts[N(M.hoverChartIndex,-1)];I&&I!==D&&I.pointer.onContainerMouseLeave({relatedTarget:D.container}),I&&I.mouseIsDown||(M.hoverChartIndex=D.index)},M.prototype.touch=function(D,I){var b=this.chart;if(this.setHoverChartIndex(),1===D.touches.length)if(D=this.normalize(D),b.isInsidePlot(D.chartX-b.plotLeft,D.chartY-b.plotTop,{visiblePlotOnly:!0})&&!b.openMenu){if(I&&this.runPointActions(D),"touchmove"===D.type)var u=!!(I=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(I[0].chartX-D.chartX,2)+Math.pow(I[0].chartY-D.chartY,2));N(u,!0)&&this.pinch(D)}else I&&this.reset();else 2===D.touches.length&&this.pinch(D)},M.prototype.touchSelect=function(D){return!(!this.chart.options.chart.zooming.singleTouch||!D.touches||1!==D.touches.length)},M.prototype.zoomOption=function(D){var I=this.chart,b=I.options.chart;I=I.inverted;var d=b.zooming.type||"";/touch/.test(D.type)&&(d=N(b.zooming.pinchType,d)),this.zoomX=D=/x/.test(d),this.zoomY=b=/y/.test(d),this.zoomHor=D&&!I||b&&I,this.zoomVert=b&&!I||D&&I,this.hasZoom=D||b},M}()}),Y(q,"Core/MSPointer.js",[q["Core/Globals.js"],q["Core/Pointer.js"],q["Core/Utilities.js"]],function(O,U,G){function Z(){var S=[];return S.item=function(N){return this[N]},T(g,function(N){S.push({pageX:N.pageX,pageY:N.pageY,target:N.target})}),S}function $(S,N,j,M){var D=V[U.hoverChartIndex||NaN];"touch"!==S.pointerType&&S.pointerType!==S.MSPOINTER_TYPE_TOUCH||!D||(D=D.pointer,M(S),D[N]({type:j,target:S.currentTarget,preventDefault:P,touches:Z()}))}var S,W=this&&this.__extends||(S=function(N,j){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,D){M.__proto__=D}||function(M,D){for(var I in D)D.hasOwnProperty(I)&&(M[I]=D[I])})(N,j)},function(N,j){function M(){this.constructor=N}S(N,j),N.prototype=null===j?Object.create(j):(M.prototype=j.prototype,new M)}),V=O.charts,R=O.doc,P=O.noop,k=O.win,E=G.addEvent,w=G.css,T=G.objectEach,y=G.pick,A=G.removeEvent,g={},v=!!k.PointerEvent;return function(S){function N(){return null!==S&&S.apply(this,arguments)||this}return W(N,S),N.isRequired=function(){return!(O.hasTouch||!k.PointerEvent&&!k.MSPointerEvent)},N.prototype.batchMSEvents=function(j){j(this.chart.container,v?"pointerdown":"MSPointerDown",this.onContainerPointerDown),j(this.chart.container,v?"pointermove":"MSPointerMove",this.onContainerPointerMove),j(R,v?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},N.prototype.destroy=function(){this.batchMSEvents(A),S.prototype.destroy.call(this)},N.prototype.init=function(j,M){S.prototype.init.call(this,j,M),this.hasZoom&&w(j.container,{"-ms-touch-action":"none","touch-action":"none"})},N.prototype.onContainerPointerDown=function(j){$(j,"onContainerTouchStart","touchstart",function(M){g[M.pointerId]={pageX:M.pageX,pageY:M.pageY,target:M.currentTarget}})},N.prototype.onContainerPointerMove=function(j){$(j,"onContainerTouchMove","touchmove",function(M){g[M.pointerId]={pageX:M.pageX,pageY:M.pageY},g[M.pointerId].target||(g[M.pointerId].target=M.currentTarget)})},N.prototype.onDocumentPointerUp=function(j){$(j,"onDocumentTouchEnd","touchend",function(M){delete g[M.pointerId]})},N.prototype.setDOMEvents=function(){var j=this.chart.tooltip;S.prototype.setDOMEvents.call(this),(this.hasZoom||y(j&&j.options.followTouchMove,!0))&&this.batchMSEvents(E)},N}(U)}),Y(q,"Core/Legend/Legend.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/FormatUtilities.js"],q["Core/Globals.js"],q["Core/Series/Point.js"],q["Core/Renderer/RendererUtilities.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W){var V=O.animObject,R=O.setAnimation,P=U.format,k=G.marginNames,E=$.distribute,w=W.addEvent,T=W.createElement,y=W.css,A=W.defined,g=W.discardElement,v=W.find,S=W.fireEvent,N=W.isNumber,j=W.merge,M=W.pick,D=W.relativeLength,I=W.stableSort,b=W.syncTimeout;return O=function(){function d(u,a){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=u,this.init(u,a)}return d.prototype.init=function(u,a){this.chart=u,this.setOptions(a),a.enabled&&(this.render(),w(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=w(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},d.prototype.setOptions=function(u){var a=M(u.padding,8);this.options=u,this.chart.styledMode||(this.itemStyle=u.itemStyle,this.itemHiddenStyle=j(this.itemStyle,u.itemHiddenStyle)),this.itemMarginTop=u.itemMarginTop||0,this.itemMarginBottom=u.itemMarginBottom||0,this.padding=a,this.initialItemY=a-5,this.symbolWidth=M(u.symbolWidth,16),this.pages=[],this.proximate="proximate"===u.layout&&!this.chart.inverted,this.baseline=void 0},d.prototype.update=function(u,a){var n=this.chart;this.setOptions(j(!0,this.options,u)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,M(a,!0)&&n.redraw(),S(this,"afterUpdate")},d.prototype.colorizeItem=function(u,a){var n=u.legendItem||{},o=n.group,m=n.label,_=n.line;if(n=n.symbol,o&&o[a?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var B=this.options;o=this.itemHiddenStyle.color,B=a?B.itemStyle.color:o;var X=a&&u.color||o,it=u.options&&u.options.marker,rt={fill:X};m&&m.css({fill:B,color:B}),_&&_.attr({stroke:X}),n&&(it&&n.isMarker&&(rt=u.pointAttribs(),a||(rt.stroke=rt.fill=o)),n.attr(rt))}S(this,"afterColorizeItem",{item:u,visible:a})},d.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},d.prototype.positionItem=function(u){var a=this,n=u.legendItem||{},o=n.group,m=n.x;m=void 0===m?0:m,n=void 0===(n=n.y)?0:n;var _=this.options,B=_.symbolPadding,X=!_.rtl;_=u.checkbox,o&&o.element&&(B={translateX:X?m:this.legendWidth-m-2*B-4,translateY:n},o[A(o.translateY)?"animate":"attr"](B,void 0,function(){S(a,"afterPositionItem",{item:u})})),_&&(_.x=m,_.y=n)},d.prototype.destroyItem=function(u){for(var a=u.checkbox,n=u.legendItem||{},o=0,m=["group","label","line","symbol"];oo-6&&B1.5*o?n.height:o))},d.prototype.layoutItem=function(u){var a=this.options,n=this.padding,o="horizontal"===a.layout,m=u.itemHeight,_=this.itemMarginBottom,B=this.itemMarginTop,X=o?M(a.itemDistance,20):0,it=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>it?this.maxItemWidth:u.itemWidth;var rt=u.legendItem||{};o&&this.itemX-n+a>it&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=B+this.lastLineHeight+_),this.lastLineHeight=0),this.lastItemY=B+this.itemY+_,this.lastLineHeight=Math.max(m,this.lastLineHeight),rt.x=this.itemX,rt.y=this.itemY,o?this.itemX+=a:(this.itemY+=B+m+_,this.lastLineHeight=m),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-n-(u.checkbox?0:X):a)+n,this.offsetWidth)},d.prototype.getAllItems=function(){var u=[];return this.chart.series.forEach(function(a){var n=a&&a.options;a&&M(n.showInLegend,!A(n.linkedTo)&&void 0,!0)&&(u=u.concat((a.legendItem||{}).labels||("point"===n.legendType?a.data:a)))}),S(this,"afterGetAllItems",{allItems:u}),u},d.prototype.getAlignment=function(){var u=this.options;return this.proximate?u.align.charAt(0)+"tv":u.floating?"":u.align.charAt(0)+u.verticalAlign.charAt(0)+u.layout.charAt(0)},d.prototype.adjustMargins=function(u,a){var n=this.chart,o=this.options,m=this.getAlignment();m&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(_,B){_.test(m)&&!A(u[B])&&(n[k[B]]=Math.max(n[k[B]],n.legend[(B+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][B]*o[B%2?"x":"y"]+M(o.margin,12)+a[B]+(n.titleOffset[B]||0)))})},d.prototype.proximatePositions=function(){var u=this.chart,a=[],n="left"===this.options.align;this.allItems.forEach(function(X){var it,rt=n;if(X.yAxis){X.xAxis.options.reversed&&(rt=!rt),X.points&&(it=v(rt?X.points:X.points.slice(0).reverse(),function(z){return N(z.plotY)})),rt=this.itemMarginTop+X.legendItem.label.getBBox().height+this.itemMarginBottom;var L=X.yAxis.top-u.plotTop;X.visible?(it=it?it.plotY:X.yAxis.height,it+=L-.3*rt):it=L+X.yAxis.height,a.push({target:it,size:rt,item:X})}},this);for(var o,m=0,_=E(a,u.plotHeight);m<_.length;m++){var B=_[m];o=B.item.legendItem||{},N(B.pos)&&(o.y=u.plotTop-u.spacing[0]+B.pos)}},d.prototype.render=function(){var u=this.chart,a=u.renderer,n=this.options,o=this.padding,m=this.getAllItems(),_=this.group,B=this.box;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=D(n.width,u.spacingBox.width-o);var X=u.spacingBox.width-2*o-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(X/=2),this.maxLegendWidth=this.widthOption||X,_||(this.group=_=a.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(_),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),I(m,function(rt,L){return(rt.options&&rt.options.legendIndex||0)-(L.options&&L.options.legendIndex||0)}),n.reversed&&m.reverse(),this.allItems=m,this.display=X=!!m.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,m.forEach(this.renderItem,this),m.forEach(this.layoutItem,this),m=(this.widthOption||this.offsetWidth)+o;var it=this.lastItemY+this.lastLineHeight+this.titleHeight;it=this.handleOverflow(it),it+=o,B||(this.box=B=a.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(_)),u.styledMode||B.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0_&&!1!==rt.enabled?(this.clipHeight=ot=Math.max(_-20-this.titleHeight-X,0),this.currentPage=M(this.currentPage,1),this.fullHeight=u,at.forEach(function(St,wt){St=(yt=St.legendItem||{}).y||0;var Mt=Math.round(yt.label.getBBox().height),Dt=et.length;(!Dt||St-et[Dt-1]>ot&&(nt||St)!==et[Dt-1])&&(et.push(nt||St),Dt++),yt.pageIx=Dt-1,nt&&((at[wt-1].legendItem||{}).pageIx=Dt-1),wt===at.length-1&&St+Mt-et[Dt-1]>ot&&Mt<=ot&&(et.push(St),yt.pageIx=Dt),St!==nt&&(nt=St)}),mt||(mt=a.clipRect=o.clipRect(0,X,9999,0),a.contentGroup.clip(mt)),st(ot),gt||(this.nav=gt=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,z,z).add(gt),H("upTracker").on("click",function(){a.scroll(-1,L)}),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&rt.style&&this.pager.css(rt.style),this.pager.add(gt),this.down=o.symbol("triangle-down",0,0,z,z).add(gt),H("downTracker").on("click",function(){a.scroll(1,L)})),a.scroll(0),u=_):gt&&(st(),this.nav=gt.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),u},d.prototype.scroll=function(u,a){var n=this,o=this.chart,m=this.pages,_=m.length,B=this.clipHeight,X=this.options.navigation,it=this.pager,rt=this.padding,L=this.currentPage+u;L>_&&(L=_),0=Math.max(Ie+Rt,He.pos)&&he<=Math.min(Ie+Rt+Ot.width,He.pos+He.len)||(_t.isInsidePlot=!1)}return!ft.ignoreY&&_t.isInsidePlot&&(Ct=ft.axis&&!ft.axis.isXAxis&&ft.axis||Ne&&(Ct?Ne.xAxis:Ne.yAxis)||{pos:Zt,len:1/0},(ft=ft.paneCoordinates?Ct.pos+xt:Zt+xt)>=Math.max(ye+Zt,Ct.pos)&&ft<=Math.min(ye+Zt+Ot.height,Ct.pos+Ct.len)||(_t.isInsidePlot=!1)),st(this,"afterIsInsidePlot",_t),_t.isInsidePlot},bt.prototype.redraw=function(_t){st(this,"beforeRedraw");var xt=this.hasCartesianSeries?this.axes:this.colorAxis||[],ft=this.series,Ct=this.pointer,Ot=this.legend,Rt=this.userOptions.legend,Zt=this.renderer,he=Zt.isHidden(),Ie=[],ye=this.isDirtyBox,Ne=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),S(!!this.hasRendered&&_t,this),he&&this.temporaryDisplay(),this.layOutTitles(),_t=ft.length;_t--;){var He=ft[_t];if(He.options.stacking||He.options.centerInCategory){var ze=!0;if(He.isDirty){var ii=!0;break}}}if(ii)for(_t=ft.length;_t--;)(He=ft[_t]).options.stacking&&(He.isDirty=!0);ft.forEach(function($e){$e.isDirty&&("point"===$e.options.legendType?("function"==typeof $e.updateTotals&&$e.updateTotals(),Ne=!0):Rt&&(Rt.labelFormatter||Rt.labelFormat)&&(Ne=!0)),$e.isDirtyData&&st($e,"updatedData")}),Ne&&Ot&&Ot.options.enabled&&(Ot.render(),this.isDirtyLegend=!1),ze&&this.getStacks(),xt.forEach(function($e){$e.updateNames(),$e.setScale()}),this.getMargins(),xt.forEach(function($e){$e.isDirty&&(ye=!0)}),xt.forEach(function($e){var Te=$e.min+","+$e.max;$e.extKey!==Te&&($e.extKey=Te,Ie.push(function(){st($e,"afterSetExtremes",et($e.eventArgs,$e.getExtremes())),delete $e.eventArgs})),(ye||ze)&&$e.redraw()}),ye&&this.drawChartBox(),st(this,"predraw"),ft.forEach(function($e){(ye||$e.isDirty)&&$e.visible&&$e.redraw(),$e.isDirtyData=!1}),Ct&&Ct.reset(!0),Zt.draw(),st(this,"redraw"),st(this,"render"),he&&this.temporaryDisplay(!0),Ie.forEach(function($e){$e.call()})},bt.prototype.get=function(_t){function xt(Rt){return Rt.id===_t||Rt.options&&Rt.options.id===_t}for(var ft=this.series,Ct=at(this.axes,xt)||at(this.series,xt),Ot=0;!Ct&&Otxt.pointCount))},bt.prototype.pan=function(_t,xt){var ft=this,Ct=ft.hoverPoints;xt="object"==typeof xt?xt:{enabled:xt,type:"x"};var Ot=ft.options.chart;Ot&&Ot.panning&&(Ot.panning=xt);var Zt,Rt=xt.type;st(this,"pan",{originalEvent:_t},function(){Ct&&Ct.forEach(function(ye){ye.setState()});var he=ft.xAxis;"xy"===Rt?he=he.concat(ft.yAxis):"y"===Rt&&(he=ft.yAxis);var Ie={};he.forEach(function(ye){if(ye.options.panningEnabled&&!ye.options.isInternal){var Ne=ye.horiz,He=_t[Ne?"chartX":"chartY"],ze=ft[Ne=Ne?"mouseDownX":"mouseDownY"],ii=ye.minPointOffset||0,$e=ye.reversed&&!ft.inverted||!ye.reversed&&ft.inverted?-1:1,Te=ye.getExtremes(),ke=ye.toValue(ze-He,!0)+ii*$e,We=ye.toValue(ze+ye.len-He,!0)-(ii*$e||ye.isXAxis&&ye.pointRangePadding||0),be=We=$e&&ke<=We&&(ye.setExtremes(ze,ke,!1,!1,{trigger:"pan"}),!ft.resetZoomButton&&ze!==$e&&ke!==We&&Rt.match("y")&&(ft.showResetZoom(),ye.displayBtn=!1),Zt=!0),Ie[Ne]=He)}}),St(Ie,function(ye,Ne){ft[Ne]=ye}),Zt&&ft.redraw(!1),X(ft.container,{cursor:"move"})})},bt}(),et(O.prototype,{callbacks:[],collectionsWithInit:{xAxis:[O.prototype.addAxis,[!0]],yAxis:[O.prototype.addAxis,[!1]],series:[O.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),O}),Y(q,"Core/Legend/LegendSymbol.js",[q["Core/Utilities.js"]],function(O){var $,W,U=O.extend,G=O.merge,Z=O.pick;return(W=$||($={})).drawLineMarker=function(V){var R=this.legendItem=this.legendItem||{},P=this.options,k=V.symbolWidth,E=V.symbolHeight,w=E/2,T=this.chart.renderer,y=R.group;V=V.baseline-Math.round(.3*V.fontMetrics.b);var A={},g=P.marker,v=0;this.chart.styledMode||(A={"stroke-width":Math.min(P.lineWidth||0,24)},P.dashStyle?A.dashstyle=P.dashStyle:"square"!==P.linecap&&(A["stroke-linecap"]="round")),R.line=T.path().addClass("highcharts-graph").attr(A).add(y),A["stroke-linecap"]&&(v=Math.min(R.line.strokeWidth(),k)/2),R.line.attr({d:[["M",v,V],["L",k-v,V]]}),g&&!1!==g.enabled&&k&&(P=Math.min(Z(g.radius,w),w),0===this.symbol.indexOf("url")&&(g=G(g,{width:E,height:E}),P=0),R.symbol=R=T.symbol(this.symbol,k/2-P,V-P,2*P,2*P,U({context:"legend"},g)).addClass("highcharts-point").add(y),R.isMarker=!0)},W.drawRectangle=function(V,R){R=R.legendItem||{};var P=V.symbolHeight,k=V.options.squareSymbol;R.symbol=this.chart.renderer.rect(k?(V.symbolWidth-P)/2:0,V.baseline-P+1,k?P:V.symbolWidth,P,Z(V.options.symbolRadius,P/2)).addClass("highcharts-point").attr({zIndex:3}).add(R.group)},$}),Y(q,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var O=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":O(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),Y(q,"Core/Series/Series.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Defaults.js"],q["Core/Foundation.js"],q["Core/Globals.js"],q["Core/Legend/LegendSymbol.js"],q["Core/Series/Point.js"],q["Core/Series/SeriesDefaults.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P,k){var E=O.animObject,w=O.setAnimation,T=U.defaultOptions,y=G.registerEventOptions,A=Z.hasTouch,g=Z.svg,v=Z.win,S=R.seriesTypes,N=k.arrayMax,j=k.arrayMin,M=k.clamp,D=k.cleanRecursively,I=k.correctFloat,b=k.defined,d=k.erase,u=k.error,a=k.extend,n=k.find,o=k.fireEvent,m=k.getNestedProperty,_=k.isArray,B=k.isNumber,X=k.isString,it=k.merge,rt=k.objectEach,L=k.pick,z=k.removeEvent,et=k.splat,at=k.syncTimeout;return O=function(){function st(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return st.prototype.init=function(H,ot){o(this,"init",{options:ot});var nt=this,yt=H.series;this.eventsToUnbind=[],nt.chart=H,nt.options=nt.setOptions(ot),ot=nt.options,nt.linkedSeries=[],nt.bindAxes(),a(nt,{name:ot.name,state:"",visible:!1!==ot.visible,selected:!0===ot.selected}),y(this,ot);var mt,gt=ot.events;(gt&>.click||ot.point&&ot.point.events&&ot.point.events.click||ot.allowPointSelect)&&(H.runTrackerClick=!0),nt.getColor(),nt.getSymbol(),nt.parallelArrays.forEach(function(St){nt[St+"Data"]||(nt[St+"Data"]=[])}),nt.isCartesian&&(H.hasCartesianSeries=!0),yt.length&&(mt=yt[yt.length-1]),nt._i=L(mt&&mt._i,-1)+1,nt.opacity=nt.options.opacity,H.orderSeries(this.insert(yt)),ot.dataSorting&&ot.dataSorting.enabled?nt.setDataSortingOptions():nt.points||nt.data||nt.setData(ot.data,!1),o(this,"afterInit")},st.prototype.is=function(H){return S[H]&&this instanceof S[H]},st.prototype.insert=function(H){var nt,ot=this.options.index;if(B(ot)){for(nt=H.length;nt--;)if(ot>=L(H[nt].options.index,H[nt]._i)){H.splice(nt+1,0,this);break}-1===nt&&H.unshift(this),nt+=1}else H.push(this);return L(nt,H.length-1)},st.prototype.bindAxes=function(){var yt,H=this,ot=H.options,nt=H.chart;o(this,"bindAxes",null,function(){(H.axisTypes||[]).forEach(function(gt){var mt=0;nt[gt].forEach(function(St){yt=St.options,(ot[gt]===mt&&!yt.isInternal||typeof ot[gt]<"u"&&ot[gt]===yt.id||typeof ot[gt]>"u"&&0===yt.index)&&(H.insert(St.series),H[gt]=St,St.isDirty=!0),yt.isInternal||mt++}),H[gt]||H.optionalAxis===gt||u(18,!0,nt)})}),o(this,"afterBindAxes")},st.prototype.updateParallelArrays=function(H,ot){var nt=H.series,yt=arguments,gt=B(ot)?function(mt){var St="y"===mt&&nt.toYData?nt.toYData(H):H[mt];nt[mt+"Data"][ot]=St}:function(mt){Array.prototype[ot].apply(nt[mt+"Data"],Array.prototype.slice.call(yt,2))};nt.parallelArrays.forEach(gt)},st.prototype.hasData=function(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0"u"&&B(yt)&&(Mt=this.xData.indexOf(yt,ot)),-1!==Mt&&typeof Mt<"u"&&this.cropped&&(Mt=Mt>=this.cropStart?Mt-this.cropStart:Mt),!wt&&B(Mt)&>[Mt]&>[Mt].touched&&(Mt=void 0),Mt},st.prototype.updateData=function(H,ot){var Mt,Dt,Pt,nt=this.options,yt=nt.dataSorting,gt=this.points,mt=[],St=this.requireSorting,wt=H.length===gt.length,Ft=!0;if(this.xIncrement=null,H.forEach(function(jt,Ut){var bt=b(jt)&&this.pointClass.prototype.optionsToObject.call({series:this},jt)||{},_t=bt.x;bt.id||B(_t)?(-1===(bt=this.findPointIndex(bt,Pt))||typeof bt>"u"?mt.push(jt):gt[bt]&&jt!==nt.data[bt]?(gt[bt].update(jt,!1,null,!1),gt[bt].touched=!0,St&&(Pt=bt+1)):gt[bt]&&(gt[bt].touched=!0),(!wt||Ut!==bt||yt&&yt.enabled||this.hasDerivedData)&&(Mt=!0)):mt.push(jt)},this),Mt)for(H=gt.length;H--;)(Dt=gt[H])&&!Dt.touched&&Dt.remove&&Dt.remove(!1,ot);else!wt||yt&&yt.enabled?Ft=!1:(H.forEach(function(jt,Ut){jt!==gt[Ut].y&>[Ut].update&>[Ut].update(jt,!1,null,!1)}),mt.length=0);return gt.forEach(function(jt){jt&&(jt.touched=!1)}),!!Ft&&(mt.forEach(function(jt){this.addPoint(jt,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=N(this.xData),this.autoIncrement()),!0)},st.prototype.setData=function(H,ot,nt,yt){void 0===ot&&(ot=!0);var gt=this,mt=gt.points,St=mt&&mt.length||0,wt=gt.options,Mt=gt.chart,Dt=wt.dataSorting,Pt=gt.xAxis,Ft=wt.turboThreshold,jt=this.xData,Ut=this.yData,bt=gt.pointArrayMap;bt=bt&&bt.length;var xt,_t=wt.keys,ft=0,Ct=1,Ot=null;if(!Mt.options.chart.allowMutatingData){wt.data&&delete gt.options.data,gt.userOptions.data&&delete gt.userOptions.data;var Rt=it(!0,H)}if(Rt=(H=Rt||H||[]).length,Dt&&Dt.enabled&&(H=this.sortData(H)),Mt.options.chart.allowMutatingData&&!1!==yt&&Rt&&St&&!gt.cropped&&!gt.hasGroupedData&>.visible&&!gt.boosted&&(xt=this.updateData(H,nt)),!xt){if(gt.xIncrement=null,gt.colorCounter=0,this.parallelArrays.forEach(function(Zt){gt[Zt+"Data"].length=0}),Ft&&Rt>Ft)if(Ot=gt.getFirstValidPoint(H),B(Ot))for(nt=0;ntgt?1:0}).forEach(function(gt,mt){gt.x=mt},this),ot.linkedSeries&&ot.linkedSeries.forEach(function(gt){var mt=gt.options,St=mt.data;mt.dataSorting&&mt.dataSorting.enabled||!St||(St.forEach(function(wt,Mt){St[Mt]=yt(gt,wt),H[Mt]&&(St[Mt].x=H[Mt].x,St[Mt].index=Mt)}),gt.setData(St,!1))}),H},st.prototype.getProcessedData=function(H){var ot=this.xAxis,nt=this.options,yt=nt.cropThreshold,gt=H||this.getExtremesFromAll||nt.getExtremesFromAll,mt=this.isCartesian;H=ot&&ot.val2lin,nt=!(!ot||!ot.logarithmic);var St=0,wt=this.xData,Mt=this.yData,Dt=this.requireSorting,Pt=!1,Ft=wt.length;if(ot){var jt=(Pt=ot.getExtremes()).min,Ut=Pt.max;Pt=!(!ot.categories||ot.names.length)}if(mt&&this.sorted&&!gt&&(!yt||Ft>yt||this.forceCrop))if(wt[Ft-1]Ut)wt=[],Mt=[];else if(this.yData&&(wt[0]Ut)){var bt=this.cropData(this.xData,this.yData,jt,Ut);wt=bt.xData,Mt=bt.yData,St=bt.start,bt=!0}for(yt=wt.length||1;--yt;)if(0<(ot=nt?H(wt[yt])-H(wt[yt-1]):wt[yt]-wt[yt-1])&&(typeof _t>"u"||ot<_t))var _t=ot;else 0>ot&&Dt&&!Pt&&(u(15,!1,this.chart),Dt=!1);return{xData:wt,yData:Mt,cropped:bt,cropStart:St,closestPointRange:_t}},st.prototype.processData=function(H){var ot=this.xAxis;if(this.isCartesian&&!this.isDirty&&!ot.isDirty&&!this.yAxis.isDirty&&!H)return!1;H=this.getProcessedData(),this.cropped=H.cropped,this.cropStart=H.cropStart,this.processedXData=H.xData,this.processedYData=H.yData,this.closestPointRange=this.basePointRange=H.closestPointRange,o(this,"afterProcessData")},st.prototype.cropData=function(H,ot,nt,yt,gt){var St,mt=H.length,wt=0,Mt=mt;for(gt=L(gt,this.cropShoulder),St=0;St=nt){wt=Math.max(0,St-gt);break}for(nt=St;ntyt){Mt=nt+gt;break}return{xData:H.slice(wt,Mt),yData:ot.slice(wt,Mt),start:wt,end:Mt}},st.prototype.generatePoints=function(){var H=this.options,ot=this.processedData||H.data,nt=this.processedXData,yt=this.processedYData,gt=this.pointClass,mt=nt.length,St=this.cropStart||0,wt=this.hasGroupedData,Mt=H.keys,Dt=[];H=H.dataGrouping&&H.dataGrouping.groupAll?St:0;var Pt,Ft,jt=this.data;if(!jt&&!wt){var Ut=[];Ut.length=ot.length,jt=this.data=Ut}for(Mt&&wt&&(this.options.keys=!1),Ft=0;Ft"u"||(jt[Ut]=bt=(new gt).init(this,ot[Ut],nt[Ft]));bt&&(bt.index=wt?H+Ft:Ut,Dt[Ft]=bt)}if(this.options.keys=Mt,jt&&(mt!==(Pt=jt.length)||wt))for(Ft=0;Ft=Mt&&(gt[wt-St]||Ut)<=Dt,bt&&Ut)if(bt=jt.length)for(;bt--;)B(jt[bt])&&(mt[Pt++]=jt[bt]);else mt[Pt++]=jt}return H={activeYData:mt,dataMin:j(mt),dataMax:N(mt)},o(this,"afterGetExtremes",{dataExtremes:H}),H},st.prototype.applyExtremes=function(){var H=this.getExtremes();return this.dataMin=H.dataMin,this.dataMax=H.dataMax,H},st.prototype.getFirstValidPoint=function(H){for(var ot=H.length,nt=0,yt=null;null===yt&&nt=Zt&&(Zt=void 0),xt.total=xt.stackTotal=L(Ct.total),xt.percentage=b(xt.y)&&Ct.total?xt.y/Ct.total*100:void 0,xt.stackY=Rt,this.irregularWidths||Ct.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(xt.yBottom=b(Zt)?M(mt.translate(Zt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Rt=this.dataModify.modifyValue(Rt,Ut)),xt.plotY=void 0,B(Rt)&&typeof(Ct=mt.translate(Rt,!1,!0,!1,!0))<"u"&&(xt.plotY=M(Ct,-1e5,1e5)),xt.isInside=this.isPointInside(xt),xt.clientX=Dt?I(nt.translate(ft,0,0,0,1,Mt)):bt,xt.negative=xt[jt]<(H[jt+"Threshold"]||Pt||0),xt.category=L(yt&&yt[xt.x],xt.x),!xt.isNull&&!1!==xt.visible){typeof ye<"u"&&(_t=Math.min(_t,Math.abs(bt-ye)));var ye=bt}xt.zone=this.zones.length?xt.getZone():void 0,!xt.graphic&&this.group&>&&(xt.isNew=!0)}this.closestPointRangePx=_t,o(this,"afterTranslate")},st.prototype.getValidPoints=function(H,ot,nt){var yt=this.chart;return(H||this.points||[]).filter(function(gt){return!(ot&&!yt.isInsidePlot(gt.plotX,gt.plotY,{inverted:yt.inverted}))&&!1!==gt.visible&&(nt||!gt.isNull)})},st.prototype.getClipBox=function(){var H=this.chart,ot=this.xAxis,nt=this.yAxis,yt=it(H.clipBox);return ot&&ot.len!==H.plotSizeX&&(yt.width=ot.len),nt&&nt.len!==H.plotSizeY&&(yt.height=nt.len),yt},st.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},st.prototype.setClip=function(){var H=this.chart,ot=this.group,nt=this.markerGroup,yt=H.sharedClips;H=H.renderer;var gt=this.getClipBox(),mt=this.getSharedClipKey(),St=yt[mt];St?St.animate(gt):yt[mt]=St=H.clipRect(gt),ot&&ot.clip(!1===this.options.clip?void 0:St),nt&&nt.clip()},st.prototype.animate=function(H){var ot=this.chart,nt=this.group,yt=this.markerGroup,gt=ot.inverted,mt=E(this.options.animation),St=[this.getSharedClipKey(),mt.duration,mt.easing,mt.defer].join(),wt=ot.sharedClips[St],Mt=ot.sharedClips[St+"m"];if(H&&nt)mt=this.getClipBox(),wt?wt.attr("height",mt.height):(mt.width=0,gt&&(mt.x=ot.plotHeight),wt=ot.renderer.clipRect(mt),ot.sharedClips[St]=wt,Mt=ot.renderer.clipRect({x:-99,y:-99,width:gt?ot.plotWidth+199:99,height:gt?99:ot.plotHeight+199}),ot.sharedClips[St+"m"]=Mt),nt.clip(wt),yt&&yt.clip(Mt);else if(wt&&!wt.hasClass("highcharts-animating")){ot=this.getClipBox();var Dt=mt.step;yt&&yt.element.childNodes.length&&(mt.step=function(Pt,Ft){Dt&&Dt.apply(Ft,arguments),"width"===Ft.prop&&Mt&&Mt.element&&Mt.attr(gt?"height":"width",Pt+99)}),wt.addClass("highcharts-animating").animate(ot,mt)}},st.prototype.afterAnimate=function(){var H=this;this.setClip(),rt(this.chart.sharedClips,function(ot,nt,yt){ot&&!H.chart.container.querySelector('[clip-path="url(#'.concat(ot.id,')"]'))&&(ot.destroy(),delete yt[nt])}),this.finishedAnimating=!0,o(this,"afterAnimate")},st.prototype.drawPoints=function(H){void 0===H&&(H=this.points);var Mt,Dt,ot=this.chart,nt=ot.styledMode,yt=this.colorAxis,gt=this.options.marker,mt=this[this.specialGroup||"markerGroup"],St=this.xAxis,wt=L(gt.enabled,!(St&&!St.isRadial)||null,this.closestPointRangePx>=gt.enabledThreshold*gt.radius);if(!1!==gt.enabled||this._hasPointMarkers)for(Mt=0;Mt"u"||jt.enabled)&&!Pt.isNull&&!1!==Pt.visible){var bt=L(jt.symbol,this.symbol,"rect"),_t=this.markerAttribs(Pt,Pt.selected&&"select");this.enabledDataSorting&&(Pt.startXPos=St.reversed?-(_t.width||0):St.width);var xt=!1!==Pt.isInside;!Dt&&xt&&(0<(_t.width||0)||Pt.hasImage)&&(Pt.graphic=Dt=ot.renderer.symbol(bt,_t.x,_t.y,_t.width,_t.height,Ut?jt:gt).add(mt),this.enabledDataSorting&&ot.hasRendered&&(Dt.attr({x:Pt.startXPos}),Ft="animate")),Dt&&"animate"===Ft&&Dt[xt?"show":"hide"](xt).animate(_t),Dt&&(jt=this.pointAttribs(Pt,nt||!Pt.selected?void 0:"select"),nt?yt&&Dt.css({fill:jt.fill}):Dt[Ft](jt)),Dt&&Dt.addClass(Pt.getClassName(),!0)}else Dt&&(Pt.graphic=Dt.destroy())}},st.prototype.markerAttribs=function(H,ot){var nt=this.options,yt=nt.marker,gt=H.marker||{},mt=gt.symbol||yt.symbol,St={},wt=L(gt.radius,yt&&yt.radius);return ot&&(yt=yt.states[ot],ot=gt.states&>.states[ot],wt=L(ot&&ot.radius,yt&&yt.radius,wt&&wt+(yt&&yt.radiusPlus||0))),H.hasImage=mt&&0===mt.indexOf("url"),H.hasImage&&(wt=0),H=H.pos(),B(wt)&&H&&(St.x=H[0]-wt,St.y=H[1]-wt,nt.crisp&&(St.x=Math.floor(St.x))),wt&&(St.width=St.height=2*wt),St},st.prototype.pointAttribs=function(H,ot){var nt=this.options.marker,yt=H&&H.options,gt=yt&&yt.marker||{},mt=yt&&yt.color,St=H&&H.color,wt=H&&H.zone&&H.zone.color,Mt=this.color;return H=L(gt.lineWidth,nt.lineWidth),yt=1,Mt=mt||wt||St||Mt,mt=gt.fillColor||nt.fillColor||Mt,St=gt.lineColor||nt.lineColor||Mt,ot=ot||"normal",nt=nt.states[ot]||{},ot=gt.states&>.states[ot]||{},H=L(ot.lineWidth,nt.lineWidth,H+L(ot.lineWidthPlus,nt.lineWidthPlus,0)),mt=ot.fillColor||nt.fillColor||mt,{stroke:St=ot.lineColor||nt.lineColor||St,"stroke-width":H,fill:mt,opacity:yt=L(ot.opacity,nt.opacity,yt)}},st.prototype.destroy=function(H){var St,wt,Mt,ot=this,nt=ot.chart,yt=/AppleWebKit\/533/.test(v.navigator.userAgent),gt=ot.data||[];for(o(ot,"destroy",{keepEventsForUpdate:H}),this.removeEvents(H),(ot.axisTypes||[]).forEach(function(Dt){(Mt=ot[Dt])&&Mt.series&&(d(Mt.series,ot),Mt.isDirty=Mt.forceRedraw=!0)}),ot.legendItem&&ot.chart.legend.destroyItem(ot),St=gt.length;St--;)(wt=gt[St])&&wt.destroy&&wt.destroy();ot.clips&&ot.clips.forEach(function(Dt){return Dt.destroy()}),k.clearTimeout(ot.animationTimeout),rt(ot,function(Dt,Pt){Dt instanceof P&&!Dt.survive&&Dt[yt&&"group"===Pt?"hide":"destroy"]()}),nt.hoverSeries===ot&&(nt.hoverSeries=void 0),d(nt.series,ot),nt.orderSeries(),rt(ot,function(Dt,Pt){H&&"hcEvents"===Pt||delete ot[Pt]})},st.prototype.applyZones=function(){var Pt,Ft,jt,Ut,bt,_t,xt,ft,H=this,ot=this.chart,nt=ot.renderer,yt=this.zones,gt=this.clips||[],mt=this.graph,St=this.area,wt=Math.max(ot.plotWidth,ot.plotHeight),Mt=this[(this.zoneAxis||"y")+"Axis"],Dt=ot.inverted,Ct=!1;if(yt.length&&(mt||St)&&Mt&&typeof Mt.min<"u"){var Ot=Mt.reversed,Rt=Mt.horiz;mt&&!this.showLine&&mt.hide(),St&&St.hide();var Zt=Mt.getExtremes();yt.forEach(function(he,Ie){Pt=Ot?Rt?ot.plotWidth:0:Rt?0:Mt.toPixels(Zt.min)||0,Pt=M(L(Ft,Pt),0,wt),Ft=M(Math.round(Mt.toPixels(L(he.value,Zt.max),!0)||0),0,wt),Ct&&(Pt=Ft=Mt.toPixels(Zt.max)),Ut=Math.abs(Pt-Ft),bt=Math.min(Pt,Ft),_t=Math.max(Pt,Ft),Mt.isXAxis?(jt={x:Dt?_t:bt,y:0,width:Ut,height:wt},Rt||(jt.x=ot.plotHeight-jt.x)):(jt={x:0,y:Dt?_t:bt,width:wt,height:Ut},Rt&&(jt.y=ot.plotWidth-jt.y)),Dt&&nt.isVML&&(jt=Mt.isXAxis?{x:0,y:Ot?bt:_t,height:jt.width,width:ot.chartWidth}:{x:jt.y-ot.plotLeft-ot.spacingBox.x,y:0,width:jt.height,height:ot.chartHeight}),gt[Ie]?gt[Ie].animate(jt):gt[Ie]=nt.clipRect(jt),xt=H["zone-area-"+Ie],ft=H["zone-graph-"+Ie],mt&&ft&&ft.clip(gt[Ie]),St&&xt&&xt.clip(gt[Ie]),Ct=he.value>Zt.max,H.resetZones&&0===Ft&&(Ft=void 0)}),this.clips=gt}else H.visible&&(mt&&mt.show(),St&&St.show())},st.prototype.plotGroup=function(H,ot,nt,yt,gt){var mt=this[H],St=!mt;return nt={visibility:nt,zIndex:yt||.1},typeof this.opacity>"u"||this.chart.styledMode||"inactive"===this.state||(nt.opacity=this.opacity),St&&(this[H]=mt=this.chart.renderer.g().add(gt)),mt.addClass("highcharts-"+ot+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(b(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(mt.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),mt.attr(nt)[St?"attr":"animate"](this.getPlotBox(ot)),mt},st.prototype.getPlotBox=function(H){var ot=this.xAxis,nt=this.yAxis,yt=this.chart;return H=yt.inverted&&!yt.polar&&ot&&!1!==this.invertible&&"series"===H,yt.inverted&&(ot=nt,nt=this.xAxis),{translateX:ot?ot.left:yt.plotLeft,translateY:nt?nt.top:yt.plotTop,rotation:H?90:0,rotationOriginX:H?(ot.len-nt.len)/2:0,rotationOriginY:H?(ot.len+nt.len)/2:0,scaleX:H?-1:1,scaleY:1}},st.prototype.removeEvents=function(H){H||z(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(ot){ot()}),this.eventsToUnbind.length=0)},st.prototype.render=function(){var H=this,ot=H.chart,nt=H.options,yt=E(nt.animation),gt=H.visible?"inherit":"hidden",mt=nt.zIndex,St=H.hasRendered,wt=ot.seriesGroup;ot=!H.finishedAnimating&&ot.renderer.isSVG?yt.duration:0,o(this,"render"),H.plotGroup("group","series",gt,mt,wt),H.markerGroup=H.plotGroup("markerGroup","markers",gt,mt,wt),!1!==nt.clip&&H.setClip(),H.animate&&ot&&H.animate(!0),H.drawGraph&&(H.drawGraph(),H.applyZones()),H.visible&&H.drawPoints(),H.drawDataLabels&&H.drawDataLabels(),H.redrawPoints&&H.redrawPoints(),H.drawTracker&&!1!==H.options.enableMouseTracking&&H.drawTracker(),H.animate&&ot&&H.animate(),St||(ot&&yt.defer&&(ot+=yt.defer),H.animationTimeout=at(function(){H.afterAnimate()},ot||0)),H.isDirty=!1,H.hasRendered=!0,o(H,"afterRender")},st.prototype.redraw=function(){var H=this.isDirty||this.isDirtyData;this.translate(),this.render(),H&&delete this.kdTree},st.prototype.searchPoint=function(H,ot){var nt=this.xAxis,yt=this.yAxis,gt=this.chart.inverted;return this.searchKDTree({clientX:gt?nt.len-H.chartY+nt.pos:H.chartX-nt.pos,plotY:gt?yt.len-H.chartX+yt.pos:H.chartY-yt.pos},ot,H)},st.prototype.buildKDTree=function(H){function ot(gt,mt,St){var wt=gt&>.length;if(wt){var Mt=nt.kdAxisArray[mt%St];return gt.sort(function(Dt,Pt){return Dt[Mt]-Pt[Mt]}),{point:gt[wt=Math.floor(wt/2)],left:ot(gt.slice(0,wt),mt+1,St),right:ot(gt.slice(wt+1),mt+1,St)}}}this.buildingKdTree=!0;var nt=this,yt=-1(Ut=Mt[Ut]-jt[Ut])?"right":"left",Dt[xt=0>Ut?"left":"right"]&&(bt=(xt=yt(Mt,Dt[xt],Pt+1,Ft))[wt]Ut;)bt--;this.updateParallelArrays(jt,"splice",bt,0,0),this.updateParallelArrays(jt,bt),Mt&&jt.name&&(Mt[Ut]=jt.name),Dt.splice(bt,0,H),(Ft||this.processedData)&&(this.data.splice(bt,0,null),this.processData()),"point"===mt.legendType&&this.generatePoints(),nt&&(St[0]&&St[0].remove?St[0].remove(!1):(St.shift(),this.updateParallelArrays(jt,"shift"),Dt.shift())),!1!==gt&&o(this,"addPoint",{point:jt}),this.isDirtyData=this.isDirty=!0,ot&&wt.redraw(yt)},st.prototype.removePoint=function(H,ot,nt){var yt=this,gt=yt.data,mt=gt[H],St=yt.points,wt=yt.chart,Mt=function(){St&&St.length===gt.length&&St.splice(H,1),gt.splice(H,1),yt.options.data.splice(H,1),yt.updateParallelArrays(mt||{series:yt},"splice",H,1),mt&&mt.destroy(),yt.isDirty=!0,yt.isDirtyData=!0,ot&&wt.redraw()};w(nt,wt),ot=L(ot,!0),mt?mt.firePointEvent("remove",null,Mt):Mt()},st.prototype.remove=function(H,ot,nt,yt){function gt(){mt.destroy(yt),St.isDirtyLegend=St.isDirtyBox=!0,St.linkSeries(),L(H,!0)&&St.redraw(ot)}var mt=this,St=mt.chart;!1!==nt?o(mt,"remove",null,gt):gt()},st.prototype.update=function(H,ot){H=D(H,this.userOptions),o(this,"update",{options:H});var nt=this,yt=nt.chart,gt=nt.userOptions,mt=nt.initialType||nt.type,St=yt.options.plotOptions,wt=S[mt].prototype,Mt=nt.finishedAnimating&&{animation:!1},Dt={},Pt=["eventOptions","navigatorSeries","baseSeries"],Ft=H.type||gt.type||yt.options.chart.type,jt=!(this.hasDerivedData||Ft&&Ft!==this.type||typeof H.pointStart<"u"||typeof H.pointInterval<"u"||typeof H.relativeXValue<"u"||H.joinBy||H.mapData||nt.hasOptionChanged("dataGrouping")||nt.hasOptionChanged("pointStart")||nt.hasOptionChanged("pointInterval")||nt.hasOptionChanged("pointIntervalUnit")||nt.hasOptionChanged("keys"));if(Ft=Ft||mt,jt&&(Pt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==H.visible&&Pt.push("area","graph"),nt.parallelArrays.forEach(function(bt){Pt.push(bt+"Data")}),H.data&&(H.dataSorting&&a(nt.options.dataSorting,H.dataSorting),this.setData(H.data,!1))),H=it(gt,Mt,{index:typeof gt.index>"u"?nt.index:gt.index,pointStart:L(St&&St.series&&St.series.pointStart,gt.pointStart,nt.xData[0])},!jt&&{data:nt.options.data},H),jt&&H.data&&(H.data=nt.options.data),(Pt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(Pt)).forEach(function(bt){Pt[bt]=nt[bt],delete nt[bt]}),St=!1,S[Ft]){if(St=Ft!==nt.type,nt.remove(!1,!1,!1,!0),St)if(Object.setPrototypeOf)Object.setPrototypeOf(nt,S[Ft].prototype);else{for(Ut in Mt=Object.hasOwnProperty.call(nt,"hcEvents")&&nt.hcEvents,wt)nt[Ut]=void 0;a(nt,S[Ft].prototype),Mt?nt.hcEvents=Mt:delete nt.hcEvents}}else u(17,!0,yt,{missingModuleFor:Ft});if(Pt.forEach(function(bt){nt[bt]=Pt[bt]}),nt.init(yt,H),jt&&this.points){if(!1===(H=nt.options).visible)Dt.graphic=1,Dt.dataLabel=1;else if(!nt._hasPointLabels){wt=H.marker;var Ut=H.dataLabels;gt=gt.marker||{},!wt||!1!==wt.enabled&>.symbol===wt.symbol&>.height===wt.height&>.width===wt.width||(Dt.graphic=1),Ut&&!1===Ut.enabled&&(Dt.dataLabel=1)}for(gt=0,wt=this.points;gt"u"?!mt:H)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(wt){nt[wt]&&nt[wt][St]()}),(yt.hoverSeries===nt||(yt.hoverPoint&&yt.hoverPoint.series)===nt)&&nt.onMouseOut(),nt.legendItem&&yt.legend.colorizeItem(nt,H),nt.isDirty=!0,nt.options.stacking&&yt.series.forEach(function(wt){wt.options.stacking&&wt.visible&&(wt.isDirty=!0)}),nt.linkedSeries.forEach(function(wt){wt.setVisible(H,!1)}),gt&&(yt.isDirtyBox=!0),o(nt,St),!1!==ot&&yt.redraw()},st.prototype.show=function(){this.setVisible(!0)},st.prototype.hide=function(){this.setVisible(!1)},st.prototype.select=function(H){this.selected=H=this.options.selected=typeof H>"u"?!this.selected:H,this.checkbox&&(this.checkbox.checked=H),o(this,H?"select":"unselect")},st.prototype.shouldShowTooltip=function(H,ot,nt){return void 0===nt&&(nt={}),nt.series=this,nt.visiblePlotOnly=!0,this.chart.isInsidePlot(H,ot,nt)},st.defaultOptions=V,st.types=R.seriesTypes,st.registerType=R.registerSeriesType,st}(),a(O.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:W,requireSorting:!0,sorted:!0}),R.series=O,O}),Y(q,"Extensions/ScrollablePlotArea.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Axis/Axis.js"],q["Core/Chart/Chart.js"],q["Core/Series/Series.js"],q["Core/Renderer/RendererRegistry.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W){var V=O.stop,R=W.addEvent,P=W.createElement,k=W.defined,E=W.merge,w=W.pick;R(G,"afterSetChartSize",function(T){var y=this.options.chart.scrollablePlotArea,A=y&&y.minWidth;if(y=y&&y.minHeight,!this.renderer.forExport){if(A){if(this.scrollablePixelsX=A=Math.max(0,A-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=E(this.plotBox),this.plotBox.width=this.plotWidth+=A,this.inverted?this.clipBox.height+=A:this.clipBox.width+=A;var g={1:{name:"right",value:A}}}}else y&&(this.scrollablePixelsY=A=Math.max(0,y-this.chartHeight),k(A)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=E(this.plotBox),this.plotBox.height=this.plotHeight+=A,this.inverted?this.clipBox.width+=A:this.clipBox.height+=A,g={2:{name:"bottom",value:A}}));g&&!T.skipAxes&&this.axes.forEach(function(v){g[v.side]?v.getPlotLinePath=function(){var S=g[v.side].name,N=this[S];this[S]=N-g[v.side].value;var j=U.prototype.getPlotLinePath.apply(this,arguments);return this[S]=N,j}:(v.setAxisSize(),v.setAxisTranslation())})}}),R(G,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),G.prototype.setUpScrolling=function(){var A,T=this,y={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(y.overflowX="auto"),this.scrollablePixelsY&&(y.overflowY="auto"),this.scrollingParent=P("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=P("div",{className:"highcharts-scrolling"},y,this.scrollingParent),R(this.scrollingContainer,"scroll",function(){T.pointer&&(delete T.pointer.chartPosition,T.hoverPoint&&(A=T.hoverPoint),T.pointer.runPointActions(void 0,A,!0))}),this.innerContainer=P("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},G.prototype.moveFixedElements=function(){var g,T=this.container,y=this.fixedRenderer,A=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?g=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis"),g&&A.push(g+":not(.highcharts-radial-axis)",g+"-labels:not(.highcharts-radial-axis-labels)"),A.forEach(function(v){[].forEach.call(T.querySelectorAll(v),function(S){(S.namespaceURI===y.SVG_NS?y.box:y.box.parentNode).appendChild(S),S.style.pointerEvents="auto"})})},G.prototype.applyFixed=function(){var T=!this.fixedDiv,y=this.options.chart,A=y.scrollablePlotArea,g=$.getRendererType();T?(this.fixedDiv=P("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(y.style&&y.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=y=new g(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":w(A.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),R(this,"afterShowResetZoom",this.moveFixedElements),R(this,"afterApplyDrilldown",this.moveFixedElements),R(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||T)&&(this.scrollableDirty=!1,this.moveFixedElements()),y=this.chartWidth+(this.scrollablePixelsX||0),g=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=y+"px",this.container.style.height=g+"px",this.renderer.boxWrapper.attr({width:y,height:g,viewBox:[0,0,y,g].join(" ")}),this.chartBackground.attr({width:y,height:g}),this.scrollingContainer.style.height=this.chartHeight+"px",T&&(A.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*A.scrollPositionX),A.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*A.scrollPositionY)),g=this.axisOffset,T=this.plotTop-g[0]-1,A=this.plotLeft-g[3]-1,y=this.plotTop+this.plotHeight+g[2]+1,g=this.plotLeft+this.plotWidth+g[1]+1;var v=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),S=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);T=this.scrollablePixelsX?[["M",0,T],["L",this.plotLeft-1,T],["L",this.plotLeft-1,y],["L",0,y],["Z"],["M",v,T],["L",this.chartWidth,T],["L",this.chartWidth,y],["L",v,y],["Z"]]:this.scrollablePixelsY?[["M",A,0],["L",A,this.plotTop-1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",A,S],["L",A,this.chartHeight],["L",g,this.chartHeight],["L",g,S],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:T})},R(U,"afterInit",function(){this.chart.scrollableDirty=!0}),R(Z,"show",function(){this.chart.scrollableDirty=!0})}),Y(q,"Core/Axis/Stacking/StackItem.js",[q["Core/FormatUtilities.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G){var Z=O.format,$=U.series,W=G.destroyObjectProperties,V=G.pick,R=G.isNumber;return O=function(){function P(k,E,w,T,y){var A=k.chart.inverted,g=k.reversed;this.axis=k,k=this.isNegative=!!w!=!!g,this.options=E=E||{},this.x=T,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=y,this.rightCliff=this.leftCliff=0,this.alignOptions={align:E.align||(A?k?"left":"right":"center"),verticalAlign:E.verticalAlign||(A?"middle":k?"bottom":"top"),y:E.y,x:E.x},this.textAlign=E.textAlign||(A?k?"right":"left":"center")}return P.prototype.destroy=function(){W(this,this.axis)},P.prototype.render=function(k){var E=this.axis.chart,w=this.options,T=w.format;T=T?Z(T,this,E):w.formatter.call(this),this.label?this.label.attr({text:T,visibility:"hidden"}):(this.label=E.renderer.label(T,null,void 0,w.shape,void 0,void 0,w.useHTML,!1,"stack-labels"),T={r:w.borderRadius||0,text:T,padding:V(w.padding,5),visibility:"hidden"},E.styledMode||(T.fill=w.backgroundColor,T.stroke=w.borderColor,T["stroke-width"]=w.borderWidth,this.label.css(w.style||{})),this.label.attr(T),this.label.added||this.label.add(k)),this.label.labelrank=E.plotSizeY},P.prototype.setOffset=function(k,E,w,T,y,A){var g=this.alignOptions,v=this.axis,S=this.label,N=this.options,j=this.textAlign,M=v.chart;k=this.getStackBox({xOffset:k,width:E,boxBottom:w,boxTop:T,defaultX:y,xAxis:A}),y=g.verticalAlign,S&&k&&(E=S.getBBox(),w=S.padding,T="justify"===V(N.overflow,"justify"),g.x=N.x||0,g.y=N.y||0,j=(y=this.adjustStackPosition({labelBox:E,verticalAlign:y,textAlign:j})).x,y=y.y,k.x-=j,k.y-=y,S.align(g,!1,k),(j=M.isInsidePlot(S.alignAttr.x+g.x+j,S.alignAttr.y+g.y+y))||(T=!1),T&&$.prototype.justifyDataLabel.call(v,S,g,S.alignAttr,E,k),S.attr({x:S.alignAttr.x,y:S.alignAttr.y,rotation:N.rotation,rotationOriginX:E.width/2,rotationOriginY:E.height/2}),V(!T&&N.crop,!0)&&(j=R(S.x)&&R(S.y)&&M.isInsidePlot(S.x-w+S.width,S.y)&&M.isInsidePlot(S.x+w,S.y)),S[j?"show":"hide"]())},P.prototype.adjustStackPosition=function(k){var E=k.labelBox,w={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:E.width/2+E.width/2*w[k.textAlign],y:E.height/2*w[k.verticalAlign]}},P.prototype.getStackBox=function(k){var E=this.axis,w=E.chart,T=k.boxTop,y=k.defaultX,A=k.xOffset,g=k.width,v=k.boxBottom;return T=E.stacking.usePercentage?100:V(T,this.total,0),T=E.toPixels(T),k=V(y,(k.xAxis||w.xAxis[0]).toPixels(this.x))+A,E=E.toPixels(v||0),E=Math.abs(T-E),v=this.isNegative,w.inverted?{x:(v?T:T-E)-w.plotLeft,y:k-w.plotTop,width:E,height:g}:{x:k-w.plotLeft,y:(v?T-E:T)-w.plotTop,width:g,height:E}},P}()}),Y(q,"Core/Axis/Stacking/StackingAxis.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Axis/Axis.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Axis/Stacking/StackItem.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$){function W(){var a=this,n=a.inverted;a.yAxis.forEach(function(o){o.stacking&&o.stacking.stacks&&o.hasVisibleSeries&&(o.stacking.oldStacks=o.stacking.stacks)}),a.series.forEach(function(o){var m=o.xAxis&&o.xAxis.options||{};!o.options.stacking||!0!==o.visible&&!1!==a.options.chart.ignoreHiddenSeries||(o.stackKey=[o.type,b(o.options.stack,""),n?m.top:m.left,n?m.height:m.width].join())})}function V(){var a=this.stacking;if(a){var n=a.stacks;I(n,function(o,m){N(o),n[m]=null}),a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function R(){"yAxis"!==this.coll||this.stacking||(this.stacking=new d(this))}function P(a,n,o,m){return!S(a)||a.x!==n||m&&a.stackKey!==m?a={x:n,index:0,key:m,stackKey:m}:a.index++,a.key=[o,n,a.index].join(),a}function k(){var B,a=this,n=a.stackKey,o=a.yAxis.stacking.stacks,m=a.processedXData,_=a[a.options.stacking+"Stacker"];_&&[n,"-"+n].forEach(function(X){for(var rt,L,it=m.length;it--;)rt=m[it],B=a.getStackIndicator(B,rt,a.index,X),(L=(rt=o[X]&&o[X][rt])&&rt.points[B.key])&&_.call(a,L,rt,it)})}function E(a,n,o){n=n.total?100/n.total:0,a[0]=v(a[0]*n),a[1]=v(a[1]*n),this.stackedYData[o]=a[1]}function w(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1A&&k.shadow)),v&&(v.startX=E.xMap,v.isArea=E.isArea)})},R.prototype.getGraphPath=function(P,k,E){var g,w=this,T=w.options,y=[],A=[],v=T.step,S=(P=P||w.points).reversed;return S&&P.reverse(),(v={right:1,center:2}[v]||v&&3)&&S&&(v=4-v),(P=this.getValidPoints(P,!1,!(T.connectNulls&&!k&&!E))).forEach(function(N,j){var M=N.plotX,D=N.plotY,I=P[j-1];(N.leftCliff||I&&I.rightCliff)&&!E&&(g=!0),N.isNull&&!$(k)&&0P&&S>T?N=2*T-(S=Math.max(P,T)):SE&&N>T?S=2*T-(N=Math.max(E,T)):N"u"&&(o[m]=_++);var et=o[m]}else!1!==z.grouping&&(et=_++);rt.columnIndex=et}});var B=Math.min(Math.abs(u.transA)*(u.ordinal&&u.ordinal.slope||d.pointRange||u.closestPointRange||u.tickInterval||1),u.len),X=B*d.groupPadding,it=(B-2*X)/(_||1);return d=Math.min(d.maxPointWidth||u.len,j(d.pointWidth,it*(1-2*d.pointPadding))),b.columnMetrics={width:d,offset:(it-d)/2+(X+((b.columnIndex||0)+(n?1:0))*it-B/2)*(n?-1:1),paddedWidth:it,columnCount:_},b.columnMetrics},I.prototype.crispCol=function(b,d,u,a){var n=this.chart,o=this.borderWidth,m=-(o%2?.5:0);return o=o%2?.5:1,n.inverted&&n.renderer.isVML&&(o+=1),this.options.crisp&&(u=Math.round(b+u)+m,u-=b=Math.round(b)+m),a=Math.round(d+a)+o,m=.5>=Math.abs(d)&&.5b.closestPointRange*b.xAxis.transA;a=b.borderWidth=j(u.borderWidth,a?0:1);var n=b.xAxis,o=b.yAxis,m=u.threshold,_=b.translatedThreshold=o.getThreshold(m),B=j(u.minPointLength,5),X=b.getColumnMetrics(),it=X.width,rt=b.pointXOffset=X.offset,L=b.dataMin,z=b.dataMax,et=b.barW=Math.max(it,1+2*a);d.inverted&&(_-=.5),u.pointPadding&&(et=Math.ceil(et)),W.prototype.translate.apply(b),b.points.forEach(function(at){var st=j(at.yBottom,_),H=999+Math.abs(st),ot=at.plotX||0;H=T(at.plotY,-H,o.len+H);var nt=Math.min(H,st),yt=Math.max(H,st)-nt,gt=it,mt=ot+rt,St=et;B&&Math.abs(yt)B?st-B:_-(ot?B:0)),y(at.options.pointWidth)&&(gt=St=Math.ceil(at.options.pointWidth),mt-=Math.round((gt-it)/2)),u.centerInCategory&&(mt=b.adjustForMissingColumns(mt,gt,at,X)),at.barX=mt,at.pointWidth=gt,at.tooltipPos=d.inverted?[T(o.len+o.pos-d.plotLeft-H,o.pos-d.plotLeft,o.len+o.pos-d.plotLeft),n.len+n.pos-d.plotTop-mt-St/2,yt]:[n.left-d.plotLeft+mt+St/2,T(H+o.pos-d.plotTop,o.pos-d.plotTop,o.len+o.pos-d.plotTop),yt],at.shapeType=b.pointClass.prototype.shapeType||"rect",at.shapeArgs=b.crispCol.apply(b,at.isNull?[mt,_,St,0]:[mt,nt,St,yt])})},I.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},I.prototype.pointAttribs=function(b,d){var u=this.options,a=this.pointAttrToOptions||{},n=a.stroke||"borderColor",o=a["stroke-width"]||"borderWidth",m=b&&b.color||this.color,_=b&&b[n]||u[n]||m;a=b&&b.options.dashStyle||u.dashStyle;var B=b&&b[o]||u[o]||this[o]||0,X=j(b&&b.opacity,u.opacity,1);if(b&&this.zones.length){var it=b.getZone();m=b.options.color||it&&(it.color||b.nonZonedColor)||this.color,it&&(_=it.borderColor||_,a=it.dashStyle||a,B=it.borderWidth||B)}return d&&b&&(d=(b=N(u.states[d],b.options.states&&b.options.states[d]||{})).brightness,m=b.color||typeof d<"u"&&E(m).brighten(b.brightness).get()||m,_=b[n]||_,B=b[o]||B,a=b.dashStyle||a,X=j(b.opacity,X)),n={fill:m,stroke:_,"stroke-width":B,opacity:X},a&&(n.dashstyle=a),n},I.prototype.drawPoints=function(b){void 0===b&&(b=this.points);var m,d=this,u=this.chart,a=d.options,n=u.renderer,o=a.animationLimit||250;b.forEach(function(_){var B=_.graphic,X=!!B,it=B&&u.pointCount"===d&&b>u||"<"===d&&b="===d&&b>=u||"<="===d&&b<=u||"=="===d&&b==u||"==="===d&&b===u)}(L,z),st=L.connectors?L.connectors[et]:L.connector,H=L.dataLabels?L.dataLabels[et]:L.dataLabel,ot=!H,nt=T(z.distance,L.labelDistance);if(at){var yt=L.getLabelConfig(),gt=T(z[L.formatPrefix+"Format"],z.format);yt=W(gt)?$(gt,yt,u):(z[L.formatPrefix+"Formatter"]||z.formatter).call(yt,z),gt=z.style;var mt=z.rotation;u.styledMode||(gt.color=T(z.color,gt.color,d.color,"#000000"),"contrast"===gt.color?(L.contrastColor=o.getContrast(L.color||d.color),gt.color=!W(nt)&&z.inside||0>nt||a.stacking?L.contrastColor:B):delete L.contrastColor,a.cursor&&(gt.cursor=a.cursor));var St={r:z.borderRadius||0,rotation:mt,padding:z.padding,zIndex:1};if(!u.styledMode){nt=z.backgroundColor;var wt=z.borderColor;St.fill="auto"===nt?L.color:nt,St.stroke="auto"===wt?L.color:wt,St["stroke-width"]=z.borderWidth}w(St,function(Mt,Dt){typeof Mt>"u"&&delete St[Dt]})}!H||at&&W(yt)&&!!H.div==!!z.useHTML&&(H.rotation&&z.rotation||H.rotation===z.rotation)||(ot=!0,L.dataLabel=H=L.dataLabel&&L.dataLabel.destroy(),L.dataLabels&&(1===L.dataLabels.length?delete L.dataLabels:delete L.dataLabels[et]),et||delete L.dataLabel,st&&(L.connector=L.connector.destroy(),L.connectors&&(1===L.connectors.length?delete L.connectors:delete L.connectors[et]))),at&&W(yt)?(H?St.text=yt:(L.dataLabels=L.dataLabels||[],H=L.dataLabels[et]=mt?o.text(yt,0,0,z.useHTML).addClass("highcharts-data-label"):o.label(yt,0,0,z.shape,null,null,z.useHTML,null,"data-label"),et||(L.dataLabel=H),H.addClass(" highcharts-data-label-color-"+L.colorIndex+" "+(z.className||"")+(z.useHTML?" highcharts-tracker":""))),H.options=z,H.attr(St),u.styledMode||H.css(gt).shadow(z.shadow),(et=z[L.formatPrefix+"TextPath"]||z.textPath)&&!z.useHTML&&(H.setTextPath(L.getDataLabelPath&&L.getDataLabelPath(H)||L.graphic,et),L.dataLabelPath&&!et.enabled&&(L.dataLabelPath=L.dataLabelPath.destroy())),H.added||H.add(rt),d.alignDataLabel(L,H,z,null,ot)):H&&H.hide()})})}R(this,"afterDrawDataLabels")}function j(b,d,u,a,n,o){var m=this.chart,_=d.align,B=d.verticalAlign,X=b.box?0:b.padding||0,it=d.x;it=void 0===it?0:it;var rt=d.y;rt=void 0===rt?0:rt;var L=(u.x||0)+X;if(0>L){"right"===_&&0<=it?(d.align="left",d.inside=!0):it-=L;var z=!0}return(L=(u.x||0)+a.width-X)>m.plotWidth&&("left"===_&&0>=it?(d.align="right",d.inside=!0):it+=m.plotWidth-L,z=!0),0>(L=u.y+X)&&("bottom"===B&&0<=rt?(d.verticalAlign="top",d.inside=!0):rt-=L,z=!0),(L=(u.y||0)+a.height-X)>m.plotHeight&&("top"===B&&0>=rt?(d.verticalAlign="bottom",d.inside=!0):rt+=m.plotHeight-L,z=!0),z&&(d.x=it,d.y=rt,b.placed=!o,b.align(d,void 0,n)),z}function M(b,d){var a,u=[];if(P(b)&&!P(d))u=b.map(function(n){return E(n,d)});else if(P(d)&&!P(b))u=d.map(function(n){return E(b,n)});else if(P(b)||P(d))for(a=Math.max(b.length,d.length);a--;)u[a]=E(b[a],d[a]);else u=E(b,d);return u}function D(b,d,u,a,n){var o=this.chart,m=o.inverted,_=this.xAxis,B=_.reversed,X=m?d.height/2:d.width/2;b=(b=b.pointWidth)?b/2:0,d.startXPos=m?n.x:B?-X-b:_.width-X+b,d.startYPos=m?B?this.yAxis.height-X+b:-X-b:n.y,a?"hidden"===d.visibility&&(d.show(),d.attr({opacity:0}).animate({opacity:1})):d.attr({opacity:1}).animate({opacity:0},void 0,d.hide),o.hasRendered&&(u&&d.attr({x:d.startXPos,y:d.startYPos}),d.placed=!0)}var I=[];g.compose=function(b){if(-1===I.indexOf(b)){var d=b.prototype;I.push(b),d.alignDataLabel=v,d.drawDataLabels=N,d.justifyDataLabel=j,d.setDataLabelStartPos=D}}}(A||(A={})),A}),Y(q,"Series/Column/ColumnDataLabel.js",[q["Core/Series/DataLabel.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G){var V,Z=U.series,$=G.merge,W=G.pick;return function(R){function P(E,w,T,y,A){var g=this.chart.inverted,v=E.series,S=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0;v=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0;var N=E.dlBox||E.shapeArgs,j=W(E.below,E.plotY>W(this.translatedThreshold,v)),M=W(T.inside,!!this.options.stacking);N&&(0>(y=$(N)).y&&(y.height+=y.y,y.y=0),0<(N=y.y+y.height-v)&&N\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),Y(q,"Series/Scatter/ScatterSeries.js",[q["Series/Scatter/ScatterSeriesDefaults.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G){var k,Z=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),$=U.seriesTypes,W=$.column,V=$.line;$=G.addEvent;var R=G.extend,P=G.merge;return G=function(k){function E(){var w=null!==k&&k.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return Z(E,k),E.prototype.applyJitter=function(){var w=this,T=this.options.jitter,y=this.points.length;T&&this.points.forEach(function(A,g){["x","y"].forEach(function(v,S){var N="plot"+v.toUpperCase();if(T[v]&&!A.isNull){var j=w[v+"Axis"],M=T[v]*j.transA;if(j&&!j.isLog){var D=Math.max(0,A[N]-M);j=Math.min(j.len,A[N]+M),S=1e4*Math.sin(g+S*y),A[N]=D+(j-D)*(S-Math.floor(S)),"x"===v&&(A.clientX=A.plotX)}}})})},E.prototype.drawGraph=function(){this.options.lineWidth?k.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},E.defaultOptions=P(V.defaultOptions,O),E}(V),R(G.prototype,{drawTracker:W.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),$(G,"afterTranslate",function(){this.applyJitter()}),U.registerSeriesType("scatter",G),G}),Y(q,"Series/CenteredUtilities.js",[q["Core/Globals.js"],q["Core/Series/Series.js"],q["Core/Utilities.js"]],function(O,U,G){var P,k,Z=O.deg2rad,$=G.fireEvent,W=G.isNumber,V=G.pick,R=G.relativeLength;return(k=P||(P={})).getCenter=function(){var E=this.options,w=this.chart,T=2*(E.slicedOffset||0),y=w.plotWidth-2*T,A=w.plotHeight-2*T,g=E.center,v=Math.min(y,A),S=E.thickness,N=E.size,j=E.innerSize||0;for("string"==typeof N&&(N=parseFloat(N)),"string"==typeof j&&(j=parseFloat(j)),E=[V(g[0],"50%"),V(g[1],"50%"),V(N&&0>N?void 0:E.size,"100%"),V(j&&0>j?void 0:E.innerSize||0,"0%")],!w.angular||this instanceof U||(E[3]=0),g=0;4>g;++g)N=E[g],w=2>g||2===g&&/%$/.test(N),E[g]=R(N,[y,A,v,E[2]][g])+(w?T:0);return E[3]>E[2]&&(E[3]=E[2]),W(S)&&2*SE&&360>w-E?w:E+360,{start:Z*(E+-90),end:Z*(w+-90)}},P}),Y(q,"Series/Pie/PiePoint.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Series/Point.js"],q["Core/Utilities.js"]],function(O,U,G){var E,Z=this&&this.__extends||(E=function(w,T){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,A){y.__proto__=A}||function(y,A){for(var g in A)A.hasOwnProperty(g)&&(y[g]=A[g])})(w,T)},function(w,T){function y(){this.constructor=w}E(w,T),w.prototype=null===T?Object.create(T):(y.prototype=T.prototype,new y)}),$=O.setAnimation,W=G.addEvent,V=G.defined;O=G.extend;var R=G.isNumber,P=G.pick,k=G.relativeLength;return U=function(E){function w(){var T=null!==E&&E.apply(this,arguments)||this;return T.labelDistance=void 0,T.options=void 0,T.series=void 0,T}return Z(w,E),w.prototype.getConnectorPath=function(){var T=this.labelPosition,y=this.series.options.dataLabels,A=this.connectorShapes,g=y.connectorShape;return A[g]&&(g=A[g]),g.call(this,{x:T.final.x,y:T.final.y,alignment:T.alignment},T.connectorPosition,y)},w.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},w.prototype.haloPath=function(T){var y=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(y.x,y.y,y.r+T,y.r+T,{innerR:y.r-1,start:y.start,end:y.end})},w.prototype.init=function(){var T=this;E.prototype.init.apply(this,arguments),this.name=P(this.name,"Slice");var y=function(A){T.slice("select"===A.type)};return W(this,"select",y),W(this,"unselect",y),this},w.prototype.isValid=function(){return R(this.y)&&0<=this.y},w.prototype.setVisible=function(T,y){var A=this,g=this.series,v=g.chart,S=g.options.ignoreHiddenPoint;y=P(y,S),T!==this.visible&&(this.visible=this.options.visible=T=typeof T>"u"?!this.visible:T,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(N){A[N]&&A[N][T?"show":"hide"](T)}),this.legendItem&&v.legend.colorizeItem(this,T),T||"hover"!==this.state||this.setState(""),S&&(g.isDirty=!0),y&&v.redraw())},w.prototype.slice=function(T,y,A){var g=this.series;$(A,g.chart),P(y,!0),this.sliced=this.options.sliced=V(T)?T:!this.sliced,g.options.data[g.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},w}(U),O(U.prototype,{connectorShapes:{fixedOffset:function(E,w,T){var y=w.breakAt;return w=w.touchingSliceAt,[["M",E.x,E.y],T.softConnector?["C",E.x+("left"===E.alignment?-5:5),E.y,2*y.x-w.x,2*y.y-w.y,y.x,y.y]:["L",y.x,y.y],["L",w.x,w.y]]},straight:function(E,w){return w=w.touchingSliceAt,[["M",E.x,E.y],["L",w.x,w.y]]},crookedLine:function(E,w,T){w=w.touchingSliceAt;var y=this.series,A=y.center[0],g=y.chart.plotWidth,v=y.chart.plotLeft;y=E.alignment;var S=this.shapeArgs.r;return T=k(T.crookDistance,1),T=["L",g="left"===y?A+S+(g+v-A-S)*(1-T):v+(A-S)*T,E.y],A=!0,("left"===y?g>E.x||gw.x)&&(A=!1),E=[["M",E.x,E.y]],A&&E.push(T),E.push(["L",w.x,w.y]),E}}}),U}),Y(q,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),Y(q,"Series/Pie/PieSeries.js",[q["Series/CenteredUtilities.js"],q["Series/Column/ColumnSeries.js"],q["Core/Globals.js"],q["Core/Legend/LegendSymbol.js"],q["Series/Pie/PiePoint.js"],q["Series/Pie/PieSeriesDefaults.js"],q["Core/Series/Series.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Renderer/SVG/Symbols.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P,k){var N,E=this&&this.__extends||(N=function(j,M){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,I){D.__proto__=I}||function(D,I){for(var b in I)I.hasOwnProperty(b)&&(D[b]=I[b])})(j,M)},function(j,M){function D(){this.constructor=j}N(j,M),j.prototype=null===M?Object.create(M):(D.prototype=M.prototype,new D)}),w=O.getStartAndEndRadians;G=G.noop;var T=k.clamp,y=k.extend,A=k.fireEvent,g=k.merge,v=k.pick,S=k.relativeLength;return k=function(N){function j(){var M=null!==N&&N.apply(this,arguments)||this;return M.center=void 0,M.data=void 0,M.maxLabelDistance=void 0,M.options=void 0,M.points=void 0,M}return E(j,N),j.prototype.animate=function(M){var D=this,I=D.points,b=D.startAngleRad;M||I.forEach(function(d){var u=d.graphic,a=d.shapeArgs;u&&a&&(u.attr({r:v(d.startR,D.center&&D.center[3]/2),start:b,end:b}),u.animate({r:a.r,start:a.start,end:a.end},D.options.animation))})},j.prototype.drawEmpty=function(){var M=this.startAngleRad,D=this.endAngleRad,I=this.options;if(0===this.total&&this.center){var b=this.center[0],d=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(b,d,this.center[1]/2,0,M,D).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:P.arc(b,d,this.center[2]/2,0,{start:M,end:D,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":I.borderWidth,fill:I.fillColor||"none",stroke:I.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},j.prototype.drawPoints=function(){var M=this.chart.renderer;this.points.forEach(function(D){D.graphic&&D.hasNewShapeType()&&(D.graphic=D.graphic.destroy()),D.graphic||(D.graphic=M[D.shapeType](D.shapeArgs).add(D.series.group),D.delayedRendering=!0)})},j.prototype.generatePoints=function(){N.prototype.generatePoints.call(this),this.updateTotals()},j.prototype.getX=function(M,D,I){var b=this.center,d=this.radii?this.radii[I.index]||0:b[2]/2;return M=Math.asin(T((M-b[1])/(d+I.labelDistance),-1,1)),b[0]+(D?-1:1)*Math.cos(M)*(d+I.labelDistance)+(01.5*Math.PI?it-=2*Math.PI:it<-Math.PI/2&&(it+=2*Math.PI),B.slicedTranslation={translateX:Math.round(Math.cos(it)*I),translateY:Math.round(Math.sin(it)*I)},rt=Math.cos(it)*M[2]/2;var L=Math.sin(it)*M[2]/2;B.tooltipPos=[M[0]+.7*rt,M[1]+.7*L],B.half=it<-Math.PI/2||it>Math.PI/2?1:0,B.angle=it,X=Math.min(b,B.labelDistance/5),B.labelPosition={natural:{x:M[0]+rt+Math.cos(it)*B.labelDistance,y:M[1]+L+Math.sin(it)*B.labelDistance},final:{},alignment:0>B.labelDistance?"center":B.half?"right":"left",connectorPosition:{breakAt:{x:M[0]+rt+Math.cos(it)*X,y:M[1]+L+Math.sin(it)*X},touchingSliceAt:{x:M[0]+rt,y:M[1]+L}}}}A(this,"afterTranslate")},j.prototype.updateTotals=function(){var b,M=this.points,D=M.length,I=this.options.ignoreHiddenPoint,d=0;for(b=0;bm&&(Mt.dataLabel.css({width:Math.round(.7*m)+"px"}),Mt.dataLabel.shortened=!0)):(Mt.dataLabel=Mt.dataLabel.destroy(),Mt.dataLabels&&1===Mt.dataLabels.length&&delete Mt.dataLabels))}),it.forEach(function(Mt,Dt){var jt,Pt=Mt.length,Ft=[];if(Pt){if(D.sortByAngle(Mt,Dt-.5),0"u"?mt="hidden":(nt=z.distributeBox.size,gt=L.radialDistributionY(z))),delete z.positionIndex,d.justify)yt=L.justify(z,B,_);else switch(d.alignTo){case"connectors":yt=L.alignToConnectors(Mt,Dt,a,o);break;case"plotEdges":yt=L.alignToPlotEdges(st,Dt,a,o);break;default:yt=L.radialDistributionX(D,z,gt,Ut)}st._attr={visibility:mt,align:ot.alignment},wt=z.options.dataLabels||{},st._pos={x:yt+T(wt.x,d.x)+({left:u,right:-u}[ot.alignment]||0),y:gt+T(wt.y,d.y)-10},ot.final.x=yt,ot.final.y=gt,T(d.crop,!0)&&(H=st.getBBox().width,Ut=null,yt-Ha-u&&0===Dt&&(Ut=Math.round(yt+H-a+u),rt[1]=Math.max(Ut,rt[1])),0>gt-nt/2?rt[0]=Math.max(Math.round(nt/2-gt),rt[0]):gt+nt/2>n&&(rt[2]=Math.max(Math.round(gt+nt/2-n),rt[2])),st.sideOverflow=Ut)}}}),0===P(rt)||this.verifyDataLabelOverflow(rt))&&(this.placeDataLabels(),this.points.forEach(function(Mt){var Dt;wt=w(d,Mt.options.dataLabels),(et=T(wt.connectorWidth,1))&&(at=Mt.connector,(st=Mt.dataLabel)&&st._pos&&Mt.visible&&0I.bottom-2?d:b,I.half,I)},justify:function(D,I,b){return b[0]+(D.half?-1:1)*(I+D.labelDistance)},alignToPlotEdges:function(D,I,b,d){return D=D.getBBox().width,I?D+d:b-D-d},alignToConnectors:function(D,I,b,d){var a,u=0;return D.forEach(function(n){(a=n.dataLabel.getBBox().width)>u&&(u=a)}),I?u+d:b-u-d}};g.compose=function(D){O.compose(R),-1===j.indexOf(D)&&(j.push(D),(D=D.prototype).dataLabelPositioners=M,D.alignDataLabel=W,D.drawDataLabels=v,D.placeDataLabels=S,D.verifyDataLabelOverflow=N)}}(A||(A={})),A}),Y(q,"Extensions/OverlappingDataLabels.js",[q["Core/Chart/Chart.js"],q["Core/Utilities.js"]],function(O,U){function G(k,E){var w=!1;if(k){var T=k.newOpacity;k.oldOpacity!==T&&(k.alignAttr&&k.placed?(k[T?"removeClass":"addClass"]("highcharts-data-label-hidden"),w=!0,k.alignAttr.opacity=T,k[k.isOld?"animate":"attr"](k.alignAttr,null,function(){E.styledMode||k.css({pointerEvents:T?"auto":"none"})}),$(E,"afterHideOverlappingLabel")):k.attr({opacity:T})),k.isOld=!0}return w}var Z=U.addEvent,$=U.fireEvent,W=U.isArray,V=U.isNumber,R=U.objectEach,P=U.pick;Z(O,"render",function(){var k=this,E=[];(this.labelCollectors||[]).forEach(function(w){E=E.concat(w())}),(this.yAxis||[]).forEach(function(w){w.stacking&&w.options.stackLabels&&!w.options.stackLabels.allowOverlap&&R(w.stacking.stacks,function(T){R(T,function(y){y.label&&E.push(y.label)})})}),(this.series||[]).forEach(function(w){var T=w.options.dataLabels;w.visible&&(!1!==T.enabled||w._hasPointLabels)&&((T=function(y){return y.forEach(function(A){A.visible&&(W(A.dataLabels)?A.dataLabels:A.dataLabel?[A.dataLabel]:[]).forEach(function(g){var v=g.options;g.labelrank=P(v.labelrank,A.labelrank,A.shapeArgs&&A.shapeArgs.height),v.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,G(g,k)):E.push(g)})})})(w.nodes||[]),T(w.points))}),this.hideOverlappingLabels(E)}),O.prototype.hideOverlappingLabels=function(k){var y,A,g,E=this,w=k.length,T=E.renderer,v=!1,S=function(M){var D,d,I=M.box?0:M.padding||0,b=D=0;if(M&&(!M.alignAttr||M.placed)){var u=M.alignAttr||{x:M.attr("x"),y:M.attr("y")},a=M.parentGroup;M.width||(D=M.getBBox(),M.width=D.width,M.height=D.height,D=T.fontMetrics(null,M.element).h);var n=M.width-2*I;return(d={left:"0",center:"0.5",right:"1"}[M.alignValue])?b=+d*n:V(M.x)&&Math.round(M.x)!==M.translateX&&(b=M.x-M.translateX),{x:u.x+(a.translateX||0)+I-(b||0),y:u.y+(a.translateY||0)+I-D,width:M.width-2*I,height:M.height-2*I}}};for(A=0;A=N.x+N.width||j.x+j.width<=N.x||j.y>=N.y+N.height||j.y+j.height<=N.y||((S.labelrank"u"?null:M[u]})}(g,this.options,N,0),N},A.prototype.matchResponsiveRule=function(g,v){var S=g.condition;(S.callback||function(){return this.chartWidth<=R(S.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=R(S.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=R(S.minWidth,0)&&this.chartHeight>=R(S.minHeight,0)}).call(this)&&v.push(g._id)},A.prototype.setResponsive=function(g,v){var S=this,N=this.options.responsive,j=this.currentResponsive,M=[];!v&&N&&N.rules&&N.rules.forEach(function(D){typeof D._id>"u"&&(D._id=k()),S.matchResponsiveRule(D,M)},this),(v=W.apply(void 0,M.map(function(D){return G((N||{}).rules||[],function(I){return I._id===D})}).map(function(D){return D&&D.chartOptions}))).isResponsiveOptions=!0,(M=M.toString()||void 0)!==(j&&j.ruleIds)&&(j&&this.update(j.undoOptions,g,!0),M?((j=this.currentOptions(v)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:M,mergedOptions:v,undoOptions:j},this.update(v,g,!0)):this.currentResponsive=void 0)},A}()}(E||(E={})),E}),Y(q,"masters/highcharts.src.js",[q["Core/Globals.js"],q["Core/Utilities.js"],q["Core/Defaults.js"],q["Core/Animation/Fx.js"],q["Core/Animation/AnimationUtilities.js"],q["Core/Renderer/HTML/AST.js"],q["Core/FormatUtilities.js"],q["Core/Renderer/RendererUtilities.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Renderer/SVG/SVGRenderer.js"],q["Core/Renderer/HTML/HTMLElement.js"],q["Core/Renderer/HTML/HTMLRenderer.js"],q["Core/Axis/Axis.js"],q["Core/Axis/DateTimeAxis.js"],q["Core/Axis/LogarithmicAxis.js"],q["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],q["Core/Axis/Tick.js"],q["Core/Tooltip.js"],q["Core/Series/Point.js"],q["Core/Pointer.js"],q["Core/MSPointer.js"],q["Core/Legend/Legend.js"],q["Core/Chart/Chart.js"],q["Core/Axis/Stacking/StackingAxis.js"],q["Core/Axis/Stacking/StackItem.js"],q["Core/Series/Series.js"],q["Core/Series/SeriesRegistry.js"],q["Series/Column/ColumnSeries.js"],q["Series/Column/ColumnDataLabel.js"],q["Series/Pie/PieSeries.js"],q["Series/Pie/PieDataLabel.js"],q["Core/Series/DataLabel.js"],q["Core/Responsive.js"],q["Core/Color/Color.js"],q["Core/Time.js"]],function(O,U,G,Z,$,W,V,R,P,k,E,w,T,y,A,g,v,S,N,j,M,D,I,b,d,u,a,n,o,m,_,B,X,it,rt){return O.animate=$.animate,O.animObject=$.animObject,O.getDeferredAnimation=$.getDeferredAnimation,O.setAnimation=$.setAnimation,O.stop=$.stop,O.timers=Z.timers,O.AST=W,O.Axis=T,O.Chart=I,O.chart=I.chart,O.Fx=Z,O.Legend=D,O.PlotLineOrBand=g,O.Point=N,O.Pointer=M.isRequired()?M:j,O.Series=u,O.StackItem=d,O.SVGElement=P,O.SVGRenderer=k,O.Tick=v,O.Time=rt,O.Tooltip=S,O.Color=it,O.color=it.parse,w.compose(k),E.compose(P),O.defaultOptions=G.defaultOptions,O.getOptions=G.getOptions,O.time=G.defaultTime,O.setOptions=G.setOptions,O.dateFormat=V.dateFormat,O.format=V.format,O.numberFormat=V.numberFormat,O.addEvent=U.addEvent,O.arrayMax=U.arrayMax,O.arrayMin=U.arrayMin,O.attr=U.attr,O.clearTimeout=U.clearTimeout,O.correctFloat=U.correctFloat,O.createElement=U.createElement,O.css=U.css,O.defined=U.defined,O.destroyObjectProperties=U.destroyObjectProperties,O.discardElement=U.discardElement,O.distribute=R.distribute,O.erase=U.erase,O.error=U.error,O.extend=U.extend,O.extendClass=U.extendClass,O.find=U.find,O.fireEvent=U.fireEvent,O.getMagnitude=U.getMagnitude,O.getStyle=U.getStyle,O.inArray=U.inArray,O.isArray=U.isArray,O.isClass=U.isClass,O.isDOMElement=U.isDOMElement,O.isFunction=U.isFunction,O.isNumber=U.isNumber,O.isObject=U.isObject,O.isString=U.isString,O.keys=U.keys,O.merge=U.merge,O.normalizeTickInterval=U.normalizeTickInterval,O.objectEach=U.objectEach,O.offset=U.offset,O.pad=U.pad,O.pick=U.pick,O.pInt=U.pInt,O.relativeLength=U.relativeLength,O.removeEvent=U.removeEvent,O.seriesType=a.seriesType,O.splat=U.splat,O.stableSort=U.stableSort,O.syncTimeout=U.syncTimeout,O.timeUnits=U.timeUnits,O.uniqueKey=U.uniqueKey,O.useSerialIds=U.useSerialIds,O.wrap=U.wrap,o.compose(n),B.compose(u),y.compose(T),A.compose(T),_.compose(m),g.compose(T),X.compose(I),b.compose(T,I,u),O}),q["masters/highcharts.src.js"]._modules=q,q["masters/highcharts.src.js"]},Jt.exports?(Y.default=Y,Jt.exports=t.document?Y(t):Y):void 0!==(pt=function(){return Y(t)}.call($t,ht,$t,Jt))&&(Jt.exports=pt)},6150:function(Jt,$t,ht){var pt,t,Y;t=typeof window<"u"?window:this,Y=function(t){function Y(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}var q={};return Y(q,"Core/Globals.js",[],function(){var O,U;return(U=O||(O={})).SVG_NS="http://www.w3.org/2000/svg",U.product="Highcharts",U.version="10.3.3",U.win=typeof t<"u"?t:{},U.doc=U.win.document,U.svg=U.doc&&U.doc.createElementNS&&!!U.doc.createElementNS(U.SVG_NS,"svg").createSVGRect,U.userAgent=U.win.navigator&&U.win.navigator.userAgent||"",U.isChrome=-1!==U.userAgent.indexOf("Chrome"),U.isFirefox=-1!==U.userAgent.indexOf("Firefox"),U.isMS=/(edge|msie|trident)/i.test(U.userAgent)&&!U.win.opera,U.isSafari=!U.isChrome&&-1!==U.userAgent.indexOf("Safari"),U.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(U.userAgent),U.isWebKit=-1!==U.userAgent.indexOf("AppleWebKit"),U.deg2rad=2*Math.PI/360,U.hasBidiBug=U.isFirefox&&4>parseInt(U.userAgent.split("Firefox/")[1],10),U.hasTouch=!!U.win.TouchEvent,U.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],U.noop=function(){},U.supportsPassiveEvents=function(){var G=!1;if(!U.isMS){var Z=Object.defineProperty({},"passive",{get:function(){G=!0}});U.win.addEventListener&&U.win.removeEventListener&&(U.win.addEventListener("testPassive",U.noop,Z),U.win.removeEventListener("testPassive",U.noop,Z))}return G}(),U.charts=[],U.dateFormats={},U.seriesTypes={},U.symbolSizes={},U.chartCount=0,O}),Y(q,"Core/Utilities.js",[q["Core/Globals.js"]],function(O){function U(n,o,m,_){var B=o?"Highcharts error":"Highcharts warning";32===n&&(n=B+": Deprecated member");var X=k(n),it=X?B+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if(typeof _<"u"){var rt="";X&&(it+="?"),N(_,function(L,z){rt+="\n - ".concat(z,": ").concat(L),X&&(it+=encodeURI(z)+"="+encodeURI(L))}),it+=rt}M(O,"displayError",{chart:m,code:n,message:it,params:_},function(){if(o)throw Error(it);b.console&&-1===U.messages.indexOf(it)&&console.warn(it)}),U.messages.push(it)}function Z(n,o){return parseInt(n,o||10)}function $(n){return"string"==typeof n}function W(n){return"[object Array]"===(n=Object.prototype.toString.call(n))||"[object Array Iterator]"===n}function V(n,o){return!(!n||"object"!=typeof n||o&&W(n))}function R(n){return V(n)&&"number"==typeof n.nodeType}function P(n){var o=n&&n.constructor;return!(!V(n,!0)||R(n)||!o||!o.name||"Object"===o.name)}function k(n){return"number"==typeof n&&!isNaN(n)&&1/0>n&&-1/0m&&(m=n[o]);return m},arrayMin:function(n){for(var o=n.length,m=n[0];o--;)n[o]o?n"u"||"__proto__"===m||!E(o=o[m])||"function"==typeof o||"number"==typeof o.nodeType||o===b)return}return o},getStyle:function S(n,o,m){var _=O.getStyle||S;if("width"===o)return o=Math.min(n.offsetWidth,n.scrollWidth),(m=n.getBoundingClientRect&&n.getBoundingClientRect().width)=o-1&&(o=Math.floor(m)),Math.max(0,o-(_(n,"padding-left",!0)||0)-(_(n,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(_(n,"padding-top",!0)||0)-(_(n,"padding-bottom",!0)||0));if(b.getComputedStyle||U(27,!0),n=b.getComputedStyle(n,void 0)){var B=n.getPropertyValue(o);y(m,"opacity"!==o)&&(B=Z(B))}return B},inArray:function(n,o,m){return U(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),o.indexOf(n,m)},isArray:W,isClass:P,isDOMElement:R,isFunction:function(n){return"function"==typeof n},isNumber:k,isObject:V,isString:$,keys:function(n){return U(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(n)},merge:function(){var n,o=arguments,m={},_=function(X,it){return"object"!=typeof X&&(X={}),N(it,function(rt,L){"__proto__"!==L&&"constructor"!==L&&(!V(rt,!0)||P(rt)||R(rt)?X[L]=it[L]:X[L]=_(X[L]||{},rt))}),X};!0===o[0]&&(m=o[1],o=Array.prototype.slice.call(o,2));var B=o.length;for(n=0;n=m&&(o=[1/m]))),_=0;_=n||!B&&it<=(o[_]+(o[_+1]||o[_]))/2));_++);return v(X*m,-Math.round(Math.log(.001)/Math.LN10))},objectEach:N,offset:function(n){var o=I.documentElement;return{top:(n=n.parentElement||n.parentNode?n.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(b.pageYOffset||o.scrollTop)-(o.clientTop||0),left:n.left+(b.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:n.width,height:n.height}},pad:function(n,o,m){return Array((o||2)+1-String(n).replace("-","").length).join(m||"0")+n},pick:y,pInt:Z,relativeLength:function(n,o,m){return/%$/.test(n)?o*parseFloat(n)/100+(m||0):parseFloat(n)},removeEvent:j,splat:function(n){return W(n)?n:[n]},stableSort:function(n,o){var _,B,m=n.length;for(B=0;B>16,(65280&k)>>8,255&k,1]:4===P&&(R=[(3840&k)>>4|(3840&k)>>8,(240&k)>>4|240&k,(15&k)<<4|15&k,1])}if(!R)for(k=W.parsers.length;k--&&!R;){var E=W.parsers[k];(P=E.regex.exec(V))&&(R=E.parse(P))}}R&&(this.rgba=R)},W.prototype.get=function(V){var R=this.input,P=this.rgba;if("object"==typeof R&&typeof this.stops<"u"){var k=Z(R);return k.stops=[].slice.call(k.stops),this.stops.forEach(function(E,w){k.stops[w]=[k.stops[w][0],E.get(V)]}),k}return P&&G(P[0])?"rgb"===V||!V&&1===P[3]?"rgb("+P[0]+","+P[1]+","+P[2]+")":"a"===V?"".concat(P[3]):"rgba("+P.join(",")+")":R},W.prototype.brighten=function(V){var R=this.rgba;if(this.stops)this.stops.forEach(function(k){k.brighten(V)});else if(G(V)&&0!==V)for(var P=0;3>P;P++)R[P]+=$(255*V),0>R[P]&&(R[P]=0),255D?"AM":"PM",P:12>D?"am":"pm",S:k(M.getSeconds()),L:k(Math.floor(S%1e3),3)},O.dateFormats),P(M,function(m,_){for(;-1!==v.indexOf("%"+_);)v=v.replace("%"+_,"function"==typeof m?m.call(j,S):m)}),N?v.substr(0,1).toUpperCase()+v.substr(1):v},g.prototype.resolveDTLFormat=function(v){return V(v,!0)?v:{main:(v=w(v))[0],from:v[1],to:v[2]}},g.prototype.getTimeTicks=function(v,S,N,j){var a,M=this,D=[],I={},b=new M.Date(S),d=v.unitRange,u=v.count||1;if(j=E(j,1),Z(S)){if(M.set("Milliseconds",b,d>=T.second?0:u*Math.floor(M.get("Milliseconds",b)/u)),d>=T.second&&M.set("Seconds",b,d>=T.minute?0:u*Math.floor(M.get("Seconds",b)/u)),d>=T.minute&&M.set("Minutes",b,d>=T.hour?0:u*Math.floor(M.get("Minutes",b)/u)),d>=T.hour&&M.set("Hours",b,d>=T.day?0:u*Math.floor(M.get("Hours",b)/u)),d>=T.day&&M.set("Date",b,d>=T.month?1:Math.max(1,u*Math.floor(M.get("Date",b)/u))),d>=T.month){M.set("Month",b,d>=T.year?0:u*Math.floor(M.get("Month",b)/u));var n=M.get("FullYear",b)}d>=T.year&&M.set("FullYear",b,n-n%u),d===T.week&&(n=M.get("Day",b),M.set("Date",b,M.get("Date",b)-n+j+(n4*T.month||M.getTimezoneOffset(S)!==M.getTimezoneOffset(N)),S=b.getTime(),b=1;SD.length&&D.forEach(function(_){_%18e5==0&&"000000000"===M.dateFormat("%H%M%S%L",_)&&(I[_]="day")})}return D.info=W(v,{higherRanks:I,totalRange:d*u}),D},g.prototype.getDateFormat=function(v,S,N,j){var M=this.dateFormat("%m-%d %H:%M:%S.%L",S),D={millisecond:15,second:12,minute:9,hour:6,day:3},I="millisecond";for(b in T){if(v===T.week&&+this.dateFormat("%w",S)===N&&"00:00:00.000"===M.substr(6)){var b="week";break}if(T[b]>v){b=I;break}if(D[b]&&M.substr(D[b])!=="01-01 00:00:00.000".substr(D[b]))break;"week"!==b&&(I=b)}return this.resolveDTLFormat(j[b]).main},g}(),U}),Y(q,"Core/Defaults.js",[q["Core/Chart/ChartDefaults.js"],q["Core/Color/Color.js"],q["Core/Globals.js"],q["Core/Color/Palettes.js"],q["Core/Time.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W){U=U.parse;var V=W.merge,R={colors:Z.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:O,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:G.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:G.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:U("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};R.chart.styledMode=!1;var P=new $(V(R.global,R.time));return O={defaultOptions:R,defaultTime:P,getOptions:function(){return R},setOptions:function(k){return V(!0,R,k),(k.time||k.global)&&(G.time?G.time.update(V(R.global,R.time,k.global,k.time)):G.time=P),R}}}),Y(q,"Core/Animation/Fx.js",[q["Core/Color/Color.js"],q["Core/Globals.js"],q["Core/Utilities.js"]],function(O,U,G){var Z=O.parse,$=U.win,W=G.isNumber,V=G.objectEach;return function(){function R(P,k,E){this.pos=NaN,this.options=k,this.elem=P,this.prop=E}return R.prototype.dSetter=function(){var P=this.paths,k=P&&P[0];P=P&&P[1];var E=this.now||0,w=[];if(1!==E&&k&&P)if(k.length===P.length&&1>E)for(var T=0;T=y+this.startTime){this.now=this.end,this.pos=1,this.update();var g=A[this.prop]=!0;V(A,function(v){!0!==v&&(g=!1)}),g&&T&&T.call(w),P=!1}else this.pos=E.easing((k-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),P=!0;return P},R.prototype.initPath=function(P,k,E){function w(M,D){for(;M.length"u"&&(k=[])}if(k.length&&W(S)){var j=E.length+S*v;N?(w(k,E),T(E,k)):(w(E,k),T(k,E))}return[k,E]},R.prototype.fillSetter=function(){R.prototype.strokeSetter.apply(this,arguments)},R.prototype.strokeSetter=function(){this.elem.attr(this.prop,Z(this.start).tweenTo(Z(this.end),this.pos),void 0,!0)},R.timers=[],R}()}),Y(q,"Core/Animation/AnimationUtilities.js",[q["Core/Animation/Fx.js"],q["Core/Utilities.js"]],function(O,U){function G(T){return P(T)?k({duration:500,defer:0},T):{duration:T?500:0,defer:0}}function Z(T,y){for(var A=O.timers.length;A--;)O.timers[A].elem!==T||y&&y!==O.timers[A].prop||(O.timers[A].stopped=!0)}var $=U.defined,W=U.getStyle,V=U.isArray,R=U.isNumber,P=U.isObject,k=U.merge,E=U.objectEach,w=U.pick;return{animate:function(T,y,A){var g,S,N,v="";if(!P(A)){var j=arguments;A={duration:j[2],easing:j[3],complete:j[4]}}R(A.duration)||(A.duration=400),A.easing="function"==typeof A.easing?A.easing:Math[A.easing]||Math.easeInOutSine,A.curAnim=k(y),E(y,function(M,D){Z(T,D),N=new O(T,A,D),S=void 0,"d"===D&&V(y.d)?(N.paths=N.initPath(T,T.pathArray,y.d),N.toD=y.d,g=0,S=1):T.attr?g=T.attr(D):(g=parseFloat(W(T,D))||0,"opacity"!==D&&(v="px")),S||(S=M),"string"==typeof S&&S.match("px")&&(S=S.replace(/px/g,"")),N.run(g,S,v)})},animObject:G,getDeferredAnimation:function(T,y,A){var g=G(y),v=0,S=0;return(A?[A]:T.series).forEach(function(N){N=G(N.options.animation),v=y&&$(y.defer)?g.defer:Math.max(v,N.duration+N.defer),S=Math.min(g.duration,N.duration)}),T.renderer.forExport&&(v=0),{defer:Math.max(0,v-S),duration:Math.min(v,S)}},setAnimation:function(T,y){y.renderer.globalAnimation=w(T,y.options.chart.animation,!0)},stop:Z}}),Y(q,"Core/Renderer/HTML/AST.js",[q["Core/Globals.js"],q["Core/Utilities.js"]],function(O,U){var G=O.SVG_NS,Z=U.attr,$=U.createElement,W=U.css,V=U.error,R=U.isFunction,P=U.isString,k=U.objectEach,E=U.splat,w=(U=O.win.trustedTypes)&&R(U.createPolicy)&&U.createPolicy("highcharts",{createHTML:function(A){return A}}),T=w?w.createHTML(""):"";try{var y=!!(new DOMParser).parseFromString(T,"text/html")}catch{y=!1}return R=function(){function A(g){this.nodes="string"==typeof g?this.parseMarkup(g):g}return A.filterUserAttributes=function(g){return k(g,function(v,S){var N=!0;-1===A.allowedAttributes.indexOf(S)&&(N=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(S)&&(N=P(v)&&A.allowedReferences.some(function(j){return 0===v.indexOf(j)})),N||(V(33,!1,void 0,{"Invalid attribute in config":"".concat(S)}),delete g[S]),P(v)&&g[S]&&(g[S]=v.replace(/g[1]){var S=E+ +g[1];0<=S?(g[0]=(+g[0]).toExponential(S).split("e")[0],E=S):(g[0]=g[0].split(".")[0]||0,k=20>E?(g[0]*Math.pow(10,g[1])).toFixed(E):0,g[1]=0)}}else E=2;S=(Math.abs(g[1]?g[0]:k)+Math.pow(10,-Math.max(E,A)-1)).toFixed(E);var N=3<(A=String(P(S))).length?A.length%3:0;return w=R(w,y.decimalPoint),T=R(T,y.thousandsSep),k=(0>k?"-":"")+(N?A.substr(0,N)+T:""),k=0>+g[1]&&!v?"0":k+A.substr(N).replace(/(\d{3})(?=\d)/g,"$1"+T),E&&(k+=w+S.slice(-E)),g[1]&&0!=+k&&(k+="e"+g[1]),k}var Z=O.defaultOptions,$=O.defaultTime,W=U.getNestedProperty,V=U.isNumber,R=U.pick,P=U.pInt;return{dateFormat:function(k,E,w){return $.dateFormat(k,E,w)},format:function(k,E,w){var T="{",y=!1,A=/f$/,g=/\.([0-9])/,v=Z.lang,S=w&&w.time||$;w=w&&w.numberFormatter||G;for(var N=[];k;){var j=k.indexOf(T);if(-1===j)break;var M=k.slice(0,j);if(y){if(M=M.split(":"),T=W(M.shift()||"",E),M.length&&"number"==typeof T)if(M=M.join(":"),A.test(M)){var D=parseInt((M.match(g)||["","-1"])[1],10);null!==T&&(T=w(T,D,v.decimalPoint,-1w){for(Z(R,T),S=A=0;S<=w;)S+=R[A].size,A++;v=R.splice(A-1,R.length)}for(Z(R,y),R=R.map(function(N){return{size:N.size,targets:[N.target],align:G(N.align,.5)}});g;){for(A=R.length;A--;)w=R[A],T=(Math.min.apply(0,w.targets)+Math.max.apply(0,w.targets))/2,w.pos=U(T-w.size*w.align,0,P-w.size);for(A=R.length,g=!1;A--;)0R[A].pos&&(R[A-1].size+=R[A].size,R[A-1].targets=R[A-1].targets.concat(R[A].targets),R[A-1].align=.5,R[A-1].pos+R[A-1].size>P&&(R[A-1].pos=P-R[A-1].size),R.splice(A,1),g=!0)}return E.push.apply(E,v),A=0,R.some(function(N){var j=0;return(N.targets||[]).some(function(){return E[A].pos=N.pos+j,typeof k<"u"&&Math.abs(E[A].pos-E[A].target)>k?(E.slice(0,A+1).forEach(function(M){return delete M.pos}),E.reducedLen=(E.reducedLen||P)-.1*P,E.reducedLen>.1*P&&V(E,P,k),!0):(j+=E[A].size,A++,!1)})}),Z(E,y),E},$}),Y(q,"Core/Renderer/SVG/SVGElement.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Color/Color.js"],q["Core/Globals.js"],q["Core/Utilities.js"]],function(O,U,G,Z){var $=O.animate,W=O.animObject,V=O.stop,R=G.deg2rad,P=G.doc,k=G.svg,E=G.SVG_NS,w=G.win,T=Z.addEvent,y=Z.attr,A=Z.createElement,g=Z.css,v=Z.defined,S=Z.erase,N=Z.extend,j=Z.fireEvent,M=Z.isArray,D=Z.isFunction,I=Z.isString,b=Z.merge,d=Z.objectEach,u=Z.pick,a=Z.pInt,n=Z.syncTimeout,o=Z.uniqueKey;return O=function(){function m(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=E,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return m.prototype._defaultGetter=function(_){return _=u(this[_+"Value"],this[_],this.element?this.element.getAttribute(_):null,0),/^[\-0-9\.]+$/.test(_)&&(_=parseFloat(_)),_},m.prototype._defaultSetter=function(_,B,X){X.setAttribute(B,_)},m.prototype.add=function(_){var B=this.renderer,X=this.element;if(_&&(this.parentGroup=_),typeof this.textStr<"u"&&"text"===this.element.nodeName&&B.buildText(this),this.added=!0,!_||_.handleZ||this.zIndex)var it=this.zIndexSetter();return it||(_?_.element:B.box).appendChild(X),this.onAdd&&this.onAdd(),this},m.prototype.addClass=function(_,B){var X=B?"":this.attr("class")||"";return(_=(_||"").split(/ /g).reduce(function(it,rt){return-1===X.indexOf(rt)&&it.push(rt),it},X?[X]:[]).join(" "))!==X&&this.attr("class",_),this},m.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},m.prototype.align=function(_,B,X){var z,et,at,it={},rt=this.renderer,L=rt.alignedObjects;_?(this.alignOptions=_,this.alignByTranslate=B,(!X||I(X))&&(this.alignTo=z=X||"renderer",S(L,this),L.push(this),X=void 0)):(_=this.alignOptions,B=this.alignByTranslate,z=this.alignTo),X=u(X,rt[z],"scrollablePlotBox"===z?rt.plotBox:void 0,rt),z=_.align;var st=_.verticalAlign;return rt=(X.x||0)+(_.x||0),L=(X.y||0)+(_.y||0),"right"===z?et=1:"center"===z&&(et=2),et&&(rt+=(X.width-(_.width||0))/et),it[B?"translateX":"x"]=Math.round(rt),"bottom"===st?at=1:"middle"===st&&(at=2),at&&(L+=(X.height-(_.height||0))/at),it[B?"translateY":"y"]=Math.round(L),this[this.placed?"animate":"attr"](it),this.placed=!0,this.alignAttr=it,this},m.prototype.alignSetter=function(_){var B={left:"start",center:"middle",right:"end"};B[_]&&(this.alignValue=_,this.element.setAttribute("text-anchor",B[_]))},m.prototype.animate=function(_,B,X){var it=this,rt=W(u(B,this.renderer.globalAnimation,!0));return B=rt.defer,u(P.hidden,P.msHidden,P.webkitHidden,!1)&&(rt.duration=0),0!==rt.duration?(X&&(rt.complete=X),n(function(){it.element&&$(it,_,rt)},B)):(this.attr(_,void 0,X||rt.complete),d(_,function(L,z){rt.step&&rt.step.call(this,L,{prop:z,pos:1,elem:this})},this)),this},m.prototype.applyTextOutline=function(_){var B=this.element;-1!==_.indexOf("contrast")&&(_=_.replace(/contrast/g,this.renderer.getContrast(B.style.fill)));var X=_.split(" ");if(_=X[X.length-1],(X=X[0])&&"none"!==X&&G.svg){this.fakeTS=!0,X=X.replace(/(^[\d\.]+)(.*?)$/g,function(L,z,et){return 2*Number(z)+et}),this.removeTextOutline();var it=P.createElementNS(E,"tspan");y(it,{class:"highcharts-text-outline",fill:_,stroke:_,"stroke-width":X,"stroke-linejoin":"round"}),_=B.querySelector("textPath")||B,[].forEach.call(_.childNodes,function(L){var z=L.cloneNode(!0);z.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(et){return z.removeAttribute(et)}),it.appendChild(z)});var rt=0;[].forEach.call(_.querySelectorAll("text tspan"),function(L){rt+=Number(L.getAttribute("dy"))}),(X=P.createElementNS(E,"tspan")).textContent="\u200b",y(X,{x:Number(B.getAttribute("x")),dy:-rt}),it.appendChild(X),_.insertBefore(it,_.firstChild)}},m.prototype.attr=function(_,B,X,it){var z,at,st,rt=this.element,L=this.symbolCustomAttribs,et=this;if("string"==typeof _&&typeof B<"u"){var H=_;(_={})[H]=B}return"string"==typeof _?et=(this[_+"Getter"]||this._defaultGetter).call(this,_,rt):(d(_,function(ot,nt){at=!1,it||V(this,nt),this.symbolName&&-1!==L.indexOf(nt)&&(z||(this.symbolAttr(_),z=!0),at=!0),!this.rotation||"x"!==nt&&"y"!==nt||(this.doTransform=!0),at||((st=this[nt+"Setter"]||this._defaultSetter).call(this,ot,nt,rt),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(nt)&&this.updateShadows(nt,ot,st))},this),this.afterSetters()),X&&X.call(this),et},m.prototype.clip=function(_){return this.attr("clip-path",_?"url("+this.renderer.url+"#"+_.id+")":"none")},m.prototype.crisp=function(_,B){B=B||_.strokeWidth||0;var X=Math.round(B)%2/2;return _.x=Math.floor(_.x||this.x||0)+X,_.y=Math.floor(_.y||this.y||0)+X,_.width=Math.floor((_.width||this.width||0)-2*X),_.height=Math.floor((_.height||this.height||0)-2*X),v(_.strokeWidth)&&(_.strokeWidth=B),_},m.prototype.complexColor=function(_,B,X){var rt,L,z,et,at,st,H,ot,nt,yt,mt,it=this.renderer,gt=[];j(this.renderer,"complexColor",{args:arguments},function(){if(_.radialGradient?L="radialGradient":_.linearGradient&&(L="linearGradient"),L){if(z=_[L],at=it.gradients,st=_.stops,nt=X.radialReference,M(z)&&(_[L]=z={x1:z[0],y1:z[1],x2:z[2],y2:z[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===L&&nt&&!v(z.gradientUnits)&&(et=z,z=b(z,it.getRadialAttr(nt,et),{gradientUnits:"userSpaceOnUse"})),d(z,function(wt,Mt){"id"!==Mt&>.push(Mt,wt)}),d(st,function(wt){gt.push(wt)}),gt=gt.join(","),at[gt])yt=at[gt].attr("id");else{z.id=yt=o();var St=at[gt]=it.createElement(L).attr(z).add(it.defs);St.radAttr=et,St.stops=[],st.forEach(function(wt){0===wt[1].indexOf("rgba")?(rt=U.parse(wt[1]),H=rt.get("rgb"),ot=rt.get("a")):(H=wt[1],ot=1),wt=it.createElement("stop").attr({offset:wt[0],"stop-color":H,"stop-opacity":ot}).add(St),St.stops.push(wt)})}mt="url("+it.url+"#"+yt+")",X.setAttribute(B,mt),X.gradient=gt,_.toString=function(){return mt}}})},m.prototype.css=function(_){var B=this.styles,X={},it=this.element,rt=!B;if(_.color&&(_.fill=_.color),B&&d(_,function(et,at){B&&B[at]!==et&&(X[at]=et,rt=!0)}),rt){if(B&&(_=N(B,X)),null===_.width||"auto"===_.width)delete this.textWidth;else if("text"===it.nodeName.toLowerCase()&&_.width)var L=this.textWidth=a(_.width);this.styles=_,L&&!k&&this.renderer.forExport&&delete _.width;var z=b(_);it.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(et){return z&&delete z[et]}),g(it,z),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),_.textOutline&&this.applyTextOutline(_.textOutline))}return this},m.prototype.dashstyleSetter=function(_){var B=this["stroke-width"];if("inherit"===B&&(B=1),_=_&&_.toLowerCase()){var X=_.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(_=X.length;_--;)X[_]=""+a(X[_])*u(B,NaN);_=X.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",_)}},m.prototype.destroy=function(){var _=this,B=_.element||{},X=_.renderer,it=B.ownerSVGElement,rt=X.isSVG&&"SPAN"===B.nodeName&&_.parentGroup||void 0;if(B.onclick=B.onmouseout=B.onmouseover=B.onmousemove=B.point=null,V(_),_.clipPath&&it){var L=_.clipPath;[].forEach.call(it.querySelectorAll("[clip-path],[CLIP-PATH]"),function(z){-1ot.width)&&(ot={x:0,y:0,width:0,height:0})}else ot=this.htmlGetBBox();if(rt.isSVG&&(rt=ot.width,_=ot.height,st&&(ot.height=_={"11px,17":14,"13px,20":16}[""+(H||"")+",".concat(Math.round(_))]||_),B)){st=Number(it.getAttribute("y")||0)-ot.y,X={right:1,center:.5}[X||0]||0,L=B*R,H=(B-90)*R;var gt=rt*Math.cos(L);B=rt*Math.sin(L),yt=Math.cos(H),L=Math.sin(H),gt=(yt=(H=(rt=ot.x+X*(rt-gt)+st*yt)+gt)-_*yt)-gt,B=(_=(X=(st=ot.y+st-X*B+st*L)+B)-_*L)-B,ot.x=Math.min(rt,H,yt,gt),ot.y=Math.min(st,X,_,B),ot.width=Math.max(rt,H,yt,gt)-ot.x,ot.height=Math.max(st,X,_,B)-ot.y}if(nt&&(""===z||0]*>/g,"").replace(/</g,"<").replace(/>/g,">")},m.prototype.toFront=function(){var _=this.element;return _.parentNode.appendChild(_),this},m.prototype.translate=function(_,B){return this.attr({translateX:_,translateY:B})},m.prototype.updateShadows=function(_,B,X){var it=this.shadows;if(it)for(var rt=it.length;rt--;)X.call(it[rt],"height"===_?Math.max(B-(it[rt].cutHeight||0),0):"d"===_?this.d:B,_,it[rt])},m.prototype.updateTransform=function(){var _=this.element,B=this.matrix,X=this.rotation;X=void 0===X?0:X;var it=this.scaleX,rt=this.scaleY,L=this.translateX,z=this.translateY;L=["translate("+(void 0===L?0:L)+","+(void 0===z?0:z)+")"],v(B)&&L.push("matrix("+B.join(",")+")"),X&&L.push("rotate("+X+" "+u(this.rotationOriginX,_.getAttribute("x"),0)+" "+u(this.rotationOriginY,_.getAttribute("y")||0)+")"),(v(it)||v(rt))&&L.push("scale("+u(it,1)+" "+u(rt,1)+")"),L.length&&!(this.text||this).textPath&&_.setAttribute("transform",L.join(" "))},m.prototype.visibilitySetter=function(_,B,X){"inherit"===_?X.removeAttribute(B):this[B]!==_&&X.setAttribute(B,_),this[B]=_},m.prototype.xGetter=function(_){return"circle"===this.element.nodeName&&("x"===_?_="cx":"y"===_&&(_="cy")),this._defaultGetter(_)},m.prototype.zIndexSetter=function(_,B){var X=this.renderer,it=this.parentGroup,rt=(it||X).element||X.box,L=this.element;X=rt===X.box;var at,z=!1,et=this.added;if(v(_)?(L.setAttribute("data-z-index",_),_=+_,this[B]===_&&(et=!1)):v(this[B])&&L.removeAttribute("data-z-index"),this[B]=_,et){for((_=this.zIndex)&&it&&(it.handleZ=!0),at=(B=rt.childNodes).length-1;0<=at&&!z;at--){et=(it=B[at]).getAttribute("data-z-index");var st=!v(et);it!==L&&(0>_&&st&&!X&&!at?(rt.insertBefore(L,B[at]),z=!0):(a(et)<=_||st&&(!v(_)||0<=_))&&(rt.insertBefore(L,B[at+1]||null),z=!0))}z||(rt.insertBefore(L,B[X?3:0]||null),z=!0)}return z},m}(),O.prototype.strokeSetter=O.prototype.fillSetter,O.prototype.yGetter=O.prototype.xGetter,O.prototype.matrixSetter=O.prototype.rotationOriginXSetter=O.prototype.rotationOriginYSetter=O.prototype.rotationSetter=O.prototype.scaleXSetter=O.prototype.scaleYSetter=O.prototype.translateXSetter=O.prototype.translateYSetter=O.prototype.verticalAlignSetter=function(m,_){this[_]=m,this.doTransform=!0},O}),Y(q,"Core/Renderer/RendererRegistry.js",[q["Core/Globals.js"]],function(O){var U,G,Z;return(G=U||(U={})).rendererTypes={},G.getRendererType=function($){return void 0===$&&($=Z),G.rendererTypes[$]||G.rendererTypes[Z]},G.registerRendererType=function($,W,V){G.rendererTypes[$]=W,(!Z||V)&&(Z=$,O.Renderer=W)},U}),Y(q,"Core/Renderer/SVG/SVGLabel.js",[q["Core/Renderer/SVG/SVGElement.js"],q["Core/Utilities.js"]],function(O,U){var k,G=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),Z=U.defined,$=U.extend,W=U.isNumber,V=U.merge,R=U.pick,P=U.removeEvent;return function(k){function E(w,T,y,A,g,v,S,N,j,M){var I,D=k.call(this)||this;return D.paddingLeftSetter=D.paddingSetter,D.paddingRightSetter=D.paddingSetter,D.init(w,"g"),D.textStr=T,D.x=y,D.y=A,D.anchorX=v,D.anchorY=S,D.baseline=j,D.className=M,D.addClass("button"===M?"highcharts-no-tooltip":"highcharts-label"),M&&D.addClass("highcharts-"+M),D.text=w.text(void 0,0,0,N).attr({zIndex:1}),"string"==typeof g&&((I=/^url\((.*?)\)$/.test(g))||D.renderer.symbols[g])&&(D.symbolKey=g),D.bBox=E.emptyBBox,D.padding=3,D.baselineOffset=0,D.needsBox=w.styledMode||I,D.deferredAttr={},D.alignFactor=0,D}return G(E,k),E.prototype.alignSetter=function(w){(w={left:0,center:.5,right:1}[w])!==this.alignFactor&&(this.alignFactor=w,this.bBox&&W(this.xSetting)&&this.attr({x:this.xSetting}))},E.prototype.anchorXSetter=function(w,T){this.anchorX=w,this.boxAttr(T,Math.round(w)-this.getCrispAdjust()-this.xSetting)},E.prototype.anchorYSetter=function(w,T){this.anchorY=w,this.boxAttr(T,w-this.ySetting)},E.prototype.boxAttr=function(w,T){this.box?this.box.attr(w,T):this.deferredAttr[w]=T},E.prototype.css=function(w){if(w){var T={};w=V(w),E.textProps.forEach(function(y){typeof w[y]<"u"&&(T[y]=w[y],delete w[y])}),this.text.css(T),"fontSize"in T||"fontWeight"in T?this.updateTextPadding():("width"in T||"textOverflow"in T)&&this.updateBoxSize()}return O.prototype.css.call(this,w)},E.prototype.destroy=function(){P(this.element,"mouseenter"),P(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),O.prototype.destroy.call(this)},E.prototype.fillSetter=function(w,T){w&&(this.needsBox=!0),this.fill=w,this.boxAttr(T,w)},E.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var w=this.padding,T=R(this.paddingLeft,w);return{width:this.width,height:this.height,x:this.bBox.x-T,y:this.bBox.y-w}},E.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},E.prototype.heightSetter=function(w){this.heightSetting=w},E.prototype.onAdd=function(){this.text.add(this),this.attr({text:R(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&Z(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},E.prototype.paddingSetter=function(w,T){W(w)?w!==this[T]&&(this[T]=w,this.updateTextPadding()):this[T]=void 0},E.prototype.rSetter=function(w,T){this.boxAttr(T,w)},E.prototype.shadow=function(w){return w&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(w)),this},E.prototype.strokeSetter=function(w,T){this.stroke=w,this.boxAttr(T,w)},E.prototype["stroke-widthSetter"]=function(w,T){w&&(this.needsBox=!0),this["stroke-width"]=w,this.boxAttr(T,w)},E.prototype["text-alignSetter"]=function(w){this.textAlign=w},E.prototype.textSetter=function(w){typeof w<"u"&&this.text.attr({text:w}),this.updateTextPadding()},E.prototype.updateBoxSize=function(){var w=this.text,T=w.element.style,y={},A=this.padding,g=this.bBox=W(this.widthSetting)&&W(this.heightSetting)&&!this.textAlign||!Z(w.textStr)?E.emptyBBox:w.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||g.height||0)+2*A,T=this.renderer.fontMetrics(T&&T.fontSize,w),this.baselineOffset=A+Math.min((this.text.firstLineMetrics||T).b,g.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-T.h)/2),this.needsBox&&!w.textPath&&(this.box||((w=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),w.add(this)),w=this.getCrispAdjust(),y.x=w,y.y=(this.baseline?-this.baselineOffset:0)+w,y.width=Math.round(this.width),y.height=Math.round(this.height),this.box.attr($(y,this.deferredAttr)),this.deferredAttr={})},E.prototype.updateTextPadding=function(){var w=this.text;if(!w.textPath){this.updateBoxSize();var T=this.baseline?0:this.baselineOffset,y=R(this.paddingLeft,this.padding);Z(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(y+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(y!==w.x||T!==w.y)&&(w.attr("x",y),w.hasBoxWidthChanged&&(this.bBox=w.getBBox(!0)),typeof T<"u"&&w.attr("y",T)),w.x=y,w.y=T}},E.prototype.widthSetter=function(w){this.widthSetting=W(w)?w:void 0},E.prototype.getPaddedWidth=function(){var w=this.padding,T=R(this.paddingLeft,w);return w=R(this.paddingRight,w),(this.widthSetting||this.bBox.width||0)+T+w},E.prototype.xSetter=function(w){this.x=w,this.alignFactor&&(w-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(w),this.attr("translateX",this.xSetting)},E.prototype.ySetter=function(w){this.ySetting=this.y=Math.round(w),this.attr("translateY",this.ySetting)},E.emptyBBox={width:0,height:0,x:0,y:0},E.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),E}(O)}),Y(q,"Core/Renderer/SVG/Symbols.js",[q["Core/Utilities.js"]],function(O){function U(R,P,k,E,w){var T=[];if(w){var y=w.start||0,A=V(w.r,k);k=V(w.r,E||k);var g=(w.end||0)-.001;E=w.innerR;var v=V(w.open,.001>Math.abs((w.end||0)-y-2*Math.PI)),S=Math.cos(y),N=Math.sin(y),j=Math.cos(g),M=Math.sin(g);y=V(w.longArc,.001>g-y-Math.PI?0:1),T.push(["M",R+A*S,P+k*N],["A",A,k,0,y,V(w.clockwise,1),R+A*j,P+k*M]),$(E)&&T.push(v?["M",R+E*j,P+E*M]:["L",R+E*j,P+E*M],["A",E,E,0,y,$(w.clockwise)?1-w.clockwise:0,R+E*S,P+E*N]),v||T.push(["Z"])}return T}function G(R,P,k,E,w){return w&&w.r?Z(R,P,k,E,w):[["M",R,P],["L",R+k,P],["L",R+k,P+E],["L",R,P+E],["Z"]]}function Z(R,P,k,E,w){return[["M",R+(w=w&&w.r||0),P],["L",R+k-w,P],["C",R+k,P,R+k,P,R+k,P+w],["L",R+k,P+E-w],["C",R+k,P+E,R+k,P+E,R+k-w,P+E],["L",R+w,P+E],["C",R,P+E,R,P+E,R,P+E-w],["L",R,P+w],["C",R,P,R,P,R+w,P]]}var $=O.defined,W=O.isNumber,V=O.pick;return{arc:U,callout:function(R,P,k,E,w){var T=Math.min(w&&w.r||0,k,E),y=T+6,A=w&&w.anchorX;w=w&&w.anchorY||0;var g=Z(R,P,k,E,{r:T});return W(A)&&(R+A>=k?w>P+y&&w=R+A?w>P+y&&wE&&A>R+y&&Aw&&A>R+y&&A/g.test(v))?""!==v&&(g&&g.appendChild(A),v=new O(v),this.modifyTree(v.nodes),v.addToDOM(A),this.modifyDOM(),this.ellipsis&&-1!==(A.textContent||"").indexOf("\u2026")&&y.attr("title",this.unescapeEntities(y.textStr||"",["<",">"])),g&&g.removeChild(A)):A.appendChild(Z.createTextNode(this.unescapeEntities(v))),k(this.textOutline)&&y.applyTextOutline&&y.applyTextOutline(this.textOutline)}},T.prototype.modifyDOM=function(){var v,y=this,A=this.svgElement,g=V(A.element,"x");for(A.firstLineMetrics=void 0;(v=A.element.firstChild)&&/^[\s\u200B]*$/.test(v.textContent||" ");)A.element.removeChild(v);[].forEach.call(A.element.querySelectorAll("tspan.highcharts-br"),function(M,D){M.nextSibling&&M.previousSibling&&(0===D&&1===M.previousSibling.nodeType&&(A.firstLineMetrics=A.renderer.fontMetrics(void 0,M.previousSibling)),V(M,{dy:y.getLineHeight(M.nextSibling),x:g}))});var S=this.width||0;if(S){var j=function(M){[].slice.call(M.childNodes).forEach(function(D){D.nodeType===W.Node.TEXT_NODE?function(M,D){var I=M.textContent||"",b=I.replace(/([^\^])-/g,"$1- ").split(" "),d=!y.noWrap&&(1"u")if(B.getSubStringLength)try{I[_]=v+B.getSubStringLength(0,g?_+1:_)}catch{}else M.getSpanWidth&&(y.textContent=N(A||g,m),I[_]=v+M.getSpanWidth(j,y));return I[_]};j.rotation=0;var o=n(y.textContent.length);if(v+o>S){for(;b<=d;)u=Math.ceil((b+d)/2),g&&(a=N(g,u)),o=n(u,a&&a.length-1),b===d?b=d+1:o>S?d=u-1:b=u;0===d?y.textContent="":A&&d===A.length-1||(y.textContent=a||N(A||g,u))}g&&g.splice(0,u),j.actualWidth=o,j.rotation=D},T.prototype.unescapeEntities=function(y,A){return E(this.renderer.escapes,function(g,v){A&&-1!==A.indexOf(g)||(y=y.toString().replace(new RegExp(g,"g"),v))}),y},T}()}),Y(q,"Core/Renderer/SVG/SVGRenderer.js",[q["Core/Renderer/HTML/AST.js"],q["Core/Color/Color.js"],q["Core/Globals.js"],q["Core/Renderer/RendererRegistry.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Renderer/SVG/SVGLabel.js"],q["Core/Renderer/SVG/Symbols.js"],q["Core/Renderer/SVG/TextBuilder.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P){var rt,k=G.charts,E=G.deg2rad,w=G.doc,T=G.isFirefox,y=G.isMS,A=G.isWebKit,g=G.noop,v=G.SVG_NS,S=G.symbolSizes,N=G.win,j=P.addEvent,M=P.attr,D=P.createElement,I=P.css,b=P.defined,d=P.destroyObjectProperties,u=P.extend,a=P.isArray,n=P.isNumber,o=P.isObject,m=P.isString,_=P.merge,B=P.pick,X=P.pInt,it=P.uniqueKey;return G=function(){function L(z,et,at,st,H,ot,nt){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(z,et,at,st,H,ot,nt)}return L.prototype.init=function(z,et,at,st,H,ot,nt){var mt,yt=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),gt=yt.element;nt||yt.css(this.getStyle(st)),z.appendChild(gt),M(z,"dir","ltr"),-1===z.innerHTML.indexOf("xmlns")&&M(gt,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=gt,this.boxWrapper=yt,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(w.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=ot,this.forExport=H,this.styledMode=nt,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(et,at,!1),T&&z.getBoundingClientRect&&((et=function(){I(z,{left:0,top:0}),mt=z.getBoundingClientRect(),I(z,{left:Math.ceil(mt.left)-mt.left+"px",top:Math.ceil(mt.top)-mt.top+"px"})})(),this.unSubPixelFix=j(N,"resize",et))},L.prototype.definition=function(z){return new O([z]).addToDOM(this.defs.element)},L.prototype.getReferenceURL=function(){if((T||A)&&w.getElementsByTagName("base").length){if(!b(rt)){var z=it();z=new O([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:z},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(z,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(w.body),I(z,{position:"fixed",top:0,left:0,zIndex:9e5});var et=w.elementFromPoint(6,6);rt="hitme"===(et&&et.id),w.body.removeChild(z)}if(rt)return N.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},L.prototype.getStyle=function(z){return this.style=u({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},z)},L.prototype.setStyle=function(z){this.boxWrapper.css(this.getStyle(z))},L.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},L.prototype.destroy=function(){var z=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,z&&(this.defs=z.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},L.prototype.createElement=function(z){var et=new this.Element;return et.init(this,z),et},L.prototype.getRadialAttr=function(z,et){return{cx:z[0]-z[2]/2+(et.cx||0)*z[2],cy:z[1]-z[2]/2+(et.cy||0)*z[2],r:(et.r||0)*z[2]}},L.prototype.buildText=function(z){new R(z).buildSVG()},L.prototype.getContrast=function(z){return 1.05/(.05+(z=.2126*(z=U.parse(z).rgba.map(function(et){return.03928>=(et/=255)?et/12.92:Math.pow((et+.055)/1.055,2.4)}))[0]+.7152*z[1]+.0722*z[2]))>(z+.05)/.05?"#FFFFFF":"#000000"},L.prototype.button=function(z,et,at,st,H,ot,nt,yt,gt,mt){void 0===H&&(H={});var St=this.label(z,et,at,gt,void 0,void 0,mt,void 0,"button"),wt=this.styledMode;z=H.states||{};var Mt=0;delete(H=_(H)).states;var Dt=_({color:"#333333",cursor:"pointer",fontWeight:"normal"},H.style);delete H.style;var Pt=O.filterUserAttributes(H);if(St.attr(_({padding:8,r:2},Pt)),!wt){Pt=_({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},Pt);var Ft=(ot=_(Pt,{fill:"#e6e6e6"},O.filterUserAttributes(ot||z.hover||{}))).style;delete ot.style;var jt=(nt=_(Pt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},O.filterUserAttributes(nt||z.select||{}))).style;delete nt.style;var Ut=(yt=_(Pt,{style:{color:"#cccccc"}},O.filterUserAttributes(yt||z.disabled||{}))).style;delete yt.style}return j(St.element,y?"mouseover":"mouseenter",function(){3!==Mt&&St.setState(1)}),j(St.element,y?"mouseout":"mouseleave",function(){3!==Mt&&St.setState(Mt)}),St.setState=function(bt){1!==bt&&(St.state=Mt=bt),St.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][bt||0]),wt||(St.attr([Pt,ot,nt,yt][bt||0]),bt=[Dt,Ft,jt,Ut][bt||0],o(bt)&&St.css(bt))},wt||(St.attr(Pt).css(u({cursor:"default"},Dt)),mt&&St.text.css({pointerEvents:"none"})),St.on("touchstart",function(bt){return bt.stopPropagation()}).on("click",function(bt){3!==Mt&&st.call(St,bt)})},L.prototype.crispLine=function(z,et,at){void 0===at&&(at="round");var st=z[0],H=z[1];return b(st[1])&&st[1]===H[1]&&(st[1]=H[1]=Math[at](st[1])-et%2/2),b(st[2])&&st[2]===H[2]&&(st[2]=H[2]=Math[at](st[2])+et%2/2),z},L.prototype.path=function(z){var et=this.styledMode?{}:{fill:"none"};return a(z)?et.d=z:o(z)&&u(et,z),this.createElement("path").attr(et)},L.prototype.circle=function(z,et,at){return z=o(z)?z:typeof z>"u"?{}:{x:z,y:et,r:at},(et=this.createElement("circle")).xSetter=et.ySetter=function(st,H,ot){ot.setAttribute("c"+H,st)},et.attr(z)},L.prototype.arc=function(z,et,at,st,H,ot){return o(z)?(et=(st=z).y,at=st.r,z=st.x):st={innerR:st,start:H,end:ot},(z=this.symbol("arc",z,et,at,at,st)).r=at,z},L.prototype.rect=function(z,et,at,st,H,ot){H=o(z)?z.r:H;var nt=this.createElement("rect");return z=o(z)?z:typeof z>"u"?{}:{x:z,y:et,width:Math.max(at,0),height:Math.max(st,0)},this.styledMode||(typeof ot<"u"&&(z["stroke-width"]=ot,z=nt.crisp(z)),z.fill="none"),H&&(z.r=H),nt.rSetter=function(yt,gt,mt){nt.r=yt,M(mt,{rx:yt,ry:yt})},nt.rGetter=function(){return nt.r||0},nt.attr(z)},L.prototype.setSize=function(z,et,at){this.width=z,this.height=et,this.boxWrapper.animate({width:z,height:et},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:B(at,!0)?void 0:0}),this.alignElements()},L.prototype.g=function(z){var et=this.createElement("g");return z?et.attr({class:"highcharts-"+z}):et},L.prototype.image=function(z,et,at,st,H,ot){var nt={preserveAspectRatio:"none"},yt=function(mt,St){mt.setAttributeNS?mt.setAttributeNS("http://www.w3.org/1999/xlink","href",St):mt.setAttribute("hc-svg-href",St)};n(et)&&(nt.x=et),n(at)&&(nt.y=at),n(st)&&(nt.width=st),n(H)&&(nt.height=H);var gt=this.createElement("image").attr(nt);return et=function(mt){yt(gt.element,z),ot.call(gt,mt)},ot?(yt(gt.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),at=new N.Image,j(at,"load",et),at.src=z,at.complete&&et({})):yt(gt.element,z),gt},L.prototype.symbol=function(z,et,at,st,H,ot){var wt,nt=this,yt=/^url\((.*?)\)$/,gt=yt.test(z),mt=!gt&&(this.symbols[z]?z:"circle"),St=mt&&this.symbols[mt];if(St){"number"==typeof et&&(wt=St.call(this.symbols,Math.round(et||0),Math.round(at||0),st||0,H||0,ot));var Mt=this.path(wt);nt.styledMode||Mt.attr("fill","none"),u(Mt,{symbolName:mt||void 0,x:et,y:at,width:st,height:H}),ot&&u(Mt,ot)}else if(gt){var Dt=z.match(yt)[1],Pt=Mt=this.image(Dt);Pt.imgwidth=B(S[Dt]&&S[Dt].width,ot&&ot.width),Pt.imgheight=B(S[Dt]&&S[Dt].height,ot&&ot.height);var Ft=function(jt){return jt.attr({width:jt.width,height:jt.height})};["width","height"].forEach(function(jt){Pt[jt+"Setter"]=function(Ut,bt){this[bt]=Ut,Ut=this.alignByTranslate;var _t=this.element,xt=this.width,ft=this.height,Ct=this.imgwidth,Ot=this.imgheight,Rt=this["img"+bt];if(b(Rt)){var Zt=1;ot&&"within"===ot.backgroundSize&&xt&&ft?(Zt=Math.min(xt/Ct,ft/Ot),Rt=Math.round(Rt*Zt),M(_t,{width:Math.round(Ct*Zt),height:Math.round(Ot*Zt)})):_t&&_t.setAttribute(bt,Rt),Ut||this.translate(((xt||0)-Rt*Zt)/2,((ft||0)-Rt*Zt)/2)}}}),b(et)&&Pt.attr({x:et,y:at}),Pt.isImg=!0,b(Pt.imgwidth)&&b(Pt.imgheight)?Ft(Pt):(Pt.attr({width:0,height:0}),D("img",{onload:function(){var jt=k[nt.chartIndex];0===this.width&&(I(this,{position:"absolute",top:"-999em"}),w.body.appendChild(this)),S[Dt]={width:this.width,height:this.height},Pt.imgwidth=this.width,Pt.imgheight=this.height,Pt.element&&Ft(Pt),this.parentNode&&this.parentNode.removeChild(this),nt.imgCount--,!nt.imgCount&&jt&&!jt.hasLoaded&&jt.onload()},src:Dt}),this.imgCount++)}return Mt},L.prototype.clipRect=function(z,et,at,st){var H=it()+"-",ot=this.createElement("clipPath").attr({id:H}).add(this.defs);return(z=this.rect(z,et,at,st,0).add(ot)).id=H,z.clipPath=ot,z.count=0,z},L.prototype.text=function(z,et,at,st){var H={};return!st||!this.allowHTML&&this.forExport?(H.x=Math.round(et||0),at&&(H.y=Math.round(at)),b(z)&&(H.text=z),z=this.createElement("text").attr(H),(!st||this.forExport&&!this.allowHTML)&&(z.xSetter=function(ot,nt,yt){for(var wt,gt=yt.getElementsByTagName("tspan"),mt=yt.getAttribute(nt),St=0;St(z=/px/.test(z)?X(z):12)?z+3:Math.round(1.2*z),b:Math.round(.8*et),f:z}},L.prototype.rotCorr=function(z,et,at){var st=z;return et&&at&&(st=Math.max(st*Math.cos(et*E),4)),{x:-z/3*Math.sin(et*E),y:st}},L.prototype.pathToSegments=function(z){for(var et=[],at=[],st={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},H=0;H":">","'":"'",'"':"""},symbols:V,draw:g}),Z.registerRendererType("svg",G,!0),G}),Y(q,"Core/Renderer/HTML/HTMLElement.js",[q["Core/Globals.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Utilities.js"]],function(O,U,G){var y,Z=this&&this.__extends||(y=function(A,g){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var N in S)S.hasOwnProperty(N)&&(v[N]=S[N])})(A,g)},function(A,g){function v(){this.constructor=A}y(A,g),A.prototype=null===g?Object.create(g):(v.prototype=g.prototype,new v)}),$=O.isFirefox,W=O.isMS,V=O.isWebKit,R=O.win,P=G.css,k=G.defined,E=G.extend,w=G.pick,T=G.pInt;return function(y){function A(){return null!==y&&y.apply(this,arguments)||this}return Z(A,y),A.compose=function(g){if(-1===A.composedClasses.indexOf(g)){A.composedClasses.push(g);var v=A.prototype,S=g.prototype;S.getSpanCorrection=v.getSpanCorrection,S.htmlCss=v.htmlCss,S.htmlGetBBox=v.htmlGetBBox,S.htmlUpdateTransform=v.htmlUpdateTransform,S.setSpanRotation=v.setSpanRotation}return g},A.prototype.getSpanCorrection=function(g,v,S){this.xCorr=-g*S,this.yCorr=-v},A.prototype.htmlCss=function(g){var v="SPAN"===this.element.tagName&&g&&"width"in g,S=w(v&&g.width,void 0);if(v){delete g.width,this.textWidth=S;var N=!0}return g&&"ellipsis"===g.textOverflow&&(g.whiteSpace="nowrap",g.overflow="hidden"),this.styles=E(this.styles,g),P(this.element,g),N&&this.htmlUpdateTransform(),this},A.prototype.htmlGetBBox=function(){var g=this.element;return{x:g.offsetLeft,y:g.offsetTop,width:g.offsetWidth,height:g.offsetHeight}},A.prototype.htmlUpdateTransform=function(){if(this.added){var g=this.renderer,v=this.element,S=this.translateX||0,N=this.translateY||0,j=this.x||0,M=this.y||0,D=this.textAlign||"left",I={left:0,center:.5,right:1}[D],b=this.styles;if(b=b&&b.whiteSpace,P(v,{marginLeft:S,marginTop:N}),!g.styledMode&&this.shadows&&this.shadows.forEach(function(m){P(m,{marginLeft:S+1,marginTop:N+1})}),this.inverted&&[].forEach.call(v.childNodes,function(m){g.invertChild(m,v)}),"SPAN"===v.tagName){var d=this.rotation,u=this.textWidth&&T(this.textWidth),a=[d,D,v.innerHTML,this.textWidth,this.textAlign].join(),n=void 0;if(n=!1,u!==this.oldTextWidth){if(this.textPxLength)var o=this.textPxLength;else P(v,{width:"",whiteSpace:b||"nowrap"}),o=v.offsetWidth;(u>this.oldTextWidth||o>u)&&(/[ \-]/.test(v.textContent||v.innerText)||"ellipsis"===v.style.textOverflow)&&(P(v,{width:o>u||d?u+"px":"auto",display:"block",whiteSpace:b||"normal"}),this.oldTextWidth=u,n=!0)}this.hasBoxWidthChanged=n,a!==this.cTT&&(n=g.fontMetrics(v.style.fontSize,v).b,!k(d)||d===(this.oldRotation||0)&&D===this.oldAlign||this.setSpanRotation(d,I,n),this.getSpanCorrection(!k(d)&&this.textPxLength||v.offsetWidth,n,I,d,D)),P(v,{left:j+(this.xCorr||0)+"px",top:M+(this.yCorr||0)+"px"}),this.cTT=a,this.oldRotation=d,this.oldAlign=D}}else this.alignOnAdd=!0},A.prototype.setSpanRotation=function(g,v,S){var N={},j=W&&!/Edge/.test(R.navigator.userAgent)?"-ms-transform":V?"-webkit-transform":$?"MozTransform":R.opera?"-o-transform":void 0;j&&(N[j]=N.transform="rotate("+g+"deg)",N[j+($?"Origin":"-origin")]=N.transformOrigin=100*v+"% "+S+"px",P(this.element,N))},A.composedClasses=[],A}(U)}),Y(q,"Core/Renderer/HTML/HTMLRenderer.js",[q["Core/Renderer/HTML/AST.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Renderer/SVG/SVGRenderer.js"],q["Core/Utilities.js"]],function(O,U,G,Z){var k,$=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),W=Z.attr,V=Z.createElement,R=Z.extend,P=Z.pick;return function(k){function E(){return null!==k&&k.apply(this,arguments)||this}return $(E,k),E.compose=function(w){return-1===E.composedClasses.indexOf(w)&&(E.composedClasses.push(w),w.prototype.html=E.prototype.html),w},E.prototype.html=function(w,T,y){var A=this.createElement("span"),g=A.element,v=A.renderer,S=v.isSVG,N=function(j,M){["opacity","visibility"].forEach(function(D){j[D+"Setter"]=function(I,b,d){var u=j.div?j.div.style:M;U.prototype[D+"Setter"].call(this,I,b,d),u&&(u[b]=I)}}),j.addedSetters=!0};return A.textSetter=function(j){j!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,O.setElementHTML(this.element,P(j,"")),this.textStr=j,A.doTransform=!0)},S&&N(A,A.element.style),A.xSetter=A.ySetter=A.alignSetter=A.rotationSetter=function(j,M){"align"===M?A.alignValue=A.textAlign=j:A[M]=j,A.doTransform=!0},A.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},A.attr({text:w,x:Math.round(T),y:Math.round(y)}).css({position:"absolute"}),v.styledMode||A.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),g.style.whiteSpace="nowrap",A.css=A.htmlCss,S&&(A.add=function(j){var M=v.box.parentNode,D=[];if(this.parentGroup=j){var I=j.div;if(!I){for(;j;)D.push(j),j=j.parentGroup;D.reverse().forEach(function(b){function d(o,m){b[m]=o,"translateX"===m?n.left=o+"px":n.top=o+"px",b.doTransform=!0}var o,u=W(b.element,"class"),a=b.styles||{},n=(I=b.div=b.div||V("div",u?{className:u}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:a.cursor,pointerEvents:a.pointerEvents,visibility:b.visibility},I||M)).style;R(b,{classSetter:(o=I,function(m){this.element.setAttribute("class",m),o.className=m}),on:function(){return D[0].div&&A.on.apply({element:D[0].div,onEvents:b.onEvents},arguments),b},translateXSetter:d,translateYSetter:d}),b.addedSetters||N(b)})}}else I=M;return I.appendChild(g),A.added=!0,A.alignOnAdd&&A.htmlUpdateTransform(),A}),A},E.composedClasses=[],E}(G)}),Y(q,"Core/Axis/AxisDefaults.js",[],function(){var O,U;return(U=O||(O={})).defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},U.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},U.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},U.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},U.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},U.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},O}),Y(q,"Core/Foundation.js",[q["Core/Utilities.js"]],function(O){var W,U=O.addEvent,G=O.isFunction,Z=O.objectEach,$=O.removeEvent;return(W||(W={})).registerEventOptions=function(R,P){R.eventOptions=R.eventOptions||{},Z(P.events,function(k,E){R.eventOptions[E]!==k&&(R.eventOptions[E]&&($(R,E,R.eventOptions[E]),delete R.eventOptions[E]),G(k)&&(R.eventOptions[E]=k,U(R,E,k)))})},W}),Y(q,"Core/Axis/Tick.js",[q["Core/FormatUtilities.js"],q["Core/Globals.js"],q["Core/Utilities.js"]],function(O,U,G){var Z=U.deg2rad,$=G.clamp,W=G.correctFloat,V=G.defined,R=G.destroyObjectProperties,P=G.extend,k=G.fireEvent,E=G.isNumber,w=G.merge,T=G.objectEach,y=G.pick;return U=function(){function A(g,v,S,N,j){this.isNewLabel=this.isNew=!0,this.axis=g,this.pos=v,this.type=S||"",this.parameters=j||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,k(this,"init"),S||N||this.addLabel()}return A.prototype.addLabel=function(){var g=this,v=g.axis,S=v.options,N=v.chart,j=v.categories,M=v.logarithmic,D=v.names,I=g.pos,b=y(g.options&&g.options.labels,S.labels),d=v.tickPositions,u=I===d[0],a=I===d[d.length-1],n=(!b.step||1===b.step)&&1===v.tickInterval;d=d.info;var m,o=g.label;if(j=this.parameters.category||(j?y(j[I],D[I],I):I),M&&E(j)&&(j=W(M.lin2log(j))),v.dateTime)if(d)var _=N.time.resolveDTLFormat(S.dateTimeLabelFormats[!S.grid&&d.higherRanks[I]||d.unitName]),B=_.main;else E(j)&&(B=v.dateTime.getXDateFormat(j,S.dateTimeLabelFormats||{}));g.isFirst=u,g.isLast=a;var X={axis:v,chart:N,dateTimeLabelFormat:B,isFirst:u,isLast:a,pos:I,tick:g,tickPositionInfo:d,value:j};k(this,"labelFormat",X);var it=function(L){return b.formatter?b.formatter.call(L,L):b.format?(L.text=v.defaultLabelFormatter.call(L,L),O.format(b.format,L,N)):v.defaultLabelFormatter.call(L,L)};S=it.call(X,X);var rt=_&&_.list;g.shortenLabel=rt?function(){for(m=0;mb&&N-d*uM&&(_=Math.round((j-N)/Math.cos(b*Z))):(j=N+(1-d)*u,N-d*uM&&(o=M-g.x+o*d,m=-1),(o=Math.min(a,o))o||v.autoRotation&&(I.styles||{}).width)&&(_=o)),_&&(this.shortenLabel?this.shortenLabel():(n.width=Math.floor(_)+"px",(S.style||{}).textOverflow||(n.textOverflow="ellipsis"),I.css(n)))},A.prototype.moveLabel=function(g,v){var S=this,N=S.label,j=S.axis,M=j.reversed,D=!1;if(N&&N.textStr===g?(S.movedLabel=N,D=!0,delete S.label):T(j.ticks,function(b){D||b.isNew||b===S||!b.label||b.label.textStr!==g||(S.movedLabel=b.label,D=!0,b.labelPos=S.movedLabel.xy,delete b.label)}),!D&&(S.labelPos||N)){var I=S.labelPos||N.xy;N=j.horiz?M?0:j.width+j.left:I.x,j=j.horiz?I.y:M?j.width+j.left:0,S.movedLabel=S.createLabel({x:N,y:j},g,v),S.movedLabel&&S.movedLabel.attr({opacity:0})}},A.prototype.render=function(g,v,S){var N=this.axis,j=N.horiz,M=this.pos,D=y(this.tickmarkOffset,N.tickmarkOffset);D=(M=this.getPosition(j,M,D,v)).x;var I=M.y;N=j&&D===N.pos+N.len||!j&&I===N.pos?-1:1,j=y(S,this.label&&this.label.newOpacity,1),S=y(S,1),this.isActive=!0,this.renderGridLine(v,S,N),this.renderMark(M,S,N),this.renderLabel(M,v,j,g),this.isNew=!1,k(this,"afterRender")},A.prototype.renderGridLine=function(g,v,S){var N=this.axis,j=N.options,M={},D=this.pos,I=this.type,b=y(this.tickmarkOffset,N.tickmarkOffset),d=N.chart.renderer,u=this.gridLine,a=j.gridLineWidth,n=j.gridLineColor,o=j.gridLineDashStyle;"minor"===this.type&&(a=j.minorGridLineWidth,n=j.minorGridLineColor,o=j.minorGridLineDashStyle),u||(N.chart.styledMode||(M.stroke=n,M["stroke-width"]=a||0,M.dashstyle=o),I||(M.zIndex=1),g&&(v=0),this.gridLine=u=d.path().attr(M).addClass("highcharts-"+(I?I+"-":"")+"grid-line").add(N.gridGroup)),u&&(S=N.getPlotLinePath({value:D+b,lineWidth:u.strokeWidth()*S,force:"pass",old:g,acrossPanes:!1}))&&u[g||this.isNew?"attr":"animate"]({d:S,opacity:v})},A.prototype.renderMark=function(g,v,S){var N=this.axis,j=N.options,M=N.chart.renderer,D=this.type,I=N.tickSize(D?D+"Tick":"tick"),b=g.x;g=g.y;var d=y(j["minor"!==D?"tickWidth":"minorTickWidth"],!D&&N.isXAxis?1:0);j=j["minor"!==D?"tickColor":"minorTickColor"];var u=this.mark,a=!u;I&&(N.opposite&&(I[0]=-I[0]),u||(this.mark=u=M.path().addClass("highcharts-"+(D?D+"-":"")+"tick").add(N.axisGroup),N.chart.styledMode||u.attr({stroke:j,"stroke-width":d})),u[a?"attr":"animate"]({d:this.getMarkPath(b,g,I[0],u.strokeWidth()*S,N.horiz,M),opacity:v}))},A.prototype.renderLabel=function(g,v,S,N){var j=this.axis,M=j.horiz,D=j.options,I=this.label,b=D.labels,d=b.step;j=y(this.tickmarkOffset,j.tickmarkOffset);var u=g.x;g=g.y;var a=!0;I&&E(u)&&(I.xy=g=this.getLabelPosition(u,g,I,M,b,j,N,d),this.isFirst&&!this.isLast&&!D.showFirstLabel||this.isLast&&!this.isFirst&&!D.showLastLabel?a=!1:!M||b.step||b.rotation||v||0===S||this.handleOverflow(g),d&&N%d&&(a=!1),a&&E(g.y)?(g.opacity=S,I[this.isNewLabel?"attr":"animate"](g).show(!0),this.isNewLabel=!1):(I.hide(),this.isNewLabel=!0))},A.prototype.replaceMovedLabel=function(){var g=this.label,v=this.axis,S=v.reversed;if(g&&!this.isNew){var N=v.horiz?S?v.left:v.width+v.left:g.xy.x;S=v.horiz?g.xy.y:S?v.width+v.top:v.top,g.animate({x:N,y:S,opacity:0},void 0,g.destroy),delete this.label}v.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},A}()}),Y(q,"Core/Axis/Axis.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Axis/AxisDefaults.js"],q["Core/Color/Color.js"],q["Core/Defaults.js"],q["Core/Foundation.js"],q["Core/Globals.js"],q["Core/Axis/Tick.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R){var P=O.animObject,k=Z.defaultOptions,E=$.registerEventOptions,w=W.deg2rad,T=R.arrayMax,y=R.arrayMin,A=R.clamp,g=R.correctFloat,v=R.defined,S=R.destroyObjectProperties,N=R.erase,j=R.error,M=R.extend,D=R.fireEvent,I=R.isArray,b=R.isNumber,d=R.isString,u=R.merge,a=R.normalizeTickInterval,n=R.objectEach,o=R.pick,m=R.relativeLength,_=R.removeEvent,B=R.splat,X=R.syncTimeout,it=function(rt,L){return a(L,void 0,void 0,o(rt.options.allowDecimals,.5>L||void 0!==rt.tickAmount),!!rt.tickAmount)};return O=function(){function rt(L,z){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(L,z)}return rt.prototype.init=function(L,z){var et=z.isX;this.chart=L,this.horiz=L.inverted&&!this.isZAxis?!et:et,this.isXAxis=et,this.coll=this.coll||(et?"xAxis":"yAxis"),D(this,"init",{userOptions:z}),this.opposite=o(z.opposite,this.opposite),this.side=o(z.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(z);var at=this.options,st=at.labels,H=at.type;this.userOptions=z,this.minPixelPadding=0,this.reversed=o(at.reversed,this.reversed),this.visible=at.visible,this.zoomEnabled=at.zoomEnabled,this.hasNames="category"===H||!0===at.categories,this.categories=at.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=v(at.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=at.minRange||at.maxZoom,this.range=at.range,this.offset=at.offset||0,this.min=this.max=null,z=o(at.crosshair,B(L.options.tooltip.crosshairs)[et?0:1]),this.crosshair=!0===z?{}:z,-1===L.axes.indexOf(this)&&(et?L.axes.splice(L.xAxis.length,0,this):L.axes.push(this),L[this.coll].push(this)),this.series=this.series||[],L.inverted&&!this.isZAxis&&et&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=b(st.rotation)?st.rotation:void 0,E(this,at),D(this,"afterInit")},rt.prototype.setOptions=function(L){this.options=u(U.defaultXAxisOptions,"yAxis"===this.coll&&U.defaultYAxisOptions,[U.defaultTopAxisOptions,U.defaultRightAxisOptions,U.defaultBottomAxisOptions,U.defaultLeftAxisOptions][this.side],u(k[this.coll],L)),D(this,"afterSetOptions",{userOptions:L})},rt.prototype.defaultLabelFormatter=function(L){var z=this.axis;L=this.chart.numberFormatter;var et=b(this.value)?this.value:NaN,at=z.chart.time,st=this.dateTimeLabelFormat,H=k.lang,ot=H.numericSymbols;H=H.numericSymbolMagnitude||1e3;var nt=z.logarithmic?Math.abs(et):z.tickInterval,yt=ot&&ot.length;if(z.categories)var gt="".concat(this.value);else if(st)gt=at.dateFormat(st,et);else if(yt&&1e3<=nt)for(;yt--&&typeof gt>"u";)nt>=(z=Math.pow(H,yt+1))&&10*et%z==0&&null!==ot[yt]&&0!==et&&(gt=L(et/z,-1)+ot[yt]);return typeof gt>"u"&&(gt=1e4<=Math.abs(et)?L(et,-1):L(et,-1,void 0,"")),gt},rt.prototype.getSeriesExtremes=function(){var et,L=this,z=L.chart;D(this,"getSeriesExtremes",null,function(){L.hasVisibleSeries=!1,L.dataMin=L.dataMax=L.threshold=null,L.softThreshold=!L.isXAxis,L.series.forEach(function(at){if(at.visible||!z.options.chart.ignoreHiddenSeries){var st=at.options,H=st.threshold;if(L.hasVisibleSeries=!0,L.positiveValuesOnly&&0>=H&&(H=null),L.isXAxis){if((st=at.xData).length){st=L.logarithmic?st.filter(L.validatePositiveValue):st;var ot=(et=at.getXExtremes(st)).min,nt=et.max;b(ot)||ot instanceof Date||(st=st.filter(b),ot=(et=at.getXExtremes(st)).min,nt=et.max),st.length&&(L.dataMin=Math.min(o(L.dataMin,ot),ot),L.dataMax=Math.max(o(L.dataMax,nt),nt))}}else at=at.applyExtremes(),b(at.dataMin)&&(ot=at.dataMin,L.dataMin=Math.min(o(L.dataMin,ot),ot)),b(at.dataMax)&&(nt=at.dataMax,L.dataMax=Math.max(o(L.dataMax,nt),nt)),v(H)&&(L.threshold=H),(!st.softThreshold||L.positiveValuesOnly)&&(L.softThreshold=!1)}})}),D(this,"afterGetSeriesExtremes")},rt.prototype.translate=function(L,z,et,at,st,H){var ot=this.linkedParent||this,nt=at&&ot.old?ot.old.min:ot.min;if(!b(nt))return NaN;var yt=ot.minPixelPadding;st=(ot.isOrdinal||ot.brokenAxis&&ot.brokenAxis.hasBreaks||ot.logarithmic&&st)&&ot.lin2val;var gt=1,mt=0;return(at=at&&ot.old?ot.old.transA:ot.transA)||(at=ot.transA),et&&(gt*=-1,mt=ot.len),ot.reversed&&(mt-=(gt*=-1)*(ot.sector||ot.len)),z?(H=(L*gt+mt-yt)/at+nt,st&&(H=ot.lin2val(H))):(st&&(L=ot.val2lin(L)),L=gt*(L-nt)*at,H=(ot.isRadial?L:g(L))+mt+gt*yt+(b(H)?at*H:0)),H},rt.prototype.toPixels=function(L,z){return this.translate(L,!1,!this.horiz,void 0,!0)+(z?0:this.pos)},rt.prototype.toValue=function(L,z){return this.translate(L-(z?0:this.pos),!0,!this.horiz,void 0,!0)},rt.prototype.getPlotLinePath=function(L){function z(bt,_t,xt){return"pass"!==Mt&&(bt<_t||bt>xt)&&(Mt?bt=A(bt,_t,xt):Ut=!0),bt}var Dt,Pt,Ft,jt,Ut,et=this,at=et.chart,st=et.left,H=et.top,ot=L.old,nt=L.value,yt=L.lineWidth,gt=ot&&at.oldChartHeight||at.chartHeight,mt=ot&&at.oldChartWidth||at.chartWidth,St=et.transB,wt=L.translatedValue,Mt=L.force;return L={value:nt,lineWidth:yt,old:ot,force:Mt,acrossPanes:L.acrossPanes,translatedValue:wt},D(this,"getPlotLinePath",L,function(bt){wt=o(wt,et.translate(nt,void 0,void 0,ot)),wt=A(wt,-1e5,1e5),Dt=Ft=Math.round(wt+St),Pt=jt=Math.round(gt-wt-St),b(wt)?et.horiz?(Pt=H,jt=gt-et.bottom,Dt=Ft=z(Dt,st,st+et.width)):(Dt=st,Ft=mt-et.right,Pt=jt=z(Pt,H,H+et.height)):(Ut=!0,Mt=!1),bt.path=Ut&&!Mt?null:at.renderer.crispLine([["M",Dt,Pt],["L",Ft,jt]],yt||1)}),L.path},rt.prototype.getLinearTickPositions=function(L,z,et){var at=g(Math.floor(z/L)*L);et=g(Math.ceil(et/L)*L);var H,st=[];if(g(at+L)===at&&(H=20),this.single)return[z];for(z=at;z<=et&&(st.push(z),(z=g(z+L,H))!==ot);)var ot=z;return st},rt.prototype.getMinorTickInterval=function(){var L=this.options;return!0===L.minorTicks?o(L.minorTickInterval,"auto"):!1===L.minorTicks?null:L.minorTickInterval},rt.prototype.getMinorTickPositions=function(){var L=this.options,z=this.tickPositions,et=this.minorTickInterval,at=this.pointRangePadding||0,st=this.min-at,H=(at=this.max+at)-st,ot=[];if(H&&H/et"u"&&!z&&(v(L.min)||v(L.max)||v(L.floor)||v(L.ceiling)?this.minRange=null:(this.series.forEach(function(wt){if(nt=wt.xData,yt=wt.xIncrement?1:nt.length-1,1=this.minRange,mt=this.minRange,St=(mt-at+et)/2;St=[et-St,o(L.min,et-St)],gt&&(St[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),at=[(et=T(St))+mt,o(L.max,et+mt)],gt&&(at[2]=z?z.log2lin(this.dataMax):this.dataMax),(at=y(at))-et=wt)Pt=wt,mt=0;else if(this.dataMax<=wt){var Ft=wt;gt=0}this.min=o(Mt,Pt,this.dataMin),this.max=o(Dt,Ft,this.dataMax)}if(et&&(this.positiveValuesOnly&&!L&&0>=Math.min(this.min,o(this.dataMin,this.min))&&j(10,1,z),this.min=g(et.log2lin(this.min),16),this.max=g(et.log2lin(this.max),16)),this.range&&v(this.max)&&(this.userMin=this.min=Mt=Math.max(this.dataMin,this.minFromRange()),this.userMax=Dt=this.max,this.range=null),D(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(nt||this.axisPointRange||this.stacking&&this.stacking.usePercentage||H)&&v(this.min)&&v(this.max)&&(z=this.max-this.min)&&(!v(Mt)&&mt&&(this.min-=z*mt),!v(Dt)&>&&(this.max+=z*gt)),b(this.userMin)||(b(at.softMin)&&at.softMinthis.max&&(this.max=Dt=at.softMax),b(at.ceiling)&&(this.max=Math.min(this.max,at.ceiling))),yt&&v(this.dataMin)&&(wt=wt||0,!v(Mt)&&this.min=wt?this.min=this.options.minRange?Math.min(wt,this.max-this.minRange):wt:!v(Dt)&&this.max>wt&&this.dataMax<=wt&&(this.max=this.options.minRange?Math.max(wt,this.min+this.minRange):wt)),b(this.min)&&b(this.max)&&!this.chart.polar&&this.min>this.max&&(v(this.options.min)?this.max=this.min:v(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:H&&this.linkedParent&&!St&&ot===this.linkedParent.options.tickPixelInterval?St=this.linkedParent.tickInterval:o(St,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,nt?1:(this.max-this.min)*ot/Math.max(this.len,ot)),st&&!L){var jt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(Ut){Ut.forceCrop=Ut.forceCropping&&Ut.forceCropping(),Ut.processData(jt)}),D(this,"postProcessData",{hasExtremesChanged:jt})}this.setAxisTranslation(),D(this,"initialAxisTranslation"),this.pointRange&&!St&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),L=o(at.minTickInterval,this.dateTime&&!this.series.some(function(Ut){return Ut.noSharedTooltip})?this.closestPointRange:0),!St&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)H=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,L.units),this.min,this.max,L.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)H=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(at=L=this.tickInterval;at<=2*L&&(H=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&H.length>this.tickAmount);)this.tickInterval=it(this,at*=1.1);else H=[this.min,this.max],j(19,!1,this.chart);H.length>this.len&&(H=[H[0],H[H.length-1]])[0]===H[1]&&(H.length=1),et&&(this.tickPositions=H,(nt=et.apply(this,[this.min,this.max]))&&(H=nt))}this.tickPositions=H,this.paddedTicks=H.slice(0),this.trimTicks(H,ot,st),!this.isLinked&&b(this.min)&&b(this.max)&&(this.single&&2>H.length&&!this.categories&&!this.series.some(function(yt){return yt.is("heatmap")&&"between"===yt.options.pointPlacement})&&(this.min-=.5,this.max+=.5),z||nt||this.adjustTickAmount()),D(this,"afterSetTickPositions")},rt.prototype.trimTicks=function(L,z,et){var at=L[0],st=L[L.length-1],H=!this.isOrdinal&&this.minPointOffset||0;if(D(this,"trimTicks"),!this.isLinked){if(z&&at!==-1/0)this.min=at;else for(;this.min-H>L[0];)L.shift();if(et)this.max=st;else for(;this.max+Het&&(this.finalTickAmt=et,et=5),this.tickAmount=et},rt.prototype.adjustTickAmount=function(){var L=this,z=L.finalTickAmt,et=L.max,at=L.min,st=L.options,H=L.tickPositions,ot=L.tickAmount,nt=L.thresholdAlignment,yt=H&&H.length,gt=o(L.threshold,L.softThreshold?0:null),mt=L.tickInterval;if(b(nt)){var St=.5>nt?Math.ceil(nt*(ot-1)):Math.floor(nt*(ot-1));st.reversed&&(St=ot-1-St)}if(L.hasData()&&b(at)&&b(et)){if(nt=function(){L.transA*=(yt-1)/(ot-1),L.min=st.startOnTick?H[0]:Math.min(at,H[0]),L.max=st.endOnTick?H[H.length-1]:Math.max(et,H[H.length-1])},b(St)&&b(L.threshold)){for(;H[St]!==gt||H.length!==ot||H[0]>at||H[H.length-1]L.threshold?H.unshift(g(H[0]-mt)):H.push(g(H[H.length-1]+mt));if(mt>8*L.tickInterval)break;mt*=2}nt()}else if(yt=z&&0nt&&(gt=nt)),v(st)&&(mtnt&&(mt=nt))),et.displayBtn=typeof gt<"u"||typeof mt<"u",et.setExtremes(gt,mt,!1,void 0,{trigger:"zoom"})),yt.zoomed=!0}),L.zoomed},rt.prototype.setAxisSize=function(){var L=this.chart,z=this.options,et=z.offsets||[0,0,0,0],at=this.horiz,st=this.width=Math.round(m(o(z.width,L.plotWidth-et[3]+et[1]),L.plotWidth)),H=this.height=Math.round(m(o(z.height,L.plotHeight-et[0]+et[2]),L.plotHeight)),ot=this.top=Math.round(m(o(z.top,L.plotTop+et[0]),L.plotHeight,L.plotTop));z=this.left=Math.round(m(o(z.left,L.plotLeft+et[3]),L.plotWidth,L.plotLeft)),this.bottom=L.chartHeight-H-ot,this.right=L.chartWidth-st-z,this.len=Math.max(at?st:H,0),this.pos=at?z:ot},rt.prototype.getExtremes=function(){var L=this.logarithmic;return{min:L?g(L.lin2log(this.min)):this.min,max:L?g(L.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},rt.prototype.getThreshold=function(L){var z=this.logarithmic,et=z?z.lin2log(this.min):this.min;return z=z?z.lin2log(this.max):this.max,null===L||L===-1/0?L=et:L===1/0?L=z:et>L?L=et:zz?et.align="right":195z&&(et.align="left")}),L.align},rt.prototype.tickSize=function(L){var z=this.options,et=o(z["tick"===L?"tickWidth":"minorTickWidth"],"tick"===L&&this.isXAxis&&!this.categories?1:0),at=z["tick"===L?"tickLength":"minorTickLength"];if(et&&at){"inside"===z[L+"Position"]&&(at=-at);var st=[at,et]}return D(this,"afterTickSize",L={tickSize:st}),L.tickSize},rt.prototype.labelMetrics=function(){var L=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[L]&&this.ticks[L].label)},rt.prototype.unsquish=function(){var L=this.options.labels,z=this.horiz,et=this.tickInterval,at=this.len/(((this.categories?1:0)+this.max-this.min)/et),st=L.rotation,H=this.labelMetrics(),ot=Math.max(this.max-this.min,0),nt=function(Ft){var jt=Ft/(at||1);return(jt=1ot&&Ft!==1/0&&at!==1/0&&ot&&(jt=Math.ceil(ot/et)),g(jt*et)},yt=et,gt=Number.MAX_VALUE;if(z){if(!L.staggerLines)if(b(st))var mt=[st];else at=Dt)&&(St=(z=nt(Math.abs(H.h/Math.sin(w*Dt))))+Math.abs(Dt/360))at.step)return at.rotation?0:(this.staggerLines||1)*this.len/st;if(!et){if(void 0!==(L=at.style.width))return parseInt(String(L),10);if(H)return H-z.spacing[3]}return.33*z.chartWidth},rt.prototype.renderUnsquish=function(){var L=this.chart,z=L.renderer,et=this.tickPositions,at=this.ticks,st=this.options.labels,H=st.style,ot=this.horiz,nt=this.getSlotWidth(),yt=Math.max(1,Math.round(nt-2*st.padding)),gt={},mt=this.labelMetrics(),St=H.textOverflow,wt=0;if(d(st.rotation)||(gt.rotation=st.rotation||0),et.forEach(function(Ft){(Ft=at[Ft]).movedLabel&&Ft.replaceMovedLabel(),Ft&&Ft.label&&Ft.label.textPxLength>wt&&(wt=Ft.label.textPxLength)}),this.maxLabelLength=wt,this.autoRotation)wt>yt&&wt>mt.h?gt.rotation=this.labelRotation:this.labelRotation=0;else if(nt){var Mt=yt;if(!St){var Dt="clip";for(yt=et.length;!ot&&yt--;){var Pt=et[yt];(Pt=at[Pt].label)&&(Pt.styles&&"ellipsis"===Pt.styles.textOverflow?Pt.css({textOverflow:"clip"}):Pt.textPxLength>nt&&Pt.css({width:nt+"px"}),Pt.getBBox().height>this.len/et.length-(mt.h-mt.f)&&(Pt.specificTextOverflow="ellipsis"))}}}gt.rotation&&(Mt=wt>.5*L.chartHeight?.33*L.chartHeight:wt,St||(Dt="ellipsis")),(this.labelAlign=st.align||this.autoLabelAlign(this.labelRotation))&&(gt.align=this.labelAlign),et.forEach(function(Ft){var jt=(Ft=at[Ft])&&Ft.label,Ut=H.width,bt={};jt&&(jt.attr(gt),Ft.shortenLabel?Ft.shortenLabel():Mt&&!Ut&&"nowrap"!==H.whiteSpace&&(Mt=this.min&&L<=this.max||this.grid&&this.grid.isColumn)&&(at[L]||(at[L]=new V(this,L)),et&&at[L].isNew&&at[L].render(z,!0,-1),at[L].render(z))},rt.prototype.render=function(){var Ft,jt,L=this,z=L.chart,et=L.logarithmic,at=L.options,st=L.isLinked,H=L.tickPositions,ot=L.axisTitle,nt=L.ticks,yt=L.minorTicks,gt=L.alternateBands,mt=at.stackLabels,St=at.alternateGridColor,wt=L.tickmarkOffset,Mt=L.axisLine,Dt=L.showAxis,Pt=P(z.renderer.globalAnimation);if(L.labelEdge.length=0,L.overlap=!1,[nt,yt,gt].forEach(function(bt){n(bt,function(_t){_t.isActive=!1})}),L.hasData()||st){var Ut=L.chart.hasRendered&&L.old&&b(L.old.min);L.minorTickInterval&&!L.categories&&L.getMinorTickPositions().forEach(function(bt){L.renderMinorTick(bt,Ut)}),H.length&&(H.forEach(function(bt,_t){L.renderTick(bt,_t,Ut)}),wt&&(0===L.min||L.single)&&(nt[-1]||(nt[-1]=new V(L,-1,null,!0)),nt[-1].render(-1))),St&&H.forEach(function(bt,_t){jt=typeof H[_t+1]<"u"?H[_t+1]+wt:L.max-wt,_t%2==0&&btT&&(!A||S<=y)&&typeof S<"u"&&N.push(S),S>y&&(D=!0),S=b}}}else T=this.lin2log(T),y=this.lin2log(y),w=A?g.getMinorTickInterval():S.tickInterval,w=Z("auto"===w?null:w,this.minorAutoInterval,S.tickPixelInterval/(A?5:1)*(y-T)/((A?v/g.tickPositions.length:v)||1)),w=G(w),N=g.getLinearTickPositions(w,T,y).map(this.log2lin),A||(this.minorAutoInterval=w/5);return A||(g.tickInterval=w),N},E.prototype.lin2log=function(w){return Math.pow(10,w)},E.prototype.log2lin=function(w){return Math.log(w)/Math.LN10},E}();W.Additions=k}($||($={})),$}),Y(q,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[q["Core/Utilities.js"]],function(O){var $,U=O.erase,G=O.extend,Z=O.isNumber;return function(W){var R,V=[];W.compose=function(k,E){return R||(R=k),-1===V.indexOf(E)&&(V.push(E),G(E.prototype,P.prototype)),E};var P=function(){function k(){}return k.prototype.getPlotBandPath=function(E,w,T){void 0===T&&(T=this.options);var y=this.getPlotLinePath({value:w,force:!0,acrossPanes:T.acrossPanes}),A=[],g=this.horiz;if(w=!Z(this.min)||!Z(this.max)||Ethis.max&&w>this.max,E=this.getPlotLinePath({value:E,force:!0,acrossPanes:T.acrossPanes}),T=1,E&&y){if(w){var v=E.toString()===y.toString();T=0}for(w=0;w"u"&&(I=d.normalize(I)),D=[I.chartX-b,I.chartY-a];else if(D[0].tooltipPos)D=D[0].tooltipPos;else{var n=0,o=0;D.forEach(function(m){(m=m.pos(!0))&&(n+=m[0],o+=m[1])}),n/=D.length,o/=D.length,this.shared&&1jt-n?jt:jt-n);else{if(!Ft)return!1;a[ot]=Math.max(St,mt+n+yt>nt?mt:mt+n)}},at=function(ot,nt,yt,gt,mt){var St;return mtnt-u?St=!1:a[ot]=mtnt-gt/2?nt-gt-2:mt-yt/2,St},st=function(ot){var nt=it;it=rt,rt=nt,L=ot},H=function(){!1!==et.apply(0,it)?!1!==at.apply(0,rt)||L||(st(!0),H()):L?a.x=a.y=0:(st(!0),H())};return(d.inverted||1jt})&&(D=D.map(function(Ft){var jt=b(Ft.anchorX,Ft.anchorY,Ft.point.isHeader,Ft.boxWidth,!1);return w(Ft,{target:jt.y,x:jt.x})})),d.cleanSplit(),R(D,Mt);var Dt=mt,Pt=mt;D.forEach(function(Ft){var jt=Ft.x,Ut=Ft.boxWidth;(Ft=Ft.isHeader)||(d.outside&&mt+jtPt&&(Pt=mt+jt))}),D.forEach(function(Ft){var jt=Ft.x,Ut=Ft.anchorX,bt=Ft.pos,_t=Ft.point.isHeader;if(bt={visibility:typeof bt>"u"?"hidden":"inherit",x:jt,y:(bt||0)+St,anchorX:Ut,anchorY:Ft.anchorY},d.outside&&jtb[0]?Math.max(Math.abs(b[0]),u.width-b[0]):Math.max(Math.abs(b[0]),u.width),d.height=0>b[1]?Math.max(Math.abs(b[1]),u.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),u.height),this.tracker?this.tracker.attr(d):(this.tracker=I.renderer.rect(d).addClass("highcharts-tracker").add(I),D.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},M.prototype.styledModeFormat=function(D){return D.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},M.prototype.tooltipFooterHeaderFormatter=function(D,I){var b=D.series,d=b.tooltipOptions,u=b.xAxis,a=u&&u.dateTime;u={isFooter:I,labelConfig:D};var n=d.xDateFormat,o=d[I?"footerFormat":"headerFormat"];return T(this,"headerFormatter",u,function(m){a&&!n&&A(D.key)&&(n=a.getXDateFormat(D.key,d.dateTimeLabelFormats)),a&&n&&(D.point&&D.point.tooltipDateKeys||["key"]).forEach(function(_){o=o.replace("{point."+_+"}","{point."+_+":"+n+"}")}),b.chart.styledMode&&(o=this.styledModeFormat(o)),m.text=W(o,{point:D,series:b},this.chart)}),u.text},M.prototype.update=function(D){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,D),this.init(this.chart,v(!0,this.options,D))},M.prototype.updatePosition=function(D){var I=this.chart,b=this.distance,d=this.options,u=I.pointer,a=this.getLabel(),n=u.getChartPosition();u=n.left;var o=n.top,m=n.scaleX;n=n.scaleY;var _=(d.positioner||this.getPosition).call(this,a.width,a.height,D),B=(D.plotX||0)+I.plotLeft;D=(D.plotY||0)+I.plotTop,this.outside&&(d.positioner&&(_.x+=u-b,_.y+=o-b),b=d.borderWidth+2*b,this.renderer.setSize(a.width+b,a.height+b,!1),(1!==m||1!==n)&&(k(this.container,{transform:"scale(".concat(m,", ").concat(n,")")}),B*=m,D*=n),B+=u-_.x,D+=o-_.y),this.move(Math.round(_.x),Math.round(_.y||0),B,D)},M}()}),Y(q,"Core/Series/Point.js",[q["Core/Renderer/HTML/AST.js"],q["Core/Animation/AnimationUtilities.js"],q["Core/Defaults.js"],q["Core/FormatUtilities.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$){var W=U.animObject,V=G.defaultOptions,R=Z.format,P=$.addEvent,k=$.defined,E=$.erase,w=$.extend,T=$.fireEvent,y=$.getNestedProperty,A=$.isArray,g=$.isFunction,v=$.isNumber,S=$.isObject,N=$.merge,j=$.objectEach,M=$.pick,D=$.syncTimeout,I=$.removeEvent,b=$.uniqueKey;return U=function(){function d(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return d.prototype.animateBeforeDestroy=function(){var u=this,a={x:u.startXPos,opacity:0},n=u.getGraphicalProps();n.singular.forEach(function(o){u[o]=u[o].animate("dataLabel"===o?{x:u[o].startXPos,y:u[o].startYPos,opacity:0}:a)}),n.plural.forEach(function(o){u[o].forEach(function(m){m.element&&m.animate(w({x:u.startXPos},m.startYPos?{x:m.startXPos,y:m.startYPos}:{}))})})},d.prototype.applyOptions=function(u,a){var n=this.series,o=n.options.pointValKey||n.pointValKey;return u=d.prototype.optionsToObject.call(this,u),w(this,u),this.options=this.options?w(this.options,u):u,u.group&&delete this.group,u.dataLabels&&delete this.dataLabels,o&&(this.y=d.prototype.getNestedProperty.call(this,o)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof a>"u"&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),typeof this.x>"u"&&n?this.x=typeof a>"u"?n.autoIncrement():a:v(u.x)&&n.options.relativeXValue&&(this.x=n.autoIncrement(u.x)),this},d.prototype.destroy=function(){function u(){for(B in(a.graphic||a.graphics||a.dataLabel||a.dataLabels)&&(I(a),a.destroyElements()),a)a[B]=null}var a=this,n=a.series,o=n.chart;n=n.options.dataSorting;var B,m=o.hoverPoints,_=W(a.series.chart.renderer.globalAnimation);a.legendItem&&o.legend.destroyItem(a),m&&(a.setState(),E(m,a),m.length||(o.hoverPoints=null)),a===o.hoverPoint&&a.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),D(u,_.duration)):u(),o.pointCount--},d.prototype.destroyElements=function(u){var a=this;(u=a.getGraphicalProps(u)).singular.forEach(function(n){a[n]=a[n].destroy()}),u.plural.forEach(function(n){a[n].forEach(function(o){o&&o.element&&o.destroy()}),delete a[n]})},d.prototype.firePointEvent=function(u,a,n){var o=this,m=this.series.options;(m.point.events[u]||o.options&&o.options.events&&o.options.events[u])&&o.importEvents(),"click"===u&&m.allowPointSelect&&(n=function(_){o.select&&o.select(null,_.ctrlKey||_.metaKey||_.shiftKey)}),T(o,u,a,n)},d.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},d.prototype.getGraphicalProps=function(u){var m,a=this,n=[],o={singular:[],plural:[]};for((u=u||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","shadowGroup"),u.dataLabel&&n.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),m=n.length;m--;){var _=n[m];a[_]&&o.singular.push(_)}return["graphic","dataLabel","connector"].forEach(function(B){var X=B+"s";u[B]&&a[X]&&o.plural.push(X)}),o},d.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},d.prototype.getNestedProperty=function(u){if(u)return 0===u.indexOf("custom.")?y(u,this.options):this[u]},d.prototype.getZone=function(){var u=this.series,a=u.zones;u=u.zoneAxis||"y";var n,o=0;for(n=a[o];this[u]>=n.value;)n=a[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},d.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},d.prototype.init=function(u,a,n){return this.series=u,this.applyOptions(a,n),this.id=k(this.id)?this.id:b(),this.resolveColor(),u.chart.pointCount++,T(this,"afterInit"),this},d.prototype.isValid=function(){return null!==this.x&&v(this.y)},d.prototype.optionsToObject=function(u){var a=this.series,n=a.options.keys,o=n||a.pointArrayMap||["y"],m=o.length,_={},B=0,X=0;if(v(u)||null===u)_[o[0]]=u;else if(A(u))for(!n&&u.length>m&&("string"==(a=typeof u[0])?_.name=u[0]:"number"===a&&(_.x=u[0]),B++);X"u"||(0d+a&&(X=d+a),itu+n&&(it=u+n),this.hasDragged=Math.sqrt(Math.pow(o-X,2)+Math.pow(m-it,2)),10u.options.findNearestPointBy.indexOf("y");if(u=u.searchPoint(b,a),(a=g(u,!0)&&u.series)&&!(a=!g(d,!0))){a=d.distX-u.distX;var n=d.dist-u.dist,o=(u.series.group&&u.series.group.zIndex)-(d.series.group&&d.series.group.zIndex);a=0<(0!==a&&I?a:0!==n?n:0!==o?o:d.series.index>u.series.index?-1:1)}a&&(d=u)}),d},M.prototype.getChartCoordinatesFromPoint=function(D,I){var b=D.series,d=b.xAxis;b=b.yAxis;var u=D.shapeArgs;if(d&&b){var a=N(D.clientX,D.plotX),n=D.plotY||0;return D.isNode&&u&&A(u.x)&&A(u.y)&&(a=u.x,n=u.y),I?{chartX:b.len+b.pos-n,chartY:d.len+d.pos-a}:{chartX:a+d.pos,chartY:n+b.pos}}if(u&&u.x&&u.y)return{chartX:u.x,chartY:u.y}},M.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var D=this.chart.container,I=S(D);this.chartPosition={left:I.left,top:I.top,scaleX:1,scaleY:1};var b=D.offsetWidth;return D=D.offsetHeight,2"u"||I)&&(this.zoomOption(D),I&&D.preventDefault&&D.preventDefault(),this.dragStart(D))},M.prototype.onContainerMouseLeave=function(D){var I=W[N(M.hoverChartIndex,-1)],b=this.chart.tooltip;D=this.normalize(D),I&&(D.relatedTarget||D.toElement)&&(I.pointer.reset(),I.pointer.chartPosition=void 0),b&&!b.isHidden&&this.reset()},M.prototype.onContainerMouseEnter=function(D){delete this.chartPosition},M.prototype.onContainerMouseMove=function(D){var I=this.chart,b=I.tooltip;D=this.normalize(D),this.setHoverChartIndex(),D.preventDefault||(D.returnValue=!1),("mousedown"===I.mouseIsDown||this.touchSelect(D))&&this.drag(D),I.openMenu||!this.inClass(D.target,"highcharts-tracker")&&!I.isInsidePlot(D.chartX-I.plotLeft,D.chartY-I.plotTop,{visiblePlotOnly:!0})||b&&b.shouldStickOnContact(D)||(this.inClass(D.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(D))},M.prototype.onDocumentTouchEnd=function(D){var I=W[N(M.hoverChartIndex,-1)];I&&I.pointer.drop(D)},M.prototype.onContainerTouchMove=function(D){this.touchSelect(D)?this.onContainerMouseMove(D):this.touch(D)},M.prototype.onContainerTouchStart=function(D){this.touchSelect(D)?this.onContainerMouseDown(D):(this.zoomOption(D),this.touch(D,!0))},M.prototype.onDocumentMouseMove=function(D){var I=this.chart,b=I.tooltip,d=this.chartPosition;D=this.normalize(D,d),!d||I.isInsidePlot(D.chartX-I.plotLeft,D.chartY-I.plotTop,{visiblePlotOnly:!0})||b&&b.shouldStickOnContact(D)||this.inClass(D.target,"highcharts-tracker")||this.reset()},M.prototype.onDocumentMouseUp=function(D){var I=W[N(M.hoverChartIndex,-1)];I&&I.pointer.drop(D)},M.prototype.pinch=function(D){var I=this,b=I.chart,d=I.pinchDown,u=D.touches||[],a=u.length,n=I.lastValidTouch,o=I.hasZoom,m={},_=1===a&&(I.inClass(D.target,"highcharts-tracker")&&b.runTrackerClick||I.runChartClick),B={},X=I.chart.tooltip;X=1===a&&N(X&&X.options.followTouchMove,!0);var it=I.selectionMarker;1z.max&&(b=z.max-H,mt=!0);mt?(yt-=.8*(yt-n[_][0]),"number"==typeof gt&&(gt-=.8*(gt-n[_][1])),I()):n[_]=[yt,gt],L||(a[_]=ot-rt,a[it]=H),a=L?1/nt:nt,u[it]=H,u[_]=b,d[L?D?"scaleY":"scaleX":"scale"+B]=nt,d["translate"+B]=a*rt+(yt-a*at)},M.prototype.reset=function(D,I){var b=this.chart,d=b.hoverSeries,u=b.hoverPoint,a=b.hoverPoints,n=b.tooltip,o=n&&n.shared?a:u;D&&o&&j(o).forEach(function(m){m.series.isCartesian&&typeof m.plotX>"u"&&(D=!1)}),D?n&&o&&j(o).length&&(n.refresh(o),n.shared&&a?a.forEach(function(m){m.setState(m.state,!0),m.series.isCartesian&&(m.series.xAxis.crosshair&&m.series.xAxis.drawCrosshair(null,m),m.series.yAxis.crosshair&&m.series.yAxis.drawCrosshair(null,m))}):u&&(u.setState(u.state,!0),b.axes.forEach(function(m){m.crosshair&&u.series[m.coll]===m&&m.drawCrosshair(null,u)}))):(u&&u.onMouseOut(),a&&a.forEach(function(m){m.setState()}),d&&d.onMouseOut(),n&&n.hide(I),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),b.axes.forEach(function(m){m.hideCrosshair()}),this.hoverX=b.hoverPoints=b.hoverPoint=null)},M.prototype.runPointActions=function(D,I,b){var d=this.chart,u=d.tooltip&&d.tooltip.options.enabled?d.tooltip:void 0,a=!!u&&u.shared,n=I||d.hoverPoint,o=n&&n.series||d.hoverSeries;I=this.getHoverData(n,o,d.series,(!D||"touchmove"!==D.type)&&(!!I||o&&o.directTouch&&this.isDirectTouch),a,D),n=I.hoverPoint,o=I.hoverSeries;var m=I.hoverPoints;I=o&&o.tooltipOptions.followPointer&&!o.tooltipOptions.split;var _=a&&o&&!o.noSharedTooltip;if(n&&(b||n!==d.hoverPoint||u&&u.isHidden)){if((d.hoverPoints||[]).forEach(function(B){-1===m.indexOf(B)&&B.setState()}),d.hoverSeries!==o&&o.onMouseOver(),this.applyInactiveState(m),(m||[]).forEach(function(B){B.setState("hover")}),d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut"),!n.series)return;d.hoverPoints=m,d.hoverPoint=n,n.firePointEvent("mouseOver",void 0,function(){u&&n&&u.refresh(_?m:n,D)})}else I&&u&&!u.isHidden&&(b=u.getAnchor([{}],D),d.isInsidePlot(b[0],b[1],{visiblePlotOnly:!0})&&u.updatePosition({plotX:b[0],plotY:b[1]}));this.unDocMouseMove||(this.unDocMouseMove=R(d.container.ownerDocument,"mousemove",function(B){var X=W[M.hoverChartIndex];X&&X.pointer.onDocumentMouseMove(B)}),this.eventsToUnbind.push(this.unDocMouseMove)),d.axes.forEach(function(B){var it,X=N((B.crosshair||{}).snap,!0);X&&((it=d.hoverPoint)&&it.series[B.coll]===B||(it=T(m,function(rt){return rt.series&&rt.series[B.coll]===B}))),it||!X?B.drawCrosshair(D,it):B.hideCrosshair()})},M.prototype.scaleGroups=function(D,I){var b=this.chart;b.series.forEach(function(d){var u=D||d.getPlotBox();d.group&&(d.xAxis&&d.xAxis.zoomEnabled||b.mapView)&&(d.group.attr(u),d.markerGroup&&(d.markerGroup.attr(u),d.markerGroup.clip(I?b.clipRect:null)),d.dataLabelsGroup&&d.dataLabelsGroup.attr(u))}),b.clipRect.attr(I||b.clipBox)},M.prototype.setDOMEvents=function(){var D=this,I=this.chart.container,b=I.ownerDocument;I.onmousedown=this.onContainerMouseDown.bind(this),I.onmousemove=this.onContainerMouseMove.bind(this),I.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(R(I,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(R(I,"mouseleave",this.onContainerMouseLeave.bind(this))),M.unbindDocumentMouseUp||(M.unbindDocumentMouseUp=R(b,"mouseup",this.onDocumentMouseUp.bind(this)));for(var d=this.chart.renderTo.parentElement;d&&"BODY"!==d.tagName;)this.eventsToUnbind.push(R(d,"scroll",function(){delete D.chartPosition})),d=d.parentElement;U.hasTouch&&(this.eventsToUnbind.push(R(I,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(R(I,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),M.unbindDocumentTouchEnd||(M.unbindDocumentTouchEnd=R(b,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},M.prototype.setHoverChartIndex=function(){var D=this.chart,I=U.charts[N(M.hoverChartIndex,-1)];I&&I!==D&&I.pointer.onContainerMouseLeave({relatedTarget:D.container}),I&&I.mouseIsDown||(M.hoverChartIndex=D.index)},M.prototype.touch=function(D,I){var b=this.chart;if(this.setHoverChartIndex(),1===D.touches.length)if(D=this.normalize(D),b.isInsidePlot(D.chartX-b.plotLeft,D.chartY-b.plotTop,{visiblePlotOnly:!0})&&!b.openMenu){if(I&&this.runPointActions(D),"touchmove"===D.type)var u=!!(I=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(I[0].chartX-D.chartX,2)+Math.pow(I[0].chartY-D.chartY,2));N(u,!0)&&this.pinch(D)}else I&&this.reset();else 2===D.touches.length&&this.pinch(D)},M.prototype.touchSelect=function(D){return!(!this.chart.options.chart.zooming.singleTouch||!D.touches||1!==D.touches.length)},M.prototype.zoomOption=function(D){var I=this.chart,b=I.options.chart;I=I.inverted;var d=b.zooming.type||"";/touch/.test(D.type)&&(d=N(b.zooming.pinchType,d)),this.zoomX=D=/x/.test(d),this.zoomY=b=/y/.test(d),this.zoomHor=D&&!I||b&&I,this.zoomVert=b&&!I||D&&I,this.hasZoom=D||b},M}()}),Y(q,"Core/MSPointer.js",[q["Core/Globals.js"],q["Core/Pointer.js"],q["Core/Utilities.js"]],function(O,U,G){function Z(){var S=[];return S.item=function(N){return this[N]},T(g,function(N){S.push({pageX:N.pageX,pageY:N.pageY,target:N.target})}),S}function $(S,N,j,M){var D=V[U.hoverChartIndex||NaN];"touch"!==S.pointerType&&S.pointerType!==S.MSPOINTER_TYPE_TOUCH||!D||(D=D.pointer,M(S),D[N]({type:j,target:S.currentTarget,preventDefault:P,touches:Z()}))}var S,W=this&&this.__extends||(S=function(N,j){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,D){M.__proto__=D}||function(M,D){for(var I in D)D.hasOwnProperty(I)&&(M[I]=D[I])})(N,j)},function(N,j){function M(){this.constructor=N}S(N,j),N.prototype=null===j?Object.create(j):(M.prototype=j.prototype,new M)}),V=O.charts,R=O.doc,P=O.noop,k=O.win,E=G.addEvent,w=G.css,T=G.objectEach,y=G.pick,A=G.removeEvent,g={},v=!!k.PointerEvent;return function(S){function N(){return null!==S&&S.apply(this,arguments)||this}return W(N,S),N.isRequired=function(){return!(O.hasTouch||!k.PointerEvent&&!k.MSPointerEvent)},N.prototype.batchMSEvents=function(j){j(this.chart.container,v?"pointerdown":"MSPointerDown",this.onContainerPointerDown),j(this.chart.container,v?"pointermove":"MSPointerMove",this.onContainerPointerMove),j(R,v?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},N.prototype.destroy=function(){this.batchMSEvents(A),S.prototype.destroy.call(this)},N.prototype.init=function(j,M){S.prototype.init.call(this,j,M),this.hasZoom&&w(j.container,{"-ms-touch-action":"none","touch-action":"none"})},N.prototype.onContainerPointerDown=function(j){$(j,"onContainerTouchStart","touchstart",function(M){g[M.pointerId]={pageX:M.pageX,pageY:M.pageY,target:M.currentTarget}})},N.prototype.onContainerPointerMove=function(j){$(j,"onContainerTouchMove","touchmove",function(M){g[M.pointerId]={pageX:M.pageX,pageY:M.pageY},g[M.pointerId].target||(g[M.pointerId].target=M.currentTarget)})},N.prototype.onDocumentPointerUp=function(j){$(j,"onDocumentTouchEnd","touchend",function(M){delete g[M.pointerId]})},N.prototype.setDOMEvents=function(){var j=this.chart.tooltip;S.prototype.setDOMEvents.call(this),(this.hasZoom||y(j&&j.options.followTouchMove,!0))&&this.batchMSEvents(E)},N}(U)}),Y(q,"Core/Legend/Legend.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/FormatUtilities.js"],q["Core/Globals.js"],q["Core/Series/Point.js"],q["Core/Renderer/RendererUtilities.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W){var V=O.animObject,R=O.setAnimation,P=U.format,k=G.marginNames,E=$.distribute,w=W.addEvent,T=W.createElement,y=W.css,A=W.defined,g=W.discardElement,v=W.find,S=W.fireEvent,N=W.isNumber,j=W.merge,M=W.pick,D=W.relativeLength,I=W.stableSort,b=W.syncTimeout;return O=function(){function d(u,a){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=u,this.init(u,a)}return d.prototype.init=function(u,a){this.chart=u,this.setOptions(a),a.enabled&&(this.render(),w(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=w(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},d.prototype.setOptions=function(u){var a=M(u.padding,8);this.options=u,this.chart.styledMode||(this.itemStyle=u.itemStyle,this.itemHiddenStyle=j(this.itemStyle,u.itemHiddenStyle)),this.itemMarginTop=u.itemMarginTop||0,this.itemMarginBottom=u.itemMarginBottom||0,this.padding=a,this.initialItemY=a-5,this.symbolWidth=M(u.symbolWidth,16),this.pages=[],this.proximate="proximate"===u.layout&&!this.chart.inverted,this.baseline=void 0},d.prototype.update=function(u,a){var n=this.chart;this.setOptions(j(!0,this.options,u)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,M(a,!0)&&n.redraw(),S(this,"afterUpdate")},d.prototype.colorizeItem=function(u,a){var n=u.legendItem||{},o=n.group,m=n.label,_=n.line;if(n=n.symbol,o&&o[a?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var B=this.options;o=this.itemHiddenStyle.color,B=a?B.itemStyle.color:o;var X=a&&u.color||o,it=u.options&&u.options.marker,rt={fill:X};m&&m.css({fill:B,color:B}),_&&_.attr({stroke:X}),n&&(it&&n.isMarker&&(rt=u.pointAttribs(),a||(rt.stroke=rt.fill=o)),n.attr(rt))}S(this,"afterColorizeItem",{item:u,visible:a})},d.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},d.prototype.positionItem=function(u){var a=this,n=u.legendItem||{},o=n.group,m=n.x;m=void 0===m?0:m,n=void 0===(n=n.y)?0:n;var _=this.options,B=_.symbolPadding,X=!_.rtl;_=u.checkbox,o&&o.element&&(B={translateX:X?m:this.legendWidth-m-2*B-4,translateY:n},o[A(o.translateY)?"animate":"attr"](B,void 0,function(){S(a,"afterPositionItem",{item:u})})),_&&(_.x=m,_.y=n)},d.prototype.destroyItem=function(u){for(var a=u.checkbox,n=u.legendItem||{},o=0,m=["group","label","line","symbol"];oo-6&&B1.5*o?n.height:o))},d.prototype.layoutItem=function(u){var a=this.options,n=this.padding,o="horizontal"===a.layout,m=u.itemHeight,_=this.itemMarginBottom,B=this.itemMarginTop,X=o?M(a.itemDistance,20):0,it=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>it?this.maxItemWidth:u.itemWidth;var rt=u.legendItem||{};o&&this.itemX-n+a>it&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=B+this.lastLineHeight+_),this.lastLineHeight=0),this.lastItemY=B+this.itemY+_,this.lastLineHeight=Math.max(m,this.lastLineHeight),rt.x=this.itemX,rt.y=this.itemY,o?this.itemX+=a:(this.itemY+=B+m+_,this.lastLineHeight=m),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-n-(u.checkbox?0:X):a)+n,this.offsetWidth)},d.prototype.getAllItems=function(){var u=[];return this.chart.series.forEach(function(a){var n=a&&a.options;a&&M(n.showInLegend,!A(n.linkedTo)&&void 0,!0)&&(u=u.concat((a.legendItem||{}).labels||("point"===n.legendType?a.data:a)))}),S(this,"afterGetAllItems",{allItems:u}),u},d.prototype.getAlignment=function(){var u=this.options;return this.proximate?u.align.charAt(0)+"tv":u.floating?"":u.align.charAt(0)+u.verticalAlign.charAt(0)+u.layout.charAt(0)},d.prototype.adjustMargins=function(u,a){var n=this.chart,o=this.options,m=this.getAlignment();m&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(_,B){_.test(m)&&!A(u[B])&&(n[k[B]]=Math.max(n[k[B]],n.legend[(B+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][B]*o[B%2?"x":"y"]+M(o.margin,12)+a[B]+(n.titleOffset[B]||0)))})},d.prototype.proximatePositions=function(){var u=this.chart,a=[],n="left"===this.options.align;this.allItems.forEach(function(X){var it,rt=n;if(X.yAxis){X.xAxis.options.reversed&&(rt=!rt),X.points&&(it=v(rt?X.points:X.points.slice(0).reverse(),function(z){return N(z.plotY)})),rt=this.itemMarginTop+X.legendItem.label.getBBox().height+this.itemMarginBottom;var L=X.yAxis.top-u.plotTop;X.visible?(it=it?it.plotY:X.yAxis.height,it+=L-.3*rt):it=L+X.yAxis.height,a.push({target:it,size:rt,item:X})}},this);for(var o,m=0,_=E(a,u.plotHeight);m<_.length;m++){var B=_[m];o=B.item.legendItem||{},N(B.pos)&&(o.y=u.plotTop-u.spacing[0]+B.pos)}},d.prototype.render=function(){var u=this.chart,a=u.renderer,n=this.options,o=this.padding,m=this.getAllItems(),_=this.group,B=this.box;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=D(n.width,u.spacingBox.width-o);var X=u.spacingBox.width-2*o-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(X/=2),this.maxLegendWidth=this.widthOption||X,_||(this.group=_=a.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(_),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),I(m,function(rt,L){return(rt.options&&rt.options.legendIndex||0)-(L.options&&L.options.legendIndex||0)}),n.reversed&&m.reverse(),this.allItems=m,this.display=X=!!m.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,m.forEach(this.renderItem,this),m.forEach(this.layoutItem,this),m=(this.widthOption||this.offsetWidth)+o;var it=this.lastItemY+this.lastLineHeight+this.titleHeight;it=this.handleOverflow(it),it+=o,B||(this.box=B=a.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(_)),u.styledMode||B.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0_&&!1!==rt.enabled?(this.clipHeight=ot=Math.max(_-20-this.titleHeight-X,0),this.currentPage=M(this.currentPage,1),this.fullHeight=u,at.forEach(function(St,wt){St=(yt=St.legendItem||{}).y||0;var Mt=Math.round(yt.label.getBBox().height),Dt=et.length;(!Dt||St-et[Dt-1]>ot&&(nt||St)!==et[Dt-1])&&(et.push(nt||St),Dt++),yt.pageIx=Dt-1,nt&&((at[wt-1].legendItem||{}).pageIx=Dt-1),wt===at.length-1&&St+Mt-et[Dt-1]>ot&&Mt<=ot&&(et.push(St),yt.pageIx=Dt),St!==nt&&(nt=St)}),mt||(mt=a.clipRect=o.clipRect(0,X,9999,0),a.contentGroup.clip(mt)),st(ot),gt||(this.nav=gt=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,z,z).add(gt),H("upTracker").on("click",function(){a.scroll(-1,L)}),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&rt.style&&this.pager.css(rt.style),this.pager.add(gt),this.down=o.symbol("triangle-down",0,0,z,z).add(gt),H("downTracker").on("click",function(){a.scroll(1,L)})),a.scroll(0),u=_):gt&&(st(),this.nav=gt.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),u},d.prototype.scroll=function(u,a){var n=this,o=this.chart,m=this.pages,_=m.length,B=this.clipHeight,X=this.options.navigation,it=this.pager,rt=this.padding,L=this.currentPage+u;L>_&&(L=_),0=Math.max(Ie+Rt,He.pos)&&he<=Math.min(Ie+Rt+Ot.width,He.pos+He.len)||(_t.isInsidePlot=!1)}return!ft.ignoreY&&_t.isInsidePlot&&(Ct=ft.axis&&!ft.axis.isXAxis&&ft.axis||Ne&&(Ct?Ne.xAxis:Ne.yAxis)||{pos:Zt,len:1/0},(ft=ft.paneCoordinates?Ct.pos+xt:Zt+xt)>=Math.max(ye+Zt,Ct.pos)&&ft<=Math.min(ye+Zt+Ot.height,Ct.pos+Ct.len)||(_t.isInsidePlot=!1)),st(this,"afterIsInsidePlot",_t),_t.isInsidePlot},bt.prototype.redraw=function(_t){st(this,"beforeRedraw");var xt=this.hasCartesianSeries?this.axes:this.colorAxis||[],ft=this.series,Ct=this.pointer,Ot=this.legend,Rt=this.userOptions.legend,Zt=this.renderer,he=Zt.isHidden(),Ie=[],ye=this.isDirtyBox,Ne=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),S(!!this.hasRendered&&_t,this),he&&this.temporaryDisplay(),this.layOutTitles(),_t=ft.length;_t--;){var He=ft[_t];if(He.options.stacking||He.options.centerInCategory){var ze=!0;if(He.isDirty){var ii=!0;break}}}if(ii)for(_t=ft.length;_t--;)(He=ft[_t]).options.stacking&&(He.isDirty=!0);ft.forEach(function($e){$e.isDirty&&("point"===$e.options.legendType?("function"==typeof $e.updateTotals&&$e.updateTotals(),Ne=!0):Rt&&(Rt.labelFormatter||Rt.labelFormat)&&(Ne=!0)),$e.isDirtyData&&st($e,"updatedData")}),Ne&&Ot&&Ot.options.enabled&&(Ot.render(),this.isDirtyLegend=!1),ze&&this.getStacks(),xt.forEach(function($e){$e.updateNames(),$e.setScale()}),this.getMargins(),xt.forEach(function($e){$e.isDirty&&(ye=!0)}),xt.forEach(function($e){var Te=$e.min+","+$e.max;$e.extKey!==Te&&($e.extKey=Te,Ie.push(function(){st($e,"afterSetExtremes",et($e.eventArgs,$e.getExtremes())),delete $e.eventArgs})),(ye||ze)&&$e.redraw()}),ye&&this.drawChartBox(),st(this,"predraw"),ft.forEach(function($e){(ye||$e.isDirty)&&$e.visible&&$e.redraw(),$e.isDirtyData=!1}),Ct&&Ct.reset(!0),Zt.draw(),st(this,"redraw"),st(this,"render"),he&&this.temporaryDisplay(!0),Ie.forEach(function($e){$e.call()})},bt.prototype.get=function(_t){function xt(Rt){return Rt.id===_t||Rt.options&&Rt.options.id===_t}for(var ft=this.series,Ct=at(this.axes,xt)||at(this.series,xt),Ot=0;!Ct&&Otxt.pointCount))},bt.prototype.pan=function(_t,xt){var ft=this,Ct=ft.hoverPoints;xt="object"==typeof xt?xt:{enabled:xt,type:"x"};var Ot=ft.options.chart;Ot&&Ot.panning&&(Ot.panning=xt);var Zt,Rt=xt.type;st(this,"pan",{originalEvent:_t},function(){Ct&&Ct.forEach(function(ye){ye.setState()});var he=ft.xAxis;"xy"===Rt?he=he.concat(ft.yAxis):"y"===Rt&&(he=ft.yAxis);var Ie={};he.forEach(function(ye){if(ye.options.panningEnabled&&!ye.options.isInternal){var Ne=ye.horiz,He=_t[Ne?"chartX":"chartY"],ze=ft[Ne=Ne?"mouseDownX":"mouseDownY"],ii=ye.minPointOffset||0,$e=ye.reversed&&!ft.inverted||!ye.reversed&&ft.inverted?-1:1,Te=ye.getExtremes(),ke=ye.toValue(ze-He,!0)+ii*$e,We=ye.toValue(ze+ye.len-He,!0)-(ii*$e||ye.isXAxis&&ye.pointRangePadding||0),be=We=$e&&ke<=We&&(ye.setExtremes(ze,ke,!1,!1,{trigger:"pan"}),!ft.resetZoomButton&&ze!==$e&&ke!==We&&Rt.match("y")&&(ft.showResetZoom(),ye.displayBtn=!1),Zt=!0),Ie[Ne]=He)}}),St(Ie,function(ye,Ne){ft[Ne]=ye}),Zt&&ft.redraw(!1),X(ft.container,{cursor:"move"})})},bt}(),et(O.prototype,{callbacks:[],collectionsWithInit:{xAxis:[O.prototype.addAxis,[!0]],yAxis:[O.prototype.addAxis,[!1]],series:[O.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),O}),Y(q,"Core/Legend/LegendSymbol.js",[q["Core/Utilities.js"]],function(O){var $,W,U=O.extend,G=O.merge,Z=O.pick;return(W=$||($={})).drawLineMarker=function(V){var R=this.legendItem=this.legendItem||{},P=this.options,k=V.symbolWidth,E=V.symbolHeight,w=E/2,T=this.chart.renderer,y=R.group;V=V.baseline-Math.round(.3*V.fontMetrics.b);var A={},g=P.marker,v=0;this.chart.styledMode||(A={"stroke-width":Math.min(P.lineWidth||0,24)},P.dashStyle?A.dashstyle=P.dashStyle:"square"!==P.linecap&&(A["stroke-linecap"]="round")),R.line=T.path().addClass("highcharts-graph").attr(A).add(y),A["stroke-linecap"]&&(v=Math.min(R.line.strokeWidth(),k)/2),R.line.attr({d:[["M",v,V],["L",k-v,V]]}),g&&!1!==g.enabled&&k&&(P=Math.min(Z(g.radius,w),w),0===this.symbol.indexOf("url")&&(g=G(g,{width:E,height:E}),P=0),R.symbol=R=T.symbol(this.symbol,k/2-P,V-P,2*P,2*P,U({context:"legend"},g)).addClass("highcharts-point").add(y),R.isMarker=!0)},W.drawRectangle=function(V,R){R=R.legendItem||{};var P=V.symbolHeight,k=V.options.squareSymbol;R.symbol=this.chart.renderer.rect(k?(V.symbolWidth-P)/2:0,V.baseline-P+1,k?P:V.symbolWidth,P,Z(V.options.symbolRadius,P/2)).addClass("highcharts-point").attr({zIndex:3}).add(R.group)},$}),Y(q,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var O=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":O(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),Y(q,"Core/Series/Series.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Defaults.js"],q["Core/Foundation.js"],q["Core/Globals.js"],q["Core/Legend/LegendSymbol.js"],q["Core/Series/Point.js"],q["Core/Series/SeriesDefaults.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P,k){var E=O.animObject,w=O.setAnimation,T=U.defaultOptions,y=G.registerEventOptions,A=Z.hasTouch,g=Z.svg,v=Z.win,S=R.seriesTypes,N=k.arrayMax,j=k.arrayMin,M=k.clamp,D=k.cleanRecursively,I=k.correctFloat,b=k.defined,d=k.erase,u=k.error,a=k.extend,n=k.find,o=k.fireEvent,m=k.getNestedProperty,_=k.isArray,B=k.isNumber,X=k.isString,it=k.merge,rt=k.objectEach,L=k.pick,z=k.removeEvent,et=k.splat,at=k.syncTimeout;return O=function(){function st(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return st.prototype.init=function(H,ot){o(this,"init",{options:ot});var nt=this,yt=H.series;this.eventsToUnbind=[],nt.chart=H,nt.options=nt.setOptions(ot),ot=nt.options,nt.linkedSeries=[],nt.bindAxes(),a(nt,{name:ot.name,state:"",visible:!1!==ot.visible,selected:!0===ot.selected}),y(this,ot);var mt,gt=ot.events;(gt&>.click||ot.point&&ot.point.events&&ot.point.events.click||ot.allowPointSelect)&&(H.runTrackerClick=!0),nt.getColor(),nt.getSymbol(),nt.parallelArrays.forEach(function(St){nt[St+"Data"]||(nt[St+"Data"]=[])}),nt.isCartesian&&(H.hasCartesianSeries=!0),yt.length&&(mt=yt[yt.length-1]),nt._i=L(mt&&mt._i,-1)+1,nt.opacity=nt.options.opacity,H.orderSeries(this.insert(yt)),ot.dataSorting&&ot.dataSorting.enabled?nt.setDataSortingOptions():nt.points||nt.data||nt.setData(ot.data,!1),o(this,"afterInit")},st.prototype.is=function(H){return S[H]&&this instanceof S[H]},st.prototype.insert=function(H){var nt,ot=this.options.index;if(B(ot)){for(nt=H.length;nt--;)if(ot>=L(H[nt].options.index,H[nt]._i)){H.splice(nt+1,0,this);break}-1===nt&&H.unshift(this),nt+=1}else H.push(this);return L(nt,H.length-1)},st.prototype.bindAxes=function(){var yt,H=this,ot=H.options,nt=H.chart;o(this,"bindAxes",null,function(){(H.axisTypes||[]).forEach(function(gt){var mt=0;nt[gt].forEach(function(St){yt=St.options,(ot[gt]===mt&&!yt.isInternal||typeof ot[gt]<"u"&&ot[gt]===yt.id||typeof ot[gt]>"u"&&0===yt.index)&&(H.insert(St.series),H[gt]=St,St.isDirty=!0),yt.isInternal||mt++}),H[gt]||H.optionalAxis===gt||u(18,!0,nt)})}),o(this,"afterBindAxes")},st.prototype.updateParallelArrays=function(H,ot){var nt=H.series,yt=arguments,gt=B(ot)?function(mt){var St="y"===mt&&nt.toYData?nt.toYData(H):H[mt];nt[mt+"Data"][ot]=St}:function(mt){Array.prototype[ot].apply(nt[mt+"Data"],Array.prototype.slice.call(yt,2))};nt.parallelArrays.forEach(gt)},st.prototype.hasData=function(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0"u"&&B(yt)&&(Mt=this.xData.indexOf(yt,ot)),-1!==Mt&&typeof Mt<"u"&&this.cropped&&(Mt=Mt>=this.cropStart?Mt-this.cropStart:Mt),!wt&&B(Mt)&>[Mt]&>[Mt].touched&&(Mt=void 0),Mt},st.prototype.updateData=function(H,ot){var Mt,Dt,Pt,nt=this.options,yt=nt.dataSorting,gt=this.points,mt=[],St=this.requireSorting,wt=H.length===gt.length,Ft=!0;if(this.xIncrement=null,H.forEach(function(jt,Ut){var bt=b(jt)&&this.pointClass.prototype.optionsToObject.call({series:this},jt)||{},_t=bt.x;bt.id||B(_t)?(-1===(bt=this.findPointIndex(bt,Pt))||typeof bt>"u"?mt.push(jt):gt[bt]&&jt!==nt.data[bt]?(gt[bt].update(jt,!1,null,!1),gt[bt].touched=!0,St&&(Pt=bt+1)):gt[bt]&&(gt[bt].touched=!0),(!wt||Ut!==bt||yt&&yt.enabled||this.hasDerivedData)&&(Mt=!0)):mt.push(jt)},this),Mt)for(H=gt.length;H--;)(Dt=gt[H])&&!Dt.touched&&Dt.remove&&Dt.remove(!1,ot);else!wt||yt&&yt.enabled?Ft=!1:(H.forEach(function(jt,Ut){jt!==gt[Ut].y&>[Ut].update&>[Ut].update(jt,!1,null,!1)}),mt.length=0);return gt.forEach(function(jt){jt&&(jt.touched=!1)}),!!Ft&&(mt.forEach(function(jt){this.addPoint(jt,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=N(this.xData),this.autoIncrement()),!0)},st.prototype.setData=function(H,ot,nt,yt){void 0===ot&&(ot=!0);var gt=this,mt=gt.points,St=mt&&mt.length||0,wt=gt.options,Mt=gt.chart,Dt=wt.dataSorting,Pt=gt.xAxis,Ft=wt.turboThreshold,jt=this.xData,Ut=this.yData,bt=gt.pointArrayMap;bt=bt&&bt.length;var xt,_t=wt.keys,ft=0,Ct=1,Ot=null;if(!Mt.options.chart.allowMutatingData){wt.data&&delete gt.options.data,gt.userOptions.data&&delete gt.userOptions.data;var Rt=it(!0,H)}if(Rt=(H=Rt||H||[]).length,Dt&&Dt.enabled&&(H=this.sortData(H)),Mt.options.chart.allowMutatingData&&!1!==yt&&Rt&&St&&!gt.cropped&&!gt.hasGroupedData&>.visible&&!gt.boosted&&(xt=this.updateData(H,nt)),!xt){if(gt.xIncrement=null,gt.colorCounter=0,this.parallelArrays.forEach(function(Zt){gt[Zt+"Data"].length=0}),Ft&&Rt>Ft)if(Ot=gt.getFirstValidPoint(H),B(Ot))for(nt=0;ntgt?1:0}).forEach(function(gt,mt){gt.x=mt},this),ot.linkedSeries&&ot.linkedSeries.forEach(function(gt){var mt=gt.options,St=mt.data;mt.dataSorting&&mt.dataSorting.enabled||!St||(St.forEach(function(wt,Mt){St[Mt]=yt(gt,wt),H[Mt]&&(St[Mt].x=H[Mt].x,St[Mt].index=Mt)}),gt.setData(St,!1))}),H},st.prototype.getProcessedData=function(H){var ot=this.xAxis,nt=this.options,yt=nt.cropThreshold,gt=H||this.getExtremesFromAll||nt.getExtremesFromAll,mt=this.isCartesian;H=ot&&ot.val2lin,nt=!(!ot||!ot.logarithmic);var St=0,wt=this.xData,Mt=this.yData,Dt=this.requireSorting,Pt=!1,Ft=wt.length;if(ot){var jt=(Pt=ot.getExtremes()).min,Ut=Pt.max;Pt=!(!ot.categories||ot.names.length)}if(mt&&this.sorted&&!gt&&(!yt||Ft>yt||this.forceCrop))if(wt[Ft-1]Ut)wt=[],Mt=[];else if(this.yData&&(wt[0]Ut)){var bt=this.cropData(this.xData,this.yData,jt,Ut);wt=bt.xData,Mt=bt.yData,St=bt.start,bt=!0}for(yt=wt.length||1;--yt;)if(0<(ot=nt?H(wt[yt])-H(wt[yt-1]):wt[yt]-wt[yt-1])&&(typeof _t>"u"||ot<_t))var _t=ot;else 0>ot&&Dt&&!Pt&&(u(15,!1,this.chart),Dt=!1);return{xData:wt,yData:Mt,cropped:bt,cropStart:St,closestPointRange:_t}},st.prototype.processData=function(H){var ot=this.xAxis;if(this.isCartesian&&!this.isDirty&&!ot.isDirty&&!this.yAxis.isDirty&&!H)return!1;H=this.getProcessedData(),this.cropped=H.cropped,this.cropStart=H.cropStart,this.processedXData=H.xData,this.processedYData=H.yData,this.closestPointRange=this.basePointRange=H.closestPointRange,o(this,"afterProcessData")},st.prototype.cropData=function(H,ot,nt,yt,gt){var St,mt=H.length,wt=0,Mt=mt;for(gt=L(gt,this.cropShoulder),St=0;St=nt){wt=Math.max(0,St-gt);break}for(nt=St;ntyt){Mt=nt+gt;break}return{xData:H.slice(wt,Mt),yData:ot.slice(wt,Mt),start:wt,end:Mt}},st.prototype.generatePoints=function(){var H=this.options,ot=this.processedData||H.data,nt=this.processedXData,yt=this.processedYData,gt=this.pointClass,mt=nt.length,St=this.cropStart||0,wt=this.hasGroupedData,Mt=H.keys,Dt=[];H=H.dataGrouping&&H.dataGrouping.groupAll?St:0;var Pt,Ft,jt=this.data;if(!jt&&!wt){var Ut=[];Ut.length=ot.length,jt=this.data=Ut}for(Mt&&wt&&(this.options.keys=!1),Ft=0;Ft"u"||(jt[Ut]=bt=(new gt).init(this,ot[Ut],nt[Ft]));bt&&(bt.index=wt?H+Ft:Ut,Dt[Ft]=bt)}if(this.options.keys=Mt,jt&&(mt!==(Pt=jt.length)||wt))for(Ft=0;Ft=Mt&&(gt[wt-St]||Ut)<=Dt,bt&&Ut)if(bt=jt.length)for(;bt--;)B(jt[bt])&&(mt[Pt++]=jt[bt]);else mt[Pt++]=jt}return H={activeYData:mt,dataMin:j(mt),dataMax:N(mt)},o(this,"afterGetExtremes",{dataExtremes:H}),H},st.prototype.applyExtremes=function(){var H=this.getExtremes();return this.dataMin=H.dataMin,this.dataMax=H.dataMax,H},st.prototype.getFirstValidPoint=function(H){for(var ot=H.length,nt=0,yt=null;null===yt&&nt=Zt&&(Zt=void 0),xt.total=xt.stackTotal=L(Ct.total),xt.percentage=b(xt.y)&&Ct.total?xt.y/Ct.total*100:void 0,xt.stackY=Rt,this.irregularWidths||Ct.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(xt.yBottom=b(Zt)?M(mt.translate(Zt,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Rt=this.dataModify.modifyValue(Rt,Ut)),xt.plotY=void 0,B(Rt)&&typeof(Ct=mt.translate(Rt,!1,!0,!1,!0))<"u"&&(xt.plotY=M(Ct,-1e5,1e5)),xt.isInside=this.isPointInside(xt),xt.clientX=Dt?I(nt.translate(ft,0,0,0,1,Mt)):bt,xt.negative=xt[jt]<(H[jt+"Threshold"]||Pt||0),xt.category=L(yt&&yt[xt.x],xt.x),!xt.isNull&&!1!==xt.visible){typeof ye<"u"&&(_t=Math.min(_t,Math.abs(bt-ye)));var ye=bt}xt.zone=this.zones.length?xt.getZone():void 0,!xt.graphic&&this.group&>&&(xt.isNew=!0)}this.closestPointRangePx=_t,o(this,"afterTranslate")},st.prototype.getValidPoints=function(H,ot,nt){var yt=this.chart;return(H||this.points||[]).filter(function(gt){return!(ot&&!yt.isInsidePlot(gt.plotX,gt.plotY,{inverted:yt.inverted}))&&!1!==gt.visible&&(nt||!gt.isNull)})},st.prototype.getClipBox=function(){var H=this.chart,ot=this.xAxis,nt=this.yAxis,yt=it(H.clipBox);return ot&&ot.len!==H.plotSizeX&&(yt.width=ot.len),nt&&nt.len!==H.plotSizeY&&(yt.height=nt.len),yt},st.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},st.prototype.setClip=function(){var H=this.chart,ot=this.group,nt=this.markerGroup,yt=H.sharedClips;H=H.renderer;var gt=this.getClipBox(),mt=this.getSharedClipKey(),St=yt[mt];St?St.animate(gt):yt[mt]=St=H.clipRect(gt),ot&&ot.clip(!1===this.options.clip?void 0:St),nt&&nt.clip()},st.prototype.animate=function(H){var ot=this.chart,nt=this.group,yt=this.markerGroup,gt=ot.inverted,mt=E(this.options.animation),St=[this.getSharedClipKey(),mt.duration,mt.easing,mt.defer].join(),wt=ot.sharedClips[St],Mt=ot.sharedClips[St+"m"];if(H&&nt)mt=this.getClipBox(),wt?wt.attr("height",mt.height):(mt.width=0,gt&&(mt.x=ot.plotHeight),wt=ot.renderer.clipRect(mt),ot.sharedClips[St]=wt,Mt=ot.renderer.clipRect({x:-99,y:-99,width:gt?ot.plotWidth+199:99,height:gt?99:ot.plotHeight+199}),ot.sharedClips[St+"m"]=Mt),nt.clip(wt),yt&&yt.clip(Mt);else if(wt&&!wt.hasClass("highcharts-animating")){ot=this.getClipBox();var Dt=mt.step;yt&&yt.element.childNodes.length&&(mt.step=function(Pt,Ft){Dt&&Dt.apply(Ft,arguments),"width"===Ft.prop&&Mt&&Mt.element&&Mt.attr(gt?"height":"width",Pt+99)}),wt.addClass("highcharts-animating").animate(ot,mt)}},st.prototype.afterAnimate=function(){var H=this;this.setClip(),rt(this.chart.sharedClips,function(ot,nt,yt){ot&&!H.chart.container.querySelector('[clip-path="url(#'.concat(ot.id,')"]'))&&(ot.destroy(),delete yt[nt])}),this.finishedAnimating=!0,o(this,"afterAnimate")},st.prototype.drawPoints=function(H){void 0===H&&(H=this.points);var Mt,Dt,ot=this.chart,nt=ot.styledMode,yt=this.colorAxis,gt=this.options.marker,mt=this[this.specialGroup||"markerGroup"],St=this.xAxis,wt=L(gt.enabled,!(St&&!St.isRadial)||null,this.closestPointRangePx>=gt.enabledThreshold*gt.radius);if(!1!==gt.enabled||this._hasPointMarkers)for(Mt=0;Mt"u"||jt.enabled)&&!Pt.isNull&&!1!==Pt.visible){var bt=L(jt.symbol,this.symbol,"rect"),_t=this.markerAttribs(Pt,Pt.selected&&"select");this.enabledDataSorting&&(Pt.startXPos=St.reversed?-(_t.width||0):St.width);var xt=!1!==Pt.isInside;!Dt&&xt&&(0<(_t.width||0)||Pt.hasImage)&&(Pt.graphic=Dt=ot.renderer.symbol(bt,_t.x,_t.y,_t.width,_t.height,Ut?jt:gt).add(mt),this.enabledDataSorting&&ot.hasRendered&&(Dt.attr({x:Pt.startXPos}),Ft="animate")),Dt&&"animate"===Ft&&Dt[xt?"show":"hide"](xt).animate(_t),Dt&&(jt=this.pointAttribs(Pt,nt||!Pt.selected?void 0:"select"),nt?yt&&Dt.css({fill:jt.fill}):Dt[Ft](jt)),Dt&&Dt.addClass(Pt.getClassName(),!0)}else Dt&&(Pt.graphic=Dt.destroy())}},st.prototype.markerAttribs=function(H,ot){var nt=this.options,yt=nt.marker,gt=H.marker||{},mt=gt.symbol||yt.symbol,St={},wt=L(gt.radius,yt&&yt.radius);return ot&&(yt=yt.states[ot],ot=gt.states&>.states[ot],wt=L(ot&&ot.radius,yt&&yt.radius,wt&&wt+(yt&&yt.radiusPlus||0))),H.hasImage=mt&&0===mt.indexOf("url"),H.hasImage&&(wt=0),H=H.pos(),B(wt)&&H&&(St.x=H[0]-wt,St.y=H[1]-wt,nt.crisp&&(St.x=Math.floor(St.x))),wt&&(St.width=St.height=2*wt),St},st.prototype.pointAttribs=function(H,ot){var nt=this.options.marker,yt=H&&H.options,gt=yt&&yt.marker||{},mt=yt&&yt.color,St=H&&H.color,wt=H&&H.zone&&H.zone.color,Mt=this.color;return H=L(gt.lineWidth,nt.lineWidth),yt=1,Mt=mt||wt||St||Mt,mt=gt.fillColor||nt.fillColor||Mt,St=gt.lineColor||nt.lineColor||Mt,ot=ot||"normal",nt=nt.states[ot]||{},ot=gt.states&>.states[ot]||{},H=L(ot.lineWidth,nt.lineWidth,H+L(ot.lineWidthPlus,nt.lineWidthPlus,0)),mt=ot.fillColor||nt.fillColor||mt,{stroke:St=ot.lineColor||nt.lineColor||St,"stroke-width":H,fill:mt,opacity:yt=L(ot.opacity,nt.opacity,yt)}},st.prototype.destroy=function(H){var St,wt,Mt,ot=this,nt=ot.chart,yt=/AppleWebKit\/533/.test(v.navigator.userAgent),gt=ot.data||[];for(o(ot,"destroy",{keepEventsForUpdate:H}),this.removeEvents(H),(ot.axisTypes||[]).forEach(function(Dt){(Mt=ot[Dt])&&Mt.series&&(d(Mt.series,ot),Mt.isDirty=Mt.forceRedraw=!0)}),ot.legendItem&&ot.chart.legend.destroyItem(ot),St=gt.length;St--;)(wt=gt[St])&&wt.destroy&&wt.destroy();ot.clips&&ot.clips.forEach(function(Dt){return Dt.destroy()}),k.clearTimeout(ot.animationTimeout),rt(ot,function(Dt,Pt){Dt instanceof P&&!Dt.survive&&Dt[yt&&"group"===Pt?"hide":"destroy"]()}),nt.hoverSeries===ot&&(nt.hoverSeries=void 0),d(nt.series,ot),nt.orderSeries(),rt(ot,function(Dt,Pt){H&&"hcEvents"===Pt||delete ot[Pt]})},st.prototype.applyZones=function(){var Pt,Ft,jt,Ut,bt,_t,xt,ft,H=this,ot=this.chart,nt=ot.renderer,yt=this.zones,gt=this.clips||[],mt=this.graph,St=this.area,wt=Math.max(ot.plotWidth,ot.plotHeight),Mt=this[(this.zoneAxis||"y")+"Axis"],Dt=ot.inverted,Ct=!1;if(yt.length&&(mt||St)&&Mt&&typeof Mt.min<"u"){var Ot=Mt.reversed,Rt=Mt.horiz;mt&&!this.showLine&&mt.hide(),St&&St.hide();var Zt=Mt.getExtremes();yt.forEach(function(he,Ie){Pt=Ot?Rt?ot.plotWidth:0:Rt?0:Mt.toPixels(Zt.min)||0,Pt=M(L(Ft,Pt),0,wt),Ft=M(Math.round(Mt.toPixels(L(he.value,Zt.max),!0)||0),0,wt),Ct&&(Pt=Ft=Mt.toPixels(Zt.max)),Ut=Math.abs(Pt-Ft),bt=Math.min(Pt,Ft),_t=Math.max(Pt,Ft),Mt.isXAxis?(jt={x:Dt?_t:bt,y:0,width:Ut,height:wt},Rt||(jt.x=ot.plotHeight-jt.x)):(jt={x:0,y:Dt?_t:bt,width:wt,height:Ut},Rt&&(jt.y=ot.plotWidth-jt.y)),Dt&&nt.isVML&&(jt=Mt.isXAxis?{x:0,y:Ot?bt:_t,height:jt.width,width:ot.chartWidth}:{x:jt.y-ot.plotLeft-ot.spacingBox.x,y:0,width:jt.height,height:ot.chartHeight}),gt[Ie]?gt[Ie].animate(jt):gt[Ie]=nt.clipRect(jt),xt=H["zone-area-"+Ie],ft=H["zone-graph-"+Ie],mt&&ft&&ft.clip(gt[Ie]),St&&xt&&xt.clip(gt[Ie]),Ct=he.value>Zt.max,H.resetZones&&0===Ft&&(Ft=void 0)}),this.clips=gt}else H.visible&&(mt&&mt.show(),St&&St.show())},st.prototype.plotGroup=function(H,ot,nt,yt,gt){var mt=this[H],St=!mt;return nt={visibility:nt,zIndex:yt||.1},typeof this.opacity>"u"||this.chart.styledMode||"inactive"===this.state||(nt.opacity=this.opacity),St&&(this[H]=mt=this.chart.renderer.g().add(gt)),mt.addClass("highcharts-"+ot+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(b(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(mt.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),mt.attr(nt)[St?"attr":"animate"](this.getPlotBox(ot)),mt},st.prototype.getPlotBox=function(H){var ot=this.xAxis,nt=this.yAxis,yt=this.chart;return H=yt.inverted&&!yt.polar&&ot&&!1!==this.invertible&&"series"===H,yt.inverted&&(ot=nt,nt=this.xAxis),{translateX:ot?ot.left:yt.plotLeft,translateY:nt?nt.top:yt.plotTop,rotation:H?90:0,rotationOriginX:H?(ot.len-nt.len)/2:0,rotationOriginY:H?(ot.len+nt.len)/2:0,scaleX:H?-1:1,scaleY:1}},st.prototype.removeEvents=function(H){H||z(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(ot){ot()}),this.eventsToUnbind.length=0)},st.prototype.render=function(){var H=this,ot=H.chart,nt=H.options,yt=E(nt.animation),gt=H.visible?"inherit":"hidden",mt=nt.zIndex,St=H.hasRendered,wt=ot.seriesGroup;ot=!H.finishedAnimating&&ot.renderer.isSVG?yt.duration:0,o(this,"render"),H.plotGroup("group","series",gt,mt,wt),H.markerGroup=H.plotGroup("markerGroup","markers",gt,mt,wt),!1!==nt.clip&&H.setClip(),H.animate&&ot&&H.animate(!0),H.drawGraph&&(H.drawGraph(),H.applyZones()),H.visible&&H.drawPoints(),H.drawDataLabels&&H.drawDataLabels(),H.redrawPoints&&H.redrawPoints(),H.drawTracker&&!1!==H.options.enableMouseTracking&&H.drawTracker(),H.animate&&ot&&H.animate(),St||(ot&&yt.defer&&(ot+=yt.defer),H.animationTimeout=at(function(){H.afterAnimate()},ot||0)),H.isDirty=!1,H.hasRendered=!0,o(H,"afterRender")},st.prototype.redraw=function(){var H=this.isDirty||this.isDirtyData;this.translate(),this.render(),H&&delete this.kdTree},st.prototype.searchPoint=function(H,ot){var nt=this.xAxis,yt=this.yAxis,gt=this.chart.inverted;return this.searchKDTree({clientX:gt?nt.len-H.chartY+nt.pos:H.chartX-nt.pos,plotY:gt?yt.len-H.chartX+yt.pos:H.chartY-yt.pos},ot,H)},st.prototype.buildKDTree=function(H){function ot(gt,mt,St){var wt=gt&>.length;if(wt){var Mt=nt.kdAxisArray[mt%St];return gt.sort(function(Dt,Pt){return Dt[Mt]-Pt[Mt]}),{point:gt[wt=Math.floor(wt/2)],left:ot(gt.slice(0,wt),mt+1,St),right:ot(gt.slice(wt+1),mt+1,St)}}}this.buildingKdTree=!0;var nt=this,yt=-1(Ut=Mt[Ut]-jt[Ut])?"right":"left",Dt[xt=0>Ut?"left":"right"]&&(bt=(xt=yt(Mt,Dt[xt],Pt+1,Ft))[wt]Ut;)bt--;this.updateParallelArrays(jt,"splice",bt,0,0),this.updateParallelArrays(jt,bt),Mt&&jt.name&&(Mt[Ut]=jt.name),Dt.splice(bt,0,H),(Ft||this.processedData)&&(this.data.splice(bt,0,null),this.processData()),"point"===mt.legendType&&this.generatePoints(),nt&&(St[0]&&St[0].remove?St[0].remove(!1):(St.shift(),this.updateParallelArrays(jt,"shift"),Dt.shift())),!1!==gt&&o(this,"addPoint",{point:jt}),this.isDirtyData=this.isDirty=!0,ot&&wt.redraw(yt)},st.prototype.removePoint=function(H,ot,nt){var yt=this,gt=yt.data,mt=gt[H],St=yt.points,wt=yt.chart,Mt=function(){St&&St.length===gt.length&&St.splice(H,1),gt.splice(H,1),yt.options.data.splice(H,1),yt.updateParallelArrays(mt||{series:yt},"splice",H,1),mt&&mt.destroy(),yt.isDirty=!0,yt.isDirtyData=!0,ot&&wt.redraw()};w(nt,wt),ot=L(ot,!0),mt?mt.firePointEvent("remove",null,Mt):Mt()},st.prototype.remove=function(H,ot,nt,yt){function gt(){mt.destroy(yt),St.isDirtyLegend=St.isDirtyBox=!0,St.linkSeries(),L(H,!0)&&St.redraw(ot)}var mt=this,St=mt.chart;!1!==nt?o(mt,"remove",null,gt):gt()},st.prototype.update=function(H,ot){H=D(H,this.userOptions),o(this,"update",{options:H});var nt=this,yt=nt.chart,gt=nt.userOptions,mt=nt.initialType||nt.type,St=yt.options.plotOptions,wt=S[mt].prototype,Mt=nt.finishedAnimating&&{animation:!1},Dt={},Pt=["eventOptions","navigatorSeries","baseSeries"],Ft=H.type||gt.type||yt.options.chart.type,jt=!(this.hasDerivedData||Ft&&Ft!==this.type||typeof H.pointStart<"u"||typeof H.pointInterval<"u"||typeof H.relativeXValue<"u"||H.joinBy||H.mapData||nt.hasOptionChanged("dataGrouping")||nt.hasOptionChanged("pointStart")||nt.hasOptionChanged("pointInterval")||nt.hasOptionChanged("pointIntervalUnit")||nt.hasOptionChanged("keys"));if(Ft=Ft||mt,jt&&(Pt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==H.visible&&Pt.push("area","graph"),nt.parallelArrays.forEach(function(bt){Pt.push(bt+"Data")}),H.data&&(H.dataSorting&&a(nt.options.dataSorting,H.dataSorting),this.setData(H.data,!1))),H=it(gt,Mt,{index:typeof gt.index>"u"?nt.index:gt.index,pointStart:L(St&&St.series&&St.series.pointStart,gt.pointStart,nt.xData[0])},!jt&&{data:nt.options.data},H),jt&&H.data&&(H.data=nt.options.data),(Pt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(Pt)).forEach(function(bt){Pt[bt]=nt[bt],delete nt[bt]}),St=!1,S[Ft]){if(St=Ft!==nt.type,nt.remove(!1,!1,!1,!0),St)if(Object.setPrototypeOf)Object.setPrototypeOf(nt,S[Ft].prototype);else{for(Ut in Mt=Object.hasOwnProperty.call(nt,"hcEvents")&&nt.hcEvents,wt)nt[Ut]=void 0;a(nt,S[Ft].prototype),Mt?nt.hcEvents=Mt:delete nt.hcEvents}}else u(17,!0,yt,{missingModuleFor:Ft});if(Pt.forEach(function(bt){nt[bt]=Pt[bt]}),nt.init(yt,H),jt&&this.points){if(!1===(H=nt.options).visible)Dt.graphic=1,Dt.dataLabel=1;else if(!nt._hasPointLabels){wt=H.marker;var Ut=H.dataLabels;gt=gt.marker||{},!wt||!1!==wt.enabled&>.symbol===wt.symbol&>.height===wt.height&>.width===wt.width||(Dt.graphic=1),Ut&&!1===Ut.enabled&&(Dt.dataLabel=1)}for(gt=0,wt=this.points;gt"u"?!mt:H)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(wt){nt[wt]&&nt[wt][St]()}),(yt.hoverSeries===nt||(yt.hoverPoint&&yt.hoverPoint.series)===nt)&&nt.onMouseOut(),nt.legendItem&&yt.legend.colorizeItem(nt,H),nt.isDirty=!0,nt.options.stacking&&yt.series.forEach(function(wt){wt.options.stacking&&wt.visible&&(wt.isDirty=!0)}),nt.linkedSeries.forEach(function(wt){wt.setVisible(H,!1)}),gt&&(yt.isDirtyBox=!0),o(nt,St),!1!==ot&&yt.redraw()},st.prototype.show=function(){this.setVisible(!0)},st.prototype.hide=function(){this.setVisible(!1)},st.prototype.select=function(H){this.selected=H=this.options.selected=typeof H>"u"?!this.selected:H,this.checkbox&&(this.checkbox.checked=H),o(this,H?"select":"unselect")},st.prototype.shouldShowTooltip=function(H,ot,nt){return void 0===nt&&(nt={}),nt.series=this,nt.visiblePlotOnly=!0,this.chart.isInsidePlot(H,ot,nt)},st.defaultOptions=V,st.types=R.seriesTypes,st.registerType=R.registerSeriesType,st}(),a(O.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:$.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:W,requireSorting:!0,sorted:!0}),R.series=O,O}),Y(q,"Extensions/ScrollablePlotArea.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Axis/Axis.js"],q["Core/Chart/Chart.js"],q["Core/Series/Series.js"],q["Core/Renderer/RendererRegistry.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W){var V=O.stop,R=W.addEvent,P=W.createElement,k=W.defined,E=W.merge,w=W.pick;R(G,"afterSetChartSize",function(T){var y=this.options.chart.scrollablePlotArea,A=y&&y.minWidth;if(y=y&&y.minHeight,!this.renderer.forExport){if(A){if(this.scrollablePixelsX=A=Math.max(0,A-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=E(this.plotBox),this.plotBox.width=this.plotWidth+=A,this.inverted?this.clipBox.height+=A:this.clipBox.width+=A;var g={1:{name:"right",value:A}}}}else y&&(this.scrollablePixelsY=A=Math.max(0,y-this.chartHeight),k(A)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=E(this.plotBox),this.plotBox.height=this.plotHeight+=A,this.inverted?this.clipBox.width+=A:this.clipBox.height+=A,g={2:{name:"bottom",value:A}}));g&&!T.skipAxes&&this.axes.forEach(function(v){g[v.side]?v.getPlotLinePath=function(){var S=g[v.side].name,N=this[S];this[S]=N-g[v.side].value;var j=U.prototype.getPlotLinePath.apply(this,arguments);return this[S]=N,j}:(v.setAxisSize(),v.setAxisTranslation())})}}),R(G,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),G.prototype.setUpScrolling=function(){var A,T=this,y={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(y.overflowX="auto"),this.scrollablePixelsY&&(y.overflowY="auto"),this.scrollingParent=P("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=P("div",{className:"highcharts-scrolling"},y,this.scrollingParent),R(this.scrollingContainer,"scroll",function(){T.pointer&&(delete T.pointer.chartPosition,T.hoverPoint&&(A=T.hoverPoint),T.pointer.runPointActions(void 0,A,!0))}),this.innerContainer=P("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},G.prototype.moveFixedElements=function(){var g,T=this.container,y=this.fixedRenderer,A=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?g=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis"),g&&A.push(g+":not(.highcharts-radial-axis)",g+"-labels:not(.highcharts-radial-axis-labels)"),A.forEach(function(v){[].forEach.call(T.querySelectorAll(v),function(S){(S.namespaceURI===y.SVG_NS?y.box:y.box.parentNode).appendChild(S),S.style.pointerEvents="auto"})})},G.prototype.applyFixed=function(){var T=!this.fixedDiv,y=this.options.chart,A=y.scrollablePlotArea,g=$.getRendererType();T?(this.fixedDiv=P("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(y.style&&y.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=y=new g(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=y.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":w(A.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),R(this,"afterShowResetZoom",this.moveFixedElements),R(this,"afterApplyDrilldown",this.moveFixedElements),R(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||T)&&(this.scrollableDirty=!1,this.moveFixedElements()),y=this.chartWidth+(this.scrollablePixelsX||0),g=this.chartHeight+(this.scrollablePixelsY||0),V(this.container),this.container.style.width=y+"px",this.container.style.height=g+"px",this.renderer.boxWrapper.attr({width:y,height:g,viewBox:[0,0,y,g].join(" ")}),this.chartBackground.attr({width:y,height:g}),this.scrollingContainer.style.height=this.chartHeight+"px",T&&(A.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*A.scrollPositionX),A.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*A.scrollPositionY)),g=this.axisOffset,T=this.plotTop-g[0]-1,A=this.plotLeft-g[3]-1,y=this.plotTop+this.plotHeight+g[2]+1,g=this.plotLeft+this.plotWidth+g[1]+1;var v=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),S=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);T=this.scrollablePixelsX?[["M",0,T],["L",this.plotLeft-1,T],["L",this.plotLeft-1,y],["L",0,y],["Z"],["M",v,T],["L",this.chartWidth,T],["L",this.chartWidth,y],["L",v,y],["Z"]]:this.scrollablePixelsY?[["M",A,0],["L",A,this.plotTop-1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",A,S],["L",A,this.chartHeight],["L",g,this.chartHeight],["L",g,S],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:T})},R(U,"afterInit",function(){this.chart.scrollableDirty=!0}),R(Z,"show",function(){this.chart.scrollableDirty=!0})}),Y(q,"Core/Axis/Stacking/StackItem.js",[q["Core/FormatUtilities.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G){var Z=O.format,$=U.series,W=G.destroyObjectProperties,V=G.pick,R=G.isNumber;return O=function(){function P(k,E,w,T,y){var A=k.chart.inverted,g=k.reversed;this.axis=k,k=this.isNegative=!!w!=!!g,this.options=E=E||{},this.x=T,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=y,this.rightCliff=this.leftCliff=0,this.alignOptions={align:E.align||(A?k?"left":"right":"center"),verticalAlign:E.verticalAlign||(A?"middle":k?"bottom":"top"),y:E.y,x:E.x},this.textAlign=E.textAlign||(A?k?"right":"left":"center")}return P.prototype.destroy=function(){W(this,this.axis)},P.prototype.render=function(k){var E=this.axis.chart,w=this.options,T=w.format;T=T?Z(T,this,E):w.formatter.call(this),this.label?this.label.attr({text:T,visibility:"hidden"}):(this.label=E.renderer.label(T,null,void 0,w.shape,void 0,void 0,w.useHTML,!1,"stack-labels"),T={r:w.borderRadius||0,text:T,padding:V(w.padding,5),visibility:"hidden"},E.styledMode||(T.fill=w.backgroundColor,T.stroke=w.borderColor,T["stroke-width"]=w.borderWidth,this.label.css(w.style||{})),this.label.attr(T),this.label.added||this.label.add(k)),this.label.labelrank=E.plotSizeY},P.prototype.setOffset=function(k,E,w,T,y,A){var g=this.alignOptions,v=this.axis,S=this.label,N=this.options,j=this.textAlign,M=v.chart;k=this.getStackBox({xOffset:k,width:E,boxBottom:w,boxTop:T,defaultX:y,xAxis:A}),y=g.verticalAlign,S&&k&&(E=S.getBBox(),w=S.padding,T="justify"===V(N.overflow,"justify"),g.x=N.x||0,g.y=N.y||0,j=(y=this.adjustStackPosition({labelBox:E,verticalAlign:y,textAlign:j})).x,y=y.y,k.x-=j,k.y-=y,S.align(g,!1,k),(j=M.isInsidePlot(S.alignAttr.x+g.x+j,S.alignAttr.y+g.y+y))||(T=!1),T&&$.prototype.justifyDataLabel.call(v,S,g,S.alignAttr,E,k),S.attr({x:S.alignAttr.x,y:S.alignAttr.y,rotation:N.rotation,rotationOriginX:E.width/2,rotationOriginY:E.height/2}),V(!T&&N.crop,!0)&&(j=R(S.x)&&R(S.y)&&M.isInsidePlot(S.x-w+S.width,S.y)&&M.isInsidePlot(S.x+w,S.y)),S[j?"show":"hide"]())},P.prototype.adjustStackPosition=function(k){var E=k.labelBox,w={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:E.width/2+E.width/2*w[k.textAlign],y:E.height/2*w[k.verticalAlign]}},P.prototype.getStackBox=function(k){var E=this.axis,w=E.chart,T=k.boxTop,y=k.defaultX,A=k.xOffset,g=k.width,v=k.boxBottom;return T=E.stacking.usePercentage?100:V(T,this.total,0),T=E.toPixels(T),k=V(y,(k.xAxis||w.xAxis[0]).toPixels(this.x))+A,E=E.toPixels(v||0),E=Math.abs(T-E),v=this.isNegative,w.inverted?{x:(v?T:T-E)-w.plotLeft,y:k-w.plotTop,width:E,height:g}:{x:k-w.plotLeft,y:(v?T-E:T)-w.plotTop,width:g,height:E}},P}()}),Y(q,"Core/Axis/Stacking/StackingAxis.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Axis/Axis.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Axis/Stacking/StackItem.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$){function W(){var a=this,n=a.inverted;a.yAxis.forEach(function(o){o.stacking&&o.stacking.stacks&&o.hasVisibleSeries&&(o.stacking.oldStacks=o.stacking.stacks)}),a.series.forEach(function(o){var m=o.xAxis&&o.xAxis.options||{};!o.options.stacking||!0!==o.visible&&!1!==a.options.chart.ignoreHiddenSeries||(o.stackKey=[o.type,b(o.options.stack,""),n?m.top:m.left,n?m.height:m.width].join())})}function V(){var a=this.stacking;if(a){var n=a.stacks;I(n,function(o,m){N(o),n[m]=null}),a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function R(){"yAxis"!==this.coll||this.stacking||(this.stacking=new d(this))}function P(a,n,o,m){return!S(a)||a.x!==n||m&&a.stackKey!==m?a={x:n,index:0,key:m,stackKey:m}:a.index++,a.key=[o,n,a.index].join(),a}function k(){var B,a=this,n=a.stackKey,o=a.yAxis.stacking.stacks,m=a.processedXData,_=a[a.options.stacking+"Stacker"];_&&[n,"-"+n].forEach(function(X){for(var rt,L,it=m.length;it--;)rt=m[it],B=a.getStackIndicator(B,rt,a.index,X),(L=(rt=o[X]&&o[X][rt])&&rt.points[B.key])&&_.call(a,L,rt,it)})}function E(a,n,o){n=n.total?100/n.total:0,a[0]=v(a[0]*n),a[1]=v(a[1]*n),this.stackedYData[o]=a[1]}function w(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1A&&k.shadow)),v&&(v.startX=E.xMap,v.isArea=E.isArea)})},R.prototype.getGraphPath=function(P,k,E){var g,w=this,T=w.options,y=[],A=[],v=T.step,S=(P=P||w.points).reversed;return S&&P.reverse(),(v={right:1,center:2}[v]||v&&3)&&S&&(v=4-v),(P=this.getValidPoints(P,!1,!(T.connectNulls&&!k&&!E))).forEach(function(N,j){var M=N.plotX,D=N.plotY,I=P[j-1];(N.leftCliff||I&&I.rightCliff)&&!E&&(g=!0),N.isNull&&!$(k)&&0P&&S>T?N=2*T-(S=Math.max(P,T)):SE&&N>T?S=2*T-(N=Math.max(E,T)):N"u"&&(o[m]=_++);var et=o[m]}else!1!==z.grouping&&(et=_++);rt.columnIndex=et}});var B=Math.min(Math.abs(u.transA)*(u.ordinal&&u.ordinal.slope||d.pointRange||u.closestPointRange||u.tickInterval||1),u.len),X=B*d.groupPadding,it=(B-2*X)/(_||1);return d=Math.min(d.maxPointWidth||u.len,j(d.pointWidth,it*(1-2*d.pointPadding))),b.columnMetrics={width:d,offset:(it-d)/2+(X+((b.columnIndex||0)+(n?1:0))*it-B/2)*(n?-1:1),paddedWidth:it,columnCount:_},b.columnMetrics},I.prototype.crispCol=function(b,d,u,a){var n=this.chart,o=this.borderWidth,m=-(o%2?.5:0);return o=o%2?.5:1,n.inverted&&n.renderer.isVML&&(o+=1),this.options.crisp&&(u=Math.round(b+u)+m,u-=b=Math.round(b)+m),a=Math.round(d+a)+o,m=.5>=Math.abs(d)&&.5b.closestPointRange*b.xAxis.transA;a=b.borderWidth=j(u.borderWidth,a?0:1);var n=b.xAxis,o=b.yAxis,m=u.threshold,_=b.translatedThreshold=o.getThreshold(m),B=j(u.minPointLength,5),X=b.getColumnMetrics(),it=X.width,rt=b.pointXOffset=X.offset,L=b.dataMin,z=b.dataMax,et=b.barW=Math.max(it,1+2*a);d.inverted&&(_-=.5),u.pointPadding&&(et=Math.ceil(et)),W.prototype.translate.apply(b),b.points.forEach(function(at){var st=j(at.yBottom,_),H=999+Math.abs(st),ot=at.plotX||0;H=T(at.plotY,-H,o.len+H);var nt=Math.min(H,st),yt=Math.max(H,st)-nt,gt=it,mt=ot+rt,St=et;B&&Math.abs(yt)B?st-B:_-(ot?B:0)),y(at.options.pointWidth)&&(gt=St=Math.ceil(at.options.pointWidth),mt-=Math.round((gt-it)/2)),u.centerInCategory&&(mt=b.adjustForMissingColumns(mt,gt,at,X)),at.barX=mt,at.pointWidth=gt,at.tooltipPos=d.inverted?[T(o.len+o.pos-d.plotLeft-H,o.pos-d.plotLeft,o.len+o.pos-d.plotLeft),n.len+n.pos-d.plotTop-mt-St/2,yt]:[n.left-d.plotLeft+mt+St/2,T(H+o.pos-d.plotTop,o.pos-d.plotTop,o.len+o.pos-d.plotTop),yt],at.shapeType=b.pointClass.prototype.shapeType||"rect",at.shapeArgs=b.crispCol.apply(b,at.isNull?[mt,_,St,0]:[mt,nt,St,yt])})},I.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},I.prototype.pointAttribs=function(b,d){var u=this.options,a=this.pointAttrToOptions||{},n=a.stroke||"borderColor",o=a["stroke-width"]||"borderWidth",m=b&&b.color||this.color,_=b&&b[n]||u[n]||m;a=b&&b.options.dashStyle||u.dashStyle;var B=b&&b[o]||u[o]||this[o]||0,X=j(b&&b.opacity,u.opacity,1);if(b&&this.zones.length){var it=b.getZone();m=b.options.color||it&&(it.color||b.nonZonedColor)||this.color,it&&(_=it.borderColor||_,a=it.dashStyle||a,B=it.borderWidth||B)}return d&&b&&(d=(b=N(u.states[d],b.options.states&&b.options.states[d]||{})).brightness,m=b.color||typeof d<"u"&&E(m).brighten(b.brightness).get()||m,_=b[n]||_,B=b[o]||B,a=b.dashStyle||a,X=j(b.opacity,X)),n={fill:m,stroke:_,"stroke-width":B,opacity:X},a&&(n.dashstyle=a),n},I.prototype.drawPoints=function(b){void 0===b&&(b=this.points);var m,d=this,u=this.chart,a=d.options,n=u.renderer,o=a.animationLimit||250;b.forEach(function(_){var B=_.graphic,X=!!B,it=B&&u.pointCount"===d&&b>u||"<"===d&&b="===d&&b>=u||"<="===d&&b<=u||"=="===d&&b==u||"==="===d&&b===u)}(L,z),st=L.connectors?L.connectors[et]:L.connector,H=L.dataLabels?L.dataLabels[et]:L.dataLabel,ot=!H,nt=T(z.distance,L.labelDistance);if(at){var yt=L.getLabelConfig(),gt=T(z[L.formatPrefix+"Format"],z.format);yt=W(gt)?$(gt,yt,u):(z[L.formatPrefix+"Formatter"]||z.formatter).call(yt,z),gt=z.style;var mt=z.rotation;u.styledMode||(gt.color=T(z.color,gt.color,d.color,"#000000"),"contrast"===gt.color?(L.contrastColor=o.getContrast(L.color||d.color),gt.color=!W(nt)&&z.inside||0>nt||a.stacking?L.contrastColor:B):delete L.contrastColor,a.cursor&&(gt.cursor=a.cursor));var St={r:z.borderRadius||0,rotation:mt,padding:z.padding,zIndex:1};if(!u.styledMode){nt=z.backgroundColor;var wt=z.borderColor;St.fill="auto"===nt?L.color:nt,St.stroke="auto"===wt?L.color:wt,St["stroke-width"]=z.borderWidth}w(St,function(Mt,Dt){typeof Mt>"u"&&delete St[Dt]})}!H||at&&W(yt)&&!!H.div==!!z.useHTML&&(H.rotation&&z.rotation||H.rotation===z.rotation)||(ot=!0,L.dataLabel=H=L.dataLabel&&L.dataLabel.destroy(),L.dataLabels&&(1===L.dataLabels.length?delete L.dataLabels:delete L.dataLabels[et]),et||delete L.dataLabel,st&&(L.connector=L.connector.destroy(),L.connectors&&(1===L.connectors.length?delete L.connectors:delete L.connectors[et]))),at&&W(yt)?(H?St.text=yt:(L.dataLabels=L.dataLabels||[],H=L.dataLabels[et]=mt?o.text(yt,0,0,z.useHTML).addClass("highcharts-data-label"):o.label(yt,0,0,z.shape,null,null,z.useHTML,null,"data-label"),et||(L.dataLabel=H),H.addClass(" highcharts-data-label-color-"+L.colorIndex+" "+(z.className||"")+(z.useHTML?" highcharts-tracker":""))),H.options=z,H.attr(St),u.styledMode||H.css(gt).shadow(z.shadow),(et=z[L.formatPrefix+"TextPath"]||z.textPath)&&!z.useHTML&&(H.setTextPath(L.getDataLabelPath&&L.getDataLabelPath(H)||L.graphic,et),L.dataLabelPath&&!et.enabled&&(L.dataLabelPath=L.dataLabelPath.destroy())),H.added||H.add(rt),d.alignDataLabel(L,H,z,null,ot)):H&&H.hide()})})}R(this,"afterDrawDataLabels")}function j(b,d,u,a,n,o){var m=this.chart,_=d.align,B=d.verticalAlign,X=b.box?0:b.padding||0,it=d.x;it=void 0===it?0:it;var rt=d.y;rt=void 0===rt?0:rt;var L=(u.x||0)+X;if(0>L){"right"===_&&0<=it?(d.align="left",d.inside=!0):it-=L;var z=!0}return(L=(u.x||0)+a.width-X)>m.plotWidth&&("left"===_&&0>=it?(d.align="right",d.inside=!0):it+=m.plotWidth-L,z=!0),0>(L=u.y+X)&&("bottom"===B&&0<=rt?(d.verticalAlign="top",d.inside=!0):rt-=L,z=!0),(L=(u.y||0)+a.height-X)>m.plotHeight&&("top"===B&&0>=rt?(d.verticalAlign="bottom",d.inside=!0):rt+=m.plotHeight-L,z=!0),z&&(d.x=it,d.y=rt,b.placed=!o,b.align(d,void 0,n)),z}function M(b,d){var a,u=[];if(P(b)&&!P(d))u=b.map(function(n){return E(n,d)});else if(P(d)&&!P(b))u=d.map(function(n){return E(b,n)});else if(P(b)||P(d))for(a=Math.max(b.length,d.length);a--;)u[a]=E(b[a],d[a]);else u=E(b,d);return u}function D(b,d,u,a,n){var o=this.chart,m=o.inverted,_=this.xAxis,B=_.reversed,X=m?d.height/2:d.width/2;b=(b=b.pointWidth)?b/2:0,d.startXPos=m?n.x:B?-X-b:_.width-X+b,d.startYPos=m?B?this.yAxis.height-X+b:-X-b:n.y,a?"hidden"===d.visibility&&(d.show(),d.attr({opacity:0}).animate({opacity:1})):d.attr({opacity:1}).animate({opacity:0},void 0,d.hide),o.hasRendered&&(u&&d.attr({x:d.startXPos,y:d.startYPos}),d.placed=!0)}var I=[];g.compose=function(b){if(-1===I.indexOf(b)){var d=b.prototype;I.push(b),d.alignDataLabel=v,d.drawDataLabels=N,d.justifyDataLabel=j,d.setDataLabelStartPos=D}}}(A||(A={})),A}),Y(q,"Series/Column/ColumnDataLabel.js",[q["Core/Series/DataLabel.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G){var V,Z=U.series,$=G.merge,W=G.pick;return function(R){function P(E,w,T,y,A){var g=this.chart.inverted,v=E.series,S=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0;v=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0;var N=E.dlBox||E.shapeArgs,j=W(E.below,E.plotY>W(this.translatedThreshold,v)),M=W(T.inside,!!this.options.stacking);N&&(0>(y=$(N)).y&&(y.height+=y.y,y.y=0),0<(N=y.y+y.height-v)&&N\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),Y(q,"Series/Scatter/ScatterSeries.js",[q["Series/Scatter/ScatterSeriesDefaults.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G){var k,Z=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),$=U.seriesTypes,W=$.column,V=$.line;$=G.addEvent;var R=G.extend,P=G.merge;return G=function(k){function E(){var w=null!==k&&k.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return Z(E,k),E.prototype.applyJitter=function(){var w=this,T=this.options.jitter,y=this.points.length;T&&this.points.forEach(function(A,g){["x","y"].forEach(function(v,S){var N="plot"+v.toUpperCase();if(T[v]&&!A.isNull){var j=w[v+"Axis"],M=T[v]*j.transA;if(j&&!j.isLog){var D=Math.max(0,A[N]-M);j=Math.min(j.len,A[N]+M),S=1e4*Math.sin(g+S*y),A[N]=D+(j-D)*(S-Math.floor(S)),"x"===v&&(A.clientX=A.plotX)}}})})},E.prototype.drawGraph=function(){this.options.lineWidth?k.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},E.defaultOptions=P(V.defaultOptions,O),E}(V),R(G.prototype,{drawTracker:W.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),$(G,"afterTranslate",function(){this.applyJitter()}),U.registerSeriesType("scatter",G),G}),Y(q,"Series/CenteredUtilities.js",[q["Core/Globals.js"],q["Core/Series/Series.js"],q["Core/Utilities.js"]],function(O,U,G){var P,k,Z=O.deg2rad,$=G.fireEvent,W=G.isNumber,V=G.pick,R=G.relativeLength;return(k=P||(P={})).getCenter=function(){var E=this.options,w=this.chart,T=2*(E.slicedOffset||0),y=w.plotWidth-2*T,A=w.plotHeight-2*T,g=E.center,v=Math.min(y,A),S=E.thickness,N=E.size,j=E.innerSize||0;for("string"==typeof N&&(N=parseFloat(N)),"string"==typeof j&&(j=parseFloat(j)),E=[V(g[0],"50%"),V(g[1],"50%"),V(N&&0>N?void 0:E.size,"100%"),V(j&&0>j?void 0:E.innerSize||0,"0%")],!w.angular||this instanceof U||(E[3]=0),g=0;4>g;++g)N=E[g],w=2>g||2===g&&/%$/.test(N),E[g]=R(N,[y,A,v,E[2]][g])+(w?T:0);return E[3]>E[2]&&(E[3]=E[2]),W(S)&&2*SE&&360>w-E?w:E+360,{start:Z*(E+-90),end:Z*(w+-90)}},P}),Y(q,"Series/Pie/PiePoint.js",[q["Core/Animation/AnimationUtilities.js"],q["Core/Series/Point.js"],q["Core/Utilities.js"]],function(O,U,G){var E,Z=this&&this.__extends||(E=function(w,T){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,A){y.__proto__=A}||function(y,A){for(var g in A)A.hasOwnProperty(g)&&(y[g]=A[g])})(w,T)},function(w,T){function y(){this.constructor=w}E(w,T),w.prototype=null===T?Object.create(T):(y.prototype=T.prototype,new y)}),$=O.setAnimation,W=G.addEvent,V=G.defined;O=G.extend;var R=G.isNumber,P=G.pick,k=G.relativeLength;return U=function(E){function w(){var T=null!==E&&E.apply(this,arguments)||this;return T.labelDistance=void 0,T.options=void 0,T.series=void 0,T}return Z(w,E),w.prototype.getConnectorPath=function(){var T=this.labelPosition,y=this.series.options.dataLabels,A=this.connectorShapes,g=y.connectorShape;return A[g]&&(g=A[g]),g.call(this,{x:T.final.x,y:T.final.y,alignment:T.alignment},T.connectorPosition,y)},w.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},w.prototype.haloPath=function(T){var y=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(y.x,y.y,y.r+T,y.r+T,{innerR:y.r-1,start:y.start,end:y.end})},w.prototype.init=function(){var T=this;E.prototype.init.apply(this,arguments),this.name=P(this.name,"Slice");var y=function(A){T.slice("select"===A.type)};return W(this,"select",y),W(this,"unselect",y),this},w.prototype.isValid=function(){return R(this.y)&&0<=this.y},w.prototype.setVisible=function(T,y){var A=this,g=this.series,v=g.chart,S=g.options.ignoreHiddenPoint;y=P(y,S),T!==this.visible&&(this.visible=this.options.visible=T=typeof T>"u"?!this.visible:T,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(N){A[N]&&A[N][T?"show":"hide"](T)}),this.legendItem&&v.legend.colorizeItem(this,T),T||"hover"!==this.state||this.setState(""),S&&(g.isDirty=!0),y&&v.redraw())},w.prototype.slice=function(T,y,A){var g=this.series;$(A,g.chart),P(y,!0),this.sliced=this.options.sliced=V(T)?T:!this.sliced,g.options.data[g.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},w}(U),O(U.prototype,{connectorShapes:{fixedOffset:function(E,w,T){var y=w.breakAt;return w=w.touchingSliceAt,[["M",E.x,E.y],T.softConnector?["C",E.x+("left"===E.alignment?-5:5),E.y,2*y.x-w.x,2*y.y-w.y,y.x,y.y]:["L",y.x,y.y],["L",w.x,w.y]]},straight:function(E,w){return w=w.touchingSliceAt,[["M",E.x,E.y],["L",w.x,w.y]]},crookedLine:function(E,w,T){w=w.touchingSliceAt;var y=this.series,A=y.center[0],g=y.chart.plotWidth,v=y.chart.plotLeft;y=E.alignment;var S=this.shapeArgs.r;return T=k(T.crookDistance,1),T=["L",g="left"===y?A+S+(g+v-A-S)*(1-T):v+(A-S)*T,E.y],A=!0,("left"===y?g>E.x||gw.x)&&(A=!1),E=[["M",E.x,E.y]],A&&E.push(T),E.push(["L",w.x,w.y]),E}}}),U}),Y(q,"Series/Pie/PieSeriesDefaults.js",[],function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),Y(q,"Series/Pie/PieSeries.js",[q["Series/CenteredUtilities.js"],q["Series/Column/ColumnSeries.js"],q["Core/Globals.js"],q["Core/Legend/LegendSymbol.js"],q["Series/Pie/PiePoint.js"],q["Series/Pie/PieSeriesDefaults.js"],q["Core/Series/Series.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Renderer/SVG/Symbols.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P,k){var N,E=this&&this.__extends||(N=function(j,M){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,I){D.__proto__=I}||function(D,I){for(var b in I)I.hasOwnProperty(b)&&(D[b]=I[b])})(j,M)},function(j,M){function D(){this.constructor=j}N(j,M),j.prototype=null===M?Object.create(M):(D.prototype=M.prototype,new D)}),w=O.getStartAndEndRadians;G=G.noop;var T=k.clamp,y=k.extend,A=k.fireEvent,g=k.merge,v=k.pick,S=k.relativeLength;return k=function(N){function j(){var M=null!==N&&N.apply(this,arguments)||this;return M.center=void 0,M.data=void 0,M.maxLabelDistance=void 0,M.options=void 0,M.points=void 0,M}return E(j,N),j.prototype.animate=function(M){var D=this,I=D.points,b=D.startAngleRad;M||I.forEach(function(d){var u=d.graphic,a=d.shapeArgs;u&&a&&(u.attr({r:v(d.startR,D.center&&D.center[3]/2),start:b,end:b}),u.animate({r:a.r,start:a.start,end:a.end},D.options.animation))})},j.prototype.drawEmpty=function(){var M=this.startAngleRad,D=this.endAngleRad,I=this.options;if(0===this.total&&this.center){var b=this.center[0],d=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(b,d,this.center[1]/2,0,M,D).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:P.arc(b,d,this.center[2]/2,0,{start:M,end:D,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":I.borderWidth,fill:I.fillColor||"none",stroke:I.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},j.prototype.drawPoints=function(){var M=this.chart.renderer;this.points.forEach(function(D){D.graphic&&D.hasNewShapeType()&&(D.graphic=D.graphic.destroy()),D.graphic||(D.graphic=M[D.shapeType](D.shapeArgs).add(D.series.group),D.delayedRendering=!0)})},j.prototype.generatePoints=function(){N.prototype.generatePoints.call(this),this.updateTotals()},j.prototype.getX=function(M,D,I){var b=this.center,d=this.radii?this.radii[I.index]||0:b[2]/2;return M=Math.asin(T((M-b[1])/(d+I.labelDistance),-1,1)),b[0]+(D?-1:1)*Math.cos(M)*(d+I.labelDistance)+(01.5*Math.PI?it-=2*Math.PI:it<-Math.PI/2&&(it+=2*Math.PI),B.slicedTranslation={translateX:Math.round(Math.cos(it)*I),translateY:Math.round(Math.sin(it)*I)},rt=Math.cos(it)*M[2]/2;var L=Math.sin(it)*M[2]/2;B.tooltipPos=[M[0]+.7*rt,M[1]+.7*L],B.half=it<-Math.PI/2||it>Math.PI/2?1:0,B.angle=it,X=Math.min(b,B.labelDistance/5),B.labelPosition={natural:{x:M[0]+rt+Math.cos(it)*B.labelDistance,y:M[1]+L+Math.sin(it)*B.labelDistance},final:{},alignment:0>B.labelDistance?"center":B.half?"right":"left",connectorPosition:{breakAt:{x:M[0]+rt+Math.cos(it)*X,y:M[1]+L+Math.sin(it)*X},touchingSliceAt:{x:M[0]+rt,y:M[1]+L}}}}A(this,"afterTranslate")},j.prototype.updateTotals=function(){var b,M=this.points,D=M.length,I=this.options.ignoreHiddenPoint,d=0;for(b=0;bm&&(Mt.dataLabel.css({width:Math.round(.7*m)+"px"}),Mt.dataLabel.shortened=!0)):(Mt.dataLabel=Mt.dataLabel.destroy(),Mt.dataLabels&&1===Mt.dataLabels.length&&delete Mt.dataLabels))}),it.forEach(function(Mt,Dt){var jt,Pt=Mt.length,Ft=[];if(Pt){if(D.sortByAngle(Mt,Dt-.5),0"u"?mt="hidden":(nt=z.distributeBox.size,gt=L.radialDistributionY(z))),delete z.positionIndex,d.justify)yt=L.justify(z,B,_);else switch(d.alignTo){case"connectors":yt=L.alignToConnectors(Mt,Dt,a,o);break;case"plotEdges":yt=L.alignToPlotEdges(st,Dt,a,o);break;default:yt=L.radialDistributionX(D,z,gt,Ut)}st._attr={visibility:mt,align:ot.alignment},wt=z.options.dataLabels||{},st._pos={x:yt+T(wt.x,d.x)+({left:u,right:-u}[ot.alignment]||0),y:gt+T(wt.y,d.y)-10},ot.final.x=yt,ot.final.y=gt,T(d.crop,!0)&&(H=st.getBBox().width,Ut=null,yt-Ha-u&&0===Dt&&(Ut=Math.round(yt+H-a+u),rt[1]=Math.max(Ut,rt[1])),0>gt-nt/2?rt[0]=Math.max(Math.round(nt/2-gt),rt[0]):gt+nt/2>n&&(rt[2]=Math.max(Math.round(gt+nt/2-n),rt[2])),st.sideOverflow=Ut)}}}),0===P(rt)||this.verifyDataLabelOverflow(rt))&&(this.placeDataLabels(),this.points.forEach(function(Mt){var Dt;wt=w(d,Mt.options.dataLabels),(et=T(wt.connectorWidth,1))&&(at=Mt.connector,(st=Mt.dataLabel)&&st._pos&&Mt.visible&&0I.bottom-2?d:b,I.half,I)},justify:function(D,I,b){return b[0]+(D.half?-1:1)*(I+D.labelDistance)},alignToPlotEdges:function(D,I,b,d){return D=D.getBBox().width,I?D+d:b-D-d},alignToConnectors:function(D,I,b,d){var a,u=0;return D.forEach(function(n){(a=n.dataLabel.getBBox().width)>u&&(u=a)}),I?u+d:b-u-d}};g.compose=function(D){O.compose(R),-1===j.indexOf(D)&&(j.push(D),(D=D.prototype).dataLabelPositioners=M,D.alignDataLabel=W,D.drawDataLabels=v,D.placeDataLabels=S,D.verifyDataLabelOverflow=N)}}(A||(A={})),A}),Y(q,"Extensions/OverlappingDataLabels.js",[q["Core/Chart/Chart.js"],q["Core/Utilities.js"]],function(O,U){function G(k,E){var w=!1;if(k){var T=k.newOpacity;k.oldOpacity!==T&&(k.alignAttr&&k.placed?(k[T?"removeClass":"addClass"]("highcharts-data-label-hidden"),w=!0,k.alignAttr.opacity=T,k[k.isOld?"animate":"attr"](k.alignAttr,null,function(){E.styledMode||k.css({pointerEvents:T?"auto":"none"})}),$(E,"afterHideOverlappingLabel")):k.attr({opacity:T})),k.isOld=!0}return w}var Z=U.addEvent,$=U.fireEvent,W=U.isArray,V=U.isNumber,R=U.objectEach,P=U.pick;Z(O,"render",function(){var k=this,E=[];(this.labelCollectors||[]).forEach(function(w){E=E.concat(w())}),(this.yAxis||[]).forEach(function(w){w.stacking&&w.options.stackLabels&&!w.options.stackLabels.allowOverlap&&R(w.stacking.stacks,function(T){R(T,function(y){y.label&&E.push(y.label)})})}),(this.series||[]).forEach(function(w){var T=w.options.dataLabels;w.visible&&(!1!==T.enabled||w._hasPointLabels)&&((T=function(y){return y.forEach(function(A){A.visible&&(W(A.dataLabels)?A.dataLabels:A.dataLabel?[A.dataLabel]:[]).forEach(function(g){var v=g.options;g.labelrank=P(v.labelrank,A.labelrank,A.shapeArgs&&A.shapeArgs.height),v.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,G(g,k)):E.push(g)})})})(w.nodes||[]),T(w.points))}),this.hideOverlappingLabels(E)}),O.prototype.hideOverlappingLabels=function(k){var y,A,g,E=this,w=k.length,T=E.renderer,v=!1,S=function(M){var D,d,I=M.box?0:M.padding||0,b=D=0;if(M&&(!M.alignAttr||M.placed)){var u=M.alignAttr||{x:M.attr("x"),y:M.attr("y")},a=M.parentGroup;M.width||(D=M.getBBox(),M.width=D.width,M.height=D.height,D=T.fontMetrics(null,M.element).h);var n=M.width-2*I;return(d={left:"0",center:"0.5",right:"1"}[M.alignValue])?b=+d*n:V(M.x)&&Math.round(M.x)!==M.translateX&&(b=M.x-M.translateX),{x:u.x+(a.translateX||0)+I-(b||0),y:u.y+(a.translateY||0)+I-D,width:M.width-2*I,height:M.height-2*I}}};for(A=0;A=N.x+N.width||j.x+j.width<=N.x||j.y>=N.y+N.height||j.y+j.height<=N.y||((S.labelrank"u"?null:M[u]})}(g,this.options,N,0),N},A.prototype.matchResponsiveRule=function(g,v){var S=g.condition;(S.callback||function(){return this.chartWidth<=R(S.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=R(S.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=R(S.minWidth,0)&&this.chartHeight>=R(S.minHeight,0)}).call(this)&&v.push(g._id)},A.prototype.setResponsive=function(g,v){var S=this,N=this.options.responsive,j=this.currentResponsive,M=[];!v&&N&&N.rules&&N.rules.forEach(function(D){typeof D._id>"u"&&(D._id=k()),S.matchResponsiveRule(D,M)},this),(v=W.apply(void 0,M.map(function(D){return G((N||{}).rules||[],function(I){return I._id===D})}).map(function(D){return D&&D.chartOptions}))).isResponsiveOptions=!0,(M=M.toString()||void 0)!==(j&&j.ruleIds)&&(j&&this.update(j.undoOptions,g,!0),M?((j=this.currentOptions(v)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:M,mergedOptions:v,undoOptions:j},this.update(v,g,!0)):this.currentResponsive=void 0)},A}()}(E||(E={})),E}),Y(q,"masters/highcharts.src.js",[q["Core/Globals.js"],q["Core/Utilities.js"],q["Core/Defaults.js"],q["Core/Animation/Fx.js"],q["Core/Animation/AnimationUtilities.js"],q["Core/Renderer/HTML/AST.js"],q["Core/FormatUtilities.js"],q["Core/Renderer/RendererUtilities.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Renderer/SVG/SVGRenderer.js"],q["Core/Renderer/HTML/HTMLElement.js"],q["Core/Renderer/HTML/HTMLRenderer.js"],q["Core/Axis/Axis.js"],q["Core/Axis/DateTimeAxis.js"],q["Core/Axis/LogarithmicAxis.js"],q["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],q["Core/Axis/Tick.js"],q["Core/Tooltip.js"],q["Core/Series/Point.js"],q["Core/Pointer.js"],q["Core/MSPointer.js"],q["Core/Legend/Legend.js"],q["Core/Chart/Chart.js"],q["Core/Axis/Stacking/StackingAxis.js"],q["Core/Axis/Stacking/StackItem.js"],q["Core/Series/Series.js"],q["Core/Series/SeriesRegistry.js"],q["Series/Column/ColumnSeries.js"],q["Series/Column/ColumnDataLabel.js"],q["Series/Pie/PieSeries.js"],q["Series/Pie/PieDataLabel.js"],q["Core/Series/DataLabel.js"],q["Core/Responsive.js"],q["Core/Color/Color.js"],q["Core/Time.js"]],function(O,U,G,Z,$,W,V,R,P,k,E,w,T,y,A,g,v,S,N,j,M,D,I,b,d,u,a,n,o,m,_,B,X,it,rt){return O.animate=$.animate,O.animObject=$.animObject,O.getDeferredAnimation=$.getDeferredAnimation,O.setAnimation=$.setAnimation,O.stop=$.stop,O.timers=Z.timers,O.AST=W,O.Axis=T,O.Chart=I,O.chart=I.chart,O.Fx=Z,O.Legend=D,O.PlotLineOrBand=g,O.Point=N,O.Pointer=M.isRequired()?M:j,O.Series=u,O.StackItem=d,O.SVGElement=P,O.SVGRenderer=k,O.Tick=v,O.Time=rt,O.Tooltip=S,O.Color=it,O.color=it.parse,w.compose(k),E.compose(P),O.defaultOptions=G.defaultOptions,O.getOptions=G.getOptions,O.time=G.defaultTime,O.setOptions=G.setOptions,O.dateFormat=V.dateFormat,O.format=V.format,O.numberFormat=V.numberFormat,O.addEvent=U.addEvent,O.arrayMax=U.arrayMax,O.arrayMin=U.arrayMin,O.attr=U.attr,O.clearTimeout=U.clearTimeout,O.correctFloat=U.correctFloat,O.createElement=U.createElement,O.css=U.css,O.defined=U.defined,O.destroyObjectProperties=U.destroyObjectProperties,O.discardElement=U.discardElement,O.distribute=R.distribute,O.erase=U.erase,O.error=U.error,O.extend=U.extend,O.extendClass=U.extendClass,O.find=U.find,O.fireEvent=U.fireEvent,O.getMagnitude=U.getMagnitude,O.getStyle=U.getStyle,O.inArray=U.inArray,O.isArray=U.isArray,O.isClass=U.isClass,O.isDOMElement=U.isDOMElement,O.isFunction=U.isFunction,O.isNumber=U.isNumber,O.isObject=U.isObject,O.isString=U.isString,O.keys=U.keys,O.merge=U.merge,O.normalizeTickInterval=U.normalizeTickInterval,O.objectEach=U.objectEach,O.offset=U.offset,O.pad=U.pad,O.pick=U.pick,O.pInt=U.pInt,O.relativeLength=U.relativeLength,O.removeEvent=U.removeEvent,O.seriesType=a.seriesType,O.splat=U.splat,O.stableSort=U.stableSort,O.syncTimeout=U.syncTimeout,O.timeUnits=U.timeUnits,O.uniqueKey=U.uniqueKey,O.useSerialIds=U.useSerialIds,O.wrap=U.wrap,o.compose(n),B.compose(u),y.compose(T),A.compose(T),_.compose(m),g.compose(T),X.compose(I),b.compose(T,I,u),O}),Y(q,"Core/Axis/BrokenAxis.js",[q["Core/Axis/Stacking/StackItem.js"],q["Core/Utilities.js"]],function(O,U){var P,G=U.addEvent,Z=U.find,$=U.fireEvent,W=U.isArray,V=U.isNumber,R=U.pick;return function(k){function E(){typeof this.brokenAxis<"u"&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function w(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function T(){var M=this.brokenAxis;if(M&&M.hasBreaks){for(var D=this.tickPositions,I=this.tickPositions.info,b=[],d=0;dB.to||u>B.from&&nB.from&&nB.from&&n>B.to&&nb&&D>=this.basePointRange&&(b=D),u=void 0;d--;)u&&!1!==u.visible||(u=M[d+1]),D=M[d],!1!==u.visible&&!1!==D.visible&&(u.x-D.x>b&&(u=(D.x+u.x)/2,M.splice(d+1,0,{isNull:!0,x:u}),I.stacking&&this.options.stacking&&((u=I.stacking.stacks[this.stackKey][u]=new O(I,I.options.stackLabels,!1,u,this.stack)).total=0)),u=D);return this.getGraphPath(M)}var N=[];k.compose=function(M,D){if(-1===N.indexOf(M)&&(N.push(M),M.keepProps.push("brokenAxis"),G(M,"init",y),G(M,"afterInit",E),G(M,"afterSetTickPositions",T),G(M,"afterSetOptions",w)),-1===N.indexOf(D)){N.push(D);var I=D.prototype;I.drawBreaks=v,I.gappedPath=S,G(D,"afterGeneratePoints",A),G(D,"afterRender",g)}return M};var j=function(){function M(D){this.hasBreaks=!1,this.axis=D}return M.isInBreak=function(D,I){var b=D.repeat||1/0,d=D.from,u=D.to-D.from;return I=I>=d?(I-d)%b:b-(d-I)%b,D.inclusive?I<=u:I=D)break;(d.to=D)break;if(M.isInBreak(u,D)){b-=D-u.from;break}}}return b},M.prototype.findBreakAt=function(D,I){return Z(I,function(b){return b.fromX;)z-=B;for(;z"u"?void 0:k},close:function(k){return k.length?k[k.length-1]:k.hasNulls?null:void 0},high:function(k){return k.length?$(k):k.hasNulls?null:void 0},hlc:function(k,E,w){if(k=O.high(k),E=O.low(E),w=O.close(w),P(k)||P(E)||P(w))return[k,E,w]},low:function(k){return k.length?W(k):k.hasNulls?null:void 0},ohlc:function(k,E,w,T){if(k=O.open(k),E=O.high(E),w=O.low(w),T=O.close(T),P(k)||P(E)||P(w)||P(T))return[k,E,w,T]},open:function(k){return k.length?k[0]:k.hasNulls?null:void 0},range:function(k,E){return k=O.low(k),E=O.high(E),P(k)||P(E)?[k,E]:null===k&&null===E?null:void 0},sum:Z},R(O,U),U}),Y(q,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),Y(q,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[q["Extensions/DataGrouping/DataGroupingDefaults.js"],q["Core/Utilities.js"]],function(O,U){function G(T){var y=this,A=y.series;A.forEach(function(g){g.groupPixelWidth=void 0}),A.forEach(function(g){g.groupPixelWidth=y.getGroupPixelWidth&&y.getGroupPixelWidth(),g.groupPixelWidth&&(g.hasProcessed=!0),g.applyGrouping(!!T.hasExtremesChanged)})}function Z(){for(var v,S,T=this.series,y=T.length,A=0,g=!1;y--;)(S=T[y].options.dataGrouping)&&(A=Math.max(A,k(S.groupPixelWidth,O.common.groupPixelWidth)),v=(T[y].processedXData||T[y].data).length,(T[y].groupPixelWidth||v>this.chart.plotSizeX/A||v&&S.forced)&&(g=!0));return g?A:0}function $(){this.series.forEach(function(T){T.hasProcessed=!1})}function W(T,y){var A;if(y=k(y,!0),T||(T={forced:!1,units:null}),this instanceof w)for(A=this.series.length;A--;)this.series[A].update({dataGrouping:T},!1);else this.chart.options.series.forEach(function(g){g.dataGrouping="boolean"==typeof T?T:P(T,g.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),y&&this.chart.redraw()}var w,V=U.addEvent,R=U.extend,P=U.merge,k=U.pick,E=[];return{compose:function(T){w=T,-1===E.indexOf(T)&&(E.push(T),V(T,"afterSetScale",$),V(T,"postProcessData",G),R(T.prototype,{applyGrouping:G,getGroupPixelWidth:Z,setDataGrouping:W}))}}}),Y(q,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[q["Extensions/DataGrouping/ApproximationRegistry.js"],q["Extensions/DataGrouping/DataGroupingDefaults.js"],q["Core/Axis/DateTimeAxis.js"],q["Core/Defaults.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W){function V(I){var b=this.chart,d=this.options.dataGrouping,u=!1!==this.allowDG&&d&&j(d.enabled,b.options.isStock),a=this.visible||!b.options.chart.ignoreHiddenSeries,n=this.currentDataGrouping,o=!1;if(u&&!this.requireSorting&&(this.requireSorting=o=!0),I=!(!this.isCartesian||this.isDirty||this.xAxis.isDirty||this.yAxis.isDirty||I)||!u,o&&(this.requireSorting=!1),!I){this.destroyGroupedData();var m=d.groupAll?this.xData:this.processedXData,_=d.groupAll?this.yData:this.processedYData;u=b.plotSizeX;var B=(I=this.xAxis).options.ordinal,X=this.groupPixelWidth;if(o=void 0,X&&m&&m.length&&u){this.isDirty=o=!0,this.points=null;var it=I.getExtremes(),rt=it.min;it=it.max,B=B&&I.ordinal&&I.ordinal.getGroupIntervalFactor(rt,it,this)||1,u=I.getTimeTicks(G.Additions.prototype.normalizeTimeTickInterval(X*(it-rt)/u*B,d.units||U.units),Math.min(rt,m[0]),Math.max(it,m[m.length-1]),I.options.startOfWeek,m,this.closestPointRange),m=(X=T.groupData.apply(this,[m,_,u,d.approximation])).groupedXData,_=X.groupedYData,B=0,d&&d.smoothed&&m.length&&(d.firstAnchor="firstPoint",d.anchor="middle",d.lastAnchor="lastPoint",g(32,!1,b,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),b=m;var L=this.options.dataGrouping;if(rt=this.currentDataGrouping&&this.currentDataGrouping.gapSize,L&&this.xData&&rt&&this.groupMap){var z=b.length-1,et=L.anchor,at=j(L.firstAnchor,et);if(L=j(L.lastAnchor,et),et&&"start"!==et){var st=rt*{middle:.5,end:1}[et];for(et=b.length-1;et--&&0=b[0]){et=this.groupMap[0].start,st=this.groupMap[0].length;var H=void 0;S(et)&&S(st)&&(H=et+(st-1)),b[0]={middle:b[0]+.5*rt,end:b[0]+rt,firstPoint:this.xData[0],lastPoint:H&&this.xData[H]}[at]}L&&"start"!==L&&rt&&b[z]>=it-rt&&(it=this.groupMap[this.groupMap.length-1].start,b[z]={middle:b[z]+.5*rt,end:b[z]+rt,firstPoint:it&&this.xData[it],lastPoint:this.xData[this.xData.length-1]}[L])}for(it=1;itI.max&&((!A(I.options.max)&&S(I.dataMax)&&I.max>=I.dataMax||I.max===I.dataMax)&&(I.max=Math.max(a[a.length-1],I.max)),I.dataMax=Math.max(a[a.length-1],I.dataMax))),d.groupAll&&(this.allGroupedData=_,m=(d=this.cropData(m,_,I.min,I.max,1)).xData,_=d.yData,this.cropStart=d.start),this.processedXData=m,this.processedYData=_}else this.groupMap=null;this.hasGroupedData=o,this.currentDataGrouping=it,this.preventGraphAnimation=(n&&n.totalRange)!==(it&&it.totalRange)}}function R(){this.groupedData&&(this.groupedData.forEach(function(I,b){I&&(this.groupedData[b]=I.destroy?I.destroy():null)},this),this.groupedData.length=0)}function P(){M.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function k(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function E(I,b,d,u){var a=this,n=a.data,o=a.options&&a.options.data,m=[],_=[],B=[],X=I.length,it=!!b,rt=[],L=a.pointArrayMap,z=L&&L.length,et=["x"].concat(L||["y"]),at=this.options.dataGrouping&&this.options.dataGrouping.groupAll,st=0,H=0;if(u="function"==typeof u?u:u&&O[u]?O[u]:O[a.getDGApproximation&&a.getDGApproximation()||"average"],z)for(var ot=L.length;ot--;)rt.push([]);else rt.push([]);ot=z||1;for(var nt=0;nt<=X;nt++)if(!(I[nt]=d[st+1]||nt===X;){var yt=d[st];a.dataGroupInfo={start:at?H:a.cropStart+H,length:rt[0].length};var gt=u.apply(a,rt);for(a.pointClass&&!A(a.dataGroupInfo.options)&&(a.dataGroupInfo.options=N(a.pointClass.prototype.optionsToObject.call({series:a},a.options.data[a.cropStart+H])),et.forEach(function(St){delete a.dataGroupInfo.options[St]})),typeof gt<"u"&&(m.push(yt),_.push(gt),B.push(a.dataGroupInfo)),H=nt,yt=0;yt=(this.xAxis.min||0)){this.dataModify.compareValue=it;break}}}}function I(n,o){this.setModifier("compare",n,o)}function b(n,o){n=y(n,!1),this.options.cumulative=this.userOptions.cumulative=n,this.update({},y(o,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(m){delete m.cumulativeSum})}function d(n,o){this.setModifier("cumulative",n,o)}var u=[];g.compose=function(n,o,m){if(-1===u.indexOf(n)){u.push(n);var _=n.prototype;_.setCompare=M,_.setCumulative=b,W(n,"afterInit",N),W(n,"afterGetExtremes",j),W(n,"afterProcessData",D)}return-1===u.indexOf(o)&&(u.push(o),(o=o.prototype).setCompare=I,o.setModifier=v,o.setCumulative=d),-1===u.indexOf(m)&&(u.push(m),m.prototype.tooltipFormatter=S),n};var a=function(){function n(o){this.series=o}return n.prototype.modifyValue=function(){return 0},n.getCumulativeExtremes=function(o){var m=1/0,_=-1/0;return o.reduce(function(B,X){return X=B+X,m=Math.min(m,X,B),_=Math.max(_,X,B),X}),[m,_]},n.prototype.initCompare=function(o){this.modifyValue=function(m,_){null===m&&(m=0);var B=this.compareValue;return typeof m<"u"&&typeof B<"u"?(m="value"===o?m-B:m/B*100-(100===this.series.options.compareBase?0:100),typeof _<"u"&&(_=this.series.points[_])&&(_.change=m),m):0}},n.prototype.initCumulative=function(){this.modifyValue=function(o,m){if(null===o&&(o=0),void 0!==o&&void 0!==m){var _=0j&&(v?y=A-N:A=y+N),P(y)&&P(A)||(y=A=void 0),{min:y,max:A}},T}();return w}),Y(q,"Stock/Navigator/NavigatorDefaults.js",[q["Core/Color/Color.js"],q["Core/Series/SeriesRegistry.js"]],function(O,U){return O=O.parse,U=U.seriesTypes,U={height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:O("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:typeof U.areaspline>"u"?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),Y(q,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(O,U,G,Z,$){return void 0===$&&($={}),O=$.width?$.width/2:G,U=Math.round(O/3)+.5,[["M",-O-1,.5],["L",O,.5],["L",O,(Z=$.height||Z)+.5],["L",-O-1,Z+.5],["L",-O-1,.5],["M",-U,4],["L",-U,Z-3],["M",U-1,4],["L",U-1,Z-3]]}}}),Y(q,"Stock/Navigator/NavigatorComposition.js",[q["Core/Defaults.js"],q["Core/Globals.js"],q["Core/Axis/NavigatorAxisComposition.js"],q["Stock/Navigator/NavigatorDefaults.js"],q["Stock/Navigator/NavigatorSymbols.js"],q["Core/Renderer/RendererRegistry.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V){function R(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function P(){var u=this.legend,a=this.navigator;if(a){var n=u&&u.options,o=a.xAxis,m=a.yAxis,_=a.scrollbarHeight;this.inverted?(a.left=a.opposite?this.chartWidth-_-a.height:this.spacing[3]+_,a.top=this.plotTop+_):(a.left=I(o.left,this.plotLeft+_),a.top=a.navigatorOptions.top||this.chartHeight-a.height-_-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(n&&"bottom"===n.verticalAlign&&"proximate"!==n.layout&&n.enabled&&!n.floating?u.legendHeight+I(n.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&m&&(this.inverted?o.options.left=m.options.left=a.left:o.options.top=m.options.top=a.top,o.setAxisSize(),m.setAxisSize())}}function k(u){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new d(this),I(u.redraw,!0)&&this.redraw(u.animation))}function E(){var u=this.options;(u.navigator.enabled||u.scrollbar.enabled)&&(this.scroller=this.navigator=new d(this))}function w(){var u=this.options,a=u.navigator,n=u.rangeSelector;if((a&&a.enabled||n&&n.enabled)&&(!S&&"x"===u.chart.zooming.type||S&&"x"===u.chart.zooming.pinchType))return!1}function T(u){var a=u.navigator;a&&u.xAxis[0]&&(u=u.xAxis[0].getExtremes(),a.render(u.min,u.max))}function y(u){var a=u.options.navigator||{},n=u.options.scrollbar||{};this.navigator||this.scroller||!a.enabled&&!n.enabled||(D(!0,this.options.navigator,a),D(!0,this.options.scrollbar,n),delete u.options.navigator,delete u.options.scrollbar)}function A(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var d,g=O.defaultOptions,v=O.setOptions,S=U.isTouchDevice,N=W.getRendererType,j=V.addEvent,M=V.extend,D=V.merge,I=V.pick,b=[];return{compose:function(u,a,n,o){G.compose(u),d=n,-1===b.indexOf(a)&&(b.push(a),a.prototype.callbacks.push(T),j(a,"afterAddSeries",R),j(a,"afterSetChartSize",P),j(a,"afterUpdate",k),j(a,"beforeRender",E),j(a,"beforeShowResetZoom",w),j(a,"update",y)),-1===b.indexOf(o)&&(b.push(o),j(o,"afterUpdate",A)),-1===b.indexOf(N)&&(b.push(N),M(N().prototype.symbols,$)),-1===b.indexOf(v)&&(b.push(v),M(g,{navigator:Z}))}}}),Y(q,"Core/Axis/ScrollbarAxis.js",[q["Core/Utilities.js"]],function(O){var U=O.addEvent,G=O.defined,Z=O.pick;return function(){function $(){}return $.compose=function(W,V){if(-1!==$.composed.indexOf(W))return W;$.composed.push(W);var R=function(P){var k=Z(P.options&&P.options.min,P.min),E=Z(P.options&&P.options.max,P.max);return{axisMin:k,axisMax:E,scrollMin:G(P.dataMin)?Math.min(k,P.min,P.dataMin,Z(P.threshold,1/0)):k,scrollMax:G(P.dataMax)?Math.max(E,P.max,P.dataMax,Z(P.threshold,-1/0)):E}};return U(W,"afterInit",function(){var P=this;P.options&&P.options.scrollbar&&P.options.scrollbar.enabled&&(P.options.scrollbar.vertical=!P.horiz,P.options.startOnTick=P.options.endOnTick=!1,P.scrollbar=new V(P.chart.renderer,P.options.scrollbar,P.chart),U(P.scrollbar,"changed",function(k){var E=R(P),w=E.axisMax,T=E.scrollMin,y=E.scrollMax-T;G(E.axisMin)&&G(w)&&(P.horiz&&!P.reversed||!P.horiz&&P.reversed?(E=T+y*this.to,T+=y*this.from):(E=T+y*(1-this.from),T+=y*(1-this.to)),this.shouldUpdateExtremes(k.DOMType)?P.setExtremes(T,E,!0,"mousemove"!==k.DOMType&&"touchmove"!==k.DOMType,k):this.setRange(this.from,this.to))}))}),U(W,"afterRender",function(){var P=R(this),k=P.scrollMin,E=P.scrollMax;P=this.scrollbar;var w=this.axisTitleMargin+(this.titleOffset||0),T=this.chart.scrollbarsOffsets,y=this.options.margin||0;P&&(this.horiz?(this.opposite||(T[1]+=w),P.position(this.left,this.top+this.height+2+T[1]-(this.opposite?y:0),this.width,this.height),this.opposite||(T[1]+=y),w=1):(this.opposite&&(T[0]+=w),P.position(P.options.opposite?this.left+this.width+2+T[0]-(this.opposite?0:y):this.opposite?0:y,this.top,this.width,this.height),this.opposite&&(T[0]+=y),w=0),T[w]+=P.size+P.options.margin,isNaN(k)||isNaN(E)||!G(this.min)||!G(this.max)||this.min===this.max?P.setRange(0,1):(T=(this.min-k)/(E-k),k=(this.max-k)/(E-k),this.horiz&&!this.reversed||!this.horiz&&this.reversed?P.setRange(T,k):P.setRange(1-k,1-T)))}),U(W,"afterGetOffset",function(){var P=this.scrollbar&&!this.scrollbar.options.opposite;P=this.horiz?2:P?3:1;var k=this.scrollbar;k&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[P]+=k.size+k.options.margin)}),W},$.composed=[],$}()}),Y(q,"Stock/Scrollbar/ScrollbarDefaults.js",[q["Core/Globals.js"]],function(O){return{height:O.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}),Y(q,"Stock/Scrollbar/Scrollbar.js",[q["Core/Defaults.js"],q["Core/Globals.js"],q["Core/Axis/ScrollbarAxis.js"],q["Stock/Scrollbar/ScrollbarDefaults.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$){var W=O.defaultOptions,V=$.addEvent,R=$.correctFloat,P=$.defined,k=$.destroyObjectProperties,E=$.fireEvent,w=$.merge,T=$.pick,y=$.removeEvent;return O=function(){function A(g,v,S){this._events=[],this.chart=void 0,this.from=this.chartY=this.chartX=0,this.scrollbar=this.renderer=this.options=this.group=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.to=this.size=this.scrollbarTop=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.y=this.x=0,this.init(g,v,S)}return A.compose=function(g){G.compose(g,A)},A.swapXY=function(g,v){return v&&g.forEach(function(S){for(var j,N=S.length,M=0;Mthis.calculatedWidth?v.minWidth:0,{chartX:(g.chartX-this.x-this.xOffset)/(this.barWidth-v),chartY:(g.chartY-this.y-this.yOffset)/(this.barWidth-v)}},A.prototype.destroy=function(){var g=this,v=g.chart.scroller;g.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(S){g[S]&&g[S].destroy&&(g[S]=g[S].destroy())}),v&&g===v.scrollbar&&(v.scrollbar=null,k(v.scrollbarButtons))},A.prototype.drawScrollbarButton=function(g){var v=this.renderer,S=this.scrollbarButtons,N=this.options,j=this.size,M=v.g().add(this.group);S.push(M),M=v.rect().addClass("highcharts-scrollbar-button").add(M),this.chart.styledMode||M.attr({stroke:N.buttonBorderColor,"stroke-width":N.buttonBorderWidth,fill:N.buttonBackgroundColor}),M.attr(M.crisp({x:-.5,y:-.5,width:j+1,height:j+1,r:N.buttonBorderRadius},M.strokeWidth())),M=v.path(A.swapXY([["M",j/2+(g?-1:1),j/2-3],["L",j/2+(g?-1:1),j/2+3],["L",j/2+(g?2:-2),j/2]],N.vertical)).addClass("highcharts-scrollbar-arrow").add(S[g]),this.chart.styledMode||M.attr({fill:N.buttonArrowColor})},A.prototype.init=function(g,v,S){this.scrollbarButtons=[],this.renderer=g,this.userOptions=v,this.options=w(Z,W.scrollbar,v),this.chart=S,this.size=T(this.options.size,this.options.height),v.enabled&&(this.render(),this.addEvents())},A.prototype.mouseDownHandler=function(g){g=this.chart.pointer.normalize(g),g=this.cursorToScrollbarPosition(g),this.chartX=g.chartX,this.chartY=g.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},A.prototype.mouseMoveHandler=function(g){var v=this.chart.pointer.normalize(g),S=this.options.vertical?"chartY":"chartX",N=this.initPositions||[];!this.grabbedCenter||g.touches&&0===g.touches[0][S]||(S=(v=this.cursorToScrollbarPosition(v)[S])-(S=this[S]),this.hasDragged=!0,this.updatePosition(N[0]+S,N[1]+S),this.hasDragged&&E(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:g.type,DOMEvent:g}))},A.prototype.mouseUpHandler=function(g){this.hasDragged&&E(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:g.type,DOMEvent:g}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},A.prototype.position=function(g,v,S,N){var j=this.options.vertical,M=this.rendered?"animate":"attr",D=N,I=0;this.group.show(),this.x=g,this.y=v+this.trackBorderWidth,this.width=S,this.height=N,this.xOffset=D,this.yOffset=I,j?(this.width=this.yOffset=S=I=this.size,this.xOffset=D=0,this.barWidth=N-2*S,this.x=g+=this.options.margin):(this.height=this.xOffset=N=D=this.size,this.barWidth=S-2*N,this.y+=this.options.margin),this.group[M]({translateX:g,translateY:this.y}),this.track[M]({width:S,height:N}),this.scrollbarButtons[1][M]({translateX:j?0:S-D,translateY:j?N-I:0})},A.prototype.removeEvents=function(){this._events.forEach(function(g){y.apply(null,g)}),this._events.length=0},A.prototype.render=function(){var g=this.renderer,v=this.options,S=this.size,N=this.chart.styledMode,j=g.g("scrollbar").attr({zIndex:v.zIndex}).hide().add();this.group=j,this.track=g.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:v.trackBorderRadius||0,height:S,width:S}).add(j),N||this.track.attr({fill:v.trackBackgroundColor,stroke:v.trackBorderColor,"stroke-width":v.trackBorderWidth}),this.trackBorderWidth=this.track.strokeWidth(),this.track.attr({y:-this.trackBorderWidth%2/2}),this.scrollbarGroup=g.g().add(j),this.scrollbar=g.rect().addClass("highcharts-scrollbar-thumb").attr({height:S,width:S,r:v.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=g.path(A.swapXY([["M",-3,S/4],["L",-3,2*S/3],["M",0,S/4],["L",0,2*S/3],["M",3,S/4],["L",3,2*S/3]],v.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),N||(this.scrollbar.attr({fill:v.barBackgroundColor,stroke:v.barBorderColor,"stroke-width":v.barBorderWidth}),this.scrollbarRifles.attr({stroke:v.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},A.prototype.setRange=function(g,v){var S=this.options,N=S.vertical,j=S.minWidth,M=this.barWidth,D=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(P(M)){var I=M*Math.min(v,1);g=Math.max(g,0);var b=Math.ceil(M*g);this.calculatedWidth=I=R(I-b),I=I?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===S.showFull&&(0>=g&&1<=v?this.group.hide():this.group.show()),this.rendered=!0}},A.prototype.shouldUpdateExtremes=function(g){return T(this.options.liveRedraw,U.svg&&!U.isTouchDevice&&!this.chart.boosted)||"mouseup"===g||"touchend"===g||!P(g)},A.prototype.trackClick=function(g){var v=this.chart.pointer.normalize(g),S=this.to-this.from,N=this.y+this.scrollbarTop,j=this.x+this.scrollbarLeft;this.options.vertical&&v.chartY>N||!this.options.vertical&&v.chartX>j?this.updatePosition(this.from+S,this.to+S):this.updatePosition(this.from-S,this.to-S),E(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:g})},A.prototype.update=function(g){this.destroy(),this.init(this.chart.renderer,w(!0,this.options,g),this.chart)},A.prototype.updatePosition=function(g,v){1g&&(v=R(v-g),g=0),this.from=g,this.to=v},A.defaultOptions=Z,A}(),W.scrollbar=w(!0,O.defaultOptions,W.scrollbar),O}),Y(q,"Stock/Navigator/Navigator.js",[q["Core/Axis/Axis.js"],q["Core/Defaults.js"],q["Core/Globals.js"],q["Core/Axis/NavigatorAxisComposition.js"],q["Stock/Navigator/NavigatorComposition.js"],q["Stock/Scrollbar/Scrollbar.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V){function R(u){for(var a=[],n=1;nat&&(this.grabbedLeft?o=B.toPixels(n-at-X,!0):this.grabbedRight&&(m=B.toPixels(a+at+X,!0))),this.zoomedMax=T(Math.max(o,m),0,ot),this.zoomedMin=T(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(o,m),0,ot),this.range=this.zoomedMax-this.zoomedMin,ot=Math.round(this.zoomedMax),o=Math.round(this.zoomedMin),rt&&(this.navigatorGroup.attr({visibility:"inherit"}),L=L&&!this.hasDragged?"animate":"attr",this.drawMasks(o,ot,z,L),this.drawOutline(o,ot,z,L),this.navigatorOptions.handles.enabled&&(this.drawHandle(o,0,z,L),this.drawHandle(ot,1,z,L))),this.scrollbar&&(z?(z=this.top-st,it=this.left-st+(rt||!it.opposite?0:(it.titleOffset||0)+it.axisTitleMargin),st=H+2*st):(z=this.top+(rt?this.height:-st),it=this.left-st),this.scrollbar.position(it,z,_,st),this.scrollbar.setRange(this.zoomedMin/(H||1),this.zoomedMax/(H||1))),this.rendered=!0}},u.prototype.addMouseEvents=function(){var _,B,a=this,n=a.chart,o=n.container,m=[];a.mouseMoveHandler=_=function(X){a.onMouseMove(X)},a.mouseUpHandler=B=function(X){a.onMouseUp(X)},(m=a.getPartsEvents("mousedown")).push(w(n.renderTo,"mousemove",_),w(o.ownerDocument,"mouseup",B)),k&&(m.push(w(n.renderTo,"touchmove",_),w(o.ownerDocument,"touchend",B)),m.concat(a.getPartsEvents("touchstart"))),a.eventsToUnbind=m,a.series&&a.series[0]&&m.push(w(a.series[0].xAxis,"foundExtremes",function(){n.navigator.modifyNavigatorAxisExtremes()}))},u.prototype.getPartsEvents=function(a){var n=this,o=[];return["shades","handles"].forEach(function(m){n[m].forEach(function(_,B){o.push(w(_.element,a,function(X){n[m+"Mousedown"](X,B)}))})}),o},u.prototype.shadesMousedown=function(a,n){a=this.chart.pointer.normalize(a);var o=this.chart,m=this.xAxis,_=this.zoomedMin,B=this.size,X=this.range,it=this.left,rt=a.chartX;if(o.inverted&&(rt=a.chartY,it=this.top),1===n)this.grabbedCenter=rt,this.fixedWidth=X,this.dragOffset=rt-_;else{if(a=rt-it-X/2,0===n)a=Math.max(0,a);else if(2===n&&a+X>=B)if(a=B-X,this.reversedExtremes){a-=X;var L=this.getUnionExtremes().dataMin}else var z=this.getUnionExtremes().dataMax;a!==_&&(this.fixedWidth=X,n=m.navigatorAxis.toFixedRange(a,a+X,L,z),A(n.min)&&o.xAxis[0].setExtremes(Math.min(n.min,n.max),Math.max(n.min,n.max),!0,null,{trigger:"navigator"}))}},u.prototype.handlesMousedown=function(a,n){this.chart.pointer.normalize(a);var o=(a=this.chart).xAxis[0],m=this.reversedExtremes;0===n?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=m?o.min:o.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=m?o.max:o.min),a.fixedRange=null},u.prototype.onMouseMove=function(a){var n=this,o=n.chart,m=n.navigatorSize,_=n.range,B=n.dragOffset,X=o.inverted,it=n.left;a.touches&&0===a.touches[0].pageX||(a=o.pointer.normalize(a),o=a.chartX,X&&(it=n.top,o=a.chartY),n.grabbedLeft?(n.hasDragged=!0,n.render(0,0,o-it,n.otherHandlePos)):n.grabbedRight?(n.hasDragged=!0,n.render(0,0,n.otherHandlePos,o-it)):n.grabbedCenter&&(n.hasDragged=!0,om+B-_&&(o=m+B-_),n.render(0,0,o-B,o-B+_)),n.hasDragged&&n.scrollbar&&I(n.scrollbar.options.liveRedraw,G.svg&&!E&&!this.chart.boosted)&&(a.DOMType=a.type,setTimeout(function(){n.onMouseUp(a)},0)))},u.prototype.onMouseUp=function(a){var n=this.chart,o=this.xAxis,m=this.scrollbar,_=a.DOMEvent||a,B=n.inverted,X=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!m||!m.hasDragged)||"scrollbar"===a.trigger){if(m=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos)var it=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var rt=this.fixedExtreme;this.zoomedMax===this.size&&(rt=this.reversedExtremes?m.dataMin:m.dataMax),0===this.zoomedMin&&(it=this.reversedExtremes?m.dataMax:m.dataMin),o=o.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,it,rt),A(o.min)&&n.xAxis[0].setExtremes(Math.min(o.min,o.max),Math.max(o.min,o.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:_})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&M(this.zoomedMin)&&M(this.zoomedMax)&&(n=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(n,a,B,X),this.outline&&this.drawOutline(n,a,B,X),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(n,0,B,X),this.drawHandle(a,1,B,X)))},u.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},u.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(n){b(n,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&b(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},u.prototype.init=function(a){var n=a.options,o=n.navigator||{},m=o.enabled,_=n.scrollbar||{},B=_.enabled;n=m&&o.height||0;var X=B&&_.height||0;this.handles=[],this.shades=[],this.chart=a,this.setBaseSeries(),this.height=n,this.scrollbarHeight=X,this.scrollbarEnabled=B,this.navigatorEnabled=m,this.navigatorOptions=o,this.scrollbarOptions=_,this.outlineHeight=n+X,this.opposite=I(o.opposite,!(m||!a.inverted));var it=this;m=it.baseSeries,_=a.xAxis.length,B=a.yAxis.length;var rt=m&&m[0]&&m[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0,it.navigatorEnabled?(it.xAxis=new O(a,D({breaks:rt.options.breaks,ordinal:rt.options.ordinal},o.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:_,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[X,0,-X,0],width:n}:{offsets:[0,-X,0,X],height:n})),it.yAxis=new O(a,D(o.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:B,isInternal:!0,reversed:I(o.yAxis&&o.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:n}:{height:n})),m||o.series.data?it.updateNavigatorSeries(!1):0===a.series.length&&(it.unbindRedraw=w(a,"beforeRedraw",function(){0_.indexOf(at)&&(at&&(b(at,"updatedData",o.updatedDataHandler),delete at.navigatorSeries),et.chart&&et.destroy(),1))}),L=o.navigatorOptions.series;_&&_.length&&_.forEach(function(et){var at=et.navigatorSeries,st=S({color:et.color,visible:et.visible},j(L)?P.navigator.series:L);at&&!1===o.navigatorOptions.adaptToUpdatedData||(B.name="Navigator "+_.length,it=et.options||{},z=it.navigatorOptions||{},st.dataLabels=d(st.dataLabels),(rt=D(it,B,st,z)).pointRange=I(st.pointRange,z.pointRange,P.plotOptions[rt.type||"line"].pointRange),st=z.data||st.data,o.hasNavigatorData=o.hasNavigatorData||!!st,rt.data=st||it.data&&it.data.slice(0),at&&at.options?at.update(rt,n):(et.navigatorSeries=m.initSeries(rt),et.navigatorSeries.baseSeries=et,X.push(et.navigatorSeries)))}),(L.data&&(!_||!_.length)||j(L))&&(o.hasNavigatorData=!1,(L=d(L)).forEach(function(et,at){B.name="Navigator "+(X.length+1),(rt=D(P.navigator.series,{color:m.series[at]&&!m.series[at].options.isInternal&&m.series[at].color||m.options.colors[at]||m.options.colors[0]},B,et)).data=et.data,rt.data&&(o.hasNavigatorData=!0,X.push(m.initSeries(rt)))})),a&&this.addBaseSeriesEvents()},u.prototype.addBaseSeriesEvents=function(){var a=this,n=this,o=n.baseSeries||[];o[0]&&o[0].xAxis&&o[0].eventsToUnbind.push(w(o[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),o.forEach(function(m){m.eventsToUnbind.push(w(m,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),m.eventsToUnbind.push(w(m,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==a.navigatorOptions.adaptToUpdatedData&&m.xAxis&&m.eventsToUnbind.push(w(m,"updatedData",a.updatedDataHandler)),m.eventsToUnbind.push(w(m,"remove",function(){this.navigatorSeries&&(v(n.series,this.navigatorSeries),A(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},u.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(n,o){return Math.min(n,o.xData&&o.xData.length?o.xData[0]:n)},a)},u.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis;if(typeof a.getExtremes<"u"){var n=this.getUnionExtremes(!0);!n||n.dataMin===a.min&&n.dataMax===a.max||(a.min=n.dataMin,a.max=n.dataMax)}},u.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,n=this.getExtremes(),o=n.dataMin,m=n.dataMax;n=n.max-n.min;var _=a.stickToMin,B=a.stickToMax,X=I(this.options.overscroll,0),it=a.series&&a.series[0],rt=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(_)var L=o,z=L+n;B&&(z=m+X,_||(L=Math.max(o,z-n,a.getBaseSeriesMin(it&&it.xData?it.xData[0]:-Number.MAX_VALUE)))),rt&&(_||B)&&M(L)&&(this.min=this.userMin=L,this.max=this.userMax=z)}a.stickToMin=a.stickToMax=null},u.prototype.updatedDataHandler=function(){var a=this.chart.navigator,n=this.navigatorSeries;a.stickToMax=I(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size)),a.stickToMin=a.shouldStickToMin(this,a),n&&!a.hasNavigatorData&&(n.options.pointStart=this.xData[0],n.setData(this.options.data,!1,null,!1))},u.prototype.shouldStickToMin=function(a,n){n=n.getBaseSeriesMin(a.xData[0]);var o=a.xAxis;a=o.max;var m=o.min;return o=o.options.range,!(!M(a)||!M(m))&&(o&&0"u"&&(m=n(o,b.count)),this.newMax=Math.min(o+m,j(this.dataMax,Number.MAX_VALUE))),S(u)?!S(b)&&b&&b._offsetMin&&(o+=b._offsetMin):o=void 0,o}function $(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new I(this))}function W(){var b=this.axes,d=this.rangeSelector;d&&(S(d.deferredYTDClick)&&(d.clickButton(d.deferredYTDClick),delete d.deferredYTDClick),b.forEach(function(u){u.updateNames(),u.setScale()}),this.getAxisMargins(),d.render(),b=d.options.verticalAlign,d.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)))}function V(b){var d,u,a,n,o=b.rangeSelector,m=function(){o&&(d=b.xAxis[0].getExtremes(),u=b.legend,n=o&&o.options.verticalAlign,S(d.min)&&o.render(d.min,d.max),u.display&&"top"===n&&n===u.options.verticalAlign&&((a=N(b.spacingBox)).y="vertical"===u.options.layout?b.plotTop:a.y+o.getHeight(),u.group.placed=!1,u.align(a)))};o&&(v(M,function(_){return _[0]===b})||M.push([b,[y(b.xAxis[0],"afterSetExtremes",function(_){o&&o.render(_.min,_.max)}),y(b,"redraw",m)]]),m())}function R(){for(var b=0,d=M.length;b"u"||typeof X>"u")&&(X=Number.MAX_VALUE,it=Number.MIN_VALUE,a.series.forEach(function(ot){(ot=ot.xData)&&(X=Math.min(ot[0],X),it=Math.max(ot[ot.length-1],it))}),u=!1),et=L=(_=this.getYTDExtremes(it,X,a.time.useUTC)).min,rt=_.max}else"all"===_&&o&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),et=X,rt=it);if(z&&n._offsetMin&&w(et)&&(et+=n._offsetMin),n._offsetMax&&w(rt)&&(rt+=n._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=d+1),o)o.setExtremes(et,rt,M(u,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:n});else{var at=I(a.options.xAxis)[0],st=at.range;at.range=m;var H=at.min;at.min=L,P(a,"load",function(){at.range=st,at.min=H})}g(this,"afterBtnClick")}},b.prototype.setSelected=function(d){this.selected=this.options.selected=d},b.prototype.init=function(d){var u=this,a=d.options.rangeSelector,n=a.buttons||u.defaultButtons.slice(),o=a.selected,m=function(){var _=u.minInput,B=u.maxInput;_&&_.blur&&g(_,"blur"),B&&B.blur&&g(B,"blur")};u.chart=d,u.options=a,u.buttons=[],u.buttonOptions=n,this.eventsToUnbind=[],this.eventsToUnbind.push(P(d.container,"mousedown",m)),this.eventsToUnbind.push(P(d,"resize",m)),n.forEach(u.computeButtonRange),typeof o<"u"&&n[o]&&this.clickButton(o,!1),this.eventsToUnbind.push(P(d,"load",function(){d.xAxis&&d.xAxis[0]&&P(d.xAxis[0],"setExtremes",function(_){this.max-this.min!==d.fixedRange&&"rangeSelectorButton"!==_.trigger&&"updatedData"!==_.trigger&&u.forcedDataGrouping&&!u.frozenStates&&this.setDataGrouping(!1,!1)})}))},b.prototype.updateButtonStates=function(){var d=this,u=this.chart,a=this.dropdown,n=u.xAxis[0],o=Math.round(n.max-n.min),m=!n.hasVisibleSeries,_=u.scroller&&u.scroller.getUnionExtremes()||n,B=_.dataMin,X=_.dataMax,it=(u=d.getYTDExtremes(X,B,u.time.useUTC)).min,rt=u.max,L=d.selected,z=d.options.allButtonsEnabled,et=d.buttons,at=v(L);d.buttonOptions.forEach(function(st,H){var ot=st._range,nt=st.type,yt=st.count||1,gt=et[H],mt=st._offsetMax-st._offsetMin,St=H===L,wt=ot>X-B,Mt=ot=864e5*{month:28,year:365}[nt]*yt-mt&&o-36e5<=864e5*{month:31,year:366}[nt]*yt+mt?ot=!0:"ytd"===nt?(ot=rt-it+mt===o,Dt=!St):"all"===nt&&(ot=n.max-n.min>=X-B,Pt=!St&&at&&ot),nt=!z&&(wt||Mt||Pt||m),yt=St&&ot||ot&&!at&&!Dt||St&&d.frozenStates,nt?st=3:yt&&(at=!0,st=2),gt.state!==st&&(gt.setState(st),a&&(a.options[H+1].disabled=nt,2===st&&(a.selectedIndex=H+1)),0===st&&L===H&&d.setSelected())})},b.prototype.computeButtonRange=function(d){var u=d.type,a=d.count||1,n={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};n[u]?d._range=n[u]*a:("month"===u||"year"===u)&&(d._range=864e5*{month:30,year:365}[u]*a),d._offsetMin=M(d.offsetMin,0),d._offsetMax=M(d.offsetMax,0),d._range+=d._offsetMax-d._offsetMin},b.prototype.getInputValue=function(d){d="min"===d?this.minInput:this.maxInput;var u=this.chart.options.rangeSelector,a=this.chart.time;return d?("text"===d.type&&u.inputDateParser||this.defaultInputDateParser)(d.value,a.useUTC,a):0},b.prototype.setInputValue=function(d,u){var a=this.options,n=this.chart.time,o="min"===d?this.minInput:this.maxInput;if(d="min"===d?this.minDateBox:this.maxDateBox,o){var m=o.getAttribute("data-hc-time");m=w(m)?Number(m):void 0,w(u)&&(w(m)&&o.setAttribute("data-hc-time-previous",m),o.setAttribute("data-hc-time",u),m=u),o.value=n.dateFormat(this.inputTypeFormats[o.type]||a.inputEditDateFormat,m),d&&d.attr({text:n.dateFormat(a.inputDateFormat,m)})}},b.prototype.setInputExtremes=function(d,u,a){if(d="min"===d?this.minInput:this.maxInput){var n=this.inputTypeFormats[d.type],o=this.chart.time;n&&(u=o.dateFormat(n,u),d.min!==u&&(d.min=u),a=o.dateFormat(n,a),d.max!==a&&(d.max=a))}},b.prototype.showInput=function(d){var u="min"===d?this.minDateBox:this.maxDateBox;if((d="min"===d?this.minInput:this.maxInput)&&u&&this.inputGroup){var a="text"===d.type,n=this.inputGroup,o=n.translateX;n=n.translateY;var m=this.options.inputBoxWidth;E(d,{width:a?u.width+(m?-2:20)+"px":"auto",height:a?u.height-2+"px":"auto",border:"2px solid silver"}),E(d,a&&m?{left:o+u.x+"px",top:n+"px"}:{left:Math.min(Math.round(u.x+o-(d.offsetWidth-u.width)/2),this.chart.chartWidth-d.offsetWidth)+"px",top:n-(d.offsetHeight-u.height)/2+"px"})}},b.prototype.hideInput=function(d){(d="min"===d?this.minInput:this.maxInput)&&E(d,{top:"-9999em",border:0,width:"1px",height:"1px"})},b.prototype.defaultInputDateParser=function(d,u,a){var o,n=d.split("/").join("-").split(" ").join("T");return-1===n.indexOf("T")&&(n+="T00:00"),u?n+="Z":((o=G.isSafari)&&(o=!(6<(o=n).length&&(o.lastIndexOf("-")===o.length-6||o.lastIndexOf("+")===o.length-6))),o&&(n+=0>=(o=new Date(n).getTimezoneOffset()/60)?"+".concat(j(-o),":00"):"-".concat(j(o),":00"))),n=Date.parse(n),v(n)||(d=d.split("-"),n=Date.UTC(D(d[0]),D(d[1])-1,D(d[2]))),a&&u&&v(n)&&(n+=a.getTimezoneOffset(n)),n},b.prototype.drawInput=function(d){function u(){var et=m.maxInput,at=m.minInput,st=a.xAxis[0],H=a.scroller&&a.scroller.xAxis?a.scroller.xAxis:st,ot=H.dataMin;H=H.dataMax;var nt=m.getInputValue(d);nt!==Number(L.getAttribute("data-hc-time-previous"))&&v(nt)&&(L.setAttribute("data-hc-time-previous",nt),it&&et&&v(ot)?nt>Number(et.getAttribute("data-hc-time"))?nt=void 0:ntH&&(nt=H)),typeof nt<"u"&&st.setExtremes(it?nt:st.min,it?st.max:nt,void 0,void 0,{trigger:"rangeSelectorInput"}))}var a=this.chart,n=this.div,o=this.inputGroup,m=this,_=a.renderer.style||{},B=a.renderer,X=a.options.rangeSelector,it="min"===d,rt=R.lang[it?"rangeSelectorFrom":"rangeSelectorTo"]||"";rt=B.label(rt,0).addClass("highcharts-range-label").attr({padding:rt?2:0,height:rt?X.inputBoxHeight:0}).add(o),B=B.label("",0).addClass("highcharts-range-input").attr({padding:2,width:X.inputBoxWidth,height:X.inputBoxHeight,"text-align":"center"}).on("click",function(){m.showInput(d),m[d+"Input"].focus()}),a.styledMode||B.attr({stroke:X.inputBoxBorderColor,"stroke-width":1}),B.add(o);var L=k("input",{name:d,className:"highcharts-range-selector"},void 0,n);L.setAttribute("type",function V(b){if(-1!==b.indexOf("%L"))return"text";var d="aAdewbBmoyY".split("").some(function(a){return-1!==b.indexOf("%"+a)}),u="HkIlMS".split("").some(function(a){return-1!==b.indexOf("%"+a)});return d&&u?"datetime-local":d?"date":u?"time":"text"}(X.inputDateFormat||"%b %e, %Y")),a.styledMode||(rt.css(S(_,X.labelStyle)),B.css(S({color:"#333333"},_,X.inputStyle)),E(L,A({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:_.fontSize,fontFamily:_.fontFamily,top:"-9999em"},X.inputStyle))),L.onfocus=function(){m.showInput(d)},L.onblur=function(){L===G.doc.activeElement&&u(),m.hideInput(d),m.setInputValue(d),L.blur()};var z=!1;return L.onchange=function(){z||(u(),m.hideInput(d),L.blur())},L.onkeypress=function(et){13===et.keyCode&&u()},L.onkeydown=function(et){z=!0,38!==et.keyCode&&40!==et.keyCode||u()},L.onkeyup=function(){z=!1},{dateBox:B,input:L,label:rt}},b.prototype.getPosition=function(){var d=this.chart,u=d.options.rangeSelector;return{buttonTop:(d="top"===u.verticalAlign?d.plotTop-d.axisOffset[0]:0)+u.buttonPosition.y,inputTop:d+u.inputPosition.y-10}},b.prototype.getYTDExtremes=function(d,u,a){var n=this.chart.time,o=new n.Date(d),m=n.get("FullYear",o);return a=a?n.Date.UTC(m,0,1):+new n.Date(m,0,1),u=Math.max(u,a),o=o.getTime(),{max:Math.min(d||o,o),min:u}},b.prototype.render=function(d,u){var a=this.chart,n=a.renderer,o=a.container,m=a.options,_=m.rangeSelector,B=M(m.chart.style&&m.chart.style.zIndex,0)+1;if(m=_.inputEnabled,!1!==_.enabled){if(this.rendered||(this.group=n.g("range-selector-group").attr({zIndex:7}).add(),this.div=k("div",void 0,{position:"relative",height:0,zIndex:B}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),m&&(this.inputGroup=n.g("input-group").add(this.group),n=this.drawInput("min"),this.minDateBox=n.dateBox,this.minLabel=n.label,this.minInput=n.input,n=this.drawInput("max"),this.maxDateBox=n.dateBox,this.maxLabel=n.label,this.maxInput=n.input)),m&&(this.setInputValue("min",d),this.setInputValue("max",u),d=a.scroller&&a.scroller.getUnionExtremes()||a.xAxis[0]||{},w(d.dataMin)&&w(d.dataMax)&&(a=a.xAxis[0].minRange||0,this.setInputExtremes("min",d.dataMin,Math.min(d.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(d.dataMin,this.getInputValue("min"))+a,d.dataMax)),this.inputGroup)){var X=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(it){if(it){var rt=it.getBBox().width;rt&&(it.attr({x:X}),X+=rt+_.inputSpacing)}})}this.alignElements(),this.rendered=!0}},b.prototype.renderButtons=function(){var d=this,u=this.buttons,a=this.options,n=R.lang,o=this.chart.renderer,m=S(a.buttonTheme),_=m&&m.states,B=m.width||28;delete m.width,delete m.states,this.buttonGroup=o.g("range-selector-buttons").add(this.group);var X=this.dropdown=k("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);P(X,"touchstart",function(){X.style.fontSize="16px"}),[[G.isMS?"mouseover":"mouseenter"],[G.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(it){var rt=it[0],L=it[1];P(X,rt,function(){var z=u[d.currentButtonIndex()];z&&g(z.element,L||rt)})}),this.zoomText=o.label(n&&n.rangeSelectorZoom||"",0).attr({padding:a.buttonTheme.padding,height:a.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(a.labelStyle),m["stroke-width"]=M(m["stroke-width"],0)),k("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,X),this.buttonOptions.forEach(function(it,rt){k("option",{textContent:it.title||it.text},void 0,X),u[rt]=o.button(it.text,0,0,function(L){var et,z=it.events&&it.events.click;z&&(et=z.call(it,L)),!1!==et&&d.clickButton(rt),d.isActive=!0},m,_&&_.hover,_&&_.select,_&&_.disabled).attr({"text-align":"center",width:B}).add(d.buttonGroup),it.title&&u[rt].attr("title",it.title)})},b.prototype.alignElements=function(){var d=this,u=this.buttonGroup,a=this.buttons,n=this.chart,o=this.group,m=this.inputGroup,_=this.options,B=this.zoomText,X=n.options,it=X.exporting&&!1!==X.exporting.enabled&&X.navigation&&X.navigation.buttonOptions;X=_.buttonPosition;var rt=_.inputPosition,L=_.verticalAlign,z=function(H,ot){return it&&d.titleCollision(n)&&"top"===L&&"right"===ot.align&&ot.y-H.getBBox().height-12<(it.y||0)+(it.height||0)+n.spacing[0]?-40:0},et=n.plotLeft;if(o&&X&&rt){var at=X.x-n.spacing[3];if(u){if(this.positionButtons(),!this.initialButtonGroupWidth){var st=0;B&&(st+=B.getBBox().width+5),a.forEach(function(H,ot){st+=H.width,ot!==a.length-1&&(st+=_.buttonSpacing)}),this.initialButtonGroupWidth=st}et-=n.spacing[3],this.updateButtonStates(),B=z(u,X),this.alignButtonGroup(B),o.placed=u.placed=n.hasLoaded}u=0,m&&(u=z(m,rt),"left"===rt.align?at=et:"right"===rt.align&&(at=-Math.max(n.axisOffset[1],-u)),m.align({y:rt.y,width:m.getBBox().width,align:rt.align,x:rt.x+at-2},!0,n.spacingBox),m.placed=n.hasLoaded),this.handleCollision(u),o.align({verticalAlign:L},!0,n.spacingBox),m=o.alignAttr.translateY,u=o.getBBox().height+20,z=0,"bottom"===L&&(z=m-(u=u+(z=(z=n.legend&&n.legend.options)&&"bottom"===z.verticalAlign&&z.enabled&&!z.floating?n.legend.legendHeight+M(z.margin,10):0)-20)-(_.floating?0:_.y)-(n.titleOffset?n.titleOffset[2]:0)-10),"top"===L?(_.floating&&(z=0),n.titleOffset&&n.titleOffset[0]&&(z=n.titleOffset[0]),z+=n.margin[0]-n.spacing[0]||0):"middle"===L&&(rt.y===X.y?z=m:(rt.y||X.y)&&(z=0>rt.y||0>X.y?z-Math.min(rt.y,X.y):m-u)),o.translate(_.x,_.y+Math.floor(z)),X=this.minInput,rt=this.maxInput,m=this.dropdown,_.inputEnabled&&X&&rt&&(X.style.marginTop=o.translateY+"px",rt.style.marginTop=o.translateY+"px"),m&&(m.style.marginTop=o.translateY+"px")}},b.prototype.alignButtonGroup=function(d,u){var a=this.chart,n=this.buttonGroup,o=this.options.buttonPosition,m=a.plotLeft-a.spacing[3],_=o.x-a.spacing[3];"right"===o.align?_+=d-m:"center"===o.align&&(_-=m/2),n&&n.align({y:o.y,width:M(u,this.initialButtonGroupWidth),align:o.align,x:_},!0,a.spacingBox)},b.prototype.positionButtons=function(){var d=this.buttons,u=this.chart,a=this.options,n=this.zoomText,o=u.hasLoaded?"animate":"attr",m=a.buttonPosition,_=u=u.plotLeft;for(n&&"hidden"!==n.visibility&&(n[o]({x:M(u+m.x,u)}),_+=m.x+n.getBBox().width+5),n=0,m=this.buttonOptions.length;nL&&(L=z.width)}),L};var it=function(L){if(o&&n){var z=o.alignAttr.translateX+o.alignOptions.x-d+o.getBBox().x+2,et=o.alignOptions.width,at=n.alignAttr.translateX+n.getBBox().x;return at+L>z&&z+et>at&&_.y=-d?0:-d),translateY:o.alignAttr.translateY+n.getBBox().height+10})};if(n){if("always"===B)return this.collapseButtons(d),void(it(m())&&rt());"never"===B&&this.expandButtons()}o&&n?X.align===_.align||it(this.initialButtonGroupWidth+20)?"responsive"===B?(this.collapseButtons(d),it(m())&&rt()):rt():"responsive"===B&&this.expandButtons():n&&"responsive"===B&&(this.initialButtonGroupWidth>a.plotWidth?this.collapseButtons(d):this.expandButtons())},b.prototype.collapseButtons=function(d){var u=this.buttons,a=this.buttonOptions,n=this.chart,o=this.dropdown,m=this.options,_=this.zoomText,B=n.userOptions.rangeSelector&&n.userOptions.rangeSelector.buttonTheme||{},X=function(rt){return{text:rt?rt+" \u25be":"\u25be",width:"auto",paddingLeft:M(m.buttonTheme.paddingLeft,B.padding,8),paddingRight:M(m.buttonTheme.paddingRight,B.padding,8)}};_&&_.hide();var it=!1;a.forEach(function(rt,L){2!==(L=u[L]).state?L.hide():(L.show(),L.attr(X(rt.text)),it=!0)}),it||(o&&(o.selectedIndex=0),u[0].show(),u[0].attr(X(this.zoomText&&this.zoomText.textStr))),a=m.buttonPosition.align,this.positionButtons(),"right"!==a&&"center"!==a||this.alignButtonGroup(d,u[this.currentButtonIndex()].getBBox().width),this.showDropdown()},b.prototype.expandButtons=function(){var d=this.buttons,u=this.buttonOptions,a=this.options,n=this.zoomText;this.hideDropdown(),n&&n.show(),u.forEach(function(o,m){(m=d[m]).show(),m.attr({text:o.text,width:a.buttonTheme.width||28,paddingLeft:M(a.buttonTheme.paddingLeft,"unset"),paddingRight:M(a.buttonTheme.paddingRight,"unset")}),2>m.state&&m.setState(0)}),this.positionButtons()},b.prototype.currentButtonIndex=function(){var d=this.dropdown;return d&&0o&&0>n||0_.length||typeof n>"u")return L.getTimeTicks.apply(L,arguments);var nt=_.length;for(et=0;eto;if(_[et]5*B||yt){if(_[et]>ot){for(at=L.getTimeTicks(a,_[st],_[et],m);at.length&&at[0]<=ot;)at.shift();at.length&&(ot=at[at.length-1]),z.push(H.length),H=H.concat(at)}st=et+1}if(yt)break}if(at){if(at=at.info,X&&at.unitRange<=E.hour){for(et=H.length-1,st=1;sto?at-1:at,et=void 0;gt--;)z=L[gt],at=Math.abs(et-z),et&&at<.8*rt&&(null===st||at<.8*st)?(it[H[gt]]&&!it[H[gt+1]]?(at=gt+1,et=z):at=gt,H.splice(at,1)):et=z}return H}function g(a){var n=this.ordinal.positions;if(!n)return a;var o=n.length-1;if(0>a)a=n[0];else if(a>o)a=n[o];else var m=a-(o=Math.floor(a));return typeof m<"u"&&typeof n[o]<"u"?n[o]+(m?m*(n[o+1]-n[o]):0):a}function v(a){var n=this.ordinal,o=n.positions;if(!o)return a;var m=(a-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;if(0a?m+_*a:o+_*(a-n)}return a}function S(a,n){var o=y.Additions.findIndexOf(a,n,!0);return a[o]===n?o:o+(n-a[o])/(a[o+1]-a[o])}function N(){this.ordinal||(this.ordinal=new y.Additions(this))}function j(){this.isXAxis&&R(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&R(this.userMin)&&(this.min+=this.options.overscroll))}function M(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function D(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function I(a){var n=this.xAxis[0],o=n.options.overscroll,m=a.originalEvent.chartX,_=this.options.chart.panning,B=!1;if(_&&"y"!==_.type&&n.options.ordinal&&n.series.length){var X=this.mouseDownX,it=n.getExtremes(),rt=it.dataMax,L=it.min,z=it.max,et=this.hoverPoints,at=n.closestPointRange||n.ordinal&&n.ordinal.overscrollPointsRange;X=(X-m)/(n.translationSlope*(n.ordinal.slope||at)),at={ordinal:{positions:at=n.ordinal.getExtendedPositions(),extendedOrdinalPositions:at}};var st=n.index2val,H=n.val2lin,ot=void 0,nt=ot=void 0,yt=void 0;at.ordinal.positions?1X?(nt=at,yt=n.ordinal.positions?n:at):(nt=n.ordinal.positions?n:at,yt=at),rt>(ot=yt.ordinal.positions)[ot.length-1]&&ot.push(rt),this.fixedRange=z-L,(ot=n.navigatorAxis.toFixedRange(void 0,void 0,st.apply(nt,[H.apply(nt,[L,!0])+X]),st.apply(yt,[H.apply(yt,[z,!0])+X]))).min>=Math.min(it.dataMin,L)&&ot.max<=Math.max(rt,z)+o&&n.setExtremes(ot.min,ot.max,!0,!1,{trigger:"pan"}),this.mouseDownX=m,V(this.container,{cursor:"move"})):B=!0}else B=!0;B||_&&/y/.test(_.type)?o&&(n.max=n.dataMax+o):a.preventDefault()}function b(){var a=this.xAxis;a&&a.options.ordinal&&(delete a.ordinal.index,delete a.ordinal.extendedOrdinalPositions)}function d(a,n){var o=this.ordinal,m=o.positions,_=o.slope,B=o.extendedOrdinalPositions;if(!m)return a;var X=m.length;if(m[0]<=a&&m[X-1]>=a)a=S(m,a);else{if(B||(B=o.getExtendedPositions&&o.getExtendedPositions(),o.extendedOrdinalPositions=B),!B||!B.length)return a;X=B.length,_||(_=(B[X-1]-B[0])/X),m=S(B,m[0]),a=a>=B[0]&&a<=B[X-1]?S(B,a)-m:ayt||B-z[z.length-1]>yt)&&(at=!0)}else n.options.overscroll&&(2===nt?et=z[1]-z[0]:1===nt?(et=n.options.overscroll,z=[z[0],z[0]+et]):et=o.overscrollPointsRange);at||n.forceOrdinal?(n.options.overscroll&&(o.overscrollPointsRange=et,z=z.concat(o.getOverscrollPositions())),o.positions=z,yt=n.ordinal2lin(Math.max(_,z[0]),!0),L=Math.max(n.ordinal2lin(Math.min(B,z[z.length-1]),!0),1),o.slope=B=(B-_)/(L-yt),o.offset=_-yt*B):(o.overscrollPointsRange=k(n.closestPointRange,o.overscrollPointsRange),o.positions=n.ordinal.slope=o.offset=void 0)}n.isOrdinal=m&&at,o.groupIntervalFactor=null},a.findIndexOf=function(n,o,m){for(var X,_=0,B=n.length-1;_=k(m.min,-1/0)&&(B=X.points[0].plotX)}),n=(n-B)/(m.translationSlope*(this.slope||m.closestPointRange||this.overscrollPointsRange)),a.findIndexOf(o,_)+n},a.prototype.getOverscrollPositions=function(){var n=this.axis,o=n.options.overscroll,m=this.overscrollPointsRange,_=[],B=n.dataMax;if(R(m))for(;B<=n.dataMax+o;)B+=m,_.push(B);return _},a.prototype.postProcessTickInterval=function(n){var o=this.axis,m=this.slope;return m?o.options.breaks?o.closestPointRange||n:n/(m/o.closestPointRange):n},a}();y.Additions=u}(T||(T={})),T}),Y(q,"Series/HLC/HLCPoint.js",[q["Core/Series/SeriesRegistry.js"]],function(O){var G,U=this&&this.__extends||(G=function(Z,$){return(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,V){W.__proto__=V}||function(W,V){for(var R in V)V.hasOwnProperty(R)&&(W[R]=V[R])})(Z,$)},function(Z,$){function W(){this.constructor=Z}G(Z,$),Z.prototype=null===$?Object.create($):(W.prototype=$.prototype,new W)});return function(G){function Z(){var $=null!==G&&G.apply(this,arguments)||this;return $.close=void 0,$.high=void 0,$.low=void 0,$.options=void 0,$.plotClose=void 0,$.series=void 0,$}return U(Z,G),Z}(O.seriesTypes.column.prototype.pointClass)}),Y(q,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'\u25cf {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),Y(q,"Series/HLC/HLCSeries.js",[q["Series/HLC/HLCPoint.js"],q["Series/HLC/HLCSeriesDefaults.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G,Z){var P,$=this&&this.__extends||(P=function(k,E){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var y in T)T.hasOwnProperty(y)&&(w[y]=T[y])})(k,E)},function(k,E){function w(){this.constructor=k}P(k,E),k.prototype=null===E?Object.create(E):(w.prototype=E.prototype,new w)}),W=G.seriesTypes.column,V=Z.extend,R=Z.merge;return Z=function(P){function k(){var E=null!==P&&P.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E.yData=void 0,E}return $(k,P),k.prototype.extendStem=function(E,w,T){var y=E[0];E=E[1],"number"==typeof y[2]&&(y[2]=Math.max(T+w,y[2])),"number"==typeof E[2]&&(E[2]=Math.min(T-w,E[2]))},k.prototype.getPointPath=function(E,w){w=w.strokeWidth();var T=E.series,y=w%2/2,A=Math.round(E.plotX)-y,g=Math.round(E.shapeArgs.width/2),v=[["M",A,Math.round(E.yBottom)],["L",A,Math.round(E.plotHigh)]];return null!==E.close&&(E=Math.round(E.plotClose)+y,v.push(["M",A,E],["L",A+g,E]),T.extendStem(v,w/2,E)),v},k.prototype.drawSinglePoint=function(E){var w=E.series,T=w.chart,y=E.graphic;typeof E.plotY<"u"&&(y||(E.graphic=y=T.renderer.path().add(w.group)),T.styledMode||y.attr(w.pointAttribs(E,E.selected&&"select")),w=w.getPointPath(E,y),y[y?"animate":"attr"]({d:w}).addClass(E.getClassName(),!0))},k.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},k.prototype.init=function(){P.prototype.init.apply(this,arguments),this.options.stacking=void 0},k.prototype.pointAttribs=function(E,w){return delete(E=P.prototype.pointAttribs.call(this,E,w)).fill,E},k.prototype.toYData=function(E){return[E.high,E.low,E.close]},k.prototype.translate=function(){var E=this,w=E.yAxis,T=this.pointArrayMap&&this.pointArrayMap.slice()||[],y=T.map(function(A){return"plot".concat(A.charAt(0).toUpperCase()+A.slice(1))});y.push("yBottom"),T.push("low"),P.prototype.translate.apply(E),E.points.forEach(function(A){T.forEach(function(g,v){null!==(g=A[g])&&(E.dataModify&&(g=E.dataModify.modifyValue(g)),A[y[v]]=w.toPixels(g,!0))}),A.tooltipPos[1]=A.plotHigh+w.pos-E.chart.plotTop})},k.defaultOptions=R(W.defaultOptions,U),k}(W),V(Z.prototype,{pointClass:O,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),G.registerSeriesType("hlc",Z),Z}),Y(q,"Series/OHLC/OHLCPoint.js",[q["Core/Series/SeriesRegistry.js"]],function(O){var G,U=this&&this.__extends||(G=function(Z,$){return(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,V){W.__proto__=V}||function(W,V){for(var R in V)V.hasOwnProperty(R)&&(W[R]=V[R])})(Z,$)},function(Z,$){function W(){this.constructor=Z}G(Z,$),Z.prototype=null===$?Object.create($):(W.prototype=$.prototype,new W)});return function(G){function Z(){var $=null!==G&&G.apply(this,arguments)||this;return $.open=void 0,$.options=void 0,$.plotOpen=void 0,$.series=void 0,$}return U(Z,G),Z.prototype.getClassName=function(){return G.prototype.getClassName.call(this)+(this.open\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}}}),Y(q,"Series/OHLC/OHLCSeries.js",[q["Series/OHLC/OHLCPoint.js"],q["Series/OHLC/OHLCSeriesDefaults.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Utilities.js"]],function(O,U,G,Z){function $(y){var A=(y=y.options).dataGrouping;A&&y.useOhlcData&&"highcharts-navigator-series"!==y.id&&(A.approximation="ohlc")}function W(y){(y=y.options).useOhlcData&&"highcharts-navigator-series"!==y.id&&k(this,{pointValKey:T.prototype.pointValKey,pointArrayMap:T.prototype.pointArrayMap,toYData:T.prototype.toYData})}var y,V=this&&this.__extends||(y=function(A,g){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var N in S)S.hasOwnProperty(N)&&(v[N]=S[N])})(A,g)},function(A,g){function v(){this.constructor=A}y(A,g),A.prototype=null===g?Object.create(g):(v.prototype=g.prototype,new v)}),R=G.seriesTypes.hlc,P=Z.addEvent,k=Z.extend,E=Z.merge,w=[],T=function(y){function A(){var g=null!==y&&y.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return V(A,y),A.compose=function(g){for(var v=1;v"u"},W.prototype.hasNewShapeType=function(){var V=this.options.shape||this.series.options.shape;return this.graphic&&V&&V!==this.graphic.symbolKey},W}(O.seriesTypes.column.prototype.pointClass)}),Y(q,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}}),Y(q,"Series/Flags/FlagsSymbols.js",[q["Core/Renderer/RendererRegistry.js"]],function(O){var U;return function(G){function Z(V,R,P,k,E){var w=E&&E.anchorX||V;E=E&&E.anchorY||R;var T=this.circle(w-1,E-1,2,2);return T.push(["M",w,E],["L",V,R+k],["L",V,R],["L",V+P,R],["L",V+P,R+k],["L",V,R+k],["Z"]),T}function $(V,R){V[R+"pin"]=function(P,k,E,w,T){var y=T&&T.anchorX;T=T&&T.anchorY,"circle"===R&&w>E&&(P-=Math.round((w-E)/2),E=w);var A=V[R](P,k,E,w);if(y&&T){var g=y;"circle"===R?g=P+E/2:(P=A[0],E=A[1],"M"===P[0]&&"L"===E[0]&&(g=(P[1]+E[1])/2)),A.push(["M",g,k>T?k:k+w],["L",y,T]),A=A.concat(V.circle(y-1,T-1,2,2))}return A}}var W=[];G.compose=function(V){if(-1===W.indexOf(V)){W.push(V);var R=V.prototype.symbols;R.flag=Z,$(R,"circle"),$(R,"square")}var P=O.getRendererType();W.indexOf(P)&&(W.push(P),R=V.prototype.symbols,(V=P.prototype.symbols).circlepin=R.circlepin,V.flag=R.flag.bind(R),V.squarepin=R.squarepin)}}(U||(U={})),U}),Y(q,"Series/OnSeriesComposition.js",[q["Series/Column/ColumnSeries.js"],q["Core/Series/Series.js"],q["Core/Utilities.js"]],function(O,U,G){var R,Z=O.prototype,$=U.prototype,W=G.defined,V=G.stableSort;return function(P){function k(T){return $.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,T)}function E(){Z.translate.apply(this);var I,T=this,y=T.options,A=T.chart,g=T.points,v=y.onSeries,S=(v=v&&A.get(v))&&v.options.step,N=v&&v.points,j=A.inverted,M=T.xAxis,D=T.yAxis;A=g.length-1,y=y.onKey||"y";var u,b=N&&N.length,d=0;if(v&&v.visible&&b){d=(v.pointXOffset||0)+(v.barW||0)/2;var a=v.currentDataGrouping,n=N[b-1].x+(a?a.totalRange:0);for(V(g,function(_,B){return _.x-B.x}),y="plot"+y[0].toUpperCase()+y.substr(1);b--&&g[A];){var o=N[b];if((a=g[A]).y=o.y,o.x<=a.x&&typeof o[y]<"u"){if(a.x<=n&&(a.plotY=o[y],o.x--A)break}}}g.forEach(function(_,B){if(_.plotX+=d,(typeof _.plotY>"u"||j)&&(0<=_.plotX&&_.plotX<=M.len?j?(_.plotY=M.translate(_.x,0,1,0,1),_.plotX=W(_.y)?D.translate(_.y,0,0,0,1):0):_.plotY=(M.opposite?0:T.yAxis.len)+M.offset:_.shapeArgs={}),(I=g[B-1])&&I.plotX===_.plotX){typeof I.stackIndex>"u"&&(I.stackIndex=0);var X=I.stackIndex+1}_.stackIndex=X}),this.onSeries=v}var w=[];P.compose=function(T){if(-1===w.indexOf(T)){w.push(T);var y=T.prototype;y.getPlotBox=k,y.translate=E}return T},P.getPlotBox=k,P.translate=E}(R||(R={})),R}),Y(q,"Series/Flags/FlagsSeries.js",[q["Series/Flags/FlagsPoint.js"],q["Series/Flags/FlagsSeriesDefaults.js"],q["Series/Flags/FlagsSymbols.js"],q["Core/Globals.js"],q["Series/OnSeriesComposition.js"],q["Core/Renderer/RendererUtilities.js"],q["Core/Series/SeriesRegistry.js"],q["Core/Renderer/SVG/SVGElement.js"],q["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P){var N,k=this&&this.__extends||(N=function(j,M){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,I){D.__proto__=I}||function(D,I){for(var b in I)I.hasOwnProperty(b)&&(D[b]=I[b])})(j,M)},function(j,M){function D(){this.constructor=j}N(j,M),j.prototype=null===M?Object.create(M):(D.prototype=M.prototype,new D)});Z=Z.noop;var E=W.distribute,w=V.series,T=V.seriesTypes.column,y=P.addEvent,A=P.defined;W=P.extend;var g=P.merge,v=P.objectEach,S=P.wrap;return P=function(N){function j(){var M=null!==N&&N.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return k(j,N),j.prototype.animate=function(M){M&&this.setClip()},j.prototype.drawPoints=function(){var m,M=this.points,D=this.chart,I=D.renderer,b=D.inverted,d=this.options,u=d.y,a=this.yAxis,n={},o=[];for(m=M.length;m--;){var _=M[m],B=(b?_.plotY:_.plotX)>this.xAxis.len,X=_.plotX,it=_.stackIndex,rt=_.options.shape||d.shape,L=_.plotY;typeof L<"u"&&(L=_.plotY+u-(typeof it<"u"&&it*d.stackDistance)),_.anchorX=it?void 0:_.plotX;var z=it?void 0:_.plotY,et="flag"!==rt;it=_.graphic,typeof L<"u"&&0<=X&&!B?(it&&_.hasNewShapeType()&&(it=it.destroy()),it||(it=_.graphic=I.label("",null,null,rt,null,null,d.useHTML).addClass("highcharts-point").add(this.markerGroup),_.graphic.div&&(_.graphic.div.point=_),it.isNew=!0),it.attr({align:et?"center":"left",width:d.width,height:d.height,"text-align":d.textAlign}),D.styledMode||it.attr(this.pointAttribs(_)).css(g(d.style,_.style)).shadow(d.shadow),0"u"&&(n.align="right"),u[a]=this,d.align="right",d.preventDefault())}),G(O,"destroy",function(){var d=this.chart,u=this.options&&this.options.top+","+this.options.height;u&&d._labelPanes&&d._labelPanes[u]===this&&delete d._labelPanes[u]}),G(O,"getPlotLinePath",function(d){var X,it,rt,L,a=this,n=this.isLinked&&!this.series?this.linkedParent.series:this.series,o=a.chart,m=o.renderer,_=a.left,B=a.top,z=[],et=[],at=d.translatedValue,st=d.value,H=d.force;if(o.options.isStock&&!1!==d.acrossPanes&&"xAxis"===a.coll||"yAxis"===a.coll){d.preventDefault(),et=function u(gt){var mt="xAxis"===gt?"yAxis":"xAxis";return gt=a.options[mt],j(gt)?[o[mt][gt]]:M(gt)?[o.get(gt)]:n.map(function(St){return St[mt]})}(a.coll),(a.isXAxis?o.yAxis:o.xAxis).forEach(function(gt){if(!v(gt.options.id)||-1===gt.options.id.indexOf("navigator")){var mt=gt.isXAxis?"yAxis":"xAxis";mt=v(gt.options[mt])?o[mt][gt.options[mt]]:o[mt][0],a===mt&&et.push(gt)}});var nt=et.length?[]:[a.isXAxis?o.yAxis[0]:o.xAxis[0]];et.forEach(function(gt){-1!==nt.indexOf(gt)||N(nt,function(mt){return mt.pos===gt.pos&&mt.len===gt.len})||nt.push(gt)});var yt=I(at,a.translate(st,void 0,void 0,d.old));j(yt)&&(a.horiz?nt.forEach(function(gt){var mt;it=gt.pos,L=it+gt.len,X=rt=Math.round(yt+a.transB),"pass"!==H&&(X<_||X>_+a.width)&&(H?X=rt=g(X,_,_+a.width):mt=!0),mt||z.push(["M",X,it],["L",rt,L])}):nt.forEach(function(gt){var mt;X=gt.pos,rt=X+gt.len,it=L=Math.round(B+a.height-yt),"pass"!==H&&(itB+a.height)&&(H?it=L=g(it,B,B+a.height):mt=!0),mt||z.push(["M",X,it],["L",rt,L])})),d.path=0ot&&z=a&&(st=-(rt.translateX+m.width-a)),rt.attr({x:o+st,y:it,anchorX:_?o:this.opposite?0:n.chartWidth,anchorY:_?this.opposite?n.chartHeight:0:it+m.height/2})}}),R.prototype.forceCropping=function(){var d=this.chart,u=this.options.dataGrouping;return!1!==this.allowDG&&u&&I(u.enabled,d.options.isStock)},G(U,"update",function(d){"scrollbar"in(d=d.options)&&this.navigator&&(D(!0,this.options.scrollbar,d.scrollbar),this.navigator.update({}),delete d.scrollbar)}),k}),Y(q,"masters/modules/stock.src.js",[q["Core/Globals.js"],q["Series/DataModifyComposition.js"],q["Stock/Navigator/Navigator.js"],q["Stock/RangeSelector/RangeSelector.js"],q["Stock/Scrollbar/Scrollbar.js"],q["Core/Axis/OrdinalAxis.js"],q["Series/OHLC/OHLCSeries.js"],q["Series/Flags/FlagsSeries.js"],q["Core/Chart/StockChart.js"]],function(O,U,G,Z,$,W,V,R,P){O.Navigator=G,O.RangeSelector=Z,O.Scrollbar=$,O.StockChart=O.stockChart=P.stockChart,U.compose(O.Series,O.Axis,O.Point),R.compose(O.Renderer),G.compose(O.Axis,O.Chart,O.Series),V.compose(O.Series),W.compose(O.Axis,O.Series,O.Chart),Z.compose(O.Axis,O.Chart),$.compose(O.Axis)}),Y(q,"masters/highstock.src.js",[q["masters/highcharts.src.js"]],function(O){return O.product="Highstock",O}),q["masters/highstock.src.js"]._modules=q,q["masters/highstock.src.js"]},Jt.exports?(Y.default=Y,Jt.exports=t.document?Y(t):Y):void 0!==(pt=function(){return Y(t)}.call($t,ht,$t,Jt))&&(Jt.exports=pt)},2112:(Jt,$t,ht)=>{var pt,t,Y;Y=function(Y){function q(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}q(Y=Y?Y._modules:{},"Core/Chart/ChartNavigationComposition.js",[],function(){var O;return function(U){U.compose=function(Z){return Z.navigation||(Z.navigation=new G(Z)),Z};var G=function(){function Z($){this.updates=[],this.chart=$}return Z.prototype.addUpdate=function($){this.chart.navigation.updates.push($)},Z.prototype.update=function($,W){var V=this;this.updates.forEach(function(R){R.call(V.chart,$,W)})},Z}();U.Additions=G}(O||(O={})),O}),q(Y,"Extensions/Exporting/ExportingDefaults.js",[Y["Core/Globals.js"]],function(O){return O=O.isTouchDevice,{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:"viewFullscreen printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{padding:5}},menuStyle:{border:"1px solid ".concat("#999999"),background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",color:"#333333",background:"none",fontSize:O?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"}}}}),q(Y,"Extensions/Exporting/ExportingSymbols.js",[],function(){var O;return function(U){function G(W,V,R,P){return[["M",W,V+2.5],["L",W+R,V+2.5],["M",W,V+P/2+.5],["L",W+R,V+P/2+.5],["M",W,V+P-1.5],["L",W+R,V+P-1.5]]}function Z(W,V,R,P){return W=P/3-2,(P=[]).concat(this.circle(R-W,V,W,W),this.circle(R-W,V+W+4,W,W),this.circle(R-W,V+2*(W+4),W,W))}var $=[];U.compose=function(W){-1===$.indexOf(W)&&($.push(W),(W=W.prototype.symbols).menu=G,W.menuball=Z.bind(W))}}(O||(O={})),O}),q(Y,"Extensions/Exporting/Fullscreen.js",[Y["Core/Renderer/HTML/AST.js"],Y["Core/Utilities.js"]],function(O,U){function G(){this.fullscreen=new V(this)}var Z=U.addEvent,$=U.fireEvent,W=[],V=function(){function R(P){this.chart=P,this.isOpen=!1,P=P.renderTo,this.browserProps||("function"==typeof P.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:P.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:P.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:P.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}return R.compose=function(P){-1===W.indexOf(P)&&(W.push(P),Z(P,"beforeRender",G))},R.prototype.close=function(){var P=this,k=P.chart,E=k.options.chart;$(k,"fullscreenClose",null,function(){P.isOpen&&P.browserProps&&k.container.ownerDocument instanceof Document&&k.container.ownerDocument[P.browserProps.exitFullscreen](),P.unbindFullscreenEvent&&(P.unbindFullscreenEvent=P.unbindFullscreenEvent()),k.setSize(P.origWidth,P.origHeight,!1),P.origWidth=void 0,P.origHeight=void 0,E.width=P.origWidthOption,E.height=P.origHeightOption,P.origWidthOption=void 0,P.origHeightOption=void 0,P.isOpen=!1,P.setButtonText()})},R.prototype.open=function(){var P=this,k=P.chart,E=k.options.chart;$(k,"fullscreenOpen",null,function(){if(E&&(P.origWidthOption=E.width,P.origHeightOption=E.height),P.origWidth=k.chartWidth,P.origHeight=k.chartHeight,P.browserProps){var w=Z(k.container.ownerDocument,P.browserProps.fullscreenChange,function(){P.isOpen?(P.isOpen=!1,P.close()):(k.setSize(null,null,!1),P.isOpen=!0,P.setButtonText())}),T=Z(k,"destroy",w);P.unbindFullscreenEvent=function(){w(),T()};var y=k.renderTo[P.browserProps.requestFullscreen]();y&&y.catch(function(){alert("Full screen is not supported inside a frame.")})}})},R.prototype.setButtonText=function(){var P=this.chart,k=P.exportDivElements,E=P.options.exporting,w=E&&E.buttons&&E.buttons.contextButton.menuItems;P=P.options.lang,E&&E.menuItemDefinitions&&P&&P.exitFullscreen&&P.viewFullscreen&&w&&k&&(k=k[w.indexOf("viewFullscreen")])&&O.setElementHTML(k,this.isOpen?P.exitFullscreen:E.menuItemDefinitions.viewFullscreen.text||P.viewFullscreen)},R.prototype.toggle=function(){this.isOpen?this.close():this.open()},R}();return V}),q(Y,"Core/HttpUtilities.js",[Y["Core/Globals.js"],Y["Core/Utilities.js"]],function(O,U){var G=O.doc,Z=U.createElement,$=U.discardElement,W=U.merge,V=U.objectEach,R={ajax:function(P){var k={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},E=new XMLHttpRequest;if(!P.url)return!1;E.open((P.type||"get").toUpperCase(),P.url,!0),P.headers&&P.headers["Content-Type"]||E.setRequestHeader("Content-Type",k[P.dataType||"json"]||k.text),V(P.headers,function(w,T){E.setRequestHeader(T,w)}),P.responseType&&(E.responseType=P.responseType),E.onreadystatechange=function(){if(4===E.readyState){if(200===E.status){if("blob"!==P.responseType){var w=E.responseText;if("json"===P.dataType)try{w=JSON.parse(w)}catch(T){if(T instanceof Error)return void(P.error&&P.error(E,T))}}return P.success&&P.success(w,E)}P.error&&P.error(E,E.responseText)}},P.data&&"string"!=typeof P.data&&(P.data=JSON.stringify(P.data)),E.send(P.data)},getJSON:function(P,k){R.ajax({url:P,success:k,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(P,k,E){var w=Z("form",W({method:"post",action:P,enctype:"multipart/form-data"},E),{display:"none"},G.body);V(k,function(T,y){Z("input",{type:"hidden",name:y,value:T},void 0,w)}),w.submit(),$(w)}};return R}),q(Y,"Extensions/Exporting/Exporting.js",[Y["Core/Renderer/HTML/AST.js"],Y["Core/Chart/Chart.js"],Y["Core/Chart/ChartNavigationComposition.js"],Y["Core/Defaults.js"],Y["Extensions/Exporting/ExportingDefaults.js"],Y["Extensions/Exporting/ExportingSymbols.js"],Y["Extensions/Exporting/Fullscreen.js"],Y["Core/Globals.js"],Y["Core/HttpUtilities.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P,k){var o,E=Z.defaultOptions,w=Z.setOptions,T=R.doc,y=R.SVG_NS,A=R.win,g=k.addEvent,v=k.css,S=k.createElement,N=k.discardElement,j=k.extend,M=k.find,D=k.fireEvent,I=k.isObject,b=k.merge,d=k.objectEach,u=k.pick,a=k.removeEvent,n=k.uniqueKey;return function(m){function _(Ut){var bt=this,_t=bt.renderer,xt=b(bt.options.navigation.buttonOptions,Ut),ft=xt.onclick,Ct=xt.menuItems,Ot=xt.symbolSize||12;if(bt.btnCount||(bt.btnCount=0),bt.exportDivElements||(bt.exportDivElements=[],bt.exportSVGElements=[]),!1!==xt.enabled&&xt.theme){var Zt,Rt=xt.theme;bt.styledMode||(Rt.fill=u(Rt.fill,"#ffffff"),Rt.stroke=u(Rt.stroke,"none")),ft?Zt=function(ye){ye&&ye.stopPropagation(),ft.call(bt,ye)}:Ct&&(Zt=function(ye){ye&&ye.stopPropagation(),bt.contextMenu(he.menuClassName,Ct,he.translateX,he.translateY,he.width,he.height,he),he.setState(2)}),xt.text&&xt.symbol?Rt.paddingLeft=u(Rt.paddingLeft,30):xt.text||j(Rt,{width:xt.width,height:xt.height,padding:0}),bt.styledMode||(Rt["stroke-linecap"]="round",Rt.fill=u(Rt.fill,"#ffffff"),Rt.stroke=u(Rt.stroke,"none"));var he=_t.button(xt.text,0,0,Zt,Rt,void 0,void 0,void 0,void 0,xt.useHTML).addClass(Ut.className).attr({title:u(bt.options.lang[xt._titleKey||xt.titleKey],"")});if(he.menuClassName=Ut.menuClassName||"highcharts-menu-"+bt.btnCount++,xt.symbol){var Ie=_t.symbol(xt.symbol,xt.symbolX-Ot/2,xt.symbolY-Ot/2,Ot,Ot,{width:Ot,height:Ot}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(he);bt.styledMode||Ie.attr({stroke:xt.symbolStroke,fill:xt.symbolFill,"stroke-width":xt.symbolStrokeWidth||1})}he.add(bt.exportingGroup).align(j(xt,{width:he.width,x:u(xt.x,bt.buttonOffset)}),!0,"spacingBox"),bt.buttonOffset+=(he.width+xt.buttonSpacing)*("right"===xt.align?-1:1),bt.exportSVGElements.push(he,Ie)}}function B(){if(this.printReverseInfo){var Ut=this.printReverseInfo,bt=Ut.childNodes,_t=Ut.origDisplay;Ut=Ut.resetParams,this.moveContainers(this.renderTo),[].forEach.call(bt,function(xt,ft){1===xt.nodeType&&(xt.style.display=_t[ft]||"")}),this.isPrinting=!1,Ut&&this.setSize.apply(this,Ut),delete this.printReverseInfo,jt=void 0,D(this,"afterPrint")}}function X(){var Ut=T.body,bt=this.options.exporting.printMaxWidth,_t={childNodes:Ut.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer.reset(null,0),D(this,"beforePrint"),bt&&this.chartWidth>bt&&(_t.resetParams=[this.options.chart.width,void 0,!1],this.setSize(bt,void 0,!1)),[].forEach.call(_t.childNodes,function(xt,ft){1===xt.nodeType&&(_t.origDisplay[ft]=xt.style.display,xt.style.display="none")}),this.moveContainers(Ut),this.printReverseInfo=_t}function it(Ut){Ut.renderExporting(),g(Ut,"redraw",Ut.renderExporting),g(Ut,"destroy",Ut.destroyExport)}function rt(Ut,bt,_t,xt,ft,Ct,Ot){var Rt=this,Zt=Rt.options.navigation,he=Rt.chartWidth,Ie=Rt.chartHeight,ye="cache-"+Ut,Ne=Math.max(ft,Ct),He=Rt[ye];if(!He){Rt.exportContextMenu=Rt[ye]=He=S("div",{className:Ut},{position:"absolute",zIndex:1e3,padding:Ne+"px",pointerEvents:"auto"},Rt.fixedDiv||Rt.container);var ze=S("ul",{className:"highcharts-menu"},{listStyle:"none",margin:0,padding:0},He);Rt.styledMode||v(ze,j({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},Zt.menuStyle)),He.hideMenu=function(){v(He,{display:"none"}),Ot&&Ot.setState(0),Rt.openMenu=!1,v(Rt.renderTo,{overflow:"hidden"}),v(Rt.container,{overflow:"hidden"}),k.clearTimeout(He.hideTimer),D(Rt,"exportMenuHidden")},Rt.exportEvents.push(g(He,"mouseleave",function(){He.hideTimer=A.setTimeout(He.hideMenu,500)}),g(He,"mouseenter",function(){k.clearTimeout(He.hideTimer)}),g(T,"mouseup",function(ii){Rt.pointer.inClass(ii.target,Ut)||He.hideMenu()}),g(He,"click",function(){Rt.openMenu&&He.hideMenu()})),bt.forEach(function(ii){if("string"==typeof ii&&(ii=Rt.options.exporting.menuItemDefinitions[ii]),I(ii,!0)){var $e=void 0;ii.separator?$e=S("hr",void 0,void 0,ze):("viewData"===ii.textKey&&Rt.isDataTableVisible&&(ii.textKey="hideData"),$e=S("li",{className:"highcharts-menu-item",onclick:function(Te){Te&&Te.stopPropagation(),He.hideMenu(),ii.onclick&&ii.onclick.apply(Rt,arguments)}},void 0,ze),O.setElementHTML($e,ii.text||Rt.options.lang[ii.textKey]),Rt.styledMode||($e.onmouseover=function(){v(this,Zt.menuItemHoverStyle)},$e.onmouseout=function(){v(this,Zt.menuItemStyle)},v($e,j({cursor:"pointer"},Zt.menuItemStyle||{})))),Rt.exportDivElements.push($e)}}),Rt.exportDivElements.push(ze,He),Rt.exportMenuWidth=He.offsetWidth,Rt.exportMenuHeight=He.offsetHeight}bt={display:"block"},_t+Rt.exportMenuWidth>he?bt.right=he-_t-ft-Ne+"px":bt.left=_t-Ne+"px",xt+Ct+Rt.exportMenuHeight>Ie&&"top"!==Ot.alignOptions.verticalAlign?bt.bottom=Ie-xt-Ne+"px":bt.top=xt+Ct-Ne+"px",v(He,bt),v(Rt.renderTo,{overflow:""}),v(Rt.container,{overflow:""}),Rt.openMenu=!0,D(Rt,"exportMenuShown")}function L(Ut){var ft,bt=Ut?Ut.target:this,_t=bt.exportSVGElements,xt=bt.exportDivElements;Ut=bt.exportEvents,_t&&(_t.forEach(function(Ct,Ot){Ct&&(Ct.onclick=Ct.ontouchstart=null,ft="cache-"+Ct.menuClassName,bt[ft]&&delete bt[ft],_t[Ot]=Ct.destroy())}),_t.length=0),bt.exportingGroup&&(bt.exportingGroup.destroy(),delete bt.exportingGroup),xt&&(xt.forEach(function(Ct,Ot){Ct&&(k.clearTimeout(Ct.hideTimer),a(Ct,"mouseleave"),xt[Ot]=Ct.onmouseout=Ct.onmouseover=Ct.ontouchstart=Ct.onclick=null,N(Ct))}),xt.length=0),Ut&&(Ut.forEach(function(Ct){Ct()}),Ut.length=0)}function z(Ut,bt){bt=this.getSVGForExport(Ut,bt),Ut=b(this.options.exporting,Ut),P.post(Ut.url,{filename:Ut.filename?Ut.filename.replace(/\//g,"-"):this.getFilename(),type:Ut.type,width:Ut.width||0,scale:Ut.scale,svg:bt},Ut.formAttributes)}function et(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function at(){var Ut=this.userOptions.title&&this.userOptions.title.text,bt=this.options.exporting.filename;return bt?bt.replace(/\//g,"-"):("string"==typeof Ut&&(bt=Ut.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!bt||5>bt.length)&&(bt="chart"),bt)}function st(Ut){var bt,_t=b(this.options,Ut);_t.plotOptions=b(this.userOptions.plotOptions,Ut&&Ut.plotOptions),_t.time=b(this.userOptions.time,Ut&&Ut.time);var xt=S("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},T.body),ft=this.renderTo.style.width,Ct=this.renderTo.style.height;ft=_t.exporting.sourceWidth||_t.chart.width||/px$/.test(ft)&&parseInt(ft,10)||(_t.isGantt?800:600),Ct=_t.exporting.sourceHeight||_t.chart.height||/px$/.test(Ct)&&parseInt(Ct,10)||400,j(_t.chart,{animation:!1,renderTo:xt,forExport:!0,renderer:"SVGRenderer",width:ft,height:Ct}),_t.exporting.enabled=!1,delete _t.data,_t.series=[],this.series.forEach(function(Zt){(bt=b(Zt.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:Zt.visible})).isInternal||_t.series.push(bt)});var Ot={};this.axes.forEach(function(Zt){Zt.userOptions.internalKey||(Zt.userOptions.internalKey=n()),Zt.options.isInternal||(Ot[Zt.coll]||(Ot[Zt.coll]=!0,_t[Zt.coll]=[]),_t[Zt.coll].push(b(Zt.userOptions,{visible:Zt.visible})))});var Rt=new this.constructor(_t,this.callback);return Ut&&["xAxis","yAxis","series"].forEach(function(Zt){var he={};Ut[Zt]&&(he[Zt]=Ut[Zt],Rt.update(he))}),this.axes.forEach(function(Zt){var he=M(Rt.axes,function(Ne){return Ne.options.internalKey===Zt.userOptions.internalKey}),Ie=Zt.getExtremes(),ye=Ie.userMin;Ie=Ie.userMax,he&&(typeof ye<"u"&&ye!==he.min||typeof Ie<"u"&&Ie!==he.max)&&he.setExtremes(ye,Ie,!0,!1)}),Ct=Rt.getChartHTML(),D(this,"getSVG",{chartCopy:Rt}),Ct=this.sanitizeSVG(Ct,_t),_t=null,Rt.destroy(),N(xt),Ct}function H(Ut,bt){var _t=this.options.exporting;return this.getSVG(b({chart:{borderRadius:0}},_t.chartOptions,bt,{exporting:{sourceWidth:Ut&&Ut.sourceWidth||_t.sourceWidth,sourceHeight:Ut&&Ut.sourceHeight||_t.sourceHeight}}))}function ot(Ut){return Ut.replace(/([A-Z])/g,function(bt,_t){return"-"+_t.toLowerCase()})}function nt(){var ft,bt=Dt,_t=m.inlineAllowlist,xt={},Ct=T.createElement("iframe");v(Ct,{width:"1px",height:"1px",visibility:"hidden"}),T.body.appendChild(Ct);var Ot=Ct.contentWindow&&Ct.contentWindow.document;Ot&&Ot.body.appendChild(Ot.createElementNS(y,"svg")),function Ut(Rt){var Zt={};if(Ot&&1===Rt.nodeType&&-1===Ft.indexOf(Rt.nodeName)){var he=A.getComputedStyle(Rt,null),Ie="svg"===Rt.nodeName?{}:A.getComputedStyle(Rt.parentNode,null);if(!xt[Rt.nodeName]){ft=Ot.getElementsByTagName("svg")[0];var ye=Ot.createElementNS(Rt.namespaceURI,Rt.nodeName);ft.appendChild(ye);var Ne=A.getComputedStyle(ye,null),He={};for(var ze in Ne)"string"!=typeof Ne[ze]||/^[0-9]+$/.test(ze)||(He[ze]=Ne[ze]);xt[Rt.nodeName]=He,"text"===Rt.nodeName&&delete xt.text.fill,ft.removeChild(ye)}for(var ii in he)if(R.isFirefox||R.isMS||R.isSafari||Object.hasOwnProperty.call(he,ii)){ze=he[ii];var $e=ii;if(ye=Ne=!1,_t.length){for(He=_t.length;He--&&!Ne;)Ne=_t[He].test($e);ye=!Ne}for("transform"===$e&&"none"===ze&&(ye=!0),He=bt.length;He--&&!ye;)ye=bt[He].test($e)||"function"==typeof ze;ye||Ie[$e]===ze&&"svg"!==Rt.nodeName||xt[Rt.nodeName][$e]===ze||(Pt&&-1===Pt.indexOf($e)?Zt[$e]=ze:ze&&Rt.setAttribute(ot($e),ze))}v(Rt,Zt),"svg"===Rt.nodeName&&Rt.setAttribute("stroke-width","1px"),"text"!==Rt.nodeName&&[].forEach.call(Rt.children||Rt.childNodes,Ut)}}(this.container.querySelector("svg")),ft.parentNode.removeChild(ft),Ct.parentNode.removeChild(Ct)}function yt(Ut){(this.fixedDiv?[this.fixedDiv,this.scrollingContainer]:[this.container]).forEach(function(bt){Ut.appendChild(bt)})}function gt(){var Ut=this;Ut.exporting={update:function(bt,_t){Ut.isDirtyExporting=!0,b(!0,Ut.options.exporting,bt),u(_t,!0)&&Ut.redraw()}},G.compose(Ut).navigation.addUpdate(function(bt,_t){Ut.isDirtyExporting=!0,b(!0,Ut.options.navigation,bt),u(_t,!0)&&Ut.redraw()})}function mt(){var Ut=this;Ut.isPrinting||(jt=Ut,R.isSafari||Ut.beforePrint(),setTimeout(function(){A.focus(),A.print(),R.isSafari||setTimeout(function(){Ut.afterPrint()},1e3)},1))}function St(){var Ut=this,bt=Ut.options.exporting,_t=bt.buttons,xt=Ut.isDirtyExporting||!Ut.exportSVGElements;Ut.buttonOffset=0,Ut.isDirtyExporting&&Ut.destroyExport(),xt&&!1!==bt.enabled&&(Ut.exportEvents=[],Ut.exportingGroup=Ut.exportingGroup||Ut.renderer.g("exporting-group").attr({zIndex:3}).add(),d(_t,function(ft){Ut.addButton(ft)}),Ut.isDirtyExporting=!1)}function wt(Ut,bt){var _t=Ut.indexOf("")+6,xt=Ut.substr(_t);return Ut=Ut.substr(0,_t),bt&&bt.exporting&&bt.exporting.allowHTML&&xt&&(xt=''+xt.replace(/(<(?:img|br).*?(?=>))>/g,"$1 />")+"",Ut=Ut.replace("",xt+"")),Ut=Ut.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|");?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/{var pt,t,Y;Y=function(Y){function q(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}q(Y=Y?Y._modules:{},"Core/Axis/Color/ColorAxisComposition.js",[Y["Core/Color/Color.js"],Y["Core/Utilities.js"]],function(O,U){var P,G=O.parse,Z=U.addEvent,$=U.extend,W=U.merge,V=U.pick,R=U.splat;return function(k){function E(){var b=this,d=this.options;this.colorAxis=[],d.colorAxis&&(d.colorAxis=R(d.colorAxis),d.colorAxis.forEach(function(u,a){u.index=a,new I(b,u)}))}function w(b){var n,o,d=this,u=function(m){-1!==(m=b.allItems.indexOf(m))&&(d.destroyItem(b.allItems[m]),b.allItems.splice(m,1))},a=[];for((this.chart.colorAxis||[]).forEach(function(m){(n=m.options)&&n.showInLegend&&(n.dataClasses&&n.visible?a=a.concat(m.getDataClassLegendSymbols()):n.visible&&a.push(m),m.series.forEach(function(_){(!_.options.showInLegend||n.dataClasses)&&("point"===_.options.legendType?_.points.forEach(function(B){u(B)}):u(_))}))}),o=a.length;o--;)b.allItems.unshift(a[o])}function T(b){b.visible&&b.item.legendColor&&b.item.legendItem.symbol.attr({fill:b.item.legendColor})}function y(){var b=this.chart.colorAxis;b&&b.forEach(function(d,u,a){d.update({},a)})}function A(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function g(){var b=this.axisTypes;b?-1===b.indexOf("colorAxis")&&b.push("colorAxis"):this.axisTypes=["colorAxis"]}function v(b){var d=this,u=b?"show":"hide";d.visible=d.options.visible=!!b,["graphic","dataLabel"].forEach(function(a){d[a]&&d[a][u]()}),this.series.buildKDTree()}function S(){var b=this,d=this.options.nullColor,u=this.colorAxis,a=this.colorKey;(this.data.length?this.data:this.points).forEach(function(n){var o=n.getNestedProperty(a);(o=n.options.color||(n.isNull||null===n.value?d:u&&typeof o<"u"?u.toColor(o,n):n.color||b.color))&&n.color!==o&&(n.color=o,"point"===b.options.legendType&&n.legendItem&&n.legendItem.label&&b.chart.legend.colorizeItem(n,n.visible))})}function j(){this.elem.attr("fill",G(this.start).tweenTo(G(this.end),this.pos),void 0,!0)}function M(){this.elem.attr("stroke",G(this.start).tweenTo(G(this.end),this.pos),void 0,!0)}var I,D=[];k.compose=function(b,d,u,a,n){I||(I=b),-1===D.indexOf(d)&&(D.push(d),(b=d.prototype).collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],Z(d,"afterGetAxes",E),function N(b){var d=b.prototype.createAxis;b.prototype.createAxis=function(u,a){if("colorAxis"!==u)return d.apply(this,arguments);var n=new I(this,W(a.axis,{index:this[u].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(o){o.series=[]}),this.series.forEach(function(o){o.bindAxes(),o.isDirtyData=!0}),V(a.redraw,!0)&&this.redraw(a.animation),n}}(d)),-1===D.indexOf(u)&&(D.push(u),(d=u.prototype).fillSetter=j,d.strokeSetter=M),-1===D.indexOf(a)&&(D.push(a),Z(a,"afterGetAllItems",w),Z(a,"afterColorizeItem",T),Z(a,"afterUpdate",y)),-1===D.indexOf(n)&&(D.push(n),$(n.prototype,{optionalAxis:"colorAxis",translateColors:S}),$(n.prototype.pointClass.prototype,{setVisible:v}),Z(n,"afterTranslate",A,{order:1}),Z(n,"bindAxes",g))},k.pointSetVisible=v}(P||(P={})),P}),q(Y,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}}),q(Y,"Core/Axis/Color/ColorAxis.js",[Y["Core/Axis/Axis.js"],Y["Core/Color/Color.js"],Y["Core/Axis/Color/ColorAxisComposition.js"],Y["Core/Axis/Color/ColorAxisDefaults.js"],Y["Core/Globals.js"],Y["Core/Legend/LegendSymbol.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R){var g,P=this&&this.__extends||(g=function(v,S){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,j){N.__proto__=j}||function(N,j){for(var M in j)j.hasOwnProperty(M)&&(N[M]=j[M])})(v,S)},function(v,S){function N(){this.constructor=v}g(v,S),v.prototype=null===S?Object.create(S):(N.prototype=S.prototype,new N)}),k=U.parse,E=V.series,w=R.extend,T=R.isNumber,y=R.merge,A=R.pick;return U=function(g){function v(S,N){var j=g.call(this,S,N)||this;return j.beforePadding=!1,j.chart=void 0,j.coll="colorAxis",j.dataClasses=void 0,j.name="",j.options=void 0,j.stops=void 0,j.visible=!0,j.init(S,N),j}return P(v,g),v.compose=function(S,N,j,M){G.compose(v,S,N,j,M)},v.prototype.init=function(S,N){var j=S.options.legend||{},M=N.layout?"vertical"!==N.layout:"vertical"!==j.layout,D=N.visible;j=y(v.defaultColorAxisOptions,N,{showEmpty:!1,title:null,visible:j.enabled&&!1!==D}),this.coll="colorAxis",this.side=N.side||M?2:1,this.reversed=N.reversed||!M,this.opposite=!M,g.prototype.init.call(this,S,j),this.userOptions.visible=D,N.dataClasses&&this.initDataClasses(N),this.initStops(),this.horiz=M,this.zoomEnabled=!1},v.prototype.initDataClasses=function(S){var I,N=this.chart,j=this.legendItem=this.legendItem||{},M=S.dataClasses.length,D=this.options,b=0,d=N.options.chart.colorCount;this.dataClasses=I=[],j.labels=[],(S.dataClasses||[]).forEach(function(u,a){u=y(u),I.push(u),(N.styledMode||!u.color)&&("category"===D.dataClassColor?(N.styledMode||(a=N.options.colors,d=a.length,u.color=a[b]),u.colorIndex=b,++b===d&&(b=0)):u.color=k(D.minColor).tweenTo(k(D.maxColor),2>M?.5:a/(M-1)))})},v.prototype.hasData=function(){return!!(this.tickPositions||[]).length},v.prototype.setTickPositions=function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},v.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]],this.stops.forEach(function(S){S.color=k(S[1])})},v.prototype.setOptions=function(S){g.prototype.setOptions.call(this,S),this.options.crosshair=this.options.marker},v.prototype.setAxisSize=function(){var M,D,S=this.legendItem&&this.legendItem.symbol,N=this.chart,j=N.options.legend||{};S?(this.left=j=S.attr("x"),this.top=M=S.attr("y"),this.width=D=S.attr("width"),this.height=S=S.attr("height"),this.right=N.chartWidth-j-D,this.bottom=N.chartHeight-M-S,this.len=this.horiz?D:S,this.pos=this.horiz?j:M):this.len=(this.horiz?j.symbolWidth:j.symbolHeight)||v.defaultLegendLength},v.prototype.normalizedValue=function(S){return this.logarithmic&&(S=this.logarithmic.log2lin(S)),1-(this.max-S)/(this.max-this.min||1)},v.prototype.toColor=function(S,N){var D,j=this.dataClasses,M=this.stops;if(j)for(D=j.length;D--;){var I=j[D],b=I.from;if(M=I.to,(typeof b>"u"||S>=b)&&(typeof M>"u"||S<=M)){var d=I.color;N&&(N.dataClass=D,N.colorIndex=I.colorIndex);break}}else{for(S=this.normalizedValue(S),D=M.length;D--&&!(S>M[D][0]););b=M[D]||M[D+1],S=1-((M=M[D+1]||b)[0]-S)/(M[0]-b[0]||1),d=b.color.tweenTo(M.color,S)}return d},v.prototype.getOffset=function(){var S=this.legendItem&&this.legendItem.group,N=this.chart.axisOffset[this.side];if(S){this.axisParent=S,g.prototype.getOffset.call(this);var j=this.chart.legend;j.allItems.forEach(function(M){M instanceof v&&M.drawLegendSymbol(j,M)}),j.render(),this.chart.getMargins(!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=N}},v.prototype.setLegendColor=function(){var S=this.reversed,N=S?1:0;S=S?0:1,N=this.horiz?[N,0,S,0]:[0,S,0,N],this.legendColor={linearGradient:{x1:N[0],y1:N[1],x2:N[2],y2:N[3]},stops:this.stops}},v.prototype.drawLegendSymbol=function(S,N){N=N.legendItem||{};var j=S.padding,M=S.options,D=A(M.itemDistance,10),I=this.horiz,b=A(M.symbolWidth,I?v.defaultLegendLength:12),d=A(M.symbolHeight,I?12:v.defaultLegendLength);M=A(M.labelPadding,I?16:30),this.setLegendColor(),N.symbol||(N.symbol=this.chart.renderer.rect(0,S.baseline-11,b,d).attr({zIndex:1}).add(N.group)),N.labelWidth=b+j+(I?D:this.options.labels.x+this.maxLabelLength),N.labelHeight=d+j+(I?M:0)},v.prototype.setState=function(S){this.series.forEach(function(N){N.setState(S)})},v.prototype.setVisible=function(){},v.prototype.getSeriesExtremes=function(){var j,S=this.series,N=S.length;for(this.dataMin=1/0,this.dataMax=-1/0;N--;){var M=S[N],D=M.colorKey=A(M.options.colorKey,M.colorKey,M.pointValKey,M.zoneAxis,"y"),I=M.pointArrayMap,b=M[D+"Min"]&&M[D+"Max"];if(M[D+"Data"])var d=M[D+"Data"];else if(I){d=[],I=I.indexOf(D);var u=M.yData;if(0<=I&&u)for(j=0;jI+b&&(d=I+b+2),N.plotX=d,N.plotY=this.len-d,g.prototype.drawCrosshair.call(this,S,N),N.plotX=M,N.plotY=D,this.cross&&!this.cross.addedToColorAxis&&j.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(j.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}},v.prototype.getPlotLinePath=function(S){var N=this.left,j=S.translatedValue,M=this.top;return T(j)?this.horiz?[["M",j-4,M-6],["L",j+4,M-6],["L",j,M],["Z"]]:[["M",N,j],["L",N-6,j+6],["L",N-6,j-6],["Z"]]:g.prototype.getPlotLinePath.call(this,S)},v.prototype.update=function(S,N){var j=this.chart.legend;this.series.forEach(function(M){M.isDirtyData=!0}),(S.dataClasses&&j.allItems||this.dataClasses)&&this.destroyItems(),g.prototype.update.call(this,S,N),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),j.colorizeItem(this,!0))},v.prototype.destroyItems=function(){var S=this.chart,N=this.legendItem||{};if(N.label)S.legend.destroyItem(this);else if(N.labels){var j=0;for(N=N.labels;j"u"?d="< ":typeof o>"u"&&(d="> "),typeof n<"u"&&(d+=m(n,D)+I),typeof n<"u"&&typeof o<"u"&&(d+=" - "),typeof o<"u"&&(d+=m(o,D)+I),j.push(w({chart:N,name:d,options:{},drawLegendSymbol:W.drawRectangle,visible:!0,isDataClass:!0,setState:function(B){for(var X=0,it=b(a);X"},states:{hover:{halo:!1,brightness:.2}}}),N}(w),W(V.prototype,{axisTypes:U.seriesMembers.axisTypes,colorKey:U.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:U.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:G,specialGroup:"group",trackerGroups:U.seriesMembers.trackerGroups,alignDataLabel:E.prototype.alignDataLabel,colorAttribs:U.seriesMembers.colorAttribs,drawLegendSymbol:Z.drawRectangle,getSymbol:P.prototype.getSymbol}),U.compose(V),$.registerSeriesType("heatmap",V),V}),q(Y,"masters/modules/heatmap.src.js",[Y["Core/Globals.js"],Y["Core/Axis/Color/ColorAxis.js"]],function(O,U){O.ColorAxis=U,U.compose(O.Chart,O.Fx,O.Legend,O.Series)})},Jt.exports?(Y.default=Y,Jt.exports=Y):(pt=[ht(3470)],void 0!==(t=function(q){return Y(q),Y.Highcharts=q,Y}.apply($t,pt))&&(Jt.exports=t))},780:(Jt,$t,ht)=>{var pt,t,Y;Y=function(Y){function q(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}q(Y=Y?Y._modules:{},"Core/Axis/Color/ColorAxisComposition.js",[Y["Core/Color/Color.js"],Y["Core/Utilities.js"]],function(O,U){var P,G=O.parse,Z=U.addEvent,$=U.extend,W=U.merge,V=U.pick,R=U.splat;return function(k){function E(){var b=this,d=this.options;this.colorAxis=[],d.colorAxis&&(d.colorAxis=R(d.colorAxis),d.colorAxis.forEach(function(u,a){u.index=a,new I(b,u)}))}function w(b){var n,o,d=this,u=function(m){-1!==(m=b.allItems.indexOf(m))&&(d.destroyItem(b.allItems[m]),b.allItems.splice(m,1))},a=[];for((this.chart.colorAxis||[]).forEach(function(m){(n=m.options)&&n.showInLegend&&(n.dataClasses&&n.visible?a=a.concat(m.getDataClassLegendSymbols()):n.visible&&a.push(m),m.series.forEach(function(_){(!_.options.showInLegend||n.dataClasses)&&("point"===_.options.legendType?_.points.forEach(function(B){u(B)}):u(_))}))}),o=a.length;o--;)b.allItems.unshift(a[o])}function T(b){b.visible&&b.item.legendColor&&b.item.legendItem.symbol.attr({fill:b.item.legendColor})}function y(){var b=this.chart.colorAxis;b&&b.forEach(function(d,u,a){d.update({},a)})}function A(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function g(){var b=this.axisTypes;b?-1===b.indexOf("colorAxis")&&b.push("colorAxis"):this.axisTypes=["colorAxis"]}function v(b){var d=this,u=b?"show":"hide";d.visible=d.options.visible=!!b,["graphic","dataLabel"].forEach(function(a){d[a]&&d[a][u]()}),this.series.buildKDTree()}function S(){var b=this,d=this.options.nullColor,u=this.colorAxis,a=this.colorKey;(this.data.length?this.data:this.points).forEach(function(n){var o=n.getNestedProperty(a);(o=n.options.color||(n.isNull||null===n.value?d:u&&typeof o<"u"?u.toColor(o,n):n.color||b.color))&&n.color!==o&&(n.color=o,"point"===b.options.legendType&&n.legendItem&&n.legendItem.label&&b.chart.legend.colorizeItem(n,n.visible))})}function j(){this.elem.attr("fill",G(this.start).tweenTo(G(this.end),this.pos),void 0,!0)}function M(){this.elem.attr("stroke",G(this.start).tweenTo(G(this.end),this.pos),void 0,!0)}var I,D=[];k.compose=function(b,d,u,a,n){I||(I=b),-1===D.indexOf(d)&&(D.push(d),(b=d.prototype).collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],Z(d,"afterGetAxes",E),function N(b){var d=b.prototype.createAxis;b.prototype.createAxis=function(u,a){if("colorAxis"!==u)return d.apply(this,arguments);var n=new I(this,W(a.axis,{index:this[u].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(o){o.series=[]}),this.series.forEach(function(o){o.bindAxes(),o.isDirtyData=!0}),V(a.redraw,!0)&&this.redraw(a.animation),n}}(d)),-1===D.indexOf(u)&&(D.push(u),(d=u.prototype).fillSetter=j,d.strokeSetter=M),-1===D.indexOf(a)&&(D.push(a),Z(a,"afterGetAllItems",w),Z(a,"afterColorizeItem",T),Z(a,"afterUpdate",y)),-1===D.indexOf(n)&&(D.push(n),$(n.prototype,{optionalAxis:"colorAxis",translateColors:S}),$(n.prototype.pointClass.prototype,{setVisible:v}),Z(n,"afterTranslate",A,{order:1}),Z(n,"bindAxes",g))},k.pointSetVisible=v}(P||(P={})),P}),q(Y,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}}),q(Y,"Core/Axis/Color/ColorAxis.js",[Y["Core/Axis/Axis.js"],Y["Core/Color/Color.js"],Y["Core/Axis/Color/ColorAxisComposition.js"],Y["Core/Axis/Color/ColorAxisDefaults.js"],Y["Core/Globals.js"],Y["Core/Legend/LegendSymbol.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R){var g,P=this&&this.__extends||(g=function(v,S){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,j){N.__proto__=j}||function(N,j){for(var M in j)j.hasOwnProperty(M)&&(N[M]=j[M])})(v,S)},function(v,S){function N(){this.constructor=v}g(v,S),v.prototype=null===S?Object.create(S):(N.prototype=S.prototype,new N)}),k=U.parse,E=V.series,w=R.extend,T=R.isNumber,y=R.merge,A=R.pick;return U=function(g){function v(S,N){var j=g.call(this,S,N)||this;return j.beforePadding=!1,j.chart=void 0,j.coll="colorAxis",j.dataClasses=void 0,j.name="",j.options=void 0,j.stops=void 0,j.visible=!0,j.init(S,N),j}return P(v,g),v.compose=function(S,N,j,M){G.compose(v,S,N,j,M)},v.prototype.init=function(S,N){var j=S.options.legend||{},M=N.layout?"vertical"!==N.layout:"vertical"!==j.layout,D=N.visible;j=y(v.defaultColorAxisOptions,N,{showEmpty:!1,title:null,visible:j.enabled&&!1!==D}),this.coll="colorAxis",this.side=N.side||M?2:1,this.reversed=N.reversed||!M,this.opposite=!M,g.prototype.init.call(this,S,j),this.userOptions.visible=D,N.dataClasses&&this.initDataClasses(N),this.initStops(),this.horiz=M,this.zoomEnabled=!1},v.prototype.initDataClasses=function(S){var I,N=this.chart,j=this.legendItem=this.legendItem||{},M=S.dataClasses.length,D=this.options,b=0,d=N.options.chart.colorCount;this.dataClasses=I=[],j.labels=[],(S.dataClasses||[]).forEach(function(u,a){u=y(u),I.push(u),(N.styledMode||!u.color)&&("category"===D.dataClassColor?(N.styledMode||(a=N.options.colors,d=a.length,u.color=a[b]),u.colorIndex=b,++b===d&&(b=0)):u.color=k(D.minColor).tweenTo(k(D.maxColor),2>M?.5:a/(M-1)))})},v.prototype.hasData=function(){return!!(this.tickPositions||[]).length},v.prototype.setTickPositions=function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},v.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]],this.stops.forEach(function(S){S.color=k(S[1])})},v.prototype.setOptions=function(S){g.prototype.setOptions.call(this,S),this.options.crosshair=this.options.marker},v.prototype.setAxisSize=function(){var M,D,S=this.legendItem&&this.legendItem.symbol,N=this.chart,j=N.options.legend||{};S?(this.left=j=S.attr("x"),this.top=M=S.attr("y"),this.width=D=S.attr("width"),this.height=S=S.attr("height"),this.right=N.chartWidth-j-D,this.bottom=N.chartHeight-M-S,this.len=this.horiz?D:S,this.pos=this.horiz?j:M):this.len=(this.horiz?j.symbolWidth:j.symbolHeight)||v.defaultLegendLength},v.prototype.normalizedValue=function(S){return this.logarithmic&&(S=this.logarithmic.log2lin(S)),1-(this.max-S)/(this.max-this.min||1)},v.prototype.toColor=function(S,N){var D,j=this.dataClasses,M=this.stops;if(j)for(D=j.length;D--;){var I=j[D],b=I.from;if(M=I.to,(typeof b>"u"||S>=b)&&(typeof M>"u"||S<=M)){var d=I.color;N&&(N.dataClass=D,N.colorIndex=I.colorIndex);break}}else{for(S=this.normalizedValue(S),D=M.length;D--&&!(S>M[D][0]););b=M[D]||M[D+1],S=1-((M=M[D+1]||b)[0]-S)/(M[0]-b[0]||1),d=b.color.tweenTo(M.color,S)}return d},v.prototype.getOffset=function(){var S=this.legendItem&&this.legendItem.group,N=this.chart.axisOffset[this.side];if(S){this.axisParent=S,g.prototype.getOffset.call(this);var j=this.chart.legend;j.allItems.forEach(function(M){M instanceof v&&M.drawLegendSymbol(j,M)}),j.render(),this.chart.getMargins(!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=N}},v.prototype.setLegendColor=function(){var S=this.reversed,N=S?1:0;S=S?0:1,N=this.horiz?[N,0,S,0]:[0,S,0,N],this.legendColor={linearGradient:{x1:N[0],y1:N[1],x2:N[2],y2:N[3]},stops:this.stops}},v.prototype.drawLegendSymbol=function(S,N){N=N.legendItem||{};var j=S.padding,M=S.options,D=A(M.itemDistance,10),I=this.horiz,b=A(M.symbolWidth,I?v.defaultLegendLength:12),d=A(M.symbolHeight,I?12:v.defaultLegendLength);M=A(M.labelPadding,I?16:30),this.setLegendColor(),N.symbol||(N.symbol=this.chart.renderer.rect(0,S.baseline-11,b,d).attr({zIndex:1}).add(N.group)),N.labelWidth=b+j+(I?D:this.options.labels.x+this.maxLabelLength),N.labelHeight=d+j+(I?M:0)},v.prototype.setState=function(S){this.series.forEach(function(N){N.setState(S)})},v.prototype.setVisible=function(){},v.prototype.getSeriesExtremes=function(){var j,S=this.series,N=S.length;for(this.dataMin=1/0,this.dataMax=-1/0;N--;){var M=S[N],D=M.colorKey=A(M.options.colorKey,M.colorKey,M.pointValKey,M.zoneAxis,"y"),I=M.pointArrayMap,b=M[D+"Min"]&&M[D+"Max"];if(M[D+"Data"])var d=M[D+"Data"];else if(I){d=[],I=I.indexOf(D);var u=M.yData;if(0<=I&&u)for(j=0;jI+b&&(d=I+b+2),N.plotX=d,N.plotY=this.len-d,g.prototype.drawCrosshair.call(this,S,N),N.plotX=M,N.plotY=D,this.cross&&!this.cross.addedToColorAxis&&j.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(j.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}},v.prototype.getPlotLinePath=function(S){var N=this.left,j=S.translatedValue,M=this.top;return T(j)?this.horiz?[["M",j-4,M-6],["L",j+4,M-6],["L",j,M],["Z"]]:[["M",N,j],["L",N-6,j+6],["L",N-6,j-6],["Z"]]:g.prototype.getPlotLinePath.call(this,S)},v.prototype.update=function(S,N){var j=this.chart.legend;this.series.forEach(function(M){M.isDirtyData=!0}),(S.dataClasses&&j.allItems||this.dataClasses)&&this.destroyItems(),g.prototype.update.call(this,S,N),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),j.colorizeItem(this,!0))},v.prototype.destroyItems=function(){var S=this.chart,N=this.legendItem||{};if(N.label)S.legend.destroyItem(this);else if(N.labels){var j=0;for(N=N.labels;j"u"?d="< ":typeof o>"u"&&(d="> "),typeof n<"u"&&(d+=m(n,D)+I),typeof n<"u"&&typeof o<"u"&&(d+=" - "),typeof o<"u"&&(d+=m(o,D)+I),j.push(w({chart:N,name:d,options:{},drawLegendSymbol:W.drawRectangle,visible:!0,isDataClass:!0,setState:function(B){for(var X=0,it=b(a);X=j.x+j.width||M.x+M.width<=j.x||M.y>=j.y+j.height||M.y+M.height<=j.y)){var D=-M.y-M.height+j.y-5;j=j.y+j.height-M.y+5,y.navButtonsGroup.attr({translateY:"bottom"===(g.buttonOptions&&g.buttonOptions.verticalAlign)?D:j})}}},A.hasLoaded||V(A,"render",T)),this.updateEvents(g)},$.prototype.updateEvents=function(T){var y=this.chart;w(T.enableDoubleClickZoom,T.enabled)||T.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||V(y.container,"dblclick",function(A){y.pointer.onContainerDblClick(A)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),w(T.enableMouseWheelZoom,T.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||V(y.container,void 0!==W.onwheel?"wheel":void 0!==W.onmousewheel?"mousewheel":"DOMMouseScroll",function(A){return y.pointer.inClass(A.target,"highcharts-no-mousewheel")||(y.pointer.onContainerMouseWheel(A),Z(A)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},R(O.prototype,{fitToBox:function(T,y){return[["x","width"],["y","height"]].forEach(function(A){var g=A[0];A=A[1],T[g]+T[A]>y[g]+y[A]&&(T[A]>y[A]?(T[A]=y[A],T[g]=y[g]):T[g]=y[g]+y[A]-T[A]),T[A]>y[A]&&(T[A]=y[A]),T[g]V&&k.isInsidePlot(P.chartX-k.plotLeft,P.chartY-k.plotTop)&&k.mapView&&k.mapView.zoomBy((k.options.mapNavigation.mouseWheelSensitivity-1)*-E,void 0,[P.chartX,P.chartY],!(1>Math.abs(E))&&void 0)}}),U(O.prototype,"zoomOption",function(P){var k=this.chart.options.mapNavigation;$(k.enableTouchZoom,k.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),P.apply(this,[].slice.call(arguments,1))}),U(O.prototype,"pinchTranslate",function(P,k,E,w,T,y,A){P.call(this,k,E,w,T,y,A),"map"===this.chart.options.chart.type&&this.hasZoom&&(P=w.scaleX>w.scaleY,this.pinchTranslateDirection(!P,k,E,w,T,y,A,P?w.scaleX:w.scaleY))})}),q(Y,"Series/ColorMapComposition.js",[Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U){var W,G=O.seriesTypes.column.prototype,Z=U.addEvent,$=U.defined;return function(V){function R(k){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:k&&"hover"===k.state?1:0})}var P=[];V.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},V.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(k){var E={};return!$(k.color)||k.state&&"normal"!==k.state||(E[this.colorProp||"fill"]=k.color),E},pointAttribs:G.pointAttribs},V.compose=function(k){var E=k.prototype.pointClass;return-1===P.indexOf(E)&&(P.push(E),Z(E,"afterSetState",R)),k}}(W||(W={})),W}),q(Y,"Maps/MapSymbols.js",[Y["Core/Renderer/SVG/SVGRenderer.js"]],function(O){function U(G,Z,$,W,V,R,P,k){return[["M",G+V,Z],["L",G+$-R,Z],["C",G+$-R/2,Z,G+$,Z+R/2,G+$,Z+R],["L",G+$,Z+W-P],["C",G+$,Z+W-P/2,G+$-P/2,Z+W,G+$-P,Z+W],["L",G+k,Z+W],["C",G+k/2,Z+W,G,Z+W-k/2,G,Z+W-k],["L",G,Z+V],["C",G,Z+V/2,G+V/2,Z,G+V,Z],["Z"]]}return(O=O.prototype.symbols).bottombutton=function(G,Z,$,W,V){return U(G-1,Z-1,$,W,0,0,V=V&&V.r||0,V)},O.topbutton=function(G,Z,$,W,V){return U(G-1,Z-1,$,W,V=V&&V.r||0,V,0,0)},O}),q(Y,"Core/Chart/MapChart.js",[Y["Core/Chart/Chart.js"],Y["Core/Defaults.js"],Y["Core/Renderer/SVG/SVGRenderer.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var P,$=this&&this.__extends||(P=function(k,E){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var y in T)T.hasOwnProperty(y)&&(w[y]=T[y])})(k,E)},function(k,E){function w(){this.constructor=k}P(k,E),k.prototype=null===E?Object.create(E):(w.prototype=E.prototype,new w)}),W=U.getOptions,V=Z.merge,R=Z.pick;return O=function(P){function k(){return null!==P&&P.apply(this,arguments)||this}return $(k,P),k.prototype.init=function(E,w){var T=W().credits;E=V({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:R(T.mapText,' \xa9 {geojson.copyrightShort}'),mapTextFull:R(T.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},E),P.prototype.init.call(this,E,w)},k}(O),function(P){P.maps={},P.mapChart=function(k,E,w){return new P(k,E,w)},P.splitPath=function(k){return"string"==typeof k&&(k=(k=k.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(E){return/[A-za-z]/.test(E)?E:parseFloat(E)})),G.prototype.pathToSegments(k)}}(O||(O={})),O}),q(Y,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(O){var W,U=-Number.MAX_VALUE,G=Number.MAX_VALUE,Z=-Number.MAX_VALUE,$=Number.MAX_VALUE;if(O.forEach(function(V){var R=V[V.length-2];V=V[V.length-1],"number"==typeof R&&"number"==typeof V&&(G=Math.min(G,R),U=Math.max(U,R),$=Math.min($,V),Z=Math.max(Z,V),W=!0)}),W)return{x1:G,y1:$,x2:U,y2:Z}},pointInPolygon:function(O,U){var G,Z=!1,$=O.x,W=O.y;for(O=0,G=U.length-1;OW!=U[G][1]>W&&$<(U[G][0]-U[O][0])*(W-U[O][1])/(U[G][1]-U[O][1])+U[O][0]&&(Z=!Z);return Z}}}),q(Y,"Series/Map/MapPoint.js",[Y["Series/ColorMapComposition.js"],Y["Maps/MapUtilities.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var k,$=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),W=U.boundsFromPath,V=Z.extend,R=Z.isNumber,P=Z.pick;return U=function(k){function E(){var w=null!==k&&k.apply(this,arguments)||this;return w.options=void 0,w.path=void 0,w.series=void 0,w}return $(E,k),E.getProjectedPath=function(w,T){return w.projectedPath||(T&&w.geometry?(T.hasCoordinates=!0,w.projectedPath=T.path(w.geometry)):w.projectedPath=w.path),w.projectedPath||[]},E.prototype.applyOptions=function(w,T){var y=this.series;return w=k.prototype.applyOptions.call(this,w,T),T=y.joinBy,y.mapData&&y.mapMap&&((T=typeof(T=k.prototype.getNestedProperty.call(w,T[1]))<"u"&&y.mapMap[T])?V(w,T):-1!==y.pointArrayMap.indexOf("value")&&(w.value=w.value||null)),w},E.prototype.getProjectedBounds=function(w){w=E.getProjectedPath(this,w),w=W(w);var T=this.properties;if(w){var y=T&&T["hc-middle-x"];return T=T&&T["hc-middle-y"],w.midX=w.x1+(w.x2-w.x1)*P(this.middleX,R(y)?y:.5),y=P(this.middleY,R(T)?T:.5),this.geometry||(y=1-y),w.midY=w.y2-(w.y2-w.y1)*y,w}},E.prototype.onMouseOver=function(w){Z.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?k.prototype.onMouseOver.call(this,w):this.series.onMouseOut(w)},E.prototype.setVisible=function(w){var T=w?"show":"hide";this.visible=this.options.visible=!!w,this.dataLabel&&this.dataLabel[T](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},E.prototype.zoomTo=function(){var w=this.series.chart,T=w.mapView,y=this.bounds;if(T&&y){var A=R(this.insetIndex)&&T.insets[this.insetIndex];if(A){var g=A.projectedUnitsToPixels({x:y.x1,y:y.y1});y=A.projectedUnitsToPixels({x:y.x2,y:y.y2}),g=T.pixelsToProjectedUnits({x:g.x,y:g.y}),y=T.pixelsToProjectedUnits({x:y.x,y:y.y}),y={x1:g.x,y1:g.y,x2:y.x,y2:y.y}}T.fitToBounds(y,void 0,!1),this.series.isDirty=!0,w.redraw()}},E}(G.seriesTypes.scatter.prototype.pointClass),V(U.prototype,{dataLabelOnNull:O.pointMembers.dataLabelOnNull,moveToTopOnHover:O.pointMembers.moveToTopOnHover,isValid:O.pointMembers.isValid}),U}),q(Y,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}}),q(Y,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),q(Y,"Extensions/GeoJSON.js",[Y["Core/Chart/Chart.js"],Y["Core/FormatUtilities.js"],Y["Core/Globals.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){function $(w,T){if(T||(T=Object.keys(w.objects)[0]),(T=w.objects[T])["hc-decoded-geojson"])return T["hc-decoded-geojson"];var y=w.arcs;if(w.transform){var A=w.transform,g=A.scale,v=A.translate;y=w.arcs.map(function(N){var j=0,M=0;return N.map(function(D){return(D=D.slice())[0]=(j+=D[0])*g[0]+v[0],D[1]=(M+=D[1])*g[1]+v[1],D})})}var S=function(N){return"number"==typeof N[0]?N.reduce(function(j,M,D){var I=0>M?y[~M]:y[M];return 0>M?(I=I.slice(0,0===D?I.length:I.length-1)).reverse():D&&(I=I.slice(1)),j.concat(I)},[]):N.map(S)};return A=T.geometries.map(function(N){return{type:"Feature",properties:N.properties,geometry:{type:N.type,coordinates:N.coordinates||S(N.arcs)}}}),w={type:"FeatureCollection",copyright:w.copyright,copyrightShort:w.copyrightShort,copyrightUrl:w.copyrightUrl,features:A,"hc-recommended-mapview":T["hc-recommended-mapview"],bbox:w.bbox,title:w.title},T["hc-decoded-geojson"]=w}function W(w,T,y){void 0===T&&(T="map");var A=[];return(w="Topology"===w.type?$(w):w).features.forEach(function(g){var N,v=g.geometry||{},S=v.type;if(v=v.coordinates,g=g.properties,("map"!==T&&"mapbubble"!==T||"Polygon"!==S&&"MultiPolygon"!==S)&&("mapline"!==T||"LineString"!==S&&"MultiLineString"!==S)?"mappoint"===T&&"Point"===S&&v.length&&(N={geometry:{coordinates:v,type:S}}):v.length&&(N={geometry:{coordinates:v,type:S}}),N){S=g&&(g.name||g.NAME),v=g&&g.lon;var j=g&&g.lat;A.push(k(N,{lat:"number"==typeof j?j:void 0,lon:"number"==typeof v?v:void 0,name:"string"==typeof S?S:void 0,properties:g}))}}),y&&w.copyrightShort&&(y.chart.mapCredits=V(y.chart.options.credits.mapText,{geojson:w}),y.chart.mapCreditsFull=V(y.chart.options.credits.mapTextFull,{geojson:w})),A}var V=U.format,R=G.win,P=Z.error,k=Z.extend,E=Z.merge;return U=Z.wrap,O.prototype.transformFromLatLon=function(w,T){var y=this.options.chart.proj4||R.proj4;if(y){var A=T.jsonmarginX;A=void 0===A?0:A;var g=T.jsonmarginY;g=void 0===g?0:g;var v=T.jsonres;v=void 0===v?1:v;var S=T.scale;S=void 0===S?1:S;var N=T.xoffset;N=void 0===N?0:N;var j=T.xpan;j=void 0===j?0:j;var M=T.yoffset;M=void 0===M?0:M;var D=T.ypan;D=void 0===D?0:D,w=y(T.crs,[w.lon,w.lat]),y=T.cosAngle||T.rotation&&Math.cos(T.rotation);var I=T.sinAngle||T.rotation&&Math.sin(T.rotation);return{x:(((T=T.rotation?[w[0]*y+w[1]*I,-w[0]*I+w[1]*y]:w)[0]-N)*S+j)*v+A,y:-(((M-T[1])*S+D)*v-g)}}P(21,!1,this)},O.prototype.transformToLatLon=function(w,T){var y=this.options.chart.proj4||R.proj4;if(y){if(null!==w.y){var A=T.jsonmarginX,g=T.jsonmarginY,v=T.jsonres;v=void 0===v?1:v;var S=T.scale;S=void 0===S?1:S;var N=T.xoffset,j=T.xpan,M=T.yoffset,D=T.ypan;return w={x:((w.x-(void 0===A?0:A))/v-(void 0===j?0:j))/S+(void 0===N?0:N),y:((w.y-(void 0===g?0:g))/v+(void 0===D?0:D))/S+(void 0===M?0:M)},A=T.cosAngle||T.rotation&&Math.cos(T.rotation),g=T.sinAngle||T.rotation&&Math.sin(T.rotation),{lat:(T=y(T.crs,"WGS84",T.rotation?{x:w.x*A+w.y*-g,y:w.x*g+w.y*A}:w)).y,lon:T.x}}}else P(21,!1,this)},O.prototype.fromPointToLatLon=function(w){return this.mapView&&this.mapView.projectedUnitsToLonLat(w)},O.prototype.fromLatLonToPoint=function(w){return this.mapView&&this.mapView.lonLatToProjectedUnits(w)},U(O.prototype,"addCredits",function(w,T){T=E(!0,this.options.credits,T),this.mapCredits&&(T.href=null),w.call(this,T),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),G.geojson=W,G.topo2geo=$,{geojson:W,topo2geo:$}}),q(Y,"Core/Geometry/PolygonClip.js",[],function(){var G,Z,O=function(Z,$,W){return($[0]-Z[0])*(W[1]-Z[1])>($[1]-Z[1])*(W[0]-Z[0])},U=function(Z,$,W,V){var R=[Z[0]-$[0],Z[1]-$[1]],P=[W[0]-V[0],W[1]-V[1]];return Z=Z[0]*$[1]-Z[1]*$[0],W=W[0]*V[1]-W[1]*V[0],V=1/(R[0]*P[1]-R[1]*P[0]),(R=[(Z*P[0]-W*R[0])*V,(Z*P[1]-W*R[1])*V]).isIntersection=!0,R};return(Z=G||(G={})).clipLineString=function($,W){var V=[];for($=Z.clipPolygon($,W,!1),W=1;W<$.length;W++)$[W].isIntersection&&$[W-1].isIntersection&&(V.push($.splice(0,W)),W=0),W===$.length-1&&V.push($);return V},Z.clipPolygon=function($,W,V){void 0===V&&(V=!0);for(var P,k,R=W[W.length-1],E=$,w=0;wMath.abs($)&&($=1e-10*(O($)||1)),this.n=$,this.c=W*Math.pow(Math.tan((G+R)/2),$)/$}return Z.prototype.forward=function($){var W=$[0]*U,V=this.c,R=this.n,P=this.projectedBounds;$=$[1]*U,0G-1e-6&&($=G-1e-6);var k=V/Math.pow(Math.tan((G+$)/2),R);return V=[$=k*Math.sin(R*W)*63.78137,W=63.78137*(V-k*Math.cos(R*W))],P&&($P.x2||WP.y2)&&(V.outside=!0),V},Z.prototype.inverse=function($){var W=$[0]/63.78137,V=this.c,R=this.n;$=V-$[1]/63.78137;var P=O(R)*Math.sqrt(W*W+$*$),k=Math.atan2(W,Math.abs($))*O($);return 0>$*R&&(k-=Math.PI*O(W)*O($)),[k/R/U,(2*Math.atan(Math.pow(V/P,1/R))-G)/U]},Z}()}),q(Y,"Maps/Projections/EqualEarth.js",[],function(){var O=Math.sqrt(3)/2;return function(){function U(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return U.prototype.forward=function(G){var Z=Math.PI/180,$=Math.asin(O*Math.sin(G[1]*Z)),W=$*$,V=W*W*W;return[G[0]*Z*Math.cos($)*74.03120656864502/(O*(1.340264+3*-.081106*W+V*(7*893e-6+.034164*W))),74.03120656864502*$*(1.340264+-.081106*W+V*(893e-6+.003796*W))]},U.prototype.inverse=function(G){var Z=G[0]/74.03120656864502;G=G[1]/74.03120656864502;var V,$=180/Math.PI,W=G;for(V=0;12>V;++V){var R=W*W,P=R*R*R,k=W*(1.340264+-.081106*R+P*(893e-6+.003796*R))-G;if(W-=k/=R=1.340264+3*-.081106*R+P*(7*893e-6+.034164*R),1e-9>Math.abs(k))break}return[$*O*Z*(1.340264+3*-.081106*(R=W*W)+R*R*R*(7*893e-6+.034164*R))/Math.cos(W),$*Math.asin(Math.sin(W)/O)]},U}()}),q(Y,"Maps/Projections/Miller.js",[],function(){var O=Math.PI/4,U=Math.PI/180;return function(){function G(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return G.prototype.forward=function(Z){return[Z[0]*U*63.78137,79.7267125*Math.log(Math.tan(O+.4*Z[1]*U))]},G.prototype.inverse=function(Z){return[Z[0]/63.78137/U,2.5*(Math.atan(Math.exp(Z[1]/63.78137*.8))-O)/U]},G}()}),q(Y,"Maps/Projections/Orthographic.js",[],function(){var O=Math.PI/180;return function(){function U(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}return U.prototype.forward=function(G){var Z=G[0];return G=G[1]*O,G=[Math.cos(G)*Math.sin(Z*O)*63.78460826781007,63.78460826781007*Math.sin(G)],(-90>Z||90E&&(E+=360),180d;d+=w){var u=v((1-d)*I)/v(I),a=v(d*I)/v(I),n=u*g(N)*g(j)+a*g(M)*g(D),o=u*g(N)*v(j)+a*g(M)*v(D);u=A(u=u*v(N)+a*v(M),S(n*n+o*o)),n=A(o,n),b.push([n/P,u/P])}return y&&b.push(T),b},E.insertGreatCircles=function(w){for(var T=w.length-1;T--;)if(10=M!=N[j]>=M)return D=D[I]+(M-D[j])/(N[j]-D[j])*(N[I]-D[I]),j?[D,M]:[M,D]},S=w[0];return((T=v(w,0,T.x1))||(T=v(w,0,y)))&&(S=T,w[1]=T),((T=v(w,1,A))||(T=v(w,1,g)))&&(S=T),S},E.prototype.getRotator=function(w){var T=w[0]*P,y=(w[1]||0)*P;w=(w[2]||0)*P;var A=Math.cos(y),g=Math.sin(y),v=Math.cos(w),S=Math.sin(w);if(0!==T||0!==y||0!==w)return{forward:function(N){var j=N[0]*P+T,M=N[1]*P,D=Math.cos(M);return N=Math.cos(j)*D,j=Math.sin(j)*D,D=(M=Math.sin(M))*A+N*g,[Math.atan2(j*v-D*S,N*A-M*g)/P,Math.asin(D*v+j*S)/P]},inverse:function(N){var j=N[0]*P,M=N[1]*P,D=Math.cos(M);return N=Math.cos(j)*D,j=Math.sin(j)*D,D=(M=Math.sin(M))*v-j*S,[(Math.atan2(j*v+M*S,N*A+D*g)-T)/P,Math.asin(D*A-N*g)/P]}}},E.prototype.forward=function(w){return w},E.prototype.inverse=function(w){return w},E.prototype.cutOnAntimeridian=function(w,T){var y=[],A=[w];if(w.forEach(function(b,d){var u=w[d-1];if(!d){if(!T)return;u=w[w.length-1]}var a=u[0],n=b[0];(-90>a||90n||90a?1:-1,previousLonLat:u,lonLat:b}))}),y.length)if(T){if(y.length%2==1){var g=y.slice().sort(function(b,d){return Math.abs(d.lat)-Math.abs(b.lat)})[0];R(y,g)}for(var v=y.length-2;0<=v;){var S=y[v].i,N=k(180+1e-6*y[v].direction),j=k(180-1e-6*y[v].direction);(S=w.splice.apply(w,Z([S,y[v+1].i-S],E.greatCircle([N,y[v].lat],[N,y[v+1].lat],!0),!1))).push.apply(S,E.greatCircle([j,y[v+1].lat],[j,y[v].lat],!0)),A.push(S),v-=2}if(g)for(N=0;NM?-1:1)*this.maxLatitude;var D=k(180+1e-6*v),I=k(180-1e-6*v);for(M=E.greatCircle([D,M],[D,N],!0),D+=120*v;-180D;D+=120*v)M.push([D,N]);M.push.apply(M,E.greatCircle([I,N],[I,g.lat],!0)),j.splice.apply(j,Z([S,0],M,!1));break}}}else for(v=y.length;v--;)S=y[v].i,(S=w.splice(S,w.length,[k(180+1e-6*y[v].direction),y[v].lat])).unshift([k(180-1e-6*y[v].direction),y[v].lat]),A.push(S);return A},E.prototype.path=function(w){var I,T=this,y=this.bounds,A=this.def,g=this.rotator,v=[],S="Polygon"===w.type||"MultiPolygon"===w.type,N=this.hasGeoProjection,j=!A||!1!==A.antimeridianCutting,M=j?g:void 0,D=j&&A||this;y&&(I=[[y.x1,y.y1],[y.x2,y.y1],[y.x2,y.y2],[y.x1,y.y2]]);var b=function(d){var u=[d=d.map(function(a){if(j){M&&(a=M.forward(a));var n=a[0];1e-6>Math.abs(n-180)&&(n=180>n?179.999999:180.000001),a=[n,a[1]]}return a})];N&&(E.insertGreatCircles(d),j&&(u=T.cutOnAntimeridian(d,S))),u.forEach(function(a){if(!(2>a.length)){var n=!1,o=!1,m=function(at){n?v.push(["L",at[0],at[1]]):(v.push(["M",at[0],at[1]]),n=!0)},_=!1,B=!1,X=a.map(function(at){return(at=D.forward(at)).outside?_=!0:B=!0,at[1]===1/0?at[1]=1e10:at[1]===-1/0&&(at[1]=-1e10),at});if(j){if(S&&X.push(X[0]),_){if(!B)return;if(I)if(S)X=W(X,I);else if(y)return void $(X,I).forEach(function(at){n=!1,at.forEach(m)})}X.forEach(m)}else for(var it=0;ito+rt&&at>o&&(n[0]+=Math.min(et-rt-o,at-o)/L),z-stit+X&&st>it&&(n[1]-=Math.min(z-X-it,st-it)/L),this.center=this.projection.inverse(n),this.insets.forEach(function(H){H.options.field&&(H.hitZone=H.getHitZone(),H.playingField=H.getField())}),this.render()}g(this,"afterSetView"),m&&this.redraw(_)},a.prototype.projectedUnitsToPixels=function(n){var o=this.getScale(),m=this.projection.forward(this.center),_=this.playingField;return{x:_.x+_.width/2-o*(m[0]-n.x),y:_.y+_.height/2+o*(m[1]-n.y)}},a.prototype.pixelsToLonLat=function(n){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(n))},a.prototype.pixelsToProjectedUnits=function(n){var o=n.x;n=n.y;var m=this.getScale(),_=this.projection.forward(this.center),B=this.playingField;return{x:_[0]+(o-(B.x+B.width/2))/m,y:_[1]-(n-(B.y+B.height/2))/m}},a.prototype.setUpEvents=function(){var m,_,B,n=this,o=this.chart,X=function(it){var rt=o.pointer.pinchDown,L=n.projection,z=o.mouseDownX,et=o.mouseDownY;if(1===rt.length&&(z=rt[0].chartX,et=rt[0].chartY),"number"==typeof z&&"number"==typeof et){var at=""+z+",".concat(et),st=it.originalEvent;rt=st.chartX,st=st.chartY,at!==_&&(_=at,m=n.projection.forward(n.center),B=(n.projection.options.rotation||[0,0]).slice()),at=(at=L.def&&L.def.bounds)&&b(at,n.playingField)||-1/0,"Orthographic"===L.options.name&&(n.minZoom||1/0)<1.1*at?(L=440/(n.getScale()*Math.min(o.plotWidth,o.plotHeight)),B&&(z=(z-rt)*L-B[0],et=A(-B[1]-(et-st)*L,-80,80),rt=n.zoom,n.update({projection:{rotation:[-z,-et]}},!1),n.zoom=rt,o.redraw(!1))):S(rt)&&S(st)&&(L=n.getScale(),et=n.projection.inverse([m[0]+(z-rt)/L,m[1]-(et-st)/L*(n.projection.hasCoordinates?1:-1)]),n.setView(et,void 0,!0,!1)),it.preventDefault()}};y(o,"pan",X),y(o,"touchpan",X),y(o,"selection",function(it){if(it.resetSelection)n.zoomBy();else{var rt=it.x-o.plotLeft,L=it.y-o.plotTop,z=n.pixelsToProjectedUnits({x:rt,y:L}),et=z.y;z=z.x,rt=n.pixelsToProjectedUnits({x:rt+it.width,y:L+it.height}),n.fitToBounds({x1:z,y1:et,x2:rt.x,y2:rt.y},void 0,!0,!it.originalEvent.touches&&void 0),/^touch/.test(it.originalEvent.type)||o.showResetZoom(),it.preventDefault()}})},a.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},a.prototype.update=function(n,o,m){void 0===o&&(o=!0);var _=n.projection;_=_&&W.toString(_)!==W.toString(this.options.projection);var B=!1;M(!0,this.userOptions,n),M(!0,this.options,n),"insets"in n&&(this.insets.forEach(function(X){return X.destroy()}),this.insets.length=0,B=!0),(_||"fitToGeometry"in n)&&delete this.fitToGeometryCache,(_||B)&&(this.chart.series.forEach(function(X){var it=X.transformGroups;if(X.clearBounds&&X.clearBounds(),X.isDirty=!0,X.isDirtyData=!0,B&&it)for(;1=m.x1&&o.x<=m.x2&&o.y>=m.y1&&o.y<=m.y2&&_&&T(o,_))},n.prototype.render=function(){var o=this.chart,m=this.mapView,_=this.options,B=_.borderPath||_.field;if(B&&m.group){var X=!0;this.border||(this.border=o.renderer.path().addClass("highcharts-mapview-inset-border").add(m.group),X=!1),o.styledMode||this.border.attr({stroke:_.borderColor,"stroke-width":_.borderWidth});var it=Math.round(this.border.strokeWidth())%2/2,rt="mapBoundingBox"===_.relativeTo&&m.getMapBBox()||m.playingField;m=(B.coordinates||[]).reduce(function(L,z){return z.reduce(function(et,at,st){var H=at[0];return at=at[1],"percent"===_.units&&(H=o.plotLeft+I(H+"%",rt.width,rt.x),at=o.plotTop+I(at+"%",rt.height,rt.y)),H=Math.floor(H)+it,at=Math.floor(at)+it,et.push(0===st?["M",H,at]:["L",H,at]),et},L)},[]),this.border[X?"animate":"attr"]({d:m})}},n.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(o){return o()})},n.prototype.setUpEvents=function(){},n}(d);return y(Z,"afterInit",function(){this.mapView=new d(this,this.options.mapView)}),d}),q(Y,"Series/Map/MapSeries.js",[Y["Core/Animation/AnimationUtilities.js"],Y["Series/ColorMapComposition.js"],Y["Series/CenteredUtilities.js"],Y["Core/Globals.js"],Y["Core/Legend/LegendSymbol.js"],Y["Core/Chart/MapChart.js"],Y["Series/Map/MapPoint.js"],Y["Maps/MapView.js"],Y["Core/Series/Series.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Renderer/SVG/SVGRenderer.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P,k,E,w){var o,T=this&&this.__extends||(o=function(m,_){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,X){B.__proto__=X}||function(B,X){for(var it in X)X.hasOwnProperty(it)&&(B[it]=X[it])})(m,_)},function(m,_){function B(){this.constructor=m}o(m,_),m.prototype=null===_?Object.create(_):(B.prototype=_.prototype,new B)}),y=O.animObject;O=Z.noop;var A=W.splitPath,g=(W=k.seriesTypes).column,v=W.scatter;W=w.extend;var S=w.find,N=w.fireEvent,j=w.getNestedProperty,M=w.isArray,D=w.defined,I=w.isNumber,b=w.isObject,d=w.merge,u=w.objectEach,a=w.pick,n=w.splat;return w=function(o){function m(){var _=null!==o&&o.apply(this,arguments)||this;return _.chart=void 0,_.data=void 0,_.group=void 0,_.joinBy=void 0,_.options=void 0,_.points=void 0,_.processedData=[],_}return T(m,o),m.prototype.animate=function(_){var B=this.chart,X=this.group,it=y(this.options.animation);B.renderer.isSVG&&(_?X.attr({translateX:B.plotLeft+B.plotWidth/2,translateY:B.plotTop+B.plotHeight/2,scaleX:.001,scaleY:.001}):X.animate({translateX:B.plotLeft,translateY:B.plotTop,scaleX:1,scaleY:1},it))},m.prototype.animateDrilldown=function(_){var B=this.chart,X=this.group;B.renderer.isSVG&&(_?X.attr({translateX:B.plotLeft+B.plotWidth/2,translateY:B.plotTop+B.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(X.animate({translateX:B.plotLeft,translateY:B.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),B.drilldown&&B.drilldown.fadeInGroup(this.dataLabelsGroup)))},m.prototype.animateDrillupFrom=function(){var _=this.chart;_.renderer.isSVG&&this.group.animate({translateX:_.plotLeft+_.plotWidth/2,translateY:_.plotTop+_.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})},m.prototype.animateDrillupTo=function(_){g.prototype.animateDrillupTo.call(this,_)},m.prototype.clearBounds=function(){this.points.forEach(function(_){delete _.bounds,delete _.insetIndex,delete _.projectedPath}),delete this.bounds},m.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)},m.prototype.drawMapDataLabels=function(){P.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},m.prototype.drawPoints=function(){var _=this,B=this,X=this.chart,it=this.group,rt=this.transformGroups,L=void 0===rt?[]:rt,z=X.mapView,et=X.renderer;z&&(this.transformGroups=L,L[0]||(L[0]=et.g().add(it)),z.insets.forEach(function(at,st){L[st+1]||L.push(et.g().add(it))}),this.doFullTranslate()&&(this.points.forEach(function(at){var st=at.graphic,H=at.shapeArgs;at.group=L["number"==typeof at.insetIndex?at.insetIndex+1:0],st&&st.parentGroup!==at.group&&st.add(at.group),H&&X.hasRendered&&!X.styledMode&&(H.fill=_.pointAttribs(at,at.state).fill)}),g.prototype.drawPoints.apply(this),this.points.forEach(function(at){var st=at.graphic;if(st){var H=st.animate,ot="";at.name&&(ot+="highcharts-name-"+at.name.replace(/ /g,"-").toLowerCase()),at.properties&&at.properties["hc-key"]&&(ot+=" highcharts-key-"+at.properties["hc-key"].toString().toLowerCase()),ot&&st.addClass(ot),X.styledMode&&st.css(_.pointAttribs(at,at.selected?"select":void 0)),st.animate=function(nt,yt,gt){var mt=I(nt["stroke-width"])&&!I(st["stroke-width"]),St=I(st["stroke-width"])&&!I(nt["stroke-width"]);if(mt||St){var wt=a(B.getStrokeWidth(B.options),1)/(X.mapView&&X.mapView.getScale()||1);mt&&(st["stroke-width"]=wt),St&&(nt["stroke-width"]=wt)}return H.call(st,nt,yt,St?function(){st.element.removeAttribute("stroke-width"),delete st["stroke-width"],gt&>.apply(this,arguments)}:gt)}}})),L.forEach(function(at,st){var H=(0===st?z:z.insets[st-1]).getSVGTransform(),ot=a(_.getStrokeWidth(_.options),1),nt=H.scaleX,yt=0rt.length&&"string"==typeof gt[0]&&(H[mt]["hc-key"]=gt[0],++St);for(var wt=0;wt"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"}}}),m}(v),W(w.prototype,{type:"map",axisTypes:U.seriesMembers.axisTypes,colorAttribs:U.seriesMembers.colorAttribs,colorKey:U.seriesMembers.colorKey,directTouch:!0,drawDataLabels:O,drawGraph:O,drawLegendSymbol:$.drawRectangle,forceDL:!0,getCenter:G.getCenter,getExtremesFromAll:!0,getSymbol:O,isCartesian:!1,parallelArrays:U.seriesMembers.parallelArrays,pointArrayMap:U.seriesMembers.pointArrayMap,pointClass:V,preserveAspectRatio:!0,searchPoint:O,trackerGroups:U.seriesMembers.trackerGroups,useMapGeometry:!0}),U.compose(w),k.registerSeriesType("map",w),w}),q(Y,"Series/MapLine/MapLineSeries.js",[Y["Series/Map/MapSeries.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G){var R,Z=this&&this.__extends||(R=function(P,k){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,w){E.__proto__=w}||function(E,w){for(var T in w)w.hasOwnProperty(T)&&(E[T]=w[T])})(P,k)},function(P,k){function E(){this.constructor=P}R(P,k),P.prototype=null===k?Object.create(k):(E.prototype=k.prototype,new E)}),$=U.series,W=G.extend,V=G.merge;return G=function(R){function P(){var k=null!==R&&R.apply(this,arguments)||this;return k.data=void 0,k.options=void 0,k.points=void 0,k}return Z(P,R),P.prototype.pointAttribs=function(k,E){return(k=O.prototype.pointAttribs.call(this,k,E)).fill=this.options.fillColor,k},P.defaultOptions=V(O.defaultOptions,{lineWidth:1,fillColor:"none"}),P}(O),W(G.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:$.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),U.registerSeriesType("mapline",G),G}),q(Y,"Series/MapPoint/MapPointPoint.js",[Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U){var $,G=this&&this.__extends||($=function(W,V){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var k in P)P.hasOwnProperty(k)&&(R[k]=P[k])})(W,V)},function(W,V){function R(){this.constructor=W}$(W,V),W.prototype=null===V?Object.create(V):(R.prototype=V.prototype,new R)}),Z=U.isNumber;return function($){function W(){var V=null!==$&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V}return G(W,$),W.prototype.isValid=function(){return!!(this.options.geometry||Z(this.x)&&Z(this.y)||Z(this.options.lon)&&Z(this.options.lat))},W}(O.seriesTypes.scatter.prototype.pointClass)}),q(Y,"Series/MapPoint/MapPointSeries.js",[Y["Core/Globals.js"],Y["Series/MapPoint/MapPointPoint.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Renderer/SVG/SVGRenderer.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$){var T,W=this&&this.__extends||(T=function(y,A){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var S in v)v.hasOwnProperty(S)&&(g[S]=v[S])})(y,A)},function(y,A){function g(){this.constructor=y}T(y,A),y.prototype=null===A?Object.create(A):(g.prototype=A.prototype,new g)});O=O.noop;var V=G.seriesTypes,R=V.map,P=V.scatter;V=$.extend;var k=$.fireEvent,E=$.isNumber,w=$.merge;return $=function(T){function y(){var A=null!==T&&T.apply(this,arguments)||this;return A.chart=void 0,A.data=void 0,A.options=void 0,A.points=void 0,A.clearBounds=R.prototype.clearBounds,A}return W(y,T),y.prototype.drawDataLabels=function(){T.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},y.prototype.projectPoint=function(A){var g=this.chart.mapView;if(g){var v=A.geometry,S=A.lon;if(A=A.lat,v=v&&"Point"===v.type&&v.coordinates,E(S)&&E(A)&&(v=[S,A]),v)return g.lonLatToProjectedUnits({lon:v[0],lat:v[1]})}},y.prototype.translate=function(){var A=this,g=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),g){var v=g.getSVGTransform(),S=g.projection.hasCoordinates;this.points.forEach(function(N){var j=N.x;j=void 0===j?void 0:j;var M=N.y;M=void 0===M?void 0:M;var D=E(N.insetIndex)&&g.insets[N.insetIndex].getSVGTransform()||v,I=A.projectPoint(N.options)||N.properties&&A.projectPoint(N.properties);if(I)j=I.x,M=I.y;else if(N.bounds&&(j=N.bounds.midX,M=N.bounds.midY,D&&E(j)&&E(M))){N.plotX=j*D.scaleX+D.translateX,N.plotY=M*D.scaleY+D.translateY;var b=!0}E(j)&&E(M)?b||(b=g.projectedUnitsToPixels({x:j,y:M}),N.plotX=b.x,N.plotY=S?b.y:A.chart.plotHeight-b.y):N.y=N.plotX=N.plotY=void 0,N.isInside=A.isPointInside(N),N.zone=A.zones.length?N.getZone():void 0})}k(this,"afterTranslate")},y.defaultOptions=w(P.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),y}(P),Z.prototype.symbols.mapmarker=function(T,y,A,g,v){var S=v&&"legend"===v.context;return S?(T+=A/2,v=y+g):v&&"number"==typeof v.anchorX&&"number"==typeof v.anchorY?(T=v.anchorX,v=v.anchorY):(T+=A/2,v=y+g/2,y-=g),[["M",T,v],["C",T,v,T-(g=S?g/3:g/2),y+1.5*g,T-g,y+g],["A",g,g,1,1,1,T+g,y+g],["C",T+g,y+1.5*g,T,v,T,v],["Z"]]},V($.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:U,searchPoint:O,useMapGeometry:!0}),G.registerSeriesType("mappoint",$),$}),q(Y,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),q(Y,"Series/Bubble/BubbleLegendItem.js",[Y["Core/Color/Color.js"],Y["Core/FormatUtilities.js"],Y["Core/Globals.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var $=O.parse,W=G.noop,V=Z.arrayMax,R=Z.arrayMin,P=Z.isNumber,k=Z.merge,E=Z.pick,w=Z.stableSort;return O=function(){function T(y,A){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0,this.setState=W,this.init(y,A)}return T.prototype.init=function(y,A){this.options=y,this.visible=!0,this.chart=A.chart,this.legend=A},T.prototype.addToLegend=function(y){y.splice(this.options.legendIndex,0,this)},T.prototype.drawLegendSymbol=function(y){var A=this.chart,g=E(y.options.itemDistance,20),v=this.legendItem||{},S=this.options,N=S.ranges,j=S.connectorDistance;this.fontMetrics=A.renderer.fontMetrics(S.labels.style.fontSize),N&&N.length&&P(N[0].value)?(w(N,function(M,D){return D.value-M.value}),this.ranges=N,this.setOptions(),this.render(),y=this.getMaxLabelSize(),A=2*(N=this.ranges[0].radius),j=0<(j=j-N+y.width)?j:0,this.maxLabel=y,this.movementX="left"===S.labels.align?j:0,v.labelWidth=A+j+g,v.labelHeight=A+this.fontMetrics.h/2):y.options.bubbleLegend.autoRanges=!0},T.prototype.setOptions=function(){var y=this.ranges,A=this.options,g=this.chart.series[A.seriesIndex],v=this.legend.baseline,S={zIndex:A.zIndex,"stroke-width":A.borderWidth},N={zIndex:A.zIndex,"stroke-width":A.connectorWidth},j={align:this.legend.options.rtl||"left"===A.labels.align?"right":"left",zIndex:A.zIndex},M=g.options.marker.fillOpacity,D=this.chart.styledMode;y.forEach(function(I,b){D||(S.stroke=E(I.borderColor,A.borderColor,g.color),S.fill=E(I.color,A.color,1!==M?$(g.color).setOpacity(M).get("rgba"):g.color),N.stroke=E(I.connectorColor,A.connectorColor,g.color)),y[b].radius=this.getRangeRadius(I.value),y[b]=k(y[b],{center:y[0].radius-y[b].radius+v}),D||k(!0,y[b],{bubbleAttribs:k(S),connectorAttribs:k(N),labelAttribs:j})},this)},T.prototype.getRangeRadius=function(y){var A=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,A.ranges[A.ranges.length-1].value,A.ranges[0].value,A.minSize,A.maxSize,y)},T.prototype.render=function(){var y=this.legendItem||{},A=this.chart.renderer,g=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),y.symbol=A.g("bubble-legend"),y.label=A.g("bubble-legend-item"),y.symbol.translateX=0,A=y.symbol.translateY=0;for(var v=this.ranges;A=g&&this.renderRange(S)}y.symbol.add(y.label),y.label.add(y.group),this.hideOverlappingLabels()},T.prototype.renderRange=function(y){var A=this.options,g=A.labels,v=this.chart,S=v.series[A.seriesIndex],N=v.renderer,j=this.symbols;v=j.labels;var M=y.center,D=Math.abs(y.radius),I=A.connectorDistance||0,b=g.align,d=A.connectorWidth,u=this.ranges[0].radius||0,a=M-D-A.borderWidth/2+d/2,n=this.fontMetrics;n=n.f/2-(n.h-n.f)/2;var o=N.styledMode;I=this.legend.options.rtl||"left"===b?-I:I,"center"===b&&(I=0,A.connectorDistance=0,y.labelAttribs.align="center"),b=a+A.labels.y;var m=u+I+A.labels.x;j.bubbleItems.push(N.circle(u,M+((a%1?1:.5)-(d%2?0:.5)),D).attr(o?{}:y.bubbleAttribs).addClass((o?"highcharts-color-"+S.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(A.className||"")).add(this.legendItem.symbol)),j.connectors.push(N.path(N.crispLine([["M",u,a],["L",u+I,a]],A.connectorWidth)).attr(o?{}:y.connectorAttribs).addClass((o?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(A.connectorClassName||"")).add(this.legendItem.symbol)),y=N.text(this.formatLabel(y),m,b+n).attr(o?{}:y.labelAttribs).css(o?{}:g.style).addClass("highcharts-bubble-legend-labels "+(A.labels.className||"")).add(this.legendItem.symbol),v.push(y),y.placed=!0,y.alignAttr={x:m,y:b+n}},T.prototype.getMaxLabelSize=function(){var y,A;return this.symbols.labels.forEach(function(g){A=g.getBBox(!0),y=y?A.width>y.width?A:y:A}),y||{}},T.prototype.formatLabel=function(y){var A=this.options,g=A.labels.formatter;A=A.labels.format;var v=this.chart.numberFormatter;return A?U.format(A,y):g?g.call(y):v(y.value,1)},T.prototype.hideOverlappingLabels=function(){var y=this.chart,A=this.symbols;!this.options.labels.allowOverlap&&A&&(y.hideOverlappingLabels(A.labels),A.labels.forEach(function(g,v){g.newOpacity?g.newOpacity!==g.oldOpacity&&A.connectors[v].show():A.connectors[v].hide()}))},T.prototype.getRanges=function(){var g,y=this.legend.bubbleLegend,A=y.options.ranges,v=Number.MAX_VALUE,S=-Number.MAX_VALUE;y.chart.series.forEach(function(j){j.isBubble&&!j.ignoreSeries&&(g=j.zData.filter(P)).length&&(v=E(j.options.zMin,Math.min(v,Math.max(R(g),!1===j.options.displayNegative?j.options.zThreshold:-Number.MAX_VALUE))),S=E(j.options.zMax,Math.max(S,V(g))))});var N=v===S?[{value:S}]:[{value:v},{value:(v+S)/2},{value:S,autoRanges:!0}];return A.length&&A[0].radius&&N.reverse(),N.forEach(function(j,M){A&&A[M]&&(N[M]=k(A[M],j))}),N},T.prototype.predictBubbleSizes=function(){var y=this.chart,A=this.fontMetrics,g=y.legend.options,v=g.floating,S=(g="horizontal"===g.layout)?y.legend.lastLineHeight:0,N=y.plotSizeX,j=y.plotSizeY,M=y.series[this.options.seriesIndex],D=M.getPxExtremes();y=Math.ceil(D.minPxSize),D=Math.ceil(D.maxPxSize);var I=Math.min(j,N);return M=M.options.maxSize,v||!/%$/.test(M)?A=D:(M=parseFloat(M),A=(I+S-A.h/2)*M/100/(M/100+1),(g&&j-A>=N||!g&&N-A>=j)&&(A=D)),[y,Math.ceil(A)]},T.prototype.updateRanges=function(y,A){var g=this.legend.options.bubbleLegend;g.minSize=y,g.maxSize=A,g.ranges=this.getRanges()},T.prototype.correctSizes=function(){var y=this.legend,A=this.chart.series[this.options.seriesIndex].getPxExtremes();1M.height&&(M.height=g[j].itemHeight);M.step=N}}return v}function R(g){var v=this.bubbleLegend,S=this.options,N=S.bubbleLegend,j=W(this.chart);v&&v.ranges&&v.ranges.length&&(N.ranges.length&&(N.autoRanges=!!N.ranges[0].autoRanges),this.destroyItem(v)),0<=j&&S.enabled&&N.enabled&&(N.seriesIndex=j,this.bubbleLegend=new U(N,this),this.bubbleLegend.addToLegend(g.allItems))}function P(){var g=this.chart,v=this.visible,S=this.chart.legend;S&&S.bubbleLegend&&(this.visible=!v,this.ignoreSeries=v,g=0<=W(g),S.bubbleLegend.visible!==g&&(S.update({bubbleLegend:{enabled:g}}),S.bubbleLegend.visible=g),this.visible=v)}function k(g,v){var N,j,M,D,S=g.options.rtl,I=0;g.allItems.forEach(function(b,d){(D=b.legendItem||{}).group&&(N=D.group.translateX||0,j=D.y||0,((M=b.movementX)||S&&b.ranges)&&(M=S?N-b.options.maxSize/2:N+M,D.group.attr({translateX:M})),d>v[I].step&&I++,D.group.attr({translateY:Math.round(j+v[I].height/2)}),D.y=j+v[I].height/2)})}var E=G.setOptions,w=Z.addEvent,T=Z.objectEach,y=Z.wrap,A=[];return{compose:function(g,v,S){-1===A.indexOf(g)&&(A.push(g),E({legend:{bubbleLegend:O}}),y(g.prototype,"drawChartBox",$)),-1===A.indexOf(v)&&(A.push(v),w(v,"afterGetAllItems",R)),-1===A.indexOf(S)&&(A.push(S),w(S,"legendItemClick",P))}}}),q(Y,"Series/Bubble/BubblePoint.js",[Y["Core/Series/Point.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G){var $,Z=this&&this.__extends||($=function(W,V){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var k in P)P.hasOwnProperty(k)&&(R[k]=P[k])})(W,V)},function(W,V){function R(){this.constructor=W}$(W,V),W.prototype=null===V?Object.create(V):(R.prototype=V.prototype,new R)});return G=G.extend,U=function($){function W(){var V=null!==$&&$.apply(this,arguments)||this;return V.options=void 0,V.series=void 0,V}return Z(W,$),W.prototype.haloPath=function(V){return O.prototype.haloPath.call(this,0===V?0:(this.marker&&this.marker.radius||0)+V)},W}(U.seriesTypes.scatter.prototype.pointClass),G(U.prototype,{ttBelow:!1}),U}),q(Y,"Series/Bubble/BubbleSeries.js",[Y["Series/Bubble/BubbleLegendComposition.js"],Y["Series/Bubble/BubblePoint.js"],Y["Core/Color/Color.js"],Y["Core/Globals.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W){function V(){var _,M=this,D=this.len,I=this.chart,b=this.isXAxis,d=b?"xData":"yData",u=this.min,a=this.max-u,n=0,o=D,m=D/a;this.series.forEach(function(B){if(B.bubblePadding&&(B.visible||!I.options.chart.ignoreHiddenSeries)){_=M.allowZoomOutside=!0;var X=B[d];if(b&&((B.onPoint||B).getRadii(0,0,B),B.onPoint&&(B.radii=B.onPoint.radii)),0"u"&&(M[B[0]]+=B[2]/m)}))}var M,R=this&&this.__extends||(M=function(D,I){return(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var u in d)d.hasOwnProperty(u)&&(b[u]=d[u])})(D,I)},function(D,I){function b(){this.constructor=D}M(D,I),D.prototype=null===I?Object.create(I):(b.prototype=I.prototype,new b)}),P=G.parse;G=Z.noop;var k=$.series,E=$.seriesTypes;Z=E.column.prototype;var w=E.scatter;E=W.addEvent;var T=W.arrayMax,y=W.arrayMin,A=W.clamp,g=W.extend,v=W.isNumber,S=W.merge,N=W.pick,j=[];return W=function(M){function D(){var I=null!==M&&M.apply(this,arguments)||this;return I.data=void 0,I.maxPxSize=void 0,I.minPxSize=void 0,I.options=void 0,I.points=void 0,I.radii=void 0,I.yData=void 0,I.zData=void 0,I}return R(D,M),D.compose=function(I,b,d,u){O.compose(b,d,u),-1===j.indexOf(I)&&(j.push(I),I.prototype.beforePadding=V)},D.prototype.animate=function(I){!I&&this.points.length=d/2?(a.marker=g(a.marker,{radius:n,width:2*n,height:2*n}),a.dlBox={x:a.plotX-n,y:a.plotY-n,width:2*n,height:2*n}):(a.shapeArgs=a.plotY=a.dlBox=void 0,a.isInside=!1)}},D.prototype.getPxExtremes=function(){var I=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(u){if("string"==typeof u){var a=/%$/.test(u);u=parseInt(u,10)}return a?I*u/100:u},d=b(N(this.options.minSize,8));return{minPxSize:d,maxPxSize:b=Math.max(b(N(this.options.maxSize,"20%")),d)}},D.prototype.getZExtremes=function(){var I=this.options,b=(this.zData||[]).filter(v);if(b.length){var d=N(I.zMin,A(y(b),!1===I.displayNegative?I.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(I=N(I.zMax,T(b)),v(d)&&v(I))return{zMin:d,zMax:I}}},D.defaultOptions=S(w.defaultOptions,{dataLabels:{formatter:function(){var I=this.series.chart.numberFormatter,b=this.point.z;return v(b)?I(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),D}(w),g(W.prototype,{alignDataLabel:Z.alignDataLabel,applyZones:G,bubblePadding:!0,buildKDTree:G,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:U,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),E(W,"updatedData",function(M){delete M.target.chart.bubbleZExtremes}),E(W,"remove",function(M){delete M.target.chart.bubbleZExtremes}),$.registerSeriesType("bubble",W),W}),q(Y,"Series/MapBubble/MapBubblePoint.js",[Y["Series/Bubble/BubblePoint.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G){var $,Z=this&&this.__extends||($=function(W,V){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var k in P)P.hasOwnProperty(k)&&(R[k]=P[k])})(W,V)},function(W,V){function R(){this.constructor=W}$(W,V),W.prototype=null===V?Object.create(V):(R.prototype=V.prototype,new R)});return U=U.seriesTypes.map.prototype.pointClass.prototype,G=G.extend,O=function($){function W(){return null!==$&&$.apply(this,arguments)||this}return Z(W,$),W.prototype.isValid=function(){return"number"==typeof this.z},W}(O),G(O.prototype,{applyOptions:U.applyOptions,getProjectedBounds:U.getProjectedBounds}),O}),q(Y,"Series/MapBubble/MapBubbleSeries.js",[Y["Series/Bubble/BubbleSeries.js"],Y["Series/MapBubble/MapBubblePoint.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var k,$=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),W=G.seriesTypes,V=W.map.prototype,R=W.mappoint.prototype;W=Z.extend;var P=Z.merge;return Z=function(k){function E(){var w=null!==k&&k.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w.clearBounds=V.clearBounds,w}return $(E,k),E.prototype.searchPoint=function(w,T){return this.searchKDTree({clientX:w.chartX-this.chart.plotLeft,plotY:w.chartY-this.chart.plotTop},T,w)},E.prototype.translate=function(){R.translate.call(this),this.getRadii(),this.translateBubble()},E.defaultOptions=P(O.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),E}(O),W(Z.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:V.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:U,processData:V.processData,projectPoint:R.projectPoint,setData:V.setData,setOptions:V.setOptions,updateData:V.updateData,useMapGeometry:!0,xyFromShape:!0}),G.registerSeriesType("mapbubble",Z),Z}),q(Y,"Series/Heatmap/HeatmapPoint.js",[Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U){var R,G=this&&this.__extends||(R=function(P,k){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,w){E.__proto__=w}||function(E,w){for(var T in w)w.hasOwnProperty(T)&&(E[T]=w[T])})(P,k)},function(P,k){function E(){this.constructor=P}R(P,k),P.prototype=null===k?Object.create(k):(E.prototype=k.prototype,new E)}),Z=U.clamp,$=U.defined,W=U.extend,V=U.pick;return O=function(R){function P(){var k=null!==R&&R.apply(this,arguments)||this;return k.options=void 0,k.series=void 0,k.value=void 0,k.x=void 0,k.y=void 0,k}return G(P,R),P.prototype.applyOptions=function(k,E){return(this.isNull||null===this.value)&&delete this.color,R.prototype.applyOptions.call(this,k,E),this.formatPrefix=this.isNull||null===this.value?"null":"point",this},P.prototype.getCellAttributes=function(){var k=this.series,E=k.options,w=(E.colsize||1)/2,T=(E.rowsize||1)/2,y=k.xAxis,A=k.yAxis,g=this.options.marker||k.options.marker;k=k.pointPlacementToXValue();var v=V(this.pointPadding,E.pointPadding,0),S={x1:Z(Math.round(y.len-y.translate(this.x-w,!1,!0,!1,!0,-k)),-y.len,2*y.len),x2:Z(Math.round(y.len-y.translate(this.x+w,!1,!0,!1,!0,-k)),-y.len,2*y.len),y1:Z(Math.round(A.translate(this.y-T,!1,!0,!1,!0)),-A.len,2*A.len),y2:Z(Math.round(A.translate(this.y+T,!1,!0,!1,!0)),-A.len,2*A.len)};return[["width","x"],["height","y"]].forEach(function(N){var j=N[0],M=(N=N[1])+"1",D=N+"2",I=Math.abs(S[M]-S[D]),b=g&&g.lineWidth||0,d=Math.abs(S[M]+S[D])/2;j=g&&g[j],$(j)&&j"},states:{hover:{halo:!1,brightness:.2}}}),N}(w),W(V.prototype,{axisTypes:U.seriesMembers.axisTypes,colorKey:U.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:U.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:G,specialGroup:"group",trackerGroups:U.seriesMembers.trackerGroups,alignDataLabel:E.prototype.alignDataLabel,colorAttribs:U.seriesMembers.colorAttribs,drawLegendSymbol:Z.drawRectangle,getSymbol:P.prototype.getSymbol}),U.compose(V),$.registerSeriesType("heatmap",V),V}),q(Y,"masters/modules/map.src.js",[Y["Core/Globals.js"],Y["Core/Axis/Color/ColorAxis.js"],Y["Series/MapBubble/MapBubbleSeries.js"],Y["Core/Chart/MapChart.js"],Y["Maps/MapView.js"],Y["Maps/Projection.js"]],function(O,U,G,Z,$,W){O.ColorAxis=U,O.MapChart=Z,O.mapChart=O.Map=Z.mapChart,O.MapView=$,O.maps=Z.maps,O.Projection=W,U.compose(O.Chart,O.Fx,O.Legend,O.Series),G.compose(O.Axis,O.Chart,O.Legend,O.Series)})},Jt.exports?(Y.default=Y,Jt.exports=Y):(pt=[ht(3470)],void 0!==(t=function(q){return Y(q),Y.Highcharts=q,Y}.apply($t,pt))&&(Jt.exports=t))},3461:(Jt,$t,ht)=>{var pt,t,Y;Y=function(Y){function q(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}q(Y=Y?Y._modules:{},"Core/Axis/SolidGaugeAxis.js",[Y["Core/Color/Color.js"],Y["Core/Utilities.js"]],function(O,U){var W,V,R,G=O.parse,Z=U.extend,$=U.merge;return V=W||(W={}),R={initDataClasses:function(P){var E,k=this.chart,w=0,T=this.options;this.dataClasses=E=[],P.dataClasses.forEach(function(y,A){y=$(y),E.push(y),y.color||("category"===T.dataClassColor?(A=k.options.colors,y.color=A[w++],w===A.length&&(w=0)):y.color=G(T.minColor).tweenTo(G(T.maxColor),A/(P.dataClasses.length-1)))})},initStops:function(P){this.stops=P.stops||[[0,this.options.minColor],[1,this.options.maxColor]],this.stops.forEach(function(k){k.color=G(k[1])})},toColor:function(P,k){var T,E=this.stops,w=this.dataClasses;if(w)for(T=w.length;T--;){var y=w[T],A=y.from;if(E=y.to,(typeof A>"u"||P>=A)&&(typeof E>"u"||P<=E)){var g=y.color;k&&(k.dataClass=T);break}}else{for(this.logarithmic&&(P=this.val2lin(P)),P=1-(this.max-P)/(this.max-this.min),T=E.length;T--&&!(P>E[T][0]););A=E[T]||E[T+1],P=1-((E=E[T+1]||A)[0]-P)/(E[0]-A[0]||1),g=A.color.tweenTo(E.color,P)}return g}},V.init=function(P){Z(P,R)},W}),q(Y,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){return{colorByPoint:!0,dataLabels:{y:0}}}),q(Y,"Series/SolidGauge/SolidGaugeComposition.js",[Y["Core/Renderer/SVG/SVGRenderer.js"]],function(O){var U=(O=O.prototype).symbols.arc;O.symbols.arc=function(G,Z,$,W,V){return G=U(G,Z,$,W,V),V&&V.rounded&&($=((V.r||$)-(V.innerR||0))/2,Z=G[0],V=G[2],"M"===Z[0]&&"L"===V[0]&&(Z=["A",$,$,0,1,1,Z[1],Z[2]],G[2]=["A",$,$,0,1,1,V[1],V[2]],G[4]=Z)),G}}),q(Y,"Series/SolidGauge/SolidGaugeSeries.js",[Y["Core/Legend/LegendSymbol.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Axis/SolidGaugeAxis.js"],Y["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$){var g,W=this&&this.__extends||(g=function(v,S){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,j){N.__proto__=j}||function(N,j){for(var M in j)j.hasOwnProperty(M)&&(N[M]=j[M])})(v,S)},function(v,S){function N(){this.constructor=v}g(v,S),v.prototype=null===S?Object.create(S):(N.prototype=S.prototype,new N)}),V=U.seriesTypes,R=V.gauge,P=V.pie.prototype,k=$.clamp,E=$.extend,w=$.isNumber,T=$.merge,y=$.pick,A=$.pInt;return $=function(g){function v(){var S=null!==g&&g.apply(this,arguments)||this;return S.data=void 0,S.points=void 0,S.options=void 0,S.axis=void 0,S.yAxis=void 0,S.startAngleRad=void 0,S.thresholdAngleRad=void 0,S}return W(v,g),v.prototype.translate=function(){var S=this.yAxis;G.init(S),!S.dataClasses&&S.options.dataClasses&&S.initDataClasses(S.options),S.initStops(S.options),R.prototype.translate.call(this)},v.prototype.drawPoints=function(){var I,S=this.yAxis,N=S.center,j=this.options,M=this.chart.renderer,D=j.overshoot;D=w(D)?D/180*Math.PI:0,w(j.threshold)&&(I=S.startAngleRad+S.translate(j.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=y(I,S.startAngleRad),I=0;for(var b=this.points;I2*Math.PI&&(_=n+2*Math.PI),d.shapeArgs=a={x:N[0],y:N[1],r:u,innerR:a,start:n,end:_,rounded:j.rounded},d.startR=u,m?(u=a.d,m.animate(E({fill:B},a)),u&&(a.d=u)):d.graphic=m=M.arc(a).attr({fill:B,"sweep-flag":0}).add(this.group),this.chart.styledMode||("square"!==j.linecap&&m.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),m.attr({stroke:j.borderColor||"none","stroke-width":j.borderWidth||0})),m&&m.addClass(d.getClassName(),!0)}}},v.prototype.animate=function(S){S||(this.startAngleRad=this.thresholdAngleRad,P.animate.call(this,S))},v.defaultOptions=T(R.defaultOptions,Z),v}(R),E($.prototype,{drawLegendSymbol:O.drawRectangle}),U.registerSeriesType("solidgauge",$),$}),q(Y,"masters/modules/solid-gauge.src.js",[],function(){})},Jt.exports?(Y.default=Y,Jt.exports=Y):(pt=[ht(3470),ht(2407)],void 0!==(t=function(q){return Y(q),Y.Highcharts=q,Y}.apply($t,pt))&&(Jt.exports=t))},1335:(Jt,$t,ht)=>{var pt,t,Y;Y=function(Y){function q(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}q(Y=Y?Y._modules:{},"Core/Axis/BrokenAxis.js",[Y["Core/Axis/Stacking/StackItem.js"],Y["Core/Utilities.js"]],function(O,U){var P,G=U.addEvent,Z=U.find,$=U.fireEvent,W=U.isArray,V=U.isNumber,R=U.pick;return function(k){function E(){typeof this.brokenAxis<"u"&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function w(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function T(){var M=this.brokenAxis;if(M&&M.hasBreaks){for(var D=this.tickPositions,I=this.tickPositions.info,b=[],d=0;dB.to||u>B.from&&nB.from&&nB.from&&n>B.to&&nb&&D>=this.basePointRange&&(b=D),u=void 0;d--;)u&&!1!==u.visible||(u=M[d+1]),D=M[d],!1!==u.visible&&!1!==D.visible&&(u.x-D.x>b&&(u=(D.x+u.x)/2,M.splice(d+1,0,{isNull:!0,x:u}),I.stacking&&this.options.stacking&&((u=I.stacking.stacks[this.stackKey][u]=new O(I,I.options.stackLabels,!1,u,this.stack)).total=0)),u=D);return this.getGraphPath(M)}var N=[];k.compose=function(M,D){if(-1===N.indexOf(M)&&(N.push(M),M.keepProps.push("brokenAxis"),G(M,"init",y),G(M,"afterInit",E),G(M,"afterSetTickPositions",T),G(M,"afterSetOptions",w)),-1===N.indexOf(D)){N.push(D);var I=D.prototype;I.drawBreaks=v,I.gappedPath=S,G(D,"afterGeneratePoints",A),G(D,"afterRender",g)}return M};var j=function(){function M(D){this.hasBreaks=!1,this.axis=D}return M.isInBreak=function(D,I){var b=D.repeat||1/0,d=D.from,u=D.to-D.from;return I=I>=d?(I-d)%b:b-(d-I)%b,D.inclusive?I<=u:I=D)break;(d.to=D)break;if(M.isInBreak(u,D)){b-=D-u.from;break}}}return b},M.prototype.findBreakAt=function(D,I){return Z(I,function(b){return b.fromX;)z-=B;for(;z"u"?void 0:k},close:function(k){return k.length?k[k.length-1]:k.hasNulls?null:void 0},high:function(k){return k.length?$(k):k.hasNulls?null:void 0},hlc:function(k,E,w){if(k=O.high(k),E=O.low(E),w=O.close(w),P(k)||P(E)||P(w))return[k,E,w]},low:function(k){return k.length?W(k):k.hasNulls?null:void 0},ohlc:function(k,E,w,T){if(k=O.open(k),E=O.high(E),w=O.low(w),T=O.close(T),P(k)||P(E)||P(w)||P(T))return[k,E,w,T]},open:function(k){return k.length?k[0]:k.hasNulls?null:void 0},range:function(k,E){return k=O.low(k),E=O.high(E),P(k)||P(E)?[k,E]:null===k&&null===E?null:void 0},sum:Z},R(O,U),U}),q(Y,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),q(Y,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[Y["Extensions/DataGrouping/DataGroupingDefaults.js"],Y["Core/Utilities.js"]],function(O,U){function G(T){var y=this,A=y.series;A.forEach(function(g){g.groupPixelWidth=void 0}),A.forEach(function(g){g.groupPixelWidth=y.getGroupPixelWidth&&y.getGroupPixelWidth(),g.groupPixelWidth&&(g.hasProcessed=!0),g.applyGrouping(!!T.hasExtremesChanged)})}function Z(){for(var v,S,T=this.series,y=T.length,A=0,g=!1;y--;)(S=T[y].options.dataGrouping)&&(A=Math.max(A,k(S.groupPixelWidth,O.common.groupPixelWidth)),v=(T[y].processedXData||T[y].data).length,(T[y].groupPixelWidth||v>this.chart.plotSizeX/A||v&&S.forced)&&(g=!0));return g?A:0}function $(){this.series.forEach(function(T){T.hasProcessed=!1})}function W(T,y){var A;if(y=k(y,!0),T||(T={forced:!1,units:null}),this instanceof w)for(A=this.series.length;A--;)this.series[A].update({dataGrouping:T},!1);else this.chart.options.series.forEach(function(g){g.dataGrouping="boolean"==typeof T?T:P(T,g.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),y&&this.chart.redraw()}var w,V=U.addEvent,R=U.extend,P=U.merge,k=U.pick,E=[];return{compose:function(T){w=T,-1===E.indexOf(T)&&(E.push(T),V(T,"afterSetScale",$),V(T,"postProcessData",G),R(T.prototype,{applyGrouping:G,getGroupPixelWidth:Z,setDataGrouping:W}))}}}),q(Y,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[Y["Extensions/DataGrouping/ApproximationRegistry.js"],Y["Extensions/DataGrouping/DataGroupingDefaults.js"],Y["Core/Axis/DateTimeAxis.js"],Y["Core/Defaults.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W){function V(I){var b=this.chart,d=this.options.dataGrouping,u=!1!==this.allowDG&&d&&j(d.enabled,b.options.isStock),a=this.visible||!b.options.chart.ignoreHiddenSeries,n=this.currentDataGrouping,o=!1;if(u&&!this.requireSorting&&(this.requireSorting=o=!0),I=!(!this.isCartesian||this.isDirty||this.xAxis.isDirty||this.yAxis.isDirty||I)||!u,o&&(this.requireSorting=!1),!I){this.destroyGroupedData();var m=d.groupAll?this.xData:this.processedXData,_=d.groupAll?this.yData:this.processedYData;u=b.plotSizeX;var B=(I=this.xAxis).options.ordinal,X=this.groupPixelWidth;if(o=void 0,X&&m&&m.length&&u){this.isDirty=o=!0,this.points=null;var it=I.getExtremes(),rt=it.min;it=it.max,B=B&&I.ordinal&&I.ordinal.getGroupIntervalFactor(rt,it,this)||1,u=I.getTimeTicks(G.Additions.prototype.normalizeTimeTickInterval(X*(it-rt)/u*B,d.units||U.units),Math.min(rt,m[0]),Math.max(it,m[m.length-1]),I.options.startOfWeek,m,this.closestPointRange),m=(X=T.groupData.apply(this,[m,_,u,d.approximation])).groupedXData,_=X.groupedYData,B=0,d&&d.smoothed&&m.length&&(d.firstAnchor="firstPoint",d.anchor="middle",d.lastAnchor="lastPoint",g(32,!1,b,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),b=m;var L=this.options.dataGrouping;if(rt=this.currentDataGrouping&&this.currentDataGrouping.gapSize,L&&this.xData&&rt&&this.groupMap){var z=b.length-1,et=L.anchor,at=j(L.firstAnchor,et);if(L=j(L.lastAnchor,et),et&&"start"!==et){var st=rt*{middle:.5,end:1}[et];for(et=b.length-1;et--&&0=b[0]){et=this.groupMap[0].start,st=this.groupMap[0].length;var H=void 0;S(et)&&S(st)&&(H=et+(st-1)),b[0]={middle:b[0]+.5*rt,end:b[0]+rt,firstPoint:this.xData[0],lastPoint:H&&this.xData[H]}[at]}L&&"start"!==L&&rt&&b[z]>=it-rt&&(it=this.groupMap[this.groupMap.length-1].start,b[z]={middle:b[z]+.5*rt,end:b[z]+rt,firstPoint:it&&this.xData[it],lastPoint:this.xData[this.xData.length-1]}[L])}for(it=1;itI.max&&((!A(I.options.max)&&S(I.dataMax)&&I.max>=I.dataMax||I.max===I.dataMax)&&(I.max=Math.max(a[a.length-1],I.max)),I.dataMax=Math.max(a[a.length-1],I.dataMax))),d.groupAll&&(this.allGroupedData=_,m=(d=this.cropData(m,_,I.min,I.max,1)).xData,_=d.yData,this.cropStart=d.start),this.processedXData=m,this.processedYData=_}else this.groupMap=null;this.hasGroupedData=o,this.currentDataGrouping=it,this.preventGraphAnimation=(n&&n.totalRange)!==(it&&it.totalRange)}}function R(){this.groupedData&&(this.groupedData.forEach(function(I,b){I&&(this.groupedData[b]=I.destroy?I.destroy():null)},this),this.groupedData.length=0)}function P(){M.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function k(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function E(I,b,d,u){var a=this,n=a.data,o=a.options&&a.options.data,m=[],_=[],B=[],X=I.length,it=!!b,rt=[],L=a.pointArrayMap,z=L&&L.length,et=["x"].concat(L||["y"]),at=this.options.dataGrouping&&this.options.dataGrouping.groupAll,st=0,H=0;if(u="function"==typeof u?u:u&&O[u]?O[u]:O[a.getDGApproximation&&a.getDGApproximation()||"average"],z)for(var ot=L.length;ot--;)rt.push([]);else rt.push([]);ot=z||1;for(var nt=0;nt<=X;nt++)if(!(I[nt]=d[st+1]||nt===X;){var yt=d[st];a.dataGroupInfo={start:at?H:a.cropStart+H,length:rt[0].length};var gt=u.apply(a,rt);for(a.pointClass&&!A(a.dataGroupInfo.options)&&(a.dataGroupInfo.options=N(a.pointClass.prototype.optionsToObject.call({series:a},a.options.data[a.cropStart+H])),et.forEach(function(St){delete a.dataGroupInfo.options[St]})),typeof gt<"u"&&(m.push(yt),_.push(gt),B.push(a.dataGroupInfo)),H=nt,yt=0;yt=(this.xAxis.min||0)){this.dataModify.compareValue=it;break}}}}function I(n,o){this.setModifier("compare",n,o)}function b(n,o){n=y(n,!1),this.options.cumulative=this.userOptions.cumulative=n,this.update({},y(o,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(m){delete m.cumulativeSum})}function d(n,o){this.setModifier("cumulative",n,o)}var u=[];g.compose=function(n,o,m){if(-1===u.indexOf(n)){u.push(n);var _=n.prototype;_.setCompare=M,_.setCumulative=b,W(n,"afterInit",N),W(n,"afterGetExtremes",j),W(n,"afterProcessData",D)}return-1===u.indexOf(o)&&(u.push(o),(o=o.prototype).setCompare=I,o.setModifier=v,o.setCumulative=d),-1===u.indexOf(m)&&(u.push(m),m.prototype.tooltipFormatter=S),n};var a=function(){function n(o){this.series=o}return n.prototype.modifyValue=function(){return 0},n.getCumulativeExtremes=function(o){var m=1/0,_=-1/0;return o.reduce(function(B,X){return X=B+X,m=Math.min(m,X,B),_=Math.max(_,X,B),X}),[m,_]},n.prototype.initCompare=function(o){this.modifyValue=function(m,_){null===m&&(m=0);var B=this.compareValue;return typeof m<"u"&&typeof B<"u"?(m="value"===o?m-B:m/B*100-(100===this.series.options.compareBase?0:100),typeof _<"u"&&(_=this.series.points[_])&&(_.change=m),m):0}},n.prototype.initCumulative=function(){this.modifyValue=function(o,m){if(null===o&&(o=0),void 0!==o&&void 0!==m){var _=0j&&(v?y=A-N:A=y+N),P(y)&&P(A)||(y=A=void 0),{min:y,max:A}},T}();return w}),q(Y,"Stock/Navigator/NavigatorDefaults.js",[Y["Core/Color/Color.js"],Y["Core/Series/SeriesRegistry.js"]],function(O,U){return O=O.parse,U=U.seriesTypes,U={height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:O("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:typeof U.areaspline>"u"?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),q(Y,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(O,U,G,Z,$){return void 0===$&&($={}),O=$.width?$.width/2:G,U=Math.round(O/3)+.5,[["M",-O-1,.5],["L",O,.5],["L",O,(Z=$.height||Z)+.5],["L",-O-1,Z+.5],["L",-O-1,.5],["M",-U,4],["L",-U,Z-3],["M",U-1,4],["L",U-1,Z-3]]}}}),q(Y,"Stock/Navigator/NavigatorComposition.js",[Y["Core/Defaults.js"],Y["Core/Globals.js"],Y["Core/Axis/NavigatorAxisComposition.js"],Y["Stock/Navigator/NavigatorDefaults.js"],Y["Stock/Navigator/NavigatorSymbols.js"],Y["Core/Renderer/RendererRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V){function R(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function P(){var u=this.legend,a=this.navigator;if(a){var n=u&&u.options,o=a.xAxis,m=a.yAxis,_=a.scrollbarHeight;this.inverted?(a.left=a.opposite?this.chartWidth-_-a.height:this.spacing[3]+_,a.top=this.plotTop+_):(a.left=I(o.left,this.plotLeft+_),a.top=a.navigatorOptions.top||this.chartHeight-a.height-_-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(n&&"bottom"===n.verticalAlign&&"proximate"!==n.layout&&n.enabled&&!n.floating?u.legendHeight+I(n.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),o&&m&&(this.inverted?o.options.left=m.options.left=a.left:o.options.top=m.options.top=a.top,o.setAxisSize(),m.setAxisSize())}}function k(u){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new d(this),I(u.redraw,!0)&&this.redraw(u.animation))}function E(){var u=this.options;(u.navigator.enabled||u.scrollbar.enabled)&&(this.scroller=this.navigator=new d(this))}function w(){var u=this.options,a=u.navigator,n=u.rangeSelector;if((a&&a.enabled||n&&n.enabled)&&(!S&&"x"===u.chart.zooming.type||S&&"x"===u.chart.zooming.pinchType))return!1}function T(u){var a=u.navigator;a&&u.xAxis[0]&&(u=u.xAxis[0].getExtremes(),a.render(u.min,u.max))}function y(u){var a=u.options.navigator||{},n=u.options.scrollbar||{};this.navigator||this.scroller||!a.enabled&&!n.enabled||(D(!0,this.options.navigator,a),D(!0,this.options.scrollbar,n),delete u.options.navigator,delete u.options.scrollbar)}function A(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var d,g=O.defaultOptions,v=O.setOptions,S=U.isTouchDevice,N=W.getRendererType,j=V.addEvent,M=V.extend,D=V.merge,I=V.pick,b=[];return{compose:function(u,a,n,o){G.compose(u),d=n,-1===b.indexOf(a)&&(b.push(a),a.prototype.callbacks.push(T),j(a,"afterAddSeries",R),j(a,"afterSetChartSize",P),j(a,"afterUpdate",k),j(a,"beforeRender",E),j(a,"beforeShowResetZoom",w),j(a,"update",y)),-1===b.indexOf(o)&&(b.push(o),j(o,"afterUpdate",A)),-1===b.indexOf(N)&&(b.push(N),M(N().prototype.symbols,$)),-1===b.indexOf(v)&&(b.push(v),M(g,{navigator:Z}))}}}),q(Y,"Core/Axis/ScrollbarAxis.js",[Y["Core/Utilities.js"]],function(O){var U=O.addEvent,G=O.defined,Z=O.pick;return function(){function $(){}return $.compose=function(W,V){if(-1!==$.composed.indexOf(W))return W;$.composed.push(W);var R=function(P){var k=Z(P.options&&P.options.min,P.min),E=Z(P.options&&P.options.max,P.max);return{axisMin:k,axisMax:E,scrollMin:G(P.dataMin)?Math.min(k,P.min,P.dataMin,Z(P.threshold,1/0)):k,scrollMax:G(P.dataMax)?Math.max(E,P.max,P.dataMax,Z(P.threshold,-1/0)):E}};return U(W,"afterInit",function(){var P=this;P.options&&P.options.scrollbar&&P.options.scrollbar.enabled&&(P.options.scrollbar.vertical=!P.horiz,P.options.startOnTick=P.options.endOnTick=!1,P.scrollbar=new V(P.chart.renderer,P.options.scrollbar,P.chart),U(P.scrollbar,"changed",function(k){var E=R(P),w=E.axisMax,T=E.scrollMin,y=E.scrollMax-T;G(E.axisMin)&&G(w)&&(P.horiz&&!P.reversed||!P.horiz&&P.reversed?(E=T+y*this.to,T+=y*this.from):(E=T+y*(1-this.from),T+=y*(1-this.to)),this.shouldUpdateExtremes(k.DOMType)?P.setExtremes(T,E,!0,"mousemove"!==k.DOMType&&"touchmove"!==k.DOMType,k):this.setRange(this.from,this.to))}))}),U(W,"afterRender",function(){var P=R(this),k=P.scrollMin,E=P.scrollMax;P=this.scrollbar;var w=this.axisTitleMargin+(this.titleOffset||0),T=this.chart.scrollbarsOffsets,y=this.options.margin||0;P&&(this.horiz?(this.opposite||(T[1]+=w),P.position(this.left,this.top+this.height+2+T[1]-(this.opposite?y:0),this.width,this.height),this.opposite||(T[1]+=y),w=1):(this.opposite&&(T[0]+=w),P.position(P.options.opposite?this.left+this.width+2+T[0]-(this.opposite?0:y):this.opposite?0:y,this.top,this.width,this.height),this.opposite&&(T[0]+=y),w=0),T[w]+=P.size+P.options.margin,isNaN(k)||isNaN(E)||!G(this.min)||!G(this.max)||this.min===this.max?P.setRange(0,1):(T=(this.min-k)/(E-k),k=(this.max-k)/(E-k),this.horiz&&!this.reversed||!this.horiz&&this.reversed?P.setRange(T,k):P.setRange(1-k,1-T)))}),U(W,"afterGetOffset",function(){var P=this.scrollbar&&!this.scrollbar.options.opposite;P=this.horiz?2:P?3:1;var k=this.scrollbar;k&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[P]+=k.size+k.options.margin)}),W},$.composed=[],$}()}),q(Y,"Stock/Scrollbar/ScrollbarDefaults.js",[Y["Core/Globals.js"]],function(O){return{height:O.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}),q(Y,"Stock/Scrollbar/Scrollbar.js",[Y["Core/Defaults.js"],Y["Core/Globals.js"],Y["Core/Axis/ScrollbarAxis.js"],Y["Stock/Scrollbar/ScrollbarDefaults.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$){var W=O.defaultOptions,V=$.addEvent,R=$.correctFloat,P=$.defined,k=$.destroyObjectProperties,E=$.fireEvent,w=$.merge,T=$.pick,y=$.removeEvent;return O=function(){function A(g,v,S){this._events=[],this.chart=void 0,this.from=this.chartY=this.chartX=0,this.scrollbar=this.renderer=this.options=this.group=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.to=this.size=this.scrollbarTop=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.y=this.x=0,this.init(g,v,S)}return A.compose=function(g){G.compose(g,A)},A.swapXY=function(g,v){return v&&g.forEach(function(S){for(var j,N=S.length,M=0;Mthis.calculatedWidth?v.minWidth:0,{chartX:(g.chartX-this.x-this.xOffset)/(this.barWidth-v),chartY:(g.chartY-this.y-this.yOffset)/(this.barWidth-v)}},A.prototype.destroy=function(){var g=this,v=g.chart.scroller;g.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(S){g[S]&&g[S].destroy&&(g[S]=g[S].destroy())}),v&&g===v.scrollbar&&(v.scrollbar=null,k(v.scrollbarButtons))},A.prototype.drawScrollbarButton=function(g){var v=this.renderer,S=this.scrollbarButtons,N=this.options,j=this.size,M=v.g().add(this.group);S.push(M),M=v.rect().addClass("highcharts-scrollbar-button").add(M),this.chart.styledMode||M.attr({stroke:N.buttonBorderColor,"stroke-width":N.buttonBorderWidth,fill:N.buttonBackgroundColor}),M.attr(M.crisp({x:-.5,y:-.5,width:j+1,height:j+1,r:N.buttonBorderRadius},M.strokeWidth())),M=v.path(A.swapXY([["M",j/2+(g?-1:1),j/2-3],["L",j/2+(g?-1:1),j/2+3],["L",j/2+(g?2:-2),j/2]],N.vertical)).addClass("highcharts-scrollbar-arrow").add(S[g]),this.chart.styledMode||M.attr({fill:N.buttonArrowColor})},A.prototype.init=function(g,v,S){this.scrollbarButtons=[],this.renderer=g,this.userOptions=v,this.options=w(Z,W.scrollbar,v),this.chart=S,this.size=T(this.options.size,this.options.height),v.enabled&&(this.render(),this.addEvents())},A.prototype.mouseDownHandler=function(g){g=this.chart.pointer.normalize(g),g=this.cursorToScrollbarPosition(g),this.chartX=g.chartX,this.chartY=g.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},A.prototype.mouseMoveHandler=function(g){var v=this.chart.pointer.normalize(g),S=this.options.vertical?"chartY":"chartX",N=this.initPositions||[];!this.grabbedCenter||g.touches&&0===g.touches[0][S]||(S=(v=this.cursorToScrollbarPosition(v)[S])-(S=this[S]),this.hasDragged=!0,this.updatePosition(N[0]+S,N[1]+S),this.hasDragged&&E(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:g.type,DOMEvent:g}))},A.prototype.mouseUpHandler=function(g){this.hasDragged&&E(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:g.type,DOMEvent:g}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},A.prototype.position=function(g,v,S,N){var j=this.options.vertical,M=this.rendered?"animate":"attr",D=N,I=0;this.group.show(),this.x=g,this.y=v+this.trackBorderWidth,this.width=S,this.height=N,this.xOffset=D,this.yOffset=I,j?(this.width=this.yOffset=S=I=this.size,this.xOffset=D=0,this.barWidth=N-2*S,this.x=g+=this.options.margin):(this.height=this.xOffset=N=D=this.size,this.barWidth=S-2*N,this.y+=this.options.margin),this.group[M]({translateX:g,translateY:this.y}),this.track[M]({width:S,height:N}),this.scrollbarButtons[1][M]({translateX:j?0:S-D,translateY:j?N-I:0})},A.prototype.removeEvents=function(){this._events.forEach(function(g){y.apply(null,g)}),this._events.length=0},A.prototype.render=function(){var g=this.renderer,v=this.options,S=this.size,N=this.chart.styledMode,j=g.g("scrollbar").attr({zIndex:v.zIndex}).hide().add();this.group=j,this.track=g.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:v.trackBorderRadius||0,height:S,width:S}).add(j),N||this.track.attr({fill:v.trackBackgroundColor,stroke:v.trackBorderColor,"stroke-width":v.trackBorderWidth}),this.trackBorderWidth=this.track.strokeWidth(),this.track.attr({y:-this.trackBorderWidth%2/2}),this.scrollbarGroup=g.g().add(j),this.scrollbar=g.rect().addClass("highcharts-scrollbar-thumb").attr({height:S,width:S,r:v.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=g.path(A.swapXY([["M",-3,S/4],["L",-3,2*S/3],["M",0,S/4],["L",0,2*S/3],["M",3,S/4],["L",3,2*S/3]],v.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),N||(this.scrollbar.attr({fill:v.barBackgroundColor,stroke:v.barBorderColor,"stroke-width":v.barBorderWidth}),this.scrollbarRifles.attr({stroke:v.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},A.prototype.setRange=function(g,v){var S=this.options,N=S.vertical,j=S.minWidth,M=this.barWidth,D=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(P(M)){var I=M*Math.min(v,1);g=Math.max(g,0);var b=Math.ceil(M*g);this.calculatedWidth=I=R(I-b),I=I?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===S.showFull&&(0>=g&&1<=v?this.group.hide():this.group.show()),this.rendered=!0}},A.prototype.shouldUpdateExtremes=function(g){return T(this.options.liveRedraw,U.svg&&!U.isTouchDevice&&!this.chart.boosted)||"mouseup"===g||"touchend"===g||!P(g)},A.prototype.trackClick=function(g){var v=this.chart.pointer.normalize(g),S=this.to-this.from,N=this.y+this.scrollbarTop,j=this.x+this.scrollbarLeft;this.options.vertical&&v.chartY>N||!this.options.vertical&&v.chartX>j?this.updatePosition(this.from+S,this.to+S):this.updatePosition(this.from-S,this.to-S),E(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:g})},A.prototype.update=function(g){this.destroy(),this.init(this.chart.renderer,w(!0,this.options,g),this.chart)},A.prototype.updatePosition=function(g,v){1g&&(v=R(v-g),g=0),this.from=g,this.to=v},A.defaultOptions=Z,A}(),W.scrollbar=w(!0,O.defaultOptions,W.scrollbar),O}),q(Y,"Stock/Navigator/Navigator.js",[Y["Core/Axis/Axis.js"],Y["Core/Defaults.js"],Y["Core/Globals.js"],Y["Core/Axis/NavigatorAxisComposition.js"],Y["Stock/Navigator/NavigatorComposition.js"],Y["Stock/Scrollbar/Scrollbar.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V){function R(u){for(var a=[],n=1;nat&&(this.grabbedLeft?o=B.toPixels(n-at-X,!0):this.grabbedRight&&(m=B.toPixels(a+at+X,!0))),this.zoomedMax=T(Math.max(o,m),0,ot),this.zoomedMin=T(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(o,m),0,ot),this.range=this.zoomedMax-this.zoomedMin,ot=Math.round(this.zoomedMax),o=Math.round(this.zoomedMin),rt&&(this.navigatorGroup.attr({visibility:"inherit"}),L=L&&!this.hasDragged?"animate":"attr",this.drawMasks(o,ot,z,L),this.drawOutline(o,ot,z,L),this.navigatorOptions.handles.enabled&&(this.drawHandle(o,0,z,L),this.drawHandle(ot,1,z,L))),this.scrollbar&&(z?(z=this.top-st,it=this.left-st+(rt||!it.opposite?0:(it.titleOffset||0)+it.axisTitleMargin),st=H+2*st):(z=this.top+(rt?this.height:-st),it=this.left-st),this.scrollbar.position(it,z,_,st),this.scrollbar.setRange(this.zoomedMin/(H||1),this.zoomedMax/(H||1))),this.rendered=!0}},u.prototype.addMouseEvents=function(){var _,B,a=this,n=a.chart,o=n.container,m=[];a.mouseMoveHandler=_=function(X){a.onMouseMove(X)},a.mouseUpHandler=B=function(X){a.onMouseUp(X)},(m=a.getPartsEvents("mousedown")).push(w(n.renderTo,"mousemove",_),w(o.ownerDocument,"mouseup",B)),k&&(m.push(w(n.renderTo,"touchmove",_),w(o.ownerDocument,"touchend",B)),m.concat(a.getPartsEvents("touchstart"))),a.eventsToUnbind=m,a.series&&a.series[0]&&m.push(w(a.series[0].xAxis,"foundExtremes",function(){n.navigator.modifyNavigatorAxisExtremes()}))},u.prototype.getPartsEvents=function(a){var n=this,o=[];return["shades","handles"].forEach(function(m){n[m].forEach(function(_,B){o.push(w(_.element,a,function(X){n[m+"Mousedown"](X,B)}))})}),o},u.prototype.shadesMousedown=function(a,n){a=this.chart.pointer.normalize(a);var o=this.chart,m=this.xAxis,_=this.zoomedMin,B=this.size,X=this.range,it=this.left,rt=a.chartX;if(o.inverted&&(rt=a.chartY,it=this.top),1===n)this.grabbedCenter=rt,this.fixedWidth=X,this.dragOffset=rt-_;else{if(a=rt-it-X/2,0===n)a=Math.max(0,a);else if(2===n&&a+X>=B)if(a=B-X,this.reversedExtremes){a-=X;var L=this.getUnionExtremes().dataMin}else var z=this.getUnionExtremes().dataMax;a!==_&&(this.fixedWidth=X,n=m.navigatorAxis.toFixedRange(a,a+X,L,z),A(n.min)&&o.xAxis[0].setExtremes(Math.min(n.min,n.max),Math.max(n.min,n.max),!0,null,{trigger:"navigator"}))}},u.prototype.handlesMousedown=function(a,n){this.chart.pointer.normalize(a);var o=(a=this.chart).xAxis[0],m=this.reversedExtremes;0===n?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=m?o.min:o.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=m?o.max:o.min),a.fixedRange=null},u.prototype.onMouseMove=function(a){var n=this,o=n.chart,m=n.navigatorSize,_=n.range,B=n.dragOffset,X=o.inverted,it=n.left;a.touches&&0===a.touches[0].pageX||(a=o.pointer.normalize(a),o=a.chartX,X&&(it=n.top,o=a.chartY),n.grabbedLeft?(n.hasDragged=!0,n.render(0,0,o-it,n.otherHandlePos)):n.grabbedRight?(n.hasDragged=!0,n.render(0,0,n.otherHandlePos,o-it)):n.grabbedCenter&&(n.hasDragged=!0,om+B-_&&(o=m+B-_),n.render(0,0,o-B,o-B+_)),n.hasDragged&&n.scrollbar&&I(n.scrollbar.options.liveRedraw,G.svg&&!E&&!this.chart.boosted)&&(a.DOMType=a.type,setTimeout(function(){n.onMouseUp(a)},0)))},u.prototype.onMouseUp=function(a){var n=this.chart,o=this.xAxis,m=this.scrollbar,_=a.DOMEvent||a,B=n.inverted,X=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!m||!m.hasDragged)||"scrollbar"===a.trigger){if(m=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos)var it=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var rt=this.fixedExtreme;this.zoomedMax===this.size&&(rt=this.reversedExtremes?m.dataMin:m.dataMax),0===this.zoomedMin&&(it=this.reversedExtremes?m.dataMax:m.dataMin),o=o.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,it,rt),A(o.min)&&n.xAxis[0].setExtremes(Math.min(o.min,o.max),Math.max(o.min,o.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:_})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&M(this.zoomedMin)&&M(this.zoomedMax)&&(n=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(n,a,B,X),this.outline&&this.drawOutline(n,a,B,X),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(n,0,B,X),this.drawHandle(a,1,B,X)))},u.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},u.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(n){b(n,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&b(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},u.prototype.init=function(a){var n=a.options,o=n.navigator||{},m=o.enabled,_=n.scrollbar||{},B=_.enabled;n=m&&o.height||0;var X=B&&_.height||0;this.handles=[],this.shades=[],this.chart=a,this.setBaseSeries(),this.height=n,this.scrollbarHeight=X,this.scrollbarEnabled=B,this.navigatorEnabled=m,this.navigatorOptions=o,this.scrollbarOptions=_,this.outlineHeight=n+X,this.opposite=I(o.opposite,!(m||!a.inverted));var it=this;m=it.baseSeries,_=a.xAxis.length,B=a.yAxis.length;var rt=m&&m[0]&&m[0].xAxis||a.xAxis[0]||{options:{}};a.isDirtyBox=!0,it.navigatorEnabled?(it.xAxis=new O(a,D({breaks:rt.options.breaks,ordinal:rt.options.ordinal},o.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:_,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[X,0,-X,0],width:n}:{offsets:[0,-X,0,X],height:n})),it.yAxis=new O(a,D(o.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:B,isInternal:!0,reversed:I(o.yAxis&&o.yAxis.reversed,a.yAxis[0]&&a.yAxis[0].reversed,!1),zoomEnabled:!1},a.inverted?{width:n}:{height:n})),m||o.series.data?it.updateNavigatorSeries(!1):0===a.series.length&&(it.unbindRedraw=w(a,"beforeRedraw",function(){0_.indexOf(at)&&(at&&(b(at,"updatedData",o.updatedDataHandler),delete at.navigatorSeries),et.chart&&et.destroy(),1))}),L=o.navigatorOptions.series;_&&_.length&&_.forEach(function(et){var at=et.navigatorSeries,st=S({color:et.color,visible:et.visible},j(L)?P.navigator.series:L);at&&!1===o.navigatorOptions.adaptToUpdatedData||(B.name="Navigator "+_.length,it=et.options||{},z=it.navigatorOptions||{},st.dataLabels=d(st.dataLabels),(rt=D(it,B,st,z)).pointRange=I(st.pointRange,z.pointRange,P.plotOptions[rt.type||"line"].pointRange),st=z.data||st.data,o.hasNavigatorData=o.hasNavigatorData||!!st,rt.data=st||it.data&&it.data.slice(0),at&&at.options?at.update(rt,n):(et.navigatorSeries=m.initSeries(rt),et.navigatorSeries.baseSeries=et,X.push(et.navigatorSeries)))}),(L.data&&(!_||!_.length)||j(L))&&(o.hasNavigatorData=!1,(L=d(L)).forEach(function(et,at){B.name="Navigator "+(X.length+1),(rt=D(P.navigator.series,{color:m.series[at]&&!m.series[at].options.isInternal&&m.series[at].color||m.options.colors[at]||m.options.colors[0]},B,et)).data=et.data,rt.data&&(o.hasNavigatorData=!0,X.push(m.initSeries(rt)))})),a&&this.addBaseSeriesEvents()},u.prototype.addBaseSeriesEvents=function(){var a=this,n=this,o=n.baseSeries||[];o[0]&&o[0].xAxis&&o[0].eventsToUnbind.push(w(o[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),o.forEach(function(m){m.eventsToUnbind.push(w(m,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),m.eventsToUnbind.push(w(m,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==a.navigatorOptions.adaptToUpdatedData&&m.xAxis&&m.eventsToUnbind.push(w(m,"updatedData",a.updatedDataHandler)),m.eventsToUnbind.push(w(m,"remove",function(){this.navigatorSeries&&(v(n.series,this.navigatorSeries),A(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},u.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(n,o){return Math.min(n,o.xData&&o.xData.length?o.xData[0]:n)},a)},u.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis;if(typeof a.getExtremes<"u"){var n=this.getUnionExtremes(!0);!n||n.dataMin===a.min&&n.dataMax===a.max||(a.min=n.dataMin,a.max=n.dataMax)}},u.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,n=this.getExtremes(),o=n.dataMin,m=n.dataMax;n=n.max-n.min;var _=a.stickToMin,B=a.stickToMax,X=I(this.options.overscroll,0),it=a.series&&a.series[0],rt=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(_)var L=o,z=L+n;B&&(z=m+X,_||(L=Math.max(o,z-n,a.getBaseSeriesMin(it&&it.xData?it.xData[0]:-Number.MAX_VALUE)))),rt&&(_||B)&&M(L)&&(this.min=this.userMin=L,this.max=this.userMax=z)}a.stickToMin=a.stickToMax=null},u.prototype.updatedDataHandler=function(){var a=this.chart.navigator,n=this.navigatorSeries;a.stickToMax=I(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size)),a.stickToMin=a.shouldStickToMin(this,a),n&&!a.hasNavigatorData&&(n.options.pointStart=this.xData[0],n.setData(this.options.data,!1,null,!1))},u.prototype.shouldStickToMin=function(a,n){n=n.getBaseSeriesMin(a.xData[0]);var o=a.xAxis;a=o.max;var m=o.min;return o=o.options.range,!(!M(a)||!M(m))&&(o&&0"u"&&(m=n(o,b.count)),this.newMax=Math.min(o+m,j(this.dataMax,Number.MAX_VALUE))),S(u)?!S(b)&&b&&b._offsetMin&&(o+=b._offsetMin):o=void 0,o}function $(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new I(this))}function W(){var b=this.axes,d=this.rangeSelector;d&&(S(d.deferredYTDClick)&&(d.clickButton(d.deferredYTDClick),delete d.deferredYTDClick),b.forEach(function(u){u.updateNames(),u.setScale()}),this.getAxisMargins(),d.render(),b=d.options.verticalAlign,d.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=!0)))}function V(b){var d,u,a,n,o=b.rangeSelector,m=function(){o&&(d=b.xAxis[0].getExtremes(),u=b.legend,n=o&&o.options.verticalAlign,S(d.min)&&o.render(d.min,d.max),u.display&&"top"===n&&n===u.options.verticalAlign&&((a=N(b.spacingBox)).y="vertical"===u.options.layout?b.plotTop:a.y+o.getHeight(),u.group.placed=!1,u.align(a)))};o&&(v(M,function(_){return _[0]===b})||M.push([b,[y(b.xAxis[0],"afterSetExtremes",function(_){o&&o.render(_.min,_.max)}),y(b,"redraw",m)]]),m())}function R(){for(var b=0,d=M.length;b"u"||typeof X>"u")&&(X=Number.MAX_VALUE,it=Number.MIN_VALUE,a.series.forEach(function(ot){(ot=ot.xData)&&(X=Math.min(ot[0],X),it=Math.max(ot[ot.length-1],it))}),u=!1),et=L=(_=this.getYTDExtremes(it,X,a.time.useUTC)).min,rt=_.max}else"all"===_&&o&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),et=X,rt=it);if(z&&n._offsetMin&&w(et)&&(et+=n._offsetMin),n._offsetMax&&w(rt)&&(rt+=n._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=d+1),o)o.setExtremes(et,rt,M(u,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:n});else{var at=I(a.options.xAxis)[0],st=at.range;at.range=m;var H=at.min;at.min=L,P(a,"load",function(){at.range=st,at.min=H})}g(this,"afterBtnClick")}},b.prototype.setSelected=function(d){this.selected=this.options.selected=d},b.prototype.init=function(d){var u=this,a=d.options.rangeSelector,n=a.buttons||u.defaultButtons.slice(),o=a.selected,m=function(){var _=u.minInput,B=u.maxInput;_&&_.blur&&g(_,"blur"),B&&B.blur&&g(B,"blur")};u.chart=d,u.options=a,u.buttons=[],u.buttonOptions=n,this.eventsToUnbind=[],this.eventsToUnbind.push(P(d.container,"mousedown",m)),this.eventsToUnbind.push(P(d,"resize",m)),n.forEach(u.computeButtonRange),typeof o<"u"&&n[o]&&this.clickButton(o,!1),this.eventsToUnbind.push(P(d,"load",function(){d.xAxis&&d.xAxis[0]&&P(d.xAxis[0],"setExtremes",function(_){this.max-this.min!==d.fixedRange&&"rangeSelectorButton"!==_.trigger&&"updatedData"!==_.trigger&&u.forcedDataGrouping&&!u.frozenStates&&this.setDataGrouping(!1,!1)})}))},b.prototype.updateButtonStates=function(){var d=this,u=this.chart,a=this.dropdown,n=u.xAxis[0],o=Math.round(n.max-n.min),m=!n.hasVisibleSeries,_=u.scroller&&u.scroller.getUnionExtremes()||n,B=_.dataMin,X=_.dataMax,it=(u=d.getYTDExtremes(X,B,u.time.useUTC)).min,rt=u.max,L=d.selected,z=d.options.allButtonsEnabled,et=d.buttons,at=v(L);d.buttonOptions.forEach(function(st,H){var ot=st._range,nt=st.type,yt=st.count||1,gt=et[H],mt=st._offsetMax-st._offsetMin,St=H===L,wt=ot>X-B,Mt=ot=864e5*{month:28,year:365}[nt]*yt-mt&&o-36e5<=864e5*{month:31,year:366}[nt]*yt+mt?ot=!0:"ytd"===nt?(ot=rt-it+mt===o,Dt=!St):"all"===nt&&(ot=n.max-n.min>=X-B,Pt=!St&&at&&ot),nt=!z&&(wt||Mt||Pt||m),yt=St&&ot||ot&&!at&&!Dt||St&&d.frozenStates,nt?st=3:yt&&(at=!0,st=2),gt.state!==st&&(gt.setState(st),a&&(a.options[H+1].disabled=nt,2===st&&(a.selectedIndex=H+1)),0===st&&L===H&&d.setSelected())})},b.prototype.computeButtonRange=function(d){var u=d.type,a=d.count||1,n={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};n[u]?d._range=n[u]*a:("month"===u||"year"===u)&&(d._range=864e5*{month:30,year:365}[u]*a),d._offsetMin=M(d.offsetMin,0),d._offsetMax=M(d.offsetMax,0),d._range+=d._offsetMax-d._offsetMin},b.prototype.getInputValue=function(d){d="min"===d?this.minInput:this.maxInput;var u=this.chart.options.rangeSelector,a=this.chart.time;return d?("text"===d.type&&u.inputDateParser||this.defaultInputDateParser)(d.value,a.useUTC,a):0},b.prototype.setInputValue=function(d,u){var a=this.options,n=this.chart.time,o="min"===d?this.minInput:this.maxInput;if(d="min"===d?this.minDateBox:this.maxDateBox,o){var m=o.getAttribute("data-hc-time");m=w(m)?Number(m):void 0,w(u)&&(w(m)&&o.setAttribute("data-hc-time-previous",m),o.setAttribute("data-hc-time",u),m=u),o.value=n.dateFormat(this.inputTypeFormats[o.type]||a.inputEditDateFormat,m),d&&d.attr({text:n.dateFormat(a.inputDateFormat,m)})}},b.prototype.setInputExtremes=function(d,u,a){if(d="min"===d?this.minInput:this.maxInput){var n=this.inputTypeFormats[d.type],o=this.chart.time;n&&(u=o.dateFormat(n,u),d.min!==u&&(d.min=u),a=o.dateFormat(n,a),d.max!==a&&(d.max=a))}},b.prototype.showInput=function(d){var u="min"===d?this.minDateBox:this.maxDateBox;if((d="min"===d?this.minInput:this.maxInput)&&u&&this.inputGroup){var a="text"===d.type,n=this.inputGroup,o=n.translateX;n=n.translateY;var m=this.options.inputBoxWidth;E(d,{width:a?u.width+(m?-2:20)+"px":"auto",height:a?u.height-2+"px":"auto",border:"2px solid silver"}),E(d,a&&m?{left:o+u.x+"px",top:n+"px"}:{left:Math.min(Math.round(u.x+o-(d.offsetWidth-u.width)/2),this.chart.chartWidth-d.offsetWidth)+"px",top:n-(d.offsetHeight-u.height)/2+"px"})}},b.prototype.hideInput=function(d){(d="min"===d?this.minInput:this.maxInput)&&E(d,{top:"-9999em",border:0,width:"1px",height:"1px"})},b.prototype.defaultInputDateParser=function(d,u,a){var o,n=d.split("/").join("-").split(" ").join("T");return-1===n.indexOf("T")&&(n+="T00:00"),u?n+="Z":((o=G.isSafari)&&(o=!(6<(o=n).length&&(o.lastIndexOf("-")===o.length-6||o.lastIndexOf("+")===o.length-6))),o&&(n+=0>=(o=new Date(n).getTimezoneOffset()/60)?"+".concat(j(-o),":00"):"-".concat(j(o),":00"))),n=Date.parse(n),v(n)||(d=d.split("-"),n=Date.UTC(D(d[0]),D(d[1])-1,D(d[2]))),a&&u&&v(n)&&(n+=a.getTimezoneOffset(n)),n},b.prototype.drawInput=function(d){function u(){var et=m.maxInput,at=m.minInput,st=a.xAxis[0],H=a.scroller&&a.scroller.xAxis?a.scroller.xAxis:st,ot=H.dataMin;H=H.dataMax;var nt=m.getInputValue(d);nt!==Number(L.getAttribute("data-hc-time-previous"))&&v(nt)&&(L.setAttribute("data-hc-time-previous",nt),it&&et&&v(ot)?nt>Number(et.getAttribute("data-hc-time"))?nt=void 0:ntH&&(nt=H)),typeof nt<"u"&&st.setExtremes(it?nt:st.min,it?st.max:nt,void 0,void 0,{trigger:"rangeSelectorInput"}))}var a=this.chart,n=this.div,o=this.inputGroup,m=this,_=a.renderer.style||{},B=a.renderer,X=a.options.rangeSelector,it="min"===d,rt=R.lang[it?"rangeSelectorFrom":"rangeSelectorTo"]||"";rt=B.label(rt,0).addClass("highcharts-range-label").attr({padding:rt?2:0,height:rt?X.inputBoxHeight:0}).add(o),B=B.label("",0).addClass("highcharts-range-input").attr({padding:2,width:X.inputBoxWidth,height:X.inputBoxHeight,"text-align":"center"}).on("click",function(){m.showInput(d),m[d+"Input"].focus()}),a.styledMode||B.attr({stroke:X.inputBoxBorderColor,"stroke-width":1}),B.add(o);var L=k("input",{name:d,className:"highcharts-range-selector"},void 0,n);L.setAttribute("type",function V(b){if(-1!==b.indexOf("%L"))return"text";var d="aAdewbBmoyY".split("").some(function(a){return-1!==b.indexOf("%"+a)}),u="HkIlMS".split("").some(function(a){return-1!==b.indexOf("%"+a)});return d&&u?"datetime-local":d?"date":u?"time":"text"}(X.inputDateFormat||"%b %e, %Y")),a.styledMode||(rt.css(S(_,X.labelStyle)),B.css(S({color:"#333333"},_,X.inputStyle)),E(L,A({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:_.fontSize,fontFamily:_.fontFamily,top:"-9999em"},X.inputStyle))),L.onfocus=function(){m.showInput(d)},L.onblur=function(){L===G.doc.activeElement&&u(),m.hideInput(d),m.setInputValue(d),L.blur()};var z=!1;return L.onchange=function(){z||(u(),m.hideInput(d),L.blur())},L.onkeypress=function(et){13===et.keyCode&&u()},L.onkeydown=function(et){z=!0,38!==et.keyCode&&40!==et.keyCode||u()},L.onkeyup=function(){z=!1},{dateBox:B,input:L,label:rt}},b.prototype.getPosition=function(){var d=this.chart,u=d.options.rangeSelector;return{buttonTop:(d="top"===u.verticalAlign?d.plotTop-d.axisOffset[0]:0)+u.buttonPosition.y,inputTop:d+u.inputPosition.y-10}},b.prototype.getYTDExtremes=function(d,u,a){var n=this.chart.time,o=new n.Date(d),m=n.get("FullYear",o);return a=a?n.Date.UTC(m,0,1):+new n.Date(m,0,1),u=Math.max(u,a),o=o.getTime(),{max:Math.min(d||o,o),min:u}},b.prototype.render=function(d,u){var a=this.chart,n=a.renderer,o=a.container,m=a.options,_=m.rangeSelector,B=M(m.chart.style&&m.chart.style.zIndex,0)+1;if(m=_.inputEnabled,!1!==_.enabled){if(this.rendered||(this.group=n.g("range-selector-group").attr({zIndex:7}).add(),this.div=k("div",void 0,{position:"relative",height:0,zIndex:B}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),m&&(this.inputGroup=n.g("input-group").add(this.group),n=this.drawInput("min"),this.minDateBox=n.dateBox,this.minLabel=n.label,this.minInput=n.input,n=this.drawInput("max"),this.maxDateBox=n.dateBox,this.maxLabel=n.label,this.maxInput=n.input)),m&&(this.setInputValue("min",d),this.setInputValue("max",u),d=a.scroller&&a.scroller.getUnionExtremes()||a.xAxis[0]||{},w(d.dataMin)&&w(d.dataMax)&&(a=a.xAxis[0].minRange||0,this.setInputExtremes("min",d.dataMin,Math.min(d.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(d.dataMin,this.getInputValue("min"))+a,d.dataMax)),this.inputGroup)){var X=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(it){if(it){var rt=it.getBBox().width;rt&&(it.attr({x:X}),X+=rt+_.inputSpacing)}})}this.alignElements(),this.rendered=!0}},b.prototype.renderButtons=function(){var d=this,u=this.buttons,a=this.options,n=R.lang,o=this.chart.renderer,m=S(a.buttonTheme),_=m&&m.states,B=m.width||28;delete m.width,delete m.states,this.buttonGroup=o.g("range-selector-buttons").add(this.group);var X=this.dropdown=k("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);P(X,"touchstart",function(){X.style.fontSize="16px"}),[[G.isMS?"mouseover":"mouseenter"],[G.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(it){var rt=it[0],L=it[1];P(X,rt,function(){var z=u[d.currentButtonIndex()];z&&g(z.element,L||rt)})}),this.zoomText=o.label(n&&n.rangeSelectorZoom||"",0).attr({padding:a.buttonTheme.padding,height:a.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(a.labelStyle),m["stroke-width"]=M(m["stroke-width"],0)),k("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,X),this.buttonOptions.forEach(function(it,rt){k("option",{textContent:it.title||it.text},void 0,X),u[rt]=o.button(it.text,0,0,function(L){var et,z=it.events&&it.events.click;z&&(et=z.call(it,L)),!1!==et&&d.clickButton(rt),d.isActive=!0},m,_&&_.hover,_&&_.select,_&&_.disabled).attr({"text-align":"center",width:B}).add(d.buttonGroup),it.title&&u[rt].attr("title",it.title)})},b.prototype.alignElements=function(){var d=this,u=this.buttonGroup,a=this.buttons,n=this.chart,o=this.group,m=this.inputGroup,_=this.options,B=this.zoomText,X=n.options,it=X.exporting&&!1!==X.exporting.enabled&&X.navigation&&X.navigation.buttonOptions;X=_.buttonPosition;var rt=_.inputPosition,L=_.verticalAlign,z=function(H,ot){return it&&d.titleCollision(n)&&"top"===L&&"right"===ot.align&&ot.y-H.getBBox().height-12<(it.y||0)+(it.height||0)+n.spacing[0]?-40:0},et=n.plotLeft;if(o&&X&&rt){var at=X.x-n.spacing[3];if(u){if(this.positionButtons(),!this.initialButtonGroupWidth){var st=0;B&&(st+=B.getBBox().width+5),a.forEach(function(H,ot){st+=H.width,ot!==a.length-1&&(st+=_.buttonSpacing)}),this.initialButtonGroupWidth=st}et-=n.spacing[3],this.updateButtonStates(),B=z(u,X),this.alignButtonGroup(B),o.placed=u.placed=n.hasLoaded}u=0,m&&(u=z(m,rt),"left"===rt.align?at=et:"right"===rt.align&&(at=-Math.max(n.axisOffset[1],-u)),m.align({y:rt.y,width:m.getBBox().width,align:rt.align,x:rt.x+at-2},!0,n.spacingBox),m.placed=n.hasLoaded),this.handleCollision(u),o.align({verticalAlign:L},!0,n.spacingBox),m=o.alignAttr.translateY,u=o.getBBox().height+20,z=0,"bottom"===L&&(z=m-(u=u+(z=(z=n.legend&&n.legend.options)&&"bottom"===z.verticalAlign&&z.enabled&&!z.floating?n.legend.legendHeight+M(z.margin,10):0)-20)-(_.floating?0:_.y)-(n.titleOffset?n.titleOffset[2]:0)-10),"top"===L?(_.floating&&(z=0),n.titleOffset&&n.titleOffset[0]&&(z=n.titleOffset[0]),z+=n.margin[0]-n.spacing[0]||0):"middle"===L&&(rt.y===X.y?z=m:(rt.y||X.y)&&(z=0>rt.y||0>X.y?z-Math.min(rt.y,X.y):m-u)),o.translate(_.x,_.y+Math.floor(z)),X=this.minInput,rt=this.maxInput,m=this.dropdown,_.inputEnabled&&X&&rt&&(X.style.marginTop=o.translateY+"px",rt.style.marginTop=o.translateY+"px"),m&&(m.style.marginTop=o.translateY+"px")}},b.prototype.alignButtonGroup=function(d,u){var a=this.chart,n=this.buttonGroup,o=this.options.buttonPosition,m=a.plotLeft-a.spacing[3],_=o.x-a.spacing[3];"right"===o.align?_+=d-m:"center"===o.align&&(_-=m/2),n&&n.align({y:o.y,width:M(u,this.initialButtonGroupWidth),align:o.align,x:_},!0,a.spacingBox)},b.prototype.positionButtons=function(){var d=this.buttons,u=this.chart,a=this.options,n=this.zoomText,o=u.hasLoaded?"animate":"attr",m=a.buttonPosition,_=u=u.plotLeft;for(n&&"hidden"!==n.visibility&&(n[o]({x:M(u+m.x,u)}),_+=m.x+n.getBBox().width+5),n=0,m=this.buttonOptions.length;nL&&(L=z.width)}),L};var it=function(L){if(o&&n){var z=o.alignAttr.translateX+o.alignOptions.x-d+o.getBBox().x+2,et=o.alignOptions.width,at=n.alignAttr.translateX+n.getBBox().x;return at+L>z&&z+et>at&&_.y=-d?0:-d),translateY:o.alignAttr.translateY+n.getBBox().height+10})};if(n){if("always"===B)return this.collapseButtons(d),void(it(m())&&rt());"never"===B&&this.expandButtons()}o&&n?X.align===_.align||it(this.initialButtonGroupWidth+20)?"responsive"===B?(this.collapseButtons(d),it(m())&&rt()):rt():"responsive"===B&&this.expandButtons():n&&"responsive"===B&&(this.initialButtonGroupWidth>a.plotWidth?this.collapseButtons(d):this.expandButtons())},b.prototype.collapseButtons=function(d){var u=this.buttons,a=this.buttonOptions,n=this.chart,o=this.dropdown,m=this.options,_=this.zoomText,B=n.userOptions.rangeSelector&&n.userOptions.rangeSelector.buttonTheme||{},X=function(rt){return{text:rt?rt+" \u25be":"\u25be",width:"auto",paddingLeft:M(m.buttonTheme.paddingLeft,B.padding,8),paddingRight:M(m.buttonTheme.paddingRight,B.padding,8)}};_&&_.hide();var it=!1;a.forEach(function(rt,L){2!==(L=u[L]).state?L.hide():(L.show(),L.attr(X(rt.text)),it=!0)}),it||(o&&(o.selectedIndex=0),u[0].show(),u[0].attr(X(this.zoomText&&this.zoomText.textStr))),a=m.buttonPosition.align,this.positionButtons(),"right"!==a&&"center"!==a||this.alignButtonGroup(d,u[this.currentButtonIndex()].getBBox().width),this.showDropdown()},b.prototype.expandButtons=function(){var d=this.buttons,u=this.buttonOptions,a=this.options,n=this.zoomText;this.hideDropdown(),n&&n.show(),u.forEach(function(o,m){(m=d[m]).show(),m.attr({text:o.text,width:a.buttonTheme.width||28,paddingLeft:M(a.buttonTheme.paddingLeft,"unset"),paddingRight:M(a.buttonTheme.paddingRight,"unset")}),2>m.state&&m.setState(0)}),this.positionButtons()},b.prototype.currentButtonIndex=function(){var d=this.dropdown;return d&&0o&&0>n||0_.length||typeof n>"u")return L.getTimeTicks.apply(L,arguments);var nt=_.length;for(et=0;eto;if(_[et]5*B||yt){if(_[et]>ot){for(at=L.getTimeTicks(a,_[st],_[et],m);at.length&&at[0]<=ot;)at.shift();at.length&&(ot=at[at.length-1]),z.push(H.length),H=H.concat(at)}st=et+1}if(yt)break}if(at){if(at=at.info,X&&at.unitRange<=E.hour){for(et=H.length-1,st=1;sto?at-1:at,et=void 0;gt--;)z=L[gt],at=Math.abs(et-z),et&&at<.8*rt&&(null===st||at<.8*st)?(it[H[gt]]&&!it[H[gt+1]]?(at=gt+1,et=z):at=gt,H.splice(at,1)):et=z}return H}function g(a){var n=this.ordinal.positions;if(!n)return a;var o=n.length-1;if(0>a)a=n[0];else if(a>o)a=n[o];else var m=a-(o=Math.floor(a));return typeof m<"u"&&typeof n[o]<"u"?n[o]+(m?m*(n[o+1]-n[o]):0):a}function v(a){var n=this.ordinal,o=n.positions;if(!o)return a;var m=(a-(this.old?this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;if(0a?m+_*a:o+_*(a-n)}return a}function S(a,n){var o=y.Additions.findIndexOf(a,n,!0);return a[o]===n?o:o+(n-a[o])/(a[o+1]-a[o])}function N(){this.ordinal||(this.ordinal=new y.Additions(this))}function j(){this.isXAxis&&R(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&R(this.userMin)&&(this.min+=this.options.overscroll))}function M(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function D(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function I(a){var n=this.xAxis[0],o=n.options.overscroll,m=a.originalEvent.chartX,_=this.options.chart.panning,B=!1;if(_&&"y"!==_.type&&n.options.ordinal&&n.series.length){var X=this.mouseDownX,it=n.getExtremes(),rt=it.dataMax,L=it.min,z=it.max,et=this.hoverPoints,at=n.closestPointRange||n.ordinal&&n.ordinal.overscrollPointsRange;X=(X-m)/(n.translationSlope*(n.ordinal.slope||at)),at={ordinal:{positions:at=n.ordinal.getExtendedPositions(),extendedOrdinalPositions:at}};var st=n.index2val,H=n.val2lin,ot=void 0,nt=ot=void 0,yt=void 0;at.ordinal.positions?1X?(nt=at,yt=n.ordinal.positions?n:at):(nt=n.ordinal.positions?n:at,yt=at),rt>(ot=yt.ordinal.positions)[ot.length-1]&&ot.push(rt),this.fixedRange=z-L,(ot=n.navigatorAxis.toFixedRange(void 0,void 0,st.apply(nt,[H.apply(nt,[L,!0])+X]),st.apply(yt,[H.apply(yt,[z,!0])+X]))).min>=Math.min(it.dataMin,L)&&ot.max<=Math.max(rt,z)+o&&n.setExtremes(ot.min,ot.max,!0,!1,{trigger:"pan"}),this.mouseDownX=m,V(this.container,{cursor:"move"})):B=!0}else B=!0;B||_&&/y/.test(_.type)?o&&(n.max=n.dataMax+o):a.preventDefault()}function b(){var a=this.xAxis;a&&a.options.ordinal&&(delete a.ordinal.index,delete a.ordinal.extendedOrdinalPositions)}function d(a,n){var o=this.ordinal,m=o.positions,_=o.slope,B=o.extendedOrdinalPositions;if(!m)return a;var X=m.length;if(m[0]<=a&&m[X-1]>=a)a=S(m,a);else{if(B||(B=o.getExtendedPositions&&o.getExtendedPositions(),o.extendedOrdinalPositions=B),!B||!B.length)return a;X=B.length,_||(_=(B[X-1]-B[0])/X),m=S(B,m[0]),a=a>=B[0]&&a<=B[X-1]?S(B,a)-m:ayt||B-z[z.length-1]>yt)&&(at=!0)}else n.options.overscroll&&(2===nt?et=z[1]-z[0]:1===nt?(et=n.options.overscroll,z=[z[0],z[0]+et]):et=o.overscrollPointsRange);at||n.forceOrdinal?(n.options.overscroll&&(o.overscrollPointsRange=et,z=z.concat(o.getOverscrollPositions())),o.positions=z,yt=n.ordinal2lin(Math.max(_,z[0]),!0),L=Math.max(n.ordinal2lin(Math.min(B,z[z.length-1]),!0),1),o.slope=B=(B-_)/(L-yt),o.offset=_-yt*B):(o.overscrollPointsRange=k(n.closestPointRange,o.overscrollPointsRange),o.positions=n.ordinal.slope=o.offset=void 0)}n.isOrdinal=m&&at,o.groupIntervalFactor=null},a.findIndexOf=function(n,o,m){for(var X,_=0,B=n.length-1;_=k(m.min,-1/0)&&(B=X.points[0].plotX)}),n=(n-B)/(m.translationSlope*(this.slope||m.closestPointRange||this.overscrollPointsRange)),a.findIndexOf(o,_)+n},a.prototype.getOverscrollPositions=function(){var n=this.axis,o=n.options.overscroll,m=this.overscrollPointsRange,_=[],B=n.dataMax;if(R(m))for(;B<=n.dataMax+o;)B+=m,_.push(B);return _},a.prototype.postProcessTickInterval=function(n){var o=this.axis,m=this.slope;return m?o.options.breaks?o.closestPointRange||n:n/(m/o.closestPointRange):n},a}();y.Additions=u}(T||(T={})),T}),q(Y,"Series/HLC/HLCPoint.js",[Y["Core/Series/SeriesRegistry.js"]],function(O){var G,U=this&&this.__extends||(G=function(Z,$){return(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,V){W.__proto__=V}||function(W,V){for(var R in V)V.hasOwnProperty(R)&&(W[R]=V[R])})(Z,$)},function(Z,$){function W(){this.constructor=Z}G(Z,$),Z.prototype=null===$?Object.create($):(W.prototype=$.prototype,new W)});return function(G){function Z(){var $=null!==G&&G.apply(this,arguments)||this;return $.close=void 0,$.high=void 0,$.low=void 0,$.options=void 0,$.plotClose=void 0,$.series=void 0,$}return U(Z,G),Z}(O.seriesTypes.column.prototype.pointClass)}),q(Y,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'\u25cf {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),q(Y,"Series/HLC/HLCSeries.js",[Y["Series/HLC/HLCPoint.js"],Y["Series/HLC/HLCSeriesDefaults.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){var P,$=this&&this.__extends||(P=function(k,E){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var y in T)T.hasOwnProperty(y)&&(w[y]=T[y])})(k,E)},function(k,E){function w(){this.constructor=k}P(k,E),k.prototype=null===E?Object.create(E):(w.prototype=E.prototype,new w)}),W=G.seriesTypes.column,V=Z.extend,R=Z.merge;return Z=function(P){function k(){var E=null!==P&&P.apply(this,arguments)||this;return E.data=void 0,E.options=void 0,E.points=void 0,E.yData=void 0,E}return $(k,P),k.prototype.extendStem=function(E,w,T){var y=E[0];E=E[1],"number"==typeof y[2]&&(y[2]=Math.max(T+w,y[2])),"number"==typeof E[2]&&(E[2]=Math.min(T-w,E[2]))},k.prototype.getPointPath=function(E,w){w=w.strokeWidth();var T=E.series,y=w%2/2,A=Math.round(E.plotX)-y,g=Math.round(E.shapeArgs.width/2),v=[["M",A,Math.round(E.yBottom)],["L",A,Math.round(E.plotHigh)]];return null!==E.close&&(E=Math.round(E.plotClose)+y,v.push(["M",A,E],["L",A+g,E]),T.extendStem(v,w/2,E)),v},k.prototype.drawSinglePoint=function(E){var w=E.series,T=w.chart,y=E.graphic;typeof E.plotY<"u"&&(y||(E.graphic=y=T.renderer.path().add(w.group)),T.styledMode||y.attr(w.pointAttribs(E,E.selected&&"select")),w=w.getPointPath(E,y),y[y?"animate":"attr"]({d:w}).addClass(E.getClassName(),!0))},k.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},k.prototype.init=function(){P.prototype.init.apply(this,arguments),this.options.stacking=void 0},k.prototype.pointAttribs=function(E,w){return delete(E=P.prototype.pointAttribs.call(this,E,w)).fill,E},k.prototype.toYData=function(E){return[E.high,E.low,E.close]},k.prototype.translate=function(){var E=this,w=E.yAxis,T=this.pointArrayMap&&this.pointArrayMap.slice()||[],y=T.map(function(A){return"plot".concat(A.charAt(0).toUpperCase()+A.slice(1))});y.push("yBottom"),T.push("low"),P.prototype.translate.apply(E),E.points.forEach(function(A){T.forEach(function(g,v){null!==(g=A[g])&&(E.dataModify&&(g=E.dataModify.modifyValue(g)),A[y[v]]=w.toPixels(g,!0))}),A.tooltipPos[1]=A.plotHigh+w.pos-E.chart.plotTop})},k.defaultOptions=R(W.defaultOptions,U),k}(W),V(Z.prototype,{pointClass:O,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),G.registerSeriesType("hlc",Z),Z}),q(Y,"Series/OHLC/OHLCPoint.js",[Y["Core/Series/SeriesRegistry.js"]],function(O){var G,U=this&&this.__extends||(G=function(Z,$){return(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,V){W.__proto__=V}||function(W,V){for(var R in V)V.hasOwnProperty(R)&&(W[R]=V[R])})(Z,$)},function(Z,$){function W(){this.constructor=Z}G(Z,$),Z.prototype=null===$?Object.create($):(W.prototype=$.prototype,new W)});return function(G){function Z(){var $=null!==G&&G.apply(this,arguments)||this;return $.open=void 0,$.options=void 0,$.plotOpen=void 0,$.series=void 0,$}return U(Z,G),Z.prototype.getClassName=function(){return G.prototype.getClassName.call(this)+(this.open\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}}}),q(Y,"Series/OHLC/OHLCSeries.js",[Y["Series/OHLC/OHLCPoint.js"],Y["Series/OHLC/OHLCSeriesDefaults.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G,Z){function $(y){var A=(y=y.options).dataGrouping;A&&y.useOhlcData&&"highcharts-navigator-series"!==y.id&&(A.approximation="ohlc")}function W(y){(y=y.options).useOhlcData&&"highcharts-navigator-series"!==y.id&&k(this,{pointValKey:T.prototype.pointValKey,pointArrayMap:T.prototype.pointArrayMap,toYData:T.prototype.toYData})}var y,V=this&&this.__extends||(y=function(A,g){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var N in S)S.hasOwnProperty(N)&&(v[N]=S[N])})(A,g)},function(A,g){function v(){this.constructor=A}y(A,g),A.prototype=null===g?Object.create(g):(v.prototype=g.prototype,new v)}),R=G.seriesTypes.hlc,P=Z.addEvent,k=Z.extend,E=Z.merge,w=[],T=function(y){function A(){var g=null!==y&&y.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return V(A,y),A.compose=function(g){for(var v=1;v"u"},W.prototype.hasNewShapeType=function(){var V=this.options.shape||this.series.options.shape;return this.graphic&&V&&V!==this.graphic.symbolKey},W}(O.seriesTypes.column.prototype.pointClass)}),q(Y,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}}}),q(Y,"Series/Flags/FlagsSymbols.js",[Y["Core/Renderer/RendererRegistry.js"]],function(O){var U;return function(G){function Z(V,R,P,k,E){var w=E&&E.anchorX||V;E=E&&E.anchorY||R;var T=this.circle(w-1,E-1,2,2);return T.push(["M",w,E],["L",V,R+k],["L",V,R],["L",V+P,R],["L",V+P,R+k],["L",V,R+k],["Z"]),T}function $(V,R){V[R+"pin"]=function(P,k,E,w,T){var y=T&&T.anchorX;T=T&&T.anchorY,"circle"===R&&w>E&&(P-=Math.round((w-E)/2),E=w);var A=V[R](P,k,E,w);if(y&&T){var g=y;"circle"===R?g=P+E/2:(P=A[0],E=A[1],"M"===P[0]&&"L"===E[0]&&(g=(P[1]+E[1])/2)),A.push(["M",g,k>T?k:k+w],["L",y,T]),A=A.concat(V.circle(y-1,T-1,2,2))}return A}}var W=[];G.compose=function(V){if(-1===W.indexOf(V)){W.push(V);var R=V.prototype.symbols;R.flag=Z,$(R,"circle"),$(R,"square")}var P=O.getRendererType();W.indexOf(P)&&(W.push(P),R=V.prototype.symbols,(V=P.prototype.symbols).circlepin=R.circlepin,V.flag=R.flag.bind(R),V.squarepin=R.squarepin)}}(U||(U={})),U}),q(Y,"Series/OnSeriesComposition.js",[Y["Series/Column/ColumnSeries.js"],Y["Core/Series/Series.js"],Y["Core/Utilities.js"]],function(O,U,G){var R,Z=O.prototype,$=U.prototype,W=G.defined,V=G.stableSort;return function(P){function k(T){return $.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,T)}function E(){Z.translate.apply(this);var I,T=this,y=T.options,A=T.chart,g=T.points,v=y.onSeries,S=(v=v&&A.get(v))&&v.options.step,N=v&&v.points,j=A.inverted,M=T.xAxis,D=T.yAxis;A=g.length-1,y=y.onKey||"y";var u,b=N&&N.length,d=0;if(v&&v.visible&&b){d=(v.pointXOffset||0)+(v.barW||0)/2;var a=v.currentDataGrouping,n=N[b-1].x+(a?a.totalRange:0);for(V(g,function(_,B){return _.x-B.x}),y="plot"+y[0].toUpperCase()+y.substr(1);b--&&g[A];){var o=N[b];if((a=g[A]).y=o.y,o.x<=a.x&&typeof o[y]<"u"){if(a.x<=n&&(a.plotY=o[y],o.x--A)break}}}g.forEach(function(_,B){if(_.plotX+=d,(typeof _.plotY>"u"||j)&&(0<=_.plotX&&_.plotX<=M.len?j?(_.plotY=M.translate(_.x,0,1,0,1),_.plotX=W(_.y)?D.translate(_.y,0,0,0,1):0):_.plotY=(M.opposite?0:T.yAxis.len)+M.offset:_.shapeArgs={}),(I=g[B-1])&&I.plotX===_.plotX){typeof I.stackIndex>"u"&&(I.stackIndex=0);var X=I.stackIndex+1}_.stackIndex=X}),this.onSeries=v}var w=[];P.compose=function(T){if(-1===w.indexOf(T)){w.push(T);var y=T.prototype;y.getPlotBox=k,y.translate=E}return T},P.getPlotBox=k,P.translate=E}(R||(R={})),R}),q(Y,"Series/Flags/FlagsSeries.js",[Y["Series/Flags/FlagsPoint.js"],Y["Series/Flags/FlagsSeriesDefaults.js"],Y["Series/Flags/FlagsSymbols.js"],Y["Core/Globals.js"],Y["Series/OnSeriesComposition.js"],Y["Core/Renderer/RendererUtilities.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Renderer/SVG/SVGElement.js"],Y["Core/Utilities.js"]],function(O,U,G,Z,$,W,V,R,P){var N,k=this&&this.__extends||(N=function(j,M){return(N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,I){D.__proto__=I}||function(D,I){for(var b in I)I.hasOwnProperty(b)&&(D[b]=I[b])})(j,M)},function(j,M){function D(){this.constructor=j}N(j,M),j.prototype=null===M?Object.create(M):(D.prototype=M.prototype,new D)});Z=Z.noop;var E=W.distribute,w=V.series,T=V.seriesTypes.column,y=P.addEvent,A=P.defined;W=P.extend;var g=P.merge,v=P.objectEach,S=P.wrap;return P=function(N){function j(){var M=null!==N&&N.apply(this,arguments)||this;return M.data=void 0,M.options=void 0,M.points=void 0,M}return k(j,N),j.prototype.animate=function(M){M&&this.setClip()},j.prototype.drawPoints=function(){var m,M=this.points,D=this.chart,I=D.renderer,b=D.inverted,d=this.options,u=d.y,a=this.yAxis,n={},o=[];for(m=M.length;m--;){var _=M[m],B=(b?_.plotY:_.plotX)>this.xAxis.len,X=_.plotX,it=_.stackIndex,rt=_.options.shape||d.shape,L=_.plotY;typeof L<"u"&&(L=_.plotY+u-(typeof it<"u"&&it*d.stackDistance)),_.anchorX=it?void 0:_.plotX;var z=it?void 0:_.plotY,et="flag"!==rt;it=_.graphic,typeof L<"u"&&0<=X&&!B?(it&&_.hasNewShapeType()&&(it=it.destroy()),it||(it=_.graphic=I.label("",null,null,rt,null,null,d.useHTML).addClass("highcharts-point").add(this.markerGroup),_.graphic.div&&(_.graphic.div.point=_),it.isNew=!0),it.attr({align:et?"center":"left",width:d.width,height:d.height,"text-align":d.textAlign}),D.styledMode||it.attr(this.pointAttribs(_)).css(g(d.style,_.style)).shadow(d.shadow),0"u"&&(n.align="right"),u[a]=this,d.align="right",d.preventDefault())}),G(O,"destroy",function(){var d=this.chart,u=this.options&&this.options.top+","+this.options.height;u&&d._labelPanes&&d._labelPanes[u]===this&&delete d._labelPanes[u]}),G(O,"getPlotLinePath",function(d){var X,it,rt,L,a=this,n=this.isLinked&&!this.series?this.linkedParent.series:this.series,o=a.chart,m=o.renderer,_=a.left,B=a.top,z=[],et=[],at=d.translatedValue,st=d.value,H=d.force;if(o.options.isStock&&!1!==d.acrossPanes&&"xAxis"===a.coll||"yAxis"===a.coll){d.preventDefault(),et=function u(gt){var mt="xAxis"===gt?"yAxis":"xAxis";return gt=a.options[mt],j(gt)?[o[mt][gt]]:M(gt)?[o.get(gt)]:n.map(function(St){return St[mt]})}(a.coll),(a.isXAxis?o.yAxis:o.xAxis).forEach(function(gt){if(!v(gt.options.id)||-1===gt.options.id.indexOf("navigator")){var mt=gt.isXAxis?"yAxis":"xAxis";mt=v(gt.options[mt])?o[mt][gt.options[mt]]:o[mt][0],a===mt&&et.push(gt)}});var nt=et.length?[]:[a.isXAxis?o.yAxis[0]:o.xAxis[0]];et.forEach(function(gt){-1!==nt.indexOf(gt)||N(nt,function(mt){return mt.pos===gt.pos&&mt.len===gt.len})||nt.push(gt)});var yt=I(at,a.translate(st,void 0,void 0,d.old));j(yt)&&(a.horiz?nt.forEach(function(gt){var mt;it=gt.pos,L=it+gt.len,X=rt=Math.round(yt+a.transB),"pass"!==H&&(X<_||X>_+a.width)&&(H?X=rt=g(X,_,_+a.width):mt=!0),mt||z.push(["M",X,it],["L",rt,L])}):nt.forEach(function(gt){var mt;X=gt.pos,rt=X+gt.len,it=L=Math.round(B+a.height-yt),"pass"!==H&&(itB+a.height)&&(H?it=L=g(it,B,B+a.height):mt=!0),mt||z.push(["M",X,it],["L",rt,L])})),d.path=0ot&&z=a&&(st=-(rt.translateX+m.width-a)),rt.attr({x:o+st,y:it,anchorX:_?o:this.opposite?0:n.chartWidth,anchorY:_?this.opposite?n.chartHeight:0:it+m.height/2})}}),R.prototype.forceCropping=function(){var d=this.chart,u=this.options.dataGrouping;return!1!==this.allowDG&&u&&I(u.enabled,d.options.isStock)},G(U,"update",function(d){"scrollbar"in(d=d.options)&&this.navigator&&(D(!0,this.options.scrollbar,d.scrollbar),this.navigator.update({}),delete d.scrollbar)}),k}),q(Y,"masters/modules/stock.src.js",[Y["Core/Globals.js"],Y["Series/DataModifyComposition.js"],Y["Stock/Navigator/Navigator.js"],Y["Stock/RangeSelector/RangeSelector.js"],Y["Stock/Scrollbar/Scrollbar.js"],Y["Core/Axis/OrdinalAxis.js"],Y["Series/OHLC/OHLCSeries.js"],Y["Series/Flags/FlagsSeries.js"],Y["Core/Chart/StockChart.js"]],function(O,U,G,Z,$,W,V,R,P){O.Navigator=G,O.RangeSelector=Z,O.Scrollbar=$,O.StockChart=O.stockChart=P.stockChart,U.compose(O.Series,O.Axis,O.Point),R.compose(O.Renderer),G.compose(O.Axis,O.Chart,O.Series),V.compose(O.Series),W.compose(O.Axis,O.Series,O.Chart),Z.compose(O.Axis,O.Chart),$.compose(O.Axis)})},Jt.exports?(Y.default=Y,Jt.exports=Y):(pt=[ht(3470)],void 0!==(t=function(q){return Y(q),Y.Highcharts=q,Y}.apply($t,pt))&&(Jt.exports=t))},217:(Jt,$t,ht)=>{var pt,t,Y;Y=function(Y){function q(O,U,G,Z){O.hasOwnProperty(U)||(O[U]=Z.apply(null,G),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:U,module:O[U]}})))}q(Y=Y?Y._modules:{},"Series/ColorMapComposition.js",[Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U){var W,G=O.seriesTypes.column.prototype,Z=U.addEvent,$=U.defined;return function(V){function R(k){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:k&&"hover"===k.state?1:0})}var P=[];V.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},V.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(k){var E={};return!$(k.color)||k.state&&"normal"!==k.state||(E[this.colorProp||"fill"]=k.color),E},pointAttribs:G.pointAttribs},V.compose=function(k){var E=k.prototype.pointClass;return-1===P.indexOf(E)&&(P.push(E),Z(E,"afterSetState",R)),k}}(W||(W={})),W}),q(Y,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function O(U,G,Z,$){this.height=U,this.width=G,this.plot=$,this.startDirection=this.direction=Z,this.lH=this.nH=this.lW=this.nW=this.total=0,this.elArr=[],this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(W,V){return Math.max(W/V,V/W)}}}return O.prototype.addElement=function(U){this.lP.total=this.elArr[this.elArr.length-1],this.total+=U,0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH)),this.elArr.push(U)},O.prototype.reset=function(){this.lW=this.nW=0,this.elArr=[],this.total=0},O}()}),q(Y,"Series/DrawPointUtilities.js",[Y["Core/Utilities.js"]],function(O){return{draw:function(U,G){var Z=G.animatableAttribs,$=G.onComplete,W=G.css,V=G.renderer,R=U.series&&U.series.chart.hasRendered?void 0:U.series&&U.series.options.animation,P=U.graphic;if(G.attribs=G.attribs||{},G.attribs.class=U.getClassName(),U.shouldDraw())P||(U.graphic=P="text"===G.shapeType?V.text():V[G.shapeType](G.shapeArgs||{}),P.add(G.group)),W&&P.css(W),P.attr(G.attribs).animate(Z,!G.isNew&&R,$);else if(P){var k=function(){U.graphic=P=P&&P.destroy(),"function"==typeof $&&$()};Object.keys(Z).length?P.animate(Z,void 0,function(){return k()}):k()}}}}),q(Y,"Series/Treemap/TreemapPoint.js",[Y["Series/DrawPointUtilities.js"],Y["Core/Series/SeriesRegistry.js"],Y["Core/Utilities.js"]],function(O,U,G){var k,Z=this&&this.__extends||(k=function(E,w){return(k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,y){T.__proto__=y}||function(T,y){for(var A in y)y.hasOwnProperty(A)&&(T[A]=y[A])})(E,w)},function(E,w){function T(){this.constructor=E}k(E,w),E.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)}),$=U.series.prototype.pointClass,W=U.seriesTypes;U=W.pie.prototype.pointClass;var V=G.extend,R=G.isNumber,P=G.pick;return G=function(k){function E(){var w=null!==k&&k.apply(this,arguments)||this;return w.name=void 0,w.node=void 0,w.options=void 0,w.series=void 0,w.shapeType="rect",w.value=void 0,w}return Z(E,k),E.prototype.draw=function(w){O.draw(this,w)},E.prototype.getClassName=function(){var w=$.prototype.getClassName.call(this),T=this.series,y=T.options;return this.node.level<=T.nodeMap[T.rootNode].level?w+=" highcharts-above-level":this.node.isLeaf||P(y.interactByLeaf,!y.allowTraversingTree)?this.node.isLeaf||(w+=" highcharts-internal-node"):w+=" highcharts-internal-node-interactive",w},E.prototype.isValid=function(){return!(!this.id&&!R(this.value))},E.prototype.setState=function(w){$.prototype.setState.call(this,w),this.graphic&&this.graphic.attr({zIndex:"hover"===w?1:0})},E.prototype.shouldDraw=function(){return R(this.plotY)&&null!==this.y},E}(W.scatter.prototype.pointClass),V(G.prototype,{setVisible:U.prototype.setVisible}),G}),q(Y,"Series/Treemap/TreemapUtilities.js",[Y["Core/Utilities.js"]],function(O){var G,Z,U=O.objectEach;return(Z=G||(G={})).AXIS_MAX=100,Z.isBoolean=function(W){return"boolean"==typeof W},Z.eachObject=function(W,V,R){R=R||this,U(W,function(P,k){V.call(R,P,k,W)})},Z.recursive=function $(W,V,R){void 0===R&&(R=this),!1!==(W=V.call(R,W))&&$(W,V,R)},G}),q(Y,"Series/TreeUtilities.js",[Y["Core/Color/Color.js"],Y["Core/Utilities.js"]],function(O,U){var Z=U.extend,$=U.isArray,W=U.isNumber,V=U.isObject,R=U.merge,P=U.pick;return{getColor:function(k,E){var M,w=E.index,T=E.mapOptionsToLevel,y=E.parentColor,A=E.parentColorIndex,g=E.series,v=E.colors,S=E.siblings,N=g.points,j=g.chart.options.chart;if(k){if(N=N[k.i],k=T[k.level]||{},T=N&&k.colorByPoint)var D=N.index%(v?v.length:j.colorCount),I=v&&v[D];g.chart.styledMode||(v=N&&N.options.color,j=k&&k.color,(M=y)&&(M=(M=k&&k.colorVariation)&&"brightness"===M.key&&w&&S?O.parse(y).brighten(w/S*M.to).get():y),M=P(v,j,I,M,g.color));var b=P(N&&N.options.colorIndex,k&&k.colorIndex,D,A,E.colorIndex)}return{color:M,colorIndex:b}},getLevelOptions:function(k){var E={};if(V(k)){var w=W(k.from)?k.from:1,T=k.levels,y={},A=V(k.defaults)?k.defaults:{};for($(T)&&(y=T.reduce(function(g,v){if(V(v)&&W(v.level)){var S=R({},v),N=P(S.levelIsConstant,A.levelIsConstant);delete S.levelIsConstant,delete S.level,v=v.level+(N?0:w-1),V(g[v])?R(!0,g[v],S):g[v]=S}return g},{})),T=W(k.to)?k.to:1,k=0;k<=T;k++)E[k]=R({},A,V(y[k])?y[k]:{})}return E},setTreeValues:function G(k,E){var w=E.before,T=E.idRoot,y=E.mapIdToNode[T],A=E.points[k.i],g=A&&A.options||{},v=[],S=0;return k.levelDynamic=k.level-(!1!==E.levelIsConstant?0:y.level),k.name=P(A&&A.name,""),k.visible=T===k.id||!0===E.visible,"function"==typeof w&&(k=w(k,E)),k.children.forEach(function(N,j){var M=Z({},E);Z(M,{index:j,siblings:k.children.length,visible:k.visible}),N=G(N,M),v.push(N),N.visible&&(S+=N.val)}),w=P(g.value,S),k.visible=0<=w&&(0gt.lP.lR&&st.algorithmCalcPoints(L,!1,gt,at,ot),nt===yt&&st.algorithmCalcPoints(L,!0,gt,at,ot),nt+=1}),at},rt.prototype.alignDataLabel=function(L,z,et){var at=et.style;at&&!b(at.textOverflow)&&z.text&&z.getBBox().width>z.text.textWidth&&z.css({textOverflow:"ellipsis",width:at.width+="px"}),g.prototype.alignDataLabel.apply(this,arguments),L.dataLabel&&L.dataLabel.attr({zIndex:(L.node.zIndex||0)+1})},rt.prototype.calculateChildrenAreas=function(L,z){var nt,et=this,at=et.options,st=et.mapOptionsToLevel[L.level+1],H=B(et[st&&st.layoutAlgorithm]&&st.layoutAlgorithm,at.layoutAlgorithm),ot=at.alternateStartingDirection;L=L.children.filter(function(yt){return!yt.ignore}),st&&st.layoutStartingDirection&&(z.direction="vertical"===st.layoutStartingDirection?0:1),nt=et[H](z,L),L.forEach(function(yt,gt){gt=nt[gt],yt.values=_(gt,{val:yt.childrenTotal,direction:ot?1-z.direction:z.direction}),yt.pointValues=_(gt,{x:gt.x/et.axisRatio,y:R.AXIS_MAX-gt.y-gt.height,width:gt.width/et.axisRatio}),yt.children.length&&et.calculateChildrenAreas(yt,yt.values)})},rt.prototype.createList=function(L){var z=this.chart,et=[];if(z.breadcrumbs){var at=0;et.push({level:at,levelOptions:z.series[0]}),z=L.target.nodeMap[L.newRootId];for(var st=[];z.parent||""===z.parent;)st.push(z),z=L.target.nodeMap[z.parent];st.reverse().forEach(function(H){et.push({level:++at,levelOptions:H})}),1>=et.length&&(et.length=0)}return et},rt.prototype.drawDataLabels=function(){var et,at,L=this,z=L.mapOptionsToLevel;L.points.filter(function(st){return st.node.visible}).forEach(function(st){at=z[st.node.level],et={style:{}},st.node.isLeaf||(et.enabled=!1),at&&at.dataLabels&&(et=_(et,at.dataLabels),L._hasPointLabels=!0),st.shapeArgs&&(et.style.width=st.shapeArgs.width,st.dataLabel&&st.dataLabel.css({width:st.shapeArgs.width+"px"})),st.dlOptions=_(et,st.options.dataLabels)}),A.prototype.drawDataLabels.call(this)},rt.prototype.drawPoints=function(L){void 0===L&&(L=this.points);var z=this,et=z.chart,at=et.renderer,st=et.styledMode,H=z.options,ot=st?{}:H.shadow,nt=H.borderRadius,yt=et.pointCount"u"&&(at[st]=[]),at[st].push(H),at},{"":[]}),R.eachObject(z,function(at,st,H){""!==st&&-1===et.indexOf(st)&&(at.forEach(function(ot){H[""].push(ot)}),delete H[st])}),z},rt.prototype.getTree=function(){var L=this.data.map(function(z){return z.id});return L=this.getListOfParents(this.data,L),this.nodeMap={},this.nodeList=[],this.buildTree("",-1,0,L)},rt.prototype.buildTree=function(L,z,et,at,st){var gt,H=this,ot=[],nt=H.points[z],yt=0;(at[L]||[]).forEach(function(St){gt=H.buildTree(H.points[St].id,St,et+1,at,L),yt=Math.max(gt.height+1,yt),ot.push(gt)});var mt=(new H.NodeClass).init(L,z,ot,yt,et,H,st);return ot.forEach(function(St){St.parentNode=mt}),H.nodeMap[mt.id]=mt,H.nodeList.push(mt),nt&&(nt.node=mt,mt.point=nt),mt},rt.prototype.hasData=function(){return!!this.processedXData.length},rt.prototype.init=function(L,z){var et=this,at=_(z.drillUpButton,z.breadcrumbs),st=D(et,"setOptions",function(H){H=H.userOptions,b(H.allowDrillToNode)&&!b(H.allowTraversingTree)&&(H.allowTraversingTree=H.allowDrillToNode,delete H.allowDrillToNode),b(H.drillUpButton)&&!b(H.traverseUpButton)&&(H.traverseUpButton=H.drillUpButton,delete H.drillUpButton)});A.prototype.init.call(et,L,z),delete et.opacity,et.eventsToUnbind.push(st),et.options.allowTraversingTree&&(et.eventsToUnbind.push(D(et,"click",et.onClickDrillToNode)),et.eventsToUnbind.push(D(et,"setRootNode",function(H){var ot=et.chart;ot.breadcrumbs&&ot.breadcrumbs.updateProperties(et.createList(H))})),et.eventsToUnbind.push(D(et,"update",function(H,ot){(ot=this.chart.breadcrumbs)&&H.options.breadcrumbs&&ot.update(H.options.breadcrumbs)})),et.eventsToUnbind.push(D(et,"destroy",function(H){var ot=this.chart;ot.breadcrumbs&&(ot.breadcrumbs.destroy(),H.keepEventsForUpdate||(ot.breadcrumbs=void 0))}))),L.breadcrumbs||(L.breadcrumbs=new k(L,at)),et.eventsToUnbind.push(D(L.breadcrumbs,"up",function(H){H=this.level-H.newLevel;for(var ot=0;ot{point.name}
: {point.value}
"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:v?0:.1,halo:!1,opacity:.75,shadow:!1}}}),rt}(S),u(P.prototype,{buildKDTree:O,colorAttribs:U.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:Z.drawRectangle,getExtremesFromAll:!0,getSymbol:O,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:V,NodeClass:w,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:R.recursive}}),U.compose(P),$.registerSeriesType("treemap",P),P}),q(Y,"masters/modules/treemap.src.js",[Y["Core/Globals.js"],Y["Extensions/Breadcrumbs.js"]],function(O,U){O.Breadcrumbs=U})},Jt.exports?(Y.default=Y,Jt.exports=Y):(pt=[ht(3470)],void 0!==(t=function(q){return Y(q),Y.Highcharts=q,Y}.apply($t,pt))&&(Jt.exports=t))},3353:(Jt,$t,ht)=>{"use strict";function pt(g){var v=Array.prototype.slice.call(arguments,1);return v.forEach(function(S){S&&Object.keys(S).forEach(function(N){g[N]=S[N]})}),g}function t(g){return Object.prototype.toString.call(g)}function U(g){return"[object Function]"===t(g)}function G(g){return g.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Z={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var W={"http:":{validate:function(g,v,S){var N=g.slice(v);return S.re.http||(S.re.http=new RegExp("^\\/\\/"+S.re.src_auth+S.re.src_host_port_strict+S.re.src_path,"i")),S.re.http.test(N)?N.match(S.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(g,v,S){var N=g.slice(v);return S.re.no_http||(S.re.no_http=new RegExp("^"+S.re.src_auth+"(?:localhost|(?:(?:"+S.re.src_domain+")\\.)+"+S.re.src_domain_root+")"+S.re.src_port+S.re.src_host_terminator+S.re.src_path,"i")),S.re.no_http.test(N)?v>=3&&":"===g[v-3]||v>=3&&"/"===g[v-3]?0:N.match(S.re.no_http)[0].length:0}},"mailto:":{validate:function(g,v,S){var N=g.slice(v);return S.re.mailto||(S.re.mailto=new RegExp("^"+S.re.src_email_name+"@"+S.re.src_host_strict,"i")),S.re.mailto.test(N)?N.match(S.re.mailto)[0].length:0}}},R="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function w(g){var v=g.re=ht(9234)(g.__opts__),S=g.__tlds__.slice();function N(I){return I.replace("%TLDS%",v.src_tlds)}g.onCompile(),g.__tlds_replaced__||S.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),S.push(v.src_xn),v.src_tlds=S.join("|"),v.email_fuzzy=RegExp(N(v.tpl_email_fuzzy),"i"),v.link_fuzzy=RegExp(N(v.tpl_link_fuzzy),"i"),v.link_no_ip_fuzzy=RegExp(N(v.tpl_link_no_ip_fuzzy),"i"),v.host_fuzzy_test=RegExp(N(v.tpl_host_fuzzy_test),"i");var j=[];function M(I,b){throw new Error('(LinkifyIt) Invalid schema "'+I+'": '+b)}g.__compiled__={},Object.keys(g.__schemas__).forEach(function(I){var b=g.__schemas__[I];if(null!==b){var d={validate:null,link:null};if(g.__compiled__[I]=d,function q(g){return"[object Object]"===t(g)}(b))return!function O(g){return"[object RegExp]"===t(g)}(b.validate)?U(b.validate)?d.validate=b.validate:M(I,b):d.validate=function k(g){return function(v,S){var N=v.slice(S);return g.test(N)?N.match(g)[0].length:0}}(b.validate),void(U(b.normalize)?d.normalize=b.normalize:b.normalize?M(I,b):d.normalize=function(g,v){v.normalize(g)});if(function Y(g){return"[object String]"===t(g)}(b))return void j.push(I);M(I,b)}}),j.forEach(function(I){g.__compiled__[g.__schemas__[I]]&&(g.__compiled__[I].validate=g.__compiled__[g.__schemas__[I]].validate,g.__compiled__[I].normalize=g.__compiled__[g.__schemas__[I]].normalize)}),g.__compiled__[""]={validate:null,normalize:function(g,v){v.normalize(g)}};var D=Object.keys(g.__compiled__).filter(function(I){return I.length>0&&g.__compiled__[I]}).map(G).join("|");g.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+v.src_ZPCc+"))("+D+")","i"),g.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+v.src_ZPCc+"))("+D+")","ig"),g.re.pretest=RegExp("("+g.re.schema_test.source+")|("+g.re.host_fuzzy_test.source+")|@","i"),function P(g){g.__index__=-1,g.__text_cache__=""}(g)}function T(g,v){var S=g.__index__,N=g.__last_index__,j=g.__text_cache__.slice(S,N);this.schema=g.__schema__.toLowerCase(),this.index=S+v,this.lastIndex=N+v,this.raw=j,this.text=j,this.url=j}function y(g,v){var S=new T(g,v);return g.__compiled__[S.schema].normalize(S,g),S}function A(g,v){if(!(this instanceof A))return new A(g,v);v||function $(g){return Object.keys(g||{}).reduce(function(v,S){return v||Z.hasOwnProperty(S)},!1)}(g)&&(v=g,g={}),this.__opts__=pt({},Z,v),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=pt({},W,g),this.__compiled__={},this.__tlds__=R,this.__tlds_replaced__=!1,this.re={},w(this)}A.prototype.add=function(v,S){return this.__schemas__[v]=S,w(this),this},A.prototype.set=function(v){return this.__opts__=pt(this.__opts__,v),this},A.prototype.test=function(v){if(this.__text_cache__=v,this.__index__=-1,!v.length)return!1;var S,N,j,M,D,I,b,d;if(this.re.schema_test.test(v))for((b=this.re.schema_search).lastIndex=0;null!==(S=b.exec(v));)if(M=this.testSchemaAt(v,S[2],b.lastIndex)){this.__schema__=S[2],this.__index__=S.index+S[1].length,this.__last_index__=S.index+S[0].length+M;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&((d=v.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||d=0&&null!==(j=v.match(this.re.email_fuzzy))&&(D=j.index+j[1].length,I=j.index+j[0].length,(this.__index__<0||Dthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=D,this.__last_index__=I))),this.__index__>=0},A.prototype.pretest=function(v){return this.re.pretest.test(v)},A.prototype.testSchemaAt=function(v,S,N){return this.__compiled__[S.toLowerCase()]?this.__compiled__[S.toLowerCase()].validate(v,N,this):0},A.prototype.match=function(v){var S=0,N=[];this.__index__>=0&&this.__text_cache__===v&&(N.push(y(this,S)),S=this.__last_index__);for(var j=S?v.slice(S):v;this.test(j);)N.push(y(this,S)),j=j.slice(this.__last_index__),S+=this.__last_index__;return N.length?N:null},A.prototype.tlds=function(v,S){return v=Array.isArray(v)?v:[v],S?(this.__tlds__=this.__tlds__.concat(v).sort().filter(function(N,j,M){return N!==M[j-1]}).reverse(),w(this),this):(this.__tlds__=v.slice(),this.__tlds_replaced__=!0,w(this),this)},A.prototype.normalize=function(v){v.schema||(v.url="http://"+v.url),"mailto:"===v.schema&&!/^mailto:/i.test(v.url)&&(v.url="mailto:"+v.url)},A.prototype.onCompile=function(){},Jt.exports=A},9234:(Jt,$t,ht)=>{"use strict";Jt.exports=function(pt){var t={};t.src_Any=ht(1129).source,t.src_Cc=ht(9699).source,t.src_Z=ht(5450).source,t.src_P=ht(6020).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var Y="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+Y+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(pt&&pt["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},4826:(Jt,$t,ht)=>{"use strict";Jt.exports=ht(6776)},6798:(Jt,$t,ht)=>{"use strict";Jt.exports=ht(5485)},2484:Jt=>{"use strict";Jt.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},3266:Jt=>{"use strict";var O="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",U="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",V=new RegExp("^(?:"+O+"|"+U+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)"),R=new RegExp("^(?:"+O+"|"+U+")");Jt.exports.n=V,Jt.exports.q=R},3332:(Jt,$t,ht)=>{"use strict";var Y=Object.prototype.hasOwnProperty;function q(u,a){return Y.call(u,a)}function G(u){return!(u>=55296&&u<=57343||u>=64976&&u<=65007||65535==(65535&u)||65534==(65535&u)||u>=0&&u<=8||11===u||u>=14&&u<=31||u>=127&&u<=159||u>1114111)}function Z(u){if(u>65535){var a=55296+((u-=65536)>>10),n=56320+(1023&u);return String.fromCharCode(a,n)}return String.fromCharCode(u)}var $=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,V=new RegExp($.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),R=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,P=ht(6798);var T=/[&<>"]/,y=/[&<>"]/g,A={"&":"&","<":"<",">":">",'"':"""};function g(u){return A[u]}var S=/[.?*+^$[\]\\(){}|-]/g;var D=ht(6020);$t.lib={},$t.lib.mdurl=ht(1184),$t.lib.ucmicro=ht(9315),$t.assign=function O(u){var a=Array.prototype.slice.call(arguments,1);return a.forEach(function(n){if(n){if("object"!=typeof n)throw new TypeError(n+"must be object");Object.keys(n).forEach(function(o){u[o]=n[o]})}}),u},$t.isString=function t(u){return"[object String]"===function pt(u){return Object.prototype.toString.call(u)}(u)},$t.has=q,$t.unescapeMd=function E(u){return u.indexOf("\\")<0?u:u.replace($,"$1")},$t.unescapeAll=function w(u){return u.indexOf("\\")<0&&u.indexOf("&")<0?u:u.replace(V,function(a,n,o){return n||function k(u,a){var n=0;return q(P,a)?P[a]:35===a.charCodeAt(0)&&R.test(a)&&G(n="x"===a[1].toLowerCase()?parseInt(a.slice(2),16):parseInt(a.slice(1),10))?Z(n):u}(a,o)})},$t.isValidEntityCode=G,$t.fromCodePoint=Z,$t.escapeHtml=function v(u){return T.test(u)?u.replace(y,g):u},$t.arrayReplaceAt=function U(u,a,n){return[].concat(u.slice(0,a),n,u.slice(a+1))},$t.isSpace=function j(u){switch(u){case 9:case 32:return!0}return!1},$t.isWhiteSpace=function M(u){if(u>=8192&&u<=8202)return!0;switch(u){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},$t.isMdAsciiPunct=function b(u){switch(u){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},$t.isPunctChar=function I(u){return D.test(u)},$t.escapeRE=function N(u){return u.replace(S,"\\$&")},$t.normalizeReference=function d(u){return u=u.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(u=u.replace(/\u1e9e/g,"\xdf")),u.toLowerCase().toUpperCase()}},8198:(Jt,$t,ht)=>{"use strict";$t.parseLinkLabel=ht(9605),$t.parseLinkDestination=ht(4072),$t.parseLinkTitle=ht(4658)},4072:(Jt,$t,ht)=>{"use strict";var pt=ht(3332).unescapeAll;Jt.exports=function(Y,q,O){var U,G,$=q,W={ok:!1,pos:0,lines:0,str:""};if(60===Y.charCodeAt(q)){for(q++;q{"use strict";Jt.exports=function(ht,pt,t){var Y,q,O,U,G=-1,Z=ht.posMax,$=ht.pos;for(ht.pos=pt+1,Y=1;ht.pos{"use strict";var pt=ht(3332).unescapeAll;Jt.exports=function(Y,q,O){var U,G,Z=0,$=q,W={ok:!1,pos:0,lines:0,str:""};if(q>=O||34!==(G=Y.charCodeAt(q))&&39!==G&&40!==G)return W;for(q++,40===G&&(G=41);q{"use strict";var pt=ht(3332),t=ht(8198),Y=ht(7172),q=ht(535),O=ht(4223),U=ht(2900),G=ht(3353),Z=ht(1184),$=ht(4879),W={default:ht(4210),zero:ht(7020),commonmark:ht(8687)},V=/^(vbscript|javascript|file|data):/,R=/^data:image\/(gif|png|jpeg|webp);/;function P(y){var A=y.trim().toLowerCase();return!V.test(A)||!!R.test(A)}var k=["http:","https:","mailto:"];function E(y){var A=Z.parse(y,!0);if(A.hostname&&(!A.protocol||k.indexOf(A.protocol)>=0))try{A.hostname=$.toASCII(A.hostname)}catch{}return Z.encode(Z.format(A))}function w(y){var A=Z.parse(y,!0);if(A.hostname&&(!A.protocol||k.indexOf(A.protocol)>=0))try{A.hostname=$.toUnicode(A.hostname)}catch{}return Z.decode(Z.format(A))}function T(y,A){if(!(this instanceof T))return new T(y,A);A||pt.isString(y)||(A=y||{},y="default"),this.inline=new U,this.block=new O,this.core=new q,this.renderer=new Y,this.linkify=new G,this.validateLink=P,this.normalizeLink=E,this.normalizeLinkText=w,this.utils=pt,this.helpers=pt.assign({},t),this.options={},this.configure(y),A&&this.set(A)}T.prototype.set=function(y){return pt.assign(this.options,y),this},T.prototype.configure=function(y){var g,A=this;if(pt.isString(y)&&!(y=W[g=y]))throw new Error('Wrong `markdown-it` preset "'+g+'", check name');if(!y)throw new Error("Wrong `markdown-it` preset, can't be empty");return y.options&&A.set(y.options),y.components&&Object.keys(y.components).forEach(function(v){y.components[v].rules&&A[v].ruler.enableOnly(y.components[v].rules),y.components[v].rules2&&A[v].ruler2.enableOnly(y.components[v].rules2)}),this},T.prototype.enable=function(y,A){var g=[];Array.isArray(y)||(y=[y]),["core","block","inline"].forEach(function(S){g=g.concat(this[S].ruler.enable(y,!0))},this),g=g.concat(this.inline.ruler2.enable(y,!0));var v=y.filter(function(S){return g.indexOf(S)<0});if(v.length&&!A)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+v);return this},T.prototype.disable=function(y,A){var g=[];Array.isArray(y)||(y=[y]),["core","block","inline"].forEach(function(S){g=g.concat(this[S].ruler.disable(y,!0))},this),g=g.concat(this.inline.ruler2.disable(y,!0));var v=y.filter(function(S){return g.indexOf(S)<0});if(v.length&&!A)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+v);return this},T.prototype.use=function(y){var A=[this].concat(Array.prototype.slice.call(arguments,1));return y.apply(y,A),this},T.prototype.parse=function(y,A){if("string"!=typeof y)throw new Error("Input data should be a String");var g=new this.core.State(y,this,A);return this.core.process(g),g.tokens},T.prototype.render=function(y,A){return A=A||{},this.renderer.render(this.parse(y,A),this.options,A)},T.prototype.parseInline=function(y,A){var g=new this.core.State(y,this,A);return g.inlineMode=!0,this.core.process(g),g.tokens},T.prototype.renderInline=function(y,A){return A=A||{},this.renderer.render(this.parseInline(y,A),this.options,A)},Jt.exports=T},4223:(Jt,$t,ht)=>{"use strict";var pt=ht(1368),t=[["table",ht(2281),["paragraph","reference"]],["code",ht(6372)],["fence",ht(7931),["paragraph","reference","blockquote","list"]],["blockquote",ht(72),["paragraph","reference","blockquote","list"]],["hr",ht(8570),["paragraph","reference","blockquote","list"]],["list",ht(7827),["paragraph","reference","blockquote"]],["reference",ht(5886)],["heading",ht(3462),["paragraph","reference","blockquote"]],["lheading",ht(5920)],["html_block",ht(5134),["paragraph","reference","blockquote"]],["paragraph",ht(851)]];function Y(){this.ruler=new pt;for(var q=0;q=U||q.sCount[V]=P){q.line=U;break}for(Z=0;Z{"use strict";var pt=ht(1368),t=[["normalize",ht(7398)],["block",ht(8905)],["inline",ht(3591)],["linkify",ht(9212)],["replacements",ht(1982)],["smartquotes",ht(8157)]];function Y(){this.ruler=new pt;for(var q=0;q{"use strict";var pt=ht(1368),t=[["text",ht(1767)],["newline",ht(2921)],["escape",ht(8763)],["backticks",ht(415)],["strikethrough",ht(8165).w],["emphasis",ht(425).w],["link",ht(7219)],["image",ht(7936)],["autolink",ht(6973)],["html_inline",ht(3722)],["entity",ht(3559)]],Y=[["balance_pairs",ht(9269)],["strikethrough",ht(8165).g],["emphasis",ht(425).g],["text_collapse",ht(8025)]];function q(){var O;for(this.ruler=new pt,O=0;O=W)break}else O.pending+=O.src[O.pos++]}O.pending&&O.pushPending()},q.prototype.parse=function(O,U,G,Z){var $,W,V,R=new this.State(O,U,G,Z);for(this.tokenize(R),V=(W=this.ruler2.getRules("")).length,$=0;${"use strict";Jt.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},4210:Jt=>{"use strict";Jt.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},7020:Jt=>{"use strict";Jt.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},7172:(Jt,$t,ht)=>{"use strict";var pt=ht(3332).assign,t=ht(3332).unescapeAll,Y=ht(3332).escapeHtml,q={};function O(){this.rules=pt({},q)}q.code_inline=function(U,G,Z,$,W){var V=U[G];return""+Y(U[G].content)+""},q.code_block=function(U,G,Z,$,W){var V=U[G];return""+Y(U[G].content)+"\n"},q.fence=function(U,G,Z,$,W){var k,E,w,T,V=U[G],R=V.info?t(V.info).trim():"",P="";return R&&(P=R.split(/\s+/g)[0]),0===(k=Z.highlight&&Z.highlight(V.content,P)||Y(V.content)).indexOf(""+k+"\n"):"
"+k+"
\n"},q.image=function(U,G,Z,$,W){var V=U[G];return V.attrs[V.attrIndex("alt")][1]=W.renderInlineAsText(V.children,Z,$),W.renderToken(U,G,Z)},q.hardbreak=function(U,G,Z){return Z.xhtmlOut?"
\n":"
\n"},q.softbreak=function(U,G,Z){return Z.breaks?Z.xhtmlOut?"
\n":"
\n":"\n"},q.text=function(U,G){return Y(U[G].content)},q.html_block=function(U,G){return U[G].content},q.html_inline=function(U,G){return U[G].content},O.prototype.renderAttrs=function(G){var Z,$,W;if(!G.attrs)return"";for(W="",Z=0,$=G.attrs.length;Z<$;Z++)W+=" "+Y(G.attrs[Z][0])+'="'+Y(G.attrs[Z][1])+'"';return W},O.prototype.renderToken=function(G,Z,$){var W,V="",R=!1,P=G[Z];return P.hidden?"":(P.block&&-1!==P.nesting&&Z&&G[Z-1].hidden&&(V+="\n"),V+=(-1===P.nesting?"\n":">")},O.prototype.renderInline=function(U,G,Z){for(var $,W="",V=this.rules,R=0,P=U.length;R{"use strict";function $t(){this.__rules__=[],this.__cache__=null}$t.prototype.__find__=function(ht){for(var pt=0;pt{"use strict";var pt=ht(3332).isSpace;Jt.exports=function(Y,q,O,U){var G,Z,$,W,V,R,P,k,E,w,T,y,A,g,v,S,N,j,M,D,I=Y.lineMax,b=Y.bMarks[q]+Y.tShift[q],d=Y.eMarks[q];if(Y.sCount[q]-Y.blkIndent>=4||62!==Y.src.charCodeAt(b++))return!1;if(U)return!0;for(W=E=Y.sCount[q]+1,32===Y.src.charCodeAt(b)?(b++,W++,E++,G=!1,S=!0):9===Y.src.charCodeAt(b)?(S=!0,(Y.bsCount[q]+E)%4==3?(b++,W++,E++,G=!1):G=!0):S=!1,w=[Y.bMarks[q]],Y.bMarks[q]=b;b=d,g=[Y.sCount[q]],Y.sCount[q]=E-W,v=[Y.tShift[q]],Y.tShift[q]=b-Y.bMarks[q],j=Y.md.block.ruler.getRules("blockquote"),A=Y.parentType,Y.parentType="blockquote",k=q+1;k=(d=Y.eMarks[k])));k++)if(62!==Y.src.charCodeAt(b++)||D){if(R)break;for(N=!1,$=0,V=j.length;$=d,T.push(Y.bsCount[k]),Y.bsCount[k]=Y.sCount[k]+1+(S?1:0),g.push(Y.sCount[k]),Y.sCount[k]=E-W,v.push(Y.tShift[k]),Y.tShift[k]=b-Y.bMarks[k]}for(y=Y.blkIndent,Y.blkIndent=0,(M=Y.push("blockquote_open","blockquote",1)).markup=">",M.map=P=[q,0],Y.md.block.tokenize(Y,q,k),(M=Y.push("blockquote_close","blockquote",-1)).markup=">",Y.lineMax=I,Y.parentType=A,P[1]=Y.line,$=0;${"use strict";Jt.exports=function(ht,pt,t){var Y,q,O;if(ht.sCount[pt]-ht.blkIndent<4)return!1;for(q=Y=pt+1;Y=4))break;q=++Y}return ht.line=q,(O=ht.push("code_block","code",0)).content=ht.getLines(pt,q,4+ht.blkIndent,!0),O.map=[pt,ht.line],!0}},7931:Jt=>{"use strict";Jt.exports=function(ht,pt,t,Y){var q,O,U,G,Z,$,W,V=!1,R=ht.bMarks[pt]+ht.tShift[pt],P=ht.eMarks[pt];if(ht.sCount[pt]-ht.blkIndent>=4||R+3>P||126!==(q=ht.src.charCodeAt(R))&&96!==q||(Z=R,(O=(R=ht.skipChars(R,q))-Z)<3)||(W=ht.src.slice(Z,R),U=ht.src.slice(R,P),96===q&&U.indexOf(String.fromCharCode(q))>=0))return!1;if(Y)return!0;for(G=pt;!(++G>=t||(R=Z=ht.bMarks[G]+ht.tShift[G],P=ht.eMarks[G],R=4||(R=ht.skipChars(R,q),R-Z{"use strict";var pt=ht(3332).isSpace;Jt.exports=function(Y,q,O,U){var G,Z,$,W,V=Y.bMarks[q]+Y.tShift[q],R=Y.eMarks[q];if(Y.sCount[q]-Y.blkIndent>=4||(35!==(G=Y.src.charCodeAt(V))||V>=R))return!1;for(Z=1,G=Y.src.charCodeAt(++V);35===G&&V6||VV&&pt(Y.src.charCodeAt($-1))&&(R=$),Y.line=q+1,(W=Y.push("heading_open","h"+String(Z),1)).markup="########".slice(0,Z),W.map=[q,Y.line],(W=Y.push("inline","",0)).content=Y.src.slice(V,R).trim(),W.map=[q,Y.line],W.children=[],(W=Y.push("heading_close","h"+String(Z),-1)).markup="########".slice(0,Z)),!0)}},8570:(Jt,$t,ht)=>{"use strict";var pt=ht(3332).isSpace;Jt.exports=function(Y,q,O,U){var G,Z,$,W,V=Y.bMarks[q]+Y.tShift[q],R=Y.eMarks[q];if(Y.sCount[q]-Y.blkIndent>=4||42!==(G=Y.src.charCodeAt(V++))&&45!==G&&95!==G)return!1;for(Z=1;V{"use strict";var pt=ht(2484),t=ht(3266).q,Y=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(t.source+"\\s*$"),/^$/,!1]];Jt.exports=function(O,U,G,Z){var $,W,V,R,P=O.bMarks[U]+O.tShift[U],k=O.eMarks[U];if(O.sCount[U]-O.blkIndent>=4||!O.md.options.html||60!==O.src.charCodeAt(P))return!1;for(R=O.src.slice(P,k),$=0;${"use strict";Jt.exports=function(ht,pt,t){var Y,q,O,U,G,Z,$,W,V,P,R=pt+1,k=ht.md.block.ruler.getRules("paragraph");if(ht.sCount[pt]-ht.blkIndent>=4)return!1;for(P=ht.parentType,ht.parentType="paragraph";R3)){if(ht.sCount[R]>=ht.blkIndent&&((Z=ht.bMarks[R]+ht.tShift[R])<($=ht.eMarks[R])&&((45===(V=ht.src.charCodeAt(Z))||61===V)&&(Z=ht.skipChars(Z,V),(Z=ht.skipSpaces(Z))>=$)))){W=61===V?1:2;break}if(!(ht.sCount[R]<0)){for(q=!1,O=0,U=k.length;O{"use strict";var pt=ht(3332).isSpace;function t(O,U){var G,Z,$,W;return Z=O.bMarks[U]+O.tShift[U],$=O.eMarks[U],42!==(G=O.src.charCodeAt(Z++))&&45!==G&&43!==G||Z<$&&(W=O.src.charCodeAt(Z),!pt(W))?-1:Z}function Y(O,U){var G,Z=O.bMarks[U]+O.tShift[U],$=Z,W=O.eMarks[U];if($+1>=W||((G=O.src.charCodeAt($++))<48||G>57))return-1;for(;;){if($>=W)return-1;if(!((G=O.src.charCodeAt($++))>=48&&G<=57)){if(41===G||46===G)break;return-1}if($-Z>=10)return-1}return $=4||U.listIndent>=0&&U.sCount[G]-U.listIndent>=4&&U.sCount[G]=U.blkIndent&&(it=!0),(n=Y(U,G))>=0){if(w=!0,m=U.bMarks[G]+U.tShift[G],S=Number(U.src.substr(m,n-m-1)),it&&1!==S)return!1}else{if(!((n=t(U,G))>=0))return!1;w=!1}if(it&&U.skipSpaces(n)>=U.eMarks[G])return!1;if(v=U.src.charCodeAt(n-1),$)return!0;for(g=U.tokens.length,w?(X=U.push("ordered_list_open","ol",1),1!==S&&(X.attrs=[["start",S]])):X=U.push("bullet_list_open","ul",1),X.map=A=[G,0],X.markup=String.fromCharCode(v),j=G,o=!1,B=U.md.block.ruler.getRules("list"),I=U.parentType,U.parentType="list";j=N?1:M-E)>4&&(k=1),P=E+k,(X=U.push("list_item_open","li",1)).markup=String.fromCharCode(v),X.map=T=[G,0],u=U.tight,d=U.tShift[G],b=U.sCount[G],D=U.listIndent,U.listIndent=U.blkIndent,U.blkIndent=P,U.tight=!0,U.tShift[G]=V-U.bMarks[G],U.sCount[G]=M,V>=N&&U.isEmpty(G+1)?U.line=Math.min(U.line+2,Z):U.md.block.tokenize(U,G,Z,!0),(!U.tight||o)&&(rt=!1),o=U.line-G>1&&U.isEmpty(U.line-1),U.blkIndent=U.listIndent,U.listIndent=D,U.tShift[G]=d,U.sCount[G]=b,U.tight=u,(X=U.push("list_item_close","li",-1)).markup=String.fromCharCode(v),j=G=U.line,T[1]=j,V=U.bMarks[G],j>=Z||U.sCount[j]=4)break;for(_=!1,R=0,y=B.length;R{"use strict";Jt.exports=function(ht,pt){var t,Y,q,O,U,G,Z=pt+1,$=ht.md.block.ruler.getRules("paragraph"),W=ht.lineMax;for(G=ht.parentType,ht.parentType="paragraph";Z3||ht.sCount[Z]<0)){for(Y=!1,q=0,O=$.length;q{"use strict";var pt=ht(3332).normalizeReference,t=ht(3332).isSpace;Jt.exports=function(q,O,U,G){var Z,$,W,V,R,P,k,E,w,T,y,A,g,v,S,N,j=0,M=q.bMarks[O]+q.tShift[O],D=q.eMarks[O],I=O+1;if(q.sCount[O]-q.blkIndent>=4||91!==q.src.charCodeAt(M))return!1;for(;++M3||q.sCount[I]<0)){for(v=!1,P=0,k=S.length;P"u"&&(q.env.references={}),typeof q.env.references[E]>"u"&&(q.env.references[E]={title:N,href:R}),q.parentType=T,q.line=O+j+1),!0)}},1845:(Jt,$t,ht)=>{"use strict";var pt=ht(6263),t=ht(3332).isSpace;function Y(q,O,U,G){var Z,$,W,V,R,P,k,E;for(this.src=q,this.md=O,this.env=U,this.tokens=G,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",E=!1,W=V=P=k=0,R=($=this.src).length;V0&&this.level++,this.tokens.push(G),G},Y.prototype.isEmpty=function(O){return this.bMarks[O]+this.tShift[O]>=this.eMarks[O]},Y.prototype.skipEmptyLines=function(O){for(var U=this.lineMax;OU;)if(!t(this.src.charCodeAt(--O)))return O+1;return O},Y.prototype.skipChars=function(O,U){for(var G=this.src.length;OG;)if(U!==this.src.charCodeAt(--O))return O+1;return O},Y.prototype.getLines=function(O,U,G,Z){var $,W,V,R,P,k,E,w=O;if(O>=U)return"";for(k=new Array(U-O),$=0;wG?new Array(W-G+1).join(" ")+this.src.slice(R,P):this.src.slice(R,P)}return k.join("")},Y.prototype.Token=pt,Jt.exports=Y},2281:(Jt,$t,ht)=>{"use strict";var pt=ht(3332).isSpace;function t(q,O){var U=q.bMarks[O]+q.blkIndent,G=q.eMarks[O];return q.src.substr(U,G-U)}function Y(q){var Z,O=[],U=0,G=q.length,$=0,W=0,V=!1,R=0;for(Z=q.charCodeAt(U);UG||(P=U+1,O.sCount[P]=4||(V=O.bMarks[P]+O.tShift[P])>=O.eMarks[P]||124!==($=O.src.charCodeAt(V++))&&45!==$&&58!==$)return!1;for(;V=4||(E=(k=Y(W.replace(/^\||\|$/g,""))).length)>T.length)return!1;if(Z)return!0;for((w=O.push("table_open","table",1)).map=A=[U,0],(w=O.push("thead_open","thead",1)).map=[U,U+1],(w=O.push("tr_open","tr",1)).map=[U,U+1],R=0;R=4);P++){for(k=Y(W.replace(/^\||\|$/g,"")),w=O.push("tr_open","tr",1),R=0;R{"use strict";Jt.exports=function(ht){var pt;ht.inlineMode?((pt=new ht.Token("inline","",0)).content=ht.src,pt.map=[0,1],pt.children=[],ht.tokens.push(pt)):ht.md.block.parse(ht.src,ht.md,ht.env,ht.tokens)}},3591:Jt=>{"use strict";Jt.exports=function(ht){var t,Y,q,pt=ht.tokens;for(Y=0,q=pt.length;Y{"use strict";var pt=ht(3332).arrayReplaceAt;function Y(q){return/^<\/a\s*>/i.test(q)}Jt.exports=function(O){var U,G,Z,$,W,V,R,P,k,E,w,T,y,A,g,v,N,q,S=O.tokens;if(O.md.options.linkify)for(G=0,Z=S.length;G=0;U--)if("link_close"!==(V=$[U]).type){if("html_inline"===V.type&&(q=V.content,/^\s]/i.test(q)&&y>0&&y--,Y(V.content)&&y++),!(y>0)&&"text"===V.type&&O.md.linkify.test(V.content)){for(k=V.content,N=O.md.linkify.match(k),R=[],T=V.level,w=0,P=0;Pw&&((W=new O.Token("text","",0)).content=k.slice(w,E),W.level=T,R.push(W)),(W=new O.Token("link_open","a",1)).attrs=[["href",g]],W.level=T++,W.markup="linkify",W.info="auto",R.push(W),(W=new O.Token("text","",0)).content=v,W.level=T,R.push(W),(W=new O.Token("link_close","a",-1)).level=--T,W.markup="linkify",W.info="auto",R.push(W),w=N[P].lastIndex);w{"use strict";var $t=/\r\n?|\n/g,ht=/\0/g;Jt.exports=function(t){var Y;Y=(Y=t.src.replace($t,"\n")).replace(ht,"\ufffd"),t.src=Y}},1982:Jt=>{"use strict";var $t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ht=/\((c|tm|r|p)\)/i,pt=/\((c|tm|r|p)\)/gi,t={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function Y(U,G){return t[G.toLowerCase()]}function q(U){var G,Z,$=0;for(G=U.length-1;G>=0;G--)"text"===(Z=U[G]).type&&!$&&(Z.content=Z.content.replace(pt,Y)),"link_open"===Z.type&&"auto"===Z.info&&$--,"link_close"===Z.type&&"auto"===Z.info&&$++}function O(U){var G,Z,$=0;for(G=U.length-1;G>=0;G--)"text"===(Z=U[G]).type&&!$&&$t.test(Z.content)&&(Z.content=Z.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===Z.type&&"auto"===Z.info&&$--,"link_close"===Z.type&&"auto"===Z.info&&$++}Jt.exports=function(G){var Z;if(G.md.options.typographer)for(Z=G.tokens.length-1;Z>=0;Z--)"inline"===G.tokens[Z].type&&(ht.test(G.tokens[Z].content)&&q(G.tokens[Z].children),$t.test(G.tokens[Z].content)&&O(G.tokens[Z].children))}},8157:(Jt,$t,ht)=>{"use strict";var pt=ht(3332).isWhiteSpace,t=ht(3332).isPunctChar,Y=ht(3332).isMdAsciiPunct,q=/['"]/,O=/['"]/g;function G($,W,V){return $.substr(0,W)+V+$.substr(W+1)}function Z($,W){var V,R,P,k,E,w,T,y,A,g,v,S,N,j,M,D,I,b,d,u,a;for(d=[],V=0;V<$.length;V++){for(R=$[V],T=$[V].level,I=d.length-1;I>=0&&!(d[I].level<=T);I--);if(d.length=I+1,"text"===R.type){E=0,w=(P=R.content).length;t:for(;E=0)A=P.charCodeAt(k.index-1);else for(I=V-1;I>=0&&"softbreak"!==$[I].type&&"hardbreak"!==$[I].type;I--)if($[I].content){A=$[I].content.charCodeAt($[I].content.length-1);break}if(g=32,E=48&&A<=57&&(D=M=!1),M&&D&&(M=v,D=S),M||D){if(D)for(I=d.length-1;I>=0&&(y=d[I],!(d[I].level=0;V--)"inline"!==W.tokens[V].type||!q.test(W.tokens[V].content)||Z(W.tokens[V].children,W)}},1076:(Jt,$t,ht)=>{"use strict";var pt=ht(6263);function t(Y,q,O){this.src=Y,this.env=O,this.tokens=[],this.inlineMode=!1,this.md=q}t.prototype.Token=pt,Jt.exports=t},6973:Jt=>{"use strict";var $t=/^<([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])?)*)>/,ht=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;Jt.exports=function(t,Y){var q,O,U,G,Z,$,W=t.pos;return!(60!==t.src.charCodeAt(W)||(q=t.src.slice(W),q.indexOf(">")<0))&&(ht.test(q)?(G=(O=q.match(ht))[0].slice(1,-1),Z=t.md.normalizeLink(G),!!t.md.validateLink(Z)&&(Y||(($=t.push("link_open","a",1)).attrs=[["href",Z]],$.markup="autolink",$.info="auto",($=t.push("text","",0)).content=t.md.normalizeLinkText(G),($=t.push("link_close","a",-1)).markup="autolink",$.info="auto"),t.pos+=O[0].length,!0)):!!$t.test(q)&&(G=(U=q.match($t))[0].slice(1,-1),Z=t.md.normalizeLink("mailto:"+G),!!t.md.validateLink(Z)&&(Y||(($=t.push("link_open","a",1)).attrs=[["href",Z]],$.markup="autolink",$.info="auto",($=t.push("text","",0)).content=t.md.normalizeLinkText(G),($=t.push("link_close","a",-1)).markup="autolink",$.info="auto"),t.pos+=U[0].length,!0)))}},415:Jt=>{"use strict";Jt.exports=function(ht,pt){var t,Y,q,O,U,G,Z=ht.pos;if(96!==ht.src.charCodeAt(Z))return!1;for(t=Z,Z++,Y=ht.posMax;Z{"use strict";function $t(ht,pt){var t,Y,q,O,U,G,Z,$,W={},V=pt.length;for(t=0;tU;Y-=O.jump+1)if((O=pt[Y]).marker===q.marker&&(-1===G&&(G=Y),O.open&&O.end<0&&(Z=!1,(O.close||q.open)&&(O.length+q.length)%3==0&&(O.length%3!=0||q.length%3!=0)&&(Z=!0),!Z))){$=Y>0&&!pt[Y-1].open?pt[Y-1].jump+1:0,q.jump=t-Y+$,q.open=!1,O.end=t,O.jump=$,O.close=!1,G=-1;break}-1!==G&&(W[q.marker][(q.length||0)%3]=G)}}Jt.exports=function(pt){var t,Y=pt.tokens_meta,q=pt.tokens_meta.length;for($t(0,pt.delimiters),t=0;t{"use strict";function $t(ht,pt){var t,Y,q,O,U,G;for(t=pt.length-1;t>=0;t--)(95===(Y=pt[t]).marker||42===Y.marker)&&-1!==Y.end&&(q=pt[Y.end],G=t>0&&pt[t-1].end===Y.end+1&&pt[t-1].token===Y.token-1&&pt[Y.end+1].token===q.token+1&&pt[t-1].marker===Y.marker,U=String.fromCharCode(Y.marker),(O=ht.tokens[Y.token]).type=G?"strong_open":"em_open",O.tag=G?"strong":"em",O.nesting=1,O.markup=G?U+U:U,O.content="",(O=ht.tokens[q.token]).type=G?"strong_close":"em_close",O.tag=G?"strong":"em",O.nesting=-1,O.markup=G?U+U:U,O.content="",G&&(ht.tokens[pt[t-1].token].content="",ht.tokens[pt[Y.end+1].token].content="",t--))}Jt.exports.w=function(pt,t){var Y,q,U=pt.pos,G=pt.src.charCodeAt(U);if(t||95!==G&&42!==G)return!1;for(q=pt.scanDelims(pt.pos,42===G),Y=0;Y{"use strict";var pt=ht(6798),t=ht(3332).has,Y=ht(3332).isValidEntityCode,q=ht(3332).fromCodePoint,O=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,U=/^&([a-z][a-z0-9]{1,31});/i;Jt.exports=function(Z,$){var V,R,P=Z.pos,k=Z.posMax;if(38!==Z.src.charCodeAt(P))return!1;if(P+1{"use strict";for(var pt=ht(3332).isSpace,t=[],Y=0;Y<256;Y++)t.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(q){t[q.charCodeAt(0)]=1}),Jt.exports=function(O,U){var G,Z=O.pos,$=O.posMax;if(92!==O.src.charCodeAt(Z))return!1;if(++Z<$){if((G=O.src.charCodeAt(Z))<256&&0!==t[G])return U||(O.pending+=O.src[Z]),O.pos+=2,!0;if(10===G){for(U||O.push("hardbreak","br",0),Z++;Z<$&&(G=O.src.charCodeAt(Z),pt(G));)Z++;return O.pos=Z,!0}}return U||(O.pending+="\\"),O.pos++,!0}},3722:(Jt,$t,ht)=>{"use strict";var pt=ht(3266).n;Jt.exports=function(q,O){var U,G,Z,W=q.pos;return!(!q.md.options.html||(Z=q.posMax,60!==q.src.charCodeAt(W)||W+2>=Z)||(U=q.src.charCodeAt(W+1),33!==U&&63!==U&&47!==U&&!function t(Y){var q=32|Y;return q>=97&&q<=122}(U))||(G=q.src.slice(W).match(pt),!G))&&(O||(q.push("html_inline","",0).content=q.src.slice(W,W+G[0].length)),q.pos+=G[0].length,!0)}},7936:(Jt,$t,ht)=>{"use strict";var pt=ht(3332).normalizeReference,t=ht(3332).isSpace;Jt.exports=function(q,O){var U,G,Z,$,W,V,R,P,k,E,w,T,y,A="",g=q.pos,v=q.posMax;if(33!==q.src.charCodeAt(q.pos)||91!==q.src.charCodeAt(q.pos+1)||(V=q.pos+2,(W=q.md.helpers.parseLinkLabel(q,q.pos+1,!1))<0))return!1;if((R=W+1)=v)return!1;for(y=R,(k=q.md.helpers.parseLinkDestination(q.src,R,q.posMax)).ok&&(A=q.md.normalizeLink(k.str),q.md.validateLink(A)?R=k.pos:A=""),y=R;R=v||41!==q.src.charCodeAt(R))return q.pos=g,!1;R++}else{if(typeof q.env.references>"u")return!1;if(R=0?$=q.src.slice(y,R++):R=W+1):R=W+1,$||($=q.src.slice(V,W)),!(P=q.env.references[pt($)]))return q.pos=g,!1;A=P.href,E=P.title}return O||(Z=q.src.slice(V,W),q.md.inline.parse(Z,q.md,q.env,T=[]),(w=q.push("image","img",0)).attrs=U=[["src",A],["alt",""]],w.children=T,w.content=Z,E&&U.push(["title",E])),q.pos=R,q.posMax=v,!0}},7219:(Jt,$t,ht)=>{"use strict";var pt=ht(3332).normalizeReference,t=ht(3332).isSpace;Jt.exports=function(q,O){var U,G,Z,$,W,V,R,P,k,w="",T=q.pos,y=q.posMax,A=q.pos,g=!0;if(91!==q.src.charCodeAt(q.pos)||(W=q.pos+1,($=q.md.helpers.parseLinkLabel(q,q.pos,!0))<0))return!1;if((V=$+1)=y)return!1;for(A=V,(R=q.md.helpers.parseLinkDestination(q.src,V,q.posMax)).ok&&(w=q.md.normalizeLink(R.str),q.md.validateLink(w)?V=R.pos:w=""),A=V;V=y||41!==q.src.charCodeAt(V))&&(g=!0),V++}if(g){if(typeof q.env.references>"u")return!1;if(V=0?Z=q.src.slice(A,V++):V=$+1):V=$+1,Z||(Z=q.src.slice(W,$)),!(P=q.env.references[pt(Z)]))return q.pos=T,!1;w=P.href,k=P.title}return O||(q.pos=W,q.posMax=$,q.push("link_open","a",1).attrs=U=[["href",w]],k&&U.push(["title",k]),q.md.inline.tokenize(q),q.push("link_close","a",-1)),q.pos=V,q.posMax=y,!0}},2921:(Jt,$t,ht)=>{"use strict";var pt=ht(3332).isSpace;Jt.exports=function(Y,q){var O,U,G=Y.pos;if(10!==Y.src.charCodeAt(G))return!1;for(O=Y.pending.length-1,U=Y.posMax,q||(O>=0&&32===Y.pending.charCodeAt(O)?O>=1&&32===Y.pending.charCodeAt(O-1)?(Y.pending=Y.pending.replace(/ +$/,""),Y.push("hardbreak","br",0)):(Y.pending=Y.pending.slice(0,-1),Y.push("softbreak","br",0)):Y.push("softbreak","br",0)),G++;G{"use strict";var pt=ht(6263),t=ht(3332).isWhiteSpace,Y=ht(3332).isPunctChar,q=ht(3332).isMdAsciiPunct;function O(U,G,Z,$){this.src=U,this.env=Z,this.md=G,this.tokens=$,this.tokens_meta=Array($.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[]}O.prototype.pushPending=function(){var U=new pt("text","",0);return U.content=this.pending,U.level=this.pendingLevel,this.tokens.push(U),this.pending="",U},O.prototype.push=function(U,G,Z){this.pending&&this.pushPending();var $=new pt(U,G,Z),W=null;return Z<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),$.level=this.level,Z>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],W={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push($),this.tokens_meta.push(W),$},O.prototype.scanDelims=function(U,G){var $,W,V,R,P,k,E,w,T,Z=U,y=!0,A=!0,g=this.posMax,v=this.src.charCodeAt(U);for($=U>0?this.src.charCodeAt(U-1):32;Z{"use strict";function $t(ht,pt){var t,Y,q,O,U,G=[],Z=pt.length;for(t=0;t{"use strict";function $t(ht){switch(ht){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}Jt.exports=function(pt,t){for(var Y=pt.pos;Y{"use strict";Jt.exports=function(ht){var pt,t,Y=0,q=ht.tokens,O=ht.tokens.length;for(pt=t=0;pt0&&Y++,"text"===q[pt].type&&pt+1{"use strict";function $t(ht,pt,t){this.type=ht,this.tag=pt,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}$t.prototype.attrIndex=function(pt){var t,Y,q;if(!this.attrs)return-1;for(Y=0,q=(t=this.attrs).length;Y=0&&(Y=this.attrs[t][1]),Y},$t.prototype.attrJoin=function(pt,t){var Y=this.attrIndex(pt);Y<0?this.attrPush([pt,t]):this.attrs[Y][1]=this.attrs[Y][1]+" "+t},Jt.exports=$t},9801:Jt=>{"use strict";var $t={};function pt(t,Y){var q;return"string"!=typeof Y&&(Y=pt.defaultChars),q=function ht(t){var Y,q,O=$t[t];if(O)return O;for(O=$t[t]=[],Y=0;Y<128;Y++)q=String.fromCharCode(Y),O.push(q);for(Y=0;Y=55296&&R<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(R),U+=6):240==(248&Z)&&U+91114111?P+="\ufffd\ufffd\ufffd\ufffd":(R-=65536,P+=String.fromCharCode(55296+(R>>10),56320+(1023&R))),U+=9):P+="\ufffd";return P})}pt.defaultChars=";/?:@&=+$,#",pt.componentChars="",Jt.exports=pt},526:Jt=>{"use strict";var $t={};function pt(t,Y,q){var O,U,G,Z,$,W="";for("string"!=typeof Y&&(q=Y,Y=pt.defaultChars),typeof q>"u"&&(q=!0),$=function ht(t){var Y,q,O=$t[t];if(O)return O;for(O=$t[t]=[],Y=0;Y<128;Y++)q=String.fromCharCode(Y),/^[0-9a-z]$/i.test(q)?O.push(q):O.push("%"+("0"+Y.toString(16).toUpperCase()).slice(-2));for(Y=0;Y=55296&&G<=57343){if(G>=55296&&G<=56319&&O+1=56320&&Z<=57343)){W+=encodeURIComponent(t[O]+t[O+1]),O++;continue}W+="%EF%BF%BD"}else W+=encodeURIComponent(t[O]);return W}pt.defaultChars=";/?:@&=+$,-_.!~*'()#",pt.componentChars="-_.!~*'()",Jt.exports=pt},381:Jt=>{"use strict";Jt.exports=function(ht){var pt="";return pt+=ht.protocol||"",pt+=ht.slashes?"//":"",pt+=ht.auth?ht.auth+"@":"",ht.hostname&&-1!==ht.hostname.indexOf(":")?pt+="["+ht.hostname+"]":pt+=ht.hostname||"",pt+=ht.port?":"+ht.port:"",pt+=ht.pathname||"",pt+=ht.search||"",pt+=ht.hash||""}},1184:(Jt,$t,ht)=>{"use strict";Jt.exports.encode=ht(526),Jt.exports.decode=ht(9801),Jt.exports.format=ht(381),Jt.exports.parse=ht(3850)},3850:Jt=>{"use strict";function $t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var ht=/^([a-z0-9.+-]+:)/i,pt=/:[0-9]*$/,t=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Y=["<",">",'"',"`"," ","\r","\n","\t"],q=["{","}","|","\\","^","`"].concat(Y),O=["'"].concat(q),U=["%","/","?",";","#"].concat(O),G=["/","?","#"],$=/^[+a-z0-9A-Z_-]{0,63}$/,W=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,V={javascript:!0,"javascript:":!0},R={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};$t.prototype.parse=function(k,E){var w,T,y,A,g,v=k;if(v=v.trim(),!E&&1===k.split("#").length){var S=t.exec(v);if(S)return this.pathname=S[1],S[2]&&(this.search=S[2]),this}var N=ht.exec(v);if(N&&(y=(N=N[0]).toLowerCase(),this.protocol=N,v=v.substr(N.length)),(E||N||v.match(/^\/\/[^@\/]+@[^@\/]+/))&&((g="//"===v.substr(0,2))&&!(N&&V[N])&&(v=v.substr(2),this.slashes=!0)),!V[N]&&(g||N&&!R[N])){var M,D,j=-1;for(w=0;w127?a+="x":a+=u[n];if(!a.match($)){var m=d.slice(0,w),_=d.slice(w+1),B=u.match(W);B&&(m.push(B[1]),_.unshift(B[2])),_.length&&(v=_.join(".")+v),this.hostname=m.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var X=v.indexOf("#");-1!==X&&(this.hash=v.substr(X),v=v.slice(0,X));var it=v.indexOf("?");return-1!==it&&(this.search=v.substr(it),v=v.slice(0,it)),v&&(this.pathname=v),R[y]&&this.hostname&&!this.pathname&&(this.pathname=""),this},$t.prototype.parseHost=function(k){var E=pt.exec(k);E&&(":"!==(E=E[0])&&(this.port=E.substr(1)),k=k.substr(0,k.length-E.length)),k&&(this.hostname=k)},Jt.exports=function P(k,E){if(k&&k instanceof $t)return k;var w=new $t;return w.parse(k,E),w}},3990:function(Jt,$t,ht){var pt,t;pt=function(){var Y,q,V,R,k,O="2.0.6",U={},G={},Z={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},$={currentLocale:Z.currentLocale,zeroFormat:Z.zeroFormat,nullFormat:Z.nullFormat,defaultFormat:Z.defaultFormat,scalePercentBy100:Z.scalePercentBy100};function W(V,R){this._input=V,this._value=R}return Y=function(V){var R,P,k,E;if(Y.isNumeral(V))R=V.value();else if(0===V||typeof V>"u")R=0;else if(null===V||q.isNaN(V))R=null;else if("string"==typeof V)if($.zeroFormat&&V===$.zeroFormat)R=0;else if($.nullFormat&&V===$.nullFormat||!V.replace(/[^0-9]+/g,"").length)R=null;else{for(P in U)if((E="function"==typeof U[P].regexps.unformat?U[P].regexps.unformat():U[P].regexps.unformat)&&V.match(E)){k=U[P].unformat;break}R=(k=k||Y._.stringToNumber)(V)}else R=Number(V)||null;return new W(V,R)},Y.version=O,Y.isNumeral=function(V){return V instanceof W},Y._=q={numberToFormat:function(V,R,P){var M,D,u,a,n,o,m,k=G[Y.options.currentLocale],E=!1,w=!1,T=0,y="",A=1e12,g=1e9,v=1e6,S=1e3,N="",j=!1;if(V=V||0,D=Math.abs(V),Y._.includes(R,"(")?(E=!0,R=R.replace(/[\(|\)]/g,"")):(Y._.includes(R,"+")||Y._.includes(R,"-"))&&(n=Y._.includes(R,"+")?R.indexOf("+"):V<0?R.indexOf("-"):-1,R=R.replace(/[\+|\-]/g,"")),Y._.includes(R,"a")&&(M=!!(M=R.match(/a(k|m|b|t)?/))&&M[1],Y._.includes(R," a")&&(y=" "),R=R.replace(new RegExp(y+"a[kmbt]?"),""),D>=A&&!M||"t"===M?(y+=k.abbreviations.trillion,V/=A):D=g&&!M||"b"===M?(y+=k.abbreviations.billion,V/=g):D=v&&!M||"m"===M?(y+=k.abbreviations.million,V/=v):(D=S&&!M||"k"===M)&&(y+=k.abbreviations.thousand,V/=S)),Y._.includes(R,"[.]")&&(w=!0,R=R.replace("[.]",".")),u=V.toString().split(".")[0],a=R.split(".")[1],o=R.indexOf(","),T=(R.split(".")[0].split(",")[0].match(/0/g)||[]).length,a?(Y._.includes(a,"[")?(a=(a=a.replace("]","")).split("["),N=Y._.toFixed(V,a[0].length+a[1].length,P,a[1].length)):N=Y._.toFixed(V,a.length,P),u=N.split(".")[0],N=Y._.includes(N,".")?k.delimiters.decimal+N.split(".")[1]:"",w&&0===Number(N.slice(1))&&(N="")):u=Y._.toFixed(V,0,P),y&&!M&&Number(u)>=1e3&&y!==k.abbreviations.trillion)switch(u=String(Number(u)/1e3),y){case k.abbreviations.thousand:y=k.abbreviations.million;break;case k.abbreviations.million:y=k.abbreviations.billion;break;case k.abbreviations.billion:y=k.abbreviations.trillion}if(Y._.includes(u,"-")&&(u=u.slice(1),j=!0),u.length0;_--)u="0"+u;return o>-1&&(u=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+k.delimiters.thousands)),0===R.indexOf(".")&&(u=""),m=u+N+(y||""),E?m=(E&&j?"(":"")+m+(E&&j?")":""):n>=0?m=0===n?(j?"-":"+")+m:m+(j?"-":"+"):j&&(m="-"+m),m},stringToNumber:function(V){var E,w,y,R=G[$.currentLocale],P=V,k={thousand:3,million:6,billion:9,trillion:12};if($.zeroFormat&&V===$.zeroFormat)w=0;else if($.nullFormat&&V===$.nullFormat||!V.replace(/[^0-9]+/g,"").length)w=null;else{for(E in w=1,"."!==R.delimiters.decimal&&(V=V.replace(/\./g,"").replace(R.delimiters.decimal,".")),k)if(y=new RegExp("[^a-zA-Z]"+R.abbreviations[E]+"(?:\\)|(\\"+R.currency.symbol+")?(?:\\))?)?$"),P.match(y)){w*=Math.pow(10,k[E]);break}w*=(V.split("-").length+Math.min(V.split("(").length-1,V.split(")").length-1))%2?1:-1,V=V.replace(/[^0-9\.]+/g,""),w*=Number(V)}return w},isNaN:function(V){return"number"==typeof V&&isNaN(V)},includes:function(V,R){return-1!==V.indexOf(R)},insert:function(V,R,P){return V.slice(0,P)+R+V.slice(P)},reduce:function(V,R){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof R)throw new TypeError(R+" is not a function");var w,P=Object(V),k=P.length>>>0,E=0;if(3===arguments.length)w=arguments[2];else{for(;E=k)throw new TypeError("Reduce of empty array with no initial value");w=P[E++]}for(;Ek?R:k},1)},toFixed:function(V,R,P,k){var T,y,A,g,E=V.toString().split("."),w=R-(k||0);return T=2===E.length?Math.min(Math.max(E[1].length,w),R):w,A=Math.pow(10,T),g=(P(V+"e+"+T)/A).toFixed(T),k>R-T&&(y=new RegExp("\\.?0{1,"+(k-(R-T))+"}$"),g=g.replace(y,"")),g}},Y.options=$,Y.formats=U,Y.locales=G,Y.locale=function(V){return V&&($.currentLocale=V.toLowerCase()),$.currentLocale},Y.localeData=function(V){if(!V)return G[$.currentLocale];if(V=V.toLowerCase(),!G[V])throw new Error("Unknown locale : "+V);return G[V]},Y.reset=function(){for(var V in Z)$[V]=Z[V]},Y.zeroFormat=function(V){$.zeroFormat="string"==typeof V?V:null},Y.nullFormat=function(V){$.nullFormat="string"==typeof V?V:null},Y.defaultFormat=function(V){$.defaultFormat="string"==typeof V?V:"0.0"},Y.register=function(V,R,P){if(R=R.toLowerCase(),this[V+"s"][R])throw new TypeError(R+" "+V+" already registered.");return this[V+"s"][R]=P,P},Y.validate=function(V,R){var P,k,E,w,T,y,A,g;if("string"!=typeof V&&(V+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",V)),(V=V.trim()).match(/^\d+$/))return!0;if(""===V)return!1;try{A=Y.localeData(R)}catch{A=Y.localeData(Y.locale())}return E=A.currency.symbol,T=A.abbreviations,P=A.delimiters.decimal,k="."===A.delimiters.thousands?"\\.":A.delimiters.thousands,!(null!==(g=V.match(/^[^\d]+/))&&(V=V.substr(1),g[0]!==E)||null!==(g=V.match(/[^\d]+$/))&&(V=V.slice(0,-1),g[0]!==T.thousand&&g[0]!==T.million&&g[0]!==T.billion&&g[0]!==T.trillion)||(y=new RegExp(k+"{2}"),V.match(/[^\d.,]/g)||(w=V.split(P)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(y):1===w[0].length?!w[0].match(/^\d+$/)||w[0].match(y)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(y)||!w[1].match(/^\d+$/))))},Y.fn=W.prototype={clone:function(){return Y(this)},format:function(V,R){var E,w,T,P=this._value,k=V||$.defaultFormat;if(R=R||Math.round,0===P&&null!==$.zeroFormat)w=$.zeroFormat;else if(null===P&&null!==$.nullFormat)w=$.nullFormat;else{for(E in U)if(k.match(U[E].regexps.format)){T=U[E].format;break}w=(T=T||Y._.numberToFormat)(P,k,R)}return w},value:function(){return this._value},input:function(){return this._input},set:function(V){return this._value=Number(V),this},add:function(V){var R=q.correctionFactor.call(null,this._value,V);function P(k,E,w,T){return k+Math.round(R*E)}return this._value=q.reduce([this._value,V],P,0)/R,this},subtract:function(V){var R=q.correctionFactor.call(null,this._value,V);function P(k,E,w,T){return k-Math.round(R*E)}return this._value=q.reduce([V],P,Math.round(this._value*R))/R,this},multiply:function(V){function R(P,k,E,w){var T=q.correctionFactor(P,k);return Math.round(P*T)*Math.round(k*T)/Math.round(T*T)}return this._value=q.reduce([this._value,V],R,1),this},divide:function(V){function R(P,k,E,w){var T=q.correctionFactor(P,k);return Math.round(P*T)/Math.round(k*T)}return this._value=q.reduce([this._value,V],R),this},difference:function(V){return Math.abs(Y(this._value).subtract(V).value())}},Y.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(V){var R=V%10;return 1==~~(V%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th"},currency:{symbol:"$"}}),Y.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(V,R,P){var E,k=Y._.includes(R," BPS")?" ":"";return V*=1e4,R=R.replace(/\s?BPS/,""),E=Y._.numberToFormat(V,R,P),Y._.includes(E,")")?((E=E.split("")).splice(-1,0,k+"BPS"),E=E.join("")):E=E+k+"BPS",E},unformat:function(V){return+(1e-4*Y._.stringToNumber(V)).toFixed(15)}}),R={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},k="("+(k=(V={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(R.suffixes.filter(function(E){return V.suffixes.indexOf(E)<0})).join("|")).replace("B","B(?!PS)")+")",Y.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(k)},format:function(E,w,T){var v,S,N,A=Y._.includes(w,"ib")?R:V,g=Y._.includes(w," b")||Y._.includes(w," ib")?" ":"";for(w=w.replace(/\s?i?b/,""),v=0;v<=A.suffixes.length;v++)if(S=Math.pow(A.base,v),N=Math.pow(A.base,v+1),null===E||0===E||E>=S&&E0&&(E/=S);break}return Y._.numberToFormat(E,w,T)+g},unformat:function(E){var T,y,w=Y._.stringToNumber(E);if(w){for(T=V.suffixes.length-1;T>=0;T--){if(Y._.includes(E,V.suffixes[T])){y=Math.pow(V.base,T);break}if(Y._.includes(E,R.suffixes[T])){y=Math.pow(R.base,T);break}}w*=y||1}return w}}),Y.register("format","currency",{regexps:{format:/(\$)/},format:function(V,R,P){var w,T,y,k=Y.locales[Y.options.currentLocale],E={before:R.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:R.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(R=R.replace(/\s?\$\s?/,""),w=Y._.numberToFormat(V,R,P),V>=0?(E.before=E.before.replace(/[\-\(]/,""),E.after=E.after.replace(/[\-\)]/,"")):V<0&&!Y._.includes(E.before,"-")&&!Y._.includes(E.before,"(")&&(E.before="-"+E.before),y=0;y=0;y--)switch(T=E.after[y],T){case"$":w=y===E.after.length-1?w+k.currency.symbol:Y._.insert(w,k.currency.symbol,-(E.after.length-(1+y)));break;case" ":w=y===E.after.length-1?w+" ":Y._.insert(w," ",-(E.after.length-(1+y)+k.currency.symbol.length-1))}return w}}),Y.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(V,R,P){var w=("number"!=typeof V||Y._.isNaN(V)?"0e+0":V.toExponential()).split("e");return R=R.replace(/e[\+|\-]{1}0/,""),Y._.numberToFormat(Number(w[0]),R,P)+"e"+w[1]},unformat:function(V){var R=Y._.includes(V,"e+")?V.split("e+"):V.split("e-"),P=Number(R[0]),k=Number(R[1]);function E(w,T,y,A){var g=Y._.correctionFactor(w,T);return w*g*(T*g)/(g*g)}return k=Y._.includes(V,"e-")?k*=-1:k,Y._.reduce([P,Math.pow(10,k)],E,1)}}),Y.register("format","ordinal",{regexps:{format:/(o)/},format:function(V,R,P){var k=Y.locales[Y.options.currentLocale],w=Y._.includes(R," o")?" ":"";return R=R.replace(/\s?o/,""),w+=k.ordinal(V),Y._.numberToFormat(V,R,P)+w}}),Y.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(V,R,P){var E,k=Y._.includes(R," %")?" ":"";return Y.options.scalePercentBy100&&(V*=100),R=R.replace(/\s?\%/,""),E=Y._.numberToFormat(V,R,P),Y._.includes(E,")")?((E=E.split("")).splice(-1,0,k+"%"),E=E.join("")):E=E+k+"%",E},unformat:function(V){var R=Y._.stringToNumber(V);return Y.options.scalePercentBy100?.01*R:R}}),Y.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(V,R,P){var k=Math.floor(V/60/60),E=Math.floor((V-60*k*60)/60),w=Math.round(V-60*k*60-60*E);return k+":"+(E<10?"0"+E:E)+":"+(w<10?"0"+w:w)},unformat:function(V){var R=V.split(":"),P=0;return 3===R.length?(P+=60*Number(R[0])*60,P+=60*Number(R[1]),P+=Number(R[2])):2===R.length&&(P+=60*Number(R[0]),P+=Number(R[1])),Number(P)}}),Y},void 0!==(t="function"==typeof pt?pt.call($t,ht,$t,Jt):pt)&&(Jt.exports=t)},4879:(Jt,$t,ht)=>{"use strict";ht.r($t),ht.d($t,{decode:()=>M,default:()=>u,encode:()=>D,toASCII:()=>b,toUnicode:()=>I,ucs2decode:()=>g,ucs2encode:()=>v});const pt=2147483647,t=36,W=/^xn--/,V=/[^\0-\x7F]/,R=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=Math.floor,w=String.fromCharCode;function T(a){throw new RangeError(P[a])}function A(a,n){const o=a.split("@");let m="";o.length>1&&(m=o[0]+"@",a=o[1]);const B=function y(a,n){const o=[];let m=a.length;for(;m--;)o[m]=n(a[m]);return o}((a=a.replace(R,".")).split("."),n).join(".");return m+B}function g(a){const n=[];let o=0;const m=a.length;for(;o=55296&&_<=56319&&oString.fromCodePoint(...a),S=function(a){return a>=48&&a<58?a-48+26:a>=65&&a<91?a-65:a>=97&&a<123?a-97:t},N=function(a,n){return a+22+75*(a<26)-((0!=n)<<5)},j=function(a,n,o){let m=0;for(a=o?E(a/700):a>>1,a+=E(a/n);a>455;m+=t)a=E(a/35);return E(m+36*a/(a+38))},M=function(a){const n=[],o=a.length;let m=0,_=128,B=72,X=a.lastIndexOf("-");X<0&&(X=0);for(let it=0;it=128&&T("not-basic"),n.push(a.charCodeAt(it));for(let it=X>0?X+1:0;it=o&&T("invalid-input");const at=S(a.charCodeAt(it++));at>=t&&T("invalid-input"),at>E((pt-m)/z)&&T("overflow"),m+=at*z;const st=et<=B?1:et>=B+26?26:et-B;if(atE(pt/H)&&T("overflow"),z*=H}const L=n.length+1;B=j(m-rt,L,0==rt),E(m/L)>pt-_&&T("overflow"),_+=E(m/L),m%=L,n.splice(m++,0,_)}return String.fromCodePoint(...n)},D=function(a){const n=[],o=(a=g(a)).length;let m=128,_=0,B=72;for(const rt of a)rt<128&&n.push(w(rt));const X=n.length;let it=X;for(X&&n.push("-");it=m&&zE((pt-_)/L)&&T("overflow"),_+=(rt-m)*L,m=rt;for(const z of a)if(zpt&&T("overflow"),z===m){let et=_;for(let at=t;;at+=t){const st=at<=B?1:at>=B+26?26:at-B;if(etN;){if(j-N>600){var D=j-N+1,I=S-N+1,b=Math.log(D),d=.5*Math.exp(2*b/3),u=.5*Math.sqrt(b*d*(D-d)/D)*(I-D/2<0?-1:1);g(v,S,Math.max(N,Math.floor(S-I*d/D+u)),Math.min(j,Math.floor(S+(D-I)*d/D+u)),M)}var o=v[S],m=N,_=j;for(ht(v,N,S),M(v[j],o)>0&&ht(v,N,j);m<_;){for(ht(v,m,_),m++,_--;M(v[m],o)<0;)m++;for(;M(v[_],o)>0;)_--}0===M(v[N],o)?ht(v,N,_):ht(v,++_,j),_<=S&&(N=_+1),S<=_&&(j=_-1)}}(E,w,T||0,y||E.length-1,A||pt)}function ht(E,w,T){var y=E[w];E[w]=E[T],E[T]=y}function pt(E,w){return Ew?1:0}var t=function(E){void 0===E&&(E=9),this._maxEntries=Math.max(4,E),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function Y(E,w,T){if(!T)return w.indexOf(E);for(var y=0;y=E.minX&&w.maxY>=E.minY}function P(E){return{children:E,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function k(E,w,T,y,A){for(var g=[w,T];g.length;)if(!((T=g.pop())-(w=g.pop())<=y)){var v=w+Math.ceil((T-w)/y/2)*y;$t(E,v,w,T,A),g.push(w,v,v,T)}}return t.prototype.all=function(){return this._all(this.data,[])},t.prototype.search=function(E){var w=this.data,T=[];if(!R(E,w))return T;for(var y=this.toBBox,A=[];w;){for(var g=0;g=0&&A[w].children.length>this._maxEntries;)this._split(A,w),w--;this._adjustParentBBoxes(y,A,w)},t.prototype._split=function(E,w){var T=E[w],y=T.children.length,A=this._minEntries;this._chooseSplitAxis(T,A,y);var g=this._chooseSplitIndex(T,A,y),v=P(T.children.splice(g,T.children.length-g));v.height=T.height,v.leaf=T.leaf,q(T,this.toBBox),q(v,this.toBBox),w?E[w-1].children.push(v):this._splitRoot(T,v)},t.prototype._splitRoot=function(E,w){this.data=P([E,w]),this.data.height=E.height+1,this.data.leaf=!1,q(this.data,this.toBBox)},t.prototype._chooseSplitIndex=function(E,w,T){for(var y,A,g,v,S,N,j,M=1/0,D=1/0,I=w;I<=T-w;I++){var b=O(E,0,I,this.toBBox),d=O(E,I,T,this.toBBox),u=(A=b,g=d,v=void 0,S=void 0,N=void 0,j=void 0,v=Math.max(A.minX,g.minX),S=Math.max(A.minY,g.minY),N=Math.min(A.maxX,g.maxX),j=Math.min(A.maxY,g.maxY),Math.max(0,N-v)*Math.max(0,j-S)),a=$(b)+$(d);u=w;M--){var D=E.children[M];U(v,E.leaf?A(D):D),S+=W(v)}return S},t.prototype._adjustParentBBoxes=function(E,w,T){for(var y=T;y>=0;y--)U(w[y],E)},t.prototype._condense=function(E){for(var w=E.length-1,T=void 0;w>=0;w--)0===E[w].children.length?w>0?(T=E[w-1].children).splice(T.indexOf(E[w]),1):this.clear():q(E[w],this.toBBox)},t}()},1135:(Jt,$t,ht)=>{"use strict";ht.d($t,{X:()=>t});var pt=ht(7579);class t extends pt.x{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const O=super._subscribe(q);return!O.closed&&q.next(this._value),O}getValue(){const{hasError:q,thrownError:O,_value:U}=this;if(q)throw O;return this._throwIfClosed(),U}next(q){super.next(this._value=q)}}},9751:(Jt,$t,ht)=>{"use strict";ht.d($t,{y:()=>Z});var pt=ht(930),t=ht(727),Y=ht(8822),q=ht(9635),O=ht(2416),U=ht(576),G=ht(2806);class Z{constructor(P){P&&(this._subscribe=P)}lift(P){const k=new Z;return k.source=this,k.operator=P,k}subscribe(P,k,E){const w=function V(R){return R&&R instanceof pt.Lv||function W(R){return R&&(0,U.m)(R.next)&&(0,U.m)(R.error)&&(0,U.m)(R.complete)}(R)&&(0,t.Nn)(R)}(P)?P:new pt.Hp(P,k,E);return(0,G.x)(()=>{const{operator:T,source:y}=this;w.add(T?T.call(w,y):y?this._subscribe(w):this._trySubscribe(w))}),w}_trySubscribe(P){try{return this._subscribe(P)}catch(k){P.error(k)}}forEach(P,k){return new(k=$(k))((E,w)=>{const T=new pt.Hp({next:y=>{try{P(y)}catch(A){w(A),T.unsubscribe()}},error:w,complete:E});this.subscribe(T)})}_subscribe(P){var k;return null===(k=this.source)||void 0===k?void 0:k.subscribe(P)}[Y.L](){return this}pipe(...P){return(0,q.U)(P)(this)}toPromise(P){return new(P=$(P))((k,E)=>{let w;this.subscribe(T=>w=T,T=>E(T),()=>k(w))})}}function $(R){var P;return null!==(P=R??O.v.Promise)&&void 0!==P?P:Promise}Z.create=R=>new Z(R)},7579:(Jt,$t,ht)=>{"use strict";ht.d($t,{x:()=>G});var pt=ht(9751),t=ht(727);const q=(0,ht(3888).d)($=>function(){$(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var O=ht(8737),U=ht(2806);class G extends pt.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(W){const V=new Z(this,this);return V.operator=W,V}_throwIfClosed(){if(this.closed)throw new q}next(W){(0,U.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const V of this.currentObservers)V.next(W)}})}error(W){(0,U.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=W;const{observers:V}=this;for(;V.length;)V.shift().error(W)}})}complete(){(0,U.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:W}=this;for(;W.length;)W.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var W;return(null===(W=this.observers)||void 0===W?void 0:W.length)>0}_trySubscribe(W){return this._throwIfClosed(),super._trySubscribe(W)}_subscribe(W){return this._throwIfClosed(),this._checkFinalizedStatuses(W),this._innerSubscribe(W)}_innerSubscribe(W){const{hasError:V,isStopped:R,observers:P}=this;return V||R?t.Lc:(this.currentObservers=null,P.push(W),new t.w0(()=>{this.currentObservers=null,(0,O.P)(P,W)}))}_checkFinalizedStatuses(W){const{hasError:V,thrownError:R,isStopped:P}=this;V?W.error(R):P&&W.complete()}asObservable(){const W=new pt.y;return W.source=this,W}}G.create=($,W)=>new Z($,W);class Z extends G{constructor(W,V){super(),this.destination=W,this.source=V}next(W){var V,R;null===(R=null===(V=this.destination)||void 0===V?void 0:V.next)||void 0===R||R.call(V,W)}error(W){var V,R;null===(R=null===(V=this.destination)||void 0===V?void 0:V.error)||void 0===R||R.call(V,W)}complete(){var W,V;null===(V=null===(W=this.destination)||void 0===W?void 0:W.complete)||void 0===V||V.call(W)}_subscribe(W){var V,R;return null!==(R=null===(V=this.source)||void 0===V?void 0:V.subscribe(W))&&void 0!==R?R:t.Lc}}},930:(Jt,$t,ht)=>{"use strict";ht.d($t,{Hp:()=>w,Lv:()=>R});var pt=ht(576),t=ht(727),Y=ht(2416),q=ht(7849),O=ht(5032);const U=$("C",void 0,void 0);function $(v,S,N){return{kind:v,value:S,error:N}}var W=ht(3410),V=ht(2806);class R extends t.w0{constructor(S){super(),this.isStopped=!1,S?(this.destination=S,(0,t.Nn)(S)&&S.add(this)):this.destination=g}static create(S,N,j){return new w(S,N,j)}next(S){this.isStopped?A(function Z(v){return $("N",v,void 0)}(S),this):this._next(S)}error(S){this.isStopped?A(function G(v){return $("E",void 0,v)}(S),this):(this.isStopped=!0,this._error(S))}complete(){this.isStopped?A(U,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(S){this.destination.next(S)}_error(S){try{this.destination.error(S)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const P=Function.prototype.bind;function k(v,S){return P.call(v,S)}class E{constructor(S){this.partialObserver=S}next(S){const{partialObserver:N}=this;if(N.next)try{N.next(S)}catch(j){T(j)}}error(S){const{partialObserver:N}=this;if(N.error)try{N.error(S)}catch(j){T(j)}else T(S)}complete(){const{partialObserver:S}=this;if(S.complete)try{S.complete()}catch(N){T(N)}}}class w extends R{constructor(S,N,j){let M;if(super(),(0,pt.m)(S)||!S)M={next:S??void 0,error:N??void 0,complete:j??void 0};else{let D;this&&Y.v.useDeprecatedNextContext?(D=Object.create(S),D.unsubscribe=()=>this.unsubscribe(),M={next:S.next&&k(S.next,D),error:S.error&&k(S.error,D),complete:S.complete&&k(S.complete,D)}):M=S}this.destination=new E(M)}}function T(v){Y.v.useDeprecatedSynchronousErrorHandling?(0,V.O)(v):(0,q.h)(v)}function A(v,S){const{onStoppedNotification:N}=Y.v;N&&W.z.setTimeout(()=>N(v,S))}const g={closed:!0,next:O.Z,error:function y(v){throw v},complete:O.Z}},727:(Jt,$t,ht)=>{"use strict";ht.d($t,{Lc:()=>U,w0:()=>O,Nn:()=>G});var pt=ht(576);const Y=(0,ht(3888).d)($=>function(V){$(this),this.message=V?`${V.length} errors occurred during unsubscription:\n${V.map((R,P)=>`${P+1}) ${R.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=V});var q=ht(8737);class O{constructor(W){this.initialTeardown=W,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let W;if(!this.closed){this.closed=!0;const{_parentage:V}=this;if(V)if(this._parentage=null,Array.isArray(V))for(const k of V)k.remove(this);else V.remove(this);const{initialTeardown:R}=this;if((0,pt.m)(R))try{R()}catch(k){W=k instanceof Y?k.errors:[k]}const{_finalizers:P}=this;if(P){this._finalizers=null;for(const k of P)try{Z(k)}catch(E){W=W??[],E instanceof Y?W=[...W,...E.errors]:W.push(E)}}if(W)throw new Y(W)}}add(W){var V;if(W&&W!==this)if(this.closed)Z(W);else{if(W instanceof O){if(W.closed||W._hasParent(this))return;W._addParent(this)}(this._finalizers=null!==(V=this._finalizers)&&void 0!==V?V:[]).push(W)}}_hasParent(W){const{_parentage:V}=this;return V===W||Array.isArray(V)&&V.includes(W)}_addParent(W){const{_parentage:V}=this;this._parentage=Array.isArray(V)?(V.push(W),V):V?[V,W]:W}_removeParent(W){const{_parentage:V}=this;V===W?this._parentage=null:Array.isArray(V)&&(0,q.P)(V,W)}remove(W){const{_finalizers:V}=this;V&&(0,q.P)(V,W),W instanceof O&&W._removeParent(this)}}O.EMPTY=(()=>{const $=new O;return $.closed=!0,$})();const U=O.EMPTY;function G($){return $ instanceof O||$&&"closed"in $&&(0,pt.m)($.remove)&&(0,pt.m)($.add)&&(0,pt.m)($.unsubscribe)}function Z($){(0,pt.m)($)?$():$.unsubscribe()}},2416:(Jt,$t,ht)=>{"use strict";ht.d($t,{v:()=>pt});const pt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4033:(Jt,$t,ht)=>{"use strict";ht.d($t,{c:()=>U});var pt=ht(9751),t=ht(727),Y=ht(8343),q=ht(5403),O=ht(4482);class U extends pt.y{constructor(Z,$){super(),this.source=Z,this.subjectFactory=$,this._subject=null,this._refCount=0,this._connection=null,(0,O.A)(Z)&&(this.lift=Z.lift)}_subscribe(Z){return this.getSubject().subscribe(Z)}getSubject(){const Z=this._subject;return(!Z||Z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Z}=this;this._subject=this._connection=null,Z?.unsubscribe()}connect(){let Z=this._connection;if(!Z){Z=this._connection=new t.w0;const $=this.getSubject();Z.add(this.source.subscribe((0,q.x)($,void 0,()=>{this._teardown(),$.complete()},W=>{this._teardown(),$.error(W)},()=>this._teardown()))),Z.closed&&(this._connection=null,Z=t.w0.EMPTY)}return Z}refCount(){return(0,Y.x)()(this)}}},9841:(Jt,$t,ht)=>{"use strict";ht.d($t,{a:()=>W});var pt=ht(9751),t=ht(4742),Y=ht(2076),q=ht(4671),O=ht(3268),U=ht(3269),G=ht(1810),Z=ht(5403),$=ht(9672);function W(...P){const k=(0,U.yG)(P),E=(0,U.jO)(P),{args:w,keys:T}=(0,t.D)(P);if(0===w.length)return(0,Y.D)([],k);const y=new pt.y(function V(P,k,E=q.y){return w=>{R(k,()=>{const{length:T}=P,y=new Array(T);let A=T,g=T;for(let v=0;v{const S=(0,Y.D)(P[v],k);let N=!1;S.subscribe((0,Z.x)(w,j=>{y[v]=j,N||(N=!0,g--),g||w.next(E(y.slice()))},()=>{--A||w.complete()}))},w)},w)}}(w,k,T?A=>(0,G.n)(T,A):q.y));return E?y.pipe((0,O.Z)(E)):y}function R(P,k,E){P?(0,$.f)(E,P,k):k()}},7272:(Jt,$t,ht)=>{"use strict";ht.d($t,{z:()=>O});var pt=ht(8189);var Y=ht(3269),q=ht(2076);function O(...U){return function t(){return(0,pt.J)(1)}()((0,q.D)(U,(0,Y.yG)(U)))}},9770:(Jt,$t,ht)=>{"use strict";ht.d($t,{P:()=>Y});var pt=ht(9751),t=ht(8421);function Y(q){return new pt.y(O=>{(0,t.Xf)(q()).subscribe(O)})}},515:(Jt,$t,ht)=>{"use strict";ht.d($t,{E:()=>t});const t=new(ht(9751).y)(O=>O.complete())},2076:(Jt,$t,ht)=>{"use strict";ht.d($t,{D:()=>j});var pt=ht(8421),t=ht(9672),Y=ht(4482),q=ht(5403);function O(M,D=0){return(0,Y.e)((I,b)=>{I.subscribe((0,q.x)(b,d=>(0,t.f)(b,M,()=>b.next(d),D),()=>(0,t.f)(b,M,()=>b.complete(),D),d=>(0,t.f)(b,M,()=>b.error(d),D)))})}function U(M,D=0){return(0,Y.e)((I,b)=>{b.add(M.schedule(()=>I.subscribe(b),D))})}var $=ht(9751);var V=ht(2202),R=ht(576);function k(M,D){if(!M)throw new Error("Iterable cannot be null");return new $.y(I=>{(0,t.f)(I,D,()=>{const b=M[Symbol.asyncIterator]();(0,t.f)(I,D,()=>{b.next().then(d=>{d.done?I.complete():I.next(d.value)})},0,!0)})})}var E=ht(3670),w=ht(8239),T=ht(1144),y=ht(6495),A=ht(2206),g=ht(4532),v=ht(3260);function N(M,D){if(null!=M){if((0,E.c)(M))return function G(M,D){return(0,pt.Xf)(M).pipe(U(D),O(D))}(M,D);if((0,T.z)(M))return function W(M,D){return new $.y(I=>{let b=0;return D.schedule(function(){b===M.length?I.complete():(I.next(M[b++]),I.closed||this.schedule())})})}(M,D);if((0,w.t)(M))return function Z(M,D){return(0,pt.Xf)(M).pipe(U(D),O(D))}(M,D);if((0,A.D)(M))return k(M,D);if((0,y.T)(M))return function P(M,D){return new $.y(I=>{let b;return(0,t.f)(I,D,()=>{b=M[V.h](),(0,t.f)(I,D,()=>{let d,u;try{({value:d,done:u}=b.next())}catch(a){return void I.error(a)}u?I.complete():I.next(d)},0,!0)}),()=>(0,R.m)(b?.return)&&b.return()})}(M,D);if((0,v.L)(M))return function S(M,D){return k((0,v.Q)(M),D)}(M,D)}throw(0,g.z)(M)}function j(M,D){return D?N(M,D):(0,pt.Xf)(M)}},8421:(Jt,$t,ht)=>{"use strict";ht.d($t,{Xf:()=>P});var pt=ht(655),t=ht(1144),Y=ht(8239),q=ht(9751),O=ht(3670),U=ht(2206),G=ht(4532),Z=ht(6495),$=ht(3260),W=ht(576),V=ht(7849),R=ht(8822);function P(v){if(v instanceof q.y)return v;if(null!=v){if((0,O.c)(v))return function k(v){return new q.y(S=>{const N=v[R.L]();if((0,W.m)(N.subscribe))return N.subscribe(S);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(v);if((0,t.z)(v))return function E(v){return new q.y(S=>{for(let N=0;N{v.then(N=>{S.closed||(S.next(N),S.complete())},N=>S.error(N)).then(null,V.h)})}(v);if((0,U.D)(v))return y(v);if((0,Z.T)(v))return function T(v){return new q.y(S=>{for(const N of v)if(S.next(N),S.closed)return;S.complete()})}(v);if((0,$.L)(v))return function A(v){return y((0,$.Q)(v))}(v)}throw(0,G.z)(v)}function y(v){return new q.y(S=>{(function g(v,S){var N,j,M,D;return(0,pt.mG)(this,void 0,void 0,function*(){try{for(N=(0,pt.KL)(v);!(j=yield N.next()).done;){const I=j.value;if(S.next(I),S.closed)return}}catch(I){M={error:I}}finally{try{j&&!j.done&&(D=N.return)&&(yield D.call(N))}finally{if(M)throw M.error}}S.complete()})})(v,S).catch(N=>S.error(N))})}},6451:(Jt,$t,ht)=>{"use strict";ht.d($t,{T:()=>U});var pt=ht(8189),t=ht(8421),Y=ht(515),q=ht(3269),O=ht(2076);function U(...G){const Z=(0,q.yG)(G),$=(0,q._6)(G,1/0),W=G;return W.length?1===W.length?(0,t.Xf)(W[0]):(0,pt.J)($)((0,O.D)(W,Z)):Y.E}},9646:(Jt,$t,ht)=>{"use strict";ht.d($t,{of:()=>Y});var pt=ht(3269),t=ht(2076);function Y(...q){const O=(0,pt.yG)(q);return(0,t.D)(q,O)}},2843:(Jt,$t,ht)=>{"use strict";ht.d($t,{_:()=>Y});var pt=ht(9751),t=ht(576);function Y(q,O){const U=(0,t.m)(q)?q:()=>q,G=Z=>Z.error(U());return new pt.y(O?Z=>O.schedule(G,0,Z):G)}},5963:(Jt,$t,ht)=>{"use strict";ht.d($t,{H:()=>O});var pt=ht(9751),t=ht(4986),Y=ht(3532);function O(U=0,G,Z=t.P){let $=-1;return null!=G&&((0,Y.K)(G)?Z=G:$=G),new pt.y(W=>{let V=function q(U){return U instanceof Date&&!isNaN(U)}(U)?+U-Z.now():U;V<0&&(V=0);let R=0;return Z.schedule(function(){W.closed||(W.next(R++),0<=$?this.schedule(void 0,$):W.complete())},V)})}},5403:(Jt,$t,ht)=>{"use strict";ht.d($t,{x:()=>t});var pt=ht(930);function t(q,O,U,G,Z){return new Y(q,O,U,G,Z)}class Y extends pt.Lv{constructor(O,U,G,Z,$,W){super(O),this.onFinalize=$,this.shouldUnsubscribe=W,this._next=U?function(V){try{U(V)}catch(R){O.error(R)}}:super._next,this._error=Z?function(V){try{Z(V)}catch(R){O.error(R)}finally{this.unsubscribe()}}:super._error,this._complete=G?function(){try{G()}catch(V){O.error(V)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var O;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:U}=this;super.unsubscribe(),!U&&(null===(O=this.onFinalize)||void 0===O||O.call(this))}}}},262:(Jt,$t,ht)=>{"use strict";ht.d($t,{K:()=>q});var pt=ht(8421),t=ht(5403),Y=ht(4482);function q(O){return(0,Y.e)((U,G)=>{let W,Z=null,$=!1;Z=U.subscribe((0,t.x)(G,void 0,void 0,V=>{W=(0,pt.Xf)(O(V,q(O)(U))),Z?(Z.unsubscribe(),Z=null,W.subscribe(G)):$=!0})),$&&(Z.unsubscribe(),Z=null,W.subscribe(G))})}},4351:(Jt,$t,ht)=>{"use strict";ht.d($t,{b:()=>Y});var pt=ht(5577),t=ht(576);function Y(q,O){return(0,t.m)(O)?(0,pt.z)(q,O,1):(0,pt.z)(q,1)}},8372:(Jt,$t,ht)=>{"use strict";ht.d($t,{b:()=>q});var pt=ht(4986),t=ht(4482),Y=ht(5403);function q(O,U=pt.z){return(0,t.e)((G,Z)=>{let $=null,W=null,V=null;const R=()=>{if($){$.unsubscribe(),$=null;const k=W;W=null,Z.next(k)}};function P(){const k=V+O,E=U.now();if(E{W=k,V=U.now(),$||($=U.schedule(P,O),Z.add($))},()=>{R(),Z.complete()},void 0,()=>{W=$=null}))})}},9300:(Jt,$t,ht)=>{"use strict";ht.d($t,{h:()=>Y});var pt=ht(4482),t=ht(5403);function Y(q,O){return(0,pt.e)((U,G)=>{let Z=0;U.subscribe((0,t.x)(G,$=>q.call(O,$,Z++)&&G.next($)))})}},4004:(Jt,$t,ht)=>{"use strict";ht.d($t,{U:()=>Y});var pt=ht(4482),t=ht(5403);function Y(q,O){return(0,pt.e)((U,G)=>{let Z=0;U.subscribe((0,t.x)(G,$=>{G.next(q.call(O,$,Z++))}))})}},9718:(Jt,$t,ht)=>{"use strict";ht.d($t,{h:()=>t});var pt=ht(4004);function t(Y){return(0,pt.U)(()=>Y)}},8189:(Jt,$t,ht)=>{"use strict";ht.d($t,{J:()=>Y});var pt=ht(5577),t=ht(4671);function Y(q=1/0){return(0,pt.z)(t.y,q)}},5577:(Jt,$t,ht)=>{"use strict";ht.d($t,{z:()=>Z});var pt=ht(4004),t=ht(8421),Y=ht(4482),q=ht(9672),O=ht(5403);var G=ht(576);function Z($,W,V=1/0){return(0,G.m)(W)?Z((R,P)=>(0,pt.U)((k,E)=>W(R,k,P,E))((0,t.Xf)($(R,P))),V):("number"==typeof W&&(V=W),(0,Y.e)((R,P)=>function U($,W,V,R,P,k,E,w){const T=[];let y=0,A=0,g=!1;const v=()=>{g&&!T.length&&!y&&W.complete()},S=j=>y{k&&W.next(j),y++;let M=!1;(0,t.Xf)(V(j,A++)).subscribe((0,O.x)(W,D=>{P?.(D),k?S(D):W.next(D)},()=>{M=!0},void 0,()=>{if(M)try{for(y--;T.length&&yN(D)):N(D)}v()}catch(D){W.error(D)}}))};return $.subscribe((0,O.x)(W,S,()=>{g=!0,v()})),()=>{w?.()}}(R,P,$,V)))}},8343:(Jt,$t,ht)=>{"use strict";ht.d($t,{x:()=>Y});var pt=ht(4482),t=ht(5403);function Y(){return(0,pt.e)((q,O)=>{let U=null;q._refCount++;const G=(0,t.x)(O,void 0,void 0,void 0,()=>{if(!q||q._refCount<=0||0<--q._refCount)return void(U=null);const Z=q._connection,$=U;U=null,Z&&(!$||Z===$)&&Z.unsubscribe(),O.unsubscribe()});q.subscribe(G),G.closed||(U=q.connect())})}},8675:(Jt,$t,ht)=>{"use strict";ht.d($t,{O:()=>q});var pt=ht(7272),t=ht(3269),Y=ht(4482);function q(...O){const U=(0,t.yG)(O);return(0,Y.e)((G,Z)=>{(U?(0,pt.z)(O,G,U):(0,pt.z)(O,G)).subscribe(Z)})}},3900:(Jt,$t,ht)=>{"use strict";ht.d($t,{w:()=>q});var pt=ht(8421),t=ht(4482),Y=ht(5403);function q(O,U){return(0,t.e)((G,Z)=>{let $=null,W=0,V=!1;const R=()=>V&&!$&&Z.complete();G.subscribe((0,Y.x)(Z,P=>{$?.unsubscribe();let k=0;const E=W++;(0,pt.Xf)(O(P,E)).subscribe($=(0,Y.x)(Z,w=>Z.next(U?U(P,w,E,k++):w),()=>{$=null,R()}))},()=>{V=!0,R()}))})}},5698:(Jt,$t,ht)=>{"use strict";ht.d($t,{q:()=>q});var pt=ht(515),t=ht(4482),Y=ht(5403);function q(O){return O<=0?()=>pt.E:(0,t.e)((U,G)=>{let Z=0;U.subscribe((0,Y.x)(G,$=>{++Z<=O&&(G.next($),O<=Z&&G.complete())}))})}},2722:(Jt,$t,ht)=>{"use strict";ht.d($t,{R:()=>O});var pt=ht(4482),t=ht(5403),Y=ht(8421),q=ht(5032);function O(U){return(0,pt.e)((G,Z)=>{(0,Y.Xf)(U).subscribe((0,t.x)(Z,()=>Z.complete(),q.Z)),!Z.closed&&G.subscribe(Z)})}},8505:(Jt,$t,ht)=>{"use strict";ht.d($t,{b:()=>O});var pt=ht(576),t=ht(4482),Y=ht(5403),q=ht(4671);function O(U,G,Z){const $=(0,pt.m)(U)||G||Z?{next:U,error:G,complete:Z}:U;return $?(0,t.e)((W,V)=>{var R;null===(R=$.subscribe)||void 0===R||R.call($);let P=!0;W.subscribe((0,Y.x)(V,k=>{var E;null===(E=$.next)||void 0===E||E.call($,k),V.next(k)},()=>{var k;P=!1,null===(k=$.complete)||void 0===k||k.call($),V.complete()},k=>{var E;P=!1,null===(E=$.error)||void 0===E||E.call($,k),V.error(k)},()=>{var k,E;P&&(null===(k=$.unsubscribe)||void 0===k||k.call($)),null===(E=$.finalize)||void 0===E||E.call($)}))}):q.y}},4408:(Jt,$t,ht)=>{"use strict";ht.d($t,{o:()=>O});var pt=ht(727);class t extends pt.w0{constructor(G,Z){super()}schedule(G,Z=0){return this}}const Y={setInterval(U,G,...Z){const{delegate:$}=Y;return $?.setInterval?$.setInterval(U,G,...Z):setInterval(U,G,...Z)},clearInterval(U){const{delegate:G}=Y;return(G?.clearInterval||clearInterval)(U)},delegate:void 0};var q=ht(8737);class O extends t{constructor(G,Z){super(G,Z),this.scheduler=G,this.work=Z,this.pending=!1}schedule(G,Z=0){var $;if(this.closed)return this;this.state=G;const W=this.id,V=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(V,W,Z)),this.pending=!0,this.delay=Z,this.id=null!==($=this.id)&&void 0!==$?$:this.requestAsyncId(V,this.id,Z),this}requestAsyncId(G,Z,$=0){return Y.setInterval(G.flush.bind(G,this),$)}recycleAsyncId(G,Z,$=0){if(null!=$&&this.delay===$&&!1===this.pending)return Z;null!=Z&&Y.clearInterval(Z)}execute(G,Z){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const $=this._execute(G,Z);if($)return $;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(G,Z){let W,$=!1;try{this.work(G)}catch(V){$=!0,W=V||new Error("Scheduled action threw falsy error")}if($)return this.unsubscribe(),W}unsubscribe(){if(!this.closed){const{id:G,scheduler:Z}=this,{actions:$}=Z;this.work=this.state=this.scheduler=null,this.pending=!1,(0,q.P)($,this),null!=G&&(this.id=this.recycleAsyncId(Z,G,null)),this.delay=null,super.unsubscribe()}}}},640:(Jt,$t,ht)=>{"use strict";ht.d($t,{v:()=>Y});const pt={now:()=>(pt.delegate||Date).now(),delegate:void 0};class t{constructor(O,U=t.now){this.schedulerActionCtor=O,this.now=U}schedule(O,U=0,G){return new this.schedulerActionCtor(this,O).schedule(G,U)}}t.now=pt.now;class Y extends t{constructor(O,U=t.now){super(O,U),this.actions=[],this._active=!1}flush(O){const{actions:U}=this;if(this._active)return void U.push(O);let G;this._active=!0;do{if(G=O.execute(O.state,O.delay))break}while(O=U.shift());if(this._active=!1,G){for(;O=U.shift();)O.unsubscribe();throw G}}}},4986:(Jt,$t,ht)=>{"use strict";ht.d($t,{P:()=>q,z:()=>Y});var pt=ht(4408);const Y=new(ht(640).v)(pt.o),q=Y},3410:(Jt,$t,ht)=>{"use strict";ht.d($t,{z:()=>pt});const pt={setTimeout(t,Y,...q){const{delegate:O}=pt;return O?.setTimeout?O.setTimeout(t,Y,...q):setTimeout(t,Y,...q)},clearTimeout(t){const{delegate:Y}=pt;return(Y?.clearTimeout||clearTimeout)(t)},delegate:void 0}},2202:(Jt,$t,ht)=>{"use strict";ht.d($t,{h:()=>t});const t=function pt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Jt,$t,ht)=>{"use strict";ht.d($t,{L:()=>pt});const pt="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Jt,$t,ht)=>{"use strict";ht.d($t,{K:()=>t});const t=(0,ht(3888).d)(Y=>function(){Y(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Jt,$t,ht)=>{"use strict";ht.d($t,{_6:()=>U,jO:()=>q,yG:()=>O});var pt=ht(576),t=ht(3532);function Y(G){return G[G.length-1]}function q(G){return(0,pt.m)(Y(G))?G.pop():void 0}function O(G){return(0,t.K)(Y(G))?G.pop():void 0}function U(G,Z){return"number"==typeof Y(G)?G.pop():Z}},4742:(Jt,$t,ht)=>{"use strict";ht.d($t,{D:()=>O});const{isArray:pt}=Array,{getPrototypeOf:t,prototype:Y,keys:q}=Object;function O(G){if(1===G.length){const Z=G[0];if(pt(Z))return{args:Z,keys:null};if(function U(G){return G&&"object"==typeof G&&t(G)===Y}(Z)){const $=q(Z);return{args:$.map(W=>Z[W]),keys:$}}}return{args:G,keys:null}}},8737:(Jt,$t,ht)=>{"use strict";function pt(t,Y){if(t){const q=t.indexOf(Y);0<=q&&t.splice(q,1)}}ht.d($t,{P:()=>pt})},3888:(Jt,$t,ht)=>{"use strict";function pt(t){const q=t(O=>{Error.call(O),O.stack=(new Error).stack});return q.prototype=Object.create(Error.prototype),q.prototype.constructor=q,q}ht.d($t,{d:()=>pt})},1810:(Jt,$t,ht)=>{"use strict";function pt(t,Y){return t.reduce((q,O,U)=>(q[O]=Y[U],q),{})}ht.d($t,{n:()=>pt})},2806:(Jt,$t,ht)=>{"use strict";ht.d($t,{O:()=>q,x:()=>Y});var pt=ht(2416);let t=null;function Y(O){if(pt.v.useDeprecatedSynchronousErrorHandling){const U=!t;if(U&&(t={errorThrown:!1,error:null}),O(),U){const{errorThrown:G,error:Z}=t;if(t=null,G)throw Z}}else O()}function q(O){pt.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=O)}},9672:(Jt,$t,ht)=>{"use strict";function pt(t,Y,q,O=0,U=!1){const G=Y.schedule(function(){q(),U?t.add(this.schedule(null,O)):this.unsubscribe()},O);if(t.add(G),!U)return G}ht.d($t,{f:()=>pt})},4671:(Jt,$t,ht)=>{"use strict";function pt(t){return t}ht.d($t,{y:()=>pt})},1144:(Jt,$t,ht)=>{"use strict";ht.d($t,{z:()=>pt});const pt=t=>t&&"number"==typeof t.length&&"function"!=typeof t},2206:(Jt,$t,ht)=>{"use strict";ht.d($t,{D:()=>t});var pt=ht(576);function t(Y){return Symbol.asyncIterator&&(0,pt.m)(Y?.[Symbol.asyncIterator])}},576:(Jt,$t,ht)=>{"use strict";function pt(t){return"function"==typeof t}ht.d($t,{m:()=>pt})},3670:(Jt,$t,ht)=>{"use strict";ht.d($t,{c:()=>Y});var pt=ht(8822),t=ht(576);function Y(q){return(0,t.m)(q[pt.L])}},6495:(Jt,$t,ht)=>{"use strict";ht.d($t,{T:()=>Y});var pt=ht(2202),t=ht(576);function Y(q){return(0,t.m)(q?.[pt.h])}},8239:(Jt,$t,ht)=>{"use strict";ht.d($t,{t:()=>t});var pt=ht(576);function t(Y){return(0,pt.m)(Y?.then)}},3260:(Jt,$t,ht)=>{"use strict";ht.d($t,{L:()=>q,Q:()=>Y});var pt=ht(655),t=ht(576);function Y(O){return(0,pt.FC)(this,arguments,function*(){const G=O.getReader();try{for(;;){const{value:Z,done:$}=yield(0,pt.qq)(G.read());if($)return yield(0,pt.qq)(void 0);yield yield(0,pt.qq)(Z)}}finally{G.releaseLock()}})}function q(O){return(0,t.m)(O?.getReader)}},3532:(Jt,$t,ht)=>{"use strict";ht.d($t,{K:()=>t});var pt=ht(576);function t(Y){return Y&&(0,pt.m)(Y.schedule)}},4482:(Jt,$t,ht)=>{"use strict";ht.d($t,{A:()=>t,e:()=>Y});var pt=ht(576);function t(q){return(0,pt.m)(q?.lift)}function Y(q){return O=>{if(t(O))return O.lift(function(U){try{return q(U,this)}catch(G){this.error(G)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>q});var pt=ht(4004);const{isArray:t}=Array;function q(O){return(0,pt.U)(U=>function Y(O,U){return t(U)?O(...U):O(U)}(O,U))}},5032:(Jt,$t,ht)=>{"use strict";function pt(){}ht.d($t,{Z:()=>pt})},9635:(Jt,$t,ht)=>{"use strict";ht.d($t,{U:()=>Y,z:()=>t});var pt=ht(4671);function t(...q){return Y(q)}function Y(q){return 0===q.length?pt.y:1===q.length?q[0]:function(U){return q.reduce((G,Z)=>Z(G),U)}}},7849:(Jt,$t,ht)=>{"use strict";ht.d($t,{h:()=>Y});var pt=ht(2416),t=ht(3410);function Y(q){t.z.setTimeout(()=>{const{onUnhandledError:O}=pt.v;if(!O)throw q;O(q)})}},4532:(Jt,$t,ht)=>{"use strict";function pt(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}ht.d($t,{z:()=>pt})},9699:Jt=>{Jt.exports=/[\0-\x1F\x7F-\x9F]/},9127:Jt=>{Jt.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},6020:Jt=>{Jt.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},5450:Jt=>{Jt.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},9315:(Jt,$t,ht)=>{"use strict";$t.Any=ht(1129),$t.Cc=ht(9699),$t.Cf=ht(9127),$t.P=ht(6020),$t.Z=ht(5450)},1129:Jt=>{Jt.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},655:(Jt,$t,ht)=>{"use strict";ht.d($t,{FC:()=>S,KL:()=>j,mG:()=>R,qq:()=>v});function R(n,o,m,_){return new(m||(m=Promise))(function(X,it){function rt(et){try{z(_.next(et))}catch(at){it(at)}}function L(et){try{z(_.throw(et))}catch(at){it(at)}}function z(et){et.done?X(et.value):function B(X){return X instanceof m?X:new m(function(it){it(X)})}(et.value).then(rt,L)}z((_=_.apply(n,o||[])).next())})}Object.create;function w(n){var o="function"==typeof Symbol&&Symbol.iterator,m=o&&n[o],_=0;if(m)return m.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&_>=n.length&&(n=void 0),{value:n&&n[_++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(n){return this instanceof v?(this.v=n,this):new v(n)}function S(n,o,m){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B,_=m.apply(n,o||[]),X=[];return B={},it("next"),it("throw"),it("return"),B[Symbol.asyncIterator]=function(){return this},B;function it(st){_[st]&&(B[st]=function(H){return new Promise(function(ot,nt){X.push([st,H,ot,nt])>1||rt(st,H)})})}function rt(st,H){try{!function L(st){st.value instanceof v?Promise.resolve(st.value.v).then(z,et):at(X[0][2],st)}(_[st](H))}catch(ot){at(X[0][3],ot)}}function z(st){rt("next",st)}function et(st){rt("throw",st)}function at(st,H){st(H),X.shift(),X.length&&rt(X[0][0],X[0][1])}}function j(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m,o=n[Symbol.asyncIterator];return o?o.call(n):(n=w(n),m={},_("next"),_("throw"),_("return"),m[Symbol.asyncIterator]=function(){return this},m);function _(X){m[X]=n[X]&&function(it){return new Promise(function(rt,L){(function B(X,it,rt,L){Promise.resolve(L).then(function(z){X({value:z,done:rt})},it)})(rt,L,(it=n[X](it)).done,it.value)})}}}Object.create},6895:(Jt,$t,ht)=>{"use strict";ht.r($t),ht.d($t,{APP_BASE_HREF:()=>T,AsyncPipe:()=>Pn,BrowserPlatformLocation:()=>W,CommonModule:()=>gr,CurrencyPipe:()=>Sr,DATE_PIPE_DEFAULT_OPTIONS:()=>Ln,DATE_PIPE_DEFAULT_TIMEZONE:()=>$r,DOCUMENT:()=>U,DatePipe:()=>je,DecimalPipe:()=>cr,FormStyle:()=>b,FormatWidth:()=>u,HashLocationStrategy:()=>A,I18nPluralPipe:()=>gn,I18nSelectPipe:()=>xr,IMAGE_CONFIG:()=>nl,IMAGE_LOADER:()=>Vn,JsonPipe:()=>pr,KeyValuePipe:()=>xs,LOCATION_INITIALIZED:()=>$,Location:()=>g,LocationStrategy:()=>w,LowerCasePipe:()=>Ci,NgClass:()=>ri,NgComponentOutlet:()=>Qe,NgFor:()=>li,NgForOf:()=>li,NgForOfContext:()=>ci,NgIf:()=>Di,NgIfContext:()=>Re,NgLocaleLocalization:()=>De,NgLocalization:()=>me,NgOptimizedImage:()=>No,NgPlural:()=>mi,NgPluralCase:()=>Mi,NgStyle:()=>Oe,NgSwitch:()=>fe,NgSwitchCase:()=>ve,NgSwitchDefault:()=>qe,NgTemplateOutlet:()=>fn,NumberFormatStyle:()=>D,NumberSymbol:()=>a,PRECONNECT_CHECK_BLOCKLIST:()=>vn,PathLocationStrategy:()=>y,PercentPipe:()=>Kr,PlatformLocation:()=>G,Plural:()=>I,SlicePipe:()=>fr,TitleCasePipe:()=>un,TranslationWidth:()=>d,UpperCasePipe:()=>An,VERSION:()=>Oo,ViewportScroller:()=>La,WeekDay:()=>n,XhrFactory:()=>el,formatCurrency:()=>Ji,formatDate:()=>Rt,formatNumber:()=>Or,formatPercent:()=>lr,getCurrencySymbol:()=>Ft,getLocaleCurrencyCode:()=>nt,getLocaleCurrencyName:()=>ot,getLocaleCurrencySymbol:()=>H,getLocaleDateFormat:()=>L,getLocaleDateTimeFormat:()=>et,getLocaleDayNames:()=>_,getLocaleDayPeriods:()=>m,getLocaleDirection:()=>Mt,getLocaleEraNames:()=>X,getLocaleExtraDayPeriodRules:()=>St,getLocaleExtraDayPeriods:()=>wt,getLocaleFirstDayOfWeek:()=>it,getLocaleId:()=>o,getLocaleMonthNames:()=>B,getLocaleNumberFormat:()=>st,getLocaleNumberSymbol:()=>at,getLocalePluralCase:()=>gt,getLocaleTimeFormat:()=>z,getLocaleWeekEndRange:()=>rt,getNumberOfCurrencyDigits:()=>Ut,isPlatformBrowser:()=>ka,isPlatformServer:()=>ir,isPlatformWorkerApp:()=>us,isPlatformWorkerUi:()=>io,provideCloudflareLoader:()=>Cr,provideCloudinaryLoader:()=>tr,provideImageKitLoader:()=>Lo,provideImgixLoader:()=>ec,registerLocaleData:()=>Pe,\u0275BrowserPlatformLocation:()=>W,\u0275DomAdapter:()=>O,\u0275NullViewportScroller:()=>Dr,\u0275PLATFORM_BROWSER_ID:()=>Oa,\u0275PLATFORM_SERVER_ID:()=>Cs,\u0275PLATFORM_WORKER_APP_ID:()=>ca,\u0275PLATFORM_WORKER_UI_ID:()=>hs,\u0275getDOM:()=>Y,\u0275parseCookieValue:()=>Ae,\u0275setRootDomAdapter:()=>q});var pt=ht(1571);let t=null;function Y(){return t}function q(Gt){t||(t=Gt)}class O{}const U=new pt.InjectionToken("DocumentToken");class G{historyGo(kt){throw new Error("Not implemented")}}G.\u0275fac=function(kt){return new(kt||G)},G.\u0275prov=pt.\u0275\u0275defineInjectable({token:G,factory:function(){return function Z(){return(0,pt.\u0275\u0275inject)(W)}()},providedIn:"platform"});const $=new pt.InjectionToken("Location Initialized");class W extends G{constructor(kt){super(),this._doc=kt,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Y().getBaseHref(this._doc)}onPopState(kt){const ne=Y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",kt,!1),()=>ne.removeEventListener("popstate",kt)}onHashChange(kt){const ne=Y().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",kt,!1),()=>ne.removeEventListener("hashchange",kt)}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(kt){this._location.pathname=kt}pushState(kt,ne,pe){V()?this._history.pushState(kt,ne,pe):this._location.hash=pe}replaceState(kt,ne,pe){V()?this._history.replaceState(kt,ne,pe):this._location.hash=pe}forward(){this._history.forward()}back(){this._history.back()}historyGo(kt=0){this._history.go(kt)}getState(){return this._history.state}}function V(){return!!window.history.pushState}function P(Gt,kt){if(0==Gt.length)return kt;if(0==kt.length)return Gt;let ne=0;return Gt.endsWith("/")&&ne++,kt.startsWith("/")&&ne++,2==ne?Gt+kt.substring(1):1==ne?Gt+kt:Gt+"/"+kt}function k(Gt){const kt=Gt.match(/#|\?|$/),ne=kt&&kt.index||Gt.length,pe=ne-("/"===Gt[ne-1]?1:0);return Gt.slice(0,pe)+Gt.slice(ne)}function E(Gt){return Gt&&"?"!==Gt[0]?"?"+Gt:Gt}W.\u0275fac=function(kt){return new(kt||W)(pt.\u0275\u0275inject(U))},W.\u0275prov=pt.\u0275\u0275defineInjectable({token:W,factory:function(){return function R(){return new W((0,pt.\u0275\u0275inject)(U))}()},providedIn:"platform"});class w{historyGo(kt){throw new Error("Not implemented")}}w.\u0275fac=function(kt){return new(kt||w)},w.\u0275prov=pt.\u0275\u0275defineInjectable({token:w,factory:function(){return(0,pt.inject)(y)},providedIn:"root"});const T=new pt.InjectionToken("appBaseHref");class y extends w{constructor(kt,ne){super(),this._platformLocation=kt,this._removeListenerFns=[],this._baseHref=ne??this._platformLocation.getBaseHrefFromDOM()??(0,pt.inject)(U).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(kt){this._removeListenerFns.push(this._platformLocation.onPopState(kt),this._platformLocation.onHashChange(kt))}getBaseHref(){return this._baseHref}prepareExternalUrl(kt){return P(this._baseHref,kt)}path(kt=!1){const ne=this._platformLocation.pathname+E(this._platformLocation.search),pe=this._platformLocation.hash;return pe&&kt?`${ne}${pe}`:ne}pushState(kt,ne,pe,Ve){const ni=this.prepareExternalUrl(pe+E(Ve));this._platformLocation.pushState(kt,ne,ni)}replaceState(kt,ne,pe,Ve){const ni=this.prepareExternalUrl(pe+E(Ve));this._platformLocation.replaceState(kt,ne,ni)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(kt=0){this._platformLocation.historyGo?.(kt)}}y.\u0275fac=function(kt){return new(kt||y)(pt.\u0275\u0275inject(G),pt.\u0275\u0275inject(T,8))},y.\u0275prov=pt.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:"root"});class A extends w{constructor(kt,ne){super(),this._platformLocation=kt,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(kt){this._removeListenerFns.push(this._platformLocation.onPopState(kt),this._platformLocation.onHashChange(kt))}getBaseHref(){return this._baseHref}path(kt=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(kt){const ne=P(this._baseHref,kt);return ne.length>0?"#"+ne:ne}pushState(kt,ne,pe,Ve){let ni=this.prepareExternalUrl(pe+E(Ve));0==ni.length&&(ni=this._platformLocation.pathname),this._platformLocation.pushState(kt,ne,ni)}replaceState(kt,ne,pe,Ve){let ni=this.prepareExternalUrl(pe+E(Ve));0==ni.length&&(ni=this._platformLocation.pathname),this._platformLocation.replaceState(kt,ne,ni)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(kt=0){this._platformLocation.historyGo?.(kt)}}A.\u0275fac=function(kt){return new(kt||A)(pt.\u0275\u0275inject(G),pt.\u0275\u0275inject(T,8))},A.\u0275prov=pt.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac});class g{constructor(kt){this._subject=new pt.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=kt;const ne=this._locationStrategy.getBaseHref();this._basePath=function j(Gt){if(new RegExp("^(https?:)?//").test(Gt)){const[,ne]=Gt.split(/\/\/[^\/]+/);return ne}return Gt}(k(N(ne))),this._locationStrategy.onPopState(pe=>{this._subject.emit({url:this.path(!0),pop:!0,state:pe.state,type:pe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(kt=!1){return this.normalize(this._locationStrategy.path(kt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(kt,ne=""){return this.path()==this.normalize(kt+E(ne))}normalize(kt){return g.stripTrailingSlash(function S(Gt,kt){return Gt&&new RegExp(`^${Gt}([/;?#]|$)`).test(kt)?kt.substring(Gt.length):kt}(this._basePath,N(kt)))}prepareExternalUrl(kt){return kt&&"/"!==kt[0]&&(kt="/"+kt),this._locationStrategy.prepareExternalUrl(kt)}go(kt,ne="",pe=null){this._locationStrategy.pushState(pe,"",kt,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(kt+E(ne)),pe)}replaceState(kt,ne="",pe=null){this._locationStrategy.replaceState(pe,"",kt,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(kt+E(ne)),pe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(kt=0){this._locationStrategy.historyGo?.(kt)}onUrlChange(kt){return this._urlChangeListeners.push(kt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)})),()=>{const ne=this._urlChangeListeners.indexOf(kt);this._urlChangeListeners.splice(ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(kt="",ne){this._urlChangeListeners.forEach(pe=>pe(kt,ne))}subscribe(kt,ne,pe){return this._subject.subscribe({next:kt,error:ne,complete:pe})}}function N(Gt){return Gt.replace(/\/index.html$/,"")}g.normalizeQueryParams=E,g.joinWithSlash=P,g.stripTrailingSlash=k,g.\u0275fac=function(kt){return new(kt||g)(pt.\u0275\u0275inject(w))},g.\u0275prov=pt.\u0275\u0275defineInjectable({token:g,factory:function(){return function v(){return new g((0,pt.\u0275\u0275inject)(w))}()},providedIn:"root"});const M={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 D,Gt,I,b,d,u,a,n;function o(Gt){return(0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.LocaleId]}function m(Gt,kt,ne){const pe=(0,pt.\u0275findLocaleData)(Gt),ni=Dt([pe[pt.\u0275LocaleDataIndex.DayPeriodsFormat],pe[pt.\u0275LocaleDataIndex.DayPeriodsStandalone]],kt);return Dt(ni,ne)}function _(Gt,kt,ne){const pe=(0,pt.\u0275findLocaleData)(Gt),ni=Dt([pe[pt.\u0275LocaleDataIndex.DaysFormat],pe[pt.\u0275LocaleDataIndex.DaysStandalone]],kt);return Dt(ni,ne)}function B(Gt,kt,ne){const pe=(0,pt.\u0275findLocaleData)(Gt),ni=Dt([pe[pt.\u0275LocaleDataIndex.MonthsFormat],pe[pt.\u0275LocaleDataIndex.MonthsStandalone]],kt);return Dt(ni,ne)}function X(Gt,kt){return Dt((0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.Eras],kt)}function it(Gt){return(0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.FirstDayOfWeek]}function rt(Gt){return(0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.WeekendRange]}function L(Gt,kt){return Dt((0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.DateFormat],kt)}function z(Gt,kt){return Dt((0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.TimeFormat],kt)}function et(Gt,kt){return Dt((0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.DateTimeFormat],kt)}function at(Gt,kt){const ne=(0,pt.\u0275findLocaleData)(Gt),pe=ne[pt.\u0275LocaleDataIndex.NumberSymbols][kt];if(typeof pe>"u"){if(kt===a.CurrencyDecimal)return ne[pt.\u0275LocaleDataIndex.NumberSymbols][a.Decimal];if(kt===a.CurrencyGroup)return ne[pt.\u0275LocaleDataIndex.NumberSymbols][a.Group]}return pe}function st(Gt,kt){return(0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.NumberFormats][kt]}function H(Gt){return(0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.CurrencySymbol]||null}function ot(Gt){return(0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.CurrencyName]||null}function nt(Gt){return(0,pt.\u0275getLocaleCurrencyCode)(Gt)}(Gt=D||(D={}))[Gt.Decimal=0]="Decimal",Gt[Gt.Percent=1]="Percent",Gt[Gt.Currency=2]="Currency",Gt[Gt.Scientific=3]="Scientific",function(Gt){Gt[Gt.Zero=0]="Zero",Gt[Gt.One=1]="One",Gt[Gt.Two=2]="Two",Gt[Gt.Few=3]="Few",Gt[Gt.Many=4]="Many",Gt[Gt.Other=5]="Other"}(I||(I={})),function(Gt){Gt[Gt.Format=0]="Format",Gt[Gt.Standalone=1]="Standalone"}(b||(b={})),function(Gt){Gt[Gt.Narrow=0]="Narrow",Gt[Gt.Abbreviated=1]="Abbreviated",Gt[Gt.Wide=2]="Wide",Gt[Gt.Short=3]="Short"}(d||(d={})),function(Gt){Gt[Gt.Short=0]="Short",Gt[Gt.Medium=1]="Medium",Gt[Gt.Long=2]="Long",Gt[Gt.Full=3]="Full"}(u||(u={})),function(Gt){Gt[Gt.Decimal=0]="Decimal",Gt[Gt.Group=1]="Group",Gt[Gt.List=2]="List",Gt[Gt.PercentSign=3]="PercentSign",Gt[Gt.PlusSign=4]="PlusSign",Gt[Gt.MinusSign=5]="MinusSign",Gt[Gt.Exponential=6]="Exponential",Gt[Gt.SuperscriptingExponent=7]="SuperscriptingExponent",Gt[Gt.PerMille=8]="PerMille",Gt[Gt.Infinity=9]="Infinity",Gt[Gt.NaN=10]="NaN",Gt[Gt.TimeSeparator=11]="TimeSeparator",Gt[Gt.CurrencyDecimal=12]="CurrencyDecimal",Gt[Gt.CurrencyGroup=13]="CurrencyGroup"}(a||(a={})),function(Gt){Gt[Gt.Sunday=0]="Sunday",Gt[Gt.Monday=1]="Monday",Gt[Gt.Tuesday=2]="Tuesday",Gt[Gt.Wednesday=3]="Wednesday",Gt[Gt.Thursday=4]="Thursday",Gt[Gt.Friday=5]="Friday",Gt[Gt.Saturday=6]="Saturday"}(n||(n={}));const gt=pt.\u0275getLocalePluralCase;function mt(Gt){if(!Gt[pt.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${Gt[pt.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function St(Gt){const kt=(0,pt.\u0275findLocaleData)(Gt);return mt(kt),(kt[pt.\u0275LocaleDataIndex.ExtraData][2]||[]).map(pe=>"string"==typeof pe?Pt(pe):[Pt(pe[0]),Pt(pe[1])])}function wt(Gt,kt,ne){const pe=(0,pt.\u0275findLocaleData)(Gt);mt(pe);const ni=Dt([pe[pt.\u0275LocaleDataIndex.ExtraData][0],pe[pt.\u0275LocaleDataIndex.ExtraData][1]],kt)||[];return Dt(ni,ne)||[]}function Mt(Gt){return(0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.Directionality]}function Dt(Gt,kt){for(let ne=kt;ne>-1;ne--)if(typeof Gt[ne]<"u")return Gt[ne];throw new Error("Locale data API: locale data undefined")}function Pt(Gt){const[kt,ne]=Gt.split(":");return{hours:+kt,minutes:+ne}}function Ft(Gt,kt,ne="en"){const pe=function yt(Gt){return(0,pt.\u0275findLocaleData)(Gt)[pt.\u0275LocaleDataIndex.Currencies]}(ne)[Gt]||M[Gt]||[],Ve=pe[1];return"narrow"===kt&&"string"==typeof Ve?Ve:pe[0]||Gt}function Ut(Gt){let kt;const ne=M[Gt];return ne&&(kt=ne[2]),"number"==typeof kt?kt:2}const bt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_t={},xt=/((?:[^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 ft,Ct,Ot;function Rt(Gt,kt,ne,pe){let Ve=function hn(Gt){if(Mn(Gt))return Gt;if("number"==typeof Gt&&!isNaN(Gt))return new Date(Gt);if("string"==typeof Gt){if(Gt=Gt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Gt)){const[Ve,ni=1,Ai=1]=Gt.split("-").map(Zi=>+Zi);return Zt(Ve,ni-1,Ai)}const ne=parseFloat(Gt);if(!isNaN(Gt-ne))return new Date(ne);let pe;if(pe=Gt.match(bt))return function dr(Gt){const kt=new Date(0);let ne=0,pe=0;const Ve=Gt[8]?kt.setUTCFullYear:kt.setFullYear,ni=Gt[8]?kt.setUTCHours:kt.setHours;Gt[9]&&(ne=Number(Gt[9]+Gt[10]),pe=Number(Gt[9]+Gt[11])),Ve.call(kt,Number(Gt[1]),Number(Gt[2])-1,Number(Gt[3]));const Ai=Number(Gt[4]||0)-ne,Zi=Number(Gt[5]||0)-pe,ln=Number(Gt[6]||0),mn=Math.floor(1e3*parseFloat("0."+(Gt[7]||0)));return ni.call(kt,Ai,Zi,ln,mn),kt}(pe)}const kt=new Date(Gt);if(!Mn(kt))throw new Error(`Unable to convert "${Gt}" into a date`);return kt}(Gt);kt=he(ne,kt)||kt;let Zi,Ai=[];for(;kt;){if(Zi=xt.exec(kt),!Zi){Ai.push(kt);break}{Ai=Ai.concat(Zi.slice(1));const In=Ai.pop();if(!In)break;kt=In}}let ln=Ve.getTimezoneOffset();pe&&(ln=Oi(pe,ln),Ve=function qi(Gt,kt,ne){const pe=ne?-1:1,Ve=Gt.getTimezoneOffset(),ni=Oi(kt,Ve);return function Ii(Gt,kt){return Gt=new Date(Gt.getTime()),Gt.setMinutes(Gt.getMinutes()+kt),Gt}(Gt,pe*(ni-Ve))}(Ve,pe,!0));let mn="";return Ai.forEach(In=>{const wn=function vi(Gt){if(_i[Gt])return _i[Gt];let kt;switch(Gt){case"G":case"GG":case"GGG":kt=ii(Ot.Eras,d.Abbreviated);break;case"GGGG":kt=ii(Ot.Eras,d.Wide);break;case"GGGGG":kt=ii(Ot.Eras,d.Narrow);break;case"y":kt=He(Ct.FullYear,1,0,!1,!0);break;case"yy":kt=He(Ct.FullYear,2,0,!0,!0);break;case"yyy":kt=He(Ct.FullYear,3,0,!1,!0);break;case"yyyy":kt=He(Ct.FullYear,4,0,!1,!0);break;case"Y":kt=Le(1);break;case"YY":kt=Le(2,!0);break;case"YYY":kt=Le(3);break;case"YYYY":kt=Le(4);break;case"M":case"L":kt=He(Ct.Month,1,1);break;case"MM":case"LL":kt=He(Ct.Month,2,1);break;case"MMM":kt=ii(Ot.Months,d.Abbreviated);break;case"MMMM":kt=ii(Ot.Months,d.Wide);break;case"MMMMM":kt=ii(Ot.Months,d.Narrow);break;case"LLL":kt=ii(Ot.Months,d.Abbreviated,b.Standalone);break;case"LLLL":kt=ii(Ot.Months,d.Wide,b.Standalone);break;case"LLLLL":kt=ii(Ot.Months,d.Narrow,b.Standalone);break;case"w":kt=Se(1);break;case"ww":kt=Se(2);break;case"W":kt=Se(1,!0);break;case"d":kt=He(Ct.Date,1);break;case"dd":kt=He(Ct.Date,2);break;case"c":case"cc":kt=He(Ct.Day,1);break;case"ccc":kt=ii(Ot.Days,d.Abbreviated,b.Standalone);break;case"cccc":kt=ii(Ot.Days,d.Wide,b.Standalone);break;case"ccccc":kt=ii(Ot.Days,d.Narrow,b.Standalone);break;case"cccccc":kt=ii(Ot.Days,d.Short,b.Standalone);break;case"E":case"EE":case"EEE":kt=ii(Ot.Days,d.Abbreviated);break;case"EEEE":kt=ii(Ot.Days,d.Wide);break;case"EEEEE":kt=ii(Ot.Days,d.Narrow);break;case"EEEEEE":kt=ii(Ot.Days,d.Short);break;case"a":case"aa":case"aaa":kt=ii(Ot.DayPeriods,d.Abbreviated);break;case"aaaa":kt=ii(Ot.DayPeriods,d.Wide);break;case"aaaaa":kt=ii(Ot.DayPeriods,d.Narrow);break;case"b":case"bb":case"bbb":kt=ii(Ot.DayPeriods,d.Abbreviated,b.Standalone,!0);break;case"bbbb":kt=ii(Ot.DayPeriods,d.Wide,b.Standalone,!0);break;case"bbbbb":kt=ii(Ot.DayPeriods,d.Narrow,b.Standalone,!0);break;case"B":case"BB":case"BBB":kt=ii(Ot.DayPeriods,d.Abbreviated,b.Format,!0);break;case"BBBB":kt=ii(Ot.DayPeriods,d.Wide,b.Format,!0);break;case"BBBBB":kt=ii(Ot.DayPeriods,d.Narrow,b.Format,!0);break;case"h":kt=He(Ct.Hours,1,-12);break;case"hh":kt=He(Ct.Hours,2,-12);break;case"H":kt=He(Ct.Hours,1);break;case"HH":kt=He(Ct.Hours,2);break;case"m":kt=He(Ct.Minutes,1);break;case"mm":kt=He(Ct.Minutes,2);break;case"s":kt=He(Ct.Seconds,1);break;case"ss":kt=He(Ct.Seconds,2);break;case"S":kt=He(Ct.FractionalSeconds,1);break;case"SS":kt=He(Ct.FractionalSeconds,2);break;case"SSS":kt=He(Ct.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":kt=Te(ft.Short);break;case"ZZZZZ":kt=Te(ft.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":kt=Te(ft.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":kt=Te(ft.Long);break;default:return null}return _i[Gt]=kt,kt}(In);mn+=wn?wn(Ve,ne,ln):"''"===In?"'":In.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),mn}function Zt(Gt,kt,ne){const pe=new Date(0);return pe.setFullYear(Gt,kt,ne),pe.setHours(0,0,0),pe}function he(Gt,kt){const ne=o(Gt);if(_t[ne]=_t[ne]||{},_t[ne][kt])return _t[ne][kt];let pe="";switch(kt){case"shortDate":pe=L(Gt,u.Short);break;case"mediumDate":pe=L(Gt,u.Medium);break;case"longDate":pe=L(Gt,u.Long);break;case"fullDate":pe=L(Gt,u.Full);break;case"shortTime":pe=z(Gt,u.Short);break;case"mediumTime":pe=z(Gt,u.Medium);break;case"longTime":pe=z(Gt,u.Long);break;case"fullTime":pe=z(Gt,u.Full);break;case"short":const Ve=he(Gt,"shortTime"),ni=he(Gt,"shortDate");pe=Ie(et(Gt,u.Short),[Ve,ni]);break;case"medium":const Ai=he(Gt,"mediumTime"),Zi=he(Gt,"mediumDate");pe=Ie(et(Gt,u.Medium),[Ai,Zi]);break;case"long":const ln=he(Gt,"longTime"),mn=he(Gt,"longDate");pe=Ie(et(Gt,u.Long),[ln,mn]);break;case"full":const In=he(Gt,"fullTime"),wn=he(Gt,"fullDate");pe=Ie(et(Gt,u.Full),[In,wn])}return pe&&(_t[ne][kt]=pe),pe}function Ie(Gt,kt){return kt&&(Gt=Gt.replace(/\{([^}]+)}/g,function(ne,pe){return null!=kt&&pe in kt?kt[pe]:ne})),Gt}function ye(Gt,kt,ne="-",pe,Ve){let ni="";(Gt<0||Ve&&Gt<=0)&&(Ve?Gt=1-Gt:(Gt=-Gt,ni=ne));let Ai=String(Gt);for(;Ai.length0||Zi>-ne)&&(Zi+=ne),Gt===Ct.Hours)0===Zi&&-12===ne&&(Zi=12);else if(Gt===Ct.FractionalSeconds)return function Ne(Gt,kt){return ye(Gt,3).substring(0,kt)}(Zi,kt);const ln=at(Ai,a.MinusSign);return ye(Zi,kt,ln,pe,Ve)}}function ii(Gt,kt,ne=b.Format,pe=!1){return function(Ve,ni){return function $e(Gt,kt,ne,pe,Ve,ni){switch(ne){case Ot.Months:return B(kt,Ve,pe)[Gt.getMonth()];case Ot.Days:return _(kt,Ve,pe)[Gt.getDay()];case Ot.DayPeriods:const Ai=Gt.getHours(),Zi=Gt.getMinutes();if(ni){const mn=St(kt),In=wt(kt,Ve,pe),wn=mn.findIndex(or=>{if(Array.isArray(or)){const[On,Xn]=or,rs=Ai>=On.hours&&Zi>=On.minutes,yo=Ai0?Math.floor(Ve/60):Math.ceil(Ve/60);switch(Gt){case ft.Short:return(Ve>=0?"+":"")+ye(Ai,2,ni)+ye(Math.abs(Ve%60),2,ni);case ft.ShortGMT:return"GMT"+(Ve>=0?"+":"")+ye(Ai,1,ni);case ft.Long:return"GMT"+(Ve>=0?"+":"")+ye(Ai,2,ni)+":"+ye(Math.abs(Ve%60),2,ni);case ft.Extended:return 0===pe?"Z":(Ve>=0?"+":"")+ye(Ai,2,ni)+":"+ye(Math.abs(Ve%60),2,ni);default:throw new Error(`Unknown zone width "${Gt}"`)}}}!function(Gt){Gt[Gt.Short=0]="Short",Gt[Gt.ShortGMT=1]="ShortGMT",Gt[Gt.Long=2]="Long",Gt[Gt.Extended=3]="Extended"}(ft||(ft={})),function(Gt){Gt[Gt.FullYear=0]="FullYear",Gt[Gt.Month=1]="Month",Gt[Gt.Date=2]="Date",Gt[Gt.Hours=3]="Hours",Gt[Gt.Minutes=4]="Minutes",Gt[Gt.Seconds=5]="Seconds",Gt[Gt.FractionalSeconds=6]="FractionalSeconds",Gt[Gt.Day=7]="Day"}(Ct||(Ct={})),function(Gt){Gt[Gt.DayPeriods=0]="DayPeriods",Gt[Gt.Days=1]="Days",Gt[Gt.Months=2]="Months",Gt[Gt.Eras=3]="Eras"}(Ot||(Ot={}));function se(Gt){return Zt(Gt.getFullYear(),Gt.getMonth(),Gt.getDate()+(4-Gt.getDay()))}function Se(Gt,kt=!1){return function(ne,pe){let Ve;if(kt){const ni=new Date(ne.getFullYear(),ne.getMonth(),1).getDay()-1,Ai=ne.getDate();Ve=1+Math.floor((Ai+ni)/7)}else{const ni=se(ne),Ai=function be(Gt){const kt=Zt(Gt,0,1).getDay();return Zt(Gt,0,1+(kt<=4?4:11)-kt)}(ni.getFullYear()),Zi=ni.getTime()-Ai.getTime();Ve=1+Math.round(Zi/6048e5)}return ye(Ve,Gt,at(pe,a.MinusSign))}}function Le(Gt,kt=!1){return function(ne,pe){return ye(se(ne).getFullYear(),Gt,at(pe,a.MinusSign),kt)}}const _i={};function Oi(Gt,kt){Gt=Gt.replace(/:/g,"");const ne=Date.parse("Jan 01, 1970 00:00:00 "+Gt)/6e4;return isNaN(ne)?kt:ne}function Mn(Gt){return Gt instanceof Date&&!isNaN(Gt.valueOf())}const sn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function zn(Gt,kt,ne,pe,Ve,ni,Ai=!1){let Zi="",ln=!1;if(isFinite(Gt)){let mn=function Wt(Gt){let pe,Ve,ni,Ai,Zi,kt=Math.abs(Gt)+"",ne=0;for((Ve=kt.indexOf("."))>-1&&(kt=kt.replace(".","")),(ni=kt.search(/e/i))>0?(Ve<0&&(Ve=ni),Ve+=+kt.slice(ni+1),kt=kt.substring(0,ni)):Ve<0&&(Ve=kt.length),ni=0;"0"===kt.charAt(ni);ni++);if(ni===(Zi=kt.length))pe=[0],Ve=1;else{for(Zi--;"0"===kt.charAt(Zi);)Zi--;for(Ve-=ni,pe=[],Ai=0;ni<=Zi;ni++,Ai++)pe[Ai]=Number(kt.charAt(ni))}return Ve>22&&(pe=pe.splice(0,21),ne=Ve-1,Ve=1),{digits:pe,exponent:ne,integerLen:Ve}}(Gt);Ai&&(mn=function Xe(Gt){if(0===Gt.digits[0])return Gt;const kt=Gt.digits.length-Gt.integerLen;return Gt.exponent?Gt.exponent+=2:(0===kt?Gt.digits.push(0,0):1===kt&&Gt.digits.push(0),Gt.integerLen+=2),Gt}(mn));let In=kt.minInt,wn=kt.minFrac,or=kt.maxFrac;if(ni){const jr=ni.match(sn);if(null===jr)throw new Error(`${ni} is not a valid digit info`);const ss=jr[1],jo=jr[3],Vr=jr[5];null!=ss&&(In=ie(ss)),null!=jo&&(wn=ie(jo)),null!=Vr?or=ie(Vr):null!=jo&&wn>or&&(or=wn)}!function te(Gt,kt,ne){if(kt>ne)throw new Error(`The minimum number of digits after fraction (${kt}) is higher than the maximum (${ne}).`);let pe=Gt.digits,Ve=pe.length-Gt.integerLen;const ni=Math.min(Math.max(kt,Ve),ne);let Ai=ni+Gt.integerLen,Zi=pe[Ai];if(Ai>0){pe.splice(Math.max(Gt.integerLen,Ai));for(let wn=Ai;wn=5)if(Ai-1<0){for(let wn=0;wn>Ai;wn--)pe.unshift(0),Gt.integerLen++;pe.unshift(1),Gt.integerLen++}else pe[Ai-1]++;for(;Ve=mn?Xn.pop():ln=!1),or>=10?1:0},0);In&&(pe.unshift(In),Gt.integerLen++)}(mn,wn,or);let On=mn.digits,Xn=mn.integerLen;const rs=mn.exponent;let yo=[];for(ln=On.every(jr=>!jr);Xn0?yo=On.splice(Xn,On.length):(yo=On,On=[0]);const Ds=[];for(On.length>=kt.lgSize&&Ds.unshift(On.splice(-kt.lgSize,On.length).join(""));On.length>kt.gSize;)Ds.unshift(On.splice(-kt.gSize,On.length).join(""));On.length&&Ds.unshift(On.join("")),Zi=Ds.join(at(ne,pe)),yo.length&&(Zi+=at(ne,Ve)+yo.join("")),rs&&(Zi+=at(ne,a.Exponential)+"+"+rs)}else Zi=at(ne,a.Infinity);return Zi=Gt<0&&!ln?kt.negPre+Zi+kt.negSuf:kt.posPre+Zi+kt.posSuf,Zi}function Ji(Gt,kt,ne,pe,Ve){const Ai=Jn(st(kt,D.Currency),at(kt,a.MinusSign));return Ai.minFrac=Ut(pe),Ai.maxFrac=Ai.minFrac,zn(Gt,Ai,kt,a.CurrencyGroup,a.CurrencyDecimal,Ve).replace("\xa4",ne).replace("\xa4","").trim()}function lr(Gt,kt,ne){return zn(Gt,Jn(st(kt,D.Percent),at(kt,a.MinusSign)),kt,a.Group,a.Decimal,ne,!0).replace(new RegExp("%","g"),at(kt,a.PercentSign))}function Or(Gt,kt,ne){return zn(Gt,Jn(st(kt,D.Decimal),at(kt,a.MinusSign)),kt,a.Group,a.Decimal,ne)}function Jn(Gt,kt="-"){const ne={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},pe=Gt.split(";"),Ve=pe[0],ni=pe[1],Ai=-1!==Ve.indexOf(".")?Ve.split("."):[Ve.substring(0,Ve.lastIndexOf("0")+1),Ve.substring(Ve.lastIndexOf("0")+1)],Zi=Ai[0],ln=Ai[1]||"";ne.posPre=Zi.substring(0,Zi.indexOf("#"));for(let In=0;In-1||(Ve=ne.getPluralCategory(Gt,pe),kt.indexOf(Ve)>-1))return Ve;if(kt.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${Gt}"`)}me.\u0275fac=function(kt){return new(kt||me)},me.\u0275prov=pt.\u0275\u0275defineInjectable({token:me,factory:function(kt){let ne=null;return kt?ne=new kt:(pe=pt.\u0275\u0275inject(pt.LOCALE_ID),ne=new De(pe)),ne;var pe},providedIn:"root"});class De extends me{constructor(kt){super(),this.locale=kt}getPluralCategory(kt,ne){switch(gt(ne||this.locale)(kt)){case I.Zero:return"zero";case I.One:return"one";case I.Two:return"two";case I.Few:return"few";case I.Many:return"many";default:return"other"}}}function Pe(Gt,kt,ne){return(0,pt.\u0275registerLocaleData)(Gt,kt,ne)}function Ae(Gt,kt){kt=encodeURIComponent(kt);for(const ne of Gt.split(";")){const pe=ne.indexOf("="),[Ve,ni]=-1==pe?[ne,""]:[ne.slice(0,pe),ne.slice(pe+1)];if(Ve.trim()===kt)return decodeURIComponent(ni)}return null}De.\u0275fac=function(kt){return new(kt||De)(pt.\u0275\u0275inject(pt.LOCALE_ID))},De.\u0275prov=pt.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac});const Fe=/\s+/,Ze=[];class ri{constructor(kt,ne,pe,Ve){this._iterableDiffers=kt,this._keyValueDiffers=ne,this._ngEl=pe,this._renderer=Ve,this.initialClasses=Ze,this.stateMap=new Map}set klass(kt){this.initialClasses=null!=kt?kt.trim().split(Fe):Ze}set ngClass(kt){this.rawClass="string"==typeof kt?kt.trim().split(Fe):kt}ngDoCheck(){for(const ne of this.initialClasses)this._updateState(ne,!0);const kt=this.rawClass;if(Array.isArray(kt)||kt instanceof Set)for(const ne of kt)this._updateState(ne,!0);else if(null!=kt)for(const ne of Object.keys(kt))this._updateState(ne,Boolean(kt[ne]));this._applyStateDiff()}_updateState(kt,ne){const pe=this.stateMap.get(kt);void 0!==pe?(pe.enabled!==ne&&(pe.changed=!0,pe.enabled=ne),pe.touched=!0):this.stateMap.set(kt,{enabled:ne,changed:!0,touched:!0})}_applyStateDiff(){for(const kt of this.stateMap){const ne=kt[0],pe=kt[1];pe.changed?(this._toggleClass(ne,pe.enabled),pe.changed=!1):pe.touched||(pe.enabled&&this._toggleClass(ne,!1),this.stateMap.delete(ne)),pe.touched=!1}}_toggleClass(kt,ne){(kt=kt.trim()).length>0&&kt.split(Fe).forEach(pe=>{ne?this._renderer.addClass(this._ngEl.nativeElement,pe):this._renderer.removeClass(this._ngEl.nativeElement,pe)})}}ri.\u0275fac=function(kt){return new(kt||ri)(pt.\u0275\u0275directiveInject(pt.IterableDiffers),pt.\u0275\u0275directiveInject(pt.KeyValueDiffers),pt.\u0275\u0275directiveInject(pt.ElementRef),pt.\u0275\u0275directiveInject(pt.Renderer2))},ri.\u0275dir=pt.\u0275\u0275defineDirective({type:ri,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});class Qe{constructor(kt){this._viewContainerRef=kt,this.ngComponentOutlet=null}ngOnChanges(kt){const{_viewContainerRef:ne,ngComponentOutletNgModule:pe,ngComponentOutletNgModuleFactory:Ve}=this;if(ne.clear(),this._componentRef=void 0,this.ngComponentOutlet){const ni=this.ngComponentOutletInjector||ne.parentInjector;(kt.ngComponentOutletNgModule||kt.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=pe?(0,pt.createNgModule)(pe,gi(ni)):Ve?Ve.create(gi(ni)):void 0),this._componentRef=ne.createComponent(this.ngComponentOutlet,{index:ne.length,injector:ni,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}function gi(Gt){return Gt.get(pt.NgModuleRef).injector}Qe.\u0275fac=function(kt){return new(kt||Qe)(pt.\u0275\u0275directiveInject(pt.ViewContainerRef))},Qe.\u0275dir=pt.\u0275\u0275defineDirective({type:Qe,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[pt.\u0275\u0275NgOnChangesFeature]});class ci{constructor(kt,ne,pe,Ve){this.$implicit=kt,this.ngForOf=ne,this.index=pe,this.count=Ve}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}}class li{set ngForOf(kt){this._ngForOf=kt,this._ngForOfDirty=!0}set ngForTrackBy(kt){this._trackByFn=kt}get ngForTrackBy(){return this._trackByFn}constructor(kt,ne,pe){this._viewContainer=kt,this._template=ne,this._differs=pe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(kt){kt&&(this._template=kt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const kt=this._ngForOf;!this._differ&&kt&&(this._differ=this._differs.find(kt).create(this.ngForTrackBy))}if(this._differ){const kt=this._differ.diff(this._ngForOf);kt&&this._applyChanges(kt)}}_applyChanges(kt){const ne=this._viewContainer;kt.forEachOperation((pe,Ve,ni)=>{if(null==pe.previousIndex)ne.createEmbeddedView(this._template,new ci(pe.item,this._ngForOf,-1,-1),null===ni?void 0:ni);else if(null==ni)ne.remove(null===Ve?void 0:Ve);else if(null!==Ve){const Ai=ne.get(Ve);ne.move(Ai,ni),ai(Ai,pe)}});for(let pe=0,Ve=ne.length;pe{ai(ne.get(pe.currentIndex),pe)})}static ngTemplateContextGuard(kt,ne){return!0}}function ai(Gt,kt){Gt.context.$implicit=kt.item}li.\u0275fac=function(kt){return new(kt||li)(pt.\u0275\u0275directiveInject(pt.ViewContainerRef),pt.\u0275\u0275directiveInject(pt.TemplateRef),pt.\u0275\u0275directiveInject(pt.IterableDiffers))},li.\u0275dir=pt.\u0275\u0275defineDirective({type:li,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});class Di{constructor(kt,ne){this._viewContainer=kt,this._context=new Re,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(kt){this._context.$implicit=this._context.ngIf=kt,this._updateView()}set ngIfThen(kt){Vt("ngIfThen",kt),this._thenTemplateRef=kt,this._thenViewRef=null,this._updateView()}set ngIfElse(kt){Vt("ngIfElse",kt),this._elseTemplateRef=kt,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(kt,ne){return!0}}Di.\u0275fac=function(kt){return new(kt||Di)(pt.\u0275\u0275directiveInject(pt.ViewContainerRef),pt.\u0275\u0275directiveInject(pt.TemplateRef))},Di.\u0275dir=pt.\u0275\u0275defineDirective({type:Di,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});class Re{constructor(){this.$implicit=null,this.ngIf=null}}function Vt(Gt,kt){if(kt&&!kt.createEmbeddedView)throw new Error(`${Gt} must be a TemplateRef, but received '${(0,pt.\u0275stringify)(kt)}'.`)}class oe{constructor(kt,ne){this._viewContainerRef=kt,this._templateRef=ne,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(kt){kt&&!this._created?this.create():!kt&&this._created&&this.destroy()}}class fe{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(kt){this._ngSwitch=kt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(kt){this._defaultViews.push(kt)}_matchCase(kt){const ne=kt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(kt){if(this._defaultViews.length>0&&kt!==this._defaultUsed){this._defaultUsed=kt;for(const ne of this._defaultViews)ne.enforceState(kt)}}}fe.\u0275fac=function(kt){return new(kt||fe)},fe.\u0275dir=pt.\u0275\u0275defineDirective({type:fe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});class ve{constructor(kt,ne,pe){this.ngSwitch=pe,pe._addCase(),this._view=new oe(kt,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}ve.\u0275fac=function(kt){return new(kt||ve)(pt.\u0275\u0275directiveInject(pt.ViewContainerRef),pt.\u0275\u0275directiveInject(pt.TemplateRef),pt.\u0275\u0275directiveInject(fe,9))},ve.\u0275dir=pt.\u0275\u0275defineDirective({type:ve,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});class qe{constructor(kt,ne,pe){pe._addDefault(new oe(kt,ne))}}qe.\u0275fac=function(kt){return new(kt||qe)(pt.\u0275\u0275directiveInject(pt.ViewContainerRef),pt.\u0275\u0275directiveInject(pt.TemplateRef),pt.\u0275\u0275directiveInject(fe,9))},qe.\u0275dir=pt.\u0275\u0275defineDirective({type:qe,selectors:[["","ngSwitchDefault",""]],standalone:!0});class mi{constructor(kt){this._localization=kt,this._caseViews={}}set ngPlural(kt){this._updateView(kt)}addCase(kt,ne){this._caseViews[kt]=ne}_updateView(kt){this._clearViews();const pe=ge(kt,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[pe])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(kt){kt&&(this._activeView=kt,this._activeView.create())}}mi.\u0275fac=function(kt){return new(kt||mi)(pt.\u0275\u0275directiveInject(me))},mi.\u0275dir=pt.\u0275\u0275defineDirective({type:mi,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0});class Mi{constructor(kt,ne,pe,Ve){this.value=kt;const ni=!isNaN(Number(kt));Ve.addCase(ni?`=${kt}`:kt,new oe(pe,ne))}}Mi.\u0275fac=function(kt){return new(kt||Mi)(pt.\u0275\u0275injectAttribute("ngPluralCase"),pt.\u0275\u0275directiveInject(pt.TemplateRef),pt.\u0275\u0275directiveInject(pt.ViewContainerRef),pt.\u0275\u0275directiveInject(mi,1))},Mi.\u0275dir=pt.\u0275\u0275defineDirective({type:Mi,selectors:[["","ngPluralCase",""]],standalone:!0});class Oe{constructor(kt,ne,pe){this._ngEl=kt,this._differs=ne,this._renderer=pe,this._ngStyle=null,this._differ=null}set ngStyle(kt){this._ngStyle=kt,!this._differ&&kt&&(this._differ=this._differs.find(kt).create())}ngDoCheck(){if(this._differ){const kt=this._differ.diff(this._ngStyle);kt&&this._applyChanges(kt)}}_setStyle(kt,ne){const[pe,Ve]=kt.split("."),ni=-1===pe.indexOf("-")?void 0:pt.RendererStyleFlags2.DashCase;null!=ne?this._renderer.setStyle(this._ngEl.nativeElement,pe,Ve?`${ne}${Ve}`:ne,ni):this._renderer.removeStyle(this._ngEl.nativeElement,pe,ni)}_applyChanges(kt){kt.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),kt.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),kt.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}Oe.\u0275fac=function(kt){return new(kt||Oe)(pt.\u0275\u0275directiveInject(pt.ElementRef),pt.\u0275\u0275directiveInject(pt.KeyValueDiffers),pt.\u0275\u0275directiveInject(pt.Renderer2))},Oe.\u0275dir=pt.\u0275\u0275defineDirective({type:Oe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});class fn{constructor(kt){this._viewContainerRef=kt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(kt){if(kt.ngTemplateOutlet||kt.ngTemplateOutletInjector){const ne=this._viewContainerRef;if(this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:pe,ngTemplateOutletContext:Ve,ngTemplateOutletInjector:ni}=this;this._viewRef=ne.createEmbeddedView(pe,Ve,ni?{injector:ni}:void 0)}else this._viewRef=null}else this._viewRef&&kt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}fn.\u0275fac=function(kt){return new(kt||fn)(pt.\u0275\u0275directiveInject(pt.ViewContainerRef))},fn.\u0275dir=pt.\u0275\u0275defineDirective({type:fn,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[pt.\u0275\u0275NgOnChangesFeature]});function Ti(Gt,kt){return new pt.\u0275RuntimeError(2100,!1)}const Xi=new class Yi{createSubscription(kt,ne){return kt.then(ne,pe=>{throw pe})}dispose(kt){}},Hn=new class nn{createSubscription(kt,ne){return kt.subscribe({next:ne,error:pe=>{throw pe}})}dispose(kt){kt.unsubscribe()}};class Pn{constructor(kt){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=kt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(kt){return this._obj?kt!==this._obj?(this._dispose(),this.transform(kt)):this._latestValue:(kt&&this._subscribe(kt),this._latestValue)}_subscribe(kt){this._obj=kt,this._strategy=this._selectStrategy(kt),this._subscription=this._strategy.createSubscription(kt,ne=>this._updateLatestValue(kt,ne))}_selectStrategy(kt){if((0,pt.\u0275isPromise)(kt))return Xi;if((0,pt.\u0275isSubscribable)(kt))return Hn;throw Ti()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(kt,ne){kt===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}Pn.\u0275fac=function(kt){return new(kt||Pn)(pt.\u0275\u0275directiveInject(pt.ChangeDetectorRef,16))},Pn.\u0275pipe=pt.\u0275\u0275definePipe({name:"async",type:Pn,pure:!1,standalone:!0});class Ci{transform(kt){if(null==kt)return null;if("string"!=typeof kt)throw Ti();return kt.toLowerCase()}}Ci.\u0275fac=function(kt){return new(kt||Ci)},Ci.\u0275pipe=pt.\u0275\u0275definePipe({name:"lowercase",type:Ci,pure:!0,standalone:!0});const _s=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;class un{transform(kt){if(null==kt)return null;if("string"!=typeof kt)throw Ti();return kt.replace(_s,ne=>ne[0].toUpperCase()+ne.slice(1).toLowerCase())}}un.\u0275fac=function(kt){return new(kt||un)},un.\u0275pipe=pt.\u0275\u0275definePipe({name:"titlecase",type:un,pure:!0,standalone:!0});class An{transform(kt){if(null==kt)return null;if("string"!=typeof kt)throw Ti();return kt.toUpperCase()}}An.\u0275fac=function(kt){return new(kt||An)},An.\u0275pipe=pt.\u0275\u0275definePipe({name:"uppercase",type:An,pure:!0,standalone:!0});const $r=new pt.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),Ln=new pt.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");class je{constructor(kt,ne,pe){this.locale=kt,this.defaultTimezone=ne,this.defaultOptions=pe}transform(kt,ne,pe,Ve){if(null==kt||""===kt||kt!=kt)return null;try{const ni=ne??this.defaultOptions?.dateFormat??"mediumDate",Ai=pe??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Rt(kt,ni,Ve||this.locale,Ai)}catch(ni){throw Ti(0,ni.message)}}}je.\u0275fac=function(kt){return new(kt||je)(pt.\u0275\u0275directiveInject(pt.LOCALE_ID,16),pt.\u0275\u0275directiveInject($r,24),pt.\u0275\u0275directiveInject(Ln,24))},je.\u0275pipe=pt.\u0275\u0275definePipe({name:"date",type:je,pure:!0,standalone:!0});const ee=/#/g;class gn{constructor(kt){this._localization=kt}transform(kt,ne,pe){if(null==kt)return"";if("object"!=typeof ne||null===ne)throw Ti();return ne[ge(kt,Object.keys(ne),this._localization,pe)].replace(ee,kt.toString())}}gn.\u0275fac=function(kt){return new(kt||gn)(pt.\u0275\u0275directiveInject(me,16))},gn.\u0275pipe=pt.\u0275\u0275definePipe({name:"i18nPlural",type:gn,pure:!0,standalone:!0});class xr{transform(kt,ne){if(null==kt)return"";if("object"!=typeof ne||"string"!=typeof kt)throw Ti();return ne.hasOwnProperty(kt)?ne[kt]:ne.hasOwnProperty("other")?ne.other:""}}xr.\u0275fac=function(kt){return new(kt||xr)},xr.\u0275pipe=pt.\u0275\u0275definePipe({name:"i18nSelect",type:xr,pure:!0,standalone:!0});class pr{transform(kt){return JSON.stringify(kt,null,2)}}pr.\u0275fac=function(kt){return new(kt||pr)},pr.\u0275pipe=pt.\u0275\u0275definePipe({name:"json",type:pr,pure:!1,standalone:!0});class xs{constructor(kt){this.differs=kt,this.keyValues=[],this.compareFn=tl}transform(kt,ne=tl){if(!kt||!(kt instanceof Map)&&"object"!=typeof kt)return null;this.differ||(this.differ=this.differs.find(kt).create());const pe=this.differ.diff(kt),Ve=ne!==this.compareFn;return pe&&(this.keyValues=[],pe.forEachItem(ni=>{this.keyValues.push(function Er(Gt,kt){return{key:Gt,value:kt}}(ni.key,ni.currentValue))})),(pe||Ve)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}function tl(Gt,kt){const ne=Gt.key,pe=kt.key;if(ne===pe)return 0;if(void 0===ne)return 1;if(void 0===pe)return-1;if(null===ne)return 1;if(null===pe)return-1;if("string"==typeof ne&&"string"==typeof pe)return nenew mr((0,pt.\u0275\u0275inject)(U),window)});class mr{constructor(kt,ne){this.document=kt,this.window=ne,this.offset=()=>[0,0]}setOffset(kt){Array.isArray(kt)?this.offset=()=>kt:this.offset=kt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(kt){this.supportsScrolling()&&this.window.scrollTo(kt[0],kt[1])}scrollToAnchor(kt){if(!this.supportsScrolling())return;const ne=function kr(Gt,kt){const ne=Gt.getElementById(kt)||Gt.getElementsByName(kt)[0];if(ne)return ne;if("function"==typeof Gt.createTreeWalker&&Gt.body&&(Gt.body.createShadowRoot||Gt.body.attachShadow)){const pe=Gt.createTreeWalker(Gt.body,NodeFilter.SHOW_ELEMENT);let Ve=pe.currentNode;for(;Ve;){const ni=Ve.shadowRoot;if(ni){const Ai=ni.getElementById(kt)||ni.querySelector(`[name="${kt}"]`);if(Ai)return Ai}Ve=pe.nextNode()}}return null}(this.document,kt);ne&&(this.scrollToElement(ne),ne.focus())}setHistoryScrollRestoration(kt){if(this.supportScrollRestoration()){const ne=this.window.history;ne&&ne.scrollRestoration&&(ne.scrollRestoration=kt)}}scrollToElement(kt){const ne=kt.getBoundingClientRect(),pe=ne.left+this.window.pageXOffset,Ve=ne.top+this.window.pageYOffset,ni=this.offset();this.window.scrollTo(pe-ni[0],Ve-ni[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const kt=fo(this.window.history)||fo(Object.getPrototypeOf(this.window.history));return!(!kt||!kt.writable&&!kt.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function fo(Gt){return Object.getOwnPropertyDescriptor(Gt,"scrollRestoration")}class Dr{setOffset(kt){}getScrollPosition(){return[0,0]}scrollToPosition(kt){}scrollToAnchor(kt){}setHistoryScrollRestoration(kt){}}class el{}function ds(Gt,kt){return ps(Gt)?new URL(Gt):new URL(Gt,kt.location.href)}function ps(Gt){return/^https?:\/\//.test(Gt)}function go(Gt){return ps(Gt)?new URL(Gt).hostname:Gt}function vr(Gt){return Gt.startsWith("/")?Gt.slice(1):Gt}const Tn=Gt=>Gt.src,Vn=new pt.InjectionToken("ImageLoader",{providedIn:"root",factory:()=>Tn});function hr(Gt,kt){return function(pe){return function Us(Gt){if("string"!=typeof Gt||""===Gt.trim())return!1;try{return new URL(Gt),!0}catch{return!1}}(pe)||function $i(Gt,kt){throw new pt.\u0275RuntimeError(2959,!1)}(),pe=function fs(Gt){return Gt.endsWith("/")?Gt.slice(0,-1):Gt}(pe),[{provide:Vn,useValue:Ai=>(ps(Ai.src)&&function Lr(Gt,kt){throw new pt.\u0275RuntimeError(2959,!1)}(0,Ai.src),Gt(pe,{...Ai,src:vr(Ai.src)}))}]}}const Cr=hr(function Cn(Gt,kt){let ne="format=auto";return kt.width&&(ne+=`,width=${kt.width}`),`${Gt}/cdn-cgi/image/${ne}/${kt.src}`});const tr=hr(function ko(Gt,kt){let ne="f_auto,q_auto";return kt.width&&(ne+=`,w_${kt.width}`),`${Gt}/image/upload/${ne}/${kt.src}`});const Lo=hr(function Pl(Gt,kt){let ne="tr:q-auto";return kt.width&&(ne+=`,w-${kt.width}`),`${Gt}/${ne}/${kt.src}`});const ec=hr(function Ro(Gt,kt){const ne=new URL(`${Gt}/${kt.src}`);return ne.searchParams.set("auto","format"),kt.width&&ne.searchParams.set("w",kt.width.toString()),ne.href});function Zn(Gt,kt=!0){return`The NgOptimizedImage directive ${kt?`(activated on an element with the \`ngSrc="${Gt}"\`) `:""}has detected that`}function ha(Gt){throw new pt.\u0275RuntimeError(2958,`Unexpected invocation of the ${Gt} in the prod mode. Please make sure that the prod mode is enabled for production builds.`)}class Hs{constructor(){this.images=new Map,this.alreadyWarned=new Set,this.window=null,this.observer=null,ha("LCP checker");const kt=(0,pt.inject)(U).defaultView;typeof kt<"u"&&typeof PerformanceObserver<"u"&&(this.window=kt,this.observer=this.initPerformanceObserver())}initPerformanceObserver(){const kt=new PerformanceObserver(ne=>{const pe=ne.getEntries();if(0===pe.length)return;const ni=pe[pe.length-1].element?.src??"";ni.startsWith("data:")||ni.startsWith("blob:")||this.images.get(ni)&&!this.alreadyWarned.has(ni)&&(this.alreadyWarned.add(ni),function ws(Gt){const kt=Zn(Gt);console.warn((0,pt.\u0275formatRuntimeError)(2955,`${kt} this image is the Largest Contentful Paint (LCP) element but was not marked "priority". This image should be marked "priority" in order to prioritize its loading. To fix this, add the "priority" attribute.`))}(ni))});return kt.observe({type:"largest-contentful-paint",buffered:!0}),kt}registerImage(kt,ne){this.observer&&this.images.set(ds(kt,this.window).href,ne)}unregisterImage(kt){this.observer&&this.images.delete(ds(kt,this.window).href)}ngOnDestroy(){this.observer&&(this.observer.disconnect(),this.images.clear(),this.alreadyWarned.clear())}}Hs.\u0275fac=function(kt){return new(kt||Hs)},Hs.\u0275prov=pt.\u0275\u0275defineInjectable({token:Hs,factory:Hs.\u0275fac,providedIn:"root"});const pi=new Set(["localhost","127.0.0.1","0.0.0.0"]),vn=new pt.InjectionToken("PRECONNECT_CHECK_BLOCKLIST");class Es{constructor(){this.document=(0,pt.inject)(U),this.preconnectLinks=null,this.alreadySeen=new Set,this.window=null,this.blocklist=new Set(pi),ha("preconnect link checker");const kt=this.document.defaultView;typeof kt<"u"&&(this.window=kt);const ne=(0,pt.inject)(vn,{optional:!0});ne&&this.populateBlocklist(ne)}populateBlocklist(kt){Array.isArray(kt)?qc(kt,ne=>{this.blocklist.add(go(ne))}):this.blocklist.add(go(kt))}assertPreconnect(kt,ne){if(!this.window)return;const pe=ds(kt,this.window);this.blocklist.has(pe.hostname)||this.alreadySeen.has(pe.origin)||(this.alreadySeen.add(pe.origin),this.preconnectLinks||(this.preconnectLinks=this.queryPreconnectLinks()),this.preconnectLinks.has(pe.origin)||console.warn((0,pt.\u0275formatRuntimeError)(2956,`${Zn(ne)} there is no preconnect tag present for this image. Preconnecting to the origin(s) that serve priority images ensures that these images are delivered as soon as possible. To fix this, please add the following element into the of the document:\n `)))}queryPreconnectLinks(){const kt=new Set,pe=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));for(let Ve of pe){const ni=ds(Ve.href,this.window);kt.add(ni.origin)}return kt}ngOnDestroy(){this.preconnectLinks?.clear(),this.alreadySeen.clear()}}function qc(Gt,kt){for(let ne of Gt)Array.isArray(ne)?qc(ne,kt):kt(ne)}Es.\u0275fac=function(kt){return new(kt||Es)},Es.\u0275prov=pt.\u0275\u0275defineInjectable({token:Es,factory:Es.\u0275fac,providedIn:"root"});const Fo=new pt.InjectionToken("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});class gs{constructor(){this.preloadedImages=(0,pt.inject)(Fo),this.document=(0,pt.inject)(U)}createPreloadLinkTag(kt,ne,pe,Ve){if(this.preloadedImages.has(ne))return;this.preloadedImages.add(ne);const ni=kt.createElement("link");kt.setAttribute(ni,"as","image"),kt.setAttribute(ni,"href",ne),kt.setAttribute(ni,"rel","preload"),kt.setAttribute(ni,"fetchpriority","high"),Ve&&kt.setAttribute(ni,"imageSizes",Ve),pe&&kt.setAttribute(ni,"imageSrcset",pe),kt.appendChild(this.document.head,ni)}}gs.\u0275fac=function(kt){return new(kt||gs)},gs.\u0275prov=pt.\u0275\u0275defineInjectable({token:gs,factory:gs.\u0275fac,providedIn:"root"});const rr=/^((\s*\d+w\s*(,|$)){1,})$/,sr=[1,2],ua={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},nl=new pt.InjectionToken("ImageConfig",{providedIn:"root",factory:()=>ua});class No{constructor(){this.imageLoader=(0,pt.inject)(Vn),this.config=function ic(Gt){let kt={};return Gt.breakpoints&&(kt.breakpoints=Gt.breakpoints.sort((ne,pe)=>ne-pe)),Object.assign({},ua,Gt,kt)}((0,pt.inject)(nl)),this.renderer=(0,pt.inject)(pt.Renderer2),this.imgElement=(0,pt.inject)(pt.ElementRef).nativeElement,this.injector=(0,pt.inject)(pt.Injector),this.isServer=ir((0,pt.inject)(pt.PLATFORM_ID)),this.preloadLinkChecker=(0,pt.inject)(gs),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}set width(kt){this._width=Zr(kt)}get width(){return this._width}set height(kt){this._height=Zr(kt)}get height(){return this._height}set priority(kt){this._priority=vo(kt)}get priority(){return this._priority}set disableOptimizedSrcset(kt){this._disableOptimizedSrcset=vo(kt)}get disableOptimizedSrcset(){return this._disableOptimizedSrcset}set fill(kt){this._fill=vo(kt)}get fill(){return this._fill}ngOnInit(){this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const kt=this.getRewrittenSrc();let ne;this.setHostAttribute("src",kt),this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?ne=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(ne=this.getAutomaticSrcset()),ne&&this.setHostAttribute("srcset",ne),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,kt,ne,this.sizes)}ngOnChanges(kt){}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){const kt={src:this.ngSrc};this._renderedSrc=this.imageLoader(kt)}return this._renderedSrc}getRewrittenSrcset(){const kt=rr.test(this.ngSrcset);return this.ngSrcset.split(",").filter(pe=>""!==pe).map(pe=>{pe=pe.trim();const Ve=kt?parseFloat(pe):parseFloat(pe)*this.width;return`${this.imageLoader({src:this.ngSrc,width:Ve})} ${pe}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:kt}=this.config;let ne=kt;return"100vw"===this.sizes?.trim()&&(ne=kt.filter(Ve=>Ve>=640)),ne.map(Ve=>`${this.imageLoader({src:this.ngSrc,width:Ve})} ${Ve}w`).join(", ")}getFixedSrcset(){return sr.map(ne=>`${this.imageLoader({src:this.ngSrc,width:this.width*ne})} ${ne}x`).join(", ")}shouldGenerateAutomaticSrcset(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Tn&&!(this.width>1920||this.height>1080)}ngOnDestroy(){}setHostAttribute(kt,ne){this.renderer.setAttribute(this.imgElement,kt,ne)}}function Zr(Gt){return"string"==typeof Gt?parseInt(Gt,10):Gt}function vo(Gt){return null!=Gt&&"false"!=`${Gt}`}No.\u0275fac=function(kt){return new(kt||No)},No.\u0275dir=pt.\u0275\u0275defineDirective({type:No,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(kt,ne){2&kt&&pt.\u0275\u0275styleProp("position",ne.fill?"absolute":null)("width",ne.fill?"100%":null)("height",ne.fill?"100%":null)("inset",ne.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[pt.\u0275\u0275NgOnChangesFeature]})},529:(Jt,$t,ht)=>{"use strict";ht.d($t,{JF:()=>Te,WM:()=>W,eN:()=>o});var pt=ht(6895),t=ht(1571),Y=ht(9646),q=ht(9751),O=ht(4351),U=ht(9300),G=ht(4004);class Z{}class ${}class W{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(Se=>{const Le=Se.indexOf(":");if(Le>0){const _i=Se.slice(0,Le),vi=_i.toLowerCase(),Oi=Se.slice(Le+1).trim();this.maybeSetNormalizedName(_i,vi),this.headers.has(vi)?this.headers.get(vi).push(Oi):this.headers.set(vi,[Oi])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(Se=>{let Le=se[Se];const _i=Se.toLowerCase();"string"==typeof Le&&(Le=[Le]),Le.length>0&&(this.headers.set(_i,Le),this.maybeSetNormalizedName(Se,_i))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const Se=this.headers.get(se.toLowerCase());return Se&&Se.length>0?Se[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,Se){return this.clone({name:se,value:Se,op:"a"})}set(se,Se){return this.clone({name:se,value:Se,op:"s"})}delete(se,Se){return this.clone({name:se,value:Se,op:"d"})}maybeSetNormalizedName(se,Se){this.normalizedNames.has(Se)||this.normalizedNames.set(Se,se)}init(){this.lazyInit&&(this.lazyInit instanceof W?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(Se=>{this.headers.set(Se,se.headers.get(Se)),this.normalizedNames.set(Se,se.normalizedNames.get(Se))})}clone(se){const Se=new W;return Se.lazyInit=this.lazyInit&&this.lazyInit instanceof W?this.lazyInit:this,Se.lazyUpdate=(this.lazyUpdate||[]).concat([se]),Se}applyUpdate(se){const Se=se.name.toLowerCase();switch(se.op){case"a":case"s":let Le=se.value;if("string"==typeof Le&&(Le=[Le]),0===Le.length)return;this.maybeSetNormalizedName(se.name,Se);const _i=("a"===se.op?this.headers.get(Se):void 0)||[];_i.push(...Le),this.headers.set(Se,_i);break;case"d":const vi=se.value;if(vi){let Oi=this.headers.get(Se);if(!Oi)return;Oi=Oi.filter(Ii=>-1===vi.indexOf(Ii)),0===Oi.length?(this.headers.delete(Se),this.normalizedNames.delete(Se)):this.headers.set(Se,Oi)}else this.headers.delete(Se),this.normalizedNames.delete(Se)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(Se=>se(this.normalizedNames.get(Se),this.headers.get(Se)))}}class R{encodeKey(se){return w(se)}encodeValue(se){return w(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const k=/%(\d[a-f0-9])/gi,E={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function w(be){return encodeURIComponent(be).replace(k,(se,Se)=>E[Se]??se)}function T(be){return`${be}`}class y{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new R,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function P(be,se){const Se=new Map;return be.length>0&&be.replace(/^\?/,"").split("&").forEach(_i=>{const vi=_i.indexOf("="),[Oi,Ii]=-1==vi?[se.decodeKey(_i),""]:[se.decodeKey(_i.slice(0,vi)),se.decodeValue(_i.slice(vi+1))],qi=Se.get(Oi)||[];qi.push(Ii),Se.set(Oi,qi)}),Se}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(Se=>{const Le=se.fromObject[Se],_i=Array.isArray(Le)?Le.map(T):[T(Le)];this.map.set(Se,_i)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const Se=this.map.get(se);return Se?Se[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,Se){return this.clone({param:se,value:Se,op:"a"})}appendAll(se){const Se=[];return Object.keys(se).forEach(Le=>{const _i=se[Le];Array.isArray(_i)?_i.forEach(vi=>{Se.push({param:Le,value:vi,op:"a"})}):Se.push({param:Le,value:_i,op:"a"})}),this.clone(Se)}set(se,Se){return this.clone({param:se,value:Se,op:"s"})}delete(se,Se){return this.clone({param:se,value:Se,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const Se=this.encoder.encodeKey(se);return this.map.get(se).map(Le=>Se+"="+this.encoder.encodeValue(Le)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const Se=new y({encoder:this.encoder});return Se.cloneFrom=this.cloneFrom||this,Se.updates=(this.updates||[]).concat(se),Se}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const Se=("a"===se.op?this.map.get(se.param):void 0)||[];Se.push(T(se.value)),this.map.set(se.param,Se);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let Le=this.map.get(se.param)||[];const _i=Le.indexOf(T(se.value));-1!==_i&&Le.splice(_i,1),Le.length>0?this.map.set(se.param,Le):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class g{constructor(){this.map=new Map}set(se,Se){return this.map.set(se,Se),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function S(be){return typeof ArrayBuffer<"u"&&be instanceof ArrayBuffer}function N(be){return typeof Blob<"u"&&be instanceof Blob}function j(be){return typeof FormData<"u"&&be instanceof FormData}class D{constructor(se,Se,Le,_i){let vi;if(this.url=Se,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function v(be){switch(be){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||_i?(this.body=void 0!==Le?Le:null,vi=_i):vi=Le,vi&&(this.reportProgress=!!vi.reportProgress,this.withCredentials=!!vi.withCredentials,vi.responseType&&(this.responseType=vi.responseType),vi.headers&&(this.headers=vi.headers),vi.context&&(this.context=vi.context),vi.params&&(this.params=vi.params)),this.headers||(this.headers=new W),this.context||(this.context=new g),this.params){const Oi=this.params.toString();if(0===Oi.length)this.urlWithParams=Se;else{const Ii=Se.indexOf("?"),qi=-1===Ii?"?":IiMn.set(sn,se.setHeaders[sn]),qi)),se.setParams&&(hn=Object.keys(se.setParams).reduce((Mn,sn)=>Mn.set(sn,se.setParams[sn]),hn)),new D(Se,Le,vi,{params:hn,headers:qi,context:dr,reportProgress:Ii,responseType:_i,withCredentials:Oi})}}var I,be;(be=I||(I={}))[be.Sent=0]="Sent",be[be.UploadProgress=1]="UploadProgress",be[be.ResponseHeader=2]="ResponseHeader",be[be.DownloadProgress=3]="DownloadProgress",be[be.Response=4]="Response",be[be.User=5]="User";class b{constructor(se,Se=200,Le="OK"){this.headers=se.headers||new W,this.status=void 0!==se.status?se.status:Se,this.statusText=se.statusText||Le,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class d extends b{constructor(se={}){super(se),this.type=I.ResponseHeader}clone(se={}){return new d({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class u extends b{constructor(se={}){super(se),this.type=I.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new u({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class a extends b{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${se.url||"(unknown url)"}`:this.message=`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function n(be,se){return{body:se,headers:be.headers,context:be.context,observe:be.observe,params:be.params,reportProgress:be.reportProgress,responseType:be.responseType,withCredentials:be.withCredentials}}class o{constructor(se){this.handler=se}request(se,Se,Le={}){let _i;if(se instanceof D)_i=se;else{let Ii,qi;Ii=Le.headers instanceof W?Le.headers:new W(Le.headers),Le.params&&(qi=Le.params instanceof y?Le.params:new y({fromObject:Le.params})),_i=new D(se,Se,void 0!==Le.body?Le.body:null,{headers:Ii,context:Le.context,params:qi,reportProgress:Le.reportProgress,responseType:Le.responseType||"json",withCredentials:Le.withCredentials})}const vi=(0,Y.of)(_i).pipe((0,O.b)(Ii=>this.handler.handle(Ii)));if(se instanceof D||"events"===Le.observe)return vi;const Oi=vi.pipe((0,U.h)(Ii=>Ii instanceof u));switch(Le.observe||"body"){case"body":switch(_i.responseType){case"arraybuffer":return Oi.pipe((0,G.U)(Ii=>{if(null!==Ii.body&&!(Ii.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ii.body}));case"blob":return Oi.pipe((0,G.U)(Ii=>{if(null!==Ii.body&&!(Ii.body instanceof Blob))throw new Error("Response is not a Blob.");return Ii.body}));case"text":return Oi.pipe((0,G.U)(Ii=>{if(null!==Ii.body&&"string"!=typeof Ii.body)throw new Error("Response is not a string.");return Ii.body}));default:return Oi.pipe((0,G.U)(Ii=>Ii.body))}case"response":return Oi;default:throw new Error(`Unreachable: unhandled observe type ${Le.observe}}`)}}delete(se,Se={}){return this.request("DELETE",se,Se)}get(se,Se={}){return this.request("GET",se,Se)}head(se,Se={}){return this.request("HEAD",se,Se)}jsonp(se,Se){return this.request("JSONP",se,{params:(new y).append(Se,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(se,Se={}){return this.request("OPTIONS",se,Se)}patch(se,Se,Le={}){return this.request("PATCH",se,n(Le,Se))}post(se,Se,Le={}){return this.request("POST",se,n(Le,Se))}put(se,Se,Le={}){return this.request("PUT",se,n(Le,Se))}}function m(be,se){return se(be)}function _(be,se){return(Se,Le)=>se.intercept(Se,{handle:_i=>be(_i,Le)})}o.\u0275fac=function(se){return new(se||o)(t.\u0275\u0275inject(Z))},o.\u0275prov=t.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac});const X=new t.InjectionToken("HTTP_INTERCEPTORS"),it=new t.InjectionToken("HTTP_INTERCEPTOR_FNS");function rt(){let be=null;return(se,Se)=>(null===be&&(be=((0,t.inject)(X,{optional:!0})??[]).reduceRight(_,m)),be(se,Se))}class L extends Z{constructor(se,Se){super(),this.backend=se,this.injector=Se,this.chain=null}handle(se){if(null===this.chain){const Se=Array.from(new Set(this.injector.get(it)));this.chain=Se.reduceRight((Le,_i)=>function B(be,se,Se){return(Le,_i)=>Se.runInContext(()=>se(Le,vi=>be(vi,_i)))}(Le,_i,this.injector),m)}return this.chain(se,Se=>this.backend.handle(Se))}}L.\u0275fac=function(se){return new(se||L)(t.\u0275\u0275inject($),t.\u0275\u0275inject(t.EnvironmentInjector))},L.\u0275prov=t.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac});let et,z=0;class nt{}function yt(){return"object"==typeof window?window:{}}class gt{constructor(se,Se){this.callbackMap=se,this.document=Se,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+z++}handle(se){if("JSONP"!==se.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==se.responseType)throw new Error("JSONP requests must use Json response type.");if(se.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new q.y(Se=>{const Le=this.nextCallback(),_i=se.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Le}$1`),vi=this.document.createElement("script");vi.src=_i;let Oi=null,Ii=!1;this.callbackMap[Le]=Mn=>{delete this.callbackMap[Le],Oi=Mn,Ii=!0};const qi=()=>{vi.parentNode&&vi.parentNode.removeChild(vi),delete this.callbackMap[Le]};return vi.addEventListener("load",Mn=>{this.resolvedPromise.then(()=>{qi(),Ii?(Se.next(new u({body:Oi,status:200,statusText:"OK",url:_i})),Se.complete()):Se.error(new a({url:_i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),vi.addEventListener("error",Mn=>{qi(),Se.error(new a({error:Mn,status:0,statusText:"JSONP Error",url:_i}))}),this.document.body.appendChild(vi),Se.next({type:I.Sent}),()=>{Ii||this.removeListeners(vi),qi()}})}removeListeners(se){et||(et=this.document.implementation.createHTMLDocument()),et.adoptNode(se)}}function mt(be,se){return"JSONP"===be.method?(0,t.inject)(gt).handle(be):se(be)}gt.\u0275fac=function(se){return new(se||gt)(t.\u0275\u0275inject(nt),t.\u0275\u0275inject(pt.DOCUMENT))},gt.\u0275prov=t.\u0275\u0275defineInjectable({token:gt,factory:gt.\u0275fac});class St{constructor(se){this.injector=se}intercept(se,Se){return this.injector.runInContext(()=>mt(se,Le=>Se.handle(Le)))}}St.\u0275fac=function(se){return new(se||St)(t.\u0275\u0275inject(t.EnvironmentInjector))},St.\u0275prov=t.\u0275\u0275defineInjectable({token:St,factory:St.\u0275fac});const wt=/^\)\]\}',?\n/;class Dt{constructor(se){this.xhrFactory=se}handle(se){if("JSONP"===se.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new q.y(Se=>{const Le=this.xhrFactory.build();if(Le.open(se.method,se.urlWithParams),se.withCredentials&&(Le.withCredentials=!0),se.headers.forEach((sn,si)=>Le.setRequestHeader(sn,si.join(","))),se.headers.has("Accept")||Le.setRequestHeader("Accept","application/json, text/plain, */*"),!se.headers.has("Content-Type")){const sn=se.detectContentTypeHeader();null!==sn&&Le.setRequestHeader("Content-Type",sn)}if(se.responseType){const sn=se.responseType.toLowerCase();Le.responseType="json"!==sn?sn:"text"}const _i=se.serializeBody();let vi=null;const Oi=()=>{if(null!==vi)return vi;const sn=Le.statusText||"OK",si=new W(Le.getAllResponseHeaders()),ce=function Mt(be){return"responseURL"in be&&be.responseURL?be.responseURL:/^X-Request-URL:/m.test(be.getAllResponseHeaders())?be.getResponseHeader("X-Request-URL"):null}(Le)||se.url;return vi=new d({headers:si,status:Le.status,statusText:sn,url:ce}),vi},Ii=()=>{let{headers:sn,status:si,statusText:ce,url:Ee}=Oi(),Ke=null;204!==si&&(Ke=typeof Le.response>"u"?Le.responseText:Le.response),0===si&&(si=Ke?200:0);let di=si>=200&&si<300;if("json"===se.responseType&&"string"==typeof Ke){const Fi=Ke;Ke=Ke.replace(wt,"");try{Ke=""!==Ke?JSON.parse(Ke):null}catch(Hi){Ke=Fi,di&&(di=!1,Ke={error:Hi,text:Ke})}}di?(Se.next(new u({body:Ke,headers:sn,status:si,statusText:ce,url:Ee||void 0})),Se.complete()):Se.error(new a({error:Ke,headers:sn,status:si,statusText:ce,url:Ee||void 0}))},qi=sn=>{const{url:si}=Oi(),ce=new a({error:sn,status:Le.status||0,statusText:Le.statusText||"Unknown Error",url:si||void 0});Se.error(ce)};let hn=!1;const dr=sn=>{hn||(Se.next(Oi()),hn=!0);let si={type:I.DownloadProgress,loaded:sn.loaded};sn.lengthComputable&&(si.total=sn.total),"text"===se.responseType&&Le.responseText&&(si.partialText=Le.responseText),Se.next(si)},Mn=sn=>{let si={type:I.UploadProgress,loaded:sn.loaded};sn.lengthComputable&&(si.total=sn.total),Se.next(si)};return Le.addEventListener("load",Ii),Le.addEventListener("error",qi),Le.addEventListener("timeout",qi),Le.addEventListener("abort",qi),se.reportProgress&&(Le.addEventListener("progress",dr),null!==_i&&Le.upload&&Le.upload.addEventListener("progress",Mn)),Le.send(_i),Se.next({type:I.Sent}),()=>{Le.removeEventListener("error",qi),Le.removeEventListener("abort",qi),Le.removeEventListener("load",Ii),Le.removeEventListener("timeout",qi),se.reportProgress&&(Le.removeEventListener("progress",dr),null!==_i&&Le.upload&&Le.upload.removeEventListener("progress",Mn)),Le.readyState!==Le.DONE&&Le.abort()}})}}Dt.\u0275fac=function(se){return new(se||Dt)(t.\u0275\u0275inject(pt.XhrFactory))},Dt.\u0275prov=t.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac});const Pt=new t.InjectionToken("XSRF_ENABLED"),Ft="XSRF-TOKEN",jt=new t.InjectionToken("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>Ft}),Ut="X-XSRF-TOKEN",bt=new t.InjectionToken("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>Ut});class _t{}class xt{constructor(se,Se,Le){this.doc=se,this.platform=Se,this.cookieName=Le,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const se=this.doc.cookie||"";return se!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,pt.\u0275parseCookieValue)(se,this.cookieName),this.lastCookieString=se),this.lastToken}}function ft(be,se){const Se=be.url.toLowerCase();if(!(0,t.inject)(Pt)||"GET"===be.method||"HEAD"===be.method||Se.startsWith("http://")||Se.startsWith("https://"))return se(be);const Le=(0,t.inject)(_t).getToken(),_i=(0,t.inject)(bt);return null!=Le&&!be.headers.has(_i)&&(be=be.clone({headers:be.headers.set(_i,Le)})),se(be)}xt.\u0275fac=function(se){return new(se||xt)(t.\u0275\u0275inject(pt.DOCUMENT),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(jt))},xt.\u0275prov=t.\u0275\u0275defineInjectable({token:xt,factory:xt.\u0275fac});class Ct{constructor(se){this.injector=se}intercept(se,Se){return this.injector.runInContext(()=>ft(se,Le=>Se.handle(Le)))}}var Ot;function Rt(be,se){return{\u0275kind:be,\u0275providers:se}}Ct.\u0275fac=function(se){return new(se||Ct)(t.\u0275\u0275inject(t.EnvironmentInjector))},Ct.\u0275prov=t.\u0275\u0275defineInjectable({token:Ct,factory:Ct.\u0275fac}),function(be){be[be.Interceptors=0]="Interceptors",be[be.LegacyInterceptors=1]="LegacyInterceptors",be[be.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",be[be.NoXsrfProtection=3]="NoXsrfProtection",be[be.JsonpSupport=4]="JsonpSupport",be[be.RequestsMadeViaParent=5]="RequestsMadeViaParent"}(Ot||(Ot={}));const Ie=new t.InjectionToken("LEGACY_INTERCEPTOR_FN");function Ne({cookieName:be,headerName:se}){const Se=[];return void 0!==be&&Se.push({provide:jt,useValue:be}),void 0!==se&&Se.push({provide:bt,useValue:se}),Rt(Ot.CustomXsrfConfiguration,Se)}class $e{static disable(){return{ngModule:$e,providers:[Rt(Ot.NoXsrfProtection,[{provide:Pt,useValue:!1}]).\u0275providers]}}static withOptions(se={}){return{ngModule:$e,providers:Ne(se).\u0275providers}}}$e.\u0275fac=function(se){return new(se||$e)},$e.\u0275mod=t.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=t.\u0275\u0275defineInjector({providers:[Ct,{provide:X,useExisting:Ct,multi:!0},{provide:_t,useClass:xt},Ne({cookieName:Ft,headerName:Ut}).\u0275providers,{provide:Pt,useValue:!0}]});class Te{}Te.\u0275fac=function(se){return new(se||Te)},Te.\u0275mod=t.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=t.\u0275\u0275defineInjector({providers:[function Zt(...be){const se=[o,Dt,L,{provide:Z,useExisting:L},{provide:$,useExisting:Dt},{provide:it,useValue:ft,multi:!0},{provide:Pt,useValue:!0},{provide:_t,useClass:xt}];for(const Se of be)se.push(...Se.\u0275providers);return(0,t.makeEnvironmentProviders)(se)}(function ye(){return Rt(Ot.LegacyInterceptors,[{provide:Ie,useFactory:rt},{provide:it,useExisting:Ie,multi:!0}])}(),Ne({cookieName:Ft,headerName:Ut}))]});class ke{}ke.\u0275fac=function(se){return new(se||ke)},ke.\u0275mod=t.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=t.\u0275\u0275defineInjector({providers:[function ze(){return Rt(Ot.JsonpSupport,[gt,{provide:nt,useFactory:yt},{provide:it,useValue:mt,multi:!0}])}().\u0275providers]})},1571:(Jt,$t,ht)=>{"use strict";ht.r($t),ht.d($t,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>_a,ANIMATION_MODULE_TYPE:()=>bb,APP_BOOTSTRAP_LISTENER:()=>nx,APP_ID:()=>tx,APP_INITIALIZER:()=>J_,ApplicationInitStatus:()=>Zu,ApplicationModule:()=>vm,ApplicationRef:()=>Qu,Attribute:()=>kl,COMPILER_OPTIONS:()=>sx,CUSTOM_ELEMENTS_SCHEMA:()=>Cp,ChangeDetectionStrategy:()=>sn,ChangeDetectorRef:()=>c0,Compiler:()=>fm,CompilerFactory:()=>Mb,Component:()=>db,ComponentFactory:()=>Su,ComponentFactoryResolver:()=>Xa,ComponentRef:()=>Eu,ContentChild:()=>td,ContentChildren:()=>xa,DEFAULT_CURRENCY_CODE:()=>Eb,DebugElement:()=>Nv,DebugEventListener:()=>Xb,DebugNode:()=>h0,DefaultIterableDiffer:()=>Ox,Directive:()=>Q_,ENVIRONMENT_INITIALIZER:()=>Mc,ElementRef:()=>Ls,EmbeddedViewRef:()=>Gb,EnvironmentInjector:()=>Pc,ErrorHandler:()=>Cl,EventEmitter:()=>zh,Host:()=>cl,HostBinding:()=>mb,HostListener:()=>vb,INJECTOR:()=>Ed,Inject:()=>tu,InjectFlags:()=>_t,Injectable:()=>Mo,InjectionToken:()=>Bn,Injector:()=>Bs,Input:()=>fb,IterableDiffers:()=>Uh,KeyValueDiffers:()=>Wh,LOCALE_ID:()=>Cy,MissingTranslationStrategy:()=>i0,ModuleWithComponentFactories:()=>rx,NO_ERRORS_SCHEMA:()=>bp,NgModule:()=>yb,NgModuleFactory:()=>V0,NgModuleRef:()=>hm,NgProbeToken:()=>Rb,NgZone:()=>tc,Optional:()=>nh,Output:()=>gb,PACKAGE_ROOT_URL:()=>Cb,PLATFORM_ID:()=>xb,PLATFORM_INITIALIZER:()=>ix,Pipe:()=>pb,PlatformRef:()=>pp,Query:()=>br,QueryList:()=>vy,ReflectiveInjector:()=>Lc,ReflectiveKey:()=>lo,Renderer2:()=>Rs,RendererFactory2:()=>Pd,RendererStyleFlags2:()=>fc,ResolvedReflectiveFactory:()=>Rg,Sanitizer:()=>Fs,SecurityContext:()=>vs,Self:()=>eu,SimpleChange:()=>fo,SkipSelf:()=>ja,TRANSLATIONS:()=>Sb,TRANSLATIONS_FORMAT:()=>Db,TemplateRef:()=>um,Testability:()=>gm,TestabilityRegistry:()=>Uf,Type:()=>Bt,VERSION:()=>Od,Version:()=>Gp,ViewChild:()=>ro,ViewChildren:()=>ed,ViewContainerRef:()=>Rv,ViewEncapsulation:()=>Ee,ViewRef:()=>Ax,asNativeElements:()=>$b,assertPlatform:()=>_x,createComponent:()=>_1,createEnvironmentInjector:()=>jy,createNgModule:()=>z0,createNgModuleRef:()=>MC,createPlatform:()=>mx,createPlatformFactory:()=>yx,defineInjectable:()=>yt,destroyPlatform:()=>Bb,enableProdMode:()=>zb,forwardRef:()=>E,getDebugNode:()=>mm,getModuleFactory:()=>Ub,getNgModuleById:()=>Wb,getPlatform:()=>by,importProvidersFrom:()=>dh,inject:()=>_i,isDevMode:()=>Vb,isStandalone:()=>ri,makeEnvironmentProviders:()=>Cu,platformCore:()=>a1,reflectComponentType:()=>x1,resolveForwardRef:()=>w,setTestabilityGetter:()=>px,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>a0,\u0275APP_ID_RANDOM_PROVIDER:()=>_b,\u0275ChangeDetectorStatus:()=>si,\u0275ComponentFactory:()=>Su,\u0275Console:()=>pm,\u0275DEFAULT_LOCALE_ID:()=>Vi,\u0275INJECTOR_SCOPE:()=>wu,\u0275LContext:()=>ad,\u0275LifecycleHooksFeature:()=>El,\u0275LocaleDataIndex:()=>cs,\u0275NG_COMP_DEF:()=>Fi,\u0275NG_DIR_DEF:()=>Hi,\u0275NG_ELEMENT_ID:()=>lr,\u0275NG_INJ_DEF:()=>jt,\u0275NG_MOD_DEF:()=>zn,\u0275NG_PIPE_DEF:()=>Dn,\u0275NG_PROV_DEF:()=>Ft,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Du,\u0275NO_CHANGE:()=>cn,\u0275NgModuleFactory:()=>gy,\u0275NoopNgZone:()=>hx,\u0275ReflectionCapabilities:()=>vp,\u0275Render3ComponentFactory:()=>Ah,\u0275Render3ComponentRef:()=>ff,\u0275Render3NgModuleRef:()=>By,\u0275RuntimeError:()=>v,\u0275TESTABILITY:()=>ux,\u0275TESTABILITY_GETTER:()=>dx,\u0275ViewRef:()=>ea,\u0275XSS_SECURITY_URL:()=>g,\u0275_sanitizeHtml:()=>ug,\u0275_sanitizeUrl:()=>yu,\u0275allowSanitizationBypassAndThrow:()=>Yo,\u0275bypassSanitizationTrustHtml:()=>km,\u0275bypassSanitizationTrustResourceUrl:()=>ag,\u0275bypassSanitizationTrustScript:()=>wc,\u0275bypassSanitizationTrustStyle:()=>ah,\u0275bypassSanitizationTrustUrl:()=>og,\u0275clearResolutionOfComponentResourcesQueue:()=>Ko,\u0275coerceToBoolean:()=>l1,\u0275compileComponent:()=>V_,\u0275compileDirective:()=>t0,\u0275compileNgModule:()=>L_,\u0275compileNgModuleDefs:()=>R_,\u0275compileNgModuleFactory:()=>fx,\u0275compilePipe:()=>Z_,\u0275convertToBitFlags:()=>vi,\u0275createInjector:()=>Ud,\u0275defaultIterableDiffers:()=>s1,\u0275defaultKeyValueDiffers:()=>o1,\u0275detectChanges:()=>Dl,\u0275devModeEqual:()=>Vc,\u0275findLocaleData:()=>Ri,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>O_,\u0275formatRuntimeError:()=>S,\u0275getDebugNode:()=>mm,\u0275getDebugNodeR2:()=>qb,\u0275getDirectives:()=>$0,\u0275getHostElement:()=>zy,\u0275getInjectableDef:()=>mt,\u0275getLContext:()=>ms,\u0275getLocaleCurrencyCode:()=>zi,\u0275getLocalePluralCase:()=>Wi,\u0275getSanitizationBypassType:()=>vu,\u0275getUnknownElementStrictMode:()=>pc,\u0275getUnknownPropertyStrictMode:()=>bm,\u0275global:()=>Zt,\u0275injectChangeDetectorRef:()=>Mx,\u0275internalCreateApplication:()=>Nb,\u0275isBoundToModule:()=>gx,\u0275isDefaultChangeDetectionStrategy:()=>ce,\u0275isEnvironmentProviders:()=>y,\u0275isInjectable:()=>St,\u0275isListLikeIterable:()=>Th,\u0275isObservable:()=>op,\u0275isPromise:()=>Yl,\u0275isSubscribable:()=>Xc,\u0275ivyEnabled:()=>c1,\u0275makeDecorator:()=>Ks,\u0275noSideEffects:()=>Mn,\u0275patchComponentDefWithScope:()=>Qy,\u0275publishDefaultGlobalUtils:()=>Tb,\u0275publishGlobalUtil:()=>Jl,\u0275registerLocaleData:()=>Ui,\u0275resetCompiledComponents:()=>tb,\u0275resetJitOptions:()=>qC,\u0275resolveComponentResources:()=>_m,\u0275setAllowDuplicateNgModuleIdsForTest:()=>za,\u0275setClassMetadata:()=>Y0,\u0275setCurrentInjector:()=>be,\u0275setDocument:()=>Om,\u0275setLocaleId:()=>Ja,\u0275setUnknownElementStrictMode:()=>dc,\u0275setUnknownPropertyStrictMode:()=>Cm,\u0275store:()=>im,\u0275stringify:()=>R,\u0275transitiveScopesFor:()=>zf,\u0275unregisterLocaleData:()=>Gr,\u0275unwrapSafeValue:()=>Js,\u0275\u0275CopyDefinitionFeature:()=>Qg,\u0275\u0275FactoryTarget:()=>bo,\u0275\u0275HostDirectivesFeature:()=>Jg,\u0275\u0275InheritDefinitionFeature:()=>qd,\u0275\u0275NgOnChangesFeature:()=>kr,\u0275\u0275ProvidersFeature:()=>j0,\u0275\u0275StandaloneFeature:()=>U0,\u0275\u0275advance:()=>Vd,\u0275\u0275attribute:()=>tp,\u0275\u0275attributeInterpolate1:()=>Cf,\u0275\u0275attributeInterpolate2:()=>bf,\u0275\u0275attributeInterpolate3:()=>wf,\u0275\u0275attributeInterpolate4:()=>Lh,\u0275\u0275attributeInterpolate5:()=>Gc,\u0275\u0275attributeInterpolate6:()=>ep,\u0275\u0275attributeInterpolate7:()=>Ef,\u0275\u0275attributeInterpolate8:()=>Sf,\u0275\u0275attributeInterpolateV:()=>Ku,\u0275\u0275classMap:()=>Bi,\u0275\u0275classMapInterpolate1:()=>iy,\u0275\u0275classMapInterpolate2:()=>ts,\u0275\u0275classMapInterpolate3:()=>ny,\u0275\u0275classMapInterpolate4:()=>ry,\u0275\u0275classMapInterpolate5:()=>My,\u0275\u0275classMapInterpolate6:()=>Ay,\u0275\u0275classMapInterpolate7:()=>sy,\u0275\u0275classMapInterpolate8:()=>Sv,\u0275\u0275classMapInterpolateV:()=>oy,\u0275\u0275classProp:()=>ho,\u0275\u0275contentQuery:()=>E_,\u0275\u0275defineComponent:()=>Jn,\u0275\u0275defineDirective:()=>De,\u0275\u0275defineInjectable:()=>nt,\u0275\u0275defineInjector:()=>gt,\u0275\u0275defineNgModule:()=>ie,\u0275\u0275definePipe:()=>Pe,\u0275\u0275directiveInject:()=>Hl,\u0275\u0275disableBindings:()=>ws,\u0275\u0275element:()=>Po,\u0275\u0275elementContainer:()=>Mf,\u0275\u0275elementContainerEnd:()=>Kl,\u0275\u0275elementContainerStart:()=>sp,\u0275\u0275elementEnd:()=>rp,\u0275\u0275elementStart:()=>Ma,\u0275\u0275enableBindings:()=>Hs,\u0275\u0275getCurrentView:()=>Fh,\u0275\u0275getInheritedFactory:()=>Xs,\u0275\u0275hostProperty:()=>de,\u0275\u0275i18n:()=>L0,\u0275\u0275i18nApply:()=>F0,\u0275\u0275i18nAttributes:()=>R0,\u0275\u0275i18nEnd:()=>Oy,\u0275\u0275i18nExp:()=>ky,\u0275\u0275i18nPostprocess:()=>N0,\u0275\u0275i18nStart:()=>Iy,\u0275\u0275inject:()=>Se,\u0275\u0275injectAttribute:()=>Ho,\u0275\u0275invalidFactory:()=>ef,\u0275\u0275invalidFactoryDep:()=>Le,\u0275\u0275listener:()=>Ml,\u0275\u0275loadQuery:()=>S_,\u0275\u0275namespaceHTML:()=>th,\u0275\u0275namespaceMathML:()=>Jc,\u0275\u0275namespaceSVG:()=>Ol,\u0275\u0275nextContext:()=>sm,\u0275\u0275ngDeclareClassMetadata:()=>u1,\u0275\u0275ngDeclareComponent:()=>d1,\u0275\u0275ngDeclareDirective:()=>h1,\u0275\u0275ngDeclareFactory:()=>p1,\u0275\u0275ngDeclareInjectable:()=>g1,\u0275\u0275ngDeclareInjector:()=>m1,\u0275\u0275ngDeclareNgModule:()=>v1,\u0275\u0275ngDeclarePipe:()=>y1,\u0275\u0275pipe:()=>u_,\u0275\u0275pipeBind1:()=>d_,\u0275\u0275pipeBind2:()=>p_,\u0275\u0275pipeBind3:()=>f_,\u0275\u0275pipeBind4:()=>g_,\u0275\u0275pipeBindV:()=>m_,\u0275\u0275projection:()=>am,\u0275\u0275projectionDef:()=>om,\u0275\u0275property:()=>ip,\u0275\u0275propertyInterpolate:()=>Pf,\u0275\u0275propertyInterpolate1:()=>Nh,\u0275\u0275propertyInterpolate2:()=>If,\u0275\u0275propertyInterpolate3:()=>ap,\u0275\u0275propertyInterpolate4:()=>Of,\u0275\u0275propertyInterpolate5:()=>kf,\u0275\u0275propertyInterpolate6:()=>Lf,\u0275\u0275propertyInterpolate7:()=>Rf,\u0275\u0275propertyInterpolate8:()=>Ff,\u0275\u0275propertyInterpolateV:()=>Nf,\u0275\u0275pureFunction0:()=>Z0,\u0275\u0275pureFunction1:()=>q0,\u0275\u0275pureFunction2:()=>Q0,\u0275\u0275pureFunction3:()=>J0,\u0275\u0275pureFunction4:()=>t_,\u0275\u0275pureFunction5:()=>e_,\u0275\u0275pureFunction6:()=>i_,\u0275\u0275pureFunction7:()=>n_,\u0275\u0275pureFunction8:()=>r_,\u0275\u0275pureFunctionV:()=>s_,\u0275\u0275queryRefresh:()=>b_,\u0275\u0275reference:()=>nm,\u0275\u0275registerNgModuleType:()=>xp,\u0275\u0275resetView:()=>qc,\u0275\u0275resolveBody:()=>Nd,\u0275\u0275resolveDocument:()=>Mu,\u0275\u0275resolveWindow:()=>bg,\u0275\u0275restoreView:()=>Es,\u0275\u0275sanitizeHtml:()=>jp,\u0275\u0275sanitizeResourceUrl:()=>xu,\u0275\u0275sanitizeScript:()=>pg,\u0275\u0275sanitizeStyle:()=>wd,\u0275\u0275sanitizeUrl:()=>dg,\u0275\u0275sanitizeUrlOrResourceUrl:()=>gg,\u0275\u0275setComponentScope:()=>Xe,\u0275\u0275setNgModuleScope:()=>me,\u0275\u0275styleMap:()=>uo,\u0275\u0275styleMapInterpolate1:()=>Vf,\u0275\u0275styleMapInterpolate2:()=>ay,\u0275\u0275styleMapInterpolate3:()=>Dv,\u0275\u0275styleMapInterpolate4:()=>Bh,\u0275\u0275styleMapInterpolate5:()=>Mv,\u0275\u0275styleMapInterpolate6:()=>ly,\u0275\u0275styleMapInterpolate7:()=>cy,\u0275\u0275styleMapInterpolate8:()=>hy,\u0275\u0275styleMapInterpolateV:()=>uy,\u0275\u0275styleProp:()=>Ta,\u0275\u0275stylePropInterpolate1:()=>J,\u0275\u0275stylePropInterpolate2:()=>e,\u0275\u0275stylePropInterpolate3:()=>C,\u0275\u0275stylePropInterpolate4:()=>K,\u0275\u0275stylePropInterpolate5:()=>ut,\u0275\u0275stylePropInterpolate6:()=>Et,\u0275\u0275stylePropInterpolate7:()=>Nt,\u0275\u0275stylePropInterpolate8:()=>Yt,\u0275\u0275stylePropInterpolateV:()=>ae,\u0275\u0275syntheticHostListener:()=>Af,\u0275\u0275syntheticHostProperty:()=>Ce,\u0275\u0275template:()=>Rh,\u0275\u0275templateRefExtractor:()=>T_,\u0275\u0275text:()=>qv,\u0275\u0275textInterpolate:()=>Qv,\u0275\u0275textInterpolate1:()=>cm,\u0275\u0275textInterpolate2:()=>xv,\u0275\u0275textInterpolate3:()=>Jv,\u0275\u0275textInterpolate4:()=>Cv,\u0275\u0275textInterpolate5:()=>bv,\u0275\u0275textInterpolate6:()=>ty,\u0275\u0275textInterpolate7:()=>wv,\u0275\u0275textInterpolate8:()=>Ev,\u0275\u0275textInterpolateV:()=>ey,\u0275\u0275trustConstantHtml:()=>uh,\u0275\u0275trustConstantResourceUrl:()=>fg,\u0275\u0275validateIframeAttribute:()=>eg,\u0275\u0275viewQuery:()=>w_});var pt=ht(7579),t=ht(727),Y=ht(9751),q=ht(6451),O=ht(8421),U=ht(930),G=ht(4482);function $(h,p,...F){if(!0===p)return void h();if(!1===p)return;const tt=new U.Hp({next:()=>{tt.unsubscribe(),h()}});return(0,O.Xf)(p(...F)).subscribe(tt)}function W(h){for(let p in h)if(h[p]===W)return p;throw Error("Could not find renamed property on target object.")}function V(h,p){for(const F in p)p.hasOwnProperty(F)&&!h.hasOwnProperty(F)&&(h[F]=p[F])}function R(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(R).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const p=h.toString();if(null==p)return""+p;const F=p.indexOf("\n");return-1===F?p:p.substring(0,F)}function P(h,p){return null==h||""===h?null===p?"":p:null==p||""===p?h:h+" "+p}const k=W({__forward_ref__:W});function E(h){return h.__forward_ref__=E,h.toString=function(){return R(this())},h}function w(h){return T(h)?h():h}function T(h){return"function"==typeof h&&h.hasOwnProperty(k)&&h.__forward_ref__===E}function y(h){return h&&!!h.\u0275providers}const g="https://g.co/ng/security#xss";class v extends Error{constructor(p,F){super(S(p,F)),this.code=p}}function S(h,p){return`NG0${Math.abs(h)}${p?": "+p.trim():""}`}function N(h){return"string"==typeof h?h:null==h?"":String(h)}function j(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():N(h)}function b(h,p){throw new v(-201,!1)}function o(h,p,F){h!=p&&at(F,h,p,"==")}function et(h,p){null==h&&at(p,h,null,"!=")}function at(h,p,F,tt){throw new Error(`ASSERTION ERROR: ${h}`+(null==tt?"":` [Expected=> ${F} ${tt} ${p} <=Actual]`))}function nt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}const yt=nt;function gt(h){return{providers:h.providers||[],imports:h.imports||[]}}function mt(h){return wt(h,Ft)||wt(h,Ut)}function St(h){return null!==mt(h)}function wt(h,p){return h.hasOwnProperty(p)?h[p]:null}function Pt(h){return h&&(h.hasOwnProperty(jt)||h.hasOwnProperty(bt))?h[jt]:null}const Ft=W({\u0275prov:W}),jt=W({\u0275inj:W}),Ut=W({ngInjectableDef:W}),bt=W({ngInjectorDef:W});var _t,h;let xt;function Ct(h){const p=xt;return xt=h,p}function Ot(h,p,F){const tt=mt(h);return tt&&"root"==tt.providedIn?void 0===tt.value?tt.value=tt.factory():tt.value:F&_t.Optional?null:void 0!==p?p:void b(R(h))}(h=_t||(_t={}))[h.Default=0]="Default",h[h.Host=1]="Host",h[h.Self=2]="Self",h[h.SkipSelf=4]="SkipSelf",h[h.Optional=8]="Optional";const Zt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)();const Ne={},He="__NG_DI_FLAG__",ze="ngTempTokenPath",$e=/\n/gm,ke="__source";let We;function be(h){const p=We;return We=h,p}function se(h,p=_t.Default){if(void 0===We)throw new v(-203,!1);return null===We?Ot(h,void 0,p):We.get(h,p&_t.Optional?null:void 0,p)}function Se(h,p=_t.Default){return(function ft(){return xt}()||se)(w(h),p)}function Le(h){throw new v(202,!1)}function _i(h,p=_t.Default){return Se(h,vi(p))}function vi(h){return typeof h>"u"||"number"==typeof h?h:0|(h.optional&&8)|(h.host&&1)|(h.self&&2)|(h.skipSelf&&4)}function Oi(h){const p=[];for(let F=0;F ");else if("object"==typeof p){let vt=[];for(let Tt in p)if(p.hasOwnProperty(Tt)){let zt=p[Tt];vt.push(Tt+":"+("string"==typeof zt?JSON.stringify(zt):R(zt)))}ct=`{${vt.join(", ")}}`}return`${F}${tt?"("+tt+")":""}[${ct}]: ${h.replace($e,"\n ")}`}("\n"+h.message,ct,F,tt),h.ngTokenPath=ct,h[ze]=null,h}function Mn(h){return{toString:h}.toString()}var sn,si,Ee;function ce(h){return null==h||h===sn.Default}!function(h){h[h.OnPush=0]="OnPush",h[h.Default=1]="Default"}(sn||(sn={})),function(h){h[h.CheckOnce=0]="CheckOnce",h[h.Checked=1]="Checked",h[h.CheckAlways=2]="CheckAlways",h[h.Detached=3]="Detached",h[h.Errored=4]="Errored",h[h.Destroyed=5]="Destroyed"}(si||(si={})),function(h){h[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom"}(Ee||(Ee={}));const Ke={},di=[],Fi=W({\u0275cmp:W}),Hi=W({\u0275dir:W}),Dn=W({\u0275pipe:W}),zn=W({\u0275mod:W}),Ji=W({\u0275fac:W}),lr=W({__NG_ELEMENT_ID__:W});let Or=0;function Jn(h){return Mn(()=>{const p=h.type,F=!0===h.standalone,tt={},ct={type:p,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:tt,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===sn.OnPush,directiveDefs:null,pipeDefs:null,standalone:F,dependencies:F&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||di,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Ee.Emulated,id:"c"+Or++,styles:h.styles||di,_:null,setInput:null,schemas:h.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},vt=h.dependencies,Tt=h.features;return ct.inputs=ge(h.inputs,tt),ct.outputs=ge(h.outputs),Tt&&Tt.forEach(zt=>zt(ct)),ct.directiveDefs=vt?()=>("function"==typeof vt?vt():vt).map(Wt).filter(te):null,ct.pipeDefs=vt?()=>("function"==typeof vt?vt():vt).map(Ze).filter(te):null,ct})}function Xe(h,p,F){const tt=h.\u0275cmp;tt.directiveDefs=()=>("function"==typeof p?p():p).map(Wt),tt.pipeDefs=()=>("function"==typeof F?F():F).map(Ze)}function Wt(h){return Ae(h)||Fe(h)}function te(h){return null!==h}function ie(h){return Mn(()=>({type:h.type,bootstrap:h.bootstrap||di,declarations:h.declarations||di,imports:h.imports||di,exports:h.exports||di,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function me(h,p){return Mn(()=>{const F=Qe(h,!0);F.declarations=p.declarations||di,F.imports=p.imports||di,F.exports=p.exports||di})}function ge(h,p){if(null==h)return Ke;const F={};for(const tt in h)if(h.hasOwnProperty(tt)){let ct=h[tt],vt=ct;Array.isArray(ct)&&(vt=ct[1],ct=ct[0]),F[ct]=tt,p&&(p[ct]=vt)}return F}const De=Jn;function Pe(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function Ae(h){return h[Fi]||null}function Fe(h){return h[Hi]||null}function Ze(h){return h[Dn]||null}function ri(h){const p=Ae(h)||Fe(h)||Ze(h);return null!==p&&p.standalone}function Qe(h,p){const F=h[zn]||null;if(!F&&!0===p)throw new Error(`Type ${R(h)} does not have '\u0275mod' property.`);return F}function Ln(h){return Array.isArray(h)&&"object"==typeof h[1]}function je(h){return Array.isArray(h)&&!0===h[1]}function ee(h){return 0!=(4&h.flags)}function gn(h){return h.componentOffset>-1}function xr(h){return 1==(1&h.flags)}function pr(h){return null!==h.template}function Er(h){return 0!=(256&h[2])}function mr(h,p){return h.hasOwnProperty(Ji)?h[Ji]:null}class fo{constructor(p,F,tt){this.previousValue=p,this.currentValue=F,this.firstChange=tt}isFirstChange(){return this.firstChange}}function kr(){return Dr}function Dr(h){return h.type.prototype.ngOnChanges&&(h.setInput=ds),el}function el(){const h=go(this),p=h?.current;if(p){const F=h.previous;if(F===Ke)h.previous=p;else for(let tt in p)F[tt]=p[tt];h.current=null,this.ngOnChanges(p)}}function ds(h,p,F,tt){const ct=this.declaredInputs[F],vt=go(h)||function Us(h,p){return h[ps]=p}(h,{previous:Ke,current:null}),Tt=vt.current||(vt.current={}),zt=vt.previous,Ht=zt[ct];Tt[ct]=new fo(Ht&&Ht.currentValue,p,zt===Ke),h[tt]=p}kr.ngInherit=!0;const ps="__ngSimpleChanges__";function go(h){return h[ps]||null}let fs=null;const vr=h=>{fs=h},Tn=function(h,p,F){fs?.(h,p,F)};function $i(h){for(;Array.isArray(h);)h=h[0];return h}function Cr(h,p){return $i(p[h])}function Cn(h,p){return $i(p[h.index])}function Gn(h,p){return h.data[p]}function Fn(h,p){return h[p]}function tr(h,p){const F=p[h];return Ln(F)?F:F[0]}function il(h){return 64==(64&h[2])}function bs(h,p){return null==p?null:h[p]}function Lo(h){h[18]=0}function Pl(h,p){h[5]+=p;let F=h,tt=h[3];for(;null!==tt&&(1===p&&1===F[5]||-1===p&&0===F[5]);)tt[5]+=p,F=tt,tt=tt[3]}const Qi={lFrame:bn(null),bindingsEnabled:!0};function ha(){return Qi.bindingsEnabled}function Hs(){Qi.bindingsEnabled=!0}function ws(){Qi.bindingsEnabled=!1}function pi(){return Qi.lFrame.lView}function vn(){return Qi.lFrame.tView}function Es(h){return Qi.lFrame.contextLView=h,h[8]}function qc(h){return Qi.lFrame.contextLView=null,h}function qn(){let h=Fo();for(;null!==h&&64===h.type;)h=h.parent;return h}function Fo(){return Qi.lFrame.currentTNode}function gs(){const h=Qi.lFrame,p=h.currentTNode;return h.isParent?p:p.parent}function Mr(h,p){const F=Qi.lFrame;F.currentTNode=h,F.isParent=p}function rr(){return Qi.lFrame.isParent}function Yr(){Qi.lFrame.isParent=!1}function Un(){const h=Qi.lFrame;let p=h.bindingRootIndex;return-1===p&&(p=h.bindingRootIndex=h.tView.bindingStartIndex),p}function Br(){return Qi.lFrame.bindingIndex}function ns(h){return Qi.lFrame.bindingIndex=h}function Gs(){return Qi.lFrame.bindingIndex++}function mo(h){const p=Qi.lFrame,F=p.bindingIndex;return p.bindingIndex=p.bindingIndex+h,F}function ua(h){Qi.lFrame.inI18n=h}function nl(h,p){const F=Qi.lFrame;F.bindingIndex=F.bindingRootIndex=h,Zr(p)}function Zr(h){Qi.lFrame.currentDirectiveIndex=h}function vo(h){const p=Qi.lFrame.currentDirectiveIndex;return-1===p?null:h[p]}function ic(){return Qi.lFrame.currentQueryIndex}function Ss(h){Qi.lFrame.currentQueryIndex=h}function nc(h){const p=h[1];return 2===p.type?p.declTNode:1===p.type?h[6]:null}function Qc(h,p,F){if(F&_t.SkipSelf){let ct=p,vt=h;for(;(ct=ct.parent,null===ct&&!(F&_t.Host))&&(ct=nc(vt),!(null===ct||(vt=vt[15],10&ct.type))););if(null===ct)return!1;p=ct,h=vt}const tt=Qi.lFrame=Nn();return tt.currentTNode=p,tt.lView=h,!0}function pn(h){const p=Nn(),F=h[1];Qi.lFrame=p,p.currentTNode=F.firstChild,p.lView=h,p.tView=F,p.contextLView=h,p.bindingIndex=F.bindingStartIndex,p.inI18n=!1}function Nn(){const h=Qi.lFrame,p=null===h?null:h.child;return null===p?bn(h):p}function bn(h){const p={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:h,child:null,inI18n:!1};return null!==h&&(h.child=p),p}function Xh(){const h=Qi.lFrame;return Qi.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const Bo=Xh;function da(){const h=Xh();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function $h(h){return(Qi.lFrame.contextLView=function Il(h,p){for(;h>0;)p=p[15],h--;return p}(h,Qi.lFrame.contextLView))[8]}function Ar(){return Qi.lFrame.selectedIndex}function Ra(h){Qi.lFrame.selectedIndex=h}function nr(){const h=Qi.lFrame;return Gn(h.tView,h.selectedIndex)}function Ol(){Qi.lFrame.currentNamespace="svg"}function Jc(){Qi.lFrame.currentNamespace="math"}function th(){!function Kh(){Qi.lFrame.currentNamespace=null}()}function ne(h,p){for(let F=p.directiveStart,tt=p.directiveEnd;F=tt)break}else p[Ht]<0&&(h[18]+=65536),(zt>11>16&&(3&h[2])===p){h[2]+=2048,Tn(4,zt,vt);try{vt.call(zt)}finally{Tn(5,zt,vt)}}}else{Tn(4,zt,vt);try{vt.call(zt)}finally{Tn(5,zt,vt)}}}class mn{constructor(p,F,tt){this.factory=p,this.resolving=!1,this.canSeeViewProviders=F,this.injectImpl=tt}}function jr(h,p,F){let tt=0;for(;ttp){Tt=vt-1;break}}}for(;vt>16}(h),tt=p;for(;F>0;)tt=tt[15],F--;return tt}let _o=!0;function ga(h){const p=_o;return _o=h,p}let gp=0;const Vo={};function ar(h,p){const F=yr(h,p);if(-1!==F)return F;const tt=p[1];tt.firstCreatePass&&(h.injectorIndex=p.length,ol(tt.data,h),ol(p,null),ol(tt.blueprint,null));const ct=xo(h,p),vt=h.injectorIndex;if(rl(ct)){const Tt=rc(ct),zt=Ms(ct,p),Ht=zt[1].data;for(let Qt=0;Qt<8;Qt++)p[vt+Qt]=zt[Tt+Qt]|Ht[Tt+Qt]}return p[vt+8]=ct,vt}function ol(h,p){h.push(0,0,0,0,0,0,0,0,p)}function yr(h,p){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===p[h.injectorIndex+8]?-1:h.injectorIndex}function xo(h,p){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let F=0,tt=null,ct=p;for(;null!==ct;){if(tt=Wo(ct),null===tt)return-1;if(F++,ct=ct[15],-1!==tt.injectorIndex)return tt.injectorIndex|F<<16}return-1}function qh(h,p,F){!function sl(h,p,F){let tt;"string"==typeof F?tt=F.charCodeAt(0)||0:F.hasOwnProperty(lr)&&(tt=F[lr]),null==tt&&(tt=F[lr]=gp++);const ct=255&tt,vt=1<>5)]|=vt}(h,p,F)}function al(h,p,F){if(F&_t.Optional||void 0!==h)return h;b()}function er(h,p,F,tt){if(F&_t.Optional&&void 0===tt&&(tt=null),!(F&(_t.Self|_t.Host))){const ct=h[9],vt=Ct(void 0);try{return ct?ct.get(p,tt,F&_t.Optional):Ot(p,tt,F&_t.Optional)}finally{Ct(vt)}}return al(tt,0,F)}function Fa(h,p,F,tt=_t.Default,ct){if(null!==h){if(1024&p[2]){const Tt=function ur(h,p,F,tt,ct){let vt=h,Tt=p;for(;null!==vt&&null!==Tt&&1024&Tt[2]&&!(256&Tt[2]);){const zt=zo(vt,Tt,F,tt|_t.Self,Vo);if(zt!==Vo)return zt;let Ht=vt.parent;if(!Ht){const Qt=Tt[21];if(Qt){const ue=Qt.get(F,Vo,tt);if(ue!==Vo)return ue}Ht=Wo(Tt),Tt=Tt[15]}vt=Ht}return ct}(h,p,F,tt,Vo);if(Tt!==Vo)return Tt}const vt=zo(h,p,F,tt,Vo);if(vt!==Vo)return vt}return er(p,F,tt,ct)}function zo(h,p,F,tt,ct){const vt=function Qh(h){if("string"==typeof h)return h.charCodeAt(0)||0;const p=h.hasOwnProperty(lr)?h[lr]:void 0;return"number"==typeof p?p>=0?255&p:ih:p}(F);if("function"==typeof vt){if(!Qc(p,h,tt))return tt&_t.Host?al(ct,0,tt):er(p,F,tt,ct);try{const Tt=vt(tt);if(null!=Tt||tt&_t.Optional)return Tt;b()}finally{Bo()}}else if("number"==typeof vt){let Tt=null,zt=yr(h,p),Ht=-1,Qt=tt&_t.Host?p[16][6]:null;for((-1===zt||tt&_t.SkipSelf)&&(Ht=-1===zt?xo(h,p):p[zt+8],-1!==Ht&&eh(tt,!1)?(Tt=p[1],zt=rc(Ht),p=Ms(Ht,p)):zt=-1);-1!==zt;){const ue=p[1];if(va(vt,zt,ue.data)){const we=ma(zt,p,F,Tt,tt,Qt);if(we!==Vo)return we}Ht=p[zt+8],-1!==Ht&&eh(tt,p[1].data[zt+8]===Qt)&&va(vt,zt,p)?(Tt=ue,zt=rc(Ht),p=Ms(Ht,p)):zt=-1}}return ct}function ma(h,p,F,tt,ct,vt){const Tt=p[1],zt=Tt.data[h+8],ue=Uo(zt,Tt,F,null==tt?gn(zt)&&_o:tt!=Tt&&0!=(3&zt.type),ct&_t.Host&&vt===zt);return null!==ue?Na(p,Tt,ue,zt):Vo}function Uo(h,p,F,tt,ct){const vt=h.providerIndexes,Tt=p.data,zt=1048575&vt,Ht=h.directiveStart,Qt=h.directiveEnd,ue=vt>>20,Be=ct?zt+ue:Qt;for(let ei=tt?zt:zt+ue;ei=Ht&&fi.type===F)return ei}if(ct){const ei=Tt[Ht];if(ei&&pr(ei)&&ei.type===F)return Ht}return null}function Na(h,p,F,tt){let ct=h[F];const vt=p.data;if(function In(h){return h instanceof mn}(ct)){const Tt=ct;Tt.resolving&&function M(h,p){const F=p?`. Dependency path: ${p.join(" > ")} > ${h}`:"";throw new v(-200,`Circular dependency in DI detected for ${h}${F}`)}(j(vt[F]));const zt=ga(Tt.canSeeViewProviders);Tt.resolving=!0;const Ht=Tt.injectImpl?Ct(Tt.injectImpl):null;Qc(h,tt,_t.Default);try{ct=h[F]=Tt.factory(void 0,vt,h,tt),p.firstCreatePass&&F>=tt.directiveStart&&function kt(h,p,F){const{ngOnChanges:tt,ngOnInit:ct,ngDoCheck:vt}=p.type.prototype;if(tt){const Tt=Dr(p);(F.preOrderHooks||(F.preOrderHooks=[])).push(h,Tt),(F.preOrderCheckHooks||(F.preOrderCheckHooks=[])).push(h,Tt)}ct&&(F.preOrderHooks||(F.preOrderHooks=[])).push(0-h,ct),vt&&((F.preOrderHooks||(F.preOrderHooks=[])).push(h,vt),(F.preOrderCheckHooks||(F.preOrderCheckHooks=[])).push(h,vt))}(F,vt[F],p)}finally{null!==Ht&&Ct(Ht),ga(zt),Tt.resolving=!1,Bo()}}return ct}function va(h,p,F){const tt=1<>5)]&tt)}function eh(h,p){return!(h&_t.Self||h&_t.Host&&p)}class ll{constructor(p,F){this._tNode=p,this._lView=F}get(p,F,tt){return Fa(this._tNode,this._lView,p,vi(tt),F)}}function ih(){return new ll(qn(),pi())}function Xs(h){return Mn(()=>{const p=h.prototype.constructor,F=p[Ji]||qr(p),tt=Object.prototype;let ct=Object.getPrototypeOf(h.prototype).constructor;for(;ct&&ct!==tt;){const vt=ct[Ji]||qr(ct);if(vt&&vt!==F)return vt;ct=Object.getPrototypeOf(ct)}return vt=>new vt})}function qr(h){return T(h)?()=>{const p=qr(w(h));return p&&p()}:mr(h)}function Wo(h){const p=h[1],F=p.type;return 2===F?p.declTNode:1===F?h[6]:null}function Ho(h){return function oc(h,p){if("class"===p)return h.classes;if("style"===p)return h.styles;const F=h.attrs;if(F){const tt=F.length;let ct=0;for(;ct{const vt=ya(p);function Tt(...zt){if(this instanceof Tt)return vt.call(this,...zt),this;const Ht=new Tt(...zt);return function(ue){return ct&&ct(ue,...zt),(ue.hasOwnProperty(Co)?ue[Co]:Object.defineProperty(ue,Co,{value:[]})[Co]).push(Ht),tt&&tt(ue),ue}}return F&&(Tt.prototype=Object.create(F.prototype)),Tt.prototype.ngMetadataName=h,Tt.annotationCls=Tt,Tt})}function ya(h){return function(...F){if(h){const tt=h(...F);for(const ct in tt)this[ct]=tt[ct]}}}function As(h,p,F){return Mn(()=>{const tt=ya(p);function ct(...vt){if(this instanceof ct)return tt.apply(this,vt),this;const Tt=new ct(...vt);return zt.annotation=Tt,zt;function zt(Ht,Qt,ue){const we=Ht.hasOwnProperty(no)?Ht[no]:Object.defineProperty(Ht,no,{value:[]})[no];for(;we.length<=ue;)we.push(null);return(we[ue]=we[ue]||[]).push(Tt),Ht}}return F&&(ct.prototype=Object.create(F.prototype)),ct.prototype.ngMetadataName=h,ct.annotationCls=ct,ct})}function Qr(h,p,F,tt){return Mn(()=>{const ct=ya(p);function vt(...Tt){if(this instanceof vt)return ct.apply(this,Tt),this;const zt=new vt(...Tt);return function Ht(Qt,ue){const we=Qt.constructor,Be=we.hasOwnProperty($s)?we[$s]:Object.defineProperty(we,$s,{value:{}})[$s];Be[ue]=Be.hasOwnProperty(ue)&&Be[ue]||[],Be[ue].unshift(zt),tt&&tt(Qt,ue,...Tt)}}return F&&(vt.prototype=Object.create(F.prototype)),vt.prototype.ngMetadataName=h,vt.annotationCls=vt,vt})}const kl=As("Attribute",h=>({attributeName:h,__NG_ELEMENT_ID__:()=>Ho(h)}));class Bn{constructor(p,F){this._desc=p,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof F?this.__NG_ELEMENT_ID__=F:void 0!==F&&(this.\u0275prov=nt({token:this,providedIn:F.providedIn||"root",factory:F.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const _a=new Bn("AnalyzeForEntryComponents");class br{}const xa=Qr("ContentChildren",(h,p={})=>({selector:h,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true,...p}),br),td=Qr("ContentChild",(h,p={})=>({selector:h,first:!0,isViewQuery:!1,descendants:!0,...p}),br),ed=Qr("ViewChildren",(h,p={})=>({selector:h,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true,...p}),br),ro=Qr("ViewChild",(h,p)=>({selector:h,first:!0,isViewQuery:!0,descendants:!0,...p}),br);var bo,zr,os;function $n(h){const p=Zt.ng;if(p&&p.\u0275compilerFacade)return p.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}!function(h){h[h.Directive=0]="Directive",h[h.Component=1]="Component",h[h.Injectable=2]="Injectable",h[h.Pipe=3]="Pipe",h[h.NgModule=4]="NgModule"}(bo||(bo={})),function(h){h[h.Directive=0]="Directive",h[h.Pipe=1]="Pipe",h[h.NgModule=2]="NgModule"}(zr||(zr={})),function(h){h[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom"}(os||(os={}));const Bt=Function;function At(h){return"function"==typeof h}function Xt(h){return h.flat(Number.POSITIVE_INFINITY)}function qt(h,p){h.forEach(F=>Array.isArray(F)?qt(F,p):p(F))}function re(h,p,F){p>=h.length?h.push(F):h.splice(p,0,F)}function _e(h,p){return p>=h.length-1?h.pop():h.splice(p,1)[0]}function Ge(h,p){const F=[];for(let tt=0;tt=0?h[1|tt]=F:(tt=~tt,function yn(h,p,F,tt){let ct=h.length;if(ct==p)h.push(F,tt);else if(1===ct)h.push(tt,h[0]),h[0]=F;else{for(ct--,h.push(h[ct-1],h[ct]);ct>p;){const vt=ct-2;h[ct]=h[vt],ct--}h[p]=F,h[p+1]=tt}}(h,tt,p,F)),tt}function Ts(h,p){const F=as(h,p);if(F>=0)return h[1|F]}function as(h,p){return $o(h,p,1)}function $o(h,p,F){let tt=0,ct=h.length>>F;for(;ct!==tt;){const vt=tt+(ct-tt>>1),Tt=h[vt<p?ct=vt:tt=vt+1}return~(ct<new p(...F)}_zipTypesAndAnnotations(p,F){let tt;tt=Ge(typeof p>"u"?F.length:p.length);for(let ct=0;ct"u"?tt[ct]=[]:p[ct]&&p[ct]!=Object?tt[ct]=[p[ct]]:tt[ct]=[],F&&null!=F[ct]&&(tt[ct]=tt[ct].concat(F[ct]));return tt}_ownParameters(p,F){if(function mp(h){return id.test(h)||ym.test(h)||Ba.test(h)&&!ac.test(h)}(p.toString()))return null;if(p.parameters&&p.parameters!==F.parameters)return p.parameters;const ct=p.ctorParameters;if(ct&&ct!==F.ctorParameters){const zt="function"==typeof ct?ct():ct,Ht=zt.map(ue=>ue&&ue.type),Qt=zt.map(ue=>ue&&nd(ue.decorators));return this._zipTypesAndAnnotations(Ht,Qt)}const vt=p.hasOwnProperty(no)&&p[no],Tt=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",p);return Tt||vt?this._zipTypesAndAnnotations(Tt,vt):Ge(p.length)}parameters(p){if(!At(p))return[];const F=Jh(p);let tt=this._ownParameters(p,F);return!tt&&F!==Object&&(tt=this.parameters(F)),tt||[]}_ownAnnotations(p,F){if(p.annotations&&p.annotations!==F.annotations){let tt=p.annotations;return"function"==typeof tt&&tt.annotations&&(tt=tt.annotations),tt}return p.decorators&&p.decorators!==F.decorators?nd(p.decorators):p.hasOwnProperty(Co)?p[Co]:null}annotations(p){if(!At(p))return[];const F=Jh(p),tt=this._ownAnnotations(p,F)||[];return(F!==Object?this.annotations(F):[]).concat(tt)}_ownPropMetadata(p,F){if(p.propMetadata&&p.propMetadata!==F.propMetadata){let tt=p.propMetadata;return"function"==typeof tt&&tt.propMetadata&&(tt=tt.propMetadata),tt}if(p.propDecorators&&p.propDecorators!==F.propDecorators){const tt=p.propDecorators,ct={};return Object.keys(tt).forEach(vt=>{ct[vt]=nd(tt[vt])}),ct}return p.hasOwnProperty($s)?p[$s]:null}propMetadata(p){if(!At(p))return{};const F=Jh(p),tt={};if(F!==Object){const vt=this.propMetadata(F);Object.keys(vt).forEach(Tt=>{tt[Tt]=vt[Tt]})}const ct=this._ownPropMetadata(p,F);return ct&&Object.keys(ct).forEach(vt=>{const Tt=[];tt.hasOwnProperty(vt)&&Tt.push(...tt[vt]),Tt.push(...ct[vt]),tt[vt]=Tt}),tt}ownPropMetadata(p){return At(p)&&this._ownPropMetadata(p,Jh(p))||{}}hasLifecycleHook(p,F){return p instanceof Bt&&F in p.prototype}}function nd(h){return h?h.map(p=>new(0,p.type.annotationCls)(...p.args?p.args:[])):[]}function Jh(h){const p=h.prototype?Object.getPrototypeOf(h.prototype):null;return(p?p.constructor:null)||Object}const tu=Ii(As("Inject",h=>({token:h})),-1),nh=Ii(As("Optional"),8),eu=Ii(As("Self"),2),ja=Ii(As("SkipSelf"),4),cl=Ii(As("Host"),1);let lc=null;function En(){return lc=lc||new vp}function iu(h){return Ys(En().parameters(h))}function Ys(h){return h.map(p=>function rd(h){const p={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(h)&&h.length>0)for(let F=0;F{const Tt=[];ct.templateUrl&&Tt.push(tt(ct.templateUrl).then(we=>{ct.template=we}));const zt=ct.styleUrls,Ht=ct.styles||(ct.styles=[]),Qt=ct.styles.length;zt&&zt.forEach((we,Be)=>{Ht.push(""),Tt.push(tt(we).then(ei=>{Ht[Qt+Be]=ei,zt.splice(zt.indexOf(we),1),0==zt.length&&(ct.styleUrls=void 0)}))});const ue=Promise.all(Tt).then(()=>function _p(h){cc.delete(h)}(vt));p.push(ue)}),Ko(),Promise.all(p).then(()=>{})}let Ca=new Map;const cc=new Set;function hc(h){return!!(h.templateUrl&&!h.hasOwnProperty("template")||h.styleUrls&&h.styleUrls.length)}function Ko(){const h=Ca;return Ca=new Map,h}function Ps(h){return"string"==typeof h?h:h.text()}const Kn=new Map;let Va=!0;function xp(h,p){(function ru(h,p,F){if(p&&p!==F&&Va)throw new Error(`Duplicate module registered for ${h} - ${R(p)} vs ${R(p.name)}`)})(p,Kn.get(p)||null,h),Kn.set(p,h)}function uc(h){return Kn.get(h)}function za(h){Va=!h}const Cp={name:"custom-elements"},bp={name:"no-errors-schema"};let rh=!1;function dc(h){rh=h}function pc(){return rh}let su=!1;function Cm(h){su=h}function bm(){return su}var fc;!function(h){h[h.Important=1]="Important",h[h.DashCase=2]="DashCase"}(fc||(fc={}));const ou=/^>|^->||--!>|)/;function hl(h){return h.replace(ou,p=>p.replace(Xf,"\u200b$1\u200b"))}const au=new Map;let ul=0;function wo(h){return au.get(h)||null}class ad{get lView(){return wo(this.lViewId)}constructor(p,F,tt){this.lViewId=p,this.nodeIndex=F,this.native=tt}}function ms(h){let p=Rl(h);if(p){if(Ln(p)){const F=p;let tt,ct,vt;if(ld(h)){if(tt=ud(F,h),-1==tt)throw new Error("The provided component was not found in the application");ct=h}else if(function cd(h){return h&&h.constructor&&h.constructor.\u0275dir}(h)){if(tt=function qs(h,p){let F=h[1].firstChild;for(;F;){const tt=F.directiveStart,ct=F.directiveEnd;for(let vt=tt;vt=0){const zt=$i(vt[Tt]),Ht=lu(vt,Tt,zt);ls(zt,Ht),p=Ht;break}}}}return p||null}function lu(h,p,F){return new ad(h[20],p,F)}function dl(h){let F,p=Rl(h);if(Ln(p)){const tt=p,ct=ud(tt,h);F=tr(ct,tt);const vt=lu(tt,ct,F[0]);vt.component=h,ls(h,vt),ls(vt.native,vt)}else{const tt=p,ct=tt.lView;F=tr(tt.nodeIndex,ct)}return F}const cu="__ngContext__";function ls(h,p){Ln(p)?(h[cu]=p[20],function od(h){au.set(h[20],h)}(p)):h[cu]=p}function Rl(h){const p=h[cu];return"number"==typeof p?wo(p):p||null}function hu(h){const p=Rl(h);return p?Ln(p)?p:p.lView:null}function ld(h){return h&&h.constructor&&h.constructor.\u0275cmp}function so(h,p){const F=h[1];for(let tt=22;tt0&&(F[ct-1][4]=p),tt0&&(h[F-1][4]=tt[4]);const vt=_e(h,10+p);!function Sm(h,p){fu(h,p,p[11],2,null,null),p[0]=null,p[6]=null}(tt[1],tt);const Tt=vt[19];null!==Tt&&Tt.detachView(vt[1]),tt[3]=null,tt[4]=null,tt[2]&=-65}return tt}function Mm(h,p){if(!(128&p[2])){const F=p[11];F.destroyNode&&fu(h,p,F,3,null,null),function Vv(h){let p=h[13];if(!p)return fd(h[1],h);for(;p;){let F=null;if(Ln(p))F=p[13];else{const tt=p[10];tt&&(F=tt)}if(!F){for(;p&&!p[4]&&p!==h;)Ln(p)&&fd(p[1],p),p=p[3];null===p&&(p=h),Ln(p)&&fd(p[1],p),F=p&&p[4]}p=F}}(p)}}function fd(h,p){if(!(128&p[2])){p[2]&=-65,p[2]|=128,function Kf(h,p){let F;if(null!=h&&null!=(F=h.destroyHooks))for(let tt=0;tt=0?tt[ct=Tt]():tt[ct=-Tt].unsubscribe(),vt+=2}else{const Tt=tt[ct=F[vt+1]];F[vt].call(Tt)}if(null!==tt){for(let vt=ct+1;vt-1){const{encapsulation:vt}=h.data[tt.directiveStart+ct];if(vt===Ee.None||vt===Ee.Emulated)return null}return Cn(tt,F)}}function Ha(h,p,F,tt,ct){h.insertBefore(p,F,tt,ct)}function Os(h,p,F){h.appendChild(p,F)}function Yf(h,p,F,tt,ct){null!==tt?Ha(h,p,F,tt,ct):Os(h,p,F)}function oh(h,p){return h.parentNode(p)}function Ap(h,p,F){return fl(h,p,F)}function xc(h,p,F){return 40&h.type?Cn(h,F):null}let gd,Ga,Lp,yd,fl=xc;function gl(h,p){fl=h,gd=p}function md(h,p,F,tt){const ct=kn(h,tt,p),vt=p[11],zt=Ap(tt.parent||p[6],tt,p);if(null!=ct)if(Array.isArray(F))for(let Ht=0;Hth,createScript:h=>h,createScriptURL:h=>h})}catch{}return Ga}function Cc(h){return vd()?.createHTML(h)||h}function eg(h,p,F){const tt=pi(),ct=nr(),vt=Cn(ct,tt);if(2===ct.type&&"iframe"===p.toLowerCase()){const Tt=vt;Tt.src="",Tt.srcdoc=Cc(""),Pp(tt[11],Tt);throw new v(-910,!1)}return h}function Om(h){Lp=h}function Rp(){return void 0!==Lp?Lp:typeof document<"u"?document:void 0}function Fp(){if(void 0===yd&&(yd=null,Zt.trustedTypes))try{yd=Zt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return yd}function ig(h){return Fp()?.createHTML(h)||h}function _d(h){return Fp()?.createScript(h)||h}function ng(h){return Fp()?.createScriptURL(h)||h}class bc{constructor(p){this.changingThisBreaksApplicationSecurity=p}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${g})`}}class rg extends bc{getTypeName(){return"HTML"}}class sg extends bc{getTypeName(){return"Style"}}class ks extends bc{getTypeName(){return"Script"}}class vl extends bc{getTypeName(){return"URL"}}class xd extends bc{getTypeName(){return"ResourceURL"}}function Js(h){return h instanceof bc?h.changingThisBreaksApplicationSecurity:h}function Yo(h,p){const F=vu(h);if(null!=F&&F!==p){if("ResourceURL"===F&&"URL"===p)return!0;throw new Error(`Required a safe ${p}, got a ${F} (see ${g})`)}return F===p}function vu(h){return h instanceof bc&&h.getTypeName()||null}function km(h){return new rg(h)}function ah(h){return new sg(h)}function wc(h){return new ks(h)}function og(h){return new vl(h)}function ag(h){return new xd(h)}function Eo(h){const p=new jl(h);return function lh(){try{return!!(new window.DOMParser).parseFromString(Cc(""),"text/html")}catch{return!1}}()?new Ec(p):p}class Ec{constructor(p){this.inertDocumentHelper=p}getInertBodyElement(p){p=""+p;try{const F=(new window.DOMParser).parseFromString(Cc(p),"text/html").body;return null===F?this.inertDocumentHelper.getInertBodyElement(p):(F.removeChild(F.firstChild),F)}catch{return null}}}class jl{constructor(p){if(this.defaultDoc=p,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const F=this.inertDocument.createElement("html");this.inertDocument.appendChild(F);const tt=this.inertDocument.createElement("body");F.appendChild(tt)}}getInertBodyElement(p){const F=this.inertDocument.createElement("template");if("content"in F)return F.innerHTML=Cc(p),F;const tt=this.inertDocument.createElement("body");return tt.innerHTML=Cc(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(tt),tt}stripCustomNsAttrs(p){const F=p.attributes;for(let ct=F.length-1;0"),!0}endElement(p){const F=p.nodeName.toLowerCase();ch.hasOwnProperty(F)&&!Sc.hasOwnProperty(F)&&(this.buf.push(""))}chars(p){this.buf.push(hg(p))}checkClobberedElement(p,F){if(F&&(p.compareDocumentPosition(F)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${p.outerHTML}`);return F}}const Nm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bm=/([^\#-~ |!])/g;function hg(h){return h.replace(/&/g,"&").replace(Nm,function(p){return"&#"+(1024*(p.charCodeAt(0)-55296)+(p.charCodeAt(1)-56320)+65536)+";"}).replace(Bm,function(p){return"&#"+p.charCodeAt(0)+";"}).replace(//g,">")}let hh;function ug(h,p){let F=null;try{hh=hh||Eo(h);let tt=p?String(p):"";F=hh.getInertBodyElement(tt);let ct=5,vt=tt;do{if(0===ct)throw new Error("Failed to sanitize html because the input is unstable");ct--,tt=vt,vt=F.innerHTML,F=hh.getInertBodyElement(tt)}while(tt!==vt);return Cc((new cg).sanitizeChildren(Bp(F)||F))}finally{if(F){const tt=Bp(F)||F;for(;tt.firstChild;)tt.removeChild(tt.firstChild)}}}function Bp(h){return"content"in h&&function jm(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var vs;function jp(h){const p=ao();return p?ig(p.sanitize(vs.HTML,h)||""):Yo(h,"HTML")?ig(Js(h)):ug(Rp(),N(h))}function wd(h){const p=ao();return p?p.sanitize(vs.STYLE,h)||"":Yo(h,"Style")?Js(h):N(h)}function dg(h){const p=ao();return p?p.sanitize(vs.URL,h)||"":Yo(h,"URL")?Js(h):yu(N(h))}function xu(h){const p=ao();if(p)return ng(p.sanitize(vs.RESOURCE_URL,h)||"");if(Yo(h,"ResourceURL"))return ng(Js(h));throw new v(904,!1)}function pg(h){const p=ao();if(p)return _d(p.sanitize(vs.SCRIPT,h)||"");if(Yo(h,"Script"))return _d(Js(h));throw new v(905,!1)}function uh(h){return Cc(h[0])}function fg(h){return function Im(h){return vd()?.createScriptURL(h)||h}(h[0])}function gg(h,p,F){return function Vm(h,p){return"src"===p&&("embed"===h||"frame"===h||"iframe"===h||"media"===h||"script"===h)||"href"===p&&("base"===h||"link"===h)?xu:dg}(p,F)(h)}function ao(){const h=pi();return h&&h[12]}!function(h){h[h.NONE=0]="NONE",h[h.HTML=1]="HTML",h[h.STYLE=2]="STYLE",h[h.SCRIPT=3]="SCRIPT",h[h.URL=4]="URL",h[h.RESOURCE_URL=5]="RESOURCE_URL"}(vs||(vs={}));const Mc=new Bn("ENVIRONMENT_INITIALIZER"),Ed=new Bn("INJECTOR",-1),Um=new Bn("INJECTOR_DEF_TYPES");class Ac{get(p,F=Ne){if(F===Ne){const tt=new Error(`NullInjectorError: No provider for ${R(p)}!`);throw tt.name="NullInjectorError",tt}return F}}function Cu(h){return{\u0275providers:h}}function dh(...h){return{\u0275providers:Vp(!0,h),\u0275fromNgModule:!0}}function Vp(h,...p){const F=[],tt=new Set;let ct;return qt(p,vt=>{const Tt=vt;Tc(Tt,F,[],tt)&&(ct||(ct=[]),ct.push(Tt))}),void 0!==ct&&bu(ct,F),F}function bu(h,p){for(let F=0;F{p.push(vt)})}}function Tc(h,p,F,tt){if(!(h=w(h)))return!1;let ct=null,vt=Pt(h);const Tt=!vt&&Ae(h);if(vt||Tt){if(Tt&&!Tt.standalone)return!1;ct=h}else{const Ht=h.ngModule;if(vt=Pt(Ht),!vt)return!1;ct=Ht}const zt=tt.has(ct);if(Tt){if(zt)return!1;if(tt.add(ct),Tt.dependencies){const Ht="function"==typeof Tt.dependencies?Tt.dependencies():Tt.dependencies;for(const Qt of Ht)Tc(Qt,p,F,tt)}}else{if(!vt)return!1;{if(null!=vt.imports&&!zt){let Qt;tt.add(ct);try{qt(vt.imports,ue=>{Tc(ue,p,F,tt)&&(Qt||(Qt=[]),Qt.push(ue))})}finally{}void 0!==Qt&&bu(Qt,p)}if(!zt){const Qt=mr(ct)||(()=>new ct);p.push({provide:ct,useFactory:Qt,deps:di},{provide:Um,useValue:ct,multi:!0},{provide:Mc,useValue:()=>Se(ct),multi:!0})}const Ht=vt.providers;if(null!=Ht&&!zt){Sn(Ht,ue=>{p.push(ue)})}}}return ct!==h&&void 0!==h.providers}function Sn(h,p){for(let F of h)y(F)&&(F=F.\u0275providers),Array.isArray(F)?Sn(F,p):p(F)}const Wv=W({provide:String,useValue:W});function So(h){return null!==h&&"object"==typeof h&&Wv in h}function qo(h){return!(!h||!h.useExisting)}function zp(h){return!(!h||!h.useFactory)}function xl(h){return"function"==typeof h}const wu=new Bn("Set Injector scope."),ph={},Hm={};let Up;function Dd(){return void 0===Up&&(Up=new Ac),Up}class Pc{}class mg extends Pc{get destroyed(){return this._destroyed}constructor(p,F,tt,ct){super(),this.parent=F,this.source=tt,this.scopes=ct,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ad(p,Tt=>this.processProvider(Tt)),this.records.set(Ed,fh(void 0,this)),ct.has("environment")&&this.records.set(Pc,fh(void 0,this));const vt=this.records.get(wu);null!=vt&&"string"==typeof vt.value&&this.scopes.add(vt.value),this.injectorDefTypes=new Set(this.get(Um.multi,di,_t.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const p of this._ngOnDestroyHooks)p.ngOnDestroy();for(const p of this._onDestroyHooks)p()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(p){this._onDestroyHooks.push(p)}runInContext(p){this.assertNotDestroyed();const F=be(this),tt=Ct(void 0);try{return p()}finally{be(F),Ct(tt)}}get(p,F=Ne,tt=_t.Default){this.assertNotDestroyed(),tt=vi(tt);const ct=be(this),vt=Ct(void 0);try{if(!(tt&_t.SkipSelf)){let zt=this.records.get(p);if(void 0===zt){const Ht=function gh(h){return"function"==typeof h||"object"==typeof h&&h instanceof Bn}(p)&&mt(p);zt=Ht&&this.injectableDefInScope(Ht)?fh(Wp(p),ph):null,this.records.set(p,zt)}if(null!=zt)return this.hydrate(p,zt)}const Tt=tt&_t.Self?Dd():this.parent;return F=tt&_t.Optional&&F===Ne?null:F,Tt.get(p,F)}catch(Tt){if("NullInjectorError"===Tt.name){if((Tt[ze]=Tt[ze]||[]).unshift(R(p)),ct)throw Tt;return hn(Tt,p,"R3InjectorError",this.source)}throw Tt}finally{Ct(vt),be(ct)}}resolveInjectorInitializers(){const p=be(this),F=Ct(void 0);try{const tt=this.get(Mc.multi,di,_t.Self);for(const ct of tt)ct()}finally{be(p),Ct(F)}}toString(){const p=[],F=this.records;for(const tt of F.keys())p.push(R(tt));return`R3Injector[${p.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(p){let F=xl(p=w(p))?p:w(p&&p.provide);const tt=function Gm(h){if(So(h))return fh(void 0,h.useValue);return fh(Md(h),ph)}(p);if(xl(p)||!0!==p.multi){this.records.get(F)}else{let ct=this.records.get(F);ct||(ct=fh(void 0,ph,!0),ct.factory=()=>Oi(ct.multi),this.records.set(F,ct)),F=p,ct.multi.push(p)}this.records.set(F,tt)}hydrate(p,F){return F.value===ph&&(F.value=Hm,F.value=F.factory()),"object"==typeof F.value&&F.value&&function yg(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(F.value)&&this._ngOnDestroyHooks.add(F.value),F.value}injectableDefInScope(p){if(!p.providedIn)return!1;const F=w(p.providedIn);return"string"==typeof F?"any"===F||this.scopes.has(F):this.injectorDefTypes.has(F)}}function Wp(h){const p=mt(h),F=null!==p?p.factory:mr(h);if(null!==F)return F;if(h instanceof Bn)throw new v(204,!1);if(h instanceof Function)return function vg(h){const p=h.length;if(p>0){Ge(p,"?");throw new v(204,!1)}const F=function Mt(h){const p=h&&(h[Ft]||h[Ut]);if(p){const F=function Dt(h){if(h.hasOwnProperty("name"))return h.name;const p=(""+h).match(/^function\s*([^\s(]+)/);return null===p?"":p[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${F}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${F}" class.`),p}return null}(h);return null!==F?()=>F.factory(h):()=>new h}(h);throw new v(204,!1)}function Md(h,p,F){let tt;if(xl(h)){const ct=w(h);return mr(ct)||Wp(ct)}if(So(h))tt=()=>w(h.useValue);else if(zp(h))tt=()=>h.useFactory(...Oi(h.deps||[]));else if(qo(h))tt=()=>Se(w(h.useExisting));else{const ct=w(h&&(h.useClass||h.provide));if(!function _n(h){return!!h.deps}(h))return mr(ct)||Wp(ct);tt=()=>new ct(...Oi(h.deps))}return tt}function fh(h,p,F=!1){return{factory:h,value:p,multi:F?[]:void 0}}function Ad(h,p){for(const F of h)Array.isArray(F)?Ad(F,p):F&&y(F)?Ad(F.\u0275providers,p):p(F)}class Eu{}class Su{}const _g="ngComponent";class Xm{resolveComponentFactory(p){throw function Hp(h){const p=Error(`No component factory found for ${R(h)}. Did you add it to @NgModule.entryComponents?`);return p[_g]=h,p}(p)}}class Xa{}function Vl(h,p){return new Ls(Cn(h,p))}Xa.NULL=new Xm;class Ls{constructor(p){this.nativeElement=p}}function Td(h){return h instanceof Ls?h.nativeElement:h}Ls.__NG_ELEMENT_ID__=function xg(){return Vl(qn(),pi())};class Pd{}class Rs{}Rs.__NG_ELEMENT_ID__=()=>function Id(){const h=pi(),F=tr(qn().index,h);return(Ln(F)?F:h)[11]}();class Fs{}Fs.\u0275prov=nt({token:Fs,providedIn:"root",factory:()=>null});class Gp{constructor(p){this.full=p,this.major=p.split(".")[0],this.minor=p.split(".")[1],this.patch=p.split(".").slice(2).join(".")}}const Od=new Gp("15.1.3"),Du={},kd="ngOriginalError";function Cg(h){return h[kd]}class Cl{constructor(){this._console=console}handleError(p){const F=this._findOriginalError(p);this._console.error("ERROR",p),F&&this._console.error("ORIGINAL ERROR",F)}_findOriginalError(p){let F=p&&Cg(p);for(;F&&Cg(F);)F=Cg(F);return F||null}}function bg(h){return h.ownerDocument.defaultView}function Mu(h){return h.ownerDocument}function Nd(h){return h.ownerDocument.body}function Ns(h){return h instanceof Function?h():h}function vh(h,p,F){let tt=h.length;for(;;){const ct=h.indexOf(p,F);if(-1===ct)return ct;if(0===ct||h.charCodeAt(ct-1)<=32){const vt=p.length;if(ct+vt===tt||h.charCodeAt(ct+vt)<=32)return ct}F=ct+1}}const yh="ng-template";function Eg(h,p,F){let tt=0;for(;ttvt?"":ct[we+1].toLowerCase();const ei=8&tt?Be:null;if(ei&&-1!==vh(ei,Qt,0)||2&tt&&Qt!==Be){if(Do(tt))return!1;Tt=!0}}}}else{if(!Tt&&!Do(tt)&&!Do(Ht))return!1;if(Tt&&Do(Ht))continue;Tt=!1,tt=Ht|1&tt}}return Do(tt)||Tt}function Do(h){return 0==(1&h)}function jd(h,p,F,tt){if(null===p)return-1;let ct=0;if(tt||!F){let vt=!1;for(;ct-1)for(F++;F0?'="'+zt+'"':"")+"]"}else 8&tt?ct+="."+Tt:4&tt&&(ct+=" "+Tt);else""!==ct&&!Do(Tt)&&(p+=Yp(vt,ct),ct=""),tt=Tt,vt=vt||!Do(tt);F++}return""!==ct&&(p+=Yp(vt,ct)),p}const cn={};function Vd(h){_h(vn(),pi(),Ar()+h,!1)}function _h(h,p,F,tt){if(!tt)if(3==(3&p[2])){const vt=h.preOrderCheckHooks;null!==vt&&pe(p,vt,F)}else{const vt=h.preOrderHooks;null!==vt&&Ve(p,vt,0,F)}Ra(F)}const Ka={\u0275\u0275defineInjectable:nt,\u0275\u0275defineInjector:gt,\u0275\u0275inject:Se,\u0275\u0275invalidFactoryDep:Le,resolveForwardRef:w};function Pu(h,p){let F=null,tt=null;h.hasOwnProperty(Ft)||Object.defineProperty(h,Ft,{get:()=>(null===F&&(F=$n().compileInjectable(Ka,`ng:///${h.name}/\u0275prov.js`,function Ym(h,p){const F=p||{providedIn:null},tt={name:h.name,type:h,typeArgumentCount:0,providedIn:F.providedIn};return(Ag(F)||Tg(F))&&void 0!==F.deps&&(tt.deps=Ys(F.deps)),Ag(F)?tt.useClass=F.useClass:function Zp(h){return zd in h}(F)?tt.useValue=F.useValue:Tg(F)?tt.useFactory=F.useFactory:function Km(h){return void 0!==h.useExisting}(F)&&(tt.useExisting=F.useExisting),tt}(h,p))),F)}),h.hasOwnProperty(Ji)||Object.defineProperty(h,Ji,{get:()=>{if(null===tt){const ct=$n();tt=ct.compileFactory(Ka,`ng:///${h.name}/\u0275fac.js`,{name:h.name,type:h,typeArgumentCount:0,deps:iu(h),target:ct.FactoryTarget.Injectable})}return tt},configurable:!0})}const zd=W({provide:String,useValue:W});function Ag(h){return void 0!==h.useClass}function Tg(h){return void 0!==h.useFactory}const Mo=Ks("Injectable",void 0,void 0,void 0,(h,p)=>Pu(h,p));function Ud(h,p=null,F=null,tt){const ct=Iu(h,p,F,tt);return ct.resolveInjectorInitializers(),ct}function Iu(h,p=null,F=null,tt,ct=new Set){const vt=[F||di,dh(h)];return tt=tt||("object"==typeof h?void 0:R(h)),new mg(vt,p||Dd(),tt||null,ct)}class Bs{static create(p,F){if(Array.isArray(p))return Ud({name:""},F,p,"");{const tt=p.name??"";return Ud({name:tt},p.parent,p.providers,tt)}}}function js(h){return h.length>1?" ("+function Pg(h){const p=[];for(let F=0;F-1)return p.push(h[F]),p;p.push(h[F])}return p}(h.slice().reverse()).map(tt=>R(tt.token)).join(" -> ")+")":""}function qp(h,p,F,tt){const ct=[p],vt=F(ct),Tt=tt?function Ld(h,p){const F=`${h} caused by: ${p instanceof Error?p.message:p}`,tt=Error(F);return tt[kd]=p,tt}(vt,tt):Error(vt);return Tt.addKey=Gv,Tt.keys=ct,Tt.injectors=[h],Tt.constructResolvingMessage=F,Tt[kd]=tt,Tt}function Gv(h,p){this.injectors.push(h),this.keys.push(p),this.message=this.constructResolvingMessage(this.keys)}function Qp(h,p){const F=[];for(let tt=0,ct=p.length;ttSe(Ed)}),Bs.__NG_ELEMENT_ID__=-1;class lo{constructor(p,F){if(this.token=p,this.id=F,!p)throw new v(208,!1);this.displayName=R(this.token)}static get(p){return Jp.get(w(p))}static get numberOfKeys(){return Jp.numberOfKeys}}const Jp=new class bl{constructor(){this._allKeys=new Map}get(p){if(p instanceof lo)return p;if(this._allKeys.has(p))return this._allKeys.get(p);const F=new lo(p,lo.numberOfKeys);return this._allKeys.set(p,F),F}get numberOfKeys(){return this._allKeys.size}};class xh{constructor(p,F,tt){this.key=p,this.optional=F,this.visibility=tt}static fromKey(p){return new xh(p,!1,null)}}const kg=[];class Lg{constructor(p,F,tt){this.key=p,this.resolvedFactories=F,this.multiProvider=tt,this.resolvedFactory=this.resolvedFactories[0]}}class Rg{constructor(p,F){this.factory=p,this.dependencies=F}}function Fg(h){let p,F;if(h.useClass){const tt=w(h.useClass);p=En().factory(tt),F=Hd(tt)}else h.useExisting?(p=tt=>tt,F=[xh.fromKey(lo.get(h.useExisting))]):h.useFactory?(p=h.useFactory,F=function Jo(h,p){if(p){const F=p.map(tt=>[tt]);return p.map(tt=>kc(h,tt,F))}return Hd(h)}(h.useFactory,h.deps)):(p=()=>h.useValue,F=kg);return new Rg(p,F)}function tf(h){return new Lg(lo.get(h.provide),[Fg(h)],h.multi||!1)}function Zm(h){const tt=function qm(h,p){for(let F=0;F{if(F instanceof Bt)p.push({provide:F,useClass:F});else if(F&&"object"==typeof F&&void 0!==F.provide)p.push(F);else{if(!Array.isArray(F))throw function Og(h){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${h}`)}(F);Wl(F,p)}}),p}function Hd(h){const p=En().parameters(h);if(!p)return[];if(p.some(F=>null==F))throw Qp(h,p);return p.map(F=>kc(h,F,p))}function kc(h,p,F){let tt=null,ct=!1;if(!Array.isArray(p))return Lu(p instanceof tu?p.token:p,ct,null);let vt=null;for(let Tt=0;Tt=this._providers.length)throw function ku(h){return Error(`Index ${h} is out-of-bounds.`)}(p);return this._providers[p]}_new(p){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function Ou(h,p){return qp(h,p,function(F){return`Cannot instantiate cyclic dependency!${js(F)}`})}(this,p.key);return this._instantiateProvider(p)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(p){if(p.multiProvider){const F=[];for(let tt=0;ttthis._getByReflectiveDependency(Tt))}catch(Tt){throw Tt.addKey&&Tt.addKey(this,p.key),Tt}try{vt=tt(...ct)}catch(Tt){throw function Ig(h,p,F,tt){return qp(h,tt,function(ct){const vt=R(ct[0].token);return`${p.message}: Error during instantiation of ${vt}!${js(ct)}.`},p)}(this,Tt,Tt.stack,p.key)}return vt}_getByReflectiveDependency(p){return this._getByKey(p.key,p.visibility,p.optional?null:Ne)}_getByKey(p,F,tt){return p===bh.INJECTOR_KEY?this:F instanceof eu?this._getByKeySelf(p,tt):this._getByKeyDefault(p,tt,F)}_getObjByKeyId(p){for(let F=0;F' "'+F.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}function Hl(h,p=_t.Default){const F=pi();if(null===F)return Se(h,p);return Fa(qn(),F,w(h),p)}function ef(){throw new Error("invalid")}function Gd(h,p){const F=h.contentQueries;if(null!==F)for(let tt=0;tt22&&_h(h,p,22,!1),Tn(Tt?2:0,ct),F(tt,ct)}finally{Ra(vt),Tn(Tt?3:1,ct)}}function ta(h,p,F){if(ee(p)){const tt=p.directiveStart,ct=p.directiveEnd;for(let vt=tt;vt0;){const F=h[--p];if("number"==typeof F&&F<0)return F}return 0})(Tt)!=zt&&Tt.push(zt),Tt.push(F,tt,vt)}}(h,p,tt,Rc(h,F,ct.hostVars,cn),ct)}function To(h,p,F,tt,ct,vt){const Tt=Cn(h,p);zu(p[11],Tt,vt,h.value,F,tt,ct)}function zu(h,p,F,tt,ct,vt,Tt){if(null==vt)h.removeAttribute(p,ct,F);else{const zt=null==Tt?N(vt):Tt(vt,tt||"",ct);h.setAttribute(p,ct,zt,F)}}function hf(h,p,F,tt,ct,vt){const Tt=vt[p];if(null!==Tt){const zt=tt.setInput;for(let Ht=0;Ht0&&Kd(F)}}function Kd(h){for(let tt=Wa(h);null!==tt;tt=Sp(tt))for(let ct=10;ct0&&Kd(vt)}const F=h[1].components;if(null!==F)for(let tt=0;tt0&&Kd(ct)}}function Xg(h,p){const F=tr(p,h),tt=F[1];(function cv(h,p){for(let F=p.length;F-1&&(Dp(p,tt),_e(F,tt))}this._attachedToViewContainer=!1}Mm(this._lView[1],this._lView)}onDestroy(p){zg(this._lView[1],this._lView,null,p)}markForCheck(){Fc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Nc(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function oo(h,p){fu(h,p,p[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(p){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=p}}class Kg extends ea{constructor(p){super(p),this._view=p}detectChanges(){const p=this._view;Nc(p[1],p,p[8],!1)}checkNoChanges(){}get context(){return null}}class Yg extends Xa{constructor(p){super(),this.ngModule=p}resolveComponentFactory(p){const F=Ae(p);return new Ah(F,this.ngModule)}}function pf(h){const p=[];for(let F in h)if(h.hasOwnProperty(F)){const tt=h[F];p.push({propName:tt,templateName:F})}return p}class Mh{constructor(p,F){this.injector=p,this.parentInjector=F}get(p,F,tt){tt=vi(tt);const ct=this.injector.get(p,Du,tt);return ct!==Du||F===Du?ct:this.parentInjector.get(p,F,tt)}}class Ah extends Su{get inputs(){return pf(this.componentDef.inputs)}get outputs(){return pf(this.componentDef.outputs)}constructor(p,F){super(),this.componentDef=p,this.ngModule=F,this.componentType=p.type,this.selector=function Qo(h){return h.map(Mg).join(",")}(p.selectors),this.ngContentSelectors=p.ngContentSelectors?p.ngContentSelectors:[],this.isBoundToModule=!!F}create(p,F,tt,ct){let vt=(ct=ct||this.ngModule)instanceof Pc?ct:ct?.injector;vt&&null!==this.componentDef.getStandaloneInjector&&(vt=this.componentDef.getStandaloneInjector(vt)||vt);const Tt=vt?new Mh(p,vt):p,zt=Tt.get(Pd,null);if(null===zt)throw new v(407,!1);const Ht=Tt.get(Fs,null),Qt=zt.createRenderer(null,this.componentDef),ue=this.componentDef.selectors[0][0]||"div",we=tt?function ev(h,p,F){const tt=F===Ee.ShadowDom;return h.selectRootElement(p,tt)}(Qt,tt,this.componentDef.encapsulation):Bl(Qt,ue,function Zg(h){const p=h.toLowerCase();return"svg"===p?"svg":"math"===p?"math":null}(ue)),Be=this.componentDef.onPush?288:272,ei=nf(0,null,null,1,0,null,null,null,null,null),fi=Fu(null,ei,null,Be,null,null,zt,Qt,Ht,Tt,null);let Si,ki;pn(fi);try{const Ni=this.componentDef;let en,bi=null;Ni.findHostDirectiveDefs?(en=[],bi=new Map,Ni.findHostDirectiveDefs(Ni,en,bi),en.push(Ni)):en=[Ni];const xn=function Zd(h,p){const F=h[1],tt=22;return h[tt]=p,wh(F,tt,2,"#host",null)}(fi,we),Xr=function gf(h,p,F,tt,ct,vt,Tt,zt){const Ht=ct[1];!function Xl(h,p,F,tt){for(const ct of h)p.mergedAttrs=Vr(p.mergedAttrs,ct.hostAttrs);null!==p.mergedAttrs&&(Bc(p,p.mergedAttrs,!0),null!==F&&Jf(tt,F,p))}(tt,h,p,Tt);const Qt=vt.createRenderer(p,F),ue=Fu(ct,Jm(F),null,F.onPush?32:16,ct[h.index],h,vt,Qt,zt||null,null,null);return Ht.firstCreatePass&&Vu(Ht,h,tt.length-1),Uu(ct,ue),ct[h.index]=ue}(xn,we,Ni,en,fi,zt,Qt);ki=Gn(ei,22),we&&function Xu(h,p,F,tt){if(tt)jr(h,F,["ng-version",Od.full]);else{const{attrs:ct,classes:vt}=function Oc(h){const p=[],F=[];let tt=1,ct=2;for(;tt0&&Qf(h,F,vt.join(" "))}}(Qt,Ni,we,tt),void 0!==F&&function mf(h,p,F){const tt=h.projection=[];for(let ct=0;ct=0;tt--){const ct=h[tt];ct.hostVars=p+=ct.hostVars,ct.hostAttrs=Vr(ct.hostAttrs,F=Vr(F,ct.hostAttrs))}}(tt)}function vf(h){return h===Ke?{}:h===di?[]:h}function qg(h,p){const F=h.viewQuery;h.viewQuery=F?(tt,ct)=>{p(tt,ct),F(tt,ct)}:p}function dv(h,p){const F=h.contentQueries;h.contentQueries=F?(tt,ct,vt)=>{p(tt,ct,vt),F(tt,ct,vt)}:p}function pv(h,p){const F=h.hostBindings;h.hostBindings=F?(tt,ct)=>{p(tt,ct),F(tt,ct)}:p}const fv=["providersResolver"],gv=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Qg(h){let F,p=jc(h.type);F=pr(h)?p.\u0275cmp:p.\u0275dir;const tt=h;for(const ct of fv)tt[ct]=F[ct];if(pr(F))for(const ct of gv)tt[ct]=F[ct]}function Jg(h){return p=>{p.findHostDirectiveDefs=tm,p.hostDirectives=(Array.isArray(h)?h:h()).map(F=>"function"==typeof F?{directive:w(F),inputs:Ke,outputs:Ke}:{directive:w(F.directive),inputs:yf(F.inputs),outputs:yf(F.outputs)})}}function tm(h,p,F){if(null!==h.hostDirectives)for(const tt of h.hostDirectives){const ct=Fe(tt.directive);mv(ct.declaredInputs,tt.inputs),tm(ct,p,F),F.set(ct,tt),p.push(ct)}}function yf(h){if(void 0===h||0===h.length)return Ke;const p={};for(let F=0;F=h.data.length&&(h.data[F]=null,h.blueprint[F]=null),p[F]=tt}function nm(h){return Fn(function Fr(){return Qi.lFrame.contextLView}(),22+h)}function ip(h,p,F){const tt=pi();if(Vs(tt,Gs(),p)){co(vn(),nr(),tt,h,p,tt[11],F,!1)}return ip}function np(h,p,F,tt,ct){const Tt=ct?"class":"style";Yd(h,F,p.inputs[Tt],Tt,tt)}function Ma(h,p,F,tt){const ct=pi(),vt=vn(),Tt=22+h,zt=ct[11],Ht=ct[Tt]=Bl(zt,p,function Gt(){return Qi.lFrame.currentNamespace}()),Qt=vt.firstCreatePass?function _v(h,p,F,tt,ct,vt,Tt){const zt=p.consts,Qt=wh(p,h,2,ct,bs(zt,vt));return ju(p,F,Qt,bs(zt,Tt)),null!==Qt.attrs&&Bc(Qt,Qt.attrs,!1),null!==Qt.mergedAttrs&&Bc(Qt,Qt.mergedAttrs,!0),null!==p.queries&&p.queries.elementStart(p,Qt),Qt}(Tt,vt,ct,0,p,F,tt):vt.data[Tt];return Mr(Qt,!0),Jf(zt,Ht,Qt),32!=(32&Qt.flags)&&md(vt,ct,Ht,Qt),0===function ec(){return Qi.lFrame.elementDepthCount}()&&ls(Ht,ct),function Ro(){Qi.lFrame.elementDepthCount++}(),xr(Qt)&&(Nu(vt,ct,Qt),ta(vt,Qt,ct)),null!==tt&&Bu(ct,Qt),Ma}function rp(){let h=qn();rr()?Yr():(h=h.parent,Mr(h,!1));const p=h;!function Zn(){Qi.lFrame.elementDepthCount--}();const F=vn();return F.firstCreatePass&&(ne(F,h),ee(h)&&F.queries.elementEnd(h)),null!=p.classesWithoutHost&&function Xn(h){return 0!=(8&h.flags)}(p)&&np(F,p,pi(),p.classesWithoutHost,!0),null!=p.stylesWithoutHost&&function rs(h){return 0!=(16&h.flags)}(p)&&np(F,p,pi(),p.stylesWithoutHost,!1),rp}function Po(h,p,F,tt){return Ma(h,p,F,tt),rp(),Po}function sp(h,p,F){const tt=pi(),ct=vn(),vt=h+22,Tt=ct.firstCreatePass?function Df(h,p,F,tt,ct){const vt=p.consts,Tt=bs(vt,tt),zt=wh(p,h,8,"ng-container",Tt);return null!==Tt&&Bc(zt,Tt,!0),ju(p,F,zt,bs(vt,ct)),null!==p.queries&&p.queries.elementStart(p,zt),zt}(vt,ct,tt,p,F):ct.data[vt];Mr(Tt,!0);const zt=tt[vt]=tt[11].createComment("");return md(ct,tt,zt,Tt),ls(zt,tt),xr(Tt)&&(Nu(ct,tt,Tt),ta(ct,Tt,tt)),null!=F&&Bu(tt,Tt),sp}function Kl(){let h=qn();const p=vn();return rr()?Yr():(h=h.parent,Mr(h,!1)),p.firstCreatePass&&(ne(p,h),ee(h)&&p.queries.elementEnd(h)),Kl}function Mf(h,p,F){return sp(h,p,F),Kl(),Mf}function Fh(){return pi()}function Yl(h){return!!h&&"function"==typeof h.then}function Xc(h){return!!h&&"function"==typeof h.subscribe}const op=Xc;function Ml(h,p,F,tt){const ct=pi(),vt=vn(),Tt=qn();return Tf(vt,ct,ct[11],Tt,h,p,tt),Ml}function Af(h,p){const F=qn(),tt=pi(),ct=vn();return Tf(ct,tt,wl(vo(ct.data),F,tt),F,h,p),Af}function Tf(h,p,F,tt,ct,vt,Tt){const zt=xr(tt),Qt=h.firstCreatePass&&$g(h),ue=p[8],we=df(p);let Be=!0;if(3&tt.type||Tt){const Si=Cn(tt,p),ki=Tt?Tt(Si):Si,Ni=we.length,en=Tt?xn=>Tt($i(xn[tt.index])):tt.index;let bi=null;if(!Tt&&zt&&(bi=function rm(h,p,F,tt){const ct=h.cleanup;if(null!=ct)for(let vt=0;vtHt?zt[Ht]:null}"string"==typeof Tt&&(vt+=2)}return null}(h,p,ct,tt.index)),null!==bi){(bi.__ngLastListenerFn__||bi).__ngNextListenerFn__=vt,bi.__ngLastListenerFn__=vt,Be=!1}else{vt=Al(tt,p,ue,vt,!1);const xn=F.listen(ki,ct,vt);we.push(vt,xn),Qt&&Qt.push(ct,en,Ni,Ni+1)}}else vt=Al(tt,p,ue,vt,!1);const ei=tt.outputs;let fi;if(Be&&null!==ei&&(fi=ei[ct])){const Si=fi.length;if(Si)for(let ki=0;ki-1?tr(h.index,p):p);let Ht=Zl(p,F,tt,Tt),Qt=vt.__ngNextListenerFn__;for(;Qt;)Ht=Zl(p,F,Qt,Tt)&&Ht,Qt=Qt.__ngNextListenerFn__;return ct&&!1===Ht&&(Tt.preventDefault(),Tt.returnValue=!1),Ht}}function sm(h=1){return $h(h)}function $c(h,p){let F=null;const tt=function Kp(h){const p=h.attrs;if(null!=p){const F=p.indexOf(5);if(!(1&F))return p[F+1]}return null}(h);for(let ct=0;ct>17&32767}function c(h){return 2|h}function Q(h){return(131068&h)>>2}function dt(h,p){return-131069&h|p<<2}function Kt(h){return 1|h}function Me(h,p,F,tt,ct,vt){let Tt=vt?p.classBindings:p.styleBindings,zt=Io(Tt),Ht=Q(Tt);h[tt]=F;let ue,Qt=!1;if(Array.isArray(F)){const we=F;ue=we[1],(null===ue||as(we,ue)>0)&&(Qt=!0)}else ue=F;if(ct)if(0!==Ht){const Be=Io(h[zt+1]);h[tt+1]=Bf(Be,zt),0!==Be&&(h[Be+1]=dt(h[Be+1],tt)),h[zt+1]=function s(h,p){return 131071&h|p<<17}(h[zt+1],tt)}else h[tt+1]=Bf(zt,0),0!==zt&&(h[zt+1]=dt(h[zt+1],tt)),zt=tt;else h[tt+1]=Bf(Ht,0),0===zt?zt=tt:h[Ht+1]=dt(h[Ht+1],tt),Ht=tt;Qt&&(h[tt+1]=c(h[tt+1])),hi(h,ue,tt,!0,vt),hi(h,ue,tt,!1,vt),function oi(h,p,F,tt,ct){const vt=ct?h.residualClasses:h.residualStyles;null!=vt&&"string"==typeof p&&as(vt,p)>=0&&(F[tt+1]=Kt(F[tt+1]))}(p,ue,h,tt,vt),Tt=Bf(zt,Ht),vt?p.classBindings=Tt:p.styleBindings=Tt}function hi(h,p,F,tt,ct){const vt=h[F+1],Tt=null===p;let zt=tt?Io(vt):Q(vt),Ht=!1;for(;0!==zt&&(!1===Ht||Tt);){const Qt=h[zt],ue=h[zt+1];Li(Qt,p)&&(Ht=!0,h[zt+1]=tt?Kt(ue):c(ue)),zt=tt?Io(ue):Q(ue)}Ht&&(h[F+1]=tt?c(vt):Kt(vt))}function Li(h,p){return null===h||null==p||(Array.isArray(h)?h[1]:h)===p||!(!Array.isArray(h)||"string"!=typeof p)&&as(h,p)>=0}const Pi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ki(h){return h.substring(Pi.key,Pi.keyEnd)}function on(h){return h.substring(Pi.value,Pi.valueEnd)}function Yn(h,p){const F=Pi.textEnd;return F===p?-1:(p=Pi.keyEnd=function ra(h,p,F){for(;p32;)p++;return p}(h,Pi.key=p,F),na(h,p,F))}function Tr(h,p){const F=Pi.textEnd;let tt=Pi.key=na(h,p,F);return F===tt?-1:(tt=Pi.keyEnd=function zs(h,p,F){let tt;for(;p=65&&(-33&tt)<=90||tt>=48&&tt<=57);)p++;return p}(h,tt,F),tt=sa(h,tt,F,58),tt=Pi.value=na(h,tt,F),tt=Pi.valueEnd=function oa(h,p,F){let tt=-1,ct=-1,vt=-1,Tt=p,zt=Tt;for(;Tt32&&(zt=Tt),vt=ct,ct=tt,tt=-33&Ht}return zt}(h,tt,F),sa(h,tt,F,59))}function Wr(h){Pi.key=0,Pi.keyEnd=0,Pi.value=0,Pi.valueEnd=0,Pi.textEnd=h.length}function na(h,p,F){for(;p=0;F=Tr(p,F))aa(h,Ki(p),on(p))}function Bi(h){an(Wn,ji,h,!0)}function ji(h,p){for(let F=function Rn(h){return Wr(h),Yn(h,na(h,0,Pi.textEnd))}(p);F>=0;F=Yn(p,F))Wn(h,Ki(p),!0)}function Gi(h,p,F,tt){const ct=pi(),vt=vn(),Tt=mo(2);if(vt.firstUpdatePass&&Pa(vt,h,Tt,tt),p!==cn&&Vs(ct,Tt,p)){up(vt,vt.data[Ar()],ct,ct[11],h,ct[Tt+1]=function Sy(h,p){return null==h||("string"==typeof p?h+=p:"object"==typeof h&&(h=R(Js(h)))),h}(p,F),tt,Tt)}}function an(h,p,F,tt){const ct=vn(),vt=mo(2);ct.firstUpdatePass&&Pa(ct,null,vt,tt);const Tt=pi();if(F!==cn&&Vs(Tt,vt,F)){const zt=ct.data[Ar()];if(Dy(zt,tt)&&!Pr(ct,vt)){let Ht=tt?zt.classesWithoutHost:zt.stylesWithoutHost;null!==Ht&&(F=P(Ht,F||"")),np(ct,zt,Tt,F,tt)}else!function hp(h,p,F,tt,ct,vt,Tt,zt){ct===cn&&(ct=di);let Ht=0,Qt=0,ue=0=h.expandoStartIndex}function Pa(h,p,F,tt){const ct=h.data;if(null===ct[F+1]){const vt=ct[Ar()],Tt=Pr(h,F);Dy(vt,tt)&&null===p&&!Tt&&(p=!1),p=function po(h,p,F,tt){const ct=vo(h);let vt=tt?p.residualClasses:p.residualStyles;if(null===ct)0===(tt?p.classBindings:p.styleBindings)&&(F=cp(null,h,p,F,tt),F=Hr(F,p.attrs,tt),vt=null);else{const Tt=p.directiveStylingLast;if(-1===Tt||h[Tt]!==ct)if(F=cp(ct,h,p,F,tt),null===vt){let Ht=function ql(h,p,F){const tt=F?p.classBindings:p.styleBindings;if(0!==Q(tt))return h[Io(tt)]}(h,p,tt);void 0!==Ht&&Array.isArray(Ht)&&(Ht=cp(null,h,p,Ht[1],tt),Ht=Hr(Ht,p.attrs,tt),function wr(h,p,F,tt){const ct=F?p.classBindings:p.styleBindings;h[Io(ct)]=tt}(h,p,tt,Ht))}else vt=function jf(h,p,F){let tt;const ct=p.directiveEnd;for(let vt=1+p.directiveStylingLast;vt0;){const Ht=h[ct],Qt=Array.isArray(Ht),ue=Qt?Ht[1]:Ht,we=null===ue;let Be=F[ct+1];Be===cn&&(Be=we?di:void 0);let ei=we?Ts(Be,tt):ue===tt?Be:void 0;if(Qt&&!lm(ei)&&(ei=Ts(Ht,tt)),lm(ei)&&(zt=ei,Tt))return zt;const fi=h[ct+1];ct=Tt?Io(fi):Q(fi)}if(null!==p){let Ht=vt?p.residualClasses:p.residualStyles;null!=Ht&&(zt=Ts(Ht,tt))}return zt}function lm(h){return void 0!==h}function Dy(h,p){return 0!=(h.flags&(p?8:16))}function qv(h,p=""){const F=pi(),tt=vn(),ct=h+22,vt=tt.firstCreatePass?wh(tt,ct,1,p,null):tt.data[ct],Tt=F[ct]=du(F[11],p);md(tt,F,Tt,vt),Mr(vt,!1)}function Qv(h){return cm("",h,""),Qv}function cm(h,p,F){const tt=pi(),ct=zc(tt,h,p,F);return ct!==cn&&Za(tt,Ar(),ct),cm}function xv(h,p,F,tt,ct){const vt=pi(),Tt=Uc(vt,h,p,F,tt,ct);return Tt!==cn&&Za(vt,Ar(),Tt),xv}function Jv(h,p,F,tt,ct,vt,Tt){const zt=pi(),Ht=Ih(zt,h,p,F,tt,ct,vt,Tt);return Ht!==cn&&Za(zt,Ar(),Ht),Jv}function Cv(h,p,F,tt,ct,vt,Tt,zt,Ht){const Qt=pi(),ue=Da(Qt,h,p,F,tt,ct,vt,Tt,zt,Ht);return ue!==cn&&Za(Qt,Ar(),ue),Cv}function bv(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue){const we=pi(),Be=Wc(we,h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue);return Be!==cn&&Za(we,Ar(),Be),bv}function ty(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be){const ei=pi(),fi=Hc(ei,h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be);return fi!==cn&&Za(ei,Ar(),fi),ty}function wv(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi){const Si=pi(),ki=Oh(Si,h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi);return ki!==cn&&Za(Si,Ar(),ki),wv}function Ev(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki){const Ni=pi(),en=kh(Ni,h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki);return en!==cn&&Za(Ni,Ar(),en),Ev}function ey(h){const p=pi(),F=Sa(p,h);return F!==cn&&Za(p,Ar(),F),ey}function iy(h,p,F){an(Wn,ji,zc(pi(),h,p,F),!0)}function ts(h,p,F,tt,ct){an(Wn,ji,Uc(pi(),h,p,F,tt,ct),!0)}function ny(h,p,F,tt,ct,vt,Tt){an(Wn,ji,Ih(pi(),h,p,F,tt,ct,vt,Tt),!0)}function ry(h,p,F,tt,ct,vt,Tt,zt,Ht){an(Wn,ji,Da(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht),!0)}function My(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue){an(Wn,ji,Wc(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue),!0)}function Ay(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be){an(Wn,ji,Hc(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be),!0)}function sy(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi){an(Wn,ji,Oh(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi),!0)}function Sv(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki){an(Wn,ji,kh(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki),!0)}function oy(h){an(Wn,ji,Sa(pi(),h),!0)}function Vf(h,p,F){uo(zc(pi(),h,p,F))}function ay(h,p,F,tt,ct){uo(Uc(pi(),h,p,F,tt,ct))}function Dv(h,p,F,tt,ct,vt,Tt){uo(Ih(pi(),h,p,F,tt,ct,vt,Tt))}function Bh(h,p,F,tt,ct,vt,Tt,zt,Ht){uo(Da(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht))}function Mv(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue){uo(Wc(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue))}function ly(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be){uo(Hc(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be))}function cy(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi){uo(Oh(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi))}function hy(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki){uo(kh(pi(),h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki))}function uy(h){uo(Sa(pi(),h))}function J(h,p,F,tt,ct){return Gi(h,zc(pi(),p,F,tt),ct,!1),J}function e(h,p,F,tt,ct,vt,Tt){return Gi(h,Uc(pi(),p,F,tt,ct,vt),Tt,!1),e}function C(h,p,F,tt,ct,vt,Tt,zt,Ht){return Gi(h,Ih(pi(),p,F,tt,ct,vt,Tt,zt),Ht,!1),C}function K(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue){return Gi(h,Da(pi(),p,F,tt,ct,vt,Tt,zt,Ht,Qt),ue,!1),K}function ut(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be){return Gi(h,Wc(pi(),p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we),Be,!1),ut}function Et(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi){return Gi(h,Hc(pi(),p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei),fi,!1),Et}function Nt(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki){return Gi(h,Oh(pi(),p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si),ki,!1),Nt}function Yt(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki,Ni,en){return Gi(h,kh(pi(),p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue,we,Be,ei,fi,Si,ki,Ni),en,!1),Yt}function ae(h,p,F){return Gi(h,Sa(pi(),p),F,!1),ae}function de(h,p,F){const tt=pi();if(Vs(tt,Gs(),p)){co(vn(),nr(),tt,h,p,tt[11],F,!0)}return de}function Ce(h,p,F){const tt=pi();if(Vs(tt,Gs(),p)){const vt=vn(),Tt=nr();co(vt,Tt,tt,h,p,wl(vo(vt.data),Tt,tt),F,!0)}return Ce}const Ue=void 0;var xi=["en",[["a","p"],["AM","PM"],Ue],[["AM","PM"],Ue,Ue],[["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"]],Ue,[["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"]],Ue,[["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}",Ue,"{1} 'at' {0}",Ue],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ui(h){const F=Math.floor(Math.abs(h)),tt=h.toString().replace(/^[^.]*\.?/,"").length;return 1===F&&0===tt?1:5}];let wi={};function Ui(h,p,F){"string"!=typeof p&&(F=p,p=h[cs.LocaleId]),p=p.toLowerCase().replace(/_/g,"-"),wi[p]=h,F&&(wi[p][cs.ExtraData]=F)}function Ri(h){const p=function Zc(h){return h.toLowerCase().replace(/_/g,"-")}(h);let F=jn(p);if(F)return F;const tt=p.split("-")[0];if(F=jn(tt),F)return F;if("en"===tt)return xi;throw new v(701,!1)}function zi(h){return Ri(h)[cs.CurrencyCode]||null}function Wi(h){return Ri(h)[cs.PluralCase]}function jn(h){return h in wi||(wi[h]=Zt.ng&&Zt.ng.common&&Zt.ng.common.locales&&Zt.ng.common.locales[h]),wi[h]}function Gr(){wi={}}var cs;!function(h){h[h.LocaleId=0]="LocaleId",h[h.DayPeriodsFormat=1]="DayPeriodsFormat",h[h.DayPeriodsStandalone=2]="DayPeriodsStandalone",h[h.DaysFormat=3]="DaysFormat",h[h.DaysStandalone=4]="DaysStandalone",h[h.MonthsFormat=5]="MonthsFormat",h[h.MonthsStandalone=6]="MonthsStandalone",h[h.Eras=7]="Eras",h[h.FirstDayOfWeek=8]="FirstDayOfWeek",h[h.WeekendRange=9]="WeekendRange",h[h.DateFormat=10]="DateFormat",h[h.TimeFormat=11]="TimeFormat",h[h.DateTimeFormat=12]="DateTimeFormat",h[h.NumberSymbols=13]="NumberSymbols",h[h.NumberFormats=14]="NumberFormats",h[h.CurrencyCode=15]="CurrencyCode",h[h.CurrencySymbol=16]="CurrencySymbol",h[h.CurrencyName=17]="CurrencyName",h[h.Currencies=18]="Currencies",h[h.Directionality=19]="Directionality",h[h.PluralCase=20]="PluralCase",h[h.ExtraData=21]="ExtraData"}(cs||(cs={}));const jh=["zero","one","two","few","many"];const Vi="en-US",Qn={marker:"element"},eo={marker:"ICU"};var es;!function(h){h[h.SHIFT=2]="SHIFT",h[h.APPEND_EAGERLY=1]="APPEND_EAGERLY",h[h.COMMENT=2]="COMMENT"}(es||(es={}));let Vh=Vi;function Ja(h){et(h,"Expected localeId to be defined"),"string"==typeof h&&(Vh=h.toLowerCase().replace(/_/g,"-"))}function dy(h,p,F){const tt=p.insertBeforeIndex,ct=Array.isArray(tt)?tt[0]:tt;return null===ct?xc(h,0,F):$i(F[ct])}function g0(h,p,F,tt,ct){const vt=p.insertBeforeIndex;if(Array.isArray(vt)){let Tt=tt,zt=null;if(3&p.type||(zt=Tt,Tt=ct),null!==Tt&&-1===p.componentOffset)for(let Ht=1;Ht1)for(let F=h.length-2;F>=0;F--){const tt=h[F];v0(tt)||Bx(tt,p)&&null===jx(tt)&&Vx(tt,p.index)}}function v0(h){return!(64&h.type)}function Bx(h,p){return v0(p)||h.index>p.index}function jx(h){const p=h.insertBeforeIndex;return Array.isArray(p)?p[0]:p}function Vx(h,p){const F=h.insertBeforeIndex;Array.isArray(F)?F[0]=p:(gl(dy,g0),h.insertBeforeIndex=p)}function Av(h,p){const F=h.data[p];return null===F||"string"==typeof F?null:F.hasOwnProperty("currentCaseLViewIndex")?F:F.value}function Wx(h,p,F){const tt=Bg(h,F,64,null,null);return m0(p,tt),tt}function py(h,p){const F=p[h.currentCaseLViewIndex];return null===F?F:F<0?~F:F}function y0(h){return h>>>17}function _0(h){return(131070&h)>>>1}let Tv=0,Pv=0;function C0(h,p,F,tt){const ct=F[11];let Tt,vt=null;for(let zt=0;zt>>1,ei=p[++zt],fi=p[++zt];zu(ct,Cr(Be,F),null,null,ei,fi,null)}else switch(Ht){case eo:const Qt=p[++zt],ue=p[++zt];if(null===F[ue]){ls(F[ue]=dd(ct,Qt),F)}break;case Qn:const we=p[++zt],Be=p[++zt];if(null===F[Be]){ls(F[Be]=Bl(ct,we,null),F)}}}}function b0(h,p,F,tt,ct){for(let vt=0;vt>>2;switch(3&ue){case 1:const Be=F[++Qt],ei=F[++Qt],fi=h.data[we];"string"==typeof fi?zu(p[11],p[we],null,fi,Be,Ht,ei):co(h,fi,p,Be,Ht,p[11],ei,!1);break;case 0:const Si=p[we];null!==Si&&Is(p[11],Si,Ht);break;case 2:Kx(h,Av(h,we),p,Ht);break;case 3:w0(h,Av(h,we),tt,p)}}}}else{const Ht=F[vt+1];if(Ht>0&&3==(3&Ht)){const ue=Av(h,Ht>>>2);p[ue.currentCaseLViewIndex]<0&&w0(h,ue,tt,p)}}vt+=zt}}function w0(h,p,F,tt){let ct=tt[p.currentCaseLViewIndex];if(null!==ct){let vt=Tv;ct<0&&(ct=tt[p.currentCaseLViewIndex]=~ct,vt=-1),b0(h,tt,p.update[ct],F,vt)}}function Kx(h,p,F,tt){const ct=function Yx(h,p){let F=h.cases.indexOf(p);if(-1===F)switch(h.type){case 1:{const tt=function Ql(h,p){const F=Wi(p)(parseInt(h,10)),tt=jh[F];return void 0!==tt?tt:"other"}(p,function Tl(){return Vh}());F=h.cases.indexOf(tt),-1===F&&"other"!==tt&&(F=h.cases.indexOf("other"));break}case 0:F=h.cases.indexOf("other")}return-1===F?null:F}(p,tt);if(py(p,F)!==ct&&(E0(h,p,F),F[p.currentCaseLViewIndex]=null===ct?null:~ct,null!==ct)){const Tt=F[p.anchorIdx];Tt&&C0(h,p.create[ct],F,Tt)}}function E0(h,p,F){let tt=py(p,F);if(null!==tt){const ct=p.remove[tt];for(let vt=0;vt0){const zt=Cr(Tt,F);null!==zt&&Pp(F[11],zt)}else E0(h,Av(h,~Tt),F)}}}function Zx(){const h=[];let F,tt,p=-1;function vt(zt,Ht){p=0;const Qt=py(zt,Ht);tt=null!==Qt?zt.remove[Qt]:di}function Tt(){if(p0)return F[zt];{h.push(p,tt);const Ht=~zt;return vt(F[1].data[Ht],F),Tt()}}return 0===h.length?null:(tt=h.pop(),p=h.pop(),Tt())}return function ct(zt,Ht){for(F=Ht;h.length;)h.pop();return vt(zt.value,Ht),Tt}}const fy=/\ufffd(\d+):?\d*\ufffd/gi,qx=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Qx=/\ufffd(\d+)\ufffd/,D0=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Iv="\ufffd",Jx=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,tC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,eC=/\uE500/g;function nC(h,p,F,tt,ct,vt){const Tt=gs(),zt=[],Ht=[],Qt=[[]];ct=function lC(h,p){if(function aC(h){return-1===h}(p))return T0(h);{const F=h.indexOf(`:${p}${Iv}`)+2+p.toString().length,tt=h.search(new RegExp(`${Iv}\\/\\*\\d+:${p}${Iv}`));return T0(h.substring(F,tt))}}(ct,vt);const ue=function iC(h){return h.replace(eC," ")}(ct).split(tC);for(let we=0;weF.length&&F.push(Ht)}return{type:tt,mainBinding:ct,cases:p,values:F}}function Ty(h){if(!h)return[];let p=0;const F=[],tt=[],ct=/[{}]/g;let vt;for(ct.lastIndex=0;vt=ct.exec(h);){const zt=vt.index;if("}"==vt[0]){if(F.pop(),0==F.length){const Ht=h.substring(p,zt);D0.test(Ht)?tt.push(cC(Ht)):tt.push(Ht),p=zt+1}}else{if(0==F.length){const Ht=h.substring(p,zt);tt.push(Ht),p=zt+1}F.push("{")}}const Tt=h.substring(p);return tt.push(Tt),tt}function hC(h,p,F,tt,ct,vt,Tt,zt){const Ht=[],Qt=[],ue=[];p.cases.push(vt),p.create.push(Ht),p.remove.push(Qt),p.update.push(ue);const Be=Eo(Rp()).getInertBodyElement(Tt),ei=Bp(Be)||Be;return ei?I0(h,p,F,tt,Ht,Qt,ue,ei,ct,zt,0):0}function I0(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue){let we=0,Be=zt.firstChild;for(;Be;){const ei=Rc(h,F,1,null);switch(Be.nodeType){case Node.ELEMENT_NODE:const fi=Be,Si=fi.tagName.toLowerCase();if(ch.hasOwnProperty(Si)){Py(ct,Qn,Si,Ht,ei),h.data[ei]=Si;const bi=fi.attributes;for(let xn=0;xn>>es.SHIFT;let we=h[ue];null===we&&(we=h[ue]=Ht?ct.createComment(zt):du(ct,zt)),Qt&&null!==F&&Ha(ct,F,we,tt,!1)}})(ct,Ht.create,ue,we),ua(!0)}function Oy(){ua(!1)}function L0(h,p,F){Iy(h,p,F),Oy()}function R0(h,p){const F=vn();!function sC(h,p,F){const ct=qn().index,vt=[];if(h.firstCreatePass&&null===h.data[p]){for(let Tt=0;Tt0){const tt=h.data[F];b0(h,p,Array.isArray(tt)?tt:tt.update,Br()-Pv-1,Tv)}Tv=0,Pv=0}(vn(),pi(),h+22)}function N0(h,p={}){return function bC(h,p={}){let F=h;if(gC.test(h)){const tt={},ct=[0];F=F.replace(mC,(vt,Tt,zt)=>{const Ht=Tt||zt,Qt=tt[Ht]||[];if(Qt.length||(Ht.split("|").forEach(Si=>{const ki=Si.match(CC),Ni=ki?parseInt(ki[1],10):0,en=xC.test(Si);Qt.push([Ni,en,Si])}),tt[Ht]=Qt),!Qt.length)throw new Error(`i18n postprocess: unmatched placeholder - ${Ht}`);const ue=ct[ct.length-1];let we=0;for(let Si=0;Sip.hasOwnProperty(vt)?`${ct}${p[vt]}${Ht}`:tt),F=F.replace(yC,(tt,ct)=>p.hasOwnProperty(ct)?p[ct]:tt),F=F.replace(_C,(tt,ct)=>{if(p.hasOwnProperty(ct)){const vt=p[ct];if(!vt.length)throw new Error(`i18n postprocess: unmatched ICU - ${tt} with key: ${ct}`);return vt.shift()}return tt})),F}(h,p)}function Ly(h,p,F,tt,ct){if(h=w(h),Array.isArray(h))for(let vt=0;vt>20;if(xl(h)||!h.multi){const ei=new mn(Ht,ct,Hl),fi=Fy(zt,p,ct?ue:ue+Be,we);-1===fi?(qh(ar(Qt,Tt),vt,zt),Ry(vt,h,p.length),p.push(zt),Qt.directiveStart++,Qt.directiveEnd++,ct&&(Qt.providerIndexes+=1048576),F.push(ei),Tt.push(ei)):(F[fi]=ei,Tt[fi]=ei)}else{const ei=Fy(zt,p,ue+Be,we),fi=Fy(zt,p,ue,ue+Be),Si=ei>=0&&F[ei],ki=fi>=0&&F[fi];if(ct&&!ki||!ct&&!Si){qh(ar(Qt,Tt),vt,zt);const Ni=function DC(h,p,F,tt,ct){const vt=new mn(h,F,Hl);return vt.multi=[],vt.index=p,vt.componentProviders=0,B0(vt,ct,tt&&!F),vt}(ct?SC:EC,F.length,ct,tt,Ht);!ct&&ki&&(F[fi].providerFactory=Ni),Ry(vt,h,p.length,0),p.push(zt),Qt.directiveStart++,Qt.directiveEnd++,ct&&(Qt.providerIndexes+=1048576),F.push(Ni),Tt.push(Ni)}else{Ry(vt,h,ei>-1?ei:fi,B0(F[ct?fi:ei],Ht,!ct&&tt))}!ct&&tt&&ki&&F[fi].componentProviders++}}}function Ry(h,p,F,tt){const ct=xl(p),vt=function Wm(h){return!!h.useClass}(p);if(ct||vt){const Ht=(vt?w(p.useClass):p).prototype.ngOnDestroy;if(Ht){const Qt=h.destroyHooks||(h.destroyHooks=[]);if(!ct&&p.multi){const ue=Qt.indexOf(F);-1===ue?Qt.push(F,[tt,Ht]):Qt[ue+1].push(tt,Ht)}else Qt.push(F,Ht)}}}function B0(h,p,F){return F&&h.componentProviders++,h.multi.push(p)-1}function Fy(h,p,F,tt){for(let ct=F;ct{F.providersResolver=(tt,ct)=>function wC(h,p,F){const tt=vn();if(tt.firstCreatePass){const ct=pr(h);Ly(F,tt.data,tt.blueprint,ct,!0),Ly(p,tt.data,tt.blueprint,ct,!1)}}(tt,ct?ct(h):h,p)}}class hm{}class V0{}function z0(h,p){return new By(h,p??null)}const MC=z0;class By extends hm{constructor(p,F){super(),this._parent=F,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Yg(this);const tt=Qe(p);this._bootstrapComponents=Ns(tt.bootstrap),this._r3Injector=Iu(p,F,[{provide:hm,useValue:this},{provide:Xa,useValue:this.componentFactoryResolver}],R(p),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(p)}get injector(){return this._r3Injector}destroy(){const p=this._r3Injector;!p.destroyed&&p.destroy(),this.destroyCbs.forEach(F=>F()),this.destroyCbs=null}onDestroy(p){this.destroyCbs.push(p)}}class gy extends V0{constructor(p){super(),this.moduleType=p}create(p){return new By(this.moduleType,p)}}class AC extends hm{constructor(p,F,tt){super(),this.componentFactoryResolver=new Yg(this),this.instance=null;const ct=new mg([...p,{provide:hm,useValue:this},{provide:Xa,useValue:this.componentFactoryResolver}],F||Dd(),tt,new Set(["environment"]));this.injector=ct,ct.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(p){this.injector.onDestroy(p)}}function jy(h,p,F=null){return new AC(h,p,F).injector}class my{constructor(p){this._injector=p,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){const F=Vp(0,p.type),tt=F.length>0?jy([F],this._injector,`Standalone[${p.type.name}]`):null;this.cachedInjectors.set(p.id,tt)}return this.cachedInjectors.get(p.id)}ngOnDestroy(){try{for(const p of this.cachedInjectors.values())null!==p&&p.destroy()}finally{this.cachedInjectors.clear()}}}function U0(h){h.getStandaloneInjector=p=>p.get(my).getOrCreateStandaloneInjector(h)}function Vy(h){const p=ms(h);if(null===p)return null;if(void 0===p.component){const F=p.lView;if(null===F)return null;p.component=function pl(h,p){const F=p[1].data[h],{directiveStart:tt,componentOffset:ct}=F;return ct>-1?p[tt+ct]:null}(p.nodeIndex,F)}return p.component}function W0(h){!function LC(h){if(typeof Element<"u"&&!(h instanceof Element))throw new Error("Expecting instance of DOM Element")}(h);const p=ms(h),F=p?p.lView:null;return null===F?null:F[8]}function H0(h){const p=ms(h);let tt,F=p?p.lView:null;if(null===F)return null;for(;2===F[1].type&&(tt=Qs(F));)F=tt;return 256&F[2]?null:F[8]}function G0(h){const p=hu(h);return null!==p?[gc(p)]:[]}function X0(h){const p=ms(h),F=p?p.lView:null;if(null===F)return Bs.NULL;const tt=F[1].data[p.nodeIndex];return new ll(tt,F)}function $0(h){if(h instanceof Text)return[];const p=ms(h),F=p?p.lView:null;if(null===F)return[];const tt=F[1],ct=p.nodeIndex;return tt?.data[ct]?(void 0===p.directives&&(p.directives=wa(ct,F)),null===p.directives?[]:[...p.directives]):[]}function PC(h){const{constructor:p}=h;if(!p)throw new Error("Unable to find the instance constructor");const F=Ae(p);if(F)return{inputs:F.inputs,outputs:F.outputs,encapsulation:F.encapsulation,changeDetection:F.onPush?sn.OnPush:sn.Default};const tt=Fe(p);return tt?{inputs:tt.inputs,outputs:tt.outputs}:null}function zy(h){return ms(h).native}function K0(h){const p=ms(h),F=null===p?null:p.lView;if(null===F)return[];const tt=F[1],ct=F[7],vt=tt.cleanup,Tt=[];if(vt&&ct)for(let zt=0;zt=0?"dom":"output",Si="boolean"==typeof ei&&ei;h==we&&Tt.push({element:h,name:ue,callback:Be,useCapture:Si,type:fi})}}return Tt.sort(OC),Tt}function OC(h,p){return h.name==p.name?0:h.name{const ct=h;null!==p&&(ct.hasOwnProperty("decorators")&&void 0!==ct.decorators?ct.decorators.push(...p):ct.decorators=p),null!==F&&(ct.ctorParameters=F),null!==tt&&(ct.hasOwnProperty("propDecorators")&&void 0!==ct.propDecorators?ct.propDecorators={...ct.propDecorators,...tt}:ct.propDecorators=tt)})}function Z0(h,p,F){const tt=Un()+h,ct=pi();return ct[tt]===cn?Qa(ct,tt,F?p.call(F):p()):$u(ct,tt)}function q0(h,p,F,tt){return o_(pi(),Un(),h,p,F,tt)}function Q0(h,p,F,tt,ct){return a_(pi(),Un(),h,p,F,tt,ct)}function J0(h,p,F,tt,ct,vt){return l_(pi(),Un(),h,p,F,tt,ct,vt)}function t_(h,p,F,tt,ct,vt,Tt){return c_(pi(),Un(),h,p,F,tt,ct,vt,Tt)}function e_(h,p,F,tt,ct,vt,Tt,zt){const Ht=Un()+h,Qt=pi(),ue=ia(Qt,Ht,F,tt,ct,vt);return Vs(Qt,Ht+4,Tt)||ue?Qa(Qt,Ht+5,zt?p.call(zt,F,tt,ct,vt,Tt):p(F,tt,ct,vt,Tt)):$u(Qt,Ht+5)}function i_(h,p,F,tt,ct,vt,Tt,zt,Ht){const Qt=Un()+h,ue=pi(),we=ia(ue,Qt,F,tt,ct,vt);return Sl(ue,Qt+4,Tt,zt)||we?Qa(ue,Qt+6,Ht?p.call(Ht,F,tt,ct,vt,Tt,zt):p(F,tt,ct,vt,Tt,zt)):$u(ue,Qt+6)}function n_(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt){const ue=Un()+h,we=pi();let Be=ia(we,ue,F,tt,ct,vt);return Jd(we,ue+4,Tt,zt,Ht)||Be?Qa(we,ue+7,Qt?p.call(Qt,F,tt,ct,vt,Tt,zt,Ht):p(F,tt,ct,vt,Tt,zt,Ht)):$u(we,ue+7)}function r_(h,p,F,tt,ct,vt,Tt,zt,Ht,Qt,ue){const we=Un()+h,Be=pi(),ei=ia(Be,we,F,tt,ct,vt);return ia(Be,we+4,Tt,zt,Ht,Qt)||ei?Qa(Be,we+8,ue?p.call(ue,F,tt,ct,vt,Tt,zt,Ht,Qt):p(F,tt,ct,vt,Tt,zt,Ht,Qt)):$u(Be,we+8)}function s_(h,p,F,tt){return h_(pi(),Un(),h,p,F,tt)}function kv(h,p){const F=h[p];return F===cn?void 0:F}function o_(h,p,F,tt,ct,vt){const Tt=p+F;return Vs(h,Tt,ct)?Qa(h,Tt+1,vt?tt.call(vt,ct):tt(ct)):kv(h,Tt+1)}function a_(h,p,F,tt,ct,vt,Tt){const zt=p+F;return Sl(h,zt,ct,vt)?Qa(h,zt+2,Tt?tt.call(Tt,ct,vt):tt(ct,vt)):kv(h,zt+2)}function l_(h,p,F,tt,ct,vt,Tt,zt){const Ht=p+F;return Jd(h,Ht,ct,vt,Tt)?Qa(h,Ht+3,zt?tt.call(zt,ct,vt,Tt):tt(ct,vt,Tt)):kv(h,Ht+3)}function c_(h,p,F,tt,ct,vt,Tt,zt,Ht){const Qt=p+F;return ia(h,Qt,ct,vt,Tt,zt)?Qa(h,Qt+4,Ht?tt.call(Ht,ct,vt,Tt,zt):tt(ct,vt,Tt,zt)):kv(h,Qt+4)}function h_(h,p,F,tt,ct,vt){let Tt=p+F,zt=!1;for(let Ht=0;Ht=0;F--){const tt=p[F];if(h===tt.name)return tt}}(p,F.pipeRegistry),F.data[ct]=tt,tt.onDestroy&&(F.destroyHooks||(F.destroyHooks=[])).push(ct,tt.onDestroy)):tt=F.data[ct];const vt=tt.factory||(tt.factory=mr(tt.type)),Tt=Ct(Hl);try{const zt=ga(!1),Ht=vt();return ga(zt),im(F,pi(),ct,Ht),Ht}finally{Ct(Tt)}}function d_(h,p,F){const tt=h+22,ct=pi(),vt=Fn(ct,tt);return Lv(ct,tt)?o_(ct,Un(),p,vt.transform,F,vt):vt.transform(F)}function p_(h,p,F,tt){const ct=h+22,vt=pi(),Tt=Fn(vt,ct);return Lv(vt,ct)?a_(vt,Un(),p,Tt.transform,F,tt,Tt):Tt.transform(F,tt)}function f_(h,p,F,tt,ct){const vt=h+22,Tt=pi(),zt=Fn(Tt,vt);return Lv(Tt,vt)?l_(Tt,Un(),p,zt.transform,F,tt,ct,zt):zt.transform(F,tt,ct)}function g_(h,p,F,tt,ct,vt){const Tt=h+22,zt=pi(),Ht=Fn(zt,Tt);return Lv(zt,Tt)?c_(zt,Un(),p,Ht.transform,F,tt,ct,vt,Ht):Ht.transform(F,tt,ct,vt)}function m_(h,p,F){const tt=h+22,ct=pi(),vt=Fn(ct,tt);return Lv(ct,tt)?h_(ct,Un(),p,vt.transform,F,vt):vt.transform.apply(vt,F)}function Lv(h,p){return h[1].data[p].pure}my.\u0275prov=nt({token:my,providedIn:"environment",factory:()=>new my(Se(Pc))});class FC extends pt.x{constructor(p=!1){super(),this.__isAsync=p}emit(p){super.next(p)}subscribe(p,F,tt){let ct=p,vt=F||(()=>null),Tt=tt;if(p&&"object"==typeof p){const Ht=p;ct=Ht.next?.bind(Ht),vt=Ht.error?.bind(Ht),Tt=Ht.complete?.bind(Ht)}this.__isAsync&&(vt=Uy(vt),ct&&(ct=Uy(ct)),Tt&&(Tt=Uy(Tt)));const zt=super.subscribe({next:ct,error:vt,complete:Tt});return p instanceof t.w0&&p.add(zt),zt}}function Uy(h){return p=>{setTimeout(h,void 0,p)}}const zh=FC;function NC(){return this._results[$l()]()}class vy{get changes(){return this._changes||(this._changes=new zh)}constructor(p=!1){this._emitDistinctChangesOnly=p,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const F=$l(),tt=vy.prototype;tt[F]||(tt[F]=NC)}get(p){return this._results[p]}map(p){return this._results.map(p)}filter(p){return this._results.filter(p)}find(p){return this._results.find(p)}reduce(p,F){return this._results.reduce(p,F)}forEach(p){this._results.forEach(p)}some(p){return this._results.some(p)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(p,F){const tt=this;tt.dirty=!1;const ct=Xt(p);(this._changesDetected=!function Lt(h,p,F){if(h.length!==p.length)return!1;for(let tt=0;tt0;)this.remove(this.length-1)}get(p){const F=y_(this._lContainer);return null!==F&&F[p]||null}get length(){return this._lContainer.length-10}createEmbeddedView(p,F,tt){let ct,vt;"number"==typeof tt?ct=tt:null!=tt&&(ct=tt.index,vt=tt.injector);const Tt=p.createEmbeddedView(F||{},vt);return this.insert(Tt,ct),Tt}createComponent(p,F,tt,ct,vt){const Tt=p&&!At(p);let zt;if(Tt)zt=F;else{const we=F||{};zt=we.index,tt=we.injector,ct=we.projectableNodes,vt=we.environmentInjector||we.ngModuleRef}const Ht=Tt?p:new Ah(Ae(p)),Qt=tt||this.parentInjector;if(!vt&&null==Ht.ngModule){const Be=(Tt?Qt:this.parentInjector).get(Pc,null);Be&&(vt=Be)}const ue=Ht.create(Qt,ct,void 0,vt);return this.insert(ue.hostView,zt),ue}insert(p,F){const tt=p._lView,ct=tt[1];if(function Ws(h){return je(h[3])}(tt)){const ue=this.indexOf(p);if(-1!==ue)this.detach(ue);else{const we=tt[3],Be=new v_(we,we[6],we[3]);Be.detach(Be.indexOf(p))}}const vt=this._adjustIndex(F),Tt=this._lContainer;zv(ct,tt,Tt,vt);const zt=Tp(vt,Tt),Ht=tt[11],Qt=oh(Ht,Tt[7]);return null!==Qt&&function pd(h,p,F,tt,ct,vt){tt[0]=ct,tt[6]=p,fu(h,tt,F,1,ct,vt)}(ct,Tt[6],Ht,tt,Qt,zt),p.attachToViewContainerRef(),re(Wy(Tt),vt,p),p}move(p,F){return this.insert(p,F)}indexOf(p){const F=y_(this._lContainer);return null!==F?F.indexOf(p):-1}remove(p){const F=this._adjustIndex(p,-1),tt=Dp(this._lContainer,F);tt&&(_e(Wy(this._lContainer),F),Mm(tt[1],tt))}detach(p){const F=this._adjustIndex(p,-1),tt=Dp(this._lContainer,F);return tt&&null!=_e(Wy(this._lContainer),F)?new ea(tt):null}_adjustIndex(p,F=0){return p??this.length+F}};function y_(h){return h[8]}function Wy(h){return h[8]||(h[8]=[])}function __(h,p){let F;const tt=p[h.index];if(je(tt))F=tt;else{let ct;if(8&h.type)ct=$i(tt);else{const vt=p[11];ct=vt.createComment("");const Tt=Cn(h,p);Ha(vt,oh(vt,Tt),ct,function pu(h,p){return h.nextSibling(p)}(vt,Tt),!1)}p[h.index]=F=Gl(tt,p,ct,h),Uu(p,F)}return new v_(F,h,p)}class Hy{constructor(p){this.queryList=p,this.matches=null}clone(){return new Hy(this.queryList)}setDirty(){this.queryList.setDirty()}}class Gy{constructor(p=[]){this.queries=p}createEmbeddedView(p){const F=p.queries;if(null!==F){const tt=null!==p.contentQueries?p.contentQueries[0]:F.length,ct=[];for(let vt=0;vt0)tt.push(Tt[zt/2]);else{const Qt=vt[zt+1],ue=p[-Ht];for(let we=10;we=0;h--){const{moduleType:p,ngModule:F}=Fv[h];F.declarations&&F.declarations.every(k_)&&(Fv.splice(h,1),eb(p,F))}}finally{Yy=!1}}}function k_(h){return Array.isArray(h)?h.every(k_):!!w(h)}function L_(h,p={}){R_(h,p),void 0!==p.id&&xp(h,p.id),function QC(h,p){Fv.push({moduleType:h,ngModule:p})}(h,p)}function R_(h,p,F=!1){const tt=Xt(p.declarations||di);let ct=null;Object.defineProperty(h,zn,{configurable:!0,get:()=>(null===ct&&(ct=$n().compileNgModule(Ia,`ng:///${h.name}/\u0275mod.js`,{type:h,bootstrap:Xt(p.bootstrap||di).map(w),declarations:tt.map(w),imports:Xt(p.imports||di).map(w).map(j_),exports:Xt(p.exports||di).map(w).map(j_),schemas:p.schemas?Xt(p.schemas):null,id:p.id||null}),ct.schemas||(ct.schemas=[])),ct)});let vt=null;Object.defineProperty(h,Ji,{get:()=>{if(null===vt){const zt=$n();vt=zt.compileFactory(Ia,`ng:///${h.name}/\u0275fac.js`,{name:h.name,type:h,deps:iu(h),target:zt.FactoryTarget.NgModule,typeArgumentCount:0})}return vt},configurable:!1});let Tt=null;Object.defineProperty(h,jt,{get:()=>{if(null===Tt){const zt={name:h.name,type:h,providers:p.providers||di,imports:[(p.imports||di).map(w),(p.exports||di).map(w)]};Tt=$n().compileInjector(Ia,`ng:///${h.name}/\u0275inj.js`,zt)}return Tt},configurable:!1})}let _y=new WeakMap,qy=new WeakMap;function tb(){_y=new WeakMap,qy=new WeakMap,Fv.length=0}function eb(h,p){const F=Xt(p.declarations||di),tt=zf(h);F.forEach(ct=>{if((ct=w(ct)).hasOwnProperty(Fi)){Qy(Ae(ct),tt)}else!ct.hasOwnProperty(Hi)&&!ct.hasOwnProperty(Dn)&&(ct.ngSelectorScope=h)})}function Qy(h,p){h.directiveDefs=()=>Array.from(p.compilation.directives).map(F=>F.hasOwnProperty(Fi)?Ae(F):Fe(F)).filter(F=>!!F),h.pipeDefs=()=>Array.from(p.compilation.pipes).map(F=>Ze(F)),h.schemas=p.schemas,h.tView=null}function zf(h){if(I_(h))return function ib(h){const p=Qe(h,!0);if(null!==p.transitiveCompileScopes)return p.transitiveCompileScopes;const F={schemas:p.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Ns(p.imports).forEach(tt=>{const ct=zf(tt);ct.exported.directives.forEach(vt=>F.compilation.directives.add(vt)),ct.exported.pipes.forEach(vt=>F.compilation.pipes.add(vt))}),Ns(p.declarations).forEach(tt=>{Ze(tt)?F.compilation.pipes.add(tt):F.compilation.directives.add(tt)}),Ns(p.exports).forEach(tt=>{const ct=tt;if(I_(ct)){const vt=zf(ct);vt.exported.directives.forEach(Tt=>{F.compilation.directives.add(Tt),F.exported.directives.add(Tt)}),vt.exported.pipes.forEach(Tt=>{F.compilation.pipes.add(Tt),F.exported.pipes.add(Tt)})}else Ze(ct)?F.exported.pipes.add(ct):F.exported.directives.add(ct)}),p.transitiveCompileScopes=F,F}(h);if(ri(h)){if(null!==(Ae(h)||Fe(h)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([h]),pipes:new Set}};if(null!==Ze(h))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([h])}}}throw new Error(`${h.name} does not have a module def (\u0275mod property)`)}function j_(h){return P_(h)?h.ngModule:h}let Jy=0;function V_(h,p){let F=null;(function Zs(h,p){hc(p)&&(Ca.set(h,p),cc.add(h))})(h,p),U_(h,p),Object.defineProperty(h,Fi,{get:()=>{if(null===F){const tt=$n();if(hc(p)){const Qt=[`Component '${h.name}' is not resolved:`];throw p.templateUrl&&Qt.push(` - templateUrl: ${p.templateUrl}`),p.styleUrls&&p.styleUrls.length&&Qt.push(` - styleUrls: ${JSON.stringify(p.styleUrls)}`),Qt.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(Qt.join("\n"))}const ct=function ZC(){return dm}();let vt=p.preserveWhitespaces;void 0===vt&&(vt=null!==ct&&void 0!==ct.preserveWhitespaces&&ct.preserveWhitespaces);let Tt=p.encapsulation;void 0===Tt&&(Tt=null!==ct&&void 0!==ct.defaultEncapsulation?ct.defaultEncapsulation:Ee.Emulated);const zt=p.templateUrl||`ng:///${h.name}/template.html`,Ht={...W_(h,p),typeSourceSpan:tt.createParseSourceSpan("Component",h.name,zt),template:p.template||"",preserveWhitespaces:vt,styles:p.styles||di,animations:p.animations,declarations:[],changeDetection:p.changeDetection,encapsulation:Tt,interpolation:p.interpolation,viewProviders:p.viewProviders||null,isStandalone:!!p.standalone};Jy++;try{if(Ht.usesInheritance&&H_(h),F=tt.compileComponent(Ia,zt,Ht),p.standalone){const Qt=Xt(p.imports||di),{directiveDefs:ue,pipeDefs:we}=function rb(h,p){let F=null,tt=null;return{directiveDefs:()=>{if(null===F){F=[Ae(h)];const Tt=new Set;for(const zt of p){const Ht=w(zt);if(!Tt.has(Ht))if(Tt.add(Ht),Qe(Ht)){const Qt=zf(Ht);for(const ue of Qt.exported.directives){const we=Ae(ue)||Fe(ue);we&&!Tt.has(ue)&&(Tt.add(ue),F.push(we))}}else{const Qt=Ae(Ht)||Fe(Ht);Qt&&F.push(Qt)}}}return F},pipeDefs:()=>{if(null===tt){tt=[];const Tt=new Set;for(const zt of p){const Ht=w(zt);if(!Tt.has(Ht))if(Tt.add(Ht),Qe(Ht)){const Qt=zf(Ht);for(const ue of Qt.exported.pipes){const we=Ze(ue);we&&!Tt.has(ue)&&(Tt.add(ue),tt.push(we))}}else{const Qt=Ze(Ht);Qt&&tt.push(Qt)}}}return tt}}}(h,Qt);F.directiveDefs=ue,F.pipeDefs=we,F.dependencies=()=>Qt.map(w)}}finally{Jy--}if(0===Jy&&O_(),function sb(h){return void 0!==h.ngSelectorScope}(h)){const Qt=zf(h.ngSelectorScope);Qy(F,Qt)}if(p.schemas){if(!p.standalone)throw new Error(`The 'schemas' was specified for the ${j(h)} but is only valid on a component that is standalone.`);F.schemas=p.schemas}else p.standalone&&(F.schemas=[])}return F},configurable:!1})}function t0(h,p){let F=null;U_(h,p||{}),Object.defineProperty(h,Hi,{get:()=>{if(null===F){const tt=z_(h,p||{});F=$n().compileDirective(Ia,tt.sourceMapUrl,tt.metadata)}return F},configurable:!1})}function z_(h,p){const F=h&&h.name,tt=`ng:///${F}/\u0275dir.js`,ct=$n(),vt=W_(h,p);return vt.typeSourceSpan=ct.createParseSourceSpan("Directive",F,tt),vt.usesInheritance&&H_(h),{metadata:vt,sourceMapUrl:tt}}function U_(h,p){let F=null;Object.defineProperty(h,Ji,{get:()=>{if(null===F){const tt=z_(h,p),ct=$n();F=ct.compileFactory(Ia,`ng:///${h.name}/\u0275fac.js`,{name:tt.metadata.name,type:tt.metadata.type,typeArgumentCount:0,deps:iu(h),target:ct.FactoryTarget.Directive})}return F},configurable:!1})}function ob(h){return Object.getPrototypeOf(h.prototype)===Object.prototype}function W_(h,p){const F=En(),tt=F.ownPropMetadata(h);return{name:h.name,type:h,selector:void 0!==p.selector?p.selector:null,host:p.host||Ke,propMetadata:tt,inputs:p.inputs||di,outputs:p.outputs||di,queries:G_(h,tt,X_),lifecycle:{usesOnChanges:F.hasLifecycleHook(h,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!ob(h),exportAs:cb(p.exportAs),providers:p.providers||null,viewQueries:G_(h,tt,$_),isStandalone:!!p.standalone,hostDirectives:p.hostDirectives?.map(ct=>"function"==typeof ct?{directive:ct}:ct)||null}}function H_(h){const p=Object.prototype;let F=Object.getPrototypeOf(h.prototype).constructor;for(;F&&F!==p;)!Fe(F)&&!Ae(F)&&ub(F)&&t0(F,null),F=Object.getPrototypeOf(F)}function ab(h){return"string"==typeof h?Y_(h):w(h)}function lb(h,p){return{propertyName:h,predicate:ab(p.selector),descendants:p.descendants,first:p.first,read:p.read?p.read:null,static:!!p.static,emitDistinctChangesOnly:!!p.emitDistinctChangesOnly}}function G_(h,p,F){const tt=[];for(const ct in p)if(p.hasOwnProperty(ct)){const vt=p[ct];vt.forEach(Tt=>{if(F(Tt)){if(!Tt.selector)throw new Error(`Can't construct a query for the property "${ct}" of "${j(h)}" since the query selector wasn't defined.`);if(vt.some(K_))throw new Error("Cannot combine @Input decorators with query decorators");tt.push(lb(ct,Tt))}})}return tt}function cb(h){return void 0===h?null:Y_(h)}function X_(h){const p=h.ngMetadataName;return"ContentChild"===p||"ContentChildren"===p}function $_(h){const p=h.ngMetadataName;return"ViewChild"===p||"ViewChildren"===p}function K_(h){return"Input"===h.ngMetadataName}function Y_(h){return h.split(",").map(p=>p.trim())}const hb=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function ub(h){const p=En();if(hb.some(tt=>p.hasLifecycleHook(h,tt)))return!0;const F=p.propMetadata(h);for(const tt in F){const ct=F[tt];for(let vt=0;vt{if(null===tt){const ct=q_(h,p),vt=$n(ct.type);tt=vt.compileFactory(Ia,`ng:///${ct.name}/\u0275fac.js`,{name:ct.name,type:ct.type,typeArgumentCount:0,deps:iu(h),target:vt.FactoryTarget.Pipe})}return tt},configurable:!1}),Object.defineProperty(h,Dn,{get:()=>{if(null===F){const ct=q_(h,p);F=$n(ct.type).compilePipe(Ia,`ng:///${ct.name}/\u0275pipe.js`,ct)}return F},configurable:!1})}function q_(h,p){return{type:h,name:h.name,pipeName:p.name,pure:void 0===p.pure||p.pure,isStandalone:!!p.standalone}}const Q_=Ks("Directive",(h={})=>h,void 0,void 0,(h,p)=>t0(h,p)),db=Ks("Component",(h={})=>({changeDetection:sn.Default,...h}),Q_,void 0,(h,p)=>V_(h,p)),pb=Ks("Pipe",h=>({pure:!0,...h}),void 0,void 0,(h,p)=>Z_(h,p)),fb=Qr("Input",h=>({bindingPropertyName:h})),gb=Qr("Output",h=>({bindingPropertyName:h})),mb=Qr("HostBinding",h=>({hostPropertyName:h})),vb=Qr("HostListener",(h,p)=>({eventName:h,args:p})),yb=Ks("NgModule",h=>h,void 0,void 0,(h,p)=>L_(h,p));function xy(...h){}const J_=new Bn("Application Initializer");class Zu{constructor(p){this.appInits=p,this.resolve=xy,this.reject=xy,this.initialized=!1,this.done=!1,this.donePromise=new Promise((F,tt)=>{this.resolve=F,this.reject=tt})}runInitializers(){if(this.initialized)return;const p=[],F=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let tt=0;tt{ct.subscribe({complete:Tt,error:zt})});p.push(vt)}}Promise.all(p).then(()=>{F()}).catch(tt=>{this.reject(tt)}),0===p.length&&F(),this.initialized=!0}}Zu.\u0275fac=function(p){return new(p||Zu)(Se(J_,8))},Zu.\u0275prov=nt({token:Zu,factory:Zu.\u0275fac,providedIn:"root"});const tx=new Bn("AppId",{providedIn:"root",factory:ex});function ex(){return`${e0()}${e0()}${e0()}`}const _b={provide:tx,useFactory:ex,deps:[]};function e0(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ix=new Bn("Platform Initializer"),xb=new Bn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),nx=new Bn("appBootstrapListener"),Cb=new Bn("Application Packages Root URL"),bb=new Bn("AnimationModuleType");class pm{log(p){console.log(p)}warn(p){console.warn(p)}}pm.\u0275fac=function(p){return new(p||pm)},pm.\u0275prov=nt({token:pm,factory:pm.\u0275fac,providedIn:"platform"});const Cy=new Bn("LocaleId",{providedIn:"root",factory:()=>_i(Cy,_t.Optional|_t.SkipSelf)||function wb(){return typeof $localize<"u"&&$localize.locale||Vi}()}),Eb=new Bn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),Sb=new Bn("Translations"),Db=new Bn("TranslationsFormat");var i0;!function(h){h[h.Error=0]="Error",h[h.Warning=1]="Warning",h[h.Ignore=2]="Ignore"}(i0||(i0={}));class rx{constructor(p,F){this.ngModuleFactory=p,this.componentFactories=F}}class fm{compileModuleSync(p){return new gy(p)}compileModuleAsync(p){return Promise.resolve(this.compileModuleSync(p))}compileModuleAndAllComponentsSync(p){const F=this.compileModuleSync(p),ct=Ns(Qe(p).declarations).reduce((vt,Tt)=>{const zt=Ae(Tt);return zt&&vt.push(new Ah(zt)),vt},[]);return new rx(F,ct)}compileModuleAndAllComponentsAsync(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}clearCache(){}clearCacheFor(p){}getModuleId(p){}}fm.\u0275fac=function(p){return new(p||fm)},fm.\u0275prov=nt({token:fm,factory:fm.\u0275fac,providedIn:"root"});const sx=new Bn("compilerOptions");class Mb{}function Ab(h){Fc(dl(h)),G0(h).forEach(p=>Dl(p))}let ax=!1;function Tb(){ax||(ax=!0,Jl("\u0275setProfiler",vr),Jl("getDirectiveMetadata",PC),Jl("getComponent",Vy),Jl("getContext",W0),Jl("getListeners",K0),Jl("getOwningComponent",H0),Jl("getHostElement",zy),Jl("getInjector",X0),Jl("getRootComponents",G0),Jl("getDirectives",$0),Jl("applyChanges",Ab))}function Jl(h,p){if(typeof COMPILED>"u"||!COMPILED){const F=Zt;if(F){let tt=F.ng;tt||(tt=F.ng={}),tt[h]=p}}}const Pb=Promise.resolve(0);function n0(h){typeof Zone>"u"?Pb.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class tc{constructor({enableLongStackTrace:p=!1,shouldCoalesceEventChangeDetection:F=!1,shouldCoalesceRunChangeDetection:tt=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zh(!1),this.onMicrotaskEmpty=new zh(!1),this.onStable=new zh(!1),this.onError=new zh(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();const ct=this;ct._nesting=0,ct._outer=ct._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(ct._inner=ct._inner.fork(new Zone.TaskTrackingZoneSpec)),p&&Zone.longStackTraceZoneSpec&&(ct._inner=ct._inner.fork(Zone.longStackTraceZoneSpec)),ct.shouldCoalesceEventChangeDetection=!tt&&F,ct.shouldCoalesceRunChangeDetection=tt,ct.lastRequestAnimationFrameId=-1,ct.nativeRequestAnimationFrame=function Ib(){let h=Zt.requestAnimationFrame,p=Zt.cancelAnimationFrame;if(typeof Zone<"u"&&h&&p){const F=h[Zone.__symbol__("OriginalDelegate")];F&&(h=F);const tt=p[Zone.__symbol__("OriginalDelegate")];tt&&(p=tt)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:p}}().nativeRequestAnimationFrame,function Lb(h){const p=()=>{!function kb(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(Zt,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,s0(h),h.isCheckStableRunning=!0,r0(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),s0(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(F,tt,ct,vt,Tt,zt)=>{try{return lx(h),F.invokeTask(ct,vt,Tt,zt)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===vt.type||h.shouldCoalesceRunChangeDetection)&&p(),cx(h)}},onInvoke:(F,tt,ct,vt,Tt,zt,Ht)=>{try{return lx(h),F.invoke(ct,vt,Tt,zt,Ht)}finally{h.shouldCoalesceRunChangeDetection&&p(),cx(h)}},onHasTask:(F,tt,ct,vt)=>{F.hasTask(ct,vt),tt===ct&&("microTask"==vt.change?(h._hasPendingMicrotasks=vt.microTask,s0(h),r0(h)):"macroTask"==vt.change&&(h.hasPendingMacrotasks=vt.macroTask))},onHandleError:(F,tt,ct,vt)=>(F.handleError(ct,vt),h.runOutsideAngular(()=>h.onError.emit(vt)),!1)})}(ct)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!tc.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(tc.isInAngularZone())throw new v(909,!1)}run(p,F,tt){return this._inner.run(p,F,tt)}runTask(p,F,tt,ct){const vt=this._inner,Tt=vt.scheduleEventTask("NgZoneEvent: "+ct,p,Ob,xy,xy);try{return vt.runTask(Tt,F,tt)}finally{vt.cancelTask(Tt)}}runGuarded(p,F,tt){return this._inner.runGuarded(p,F,tt)}runOutsideAngular(p){return this._outer.run(p)}}const Ob={};function r0(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function s0(h){h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId?h.hasPendingMicrotasks=!0:h.hasPendingMicrotasks=!1}function lx(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function cx(h){h._nesting--,r0(h)}class hx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zh,this.onMicrotaskEmpty=new zh,this.onStable=new zh,this.onError=new zh}run(p,F,tt){return p.apply(F,tt)}runGuarded(p,F,tt){return p.apply(F,tt)}runOutsideAngular(p){return p()}runTask(p,F,tt,ct){return p.apply(F,tt)}}const ux=new Bn(""),dx=new Bn("");class gm{constructor(p,F,tt){this._ngZone=p,this.registry=F,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,o0||(px(tt),tt.addToWindow(F)),this._watchAngularEvents(),p.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{tc.assertNotInAngularZone(),n0(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())n0(()=>{for(;0!==this._callbacks.length;){let p=this._callbacks.pop();clearTimeout(p.timeoutId),p.doneCb(this._didWork)}this._didWork=!1});else{let p=this.getPendingTasks();this._callbacks=this._callbacks.filter(F=>!F.updateCb||!F.updateCb(p)||(clearTimeout(F.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(p=>({source:p.source,creationLocation:p.creationLocation,data:p.data})):[]}addCallback(p,F,tt){let ct=-1;F&&F>0&&(ct=setTimeout(()=>{this._callbacks=this._callbacks.filter(vt=>vt.timeoutId!==ct),p(this._didWork,this.getPendingTasks())},F)),this._callbacks.push({doneCb:p,timeoutId:ct,updateCb:tt})}whenStable(p,F,tt){if(tt&&!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(p,F,tt),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(p){this.registry.registerApplication(p,this)}unregisterApplication(p){this.registry.unregisterApplication(p)}findProviders(p,F,tt){return[]}}gm.\u0275fac=function(p){return new(p||gm)(Se(tc),Se(Uf),Se(dx))},gm.\u0275prov=nt({token:gm,factory:gm.\u0275fac});class Uf{constructor(){this._applications=new Map}registerApplication(p,F){this._applications.set(p,F)}unregisterApplication(p){this._applications.delete(p)}unregisterAllApplications(){this._applications.clear()}getTestability(p){return this._applications.get(p)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(p,F=!0){return o0?.findTestabilityInTree(this,p,F)??null}}function px(h){o0=h}Uf.\u0275fac=function(p){return new(p||Uf)},Uf.\u0275prov=nt({token:Uf,factory:Uf.\u0275fac,providedIn:"platform"});let o0,dp=null;const a0=new Bn("AllowMultipleToken"),l0=new Bn("PlatformDestroyListeners"),qu=!1;function fx(h,p,F){const tt=new gy(F);return Promise.resolve(tt)}function gx(h){return h.isBoundToModule}class Rb{constructor(p,F){this.name=p,this.token=F}}function mx(h){if(dp&&!dp.get(a0,!1))throw new v(400,!1);dp=h;const p=h.get(pp);return vx(h),p}function vx(h){const p=h.get(ix,null);p&&p.forEach(F=>F())}function Nb(h){const{rootComponent:p,appProviders:F,platformProviders:tt}=h,ct=function Fb(h=[]){if(dp)return dp;const p=xx(h);return dp=p,vx(p),p}(tt),vt=bx("zone.js",Cx());return vt.run(()=>{const zt=jy([{provide:tc,useValue:vt},...F||[]],ct,"Environment Injector"),Ht=zt.get(Cl,null);let Qt;vt.runOutsideAngular(()=>{Qt=vt.onError.subscribe({next:Be=>{Ht.handleError(Be)}})});const ue=()=>zt.destroy(),we=ct.get(l0);return we.add(ue),zt.onDestroy(()=>{Qt.unsubscribe(),we.delete(ue)}),wx(Ht,vt,()=>{const Be=zt.get(Zu);return Be.runInitializers(),Be.donePromise.then(()=>{Ja(zt.get(Cy,Vi)||Vi);const fi=zt.get(Qu);return void 0!==p&&fi.bootstrap(p),fi})})})}function yx(h,p,F=[]){const tt=`Platform: ${p}`,ct=new Bn(tt);return(vt=[])=>{let Tt=by();if(!Tt||Tt.injector.get(a0,!1)){const zt=[...F,...vt,{provide:ct,useValue:!0}];h?h(zt):mx(xx(zt,tt))}return _x(ct)}}function _x(h){const p=by();if(!p)throw new v(401,!1);return p}function xx(h=[],p){return Bs.create({name:p,providers:[{provide:wu,useValue:"platform"},{provide:l0,useValue:new Set([()=>dp=null])},...h]})}function Bb(){by()?.destroy()}function by(){return dp?.get(pp)??null}class pp{constructor(p){this._injector=p,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(p,F){const tt=bx(F?.ngZone,Cx(F)),ct=[{provide:tc,useValue:tt}];return tt.run(()=>{const vt=Bs.create({providers:ct,parent:this.injector,name:p.moduleType.name}),Tt=p.create(vt),zt=Tt.injector.get(Cl,null);if(!zt)throw new v(402,!1);return tt.runOutsideAngular(()=>{const Ht=tt.onError.subscribe({next:Qt=>{zt.handleError(Qt)}});Tt.onDestroy(()=>{wy(this._modules,Tt),Ht.unsubscribe()})}),wx(zt,tt,()=>{const Ht=Tt.injector.get(Zu);return Ht.runInitializers(),Ht.donePromise.then(()=>(Ja(Tt.injector.get(Cy,Vi)||Vi),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(p,F=[]){const tt=Ex({},F);return fx(this.injector,0,p).then(ct=>this.bootstrapModuleFactory(ct,tt))}_moduleDoBootstrap(p){const F=p.injector.get(Qu);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(tt=>F.bootstrap(tt));else{if(!p.instance.ngDoBootstrap)throw new v(-403,!1);p.instance.ngDoBootstrap(F)}this._modules.push(p)}onDestroy(p){this._destroyListeners.push(p)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new v(404,!1);this._modules.slice().forEach(F=>F.destroy()),this._destroyListeners.forEach(F=>F());const p=this._injector.get(l0,null);p&&(p.forEach(F=>F()),p.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Cx(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}function bx(h,p){let F;return F="noop"===h?new hx:("zone.js"===h?void 0:h)||new tc(p),F}function wx(h,p,F){try{const tt=F();return Yl(tt)?tt.catch(ct=>{throw p.runOutsideAngular(()=>h.handleError(ct)),ct}):tt}catch(tt){throw p.runOutsideAngular(()=>h.handleError(tt)),tt}}function Ex(h,p){return h=Array.isArray(p)?p.reduce(Ex,h):{...h,...p}}pp.\u0275fac=function(p){return new(p||pp)(Se(Bs))},pp.\u0275prov=nt({token:pp,factory:pp.\u0275fac,providedIn:"platform"});class Qu{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(p,F,tt){this._zone=p,this._injector=F,this._exceptionHandler=tt,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const ct=new Y.y(Tt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Tt.next(this._stable),Tt.complete()})}),vt=new Y.y(Tt=>{let zt;this._zone.runOutsideAngular(()=>{zt=this._zone.onStable.subscribe(()=>{tc.assertNotInAngularZone(),n0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Tt.next(!0))})})});const Ht=this._zone.onUnstable.subscribe(()=>{tc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Tt.next(!1)}))});return()=>{zt.unsubscribe(),Ht.unsubscribe()}});this.isStable=(0,q.T)(ct,vt.pipe(function Z(h={}){const{connector:p=(()=>new pt.x),resetOnError:F=!0,resetOnComplete:tt=!0,resetOnRefCountZero:ct=!0}=h;return vt=>{let Tt,zt,Ht,Qt=0,ue=!1,we=!1;const Be=()=>{zt?.unsubscribe(),zt=void 0},ei=()=>{Be(),Tt=Ht=void 0,ue=we=!1},fi=()=>{const Si=Tt;ei(),Si?.unsubscribe()};return(0,G.e)((Si,ki)=>{Qt++,!we&&!ue&&Be();const Ni=Ht=Ht??p();ki.add(()=>{Qt--,0===Qt&&!we&&!ue&&(zt=$(fi,ct))}),Ni.subscribe(ki),!Tt&&Qt>0&&(Tt=new U.Hp({next:en=>Ni.next(en),error:en=>{we=!0,Be(),zt=$(ei,F,en),Ni.error(en)},complete:()=>{ue=!0,Be(),zt=$(ei,tt),Ni.complete()}}),(0,O.Xf)(Si).subscribe(Tt))})(vt)}}()))}bootstrap(p,F){const tt=p instanceof Su;if(!this._injector.get(Zu).done){!tt&&ri(p);throw new v(405,qu)}let vt;vt=tt?p:this._injector.get(Xa).resolveComponentFactory(p),this.componentTypes.push(vt.componentType);const Tt=gx(vt)?void 0:this._injector.get(hm),zt=F||vt.selector,Ht=vt.create(Bs.NULL,[],zt,Tt),Qt=Ht.location.nativeElement,ue=Ht.injector.get(ux,null);return ue?.registerApplication(Qt),Ht.onDestroy(()=>{this.detachView(Ht.hostView),wy(this.components,Ht),ue?.unregisterApplication(Qt)}),this._loadComponent(Ht),Ht}tick(){if(this._runningTick)throw new v(101,!1);try{this._runningTick=!0;for(let p of this._views)p.detectChanges()}catch(p){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(p))}finally{this._runningTick=!1}}attachView(p){const F=p;this._views.push(F),F.attachToAppRef(this)}detachView(p){const F=p;wy(this._views,F),F.detachFromAppRef()}_loadComponent(p){this.attachView(p.hostView),this.tick(),this.components.push(p);const F=this._injector.get(nx,[]);F.push(...this._bootstrapListeners),F.forEach(tt=>tt(p))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(p=>p()),this._views.slice().forEach(p=>p.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(p){return this._destroyListeners.push(p),()=>wy(this._destroyListeners,p)}destroy(){if(this._destroyed)throw new v(406,!1);const p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}function wy(h,p){const F=h.indexOf(p);F>-1&&h.splice(F,1)}function Vb(){return!1}function zb(){}function Ub(h){const p=uc(h);if(!p)throw Dx(h);return new gy(p)}function Wb(h){const p=uc(h);if(!p)throw Dx(h);return p}function Dx(h){return new Error(`No module with ID ${h} loaded`)}Qu.\u0275fac=function(p){return new(p||Qu)(Se(tc),Se(Pc),Se(Cl))},Qu.\u0275prov=nt({token:Qu,factory:Qu.\u0275fac,providedIn:"root"});class c0{}function Mx(h){return function Hb(h,p,F){if(gn(h)&&!F){const tt=tr(h.index,p);return new ea(tt,tt)}if(47&h.type){const tt=p[16];return new ea(tt,p)}return null}(qn(),pi(),16==(16&h))}c0.__NG_ELEMENT_ID__=Mx;class Ax extends c0{}class Gb extends Ax{}class Xb{constructor(p,F){this.name=p,this.callback=F}}function $b(h){return h.map(p=>p.nativeElement)}class h0{constructor(p){this.nativeNode=p}get parent(){const p=this.nativeNode.parentNode;return p?new Nv(p):null}get injector(){return X0(this.nativeNode)}get componentInstance(){const p=this.nativeNode;return p&&(Vy(p)||H0(p))}get context(){return Vy(this.nativeNode)||W0(this.nativeNode)}get listeners(){return K0(this.nativeNode).filter(p=>"dom"===p.type)}get references(){return function IC(h){const p=ms(h);if(null===p)return{};if(void 0===p.localRefs){const F=p.lView;if(null===F)return{};p.localRefs=function Ep(h,p){const F=h[1].data[p];if(F&&F.localNames){const tt={};let ct=F.index+1;for(let vt=0;vt1){let ue=Ht[1];for(let we=1;wep[vt]=!0),p}get childNodes(){const p=this.nativeNode.childNodes,F=[];for(let tt=0;tt{if(vt.name===p){const Tt=vt.callback;Tt.call(tt,F),ct.push(Tt)}}),"function"==typeof tt.eventListeners&&tt.eventListeners(p).forEach(vt=>{if(-1!==vt.toString().indexOf("__ngUnwrap__")){const Tt=vt("__ngUnwrap__");return-1===ct.indexOf(Tt)&&Tt.call(tt,F)}})}}function Yb(h){return"string"==typeof h||"boolean"==typeof h||"number"==typeof h||null===h}function Tx(h,p,F,tt){const ct=ms(h.nativeNode),vt=ct?ct.lView:null;if(null!==vt){Wf(vt[1].data[ct.nodeIndex],vt,p,F,tt,h.nativeNode)}else d0(h.nativeNode,p,F,tt)}function Wf(h,p,F,tt,ct,vt){const Tt=function Rr(h,p){const F=null===h?-1:h.index;return-1!==F?$i(p[F]):null}(h,p);if(11&h.type){if(u0(Tt,F,tt,ct,vt),gn(h)){const Ht=tr(h.index,p);Ht&&Ht[1].firstChild&&Wf(Ht[1].firstChild,Ht,F,tt,ct,vt)}else h.child&&Wf(h.child,p,F,tt,ct,vt),Tt&&d0(Tt,F,tt,ct);const zt=p[h.index];je(zt)&&Px(zt,F,tt,ct,vt)}else if(4&h.type){const zt=p[h.index];u0(zt[7],F,tt,ct,vt),Px(zt,F,tt,ct,vt)}else if(16&h.type){const zt=p[16],Qt=zt[6].projection[h.projection];if(Array.isArray(Qt))for(let ue of Qt)u0(ue,F,tt,ct,vt);else if(Qt){const ue=zt[3];Wf(ue[1].data[Qt.index],ue,F,tt,ct,vt)}}else h.child&&Wf(h.child,p,F,tt,ct,vt);if(vt!==Tt){const zt=2&h.flags?h.projectionNext:h.next;zt&&Wf(zt,p,F,tt,ct,vt)}}function Px(h,p,F,tt,ct){for(let vt=10;vtp;class Ox{constructor(p){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=p||Qb}forEachItem(p){let F;for(F=this._itHead;null!==F;F=F._next)p(F)}forEachOperation(p){let F=this._itHead,tt=this._removalsHead,ct=0,vt=null;for(;F||tt;){const Tt=!tt||F&&F.currentIndex{Tt=this._trackByFn(ct,zt),null!==F&&Object.is(F.trackById,Tt)?(tt&&(F=this._verifyReinsertion(F,zt,Tt,ct)),Object.is(F.item,zt)||this._addIdentityChange(F,zt)):(F=this._mismatch(F,zt,Tt,ct),tt=!0),F=F._next,ct++}),this.length=ct;return this._truncate(F),this.collection=p,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(p,F,tt,ct){let vt;return null===p?vt=this._itTail:(vt=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(tt,null))?(Object.is(p.item,F)||this._addIdentityChange(p,F),this._reinsertAfter(p,vt,ct)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(tt,ct))?(Object.is(p.item,F)||this._addIdentityChange(p,F),this._moveAfter(p,vt,ct)):p=this._addAfter(new Jb(F,tt),vt,ct),p}_verifyReinsertion(p,F,tt,ct){let vt=null===this._unlinkedRecords?null:this._unlinkedRecords.get(tt,null);return null!==vt?p=this._reinsertAfter(vt,p._prev,ct):p.currentIndex!=ct&&(p.currentIndex=ct,this._addToMoves(p,ct)),p}_truncate(p){for(;null!==p;){const F=p._next;this._addToRemovals(this._unlink(p)),p=F}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(p,F,tt){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);const ct=p._prevRemoved,vt=p._nextRemoved;return null===ct?this._removalsHead=vt:ct._nextRemoved=vt,null===vt?this._removalsTail=ct:vt._prevRemoved=ct,this._insertAfter(p,F,tt),this._addToMoves(p,tt),p}_moveAfter(p,F,tt){return this._unlink(p),this._insertAfter(p,F,tt),this._addToMoves(p,tt),p}_addAfter(p,F,tt){return this._insertAfter(p,F,tt),null===this._additionsTail?this._additionsTail=this._additionsHead=p:this._additionsTail=this._additionsTail._nextAdded=p,p}_insertAfter(p,F,tt){const ct=null===F?this._itHead:F._next;return p._next=ct,p._prev=F,null===ct?this._itTail=p:ct._prev=p,null===F?this._itHead=p:F._next=p,null===this._linkedRecords&&(this._linkedRecords=new kx),this._linkedRecords.put(p),p.currentIndex=tt,p}_remove(p){return this._addToRemovals(this._unlink(p))}_unlink(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);const F=p._prev,tt=p._next;return null===F?this._itHead=tt:F._next=tt,null===tt?this._itTail=F:tt._prev=F,p}_addToMoves(p,F){return p.previousIndex===F||(null===this._movesTail?this._movesTail=this._movesHead=p:this._movesTail=this._movesTail._nextMoved=p),p}_addToRemovals(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new kx),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}_addIdentityChange(p,F){return p.item=F,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=p:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=p,p}}class Jb{constructor(p,F){this.item=p,this.trackById=F,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 t1{constructor(){this._head=null,this._tail=null}add(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}get(p,F){let tt;for(tt=this._head;null!==tt;tt=tt._nextDup)if((null===F||F<=tt.currentIndex)&&Object.is(tt.trackById,p))return tt;return null}remove(p){const F=p._prevDup,tt=p._nextDup;return null===F?this._head=tt:F._nextDup=tt,null===tt?this._tail=F:tt._prevDup=F,null===this._head}}class kx{constructor(){this.map=new Map}put(p){const F=p.trackById;let tt=this.map.get(F);tt||(tt=new t1,this.map.set(F,tt)),tt.add(p)}get(p,F){const tt=p,ct=this.map.get(tt);return ct?ct.get(p,F):null}remove(p){const F=p.trackById;return this.map.get(F).remove(p)&&this.map.delete(F),p}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Lx(h,p,F){const tt=h.previousIndex;if(null===tt)return tt;let ct=0;return F&&tt{if(F&&F.key===ct)this._maybeAddToChanges(F,tt),this._appendAfter=F,F=F._next;else{const vt=this._getOrCreateRecordForKey(ct,tt);F=this._insertBeforeOrAppend(F,vt)}}),F){F._prev&&(F._prev._next=null),this._removalsHead=F;for(let tt=F;null!==tt;tt=tt._nextRemoved)tt===this._mapHead&&(this._mapHead=null),this._records.delete(tt.key),tt._nextRemoved=tt._next,tt.previousValue=tt.currentValue,tt.currentValue=null,tt._prev=null,tt._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(p,F){if(p){const tt=p._prev;return F._next=p,F._prev=tt,p._prev=F,tt&&(tt._next=F),p===this._mapHead&&(this._mapHead=F),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=F,F._prev=this._appendAfter):this._mapHead=F,this._appendAfter=F,null}_getOrCreateRecordForKey(p,F){if(this._records.has(p)){const ct=this._records.get(p);this._maybeAddToChanges(ct,F);const vt=ct._prev,Tt=ct._next;return vt&&(vt._next=Tt),Tt&&(Tt._prev=vt),ct._next=null,ct._prev=null,ct}const tt=new i1(p);return this._records.set(p,tt),tt.currentValue=F,this._addToAdditions(tt),tt}_reset(){if(this.isDirty){let p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(p,F){Object.is(F,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=F,this._addToChanges(p))}_addToAdditions(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}_addToChanges(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}_forEach(p,F){p instanceof Map?p.forEach(F):Object.keys(p).forEach(tt=>F(p[tt],tt))}}class i1{constructor(p){this.key=p,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 Fx(){return new Uh([new Ix])}class Uh{constructor(p){this.factories=p}static create(p,F){if(null!=F){const tt=F.factories.slice();p=p.concat(tt)}return new Uh(p)}static extend(p){return{provide:Uh,useFactory:F=>Uh.create(p,F||Fx()),deps:[[Uh,new ja,new nh]]}}find(p){const F=this.factories.find(tt=>tt.supports(p));if(null!=F)return F;throw new v(901,!1)}}function Nx(){return new Wh([new Rx])}Uh.\u0275prov=nt({token:Uh,providedIn:"root",factory:Fx});class Wh{constructor(p){this.factories=p}static create(p,F){if(F){const tt=F.factories.slice();p=p.concat(tt)}return new Wh(p)}static extend(p){return{provide:Wh,useFactory:F=>Wh.create(p,F||Nx()),deps:[[Wh,new ja,new nh]]}}find(p){const F=this.factories.find(tt=>tt.supports(p));if(F)return F;throw new v(901,!1)}}Wh.\u0275prov=nt({token:Wh,providedIn:"root",factory:Nx});const n1=[new Rx],r1=[new Ix],s1=new Uh(r1),o1=new Wh(n1),a1=yx(null,"core",[]);class vm{constructor(p){}}function l1(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}vm.\u0275fac=function(p){return new(p||vm)(Se(Qu))},vm.\u0275mod=ie({type:vm}),vm.\u0275inj=gt({});const c1=!0;function h1(h){return $n(h.type).compileDirectiveDeclaration(Ia,`ng:///${h.type.name}/\u0275fac.js`,h)}function u1(h){Y0(h.type,h.decorators,h.ctorParameters??null,h.propDecorators??null)}function d1(h){return $n(h.type).compileComponentDeclaration(Ia,`ng:///${h.type.name}/\u0275cmp.js`,h)}function p1(h){return $n((f1(h.target),h.type)).compileFactoryDeclaration(Ia,`ng:///${h.type.name}/\u0275fac.js`,h)}function f1(h){switch(h){case bo.Directive:return"directive";case bo.Component:return"component";case bo.Injectable:return"injectable";case bo.Pipe:return"pipe";case bo.NgModule:return"NgModule"}}function g1(h){return $n(h.type).compileInjectableDeclaration(Ia,`ng:///${h.type.name}/\u0275prov.js`,h)}function m1(h){return $n(h.type).compileInjectorDeclaration(Ia,`ng:///${h.type.name}/\u0275inj.js`,h)}function v1(h){return $n(h.type).compileNgModuleDeclaration(Ia,`ng:///${h.type.name}/\u0275mod.js`,h)}function y1(h){return $n(h.type).compilePipeDeclaration(Ia,`ng:///${h.type.name}/\u0275pipe.js`,h)}function _1(h,p){const F=Ae(h),tt=p.elementInjector||Dd();return new Ah(F).create(tt,p.projectableNodes,p.hostElement,p.environmentInjector)}function x1(h){const p=Ae(h);if(!p)return null;const F=new Ah(p);return{get selector(){return F.selector},get type(){return F.componentType},get inputs(){return F.inputs},get outputs(){return F.outputs},get ngContentSelectors(){return F.ngContentSelectors},get isStandalone(){return p.standalone}}}},4715:(Jt,$t,ht)=>{"use strict";ht.r($t),ht.d($t,{JitCompilerFactory:()=>Sv,RESOURCE_CACHE_PROVIDER:()=>hy,VERSION:()=>cy,platformBrowserDynamic:()=>uy,\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:()=>Mv,\u0275platformCoreDynamic:()=>Dv});const pt=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g");class t{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){const C=[],K=(ae,de)=>{de.notSelectors.length>0&&!de.element&&0==de.classNames.length&&0==de.attrs.length&&(de.element="*"),ae.push(de)};let Et,ut=new t,Nt=ut,Yt=!1;for(pt.lastIndex=0;Et=pt.exec(e);){if(Et[1]){if(Yt)throw new Error("Nesting :not in a selector is not allowed");Yt=!0,Nt=new t,ut.notSelectors.push(Nt)}const ae=Et[2];if(ae){const Ce=Et[3];"#"===Ce?Nt.addAttribute("id",ae.slice(1)):"."===Ce?Nt.addClassName(ae.slice(1)):Nt.setElement(ae)}const de=Et[4];if(de&&Nt.addAttribute(Nt.unescapeAttribute(de),Et[6]),Et[7]&&(Yt=!1,Nt=ut),Et[8]){if(Yt)throw new Error("Multiple selectors in :not are not supported");K(C,ut),ut=Nt=new t}}return K(C,ut),C}unescapeAttribute(e){let C="",K=!1;for(let ut=0;ut0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,C=""){this.attrs.push(e,C&&C.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(C=>e+=`.${C}`),this.attrs)for(let C=0;Ce+=`:not(${C})`),e}}var G,J,Z;(J=G||(G={}))[J.Emulated=0]="Emulated",J[J.None=2]="None",J[J.ShadowDom=3]="ShadowDom",function(J){J[J.OnPush=0]="OnPush",J[J.Default=1]="Default"}(Z||(Z={}));const $={name:"custom-elements"},W={name:"no-errors-schema"};var R,P;function w(J){const e=function k(J){const e=J.classNames&&J.classNames.length?[8,...J.classNames]:[];return[J.element&&"*"!==J.element?J.element:"",...J.attrs,...e]}(J),C=J.notSelectors&&J.notSelectors.length?J.notSelectors.map(K=>function E(J){const e=J.classNames&&J.classNames.length?[8,...J.classNames]:[];return J.element?[5,J.element,...J.attrs,...e]:J.attrs.length?[3,...J.attrs,...e]:J.classNames&&J.classNames.length?[9,...J.classNames]:[]}(K)):[];return e.concat(...C)}function T(J){return J?t.parse(J).map(w):[]}!function(J){J[J.NONE=0]="NONE",J[J.HTML=1]="HTML",J[J.STYLE=2]="STYLE",J[J.SCRIPT=3]="SCRIPT",J[J.URL=4]="URL",J[J.RESOURCE_URL=5]="RESOURCE_URL"}(R||(R={})),function(J){J[J.Error=0]="Error",J[J.Warning=1]="Warning",J[J.Ignore=2]="Ignore"}(P||(P={}));class A{static zero(){return new A([0])}static one(){return new A([1])}constructor(e){this.digits=e}clone(){return new A(this.digits.slice())}add(e){const C=this.clone();return C.addToSelf(e),C}addToSelf(e){const C=Math.max(this.digits.length,e.digits.length);let K=0;for(let ut=0;ut=10?(this.digits[ut]=Et-10,K=1):(this.digits[ut]=Et,K=0)}K>0&&(this.digits[C]=1)}toString(){let e="";for(let C=this.digits.length-1;C>=0;C--)e+=this.digits[C];return e}}class g{constructor(e){this.powerOfTwos=[e]}getValue(){return this.powerOfTwos[0]}multiplyBy(e){const C=A.zero();return this.multiplyByAndAddTo(e,C),C}multiplyByAndAddTo(e,C){for(let K=0;0!==e;e>>>=1,K++)if(1&e){const ut=this.getMultipliedByPowerOfTwo(K);C.addToSelf(ut)}}getMultipliedByPowerOfTwo(e){for(let C=this.powerOfTwos.length;C<=e;C++){const K=this.powerOfTwos[C-1];this.powerOfTwos[C]=K.add(K)}return this.powerOfTwos[e]}}let S;function j(J){return function a(J){S??(S=new TextEncoder);const e=[...S.encode(J)],C=function st(J,e){const C=J.length+3>>>2,K=[];for(let ut=0;ut>5]|=128<<24-K%32,C[15+(K+64>>9<<4)]=K;for(let Ce=0;Cee.visit(b,null))}(J.nodes).join("")+`[${J.meaning}]`)}function M(J){return J.id||D(J)}function D(J){const e=new u;return _(J.nodes.map(K=>K.visit(e,null)).join(""),J.meaning)}class I{visitText(e,C){return e.value}visitContainer(e,C){return`[${e.children.map(K=>K.visit(this)).join(", ")}]`}visitIcu(e,C){const K=Object.keys(e.cases).map(ut=>`${ut} {${e.cases[ut].visit(this)}}`);return`{${e.expression}, ${e.type}, ${K.join(", ")}}`}visitTagPlaceholder(e,C){return e.isVoid?``:`${e.children.map(K=>K.visit(this)).join(", ")}`}visitPlaceholder(e,C){return e.value?`${e.value}`:``}visitIcuPlaceholder(e,C){return`${e.value.visit(this)}`}}const b=new I;class u extends I{visitIcu(e,C){let K=Object.keys(e.cases).map(ut=>`${ut} {${e.cases[ut].visit(this)}}`);return`{${e.type}, ${K.join(", ")}}`}}function n(J){return(J>>>0).toString(16).padStart(8,"0")}function o(J,e,C,K){return J<20?[e&C|~e&K,1518500249]:J<40?[e^C^K,1859775393]:J<60?[e&C|e&K|C&K,2400959708]:[e^C^K,3395469782]}function m(J){S??(S=new TextEncoder);const e=S.encode(J),C=new DataView(e.buffer,e.byteOffset,e.byteLength);let K=B(C,e.length,0),ut=B(C,e.length,102072);return 0==K&&(0==ut||1==ut)&&(K^=319790063,ut^=-1801410264),[K,ut]}function _(J,e=""){let C=m(J);if(e){const Et=m(e);C=function z(J,e){const C=J[0],K=J[1],ut=e[0],Et=e[1],Nt=L(K,Et),Yt=Nt[0],ae=Nt[1];return[rt(rt(C,ut),Yt),ae]}(function at(J,e){const C=J[0],K=J[1],ut=C<>>32-e,Et=K<>>32-e;return[ut,Et]}(C,1),Et)}return function yt(J,e){const C=nt.toThePowerOf(0).multiplyBy(e);return nt.toThePowerOf(4).multiplyByAndAddTo(J,C),C.toString()}(2147483647&C[0],C[1])}function B(J,e,C){let K=2654435769,ut=2654435769,Et=0;const Nt=e-12;for(;Et<=Nt;Et+=12){K+=J.getUint32(Et,!0),ut+=J.getUint32(Et+4,!0);const ae=X(K,ut,C+=J.getUint32(Et+8,!0));K=ae[0],ut=ae[1],C=ae[2]}const Yt=e-Et;return C+=e,Yt>=4?(K+=J.getUint32(Et,!0),Et+=4,Yt>=8?(ut+=J.getUint32(Et,!0),Et+=4,Yt>=9&&(C+=J.getUint8(Et++)<<8),Yt>=10&&(C+=J.getUint8(Et++)<<16),11===Yt&&(C+=J.getUint8(Et++)<<24)):(Yt>=5&&(ut+=J.getUint8(Et++)),Yt>=6&&(ut+=J.getUint8(Et++)<<8),7===Yt&&(ut+=J.getUint8(Et++)<<16))):(Yt>=1&&(K+=J.getUint8(Et++)),Yt>=2&&(K+=J.getUint8(Et++)<<8),3===Yt&&(K+=J.getUint8(Et++)<<16)),X(K,ut,C)[2]}function X(J,e,C){return J-=e,J-=C,e-=C,e-=J^=C>>>13,C-=J,C-=e^=J<<8,J-=e,J-=C^=e>>>13,e-=C,e-=J^=C>>>12,C-=J,C-=e^=J<<16,J-=e,J-=C^=e>>>5,e-=C,e-=J^=C>>>3,C-=J,C-=e^=J<<10,[J,e,C^=e>>>15]}var it;function rt(J,e){return L(J,e)[1]}function L(J,e){const C=(65535&J)+(65535&e),K=(J>>>16)+(e>>>16)+(C>>>16);return[K>>>16,K<<16|65535&C]}function et(J,e){return J<>>32-e}function H(J,e){return e>=J.length?0:J[e]}function ot(J,e,C){let K=0;if(C===it.Big)for(let ut=0;ut<4;ut++)K+=H(J,e+ut)<<24-8*ut;else for(let ut=0;ut<4;ut++)K+=H(J,e+ut)<<8*ut;return K}!function(J){J[J.Little=0]="Little",J[J.Big=1]="Big"}(it||(it={}));const nt=new class v{constructor(e){this.base=e,this.exponents=[new g(A.one())]}toThePowerOf(e){for(let C=this.exponents.length;C<=e;C++){const K=this.exponents[C-1].multiplyBy(this.base);this.exponents[C]=new g(K)}return this.exponents[e]}}(256);var gt,St;!function(J){J[J.None=0]="None",J[J.Const=1]="Const"}(gt||(gt={}));class mt{constructor(e=gt.None){this.modifiers=e}hasModifier(e){return 0!=(this.modifiers&e)}}!function(J){J[J.Dynamic=0]="Dynamic",J[J.Bool=1]="Bool",J[J.String=2]="String",J[J.Int=3]="Int",J[J.Number=4]="Number",J[J.Function=5]="Function",J[J.Inferred=6]="Inferred",J[J.None=7]="None"}(St||(St={}));class wt extends mt{constructor(e,C){super(C),this.name=e}visitType(e,C){return e.visitBuiltinType(this,C)}}class Mt extends mt{constructor(e,C,K=null){super(C),this.value=e,this.typeParams=K}visitType(e,C){return e.visitExpressionType(this,C)}}const Ft=new wt(St.Dynamic),jt=new wt(St.Inferred),Ut=new wt(St.Bool),_t=(new wt(St.Int),new wt(St.Number)),xt=new wt(St.String),Ct=(new wt(St.Function),new wt(St.None));var Ot,Rt;function Zt(J,e){return null==J||null==e?J==e:J.isEquivalent(e)}function he(J,e,C){const K=J.length;if(K!==e.length)return!1;for(let ut=0;utC.isEquivalent(K))}!function(J){J[J.Minus=0]="Minus",J[J.Plus=1]="Plus"}(Ot||(Ot={})),function(J){J[J.Equals=0]="Equals",J[J.NotEquals=1]="NotEquals",J[J.Identical=2]="Identical",J[J.NotIdentical=3]="NotIdentical",J[J.Minus=4]="Minus",J[J.Plus=5]="Plus",J[J.Divide=6]="Divide",J[J.Multiply=7]="Multiply",J[J.Modulo=8]="Modulo",J[J.And=9]="And",J[J.Or=10]="Or",J[J.BitwiseAnd=11]="BitwiseAnd",J[J.Lower=12]="Lower",J[J.LowerEquals=13]="LowerEquals",J[J.Bigger=14]="Bigger",J[J.BiggerEquals=15]="BiggerEquals",J[J.NullishCoalesce=16]="NullishCoalesce"}(Rt||(Rt={}));class ye{constructor(e,C){this.type=e||null,this.sourceSpan=C||null}prop(e,C){return new lr(this,e,null,C)}key(e,C,K){return new Or(this,e,C,K)}callFn(e,C,K){return new ke(this,e,null,C,K)}instantiate(e,C,K){return new be(this,e,C,K)}conditional(e,C=null,K){return new di(this,e,C,null,K)}equals(e,C){return new Ji(Rt.Equals,this,e,null,C)}notEquals(e,C){return new Ji(Rt.NotEquals,this,e,null,C)}identical(e,C){return new Ji(Rt.Identical,this,e,null,C)}notIdentical(e,C){return new Ji(Rt.NotIdentical,this,e,null,C)}minus(e,C){return new Ji(Rt.Minus,this,e,null,C)}plus(e,C){return new Ji(Rt.Plus,this,e,null,C)}divide(e,C){return new Ji(Rt.Divide,this,e,null,C)}multiply(e,C){return new Ji(Rt.Multiply,this,e,null,C)}modulo(e,C){return new Ji(Rt.Modulo,this,e,null,C)}and(e,C){return new Ji(Rt.And,this,e,null,C)}bitwiseAnd(e,C,K=!0){return new Ji(Rt.BitwiseAnd,this,e,null,C,K)}or(e,C){return new Ji(Rt.Or,this,e,null,C)}lower(e,C){return new Ji(Rt.Lower,this,e,null,C)}lowerEquals(e,C){return new Ji(Rt.LowerEquals,this,e,null,C)}bigger(e,C){return new Ji(Rt.Bigger,this,e,null,C)}biggerEquals(e,C){return new Ji(Rt.BiggerEquals,this,e,null,C)}isBlank(e){return this.equals(me,e)}nullishCoalesce(e,C){return new Ji(Rt.NullishCoalesce,this,e,null,C)}toStmt(){return new ri(this,null)}}class Ne extends ye{constructor(e,C,K){super(C,K),this.name=e}isEquivalent(e){return e instanceof Ne&&this.name===e.name}isConstant(){return!1}visitExpression(e,C){return e.visitReadVarExpr(this,C)}set(e){return new ii(this.name,e,null,this.sourceSpan)}}class He extends ye{constructor(e,C,K){super(C,K),this.expr=e}visitExpression(e,C){return e.visitTypeofExpr(this,C)}isEquivalent(e){return e instanceof He&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}}class ze extends ye{constructor(e,C,K){super(C,K),this.node=e}isEquivalent(e){return e instanceof ze&&this.node===e.node}isConstant(){return!1}visitExpression(e,C){return e.visitWrappedNodeExpr(this,C)}}class ii extends ye{constructor(e,C,K,ut){super(K||C.type,ut),this.name=e,this.value=C}isEquivalent(e){return e instanceof ii&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,C){return e.visitWriteVarExpr(this,C)}toDeclStmt(e,C){return new Fe(this.name,this.value,e,C,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(jt,ge.Final)}}class $e extends ye{constructor(e,C,K,ut,Et){super(ut||K.type,Et),this.receiver=e,this.index=C,this.value=K}isEquivalent(e){return e instanceof $e&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,C){return e.visitWriteKeyExpr(this,C)}}class Te extends ye{constructor(e,C,K,ut,Et){super(ut||K.type,Et),this.receiver=e,this.name=C,this.value=K}isEquivalent(e){return e instanceof Te&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,C){return e.visitWritePropExpr(this,C)}}class ke extends ye{constructor(e,C,K,ut,Et=!1){super(K,ut),this.fn=e,this.args=C,this.pure=Et}isEquivalent(e){return e instanceof ke&&this.fn.isEquivalent(e.fn)&&Ie(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,C){return e.visitInvokeFunctionExpr(this,C)}}class We extends ye{constructor(e,C,K,ut){super(K,ut),this.tag=e,this.template=C}isEquivalent(e){return e instanceof We&&this.tag.isEquivalent(e.tag)&&he(this.template.elements,e.template.elements,(C,K)=>C.text===K.text)&&Ie(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,C){return e.visitTaggedTemplateExpr(this,C)}}class be extends ye{constructor(e,C,K,ut){super(K,ut),this.classExpr=e,this.args=C}isEquivalent(e){return e instanceof be&&this.classExpr.isEquivalent(e.classExpr)&&Ie(this.args,e.args)}isConstant(){return!1}visitExpression(e,C){return e.visitInstantiateExpr(this,C)}}class se extends ye{constructor(e,C,K){super(C,K),this.value=e}isEquivalent(e){return e instanceof se&&this.value===e.value}isConstant(){return!0}visitExpression(e,C){return e.visitLiteralExpr(this,C)}}class Se{constructor(e,C){this.elements=e,this.expressions=C}}class Le{constructor(e,C,K){this.text=e,this.sourceSpan=C,this.rawText=K??C?.toString()??si(dr(e))}}class _i{constructor(e,C){this.text=e,this.sourceSpan=C}}class vi{constructor(e,C,K){this.text=e,this.sourceSpan=C,this.associatedMessage=K}}class hn extends ye{constructor(e,C,K,ut,Et){super(xt,Et),this.metaBlock=e,this.messageParts=C,this.placeHolderNames=K,this.expressions=ut}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,C){return e.visitLocalizedString(this,C)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}|${e}`),this.metaBlock.customId&&(e=`${e}@@${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(C=>{e=`${e}\u241f${C}`}),ce(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){const C=this.placeHolderNames[e-1],K=this.messageParts[e];let ut=C.text;return 0===C.associatedMessage?.legacyIds.length&&(ut+=`@@${_(C.associatedMessage.messageString,C.associatedMessage.meaning)}`),ce(ut,K.text,this.getMessagePartSourceSpan(e))}}const dr=J=>J.replace(/\\/g,"\\\\"),Mn=J=>J.replace(/^:/,"\\:"),sn=J=>J.replace(/:/g,"\\:"),si=J=>J.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function ce(J,e,C){return""===J?{cooked:e,raw:si(Mn(dr(e))),range:C}:{cooked:`:${J}:${e}`,raw:si(`:${sn(dr(J))}:${dr(e)}`),range:C}}class Ee extends ye{constructor(e,C,K=null,ut){super(C,ut),this.value=e,this.typeParams=K}isEquivalent(e){return e instanceof Ee&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}visitExpression(e,C){return e.visitExternalExpr(this,C)}}class di extends ye{constructor(e,C,K=null,ut,Et){super(ut||C.type,Et),this.condition=e,this.falseCase=K,this.trueCase=C}isEquivalent(e){return e instanceof di&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Zt(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,C){return e.visitConditionalExpr(this,C)}}class Fi extends ye{constructor(e,C){super(Ut,C),this.condition=e}isEquivalent(e){return e instanceof Fi&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,C){return e.visitNotExpr(this,C)}}class Hi{constructor(e,C=null){this.name=e,this.type=C}isEquivalent(e){return this.name===e.name}}class Dn extends ye{constructor(e,C,K,ut,Et){super(K,ut),this.params=e,this.statements=C,this.name=Et}isEquivalent(e){return e instanceof Dn&&Ie(this.params,e.params)&&Ie(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,C){return e.visitFunctionExpr(this,C)}toDeclStmt(e,C){return new Ze(e,this.params,this.statements,this.type,C,this.sourceSpan)}}class zn extends ye{constructor(e,C,K,ut,Et=!0){super(K||_t,ut),this.operator=e,this.expr=C,this.parens=Et}isEquivalent(e){return e instanceof zn&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,C){return e.visitUnaryOperatorExpr(this,C)}}class Ji extends ye{constructor(e,C,K,ut,Et,Nt=!0){super(ut||C.type,Et),this.operator=e,this.rhs=K,this.parens=Nt,this.lhs=C}isEquivalent(e){return e instanceof Ji&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,C){return e.visitBinaryOperatorExpr(this,C)}}class lr extends ye{constructor(e,C,K,ut){super(K,ut),this.receiver=e,this.name=C}isEquivalent(e){return e instanceof lr&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,C){return e.visitReadPropExpr(this,C)}set(e){return new Te(this.receiver,this.name,e,null,this.sourceSpan)}}class Or extends ye{constructor(e,C,K,ut){super(K,ut),this.receiver=e,this.index=C}isEquivalent(e){return e instanceof Or&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,C){return e.visitReadKeyExpr(this,C)}set(e){return new $e(this.receiver,this.index,e,null,this.sourceSpan)}}class Jn extends ye{constructor(e,C,K){super(C,K),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof Jn&&Ie(this.entries,e.entries)}visitExpression(e,C){return e.visitLiteralArrayExpr(this,C)}}class Xe{constructor(e,C,K){this.key=e,this.value=C,this.quoted=K}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}class Wt extends ye{constructor(e,C,K){super(C,K),this.entries=e,this.valueType=null,C&&(this.valueType=C.valueType)}isEquivalent(e){return e instanceof Wt&&Ie(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,C){return e.visitLiteralMapExpr(this,C)}}const ie=new se(null,null,null),me=new se(null,jt,null);var ge;!function(J){J[J.None=0]="None",J[J.Final=1]="Final",J[J.Private=2]="Private",J[J.Exported=4]="Exported",J[J.Static=8]="Static"}(ge||(ge={}));class De{constructor(e,C,K){this.text=e,this.multiline=C,this.trailingNewline=K}toString(){return this.multiline?` ${this.text} `:this.text}}class Pe extends De{constructor(e){super("",!0,!0),this.tags=e}toString(){return function nn(J){if(0===J.length)return"";if(1===J.length&&J[0].tagName&&!J[0].text)return`*${Ti(J[0])} `;let e="*\n";for(const C of J)e+=" *",e+=Ti(C).replace(/\n/g,"\n * "),e+="\n";return e+=" ",e}(this.tags)}}class Ae{constructor(e=ge.None,C=null,K){this.modifiers=e,this.sourceSpan=C,this.leadingComments=K}hasModifier(e){return 0!=(this.modifiers&e)}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}}class Fe extends Ae{constructor(e,C,K,ut,Et,Nt){super(ut,Et,Nt),this.name=e,this.value=C,this.type=K||C&&C.type||null}isEquivalent(e){return e instanceof Fe&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,C){return e.visitDeclareVarStmt(this,C)}}class Ze extends Ae{constructor(e,C,K,ut,Et,Nt,Yt){super(Et,Nt,Yt),this.name=e,this.params=C,this.statements=K,this.type=ut||null}isEquivalent(e){return e instanceof Ze&&Ie(this.params,e.params)&&Ie(this.statements,e.statements)}visitStatement(e,C){return e.visitDeclareFunctionStmt(this,C)}}class ri extends Ae{constructor(e,C,K){super(ge.None,C,K),this.expr=e}isEquivalent(e){return e instanceof ri&&this.expr.isEquivalent(e.expr)}visitStatement(e,C){return e.visitExpressionStmt(this,C)}}class Qe extends Ae{constructor(e,C=null,K){super(ge.None,C,K),this.value=e}isEquivalent(e){return e instanceof Qe&&this.value.isEquivalent(e.value)}visitStatement(e,C){return e.visitReturnStmt(this,C)}}class gi extends Ae{constructor(e,C,K=[],ut,Et){super(ge.None,ut,Et),this.condition=e,this.trueCase=C,this.falseCase=K}isEquivalent(e){return e instanceof gi&&this.condition.isEquivalent(e.condition)&&Ie(this.trueCase,e.trueCase)&&Ie(this.falseCase,e.falseCase)}visitStatement(e,C){return e.visitIfStmt(this,C)}}function li(J=[]){return new Pe(J)}function ai(J,e,C){return new Ne(J,e,C)}function Je(J,e=null,C){return new Ee(J,null,e,C)}function Re(J,e,C){return new Mt(J,e,C)}function Vt(J){return new He(J)}function oe(J,e,C){return new Jn(J,e,C)}function fe(J,e=null){return new Wt(J.map(C=>new Xe(C.key,C.value,C.quoted)),e,null)}function qe(J,e){return new Fi(J,e)}function ti(J,e,C,K,ut){return new Dn(J,e,C,K,ut)}function mi(J,e,C,K,ut){return new gi(J,e,C,K,ut)}function Mi(J,e,C,K){return new We(J,e,C,K)}function Oe(J,e,C){return new se(J,e,C)}function fn(J,e,C,K,ut){return new hn(J,e,C,K,ut)}function tn(J){return J instanceof se&&null===J.value}function Ti(J){let e="";if(J.tagName&&(e+=` @${J.tagName}`),J.text){if(J.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+J.text.replace(/@/g,"\\@")}return e}const Hn=ai(""),Pn={};class _s extends ye{constructor(e){super(e.type),this.resolved=e,this.original=e}visitExpression(e,C){return C===Pn?this.original.visitExpression(e,C):this.resolved.visitExpression(e,C)}isEquivalent(e){return e instanceof _s&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}fixup(e){this.resolved=e,this.shared=!0}}class un{constructor(e=!1){this.isClosureCompilerEnabled=e,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}getConstLiteral(e,C){if(e instanceof se&&!Ln(e)||e instanceof _s)return e;const K=this.keyOf(e);let ut=this.literals.get(K),Et=!1;if(ut||(ut=new _s(e),this.literals.set(K,ut),Et=!0),!Et&&!ut.shared||Et&&C){const Nt=this.freshName();let Yt,ae;this.isClosureCompilerEnabled&&Ln(e)?(Yt=ai(Nt).set(new Dn([],[new Qe(e)])),ae=ai(Nt).callFn([])):(Yt=ai(Nt).set(e),ae=ai(Nt)),this.statements.push(Yt.toDeclStmt(jt,ge.Final)),ut.fixup(ae)}return ut}getLiteralFactory(e){if(e instanceof Jn){const C=e.entries.map(ut=>ut.isConstant()?ut:Hn),K=this.keyOf(oe(C));return this._getLiteralFactory(K,e.entries,ut=>oe(ut))}{const C=fe(e.entries.map(ut=>({key:ut.key,value:ut.value.isConstant()?ut.value:Hn,quoted:ut.quoted}))),K=this.keyOf(C);return this._getLiteralFactory(K,e.entries.map(ut=>ut.value),ut=>fe(ut.map((Et,Nt)=>({key:e.entries[Nt].key,value:Et,quoted:e.entries[Nt].quoted}))))}}_getLiteralFactory(e,C,K){let ut=this.literalFactories.get(e);const Et=C.filter(Nt=>!Nt.isConstant());if(!ut){const Nt=C.map((Ce,Ue)=>Ce.isConstant()?this.getConstLiteral(Ce,!0):ai(`a${Ue}`)),ae=ti(Nt.filter($r).map(Ce=>new Hi(Ce.name,Ft)),[new Qe(K(Nt))],jt),de=this.freshName();this.statements.push(ai(de).set(ae).toDeclStmt(jt,ge.Final)),ut=ai(de),this.literalFactories.set(e,ut)}return{literalFactory:ut,literalFactoryArguments:Et}}uniqueName(e){return`${e}${this.nextNameIndex++}`}freshName(){return this.uniqueName("_c")}keyOf(e){return e.visitExpression(new An,Pn)}}class An{constructor(){this.visitWrappedNodeExpr=rn,this.visitWriteVarExpr=rn,this.visitWriteKeyExpr=rn,this.visitWritePropExpr=rn,this.visitInvokeFunctionExpr=rn,this.visitTaggedTemplateExpr=rn,this.visitInstantiateExpr=rn,this.visitConditionalExpr=rn,this.visitNotExpr=rn,this.visitAssertNotNullExpr=rn,this.visitCastExpr=rn,this.visitFunctionExpr=rn,this.visitUnaryOperatorExpr=rn,this.visitBinaryOperatorExpr=rn,this.visitReadPropExpr=rn,this.visitReadKeyExpr=rn,this.visitCommaExpr=rn,this.visitLocalizedString=rn}visitLiteralExpr(e){return`${"string"==typeof e.value?'"'+e.value+'"':e.value}`}visitLiteralArrayExpr(e,C){return`[${e.entries.map(K=>K.visitExpression(this,C)).join(",")}]`}visitLiteralMapExpr(e,C){return`{${e.entries.map(Et=>`${(Et=>{const Nt=Et.quoted?'"':"";return`${Nt}${Et.key}${Nt}`})(Et)}:${Et.value.visitExpression(this,C)}`).join(",")}`}visitExternalExpr(e){return e.value.moduleName?`EX:${e.value.moduleName}:${e.value.name}`:`EX:${e.value.runtime.name}`}visitReadVarExpr(e){return`VAR:${e.name}`}visitTypeofExpr(e,C){return`TYPEOF:${e.expr.visitExpression(this,C)}`}}function rn(J){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${J.constructor.name}`)}function $r(J){return J instanceof Ne}function Ln(J){return J instanceof se&&"string"==typeof J.value&&J.value.length>=50}const je="@angular/core";class ee{}ee.NEW_METHOD="factory",ee.TRANSFORM_METHOD="transform",ee.PATCH_DEPS="patchedDeps",ee.core={name:null,moduleName:je},ee.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:je},ee.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:je},ee.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:je},ee.element={name:"\u0275\u0275element",moduleName:je},ee.elementStart={name:"\u0275\u0275elementStart",moduleName:je},ee.elementEnd={name:"\u0275\u0275elementEnd",moduleName:je},ee.advance={name:"\u0275\u0275advance",moduleName:je},ee.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:je},ee.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:je},ee.attribute={name:"\u0275\u0275attribute",moduleName:je},ee.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:je},ee.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:je},ee.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:je},ee.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:je},ee.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:je},ee.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:je},ee.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:je},ee.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:je},ee.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:je},ee.classProp={name:"\u0275\u0275classProp",moduleName:je},ee.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:je},ee.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:je},ee.elementContainer={name:"\u0275\u0275elementContainer",moduleName:je},ee.styleMap={name:"\u0275\u0275styleMap",moduleName:je},ee.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:je},ee.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:je},ee.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:je},ee.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:je},ee.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:je},ee.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:je},ee.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:je},ee.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:je},ee.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:je},ee.classMap={name:"\u0275\u0275classMap",moduleName:je},ee.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:je},ee.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:je},ee.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:je},ee.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:je},ee.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:je},ee.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:je},ee.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:je},ee.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:je},ee.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:je},ee.styleProp={name:"\u0275\u0275styleProp",moduleName:je},ee.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:je},ee.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:je},ee.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:je},ee.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:je},ee.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:je},ee.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:je},ee.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:je},ee.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:je},ee.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:je},ee.nextContext={name:"\u0275\u0275nextContext",moduleName:je},ee.resetView={name:"\u0275\u0275resetView",moduleName:je},ee.templateCreate={name:"\u0275\u0275template",moduleName:je},ee.text={name:"\u0275\u0275text",moduleName:je},ee.enableBindings={name:"\u0275\u0275enableBindings",moduleName:je},ee.disableBindings={name:"\u0275\u0275disableBindings",moduleName:je},ee.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:je},ee.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:je},ee.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:je},ee.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:je},ee.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:je},ee.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:je},ee.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:je},ee.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:je},ee.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:je},ee.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:je},ee.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:je},ee.restoreView={name:"\u0275\u0275restoreView",moduleName:je},ee.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:je},ee.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:je},ee.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:je},ee.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:je},ee.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:je},ee.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:je},ee.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:je},ee.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:je},ee.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:je},ee.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:je},ee.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:je},ee.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:je},ee.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:je},ee.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:je},ee.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:je},ee.hostProperty={name:"\u0275\u0275hostProperty",moduleName:je},ee.property={name:"\u0275\u0275property",moduleName:je},ee.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:je},ee.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:je},ee.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:je},ee.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:je},ee.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:je},ee.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:je},ee.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:je},ee.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:je},ee.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:je},ee.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:je},ee.i18n={name:"\u0275\u0275i18n",moduleName:je},ee.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:je},ee.i18nExp={name:"\u0275\u0275i18nExp",moduleName:je},ee.i18nStart={name:"\u0275\u0275i18nStart",moduleName:je},ee.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:je},ee.i18nApply={name:"\u0275\u0275i18nApply",moduleName:je},ee.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:je},ee.pipe={name:"\u0275\u0275pipe",moduleName:je},ee.projection={name:"\u0275\u0275projection",moduleName:je},ee.projectionDef={name:"\u0275\u0275projectionDef",moduleName:je},ee.reference={name:"\u0275\u0275reference",moduleName:je},ee.inject={name:"\u0275\u0275inject",moduleName:je},ee.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:je},ee.directiveInject={name:"\u0275\u0275directiveInject",moduleName:je},ee.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:je},ee.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:je},ee.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:je},ee.forwardRef={name:"forwardRef",moduleName:je},ee.resolveForwardRef={name:"resolveForwardRef",moduleName:je},ee.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:je},ee.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:je},ee.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:je},ee.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:je},ee.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:je},ee.resolveBody={name:"\u0275\u0275resolveBody",moduleName:je},ee.defineComponent={name:"\u0275\u0275defineComponent",moduleName:je},ee.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:je},ee.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:je},ee.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:je},ee.ViewEncapsulation={name:"ViewEncapsulation",moduleName:je},ee.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:je},ee.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:je},ee.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:je},ee.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:je},ee.defineDirective={name:"\u0275\u0275defineDirective",moduleName:je},ee.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:je},ee.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:je},ee.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:je},ee.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:je},ee.defineInjector={name:"\u0275\u0275defineInjector",moduleName:je},ee.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:je},ee.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:je},ee.ModuleWithProviders={name:"ModuleWithProviders",moduleName:je},ee.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:je},ee.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:je},ee.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:je},ee.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:je},ee.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:je},ee.definePipe={name:"\u0275\u0275definePipe",moduleName:je},ee.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:je},ee.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:je},ee.setClassMetadata={name:"\u0275setClassMetadata",moduleName:je},ee.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:je},ee.viewQuery={name:"\u0275\u0275viewQuery",moduleName:je},ee.loadQuery={name:"\u0275\u0275loadQuery",moduleName:je},ee.contentQuery={name:"\u0275\u0275contentQuery",moduleName:je},ee.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:je},ee.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:je},ee.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:je},ee.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:je},ee.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:je},ee.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:je},ee.listener={name:"\u0275\u0275listener",moduleName:je},ee.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:je},ee.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:je},ee.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:je},ee.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:je},ee.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:je},ee.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:je},ee.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:je},ee.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:je},ee.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:je},ee.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:je};const gn=/-+([a-z0-9])/g;function xs(J,e,C){const K=J.indexOf(e);return-1==K?C:[J.slice(0,K).trim(),J.slice(K+1).trim()]}function cr(J){throw new Error(`Internal Error: ${J}`)}function la(J){if("string"==typeof J)return J;if(Array.isArray(J))return"["+J.map(la).join(", ")+"]";if(null==J)return""+J;if(J.overriddenName)return`${J.overriddenName}`;if(J.name)return`${J.name}`;if(!J.toString)return"object";const e=J.toString();if(null==e)return""+e;const C=e.indexOf("\n");return-1===C?e:e.substring(0,C)}const fr=(()=>typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)();class ca{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,C=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,C),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,C,K,ut){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=C&&!this.sourcesContent.has(C))throw new Error(`Unknown source file "${C}"`);if(null==e)throw new Error("The column in the generated code must be provided");if(e{e.set(de,Ce),C.push(de),K.push(this.sourcesContent.get(de)||null)});let ut="",Et=0,Nt=0,Yt=0,ae=0;return this.lines.forEach(de=>{Et=0,ut+=de.map(Ce=>{let Ue=ka(Ce.col0-Et);return Et=Ce.col0,null!=Ce.sourceUrl&&(Ue+=ka(e.get(Ce.sourceUrl)-Nt),Nt=e.get(Ce.sourceUrl),Ue+=ka(Ce.sourceLine0-Yt),Yt=Ce.sourceLine0,Ue+=ka(Ce.sourceCol0-ae),ae=Ce.sourceCol0),Ue}).join(","),ut+=";"}),ut=ut.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:C,sourcesContent:K,mappings:ut}}toJsComment(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function hs(J){let e="";const C=function Sr(J){let e=[];for(let C=0;C=55296&&K<=56319&&J.length>C+1){const ut=J.charCodeAt(C+1);ut>=56320&&ut<=57343&&(C++,K=(K-55296<<10)+ut-56320+65536)}K<=127?e.push(K):K<=2047?e.push(K>>6&31|192,63&K|128):K<=65535?e.push(K>>12|224,K>>6&63|128,63&K|128):K<=2097151&&e.push(K>>18&7|240,K>>12&63|128,K>>6&63|128,63&K|128)}return e}(J);for(let K=0;K>2),e+=us((3&ut)<<4|(null===Et?0:Et>>4)),e+=null===Et?"=":us((15&Et)<<2|(null===Nt?0:Nt>>6)),e+=null===Et||null===Nt?"=":us(63&Nt)}return e}(JSON.stringify(this,null,0)):""}}function ka(J){J=J<0?1+(-J<<1):J<<1;let e="";do{let C=31&J;(J>>=5)>0&&(C|=32),e+=us(C)}while(J>0);return e}function us(J){if(J<0||J>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[J]}const io=/'|\\|\n|\r|\$/g,Oo=/^[$A-Z_][0-9A-Z_$]*$/i;class mr{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}}class fo{static createRoot(){return new fo(0)}constructor(e){this._indent=e,this._lines=[new mr(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,C=""){this.print(e||null,C,!0)}lineIsEmpty(){return 0===this._currentLine.parts.length}lineLength(){return this._currentLine.indent*" ".length+this._currentLine.partsLength}print(e,C,K=!1){C.length>0&&(this._currentLine.parts.push(C),this._currentLine.partsLength+=C.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),K&&this._lines.push(new mr(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?el(e.indent)+e.parts.join(""):"").join("\n")}toSourceMapGenerator(e,C=0){const K=new ca(e);let ut=!1;const Et=()=>{ut||(K.addSource(e," ").addMapping(0,e,0,0),ut=!0)};for(let Nt=0;Nt{K.addLine();const ae=Nt.srcSpans,de=Nt.parts;let Ce=Nt.indent*" ".length,Ue=0;for(;Ueut)return K.srcSpans[Et];ut-=Nt.length}}return null}get sourceLines(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}class kr{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,C){if(void 0!==e.leadingComments)for(const K of e.leadingComments)K instanceof Pe?C.print(e,`/*${K.toString()}*/`,K.trailingNewline):K.multiline?C.print(e,`/* ${K.text} */`,K.trailingNewline):K.text.split("\n").forEach(ut=>{C.println(e,`// ${ut}`)})}visitExpressionStmt(e,C){return this.printLeadingComments(e,C),e.expr.visitExpression(this,C),C.println(e,";"),null}visitReturnStmt(e,C){return this.printLeadingComments(e,C),C.print(e,"return "),e.value.visitExpression(this,C),C.println(e,";"),null}visitIfStmt(e,C){this.printLeadingComments(e,C),C.print(e,"if ("),e.condition.visitExpression(this,C),C.print(e,") {");const K=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!K?(C.print(e," "),this.visitAllStatements(e.trueCase,C),C.removeEmptyLastLine(),C.print(e," ")):(C.println(),C.incIndent(),this.visitAllStatements(e.trueCase,C),C.decIndent(),K&&(C.println(e,"} else {"),C.incIndent(),this.visitAllStatements(e.falseCase,C),C.decIndent())),C.println(e,"}"),null}visitWriteVarExpr(e,C){const K=C.lineIsEmpty();return K||C.print(e,"("),C.print(e,`${e.name} = `),e.value.visitExpression(this,C),K||C.print(e,")"),null}visitWriteKeyExpr(e,C){const K=C.lineIsEmpty();return K||C.print(e,"("),e.receiver.visitExpression(this,C),C.print(e,"["),e.index.visitExpression(this,C),C.print(e,"] = "),e.value.visitExpression(this,C),K||C.print(e,")"),null}visitWritePropExpr(e,C){const K=C.lineIsEmpty();return K||C.print(e,"("),e.receiver.visitExpression(this,C),C.print(e,`.${e.name} = `),e.value.visitExpression(this,C),K||C.print(e,")"),null}visitInvokeFunctionExpr(e,C){return e.fn.visitExpression(this,C),C.print(e,"("),this.visitAllExpressions(e.args,C,","),C.print(e,")"),null}visitTaggedTemplateExpr(e,C){e.tag.visitExpression(this,C),C.print(e,"`"+e.template.elements[0].rawText);for(let K=1;K{C.print(e,`${Dr(K.key,this._escapeDollarInStrings,K.quoted)}:`),K.value.visitExpression(this,C)},e.entries,C,","),C.print(e,"}"),null}visitCommaExpr(e,C){return C.print(e,"("),this.visitAllExpressions(e.parts,C,","),C.print(e,")"),null}visitAllExpressions(e,C,K){this.visitAllObjects(ut=>ut.visitExpression(this,C),e,C,K)}visitAllObjects(e,C,K,ut){let Et=!1;for(let Nt=0;Nt0&&(K.lineLength()>80?(K.print(null,ut,!0),Et||(K.incIndent(),K.incIndent(),Et=!0)):K.print(null,ut,!1)),e(C[Nt]);Et&&(K.decIndent(),K.decIndent())}visitAllStatements(e,C){e.forEach(K=>K.visitStatement(this,C))}}function Dr(J,e,C=!0){if(null==J)return null;const K=J.replace(io,(...Et)=>"$"==Et[0]?e?"\\$":"$":"\n"==Et[0]?"\\n":"\r"==Et[0]?"\\r":`\\${Et[0]}`);return C||!Oo.test(K)?`'${K}'`:K}function el(J){let e="";for(let C=0;CK.value));return e?ti([],[new Qe(C)]):C}function Cr(J,e){return{expression:J,forwardRef:e}}function Cn({expression:J,forwardRef:e}){switch(e){case 0:case 1:return J;case 2:return Rr(J)}}function Rr(J){return Je(ee.forwardRef).callFn([ti([],[new Qe(J)])])}var Gn,Fn;function tr(J){const e=ai("t");let C=null;const K=Pl(J)?e:new Ji(Rt.Or,e,J.internalType);let ut=null;null!==J.deps?"invalid"!==J.deps&&(ut=new be(K,il(J.deps,J.target))):(C=ai(`\u0275${J.name}_BaseFactory`),ut=C.callFn([K]));const Et=[];let Nt=null;function Yt(de){const Ce=ai("r");Et.push(Ce.set(ie).toDeclStmt());const Ue=null!==ut?Ce.set(ut).toStmt():Je(ee.invalidFactory).callFn([]).toStmt();return Et.push(mi(e,[Ue],[Ce.set(de).toStmt()])),Ce}if(Pl(J)){const de=il(J.delegateDeps,J.target);Nt=Yt(new(J.delegateType===Gn.Class?be:ke)(J.delegate,de))}else Nt=function Qi(J){return void 0!==J.expression}(J)?Yt(J.expression):ut;if(null===Nt)Et.push(Je(ee.invalidFactory).callFn([]).toStmt());else if(null!==C){const de=Je(ee.getInheritedFactory).callFn([J.internalType]),Ce=new Ji(Rt.Or,C,C.set(de));Et.push(new Qe(Ce.callFn([K])))}else Et.push(new Qe(Nt));let ae=ti([new Hi("t",Ft)],Et,jt,void 0,`${J.name}_Factory`);return null!==C&&(ae=ti([],[new Fe(C.name),new Qe(ae)]).callFn([],void 0,!0)),{expression:ae,statements:[],type:ko(J)}}function ko(J){const e=null!==J.deps&&"invalid"!==J.deps?function bs(J){let e=!1;const C=J.map(K=>{const ut=function Lo(J){const e=[];return null!==J.attributeNameType&&e.push({key:"attribute",value:J.attributeNameType,quoted:!1}),J.optional&&e.push({key:"optional",value:Oe(!0),quoted:!1}),J.host&&e.push({key:"host",value:Oe(!0),quoted:!1}),J.self&&e.push({key:"self",value:Oe(!0),quoted:!1}),J.skipSelf&&e.push({key:"skipSelf",value:Oe(!0),quoted:!1}),e.length>0?fe(e):null}(K);return null!==ut?(e=!0,ut):Oe(null)});return e?Re(oe(C)):Ct}(J.deps):Ct;return Re(Je(ee.FactoryDeclaration,[ds(J.type.type,J.typeArgumentCount),e]))}function il(J,e){return J.map((C,K)=>function Ws(J,e,C){if(null===J.token)return Je(ee.invalidFactoryDep).callFn([Oe(C)]);if(null===J.attributeNameType){const K=0|(J.self?2:0)|(J.skipSelf?4:0)|(J.host?1:0)|(J.optional?8:0)|(e===Fn.Pipe?16:0);let ut=0!==K||J.optional?Oe(K):null;const Et=[J.token];ut&&Et.push(ut);const Nt=function Gh(J){switch(J){case Fn.Component:case Fn.Directive:case Fn.Pipe:return ee.directiveInject;case Fn.NgModule:case Fn.Injectable:default:return ee.inject}}(e);return Je(Nt).callFn(Et)}return Je(ee.injectAttribute).callFn([J.token])}(C,e,K))}function Pl(J){return void 0!==J.delegateType}!function(J){J[J.Class=0]="Class",J[J.Function=1]="Function"}(Gn||(Gn={})),function(J){J[J.Directive=0]="Directive",J[J.Component=1]="Component",J[J.Injectable=2]="Injectable",J[J.Pipe=3]="Pipe",J[J.NgModule=4]="NgModule"}(Fn||(Fn={}));class fp{constructor(e,C){this.value=e,this.sourceSpan=C}visit(e){throw new Error("visit() not implemented for Comment")}}class ec{constructor(e,C){this.value=e,this.sourceSpan=C}visit(e){return e.visitText(this)}}class Ro{constructor(e,C,K){this.value=e,this.sourceSpan=C,this.i18n=K}visit(e){return e.visitBoundText(this)}}class Zn{constructor(e,C,K,ut,Et,Nt){this.name=e,this.value=C,this.sourceSpan=K,this.keySpan=ut,this.valueSpan=Et,this.i18n=Nt}visit(e){return e.visitTextAttribute(this)}}class ha{constructor(e,C,K,ut,Et,Nt,Yt,ae,de){this.name=e,this.type=C,this.securityContext=K,this.value=ut,this.unit=Et,this.sourceSpan=Nt,this.keySpan=Yt,this.valueSpan=ae,this.i18n=de}static fromBoundElementProperty(e,C){if(void 0===e.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new ha(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,C)}visit(e){return e.visitBoundAttribute(this)}}class Hs{constructor(e,C,K,ut,Et,Nt,Yt,ae){this.name=e,this.type=C,this.handler=K,this.target=ut,this.phase=Et,this.sourceSpan=Nt,this.handlerSpan=Yt,this.keySpan=ae}static fromParsedEvent(e){const C=0===e.type?e.targetOrPhase:null,K=1===e.type?e.targetOrPhase:null;if(void 0===e.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new Hs(e.name,e.type,e.handler,C,K,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}}class ws{constructor(e,C,K,ut,Et,Nt,Yt,ae,de,Ce){this.name=e,this.attributes=C,this.inputs=K,this.outputs=ut,this.children=Et,this.references=Nt,this.sourceSpan=Yt,this.startSourceSpan=ae,this.endSourceSpan=de,this.i18n=Ce}visit(e){return e.visitElement(this)}}class pi{constructor(e,C,K,ut,Et,Nt,Yt,ae,de,Ce,Ue,ui){this.tagName=e,this.attributes=C,this.inputs=K,this.outputs=ut,this.templateAttrs=Et,this.children=Nt,this.references=Yt,this.variables=ae,this.sourceSpan=de,this.startSourceSpan=Ce,this.endSourceSpan=Ue,this.i18n=ui}visit(e){return e.visitTemplate(this)}}class vn{constructor(e,C,K,ut){this.selector=e,this.attributes=C,this.sourceSpan=K,this.i18n=ut,this.name="ng-content"}visit(e){return e.visitContent(this)}}class Es{constructor(e,C,K,ut,Et){this.name=e,this.value=C,this.sourceSpan=K,this.keySpan=ut,this.valueSpan=Et}visit(e){return e.visitVariable(this)}}class qc{constructor(e,C,K,ut,Et){this.name=e,this.value=C,this.sourceSpan=K,this.keySpan=ut,this.valueSpan=Et}visit(e){return e.visitReference(this)}}class qn{constructor(e,C,K,ut){this.vars=e,this.placeholders=C,this.sourceSpan=K,this.i18n=ut}visit(e){return e.visitIcu(this)}}function rr(J,e){const C=[];if(J.visit)for(const K of e){J.visit(K)||K.visit(J)}else for(const K of e){const ut=K.visit(J);ut&&C.push(ut)}return C}class Fr{constructor(e,C,K,ut,Et,Nt){this.nodes=e,this.placeholders=C,this.placeholderToMessage=K,this.meaning=ut,this.description=Et,this.customId=Nt,this.id=this.customId,this.legacyIds=[],this.messageString=function ua(J){const e=new nl;return J.map(K=>K.visit(e)).join("")}(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}}class Nr{constructor(e,C){this.value=e,this.sourceSpan=C}visit(e,C){return e.visitText(this,C)}}class sr{constructor(e,C){this.children=e,this.sourceSpan=C}visit(e,C){return e.visitContainer(this,C)}}class Un{constructor(e,C,K,ut){this.expression=e,this.type=C,this.cases=K,this.sourceSpan=ut}visit(e,C){return e.visitIcu(this,C)}}class Br{constructor(e,C,K,ut,Et,Nt,Yt,ae,de){this.tag=e,this.attrs=C,this.startName=K,this.closeName=ut,this.children=Et,this.isVoid=Nt,this.sourceSpan=Yt,this.startSourceSpan=ae,this.endSourceSpan=de}visit(e,C){return e.visitTagPlaceholder(this,C)}}class ns{constructor(e,C,K){this.value=e,this.name=C,this.sourceSpan=K}visit(e,C){return e.visitPlaceholder(this,C)}}class Gs{constructor(e,C,K){this.value=e,this.name=C,this.sourceSpan=K}visit(e,C){return e.visitIcuPlaceholder(this,C)}}class nl{visitText(e){return e.value}visitContainer(e){return e.children.map(C=>C.visit(this)).join("")}visitIcu(e){const C=Object.keys(e.cases).map(K=>`${K} {${e.cases[K].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${C.join(" ")}}`}visitTagPlaceholder(e){const C=e.children.map(K=>K.visit(this)).join("");return`{$${e.startName}}${C}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}}new class vo{visitTag(e){const C=this._serializeAttributes(e.attrs);if(0==e.children.length)return`<${e.name}${C}/>`;const K=e.children.map(ut=>ut.visit(this));return`<${e.name}${C}>${K.join("")}`}visitText(e){return e.value}visitDeclaration(e){return``}_serializeAttributes(e){const C=Object.keys(e).map(K=>`${K}="${e[K]}"`).join(" ");return C.length>0?" "+C:""}visitDoctype(e){return``}};function Gt(J){return J.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}const Ve="i18n-";function ln(J){return"i18n"===J||J.startsWith(Ve)}function mn(J){return J instanceof Fr}function In(J){return mn(J)&&1===J.nodes.length&&J.nodes[0]instanceof Un}function wn(J){return!!J.i18n}function On(J){return J.nodes[0]}function Xn(J,e=0){return`\ufffd${J}${e>0?`:${e}`:""}\ufffd`}function yo(J=0){let e=J;return()=>e++}function Ds(J){const e={};return J.forEach((C,K)=>{e[K]=Oe(C.length>1?`[${C.join("|")}]`:C[0])}),e}function jr(J,e,...C){const K=J.get(e)||[];K.push(...C),J.set(e,K)}function ss(J,e=0,C=0){const K=e,ut=new Map,Et=J instanceof Fr?J.nodes.find(Nt=>Nt instanceof sr):J;return Et&&Et.children.filter(Nt=>Nt instanceof ns).forEach((Nt,Yt)=>{const ae=Xn(K+Yt,C);jr(ut,Nt.name,ae)}),ut}function jo(J={},e){const C={};return J&&Object.keys(J).length&&Object.keys(J).forEach(K=>C[Vr(K,e)]=J[K]),C}function Vr(J,e=!0){const C=Gt(J);if(!e)return C;const K=C.split("_");if(1===K.length)return J.toLowerCase();let ut;/^\d+$/.test(K[K.length-1])&&(ut=K.pop());let Et=K.shift().toLowerCase();return K.length&&(Et+=K.map(Nt=>Nt.charAt(0).toUpperCase()+Nt.slice(1).toLowerCase()).join("")),ut?`${Et}_${ut}`:Et}function pa(J){return`MSG_${J}`.toUpperCase()}function rl(J){return new Fe(J.name,void 0,jt,void 0,J.sourceSpan)}const rc=/[-.]/,fa="_t",Ms="ctx",_o="rf",Zh="restoredCtx",Vo=new Set([ee.element,ee.elementStart,ee.elementEnd,ee.elementContainer,ee.elementContainerStart,ee.elementContainerEnd,ee.i18nExp,ee.listener,ee.classProp,ee.syntheticHostListener,ee.hostProperty,ee.syntheticHostProperty,ee.property,ee.propertyInterpolate1,ee.propertyInterpolate2,ee.propertyInterpolate3,ee.propertyInterpolate4,ee.propertyInterpolate5,ee.propertyInterpolate6,ee.propertyInterpolate7,ee.propertyInterpolate8,ee.propertyInterpolateV,ee.attribute,ee.attributeInterpolate1,ee.attributeInterpolate2,ee.attributeInterpolate3,ee.attributeInterpolate4,ee.attributeInterpolate5,ee.attributeInterpolate6,ee.attributeInterpolate7,ee.attributeInterpolate8,ee.attributeInterpolateV,ee.styleProp,ee.stylePropInterpolate1,ee.stylePropInterpolate2,ee.stylePropInterpolate3,ee.stylePropInterpolate4,ee.stylePropInterpolate5,ee.stylePropInterpolate6,ee.stylePropInterpolate7,ee.stylePropInterpolate8,ee.stylePropInterpolateV,ee.textInterpolate,ee.textInterpolate1,ee.textInterpolate2,ee.textInterpolate3,ee.textInterpolate4,ee.textInterpolate5,ee.textInterpolate6,ee.textInterpolate7,ee.textInterpolate8,ee.textInterpolateV]);function sl(J,e,C){return Je(e,null,J).callFn(C,J)}function ar(J,e){let C=null;return()=>(C||(J.push(new Fe("_t",void 0,Ft)),C=ai(e)),C)}function ol(J){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${J.constructor.name}`)}function yr(J){return Array.isArray(J)?oe(J.map(yr)):Oe(J,jt)}function xo(J,e){return Object.getOwnPropertyNames(J).length>0?function qh(J,e){return fe(Object.getOwnPropertyNames(J).map(C=>{const K=J[C];let ut,Et,Nt,Yt;return Array.isArray(K)?([Et,ut]=K,Nt=C,Yt=Et!==ut):(Nt=ut=C,Et=K,Yt=!1),{key:Nt,quoted:rc.test(Nt),value:e&&Yt?oe([yr(Et),yr(ut)]):yr(Et)}}))}(J,e):null}function oc(J){for(;tn(J[J.length-1]);)J.pop();return J}function al(J,e){if(Array.isArray(J.predicate)){let C=[];return J.predicate.forEach(K=>{const ut=K.split(",").map(Et=>Oe(Et.trim()));C.push(...ut)}),e.getConstLiteral(oe(C),!0)}switch(J.predicate.forwardRef){case 0:case 2:return J.predicate.expression;case 1:return Je(ee.resolveForwardRef).callFn([J.predicate.expression])}}class er{constructor(){this.values=[]}set(e,C){C&&this.values.push({key:e,value:C,quoted:!1})}toLiteralMap(){return fe(this.values)}}function zo(J){const{expressions:e,strings:C}=J;return 1===e.length&&2===C.length&&""===C[0]&&""===C[1]?1:e.length+C.length}function ma(J){const e=[];let C=null,K=null,ut=0;for(const Et of J){const Nt=("function"==typeof Et.paramsOrFn?Et.paramsOrFn():Et.paramsOrFn)??[],Yt=Array.isArray(Nt)?Nt:[Nt];ut<500&&K===Et.reference&&Vo.has(K)?(C=C.callFn(Yt,C.sourceSpan),ut++):(null!==C&&e.push(C.toStmt()),C=sl(Et.span,Et.reference,Yt),K=Et.reference,ut=0)}return null!==C&&e.push(C.toStmt()),e}function Uo(J,e){let C=null;const K={name:J.name,type:J.type,internalType:J.internalType,typeArgumentCount:J.typeArgumentCount,deps:[],target:Fn.Injectable};if(void 0!==J.useClass){const Yt=J.useClass.expression.isEquivalent(J.internalType);let ae;void 0!==J.deps&&(ae=J.deps),C=void 0!==ae?tr({...K,delegate:J.useClass.expression,delegateDeps:ae,delegateType:Gn.Class}):Yt?tr(K):{statements:[],expression:Qh(J.type.value,J.useClass.expression,e)}}else C=void 0!==J.useFactory?void 0!==J.deps?tr({...K,delegate:J.useFactory,delegateDeps:J.deps||[],delegateType:Gn.Function}):{statements:[],expression:ti([],[new Qe(J.useFactory.callFn([]))])}:void 0!==J.useValue?tr({...K,expression:J.useValue.expression}):void 0!==J.useExisting?tr({...K,expression:Je(ee.inject).callFn([J.useExisting.expression])}):{statements:[],expression:Qh(J.type.value,J.internalType,e)};const ut=J.internalType,Et=new er;return Et.set("token",ut),Et.set("factory",C.expression),null!==J.providedIn.expression.value&&Et.set("providedIn",Cn(J.providedIn)),{expression:Je(ee.\u0275\u0275defineInjectable).callFn([Et.toLiteralMap()],void 0,!0),type:Na(J),statements:C.statements}}function Na(J){return new Mt(Je(ee.InjectableDeclaration,[ds(J.type.type,J.typeArgumentCount)]))}function Qh(J,e,C){if(J.node===e.node)return e.prop("\u0275fac");if(!C)return va(e);return va(Je(ee.resolveForwardRef).callFn([e]))}function va(J){return ti([new Hi("t",Ft)],[new Qe(J.prop("\u0275fac").callFn([ai("t")]))])}const eh=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];class ih{static fromArray(e){return e?(function ll(J,e){if(null!=e&&(!Array.isArray(e)||2!=e.length))throw new Error(`Expected '${J}' to be an array, [start, end].`);if(null!=e){const C=e[0],K=e[1];eh.forEach(ut=>{if(ut.test(C)||ut.test(K))throw new Error(`['${C}', '${K}'] contains unusable interpolation symbol.`)})}}("interpolation",e),new ih(e[0],e[1])):Xs}constructor(e,C){this.start=e,this.end=C}}const Xs=new ih("{{","}}"),cl=123,En=125;function cc(J){return J>=9&&J<=32||160==J}function Zs(J){return 48<=J&&J<=57}function nu(J){return J>=97&&J<=122||J>=65&&J<=90}function Ko(J){return 10===J||13===J}function xm(J){return 48<=J&&J<=55}function yp(J){return 39===J||34===J||96===J}class Ps{constructor(e,C,K,ut){this.file=e,this.offset=C,this.line=K,this.col=ut}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){const C=this.file.content,K=C.length;let ut=this.offset,Et=this.line,Nt=this.col;for(;ut>0&&e<0;)if(ut--,e++,10==C.charCodeAt(ut)){Et--;const ae=C.substring(0,ut-1).lastIndexOf(String.fromCharCode(10));Nt=ae>0?ut-ae:ut}else Nt--;for(;ut0;){const Yt=C.charCodeAt(ut);ut++,e--,10==Yt?(Et++,Nt=0):Nt++}return new Ps(this.file,ut,Et,Nt)}getContext(e,C){const K=this.file.content;let ut=this.offset;if(null!=ut){ut>K.length-1&&(ut=K.length-1);let Et=ut,Nt=0,Yt=0;for(;Nt0&&(ut--,Nt++,"\n"!=K[ut]||++Yt!=C););for(Nt=0,Yt=0;Nt]${e.after}")`:this.msg}toString(){const e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}}let Bv=0;function za(J){return J.replace(/\W/g,"_")}const Cp='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';class bp extends kr{constructor(){super(!1)}visitWrappedNodeExpr(e,C){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,C){return C.print(e,`var ${e.name}`),e.value&&(C.print(e," = "),e.value.visitExpression(this,C)),C.println(e,";"),null}visitTaggedTemplateExpr(e,C){const K=e.template.elements;return e.tag.visitExpression(this,C),C.print(e,`(${Cp}(`),C.print(e,`[${K.map(ut=>Dr(ut.text,!1)).join(", ")}], `),C.print(e,`[${K.map(ut=>Dr(ut.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(ut=>{C.print(e,", "),ut.visitExpression(this,C)}),C.print(e,")"),null}visitFunctionExpr(e,C){return C.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,C),C.println(e,") {"),C.incIndent(),this.visitAllStatements(e.statements,C),C.decIndent(),C.print(e,"}"),null}visitDeclareFunctionStmt(e,C){return C.print(e,`function ${e.name}(`),this._visitParams(e.params,C),C.println(e,") {"),C.incIndent(),this.visitAllStatements(e.statements,C),C.decIndent(),C.println(e,"}"),null}visitLocalizedString(e,C){C.print(e,`$localize(${Cp}(`);const K=[e.serializeI18nHead()];for(let ut=1;utDr(ut.cooked,!1)).join(", ")}], `),C.print(e,`[${K.map(ut=>Dr(ut.raw,!1)).join(", ")}])`),e.expressions.forEach(ut=>{C.print(e,", "),ut.visitExpression(this,C)}),C.print(e,")"),null}_visitParams(e,C){this.visitAllObjects(K=>C.print(null,K.name),e,C,",")}}let rh;function pc(J){return function dc(){if(void 0===rh&&(rh=null,fr.trustedTypes))try{rh=fr.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:J=>J})}catch{}return rh}()?.createScript(J)||J}function su(...J){if(!fr.trustedTypes)return new Function(...J);const K=`(function anonymous(${J.slice(0,-1).join(",")}\n) { ${J[J.length-1]}\n})`,ut=fr.eval(pc(K));return void 0===ut.bind?new Function(...J):(ut.toString=()=>K,ut.bind(fr))}class Cm{evaluateStatements(e,C,K,ut){const Et=new bm(K),Nt=fo.createRoot();return C.length>0&&!function jv(J){return J.isEquivalent(Oe("use strict").toStmt())}(C[0])&&(C=[Oe("use strict").toStmt(),...C]),Et.visitAllStatements(C,Nt),Et.createReturnStmt(Nt),this.evaluateCode(e,Nt,Et.getArgs(),ut)}evaluateCode(e,C,K,ut){let Et=`"use strict";${C.toSource()}\n//# sourceURL=${e}`;const Nt=[],Yt=[];for(const de in K)Yt.push(K[de]),Nt.push(de);if(ut){const de=su(...Nt.concat("return null;")).toString(),Ce=de.slice(0,de.indexOf("return null;")).split("\n").length-1;Et+=`\n${C.toSourceMapGenerator(e,Ce).toJsComment()}`}const ae=su(...Nt.concat(Et));return this.executeFunction(ae,Yt)}executeFunction(e,C){return e(...C)}}class bm extends bp{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new Qe(new Wt(this._evalExportedVars.map(K=>new Xe(K,ai(K),!1)))).visitStatement(this,e)}getArgs(){const e={};for(let C=0;C=0?(C="anonymous_"+Bv++,e.__anonymousType=C):C=za(C),C}({reference:C})||"val";this._evalArgNames.push(`jit_${Et}_${ut}`)}K.print(e,this._evalArgNames[ut])}}function wm(J){const e=new er;null!==J.providers&&e.set("providers",J.providers),J.imports.length>0&&e.set("imports",oe(J.imports));return{expression:Je(ee.defineInjector).callFn([e.toLiteralMap()],void 0,!0),type:Em(J),statements:[]}}function Em(J){return new Mt(Je(ee.InjectorDeclaration,[new Mt(J.type.type)]))}class Ll{constructor(e){this.context=e}resolveExternalReference(e){if("@angular/core"!==e.moduleName)throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}}var ba,hl,Is,kn;function sd(J){const{adjacentType:e,internalType:C,bootstrap:K,declarations:ut,imports:Et,exports:Nt,schemas:Yt,containsForwardDecls:ae,selectorScopeMode:de,id:Ce}=J,Ue=[],ui=new er;if(ui.set("type",C),K.length>0&&ui.set("bootstrap",Lr(K,ae)),de===ba.Inline)ut.length>0&&ui.set("declarations",Lr(ut,ae)),Et.length>0&&ui.set("imports",Lr(Et,ae)),Nt.length>0&&ui.set("exports",Lr(Nt,ae));else if(de===ba.SideEffect){const Ui=function Gf(J){const{adjacentType:e,declarations:C,imports:K,exports:ut,containsForwardDecls:Et}=J,Nt=new er;if(C.length>0&&Nt.set("declarations",Lr(C,Et)),K.length>0&&Nt.set("imports",Lr(K,Et)),ut.length>0&&Nt.set("exports",Lr(ut,Et)),0===Object.keys(Nt.values).length)return null;const Yt=new ke(Je(ee.setNgModuleScope),[e,Nt.toLiteralMap()]),ae=function Tn(J){return hr("ngJitMode",J)}(Yt),de=new Dn([],[ae.toStmt()]);return new ke(de,[]).toStmt()}(J);null!==Ui&&Ue.push(Ui)}null!==Yt&&Yt.length>0&&ui.set("schemas",oe(Yt.map(Ui=>Ui.value))),null!==Ce&&(ui.set("id",Ce),Ue.push(Je(ee.registerNgModuleType).callFn([e,Ce]).toStmt()));return{expression:Je(ee.defineNgModule).callFn([ui.toLiteralMap()],void 0,!0),type:wp(J),statements:Ue}}function wp({type:J,declarations:e,exports:C,imports:K,includeImportTypes:ut,publicDeclarationTypes:Et}){return new Mt(Je(ee.NgModuleDeclaration,[new Mt(J.type),null===Et?fc(e):ou(Et),ut?fc(K):Ct,fc(C)]))}function fc(J){const e=J.map(C=>Vt(C.type));return J.length>0?Re(oe(e)):Ct}function ou(J){const e=J.map(C=>Vt(C));return J.length>0?Re(oe(e)):Ct}function Xf(J){const e=[];e.push({key:"name",value:Oe(J.pipeName),quoted:!1}),e.push({key:"type",value:J.type.value,quoted:!1}),e.push({key:"pure",value:Oe(J.pure),quoted:!1}),J.isStandalone&&e.push({key:"standalone",value:Oe(!0),quoted:!1});return{expression:Je(ee.definePipe).callFn([fe(e)],void 0,!0),type:$f(J),statements:[]}}function $f(J){return new Mt(Je(ee.PipeDeclaration,[ds(J.type.type,J.typeArgumentCount),new Mt(new se(J.pipeName)),new Mt(new se(J.isStandalone))]))}!function(J){J[J.Inline=0]="Inline",J[J.SideEffect=1]="SideEffect",J[J.Omit=2]="Omit"}(ba||(ba={})),function(J){J[J.Directive=0]="Directive",J[J.Pipe=1]="Pipe",J[J.NgModule=2]="NgModule"}(hl||(hl={}));class au{constructor(e,C,K,ut){this.input=C,this.errLocation=K,this.ctxLocation=ut,this.message=`Parser Error: ${e} ${K} [${C}] in ${ut}`}}class ul{constructor(e,C){this.start=e,this.end=C}toAbsolute(e){return new Qs(e+this.start,e+this.end)}}class Jr{constructor(e,C){this.span=e,this.sourceSpan=C}toString(){return"AST"}}class od extends Jr{constructor(e,C,K){super(e,C),this.nameSpan=K}}class wo extends Jr{visit(e,C=null){}}class sh extends Jr{visit(e,C=null){return e.visitImplicitReceiver(this,C)}}class ad extends sh{visit(e,C=null){return e.visitThisReceiver?.(this,C)}}class ms extends Jr{constructor(e,C,K){super(e,C),this.expressions=K}visit(e,C=null){return e.visitChain(this,C)}}class lu extends Jr{constructor(e,C,K,ut,Et){super(e,C),this.condition=K,this.trueExp=ut,this.falseExp=Et}visit(e,C=null){return e.visitConditional(this,C)}}class dl extends od{constructor(e,C,K,ut,Et){super(e,C,K),this.receiver=ut,this.name=Et}visit(e,C=null){return e.visitPropertyRead(this,C)}}class cu extends od{constructor(e,C,K,ut,Et,Nt){super(e,C,K),this.receiver=ut,this.name=Et,this.value=Nt}visit(e,C=null){return e.visitPropertyWrite(this,C)}}class ls extends od{constructor(e,C,K,ut,Et){super(e,C,K),this.receiver=ut,this.name=Et}visit(e,C=null){return e.visitSafePropertyRead(this,C)}}class Rl extends Jr{constructor(e,C,K,ut){super(e,C),this.receiver=K,this.key=ut}visit(e,C=null){return e.visitKeyedRead(this,C)}}class hu extends Jr{constructor(e,C,K,ut){super(e,C),this.receiver=K,this.key=ut}visit(e,C=null){return e.visitSafeKeyedRead(this,C)}}class ld extends Jr{constructor(e,C,K,ut,Et){super(e,C),this.receiver=K,this.key=ut,this.value=Et}visit(e,C=null){return e.visitKeyedWrite(this,C)}}class cd extends od{constructor(e,C,K,ut,Et,Nt){super(e,C,Nt),this.exp=K,this.name=ut,this.args=Et}visit(e,C=null){return e.visitPipe(this,C)}}class so extends Jr{constructor(e,C,K){super(e,C),this.value=K}visit(e,C=null){return e.visitLiteralPrimitive(this,C)}}class hd extends Jr{constructor(e,C,K){super(e,C),this.expressions=K}visit(e,C=null){return e.visitLiteralArray(this,C)}}class ud extends Jr{constructor(e,C,K,ut){super(e,C),this.keys=K,this.values=ut}visit(e,C=null){return e.visitLiteralMap(this,C)}}class qs extends Jr{constructor(e,C,K,ut){super(e,C),this.strings=K,this.expressions=ut}visit(e,C=null){return e.visitInterpolation(this,C)}}class wa extends Jr{constructor(e,C,K,ut,Et){super(e,C),this.operation=K,this.left=ut,this.right=Et}visit(e,C=null){return e.visitBinary(this,C)}}class pl extends wa{static createMinus(e,C,K){return new pl(e,C,"-",K,"-",new so(e,C,0),K)}static createPlus(e,C,K){return new pl(e,C,"+",K,"-",K,new so(e,C,0))}constructor(e,C,K,ut,Et,Nt,Yt){super(e,C,Et,Nt,Yt),this.operator=K,this.expr=ut,this.left=null,this.right=null,this.operation=null}visit(e,C=null){return void 0!==e.visitUnary?e.visitUnary(this,C):e.visitBinary(this,C)}}class Ep extends Jr{constructor(e,C,K){super(e,C),this.expression=K}visit(e,C=null){return e.visitPrefixNot(this,C)}}class uu extends Jr{constructor(e,C,K){super(e,C),this.expression=K}visit(e,C=null){return e.visitNonNullAssert(this,C)}}class Ua extends Jr{constructor(e,C,K,ut,Et){super(e,C),this.receiver=K,this.args=ut,this.argumentSpan=Et}visit(e,C=null){return e.visitCall(this,C)}}class Fl extends Jr{constructor(e,C,K,ut,Et){super(e,C),this.receiver=K,this.args=ut,this.argumentSpan=Et}visit(e,C=null){return e.visitSafeCall(this,C)}}class Qs{constructor(e,C){this.start=e,this.end=C}}class Nl extends Jr{constructor(e,C,K,ut,Et){super(new ul(0,null===C?0:C.length),new Qs(ut,null===C?ut:ut+C.length)),this.ast=e,this.source=C,this.location=K,this.errors=Et}visit(e,C=null){return e.visitASTWithSource?e.visitASTWithSource(this,C):this.ast.visit(e,C)}toString(){return`${this.source} in ${this.location}`}}class gc{constructor(e,C,K){this.sourceSpan=e,this.key=C,this.value=K}}class Wa{constructor(e,C,K){this.sourceSpan=e,this.key=C,this.value=K}}class Sp{visit(e,C){e.visit(this,C)}visitUnary(e,C){this.visit(e.expr,C)}visitBinary(e,C){this.visit(e.left,C),this.visit(e.right,C)}visitChain(e,C){this.visitAll(e.expressions,C)}visitConditional(e,C){this.visit(e.condition,C),this.visit(e.trueExp,C),this.visit(e.falseExp,C)}visitPipe(e,C){this.visit(e.exp,C),this.visitAll(e.args,C)}visitImplicitReceiver(e,C){}visitThisReceiver(e,C){}visitInterpolation(e,C){this.visitAll(e.expressions,C)}visitKeyedRead(e,C){this.visit(e.receiver,C),this.visit(e.key,C)}visitKeyedWrite(e,C){this.visit(e.receiver,C),this.visit(e.key,C),this.visit(e.value,C)}visitLiteralArray(e,C){this.visitAll(e.expressions,C)}visitLiteralMap(e,C){this.visitAll(e.values,C)}visitLiteralPrimitive(e,C){}visitPrefixNot(e,C){this.visit(e.expression,C)}visitNonNullAssert(e,C){this.visit(e.expression,C)}visitPropertyRead(e,C){this.visit(e.receiver,C)}visitPropertyWrite(e,C){this.visit(e.receiver,C),this.visit(e.value,C)}visitSafePropertyRead(e,C){this.visit(e.receiver,C)}visitSafeKeyedRead(e,C){this.visit(e.receiver,C),this.visit(e.key,C)}visitCall(e,C){this.visit(e.receiver,C),this.visitAll(e.args,C)}visitSafeCall(e,C){this.visit(e.receiver,C),this.visitAll(e.args,C)}visitAll(e,C){for(const K of e)this.visit(K,C)}}class mc{visitImplicitReceiver(e,C){return e}visitThisReceiver(e,C){return e}visitInterpolation(e,C){return new qs(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}visitLiteralPrimitive(e,C){return new so(e.span,e.sourceSpan,e.value)}visitPropertyRead(e,C){return new dl(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitPropertyWrite(e,C){return new cu(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}visitSafePropertyRead(e,C){return new ls(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}visitLiteralArray(e,C){return new hd(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitLiteralMap(e,C){return new ud(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}visitUnary(e,C){switch(e.operator){case"+":return pl.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return pl.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error(`Unknown unary operator ${e.operator}`)}}visitBinary(e,C){return new wa(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}visitPrefixNot(e,C){return new Ep(e.span,e.sourceSpan,e.expression.visit(this))}visitNonNullAssert(e,C){return new uu(e.span,e.sourceSpan,e.expression.visit(this))}visitConditional(e,C){return new lu(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}visitPipe(e,C){return new cd(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}visitKeyedRead(e,C){return new Rl(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}visitKeyedWrite(e,C){return new ld(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}visitCall(e,C){return new Ua(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}visitSafeCall(e,C){return new Fl(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}visitAll(e){const C=[];for(let K=0;Kui=>oe(ui),createLiteralMapConverter:Ue=>ui=>fe(Ue.map((wi,Ui)=>({key:wi.key,value:ui[Ui],quoted:wi.quoted}))),createPipeConverter:Ue=>{throw new Error(`Illegal State: Actions are not allowed to contain pipes. Pipe: ${Ue}`)}},C),ae=new _c(J,e,K,!1,ut,Et),de=[];Tm(Yt.visit(ae,kn.Statement),de),function Kf(J,e,C){for(let K=J-1;K>=0;K--)C.unshift(Am(e,K))}(ae.temporaryCount,K,de),ae.usesImplicitReceiver&&J.notifyImplicitReceiverUse();const Ce=de.length-1;if(Ce>=0){const Ue=de[Ce];Ue instanceof ri&&(de[Ce]=new Qe(Ue.expr))}return de}pd.event=ai("$event");class zv{constructor(e,C){this.stmts=e,this.currValExpr=C}}function yc(J,e,C,K){J||(J=new Ap);const ut=new _c(J,e,K,!1),Et=C.visit(ut,kn.Expression),Nt=Dp(ut,K);return ut.usesImplicitReceiver&&J.notifyImplicitReceiverUse(),new zv(Nt,Et)}function Dp(J,e){const C=[];for(let K=0;Kut.visit(this,C));return new xc(e.span,e.sourceSpan,K,this._converterFactory.createPipeConverter(e.name,K.length))}visitLiteralArray(e,C){const K=e.expressions.map(ut=>ut.visit(this,C));return new xc(e.span,e.sourceSpan,K,this._converterFactory.createLiteralArrayConverter(e.expressions.length))}visitLiteralMap(e,C){const K=e.values.map(ut=>ut.visit(this,C));return new xc(e.span,e.sourceSpan,K,this._converterFactory.createLiteralMapConverter(e.keys))}}class _c{constructor(e,C,K,ut,Et,Nt){this._localResolver=e,this._implicitReceiver=C,this.bindingId=K,this.supportsInterpolation=ut,this.baseSourceSpan=Et,this.implicitReceiverAccesses=Nt,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}visitUnary(e,C){let K;switch(e.operator){case"+":K=Ot.Plus;break;case"-":K=Ot.Minus;break;default:throw new Error(`Unsupported operator ${e.operator}`)}return Os(C,new zn(K,this._visit(e.expr,kn.Expression),void 0,this.convertSourceSpan(e.span)))}visitBinary(e,C){let K;switch(e.operation){case"+":K=Rt.Plus;break;case"-":K=Rt.Minus;break;case"*":K=Rt.Multiply;break;case"/":K=Rt.Divide;break;case"%":K=Rt.Modulo;break;case"&&":K=Rt.And;break;case"||":K=Rt.Or;break;case"==":K=Rt.Equals;break;case"!=":K=Rt.NotEquals;break;case"===":K=Rt.Identical;break;case"!==":K=Rt.NotIdentical;break;case"<":K=Rt.Lower;break;case">":K=Rt.Bigger;break;case"<=":K=Rt.LowerEquals;break;case">=":K=Rt.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,C);default:throw new Error(`Unsupported operation ${e.operation}`)}return Os(C,new Ji(K,this._visit(e.left,kn.Expression),this._visit(e.right,kn.Expression),void 0,this.convertSourceSpan(e.span)))}visitChain(e,C){return function Mp(J,e){if(J!==kn.Statement)throw new Error(`Expected a statement, but saw ${e}`)}(C,e),this.visitAll(e.expressions,C)}visitConditional(e,C){return Os(C,this._visit(e.condition,kn.Expression).conditional(this._visit(e.trueExp,kn.Expression),this._visit(e.falseExp,kn.Expression),this.convertSourceSpan(e.span)))}visitPipe(e,C){throw new Error(`Illegal state: Pipes should have been converted into functions. Pipe: ${e.name}`)}visitImplicitReceiver(e,C){return Ha(C,e),this.usesImplicitReceiver=!0,this._implicitReceiver}visitThisReceiver(e,C){return this.visitImplicitReceiver(e,C)}visitInterpolation(e,C){if(!this.supportsInterpolation)throw new Error("Unexpected interpolation");Ha(C,e);let K=[];for(let Et=0;Et=9&&(K=[oe(K)]),new pu(K)}visitKeyedRead(e,C){const K=this.leftMostSafeNode(e);return K?this.convertSafeAccess(e,K,C):Os(C,this._visit(e.receiver,kn.Expression).key(this._visit(e.key,kn.Expression)))}visitKeyedWrite(e,C){const K=this._visit(e.receiver,kn.Expression),ut=this._visit(e.key,kn.Expression),Et=this._visit(e.value,kn.Expression);return K===this._implicitReceiver&&this._localResolver.maybeRestoreView(),Os(C,K.key(ut).set(Et))}visitLiteralArray(e,C){throw new Error("Illegal State: literal arrays should have been converted into functions")}visitLiteralMap(e,C){throw new Error("Illegal State: literal maps should have been converted into functions")}visitLiteralPrimitive(e,C){const K=null===e.value||void 0===e.value||!0===e.value||!0===e.value?jt:void 0;return Os(C,Oe(e.value,K,this.convertSourceSpan(e.span)))}_getLocal(e,C){return this._localResolver.globals?.has(e)&&C instanceof ad?null:this._localResolver.getLocal(e)}visitPrefixNot(e,C){return Os(C,qe(this._visit(e.expression,kn.Expression)))}visitNonNullAssert(e,C){return Os(C,this._visit(e.expression,kn.Expression))}visitPropertyRead(e,C){const K=this.leftMostSafeNode(e);if(K)return this.convertSafeAccess(e,K,C);{let ut=null;const Et=this.usesImplicitReceiver,Nt=this._visit(e.receiver,kn.Expression);return Nt===this._implicitReceiver&&(ut=this._getLocal(e.name,e.receiver),ut&&(this.usesImplicitReceiver=Et,this.addImplicitReceiverAccess(e.name))),null==ut&&(ut=Nt.prop(e.name,this.convertSourceSpan(e.span))),Os(C,ut)}}visitPropertyWrite(e,C){const K=this._visit(e.receiver,kn.Expression),ut=this.usesImplicitReceiver;let Et=null;if(K===this._implicitReceiver){const Nt=this._getLocal(e.name,e.receiver);if(Nt){if(!(Nt instanceof lr)){const Yt=e.name,ae=e.value instanceof dl?e.value.name:void 0;throw new Error(`Cannot assign value "${ae}" to template variable "${Yt}". Template variables are read-only.`)}Et=Nt,this.usesImplicitReceiver=ut,this.addImplicitReceiverAccess(e.name)}}return null===Et&&(Et=K.prop(e.name,this.convertSourceSpan(e.span))),Os(C,Et.set(this._visit(e.value,kn.Expression)))}visitSafePropertyRead(e,C){return this.convertSafeAccess(e,this.leftMostSafeNode(e),C)}visitSafeKeyedRead(e,C){return this.convertSafeAccess(e,this.leftMostSafeNode(e),C)}visitAll(e,C){return e.map(K=>this._visit(K,C))}visitCall(e,C){const K=this.leftMostSafeNode(e);if(K)return this.convertSafeAccess(e,K,C);const ut=this.visitAll(e.args,kn.Expression);if(e instanceof xc)return Os(C,e.converter(ut));const Et=e.receiver;if(Et instanceof dl&&Et.receiver instanceof sh&&!(Et.receiver instanceof ad)&&"$any"===Et.name){if(1!==ut.length)throw new Error(`Invalid call to $any, expected 1 argument but received ${ut.length||"none"}`);return Os(C,ut[0])}return Os(C,this._visit(Et,kn.Expression).callFn(ut,this.convertSourceSpan(e.span)))}visitSafeCall(e,C){return this.convertSafeAccess(e,this.leftMostSafeNode(e),C)}_visit(e,C){return this._resultMap.get(e)||(this._nodeMap.get(e)||e).visit(this,C)}convertSafeAccess(e,C,K){let Et,ut=this._visit(C.receiver,kn.Expression);this.needsTemporaryInSafeAccess(C.receiver)&&(Et=this.allocateTemporary(),ut=Et.set(ut),this._resultMap.set(C.receiver,Et));const Nt=ut.isBlank();C instanceof Fl?this._nodeMap.set(C,new Ua(C.span,C.sourceSpan,C.receiver,C.args,C.argumentSpan)):C instanceof hu?this._nodeMap.set(C,new Rl(C.span,C.sourceSpan,C.receiver,C.key)):this._nodeMap.set(C,new dl(C.span,C.sourceSpan,C.nameSpan,C.receiver,C.name));const Yt=this._visit(e,kn.Expression);return this._nodeMap.delete(C),Et&&this.releaseTemporary(Et),Os(K,Nt.conditional(ie,Yt))}convertNullishCoalesce(e,C){const K=this._visit(e.left,kn.Expression),ut=this._visit(e.right,kn.Expression),Et=this.allocateTemporary();return this.releaseTemporary(Et),Os(C,Et.set(K).notIdentical(ie).and(Et.notIdentical(Oe(void 0))).conditional(Et,ut))}leftMostSafeNode(e){const C=(K,ut)=>(this._nodeMap.get(ut)||ut).visit(K);return e.visit({visitUnary:K=>null,visitBinary:K=>null,visitChain:K=>null,visitConditional:K=>null,visitCall(K){return C(this,K.receiver)},visitSafeCall(K){return C(this,K.receiver)||K},visitImplicitReceiver:K=>null,visitThisReceiver:K=>null,visitInterpolation:K=>null,visitKeyedRead(K){return C(this,K.receiver)},visitKeyedWrite:K=>null,visitLiteralArray:K=>null,visitLiteralMap:K=>null,visitLiteralPrimitive:K=>null,visitPipe:K=>null,visitPrefixNot:K=>null,visitNonNullAssert(K){return C(this,K.expression)},visitPropertyRead(K){return C(this,K.receiver)},visitPropertyWrite:K=>null,visitSafePropertyRead(K){return C(this,K.receiver)||K},visitSafeKeyedRead(K){return C(this,K.receiver)||K}})}needsTemporaryInSafeAccess(e){const C=(ut,Et)=>Et&&(this._nodeMap.get(Et)||Et).visit(ut);return e.visit({visitUnary(ut){return C(this,ut.expr)},visitBinary(ut){return C(this,ut.left)||C(this,ut.right)},visitChain:ut=>!1,visitConditional(ut){return C(this,ut.condition)||C(this,ut.trueExp)||C(this,ut.falseExp)},visitCall:ut=>!0,visitSafeCall:ut=>!0,visitImplicitReceiver:ut=>!1,visitThisReceiver:ut=>!1,visitInterpolation(ut){return((ut,Et)=>Et.some(Nt=>C(ut,Nt)))(this,ut.expressions)},visitKeyedRead:ut=>!1,visitKeyedWrite:ut=>!1,visitLiteralArray:ut=>!0,visitLiteralMap:ut=>!0,visitLiteralPrimitive:ut=>!1,visitPipe:ut=>!0,visitPrefixNot(ut){return C(this,ut.expression)},visitNonNullAssert(ut){return C(this,ut.expression)},visitPropertyRead:ut=>!1,visitPropertyWrite:ut=>!1,visitSafePropertyRead:ut=>!1,visitSafeKeyedRead:ut=>!1})}allocateTemporary(){const e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ne(fd(this.bindingId,e))}releaseTemporary(e){if(this._currentTemporary--,e.name!=fd(this.bindingId,this._currentTemporary))throw new Error(`Temporary ${e.name} released out of order`)}convertSourceSpan(e){if(this.baseSourceSpan){const C=this.baseSourceSpan.start.moveBy(e.start),K=this.baseSourceSpan.start.moveBy(e.end),ut=this.baseSourceSpan.fullStart.moveBy(e.start);return new Kn(C,K,ut)}return null}addImplicitReceiverAccess(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}function Tm(J,e){Array.isArray(J)?J.forEach(C=>Tm(C,e)):e.push(J)}function oh(){throw new Error("Unsupported operation")}class pu extends ye{constructor(e){super(null,null),this.args=e,this.isConstant=oh,this.isEquivalent=oh,this.visitExpression=oh}}class Ap{constructor(e){this.globals=e}notifyImplicitReceiverUse(){}maybeRestoreView(){}getLocal(e){return e===pd.event.name?pd.event:null}}class xc extends Ua{constructor(e,C,K,ut){super(e,C,new wo(e,C),K,null),this.converter=ut}}let fl;function gd(){return fl||(fl={},gl(R.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),gl(R.STYLE,["*|style"]),gl(R.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),gl(R.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),fl}function gl(J,e){for(const C of e)fl[C.toLowerCase()]=J}const md=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function ml(J){return md.has(J.toLowerCase())}const Zf=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]);class Tp{constructor(){this.strictStyling=!0,this._animationDeclarationKeyframesRe=/(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g}shimCssText(e,C,K=""){const ut=function ig(J){return J.match(Fp)||[]}(e);return e=function yd(J){return J.replace(Om,"")}(e),e=this._insertDirectives(e),[this._scopeCssText(e,C,K),...ut].join("\n")}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,C){const K=new Set,ut=vu(e,Et=>this._scopeLocalKeyframeDeclarations(Et,C,K));return vu(ut,Et=>this._scopeAnimationRule(Et,C,K))}_scopeLocalKeyframeDeclarations(e,C,K){return{...e,selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(ut,Et,Nt,Yt,ae)=>(K.add(Eo(Yt,Nt)),`${Et}${Nt}${C}_${Yt}${Nt}${ae}`))}}_scopeAnimationKeyframe(e,C,K){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(ut,Et,Nt,Yt,ae)=>`${Et}${Nt}${Yt=`${K.has(Eo(Yt,Nt))?C+"_":""}${Yt}`}${Nt}${ae}`)}_scopeAnimationRule(e,C,K){let ut=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation(?:\s*):(?:\s*))([^;]+)/g,(Et,Nt,Yt)=>Nt+Yt.replace(this._animationDeclarationKeyframesRe,(ae,de,Ce="",Ue,ui)=>Ue?`${de}${this._scopeAnimationKeyframe(`${Ce}${Ue}${Ce}`,C,K)}`:Zf.has(ui)?ae:`${de}${this._scopeAnimationKeyframe(ui,C,K)}`));return ut=ut.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(Et,Nt,Yt)=>`${Nt}${Yt.split(",").map(ae=>this._scopeAnimationKeyframe(ae,C,K)).join(",")}`),{...e,content:ut}}_insertPolyfillDirectivesInCssText(e){return e.replace(Ip,function(...C){return C[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(fu,(...C)=>{const K=C[0].replace(C[1],"").replace(C[2],"");return C[4]+K})}_scopeCssText(e,C,K){const ut=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),C&&(e=this._scopeKeyframesRelatedCss(e,C),e=this._scopeSelectors(e,C,K)),(e=e+"\n"+ut).trim()}_extractUnscopedRulesFromCssText(e){let K,C="";for(qf.lastIndex=0;null!==(K=qf.exec(e));){C+=K[0].replace(K[2],"").replace(K[1],K[4])+"\n\n"}return C}_convertColonHost(e){return e.replace(Pm,(C,K,ut)=>{if(K){const Et=[],Nt=K.split(",").map(Yt=>Yt.trim());for(const Yt of Nt){if(!Yt)break;const ae=Ga+Yt.replace(gu,"")+ut;Et.push(ae)}return Et.join(",")}return Ga+ut})}_convertColonHostContext(e){return e.replace(Qf,C=>{const K=[[]];let ut;for(;ut=Jf.exec(C);){const Et=(ut[1]??"").trim().split(",").map(Yt=>Yt.trim()).filter(Yt=>""!==Yt),Nt=K.length;jl(K,Et.length);for(let Yt=0;Ytfunction Ec(J,e){const C=Ga;mu.lastIndex=0;const K=mu.test(e);if(0===J.length)return C+e;const ut=[J.pop()||""];for(;J.length>0;){const Et=ut.length,Nt=J.pop();for(let Yt=0;YtK?`${Et}${e}`:`${Et}${C}${e}, ${Et} ${C}${e}`).join(",")}(Et,C)).join(", ")})}_convertShadowDOMSelectors(e){return Cc.reduce((C,K)=>C.replace(K," "),e)}_scopeSelectors(e,C,K){return vu(e,ut=>{let Et=ut.selector,Nt=ut.content;return"@"!==ut.selector[0]?Et=this._scopeSelector(ut.selector,C,K,this.strictStyling):ut.selector.startsWith("@media")||ut.selector.startsWith("@supports")||ut.selector.startsWith("@document")||ut.selector.startsWith("@layer")||ut.selector.startsWith("@container")?Nt=this._scopeSelectors(ut.content,C,K):(ut.selector.startsWith("@font-face")||ut.selector.startsWith("@page"))&&(Nt=this._stripScopingSelectors(ut.content)),new Yo(Et,Nt)})}_stripScopingSelectors(e){return vu(e,C=>{const K=C.selector.replace(tg," ").replace(vd," ");return new Yo(K,C.content)})}_scopeSelector(e,C,K,ut){return e.split(",").map(Et=>Et.trim().split(tg)).map(Et=>{const[Nt,...Yt]=Et;return[(de=>this._selectorNeedsScoping(de,C)?ut?this._applyStrictSelectorScope(de,C,K):this._applySelectorScope(de,C,K):de)(Nt),...Yt].join(" ")}).join(", ")}_selectorNeedsScoping(e,C){return!this._makeScopeMatcher(C).test(e)}_makeScopeMatcher(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+Im,"m")}_applySelectorScope(e,C,K){return this._applySimpleSelectorScope(e,C,K)}_applySimpleSelectorScope(e,C,K){if(mu.lastIndex=0,mu.test(e)){const ut=this.strictStyling?`[${K}]`:C;return e.replace(vd,(Et,Nt)=>Nt.replace(/([^:]*)(:*)(.*)/,(Yt,ae,de,Ce)=>ae+ut+de+Ce)).replace(mu,ut+" ")}return C+" "+e}_applyStrictSelectorScope(e,C,K){const Et="["+(C=C.replace(/\[is=([^\]]*)\]/g,(Ui,...Ri)=>Ri[0]))+"]",Nt=Ui=>{let Ri=Ui.trim();if(!Ri)return"";if(Ui.indexOf(Ga)>-1)Ri=this._applySimpleSelectorScope(Ui,C,K);else{const zi=Ui.replace(mu,"");if(zi.length>0){const Wi=zi.match(/([^:]*)(:*)(.*)/);Wi&&(Ri=Wi[1]+Et+Wi[2]+Wi[3])}}return Ri},Yt=new Pp(e);let Ce,ae="",de=0;const Ue=/( |>|\+|~(?!=))\s*/g;let xi=!((e=Yt.content()).indexOf(Ga)>-1);for(;null!==(Ce=Ue.exec(e));){const Ui=Ce[1],Ri=e.slice(de,Ce.index).trim();if(Ri.match(Rp)&&e[Ce.index+1]?.match(/[a-fA-F\d]/))continue;xi=xi||Ri.indexOf(Ga)>-1;ae+=`${xi?Nt(Ri):Ri} ${Ui} `,de=Ue.lastIndex}const wi=e.substring(de);return xi=xi||wi.indexOf(Ga)>-1,ae+=xi?Nt(wi):wi,Yt.restore(ae)}_insertPolyfillHostInCssText(e){return e.replace(Lp,Op).replace(eg,gu)}}class Pp{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=this._escapeRegexMatches(e,/(\\.)/g),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(C,K,ut)=>{const Et=`__ph-${this.index}__`;return this.placeholders.push(ut),this.index++,K+Et})}restore(e){return e.replace(Rp,(C,K)=>this.placeholders[+K])}content(){return this._content}_escapeRegexMatches(e,C){return e.replace(C,(K,ut)=>{const Et=`__ph-${this.index}__`;return this.placeholders.push(ut),this.index++,Et})}}const Ip=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,fu=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,qf=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,gu="-shadowcsshost",Op="-shadowcsscontext",kp="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Pm=new RegExp(gu+kp,"gim"),Qf=new RegExp(Op+kp,"gim"),Jf=new RegExp(Op+kp,"im"),Ga=gu+"-no-combinator",vd=/-shadowcsshost-no-combinator([^\s]*)/,Cc=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],tg=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Im="([>\\s~+[.,{:][\\s\\S]*)?$",mu=/-shadowcsshost/gim,eg=/:host/gim,Lp=/:host-context/gim,Om=/\/\*[\s\S]*?\*\//g,Rp=/__ph-(\d+)__/g;const Fp=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;const _d="%BLOCK%",ng=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,bc=new Map([["{","}"]]),rg="%COMMA_IN_PLACEHOLDER%",sg="%SEMI_IN_PLACEHOLDER%",ks="%COLON_IN_PLACEHOLDER%",vl=new RegExp(rg,"g"),xd=new RegExp(sg,"g"),Js=new RegExp(ks,"g");class Yo{constructor(e,C){this.selector=e,this.content=C}}function vu(J,e){const C=function og(J){let e=J,C=null;for(let K=0;K{const Yt=Nt[2];let ae="",de=Nt[4],Ce="";de&&de.startsWith("{"+_d)&&(ae=K.blocks[ut++],de=de.substring(_d.length+1),Ce="{");const Ue=e(new Yo(Yt,ae));return`${Nt[1]}${Ue.selector}${Nt[3]}${Ce}${Ue.content}${de}`}))}class km{constructor(e,C){this.escapedString=e,this.blocks=C}}const wc={";":sg,",":rg,":":ks};function Eo(J,e){return e?J.replace(/((?:^|[^\\])(?:\\\\)*)\\(?=['"])/g,"$1"):J}function jl(J,e){const C=J.length;for(let K=1;Ke.charAt(0)+"-"+e.charAt(1)).toLowerCase()}class Sc{constructor(e){this._directiveExpr=e,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}registerBoundInput(e){let C=null,K=e.name;switch(e.type){case 0:C=this.registerInputBasedOnName(K,e.value,e.sourceSpan);break;case 3:C=this.registerStyleInput(K,!1,e.value,e.sourceSpan,e.unit);break;case 2:C=this.registerClassInput(K,!1,e.value,e.sourceSpan)}return!!C}registerInputBasedOnName(e,C,K){let ut=null;const Et=e.substring(0,6),Nt="style"===e||"style."===Et||"style!"===Et;if(Nt||!Nt&&("class"===e||"class."===Et||"class!"===Et)){const ae="."!==e.charAt(5),de=e.slice(ae?5:6);ut=Nt?this.registerStyleInput(de,ae,C,K):this.registerClassInput(de,ae,C,K)}return ut}registerStyleInput(e,C,K,ut,Et){if(bd(K))return null;(function ch(J){return J.startsWith("--")})(e)||(e=yu(e));const{property:Nt,hasOverrideFlag:Yt,suffix:ae}=Dc(e),de={name:Nt,suffix:Et="string"==typeof Et&&0!==Et.length?Et:ae,value:K,sourceSpan:ut,hasOverrideFlag:Yt};return C?this._styleMapInput=de:((this._singleStyleInputs=this._singleStyleInputs||[]).push(de),Cd(this._stylesIndex,Nt)),this._lastStylingInput=de,this._firstStylingInput=this._firstStylingInput||de,this._checkForPipes(K),this.hasBindings=!0,de}registerClassInput(e,C,K,ut){if(bd(K))return null;const{property:Et,hasOverrideFlag:Nt}=Dc(e),Yt={name:Et,value:K,sourceSpan:ut,hasOverrideFlag:Nt,suffix:null};return C?this._classMapInput=Yt:((this._singleClassInputs=this._singleClassInputs||[]).push(Yt),Cd(this._classesIndex,Et)),this._lastStylingInput=Yt,this._firstStylingInput=this._firstStylingInput||Yt,this._checkForPipes(K),this.hasBindings=!0,Yt}_checkForPipes(e){e instanceof Nl&&e.ast instanceof cd&&(this.hasBindingsWithPipes=!0)}registerStyleAttr(e){this._initialStyleValues=function lh(J){const e=[];let C=0,K=0,ut=0,Et=0,Nt=0,Yt=null,ae=!1;for(;C0,0===ut?ut=39:39===ut&&92!==J.charCodeAt(C-1)&&(ut=0);break;case 34:ae=ae||Et>0,0===ut?ut=34:34===ut&&92!==J.charCodeAt(C-1)&&(ut=0);break;case 58:!Yt&&0===K&&0===ut&&(Yt=yu(J.substring(Nt,C-1).trim()),Et=C);break;case 59:if(Yt&&Et>0&&0===K&&0===ut){const Ce=J.substring(Et,C-1).trim();e.push(Yt,ae?lg(Ce):Ce),Nt=C,Et=0,Yt=null,ae=!1}}if(Yt&&Et){const de=J.slice(Et).trim();e.push(Yt,ae?lg(de):de)}return e}(e),this._hasInitialValues=!0}registerClassAttr(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}populateInitialStylingAttrs(e){if(this._initialClassValues.length){e.push(Oe(1));for(let C=0;C{const ae=Yt(Et);return Array.isArray(ae)?ae:[ae]}}]}}_buildSingleInputs(e,C,K,ut,Et){const Nt=[];return C.forEach(Yt=>{const ae=Nt[Nt.length-1],de=Yt.value.visit(K);let Ce=e,Ue=2;de instanceof qs&&(Ue+=de.expressions.length,ut&&(Ce=ut(de)));const ui={sourceSpan:Yt.sourceSpan,allocateBindingSlots:Ue,supportsInterpolation:!!ut,params:xi=>{const wi=[];wi.push(Oe(Yt.name));const Ui=xi(de);return Array.isArray(Ui)?wi.push(...Ui):wi.push(Ui),!Et&&null!==Yt.suffix&&wi.push(Oe(Yt.suffix)),wi}};ae&&ae.reference===Ce?ae.calls.push(ui):Nt.push({reference:Ce,calls:[ui]})}),Nt}_buildClassInputs(e){return this._singleClassInputs?this._buildSingleInputs(ee.classProp,this._singleClassInputs,e,null,!0):[]}_buildStyleInputs(e){return this._singleStyleInputs?this._buildSingleInputs(ee.styleProp,this._singleStyleInputs,e,_u,!1):[]}buildUpdateLevelInstructions(e){const C=[];if(this.hasBindings){const K=this.buildStyleMapInstruction(e);K&&C.push(K);const ut=this.buildClassMapInstruction(e);ut&&C.push(ut),C.push(...this._buildStyleInputs(e)),C.push(...this._buildClassInputs(e))}return C}}function Cd(J,e){J.has(e)||J.set(e,J.size)}function Dc(J){let e=!1;const C=J.indexOf("!important");-1!==C&&(J=C>0?J.substring(0,C):"",e=!0);let K=null,ut=J;const Et=J.lastIndexOf(".");return Et>0&&(K=J.slice(Et+1),ut=J.substring(0,Et)),{property:ut,suffix:K,hasOverrideFlag:e}}function _u(J){switch(zo(J)){case 1:return ee.styleProp;case 3:return ee.stylePropInterpolate1;case 5:return ee.stylePropInterpolate2;case 7:return ee.stylePropInterpolate3;case 9:return ee.stylePropInterpolate4;case 11:return ee.stylePropInterpolate5;case 13:return ee.stylePropInterpolate6;case 15:return ee.stylePropInterpolate7;case 17:return ee.stylePropInterpolate8;default:return ee.stylePropInterpolateV}}function bd(J){return J instanceof Nl&&(J=J.ast),J instanceof wo}var dn;!function(J){J[J.Character=0]="Character",J[J.Identifier=1]="Identifier",J[J.PrivateIdentifier=2]="PrivateIdentifier",J[J.Keyword=3]="Keyword",J[J.String=4]="String",J[J.Operator=5]="Operator",J[J.Number=6]="Number",J[J.Error=7]="Error"}(dn||(dn={}));const Fm=["var","let","as","null","undefined","true","false","if","else","this"];class Np{tokenize(e){const C=new jp(e),K=[];let ut=C.scanToken();for(;null!=ut;)K.push(ut),ut=C.scanToken();return K}}class _l{constructor(e,C,K,ut,Et){this.index=e,this.end=C,this.type=K,this.numValue=ut,this.strValue=Et}isCharacter(e){return this.type==dn.Character&&this.numValue==e}isNumber(){return this.type==dn.Number}isString(){return this.type==dn.String}isOperator(e){return this.type==dn.Operator&&this.strValue==e}isIdentifier(){return this.type==dn.Identifier}isPrivateIdentifier(){return this.type==dn.PrivateIdentifier}isKeyword(){return this.type==dn.Keyword}isKeywordLet(){return this.type==dn.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==dn.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==dn.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==dn.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==dn.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==dn.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==dn.Keyword&&"this"==this.strValue}isError(){return this.type==dn.Error}toNumber(){return this.type==dn.Number?this.numValue:-1}toString(){switch(this.type){case dn.Character:case dn.Identifier:case dn.Keyword:case dn.Operator:case dn.PrivateIdentifier:case dn.String:case dn.Error:return this.strValue;case dn.Number:return this.numValue.toString();default:return null}}}function cg(J,e,C){return new _l(J,e,dn.Character,C,String.fromCharCode(C))}function hh(J,e,C){return new _l(J,e,dn.Operator,0,C)}const vs=new _l(-1,-1,dn.Character,0,"");class jp{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,C=this.length;let K=this.peek,ut=this.index;for(;K<=32;){if(++ut>=C){K=0;break}K=e.charCodeAt(ut)}if(this.peek=K,this.index=ut,ut>=C)return null;if(wd(K))return this.scanIdentifier();if(Zs(K))return this.scanNumber(ut);const Et=ut;switch(K){case 46:return this.advance(),Zs(this.peek)?this.scanNumber(Et):cg(Et,this.index,46);case 40:case 41:case cl:case En:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(Et,K);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(Et,String.fromCharCode(K));case 63:return this.scanQuestion(Et);case 60:case 62:return this.scanComplexOperator(Et,String.fromCharCode(K),61,"=");case 33:case 61:return this.scanComplexOperator(Et,String.fromCharCode(K),61,"=",61,"=");case 38:return this.scanComplexOperator(Et,"&",38,"&");case 124:return this.scanComplexOperator(Et,"|",124,"|");case 160:for(;cc(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(K)}]`,0)}scanCharacter(e,C){return this.advance(),cg(e,this.index,C)}scanOperator(e,C){return this.advance(),hh(e,this.index,C)}scanComplexOperator(e,C,K,ut,Et,Nt){this.advance();let Yt=C;return this.peek==K&&(this.advance(),Yt+=ut),null!=Et&&this.peek==Et&&(this.advance(),Yt+=Nt),hh(e,this.index,Yt)}scanIdentifier(){const e=this.index;for(this.advance();xu(this.peek);)this.advance();const C=this.input.substring(e,this.index);return Fm.indexOf(C)>-1?function hg(J,e,C){return new _l(J,e,dn.Keyword,0,C)}(e,this.index,C):function Nm(J,e,C){return new _l(J,e,dn.Identifier,0,C)}(e,this.index,C)}scanPrivateIdentifier(){const e=this.index;if(this.advance(),!wd(this.peek))return this.error("Invalid character [#]",-1);for(;xu(this.peek);)this.advance();const C=this.input.substring(e,this.index);return function Bm(J,e,C){return new _l(J,e,dn.PrivateIdentifier,0,C)}(e,this.index,C)}scanNumber(e){let C=this.index===e,K=!1;for(this.advance();;){if(!Zs(this.peek))if(95===this.peek){if(!Zs(this.input.charCodeAt(this.index-1))||!Zs(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);K=!0}else if(46===this.peek)C=!1;else{if(!pg(this.peek))break;if(this.advance(),uh(this.peek)&&this.advance(),!Zs(this.peek))return this.error("Invalid exponent",-1);C=!1}this.advance()}let ut=this.input.substring(e,this.index);K&&(ut=ut.replace(/_/g,""));const Et=C?function Vm(J){const e=parseInt(J);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+J);return e}(ut):parseFloat(ut);return function Bp(J,e,C){return new _l(J,e,dn.Number,C,"")}(e,this.index,Et)}scanString(){const e=this.index,C=this.peek;this.advance();let K="",ut=this.index;const Et=this.input;for(;this.peek!=C;)if(92==this.peek){let Yt;if(K+=Et.substring(ut,this.index),this.advance(),117==this.peek){const ae=Et.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(ae))return this.error(`Invalid unicode escape [\\u${ae}]`,0);Yt=parseInt(ae,16);for(let de=0;de<5;de++)this.advance()}else Yt=fg(this.peek),this.advance();K+=String.fromCharCode(Yt),ut=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}const Nt=Et.substring(ut,this.index);return this.advance(),function ug(J,e,C){return new _l(J,e,dn.String,0,C)}(e,this.index,K+Nt)}scanQuestion(e){this.advance();let C="?";return(63===this.peek||46===this.peek)&&(C+=46===this.peek?".":"?",this.advance()),hh(e,this.index,C)}error(e,C){const K=this.index+C;return function jm(J,e,C){return new _l(J,e,dn.Error,0,C)}(K,this.index,`Lexer Error: ${e} at column ${K} in expression [${this.input}]`)}}function wd(J){return 97<=J&&J<=122||65<=J&&J<=90||95==J||36==J}function xu(J){return nu(J)||Zs(J)||95==J||36==J}function pg(J){return 101==J||69==J}function uh(J){return 45==J||43==J}function fg(J){switch(J){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return J}}class gg{constructor(e,C,K){this.strings=e,this.expressions=C,this.offsets=K}}class Uv{constructor(e,C,K){this.templateBindings=e,this.warnings=C,this.errors=K}}class zm{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,C,K,ut,Et=Xs){this._checkNoInterpolation(e,K,Et);const Nt=this._stripComments(e),Yt=this._lexer.tokenize(Nt);let ae=1;C&&(ae|=2);const de=new Mc(e,K,ut,Yt,ae,this.errors,0).parseChain();return new Nl(de,e,K,ut,this.errors)}parseBinding(e,C,K,ut=Xs){const Et=this._parseBindingAst(e,C,K,ut);return new Nl(Et,e,C,K,this.errors)}checkSimpleExpression(e){const C=new Ed;return e.visit(C),C.errors}parseSimpleBinding(e,C,K,ut=Xs){const Et=this._parseBindingAst(e,C,K,ut),Nt=this.checkSimpleExpression(Et);return Nt.length>0&&this._reportError(`Host binding expression cannot contain ${Nt.join(" ")}`,e,C),new Nl(Et,e,C,K,this.errors)}_reportError(e,C,K,ut){this.errors.push(new au(e,C,K,ut))}_parseBindingAst(e,C,K,ut){this._checkNoInterpolation(e,C,ut);const Et=this._stripComments(e),Nt=this._lexer.tokenize(Et);return new Mc(e,C,K,Nt,0,this.errors,0).parseChain()}parseTemplateBindings(e,C,K,ut,Et){const Nt=this._lexer.tokenize(C);return new Mc(C,K,Et,Nt,0,this.errors,0).parseTemplateBindings({source:e,span:new Qs(ut,ut+e.length)})}parseInterpolation(e,C,K,ut,Et=Xs){const{strings:Nt,expressions:Yt,offsets:ae}=this.splitInterpolation(e,C,ut,Et);if(0===Yt.length)return null;const de=[];for(let Ce=0;CeCe.text),de,e,C,K)}parseInterpolationExpression(e,C,K){const ut=this._stripComments(e),Et=this._lexer.tokenize(ut),Nt=new Mc(e,C,K,Et,0,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[Nt],e,C,K)}createInterpolationAst(e,C,K,ut,Et){const Nt=new ul(0,K.length),Yt=new qs(Nt,Nt.toAbsolute(Et),e,C);return new Nl(Yt,K,ut,Et,this.errors)}splitInterpolation(e,C,K,ut=Xs){const Et=[],Nt=[],Yt=[],ae=K?function Um(J){let e=new Map,C=0,K=0,ut=0;for(;utYt+ae.length,0);K+=Nt,C+=Nt}e.set(K,C),ut++}return e}(K):null;let de=0,Ce=!1,Ue=!1,{start:ui,end:xi}=ut;for(;de-1)break;Et>-1&&Nt>-1&&this._reportError(`Got interpolation (${K}${ut}) where expression was expected`,e,`at column ${Et} in`,C)}_getInterpolationEndIndex(e,C,K){for(const ut of this._forEachUnquotedChar(e,K)){if(e.startsWith(C,ut))return ut;if(e.startsWith("//",ut))return e.indexOf(C,ut)}return-1}*_forEachUnquotedChar(e,C){let K=null,ut=0;for(let Et=C;Et=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:0===this.tokens.length?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,C){let K=this.currentEndIndex;if(void 0!==C&&C>this.currentEndIndex&&(K=C),e>K){const ut=K;K=e,e=ut}return new ul(e,K)}sourceSpan(e,C){const K=`${e}@${this.inputIndex}:${C}`;return this.sourceSpanCache.has(K)||this.sourceSpanCache.set(K,this.span(e,C).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(K)}advance(){this.index++}withContext(e,C){this.context|=e;const K=C();return this.context^=e,K}consumeOptionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===vs?"end of input":`token ${e}`}expectIdentifierOrKeyword(){const e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null)}expectIdentifierOrKeywordOrString(){const e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),"")}parseChain(){const e=[],C=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();const ut=this.parseAdditive();C=new wa(this.span(e),this.sourceSpan(e),K,C,ut);continue}break}return C}parseAdditive(){const e=this.inputIndex;let C=this.parseMultiplicative();for(;this.next.type==dn.Operator;){const K=this.next.strValue;switch(K){case"+":case"-":this.advance();let ut=this.parseMultiplicative();C=new wa(this.span(e),this.sourceSpan(e),K,C,ut);continue}break}return C}parseMultiplicative(){const e=this.inputIndex;let C=this.parsePrefix();for(;this.next.type==dn.Operator;){const K=this.next.strValue;switch(K){case"*":case"%":case"/":this.advance();let ut=this.parsePrefix();C=new wa(this.span(e),this.sourceSpan(e),K,C,ut);continue}break}return C}parsePrefix(){if(this.next.type==dn.Operator){const e=this.inputIndex;let K;switch(this.next.strValue){case"+":return this.advance(),K=this.parsePrefix(),pl.createPlus(this.span(e),this.sourceSpan(e),K);case"-":return this.advance(),K=this.parsePrefix(),pl.createMinus(this.span(e),this.sourceSpan(e),K);case"!":return this.advance(),K=this.parsePrefix(),new Ep(this.span(e),this.sourceSpan(e),K)}}return this.parseCallChain()}parseCallChain(){const e=this.inputIndex;let C=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(46))C=this.parseAccessMember(C,e,!1);else if(this.consumeOptionalOperator("?."))C=this.consumeOptionalCharacter(40)?this.parseCall(C,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(C,e,!0):this.parseAccessMember(C,e,!0);else if(this.consumeOptionalCharacter(91))C=this.parseKeyedReadOrWrite(C,e,!1);else if(this.consumeOptionalCharacter(40))C=this.parseCall(C,e,!1);else{if(!this.consumeOptionalOperator("!"))return C;C=new uu(this.span(e),this.sourceSpan(e),C)}}parsePrimary(){const e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const C=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),C}if(this.next.isKeywordNull())return this.advance(),new so(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new so(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new so(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new so(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new ad(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;const C=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new hd(this.span(e),this.sourceSpan(e),C)}if(this.next.isCharacter(cl))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new sh(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){const C=this.next.toNumber();return this.advance(),new so(this.span(e),this.sourceSpan(e),C)}if(this.next.isString()){const C=this.next.toString();return this.advance(),new so(this.span(e),this.sourceSpan(e),C)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new wo(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new wo(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new wo(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){const C=[];do{if(this.next.isCharacter(e))break;C.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return C}parseLiteralMap(){const e=[],C=[],K=this.inputIndex;if(this.expectCharacter(cl),!this.consumeOptionalCharacter(En)){this.rbracesExpected++;do{const ut=this.inputIndex,Et=this.next.isString(),Nt=this.expectIdentifierOrKeywordOrString();if(e.push({key:Nt,quoted:Et}),Et)this.expectCharacter(58),C.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))C.push(this.parsePipe());else{const Yt=this.span(ut),ae=this.sourceSpan(ut);C.push(new dl(Yt,ae,ae,new sh(Yt,ae),Nt))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(En)}return new ud(this.span(K),this.sourceSpan(K),e,C)}parseAccessMember(e,C,K){const ut=this.inputIndex,Et=this.withContext(ao.Writable,()=>{const ae=this.expectIdentifierOrKeyword()??"";return 0===ae.length&&this.error("Expected identifier for property access",e.span.end),ae}),Nt=this.sourceSpan(ut);let Yt;if(K)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),Yt=new wo(this.span(C),this.sourceSpan(C))):Yt=new ls(this.span(C),this.sourceSpan(C),Nt,e,Et);else if(this.consumeOptionalAssignment()){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new wo(this.span(C),this.sourceSpan(C));const ae=this.parseConditional();Yt=new cu(this.span(C),this.sourceSpan(C),Nt,e,Et,ae)}else Yt=new dl(this.span(C),this.sourceSpan(C),Nt,e,Et);return Yt}parseCall(e,C,K){const ut=this.inputIndex;this.rparensExpected++;const Et=this.parseCallArguments(),Nt=this.span(ut,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;const Yt=this.span(C),ae=this.sourceSpan(C);return K?new Fl(Yt,ae,e,Et,Nt):new Ua(Yt,ae,e,Et,Nt)}consumeOptionalAssignment(){return 2&this.parseFlags&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}parseCallArguments(){if(this.next.isCharacter(41))return[];const e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}expectTemplateBindingKey(){let e="",C=!1;const K=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),C=this.consumeOptionalOperator("-"),C&&(e+="-")}while(C);return{source:e,span:new Qs(K,K+e.length)}}parseTemplateBindings(e){const C=[];for(C.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;const ut=this.parsePipe();if(ut instanceof wo&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),!this.consumeOptionalOperator("="))return K?new hu(this.span(C),this.sourceSpan(C),e,ut):new Rl(this.span(C),this.sourceSpan(C),e,ut);if(!K){const Et=this.parseConditional();return new ld(this.span(C),this.sourceSpan(C),e,ut,Et)}return this.error("The '?.' operator cannot be used in the assignment"),new wo(this.span(C),this.sourceSpan(C))})}parseDirectiveKeywordBindings(e){const C=[];this.consumeOptionalCharacter(58);const K=this.getDirectiveBoundTarget();let ut=this.currentAbsoluteOffset;const Et=this.parseAsBinding(e);Et||(this.consumeStatementTerminator(),ut=this.currentAbsoluteOffset);const Nt=new Qs(e.span.start,ut);return C.push(new Wa(Nt,e,K)),Et&&C.push(Et),C}getDirectiveBoundTarget(){if(this.next===vs||this.peekKeywordAs()||this.peekKeywordLet())return null;const e=this.parsePipe(),{start:C,end:K}=e.span,ut=this.input.substring(C,K);return new Nl(e,ut,this.location,this.absoluteOffset+C,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();const C=this.expectTemplateBindingKey();this.consumeStatementTerminator();const K=new Qs(e.span.start,this.currentAbsoluteOffset);return new gc(K,C,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;const e=this.currentAbsoluteOffset;this.advance();const C=this.expectTemplateBindingKey();let K=null;this.consumeOptionalOperator("=")&&(K=this.expectTemplateBindingKey()),this.consumeStatementTerminator();const ut=new Qs(e,this.currentAbsoluteOffset);return new gc(ut,C,K)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(e,C=null){this.errors.push(new au(e,this.input,this.locationText(C),this.location)),this.skip()}locationText(e=null){return null==e&&(e=this.index),eJ.visit(Et,C)||Et.visit(J,C):Et=>Et.visit(J,C);return e.forEach(Et=>{const Nt=ut(Et);Nt&&K.push(Nt)}),K}function qo(J){if(":"!=J[0])return[null,J];const e=J.indexOf(":",1);if(-1===e)throw new Error(`Unsupported format "${J}" expecting ":namespace:name"`);return[J.slice(1,e),J.slice(e+1)]}function zp(J){return"ng-container"===qo(J)[1]}function xl(J){return"ng-content"===qo(J)[1]}function wu(J){return null===J?null:qo(J)[0]}function ph(J,e){return J?`:${J}:${e}`:e}!function(J){J[J.RAW_TEXT=0]="RAW_TEXT",J[J.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",J[J.PARSABLE_DATA=2]="PARSABLE_DATA"}(So||(So={}));class Hm{}const Wp=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],vg=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Gm=Array.from(vg).reduce((J,[e,C])=>(J.set(e,C),J),new Map);class Md extends Hm{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Wp.forEach(e=>{const C=new Map,K=new Set,[ut,Et]=e.split("|"),Nt=Et.split(","),[Yt,ae]=ut.split("^");Yt.split(",").forEach(Ce=>{this._schema.set(Ce.toLowerCase(),C),this._eventSchema.set(Ce.toLowerCase(),K)});const de=ae&&this._schema.get(ae.toLowerCase());if(de){for(const[Ce,Ue]of de)C.set(Ce,Ue);for(const Ce of this._eventSchema.get(ae.toLowerCase()))K.add(Ce)}Nt.forEach(Ce=>{if(Ce.length>0)switch(Ce[0]){case"*":K.add(Ce.substring(1));break;case"!":C.set(Ce.substring(1),"boolean");break;case"#":C.set(Ce.substring(1),"number");break;case"%":C.set(Ce.substring(1),"object");break;default:C.set(Ce,"string")}})})}hasProperty(e,C,K){if(K.some(Et=>Et.name===W.name))return!0;if(e.indexOf("-")>-1){if(zp(e)||xl(e))return!1;if(K.some(Et=>Et.name===$.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(C)}hasElement(e,C){return!!(C.some(K=>K.name===W.name)||e.indexOf("-")>-1&&(zp(e)||xl(e)||C.some(K=>K.name===$.name)))||this._schema.has(e.toLowerCase())}securityContext(e,C,K){K&&(C=this.getMappedPropName(C)),e=e.toLowerCase(),C=C.toLowerCase();let ut=gd()[e+"|"+C];return ut||(ut=gd()["*|"+C],ut||R.NONE)}getMappedPropName(e){return vg.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){const C=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(C.keys()).map(K=>Gm.get(K)??K)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return function xr(J){return J.replace(gn,(...e)=>e[1].toUpperCase())}(e)}normalizeAnimationStyleValue(e,C,K){let ut="";const Et=K.toString().trim();let Nt=null;if(function fh(J){switch(J){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(e)&&0!==K&&"0"!==K)if("number"==typeof K)ut="px";else{const Yt=K.match(/^[+-]?[\d\.]+([a-z]*)$/);Yt&&0==Yt[1].length&&(Nt=`Please provide a CSS unit value for ${C}:${K}`)}return{error:Nt,value:Et+ut}}}class _n{constructor({closedByChildren:e,implicitNamespacePrefix:C,contentType:K=So.PARSABLE_DATA,closedByParent:ut=!1,isVoid:Et=!1,ignoreFirstLf:Nt=!1,preventNamespaceInheritance:Yt=!1,canSelfClose:ae=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(de=>this.closedByChildren[de]=!0),this.isVoid=Et,this.closedByParent=ut||Et,this.implicitNamespacePrefix=C||null,this.contentType=K,this.ignoreFirstLf=Nt,this.preventNamespaceInheritance=Yt,this.canSelfClose=ae??Et}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return"object"==typeof this.contentType?(void 0===e?void 0:this.contentType[e])??this.contentType.default:this.contentType}}let yg,gh;function Ad(J){return gh||(yg=new _n({canSelfClose:!0}),gh={base:new _n({isVoid:!0}),meta:new _n({isVoid:!0}),area:new _n({isVoid:!0}),embed:new _n({isVoid:!0}),link:new _n({isVoid:!0}),img:new _n({isVoid:!0}),input:new _n({isVoid:!0}),param:new _n({isVoid:!0}),hr:new _n({isVoid:!0}),br:new _n({isVoid:!0}),source:new _n({isVoid:!0}),track:new _n({isVoid:!0}),wbr:new _n({isVoid:!0}),p:new _n({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new _n({closedByChildren:["tbody","tfoot"]}),tbody:new _n({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new _n({closedByChildren:["tbody"],closedByParent:!0}),tr:new _n({closedByChildren:["tr"],closedByParent:!0}),td:new _n({closedByChildren:["td","th"],closedByParent:!0}),th:new _n({closedByChildren:["td","th"],closedByParent:!0}),col:new _n({isVoid:!0}),svg:new _n({implicitNamespacePrefix:"svg"}),foreignObject:new _n({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new _n({implicitNamespacePrefix:"math"}),li:new _n({closedByChildren:["li"],closedByParent:!0}),dt:new _n({closedByChildren:["dt","dd"]}),dd:new _n({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new _n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new _n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new _n({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new _n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new _n({closedByChildren:["optgroup"],closedByParent:!0}),option:new _n({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new _n({ignoreFirstLf:!0}),listing:new _n({ignoreFirstLf:!0}),style:new _n({contentType:So.RAW_TEXT}),script:new _n({contentType:So.RAW_TEXT}),title:new _n({contentType:{default:So.ESCAPABLE_RAW_TEXT,svg:So.PARSABLE_DATA}}),textarea:new _n({contentType:So.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},(new Md).allKnownElementNames().forEach(e=>{!gh.hasOwnProperty(e)&&null===wu(e)&&(gh[e]=new _n({canSelfClose:!1}))})),gh[J]??gh[J.toLowerCase()]??yg}const Eu={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\u{1d504}",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\u{1d538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\u{1d49c}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\u{1d505}",Bopf:"\u{1d539}",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\u{1d49e}",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1d507}",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1d53b}",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\u{1d49f}",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\u{1d508}",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\u{1d53c}",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1d509}",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\u{1d53d}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1d50a}",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\u{1d53e}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1d4a2}",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\u{1d540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1d50d}",Jopf:"\u{1d541}",Jscr:"\u{1d4a5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\u{1d50e}",Kopf:"\u{1d542}",Kscr:"\u{1d4a6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1d50f}",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\u{1d543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1d510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1d544}",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\u{1d511}",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1d4a9}",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\u{1d512}",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\u{1d546}",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\u{1d4aa}",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\u{1d513}",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\u{1d4ab}",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\u{1d514}",Qopf:"\u211a",rationals:"\u211a",Qscr:"\u{1d4ac}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\u{1d516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1d54a}",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1d4ae}",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1d517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1d54b}",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\u{1d4af}",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1d518}",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\u{1d54c}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\u{1d4b0}",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\u{1d519}",Vopf:"\u{1d54d}",Vscr:"\u{1d4b1}",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\u{1d51a}",Wopf:"\u{1d54e}",Wscr:"\u{1d4b2}",Xfr:"\u{1d51b}",Xi:"\u039e",Xopf:"\u{1d54f}",Xscr:"\u{1d4b3}",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\u{1d51c}",Yopf:"\u{1d550}",Yscr:"\u{1d4b4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1d4b5}",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\u{1d51e}",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\u{1d552}",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\u{1d4b6}",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\u{1d51f}",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\u{1d553}",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minusb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\u{1d4b7}",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\u{1d520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\u{1d554}",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\u{1d4b8}",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\u{1d521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\u{1d555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\u{1d4b9}",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1d522}",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1d556}",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\u{1d523}",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\u{1d557}",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1d4bb}",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\u{1d524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\u{1d558}",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\u{1d525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\u{1d559}",horbar:"\u2015",hscr:"\u{1d4bd}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\u{1d526}",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\u{1d55a}",iota:"\u03b9",iquest:"\xbf",iscr:"\u{1d4be}",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1d527}",jmath:"\u0237",jopf:"\u{1d55b}",jscr:"\u{1d4bf}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\u{1d528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\u{1d55c}",kscr:"\u{1d4c0}",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\u{1d529}",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\u{1d55d}",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\u{1d4c1}",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\u{1d52a}",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\u{1d55e}",mscr:"\u{1d4c2}",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1d52b}",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\u{1d55f}",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\u{1d4c3}",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\u{1d52c}",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\u{1d560}",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1d52d}",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\u{1d561}",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\u{1d4c5}",psi:"\u03c8",puncsp:"\u2008",qfr:"\u{1d52e}",qopf:"\u{1d562}",qprime:"\u2057",qscr:"\u{1d4c6}",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\u{1d52f}",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\u{1d563}",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\u{1d4c7}",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1d530}",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\u{1d564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\u{1d4c8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1d531}",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\u{1d565}",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\u{1d4c9}",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\u{1d532}",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\u{1d566}",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\u{1d4ca}",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\u{1d533}",vopf:"\u{1d567}",vscr:"\u{1d4cb}",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1d534}",wopf:"\u{1d568}",wscr:"\u{1d4cc}",xfr:"\u{1d535}",xi:"\u03be",xnis:"\u22fb",xopf:"\u{1d569}",xscr:"\u{1d4cd}",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\u{1d536}",yicy:"\u0457",yopf:"\u{1d56a}",yscr:"\u{1d4ce}",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\u{1d537}",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\u{1d56b}",zscr:"\u{1d4cf}",zwj:"\u200d",zwnj:"\u200c"};Eu.ngsp="\ue500";class Hp extends ru{constructor(e,C,K){super(K,e),this.tokenType=C}}class _g{constructor(e,C,K){this.tokens=e,this.errors=C,this.nonNormalizedIcuExpressions=K}}const Xm=/\r\n?/g;function Xa(J){return`Unexpected character "${0===J?"EOF":String.fromCharCode(J)}"`}function xg(J){return`Unknown entity "${J}" - use the "&#;" or "&#x;" syntax`}var Ls;!function(J){J.HEX="hexadecimal",J.DEC="decimal"}(Ls||(Ls={}));class Td{constructor(e){this.error=e}}class Pd{constructor(e,C,K){this._getTagDefinition=C,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=K.tokenizeExpansionForms||!1,this._interpolationConfig=K.interpolationConfig||Xs,this._leadingTriviaCodePoints=K.leadingTriviaChars&&K.leadingTriviaChars.map(Et=>Et.codePointAt(0)||0);const ut=K.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=K.escapedString?new $a(e,ut):new Cl(e,ut),this._preserveLineEndings=K.preserveLineEndings||!1,this._escapedString=K.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=K.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(Et){this.handleError(Et)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(Xm,"\n")}tokenize(){for(;0!==this._cursor.peek();){const e=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(45)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(47)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(C){this.handleError(C)}}this._beginToken(24),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function Du(J){return J!==En}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===En){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,C=this._cursor.clone()){this._currentTokenStart=C,this._currentTokenType=e}_endToken(e,C){if(null===this._currentTokenStart)throw new Hp("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(C));if(null===this._currentTokenType)throw new Hp("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));const K={type:this._currentTokenType,parts:e,sourceSpan:(C??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(K),this._currentTokenStart=null,this._currentTokenType=null,K}_createError(e,C){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');const K=new Hp(e,this._currentTokenType,C);return this._currentTokenStart=null,this._currentTokenType=null,new Td(K)}handleError(e){if(e instanceof Rd&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Td))throw e;this.errors.push(e.error)}_attemptCharCode(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(e){return!!function kd(J,e){return Ld(J)===Ld(e)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}_requireCharCode(e){const C=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Xa(this._cursor.peek()),this._cursor.getSpan(C))}_attemptStr(e){const C=e.length;if(this._cursor.charsLeft()this._attemptStr("--\x3e")),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);const C=this._cursor.clone();this._attemptUntilChar(62);const K=this._cursor.getChars(C);this._cursor.advance(),this._endToken([K])}_consumePrefixAndName(){const e=this._cursor.clone();let K,C="";for(;58!==this._cursor.peek()&&!Fs(this._cursor.peek());)this._cursor.advance();58===this._cursor.peek()?(C=this._cursor.getChars(e),this._cursor.advance(),K=this._cursor.clone()):K=e,this._requireCharCodeUntilFn(Id,""===C?0:1);return[C,this._cursor.getChars(K)]}_consumeTagOpen(e){let C,K,ut;try{if(!nu(this._cursor.peek()))throw this._createError(Xa(this._cursor.peek()),this._cursor.getSpan(e));for(ut=this._consumeTagOpenStart(e),K=ut.parts[0],C=ut.parts[1],this._attemptCharCodeUntilFn(Rs);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Rs),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Rs),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Rs);this._consumeTagOpenEnd()}catch(Nt){if(Nt instanceof Td)return void(ut?ut.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw Nt}const Et=this._getTagDefinition(C).getContentType(K);Et===So.RAW_TEXT?this._consumeRawTextWithTagClose(K,C,!1):Et===So.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(K,C,!0)}_consumeRawTextWithTagClose(e,C,K){this._consumeRawText(K,()=>!!(this._attemptCharCode(60)&&this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(Rs),this._attemptStrCaseInsensitive(C)))&&(this._attemptCharCodeUntilFn(Rs),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(ut=>62===ut,3),this._cursor.advance(),this._endToken([e,C])}_consumeTagOpenStart(e){this._beginToken(0,e);const C=this._consumePrefixAndName();return this._endToken(C)}_consumeAttributeName(){const e=this._cursor.peek();if(39===e||34===e)throw this._createError(Xa(e),this._cursor.getSpan());this._beginToken(14);const C=this._consumePrefixAndName();this._endToken(C)}_consumeAttributeValue(){if(39===this._cursor.peek()||34===this._cursor.peek()){const C=this._cursor.peek();this._consumeQuote(C);const K=()=>this._cursor.peek()===C;this._consumeWithInterpolation(16,17,K,K),this._consumeQuote(C)}else{const C=()=>Id(this._cursor.peek());this._consumeWithInterpolation(16,17,C,C)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){const e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Rs);const C=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Rs),this._requireCharCode(62),this._endToken(C)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(cl),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);const e=this._readUntil(44),C=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([C]);else{const ut=this._endToken([e]);C!==e&&this.nonNormalizedIcuExpressions.push(ut)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Rs),this._beginToken(7);const K=this._readUntil(44);this._endToken([K]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Rs)}_consumeExpansionCaseStart(){this._beginToken(20);const e=this._readUntil(cl).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Rs),this._beginToken(21),this._requireCharCode(cl),this._endToken([]),this._attemptCharCodeUntilFn(Rs),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(En),this._endToken([]),this._attemptCharCodeUntilFn(Rs),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(En),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,C,K,ut){this._beginToken(e);const Et=[];for(;!K();){const Nt=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(Et.join(""))],Nt),Et.length=0,this._consumeInterpolation(C,Nt,ut),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(Et.join(""))]),Et.length=0,this._consumeEntity(e),this._beginToken(e)):Et.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(Et.join(""))])}_consumeInterpolation(e,C,K){const ut=[];this._beginToken(e,C),ut.push(this._interpolationConfig.start);const Et=this._cursor.clone();let Nt=null,Yt=!1;for(;0!==this._cursor.peek()&&(null===K||!K());){const ae=this._cursor.clone();if(this._isTagStart())return this._cursor=ae,ut.push(this._getProcessedChars(Et,ae)),void this._endToken(ut);if(null===Nt){if(this._attemptStr(this._interpolationConfig.end))return ut.push(this._getProcessedChars(Et,ae)),ut.push(this._interpolationConfig.end),void this._endToken(ut);this._attemptStr("//")&&(Yt=!0)}const de=this._cursor.peek();this._cursor.advance(),92===de?this._cursor.advance():de===Nt?Nt=null:!Yt&&null===Nt&&yp(de)&&(Nt=de)}ut.push(this._getProcessedChars(Et,this._cursor)),this._endToken(ut)}_getProcessedChars(e,C){return this._processCarriageReturns(C.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===En&&this._isInExpansionCase()))}_isTagStart(){if(60===this._cursor.peek()){const e=this._cursor.clone();e.advance();const C=e.peek();if(97<=C&&C<=122||65<=C&&C<=90||47===C||33===C)return!0}return!1}_readUntil(e){const C=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(C)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(this._cursor.peek()!==cl)return!1;if(this._interpolationConfig){const e=this._cursor.clone(),C=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!C}return!0}}function Rs(J){return!cc(J)||0===J}function Id(J){return cc(J)||62===J||60===J||47===J||39===J||34===J||61===J||0===J}function Fs(J){return(J<97||12257)}function Gp(J){return 59===J||0===J||!function hc(J){return J>=97&&J<=102||J>=65&&J<=70||Zs(J)}(J)}function Od(J){return 59===J||0===J||!nu(J)}function Ld(J){return J>=97&&J<=122?J-97+65:J}class Cl{constructor(e,C){if(e instanceof Cl){this.file=e.file,this.input=e.input,this.end=e.end;const K=e.state;this.state={peek:K.peek,offset:K.offset,line:K.line,column:K.column}}else{if(!C)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=C.endPos,this.state={peek:-1,offset:C.startPos,line:C.startLine,column:C.startCol}}}clone(){return new Cl(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,C){let K=e=e||this;if(C)for(;this.diff(e)>0&&-1!==C.indexOf(e.peek());)K===e&&(e=e.clone()),e.advance();const ut=this.locationFromCursor(e),Et=this.locationFromCursor(this),Nt=K!==e?this.locationFromCursor(K):ut;return new Kn(ut,Et,Nt)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Rd('Unexpected character "EOF"',this);const C=this.charAt(e.offset);10===C?(e.line++,e.column=0):Ko(C)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new Ps(e.file,e.state.offset,e.state.line,e.state.column)}}class $a extends Cl{constructor(e,C){e instanceof $a?(super(e),this.internalState={...e.internalState}):(super(e,C),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new $a(this)}getChars(e){const C=e.clone();let K="";for(;C.internalState.offsetthis.internalState.peek;if(92===e())if(this.internalState={...this.state},this.advanceState(this.internalState),110===e())this.state.peek=10;else if(114===e())this.state.peek=13;else if(118===e())this.state.peek=11;else if(116===e())this.state.peek=9;else if(98===e())this.state.peek=8;else if(102===e())this.state.peek=12;else if(117===e())if(this.advanceState(this.internalState),e()===cl){this.advanceState(this.internalState);const C=this.clone();let K=0;for(;e()!==En;)this.advanceState(this.internalState),K++;this.state.peek=this.decodeHexDigits(C,K)}else{const C=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(C,4)}else if(120===e()){this.advanceState(this.internalState);const C=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(C,2)}else if(xm(e())){let C="",K=0,ut=this.clone();for(;xm(e())&&K<3;)ut=this.clone(),C+=String.fromCodePoint(e()),this.advanceState(this.internalState),K++;this.state.peek=parseInt(C,8),this.internalState=ut.internalState}else Ko(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,C){const K=this.input.slice(e.internalState.offset,e.internalState.offset+C),ut=parseInt(K,16);if(isNaN(ut))throw e.state=e.internalState,new Rd("Invalid hexadecimal escape sequence",e);return ut}}class Rd{constructor(e,C){this.msg=e,this.cursor=C}}class Ea extends ru{static create(e,C,K){return new Ea(e,C,K)}constructor(e,C,K){super(C,K),this.elementName=e}}class Fd{constructor(e,C){this.rootNodes=e,this.errors=C}}class bg{constructor(e){this.getTagDefinition=e}parse(e,C,K){const ut=function Ey(J,e,C,K={}){const ut=new Pd(new _p(J,e),C,K);return ut.tokenize(),new _g(function Cg(J){const e=[];let C;for(let K=0;K0)return this.errors=this.errors.concat(Et.errors),null;const Nt=new Kn(e.sourceSpan.start,ut.sourceSpan.end,e.sourceSpan.fullStart),Yt=new Kn(C.sourceSpan.start,ut.sourceSpan.end,C.sourceSpan.fullStart);return new Vp(e.parts[0],Et.rootNodes,Nt,e.sourceSpan,Yt)}_collectExpansionExpTokens(e){const C=[],K=[21];for(;;){if((19===this._peek.type||21===this._peek.type)&&K.push(this._peek.type),22===this._peek.type){if(!Nd(K,21))return this.errors.push(Ea.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(K.pop(),0===K.length)return C}if(23===this._peek.type){if(!Nd(K,19))return this.errors.push(Ea.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;K.pop()}if(24===this._peek.type)return this.errors.push(Ea.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;C.push(this._advance())}}_consumeText(e){const C=[e],K=e.sourceSpan;let ut=e.parts[0];if(ut.length>0&&"\n"===ut[0]){const Et=this._getParentElement();null!=Et&&0===Et.children.length&&this.getTagDefinition(Et.name).ignoreFirstLf&&(ut=ut.substring(1),C[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[ut]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),C.push(e),8===e.type?ut+=e.parts.join("").replace(/&([^;]+);/g,mh):9===e.type?ut+=e.parts[0]:ut+=e.parts.join("");if(ut.length>0){const Et=e.sourceSpan;this._addToParent(new Cu(ut,new Kn(K.start,Et.end,K.fullStart,K.details),C))}}_closeVoidElement(){const e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}_consumeStartTag(e){const[C,K]=e.parts,ut=[];for(;14===this._peek.type;)ut.push(this._consumeAttr(this._advance()));const Et=this._getElementFullName(C,K,this._getParentElement());let Nt=!1;if(2===this._peek.type){this._advance(),Nt=!0;const Ue=this.getTagDefinition(Et);Ue.canSelfClose||null!==wu(Et)||Ue.isVoid||this.errors.push(Ea.create(Et,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),Nt=!1);const Yt=this._peek.sourceSpan.fullStart,ae=new Kn(e.sourceSpan.start,Yt,e.sourceSpan.fullStart),de=new Kn(e.sourceSpan.start,Yt,e.sourceSpan.fullStart),Ce=new Tc(Et,ut,[],ae,de,void 0);this._pushElement(Ce),Nt?this._popElement(Et,ae):4===e.type&&(this._popElement(Et,null),this.errors.push(Ea.create(Et,ae,`Opening tag "${Et}" not terminated.`)))}_pushElement(e){const C=this._getParentElement();C&&this.getTagDefinition(C.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}_consumeEndTag(e){const C=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this.getTagDefinition(C).isVoid)this.errors.push(Ea.create(C,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popElement(C,e.sourceSpan)){const K=`Unexpected closing tag "${C}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Ea.create(C,e.sourceSpan,K))}}_popElement(e,C){let K=!1;for(let ut=this._elementStack.length-1;ut>=0;ut--){const Et=this._elementStack[ut];if(Et.name===e)return Et.endSourceSpan=C,Et.sourceSpan.end=null!==C?C.end:Et.sourceSpan.end,this._elementStack.splice(ut,this._elementStack.length-ut),!K;this.getTagDefinition(Et.name).closedByParent||(K=!0)}return!1}_consumeAttr(e){const C=ph(e.parts[0],e.parts[1]);let K=e.sourceSpan.end;15===this._peek.type&&this._advance();let ut="";const Et=[];let Nt,Yt;if(16===this._peek.type)for(Nt=this._peek.sourceSpan,Yt=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){const Ce=this._advance();Et.push(Ce),17===Ce.type?ut+=Ce.parts.join("").replace(/&([^;]+);/g,mh):9===Ce.type?ut+=Ce.parts[0]:ut+=Ce.parts.join(""),Yt=K=Ce.sourceSpan.end}15===this._peek.type&&(K=this._advance().sourceSpan.end);const de=Nt&&Yt&&new Kn(Nt.start,Yt,Nt.fullStart);return new bu(C,ut,new Kn(e.sourceSpan.start,K,e.sourceSpan.fullStart),e.sourceSpan,de,Et.length>0?Et:void 0,void 0)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_addToParent(e){const C=this._getParentElement();null!=C?C.children.push(e):this.rootNodes.push(e)}_getElementFullName(e,C,K){if(""===e&&(""===(e=this.getTagDefinition(C).implicitNamespacePrefix||"")&&null!=K)){const ut=qo(K.name)[1];this.getTagDefinition(ut).preventNamespaceInheritance||(e=wu(K.name))}return ph(e,C)}}function Nd(J,e){return J.length>0&&J[J.length-1]===e}function mh(J,e){return void 0!==Eu[e]?Eu[e]||J:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):J}class Ns extends bg{constructor(){super(Ad)}parse(e,C,K){return super.parse(e,C,K)}}const Au="ngPreserveWhitespaces",$m=new Set(["pre","template","textarea","script","style"]),wg=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",Hv=new RegExp(`[^${wg}]`),Bd=new RegExp(`[${wg}]{2,}`,"g");function vh(J){return J.replace(new RegExp("\ue500","g")," ")}class yh{visitElement(e,C){return $m.has(e.name)||function Xp(J){return J.some(e=>e.name===Au)}(e.attrs)?new Tc(e.name,Sn(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new Tc(e.name,e.attrs,function $p(J,e){const C=[];return e.forEach((K,ut)=>{const Et={prev:e[ut-1],next:e[ut+1]},Nt=K.visit(J,Et);Nt&&C.push(Nt)}),C}(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}visitAttribute(e,C){return e.name!==Au?e:null}visitText(e,C){const K=e.value.match(Hv),ut=C&&(C.prev instanceof dh||C.next instanceof dh);if(K||ut){const Et=e.tokens.map(Yt=>5===Yt.type?function Eg({type:J,parts:e,sourceSpan:C}){return{type:J,parts:[Tu(e[0])],sourceSpan:C}}(Yt):Yt),Nt=Tu(e.value);return new Cu(Nt,e.sourceSpan,Et,e.i18n)}return null}visitComment(e,C){return e}visitExpansion(e,C){return e}visitExpansionCase(e,C){return e}}function Tu(J){return vh(J).replace(Bd," ")}function jd(J,e=!1){return fe(Object.keys(J).map(C=>({key:C,quoted:e,value:J[C]})))}const Ic=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function Kp(J,e){return J=J.toLowerCase(),e=e.toLowerCase(),Ic.has(J+"|"+e)||Ic.has("*|"+e)}const Qo="animate-";class Oc{constructor(e,C,K,ut){this._exprParser=e,this._interpolationConfig=C,this._schemaRegistry=K,this.errors=ut}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,C){const K=[];for(const ut of Object.keys(e)){const Et=e[ut];"string"==typeof Et?this.parsePropertyBinding(ut,Et,!0,C,C.start.offset,void 0,[],K,C):this._reportError(`Value of the host property binding "${ut}" needs to be a string representing an expression but got "${Et}" (${typeof Et})`,C)}return K}createDirectiveHostEventAsts(e,C){const K=[];for(const ut of Object.keys(e)){const Et=e[ut];"string"==typeof Et?this.parseEvent(ut,Et,!1,C,C,[],K,C):this._reportError(`Value of the host listener "${ut}" needs to be a string representing an expression but got "${Et}" (${typeof Et})`,C)}return K}parseInterpolation(e,C,K){const ut=C.start.toString(),Et=C.fullStart.offset;try{const Nt=this._exprParser.parseInterpolation(e,ut,Et,K,this._interpolationConfig);return Nt&&this._reportExpressionParserErrors(Nt.errors,C),Nt}catch(Nt){return this._reportError(`${Nt}`,C),this._exprParser.wrapLiteralPrimitive("ERROR",ut,Et)}}parseInterpolationExpression(e,C){const K=C.start.toString(),ut=C.start.offset;try{const Et=this._exprParser.parseInterpolationExpression(e,K,ut);return Et&&this._reportExpressionParserErrors(Et.errors,C),Et}catch(Et){return this._reportError(`${Et}`,C),this._exprParser.wrapLiteralPrimitive("ERROR",K,ut)}}parseInlineTemplateBinding(e,C,K,ut,Et,Nt,Yt,ae){const de=K.start.offset+"*".length,Ce=this._parseTemplateBindings(e,C,K,de,ut);for(const Ue of Ce){const ui=Ka(K,Ue.sourceSpan),xi=Ue.key.source,wi=Ka(K,Ue.key.span);if(Ue instanceof gc){const Ui=Ue.value?Ue.value.source:"$implicit",Ri=Ue.value?Ka(K,Ue.value.span):void 0;Yt.push(new Bl(xi,Ui,ui,wi,Ri))}else if(Ue.value){const Ui=ae?ui:K,Ri=Ka(K,Ue.value.ast.sourceSpan);this._parsePropertyAst(xi,Ue.value,Ui,wi,Ri,Et,Nt)}else Et.push([xi,""]),this.parseLiteralAttr(xi,null,wi,ut,void 0,Et,Nt,wi)}}_parseTemplateBindings(e,C,K,ut,Et){const Nt=K.start.toString();try{const Yt=this._exprParser.parseTemplateBindings(e,C,Nt,ut,Et);return this._reportExpressionParserErrors(Yt.errors,K),Yt.warnings.forEach(ae=>{this._reportError(ae,K,Va.WARNING)}),Yt.templateBindings}catch(Yt){return this._reportError(`${Yt}`,K),[]}}parseLiteralAttr(e,C,K,ut,Et,Nt,Yt,ae){Vd(e)?(e=e.substring(1),void 0!==ae&&(ae=Ka(ae,new Qs(ae.start.offset+1,ae.end.offset))),C&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',K,Va.ERROR),this._parseAnimation(e,C,K,ut,ae,Et,Nt,Yt)):Yt.push(new du(e,this._exprParser.wrapLiteralPrimitive(C,"",ut),Is.LITERAL_ATTR,K,ae,Et))}parsePropertyBinding(e,C,K,ut,Et,Nt,Yt,ae,de){0===e.length&&this._reportError("Property name is missing in binding",ut);let Ce=!1;e.startsWith(Qo)?(Ce=!0,e=e.substring(Qo.length),void 0!==de&&(de=Ka(de,new Qs(de.start.offset+Qo.length,de.end.offset)))):Vd(e)&&(Ce=!0,e=e.substring(1),void 0!==de&&(de=Ka(de,new Qs(de.start.offset+1,de.end.offset)))),Ce?this._parseAnimation(e,C,ut,Et,de,Nt,Yt,ae):this._parsePropertyAst(e,this._parseBinding(C,K,Nt||ut,Et),ut,de,Nt,Yt,ae)}parsePropertyInterpolation(e,C,K,ut,Et,Nt,Yt,ae){const de=this.parseInterpolation(C,ut||K,ae);return!!de&&(this._parsePropertyAst(e,de,K,Yt,ut,Et,Nt),!0)}_parsePropertyAst(e,C,K,ut,Et,Nt,Yt){Nt.push([e,C.source]),Yt.push(new du(e,C,Is.DEFAULT,K,ut,Et))}_parseAnimation(e,C,K,ut,Et,Nt,Yt,ae){0===e.length&&this._reportError("Animation trigger is missing",K);const de=this._parseBinding(C||"undefined",!1,Nt||K,ut);Yt.push([e,de.source]),ae.push(new du(e,de,Is.ANIMATION,K,Et,Nt))}_parseBinding(e,C,K,ut){const Et=(K&&K.start||"(unknown)").toString();try{const Nt=C?this._exprParser.parseSimpleBinding(e,Et,ut,this._interpolationConfig):this._exprParser.parseBinding(e,Et,ut,this._interpolationConfig);return Nt&&this._reportExpressionParserErrors(Nt.errors,K),Nt}catch(Nt){return this._reportError(`${Nt}`,K),this._exprParser.wrapLiteralPrimitive("ERROR",Et,ut)}}createBoundElementProperty(e,C,K=!1,ut=!0){if(C.isAnimation)return new Sm(C.name,4,R.NONE,C.expression,null,C.sourceSpan,C.keySpan,C.valueSpan);let Nt,Et=null,Yt=null;const ae=C.name.split(".");let de;if(ae.length>1)if("attr"==ae[0]){Yt=ae.slice(1).join("."),K||this._validatePropertyOrAttributeName(Yt,C.sourceSpan,!0),de=_h(this._schemaRegistry,e,Yt,!0);const Ce=Yt.indexOf(":");if(Ce>-1){const Ue=Yt.substring(0,Ce),ui=Yt.substring(Ce+1);Yt=ph(Ue,ui)}Nt=1}else"class"==ae[0]?(Yt=ae[1],Nt=2,de=[R.NONE]):"style"==ae[0]&&(Et=ae.length>2?ae[2]:null,Yt=ae[1],Nt=3,de=[R.STYLE]);if(null===Yt){const Ce=this._schemaRegistry.getMappedPropName(C.name);Yt=ut?Ce:C.name,de=_h(this._schemaRegistry,e,Ce,!1),Nt=0,K||this._validatePropertyOrAttributeName(Ce,C.sourceSpan,!1)}return new Sm(Yt,Nt,de[0],C.expression,Et,C.sourceSpan,C.keySpan,C.valueSpan)}parseEvent(e,C,K,ut,Et,Nt,Yt,ae){0===e.length&&this._reportError("Event name is missing in binding",ut),Vd(e)?(e=e.slice(1),void 0!==ae&&(ae=Ka(ae,new Qs(ae.start.offset+1,ae.end.offset))),this._parseAnimationEvent(e,C,K,ut,Et,Yt,ae)):this._parseRegularEvent(e,C,K,ut,Et,Nt,Yt,ae)}calcPossibleSecurityContexts(e,C,K){const ut=this._schemaRegistry.getMappedPropName(C);return _h(this._schemaRegistry,e,ut,K)}_parseAnimationEvent(e,C,K,ut,Et,Nt,Yt){const ae=function Er(J,e){return xs(J,".",e)}(e,[e,""]),de=ae[0],Ce=ae[1].toLowerCase(),Ue=this._parseAction(C,K,Et);Nt.push(new dd(de,Ce,1,Ue,ut,Et,Yt)),0===de.length&&this._reportError("Animation event name is missing in binding",ut),Ce?"start"!==Ce&&"done"!==Ce&&this._reportError(`The provided animation output phase value "${Ce}" for "@${de}" is not supported (use start or done)`,ut):this._reportError(`The animation trigger output event (@${de}) is missing its phase value name (start or done are currently supported)`,ut)}_parseRegularEvent(e,C,K,ut,Et,Nt,Yt,ae){const[de,Ce]=function pr(J,e){return xs(J,":",e)}(e,[null,e]),Ue=this._parseAction(C,K,Et);Nt.push([e,Ue.source]),Yt.push(new dd(Ce,de,0,Ue,ut,Et,ae))}_parseAction(e,C,K){const ut=(K&&K.start||"(unknown").toString(),Et=K&&K.start?K.start.offset:0;try{const Nt=this._exprParser.parseAction(e,C,ut,Et,this._interpolationConfig);return Nt&&this._reportExpressionParserErrors(Nt.errors,K),!Nt||Nt.ast instanceof wo?(this._reportError("Empty expressions are not allowed",K),this._exprParser.wrapLiteralPrimitive("ERROR",ut,Et)):Nt}catch(Nt){return this._reportError(`${Nt}`,K),this._exprParser.wrapLiteralPrimitive("ERROR",ut,Et)}}_reportError(e,C,K=Va.ERROR){this.errors.push(new ru(C,e,K))}_reportExpressionParserErrors(e,C){for(const K of e)this._reportError(K.message,C)}_validatePropertyOrAttributeName(e,C,K){const ut=K?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);ut.error&&this._reportError(ut.msg,C,Va.ERROR)}}function Vd(J){return"@"==J[0]}function _h(J,e,C,K){const ut=[];return t.parse(e).forEach(Et=>{const Nt=Et.element?[Et.element]:J.allKnownElementNames(),Yt=new Set(Et.notSelectors.filter(de=>de.isElementSelector()).map(de=>de.element)),ae=Nt.filter(de=>!Yt.has(de));ut.push(...ae.map(de=>J.securityContext(de,C,K)))}),0===ut.length?[R.NONE]:Array.from(new Set(ut)).sort()}function Ka(J,e){const C=e.start-J.start.offset,K=e.end-J.end.offset;return new Kn(J.start.moveBy(C),J.end.moveBy(K),J.fullStart.moveBy(C),J.details)}const zd=/^([^:/?#]+):/;function Pg(J){let e=null,C=null,K=null,ut=!1,Et="";J.attrs.forEach(ae=>{const de=ae.name.toLowerCase();"select"==de?e=ae.value:"href"==de?C=ae.value:"rel"==de?K=ae.value:"ngNonBindable"==ae.name?ut=!0:"ngProjectAs"==ae.name&&ae.value.length>0&&(Et=ae.value)}),e=function Gv(J){return null===J||0===J.length?"*":J}(e);const Nt=J.name.toLowerCase();let Yt=js.OTHER;return xl(Nt)?Yt=js.NG_CONTENT:"style"==Nt?Yt=js.STYLE:"script"==Nt?Yt=js.SCRIPT:"link"==Nt&&"stylesheet"==K&&(Yt=js.STYLESHEET),new qp(Yt,e,C,ut,Et)}var js;!function(J){J[J.NG_CONTENT=0]="NG_CONTENT",J[J.STYLE=1]="STYLE",J[J.STYLESHEET=2]="STYLESHEET",J[J.SCRIPT=3]="SCRIPT",J[J.OTHER=4]="OTHER"}(js||(js={}));class qp{constructor(e,C,K,ut,Et){this.type=e,this.selectAttr=C,this.hrefAttr=K,this.nonBindable=ut,this.projectAs=Et}}const Xv=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,bl_BANANA_BOX={start:"[(",end:")]"},bl_PROPERTY={start:"[",end:"]"},bl_EVENT={start:"(",end:")"};class kg{constructor(e,C){this.bindingParser=e,this.options=C,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}visitElement(e){const C=mn(e.i18n);C&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);const K=Pg(e);if(K.type===js.SCRIPT)return null;if(K.type===js.STYLE){const Ri=function Wl(J){return 1===J.children.length&&J.children[0]instanceof Cu?J.children[0].value:null}(e);return null!==Ri&&this.styles.push(Ri),null}if(K.type===js.STYLESHEET&&function Pu(J){if(null==J||0===J.length||"/"==J[0])return!1;const e=J.match(zd);return null===e||"package"==e[1]||"asset"==e[1]}(K.hrefAttr))return this.styleUrls.push(K.hrefAttr),null;const ut=function Wm(J){return"ng-template"===qo(J)[1]}(e.name),Et=[],Nt=[],Yt=[],ae=[],de=[],Ce={},Ue=[],ui=[];let xi=!1;for(const Ri of e.attrs){let zi=!1;const Wi=Fg(Ri.name);let jn=!1;if(Ri.i18n&&(Ce[Ri.name]=Ri.i18n),Wi.startsWith("*")){xi&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Ri.sourceSpan),jn=!0,xi=!0;const Gr=Ri.value,cs=Wi.substring("*".length),Zc=[],jh=Ri.valueSpan?Ri.valueSpan.start.offset:Ri.sourceSpan.start.offset+Ri.name.length;this.bindingParser.parseInlineTemplateBinding(cs,Gr,Ri.sourceSpan,jh,[],Ue,Zc,!0),ui.push(...Zc.map(Ql=>new Es(Ql.name,Ql.value,Ql.sourceSpan,Ql.keySpan,Ql.valueSpan)))}else zi=this.parseAttribute(ut,Ri,[],Et,Nt,Yt,ae);!zi&&!jn&&de.push(this.visitAttribute(Ri))}const wi=Sn(K.nonBindable?Rg:this,e.children);let Ui;if(K.type===js.NG_CONTENT){e.children&&!e.children.every(Wi=>function Zm(J){return J instanceof Cu&&0==J.value.trim().length}(Wi)||function qm(J){return J instanceof Sd}(Wi))&&this.reportError(" element cannot have content.",e.sourceSpan);const Ri=K.selectAttr,zi=e.attrs.map(Wi=>this.visitAttribute(Wi));Ui=new vn(Ri,zi,e.sourceSpan,e.i18n),this.ngContentSelectors.push(Ri)}else if(ut){const Ri=this.extractAttributes(e.name,Et,Ce);Ui=new pi(e.name,de,Ri.bound,Nt,[],wi,ae,Yt,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{const Ri=this.extractAttributes(e.name,Et,Ce);Ui=new ws(e.name,de,Ri.bound,Nt,wi,ae,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(xi){const Ri=this.extractAttributes("ng-template",Ue,Ce),zi=[];Ri.literal.forEach(cs=>zi.push(cs)),Ri.bound.forEach(cs=>zi.push(cs));const Wi=Ui instanceof ws?{attributes:Ui.attributes,inputs:Ui.inputs,outputs:Ui.outputs}:{attributes:[],inputs:[],outputs:[]},jn=ut&&C?void 0:e.i18n,Gr=Ui instanceof pi?null:Ui.name;Ui=new pi(Gr,Wi.attributes,Wi.inputs,Wi.outputs,zi,[Ui],[],ui,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,jn)}return C&&(this.inI18nBlock=!1),Ui}visitAttribute(e){return new Zn(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!mn(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);const C=e.i18n,K={},ut={};return Object.keys(C.placeholders).forEach(Et=>{const Nt=C.placeholders[Et];if(Et.startsWith("VAR_")){const Yt=Et.trim(),ae=this.bindingParser.parseInterpolationExpression(Nt.text,Nt.sourceSpan);K[Yt]=new Ro(ae,Nt.sourceSpan)}else ut[Et]=this._visitTextWithInterpolation(Nt.text,Nt.sourceSpan,null)}),new qn(K,ut,e.sourceSpan,C)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new fp(e.value||"",e.sourceSpan)),null}extractAttributes(e,C,K){const ut=[],Et=[];return C.forEach(Nt=>{const Yt=K[Nt.name];if(Nt.isLiteral)Et.push(new Zn(Nt.name,Nt.expression.source||"",Nt.sourceSpan,Nt.keySpan,Nt.valueSpan,Yt));else{const ae=this.bindingParser.createBoundElementProperty(e,Nt,!0,!1);ut.push(ha.fromBoundElementProperty(ae,Yt))}}),{bound:ut,literal:Et}}parseAttribute(e,C,K,ut,Et,Nt,Yt){const ae=Fg(C.name),de=C.value,Ce=C.sourceSpan,Ue=C.valueSpan?C.valueSpan.start.offset:Ce.start.offset;function ui(zi,Wi,jn){const Gr=C.name.length-ae.length,cs=zi.start.moveBy(Wi.length+Gr),Zc=cs.moveBy(jn.length);return new Kn(cs,Zc,cs,jn)}const xi=ae.match(Xv);if(xi){if(null!=xi[1]){const zi=xi[7],Wi=ui(Ce,xi[1],zi);this.bindingParser.parsePropertyBinding(zi,de,!1,Ce,Ue,C.valueSpan,K,ut,Wi)}else if(xi[2])if(e){const zi=xi[7],Wi=ui(Ce,xi[2],zi);this.parseVariable(zi,de,Ce,Wi,C.valueSpan,Nt)}else this.reportError('"let-" is only supported on ng-template elements.',Ce);else if(xi[3]){const zi=xi[7],Wi=ui(Ce,xi[3],zi);this.parseReference(zi,de,Ce,Wi,C.valueSpan,Yt)}else if(xi[4]){const zi=[],Wi=xi[7],jn=ui(Ce,xi[4],Wi);this.bindingParser.parseEvent(Wi,de,!1,Ce,C.valueSpan||Ce,K,zi,jn),tf(zi,Et)}else if(xi[5]){const zi=xi[7],Wi=ui(Ce,xi[5],zi);this.bindingParser.parsePropertyBinding(zi,de,!1,Ce,Ue,C.valueSpan,K,ut,Wi),this.parseAssignmentEvent(zi,de,Ce,C.valueSpan,K,Et,Wi)}else if(xi[6]){const zi=ui(Ce,"",ae);this.bindingParser.parseLiteralAttr(ae,de,Ce,Ue,C.valueSpan,K,ut,zi)}return!0}let wi=null;if(ae.startsWith(bl_BANANA_BOX.start)?wi=bl_BANANA_BOX:ae.startsWith(bl_PROPERTY.start)?wi=bl_PROPERTY:ae.startsWith(bl_EVENT.start)&&(wi=bl_EVENT),null!==wi&&ae.endsWith(wi.end)&&ae.length>wi.start.length+wi.end.length){const zi=ae.substring(wi.start.length,ae.length-wi.end.length),Wi=ui(Ce,wi.start,zi);if(wi.start===bl_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(zi,de,!1,Ce,Ue,C.valueSpan,K,ut,Wi),this.parseAssignmentEvent(zi,de,Ce,C.valueSpan,K,Et,Wi);else if(wi.start===bl_PROPERTY.start)this.bindingParser.parsePropertyBinding(zi,de,!1,Ce,Ue,C.valueSpan,K,ut,Wi);else{const jn=[];this.bindingParser.parseEvent(zi,de,!1,Ce,C.valueSpan||Ce,K,jn,Wi),tf(jn,Et)}return!0}const Ui=ui(Ce,"",ae);return this.bindingParser.parsePropertyInterpolation(ae,de,Ce,C.valueSpan,K,ut,Ui,C.valueTokens??null)}_visitTextWithInterpolation(e,C,K,ut){const Et=vh(e),Nt=this.bindingParser.parseInterpolation(Et,C,K);return Nt?new Ro(Nt,C,ut):new ec(Et,C)}parseVariable(e,C,K,ut,Et,Nt){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',K):0===e.length&&this.reportError("Variable does not have a name",K),Nt.push(new Es(e,C,K,ut,Et))}parseReference(e,C,K,ut,Et,Nt){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',K):0===e.length?this.reportError("Reference does not have a name",K):Nt.some(Yt=>Yt.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,K),Nt.push(new qc(e,C,K,ut,Et))}parseAssignmentEvent(e,C,K,ut,Et,Nt,Yt){const ae=[];this.bindingParser.parseEvent(`${e}Change`,`${C} =$event`,!0,K,ut||K,Et,ae,Yt),tf(ae,Nt)}reportError(e,C,K=Va.ERROR){this.errors.push(new ru(C,e,K))}}const Rg=new class Lg{visitElement(e){const C=Pg(e);if(C.type===js.SCRIPT||C.type===js.STYLE||C.type===js.STYLESHEET)return null;const K=Sn(this,e.children,null);return new ws(e.name,Sn(this,e.attrs),[],[],K,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Zn(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new ec(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}};function Fg(J){return/^data-/i.test(J)?J.substring(5):J}function tf(J,e){e.push(...J.map(C=>Hs.fromParsedEvent(C)))}var Jo;!function(J){J[J.ELEMENT=0]="ELEMENT",J[J.TEMPLATE=1]="TEMPLATE"}(Jo||(Jo={}));class kc{constructor(e,C,K=0,ut=null,Et,Nt){this.index=e,this.ref=C,this.level=K,this.templateIndex=ut,this.meta=Et,this.registry=Nt,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=Nt||function Hd(){return{getUniqueId:yo(),icus:new Map}}(),this.id=this._registry.getUniqueId()}appendTag(e,C,K,ut){if(C.isVoid&&ut)return;const Et=C.isVoid||!ut?C.startName:C.closeName,Nt={type:e,index:K,ctx:this.id,isVoid:C.isVoid,closed:ut};jr(this.placeholders,Et,Nt)}get icus(){return this._registry.icus}get isRoot(){return 0===this.level}get isResolved(){return 0===this._unresolvedCtxCount}getSerializedPlaceholders(){const e=new Map;return this.placeholders.forEach((C,K)=>e.set(K,C.map(bh))),e}appendBinding(e){this.bindings.add(e)}appendIcu(e,C){jr(this._registry.icus,e,C)}appendBoundText(e){ss(e,this.bindings.size,this.id).forEach((K,ut)=>jr(this.placeholders,ut,...K))}appendTemplate(e,C){this.appendTag(Jo.TEMPLATE,e,C,!1),this.appendTag(Jo.TEMPLATE,e,C,!0),this._unresolvedCtxCount++}appendElement(e,C,K){this.appendTag(Jo.ELEMENT,e,C,K)}appendProjection(e,C){this.appendTag(Jo.ELEMENT,e,C,!1),this.appendTag(Jo.ELEMENT,e,C,!0)}forkChildContext(e,C,K){return new kc(e,this.ref,this.level+1,C,K,this._registry)}reconcileChildContext(e){["start","close"].forEach(K=>{const ut=e.meta[`${K}Name`],Nt=(this.placeholders.get(ut)||[]).find(Lc(this.id,e.templateIndex));Nt&&(Nt.ctx=e.id)}),e.placeholders.forEach((K,ut)=>{const Et=this.placeholders.get(ut);if(!Et)return void this.placeholders.set(ut,K);const Nt=Et.findIndex(Lc(e.id,e.templateIndex));if(Nt>=0){const Yt=ut.startsWith("CLOSE");if(ut.endsWith("NG-TEMPLATE"))Et.splice(Nt+(Yt?0:1),0,...K);else{K[Yt?K.length-1:0].tmpl=Et[Nt],Et.splice(Nt,1,...K)}}else Et.push(...K);this.placeholders.set(ut,Et)}),this._unresolvedCtxCount--}}function Lu(J,e,C,K){return Xn(`${K?"/":""}${J}${e}`,C)}function Ch(J,{index:e,ctx:C,isVoid:K},ut){return K?Lu(J,e,C)+Lu(J,e,C,!0):Lu(J,e,C,ut)}function Lc(J,e){return C=>"object"==typeof C&&C.type===Jo.TEMPLATE&&C.index===e&&C.ctx===J}function bh(J){const e=(K,ut)=>Ch("#",K,ut),C=(K,ut)=>Ch("*",K,ut);switch(J.type){case Jo.ELEMENT:return J.closed?e(J,!0)+(J.tmpl?C(J.tmpl,!0):""):J.tmpl?C(J.tmpl)+e(J)+(J.isVoid?C(J.tmpl,!0):""):e(J);case Jo.TEMPLATE:return C(J,J.closed);default:return J}}const Hl=new class Qm{visitText(e){return e.value}visitContainer(e){return e.children.map(C=>C.visit(this)).join("")}visitIcu(e){const C=Object.keys(e.cases).map(ut=>`${ut} {${e.cases[ut].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${C.join(" ")}}`}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(C=>C.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,C){return this.formatPh(e.name)}formatPh(e){return`{${Vr(e,!1)}}`}};function ef(J){return J.visit(Hl)}const Ru={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"};class Gd{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,C,K){const ut=this._hashTag(e,C,K);if(this._signatureToName[ut])return this._signatureToName[ut];const Et=e.toUpperCase(),Nt=Ru[Et]||`TAG_${Et}`,Yt=this._generateUniqueName(K?Nt:`START_${Nt}`);return this._signatureToName[ut]=Yt,Yt}getCloseTagPlaceholderName(e){const C=this._hashClosingTag(e);if(this._signatureToName[C])return this._signatureToName[C];const K=e.toUpperCase(),ut=Ru[K]||`TAG_${K}`,Et=this._generateUniqueName(`CLOSE_${ut}`);return this._signatureToName[C]=Et,Et}getPlaceholderName(e,C){const K=e.toUpperCase(),ut=`PH: ${K}=${C}`;if(this._signatureToName[ut])return this._signatureToName[ut];const Et=this._generateUniqueName(K);return this._signatureToName[ut]=Et,Et}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}_hashTag(e,C,K){return`<${e}`+Object.keys(C).sort().map(Yt=>` ${Yt}=${C[Yt]}`).join("")+(K?"/>":`>`)}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;const K=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=K+1,`${e}_${K}`}}const Xd=new zm(new Np);function Ng(J){const e=new wh(Xd,J);return(C,K,ut,Et,Nt)=>e.toI18nMessage(C,K,ut,Et,Nt)}function Fu(J,e){return e}class wh{constructor(e,C){this._expressionParser=e,this._interpolationConfig=C}toI18nMessage(e,C="",K="",ut="",Et){const Nt={isIcu:1==e.length&&e[0]instanceof dh,icuDepth:0,placeholderRegistry:new Gd,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:Et||Fu},Yt=Sn(this,e,Nt);return new Fr(Yt,Nt.placeholderToContent,Nt.placeholderToMessage,C,K,ut)}visitElement(e,C){const K=Sn(this,e.children,C),ut={};e.attrs.forEach(de=>{ut[de.name]=de.value});const Et=Ad(e.name).isVoid,Nt=C.placeholderRegistry.getStartTagPlaceholderName(e.name,ut,Et);C.placeholderToContent[Nt]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let Yt="";Et||(Yt=C.placeholderRegistry.getCloseTagPlaceholderName(e.name),C.placeholderToContent[Yt]={text:``,sourceSpan:e.endSourceSpan??e.sourceSpan});const ae=new Br(e.name,ut,Nt,Yt,K,Et,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return C.visitNodeFn(e,ae)}visitAttribute(e,C){const K=void 0===e.valueTokens||1===e.valueTokens.length?new Nr(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,C,e.i18n);return C.visitNodeFn(e,K)}visitText(e,C){const K=1===e.tokens.length?new Nr(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,C,e.i18n);return C.visitNodeFn(e,K)}visitComment(e,C){return null}visitExpansion(e,C){C.icuDepth++;const K={},ut=new Un(e.switchValue,e.type,K,e.sourceSpan);if(e.cases.forEach(Yt=>{K[Yt.value]=new sr(Yt.expression.map(ae=>ae.visit(this,C)),Yt.expSourceSpan)}),C.icuDepth--,C.isIcu||C.icuDepth>0){const Yt=C.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return ut.expressionPlaceholder=Yt,C.placeholderToContent[Yt]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},C.visitNodeFn(e,ut)}const Et=C.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());C.placeholderToMessage[Et]=this.toI18nMessage([e],"","","",void 0);const Nt=new Gs(ut,Et,e.sourceSpan);return C.visitNodeFn(e,Nt)}visitExpansionCase(e,C){throw new Error("Unreachable code")}_visitTextWithInterpolation(e,C,K,ut){const Et=[];let Nt=!1;for(const Yt of e)switch(Yt.type){case 8:case 17:Nt=!0;const ae=Yt.parts[1],de=Vg(ae)||"INTERPOLATION",Ce=K.placeholderRegistry.getPlaceholderName(de,ae);K.placeholderToContent[Ce]={text:Yt.parts.join(""),sourceSpan:Yt.sourceSpan},Et.push(new ns(ae,Ce,Yt.sourceSpan));break;default:if(Yt.parts[0].length>0){const Ue=Et[Et.length-1];Ue instanceof Nr?(Ue.value+=Yt.parts[0],Ue.sourceSpan=new Kn(Ue.sourceSpan.start,Yt.sourceSpan.end,Ue.sourceSpan.fullStart,Ue.sourceSpan.details)):Et.push(new Nr(Yt.parts[0],Yt.sourceSpan))}}return Nt?(function Bg(J,e){if(e instanceof Fr&&(function Rc(J){const e=J.nodes;if(1!==e.length||!(e[0]instanceof sr))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(e),e=e.nodes[0]),e instanceof sr){!function jg(J,e){if(J.length!==e.length)throw new Error("The number of i18n message children changed between first and second pass.");if(J.some((C,K)=>e[K].constructor!==C.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}(e.children,J);for(let C=0;C(J instanceof Ac&&(e instanceof Gs&&J.i18n instanceof Fr&&(e.previousMessage=J.i18n),J.i18n=e),e);class Bu{constructor(e=Xs,C=!1,K=!1){this.interpolationConfig=e,this.keepI18nAttrs=C,this.enableI18nLegacyMessageIdFormat=K,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=Ng(this.interpolationConfig)}_generateI18nMessage(e,C="",K){const{meaning:ut,description:Et,customId:Nt}=this._parseMetadata(C),Yt=this._createI18nMessage(e,ut,Et,Nt,K);return this._setMessageId(Yt,C),this._setLegacyIds(Yt,C),Yt}visitAllWithErrors(e){const C=e.map(K=>K.visit(this,null));return new Fd(C,this._errors)}visitElement(e){let C;if(function or(J){return J.attrs.some(e=>ln(e.name))}(e)){this.hasI18nMeta=!0;const K=[],ut={};for(const Et of e.attrs)if("i18n"===Et.name){const Nt=e.i18n||Et.value;C=this._generateI18nMessage(e.children,Nt,Nu),0===C.nodes.length&&(C=void 0),e.i18n=C}else if(Et.name.startsWith(Ve)){const Nt=Et.name.slice(Ve.length);Kp(e.name,Nt)?this._reportError(Et,`Translating attribute '${Nt}' is disallowed for security reasons.`):ut[Nt]=Et.value}else K.push(Et);if(Object.keys(ut).length)for(const Et of K){const Nt=ut[Et.name];void 0!==Nt&&Et.value&&(Et.i18n=this._generateI18nMessage([Et],Et.i18n||Nt))}this.keepI18nAttrs||(e.attrs=K)}return Sn(this,e.children,C),e}visitExpansion(e,C){let K;const ut=e.i18n;if(this.hasI18nMeta=!0,ut instanceof Gs){const Et=ut.name;K=this._generateI18nMessage([e],ut);On(K).name=Et,null!==C&&(C.placeholderToMessage[Et]=K)}else K=this._generateI18nMessage([e],C||ut);return e.i18n=K,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}_parseMetadata(e){return"string"==typeof e?function tv(J=""){let e,C,K;if(J=J.trim(),J){const ut=J.indexOf("@@"),Et=J.indexOf("|");let Nt;[Nt,e]=ut>-1?[J.slice(0,ut),J.slice(ut+2)]:[J,""],[C,K]=Et>-1?[Nt.slice(0,Et),Nt.slice(Et+1)]:["",Nt]}return{customId:e,meaning:C,description:K}}(e):e instanceof Fr?e:{}}_setMessageId(e,C){e.id||(e.id=C instanceof Fr&&C.id||M(e))}_setLegacyIds(e,C){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[j(e),D(e)];else if("string"!=typeof C){const K=C instanceof Fr?C:C instanceof Gs?C.previousMessage:void 0;e.legacyIds=K?K.legacyIds:[]}}_reportError(e,C){this._errors.push(new ta(e.sourceSpan,C))}}function iv(J,e,C,K){const ut=function nv(J){return J.nodes.map(e=>e.visit(rf,null)).join("")}(e),Et=[Oe(ut)];Object.keys(K).length&&(Et.push(jd(jo(K,!0),!0)),Et.push(jd({original_code:fe(Object.keys(K).map(ae=>({key:Vr(ae),quoted:!0,value:e.placeholders[ae]?Oe(e.placeholders[ae].sourceSpan.toString()):Oe(e.placeholderToMessage[ae].nodes.map(de=>de.sourceSpan.toString()).join(""))})))})));const Nt=C.set(ai("goog.getMsg").callFn(Et)).toConstDecl();Nt.addLeadingComment(function ev(J){const e=[];return J.description?e.push({tagName:"desc",text:J.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),J.meaning&&e.push({tagName:"meaning",text:J.meaning}),li(e)}(e));return[Nt,new ri(J.set(C))]}const rf=new class Ug{formatPh(e){return`{$${Vr(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(C=>C.visit(this)).join("")}visitIcu(e){return ef(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(C=>C.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitIcuPlaceholder(e,C){return this.formatPh(e.name)}};function rv(J,e,C){const{messageParts:K,placeHolders:ut}=function Wg(J){const e=[],C=new co(J.placeholderToMessage,e);return J.nodes.forEach(K=>K.visit(C)),function $v(J){const e=[],C=[];J[0]instanceof vi&&e.push(ju(J[0].sourceSpan.start));for(let K=0;KC[de.text]),Yt=fn(e,K,ut,Nt,Et),ae=J.set(Yt);return[new ri(ae)]}class co{constructor(e,C){this.placeholderToMessage=e,this.pieces=C}visitText(e){if(this.pieces[this.pieces.length-1]instanceof _i)this.pieces[this.pieces.length-1].text+=e.value;else{const C=new Kn(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new _i(e.value,C))}}visitContainer(e){e.children.forEach(C=>C.visit(this))}visitIcu(e){this.pieces.push(new _i(ef(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(C=>C.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,C,K){return new vi(Vr(e,!1),C,K)}}function ju(J){return new _i("",new Kn(J,J))}const of=new Set(["$event"]),af=new Map([["window",ee.resolveWindow],["document",ee.resolveDocument],["body",ee.resolveBody]]),Ao=[" ","\n","\r","\t"];function Ya(J,e){return mi(ai(_o).bitwiseAnd(Oe(J),null,!1),e)}function Eh(J,e=null,C=null){const{type:K,name:ut,target:Et,phase:Nt,handler:Yt}=J;if(Et&&!af.has(Et))throw new Error(`Unexpected global target '${Et}' defined for '${ut}' event.\n Supported list of global targets: ${Array.from(af.keys())}.`);const de=new Set,Ce=null===C||0===C.bindingLevel?ai(Ms):C.getOrCreateSharedContextVar(0),Ue=oo(C,Ce,Yt,"b",J.handlerSpan,de,of),ui=[],xi=C?.variableDeclarations(),wi=C?.restoreViewStatement();if(xi&&ui.push(...xi),ui.push(...Ue),wi){ui.unshift(wi);const Gr=ui[ui.length-1];Gr instanceof Qe?ui[ui.length-1]=new Qe(sl(Gr.value.sourceSpan,ee.resetView,[Gr.value])):ui.push(new ri(sl(null,ee.resetView,[])))}const Ui=1===K?function Us(J,e){return`@${J}.${e}`}(ut,Nt):ut,Ri=e&&za(e),zi=[];de.has("$event")&&zi.push(new Hi("$event",Ft));const Wi=ti(zi,ui,jt,null,Ri),jn=[Oe(Ui),Wi];return Et&&jn.push(Oe(!1),Je(af.get(Et))),jn}class lf{constructor(e,C,K=0,ut,Et,Nt,Yt,ae,de,Ce,Ue=function Vu(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}()){this.constantPool=e,this.level=K,this.contextName=ut,this.i18nContext=Et,this.templateIndex=Nt,this.templateName=Yt,this._namespace=ae,this.i18nUseExternalIds=Ce,this._constants=Ue,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=ol,this.visitVariable=ol,this.visitTextAttribute=ol,this.visitBoundAttribute=ol,this.visitBoundEvent=ol,this._bindingScope=C.nestedScope(K),this.fileBasedI18nSuffix=de.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Gg(e,()=>this.allocateDataSlot(),ui=>this.allocatePureFunctionSlots(ui),(ui,xi,wi,Ui)=>{this._bindingScope.set(this.level,xi,Ui),this.creationInstruction(null,ee.pipe,[Oe(wi),Oe(ui)])})}buildTemplateFunction(e,C,K=0,ut){this._ngContentSelectorsOffset=K,this._namespace!==ee.namespaceHTML&&this.creationInstruction(null,this._namespace),C.forEach(xi=>this.registerContextVariables(xi));const Et=this.i18nContext||mn(ut)&&!In(ut)&&!(function Kv(J){return 1===J.length&&J[0]instanceof ws}(e)&&e[0].i18n===ut),Nt=wl(e);if(Et&&this.i18nStart(null,ut,Nt),rr(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(xi=>xi()),0===this.level&&this._ngContentReservedSlots.length){const xi=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){const wi=this._ngContentReservedSlots.map(Ui=>"*"!==Ui?T(Ui):Ui);xi.push(this.constantPool.getConstLiteral(yr(wi),!0))}this.creationInstruction(null,ee.projectionDef,xi,!0)}Et&&this.i18nEnd(null,Nt);const Yt=ma(this._creationCodeFns),ae=ma(this._updateCodeFns),de=this._bindingScope.viewSnapshotStatements(),Ce=this._bindingScope.variableDeclarations().concat(this._tempVariables),Ue=Yt.length>0?[Ya(1,de.concat(Yt))]:[],ui=ae.length>0?[Ya(2,Ce.concat(ae))]:[];return ti([new Hi(_o,_t),new Hi(Ms,null)],[...this._prefixCode,...Ue,...ui],jt,null,this.templateName)}getLocal(e){return this._bindingScope.get(e)}notifyImplicitReceiverUse(){this._bindingScope.notifyImplicitReceiverUse()}maybeRestoreView(){this._bindingScope.maybeRestoreView()}i18nTranslate(e,C={},K,ut){const Et=K||this.i18nGenerateMainBlockVar(),Yt=function Za(J,e,C,K={},ut){const Et=[rl(e),mi(Bc(),iv(e,J,C,K),rv(e,J,jo(K,!1)))];return ut&&Et.push(new ri(e.set(ut(e)))),Et}(e,Et,this.i18nGenerateClosureVar(e.id),C,ut);return this._constants.prepareStatements.push(...Yt),Et}registerContextVariables(e){const C=this._bindingScope.freshReferenceName(),K=this.level,ut=ai(e.name+C);this._bindingScope.set(K,e.name,ut,1,(Et,Nt)=>{let Yt;if(Et.bindingLevel===K)Et.isListenerScope()&&Et.hasRestoreViewVariable()?(Yt=ai(Zh),Et.notifyRestoredViewContextUse()):Yt=ai(Ms);else{Yt=Et.getSharedContextName(K)||zu(Nt)}return[ut.set(Yt.prop(e.value||"$implicit")).toConstDecl()]})}i18nAppendBindings(e){e.length>0&&e.forEach(C=>this.i18n.appendBinding(C))}i18nBindProps(e){const C={};return Object.keys(e).forEach(K=>{const ut=e[K];if(ut instanceof ec)C[K]=Oe(ut.value);else{const Et=ut.value.visit(this._valueConverter);if(this.allocateBindingSlots(Et),Et instanceof qs){const{strings:Nt,expressions:Yt}=Et,{id:ae,bindings:de}=this.i18n,Ce=function rs(J,e=0,C=0){if(!J.length)return"";let K="";const ut=J.length-1;for(let Et=0;Et{if(1===ui.length)de[xi]=ui[0];else{const wi=Xn(`I18N_EXP_${xi}`);de[xi]=Oe(wi),ae[xi]=oe(ui)}});let Ue;(Array.from(Yt.values()).some(ui=>ui.length>1)||Object.keys(ae).length)&&(Ue=ui=>{const xi=[ui];return Object.keys(ae).length&&xi.push(jd(ae,!0)),sl(null,ee.i18nPostprocess,xi)}),this.i18nTranslate(K,de,e.ref,Ue)}}i18nStart(e=null,C,K){const ut=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(ut,this.templateIndex,C):new kc(ut,this.i18nGenerateMainBlockVar(),0,this.templateIndex,C);const{id:Et,ref:Nt}=this.i18n,Yt=[Oe(ut),this.addToConsts(Nt)];Et>0&&Yt.push(Oe(Et)),this.creationInstruction(e,K?ee.i18n:ee.i18nStart,Yt)}i18nEnd(e=null,C){if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);const{index:K,bindings:ut}=this.i18n;if(ut.size){for(const Et of ut)this.updateInstructionWithAdvance(this.getConstCount()-1,e,ee.i18nExp,()=>this.convertPropertyBinding(Et));this.updateInstruction(e,ee.i18nApply,[Oe(K)])}C||this.creationInstruction(e,ee.i18nEnd),this.i18n=null}i18nAttributesInstruction(e,C,K){let ut=!1;const Et=[];if(C.forEach(Nt=>{const Yt=Nt.i18n,ae=Nt.value.visit(this._valueConverter);if(this.allocateBindingSlots(ae),ae instanceof qs){const Ce=Ds(ss(Yt));Et.push(Oe(Nt.name),this.i18nTranslate(Yt,Ce)),ae.expressions.forEach(Ue=>{ut=!0,this.updateInstructionWithAdvance(e,K,ee.i18nExp,()=>this.convertPropertyBinding(Ue))})}}),Et.length>0){const Nt=Oe(this.allocateDataSlot()),Yt=this.addToConsts(oe(Et));this.creationInstruction(K,ee.i18nAttributes,[Nt,Yt]),ut&&this.updateInstruction(K,ee.i18nApply,[Nt])}}getNamespaceInstruction(e){switch(e){case"math":return ee.namespaceMathML;case"svg":return ee.namespaceSVG;default:return ee.namespaceHTML}}addNamespaceInstruction(e,C){this._namespace=e,this.creationInstruction(C.startSourceSpan,e)}interpolatedUpdateInstruction(e,C,K,ut,Et,Nt){this.updateInstructionWithAdvance(C,ut.sourceSpan,e,()=>[Oe(K),...this.getUpdateInstructionArguments(Et),...Nt])}visitContent(e){const C=this.allocateDataSlot(),K=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,ut=[Oe(C)];this._ngContentReservedSlots.push(e.selector);const Et=e.attributes.filter(Yt=>"select"!==Yt.name.toLowerCase()),Nt=this.getAttributeExpressions(e.name,Et,[],[]);Nt.length>0?ut.push(Oe(K),oe(Nt)):0!==K&&ut.push(Oe(K)),this.creationInstruction(e.sourceSpan,ee.projection,ut),this.i18n&&this.i18n.appendProjection(e.i18n,C)}visitElement(e){const C=this.allocateDataSlot(),K=new Sc(null);let ut=!1;const Et=mn(e.i18n)&&!In(e.i18n),Nt=[],[Yt,ae]=qo(e.name),de=zp(e.name);for(const Vi of e.attributes){const{name:Ir,value:Qn}=Vi;"ngNonBindable"===Ir?ut=!0:"style"===Ir?K.registerStyleAttr(Qn):"class"===Ir?K.registerClassAttr(Qn):Nt.push(Vi)}const Ce=[Oe(C)];de||Ce.push(Oe(ae));const Ue=[],ui=[];e.inputs.forEach(Vi=>{K.registerBoundInput(Vi)||(0===Vi.type&&Vi.i18n?ui.push(Vi):Ue.push(Vi))});const xi=this.getAttributeExpressions(e.name,Nt,Ue,e.outputs,K,[],ui);Ce.push(this.addAttrsToConsts(xi));const wi=this.prepareRefsArray(e.references);Ce.push(this.addToConsts(wi));const Ui=this._namespace,Ri=this.getNamespaceInstruction(Yt);Ri!==Ui&&this.addNamespaceInstruction(Ri,e),this.i18n&&this.i18n.appendElement(e.i18n,C);const zi=!Et&&this.i18n?!wl(e.children):e.children.length>0,Wi=!K.hasBindingsWithPipes&&0===e.outputs.length&&0===ui.length&&!zi,jn=!Wi&&wl(e.children);if(Wi)this.creationInstruction(e.sourceSpan,de?ee.elementContainer:ee.element,oc(Ce));else{if(this.creationInstruction(e.startSourceSpan,de?ee.elementContainerStart:ee.elementStart,oc(Ce)),ut&&this.creationInstruction(e.startSourceSpan,ee.disableBindings),ui.length>0&&this.i18nAttributesInstruction(C,ui,e.startSourceSpan??e.sourceSpan),e.outputs.length>0)for(const Vi of e.outputs)this.creationInstruction(Vi.sourceSpan,ee.listener,this.prepareListenerParameter(e.name,Vi,C));Et&&this.i18nStart(e.startSourceSpan,e.i18n,jn)}const Gr=K.buildUpdateLevelInstructions(this._valueConverter),cs=Gr.length-1;for(let Vi=0;Vi<=cs;Vi++){const Ir=Gr[Vi];this._bindingSlots+=this.processStylingUpdateInstruction(C,Ir)}const Zc=Oe(void 0),jh=[],Ql=[];Ue.forEach(Vi=>{const Ir=Vi.type;if(4===Ir){const Qn=Vi.value.visit(this._valueConverter),eo=!(Qn instanceof so)||!!Qn.value;this.allocateBindingSlots(Qn),jh.push({span:Vi.sourceSpan,paramsOrFn:Hu(()=>eo?this.convertPropertyBinding(Qn):Zc,go(Vi.name))})}else{if(Vi.i18n)return;const Qn=Vi.value.visit(this._valueConverter);if(void 0!==Qn){const eo=[],[es,Yu]=qo(Vi.name),Vh=1===Ir;let Ja=Dh(Vi.securityContext,Vh);if(Ja||function $g(J){return"iframe"===J.toLowerCase()}(e.name)&&ml(Vi.name)&&(Ja=Je(ee.validateIframeAttribute)),Ja&&eo.push(Ja),es){const Tl=Oe(es);Ja?eo.push(Tl):eo.push(Oe(null),Tl)}if(this.allocateBindingSlots(Qn),0===Ir)Qn instanceof qs?this.interpolatedUpdateInstruction(Kd(Qn),C,Yu,Vi,Qn,eo):jh.push({span:Vi.sourceSpan,paramsOrFn:Hu(()=>this.convertPropertyBinding(Qn),Yu,eo)});else if(1===Ir)if(Qn instanceof qs&&zo(Qn)>1)this.interpolatedUpdateInstruction(function Xg(J){switch(zo(J)){case 3:return ee.attributeInterpolate1;case 5:return ee.attributeInterpolate2;case 7:return ee.attributeInterpolate3;case 9:return ee.attributeInterpolate4;case 11:return ee.attributeInterpolate5;case 13:return ee.attributeInterpolate6;case 15:return ee.attributeInterpolate7;case 17:return ee.attributeInterpolate8;default:return ee.attributeInterpolateV}}(Qn),C,Yu,Vi,Qn,eo);else{const Tl=Qn instanceof qs?Qn.expressions[0]:Qn;Ql.push({span:Vi.sourceSpan,paramsOrFn:Hu(()=>this.convertPropertyBinding(Tl),Yu,eo)})}else this.updateInstructionWithAdvance(C,Vi.sourceSpan,ee.classProp,()=>[Oe(C),Oe(Yu),this.convertPropertyBinding(Qn),...eo])}}});for(const Vi of jh)this.updateInstructionWithAdvance(C,Vi.span,ee.property,Vi.paramsOrFn);for(const Vi of Ql)this.updateInstructionWithAdvance(C,Vi.span,ee.attribute,Vi.paramsOrFn);if(rr(this,e.children),!Et&&this.i18n&&this.i18n.appendElement(e.i18n,C,!0),!Wi){const Vi=e.endSourceSpan??e.sourceSpan;Et&&this.i18nEnd(Vi,jn),ut&&this.creationInstruction(Vi,ee.enableBindings),this.creationInstruction(Vi,de?ee.elementContainerEnd:ee.elementEnd)}}visitTemplate(e){const C="ng-template",K=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(e.i18n,K);const ut=e.tagName?qo(e.tagName)[1]:e.tagName,Et=`${this.contextName}${e.tagName?"_"+za(e.tagName):""}_${K}`,Nt=`${Et}_Template`,Yt=[Oe(K),ai(Nt),Oe(ut)],ae=this.getAttributeExpressions(C,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(Yt.push(this.addAttrsToConsts(ae)),e.references&&e.references.length){const Ce=this.prepareRefsArray(e.references);Yt.push(this.addToConsts(Ce)),Yt.push(Je(ee.templateRefExtractor))}const de=new lf(this.constantPool,this._bindingScope,this.level+1,Et,this.i18n,K,Nt,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(()=>{const Ce=de.buildTemplateFunction(e.children,e.variables,this._ngContentReservedSlots.length+this._ngContentSelectorsOffset,e.i18n);this.constantPool.statements.push(Ce.toDeclStmt(Nt)),de._ngContentReservedSlots.length&&this._ngContentReservedSlots.push(...de._ngContentReservedSlots)}),this.creationInstruction(e.sourceSpan,ee.templateCreate,()=>(Yt.splice(2,0,Oe(de.getConstCount()),Oe(de.getVarCount())),oc(Yt))),this.templatePropertyBindings(K,e.templateAttrs),ut===C){const[Ce,Ue]=function gr(J,e){const C=[],K=[];for(const ut of J)(e(ut)?C:K).push(ut);return[C,K]}(e.inputs,wn);Ce.length>0&&this.i18nAttributesInstruction(K,Ce,e.startSourceSpan??e.sourceSpan),Ue.length>0&&this.templatePropertyBindings(K,Ue);for(const ui of e.outputs)this.creationInstruction(ui.sourceSpan,ee.listener,this.prepareListenerParameter("ng_template",ui,K))}}visitBoundText(e){if(this.i18n){const ut=e.value.visit(this._valueConverter);return this.allocateBindingSlots(ut),void(ut instanceof qs&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(ut.expressions)))}const C=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,ee.text,[Oe(C)]);const K=e.value.visit(this._valueConverter);this.allocateBindingSlots(K),K instanceof qs?this.updateInstructionWithAdvance(C,e.sourceSpan,function cv(J){switch(zo(J)){case 1:return ee.textInterpolate;case 3:return ee.textInterpolate1;case 5:return ee.textInterpolate2;case 7:return ee.textInterpolate3;case 9:return ee.textInterpolate4;case 11:return ee.textInterpolate5;case 13:return ee.textInterpolate6;case 15:return ee.textInterpolate7;case 17:return ee.textInterpolate8;default:return ee.textInterpolateV}}(K),()=>this.getUpdateInstructionArguments(K)):cr("Text nodes should be interpolated and never bound directly.")}visitText(e){this.i18n||this.creationInstruction(e.sourceSpan,ee.text,[Oe(this.allocateDataSlot()),Oe(e.value)])}visitIcu(e){let C=!1;this.i18n||(C=!0,this.i18nStart(null,e.i18n,!0));const K=this.i18n,ut=this.i18nBindProps(e.vars),Et=this.i18nBindProps(e.placeholders),Nt=e.i18n,Yt=ae=>{const Ce=jo({...ut,...Et},!1);return sl(null,ee.i18nPostprocess,[ae,jd(Ce,!0)])};if(In(K.meta))this.i18nTranslate(Nt,{},K.ref,Yt);else{const ae=this.i18nTranslate(Nt,{},void 0,Yt);K.appendIcu(On(Nt).name,ae)}return C&&this.i18nEnd(null,!0),null}allocateDataSlot(){return this._dataIndex++}getConstCount(){return this._dataIndex}getVarCount(){return this._pureFunctionSlots}getConsts(){return this._constants}getNgContentSelectors(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(yr(this._ngContentReservedSlots),!0):null}bindingContext(){return""+this._bindingContext++}templatePropertyBindings(e,C){const K=[];for(const ut of C){if(!(ut instanceof ha))continue;const Et=ut.value.visit(this._valueConverter);if(void 0!==Et)if(this.allocateBindingSlots(Et),Et instanceof qs){const Nt=[];this.interpolatedUpdateInstruction(Kd(Et),e,ut.name,ut,Et,Nt)}else K.push({span:ut.sourceSpan,paramsOrFn:Hu(()=>this.convertPropertyBinding(Et),ut.name)})}for(const ut of K)this.updateInstructionWithAdvance(e,ut.span,ee.property,ut.paramsOrFn)}instructionFn(e,C,K,ut,Et=!1){e[Et?"unshift":"push"]({span:C,reference:K,paramsOrFn:ut})}processStylingUpdateInstruction(e,C){let K=0;if(C)for(const ut of C.calls)K+=ut.allocateBindingSlots,this.updateInstructionWithAdvance(e,ut.sourceSpan,C.reference,()=>ut.params(Et=>ut.supportsInterpolation&&Et instanceof qs?this.getUpdateInstructionArguments(Et):this.convertPropertyBinding(Et)));return K}creationInstruction(e,C,K,ut){this.instructionFn(this._creationCodeFns,e,C,K||[],ut)}updateInstructionWithAdvance(e,C,K,ut){this.addAdvanceInstructionIfNecessary(e,C),this.updateInstruction(C,K,ut)}updateInstruction(e,C,K){this.instructionFn(this._updateCodeFns,e,C,K||[])}addAdvanceInstructionIfNecessary(e,C){if(e!==this._currentIndex){const K=e-this._currentIndex;if(K<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,C,ee.advance,[Oe(K)]),this._currentIndex=e}}allocatePureFunctionSlots(e){const C=this._pureFunctionSlots;return this._pureFunctionSlots+=e,C}allocateBindingSlots(e){this._bindingSlots+=e instanceof qs?e.expressions.length:1}getImplicitReceiverExpr(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?ai(Ms):this._bindingScope.getOrCreateSharedContextVar(0)}convertPropertyBinding(e){const C=yc(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),K=C.currValExpr;return this._tempVariables.push(...C.stmts),K}getUpdateInstructionArguments(e){const{args:C,stmts:K}=function Dm(J,e,C,K){const ut=new _c(J,e,K,!0),Et=ut.visitInterpolation(C,kn.Expression);return ut.usesImplicitReceiver&&J.notifyImplicitReceiverUse(),{stmts:Dp(ut,K),args:Et.args}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext());return this._tempVariables.push(...K),C}getAttributeExpressions(e,C,K,ut,Et,Nt=[],Yt=[]){const ae=new Set,de=[];let Ce;for(const ui of C)if("ngProjectAs"===ui.name&&(Ce=ui),ui.i18n){const{i18nVarRefsCache:xi}=this._constants;let wi;xi.has(ui.i18n)?wi=xi.get(ui.i18n):(wi=this.i18nTranslate(ui.i18n),xi.set(ui.i18n,wi)),de.push(Oe(ui.name),wi)}else de.push(...uf(ui.name),Wu(e,ui));function Ue(ui,xi){"string"==typeof ui?ae.has(ui)||(de.push(...uf(ui)),void 0!==xi&&de.push(xi),ae.add(ui)):de.push(Oe(ui))}if(Ce&&de.push(...function lv(J){const e=T(J.value)[0];return[Oe(5),yr(e)]}(Ce)),Et&&Et.populateInitialStylingAttrs(de),K.length||ut.length){const ui=de.length;for(let xi=0;xiUe(ui.name))),Yt.length&&(de.push(Oe(6)),Yt.forEach(ui=>Ue(ui.name))),de}addToConsts(e){if(tn(e))return me;const C=this._constants.constExpressions;for(let K=0;K0?this.addToConsts(oe(e)):me}prepareRefsArray(e){if(!e||0===e.length)return me;return yr(e.flatMap(K=>{const ut=this.allocateDataSlot(),Et=this._bindingScope.freshReferenceName(),Nt=this.level,Yt=ai(Et);return this._bindingScope.set(Nt,K.name,Yt,0,(ae,de)=>{const Ce=de>0?[zu(de).toStmt()]:[],Ue=Yt.set(Je(ee.reference).callFn([Oe(ut)]));return Ce.concat(Ue.toConstDecl())},!0),[K.name,K.value]}))}prepareListenerParameter(e,C,K){return()=>{const ut=C.name,Et=1===C.type?vr(ut,C.phase):za(ut),Nt=`${this.templateName}_${e}_${Et}_${K}_listener`,Yt=this._bindingScope.nestedScope(this._bindingScope.bindingLevel,of);return Eh(C,Nt,Yt)}}}class Gg extends vc{constructor(e,C,K,ut){super(),this.constantPool=e,this.allocateSlot=C,this.allocatePureFunctionSlots=K,this.definePipe=ut,this._pipeBindExprs=[]}visitPipe(e,C){const K=this.allocateSlot(),ut=`PIPE:${K}`,Et=this.allocatePureFunctionSlots(2+e.args.length),Nt=new dl(e.span,e.sourceSpan,e.nameSpan,new sh(e.span,e.sourceSpan),ut),{identifier:Yt,isVarLength:ae}=function ov(J){const e=cf[J.length];return{identifier:e||ee.pipeBindV,isVarLength:!e}}(e.args);this.definePipe(e.name,ut,K,Je(Yt));const de=[e.exp,...e.args],Ce=ae?this.visitAll([new hd(e.span,e.sourceSpan,de)]):this.visitAll(de),Ue=new Ua(e.span,e.sourceSpan,Nt,[new so(e.span,e.sourceSpan,K),new so(e.span,e.sourceSpan,Et),...Ce],null);return this._pipeBindExprs.push(Ue),Ue}updatePipeSlotOffsets(e){this._pipeBindExprs.forEach(C=>{C.args[1].value+=e})}visitLiteralArray(e,C){return new xc(e.span,e.sourceSpan,this.visitAll(e.expressions),K=>{const ut=oe(K);return hf(this.constantPool,ut,this.allocatePureFunctionSlots)})}visitLiteralMap(e,C){return new xc(e.span,e.sourceSpan,this.visitAll(e.values),K=>{const ut=fe(K.map((Et,Nt)=>({key:e.keys[Nt].key,value:Et,quoted:e.keys[Nt].quoted})));return hf(this.constantPool,ut,this.allocatePureFunctionSlots)})}}const cf=[ee.pipeBind1,ee.pipeBind2,ee.pipeBind3,ee.pipeBind4];const av=[ee.pureFunction0,ee.pureFunction1,ee.pureFunction2,ee.pureFunction3,ee.pureFunction4,ee.pureFunction5,ee.pureFunction6,ee.pureFunction7,ee.pureFunction8];function zu(J){return Je(ee.nextContext).callFn(J>1?[Oe(J)]:[])}function hf(J,e,C){const{literalFactory:K,literalFactoryArguments:ut}=J.getLiteralFactory(e),Et=C(1+ut.length),{identifier:Nt,isVarLength:Yt}=function To(J){const e=av[J.length];return{identifier:e||ee.pureFunctionV,isVarLength:!e}}(ut),ae=[Oe(Et),K];return Yt?ae.push(oe(ut)):ae.push(...ut),Je(Nt).callFn(ae)}function uf(J){const[e,C]=qo(J),K=Oe(C);return e?[Oe(0),Oe(e),K]:[K]}const Gl="$$shared_ctx$$";class to{static createRootScope(){return new to}constructor(e=0,C=null,K){if(this.bindingLevel=e,this.parent=C,this.globals=K,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,this.usesRestoredViewContext=!1,void 0!==K)for(const ut of K)this.set(0,ut,ai(ut))}get(e){let C=this;for(;C;){let K=C.map.get(e);if(null!=K)return C!==this&&(K={retrievalLevel:K.retrievalLevel,lhs:K.lhs,declareLocalCallback:K.declareLocalCallback,declare:!1,priority:K.priority},this.map.set(e,K),this.maybeGenerateSharedContextVar(K),this.maybeRestoreView()),K.declareLocalCallback&&!K.declare&&(K.declare=!0),K.lhs;C=C.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)}set(e,C,K,ut=0,Et,Nt){if(this.map.has(C)){if(Nt)return this;cr(`The name ${C} is already defined in scope to be ${this.map.get(C)}`)}return this.map.set(C,{retrievalLevel:e,lhs:K,declare:!1,declareLocalCallback:Et,priority:ut}),this}getLocal(e){return this.get(e)}notifyImplicitReceiverUse(){0!==this.bindingLevel&&(this.map.get(Gl+0).declare=!0)}nestedScope(e,C){const K=new to(e,this,C);return e>0&&K.generateSharedContextVar(0),K}getOrCreateSharedContextVar(e){const C=Gl+e;return this.map.has(C)||this.generateSharedContextVar(e),this.map.get(C).lhs}getSharedContextName(e){const C=this.map.get(Gl+e);return C&&C.declare?C.lhs:null}maybeGenerateSharedContextVar(e){if(1===e.priority&&e.retrievalLevel[C.set(zu(ut)).toConstDecl()],declare:!1,priority:2})}getComponentProperty(e){const C=this.map.get(Gl+0);return C.declare=!0,this.maybeRestoreView(),C.lhs.prop(e)}maybeRestoreView(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=ai(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}restoreViewStatement(){if(this.restoreViewVariable){const e=sl(null,ee.restoreView,[this.restoreViewVariable]);return this.usesRestoredViewContext?ai(Zh).set(e).toConstDecl():e.toStmt()}return null}viewSnapshotStatements(){return this.restoreViewVariable?[this.restoreViewVariable.set(sl(null,ee.getCurrentView,[])).toConstDecl()]:[]}isListenerScope(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}variableDeclarations(){let e=0;return Array.from(this.map.values()).filter(C=>C.declare).sort((C,K)=>K.retrievalLevel-C.retrievalLevel||K.priority-C.priority).reduce((C,K)=>{const ut=this.bindingLevel-K.retrievalLevel,Et=K.declareLocalCallback(this,ut-e);return e=ut,C.concat(Et)},[])}freshReferenceName(){let e=this;for(;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++}hasRestoreViewVariable(){return!!this.restoreViewVariable}notifyRestoredViewContextUse(){this.usesRestoredViewContext=!0}}function Kd(J){switch(zo(J)){case 1:return ee.propertyInterpolate;case 3:return ee.propertyInterpolate1;case 5:return ee.propertyInterpolate2;case 7:return ee.propertyInterpolate3;case 9:return ee.propertyInterpolate4;case 11:return ee.propertyInterpolate5;case 13:return ee.propertyInterpolate6;case 15:return ee.propertyInterpolate7;case 17:return ee.propertyInterpolate8;default:return ee.propertyInterpolateV}}function Uu(J,e,C={}){const{interpolationConfig:K,preserveWhitespaces:ut,enableI18nLegacyMessageIdFormat:Et}=C,Nt=Nc(K),ae=(new Ns).parse(J,e,{leadingTriviaChars:Ao,...C,tokenizeExpansionForms:!0});if(!C.alwaysAttemptHtmlToR3AstConversion&&ae.errors&&ae.errors.length>0){const jn={interpolationConfig:K,preserveWhitespaces:ut,errors:ae.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return C.collectCommentNodes&&(jn.commentNodes=[]),jn}let de=ae.rootNodes;const Ce=new Bu(K,!ut,Et),Ue=Ce.visitAllWithErrors(de);if(!C.alwaysAttemptHtmlToR3AstConversion&&Ue.errors&&Ue.errors.length>0){const jn={interpolationConfig:K,preserveWhitespaces:ut,errors:Ue.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return C.collectCommentNodes&&(jn.commentNodes=[]),jn}de=Ue.rootNodes,ut||(de=Sn(new yh,de),Ce.hasI18nMeta&&(de=Sn(new Bu(K,!1),de)));const{nodes:ui,errors:xi,styleUrls:wi,styles:Ui,ngContentSelectors:Ri,commentNodes:zi}=function xh(J,e,C){const K=new kg(e,C),Nt={nodes:Sn(K,J),errors:e.errors.concat(K.errors),styleUrls:K.styleUrls,styles:K.styles,ngContentSelectors:K.ngContentSelectors};return C.collectCommentNodes&&(Nt.commentNodes=K.commentNodes),Nt}(de,Nt,{collectCommentNodes:!!C.collectCommentNodes});xi.push(...ae.errors,...Ue.errors);const Wi={interpolationConfig:K,preserveWhitespaces:ut,errors:xi.length>0?xi:null,nodes:ui,styleUrls:wi,styles:Ui,ngContentSelectors:Ri};return C.collectCommentNodes&&(Wi.commentNodes=zi),Wi}const Fc=new Md;function Nc(J=Xs){return new Oc(new zm(new Np),J,Fc,[])}function Dh(J,e){switch(J){case R.HTML:return Je(ee.sanitizeHtml);case R.SCRIPT:return Je(ee.sanitizeScript);case R.STYLE:return e?Je(ee.sanitizeStyle):null;case R.URL:return Je(ee.sanitizeUrl);case R.RESOURCE_URL:return Je(ee.sanitizeResourceUrl);default:return null}}function Wu(J,e){const C=yr(e.value);if(!Kp(J,e.name))return C;switch(Fc.securityContext(J,e.name,!0)){case R.HTML:return Mi(Je(ee.trustConstantHtml),new Se([new Le(e.value)],[]),void 0,e.valueSpan);case R.RESOURCE_URL:return Mi(Je(ee.trustConstantResourceUrl),new Se([new Le(e.value)],[]),void 0,e.valueSpan);default:return C}}function df(J){return J instanceof ec||J instanceof Ro||J instanceof qn}function wl(J){return J.every(df)}function Hu(J,e,C){return()=>{const K=J(),ut=Array.isArray(K)?K:[K];return C&&ut.push(...C),e&&ut.unshift(Oe(e)),ut}}const Yd="ngI18nClosureMode";function Bc(){return Vt(ai(Yd)).notIdentical(Oe("undefined",xt)).and(ai(Yd))}const Gu=/attr\.([^\]]+)/;function pf(J,e,C){const K=new er,ut=T(J.selector);return K.set("type",J.internalType),ut.length>0&&K.set("selectors",yr(ut)),J.queries.length>0&&K.set("contentQueries",function Yv(J,e,C){const K=[],ut=[],Et=ar(ut,"_t");for(const Yt of J){K.push(Je(ee.contentQuery).callFn([ai("dirIndex"),...Zd(Yt,e)]).toStmt());const ae=Et(),de=Je(ee.loadQuery).callFn([]),Ce=Je(ee.queryRefresh).callFn([ae.set(de)]),Ue=ai(Ms).prop(Yt.propertyName).set(Yt.first?ae.prop("first"):ae);ut.push(Ce.and(Ue).toStmt())}const Nt=C?`${C}_ContentQueries`:null;return ti([new Hi(_o,_t),new Hi(Ms,null),new Hi("dirIndex",null)],[Ya(1,K),Ya(2,ut)],jt,null,Nt)}(J.queries,e,J.name)),J.viewQueries.length&&K.set("viewQuery",function uv(J,e,C){const K=[],ut=[],Et=ar(ut,fa);J.forEach(Yt=>{const ae=Je(ee.viewQuery).callFn(Zd(Yt,e));K.push(ae.toStmt());const de=Et(),Ce=Je(ee.loadQuery).callFn([]),Ue=Je(ee.queryRefresh).callFn([de.set(Ce)]),ui=ai(Ms).prop(Yt.propertyName).set(Yt.first?de.prop("first"):de);ut.push(Ue.and(ui).toStmt())});const Nt=C?`${C}_Query`:null;return ti([new Hi(_o,_t),new Hi(Ms,null)],[Ya(1,K),Ya(2,ut)],jt,null,Nt)}(J.viewQueries,e,J.name)),K.set("hostBindings",function vf(J,e,C,K,ut,Et,Nt){const Yt=ai(Ms),ae=new Sc(Yt),{styleAttr:de,classAttr:Ce}=J.specialAttributes;void 0!==de&&ae.registerStyleAttr(de),void 0!==Ce&&ae.registerClassAttr(Ce);const Ue=[],ui=[],xi=[],wi=e,Ui=C.createDirectiveHostEventAsts(J.listeners,wi);Ui&&Ui.length&&Ue.push(...function fv(J,e){const C=[],K=[],ut=[];for(const Et of J){let Nt=Et.name&&za(Et.name);const Yt=1===Et.type?vr(Nt,Et.targetOrPhase):Nt,ae=e&&Nt?`${e}_${Yt}_HostBindingHandler`:null,de=Eh(Hs.fromParsedEvent(Et),ae);1==Et.type?K.push(de):C.push(de)}for(const Et of K)ut.push({reference:ee.syntheticHostListener,paramsOrFn:Et,span:null});for(const Et of C)ut.push({reference:ee.listener,paramsOrFn:Et,span:null});return ut}(Ui,Et));const Ri=C.createBoundHostProperties(J.properties,wi),zi=[];let jn,Wi=0;Ri&&Ri.forEach(Vi=>{ae.registerInputBasedOnName(Vi.name,Vi.expression,wi)?Wi+=2:(zi.push(Vi),Wi++)});const Gr=()=>{if(!jn){jn=new Gg(K,()=>cr("Unexpected node"),Ir=>{const Qn=Wi;return Wi+=Ir,Qn},()=>cr("Unexpected pipe"))}return jn},cs=[],Zc=[],jh=[];for(const Vi of zi){const Ir=Vi.expression.visit(Gr()),Qn=qg(Yt,Ir),{bindingName:eo,instruction:es,isAttribute:Yu}=pv(Vi),Vh=C.calcPossibleSecurityContexts(ut,eo,Yu).filter(dy=>dy!==R.NONE);let Ja=null;Vh.length&&(Ja=2===Vh.length&&Vh.indexOf(R.URL)>-1&&Vh.indexOf(R.RESOURCE_URL)>-1?Je(ee.sanitizeUrlOrResourceUrl):Dh(Vh[0],Yu));const Tl=[Oe(eo),Qn.currValExpr];Ja?Tl.push(Ja):ml(eo)&&Tl.push(Je(ee.validateIframeAttribute)),xi.push(...Qn.stmts),es===ee.hostProperty?cs.push(Tl):es===ee.attribute?Zc.push(Tl):es===ee.syntheticHostProperty?jh.push(Tl):ui.push({reference:es,paramsOrFn:Tl,span:null})}for(const Vi of cs)ui.push({reference:ee.hostProperty,paramsOrFn:Vi,span:null});for(const Vi of Zc)ui.push({reference:ee.attribute,paramsOrFn:Vi,span:null});for(const Vi of jh)ui.push({reference:ee.syntheticHostProperty,paramsOrFn:Vi,span:null});const Ql=function Xl(J){const e=[];for(let C of Object.getOwnPropertyNames(J)){const K=J[C];e.push(Oe(C),K)}return e}(J.attributes);if(ae.assignHostAttrs(Ql,Nt),ae.hasBindings&&ae.buildUpdateLevelInstructions(Gr()).forEach(Vi=>{for(const Ir of Vi.calls)Wi+=Math.max(Ir.allocateBindingSlots-2,0),ui.push({reference:Vi.reference,paramsOrFn:dv(Ir,Yt,qg),span:null})}),Wi&&Nt.set("hostVars",Oe(Wi)),Ue.length>0||ui.length>0){const Vi=Et?`${Et}_HostBindings`:null,Ir=[];return Ue.length>0&&Ir.push(Ya(1,ma(Ue))),ui.length>0&&Ir.push(Ya(2,xi.concat(ma(ui)))),ti([new Hi(_o,_t),new Hi(Ms,null)],Ir,jt,null,Vi)}return null}(J.host,J.typeSourceSpan,C,e,J.selector||"",J.name,K)),K.set("inputs",xo(J.inputs,!0)),K.set("outputs",xo(J.outputs)),null!==J.exportAs&&K.set("exportAs",oe(J.exportAs.map(Et=>Oe(Et)))),J.isStandalone&&K.set("standalone",Oe(!0)),K}function Zg(J,e){const C=[],K=e.providers,ut=e.viewProviders;if(K||ut){const Et=[K||new Jn([])];ut&&Et.push(ut),C.push(Je(ee.ProvidersFeature).callFn(Et))}e.usesInheritance&&C.push(Je(ee.InheritDefinitionFeature)),e.fullInheritance&&C.push(Je(ee.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&C.push(Je(ee.NgOnChangesFeature)),e.hasOwnProperty("template")&&e.isStandalone&&C.push(Je(ee.StandaloneFeature)),e.hostDirectives?.length&&C.push(Je(ee.HostDirectivesFeature).callFn([mv(e.hostDirectives)])),C.length&&J.set("features",oe(C))}function Ah(J,e,C){const K=pf(J,e,C);Zg(K,J);const ut=J.selector&&t.parse(J.selector),Et=ut&&ut[0];if(Et){const zi=Et.getAttrs();zi.length&&K.set("attrs",e.getConstLiteral(oe(zi.map(Wi=>Oe(null!=Wi?Wi:void 0))),!0))}const Nt=J.name,Yt=Nt?`${Nt}_Template`:null,ae=J.changeDetection,de=J.template,Ce=new lf(e,to.createRootScope(),0,Nt,null,null,Yt,ee.namespaceHTML,J.relativeContextFilePath,J.i18nUseExternalIds),Ue=Ce.buildTemplateFunction(de.nodes,[]),ui=Ce.getNgContentSelectors();ui&&K.set("ngContentSelectors",ui),K.set("decls",Oe(Ce.getConstCount())),K.set("vars",Oe(Ce.getVarCount()));const{constExpressions:xi,prepareStatements:wi}=Ce.getConsts();if(xi.length>0){let zi=oe(xi);wi.length>0&&(zi=ti([],[...wi,new Qe(zi)])),K.set("consts",zi)}if(K.set("template",Ue),J.declarations.length>0&&K.set("dependencies",function hv(J,e){switch(e){case 0:return J;case 1:return ti([],[new Qe(J)]);case 2:const C=J.prop("map").callFn([Je(ee.resolveForwardRef)]);return ti([],[new Qe(C)])}}(oe(J.declarations.map(zi=>zi.type)),J.declarationListEmitMode)),null===J.encapsulation&&(J.encapsulation=G.Emulated),J.styles&&J.styles.length){const Wi=(J.encapsulation==G.Emulated?function tm(J,e,C){const K=new Tp;return J.map(ut=>K.shimCssText(ut,e,C))}(J.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):J.styles).reduce((jn,Gr)=>(Gr.trim().length>0&&jn.push(e.getConstLiteral(Oe(Gr))),jn),[]);Wi.length>0&&K.set("styles",oe(Wi))}else J.encapsulation===G.Emulated&&(J.encapsulation=G.None);J.encapsulation!==G.Emulated&&K.set("encapsulation",Oe(J.encapsulation)),null!==J.animations&&K.set("data",fe([{key:"animation",value:J.animations,quoted:!1}])),null!=ae&&ae!==Z.Default&&K.set("changeDetection",Oe(ae));return{expression:Je(ee.defineComponent).callFn([K.toLiteralMap()],void 0,!0),type:ff(J),statements:[]}}function ff(J){const e=jc(J);return e.push(El(J.template.ngContentSelectors)),e.push(Re(Oe(J.isStandalone))),e.push(yf(J)),Re(Je(ee.ComponentDeclaration,e))}function Zd(J,e){const C=[al(J,e),Oe(gf(J))];return J.read&&C.push(J.read),C}function gf(J){return(J.descendants?1:0)|(J.static?2:0)|(J.emitDistinctChangesOnly?4:0)}function Xu(J){return Re(Oe(J))}function mf(J){return fe(Object.keys(J).map(C=>({key:C,value:Oe(Array.isArray(J[C])?J[C][0]:J[C]),quoted:!0})))}function El(J){return J.length>0?Re(oe(J.map(e=>Oe(e)))):Ct}function jc(J){const e=null!==J.selector?J.selector.replace(/\n/g,""):null;return[ds(J.type.type,J.typeArgumentCount),null!==e?Xu(e):Ct,null!==J.exportAs?El(J.exportAs):Ct,Re(mf(J.inputs)),Re(mf(J.outputs)),El(J.queries.map(C=>C.propertyName))]}function qd(J){const e=jc(J);return e.push(Ct),e.push(Re(Oe(J.isStandalone))),e.push(yf(J)),Re(Je(ee.DirectiveDeclaration,e))}function qg(J,e){return yc(null,J,e,"b")}function dv(J,e,C){return J.params(K=>C(e,K).currValExpr)}function pv(J){let C,e=J.name;const K=e.match(Gu);return K?(e=K[1],C=ee.attribute):J.isAnimation?(e=go(e),C=ee.syntheticHostProperty):C=ee.hostProperty,{bindingName:e,instruction:C,isAttribute:!!K}}const gv=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function yf(J){return J.hostDirectives?.length?Re(oe(J.hostDirectives.map(e=>fe([{key:"directive",value:Vt(e.directive.type),quoted:!1},{key:"inputs",value:mf(e.inputs||{}),quoted:!1},{key:"outputs",value:mf(e.outputs||{}),quoted:!1}])))):Ct}function mv(J){const e=[];let C=!1;for(const K of J){if(K.inputs||K.outputs){const ut=[{key:"directive",value:K.directive.type,quoted:!1}];if(K.inputs){const Et=_f(K.inputs);Et&&ut.push({key:"inputs",value:Et,quoted:!1})}if(K.outputs){const Et=_f(K.outputs);Et&&ut.push({key:"outputs",value:Et,quoted:!1})}e.push(fe(ut))}else e.push(K.directive.type);K.isForwardReference&&(C=!0)}return C?new Dn([],[new Qe(oe(e))]):oe(e)}function _f(J){const e=[];for(const C in J)J.hasOwnProperty(C)&&e.push(Oe(C),Oe(J[C]));return e.length>0?oe(e):null}class qa{}class Qd{constructor(e=new Cm){this.jitEvaluator=e,this.FactoryTarget=Fn,this.ResourceLoader=qa,this.elementSchemaRegistry=new Md}compilePipe(e,C,K){const Et=Xf({name:K.name,type:$i(K.type),internalType:new ze(K.type),typeArgumentCount:0,deps:null,pipeName:K.pipeName,pure:K.pure,isStandalone:K.isStandalone});return this.jitExpression(Et.expression,e,C,[])}compilePipeDeclaration(e,C,K){const ut=function Gc(J){return{name:J.type.name,type:$i(J.type),internalType:new ze(J.type),typeArgumentCount:0,pipeName:J.name,deps:null,pure:J.pure??!0,isStandalone:J.isStandalone??!1}}(K),Et=Xf(ut);return this.jitExpression(Et.expression,e,C,[])}compileInjectable(e,C,K){const{expression:ut,statements:Et}=Uo({name:K.name,type:$i(K.type),internalType:new ze(K.type),typeArgumentCount:K.typeArgumentCount,providedIn:Uc(K.providedIn),useClass:Sa(K,"useClass"),useFactory:zc(K,"useFactory"),useValue:Sa(K,"useValue"),useExisting:Sa(K,"useExisting"),deps:K.deps?.map(Da)},!0);return this.jitExpression(ut,e,C,Et)}compileInjectableDeclaration(e,C,K){const{expression:ut,statements:Et}=Uo({name:K.type.name,type:$i(K.type),internalType:new ze(K.type),typeArgumentCount:0,providedIn:Uc(K.providedIn),useClass:Sa(K,"useClass"),useFactory:zc(K,"useFactory"),useValue:Sa(K,"useValue"),useExisting:Sa(K,"useExisting"),deps:K.deps?.map(Wc)},!0);return this.jitExpression(ut,e,C,Et)}compileInjector(e,C,K){const Et=wm({name:K.name,type:$i(K.type),internalType:new ze(K.type),providers:K.providers&&K.providers.length>0?new ze(K.providers):null,imports:K.imports.map(Nt=>new ze(Nt))});return this.jitExpression(Et.expression,e,C,[])}compileInjectorDeclaration(e,C,K){const ut=function ep(J){return{name:J.type.name,type:$i(J.type),internalType:new ze(J.type),providers:void 0!==J.providers&&J.providers.length>0?new ze(J.providers):null,imports:void 0!==J.imports?J.imports.map(e=>new ze(e)):[]}}(K),Et=wm(ut);return this.jitExpression(Et.expression,e,C,[])}compileNgModule(e,C,K){const Et=sd({type:$i(K.type),internalType:new ze(K.type),adjacentType:new ze(K.type),bootstrap:K.bootstrap.map($i),declarations:K.declarations.map($i),publicDeclarationTypes:null,imports:K.imports.map($i),includeImportTypes:!0,exports:K.exports.map($i),selectorScopeMode:ba.Inline,containsForwardDecls:!1,schemas:K.schemas?K.schemas.map($i):null,id:K.id?new ze(K.id):null});return this.jitExpression(Et.expression,e,C,[])}compileNgModuleDeclaration(e,C,K){const ut=function Hf(J){const e=new er;return e.set("type",new ze(J.type)),void 0!==J.bootstrap&&e.set("bootstrap",new ze(J.bootstrap)),void 0!==J.declarations&&e.set("declarations",new ze(J.declarations)),void 0!==J.imports&&e.set("imports",new ze(J.imports)),void 0!==J.exports&&e.set("exports",new ze(J.exports)),void 0!==J.schemas&&e.set("schemas",new ze(J.schemas)),void 0!==J.id&&e.set("id",new ze(J.id)),Je(ee.defineNgModule).callFn([e.toLiteralMap()])}(K);return this.jitExpression(ut,e,C,[])}compileDirective(e,C,K){const ut=Ph(K);return this.compileDirectiveFromMeta(e,C,ut)}compileDirectiveDeclaration(e,C,K){const Et=em(K,this.createParseSourceSpan("Directive",K.type.name,C));return this.compileDirectiveFromMeta(e,C,Et)}compileDirectiveFromMeta(e,C,K){const ut=new un,Nt=function Mh(J,e,C){const K=pf(J,e,C);return Zg(K,J),{expression:Je(ee.defineDirective).callFn([K.toLiteralMap()],void 0,!0),type:qd(J),statements:[]}}(K,ut,Nc());return this.jitExpression(Nt.expression,e,C,ut.statements)}compileComponent(e,C,K){const{template:ut,interpolation:Et}=tp(K.template,K.name,C,K.preserveWhitespaces,K.interpolation),Nt={...K,...Ph(K),selector:K.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:ut,declarations:K.declarations.map(Vs),declarationListEmitMode:0,styles:[...K.styles,...ut.styles],encapsulation:K.encapsulation,interpolation:Et,changeDetection:K.changeDetection,animations:null!=K.animations?new ze(K.animations):null,viewProviders:null!=K.viewProviders?new ze(K.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0},Yt=`ng:///${K.name}.js`;return this.compileComponentFromMeta(e,Yt,Nt)}compileComponentDeclaration(e,C,K){const Et=function $u(J,e,C){const{template:K,interpolation:ut}=tp(J.template,J.type.name,C,J.preserveWhitespaces??!1,J.interpolation),Et=[];if(J.dependencies)for(const Nt of J.dependencies)switch(Nt.kind){case"directive":case"component":Et.push(Sl(Nt));break;case"pipe":Et.push(ia(Nt))}else(J.components||J.directives||J.pipes)&&(J.components&&Et.push(...J.components.map(Nt=>Sl(Nt,!0))),J.directives&&Et.push(...J.directives.map(Nt=>Sl(Nt))),J.pipes&&Et.push(...function Jd(J){return J?Object.keys(J).map(e=>({kind:hl.Pipe,name:e,type:new ze(J[e])})):[]}(J.pipes)));return{...em(J,e),template:K,styles:J.styles??[],declarations:Et,viewProviders:void 0!==J.viewProviders?new ze(J.viewProviders):null,animations:void 0!==J.animations?new ze(J.animations):null,changeDetection:J.changeDetection??Z.Default,encapsulation:J.encapsulation??G.Emulated,interpolation:ut,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0}}(K,this.createParseSourceSpan("Component",K.type.name,C),C);return this.compileComponentFromMeta(e,C,Et)}compileComponentFromMeta(e,C,K){const ut=new un,Nt=Ah(K,ut,Nc(K.interpolation));return this.jitExpression(Nt.expression,e,C,ut.statements)}compileFactory(e,C,K){const ut=tr({name:K.name,type:$i(K.type),internalType:new ze(K.type),typeArgumentCount:K.typeArgumentCount,deps:Ih(K.deps),target:K.target});return this.jitExpression(ut.expression,e,C,ut.statements)}compileFactoryDeclaration(e,C,K){const ut=tr({name:K.type.name,type:$i(K.type),internalType:new ze(K.type),typeArgumentCount:0,deps:Array.isArray(K.deps)?K.deps.map(Wc):K.deps,target:K.target});return this.jitExpression(ut.expression,e,C,ut.statements)}createParseSourceSpan(e,C,K){return function xp(J,e,C){const ut=new _p("",`in ${J} ${e} in ${C}`);return new Kn(new Ps(ut,-1,-1,-1),new Ps(ut,-1,-1,-1))}(e,C,K)}jitExpression(e,C,K,ut){const Et=[...ut,new Fe("$def",e,void 0,ge.Exported)];return this.jitEvaluator.evaluateStatements(K,Et,new Ll(C),!0).$def}}function $l(J){return{...J,predicate:Th(J.predicate),read:J.read?new ze(J.read):null,static:J.static,emitDistinctChangesOnly:J.emitDistinctChangesOnly}}function vv(J){return{propertyName:J.propertyName,first:J.first??!1,predicate:Th(J.predicate),descendants:J.descendants??!1,read:J.read?new ze(J.read):null,static:J.static??!1,emitDistinctChangesOnly:J.emitDistinctChangesOnly??!0}}function Th(J){return Array.isArray(J)?J:Cr(new ze(J),1)}function Ph(J){const e=Lh(J.inputs||[]),C=Lh(J.outputs||[]),K=J.propMetadata,ut={},Et={};for(const Nt in K)K.hasOwnProperty(Nt)&&K[Nt].forEach(Yt=>{bf(Yt)?ut[Nt]=Yt.bindingPropertyName?[Yt.bindingPropertyName,Nt]:Nt:wf(Yt)&&(Et[Nt]=Yt.bindingPropertyName||Nt)});return{...J,typeArgumentCount:0,typeSourceSpan:J.typeSourceSpan,type:$i(J.type),internalType:new ze(J.type),deps:null,host:Oh(J.propMetadata,J.typeSourceSpan,J.host),inputs:{...e,...ut},outputs:{...C,...Et},queries:J.queries.map($l),providers:null!=J.providers?new ze(J.providers):null,viewQueries:J.viewQueries.map($l),fullInheritance:!1,hostDirectives:Vc(J)}}function em(J,e){return{name:J.type.name,type:$i(J.type),typeSourceSpan:e,internalType:new ze(J.type),selector:J.selector??null,inputs:J.inputs??{},outputs:J.outputs??{},host:xf(J.host),queries:(J.queries??[]).map(vv),viewQueries:(J.viewQueries??[]).map(vv),providers:void 0!==J.providers?new ze(J.providers):null,exportAs:J.exportAs??null,usesInheritance:J.usesInheritance??!1,lifecycle:{usesOnChanges:J.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:J.isStandalone??!1,hostDirectives:Vc(J)}}function xf(J={}){return{attributes:Qa(J.attributes??{}),listeners:J.listeners??{},properties:J.properties??{},specialAttributes:{classAttr:J.classAttribute,styleAttr:J.styleAttribute}}}function Vc(J){return J.hostDirectives?.length?J.hostDirectives.map(e=>"function"==typeof e?{directive:$i(e),inputs:null,outputs:null,isForwardReference:!1}:{directive:$i(e.directive),isForwardReference:!1,inputs:e.inputs?Lh(e.inputs):null,outputs:e.outputs?Lh(e.outputs):null}):null}function Qa(J){const e={};for(const C of Object.keys(J))e[C]=new ze(J[C]);return e}function Vs(J){return{...J,type:new ze(J.type)}}function Sl(J,e=null){return{kind:hl.Directive,isComponent:e||"component"===J.kind,selector:J.selector,type:new ze(J.type),inputs:J.inputs??[],outputs:J.outputs??[],exportAs:J.exportAs??null}}function ia(J){return{kind:hl.Pipe,name:J.name,type:new ze(J.type)}}function tp(J,e,C,K,ut){const Et=ut?ih.fromArray(ut):Xs,Nt=Uu(J,C,{preserveWhitespaces:K,interpolationConfig:Et});if(null!==Nt.errors){const Yt=Nt.errors.map(ae=>ae.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${Yt}`)}return{template:Nt,interpolation:Et}}function Sa(J,e){if(J.hasOwnProperty(e))return Cr(new ze(J[e]),0)}function zc(J,e){if(J.hasOwnProperty(e))return new ze(J[e])}function Uc(J){return Cr("function"==typeof J?new ze(J):new se(J??null),0)}function Ih(J){return null==J?null:J.map(Da)}function Da(J){const e=null!=J.attribute,C=null===J.token?null:new ze(J.token);return Hc(e?new ze(J.attribute):C,e,J.host,J.optional,J.self,J.skipSelf)}function Wc(J){const e=J.attribute??!1;return Hc(null===J.token?null:new ze(J.token),e,J.host??!1,J.optional??!1,J.self??!1,J.skipSelf??!1)}function Hc(J,e,C,K,ut,Et){return{token:J,attributeNameType:e?Oe("unknown"):null,host:C,optional:K,self:ut,skipSelf:Et}}function Oh(J,e,C){const K=function Qg(J){const e={},C={},K={},ut={};for(const Et of Object.keys(J)){const Nt=J[Et],Yt=Et.match(gv);if(null===Yt)switch(Et){case"class":if("string"!=typeof Nt)throw new Error("Class binding must be string");ut.classAttr=Nt;break;case"style":if("string"!=typeof Nt)throw new Error("Style binding must be string");ut.styleAttr=Nt;break;default:e[Et]="string"==typeof Nt?Oe(Nt):Nt}else if(null!=Yt[1]){if("string"!=typeof Nt)throw new Error("Property binding must be string");K[Yt[1]]=Nt}else if(null!=Yt[2]){if("string"!=typeof Nt)throw new Error("Event binding must be string");C[Yt[2]]=Nt}}return{attributes:e,listeners:C,properties:K,specialAttributes:ut}}(C||{}),ut=function Jg(J,e){const C=Nc();return C.createDirectiveHostEventAsts(J.listeners,e),C.createBoundHostProperties(J.properties,e),C.errors}(K,e);if(ut.length)throw new Error(ut.map(Et=>Et.msg).join("\n"));for(const Et in J)J.hasOwnProperty(Et)&&J[Et].forEach(Nt=>{kh(Nt)?K.properties[Nt.hostPropertyName||Et]=fs("this",Et):Cf(Nt)&&(K.listeners[Nt.eventName||Et]=`${Et}(${(Nt.args||[]).join(",")})`)});return K}function kh(J){return"HostBinding"===J.ngMetadataName}function Cf(J){return"HostListener"===J.ngMetadataName}function bf(J){return"Input"===J.ngMetadataName}function wf(J){return"Output"===J.ngMetadataName}function Lh(J){return J.reduce((e,C)=>{const[K,ut]=C.split(":",2).map(Et=>Et.trim());return e[K]=ut||K,e},{})}new class is{constructor(e){this.full=e;const C=e.split(".");this.major=C[0],this.minor=C[1],this.patch=C.slice(2).join(".")}}("15.1.3");class Ku{constructor({defaultEncapsulation:e=G.Emulated,useJit:C=!0,missingTranslation:K=null,preserveWhitespaces:ut,strictInjectionParameters:Et}={}){this.defaultEncapsulation=e,this.useJit=!!C,this.missingTranslation=K,this.preserveWhitespaces=function Dl(J,e=!1){return null===J?e:J}(function tl(J){return void 0===J?null:J}(ut)),this.strictInjectionParameters=!0===Et}}var Po;!function(J){J[J.Extract=0]="Extract",J[J.Merge=1]="Merge"}(Po||(Po={}));new class Yl{constructor(){this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return So.PARSABLE_DATA}};var oa;!function(J){J[J.Directive=0]="Directive",J[J.Component=1]="Component",J[J.Injectable=2]="Injectable",J[J.Pipe=3]="Pipe",J[J.NgModule=4]="NgModule"}(oa||(oa={}));!function Ef(J){(J.ng||(J.ng={})).\u0275compilerFacade=new Qd}(fr);var ts=ht(1571),ny=ht(6895),ry=ht(1481);new ts.InjectionToken("ErrorCollector"),ts.PACKAGE_ROOT_URL;const sy=[{provide:ts.Compiler,useFactory:()=>new ts.Compiler}];class Sv{constructor(e){const C={useJit:!0,defaultEncapsulation:ts.ViewEncapsulation.Emulated,missingTranslation:ts.MissingTranslationStrategy.Warning};this._defaultOptions=[C,...e]}createCompiler(e=[]){const C=function oy(J){return{useJit:Vf(J.map(e=>e.useJit)),defaultEncapsulation:Vf(J.map(e=>e.defaultEncapsulation)),providers:ay(J.map(e=>e.providers)),missingTranslation:Vf(J.map(e=>e.missingTranslation)),preserveWhitespaces:Vf(J.map(e=>e.preserveWhitespaces))}}(this._defaultOptions.concat(e));return ts.Injector.create([sy,{provide:Ku,useFactory:()=>new Ku({useJit:C.useJit,defaultEncapsulation:C.defaultEncapsulation,missingTranslation:C.missingTranslation,preserveWhitespaces:C.preserveWhitespaces}),deps:[]},C.providers]).get(ts.Compiler)}}function Vf(J){for(let e=J.length-1;e>=0;e--)if(void 0!==J[e])return J[e]}function ay(J){const e=[];return J.forEach(C=>C&&e.push(...C)),e}const Dv=(0,ts.createPlatformFactory)(ts.platformCore,"coreDynamic",[{provide:ts.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:ts.CompilerFactory,useClass:Sv,deps:[ts.COMPILER_OPTIONS]}]);class Bh extends qa{get(e){let C,K;const ut=new Promise((Nt,Yt)=>{C=Nt,K=Yt}),Et=new XMLHttpRequest;return Et.open("GET",e,!0),Et.responseType="text",Et.onload=function(){const Nt=Et.response||Et.responseText;let Yt=1223===Et.status?204:Et.status;0===Yt&&(Yt=Nt?200:0),200<=Yt&&Yt<=300?C(Nt):K(`Failed to load ${e}`)},Et.onerror=function(){K(`Failed to load ${e}`)},Et.send(),ut}}Bh.\u0275fac=function(){let J;return function(C){return(J||(J=ts.\u0275\u0275getInheritedFactory(Bh)))(C||Bh)}}(),Bh.\u0275prov=ts.\u0275\u0275defineInjectable({token:Bh,factory:Bh.\u0275fac});const Mv=[ry.\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:ts.COMPILER_OPTIONS,useValue:{providers:[{provide:qa,useClass:Bh,deps:[]}]},multi:!0},{provide:ts.PLATFORM_ID,useValue:ny.\u0275PLATFORM_BROWSER_ID}];const cy=new ts.Version("15.1.3"),hy=[{provide:qa,useClass:class ly extends qa{constructor(){if(super(),this._cache=ts.\u0275global.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}get(e){return this._cache.hasOwnProperty(e)?Promise.resolve(this._cache[e]):Promise.reject("CachedResourceLoader: Did not find cached template for "+e)}},deps:[]}],uy=(0,ts.createPlatformFactory)(Dv,"browserDynamic",Mv)},1481:(Jt,$t,ht)=>{"use strict";ht.r($t),ht.d($t,{BrowserModule:()=>Pt,BrowserTransferStateModule:()=>be,By:()=>se,DomSanitizer:()=>hn,EVENT_MANAGER_PLUGINS:()=>k,EventManager:()=>E,HAMMER_GESTURE_CONFIG:()=>_i,HAMMER_LOADER:()=>vi,HammerGestureConfig:()=>Oi,HammerModule:()=>qi,Meta:()=>jt,Title:()=>_t,TransferState:()=>ke,VERSION:()=>sn,bootstrapApplication:()=>at,createApplication:()=>st,disableDebugTools:()=>ze,enableDebugTools:()=>He,makeStateKey:()=>Te,platformBrowser:()=>St,provideProtractorTestingSupport:()=>ot,\u0275BrowserDomAdapter:()=>q,\u0275BrowserGetTestability:()=>R,\u0275DomEventsPlugin:()=>X,\u0275DomRendererFactory2:()=>u,\u0275DomSanitizerImpl:()=>Mn,\u0275DomSharedStylesHost:()=>y,\u0275HammerGesturesPlugin:()=>Ii,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>mt,\u0275KeyEventsPlugin:()=>z,\u0275NAMESPACE_URIS:()=>g,\u0275SharedStylesHost:()=>T,\u0275TRANSITION_ID:()=>$,\u0275escapeHtml:()=>ii,\u0275flattenStyles:()=>b,\u0275getDOM:()=>pt.\u0275getDOM,\u0275initDomAdapter:()=>nt,\u0275shimContentAttribute:()=>D,\u0275shimHostAttribute:()=>I});var pt=ht(6895),t=ht(1571);class Y extends pt.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class q extends Y{static makeCurrent(){(0,pt.\u0275setRootDomAdapter)(new q)}onAndCancel(ce,Ee,Ke){return ce.addEventListener(Ee,Ke,!1),()=>{ce.removeEventListener(Ee,Ke,!1)}}dispatchEvent(ce,Ee){ce.dispatchEvent(Ee)}remove(ce){ce.parentNode&&ce.parentNode.removeChild(ce)}createElement(ce,Ee){return(Ee=Ee||this.getDefaultDocument()).createElement(ce)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ce){return ce.nodeType===Node.ELEMENT_NODE}isShadowRoot(ce){return ce instanceof DocumentFragment}getGlobalEventTarget(ce,Ee){return"window"===Ee?window:"document"===Ee?ce:"body"===Ee?ce.body:null}getBaseHref(ce){const Ee=function U(){return O=O||document.querySelector("base"),O?O.getAttribute("href"):null}();return null==Ee?null:function Z(si){G=G||document.createElement("a"),G.setAttribute("href",si);const ce=G.pathname;return"/"===ce.charAt(0)?ce:`/${ce}`}(Ee)}resetBaseElement(){O=null}getUserAgent(){return window.navigator.userAgent}getCookie(ce){return(0,pt.\u0275parseCookieValue)(document.cookie,ce)}}let G,O=null;const $=new t.InjectionToken("TRANSITION_ID");const V=[{provide:t.APP_INITIALIZER,useFactory:function W(si,ce,Ee){return()=>{Ee.get(t.ApplicationInitStatus).donePromise.then(()=>{const Ke=(0,pt.\u0275getDOM)(),di=ce.querySelectorAll(`style[ng-transition="${si}"]`);for(let Fi=0;Fi{const Fi=ce.findTestabilityInTree(Ke,di);if(null==Fi)throw new Error("Could not find testability for element.");return Fi},t.\u0275global.getAllAngularTestabilities=()=>ce.getAllTestabilities(),t.\u0275global.getAllAngularRootElements=()=>ce.getAllRootElements();t.\u0275global.frameworkStabilizers||(t.\u0275global.frameworkStabilizers=[]),t.\u0275global.frameworkStabilizers.push(Ke=>{const di=t.\u0275global.getAllAngularTestabilities();let Fi=di.length,Hi=!1;const Dn=function(zn){Hi=Hi||zn,Fi--,0==Fi&&Ke(Hi)};di.forEach(function(zn){zn.whenStable(Dn)})})}findTestabilityInTree(ce,Ee,Ke){if(null==Ee)return null;return ce.getTestability(Ee)??(Ke?(0,pt.\u0275getDOM)().isShadowRoot(Ee)?this.findTestabilityInTree(ce,Ee.host,!0):this.findTestabilityInTree(ce,Ee.parentElement,!0):null)}}class P{build(){return new XMLHttpRequest}}P.\u0275fac=function(ce){return new(ce||P)},P.\u0275prov=t.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac});const k=new t.InjectionToken("EventManagerPlugins");class E{constructor(ce,Ee){this._zone=Ee,this._eventNameToPlugin=new Map,ce.forEach(Ke=>Ke.manager=this),this._plugins=ce.slice().reverse()}addEventListener(ce,Ee,Ke){return this._findPluginFor(Ee).addEventListener(ce,Ee,Ke)}addGlobalEventListener(ce,Ee,Ke){return this._findPluginFor(Ee).addGlobalEventListener(ce,Ee,Ke)}getZone(){return this._zone}_findPluginFor(ce){const Ee=this._eventNameToPlugin.get(ce);if(Ee)return Ee;const Ke=this._plugins;for(let di=0;di{this._stylesSet.has(Ke)||(this._stylesSet.add(Ke),Ee.add(Ke))}),this.onStylesAdded(Ee)}onStylesAdded(ce){}getAllStyles(){return Array.from(this._stylesSet)}}T.\u0275fac=function(ce){return new(ce||T)},T.\u0275prov=t.\u0275\u0275defineInjectable({token:T,factory:T.\u0275fac});class y extends T{constructor(ce){super(),this._doc=ce,this._hostNodes=new Map,this._hostNodes.set(ce.head,[])}_addStylesToHost(ce,Ee,Ke){ce.forEach(di=>{const Fi=this._doc.createElement("style");Fi.textContent=di,Ke.push(Ee.appendChild(Fi))})}addHost(ce){const Ee=[];this._addStylesToHost(this._stylesSet,ce,Ee),this._hostNodes.set(ce,Ee)}removeHost(ce){const Ee=this._hostNodes.get(ce);Ee&&Ee.forEach(A),this._hostNodes.delete(ce)}onStylesAdded(ce){this._hostNodes.forEach((Ee,Ke)=>{this._addStylesToHost(ce,Ke,Ee)})}ngOnDestroy(){this._hostNodes.forEach(ce=>ce.forEach(A))}}function A(si){(0,pt.\u0275getDOM)().remove(si)}y.\u0275fac=function(ce){return new(ce||y)(t.\u0275\u0275inject(pt.DOCUMENT))},y.\u0275prov=t.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac});const g={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/"},v=/%COMP%/g,N="%COMP%",j=`_nghost-${N}`,M=`_ngcontent-${N}`;function D(si){return M.replace(v,si)}function I(si){return j.replace(v,si)}function b(si,ce){return ce.flat(100).map(Ee=>Ee.replace(v,si))}function d(si){return ce=>{if("__ngUnwrap__"===ce)return si;!1===si(ce)&&(ce.preventDefault(),ce.returnValue=!1)}}class u{constructor(ce,Ee,Ke){this.eventManager=ce,this.sharedStylesHost=Ee,this.appId=Ke,this.rendererByCompId=new Map,this.defaultRenderer=new a(ce)}createRenderer(ce,Ee){if(!ce||!Ee)return this.defaultRenderer;switch(Ee.encapsulation){case t.ViewEncapsulation.Emulated:{let Ke=this.rendererByCompId.get(Ee.id);return Ke||(Ke=new _(this.eventManager,this.sharedStylesHost,Ee,this.appId),this.rendererByCompId.set(Ee.id,Ke)),Ke.applyToHost(ce),Ke}case t.ViewEncapsulation.ShadowDom:return new B(this.eventManager,this.sharedStylesHost,ce,Ee);default:if(!this.rendererByCompId.has(Ee.id)){const Ke=b(Ee.id,Ee.styles);this.sharedStylesHost.addStyles(Ke),this.rendererByCompId.set(Ee.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}u.\u0275fac=function(ce){return new(ce||u)(t.\u0275\u0275inject(E),t.\u0275\u0275inject(y),t.\u0275\u0275inject(t.APP_ID))},u.\u0275prov=t.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac});class a{constructor(ce){this.eventManager=ce,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ce,Ee){return Ee?document.createElementNS(g[Ee]||Ee,ce):document.createElement(ce)}createComment(ce){return document.createComment(ce)}createText(ce){return document.createTextNode(ce)}appendChild(ce,Ee){(m(ce)?ce.content:ce).appendChild(Ee)}insertBefore(ce,Ee,Ke){ce&&(m(ce)?ce.content:ce).insertBefore(Ee,Ke)}removeChild(ce,Ee){ce&&ce.removeChild(Ee)}selectRootElement(ce,Ee){let Ke="string"==typeof ce?document.querySelector(ce):ce;if(!Ke)throw new Error(`The selector "${ce}" did not match any elements`);return Ee||(Ke.textContent=""),Ke}parentNode(ce){return ce.parentNode}nextSibling(ce){return ce.nextSibling}setAttribute(ce,Ee,Ke,di){if(di){Ee=di+":"+Ee;const Fi=g[di];Fi?ce.setAttributeNS(Fi,Ee,Ke):ce.setAttribute(Ee,Ke)}else ce.setAttribute(Ee,Ke)}removeAttribute(ce,Ee,Ke){if(Ke){const di=g[Ke];di?ce.removeAttributeNS(di,Ee):ce.removeAttribute(`${Ke}:${Ee}`)}else ce.removeAttribute(Ee)}addClass(ce,Ee){ce.classList.add(Ee)}removeClass(ce,Ee){ce.classList.remove(Ee)}setStyle(ce,Ee,Ke,di){di&(t.RendererStyleFlags2.DashCase|t.RendererStyleFlags2.Important)?ce.style.setProperty(Ee,Ke,di&t.RendererStyleFlags2.Important?"important":""):ce.style[Ee]=Ke}removeStyle(ce,Ee,Ke){Ke&t.RendererStyleFlags2.DashCase?ce.style.removeProperty(Ee):ce.style[Ee]=""}setProperty(ce,Ee,Ke){ce[Ee]=Ke}setValue(ce,Ee){ce.nodeValue=Ee}listen(ce,Ee,Ke){return"string"==typeof ce?this.eventManager.addGlobalEventListener(ce,Ee,d(Ke)):this.eventManager.addEventListener(ce,Ee,d(Ke))}}"@".charCodeAt(0);function m(si){return"TEMPLATE"===si.tagName&&void 0!==si.content}class _ extends a{constructor(ce,Ee,Ke,di){super(ce),this.component=Ke;const Fi=b(di+"-"+Ke.id,Ke.styles);Ee.addStyles(Fi),this.contentAttr=D(di+"-"+Ke.id),this.hostAttr=I(di+"-"+Ke.id)}applyToHost(ce){super.setAttribute(ce,this.hostAttr,"")}createElement(ce,Ee){const Ke=super.createElement(ce,Ee);return super.setAttribute(Ke,this.contentAttr,""),Ke}}class B extends a{constructor(ce,Ee,Ke,di){super(ce),this.sharedStylesHost=Ee,this.hostEl=Ke,this.shadowRoot=Ke.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Fi=b(di.id,di.styles);for(let Hi=0;Hithis.removeEventListener(ce,Ee,Ke)}removeEventListener(ce,Ee,Ke){return ce.removeEventListener(Ee,Ke)}}X.\u0275fac=function(ce){return new(ce||X)(t.\u0275\u0275inject(pt.DOCUMENT))},X.\u0275prov=t.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac});const it=["alt","control","meta","shift"],rt={"\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"},L={alt:si=>si.altKey,control:si=>si.ctrlKey,meta:si=>si.metaKey,shift:si=>si.shiftKey};class z extends w{constructor(ce){super(ce)}supports(ce){return null!=z.parseEventName(ce)}addEventListener(ce,Ee,Ke){const di=z.parseEventName(Ee),Fi=z.eventCallback(di.fullKey,Ke,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,pt.\u0275getDOM)().onAndCancel(ce,di.domEventName,Fi))}static parseEventName(ce){const Ee=ce.toLowerCase().split("."),Ke=Ee.shift();if(0===Ee.length||"keydown"!==Ke&&"keyup"!==Ke)return null;const di=z._normalizeKey(Ee.pop());let Fi="",Hi=Ee.indexOf("code");if(Hi>-1&&(Ee.splice(Hi,1),Fi="code."),it.forEach(zn=>{const Ji=Ee.indexOf(zn);Ji>-1&&(Ee.splice(Ji,1),Fi+=zn+".")}),Fi+=di,0!=Ee.length||0===di.length)return null;const Dn={};return Dn.domEventName=Ke,Dn.fullKey=Fi,Dn}static matchEventFullKeyCode(ce,Ee){let Ke=rt[ce.key]||ce.key,di="";return Ee.indexOf("code.")>-1&&(Ke=ce.code,di="code."),!(null==Ke||!Ke)&&(Ke=Ke.toLowerCase()," "===Ke?Ke="space":"."===Ke&&(Ke="dot"),it.forEach(Fi=>{if(Fi!==Ke){(0,L[Fi])(ce)&&(di+=Fi+".")}}),di+=Ke,di===Ee)}static eventCallback(ce,Ee,Ke){return di=>{z.matchEventFullKeyCode(di,ce)&&Ke.runGuarded(()=>Ee(di))}}static _normalizeKey(ce){return"esc"===ce?"escape":ce}}z.\u0275fac=function(ce){return new(ce||z)(t.\u0275\u0275inject(pt.DOCUMENT))},z.\u0275prov=t.\u0275\u0275defineInjectable({token:z,factory:z.\u0275fac});function at(si,ce){return(0,t.\u0275internalCreateApplication)({rootComponent:si,...H(ce)})}function st(si){return(0,t.\u0275internalCreateApplication)(H(si))}function H(si){return{appProviders:[...Dt,...si?.providers??[]],platformProviders:mt}}function ot(){return[...Mt]}function nt(){q.makeCurrent()}const mt=[{provide:t.PLATFORM_ID,useValue:pt.\u0275PLATFORM_BROWSER_ID},{provide:t.PLATFORM_INITIALIZER,useValue:nt,multi:!0},{provide:pt.DOCUMENT,useFactory:function gt(){return(0,t.\u0275setDocument)(document),document},deps:[]}],St=(0,t.createPlatformFactory)(t.platformCore,"browser",mt),wt=new t.InjectionToken(""),Mt=[{provide:t.\u0275TESTABILITY_GETTER,useClass:R,deps:[]},{provide:t.\u0275TESTABILITY,useClass:t.Testability,deps:[t.NgZone,t.TestabilityRegistry,t.\u0275TESTABILITY_GETTER]},{provide:t.Testability,useClass:t.Testability,deps:[t.NgZone,t.TestabilityRegistry,t.\u0275TESTABILITY_GETTER]}],Dt=[{provide:t.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:t.ErrorHandler,useFactory:function yt(){return new t.ErrorHandler},deps:[]},{provide:k,useClass:X,multi:!0,deps:[pt.DOCUMENT,t.NgZone,t.PLATFORM_ID]},{provide:k,useClass:z,multi:!0,deps:[pt.DOCUMENT]},{provide:u,useClass:u,deps:[E,y,t.APP_ID]},{provide:t.RendererFactory2,useExisting:u},{provide:T,useExisting:y},{provide:y,useClass:y,deps:[pt.DOCUMENT]},{provide:E,useClass:E,deps:[k,t.NgZone]},{provide:pt.XhrFactory,useClass:P,deps:[]},[]];class Pt{constructor(ce){false}static withServerTransition(ce){return{ngModule:Pt,providers:[{provide:t.APP_ID,useValue:ce.appId},{provide:$,useExisting:t.APP_ID},V]}}}Pt.\u0275fac=function(ce){return new(ce||Pt)(t.\u0275\u0275inject(wt,12))},Pt.\u0275mod=t.\u0275\u0275defineNgModule({type:Pt}),Pt.\u0275inj=t.\u0275\u0275defineInjector({providers:[...Dt,...Mt],imports:[pt.CommonModule,t.ApplicationModule]});class jt{constructor(ce){this._doc=ce,this._dom=(0,pt.\u0275getDOM)()}addTag(ce,Ee=!1){return ce?this._getOrCreateElement(ce,Ee):null}addTags(ce,Ee=!1){return ce?ce.reduce((Ke,di)=>(di&&Ke.push(this._getOrCreateElement(di,Ee)),Ke),[]):[]}getTag(ce){return ce&&this._doc.querySelector(`meta[${ce}]`)||null}getTags(ce){if(!ce)return[];const Ee=this._doc.querySelectorAll(`meta[${ce}]`);return Ee?[].slice.call(Ee):[]}updateTag(ce,Ee){if(!ce)return null;Ee=Ee||this._parseSelector(ce);const Ke=this.getTag(Ee);return Ke?this._setMetaElementAttributes(ce,Ke):this._getOrCreateElement(ce,!0)}removeTag(ce){this.removeTagElement(this.getTag(ce))}removeTagElement(ce){ce&&this._dom.remove(ce)}_getOrCreateElement(ce,Ee=!1){if(!Ee){const Fi=this._parseSelector(ce),Hi=this.getTags(Fi).filter(Dn=>this._containsAttributes(ce,Dn))[0];if(void 0!==Hi)return Hi}const Ke=this._dom.createElement("meta");return this._setMetaElementAttributes(ce,Ke),this._doc.getElementsByTagName("head")[0].appendChild(Ke),Ke}_setMetaElementAttributes(ce,Ee){return Object.keys(ce).forEach(Ke=>Ee.setAttribute(this._getMetaKeyMap(Ke),ce[Ke])),Ee}_parseSelector(ce){const Ee=ce.name?"name":"property";return`${Ee}="${ce[Ee]}"`}_containsAttributes(ce,Ee){return Object.keys(ce).every(Ke=>Ee.getAttribute(this._getMetaKeyMap(Ke))===ce[Ke])}_getMetaKeyMap(ce){return Ut[ce]||ce}}jt.\u0275fac=function(ce){return new(ce||jt)(t.\u0275\u0275inject(pt.DOCUMENT))},jt.\u0275prov=t.\u0275\u0275defineInjectable({token:jt,factory:function(ce){let Ee=null;return Ee=ce?new ce:function Ft(){return new jt((0,t.\u0275\u0275inject)(pt.DOCUMENT))}(),Ee},providedIn:"root"});const Ut={httpEquiv:"http-equiv"};class _t{constructor(ce){this._doc=ce}getTitle(){return this._doc.title}setTitle(ce){this._doc.title=ce||""}}_t.\u0275fac=function(ce){return new(ce||_t)(t.\u0275\u0275inject(pt.DOCUMENT))},_t.\u0275prov=t.\u0275\u0275defineInjectable({token:_t,factory:function(ce){let Ee=null;return Ee=ce?new ce:function bt(){return new _t((0,t.\u0275\u0275inject)(pt.DOCUMENT))}(),Ee},providedIn:"root"});function Rt(si,ce){if(typeof COMPILED>"u"||!COMPILED){(t.\u0275global.ng=t.\u0275global.ng||{})[si]=ce}}const Zt=typeof window<"u"&&window||{};class he{constructor(ce,Ee){this.msPerTick=ce,this.numTicks=Ee}}class Ie{constructor(ce){this.appRef=ce.injector.get(t.ApplicationRef)}timeChangeDetection(ce){const Ee=ce&&ce.record,Ke="Change Detection",di=null!=Zt.console.profile;Ee&&di&&Zt.console.profile(Ke);const Fi=ye();let Hi=0;for(;Hi<5||ye()-Fi<500;)this.appRef.tick(),Hi++;const Dn=ye();Ee&&di&&Zt.console.profileEnd(Ke);const zn=(Dn-Fi)/Hi;return Zt.console.log(`ran ${Hi} change detection cycles`),Zt.console.log(`${zn.toFixed(2)} ms per check`),new he(zn,Hi)}}function ye(){return Zt.performance&&Zt.performance.now?Zt.performance.now():(new Date).getTime()}const Ne="profiler";function He(si){return Rt(Ne,new Ie(si)),si}function ze(){Rt(Ne,null)}function ii(si){const ce={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return si.replace(/[&"'<>]/g,Ee=>ce[Ee])}function Te(si){return si}class ke{constructor(){this.store={},this.onSerializeCallbacks={}}get(ce,Ee){return void 0!==this.store[ce]?this.store[ce]:Ee}set(ce,Ee){this.store[ce]=Ee}remove(ce){delete this.store[ce]}hasKey(ce){return this.store.hasOwnProperty(ce)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(ce,Ee){this.onSerializeCallbacks[ce]=Ee}toJson(){for(const ce in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(ce))try{this.store[ce]=this.onSerializeCallbacks[ce]()}catch(Ee){console.warn("Exception in onSerialize callback: ",Ee)}return JSON.stringify(this.store)}}ke.\u0275fac=function(ce){return new(ce||ke)},ke.\u0275prov=t.\u0275\u0275defineInjectable({token:ke,factory:function(){return(()=>{const si=(0,t.inject)(pt.DOCUMENT),ce=(0,t.inject)(t.APP_ID),Ee=new ke;return Ee.store=function We(si,ce){const Ee=si.getElementById(ce+"-state");let Ke={};if(Ee&&Ee.textContent)try{Ke=JSON.parse(function $e(si){const ce={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return si.replace(/&[^;]+;/g,Ee=>ce[Ee])}(Ee.textContent))}catch(di){console.warn("Exception while restoring TransferState for app "+ce,di)}return Ke}(si,ce),Ee})()},providedIn:"root"});class be{}be.\u0275fac=function(ce){return new(ce||be)},be.\u0275mod=t.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=t.\u0275\u0275defineInjector({});class se{static all(){return()=>!0}static css(ce){return Ee=>null!=Ee.nativeElement&&function Se(si,ce){return!!(0,pt.\u0275getDOM)().isElementNode(si)&&(si.matches&&si.matches(ce)||si.msMatchesSelector&&si.msMatchesSelector(ce)||si.webkitMatchesSelector&&si.webkitMatchesSelector(ce))}(Ee.nativeElement,ce)}static directive(ce){return Ee=>-1!==Ee.providerTokens.indexOf(ce)}}const Le={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},_i=new t.InjectionToken("HammerGestureConfig"),vi=new t.InjectionToken("HammerLoader");class Oi{constructor(){this.events=[],this.overrides={}}buildHammer(ce){const Ee=new Hammer(ce,this.options);Ee.get("pinch").set({enable:!0}),Ee.get("rotate").set({enable:!0});for(const Ke in this.overrides)Ee.get(Ke).set(this.overrides[Ke]);return Ee}}Oi.\u0275fac=function(ce){return new(ce||Oi)},Oi.\u0275prov=t.\u0275\u0275defineInjectable({token:Oi,factory:Oi.\u0275fac});class Ii extends w{constructor(ce,Ee,Ke,di){super(ce),this._config=Ee,this.console=Ke,this.loader=di,this._loaderPromise=null}supports(ce){return!(!Le.hasOwnProperty(ce.toLowerCase())&&!this.isCustomEvent(ce)||!window.Hammer&&!this.loader)}addEventListener(ce,Ee,Ke){const di=this.manager.getZone();if(Ee=Ee.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||di.runOutsideAngular(()=>this.loader());let Fi=!1,Hi=()=>{Fi=!0};return di.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Fi||(Hi=this.addEventListener(ce,Ee,Ke)):Hi=()=>{}}).catch(()=>{Hi=()=>{}})),()=>{Hi()}}return di.runOutsideAngular(()=>{const Fi=this._config.buildHammer(ce),Hi=function(Dn){di.runGuarded(function(){Ke(Dn)})};return Fi.on(Ee,Hi),()=>{Fi.off(Ee,Hi),"function"==typeof Fi.destroy&&Fi.destroy()}})}isCustomEvent(ce){return this._config.events.indexOf(ce)>-1}}Ii.\u0275fac=function(ce){return new(ce||Ii)(t.\u0275\u0275inject(pt.DOCUMENT),t.\u0275\u0275inject(_i),t.\u0275\u0275inject(t.\u0275Console),t.\u0275\u0275inject(vi,8))},Ii.\u0275prov=t.\u0275\u0275defineInjectable({token:Ii,factory:Ii.\u0275fac});class qi{}qi.\u0275fac=function(ce){return new(ce||qi)},qi.\u0275mod=t.\u0275\u0275defineNgModule({type:qi}),qi.\u0275inj=t.\u0275\u0275defineInjector({providers:[{provide:k,useClass:Ii,multi:!0,deps:[pt.DOCUMENT,_i,t.\u0275Console,[new t.Optional,vi]]},{provide:_i,useClass:Oi,deps:[]}]});class hn{}hn.\u0275fac=function(ce){return new(ce||hn)},hn.\u0275prov=t.\u0275\u0275defineInjectable({token:hn,factory:function(ce){let Ee=null;return Ee=ce?new(ce||hn):t.\u0275\u0275inject(Mn),Ee},providedIn:"root"});class Mn extends hn{constructor(ce){super(),this._doc=ce}sanitize(ce,Ee){if(null==Ee)return null;switch(ce){case t.SecurityContext.NONE:return Ee;case t.SecurityContext.HTML:return(0,t.\u0275allowSanitizationBypassAndThrow)(Ee,"HTML")?(0,t.\u0275unwrapSafeValue)(Ee):(0,t.\u0275_sanitizeHtml)(this._doc,String(Ee)).toString();case t.SecurityContext.STYLE:return(0,t.\u0275allowSanitizationBypassAndThrow)(Ee,"Style")?(0,t.\u0275unwrapSafeValue)(Ee):Ee;case t.SecurityContext.SCRIPT:if((0,t.\u0275allowSanitizationBypassAndThrow)(Ee,"Script"))return(0,t.\u0275unwrapSafeValue)(Ee);throw new Error("unsafe value used in a script context");case t.SecurityContext.URL:return(0,t.\u0275allowSanitizationBypassAndThrow)(Ee,"URL")?(0,t.\u0275unwrapSafeValue)(Ee):(0,t.\u0275_sanitizeUrl)(String(Ee));case t.SecurityContext.RESOURCE_URL:if((0,t.\u0275allowSanitizationBypassAndThrow)(Ee,"ResourceURL"))return(0,t.\u0275unwrapSafeValue)(Ee);throw new Error(`unsafe value used in a resource URL context (see ${t.\u0275XSS_SECURITY_URL})`);default:throw new Error(`Unexpected SecurityContext ${ce} (see ${t.\u0275XSS_SECURITY_URL})`)}}bypassSecurityTrustHtml(ce){return(0,t.\u0275bypassSanitizationTrustHtml)(ce)}bypassSecurityTrustStyle(ce){return(0,t.\u0275bypassSanitizationTrustStyle)(ce)}bypassSecurityTrustScript(ce){return(0,t.\u0275bypassSanitizationTrustScript)(ce)}bypassSecurityTrustUrl(ce){return(0,t.\u0275bypassSanitizationTrustUrl)(ce)}bypassSecurityTrustResourceUrl(ce){return(0,t.\u0275bypassSanitizationTrustResourceUrl)(ce)}}Mn.\u0275fac=function(ce){return new(ce||Mn)(t.\u0275\u0275inject(pt.DOCUMENT))},Mn.\u0275prov=t.\u0275\u0275defineInjectable({token:Mn,factory:function(ce){let Ee=null;return Ee=ce?new ce:function dr(si){return new Mn(si.get(pt.DOCUMENT))}(t.\u0275\u0275inject(t.Injector)),Ee},providedIn:"root"});const sn=new t.Version("15.1.3")},4411:(Jt,$t,ht)=>{"use strict";ht.r($t),ht.d($t,{ActivatedRoute:()=>gn,ActivatedRouteSnapshot:()=>Er,ActivationEnd:()=>Ti,ActivationStart:()=>tn,BaseRouteReuseStrategy:()=>rc,ChildActivationEnd:()=>fn,ChildActivationStart:()=>Oe,ChildrenOutletContexts:()=>ir,DefaultTitleStrategy:()=>pa,DefaultUrlSerializer:()=>ze,GuardsCheckEnd:()=>ve,GuardsCheckStart:()=>fe,NavigationCancel:()=>Di,NavigationEnd:()=>Je,NavigationError:()=>Vt,NavigationSkipped:()=>Re,NavigationStart:()=>ai,NoPreloading:()=>er,OutletContext:()=>ka,PRIMARY_OUTLET:()=>et,PreloadAllModules:()=>al,PreloadingStrategy:()=>oc,ROUTER_CONFIGURATION:()=>_o,ROUTER_INITIALIZER:()=>zr,ROUTES:()=>Xn,ResolveEnd:()=>ti,ResolveStart:()=>qe,RouteConfigLoadEnd:()=>Mi,RouteConfigLoadStart:()=>mi,RouteReuseStrategy:()=>rl,Router:()=>ar,RouterEvent:()=>li,RouterLink:()=>yr,RouterLinkActive:()=>xo,RouterLinkWithHref:()=>yr,RouterModule:()=>br,RouterOutlet:()=>io,RouterPreloader:()=>Fa,RouterState:()=>Ln,RouterStateSnapshot:()=>xs,RoutesRecognized:()=>oe,Scroll:()=>nn,TitleStrategy:()=>Vr,UrlHandlingStrategy:()=>ga,UrlSegment:()=>he,UrlSegmentGroup:()=>Zt,UrlSerializer:()=>He,UrlTree:()=>Rt,VERSION:()=>$n,convertToParamMap:()=>H,createUrlTreeFromSnapshot:()=>Hi,defaultUrlMatcher:()=>ot,provideRouter:()=>Na,provideRoutes:()=>ih,withDebugTracing:()=>no,withDisabledInitialNavigation:()=>Co,withEnabledBlockingInitialNavigation:()=>Ho,withHashLocation:()=>As,withInMemoryScrolling:()=>Xs,withPreloading:()=>Ks,withRouterConfig:()=>ya,\u0275EmptyOutletComponent:()=>mr,\u0275ROUTER_PROVIDERS:()=>_a,\u0275flatten:()=>mt,\u0275withPreloading:()=>Ks});var pt=ht(1571),t=ht(2076),Y=ht(9646),q=ht(1135),O=ht(6805),U=ht(9841),G=ht(7272),Z=ht(9770),$=ht(9635),W=ht(2843),V=ht(9751),R=ht(515),P=ht(4033),k=ht(7579),E=ht(6895),w=ht(4004),T=ht(3900),y=ht(5698),A=ht(8675),g=ht(9300),v=ht(5577),S=ht(4482),N=ht(5403);function j(Bt){return(0,S.e)((At,Lt)=>{let Xt=!1;At.subscribe((0,N.x)(Lt,qt=>{Xt=!0,Lt.next(qt)},()=>{Xt||Lt.next(Bt),Lt.complete()}))})}function M(Bt=D){return(0,S.e)((At,Lt)=>{let Xt=!1;At.subscribe((0,N.x)(Lt,qt=>{Xt=!0,Lt.next(qt)},()=>Xt?Lt.complete():Lt.error(Bt())))})}function D(){return new O.K}var I=ht(4671);function b(Bt,At){const Lt=arguments.length>=2;return Xt=>Xt.pipe(Bt?(0,g.h)((qt,re)=>Bt(qt,re,Xt)):I.y,(0,y.q)(1),Lt?j(At):M(()=>new O.K))}var d=ht(4351),u=ht(8505),a=ht(262);function n(Bt,At,Lt,Xt,qt){return(re,_e)=>{let Ge=Lt,yi=At,Ei=0;re.subscribe((0,N.x)(_e,yn=>{const _r=Ei++;yi=Ge?Bt(yi,yn,_r):(Ge=!0,yn),Xt&&_e.next(yi)},qt&&(()=>{Ge&&_e.next(yi),_e.complete()})))}}function o(Bt,At){return(0,S.e)(n(Bt,At,arguments.length>=2,!0))}function m(Bt){return Bt<=0?()=>R.E:(0,S.e)((At,Lt)=>{let Xt=[];At.subscribe((0,N.x)(Lt,qt=>{Xt.push(qt),Bt{for(const qt of Xt)Lt.next(qt);Lt.complete()},void 0,()=>{Xt=null}))})}function _(Bt,At){const Lt=arguments.length>=2;return Xt=>Xt.pipe(Bt?(0,g.h)((qt,re)=>Bt(qt,re,Xt)):I.y,m(1),Lt?j(At):M(()=>new O.K))}var X=ht(9718);function it(Bt){return(0,S.e)((At,Lt)=>{try{At.subscribe(Lt)}finally{Lt.add(Bt)}})}var rt=ht(8343),L=ht(8189),z=ht(1481);const et="primary",at=Symbol("RouteTitle");class st{constructor(At){this.params=At||{}}has(At){return Object.prototype.hasOwnProperty.call(this.params,At)}get(At){if(this.has(At)){const Lt=this.params[At];return Array.isArray(Lt)?Lt[0]:Lt}return null}getAll(At){if(this.has(At)){const Lt=this.params[At];return Array.isArray(Lt)?Lt:[Lt]}return[]}get keys(){return Object.keys(this.params)}}function H(Bt){return new st(Bt)}function ot(Bt,At,Lt){const Xt=Lt.path.split("/");if(Xt.length>Bt.length||"full"===Lt.pathMatch&&(At.hasChildren()||Xt.lengthXt[re]===qt)}return Bt===At}function mt(Bt){return Array.prototype.concat.apply([],Bt)}function St(Bt){return Bt.length>0?Bt[Bt.length-1]:null}function Mt(Bt,At){for(const Lt in Bt)Bt.hasOwnProperty(Lt)&&At(Bt[Lt],Lt)}function Dt(Bt){return(0,pt.\u0275isObservable)(Bt)?Bt:(0,pt.\u0275isPromise)(Bt)?(0,t.D)(Promise.resolve(Bt)):(0,Y.of)(Bt)}const Pt=!1,Ft={exact:function _t(Bt,At,Lt){if(!ye(Bt.segments,At.segments)||!Ot(Bt.segments,At.segments,Lt)||Bt.numberOfChildren!==At.numberOfChildren)return!1;for(const Xt in At.children)if(!Bt.children[Xt]||!_t(Bt.children[Xt],At.children[Xt],Lt))return!1;return!0},subset:ft},jt={exact:function bt(Bt,At){return yt(Bt,At)},subset:function xt(Bt,At){return Object.keys(At).length<=Object.keys(Bt).length&&Object.keys(At).every(Lt=>gt(Bt[Lt],At[Lt]))},ignored:()=>!0};function Ut(Bt,At,Lt){return Ft[Lt.paths](Bt.root,At.root,Lt.matrixParams)&&jt[Lt.queryParams](Bt.queryParams,At.queryParams)&&!("exact"===Lt.fragment&&Bt.fragment!==At.fragment)}function ft(Bt,At,Lt){return Ct(Bt,At,At.segments,Lt)}function Ct(Bt,At,Lt,Xt){if(Bt.segments.length>Lt.length){const qt=Bt.segments.slice(0,Lt.length);return!(!ye(qt,Lt)||At.hasChildren()||!Ot(qt,Lt,Xt))}if(Bt.segments.length===Lt.length){if(!ye(Bt.segments,Lt)||!Ot(Bt.segments,Lt,Xt))return!1;for(const qt in At.children)if(!Bt.children[qt]||!ft(Bt.children[qt],At.children[qt],Xt))return!1;return!0}{const qt=Lt.slice(0,Bt.segments.length),re=Lt.slice(Bt.segments.length);return!!(ye(Bt.segments,qt)&&Ot(Bt.segments,qt,Xt)&&Bt.children[et])&&Ct(Bt.children[et],At,re,Xt)}}function Ot(Bt,At,Lt){return At.every((Xt,qt)=>jt[Lt](Bt[qt].parameters,Xt.parameters))}class Rt{constructor(At=new Zt([],{}),Lt={},Xt=null){this.root=At,this.queryParams=Lt,this.fragment=Xt,Pt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap}toString(){return ii.serialize(this)}}class Zt{constructor(At,Lt){this.segments=At,this.children=Lt,this.parent=null,Mt(Lt,(Xt,qt)=>Xt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $e(this)}}class he{constructor(At,Lt){this.path=At,this.parameters=Lt}get parameterMap(){return this._parameterMap||(this._parameterMap=H(this.parameters)),this._parameterMap}toString(){return _i(this)}}function ye(Bt,At){return Bt.length===At.length&&Bt.every((Lt,Xt)=>Lt.path===At[Xt].path)}class He{}He.\u0275fac=function(At){return new(At||He)},He.\u0275prov=pt.\u0275\u0275defineInjectable({token:He,factory:function(){return new ze},providedIn:"root"});class ze{parse(At){const Lt=new si(At);return new Rt(Lt.parseRootSegment(),Lt.parseQueryParams(),Lt.parseFragment())}serialize(At){const Lt=`/${Te(At.root,!0)}`,Xt=function Oi(Bt){const At=Object.keys(Bt).map(Lt=>{const Xt=Bt[Lt];return Array.isArray(Xt)?Xt.map(qt=>`${We(Lt)}=${We(qt)}`).join("&"):`${We(Lt)}=${We(Xt)}`}).filter(Lt=>!!Lt);return At.length?`?${At.join("&")}`:""}(At.queryParams);return`${Lt}${Xt}${"string"==typeof At.fragment?`#${function be(Bt){return encodeURI(Bt)}(At.fragment)}`:""}`}}const ii=new ze;function $e(Bt){return Bt.segments.map(At=>_i(At)).join("/")}function Te(Bt,At){if(!Bt.hasChildren())return $e(Bt);if(At){const Lt=Bt.children[et]?Te(Bt.children[et],!1):"",Xt=[];return Mt(Bt.children,(qt,re)=>{re!==et&&Xt.push(`${re}:${Te(qt,!1)}`)}),Xt.length>0?`${Lt}(${Xt.join("//")})`:Lt}{const Lt=function Ne(Bt,At){let Lt=[];return Mt(Bt.children,(Xt,qt)=>{qt===et&&(Lt=Lt.concat(At(Xt,qt)))}),Mt(Bt.children,(Xt,qt)=>{qt!==et&&(Lt=Lt.concat(At(Xt,qt)))}),Lt}(Bt,(Xt,qt)=>qt===et?[Te(Bt.children[et],!1)]:[`${qt}:${Te(Xt,!1)}`]);return 1===Object.keys(Bt.children).length&&null!=Bt.children[et]?`${$e(Bt)}/${Lt[0]}`:`${$e(Bt)}/(${Lt.join("//")})`}}function ke(Bt){return encodeURIComponent(Bt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function We(Bt){return ke(Bt).replace(/%3B/gi,";")}function se(Bt){return ke(Bt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Se(Bt){return decodeURIComponent(Bt)}function Le(Bt){return Se(Bt.replace(/\+/g,"%20"))}function _i(Bt){return`${se(Bt.path)}${function vi(Bt){return Object.keys(Bt).map(At=>`;${se(At)}=${se(Bt[At])}`).join("")}(Bt.parameters)}`}const Ii=/^[^\/()?;=#]+/;function qi(Bt){const At=Bt.match(Ii);return At?At[0]:""}const hn=/^[^=?&#]+/;const Mn=/^[^&#]+/;class si{constructor(At){this.url=At,this.remaining=At}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Zt([],{}):new Zt([],this.parseChildren())}parseQueryParams(){const At={};if(this.consumeOptional("?"))do{this.parseQueryParam(At)}while(this.consumeOptional("&"));return At}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const At=[];for(this.peekStartsWith("(")||At.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),At.push(this.parseSegment());let Lt={};this.peekStartsWith("/(")&&(this.capture("/"),Lt=this.parseParens(!0));let Xt={};return this.peekStartsWith("(")&&(Xt=this.parseParens(!1)),(At.length>0||Object.keys(Lt).length>0)&&(Xt[et]=new Zt(At,Lt)),Xt}parseSegment(){const At=qi(this.remaining);if(""===At&&this.peekStartsWith(";"))throw new pt.\u0275RuntimeError(4009,Pt);return this.capture(At),new he(Se(At),this.parseMatrixParams())}parseMatrixParams(){const At={};for(;this.consumeOptional(";");)this.parseParam(At);return At}parseParam(At){const Lt=qi(this.remaining);if(!Lt)return;this.capture(Lt);let Xt="";if(this.consumeOptional("=")){const qt=qi(this.remaining);qt&&(Xt=qt,this.capture(Xt))}At[Se(Lt)]=Se(Xt)}parseQueryParam(At){const Lt=function dr(Bt){const At=Bt.match(hn);return At?At[0]:""}(this.remaining);if(!Lt)return;this.capture(Lt);let Xt="";if(this.consumeOptional("=")){const _e=function sn(Bt){const At=Bt.match(Mn);return At?At[0]:""}(this.remaining);_e&&(Xt=_e,this.capture(Xt))}const qt=Le(Lt),re=Le(Xt);if(At.hasOwnProperty(qt)){let _e=At[qt];Array.isArray(_e)||(_e=[_e],At[qt]=_e),_e.push(re)}else At[qt]=re}parseParens(At){const Lt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Xt=qi(this.remaining),qt=this.remaining[Xt.length];if("/"!==qt&&")"!==qt&&";"!==qt)throw new pt.\u0275RuntimeError(4010,Pt);let re;Xt.indexOf(":")>-1?(re=Xt.slice(0,Xt.indexOf(":")),this.capture(re),this.capture(":")):At&&(re=et);const _e=this.parseChildren();Lt[re]=1===Object.keys(_e).length?_e[et]:new Zt([],_e),this.consumeOptional("//")}return Lt}peekStartsWith(At){return this.remaining.startsWith(At)}consumeOptional(At){return!!this.peekStartsWith(At)&&(this.remaining=this.remaining.substring(At.length),!0)}capture(At){if(!this.consumeOptional(At))throw new pt.\u0275RuntimeError(4011,Pt)}}function ce(Bt){return Bt.segments.length>0?new Zt([],{[et]:Bt}):Bt}function Ee(Bt){const At={};for(const Xt of Object.keys(Bt.children)){const re=Ee(Bt.children[Xt]);(re.segments.length>0||re.hasChildren())&&(At[Xt]=re)}return function Ke(Bt){if(1===Bt.numberOfChildren&&Bt.children[et]){const At=Bt.children[et];return new Zt(Bt.segments.concat(At.segments),At.children)}return Bt}(new Zt(Bt.segments,At))}function di(Bt){return Bt instanceof Rt}function Hi(Bt,At,Lt=null,Xt=null){return zn(Dn(Bt),At,Lt,Xt)}function Dn(Bt){let At;const Xt=function Lt(re){const _e={};for(const yi of re.children){const Ei=Lt(yi);_e[yi.outlet]=Ei}const Ge=new Zt(re.url,_e);return re===Bt&&(At=Ge),Ge}(Bt.root),qt=ce(Xt);return At??qt}function zn(Bt,At,Lt,Xt){let qt=Bt;for(;qt.parent;)qt=qt.parent;if(0===At.length)return Jn(qt,qt,qt,Lt,Xt);const re=te(At);if(re.toRoot())return Jn(qt,qt,new Zt([],{}),Lt,Xt);const _e=function me(Bt,At,Lt){if(Bt.isAbsolute)return new ie(At,!0,0);if(!Lt)return new ie(At,!1,NaN);if(null===Lt.parent)return new ie(Lt,!0,0);const Xt=lr(Bt.commands[0])?0:1,qt=Lt.segments.length-1+Xt;return De(Lt,qt,Bt.numberOfDoubleDots)}(re,qt,Bt),Ge=_e.processChildren?Fe(_e.segmentGroup,_e.index,re.commands):Ae(_e.segmentGroup,_e.index,re.commands);return Jn(qt,_e.segmentGroup,Ge,Lt,Xt)}function Ji(Bt,At,Lt,Xt,qt){if(0===Lt.length)return Jn(At.root,At.root,At.root,Xt,qt);const re=te(Lt);if(re.toRoot())return Jn(At.root,At.root,new Zt([],{}),Xt,qt);return function _e(yi){const Ei=function ge(Bt,At,Lt,Xt){if(Bt.isAbsolute)return new ie(At.root,!0,0);if(-1===Xt){const _e=Lt===At.root;return new ie(Lt,_e,0)}const qt=lr(Bt.commands[0])?0:1,re=Xt+qt;return De(Lt,re,Bt.numberOfDoubleDots)}(re,At,Bt.snapshot?._urlSegment,yi),yn=Ei.processChildren?Fe(Ei.segmentGroup,Ei.index,re.commands):Ae(Ei.segmentGroup,Ei.index,re.commands);return Jn(At.root,Ei.segmentGroup,yn,Xt,qt)}(Bt.snapshot?._lastPathIndex)}function lr(Bt){return"object"==typeof Bt&&null!=Bt&&!Bt.outlets&&!Bt.segmentPath}function Or(Bt){return"object"==typeof Bt&&null!=Bt&&Bt.outlets}function Jn(Bt,At,Lt,Xt,qt){let _e,re={};Xt&&Mt(Xt,(yi,Ei)=>{re[Ei]=Array.isArray(yi)?yi.map(yn=>`${yn}`):`${yi}`}),_e=Bt===At?Lt:Xe(Bt,At,Lt);const Ge=ce(Ee(_e));return new Rt(Ge,re,qt)}function Xe(Bt,At,Lt){const Xt={};return Mt(Bt.children,(qt,re)=>{Xt[re]=qt===At?Lt:Xe(qt,At,Lt)}),new Zt(Bt.segments,Xt)}class Wt{constructor(At,Lt,Xt){if(this.isAbsolute=At,this.numberOfDoubleDots=Lt,this.commands=Xt,At&&Xt.length>0&&lr(Xt[0]))throw new pt.\u0275RuntimeError(4003,false);const qt=Xt.find(Or);if(qt&&qt!==St(Xt))throw new pt.\u0275RuntimeError(4004,false)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}function te(Bt){if("string"==typeof Bt[0]&&1===Bt.length&&"/"===Bt[0])return new Wt(!0,0,Bt);let At=0,Lt=!1;const Xt=Bt.reduce((qt,re,_e)=>{if("object"==typeof re&&null!=re){if(re.outlets){const Ge={};return Mt(re.outlets,(yi,Ei)=>{Ge[Ei]="string"==typeof yi?yi.split("/"):yi}),[...qt,{outlets:Ge}]}if(re.segmentPath)return[...qt,re.segmentPath]}return"string"!=typeof re?[...qt,re]:0===_e?(re.split("/").forEach((Ge,yi)=>{0==yi&&"."===Ge||(0==yi&&""===Ge?Lt=!0:".."===Ge?At++:""!=Ge&&qt.push(Ge))}),qt):[...qt,re]},[]);return new Wt(Lt,At,Xt)}class ie{constructor(At,Lt,Xt){this.segmentGroup=At,this.processChildren=Lt,this.index=Xt}}function De(Bt,At,Lt){let Xt=Bt,qt=At,re=Lt;for(;re>qt;){if(re-=qt,Xt=Xt.parent,!Xt)throw new pt.\u0275RuntimeError(4005,false);qt=Xt.segments.length}return new ie(Xt,!1,qt-re)}function Ae(Bt,At,Lt){if(Bt||(Bt=new Zt([],{})),0===Bt.segments.length&&Bt.hasChildren())return Fe(Bt,At,Lt);const Xt=function Ze(Bt,At,Lt){let Xt=0,qt=At;const re={match:!1,pathIndex:0,commandIndex:0};for(;qt=Lt.length)return re;const _e=Bt.segments[qt],Ge=Lt[Xt];if(Or(Ge))break;const yi=`${Ge}`,Ei=Xt0&&void 0===yi)break;if(yi&&Ei&&"object"==typeof Ei&&void 0===Ei.outlets){if(!Ye(yi,Ei,_e))return re;Xt+=2}else{if(!Ye(yi,{},_e))return re;Xt++}qt++}return{match:!0,pathIndex:qt,commandIndex:Xt}}(Bt,At,Lt),qt=Lt.slice(Xt.commandIndex);if(Xt.match&&Xt.pathIndex{"string"==typeof re&&(re=[re]),null!==re&&(qt[_e]=Ae(Bt.children[_e],At,re))}),Mt(Bt.children,(re,_e)=>{void 0===Xt[_e]&&(qt[_e]=re)}),new Zt(Bt.segments,qt))}}function ri(Bt,At,Lt){const Xt=Bt.segments.slice(0,At);let qt=0;for(;qt{"string"==typeof Lt&&(Lt=[Lt]),null!==Lt&&(At[Xt]=ri(new Zt([],{}),0,Lt))}),At}function gi(Bt){const At={};return Mt(Bt,(Lt,Xt)=>At[Xt]=`${Lt}`),At}function Ye(Bt,At,Lt){return Bt==Lt.path&&yt(At,Lt.parameters)}const ci="imperative";class li{constructor(At,Lt){this.id=At,this.url=Lt}}class ai extends li{constructor(At,Lt,Xt="imperative",qt=null){super(At,Lt),this.type=0,this.navigationTrigger=Xt,this.restoredState=qt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Je extends li{constructor(At,Lt,Xt){super(At,Lt),this.urlAfterRedirects=Xt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Di extends li{constructor(At,Lt,Xt,qt){super(At,Lt),this.reason=Xt,this.code=qt,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Re extends li{constructor(At,Lt,Xt,qt){super(At,Lt),this.reason=Xt,this.code=qt,this.type=16}}class Vt extends li{constructor(At,Lt,Xt,qt){super(At,Lt),this.error=Xt,this.target=qt,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class oe extends li{constructor(At,Lt,Xt,qt){super(At,Lt),this.urlAfterRedirects=Xt,this.state=qt,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe extends li{constructor(At,Lt,Xt,qt){super(At,Lt),this.urlAfterRedirects=Xt,this.state=qt,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ve extends li{constructor(At,Lt,Xt,qt,re){super(At,Lt),this.urlAfterRedirects=Xt,this.state=qt,this.shouldActivate=re,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class qe extends li{constructor(At,Lt,Xt,qt){super(At,Lt),this.urlAfterRedirects=Xt,this.state=qt,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ti extends li{constructor(At,Lt,Xt,qt){super(At,Lt),this.urlAfterRedirects=Xt,this.state=qt,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mi{constructor(At){this.route=At,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Mi{constructor(At){this.route=At,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Oe{constructor(At){this.snapshot=At,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fn{constructor(At){this.snapshot=At,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tn{constructor(At){this.snapshot=At,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ti{constructor(At){this.snapshot=At,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nn{constructor(At,Lt,Xt){this.routerEvent=At,this.position=Lt,this.anchor=Xt,this.type=15}toString(){const At=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${At}')`}}class Hn{createUrlTree(At,Lt,Xt,qt,re,_e){return Ji(At||Lt.root,Xt,qt,re,_e)}}Hn.\u0275fac=function(At){return new(At||Hn)},Hn.\u0275prov=pt.\u0275\u0275defineInjectable({token:Hn,factory:Hn.\u0275fac});class Pn{createUrlTree(At,Lt,Xt,qt,re,_e){let Ge;try{Ge=Dn(At?At.snapshot:Lt.snapshot.root)}catch{("string"!=typeof qt[0]||!qt[0].startsWith("/"))&&(qt=[]),Ge=Xt.root}return zn(Ge,qt,re,_e)}}Pn.\u0275fac=function(At){return new(At||Pn)},Pn.\u0275prov=pt.\u0275\u0275defineInjectable({token:Pn,factory:Pn.\u0275fac});class Ci{}Ci.\u0275fac=function(At){return new(At||Ci)},Ci.\u0275prov=pt.\u0275\u0275defineInjectable({token:Ci,factory:function(Bt){return Hn.\u0275fac(Bt)},providedIn:"root"});class _s{constructor(At){this._root=At}get root(){return this._root.value}parent(At){const Lt=this.pathFromRoot(At);return Lt.length>1?Lt[Lt.length-2]:null}children(At){const Lt=un(At,this._root);return Lt?Lt.children.map(Xt=>Xt.value):[]}firstChild(At){const Lt=un(At,this._root);return Lt&&Lt.children.length>0?Lt.children[0].value:null}siblings(At){const Lt=An(At,this._root);return Lt.length<2?[]:Lt[Lt.length-2].children.map(qt=>qt.value).filter(qt=>qt!==At)}pathFromRoot(At){return An(At,this._root).map(Lt=>Lt.value)}}function un(Bt,At){if(Bt===At.value)return At;for(const Lt of At.children){const Xt=un(Bt,Lt);if(Xt)return Xt}return null}function An(Bt,At){if(Bt===At.value)return[At];for(const Lt of At.children){const Xt=An(Bt,Lt);if(Xt.length)return Xt.unshift(At),Xt}return[]}class rn{constructor(At,Lt){this.value=At,this.children=Lt}toString(){return`TreeNode(${this.value})`}}function $r(Bt){const At={};return Bt&&Bt.children.forEach(Lt=>At[Lt.value.outlet]=Lt),At}class Ln extends _s{constructor(At,Lt){super(At),this.snapshot=Lt,tl(this,At)}toString(){return this.snapshot.toString()}}function je(Bt,At){const Lt=function ee(Bt,At){const Lt={},Xt={},qt={},re="",_e=new Er([],Lt,qt,re,Xt,et,At,null,Bt.root,-1,{});return new xs("",new rn(_e,[]))}(Bt,At),Xt=new q.X([new he("",{})]),qt=new q.X({}),re=new q.X({}),_e=new q.X({}),Ge=new q.X(""),yi=new gn(Xt,qt,_e,Ge,re,et,At,Lt.root);return yi.snapshot=Lt.root,new Ln(new rn(yi,[]),Lt)}class gn{constructor(At,Lt,Xt,qt,re,_e,Ge,yi){this.url=At,this.params=Lt,this.queryParams=Xt,this.fragment=qt,this.data=re,this.outlet=_e,this.component=Ge,this.title=this.data?.pipe((0,w.U)(Ei=>Ei[at]))??(0,Y.of)(void 0),this._futureSnapshot=yi}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,w.U)(At=>H(At)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,w.U)(At=>H(At)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xr(Bt,At="emptyOnly"){const Lt=Bt.pathFromRoot;let Xt=0;if("always"!==At)for(Xt=Lt.length-1;Xt>=1;){const qt=Lt[Xt],re=Lt[Xt-1];if(qt.routeConfig&&""===qt.routeConfig.path)Xt--;else{if(re.component)break;Xt--}}return function pr(Bt){return Bt.reduce((At,Lt)=>({params:{...At.params,...Lt.params},data:{...At.data,...Lt.data},resolve:{...Lt.data,...At.resolve,...Lt.routeConfig?.data,...Lt._resolvedData}}),{params:{},data:{},resolve:{}})}(Lt.slice(Xt))}class Er{get title(){return this.data?.[at]}constructor(At,Lt,Xt,qt,re,_e,Ge,yi,Ei,yn,_r){this.url=At,this.params=Lt,this.queryParams=Xt,this.fragment=qt,this.data=re,this.outlet=_e,this.component=Ge,this.routeConfig=yi,this._urlSegment=Ei,this._lastPathIndex=yn,this._resolve=_r}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=H(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Xt=>Xt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xs extends _s{constructor(At,Lt){super(Lt),this.url=At,tl(this,Lt)}toString(){return cr(this._root)}}function tl(Bt,At){At.value._routerState=Bt,At.children.forEach(Lt=>tl(Bt,Lt))}function cr(Bt){const At=Bt.children.length>0?` { ${Bt.children.map(cr).join(", ")} } `:"";return`${Bt.value}${At}`}function Kr(Bt){if(Bt.snapshot){const At=Bt.snapshot,Lt=Bt._futureSnapshot;Bt.snapshot=Lt,yt(At.queryParams,Lt.queryParams)||Bt.queryParams.next(Lt.queryParams),At.fragment!==Lt.fragment&&Bt.fragment.next(Lt.fragment),yt(At.params,Lt.params)||Bt.params.next(Lt.params),function nt(Bt,At){if(Bt.length!==At.length)return!1;for(let Lt=0;Ltyt(Lt.parameters,At[Xt].parameters))}(Bt.url,At.url),Xt=!Bt.parent!=!At.parent;return Lt&&!Xt&&(!Bt.parent||Sr(Bt.parent,At.parent))}function is(Bt,At,Lt){if(Lt&&Bt.shouldReuseRoute(At.value,Lt.value.snapshot)){const Xt=Lt.value;Xt._futureSnapshot=At.value;const qt=function fr(Bt,At,Lt){return At.children.map(Xt=>{for(const qt of Lt.children)if(Bt.shouldReuseRoute(Xt.value,qt.value.snapshot))return is(Bt,Xt,qt);return is(Bt,Xt)})}(Bt,At,Lt);return new rn(Xt,qt)}{if(Bt.shouldAttach(At.value)){const re=Bt.retrieve(At.value);if(null!==re){const _e=re.route;return _e.value._futureSnapshot=At.value,_e.children=At.children.map(Ge=>is(Bt,Ge)),_e}}const Xt=function Hh(Bt){return new gn(new q.X(Bt.url),new q.X(Bt.params),new q.X(Bt.queryParams),new q.X(Bt.fragment),new q.X(Bt.data),Bt.outlet,Bt.component,Bt)}(At.value),qt=At.children.map(re=>is(Bt,re));return new rn(Xt,qt)}}const gr="ngNavigationCancelingError";function Oa(Bt,At){const{redirectTo:Lt,navigationBehaviorOptions:Xt}=di(At)?{redirectTo:At,navigationBehaviorOptions:void 0}:At,qt=Cs(!1,0,At);return qt.url=Lt,qt.navigationBehaviorOptions=Xt,qt}function Cs(Bt,At,Lt){const Xt=new Error("NavigationCancelingError: "+(Bt||""));return Xt[gr]=!0,Xt.cancellationCode=At,Lt&&(Xt.url=Lt),Xt}function ca(Bt){return hs(Bt)&&di(Bt.url)}function hs(Bt){return Bt&&Bt[gr]}class ka{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ir,this.attachRef=null}}class ir{constructor(){this.contexts=new Map}onChildOutletCreated(At,Lt){const Xt=this.getOrCreateContext(At);Xt.outlet=Lt,this.contexts.set(At,Xt)}onChildOutletDestroyed(At){const Lt=this.getContext(At);Lt&&(Lt.outlet=null,Lt.attachRef=null)}onOutletDeactivated(){const At=this.contexts;return this.contexts=new Map,At}onOutletReAttached(At){this.contexts=At}getOrCreateContext(At){let Lt=this.getContext(At);return Lt||(Lt=new ka,this.contexts.set(At,Lt)),Lt}getContext(At){return this.contexts.get(At)||null}}ir.\u0275fac=function(At){return new(At||ir)},ir.\u0275prov=pt.\u0275\u0275defineInjectable({token:ir,factory:ir.\u0275fac,providedIn:"root"});const us=!1;class io{constructor(){this.activated=null,this._activatedRoute=null,this.name=et,this.activateEvents=new pt.EventEmitter,this.deactivateEvents=new pt.EventEmitter,this.attachEvents=new pt.EventEmitter,this.detachEvents=new pt.EventEmitter,this.parentContexts=(0,pt.inject)(ir),this.location=(0,pt.inject)(pt.ViewContainerRef),this.changeDetector=(0,pt.inject)(pt.ChangeDetectorRef),this.environmentInjector=(0,pt.inject)(pt.EnvironmentInjector)}ngOnChanges(At){if(At.name){const{firstChange:Lt,previousValue:Xt}=At.name;if(Lt)return;this.isTrackedInParentContexts(Xt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Xt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}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 pt.\u0275RuntimeError(4012,us);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new pt.\u0275RuntimeError(4012,us);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new pt.\u0275RuntimeError(4012,us);this.location.detach();const At=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(At.instance),At}attach(At,Lt){this.activated=At,this._activatedRoute=Lt,this.location.insert(At.hostView),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,Lt){if(this.isActivated)throw new pt.\u0275RuntimeError(4013,us);this._activatedRoute=At;const Xt=this.location,re=At.snapshot.component,_e=this.parentContexts.getOrCreateContext(this.name).children,Ge=new Oo(At,_e,Xt.injector);if(Lt&&function La(Bt){return!!Bt.resolveComponentFactory}(Lt)){const yi=Lt.resolveComponentFactory(re);this.activated=Xt.createComponent(yi,Xt.length,Ge)}else{const yi=Lt??this.environmentInjector;this.activated=Xt.createComponent(re,{index:Xt.length,injector:Ge,environmentInjector:yi})}this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}io.\u0275fac=function(At){return new(At||io)},io.\u0275dir=pt.\u0275\u0275defineDirective({type:io,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[pt.\u0275\u0275NgOnChangesFeature]});class Oo{constructor(At,Lt,Xt){this.route=At,this.childContexts=Lt,this.parent=Xt}get(At,Lt){return At===gn?this.route:At===ir?this.childContexts:this.parent.get(At,Lt)}}class mr{}function fo(Bt,At){return Bt.providers&&!Bt._injector&&(Bt._injector=(0,pt.createEnvironmentInjector)(Bt.providers,At,`Route: ${Bt.path}`)),Bt._injector??At}function vr(Bt){const At=Bt.children&&Bt.children.map(vr),Lt=At?{...Bt,children:At}:{...Bt};return!Lt.component&&!Lt.loadComponent&&(At||Lt.loadChildren)&&Lt.outlet&&Lt.outlet!==et&&(Lt.component=mr),Lt}function Tn(Bt){return Bt.outlet||et}function Vn(Bt,At){const Lt=Bt.filter(Xt=>Tn(Xt)===At);return Lt.push(...Bt.filter(Xt=>Tn(Xt)!==At)),Lt}function hr(Bt){if(!Bt)return null;if(Bt.routeConfig?._injector)return Bt.routeConfig._injector;for(let At=Bt.parent;At;At=At.parent){const Lt=At.routeConfig;if(Lt?._loadedInjector)return Lt._loadedInjector;if(Lt?._injector)return Lt._injector}return null}mr.\u0275fac=function(At){return new(At||mr)},mr.\u0275cmp=pt.\u0275\u0275defineComponent({type:mr,selectors:[["ng-component"]],standalone:!0,features:[pt.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(At,Lt){1&At&&pt.\u0275\u0275element(0,"router-outlet")},dependencies:[io],encapsulation:2});class Lr{constructor(At,Lt,Xt,qt){this.routeReuseStrategy=At,this.futureState=Lt,this.currState=Xt,this.forwardEvent=qt}activate(At){const Lt=this.futureState._root,Xt=this.currState?this.currState._root:null;this.deactivateChildRoutes(Lt,Xt,At),Kr(this.futureState.root),this.activateChildRoutes(Lt,Xt,At)}deactivateChildRoutes(At,Lt,Xt){const qt=$r(Lt);At.children.forEach(re=>{const _e=re.value.outlet;this.deactivateRoutes(re,qt[_e],Xt),delete qt[_e]}),Mt(qt,(re,_e)=>{this.deactivateRouteAndItsChildren(re,Xt)})}deactivateRoutes(At,Lt,Xt){const qt=At.value,re=Lt?Lt.value:null;if(qt===re)if(qt.component){const _e=Xt.getContext(qt.outlet);_e&&this.deactivateChildRoutes(At,Lt,_e.children)}else this.deactivateChildRoutes(At,Lt,Xt);else re&&this.deactivateRouteAndItsChildren(Lt,Xt)}deactivateRouteAndItsChildren(At,Lt){At.value.component&&this.routeReuseStrategy.shouldDetach(At.value.snapshot)?this.detachAndStoreRouteSubtree(At,Lt):this.deactivateRouteAndOutlet(At,Lt)}detachAndStoreRouteSubtree(At,Lt){const Xt=Lt.getContext(At.value.outlet),qt=Xt&&At.value.component?Xt.children:Lt,re=$r(At);for(const _e of Object.keys(re))this.deactivateRouteAndItsChildren(re[_e],qt);if(Xt&&Xt.outlet){const _e=Xt.outlet.detach(),Ge=Xt.children.onOutletDeactivated();this.routeReuseStrategy.store(At.value.snapshot,{componentRef:_e,route:At,contexts:Ge})}}deactivateRouteAndOutlet(At,Lt){const Xt=Lt.getContext(At.value.outlet),qt=Xt&&At.value.component?Xt.children:Lt,re=$r(At);for(const _e of Object.keys(re))this.deactivateRouteAndItsChildren(re[_e],qt);Xt&&Xt.outlet&&(Xt.outlet.deactivate(),Xt.children.onOutletDeactivated(),Xt.attachRef=null,Xt.resolver=null,Xt.route=null)}activateChildRoutes(At,Lt,Xt){const qt=$r(Lt);At.children.forEach(re=>{this.activateRoutes(re,qt[re.value.outlet],Xt),this.forwardEvent(new Ti(re.value.snapshot))}),At.children.length&&this.forwardEvent(new fn(At.value.snapshot))}activateRoutes(At,Lt,Xt){const qt=At.value,re=Lt?Lt.value:null;if(Kr(qt),qt===re)if(qt.component){const _e=Xt.getOrCreateContext(qt.outlet);this.activateChildRoutes(At,Lt,_e.children)}else this.activateChildRoutes(At,Lt,Xt);else if(qt.component){const _e=Xt.getOrCreateContext(qt.outlet);if(this.routeReuseStrategy.shouldAttach(qt.snapshot)){const Ge=this.routeReuseStrategy.retrieve(qt.snapshot);this.routeReuseStrategy.store(qt.snapshot,null),_e.children.onOutletReAttached(Ge.contexts),_e.attachRef=Ge.componentRef,_e.route=Ge.route.value,_e.outlet&&_e.outlet.attach(Ge.componentRef,Ge.route.value),Kr(Ge.route.value),this.activateChildRoutes(At,null,_e.children)}else{const Ge=hr(qt.snapshot),yi=Ge?.get(pt.ComponentFactoryResolver)??null;_e.attachRef=null,_e.route=qt,_e.resolver=yi,_e.injector=Ge,_e.outlet&&_e.outlet.activateWith(qt,_e.injector),this.activateChildRoutes(At,null,_e.children)}}else this.activateChildRoutes(At,null,Xt)}}class Cr{constructor(At){this.path=At,this.route=this.path[this.path.length-1]}}class Cn{constructor(At,Lt){this.component=At,this.route=Lt}}function Rr(Bt,At,Lt){const Xt=Bt._root;return tr(Xt,At?At._root:null,Lt,[Xt.value])}function Fn(Bt,At){const Lt=Symbol(),Xt=At.get(Bt,Lt);return Xt===Lt?"function"!=typeof Bt||(0,pt.\u0275isInjectable)(Bt)?At.get(Bt):Bt:Xt}function tr(Bt,At,Lt,Xt,qt={canDeactivateChecks:[],canActivateChecks:[]}){const re=$r(At);return Bt.children.forEach(_e=>{(function ko(Bt,At,Lt,Xt,qt={canDeactivateChecks:[],canActivateChecks:[]}){const re=Bt.value,_e=At?At.value:null,Ge=Lt?Lt.getContext(Bt.value.outlet):null;if(_e&&re.routeConfig===_e.routeConfig){const yi=function il(Bt,At,Lt){if("function"==typeof Lt)return Lt(Bt,At);switch(Lt){case"pathParamsChange":return!ye(Bt.url,At.url);case"pathParamsOrQueryParamsChange":return!ye(Bt.url,At.url)||!yt(Bt.queryParams,At.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sr(Bt,At)||!yt(Bt.queryParams,At.queryParams);default:return!Sr(Bt,At)}}(_e,re,re.routeConfig.runGuardsAndResolvers);yi?qt.canActivateChecks.push(new Cr(Xt)):(re.data=_e.data,re._resolvedData=_e._resolvedData),re.component?tr(Bt,At,Ge?Ge.children:null,Xt,qt):tr(Bt,At,Lt,Xt,qt),yi&&Ge&&Ge.outlet&&Ge.outlet.isActivated&&qt.canDeactivateChecks.push(new Cn(Ge.outlet.component,_e))}else _e&&Ws(At,Ge,qt),qt.canActivateChecks.push(new Cr(Xt)),re.component?tr(Bt,null,Ge?Ge.children:null,Xt,qt):tr(Bt,null,Lt,Xt,qt);return qt})(_e,re[_e.value.outlet],Lt,Xt.concat([_e.value]),qt),delete re[_e.value.outlet]}),Mt(re,(_e,Ge)=>Ws(_e,Lt.getContext(Ge),qt)),qt}function Ws(Bt,At,Lt){const Xt=$r(Bt),qt=Bt.value;Mt(Xt,(re,_e)=>{qt.component?Ws(re,At?At.children.getContext(_e):null,Lt):Ws(re,At,Lt)}),qt.component&&At&&At.outlet&&At.outlet.isActivated?Lt.canDeactivateChecks.push(new Cn(At.outlet.component,qt)):Lt.canDeactivateChecks.push(new Cn(null,qt))}function bs(Bt){return"function"==typeof Bt}function ha(Bt){return Bt instanceof O.K||"EmptyError"===Bt?.name}const Hs=Symbol("INITIAL_VALUE");function ws(){return(0,T.w)(Bt=>(0,U.a)(Bt.map(At=>At.pipe((0,y.q)(1),(0,A.O)(Hs)))).pipe((0,w.U)(At=>{for(const Lt of At)if(!0!==Lt){if(Lt===Hs)return Hs;if(!1===Lt||Lt instanceof Rt)return Lt}return!0}),(0,g.h)(At=>At!==Hs),(0,y.q)(1)))}function pi(Bt,At){return(0,v.z)(Lt=>{const{targetSnapshot:Xt,currentSnapshot:qt,guards:{canActivateChecks:re,canDeactivateChecks:_e}}=Lt;return 0===_e.length&&0===re.length?(0,Y.of)({...Lt,guardsResult:!0}):function vn(Bt,At,Lt,Xt){return(0,t.D)(Bt).pipe((0,v.z)(qt=>function Mr(Bt,At,Lt,Xt,qt){const re=At&&At.routeConfig?At.routeConfig.canDeactivate:null;if(!re||0===re.length)return(0,Y.of)(!0);const _e=re.map(Ge=>{const yi=hr(At)??qt,Ei=Fn(Ge,yi);return Dt(function fp(Bt){return Bt&&bs(Bt.canDeactivate)}(Ei)?Ei.canDeactivate(Bt,At,Lt,Xt):yi.runInContext(()=>Ei(Bt,At,Lt,Xt))).pipe(b())});return(0,Y.of)(_e).pipe(ws())}(qt.component,qt.route,Lt,At,Xt)),b(qt=>!0!==qt,!0))}(_e,Xt,qt,Bt).pipe((0,v.z)(Ge=>Ge&&function Lo(Bt){return"boolean"==typeof Bt}(Ge)?function Es(Bt,At,Lt,Xt){return(0,t.D)(At).pipe((0,d.b)(qt=>(0,G.z)(function qn(Bt,At){return null!==Bt&&At&&At(new Oe(Bt)),(0,Y.of)(!0)}(qt.route.parent,Xt),function qc(Bt,At){return null!==Bt&&At&&At(new tn(Bt)),(0,Y.of)(!0)}(qt.route,Xt),function gs(Bt,At,Lt){const Xt=At[At.length-1],re=At.slice(0,At.length-1).reverse().map(_e=>function Gn(Bt){const At=Bt.routeConfig?Bt.routeConfig.canActivateChild:null;return At&&0!==At.length?{node:Bt,guards:At}:null}(_e)).filter(_e=>null!==_e).map(_e=>(0,Z.P)(()=>{const Ge=_e.guards.map(yi=>{const Ei=hr(_e.node)??Lt,yn=Fn(yi,Ei);return Dt(function Gh(Bt){return Bt&&bs(Bt.canActivateChild)}(yn)?yn.canActivateChild(Xt,Bt):Ei.runInContext(()=>yn(Xt,Bt))).pipe(b())});return(0,Y.of)(Ge).pipe(ws())}));return(0,Y.of)(re).pipe(ws())}(Bt,qt.path,Lt),function Fo(Bt,At,Lt){const Xt=At.routeConfig?At.routeConfig.canActivate:null;if(!Xt||0===Xt.length)return(0,Y.of)(!0);const qt=Xt.map(re=>(0,Z.P)(()=>{const _e=hr(At)??Lt,Ge=Fn(re,_e);return Dt(function Qi(Bt){return Bt&&bs(Bt.canActivate)}(Ge)?Ge.canActivate(At,Bt):_e.runInContext(()=>Ge(At,Bt))).pipe(b())}));return(0,Y.of)(qt).pipe(ws())}(Bt,qt.route,Lt))),b(qt=>!0!==qt,!0))}(Xt,re,Bt,At):(0,Y.of)(Ge)),(0,w.U)(Ge=>({...Lt,guardsResult:Ge})))})}function rr(Bt,At,Lt,Xt){const qt=At.canLoad;if(void 0===qt||0===qt.length)return(0,Y.of)(!0);const re=qt.map(_e=>{const Ge=Fn(_e,Bt);return Dt(function Pl(Bt){return Bt&&bs(Bt.canLoad)}(Ge)?Ge.canLoad(At,Lt):Bt.runInContext(()=>Ge(At,Lt)))});return(0,Y.of)(re).pipe(ws(),Yr(Xt))}function Yr(Bt){return(0,$.z)((0,u.b)(At=>{if(di(At))throw Oa(0,At)}),(0,w.U)(At=>!0===At))}function Fr(Bt,At,Lt,Xt){const qt=At.canMatch;if(!qt||0===qt.length)return(0,Y.of)(!0);const re=qt.map(_e=>{const Ge=Fn(_e,Bt);return Dt(function ec(Bt){return Bt&&bs(Bt.canMatch)}(Ge)?Ge.canMatch(At,Lt):Bt.runInContext(()=>Ge(At,Lt)))});return(0,Y.of)(re).pipe(ws(),Yr())}const Nr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sr(Bt,At,Lt,Xt,qt){const re=Un(Bt,At,Lt);return re.matched?Fr(Xt=fo(At,Xt),At,Lt).pipe((0,w.U)(_e=>!0===_e?re:{...Nr})):(0,Y.of)(re)}function Un(Bt,At,Lt){if(""===At.path)return"full"===At.pathMatch&&(Bt.hasChildren()||Lt.length>0)?{...Nr}:{matched:!0,consumedSegments:[],remainingSegments:Lt,parameters:{},positionalParamSegments:{}};const qt=(At.matcher||ot)(Lt,Bt,At);if(!qt)return{...Nr};const re={};Mt(qt.posParams,(Ge,yi)=>{re[yi]=Ge.path});const _e=qt.consumed.length>0?{...re,...qt.consumed[qt.consumed.length-1].parameters}:re;return{matched:!0,consumedSegments:qt.consumed,remainingSegments:Lt.slice(qt.consumed.length),parameters:_e,positionalParamSegments:qt.posParams??{}}}function Br(Bt,At,Lt,Xt){if(Lt.length>0&&function mo(Bt,At,Lt){return Lt.some(Xt=>ua(Bt,At,Xt)&&Tn(Xt)!==et)}(Bt,Lt,Xt)){const re=new Zt(At,function Gs(Bt,At,Lt,Xt){const qt={};qt[et]=Xt,Xt._sourceSegment=Bt,Xt._segmentIndexShift=At.length;for(const re of Lt)if(""===re.path&&Tn(re)!==et){const _e=new Zt([],{});_e._sourceSegment=Bt,_e._segmentIndexShift=At.length,qt[Tn(re)]=_e}return qt}(Bt,At,Xt,new Zt(Lt,Bt.children)));return re._sourceSegment=Bt,re._segmentIndexShift=At.length,{segmentGroup:re,slicedSegments:[]}}if(0===Lt.length&&function Ju(Bt,At,Lt){return Lt.some(Xt=>ua(Bt,At,Xt))}(Bt,Lt,Xt)){const re=new Zt(Bt.segments,function ns(Bt,At,Lt,Xt,qt){const re={};for(const _e of Xt)if(ua(Bt,Lt,_e)&&!qt[Tn(_e)]){const Ge=new Zt([],{});Ge._sourceSegment=Bt,Ge._segmentIndexShift=At.length,re[Tn(_e)]=Ge}return{...qt,...re}}(Bt,At,Lt,Xt,Bt.children));return re._sourceSegment=Bt,re._segmentIndexShift=At.length,{segmentGroup:re,slicedSegments:Lt}}const qt=new Zt(Bt.segments,Bt.children);return qt._sourceSegment=Bt,qt._segmentIndexShift=At.length,{segmentGroup:qt,slicedSegments:Lt}}function ua(Bt,At,Lt){return(!(Bt.hasChildren()||At.length>0)||"full"!==Lt.pathMatch)&&""===Lt.path}function nl(Bt,At,Lt,Xt){return!!(Tn(Bt)===Xt||Xt!==et&&ua(At,Lt,Bt))&&("**"===Bt.path||Un(At,Bt,Lt).matched)}function No(Bt,At,Lt){return 0===At.length&&!Bt.children[Lt]}const Zr=!1;class vo{constructor(At){this.segmentGroup=At||null}}class ic{constructor(At){this.urlTree=At}}function Ss(Bt){return(0,W._)(new vo(Bt))}function nc(Bt){return(0,W._)(new ic(Bt))}class bn{constructor(At,Lt,Xt,qt,re){this.injector=At,this.configLoader=Lt,this.urlSerializer=Xt,this.urlTree=qt,this.config=re,this.allowRedirects=!0}apply(){const At=Br(this.urlTree.root,[],[],this.config).segmentGroup,Lt=new Zt(At.segments,At.children);return this.expandSegmentGroup(this.injector,this.config,Lt,et).pipe((0,w.U)(re=>this.createUrlTree(Ee(re),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,a.K)(re=>{if(re instanceof ic)return this.allowRedirects=!1,this.match(re.urlTree);throw re instanceof vo?this.noMatchError(re):re}))}match(At){return this.expandSegmentGroup(this.injector,this.config,At.root,et).pipe((0,w.U)(qt=>this.createUrlTree(Ee(qt),At.queryParams,At.fragment))).pipe((0,a.K)(qt=>{throw qt instanceof vo?this.noMatchError(qt):qt}))}noMatchError(At){return new pt.\u0275RuntimeError(4002,Zr)}createUrlTree(At,Lt,Xt){const qt=ce(At);return new Rt(qt,Lt,Xt)}expandSegmentGroup(At,Lt,Xt,qt){return 0===Xt.segments.length&&Xt.hasChildren()?this.expandChildren(At,Lt,Xt).pipe((0,w.U)(re=>new Zt([],re))):this.expandSegment(At,Xt,Lt,Xt.segments,qt,!0)}expandChildren(At,Lt,Xt){const qt=[];for(const re of Object.keys(Xt.children))"primary"===re?qt.unshift(re):qt.push(re);return(0,t.D)(qt).pipe((0,d.b)(re=>{const _e=Xt.children[re],Ge=Vn(Lt,re);return this.expandSegmentGroup(At,Ge,_e,re).pipe((0,w.U)(yi=>({segment:yi,outlet:re})))}),o((re,_e)=>(re[_e.outlet]=_e.segment,re),{}),_())}expandSegment(At,Lt,Xt,qt,re,_e){return(0,t.D)(Xt).pipe((0,d.b)(Ge=>this.expandSegmentAgainstRoute(At,Lt,Xt,Ge,qt,re,_e).pipe((0,a.K)(Ei=>{if(Ei instanceof vo)return(0,Y.of)(null);throw Ei}))),b(Ge=>!!Ge),(0,a.K)((Ge,yi)=>{if(ha(Ge))return No(Lt,qt,re)?(0,Y.of)(new Zt([],{})):Ss(Lt);throw Ge}))}expandSegmentAgainstRoute(At,Lt,Xt,qt,re,_e,Ge){return nl(qt,Lt,re,_e)?void 0===qt.redirectTo?this.matchSegmentAgainstRoute(At,Lt,qt,re,_e):Ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(At,Lt,Xt,qt,re,_e):Ss(Lt):Ss(Lt)}expandSegmentAgainstRouteUsingRedirect(At,Lt,Xt,qt,re,_e){return"**"===qt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(At,Xt,qt,_e):this.expandRegularSegmentAgainstRouteUsingRedirect(At,Lt,Xt,qt,re,_e)}expandWildCardWithParamsAgainstRouteUsingRedirect(At,Lt,Xt,qt){const re=this.applyRedirectCommands([],Xt.redirectTo,{});return Xt.redirectTo.startsWith("/")?nc(re):this.lineralizeSegments(Xt,re).pipe((0,v.z)(_e=>{const Ge=new Zt(_e,{});return this.expandSegment(At,Ge,Lt,_e,qt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(At,Lt,Xt,qt,re,_e){const{matched:Ge,consumedSegments:yi,remainingSegments:Ei,positionalParamSegments:yn}=Un(Lt,qt,re);if(!Ge)return Ss(Lt);const _r=this.applyRedirectCommands(yi,qt.redirectTo,yn);return qt.redirectTo.startsWith("/")?nc(_r):this.lineralizeSegments(qt,_r).pipe((0,v.z)(Wn=>this.expandSegment(At,Lt,Xt,Wn.concat(Ei),_e,!1)))}matchSegmentAgainstRoute(At,Lt,Xt,qt,re){return"**"===Xt.path?(At=fo(Xt,At),Xt.loadChildren?(Xt._loadedRoutes?(0,Y.of)({routes:Xt._loadedRoutes,injector:Xt._loadedInjector}):this.configLoader.loadChildren(At,Xt)).pipe((0,w.U)(Ge=>(Xt._loadedRoutes=Ge.routes,Xt._loadedInjector=Ge.injector,new Zt(qt,{})))):(0,Y.of)(new Zt(qt,{}))):sr(Lt,Xt,qt,At,this.urlSerializer).pipe((0,T.w)(({matched:_e,consumedSegments:Ge,remainingSegments:yi})=>_e?(At=Xt._injector??At,this.getChildConfig(At,Xt,qt).pipe((0,v.z)(yn=>{const _r=yn.injector??At,Wn=yn.routes,{segmentGroup:Ts,slicedSegments:as}=Br(Lt,Ge,yi,Wn),Xo=new Zt(Ts.segments,Ts.children);if(0===as.length&&Xo.hasChildren())return this.expandChildren(_r,Wn,Xo).pipe((0,w.U)(ac=>new Zt(Ge,ac)));if(0===Wn.length&&0===as.length)return(0,Y.of)(new Zt(Ge,{}));const $o=Tn(Xt)===re;return this.expandSegment(_r,Xo,Wn,as,$o?et:re,!0).pipe((0,w.U)(Ba=>new Zt(Ge.concat(Ba.segments),Ba.children)))}))):Ss(Lt)))}getChildConfig(At,Lt,Xt){return Lt.children?(0,Y.of)({routes:Lt.children,injector:At}):Lt.loadChildren?void 0!==Lt._loadedRoutes?(0,Y.of)({routes:Lt._loadedRoutes,injector:Lt._loadedInjector}):rr(At,Lt,Xt,this.urlSerializer).pipe((0,v.z)(qt=>qt?this.configLoader.loadChildren(At,Lt).pipe((0,u.b)(re=>{Lt._loadedRoutes=re.routes,Lt._loadedInjector=re.injector})):function pn(Bt){return(0,W._)(Cs(Zr,3))}())):(0,Y.of)({routes:[],injector:At})}lineralizeSegments(At,Lt){let Xt=[],qt=Lt.root;for(;;){if(Xt=Xt.concat(qt.segments),0===qt.numberOfChildren)return(0,Y.of)(Xt);if(qt.numberOfChildren>1||!qt.children[et])return At.redirectTo,(0,W._)(new pt.\u0275RuntimeError(4e3,Zr));qt=qt.children[et]}}applyRedirectCommands(At,Lt,Xt){return this.applyRedirectCreateUrlTree(Lt,this.urlSerializer.parse(Lt),At,Xt)}applyRedirectCreateUrlTree(At,Lt,Xt,qt){const re=this.createSegmentGroup(At,Lt.root,Xt,qt);return new Rt(re,this.createQueryParams(Lt.queryParams,this.urlTree.queryParams),Lt.fragment)}createQueryParams(At,Lt){const Xt={};return Mt(At,(qt,re)=>{if("string"==typeof qt&&qt.startsWith(":")){const Ge=qt.substring(1);Xt[re]=Lt[Ge]}else Xt[re]=qt}),Xt}createSegmentGroup(At,Lt,Xt,qt){const re=this.createSegments(At,Lt.segments,Xt,qt);let _e={};return Mt(Lt.children,(Ge,yi)=>{_e[yi]=this.createSegmentGroup(At,Ge,Xt,qt)}),new Zt(re,_e)}createSegments(At,Lt,Xt,qt){return Lt.map(re=>re.path.startsWith(":")?this.findPosParam(At,re,qt):this.findOrReturn(re,Xt))}findPosParam(At,Lt,Xt){const qt=Xt[Lt.path.substring(1)];if(!qt)throw new pt.\u0275RuntimeError(4001,Zr);return qt}findOrReturn(At,Lt){let Xt=0;for(const qt of Lt){if(qt.path===At.path)return Lt.splice(Xt),qt;Xt++}return At}}function Xh(Bt,At,Lt,Xt){return(0,T.w)(qt=>function Nn(Bt,At,Lt,Xt,qt){return new bn(Bt,At,Lt,Xt,qt).apply()}(Bt,At,Lt,qt.extractedUrl,Xt).pipe((0,w.U)(re=>({...qt,urlAfterRedirects:re}))))}class da{}function Il(Bt,At,Lt,Xt,qt,re,_e="emptyOnly"){return new Ar(Bt,At,Lt,Xt,qt,_e,re).recognize().pipe((0,T.w)(Ge=>null===Ge?function $h(Bt){return new V.y(At=>At.error(Bt))}(new da):(0,Y.of)(Ge)))}class Ar{constructor(At,Lt,Xt,qt,re,_e,Ge){this.injector=At,this.rootComponentType=Lt,this.config=Xt,this.urlTree=qt,this.url=re,this.paramsInheritanceStrategy=_e,this.urlSerializer=Ge}recognize(){const At=Br(this.urlTree.root,[],[],this.config.filter(Lt=>void 0===Lt.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,At,et).pipe((0,w.U)(Lt=>{if(null===Lt)return null;const Xt=new Er([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},et,this.rootComponentType,null,this.urlTree.root,-1,{}),qt=new rn(Xt,Lt),re=new xs(this.url,qt);return this.inheritParamsAndData(re._root),re}))}inheritParamsAndData(At){const Lt=At.value,Xt=xr(Lt,this.paramsInheritanceStrategy);Lt.params=Object.freeze(Xt.params),Lt.data=Object.freeze(Xt.data),At.children.forEach(qt=>this.inheritParamsAndData(qt))}processSegmentGroup(At,Lt,Xt,qt){return 0===Xt.segments.length&&Xt.hasChildren()?this.processChildren(At,Lt,Xt):this.processSegment(At,Lt,Xt,Xt.segments,qt)}processChildren(At,Lt,Xt){return(0,t.D)(Object.keys(Xt.children)).pipe((0,d.b)(qt=>{const re=Xt.children[qt],_e=Vn(Lt,qt);return this.processSegmentGroup(At,_e,re,qt)}),o((qt,re)=>qt&&re?(qt.push(...re),qt):null),function B(Bt,At=!1){return(0,S.e)((Lt,Xt)=>{let qt=0;Lt.subscribe((0,N.x)(Xt,re=>{const _e=Bt(re,qt++);(_e||At)&&Xt.next(re),!_e&&Xt.complete()}))})}(qt=>null!==qt),j(null),_(),(0,w.U)(qt=>{if(null===qt)return null;const re=Jc(qt);return function Ra(Bt){Bt.sort((At,Lt)=>At.value.outlet===et?-1:Lt.value.outlet===et?1:At.value.outlet.localeCompare(Lt.value.outlet))}(re),re}))}processSegment(At,Lt,Xt,qt,re){return(0,t.D)(Lt).pipe((0,d.b)(_e=>this.processSegmentAgainstRoute(_e._injector??At,_e,Xt,qt,re)),b(_e=>!!_e),(0,a.K)(_e=>{if(ha(_e))return No(Xt,qt,re)?(0,Y.of)([]):(0,Y.of)(null);throw _e}))}processSegmentAgainstRoute(At,Lt,Xt,qt,re){if(Lt.redirectTo||!nl(Lt,Xt,qt,re))return(0,Y.of)(null);let _e;if("**"===Lt.path){const Ge=qt.length>0?St(qt).parameters:{},yi=Gt(Xt)+qt.length,Ei=new Er(qt,Ge,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ne(Lt),Tn(Lt),Lt.component??Lt._loadedComponent??null,Lt,Kh(Xt),yi,pe(Lt));_e=(0,Y.of)({snapshot:Ei,consumedSegments:[],remainingSegments:[]})}else _e=sr(Xt,Lt,qt,At,this.urlSerializer).pipe((0,w.U)(({matched:Ge,consumedSegments:yi,remainingSegments:Ei,parameters:yn})=>{if(!Ge)return null;const _r=Gt(Xt)+yi.length;return{snapshot:new Er(yi,yn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,ne(Lt),Tn(Lt),Lt.component??Lt._loadedComponent??null,Lt,Kh(Xt),_r,pe(Lt)),consumedSegments:yi,remainingSegments:Ei}}));return _e.pipe((0,T.w)(Ge=>{if(null===Ge)return(0,Y.of)(null);const{snapshot:yi,consumedSegments:Ei,remainingSegments:yn}=Ge;At=Lt._injector??At;const _r=Lt._loadedInjector??At,Wn=function nr(Bt){return Bt.children?Bt.children:Bt.loadChildren?Bt._loadedRoutes:[]}(Lt),{segmentGroup:Ts,slicedSegments:as}=Br(Xt,Ei,yn,Wn.filter($o=>void 0===$o.redirectTo));if(0===as.length&&Ts.hasChildren())return this.processChildren(_r,Wn,Ts).pipe((0,w.U)($o=>null===$o?null:[new rn(yi,$o)]));if(0===Wn.length&&0===as.length)return(0,Y.of)([new rn(yi,[])]);const Xo=Tn(Lt)===re;return this.processSegment(_r,Wn,Ts,as,Xo?et:re).pipe((0,w.U)($o=>null===$o?null:[new rn(yi,$o)]))}))}}function Ol(Bt){const At=Bt.value.routeConfig;return At&&""===At.path&&void 0===At.redirectTo}function Jc(Bt){const At=[],Lt=new Set;for(const Xt of Bt){if(!Ol(Xt)){At.push(Xt);continue}const qt=At.find(re=>Xt.value.routeConfig===re.value.routeConfig);void 0!==qt?(qt.children.push(...Xt.children),Lt.add(qt)):At.push(Xt)}for(const Xt of Lt){const qt=Jc(Xt.children);At.push(new rn(Xt.value,qt))}return At.filter(Xt=>!Lt.has(Xt))}function Kh(Bt){let At=Bt;for(;At._sourceSegment;)At=At._sourceSegment;return At}function Gt(Bt){let At=Bt,Lt=At._segmentIndexShift??0;for(;At._sourceSegment;)At=At._sourceSegment,Lt+=At._segmentIndexShift??0;return Lt-1}function ne(Bt){return Bt.data||{}}function pe(Bt){return Bt.resolve||{}}function ni(Bt,At){return(0,v.z)(Lt=>{const{targetSnapshot:Xt,guards:{canActivateChecks:qt}}=Lt;if(!qt.length)return(0,Y.of)(Lt);let re=0;return(0,t.D)(qt).pipe((0,d.b)(_e=>function Ai(Bt,At,Lt,Xt){const qt=Bt.routeConfig,re=Bt._resolve;return void 0!==qt?.title&&!In(qt)&&(re[at]=qt.title),function Zi(Bt,At,Lt,Xt){const qt=function ln(Bt){return[...Object.keys(Bt),...Object.getOwnPropertySymbols(Bt)]}(Bt);if(0===qt.length)return(0,Y.of)({});const re={};return(0,t.D)(qt).pipe((0,v.z)(_e=>function mn(Bt,At,Lt,Xt){const qt=hr(At)??Xt,re=Fn(Bt,qt),_e=re.resolve?re.resolve(At,Lt):qt.runInContext(()=>re(At,Lt));return Dt(_e)}(Bt[_e],At,Lt,Xt).pipe(b(),(0,u.b)(Ge=>{re[_e]=Ge}))),m(1),(0,X.h)(re),(0,a.K)(_e=>ha(_e)?R.E:(0,W._)(_e)))}(re,Bt,At,Xt).pipe((0,w.U)(_e=>(Bt._resolvedData=_e,Bt.data=xr(Bt,Lt).resolve,qt&&In(qt)&&(Bt.data[at]=qt.title),null)))}(_e.route,Xt,Bt,At)),(0,u.b)(()=>re++),m(1),(0,v.z)(_e=>re===qt.length?(0,Y.of)(Lt):R.E))})}function In(Bt){return"string"==typeof Bt.title||null===Bt.title}function wn(Bt){return(0,T.w)(At=>{const Lt=Bt(At);return Lt?(0,t.D)(Lt).pipe((0,w.U)(()=>At)):(0,Y.of)(At)})}const Xn=new pt.InjectionToken("ROUTES");class rs{constructor(At,Lt){this.injector=At,this.compiler=Lt,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(At){if(this.componentLoaders.get(At))return this.componentLoaders.get(At);if(At._loadedComponent)return(0,Y.of)(At._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(At);const Lt=Dt(At.loadComponent()).pipe((0,w.U)(Ds),(0,u.b)(qt=>{this.onLoadEndListener&&this.onLoadEndListener(At),At._loadedComponent=qt}),it(()=>{this.componentLoaders.delete(At)})),Xt=new P.c(Lt,()=>new k.x).pipe((0,rt.x)());return this.componentLoaders.set(At,Xt),Xt}loadChildren(At,Lt){if(this.childrenLoaders.get(Lt))return this.childrenLoaders.get(Lt);if(Lt._loadedRoutes)return(0,Y.of)({routes:Lt._loadedRoutes,injector:Lt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Lt);const qt=this.loadModuleFactoryOrRoutes(Lt.loadChildren).pipe((0,w.U)(_e=>{this.onLoadEndListener&&this.onLoadEndListener(Lt);let Ge,yi,Ei=!1;Array.isArray(_e)?(yi=_e,Ei=!0):(Ge=_e.create(At).injector,yi=mt(Ge.get(Xn,[],pt.InjectFlags.Self|pt.InjectFlags.Optional)));const yn=yi.map(vr);return{routes:yn,injector:Ge}}),it(()=>{this.childrenLoaders.delete(Lt)})),re=new P.c(qt,()=>new k.x).pipe((0,rt.x)());return this.childrenLoaders.set(Lt,re),re}loadModuleFactoryOrRoutes(At){return(this.injector,null)||Dt(At()).pipe((0,w.U)(Ds),(0,v.z)(Xt=>Xt instanceof pt.NgModuleFactory||Array.isArray(Xt)?(0,Y.of)(Xt):(0,t.D)(this.compiler.compileModuleAsync(Xt))))}}function Ds(Bt){return function yo(Bt){return Bt&&"object"==typeof Bt&&"default"in Bt}(Bt)?Bt.default:Bt}rs.\u0275fac=function(At){return new(At||rs)(pt.\u0275\u0275inject(pt.Injector),pt.\u0275\u0275inject(pt.Compiler))},rs.\u0275prov=pt.\u0275\u0275defineInjectable({token:rs,factory:rs.\u0275fac,providedIn:"root"});class ss{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new k.x,this.configLoader=(0,pt.inject)(rs),this.environmentInjector=(0,pt.inject)(pt.EnvironmentInjector),this.urlSerializer=(0,pt.inject)(He),this.rootContexts=(0,pt.inject)(ir),this.navigationId=0,this.afterPreactivation=()=>(0,Y.of)(void 0),this.rootComponentType=null;this.configLoader.onLoadEndListener=Xt=>this.events.next(new Mi(Xt)),this.configLoader.onLoadStartListener=Xt=>this.events.next(new mi(Xt))}complete(){this.transitions?.complete()}handleNavigationRequest(At){const Lt=++this.navigationId;this.transitions?.next({...this.transitions.value,...At,id:Lt})}setupNavigations(At){return this.transitions=new q.X({id:0,targetPageId:0,currentUrlTree:At.currentUrlTree,currentRawUrl:At.currentUrlTree,extractedUrl:At.urlHandlingStrategy.extract(At.currentUrlTree),urlAfterRedirects:At.urlHandlingStrategy.extract(At.currentUrlTree),rawUrl:At.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ci,restoredState:null,currentSnapshot:At.routerState.snapshot,targetSnapshot:null,currentRouterState:At.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,g.h)(Lt=>0!==Lt.id),(0,w.U)(Lt=>({...Lt,extractedUrl:At.urlHandlingStrategy.extract(Lt.rawUrl)})),(0,T.w)(Lt=>{let Xt=!1,qt=!1;return(0,Y.of)(Lt).pipe((0,u.b)(re=>{this.currentNavigation={id:re.id,initialUrl:re.rawUrl,extractedUrl:re.extractedUrl,trigger:re.source,extras:re.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,T.w)(re=>{const _e=At.browserUrlTree.toString(),Ge=!At.navigated||re.extractedUrl.toString()!==_e||_e!==At.currentUrlTree.toString(),yi=re.extras.onSameUrlNavigation??At.onSameUrlNavigation;if(!Ge&&"reload"!==yi){const Ei="";return this.events.next(new Re(re.id,At.serializeUrl(Lt.rawUrl),Ei,0)),At.rawUrlTree=re.rawUrl,re.resolve(null),R.E}if(At.urlHandlingStrategy.shouldProcessUrl(re.rawUrl))return jo(re.source)&&(At.browserUrlTree=re.extractedUrl),(0,Y.of)(re).pipe((0,T.w)(Ei=>{const yn=this.transitions?.getValue();return this.events.next(new ai(Ei.id,this.urlSerializer.serialize(Ei.extractedUrl),Ei.source,Ei.restoredState)),yn!==this.transitions?.getValue()?R.E:Promise.resolve(Ei)}),Xh(this.environmentInjector,this.configLoader,this.urlSerializer,At.config),(0,u.b)(Ei=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ei.urlAfterRedirects},Lt.urlAfterRedirects=Ei.urlAfterRedirects}),function Ve(Bt,At,Lt,Xt,qt){return(0,v.z)(re=>Il(Bt,At,Lt,re.urlAfterRedirects,Xt.serialize(re.urlAfterRedirects),Xt,qt).pipe((0,w.U)(_e=>({...re,targetSnapshot:_e}))))}(this.environmentInjector,this.rootComponentType,At.config,this.urlSerializer,At.paramsInheritanceStrategy),(0,u.b)(Ei=>{if(Lt.targetSnapshot=Ei.targetSnapshot,"eager"===At.urlUpdateStrategy){if(!Ei.extras.skipLocationChange){const _r=At.urlHandlingStrategy.merge(Ei.urlAfterRedirects,Ei.rawUrl);At.setBrowserUrl(_r,Ei)}At.browserUrlTree=Ei.urlAfterRedirects}const yn=new oe(Ei.id,this.urlSerializer.serialize(Ei.extractedUrl),this.urlSerializer.serialize(Ei.urlAfterRedirects),Ei.targetSnapshot);this.events.next(yn)}));if(Ge&&At.urlHandlingStrategy.shouldProcessUrl(At.rawUrlTree)){const{id:Ei,extractedUrl:yn,source:_r,restoredState:Wn,extras:Ts}=re,as=new ai(Ei,this.urlSerializer.serialize(yn),_r,Wn);this.events.next(as);const Xo=je(yn,this.rootComponentType).snapshot;return Lt={...re,targetSnapshot:Xo,urlAfterRedirects:yn,extras:{...Ts,skipLocationChange:!1,replaceUrl:!1}},(0,Y.of)(Lt)}{const Ei="";return this.events.next(new Re(re.id,At.serializeUrl(Lt.extractedUrl),Ei,1)),At.rawUrlTree=re.rawUrl,re.resolve(null),R.E}}),(0,u.b)(re=>{const _e=new fe(re.id,this.urlSerializer.serialize(re.extractedUrl),this.urlSerializer.serialize(re.urlAfterRedirects),re.targetSnapshot);this.events.next(_e)}),(0,w.U)(re=>Lt={...re,guards:Rr(re.targetSnapshot,re.currentSnapshot,this.rootContexts)}),pi(this.environmentInjector,re=>this.events.next(re)),(0,u.b)(re=>{if(Lt.guardsResult=re.guardsResult,di(re.guardsResult))throw Oa(this.urlSerializer,re.guardsResult);const _e=new ve(re.id,this.urlSerializer.serialize(re.extractedUrl),this.urlSerializer.serialize(re.urlAfterRedirects),re.targetSnapshot,!!re.guardsResult);this.events.next(_e)}),(0,g.h)(re=>!!re.guardsResult||(At.restoreHistory(re),this.cancelNavigationTransition(re,"",3),!1)),wn(re=>{if(re.guards.canActivateChecks.length)return(0,Y.of)(re).pipe((0,u.b)(_e=>{const Ge=new qe(_e.id,this.urlSerializer.serialize(_e.extractedUrl),this.urlSerializer.serialize(_e.urlAfterRedirects),_e.targetSnapshot);this.events.next(Ge)}),(0,T.w)(_e=>{let Ge=!1;return(0,Y.of)(_e).pipe(ni(At.paramsInheritanceStrategy,this.environmentInjector),(0,u.b)({next:()=>Ge=!0,complete:()=>{Ge||(At.restoreHistory(_e),this.cancelNavigationTransition(_e,"",2))}}))}),(0,u.b)(_e=>{const Ge=new ti(_e.id,this.urlSerializer.serialize(_e.extractedUrl),this.urlSerializer.serialize(_e.urlAfterRedirects),_e.targetSnapshot);this.events.next(Ge)}))}),wn(re=>{const _e=Ge=>{const yi=[];Ge.routeConfig?.loadComponent&&!Ge.routeConfig._loadedComponent&&yi.push(this.configLoader.loadComponent(Ge.routeConfig).pipe((0,u.b)(Ei=>{Ge.component=Ei}),(0,w.U)(()=>{})));for(const Ei of Ge.children)yi.push(..._e(Ei));return yi};return(0,U.a)(_e(re.targetSnapshot.root)).pipe(j(),(0,y.q)(1))}),wn(()=>this.afterPreactivation()),(0,w.U)(re=>{const _e=function la(Bt,At,Lt){const Xt=is(Bt,At._root,Lt?Lt._root:void 0);return new Ln(Xt,At)}(At.routeReuseStrategy,re.targetSnapshot,re.currentRouterState);return Lt={...re,targetRouterState:_e}}),(0,u.b)(re=>{At.currentUrlTree=re.urlAfterRedirects,At.rawUrlTree=At.urlHandlingStrategy.merge(re.urlAfterRedirects,re.rawUrl),At.routerState=re.targetRouterState,"deferred"===At.urlUpdateStrategy&&(re.extras.skipLocationChange||At.setBrowserUrl(At.rawUrlTree,re),At.browserUrlTree=re.urlAfterRedirects)}),((Bt,At,Lt)=>(0,w.U)(Xt=>(new Lr(At,Xt.targetRouterState,Xt.currentRouterState,Lt).activate(Bt),Xt)))(this.rootContexts,At.routeReuseStrategy,re=>this.events.next(re)),(0,u.b)({next:re=>{Xt=!0,this.lastSuccessfulNavigation=this.currentNavigation,At.navigated=!0,this.events.next(new Je(re.id,this.urlSerializer.serialize(re.extractedUrl),this.urlSerializer.serialize(At.currentUrlTree))),At.titleStrategy?.updateTitle(re.targetRouterState.snapshot),re.resolve(!0)},complete:()=>{Xt=!0}}),it(()=>{if(!Xt&&!qt){const re="";this.cancelNavigationTransition(Lt,re,1)}this.currentNavigation?.id===Lt.id&&(this.currentNavigation=null)}),(0,a.K)(re=>{if(qt=!0,hs(re)){ca(re)||(At.navigated=!0,At.restoreHistory(Lt,!0));const _e=new Di(Lt.id,this.urlSerializer.serialize(Lt.extractedUrl),re.message,re.cancellationCode);if(this.events.next(_e),ca(re)){const Ge=At.urlHandlingStrategy.merge(re.url,At.rawUrlTree),yi={skipLocationChange:Lt.extras.skipLocationChange,replaceUrl:"eager"===At.urlUpdateStrategy||jo(Lt.source)};At.scheduleNavigation(Ge,ci,null,yi,{resolve:Lt.resolve,reject:Lt.reject,promise:Lt.promise})}else Lt.resolve(!1)}else{At.restoreHistory(Lt,!0);const _e=new Vt(Lt.id,this.urlSerializer.serialize(Lt.extractedUrl),re,Lt.targetSnapshot??void 0);this.events.next(_e);try{Lt.resolve(At.errorHandler(re))}catch(Ge){Lt.reject(Ge)}}return R.E}))}))}cancelNavigationTransition(At,Lt,Xt){const qt=new Di(At.id,this.urlSerializer.serialize(At.extractedUrl),Lt,Xt);this.events.next(qt),At.resolve(!1)}}function jo(Bt){return Bt!==ci}ss.\u0275fac=function(At){return new(At||ss)},ss.\u0275prov=pt.\u0275\u0275defineInjectable({token:ss,factory:ss.\u0275fac,providedIn:"root"});class Vr{buildTitle(At){let Lt,Xt=At.root;for(;void 0!==Xt;)Lt=this.getResolvedTitleForRoute(Xt)??Lt,Xt=Xt.children.find(qt=>qt.outlet===et);return Lt}getResolvedTitleForRoute(At){return At.data[at]}}Vr.\u0275fac=function(At){return new(At||Vr)},Vr.\u0275prov=pt.\u0275\u0275defineInjectable({token:Vr,factory:function(){return(0,pt.inject)(pa)},providedIn:"root"});class pa extends Vr{constructor(At){super(),this.title=At}updateTitle(At){const Lt=this.buildTitle(At);void 0!==Lt&&this.title.setTitle(Lt)}}pa.\u0275fac=function(At){return new(At||pa)(pt.\u0275\u0275inject(z.Title))},pa.\u0275prov=pt.\u0275\u0275defineInjectable({token:pa,factory:pa.\u0275fac,providedIn:"root"});class rl{}rl.\u0275fac=function(At){return new(At||rl)},rl.\u0275prov=pt.\u0275\u0275defineInjectable({token:rl,factory:function(){return(0,pt.inject)(fa)},providedIn:"root"});class rc{shouldDetach(At){return!1}store(At,Lt){}shouldAttach(At){return!1}retrieve(At){return null}shouldReuseRoute(At,Lt){return At.routeConfig===Lt.routeConfig}}class fa extends rc{}fa.\u0275fac=function(){let Bt;return function(Lt){return(Bt||(Bt=pt.\u0275\u0275getInheritedFactory(fa)))(Lt||fa)}}(),fa.\u0275prov=pt.\u0275\u0275defineInjectable({token:fa,factory:fa.\u0275fac,providedIn:"root"});const _o=new pt.InjectionToken("",{providedIn:"root",factory:()=>({})});class ga{}ga.\u0275fac=function(At){return new(At||ga)},ga.\u0275prov=pt.\u0275\u0275defineInjectable({token:ga,factory:function(){return(0,pt.inject)(sc)},providedIn:"root"});class sc{shouldProcessUrl(At){return!0}extract(At){return At}merge(At,Lt){return At}}sc.\u0275fac=function(At){return new(At||sc)},sc.\u0275prov=pt.\u0275\u0275defineInjectable({token:sc,factory:sc.\u0275fac,providedIn:"root"});function Zh(Bt){throw Bt}function gp(Bt,At,Lt){return At.parse("/")}const Vo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},sl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};class ar{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,pt.inject)(pt.\u0275Console),this.isNgZoneEnabled=!1,this.options=(0,pt.inject)(_o,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Zh,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||gp,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,pt.inject)(ga),this.routeReuseStrategy=(0,pt.inject)(rl),this.urlCreationStrategy=(0,pt.inject)(Ci),this.titleStrategy=(0,pt.inject)(Vr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=mt((0,pt.inject)(Xn,{optional:!0})??[]),this.navigationTransitions=(0,pt.inject)(ss),this.urlSerializer=(0,pt.inject)(He),this.location=(0,pt.inject)(E.Location),this.isNgZoneEnabled=(0,pt.inject)(pt.NgZone)instanceof pt.NgZone&&pt.NgZone.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=je(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(At=>{this.lastSuccessfulId=At.id,this.currentPageId=At.targetPageId},At=>{this.console.warn(`Unhandled Navigation Error: ${At}`)})}resetRootComponentType(At){this.routerState.root.component=At,this.navigationTransitions.rootComponentType=At}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const At=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ci,At)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(At=>{const Lt="popstate"===At.type?"popstate":"hashchange";"popstate"===Lt&&setTimeout(()=>{this.navigateToSyncWithBrowser(At.url,Lt,At.state)},0)}))}navigateToSyncWithBrowser(At,Lt,Xt){const qt={replaceUrl:!0},re=Xt?.navigationId?Xt:null;if(Xt){const Ge={...Xt};delete Ge.navigationId,delete Ge.\u0275routerPageId,0!==Object.keys(Ge).length&&(qt.state=Ge)}const _e=this.parseUrl(At);this.scheduleNavigation(_e,Lt,re,qt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(At){this.config=At.map(vr),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(At,Lt={}){const{relativeTo:Xt,queryParams:qt,fragment:re,queryParamsHandling:_e,preserveFragment:Ge}=Lt,yi=Ge?this.currentUrlTree.fragment:re;let Ei=null;switch(_e){case"merge":Ei={...this.currentUrlTree.queryParams,...qt};break;case"preserve":Ei=this.currentUrlTree.queryParams;break;default:Ei=qt||null}return null!==Ei&&(Ei=this.removeEmptyProps(Ei)),this.urlCreationStrategy.createUrlTree(Xt,this.routerState,this.currentUrlTree,At,Ei,yi??null)}navigateByUrl(At,Lt={skipLocationChange:!1}){const Xt=di(At)?At:this.parseUrl(At),qt=this.urlHandlingStrategy.merge(Xt,this.rawUrlTree);return this.scheduleNavigation(qt,ci,null,Lt)}navigate(At,Lt={skipLocationChange:!1}){return function ol(Bt){for(let At=0;At{const qt=At[Xt];return null!=qt&&(Lt[Xt]=qt),Lt},{})}scheduleNavigation(At,Lt,Xt,qt,re){if(this.disposed)return Promise.resolve(!1);let _e,Ge,yi,Ei;return re?(_e=re.resolve,Ge=re.reject,yi=re.promise):yi=new Promise((yn,_r)=>{_e=yn,Ge=_r}),Ei="computed"===this.canceledNavigationResolution?Xt&&Xt.\u0275routerPageId?Xt.\u0275routerPageId:qt.replaceUrl||qt.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:Ei,source:Lt,restoredState:Xt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:At,extras:qt,resolve:_e,reject:Ge,promise:yi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),yi.catch(yn=>Promise.reject(yn))}setBrowserUrl(At,Lt){const Xt=this.urlSerializer.serialize(At),qt={...Lt.extras.state,...this.generateNgRouterState(Lt.id,Lt.targetPageId)};this.location.isCurrentPathEqualTo(Xt)||Lt.extras.replaceUrl?this.location.replaceState(Xt,"",qt):this.location.go(Xt,"",qt)}restoreHistory(At,Lt=!1){if("computed"===this.canceledNavigationResolution){const Xt=this.currentPageId-At.targetPageId;"popstate"!==At.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===Xt?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Xt&&(this.resetState(At),this.browserUrlTree=At.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Xt)}else"replace"===this.canceledNavigationResolution&&(Lt&&this.resetState(At),this.resetUrlToCurrentUrlTree())}resetState(At){this.routerState=At.currentRouterState,this.currentUrlTree=At.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,At.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(At,Lt){return"computed"===this.canceledNavigationResolution?{navigationId:At,\u0275routerPageId:Lt}:{navigationId:At}}}ar.\u0275fac=function(At){return new(At||ar)},ar.\u0275prov=pt.\u0275\u0275defineInjectable({token:ar,factory:ar.\u0275fac,providedIn:"root"});class yr{constructor(At,Lt,Xt,qt,re,_e){this.router=At,this.route=Lt,this.tabIndexAttribute=Xt,this.renderer=qt,this.el=re,this.locationStrategy=_e,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new k.x;const Ge=re.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Ge||"area"===Ge,this.isAnchorElement?this.subscription=At.events.subscribe(yi=>{yi instanceof Je&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(At){this._preserveFragment=(0,pt.\u0275coerceToBoolean)(At)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(At){this._skipLocationChange=(0,pt.\u0275coerceToBoolean)(At)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(At){this._replaceUrl=(0,pt.\u0275coerceToBoolean)(At)}get replaceUrl(){return this._replaceUrl}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,Lt,Xt,qt,re){if(null===this.urlTree||this.isAnchorElement&&(0!==At||Lt||Xt||qt||re||"string"==typeof this.target&&"_self"!=this.target))return!0;const _e={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,_e),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const At=null===this.href?null:(0,pt.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",At)}applyAttributeValue(At,Lt){const Xt=this.renderer,qt=this.el.nativeElement;null!==Lt?Xt.setAttribute(qt,At,Lt):Xt.removeAttribute(qt,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})}}yr.\u0275fac=function(At){return new(At||yr)(pt.\u0275\u0275directiveInject(ar),pt.\u0275\u0275directiveInject(gn),pt.\u0275\u0275injectAttribute("tabindex"),pt.\u0275\u0275directiveInject(pt.Renderer2),pt.\u0275\u0275directiveInject(pt.ElementRef),pt.\u0275\u0275directiveInject(E.LocationStrategy))},yr.\u0275dir=pt.\u0275\u0275defineDirective({type:yr,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(At,Lt){1&At&&pt.\u0275\u0275listener("click",function(qt){return Lt.onClick(qt.button,qt.ctrlKey,qt.shiftKey,qt.altKey,qt.metaKey)}),2&At&&pt.\u0275\u0275attribute("target",Lt.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[pt.\u0275\u0275NgOnChangesFeature]});class xo{get isActive(){return this._isActive}constructor(At,Lt,Xt,qt,re){this.router=At,this.element=Lt,this.renderer=Xt,this.cdr=qt,this.link=re,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new pt.EventEmitter,this.routerEventsSubscription=At.events.subscribe(_e=>{_e instanceof Je&&this.update()})}ngAfterContentInit(){(0,Y.of)(this.links.changes,(0,Y.of)(null)).pipe((0,L.J)()).subscribe(At=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const At=[...this.links.toArray(),this.link].filter(Lt=>!!Lt).map(Lt=>Lt.onChanges);this.linkInputChangesSubscription=(0,t.D)(At).pipe((0,L.J)()).subscribe(Lt=>{this._isActive!==this.isLinkActive(this.router)(Lt)&&this.update()})}set routerLinkActive(At){const Lt=Array.isArray(At)?At:At.split(" ");this.classes=Lt.filter(Xt=>!!Xt)}ngOnChanges(At){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const At=this.hasActiveLinks();this._isActive!==At&&(this._isActive=At,this.cdr.markForCheck(),this.classes.forEach(Lt=>{At?this.renderer.addClass(this.element.nativeElement,Lt):this.renderer.removeClass(this.element.nativeElement,Lt)}),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.isActiveChange.emit(At))})}isLinkActive(At){const Lt=function qh(Bt){return!!Bt.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Xt=>!!Xt.urlTree&&At.isActive(Xt.urlTree,Lt)}hasActiveLinks(){const At=this.isLinkActive(this.router);return this.link&&At(this.link)||this.links.some(At)}}xo.\u0275fac=function(At){return new(At||xo)(pt.\u0275\u0275directiveInject(ar),pt.\u0275\u0275directiveInject(pt.ElementRef),pt.\u0275\u0275directiveInject(pt.Renderer2),pt.\u0275\u0275directiveInject(pt.ChangeDetectorRef),pt.\u0275\u0275directiveInject(yr,8))},xo.\u0275dir=pt.\u0275\u0275defineDirective({type:xo,selectors:[["","routerLinkActive",""]],contentQueries:function(At,Lt,Xt){if(1&At&&pt.\u0275\u0275contentQuery(Xt,yr,5),2&At){let qt;pt.\u0275\u0275queryRefresh(qt=pt.\u0275\u0275loadQuery())&&(Lt.links=qt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[pt.\u0275\u0275NgOnChangesFeature]});class oc{}class al{preload(At,Lt){return Lt().pipe((0,a.K)(()=>(0,Y.of)(null)))}}al.\u0275fac=function(At){return new(At||al)},al.\u0275prov=pt.\u0275\u0275defineInjectable({token:al,factory:al.\u0275fac,providedIn:"root"});class er{preload(At,Lt){return(0,Y.of)(null)}}er.\u0275fac=function(At){return new(At||er)},er.\u0275prov=pt.\u0275\u0275defineInjectable({token:er,factory:er.\u0275fac,providedIn:"root"});class Fa{constructor(At,Lt,Xt,qt,re){this.router=At,this.injector=Xt,this.preloadingStrategy=qt,this.loader=re}setUpPreloading(){this.subscription=this.router.events.pipe((0,g.h)(At=>At instanceof Je),(0,d.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(At,Lt){const Xt=[];for(const qt of Lt){qt.providers&&!qt._injector&&(qt._injector=(0,pt.createEnvironmentInjector)(qt.providers,At,`Route: ${qt.path}`));const re=qt._injector??At,_e=qt._loadedInjector??re;qt.loadChildren&&!qt._loadedRoutes&&void 0===qt.canLoad||qt.loadComponent&&!qt._loadedComponent?Xt.push(this.preloadConfig(re,qt)):(qt.children||qt._loadedRoutes)&&Xt.push(this.processRoutes(_e,qt.children??qt._loadedRoutes))}return(0,t.D)(Xt).pipe((0,L.J)())}preloadConfig(At,Lt){return this.preloadingStrategy.preload(Lt,()=>{let Xt;Xt=Lt.loadChildren&&void 0===Lt.canLoad?this.loader.loadChildren(At,Lt):(0,Y.of)(null);const qt=Xt.pipe((0,v.z)(re=>null===re?(0,Y.of)(void 0):(Lt._loadedRoutes=re.routes,Lt._loadedInjector=re.injector,this.processRoutes(re.injector??At,re.routes))));if(Lt.loadComponent&&!Lt._loadedComponent){const re=this.loader.loadComponent(Lt);return(0,t.D)([qt,re]).pipe((0,L.J)())}return qt})}}Fa.\u0275fac=function(At){return new(At||Fa)(pt.\u0275\u0275inject(ar),pt.\u0275\u0275inject(pt.Compiler),pt.\u0275\u0275inject(pt.EnvironmentInjector),pt.\u0275\u0275inject(oc),pt.\u0275\u0275inject(rs))},Fa.\u0275prov=pt.\u0275\u0275defineInjectable({token:Fa,factory:Fa.\u0275fac,providedIn:"root"});const zo=new pt.InjectionToken("");class ma{constructor(At,Lt,Xt,qt,re={}){this.urlSerializer=At,this.transitions=Lt,this.viewportScroller=Xt,this.zone=qt,this.options=re,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},re.scrollPositionRestoration=re.scrollPositionRestoration||"disabled",re.anchorScrolling=re.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 ai?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=At.navigationTrigger,this.restoredId=At.restoredState?At.restoredState.navigationId:0):At instanceof Je&&(this.lastId=At.id,this.scheduleScrollEvent(At,this.urlSerializer.parse(At.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(At=>{At instanceof nn&&(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,Lt){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new nn(At,"popstate"===this.lastSource?this.store[this.restoredId]:null,Lt))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}ma.\u0275fac=function(At){pt.\u0275\u0275invalidFactory()},ma.\u0275prov=pt.\u0275\u0275defineInjectable({token:ma,factory:ma.\u0275fac});function Na(Bt,...At){return(0,pt.makeEnvironmentProviders)([{provide:Xn,multi:!0,useValue:Bt},[],{provide:gn,useFactory:Qh,deps:[ar]},{provide:pt.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:qr},At.map(Lt=>Lt.\u0275providers)])}function Qh(Bt){return Bt.routerState.root}function va(Bt,At){return{\u0275kind:Bt,\u0275providers:At}}const eh=new pt.InjectionToken("",{providedIn:"root",factory:()=>!1});pt.ENVIRONMENT_INITIALIZER;function ih(Bt){return[{provide:Xn,multi:!0,useValue:Bt},[]]}function Xs(Bt={}){return va(4,[{provide:zo,useFactory:()=>{const Lt=(0,pt.inject)(E.ViewportScroller),Xt=(0,pt.inject)(pt.NgZone),qt=(0,pt.inject)(ss),re=(0,pt.inject)(He);return new ma(re,qt,Lt,Xt,Bt)}}])}function qr(){const Bt=(0,pt.inject)(pt.Injector);return At=>{const Lt=Bt.get(pt.ApplicationRef);if(At!==Lt.components[0])return;const Xt=Bt.get(ar),qt=Bt.get(ur);1===Bt.get(Wo)&&Xt.initialNavigation(),Bt.get($s,null,pt.InjectFlags.Optional)?.setUpPreloading(),Bt.get(zo,null,pt.InjectFlags.Optional)?.init(),Xt.resetRootComponentType(Lt.componentTypes[0]),qt.closed||(qt.next(),qt.unsubscribe())}}const ur=new pt.InjectionToken("",{factory:()=>new k.x}),Wo=new pt.InjectionToken("",{providedIn:"root",factory:()=>1});function Ho(){return va(2,[{provide:Wo,useValue:0},{provide:pt.APP_INITIALIZER,multi:!0,deps:[pt.Injector],useFactory:At=>{const Lt=At.get(E.LOCATION_INITIALIZED,Promise.resolve());return()=>Lt.then(()=>new Promise(qt=>{const re=At.get(ar),_e=At.get(ur);(function Xt(qt){At.get(ar).events.pipe((0,g.h)(_e=>_e instanceof Je||_e instanceof Di||_e instanceof Vt),(0,w.U)(_e=>_e instanceof Je||_e instanceof Di&&(0===_e.code||1===_e.code)&&null),(0,g.h)(_e=>null!==_e),(0,y.q)(1)).subscribe(()=>{qt()})})(()=>{qt(!0)}),At.get(ss).afterPreactivation=()=>(qt(!0),_e.closed?(0,Y.of)(void 0):_e),re.initialNavigation()}))}}])}function Co(){return va(3,[{provide:pt.APP_INITIALIZER,multi:!0,useFactory:()=>{const At=(0,pt.inject)(ar);return()=>{At.setUpLocationChangeListener()}}},{provide:Wo,useValue:2}])}function no(){let Bt=[];return Bt=[],va(1,Bt)}const $s=new pt.InjectionToken("");function Ks(Bt){return va(0,[{provide:$s,useExisting:Fa},{provide:oc,useExisting:Bt}])}function ya(Bt){return va(5,[{provide:_o,useValue:Bt}])}function As(){return va(5,[{provide:E.LocationStrategy,useClass:E.HashLocationStrategy}])}const Bn=new pt.InjectionToken("ROUTER_FORROOT_GUARD"),_a=[E.Location,{provide:He,useClass:ze},ar,ir,{provide:gn,useFactory:Qh,deps:[ar]},rs,[]];function Go(){return new pt.NgProbeToken("Router",ar)}class br{constructor(At){}static forRoot(At,Lt){return{ngModule:br,providers:[_a,[],{provide:Xn,multi:!0,useValue:At},{provide:Bn,useFactory:ro,deps:[[ar,new pt.Optional,new pt.SkipSelf]]},{provide:_o,useValue:Lt||{}},Lt?.useHash?{provide:E.LocationStrategy,useClass:E.HashLocationStrategy}:{provide:E.LocationStrategy,useClass:E.PathLocationStrategy},{provide:zo,useFactory:()=>{const Bt=(0,pt.inject)(E.ViewportScroller),At=(0,pt.inject)(pt.NgZone),Lt=(0,pt.inject)(_o),Xt=(0,pt.inject)(ss),qt=(0,pt.inject)(He);return Lt.scrollOffset&&Bt.setOffset(Lt.scrollOffset),new ma(qt,Xt,Bt,At,Lt)}},Lt?.preloadingStrategy?Ks(Lt.preloadingStrategy).\u0275providers:[],{provide:pt.NgProbeToken,multi:!0,useFactory:Go},Lt?.initialNavigation?(Bt=Lt,["disabled"===Bt.initialNavigation?Co().\u0275providers:[],"enabledBlocking"===Bt.initialNavigation?Ho().\u0275providers:[]]):[],[{provide:zr,useFactory:qr},{provide:pt.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:zr}]]};var Bt}static forChild(At){return{ngModule:br,providers:[{provide:Xn,multi:!0,useValue:At}]}}}function ro(Bt){return"guarded"}br.\u0275fac=function(At){return new(At||br)(pt.\u0275\u0275inject(Bn,8))},br.\u0275mod=pt.\u0275\u0275defineNgModule({type:br}),br.\u0275inj=pt.\u0275\u0275defineInjector({imports:[mr]});const zr=new pt.InjectionToken("");const $n=new pt.Version("15.1.3")},9583:(Jt,$t,ht)=>{"use strict";ht.d($t,{IM:()=>jt,IX:()=>_t,KY:()=>g,rd:()=>j,sm:()=>d,tQ:()=>A});var pt=ht(6895),t=ht(1571),Y=ht(7579),q=ht(8372),O=ht(2722),U=ht(3900),G=ht(5963);function Z(xt,ft){if(1&xt&&t.\u0275\u0275element(0,"div",3),2&xt){const Ct=ft.index,Ot=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngStyle",Ot.gridRenderer.getGridColumnStyle(Ct))}}function $(xt,ft){if(1&xt&&t.\u0275\u0275element(0,"div",4),2&xt){const Ct=ft.index,Ot=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngStyle",Ot.gridRenderer.getGridRowStyle(Ct))}}const W=["*"];function V(xt,ft){if(1&xt){const Ct=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("mousedown",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))})("touchstart",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))}),t.\u0275\u0275elementEnd()}}function R(xt,ft){if(1&xt){const Ct=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",9),t.\u0275\u0275listener("mousedown",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))})("touchstart",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))}),t.\u0275\u0275elementEnd()}}function P(xt,ft){if(1&xt){const Ct=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",10),t.\u0275\u0275listener("mousedown",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))})("touchstart",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))}),t.\u0275\u0275elementEnd()}}function k(xt,ft){if(1&xt){const Ct=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",11),t.\u0275\u0275listener("mousedown",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))})("touchstart",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))}),t.\u0275\u0275elementEnd()}}function E(xt,ft){if(1&xt){const Ct=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275listener("mousedown",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))})("touchstart",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))}),t.\u0275\u0275elementEnd()}}function w(xt,ft){if(1&xt){const Ct=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",13),t.\u0275\u0275listener("mousedown",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))})("touchstart",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))}),t.\u0275\u0275elementEnd()}}function T(xt,ft){if(1&xt){const Ct=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",14),t.\u0275\u0275listener("mousedown",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))})("touchstart",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))}),t.\u0275\u0275elementEnd()}}function y(xt,ft){if(1&xt){const Ct=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",15),t.\u0275\u0275listener("mousedown",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))})("touchstart",function(Rt){t.\u0275\u0275restoreView(Ct);const Zt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Zt.resize.dragStartDelay(Rt))}),t.\u0275\u0275elementEnd()}}var A,xt,g,v,S;(xt=A||(A={})).Fit="fit",xt.ScrollVertical="scrollVertical",xt.ScrollHorizontal="scrollHorizontal",xt.Fixed="fixed",xt.VerticalFixed="verticalFixed",xt.HorizontalFixed="horizontalFixed",function(xt){xt.Always="always",xt.OnDragAndResize="onDrag&Resize",xt.None="none"}(g||(g={})),function(xt){xt.None="none",xt.CompactUp="compactUp",xt.CompactLeft="compactLeft",xt.CompactUpAndLeft="compactUp&Left",xt.CompactLeftAndUp="compactLeft&Up",xt.CompactRight="compactRight",xt.CompactUpAndRight="compactUp&Right",xt.CompactRightAndUp="compactRight&Up",xt.CompactDown="compactDown",xt.CompactDownAndLeft="compactDown&Left",xt.CompactLeftAndDown="compactLeft&Down",xt.CompactDownAndRight="compactDown&Right",xt.CompactRightAndDown="compactRight&Down"}(v||(v={})),function(xt){xt.LTR="ltr",xt.RTL="rtl"}(S||(S={}));class N{constructor(ft){this.gridster=ft}destroy(){this.gridster=null}checkCompact(){this.gridster.$options.compactType!==v.None&&(this.gridster.$options.compactType===v.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===v.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===v.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===v.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===v.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===v.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===v.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===v.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===v.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===v.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===v.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===v.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(ft){this.gridster.$options.compactType!==v.None&&(this.gridster.$options.compactType===v.CompactUp?this.moveTillCollision(ft,"y",-1):this.gridster.$options.compactType===v.CompactLeft?this.moveTillCollision(ft,"x",-1):this.gridster.$options.compactType===v.CompactUpAndLeft?(this.moveTillCollision(ft,"y",-1),this.moveTillCollision(ft,"x",-1)):this.gridster.$options.compactType===v.CompactLeftAndUp?(this.moveTillCollision(ft,"x",-1),this.moveTillCollision(ft,"y",-1)):this.gridster.$options.compactType===v.CompactUpAndRight?(this.moveTillCollision(ft,"y",-1),this.moveTillCollision(ft,"x",1)):this.gridster.$options.compactType===v.CompactDown?this.moveTillCollision(ft,"y",1):this.gridster.$options.compactType===v.CompactDownAndLeft?(this.moveTillCollision(ft,"y",1),this.moveTillCollision(ft,"x",-1)):this.gridster.$options.compactType===v.CompactLeftAndDown?(this.moveTillCollision(ft,"x",-1),this.moveTillCollision(ft,"y",1)):this.gridster.$options.compactType===v.CompactDownAndRight?(this.moveTillCollision(ft,"y",1),this.moveTillCollision(ft,"x",1)):this.gridster.$options.compactType===v.CompactRightAndDown&&(this.moveTillCollision(ft,"x",1),this.moveTillCollision(ft,"y",1)))}checkCompactMovement(ft,Ct){let Ot=!1;this.gridster.grid.forEach(Rt=>{!1!==Rt.$item.compactEnabled&&this.moveTillCollision(Rt.$item,ft,Ct)&&(Ot=!0,Rt.item[ft]=Rt.$item[ft],Rt.itemChanged())}),Ot&&this.checkCompact()}moveTillCollision(ft,Ct,Ot){return ft[Ct]+=Ot,this.gridster.checkCollision(ft)?(ft[Ct]-=Ot,!1):(this.moveTillCollision(ft,Ct,Ot),!0)}}const j={gridType:A.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:v.None,mobileBreakpoint:640,useBodyForBreakpoint:!1,allowMultiLayer:!1,defaultLayerIndex:0,maxLayerIndex:2,baseLayerIndex:1,minCols:1,maxCols:100,minRows:1,maxRows:100,defaultItemCols:1,defaultItemRows:1,maxItemCols:50,maxItemRows:50,minItemCols:1,minItemRows:1,minItemArea:1,maxItemArea:2500,addEmptyRowsCount:0,rowHeightRatio:1,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,scrollSensitivity:10,scrollSpeed:20,initCallback:void 0,destroyCallback:void 0,gridSizeChangedCallback:void 0,itemChangeCallback:void 0,itemResizeCallback:void 0,itemInitCallback:void 0,itemRemovedCallback:void 0,itemValidateCallback:void 0,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:void 0,emptyCellContextMenuCallback:void 0,emptyCellDropCallback:void 0,emptyCellDragCallback:void 0,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{delayStart:0,enabled:!1,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:void 0,start:void 0,dropOverItems:!1,dropOverItemsCallback:void 0},resizable:{delayStart:0,enabled:!1,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0},stop:void 0,start:void 0},swap:!0,swapWhileDragging:!1,pushItems:!1,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:g.OnDragAndResize,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,disableScrollHorizontal:!1,disableScrollVertical:!1,enableBoundaryControl:!1,disableAutoPositionOnConflict:!1,dirType:S.LTR};class M{static merge(ft,Ct,Ot){for(const Rt in Ct)void 0!==Ct[Rt]&&Ot.hasOwnProperty(Rt)&&("object"==typeof Ct[Rt]?(Rt in ft||(ft[Rt]={}),ft[Rt]=M.merge(ft[Rt],Ct[Rt],Ot[Rt])):ft[Rt]=Ct[Rt]);return ft}static checkTouchEvent(ft){void 0===ft.clientX&&ft.touches&&(ft.touches&&ft.touches.length?(ft.clientX=ft.touches[0].clientX,ft.clientY=ft.touches[0].clientY):ft.changedTouches&&ft.changedTouches.length&&(ft.clientX=ft.changedTouches[0].clientX,ft.clientY=ft.changedTouches[0].clientY))}static checkContentClassForEvent(ft,Ct){if(ft.$options.draggable.ignoreContent){if(!M.checkDragHandleClass(Ct.target,Ct.currentTarget,ft.$options.draggable.dragHandleClass,ft.$options.draggable.ignoreContentClass))return!0}else if(M.checkContentClass(Ct.target,Ct.currentTarget,ft.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(ft,Ct){return M.checkContentClass(Ct.target,Ct.currentTarget,ft.$options.draggable.ignoreContentClass)||M.checkContentClass(Ct.target,Ct.currentTarget,ft.$options.draggable.dragHandleClass)}static checkDragHandleClass(ft,Ct,Ot,Rt){if(!ft||ft===Ct)return!1;if(ft.hasAttribute("class")){const Zt=ft.getAttribute("class").split(" ");if(Zt.indexOf(Ot)>-1)return!0;if(Zt.indexOf(Rt)>-1)return!1}return M.checkDragHandleClass(ft.parentNode,Ct,Ot,Rt)}static checkContentClass(ft,Ct,Ot){return!(!ft||ft===Ct)&&(!!(ft.hasAttribute("class")&&ft.getAttribute("class").split(" ").indexOf(Ot)>-1)||M.checkContentClass(ft.parentNode,Ct,Ot))}static compareItems(ft,Ct){return ft.y>Ct.y?-1:ft.yCt.x?-1:1}}class D{constructor(ft){this.gridster=ft,this.emptyCellClickCb=Ct=>{if(!this.gridster||this.gridster.movingItem||M.checkContentClassForEmptyCellClickEvent(this.gridster,Ct))return;const Ot=this.getValidItemFromEvent(Ct);Ot&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(Ct,Ot),this.gridster.cdRef.markForCheck())},this.emptyCellContextMenuCb=Ct=>{if(this.gridster.movingItem||M.checkContentClassForEmptyCellClickEvent(this.gridster,Ct))return;Ct.preventDefault(),Ct.stopPropagation();const Ot=this.getValidItemFromEvent(Ct);Ot&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(Ct,Ot),this.gridster.cdRef.markForCheck())},this.emptyCellDragDrop=Ct=>{const Ot=this.getValidItemFromEvent(Ct);Ot&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(Ct,Ot),this.gridster.cdRef.markForCheck())},this.emptyCellDragOver=Ct=>{Ct.preventDefault(),Ct.stopPropagation();const Ot=this.getValidItemFromEvent(Ct);Ot?(Ct.dataTransfer&&(Ct.dataTransfer.dropEffect="move"),this.gridster.movingItem=Ot):(Ct.dataTransfer&&(Ct.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()},this.emptyCellMouseDown=Ct=>{if(M.checkContentClassForEmptyCellClickEvent(this.gridster,Ct))return;Ct.preventDefault(),Ct.stopPropagation();const Ot=this.getValidItemFromEvent(Ct);!Ot||1!==Ct.buttons&&!(Ct instanceof TouchEvent)||(this.initialItem=Ot,this.gridster.movingItem=Ot,this.gridster.previewStyle(),this.gridster.zone.runOutsideAngular(()=>{this.removeWindowMousemoveListenerFn=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove),this.removeWindowTouchmoveListenerFn=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove)}),this.removeWindowMouseupListenerFn=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp),this.removeWindowTouchendListenerFn=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp))},this.emptyCellMouseMove=Ct=>{Ct.preventDefault(),Ct.stopPropagation();const Ot=this.getValidItemFromEvent(Ct,this.initialItem);Ot&&(this.gridster.movingItem=Ot,this.gridster.previewStyle())},this.emptyCellMouseUp=Ct=>{this.removeWindowMousemoveListenerFn(),this.removeWindowTouchmoveListenerFn(),this.removeWindowMouseupListenerFn(),this.removeWindowTouchendListenerFn();const Ot=this.getValidItemFromEvent(Ct,this.initialItem);Ot&&(this.gridster.movingItem=Ot),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(Ct,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()}}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),this.gridster.movingItem=null,this.initialItem=this.gridster=null,this.removeDocumentDragendListenerFn&&(this.removeDocumentDragendListenerFn(),this.removeDocumentDragendListenerFn=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.removeEmptyCellClickListenerFn&&this.gridster.options.emptyCellClickCallback?(this.removeEmptyCellClickListenerFn=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb),this.removeEmptyCellTouchendListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb)):!this.gridster.$options.enableEmptyCellClick&&this.removeEmptyCellClickListenerFn&&this.removeEmptyCellTouchendListenerFn&&(this.removeEmptyCellClickListenerFn(),this.removeEmptyCellTouchendListenerFn(),this.removeEmptyCellClickListenerFn=null,this.removeEmptyCellTouchendListenerFn=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.removeEmptyCellContextMenuListenerFn&&this.gridster.options.emptyCellContextMenuCallback?this.removeEmptyCellContextMenuListenerFn=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb):!this.gridster.$options.enableEmptyCellContextMenu&&this.removeEmptyCellContextMenuListenerFn&&(this.removeEmptyCellContextMenuListenerFn(),this.removeEmptyCellContextMenuListenerFn=null),this.gridster.$options.enableEmptyCellDrop&&!this.removeEmptyCellDropListenerFn&&this.gridster.options.emptyCellDropCallback?(this.removeEmptyCellDropListenerFn=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop),this.gridster.zone.runOutsideAngular(()=>{this.removeEmptyCellDragoverListenerFn=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver)}),this.removeDocumentDragendListenerFn=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.removeEmptyCellDropListenerFn&&this.removeEmptyCellDragoverListenerFn&&this.removeDocumentDragendListenerFn&&(this.removeEmptyCellDropListenerFn(),this.removeEmptyCellDragoverListenerFn(),this.removeDocumentDragendListenerFn(),this.removeEmptyCellDragoverListenerFn=null,this.removeEmptyCellDropListenerFn=null,this.removeDocumentDragendListenerFn=null),this.gridster.$options.enableEmptyCellDrag&&!this.removeEmptyCellMousedownListenerFn&&this.gridster.options.emptyCellDragCallback?(this.removeEmptyCellMousedownListenerFn=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown),this.removeEmptyCellTouchstartListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown)):!this.gridster.$options.enableEmptyCellDrag&&this.removeEmptyCellMousedownListenerFn&&this.removeEmptyCellTouchstartListenerFn&&(this.removeEmptyCellMousedownListenerFn(),this.removeEmptyCellTouchstartListenerFn(),this.removeEmptyCellMousedownListenerFn=null,this.removeEmptyCellTouchstartListenerFn=null)}getPixelsX(ft,Ct){const Ot=this.gridster.options.scale;return Ot?(ft.clientX-Ct.left)/Ot+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():ft.clientX+this.gridster.el.scrollLeft-Ct.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(ft,Ct){const Ot=this.gridster.options.scale;return Ot?(ft.clientY-Ct.top)/Ot+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():ft.clientY+this.gridster.el.scrollTop-Ct.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(ft,Ct){ft.preventDefault(),ft.stopPropagation(),M.checkTouchEvent(ft);const Ot=this.gridster.el.getBoundingClientRect(),Rt=this.getPixelsX(ft,Ot),Zt=this.getPixelsY(ft,Ot),he={x:this.gridster.pixelsToPositionX(Rt,Math.floor,!0),y:this.gridster.pixelsToPositionY(Zt,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(Ct&&(he.cols=Math.min(Math.abs(Ct.x-he.x)+1,this.gridster.$options.emptyCellDragMaxCols),he.rows=Math.min(Math.abs(Ct.y-he.y)+1,this.gridster.$options.emptyCellDragMaxRows),Ct.xthis.gridster.$options.emptyCellDragMaxCols-1&&(he.x=this.gridster.movingItem?this.gridster.movingItem.x:0),Ct.ythis.gridster.$options.emptyCellDragMaxRows-1&&(he.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),this.gridster.$options.enableOccupiedCellDrop||!this.gridster.checkCollision(he))return he}}class I{constructor(ft){this.gridster=ft,this.lastGridColumnStyles={},this.lastGridRowStyles={}}destroy(){this.gridster=null}updateItem(ft,Ct,Ot){if(this.gridster.mobile)this.clearCellPosition(Ot,ft),this.gridster.$options.keepFixedHeightInMobile?Ot.setStyle(ft,"height",(Ct.rows-1)*this.gridster.$options.margin+Ct.rows*this.gridster.$options.fixedRowHeight+"px"):Ot.setStyle(ft,"height",Ct.rows*this.gridster.curWidth/Ct.cols+"px"),this.gridster.$options.keepFixedWidthInMobile?Ot.setStyle(ft,"width",this.gridster.$options.fixedColWidth+"px"):Ot.setStyle(ft,"width",""),Ot.setStyle(ft,"margin-bottom",this.gridster.$options.margin+"px"),Ot.setStyle(ft,S.LTR?"margin-right":"margin-left","");else{const Rt=Math.round(this.gridster.curColWidth*Ct.x),Zt=Math.round(this.gridster.curRowHeight*Ct.y),he=this.gridster.curColWidth*Ct.cols-this.gridster.$options.margin,Ie=this.gridster.curRowHeight*Ct.rows-this.gridster.$options.margin;this.setCellPosition(Ot,ft,Rt,Zt),Ot.setStyle(ft,"width",he+"px"),Ot.setStyle(ft,"height",Ie+"px");let ye=null,Ne=null;this.gridster.$options.outerMargin&&(this.gridster.rows===Ct.rows+Ct.y&&(ye=null!==this.gridster.$options.outerMarginBottom?this.gridster.$options.outerMarginBottom+"px":this.gridster.$options.margin+"px"),this.gridster.columns===Ct.cols+Ct.x&&(Ne=null!==this.gridster.$options.outerMarginBottom?this.gridster.$options.outerMarginRight+"px":this.gridster.$options.margin+"px")),Ot.setStyle(ft,"margin-bottom",ye),Ot.setStyle(ft,S.LTR?"margin-right":"margin-left",Ne)}}updateGridster(){let ft="",Ct="",Ot="",Rt="";if(this.gridster.$options.gridType===A.Fit)ft=A.Fit,Ct=A.ScrollVertical,Ot=A.ScrollHorizontal,Rt=A.Fixed;else if(this.gridster.$options.gridType===A.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,ft=A.ScrollVertical,Ct=A.Fit,Ot=A.ScrollHorizontal,Rt=A.Fixed;else if(this.gridster.$options.gridType===A.ScrollHorizontal){const Zt=this.gridster.$options.rowHeightRatio,he=Zt>=1?Zt:Zt+1;this.gridster.curColWidth=this.gridster.curRowHeight*he,ft=A.ScrollHorizontal,Ct=A.Fit,Ot=A.ScrollVertical,Rt=A.Fixed}else this.gridster.$options.gridType===A.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),ft=A.Fixed,Ct=A.Fit,Ot=A.ScrollVertical,Rt=A.ScrollHorizontal):this.gridster.$options.gridType===A.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),ft=A.ScrollVertical,Ct=A.Fit,Ot=A.ScrollHorizontal,Rt=A.Fixed):this.gridster.$options.gridType===A.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),ft=A.ScrollHorizontal,Ct=A.Fit,Ot=A.ScrollVertical,Rt=A.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==A.Fit?this.gridster.renderer.removeClass(this.gridster.el,ft):this.gridster.renderer.addClass(this.gridster.el,ft),this.gridster.renderer.removeClass(this.gridster.el,Ct),this.gridster.renderer.removeClass(this.gridster.el,Ot),this.gridster.renderer.removeClass(this.gridster.el,Rt)}getGridColumnStyle(ft){const Ct={left:this.gridster.curColWidth*ft,width:this.gridster.curColWidth-this.gridster.$options.margin,height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};Ct.style={...this.getLeftPosition(Ct.left),width:Ct.width+"px",height:Ct.height+"px"};const Ot=this.lastGridColumnStyles[ft];return Ot&&Ot.left===Ct.left&&Ot.width===Ct.width&&Ot.height===Ct.height?Ot.style:(this.lastGridColumnStyles[ft]=Ct,Ct.style)}getGridRowStyle(ft){const Ct={top:this.gridster.curRowHeight*ft,width:this.gridster.gridColumns.length*this.gridster.curColWidth+this.gridster.$options.margin,height:this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};Ct.style={...this.getTopPosition(Ct.top),width:Ct.width+"px",height:Ct.height+"px"};const Ot=this.lastGridRowStyles[ft];return Ot&&Ot.top===Ct.top&&Ot.width===Ct.width&&Ot.height===Ct.height?Ot.style:(this.lastGridRowStyles[ft]=Ct,Ct.style)}getLeftPosition(ft){const Ct=this.gridster.$options.dirType===S.RTL?-ft:ft;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+Ct+"px)"}:{left:this.getLeftMargin()+Ct+"px"}}getTopPosition(ft){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+ft+"px)"}:{top:this.getTopMargin()+ft+"px"}}clearCellPosition(ft,Ct){this.gridster.$options.useTransformPositioning?ft.setStyle(Ct,"transform",""):(ft.setStyle(Ct,"top",""),ft.setStyle(Ct,"left",""))}setCellPosition(ft,Ct,Ot,Rt){const Zt=this.gridster.$options.dirType===S.RTL?-Ot:Ot;if(this.gridster.$options.useTransformPositioning){const he="translate3d("+Zt+"px, "+Rt+"px, 0)";ft.setStyle(Ct,"transform",he)}else ft.setStyle(Ct,"left",this.getLeftMargin()+Zt+"px"),ft.setStyle(Ct,"top",this.getTopMargin()+Rt+"px")}getLeftMargin(){return this.gridster.$options.outerMargin?null!==this.gridster.$options.outerMarginLeft?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?null!==this.gridster.$options.outerMarginTop?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}}class b{constructor(ft,Ct){this.renderer=Ct,this.el=ft.nativeElement}ngOnInit(){this.sub=this.previewStyle$.subscribe(ft=>this.previewStyle(ft))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}previewStyle(ft){ft?(this.renderer.setStyle(this.el,"display","block"),this.gridRenderer.updateItem(this.el,ft,this.renderer)):this.renderer.setStyle(this.el,"display","")}}b.\u0275fac=function(ft){return new(ft||b)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2))},b.\u0275cmp=t.\u0275\u0275defineComponent({type:b,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:0,vars:0,template:function(ft,Ct){},styles:["gridster-preview{position:absolute;display:none;background:rgba(0,0,0,.15)}\n"],encapsulation:2});class d{constructor(ft,Ct,Ot,Rt){this.renderer=Ct,this.cdRef=Ot,this.zone=Rt,this.columns=0,this.rows=0,this.gridColumns=[],this.gridRows=[],this.previewStyle$=new t.EventEmitter,this.calculateLayout$=new Y.x,this.resize$=new Y.x,this.destroy$=new Y.x,this.optionsChanged=()=>{this.setOptions();let he,Zt=this.grid.length-1;for(;Zt>=0;Zt--)he=this.grid[Zt],he.updateOptions();this.calculateLayout()},this.onResize=()=>{this.el.clientWidth&&(this.options.setGridSize&&(this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.setGridSize(),this.calculateLayout())},this.getNextPossiblePosition=(Zt,he={})=>{-1===Zt.cols&&(Zt.cols=this.$options.defaultItemCols),-1===Zt.rows&&(Zt.rows=this.$options.defaultItemRows),this.setGridDimensions();let ye,Ie=he.y||0;for(;Ie=this.rows+Zt.rows,He=this.$options.maxCols>=this.columns+Zt.cols;return this.rows<=this.columns&&Ne||!He?!!Ne&&(Zt.y=this.rows,Zt.x=0,!0):(Zt.x=this.columns,Zt.y=0,!0)},this.getFirstPossiblePosition=Zt=>{const he=Object.assign({},Zt);return this.getNextPossiblePosition(he),he},this.getLastPossiblePosition=Zt=>{let he={y:0,x:0};he=this.grid.reduce((ye,Ne)=>{const He={y:Ne.$item.y+Ne.$item.rows-1,x:Ne.$item.x+Ne.$item.cols-1};return 1===M.compareItems(ye,He)?He:ye},he);const Ie=Object.assign({},Zt);return this.getNextPossiblePosition(Ie,he),Ie},this.el=ft.nativeElement,this.$options=JSON.parse(JSON.stringify(j)),this.mobile=!1,this.curWidth=0,this.curHeight=0,this.grid=[],this.curColWidth=0,this.curRowHeight=0,this.dragInProgress=!1,this.emptyCell=new D(this),this.compact=new N(this),this.gridRenderer=new I(this)}static checkCollisionTwoItemsForSwaping(ft,Ct){const Ot=1===ft.cols?0:1,Rt=1===Ct.cols?0:1,Zt=1===ft.rows?0:1,he=1===Ct.rows?0:1;return ft.x+OtCt.x+Rt&&ft.y+ZtCt.y+he}checkCollisionTwoItems(ft,Ct){if(!(ft.xCt.x&&ft.yCt.y))return!1;if(!this.$options.allowMultiLayer)return!0;const Rt=this.$options.defaultLayerIndex;return(void 0===ft.layerIndex?Rt:ft.layerIndex)===(void 0===Ct.layerIndex?Rt:Ct.layerIndex)}ngOnInit(){this.options.initCallback&&this.options.initCallback(this),this.calculateLayout$.pipe((0,q.b)(0),(0,O.R)(this.destroy$)).subscribe(()=>this.calculateLayout()),this.resize$.pipe((0,U.w)(()=>(0,G.H)(100)),(0,O.R)(this.destroy$)).subscribe(()=>this.resize())}ngOnChanges(ft){ft.options&&(this.setOptions(),this.options.api={optionsChanged:this.optionsChanged,resize:this.onResize,getNextPossiblePosition:this.getNextPossiblePosition,getFirstPossiblePosition:this.getFirstPossiblePosition,getLastPossiblePosition:this.getLastPossiblePosition,getItemComponent:Ct=>this.getItemComponent(Ct)},this.columns=this.$options.minCols,this.rows=this.$options.minRows+this.$options.addEmptyRowsCount,this.setGridSize(),this.calculateLayout())}resize(){let ft,Ct;"fit"!==this.$options.gridType||this.mobile?(Ct=this.el.clientWidth,ft=this.el.clientHeight):(Ct=this.el.offsetWidth,ft=this.el.offsetHeight),(Ct!==this.curWidth||ft!==this.curHeight)&&this.checkIfToResize()&&this.onResize()}setOptions(){this.$options=M.merge(this.$options,this.options,this.$options),this.$options.disableWindowResize||this.windowResize?this.$options.disableWindowResize&&this.windowResize&&(this.windowResize(),this.windowResize=null):this.windowResize=this.renderer.listen("window","resize",this.onResize),this.emptyCell.updateOptions()}ngOnDestroy(){this.destroy$.next(),this.previewStyle$.complete(),this.windowResize&&this.windowResize(),this.options&&this.options.destroyCallback&&this.options.destroyCallback(this),this.options&&this.options.api&&(this.options.api.resize=void 0,this.options.api.optionsChanged=void 0,this.options.api.getNextPossiblePosition=void 0,this.options.api=void 0),this.emptyCell.destroy(),this.emptyCell=null,this.compact.destroy(),this.compact=null}checkIfToResize(){const ft=this.el.clientWidth,Ct=this.el.offsetWidth,Ot=this.el.scrollWidth,Rt=this.el.clientHeight,Zt=this.el.offsetHeight,he=this.el.scrollHeight;return!(ftZt&&he-ZtCt&&Ot-Ctdocument.body.clientWidth:this.$options.mobileBreakpoint>this.curWidth}setGridSize(){const ft=this.el;let Ct,Ot;this.$options.setGridSize||this.$options.gridType===A.Fit&&!this.mobile?(Ct=ft.offsetWidth,Ot=ft.offsetHeight):(Ct=ft.clientWidth,Ot=ft.clientHeight),this.curWidth=Ct,this.curHeight=Ot}setGridDimensions(){this.setGridSize(),!this.mobile&&this.checkIfMobile()?(this.mobile=!this.mobile,this.renderer.addClass(this.el,"mobile")):this.mobile&&!this.checkIfMobile()&&(this.mobile=!this.mobile,this.renderer.removeClass(this.el,"mobile"));let Rt,ft=this.$options.minRows,Ct=this.$options.minCols,Ot=this.grid.length-1;for(;Ot>=0;Ot--)Rt=this.grid[Ot],Rt.notPlaced||(ft=Math.max(ft,Rt.$item.y+Rt.$item.rows),Ct=Math.max(Ct,Rt.$item.x+Rt.$item.cols));ft+=this.$options.addEmptyRowsCount,(this.columns!==Ct||this.rows!==ft)&&(this.columns=Ct,this.rows=ft,this.options.gridSizeChangedCallback&&this.options.gridSizeChangedCallback(this))}calculateLayout(){if(this.compact&&this.compact.checkCompact(),this.setGridDimensions(),this.$options.outerMargin){let Ot=-this.$options.margin;null!==this.$options.outerMarginLeft?(Ot+=this.$options.outerMarginLeft,this.renderer.setStyle(this.el,"padding-left",this.$options.outerMarginLeft+"px")):(Ot+=this.$options.margin,this.renderer.setStyle(this.el,"padding-left",this.$options.margin+"px")),null!==this.$options.outerMarginRight?(Ot+=this.$options.outerMarginRight,this.renderer.setStyle(this.el,"padding-right",this.$options.outerMarginRight+"px")):(Ot+=this.$options.margin,this.renderer.setStyle(this.el,"padding-right",this.$options.margin+"px")),this.curColWidth=(this.curWidth-Ot)/this.columns;let Rt=-this.$options.margin;null!==this.$options.outerMarginTop?(Rt+=this.$options.outerMarginTop,this.renderer.setStyle(this.el,"padding-top",this.$options.outerMarginTop+"px")):(Rt+=this.$options.margin,this.renderer.setStyle(this.el,"padding-top",this.$options.margin+"px")),null!==this.$options.outerMarginBottom?(Rt+=this.$options.outerMarginBottom,this.renderer.setStyle(this.el,"padding-bottom",this.$options.outerMarginBottom+"px")):(Rt+=this.$options.margin,this.renderer.setStyle(this.el,"padding-bottom",this.$options.margin+"px")),this.curRowHeight=(this.curHeight-Rt)/this.rows*this.$options.rowHeightRatio}else this.curColWidth=(this.curWidth+this.$options.margin)/this.columns,this.curRowHeight=(this.curHeight+this.$options.margin)/this.rows*this.$options.rowHeightRatio,this.renderer.setStyle(this.el,"padding-left","0px"),this.renderer.setStyle(this.el,"padding-right","0px"),this.renderer.setStyle(this.el,"padding-top","0px"),this.renderer.setStyle(this.el,"padding-bottom","0px");this.gridRenderer.updateGridster(),this.$options.setGridSize?(this.renderer.addClass(this.el,"gridSize"),this.mobile||(this.renderer.setStyle(this.el,"width",this.columns*this.curColWidth+this.$options.margin+"px"),this.renderer.setStyle(this.el,"height",this.rows*this.curRowHeight+this.$options.margin+"px"))):(this.renderer.removeClass(this.el,"gridSize"),this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.updateGrid();let Ct,ft=this.grid.length-1;for(;ft>=0;ft--)Ct=this.grid[ft],Ct.setSize(),Ct.drag.toggle(),Ct.resize.toggle();this.resize$.next()}updateGrid(){"always"!==this.$options.displayGrid||this.mobile?"onDrag&Resize"===this.$options.displayGrid&&this.dragInProgress?this.renderer.addClass(this.el,"display-grid"):("none"===this.$options.displayGrid||!this.dragInProgress||this.mobile)&&this.renderer.removeClass(this.el,"display-grid"):this.renderer.addClass(this.el,"display-grid"),this.setGridDimensions(),this.gridColumns.length=d.getNewArrayLength(this.columns,this.curWidth,this.curColWidth),this.gridRows.length=d.getNewArrayLength(this.rows,this.curHeight,this.curRowHeight),this.cdRef.markForCheck()}addItem(ft){void 0===ft.$item.cols&&(ft.$item.cols=this.$options.defaultItemCols,ft.item.cols=ft.$item.cols,ft.itemChanged()),void 0===ft.$item.rows&&(ft.$item.rows=this.$options.defaultItemRows,ft.item.rows=ft.$item.rows,ft.itemChanged()),-1===ft.$item.x||-1===ft.$item.y?this.autoPositionItem(ft):this.checkCollision(ft.$item)&&(this.$options.disableWarnings||(ft.notPlaced=!0,console.warn("Can't be placed in the bounds of the dashboard, trying to auto position!/n"+JSON.stringify(ft.item,["cols","rows","x","y"]))),this.$options.disableAutoPositionOnConflict?ft.notPlaced=!0:this.autoPositionItem(ft)),this.grid.push(ft),this.calculateLayout$.next()}removeItem(ft){this.grid.splice(this.grid.indexOf(ft),1),this.calculateLayout$.next(),this.options.itemRemovedCallback&&this.options.itemRemovedCallback(ft.item,ft)}checkCollision(ft){let Ct=!1;if(this.options.itemValidateCallback&&(Ct=!this.options.itemValidateCallback(ft)),!Ct&&this.checkGridCollision(ft)&&(Ct=!0),!Ct){const Ot=this.findItemWithItem(ft);Ot&&(Ct=Ot)}return Ct}checkGridCollision(ft){const Ct=ft.y>-1&&ft.x>-1,Ot=ft.cols+ft.x<=this.$options.maxCols,Rt=ft.rows+ft.y<=this.$options.maxRows,Zt=void 0===ft.maxItemCols?this.$options.maxItemCols:ft.maxItemCols,he=void 0===ft.minItemCols?this.$options.minItemCols:ft.minItemCols,Ie=void 0===ft.maxItemRows?this.$options.maxItemRows:ft.maxItemRows,ye=void 0===ft.minItemRows?this.$options.minItemRows:ft.minItemRows,Ne=ft.cols<=Zt&&ft.cols>=he,He=ft.rows<=Ie&&ft.rows>=ye,ze=void 0===ft.minItemArea?this.$options.minItemArea:ft.minItemArea,ii=void 0===ft.maxItemArea?this.$options.maxItemArea:ft.maxItemArea,$e=ft.cols*ft.rows;return!(Ct&&Ot&&Rt&&Ne&&He&&ze<=$e&&ii>=$e)}findItemWithItem(ft){let Ot,Ct=0;for(;CtCt.item===ft)}checkCollisionForSwaping(ft){let Ct=!1;if(this.options.itemValidateCallback&&(Ct=!this.options.itemValidateCallback(ft)),!Ct&&this.checkGridCollision(ft)&&(Ct=!0),!Ct){const Ot=this.findItemWithItemForSwapping(ft);Ot&&(Ct=Ot)}return Ct}findItemWithItemForSwapping(ft){let Ot,Ct=this.grid.length-1;for(;Ct>-1;Ct--)if(Ot=this.grid[Ct],Ot.$item!==ft&&d.checkCollisionTwoItemsForSwaping(Ot.$item,ft))return Ot;return!1}previewStyle(ft=!1){this.movingItem?(this.compact&&ft&&this.compact.checkCompactItem(this.movingItem),this.previewStyle$.next(this.movingItem)):this.previewStyle$.next(null)}static getNewArrayLength(ft,Ct,Ot){const Rt=Math.max(ft,Math.floor(Ct/Ot));return Rt<0?0:Number.isFinite(Rt)?Math.floor(Rt):0}}d.\u0275fac=function(ft){return new(ft||d)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.NgZone))},d.\u0275cmp=t.\u0275\u0275defineComponent({type:d,selectors:[["gridster"]],inputs:{options:"options"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:W,decls:4,vars:4,consts:[["class","gridster-column",3,"ngStyle",4,"ngFor","ngForOf"],["class","gridster-row",3,"ngStyle",4,"ngFor","ngForOf"],[1,"gridster-preview",3,"gridRenderer","previewStyle$"],[1,"gridster-column",3,"ngStyle"],[1,"gridster-row",3,"ngStyle"]],template:function(ft,Ct){1&ft&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,Z,1,1,"div",0),t.\u0275\u0275template(1,$,1,1,"div",1),t.\u0275\u0275projection(2),t.\u0275\u0275element(3,"gridster-preview",2)),2&ft&&(t.\u0275\u0275property("ngForOf",Ct.gridColumns),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",Ct.gridRows),t.\u0275\u0275advance(2),t.\u0275\u0275property("gridRenderer",Ct.gridRenderer)("previewStyle$",Ct.previewStyle$))},dependencies:[pt.NgForOf,pt.NgStyle,b],styles:["gridster{position:relative;box-sizing:border-box;background:grey;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:block}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:initial;width:initial}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid white;border-right:1px solid white}gridster .gridster-row{border-top:1px solid white;border-bottom:1px solid white}\n"],encapsulation:2});class u{constructor(ft){this.iteration=0,this.pushedItems=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],this.pushedItemsPath=[],this.gridsterItem=ft,this.gridster=ft.gridster,this.tryPattern={fromEast:[this.tryWest,this.trySouth,this.tryNorth,this.tryEast],fromWest:[this.tryEast,this.trySouth,this.tryNorth,this.tryWest],fromNorth:[this.trySouth,this.tryEast,this.tryWest,this.tryNorth],fromSouth:[this.tryNorth,this.tryEast,this.tryWest,this.trySouth]},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(ft,Ct){if(this.gridster.$options.pushItems&&!Ct){this.pushedItemsOrder=[],this.iteration=0;const Ot=this.push(this.gridsterItem,ft);return Ot||this.restoreTempItems(),this.pushedItemsOrder=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],Ot}return!1}restoreTempItems(){let ft=this.pushedItemsTemp.length-1;for(;ft>-1;ft--)this.removeFromTempPushed(this.pushedItemsTemp[ft])}restoreItems(){let ft=0;const Ct=this.pushedItems.length;let Ot;for(;ft-1;ft--)this.checkPushedItem(this.pushedItems[ft],ft)&&(Ct=!0);Ct&&this.checkPushBack()}push(ft,Ct){if(this.iteration>100)return console.warn("max iteration reached"),!1;if(this.gridster.checkGridCollision(ft.$item)||""===Ct)return!1;const Ot=this.gridster.findItemsWithItem(ft.$item),Rt=Ct===this.fromNorth||Ct===this.fromWest;Ot.sort((Ne,He)=>Rt?He.$item.y-Ne.$item.y||He.$item.x-Ne.$item.x:Ne.$item.y-He.$item.y||Ne.$item.x-He.$item.x);let he,Zt=0,Ie=!0;const ye=[];for(;Zt-1&&this.pushedItemsTempPath[Ne].length>10){Ie=!1;break}if(this.tryPattern[Ct][0].call(this,he,ft))this.pushedItemsOrder.push(he),ye.push(he);else if(this.tryPattern[Ct][1].call(this,he,ft))this.pushedItemsOrder.push(he),ye.push(he);else if(this.tryPattern[Ct][2].call(this,he,ft))this.pushedItemsOrder.push(he),ye.push(he);else{if(!this.tryPattern[Ct][3].call(this,he,ft)){Ie=!1;break}this.pushedItemsOrder.push(he),ye.push(he)}}if(!Ie&&(Zt=this.pushedItemsOrder.lastIndexOf(ye[0]),Zt>-1)){let Ne=this.pushedItemsOrder.length-1;for(;Ne>=Zt;Ne--)he=this.pushedItemsOrder[Ne],this.pushedItemsOrder.pop(),this.removeFromTempPushed(he),this.removeFromPushedItem(he)}return this.iteration++,Ie}trySouth(ft,Ct){return!!this.gridster.$options.pushDirections.south&&(this.addToTempPushed(ft),ft.$item.y=Ct.$item.y+Ct.$item.rows,this.push(ft,this.fromNorth)?(ft.setSize(),this.addToPushed(ft),!0):(this.removeFromTempPushed(ft),!1))}tryNorth(ft,Ct){return!!this.gridster.$options.pushDirections.north&&(this.addToTempPushed(ft),ft.$item.y=Ct.$item.y-ft.$item.rows,this.push(ft,this.fromSouth)?(ft.setSize(),this.addToPushed(ft),!0):(this.removeFromTempPushed(ft),!1))}tryEast(ft,Ct){return!!this.gridster.$options.pushDirections.east&&(this.addToTempPushed(ft),ft.$item.x=Ct.$item.x+Ct.$item.cols,this.push(ft,this.fromWest)?(ft.setSize(),this.addToPushed(ft),!0):(this.removeFromTempPushed(ft),!1))}tryWest(ft,Ct){return!!this.gridster.$options.pushDirections.west&&(this.addToTempPushed(ft),ft.$item.x=Ct.$item.x-ft.$item.cols,this.push(ft,this.fromEast)?(ft.setSize(),this.addToPushed(ft),!0):(this.removeFromTempPushed(ft),!1))}addToTempPushed(ft){let Ct=this.pushedItemsTemp.indexOf(ft);-1===Ct&&(Ct=this.pushedItemsTemp.push(ft)-1,this.pushedItemsTempPath[Ct]=[]),this.pushedItemsTempPath[Ct].push({x:ft.$item.x,y:ft.$item.y})}removeFromTempPushed(ft){const Ct=this.pushedItemsTemp.indexOf(ft),Ot=this.pushedItemsTempPath[Ct].pop();Ot&&(ft.$item.x=Ot.x,ft.$item.y=Ot.y,ft.setSize(),this.pushedItemsTempPath[Ct].length||(this.pushedItemsTemp.splice(Ct,1),this.pushedItemsTempPath.splice(Ct,1)))}addToPushed(ft){if(this.pushedItems.indexOf(ft)<0)this.pushedItems.push(ft),this.pushedItemsPath.push([{x:ft.item.x||0,y:ft.item.y||0},{x:ft.$item.x,y:ft.$item.y}]);else{const Ct=this.pushedItems.indexOf(ft);this.pushedItemsPath[Ct].push({x:ft.$item.x,y:ft.$item.y})}}removeFromPushed(ft){ft>-1&&(this.pushedItems.splice(ft,1),this.pushedItemsPath.splice(ft,1))}removeFromPushedItem(ft){const Ct=this.pushedItems.indexOf(ft);Ct>-1&&(this.pushedItemsPath[Ct].pop(),this.pushedItemsPath.length||(this.pushedItems.splice(Ct,1),this.pushedItemsPath.splice(Ct,1)))}checkPushedItem(ft,Ct){const Ot=this.pushedItemsPath[Ct];let Zt,he,Ie,Rt=Ot.length-2,ye=!1;for(;Rt>-1;Rt--)Zt=Ot[Rt],he=ft.$item.x,Ie=ft.$item.y,ft.$item.x=Zt.x,ft.$item.y=Zt.y,this.gridster.findItemWithItem(ft.$item)?(ft.$item.x=he,ft.$item.y=Ie):(ft.setSize(),Ot.splice(Rt+1,Ot.length-Rt-1),ye=!0);return Ot.length<2&&this.removeFromPushed(Ct),ye}}let a,n;let m,_,B,X,it,rt,L;function z(xt,ft,Ct,Ot,Rt,Zt,he,Ie,ye,Ne){a=xt.$options.scrollSensitivity,n=xt.$options.scrollSpeed,m=xt.el,_=ye,B=Ne;const He=m.offsetWidth,ze=m.offsetHeight,ii=m.scrollLeft,$e=m.scrollTop,Te=Ct-$e,ke=ze+$e-Ct-Rt,{clientX:We,clientY:be}=Zt;if(!xt.$options.disableScrollVertical)if(he.clientYbe&&$e>0&&TeWe&&ii>0&&Se{(!m||-1===xt&&m.scrollTop-n<0)&&ot(),m.scrollTop+=xt*n,Ot+=xt*n,ft({clientX:Ct.clientX,clientY:Ot})},50)}function at(xt,ft,Ct){let Ot=Ct.clientX;return window.setInterval(()=>{(!m||-1===xt&&m.scrollLeft-n<0)&&H(),m.scrollLeft+=xt*n,Ot+=xt*n,ft({clientX:Ot,clientY:Ct.clientY})},50)}function st(){H(),ot(),m=null}function H(){nt(),yt()}function ot(){mt(),gt()}function nt(){X&&(clearInterval(X),X=0)}function yt(){it&&(clearInterval(it),it=0)}function gt(){L&&(clearInterval(L),L=0)}function mt(){rt&&(clearInterval(rt),rt=0)}class St{constructor(ft){this.gridsterItem=ft,this.gridster=ft.gridster}destroy(){this.gridster=this.gridsterItem=this.swapedItem=null}swapItems(){this.gridster.$options.swap&&(this.checkSwapBack(),this.checkSwap(this.gridsterItem))}checkSwapBack(){if(this.swapedItem){const ft=this.swapedItem.$item.x,Ct=this.swapedItem.$item.y;this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.gridster.checkCollision(this.swapedItem.$item)?(this.swapedItem.$item.x=ft,this.swapedItem.$item.y=Ct):(this.swapedItem.setSize(),this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.swapedItem=void 0)}}restoreSwapItem(){this.swapedItem&&(this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.swapedItem.setSize(),this.swapedItem=void 0)}setSwapItem(){this.swapedItem&&(this.swapedItem.checkItemChanges(this.swapedItem.$item,this.swapedItem.item),this.swapedItem=void 0)}checkSwap(ft){let Ct;if(Ct=this.gridster.$options.swapWhileDragging?this.gridster.checkCollisionForSwaping(ft.$item):this.gridster.checkCollision(ft.$item),Ct&&!0!==Ct&&Ct.canBeDragged()){const Ot=Ct,Rt=Ot.$item.x,Zt=Ot.$item.y,he=ft.$item.x,Ie=ft.$item.y,ye=he-Rt,Ne=Ie-Zt;Ot.$item.x=ft.item.x-ye,Ot.$item.y=ft.item.y-Ne,ft.$item.x=Ot.item.x+ye,ft.$item.y=Ot.item.y+Ne,this.gridster.checkCollision(Ot.$item)||this.gridster.checkCollision(ft.$item)?(ft.$item.x=he,ft.$item.y=Ie,Ot.$item.x=Rt,Ot.$item.y=Zt):(Ot.setSize(),this.swapedItem=Ot,this.gridster.$options.swapWhileDragging&&(this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.setSwapItem()))}}}var Mt;!function(xt){xt.UP="UP",xt.DOWN="DOWN",xt.LEFT="LEFT",xt.RIGHT="RIGHT"}(Mt||(Mt={}));class Dt{constructor(ft,Ct,Ot){this.zone=Ot,this.collision=!1,this.dragMove=Rt=>{Rt.stopPropagation(),Rt.preventDefault(),M.checkTouchEvent(Rt);let Zt=this.getDirections(Rt);this.gridster.options.enableBoundaryControl&&(Zt.includes(Mt.UP)&&this.gridsterItem.el.getBoundingClientRect().tophe!=Mt.UP),Rt=new MouseEvent(Rt.type,{clientX:Rt.clientX,clientY:this.lastMouse.clientY})),Zt.includes(Mt.LEFT)&&this.gridsterItem.el.getBoundingClientRect().lefthe!=Mt.LEFT),Rt=new MouseEvent(Rt.type,{clientX:this.lastMouse.clientX,clientY:Rt.clientY})),Zt.includes(Mt.RIGHT)&&this.gridsterItem.el.getBoundingClientRect().right>this.gridster.el.getBoundingClientRect().right-(this.outerMarginRight??this.margin)&&(Zt=Zt.filter(he=>he!=Mt.RIGHT),Rt=new MouseEvent(Rt.type,{clientX:this.lastMouse.clientX,clientY:Rt.clientY})),Zt.includes(Mt.DOWN)&&this.gridsterItem.el.getBoundingClientRect().bottom>this.gridster.el.getBoundingClientRect().bottom-(this.outerMarginBottom??this.margin)&&(Zt=Zt.filter(he=>he!=Mt.DOWN),Rt=new MouseEvent(Rt.type,{clientX:Rt.clientX,clientY:this.lastMouse.clientY}))),Zt.length&&(this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,z(this.gridster,this.left,this.top,this.width,this.height,Rt,this.lastMouse,this.calculateItemPositionFromMousePosition),this.calculateItemPositionFromMousePosition(Rt))},this.calculateItemPositionFromMousePosition=Rt=>{this.gridster.options.scale?this.calculateItemPositionWithScale(Rt,this.gridster.options.scale):this.calculateItemPositionWithoutScale(Rt),this.calculateItemPosition(),this.lastMouse.clientX=Rt.clientX,this.lastMouse.clientY=Rt.clientY,this.zone.run(()=>{this.gridster.updateGrid()})},this.dragStop=Rt=>{Rt.stopPropagation(),Rt.preventDefault(),st(),this.cancelOnBlur(),this.mousemove(),this.mouseup(),this.mouseleave(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-moving"),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.path=[],this.gridster.options.draggable&&this.gridster.options.draggable.stop?Promise.resolve(this.gridster.options.draggable.stop(this.gridsterItem.item,this.gridsterItem,Rt)).then(this.makeDrag,this.cancelDrag):this.makeDrag(),setTimeout(()=>{this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle(!0))})},this.cancelDrag=()=>{this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push&&this.push.restoreItems(),this.swap&&this.swap.restoreSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)},this.makeDrag=()=>{this.gridster.$options.draggable.dropOverItems&&this.gridster.options.draggable&&this.gridster.options.draggable.dropOverItemsCallback&&this.collision&&!0!==this.collision&&this.collision.$item&&this.gridster.options.draggable.dropOverItemsCallback(this.gridsterItem.item,this.collision.item,this.gridster),this.collision=!1,this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push&&this.push.setPushedItems(),this.swap&&this.swap.setSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)},this.dragStartDelay=Rt=>{if(Rt.target.classList.contains("gridster-item-resizable-handler")||M.checkContentClassForEvent(this.gridster,Rt))return;if(M.checkTouchEvent(Rt),!this.gridster.$options.draggable.delayStart)return void this.dragStart(Rt);const he=setTimeout(()=>{this.dragStart(Rt),Te()},this.gridster.$options.draggable.delayStart),Ie=this.gridsterItem.renderer.listen("document","mouseup",Te),ye=this.gridsterItem.renderer.listen("document","mouseleave",Te),Ne=this.gridsterItem.renderer.listen("window","blur",Te),He=this.gridsterItem.renderer.listen("document","touchmove",function $e(ke){M.checkTouchEvent(ke),(Math.abs(ke.clientX-Rt.clientX)>9||Math.abs(ke.clientY-Rt.clientY)>9)&&Te()}),ze=this.gridsterItem.renderer.listen("document","touchend",Te),ii=this.gridsterItem.renderer.listen("document","touchcancel",Te);function Te(){clearTimeout(he),Ne(),Ie(),ye(),He(),ze(),ii()}},this.gridsterItem=ft,this.gridster=Ct,this.lastMouse={clientX:0,clientY:0},this.path=[]}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(!0),this.gridsterItem=this.gridster=this.collision=null,this.mousedown&&(this.mousedown(),this.touchstart())}dragStart(ft){ft.which&&1!==ft.which||(this.gridster.options.draggable&&this.gridster.options.draggable.start&&this.gridster.options.draggable.start(this.gridsterItem.item,this.gridsterItem,ft),ft.stopPropagation(),ft.preventDefault(),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-moving"),this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.left=this.gridsterItem.left-this.margin,this.top=this.gridsterItem.top-this.margin,this.originalClientX=ft.clientX,this.originalClientY=ft.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.gridster.$options.dirType===S.RTL?this.diffLeft=ft.clientX-this.gridster.el.scrollWidth+this.gridsterItem.left:this.diffLeft=ft.clientX+this.offsetLeft-this.margin-this.left,this.diffTop=ft.clientY+this.offsetTop-this.margin-this.top,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(!0),this.push=new u(this.gridsterItem),this.swap=new St(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),this.path.push({x:this.gridsterItem.item.x||0,y:this.gridsterItem.item.y||0}))}calculateItemPositionWithScale(ft,Ct){this.gridster.$options.dirType===S.RTL?this.left=this.gridster.el.scrollWidth-this.originalClientX+(ft.clientX-this.originalClientX)/Ct+this.diffLeft:this.left=this.originalClientX+(ft.clientX-this.originalClientX)/Ct+this.offsetLeft-this.diffLeft,this.top=this.originalClientY+(ft.clientY-this.originalClientY)/Ct+this.offsetTop-this.diffTop}calculateItemPositionWithoutScale(ft){this.gridster.$options.dirType===S.RTL?this.left=this.gridster.el.scrollWidth-ft.clientX+this.diffLeft:this.left=ft.clientX+this.offsetLeft-this.diffLeft,this.top=ft.clientY+this.offsetTop-this.diffTop}calculateItemPosition(){if(this.gridster.movingItem=this.gridsterItem.$item,this.positionX=this.gridster.pixelsToPositionX(this.left,Math.round),this.positionY=this.gridster.pixelsToPositionY(this.top,Math.round),this.positionXBackup=this.gridsterItem.$item.x,this.positionYBackup=this.gridsterItem.$item.y,this.gridsterItem.$item.x=this.positionX,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.x=this.positionXBackup),this.gridsterItem.$item.y=this.positionY,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.y=this.positionYBackup),this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,this.top),this.positionXBackup!==this.gridsterItem.$item.x||this.positionYBackup!==this.gridsterItem.$item.y){const ft=this.path[this.path.length-1];let Ct="";ft.xthis.gridsterItem.$item.x?Ct=this.push.fromEast:ft.ythis.gridsterItem.$item.y&&(Ct=this.push.fromSouth),this.push.pushItems(Ct,this.gridster.$options.disablePushOnDrag),this.swap.swapItems(),this.collision=this.gridster.checkCollision(this.gridsterItem.$item),this.collision?(this.gridsterItem.$item.x=this.positionXBackup,this.gridsterItem.$item.y=this.positionYBackup,this.gridster.$options.draggable.dropOverItems&&!0!==this.collision&&this.collision.$item&&(this.gridster.movingItem=null)):this.path.push({x:this.gridsterItem.$item.x,y:this.gridsterItem.$item.y}),this.push.checkPushBack()}else this.collision=!1;this.gridster.previewStyle(!0)}toggle(){const ft=this.gridsterItem.canBeDragged();!this.enabled&&ft?(this.enabled=!this.enabled,this.mousedown=this.gridsterItem.renderer.listen(this.gridsterItem.el,"mousedown",this.dragStartDelay),this.touchstart=this.gridsterItem.renderer.listen(this.gridsterItem.el,"touchstart",this.dragStartDelay)):this.enabled&&!ft&&(this.enabled=!this.enabled,this.mousedown(),this.touchstart())}getDirections(ft){const Ct=[];return 0===this.lastMouse.clientX&&0===this.lastMouse.clientY&&(this.lastMouse.clientY=ft.clientY,this.lastMouse.clientX=ft.clientX),this.lastMouse.clientY>ft.clientY&&Ct.push(Mt.UP),this.lastMouse.clientYft.clientX&&Ct.push(Mt.LEFT),Ct}}class Pt{constructor(ft){this.pushedItems=[],this.pushedItemsPath=[],this.gridsterItem=ft,this.gridster=ft.gridster,this.tryPattern={fromEast:this.tryWest,fromWest:this.tryEast,fromNorth:this.trySouth,fromSouth:this.tryNorth},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(ft){return!!this.gridster.$options.pushResizeItems&&this.push(this.gridsterItem,ft)}restoreItems(){let ft=0;const Ct=this.pushedItems.length;let Ot;for(;ft-1;ft--)this.checkPushedItem(this.pushedItems[ft],ft)&&(Ct=!0);Ct&&this.checkPushBack()}push(ft,Ct){const Ot=this.gridster.checkCollision(ft.$item);if(Ot&&!0!==Ot&&Ot!==this.gridsterItem&&Ot.canBeResized()){if(this.tryPattern[Ct].call(this,Ot,ft,Ct))return!0}else if(!1===Ot)return!0;return!1}trySouth(ft,Ct,Ot){const Rt=ft.$item.y,Zt=ft.$item.rows;return ft.$item.y=Ct.$item.y+Ct.$item.rows,ft.$item.rows=Zt+Rt-ft.$item.y,this.gridster.checkCollisionTwoItems(ft.$item,Ct.$item)||this.gridster.checkGridCollision(ft.$item)?(ft.$item.y=Rt,ft.$item.rows=Zt,!1):(ft.setSize(),this.addToPushed(ft),this.push(Ct,Ot),!0)}tryNorth(ft,Ct,Ot){const Rt=ft.$item.rows;return ft.$item.rows=Ct.$item.y-ft.$item.y,this.gridster.checkCollisionTwoItems(ft.$item,Ct.$item)||this.gridster.checkGridCollision(ft.$item)?(ft.$item.rows=Rt,!1):(ft.setSize(),this.addToPushed(ft),this.push(Ct,Ot),!0)}tryEast(ft,Ct,Ot){const Rt=ft.$item.x,Zt=ft.$item.cols;return ft.$item.x=Ct.$item.x+Ct.$item.cols,ft.$item.cols=Zt+Rt-ft.$item.x,this.gridster.checkCollisionTwoItems(ft.$item,Ct.$item)||this.gridster.checkGridCollision(ft.$item)?(ft.$item.x=Rt,ft.$item.cols=Zt,!1):(ft.setSize(),this.addToPushed(ft),this.push(Ct,Ot),!0)}tryWest(ft,Ct,Ot){const Rt=ft.$item.cols;return ft.$item.cols=Ct.$item.x-ft.$item.x,this.gridster.checkCollisionTwoItems(ft.$item,Ct.$item)||this.gridster.checkGridCollision(ft.$item)?(ft.$item.cols=Rt,!1):(ft.setSize(),this.addToPushed(ft),this.push(Ct,Ot),!0)}addToPushed(ft){if(this.pushedItems.indexOf(ft)<0)this.pushedItems.push(ft),this.pushedItemsPath.push([{x:ft.item.x||0,y:ft.item.y||0,cols:ft.item.cols||0,rows:ft.item.rows||0},{x:ft.$item.x,y:ft.$item.y,cols:ft.$item.cols,rows:ft.$item.rows}]);else{const Ct=this.pushedItems.indexOf(ft);this.pushedItemsPath[Ct].push({x:ft.$item.x,y:ft.$item.y,cols:ft.$item.cols,rows:ft.$item.rows})}}removeFromPushed(ft){ft>-1&&(this.pushedItems.splice(ft,1),this.pushedItemsPath.splice(ft,1))}checkPushedItem(ft,Ct){const Ot=this.pushedItemsPath[Ct];let Zt,he,Ie,ye,Ne,Rt=Ot.length-2;for(;Rt>-1;Rt--)Zt=Ot[Rt],he=ft.$item.x,Ie=ft.$item.y,ye=ft.$item.cols,Ne=ft.$item.rows,ft.$item.x=Zt.x,ft.$item.y=Zt.y,ft.$item.cols=Zt.cols,ft.$item.rows=Zt.rows,this.gridster.findItemWithItem(ft.$item)?(ft.$item.x=he,ft.$item.y=Ie,ft.$item.cols=ye,ft.$item.rows=Ne):(ft.setSize(),Ot.splice(Rt+1,Ot.length-1-Rt));return Ot.length<2&&(this.removeFromPushed(Ct),!0)}}class Ft{constructor(ft,Ct,Ot){this.zone=Ot,this.directionFunction=null,this.dragMove=Rt=>{if(null===this.directionFunction)throw new Error("The `directionFunction` has not been set before calling `dragMove`.");Rt.stopPropagation(),Rt.preventDefault(),M.checkTouchEvent(Rt),this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,z(this.gridster,this.left,this.top,this.width,this.height,Rt,this.lastMouse,this.directionFunction,!0,this.resizeEventScrollType);const Zt=this.gridster.options.scale||1;this.directionFunction({clientX:this.originalClientX+(Rt.clientX-this.originalClientX)/Zt,clientY:this.originalClientY+(Rt.clientY-this.originalClientY)/Zt}),this.lastMouse.clientX=Rt.clientX,this.lastMouse.clientY=Rt.clientY,this.zone.run(()=>{this.gridster.updateGrid()})},this.dragStop=Rt=>{Rt.stopPropagation(),Rt.preventDefault(),st(),this.mousemove(),this.mouseup(),this.mouseleave(),this.cancelOnBlur(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.gridster.options.resizable&&this.gridster.options.resizable.stop?Promise.resolve(this.gridster.options.resizable.stop(this.gridsterItem.item,this.gridsterItem,Rt)).then(this.makeResize,this.cancelResize):this.makeResize(),setTimeout(()=>{this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-resizing"),this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())})},this.cancelResize=()=>{this.gridsterItem.$item.cols=this.gridsterItem.item.cols||1,this.gridsterItem.$item.rows=this.gridsterItem.item.rows||1,this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push.restoreItems(),this.pushResize.restoreItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null},this.makeResize=()=>{this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push.setPushedItems(),this.pushResize.setPushedItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null},this.handleNorth=Rt=>{this.top=Rt.clientY+this.offsetTop-this.diffTop,this.height=this.bottom-this.top,this.minHeight>this.height?(this.height=this.minHeight,this.top=this.bottom-this.minHeight):this.gridster.options.enableBoundaryControl&&(this.top=Math.max(0,this.top),this.height=this.bottom-this.top);const Zt=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionY(this.top+Zt,Math.floor),this.gridsterItem.$item.y!==this.newPosition){if(this.itemBackup[1]=this.gridsterItem.$item.y,this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows+=this.gridsterItem.$item.y-this.newPosition,this.gridsterItem.$item.y=this.newPosition,this.pushResize.pushItems(this.pushResize.fromSouth),this.push.pushItems(this.push.fromSouth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.y=this.itemBackup[1],this.gridsterItem.$item.rows=this.itemBackup[3],this.top=this.gridster.positionYToPixels(this.gridsterItem.$item.y),this.setItemTop(this.gridster.positionYToPixels(this.gridsterItem.$item.y)),void this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemTop(this.top),this.setItemHeight(this.height)},this.handleWest=Rt=>{const Zt=this.gridster.$options.dirType===S.RTL?this.originalClientX+(this.originalClientX-Rt.clientX):Rt.clientX;this.left=Zt+this.offsetLeft-this.diffLeft,this.width=this.right-this.left,this.minWidth>this.width?(this.width=this.minWidth,this.left=this.right-this.minWidth):this.gridster.options.enableBoundaryControl&&(this.left=Math.max(0,this.left),this.width=this.right-this.left);const he=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionX(this.left+he,Math.floor),this.gridsterItem.$item.x!==this.newPosition){if(this.itemBackup[0]=this.gridsterItem.$item.x,this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols+=this.gridsterItem.$item.x-this.newPosition,this.gridsterItem.$item.x=this.newPosition,this.pushResize.pushItems(this.pushResize.fromEast),this.push.pushItems(this.push.fromEast,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.x=this.itemBackup[0],this.gridsterItem.$item.cols=this.itemBackup[2],this.left=this.gridster.positionXToPixels(this.gridsterItem.$item.x),this.setItemLeft(this.gridster.positionXToPixels(this.gridsterItem.$item.x)),void this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemLeft(this.left),this.setItemWidth(this.width)},this.handleSouth=Rt=>{if(this.height=Rt.clientY+this.offsetTop-this.diffBottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight),this.bottom=this.top+this.height,this.gridster.options.enableBoundaryControl){const he=this.outerMarginBottom??this.margin,Ie=this.gridster.el.getBoundingClientRect();this.bottom=Math.min(this.bottom,Ie.bottom-Ie.top-2*he),this.height=this.bottom-this.top}const Zt=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionY(this.bottom+Zt,Math.ceil),this.gridsterItem.$item.y+this.gridsterItem.$item.rows!==this.newPosition){if(this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows=this.newPosition-this.gridsterItem.$item.y,this.pushResize.pushItems(this.pushResize.fromNorth),this.push.pushItems(this.push.fromNorth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.rows=this.itemBackup[3],void this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemHeight(this.height)},this.handleEast=Rt=>{const Zt=this.gridster.$options.dirType===S.RTL?this.originalClientX+(this.originalClientX-Rt.clientX):Rt.clientX;if(this.width=Zt+this.offsetLeft-this.diffRight-this.left,this.minWidth>this.width&&(this.width=this.minWidth),this.right=this.left+this.width,this.gridster.options.enableBoundaryControl){const Ie=this.outerMarginRight??this.margin,ye=this.gridster.el.getBoundingClientRect();this.right=Math.min(this.right,ye.right-ye.left-2*Ie),this.width=this.right-this.left}const he=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionX(this.right+he,Math.ceil),this.gridsterItem.$item.x+this.gridsterItem.$item.cols!==this.newPosition){if(this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols=this.newPosition-this.gridsterItem.$item.x,this.pushResize.pushItems(this.pushResize.fromWest),this.push.pushItems(this.push.fromWest,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item))return this.gridsterItem.$item.cols=this.itemBackup[2],void this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);this.gridster.previewStyle(),this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemWidth(this.width)},this.handleNorthWest=Rt=>{this.handleNorth(Rt),this.handleWest(Rt)},this.handleNorthEast=Rt=>{this.handleNorth(Rt),this.handleEast(Rt)},this.handleSouthWest=Rt=>{this.handleSouth(Rt),this.handleWest(Rt)},this.handleSouthEast=Rt=>{this.handleSouth(Rt),this.handleEast(Rt)},this.gridsterItem=ft,this.gridster=Ct,this.lastMouse={clientX:0,clientY:0},this.itemBackup=[0,0,0,0],this.resizeEventScrollType={west:!1,east:!1,north:!1,south:!1}}destroy(){this.gridster?.previewStyle(),this.gridster=this.gridsterItem=null}dragStart(ft){if(ft.which&&1!==ft.which)return;this.gridster.options.resizable&&this.gridster.options.resizable.start&&this.gridster.options.resizable.start(this.gridsterItem.item,this.gridsterItem,ft),ft.stopPropagation(),ft.preventDefault(),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-resizing"),this.lastMouse.clientX=ft.clientX,this.lastMouse.clientY=ft.clientY,this.left=this.gridsterItem.left,this.top=this.gridsterItem.top,this.originalClientX=ft.clientX,this.originalClientY=ft.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.bottom=this.gridsterItem.top+this.gridsterItem.height,this.right=this.gridsterItem.left+this.gridsterItem.width,this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.diffLeft=ft.clientX+this.offsetLeft-this.left,this.diffRight=ft.clientX+this.offsetLeft-this.right,this.diffTop=ft.clientY+this.offsetTop-this.top,this.diffBottom=ft.clientY+this.offsetTop-this.bottom,this.minHeight=this.gridster.positionYToPixels(this.gridsterItem.$item.minItemRows||this.gridster.$options.minItemRows)-this.margin,this.minWidth=this.gridster.positionXToPixels(this.gridsterItem.$item.minItemCols||this.gridster.$options.minItemCols)-this.margin,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(),this.push=new u(this.gridsterItem),this.pushResize=new Pt(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid();const{classList:Ct}=ft.target;Ct.contains("handle-n")?(this.resizeEventScrollType.north=!0,this.directionFunction=this.handleNorth):Ct.contains("handle-w")?this.gridster.$options.dirType===S.RTL?(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):Ct.contains("handle-s")?(this.resizeEventScrollType.south=!0,this.directionFunction=this.handleSouth):Ct.contains("handle-e")?this.gridster.$options.dirType===S.RTL?(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):Ct.contains("handle-nw")?this.gridster.$options.dirType===S.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):Ct.contains("handle-ne")?this.gridster.$options.dirType===S.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):Ct.contains("handle-sw")?this.gridster.$options.dirType===S.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):Ct.contains("handle-se")&&(this.gridster.$options.dirType===S.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast))}toggle(){this.resizeEnabled=this.gridsterItem.canBeResized(),this.resizableHandles=this.gridsterItem.getResizableHandles()}dragStartDelay(ft){if(M.checkTouchEvent(ft),!this.gridster.$options.resizable.delayStart)return void this.dragStart(ft);const Ct=setTimeout(()=>{this.dragStart(ft),He()},this.gridster.$options.resizable.delayStart),{cancelMouse:Ot,cancelMouseLeave:Rt,cancelOnBlur:Zt,cancelTouchMove:he,cancelTouchEnd:Ie,cancelTouchCancel:ye}=this.zone.runOutsideAngular(()=>({cancelMouse:this.gridsterItem.renderer.listen("document","mouseup",He),cancelMouseLeave:this.gridsterItem.renderer.listen("document","mouseleave",He),cancelOnBlur:this.gridsterItem.renderer.listen("window","blur",He),cancelTouchMove:this.gridsterItem.renderer.listen("document","touchmove",Ne),cancelTouchEnd:this.gridsterItem.renderer.listen("document","touchend",He),cancelTouchCancel:this.gridsterItem.renderer.listen("document","touchcancel",He)}));function Ne(ze){M.checkTouchEvent(ze),(Math.abs(ze.clientX-ft.clientX)>9||Math.abs(ze.clientY-ft.clientY)>9)&&He()}function He(){clearTimeout(Ct),Zt(),Ot(),Rt(),he(),Ie(),ye()}}setItemTop(ft){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,ft)}setItemLeft(ft){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,ft,this.top)}setItemHeight(ft){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"height",ft+"px")}setItemWidth(ft){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"width",ft+"px")}}class jt{get zIndex(){return this.getLayerIndex()+this.gridster.$options.baseLayerIndex}constructor(ft,Ct,Ot,Rt){this.renderer=Ot,this.zone=Rt,this.itemInit=new t.EventEmitter,this.itemChange=new t.EventEmitter,this.itemResize=new t.EventEmitter,this.el=ft.nativeElement,this.$item={cols:-1,rows:-1,x:-1,y:-1},this.gridster=Ct,this.drag=new Dt(this,Ct,this.zone),this.resize=new Ft(this,Ct,this.zone)}ngOnInit(){this.gridster.addItem(this)}ngOnChanges(ft){ft.item&&(this.updateOptions(),this.init||this.gridster.calculateLayout$.next()),ft.item&&ft.item.previousValue&&this.setSize()}updateOptions(){this.$item=M.merge(this.$item,this.item,{cols:void 0,rows:void 0,x:void 0,y:void 0,layerIndex:void 0,dragEnabled:void 0,resizeEnabled:void 0,compactEnabled:void 0,maxItemRows:void 0,minItemRows:void 0,maxItemCols:void 0,minItemCols:void 0,maxItemArea:void 0,minItemArea:void 0,resizableHandles:{s:void 0,e:void 0,n:void 0,w:void 0,se:void 0,ne:void 0,sw:void 0,nw:void 0}})}ngOnDestroy(){this.gridster.removeItem(this),this.drag.destroy(),this.resize.destroy(),this.gridster=this.drag=this.resize=null}setSize(){this.renderer.setStyle(this.el,"display",this.notPlaced?"":"block"),this.gridster.gridRenderer.updateItem(this.el,this.$item,this.renderer),this.updateItemSize()}updateItemSize(){const ft=this.$item.y*this.gridster.curRowHeight,Ct=this.$item.x*this.gridster.curColWidth,Ot=this.$item.cols*this.gridster.curColWidth-this.gridster.$options.margin,Rt=this.$item.rows*this.gridster.curRowHeight-this.gridster.$options.margin;this.top=ft,this.left=Ct,!this.init&&Ot>0&&Rt>0&&(this.init=!0,this.item.initCallback&&this.item.initCallback(this.item,this),this.gridster.options.itemInitCallback&&this.gridster.options.itemInitCallback(this.item,this),this.itemInit.next({item:this.item,itemComponent:this}),this.gridster.$options.scrollToNewItems&&this.el.scrollIntoView(!1)),(Ot!==this.width||Rt!==this.height)&&(this.width=Ot,this.height=Rt,this.gridster.options.itemResizeCallback&&this.gridster.options.itemResizeCallback(this.item,this),this.itemResize.next({item:this.item,itemComponent:this}))}itemChanged(){this.gridster.options.itemChangeCallback&&this.gridster.options.itemChangeCallback(this.item,this),this.itemChange.next({item:this.item,itemComponent:this})}checkItemChanges(ft,Ct){ft.rows===Ct.rows&&ft.cols===Ct.cols&&ft.x===Ct.x&&ft.y===Ct.y||(this.gridster.checkCollision(this.$item)?(this.$item.x=Ct.x||0,this.$item.y=Ct.y||0,this.$item.cols=Ct.cols||1,this.$item.rows=Ct.rows||1,this.setSize()):(this.item.cols=this.$item.cols,this.item.rows=this.$item.rows,this.item.x=this.$item.x,this.item.y=this.$item.y,this.gridster.calculateLayout$.next(),this.itemChanged()))}canBeDragged(){const ft=this.gridster.$options.draggable.enabled,Ct=void 0===this.$item.dragEnabled?ft:this.$item.dragEnabled;return!this.gridster.mobile&&ft&&Ct}canBeResized(){const ft=this.gridster.$options.resizable.enabled,Ct=void 0===this.$item.resizeEnabled?ft:this.$item.resizeEnabled;return!this.gridster.mobile&&ft&&Ct}getResizableHandles(){const ft=this.gridster.$options.resizable.handles,Ct=this.$item.resizableHandles;return void 0===Ct?ft:{...ft,...Ct}}bringToFront(ft){if(ft&&ft<=0)return;const Ct=this.getLayerIndex(),Ot=this.gridster.$options.maxLayerIndex;if(CtOt?Ot:Rt}}sendToBack(ft){if(ft&&ft<=0)return;const Ct=this.getLayerIndex();if(Ct>0){const Ot=ft?Ct-ft:0;this.item.layerIndex=this.$item.layerIndex=Ot<0?0:Ot}}getLayerIndex(){return void 0!==this.item.layerIndex?this.item.layerIndex:void 0!==this.gridster.$options.defaultLayerIndex?this.gridster.$options.defaultLayerIndex:0}}jt.\u0275fac=function(ft){return new(ft||jt)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(d),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.NgZone))},jt.\u0275cmp=t.\u0275\u0275defineComponent({type:jt,selectors:[["gridster-item"]],hostVars:2,hostBindings:function(ft,Ct){2&ft&&t.\u0275\u0275styleProp("z-index",Ct.zIndex)},inputs:{item:"item"},outputs:{itemInit:"itemInit",itemChange:"itemChange",itemResize:"itemResize"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature,t.\u0275\u0275StandaloneFeature],ngContentSelectors:W,decls:9,vars:8,consts:[["class","gridster-item-resizable-handler handle-s",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-e",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-n",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-w",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-se",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-ne",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-sw",3,"mousedown","touchstart",4,"ngIf"],["class","gridster-item-resizable-handler handle-nw",3,"mousedown","touchstart",4,"ngIf"],[1,"gridster-item-resizable-handler","handle-s",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-e",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-n",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-w",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-se",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-ne",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-sw",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-nw",3,"mousedown","touchstart"]],template:function(ft,Ct){1&ft&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0),t.\u0275\u0275template(1,V,1,0,"div",0),t.\u0275\u0275template(2,R,1,0,"div",1),t.\u0275\u0275template(3,P,1,0,"div",2),t.\u0275\u0275template(4,k,1,0,"div",3),t.\u0275\u0275template(5,E,1,0,"div",4),t.\u0275\u0275template(6,w,1,0,"div",5),t.\u0275\u0275template(7,T,1,0,"div",6),t.\u0275\u0275template(8,y,1,0,"div",7)),2&ft&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==Ct.resize.resizableHandles?null:Ct.resize.resizableHandles.s)&&Ct.resize.resizeEnabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==Ct.resize.resizableHandles?null:Ct.resize.resizableHandles.e)&&Ct.resize.resizeEnabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==Ct.resize.resizableHandles?null:Ct.resize.resizableHandles.n)&&Ct.resize.resizeEnabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==Ct.resize.resizableHandles?null:Ct.resize.resizableHandles.w)&&Ct.resize.resizeEnabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==Ct.resize.resizableHandles?null:Ct.resize.resizableHandles.se)&&Ct.resize.resizeEnabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==Ct.resize.resizableHandles?null:Ct.resize.resizableHandles.ne)&&Ct.resize.resizeEnabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==Ct.resize.resizableHandles?null:Ct.resize.resizableHandles.sw)&&Ct.resize.resizeEnabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==Ct.resize.resizableHandles?null:Ct.resize.resizableHandles.nw)&&Ct.resize.resizeEnabled))},dependencies:[pt.NgIf],styles:["gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:white;-webkit-user-select:text;user-select:text}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-resizing,gridster-item.gridster-item-moving{transition:0s;z-index:2;box-shadow:0 0 5px 5px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;right:0;top:0;left:0}.gridster-item-resizable-handler.handle-e{cursor:ew-resize;width:10px;bottom:0;right:0;top:0}.gridster-item-resizable-handler.handle-s{cursor:ns-resize;height:10px;right:0;bottom:0;left:0}.gridster-item-resizable-handler.handle-w{cursor:ew-resize;width:10px;left:0;top:0;bottom:0}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;width:10px;height:10px;right:0;top:0}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;width:10px;height:10px;left:0;top:0}.gridster-item-resizable-handler.handle-se{cursor:se-resize;width:0;height:0;right:0;bottom:0;border-style:solid;border-width:0 0 10px 10px;border-color:transparent}.gridster-item-resizable-handler.handle-sw{cursor:sw-resize;width:10px;height:10px;left:0;bottom:0}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:transparent transparent #ccc}\n"],encapsulation:2});class _t{}_t.\u0275fac=function(ft){return new(ft||_t)},_t.\u0275mod=t.\u0275\u0275defineNgModule({type:_t}),_t.\u0275inj=t.\u0275\u0275defineInjector({imports:[d,jt]})},6978:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>Y});const pt={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection",69:"`width` or `height` cannot be provided together with `scale`"};class t extends Error{constructor(O){const U=pt[O];super(U),this.code=O,this.name="AssertionError",this.message=U}}const Y=t},2815:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>Z});var pt=ht(6978),t=ht(3632),Y=ht(9889),q=ht(8214);const O_LENGTH="length";class U extends q.ZP{constructor(W,V,R){super(W),this.element=V,this.index=R}}class G extends t.Z{constructor(W,V){if(super(),this.on,this.once,this.un,V=V||{},this.unique_=!!V.unique,this.array_=W||[],this.unique_)for(let R=0,P=this.array_.length;R0;)this.pop()}extend(W){for(let V=0,R=W.length;Vthis.getLength())throw new Error("Index out of bounds: "+W);this.unique_&&this.assertUnique_(V),this.array_.splice(W,0,V),this.updateLength_(),this.dispatchEvent(new U(Y.Z.ADD,V,W))}pop(){return this.removeAt(this.getLength()-1)}push(W){this.unique_&&this.assertUnique_(W);const V=this.getLength();return this.insertAt(V,W),this.getLength()}remove(W){const V=this.array_;for(let R=0,P=V.length;R=this.getLength())return;const V=this.array_[W];return this.array_.splice(W,1),this.updateLength_(),this.dispatchEvent(new U(Y.Z.REMOVE,V,W)),V}setAt(W,V){if(W>=this.getLength())return void this.insertAt(W,V);if(W<0)throw new Error("Index out of bounds: "+W);this.unique_&&this.assertUnique_(V,W);const P=this.array_[W];this.array_[W]=V,this.dispatchEvent(new U(Y.Z.REMOVE,P,W)),this.dispatchEvent(new U(Y.Z.ADD,V,W))}updateLength_(){this.set(O_LENGTH,this.array_.length)}assertUnique_(W,V){for(let R=0,P=this.array_.length;R{"use strict";ht.d($t,{Z:()=>pt});const pt={ADD:"add",REMOVE:"remove"}},625:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>t});const t=class pt{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},3171:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>G});var pt=ht(3632),t=ht(9972),Y=ht(1911),q=ht(1729);class O extends pt.Z{constructor($){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),$)if("function"==typeof $.getSimplifiedGeometry){const W=$;this.setGeometry(W)}else{const W=$;this.setProperties(W)}}clone(){const $=new O(this.hasProperties()?this.getProperties():null);$.setGeometryName(this.getGeometryName());const W=this.getGeometry();W&&$.setGeometry(W.clone());const V=this.getStyle();return V&&$.setStyle(V),$}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,q.bN)(this.geometryChangeKey_),this.geometryChangeKey_=null);const $=this.getGeometry();$&&(this.geometryChangeKey_=(0,q.oL)($,t.Z.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry($){this.set(this.geometryName_,$)}setStyle($){this.style_=$,this.styleFunction_=$?function U(Z){if("function"==typeof Z)return Z;let $;return Array.isArray(Z)?$=Z:((0,Y.h)("function"==typeof Z.getZIndex,41),$=[Z]),function(){return $}}($):void 0,this.changed()}setId($){this.id_=$,this.changed()}setGeometryName($){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=$,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const G=O},3641:(Jt,$t,ht)=>{"use strict";ht.d($t,{K:()=>O});var pt=ht(9972),t=ht(9996),Y=ht(1729);function O(G,Z,$){const W=G;let V=!0,R=!1,P=!1;const k=[(0,Y.Vx)(W,pt.Z.LOAD,function(){P=!0,R||Z()})];return W.src&&t.Tp?(R=!0,W.decode().then(function(){V&&Z()}).catch(function(E){V&&(P?Z():$())})):k.push((0,Y.Vx)(W,pt.Z.ERROR,$)),function(){V=!1,k.forEach(Y.bN)}}},521:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>pt});const pt={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},9001:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>G});var pt=ht(1299),t=ht(1999),Y=ht(1992),q=ht(3641);class O extends pt.Z{constructor($,W,V,R,P,k){super($,W,k),this.crossOrigin_=R,this.src_=V,this.key=V,this.image_=new Image,null!==R&&(this.image_.crossOrigin=R),this.unlisten_=null,this.tileLoadFunction_=P}getImage(){return this.image_}setImage($){this.image_=$,this.state=t.Z.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=t.Z.ERROR,this.unlistenImage_(),this.image_=function U(){const Z=(0,Y.E4)(1,1);return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),Z.canvas}(),this.changed()}handleImageLoad_(){const $=this.image_;$.naturalWidth&&$.naturalHeight?this.state=t.Z.LOADED:this.state=t.Z.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==t.Z.ERROR&&(this.state=t.Z.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==t.Z.IDLE&&(this.state=t.Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,q.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}const G=O},4660:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>Di});var pt=ht(3632),t=ht(2815),Y=ht(9889),q=ht(625),O=ht(1345),U=ht(119),G=ht(483),Z=ht(760),$=ht(2956),W=ht(4593),V=ht(3481);class R extends q.Z{constructor(Vt){super(),this.map_=Vt}dispatchRenderEvent(Vt,oe){(0,U.O3)()}calculateMatrices2D(Vt){const oe=Vt.viewState,fe=Vt.coordinateToPixelTransform,ve=Vt.pixelToCoordinateTransform;(0,G.qC)(fe,Vt.size[0]/2,Vt.size[1]/2,1/oe.resolution,-1/oe.resolution,-oe.rotation,-oe.center[0],-oe.center[1]),(0,G.nb)(ve,fe)}forEachFeatureAtCoordinate(Vt,oe,fe,ve,qe,ti,mi,Mi){let Oe;const fn=oe.viewState;function tn(un,An,rn,$r){return qe.call(ti,An,un?rn:null,$r)}const Ti=fn.projection,nn=(0,V.Cf)(Vt.slice(),Ti),Yi=[[0,0]];if(Ti.canWrapX()&&ve){const un=Ti.getExtent(),An=(0,Z.dz)(un);Yi.push([-An,0],[An,0])}const Xi=oe.layerStatesArray,Hn=Xi.length,Pn=[],Ci=[];for(let un=0;un=0;--An){const rn=Xi[An],$r=rn.layer;if($r.hasRenderer()&&(0,W.j)(rn,fn)&&mi.call(Mi,$r)){const Ln=$r.getRenderer(),je=$r.getSource();if(Ln&&je){const ee=je.getWrapX()?nn:Vt,gn=tn.bind(null,rn.managed);Ci[0]=ee[0]+Yi[un][0],Ci[1]=ee[1]+Yi[un][1],Oe=Ln.forEachFeatureAtCoordinate(Ci,oe,fe,gn,Pn)}if(Oe)return Oe}}if(0===Pn.length)return;const _s=1/Pn.length;return Pn.forEach((un,An)=>un.distanceSq+=An*_s),Pn.sort((un,An)=>un.distanceSq-An.distanceSq),Pn.some(un=>Oe=un.callback(un.feature,un.layer,un.geometry)),Oe}hasFeatureAtCoordinate(Vt,oe,fe,ve,qe,ti){return void 0!==this.forEachFeatureAtCoordinate(Vt,oe,fe,ve,O.uX,this,qe,ti)}getMap(){return this.map_}renderFrame(Vt){(0,U.O3)()}scheduleExpireIconCache(Vt){$.c.canExpireCache()&&Vt.postRenderFunctions.push(P)}}function P(Re,Vt){$.c.expire()}const k=R;var E=ht(4587),w=ht(2919),T=ht(2526),y=ht(5263),A=ht(4686),g=ht(1729),v=ht(1992);const N=class S extends k{constructor(Vt){super(Vt),this.fontChangeListenerKey_=(0,g.oL)(A.sG,E.Z.PROPERTYCHANGE,Vt.redrawText.bind(Vt)),this.element_=document.createElement("div");const oe=this.element_.style;oe.position="absolute",oe.width="100%",oe.height="100%",oe.zIndex="0",this.element_.className=y.XV+" ol-layers";const fe=Vt.getViewport();fe.insertBefore(this.element_,fe.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(Vt,oe){const fe=this.getMap();if(fe.hasListener(Vt)){const ve=new w.Z(Vt,void 0,oe);fe.dispatchEvent(ve)}}disposeInternal(){(0,g.bN)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(Vt){if(!Vt)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(Vt),this.dispatchRenderEvent(T.Z.PRECOMPOSE,Vt);const oe=Vt.layerStatesArray.sort(function(ti,mi){return ti.zIndex-mi.zIndex}),fe=Vt.viewState;this.children_.length=0;const ve=[];let qe=null;for(let ti=0,mi=oe.length;ti=0;--ti)ve[ti].renderDeclutter(Vt);(0,v.hF)(this.element_,this.children_),this.dispatchRenderEvent(T.Z.POSTCOMPOSE,Vt),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(Vt)}};var j=ht(9972),M=ht(5560),D=ht(8214),I=ht(1911),b=ht(9466);class d extends D.ZP{constructor(Vt,oe){super(Vt),this.layer=oe}}const u_LAYERS="layers";class a extends M.Z{constructor(Vt){Vt=Vt||{};const oe=Object.assign({},Vt);delete oe.layers;let fe=Vt.layers;super(oe),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(u_LAYERS,this.handleLayersChanged_),fe?Array.isArray(fe)?fe=new t.Z(fe.slice(),{unique:!0}):(0,I.h)("function"==typeof fe.getArray,43):fe=new t.Z(void 0,{unique:!0}),this.setLayers(fe)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(g.bN),this.layersListenerKeys_.length=0;const Vt=this.getLayers();this.layersListenerKeys_.push((0,g.oL)(Vt,Y.Z.ADD,this.handleLayersAdd_,this),(0,g.oL)(Vt,Y.Z.REMOVE,this.handleLayersRemove_,this));for(const fe in this.listenerKeys_)this.listenerKeys_[fe].forEach(g.bN);(0,b.Z)(this.listenerKeys_);const oe=Vt.getArray();for(let fe=0,ve=oe.length;fe{this.clickTimeoutId_=void 0;const fe=new B(X.SINGLECLICK,this.map_,Vt);this.dispatchEvent(fe)},250)}updateActivePointers_(Vt){const oe=Vt,fe=oe.pointerId;if(oe.type==X.POINTERUP||oe.type==X.POINTERCANCEL){delete this.trackedTouches_[fe];for(const ve in this.trackedTouches_)if(this.trackedTouches_[ve].target!==oe.target){delete this.trackedTouches_[ve];break}}else(oe.type==X.POINTERDOWN||oe.type==X.POINTERMOVE)&&(this.trackedTouches_[fe]=oe);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(Vt){this.updateActivePointers_(Vt);const oe=new B(X.POINTERUP,this.map_,Vt,void 0,void 0,this.activePointers_);this.dispatchEvent(oe),this.emulateClicks_&&!oe.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(Vt)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(g.bN),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(Vt){return 0===Vt.button}handlePointerDown_(Vt){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(Vt);const oe=new B(X.POINTERDOWN,this.map_,Vt,void 0,void 0,this.activePointers_);this.dispatchEvent(oe),this.down_={};for(const fe in Vt){const ve=Vt[fe];this.down_[fe]="function"==typeof ve?O.Zn:ve}if(0===this.dragListenerKeys_.length){const fe=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,g.oL)(fe,X.POINTERMOVE,this.handlePointerMove_,this),(0,g.oL)(fe,X.POINTERUP,this.handlePointerUp_,this),(0,g.oL)(this.element_,X.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==fe&&this.dragListenerKeys_.push((0,g.oL)(this.element_.getRootNode(),X.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(Vt){if(this.isMoving_(Vt)){this.updateActivePointers_(Vt),this.dragging_=!0;const oe=new B(X.POINTERDRAG,this.map_,Vt,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(oe)}}relayMoveEvent_(Vt){this.originalPointerMoveEvent_=Vt;const oe=!(!this.down_||!this.isMoving_(Vt));this.dispatchEvent(new B(X.POINTERMOVE,this.map_,Vt,oe))}handleTouchMove_(Vt){const oe=this.originalPointerMoveEvent_;(!oe||oe.defaultPrevented)&&("boolean"!=typeof Vt.cancelable||!0===Vt.cancelable)&&Vt.preventDefault()}isMoving_(Vt){return this.dragging_||Math.abs(Vt.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(Vt.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,g.bN)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(j.Z.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,g.bN)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(g.bN),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const et=z;var at=ht(7656);const st_LAYERGROUP="layergroup",st_SIZE="size",st_TARGET="target",st_VIEW="view",H=1/0;const nt=class ot{constructor(Vt,oe){this.priorityFunction_=Vt,this.keyFunction_=oe,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,b.Z)(this.queuedElements_)}dequeue(){const Vt=this.elements_,oe=this.priorities_,fe=Vt[0];1==Vt.length?(Vt.length=0,oe.length=0):(Vt[0]=Vt.pop(),oe[0]=oe.pop(),this.siftUp_(0));const ve=this.keyFunction_(fe);return delete this.queuedElements_[ve],fe}enqueue(Vt){(0,I.h)(!(this.keyFunction_(Vt)in this.queuedElements_),31);const oe=this.priorityFunction_(Vt);return oe!=H&&(this.elements_.push(Vt),this.priorities_.push(oe),this.queuedElements_[this.keyFunction_(Vt)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(Vt){return 2*Vt+1}getRightChildIndex_(Vt){return 2*Vt+2}getParentIndex_(Vt){return Vt-1>>1}heapify_(){let Vt;for(Vt=(this.elements_.length>>1)-1;Vt>=0;Vt--)this.siftUp_(Vt)}isEmpty(){return 0===this.elements_.length}isKeyQueued(Vt){return Vt in this.queuedElements_}isQueued(Vt){return this.isKeyQueued(this.keyFunction_(Vt))}siftUp_(Vt){const oe=this.elements_,fe=this.priorities_,ve=oe.length,qe=oe[Vt],ti=fe[Vt],mi=Vt;for(;Vt>1;){const Mi=this.getLeftChildIndex_(Vt),Oe=this.getRightChildIndex_(Vt),fn=OeVt;){const mi=this.getParentIndex_(oe);if(!(ve[mi]>ti))break;fe[oe]=fe[mi],ve[oe]=ve[mi],oe=mi}fe[oe]=qe,ve[oe]=ti}reprioritize(){const Vt=this.priorityFunction_,oe=this.elements_,fe=this.priorities_;let ve=0;const qe=oe.length;let ti,mi,Mi;for(mi=0;mi0;)qe=this.dequeue()[0],ti=qe.getKey(),ve=qe.getState(),ve===yt.Z.IDLE&&!(ti in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[ti]=!0,++this.tilesLoading_,++fe,qe.load())}};var wt=ht(2811),Mt=ht(8587),Dt=ht(3969);const Pt_ACTIVE="active";var Ft=ht(6299);class jt extends pt.Z{constructor(Vt){super(),this.on,this.once,this.un,Vt&&Vt.handleEvent&&(this.handleEvent=Vt.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Pt_ACTIVE)}getMap(){return this.map_}handleEvent(Vt){return!0}setActive(Vt){this.set(Pt_ACTIVE,Vt)}setMap(Vt){this.map_=Vt}}function bt(Re,Vt,oe,fe){const ve=Re.getZoom();if(void 0===ve)return;const qe=Re.getConstrainedZoom(ve+Vt),ti=Re.getResolutionForZoom(qe);Re.getAnimating()&&Re.cancelAnimations(),Re.animate({resolution:ti,anchor:oe,duration:void 0!==fe?fe:250,easing:Ft.Vv})}const _t=jt;const ft=class xt extends _t{constructor(Vt){super(),Vt=Vt||{},this.delta_=Vt.delta?Vt.delta:1,this.duration_=void 0!==Vt.duration?Vt.duration:250}handleEvent(Vt){let oe=!1;if(Vt.type==X.DBLCLICK){const fe=Vt.originalEvent,ve=Vt.map,qe=Vt.coordinate,ti=fe.shiftKey?-this.delta_:this.delta_;bt(ve.getView(),ti,qe,this.duration_),fe.preventDefault(),oe=!0}return!oe}};function Ot(Re){const Vt=Re.length;let oe=0,fe=0;for(let ve=0;ve0}}else if(Vt.type==X.POINTERDOWN){const fe=this.handleDownEvent(Vt);this.handlingDownUpSequence=fe,oe=this.stopDown(fe)}else Vt.type==X.POINTERMOVE&&this.handleMoveEvent(Vt);return!oe}handleMoveEvent(Vt){}handleUpEvent(Vt){return!1}stopDown(Vt){return Vt}updateTrackedPointers_(Vt){Vt.activePointers&&(this.targetPointers=Vt.activePointers)}};function Zt(Re){const Vt=arguments;return function(oe){let fe=!0;for(let ve=0,qe=Vt.length;ve0&&this.condition_(Vt)){const fe=Vt.map.getView();return this.lastCentroid=null,fe.getAnimating()&&fe.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var dr=ht(9857);const sn=class Mn extends Rt{constructor(Vt){Vt=Vt||{},super({stopDown:O.Dv}),this.condition_=Vt.condition?Vt.condition:Ie,this.lastAngle_=void 0,this.duration_=void 0!==Vt.duration?Vt.duration:250}handleDragEvent(Vt){if(!_i(Vt))return;const oe=Vt.map,fe=oe.getView();if(fe.getConstraints().rotation===dr.h$)return;const ve=oe.getSize(),qe=Vt.pixel,ti=Math.atan2(ve[1]/2-qe[1],qe[0]-ve[0]/2);if(void 0!==this.lastAngle_){const mi=ti-this.lastAngle_;fe.adjustRotationInternal(-mi)}this.lastAngle_=ti}handleUpEvent(Vt){return!_i(Vt)||(Vt.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(Vt){return!!(_i(Vt)&&ii(Vt)&&this.condition_(Vt))&&(Vt.map.getView().beginInteraction(),this.lastAngle_=void 0,!0)}};var si=ht(4173);class ce extends q.Z{constructor(Vt){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+Vt,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const Vt=this.startPixel_,oe=this.endPixel_,ve=this.element_.style;ve.left=Math.min(Vt[0],oe[0])+"px",ve.top=Math.min(Vt[1],oe[1])+"px",ve.width=Math.abs(oe[0]-Vt[0])+"px",ve.height=Math.abs(oe[1]-Vt[1])+"px"}setMap(Vt){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const oe=this.element_.style;oe.left="inherit",oe.top="inherit",oe.width="inherit",oe.height="inherit"}this.map_=Vt,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(Vt,oe){this.startPixel_=Vt,this.endPixel_=oe,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const Vt=this.startPixel_,oe=this.endPixel_,ve=[Vt,[Vt[0],oe[1]],oe,[oe[0],Vt[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);ve[4]=ve[0].slice(),this.geometry_?this.geometry_.setCoordinates([ve]):this.geometry_=new si.ZP([ve])}getGeometry(){return this.geometry_}}const Ee=ce,Ke_BOXSTART="boxstart",Ke_BOXDRAG="boxdrag",Ke_BOXEND="boxend",Ke_BOXCANCEL="boxcancel";class di extends D.ZP{constructor(Vt,oe,fe){super(Vt),this.coordinate=oe,this.mapBrowserEvent=fe}}const Hi=class Fi extends Rt{constructor(Vt){super(),this.on,this.once,this.un,Vt=Vt||{},this.box_=new Ee(Vt.className||"ol-dragbox"),this.minArea_=void 0!==Vt.minArea?Vt.minArea:64,Vt.onBoxEnd&&(this.onBoxEnd=Vt.onBoxEnd),this.startPixel_=null,this.condition_=Vt.condition?Vt.condition:ii,this.boxEndCondition_=Vt.boxEndCondition?Vt.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(Vt,oe,fe){const ve=fe[0]-oe[0],qe=fe[1]-oe[1];return ve*ve+qe*qe>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(Vt){this.box_.setPixels(this.startPixel_,Vt.pixel),this.dispatchEvent(new di(Ke_BOXDRAG,Vt.coordinate,Vt))}handleUpEvent(Vt){this.box_.setMap(null);const oe=this.boxEndCondition_(Vt,this.startPixel_,Vt.pixel);return oe&&this.onBoxEnd(Vt),this.dispatchEvent(new di(oe?Ke_BOXEND:Ke_BOXCANCEL,Vt.coordinate,Vt)),!1}handleDownEvent(Vt){return!!this.condition_(Vt)&&(this.startPixel_=Vt.pixel,this.box_.setMap(Vt.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new di(Ke_BOXSTART,Vt.coordinate,Vt)),!0)}onBoxEnd(Vt){}};const zn=class Dn extends Hi{constructor(Vt){super({condition:(Vt=Vt||{}).condition?Vt.condition:Se,className:Vt.className||"ol-dragzoom",minArea:Vt.minArea}),this.duration_=void 0!==Vt.duration?Vt.duration:200,this.out_=void 0!==Vt.out&&Vt.out}onBoxEnd(Vt){const fe=this.getMap().getView();let ve=this.getGeometry();if(this.out_){const qe=fe.rotatedExtentForGeometry(ve),ti=fe.getResolutionForExtentInternal(qe),mi=fe.getResolution()/ti;ve=ve.clone(),ve.scale(mi*mi)}fe.fitInternal(ve,{duration:this.duration_,easing:Ft.Vv})}},Ji_LEFT=37,Ji_UP=38,Ji_RIGHT=39,Ji_DOWN=40;const Or=class lr extends _t{constructor(Vt){super(),Vt=Vt||{},this.defaultCondition_=function(oe){return be(oe)&&Le(oe)},this.condition_=void 0!==Vt.condition?Vt.condition:this.defaultCondition_,this.duration_=void 0!==Vt.duration?Vt.duration:100,this.pixelDelta_=void 0!==Vt.pixelDelta?Vt.pixelDelta:128}handleEvent(Vt){let oe=!1;if(Vt.type==j.Z.KEYDOWN){const fe=Vt.originalEvent,ve=fe.keyCode;if(this.condition_(Vt)&&(ve==Ji_DOWN||ve==Ji_LEFT||ve==Ji_RIGHT||ve==Ji_UP)){const ti=Vt.map.getView(),mi=ti.getResolution()*this.pixelDelta_;let Mi=0,Oe=0;ve==Ji_DOWN?Oe=-mi:ve==Ji_LEFT?Mi=-mi:ve==Ji_RIGHT?Mi=mi:Oe=mi;const fn=[Mi,Oe];(0,V.U1)(fn,ti.getRotation()),function Ut(Re,Vt,oe){const fe=Re.getCenterInternal();if(fe){const ve=[fe[0]+Vt[0],fe[1]+Vt[1]];Re.animateInternal({duration:void 0!==oe?oe:250,easing:Ft.GE,center:Re.getConstrainedCenter(ve)})}}(ti,fn,this.duration_),fe.preventDefault(),oe=!0}}return!oe}};const Xe=class Jn extends _t{constructor(Vt){super(),Vt=Vt||{},this.condition_=Vt.condition?Vt.condition:Le,this.delta_=Vt.delta?Vt.delta:1,this.duration_=void 0!==Vt.duration?Vt.duration:100}handleEvent(Vt){let oe=!1;if(Vt.type==j.Z.KEYDOWN||Vt.type==j.Z.KEYPRESS){const fe=Vt.originalEvent,ve=fe.charCode;if(this.condition_(Vt)&&(ve=="+".charCodeAt(0)||ve=="-".charCodeAt(0))){const qe=Vt.map,ti=ve=="+".charCodeAt(0)?this.delta_:-this.delta_;bt(qe.getView(),ti,void 0,this.duration_),fe.preventDefault(),oe=!0}}return!oe}};const te=class Wt{constructor(Vt,oe,fe){this.decay_=Vt,this.minVelocity_=oe,this.delay_=fe,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(Vt,oe){this.points_.push(Vt,oe,Date.now())}end(){if(this.points_.length<6)return!1;const Vt=Date.now()-this.delay_,oe=this.points_.length-3;if(this.points_[oe+2]0&&this.points_[fe+2]>Vt;)fe-=3;const ve=this.points_[oe+2]-this.points_[fe+2];if(ve<1e3/60)return!1;const qe=this.points_[oe]-this.points_[fe],ti=this.points_[oe+1]-this.points_[fe+1];return this.angle_=Math.atan2(ti,qe),this.initialVelocity_=Math.sqrt(qe*qe+ti*ti)/ve,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};var ie=ht(2156);const ge=class me extends _t{constructor(Vt){super(Vt=Vt||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==Vt.maxDelta?Vt.maxDelta:1,this.duration_=void 0!==Vt.duration?Vt.duration:250,this.timeout_=void 0!==Vt.timeout?Vt.timeout:80,this.useAnchor_=void 0===Vt.useAnchor||Vt.useAnchor,this.constrainResolution_=void 0!==Vt.constrainResolution&&Vt.constrainResolution;const oe=Vt.condition?Vt.condition:He;this.condition_=Vt.onFocusOnly?Zt(Ne,oe):oe,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const Vt=this.getMap();Vt&&Vt.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(Vt){if(!this.condition_(Vt)||Vt.type!==j.Z.WHEEL)return!0;const fe=Vt.map,ve=Vt.originalEvent;let qe;if(ve.preventDefault(),this.useAnchor_&&(this.lastAnchor_=Vt.coordinate),Vt.type==j.Z.WHEEL&&(qe=ve.deltaY,L.V&&ve.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(qe/=L.MP),ve.deltaMode===WheelEvent.DOM_DELTA_LINE&&(qe*=40)),0===qe)return!1;this.lastDelta_=qe;const ti=Date.now();void 0===this.startTime_&&(this.startTime_=ti),(!this.mode_||ti-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(qe)<4?"trackpad":"wheel");const mi=fe.getView();if("trackpad"===this.mode_&&!mi.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(mi.getAnimating()&&mi.cancelAnimations(),mi.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),mi.adjustZoom(-qe/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=ti,!1;this.totalDelta_+=qe;const Mi=Math.max(this.timeout_-(ti-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,fe),Mi),!1}handleWheelZoom_(Vt){const oe=Vt.getView();oe.getAnimating()&&oe.cancelAnimations();let fe=-(0,ie.uZ)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(oe.getConstrainResolution()||this.constrainResolution_)&&(fe=fe?fe>0?1:-1:0),bt(oe,fe,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(Vt){this.useAnchor_=Vt,Vt||(this.lastAnchor_=null)}};const Pe=class De extends Rt{constructor(Vt){const oe=Vt=Vt||{};oe.stopDown||(oe.stopDown=O.Dv),super(oe),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==Vt.threshold?Vt.threshold:.3,this.duration_=void 0!==Vt.duration?Vt.duration:250}handleDragEvent(Vt){let oe=0;const fe=this.targetPointers[0],ve=this.targetPointers[1],qe=Math.atan2(ve.clientY-fe.clientY,ve.clientX-fe.clientX);if(void 0!==this.lastAngle_){const Mi=qe-this.lastAngle_;this.rotationDelta_+=Mi,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),oe=Mi}this.lastAngle_=qe;const ti=Vt.map,mi=ti.getView();mi.getConstraints().rotation!==dr.h$&&(this.anchor_=ti.getCoordinateFromPixelInternal(ti.getEventPixel(Ot(this.targetPointers))),this.rotating_&&(ti.render(),mi.adjustRotationInternal(oe,this.anchor_)))}handleUpEvent(Vt){return!(this.targetPointers.length<2)||(Vt.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(Vt){if(this.targetPointers.length>=2){const oe=Vt.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||oe.getView().beginInteraction(),!0}return!1}};const Fe=class Ae extends Rt{constructor(Vt){const oe=Vt=Vt||{};oe.stopDown||(oe.stopDown=O.Dv),super(oe),this.anchor_=null,this.duration_=void 0!==Vt.duration?Vt.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(Vt){let oe=1;const fe=this.targetPointers[0],ve=this.targetPointers[1],qe=fe.clientX-ve.clientX,ti=fe.clientY-ve.clientY,mi=Math.sqrt(qe*qe+ti*ti);void 0!==this.lastDistance_&&(oe=this.lastDistance_/mi),this.lastDistance_=mi;const Mi=Vt.map,Oe=Mi.getView();1!=oe&&(this.lastScaleDelta_=oe),this.anchor_=Mi.getCoordinateFromPixelInternal(Mi.getEventPixel(Ot(this.targetPointers))),Mi.render(),Oe.adjustResolutionInternal(oe,this.anchor_)}handleUpEvent(Vt){if(this.targetPointers.length<2){const fe=Vt.map.getView(),ve=this.lastScaleDelta_>1?1:-1;return fe.endInteraction(this.duration_,ve),!1}return!0}handleDownEvent(Vt){if(this.targetPointers.length>=2){const oe=Vt.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||oe.getView().beginInteraction(),!0}return!1}};var ri=ht(2456),Qe=ht(6003),gi=ht(1750),Ye=ht(3085);function ci(Re){Re instanceof W.Z?Re.setMapInternal(null):Re instanceof n&&Re.getLayers().forEach(ci)}function li(Re,Vt){if(Re instanceof W.Z)Re.setMapInternal(Vt);else if(Re instanceof n){const oe=Re.getLayers().getArray();for(let fe=0,ve=oe.length;fethis.updateSize()),this.controls=oe.controls||(0,Dt.c)(),this.interactions=oe.interactions||function Ze(Re){Re=Re||{};const Vt=new t.Z,oe=new te(-.005,.05,100);return(void 0===Re.altShiftDragRotate||Re.altShiftDragRotate)&&Vt.push(new sn),(void 0===Re.doubleClickZoom||Re.doubleClickZoom)&&Vt.push(new ft({delta:Re.zoomDelta,duration:Re.zoomDuration})),(void 0===Re.dragPan||Re.dragPan)&&Vt.push(new hn({onFocusOnly:Re.onFocusOnly,kinetic:oe})),(void 0===Re.pinchRotate||Re.pinchRotate)&&Vt.push(new Pe),(void 0===Re.pinchZoom||Re.pinchZoom)&&Vt.push(new Fe({duration:Re.zoomDuration})),(void 0===Re.keyboard||Re.keyboard)&&(Vt.push(new Or),Vt.push(new Xe({delta:Re.zoomDelta,duration:Re.zoomDuration}))),(void 0===Re.mouseWheelZoom||Re.mouseWheelZoom)&&Vt.push(new ge({onFocusOnly:Re.onFocusOnly,duration:Re.zoomDuration})),(void 0===Re.shiftDragZoom||Re.shiftDragZoom)&&Vt.push(new zn({duration:Re.zoomDuration})),Vt}({onFocusOnly:!0}),this.overlays_=oe.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new mt(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(st_LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(st_VIEW,this.handleViewChanged_),this.addChangeListener(st_SIZE,this.handleSizeChanged_),this.addChangeListener(st_TARGET,this.handleTargetChanged_),this.setProperties(oe.values);const fe=this;Vt.view&&!(Vt.view instanceof wt.ZP)&&Vt.view.then(function(ve){fe.setView(new wt.ZP(ve))}),this.controls.addEventListener(Y.Z.ADD,ve=>{ve.element.setMap(this)}),this.controls.addEventListener(Y.Z.REMOVE,ve=>{ve.element.setMap(null)}),this.interactions.addEventListener(Y.Z.ADD,ve=>{ve.element.setMap(this)}),this.interactions.addEventListener(Y.Z.REMOVE,ve=>{ve.element.setMap(null)}),this.overlays_.addEventListener(Y.Z.ADD,ve=>{this.addOverlayInternal_(ve.element)}),this.overlays_.addEventListener(Y.Z.REMOVE,ve=>{const qe=ve.element.getId();void 0!==qe&&delete this.overlayIdIndex_[qe.toString()],ve.element.setMap(null)}),this.controls.forEach(ve=>{ve.setMap(this)}),this.interactions.forEach(ve=>{ve.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(Vt){this.getControls().push(Vt)}addInteraction(Vt){this.getInteractions().push(Vt)}addLayer(Vt){this.getLayerGroup().getLayers().push(Vt)}handleLayerAdd_(Vt){li(Vt.layer,this)}addOverlay(Vt){this.getOverlays().push(Vt)}addOverlayInternal_(Vt){const oe=Vt.getId();void 0!==oe&&(this.overlayIdIndex_[oe.toString()]=Vt),Vt.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(Vt,oe,fe){if(!this.frameState_||!this.renderer_)return;const ve=this.getCoordinateFromPixelInternal(Vt),qe=void 0!==(fe=void 0!==fe?fe:{}).hitTolerance?fe.hitTolerance:0,ti=void 0!==fe.layerFilter?fe.layerFilter:O.uX,mi=!1!==fe.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(ve,this.frameState_,qe,mi,oe,null,ti,null)}getFeaturesAtPixel(Vt,oe){const fe=[];return this.forEachFeatureAtPixel(Vt,function(ve){fe.push(ve)},oe),fe}getAllLayers(){const Vt=[];return function oe(fe){fe.forEach(function(ve){ve instanceof n?oe(ve.getLayers()):Vt.push(ve)})}(this.getLayers()),Vt}hasFeatureAtPixel(Vt,oe){if(!this.frameState_||!this.renderer_)return!1;const fe=this.getCoordinateFromPixelInternal(Vt),ve=void 0!==(oe=void 0!==oe?oe:{}).layerFilter?oe.layerFilter:O.uX,qe=void 0!==oe.hitTolerance?oe.hitTolerance:0,ti=!1!==oe.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(fe,this.frameState_,qe,ti,ve,null)}getEventCoordinate(Vt){return this.getCoordinateFromPixel(this.getEventPixel(Vt))}getEventCoordinateInternal(Vt){return this.getCoordinateFromPixelInternal(this.getEventPixel(Vt))}getEventPixel(Vt){const fe=this.viewport_.getBoundingClientRect(),ve=this.getSize(),qe=fe.width/ve[0],ti=fe.height/ve[1],mi="changedTouches"in Vt?Vt.changedTouches[0]:Vt;return[(mi.clientX-fe.left)/qe,(mi.clientY-fe.top)/ti]}getTarget(){return this.get(st_TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(Vt){return(0,Qe.lO)(this.getCoordinateFromPixelInternal(Vt),this.getView().getProjection())}getCoordinateFromPixelInternal(Vt){const oe=this.frameState_;return oe?(0,G.nn)(oe.pixelToCoordinateTransform,Vt.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(Vt){const oe=this.overlayIdIndex_[Vt.toString()];return void 0!==oe?oe:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(st_LAYERGROUP)}setLayers(Vt){const oe=this.getLayerGroup();if(Vt instanceof t.Z)return void oe.setLayers(Vt);const fe=oe.getLayers();fe.clear(),fe.extend(Vt)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const Vt=this.getLayerGroup().getLayerStatesArray();for(let oe=0,fe=Vt.length;oe=0;qe--){const ti=ve[qe];if(ti.getMap()===this&&ti.getActive()&&this.getTargetElement()&&(!ti.handleEvent(Vt)||Vt.propagationStopped))break}}}handlePostRender(){const Vt=this.frameState_,oe=this.tileQueue_;if(!oe.isEmpty()){let ve=this.maxTilesLoading_,qe=ve;if(Vt){const ti=Vt.viewHints;if(ti[Mt.Z.ANIMATING]||ti[Mt.Z.INTERACTING]){const mi=Date.now()-Vt.time>8;ve=mi?0:8,qe=mi?0:2}}oe.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(Vt){const oe=this.getLayerGroup();oe&&this.handleLayerRemove_(new d("removelayer",oe)),this.set(st_LAYERGROUP,Vt)}setSize(Vt){this.set(st_SIZE,Vt)}setTarget(Vt){this.set(st_TARGET,Vt)}setView(Vt){if(!Vt||Vt instanceof wt.ZP)return void this.set(st_VIEW,Vt);this.set(st_VIEW,new wt.ZP);const oe=this;Vt.then(function(fe){oe.setView(new wt.ZP(fe))})}updateSize(){const Vt=this.getTargetElement();let oe;if(Vt){const ve=getComputedStyle(Vt),qe=Vt.offsetWidth-parseFloat(ve.borderLeftWidth)-parseFloat(ve.paddingLeft)-parseFloat(ve.paddingRight)-parseFloat(ve.borderRightWidth),ti=Vt.offsetHeight-parseFloat(ve.borderTopWidth)-parseFloat(ve.paddingTop)-parseFloat(ve.paddingBottom)-parseFloat(ve.borderBottomWidth);!isNaN(qe)&&!isNaN(ti)&&(oe=[qe,ti],!(0,gi.py)(oe)&&(Vt.offsetWidth||Vt.offsetHeight||Vt.getClientRects().length)&&(0,Ye.ZK)("No map visible because the map container's width or height are 0."))}const fe=this.getSize();oe&&(!fe||!(0,ri.fS)(oe,fe))&&(this.setSize(oe),this.updateViewportSize_())}updateViewportSize_(){const Vt=this.getView();if(Vt){let oe;const fe=getComputedStyle(this.viewport_);fe.width&&fe.height&&(oe=[parseInt(fe.width,10),parseInt(fe.height,10)]),Vt.setViewportSize(oe)}}}const Di=ai},7656:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>pt});const pt={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},3632:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>Z});var pt=ht(8214),t=ht(4587),Y=ht(4272),q=ht(119),O=ht(9466);class U extends pt.ZP{constructor(W,V,R){super(W),this.key=V,this.oldValue=R}}class G extends Y.Z{constructor(W){super(),this.on,this.once,this.un,(0,q.sq)(this),this.values_=null,void 0!==W&&this.setProperties(W)}get(W){let V;return this.values_&&this.values_.hasOwnProperty(W)&&(V=this.values_[W]),V}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}hasProperties(){return!!this.values_}notify(W,V){let R;R=`change:${W}`,this.hasListener(R)&&this.dispatchEvent(new U(R,W,V)),R=t.Z.PROPERTYCHANGE,this.hasListener(R)&&this.dispatchEvent(new U(R,W,V))}addChangeListener(W,V){this.addEventListener(`change:${W}`,V)}removeChangeListener(W,V){this.removeEventListener(`change:${W}`,V)}set(W,V,R){const P=this.values_||(this.values_={});if(R)P[W]=V;else{const k=P[W];P[W]=V,k!==V&&this.notify(W,k)}}setProperties(W,V){for(const R in W)this.set(R,W[R],V)}applyProperties(W){W.values_&&Object.assign(this.values_||(this.values_={}),W.values_)}unset(W,V){if(this.values_&&W in this.values_){const R=this.values_[W];delete this.values_[W],(0,O.x)(this.values_)&&(this.values_=null),V||this.notify(W,R)}}}const Z=G},4587:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>pt});const pt={PROPERTYCHANGE:"propertychange"}},4272:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>U});var pt=ht(8007),t=ht(9972),Y=ht(1729);class q extends pt.Z{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(t.Z.CHANGE)}getRevision(){return this.revision_}onInternal(Z,$){if(Array.isArray(Z)){const W=Z.length,V=new Array(W);for(let R=0;R{"use strict";ht.d($t,{Z:()=>G});var pt=ht(8007),t=ht(9972),Y=ht(1999),q=ht(119),O=ht(6299);class U extends pt.Z{constructor($,W,V){super(),V=V||{},this.tileCoord=$,this.state=W,this.interimTile=null,this.key="",this.transition_=void 0===V.transition?250:V.transition,this.transitionStarts_={},this.interpolate=!!V.interpolate}changed(){this.dispatchEvent(t.Z.CHANGE)}release(){this.state===Y.Z.ERROR&&this.setState(Y.Z.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let $=this.interimTile;do{if($.getState()==Y.Z.LOADED)return this.transition_=0,$;$=$.interimTile}while($);return this}refreshInterimChain(){if(!this.interimTile)return;let $=this.interimTile,W=this;do{if($.getState()==Y.Z.LOADED){$.interimTile=null;break}$.getState()==Y.Z.LOADING?W=$:$.getState()==Y.Z.IDLE?W.interimTile=$.interimTile:W=$,$=W.interimTile}while($)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState($){if(this.state!==Y.Z.ERROR&&this.state>$)throw new Error("Tile load sequence violation");this.state=$,this.changed()}load(){(0,q.O3)()}getAlpha($,W){if(!this.transition_)return 1;let V=this.transitionStarts_[$];if(V){if(-1===V)return 1}else V=W,this.transitionStarts_[$]=V;const R=W-V+1e3/60;return R>=this.transition_?1:(0,O.YQ)(R/this.transition_)}inTransition($){return!!this.transition_&&-1!==this.transitionStarts_[$]}endTransition($){this.transition_&&(this.transitionStarts_[$]=-1)}}const G=U},6609:(Jt,$t,ht)=>{"use strict";ht.d($t,{T:()=>t,Z:()=>Y});class pt{constructor(O,U,G,Z){this.minX=O,this.maxX=U,this.minY=G,this.maxY=Z}contains(O){return this.containsXY(O[1],O[2])}containsTileRange(O){return this.minX<=O.minX&&O.maxX<=this.maxX&&this.minY<=O.minY&&O.maxY<=this.maxY}containsXY(O,U){return this.minX<=O&&O<=this.maxX&&this.minY<=U&&U<=this.maxY}equals(O){return this.minX==O.minX&&this.minY==O.minY&&this.maxX==O.maxX&&this.maxY==O.maxY}extend(O){O.minXthis.maxX&&(this.maxX=O.maxX),O.minYthis.maxY&&(this.maxY=O.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(O){return this.minX<=O.maxX&&this.maxX>=O.minX&&this.minY<=O.maxY&&this.maxY>=O.minY}}function t(q,O,U,G,Z){return void 0!==Z?(Z.minX=q,Z.maxX=O,Z.minY=U,Z.maxY=G,Z):new pt(q,O,U,G)}const Y=pt},1999:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>pt});const pt={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},2811:(Jt,$t,ht)=>{"use strict";ht.d($t,{ZP:()=>u});var pt=ht(3632),t=ht(8587);const Y={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var q=ht(9302),O=ht(6003),U=ht(1345),G=ht(3481),Z=ht(1911),$=ht(2156);function W(a,n,o){return function(m,_,B,X,it){if(!m)return;if(!_&&!n)return m;const rt=n?0:B[0]*_,L=n?0:B[1]*_,z=it?it[0]:0,et=it?it[1]:0;let at=a[0]+rt/2+z,st=a[2]-rt/2+z,H=a[1]+L/2+et,ot=a[3]-L/2+et;at>st&&(at=(st+at)/2,st=at),H>ot&&(H=(ot+H)/2,ot=H);let nt=(0,$.uZ)(m[0],at,st),yt=(0,$.uZ)(m[1],H,ot);if(X&&o&&_){const gt=30*_;nt+=-gt*Math.log(1+Math.max(0,at-m[0])/gt)+gt*Math.log(1+Math.max(0,m[0]-st)/gt),yt+=-gt*Math.log(1+Math.max(0,H-m[1])/gt)+gt*Math.log(1+Math.max(0,m[1]-ot)/gt)}return[nt,yt]}}function V(a){return a}var R=ht(760),P=ht(2456);function k(a,n,o,m){const _=(0,R.dz)(n)/o[0],B=(0,R.Cr)(n)/o[1];return m?Math.min(a,Math.max(_,B)):Math.min(a,Math.min(_,B))}function E(a,n,o){let m=Math.min(a,n);return m*=Math.log(1+50*Math.max(0,a/n-1))/50+1,o&&(m=Math.max(m,o),m/=Math.log(1+50*Math.max(0,o/a-1))/50+1),(0,$.uZ)(m,o/2,2*n)}function y(a,n,o,m,_){return o=void 0===o||o,function(B,X,it,rt){if(void 0!==B){const L=m?k(a,m,it,_):a;return o&&rt?E(B,L,n):(0,$.uZ)(B,n,L)}}}var A=ht(9857),g=ht(6299),v=ht(4173);class N extends pt.Z{constructor(n){super(),this.on,this.once,this.un,n=Object.assign({},n),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,O.UQ)(n.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,n.projection&&(0,O.h_)(),n.center&&(n.center=(0,O.Vs)(n.center,this.projection_)),n.extent&&(n.extent=(0,O.dY)(n.extent,this.projection_)),this.applyOptions_(n)}applyOptions_(n){const o=Object.assign({},n);for(const it in Y)delete o[it];this.setProperties(o,!0);const m=function D(a){let n,o,m,X=void 0!==a.minZoom?a.minZoom:0,it=void 0!==a.maxZoom?a.maxZoom:28;const rt=void 0!==a.zoomFactor?a.zoomFactor:2,L=void 0!==a.multiWorld&&a.multiWorld,z=void 0===a.smoothResolutionConstraint||a.smoothResolutionConstraint,et=void 0!==a.showFullExtent&&a.showFullExtent,at=(0,O.UQ)(a.projection,"EPSG:3857"),st=at.getExtent();let H=a.constrainOnlyCenter,ot=a.extent;if(!L&&!ot&&at.isGlobal()&&(H=!1,ot=st),void 0!==a.resolutions){const nt=a.resolutions;o=nt[X],m=void 0!==nt[it]?nt[it]:nt[nt.length-1],n=a.constrainResolution?function w(a,n,o,m){return n=void 0===n||n,function(_,B,X,it){if(void 0!==_){const rt=a[0],L=a[a.length-1],z=o?k(rt,o,X,m):rt;if(it)return n?E(_,z,L):(0,$.uZ)(_,L,z);const et=Math.min(z,_),at=Math.floor((0,P.h7)(a,et,B));return a[at]>z&&at1&&"function"==typeof arguments[o-1]&&(m=arguments[o-1],--o);let _=0;for(;_0}getInteracting(){return this.hints_[t.Z.INTERACTING]>0}cancelAnimations(){let n;this.setHint(t.Z.ANIMATING,-this.hints_[t.Z.ANIMATING]);for(let o=0,m=this.animations_.length;o=0;--m){const _=this.animations_[m];let B=!0;for(let X=0,it=_.length;X0?L/rt.duration:1;z>=1?(rt.complete=!0,z=1):B=!1;const et=rt.easing(z);if(rt.sourceCenter){const at=rt.sourceCenter[0],st=rt.sourceCenter[1],H=rt.targetCenter[0],ot=rt.targetCenter[1];this.nextCenter_=rt.targetCenter;const nt=at+et*(H-at),yt=st+et*(ot-st);this.targetCenter_=[nt,yt]}if(rt.sourceResolution&&rt.targetResolution){const at=1===et?rt.targetResolution:rt.sourceResolution+et*(rt.targetResolution-rt.sourceResolution);if(rt.anchor){const st=this.getViewportSize_(this.getRotation()),H=this.constraints_.resolution(at,0,st,!0);this.targetCenter_=this.calculateCenterZoom(H,rt.anchor)}this.nextResolution_=rt.targetResolution,this.targetResolution_=at,this.applyTargetState_(!0)}if(void 0!==rt.sourceRotation&&void 0!==rt.targetRotation){const at=1===et?(0,$.$W)(rt.targetRotation+Math.PI,2*Math.PI)-Math.PI:rt.sourceRotation+et*(rt.targetRotation-rt.sourceRotation);if(rt.anchor){const st=this.constraints_.rotation(at,!0);this.targetCenter_=this.calculateCenterRotate(st,rt.anchor)}this.nextRotation_=rt.targetRotation,this.targetRotation_=at}if(this.applyTargetState_(!0),o=!0,!rt.complete)break}if(B){this.animations_[m]=null,this.setHint(t.Z.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const X=_[0].callback;X&&j(X,!0)}}this.animations_=this.animations_.filter(Boolean),o&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(n,o){let m;const _=this.getCenterInternal();return void 0!==_&&(m=[_[0]-o[0],_[1]-o[1]],(0,G.U1)(m,n-this.getRotation()),(0,G.IH)(m,o)),m}calculateCenterZoom(n,o){let m;const _=this.getCenterInternal(),B=this.getResolution();if(void 0!==_&&void 0!==B){m=[o[0]-n*(o[0]-_[0])/B,o[1]-n*(o[1]-_[1])/B]}return m}getViewportSize_(n){const o=this.viewportSize_;if(n){const m=o[0],_=o[1];return[Math.abs(m*Math.cos(n))+Math.abs(_*Math.sin(n)),Math.abs(m*Math.sin(n))+Math.abs(_*Math.cos(n))]}return o}setViewportSize(n){this.viewportSize_=Array.isArray(n)?n.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const n=this.getCenterInternal();return n&&(0,O.lO)(n,this.getProjection())}getCenterInternal(){return this.get(Y.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(n){return void 0!==n?(n[0]=this.hints_[0],n[1]=this.hints_[1],n):this.hints_.slice()}calculateExtent(n){const o=this.calculateExtentInternal(n);return(0,O.Fj)(o,this.getProjection())}calculateExtentInternal(n){n=n||this.getViewportSizeMinusPadding_();const o=this.getCenterInternal();(0,Z.h)(o,1);const m=this.getResolution();(0,Z.h)(void 0!==m,2);const _=this.getRotation();return(0,Z.h)(void 0!==_,3),(0,R.p8)(o,m,_,n)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(n){this.applyOptions_(this.getUpdatedOptions_({maxZoom:n}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(n){this.applyOptions_(this.getUpdatedOptions_({minZoom:n}))}setConstrainResolution(n){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:n}))}getProjection(){return this.projection_}getResolution(){return this.get(Y.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(n,o){return this.getResolutionForExtentInternal((0,O.dY)(n,this.getProjection()),o)}getResolutionForExtentInternal(n,o){o=o||this.getViewportSizeMinusPadding_();const m=(0,R.dz)(n)/o[0],_=(0,R.Cr)(n)/o[1];return Math.max(m,_)}getResolutionForValueFunction(n){n=n||2;const o=this.getConstrainedResolution(this.maxResolution_),m=this.minResolution_,_=Math.log(o/m)/Math.log(n);return function(B){return o/Math.pow(n,B*_)}}getRotation(){return this.get(Y.ROTATION)}getValueForResolutionFunction(n){const o=Math.log(n||2),m=this.getConstrainedResolution(this.maxResolution_),_=this.minResolution_,B=Math.log(m/_)/o;return function(X){return Math.log(m/X)/o/B}}getViewportSizeMinusPadding_(n){let o=this.getViewportSize_(n);const m=this.padding_;return m&&(o=[o[0]-m[1]-m[3],o[1]-m[0]-m[2]]),o}getState(){const n=this.getProjection(),o=this.getResolution(),m=this.getRotation();let _=this.getCenterInternal();const B=this.padding_;if(B){const X=this.getViewportSizeMinusPadding_();_=d(_,this.getViewportSize_(),[X[0]/2+B[3],X[1]/2+B[0]],o,m)}return{center:_.slice(0),projection:void 0!==n?n:null,resolution:o,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:m,zoom:this.getZoom()}}getZoom(){let n;const o=this.getResolution();return void 0!==o&&(n=this.getZoomForResolution(o)),n}getZoomForResolution(n){let m,_,o=this.minZoom_||0;if(this.resolutions_){const B=(0,P.h7)(this.resolutions_,n,1);o=B,m=this.resolutions_[B],_=B==this.resolutions_.length-1?2:m/this.resolutions_[B+1]}else m=this.maxResolution_,_=this.zoomFactor_;return o+Math.log(m/n)/Math.log(_)}getResolutionForZoom(n){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const o=(0,$.uZ)(Math.floor(n),0,this.resolutions_.length-2),m=this.resolutions_[o]/this.resolutions_[o+1];return this.resolutions_[o]/Math.pow(m,(0,$.uZ)(n-o,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,n-this.minZoom_)}fit(n,o){let m;if((0,Z.h)(Array.isArray(n)||"function"==typeof n.getSimplifiedGeometry,24),Array.isArray(n)){(0,Z.h)(!(0,R.xb)(n),25);const _=(0,O.dY)(n,this.getProjection());m=(0,v.oJ)(_)}else if("Circle"===n.getType()){const _=(0,O.dY)(n.getExtent(),this.getProjection());m=(0,v.oJ)(_),m.rotate(this.getRotation(),(0,R.qg)(_))}else{const _=(0,O.Cs)();m=_?n.clone().transform(_,this.getProjection()):n}this.fitInternal(m,o)}rotatedExtentForGeometry(n){const o=this.getRotation(),m=Math.cos(o),_=Math.sin(-o),B=n.getFlatCoordinates(),X=n.getStride();let it=1/0,rt=1/0,L=-1/0,z=-1/0;for(let et=0,at=B.length;et{"use strict";ht.d($t,{Z:()=>pt});const pt={ANIMATING:0,INTERACTING:1}},2456:(Jt,$t,ht)=>{"use strict";function t(W,V){return W>V?1:W0){for(k=1;k0?k-1:k:W[k-1]-V0||R&&0===w)})}ht.d($t,{FZ:()=>q,fS:()=>G,h7:()=>Y,j2:()=>t,l7:()=>O,pT:()=>$})},1911:(Jt,$t,ht)=>{"use strict";ht.d($t,{h:()=>t});var pt=ht(6978);function t(Y,q){if(!Y)throw new pt.Z(q)}},3783:(Jt,$t,ht)=>{"use strict";ht.d($t,{BB:()=>V,XC:()=>O,_2:()=>Z});var pt=ht(1911),t=ht(2156);const Y=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,q=/^([a-z]*)$|^hsla?\(.*\)$/i;function O(P){return"string"==typeof P?P:V(P)}function U(P){const k=document.createElement("div");if(k.style.color=P,""!==k.style.color){document.body.appendChild(k);const E=getComputedStyle(k).color;return document.body.removeChild(k),E}return""}const G=function(){const k={};let E=0;return function(w){let T;if(k.hasOwnProperty(w))T=k[w];else{if(E>=1024){let y=0;for(const A in k)3&y++||(delete k[A],--E)}T=function $(P){let k,E,w,T,y;if(q.exec(P)&&(P=U(P)),Y.exec(P)){const A=P.length-1;let g;g=A<=4?1:2;const v=4===A||8===A;k=parseInt(P.substr(1+0*g,g),16),E=parseInt(P.substr(1+1*g,g),16),w=parseInt(P.substr(1+2*g,g),16),T=v?parseInt(P.substr(1+3*g,g),16):255,1==g&&(k=(k<<4)+k,E=(E<<4)+E,w=(w<<4)+w,v&&(T=(T<<4)+T)),y=[k,E,w,T/255]}else P.startsWith("rgba(")?(y=P.slice(5,-1).split(",").map(Number),W(y)):P.startsWith("rgb(")?(y=P.slice(4,-1).split(",").map(Number),y.push(1),W(y)):(0,pt.h)(!1,14);return y}(w),k[w]=T,++E}return T}}();function Z(P){return Array.isArray(P)?P:G(P)}function W(P){return P[0]=(0,t.uZ)(P[0]+.5|0,0,255),P[1]=(0,t.uZ)(P[1]+.5|0,0,255),P[2]=(0,t.uZ)(P[2]+.5|0,0,255),P[3]=(0,t.uZ)(P[3],0,1),P}function V(P){let k=P[0];k!=(0|k)&&(k=k+.5|0);let E=P[1];E!=(0|E)&&(E=E+.5|0);let w=P[2];w!=(0|w)&&(w=w+.5|0);return"rgba("+k+","+E+","+w+","+(void 0===P[3]?1:Math.round(100*P[3])/100)+")"}},5813:(Jt,$t,ht)=>{"use strict";ht.d($t,{y:()=>t});var pt=ht(3783);function t(Y){return Array.isArray(Y)?(0,pt.BB)(Y):Y}},3085:(Jt,$t,ht)=>{"use strict";ht.d($t,{ZK:()=>O});const pt={info:1,warn:2,error:3,none:4};let t=pt.info;function O(...G){t>pt.warn||console.warn(...G)}},3969:(Jt,$t,ht)=>{"use strict";ht.d($t,{c:()=>g});var pt=ht(3632),t=ht(7656),Y=ht(1345),q=ht(1729),O=ht(1992);class U extends pt.Z{constructor(S){super();const N=S.element;N&&!S.target&&!N.style.pointerEvents&&(N.style.pointerEvents="auto"),this.element=N||null,this.target_=null,this.map_=null,this.listenerKeys=[],S.render&&(this.render=S.render),S.target&&this.setTarget(S.target)}disposeInternal(){(0,O.ZF)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(S){this.map_&&(0,O.ZF)(this.element);for(let N=0,j=this.listenerKeys.length;N0;if(this.renderedVisible_!=j&&(this.element.style.display=j?"":"none",this.renderedVisible_=j),!(0,W.fS)(N,this.renderedAttributions_)){(0,O.ep)(this.ulElement_);for(let M=0,D=N.length;M0&&j%(2*Math.PI)!=0?N.animate({rotation:0,duration:this.duration_,easing:E.Vv}):N.setRotation(0))}render(S){const N=S.frameState;if(!N)return;const j=N.viewState.rotation;if(j!=this.rotation_){const M="rotate("+j+"rad)";if(this.autoHide_){const D=this.element.classList.contains($.oj);D||0!==j?D&&0!==j&&this.element.classList.remove($.oj):this.element.classList.add($.oj)}this.label_.style.transform=M}this.rotation_=j}};const A=class y extends G{constructor(S){S=S||{},super({element:document.createElement("div"),target:S.target});const N=void 0!==S.className?S.className:"ol-zoom",j=void 0!==S.delta?S.delta:1,M=void 0!==S.zoomInClassName?S.zoomInClassName:N+"-in",D=void 0!==S.zoomOutClassName?S.zoomOutClassName:N+"-out",I=void 0!==S.zoomInLabel?S.zoomInLabel:"+",b=void 0!==S.zoomOutLabel?S.zoomOutLabel:"\u2013",d=void 0!==S.zoomInTipLabel?S.zoomInTipLabel:"Zoom in",u=void 0!==S.zoomOutTipLabel?S.zoomOutTipLabel:"Zoom out",a=document.createElement("button");a.className=M,a.setAttribute("type","button"),a.title=d,a.appendChild("string"==typeof I?document.createTextNode(I):I),a.addEventListener(Z.Z.CLICK,this.handleClick_.bind(this,j),!1);const n=document.createElement("button");n.className=D,n.setAttribute("type","button"),n.title=u,n.appendChild("string"==typeof b?document.createTextNode(b):b),n.addEventListener(Z.Z.CLICK,this.handleClick_.bind(this,-j),!1);const o=N+" "+$.XV+" "+$.hg,m=this.element;m.className=o,m.appendChild(a),m.appendChild(n),this.duration_=void 0!==S.duration?S.duration:250}handleClick_(S,N){N.preventDefault(),this.zoomByDelta_(S)}zoomByDelta_(S){const j=this.getMap().getView();if(!j)return;const M=j.getZoom();if(void 0!==M){const D=j.getConstrainedZoom(M+S);this.duration_>0?(j.getAnimating()&&j.cancelAnimations(),j.animate({zoom:D,duration:this.duration_,easing:E.Vv})):j.setZoom(D)}}};function g(v){v=v||{};const S=new k.Z;return(void 0===v.zoom||v.zoom)&&S.push(new A(v.zoomOptions)),(void 0===v.rotate||v.rotate)&&S.push(new T(v.rotateOptions)),(void 0===v.attribution||v.attribution)&&S.push(new P(v.attributionOptions)),S}},3481:(Jt,$t,ht)=>{"use strict";ht.d($t,{Cf:()=>w,IH:()=>t,U1:()=>$,bA:()=>W,fS:()=>Z});var pt=ht(760);function t(y,A){return y[0]+=+A[0],y[1]+=+A[1],y}function Z(y,A){let g=!0;for(let v=y.length-1;v>=0;--v)if(y[v]!=A[v]){g=!1;break}return g}function $(y,A){const g=Math.cos(A),v=Math.sin(A),S=y[0]*g-y[1]*v,N=y[1]*g+y[0]*v;return y[0]=S,y[1]=N,y}function W(y,A){return y[0]*=A,y[1]*=A,y}function w(y,A){if(A.canWrapX()){const g=(0,pt.dz)(A.getExtent()),v=function T(y,A,g){const v=A.getExtent();let S=0;return A.canWrapX()&&(y[0]v[2])&&(g=g||(0,pt.dz)(v),S=Math.floor((y[0]-v[0])/g)),S}(y,A,g);v&&(y[0]-=v*g)}return y}},5263:(Jt,$t,ht)=>{"use strict";ht.d($t,{XV:()=>Y,hN:()=>U,hg:()=>O,oj:()=>pt,p:()=>$});const pt="ol-hidden",Y="ol-unselectable",O="ol-control",U="ol-collapsed",G=new RegExp(["^\\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*$"].join(""),"i"),Z=["style","variant","weight","size","lineHeight","family"],$=function(W){const V=W.match(G);if(!V)return null;const R={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let P=0,k=Z.length;P{"use strict";ht.d($t,{$H:()=>U,E4:()=>t,ZF:()=>G,ep:()=>Z,hF:()=>$,jy:()=>Y});var pt=ht(9996);function t(W,V,R,P){let k;return k=R&&R.length?R.shift():pt.Id?new OffscreenCanvas(W||300,V||300):document.createElement("canvas"),W&&(k.width=W),V&&(k.height=V),k.getContext("2d",P)}function Y(W){const V=W.canvas;V.width=1,V.height=1,W.clearRect(0,0,1,1)}function U(W,V){const R=V.parentNode;R&&R.replaceChild(W,V)}function G(W){return W&&W.parentNode?W.parentNode.removeChild(W):null}function Z(W){for(;W.lastChild;)W.removeChild(W.lastChild)}function $(W,V){const R=W.childNodes;for(let P=0;;++P){const k=R[P],E=V[P];if(!k&&!E)break;if(k!==E){if(!k){W.appendChild(E);continue}if(!E){W.removeChild(k),--P;continue}W.insertBefore(E,k)}}}},6299:(Jt,$t,ht)=>{"use strict";function pt(U){return Math.pow(U,3)}function t(U){return 1-pt(1-U)}function Y(U){return 3*U*U-2*U*U*U}function q(U){return U}ht.d($t,{GE:()=>q,Vv:()=>t,YQ:()=>pt,rd:()=>Y})},1729:(Jt,$t,ht)=>{"use strict";ht.d($t,{Vx:()=>Y,bN:()=>q,oL:()=>t});var pt=ht(9466);function t(O,U,G,Z,$){if(Z&&Z!==O&&(G=G.bind(Z)),$){const V=G;G=function(){O.removeEventListener(U,G),V.apply(this,arguments)}}const W={target:O,type:U,listener:G};return O.addEventListener(U,G),W}function Y(O,U,G,Z){return t(O,U,G,Z,!0)}function q(O){O&&O.target&&(O.target.removeEventListener(O.type,O.listener),(0,pt.Z)(O))}},8214:(Jt,$t,ht)=>{"use strict";ht.d($t,{ZP:()=>q});const q=class pt{constructor(U){this.propagationStopped,this.defaultPrevented,this.type=U,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},9972:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>pt});const pt={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},8007:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>U});var pt=ht(625),t=ht(8214),Y=ht(1345),q=ht(9466);class O extends pt.Z{constructor(Z){super(),this.eventTarget_=Z,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(Z,$){if(!Z||!$)return;const W=this.listeners_||(this.listeners_={}),V=W[Z]||(W[Z]=[]);V.includes($)||V.push($)}dispatchEvent(Z){const $="string"==typeof Z,W=$?Z:Z.type,V=this.listeners_&&this.listeners_[W];if(!V)return;const R=$?new t.ZP(Z):Z;R.target||(R.target=this.eventTarget_||this);const P=this.dispatching_||(this.dispatching_={}),k=this.pendingRemovals_||(this.pendingRemovals_={});let E;W in P||(P[W]=0,k[W]=0),++P[W];for(let w=0,T=V.length;w0)}removeEventListener(Z,$){const W=this.listeners_&&this.listeners_[Z];if(W){const V=W.indexOf($);-1!==V&&(this.pendingRemovals_&&Z in this.pendingRemovals_?(W[V]=Y.Zn,++this.pendingRemovals_[Z]):(W.splice(V,1),0===W.length&&delete this.listeners_[Z]))}}}const U=O},760:(Jt,$t,ht)=>{"use strict";ht.d($t,{Cf:()=>mt,Cr:()=>B,EO:()=>ot,Ed:()=>it,GN:()=>T,H6:()=>I,HK:()=>E,I7:()=>yt,MV:()=>St,Ne:()=>gt,T9:()=>P,Wj:()=>S,Xv:()=>et,YN:()=>k,b8:()=>Z,bg:()=>b,d9:()=>U,dY:()=>_,dz:()=>at,f3:()=>O,fS:()=>A,g0:()=>n,hC:()=>d,hI:()=>Y,jE:()=>W,kK:()=>st,l7:()=>v,lJ:()=>R,p8:()=>m,pX:()=>V,qP:()=>j,qf:()=>G,qg:()=>a,r4:()=>$,rL:()=>z,w$:()=>u,xb:()=>H});var pt=ht(2401),t=ht(1911);function Y(wt){const Mt=[1/0,1/0,-1/0,-1/0];for(let Dt=0,Pt=wt.length;DtFt&&(_t|=pt.Z.RIGHT),btjt&&(_t|=pt.Z.ABOVE),_t===pt.Z.UNKNOWN&&(_t=pt.Z.INTERSECTING),_t}function R(){return[1/0,1/0,-1/0,-1/0]}function P(wt,Mt,Dt,Pt,Ft){return Ft?(Ft[0]=wt,Ft[1]=Mt,Ft[2]=Dt,Ft[3]=Pt,Ft):[wt,Mt,Dt,Pt]}function k(wt){return P(1/0,1/0,-1/0,-1/0,wt)}function E(wt,Mt){const Dt=wt[0],Pt=wt[1];return P(Dt,Pt,Dt,Pt,Mt)}function T(wt,Mt,Dt,Pt,Ft){return j(k(Ft),wt,Mt,Dt,Pt)}function A(wt,Mt){return wt[0]==Mt[0]&&wt[2]==Mt[2]&&wt[1]==Mt[1]&&wt[3]==Mt[3]}function v(wt,Mt){return Mt[0]wt[2]&&(wt[2]=Mt[2]),Mt[1]wt[3]&&(wt[3]=Mt[3]),wt}function S(wt,Mt){Mt[0]wt[2]&&(wt[2]=Mt[0]),Mt[1]wt[3]&&(wt[3]=Mt[1])}function j(wt,Mt,Dt,Pt,Ft){for(;DtMt[0]?Pt[0]=wt[0]:Pt[0]=Mt[0],wt[1]>Mt[1]?Pt[1]=wt[1]:Pt[1]=Mt[1],wt[2]=Mt[0]&&wt[1]<=Mt[3]&&wt[3]>=Mt[1]}function H(wt){return wt[2]=Ut&&he<=_t),!Pt&&jt&pt.Z.RIGHT&&!(Ft&pt.Z.RIGHT)&&(Ie=Rt-(Ot-_t)*Zt,Pt=Ie>=bt&&Ie<=xt),!Pt&&jt&pt.Z.BELOW&&!(Ft&pt.Z.BELOW)&&(he=Ot-(Rt-bt)/Zt,Pt=he>=Ut&&he<=_t),!Pt&&jt&pt.Z.LEFT&&!(Ft&pt.Z.LEFT)&&(Ie=Rt-(Ot-Ut)*Zt,Pt=Ie>=bt&&Ie<=xt)}return Pt}function gt(wt,Mt,Dt,Pt){let Ft=[];if(Pt>1){const bt=wt[2]-wt[0],_t=wt[3]-wt[1];for(let xt=0;xt=Dt[2])){const Ft=at(Dt),Ut=Math.floor((Pt[0]-Dt[0])/Ft)*Ft;wt[0]-=Ut,wt[2]-=Ut}return wt}function St(wt,Mt){if(Mt.canWrapX()){const Dt=Mt.getExtent();if(!isFinite(wt[0])||!isFinite(wt[2]))return[[Dt[0],wt[1],Dt[2],wt[3]]];mt(wt,Mt);const Pt=at(Dt);if(at(wt)>Pt)return[[Dt[0],wt[1],Dt[2],wt[3]]];if(wt[0]Dt[2])return[[wt[0],wt[1],Dt[2],wt[3]],[Dt[0],wt[1],wt[2]-Pt,wt[3]]]}return[wt]}},2401:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>pt});const pt={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},1345:(Jt,$t,ht)=>{"use strict";ht.d($t,{Dv:()=>Y,Zn:()=>q,qe:()=>O,uX:()=>t});var pt=ht(2456);function t(){return!0}function Y(){return!1}function q(){}function O(G){let $,W,V,Z=!1;return function(){const R=Array.prototype.slice.call(arguments);return(!Z||this!==V||!(0,pt.fS)(R,W))&&(Z=!0,V=this,W=R,$=G.apply(this,arguments)),$}}},301:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>g});var pt=ht(187),t=ht(9235),Y=ht(760),q=ht(8999),O=ht(2456),U=ht(392),G=ht(2156);class Z extends t.ZP{constructor(S,N){super(),N&&!Array.isArray(S[0])?this.setFlatCoordinates(N,S):this.setCoordinates(S,N)}appendPoint(S){this.flatCoordinates?(0,O.l7)(this.flatCoordinates,S.getFlatCoordinates()):this.flatCoordinates=S.getFlatCoordinates().slice(),this.changed()}clone(){const S=new Z(this.flatCoordinates.slice(),this.layout);return S.applyProperties(this),S}closestPointXY(S,N,j,M){if(M<(0,Y.qf)(this.getExtent(),S,N))return M;const D=this.flatCoordinates,I=this.stride;for(let b=0,d=D.length;b{"use strict";ht.d($t,{Z:()=>U});var pt=ht(9235),t=ht(760),Y=ht(8999),q=ht(2156);class O extends pt.ZP{constructor(Z,$){super(),this.setCoordinates(Z,$)}clone(){const Z=new O(this.flatCoordinates.slice(),this.layout);return Z.applyProperties(this),Z}closestPointXY(Z,$,W,V){const R=this.flatCoordinates,P=(0,q.bI)(Z,$,R[0],R[1]);if(P{"use strict";ht.d($t,{ZP:()=>T,oJ:()=>A});var pt=ht(9235),t=ht(5066),Y=ht(760),q=ht(8999),O=ht(9182),U=ht(392),G=ht(8818);class Z extends pt.ZP{constructor(N,j){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===j||Array.isArray(N[0])?this.setCoordinates(N,j):this.setFlatCoordinates(j,N)}clone(){return new Z(this.flatCoordinates.slice(),this.layout)}closestPointXY(N,j,M,D){return D<(0,Y.qf)(this.getExtent(),N,j)?D:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,t.Bv)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,t.H$)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,N,j,M,D))}getArea(){return(0,G.QQ)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,U.Ml)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(N){const j=[];return j.length=(0,O.dt)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,N,j,0),new Z(j,"XY")}getType(){return"LinearRing"}intersectsExtent(N){return!1}setCoordinates(N,j){this.setLayout(j,N,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,q.Sg)(this.flatCoordinates,0,N,this.stride),this.changed()}}const $=Z;var W=ht(187),V=ht(2456),R=ht(2474),P=ht(2750),k=ht(1265),E=ht(4325);class w extends pt.ZP{constructor(N,j,M){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==j&&M?(this.setFlatCoordinates(j,N),this.ends_=M):this.setCoordinates(N,j)}appendLinearRing(N){this.flatCoordinates?(0,V.l7)(this.flatCoordinates,N.getFlatCoordinates()):this.flatCoordinates=N.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const N=new w(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return N.applyProperties(this),N}closestPointXY(N,j,M,D){return D<(0,Y.qf)(this.getExtent(),N,j)?D:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,t.Af)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,t.Xl)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,N,j,M,D))}containsXY(N,j){return(0,E.wY)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,N,j)}getArea(){return(0,G.KP)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(N){let j;return void 0!==N?(j=this.getOrientedFlatCoordinates().slice(),(0,k.zX)(j,0,this.ends_,this.stride,N)):j=this.flatCoordinates,(0,U.o1)(j,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const N=(0,Y.qg)(this.getExtent());this.flatInteriorPoint_=(0,R.X)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,N,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new W.Z(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(N){return N<0||this.ends_.length<=N?null:new $(this.flatCoordinates.slice(0===N?0:this.ends_[N-1],this.ends_[N]),this.layout)}getLinearRings(){const N=this.layout,j=this.flatCoordinates,M=this.ends_,D=[];let I=0;for(let b=0,d=M.length;b{"use strict";ht.d($t,{ZP:()=>E,Kr:()=>k});var pt=ht(3632),t=ht(119),Y=ht(483),q=ht(760),O=ht(6003),U=ht(1345),G=ht(874);const Z=(0,Y.Ue)();class $ extends pt.Z{constructor(){super(),this.extent_=(0,q.lJ)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,U.qe)(function(T,y,A){if(!A)return this.getSimplifiedGeometry(y);const g=this.clone();return g.applyTransform(A),g.getSimplifiedGeometry(y)})}simplifyTransformed(T,y){return this.simplifyTransformedInternal(this.getRevision(),T,y)}clone(){return(0,t.O3)()}closestPointXY(T,y,A,g){return(0,t.O3)()}containsXY(T,y){const A=this.getClosestPoint([T,y]);return A[0]===T&&A[1]===y}getClosestPoint(T,y){return y=y||[NaN,NaN],this.closestPointXY(T[0],T[1],y,1/0),y}intersectsCoordinate(T){return this.containsXY(T[0],T[1])}computeExtent(T){return(0,t.O3)()}getExtent(T){if(this.extentRevision_!=this.getRevision()){const y=this.computeExtent(this.extent_);(isNaN(y[0])||isNaN(y[1]))&&(0,q.YN)(y),this.extentRevision_=this.getRevision()}return(0,q.EO)(this.extent_,T)}rotate(T,y){(0,t.O3)()}scale(T,y,A){(0,t.O3)()}simplify(T){return this.getSimplifiedGeometry(T*T)}getSimplifiedGeometry(T){return(0,t.O3)()}getType(){return(0,t.O3)()}applyTransform(T){(0,t.O3)()}intersectsExtent(T){return(0,t.O3)()}translate(T,y){(0,t.O3)()}transform(T,y){const A=(0,O.U2)(T),g="tile-pixels"==A.getUnits()?function(v,S,N){const j=A.getExtent(),M=A.getWorldExtent(),D=(0,q.Cr)(M)/(0,q.Cr)(j);return(0,Y.qC)(Z,M[0],M[3],D,-D,0,0,0),(0,G.vT)(v,0,v.length,N,Z,S),(0,O.Ck)(A,y)(v,S,N)}:(0,O.Ck)(A,y);return this.applyTransform(g),this}}const W=$;function P(w){let T;return"XY"==w?T=2:"XYZ"==w||"XYM"==w?T=3:"XYZM"==w&&(T=4),T}function k(w,T,y){const A=w.getFlatCoordinates();if(!A)return null;const g=w.getStride();return(0,G.vT)(A,0,A.length,g,T,y)}const E=class V extends W{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(T){return(0,q.GN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,T)}getCoordinates(){return(0,t.O3)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(T){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),T<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&T<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const y=this.getSimplifiedGeometryInternal(T);return y.getFlatCoordinates().length{"use strict";function pt(q,O,U,G){let Z=0,$=q[U-G],W=q[U-G+1];for(;OY,KP:()=>t,QQ:()=>pt})},5066:(Jt,$t,ht)=>{"use strict";ht.d($t,{Af:()=>q,Bv:()=>Y,H$:()=>U,Xl:()=>G,gI:()=>Z,sD:()=>O});var pt=ht(2156);function t($,W,V,R,P,k,E){const w=$[W],T=$[W+1],y=$[V]-w,A=$[V+1]-T;let g;if(0===y&&0===A)g=W;else{const v=((P-w)*y+(k-T)*A)/(y*y+A*A);if(v>1)g=V;else{if(v>0){for(let S=0;SP&&(P=y),k=w,E=T}return P}function q($,W,V,R,P){for(let k=0,E=V.length;k{"use strict";ht.d($t,{TG:()=>Y,Zl:()=>O,uG:()=>t,wY:()=>q});var pt=ht(760);function t(U,G,Z,$,W){return!(0,pt.H6)(W,function(R){return!Y(U,G,Z,$,R[0],R[1])})}function Y(U,G,Z,$,W,V){let R=0,P=U[Z-$],k=U[Z-$+1];for(;GV&&(E-P)*(V-k)-(W-P)*(w-k)>0&&R++:w<=V&&(E-P)*(V-k)-(W-P)*(w-k)<0&&R--,P=E,k=w}return 0!==R}function q(U,G,Z,$,W,V){if(0===Z.length||!Y(U,G,Z[0],$,W,V))return!1;for(let R=1,P=Z.length;R{"use strict";function pt(O,U,G,Z){for(let $=0,W=G.length;$pt,QT:()=>q,Sg:()=>t,_5:()=>Y})},392:(Jt,$t,ht)=>{"use strict";function pt(q,O,U,G,Z){Z=void 0!==Z?Z:[];let $=0;for(let W=O;Wpt,o1:()=>t,ug:()=>Y})},2474:(Jt,$t,ht)=>{"use strict";ht.d($t,{U:()=>q,X:()=>Y});var pt=ht(2456),t=ht(4325);function Y(O,U,G,Z,$,W,V){let R,P,k,E,w,T,y;const A=$[W+1],g=[];for(let N=0,j=G.length;NS&&(k=(E+w)/2,(0,t.wY)(O,U,G,Z,k,A)&&(v=k,S=N)),E=w}return isNaN(v)&&(v=$[W]),V?(V.push(v,A,S),V):[v,A,S]}function q(O,U,G,Z,$){let W=[];for(let V=0,R=G.length;V{"use strict";ht.d($t,{mV:()=>U,ac:()=>G,oW:()=>Z});var pt=ht(760);var Y=ht(4325);function q($,W,V,R,P){const k=(0,pt.qP)((0,pt.lJ)(),$,W,V,R);return!!(0,pt.kK)(P,k)&&(!!((0,pt.r4)(P,k)||k[0]>=P[0]&&k[2]<=P[2]||k[1]>=P[1]&&k[3]<=P[3])||function t($,W,V,R,P){let k;for(W+=R;W{"use strict";function pt(Z,$,W,V){for(;$0}function Y(Z,$,W,V,R){R=void 0!==R&&R;for(let P=0,k=W.length;PY,Oj:()=>q,zX:()=>O,dL:()=>U})},9182:(Jt,$t,ht)=>{"use strict";ht.d($t,{Pp:()=>W,Zh:()=>$,dt:()=>Y,uZ:()=>G});var pt=ht(2156);function Y(V,R,P,k,E,w,T){const y=(P-R)/k;if(y<3){for(;R0;){const S=g.pop(),N=g.pop();let j=0;const M=V[N],D=V[N+1],I=V[S],b=V[S+1];for(let d=N+k;dj&&(v=d,j=n)}j>E&&(A[(v-R)/k]=1,N+k0&&D>j)&&(M<0&&I0&&I>M)?(g=S,v=N):(w[T++]=g,w[T++]=v,y=g,A=v,g=S,v=N)}return w[T++]=g,w[T++]=v,T}function $(V,R,P,k,E,w,T,y){for(let A=0,g=P.length;A{"use strict";function pt(O,U,G,Z,$,W){W=W||[];let V=0;for(let R=U;Rq,U1:()=>t,bA:()=>Y,vT:()=>pt})},9996:(Jt,$t,ht)=>{"use strict";ht.d($t,{G$:()=>O,Id:()=>Z,MP:()=>G,Tp:()=>$,V:()=>t,bM:()=>W,tK:()=>U});const pt=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",t=pt.includes("firefox"),O=(pt.includes("safari")&&!pt.includes("chrom")&&(pt.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(pt)),pt.includes("webkit")&&!pt.includes("edge")),U=pt.includes("macintosh"),G=typeof devicePixelRatio<"u"?devicePixelRatio:1,Z=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,$=typeof Image<"u"&&Image.prototype.decode,W=function(){let V=!1;try{const R=Object.defineProperty({},"passive",{get:function(){V=!0}});window.addEventListener("_",null,R),window.removeEventListener("_",null,R)}catch{}return V}()},5560:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>G});var pt=ht(3632),t=ht(2683),Y=ht(119),q=ht(1911),O=ht(2156);class U extends pt.Z{constructor($){super(),this.on,this.once,this.un,this.background_=$.background;const W=Object.assign({},$);"object"==typeof $.properties&&(delete W.properties,Object.assign(W,$.properties)),W[t.Z.OPACITY]=void 0!==$.opacity?$.opacity:1,(0,q.h)("number"==typeof W[t.Z.OPACITY],64),W[t.Z.VISIBLE]=void 0===$.visible||$.visible,W[t.Z.Z_INDEX]=$.zIndex,W[t.Z.MAX_RESOLUTION]=void 0!==$.maxResolution?$.maxResolution:1/0,W[t.Z.MIN_RESOLUTION]=void 0!==$.minResolution?$.minResolution:0,W[t.Z.MIN_ZOOM]=void 0!==$.minZoom?$.minZoom:-1/0,W[t.Z.MAX_ZOOM]=void 0!==$.maxZoom?$.maxZoom:1/0,this.className_=void 0!==W.className?W.className:"ol-layer",delete W.className,this.setProperties(W),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState($){const W=this.state_||{layer:this,managed:void 0===$||$},V=this.getZIndex();return W.opacity=(0,O.uZ)(Math.round(100*this.getOpacity())/100,0,1),W.visible=this.getVisible(),W.extent=this.getExtent(),W.zIndex=void 0!==V||W.managed?V:1/0,W.maxResolution=this.getMaxResolution(),W.minResolution=Math.max(this.getMinResolution(),0),W.minZoom=this.getMinZoom(),W.maxZoom=this.getMaxZoom(),this.state_=W,W}getLayersArray($){return(0,Y.O3)()}getLayerStatesArray($){return(0,Y.O3)()}getExtent(){return this.get(t.Z.EXTENT)}getMaxResolution(){return this.get(t.Z.MAX_RESOLUTION)}getMinResolution(){return this.get(t.Z.MIN_RESOLUTION)}getMinZoom(){return this.get(t.Z.MIN_ZOOM)}getMaxZoom(){return this.get(t.Z.MAX_ZOOM)}getOpacity(){return this.get(t.Z.OPACITY)}getSourceState(){return(0,Y.O3)()}getVisible(){return this.get(t.Z.VISIBLE)}getZIndex(){return this.get(t.Z.Z_INDEX)}setBackground($){this.background_=$,this.changed()}setExtent($){this.set(t.Z.EXTENT,$)}setMaxResolution($){this.set(t.Z.MAX_RESOLUTION,$)}setMinResolution($){this.set(t.Z.MIN_RESOLUTION,$)}setMaxZoom($){this.set(t.Z.MAX_ZOOM,$)}setMinZoom($){this.set(t.Z.MIN_ZOOM,$)}setOpacity($){(0,q.h)("number"==typeof $,64),this.set(t.Z.OPACITY,$)}setVisible($){this.set(t.Z.VISIBLE,$)}setZIndex($){this.set(t.Z.Z_INDEX,$)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const G=U},4593:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>$,j:()=>Z});var pt=ht(5560),t=ht(9972),Y=ht(2683),q=ht(2526),O=ht(1911),U=ht(1729);class G extends pt.Z{constructor(V){const R=Object.assign({},V);delete R.source,super(R),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,V.render&&(this.render=V.render),V.map&&this.setMap(V.map),this.addChangeListener(Y.Z.SOURCE,this.handleSourcePropertyChange_);const P=V.source?V.source:null;this.setSource(P)}getLayersArray(V){return(V=V||[]).push(this),V}getLayerStatesArray(V){return(V=V||[]).push(this.getLayerState()),V}getSource(){return this.get(Y.Z.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const V=this.getSource();return V?V.getState():"undefined"}handleSourceChange_(){this.changed(),!this.sourceReady_&&"ready"===this.getSource().getState()&&(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,U.bN)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const V=this.getSource();V&&(this.sourceChangeKey_=(0,U.oL)(V,t.Z.CHANGE,this.handleSourceChange_,this),"ready"===V.getState()&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(V){return this.renderer_?this.renderer_.getFeatures(V):Promise.resolve([])}getData(V){return this.renderer_&&this.rendered?this.renderer_.getData(V):null}render(V,R){const P=this.getRenderer();if(P.prepareFrame(V))return this.rendered=!0,P.renderFrame(V,R)}unrender(){this.rendered=!1}setMapInternal(V){V||this.unrender(),this.set(Y.Z.MAP,V)}getMapInternal(){return this.get(Y.Z.MAP)}setMap(V){this.mapPrecomposeKey_&&((0,U.bN)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),V||this.changed(),this.mapRenderKey_&&((0,U.bN)(this.mapRenderKey_),this.mapRenderKey_=null),V&&(this.mapPrecomposeKey_=(0,U.oL)(V,q.Z.PRECOMPOSE,function(R){const k=R.frameState.layerStatesArray,E=this.getLayerState(!1);(0,O.h)(!k.some(function(w){return w.layer===E.layer}),67),k.push(E)},this),this.mapRenderKey_=(0,U.oL)(this,t.Z.CHANGE,V.render,V),this.changed())}setSource(V){this.set(Y.Z.SOURCE,V)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function Z(W,V){if(!W.visible)return!1;const R=V.resolution;if(R=W.maxResolution)return!1;const P=V.zoom;return P>W.minZoom&&P<=W.maxZoom}const $=G},2683:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>pt});const pt={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},4848:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>A});var pt=ht(4593);const t_PRELOAD="preload",t_USE_INTERIM_TILES_ON_ERROR="useInterimTilesOnError";class Y extends pt.Z{constructor(v){v=v||{};const S=Object.assign({},v);delete S.preload,delete S.useInterimTilesOnError,super(S),this.on,this.once,this.un,this.setPreload(void 0!==v.preload?v.preload:0),this.setUseInterimTilesOnError(void 0===v.useInterimTilesOnError||v.useInterimTilesOnError)}getPreload(){return this.get(t_PRELOAD)}setPreload(v){this.set(t_PRELOAD,v)}getUseInterimTilesOnError(){return this.get(t_USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(v){this.set(t_USE_INTERIM_TILES_ON_ERROR,v)}getData(v){return super.getData(v)}}const q=Y;var O=ht(2121),U=ht(9001),G=ht(8252),Z=ht(6609),$=ht(1999),W=ht(483),V=ht(2456),R=ht(760),P=ht(6003),k=ht(119),E=ht(1750);class w extends O.Z{constructor(v){super(v),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,R.lJ)(),this.tmpTileRange_=new Z.Z(0,0,0,0)}isDrawableTile(v){const S=this.getLayer(),N=v.getState(),j=S.getUseInterimTilesOnError();return N==$.Z.LOADED||N==$.Z.EMPTY||N==$.Z.ERROR&&!j}getTile(v,S,N,j){const M=j.pixelRatio,D=j.viewState.projection,I=this.getLayer();let d=I.getSource().getTile(v,S,N,M,D);return d.getState()==$.Z.ERROR&&I.getUseInterimTilesOnError()&&I.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(d)||(d=d.getInterimTile()),d}getData(v){const S=this.frameState;if(!S)return null;const N=this.getLayer(),j=(0,W.nn)(S.pixelToCoordinateTransform,v.slice()),M=N.getExtent();if(M&&!(0,R.b8)(M,j))return null;const D=S.pixelRatio,I=S.viewState.projection,b=S.viewState,d=N.getRenderSource(),u=d.getTileGridForProjection(b.projection),a=d.getTilePixelRatio(S.pixelRatio);for(let n=u.getZForResolution(b.resolution);n>=u.getMinZoom();--n){const o=u.getTileCoordForCoordAndZ(j,n),m=d.getTile(n,o[1],o[2],D,I);if(!(m instanceof U.Z||m instanceof G.Z)||m instanceof G.Z&&m.getState()===$.Z.EMPTY)return null;if(m.getState()!==$.Z.LOADED)continue;const _=u.getOrigin(n),B=(0,E.Pq)(u.getTileSize(n)),X=u.getResolution(n),it=Math.floor(a*((j[0]-_[0])/X-o[1]*B[0])),rt=Math.floor(a*((_[1]-j[1])/X-o[2]*B[1])),L=Math.round(a*d.getGutterForProjection(b.projection));return this.getImageData(m.getImage(),it+L,rt+L)}return null}loadedTileCallback(v,S,N){return!!this.isDrawableTile(N)&&super.loadedTileCallback(v,S,N)}prepareFrame(v){return!!this.getLayer().getSource()}renderFrame(v,S){const N=v.layerStatesArray[v.layerIndex],j=v.viewState,M=j.projection,D=j.resolution,I=j.center,b=j.rotation,d=v.pixelRatio,u=this.getLayer(),a=u.getSource(),n=a.getRevision(),o=a.getTileGridForProjection(M),m=o.getZForResolution(D,a.zDirection),_=o.getResolution(m);let B=v.extent;const X=v.viewState.resolution,it=a.getTilePixelRatio(d),rt=Math.round((0,R.dz)(B)/X*d),L=Math.round((0,R.Cr)(B)/X*d),z=N.extent&&(0,P.dY)(N.extent,M);z&&(B=(0,R.Ed)(B,(0,P.dY)(N.extent,M)));const et=_*rt/2/it,at=_*L/2/it,st=[I[0]-et,I[1]-at,I[0]+et,I[1]+at],H=o.getTileRangeForExtentAndZ(B,m),ot={};ot[m]={};const nt=this.createLoadedTileFinder(a,M,ot),yt=this.tmpExtent,gt=this.tmpTileRange_;this.newTiles_=!1;const mt=b?(0,R.dY)(j.center,X,b,v.size):void 0;for(let bt=H.minX;bt<=H.maxX;++bt)for(let _t=H.minY;_t<=H.maxY;++_t){if(b&&!o.tileCoordIntersectsViewport([m,bt,_t],mt))continue;const xt=this.getTile(m,bt,_t,v);if(this.isDrawableTile(xt)){const Ot=(0,k.sq)(this);if(xt.getState()==$.Z.LOADED){ot[m][xt.tileCoord.toString()]=xt;let Rt=xt.inTransition(Ot);Rt&&1!==N.opacity&&(xt.endTransition(Ot),Rt=!1),!this.newTiles_&&(Rt||!this.renderedTiles.includes(xt))&&(this.newTiles_=!0)}if(1===xt.getAlpha(Ot,v.time))continue}const ft=o.getTileCoordChildTileRange(xt.tileCoord,gt,yt);let Ct=!1;ft&&(Ct=nt(m+1,ft)),Ct||o.forEachTileCoordParentTileRange(xt.tileCoord,nt,gt,yt)}const St=_/D*d/it;(0,W.qC)(this.pixelTransform,v.size[0]/2,v.size[1]/2,1/d,1/d,b,-rt/2,-L/2);const wt=(0,W.BB)(this.pixelTransform);this.useContainer(S,wt,this.getBackground(v));const Mt=this.context,Dt=Mt.canvas;(0,W.nb)(this.inversePixelTransform,this.pixelTransform),(0,W.qC)(this.tempTransform,rt/2,L/2,St,St,0,-rt/2,-L/2),Dt.width!=rt||Dt.height!=L?(Dt.width=rt,Dt.height=L):this.containerReused||Mt.clearRect(0,0,rt,L),z&&this.clipUnrotated(Mt,v,z),a.getInterpolate()||(Mt.imageSmoothingEnabled=!1),this.preRender(Mt,v),this.renderedTiles.length=0;let Ft,jt,Ut,Pt=Object.keys(ot).map(Number);Pt.sort(V.j2),1!==N.opacity||this.containerReused&&!a.getOpaque(v.viewState.projection)?(Ft=[],jt=[]):Pt=Pt.reverse();for(let bt=Pt.length-1;bt>=0;--bt){const _t=Pt[bt],xt=a.getTilePixelSize(_t,d,M),Ct=o.getResolution(_t)/_,Ot=xt[0]*Ct*St,Rt=xt[1]*Ct*St,Zt=o.getTileCoordForCoordAndZ((0,R.rL)(st),_t),he=o.getTileCoordExtent(Zt),Ie=(0,W.nn)(this.tempTransform,[it*(he[0]-st[0])/_,it*(st[3]-he[3])/_]),ye=it*a.getGutterForProjection(M),Ne=ot[_t];for(const He in Ne){const ze=Ne[He],ii=ze.tileCoord,$e=Zt[1]-ii[1],Te=Math.round(Ie[0]-($e-1)*Ot),ke=Zt[2]-ii[2],We=Math.round(Ie[1]-(ke-1)*Rt),be=Math.round(Ie[0]-$e*Ot),se=Math.round(Ie[1]-ke*Rt),Se=Te-be,Le=We-se,_i=m===_t,vi=_i&&1!==ze.getAlpha((0,k.sq)(this),v.time);let Oi=!1;if(!vi)if(Ft){Ut=[be,se,be+Se,se,be+Se,se+Le,be,se+Le];for(let Ii=0,qi=Ft.length;Ii{"use strict";ht.d($t,{Z:()=>Jn});var pt=ht(4593),t=ht(2402),Y=ht(109),q=ht(7392),O=ht(5044),U=ht(9570),G=ht(8225),Z=ht(6785),$=ht(6564);function W(Xe){return new Y.ZP({fill:V(Xe,""),stroke:R(Xe,""),text:P(Xe),image:k(Xe)})}function V(Xe,Wt){const te=Xe[Wt+"fill-color"];if(te)return new O.Z({color:te})}function R(Xe,Wt){const te=Xe[Wt+"stroke-width"],ie=Xe[Wt+"stroke-color"];if(te||ie)return new Z.Z({width:te,color:ie,lineCap:Xe[Wt+"stroke-line-cap"],lineJoin:Xe[Wt+"stroke-line-join"],lineDash:Xe[Wt+"stroke-line-dash"],lineDashOffset:Xe[Wt+"stroke-line-dash-offset"],miterLimit:Xe[Wt+"stroke-miter-limit"]})}function P(Xe){const Wt=Xe["text-value"];return Wt?new $.Z({text:Wt,font:Xe["text-font"],maxAngle:Xe["text-max-angle"],offsetX:Xe["text-offset-x"],offsetY:Xe["text-offset-y"],overflow:Xe["text-overflow"],placement:Xe["text-placement"],scale:Xe["text-scale"],rotateWithView:Xe["text-rotate-with-view"],rotation:Xe["text-rotation"],textAlign:Xe["text-align"],justify:Xe["text-justify"],textBaseline:Xe["text-baseline"],padding:Xe["text-padding"],fill:V(Xe,"text-"),backgroundFill:V(Xe,"text-background-"),stroke:R(Xe,"text-"),backgroundStroke:R(Xe,"text-background-")}):void 0}function k(Xe){const Wt=Xe["icon-src"],te=Xe["icon-img"];if(Wt||te)return new U.Z({src:Wt,img:te,imgSize:Xe["icon-img-size"],anchor:Xe["icon-anchor"],anchorOrigin:Xe["icon-anchor-origin"],anchorXUnits:Xe["icon-anchor-x-units"],anchorYUnits:Xe["icon-anchor-y-units"],color:Xe["icon-color"],crossOrigin:Xe["icon-cross-origin"],offset:Xe["icon-offset"],displacement:Xe["icon-displacement"],opacity:Xe["icon-opacity"],scale:Xe["icon-scale"],rotation:Xe["icon-rotation"],rotateWithView:Xe["icon-rotate-with-view"],size:Xe["icon-size"],declutterMode:Xe["icon-declutter-mode"]});const ie=Xe["shape-points"];if(ie){const ge="shape-";return new G.Z({points:ie,fill:V(Xe,ge),stroke:R(Xe,ge),radius:Xe["shape-radius"],radius1:Xe["shape-radius1"],radius2:Xe["shape-radius2"],angle:Xe["shape-angle"],displacement:Xe["shape-displacement"],rotation:Xe["shape-rotation"],rotateWithView:Xe["shape-rotate-with-view"],scale:Xe["shape-scale"],declutterMode:Xe["shape-declutter-mode"]})}const me=Xe["circle-radius"];if(me){const ge="circle-";return new q.Z({radius:me,fill:V(Xe,ge),stroke:R(Xe,ge),displacement:Xe["circle-displacement"],scale:Xe["circle-scale"],rotation:Xe["circle-rotation"],rotateWithView:Xe["circle-rotate-with-view"],declutterMode:Xe["circle-declutter-mode"]})}}const E_RENDER_ORDER="renderOrder";class w extends pt.Z{constructor(Wt){Wt=Wt||{};const te=Object.assign({},Wt);delete te.style,delete te.renderBuffer,delete te.updateWhileAnimating,delete te.updateWhileInteracting,super(te),this.declutter_=void 0!==Wt.declutter&&Wt.declutter,this.renderBuffer_=void 0!==Wt.renderBuffer?Wt.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(Wt.style),this.updateWhileAnimating_=void 0!==Wt.updateWhileAnimating&&Wt.updateWhileAnimating,this.updateWhileInteracting_=void 0!==Wt.updateWhileInteracting&&Wt.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(Wt){return super.getFeatures(Wt)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(E_RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(Wt){Wt.declutterTree||(Wt.declutterTree=new t(9)),this.getRenderer().renderDeclutter(Wt)}setRenderOrder(Wt){this.set(E_RENDER_ORDER,Wt)}setStyle(Wt){let te;if(void 0===Wt)te=Y.yF;else if(null===Wt)te=null;else if("function"==typeof Wt)te=Wt;else if(Wt instanceof Y.ZP)te=Wt;else if(Array.isArray(Wt)){const ie=Wt.length,me=new Array(ie);for(let ge=0;gePe&&(this.instructions.push([N.CUSTOM,Pe,Fe,Wt,ie,a.Ml]),this.hitDetectionInstructions.push([N.CUSTOM,Pe,Fe,Wt,me||ie,a.Ml]));break;case"Point":Ae=Wt.getFlatCoordinates(),this.coordinates.push(Ae[0],Ae[1]),Fe=this.coordinates.length,this.instructions.push([N.CUSTOM,Pe,Fe,Wt,ie]),this.hitDetectionInstructions.push([N.CUSTOM,Pe,Fe,Wt,me||ie])}this.endGeometry(te)}beginGeometry(Wt,te){this.beginGeometryInstruction1_=[N.BEGIN_GEOMETRY,te,0,Wt],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[N.BEGIN_GEOMETRY,te,0,Wt],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const Wt=this.hitDetectionInstructions;let te;Wt.reverse();const ie=Wt.length;let me,ge,De=-1;for(te=0;tethis.maxLineWidth&&(this.maxLineWidth=ie.lineWidth,this.bufferedMaxExtent_=null)}else ie.strokeStyle=void 0,ie.lineCap=void 0,ie.lineDash=null,ie.lineDashOffset=void 0,ie.lineJoin=void 0,ie.lineWidth=void 0,ie.miterLimit=void 0}createFill(Wt){const te=Wt.fillStyle,ie=[N.SET_FILL_STYLE,te];return"string"!=typeof te&&ie.push(!0),ie}applyStroke(Wt){this.instructions.push(this.createStroke(Wt))}createStroke(Wt){return[N.SET_STROKE_STYLE,Wt.strokeStyle,Wt.lineWidth*this.pixelRatio,Wt.lineCap,Wt.lineJoin,Wt.miterLimit,this.applyPixelRatio(Wt.lineDash),Wt.lineDashOffset*this.pixelRatio]}updateFillStyle(Wt,te){const ie=Wt.fillStyle;("string"!=typeof ie||Wt.currentFillStyle!=ie)&&(void 0!==ie&&this.instructions.push(te.call(this,Wt)),Wt.currentFillStyle=ie)}updateStrokeStyle(Wt,te){const ie=Wt.strokeStyle,me=Wt.lineCap,ge=Wt.lineDash,De=Wt.lineDashOffset,Pe=Wt.lineJoin,Ae=Wt.lineWidth,Fe=Wt.miterLimit;(Wt.currentStrokeStyle!=ie||Wt.currentLineCap!=me||ge!=Wt.currentLineDash&&!(0,u.fS)(Wt.currentLineDash,ge)||Wt.currentLineDashOffset!=De||Wt.currentLineJoin!=Pe||Wt.currentLineWidth!=Ae||Wt.currentMiterLimit!=Fe)&&(void 0!==ie&&te.call(this,Wt),Wt.currentStrokeStyle=ie,Wt.currentLineCap=me,Wt.currentLineDash=ge,Wt.currentLineDashOffset=De,Wt.currentLineJoin=Pe,Wt.currentLineWidth=Ae,Wt.currentMiterLimit=Fe)}endGeometry(Wt){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const te=[N.END_GEOMETRY,Wt];this.instructions.push(te),this.hitDetectionInstructions.push(te)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,b.d9)(this.maxExtent),this.maxLineWidth>0)){const Wt=this.resolution*(this.maxLineWidth+1)/2;(0,b.f3)(this.bufferedMaxExtent_,Wt,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}};const _=class m extends o{constructor(Wt,te,ie,me){super(Wt,te,ie,me),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(Wt,te){if(!this.image_)return;this.beginGeometry(Wt,te);const ie=Wt.getFlatCoordinates(),me=Wt.getStride(),ge=this.coordinates.length,De=this.appendFlatPointCoordinates(ie,me);this.instructions.push([N.DRAW_IMAGE,ge,De,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([N.DRAW_IMAGE,ge,De,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(te)}drawMultiPoint(Wt,te){if(!this.image_)return;this.beginGeometry(Wt,te);const ie=Wt.getFlatCoordinates(),me=Wt.getStride(),ge=this.coordinates.length,De=this.appendFlatPointCoordinates(ie,me);this.instructions.push([N.DRAW_IMAGE,ge,De,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([N.DRAW_IMAGE,ge,De,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(te)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(Wt,te){const ie=Wt.getAnchor(),me=Wt.getSize(),ge=Wt.getOrigin();this.imagePixelRatio_=Wt.getPixelRatio(this.pixelRatio),this.anchorX_=ie[0],this.anchorY_=ie[1],this.hitDetectionImage_=Wt.getHitDetectionImage(),this.image_=Wt.getImage(this.pixelRatio),this.height_=me[1],this.opacity_=Wt.getOpacity(),this.originX_=ge[0],this.originY_=ge[1],this.rotateWithView_=Wt.getRotateWithView(),this.rotation_=Wt.getRotation(),this.scale_=Wt.getScaleArray(),this.width_=me[0],this.declutterMode_=Wt.getDeclutterMode(),this.declutterImageWithText_=te}};const X=class B extends o{constructor(Wt,te,ie,me){super(Wt,te,ie,me)}drawFlatCoordinates_(Wt,te,ie,me){const ge=this.coordinates.length,De=this.appendFlatLineCoordinates(Wt,te,ie,me,!1,!1),Pe=[N.MOVE_TO_LINE_TO,ge,De];return this.instructions.push(Pe),this.hitDetectionInstructions.push(Pe),ie}drawLineString(Wt,te){const ie=this.state,me=ie.strokeStyle,ge=ie.lineWidth;if(void 0===me||void 0===ge)return;this.updateStrokeStyle(ie,this.applyStroke),this.beginGeometry(Wt,te),this.hitDetectionInstructions.push([N.SET_STROKE_STYLE,ie.strokeStyle,ie.lineWidth,ie.lineCap,ie.lineJoin,ie.miterLimit,d.X9,d.He],v);const De=Wt.getFlatCoordinates(),Pe=Wt.getStride();this.drawFlatCoordinates_(De,0,De.length,Pe),this.hitDetectionInstructions.push(g),this.endGeometry(te)}drawMultiLineString(Wt,te){const ie=this.state,me=ie.strokeStyle,ge=ie.lineWidth;if(void 0===me||void 0===ge)return;this.updateStrokeStyle(ie,this.applyStroke),this.beginGeometry(Wt,te),this.hitDetectionInstructions.push([N.SET_STROKE_STYLE,ie.strokeStyle,ie.lineWidth,ie.lineCap,ie.lineJoin,ie.miterLimit,ie.lineDash,ie.lineDashOffset],v);const De=Wt.getEnds(),Pe=Wt.getFlatCoordinates(),Ae=Wt.getStride();let Fe=0;for(let Ze=0,ri=De.length;ZeXe&&(Ae>Pe&&(Pe=Ae,ge=Fe,De=ri),Ae=0,Fe=ri-me)),Qe=gi,li=Je,ai=Di),Ye=Re,ci=Vt}return Ae+=gi,Ae>Pe?[Fe,ri]:[ge,De]}const at={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const ot={Circle:L,Default:o,Image:_,LineString:X,Polygon:L,Text:class st extends o{constructor(Wt,te,ie,me){super(Wt,te,ie,me),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const Wt=super.finish();return Wt.textStates=this.textStates,Wt.fillStates=this.fillStates,Wt.strokeStates=this.strokeStates,Wt}drawText(Wt,te){const ie=this.textFillState_,me=this.textStrokeState_,ge=this.textState_;if(""===this.text_||!ge||!ie&&!me)return;const De=this.coordinates;let Pe=De.length;const Ae=Wt.getType();let Fe=null,Ze=Wt.getStride();if("line"!==ge.placement||"LineString"!=Ae&&"MultiLineString"!=Ae&&"Polygon"!=Ae&&"MultiPolygon"!=Ae){let ri=ge.overflow?null:[];switch(Ae){case"Point":case"MultiPoint":Fe=Wt.getFlatCoordinates();break;case"LineString":Fe=Wt.getFlatMidpoint();break;case"Circle":Fe=Wt.getCenter();break;case"MultiLineString":Fe=Wt.getFlatMidpoints(),Ze=2;break;case"Polygon":Fe=Wt.getFlatInteriorPoint(),ge.overflow||ri.push(Fe[2]/this.resolution),Ze=3;break;case"MultiPolygon":const li=Wt.getFlatInteriorPoints();Fe=[];for(let ai=0,Je=li.length;ai{const Di=De[2*(li+Je)]===Fe[Je*Ze]&&De[2*(li+Je)+1]===Fe[Je*Ze+1];return Di||--li,Di})}this.saveTextStates_(),(ge.backgroundFill||ge.backgroundStroke)&&(this.setFillStrokeStyle(ge.backgroundFill,ge.backgroundStroke),ge.backgroundFill&&(this.updateFillStyle(this.state,this.createFill),this.hitDetectionInstructions.push(this.createFill(this.state))),ge.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(Wt,te);let gi=ge.padding;if(gi!=d.oB&&(ge.scale[0]<0||ge.scale[1]<0)){let li=ge.padding[0],ai=ge.padding[1],Je=ge.padding[2],Di=ge.padding[3];ge.scale[0]<0&&(ai=-ai,Di=-Di),ge.scale[1]<0&&(li=-li,Je=-Je),gi=[li,ai,Je,Di]}const Ye=this.pixelRatio;this.instructions.push([N.DRAW_IMAGE,Pe,Qe,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,gi==d.oB?d.oB:gi.map(function(li){return li*Ye}),!!ge.backgroundFill,!!ge.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,ri]);const ci=1/Ye;this.hitDetectionInstructions.push([N.DRAW_IMAGE,Pe,Qe,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[ci,ci],NaN,void 0,this.declutterImageWithText_,gi,!!ge.backgroundFill,!!ge.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,ri]),this.endGeometry(te)}else{if(!(0,b.kK)(this.getBufferedMaxExtent(),Wt.getExtent()))return;let ri;if(Fe=Wt.getFlatCoordinates(),"LineString"==Ae)ri=[Fe.length];else if("MultiLineString"==Ae)ri=Wt.getEnds();else if("Polygon"==Ae)ri=Wt.getEnds().slice(0,1);else if("MultiPolygon"==Ae){const ci=Wt.getEndss();ri=[];for(let li=0,ai=ci.length;liTi[2]}else mi=Re>qe;const Mi=Math.PI,Oe=[],fn=oe+ie===Wt;let tn;if(li=0,ai=fe,Qe=Xe[Wt=oe],gi=Xe[Wt+1],fn){Je(),tn=Math.atan2(gi-ci,Qe-Ye),mi&&(tn+=tn>0?-Mi:Mi);const Ti=(qe+Re)/2,nn=(ti+Vt)/2;return Oe[0]=[Ti,nn,(ve-ge)/2,tn,me],Oe}for(let Ti=0,nn=(me=me.replace(/\n/g," ")).length;Ti0?-Mi:Mi),void 0!==tn){let un=Yi-tn;if(un+=un>Mi?-2*Mi:un<-Mi?2*Mi:0,Math.abs(un)>De)return null}tn=Yi;const Xi=Ti;let Hn=0;for(;Ti0&&Xe.push("\n",""),Xe.push(Wt,""),Xe}const Zt=class Rt{constructor(Wt,te,ie,me){this.overlaps=ie,this.pixelRatio=te,this.resolution=Wt,this.alignFill_,this.instructions=me.instructions,this.coordinates=me.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,mt.Ue)(),this.hitDetectionInstructions=me.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=me.fillStates||{},this.strokeStates=me.strokeStates||{},this.textStates=me.textStates||{},this.widths_={},this.labels_={}}createLabel(Wt,te,ie,me){const ge=Wt+te+ie+me;if(this.labels_[ge])return this.labels_[ge];const De=me?this.strokeStates[me]:null,Pe=ie?this.fillStates[ie]:null,Ae=this.textStates[te],Fe=this.pixelRatio,Ze=[Ae.scale[0]*Fe,Ae.scale[1]*Fe],ri=Array.isArray(Wt),Qe=Ae.justify?at[Ae.justify]:Ct(Array.isArray(Wt)?Wt[0]:Wt,Ae.textAlign||d.PH),gi=me&&De.lineWidth?De.lineWidth:0,Ye=ri?Wt:Wt.split("\n").reduce(Ot,[]),{width:ci,height:li,widths:ai,heights:Je,lineWidths:Di}=(0,d.Zw)(Ae,Ye),Re=ci+gi,Vt=[],oe=(Re+2)*Ze[0],fe=(li+gi)*Ze[1],ve={width:oe<0?Math.floor(oe):Math.ceil(oe),height:fe<0?Math.floor(fe):Math.ceil(fe),contextInstructions:Vt};(1!=Ze[0]||1!=Ze[1])&&Vt.push("scale",Ze),me&&(Vt.push("strokeStyle",De.strokeStyle),Vt.push("lineWidth",gi),Vt.push("lineCap",De.lineCap),Vt.push("lineJoin",De.lineJoin),Vt.push("miterLimit",De.miterLimit),Vt.push("setLineDash",[De.lineDash]),Vt.push("lineDashOffset",De.lineDashOffset)),ie&&Vt.push("fillStyle",Pe.fillStyle),Vt.push("textBaseline","middle"),Vt.push("textAlign","center");const qe=.5-Qe;let ti=Qe*Re+qe*gi;const mi=[],Mi=[];let nn,Oe=0,fn=0,tn=0,Ti=0;for(let Yi=0,Xi=Ye.length;YiWt?Wt-Fe:ge,Re=De+Ze>te?te-Ze:De,Vt=Ye[3]+Di*Qe[0]+Ye[1],oe=Ye[0]+Re*Qe[1]+Ye[2],fe=ai-Ye[3],ve=Je-Ye[0];let qe;return(ci||0!==ri)&&(jt[0]=fe,_t[0]=fe,jt[1]=ve,Ut[1]=ve,Ut[0]=fe+Vt,bt[0]=Ut[0],bt[1]=ve+oe,_t[1]=bt[1]),0!==ri?(qe=(0,mt.qC)((0,mt.Ue)(),ie,me,1,1,ri,-ie,-me),(0,mt.nn)(qe,jt),(0,mt.nn)(qe,Ut),(0,mt.nn)(qe,bt),(0,mt.nn)(qe,_t),(0,b.T9)(Math.min(jt[0],Ut[0],bt[0],_t[0]),Math.min(jt[1],Ut[1],bt[1],_t[1]),Math.max(jt[0],Ut[0],bt[0],_t[0]),Math.max(jt[1],Ut[1],bt[1],_t[1]),Ft)):(0,b.T9)(Math.min(fe,fe+Vt),Math.min(ve,ve+oe),Math.max(fe,fe+Vt),Math.max(ve,ve+oe),Ft),gi&&(ai=Math.round(ai),Je=Math.round(Je)),{drawImageX:ai,drawImageY:Je,drawImageW:Di,drawImageH:Re,originX:Fe,originY:Ze,declutterBox:{minX:Ft[0],minY:Ft[1],maxX:Ft[2],maxY:Ft[3],value:li},canvasTransform:qe,scale:Qe}}replayImageOrLabel_(Wt,te,ie,me,ge,De,Pe){const Ae=!(!De&&!Pe),Fe=me.declutterBox,Ze=Wt.canvas,ri=Pe?Pe[2]*me.scale[0]/2:0;return Fe.minX-ri<=Ze.width/te&&Fe.maxX+ri>=0&&Fe.minY-ri<=Ze.height/te&&Fe.maxY+ri>=0&&(Ae&&this.replayTextBackground_(Wt,jt,Ut,bt,_t,De,Pe),(0,d._f)(Wt,me.canvasTransform,ge,ie,me.originX,me.originY,me.drawImageW,me.drawImageH,me.drawImageX,me.drawImageY,me.scale)),!0}fill_(Wt){if(this.alignFill_){const te=(0,mt.nn)(this.renderedTransform_,[0,0]),ie=512*this.pixelRatio;Wt.save(),Wt.translate(te[0]%ie,te[1]%ie),Wt.rotate(this.viewRotation_)}Wt.fill(),this.alignFill_&&Wt.restore()}setStrokeStyle_(Wt,te){Wt.strokeStyle=te[1],Wt.lineWidth=te[2],Wt.lineCap=te[3],Wt.lineJoin=te[4],Wt.miterLimit=te[5],Wt.lineDashOffset=te[7],Wt.setLineDash(te[6])}drawLabelWithPointPlacement_(Wt,te,ie,me){const ge=this.textStates[te],De=this.createLabel(Wt,te,me,ie),Pe=this.strokeStates[ie],Ae=this.pixelRatio,Fe=Ct(Array.isArray(Wt)?Wt[0]:Wt,ge.textAlign||d.PH),Ze=at[ge.textBaseline||d.ru],ri=Pe&&Pe.lineWidth?Pe.lineWidth:0;return{label:De,anchorX:Fe*(De.width/Ae-2*ge.scale[0])+2*(.5-Fe)*ri,anchorY:Ze*De.height/Ae+2*(.5-Ze)*ri}}execute_(Wt,te,ie,me,ge,De,Pe,Ae){let Fe;this.pixelCoordinates_&&(0,u.fS)(ie,this.renderedTransform_)?Fe=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),Fe=(0,wt.vT)(this.coordinates,0,this.coordinates.length,2,ie,this.pixelCoordinates_),(0,mt.lk)(this.renderedTransform_,ie));let Ze=0;const ri=me.length;let gi,Ye,ci,li,ai,Je,Di,Re,Vt,oe,fe,ve,Qe=0,qe=0,ti=0,mi=null,Mi=null;const Oe=this.coordinateCache_,fn=this.viewRotation_,tn=Math.round(1e12*Math.atan2(-ie[1],ie[0]))/1e12,Ti={context:Wt,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:fn},nn=this.instructions!=me||this.overlaps?0:200;let Yi,Xi,Hn,Pn;for(;Zenn&&(this.fill_(Wt),qe=0),ti>nn&&(Wt.stroke(),ti=0),!qe&&!ti&&(Wt.beginPath(),li=NaN,ai=NaN),++Ze;break;case N.CIRCLE:Qe=Ci[1];const un=Fe[Qe],An=Fe[Qe+1],Ln=Fe[Qe+2]-un,je=Fe[Qe+3]-An,ee=Math.sqrt(Ln*Ln+je*je);Wt.moveTo(un+ee,An),Wt.arc(un,An,ee,0,2*Math.PI,!0),++Ze;break;case N.CLOSE_PATH:Wt.closePath(),++Ze;break;case N.CUSTOM:Qe=Ci[1],gi=Ci[2];const gn=Ci[3],xr=Ci[4],pr=6==Ci.length?Ci[5]:void 0;Ti.geometry=gn,Ti.feature=Yi,Ze in Oe||(Oe[Ze]=[]);const Er=Oe[Ze];pr?pr(Fe,Qe,gi,2,Er):(Er[0]=Fe[Qe],Er[1]=Fe[Qe+1],Er.length=2),xr(Er,Ti),++Ze;break;case N.DRAW_IMAGE:Qe=Ci[1],gi=Ci[2],Re=Ci[3],Ye=Ci[4],ci=Ci[5];let xs=Ci[6];const tl=Ci[7],cr=Ci[8],Kr=Ci[9],Sr=Ci[10];let la=Ci[11];const is=Ci[12];let fr=Ci[13];const Hh=Ci[14],gr=Ci[15];if(!Re&&Ci.length>=20){Vt=Ci[19],oe=Ci[20],fe=Ci[21],ve=Ci[22];const vr=this.drawLabelWithPointPlacement_(Vt,oe,fe,ve);Re=vr.label,Ci[3]=Re;const Tn=Ci[23];Ye=(vr.anchorX-Tn)*this.pixelRatio,Ci[4]=Ye;const Vn=Ci[24];ci=(vr.anchorY-Vn)*this.pixelRatio,Ci[5]=ci,xs=Re.height,Ci[6]=xs,fr=Re.width,Ci[13]=fr}let Oa,Cs,ca,hs;Ci.length>25&&(Oa=Ci[25]),Ci.length>17?(Cs=Ci[16],ca=Ci[17],hs=Ci[18]):(Cs=d.oB,ca=!1,hs=!1),Sr&&tn?la+=fn:!Sr&&!tn&&(la-=fn);let ka=0;for(;Qete)break;let Ae=ie[Pe];Ae||(Ae=[],ie[Pe]=Ae),Ae.push(4*((Xe+ge)*Wt+(Xe+De))+3),ge>0&&Ae.push(4*((Xe-ge)*Wt+(Xe+De))+3),De>0&&(Ae.push(4*((Xe+ge)*Wt+(Xe-De))+3),ge>0&&Ae.push(4*((Xe-ge)*Wt+(Xe-De))+3))}const me=[];for(let ge=0,De=ie.length;ge0){if(!De||"Image"!==gi&&"Text"!==gi||De.includes(Vt)){const ti=(Qe[ve]-3)/4,mi=me-ti%Pe,Mi=me-(ti/Pe|0),Oe=ge(Vt,oe,mi*mi+Mi*Mi);if(Oe)return Oe}Ze.clearRect(0,0,Pe,Pe);break}}const ci=Object.keys(this.executorsByZIndex_).map(Number);let li,ai,Je,Di,Re;for(ci.sort(u.j2),li=ci.length-1;li>=0;--li){const Vt=ci[li].toString();for(Je=this.executorsByZIndex_[Vt],ai=ye.length-1;ai>=0;--ai)if(gi=ye[ai],Di=Je[gi],void 0!==Di&&(Re=Di.executeHitDetection(Ze,Ae,ie,Ye,ri),Re))return Re}}getClipCoords(Wt){const te=this.maxExtent_;if(!te)return null;const ie=te[0],me=te[1],ge=te[2],De=te[3],Pe=[ie,me,ie,De,ge,De,ge,me];return(0,wt.vT)(Pe,0,8,2,Wt,Pe),Pe}isEmpty(){return(0,Ie.x)(this.executorsByZIndex_)}execute(Wt,te,ie,me,ge,De,Pe){const Ae=Object.keys(this.executorsByZIndex_).map(Number);let Fe,Ze,ri,Qe,gi,Ye;for(Ae.sort(u.j2),this.maxExtent_&&(Wt.save(),this.clip(Wt,ie)),De=De||ye,Pe&&Ae.reverse(),Fe=0,Ze=Ae.length;Feri*this.pixelRatio_),lineDashOffset:(De||d.He)*this.pixelRatio_,lineJoin:void 0!==Pe?Pe:d.rc,lineWidth:(void 0!==Ae?Ae:d.yC)*this.pixelRatio_,miterLimit:void 0!==Fe?Fe:d.V4,strokeStyle:(0,I.y)(ie||d.Tx)}}else this.strokeState_=null}setImageStyle(Wt){let te;if(!Wt||!(te=Wt.getSize()))return void(this.image_=null);const ie=Wt.getPixelRatio(this.pixelRatio_),me=Wt.getAnchor(),ge=Wt.getOrigin();this.image_=Wt.getImage(this.pixelRatio_),this.imageAnchorX_=me[0]*ie,this.imageAnchorY_=me[1]*ie,this.imageHeight_=te[1]*ie,this.imageOpacity_=Wt.getOpacity(),this.imageOriginX_=ge[0],this.imageOriginY_=ge[1],this.imageRotateWithView_=Wt.getRotateWithView(),this.imageRotation_=Wt.getRotation();const De=Wt.getScaleArray();this.imageScale_=[De[0]*this.pixelRatio_/ie,De[1]*this.pixelRatio_/ie],this.imageWidth_=te[0]*ie}setTextStyle(Wt){if(Wt){const te=Wt.getFill();if(te){const gi=te.getColor();this.textFillState_={fillStyle:(0,I.y)(gi||d.bL)}}else this.textFillState_=null;const ie=Wt.getStroke();if(ie){const gi=ie.getColor(),Ye=ie.getLineCap(),ci=ie.getLineDash(),li=ie.getLineDashOffset(),ai=ie.getLineJoin(),Je=ie.getWidth(),Di=ie.getMiterLimit();this.textStrokeState_={lineCap:void 0!==Ye?Ye:d.mb,lineDash:ci||d.X9,lineDashOffset:li||d.He,lineJoin:void 0!==ai?ai:d.rc,lineWidth:void 0!==Je?Je:d.yC,miterLimit:void 0!==Di?Di:d.V4,strokeStyle:(0,I.y)(gi||d.Tx)}}else this.textStrokeState_=null;const me=Wt.getFont(),ge=Wt.getOffsetX(),De=Wt.getOffsetY(),Pe=Wt.getRotateWithView(),Ae=Wt.getRotation(),Fe=Wt.getScaleArray(),Ze=Wt.getText(),ri=Wt.getTextAlign(),Qe=Wt.getTextBaseline();this.textState_={font:void 0!==me?me:d.Df,textAlign:void 0!==ri?ri:d.PH,textBaseline:void 0!==Qe?Qe:d.ru},this.text_=void 0!==Ze?Array.isArray(Ze)?Ze.reduce((gi,Ye,ci)=>gi+(ci%2?" ":Ye),""):Ze:"",this.textOffsetX_=void 0!==ge?this.pixelRatio_*ge:0,this.textOffsetY_=void 0!==De?this.pixelRatio_*De:0,this.textRotateWithView_=void 0!==Pe&&Pe,this.textRotation_=void 0!==Ae?Ae:0,this.textScale_=[this.pixelRatio_*Fe[0],this.pixelRatio_*Fe[1]]}else this.text_=""}},be=.5;var Le=ht(521);const vi={Point:function di(Xe,Wt,te,ie,me){const ge=te.getImage(),De=te.getText();let Pe;if(ge){if(ge.getImageState()!=Le.Z.LOADED)return;let Ae=Xe;if(me){const Ze=ge.getDeclutterMode();if("none"!==Ze)if(Ae=me,"obstacle"===Ze){const ri=Xe.getBuilder(te.getZIndex(),"Image");ri.setImageStyle(ge,Pe),ri.drawPoint(Wt,ie)}else De&&De.getText()&&(Pe={})}const Fe=Ae.getBuilder(te.getZIndex(),"Image");Fe.setImageStyle(ge,Pe),Fe.drawPoint(Wt,ie)}if(De&&De.getText()){let Ae=Xe;me&&(Ae=me);const Fe=Ae.getBuilder(te.getZIndex(),"Text");Fe.setTextStyle(De,Pe),Fe.drawText(Wt,ie)}},LineString:function ce(Xe,Wt,te,ie,me){const ge=te.getStroke();if(ge){const Pe=Xe.getBuilder(te.getZIndex(),"LineString");Pe.setFillStrokeStyle(null,ge),Pe.drawLineString(Wt,ie)}const De=te.getText();if(De&&De.getText()){const Pe=(me||Xe).getBuilder(te.getZIndex(),"Text");Pe.setTextStyle(De),Pe.drawText(Wt,ie)}},Polygon:function Hi(Xe,Wt,te,ie,me){const ge=te.getFill(),De=te.getStroke();if(ge||De){const Ae=Xe.getBuilder(te.getZIndex(),"Polygon");Ae.setFillStrokeStyle(ge,De),Ae.drawPolygon(Wt,ie)}const Pe=te.getText();if(Pe&&Pe.getText()){const Ae=(me||Xe).getBuilder(te.getZIndex(),"Text");Ae.setTextStyle(Pe),Ae.drawText(Wt,ie)}},MultiPoint:function Fi(Xe,Wt,te,ie,me){const ge=te.getImage(),De=te.getText();let Pe;if(ge){if(ge.getImageState()!=Le.Z.LOADED)return;let Ae=Xe;if(me){const Ze=ge.getDeclutterMode();if("none"!==Ze)if(Ae=me,"obstacle"===Ze){const ri=Xe.getBuilder(te.getZIndex(),"Image");ri.setImageStyle(ge,Pe),ri.drawMultiPoint(Wt,ie)}else De&&De.getText()&&(Pe={})}const Fe=Ae.getBuilder(te.getZIndex(),"Image");Fe.setImageStyle(ge,Pe),Fe.drawMultiPoint(Wt,ie)}if(De&&De.getText()){let Ae=Xe;me&&(Ae=me);const Fe=Ae.getBuilder(te.getZIndex(),"Text");Fe.setTextStyle(De,Pe),Fe.drawText(Wt,ie)}},MultiLineString:function Ee(Xe,Wt,te,ie,me){const ge=te.getStroke();if(ge){const Pe=Xe.getBuilder(te.getZIndex(),"LineString");Pe.setFillStrokeStyle(null,ge),Pe.drawMultiLineString(Wt,ie)}const De=te.getText();if(De&&De.getText()){const Pe=(me||Xe).getBuilder(te.getZIndex(),"Text");Pe.setTextStyle(De),Pe.drawText(Wt,ie)}},MultiPolygon:function Ke(Xe,Wt,te,ie,me){const ge=te.getFill(),De=te.getStroke();if(De||ge){const Ae=Xe.getBuilder(te.getZIndex(),"Polygon");Ae.setFillStrokeStyle(ge,De),Ae.drawMultiPolygon(Wt,ie)}const Pe=te.getText();if(Pe&&Pe.getText()){const Ae=(me||Xe).getBuilder(te.getZIndex(),"Text");Ae.setTextStyle(Pe),Ae.drawText(Wt,ie)}},GeometryCollection:function si(Xe,Wt,te,ie,me){const ge=Wt.getGeometriesArray();let De,Pe;for(De=0,Pe=ge.length;De{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const ie=[this.context.canvas.width,this.context.canvas.height];(0,mt.nn)(this.pixelTransform,ie);const me=this.renderedCenter_,ge=this.renderedResolution_,De=this.renderedRotation_,Pe=this.renderedProjection_,Ae=this.wrappedRenderedExtent_,Fe=this.getLayer(),Ze=[],ri=ie[0]*be,Qe=ie[1]*be;Ze.push(this.getRenderTransform(me,ge,De,be,ri,Qe,0).slice());const gi=Fe.getSource(),Ye=Pe.getExtent();if(gi.getWrapX()&&Pe.canWrapX()&&!(0,b.r4)(Ye,Ae)){let ci=Ae[0];const li=(0,b.dz)(Ye);let Je,ai=0;for(;ciYe[2];)++ai,Je=li*ai,Ze.push(this.getRenderTransform(me,ge,De,be,ri,Qe,Je).slice()),ci-=li}this.hitDetectionImageData_=function se(Xe,Wt,te,ie,me,ge,De){const Pe=Xe[0]*be,Ae=Xe[1]*be,Fe=(0,he.E4)(Pe,Ae);Fe.imageSmoothingEnabled=!1;const Ze=Fe.canvas,ri=new We(Fe,be,me,null,De),Qe=te.length,gi=Math.floor(16777215/Qe),Ye={};for(let li=1;li<=Qe;++li){const ai=te[li-1],Je=ai.getStyleFunction()||ie;if(!ie)continue;let Di=Je(ai,ge);if(!Di)continue;Array.isArray(Di)||(Di=[Di]);const Vt=(li*gi).toString(16).padStart(7,"#00000");for(let oe=0,fe=Di.length;oeri=gi.forEachFeatureAtCoordinate(Wt,De,Pe,ie,Ze,gi===this.declutterExecutorGroup&&te.declutterTree?te.declutterTree.all().map(Ye=>Ye.value):null)),ri}handleFontsChanged(){const Wt=this.getLayer();Wt.getVisible()&&this.replayGroup_&&Wt.changed()}handleStyleImageChange_(Wt){this.renderIfReadyAndVisible()}prepareFrame(Wt){const te=this.getLayer(),ie=te.getSource();if(!ie)return!1;const me=Wt.viewHints[$e.Z.ANIMATING],ge=Wt.viewHints[$e.Z.INTERACTING],De=te.getUpdateWhileAnimating(),Pe=te.getUpdateWhileInteracting();if(this.ready&&!De&&me||!Pe&&ge)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const Ae=Wt.extent,Fe=Wt.viewState,Ze=Fe.projection,ri=Fe.resolution,Qe=Wt.pixelRatio,gi=te.getRevision(),Ye=te.getRenderBuffer();let ci=te.getRenderOrder();void 0===ci&&(ci=Oi);const li=Fe.center.slice(),ai=(0,b.f3)(Ae,Ye*ri),Je=ai.slice(),Di=[ai.slice()],Re=Ze.getExtent();if(ie.getWrapX()&&Ze.canWrapX()&&!(0,b.r4)(Re,Wt.extent)){const Ti=(0,b.dz)(Re),nn=Math.max((0,b.dz)(ai)/2,Ti);ai[0]=Re[0]-nn,ai[2]=Re[2]+nn,(0,zn.Cf)(li,Ze);const Yi=(0,b.Cf)(Di[0],Ze);Yi[0]Re[0]&&Yi[2]>Re[2]&&Di.push([Yi[0]-Ti,Yi[1],Yi[2]-Ti,Yi[3]])}if(this.ready&&this.renderedResolution_==ri&&this.renderedRevision_==gi&&this.renderedRenderOrder_==ci&&(0,b.r4)(this.wrappedRenderedExtent_,ai))return(0,u.fS)(this.renderedExtent_,Je)||(this.hitDetectionImageData_=null,this.renderedExtent_=Je),this.renderedCenter_=li,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const Vt=new yt(qi(ri,Qe),ai,ri,Qe);let oe;this.getLayer().getDeclutter()&&(oe=new yt(qi(ri,Qe),ai,ri,Qe));const fe=(0,Dn.Cs)();let ve;if(fe){for(let Ti=0,nn=Di.length;Ti{let nn;const Yi=Ti.getStyleFunction()||te.getStyleFunction();if(Yi&&(nn=Yi(Ti,ri)),nn){const Xi=this.renderFeature(Ti,qe,nn,Vt,ve,oe);ti=ti&&!Xi}},Mi=(0,Dn.Fj)(ai,Ze),Oe=ie.getFeaturesInExtent(Mi);ci&&Oe.sort(ci);for(let Ti=0,nn=Oe.length;Ti{"use strict";function pt(P,k,E){return Math.min(Math.max(P,k),E)}function t(P,k,E,w,T,y){const A=T-E,g=y-w;if(0!==A||0!==g){const v=((P-E)*A+(k-w)*g)/(A*A+g*g);v>1?(E=T,w=y):v>0&&(E+=A*v,w+=g*v)}return Y(P,k,E,w)}function Y(P,k,E,w){const T=E-P,y=w-k;return T*T+y*y}function q(P){const k=P.length;for(let w=0;wy&&(y=v,T=g)}if(0===y)return null;const A=P[T];P[T]=P[w],P[w]=A;for(let g=w+1;g=0;w--){E[w]=P[w][k]/P[w][w];for(let T=w-1;T>=0;T--)P[T][k]-=P[T][w]*E[w]}return E}function U(P){return P*Math.PI/180}function G(P,k){const E=P%k;return E*k<0?E+k:E}function Z(P,k,E){return P+E*(k-P)}function $(P,k){const E=Math.pow(10,k);return Math.round(P*E)/E}function V(P,k){return Math.floor($(P,k))}function R(P,k){return Math.ceil($(P,k))}ht.d($t,{$W:()=>G,FH:()=>$,GW:()=>V,SV:()=>q,Yr:()=>U,bI:()=>Y,mD:()=>R,rU:()=>t,t7:()=>Z,uZ:()=>pt})},9466:(Jt,$t,ht)=>{"use strict";function pt(Y){for(const q in Y)delete Y[q]}function t(Y){let q;for(q in Y)return!1;return!q}ht.d($t,{Z:()=>pt,x:()=>t})},6003:(Jt,$t,ht)=>{"use strict";ht.d($t,{Wm:()=>Y,UQ:()=>St,h_:()=>z,OP:()=>Ft,Vs:()=>Ie,dY:()=>Ne,U2:()=>ot,_Q:()=>nt,Ck:()=>Ut,WO:()=>jt,Cs:()=>Rt,lO:()=>he,Fj:()=>ye,on:()=>He,vs:()=>bt});const Y={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};const O=class q{constructor(ke){this.code_=ke.code,this.units_=ke.units,this.extent_=void 0!==ke.extent?ke.extent:null,this.worldExtent_=void 0!==ke.worldExtent?ke.worldExtent:null,this.axisOrientation_=void 0!==ke.axisOrientation?ke.axisOrientation:"enu",this.global_=void 0!==ke.global&&ke.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=ke.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=ke.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Y[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(ke){this.global_=ke,this.canWrapX_=!(!ke||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(ke){this.defaultTileGrid_=ke}setExtent(ke){this.extent_=ke,this.canWrapX_=!(!this.global_||!ke)}setWorldExtent(ke){this.worldExtent_=ke}setGetPointResolution(ke){this.getPointResolutionFunc_=ke}getPointResolutionFunc(){return this.getPointResolutionFunc_}},U=6378137,G=Math.PI*U,Z=[-G,-G,G,G],$=[-180,-85,180,85],W=U*Math.log(Math.tan(Math.PI/2));class V extends O{constructor(ke){super({code:ke,units:"m",extent:Z,global:!0,worldExtent:$,getPointResolution:function(We,be){return We/Math.cosh(be[1]/U)}})}}const R=[new V("EPSG:3857"),new V("EPSG:102100"),new V("EPSG:102113"),new V("EPSG:900913"),new V("http://www.opengis.net/def/crs/EPSG/0/3857"),new V("http://www.opengis.net/gml/srs/epsg.xml#3857")];function P(Te,ke,We){const be=Te.length;We=We>1?We:2,void 0===ke&&(ke=We>2?Te.slice():new Array(be));for(let se=0;seW?Se=W:Se<-W&&(Se=-W),ke[se+1]=Se}return ke}function k(Te,ke,We){const be=Te.length;We=We>1?We:2,void 0===ke&&(ke=We>2?Te.slice():new Array(be));for(let se=0;se=-180&&Te[0]<=180&&Te[1]>=-90&&Te[1]<=90&&(L=!1,(0,rt.ZK)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),Te)}function ye(Te,ke){return ft?_t(Te,ke,ft):Te}function Ne(Te,ke){return ft?_t(Te,ft,ke):Te}function He(Te,ke){if(!ft)return Te;const We=ot(ke).getUnits(),be=ft.getUnits();return We&&be?Te*Y[We]/Y[be]:Te}!function $e(){yt(R),yt(A),function gt(Te,ke,We,be){Te.forEach(function(se){ke.forEach(function(Se){D(se,Se,We),D(Se,se,be)})})}(A,R,P,k)}()},2919:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>Y});var pt=ht(8214);class t extends pt.ZP{constructor(O,U,G,Z){super(O),this.inversePixelTransform=U,this.frameState=G,this.context=Z}}const Y=t},2526:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>pt});const pt={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},4686:(Jt,$t,ht)=>{"use strict";ht.d($t,{Df:()=>U,He:()=>W,Kd:()=>D,PH:()=>k,Qx:()=>S,Tx:()=>P,V4:()=>R,X9:()=>$,Zw:()=>I,_f:()=>d,bL:()=>G,mb:()=>Z,oB:()=>w,rc:()=>V,ru:()=>E,sG:()=>y,yC:()=>T});var pt=ht(3632),t=ht(9996),Y=ht(9466),q=ht(1992),O=ht(5263);const U="10px sans-serif",G="#000",Z="round",$=[],W=0,V="round",R=10,P="#000",k="center",E="middle",w=[0,0,0,0],T=1,y=new pt.Z;let g,A=null;const v={},S=function(){const n="32px ",o=["monospace","serif"],m=o.length,_="wmytzilWMYTZIL@#/&?$%10\uf013";let B,X;function it(L,z,et){let at=!0;for(let st=0;stMath.max(_,M(a,B)),0);return o[n]=m,m}function I(a,n){const o=[],m=[],_=[];let B=0,X=0,it=0,rt=0;for(let L=0,z=n.length;L<=z;L+=2){const et=n[L];if("\n"===et||L===z){B=Math.max(B,X),_.push(X),X=0,it+=rt;continue}const at=n[L+1]||a.font,st=M(at,et);o.push(st),X+=st;const H=N(at);m.push(H),rt=Math.max(rt,H)}return{width:B,height:it,widths:o,heights:m,lineWidths:_}}function d(a,n,o,m,_,B,X,it,rt,L,z){a.save(),1!==o&&(a.globalAlpha*=o),n&&a.setTransform.apply(a,n),m.contextInstructions?(a.translate(rt,L),a.scale(z[0],z[1]),function u(a,n){const o=a.contextInstructions;for(let m=0,_=o.length;m<_;m+=2)Array.isArray(o[m+1])?n[o[m]].apply(n,o[m+1]):n[o[m]]=o[m+1]}(m,a)):z[0]<0||z[1]<0?(a.translate(rt,L),a.scale(z[0],z[1]),a.drawImage(m,_,B,X,it,0,0,X,it)):a.drawImage(m,_,B,X,it,rt,L,X*z[0],it*z[1]),a.restore()}},2121:(Jt,$t,ht)=>{"use strict";ht.d($t,{r:()=>k,Z:()=>y});var pt=ht(9972),t=ht(521),Y=ht(4272),q=ht(119);class O extends Y.Z{constructor(g){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=g,this.declutterExecutorGroup=null}getFeatures(g){return(0,q.O3)()}getData(g){return null}prepareFrame(g){return(0,q.O3)()}renderFrame(g,v){return(0,q.O3)()}loadedTileCallback(g,v,S){g[v]||(g[v]={}),g[v][S.tileCoord.toString()]=S}createLoadedTileFinder(g,v,S){return(N,j)=>{const M=this.loadedTileCallback.bind(this,S,N);return g.forEachLoadedTile(v,N,j,M)}}forEachFeatureAtCoordinate(g,v,S,N,j){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(g){g.target.getState()===t.Z.LOADED&&this.renderIfReadyAndVisible()}loadImage(g){let v=g.getState();return v!=t.Z.LOADED&&v!=t.Z.ERROR&&g.addEventListener(pt.Z.CHANGE,this.boundHandleImageChange_),v==t.Z.IDLE&&(g.load(),v=g.getState()),v==t.Z.LOADED}renderIfReadyAndVisible(){const g=this.getLayer();g&&g.getVisible()&&"ready"===g.getSourceState()&&g.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const U=O;var G=ht(2919),Z=ht(2526),$=ht(483),W=ht(3783),V=ht(1992),R=ht(2456),P=ht(760);const k=[];let E=null;const y=class T extends U{constructor(g){super(g),this.container=null,this.renderedResolution,this.tempTransform=(0,$.Ue)(),this.pixelTransform=(0,$.Ue)(),this.inversePixelTransform=(0,$.Ue)(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(g,v,S){let N;E||function w(){E=(0,V.E4)(1,1,void 0,{willReadFrequently:!0})}(),E.clearRect(0,0,1,1);try{E.drawImage(g,v,S,1,1,0,0,1,1),N=E.getImageData(0,0,1,1).data}catch{return E=null,null}return N}getBackground(g){let S=this.getLayer().getBackground();return"function"==typeof S&&(S=S(g.viewState.resolution)),S||void 0}useContainer(g,v,S){const N=this.getLayer().getClassName();let j,M;if(g&&g.className===N&&(!S||g&&g.style.backgroundColor&&(0,R.fS)((0,W._2)(g.style.backgroundColor),(0,W._2)(S)))){const D=g.firstElementChild;D instanceof HTMLCanvasElement&&(M=D.getContext("2d"))}if(M&&M.canvas.style.transform===v?(this.container=g,this.context=M,this.containerReused=!0):this.containerReused&&(this.container=null,this.context=null,this.containerReused=!1),!this.container){j=document.createElement("div"),j.className=N;let D=j.style;D.position="absolute",D.width="100%",D.height="100%",M=(0,V.E4)();const I=M.canvas;j.appendChild(I),D=I.style,D.position="absolute",D.left="0",D.transformOrigin="top left",this.container=j,this.context=M}!this.containerReused&&S&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=S)}clipUnrotated(g,v,S){const N=(0,P.rL)(S),j=(0,P.Xv)(S),M=(0,P.w$)(S),D=(0,P.hC)(S);(0,$.nn)(v.coordinateToPixelTransform,N),(0,$.nn)(v.coordinateToPixelTransform,j),(0,$.nn)(v.coordinateToPixelTransform,M),(0,$.nn)(v.coordinateToPixelTransform,D);const I=this.inversePixelTransform;(0,$.nn)(I,N),(0,$.nn)(I,j),(0,$.nn)(I,M),(0,$.nn)(I,D),g.save(),g.beginPath(),g.moveTo(Math.round(N[0]),Math.round(N[1])),g.lineTo(Math.round(j[0]),Math.round(j[1])),g.lineTo(Math.round(M[0]),Math.round(M[1])),g.lineTo(Math.round(D[0]),Math.round(D[1])),g.clip()}dispatchRenderEvent_(g,v,S){const N=this.getLayer();if(N.hasListener(g)){const j=new G.Z(g,this.inversePixelTransform,S,v);N.dispatchEvent(j)}}preRender(g,v){this.frameState=v,this.dispatchRenderEvent_(Z.Z.PRERENDER,g,v)}postRender(g,v){this.dispatchRenderEvent_(Z.Z.POSTRENDER,g,v)}getRenderTransform(g,v,S,N,j,M,D){const I=j/2,b=M/2,d=N/v,u=-d,a=-g[0]+D,n=-g[1];return(0,$.qC)(this.tempTransform,I,b,d,u,-S,a,n)}disposeInternal(){delete this.frameState,super.disposeInternal()}}},8252:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>N});var t=ht(9972),Y=ht(1299),q=ht(1999),O=ht(760),U=ht(6003),G=ht(2156);const V=class W{constructor(M,D,I,b,d,u){this.sourceProj_=M,this.targetProj_=D;let a={};const n=(0,U.Ck)(this.targetProj_,this.sourceProj_);this.transformInv_=function(et){const at=et[0]+"/"+et[1];return a[at]||(a[at]=n(et)),a[at]},this.maxSourceExtent_=b,this.errorThresholdSquared_=d*d,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!b&&!!this.sourceProj_.getExtent()&&(0,O.dz)(b)==(0,O.dz)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,O.dz)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,O.dz)(this.targetProj_.getExtent()):null;const o=(0,O.rL)(I),m=(0,O.Xv)(I),_=(0,O.w$)(I),B=(0,O.hC)(I),X=this.transformInv_(o),it=this.transformInv_(m),rt=this.transformInv_(_),L=this.transformInv_(B),z=10+(u?Math.max(0,Math.ceil(Math.log2((0,O.bg)(I)/(u*u*256*256)))):0);if(this.addQuad_(o,m,_,B,X,it,rt,L,z),this.wrapsXInSource_){let et=1/0;this.triangles_.forEach(function(at,st,H){et=Math.min(et,at.source[0][0],at.source[1][0],at.source[2][0])}),this.triangles_.forEach(at=>{if(Math.max(at.source[0][0],at.source[1][0],at.source[2][0])-et>this.sourceWorldWidth_/2){const st=[[at.source[0][0],at.source[0][1]],[at.source[1][0],at.source[1][1]],[at.source[2][0],at.source[2][1]]];st[0][0]-et>this.sourceWorldWidth_/2&&(st[0][0]-=this.sourceWorldWidth_),st[1][0]-et>this.sourceWorldWidth_/2&&(st[1][0]-=this.sourceWorldWidth_),st[2][0]-et>this.sourceWorldWidth_/2&&(st[2][0]-=this.sourceWorldWidth_);const H=Math.min(st[0][0],st[1][0],st[2][0]);Math.max(st[0][0],st[1][0],st[2][0])-H.5&&_<1;let it=!1;if(o>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const L=(0,O.hI)([M,D,I,b]);it=(0,O.dz)(L)/this.targetWorldWidth_>.25||it}!X&&this.sourceProj_.isGlobal()&&_&&(it=_>.25||it)}if(!it&&this.maxSourceExtent_&&isFinite(m[0])&&isFinite(m[1])&&isFinite(m[2])&&isFinite(m[3])&&!(0,O.kK)(m,this.maxSourceExtent_))return;let rt=0;if(!(it||isFinite(d[0])&&isFinite(d[1])&&isFinite(u[0])&&isFinite(u[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])))if(o>0)it=!0;else if(rt=(isFinite(d[0])&&isFinite(d[1])?0:8)+(isFinite(u[0])&&isFinite(u[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(n[0])&&isFinite(n[1])?0:1),1!=rt&&2!=rt&&4!=rt&&8!=rt)return;if(o>0){if(!it){const L=[(M[0]+I[0])/2,(M[1]+I[1])/2],z=this.transformInv_(L);let et;et=X?((0,G.$W)(d[0],B)+(0,G.$W)(a[0],B))/2-(0,G.$W)(z[0],B):(d[0]+a[0])/2-z[0];const at=(d[1]+a[1])/2-z[1];it=et*et+at*at>this.errorThresholdSquared_}if(it){if(Math.abs(M[0]-I[0])<=Math.abs(M[1]-I[1])){const L=[(D[0]+I[0])/2,(D[1]+I[1])/2],z=this.transformInv_(L),et=[(b[0]+M[0])/2,(b[1]+M[1])/2],at=this.transformInv_(et);this.addQuad_(M,D,L,et,d,u,z,at,o-1),this.addQuad_(et,L,I,b,at,z,a,n,o-1)}else{const L=[(M[0]+D[0])/2,(M[1]+D[1])/2],z=this.transformInv_(L),et=[(I[0]+b[0])/2,(I[1]+b[1])/2],at=this.transformInv_(et);this.addQuad_(M,L,et,b,d,z,at,n,o-1),this.addQuad_(L,D,I,et,z,u,a,at,o-1)}return}}if(X){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&rt||this.addTriangle_(M,I,b,d,a,n),14&rt||this.addTriangle_(M,I,D,d,a,u),rt&&(13&rt||this.addTriangle_(D,b,M,u,n,d),7&rt||this.addTriangle_(D,b,I,u,n,a))}calculateSourceExtent(){const M=(0,O.lJ)();return this.triangles_.forEach(function(D,I,b){const d=D.source;(0,O.Wj)(M,d[0]),(0,O.Wj)(M,d[1]),(0,O.Wj)(M,d[2])}),M}getTriangles(){return this.triangles_}};var R=ht(1992);let P;const k=[];function E(j,M,D,I,b){j.beginPath(),j.moveTo(0,0),j.lineTo(M,D),j.lineTo(I,b),j.closePath(),j.save(),j.clip(),j.fillRect(0,0,Math.max(M,I)+1,Math.max(D,b)),j.restore()}function w(j,M){return Math.abs(j[4*M]-210)>2||Math.abs(j[4*M+3]-191.25)>2}function y(j,M,D,I){const b=(0,U.vs)(D,M,j);let d=(0,U._Q)(M,I,D);const u=M.getMetersPerUnit();void 0!==u&&(d*=u);const a=j.getMetersPerUnit();void 0!==a&&(d/=a);const n=j.getExtent();if(!n||(0,O.b8)(n,b)){const o=(0,U._Q)(j,d,b)/d;isFinite(o)&&o>0&&(d/=o)}return d}function g(j,M,D,I,b,d,u,a,n,o,m,_){const B=(0,R.E4)(Math.round(D*j),Math.round(D*M),k);if(_||(B.imageSmoothingEnabled=!1),0===n.length)return B.canvas;function X(st){return Math.round(st*D)/D}B.scale(D,D),B.globalCompositeOperation="lighter";const it=(0,O.lJ)();n.forEach(function(st,H,ot){(0,O.l7)(it,st.extent)});const rt=(0,O.dz)(it),L=(0,O.Cr)(it),z=(0,R.E4)(Math.round(D*rt/I),Math.round(D*L/I),k);_||(z.imageSmoothingEnabled=!1);const et=D/I;n.forEach(function(st,H,ot){const nt=st.extent[0]-it[0],yt=-(st.extent[3]-it[3]),gt=(0,O.dz)(st.extent),mt=(0,O.Cr)(st.extent);st.image.width>0&&st.image.height>0&&z.drawImage(st.image,o,o,st.image.width-2*o,st.image.height-2*o,nt*et,yt*et,gt*et,mt*et)});const at=(0,O.rL)(u);return a.getTriangles().forEach(function(st,H,ot){const nt=st.source,yt=st.target;let gt=nt[0][0],mt=nt[0][1],St=nt[1][0],wt=nt[1][1],Mt=nt[2][0],Dt=nt[2][1];const Pt=X((yt[0][0]-at[0])/d),Ft=X(-(yt[0][1]-at[1])/d),jt=X((yt[1][0]-at[0])/d),Ut=X(-(yt[1][1]-at[1])/d),bt=X((yt[2][0]-at[0])/d),_t=X(-(yt[2][1]-at[1])/d),xt=gt,ft=mt;gt=0,mt=0,St-=xt,wt-=ft,Mt-=xt,Dt-=ft;const Ct=[[St,wt,0,0,jt-Pt],[Mt,Dt,0,0,bt-Pt],[0,0,St,wt,Ut-Ft],[0,0,Mt,Dt,_t-Ft]],Ot=(0,G.SV)(Ct);if(Ot){if(B.save(),B.beginPath(),function T(){if(void 0===P){const j=(0,R.E4)(6,6,k);j.globalCompositeOperation="lighter",j.fillStyle="rgba(210, 0, 0, 0.75)",E(j,4,5,4,0),E(j,4,5,0,5);const M=j.getImageData(0,0,3,3).data;P=w(M,0)||w(M,4)||w(M,8),(0,R.jy)(j),k.push(j.canvas)}return P}()||!_){B.moveTo(jt,Ut);const Rt=4,Zt=Pt-jt,he=Ft-Ut;for(let Ie=0;Ie0}),d}(M,I,L,et);if(!isFinite(at)||at<=0)return void(this.state=q.Z.EMPTY);const st=void 0!==m?m:.5;if(this.triangulation_=new V(M,I,L,rt,at*st,et),0===this.triangulation_.getTriangles().length)return void(this.state=q.Z.EMPTY);this.sourceZ_=D.getZForResolution(at);let H=this.triangulation_.calculateSourceExtent();if(rt&&(M.canWrapX()?(H[1]=(0,G.uZ)(H[1],rt[1],rt[3]),H[3]=(0,G.uZ)(H[3],rt[1],rt[3])):H=(0,O.Ed)(H,rt)),(0,O.bg)(H)){const ot=D.getTileRangeForExtentAndZ(H,this.sourceZ_);for(let nt=ot.minX;nt<=ot.maxX;nt++)for(let yt=ot.minY;yt<=ot.maxY;yt++){const gt=o(this.sourceZ_,nt,yt,a);gt&&this.sourceTiles_.push(gt)}0===this.sourceTiles_.length&&(this.state=q.Z.EMPTY)}else this.state=q.Z.EMPTY}getImage(){return this.canvas_}reproject_(){const M=[];if(this.sourceTiles_.forEach(D=>{D&&D.getState()==q.Z.LOADED&&M.push({extent:this.sourceTileGrid_.getTileCoordExtent(D.tileCoord),image:D.getImage()})}),this.sourceTiles_.length=0,0===M.length)this.state=q.Z.ERROR;else{const D=this.wrappedTileCoord_[0],I=this.targetTileGrid_.getTileSize(D),b="number"==typeof I?I:I[0],d="number"==typeof I?I:I[1],u=this.targetTileGrid_.getResolution(D),a=this.sourceTileGrid_.getResolution(this.sourceZ_),n=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=g(b,d,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),u,n,this.triangulation_,M,this.gutter_,this.renderEdges_,this.interpolate),this.state=q.Z.LOADED}this.changed()}load(){if(this.state==q.Z.IDLE){this.state=q.Z.LOADING,this.changed();let M=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(D=>{const I=D.getState();if(I==q.Z.IDLE||I==q.Z.LOADING){M++;const b=(0,v.oL)(D,t.Z.CHANGE,function(d){const u=D.getState();(u==q.Z.LOADED||u==q.Z.ERROR||u==q.Z.EMPTY)&&((0,v.bN)(b),M--,0===M&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(b)}}),0===M?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(D,I,b){D.getState()==q.Z.IDLE&&D.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(v.bN),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,R.jy)(this.canvas_.getContext("2d")),k.push(this.canvas_),this.canvas_=null),super.release()}}const N=S},9857:(Jt,$t,ht)=>{"use strict";ht.d($t,{Gw:()=>O,YP:()=>Y,gE:()=>q,h$:()=>t});var pt=ht(2156);function t(U){if(void 0!==U)return 0}function Y(U){if(void 0!==U)return U}function q(U){const G=2*Math.PI/U;return function(Z,$){return $?Z:void 0!==Z?Z=Math.floor(Z/G+.5)*G:void 0}}function O(U){return U=U||(0,pt.Yr)(5),function(G,Z){return Z?G:void 0!==G?Math.abs(G)<=U?0:G:void 0}}},1750:(Jt,$t,ht)=>{"use strict";function t(O){return O[0]>0&&O[1]>0}function Y(O,U,G){return void 0===G&&(G=[0,0]),G[0]=O[0]*U+.5|0,G[1]=O[1]*U+.5|0,G}function q(O,U){return Array.isArray(O)?O:(void 0===U?U=[O,O]:(U[0]=O,U[1]=O),U)}ht.d($t,{Pq:()=>q,bA:()=>Y,py:()=>t})},5672:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>jt});var pt=ht(9972),t=ht(9001),Y=ht(8252),q=ht(1911);const U=class O{constructor(bt){this.highWaterMark=void 0!==bt?bt:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(bt){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(bt){return this.entries_.hasOwnProperty(bt)}forEach(bt){let _t=this.oldest_;for(;_t;)bt(_t.value_,_t.key_,this),_t=_t.newer}get(bt,_t){const xt=this.entries_[bt];return(0,q.h)(void 0!==xt,15),xt===this.newest_||(xt===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(xt.newer.older=xt.older,xt.older.newer=xt.newer),xt.newer=null,xt.older=this.newest_,this.newest_.newer=xt,this.newest_=xt),xt.value_}remove(bt){const _t=this.entries_[bt];return(0,q.h)(void 0!==_t,15),_t===this.newest_?(this.newest_=_t.older,this.newest_&&(this.newest_.newer=null)):_t===this.oldest_?(this.oldest_=_t.newer,this.oldest_&&(this.oldest_.older=null)):(_t.newer.older=_t.older,_t.older.newer=_t.newer),delete this.entries_[bt],--this.count_,_t.value_}getCount(){return this.count_}getKeys(){const bt=new Array(this.count_);let xt,_t=0;for(xt=this.newest_;xt;xt=xt.older)bt[_t++]=xt.key_;return bt}getValues(){const bt=new Array(this.count_);let xt,_t=0;for(xt=this.newest_;xt;xt=xt.older)bt[_t++]=xt.value_;return bt}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(bt){if(this.containsKey(bt))return this.entries_[bt].value_}pop(){const bt=this.oldest_;return delete this.entries_[bt.key_],bt.newer&&(bt.newer.older=null),this.oldest_=bt.newer,this.oldest_||(this.newest_=null),--this.count_,bt.value_}replace(bt,_t){this.get(bt),this.entries_[bt].value_=_t}set(bt,_t){(0,q.h)(!(bt in this.entries_),16);const xt={key_:bt,newer:null,older:this.newest_,value_:_t};this.newest_?this.newest_.newer=xt:this.oldest_=xt,this.newest_=xt,this.entries_[bt]=xt,++this.count_}setSize(bt){this.highWaterMark=bt}};function G(Ut,bt,_t,xt){return void 0!==xt?(xt[0]=Ut,xt[1]=bt,xt[2]=_t,xt):[Ut,bt,_t]}function Z(Ut,bt,_t){return Ut+"/"+bt+"/"+_t}function $(Ut){return Z(Ut[0],Ut[1],Ut[2])}const E=class k extends U{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(bt){for(;this.canExpireCache()&&!(this.peekLast().getKey()in bt);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const xt=function V(Ut){return Ut.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(ft=>{ft.tileCoord[0]!==xt&&(this.remove($(ft.tileCoord)),ft.release())})}};var w=ht(1999);const T_TILELOADSTART="tileloadstart",T_TILELOADEND="tileloadend",T_TILELOADERROR="tileloaderror";var y=ht(8214),A=ht(4702),g=ht(119),v=ht(6003),S=ht(6609),N=ht(9302),j=ht(2156),M=ht(760),D=ht(2750),I=ht(2456),b=ht(1750);const d=[0,0,0];const n=class a{constructor(bt){let _t;if(this.minZoom=void 0!==bt.minZoom?bt.minZoom:0,this.resolutions_=bt.resolutions,(0,q.h)((0,I.pT)(this.resolutions_,function(ft,Ct){return Ct-ft},!0),17),!bt.origins)for(let ft=0,Ct=this.resolutions_.length-1;ft=this.minZoom;){if(2===this.zoomFactor_?(Ot=Math.floor(Ot/2),Rt=Math.floor(Rt/2),Ct=(0,S.T)(Ot,Ot,Rt,Rt,xt)):Ct=this.getTileRangeForExtentAndZ(Zt,he,xt),_t(he,Ct))return!0;--he}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(bt){return this.origin_?this.origin_:this.origins_[bt]}getResolution(bt){return this.resolutions_[bt]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(bt,_t,xt){if(bt[0]this.maxZoom||_t0?xt:Math.max(Ct/_t[0],ft/_t[1]);const Ot=bt+1,Rt=new Array(Ot);for(let Zt=0;Zt_t||_t>bt.getMaxZoom())return!1;const Ct=bt.getFullTileRange(_t);return!Ct||Ct.containsXY(xt,ft)}(bt,xt)?bt:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(bt,_t){const xt=this.getTileCacheForProjection(_t);bt>xt.highWaterMark&&(xt.highWaterMark=bt)}useTile(bt,_t,xt,ft){}}class z extends y.ZP{constructor(bt,_t){super(bt),this.tile=_t}}const et=L;function at(Ut,bt){const _t=/\{z\}/g,xt=/\{x\}/g,ft=/\{y\}/g,Ct=/\{-y\}/g;return function(Ot,Rt,Zt){if(Ot)return Ut.replace(_t,Ot[0].toString()).replace(xt,Ot[1].toString()).replace(ft,Ot[2].toString()).replace(Ct,function(){const he=Ot[0],Ie=bt.getFullTileRange(he);return(0,q.h)(Ie,55),(Ie.getHeight()-Ot[2]-1).toString()})}}function st(Ut,bt){const _t=Ut.length,xt=new Array(_t);for(let ft=0;ft<_t;++ft)xt[ft]=at(Ut[ft],bt);return function H(Ut){return 1===Ut.length?Ut[0]:function(bt,_t,xt){if(!bt)return;const ft=function R(Ut){return(Ut[1]<this.getTileInternal($e,Te,ke,We,Ot),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return ii.key=ye,he?(ii.interimTile=he,ii.refreshInterimChain(),Rt.replace(Ie,ii)):Rt.set(Ie,ii),ii}getTileInternal(bt,_t,xt,ft,Ct){let Ot=null;const Rt=Z(bt,_t,xt),Zt=this.getKey();if(this.tileCache.containsKey(Rt)){if(Ot=this.tileCache.get(Rt),Ot.key!=Zt){const he=Ot;Ot=this.createTile_(bt,_t,xt,ft,Ct,Zt),he.getState()==w.Z.IDLE?Ot.interimTile=he.interimTile:Ot.interimTile=he,Ot.refreshInterimChain(),this.tileCache.replace(Rt,Ot)}}else Ot=this.createTile_(bt,_t,xt,ft,Ct,Zt),this.tileCache.set(Rt,Ot);return Ot}setRenderReprojectionEdges(bt){if(this.renderReprojectionEdges_!=bt){this.renderReprojectionEdges_=bt;for(const _t in this.tileCacheForProjection)this.tileCacheForProjection[_t].clear();this.changed()}}setTileGridForProjection(bt,_t){const xt=(0,v.U2)(bt);if(xt){const ft=(0,g.sq)(xt);ft in this.tileGridForProjection||(this.tileGridForProjection[ft]=_t)}}clear(){super.clear();for(const bt in this.tileCacheForProjection)this.tileCacheForProjection[bt].clear()}};const Dt=class Mt extends wt{constructor(bt){const _t=void 0!==(bt=bt||{}).projection?bt.projection:"EPSG:3857",xt=void 0!==bt.tileGrid?bt.tileGrid:function B(Ut){const bt=Ut||{},_t=bt.extent||(0,v.U2)("EPSG:3857").getExtent(),xt={extent:_t,minZoom:bt.minZoom,tileSize:bt.tileSize,resolutions:X(_t,bt.maxZoom,bt.tileSize,bt.maxResolution)};return new n(xt)}({extent:rt(_t),maxResolution:bt.maxResolution,maxZoom:bt.maxZoom,minZoom:bt.minZoom,tileSize:bt.tileSize});super({attributions:bt.attributions,cacheSize:bt.cacheSize,crossOrigin:bt.crossOrigin,interpolate:bt.interpolate,opaque:bt.opaque,projection:_t,reprojectionErrorThreshold:bt.reprojectionErrorThreshold,tileGrid:xt,tileLoadFunction:bt.tileLoadFunction,tilePixelRatio:bt.tilePixelRatio,tileUrlFunction:bt.tileUrlFunction,url:bt.url,urls:bt.urls,wrapX:void 0===bt.wrapX||bt.wrapX,transition:bt.transition,attributionsCollapsible:bt.attributionsCollapsible,zDirection:bt.zDirection}),this.gutter_=void 0!==bt.gutter?bt.gutter:0}getGutter(){return this.gutter_}};const jt=class Ft extends Dt{constructor(bt){let _t;_t=void 0!==(bt=bt||{}).attributions?bt.attributions:['© OpenStreetMap contributors.'];const xt=void 0!==bt.crossOrigin?bt.crossOrigin:"anonymous",ft=void 0!==bt.url?bt.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:_t,attributionsCollapsible:!1,cacheSize:bt.cacheSize,crossOrigin:xt,interpolate:bt.interpolate,maxZoom:void 0!==bt.maxZoom?bt.maxZoom:19,opaque:void 0===bt.opaque||bt.opaque,reprojectionErrorThreshold:bt.reprojectionErrorThreshold,tileLoadFunction:bt.tileLoadFunction,transition:bt.transition,url:ft,wrapX:bt.wrapX,zDirection:bt.zDirection})}}},4702:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>O});var pt=ht(3632),t=ht(6003);class Y extends pt.Z{constructor(G){super(),this.projection=(0,t.U2)(G.projection),this.attributions_=q(G.attributions),this.attributionsCollapsible_=void 0===G.attributionsCollapsible||G.attributionsCollapsible,this.loading=!1,this.state_=void 0!==G.state?G.state:"ready",this.wrapX_=void 0!==G.wrapX&&G.wrapX,this.interpolate_=!!G.interpolate,this.viewResolver=null,this.viewRejector=null;const Z=this;this.viewPromise_=new Promise(function($,W){Z.viewResolver=$,Z.viewRejector=W})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(G){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(G){this.attributions_=q(G),this.changed()}setState(G){this.state_=G,this.changed()}}function q(U){return U?Array.isArray(U)?function(G){return U}:"function"==typeof U?U:function(G){return[U]}:null}const O=Y},7402:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>b});var pt=ht(2815),t=ht(9889),Y=ht(8214),q=ht(9972),O=ht(4587),U=ht(2402),G=ht(760),Z=ht(119),$=ht(9466);const V=class W{constructor(u){this.rbush_=new U(u),this.items_={}}insert(u,a){const n={minX:u[0],minY:u[1],maxX:u[2],maxY:u[3],value:a};this.rbush_.insert(n),this.items_[(0,Z.sq)(a)]=n}load(u,a){const n=new Array(a.length);for(let o=0,m=a.length;o=200&&B.status<300){const it=u.getType();let rt;"json"==it||"text"==it?rt=B.responseText:"xml"==it?(rt=B.responseXML,rt||(rt=(new DOMParser).parseFromString(B.responseText,"application/xml"))):"arraybuffer"==it&&(rt=B.response),rt?m(u.readFeatures(rt,{extent:a,featureProjection:o}),u.readProjection(rt)):_()}else _()},B.onerror=_,B.send()}(d,u,a,n,o,function(X,it){B.addFeatures(X),void 0!==m&&m(X)},_||k.Zn)}}class D extends Y.ZP{constructor(u,a,n){super(u),this.feature=a,this.features=n}}class I extends R.Z{constructor(u){super({attributions:(u=u||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===u.wrapX||u.wrapX}),this.on,this.once,this.un,this.loader_=k.Zn,this.format_=u.format,this.overlaps_=void 0===u.overlaps||u.overlaps,this.url_=u.url,void 0!==u.loader?this.loader_=u.loader:void 0!==this.url_&&((0,A.h)(this.format_,7),this.loader_=j(this.url_,this.format_)),this.strategy_=void 0!==u.strategy?u.strategy:w;const a=void 0===u.useSpatialIndex||u.useSpatialIndex;let n,o;this.featuresRtree_=a?new V:null,this.loadedExtentsRtree_=new V,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(u.features)?o=u.features:u.features&&(n=u.features,o=n.getArray()),!a&&void 0===n&&(n=new pt.Z(o)),void 0!==o&&this.addFeaturesInternal(o),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(u){this.addFeatureInternal(u),this.changed()}addFeatureInternal(u){const a=(0,Z.sq)(u);if(!this.addToIndex_(a,u))return void(this.featuresCollection_&&this.featuresCollection_.remove(u));this.setupChangeEvents_(a,u);const n=u.getGeometry();if(n){const o=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(o,u)}else this.nullGeometryFeatures_[a]=u;this.dispatchEvent(new D(P_ADDFEATURE,u))}setupChangeEvents_(u,a){this.featureChangeKeys_[u]=[(0,v.oL)(a,q.Z.CHANGE,this.handleFeatureChange_,this),(0,v.oL)(a,O.Z.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(u,a){let n=!0;const o=a.getId();return void 0!==o&&(o.toString()in this.idIndex_?n=!1:this.idIndex_[o.toString()]=a),n&&((0,A.h)(!(u in this.uidIndex_),30),this.uidIndex_[u]=a),n}addFeatures(u){this.addFeaturesInternal(u),this.changed()}addFeaturesInternal(u){const a=[],n=[],o=[];for(let m=0,_=u.length;m<_;m++){const B=u[m],X=(0,Z.sq)(B);this.addToIndex_(X,B)&&n.push(B)}for(let m=0,_=n.length;m<_;m++){const B=n[m],X=(0,Z.sq)(B);this.setupChangeEvents_(X,B);const it=B.getGeometry();if(it){const rt=it.getExtent();a.push(rt),o.push(B)}else this.nullGeometryFeatures_[X]=B}if(this.featuresRtree_&&this.featuresRtree_.load(a,o),this.hasListener(P_ADDFEATURE))for(let m=0,_=n.length;m<_;m++)this.dispatchEvent(new D(P_ADDFEATURE,n[m]))}bindFeaturesCollection_(u){let a=!1;this.addEventListener(P_ADDFEATURE,function(n){a||(a=!0,u.push(n.feature),a=!1)}),this.addEventListener(P_REMOVEFEATURE,function(n){a||(a=!0,u.remove(n.feature),a=!1)}),u.addEventListener(t.Z.ADD,n=>{a||(a=!0,this.addFeature(n.element),a=!1)}),u.addEventListener(t.Z.REMOVE,n=>{a||(a=!0,this.removeFeature(n.element),a=!1)}),this.featuresCollection_=u}clear(u){if(u){for(const n in this.featureChangeKeys_)this.featureChangeKeys_[n].forEach(v.bN);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const n=o=>{this.removeFeatureInternal(o)};this.featuresRtree_.forEach(n);for(const o in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[o])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const a=new D(P_CLEAR);this.dispatchEvent(a),this.changed()}forEachFeature(u){if(this.featuresRtree_)return this.featuresRtree_.forEach(u);this.featuresCollection_&&this.featuresCollection_.forEach(u)}forEachFeatureAtCoordinateDirect(u,a){const n=[u[0],u[1],u[0],u[1]];return this.forEachFeatureInExtent(n,function(o){if(o.getGeometry().intersectsCoordinate(u))return a(o)})}forEachFeatureInExtent(u,a){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(u,a);this.featuresCollection_&&this.featuresCollection_.forEach(a)}forEachFeatureIntersectingExtent(u,a){return this.forEachFeatureInExtent(u,function(n){if(n.getGeometry().intersectsExtent(u)){const m=a(n);if(m)return m}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let u;return this.featuresCollection_?u=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(u=this.featuresRtree_.getAll(),(0,$.x)(this.nullGeometryFeatures_)||(0,g.l7)(u,Object.values(this.nullGeometryFeatures_))),u}getFeaturesAtCoordinate(u){const a=[];return this.forEachFeatureAtCoordinateDirect(u,function(n){a.push(n)}),a}getFeaturesInExtent(u,a){if(this.featuresRtree_){if(!(a&&a.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(u);const o=(0,G.MV)(u,a);return[].concat(...o.map(m=>this.featuresRtree_.getInExtent(m)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(u,a){const n=u[0],o=u[1];let m=null;const _=[NaN,NaN];let B=1/0;const X=[-1/0,-1/0,1/0,1/0];return a=a||k.uX,this.featuresRtree_.forEachInExtent(X,function(it){if(a(it)){const rt=it.getGeometry(),L=B;if(B=rt.closestPointXY(n,o,_,B),B{--this.loadingExtentsCount_,this.dispatchEvent(new D(P_FEATURESLOADEND,void 0,rt))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new D(P_FEATURESLOADERROR))}),o.insert(X,{extent:X.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(u){const a=this.loadedExtentsRtree_;let n;a.forEachInExtent(u,function(o){if((0,G.fS)(o.extent,u))return n=o,!0}),n&&a.remove(n)}removeFeature(u){if(!u)return;const a=(0,Z.sq)(u);a in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[a]:this.featuresRtree_&&this.featuresRtree_.remove(u),this.removeFeatureInternal(u)&&this.changed()}removeFeatureInternal(u){const a=(0,Z.sq)(u),n=this.featureChangeKeys_[a];if(!n)return;n.forEach(v.bN),delete this.featureChangeKeys_[a];const o=u.getId();return void 0!==o&&delete this.idIndex_[o.toString()],delete this.uidIndex_[a],this.dispatchEvent(new D(P_REMOVEFEATURE,u)),u}removeFromIdIndex_(u){let a=!1;for(const n in this.idIndex_)if(this.idIndex_[n]===u){delete this.idIndex_[n],a=!0;break}return a}setLoader(u){this.loader_=u}setUrl(u){(0,A.h)(this.format_,7),this.url_=u,this.setLoader(j(u,this.format_))}}const b=I},7392:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>Y});var pt=ht(8225);class t extends pt.Z{constructor(O){super({points:1/0,fill:(O=O||{radius:5}).fill,radius:O.radius,stroke:O.stroke,scale:void 0!==O.scale?O.scale:1,rotation:void 0!==O.rotation?O.rotation:0,rotateWithView:void 0!==O.rotateWithView&&O.rotateWithView,displacement:void 0!==O.displacement?O.displacement:[0,0],declutterMode:O.declutterMode})}clone(){const O=this.getScale(),U=new t({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(O)?O.slice():O,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return U.setOpacity(this.getOpacity()),U}setRadius(O){this.radius_=O,this.render()}}const Y=t},5044:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>t});class pt{constructor(q){q=q||{},this.color_=void 0!==q.color?q.color:null}clone(){const q=this.getColor();return new pt({color:Array.isArray(q)?q.slice():q||void 0})}getColor(){return this.color_}setColor(q){this.color_=q}}const t=pt},9570:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>w});var pt=ht(9972),t=ht(521),Y=ht(6398),q=ht(3783),O=ht(1911),U=ht(8007),G=ht(1992),Z=ht(2956),$=ht(3641);let W=null;class V extends U.Z{constructor(y,A,g,v,S,N){super(),this.hitDetectionImage_=null,this.image_=y,this.crossOrigin_=v,this.canvas_={},this.color_=N,this.unlisten_=null,this.imageState_=S,this.size_=g,this.src_=A,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===t.Z.LOADED){W||(W=(0,G.E4)(1,1,void 0,{willReadFrequently:!0})),W.drawImage(this.image_,0,0);try{W.getImageData(0,0,1,1),this.tainted_=!1}catch{W=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(pt.Z.CHANGE)}handleImageError_(){this.imageState_=t.Z.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=t.Z.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}getImage(y){return this.image_||this.initializeImage_(),this.replaceColor_(y),this.canvas_[y]?this.canvas_[y]:this.image_}getPixelRatio(y){return this.replaceColor_(y),this.canvas_[y]?y:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const y=this.size_[0],A=this.size_[1],g=(0,G.E4)(y,A);g.fillRect(0,0,y,A),this.hitDetectionImage_=g.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===t.Z.IDLE){this.image_||this.initializeImage_(),this.imageState_=t.Z.LOADING;try{this.image_.src=this.src_}catch{this.handleImageError_()}this.unlisten_=(0,$.K)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(y){if(!this.color_||this.canvas_[y]||this.imageState_!==t.Z.LOADED)return;const A=this.image_,g=document.createElement("canvas");g.width=Math.ceil(A.width*y),g.height=Math.ceil(A.height*y);const v=g.getContext("2d");v.scale(y,y),v.drawImage(A,0,0),v.globalCompositeOperation="multiply",v.fillStyle=(0,q.XC)(this.color_),v.fillRect(0,0,g.width/y,g.height/y),v.globalCompositeOperation="destination-in",v.drawImage(A,0,0),this.canvas_[y]=g}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}var k=ht(119);class E extends Y.Z{constructor(y){const A=void 0!==(y=y||{}).opacity?y.opacity:1,g=void 0!==y.rotation?y.rotation:0,v=void 0!==y.scale?y.scale:1,S=void 0!==y.rotateWithView&&y.rotateWithView;super({opacity:A,rotation:g,scale:v,displacement:void 0!==y.displacement?y.displacement:[0,0],rotateWithView:S,declutterMode:y.declutterMode}),this.anchor_=void 0!==y.anchor?y.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==y.anchorOrigin?y.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==y.anchorXUnits?y.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==y.anchorYUnits?y.anchorYUnits:"fraction",this.crossOrigin_=void 0!==y.crossOrigin?y.crossOrigin:null;const N=void 0!==y.img?y.img:null;this.imgSize_=y.imgSize;let j=y.src;(0,O.h)(!(void 0!==j&&N),4),(0,O.h)(!N||N&&this.imgSize_,5),(void 0===j||0===j.length)&&N&&(j=N.src||(0,k.sq)(N)),(0,O.h)(void 0!==j&&j.length>0,6),(0,O.h)(!((void 0!==y.width||void 0!==y.height)&&void 0!==y.scale),69);const M=void 0!==y.src?t.Z.IDLE:t.Z.LOADED;if(this.color_=void 0!==y.color?(0,q._2)(y.color):null,this.iconImage_=function R(T,y,A,g,v,S){let N=Z.c.get(y,g,S);return N||(N=new V(T,y,A,g,v,S),Z.c.set(y,g,S,N)),N}(N,j,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,M,this.color_),this.offset_=void 0!==y.offset?y.offset:[0,0],this.offsetOrigin_=void 0!==y.offsetOrigin?y.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==y.size?y.size:null,this.width_=y.width,this.height_=y.height,void 0!==this.width_||void 0!==this.height_){const D=this.getImage(1),I=()=>{this.updateScaleFromWidthAndHeight(this.width_,this.height_)};D.width>0?this.updateScaleFromWidthAndHeight(this.width_,this.height_):D.addEventListener("load",I)}}clone(){const y=this.getScale();return new E({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(y)?y.slice():y,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode(),width:this.width_,height:this.height_})}updateScaleFromWidthAndHeight(y,A){const g=this.getImage(1);void 0!==y&&void 0!==A?super.setScale([y/g.width,A/g.height]):void 0!==y?super.setScale([y/g.width,y/g.width]):void 0!==A?super.setScale([A/g.height,A/g.height]):super.setScale([1,1])}getAnchor(){let y=this.normalizedAnchor_;if(!y){y=this.anchor_;const v=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!v)return null;y=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(y[0]*=v[0]),"fraction"==this.anchorYUnits_&&(y[1]*=v[1])}if("top-left"!=this.anchorOrigin_){if(!v)return null;y===this.anchor_&&(y=this.anchor_.slice()),("top-right"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(y[0]=-y[0]+v[0]),("bottom-left"==this.anchorOrigin_||"bottom-right"==this.anchorOrigin_)&&(y[1]=-y[1]+v[1])}this.normalizedAnchor_=y}const A=this.getDisplacement(),g=this.getScaleArray();return[y[0]-A[0]/g[0],y[1]+A[1]/g[1]]}setAnchor(y){this.anchor_=y,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(y){return this.iconImage_.getImage(y)}getPixelRatio(y){return this.iconImage_.getPixelRatio(y)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let y=this.offset_;if("top-left"!=this.offsetOrigin_){const A=this.getSize(),g=this.iconImage_.getSize();if(!A||!g)return null;y=y.slice(),("top-right"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(y[0]=g[0]-A[0]-y[0]),("bottom-left"==this.offsetOrigin_||"bottom-right"==this.offsetOrigin_)&&(y[1]=g[1]-A[1]-y[1])}return this.origin_=y,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){return this.width_}getHeight(){return this.height_}setWidth(y){this.width_=y,this.updateScaleFromWidthAndHeight(y,this.height_)}setHeight(y){this.height_=y,this.updateScaleFromWidthAndHeight(this.width_,y)}setScale(y){super.setScale(y);const A=this.getImage(1);if(A){const g=Array.isArray(y)?y[0]:y;void 0!==g&&(this.width_=g*A.width);const v=Array.isArray(y)?y[1]:y;void 0!==v&&(this.height_=v*A.height)}}listenImageChange(y){this.iconImage_.addEventListener(pt.Z.CHANGE,y)}load(){this.iconImage_.load()}unlistenImageChange(y){this.iconImage_.removeEventListener(pt.Z.CHANGE,y)}}const w=E},2956:(Jt,$t,ht)=>{"use strict";ht.d($t,{c:()=>O});var pt=ht(3783);function Y(U,G,Z){return G+":"+U+":"+(Z?(0,pt.XC)(Z):"null")}const O=new class t{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let G=0;for(const Z in this.cache_){const $=this.cache_[Z];!(3&G++)&&!$.hasListener()&&(delete this.cache_[Z],--this.cacheSize_)}}}get(G,Z,$){const W=Y(G,Z,$);return W in this.cache_?this.cache_[W]:null}set(G,Z,$,W){const V=Y(G,Z,$);this.cache_[V]=W,++this.cacheSize_}setSize(G){this.maxCacheSize_=G,this.expire()}}},6398:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>q});var pt=ht(119),t=ht(1750);class Y{constructor(U){this.opacity_=U.opacity,this.rotateWithView_=U.rotateWithView,this.rotation_=U.rotation,this.scale_=U.scale,this.scaleArray_=(0,t.Pq)(U.scale),this.displacement_=U.displacement,this.declutterMode_=U.declutterMode}clone(){const U=this.getScale();return new Y({opacity:this.getOpacity(),scale:Array.isArray(U)?U.slice():U,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,pt.O3)()}getImage(U){return(0,pt.O3)()}getHitDetectionImage(){return(0,pt.O3)()}getPixelRatio(U){return 1}getImageState(){return(0,pt.O3)()}getImageSize(){return(0,pt.O3)()}getOrigin(){return(0,pt.O3)()}getSize(){return(0,pt.O3)()}setDisplacement(U){this.displacement_=U}setOpacity(U){this.opacity_=U}setRotateWithView(U){this.rotateWithView_=U}setRotation(U){this.rotation_=U}setScale(U){this.scale_=U,this.scaleArray_=(0,t.Pq)(U)}listenImageChange(U){(0,pt.O3)()}load(){(0,pt.O3)()}unlistenImageChange(U){(0,pt.O3)()}}const q=Y},8225:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>Z});var pt=ht(521),t=ht(6398),Y=ht(3783),q=ht(5813),O=ht(1992),U=ht(4686);class G extends t.Z{constructor(W){super({opacity:1,rotateWithView:void 0!==W.rotateWithView&&W.rotateWithView,rotation:void 0!==W.rotation?W.rotation:0,scale:void 0!==W.scale?W.scale:1,displacement:void 0!==W.displacement?W.displacement:[0,0],declutterMode:W.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==W.fill?W.fill:null,this.origin_=[0,0],this.points_=W.points,this.radius_=void 0!==W.radius?W.radius:W.radius1,this.radius2_=W.radius2,this.angle_=void 0!==W.angle?W.angle:0,this.stroke_=void 0!==W.stroke?W.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const W=this.getScale(),V=new G({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(W)?W.slice():W,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return V.setOpacity(this.getOpacity()),V}getAnchor(){const W=this.size_;if(!W)return null;const V=this.getDisplacement(),R=this.getScaleArray();return[W[0]/2-V[0]/R[0],W[1]/2+V[1]/R[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(W){this.fill_=W,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(W){let V=this.canvas_[W];if(!V){const R=this.renderOptions_,P=(0,O.E4)(R.size*W,R.size*W);this.draw_(R,P,W),V=P.canvas,this.canvas_[W]=V}return V}getPixelRatio(W){return W}getImageSize(){return this.size_}getImageState(){return pt.Z.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(W){this.stroke_=W,this.render()}listenImageChange(W){}load(){}unlistenImageChange(W){}calculateLineJoinSize_(W,V,R){if(0===V||this.points_===1/0||"bevel"!==W&&"miter"!==W)return V;let P=this.radius_,k=void 0===this.radius2_?P:this.radius2_;if(P{"use strict";ht.d($t,{Z:()=>t});class pt{constructor(q){q=q||{},this.color_=void 0!==q.color?q.color:null,this.lineCap_=q.lineCap,this.lineDash_=void 0!==q.lineDash?q.lineDash:null,this.lineDashOffset_=q.lineDashOffset,this.lineJoin_=q.lineJoin,this.miterLimit_=q.miterLimit,this.width_=q.width}clone(){const q=this.getColor();return new pt({color:Array.isArray(q)?q.slice():q||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(q){this.color_=q}setLineCap(q){this.lineCap_=q}setLineDash(q){this.lineDash_=q}setLineDashOffset(q){this.lineDashOffset_=q}setLineJoin(q){this.lineJoin_=q}setMiterLimit(q){this.miterLimit_=q}setWidth(q){this.width_=q}}const t=pt},109:(Jt,$t,ht)=>{"use strict";ht.d($t,{J$:()=>U,ZP:()=>V,yF:()=>Z});var pt=ht(7392),t=ht(5044),Y=ht(6785),q=ht(1911);class O{constructor(P){P=P||{},this.geometry_=null,this.geometryFunction_=W,void 0!==P.geometry&&this.setGeometry(P.geometry),this.fill_=void 0!==P.fill?P.fill:null,this.image_=void 0!==P.image?P.image:null,this.renderer_=void 0!==P.renderer?P.renderer:null,this.hitDetectionRenderer_=void 0!==P.hitDetectionRenderer?P.hitDetectionRenderer:null,this.stroke_=void 0!==P.stroke?P.stroke:null,this.text_=void 0!==P.text?P.text:null,this.zIndex_=P.zIndex}clone(){let P=this.getGeometry();return P&&"object"==typeof P&&(P=P.clone()),new O({geometry:P,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(P){this.renderer_=P}setHitDetectionRenderer(P){this.hitDetectionRenderer_=P}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(P){this.fill_=P}getImage(){return this.image_}setImage(P){this.image_=P}getStroke(){return this.stroke_}setStroke(P){this.stroke_=P}getText(){return this.text_}setText(P){this.text_=P}getZIndex(){return this.zIndex_}setGeometry(P){"function"==typeof P?this.geometryFunction_=P:"string"==typeof P?this.geometryFunction_=function(k){return k.get(P)}:P?void 0!==P&&(this.geometryFunction_=function(){return P}):this.geometryFunction_=W,this.geometry_=P}setZIndex(P){this.zIndex_=P}}function U(R){let P;if("function"==typeof R)P=R;else{let k;Array.isArray(R)?k=R:((0,q.h)("function"==typeof R.getZIndex,41),k=[R]),P=function(){return k}}return P}let G=null;function Z(R,P){if(!G){const k=new t.Z({color:"rgba(255,255,255,0.4)"}),E=new Y.Z({color:"#3399CC",width:1.25});G=[new O({image:new pt.Z({fill:k,stroke:E,radius:5}),fill:k,stroke:E})]}return G}function W(R){return R.getGeometry()}const V=O},6564:(Jt,$t,ht)=>{"use strict";ht.d($t,{Z:()=>O});var pt=ht(5044),t=ht(1750);class q{constructor(G){G=G||{},this.font_=G.font,this.rotation_=G.rotation,this.rotateWithView_=G.rotateWithView,this.scale_=G.scale,this.scaleArray_=(0,t.Pq)(void 0!==G.scale?G.scale:1),this.text_=G.text,this.textAlign_=G.textAlign,this.justify_=G.justify,this.textBaseline_=G.textBaseline,this.fill_=void 0!==G.fill?G.fill:new pt.Z({color:"#333"}),this.maxAngle_=void 0!==G.maxAngle?G.maxAngle:Math.PI/4,this.placement_=void 0!==G.placement?G.placement:"point",this.overflow_=!!G.overflow,this.stroke_=void 0!==G.stroke?G.stroke:null,this.offsetX_=void 0!==G.offsetX?G.offsetX:0,this.offsetY_=void 0!==G.offsetY?G.offsetY:0,this.backgroundFill_=G.backgroundFill?G.backgroundFill:null,this.backgroundStroke_=G.backgroundStroke?G.backgroundStroke:null,this.padding_=void 0===G.padding?null:G.padding}clone(){const G=this.getScale();return new q({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(G)?G.slice():G,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(G){this.overflow_=G}setFont(G){this.font_=G}setMaxAngle(G){this.maxAngle_=G}setOffsetX(G){this.offsetX_=G}setOffsetY(G){this.offsetY_=G}setPlacement(G){this.placement_=G}setRotateWithView(G){this.rotateWithView_=G}setFill(G){this.fill_=G}setRotation(G){this.rotation_=G}setScale(G){this.scale_=G,this.scaleArray_=(0,t.Pq)(void 0!==G?G:1)}setStroke(G){this.stroke_=G}setText(G){this.text_=G}setTextAlign(G){this.textAlign_=G}setJustify(G){this.justify_=G}setTextBaseline(G){this.textBaseline_=G}setBackgroundFill(G){this.backgroundFill_=G}setBackgroundStroke(G){this.backgroundStroke_=G}setPadding(G){this.padding_=G}}const O=q},9302:(Jt,$t,ht)=>{"use strict";ht.d($t,{S:()=>t,e:()=>pt});const pt=42,t=256},483:(Jt,$t,ht)=>{"use strict";ht.d($t,{BB:()=>g,Ue:()=>q,lk:()=>Z,n3:()=>R,nb:()=>T,nn:()=>$,qC:()=>k});var pt=ht(9996),t=ht(1911);new Array(6);function q(){return[1,0,0,1,0,0]}function G(v,S,N,j,M,D,I){return v[0]=S,v[1]=N,v[2]=j,v[3]=M,v[4]=D,v[5]=I,v}function Z(v,S){return v[0]=S[0],v[1]=S[1],v[2]=S[2],v[3]=S[3],v[4]=S[4],v[5]=S[5],v}function $(v,S){const N=S[0],j=S[1];return S[0]=v[0]*N+v[2]*j+v[4],S[1]=v[1]*N+v[3]*j+v[5],S}function R(v,S,N){return G(v,S,0,0,N,0,0)}function k(v,S,N,j,M,D,I,b){const d=Math.sin(D),u=Math.cos(D);return v[0]=j*u,v[1]=M*d,v[2]=-j*d,v[3]=M*u,v[4]=I*j*u-b*j*d+S,v[5]=I*M*d+b*M*u+N,v}function T(v,S){const N=function y(v){return v[0]*v[3]-v[1]*v[2]}(S);(0,t.h)(0!==N,32);const j=S[0],M=S[1],D=S[2],I=S[3],b=S[4],d=S[5];return v[0]=I/N,v[1]=-M/N,v[2]=-D/N,v[3]=j/N,v[4]=(D*d-I*b)/N,v[5]=-(j*d-M*b)/N,v}let A;function g(v){const S="matrix("+v.join(", ")+")";if(pt.Id)return S;const N=A||(A=document.createElement("div"));return N.style.transform=S,N.style.transform}},119:(Jt,$t,ht)=>{"use strict";function pt(){throw new Error("Unimplemented abstract method.")}ht.d($t,{O3:()=>pt,sq:()=>Y});let t=0;function Y(O){return O.ol_uid||(O.ol_uid=String(++t))}},5485:Jt=>{"use strict";Jt.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223e","acd":"\u223f","acE":"\u223e\u0333","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"\u0410","acy":"\u0430","AElig":"\xc6","aelig":"\xe6","af":"\u2061","Afr":"\u{1d504}","afr":"\u{1d51e}","Agrave":"\xc0","agrave":"\xe0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03b1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2a3f","amp":"&","AMP":"&","andand":"\u2a55","And":"\u2a53","and":"\u2227","andd":"\u2a5c","andslope":"\u2a58","andv":"\u2a5a","ang":"\u2220","ange":"\u29a4","angle":"\u2220","angmsdaa":"\u29a8","angmsdab":"\u29a9","angmsdac":"\u29aa","angmsdad":"\u29ab","angmsdae":"\u29ac","angmsdaf":"\u29ad","angmsdag":"\u29ae","angmsdah":"\u29af","angmsd":"\u2221","angrt":"\u221f","angrtvb":"\u22be","angrtvbd":"\u299d","angsph":"\u2222","angst":"\xc5","angzarr":"\u237c","Aogon":"\u0104","aogon":"\u0105","Aopf":"\u{1d538}","aopf":"\u{1d552}","apacir":"\u2a6f","ap":"\u2248","apE":"\u2a70","ape":"\u224a","apid":"\u224b","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224a","Aring":"\xc5","aring":"\xe5","Ascr":"\u{1d49c}","ascr":"\u{1d4b6}","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224d","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"\u2233","awint":"\u2a11","backcong":"\u224c","backepsilon":"\u03f6","backprime":"\u2035","backsim":"\u223d","backsimeq":"\u22cd","Backslash":"\u2216","Barv":"\u2ae7","barvee":"\u22bd","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23b5","bbrktbrk":"\u23b6","bcong":"\u224c","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201e","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29b0","bepsi":"\u03f6","bernou":"\u212c","Bernoullis":"\u212c","Beta":"\u0392","beta":"\u03b2","beth":"\u2136","between":"\u226c","Bfr":"\u{1d505}","bfr":"\u{1d51f}","bigcap":"\u22c2","bigcirc":"\u25ef","bigcup":"\u22c3","bigodot":"\u2a00","bigoplus":"\u2a01","bigotimes":"\u2a02","bigsqcup":"\u2a06","bigstar":"\u2605","bigtriangledown":"\u25bd","bigtriangleup":"\u25b3","biguplus":"\u2a04","bigvee":"\u22c1","bigwedge":"\u22c0","bkarow":"\u290d","blacklozenge":"\u29eb","blacksquare":"\u25aa","blacktriangle":"\u25b4","blacktriangledown":"\u25be","blacktriangleleft":"\u25c2","blacktriangleright":"\u25b8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20e5","bnequiv":"\u2261\u20e5","bNot":"\u2aed","bnot":"\u2310","Bopf":"\u{1d539}","bopf":"\u{1d553}","bot":"\u22a5","bottom":"\u22a5","bowtie":"\u22c8","boxbox":"\u29c9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250c","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252c","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229f","boxplus":"\u229e","boxtimes":"\u22a0","boxul":"\u2518","boxuL":"\u255b","boxUl":"\u255c","boxUL":"\u255d","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255a","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253c","boxvH":"\u256a","boxVh":"\u256b","boxVH":"\u256c","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251c","boxvR":"\u255e","boxVr":"\u255f","boxVR":"\u2560","bprime":"\u2035","breve":"\u02d8","Breve":"\u02d8","brvbar":"\xa6","bscr":"\u{1d4b7}","Bscr":"\u212c","bsemi":"\u204f","bsim":"\u223d","bsime":"\u22cd","bsolb":"\u29c5","bsol":"\\\\","bsolhsub":"\u27c8","bull":"\u2022","bullet":"\u2022","bump":"\u224e","bumpE":"\u2aae","bumpe":"\u224f","Bumpeq":"\u224e","bumpeq":"\u224f","Cacute":"\u0106","cacute":"\u0107","capand":"\u2a44","capbrcup":"\u2a49","capcap":"\u2a4b","cap":"\u2229","Cap":"\u22d2","capcup":"\u2a47","capdot":"\u2a40","CapitalDifferentialD":"\u2145","caps":"\u2229\ufe00","caret":"\u2041","caron":"\u02c7","Cayleys":"\u212d","ccaps":"\u2a4d","Ccaron":"\u010c","ccaron":"\u010d","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2a4c","ccupssm":"\u2a50","Cdot":"\u010a","cdot":"\u010b","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"\u29b2","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\u{1d520}","Cfr":"\u212d","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03a7","chi":"\u03c7","circ":"\u02c6","circeq":"\u2257","circlearrowleft":"\u21ba","circlearrowright":"\u21bb","circledast":"\u229b","circledcirc":"\u229a","circleddash":"\u229d","CircleDot":"\u2299","circledR":"\xae","circledS":"\u24c8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25cb","cirE":"\u29c3","cire":"\u2257","cirfnint":"\u2a10","cirmid":"\u2aef","cirscir":"\u29c2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201d","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2a74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2a6d","Congruent":"\u2261","conint":"\u222e","Conint":"\u222f","ContourIntegral":"\u222e","copf":"\u{1d554}","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xa9","COPY":"\xa9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21b5","cross":"\u2717","Cross":"\u2a2f","Cscr":"\u{1d49e}","cscr":"\u{1d4b8}","csub":"\u2acf","csube":"\u2ad1","csup":"\u2ad0","csupe":"\u2ad2","ctdot":"\u22ef","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22de","cuesc":"\u22df","cularr":"\u21b6","cularrp":"\u293d","cupbrcap":"\u2a48","cupcap":"\u2a46","CupCap":"\u224d","cup":"\u222a","Cup":"\u22d3","cupcup":"\u2a4a","cupdot":"\u228d","cupor":"\u2a45","cups":"\u222a\ufe00","curarr":"\u21b7","curarrm":"\u293c","curlyeqprec":"\u22de","curlyeqsucc":"\u22df","curlyvee":"\u22ce","curlywedge":"\u22cf","curren":"\xa4","curvearrowleft":"\u21b6","curvearrowright":"\u21b7","cuvee":"\u22ce","cuwed":"\u22cf","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232d","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21a1","dArr":"\u21d3","dash":"\u2010","Dashv":"\u2ae4","dashv":"\u22a3","dbkarow":"\u290f","dblac":"\u02dd","Dcaron":"\u010e","dcaron":"\u010f","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21ca","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2a77","deg":"\xb0","Del":"\u2207","Delta":"\u0394","delta":"\u03b4","demptyv":"\u29b1","dfisht":"\u297f","Dfr":"\u{1d507}","dfr":"\u{1d521}","dHar":"\u2965","dharl":"\u21c3","dharr":"\u21c2","DiacriticalAcute":"\xb4","DiacriticalDot":"\u02d9","DiacriticalDoubleAcute":"\u02dd","DiacriticalGrave":"`","DiacriticalTilde":"\u02dc","diam":"\u22c4","diamond":"\u22c4","Diamond":"\u22c4","diamondsuit":"\u2666","diams":"\u2666","die":"\xa8","DifferentialD":"\u2146","digamma":"\u03dd","disin":"\u22f2","div":"\xf7","divide":"\xf7","divideontimes":"\u22c7","divonx":"\u22c7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231e","dlcrop":"\u230d","dollar":"$","Dopf":"\u{1d53b}","dopf":"\u{1d555}","Dot":"\xa8","dot":"\u02d9","DotDot":"\u20dc","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22a1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222f","DoubleDot":"\xa8","DoubleDownArrow":"\u21d3","DoubleLeftArrow":"\u21d0","DoubleLeftRightArrow":"\u21d4","DoubleLeftTee":"\u2ae4","DoubleLongLeftArrow":"\u27f8","DoubleLongLeftRightArrow":"\u27fa","DoubleLongRightArrow":"\u27f9","DoubleRightArrow":"\u21d2","DoubleRightTee":"\u22a8","DoubleUpArrow":"\u21d1","DoubleUpDownArrow":"\u21d5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21d3","DownArrowUpArrow":"\u21f5","DownBreve":"\u0311","downdownarrows":"\u21ca","downharpoonleft":"\u21c3","downharpoonright":"\u21c2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295e","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21bd","DownRightTeeVector":"\u295f","DownRightVectorBar":"\u2957","DownRightVector":"\u21c1","DownTeeArrow":"\u21a7","DownTee":"\u22a4","drbkarow":"\u2910","drcorn":"\u231f","drcrop":"\u230c","Dscr":"\u{1d49f}","dscr":"\u{1d4b9}","DScy":"\u0405","dscy":"\u0455","dsol":"\u29f6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22f1","dtri":"\u25bf","dtrif":"\u25be","duarr":"\u21f5","duhar":"\u296f","dwangle":"\u29a6","DZcy":"\u040f","dzcy":"\u045f","dzigrarr":"\u27ff","Eacute":"\xc9","eacute":"\xe9","easter":"\u2a6e","Ecaron":"\u011a","ecaron":"\u011b","Ecirc":"\xca","ecirc":"\xea","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042d","ecy":"\u044d","eDDot":"\u2a77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\u{1d508}","efr":"\u{1d522}","eg":"\u2a9a","Egrave":"\xc8","egrave":"\xe8","egs":"\u2a96","egsdot":"\u2a98","el":"\u2a99","Element":"\u2208","elinters":"\u23e7","ell":"\u2113","els":"\u2a95","elsdot":"\u2a97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25fb","emptyv":"\u2205","EmptyVerySmallSquare":"\u25ab","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014a","eng":"\u014b","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\u{1d53c}","eopf":"\u{1d556}","epar":"\u22d5","eparsl":"\u29e3","eplus":"\u2a71","epsi":"\u03b5","Epsilon":"\u0395","epsilon":"\u03b5","epsiv":"\u03f5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2a96","eqslantless":"\u2a95","Equal":"\u2a75","equals":"=","EqualTilde":"\u2242","equest":"\u225f","Equilibrium":"\u21cc","equiv":"\u2261","equivDD":"\u2a78","eqvparsl":"\u29e5","erarr":"\u2971","erDot":"\u2253","escr":"\u212f","Escr":"\u2130","esdot":"\u2250","Esim":"\u2a73","esim":"\u2242","Eta":"\u0397","eta":"\u03b7","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"\u20ac","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\ufb03","fflig":"\ufb00","ffllig":"\ufb04","Ffr":"\u{1d509}","ffr":"\u{1d523}","filig":"\ufb01","FilledSmallSquare":"\u25fc","FilledVerySmallSquare":"\u25aa","fjlig":"fj","flat":"\u266d","fllig":"\ufb02","fltns":"\u25b1","fnof":"\u0192","Fopf":"\u{1d53d}","fopf":"\u{1d557}","forall":"\u2200","ForAll":"\u2200","fork":"\u22d4","forkv":"\u2ad9","Fouriertrf":"\u2131","fpartint":"\u2a0d","frac12":"\xbd","frac13":"\u2153","frac14":"\xbc","frac15":"\u2155","frac16":"\u2159","frac18":"\u215b","frac23":"\u2154","frac25":"\u2156","frac34":"\xbe","frac35":"\u2157","frac38":"\u215c","frac45":"\u2158","frac56":"\u215a","frac58":"\u215d","frac78":"\u215e","frasl":"\u2044","frown":"\u2322","fscr":"\u{1d4bb}","Fscr":"\u2131","gacute":"\u01f5","Gamma":"\u0393","gamma":"\u03b3","Gammad":"\u03dc","gammad":"\u03dd","gap":"\u2a86","Gbreve":"\u011e","gbreve":"\u011f","Gcedil":"\u0122","Gcirc":"\u011c","gcirc":"\u011d","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2a8c","gel":"\u22db","geq":"\u2265","geqq":"\u2267","geqslant":"\u2a7e","gescc":"\u2aa9","ges":"\u2a7e","gesdot":"\u2a80","gesdoto":"\u2a82","gesdotol":"\u2a84","gesl":"\u22db\ufe00","gesles":"\u2a94","Gfr":"\u{1d50a}","gfr":"\u{1d524}","gg":"\u226b","Gg":"\u22d9","ggg":"\u22d9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2aa5","gl":"\u2277","glE":"\u2a92","glj":"\u2aa4","gnap":"\u2a8a","gnapprox":"\u2a8a","gne":"\u2a88","gnE":"\u2269","gneq":"\u2a88","gneqq":"\u2269","gnsim":"\u22e7","Gopf":"\u{1d53e}","gopf":"\u{1d558}","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22db","GreaterFullEqual":"\u2267","GreaterGreater":"\u2aa2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2a7e","GreaterTilde":"\u2273","Gscr":"\u{1d4a2}","gscr":"\u210a","gsim":"\u2273","gsime":"\u2a8e","gsiml":"\u2a90","gtcc":"\u2aa7","gtcir":"\u2a7a","gt":">","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\u{1d525}","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\u{1d559}","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\u{1d4bd}","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\u{1d526}","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\u{1d540}","iopf":"\u{1d55a}","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\u{1d4be}","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\u{1d50d}","jfr":"\u{1d527}","jmath":"\u0237","Jopf":"\u{1d541}","jopf":"\u{1d55b}","Jscr":"\u{1d4a5}","jscr":"\u{1d4bf}","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\u{1d50e}","kfr":"\u{1d528}","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\u{1d542}","kopf":"\u{1d55c}","Kscr":"\u{1d4a6}","kscr":"\u{1d4c0}","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\u{1d50f}","lfr":"\u{1d529}","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\u{1d543}","lopf":"\u{1d55d}","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\u{1d4c1}","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\u{1d510}","mfr":"\u{1d52a}","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\u{1d544}","mopf":"\u{1d55e}","mp":"\u2213","mscr":"\u{1d4c2}","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\u{1d511}","nfr":"\u{1d52b}","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\u{1d55f}","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\u{1d4a9}","nscr":"\u{1d4c3}","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\u{1d512}","ofr":"\u{1d52c}","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\u{1d546}","oopf":"\u{1d560}","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\u{1d4aa}","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\u{1d513}","pfr":"\u{1d52d}","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\u{1d561}","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\u{1d4ab}","pscr":"\u{1d4c5}","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\u{1d514}","qfr":"\u{1d52e}","qint":"\u2a0c","qopf":"\u{1d562}","Qopf":"\u211a","qprime":"\u2057","Qscr":"\u{1d4ac}","qscr":"\u{1d4c6}","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\u{1d52f}","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\u{1d563}","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\u{1d4c7}","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\u{1d516}","sfr":"\u{1d530}","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\u{1d54a}","sopf":"\u{1d564}","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\u{1d4ae}","sscr":"\u{1d4c8}","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\u{1d517}","tfr":"\u{1d531}","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\u{1d54b}","topf":"\u{1d565}","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\u{1d4af}","tscr":"\u{1d4c9}","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\u{1d518}","ufr":"\u{1d532}","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\u{1d54c}","uopf":"\u{1d566}","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\u{1d4b0}","uscr":"\u{1d4ca}","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\u{1d519}","vfr":"\u{1d533}","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\u{1d54d}","vopf":"\u{1d567}","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\u{1d4b1}","vscr":"\u{1d4cb}","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\u{1d51a}","wfr":"\u{1d534}","Wopf":"\u{1d54e}","wopf":"\u{1d568}","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\u{1d4b2}","wscr":"\u{1d4cc}","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\u{1d51b}","xfr":"\u{1d535}","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\u{1d54f}","xopf":"\u{1d569}","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\u{1d4b3}","xscr":"\u{1d4cd}","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\u{1d51c}","yfr":"\u{1d536}","YIcy":"\u0407","yicy":"\u0457","Yopf":"\u{1d550}","yopf":"\u{1d56a}","Yscr":"\u{1d4b4}","yscr":"\u{1d4ce}","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\u{1d537}","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\u{1d56b}","Zopf":"\u2124","Zscr":"\u{1d4b5}","zscr":"\u{1d4cf}","zwj":"\u200d","zwnj":"\u200c"}')}},Jt=>{var pt;pt=4431,Jt(Jt.s=pt)}]); \ No newline at end of file diff --git a/dist/ngsw.json b/dist/ngsw.json index 9253f9bc..df4d036b 100644 --- a/dist/ngsw.json +++ b/dist/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1694707292585, + "timestamp": 1695126426914, "index": "/index.html", "assetGroups": [ { @@ -13,7 +13,7 @@ "urls": [ "/contrast.css", "/index.html", - "/main.4290a5b714206a15.js", + "/main.e9a48e21dbf44bab.js", "/manifest.webmanifest", "/polyfills.fc4e187b2cf60df2.js", "/runtime.2d49badc8e04eafd.js", @@ -252,8 +252,8 @@ "/fontawesome-webfont.cf011583fb81df9f.woff": "28b782240b3e76db824e12c02754a9731a167527", "/fontawesome-webfont.da909aa098b0ee2d.svg": "98a8aa5cf7d62c2eff5f07ede8d844b874ef06ed", "/fontawesome-webfont.e9955780856cf8aa.woff2": "d6f48cba7d076fb6f2fd6ba993a75b9dc1ecbf0c", - "/index.html": "e4215a41d91ac1c740d60a7e91bb7a51108584f5", - "/main.4290a5b714206a15.js": "a3424cd8eeea2292fbf9431b181fccf453d80831", + "/index.html": "d18ce0e5f9e8db073194a85abf42e1df46502b5f", + "/main.e9a48e21dbf44bab.js": "301520426b3251f3a2e0fd110de2c81705eaadf3", "/manifest.webmanifest": "b848c77a4ea79860cc030444d6b4138668e449ae", "/polyfills.fc4e187b2cf60df2.js": "c79ce4f8cdf874d8258fba225bd8d038f68eac62", "/runtime.2d49badc8e04eafd.js": "a3a69d6bd6abbc9549bf3b8f914c7ef4c87ea52d", diff --git a/module.xml b/module.xml index 58e3f51a..4eb170d5 100644 --- a/module.xml +++ b/module.xml @@ -3,7 +3,7 @@ dsw - 3.2.15 + 3.2.16 module DeepSeeWeb (DSW) is an Angular UI layer for IRIS BI (DeepSee) dashboards diff --git a/package-lock.json b/package-lock.json index 1083a8df..160f384c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "deep-see-web", - "version": "3.2.15", + "version": "3.2.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "deep-see-web", - "version": "3.2.15", + "version": "3.2.16", "dependencies": { "@angular/animations": "^15.1.0", "@angular/common": "^15.1.0",