diff --git a/docs/assets/docs/v8/form-component/form-component_en.md b/docs/assets/docs/v8/form-component/form-component_en.md index 1b9bf704..88f9cd5f 100644 --- a/docs/assets/docs/v8/form-component/form-component_en.md +++ b/docs/assets/docs/v8/form-component/form-component_en.md @@ -124,6 +124,10 @@ See [Custom Loading](../../v8/custom-loading/custom-loading_en.md). The event called after form generation complete. The generated `UntypedFormGroup` will be emitted. +### onChange + +The event of form value when it's changed by user. + ### optionsLoaded The event called after all of the options are loaded. diff --git a/docs/assets/docs/v8/form-component/form-component_zh-TW.md b/docs/assets/docs/v8/form-component/form-component_zh-TW.md index 247832e0..7b27dd5f 100644 --- a/docs/assets/docs/v8/form-component/form-component_zh-TW.md +++ b/docs/assets/docs/v8/form-component/form-component_zh-TW.md @@ -124,6 +124,10 @@ submit(): void { 當表單生成完畢時觸發的事件,並將生成的 `UntypeFormGroup` 發送出去。 +### onChange + +用戶行為導致的表單的值變化事件。 + ### optionsLoaded 當所有選項載入完成後觸發。 diff --git a/docs/docs/conditions/conditions_en.md/index.html b/docs/docs/conditions/conditions_en.md/index.html index db414e0e..8b433a25 100644 --- a/docs/docs/conditions/conditions_en.md/index.html +++ b/docs/docs/conditions/conditions_en.md/index.html @@ -190,6 +190,6 @@

Multiple conditions

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/conditions/conditions_zh-TW.md/index.html b/docs/docs/conditions/conditions_zh-TW.md/index.html index ce35002a..4f47c818 100644 --- a/docs/docs/conditions/conditions_zh-TW.md/index.html +++ b/docs/docs/conditions/conditions_zh-TW.md/index.html @@ -190,6 +190,6 @@

多個條件

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/configs/configs_en.md/index.html b/docs/docs/configs/configs_en.md/index.html index 2a5eff11..b2cb3b00 100644 --- a/docs/docs/configs/configs_en.md/index.html +++ b/docs/docs/configs/configs_en.md/index.html @@ -111,6 +111,6 @@

validators

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/configs/configs_zh-TW.md/index.html b/docs/docs/configs/configs_zh-TW.md/index.html index cd68c488..72586795 100644 --- a/docs/docs/configs/configs_zh-TW.md/index.html +++ b/docs/docs/configs/configs_zh-TW.md/index.html @@ -111,6 +111,6 @@

validators

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/custom-components/custom-components_en.md/index.html b/docs/docs/custom-components/custom-components_en.md/index.html index 713d7391..82fc76ec 100644 --- a/docs/docs/custom-components/custom-components_en.md/index.html +++ b/docs/docs/custom-components/custom-components_en.md/index.html @@ -251,6 +251,6 @@

onOptionsGet

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/custom-components/custom-components_zh-TW.md/index.html b/docs/docs/custom-components/custom-components_zh-TW.md/index.html index 6d1cb9c8..0cbd2076 100644 --- a/docs/docs/custom-components/custom-components_zh-TW.md/index.html +++ b/docs/docs/custom-components/custom-components_zh-TW.md/index.html @@ -255,6 +255,6 @@

使用 ng-template

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/custom-error/custom-error_en.md/index.html b/docs/docs/custom-error/custom-error_en.md/index.html index 319e81e9..407945a8 100644 --- a/docs/docs/custom-error/custom-error_en.md/index.html +++ b/docs/docs/custom-error/custom-error_en.md/index.html @@ -169,6 +169,6 @@

Using ng-template

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/custom-error/custom-error_zh-TW.md/index.html b/docs/docs/custom-error/custom-error_zh-TW.md/index.html index 7fc01a35..ce180cfb 100644 --- a/docs/docs/custom-error/custom-error_zh-TW.md/index.html +++ b/docs/docs/custom-error/custom-error_zh-TW.md/index.html @@ -169,6 +169,6 @@

使用 ng-template

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/custom-label/custom-label_en.md/index.html b/docs/docs/custom-label/custom-label_en.md/index.html index 05ef868e..b25e7b24 100644 --- a/docs/docs/custom-label/custom-label_en.md/index.html +++ b/docs/docs/custom-label/custom-label_en.md/index.html @@ -184,6 +184,6 @@

Using ng-template

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/custom-label/custom-label_zh-TW.md/index.html b/docs/docs/custom-label/custom-label_zh-TW.md/index.html index 38c71c6f..a7ac4af8 100644 --- a/docs/docs/custom-label/custom-label_zh-TW.md/index.html +++ b/docs/docs/custom-label/custom-label_zh-TW.md/index.html @@ -184,6 +184,6 @@

使用 ng-template

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/custom-loading/custom-loading_en.md/index.html b/docs/docs/custom-loading/custom-loading_en.md/index.html index f0ba6d53..c12dc454 100644 --- a/docs/docs/custom-loading/custom-loading_en.md/index.html +++ b/docs/docs/custom-loading/custom-loading_en.md/index.html @@ -104,6 +104,6 @@

Using template

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/custom-loading/custom-loading_zh-TW.md/index.html b/docs/docs/custom-loading/custom-loading_zh-TW.md/index.html index edc2567c..917a4a2a 100644 --- a/docs/docs/custom-loading/custom-loading_zh-TW.md/index.html +++ b/docs/docs/custom-loading/custom-loading_zh-TW.md/index.html @@ -104,6 +104,6 @@

使用 ng-template

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/form-component/form-component_en.md/index.html b/docs/docs/form-component/form-component_en.md/index.html index 0f9c1938..e6114e59 100644 --- a/docs/docs/form-component/form-component_en.md/index.html +++ b/docs/docs/form-component/form-component_en.md/index.html @@ -135,6 +135,8 @@

@Output

@Output() updateStatusFunctions = new EventEmitter<FormStatusFunctions>();

formGet

The event called after form generation complete. The generated UntypedFormGroup will be emitted.

+

onChange

+

The event of form value when it's changed by user.

optionsLoaded

The event called after all of the options are loaded.

displayValue

@@ -172,6 +174,6 @@

displayValue

Layout

Styling

- + - \ No newline at end of file + \ No newline at end of file diff --git a/docs/docs/form-component/form-component_zh-TW.md/index.html b/docs/docs/form-component/form-component_zh-TW.md/index.html index 595d5b4c..c8e3cf22 100644 --- a/docs/docs/form-component/form-component_zh-TW.md/index.html +++ b/docs/docs/form-component/form-component_zh-TW.md/index.html @@ -135,6 +135,8 @@

@Output

@Output() updateStatusFunctions = new EventEmitter<FormStatusFunctions>();

formGet

當表單生成完畢時觸發的事件,並將生成的 UntypeFormGroup 發送出去。

+

onChange

+

用戶行為導致的表單的值變化事件。

optionsLoaded

當所有選項載入完成後觸發。

displayValue

@@ -172,6 +174,6 @@

displayValue

佈局

樣式

- + - \ No newline at end of file + \ No newline at end of file diff --git a/docs/docs/getting-started/getting-started_en.md/index.html b/docs/docs/getting-started/getting-started_en.md/index.html index 81a1fadc..96032e39 100644 --- a/docs/docs/getting-started/getting-started_en.md/index.html +++ b/docs/docs/getting-started/getting-started_en.md/index.html @@ -192,6 +192,6 @@

Event Listening

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/getting-started/getting-started_zh-TW.md/index.html b/docs/docs/getting-started/getting-started_zh-TW.md/index.html index 42fd6675..845c29b5 100644 --- a/docs/docs/getting-started/getting-started_zh-TW.md/index.html +++ b/docs/docs/getting-started/getting-started_zh-TW.md/index.html @@ -192,6 +192,6 @@

事件監聽

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/index.html b/docs/docs/index.html index 905067c8..39d26bbc 100644 --- a/docs/docs/index.html +++ b/docs/docs/index.html @@ -192,6 +192,6 @@

Event Listening

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/input-mask/input-mask_en.md/index.html b/docs/docs/input-mask/input-mask_en.md/index.html index 726962fb..8f8c6f87 100644 --- a/docs/docs/input-mask/input-mask_en.md/index.html +++ b/docs/docs/input-mask/input-mask_en.md/index.html @@ -118,6 +118,6 @@

Unsupported mask

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/input-mask/input-mask_zh-TW.md/index.html b/docs/docs/input-mask/input-mask_zh-TW.md/index.html index d559c78b..b5bff336 100644 --- a/docs/docs/input-mask/input-mask_zh-TW.md/index.html +++ b/docs/docs/input-mask/input-mask_zh-TW.md/index.html @@ -119,6 +119,6 @@

不支援的遮罩類型

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/input-types/input-types_en.md/index.html b/docs/docs/input-types/input-types_en.md/index.html index 3f37eeb5..6dbb914d 100644 --- a/docs/docs/input-types/input-types_en.md/index.html +++ b/docs/docs/input-types/input-types_en.md/index.html @@ -145,6 +145,6 @@

More Types

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/input-types/input-types_zh-TW.md/index.html b/docs/docs/input-types/input-types_zh-TW.md/index.html index 739e579b..906da115 100644 --- a/docs/docs/input-types/input-types_zh-TW.md/index.html +++ b/docs/docs/input-types/input-types_zh-TW.md/index.html @@ -146,6 +146,6 @@

更多類型

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/layout/layout_en.md/index.html b/docs/docs/layout/layout_en.md/index.html index 0e2b8e15..aa35f93c 100644 --- a/docs/docs/layout/layout_en.md/index.html +++ b/docs/docs/layout/layout_en.md/index.html @@ -120,6 +120,6 @@

FormLayout

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/layout/layout_zh-TW.md/index.html b/docs/docs/layout/layout_zh-TW.md/index.html index 4a64255d..33efac0f 100644 --- a/docs/docs/layout/layout_zh-TW.md/index.html +++ b/docs/docs/layout/layout_zh-TW.md/index.html @@ -119,6 +119,6 @@

FormLayout

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/options/options_en.md/index.html b/docs/docs/options/options_en.md/index.html index 4c455600..d09f3777 100644 --- a/docs/docs/options/options_en.md/index.html +++ b/docs/docs/options/options_en.md/index.html @@ -678,6 +678,6 @@

filter

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/options/options_zh-TW.md/index.html b/docs/docs/options/options_zh-TW.md/index.html index 9fea4e34..14cac6ea 100644 --- a/docs/docs/options/options_zh-TW.md/index.html +++ b/docs/docs/options/options_zh-TW.md/index.html @@ -676,6 +676,6 @@

filter

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/props/props_en.md/index.html b/docs/docs/props/props_en.md/index.html index eda6ef48..51a849de 100644 --- a/docs/docs/props/props_en.md/index.html +++ b/docs/docs/props/props_en.md/index.html @@ -231,6 +231,6 @@

Custom Components

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/props/props_zh-TW.md/index.html b/docs/docs/props/props_zh-TW.md/index.html index 8e4e7b71..49771e07 100644 --- a/docs/docs/props/props_zh-TW.md/index.html +++ b/docs/docs/props/props_zh-TW.md/index.html @@ -231,6 +231,6 @@

自訂元件

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/styling/styling_en.md/index.html b/docs/docs/styling/styling_en.md/index.html index 782ac1ef..65d8b8dd 100644 --- a/docs/docs/styling/styling_en.md/index.html +++ b/docs/docs/styling/styling_en.md/index.html @@ -85,6 +85,6 @@

Global Variables

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/styling/styling_zh-TW.md/index.html b/docs/docs/styling/styling_zh-TW.md/index.html index 7ea13df9..8dd3af63 100644 --- a/docs/docs/styling/styling_zh-TW.md/index.html +++ b/docs/docs/styling/styling_zh-TW.md/index.html @@ -85,6 +85,6 @@

全域變數

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/ui-components/ui-components_en.md/index.html b/docs/docs/ui-components/ui-components_en.md/index.html index b7ae30ed..2971d281 100644 --- a/docs/docs/ui-components/ui-components_en.md/index.html +++ b/docs/docs/ui-components/ui-components_en.md/index.html @@ -118,6 +118,6 @@

Extend or Overwrite UI components

Layout

Styling

- + \ No newline at end of file diff --git a/docs/docs/ui-components/ui-components_zh-TW.md/index.html b/docs/docs/ui-components/ui-components_zh-TW.md/index.html index 6836285d..e789ee31 100644 --- a/docs/docs/ui-components/ui-components_zh-TW.md/index.html +++ b/docs/docs/ui-components/ui-components_zh-TW.md/index.html @@ -118,6 +118,6 @@

擴充/覆寫 UI 元件

佈局

樣式

- + \ No newline at end of file diff --git a/docs/docs/validators/validators_en.md/index.html b/docs/docs/validators/validators_en.md/index.html index c6e6a532..24bcc4a0 100644 --- a/docs/docs/validators/validators_en.md/index.html +++ b/docs/docs/validators/validators_en.md/index.html @@ -146,6 +146,6 @@

Provide custom validators globallyLayout

Styling

- + \ No newline at end of file diff --git a/docs/docs/validators/validators_zh-TW.md/index.html b/docs/docs/validators/validators_zh-TW.md/index.html index 3f63f9bb..5faee6a0 100644 --- a/docs/docs/validators/validators_zh-TW.md/index.html +++ b/docs/docs/validators/validators_zh-TW.md/index.html @@ -146,6 +146,6 @@

全域自訂驗證器

佈局

樣式

- + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 78769c5b..d54e1812 100644 --- a/docs/index.html +++ b/docs/index.html @@ -27,6 +27,6 @@
v8
  • Create form with unlimited nesting level
  • Toggle control status (hidden or disabled) and validators depends on value from other control
  • Supports Angular built in validators and custom validators
  • Support custom components
  • Flexible form layout
  • Support third party UI libraries
Level 1
Name
Level 2
Age
Input mask (number)
Level 3
Address
Country
State/Province
Zip/Postal code
Address
- + \ No newline at end of file diff --git a/docs/index.original.html b/docs/index.original.html index b4541ffa..c6b76ece 100644 --- a/docs/index.original.html +++ b/docs/index.original.html @@ -29,5 +29,5 @@ - + diff --git a/docs/main.23b886790db19921.js b/docs/main.23b886790db19921.js new file mode 100644 index 00000000..92c7b225 --- /dev/null +++ b/docs/main.23b886790db19921.js @@ -0,0 +1,7 @@ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[792],{4574:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.MissingRefError=J.ValidationError=J.CodeGen=J.Name=J.nil=J.stringify=J.str=J._=J.KeywordCxt=J.Ajv=void 0;const g=F(3078),o=F(7540),V=F(3121),oe=F(2079),De=["/properties"],pe="http://json-schema.org/draft-07/schema";class Ee extends g.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(vt=>this.addVocabulary(vt)),this.opts.discriminator&&this.addKeyword(V.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const vt=this.opts.$data?this.$dataMetaSchema(oe,De):oe;this.addMetaSchema(vt,pe,!1),this.refs["http://json-schema.org/schema"]=pe}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(pe)?pe:void 0)}}J.Ajv=Ee,vn.exports=J=Ee,vn.exports.Ajv=Ee,Object.defineProperty(J,"__esModule",{value:!0}),J.default=Ee;var be=F(6038);Object.defineProperty(J,"KeywordCxt",{enumerable:!0,get:function(){return be.KeywordCxt}});var ge=F(6033);Object.defineProperty(J,"_",{enumerable:!0,get:function(){return ge._}}),Object.defineProperty(J,"str",{enumerable:!0,get:function(){return ge.str}}),Object.defineProperty(J,"stringify",{enumerable:!0,get:function(){return ge.stringify}}),Object.defineProperty(J,"nil",{enumerable:!0,get:function(){return ge.nil}}),Object.defineProperty(J,"Name",{enumerable:!0,get:function(){return ge.Name}}),Object.defineProperty(J,"CodeGen",{enumerable:!0,get:function(){return ge.CodeGen}});var Te=F(8186);Object.defineProperty(J,"ValidationError",{enumerable:!0,get:function(){return Te.default}});var Ve=F(3115);Object.defineProperty(J,"MissingRefError",{enumerable:!0,get:function(){return Ve.default}})},2004:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.regexpCode=J.getEsmExportName=J.getProperty=J.safeStringify=J.stringify=J.strConcat=J.addCodeArg=J.str=J._=J.nil=J._Code=J.Name=J.IDENTIFIER=J._CodeOrName=void 0;class F{}J._CodeOrName=F,J.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class g extends F{constructor(Fe){if(super(),!J.IDENTIFIER.test(Fe))throw new Error("CodeGen: name must be a valid identifier");this.str=Fe}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}J.Name=g;class o extends F{constructor(Fe){super(),this._items="string"==typeof Fe?[Fe]:Fe}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const Fe=this._items[0];return""===Fe||'""'===Fe}get str(){var Fe;return null!==(Fe=this._str)&&void 0!==Fe?Fe:this._str=this._items.reduce((_t,at)=>`${_t}${at}`,"")}get names(){var Fe;return null!==(Fe=this._names)&&void 0!==Fe?Fe:this._names=this._items.reduce((_t,at)=>(at instanceof g&&(_t[at.str]=(_t[at.str]||0)+1),_t),{})}}function V(de,...Fe){const _t=[de[0]];let at=0;for(;at{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.or=J.and=J.not=J.CodeGen=J.operators=J.varKinds=J.ValueScopeName=J.ValueScope=J.Scope=J.Name=J.regexpCode=J.stringify=J.getProperty=J.nil=J.strConcat=J.str=J._=void 0;const g=F(2004),o=F(4249);var V=F(2004);Object.defineProperty(J,"_",{enumerable:!0,get:function(){return V._}}),Object.defineProperty(J,"str",{enumerable:!0,get:function(){return V.str}}),Object.defineProperty(J,"strConcat",{enumerable:!0,get:function(){return V.strConcat}}),Object.defineProperty(J,"nil",{enumerable:!0,get:function(){return V.nil}}),Object.defineProperty(J,"getProperty",{enumerable:!0,get:function(){return V.getProperty}}),Object.defineProperty(J,"stringify",{enumerable:!0,get:function(){return V.stringify}}),Object.defineProperty(J,"regexpCode",{enumerable:!0,get:function(){return V.regexpCode}}),Object.defineProperty(J,"Name",{enumerable:!0,get:function(){return V.Name}});var oe=F(4249);Object.defineProperty(J,"Scope",{enumerable:!0,get:function(){return oe.Scope}}),Object.defineProperty(J,"ValueScope",{enumerable:!0,get:function(){return oe.ValueScope}}),Object.defineProperty(J,"ValueScopeName",{enumerable:!0,get:function(){return oe.ValueScopeName}}),Object.defineProperty(J,"varKinds",{enumerable:!0,get:function(){return oe.varKinds}}),J.operators={GT:new g._Code(">"),GTE:new g._Code(">="),LT:new g._Code("<"),LTE:new g._Code("<="),EQ:new g._Code("==="),NEQ:new g._Code("!=="),NOT:new g._Code("!"),OR:new g._Code("||"),AND:new g._Code("&&"),ADD:new g._Code("+")};class De{optimizeNodes(){return this}optimizeNames(Ae,Ue){return this}}class pe extends De{constructor(Ae,Ue,Ze){super(),this.varKind=Ae,this.name=Ue,this.rhs=Ze}render({es5:Ae,_n:Ue}){return`${Ae?o.varKinds.var:this.varKind} ${this.name}${void 0===this.rhs?"":` = ${this.rhs}`};`+Ue}optimizeNames(Ae,Ue){if(Ae[this.name.str])return this.rhs&&(this.rhs=di(this.rhs,Ae,Ue)),this}get names(){return this.rhs instanceof g._CodeOrName?this.rhs.names:{}}}class Ee extends De{constructor(Ae,Ue,Ze){super(),this.lhs=Ae,this.rhs=Ue,this.sideEffects=Ze}render({_n:Ae}){return`${this.lhs} = ${this.rhs};`+Ae}optimizeNames(Ae,Ue){if(!(this.lhs instanceof g.Name)||Ae[this.lhs.str]||this.sideEffects)return this.rhs=di(this.rhs,Ae,Ue),this}get names(){return Wn(this.lhs instanceof g.Name?{}:{...this.lhs.names},this.rhs)}}class be extends Ee{constructor(Ae,Ue,Ze,H){super(Ae,Ze,H),this.op=Ue}render({_n:Ae}){return`${this.lhs} ${this.op}= ${this.rhs};`+Ae}}class ge extends De{constructor(Ae){super(),this.label=Ae,this.names={}}render({_n:Ae}){return`${this.label}:`+Ae}}class Te extends De{constructor(Ae){super(),this.label=Ae,this.names={}}render({_n:Ae}){return`break${this.label?` ${this.label}`:""};`+Ae}}class Ve extends De{constructor(Ae){super(),this.error=Ae}render({_n:Ae}){return`throw ${this.error};`+Ae}get names(){return this.error.names}}class ze extends De{constructor(Ae){super(),this.code=Ae}render({_n:Ae}){return`${this.code};`+Ae}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Ae,Ue){return this.code=di(this.code,Ae,Ue),this}get names(){return this.code instanceof g._CodeOrName?this.code.names:{}}}class vt extends De{constructor(Ae=[]){super(),this.nodes=Ae}render(Ae){return this.nodes.reduce((Ue,Ze)=>Ue+Ze.render(Ae),"")}optimizeNodes(){const{nodes:Ae}=this;let Ue=Ae.length;for(;Ue--;){const Ze=Ae[Ue].optimizeNodes();Array.isArray(Ze)?Ae.splice(Ue,1,...Ze):Ze?Ae[Ue]=Ze:Ae.splice(Ue,1)}return Ae.length>0?this:void 0}optimizeNames(Ae,Ue){const{nodes:Ze}=this;let H=Ze.length;for(;H--;){const te=Ze[H];te.optimizeNames(Ae,Ue)||(ai(Ae,te.names),Ze.splice(H,1))}return Ze.length>0?this:void 0}get names(){return this.nodes.reduce((Ae,Ue)=>wn(Ae,Ue.names),{})}}class Re extends vt{render(Ae){return"{"+Ae._n+super.render(Ae)+"}"+Ae._n}}class tt extends vt{}let de=(()=>{class Je extends Re{}return Je.kind="else",Je})(),Fe=(()=>{class Je extends Re{constructor(Ue,Ze){super(Ze),this.condition=Ue}render(Ue){let Ze=`if(${this.condition})`+super.render(Ue);return this.else&&(Ze+="else "+this.else.render(Ue)),Ze}optimizeNodes(){super.optimizeNodes();const Ue=this.condition;if(!0===Ue)return this.nodes;let Ze=this.else;if(Ze){const H=Ze.optimizeNodes();Ze=this.else=Array.isArray(H)?new de(H):H}return Ze?!1===Ue?Ze instanceof Je?Ze:Ze.nodes:this.nodes.length?this:new Je(Li(Ue),Ze instanceof Je?[Ze]:Ze.nodes):!1!==Ue&&this.nodes.length?this:void 0}optimizeNames(Ue,Ze){var H;if(this.else=null===(H=this.else)||void 0===H?void 0:H.optimizeNames(Ue,Ze),super.optimizeNames(Ue,Ze)||this.else)return this.condition=di(this.condition,Ue,Ze),this}get names(){const Ue=super.names;return Wn(Ue,this.condition),this.else&&wn(Ue,this.else.names),Ue}}return Je.kind="if",Je})(),_t=(()=>{class Je extends Re{}return Je.kind="for",Je})();class at extends _t{constructor(Ae){super(),this.iteration=Ae}render(Ae){return`for(${this.iteration})`+super.render(Ae)}optimizeNames(Ae,Ue){if(super.optimizeNames(Ae,Ue))return this.iteration=di(this.iteration,Ae,Ue),this}get names(){return wn(super.names,this.iteration.names)}}class Be extends _t{constructor(Ae,Ue,Ze,H){super(),this.varKind=Ae,this.name=Ue,this.from=Ze,this.to=H}render(Ae){const Ue=Ae.es5?o.varKinds.var:this.varKind,{name:Ze,from:H,to:te}=this;return`for(${Ue} ${Ze}=${H}; ${Ze}<${te}; ${Ze}++)`+super.render(Ae)}get names(){const Ae=Wn(super.names,this.from);return Wn(Ae,this.to)}}class he extends _t{constructor(Ae,Ue,Ze,H){super(),this.loop=Ae,this.varKind=Ue,this.name=Ze,this.iterable=H}render(Ae){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Ae)}optimizeNames(Ae,Ue){if(super.optimizeNames(Ae,Ue))return this.iterable=di(this.iterable,Ae,Ue),this}get names(){return wn(super.names,this.iterable.names)}}let He=(()=>{class Je extends Re{constructor(Ue,Ze,H){super(),this.name=Ue,this.args=Ze,this.async=H}render(Ue){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Ue)}}return Je.kind="func",Je})(),Se=(()=>{class Je extends vt{render(Ue){return"return "+super.render(Ue)}}return Je.kind="return",Je})();class it extends Re{render(Ae){let Ue="try"+super.render(Ae);return this.catch&&(Ue+=this.catch.render(Ae)),this.finally&&(Ue+=this.finally.render(Ae)),Ue}optimizeNodes(){var Ae,Ue;return super.optimizeNodes(),null===(Ae=this.catch)||void 0===Ae||Ae.optimizeNodes(),null===(Ue=this.finally)||void 0===Ue||Ue.optimizeNodes(),this}optimizeNames(Ae,Ue){var Ze,H;return super.optimizeNames(Ae,Ue),null===(Ze=this.catch)||void 0===Ze||Ze.optimizeNames(Ae,Ue),null===(H=this.finally)||void 0===H||H.optimizeNames(Ae,Ue),this}get names(){const Ae=super.names;return this.catch&&wn(Ae,this.catch.names),this.finally&&wn(Ae,this.finally.names),Ae}}let dt=(()=>{class Je extends Re{constructor(Ue){super(),this.error=Ue}render(Ue){return`catch(${this.error})`+super.render(Ue)}}return Je.kind="catch",Je})(),jt=(()=>{class Je extends Re{render(Ue){return"finally"+super.render(Ue)}}return Je.kind="finally",Je})();function wn(Je,Ae){for(const Ue in Ae)Je[Ue]=(Je[Ue]||0)+(Ae[Ue]||0);return Je}function Wn(Je,Ae){return Ae instanceof g._CodeOrName?wn(Je,Ae.names):Je}function di(Je,Ae,Ue){return Je instanceof g.Name?Ze(Je):function H(te){return te instanceof g._Code&&te._items.some(xe=>xe instanceof g.Name&&1===Ae[xe.str]&&void 0!==Ue[xe.str])}(Je)?new g._Code(Je._items.reduce((te,xe)=>(xe instanceof g.Name&&(xe=Ze(xe)),xe instanceof g._Code?te.push(...xe._items):te.push(xe),te),[])):Je;function Ze(te){const xe=Ue[te.str];return void 0===xe||1!==Ae[te.str]?te:(delete Ae[te.str],xe)}}function ai(Je,Ae){for(const Ue in Ae)Je[Ue]=(Je[Ue]||0)-(Ae[Ue]||0)}function Li(Je){return"boolean"==typeof Je||"number"==typeof Je||null===Je?!Je:g._`!${ht(Je)}`}J.CodeGen=class Wt{constructor(Ae,Ue={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Ue,_n:Ue.lines?"\n":""},this._extScope=Ae,this._scope=new o.Scope({parent:Ae}),this._nodes=[new tt]}toString(){return this._root.render(this.opts)}name(Ae){return this._scope.name(Ae)}scopeName(Ae){return this._extScope.name(Ae)}scopeValue(Ae,Ue){const Ze=this._extScope.value(Ae,Ue);return(this._values[Ze.prefix]||(this._values[Ze.prefix]=new Set)).add(Ze),Ze}getScopeValue(Ae,Ue){return this._extScope.getValue(Ae,Ue)}scopeRefs(Ae){return this._extScope.scopeRefs(Ae,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Ae,Ue,Ze,H){const te=this._scope.toName(Ue);return void 0!==Ze&&H&&(this._constants[te.str]=Ze),this._leafNode(new pe(Ae,te,Ze)),te}const(Ae,Ue,Ze){return this._def(o.varKinds.const,Ae,Ue,Ze)}let(Ae,Ue,Ze){return this._def(o.varKinds.let,Ae,Ue,Ze)}var(Ae,Ue,Ze){return this._def(o.varKinds.var,Ae,Ue,Ze)}assign(Ae,Ue,Ze){return this._leafNode(new Ee(Ae,Ue,Ze))}add(Ae,Ue){return this._leafNode(new be(Ae,J.operators.ADD,Ue))}code(Ae){return"function"==typeof Ae?Ae():Ae!==g.nil&&this._leafNode(new ze(Ae)),this}object(...Ae){const Ue=["{"];for(const[Ze,H]of Ae)Ue.length>1&&Ue.push(","),Ue.push(Ze),(Ze!==H||this.opts.es5)&&(Ue.push(":"),(0,g.addCodeArg)(Ue,H));return Ue.push("}"),new g._Code(Ue)}if(Ae,Ue,Ze){if(this._blockNode(new Fe(Ae)),Ue&&Ze)this.code(Ue).else().code(Ze).endIf();else if(Ue)this.code(Ue).endIf();else if(Ze)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Ae){return this._elseNode(new Fe(Ae))}else(){return this._elseNode(new de)}endIf(){return this._endBlockNode(Fe,de)}_for(Ae,Ue){return this._blockNode(Ae),Ue&&this.code(Ue).endFor(),this}for(Ae,Ue){return this._for(new at(Ae),Ue)}forRange(Ae,Ue,Ze,H,te=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const xe=this._scope.toName(Ae);return this._for(new Be(te,xe,Ue,Ze),()=>H(xe))}forOf(Ae,Ue,Ze,H=o.varKinds.const){const te=this._scope.toName(Ae);if(this.opts.es5){const xe=Ue instanceof g.Name?Ue:this.var("_arr",Ue);return this.forRange("_i",0,g._`${xe}.length`,Ce=>{this.var(te,g._`${xe}[${Ce}]`),Ze(te)})}return this._for(new he("of",H,te,Ue),()=>Ze(te))}forIn(Ae,Ue,Ze,H=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(Ae,g._`Object.keys(${Ue})`,Ze);const te=this._scope.toName(Ae);return this._for(new he("in",H,te,Ue),()=>Ze(te))}endFor(){return this._endBlockNode(_t)}label(Ae){return this._leafNode(new ge(Ae))}break(Ae){return this._leafNode(new Te(Ae))}return(Ae){const Ue=new Se;if(this._blockNode(Ue),this.code(Ae),1!==Ue.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Se)}try(Ae,Ue,Ze){if(!Ue&&!Ze)throw new Error('CodeGen: "try" without "catch" and "finally"');const H=new it;if(this._blockNode(H),this.code(Ae),Ue){const te=this.name("e");this._currNode=H.catch=new dt(te),Ue(te)}return Ze&&(this._currNode=H.finally=new jt,this.code(Ze)),this._endBlockNode(dt,jt)}throw(Ae){return this._leafNode(new Ve(Ae))}block(Ae,Ue){return this._blockStarts.push(this._nodes.length),Ae&&this.code(Ae).endBlock(Ue),this}endBlock(Ae){const Ue=this._blockStarts.pop();if(void 0===Ue)throw new Error("CodeGen: not in self-balancing block");const Ze=this._nodes.length-Ue;if(Ze<0||void 0!==Ae&&Ze!==Ae)throw new Error(`CodeGen: wrong number of nodes: ${Ze} vs ${Ae} expected`);return this._nodes.length=Ue,this}func(Ae,Ue=g.nil,Ze,H){return this._blockNode(new He(Ae,Ue,Ze)),H&&this.code(H).endFunc(),this}endFunc(){return this._endBlockNode(He)}optimize(Ae=1){for(;Ae-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Ae){return this._currNode.nodes.push(Ae),this}_blockNode(Ae){this._currNode.nodes.push(Ae),this._nodes.push(Ae)}_endBlockNode(Ae,Ue){const Ze=this._currNode;if(Ze instanceof Ae||Ue&&Ze instanceof Ue)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Ue?`${Ae.kind}/${Ue.kind}`:Ae.kind}"`)}_elseNode(Ae){const Ue=this._currNode;if(!(Ue instanceof Fe))throw new Error('CodeGen: "else" without "if"');return this._currNode=Ue.else=Ae,this}get _root(){return this._nodes[0]}get _currNode(){const Ae=this._nodes;return Ae[Ae.length-1]}set _currNode(Ae){const Ue=this._nodes;Ue[Ue.length-1]=Ae}},J.not=Li;const $i=nt(J.operators.AND);J.and=function Hr(...Je){return Je.reduce($i)};const ui=nt(J.operators.OR);function nt(Je){return(Ae,Ue)=>Ae===g.nil?Ue:Ue===g.nil?Ae:g._`${ht(Ae)} ${Je} ${ht(Ue)}`}function ht(Je){return Je instanceof g.Name?Je:g._`(${Je})`}J.or=function dn(...Je){return Je.reduce(ui)}},4249:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.ValueScope=J.ValueScopeName=J.Scope=J.varKinds=J.UsedValueState=void 0;const g=F(2004);class o extends Error{constructor(ge){super(`CodeGen: "code" for ${ge} not defined`),this.value=ge.value}}var V=function(be){return be[be.Started=0]="Started",be[be.Completed=1]="Completed",be}(V||(J.UsedValueState=V={}));J.varKinds={const:new g.Name("const"),let:new g.Name("let"),var:new g.Name("var")};class oe{constructor({prefixes:ge,parent:Te}={}){this._names={},this._prefixes=ge,this._parent=Te}toName(ge){return ge instanceof g.Name?ge:this.name(ge)}name(ge){return new g.Name(this._newName(ge))}_newName(ge){return`${ge}${(this._names[ge]||this._nameGroup(ge)).index++}`}_nameGroup(ge){var Te,Ve;if(null!==(Ve=null===(Te=this._parent)||void 0===Te?void 0:Te._prefixes)&&void 0!==Ve&&Ve.has(ge)||this._prefixes&&!this._prefixes.has(ge))throw new Error(`CodeGen: prefix "${ge}" is not allowed in this scope`);return this._names[ge]={prefix:ge,index:0}}}J.Scope=oe;class De extends g.Name{constructor(ge,Te){super(Te),this.prefix=ge}setValue(ge,{property:Te,itemIndex:Ve}){this.value=ge,this.scopePath=g._`.${new g.Name(Te)}[${Ve}]`}}J.ValueScopeName=De;const pe=g._`\n`;J.ValueScope=class Ee extends oe{constructor(ge){super(ge),this._values={},this._scope=ge.scope,this.opts={...ge,_n:ge.lines?pe:g.nil}}get(){return this._scope}name(ge){return new De(ge,this._newName(ge))}value(ge,Te){var Ve;if(void 0===Te.ref)throw new Error("CodeGen: ref must be passed in value");const ze=this.toName(ge),{prefix:vt}=ze,Re=null!==(Ve=Te.key)&&void 0!==Ve?Ve:Te.ref;let tt=this._values[vt];if(tt){const _t=tt.get(Re);if(_t)return _t}else tt=this._values[vt]=new Map;tt.set(Re,ze);const de=this._scope[vt]||(this._scope[vt]=[]),Fe=de.length;return de[Fe]=Te.ref,ze.setValue(Te,{property:vt,itemIndex:Fe}),ze}getValue(ge,Te){const Ve=this._values[ge];if(Ve)return Ve.get(Te)}scopeRefs(ge,Te=this._values){return this._reduceValues(Te,Ve=>{if(void 0===Ve.scopePath)throw new Error(`CodeGen: name "${Ve}" has no value`);return g._`${ge}${Ve.scopePath}`})}scopeCode(ge=this._values,Te,Ve){return this._reduceValues(ge,ze=>{if(void 0===ze.value)throw new Error(`CodeGen: name "${ze}" has no value`);return ze.value.code},Te,Ve)}_reduceValues(ge,Te,Ve={},ze){let vt=g.nil;for(const Re in ge){const tt=ge[Re];if(!tt)continue;const de=Ve[Re]=Ve[Re]||new Map;tt.forEach(Fe=>{if(de.has(Fe))return;de.set(Fe,V.Started);let _t=Te(Fe);if(_t)vt=g._`${vt}${this.opts.es5?J.varKinds.var:J.varKinds.const} ${Fe} = ${_t};${this.opts._n}`;else{if(!(_t=ze?.(Fe)))throw new o(Fe);vt=g._`${vt}${_t}${this.opts._n}`}de.set(Fe,V.Completed)})}return vt}}},1224:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.extendErrors=J.resetErrorsCount=J.reportExtraError=J.reportError=J.keyword$DataError=J.keywordError=void 0;const g=F(6033),o=F(9455),V=F(395);function be(de,Fe){const _t=de.const("err",Fe);de.if(g._`${V.default.vErrors} === null`,()=>de.assign(V.default.vErrors,g._`[${_t}]`),g._`${V.default.vErrors}.push(${_t})`),de.code(g._`${V.default.errors}++`)}function ge(de,Fe){const{gen:_t,validateName:at,schemaEnv:Be}=de;Be.$async?_t.throw(g._`new ${de.ValidationError}(${Fe})`):(_t.assign(g._`${at}.errors`,Fe),_t.return(!1))}J.keywordError={message:({keyword:de})=>g.str`must pass "${de}" keyword validation`},J.keyword$DataError={message:({keyword:de,schemaType:Fe})=>Fe?g.str`"${de}" keyword must be ${Fe} ($data)`:g.str`"${de}" keyword is invalid ($data)`},J.reportError=function oe(de,Fe=J.keywordError,_t,at){const{it:Be}=de,{gen:he,compositeRule:He,allErrors:Se}=Be,it=Ve(de,Fe,_t);at??(He||Se)?be(he,it):ge(Be,g._`[${it}]`)},J.reportExtraError=function De(de,Fe=J.keywordError,_t){const{it:at}=de,{gen:Be,compositeRule:he,allErrors:He}=at;be(Be,Ve(de,Fe,_t)),he||He||ge(at,V.default.vErrors)},J.resetErrorsCount=function pe(de,Fe){de.assign(V.default.errors,Fe),de.if(g._`${V.default.vErrors} !== null`,()=>de.if(Fe,()=>de.assign(g._`${V.default.vErrors}.length`,Fe),()=>de.assign(V.default.vErrors,null)))},J.extendErrors=function Ee({gen:de,keyword:Fe,schemaValue:_t,data:at,errsCount:Be,it:he}){if(void 0===Be)throw new Error("ajv implementation error");const He=de.name("err");de.forRange("i",Be,V.default.errors,Se=>{de.const(He,g._`${V.default.vErrors}[${Se}]`),de.if(g._`${He}.instancePath === undefined`,()=>de.assign(g._`${He}.instancePath`,(0,g.strConcat)(V.default.instancePath,he.errorPath))),de.assign(g._`${He}.schemaPath`,g.str`${he.errSchemaPath}/${Fe}`),he.opts.verbose&&(de.assign(g._`${He}.schema`,_t),de.assign(g._`${He}.data`,at))})};const Te={keyword:new g.Name("keyword"),schemaPath:new g.Name("schemaPath"),params:new g.Name("params"),propertyName:new g.Name("propertyName"),message:new g.Name("message"),schema:new g.Name("schema"),parentSchema:new g.Name("parentSchema")};function Ve(de,Fe,_t){const{createErrors:at}=de.it;return!1===at?g._`{}`:function ze(de,Fe,_t={}){const{gen:at,it:Be}=de,he=[vt(Be,_t),Re(de,_t)];return function tt(de,{params:Fe,message:_t},at){const{keyword:Be,data:he,schemaValue:He,it:Se}=de,{opts:it,propertyName:dt,topSchemaRef:jt,schemaPath:Wt}=Se;at.push([Te.keyword,Be],[Te.params,"function"==typeof Fe?Fe(de):Fe||g._`{}`]),it.messages&&at.push([Te.message,"function"==typeof _t?_t(de):_t]),it.verbose&&at.push([Te.schema,He],[Te.parentSchema,g._`${jt}${Wt}`],[V.default.data,he]),dt&&at.push([Te.propertyName,dt])}(de,Fe,he),at.object(...he)}(de,Fe,_t)}function vt({errorPath:de},{instancePath:Fe}){const _t=Fe?g.str`${de}${(0,o.getErrorPath)(Fe,o.Type.Str)}`:de;return[V.default.instancePath,(0,g.strConcat)(V.default.instancePath,_t)]}function Re({keyword:de,it:{errSchemaPath:Fe}},{schemaPath:_t,parentSchema:at}){let Be=at?Fe:g.str`${Fe}/${de}`;return _t&&(Be=g.str`${Be}${(0,o.getErrorPath)(_t,o.Type.Str)}`),[Te.schemaPath,Be]}},2431:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.resolveSchema=J.getCompilingSchema=J.resolveRef=J.compileSchema=J.SchemaEnv=void 0;const g=F(6033),o=F(8186),V=F(395),oe=F(9839),De=F(9455),pe=F(6038);class Ee{constructor(_t){var at;let Be;this.refs={},this.dynamicAnchors={},"object"==typeof _t.schema&&(Be=_t.schema),this.schema=_t.schema,this.schemaId=_t.schemaId,this.root=_t.root||this,this.baseId=null!==(at=_t.baseId)&&void 0!==at?at:(0,oe.normalizeId)(Be?.[_t.schemaId||"$id"]),this.schemaPath=_t.schemaPath,this.localRefs=_t.localRefs,this.meta=_t.meta,this.$async=Be?.$async,this.refs={}}}function be(Fe){const _t=Ve.call(this,Fe);if(_t)return _t;const at=(0,oe.getFullPath)(this.opts.uriResolver,Fe.root.baseId),{es5:Be,lines:he}=this.opts.code,{ownProperties:He}=this.opts,Se=new g.CodeGen(this.scope,{es5:Be,lines:he,ownProperties:He});let it;Fe.$async&&(it=Se.scopeValue("Error",{ref:o.default,code:g._`require("ajv/dist/runtime/validation_error").default`}));const dt=Se.scopeName("validate");Fe.validateName=dt;const jt={gen:Se,allErrors:this.opts.allErrors,data:V.default.data,parentData:V.default.parentData,parentDataProperty:V.default.parentDataProperty,dataNames:[V.default.data],dataPathArr:[g.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Se.scopeValue("schema",!0===this.opts.code.source?{ref:Fe.schema,code:(0,g.stringify)(Fe.schema)}:{ref:Fe.schema}),validateName:dt,ValidationError:it,schema:Fe.schema,schemaEnv:Fe,rootId:at,baseId:Fe.baseId||at,schemaPath:g.nil,errSchemaPath:Fe.schemaPath||(this.opts.jtd?"":"#"),errorPath:g._`""`,opts:this.opts,self:this};let Wt;try{this._compilations.add(Fe),(0,pe.validateFunctionCode)(jt),Se.optimize(this.opts.code.optimize);const wn=Se.toString();Wt=`${Se.scopeRefs(V.default.scope)}return ${wn}`,this.opts.code.process&&(Wt=this.opts.code.process(Wt,Fe));const di=new Function(`${V.default.self}`,`${V.default.scope}`,Wt)(this,this.scope.get());if(this.scope.value(dt,{ref:di}),di.errors=null,di.schema=Fe.schema,di.schemaEnv=Fe,Fe.$async&&(di.$async=!0),!0===this.opts.code.source&&(di.source={validateName:dt,validateCode:wn,scopeValues:Se._values}),this.opts.unevaluated){const{props:ai,items:Li}=jt;di.evaluated={props:ai instanceof g.Name?void 0:ai,items:Li instanceof g.Name?void 0:Li,dynamicProps:ai instanceof g.Name,dynamicItems:Li instanceof g.Name},di.source&&(di.source.evaluated=(0,g.stringify)(di.evaluated))}return Fe.validate=di,Fe}catch(wn){throw delete Fe.validate,delete Fe.validateName,Wt&&this.logger.error("Error compiling schema, function code:",Wt),wn}finally{this._compilations.delete(Fe)}}function Te(Fe){return(0,oe.inlineRef)(Fe.schema,this.opts.inlineRefs)?Fe.schema:Fe.validate?Fe:be.call(this,Fe)}function Ve(Fe){for(const _t of this._compilations)if(ze(_t,Fe))return _t}function ze(Fe,_t){return Fe.schema===_t.schema&&Fe.root===_t.root&&Fe.baseId===_t.baseId}function vt(Fe,_t){let at;for(;"string"==typeof(at=this.refs[_t]);)_t=at;return at||this.schemas[_t]||Re.call(this,Fe,_t)}function Re(Fe,_t){const at=this.opts.uriResolver.parse(_t),Be=(0,oe._getFullPath)(this.opts.uriResolver,at);let he=(0,oe.getFullPath)(this.opts.uriResolver,Fe.baseId,void 0);if(Object.keys(Fe.schema).length>0&&Be===he)return de.call(this,at,Fe);const He=(0,oe.normalizeId)(Be),Se=this.refs[He]||this.schemas[He];if("string"==typeof Se){const it=Re.call(this,Fe,Se);return"object"!=typeof it?.schema?void 0:de.call(this,at,it)}if("object"==typeof Se?.schema){if(Se.validate||be.call(this,Se),He===(0,oe.normalizeId)(_t)){const{schema:it}=Se,{schemaId:dt}=this.opts,jt=it[dt];return jt&&(he=(0,oe.resolveUrl)(this.opts.uriResolver,he,jt)),new Ee({schema:it,schemaId:dt,root:Fe,baseId:he})}return de.call(this,at,Se)}}J.SchemaEnv=Ee,J.compileSchema=be,J.resolveRef=function ge(Fe,_t,at){var Be;at=(0,oe.resolveUrl)(this.opts.uriResolver,_t,at);const he=Fe.refs[at];if(he)return he;let He=vt.call(this,Fe,at);if(void 0===He){const Se=null===(Be=Fe.localRefs)||void 0===Be?void 0:Be[at],{schemaId:it}=this.opts;Se&&(He=new Ee({schema:Se,schemaId:it,root:Fe,baseId:_t}))}return void 0!==He?Fe.refs[at]=Te.call(this,He):void 0},J.getCompilingSchema=Ve,J.resolveSchema=Re;const tt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function de(Fe,{baseId:_t,schema:at,root:Be}){var he;if("/"!==(null===(he=Fe.fragment)||void 0===he?void 0:he[0]))return;for(const it of Fe.fragment.slice(1).split("/")){if("boolean"==typeof at)return;const dt=at[(0,De.unescapeFragment)(it)];if(void 0===dt)return;const jt="object"==typeof(at=dt)&&at[this.opts.schemaId];!tt.has(it)&&jt&&(_t=(0,oe.resolveUrl)(this.opts.uriResolver,_t,jt))}let He;if("boolean"!=typeof at&&at.$ref&&!(0,De.schemaHasRulesButRef)(at,this.RULES)){const it=(0,oe.resolveUrl)(this.opts.uriResolver,_t,at.$ref);He=Re.call(this,Be,it)}const{schemaId:Se}=this.opts;return He=He||new Ee({schema:at,schemaId:Se,root:Be,baseId:_t}),He.schema!==He.root.schema?He:void 0}},395:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o={data:new g.Name("data"),valCxt:new g.Name("valCxt"),instancePath:new g.Name("instancePath"),parentData:new g.Name("parentData"),parentDataProperty:new g.Name("parentDataProperty"),rootData:new g.Name("rootData"),dynamicAnchors:new g.Name("dynamicAnchors"),vErrors:new g.Name("vErrors"),errors:new g.Name("errors"),this:new g.Name("this"),self:new g.Name("self"),scope:new g.Name("scope"),json:new g.Name("json"),jsonPos:new g.Name("jsonPos"),jsonLen:new g.Name("jsonLen"),jsonPart:new g.Name("jsonPart")};J.default=o},3115:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(9839);class o extends Error{constructor(oe,De,pe,Ee){super(Ee||`can't resolve reference ${pe} from id ${De}`),this.missingRef=(0,g.resolveUrl)(oe,De,pe),this.missingSchema=(0,g.normalizeId)((0,g.getFullPath)(oe,this.missingRef))}}J.default=o},9839:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getSchemaRefs=J.resolveUrl=J.normalizeId=J._getFullPath=J.getFullPath=J.inlineRef=void 0;const g=F(9455),o=F(7413),V=F(8574),oe=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);J.inlineRef=function De(de,Fe=!0){return"boolean"==typeof de||(!0===Fe?!Ee(de):!!Fe&&be(de)<=Fe)};const pe=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ee(de){for(const Fe in de){if(pe.has(Fe))return!0;const _t=de[Fe];if(Array.isArray(_t)&&_t.some(Ee)||"object"==typeof _t&&Ee(_t))return!0}return!1}function be(de){let Fe=0;for(const _t in de){if("$ref"===_t)return 1/0;if(Fe++,!oe.has(_t)&&("object"==typeof de[_t]&&(0,g.eachItem)(de[_t],at=>Fe+=be(at)),Fe===1/0))return 1/0}return Fe}function ge(de,Fe="",_t){!1!==_t&&(Fe=ze(Fe));const at=de.parse(Fe);return Te(de,at)}function Te(de,Fe){return de.serialize(Fe).split("#")[0]+"#"}J.getFullPath=ge,J._getFullPath=Te;const Ve=/#\/?$/;function ze(de){return de?de.replace(Ve,""):""}J.normalizeId=ze,J.resolveUrl=function vt(de,Fe,_t){return _t=ze(_t),de.resolve(Fe,_t)};const Re=/^[a-z_][-a-z0-9._]*$/i;J.getSchemaRefs=function tt(de,Fe){if("boolean"==typeof de)return{};const{schemaId:_t,uriResolver:at}=this.opts,Be=ze(de[_t]||Fe),he={"":Be},He=ge(at,Be,!1),Se={},it=new Set;return V(de,{allKeys:!0},(Wt,wn,Wn,di)=>{if(void 0===di)return;const ai=He+wn;let Li=he[di];function $i(ui){if(ui=ze(Li?(0,this.opts.uriResolver.resolve)(Li,ui):ui),it.has(ui))throw jt(ui);it.add(ui);let nt=this.refs[ui];return"string"==typeof nt&&(nt=this.refs[nt]),"object"==typeof nt?dt(Wt,nt.schema,ui):ui!==ze(ai)&&("#"===ui[0]?(dt(Wt,Se[ui],ui),Se[ui]=Wt):this.refs[ui]=ai),ui}function Hr(ui){if("string"==typeof ui){if(!Re.test(ui))throw new Error(`invalid anchor "${ui}"`);$i.call(this,`#${ui}`)}}"string"==typeof Wt[_t]&&(Li=$i.call(this,Wt[_t])),Hr.call(this,Wt.$anchor),Hr.call(this,Wt.$dynamicAnchor),he[wn]=Li}),Se;function dt(Wt,wn,Wn){if(void 0!==wn&&!o(Wt,wn))throw jt(Wn)}function jt(Wt){return new Error(`reference "${Wt}" resolves to more than one schema`)}}},5456:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getRules=J.isJSONType=void 0;const g=new Set(["string","number","integer","boolean","null","object","array"]);J.isJSONType=function o(oe){return"string"==typeof oe&&g.has(oe)},J.getRules=function V(){const oe={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...oe,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},oe.number,oe.string,oe.array,oe.object],post:{rules:[]},all:{},keywords:{}}}},9455:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.checkStrictMode=J.getErrorPath=J.Type=J.useFunc=J.setEvaluated=J.evaluatedPropsToName=J.mergeEvaluated=J.eachItem=J.unescapeJsonPointer=J.escapeJsonPointer=J.escapeFragment=J.unescapeFragment=J.schemaRefOrVal=J.schemaHasRulesButRef=J.schemaHasRules=J.checkUnknownRules=J.alwaysValidSchema=J.toHash=void 0;const g=F(6033),o=F(2004);function De(He,Se=He.schema){const{opts:it,self:dt}=He;if(!it.strictSchema||"boolean"==typeof Se)return;const jt=dt.RULES.keywords;for(const Wt in Se)jt[Wt]||he(He,`unknown keyword: "${Wt}"`)}function pe(He,Se){if("boolean"==typeof He)return!He;for(const it in He)if(Se[it])return!0;return!1}function Ve(He){return"number"==typeof He?`${He}`:He.replace(/~/g,"~0").replace(/\//g,"~1")}function ze(He){return He.replace(/~1/g,"/").replace(/~0/g,"~")}function Re({mergeNames:He,mergeToName:Se,mergeValues:it,resultToName:dt}){return(jt,Wt,wn,Wn)=>{const di=void 0===wn?Wt:wn instanceof g.Name?(Wt instanceof g.Name?He(jt,Wt,wn):Se(jt,Wt,wn),wn):Wt instanceof g.Name?(Se(jt,wn,Wt),Wt):it(Wt,wn);return Wn!==g.Name||di instanceof g.Name?di:dt(jt,di)}}function tt(He,Se){if(!0===Se)return He.var("props",!0);const it=He.var("props",g._`{}`);return void 0!==Se&&de(He,it,Se),it}function de(He,Se,it){Object.keys(it).forEach(dt=>He.assign(g._`${Se}${(0,g.getProperty)(dt)}`,!0))}J.toHash=function V(He){const Se={};for(const it of He)Se[it]=!0;return Se},J.alwaysValidSchema=function oe(He,Se){return"boolean"==typeof Se?Se:0===Object.keys(Se).length||(De(He,Se),!pe(Se,He.self.RULES.all))},J.checkUnknownRules=De,J.schemaHasRules=pe,J.schemaHasRulesButRef=function Ee(He,Se){if("boolean"==typeof He)return!He;for(const it in He)if("$ref"!==it&&Se.all[it])return!0;return!1},J.schemaRefOrVal=function be({topSchemaRef:He,schemaPath:Se},it,dt,jt){if(!jt){if("number"==typeof it||"boolean"==typeof it)return it;if("string"==typeof it)return g._`${it}`}return g._`${He}${Se}${(0,g.getProperty)(dt)}`},J.unescapeFragment=function ge(He){return ze(decodeURIComponent(He))},J.escapeFragment=function Te(He){return encodeURIComponent(Ve(He))},J.escapeJsonPointer=Ve,J.unescapeJsonPointer=ze,J.eachItem=function vt(He,Se){if(Array.isArray(He))for(const it of He)Se(it);else Se(He)},J.mergeEvaluated={props:Re({mergeNames:(He,Se,it)=>He.if(g._`${it} !== true && ${Se} !== undefined`,()=>{He.if(g._`${Se} === true`,()=>He.assign(it,!0),()=>He.assign(it,g._`${it} || {}`).code(g._`Object.assign(${it}, ${Se})`))}),mergeToName:(He,Se,it)=>He.if(g._`${it} !== true`,()=>{!0===Se?He.assign(it,!0):(He.assign(it,g._`${it} || {}`),de(He,it,Se))}),mergeValues:(He,Se)=>!0===He||{...He,...Se},resultToName:tt}),items:Re({mergeNames:(He,Se,it)=>He.if(g._`${it} !== true && ${Se} !== undefined`,()=>He.assign(it,g._`${Se} === true ? true : ${it} > ${Se} ? ${it} : ${Se}`)),mergeToName:(He,Se,it)=>He.if(g._`${it} !== true`,()=>He.assign(it,!0===Se||g._`${it} > ${Se} ? ${it} : ${Se}`)),mergeValues:(He,Se)=>!0===He||Math.max(He,Se),resultToName:(He,Se)=>He.var("items",Se)})},J.evaluatedPropsToName=tt,J.setEvaluated=de;const Fe={};J.useFunc=function _t(He,Se){return He.scopeValue("func",{ref:Se,code:Fe[Se.code]||(Fe[Se.code]=new o._Code(Se.code))})};var at=function(He){return He[He.Num=0]="Num",He[He.Str=1]="Str",He}(at||(J.Type=at={}));function he(He,Se,it=He.opts.strictSchema){if(it){if(Se=`strict mode: ${Se}`,!0===it)throw new Error(Se);He.self.logger.warn(Se)}}J.getErrorPath=function Be(He,Se,it){if(He instanceof g.Name){const dt=Se===at.Num;return it?dt?g._`"[" + ${He} + "]"`:g._`"['" + ${He} + "']"`:dt?g._`"/" + ${He}`:g._`"/" + ${He}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return it?(0,g.getProperty)(He).toString():"/"+Ve(He)},J.checkStrictMode=he},9083:(vn,J)=>{"use strict";function g(V,oe){return oe.rules.some(De=>o(V,De))}function o(V,oe){var De;return void 0!==V[oe.keyword]||(null===(De=oe.definition.implements)||void 0===De?void 0:De.some(pe=>void 0!==V[pe]))}Object.defineProperty(J,"__esModule",{value:!0}),J.shouldUseRule=J.shouldUseGroup=J.schemaHasRulesForType=void 0,J.schemaHasRulesForType=function F({schema:V,self:oe},De){const pe=oe.RULES.types[De];return pe&&!0!==pe&&g(V,pe)},J.shouldUseGroup=g,J.shouldUseRule=o},8123:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.boolOrEmptySchema=J.topBoolOrEmptySchema=void 0;const g=F(1224),o=F(6033),V=F(395),oe={message:"boolean schema is false"};function Ee(be,ge){const{gen:Te,data:Ve}=be;(0,g.reportError)({gen:Te,keyword:"false schema",data:Ve,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:be},oe,void 0,ge)}J.topBoolOrEmptySchema=function De(be){const{gen:ge,schema:Te,validateName:Ve}=be;!1===Te?Ee(be,!1):"object"==typeof Te&&!0===Te.$async?ge.return(V.default.data):(ge.assign(o._`${Ve}.errors`,null),ge.return(!0))},J.boolOrEmptySchema=function pe(be,ge){const{gen:Te,schema:Ve}=be;!1===Ve?(Te.var(ge,!1),Ee(be)):Te.var(ge,!0)}},5404:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.reportTypeError=J.checkDataTypes=J.checkDataType=J.coerceAndCheckDataType=J.getJSONTypes=J.getSchemaTypes=J.DataType=void 0;const g=F(5456),o=F(9083),V=F(1224),oe=F(6033),De=F(9455);var pe=function(at){return at[at.Correct=0]="Correct",at[at.Wrong=1]="Wrong",at}(pe||(J.DataType=pe={}));function be(at){const Be=Array.isArray(at)?at:at?[at]:[];if(Be.every(g.isJSONType))return Be;throw new Error("type must be JSONType or JSONType[]: "+Be.join(","))}J.getSchemaTypes=function Ee(at){const Be=be(at.type);if(Be.includes("null")){if(!1===at.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!Be.length&&void 0!==at.nullable)throw new Error('"nullable" cannot be used without "type"');!0===at.nullable&&Be.push("null")}return Be},J.getJSONTypes=be,J.coerceAndCheckDataType=function ge(at,Be){const{gen:he,data:He,opts:Se}=at,it=function Ve(at,Be){return Be?at.filter(he=>Te.has(he)||"array"===Be&&"array"===he):[]}(Be,Se.coerceTypes),dt=Be.length>0&&!(0===it.length&&1===Be.length&&(0,o.schemaHasRulesForType)(at,Be[0]));if(dt){const jt=tt(Be,He,Se.strictNumbers,pe.Wrong);he.if(jt,()=>{it.length?function ze(at,Be,he){const{gen:He,data:Se,opts:it}=at,dt=He.let("dataType",oe._`typeof ${Se}`),jt=He.let("coerced",oe._`undefined`);"array"===it.coerceTypes&&He.if(oe._`${dt} == 'object' && Array.isArray(${Se}) && ${Se}.length == 1`,()=>He.assign(Se,oe._`${Se}[0]`).assign(dt,oe._`typeof ${Se}`).if(tt(Be,Se,it.strictNumbers),()=>He.assign(jt,Se))),He.if(oe._`${jt} !== undefined`);for(const wn of he)(Te.has(wn)||"array"===wn&&"array"===it.coerceTypes)&&Wt(wn);function Wt(wn){switch(wn){case"string":return void He.elseIf(oe._`${dt} == "number" || ${dt} == "boolean"`).assign(jt,oe._`"" + ${Se}`).elseIf(oe._`${Se} === null`).assign(jt,oe._`""`);case"number":return void He.elseIf(oe._`${dt} == "boolean" || ${Se} === null + || (${dt} == "string" && ${Se} && ${Se} == +${Se})`).assign(jt,oe._`+${Se}`);case"integer":return void He.elseIf(oe._`${dt} === "boolean" || ${Se} === null + || (${dt} === "string" && ${Se} && ${Se} == +${Se} && !(${Se} % 1))`).assign(jt,oe._`+${Se}`);case"boolean":return void He.elseIf(oe._`${Se} === "false" || ${Se} === 0 || ${Se} === null`).assign(jt,!1).elseIf(oe._`${Se} === "true" || ${Se} === 1`).assign(jt,!0);case"null":return He.elseIf(oe._`${Se} === "" || ${Se} === 0 || ${Se} === false`),void He.assign(jt,null);case"array":He.elseIf(oe._`${dt} === "string" || ${dt} === "number" + || ${dt} === "boolean" || ${Se} === null`).assign(jt,oe._`[${Se}]`)}}He.else(),Fe(at),He.endIf(),He.if(oe._`${jt} !== undefined`,()=>{He.assign(Se,jt),function vt({gen:at,parentData:Be,parentDataProperty:he},He){at.if(oe._`${Be} !== undefined`,()=>at.assign(oe._`${Be}[${he}]`,He))}(at,jt)})}(at,Be,it):Fe(at)})}return dt};const Te=new Set(["string","number","integer","boolean","null"]);function Re(at,Be,he,He=pe.Correct){const Se=He===pe.Correct?oe.operators.EQ:oe.operators.NEQ;let it;switch(at){case"null":return oe._`${Be} ${Se} null`;case"array":it=oe._`Array.isArray(${Be})`;break;case"object":it=oe._`${Be} && typeof ${Be} == "object" && !Array.isArray(${Be})`;break;case"integer":it=dt(oe._`!(${Be} % 1) && !isNaN(${Be})`);break;case"number":it=dt();break;default:return oe._`typeof ${Be} ${Se} ${at}`}return He===pe.Correct?it:(0,oe.not)(it);function dt(jt=oe.nil){return(0,oe.and)(oe._`typeof ${Be} == "number"`,jt,he?oe._`isFinite(${Be})`:oe.nil)}}function tt(at,Be,he,He){if(1===at.length)return Re(at[0],Be,he,He);let Se;const it=(0,De.toHash)(at);if(it.array&&it.object){const dt=oe._`typeof ${Be} != "object"`;Se=it.null?dt:oe._`!${Be} || ${dt}`,delete it.null,delete it.array,delete it.object}else Se=oe.nil;it.number&&delete it.integer;for(const dt in it)Se=(0,oe.and)(Se,Re(dt,Be,he,He));return Se}J.checkDataType=Re,J.checkDataTypes=tt;const de={message:({schema:at})=>`must be ${at}`,params:({schema:at,schemaValue:Be})=>"string"==typeof at?oe._`{type: ${at}}`:oe._`{type: ${Be}}`};function Fe(at){const Be=function _t(at){const{gen:Be,data:he,schema:He}=at,Se=(0,De.schemaRefOrVal)(at,He,"type");return{gen:Be,keyword:"type",data:he,schema:He.type,schemaCode:Se,schemaValue:Se,parentSchema:He,params:{},it:at}}(at);(0,V.reportError)(Be,de)}J.reportTypeError=Fe},794:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.assignDefaults=void 0;const g=F(6033),o=F(9455);function oe(De,pe,Ee){const{gen:be,compositeRule:ge,data:Te,opts:Ve}=De;if(void 0===Ee)return;const ze=g._`${Te}${(0,g.getProperty)(pe)}`;if(ge)return void(0,o.checkStrictMode)(De,`default is ignored for: ${ze}`);let vt=g._`${ze} === undefined`;"empty"===Ve.useDefaults&&(vt=g._`${vt} || ${ze} === null || ${ze} === ""`),be.if(vt,g._`${ze} = ${(0,g.stringify)(Ee)}`)}J.assignDefaults=function V(De,pe){const{properties:Ee,items:be}=De.schema;if("object"===pe&&Ee)for(const ge in Ee)oe(De,ge,Ee[ge].default);else"array"===pe&&Array.isArray(be)&&be.forEach((ge,Te)=>oe(De,Te,ge.default))}},6038:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getData=J.KeywordCxt=J.validateFunctionCode=void 0;const g=F(8123),o=F(5404),V=F(9083),oe=F(5404),De=F(794),pe=F(3885),Ee=F(1483),be=F(6033),ge=F(395),Te=F(9839),Ve=F(9455),ze=F(1224);function Re({gen:rt,validateName:xt,schema:Gt,schemaEnv:xn,opts:In},xi){In.code.es5?rt.func(xt,be._`${ge.default.data}, ${ge.default.valCxt}`,xn.$async,()=>{rt.code(be._`"use strict"; ${at(Gt,In)}`),function de(rt,xt){rt.if(ge.default.valCxt,()=>{rt.var(ge.default.instancePath,be._`${ge.default.valCxt}.${ge.default.instancePath}`),rt.var(ge.default.parentData,be._`${ge.default.valCxt}.${ge.default.parentData}`),rt.var(ge.default.parentDataProperty,be._`${ge.default.valCxt}.${ge.default.parentDataProperty}`),rt.var(ge.default.rootData,be._`${ge.default.valCxt}.${ge.default.rootData}`),xt.dynamicRef&&rt.var(ge.default.dynamicAnchors,be._`${ge.default.valCxt}.${ge.default.dynamicAnchors}`)},()=>{rt.var(ge.default.instancePath,be._`""`),rt.var(ge.default.parentData,be._`undefined`),rt.var(ge.default.parentDataProperty,be._`undefined`),rt.var(ge.default.rootData,ge.default.data),xt.dynamicRef&&rt.var(ge.default.dynamicAnchors,be._`{}`)})}(rt,In),rt.code(xi)}):rt.func(xt,be._`${ge.default.data}, ${function tt(rt){return be._`{${ge.default.instancePath}="", ${ge.default.parentData}, ${ge.default.parentDataProperty}, ${ge.default.rootData}=${ge.default.data}${rt.dynamicRef?be._`, ${ge.default.dynamicAnchors}={}`:be.nil}}={}`}(In)}`,xn.$async,()=>rt.code(at(Gt,In)).code(xi))}function at(rt,xt){const Gt="object"==typeof rt&&rt[xt.schemaId];return Gt&&(xt.code.source||xt.code.process)?be._`/*# sourceURL=${Gt} */`:be.nil}function he({schema:rt,self:xt}){if("boolean"==typeof rt)return!rt;for(const Gt in rt)if(xt.RULES.all[Gt])return!0;return!1}function He(rt){return"boolean"!=typeof rt.schema}function it(rt){(0,Ve.checkUnknownRules)(rt),function jt(rt){const{schema:xt,errSchemaPath:Gt,opts:xn,self:In}=rt;xt.$ref&&xn.ignoreKeywordsWithRef&&(0,Ve.schemaHasRulesButRef)(xt,In.RULES)&&In.logger.warn(`$ref: keywords ignored in schema at path "${Gt}"`)}(rt)}function dt(rt,xt){if(rt.opts.jtd)return $i(rt,[],!1,xt);const Gt=(0,o.getSchemaTypes)(rt.schema);$i(rt,Gt,!(0,o.coerceAndCheckDataType)(rt,Gt),xt)}function di({gen:rt,schemaEnv:xt,schema:Gt,errSchemaPath:xn,opts:In}){const xi=Gt.$comment;if(!0===In.$comment)rt.code(be._`${ge.default.self}.logger.log(${xi})`);else if("function"==typeof In.$comment){const or=be.str`${xn}/$comment`,ci=rt.scopeValue("root",{ref:xt.root});rt.code(be._`${ge.default.self}.opts.$comment(${xi}, ${or}, ${ci}.schema)`)}}function $i(rt,xt,Gt,xn){const{gen:In,schema:xi,data:or,allErrors:ci,opts:Dr,self:Tr}=rt,{RULES:cn}=Tr;function On(Qn){(0,V.shouldUseGroup)(xi,Qn)&&(Qn.type?(In.if((0,oe.checkDataType)(Qn.type,or,Dr.strictNumbers)),Hr(rt,Qn),1===xt.length&&xt[0]===Qn.type&&Gt&&(In.else(),(0,oe.reportTypeError)(rt)),In.endIf()):Hr(rt,Qn),ci||In.if(be._`${ge.default.errors} === ${xn||0}`))}!xi.$ref||!Dr.ignoreKeywordsWithRef&&(0,Ve.schemaHasRulesButRef)(xi,cn)?(Dr.jtd||function ui(rt,xt){rt.schemaEnv.meta||!rt.opts.strictTypes||(function dn(rt,xt){if(xt.length){if(!rt.dataTypes.length)return void(rt.dataTypes=xt);xt.forEach(Gt=>{Ae(rt.dataTypes,Gt)||Ze(rt,`type "${Gt}" not allowed by context "${rt.dataTypes.join(",")}"`)}),function Ue(rt,xt){const Gt=[];for(const xn of rt.dataTypes)Ae(xt,xn)?Gt.push(xn):xt.includes("integer")&&"number"===xn&&Gt.push("integer");rt.dataTypes=Gt}(rt,xt)}}(rt,xt),rt.opts.allowUnionTypes||function nt(rt,xt){xt.length>1&&(2!==xt.length||!xt.includes("null"))&&Ze(rt,"use allowUnionTypes to allow union type keyword")}(rt,xt),function ht(rt,xt){const Gt=rt.self.RULES.all;for(const xn in Gt){const In=Gt[xn];if("object"==typeof In&&(0,V.shouldUseRule)(rt.schema,In)){const{type:xi}=In.definition;xi.length&&!xi.some(or=>Je(xt,or))&&Ze(rt,`missing type "${xi.join(",")}" for keyword "${xn}"`)}}}(rt,rt.dataTypes))}(rt,xt),In.block(()=>{for(const Qn of cn.rules)On(Qn);On(cn.post)})):In.block(()=>te(rt,"$ref",cn.all.$ref.definition))}function Hr(rt,xt){const{gen:Gt,schema:xn,opts:{useDefaults:In}}=rt;In&&(0,De.assignDefaults)(rt,xt.type),Gt.block(()=>{for(const xi of xt.rules)(0,V.shouldUseRule)(xn,xi)&&te(rt,xi.keyword,xi.definition,xt.type)})}function Je(rt,xt){return rt.includes(xt)||"number"===xt&&rt.includes("integer")}function Ae(rt,xt){return rt.includes(xt)||"integer"===xt&&rt.includes("number")}function Ze(rt,xt){(0,Ve.checkStrictMode)(rt,xt+=` at "${rt.schemaEnv.baseId+rt.errSchemaPath}" (strictTypes)`,rt.opts.strictTypes)}J.validateFunctionCode=function vt(rt){He(rt)&&(it(rt),he(rt))?function Fe(rt){const{schema:xt,opts:Gt,gen:xn}=rt;Re(rt,()=>{Gt.$comment&&xt.$comment&&di(rt),function Wt(rt){const{schema:xt,opts:Gt}=rt;void 0!==xt.default&&Gt.useDefaults&&Gt.strictSchema&&(0,Ve.checkStrictMode)(rt,"default is ignored in the schema root")}(rt),xn.let(ge.default.vErrors,null),xn.let(ge.default.errors,0),Gt.unevaluated&&function _t(rt){const{gen:xt,validateName:Gt}=rt;rt.evaluated=xt.const("evaluated",be._`${Gt}.evaluated`),xt.if(be._`${rt.evaluated}.dynamicProps`,()=>xt.assign(be._`${rt.evaluated}.props`,be._`undefined`)),xt.if(be._`${rt.evaluated}.dynamicItems`,()=>xt.assign(be._`${rt.evaluated}.items`,be._`undefined`))}(rt),dt(rt),function ai(rt){const{gen:xt,schemaEnv:Gt,validateName:xn,ValidationError:In,opts:xi}=rt;Gt.$async?xt.if(be._`${ge.default.errors} === 0`,()=>xt.return(ge.default.data),()=>xt.throw(be._`new ${In}(${ge.default.vErrors})`)):(xt.assign(be._`${xn}.errors`,ge.default.vErrors),xi.unevaluated&&function Li({gen:rt,evaluated:xt,props:Gt,items:xn}){Gt instanceof be.Name&&rt.assign(be._`${xt}.props`,Gt),xn instanceof be.Name&&rt.assign(be._`${xt}.items`,xn)}(rt),xt.return(be._`${ge.default.errors} === 0`))}(rt)})}(rt):Re(rt,()=>(0,g.topBoolOrEmptySchema)(rt))};class H{constructor(xt,Gt,xn){if((0,pe.validateKeywordUsage)(xt,Gt,xn),this.gen=xt.gen,this.allErrors=xt.allErrors,this.keyword=xn,this.data=xt.data,this.schema=xt.schema[xn],this.$data=Gt.$data&&xt.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ve.schemaRefOrVal)(xt,this.schema,xn,this.$data),this.schemaType=Gt.schemaType,this.parentSchema=xt.schema,this.params={},this.it=xt,this.def=Gt,this.$data)this.schemaCode=xt.gen.const("vSchema",zt(this.$data,xt));else if(this.schemaCode=this.schemaValue,!(0,pe.validSchemaType)(this.schema,Gt.schemaType,Gt.allowUndefined))throw new Error(`${xn} value must be ${JSON.stringify(Gt.schemaType)}`);("code"in Gt?Gt.trackErrors:!1!==Gt.errors)&&(this.errsCount=xt.gen.const("_errs",ge.default.errors))}result(xt,Gt,xn){this.failResult((0,be.not)(xt),Gt,xn)}failResult(xt,Gt,xn){this.gen.if(xt),xn?xn():this.error(),Gt?(this.gen.else(),Gt(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(xt,Gt){this.failResult((0,be.not)(xt),void 0,Gt)}fail(xt){if(void 0===xt)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(xt),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(xt){if(!this.$data)return this.fail(xt);const{schemaCode:Gt}=this;this.fail(be._`${Gt} !== undefined && (${(0,be.or)(this.invalid$data(),xt)})`)}error(xt,Gt,xn){if(Gt)return this.setParams(Gt),this._error(xt,xn),void this.setParams({});this._error(xt,xn)}_error(xt,Gt){(xt?ze.reportExtraError:ze.reportError)(this,this.def.error,Gt)}$dataError(){(0,ze.reportError)(this,this.def.$dataError||ze.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,ze.resetErrorsCount)(this.gen,this.errsCount)}ok(xt){this.allErrors||this.gen.if(xt)}setParams(xt,Gt){Gt?Object.assign(this.params,xt):this.params=xt}block$data(xt,Gt,xn=be.nil){this.gen.block(()=>{this.check$data(xt,xn),Gt()})}check$data(xt=be.nil,Gt=be.nil){if(!this.$data)return;const{gen:xn,schemaCode:In,schemaType:xi,def:or}=this;xn.if((0,be.or)(be._`${In} === undefined`,Gt)),xt!==be.nil&&xn.assign(xt,!0),(xi.length||or.validateSchema)&&(xn.elseIf(this.invalid$data()),this.$dataError(),xt!==be.nil&&xn.assign(xt,!1)),xn.else()}invalid$data(){const{gen:xt,schemaCode:Gt,schemaType:xn,def:In,it:xi}=this;return(0,be.or)(function or(){if(xn.length){if(!(Gt instanceof be.Name))throw new Error("ajv implementation error");const Dr=Array.isArray(xn)?xn:[xn];return be._`${(0,oe.checkDataTypes)(Dr,Gt,xi.opts.strictNumbers,oe.DataType.Wrong)}`}return be.nil}(),function ci(){if(In.validateSchema){const Dr=xt.scopeValue("validate$data",{ref:In.validateSchema});return be._`!${Dr}(${Gt})`}return be.nil}())}subschema(xt,Gt){const xn=(0,Ee.getSubschema)(this.it,xt);(0,Ee.extendSubschemaData)(xn,this.it,xt),(0,Ee.extendSubschemaMode)(xn,xt);const In={...this.it,...xn,items:void 0,props:void 0};return function Be(rt,xt){He(rt)&&(it(rt),he(rt))?function Se(rt,xt){const{schema:Gt,gen:xn,opts:In}=rt;In.$comment&&Gt.$comment&&di(rt),function wn(rt){const xt=rt.schema[rt.opts.schemaId];xt&&(rt.baseId=(0,Te.resolveUrl)(rt.opts.uriResolver,rt.baseId,xt))}(rt),function Wn(rt){if(rt.schema.$async&&!rt.schemaEnv.$async)throw new Error("async schema in sync schema")}(rt);const xi=xn.const("_errs",ge.default.errors);dt(rt,xi),xn.var(xt,be._`${xi} === ${ge.default.errors}`)}(rt,xt):(0,g.boolOrEmptySchema)(rt,xt)}(In,Gt),In}mergeEvaluated(xt,Gt){const{it:xn,gen:In}=this;xn.opts.unevaluated&&(!0!==xn.props&&void 0!==xt.props&&(xn.props=Ve.mergeEvaluated.props(In,xt.props,xn.props,Gt)),!0!==xn.items&&void 0!==xt.items&&(xn.items=Ve.mergeEvaluated.items(In,xt.items,xn.items,Gt)))}mergeValidEvaluated(xt,Gt){const{it:xn,gen:In}=this;if(xn.opts.unevaluated&&(!0!==xn.props||!0!==xn.items))return In.if(Gt,()=>this.mergeEvaluated(xt,be.Name)),!0}}function te(rt,xt,Gt,xn){const In=new H(rt,Gt,xt);"code"in Gt?Gt.code(In,xn):In.$data&&Gt.validate?(0,pe.funcKeywordCode)(In,Gt):"macro"in Gt?(0,pe.macroKeywordCode)(In,Gt):(Gt.compile||Gt.validate)&&(0,pe.funcKeywordCode)(In,Gt)}J.KeywordCxt=H;const xe=/^\/(?:[^~]|~0|~1)*$/,Ce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function zt(rt,{dataLevel:xt,dataNames:Gt,dataPathArr:xn}){let In,xi;if(""===rt)return ge.default.rootData;if("/"===rt[0]){if(!xe.test(rt))throw new Error(`Invalid JSON-pointer: ${rt}`);In=rt,xi=ge.default.rootData}else{const Tr=Ce.exec(rt);if(!Tr)throw new Error(`Invalid JSON-pointer: ${rt}`);const cn=+Tr[1];if(In=Tr[2],"#"===In){if(cn>=xt)throw new Error(Dr("property/index",cn));return xn[xt-cn]}if(cn>xt)throw new Error(Dr("data",cn));if(xi=Gt[xt-cn],!In)return xi}let or=xi;const ci=In.split("/");for(const Tr of ci)Tr&&(xi=be._`${xi}${(0,be.getProperty)((0,Ve.unescapeJsonPointer)(Tr))}`,or=be._`${or} && ${xi}`);return or;function Dr(Tr,cn){return`Cannot access ${Tr} ${cn} levels up, current level is ${xt}`}}J.getData=zt},3885:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateKeywordUsage=J.validSchemaType=J.funcKeywordCode=J.macroKeywordCode=void 0;const g=F(6033),o=F(395),V=F(4737),oe=F(1224);function Ee(vt){const{gen:Re,data:tt,it:de}=vt;Re.if(de.parentData,()=>Re.assign(tt,g._`${de.parentData}[${de.parentDataProperty}]`))}function Te(vt,Re,tt){if(void 0===tt)throw new Error(`keyword "${Re}" failed to compile`);return vt.scopeValue("keyword","function"==typeof tt?{ref:tt}:{ref:tt,code:(0,g.stringify)(tt)})}J.macroKeywordCode=function De(vt,Re){const{gen:tt,keyword:de,schema:Fe,parentSchema:_t,it:at}=vt,Be=Re.macro.call(at.self,Fe,_t,at),he=Te(tt,de,Be);!1!==at.opts.validateSchema&&at.self.validateSchema(Be,!0);const He=tt.name("valid");vt.subschema({schema:Be,schemaPath:g.nil,errSchemaPath:`${at.errSchemaPath}/${de}`,topSchemaRef:he,compositeRule:!0},He),vt.pass(He,()=>vt.error(!0))},J.funcKeywordCode=function pe(vt,Re){var tt;const{gen:de,keyword:Fe,schema:_t,parentSchema:at,$data:Be,it:he}=vt;!function ge({schemaEnv:vt},Re){if(Re.async&&!vt.$async)throw new Error("async keyword in sync schema")}(he,Re);const He=!Be&&Re.compile?Re.compile.call(he.self,_t,at,he):Re.validate,Se=Te(de,Fe,He),it=de.let("valid");function wn(di=(Re.async?g._`await `:g.nil)){de.assign(it,g._`${di}${(0,V.callValidateCode)(vt,Se,he.opts.passContext?o.default.this:o.default.self,!("compile"in Re&&!Be||!1===Re.schema))}`,Re.modifying)}function Wn(di){var ai;de.if((0,g.not)(null!==(ai=Re.valid)&&void 0!==ai?ai:it),di)}vt.block$data(it,function dt(){if(!1===Re.errors)wn(),Re.modifying&&Ee(vt),Wn(()=>vt.error());else{const di=Re.async?function jt(){const di=de.let("ruleErrs",null);return de.try(()=>wn(g._`await `),ai=>de.assign(it,!1).if(g._`${ai} instanceof ${he.ValidationError}`,()=>de.assign(di,g._`${ai}.errors`),()=>de.throw(ai))),di}():function Wt(){const di=g._`${Se}.errors`;return de.assign(di,null),wn(g.nil),di}();Re.modifying&&Ee(vt),Wn(()=>function be(vt,Re){const{gen:tt}=vt;tt.if(g._`Array.isArray(${Re})`,()=>{tt.assign(o.default.vErrors,g._`${o.default.vErrors} === null ? ${Re} : ${o.default.vErrors}.concat(${Re})`).assign(o.default.errors,g._`${o.default.vErrors}.length`),(0,oe.extendErrors)(vt)},()=>vt.error())}(vt,di))}}),vt.ok(null!==(tt=Re.valid)&&void 0!==tt?tt:it)},J.validSchemaType=function Ve(vt,Re,tt=!1){return!Re.length||Re.some(de=>"array"===de?Array.isArray(vt):"object"===de?vt&&"object"==typeof vt&&!Array.isArray(vt):typeof vt==de||tt&&typeof vt>"u")},J.validateKeywordUsage=function ze({schema:vt,opts:Re,self:tt,errSchemaPath:de},Fe,_t){if(Array.isArray(Fe.keyword)?!Fe.keyword.includes(_t):Fe.keyword!==_t)throw new Error("ajv implementation error");const at=Fe.dependencies;if(at?.some(Be=>!Object.prototype.hasOwnProperty.call(vt,Be)))throw new Error(`parent schema must have dependencies of ${_t}: ${at.join(",")}`);if(Fe.validateSchema&&!Fe.validateSchema(vt[_t])){const he=`keyword "${_t}" value is invalid at path "${de}": `+tt.errorsText(Fe.validateSchema.errors);if("log"!==Re.validateSchema)throw new Error(he);tt.logger.error(he)}}},1483:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.extendSubschemaMode=J.extendSubschemaData=J.getSubschema=void 0;const g=F(6033),o=F(9455);J.getSubschema=function V(pe,{keyword:Ee,schemaProp:be,schema:ge,schemaPath:Te,errSchemaPath:Ve,topSchemaRef:ze}){if(void 0!==Ee&&void 0!==ge)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==Ee){const vt=pe.schema[Ee];return void 0===be?{schema:vt,schemaPath:g._`${pe.schemaPath}${(0,g.getProperty)(Ee)}`,errSchemaPath:`${pe.errSchemaPath}/${Ee}`}:{schema:vt[be],schemaPath:g._`${pe.schemaPath}${(0,g.getProperty)(Ee)}${(0,g.getProperty)(be)}`,errSchemaPath:`${pe.errSchemaPath}/${Ee}/${(0,o.escapeFragment)(be)}`}}if(void 0!==ge){if(void 0===Te||void 0===Ve||void 0===ze)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:ge,schemaPath:Te,topSchemaRef:ze,errSchemaPath:Ve}}throw new Error('either "keyword" or "schema" must be passed')},J.extendSubschemaData=function oe(pe,Ee,{dataProp:be,dataPropType:ge,data:Te,dataTypes:Ve,propertyName:ze}){if(void 0!==Te&&void 0!==be)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:vt}=Ee;if(void 0!==be){const{errorPath:tt,dataPathArr:de,opts:Fe}=Ee;Re(vt.let("data",g._`${Ee.data}${(0,g.getProperty)(be)}`,!0)),pe.errorPath=g.str`${tt}${(0,o.getErrorPath)(be,ge,Fe.jsPropertySyntax)}`,pe.parentDataProperty=g._`${be}`,pe.dataPathArr=[...de,pe.parentDataProperty]}function Re(tt){pe.data=tt,pe.dataLevel=Ee.dataLevel+1,pe.dataTypes=[],Ee.definedProperties=new Set,pe.parentData=Ee.data,pe.dataNames=[...Ee.dataNames,tt]}void 0!==Te&&(Re(Te instanceof g.Name?Te:vt.let("data",Te,!0)),void 0!==ze&&(pe.propertyName=ze)),Ve&&(pe.dataTypes=Ve)},J.extendSubschemaMode=function De(pe,{jtdDiscriminator:Ee,jtdMetadata:be,compositeRule:ge,createErrors:Te,allErrors:Ve}){void 0!==ge&&(pe.compositeRule=ge),void 0!==Te&&(pe.createErrors=Te),void 0!==Ve&&(pe.allErrors=Ve),pe.jtdDiscriminator=Ee,pe.jtdMetadata=be}},3078:(vn,J,F)=>{"use strict";var g=F(4510).default;Object.defineProperty(J,"__esModule",{value:!0}),J.CodeGen=J.Name=J.nil=J.stringify=J.str=J._=J.KeywordCxt=void 0;var o=F(6038);Object.defineProperty(J,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var V=F(6033);Object.defineProperty(J,"_",{enumerable:!0,get:function(){return V._}}),Object.defineProperty(J,"str",{enumerable:!0,get:function(){return V.str}}),Object.defineProperty(J,"stringify",{enumerable:!0,get:function(){return V.stringify}}),Object.defineProperty(J,"nil",{enumerable:!0,get:function(){return V.nil}}),Object.defineProperty(J,"Name",{enumerable:!0,get:function(){return V.Name}}),Object.defineProperty(J,"CodeGen",{enumerable:!0,get:function(){return V.CodeGen}});const oe=F(8186),De=F(3115),pe=F(5456),Ee=F(2431),be=F(6033),ge=F(9839),Te=F(5404),Ve=F(9455),ze=F(3837),vt=F(3572),Re=(nt,ht)=>new RegExp(nt,ht);Re.code="new RegExp";const tt=["removeAdditional","useDefaults","coerceTypes"],de=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Fe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_t={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function Be(nt){var ht,Je,Ae,Ue,Ze,H,te,xe,Ce,zt,rt,xt,Gt,xn,In,xi,or,ci,Dr,Tr,cn,On,Qn,fi,qe;const Mt=nt.strict,Bt=null===(ht=nt.code)||void 0===ht?void 0:ht.optimize,hn=!0===Bt||void 0===Bt?1:Bt||0,Mn=null!==(Ae=null===(Je=nt.code)||void 0===Je?void 0:Je.regExp)&&void 0!==Ae?Ae:Re,Vi=null!==(Ue=nt.uriResolver)&&void 0!==Ue?Ue:vt.default;return{strictSchema:null===(H=null!==(Ze=nt.strictSchema)&&void 0!==Ze?Ze:Mt)||void 0===H||H,strictNumbers:null===(xe=null!==(te=nt.strictNumbers)&&void 0!==te?te:Mt)||void 0===xe||xe,strictTypes:null!==(zt=null!==(Ce=nt.strictTypes)&&void 0!==Ce?Ce:Mt)&&void 0!==zt?zt:"log",strictTuples:null!==(xt=null!==(rt=nt.strictTuples)&&void 0!==rt?rt:Mt)&&void 0!==xt?xt:"log",strictRequired:null!==(xn=null!==(Gt=nt.strictRequired)&&void 0!==Gt?Gt:Mt)&&void 0!==xn&&xn,code:nt.code?{...nt.code,optimize:hn,regExp:Mn}:{optimize:hn,regExp:Mn},loopRequired:null!==(In=nt.loopRequired)&&void 0!==In?In:200,loopEnum:null!==(xi=nt.loopEnum)&&void 0!==xi?xi:200,meta:null===(or=nt.meta)||void 0===or||or,messages:null===(ci=nt.messages)||void 0===ci||ci,inlineRefs:null===(Dr=nt.inlineRefs)||void 0===Dr||Dr,schemaId:null!==(Tr=nt.schemaId)&&void 0!==Tr?Tr:"$id",addUsedSchema:null===(cn=nt.addUsedSchema)||void 0===cn||cn,validateSchema:null===(On=nt.validateSchema)||void 0===On||On,validateFormats:null===(Qn=nt.validateFormats)||void 0===Qn||Qn,unicodeRegExp:null===(fi=nt.unicodeRegExp)||void 0===fi||fi,int32range:null===(qe=nt.int32range)||void 0===qe||qe,uriResolver:Vi}}class he{constructor(ht={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,ht=this.opts={...ht,...Be(ht)};const{es5:Je,lines:Ae}=this.opts.code;this.scope=new be.ValueScope({scope:{},prefixes:de,es5:Je,lines:Ae}),this.logger=function Wn(nt){if(!1===nt)return wn;if(void 0===nt)return console;if(nt.log&&nt.warn&&nt.error)return nt;throw new Error("logger must implement log, warn and error methods")}(ht.logger);const Ue=ht.validateFormats;ht.validateFormats=!1,this.RULES=(0,pe.getRules)(),He.call(this,Fe,ht,"NOT SUPPORTED"),He.call(this,_t,ht,"DEPRECATED","warn"),this._metaOpts=Wt.call(this),ht.formats&&dt.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),ht.keywords&&jt.call(this,ht.keywords),"object"==typeof ht.meta&&this.addMetaSchema(ht.meta),it.call(this),ht.validateFormats=Ue}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:ht,meta:Je,schemaId:Ae}=this.opts;let Ue=ze;"id"===Ae&&(Ue={...ze},Ue.id=Ue.$id,delete Ue.$id),Je&&ht&&this.addMetaSchema(Ue,Ue[Ae],!1)}defaultMeta(){const{meta:ht,schemaId:Je}=this.opts;return this.opts.defaultMeta="object"==typeof ht?ht[Je]||ht:void 0}validate(ht,Je){let Ae;if("string"==typeof ht){if(Ae=this.getSchema(ht),!Ae)throw new Error(`no schema with key or ref "${ht}"`)}else Ae=this.compile(ht);const Ue=Ae(Je);return"$async"in Ae||(this.errors=Ae.errors),Ue}compile(ht,Je){const Ae=this._addSchema(ht,Je);return Ae.validate||this._compileSchemaEnv(Ae)}compileAsync(ht,Je){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:Ae}=this.opts;return Ue.call(this,ht,Je);function Ue(In,xi){return Ze.apply(this,arguments)}function Ze(){return(Ze=g(function*(In,xi){yield H.call(this,In.$schema);const or=this._addSchema(In,xi);return or.validate||xe.call(this,or)})).apply(this,arguments)}function H(In){return te.apply(this,arguments)}function te(){return(te=g(function*(In){In&&!this.getSchema(In)&&(yield Ue.call(this,{$ref:In},!0))})).apply(this,arguments)}function xe(In){return Ce.apply(this,arguments)}function Ce(){return(Ce=g(function*(In){try{return this._compileSchemaEnv(In)}catch(xi){if(!(xi instanceof De.default))throw xi;return zt.call(this,xi),yield rt.call(this,xi.missingSchema),xe.call(this,In)}})).apply(this,arguments)}function zt({missingSchema:In,missingRef:xi}){if(this.refs[In])throw new Error(`AnySchema ${In} is loaded but ${xi} cannot be resolved`)}function rt(In){return xt.apply(this,arguments)}function xt(){return(xt=g(function*(In){const xi=yield Gt.call(this,In);this.refs[In]||(yield H.call(this,xi.$schema)),this.refs[In]||this.addSchema(xi,In,Je)})).apply(this,arguments)}function Gt(In){return xn.apply(this,arguments)}function xn(){return(xn=g(function*(In){const xi=this._loading[In];if(xi)return xi;try{return yield this._loading[In]=Ae(In)}finally{delete this._loading[In]}})).apply(this,arguments)}}addSchema(ht,Je,Ae,Ue=this.opts.validateSchema){if(Array.isArray(ht)){for(const H of ht)this.addSchema(H,void 0,Ae,Ue);return this}let Ze;if("object"==typeof ht){const{schemaId:H}=this.opts;if(Ze=ht[H],void 0!==Ze&&"string"!=typeof Ze)throw new Error(`schema ${H} must be string`)}return Je=(0,ge.normalizeId)(Je||Ze),this._checkUnique(Je),this.schemas[Je]=this._addSchema(ht,Ae,Je,Ue,!0),this}addMetaSchema(ht,Je,Ae=this.opts.validateSchema){return this.addSchema(ht,Je,!0,Ae),this}validateSchema(ht,Je){if("boolean"==typeof ht)return!0;let Ae;if(Ae=ht.$schema,void 0!==Ae&&"string"!=typeof Ae)throw new Error("$schema must be a string");if(Ae=Ae||this.opts.defaultMeta||this.defaultMeta(),!Ae)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const Ue=this.validate(Ae,ht);if(!Ue&&Je){const Ze="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(Ze);this.logger.error(Ze)}return Ue}getSchema(ht){let Je;for(;"string"==typeof(Je=Se.call(this,ht));)ht=Je;if(void 0===Je){const{schemaId:Ae}=this.opts,Ue=new Ee.SchemaEnv({schema:{},schemaId:Ae});if(Je=Ee.resolveSchema.call(this,Ue,ht),!Je)return;this.refs[ht]=Je}return Je.validate||this._compileSchemaEnv(Je)}removeSchema(ht){if(ht instanceof RegExp)return this._removeAllSchemas(this.schemas,ht),this._removeAllSchemas(this.refs,ht),this;switch(typeof ht){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Je=Se.call(this,ht);return"object"==typeof Je&&this._cache.delete(Je.schema),delete this.schemas[ht],delete this.refs[ht],this}case"object":{this._cache.delete(ht);let Ae=ht[this.opts.schemaId];return Ae&&(Ae=(0,ge.normalizeId)(Ae),delete this.schemas[Ae],delete this.refs[Ae]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(ht){for(const Je of ht)this.addKeyword(Je);return this}addKeyword(ht,Je){let Ae;if("string"==typeof ht)Ae=ht,"object"==typeof Je&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Je.keyword=Ae);else{if("object"!=typeof ht||void 0!==Je)throw new Error("invalid addKeywords parameters");if(Ae=(Je=ht).keyword,Array.isArray(Ae)&&!Ae.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(ai.call(this,Ae,Je),!Je)return(0,Ve.eachItem)(Ae,Ze=>Li.call(this,Ze)),this;Hr.call(this,Je);const Ue={...Je,type:(0,Te.getJSONTypes)(Je.type),schemaType:(0,Te.getJSONTypes)(Je.schemaType)};return(0,Ve.eachItem)(Ae,0===Ue.type.length?Ze=>Li.call(this,Ze,Ue):Ze=>Ue.type.forEach(H=>Li.call(this,Ze,Ue,H))),this}getKeyword(ht){const Je=this.RULES.all[ht];return"object"==typeof Je?Je.definition:!!Je}removeKeyword(ht){const{RULES:Je}=this;delete Je.keywords[ht],delete Je.all[ht];for(const Ae of Je.rules){const Ue=Ae.rules.findIndex(Ze=>Ze.keyword===ht);Ue>=0&&Ae.rules.splice(Ue,1)}return this}addFormat(ht,Je){return"string"==typeof Je&&(Je=new RegExp(Je)),this.formats[ht]=Je,this}errorsText(ht=this.errors,{separator:Je=", ",dataVar:Ae="data"}={}){return ht&&0!==ht.length?ht.map(Ue=>`${Ae}${Ue.instancePath} ${Ue.message}`).reduce((Ue,Ze)=>Ue+Je+Ze):"No errors"}$dataMetaSchema(ht,Je){const Ae=this.RULES.all;ht=JSON.parse(JSON.stringify(ht));for(const Ue of Je){const Ze=Ue.split("/").slice(1);let H=ht;for(const te of Ze)H=H[te];for(const te in Ae){const xe=Ae[te];if("object"!=typeof xe)continue;const{$data:Ce}=xe.definition,zt=H[te];Ce&&zt&&(H[te]=dn(zt))}}return ht}_removeAllSchemas(ht,Je){for(const Ae in ht){const Ue=ht[Ae];(!Je||Je.test(Ae))&&("string"==typeof Ue?delete ht[Ae]:Ue&&!Ue.meta&&(this._cache.delete(Ue.schema),delete ht[Ae]))}}_addSchema(ht,Je,Ae,Ue=this.opts.validateSchema,Ze=this.opts.addUsedSchema){let H;const{schemaId:te}=this.opts;if("object"==typeof ht)H=ht[te];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof ht)throw new Error("schema must be object or boolean")}let xe=this._cache.get(ht);if(void 0!==xe)return xe;Ae=(0,ge.normalizeId)(H||Ae);const Ce=ge.getSchemaRefs.call(this,ht,Ae);return xe=new Ee.SchemaEnv({schema:ht,schemaId:te,meta:Je,baseId:Ae,localRefs:Ce}),this._cache.set(xe.schema,xe),Ze&&!Ae.startsWith("#")&&(Ae&&this._checkUnique(Ae),this.refs[Ae]=xe),Ue&&this.validateSchema(ht,!0),xe}_checkUnique(ht){if(this.schemas[ht]||this.refs[ht])throw new Error(`schema with key or id "${ht}" already exists`)}_compileSchemaEnv(ht){if(ht.meta?this._compileMetaSchema(ht):Ee.compileSchema.call(this,ht),!ht.validate)throw new Error("ajv implementation error");return ht.validate}_compileMetaSchema(ht){const Je=this.opts;this.opts=this._metaOpts;try{Ee.compileSchema.call(this,ht)}finally{this.opts=Je}}}function He(nt,ht,Je,Ae="error"){for(const Ue in nt)Ue in ht&&this.logger[Ae](`${Je}: option ${Ue}. ${nt[Ue]}`)}function Se(nt){return nt=(0,ge.normalizeId)(nt),this.schemas[nt]||this.refs[nt]}function it(){const nt=this.opts.schemas;if(nt)if(Array.isArray(nt))this.addSchema(nt);else for(const ht in nt)this.addSchema(nt[ht],ht)}function dt(){for(const nt in this.opts.formats){const ht=this.opts.formats[nt];ht&&this.addFormat(nt,ht)}}function jt(nt){if(Array.isArray(nt))this.addVocabulary(nt);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const ht in nt){const Je=nt[ht];Je.keyword||(Je.keyword=ht),this.addKeyword(Je)}}}function Wt(){const nt={...this.opts};for(const ht of tt)delete nt[ht];return nt}he.ValidationError=oe.default,he.MissingRefError=De.default,J.default=he;const wn={log(){},warn(){},error(){}},di=/^[a-z_$][a-z0-9_$:-]*$/i;function ai(nt,ht){const{RULES:Je}=this;if((0,Ve.eachItem)(nt,Ae=>{if(Je.keywords[Ae])throw new Error(`Keyword ${Ae} is already defined`);if(!di.test(Ae))throw new Error(`Keyword ${Ae} has invalid name`)}),ht&&ht.$data&&!("code"in ht)&&!("validate"in ht))throw new Error('$data keyword must have "code" or "validate" function')}function Li(nt,ht,Je){var Ae;const Ue=ht?.post;if(Je&&Ue)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Ze}=this;let H=Ue?Ze.post:Ze.rules.find(({type:xe})=>xe===Je);if(H||(H={type:Je,rules:[]},Ze.rules.push(H)),Ze.keywords[nt]=!0,!ht)return;const te={keyword:nt,definition:{...ht,type:(0,Te.getJSONTypes)(ht.type),schemaType:(0,Te.getJSONTypes)(ht.schemaType)}};ht.before?$i.call(this,H,te,ht.before):H.rules.push(te),Ze.all[nt]=te,null===(Ae=ht.implements)||void 0===Ae||Ae.forEach(xe=>this.addKeyword(xe))}function $i(nt,ht,Je){const Ae=nt.rules.findIndex(Ue=>Ue.keyword===Je);Ae>=0?nt.rules.splice(Ae,0,ht):(nt.rules.push(ht),this.logger.warn(`rule ${Je} is not defined`))}function Hr(nt){let{metaSchema:ht}=nt;void 0!==ht&&(nt.$data&&this.opts.$data&&(ht=dn(ht)),nt.validateSchema=this.compile(ht,!0))}const ui={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function dn(nt){return{anyOf:[nt,ui]}}},7494:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(7413);g.code='require("ajv/dist/runtime/equal").default',J.default=g},5033:(vn,J)=>{"use strict";function F(g){const o=g.length;let De,V=0,oe=0;for(;oe=55296&&De<=56319&&oe{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(8255);g.code='require("ajv/dist/runtime/uri").default',J.default=g},8186:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});class F extends Error{constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}}J.default=F},3901:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateAdditionalItems=void 0;const g=F(6033),o=F(9455),oe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:pe}})=>g.str`must NOT have more than ${pe} items`,params:({params:{len:pe}})=>g._`{limit: ${pe}}`},code(pe){const{parentSchema:Ee,it:be}=pe,{items:ge}=Ee;Array.isArray(ge)?De(pe,ge):(0,o.checkStrictMode)(be,'"additionalItems" is ignored when "items" is not an array of schemas')}};function De(pe,Ee){const{gen:be,schema:ge,data:Te,keyword:Ve,it:ze}=pe;ze.items=!0;const vt=be.const("len",g._`${Te}.length`);if(!1===ge)pe.setParams({len:Ee.length}),pe.pass(g._`${vt} <= ${Ee.length}`);else if("object"==typeof ge&&!(0,o.alwaysValidSchema)(ze,ge)){const tt=be.var("valid",g._`${vt} <= ${Ee.length}`);be.if((0,g.not)(tt),()=>function Re(tt){be.forRange("i",Ee.length,vt,de=>{pe.subschema({keyword:Ve,dataProp:de,dataPropType:o.Type.Num},tt),ze.allErrors||be.if((0,g.not)(tt),()=>be.break())})}(tt)),pe.ok(tt)}}J.validateAdditionalItems=De,J.default=oe},0:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(4737),o=F(6033),V=F(395),oe=F(9455);J.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:Ee})=>o._`{additionalProperty: ${Ee.additionalProperty}}`},code(Ee){const{gen:be,schema:ge,parentSchema:Te,data:Ve,errsCount:ze,it:vt}=Ee;if(!ze)throw new Error("ajv implementation error");const{allErrors:Re,opts:tt}=vt;if(vt.props=!0,"all"!==tt.removeAdditional&&(0,oe.alwaysValidSchema)(vt,ge))return;const de=(0,g.allSchemaProperties)(Te.properties),Fe=(0,g.allSchemaProperties)(Te.patternProperties);function Be(Se){be.code(o._`delete ${Ve}[${Se}]`)}function he(Se){if("all"===tt.removeAdditional||tt.removeAdditional&&!1===ge)Be(Se);else{if(!1===ge)return Ee.setParams({additionalProperty:Se}),Ee.error(),void(Re||be.break());if("object"==typeof ge&&!(0,oe.alwaysValidSchema)(vt,ge)){const it=be.name("valid");"failing"===tt.removeAdditional?(He(Se,it,!1),be.if((0,o.not)(it),()=>{Ee.reset(),Be(Se)})):(He(Se,it),Re||be.if((0,o.not)(it),()=>be.break()))}}}function He(Se,it,dt){const jt={keyword:"additionalProperties",dataProp:Se,dataPropType:oe.Type.Str};!1===dt&&Object.assign(jt,{compositeRule:!0,createErrors:!1,allErrors:!1}),Ee.subschema(jt,it)}(function _t(){be.forIn("key",Ve,Se=>{de.length||Fe.length?be.if(function at(Se){let it;if(de.length>8){const dt=(0,oe.schemaRefOrVal)(vt,Te.properties,"properties");it=(0,g.isOwnProperty)(be,dt,Se)}else it=de.length?(0,o.or)(...de.map(dt=>o._`${Se} === ${dt}`)):o.nil;return Fe.length&&(it=(0,o.or)(it,...Fe.map(dt=>o._`${(0,g.usePattern)(Ee,dt)}.test(${Se})`))),(0,o.not)(it)}(Se),()=>he(Se)):he(Se)})})(),Ee.ok(o._`${ze} === ${V.default.errors}`)}}},4760:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(9455);J.default={keyword:"allOf",schemaType:"array",code(V){const{gen:oe,schema:De,it:pe}=V;if(!Array.isArray(De))throw new Error("ajv implementation error");const Ee=oe.name("valid");De.forEach((be,ge)=>{if((0,g.alwaysValidSchema)(pe,be))return;const Te=V.subschema({keyword:"allOf",schemaProp:ge},Ee);V.ok(Ee),V.mergeEvaluated(Te)})}}},2453:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const o={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:F(4737).validateUnion,error:{message:"must match a schema in anyOf"}};J.default=o},3937:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455);J.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:De,max:pe}})=>void 0===pe?g.str`must contain at least ${De} valid item(s)`:g.str`must contain at least ${De} and no more than ${pe} valid item(s)`,params:({params:{min:De,max:pe}})=>void 0===pe?g._`{minContains: ${De}}`:g._`{minContains: ${De}, maxContains: ${pe}}`},code(De){const{gen:pe,schema:Ee,parentSchema:be,data:ge,it:Te}=De;let Ve,ze;const{minContains:vt,maxContains:Re}=be;Te.opts.next?(Ve=void 0===vt?1:vt,ze=Re):Ve=1;const tt=pe.const("len",g._`${ge}.length`);if(De.setParams({min:Ve,max:ze}),void 0===ze&&0===Ve)return void(0,o.checkStrictMode)(Te,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==ze&&Ve>ze)return(0,o.checkStrictMode)(Te,'"minContains" > "maxContains" is always invalid'),void De.fail();if((0,o.alwaysValidSchema)(Te,Ee)){let Be=g._`${tt} >= ${Ve}`;return void 0!==ze&&(Be=g._`${Be} && ${tt} <= ${ze}`),void De.pass(Be)}Te.items=!0;const de=pe.name("valid");function Fe(){const Be=pe.name("_valid"),he=pe.let("count",0);_t(Be,()=>pe.if(Be,()=>function at(Be){pe.code(g._`${Be}++`),void 0===ze?pe.if(g._`${Be} >= ${Ve}`,()=>pe.assign(de,!0).break()):(pe.if(g._`${Be} > ${ze}`,()=>pe.assign(de,!1).break()),1===Ve?pe.assign(de,!0):pe.if(g._`${Be} >= ${Ve}`,()=>pe.assign(de,!0)))}(he)))}function _t(Be,he){pe.forRange("i",0,tt,He=>{De.subschema({keyword:"contains",dataProp:He,dataPropType:o.Type.Num,compositeRule:!0},Be),he()})}void 0===ze&&1===Ve?_t(de,()=>pe.if(de,()=>pe.break())):0===Ve?(pe.let(de,!0),void 0!==ze&&pe.if(g._`${ge}.length > 0`,Fe)):(pe.let(de,!1),Fe()),De.result(de,()=>De.reset())}}},5133:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateSchemaDeps=J.validatePropertyDeps=J.error=void 0;const g=F(6033),o=F(9455),V=F(4737);J.error={message:({params:{property:be,depsCount:ge,deps:Te}})=>g.str`must have ${1===ge?"property":"properties"} ${Te} when property ${be} is present`,params:({params:{property:be,depsCount:ge,deps:Te,missingProperty:Ve}})=>g._`{property: ${be}, + missingProperty: ${Ve}, + depsCount: ${ge}, + deps: ${Te}}`};const oe={keyword:"dependencies",type:"object",schemaType:"object",error:J.error,code(be){const[ge,Te]=function De({schema:be}){const ge={},Te={};for(const Ve in be)"__proto__"!==Ve&&((Array.isArray(be[Ve])?ge:Te)[Ve]=be[Ve]);return[ge,Te]}(be);pe(be,ge),Ee(be,Te)}};function pe(be,ge=be.schema){const{gen:Te,data:Ve,it:ze}=be;if(0===Object.keys(ge).length)return;const vt=Te.let("missing");for(const Re in ge){const tt=ge[Re];if(0===tt.length)continue;const de=(0,V.propertyInData)(Te,Ve,Re,ze.opts.ownProperties);be.setParams({property:Re,depsCount:tt.length,deps:tt.join(", ")}),ze.allErrors?Te.if(de,()=>{for(const Fe of tt)(0,V.checkReportMissingProp)(be,Fe)}):(Te.if(g._`${de} && (${(0,V.checkMissingProp)(be,tt,vt)})`),(0,V.reportMissingProp)(be,vt),Te.else())}}function Ee(be,ge=be.schema){const{gen:Te,data:Ve,keyword:ze,it:vt}=be,Re=Te.name("valid");for(const tt in ge)(0,o.alwaysValidSchema)(vt,ge[tt])||(Te.if((0,V.propertyInData)(Te,Ve,tt,vt.opts.ownProperties),()=>{const de=be.subschema({keyword:ze,schemaProp:tt},Re);be.mergeValidEvaluated(de,Re)},()=>Te.var(Re,!0)),be.ok(Re))}J.validatePropertyDeps=pe,J.validateSchemaDeps=Ee,J.default=oe},4779:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455);function De(pe,Ee){const be=pe.schema[Ee];return void 0!==be&&!(0,o.alwaysValidSchema)(pe,be)}J.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:pe})=>g.str`must match "${pe.ifClause}" schema`,params:({params:pe})=>g._`{failingKeyword: ${pe.ifClause}}`},code(pe){const{gen:Ee,parentSchema:be,it:ge}=pe;void 0===be.then&&void 0===be.else&&(0,o.checkStrictMode)(ge,'"if" without "then" and "else" is ignored');const Te=De(ge,"then"),Ve=De(ge,"else");if(!Te&&!Ve)return;const ze=Ee.let("valid",!0),vt=Ee.name("_valid");if(function Re(){const de=pe.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},vt);pe.mergeEvaluated(de)}(),pe.reset(),Te&&Ve){const de=Ee.let("ifClause");pe.setParams({ifClause:de}),Ee.if(vt,tt("then",de),tt("else",de))}else Te?Ee.if(vt,tt("then")):Ee.if((0,g.not)(vt),tt("else"));function tt(de,Fe){return()=>{const _t=pe.subschema({keyword:de},vt);Ee.assign(ze,vt),pe.mergeValidEvaluated(_t,ze),Fe?Ee.assign(Fe,g._`${de}`):pe.setParams({ifClause:de})}}pe.pass(ze,()=>pe.error(!0))}}},4390:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(3901),o=F(5366),V=F(5434),oe=F(9098),De=F(3937),pe=F(5133),Ee=F(485),be=F(0),ge=F(9537),Te=F(1145),Ve=F(1039),ze=F(2453),vt=F(1263),Re=F(4760),tt=F(4779),de=F(7142);J.default=function Fe(_t=!1){const at=[Ve.default,ze.default,vt.default,Re.default,tt.default,de.default,Ee.default,be.default,pe.default,ge.default,Te.default];return _t?at.push(o.default,oe.default):at.push(g.default,V.default),at.push(De.default),at}},5434:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateTuple=void 0;const g=F(6033),o=F(9455),V=F(4737),oe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(pe){const{schema:Ee,it:be}=pe;if(Array.isArray(Ee))return De(pe,"additionalItems",Ee);be.items=!0,!(0,o.alwaysValidSchema)(be,Ee)&&pe.ok((0,V.validateArray)(pe))}};function De(pe,Ee,be=pe.schema){const{gen:ge,parentSchema:Te,data:Ve,keyword:ze,it:vt}=pe;(function de(Fe){const{opts:_t,errSchemaPath:at}=vt,Be=be.length;_t.strictTuples&&!(Be===Fe.minItems&&(Be===Fe.maxItems||!1===Fe[Ee]))&&(0,o.checkStrictMode)(vt,`"${ze}" is ${Be}-tuple, but minItems or maxItems/${Ee} are not specified or different at path "${at}"`,_t.strictTuples)})(Te),vt.opts.unevaluated&&be.length&&!0!==vt.items&&(vt.items=o.mergeEvaluated.items(ge,be.length,vt.items));const Re=ge.name("valid"),tt=ge.const("len",g._`${Ve}.length`);be.forEach((Fe,_t)=>{(0,o.alwaysValidSchema)(vt,Fe)||(ge.if(g._`${tt} > ${_t}`,()=>pe.subschema({keyword:ze,schemaProp:_t,dataProp:_t},Re)),pe.ok(Re))})}J.validateTuple=De,J.default=oe},9098:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455),V=F(4737),oe=F(3901);J.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:Ee}})=>g.str`must NOT have more than ${Ee} items`,params:({params:{len:Ee}})=>g._`{limit: ${Ee}}`},code(Ee){const{schema:be,parentSchema:ge,it:Te}=Ee,{prefixItems:Ve}=ge;Te.items=!0,!(0,o.alwaysValidSchema)(Te,be)&&(Ve?(0,oe.validateAdditionalItems)(Ee,Ve):Ee.ok((0,V.validateArray)(Ee)))}}},1039:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(9455);J.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(V){const{gen:oe,schema:De,it:pe}=V;if((0,g.alwaysValidSchema)(pe,De))return void V.fail();const Ee=oe.name("valid");V.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},Ee),V.failResult(Ee,()=>V.reset(),()=>V.error())},error:{message:"must NOT be valid"}}},1263:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455);J.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:De})=>g._`{passingSchemas: ${De.passing}}`},code(De){const{gen:pe,schema:Ee,parentSchema:be,it:ge}=De;if(!Array.isArray(Ee))throw new Error("ajv implementation error");if(ge.opts.discriminator&&be.discriminator)return;const Te=Ee,Ve=pe.let("valid",!1),ze=pe.let("passing",null),vt=pe.name("_valid");De.setParams({passing:ze}),pe.block(function Re(){Te.forEach((tt,de)=>{let Fe;(0,o.alwaysValidSchema)(ge,tt)?pe.var(vt,!0):Fe=De.subschema({keyword:"oneOf",schemaProp:de,compositeRule:!0},vt),de>0&&pe.if(g._`${vt} && ${Ve}`).assign(Ve,!1).assign(ze,g._`[${ze}, ${de}]`).else(),pe.if(vt,()=>{pe.assign(Ve,!0),pe.assign(ze,de),Fe&&De.mergeEvaluated(Fe,g.Name)})})}),De.result(Ve,()=>De.reset(),()=>De.error(!0))}}},1145:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(4737),o=F(6033),V=F(9455),oe=F(9455);J.default={keyword:"patternProperties",type:"object",schemaType:"object",code(pe){const{gen:Ee,schema:be,data:ge,parentSchema:Te,it:Ve}=pe,{opts:ze}=Ve,vt=(0,g.allSchemaProperties)(be),Re=vt.filter(he=>(0,V.alwaysValidSchema)(Ve,be[he]));if(0===vt.length||Re.length===vt.length&&(!Ve.opts.unevaluated||!0===Ve.props))return;const tt=ze.strictSchema&&!ze.allowMatchingProperties&&Te.properties,de=Ee.name("valid");!0!==Ve.props&&!(Ve.props instanceof o.Name)&&(Ve.props=(0,oe.evaluatedPropsToName)(Ee,Ve.props));const{props:Fe}=Ve;function at(he){for(const He in tt)new RegExp(he).test(He)&&(0,V.checkStrictMode)(Ve,`property ${He} matches pattern ${he} (use allowMatchingProperties)`)}function Be(he){Ee.forIn("key",ge,He=>{Ee.if(o._`${(0,g.usePattern)(pe,he)}.test(${He})`,()=>{const Se=Re.includes(he);Se||pe.subschema({keyword:"patternProperties",schemaProp:he,dataProp:He,dataPropType:oe.Type.Str},de),Ve.opts.unevaluated&&!0!==Fe?Ee.assign(o._`${Fe}[${He}]`,!0):!Se&&!Ve.allErrors&&Ee.if((0,o.not)(de),()=>Ee.break())})})}!function _t(){for(const he of vt)tt&&at(he),Ve.allErrors?Be(he):(Ee.var(de,!0),Be(he),Ee.if(de))}()}}},5366:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(5434);J.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:V=>(0,g.validateTuple)(V,"items")}},9537:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6038),o=F(4737),V=F(9455),oe=F(0);J.default={keyword:"properties",type:"object",schemaType:"object",code(pe){const{gen:Ee,schema:be,parentSchema:ge,data:Te,it:Ve}=pe;"all"===Ve.opts.removeAdditional&&void 0===ge.additionalProperties&&oe.default.code(new g.KeywordCxt(Ve,oe.default,"additionalProperties"));const ze=(0,o.allSchemaProperties)(be);for(const Fe of ze)Ve.definedProperties.add(Fe);Ve.opts.unevaluated&&ze.length&&!0!==Ve.props&&(Ve.props=V.mergeEvaluated.props(Ee,(0,V.toHash)(ze),Ve.props));const vt=ze.filter(Fe=>!(0,V.alwaysValidSchema)(Ve,be[Fe]));if(0===vt.length)return;const Re=Ee.name("valid");for(const Fe of vt)tt(Fe)?de(Fe):(Ee.if((0,o.propertyInData)(Ee,Te,Fe,Ve.opts.ownProperties)),de(Fe),Ve.allErrors||Ee.else().var(Re,!0),Ee.endIf()),pe.it.definedProperties.add(Fe),pe.ok(Re);function tt(Fe){return Ve.opts.useDefaults&&!Ve.compositeRule&&void 0!==be[Fe].default}function de(Fe){pe.subschema({keyword:"properties",schemaProp:Fe,dataProp:Fe},Re)}}}},485:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455);J.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:De})=>g._`{propertyName: ${De.propertyName}}`},code(De){const{gen:pe,schema:Ee,data:be,it:ge}=De;if((0,o.alwaysValidSchema)(ge,Ee))return;const Te=pe.name("valid");pe.forIn("key",be,Ve=>{De.setParams({propertyName:Ve}),De.subschema({keyword:"propertyNames",data:Ve,dataTypes:["string"],propertyName:Ve,compositeRule:!0},Te),pe.if((0,g.not)(Te),()=>{De.error(!0),ge.allErrors||pe.break()})}),De.ok(Te)}}},7142:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(9455);J.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:V,parentSchema:oe,it:De}){void 0===oe.if&&(0,g.checkStrictMode)(De,`"${V}" without "if" is ignored`)}}},4737:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateUnion=J.validateArray=J.usePattern=J.callValidateCode=J.schemaProperties=J.allSchemaProperties=J.noPropertyInData=J.propertyInData=J.isOwnProperty=J.hasPropFunc=J.reportMissingProp=J.checkMissingProp=J.checkReportMissingProp=void 0;const g=F(6033),o=F(9455),V=F(395),oe=F(9455);function be(at){return at.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:g._`Object.prototype.hasOwnProperty`})}function ge(at,Be,he){return g._`${be(at)}.call(${Be}, ${he})`}function Ve(at,Be,he,He){const Se=g._`${Be}${(0,g.getProperty)(he)} === undefined`;return He?(0,g.or)(Se,(0,g.not)(ge(at,Be,he))):Se}function ze(at){return at?Object.keys(at).filter(Be=>"__proto__"!==Be):[]}J.checkReportMissingProp=function De(at,Be){const{gen:he,data:He,it:Se}=at;he.if(Ve(he,He,Be,Se.opts.ownProperties),()=>{at.setParams({missingProperty:g._`${Be}`},!0),at.error()})},J.checkMissingProp=function pe({gen:at,data:Be,it:{opts:he}},He,Se){return(0,g.or)(...He.map(it=>(0,g.and)(Ve(at,Be,it,he.ownProperties),g._`${Se} = ${it}`)))},J.reportMissingProp=function Ee(at,Be){at.setParams({missingProperty:Be},!0),at.error()},J.hasPropFunc=be,J.isOwnProperty=ge,J.propertyInData=function Te(at,Be,he,He){const Se=g._`${Be}${(0,g.getProperty)(he)} !== undefined`;return He?g._`${Se} && ${ge(at,Be,he)}`:Se},J.noPropertyInData=Ve,J.allSchemaProperties=ze,J.schemaProperties=function vt(at,Be){return ze(Be).filter(he=>!(0,o.alwaysValidSchema)(at,Be[he]))},J.callValidateCode=function Re({schemaCode:at,data:Be,it:{gen:he,topSchemaRef:He,schemaPath:Se,errorPath:it},it:dt},jt,Wt,wn){const Wn=wn?g._`${at}, ${Be}, ${He}${Se}`:Be,di=[[V.default.instancePath,(0,g.strConcat)(V.default.instancePath,it)],[V.default.parentData,dt.parentData],[V.default.parentDataProperty,dt.parentDataProperty],[V.default.rootData,V.default.rootData]];dt.opts.dynamicRef&&di.push([V.default.dynamicAnchors,V.default.dynamicAnchors]);const ai=g._`${Wn}, ${he.object(...di)}`;return Wt!==g.nil?g._`${jt}.call(${Wt}, ${ai})`:g._`${jt}(${ai})`};const tt=g._`new RegExp`;J.usePattern=function de({gen:at,it:{opts:Be}},he){const He=Be.unicodeRegExp?"u":"",{regExp:Se}=Be.code,it=Se(he,He);return at.scopeValue("pattern",{key:it.toString(),ref:it,code:g._`${"new RegExp"===Se.code?tt:(0,oe.useFunc)(at,Se)}(${he}, ${He})`})},J.validateArray=function Fe(at){const{gen:Be,data:he,keyword:He,it:Se}=at,it=Be.name("valid");if(Se.allErrors){const jt=Be.let("valid",!0);return dt(()=>Be.assign(jt,!1)),jt}return Be.var(it,!0),dt(()=>Be.break()),it;function dt(jt){const Wt=Be.const("len",g._`${he}.length`);Be.forRange("i",0,Wt,wn=>{at.subschema({keyword:He,dataProp:wn,dataPropType:o.Type.Num},it),Be.if((0,g.not)(it),jt)})}},J.validateUnion=function _t(at){const{gen:Be,schema:he,keyword:He,it:Se}=at;if(!Array.isArray(he))throw new Error("ajv implementation error");if(he.some(Wt=>(0,o.alwaysValidSchema)(Se,Wt))&&!Se.opts.unevaluated)return;const dt=Be.let("valid",!1),jt=Be.name("_valid");Be.block(()=>he.forEach((Wt,wn)=>{const Wn=at.subschema({keyword:He,schemaProp:wn,compositeRule:!0},jt);Be.assign(dt,g._`${dt} || ${jt}`),at.mergeValidEvaluated(Wn,jt)||Be.if((0,g.not)(dt))})),at.result(dt,()=>at.reset(),()=>at.error(!0))}},307:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.default={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},6551:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(307),o=F(8809);J.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",g.default,o.default]},8809:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.callRef=J.getValidate=void 0;const g=F(3115),o=F(4737),V=F(6033),oe=F(395),De=F(2431),pe=F(9455),Ee={keyword:"$ref",schemaType:"string",code(Te){const{gen:Ve,schema:ze,it:vt}=Te,{baseId:Re,schemaEnv:tt,validateName:de,opts:Fe,self:_t}=vt,{root:at}=tt;if(("#"===ze||"#/"===ze)&&Re===at.baseId)return function he(){if(tt===at)return ge(Te,de,tt,tt.$async);const it=Ve.scopeValue("root",{ref:at});return ge(Te,V._`${it}.validate`,at,at.$async)}();const Be=De.resolveRef.call(_t,at,Re,ze);if(void 0===Be)throw new g.default(vt.opts.uriResolver,Re,ze);return Be instanceof De.SchemaEnv?function He(it){const dt=be(Te,it);ge(Te,dt,it,it.$async)}(Be):function Se(it){const dt=Ve.scopeValue("schema",!0===Fe.code.source?{ref:it,code:(0,V.stringify)(it)}:{ref:it}),jt=Ve.name("valid"),Wt=Te.subschema({schema:it,dataTypes:[],schemaPath:V.nil,topSchemaRef:dt,errSchemaPath:ze},jt);Te.mergeEvaluated(Wt),Te.ok(jt)}(Be)}};function be(Te,Ve){const{gen:ze}=Te;return Ve.validate?ze.scopeValue("validate",{ref:Ve.validate}):V._`${ze.scopeValue("wrapper",{ref:Ve})}.validate`}function ge(Te,Ve,ze,vt){const{gen:Re,it:tt}=Te,{allErrors:de,schemaEnv:Fe,opts:_t}=tt,at=_t.passContext?oe.default.this:V.nil;function He(it){const dt=V._`${it}.errors`;Re.assign(oe.default.vErrors,V._`${oe.default.vErrors} === null ? ${dt} : ${oe.default.vErrors}.concat(${dt})`),Re.assign(oe.default.errors,V._`${oe.default.vErrors}.length`)}function Se(it){var dt;if(!tt.opts.unevaluated)return;const jt=null===(dt=ze?.validate)||void 0===dt?void 0:dt.evaluated;if(!0!==tt.props)if(jt&&!jt.dynamicProps)void 0!==jt.props&&(tt.props=pe.mergeEvaluated.props(Re,jt.props,tt.props));else{const Wt=Re.var("props",V._`${it}.evaluated.props`);tt.props=pe.mergeEvaluated.props(Re,Wt,tt.props,V.Name)}if(!0!==tt.items)if(jt&&!jt.dynamicItems)void 0!==jt.items&&(tt.items=pe.mergeEvaluated.items(Re,jt.items,tt.items));else{const Wt=Re.var("items",V._`${it}.evaluated.items`);tt.items=pe.mergeEvaluated.items(Re,Wt,tt.items,V.Name)}}vt?function Be(){if(!Fe.$async)throw new Error("async schema referenced by sync schema");const it=Re.let("valid");Re.try(()=>{Re.code(V._`await ${(0,o.callValidateCode)(Te,Ve,at)}`),Se(Ve),de||Re.assign(it,!0)},dt=>{Re.if(V._`!(${dt} instanceof ${tt.ValidationError})`,()=>Re.throw(dt)),He(dt),de||Re.assign(it,!1)}),Te.ok(it)}():function he(){Te.result((0,o.callValidateCode)(Te,Ve,at),()=>Se(Ve),()=>He(Ve))}()}J.getValidate=be,J.callRef=ge,J.default=Ee},3121:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(5952),V=F(2431),oe=F(9455);J.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:Ee,tagName:be}})=>Ee===o.DiscrError.Tag?`tag "${be}" must be string`:`value of tag "${be}" must be in oneOf`,params:({params:{discrError:Ee,tag:be,tagName:ge}})=>g._`{error: ${Ee}, tag: ${ge}, tagValue: ${be}}`},code(Ee){const{gen:be,data:ge,schema:Te,parentSchema:Ve,it:ze}=Ee,{oneOf:vt}=Ve;if(!ze.opts.discriminator)throw new Error("discriminator: requires discriminator option");const Re=Te.propertyName;if("string"!=typeof Re)throw new Error("discriminator: requires propertyName");if(Te.mapping)throw new Error("discriminator: mapping is not supported");if(!vt)throw new Error("discriminator: requires oneOf keyword");const tt=be.let("valid",!1),de=be.const("tag",g._`${ge}${(0,g.getProperty)(Re)}`);function _t(Be){const he=be.name("valid"),He=Ee.subschema({keyword:"oneOf",schemaProp:Be},he);return Ee.mergeEvaluated(He,g.Name),he}be.if(g._`typeof ${de} == "string"`,()=>function Fe(){const Be=function at(){var Be;const he={},He=it(Ve);let Se=!0;for(let Wt=0;WtEe.error(!1,{discrError:o.DiscrError.Tag,tag:de,tagName:Re})),Ee.ok(tt)}}},5952:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.DiscrError=void 0;var F=function(g){return g.Tag="tag",g.Mapping="mapping",g}(F||(J.DiscrError=F={}))},7540:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6551),o=F(9208),V=F(4390),oe=F(5248),De=F(8349),pe=[g.default,o.default,(0,V.default)(),oe.default,De.metadataVocabulary,De.contentVocabulary];J.default=pe},7381:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033);J.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:oe})=>g.str`must match format "${oe}"`,params:({schemaCode:oe})=>g._`{format: ${oe}}`},code(oe,De){const{gen:pe,data:Ee,$data:be,schema:ge,schemaCode:Te,it:Ve}=oe,{opts:ze,errSchemaPath:vt,schemaEnv:Re,self:tt}=Ve;ze.validateFormats&&(be?function de(){const _t=pe.scopeValue("formats",{ref:tt.formats,code:ze.code.formats}),at=pe.const("fDef",g._`${_t}[${Te}]`),Be=pe.let("fType"),he=pe.let("format");pe.if(g._`typeof ${at} == "object" && !(${at} instanceof RegExp)`,()=>pe.assign(Be,g._`${at}.type || "string"`).assign(he,g._`${at}.validate`),()=>pe.assign(Be,g._`"string"`).assign(he,at)),oe.fail$data((0,g.or)(function He(){return!1===ze.strictSchema?g.nil:g._`${Te} && !${he}`}(),function Se(){const it=Re.$async?g._`(${at}.async ? await ${he}(${Ee}) : ${he}(${Ee}))`:g._`${he}(${Ee})`,dt=g._`(typeof ${he} == "function" ? ${it} : ${he}.test(${Ee}))`;return g._`${he} && ${he} !== true && ${Be} === ${De} && !${dt}`}()))}():function Fe(){const _t=tt.formats[ge];if(!_t)return void function He(){if(!1!==ze.strictSchema)throw new Error(dt());function dt(){return`unknown format "${ge}" ignored in schema at path "${vt}"`}tt.logger.warn(dt())}();if(!0===_t)return;const[at,Be,he]=function Se(dt){const jt=dt instanceof RegExp?(0,g.regexpCode)(dt):ze.code.formats?g._`${ze.code.formats}${(0,g.getProperty)(ge)}`:void 0,Wt=pe.scopeValue("formats",{key:ge,ref:dt,code:jt});return"object"!=typeof dt||dt instanceof RegExp?["string",dt,Wt]:[dt.type||"string",dt.validate,g._`${Wt}.validate`]}(_t);at===De&&oe.pass(function it(){if("object"==typeof _t&&!(_t instanceof RegExp)&&_t.async){if(!Re.$async)throw new Error("async format in sync schema");return g._`await ${he}(${Ee})`}return"function"==typeof Be?g._`${he}(${Ee})`:g._`${he}.test(${Ee})`}())}())}}},5248:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const o=[F(7381).default];J.default=o},8349:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.contentVocabulary=J.metadataVocabulary=void 0,J.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],J.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},4131:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455),V=F(7494);J.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:pe})=>g._`{allowedValue: ${pe}}`},code(pe){const{gen:Ee,data:be,$data:ge,schemaCode:Te,schema:Ve}=pe;ge||Ve&&"object"==typeof Ve?pe.fail$data(g._`!${(0,o.useFunc)(Ee,V.default)}(${be}, ${Te})`):pe.fail(g._`${Ve} !== ${be}`)}}},4407:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455),V=F(7494);J.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:pe})=>g._`{allowedValues: ${pe}}`},code(pe){const{gen:Ee,data:be,$data:ge,schema:Te,schemaCode:Ve,it:ze}=pe;if(!ge&&0===Te.length)throw new Error("enum must have non-empty array");let Re;const tt=()=>Re??(Re=(0,o.useFunc)(Ee,V.default));let de;if(Te.length>=ze.opts.loopEnum||ge)de=Ee.let("valid"),pe.block$data(de,function Fe(){Ee.assign(de,!1),Ee.forOf("v",Ve,at=>Ee.if(g._`${tt()}(${be}, ${at})`,()=>Ee.assign(de,!0).break()))});else{if(!Array.isArray(Te))throw new Error("ajv implementation error");const at=Ee.const("vSchema",Ve);de=(0,g.or)(...Te.map((Be,he)=>function _t(at,Be){const he=Te[Be];return"object"==typeof he&&null!==he?g._`${tt()}(${be}, ${at}[${Be}])`:g._`${be} === ${he}`}(at,he)))}pe.pass(de)}}},9208:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(7662),o=F(5667),V=F(23),oe=F(5218),De=F(4090),pe=F(9767),Ee=F(6911),be=F(5949),ge=F(4131),Te=F(4407);J.default=[g.default,o.default,V.default,oe.default,De.default,pe.default,Ee.default,be.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ge.default,Te.default]},6911:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033);J.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:oe,schemaCode:De})=>g.str`must NOT have ${"maxItems"===oe?"more":"fewer"} than ${De} items`,params:({schemaCode:oe})=>g._`{limit: ${oe}}`},code(oe){const{keyword:De,data:pe,schemaCode:Ee}=oe;oe.fail$data(g._`${pe}.length ${"maxItems"===De?g.operators.GT:g.operators.LT} ${Ee}`)}}},23:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455),V=F(5033);J.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:pe,schemaCode:Ee})=>g.str`must NOT have ${"maxLength"===pe?"more":"fewer"} than ${Ee} characters`,params:({schemaCode:pe})=>g._`{limit: ${pe}}`},code(pe){const{keyword:Ee,data:be,schemaCode:ge,it:Te}=pe,Ve="maxLength"===Ee?g.operators.GT:g.operators.LT,ze=!1===Te.opts.unicode?g._`${be}.length`:g._`${(0,o.useFunc)(pe.gen,V.default)}(${be})`;pe.fail$data(g._`${ze} ${Ve} ${ge}`)}}},7662:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=g.operators,V={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},oe={message:({keyword:pe,schemaCode:Ee})=>g.str`must be ${V[pe].okStr} ${Ee}`,params:({keyword:pe,schemaCode:Ee})=>g._`{comparison: ${V[pe].okStr}, limit: ${Ee}}`},De={keyword:Object.keys(V),type:"number",schemaType:"number",$data:!0,error:oe,code(pe){const{keyword:Ee,data:be,schemaCode:ge}=pe;pe.fail$data(g._`${be} ${V[Ee].fail} ${ge} || isNaN(${be})`)}};J.default=De},4090:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033);J.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:oe,schemaCode:De})=>g.str`must NOT have ${"maxProperties"===oe?"more":"fewer"} than ${De} properties`,params:({schemaCode:oe})=>g._`{limit: ${oe}}`},code(oe){const{keyword:De,data:pe,schemaCode:Ee}=oe;oe.fail$data(g._`Object.keys(${pe}).length ${"maxProperties"===De?g.operators.GT:g.operators.LT} ${Ee}`)}}},5667:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033);J.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:oe})=>g.str`must be multiple of ${oe}`,params:({schemaCode:oe})=>g._`{multipleOf: ${oe}}`},code(oe){const{gen:De,data:pe,schemaCode:Ee,it:be}=oe,ge=be.opts.multipleOfPrecision,Te=De.let("res"),Ve=ge?g._`Math.abs(Math.round(${Te}) - ${Te}) > 1e-${ge}`:g._`${Te} !== parseInt(${Te})`;oe.fail$data(g._`(${Ee} === 0 || (${Te} = ${pe}/${Ee}, ${Ve}))`)}}},5218:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(4737),o=F(6033);J.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:De})=>o.str`must match pattern "${De}"`,params:({schemaCode:De})=>o._`{pattern: ${De}}`},code(De){const{data:pe,$data:Ee,schema:be,schemaCode:ge,it:Te}=De,ze=Ee?o._`(new RegExp(${ge}, ${Te.opts.unicodeRegExp?"u":""}))`:(0,g.usePattern)(De,be);De.fail$data(o._`!${ze}.test(${pe})`)}}},9767:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(4737),o=F(6033),V=F(9455);J.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:pe}})=>o.str`must have required property '${pe}'`,params:({params:{missingProperty:pe}})=>o._`{missingProperty: ${pe}}`},code(pe){const{gen:Ee,schema:be,schemaCode:ge,data:Te,$data:Ve,it:ze}=pe,{opts:vt}=ze;if(!Ve&&0===be.length)return;const Re=be.length>=vt.loopRequired;if(ze.allErrors?function tt(){if(Re||Ve)pe.block$data(o.nil,Fe);else for(const at of be)(0,g.checkReportMissingProp)(pe,at)}():function de(){const at=Ee.let("missing");if(Re||Ve){const Be=Ee.let("valid",!0);pe.block$data(Be,()=>function _t(at,Be){pe.setParams({missingProperty:at}),Ee.forOf(at,ge,()=>{Ee.assign(Be,(0,g.propertyInData)(Ee,Te,at,vt.ownProperties)),Ee.if((0,o.not)(Be),()=>{pe.error(),Ee.break()})},o.nil)}(at,Be)),pe.ok(Be)}else Ee.if((0,g.checkMissingProp)(pe,be,at)),(0,g.reportMissingProp)(pe,at),Ee.else()}(),vt.strictRequired){const at=pe.parentSchema.properties,{definedProperties:Be}=pe.it;for(const he of be)void 0!==at?.[he]||Be.has(he)||(0,V.checkStrictMode)(ze,`required property "${he}" is not defined at "${ze.schemaEnv.baseId+ze.errSchemaPath}" (strictRequired)`,ze.opts.strictRequired)}function Fe(){Ee.forOf("prop",ge,at=>{pe.setParams({missingProperty:at}),Ee.if((0,g.noPropertyInData)(Ee,Te,at,vt.ownProperties),()=>pe.error())})}}}},5949:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(5404),o=F(6033),V=F(9455),oe=F(7494);J.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:Ee,j:be}})=>o.str`must NOT have duplicate items (items ## ${be} and ${Ee} are identical)`,params:({params:{i:Ee,j:be}})=>o._`{i: ${Ee}, j: ${be}}`},code(Ee){const{gen:be,data:ge,$data:Te,schema:Ve,parentSchema:ze,schemaCode:vt,it:Re}=Ee;if(!Te&&!Ve)return;const tt=be.let("valid"),de=ze.items?(0,g.getSchemaTypes)(ze.items):[];function at(he,He){const Se=be.name("item"),it=(0,g.checkDataTypes)(de,Se,Re.opts.strictNumbers,g.DataType.Wrong),dt=be.const("indices",o._`{}`);be.for(o._`;${he}--;`,()=>{be.let(Se,o._`${ge}[${he}]`),be.if(it,o._`continue`),de.length>1&&be.if(o._`typeof ${Se} == "string"`,o._`${Se} += "_"`),be.if(o._`typeof ${dt}[${Se}] == "number"`,()=>{be.assign(He,o._`${dt}[${Se}]`),Ee.error(),be.assign(tt,!1).break()}).code(o._`${dt}[${Se}] = ${he}`)})}function Be(he,He){const Se=(0,V.useFunc)(be,oe.default),it=be.name("outer");be.label(it).for(o._`;${he}--;`,()=>be.for(o._`${He} = ${he}; ${He}--;`,()=>be.if(o._`${Se}(${ge}[${he}], ${ge}[${He}])`,()=>{Ee.error(),be.assign(tt,!1).break(it)})))}Ee.block$data(tt,function Fe(){const he=be.let("i",o._`${ge}.length`),He=be.let("j");Ee.setParams({i:he,j:He}),be.assign(tt,!0),be.if(o._`${he} > 1`,()=>(function _t(){return de.length>0&&!de.some(he=>"object"===he||"array"===he)}()?at:Be)(he,He))},o._`${vt} === false`),Ee.ok(tt)}}},7413:vn=>{"use strict";vn.exports=function J(F,g){if(F===g)return!0;if(F&&g&&"object"==typeof F&&"object"==typeof g){if(F.constructor!==g.constructor)return!1;var o,V,oe;if(Array.isArray(F)){if((o=F.length)!=g.length)return!1;for(V=o;0!=V--;)if(!J(F[V],g[V]))return!1;return!0}if(F.constructor===RegExp)return F.source===g.source&&F.flags===g.flags;if(F.valueOf!==Object.prototype.valueOf)return F.valueOf()===g.valueOf();if(F.toString!==Object.prototype.toString)return F.toString()===g.toString();if((o=(oe=Object.keys(F)).length)!==Object.keys(g).length)return!1;for(V=o;0!=V--;)if(!Object.prototype.hasOwnProperty.call(g,oe[V]))return!1;for(V=o;0!=V--;){var De=oe[V];if(!J(F[De],g[De]))return!1}return!0}return F!=F&&g!=g}},9833:(vn,J)=>{!function(F){"use strict";function g(qe){return null!==qe&&"[object Array]"===Object.prototype.toString.call(qe)}function o(qe){return null!==qe&&"[object Object]"===Object.prototype.toString.call(qe)}function V(qe,Mt){if(qe===Mt)return!0;if(Object.prototype.toString.call(qe)!==Object.prototype.toString.call(Mt))return!1;if(!0===g(qe)){if(qe.length!==Mt.length)return!1;for(var hn=0;hn",9:"Array"},Be="UnquotedIdentifier",he="QuotedIdentifier",He="Rbracket",Se="Rparen",it="Comma",dt="Colon",jt="Rbrace",Wt="Number",wn="Current",Wn="Expref",di="Pipe",dn="GTE",nt="LTE",Je="Flatten",Ae="Star",Ue="Filter",Ze="Dot",H="Not",te="Lbrace",xe="Lbracket",Ce="Lparen",zt="Literal",rt={".":Ze,"*":Ae,",":it,":":dt,"{":te,"}":jt,"]":He,"(":Ce,")":Se,"@":wn},xt={"<":!0,">":!0,"=":!0,"!":!0},Gt={" ":!0,"\t":!0,"\n":!0};function xn(qe){return qe>="a"&&qe<="z"||qe>="A"&&qe<="Z"||"_"===qe}function In(qe){return qe>="0"&&qe<="9"||"-"===qe}function xi(qe){return qe>="a"&&qe<="z"||qe>="A"&&qe<="Z"||qe>="0"&&qe<="9"||"_"===qe}function or(){}or.prototype={tokenize:function(qe){var Bt,hn,Mn,Mt=[];for(this._current=0;this._current"===Bt?"="===qe[this._current]?(this._current++,{type:dn,value:">=",start:Mt}):{type:"GT",value:">",start:Mt}:"="===Bt&&"="===qe[this._current]?(this._current++,{type:"EQ",value:"==",start:Mt}):void 0},_consumeLiteral:function(qe){this._current++;for(var hn,Mt=this._current,Bt=qe.length;"`"!==qe[this._current]&&this._current=0)return!0;if(["true","false","null"].indexOf(qe)>=0)return!0;if(!("-0123456789".indexOf(qe[0])>=0))return!1;try{return JSON.parse(qe),!0}catch{return!1}}};var ci={};function Dr(){}function Tr(qe){this.runtime=qe}function cn(qe){this._interpreter=qe,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[be]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[be]}]},contains:{_func:this._functionContains,_signature:[{types:[Te,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[Te]},{types:[Te]}]},floor:{_func:this._functionFloor,_signature:[{types:[be]}]},length:{_func:this._functionLength,_signature:[{types:[Te,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[Te]},{types:[Te]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[Te]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[Te,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}ci.EOF=0,ci[Be]=0,ci[he]=0,ci[He]=0,ci[Se]=0,ci[it]=0,ci[jt]=0,ci[Wt]=0,ci[wn]=0,ci[Wn]=0,ci[di]=1,ci.Or=2,ci.And=3,ci.EQ=5,ci.GT=5,ci.LT=5,ci[dn]=5,ci[nt]=5,ci.NE=5,ci[Je]=9,ci[Ae]=20,ci[Ue]=21,ci[Ze]=40,ci[H]=45,ci[te]=50,ci[xe]=55,ci[Ce]=60,Dr.prototype={parse:function(qe){this._loadTokens(qe),this.index=0;var Mt=this.expression(0);if("EOF"!==this._lookahead(0)){var Bt=this._lookaheadToken(0),hn=new Error("Unexpected token type: "+Bt.type+", value: "+Bt.value);throw hn.name="ParserError",hn}return Mt},_loadTokens:function(qe){var Bt=(new or).tokenize(qe);Bt.push({type:"EOF",value:"",start:qe.length}),this.tokens=Bt},expression:function(qe){var Mt=this._lookaheadToken(0);this._advance();for(var Bt=this.nud(Mt),hn=this._lookahead(0);qe=0?this.expression(qe):Mt===xe?(this._match(xe),this._parseMultiselectList()):Mt===te?(this._match(te),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(qe){var Mt;if(ci[this._lookahead(0)]<10)Mt={type:"Identity"};else if(this._lookahead(0)===xe)Mt=this.expression(qe);else if(this._lookahead(0)===Ue)Mt=this.expression(qe);else{if(this._lookahead(0)!==Ze){var Bt=this._lookaheadToken(0),hn=new Error("Sytanx error, unexpected token: "+Bt.value+"("+Bt.type+")");throw hn.name="ParserError",hn}this._match(Ze),Mt=this._parseDotRHS(qe)}return Mt},_parseMultiselectList:function(){for(var qe=[];this._lookahead(0)!==He;){var Mt=this.expression(0);if(qe.push(Mt),this._lookahead(0)===it&&(this._match(it),this._lookahead(0)===He))throw new Error("Unexpected token Rbracket")}return this._match(He),{type:"MultiSelectList",children:qe}},_parseMultiselectHash:function(){for(var Bt,hn,Mn,qe=[],Mt=[Be,he];;){if(Bt=this._lookaheadToken(0),Mt.indexOf(Bt.type)<0)throw new Error("Expecting an identifier token, got: "+Bt.type);if(hn=Bt.value,this._advance(),this._match(dt),Mn=this.expression(0),qe.push({type:"KeyValuePair",name:hn,value:Mn}),this._lookahead(0)===it)this._match(it);else if(this._lookahead(0)===jt){this._match(jt);break}}return{type:"MultiSelectHash",children:qe}}},Tr.prototype={search:function(qe,Mt){return this.visit(qe,Mt)},visit:function(qe,Mt){var Bt,hn,Mn,Vi,ni,Qi,dr,Jr,Ki;switch(qe.type){case"Field":return null!==Mt&&o(Mt)?void 0===(Qi=Mt[qe.name])?null:Qi:null;case"Subexpression":for(Mn=this.visit(qe.children[0],Mt),Ki=1;Ki0)for(Ki=qa;Kixc;Ki+=mo)Mn.push(Mt[Ki]);return Mn;case"Projection":var Ss=this.visit(qe.children[0],Mt);if(!g(Ss))return null;for(Jr=[],Ki=0;Kini;break;case dn:Mn=Vi>=ni;break;case"LT":Mn=Vi=qe&&(Mt=Bt<0?qe-1:qe),Mt}},cn.prototype={callFunction:function(qe,Mt){var Bt=this.functionTable[qe];if(void 0===Bt)throw new Error("Unknown function: "+qe+"()");return this._validateArgs(qe,Mt,Bt._signature),Bt._func.call(this,Mt)},_validateArgs:function(qe,Mt,Bt){var hn;if(Bt[Bt.length-1].variadic){if(Mt.length=0;Mn--)hn+=Bt[Mn];return hn}var Vi=qe[0].slice(0);return Vi.reverse(),Vi},_functionAbs:function(qe){return Math.abs(qe[0])},_functionCeil:function(qe){return Math.ceil(qe[0])},_functionAvg:function(qe){for(var Mt=0,Bt=qe[0],hn=0;hn=0},_functionFloor:function(qe){return Math.floor(qe[0])},_functionLength:function(qe){return o(qe[0])?Object.keys(qe[0]).length:qe[0].length},_functionMap:function(qe){for(var Mt=[],Bt=this._interpreter,hn=qe[0],Mn=qe[1],Vi=0;Vi0){if(this._getTypeName(qe[0][0])===be)return Math.max.apply(Math,qe[0]);for(var Bt=qe[0],hn=Bt[0],Mn=1;Mn0){if(this._getTypeName(qe[0][0])===be)return Math.min.apply(Math,qe[0]);for(var Bt=qe[0],hn=Bt[0],Mn=1;MnYs?1:KiMn&&(Mn=ni,Vi=Bt[Qi]);return Vi},_functionMinBy:function(qe){for(var Vi,ni,Bt=qe[0],hn=this.createKeyFunction(qe[1],[be,Te]),Mn=1/0,Qi=0;Qi{"use strict";var J=vn.exports=function(o,V,oe){"function"==typeof V&&(oe=V,V={}),F(V,"function"==typeof(oe=V.cb||oe)?oe:oe.pre||function(){},oe.post||function(){},o,"",o)};function F(o,V,oe,De,pe,Ee,be,ge,Te,Ve){if(De&&"object"==typeof De&&!Array.isArray(De)){for(var ze in V(De,pe,Ee,be,ge,Te,Ve),De){var vt=De[ze];if(Array.isArray(vt)){if(ze in J.arrayKeywords)for(var Re=0;Re{"use strict";var F={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},g="a".charCodeAt();J.parse=function(Re,tt,de){var Fe={},_t=0,at=0,Be=0,he=de&&de.bigint&&typeof BigInt<"u";return{data:function He(Je,Ae){var Ue;Se(),$i(Je,"value");var Ze=Wn();switch(Ze){case"t":wn("rue"),Ue=!0;break;case"f":wn("alse"),Ue=!1;break;case"n":wn("ull"),Ue=null;break;case'"':Ue=it();break;case"[":Ue=function jt(Je){Se();var Ae=[],Ue=0;if("]"==Wn())return Ae;for(di();;){Ae.push(He(Je+"/"+Ue)),Se();var H=Wn();if("]"==H)break;","!=H&&nt(),Se(),Ue++}return Ae}(Je);break;case"{":Ue=function Wt(Je){Se();var Ae={};if("}"==Wn())return Ae;for(di();;){var Ue=ui();'"'!=Wn()&&nt();var Ze=it(),H=Je+"/"+vt(Ze);Hr(H,"key",Ue),$i(H,"keyEnd"),Se(),":"!=Wn()&&nt(),Se(),Ae[Ze]=He(H),Se();var te=Wn();if("}"==te)break;","!=te&&nt(),Se()}return Ae}(Je);break;default:di(),"-0123456789".indexOf(Ze)>=0?Ue=function dt(){var Je="",Ae=!0;"-"==Re[Be]&&(Je+=Wn()),Je+="0"==Re[Be]?Wn():Li(),"."==Re[Be]&&(Je+=Wn()+Li(),Ae=!1),("e"==Re[Be]||"E"==Re[Be])&&(Je+=Wn(),("+"==Re[Be]||"-"==Re[Be])&&(Je+=Wn()),Je+=Li(),Ae=!1);var Ue=+Je;return he&&Ae&&(Ue>Number.MAX_SAFE_INTEGER||Ue="a"&&Ue<="f"?Ae+=Ue.charCodeAt()-g+10:Ue>="0"&&Ue<="9"?Ae+=+Ue:nt()}return String.fromCharCode(Ae)}function Li(){for(var Je="";Re[Be]>="0"&&Re[Be]<="9";)Je+=Wn();if(Je.length)return Je;ht(),dn()}function $i(Je,Ae){Hr(Je,Ae,ui())}function Hr(Je,Ae,Ue){Fe[Je]=Fe[Je]||{},Fe[Je][Ae]=Ue}function ui(){return{line:_t,column:at,pos:Be}}function dn(){throw new SyntaxError("Unexpected token "+Re[Be]+" in JSON at position "+Be)}function nt(){di(),dn()}function ht(){if(Be>=Re.length)throw new SyntaxError("Unexpected end of JSON input")}},J.stringify=function(Re,tt,de){if(V(Re)){var _t,at,Fe=0,Be="object"==typeof de?de.space:de;switch(typeof Be){case"number":var he=Be>10?10:Be<0?0:Math.floor(Be);Be=he&&Hr(he," "),_t=he,at=he;break;case"string":Be=Be.slice(0,10),_t=0,at=0;for(var He=0;He=0}var oe=/"|\\/g,De=/[\b]/g,pe=/\f/g,Ee=/\n/g,be=/\r/g,ge=/\t/g;function Te(Re){return'"'+(Re=Re.replace(oe,"\\$&").replace(pe,"\\f").replace(De,"\\b").replace(Ee,"\\n").replace(be,"\\r").replace(ge,"\\t"))+'"'}var Ve=/~/g,ze=/\//g;function vt(Re){return Re.replace(Ve,"~0").replace(ze,"~1")}},6915:vn=>{var J=function(F,g){var o,V,oe=1,De=0,pe=0,Ee=String.alphabet;function be(ge,Te,Ve){if(Ve){for(o=Te;(Ve=be(ge,o))<76&&Ve>65;)++o;return+ge.slice(Te-1,o)}return(Ve=Ee&&Ee.indexOf(ge.charAt(Te)))>-1?Ve+76:(Ve=ge.charCodeAt(Te)||0)<45||Ve>127?Ve:Ve<46?65:Ve<48?Ve-1:Ve<58?Ve+18:Ve<65?Ve-11:Ve<91?Ve+11:Ve<97?Ve-37:Ve<123?Ve+5:Ve-63}if((F+="")!=(g+=""))for(;oe;)if(V=be(F,De++),oe=be(g,pe++),V<76&&oe<76&&V>66&&oe>66&&(V=be(F,De,De),oe=be(g,pe,De=o),pe=o),V!=oe)return V{"use strict";F.d(J,{t:()=>o});var g=F(6104);class o extends g.B{constructor(oe){super(),this._value=oe}get value(){return this.getValue()}_subscribe(oe){const De=super._subscribe(oe);return!De.closed&&oe.next(this._value),De}getValue(){const{hasError:oe,thrownError:De,_value:pe}=this;if(oe)throw De;return this._throwIfClosed(),pe}next(oe){super.next(this._value=oe)}}},9406:(vn,J,F)=>{"use strict";F.d(J,{c:()=>be});var g=F(4500),o=F(2029),V=F(1479),oe=F(6106),De=F(2493),pe=F(4418),Ee=F(2895);let be=(()=>{class ze{constructor(Re){Re&&(this._subscribe=Re)}lift(Re){const tt=new ze;return tt.source=this,tt.operator=Re,tt}subscribe(Re,tt,de){const Fe=function Ve(ze){return ze&&ze instanceof g.vU||function Te(ze){return ze&&(0,pe.T)(ze.next)&&(0,pe.T)(ze.error)&&(0,pe.T)(ze.complete)}(ze)&&(0,o.Uv)(ze)}(Re)?Re:new g.Ms(Re,tt,de);return(0,Ee.Y)(()=>{const{operator:_t,source:at}=this;Fe.add(_t?_t.call(Fe,at):at?this._subscribe(Fe):this._trySubscribe(Fe))}),Fe}_trySubscribe(Re){try{return this._subscribe(Re)}catch(tt){Re.error(tt)}}forEach(Re,tt){return new(tt=ge(tt))((de,Fe)=>{const _t=new g.Ms({next:at=>{try{Re(at)}catch(Be){Fe(Be),_t.unsubscribe()}},error:Fe,complete:de});this.subscribe(_t)})}_subscribe(Re){var tt;return null===(tt=this.source)||void 0===tt?void 0:tt.subscribe(Re)}[V.s](){return this}pipe(...Re){return(0,oe.m)(Re)(this)}toPromise(Re){return new(Re=ge(Re))((tt,de)=>{let Fe;this.subscribe(_t=>Fe=_t,_t=>de(_t),()=>tt(Fe))})}}return ze.create=vt=>new ze(vt),ze})();function ge(ze){var vt;return null!==(vt=ze??De.$.Promise)&&void 0!==vt?vt:Promise}},9090:(vn,J,F)=>{"use strict";F.d(J,{m:()=>V});var g=F(6104),o=F(4808);class V extends g.B{constructor(De=1/0,pe=1/0,Ee=o.U){super(),this._bufferSize=De,this._windowTime=pe,this._timestampProvider=Ee,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=pe===1/0,this._bufferSize=Math.max(1,De),this._windowTime=Math.max(1,pe)}next(De){const{isStopped:pe,_buffer:Ee,_infiniteTimeWindow:be,_timestampProvider:ge,_windowTime:Te}=this;pe||(Ee.push(De),!be&&Ee.push(ge.now()+Te)),this._trimBuffer(),super.next(De)}_subscribe(De){this._throwIfClosed(),this._trimBuffer();const pe=this._innerSubscribe(De),{_infiniteTimeWindow:Ee,_buffer:be}=this,ge=be.slice();for(let Te=0;Te{"use strict";F.d(J,{B:()=>Ee});var g=F(9406),o=F(2029);const oe=(0,F(4520).L)(ge=>function(){ge(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var De=F(9583),pe=F(2895);let Ee=(()=>{class ge extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ve){const ze=new be(this,this);return ze.operator=Ve,ze}_throwIfClosed(){if(this.closed)throw new oe}next(Ve){(0,pe.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ze of this.currentObservers)ze.next(Ve)}})}error(Ve){(0,pe.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ve;const{observers:ze}=this;for(;ze.length;)ze.shift().error(Ve)}})}complete(){(0,pe.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ve}=this;for(;Ve.length;)Ve.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ve;return(null===(Ve=this.observers)||void 0===Ve?void 0:Ve.length)>0}_trySubscribe(Ve){return this._throwIfClosed(),super._trySubscribe(Ve)}_subscribe(Ve){return this._throwIfClosed(),this._checkFinalizedStatuses(Ve),this._innerSubscribe(Ve)}_innerSubscribe(Ve){const{hasError:ze,isStopped:vt,observers:Re}=this;return ze||vt?o.Kn:(this.currentObservers=null,Re.push(Ve),new o.yU(()=>{this.currentObservers=null,(0,De.o)(Re,Ve)}))}_checkFinalizedStatuses(Ve){const{hasError:ze,thrownError:vt,isStopped:Re}=this;ze?Ve.error(vt):Re&&Ve.complete()}asObservable(){const Ve=new g.c;return Ve.source=this,Ve}}return ge.create=(Te,Ve)=>new be(Te,Ve),ge})();class be extends Ee{constructor(Te,Ve){super(),this.destination=Te,this.source=Ve}next(Te){var Ve,ze;null===(ze=null===(Ve=this.destination)||void 0===Ve?void 0:Ve.next)||void 0===ze||ze.call(Ve,Te)}error(Te){var Ve,ze;null===(ze=null===(Ve=this.destination)||void 0===Ve?void 0:Ve.error)||void 0===ze||ze.call(Ve,Te)}complete(){var Te,Ve;null===(Ve=null===(Te=this.destination)||void 0===Te?void 0:Te.complete)||void 0===Ve||Ve.call(Te)}_subscribe(Te){var Ve,ze;return null!==(ze=null===(Ve=this.source)||void 0===Ve?void 0:Ve.subscribe(Te))&&void 0!==ze?ze:o.Kn}}},4500:(vn,J,F)=>{"use strict";F.d(J,{Ms:()=>de,vU:()=>ze});var g=F(4418),o=F(2029),V=F(2493),oe=F(6379),De=F(262);const pe=ge("C",void 0,void 0);function ge(he,He,Se){return{kind:he,value:He,error:Se}}var Te=F(6171),Ve=F(2895);class ze extends o.yU{constructor(He){super(),this.isStopped=!1,He?(this.destination=He,(0,o.Uv)(He)&&He.add(this)):this.destination=Be}static create(He,Se,it){return new de(He,Se,it)}next(He){this.isStopped?at(function be(he){return ge("N",he,void 0)}(He),this):this._next(He)}error(He){this.isStopped?at(function Ee(he){return ge("E",void 0,he)}(He),this):(this.isStopped=!0,this._error(He))}complete(){this.isStopped?at(pe,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(He){this.destination.next(He)}_error(He){try{this.destination.error(He)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const vt=Function.prototype.bind;function Re(he,He){return vt.call(he,He)}class tt{constructor(He){this.partialObserver=He}next(He){const{partialObserver:Se}=this;if(Se.next)try{Se.next(He)}catch(it){Fe(it)}}error(He){const{partialObserver:Se}=this;if(Se.error)try{Se.error(He)}catch(it){Fe(it)}else Fe(He)}complete(){const{partialObserver:He}=this;if(He.complete)try{He.complete()}catch(Se){Fe(Se)}}}class de extends ze{constructor(He,Se,it){let dt;if(super(),(0,g.T)(He)||!He)dt={next:He??void 0,error:Se??void 0,complete:it??void 0};else{let jt;this&&V.$.useDeprecatedNextContext?(jt=Object.create(He),jt.unsubscribe=()=>this.unsubscribe(),dt={next:He.next&&Re(He.next,jt),error:He.error&&Re(He.error,jt),complete:He.complete&&Re(He.complete,jt)}):dt=He}this.destination=new tt(dt)}}function Fe(he){V.$.useDeprecatedSynchronousErrorHandling?(0,Ve.l)(he):(0,oe.m)(he)}function at(he,He){const{onStoppedNotification:Se}=V.$;Se&&Te.f.setTimeout(()=>Se(he,He))}const Be={closed:!0,next:De.l,error:function _t(he){throw he},complete:De.l}},2029:(vn,J,F)=>{"use strict";F.d(J,{Kn:()=>pe,yU:()=>De,Uv:()=>Ee});var g=F(4418);const V=(0,F(4520).L)(ge=>function(Ve){ge(this),this.message=Ve?`${Ve.length} errors occurred during unsubscription:\n${Ve.map((ze,vt)=>`${vt+1}) ${ze.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ve});var oe=F(9583);class De{constructor(Te){this.initialTeardown=Te,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Te;if(!this.closed){this.closed=!0;const{_parentage:Ve}=this;if(Ve)if(this._parentage=null,Array.isArray(Ve))for(const Re of Ve)Re.remove(this);else Ve.remove(this);const{initialTeardown:ze}=this;if((0,g.T)(ze))try{ze()}catch(Re){Te=Re instanceof V?Re.errors:[Re]}const{_finalizers:vt}=this;if(vt){this._finalizers=null;for(const Re of vt)try{be(Re)}catch(tt){Te=Te??[],tt instanceof V?Te=[...Te,...tt.errors]:Te.push(tt)}}if(Te)throw new V(Te)}}add(Te){var Ve;if(Te&&Te!==this)if(this.closed)be(Te);else{if(Te instanceof De){if(Te.closed||Te._hasParent(this))return;Te._addParent(this)}(this._finalizers=null!==(Ve=this._finalizers)&&void 0!==Ve?Ve:[]).push(Te)}}_hasParent(Te){const{_parentage:Ve}=this;return Ve===Te||Array.isArray(Ve)&&Ve.includes(Te)}_addParent(Te){const{_parentage:Ve}=this;this._parentage=Array.isArray(Ve)?(Ve.push(Te),Ve):Ve?[Ve,Te]:Te}_removeParent(Te){const{_parentage:Ve}=this;Ve===Te?this._parentage=null:Array.isArray(Ve)&&(0,oe.o)(Ve,Te)}remove(Te){const{_finalizers:Ve}=this;Ve&&(0,oe.o)(Ve,Te),Te instanceof De&&Te._removeParent(this)}}De.EMPTY=(()=>{const ge=new De;return ge.closed=!0,ge})();const pe=De.EMPTY;function Ee(ge){return ge instanceof De||ge&&"closed"in ge&&(0,g.T)(ge.remove)&&(0,g.T)(ge.add)&&(0,g.T)(ge.unsubscribe)}function be(ge){(0,g.T)(ge)?ge():ge.unsubscribe()}},2493:(vn,J,F)=>{"use strict";F.d(J,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},199:(vn,J,F)=>{"use strict";F.d(J,{z:()=>Te});var g=F(9406),o=F(6872),V=F(8399),oe=F(9656),De=F(6219),pe=F(2363),Ee=F(6405),be=F(6111),ge=F(1982);function Te(...vt){const Re=(0,pe.lI)(vt),tt=(0,pe.ms)(vt),{args:de,keys:Fe}=(0,o.D)(vt);if(0===de.length)return(0,V.H)([],Re);const _t=new g.c(function Ve(vt,Re,tt=oe.D){return de=>{ze(Re,()=>{const{length:Fe}=vt,_t=new Array(Fe);let at=Fe,Be=Fe;for(let he=0;he{const He=(0,V.H)(vt[he],Re);let Se=!1;He.subscribe((0,be._)(de,it=>{_t[he]=it,Se||(Se=!0,Be--),Be||de.next(tt(_t.slice()))},()=>{--at||de.complete()}))},de)},de)}}(de,Re,Fe?at=>(0,Ee.e)(Fe,at):oe.D));return tt?_t.pipe((0,De.I)(tt)):_t}function ze(vt,Re,tt){vt?(0,ge.N)(tt,vt,Re):Re()}},6753:(vn,J,F)=>{"use strict";F.d(J,{x:()=>oe});var g=F(5350),o=F(2363),V=F(8399);function oe(...De){return(0,g.K)()((0,V.H)(De,(0,o.lI)(De)))}},8001:(vn,J,F)=>{"use strict";F.d(J,{v:()=>V});var g=F(9406),o=F(8621);function V(oe){return new g.c(De=>{(0,o.Tg)(oe()).subscribe(De)})}},8448:(vn,J,F)=>{"use strict";F.d(J,{w:()=>o});const o=new(F(9406).c)(De=>De.complete())},8399:(vn,J,F)=>{"use strict";F.d(J,{H:()=>it});var g=F(8621),o=F(1982),V=F(9867),oe=F(6111);function De(dt,jt=0){return(0,V.N)((Wt,wn)=>{Wt.subscribe((0,oe._)(wn,Wn=>(0,o.N)(wn,dt,()=>wn.next(Wn),jt),()=>(0,o.N)(wn,dt,()=>wn.complete(),jt),Wn=>(0,o.N)(wn,dt,()=>wn.error(Wn),jt)))})}function pe(dt,jt=0){return(0,V.N)((Wt,wn)=>{wn.add(dt.schedule(()=>Wt.subscribe(wn),jt))})}var ge=F(9406),Ve=F(7028),ze=F(4418);function Re(dt,jt){if(!dt)throw new Error("Iterable cannot be null");return new ge.c(Wt=>{(0,o.N)(Wt,jt,()=>{const wn=dt[Symbol.asyncIterator]();(0,o.N)(Wt,jt,()=>{wn.next().then(Wn=>{Wn.done?Wt.complete():Wt.next(Wn.value)})},0,!0)})})}var tt=F(8932),de=F(5717),Fe=F(5206),_t=F(6472),at=F(7462),Be=F(2246),he=F(8889);function it(dt,jt){return jt?function Se(dt,jt){if(null!=dt){if((0,tt.l)(dt))return function Ee(dt,jt){return(0,g.Tg)(dt).pipe(pe(jt),De(jt))}(dt,jt);if((0,Fe.X)(dt))return function Te(dt,jt){return new ge.c(Wt=>{let wn=0;return jt.schedule(function(){wn===dt.length?Wt.complete():(Wt.next(dt[wn++]),Wt.closed||this.schedule())})})}(dt,jt);if((0,de.y)(dt))return function be(dt,jt){return(0,g.Tg)(dt).pipe(pe(jt),De(jt))}(dt,jt);if((0,at.T)(dt))return Re(dt,jt);if((0,_t.x)(dt))return function vt(dt,jt){return new ge.c(Wt=>{let wn;return(0,o.N)(Wt,jt,()=>{wn=dt[Ve.l](),(0,o.N)(Wt,jt,()=>{let Wn,di;try{({value:Wn,done:di}=wn.next())}catch(ai){return void Wt.error(ai)}di?Wt.complete():Wt.next(Wn)},0,!0)}),()=>(0,ze.T)(wn?.return)&&wn.return()})}(dt,jt);if((0,he.U)(dt))return function He(dt,jt){return Re((0,he.C)(dt),jt)}(dt,jt)}throw(0,Be.L)(dt)}(dt,jt):(0,g.Tg)(dt)}},8129:(vn,J,F)=>{"use strict";F.d(J,{R:()=>Te});var g=F(8621),o=F(9406),V=F(3422),oe=F(5206),De=F(4418),pe=F(6219);const Ee=["addListener","removeListener"],be=["addEventListener","removeEventListener"],ge=["on","off"];function Te(tt,de,Fe,_t){if((0,De.T)(Fe)&&(_t=Fe,Fe=void 0),_t)return Te(tt,de,Fe).pipe((0,pe.I)(_t));const[at,Be]=function Re(tt){return(0,De.T)(tt.addEventListener)&&(0,De.T)(tt.removeEventListener)}(tt)?be.map(he=>He=>tt[he](de,He,Fe)):function ze(tt){return(0,De.T)(tt.addListener)&&(0,De.T)(tt.removeListener)}(tt)?Ee.map(Ve(tt,de)):function vt(tt){return(0,De.T)(tt.on)&&(0,De.T)(tt.off)}(tt)?ge.map(Ve(tt,de)):[];if(!at&&(0,oe.X)(tt))return(0,V.Z)(he=>Te(he,de,Fe))((0,g.Tg)(tt));if(!at)throw new TypeError("Invalid event target");return new o.c(he=>{const He=(...Se)=>he.next(1Be(He)})}function Ve(tt,de){return Fe=>_t=>tt[Fe](de,_t)}},8621:(vn,J,F)=>{"use strict";F.d(J,{Tg:()=>vt});var g=F(7270),o=F(5206),V=F(5717),oe=F(9406),De=F(8932),pe=F(7462),Ee=F(2246),be=F(6472),ge=F(8889),Te=F(4418),Ve=F(6379),ze=F(1479);function vt(he){if(he instanceof oe.c)return he;if(null!=he){if((0,De.l)(he))return function Re(he){return new oe.c(He=>{const Se=he[ze.s]();if((0,Te.T)(Se.subscribe))return Se.subscribe(He);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(he);if((0,o.X)(he))return function tt(he){return new oe.c(He=>{for(let Se=0;Se{he.then(Se=>{He.closed||(He.next(Se),He.complete())},Se=>He.error(Se)).then(null,Ve.m)})}(he);if((0,pe.T)(he))return _t(he);if((0,be.x)(he))return function Fe(he){return new oe.c(He=>{for(const Se of he)if(He.next(Se),He.closed)return;He.complete()})}(he);if((0,ge.U)(he))return function at(he){return _t((0,ge.C)(he))}(he)}throw(0,Ee.L)(he)}function _t(he){return new oe.c(He=>{(function Be(he,He){var Se,it,dt,jt;return(0,g.sH)(this,void 0,void 0,function*(){try{for(Se=(0,g.xN)(he);!(it=yield Se.next()).done;)if(He.next(it.value),He.closed)return}catch(Wt){dt={error:Wt}}finally{try{it&&!it.done&&(jt=Se.return)&&(yield jt.call(Se))}finally{if(dt)throw dt.error}}He.complete()})})(he,He).catch(Se=>He.error(Se))})}},2489:(vn,J,F)=>{"use strict";F.d(J,{h:()=>pe});var g=F(3806),o=F(8621),V=F(8448),oe=F(2363),De=F(8399);function pe(...Ee){const be=(0,oe.lI)(Ee),ge=(0,oe.R0)(Ee,1/0),Te=Ee;return Te.length?1===Te.length?(0,o.Tg)(Te[0]):(0,g.U)(ge)((0,De.H)(Te,be)):V.w}},756:(vn,J,F)=>{"use strict";F.d(J,{of:()=>V});var g=F(2363),o=F(8399);function V(...oe){const De=(0,g.lI)(oe);return(0,o.H)(oe,De)}},3229:(vn,J,F)=>{"use strict";F.d(J,{O:()=>De});var g=F(9406),o=F(4929),V=F(1677);function De(pe=0,Ee,be=o.b){let ge=-1;return null!=Ee&&((0,V.m)(Ee)?be=Ee:ge=Ee),new g.c(Te=>{let Ve=function oe(pe){return pe instanceof Date&&!isNaN(pe)}(pe)?+pe-be.now():pe;Ve<0&&(Ve=0);let ze=0;return be.schedule(function(){Te.closed||(Te.next(ze++),0<=ge?this.schedule(void 0,ge):Te.complete())},Ve)})}},6111:(vn,J,F)=>{"use strict";F.d(J,{_:()=>o});var g=F(4500);function o(oe,De,pe,Ee,be){return new V(oe,De,pe,Ee,be)}class V extends g.vU{constructor(De,pe,Ee,be,ge,Te){super(De),this.onFinalize=ge,this.shouldUnsubscribe=Te,this._next=pe?function(Ve){try{pe(Ve)}catch(ze){De.error(ze)}}:super._next,this._error=be?function(Ve){try{be(Ve)}catch(ze){De.error(ze)}finally{this.unsubscribe()}}:super._error,this._complete=Ee?function(){try{Ee()}catch(Ve){De.error(Ve)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var De;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:pe}=this;super.unsubscribe(),!pe&&(null===(De=this.onFinalize)||void 0===De||De.call(this))}}}},4526:(vn,J,F)=>{"use strict";F.d(J,{W:()=>oe});var g=F(8621),o=F(6111),V=F(9867);function oe(De){return(0,V.N)((pe,Ee)=>{let Te,be=null,ge=!1;be=pe.subscribe((0,o._)(Ee,void 0,void 0,Ve=>{Te=(0,g.Tg)(De(Ve,oe(De)(pe))),be?(be.unsubscribe(),be=null,Te.subscribe(Ee)):ge=!0})),ge&&(be.unsubscribe(),be=null,Te.subscribe(Ee))})}},5350:(vn,J,F)=>{"use strict";F.d(J,{K:()=>o});var g=F(3806);function o(){return(0,g.U)(1)}},4807:(vn,J,F)=>{"use strict";F.d(J,{H:()=>V});var g=F(3422),o=F(4418);function V(oe,De){return(0,o.T)(De)?(0,g.Z)(oe,De,1):(0,g.Z)(oe,1)}},8887:(vn,J,F)=>{"use strict";F.d(J,{B:()=>oe});var g=F(4929),o=F(9867),V=F(6111);function oe(De,pe=g.E){return(0,o.N)((Ee,be)=>{let ge=null,Te=null,Ve=null;const ze=()=>{if(ge){ge.unsubscribe(),ge=null;const Re=Te;Te=null,be.next(Re)}};function vt(){const Re=Ve+De,tt=pe.now();if(tt{Te=Re,Ve=pe.now(),ge||(ge=pe.schedule(vt,De),be.add(ge))},()=>{ze(),be.complete()},void 0,()=>{Te=ge=null}))})}},8283:(vn,J,F)=>{"use strict";F.d(J,{c:()=>vt});var g=F(4929),o=F(6753),V=F(8486),oe=F(9867),De=F(6111),pe=F(262),be=F(3770),ge=F(3422),Te=F(8621);function Ve(Re,tt){return tt?de=>(0,o.x)(tt.pipe((0,V.s)(1),function Ee(){return(0,oe.N)((Re,tt)=>{Re.subscribe((0,De._)(tt,pe.l))})}()),de.pipe(Ve(Re))):(0,ge.Z)((de,Fe)=>(0,Te.Tg)(Re(de,Fe)).pipe((0,V.s)(1),(0,be.u)(de)))}var ze=F(3229);function vt(Re,tt=g.E){const de=(0,ze.O)(Re,tt);return Ve(()=>de)}},3793:(vn,J,F)=>{"use strict";F.d(J,{F:()=>oe});var g=F(9656),o=F(9867),V=F(6111);function oe(pe,Ee=g.D){return pe=pe??De,(0,o.N)((be,ge)=>{let Te,Ve=!0;be.subscribe((0,V._)(ge,ze=>{const vt=Ee(ze);(Ve||!pe(Te,vt))&&(Ve=!1,Te=vt,ge.next(ze))}))})}function De(pe,Ee){return pe===Ee}},8503:(vn,J,F)=>{"use strict";F.d(J,{p:()=>V});var g=F(9867),o=F(6111);function V(oe,De){return(0,g.N)((pe,Ee)=>{let be=0;pe.subscribe((0,o._)(Ee,ge=>oe.call(De,ge,be++)&&Ee.next(ge)))})}},6347:(vn,J,F)=>{"use strict";F.d(J,{j:()=>o});var g=F(9867);function o(V){return(0,g.N)((oe,De)=>{try{oe.subscribe(De)}finally{De.add(V)}})}},3527:(vn,J,F)=>{"use strict";F.d(J,{T:()=>V});var g=F(9867),o=F(6111);function V(oe,De){return(0,g.N)((pe,Ee)=>{let be=0;pe.subscribe((0,o._)(Ee,ge=>{Ee.next(oe.call(De,ge,be++))}))})}},3770:(vn,J,F)=>{"use strict";F.d(J,{u:()=>o});var g=F(3527);function o(V){return(0,g.T)(()=>V)}},3806:(vn,J,F)=>{"use strict";F.d(J,{U:()=>V});var g=F(3422),o=F(9656);function V(oe=1/0){return(0,g.Z)(o.D,oe)}},3422:(vn,J,F)=>{"use strict";F.d(J,{Z:()=>be});var g=F(3527),o=F(8621),V=F(9867),oe=F(1982),De=F(6111),Ee=F(4418);function be(ge,Te,Ve=1/0){return(0,Ee.T)(Te)?be((ze,vt)=>(0,g.T)((Re,tt)=>Te(ze,Re,vt,tt))((0,o.Tg)(ge(ze,vt))),Ve):("number"==typeof Te&&(Ve=Te),(0,V.N)((ze,vt)=>function pe(ge,Te,Ve,ze,vt,Re,tt,de){const Fe=[];let _t=0,at=0,Be=!1;const he=()=>{Be&&!Fe.length&&!_t&&Te.complete()},He=it=>_t{Re&&Te.next(it),_t++;let dt=!1;(0,o.Tg)(Ve(it,at++)).subscribe((0,De._)(Te,jt=>{vt?.(jt),Re?He(jt):Te.next(jt)},()=>{dt=!0},void 0,()=>{if(dt)try{for(_t--;Fe.length&&_tSe(jt)):Se(jt)}he()}catch(jt){Te.error(jt)}}))};return ge.subscribe((0,De._)(Te,He,()=>{Be=!0,he()})),()=>{de?.()}}(ze,vt,ge,Ve)))}},2360:(vn,J,F)=>{"use strict";F.d(J,{S:()=>o});var g=F(6111);function o(V,oe,De,pe,Ee){return(be,ge)=>{let Te=De,Ve=oe,ze=0;be.subscribe((0,g._)(ge,vt=>{const Re=ze++;Ve=Te?V(Ve,vt,Re):(Te=!0,vt),pe&&ge.next(Ve)},Ee&&(()=>{Te&&ge.next(Ve),ge.complete()})))}}},7782:(vn,J,F)=>{"use strict";F.d(J,{u:()=>De});var g=F(8621),o=F(6104),V=F(4500),oe=F(9867);function De(Ee={}){const{connector:be=(()=>new o.B),resetOnError:ge=!0,resetOnComplete:Te=!0,resetOnRefCountZero:Ve=!0}=Ee;return ze=>{let vt,Re,tt,de=0,Fe=!1,_t=!1;const at=()=>{Re?.unsubscribe(),Re=void 0},Be=()=>{at(),vt=tt=void 0,Fe=_t=!1},he=()=>{const He=vt;Be(),He?.unsubscribe()};return(0,oe.N)((He,Se)=>{de++,!_t&&!Fe&&at();const it=tt=tt??be();Se.add(()=>{de--,0===de&&!_t&&!Fe&&(Re=pe(he,Ve))}),it.subscribe(Se),!vt&&de>0&&(vt=new V.Ms({next:dt=>it.next(dt),error:dt=>{_t=!0,at(),Re=pe(Be,ge,dt),it.error(dt)},complete:()=>{Fe=!0,at(),Re=pe(Be,Te),it.complete()}}),(0,g.Tg)(He).subscribe(vt))})(ze)}}function pe(Ee,be,...ge){if(!0===be)return void Ee();if(!1===be)return;const Te=new V.Ms({next:()=>{Te.unsubscribe(),Ee()}});return(0,g.Tg)(be(...ge)).subscribe(Te)}},9990:(vn,J,F)=>{"use strict";F.d(J,{i:()=>o});var g=F(8503);function o(V){return(0,g.p)((oe,De)=>V<=De)}},965:(vn,J,F)=>{"use strict";F.d(J,{Z:()=>oe});var g=F(6753),o=F(2363),V=F(9867);function oe(...De){const pe=(0,o.lI)(De);return(0,V.N)((Ee,be)=>{(pe?(0,g.x)(De,Ee,pe):(0,g.x)(De,Ee)).subscribe(be)})}},2831:(vn,J,F)=>{"use strict";F.d(J,{n:()=>oe});var g=F(8621),o=F(9867),V=F(6111);function oe(De,pe){return(0,o.N)((Ee,be)=>{let ge=null,Te=0,Ve=!1;const ze=()=>Ve&&!ge&&be.complete();Ee.subscribe((0,V._)(be,vt=>{ge?.unsubscribe();let Re=0;const tt=Te++;(0,g.Tg)(De(vt,tt)).subscribe(ge=(0,V._)(be,de=>be.next(pe?pe(vt,de,tt,Re++):de),()=>{ge=null,ze()}))},()=>{Ve=!0,ze()}))})}},8486:(vn,J,F)=>{"use strict";F.d(J,{s:()=>oe});var g=F(8448),o=F(9867),V=F(6111);function oe(De){return De<=0?()=>g.w:(0,o.N)((pe,Ee)=>{let be=0;pe.subscribe((0,V._)(Ee,ge=>{++be<=De&&(Ee.next(ge),De<=be&&Ee.complete())}))})}},6340:(vn,J,F)=>{"use strict";F.d(J,{Q:()=>De});var g=F(9867),o=F(6111),V=F(8621),oe=F(262);function De(pe){return(0,g.N)((Ee,be)=>{(0,V.Tg)(pe).subscribe((0,o._)(be,()=>be.complete(),oe.l)),!be.closed&&Ee.subscribe(be)})}},7049:(vn,J,F)=>{"use strict";F.d(J,{v:()=>V});var g=F(9867),o=F(6111);function V(oe,De=!1){return(0,g.N)((pe,Ee)=>{let be=0;pe.subscribe((0,o._)(Ee,ge=>{const Te=oe(ge,be++);(Te||De)&&Ee.next(ge),!Te&&Ee.complete()}))})}},7236:(vn,J,F)=>{"use strict";F.d(J,{M:()=>De});var g=F(4418),o=F(9867),V=F(6111),oe=F(9656);function De(pe,Ee,be){const ge=(0,g.T)(pe)||Ee||be?{next:pe,error:Ee,complete:be}:pe;return ge?(0,o.N)((Te,Ve)=>{var ze;null===(ze=ge.subscribe)||void 0===ze||ze.call(ge);let vt=!0;Te.subscribe((0,V._)(Ve,Re=>{var tt;null===(tt=ge.next)||void 0===tt||tt.call(ge,Re),Ve.next(Re)},()=>{var Re;vt=!1,null===(Re=ge.complete)||void 0===Re||Re.call(ge),Ve.complete()},Re=>{var tt;vt=!1,null===(tt=ge.error)||void 0===tt||tt.call(ge,Re),Ve.error(Re)},()=>{var Re,tt;vt&&(null===(Re=ge.unsubscribe)||void 0===Re||Re.call(ge)),null===(tt=ge.finalize)||void 0===tt||tt.call(ge)}))}):oe.D}},1227:(vn,J,F)=>{"use strict";F.d(J,{R:()=>De});var g=F(2029);class o extends g.yU{constructor(Ee,be){super()}schedule(Ee,be=0){return this}}const V={setInterval(pe,Ee,...be){const{delegate:ge}=V;return ge?.setInterval?ge.setInterval(pe,Ee,...be):setInterval(pe,Ee,...be)},clearInterval(pe){const{delegate:Ee}=V;return(Ee?.clearInterval||clearInterval)(pe)},delegate:void 0};var oe=F(9583);class De extends o{constructor(Ee,be){super(Ee,be),this.scheduler=Ee,this.work=be,this.pending=!1}schedule(Ee,be=0){var ge;if(this.closed)return this;this.state=Ee;const Te=this.id,Ve=this.scheduler;return null!=Te&&(this.id=this.recycleAsyncId(Ve,Te,be)),this.pending=!0,this.delay=be,this.id=null!==(ge=this.id)&&void 0!==ge?ge:this.requestAsyncId(Ve,this.id,be),this}requestAsyncId(Ee,be,ge=0){return V.setInterval(Ee.flush.bind(Ee,this),ge)}recycleAsyncId(Ee,be,ge=0){if(null!=ge&&this.delay===ge&&!1===this.pending)return be;null!=be&&V.clearInterval(be)}execute(Ee,be){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ge=this._execute(Ee,be);if(ge)return ge;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ee,be){let Te,ge=!1;try{this.work(Ee)}catch(Ve){ge=!0,Te=Ve||new Error("Scheduled action threw falsy error")}if(ge)return this.unsubscribe(),Te}unsubscribe(){if(!this.closed){const{id:Ee,scheduler:be}=this,{actions:ge}=be;this.work=this.state=this.scheduler=null,this.pending=!1,(0,oe.o)(ge,this),null!=Ee&&(this.id=this.recycleAsyncId(be,Ee,null)),this.delay=null,super.unsubscribe()}}}},1246:(vn,J,F)=>{"use strict";F.d(J,{q:()=>V});var g=F(4808);class o{constructor(De,pe=o.now){this.schedulerActionCtor=De,this.now=pe}schedule(De,pe=0,Ee){return new this.schedulerActionCtor(this,De).schedule(Ee,pe)}}o.now=g.U.now;class V extends o{constructor(De,pe=o.now){super(De,pe),this.actions=[],this._active=!1}flush(De){const{actions:pe}=this;if(this._active)return void pe.push(De);let Ee;this._active=!0;do{if(Ee=De.execute(De.state,De.delay))break}while(De=pe.shift());if(this._active=!1,Ee){for(;De=pe.shift();)De.unsubscribe();throw Ee}}}},4929:(vn,J,F)=>{"use strict";F.d(J,{E:()=>V,b:()=>oe});var g=F(1227);const V=new(F(1246).q)(g.R),oe=V},4808:(vn,J,F)=>{"use strict";F.d(J,{U:()=>g});const g={now:()=>(g.delegate||Date).now(),delegate:void 0}},6171:(vn,J,F)=>{"use strict";F.d(J,{f:()=>g});const g={setTimeout(o,V,...oe){const{delegate:De}=g;return De?.setTimeout?De.setTimeout(o,V,...oe):setTimeout(o,V,...oe)},clearTimeout(o){const{delegate:V}=g;return(V?.clearTimeout||clearTimeout)(o)},delegate:void 0}},7028:(vn,J,F)=>{"use strict";F.d(J,{l:()=>o});const o=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},1479:(vn,J,F)=>{"use strict";F.d(J,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},2363:(vn,J,F)=>{"use strict";F.d(J,{R0:()=>pe,lI:()=>De,ms:()=>oe});var g=F(4418),o=F(1677);function V(Ee){return Ee[Ee.length-1]}function oe(Ee){return(0,g.T)(V(Ee))?Ee.pop():void 0}function De(Ee){return(0,o.m)(V(Ee))?Ee.pop():void 0}function pe(Ee,be){return"number"==typeof V(Ee)?Ee.pop():be}},6872:(vn,J,F)=>{"use strict";F.d(J,{D:()=>De});const{isArray:g}=Array,{getPrototypeOf:o,prototype:V,keys:oe}=Object;function De(Ee){if(1===Ee.length){const be=Ee[0];if(g(be))return{args:be,keys:null};if(function pe(Ee){return Ee&&"object"==typeof Ee&&o(Ee)===V}(be)){const ge=oe(be);return{args:ge.map(Te=>be[Te]),keys:ge}}}return{args:Ee,keys:null}}},9583:(vn,J,F)=>{"use strict";function g(o,V){if(o){const oe=o.indexOf(V);0<=oe&&o.splice(oe,1)}}F.d(J,{o:()=>g})},4520:(vn,J,F)=>{"use strict";function g(o){const oe=o(De=>{Error.call(De),De.stack=(new Error).stack});return oe.prototype=Object.create(Error.prototype),oe.prototype.constructor=oe,oe}F.d(J,{L:()=>g})},6405:(vn,J,F)=>{"use strict";function g(o,V){return o.reduce((oe,De,pe)=>(oe[De]=V[pe],oe),{})}F.d(J,{e:()=>g})},2895:(vn,J,F)=>{"use strict";F.d(J,{Y:()=>V,l:()=>oe});var g=F(2493);let o=null;function V(De){if(g.$.useDeprecatedSynchronousErrorHandling){const pe=!o;if(pe&&(o={errorThrown:!1,error:null}),De(),pe){const{errorThrown:Ee,error:be}=o;if(o=null,Ee)throw be}}else De()}function oe(De){g.$.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=De)}},1982:(vn,J,F)=>{"use strict";function g(o,V,oe,De=0,pe=!1){const Ee=V.schedule(function(){oe(),pe?o.add(this.schedule(null,De)):this.unsubscribe()},De);if(o.add(Ee),!pe)return Ee}F.d(J,{N:()=>g})},9656:(vn,J,F)=>{"use strict";function g(o){return o}F.d(J,{D:()=>g})},5206:(vn,J,F)=>{"use strict";F.d(J,{X:()=>g});const g=o=>o&&"number"==typeof o.length&&"function"!=typeof o},7462:(vn,J,F)=>{"use strict";F.d(J,{T:()=>o});var g=F(4418);function o(V){return Symbol.asyncIterator&&(0,g.T)(V?.[Symbol.asyncIterator])}},4418:(vn,J,F)=>{"use strict";function g(o){return"function"==typeof o}F.d(J,{T:()=>g})},8932:(vn,J,F)=>{"use strict";F.d(J,{l:()=>V});var g=F(1479),o=F(4418);function V(oe){return(0,o.T)(oe[g.s])}},6472:(vn,J,F)=>{"use strict";F.d(J,{x:()=>V});var g=F(7028),o=F(4418);function V(oe){return(0,o.T)(oe?.[g.l])}},2319:(vn,J,F)=>{"use strict";F.d(J,{A:()=>V});var g=F(9406),o=F(4418);function V(oe){return!!oe&&(oe instanceof g.c||(0,o.T)(oe.lift)&&(0,o.T)(oe.subscribe))}},5717:(vn,J,F)=>{"use strict";F.d(J,{y:()=>o});var g=F(4418);function o(V){return(0,g.T)(V?.then)}},8889:(vn,J,F)=>{"use strict";F.d(J,{C:()=>V,U:()=>oe});var g=F(7270),o=F(4418);function V(De){return(0,g.AQ)(this,arguments,function*(){const Ee=De.getReader();try{for(;;){const{value:be,done:ge}=yield(0,g.N3)(Ee.read());if(ge)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(be)}}finally{Ee.releaseLock()}})}function oe(De){return(0,o.T)(De?.getReader)}},1677:(vn,J,F)=>{"use strict";F.d(J,{m:()=>o});var g=F(4418);function o(V){return V&&(0,g.T)(V.schedule)}},9867:(vn,J,F)=>{"use strict";F.d(J,{N:()=>V,S:()=>o});var g=F(4418);function o(oe){return(0,g.T)(oe?.lift)}function V(oe){return De=>{if(o(De))return De.lift(function(pe){try{return oe(pe,this)}catch(Ee){this.error(Ee)}});throw new TypeError("Unable to lift unknown Observable type")}}},6219:(vn,J,F)=>{"use strict";F.d(J,{I:()=>oe});var g=F(3527);const{isArray:o}=Array;function oe(De){return(0,g.T)(pe=>function V(De,pe){return o(pe)?De(...pe):De(pe)}(De,pe))}},262:(vn,J,F)=>{"use strict";function g(){}F.d(J,{l:()=>g})},6106:(vn,J,F)=>{"use strict";F.d(J,{F:()=>o,m:()=>V});var g=F(9656);function o(...oe){return V(oe)}function V(oe){return 0===oe.length?g.D:1===oe.length?oe[0]:function(pe){return oe.reduce((Ee,be)=>be(Ee),pe)}}},6379:(vn,J,F)=>{"use strict";F.d(J,{m:()=>V});var g=F(2493),o=F(6171);function V(oe){o.f.setTimeout(()=>{const{onUnhandledError:De}=g.$;if(!De)throw oe;De(oe)})}},2246:(vn,J,F)=>{"use strict";function g(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}F.d(J,{L:()=>g})},8255:function(vn,J){!function(F){"use strict";function g(){for(var yt=arguments.length,ft=Array(yt),Pt=0;Pt1){ft[0]=ft[0].slice(0,-1);for(var Cn=ft.length-1,pn=1;pn= 0x80 (not a basic code point)","invalid-input":"Invalid input"},jt=Math.floor,Wt=String.fromCharCode;function wn(yt){throw new RangeError(it[yt])}function di(yt,ft){var Pt=yt.split("@"),Cn="";return Pt.length>1&&(Cn=Pt[0]+"@",yt=Pt[1]),Cn+function Wn(yt,ft){for(var Pt=[],Cn=yt.length;Cn--;)Pt[Cn]=ft(yt[Cn]);return Pt}((yt=yt.replace(Se,".")).split("."),ft).join(".")}function ai(yt){for(var ft=[],Pt=0,Cn=yt.length;Pt=55296&&pn<=56319&&Pt>1,ft+=jt(ft/Pt);ft>455;pn+=36)ft=jt(ft/35);return jt(pn+36*ft/(ft+38))},dn=function(ft){var Pt=[],Cn=ft.length,pn=0,Di=128,nr=72,tn=ft.lastIndexOf("-");tn<0&&(tn=0);for(var Tt=0;Tt=128&&wn("not-basic"),Pt.push(ft.charCodeAt(Tt));for(var Kt=tn>0?tn+1:0;Kt=Cn&&wn("invalid-input");var ti=$i(ft.charCodeAt(Kt++));(ti>=36||ti>jt((ze-pn)/qn))&&wn("overflow"),pn+=ti*qn;var Ni=pi<=nr?1:pi>=nr+26?26:pi-nr;if(tijt(ze/ii)&&wn("overflow"),qn*=ii}var lr=Pt.length+1;nr=ui(pn-Vn,lr,0==Vn),jt(pn/lr)>ze-Di&&wn("overflow"),Di+=jt(pn/lr),pn%=lr,Pt.splice(pn++,0,Di)}return String.fromCodePoint.apply(String,Pt)},nt=function(ft){var Pt=[],Cn=(ft=ai(ft)).length,pn=128,Di=0,nr=72,tn=!0,Tt=!1,Kt=void 0;try{for(var qn,Vn=ft[Symbol.iterator]();!(tn=(qn=Vn.next()).done);tn=!0){var pi=qn.value;pi<128&&Pt.push(Wt(pi))}}catch(ws){Tt=!0,Kt=ws}finally{try{!tn&&Vn.return&&Vn.return()}finally{if(Tt)throw Kt}}var ti=Pt.length,Ni=ti;for(ti&&Pt.push("-");Ni=pn&&Gsjt((ze-Di)/Fr)&&wn("overflow"),Di+=(ii-pn)*Fr,pn=ii;var is=!0,Ro=!1,Zo=void 0;try{for(var qo,Vo=ft[Symbol.iterator]();!(is=(qo=Vo.next()).done);is=!0){var ea=qo.value;if(eaze&&wn("overflow"),ea==pn){for(var oo=Di,xo=36;;xo+=36){var ta=xo<=nr?1:xo>=nr+26?26:xo-nr;if(oo>6|192).toString(16).toUpperCase()+"%"+(63&ft|128).toString(16).toUpperCase():"%"+(ft>>12|224).toString(16).toUpperCase()+"%"+(ft>>6&63|128).toString(16).toUpperCase()+"%"+(63&ft|128).toString(16).toUpperCase()}function H(yt){for(var ft="",Pt=0,Cn=yt.length;Pt=194&&pn<224){if(Cn-Pt>=6){var Di=parseInt(yt.substr(Pt+4,2),16);ft+=String.fromCharCode((31&pn)<<6|63&Di)}else ft+=yt.substr(Pt,6);Pt+=6}else if(pn>=224){if(Cn-Pt>=9){var nr=parseInt(yt.substr(Pt+4,2),16),tn=parseInt(yt.substr(Pt+7,2),16);ft+=String.fromCharCode((15&pn)<<12|(63&nr)<<6|63&tn)}else ft+=yt.substr(Pt,9);Pt+=9}else ft+=yt.substr(Pt,3),Pt+=3}return ft}function te(yt,ft){function Pt(Cn){var pn=H(Cn);return pn.match(ft.UNRESERVED)?pn:Cn}return yt.scheme&&(yt.scheme=String(yt.scheme).replace(ft.PCT_ENCODED,Pt).toLowerCase().replace(ft.NOT_SCHEME,"")),void 0!==yt.userinfo&&(yt.userinfo=String(yt.userinfo).replace(ft.PCT_ENCODED,Pt).replace(ft.NOT_USERINFO,Ze).replace(ft.PCT_ENCODED,oe)),void 0!==yt.host&&(yt.host=String(yt.host).replace(ft.PCT_ENCODED,Pt).toLowerCase().replace(ft.NOT_HOST,Ze).replace(ft.PCT_ENCODED,oe)),void 0!==yt.path&&(yt.path=String(yt.path).replace(ft.PCT_ENCODED,Pt).replace(yt.scheme?ft.NOT_PATH:ft.NOT_PATH_NOSCHEME,Ze).replace(ft.PCT_ENCODED,oe)),void 0!==yt.query&&(yt.query=String(yt.query).replace(ft.PCT_ENCODED,Pt).replace(ft.NOT_QUERY,Ze).replace(ft.PCT_ENCODED,oe)),void 0!==yt.fragment&&(yt.fragment=String(yt.fragment).replace(ft.PCT_ENCODED,Pt).replace(ft.NOT_FRAGMENT,Ze).replace(ft.PCT_ENCODED,oe)),yt}function xe(yt){return yt.replace(/^0*(.*)/,"$1")||"0"}function Ce(yt,ft){var Pt=yt.match(ft.IPV4ADDRESS)||[],pn=Te(Pt,2)[1];return pn?pn.split(".").map(xe).join("."):yt}function zt(yt,ft){var Pt=yt.match(ft.IPV6ADDRESS)||[],Cn=Te(Pt,3),pn=Cn[1],Di=Cn[2];if(pn){for(var nr=pn.toLowerCase().split("::").reverse(),tn=Te(nr,2),Tt=tn[0],Kt=tn[1],Vn=Kt?Kt.split(":").map(xe):[],qn=Tt.split(":").map(xe),pi=ft.IPV4ADDRESS.test(qn[qn.length-1]),ti=pi?7:8,Ni=qn.length-ti,ii=Array(ti),lr=0;lr1){var Vr=ii.slice(0,xs.index),Gs=ii.slice(xs.index+xs.length);ks=Vr.join(":")+"::"+Gs.join(":")}else ks=ii.join(":");return Di&&(ks+="%"+Di),ks}return yt}var rt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,xt=void 0==="".match(/(){0}/)[1];function Gt(yt){var ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt={},Cn=!1!==ft.iri?ge:be;"suffix"===ft.reference&&(yt=(ft.scheme?ft.scheme+":":"")+"//"+yt);var pn=yt.match(rt);if(pn){xt?(Pt.scheme=pn[1],Pt.userinfo=pn[3],Pt.host=pn[4],Pt.port=parseInt(pn[5],10),Pt.path=pn[6]||"",Pt.query=pn[7],Pt.fragment=pn[8],isNaN(Pt.port)&&(Pt.port=pn[5])):(Pt.scheme=pn[1]||void 0,Pt.userinfo=-1!==yt.indexOf("@")?pn[3]:void 0,Pt.host=-1!==yt.indexOf("//")?pn[4]:void 0,Pt.port=parseInt(pn[5],10),Pt.path=pn[6]||"",Pt.query=-1!==yt.indexOf("?")?pn[7]:void 0,Pt.fragment=-1!==yt.indexOf("#")?pn[8]:void 0,isNaN(Pt.port)&&(Pt.port=yt.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?pn[4]:void 0)),Pt.host&&(Pt.host=zt(Ce(Pt.host,Cn),Cn)),Pt.reference=void 0!==Pt.scheme||void 0!==Pt.userinfo||void 0!==Pt.host||void 0!==Pt.port||Pt.path||void 0!==Pt.query?void 0===Pt.scheme?"relative":void 0===Pt.fragment?"absolute":"uri":"same-document",ft.reference&&"suffix"!==ft.reference&&ft.reference!==Pt.reference&&(Pt.error=Pt.error||"URI is not a "+ft.reference+" reference.");var Di=Ue[(ft.scheme||Pt.scheme||"").toLowerCase()];if(ft.unicodeSupport||Di&&Di.unicodeSupport)te(Pt,Cn);else{if(Pt.host&&(ft.domainHost||Di&&Di.domainHost))try{Pt.host=Ae.toASCII(Pt.host.replace(Cn.PCT_ENCODED,H).toLowerCase())}catch(nr){Pt.error=Pt.error||"Host's domain name can not be converted to ASCII via punycode: "+nr}te(Pt,be)}Di&&Di.parse&&Di.parse(Pt,ft)}else Pt.error=Pt.error||"URI can not be parsed.";return Pt}var In=/^\.\.?\//,xi=/^\/\.(\/|$)/,or=/^\/\.\.(\/|$)/,ci=/^\/?(?:.|\n)*?(?=\/|$)/;function Dr(yt){for(var ft=[];yt.length;)if(yt.match(In))yt=yt.replace(In,"");else if(yt.match(xi))yt=yt.replace(xi,"/");else if(yt.match(or))yt=yt.replace(or,"/"),ft.pop();else if("."===yt||".."===yt)yt="";else{var Pt=yt.match(ci);if(!Pt)throw new Error("Unexpected dot segment condition");var Cn=Pt[0];yt=yt.slice(Cn.length),ft.push(Cn)}return ft.join("")}function Tr(yt){var ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=ft.iri?ge:be,Cn=[],pn=Ue[(ft.scheme||yt.scheme||"").toLowerCase()];if(pn&&pn.serialize&&pn.serialize(yt,ft),yt.host&&!Pt.IPV6ADDRESS.test(yt.host)&&(ft.domainHost||pn&&pn.domainHost))try{yt.host=ft.iri?Ae.toUnicode(yt.host):Ae.toASCII(yt.host.replace(Pt.PCT_ENCODED,H).toLowerCase())}catch(tn){yt.error=yt.error||"Host's domain name can not be converted to "+(ft.iri?"Unicode":"ASCII")+" via punycode: "+tn}te(yt,Pt),"suffix"!==ft.reference&&yt.scheme&&(Cn.push(yt.scheme),Cn.push(":"));var Di=function xn(yt,ft){var Pt=!1!==ft.iri?ge:be,Cn=[];return void 0!==yt.userinfo&&(Cn.push(yt.userinfo),Cn.push("@")),void 0!==yt.host&&Cn.push(zt(Ce(String(yt.host),Pt),Pt).replace(Pt.IPV6ADDRESS,function(pn,Di,nr){return"["+Di+(nr?"%25"+nr:"")+"]"})),("number"==typeof yt.port||"string"==typeof yt.port)&&(Cn.push(":"),Cn.push(String(yt.port))),Cn.length?Cn.join(""):void 0}(yt,ft);if(void 0!==Di&&("suffix"!==ft.reference&&Cn.push("//"),Cn.push(Di),yt.path&&"/"!==yt.path.charAt(0)&&Cn.push("/")),void 0!==yt.path){var nr=yt.path;!ft.absolutePath&&(!pn||!pn.absolutePath)&&(nr=Dr(nr)),void 0===Di&&(nr=nr.replace(/^\/\//,"/%2F")),Cn.push(nr)}return void 0!==yt.query&&(Cn.push("?"),Cn.push(yt.query)),void 0!==yt.fragment&&(Cn.push("#"),Cn.push(yt.fragment)),Cn.join("")}function cn(yt,ft){var Pt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},pn={};return arguments[3]||(yt=Gt(Tr(yt,Pt),Pt),ft=Gt(Tr(ft,Pt),Pt)),!(Pt=Pt||{}).tolerant&&ft.scheme?(pn.scheme=ft.scheme,pn.userinfo=ft.userinfo,pn.host=ft.host,pn.port=ft.port,pn.path=Dr(ft.path||""),pn.query=ft.query):(void 0!==ft.userinfo||void 0!==ft.host||void 0!==ft.port?(pn.userinfo=ft.userinfo,pn.host=ft.host,pn.port=ft.port,pn.path=Dr(ft.path||""),pn.query=ft.query):(ft.path?("/"===ft.path.charAt(0)?pn.path=Dr(ft.path):(pn.path=void 0===yt.userinfo&&void 0===yt.host&&void 0===yt.port||yt.path?yt.path?yt.path.slice(0,yt.path.lastIndexOf("/")+1)+ft.path:ft.path:"/"+ft.path,pn.path=Dr(pn.path)),pn.query=ft.query):(pn.path=yt.path,pn.query=void 0!==ft.query?ft.query:yt.query),pn.userinfo=yt.userinfo,pn.host=yt.host,pn.port=yt.port),pn.scheme=yt.scheme),pn.fragment=ft.fragment,pn}function Mt(yt,ft){return yt&&yt.toString().replace(ft&&ft.iri?ge.PCT_ENCODED:be.PCT_ENCODED,H)}var Bt={scheme:"http",domainHost:!0,parse:function(ft,Pt){return ft.host||(ft.error=ft.error||"HTTP URIs must have a host."),ft},serialize:function(ft,Pt){var Cn="https"===String(ft.scheme).toLowerCase();return(ft.port===(Cn?443:80)||""===ft.port)&&(ft.port=void 0),ft.path||(ft.path="/"),ft}},hn={scheme:"https",domainHost:Bt.domainHost,parse:Bt.parse,serialize:Bt.serialize};function Mn(yt){return"boolean"==typeof yt.secure?yt.secure:"wss"===String(yt.scheme).toLowerCase()}var Vi={scheme:"ws",domainHost:!0,parse:function(ft,Pt){var Cn=ft;return Cn.secure=Mn(Cn),Cn.resourceName=(Cn.path||"/")+(Cn.query?"?"+Cn.query:""),Cn.path=void 0,Cn.query=void 0,Cn},serialize:function(ft,Pt){if((ft.port===(Mn(ft)?443:80)||""===ft.port)&&(ft.port=void 0),"boolean"==typeof ft.secure&&(ft.scheme=ft.secure?"wss":"ws",ft.secure=void 0),ft.resourceName){var Cn=ft.resourceName.split("?"),pn=Te(Cn,2),Di=pn[0],nr=pn[1];ft.path=Di&&"/"!==Di?Di:void 0,ft.query=nr,ft.resourceName=void 0}return ft.fragment=void 0,ft}},ni={scheme:"wss",domainHost:Vi.domainHost,parse:Vi.parse,serialize:Vi.serialize},Qi={},no="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Jr="[0-9A-Fa-f]",Ki=o(o("%[EFef]"+Jr+"%"+Jr+Jr+"%"+Jr+Jr)+"|"+o("%[89A-Fa-f]"+Jr+"%"+Jr+Jr)+"|"+o("%"+Jr+Jr)),zo=g("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xc=new RegExp(no,"g"),mo=new RegExp(Ki,"g"),Ss=new RegExp(g("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',zo),"g"),io=new RegExp(g("[^]",no,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Wo=io;function ic(yt){var ft=H(yt);return ft.match(xc)?ft:yt}var jn={scheme:"mailto",parse:function(ft,Pt){var Cn=ft,pn=Cn.to=Cn.path?Cn.path.split(","):[];if(Cn.path=void 0,Cn.query){for(var Di=!1,nr={},tn=Cn.query.split("&"),Tt=0,Kt=tn.length;Tt{"use strict";F.d(J,{k:()=>V});var g=F(194);const o=(0,g.i0)("0.35s ease",(0,g.i7)([(0,g.iF)({opacity:0,transform:"translateY(0.5rem)"}),(0,g.iF)({opacity:1,transform:"translateY(0)"})])),V=(0,g.hZ)("fade-up",[(0,g.kY)("void => *",o),(0,g.kY)("* => true",o)])},2194:(vn,J,F)=>{"use strict";F.d(J,{Y:()=>V});var g=F(5981),o=F(2978);let V=(()=>{class oe{constructor(){this.headerHeight$=new g.t(0),this.windowSize$=new g.t({x:0,y:0})}updateHeaderHeight(){if(typeof window>"u")return;const pe=document.querySelector("app-header");pe&&this.headerHeight$.next(pe.clientHeight)}updateWindowSize(){typeof window>"u"||this.windowSize$.next({x:window.innerWidth,y:window.innerHeight})}static#e=this.\u0275fac=function(Ee){return new(Ee||oe)};static#t=this.\u0275prov=o.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},4952:(vn,J,F)=>{"use strict";F.d(J,{l:()=>V});var g=F(6610),o=F(2978);let V=(()=>{class oe{static#e=this.\u0275fac=function(Ee){return new(Ee||oe)};static#t=this.\u0275cmp=o.VBU({type:oe,selectors:[["app-custom-loading"]],standalone:!0,features:[o.aNF],decls:1,vars:0,consts:[[1,"loader","mx-4","my-2"]],template:function(Ee,be){1&Ee&&o.nrm(0,"span",0)},dependencies:[g.MD],styles:[".loader[_ngcontent-%COMP%]{width:1.25em;height:1.25em;border:3px solid var(--primary-500);border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:_ngcontent-%COMP%_rotation 1s linear infinite}@keyframes _ngcontent-%COMP%_rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return oe})()},8303:(vn,J,F)=>{"use strict";F.d(J,{r:()=>o});const g={hostClass:"!flex flex-col",contentClass:"mt-auto"},o=V=>({label:V?.addressLabel??"Address",formControlName:"address",layout:{formGroupClass:"grid grid-cols-1 md:grid-cols-3",contentCollapsible:"expand"},children:[{label:V?.countryLabel??"Country",formControlName:"country",type:"text",props:{placeholder:V?.countryPlaceholder??"Country"},layout:g},{label:V?.stateLabel??"State/Province",formControlName:"state",type:"text",props:{placeholder:V?.statePlaceholder??"State/Province"},layout:g},{label:V?.postcodeLabel??"Zip/Postal code",formControlName:"postcode",type:"text",props:{placeholder:"00000"},layout:g},{label:V?.detailLabel??"Address",formControlName:"detail",type:"text",layout:{hostStyles:"grid-column: -1/1;"},props:{placeholder:V?.detailPlaceholder??"Detail"}}]})},9062:(vn,J,F)=>{"use strict";F.d(J,{P:()=>o});const o=(0,F(8303).r)({addressLabel:"\u5730\u5740",countryLabel:"\u570b\u5bb6/\u5730\u5340",countryPlaceholder:"\u570b\u5bb6/\u5730\u5340",stateLabel:"\u5dde/\u7701/\u7e23\u5e02",statePlaceholder:"\u5dde/\u7701/\u7e23\u5e02",postcodeLabel:"\u90f5\u905e\u5340\u865f",detailLabel:"\u8a73\u7d30\u5730\u5740",detailPlaceholder:"\u8a73\u7d30\u5730\u5740"})},9545:(vn,J,F)=>{"use strict";F.d(J,{C:()=>g});const g={label:"Age",description:"Input mask (number)",formControlName:"age",type:"number",inputMask:{mask:"Number"},validators:[{name:"required",message:"Please enter your age"},{name:"min",value:18,message:"Must above 18 years old"},{name:"max",value:65,message:"Must not greater than 65 years old"}]}},728:(vn,J,F)=>{"use strict";F.d(J,{m:()=>g});const g={label:"\u5e74\u9f61",description:"\u4f7f\u7528\u6578\u5b57\u906e\u7f69",formControlName:"age",type:"number",inputMask:{mask:"Number"},validators:[{name:"required",message:"\u8acb\u8f38\u5165\u5e74\u9f61"},{name:"min",value:18,message:"\u4e0d\u53ef\u5c0f\u65bc 18 \u6b72"},{name:"max",value:65,message:"\u4e0d\u53ef\u8d85\u904e 65 \u6b72"}]}},6457:(vn,J,F)=>{"use strict";F.d(J,{Y:()=>g});const g={label:"Cards",formControlName:"cards",layout:{formGroupStyles:"row-gap: 0px"},children:[{formControlName:"cardTypes",type:"checkbox",value:[0],validators:[{name:"required",message:"Please choose at least one."}],options:{layout:"column",data:[{label:"Visa",value:0},{label:"Master",value:1},{label:"JCB",value:2},{label:"Other",value:3}]}},{formControlName:"cardOther",props:{placeholder:"Other card type"},conditions:{"control.hidden":{"&&":[["cards.cardTypes","notIncludes",3]]}}}]}},504:(vn,J,F)=>{"use strict";F.d(J,{C:()=>g});const g={label:"\u4fe1\u7528\u5361",formControlName:"cards",layout:{formGroupStyles:"row-gap: 0px"},children:[{formControlName:"cardTypes",type:"checkbox",value:[0],validators:[{name:"required",message:"\u8acb\u81f3\u5c11\u9078\u64c7\u4e00\u500b"}],options:{layout:"column",data:[{label:"Visa",value:0},{label:"Master",value:1},{label:"JCB",value:2},{label:"\u5176\u4ed6",value:3}]}},{formControlName:"cardOther",props:{placeholder:"\u5176\u4ed6\u5361\u7247\u985e\u578b"},conditions:{"control.hidden":{"&&":[["cards.cardTypes","notIncludes",3]]}}}]}},2325:(vn,J,F)=>{"use strict";F.d(J,{C:()=>g});const g={label:"Gender",formControlName:"gender",value:"0",type:"radio",options:{data:[{label:"Male",value:"0"},{label:"Female",value:"1"},{label:"Prefer not to state",value:"2"}]}}},4196:(vn,J,F)=>{"use strict";F.d(J,{q:()=>g});const g={label:"\u6027\u5225",formControlName:"gender",value:"0",type:"radio",options:{data:[{label:"\u7537\u751f",value:"0"},{label:"\u5973\u751f",value:"1"},{label:"\u6211\u4e0d\u60f3\u8aaa",value:"2"}]}}},9353:(vn,J,F)=>{"use strict";F.d(J,{M:()=>g});const g={label:"Name",formControlName:"name",type:"text",validators:[{name:"required",message:"Please type your name"},{name:"minLength",value:4,message:"Please enter at lease 4 characters"},{name:"pattern",value:"^\\D+$",message:"Numbers are not allowed"}]}},3624:(vn,J,F)=>{"use strict";F.d(J,{c:()=>g});const g={label:"\u59d3\u540d",formControlName:"name",type:"text",validators:[{name:"required",message:"\u8acb\u8f38\u5165\u540d\u5b57"},{name:"minLength",value:2,message:"\u8acb\u8f38\u5165\u81f3\u5c11 2 \u500b\u5b57"},{name:"pattern",value:"^\\D+$",message:"\u4e0d\u53ef\u8f38\u5165\u6578\u5b57"}]}},9707:(vn,J,F)=>{"use strict";F.d(J,{d:()=>g});const g={label:"Temperature",formControlName:"temperature",type:"range",value:27,props:{min:-20,max:80,step:1,showCurrentValue:!0,showTickMarks:!0,discrete:!0}}},1490:(vn,J,F)=>{"use strict";F.d(J,{$:()=>g});const g={label:"\u6eab\u5ea6",formControlName:"temperature",type:"range",value:27,props:{min:-20,max:80,step:1,showCurrentValue:!0,showTickMarks:!0}}},3265:(vn,J,F)=>{"use strict";F.d(J,{I:()=>g});const g={formControlName:"toggles",layout:{formGroupStyles:"display: flex; gap: 2.5rem;"},children:[{formControlName:"checkbox",value:!1,type:"checkbox",description:"A binary checkbox",layout:{descriptionPosition:"after"},options:{data:[{label:"Confirm?"}]}},{formControlName:"switch",value:!1,type:"switch",options:{labelPosition:"before",data:[{label:"Open?"}]}}]}},5200:(vn,J,F)=>{"use strict";F.d(J,{a:()=>g});const g={formControlName:"toggles",layout:{formGroupStyles:"display: flex; gap: 2.5rem;"},children:[{formControlName:"checkbox",value:!1,type:"checkbox",description:"\u4e8c\u5143\u52fe\u9078\u6846",layout:{descriptionPosition:"after"},options:{data:[{label:"\u78ba\u5b9a?"}]}},{formControlName:"switch",value:!1,type:"switch",options:{labelPosition:"before",data:[{label:"\u958b\u555f?"}]}}]}},863:(vn,J,F)=>{"use strict";F.d(J,{T:()=>Ss});const V=[{label:"Option 1",value:0},{label:"Option 2",value:1},{label:"Option 3",value:2}],De=[{label:"\u9078\u9805 1",value:0},{label:"\u9078\u9805 2",value:1},{label:"\u9078\u9805 3",value:2}],Ve={CHECKBOX_BINARY:{EN:{label:"Binary checkbox",formControlName:"checkbox",type:"checkbox",options:{data:[{label:"Label for this binary checkbox"}]}},"ZH-TW":{label:"\u4e8c\u5143\u8907\u9078\u6846",formControlName:"checkbox",type:"checkbox",options:{data:[{label:"\u6b64\u4e8c\u5143\u8907\u9078\u6846\u7684\u6587\u5b57"}]}}},CHECKBOX_MULTI:{EN:{label:"Checkbox",formControlName:"checkbox",type:"checkbox",options:{data:V}},"ZH-TW":{label:"\u8907\u9078\u6846",formControlName:"checkbox",type:"checkbox",options:{data:De}}},CHECKBOX_MULTI_VERTICAL:{EN:{label:"Checkbox",formControlName:"checkbox",type:"checkbox",options:{layout:"column",data:V}},"ZH-TW":{label:"\u8907\u9078\u6846",formControlName:"checkbox",type:"checkbox",options:{layout:"column",data:De}}},CHECKBOX_LABEL_BEFORE:{EN:{label:"Checkbox",formControlName:"checkbox",type:"checkbox",options:{labelPosition:"before",layout:"column",data:V}},"ZH-TW":{label:"\u8907\u9078\u6846",formControlName:"checkbox",type:"checkbox",options:{labelPosition:"before",layout:"column",data:De}}}};var ze=F(9545),vt=F(9353),Re=F(3265);const _t=[{description:"Disabled if (name === 'Andrew' && age > 20 && (checkbox === false || switch === false))",formControlName:"conditionsMultiple",conditions:{"control.disabled":{"&&":[["group.name","===","Andrew"],["group.age",">",20],{"||":[["group.toggles.checkbox","===",!1],["group.toggles.switch","===",!1]]}]}}},{formControlName:"group",layout:{hostStyles:"margin-top: 1.5rem"},children:[{...vt.M,value:"Andrew"},{...ze.C,value:22},Re.I]}];var at=F(728),Be=F(3624),he=F(5200);const dt=[{description:"if (name === '\u738b\u5c0f\u660e' && age > 20 && (checkbox === false || switch === false)), \u7981\u7528\u6b64\u6b04\u4f4d",formControlName:"conditionsMultiple",conditions:{"control.disabled":{"&&":[["group.name","===","\u738b\u5c0f\u660e"],["group.age",">",20],{"||":[["group.toggles.checkbox","===",!1],["group.toggles.switch","===",!1]]}]}}},{formControlName:"group",layout:{hostStyles:"border: solid 1px var(--border-color-50); border-radius: 0.5rem; padding: 1rem;"},children:[Be.c,at.m,he.a]}],Wn=[{formControlName:"group",description:"Name is required when slider > 50",children:[{...F(9707).d,label:"Slider",formControlName:"slider"},{...vt.M,value:"",conditions:{"control.disabled":{"&&":[["group.slider","<",0]]},"validator.required":{"&&":[["group.slider",">",50]]}}}]}],$i=[{formControlName:"group",description:"Slider \u7684\u503c > 50 \u6642\uff0c\u59d3\u540d\u6b04\u4f4d\u5fc5\u586b",children:[{...F(1490).$,label:"Slider",formControlName:"slider"},{...Be.c,value:"",conditions:{"control.disabled":{"&&":[["group.slider","<",0]]},"validator.required":{"&&":[["group.slider",">",50]]}}}]}],Hr=io=>[{formControlName:"checkbox",type:"checkbox",value:!0,options:{data:[{label:"Uncheck to hide the following input"}]}},{formControlName:"text",conditions:{"control.hidden":{"&&":[[io?`${io}.checkbox`:"checkbox","===",!1]]}}}],ui=io=>[{formControlName:"checkbox",type:"checkbox",value:!0,options:{data:[{label:"\u53d6\u6d88\u52fe\u9078\uff0c\u96b1\u85cf\u4ee5\u4e0b\u8f38\u5165\u6b04\u4f4d"}]}},{formControlName:"text",conditions:{"control.hidden":{"&&":[[io?`${io}.checkbox`:"checkbox","===",!1]]}}}],dn={CONDITIONS_VISIBILITY:{EN:Hr(""),"ZH-TW":ui("")},CONDITIONS_VALIDATOR:{EN:Wn,"ZH-TW":$i},CONDITIONS_MULTIPLE:{EN:_t,"ZH-TW":dt}},nt=io=>({label:io?.label??"Custom Component",formControlName:"customInput"}),ht=nt({label:"\u81ea\u8a02\u5143\u4ef6"}),Je={CUSTOM_COMPONENT:{EN:nt(),"ZH-TW":ht}},te={DATE:{EN:{label:"Date",formControlName:"date",type:"date"},"ZH-TW":{label:"\u65e5\u671f",formControlName:"date",type:"date"}},DATE_MIN_DATE:{EN:{label:"Date (min date)",formControlName:"minDate",type:"date",props:{min:new Date}},"ZH-TW":{label:"\u65e5\u671f (\u6700\u65e9\u65e5\u671f)",formControlName:"minDate",type:"date",props:{min:new Date}}}};var xe=F(8303);const Ce={hostClass:"p-6 m-3 rounded-xl border-gray-500/30",hostStyles:"\n background: linear-gradient(145deg, var(--primary-100), var(--body-bg-color));\n box-shadow: 1rem 1rem 1.75rem rgba(0,0,0,0.15), -1rem -1rem 1.75rem var(--body-bg-color);".replace(/\s{2,}/g,"")},zt={label:"Level 1",formControlName:"level1",layout:Ce,children:[vt.M,...Hr("level1"),{label:"Level 2",formControlName:"level2",layout:Ce,children:[ze.C,{label:"Level 3",formControlName:"level3",layout:Ce,children:[(0,xe.r)()]}]}]};var rt=F(9062);const zo={label:"\u6587\u5b57\u8f38\u5165",formControlName:"text",type:"text"},Ss={...Ve,...dn,...Je,...te,PASSWORD:{EN:{label:"Password",formControlName:"password",type:"password"},"ZH-TW":{label:"\u5bc6\u78bc",formControlName:"password",type:"password"}},HOME_DEMO:{EN:zt,"ZH-TW":{label:"\u7b2c 1 \u5c64",formControlName:"level1",layout:Ce,children:[Be.c,...ui("level1"),{label:"\u7b2c 2 \u5c64",formControlName:"level2",layout:Ce,children:[at.m,{label:"\u7b2c 3 \u5c64",formControlName:"level3",layout:Ce,children:[rt.P]}]}]}},NUMBER:{EN:{label:"Number",formControlName:"number",type:"number"},"ZH-TW":{label:"\u6578\u5b57",formControlName:"number",type:"number"}},NUMBER_MASK:{EN:{label:"Number (using mask)",formControlName:"number",type:"text",inputMask:{mask:"Number"}},"ZH-TW":{label:"\u6578\u5b57 (\u4f7f\u7528\u906e\u7f69)",formControlName:"number",type:"text",inputMask:{mask:"Number"}}},RADIO:{EN:{label:"Radio",formControlName:"radio",type:"radio",options:{data:V}},"ZH-TW":{label:"\u55ae\u9078\u9078\u9805",formControlName:"radio",type:"radio",options:{data:De}}},RADIO_VERTICAL:{EN:{label:"Radio",formControlName:"radioVertical",type:"radio",options:{layout:"column",data:V}},"ZH-TW":{label:"\u55ae\u9078\u9078\u9805",formControlName:"radioVertical",type:"radio",options:{layout:"column",data:De}}},RADIO_LABEL_BEFORE:{EN:{label:"Radio",formControlName:"radioLabelBefore",type:"radio",options:{labelPosition:"before",layout:"column",data:V}},"ZH-TW":{label:"\u55ae\u9078\u9078\u9805 (\u6587\u5b57\u5728\u524d)",formControlName:"radioLabelBefore",type:"radio",options:{labelPosition:"before",layout:"column",data:De}}},RANGE:{EN:{formControlName:"range",label:"Range",type:"range",value:20,props:{min:0,max:100,step:10}},"ZH-TW":{formControlName:"range",label:"\u7bc4\u570d",type:"range",value:20,props:{min:0,max:100,step:10}}},SELECT:{EN:{label:"Select",formControlName:"select",type:"select",options:{data:[{label:"Option 1",value:0},{label:"Option 2",value:1},{label:"Option 3",value:2}]}},"ZH-TW":{label:"\u4e0b\u62c9\u9078\u55ae",formControlName:"select",type:"select",options:{data:[{label:"\u9078\u9805 1",value:0},{label:"\u9078\u9805 2",value:1},{label:"\u9078\u9805 3",value:2}]}}},SWITCH:{EN:{label:"Switch",formControlName:"switch",type:"switch",options:{data:[{label:"Label of this switch"}]}},"ZH-TW":{label:"\u958b\u95dc",formControlName:"switch",type:"switch",options:{data:[{label:"\u6b64\u958b\u95dc\u7684\u6587\u5b57"}]}}},TEXT:{EN:{label:"Text",formControlName:"text",type:"text"},"ZH-TW":zo},TEXTAREA:{EN:{label:"Textarea",formControlName:"textarea",type:"textarea",props:{rows:5}},"ZH-TW":zo}}},7004:(vn,J,F)=>{"use strict";function g(o){return"string"!=typeof o.value||!o.value.length||RegExp(/[A-Z]/).test(o.value[0])?null:{uppercase:"Make sure your first letter is uppercase"}}F.d(J,{D:()=>g})},7316:(vn,J,F)=>{"use strict";F.d(J,{Y:()=>Fe});var g=F(6610),o=F(2978),V=F(2709),oe=F(2576),De=F(3269),pe=F(863),Ee=F(7004),be=F(5494);const ge=["formContent"];function Te(_t,at){if(1&_t){const Be=o.RV6();o.qex(0),o.j41(1,"button",6),o.bIt("click",function(){o.eBV(Be);const He=o.XpG(2);return o.Njj(He.reset())}),o.nrm(2,"i",8),o.k0s(),o.bVm()}}function Ve(_t,at){if(1&_t){const Be=o.RV6();o.qex(0),o.j41(1,"div",5),o.DNE(2,Te,3,0,"ng-container",1),o.j41(3,"button",6),o.bIt("click",function(){o.eBV(Be);const He=o.XpG();return o.Njj(He.showEditor?He.onConfirm():He.onEdit())}),o.nrm(4,"i",7),o.k0s()(),o.bVm()}if(2&_t){const Be=o.XpG();o.R7$(2),o.Y8G("ngIf",Be.showEditor),o.R7$(2),o.Y8G("ngClass",Be.showEditor?"bi-check-lg":"bi-pencil-square")}}const ze=function(_t){return{"opacity-0 pointer-events-none":_t}},vt=function(_t){return{json:_t}};function Re(_t,at){if(1&_t){const Be=o.RV6();o.qex(0),o.j41(1,"app-playground-editor",9),o.bIt("onEditing",function(He){o.eBV(Be);const Se=o.XpG();return o.Njj(Se.onEditorChange(He))}),o.k0s(),o.bVm()}if(2&_t){const Be=o.XpG();o.R7$(1),o.Y8G("ngClass",o.eq3(5,ze,!Be.showEditor))("mainMenuBar",!1)("statusBar",!1)("navigationBar",!1)("data",o.eq3(7,vt,Be.configsUntouched))}}const tt=function(){return["relative z-0","mt-8"]},de=function(_t){return{"min-height":_t}};let Fe=(()=>{class _t{constructor(){this._cd=(0,o.WQX)(o.gRc),this.configs=[],this.configPath="",this.showFormOnly=!1,this.minHeight="20rem",this.ui="Default",this.showEditor=!1,this.formHeight="0px",this.configsUntouched=[],this.uiComponents={Default:void 0,PrimeNg:De.j,"Angular Material":oe.G},this._editorData=null}ngOnChanges(Be){const{configs:he,configPath:He}=Be;he&&(this._parseConfigs(),this.reset()),He&&(this._loadConfigFromPath(),this.reset())}ngAfterViewInit(){this._getFormHeight()}onEditorChange(Be){this._editorData=Be}onEdit(){this.showEditor=!0}onConfirm(){this._editorData&&(this.configs=structuredClone(this._editorData)),this.showEditor=!1}reset(){const Be=structuredClone(this.configsUntouched);this.configs=Be,this._editorData=Be,this.configsUntouched=[...this.configsUntouched]}_loadConfigFromPath(){if(!this.configPath)return;const Be=this.configPath.split(".").reduce((He,Se)=>He[Se],pe.T),he=Array.isArray(Be)?Be:[Be];this.configsUntouched=[...he]}_parseConfigs(){this.configs&&("string"==typeof this.configs&&(this.configsUntouched=JSON.parse(this.configs)),Array.isArray(this.configs)&&this.configs.length>0&&(this.configsUntouched=[...this.configs]))}_getFormHeight(){this.formContent&&(this.formHeight=`${this.formContent.nativeElement.scrollHeight+1}px`,this._cd.detectChanges())}static#e=this.\u0275fac=function(he){return new(he||_t)};static#t=this.\u0275cmp=o.VBU({type:_t,selectors:[["app-doc-form-viewer"]],viewQuery:function(he,He){if(1&he&&o.GBs(ge,5),2&he){let Se;o.mGM(Se=o.lsd())&&(He.formContent=Se.first)}},inputs:{configs:"configs",configPath:"configPath",showFormOnly:"showFormOnly",minHeight:"minHeight",ui:"ui"},standalone:!0,features:[o.Jv_([(0,V.E2)({customValidators:{firstUppercase:Ee.D}})]),o.OA$,o.aNF],decls:7,vars:8,consts:[[3,"ngClass"],[4,"ngIf"],[1,"content","relative","z-0",3,"ngStyle"],["formContent",""],[1,"block","p-1",3,"configs"],[1,"toolbar","absolute","z-10","-top-5","right-1","flex","gap-1"],["type","button",3,"click"],[1,"bi",3,"ngClass"],[1,"bi","bi-arrow-repeat","rotate-45"],[1,"absolute","top-0","left-0","h-full","w-full","duration-100",3,"ngClass","mainMenuBar","statusBar","navigationBar","data","onEditing"]],template:function(he,He){1&he&&(o.j41(0,"div",0),o.DNE(1,Ve,5,2,"ng-container",1),o.j41(2,"div",2)(3,"div",null,3),o.nrm(5,"ng-dynamic-json-form",4),o.k0s(),o.DNE(6,Re,2,9,"ng-container",1),o.k0s()()),2&he&&(o.Y8G("ngClass",o.lJ4(5,tt)),o.R7$(1),o.Y8G("ngIf",!He.showFormOnly),o.R7$(1),o.Y8G("ngStyle",o.eq3(6,de,He.showEditor?He.minHeight:He.formHeight)),o.R7$(3),o.Y8G("configs",He.configs),o.R7$(1),o.Y8G("ngIf",!He.showFormOnly))},dependencies:[g.MD,g.YU,g.bT,g.B3,be._,V.yz],styles:["[_nghost-%COMP%]{margin-top:1rem;margin-bottom:1rem;display:block}doc-tab[_nghost-%COMP%], doc-tab [_nghost-%COMP%]{margin-top:0;margin-bottom:0}doc-tab[_nghost-%COMP%] .content[_ngcontent-%COMP%], doc-tab [_nghost-%COMP%] .content[_ngcontent-%COMP%]{transition-duration:0s}.content[_ngcontent-%COMP%]{transition-duration:.3s}.toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:inline-flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-width:1px;border-color:var(--border-color-25);border-radius:9999px;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}"]})}return _t})()},3090:(vn,J,F)=>{"use strict";F.d(J,{e:()=>Ve});var g=F(6409),o=F(2978),V=F(5981),oe=F(756),De=F(3527),pe=F(7236),Ee=F(6347),be=F(4526),ge=F(4183),Te=F(1938);let Ve=(()=>{class ze{constructor(){this._renderer2=(0,o.WQX)(o._9s).createRenderer(null,null),this._http=(0,o.WQX)(g.Qq),this._transferState=(0,o.WQX)(o.pJN),this._versionService=(0,o.WQX)(Te.I),this._languageDataService=(0,o.WQX)(ge.g),this._docCache=[],this.docLoading$=new V.t(!1)}loadDoc$(Re){Re.startsWith("docs/")&&(Re=Re.replace("docs/",""));const tt=this._docCache.find(Se=>Se.path===Re&&Se.data)?.data;if(tt)return(0,oe.of)(tt);const de=this._versionService.docVersion,Fe=this._languageDataService.selectedLanguage,_t=Re.split("/"),at=`${_t[_t.length-1]}_${Fe}.md`,he=`assets/docs/${de}/${Re.endsWith(".md")?Re:`${Re}/${at}`}`,He=(0,o.zw6)(he);return this._transferState.hasKey(He)?(0,oe.of)(this._transferState.get(He,"")):(this.docLoading$.next(!0),this._http.get(he,{responseType:"text",observe:"response"}).pipe((0,De.T)(Se=>{if((Se.headers.get("Content-Type")??"").indexOf("text/markdown")<0)throw"Content not found";return Se.body??""}),(0,pe.M)(Se=>{this._docCache.some(it=>it.path===Re)||(this._docCache.push({path:Re,data:Se}),this._transferState.set(He,Se))}),(0,Ee.j)(()=>this.docLoading$.next(!1)),(0,be.W)(Se=>{throw Se})))}clearCache(){this._docCache=[]}firstContentPath$(Re=!1){const de=this._versionService.docVersion,Fe=`assets/docs/${de}/index_${Re?"en":this._languageDataService.selectedLanguage}.md`,_t=(0,o.zw6)(Fe);return(()=>this._transferState.hasKey(_t)?(0,oe.of)(this._transferState.get(_t,"")):this._http.get(Fe,{responseType:"text"}).pipe((0,pe.M)(Be=>this._transferState.set(_t,Be))))().pipe((0,De.T)(Be=>{const he=Be.match(/(\.+\/){1,}.+\.md/)?.[0],Se=(he?.match(/(\.*\/){1,}/)?.[0]||"")+de+"/";return he?.replace(Se,"docs/")??""}),(0,be.W)(()=>this.firstContentPath$(!0)))}wrapTable(){typeof window>"u"||window.setTimeout(()=>{const Re=Array.from(document.querySelectorAll("table"));for(const tt of Re){const de=document.createElement("div"),Fe=tt.cloneNode(!0);tt.parentElement?.classList.contains("table-wrapper")||(de.classList.add("table-wrapper"),de.appendChild(Fe),this._renderer2.appendChild(de,Fe),this._renderer2.insertBefore(tt.parentElement,de,tt),tt.remove())}})}static#e=this.\u0275fac=function(tt){return new(tt||ze)};static#t=this.\u0275prov=o.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})()},4183:(vn,J,F)=>{"use strict";F.d(J,{g:()=>Ee});var g=F(6610),o=F(6409),V=F(2978),oe=F(5981),De=F(756),pe=F(7236);let Ee=(()=>{class be{constructor(){this._http=(0,V.WQX)(o.Qq),this._transferState=(0,V.WQX)(V.pJN),this._location=(0,V.WQX)(g.aZ),this._defaultLanguage="en",this._language$=new oe.t(this._defaultLanguage),this._cache=[],this.languageList=["zh-TW","en"],this.i18nContent$=new oe.t({})}setLanguage(Te){Te!==this._language$.value&&this._language$.next(Te)}setCurrentLanguage(){this.setLanguage(this.currentLanguage)}loadLanguageData$(Te){const Ve=Te??this.currentLanguage,ze=`assets/i18n/${Ve}.json`,vt=(0,V.zw6)(ze),Re=this._cache.find(de=>de.lang===Ve)?.data;return(()=>this._transferState.hasKey(vt)?(0,De.of)(this._transferState.get(vt,"")):Re?(0,De.of)(Re):this._http.get(ze,{responseType:"json"}))().pipe((0,pe.M)(de=>{de&&(this.setLanguage(Ve),this.i18nContent$.next(de),this._cache.push({lang:Ve,data:de}),this._userLanguage=Ve,this._transferState.set(vt,de))}))}get language$(){return this._language$.asObservable()}get languageFromUrl(){return this._location.path().match(/_.+\.md$/)?.[0].substring(1).replace(".md","")}get selectedLanguage(){return this._language$.value}get currentLanguage(){return this.languageFromUrl??this._userLanguage}set _userLanguage(Te){typeof window>"u"||window.localStorage.setItem("language",Te)}get _userLanguage(){if(typeof window>"u")return"en";const Te=window.navigator.language,ze=window.localStorage.getItem("language")??Te;return ze.includes("en")?"en":ze.includes("zh")?"zh-TW":"en"}static#e=this.\u0275fac=function(Ve){return new(Ve||be)};static#t=this.\u0275prov=V.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})()},5494:(vn,J,F)=>{"use strict";F.d(J,{_:()=>mUe});var g={};F.r(g),F.d(g,{add:()=>No,after:()=>Rt,ary:()=>Qd,assign:()=>P7,assignIn:()=>sf,assignInWith:()=>I4,assignWith:()=>O4,at:()=>N4,attempt:()=>_6,before:()=>b6,bind:()=>C6,bindAll:()=>W3,bindKey:()=>jm,camelCase:()=>N6,capitalize:()=>R2,castArray:()=>c8,ceil:()=>j6,chain:()=>Of,chunk:()=>d8,clamp:()=>B6,clone:()=>Wy,cloneDeep:()=>n3,cloneDeepWith:()=>s9,cloneWith:()=>Xy,commit:()=>x8,compact:()=>uD,concat:()=>o9,cond:()=>vC,conforms:()=>g9,conformsTo:()=>_9,constant:()=>Pl,countBy:()=>w9,create:()=>p4,curry:()=>H8,curryRight:()=>TC,debounce:()=>u0,deburr:()=>I6,default:()=>xce,defaultTo:()=>k9,defaults:()=>OC,defaultsDeep:()=>D9,defer:()=>PC,delay:()=>Xf,difference:()=>cp,differenceBy:()=>V9,differenceWith:()=>BC,divide:()=>lp,drop:()=>O9,dropRight:()=>H9,dropRightWhile:()=>L9,dropWhile:()=>qC,each:()=>F8,eachRight:()=>dp,endsWith:()=>YC,entries:()=>Yf,entriesIn:()=>Ed,eq:()=>Yl,escape:()=>B8,escapeRegExp:()=>sx,every:()=>fp,extend:()=>sf,extendWith:()=>I4,fill:()=>F9,filter:()=>ux,find:()=>U9,findIndex:()=>$9,findKey:()=>th,findLast:()=>q9,findLastIndex:()=>W9,findLastKey:()=>px,first:()=>G2,flatMap:()=>X9,flatMapDeep:()=>gx,flatMapDepth:()=>nh,flatten:()=>ag,flattenDeep:()=>_x,flattenDepth:()=>bT,flip:()=>yx,floor:()=>ih,flow:()=>Sx,flowRight:()=>Y9,forEach:()=>F8,forEachRight:()=>dp,forIn:()=>Ex,forInRight:()=>q8,forOwn:()=>Q9,forOwnRight:()=>Dx,fromPairs:()=>Tx,functions:()=>Vx,functionsIn:()=>J9,get:()=>z4,groupBy:()=>rh,gt:()=>tv,gte:()=>Ox,has:()=>rv,hasIn:()=>ip,head:()=>G2,identity:()=>me,inRange:()=>av,includes:()=>Nx,indexOf:()=>lv,initial:()=>Ls,intersection:()=>dv,intersectionBy:()=>fv,intersectionWith:()=>$x,invert:()=>pv,invertBy:()=>YT,invoke:()=>Kx,invokeMap:()=>Yx,isArguments:()=>Oo,isArray:()=>rr,isArrayBuffer:()=>ah,isArrayLike:()=>tr,isArrayLikeObject:()=>Kc,isBoolean:()=>Jx,isBuffer:()=>Dc,isDate:()=>ew,isElement:()=>_v,isEmpty:()=>Zs,isEqual:()=>zs,isEqualWith:()=>yv,isError:()=>B4,isFinite:()=>Cv,isFunction:()=>ne,isInteger:()=>xv,isLength:()=>Si,isMap:()=>Nf,isMatch:()=>e5,isMatchWith:()=>t5,isNaN:()=>sw,isNative:()=>Ev,isNil:()=>uw,isNull:()=>Dv,isNumber:()=>Sv,isObject:()=>Lr,isObjectLike:()=>Kn,isPlainObject:()=>j4,isRegExp:()=>n5,isSafeInteger:()=>fV,isSet:()=>b8,isString:()=>oh,isSymbol:()=>Mo,isTypedArray:()=>V4,isUndefined:()=>r5,isWeakMap:()=>hV,isWeakSet:()=>s5,iteratee:()=>vw,join:()=>Vv,kebabCase:()=>bp,keyBy:()=>bV,keys:()=>Nc,keysIn:()=>wl,last:()=>Ur,lastIndexOf:()=>Iv,lodash:()=>ot,lowerCase:()=>xV,lowerFirst:()=>MV,lt:()=>Lv,lte:()=>Cw,map:()=>pp,mapKeys:()=>zv,mapValues:()=>Rv,matches:()=>Nv,matchesProperty:()=>Pv,max:()=>jv,maxBy:()=>VV,mean:()=>IV,meanBy:()=>a5,memoize:()=>$3,merge:()=>Tw,mergeWith:()=>U2,method:()=>Vw,methodOf:()=>OV,min:()=>Fv,minBy:()=>uh,mixin:()=>Aw,multiply:()=>dh,negate:()=>fh,next:()=>$v,noop:()=>Oi,now:()=>L8,nth:()=>Ow,nthArg:()=>Hw,omit:()=>B1,omitBy:()=>Wv,once:()=>d5,orderBy:()=>rA,over:()=>h5,overArgs:()=>Kv,overEvery:()=>xp,overSome:()=>Yv,pad:()=>Jw,padEnd:()=>Zw,padStart:()=>t_,parseInt:()=>n_,partial:()=>_5,partialRight:()=>iM,partition:()=>rM,pick:()=>sM,pickBy:()=>Cp,plant:()=>b5,property:()=>Wf,propertyOf:()=>o_,pull:()=>lM,pullAll:()=>mh,pullAllBy:()=>a_,pullAllWith:()=>dM,pullAt:()=>fM,random:()=>AA,range:()=>v,rangeRight:()=>k,rearg:()=>Q,reduce:()=>ln,reduceRight:()=>Ui,reject:()=>_i,remove:()=>eo,repeat:()=>$1,replace:()=>h0,rest:()=>pM,result:()=>TR,reverse:()=>mM,round:()=>VR,sample:()=>IR,sampleSize:()=>OR,set:()=>HR,setWith:()=>LR,shuffle:()=>zR,size:()=>RR,slice:()=>NR,snakeCase:()=>PR,some:()=>jR,sortBy:()=>HA,sortedIndex:()=>FR,sortedIndexBy:()=>BR,sortedIndexOf:()=>$R,sortedLastIndex:()=>UR,sortedLastIndexBy:()=>GR,sortedLastIndexOf:()=>WR,sortedUniq:()=>XR,sortedUniqBy:()=>KR,split:()=>YR,spread:()=>QR,startCase:()=>JR,startsWith:()=>ZR,stubArray:()=>en,stubFalse:()=>N1,stubObject:()=>eN,stubString:()=>tN,stubTrue:()=>nN,subtract:()=>iN,sum:()=>rN,sumBy:()=>sN,tail:()=>oN,take:()=>aN,takeRight:()=>cN,takeRightWhile:()=>lN,takeWhile:()=>uN,tap:()=>dN,template:()=>gN,templateSettings:()=>_M,throttle:()=>vN,thru:()=>x5,times:()=>RA,toArray:()=>Bv,toFinite:()=>co,toInteger:()=>qr,toIterator:()=>NA,toJSON:()=>wp,toLength:()=>U8,toLower:()=>bN,toNumber:()=>vs,toPairs:()=>Yf,toPairsIn:()=>Ed,toPath:()=>yN,toPlainObject:()=>N8,toSafeInteger:()=>xN,toString:()=>jo,toUpper:()=>wN,transform:()=>MN,trim:()=>EN,trimEnd:()=>DN,trimStart:()=>TN,truncate:()=>VN,unary:()=>AN,unescape:()=>ON,union:()=>HN,unionBy:()=>LN,unionWith:()=>zN,uniq:()=>RN,uniqBy:()=>NN,uniqWith:()=>PN,uniqueId:()=>vh,unset:()=>jN,unzip:()=>yM,unzipWith:()=>PA,update:()=>BN,updateWith:()=>$N,upperCase:()=>UN,upperFirst:()=>bf,value:()=>wp,valueOf:()=>wp,values:()=>o3,valuesIn:()=>GN,without:()=>WN,words:()=>Q4,wrap:()=>qN,wrapperAt:()=>XN,wrapperChain:()=>KN,wrapperCommit:()=>x8,wrapperLodash:()=>ot,wrapperNext:()=>$v,wrapperPlant:()=>b5,wrapperReverse:()=>YN,wrapperToIterator:()=>NA,wrapperValue:()=>wp,xor:()=>QN,xorBy:()=>JN,xorWith:()=>ZN,zip:()=>eP,zipObject:()=>nP,zipObjectDeep:()=>iP,zipWith:()=>rP});var o=F(6610),V=F(2978),oe=F(7212),De=F(6104),pe=F(3229),Ee=F(8486),be=F(7236),ge=F(6340),Te=F(8129),Ve=F(3527),ze=F(3793),vt=F(2489),Re=F(3503);function tt(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function de(t){return t.map(Fe).join("")}function Fe(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function _t(t,e){return t+Fe(e)}function at(t,e){return t.startsWith(e)&&(t.length===e.length||"/"===t[e.length])}function Be(t){return Array.isArray(t)}function he(t){return null!==t&&"object"==typeof t&&(void 0===t.constructor||"Object"===t.constructor.name)}function Se(t){return!(!t||"object"!=typeof t)&&"add"===t.op}function it(t){return!(!t||"object"!=typeof t)&&"remove"===t.op}function dt(t){return!(!t||"object"!=typeof t)&&"replace"===t.op}function jt(t){return!(!t||"object"!=typeof t)&&"copy"===t.op}function Wt(t){return!(!t||"object"!=typeof t)&&"move"===t.op}function di(t,e){return t===e}function ai(t){return t.slice(0,t.length-1)}function Hr(t){return"object"==typeof t&&null!==t}function ui(t){if(Be(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}if(he(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}return t}function dn(t,e,n){if(t[e]===n)return t;{const i=ui(t);return i[e]=n,i}}function nt(t,e){let n=t,i=0;for(;i3&&void 0!==arguments[3]&&arguments[3];if(0===e.length)return n;const r=e[0],s=ht(t?t[r]:void 0,e.slice(1),n,i);if(he(t)||Be(t))return dn(t,r,s);if(i){const a=Je.test(r)?[]:{};return a[r]=s,a}throw new Error("Path does not exist")}const Je=/^\d+$/;function Ae(t,e,n){if(0===e.length)return n(t);if(!Hr(t))throw new Error("Path doesn't exist");const i=e[0];return dn(t,i,Ae(t[i],e.slice(1),n))}function Ue(t,e){if(0===e.length)return t;if(!Hr(t))throw new Error("Path does not exist");if(1===e.length){const r=e[0];if(r in t){const s=ui(t);return Be(s)&&s.splice(parseInt(r),1),he(s)&&delete s[r],s}return t}const n=e[0];return dn(t,n,Ue(t[n],e.slice(1)))}function Ze(t,e,n){const i=e.slice(0,e.length-1),r=e[e.length-1];return Ae(t,i,s=>{if(!Array.isArray(s))throw new TypeError("Array expected at path "+JSON.stringify(i));const a=ui(s);return a.splice(parseInt(r),0,n),a})}function te(t,e){return void 0!==t&&(0===e.length||null!==t&&te(t[e[0]],e.slice(1)))}function xe(t,e,n){let i=t;for(let r=0;r{let u;const d=ci(s,a.path);if("add"===a.op)u=Qn(s,d);else if("remove"===a.op)u=On(s,d);else if("replace"===a.op)u=cn(s,d);else if("copy"===a.op)u=function fi(t,e){return Qn(t,e)}(s,d);else if("move"===a.op)u=function qe(t,e,n){if(e.length2&&void 0!==arguments[2]?arguments[2]:di;if(t.length=jn&&t<=kn||t>=ft&&t<=Di||t>=Pt&&t<=nr}function Vr(t){return t>=jn&&t<=kn}function Gs(t){return t>=32&&t<=1114111}function Fr(t){return is.test(t)}const is=/^[,:[\]/{}()\n+]$/;function Ro(t){return Fr(t)&&"/"!==t}function Zo(t){return Vo.test(t)||t&&xo(t.charCodeAt(0))}const Vo=/^[[{\w-]$/;function qo(t){return t===so||t===qa||t===zo||t===xc||t===mo}function ea(t){return t===Ys||t===so||t===zo||t===qa}function oo(t){return t===tn||t>=Tt&&t<=Kt||t===Vn||t===qn||t===pi}function xo(t){return ta(t)||Ma(t)}function ta(t){return t===Ss||t===ti||t===Ni}function Ps(t){return t===Ss}function Ma(t){return t===ic||t===ii||t===lr||t===Gr||t===xs}function ws(t){return t===ic}function La(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=t.lastIndexOf(e);return-1!==i?t.substring(0,i)+(n?"":t.substring(i+1)):t}function ao(t,e){let n=t.length;if(!ea(t.charCodeAt(n-1)))return t+e;for(;ea(t.charCodeAt(n-1));)n--;return t.substring(0,n)+e+t.substring(n)}function l1(t,e,n){return t.substring(0,e)+t.substring(e+n)}const Ol={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},pl={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function na(t){let e=0,n="";s()||function kt(){throw new Bt("Unexpected end of json string",t.length)}();const r=m(It);for(r&&a(),Zo(t[e])&&function Hc(t){return/[,\n][ \t\r]*$/.test(t)}(n)?(r||(n=ao(n,",")),function D(){let ut=!0,Ut=!0;for(;Ut;)ut?ut=!1:m(It)||(n=ao(n,",")),Ut=s();Ut||(n=La(n,",")),n="[\n".concat(n,"\n]")}()):r&&(n=La(n,","));t.charCodeAt(e)===Qi||t.charCodeAt(e)===no;)e++,a();if(e>=t.length)return n;function s(){a();const ut=function x(){if(t.charCodeAt(e)===ni){n+="{",e++,a();let ut=!0;for(;e=t.length;Lt||(Zo(t[e])||et?n=ao(n,":"):wt()),s()||(Lt||et?n+="null":wt())}return t.charCodeAt(e)===Qi?(n+="}",e++):n=ao(n,"}"),!0}return!1}()||function S(){if(t.charCodeAt(e)===dr){n+="[",e++,a();let ut=!0;for(;eut){const Ut=t.slice(ut,e),$t=/^0\d/.test(Ut);return n+=$t?'"'.concat(Ut,'"'):Ut,!0}return!1}()||function re(){return se("true","true")||se("false","false")||se("null","null")||se("True","true")||se("False","false")||se("None","null")}()||ke();return a(),ut}function a(){const ut=e;let Ut=u();do{Ut=d(),Ut&&(Ut=u())}while(Ut);return e>ut}function u(){let Ut,ut="";for(;(Ut=ea(t.charCodeAt(e)))||oo(t.charCodeAt(e));)ut+=Ut?t[e]:" ",e++;return ut.length>0&&(n+=ut,!0)}function d(){if(t.charCodeAt(e)===Mn&&t.charCodeAt(e+1)===Vi){for(;e0&&void 0!==arguments[0]&&arguments[0],Ut=t.charCodeAt(e)===hn;if(Ut&&(e++,Ut=!0),xo(t.charCodeAt(e))){const $t=Ps(t.charCodeAt(e))?Ps:ws(t.charCodeAt(e))?ws:Ma(t.charCodeAt(e))?Ma:ta,Lt=e,et=n.length;let st='"';for(e++;;){if(e>=t.length){const gt=ye(e-1);return!ut&&Fr(t.charAt(gt))?(e=Lt,n=n.substring(0,et),z(!0)):(st=ao(st,'"'),n+=st,!0)}if($t(t.charCodeAt(e))){const gt=e,sn=st.length;if(st+='"',e++,n+=st,a(),ut||e>=t.length||Fr(t.charAt(e))||xo(t.charCodeAt(e))||Vr(t.charCodeAt(e)))return $(),!0;if(Fr(t.charAt(ye(gt-1))))return e=Lt,n=n.substring(0,et),z(!0);n=n.substring(0,et),e=gt+1,st=st.substring(0,sn)+"\\"+st.substring(sn)}else{if(ut&&Fr(t[e]))return st=ao(st,'"'),n+=st,$(),!0;if(t.charCodeAt(e)===hn){const gt=t.charAt(e+1);if(void 0!==pl[gt])st+=t.slice(e,e+2),e+=2;else if("u"===gt){let Hn=2;for(;Hn<6&&ks(t.charCodeAt(e+Hn));)Hn++;6===Hn?(st+=t.slice(e,e+6),e+=6):e+Hn>=t.length?e=t.length:Dt()}else st+=gt,e+=2}else{const gt=t.charAt(e),sn=t.charCodeAt(e);sn===Ss&&t.charCodeAt(e-1)!==hn?(st+="\\"+gt,e++):qo(sn)?(st+=Ol[gt],e++):(Gs(sn)||Vt(gt),st+=gt,e++)}}Ut&&function _(ut){t.charCodeAt(e)===ut&&e++}(hn)}}return!1}function $(){let ut=!1;for(a();t.charCodeAt(e)===io;){ut=!0,e++,a(),n=La(n,'"',!0);const Ut=n.length;n=z()?l1(n,Ut,1):ao(n,'"')}return ut}function se(ut,Ut){return t.slice(e,e+ut.length)===ut&&(n+=Ut,e+=ut.length,!0)}function ke(){const ut=e;for(;eut){if(t.charCodeAt(e)===Jr)return e++,s(),t.charCodeAt(e)===Ki&&(e++,t.charCodeAt(e)===yt&&e++),!0;{for(;ea(t.charCodeAt(e-1))&&e>0;)e--;const Ut=t.slice(ut,e);return n+="undefined"===Ut?"null":JSON.stringify(Ut),t.charCodeAt(e)===Ss&&e++,!0}}}function ye(ut){let Ut=ut;for(;Ut>0&&ea(t.charCodeAt(Ut));)Ut--;return Ut}function Ke(){return e>=t.length||Fr(t[e])||ea(t.charCodeAt(e))}function lt(ut){n+=t.slice(ut,e)+"0"}function Vt(ut){throw new Bt("Invalid character "+JSON.stringify(ut),e)}function qt(){throw new Bt("Object key expected",e)}function wt(){throw new Bt("Colon expected",e)}function Dt(){const ut=t.slice(e,e+6);throw new Bt('Invalid unicode character "'.concat(ut,'"'),e)}!function Nt(){throw new Bt("Unexpected character "+JSON.stringify(t[e]),e)}()}function Z1(t,e){return"*"===t[e]&&"/"===t[e+1]}const ql="object"==typeof global&&global&&global.Object===Object&&global;var go="object"==typeof self&&self&&self.Object===Object&&self;const Ws=ql||go||Function("return this")(),As=Ws.Symbol;var wo=Object.prototype,nl=wo.hasOwnProperty,Ka=wo.toString,hc=As?As.toStringTag:void 0;var Ao=Object.prototype.toString;var gr=As?As.toStringTag:void 0;const Wr=function il(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":gr&&gr in Object(t)?function Xr(t){var e=nl.call(t,hc),n=t[hc];try{t[hc]=void 0;var i=!0}catch{}var r=Ka.call(t);return i&&(e?t[hc]=n:delete t[hc]),r}(t):function ca(t){return Ao.call(t)}(t)},Kn=function yi(t){return null!=t&&"object"==typeof t},Mo=function Sa(t){return"symbol"==typeof t||Kn(t)&&"[object Symbol]"==Wr(t)},Is=function ka(t){return"number"==typeof t?t:Mo(t)?NaN:+t},Es=function wc(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},qc=Gd(Xl);var ru=/\{\n\/\* \[wrapped with (.+)\] \*/,Wd=/,? & /;var su=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Pl=function ou(t){return function(){return t}};var x1=function(){try{var t=Rl(Object,"defineProperty");return t({},"",{}),t}catch{}}();const f1=x1;var ad=f1?function(t,e){return f1(t,"toString",{configurable:!0,enumerable:!1,value:Pl(e),writable:!0})}:me;const Au=Gd(ad),Cl=function qd(t,e){for(var n=-1,i=null==t?0:t.length;++n-1};var Xe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const R=function B(t,e,n){var i=e+"";return Au(t,function Vu(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(su,"{\n/* [wrapped with "+e+"] */\n")}(i,function Ft(t,e){return Cl(Xe,function(n){var i="_."+n[0];e&n[1]&&!ol(t,i)&&t.push(i)}),t.sort()}(function n2(t){var e=t.match(ru);return e?e[1].split(Wd):[]}(i),n)))},Ji=function Ci(t,e,n,i,r,s,a,u,d,m){var _=8&e;e|=_?32:64,4&(e&=~(_?64:32))||(e&=-4);var z=[t,e,r,_?s:void 0,_?a:void 0,_?void 0:s,_?void 0:a,u,d,m],$=n.apply(void 0,z);return ac(t)&&qc($,z),$.placeholder=i,R($,t,e)},Ar=function ls(t){return t.placeholder};var al=/^(?:0|[1-9]\d*)$/;const Ko=function Xo(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&al.test(t))&&t>-1&&t%1==0&&t1&&re.reverse(),_&&d-1&&t%1==0&&t<=9007199254740991},tr=function Zi(t){return null!=t&&Si(t.length)&&!ne(t)},kr=function fs(t,e,n){if(!Lr(n))return!1;var i=typeof e;return!!("number"==i?tr(n)&&Ko(e,n.length):"string"==i&&e in n)&&Yl(n[e],t)},fo=function Eo(t){return Qe(function(e,n){var i=-1,r=n.length,s=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(r--,s):void 0,a&&kr(n[0],n[1],a)&&(s=r<3?void 0:s,r=1),e=Object(e);++i-1},H2.prototype.set=function a6(t,e){var n=this.__data__,i=o6(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};const n4=H2,i4=Rl(Ws,"Map"),c6=function J7(t,e){var n=t.__data__;return function Y7(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map};function r4(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0&&n(u)?e>1?R4(u,e-1,n,i,r):hu(r,u):i||(r[r.length]=u)}return r},ag=function ny(t){return null!=t&&t.length?p1(t,1):[]},pu=function iy(t){return Au(T(t,void 0,ag),t+"")},N4=pu(Om),P4=t6(Object.getPrototypeOf,Object);var gd=Function.prototype.toString,Rm=Object.prototype.hasOwnProperty,cg=gd.call(Object);const j4=function lg(t){if(!Kn(t)||"[object Object]"!=Wr(t))return!1;var e=P4(t);if(null===e)return!0;var n=Rm.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&gd.call(n)==cg},B4=function F4(t){if(!Kn(t))return!1;var e=Wr(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!j4(t)};var Nm=Qe(function(t,e){try{return Sc(t,void 0,e)}catch(n){return B4(n)?n:new Error(n)}});const _6=Nm,b6=function fg(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=qr(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}};var y6=Qe(function(t,e,n){var i=1;if(n.length){var r=Rc(n,Ar(y6));i|=32}return A2(t,i,e,n,r)});y6.placeholder={};const C6=y6;var pg=pu(function(t,e){return Cl(e,function(n){n=fu(n),uu(t,n,C6(t[n],t))}),t});const W3=pg;var q3=Qe(function(t,e,n){var i=3;if(n.length){var r=Rc(n,Ar(q3));i|=32}return A2(e,i,t,n,r)});q3.placeholder={};const jm=q3,z2=function ry(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++i=i?t:z2(t,e,n)};var bg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Bu=function Fm(t){return bg.test(t)};var $m="\\ud800-\\udfff",qm="["+$m+"]",S6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",k6="\\ud83c[\\udffb-\\udfff]",E6="[^"+$m+"]",Cg="(?:\\ud83c[\\udde6-\\uddff]){2}",xg="[\\ud800-\\udbff][\\udc00-\\udfff]",U4="(?:"+S6+"|"+k6+")?",D6="[\\ufe0e\\ufe0f]?",T6=D6+U4+"(?:\\u200d(?:"+[E6,Cg,xg].join("|")+")"+D6+U4+")*",V6="(?:"+[E6+S6+"?",S6,Cg,xg,qm].join("|")+")",wg=RegExp(k6+"(?="+k6+")|"+V6+T6,"g");const mu=function _f(t){return Bu(t)?function Km(t){return t.match(wg)||[]}(t):function Bm(t){return t.split("")}(t)},Mg=function Qm(t){return function(e){e=jo(e);var n=Bu(e)?mu(e):void 0,i=n?n[0]:e.charAt(0),r=n?Fu(n,1).join(""):e.slice(1);return i[t]()+r}},bf=Mg("toUpperCase"),R2=function G4(t){return bf(jo(t).toLowerCase())},W4=function Sg(t,e,n,i){var r=-1,s=null==t?0:t.length;for(i&&s&&(n=t[++r]);++r=e?t:e)),t},B6=function f8(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=vs(n))==n?n:0),void 0!==e&&(e=(e=vs(e))==e?e:0),Z4(vs(t),e,n)};function u4(t){var e=this.__data__=new n4(t);this.size=e.size}u4.prototype.clear=function P2(){this.__data__=new n4,this.size=0},u4.prototype.delete=function my(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},u4.prototype.get=function yd(t){return this.__data__.get(t)},u4.prototype.has=function zg(t){return this.__data__.has(t)},u4.prototype.set=function U6(t,e){var n=this.__data__;if(n instanceof n4){var i=n.__data__;if(!i4||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new du(i)}return n.set(t,e),this.size=n.size,this};const e3=u4,Ml=function G6(t,e){return t&&Le(e,Nc(e),t)};var Pg="object"==typeof exports&&exports&&!exports.nodeType&&exports,jg=Pg&&"object"==typeof module&&module&&!module.nodeType&&module,E=jg&&jg.exports===Pg?Ws.Buffer:void 0,O=E?E.allocUnsafe:void 0;const b=function h(t,e){if(e)return t.slice();var n=t.length,i=O?O(n):new t.constructor(n);return t.copy(i),i},G=function M(t,e){for(var n=-1,i=null==t?0:t.length,r=0,s=[];++nu))return!1;var m=s.get(t),_=s.get(e);if(m&&_)return m==e&&_==t;var y=-1,x=!0,S=2&n?new B2:void 0;for(s.set(t,e),s.set(e,t);++y=e||lt<0||y&&Ke-m>=s}function W(){var Ke=L8();if($(Ke))return re(Ke);u=setTimeout(W,function z(Ke){var Nt=e-(Ke-d);return y?HD(Nt,s-(Ke-m)):Nt}(Ke))}function re(Ke){return u=void 0,x&&i?S(Ke):(i=r=void 0,a)}function ye(){var Ke=L8(),lt=$(Ke);if(i=arguments,r=this,d=Ke,lt){if(void 0===u)return function D(Ke){return m=Ke,u=setTimeout(W,e),_?S(Ke):a}(d);if(y)return clearTimeout(u),u=setTimeout(W,e),S(d)}return void 0===u&&(u=setTimeout(W,e)),a}return e=vs(e)||0,Lr(n)&&(_=!!n.leading,s=(y="maxWait"in n)?OD(vs(n.maxWait)||0,e):s,x="trailing"in n?!!n.trailing:x),ye.cancel=function se(){void 0!==u&&clearTimeout(u),m=0,i=d=r=u=void 0},ye.flush=function ke(){return void 0===u?a:re(L8())},ye},k9=function Fl(t,e){return null==t||t!=t?e:t};var AC=Object.prototype,LD=AC.hasOwnProperty,IC=Qe(function(t,e){t=Object(t);var n=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&kr(e[0],e[1],r)&&(i=1);++n=200&&(s=i3,a=!1,e=new B2(e));e:for(;++r=0&&t.slice(n,r)==e},R9=function ix(t){return function(e){var n=Cd(e);return"[object Map]"==n?r3(e):"[object Set]"==n?function ZC(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=[i,i]}),n}(e):function QC(t,e){return Es(e,function(n){return[n,t[n]]})}(e,t(e))}},Yf=R9(Nc),Ed=R9(wl),Qf=q4({"&":"&","<":"<",">":">",'"':""","'":"'"});var nT=/[&<>"']/g,P9=RegExp(nT.source);const B8=function Nz(t){return(t=jo(t))&&P9.test(t)?t.replace(nT,Qf):t};var j9=/[\\^$.*+?()[\]{}|]/g,Pz=RegExp(j9.source);const sx=function Jf(t){return(t=jo(t))&&Pz.test(t)?t.replace(j9,"\\$&"):t},ox=function iT(t,e){for(var n=-1,i=null==t?0:t.length;++nr?0:r+n),(i=void 0===i||i>r?r:qr(i))<0&&(i+=r),i=n>i?0:U8(i);n-1?r[s?e[a]:a]:void 0}};var cT=Math.max;const $9=function lT(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:qr(n);return r<0&&(r=cT(i+r,0)),Iu(t,Ms(e),r)},U9=eh($9),G9=function dx(t,e,n){var i;return n(t,function(r,s,a){if(e(r,s,a))return i=s,!1}),i},th=function uT(t,e){return G9(t,Ms(e),wd)};var hp=Math.max,dT=Math.min;const W9=function fT(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==n&&(r=qr(n),r=n<0?hp(i+r,0):dT(r,i-1)),Iu(t,Ms(e),r,!0)},q9=eh(W9),px=function hx(t,e){return G9(t,Ms(e),z9)},G2=function mx(t){return t&&t.length?t[0]:void 0},pT=function hT(t,e){var n=-1,i=tr(t)?Array(t.length):[];return Md(t,function(r,s,a){i[++n]=e(r,s,a)}),i},pp=function Fz(t,e){return(rr(t)?Es:pT)(t,Ms(e))},X9=function Bz(t,e){return p1(pp(t,e),1)},gx=function mT(t,e){return p1(pp(t,e),1/0)},nh=function vx(t,e,n){return n=void 0===n?1:qr(n),p1(pp(t,e),n)},_x=function vT(t){return null!=t&&t.length?p1(t,1/0):[]},bT=function _T(t,e){return null!=t&&t.length?(e=void 0===e?1:qr(e),p1(t,e)):[]},yx=function bx(t){return A2(t,512)},ih=u8("floor"),Mx=function wx(t){return pu(function(e){var n=e.length,i=n,r=kc.prototype.thru;for(t&&e.reverse();i--;){var s=e[i];if("function"!=typeof s)throw new TypeError("Expected a function");if(r&&!a&&"wrapper"==Fa(s))var a=new kc([],!0)}for(i=a?i:n;++ie},sh=function LT(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=vs(e),n=vs(n)),t(e,n)}},tv=sh(Z9);var nv=sh(function(t,e){return t>=e});const Ox=nv;var iv=Object.prototype.hasOwnProperty;const Hx=function RT(t,e){return null!=t&&iv.call(t,e)},rv=function d0(t,e){return null!=t&&fC(t,e,Hx)};var NT=Math.max,$z=Math.min;const av=function PT(t,e,n){return e=co(e),void 0===n?(n=e,e=0):n=co(n),function sv(t,e,n){return t>=$z(e,n)&&t-1:!!r&&w1(t,e,n)>-1};var BT=Math.max;const lv=function $T(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:qr(n);return r<0&&(r=BT(i+r,0)),w1(t,e,r)},Ls=function Uz(t){return null!=t&&t.length?z2(t,0,-1):[]};var UT=Math.min;const Px=function GT(t,e,n){for(var i=n?j8:ol,r=t[0].length,s=t.length,a=s,u=Array(s),d=1/0,m=[];a--;){var _=t[a];a&&e&&(_=Es(_,h1(e))),d=UT(_.length,d),u[a]=!n&&(e||r>=120&&_.length>=120)?new B2(a&&_):void 0}_=t[0];var y=-1,x=u[0];e:for(;++y=-pw&&t<=pw},r5=function mw(t){return void 0===t},hV=function Yz(t){return Kn(t)&&"[object WeakMap]"==Cd(t)},s5=function pV(t){return Kn(t)&&"[object WeakSet]"==Wr(t)},vw=function gw(t){return Ms("function"==typeof t?t:f4(t,1))};var vV=Array.prototype.join;const Vv=function Tv(t,e){return null==t?"":vV.call(t,e)};var _V=J4(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const bp=_V;var Av=op(function(t,e,n){uu(t,n,e)});const bV=Av;var bw=Math.max,lh=Math.min;const Iv=function CV(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=qr(n))<0?bw(i+r,0):lh(r,i-1)),e==e?function _w(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):Iu(t,Fs,r,!0)};var Ov=J4(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()});const xV=Ov,MV=Mg("toLowerCase"),Hv=function SV(t,e){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Iw=function GV(t,e){var n=t.length;if(n)return Ko(e+=e<0?n:0,n)?t[e]:void 0},Ow=function WV(t,e){return t&&t.length?Iw(t,qr(e)):void 0},Hw=function qV(t){return t=qr(t),Qe(function(e){return Iw(e,t)})},u5=function XV(t,e){return e=Pu(e,t),null==(t=gv(t,e))||delete t[fu(Ur(e))]},KV=function Uv(t){return j4(t)?void 0:t};var rR=pu(function(t,e){var n={};if(null==t)return n;var i=!1;e=Es(e,function(s){return s=Pu(s,t),i||(i=s.length>1),s}),Le(t,m8(t),n),i&&(n=f4(n,7,KV));for(var r=e.length;r--;)u5(n,e[r]);return n});const B1=rR,hh=function Rw(t,e,n,i){if(!Lr(t))return t;for(var r=-1,s=(e=Pu(e,t)).length,a=s-1,u=t;null!=u&&++re||s&&a&&d&&!u&&!m||i&&a&&d||!n&&d||!r)return 1;if(!i&&!s&&!m&&t=u?d:d*("desc"==n[i]?-1:1)}return t.index-e.index}(s,a,n)})},rA=function iA(t,e,n,i){return null==t?[]:(rr(e)||(e=null==e?[]:[e]),rr(n=i?void 0:n)||(n=null==n?[]:[n]),Xv(t,e,n))},f5=function sA(t){return pu(function(e){return e=Es(e,h1(Ms)),Qe(function(n){var i=this;return t(e,function(r){return Sc(r,i,n)})})})},h5=f5(Es);var oA=Math.min,Bw=Qe(function(t,e){var n=(e=1==e.length&&rr(e[0])?Es(e[0],h1(Ms)):Es(p1(e,1),h1(Ms))).length;return Qe(function(i){for(var r=-1,s=oA(i.length,n);++r9007199254740991)return n;do{e%2&&(n+=t),(e=cA(e/2))&&(t+=t)}while(e);return n},uA=rp("length");var dA="\\ud800-\\udfff",pA="["+dA+"]",Gw="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ww="\\ud83c[\\udffb-\\udfff]",mA="[^"+dA+"]",gA="(?:\\ud83c[\\udde6-\\uddff]){2}",Qv="[\\ud800-\\udbff][\\udc00-\\udfff]",qw="(?:"+Gw+"|"+Ww+")?",Xw="[\\ufe0e\\ufe0f]?",f0=Xw+qw+"(?:\\u200d(?:"+[mA,gA,Qv].join("|")+")"+Xw+qw+")*",Yw="(?:"+[mA+Gw+"?",Gw,gA,Qv,pA].join("|")+")",g5=RegExp(Ww+"(?="+Ww+")|"+Yw+f0,"g");const c3=function Zv(t){return Bu(t)?function Jv(t){for(var e=g5.lastIndex=0;g5.test(t);)++e;return e}(t):uA(t)};var v5=Math.ceil;const e_=function dR(t,e){var n=(e=void 0===e?" ":Js(e)).length;if(n<2)return n?p5(e,t):e;var i=p5(e,v5(t/c3(e)));return Bu(e)?Fu(mu(i),0,t).join(""):i.slice(0,t)};var fR=Math.ceil,Qw=Math.floor;const Jw=function _A(t,e,n){t=jo(t);var i=(e=qr(e))?c3(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return e_(Qw(r),n)+t+e_(fR(r),n)},Zw=function bA(t,e,n){t=jo(t);var i=(e=qr(e))?c3(t):0;return e&&i-1;)u!==t&&y5.call(u,d,1),y5.call(t,d,1);return t},mh=function SA(t,e){return t&&t.length&&e&&e.length?C5(t,e):t},lM=Qe(mh),a_=function uM(t,e,n){return t&&t.length&&e&&e.length?C5(t,e,Ms(n)):t},dM=function vR(t,e,n){return t&&t.length&&e&&e.length?C5(t,e,void 0,n):t};var EA=Array.prototype.splice;const DA=function bR(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==s){var s=r;Ko(r)?EA.call(t,r,1):u5(t,r)}}return t};var TA=pu(function(t,e){var n=null==t?0:t.length,i=Om(t,e);return DA(t,Es(e,function(r){return Ko(r,n)?+r:r}).sort(Pw)),i});const fM=TA;var yR=Math.floor,CR=Math.random;const hM=function xR(t,e){return t+yR(CR()*(e-t+1))};var wR=parseFloat,VA=Math.min,MR=Math.random;const AA=function SR(t,e,n){if(n&&"boolean"!=typeof n&&kr(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=co(t),void 0===e?(e=t,t=0):e=co(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var r=MR();return VA(t+r*(e-t+wR("1e-"+((r+"").length-1))),e)}return hM(t,e)};var kR=Math.ceil,ER=Math.max;const l=function c(t){return function(e,n,i){return i&&"number"!=typeof i&&kr(e,n,i)&&(n=i=void 0),e=co(e),void 0===n?(n=e,e=0):n=co(n),function IA(t,e,n,i){for(var r=-1,s=ER(kR((e-t)/(n||1)),0),a=Array(s);s--;)a[i?s:++r]=t,t+=n;return a}(e,n,i=void 0===i?e1&&kr(t,e[0],e[1])?e=[]:n>2&&kr(e[0],e[1],e[2])&&(e=[e[0]]),Xv(t,p1(e,1),[])});const HA=Fse;var Use=Math.floor,Gse=Math.min;const LA=function Wse(t,e,n,i){var r=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!=e,u=null===e,d=Mo(e),m=void 0===e;r>>1,a=t[s];null!==a&&!Mo(a)&&(n?a<=e:a>>0)?(t=jo(t))&&("string"==typeof e||null!=e&&!n5(e))&&!(e=Js(e))&&Bu(t)?Fu(mu(t),0,n):t.split(e,n):[]};var coe=Math.max;const QR=function loe(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:coe(qr(e),0),Qe(function(n){var i=n[e],r=Fu(n,0,e);return i&&hu(r,i),Sc(t,this,r)})};var uoe=J4(function(t,e,n){return t+(n?" ":"")+bf(e)});const JR=uoe,ZR=function doe(t,e,n){return t=jo(t),n=null==n?0:Z4(qr(n),0,t.length),e=Js(e),t.slice(n,n+e.length)==e},eN=function foe(){return{}},tN=function hoe(){return""},nN=function poe(){return!0};var moe=da(function(t,e){return t-e},0);const iN=moe,rN=function goe(t){return t&&t.length?kw(t,me):0},sN=function voe(t,e){return t&&t.length?kw(t,Ms(e)):0},oN=function _oe(t){var e=null==t?0:t.length;return e?z2(t,1,e):[]},aN=function boe(t,e,n){return t&&t.length?(e=n||void 0===e?1:qr(e),z2(t,0,e<0?0:e)):[]},cN=function yoe(t,e,n){var i=null==t?0:t.length;return i?(e=n||void 0===e?1:qr(e),z2(t,(e=i-e)<0?0:e,i)):[]},lN=function Coe(t,e){return t&&t.length?up(t,Ms(e),!1,!0):[]},uN=function xoe(t,e){return t&&t.length?up(t,Ms(e)):[]},dN=function woe(t,e){return e(t),t};var fN=Object.prototype,Moe=fN.hasOwnProperty;const hN=function Soe(t,e,n,i){return void 0===t||Yl(t,fN[n])&&!Moe.call(i,n)?e:t};var koe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};const Doe=function Eoe(t){return"\\"+koe[t]},pN=/<%=([\s\S]+?)%>/g,_M={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:pN,variable:"",imports:{_:{escape:B8}}};var Loe=/\b__p \+= '';/g,zoe=/\b(__p \+=) '' \+/g,Roe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Noe=/[()=,{}\[\]\/\s]/,Poe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bM=/($^)/,joe=/['\n\r\u2028\u2029\\]/g,mN=Object.prototype.hasOwnProperty;const gN=function Boe(t,e,n){var i=_M.imports._.templateSettings||_M;n&&kr(t,e,n)&&(e=void 0),t=jo(t),e=I4({},e,i,hN);var u,d,r=I4({},e.imports,i.imports,hN),s=Nc(r),a=K8(r,s),m=0,_=e.interpolate||bM,y="__p += '",x=RegExp((e.escape||bM).source+"|"+_.source+"|"+(_===pN?Poe:bM).source+"|"+(e.evaluate||bM).source+"|$","g"),S=mN.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(x,function($,W,re,se,ke,ye){return re||(re=se),y+=t.slice(m,ye).replace(joe,Doe),W&&(u=!0,y+="' +\n__e("+W+") +\n'"),ke&&(d=!0,y+="';\n"+ke+";\n__p += '"),re&&(y+="' +\n((__t = ("+re+")) == null ? '' : __t) +\n'"),m=ye+$.length,$}),y+="';\n";var D=mN.call(e,"variable")&&e.variable;if(D){if(Noe.test(D))throw new Error("Invalid `variable` option passed into `_.template`")}else y="with (obj) {\n"+y+"\n}\n";y=(d?y.replace(Loe,""):y).replace(zoe,"$1").replace(Roe,"$1;"),y="function("+(D||"obj")+") {\n"+(D?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(d?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+y+"return __p\n}";var z=_6(function(){return Function(s,S+"return "+y).apply(void 0,a)});if(z.source=y,B4(z))throw z;return z},vN=function Uoe(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Lr(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),u0(t,e,{leading:i,maxWait:e,trailing:r})},x5=function Goe(t,e){return e(t)};var zA=4294967295,qoe=Math.min;const RA=function Xoe(t,e){if((t=qr(t))<1||t>9007199254740991)return[];var n=zA,i=qoe(t,zA);e=kd(e),t-=zA;for(var r=ec(i,e);++n-1;);return n},kN=function rae(t,e){for(var n=-1,i=t.length;++n-1;);return n},EN=function sae(t,e,n){if((t=jo(t))&&(n||void 0===e))return Ll(t);if(!t||!(e=Js(e)))return t;var i=mu(t),r=mu(e),s=kN(i,r),a=SN(i,r)+1;return Fu(i,s,a).join("")},DN=function oae(t,e,n){if((t=jo(t))&&(n||void 0===e))return t.slice(0,Hl(t)+1);if(!t||!(e=Js(e)))return t;var i=mu(t),r=SN(i,mu(e))+1;return Fu(i,0,r).join("")};var aae=/^\s+/;const TN=function cae(t,e,n){if((t=jo(t))&&(n||void 0===e))return t.replace(aae,"");if(!t||!(e=Js(e)))return t;var i=mu(t),r=kN(i,mu(e));return Fu(i,r).join("")};var dae=/\w*$/;const VN=function fae(t,e){var n=30,i="...";if(Lr(e)){var r="separator"in e?e.separator:r;n="length"in e?qr(e.length):n,i="omission"in e?Js(e.omission):i}var s=(t=jo(t)).length;if(Bu(t)){var a=mu(t);s=a.length}if(n>=s)return t;var u=n-c3(i);if(u<1)return i;var d=a?Fu(a,0,u).join(""):t.slice(0,u);if(void 0===r)return d+i;if(a&&(u+=d.length-u),n5(r)){if(t.slice(u).search(r)){var m,_=d;for(r.global||(r=RegExp(r.source,jo(dae.exec(r))+"g")),r.lastIndex=0;m=r.exec(_);)var y=m.index;d=d.slice(0,void 0===y?u:y)}}else if(t.indexOf(Js(r),u)!=u){var x=d.lastIndexOf(r);x>-1&&(d=d.slice(0,x))}return d+i},AN=function hae(t){return Qd(t,1)},gae=q4({"&":"&","<":"<",">":">",""":'"',"'":"'"});var IN=/&(?:amp|lt|gt|quot|#39);/g,vae=RegExp(IN.source);const ON=function _ae(t){return(t=jo(t))&&vae.test(t)?t.replace(IN,gae):t};var yae=o0&&1/h4(new o0([,-0]))[1]==1/0?function(t){return new o0(t)}:Oi;const Cae=yae,gh=function wae(t,e,n){var i=-1,r=ol,s=t.length,a=!0,u=[],d=u;if(n)a=!1,r=j8;else if(s>=200){var m=e?null:Cae(t);if(m)return h4(m);a=!1,r=i3,d=new B2}else d=e?[]:u;e:for(;++i1||this.__actions__.length)&&i instanceof bn&&Ko(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:x5,args:[r],thisArg:void 0}),new kc(i,this.__chain__).thru(function(s){return e&&!s.length&&s.push(void 0),s})):this.thru(r)});const XN=$ae,KN=function Uae(){return Of(this)},YN=function Gae(){var t=this.__wrapped__;if(t instanceof bn){var e=t;return this.__actions__.length&&(e=new bn(this)),(e=e.reverse()).__actions__.push({func:x5,args:[mM],thisArg:void 0}),new kc(e,this.__chain__)}return this.thru(mM)},jA=function Wae(t,e,n){var i=t.length;if(i<2)return i?gh(t[0]):[];for(var r=-1,s=Array(i);++r1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,PA(t,n)});const rP=ece,Er={chunk:d8,compact:uD,concat:o9,difference:cp,differenceBy:V9,differenceWith:BC,drop:O9,dropRight:H9,dropRightWhile:L9,dropWhile:qC,fill:F9,findIndex:$9,findLastIndex:W9,first:G2,flatten:ag,flattenDeep:_x,flattenDepth:bT,fromPairs:Tx,head:G2,indexOf:lv,initial:Ls,intersection:dv,intersectionBy:fv,intersectionWith:$x,join:Vv,last:Ur,lastIndexOf:Iv,nth:Ow,pull:lM,pullAll:mh,pullAllBy:a_,pullAllWith:dM,pullAt:fM,remove:eo,reverse:mM,slice:NR,sortedIndex:FR,sortedIndexBy:BR,sortedIndexOf:$R,sortedLastIndex:UR,sortedLastIndexBy:GR,sortedLastIndexOf:WR,sortedUniq:XR,sortedUniqBy:KR,tail:oN,take:aN,takeRight:cN,takeRightWhile:lN,takeWhile:uN,union:HN,unionBy:LN,unionWith:zN,uniq:RN,uniqBy:NN,uniqWith:PN,unzip:yM,unzipWith:PA,without:WN,xor:QN,xorBy:JN,xorWith:ZN,zip:eP,zipObject:nP,zipObjectDeep:iP,zipWith:rP},dc={countBy:w9,each:F8,eachRight:dp,every:fp,filter:ux,find:U9,findLast:q9,flatMap:X9,flatMapDeep:gx,flatMapDepth:nh,forEach:F8,forEachRight:dp,groupBy:rh,includes:Nx,invokeMap:Yx,keyBy:bV,map:pp,orderBy:rA,partition:rM,reduce:ln,reduceRight:Ui,reject:_i,sample:IR,sampleSize:OR,shuffle:zR,size:RR,some:jR,sortBy:HA},tce={now:L8},kl={after:Rt,ary:Qd,before:b6,bind:C6,bindKey:jm,curry:H8,curryRight:TC,debounce:u0,defer:PC,delay:Xf,flip:yx,memoize:$3,negate:fh,once:d5,overArgs:Kv,partial:_5,partialRight:iM,rearg:Q,rest:pM,spread:QR,throttle:vN,unary:AN,wrap:qN},us={castArray:c8,clone:Wy,cloneDeep:n3,cloneDeepWith:s9,cloneWith:Xy,conformsTo:_9,eq:Yl,gt:tv,gte:Ox,isArguments:Oo,isArray:rr,isArrayBuffer:ah,isArrayLike:tr,isArrayLikeObject:Kc,isBoolean:Jx,isBuffer:Dc,isDate:ew,isElement:_v,isEmpty:Zs,isEqual:zs,isEqualWith:yv,isError:B4,isFinite:Cv,isFunction:ne,isInteger:xv,isLength:Si,isMap:Nf,isMatch:e5,isMatchWith:t5,isNaN:sw,isNative:Ev,isNil:uw,isNull:Dv,isNumber:Sv,isObject:Lr,isObjectLike:Kn,isPlainObject:j4,isRegExp:n5,isSafeInteger:fV,isSet:b8,isString:oh,isSymbol:Mo,isTypedArray:V4,isUndefined:r5,isWeakMap:hV,isWeakSet:s5,lt:Lv,lte:Cw,toArray:Bv,toFinite:co,toInteger:qr,toLength:U8,toNumber:vs,toPlainObject:N8,toSafeInteger:xN,toString:jo},W2={add:No,ceil:j6,divide:lp,floor:ih,max:jv,maxBy:VV,mean:IV,meanBy:a5,min:Fv,minBy:uh,multiply:dh,round:VR,subtract:iN,sum:rN,sumBy:sN},FA={clamp:B6,inRange:av,random:AA},Rs={assign:P7,assignIn:sf,assignInWith:I4,assignWith:O4,at:N4,create:p4,defaults:OC,defaultsDeep:D9,entries:Yf,entriesIn:Ed,extend:sf,extendWith:I4,findKey:th,findLastKey:px,forIn:Ex,forInRight:q8,forOwn:Q9,forOwnRight:Dx,functions:Vx,functionsIn:J9,get:z4,has:rv,hasIn:ip,invert:pv,invertBy:YT,invoke:Kx,keys:Nc,keysIn:wl,mapKeys:zv,mapValues:Rv,merge:Tw,mergeWith:U2,omit:B1,omitBy:Wv,pick:sM,pickBy:Cp,result:TR,set:HR,setWith:LR,toPairs:Yf,toPairsIn:Ed,transform:MN,unset:jN,update:BN,updateWith:$N,values:o3,valuesIn:GN},l3={at:XN,chain:Of,commit:x8,lodash:ot,next:$v,plant:b5,reverse:YN,tap:dN,thru:x5,toIterator:NA,toJSON:wp,value:wp,valueOf:wp,wrapperChain:KN},Aa={camelCase:N6,capitalize:R2,deburr:I6,endsWith:YC,escape:B8,escapeRegExp:sx,kebabCase:bp,lowerCase:xV,lowerFirst:MV,pad:Jw,padEnd:Zw,padStart:t_,parseInt:n_,repeat:$1,replace:h0,snakeCase:PR,split:YR,startCase:JR,startsWith:ZR,template:gN,templateSettings:_M,toLower:bN,toUpper:wN,trim:EN,trimEnd:DN,trimStart:TN,truncate:VN,unescape:ON,upperCase:UN,upperFirst:bf,words:Q4},Ua={attempt:_6,bindAll:W3,cond:vC,conforms:g9,constant:Pl,defaultTo:k9,flow:Sx,flowRight:Y9,identity:me,iteratee:vw,matches:Nv,matchesProperty:Pv,method:Vw,methodOf:OV,mixin:Aw,noop:Oi,nthArg:Hw,over:h5,overEvery:xp,overSome:Yv,property:Wf,propertyOf:o_,range:v,rangeRight:k,stubArray:en,stubFalse:N1,stubObject:eN,stubString:tN,stubTrue:nN,times:RA,toPath:yN,uniqueId:vh};var oce=Math.max,ace=Math.min;var fce=Math.min;var sP=4294967295,bce=Array.prototype,oP=Object.prototype.hasOwnProperty,aP=As?As.iterator:void 0,Cce=Math.max,cP=Math.min,BA=function(t){return function(e,n,i){if(null==i){var r=Lr(n),s=r&&Nc(n),a=s&&s.length&&X8(n,s);(a?a.length:r)||(i=n,n=e,e=this)}return t(e,n,i)}}(Aw);ot.after=kl.after,ot.ary=kl.ary,ot.assign=Rs.assign,ot.assignIn=Rs.assignIn,ot.assignInWith=Rs.assignInWith,ot.assignWith=Rs.assignWith,ot.at=Rs.at,ot.before=kl.before,ot.bind=kl.bind,ot.bindAll=Ua.bindAll,ot.bindKey=kl.bindKey,ot.castArray=us.castArray,ot.chain=l3.chain,ot.chunk=Er.chunk,ot.compact=Er.compact,ot.concat=Er.concat,ot.cond=Ua.cond,ot.conforms=Ua.conforms,ot.constant=Ua.constant,ot.countBy=dc.countBy,ot.create=Rs.create,ot.curry=kl.curry,ot.curryRight=kl.curryRight,ot.debounce=kl.debounce,ot.defaults=Rs.defaults,ot.defaultsDeep=Rs.defaultsDeep,ot.defer=kl.defer,ot.delay=kl.delay,ot.difference=Er.difference,ot.differenceBy=Er.differenceBy,ot.differenceWith=Er.differenceWith,ot.drop=Er.drop,ot.dropRight=Er.dropRight,ot.dropRightWhile=Er.dropRightWhile,ot.dropWhile=Er.dropWhile,ot.fill=Er.fill,ot.filter=dc.filter,ot.flatMap=dc.flatMap,ot.flatMapDeep=dc.flatMapDeep,ot.flatMapDepth=dc.flatMapDepth,ot.flatten=Er.flatten,ot.flattenDeep=Er.flattenDeep,ot.flattenDepth=Er.flattenDepth,ot.flip=kl.flip,ot.flow=Ua.flow,ot.flowRight=Ua.flowRight,ot.fromPairs=Er.fromPairs,ot.functions=Rs.functions,ot.functionsIn=Rs.functionsIn,ot.groupBy=dc.groupBy,ot.initial=Er.initial,ot.intersection=Er.intersection,ot.intersectionBy=Er.intersectionBy,ot.intersectionWith=Er.intersectionWith,ot.invert=Rs.invert,ot.invertBy=Rs.invertBy,ot.invokeMap=dc.invokeMap,ot.iteratee=Ua.iteratee,ot.keyBy=dc.keyBy,ot.keys=Nc,ot.keysIn=Rs.keysIn,ot.map=dc.map,ot.mapKeys=Rs.mapKeys,ot.mapValues=Rs.mapValues,ot.matches=Ua.matches,ot.matchesProperty=Ua.matchesProperty,ot.memoize=kl.memoize,ot.merge=Rs.merge,ot.mergeWith=Rs.mergeWith,ot.method=Ua.method,ot.methodOf=Ua.methodOf,ot.mixin=BA,ot.negate=fh,ot.nthArg=Ua.nthArg,ot.omit=Rs.omit,ot.omitBy=Rs.omitBy,ot.once=kl.once,ot.orderBy=dc.orderBy,ot.over=Ua.over,ot.overArgs=kl.overArgs,ot.overEvery=Ua.overEvery,ot.overSome=Ua.overSome,ot.partial=kl.partial,ot.partialRight=kl.partialRight,ot.partition=dc.partition,ot.pick=Rs.pick,ot.pickBy=Rs.pickBy,ot.property=Ua.property,ot.propertyOf=Ua.propertyOf,ot.pull=Er.pull,ot.pullAll=Er.pullAll,ot.pullAllBy=Er.pullAllBy,ot.pullAllWith=Er.pullAllWith,ot.pullAt=Er.pullAt,ot.range=Ua.range,ot.rangeRight=Ua.rangeRight,ot.rearg=kl.rearg,ot.reject=dc.reject,ot.remove=Er.remove,ot.rest=kl.rest,ot.reverse=Er.reverse,ot.sampleSize=dc.sampleSize,ot.set=Rs.set,ot.setWith=Rs.setWith,ot.shuffle=dc.shuffle,ot.slice=Er.slice,ot.sortBy=dc.sortBy,ot.sortedUniq=Er.sortedUniq,ot.sortedUniqBy=Er.sortedUniqBy,ot.split=Aa.split,ot.spread=kl.spread,ot.tail=Er.tail,ot.take=Er.take,ot.takeRight=Er.takeRight,ot.takeRightWhile=Er.takeRightWhile,ot.takeWhile=Er.takeWhile,ot.tap=l3.tap,ot.throttle=kl.throttle,ot.thru=x5,ot.toArray=us.toArray,ot.toPairs=Rs.toPairs,ot.toPairsIn=Rs.toPairsIn,ot.toPath=Ua.toPath,ot.toPlainObject=us.toPlainObject,ot.transform=Rs.transform,ot.unary=kl.unary,ot.union=Er.union,ot.unionBy=Er.unionBy,ot.unionWith=Er.unionWith,ot.uniq=Er.uniq,ot.uniqBy=Er.uniqBy,ot.uniqWith=Er.uniqWith,ot.unset=Rs.unset,ot.unzip=Er.unzip,ot.unzipWith=Er.unzipWith,ot.update=Rs.update,ot.updateWith=Rs.updateWith,ot.values=Rs.values,ot.valuesIn=Rs.valuesIn,ot.without=Er.without,ot.words=Aa.words,ot.wrap=kl.wrap,ot.xor=Er.xor,ot.xorBy=Er.xorBy,ot.xorWith=Er.xorWith,ot.zip=Er.zip,ot.zipObject=Er.zipObject,ot.zipObjectDeep=Er.zipObjectDeep,ot.zipWith=Er.zipWith,ot.entries=Rs.toPairs,ot.entriesIn=Rs.toPairsIn,ot.extend=Rs.assignIn,ot.extendWith=Rs.assignInWith,BA(ot,ot),ot.add=W2.add,ot.attempt=Ua.attempt,ot.camelCase=Aa.camelCase,ot.capitalize=Aa.capitalize,ot.ceil=W2.ceil,ot.clamp=FA.clamp,ot.clone=us.clone,ot.cloneDeep=us.cloneDeep,ot.cloneDeepWith=us.cloneDeepWith,ot.cloneWith=us.cloneWith,ot.conformsTo=us.conformsTo,ot.deburr=Aa.deburr,ot.defaultTo=Ua.defaultTo,ot.divide=W2.divide,ot.endsWith=Aa.endsWith,ot.eq=us.eq,ot.escape=Aa.escape,ot.escapeRegExp=Aa.escapeRegExp,ot.every=dc.every,ot.find=dc.find,ot.findIndex=Er.findIndex,ot.findKey=Rs.findKey,ot.findLast=dc.findLast,ot.findLastIndex=Er.findLastIndex,ot.findLastKey=Rs.findLastKey,ot.floor=W2.floor,ot.forEach=dc.forEach,ot.forEachRight=dc.forEachRight,ot.forIn=Rs.forIn,ot.forInRight=Rs.forInRight,ot.forOwn=Rs.forOwn,ot.forOwnRight=Rs.forOwnRight,ot.get=Rs.get,ot.gt=us.gt,ot.gte=us.gte,ot.has=Rs.has,ot.hasIn=Rs.hasIn,ot.head=Er.head,ot.identity=me,ot.includes=dc.includes,ot.indexOf=Er.indexOf,ot.inRange=FA.inRange,ot.invoke=Rs.invoke,ot.isArguments=us.isArguments,ot.isArray=rr,ot.isArrayBuffer=us.isArrayBuffer,ot.isArrayLike=us.isArrayLike,ot.isArrayLikeObject=us.isArrayLikeObject,ot.isBoolean=us.isBoolean,ot.isBuffer=us.isBuffer,ot.isDate=us.isDate,ot.isElement=us.isElement,ot.isEmpty=us.isEmpty,ot.isEqual=us.isEqual,ot.isEqualWith=us.isEqualWith,ot.isError=us.isError,ot.isFinite=us.isFinite,ot.isFunction=us.isFunction,ot.isInteger=us.isInteger,ot.isLength=us.isLength,ot.isMap=us.isMap,ot.isMatch=us.isMatch,ot.isMatchWith=us.isMatchWith,ot.isNaN=us.isNaN,ot.isNative=us.isNative,ot.isNil=us.isNil,ot.isNull=us.isNull,ot.isNumber=us.isNumber,ot.isObject=Lr,ot.isObjectLike=us.isObjectLike,ot.isPlainObject=us.isPlainObject,ot.isRegExp=us.isRegExp,ot.isSafeInteger=us.isSafeInteger,ot.isSet=us.isSet,ot.isString=us.isString,ot.isSymbol=us.isSymbol,ot.isTypedArray=us.isTypedArray,ot.isUndefined=us.isUndefined,ot.isWeakMap=us.isWeakMap,ot.isWeakSet=us.isWeakSet,ot.join=Er.join,ot.kebabCase=Aa.kebabCase,ot.last=Ur,ot.lastIndexOf=Er.lastIndexOf,ot.lowerCase=Aa.lowerCase,ot.lowerFirst=Aa.lowerFirst,ot.lt=us.lt,ot.lte=us.lte,ot.max=W2.max,ot.maxBy=W2.maxBy,ot.mean=W2.mean,ot.meanBy=W2.meanBy,ot.min=W2.min,ot.minBy=W2.minBy,ot.stubArray=Ua.stubArray,ot.stubFalse=Ua.stubFalse,ot.stubObject=Ua.stubObject,ot.stubString=Ua.stubString,ot.stubTrue=Ua.stubTrue,ot.multiply=W2.multiply,ot.nth=Er.nth,ot.noop=Ua.noop,ot.now=tce.now,ot.pad=Aa.pad,ot.padEnd=Aa.padEnd,ot.padStart=Aa.padStart,ot.parseInt=Aa.parseInt,ot.random=FA.random,ot.reduce=dc.reduce,ot.reduceRight=dc.reduceRight,ot.repeat=Aa.repeat,ot.replace=Aa.replace,ot.result=Rs.result,ot.round=W2.round,ot.sample=dc.sample,ot.size=dc.size,ot.snakeCase=Aa.snakeCase,ot.some=dc.some,ot.sortedIndex=Er.sortedIndex,ot.sortedIndexBy=Er.sortedIndexBy,ot.sortedIndexOf=Er.sortedIndexOf,ot.sortedLastIndex=Er.sortedLastIndex,ot.sortedLastIndexBy=Er.sortedLastIndexBy,ot.sortedLastIndexOf=Er.sortedLastIndexOf,ot.startCase=Aa.startCase,ot.startsWith=Aa.startsWith,ot.subtract=W2.subtract,ot.sum=W2.sum,ot.sumBy=W2.sumBy,ot.template=Aa.template,ot.times=Ua.times,ot.toFinite=us.toFinite,ot.toInteger=qr,ot.toLength=us.toLength,ot.toLower=Aa.toLower,ot.toNumber=us.toNumber,ot.toSafeInteger=us.toSafeInteger,ot.toString=us.toString,ot.toUpper=Aa.toUpper,ot.trim=Aa.trim,ot.trimEnd=Aa.trimEnd,ot.trimStart=Aa.trimStart,ot.truncate=Aa.truncate,ot.unescape=Aa.unescape,ot.uniqueId=Ua.uniqueId,ot.upperCase=Aa.upperCase,ot.upperFirst=Aa.upperFirst,ot.each=dc.forEach,ot.eachRight=dc.forEachRight,ot.first=Er.head,BA(ot,function(){var t={};return wd(ot,function(e,n){oP.call(ot.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),ot.VERSION="4.17.21",(ot.templateSettings=Aa.templateSettings).imports._=ot,Cl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){ot[t].placeholder=ot}),Cl(["drop","take"],function(t,e){bn.prototype[t]=function(n){n=void 0===n?1:Cce(qr(n),0);var i=this.__filtered__&&!e?new bn(this):this.clone();return i.__filtered__?i.__takeCount__=cP(n,i.__takeCount__):i.__views__.push({size:cP(n,sP),type:t+(i.__dir__<0?"Right":"")}),i},bn.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),Cl(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;bn.prototype[t]=function(r){var s=this.clone();return s.__iteratees__.push({iteratee:Ms(r),type:n}),s.__filtered__=s.__filtered__||i,s}}),Cl(["head","last"],function(t,e){var n="take"+(e?"Right":"");bn.prototype[t]=function(){return this[n](1).value()[0]}}),Cl(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");bn.prototype[t]=function(){return this.__filtered__?new bn(this):this[n](1)}}),bn.prototype.compact=function(){return this.filter(me)},bn.prototype.find=function(t){return this.filter(t).head()},bn.prototype.findLast=function(t){return this.reverse().find(t)},bn.prototype.invokeMap=Qe(function(t,e){return"function"==typeof t?new bn(this):this.map(function(n){return gp(n,t,e)})}),bn.prototype.reject=function(t){return this.filter(fh(Ms(t)))},bn.prototype.slice=function(t,e){t=qr(t);var n=this;return n.__filtered__&&(t>0||e<0)?new bn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=qr(e))<0?n.dropRight(-e):n.take(e-t)),n)},bn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},bn.prototype.toArray=function(){return this.take(sP)},wd(bn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=ot[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);r&&(ot.prototype[e]=function(){var a=this.__wrapped__,u=i?[1]:arguments,d=a instanceof bn,m=u[0],_=d||rr(a),y=function(W){var re=r.apply(ot,hu([W],u));return i&&x?re[0]:re};_&&n&&"function"==typeof m&&1!=m.length&&(d=_=!1);var x=this.__chain__,D=s&&!x,z=d&&!this.__actions__.length;if(!s&&_){a=z?a:new bn(this);var $=t.apply(a,u);return $.__actions__.push({func:x5,args:[y],thisArg:void 0}),new kc($,x)}return D&&z?t.apply(this,u):($=this.thru(y),D?i?$.value()[0]:$.value():$)})}),Cl(["pop","push","shift","sort","splice","unshift"],function(t){var e=bce[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);ot.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var s=this.value();return e.apply(rr(s)?s:[],r)}return this[n](function(a){return e.apply(rr(a)?a:[],r)})}}),wd(bn.prototype,function(t,e){var n=ot[e];if(n){var i=n.name+"";oP.call(xr,i)||(xr[i]=[]),xr[i].push({name:e,func:n})}}),xr[Xc(void 0,2).name]=[{name:"wrapper",func:void 0}],bn.prototype.clone=function nce(){var t=new bn(this.__wrapped__);return t.__actions__=uo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=uo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=uo(this.__views__),t},bn.prototype.reverse=function rce(){if(this.__filtered__){var t=new bn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},bn.prototype.value=function hce(){var t=this.__wrapped__.value(),e=this.__dir__,n=rr(t),i=e<0,r=n?t.length:0,s=function cce(t,e,n){for(var i=-1,r=n.length;++ithis.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,i){[e,n]=k5(this,e,n);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(n,this.length,r,1),u3.from(r,this.length-(n-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=k5(this,e,n);let i=[];return this.decompose(e,n,i,0),u3.from(i,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new y_(this),s=new y_(e);for(let a=n,u=n;;){if(r.next(a),s.next(a),a=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(u+=r.value.length,r.done||u>=i)return!0}}iter(e=1){return new y_(this,e)}iterRange(e,n=this.length){return new hX(this,e,n)}iterLines(e,n){let i;if(null==e)i=this.iter();else{null==n&&(n=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new pX(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Bl(e):u3.from(Bl.split(e,[])):Ia.empty}}class Bl extends Ia{constructor(e,n=function MDe(t){let e=-1;for(let n of t)e+=n.length+1;return e}(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,i,r){for(let s=0;;s++){let a=this.text[s],u=r+a.length;if((n?i:u)>=e)return new SDe(r,u,i,a);r=u+1,i++}}decompose(e,n,i,r){let s=e<=0&&n>=this.length?this:new Bl(fX(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(1&r){let a=i.pop(),u=GM(s.text,a.text.slice(),0,s.length);if(u.length<=32)i.push(new Bl(u,a.length+s.length));else{let d=u.length>>1;i.push(new Bl(u.slice(0,d)),new Bl(u.slice(d)))}}else i.push(s)}replace(e,n,i){if(!(i instanceof Bl))return super.replace(e,n,i);[e,n]=k5(this,e,n);let r=GM(this.text,GM(i.text,fX(this.text,0,e)),n),s=this.length+i.length-(n-e);return r.length<=32?new Bl(r,s):u3.from(Bl.split(r,[]),s)}sliceString(e,n=this.length,i="\n"){[e,n]=k5(this,e,n);let r="";for(let s=0,a=0;s<=n&&ae&&a&&(r+=i),es&&(r+=u.slice(Math.max(0,e-s),n-s)),s=d+1}return r}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let i=[],r=-1;for(let s of e)i.push(s),r+=s.length+1,32==i.length&&(n.push(new Bl(i,r)),i=[],r=-1);return r>-1&&n.push(new Bl(i,r)),n}}class u3 extends Ia{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,n,i,r){for(let s=0;;s++){let a=this.children[s],u=r+a.length,d=i+a.lines-1;if((n?d:u)>=e)return a.lineInner(e,n,i,r);r=u+1,i=d+1}}decompose(e,n,i,r){for(let s=0,a=0;a<=n&&s=a){let m=r&((a<=e?1:0)|(d>=n?2:0));a>=e&&d<=n&&!m?i.push(u):u.decompose(e-a,n-a,i,m)}a=d+1}}replace(e,n,i){if([e,n]=k5(this,e,n),i.lines=s&&n<=u){let d=a.replace(e-s,n-s,i),m=this.lines-a.lines+d.lines;if(d.lines>4&&d.lines>m>>6){let _=this.children.slice();return _[r]=d,new u3(_,this.length-(n-e)+i.length)}return super.replace(s,u,d)}s=u+1}return super.replace(e,n,i)}sliceString(e,n=this.length,i="\n"){[e,n]=k5(this,e,n);let r="";for(let s=0,a=0;se&&s&&(r+=i),ea&&(r+=u.sliceString(e-a,n-a,i)),a=d+1}return r}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof u3))return 0;let i=0,[r,s,a,u]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=n,s+=n){if(r==a||s==u)return i;let d=this.children[r],m=e.children[s];if(d!=m)return i+d.scanIdentical(m,n);i+=d.length+1}}static from(e,n=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let S of e)i+=S.lines;if(i<32){let S=[];for(let D of e)D.flatten(S);return new Bl(S,n)}let r=Math.max(32,i>>5),s=r<<1,a=r>>1,u=[],d=0,m=-1,_=[];function y(S){let D;if(S.lines>s&&S instanceof u3)for(let z of S.children)y(z);else S.lines>a&&(d>a||!d)?(x(),u.push(S)):S instanceof Bl&&d&&(D=_[_.length-1])instanceof Bl&&S.lines+D.lines<=32?(d+=S.lines,m+=S.length+1,_[_.length-1]=new Bl(D.text.concat(S.text),D.length+1+S.length)):(d+S.lines>r&&x(),d+=S.lines,m+=S.length+1,_.push(S))}function x(){0!=d&&(u.push(1==_.length?_[0]:u3.from(_,m)),m=-1,d=_.length=0)}for(let S of e)y(S);return x(),1==u.length?u[0]:new u3(u,n)}}function GM(t,e,n=0,i=1e9){for(let r=0,s=0,a=!0;s=n&&(d>i&&(u=u.slice(0,i-r)),r0?1:(e instanceof Bl?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],s=this.offsets[i],a=s>>1;if(a==(n>0?r instanceof Bl?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;n>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(n>0?0:1)){if(this.offsets[i]+=n,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof Bl){let d=r.text[a+(n<0?-1:0)];if(this.offsets[i]+=n,d.length>Math.max(0,e))return this.value=0==e?d:n>0?d.slice(e):d.slice(0,d.length-e),this;e-=d.length}else{let d=r.children[a+(n<0?-1:0)];e>d.length?(e-=d.length,this.offsets[i]+=n):(n<0&&this.offsets[i]--,this.nodes.push(d),this.offsets.push(n>0?1:(d instanceof Bl?d.text.length:d.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class hX{constructor(e,n,i){this.value="",this.done=!1,this.cursor=new y_(e,n>i?-1:1),this.pos=n>i?e.length:0,this.from=Math.min(n,i),this.to=Math.max(n,i)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let i=n<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*n,this.value=r.length<=i?r:n<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class pX{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:i,value:r}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Ia.prototype[Symbol.iterator]=function(){return this.iter()},y_.prototype[Symbol.iterator]=hX.prototype[Symbol.iterator]=pX.prototype[Symbol.iterator]=function(){return this});class SDe{constructor(e,n,i,r){this.from=e,this.to=n,this.number=i,this.text=r}get length(){return this.to-this.from}}function k5(t,e,n){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,n))]}let E5="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return E5[e-1]<=t;return!1}function mX(t){return t>=127462&&t<=127487}const gX=8205;function U1(t,e,n=!0,i=!0){return(n?vX:EDe)(t,e,i)}function vX(t,e,n){if(e==t.length)return e;e&&_X(t.charCodeAt(e))&&bX(t.charCodeAt(e-1))&&e--;let i=G1(t,e);for(e+=Dd(i);e=0&&mX(G1(t,a));)s++,a-=2;if(s%2==0)break;e+=2}}}return e}function EDe(t,e,n){for(;e>0;){let i=vX(t,e-2,n);if(i=56320&&t<57344}function bX(t){return t>=55296&&t<56320}function G1(t,e){let n=t.charCodeAt(e);if(!bX(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return _X(i)?i-56320+(n-55296<<10)+65536:n}function YI(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Dd(t){return t<65536?1:2}const QI=/\r\n?|\n/;var q2=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(q2||(q2={}));class d3{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;ne)return s+(e-r);s+=u}else{if(i!=q2.Simple&&m>=e&&(i==q2.TrackDel&&re||i==q2.TrackBefore&&re))return null;if(m>e||m==e&&n<0&&!u)return e==r||n<0?s:s+d;s+=d}r=m}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,n=e){for(let i=0,r=0;i=0&&r<=n&&u>=e)return!(rn)||"cover";r=u}return!1}toString(){let e="";for(let n=0;n=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>"number"!=typeof n))throw new RangeError("Invalid JSON representation of ChangeDesc");return new d3(e)}static create(e){return new d3(e)}}class m1 extends d3{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return JI(this,(n,i,r,s,a)=>e=e.replace(r,r+(i-n),a),!1),e}mapDesc(e,n=!1){return ZI(this,e,n,!0)}invert(e){let n=this.sections.slice(),i=[];for(let r=0,s=0;r=0){n[r]=u,n[r+1]=a;let d=r>>1;for(;i.length0&&yh(i,n,s.text),s.forward(_),u+=_}let m=e[a++];for(;u>1].toJSON()))}return e}static of(e,n,i){let r=[],s=[],a=0,u=null;function d(_=!1){if(!_&&!r.length)return;ax||y<0||x>n)throw new RangeError(`Invalid change range ${y} to ${x} (in doc of length ${n})`);let D=S?"string"==typeof S?Ia.of(S.split(i||QI)):S:Ia.empty,z=D.length;if(y==x&&0==z)return;ya&&d2(r,y-a,-1),d2(r,x-y,z),yh(s,r,D),a=x}}(e),d(!u),u}static empty(e){return new m1(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],i=[];for(let r=0;ru&&"string"!=typeof a))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==s.length)n.push(s[0],0);else{for(;i.length=0&&n<=0&&n==t[r+1]?t[r]+=e:0==e&&0==t[r]?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function yh(t,e,n){if(0==n.length)return;let i=e.length-2>>1;if(i>1])),!(n||a==t.sections.length||t.sections[a+1]<0);)u=t.sections[a++],d=t.sections[a++];e(r,m,s,_,y),r=m,s=_}}}function ZI(t,e,n,i=!1){let r=[],s=i?[]:null,a=new C_(t),u=new C_(e);for(let d=-1;;)if(-1==a.ins&&-1==u.ins){let m=Math.min(a.len,u.len);d2(r,m,-1),a.forward(m),u.forward(m)}else if(u.ins>=0&&(a.ins<0||d==a.i||0==a.off&&(u.len=0&&d=0)){if(a.done&&u.done)return s?m1.createSet(r,s):d3.create(r);throw new Error("Mismatched change set lengths")}{let m=0,_=a.len;for(;_;)if(-1==u.ins){let y=Math.min(_,u.len);m+=y,_-=y,u.forward(y)}else{if(!(0==u.ins&&u.len<_))break;_-=u.len,u.next()}d2(r,m,dd||a.ins>=0&&a.len>d)&&(u||i.length>m),s.forward2(d),a.forward(d)}}else d2(i,0,a.ins,u),r&&yh(r,i,a.text),a.next()}}class C_{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return n>=e.length?Ia.empty:e[n]}textBit(e){let{inserted:n}=this.set,i=this.i-2>>1;return i>=n.length&&!e?Ia.empty:n[i].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class kp{constructor(e,n,i){this.from=e,this.to=n,this.flags=i}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,n=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,n):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new kp(i,r,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return mi.range(e,n);let i=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return mi.range(this.anchor,i)}eq(e,n=!1){return!(this.anchor!=e.anchor||this.head!=e.head||n&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return mi.range(e.anchor,e.head)}static create(e,n,i){return new kp(e,n,i)}}class mi{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:mi.create(this.ranges.map(i=>i.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new mi(e.ranges.map(n=>kp.fromJSON(n)),e.main)}static single(e,n=e){return new mi([mi.range(e,n)],0)}static create(e,n=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;re?8:0)|s)}static normalized(e,n=0){let i=e[n];e.sort((r,s)=>r.from-s.from),n=e.indexOf(i);for(let r=1;rs.head?mi.range(d,u):mi.range(u,d))}}return new mi(e,n)}}function CX(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let eO=0;class sr{constructor(e,n,i,r,s){this.combine=e,this.compareInput=n,this.compare=i,this.isStatic=r,this.id=eO++,this.default=e([]),this.extensions="function"==typeof s?s(this):s}get reader(){return this}static define(e={}){return new sr(e.combine||(n=>n),e.compareInput||((n,i)=>n===i),e.compare||(e.combine?(n,i)=>n===i:tO),!!e.static,e.enables)}of(e){return new WM([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new WM(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new WM(e,this,2,n)}from(e,n){return n||(n=i=>i),this.compute([e],i=>n(i.field(e)))}}function tO(t,e){return t==e||t.length==e.length&&t.every((n,i)=>n===e[i])}class WM{constructor(e,n,i,r){this.dependencies=e,this.facet=n,this.type=i,this.value=r,this.id=eO++}dynamicSlot(e){var n;let i=this.value,r=this.facet.compareInput,s=this.id,a=e[s]>>1,u=2==this.type,d=!1,m=!1,_=[];for(let y of this.dependencies)"doc"==y?d=!0:"selection"==y?m=!0:1&(null!==(n=e[y.id])&&void 0!==n?n:1)||_.push(e[y.id]);return{create:y=>(y.values[a]=i(y),1),update(y,x){if(d&&x.docChanged||m&&(x.docChanged||x.selection)||nO(y,_)){let S=i(y);if(u?!xX(S,y.values[a],r):!r(S,y.values[a]))return y.values[a]=S,1}return 0},reconfigure:(y,x)=>{let S,D=x.config.address[s];if(null!=D){let z=XM(x,D);if(this.dependencies.every($=>$ instanceof sr?x.facet($)===y.facet($):!($ instanceof e1)||x.field($,!1)==y.field($,!1))||(u?xX(S=i(y),z,r):r(S=i(y),z)))return y.values[a]=z,0}else S=i(y);return y.values[a]=S,1}}}}function xX(t,e,n){if(t.length!=e.length)return!1;for(let i=0;it[d.id]),r=n.map(d=>d.type),s=i.filter(d=>!(1&d)),a=t[e.id]>>1;function u(d){let m=[];for(let _=0;_i===r),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(wX).find(i=>i.field==this);return(n?.create||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:i=>(i.values[n]=this.create(i),1),update:(i,r)=>{let s=i.values[n],a=this.updateF(s,r);return this.compareF(s,a)?0:(i.values[n]=a,1)},reconfigure:(i,r)=>null!=r.config.address[this.id]?(i.values[n]=r.field(this),0):(i.values[n]=this.create(i),1)}}init(e){return[this,wX.of({field:this,create:e})]}get extension(){return this}}function x_(t){return e=>new MX(e,t)}const v0={highest:x_(0),high:x_(1),default:x_(2),low:x_(3),lowest:x_(4)};class MX{constructor(e,n){this.inner=e,this.prec=n}}class _0{of(e){return new iO(this,e)}reconfigure(e){return _0.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class iO{constructor(e,n){this.compartment=e,this.inner=n}}class qM{constructor(e,n,i,r,s,a){for(this.base=e,this.compartments=n,this.dynamicSlots=i,this.address=r,this.staticValues=s,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,n,i){let r=[],s=Object.create(null),a=new Map;for(let x of function TDe(t,e,n){let i=[[],[],[],[],[]],r=new Map;return function s(a,u){let d=r.get(a);if(null!=d){if(d<=u)return;let m=i[d].indexOf(a);m>-1&&i[d].splice(m,1),a instanceof iO&&n.delete(a.compartment)}if(r.set(a,u),Array.isArray(a))for(let m of a)s(m,u);else if(a instanceof iO){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let m=e.get(a.compartment)||a.inner;n.set(a.compartment,m),s(m,u)}else if(a instanceof MX)s(a.inner,a.prec);else if(a instanceof e1)i[u].push(a),a.provides&&s(a.provides,u);else if(a instanceof WM)i[u].push(a),a.facet.extensions&&s(a.facet.extensions,2);else{let m=a.extension;if(!m)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(m,u)}}(t,2),i.reduce((a,u)=>a.concat(u))}(e,n,a))x instanceof e1?r.push(x):(s[x.facet.id]||(s[x.facet.id]=[])).push(x);let u=Object.create(null),d=[],m=[];for(let x of r)u[x.id]=m.length<<1,m.push(S=>x.slot(S));let _=i?.config.facets;for(let x in s){let S=s[x],D=S[0].facet,z=_&&_[x]||[];if(S.every($=>0==$.type))if(u[D.id]=d.length<<1|1,tO(z,S))d.push(i.facet(D));else{let $=D.combine(S.map(W=>W.value));d.push(i&&D.compare($,i.facet(D))?i.facet(D):$)}else{for(let $ of S)0==$.type?(u[$.id]=d.length<<1|1,d.push($.value)):(u[$.id]=m.length<<1,m.push(W=>$.dynamicSlot(W)));u[D.id]=m.length<<1,m.push($=>DDe($,D,S))}}let y=m.map(x=>x(u));return new qM(e,a,y,u,d,s)}}function w_(t,e){if(1&e)return 2;let n=e>>1,i=t.status[n];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function XM(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}const SX=sr.define(),rO=sr.define({combine:t=>t.some(e=>e),static:!0}),kX=sr.define({combine:t=>t.length?t[0]:void 0,static:!0}),EX=sr.define(),DX=sr.define(),TX=sr.define(),VX=sr.define({combine:t=>!!t.length&&t[0]});class b0{constructor(e,n){this.type=e,this.value=n}static define(){return new VDe}}class VDe{of(e){return new b0(this,e)}}class ADe{constructor(e){this.map=e}of(e){return new Uo(this,e)}}let Uo=(()=>{class t{constructor(n,i){this.type=n,this.value=i}map(n){let i=this.type.map(this.value,n);return void 0===i?void 0:i==this.value?this:new t(this.type,i)}is(n){return this.type==n}static define(n={}){return new ADe(n.map||(i=>i))}static mapEffects(n,i){if(!n.length)return n;let r=[];for(let s of n){let a=s.map(i);a&&r.push(a)}return r}}return t.reconfigure=t.define(),t.appendConfig=t.define(),t})(),f3=(()=>{class t{constructor(n,i,r,s,a,u){this.startState=n,this.changes=i,this.selection=r,this.effects=s,this.annotations=a,this.scrollIntoView=u,this._doc=null,this._state=null,r&&CX(r,i.newLength),a.some(d=>d.type==t.time)||(this.annotations=a.concat(t.time.of(Date.now())))}static create(n,i,r,s,a,u){return new t(n,i,r,s,a,u)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(n){for(let i of this.annotations)if(i.type==n)return i.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(n){let i=this.annotation(t.userEvent);return!(!i||!(i==n||i.length>n.length&&i.slice(0,n.length)==n&&"."==i[n.length]))}}return t.time=b0.define(),t.userEvent=b0.define(),t.addToHistory=b0.define(),t.remote=b0.define(),t})();function IDe(t,e){let n=[];for(let i=0,r=0;;){let s,a;if(i=t[i]))s=t[i++],a=t[i++];else{if(!(r=0;r--){let s=n[r](t);s&&Object.keys(s).length&&(i=AX(i,sO(e,s,t.changes.newLength),!0))}return i==t?t:f3.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function ODe(t){let e=t.startState,n=!0;for(let r of e.facet(EX)){let s=r(t);if(!1===s){n=!1;break}Array.isArray(s)&&(n=!0===n?s:IDe(n,s))}if(!0!==n){let r,s;if(!1===n)s=t.changes.invertedDesc,r=m1.empty(e.doc.length);else{let a=t.changes.filter(n);r=a.changes,s=a.filtered.mapDesc(a.changes).invertedDesc}t=f3.create(e,r,t.selection&&t.selection.map(s),Uo.mapEffects(t.effects,s),t.annotations,t.scrollIntoView)}let i=e.facet(DX);for(let r=i.length-1;r>=0;r--){let s=i[r](t);t=s instanceof f3?s:Array.isArray(s)&&1==s.length&&s[0]instanceof f3?s[0]:IX(e,D5(s),!1)}return t}(r):r)}const LDe=[];function D5(t){return null==t?LDe:Array.isArray(t)?t:[t]}var Yc=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Yc||(Yc={}));const zDe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let oO;try{oO=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}let W1=(()=>{class t{constructor(n,i,r,s,a,u){this.config=n,this.doc=i,this.selection=r,this.values=s,this.status=n.statusTemplate.slice(),this.computeSlot=a,u&&(u._state=this);for(let d=0;ds.set(_,m)),i=null),s.set(d.value.compartment,d.value.extension)):d.is(Uo.reconfigure)?(i=null,r=d.value):d.is(Uo.appendConfig)&&(i=null,r=D5(r).concat(d.value));i?a=n.startState.values.slice():(i=qM.resolve(r,s,this),a=new t(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(m,_)=>_.reconfigure(m,this),null).values);let u=n.startState.facet(rO)?n.newSelection:n.newSelection.asSingle();new t(i,n.newDoc,u,a,(d,m)=>m.update(d,n),n)}replaceSelection(n){return"string"==typeof n&&(n=this.toText(n)),this.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:n},range:mi.cursor(i.from+n.length)}))}changeByRange(n){let i=this.selection,r=n(i.ranges[0]),s=this.changes(r.changes),a=[r.range],u=D5(r.effects);for(let d=1;du.spec.fromJSON(d,m)))}return t.create({doc:n.doc,selection:mi.fromJSON(n.selection),extensions:i.extensions?s.concat([i.extensions]):s})}static create(n={}){let i=qM.resolve(n.extensions||[],new Map),r=n.doc instanceof Ia?n.doc:Ia.of((n.doc||"").split(i.staticFacet(t.lineSeparator)||QI)),s=n.selection?n.selection instanceof mi?n.selection:mi.single(n.selection.anchor,n.selection.head):mi.single(0);return CX(s,r.length),i.staticFacet(rO)||(s=s.asSingle()),new t(i,r,s,i.dynamicSlots.map(()=>null),(a,u)=>u.create(a),null)}get tabSize(){return this.facet(t.tabSize)}get lineBreak(){return this.facet(t.lineSeparator)||"\n"}get readOnly(){return this.facet(VX)}phrase(n,...i){for(let r of this.facet(t.phrases))if(Object.prototype.hasOwnProperty.call(r,n)){n=r[n];break}return i.length&&(n=n.replace(/\$(\$|\d*)/g,(r,s)=>{if("$"==s)return"$";let a=+(s||1);return!a||a>i.length?r:i[a-1]})),n}languageDataAt(n,i,r=-1){let s=[];for(let a of this.facet(SX))for(let u of a(this,i,r))Object.prototype.hasOwnProperty.call(u,n)&&s.push(u[n]);return s}charCategorizer(n){return function NDe(t){return e=>{if(!/\S/.test(e))return Yc.Space;if(function RDe(t){if(oO)return oO.test(t);for(let e=0;e"\x80"&&(n.toUpperCase()!=n.toLowerCase()||zDe.test(n)))return!0}return!1}(e))return Yc.Word;for(let n=0;n-1)return Yc.Word;return Yc.Other}}(this.languageDataAt("wordChars",n).join(""))}wordAt(n){let{text:i,from:r,length:s}=this.doc.lineAt(n),a=this.charCategorizer(n),u=n-r,d=n-r;for(;u>0;){let m=U1(i,u,!1);if(a(i.slice(m,u))!=Yc.Word)break;u=m}for(;de.length?e[0]:4}),t.lineSeparator=kX,t.readOnly=VX,t.phrases=sr.define({compare(e,n){let i=Object.keys(e),r=Object.keys(n);return i.length==r.length&&i.every(s=>e[s]==n[s])}}),t.languageData=SX,t.changeFilter=EX,t.transactionFilter=DX,t.transactionExtender=TX,t})();function Td(t,e,n={}){let i={};for(let r of t)for(let s of Object.keys(r)){let a=r[s],u=i[s];if(void 0===u)i[s]=a;else if(u!==a&&void 0!==a){if(!Object.hasOwnProperty.call(n,s))throw new Error("Config merge conflict for field "+s);i[s]=n[s](u,a)}}for(let r in e)void 0===i[r]&&(i[r]=e[r]);return i}_0.reconfigure=Uo.define();class Dp{eq(e){return this==e}range(e,n=e){return M_.create(e,n,this)}}Dp.prototype.startSide=Dp.prototype.endSide=0,Dp.prototype.point=!1,Dp.prototype.mapMode=q2.TrackDel;class M_{constructor(e,n,i){this.from=e,this.to=n,this.value=i}static create(e,n,i){return new M_(e,n,i)}}function aO(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class cO{constructor(e,n,i,r){this.from=e,this.to=n,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,n,i,r=0){let s=i?this.to:this.from;for(let a=r,u=s.length;;){if(a==u)return a;let d=a+u>>1,m=s[d]-e||(i?this.value[d].endSide:this.value[d].startSide)-n;if(d==a)return m>=0?a:u;m>=0?u=d:a=d+1}}between(e,n,i,r){for(let s=this.findIndex(n,-1e9,!0),a=this.findIndex(i,1e9,!1,s);sS||x==S&&m.startSide>0&&m.endSide<=0)continue;(S-x||m.endSide-m.startSide)<0||(a<0&&(a=x),m.point&&(u=Math.max(u,S-x)),i.push(m),r.push(x-a),s.push(S-a))}return{mapped:i.length?new cO(r,s,i,u):null,pos:a}}}let Qc=(()=>{class t{constructor(n,i,r,s){this.chunkPos=n,this.chunk=i,this.nextLayer=r,this.maxPoint=s}static create(n,i,r,s){return new t(n,i,r,s)}get length(){let n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let n=this.nextLayer.size;for(let i of this.chunk)n+=i.value.length;return n}chunkEnd(n){return this.chunkPos[n]+this.chunk[n].length}update(n){let{add:i=[],sort:r=!1,filterFrom:s=0,filterTo:a=this.length}=n,u=n.filter;if(0==i.length&&!u)return this;if(r&&(i=i.slice().sort(aO)),this.isEmpty)return i.length?t.of(i):this;let d=new HX(this,null,-1).goto(0),m=0,_=[],y=new g4;for(;d.value||m=0){let x=i[m++];y.addInner(x.from,x.to,x.value)||_.push(x)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||ad.to||a=a&&n<=a+u.length&&!1===u.between(a,n-a,i-a,r))return}this.nextLayer.between(n,i,r)}}iter(n=0){return S_.from([this]).goto(n)}get isEmpty(){return this.nextLayer==this}static iter(n,i=0){return S_.from(n).goto(i)}static compare(n,i,r,s,a=-1){let u=n.filter(x=>x.maxPoint>0||!x.isEmpty&&x.maxPoint>=a),d=i.filter(x=>x.maxPoint>0||!x.isEmpty&&x.maxPoint>=a),m=OX(u,d,r),_=new k_(u,m,a),y=new k_(d,m,a);r.iterGaps((x,S,D)=>LX(_,x,y,S,D,s)),r.empty&&0==r.length&&LX(_,0,y,0,0,s)}static eq(n,i,r=0,s){null==s&&(s=999999999);let a=n.filter(y=>!y.isEmpty&&i.indexOf(y)<0),u=i.filter(y=>!y.isEmpty&&n.indexOf(y)<0);if(a.length!=u.length)return!1;if(!a.length)return!0;let d=OX(a,u),m=new k_(a,d,0).goto(r),_=new k_(u,d,0).goto(r);for(;;){if(m.to!=_.to||!uO(m.active,_.active)||m.point&&(!_.point||!m.point.eq(_.point)))return!1;if(m.to>s)return!0;m.next(),_.next()}}static spans(n,i,r,s,a=-1){let u=new k_(n,null,a).goto(i),d=i,m=u.openStart;for(;;){let _=Math.min(u.to,r);if(u.point){let y=u.activeForPoint(u.to),x=u.pointFromd&&(s.span(d,_,u.active,m),m=u.openEnd(_));if(u.to>r)return m+(u.point&&u.to>r?1:0);d=u.to,u.next()}}static of(n,i=!1){let r=new g4;for(let s of n instanceof M_?[n]:i?function PDe(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(aO);e=i}return t}(n):n)r.add(s.from,s.to,s.value);return r.finish()}static join(n){if(!n.length)return t.empty;let i=n[n.length-1];for(let r=n.length-2;r>=0;r--)for(let s=n[r];s!=t.empty;s=s.nextLayer)i=new t(s.chunkPos,s.chunk,i,Math.max(s.maxPoint,i.maxPoint));return i}}return t.empty=new t([],[],null,-1),t})();Qc.empty.nextLayer=Qc.empty;class g4{finishChunk(e){this.chunks.push(new cO(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,i){this.addInner(e,n,i)||(this.nextLayer||(this.nextLayer=new g4)).add(e,n,i)}addInner(e,n,i){let r=e-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=n,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),0))}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let i=n.value.length-1;return this.last=n.value[i],this.lastFrom=n.from[i]+e,this.lastTo=n.to[i]+e,!0}finish(){return this.finishInner(Qc.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let n=Qc.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function OX(t,e,n){let i=new Map;for(let s of t)for(let a=0;a=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&r.push(new HX(a,n,i,s));return 1==r.length?r[0]:new S_(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let i of this.heap)i.goto(e,n);for(let i=this.heap.length>>1;i>=0;i--)lO(this.heap,i);return this.next(),this}forward(e,n){for(let i of this.heap)i.forward(e,n);for(let i=this.heap.length>>1;i>=0;i--)lO(this.heap,i);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),lO(this.heap,0)}}}function lO(t,e){for(let n=t[e];;){let i=1+(e<<1);if(i>=t.length)break;let r=t[i];if(i+1=0&&(r=t[i+1],i++),n.compare(r)<0)break;t[i]=n,t[e]=r,e=i}}class k_{constructor(e,n,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=S_.from(e,n,i)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){KM(this.active,e),KM(this.activeTo,e),KM(this.activeRank,e),this.minActive=zX(this.active,this.activeTo)}addActive(e){let n=0,{value:i,to:r,rank:s}=this.cursor;for(;n0;)n++;YM(this.active,n,i),YM(this.activeTo,n,r),YM(this.activeRank,n,s),e&&YM(e,n,this.cursor.from),this.minActive=zX(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&KM(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let s=this.cursor.value;if(s.point){if(!(n&&this.cursor.to==this.to&&this.cursor.from=0&&i[r]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&n.push(this.active[i]);return n.reverse()}openEnd(e){let n=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)n++;return n}}function LX(t,e,n,i,r,s){t.goto(e),n.goto(i);let a=i+r,u=i,d=i-e;for(;;){let m=t.to+d-n.to||t.endSide-n.endSide,_=m<0?t.to+d:n.to,y=Math.min(_,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&uO(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(u,y,t.point,n.point):y>u&&!uO(t.active,n.active)&&s.compareRange(u,y,t.active,n.active),_>a)break;u=_,m<=0&&t.next(),m>=0&&n.next()}}function uO(t,e){if(t.length!=e.length)return!1;for(let n=0;n=e;i--)t[i+1]=t[i];t[e]=n}function zX(t,e){let n=-1,i=1e9;for(let r=0;r=e)return r;if(r==t.length)break;s+=9==t.charCodeAt(r)?n-s%n:1,r=U1(t,r)}return!0===i?-1:t.length}const RX=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),hO=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),NX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Ch{constructor(e,n){this.rules=[];let{finish:i}=n||{};function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function s(a,u,d,m){let _=[],y=/^@(\w+)\b/.exec(a[0]),x=y&&"keyframes"==y[1];if(y&&null==u)return d.push(a[0]+";");for(let S in u){let D=u[S];if(/&/.test(S))s(S.split(/,\s*/).map(z=>a.map($=>z.replace(/&/,$))).reduce((z,$)=>z.concat($)),D,d);else if(D&&"object"==typeof D){if(!y)throw new RangeError("The value of a property ("+S+") should be a primitive value.");s(r(S),D,_,x)}else null!=D&&_.push(S.replace(/_.*/,"").replace(/[A-Z]/g,z=>"-"+z.toLowerCase())+": "+D+";")}(_.length||x)&&d.push((!i||y||m?a:a.map(i)).join(", ")+" {"+_.join(" ")+"}")}for(let a in e)s(r(a),e[a],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=NX[RX]||1;return NX[RX]=e+1,"\u037c"+e.toString(36)}static mount(e,n,i){let r=e[hO],s=i&&i.nonce;r?s&&r.setNonce(s):r=new jDe(e,s),r.mount(Array.isArray(n)?n:[n],e)}}let PX=new Map;class jDe{constructor(e,n){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=PX.get(i);if(s)return e[hO]=s;this.sheet=new r.CSSStyleSheet,PX.set(i,this)}else this.styleTag=i.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[hO]=this}mount(e,n){let i=this.sheet,r=0,s=0;for(let a=0;a-1&&(this.modules.splice(d,1),s--,d=-1),-1==d){if(this.modules.splice(s++,0,u),i)for(let m=0;m",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},FDe=typeof navigator<"u"&&/Mac/.test(navigator.platform),BDe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),q1=0;q1<10;q1++)xh[48+q1]=xh[96+q1]=String(q1);for(q1=1;q1<=24;q1++)xh[q1+111]="F"+q1;for(q1=65;q1<=90;q1++)xh[q1]=String.fromCharCode(q1+32),E_[q1]=String.fromCharCode(q1);for(var pO in xh)E_.hasOwnProperty(pO)||(E_[pO]=xh[pO]);function QM(t){let e;return e=11==t.nodeType?t.getSelection?t:t.ownerDocument:t,e.getSelection()}function mO(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function JM(t,e){if(!e.anchorNode)return!1;try{return mO(t,e.anchorNode)}catch{return!1}}function V5(t){return 3==t.nodeType?Vp(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function D_(t,e,n,i){return!!n&&(jX(t,e,n,i,-1)||jX(t,e,n,i,1))}function Tp(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function ZM(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function jX(t,e,n,i,r){for(;;){if(t==n&&e==i)return!0;if(e==(r<0?0:y0(t))){if("DIV"==t.nodeName)return!1;let s=t.parentNode;if(!s||1!=s.nodeType)return!1;e=Tp(t)+(r<0?0:1),t=s}else{if(1!=t.nodeType)return!1;if(1==(t=t.childNodes[e+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=r<0?y0(t):0}}}function y0(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function eS(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function GDe(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function FX(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}class XDe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?y0(n):0),i,Math.min(e.focusOffset,i?y0(i):0))}set(e,n,i,r){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=r}}let $X,A5=null;function BX(t){if(t.setActive)return t.setActive();if(A5)return t.focus(A5);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(null==A5?{get preventScroll(){return A5={preventScroll:!0},!0}}:void 0),!A5){A5=!1;for(let n=0;nMath.max(1,t.scrollHeight-t.clientHeight-4)}function WX(t,e){for(let n=t,i=e;;){if(3==n.nodeType&&i>0)return{node:n,offset:i};if(1==n.nodeType&&i>0){if("false"==n.contentEditable)return null;n=n.childNodes[i-1],i=y0(n)}else{if(!n.parentNode||ZM(n))return null;i=Tp(n),n=n.parentNode}}}function qX(t,e){for(let n=t,i=e;;){if(3==n.nodeType&&in)return y.domBoundsAround(e,n,m);if(x>=e&&-1==r&&(r=d,s=m),m>n&&y.dom.parentNode==this.dom){a=d,u=_;break}_=x,m=x+y.breakAfter}return{from:s,to:u<0?i+this.length:u,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),1&n.flags)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=gO){this.markDirty();for(let r=e;rthis.pos||e==this.pos&&(n>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function YX(t,e,n,i,r,s,a,u,d){let{children:m}=t,_=m.length?m[e]:null,y=s.length?s[s.length-1]:null,x=y?y.breakAfter:a;if(!(e==i&&_&&!a&&!x&&s.length<2&&_.merge(n,r,s.length?y:null,0==n,u,d))){if(i0&&(!a&&s.length&&_.merge(n,_.length,s[0],!1,u,0)?_.breakAfter=s.shift().breakAfter:(n<_.length||_.children.length&&0==_.children[_.children.length-1].length)&&_.merge(n,_.length,null,!1,u,0),e++));e2);var vr={mac:nK||/Mac/.test(Gu.platform),windows:/Win/.test(Gu.platform),linux:/Linux|X11/.test(Gu.platform),ie:tS,ie_version:JX?vO.documentMode||6:bO?+bO[1]:_O?+_O[1]:0,gecko:ZX,gecko_version:ZX?+(/Firefox\/(\d+)/.exec(Gu.userAgent)||[0,0])[1]:0,chrome:!!yO,chrome_version:yO?+yO[1]:0,ios:nK,android:/Android\b/.test(Gu.userAgent),webkit:eK,safari:tK,webkit_version:eK?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=vO.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class v4 extends _c{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,n,i){return!(8&this.flags||i&&(!(i instanceof v4)||this.length-(n-e)+i.length>256||8&i.flags)||(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),0))}split(e){let n=new v4(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=8&this.flags,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new f2(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return function JDe(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let r=e,s=e,a=0;0==e&&n<0||e==i&&n>=0?vr.chrome||vr.gecko||(e?(r--,a=1):s=0)?0:u.length-1];return vr.safari&&!a&&0==d.width&&(d=Array.prototype.find.call(u,m=>m.width)||d),a?eS(d,a<0):d||null}(this.dom,e,n)}}class C0 extends _c{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let r of n)r.setParent(this)}setAttrs(e){if(UX(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,r,s,a){return!(i&&(!(i instanceof C0&&i.mark.eq(this.mark))||e&&s<=0||ne&&n.push(i=e&&(r=s),i=d,s++}let a=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new C0(this.mark,n,a)}domAtPos(e){return iK(this,e)}coordsAt(e,n){return sK(this,e,n)}}class wh extends _c{static create(e,n,i){return new wh(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=wh.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,r,s,a){return!(i&&(!(i instanceof wh&&this.widget.compare(i.widget))||e>0&&s<=0||n0)?f2.before(this.dom):f2.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let a=this.side?this.side<0:e>0;for(let u=a?r.length-1:0;s=r[u],!(e>0?0==u:u==r.length-1||s.top0?f2.before(this.dom):f2.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ia.empty}get isHidden(){return!0}}function iK(t,e){let n=t.dom,{children:i}=t,r=0;for(let s=0;rs&&e0;s--){let a=i[s-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let s=r;s0&&e instanceof C0&&r.length&&(i=r[r.length-1])instanceof C0&&i.mark.eq(e.mark)?rK(i,e.children[0],n-1):(r.push(e),e.setParent(t)),t.length+=e.length}function sK(t,e,n){let i=null,r=-1,s=null,a=-1;!function u(m,_){for(let y=0,x=0;y=_&&(S.children.length?u(S,_-x):(!s||s.isHidden&&n>0)&&(D>_||x==D&&S.getSide()>0)?(s=S,a=_-x):(x<_||x==D&&S.getSide()<0&&!S.isHidden)&&(i=S,r=_-x)),x=D}}(t,e);let d=(n<0?i:s)||i||s;return d?d.coordsAt(Math.max(0,d==i?r:a),n):function ZDe(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=V5(e);return n[n.length-1]||null}(t)}function CO(t,e){for(let n in t)"class"==n&&e.class?e.class+=" "+t.class:"style"==n&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}v4.prototype.children=wh.prototype.children=O5.prototype.children=gO;const oK=Object.create(null);function xO(t,e,n){if(t==e)return!0;t||(t=oK),e||(e=oK);let i=Object.keys(t),r=Object.keys(e);if(i.length-(n&&i.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let s of i)if(s!=n&&(-1==r.indexOf(s)||t[s]!==e[s]))return!1;return!0}function wO(t,e,n){let i=!1;if(e)for(let r in e)n&&r in n||(i=!0,"style"==r?t.style.cssText="":t.removeAttribute(r));if(n)for(let r in n)e&&e[r]==n[r]||(i=!0,"style"==r?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return i}function eTe(t){let e=Object.create(null);for(let n=0;n0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){xO(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){rK(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=CO(n,this.attrs||{})),i&&(this.attrs=CO({class:i},this.attrs||{}))}domAtPos(e){return iK(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?4&this.flags&&(UX(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(wO(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let r=this.dom.lastChild;for(;r&&_c.get(r)instanceof C0;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(i=_c.get(r))||void 0===i?void 0:i.isEditable)||vr.ios&&this.children.some(s=>s instanceof v4)))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let n,e=0;for(let i of this.children){if(!(i instanceof v4)||/[^ -~]/.test(i.text))return null;let r=V5(i.dom);if(1!=r.length)return null;e+=r[0].width,n=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=sK(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight=n){if(s instanceof g1)return s;if(a>n)break}r=a+s.breakAfter}return null}}class Mh extends _c{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,r,s,a){return!(i&&(!(i instanceof Mh&&this.widget.compare(i.widget))||e>0&&s<=0||n0)}}class h3{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var X2=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(X2||(X2={}));class Rr extends Dp{constructor(e,n,i,r){super(),this.startSide=e,this.endSide=n,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new T_(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return n+=i&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Sh(e,n,n,i,e.widget||null,!1)}static replace(e){let i,r,n=!!e.block;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:s,end:a}=aK(e,n);i=(s?n?-3e8:-1:5e8)-1,r=1+(a?n?2e8:1:-6e8)}return new Sh(e,i,r,n,e.widget||null,!0)}static line(e){return new V_(e)}static set(e,n=!1){return Qc.of(e,n)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Rr.none=Qc.empty;class T_ extends Rr{constructor(e){let{start:n,end:i}=aK(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof T_&&this.tagName==e.tagName&&(this.class||(null===(n=this.attrs)||void 0===n?void 0:n.class))==(e.class||(null===(i=e.attrs)||void 0===i?void 0:i.class))&&xO(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}T_.prototype.point=!1;class V_ extends Rr{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof V_&&this.spec.class==e.spec.class&&xO(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}V_.prototype.mapMode=q2.TrackBefore,V_.prototype.point=!0;class Sh extends Rr{constructor(e,n,i,r,s,a){super(n,i,s,e),this.block=r,this.isReplace=a,this.mapMode=r?n<=0?q2.TrackBefore:q2.TrackAfter:q2.TrackDel}get type(){return this.startSide!=this.endSide?X2.WidgetRange:this.startSide<=0?X2.WidgetBefore:X2.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Sh&&function tTe(t,e){return t==e||!!(t&&e&&t.compare(e))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}function aK(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return null==n&&(n=t.inclusive),null==i&&(i=t.inclusive),{start:n??e,end:i??e}}function MO(t,e,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=t?n[r]=Math.max(n[r],e):n.push(t,e)}Sh.prototype.point=!0;class A_{constructor(e,n,i,r){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Mh&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new g1),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(nS(new O5(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Mh)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:a,done:u}=this.cursor.next(this.skip);if(this.skip=0,u)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(nS(new v4(this.text.slice(this.textOff,this.textOff+r)),n),i),this.atCursorPos=!0,this.textOff+=r,e-=r,i=0}}span(e,n,i,r){this.buildText(n-e,i,r),this.pos=n,this.openStart<0&&(this.openStart=r)}point(e,n,i,r,s,a){if(this.disallowBlockEffectsFor[a]&&i instanceof Sh){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let u=n-e;if(i instanceof Sh)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Mh(i.widget||cK.block,u,i));else{let d=wh.create(i.widget||cK.inline,u,u?0:i.startSide),m=this.atCursorPos&&!d.isEditable&&s<=r.length&&(e0),_=!d.isEditable&&(er.length||i.startSide<=0),y=this.getLine();2==this.pendingBuffer&&!m&&!d.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),m&&(y.append(nS(new O5(1),r),s),s=r.length+Math.max(0,s-r.length)),y.append(nS(d,r),s),this.atCursorPos=_,this.pendingBuffer=_?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);u&&(this.textOff+u<=this.text.length?this.textOff+=u:(this.skip+=u-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(e,n,i,r,s){let a=new A_(e,n,i,s);return a.openEnd=Qc.spans(r,n,i,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function nS(t,e){for(let n of e)t=new C0(n,[t],t.length);return t}let cK=(()=>{class t extends h3{constructor(n){super(),this.tag=n}eq(n){return n.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(n){return n.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}return t.inline=new t("span"),t.block=new t("div"),t})();var bc=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(bc||(bc={}));const Ap=bc.LTR,SO=bc.RTL;function lK(t){let e=[];for(let n=0;n=n){if(u.level==i)return a;(s<0||(0!=r?r<0?u.fromn:e[s].level>u.level))&&(s=a)}}if(s<0)throw new RangeError("Index out of range");return s}}function dK(t,e){if(t.length!=e.length)return!1;for(let n=0;nd&&a.push(new kh(d,z.from,S)),DO(t,z.direction==Ap!=!(S%2)?i+1:i,r,z.inner,z.from,z.to,a),d=z.to),D=z.to}else{if(D==n||(_?yc[D]!=u:yc[D]==u))break;D++}x?EO(t,d,D,i+1,r,x,a):de;){let _=!0,y=!1;if(!m||d>s[m-1].to){let z=yc[d-1];z!=u&&(_=!1,y=16==z)}let x=_||1!=u?null:[],S=_?i:i+1,D=d;e:for(;;)if(m&&D==s[m-1].to){if(y)break e;let z=s[--m];if(!_)for(let $=z.from,W=m;;){if($==e)break e;if(!W||s[W-1].to!=$){if(yc[$-1]==u)break e;break}$=s[--W].from}x?x.push(z):(z.to=0;z-=3)if(p3[z+1]==-S){let $=p3[z+2],W=2&$?r:4&$?1&$?s:r:0;W&&(yc[y]=yc[p3[z]]=W),u=z;break}}else{if(189==p3.length)break;p3[u++]=y,p3[u++]=x,p3[u++]=d}else if(2==(D=yc[y])||1==D){let z=D==r;d=z?0:1;for(let $=u-3;$>=0;$-=3){let W=p3[$+2];if(2&W)break;if(z)p3[$+2]|=2;else{if(4&W)break;p3[$+2]|=4}}}}}(t,r,s,i,u),function aTe(t,e,n,i){for(let r=0,s=i;r<=n.length;r++){let u=rd;)D==$&&(D=n[--z].from,$=z?n[z-1].to:t),yc[--D]=S;d=_}else s=m,d++}}}(r,s,i,u),EO(t,r,s,e,n,i,a)}function hK(t){return[new kh(0,t,0)]}let pK="";function mK(t,e,n,i,r){var s;let a=i.head-t.from,u=kh.find(e,a,null!==(s=i.bidiLevel)&&void 0!==s?s:-1,i.assoc),d=e[u],m=d.side(r,n);if(a==m){let x=u+=r?1:-1;if(x<0||x>=e.length)return null;d=e[u=x],a=d.side(!r,n),m=d.side(r,n)}let _=U1(t.text,a,d.forward(r,n));(_d.to)&&(_=m),pK=t.text.slice(Math.min(a,_),Math.max(a,_));let y=u==(r?e.length-1:0)?null:e[u+(r?1:-1)];return y&&_==m&&y.level+(r?0:1)t.some(e=>e)}),wK=sr.define({combine:t=>t.some(e=>e)}),MK=sr.define();class H5{constructor(e,n="nearest",i="nearest",r=5,s=5,a=!1){this.range=e,this.y=n,this.x=i,this.yMargin=r,this.xMargin=s,this.isSnapshot=a}map(e){return e.empty?this:new H5(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new H5(mi.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const iS=Uo.define({map:(t,e)=>t.map(e)});function K2(t,e,n){let i=t.facet(bK);i.length?i[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const rS=sr.define({combine:t=>!t.length||t[0]});let lTe=0;const I_=sr.define();class Vc{constructor(e,n,i,r,s){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=r,this.extension=s(this)}static define(e,n){const{eventHandlers:i,eventObservers:r,provide:s,decorations:a}=n||{};return new Vc(lTe++,e,i,r,u=>{let d=[I_.of(u)];return a&&d.push(O_.of(m=>{let _=m.plugin(u);return _?a(_):Rr.none})),s&&d.push(s(u)),d})}static fromClass(e,n){return Vc.define(i=>new e(i),n)}}class VO{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(K2(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){K2(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(null!==(n=this.value)&&void 0!==n&&n.destroy)try{this.value.destroy()}catch(i){K2(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const SK=sr.define(),sS=sr.define(),O_=sr.define(),kK=sr.define(),AO=sr.define(),EK=sr.define();function DK(t,e){let n=t.state.facet(EK);if(!n.length)return n;let i=n.map(s=>s instanceof Function?s(t):s),r=[];return Qc.spans(i,e.from,e.to,{point(){},span(s,a,u,d){let m=s-e.from,_=a-e.from,y=r;for(let x=u.length-1;x>=0;x--,d--){let D,S=u[x].spec.bidiIsolate;if(null==S&&(S=cTe(e.text,m,_)),d>0&&y.length&&(D=y[y.length-1]).to==m&&D.direction==S)D.to=_,y=D.inner;else{let z={from:m,to:_,direction:S,inner:[]};y.push(z),y=z.inner}}}}),r}const TK=sr.define();function VK(t){let e=0,n=0,i=0,r=0;for(let s of t.state.facet(TK)){let a=s(t);a&&(null!=a.left&&(e=Math.max(e,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(i=Math.max(i,a.top)),null!=a.bottom&&(r=Math.max(r,a.bottom)))}return{left:e,right:n,top:i,bottom:r}}const H_=sr.define();class Wu{constructor(e,n,i,r){this.fromA=e,this.toA=n,this.fromB=i,this.toB=r}join(e){return new Wu(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let r=e[n-1];if(!(r.fromA>i.toA)){if(r.toA_)break;s+=2}if(!d)return i;new Wu(d.fromA,d.toA,d.fromB,d.toB).addToSet(i),a=d.toA,u=d.toB}}}class oS{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=m1.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,a,u,d)=>r.push(new Wu(s,a,u,d))),this.changedRanges=r}static create(e,n,i){return new oS(e,n,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}class AK extends _c{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new g1],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Wu(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:m,toA:_})=>_this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(null!==(n=this.domChanged)&&void 0!==n&&n.newSel?r=this.domChanged.newSel.head:!function gTe(t,e){let n=!1;return e&&t.iterChangedRanges((i,r)=>{ie.from&&(n=!0)}),n}(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?function dTe(t,e,n){let i=OK(t,n);if(!i)return null;let{node:r,from:s,to:a}=i,u=r.nodeValue;if(/[\n\r]/.test(u)||t.state.doc.sliceString(i.from,i.to)!=u)return null;let d=e.invertedDesc,m=new Wu(d.mapPos(s),d.mapPos(a),s,a),_=[];for(let y=r.parentNode;;y=y.parentNode){let x=_c.get(y);if(x instanceof C0)_.push({node:y,deco:x.mark});else{if(x instanceof g1||"DIV"==y.nodeName&&y.parentNode==t.contentDOM)return{range:m,text:r,marks:_,line:y};if(y==t.contentDOM)return null;_.push({node:y,deco:new T_({inclusive:!0,attributes:eTe(y),tagName:y.tagName.toLowerCase()})})}}}(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:m,to:_}=this.hasComposition;i=new Wu(m,_,e.changes.mapPos(m,-1),e.changes.mapPos(_,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(vr.ie||vr.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let d=function pTe(t,e,n){let i=new hTe;return Qc.compare(t,e,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return i=Wu.extendWithRanges(i,d),!!(7&this.flags||0!=i.length)&&(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=vr.chrome||vr.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||r.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to=0?r[a]:null;if(!u)break;let x,S,D,z,{fromA:d,toA:m,fromB:_,toB:y}=u;if(i&&i.range.fromB_){let ke=A_.build(this.view.state.doc,_,i.range.fromB,this.decorations,this.dynamicDecorationMap),ye=A_.build(this.view.state.doc,i.range.toB,y,this.decorations,this.dynamicDecorationMap);S=ke.breakAtStart,D=ke.openStart,z=ye.openEnd;let Ke=this.compositionView(i);ye.breakAtStart?Ke.breakAfter=1:ye.content.length&&Ke.merge(Ke.length,Ke.length,ye.content[0],!1,ye.openStart,0)&&(Ke.breakAfter=ye.content[0].breakAfter,ye.content.shift()),ke.content.length&&Ke.merge(0,0,ke.content[ke.content.length-1],!0,0,ke.openEnd)&&ke.content.pop(),x=ke.content.concat(Ke).concat(ye.content)}else({content:x,breakAtStart:S,openStart:D,openEnd:z}=A_.build(this.view.state.doc,_,y,this.decorations,this.dynamicDecorationMap));let{i:$,off:W}=s.findPos(m,1),{i:re,off:se}=s.findPos(d,-1);YX(this,re,se,$,W,x,S,D,z)}i&&this.fixCompositionDOM(i)}compositionView(e){let n=new v4(e.text.nodeValue);n.flags|=8;for(let{deco:r}of e.marks)n=new C0(r,[n],n.length);let i=new g1;return i.append(n,0),i}fixCompositionDOM(e){let n=(s,a)=>{a.flags|=8|(a.children.some(d=>7&d.flags)?1:0),this.markedForComposition.add(a);let u=_c.get(s);u&&u!=a&&(u.dom=null),a.setDOM(s)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];n(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)i=r.childPos(i.off,1),r=r.children[i.i],n(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,s=!r&&JM(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||n||s))return;let a=this.forceSelection;this.forceSelection=!1;let u=this.view.state.selection.main,d=this.moveToLine(this.domAtPos(u.anchor)),m=u.empty?d:this.moveToLine(this.domAtPos(u.head));if(vr.gecko&&u.empty&&!this.hasComposition&&function uTe(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(d)){let y=document.createTextNode("");this.view.observer.ignore(()=>d.node.insertBefore(y,d.node.childNodes[d.offset]||null)),d=m=new f2(y,0),a=!0}let _=this.view.observer.selectionRange;(a||!_.focusNode||(!D_(d.node,d.offset,_.anchorNode,_.anchorOffset)||!D_(m.node,m.offset,_.focusNode,_.focusOffset))&&!this.suppressWidgetCursorChange(_,u))&&(this.view.observer.ignore(()=>{vr.android&&vr.chrome&&this.dom.contains(_.focusNode)&&function mTe(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(_.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let y=QM(this.view.root);if(y)if(u.empty){if(vr.gecko){let x=function fTe(t,e){return 1!=t.nodeType?0:(e&&"false"==t.childNodes[e-1].contentEditable?1:0)|(eu.head&&([d,m]=[m,d]),x.setEnd(m.node,m.offset),x.setStart(d.node,d.offset),y.removeAllRanges(),y.addRange(x)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(d,m)),this.impreciseAnchor=d.precise?null:new f2(_.anchorNode,_.anchorOffset),this.impreciseHead=m.precise?null:new f2(_.focusNode,_.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&D_(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=QM(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!(i&&n.empty&&n.assoc&&i.modify))return;let a=g1.find(this,n.head);if(!a)return;let u=a.posAtStart;if(n.head==u||n.head==u+a.length)return;let d=this.coordsAt(n.head,-1),m=this.coordsAt(n.head,1);if(!d||!m||d.bottom>m.top)return;let _=this.domAtPos(n.head+n.assoc);i.collapse(_.node,_.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let y=e.observer.selectionRange;e.docView.posFromDOM(y.anchorNode,y.anchorOffset)!=n.from&&i.collapse(r,s)}moveToLine(e){let i,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!i&&r=0;r--){let s=_c.get(n.childNodes[r]);s instanceof g1&&(i=s.domAtPos(s.length))}return i?new f2(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=_c.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n=0;a--){let u=this.children[a],d=s-u.breakAfter,m=d-u.length;if(de||u.covers(1))&&(!i||u instanceof g1&&!(i instanceof g1&&n>=0))&&(i=u,r=m),s=m}return i?i.coordsAt(e-r,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),r=this.children[n];if(!(r instanceof g1))return null;for(;r.children.length;){let{i:u,off:d}=r.childPos(i,1);for(;;u++){if(u==r.children.length)return null;if((r=r.children[u]).length)break}i=d}if(!(r instanceof v4))return null;let s=U1(r.text,i);if(s==i)return null;let a=Vp(r.dom,i,s).getClientRects();for(let u=0;uMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,u=-1,d=this.view.textDirection==bc.LTR;for(let m=0,_=0;_r)break;if(m>=i){let S=y.dom.getBoundingClientRect();if(n.push(S.height),a){let D=y.dom.lastChild,z=D?V5(D):[];if(z.length){let $=z[z.length-1],W=d?$.right-S.left:S.right-$.left;W>u&&(u=W,this.minWidth=s,this.minWidthFrom=m,this.minWidthTo=x)}}}m=x+y.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[n].dom).direction?bc.RTL:bc.LTR}measureTextSize(){for(let s of this.children)if(s instanceof g1){let a=s.measureTextSize();if(a)return a}let n,i,r,e=document.createElement("div");return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=V5(e.firstChild)[0];n=e.getBoundingClientRect().height,i=s?s.width/27:7,r=s?s.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:r}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new KX(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,r=0;;r++){let s=r==n.viewports.length?null:n.viewports[r],a=s?s.from-1:this.length;if(a>i){let u=(n.lineBlockAt(a).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(Rr.replace({widget:new IK(u),block:!0,inclusive:!0,isBlockGap:!0}).range(i,a))}if(!s)break;i=s.to+1}return Rr.set(e)}updateDeco(){let e=0,n=this.view.state.facet(O_).map(s=>(this.dynamicDecorationMap[e++]="function"==typeof s)?s(this.view):s),i=!1,r=this.view.state.facet(kK).map((s,a)=>{let u="function"==typeof s;return u&&(i=!0),u?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=i,n.push(Qc.join(r))),this.decorations=[...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];en.anchor?-1:1);if(!i)return;!n.empty&&(r=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=VK(this.view),a={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:u,offsetHeight:d}=this.view.scrollDOM;!function WDe(t,e,n,i,r,s,a,u){let d=t.ownerDocument,m=d.defaultView||window;for(let _=t,y=!1;_&&!y;)if(1==_.nodeType){let x,S=_==d.body,D=1,z=1;if(S)x=GDe(m);else{if(/^(fixed|sticky)$/.test(getComputedStyle(_).position)&&(y=!0),_.scrollHeight<=_.clientHeight&&_.scrollWidth<=_.clientWidth){_=_.assignedSlot||_.parentNode;continue}let re=_.getBoundingClientRect();({scaleX:D,scaleY:z}=FX(_,re)),x={left:re.left,right:re.left+_.clientWidth*D,top:re.top,bottom:re.top+_.clientHeight*z}}let $=0,W=0;if("nearest"==r)e.top0&&e.bottom>x.bottom+W&&(W=e.bottom-x.bottom+W+a)):e.bottom>x.bottom&&(W=e.bottom-x.bottom+a,n<0&&e.top-W0&&e.right>x.right+$&&($=e.right-x.right+$+s)):e.right>x.right&&($=e.right-x.right+s,n<0&&e.leftt?e.left-t:Math.max(0,t-e.right)}function bTe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function IO(t,e){return t.tope.top+1}function HK(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function OO(t,e,n){let i,r,s,a,d,m,_,y,u=!1;for(let D=t.firstChild;D;D=D.nextSibling){let z=V5(D);for(let $=0;$se||a==se&&s>re){i=D,r=W,s=re,a=se;let ke=se?n0?$0)}0==re?n>W.bottom&&(!_||_.bottomW.top)&&(m=D,y=W):_&&IO(_,W)?_=LK(_,W.bottom):y&&IO(y,W)&&(y=HK(y,W.top))}}if(_&&_.bottom>=n?(i=d,r=_):y&&y.top<=n&&(i=m,r=y),!i)return{node:t,offset:0};let x=Math.max(r.left,Math.min(r.right,e));return 3==i.nodeType?zK(i,x,n):u&&"false"!=i.contentEditable?OO(i,x,n):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(e>=(r.left+r.right)/2?1:0)}}function zK(t,e,n){let i=t.nodeValue.length,r=-1,s=1e9,a=0;for(let u=0;un?_.top-n:n-_.bottom)-1;if(_.left-1<=e&&_.right+1>=e&&y=(_.left+_.right)/2,S=x;if((vr.chrome||vr.gecko)&&Vp(t,u).getBoundingClientRect().left==_.right&&(S=!x),y<=0)return{node:t,offset:u+(S?1:0)};r=u+(S?1:0),s=y}}}return{node:t,offset:r>-1?r:a>0?t.nodeValue.length:0}}function RK(t,e,n,i=-1){var r,s;let d,a=t.contentDOM.getBoundingClientRect(),u=a.top+t.viewState.paddingTop,{docHeight:m}=t.viewState,{x:_,y}=e,x=y-u;if(x<0)return 0;if(x>m)return t.state.doc.length;for(let ke=t.viewState.heightOracle.textHeight/2,ye=!1;d=t.elementAtHeight(x),d.type!=X2.Text;)for(;x=i>0?d.bottom+ke:d.top-ke,!(x>=0&&x<=m);){if(ye)return n?null:0;ye=!0,i=-i}y=u+x;let S=d.from;if(St.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:NK(t,a,d,_,y);let D=t.dom.ownerDocument,z=t.root.elementFromPoint?t.root:D,$=z.elementFromPoint(_,y);$&&!t.contentDOM.contains($)&&($=null),$||(_=Math.max(a.left+1,Math.min(a.right-1,_)),$=z.elementFromPoint(_,y),$&&!t.contentDOM.contains($)&&($=null));let W,re=-1;if($&&0!=(null===(r=t.docView.nearest($))||void 0===r?void 0:r.isEditable))if(D.caretPositionFromPoint){let ke=D.caretPositionFromPoint(_,y);ke&&({offsetNode:W,offset:re}=ke)}else if(D.caretRangeFromPoint){let ke=D.caretRangeFromPoint(_,y);ke&&(({startContainer:W,startOffset:re}=ke),(!t.contentDOM.contains(W)||vr.safari&&function yTe(t,e,n){let i;if(3!=t.nodeType||e!=(i=t.nodeValue.length))return!1;for(let r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return Vp(t,i-1,i).getBoundingClientRect().left>n}(W,re,_)||vr.chrome&&function CTe(t,e,n){if(0!=e)return!1;for(let r=t;;){let s=r.parentNode;if(!s||1!=s.nodeType||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}return n-(1==t.nodeType?t.getBoundingClientRect():Vp(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(W,re,_))&&(W=void 0))}if(!W||!t.docView.dom.contains(W)){let ke=g1.find(t.docView,S);if(!ke)return x>d.top+d.height/2?d.to:d.from;({node:W,offset:re}=OO(ke.dom,_,y))}let se=t.docView.nearest(W);if(!se)return null;if(se.isWidget&&1==(null===(s=se.dom)||void 0===s?void 0:s.nodeType)){let ke=se.dom.getBoundingClientRect();return e.y1.5*t.defaultLineHeight){let u=t.viewState.heightOracle.textHeight;s+=Math.floor((r-n.top-.5*(t.defaultLineHeight-u))/u)*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+dO(a,s,t.state.tabSize)}function HO(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type))for(let i of n.type)if(i.to>e||i.to==e&&(i.to==n.to||i.type==X2.Text))return i;return n}function PK(t,e,n,i){let r=t.state.doc.lineAt(e.head),s=t.bidiSpans(r),a=t.textDirectionAt(r.from);for(let u=e,d=null;;){let m=mK(r,s,a,u,n),_=pK;if(!m){if(r.number==(n?t.state.doc.lines:1))return u;_="\n",r=t.state.doc.line(r.number+(n?1:-1)),s=t.bidiSpans(r),m=t.visualLineSide(r,!n)}if(d){if(!d(_))return u}else{if(!i)return m;d=i(_)}u=m}}function aS(t,e,n){for(;;){let i=0;for(let r of t)r.between(e-1,e+1,(s,a,u)=>{if(e>s&&er(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:mi.cursor(i,inull),vr.gecko&&function FTe(t){iY.has(t)||(iY.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){!function OTe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i,n=e.target;n!=t.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(i=_c.get(n))&&i.ignoreEvent(e))return!1;return!0}(this.view,e)||this.ignoreDuringComposition(e)||"keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,n);for(let r of i.handlers){if(n.defaultPrevented)break;if(r(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=function kTe(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let r=i.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let a=r.domEventHandlers[s];a&&n(s).handlers.push(jK(i.value,a))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let a=r.domEventObservers[s];a&&n(s).observers.push(jK(i.value,a))}}for(let i in _4)n(i).handlers.push(_4[i]);for(let i in Vd)n(i).observers.push(Vd[i]);return e}(e),i=this.handlers,r=this.view.contentDOM;for(let s in n)if("scroll"!=s){let a=!n[s].handlers.length,u=i[s];u&&a!=!u.handlers.length&&(r.removeEventListener(s,this.handleEvent),u=null),u||r.addEventListener(s,this.handleEvent,{passive:a})}for(let s in i)"scroll"!=s&&!n[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()i.keyCode==e.keyCode))&&!e.ctrlKey||ETe.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(e){let n=this.pendingIOSKey;return!(!n||"Enter"==n.key&&e&&e.from0||!!(vr.safari&&!vr.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function jK(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(r){K2(n.state,r)}}}const FK=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ETe="dthko",BK=[16,17,18,20,91,92,224,225];function lS(t){return.7*Math.max(0,t)+8}class TTe{constructor(e,n,i,r){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=function qDe(t){let e=t.ownerDocument;for(let n=t.parentNode;n&&n!=e.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(AO).map(a=>a(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(W1.allowMultipleSelections)&&function VTe(t,e){let n=t.state.facet(gK);return n.length?n[0](e):vr.mac?e.metaKey:e.ctrlKey}(e,n),this.dragging=!(!function ITe(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=QM(t.root);if(!i||0==i.rangeCount)return!0;let r=i.getRangeAt(0).getClientRects();for(let s=0;s=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}(e,n)||1!=JK(n))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var n;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function DTe(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,r=0,s=(null===(n=this.scrollParent)||void 0===n?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=VK(this.view);e.clientX-a.left<=s.left+6?i=-lS(s.left-e.clientX):e.clientX+a.right>=s.right-6&&(i=lS(e.clientX-s.right)),e.clientY-a.top<=s.top+6?r=-lS(s.top-e.clientY):e.clientY+a.bottom>=s.bottom-6&&(r=lS(e.clientY-s.bottom)),this.setScrollSpeed(i,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let i=0;ithis.select(this.lastEvent),20)}}const _4=Object.create(null),Vd=Object.create(null),$K=vr.ie&&vr.ie_version<15||vr.ios&&vr.webkit_version<604;function UK(t,e){let i,{state:n}=t,r=1,s=n.toText(e),a=s.lines==n.selection.ranges.length;if(null!=zO&&n.selection.ranges.every(d=>d.empty)&&zO==s.toString()){let d=-1;i=n.changeByRange(m=>{let _=n.doc.lineAt(m.from);if(_.from==d)return{range:m};d=_.from;let y=n.toText((a?s.line(r++).text:e)+n.lineBreak);return{changes:{from:_.from,insert:y},range:mi.cursor(m.from+y.length)}})}else i=a?n.changeByRange(d=>{let m=s.line(r++);return{changes:{from:d.from,to:d.to,insert:m.text},range:mi.cursor(d.from+m.length)}}):n.replaceSelection(s);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function GK(t,e,n,i){if(1==i)return mi.cursor(e,n);if(2==i)return function vTe(t,e,n=1){let i=t.charCategorizer(e),r=t.doc.lineAt(e),s=e-r.from;if(0==r.length)return mi.cursor(e);0==s?n=1:s==r.length&&(n=-1);let a=s,u=s;n<0?a=U1(r.text,s,!1):u=U1(r.text,s);let d=i(r.text.slice(a,u));for(;a>0;){let m=U1(r.text,a,!1);if(i(r.text.slice(m,a))!=d)break;a=m}for(;u{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},_4.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&(t.inputState.lastEscPress=Date.now()),!1),Vd.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},Vd.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},_4.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(_K))if(n=i(t,e),n)break;if(!n&&0==e.button&&(n=function RTe(t,e){let n=XK(t,e),i=JK(e),r=t.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),r=r.map(s.changes))},get(s,a,u){let m,d=XK(t,s),_=GK(t,d.pos,d.bias,i);if(n.pos!=d.pos&&!a){let y=GK(t,n.pos,n.bias,i),x=Math.min(y.from,_.from),S=Math.max(y.to,_.to);_=x<_.from?mi.range(x,S):mi.range(S,x)}return a?r.replaceRange(r.main.extend(_.from,_.to)):u&&1==i&&r.ranges.length>1&&(m=function NTe(t,e){for(let n=0;n=e)return mi.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}(r,d.pos))?m:u?r.addRange(_):mi.create([_])}}}(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new TTe(t,e,n,i)),i&&t.observer.ignore(()=>BX(t.contentDOM));let r=t.inputState.mouseSelection;if(r)return r.start(e),!1===r.dragging}return!1};let WK=(t,e)=>t>=e.top&&t<=e.bottom,qK=(t,e,n)=>WK(e,n)&&t>=n.left&&t<=n.right;function LTe(t,e,n,i){let r=g1.find(t.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(0==s)return 1;if(s==r.length)return-1;let a=r.coordsAt(s,-1);if(a&&qK(n,i,a))return-1;let u=r.coordsAt(s,1);return u&&qK(n,i,u)?1:a&&WK(i,a)?-1:1}function XK(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:LTe(t,n,e.clientX,e.clientY)}}const zTe=vr.ie&&vr.ie_version<=11;let KK=null,YK=0,QK=0;function JK(t){if(!zTe)return t.detail;let e=KK,n=QK;return KK=t,QK=Date.now(),YK=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(YK+1)%3:1}function ZK(t,e,n,i){if(!n)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,a=i&&s&&function ATe(t,e){let n=t.state.facet(vK);return n.length?n[0](e):vr.mac?!e.altKey:!e.ctrlKey}(t,e)?{from:s.from,to:s.to}:null,u={from:r,insert:n},d=t.state.changes(a?[a,u]:u);t.focus(),t.dispatch({changes:d,selection:{anchor:d.mapPos(r,-1),head:d.mapPos(r,1)},userEvent:a?"move.drop":"input.drop"}),t.inputState.draggedContent=null}_4.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,a=s+r.length;(s>=n.to||a<=n.from)&&(n=mi.range(s,a))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1},_4.dragend=t=>(t.inputState.draggedContent=null,!1),_4.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),r=0,s=()=>{++r==n.length&&ZK(t,e,i.filter(a=>null!=a).join(t.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(u.result)||(i[a]=u.result),s()},u.readAsText(n[a])}return!0}{let i=e.dataTransfer.getData("Text");if(i)return ZK(t,e,i,!0),!0}return!1},_4.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=$K?null:e.clipboardData;return n?(UK(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function HTe(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),UK(t,n.value)},50)}(t),!1)};let zO=null;_4.copy=_4.cut=(t,e)=>{let{text:n,ranges:i,linewise:r}=function jTe(t){let e=[],n=[],i=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),n.push(r));if(!e.length){let r=-1;for(let{from:s}of t.selection.ranges){let a=t.doc.lineAt(s);a.number>r&&(e.push(a.text),n.push({from:a.from,to:Math.min(t.doc.length,a.to+1)})),r=a.number}i=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:i}}(t.state);if(!n&&!r)return!1;zO=r?n:null,"cut"==e.type&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=$K?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(function PTe(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}(t,n),!1)};const eY=b0.define();function tY(t,e){let n=[];for(let i of t.facet(CK)){let r=i(t,e);r&&n.push(r)}return n?t.update({effects:n,annotations:eY.of(!0)}):null}function nY(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=tY(t.state,e);n?t.dispatch(n):t.update([])}},10)}Vd.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),nY(t)},Vd.blur=t=>{t.observer.clearSelectionRange(),nY(t)},Vd.compositionstart=Vd.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},Vd.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,vr.chrome&&vr.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)},Vd.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},_4.beforeinput=(t,e)=>{var n;let i;if(vr.chrome&&vr.android&&(i=FK.find(r=>r.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let r=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout(()=>{var s;((null===(s=window.visualViewport)||void 0===s?void 0:s.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return vr.ios&&"deleteContentForward"==e.inputType&&t.observer.flushSoon(),vr.safari&&"insertText"==e.inputType&&t.inputState.composing>=0&&setTimeout(()=>Vd.compositionend(t,e),20),!1};const iY=new Set,rY=["pre-wrap","normal","pre-line","break-spaces"];class sY{constructor(e){this.lineWrapping=e,this.doc=Ia.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return rY.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i-1,d=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=u;if(this.lineWrapping=u,this.lineHeight=n,this.charWidth=i,this.textHeight=r,this.lineLength=s,d){this.heightSamples={};for(let m=0;m0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,n){this.height!=n&&(Math.abs(this.height-n)>uS&&(e.heightChanged=!0),this.height=n)}replace(e,n,i){return h2.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,r){let s=this,a=i.doc;for(let u=r.length-1;u>=0;u--){let{fromA:d,toA:m,fromB:_,toB:y}=r[u],x=s.lineAt(d,Ac.ByPosNoHeight,i.setDoc(n),0,0),S=x.to>=m?x:s.lineAt(m,Ac.ByPosNoHeight,i,0,0);for(y+=S.to-m,m=S.to;u>0&&x.from<=r[u-1].toA;)d=r[u-1].fromA,_=r[u-1].fromB,u--,d2*s){let u=e[n-1];u.break?e.splice(--n,1,u.left,null,u.right):e.splice(--n,1,u.left,u.right),i+=1+u.break,r-=u.size}else{if(!(s>2*r))break;{let u=e[i];u.break?e.splice(i,1,u.left,null,u.right):e.splice(i,1,u.left,u.right),i+=2+u.break,s-=u.size}}else if(r=s&&a(this.blockAt(0,i,r,s))}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class qu extends aY{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,r){return new m3(r,this.length,i,this.height,this.breaks)}replace(e,n,i){let r=i[0];return 1==i.length&&(r instanceof qu||r instanceof X1&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof X1?r=new qu(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):h2.of(i)}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more?this.setHeight(e,r.heights[r.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class X1 extends h2{constructor(e){super(e,0)}heightMetrics(e,n){let a,i=e.doc.lineAt(n).number,r=e.doc.lineAt(n+this.length).number,s=r-i+1,u=0;if(e.lineWrapping){let d=Math.min(this.height,e.lineHeight*s);a=d/s,this.length>s+1&&(u=(this.height-d)/(this.length-s-1))}else a=this.height/s;return{firstLine:i,lastLine:r,perLine:a,perChar:u}}blockAt(e,n,i,r){let{firstLine:s,lastLine:a,perLine:u,perChar:d}=this.heightMetrics(n,r);if(n.lineWrapping){let m=r+(e0){let s=i[i.length-1];s instanceof X1?i[i.length-1]=new X1(s.length+r):i.push(null,new X1(r-1))}if(e>0){let s=i[0];s instanceof X1?i[0]=new X1(e+s.length):i.unshift(new X1(e-1),null)}return h2.of(i)}decomposeLeft(e,n){n.push(new X1(e-1),null)}decomposeRight(e,n){n.push(null,new X1(this.length-e-1))}updateHeight(e,n=0,i=!1,r){let s=n+this.length;if(r&&r.from<=n+this.length&&r.more){let a=[],u=Math.max(n,r.from),d=-1;for(r.from>n&&a.push(new X1(r.from-n-1).updateHeight(e,n));u<=s&&r.more;){let _=e.doc.lineAt(u).length;a.length&&a.push(null);let y=r.heights[r.index++];-1==d?d=y:Math.abs(y-d)>=uS&&(d=-2);let x=new qu(_,y);x.outdated=!1,a.push(x),u+=_+1}u<=s&&a.push(null,new X1(s-u).updateHeight(e,u));let m=h2.of(a);return(d<0||Math.abs(m.height-this.height)>=uS||Math.abs(d-this.heightMetrics(e,n).perLine)>=uS)&&(e.heightChanged=!0),m}return(i||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class BTe extends h2{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return 1&this.flags}blockAt(e,n,i,r){let s=i+this.left.height;return eu))return m;let _=n==Ac.ByPosNoHeight?Ac.ByPosNoHeight:Ac.ByPos;return d?m.join(this.right.lineAt(u,_,i,a,u)):this.left.lineAt(u,_,i,r,s).join(m)}forEachLine(e,n,i,r,s,a){let u=r+this.left.height,d=s+this.left.length+this.break;if(this.break)e=d&&this.right.forEachLine(e,n,i,u,d,a);else{let m=this.lineAt(d,Ac.ByPos,i,r,s);e=e&&m.from<=n&&a(m),n>m.to&&this.right.forEachLine(m.to+1,n,i,u,d,a)}}replace(e,n,i){let r=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(e-r,n-r,i));let s=[];e>0&&this.decomposeLeft(e,s);let a=s.length;for(let u of i)s.push(u);if(e>0&&cY(s,a-1),n=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,n);e2*n.size||n.size>2*e.size?h2.of(this.break?[e,null,n]:[e,n]):(this.left=e,this.right=n,this.height=e.height+n.height,this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,r){let{left:s,right:a}=this,u=n+s.length+this.break,d=null;return r&&r.from<=n+s.length&&r.more?d=s=s.updateHeight(e,n,i,r):s.updateHeight(e,n,i),r&&r.from<=u+a.length&&r.more?d=a=a.updateHeight(e,u,i,r):a.updateHeight(e,u,i),d?this.balanced(s,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function cY(t,e){let n,i;null==t[e]&&(n=t[e-1])instanceof X1&&(i=t[e+1])instanceof X1&&t.splice(e-1,3,new X1(n.length+1+i.length))}class RO{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof qu?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new qu(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e=5)&&this.addLineDeco(r,s,a)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenToe&&this.nodes.push(new qu(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new X1(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof qu)return e;let n=new qu(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||n instanceof qu||this.isCovered?(this.writtenTo_.clientHeight||_.scrollWidth>_.clientWidth)&&"visible"!=y.overflow){let x=_.getBoundingClientRect();s=Math.max(s,x.left),a=Math.min(a,x.right),u=Math.max(u,x.top),d=m==t.parentNode?x.bottom:Math.min(d,x.bottom)}m="absolute"==y.position||"fixed"==y.position?_.offsetParent:_.parentNode}else{if(11!=m.nodeType)break;m=m.host}return{left:s-n.left,right:Math.max(s,a)-n.left,top:u-(n.top+e),bottom:Math.max(u,d)-(n.top+e)}}function qTe(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class NO{constructor(e,n,i){this.from=e,this.to=n,this.size=i}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;i"function"!=typeof i&&"cm-lineWrapping"==i.class);this.heightOracle=new sY(n),this.stateDeco=e.facet(O_).filter(i=>"function"!=typeof i),this.heightMap=h2.empty().applyChanges(this.stateDeco,Ia.empty,this.heightOracle.setDoc(e.doc),[new Wu(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Rr.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let r=i?n.head:n.anchor;if(!e.some(({from:s,to:a})=>r>=s&&r<=a)){let{from:s,to:a}=this.lineBlockAt(r);e.push(new dS(s,a))}}this.viewports=e.sort((i,r)=>i.from-r.from),this.scaler=this.heightMap.height<=7e6?uY:new QTe(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(1==this.scaler.scale?e:L_(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(O_).filter(_=>"function"!=typeof _);let s=Wu.extendWithRanges(e.changedRanges,function UTe(t,e,n){let i=new GTe;return Qc.compare(t,e,n,i,0),i.changes}(i,this.stateDeco,e?e.changes:m1.empty(this.state.doc.length))),a=this.heightMap.height,u=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=a&&(e.flags|=2),u?(this.scrollAnchorPos=e.changes.mapPos(u.from,-1),this.scrollAnchorHeight=u.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let d=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.headd.to)||!this.viewportIsAppropriate(d))&&(d=this.getViewport(0,n));let m=!e.changes.empty||2&e.flags||d.from!=this.viewport.from||d.to!=this.viewport.to;this.viewport=d,this.updateForViewport(),m&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(wK)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),r=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?bc.RTL:bc.LTR;let a=this.heightOracle.mustRefreshForWrapping(s),u=n.getBoundingClientRect(),d=a||this.mustMeasureContent||this.contentDOMHeight!=u.height;this.contentDOMHeight=u.height,this.mustMeasureContent=!1;let m=0,_=0;if(u.width&&u.height){let{scaleX:ke,scaleY:ye}=FX(n,u);(ke>.005&&Math.abs(this.scaleX-ke)>.005||ye>.005&&Math.abs(this.scaleY-ye)>.005)&&(this.scaleX=ke,this.scaleY=ye,m|=8,a=d=!0)}let y=(parseInt(i.paddingTop)||0)*this.scaleY,x=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=y||this.paddingBottom!=x)&&(this.paddingTop=y,this.paddingBottom=x,m|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(d=!0),this.editorWidth=e.scrollDOM.clientWidth,m|=8);let S=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=S&&(this.scrollAnchorHeight=-1,this.scrollTop=S),this.scrolledToBottom=GX(e.scrollDOM);let D=(this.printing?qTe:WTe)(n,this.paddingTop),z=D.top-this.pixelViewport.top,$=D.bottom-this.pixelViewport.bottom;this.pixelViewport=D;let W=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(W!=this.inView&&(this.inView=W,W&&(d=!0)),!this.inView&&!this.scrollTarget)return 0;let re=u.width;if((this.contentDOMWidth!=re||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=u.width,this.editorHeight=e.scrollDOM.clientHeight,m|=8),d){let ke=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(ke)&&(a=!0),a||r.lineWrapping&&Math.abs(re-this.contentDOMWidth)>r.charWidth){let{lineHeight:ye,charWidth:Ke,textHeight:lt}=e.docView.measureTextSize();a=ye>0&&r.refresh(s,ye,Ke,lt,re/Ke,ke),a&&(e.docView.minWidth=0,m|=8)}z>0&&$>0?_=Math.max(z,$):z<0&&$<0&&(_=Math.min(z,$)),r.heightChanged=!1;for(let ye of this.viewports){let Ke=ye.from==this.viewport.from?ke:e.docView.measureVisibleLineHeights(ye);this.heightMap=(a?h2.empty().applyChanges(this.stateDeco,Ia.empty,this.heightOracle,[new Wu(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,a,new oY(ye.from,Ke))}r.heightChanged&&(m|=2)}let se=!this.viewportIsAppropriate(this.viewport,_)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return se&&(this.viewport=this.getViewport(_,this.scrollTarget)),this.updateForViewport(),(2&m||se)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),m|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),m}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:a,visibleBottom:u}=this,d=new dS(r.lineAt(a-1e3*i,Ac.ByHeight,s,0,0).from,r.lineAt(u+1e3*(1-i),Ac.ByHeight,s,0,0).to);if(n){let{head:m}=n.range;if(md.to){let x,_=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),y=r.lineAt(m,Ac.ByPos,s,0,0);x="center"==n.y?(y.top+y.bottom)/2-_/2:"start"==n.y||"nearest"==n.y&&m=u+Math.max(10,Math.min(i,250)))&&r>a-2e3&&s>1,a=r<<1;if(this.defaultTextDirection!=bc.LTR&&!i)return[];let u=[],d=(m,_,y,x)=>{if(_-mm&&$<_)return d(m,$-10,y,x),void d($+10,_,y,x);let z=function YTe(t,e){for(let n of t)if(e(n))return n}(e,$=>$.from>=y.from&&$.to<=y.to&&Math.abs($.from-m)$.fromW));if(!z){if(_$.from<=_&&$.to>=_)){let $=n.moveToLineBoundary(mi.cursor(_),!1,!0).head;$>m&&(_=$)}z=new NO(m,_,this.gapSize(y,m,_,x))}u.push(z)};for(let m of this.viewportLines){if(m.lengthm.from&&d(m.from,x,m,_),Sn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];Qc.spans(e,this.viewport.from,this.viewport.to,{span(r,s){n.push({from:r,to:s})},point(){}},20);let i=n.length!=this.visibleRanges.length||this.visibleRanges.some((r,s)=>r.from!=n[s].from||r.to!=n[s].to);return this.visibleRanges=n,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||L_(this.heightMap.lineAt(e,Ac.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return L_(this.heightMap.lineAt(this.scaler.fromDOM(e),Ac.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return L_(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class dS{constructor(e,n){this.from=e,this.to=n}}function KTe(t,e,n){let i=[],r=t,s=0;return Qc.spans(n,t,e,{span(){},point(a,u){a>r&&(i.push({from:r,to:a}),s+=a-r),r=u}},20),r=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let r=0;;r++){let{from:s,to:a}=e[r],u=a-s;if(i<=u)return s+i;i-=u}}function hS(t,e){let n=0;for(let{from:i,to:r}of t.ranges){if(e<=r){n+=e-i;break}n+=r-i}return n/t.total}const uY={toDOM:t=>t,fromDOM:t=>t,scale:1};class QTe{constructor(e,n,i){let r=0,s=0,a=0;this.viewports=i.map(({from:u,to:d})=>{let m=n.lineAt(u,Ac.ByPos,e,0,0).top,_=n.lineAt(d,Ac.ByPos,e,0,0).bottom;return r+=_-m,{from:u,to:d,top:m,bottom:_,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(n.height-r);for(let u of this.viewports)u.domTop=a+(u.top-s)*this.scale,a=u.domBottom=u.domTop+(u.bottom-u.top),s=u.bottom}toDOM(e){for(let n=0,i=0,r=0;;n++){let s=nL_(r,e)):t._content)}const pS=sr.define({combine:t=>t.join(" ")}),PO=sr.define({combine:t=>t.indexOf(!0)>-1}),jO=Ch.newName(),dY=Ch.newName(),fY=Ch.newName(),hY={"&light":"."+dY,"&dark":"."+fY};function FO(t,e,n){return new Ch(e,{finish:i=>/&/.test(i)?i.replace(/&\w*/,r=>{if("&"==r)return t;if(!n||!n[r])throw new RangeError(`Unsupported selector: ${r}`);return n[r]}):t+" "+i})}const JTe=FO("."+jO,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},hY);class ZTe{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(W1.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="\uffff"}readRange(e,n){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let s=this.text.length;this.readNode(r);let a=r.nextSibling;if(a==n)break;let u=_c.get(r),d=_c.get(a);(u&&d?u.breakAfter:(u?u.breakAfter:ZM(r))||ZM(a)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>s)&&this.lineBreak(),r=a}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let u,s=-1,a=1;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,i),a=this.lineSeparator.length):(u=r.exec(n))&&(s=u.index,a=u[0].length),this.append(n.slice(i,s<0?n.length:s)),s<0)break;if(this.lineBreak(),a>1)for(let d of this.points)d.node==e&&d.pos>this.text.length&&(d.pos-=a-1);i=s+a}}readNode(e){if(e.cmIgnore)return;let n=_c.get(e),i=n&&n.overrideDOMText;if(null!=i){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(3==e.nodeType?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(eVe(e,i.node,i.offset)?n:0))}}function eVe(t,e,n){for(;;){if(!e||n-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let u=s||a?[]:function rVe(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new pY(n,i)),(r!=n||s!=i)&&e.push(new pY(r,s))),e}(e),d=new ZTe(u,e.state);d.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=d.text,this.newSel=function sVe(t,e){if(0==t.length)return null;let n=t[0].pos,i=2==t.length?t[1].pos:n;return n>-1&&i>-1?mi.single(n+e,i+e):null}(u,this.bounds.from)}else{let u=e.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!mO(e.contentDOM,u.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(u.focusNode,u.focusOffset),m=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!mO(e.contentDOM,u.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(u.anchorNode,u.anchorOffset),_=e.viewport;if((vr.ios||vr.chrome)&&e.state.selection.main.empty&&d!=m&&(_.from>0||_.toDate.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:u}=e.bounds,d=r.from,m=null;(8===s||vr.android&&e.text.length0&&u>0&&t.charCodeAt(a-1)==e.charCodeAt(u-1);)a--,u--;return"end"==i&&(n-=a+Math.max(0,s-Math.min(a,u))-s),a=a?s-n:0,u=s+(u-a),a=s):u=u?s-n:0,a=s+(a-u),u=s),{from:s,toA:a,toB:u}}(t.state.doc.sliceString(a,u,"\uffff"),e.text,d-a,m);_&&(vr.chrome&&13==s&&_.toB==_.from+2&&"\uffff\uffff"==e.text.slice(_.from,_.toB)&&_.toB--,n={from:a+_.from,to:a+_.toA,insert:Ia.of(e.text.slice(_.from,_.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(rS)||i.main.eq(r))&&(i=null);if(!n&&!i)return!1;if(!n&&e.typeOver&&!r.empty&&i&&i.main.empty?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,r.to))}:(vr.mac||vr.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=mi.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:Ia.of([" "])}):vr.chrome&&n&&n.from==n.to&&n.from==r.head&&"\n "==n.insert.toString()&&t.lineWrapping&&(i&&(i=mi.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:Ia.of([" "])}),n){if(vr.ios&&t.inputState.flushIOSKey(n)||vr.android&&(n.to==r.to&&(n.from==r.from||n.from==r.from-1&&" "==t.state.sliceDoc(n.from,r.from))&&1==n.insert.length&&2==n.insert.lines&&I5(t.contentDOM,"Enter",13)||(n.from==r.from-1&&n.to==r.to&&0==n.insert.length||8==s&&n.insert.lengthr.head)&&I5(t.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&0==n.insert.length&&I5(t.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let u,d=()=>u||(u=function nVe(t,e,n){let i,r=t.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let u=s.frome.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(t.state.toText(u+e.insert.sliceString(0,void 0,t.state.lineBreak)+d))}else{let u=r.changes(e),d=n&&n.main.to<=u.newLength?n.main:void 0;if(r.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let _,m=t.state.sliceDoc(e.from,e.to),y=n&&OK(t,n.main.head);_=y?{from:y.from,to:y.to-(e.insert.length-(e.to-e.from))}:t.state.doc.lineAt(s.head);let x=s.to-e.to,S=s.to-s.from;i=r.changeByRange(D=>{if(D.from==s.from&&D.to==s.to)return{changes:u,range:d||D.map(u)};let z=D.to-x,$=z-m.length;if(D.to-D.from!=S||t.state.sliceDoc($,z)!=m||D.to>=_.from&&D.from<=_.to)return{range:D};let W=r.changes({from:$,to:z,insert:e.insert}),re=D.to-s.to;return{changes:W,range:d?mi.range(Math.max(0,d.anchor+re),Math.max(0,d.head+re)):D.map(W)}})}else i={changes:u,selection:d&&r.selection.replaceRange(d)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}(t,n,i));return t.state.facet(yK).some(m=>m(t,n.from,n.to,a,d))||t.dispatch(d()),!0}if(i&&!i.main.eq(r)){let a=!1,u="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(a=!0),u=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:a,userEvent:u}),!0}return!1}const oVe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},BO=vr.ie&&vr.ie_version<=11;class aVe{constructor(e){this.view=e,this.active=!1,this.selectionRange=new XDe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(vr.ie&&vr.ie_version<=11||vr.ios&&e.composing)&&n.some(i=>"childList"==i.type&&i.removedNodes.length||"characterData"==i.type&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),BO&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var n;(null===(n=this.view.docView)||void 0===n?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){"change"==e.type&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(rS)?i.root.activeElement!=this.dom:!JM(i.dom,r))return;let s=r.anchorNode&&i.docView.nearest(r.anchorNode);s&&s.ignoreEvent(e)?n||(this.selectionChanged=!1):(vr.ie&&vr.ie_version<=11||vr.android&&vr.chrome)&&!i.state.selection.main.empty&&r.focusNode&&D_(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=QM(e.root);if(!n)return!1;let i=vr.safari&&11==e.root.nodeType&&function UDe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function cVe(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return vY(t,r)}let n=null;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),n?vY(t,n):null}(this.view,n)||n;if(!i||this.selectionRange.eq(i))return!1;let r=JM(this.dom,i);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&I5(this.dom,s.key,s.keyCode))})),(!this.delayedAndroidKey||"Enter"==e)&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,r=!1;for(let s of e){let a=this.readMutation(s);a&&(a.typeOver&&(r=!0),-1==n?({from:n,to:i}=a):(n=Math.min(a.from,n),i=Math.max(a.to,i)))}return{from:n,to:i,typeOver:r}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&JM(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new tVe(this.view,e,n,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,r=mY(this.view,n);return this.view.state==i&&this.view.update([]),r}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty("attributes"==e.type),"attributes"==e.type&&(n.flags|=4),"childList"==e.type){let i=gY(n,e.previousSibling||e.target.previousSibling,-1),r=gY(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:r?n.posBefore(r):n.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,n,i;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(n=this.gapIntersection)||void 0===n||n.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function gY(t,e,n){for(;e;){let i=_c.get(e);if(i&&i.parent==t)return i;let r=e.parentNode;e=r!=t.dom?r:n>0?e.nextSibling:e.previousSibling}return null}function vY(t,e){let n=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return D_(a.node,a.offset,r,s)&&([n,i,r,s]=[r,s,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}}let ps=(()=>{class t{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(n={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),n.parent&&n.parent.appendChild(this.dom);let{dispatch:i}=n;this.dispatchTransactions=n.dispatchTransactions||i&&(r=>r.forEach(s=>i(s,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=n.root||function KDe(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(n.parent)||document,this.viewState=new lY(n.state||W1.create(n)),n.scrollTo&&n.scrollTo.is(iS)&&(this.viewState.scrollTarget=n.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(I_).map(r=>new VO(r));for(let r of this.plugins)r.update(this);this.observer=new aVe(this),this.inputState=new STe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new AK(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...n){let i=1==n.length&&n[0]instanceof f3?n:1==n.length&&Array.isArray(n[0])?n[0]:[this.state.update(...n)];this.dispatchTransactions(i,this)}update(n){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let s,i=!1,r=!1,a=this.state;for(let S of n){if(S.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=S.state}if(this.destroyed)return void(this.viewState.state=a);let u=this.hasFocus,d=0,m=null;n.some(S=>S.annotation(eY))?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,m=tY(a,u),m||(d=1));let _=this.observer.delayedAndroidKey,y=null;if(_?(this.observer.clearDelayedAndroidKey(),y=this.observer.readChange(),(y&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(y=null)):this.observer.clear(),a.facet(W1.phrases)!=this.state.facet(W1.phrases))return this.setState(a);s=oS.create(this,a,n),s.flags|=d;let x=this.viewState.scrollTarget;try{this.updateState=2;for(let S of n){if(x&&(x=x.map(S.changes)),S.scrollIntoView){let{main:D}=S.state.selection;x=new H5(D.empty?D:mi.cursor(D.head,D.head>D.anchor?-1:1))}for(let D of S.effects)D.is(iS)&&(x=D.value.clip(this.state))}this.viewState.update(s,x),this.bidiCache=mS.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),i=this.docView.update(s),this.state.facet(H_)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(i,n.some(S=>S.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(pS)!=s.state.facet(pS)&&(this.viewState.mustMeasureContent=!0),(i||r||x||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!s.empty)for(let S of this.state.facet(TO))try{S(s)}catch(D){K2(this.state,D,"update listener")}(m||y)&&Promise.resolve().then(()=>{m&&this.state==m.startState&&this.dispatch(m),y&&!mY(this,y)&&_.force&&I5(this.contentDOM,_.key,_.keyCode)})}setState(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=n);this.updateState=2;let i=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new lY(n),this.plugins=n.facet(I_).map(r=>new VO(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new AK(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}i&&this.focus(),this.requestMeasure()}updatePlugins(n){let i=n.startState.facet(I_),r=n.state.facet(I_);if(i!=r){let s=[];for(let a of r){let u=i.indexOf(a);if(u<0)s.push(new VO(a));else{let d=this.plugins[u];d.mustUpdate=n,s.push(d)}}for(let a of this.plugins)a.mustUpdate!=n&&a.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=n;for(let s=0;s-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,n&&this.observer.forceFlush();let i=null,r=this.scrollDOM,s=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:u}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(u=-1),this.viewState.scrollAnchorHeight=-1;try{for(let d=0;;d++){if(u<0)if(GX(r))a=-1,u=this.viewState.heightMap.height;else{let D=this.viewState.scrollAnchorAt(s);a=D.from,u=D.top}this.updateState=1;let m=this.viewState.measure(this);if(!m&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(d>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let _=[];4&m||([this.measureRequests,_]=[_,this.measureRequests]);let y=_.map(D=>{try{return D.read(this)}catch(z){return K2(this.state,z),_Y}}),x=oS.create(this,this.state,[]),S=!1;x.flags|=m,i?i.flags|=m:i=x,this.updateState=2,x.empty||(this.updatePlugins(x),this.inputState.update(x),this.updateAttrs(),S=this.docView.update(x),S&&this.docViewUpdate());for(let D=0;D<_.length;D++)if(y[D]!=_Y)try{let z=_[D];z.write&&z.write(y[D],this)}catch(z){K2(this.state,z)}if(S&&this.docView.updateSelection(!0),!x.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,u=-1;continue}{let z=(a<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(a).top)-u;if(z>1||z<-1){s+=z,r.scrollTop=s/this.scaleY,u=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty)for(let d of this.state.facet(TO))d(i)}get themeClasses(){return jO+" "+(this.state.facet(PO)?fY:dY)+" "+this.state.facet(pS)}updateAttrs(){let n=bY(this,SK,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(rS)?"true":"false",class:"cm-content",style:`${vr.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),bY(this,sS,i);let r=this.observer.ignore(()=>{let s=wO(this.contentDOM,this.contentAttrs,i),a=wO(this.dom,this.editorAttrs,n);return s||a});return this.editorAttrs=n,this.contentAttrs=i,r}showAnnouncements(n){let i=!0;for(let r of n)for(let s of r.effects)s.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value)}mountStyles(){this.styleModules=this.state.facet(H_);let n=this.state.facet(t.cspNonce);Ch.mount(this.root,this.styleModules.concat(JTe).reverse(),n?{nonce:n}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(n){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(let i=0;ir.spec==n)||null),i&&i.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(n){return this.readMeasured(),this.viewState.elementAtHeight(n)}lineBlockAtHeight(n){return this.readMeasured(),this.viewState.lineBlockAtHeight(n)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(n){return this.viewState.lineBlockAt(n)}get contentHeight(){return this.viewState.contentHeight}moveByChar(n,i,r){return LO(this,n,PK(this,n,i,r))}moveByGroup(n,i){return LO(this,n,PK(this,n,i,r=>function wTe(t,e,n){let i=t.state.charCategorizer(e),r=i(n);return s=>{let a=i(s);return r==Yc.Space&&(r=a),r==a}}(this,n.head,r)))}visualLineSide(n,i){let r=this.bidiSpans(n),s=this.textDirectionAt(n.from),a=r[i?r.length-1:0];return mi.cursor(a.side(i,s)+n.from,a.forward(!i,s)?1:-1)}moveToLineBoundary(n,i,r=!0){return function xTe(t,e,n,i){let r=HO(t,e.head),s=i&&r.type==X2.Text&&(t.lineWrapping||r.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head):null;if(s){let a=t.dom.getBoundingClientRect(),u=t.textDirectionAt(r.from),d=t.posAtCoords({x:n==(u==bc.LTR)?a.right-1:a.left+1,y:(s.top+s.bottom)/2});if(null!=d)return mi.cursor(d,n?-1:1)}return mi.cursor(n?r.to:r.from,n?-1:1)}(this,n,i,r)}moveVertically(n,i,r){return LO(this,n,function MTe(t,e,n,i){let r=e.head,s=n?1:-1;if(r==(n?t.state.doc.length:0))return mi.cursor(r,e.assoc);let u,a=e.goalColumn,d=t.contentDOM.getBoundingClientRect(),m=t.coordsAtPos(r,e.assoc||-1),_=t.documentTop;if(m)null==a&&(a=m.left-d.left),u=s<0?m.top:m.bottom;else{let S=t.viewState.lineBlockAt(r);null==a&&(a=Math.min(d.right-d.left,t.defaultCharacterWidth*(r-S.from))),u=(s<0?S.top:S.bottom)+_}let y=d.left+a,x=i??t.viewState.heightOracle.textHeight>>1;for(let S=0;;S+=10){let D=u+(x+S)*s,z=RK(t,{x:y,y:D},!1,s);if(Dd.bottom||(s<0?zr)){let $=t.docView.coordsForChar(z);return mi.cursor(z,!$||D<$.top?-1:1,void 0,a)}}}(this,n,i,r))}domAtPos(n){return this.docView.domAtPos(n)}posAtDOM(n,i=0){return this.docView.posFromDOM(n,i)}posAtCoords(n,i=!0){return this.readMeasured(),RK(this,n,i)}coordsAtPos(n,i=1){this.readMeasured();let r=this.docView.coordsAt(n,i);if(!r||r.left==r.right)return r;let s=this.state.doc.lineAt(n),a=this.bidiSpans(s);return eS(r,a[kh.find(a,n-s.from,-1,i)].dir==bc.LTR==i>0)}coordsForChar(n){return this.readMeasured(),this.docView.coordsForChar(n)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(n){return!this.state.facet(xK)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(n){if(n.length>lVe)return hK(n.length);let r,i=this.textDirectionAt(n.from);for(let a of this.bidiCache)if(a.from==n.from&&a.dir==i&&(a.fresh||dK(a.isolates,r=DK(this,n))))return a.order;r||(r=DK(this,n));let s=function fK(t,e,n){if(!t)return[new kh(0,0,e==SO?1:0)];if(e==Ap&&!n.length&&!rTe.test(t))return hK(t.length);if(n.length)for(;t.length>yc.length;)yc[yc.length]=256;let i=[],r=e==Ap?0:1;return DO(t,r,r,n,0,t.length,i),i}(n.text,i,r);return this.bidiCache.push(new mS(n.from,n.to,i,r,!0,s)),s}get hasFocus(){var n;return(this.dom.ownerDocument.hasFocus()||vr.safari&&(null===(n=this.inputState)||void 0===n?void 0:n.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{BX(this.contentDOM),this.docView.updateSelection()})}setRoot(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let n of this.plugins)n.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(n,i={}){return iS.of(new H5("number"==typeof n?mi.cursor(n):n,i.y,i.x,i.yMargin,i.xMargin))}scrollSnapshot(){let{scrollTop:n,scrollLeft:i}=this.scrollDOM,r=this.viewState.scrollAnchorAt(n);return iS.of(new H5(mi.cursor(r.from),"start","start",r.top-n,i,!0))}static domEventHandlers(n){return Vc.define(()=>({}),{eventHandlers:n})}static domEventObservers(n){return Vc.define(()=>({}),{eventObservers:n})}static theme(n,i){let r=Ch.newName(),s=[pS.of(r),H_.of(FO(`.${r}`,n))];return i&&i.dark&&s.push(PO.of(!0)),s}static baseTheme(n){return v0.lowest(H_.of(FO("."+jO,n,hY)))}static findFromDOM(n){var i;let r=n.querySelector(".cm-content"),s=r&&_c.get(r)||_c.get(n);return(null===(i=s?.rootView)||void 0===i?void 0:i.view)||null}}return t.styleModule=H_,t.inputHandler=yK,t.scrollHandler=MK,t.focusChangeEffect=CK,t.perLineTextDirection=xK,t.exceptionSink=bK,t.updateListener=TO,t.editable=rS,t.mouseSelectionStyle=_K,t.dragMovesSelection=vK,t.clickAddsSelectionRange=gK,t.decorations=O_,t.outerDecorations=kK,t.atomicRanges=AO,t.bidiIsolatedRanges=EK,t.scrollMargins=TK,t.darkTheme=PO,t.cspNonce=sr.define({combine:e=>e.length?e[0]:""}),t.contentAttributes=sS,t.editorAttributes=SK,t.lineWrapping=t.contentAttributes.of({class:"cm-lineWrapping"}),t.announce=Uo.define(),t})();const lVe=4096,_Y={};class mS{constructor(e,n,i,r,s,a){this.from=e,this.to=n,this.dir=i,this.isolates=r,this.fresh=s,this.order=a}static update(e,n){if(n.empty&&!e.some(s=>s.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:bc.LTR;for(let s=Math.max(0,e.length-10);s=0;r--){let s=i[r],a="function"==typeof s?s(t):s;a&&CO(a,n)}return n}const uVe=vr.mac?"mac":vr.windows?"win":vr.linux?"linux":"key";function gS(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==n&&e.shiftKey&&(t="Shift-"+t),t}const fVe=v0.default(ps.domEventHandlers({keydown:(t,e)=>xY(CY(e.state),t,e,"editor")})),R_=sr.define({enables:fVe}),yY=new WeakMap;function CY(t){let e=t.facet(R_),n=yY.get(e);return n||yY.set(e,n=function mVe(t,e=uVe){let n=Object.create(null),i=Object.create(null),r=(a,u)=>{let d=i[a];if(null==d)i[a]=u;else if(d!=u)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},s=(a,u,d,m,_)=>{var y,x;let S=n[a]||(n[a]=Object.create(null)),D=u.split(/ (?!$)/).map(W=>function dVe(t,e){const n=t.split(/-(?!$)/);let r,s,a,u,i=n[n.length-1];"Space"==i&&(i=" ");for(let d=0;d{let ke=Eh={view:se,prefix:re,scope:a};return setTimeout(()=>{Eh==ke&&(Eh=null)},pVe),!0}]})}let z=D.join(" ");r(z,!1);let $=S[z]||(S[z]={preventDefault:!1,stopPropagation:!1,run:(null===(x=null===(y=S._any)||void 0===y?void 0:y.run)||void 0===x?void 0:x.slice())||[]});d&&$.run.push(d),m&&($.preventDefault=!0),_&&($.stopPropagation=!0)};for(let a of t){let u=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let m of u){let _=n[m]||(n[m]=Object.create(null));_._any||(_._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let y in _)_[y].run.push(a.any)}let d=a[e]||a.key;if(d)for(let m of u)s(m,d,a.run,a.preventDefault,a.stopPropagation),a.shift&&s(m,"Shift-"+d,a.shift,a.preventDefault,a.stopPropagation)}return n}(e.reduce((i,r)=>i.concat(r),[]))),n}let Eh=null;const pVe=4e3;function xY(t,e,n,i){let r=function $De(t){var n=!(FDe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||BDe&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?E_:xh)[t.keyCode]||t.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}(e),a=Dd(G1(r,0))==r.length&&" "!=r,u="",d=!1,m=!1,_=!1;Eh&&Eh.view==n&&Eh.scope==i&&(u=Eh.prefix+" ",BK.indexOf(e.keyCode)<0&&(m=!0,Eh=null));let D,z,y=new Set,x=$=>{if($){for(let W of $.run)if(!y.has(W)&&(y.add(W),W(n,e)))return $.stopPropagation&&(_=!0),!0;$.preventDefault&&($.stopPropagation&&(_=!0),m=!0)}return!1},S=t[i];return S&&(x(S[u+gS(r,e,!a)])?d=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(vr.windows&&e.ctrlKey&&e.altKey)&&(D=xh[e.keyCode])&&D!=r?(x(S[u+gS(D,e,!0)])||e.shiftKey&&(z=E_[e.keyCode])!=r&&z!=D&&x(S[u+gS(z,e,!1)]))&&(d=!0):a&&e.shiftKey&&x(S[u+gS(r,e,!0)])&&(d=!0),!d&&x(S._any)&&(d=!0)),m&&(d=!0),d&&_&&e.stopPropagation(),d}class N_{constructor(e,n,i,r,s){this.className=e,this.left=n,this.top=i,this.width=r,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,i){if(i.empty){let r=e.coordsAtPos(i.head,i.assoc||1);if(!r)return[];let s=wY(e);return[new N_(n,r.left-s.left,r.top-s.top,null,r.bottom-r.top)]}return function gVe(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let i=Math.max(n.from,t.viewport.from),r=Math.min(n.to,t.viewport.to),s=t.textDirection==bc.LTR,a=t.contentDOM,u=a.getBoundingClientRect(),d=wY(t),m=a.querySelector(".cm-line"),_=m&&window.getComputedStyle(m),y=u.left+(_?parseInt(_.paddingLeft)+Math.min(0,parseInt(_.textIndent)):0),x=u.right-(_?parseInt(_.paddingRight):0),S=HO(t,i),D=HO(t,r),z=S.type==X2.Text?S:null,$=D.type==X2.Text?D:null;if(z&&(t.lineWrapping||S.widgetLineBreaks)&&(z=MY(t,i,z)),$&&(t.lineWrapping||D.widgetLineBreaks)&&($=MY(t,r,$)),z&&$&&z.from==$.from)return re(se(n.from,n.to,z));{let ye=z?se(n.from,null,z):ke(S,!1),Ke=$?se(null,n.to,$):ke(D,!0),lt=[];return(z||S).to<($||D).from-(z&&$?1:0)||S.widgetLineBreaks>1&&ye.bottom+t.defaultLineHeight/2wt&&ut.from=$t)break;gt>Ut&&qt(Math.max(st,Ut),null==ye&&st<=wt,Math.min(gt,$t),null==Ke&>>=Dt,et.dir)}if(Ut=Lt.to+1,Ut>=$t)break}return 0==kt.length&&qt(wt,null==ye,Dt,null==Ke,t.textDirection),{top:Vt,bottom:Nt,horizontal:kt}}function ke(ye,Ke){let lt=u.top+(Ke?ye.top:ye.bottom);return{top:lt,bottom:lt,horizontal:[]}}}(e,n,i)}}function wY(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==bc.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function MY(t,e,n){let i=mi.cursor(e);return{from:Math.max(n.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,t.moveToLineBoundary(i,!0,!0).from),type:X2.Text}}class _Ve{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(vS)!=e.state.facet(vS)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,i=e.facet(vS);for(;n!function vVe(t,e){return t.constructor==e.constructor&&t.eq(e)}(n,this.drawn[i]))){let n=this.dom.firstChild,i=0;for(let r of e)r.update&&n&&r.constructor&&this.drawn[i].constructor&&r.update(n,this.drawn[i])?(n=n.nextSibling,i++):this.dom.insertBefore(r.draw(),n);for(;n;){let r=n.nextSibling;n.remove(),n=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const vS=sr.define();function SY(t){return[Vc.define(e=>new _Ve(e,t)),vS.of(t)]}const kY=!vr.ios,L5=sr.define({combine:t=>Td(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})});function bVe(t={}){return[L5.of(t),yVe,CVe,xVe,wK.of(!0)]}function EY(t){return t.startState.facet(L5)!=t.state.facet(L5)}const yVe=SY({above:!0,markers(t){let{state:e}=t,n=e.facet(L5),i=[];for(let r of e.selection.ranges){let s=r==e.selection.main;if(r.empty?!s||kY:n.drawRangeCursor){let a=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=r.empty?r:mi.cursor(r.head,r.head>r.anchor?-1:1);for(let d of N_.forRange(t,a,u))i.push(d)}}return i},update(t,e){t.transactions.some(i=>i.selection)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let n=EY(t);return n&&DY(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){DY(e.state,t)},class:"cm-cursorLayer"});function DY(t,e){e.style.animationDuration=t.facet(L5).cursorBlinkRate+"ms"}const CVe=SY({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:N_.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||EY(t),class:"cm-selectionLayer"}),$O={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};kY&&($O[".cm-line"].caretColor="transparent !important",$O[".cm-content"]={caretColor:"transparent !important"});const xVe=v0.highest(ps.theme($O)),TY=Uo.define({map:(t,e)=>null==t?null:e.mapPos(t)}),P_=e1.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((n,i)=>i.is(TY)?i.value:n,t))}),wVe=Vc.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(P_);null==n?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(P_)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(P_),n=null!=e&&t.coordsAtPos(e);if(!n)return null;let i=t.scrollDOM.getBoundingClientRect();return{left:n.left-i.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-i.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(P_)!=t&&this.view.dispatch({effects:TY.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function VY(t,e,n,i,r){e.lastIndex=0;for(let u,s=t.iterRange(n,i),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;u=e.exec(s.value);)r(a+u.index,u)}class UO{constructor(e){const{regexp:n,decoration:i,decorate:r,boundary:s,maxLength:a=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,r)this.addMatch=(u,d,m,_)=>r(_,m,m+u[0].length,u,d);else if("function"==typeof i)this.addMatch=(u,d,m,_)=>{let y=i(u,d,m);y&&_(m,m+u[0].length,y)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(u,d,m,_)=>_(m,m+u[0].length,i)}this.boundary=s,this.maxLength=a}createDeco(e){let n=new g4,i=n.add.bind(n);for(let{from:r,to:s}of function SVe(t,e){let n=t.visibleRanges;if(1==n.length&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let i=[];for(let{from:r,to:s}of n)r=Math.max(t.state.doc.lineAt(r).from,r-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),i.length&&i[i.length-1].to>=r?i[i.length-1].to=s:i.push({from:r,to:s});return i}(e,this.maxLength))VY(e.state.doc,this.regexp,r,s,(a,u)=>this.addMatch(u,e,a,i));return n.finish()}updateDeco(e,n){let i=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,a,u,d)=>{d>e.view.viewport.from&&u1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,n.map(e.changes),i,r):n}updateRange(e,n,i,r){for(let s of e.visibleRanges){let a=Math.max(s.from,i),u=Math.min(s.to,r);if(u>a){let d=e.state.doc.lineAt(a),m=d.tod.from;a--)if(this.boundary.test(d.text[a-1-d.from])){_=a;break}for(;ux.push(W.range(z,$));if(d==m)for(this.regexp.lastIndex=_-d.from;(S=this.regexp.exec(d.text))&&S.indexthis.addMatch($,e,z,D));n=n.update({filterFrom:_,filterTo:y,filter:(z,$)=>z<_||$>y,add:x})}}return n}}const GO=null!=/x/.unicode?"gu":"g",kVe=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",GO),EVe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let WO=null;const _S=sr.define({combine(t){let e=Td(t,{render:null,specialChars:kVe,addSpecialChars:null});return(e.replaceTabs=!function DVe(){var t;if(null==WO&&typeof document<"u"&&document.body){let e=document.body.style;WO=null!=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)}return WO||!1}())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,GO)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,GO)),e}});function TVe(t={}){return[_S.of(t),AY||(AY=Vc.fromClass(class{constructor(t){this.view=t,this.decorations=Rr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(_S)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new UO({regexp:t.specialChars,decoration:(e,n,i)=>{let{doc:r}=n.state,s=G1(e[0],0);if(9==s){let a=r.lineAt(i),u=n.state.tabSize,d=T5(a.text,u,i-a.from);return Rr.replace({widget:new HVe((u-d%u)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=Rr.replace({widget:new OVe(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(_S);t.startState.facet(_S)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let AY=null;class OVe extends h3{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=function IVe(t){return t>=32?"\u2022":10==t?"\u2424":String.fromCharCode(9216+t)}(this.code),i=e.state.phrase("Control character")+" "+(EVe[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,n);if(r)return r;let s=document.createElement("span");return s.textContent=n,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class HVe extends h3{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const zVe=Rr.line({class:"cm-activeLine"}),RVe=Vc.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let i of t.state.selection.ranges){let r=t.lineBlockAt(i.head);r.from>e&&(n.push(zVe.range(r.from)),e=r.from)}return Rr.set(n)}},{decorations:t=>t.decorations}),qO=2e3;function OY(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),i=t.state.doc.lineAt(n),r=n-i.from,s=r>qO?-1:r==i.length?function jVe(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):T5(i.text,t.state.tabSize,n-i.from);return{line:i.number,col:s,off:r}}function BVe(t){let e=t?.eventFilter||(n=>n.altKey&&0==n.button);return ps.mouseSelectionStyle.of((n,i)=>e(i)?function FVe(t,e){let n=OY(t,e),i=t.state.selection;return n?{update(r){if(r.docChanged){let s=r.changes.mapPos(r.startState.doc.line(n.line).from),a=r.state.doc.lineAt(s);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},i=i.map(r.changes)}},get(r,s,a){let u=OY(t,r);if(!u)return i;let d=function PVe(t,e,n){let i=Math.min(e.line,n.line),r=Math.max(e.line,n.line),s=[];if(e.off>qO||n.off>qO||e.col<0||n.col<0){let a=Math.min(e.off,n.off),u=Math.max(e.off,n.off);for(let d=i;d<=r;d++){let m=t.doc.line(d);m.length<=u&&s.push(mi.range(m.from+a,m.to+u))}}else{let a=Math.min(e.col,n.col),u=Math.max(e.col,n.col);for(let d=i;d<=r;d++){let m=t.doc.line(d),_=dO(m.text,a,t.tabSize,!0);if(_<0)s.push(mi.cursor(m.to));else{let y=dO(m.text,u,t.tabSize);s.push(mi.range(m.from+_,m.from+y))}}}return s}(t.state,n,u);return d.length?mi.create(a?d.concat(i.ranges):d):i}}:null}(n,i):null)}const $Ve={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},UVe={style:"cursor: crosshair"};function GVe(t={}){let[e,n]=$Ve[t.key||"Alt"],i=Vc.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||n(r))},keyup(r){(r.keyCode==e||!n(r))&&this.set(!1)},mousemove(r){this.set(n(r))}}});return[i,ps.contentAttributes.of(r=>{var s;return null!==(s=r.plugin(i))&&void 0!==s&&s.isDown?UVe:null})]}const j_="-10000px";class HY{constructor(e,n,i,r){this.facet=n,this.createTooltipView=i,this.removeTooltipView=r,this.input=e.state.facet(n),this.tooltips=this.input.filter(a=>a);let s=null;this.tooltipViews=this.tooltips.map(a=>s=i(a,s))}update(e,n){var i;let r=e.state.facet(this.facet),s=r.filter(d=>d);if(r===this.input){for(let d of this.tooltipViews)d.update&&d.update(e);return!1}let a=[],u=n?[]:null;for(let d=0;dn[m]=d),n.length=u.length),this.input=r,this.tooltips=s,this.tooltipViews=a,!0}}function WVe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const bS=sr.define({combine:t=>{var e,n,i;return{position:vr.ios?"absolute":(null===(e=t.find(r=>r.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(n=t.find(r=>r.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(i=t.find(r=>r.tooltipSpace))||void 0===i?void 0:i.tooltipSpace)||WVe}}}),LY=new WeakMap,yS=Vc.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(bS);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new HY(t,CS,(n,i)=>this.createTooltip(n,i),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,i=t.state.facet(bS);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),i=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",n.dom.appendChild(r)}return n.dom.style.position=this.position,n.dom.style.top=j_,n.dom.style.left="0px",this.container.insertBefore(n.dom,i),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),null===(t=i.destroy)||void 0===t||t.call(i);this.parent&&this.container.remove(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,i=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(vr.gecko)i=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==j_&&"0px"==r.style.left){let s=r.getBoundingClientRect();i=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(i||"absolute"==this.position)if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,n=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((r,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(bS).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let u of this.manager.tooltipViews)u.dom.style.position="absolute"}let{editor:n,space:i,scaleX:r,scaleY:s}=t,a=[];for(let u=0;u=Math.min(n.bottom,i.bottom)||y.rightMath.min(n.right,i.right)+.1){_.style.top=j_;continue}let S=d.arrow?m.dom.querySelector(".cm-tooltip-arrow"):null,D=S?7:0,z=x.right-x.left,$=null!==(e=LY.get(m))&&void 0!==e?e:x.bottom-x.top,W=m.offset||XVe,re=this.view.textDirection==bc.LTR,se=x.width>i.right-i.left?re?i.left:i.right-x.width:re?Math.min(y.left-(S?14:0)+W.x,i.right-z):Math.max(i.left,y.left-z+(S?14:0)-W.x),ke=this.above[u];!d.strictSide&&(ke?y.top-(x.bottom-x.top)-W.yi.bottom)&&ke==i.bottom-y.bottom>y.top-i.top&&(ke=this.above[u]=!ke);let ye=(ke?y.top-i.top:i.bottom-y.bottom)-D;if(ye<$&&!1!==m.resize){if(yese&&Vt.topKe&&(Ke=ke?Vt.top-$-2-D:Vt.bottom+D+2);"absolute"==this.position?(_.style.top=(Ke-t.parent.top)/s+"px",_.style.left=(se-t.parent.left)/r+"px"):(_.style.top=Ke/s+"px",_.style.left=se/r+"px"),S&&(S.style.left=(y.left+(re?W.x:-W.x)-(se+14-7))/r+"px"),!0!==m.overlap&&a.push({left:se,top:Ke,right:lt,bottom:Ke+$}),_.classList.toggle("cm-tooltip-above",ke),_.classList.toggle("cm-tooltip-below",!ke),m.positioned&&m.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=j_}},{eventObservers:{scroll(){this.maybeMeasure()}}}),XVe={x:0,y:0},CS=sr.define({enables:[yS,ps.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}})]}),F_=sr.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class xS{static create(e){return new xS(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new HY(e,F_,(n,i)=>this.createHostedView(n,i),n=>n.dom.remove())}createHostedView(e,n){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)null===(e=n.destroy)||void 0===e||e.call(n)}passProp(e){let n;for(let i of this.manager.tooltipViews){let r=i[e];if(void 0!==r)if(void 0===n)n=r;else if(n!==r)return}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const KVe=CS.compute([F_],t=>{let e=t.facet(F_);return 0===e.length?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var i;return null!==(i=n.end)&&void 0!==i?i:n.pos})),create:xS.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class YVe{constructor(e,n,i,r,s){this.view=e,this.source=n,this.field=i,this.setHover=r,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;eu.bottom||n.xu.right+e.defaultCharacterWidth)return;let d=e.bidiSpans(e.state.doc.lineAt(r)).find(_=>_.from<=r&&_.to>=r),m=d&&d.dir==bc.RTL?-1:1;s=n.x{this.pending==u&&(this.pending=null,d&&(!Array.isArray(d)||d.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(d)?d:[d])}))},d=>K2(e.state,d,"hover tooltip"))}else a&&(!Array.isArray(a)||a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(yS),n=e?e.manager.tooltips.findIndex(i=>i.create==xS.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:s}=this;if(r.length&&s&&!function QVe(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-wS&&e.clientX<=n.right+wS&&e.clientY>=n.top-wS&&e.clientY<=n.bottom+wS}(s.dom,e)||this.pending){let{pos:a}=r[0]||this.pending,u=null!==(i=null===(n=r[0])||void 0===n?void 0:n.end)&&void 0!==i?i:a;(a==u?this.view.posAtCoords(this.lastMove)!=a:!function JVe(t,e,n,i,r,s){let a=t.scrollDOM.getBoundingClientRect();if(a.left>i||a.rightr||Math.min(a.bottom,t.documentTop+t.documentPadding.top+t.contentHeight)=e&&d<=n}(this.view,a,u,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=i=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const wS=4;function ZVe(t,e={}){let n=Uo.define(),i=e1.define({create:()=>[],update(r,s){if(r.length&&(e.hideOnChange&&(s.docChanged||s.selection)?r=[]:e.hideOn&&(r=r.filter(a=>!e.hideOn(s,a))),s.docChanged)){let a=[];for(let u of r){let d=s.changes.mapPos(u.pos,-1,q2.TrackDel);if(null!=d){let m=Object.assign(Object.create(null),u);m.pos=d,null!=m.end&&(m.end=s.changes.mapPos(m.end)),a.push(m)}}r=a}for(let a of s.effects)a.is(n)&&(r=a.value),a.is(eAe)&&(r=[]);return r},provide:r=>F_.from(r)});return[i,Vc.define(r=>new YVe(r,t,i,n,e.hoverTime||300)),KVe]}function zY(t,e){let n=t.plugin(yS);if(!n)return null;let i=n.manager.tooltips.indexOf(e);return i<0?null:n.manager.tooltipViews[i]}const eAe=Uo.define(),XO=sr.define({combine(t){let e,n;for(let i of t)e=e||i.topContainer,n=n||i.bottomContainer;return{topContainer:e,bottomContainer:n}}});function B_(t,e){let n=t.plugin(RY),i=n?n.specs.indexOf(e):-1;return i>-1?n.panels[i]:null}const RY=Vc.fromClass(class{constructor(t){this.input=t.state.facet($_),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(XO);this.top=new MS(t,!0,e.topContainer),this.bottom=new MS(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(XO);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new MS(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new MS(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet($_);if(n!=this.input){let i=n.filter(d=>d),r=[],s=[],a=[],u=[];for(let d of i){let _,m=this.specs.indexOf(d);m<0?(_=d(t.view),u.push(_)):(_=this.panels[m],_.update&&_.update(t)),r.push(_),(_.top?s:a).push(_)}this.specs=i,this.panels=r,this.top.sync(s),this.bottom.sync(a);for(let d of u)d.dom.classList.add("cm-panel"),d.mount&&d.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>ps.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class MS{constructor(e,n,i){this.view=e,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=NY(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=NY(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function NY(t){let e=t.nextSibling;return t.remove(),e}const $_=sr.define({enables:RY});class g3 extends Dp{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}g3.prototype.elementClass="",g3.prototype.toDOM=void 0,g3.prototype.mapMode=q2.TrackBefore,g3.prototype.startSide=g3.prototype.endSide=-1,g3.prototype.point=!0;const SS=sr.define(),tAe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Qc.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},U_=sr.define();function PY(t){return[jY(),U_.of(Object.assign(Object.assign({},tAe),t))]}const KO=sr.define({combine:t=>t.some(e=>e)});function jY(t){let e=[nAe];return t&&!1===t.fixed&&e.push(KO.of(!0)),e}const nAe=Vc.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(U_).map(e=>new BY(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(KO),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,i=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(i<.8*(n.to-n.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(KO)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=Qc.iter(this.view.state.facet(SS),this.view.viewport.from),i=[],r=this.gutters.map(s=>new iAe(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(s.type)){let a=!0;for(let u of s.type)if(u.type==X2.Text&&a){YO(n,i,u.from);for(let d of r)d.line(this.view,u,i);a=!1}else if(u.widget)for(let d of r)d.widget(this.view,u)}else if(s.type==X2.Text){YO(n,i,s.from);for(let a of r)a.line(this.view,s,i)}else if(s.widget)for(let a of r)a.widget(this.view,s);for(let s of r)s.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(U_),n=t.state.facet(U_),i=t.docChanged||t.heightChanged||t.viewportChanged||!Qc.eq(t.startState.facet(SS),t.state.facet(SS),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let r of this.gutters)r.update(t)&&(i=!0);else{i=!0;let r=[];for(let s of n){let a=e.indexOf(s);a<0?r.push(new BY(this.view,s)):(this.gutters[a].update(t),r.push(this.gutters[a]))}for(let s of this.gutters)s.dom.remove(),r.indexOf(s)<0&&s.destroy();for(let s of r)this.dom.appendChild(s.dom);this.gutters=r}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>ps.scrollMargins.of(e=>{let n=e.plugin(t);return n&&0!=n.gutters.length&&n.fixed?e.textDirection==bc.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}:null})});function FY(t){return Array.isArray(t)?t:[t]}function YO(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class iAe{constructor(e,n,i){this.gutter=e,this.height=i,this.i=0,this.cursor=Qc.iter(e.markers,n.from)}addElement(e,n,i){let{gutter:r}=this,s=(n.top-this.height)/e.scaleY,a=n.height/e.scaleY;if(this.i==r.elements.length){let u=new $Y(e,a,s,i);r.elements.push(u),r.dom.appendChild(u.dom)}else r.elements[this.i].update(e,a,s,i);this.height=n.bottom,this.i++}line(e,n,i){let r=[];YO(this.cursor,r,n.from),i.length&&(r=r.concat(i));let s=this.gutter.config.lineMarker(e,n,r);s&&r.unshift(s),0==r.length&&!this.gutter.config.renderEmptyElements||this.addElement(e,n,r)}widget(e,n){let i=this.gutter.config.widgetMarker(e,n.widget,n);i&&this.addElement(e,n,[i])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class BY{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in n.domEventHandlers)this.dom.addEventListener(i,r=>{let a,s=r.target;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let d=s.getBoundingClientRect();a=(d.top+d.bottom)/2}else a=r.clientY;let u=e.lineBlockAtHeight(a-e.documentTop);n.domEventHandlers[i](e,u,r)&&r.preventDefault()});this.markers=FY(n.markers(e)),n.initialSpacer&&(this.spacer=new $Y(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=FY(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let i=e.view.viewport;return!Qc.eq(this.markers,n,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class $Y{constructor(e,n,i,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,i,r)}update(e,n,i,r){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function rAe(t,e){if(t.length!=e.length)return!1;for(let n=0;nTd(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let i=Object.assign({},e);for(let r in n){let s=i[r],a=n[r];i[r]=s?(u,d,m)=>s(u,d,m)||a(u,d,m):a}return i}})});class QO extends g3{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function JO(t,e){return t.state.facet(z5).formatNumber(e,t.state)}const oAe=U_.compute([z5],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(sAe),lineMarker:(e,n,i)=>i.some(r=>r.toDOM)?null:new QO(JO(e,e.state.doc.lineAt(n.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(z5)!=e.state.facet(z5),initialSpacer:e=>new QO(JO(e,UY(e.state.doc.lines))),updateSpacer(e,n){let i=JO(n.view,UY(n.view.state.doc.lines));return i==e.number?e:new QO(i)},domEventHandlers:t.facet(z5).domEventHandlers}));function aAe(t={}){return[z5.of(t),jY(),oAe]}function UY(t){let e=9;for(;e{let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.head).from;r>n&&(n=r,e.push(cAe.range(r)))}return Qc.of(e)}),qY=1024;let pAe=0;class Ad{constructor(e,n){this.from=e,this.to=n}}class ro{constructor(e={}){this.id=pAe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=p2.match(e)),n=>{let i=e(n);return void 0===i?null:[this,i]}}}ro.closedBy=new ro({deserialize:t=>t.split(" ")}),ro.openedBy=new ro({deserialize:t=>t.split(" ")}),ro.group=new ro({deserialize:t=>t.split(" ")}),ro.isolate=new ro({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),ro.contextHash=new ro({perNode:!0}),ro.lookAhead=new ro({perNode:!0}),ro.mounted=new ro({perNode:!0});class G_{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[ro.mounted.id]}}const mAe=Object.create(null);class p2{constructor(e,n,i,r=0){this.name=e,this.props=n,this.id=i,this.flags=r}static define(e){let n=e.props&&e.props.length?Object.create(null):mAe,r=new p2(e.name||"",n,e.id,(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0));if(e.props)for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let n=this.prop(ro.group);return!!n&&n.indexOf(e)>-1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let r of i.split(" "))n[r]=e[i];return i=>{for(let r=i.prop(ro.group),s=-1;s<(r?r.length:0);s++){let a=n[s<0?i.name:r[s]];if(a)return a}}}}p2.none=new p2("",Object.create(null),0,8);class kS{constructor(e){this.types=e;for(let n=0;n=e){let u=new m2(a.tree,a.overlay[0].from+s.from,-1,s);(r||(r=[i])).push(W_(u,e,n,!1))}}return r?JY(r):i}(this,e,n)}iterate(e){let{enter:n,leave:i,from:r=0,to:s=this.length}=e,a=e.mode||0,u=(a&ll.IncludeAnonymous)>0;for(let d=this.cursor(a|ll.IncludeAnonymous);;){let m=!1;if(d.from<=s&&d.to>=r&&(!u&&d.type.isAnonymous||!1!==n(d))){if(d.firstChild())continue;m=!0}for(;m&&i&&(u||!d.type.isAnonymous)&&i(d),!d.nextSibling();){if(!d.parent())return;m=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:nH(p2.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,r)=>new Ga(this.type,n,i,r,this.propValues),e.makeTree||((n,i,r)=>new Ga(p2.none,n,i,r)))}static build(e){return function bAe(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=qY,reused:s=[],minRepeatType:a=i.types.length}=t,u=Array.isArray(n)?new ZO(n,n.length):n,d=i.types,m=0,_=0;function y(ye,Ke,lt,Vt,Nt,kt){let{id:qt,start:wt,end:Dt,size:ut}=u,Ut=_;for(;ut<0;){if(u.next(),-1==ut)return lt.push(s[qt]),void Vt.push(wt-ye);if(-3==ut)return void(m=qt);if(-4==ut)return void(_=qt);throw new RangeError(`Unrecognized record size: ${ut}`)}let Lt,et,$t=d[qt],st=wt-ye;if(Dt-wt<=r&&(et=function $(ye,Ke){let lt=u.fork(),Vt=0,Nt=0,kt=0,qt=lt.end-r,wt={size:0,start:0,skip:0};e:for(let Dt=lt.pos-ye;lt.pos>Dt;){let ut=lt.size;if(lt.id==Ke&&ut>=0){wt.size=Vt,wt.start=Nt,wt.skip=kt,kt+=4,Vt+=4,lt.next();continue}let Ut=lt.pos-ut;if(ut<0||Ut=a?4:0,Lt=lt.start;for(lt.next();lt.pos>Ut;){if(lt.size<0){if(-3!=lt.size)break e;$t+=4}else lt.id>=a&&($t+=4);lt.next()}Nt=Lt,Vt+=ut,kt+=$t}return(Ke<0||Vt==ye)&&(wt.size=Vt,wt.start=Nt,wt.skip=kt),wt.size>4?wt:void 0}(u.pos-Ke,Nt))){let gt=new Uint16Array(et.size-et.skip),sn=u.pos-et.size,Hn=gt.length;for(;u.pos>sn;)Hn=W(et.start,gt,Hn);Lt=new Dh(gt,Dt-et.start,i),st=et.start-ye}else{let gt=u.pos-ut;u.next();let sn=[],Hn=[],on=qt>=a?qt:-1,Xt=0,An=Dt;for(;u.pos>gt;)on>=0&&u.id==on&&u.size>=0?(u.end<=An-r&&(D(sn,Hn,wt,Xt,u.end,An,on,Ut),Xt=sn.length,An=u.end),u.next()):kt>2500?x(wt,gt,sn,Hn):y(wt,gt,sn,Hn,on,kt+1);if(on>=0&&Xt>0&&Xt-1&&Xt>0){let _n=function S(ye){return(Ke,lt,Vt)=>{let qt,wt,Nt=0,kt=Ke.length-1;if(kt>=0&&(qt=Ke[kt])instanceof Ga){if(!kt&&qt.type==ye&&qt.length==Vt)return qt;(wt=qt.prop(ro.lookAhead))&&(Nt=lt[kt]+qt.length+wt)}return z(ye,Ke,lt,Vt,Nt)}}($t);Lt=nH($t,sn,Hn,0,sn.length,0,Dt-wt,_n,_n)}else Lt=z($t,sn,Hn,Dt-wt,Ut-Dt)}lt.push(Lt),Vt.push(st)}function x(ye,Ke,lt,Vt){let Nt=[],kt=0,qt=-1;for(;u.pos>Ke;){let{id:wt,start:Dt,end:ut,size:Ut}=u;if(Ut>4)u.next();else{if(qt>-1&&Dt=0;ut-=3)wt[Ut++]=Nt[ut],wt[Ut++]=Nt[ut+1]-Dt,wt[Ut++]=Nt[ut+2]-Dt,wt[Ut++]=Ut;lt.push(new Dh(wt,Nt[2]-Dt,i)),Vt.push(Dt-ye)}}function D(ye,Ke,lt,Vt,Nt,kt,qt,wt){let Dt=[],ut=[];for(;ye.length>Vt;)Dt.push(ye.pop()),ut.push(Ke.pop()+lt-Nt);ye.push(z(i.types[qt],Dt,ut,kt-Nt,wt-kt)),Ke.push(Nt-lt)}function z(ye,Ke,lt,Vt,Nt=0,kt){if(m){let qt=[ro.contextHash,m];kt=kt?[qt].concat(kt):[qt]}if(Nt>25){let qt=[ro.lookAhead,Nt];kt=kt?[qt].concat(kt):[qt]}return new Ga(ye,Ke,lt,Vt,kt)}function W(ye,Ke,lt){let{id:Vt,start:Nt,end:kt,size:qt}=u;if(u.next(),qt>=0&&Vt4){let Dt=u.pos-(qt-4);for(;u.pos>Dt;)lt=W(ye,Ke,lt)}Ke[--lt]=wt,Ke[--lt]=kt-ye,Ke[--lt]=Nt-ye,Ke[--lt]=Vt}else-3==qt?m=Vt:-4==qt&&(_=Vt);return lt}let re=[],se=[];for(;u.pos>0;)y(t.start||0,t.bufferStart||0,re,se,-1,0);let ke=null!==(e=t.length)&&void 0!==e?e:re.length?se[0]+re[0].length:0;return new Ga(d[t.topID],re.reverse(),se.reverse(),ke)}(e)}}Ga.empty=new Ga(p2.none,[],[],0);class ZO{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new ZO(this.buffer,this.index)}}class Dh{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return p2.none}toString(){let e=[];for(let n=0;n0));d=a[d+3]);return u}slice(e,n,i){let r=this.buffer,s=new Uint16Array(n-e),a=0;for(let u=e,d=0;u=e&&ne;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function W_(t,e,n,i){for(var r;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?u.length:-1;e!=m;e+=n){let _=u[e],y=d[e]+a.from;if(KY(r,i,y,y+_.length))if(_ instanceof Dh){if(s&ll.ExcludeBuffers)continue;let x=_.findChild(0,_.buffer.length,n,i-y,r);if(x>-1)return new v3(new gAe(a,_,e,y),null,x)}else if(s&ll.IncludeAnonymous||!_.type.isAnonymous||tH(_)){let x;if(!(s&ll.IgnoreMounts)&&(x=G_.get(_))&&!x.overlay)return new m2(x.tree,y,e,a);let S=new m2(_,y,e,a);return s&ll.IncludeAnonymous||!S.type.isAnonymous?S:S.nextChild(n<0?_.children.length-1:0,n,i,r)}}if(s&ll.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+n:n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,i=0){let r;if(!(i&ll.IgnoreOverlays)&&(r=G_.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:a,to:u}of r.overlay)if((n>0?a<=s:a=s:u>s))return new m2(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function QY(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(null!=n)for(let a=!1;!a;)if(a=r.type.is(n),!r.nextSibling())return s;for(;;){if(null!=i&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return null==i?s:[]}}function eH(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class gAe{constructor(e,n,i,r){this.parent=e,this.buffer=n,this.index=i,this.start=r}}class v3 extends YY{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.context.start,i);return s<0?null:new v3(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,i=0){if(i&ll.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new v3(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new v3(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new v3(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,r=this.index+4,s=i.buffer[this.index+3];return s>r&&(e.push(i.slice(r,s,i.buffer[this.index+1])),n.push(0)),new Ga(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function JY(t){if(!t.length)return null;let e=0,n=t[0];for(let s=1;sn.from||a.to0){if(this.index-1)for(let s=n+e,a=e<0?-1:i._tree.children.length;s!=a;s+=e){let u=i._tree.children[s];if(this.mode&ll.IncludeAnonymous||u instanceof Dh||!u.type.isAnonymous||tH(u))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;n=a,i=s+1;break e}r=this.stack[--s]}for(let r=i;r=0;s--){if(s<0)return eH(this.node,e,r);let a=i[n.buffer[this.stack[s]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}}function tH(t){return t.children.some(e=>e instanceof Dh||!e.type.isAnonymous||tH(e))}const ZY=new WeakMap;function TS(t,e){if(!t.isAnonymous||e instanceof Dh||e.type!=t)return 1;let n=ZY.get(e);if(null==n){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Ga)){n=1;break}n+=TS(t,i)}ZY.set(e,n)}return n}function nH(t,e,n,i,r,s,a,u,d){let m=0;for(let D=i;D=_)break;Ke+=lt}if(se==ke+1){if(Ke>_){let lt=D[ke];S(lt.children,lt.positions,0,lt.children.length,z[ke]+re);continue}y.push(D[ke])}else y.push(nH(t,D,z,ke,se,ye,z[se-1]+D[se-1].length-ye,null,d));x.push(ye+re-s)}}(e,n,i,r,0),(u||d)(y,x,a)}class x0{constructor(e,n,i,r,s=!1,a=!1){this.from=e,this.to=n,this.tree=i,this.offset=r,this.open=(s?1:0)|(a?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,n=[],i=!1){let r=[new x0(0,e.length,e,0,!1,i)];for(let s of n)s.to>e.length&&r.push(s);return r}static applyChanges(e,n,i=128){if(!n.length)return e;let r=[],s=1,a=e.length?e[0]:null;for(let u=0,d=0,m=0;;u++){let _=u=i)for(;a&&a.from=x.from||y<=x.to||m){let S=Math.max(x.from,d)-m,D=Math.min(x.to,y)-m;x=S>=D?null:new x0(S,D,x.tree,x.offset+m,u>0,!!_)}if(x&&r.push(x),a.to>y)break;a=snew Ad(r.from,r.to)):[new Ad(0,0)]:[new Ad(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let r=this.startParse(e,n,i);for(;;){let s=r.advance();if(s)return s}}}class yAe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new ro({perNode:!0});let EAe=0;class _3{constructor(e,n,i){this.set=e,this.base=n,this.modified=i,this.id=EAe++}static define(e){if(e?.base)throw new Error("Can not derive from a modified tag");let n=new _3([],null,[]);if(n.set.push(n),e)for(let i of e.set)n.set.push(i);return n}static defineModifier(){let e=new VS;return n=>n.modified.indexOf(e)>-1?n:VS.get(n.base||n,n.modified.concat(e).sort((i,r)=>i.id-r.id))}}let DAe=0;class VS{constructor(){this.instances=[],this.id=DAe++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(u=>u.base==e&&function TAe(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}(n,u.modified));if(i)return i;let r=[],s=new _3(r,e,n);for(let u of n)u.instances.push(s);let a=function VAe(t){let e=[[]];for(let n=0;ni.length-n.length)}(n);for(let u of e.set)if(!u.modified.length)for(let d of a)r.push(VS.get(u,d));return s}}function oQ(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let r of n.split(" "))if(r){let s=[],a=2,u=r;for(let y=0;;){if("..."==u&&y>0&&y+3==r.length){a=1;break}let x=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(u);if(!x)throw new RangeError("Invalid path: "+r);if(s.push("*"==x[0]?"":'"'==x[0][0]?JSON.parse(x[0]):x[0]),y+=x[0].length,y==r.length)break;let S=r[y++];if(y==r.length&&"!"==S){a=0;break}if("/"!=S)throw new RangeError("Invalid path: "+r);u=r.slice(y)}let d=s.length-1,m=s[d];if(!m)throw new RangeError("Invalid path: "+r);let _=new AS(i,a,d>0?s.slice(0,d):null);e[m]=_.sort(e[m])}}return aQ.add(e)}const aQ=new ro;class AS{constructor(e,n,i,r){this.tags=e,this.mode=n,this.context=i,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let a=r;for(let u of s)for(let d of u.set){let m=n[d.id];if(m){a=a?a+" "+m:m;break}}return a},scope:i}}function lQ(t,e,n,i=0,r=t.length){let s=new IAe(i,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),i,r,"",s.highlighters),s.flush(r)}AS.empty=new AS([],2,null);class IAe{constructor(e,n,i){this.at=e,this.highlighters=n,this.span=i,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,i,r,s){let{type:a,from:u,to:d}=e;if(u>=i||d<=n)return;a.isTop&&(s=this.highlighters.filter(S=>!S.scope||S.scope(a)));let m=r,_=function OAe(t){let e=t.type.prop(aQ);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(e)||AS.empty,y=function AAe(t,e){let n=null;for(let i of t){let r=i.style(e);r&&(n=n?n+" "+r:r)}return n}(s,_.tags);if(y&&(m&&(m+=" "),m+=y,1==_.mode&&(r+=(r?" ":"")+y)),this.startSpan(Math.max(n,u),m),_.opaque)return;let x=e.tree&&e.tree.prop(ro.mounted);if(x&&x.overlay){let S=e.node.enter(x.overlay[0].from+u,1),D=this.highlighters.filter($=>!$.scope||$.scope(x.tree.type)),z=e.firstChild();for(let $=0,W=u;;$++){let re=$=se)&&e.nextSibling()););if(!re||se>i)break;W=re.to+u,W>n&&(this.highlightRange(S.cursor(),Math.max(n,re.from+u),Math.min(i,W),"",D),this.startSpan(Math.min(i,W),m))}z&&e.parent()}else if(e.firstChild()){x&&(r="");do{if(!(e.to<=n)){if(e.from>=i)break;this.highlightRange(e,n,i,r,s),this.startSpan(Math.min(i,e.to),m)}}while(e.nextSibling());e.parent()}}}const Gi=_3.define,IS=Gi(),Th=Gi(),uQ=Gi(Th),dQ=Gi(Th),Vh=Gi(),OS=Gi(Vh),sH=Gi(Vh),b3=Gi(),Ip=Gi(b3),y3=Gi(),C3=Gi(),oH=Gi(),q_=Gi(oH),HS=Gi(),Pi={comment:IS,lineComment:Gi(IS),blockComment:Gi(IS),docComment:Gi(IS),name:Th,variableName:Gi(Th),typeName:uQ,tagName:Gi(uQ),propertyName:dQ,attributeName:Gi(dQ),className:Gi(Th),labelName:Gi(Th),namespace:Gi(Th),macroName:Gi(Th),literal:Vh,string:OS,docString:Gi(OS),character:Gi(OS),attributeValue:Gi(OS),number:sH,integer:Gi(sH),float:Gi(sH),bool:Gi(Vh),regexp:Gi(Vh),escape:Gi(Vh),color:Gi(Vh),url:Gi(Vh),keyword:y3,self:Gi(y3),null:Gi(y3),atom:Gi(y3),unit:Gi(y3),modifier:Gi(y3),operatorKeyword:Gi(y3),controlKeyword:Gi(y3),definitionKeyword:Gi(y3),moduleKeyword:Gi(y3),operator:C3,derefOperator:Gi(C3),arithmeticOperator:Gi(C3),logicOperator:Gi(C3),bitwiseOperator:Gi(C3),compareOperator:Gi(C3),updateOperator:Gi(C3),definitionOperator:Gi(C3),typeOperator:Gi(C3),controlOperator:Gi(C3),punctuation:oH,separator:Gi(oH),bracket:q_,angleBracket:Gi(q_),squareBracket:Gi(q_),paren:Gi(q_),brace:Gi(q_),content:b3,heading:Ip,heading1:Gi(Ip),heading2:Gi(Ip),heading3:Gi(Ip),heading4:Gi(Ip),heading5:Gi(Ip),heading6:Gi(Ip),contentSeparator:Gi(b3),list:Gi(b3),quote:Gi(b3),emphasis:Gi(b3),strong:Gi(b3),link:Gi(b3),monospace:Gi(b3),strikethrough:Gi(b3),inserted:Gi(),deleted:Gi(),changed:Gi(),invalid:Gi(),meta:HS,documentMeta:Gi(HS),annotation:Gi(HS),processingInstruction:Gi(HS),definition:_3.defineModifier(),constant:_3.defineModifier(),function:_3.defineModifier(),standard:_3.defineModifier(),local:_3.defineModifier(),special:_3.defineModifier()};var aH;cQ([{tag:Pi.link,class:"tok-link"},{tag:Pi.heading,class:"tok-heading"},{tag:Pi.emphasis,class:"tok-emphasis"},{tag:Pi.strong,class:"tok-strong"},{tag:Pi.keyword,class:"tok-keyword"},{tag:Pi.atom,class:"tok-atom"},{tag:Pi.bool,class:"tok-bool"},{tag:Pi.url,class:"tok-url"},{tag:Pi.labelName,class:"tok-labelName"},{tag:Pi.inserted,class:"tok-inserted"},{tag:Pi.deleted,class:"tok-deleted"},{tag:Pi.literal,class:"tok-literal"},{tag:Pi.string,class:"tok-string"},{tag:Pi.number,class:"tok-number"},{tag:[Pi.regexp,Pi.escape,Pi.special(Pi.string)],class:"tok-string2"},{tag:Pi.variableName,class:"tok-variableName"},{tag:Pi.local(Pi.variableName),class:"tok-variableName tok-local"},{tag:Pi.definition(Pi.variableName),class:"tok-variableName tok-definition"},{tag:Pi.special(Pi.variableName),class:"tok-variableName2"},{tag:Pi.definition(Pi.propertyName),class:"tok-propertyName tok-definition"},{tag:Pi.typeName,class:"tok-typeName"},{tag:Pi.namespace,class:"tok-namespace"},{tag:Pi.className,class:"tok-className"},{tag:Pi.macroName,class:"tok-macroName"},{tag:Pi.propertyName,class:"tok-propertyName"},{tag:Pi.operator,class:"tok-operator"},{tag:Pi.comment,class:"tok-comment"},{tag:Pi.meta,class:"tok-meta"},{tag:Pi.invalid,class:"tok-invalid"},{tag:Pi.punctuation,class:"tok-punctuation"}]);const Op=new ro;const HAe=new ro;let Xu=(()=>{class t{constructor(n,i,r=[],s=""){this.data=n,this.name=s,W1.prototype.hasOwnProperty("tree")||Object.defineProperty(W1.prototype,"tree",{get(){return t1(this)}}),this.parser=i,this.extension=[Ah.of(this),W1.languageData.of((a,u,d)=>{let m=hQ(a,u,d),_=m.type.prop(Op);if(!_)return[];let y=a.facet(_),x=m.type.prop(HAe);if(x){let S=m.resolve(u-m.from,d);for(let D of x)if(D.test(S,a)){let z=a.facet(D.facet);return"replace"==D.type?z:z.concat(y)}}return y})].concat(r)}isActiveAt(n,i,r=-1){return hQ(n,i,r).type.prop(Op)==this.data}findRegions(n){let i=n.facet(Ah);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];let r=[],s=(a,u)=>{if(a.prop(Op)==this.data)return void r.push({from:u,to:u+a.length});let d=a.prop(ro.mounted);if(d){if(d.tree.prop(Op)==this.data){if(d.overlay)for(let m of d.overlay)r.push({from:m.from+u,to:m.to+u});else r.push({from:u,to:u+a.length});return}if(d.overlay){let m=r.length;if(s(d.tree,d.overlay[0].from+u),r.length>m)return}}for(let m=0;me.concat(t):void 0})}(e.languageData);return new LS(n,e.parser.configure({props:[Op.add(i=>i.isTop?n:void 0)]}),e.name)}configure(e,n){return new LS(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function t1(t){let e=t.field(Xu.state,!1);return e?e.tree:Ga.empty}class zAe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-i,n-i)}}let X_=null;class R5{constructor(e,n,i=[],r,s,a,u,d){this.parser=e,this.state=n,this.fragments=i,this.tree=r,this.treeLen=s,this.viewport=a,this.skipped=u,this.scheduleOn=d,this.parse=null,this.tempSkipped=[]}static create(e,n,i){return new R5(e,n,[],Ga.empty,0,i,[],null)}startParse(){return this.parser.startParse(new zAe(this.state.doc),this.fragments)}work(e,n){return null!=n&&n>=this.state.doc.length&&(n=void 0),this.tree!=Ga.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if("number"==typeof e){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),null!=n&&(null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&n=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(x0.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=X_;X_=this;try{return e()}finally{X_=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=pQ(e,n.from,n.to);return e}changes(e,n){let{fragments:i,tree:r,treeLen:s,viewport:a,skipped:u}=this;if(this.takeTree(),!e.empty){let d=[];if(e.iterChangedRanges((m,_,y,x)=>d.push({fromA:m,toA:_,fromB:y,toB:x})),i=x0.applyChanges(i,d),r=Ga.empty,s=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){u=[];for(let m of this.skipped){let _=e.mapPos(m.from,1),y=e.mapPos(m.to,-1);_e.from&&(this.fragments=pQ(this.fragments,r,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=n||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends iH{createParse(n,i,r){let s=r[0].from,a=r[r.length-1].to;return{parsedPos:s,advance(){let d=X_;if(d){for(let m of r)d.tempSkipped.push(m);e&&(d.scheduleOn=d.scheduleOn?Promise.all([d.scheduleOn,e]):e)}return this.parsedPos=a,new Ga(p2.none,[],[],a-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&0==n[0].from&&n[0].to>=e}static get(){return X_}}function pQ(t,e,n){return x0.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class N5{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,i)||n.takeTree(),new N5(n)}static init(e){let n=Math.min(3e3,e.doc.length),i=R5.create(e.facet(Ah).parser,e,{from:0,to:n});return i.work(20,n)||i.takeTree(),new N5(i)}}Xu.state=e1.define({create:N5.init,update(t,e){for(let n of e.effects)if(n.is(Xu.setState))return n.value;return e.startState.facet(Ah)!=e.state.facet(Ah)?N5.init(e.state):t.apply(e)}});let mQ=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(mQ=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const cH=typeof navigator<"u"&&null!==(aH=navigator.scheduling)&&void 0!==aH&&aH.isInputPending?()=>navigator.scheduling.isInputPending():null,gQ=Vc.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Xu.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Xu.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=mQ(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEndr+1e3,d=s.context.work(()=>cH&&cH()||Date.now()>a,r+(u?0:1e5));this.chunkBudget-=Date.now()-n,(d||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Xu.setState.of(new N5(s.context))})),this.chunkBudget>0&&!(d&&!u)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>K2(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ah=sr.define({combine:t=>t.length?t[0]:null,enables:t=>[Xu.state,gQ,ps.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class RAe{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const _Q=sr.define(),zS=sr.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function b4(t){let e=t.facet(zS);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function P5(t,e){let n="",i=t.tabSize,r=t.facet(zS)[0];if("\t"==r){for(;e>=i;)n+="\t",e-=i;r=" "}for(let s=0;s=e?function NAe(t,e,n){let i=e.resolveStack(n),r=i.node.enterUnfinishedNodesBefore(n);if(r!=i.node){let s=[];for(let a=r;a!=i.node;a=a.parent)s.push(a);for(let a=s.length-1;a>=0;a--)i={node:s[a],next:i}}return yQ(i,t,n)}(t,n,e):null}class K_{constructor(e,n={}){this.state=e,this.options=n,this.unit=b4(e)}lineAt(e,n=1){let i=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return null!=r&&r>=i.from&&r<=i.to?s&&r==e?{text:"",from:e}:(n<0?r-1&&(s+=a-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,n=e.length){return T5(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:i,from:r}=this.lineAt(e,n),s=this.options.overrideIndentation;if(s){let a=s(r);if(a>-1)return a}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const bQ=new ro;function yQ(t,e,n){for(let i=t;i;i=i.next){let r=jAe(i.node);if(r)return r(lH.create(e,n,i))}return 0}function jAe(t){let e=t.type.prop(bQ);if(e)return e;let i,n=t.firstChild;if(n&&(i=n.type.prop(ro.closedBy))){let r=t.lastChild,s=r&&i.indexOf(r.name)>-1;return a=>function CQ(t,e,n,i,r){let s=t.textAfter,a=s.match(/^\s*/)[0].length,u=i&&s.slice(a,a+i.length)==i||r==t.pos+a,d=e?function $Ae(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),a=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let u=n.to;;){let d=e.childAfter(u);if(!d||d==i)return null;if(!d.type.isSkipped)return d.from{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}const WAe=sr.define(),wQ=new ro;function KAe(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function Y_(t,e,n){for(let i of t.facet(WAe)){let r=i(t,e,n);if(r)return r}return function XAe(t,e,n){let i=t1(t);if(i.lengthn)continue;if(s&&u.from=e&&m.to>n&&(s=m)}}return s}(t,e,n)}function MQ(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}const Q_=Uo.define({map:MQ}),j5=Uo.define({map:MQ});function uH(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(i=>i.from<=n&&i.to>=n)||e.push(t.lineBlockAt(n));return e}const Ih=e1.define({create:()=>Rr.none,update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(Q_)&&!YAe(t,n.value.from,n.value.to)){let{preparePlaceholder:i}=e.state.facet(fH),r=i?Rr.replace({widget:new rIe(i(e.state,n.value))}):EQ;t=t.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(j5)&&(t=t.update({filter:(i,r)=>n.value.from!=i||n.value.to!=r,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:i}=e.selection.main;t.between(i,i,(r,s)=>{ri&&(n=!0)}),n&&(t=t.update({filterFrom:i,filterTo:i,filter:(r,s)=>s<=i||r>=i}))}return t},provide:t=>ps.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(i,r)=>{n.push(i,r)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!r||r.from>s)&&(r={from:s,to:a})}),r}function YAe(t,e,n){let i=!1;return t.between(e,e,(r,s)=>{r==e&&s==n&&(i=!0)}),i}function dH(t,e){return t.field(Ih,!1)?e:e.concat(Uo.appendConfig.of(SQ()))}function NS(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return ps.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${r}.`)}const nIe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of uH(t)){let n=Y_(t.state,e.from,e.to);if(n)return t.dispatch({effects:dH(t.state,[Q_.of(n),NS(t,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(Ih,!1))return!1;let e=[];for(let n of uH(t)){let i=J_(t.state,n.from,n.to);i&&e.push(j5.of(i),NS(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let i=0;i{let e=t.state.field(Ih,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(i,r)=>{n.push(j5.of({from:i,to:r}))}),t.dispatch({effects:n}),!0}}],iIe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},fH=sr.define({combine:t=>Td(t,iIe)});function SQ(t){let e=[Ih,aIe];return t&&e.push(fH.of(t)),e}function kQ(t,e){let{state:n}=t,i=n.facet(fH),r=a=>{let u=t.lineBlockAt(t.posAtDOM(a.target)),d=J_(t.state,u.from,u.to);d&&t.dispatch({effects:j5.of(d)}),a.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,r,e);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}const EQ=Rr.replace({widget:new class extends h3{toDOM(t){return kQ(t,null)}}});class rIe extends h3{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return kQ(e,this.value)}}const sIe={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class hH extends g3{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function oIe(t={}){let e=Object.assign(Object.assign({},sIe),t),n=new hH(e,!0),i=new hH(e,!1),r=Vc.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(Ah)!=a.state.facet(Ah)||a.startState.field(Ih,!1)!=a.state.field(Ih,!1)||t1(a.startState)!=t1(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let u=new g4;for(let d of a.viewportLineBlocks){let m=J_(a.state,d.from,d.to)?i:Y_(a.state,d.from,d.to)?n:null;m&&u.add(d.from,d.from,m)}return u.finish()}}),{domEventHandlers:s}=e;return[r,PY({class:"cm-foldGutter",markers(a){var u;return(null===(u=a.plugin(r))||void 0===u?void 0:u.markers)||Qc.empty},initialSpacer:()=>new hH(e,!1),domEventHandlers:Object.assign(Object.assign({},s),{click:(a,u,d)=>{if(s.click&&s.click(a,u,d))return!0;let m=J_(a.state,u.from,u.to);if(m)return a.dispatch({effects:j5.of(m)}),!0;let _=Y_(a.state,u.from,u.to);return!!_&&(a.dispatch({effects:Q_.of(_)}),!0)}})}),SQ()]}const aIe=ps.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Z_{constructor(e,n){let i;function r(u){let d=Ch.newName();return(i||(i=Object.create(null)))["."+d]=u,d}this.specs=e;const s="string"==typeof n.all?n.all:n.all?r(n.all):void 0,a=n.scope;this.scope=a instanceof Xu?u=>u.prop(Op)==a.data:a?u=>u==a:void 0,this.style=cQ(e.map(u=>({tag:u.tag,class:u.class||r(Object.assign({},u,{tag:null}))})),{all:s}).style,this.module=i?new Ch(i):null,this.themeType=n.themeType}static define(e,n){return new Z_(e,n||{})}}const pH=sr.define(),DQ=sr.define({combine:t=>t.length?[t[0]]:null});function PS(t){let e=t.facet(pH);return e.length?e:t.facet(DQ)}function TQ(t,e){let i,n=[lIe];return t instanceof Z_&&(t.module&&n.push(ps.styleModule.of(t.module)),i=t.themeType),n.push(e?.fallback?DQ.of(t):i?pH.computeN([ps.darkTheme],r=>r.facet(ps.darkTheme)==("dark"==i)?[t]:[]):pH.of(t)),n}class cIe{constructor(e){this.markCache=Object.create(null),this.tree=t1(e.state),this.decorations=this.buildDeco(e,PS(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=t1(e.state),i=PS(e.state),r=i!=PS(e.startState),{viewport:s}=e.view,a=e.changes.mapPos(this.decoratedTo,1);n.length=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(n!=this.tree||e.viewportChanged||r)&&(this.tree=n,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=s.to)}buildDeco(e,n){if(!n||!this.tree.length)return Rr.none;let i=new g4;for(let{from:r,to:s}of e.visibleRanges)lQ(this.tree,n,(a,u,d)=>{i.add(a,u,this.markCache[d]||(this.markCache[d]=Rr.mark({class:d})))},r,s);return i.finish()}}const lIe=v0.high(Vc.fromClass(cIe,{decorations:t=>t.decorations})),uIe=Z_.define([{tag:Pi.meta,color:"#404740"},{tag:Pi.link,textDecoration:"underline"},{tag:Pi.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Pi.emphasis,fontStyle:"italic"},{tag:Pi.strong,fontWeight:"bold"},{tag:Pi.strikethrough,textDecoration:"line-through"},{tag:Pi.keyword,color:"#708"},{tag:[Pi.atom,Pi.bool,Pi.url,Pi.contentSeparator,Pi.labelName],color:"#219"},{tag:[Pi.literal,Pi.inserted],color:"#164"},{tag:[Pi.string,Pi.deleted],color:"#a11"},{tag:[Pi.regexp,Pi.escape,Pi.special(Pi.string)],color:"#e40"},{tag:Pi.definition(Pi.variableName),color:"#00f"},{tag:Pi.local(Pi.variableName),color:"#30a"},{tag:[Pi.typeName,Pi.namespace],color:"#085"},{tag:Pi.className,color:"#167"},{tag:[Pi.special(Pi.variableName),Pi.macroName],color:"#256"},{tag:Pi.definition(Pi.propertyName),color:"#00c"},{tag:Pi.comment,color:"#940"},{tag:Pi.invalid,color:"#f00"}]),dIe=ps.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),VQ=1e4,AQ="()[]{}",IQ=sr.define({combine:t=>Td(t,{afterCursor:!0,brackets:AQ,maxScanDistance:VQ,renderMatch:pIe})}),fIe=Rr.mark({class:"cm-matchingBracket"}),hIe=Rr.mark({class:"cm-nonmatchingBracket"});function pIe(t){let e=[],n=t.matched?fIe:hIe;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const mIe=[e1.define({create:()=>Rr.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(IQ);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=x3(e.state,r.head,-1,i)||r.head>0&&x3(e.state,r.head-1,1,i)||i.afterCursor&&(x3(e.state,r.head,1,i)||r.headps.decorations.from(t)}),dIe];function gIe(t={}){return[IQ.of(t),mIe]}const vIe=new ro;function mH(t,e,n){let i=t.prop(e<0?ro.openedBy:ro.closedBy);if(i)return i;if(1==t.name.length){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function gH(t){let e=t.type.prop(vIe);return e?e(t.node):t}function x3(t,e,n,i={}){let r=i.maxScanDistance||VQ,s=i.brackets||AQ,a=t1(t),u=a.resolveInner(e,n);for(let d=u;d;d=d.parent){let m=mH(d.type,n,s);if(m&&d.from0?e>=_.from&&e<_.to:e>_.from&&e<=_.to))return _Ie(0,0,n,d,_,m,s)}}return function bIe(t,e,n,i,r,s,a){let u=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),d=a.indexOf(u);if(d<0||d%2==0!=n>0)return null;let m={from:n<0?e-1:e,to:n>0?e+1:e},_=t.doc.iterRange(e,n>0?t.doc.length:0),y=0;for(let x=0;!_.next().done&&x<=s;){let S=_.value;n<0&&(x+=S.length);let D=e+x*n;for(let z=n>0?0:S.length-1,$=n>0?S.length:-1;z!=$;z+=n){let W=a.indexOf(S[z]);if(!(W<0||i.resolveInner(D+z,1).type!=r))if(W%2==0==n>0)y++;else{if(1==y)return{start:m,end:{from:D+z,to:D+z+1},matched:W>>1==d>>1};y--}}n>0&&(x+=S.length)}return _.done?{start:m,matched:!1}:null}(t,e,n,a,u.type,r,s)}function _Ie(t,e,n,i,r,s,a){let u=i.parent,d={from:r.from,to:r.to},m=0,_=u?.cursor();if(_&&(n<0?_.childBefore(i.from):_.childAfter(i.to)))do{if(n<0?_.to<=i.from:_.from>=i.to){if(0==m&&s.indexOf(_.type.name)>-1&&_.from<_.to){let y=gH(_);return{start:d,end:y?{from:y.from,to:y.to}:void 0,matched:!0}}if(mH(_.type,n,a))m++;else if(mH(_.type,-n,a)){if(0==m){let y=gH(_);return{start:d,end:y&&y.from-1||(PQ.push(t),console.warn(e))}function $Q(t,e){let n=[];for(let u of e.split(" ")){let d=[];for(let m of u.split(".")){let _=t[m]||Pi[m];_?"function"==typeof _?d.length?d=d.map(_):bH(m,`Modifier ${m} used at start of tag`):d.length?bH(m,`Tag ${m} used as modifier`):d=Array.isArray(_)?_:[_]:bH(m,`Unknown highlighting tag ${m}`)}for(let m of d)n.push(m)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),r=i+" "+n.map(u=>u.id),s=jQ[r];if(s)return s.id;let a=jQ[r]=p2.define({id:eb.length,name:i,props:[oQ({[i]:n})]});return eb.push(a),a.id}function CH(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=t(e,n);return!!r&&(i(n.update(r)),!0)}}const IIe=CH(RIe,0),OIe=CH(qQ,0),HIe=CH((t,e)=>qQ(t,e,function zIe(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=n.to<=i.to?i:t.doc.lineAt(n.to),s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=r.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return e}(e)),0);function xH(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const tb=50;function qQ(t,e,n=e.selection.ranges){let i=n.map(s=>xH(e,s.from).block);if(!i.every(s=>s))return null;let r=n.map((s,a)=>function LIe(t,{open:e,close:n},i,r){let _,y,s=t.sliceDoc(i-tb,i),a=t.sliceDoc(r,r+tb),u=/\s*$/.exec(s)[0].length,d=/^\s*/.exec(a)[0].length,m=s.length-u;if(s.slice(m-e.length,m)==e&&a.slice(d,d+n.length)==n)return{open:{pos:i-u,margin:u&&1},close:{pos:r+d,margin:d&&1}};r-i<=2*tb?_=y=t.sliceDoc(i,r):(_=t.sliceDoc(i,i+tb),y=t.sliceDoc(r-tb,r));let x=/^\s*/.exec(_)[0].length,S=/\s*$/.exec(y)[0].length,D=y.length-S-n.length;return _.slice(x,x+e.length)==e&&y.slice(D,D+n.length)==n?{open:{pos:i+x+e.length,margin:/\s/.test(_.charAt(x+e.length))?1:0},close:{pos:r-S-n.length,margin:/\s/.test(y.charAt(D-1))?1:0}}:null}(e,i[a],s.from,s.to));if(2!=t&&!r.every(s=>s))return{changes:e.changes(n.map((s,a)=>r[a]?[]:[{from:s.from,insert:i[a].open+" "},{from:s.to,insert:" "+i[a].close}]))};if(1!=t&&r.some(s=>s)){let s=[];for(let u,a=0;ar&&(s==a||a>y.from)){r=y.from;let x=/^\s*/.exec(y.text)[0].length,S=x==y.length,D=y.text.slice(x,x+m.length)==m?x:-1;xs.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:u,token:d,indent:m,empty:_,single:y}of i)(y||!_)&&s.push({from:u.from+m,insert:d+" "});let a=e.changes(s);return{changes:a,selection:e.selection.map(a,1)}}if(1!=t&&i.some(s=>s.comment>=0)){let s=[];for(let{line:a,comment:u,token:d}of i)if(u>=0){let m=a.from+u,_=m+d.length;" "==a.text[_-a.from]&&_++,s.push({from:m,to:_})}return{changes:s}}return null}const wH=b0.define(),NIe=b0.define(),PIe=sr.define(),XQ=sr.define({combine:t=>Td(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(i,r)=>e(i,r)||n(i,r)})}),MH=e1.define({create:()=>EH.empty,update(t,e){let n=e.state.facet(XQ),i=e.annotation(wH);if(i){let d=bu.fromTransaction(e,i.selection),m=i.side,_=0==m?t.undone:t.done;return _=d?BS(_,_.length,n.minDepth,d):QQ(_,e.startState.selection),new EH(0==m?i.rest:_,0==m?_:i.rest)}let r=e.annotation(NIe);if(("full"==r||"before"==r)&&(t=t.isolate()),!1===e.annotation(f3.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let s=bu.fromTransaction(e),a=e.annotation(f3.time),u=e.annotation(f3.userEvent);return s?t=t.addChanges(s,a,u,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,u,n.newGroupDelay)),("full"==r||"after"==r)&&(t=t.isolate()),t},toJSON:t=>({done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}),fromJSON:t=>new EH(t.done.map(bu.fromJSON),t.undone.map(bu.fromJSON))});function jIe(t={}){return[MH,XQ.of(t),ps.domEventHandlers({beforeinput(e,n){let i="historyUndo"==e.inputType?SH:"historyRedo"==e.inputType?FS:null;return!!i&&(e.preventDefault(),i(n))}})]}function jS(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let r=n.field(MH,!1);if(!r)return!1;let s=r.pop(t,n,e);return!!s&&(i(s),!0)}}const SH=jS(0,!1),FS=jS(1,!1),FIe=jS(0,!0),BIe=jS(1,!0);function KQ(t){return function(e){let n=e.field(MH,!1);if(!n)return 0;let i=0==t?n.done:n.undone;return i.length-(i.length&&!i[0].changes?1:0)}}const $Ie=KQ(0),UIe=KQ(1);class bu{constructor(e,n,i,r,s){this.changes=e,this.effects=n,this.mapped=i,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new bu(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,i;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(n=this.mapped)||void 0===n?void 0:n.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new bu(e.changes&&m1.fromJSON(e.changes),[],e.mapped&&d3.fromJSON(e.mapped),e.startSelection&&mi.fromJSON(e.startSelection),e.selectionsAfter.map(mi.fromJSON))}static fromTransaction(e,n){let i=Id;for(let r of e.startState.facet(PIe)){let s=r(e);s.length&&(i=i.concat(s))}return!i.length&&e.changes.empty?null:new bu(e.changes.invert(e.startState.doc),i,void 0,n||e.startState.selection,Id)}static selection(e){return new bu(void 0,Id,void 0,void 0,e)}}function BS(t,e,n,i){let s=t.slice(e+1>n+20?e-n-1:0,e);return s.push(i),s}function YQ(t,e){return t.length?e.length?t.concat(e):t:e}const Id=[],qIe=200;function QQ(t,e){if(t.length){let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-qIe));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),BS(t,t.length-1,1e9,n.setSelAfter(i)))}return[bu.selection([e])]}function XIe(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function kH(t,e){if(!t.length)return t;let n=t.length,i=Id;for(;n;){let r=KIe(t[n-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let s=t.slice(0,n);return s[n-1]=r,s}e=r.mapped,n--,i=r.selectionsAfter}return i.length?[bu.selection(i)]:Id}function KIe(t,e,n){let i=YQ(t.selectionsAfter.length?t.selectionsAfter.map(u=>u.map(e)):Id,n);if(!t.changes)return bu.selection(i);let r=t.changes.map(e),s=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(s):s;return new bu(r,Uo.mapEffects(t.effects,e),a,t.startSelection.map(s),i)}const YIe=/^(input\.type|delete)($|\.)/;let EH=(()=>{class t{constructor(n,i,r=0,s=void 0){this.done=n,this.undone=i,this.prevTime=r,this.prevUserEvent=s}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(n,i,r,s,a){let u=this.done,d=u[u.length-1];return u=d&&d.changes&&!d.changes.empty&&n.changes&&(!r||YIe.test(r))&&(!d.selectionsAfter.length&&i-this.prevTimen.push(r,s)),e.iterChangedRanges((r,s,a,u)=>{for(let d=0;d=m&&a<=_&&(i=!0)}}),i}(d.changes,n.changes))||"input.type.compose"==r)?BS(u,u.length-1,s.minDepth,new bu(n.changes.compose(d.changes),YQ(n.effects,d.effects),d.mapped,d.startSelection,Id)):BS(u,u.length,s.minDepth,n),new t(u,Id,i,r)}addSelection(n,i,r,s){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:Id;return a.length>0&&i-this.prevTimen.empty!=e.ranges[i].empty).length}(a[a.length-1],n)?this:new t(QQ(this.done,n),this.undone,i,r)}addMapping(n){return new t(kH(this.done,n),kH(this.undone,n),this.prevTime,this.prevUserEvent)}pop(n,i,r){let s=0==n?this.done:this.undone;if(0==s.length)return null;let a=s[s.length-1],u=a.selectionsAfter[0]||i.selection;if(r&&a.selectionsAfter.length)return i.update({selection:a.selectionsAfter[a.selectionsAfter.length-1],annotations:wH.of({side:n,rest:XIe(s),selection:u}),userEvent:0==n?"select.undo":"select.redo",scrollIntoView:!0});if(a.changes){let d=1==s.length?Id:s.slice(0,s.length-1);return a.mapped&&(d=kH(d,a.mapped)),i.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:wH.of({side:n,rest:d,selection:u}),filter:!1,userEvent:0==n?"undo":"redo",scrollIntoView:!0})}return null}}return t.empty=new t(Id,Id),t})();const QIe=[{key:"Mod-z",run:SH,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:FS,preventDefault:!0},{linux:"Ctrl-Shift-z",run:FS,preventDefault:!0},{key:"Mod-u",run:FIe,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:BIe,preventDefault:!0}];function F5(t,e){return mi.create(t.ranges.map(e),t.mainIndex)}function w3(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Od({state:t,dispatch:e},n){let i=F5(t.selection,n);return!i.eq(t.selection,!0)&&(e(w3(t,i)),!0)}function nb(t,e){return mi.cursor(e?t.to:t.from)}function $S(t,e){return Od(t,n=>n.empty?t.moveByChar(n,e):nb(n,e))}function g2(t){return t.textDirectionAt(t.state.selection.main.head)==bc.LTR}const JQ=t=>$S(t,!g2(t)),ZQ=t=>$S(t,g2(t));function US(t,e){return Od(t,n=>n.empty?t.moveByGroup(n,e):nb(n,e))}function eOe(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function GS(t,e,n){let a,u,i=t1(t).resolveInner(e.head),r=n?ro.closedBy:ro.openedBy;for(let d=e.head;;){let m=n?i.childAfter(d):i.childBefore(d);if(!m)break;eOe(t,m,r)?i=m:d=n?m.to:m.from}return u=i.type.prop(r)&&(a=n?x3(t,i.from,1):x3(t,i.to,-1))&&a.matched?n?a.end.to:a.end.from:n?i.to:i.from,mi.cursor(u,n?-1:1)}function iJ(t,e){return Od(t,n=>{if(!n.empty)return nb(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}typeof Intl<"u"&&Intl;const rJ=t=>iJ(t,!1),sJ=t=>iJ(t,!0);function oJ(t){let r,e=t.scrollDOM.clientHeighta.empty?t.moveVertically(a,e,n.height):nb(a,e));if(r.eq(i.selection))return!1;if(n.selfScroll){let a=t.coordsAtPos(i.selection.main.head),u=t.scrollDOM.getBoundingClientRect(),d=u.top+n.marginTop;a&&a.top>d&&a.bottomaJ(t,!1),DH=t=>aJ(t,!0);function Oh(t,e,n){let i=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,n);if(r.head==e.head&&r.head!=(n?i.to:i.from)&&(r=t.moveToLineBoundary(e,n,!1)),!n&&r.head==i.from&&i.length){let s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(r=mi.cursor(i.from+s))}return r}function Ku(t,e){let n=F5(t.state.selection,i=>{let r=e(i);return mi.range(i.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return!n.eq(t.state.selection)&&(t.dispatch(w3(t.state,n)),!0)}function WS(t,e){return Ku(t,n=>t.moveByChar(n,e))}const uJ=t=>WS(t,!g2(t)),dJ=t=>WS(t,g2(t));function qS(t,e){return Ku(t,n=>t.moveByGroup(n,e))}function hJ(t,e){return Ku(t,n=>t.moveVertically(n,e))}const pJ=t=>hJ(t,!1),mJ=t=>hJ(t,!0);function gJ(t,e){return Ku(t,n=>t.moveVertically(n,e,oJ(t).height))}const vJ=t=>gJ(t,!1),_J=t=>gJ(t,!0),bJ=({state:t,dispatch:e})=>(e(w3(t,{anchor:0})),!0),yJ=({state:t,dispatch:e})=>(e(w3(t,{anchor:t.doc.length})),!0),CJ=({state:t,dispatch:e})=>(e(w3(t,{anchor:t.selection.main.anchor,head:0})),!0),xJ=({state:t,dispatch:e})=>(e(w3(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function B5(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,r=i.changeByRange(s=>{let{from:a,to:u}=s;if(a==u){let d=e(s);da&&(n="delete.forward",d=XS(t,d,!0)),a=Math.min(a,d),u=Math.max(u,d)}else a=XS(t,a,!1),u=XS(t,u,!0);return a==u?{range:s}:{changes:{from:a,to:u},range:mi.cursor(a,ar(t)))i.between(e,e,(r,s)=>{re&&(e=n?s:r)});return e}const TH=(t,e,n)=>B5(t,i=>{let u,d,r=i.from,{state:s}=t,a=s.doc.lineAt(r);if(n&&!e&&r>a.from&&rTH(t,!1,!0),wJ=t=>TH(t,!0,!1),MJ=(t,e)=>B5(t,n=>{let i=n.head,{state:r}=t,s=r.doc.lineAt(i),a=r.charCategorizer(i);for(let u=null;;){if(i==(e?s.to:s.from)){i==n.head&&s.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let d=U1(s.text,i-s.from,e)+s.from,m=s.text.slice(Math.min(i,d)-s.from,Math.max(i,d)-s.from),_=a(m);if(null!=u&&_!=u)break;(" "!=m||i!=n.head)&&(u=_),i=d}return i}),SJ=t=>MJ(t,!1);function KS(t){let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.from),s=t.doc.lineAt(i.to);if(!i.empty&&i.to==s.from&&(s=t.doc.lineAt(i.to-1)),n>=r.number){let a=e[e.length-1];a.to=s.to,a.ranges.push(i)}else e.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return e}function kJ(t,e,n){if(t.readOnly)return!1;let i=[],r=[];for(let s of KS(t)){if(n?s.to==t.doc.length:0==s.from)continue;let a=t.doc.lineAt(n?s.to+1:s.from-1),u=a.length+1;if(n){i.push({from:s.to,to:a.to},{from:s.from,insert:a.text+t.lineBreak});for(let d of s.ranges)r.push(mi.range(Math.min(t.doc.length,d.anchor+u),Math.min(t.doc.length,d.head+u)))}else{i.push({from:a.from,to:s.from},{from:s.to,insert:t.lineBreak+a.text});for(let d of s.ranges)r.push(mi.range(d.anchor-u,d.head-u))}}return!!i.length&&(e(t.update({changes:i,scrollIntoView:!0,selection:mi.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0)}function EJ(t,e,n){if(t.readOnly)return!1;let i=[];for(let r of KS(t))i.push(n?{from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}:{from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const zOe=DJ(!1),ROe=DJ(!0);function DJ(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(r=>{let{from:s,to:a}=r,u=e.doc.lineAt(s),d=!t&&s==a&&function LOe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let s,n=t1(t).resolveInner(e),i=n.childBefore(e),r=n.childAfter(e);return i&&r&&i.to<=e&&r.from>=e&&(s=i.type.prop(ro.closedBy))&&s.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}(e,s);t&&(s=a=(a<=u.to?u:e.doc.lineAt(a)).to);let m=new K_(e,{simulateBreak:s,simulateDoubleBreak:!!d}),_=RS(m,s);for(null==_&&(_=T5(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));au.from&&s{let r=[];for(let a=i.from;a<=i.to;){let u=t.doc.lineAt(a);u.number>n&&(i.empty||i.to>u.from)&&(e(u,r,i),n=u.number),a=u.to+1}let s=t.changes(r);return{changes:r,range:mi.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}const IH=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(AH(t,(n,i)=>{i.push({from:n.from,insert:t.facet(zS)})}),{userEvent:"input.indent"})),!0),TJ=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(AH(t,(n,i)=>{let r=/^\s*/.exec(n.text)[0];if(!r)return;let s=T5(r,t.tabSize),a=0,u=P5(t,Math.max(0,s-b4(t)));for(;aOd(t,e=>mi.cursor(t.lineBlockAt(e.head).from,1)),shift:t=>Ku(t,e=>mi.cursor(t.lineBlockAt(e.head).from))},{key:"Ctrl-e",run:t=>Od(t,e=>mi.cursor(t.lineBlockAt(e.head).to,-1)),shift:t=>Ku(t,e=>mi.cursor(t.lineBlockAt(e.head).to))},{key:"Ctrl-d",run:wJ},{key:"Ctrl-h",run:VH},{key:"Ctrl-k",run:t=>B5(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head{if(t.readOnly)return!1;let n=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:Ia.of(["",""])},range:mi.cursor(i.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{if(!i.empty||0==i.from||i.from==t.doc.length)return{range:i};let r=i.from,s=t.doc.lineAt(r),a=r==s.from?r-1:U1(s.text,r-s.from,!1)+s.from,u=r==s.to?r+1:U1(s.text,r-s.from,!0)+s.from;return{changes:{from:a,to:u,insert:t.doc.slice(r,u).append(t.doc.slice(a,r))},range:mi.cursor(u)}});return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:DH}],jOe=[{key:"ArrowLeft",run:JQ,shift:uJ,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>US(t,!g2(t)),shift:t=>qS(t,!g2(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>Od(t,e=>Oh(t,e,!g2(t))),shift:t=>Ku(t,e=>Oh(t,e,!g2(t))),preventDefault:!0},{key:"ArrowRight",run:ZQ,shift:dJ,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>US(t,g2(t)),shift:t=>qS(t,g2(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>Od(t,e=>Oh(t,e,g2(t))),shift:t=>Ku(t,e=>Oh(t,e,g2(t))),preventDefault:!0},{key:"ArrowUp",run:rJ,shift:pJ,preventDefault:!0},{mac:"Cmd-ArrowUp",run:bJ,shift:CJ},{mac:"Ctrl-ArrowUp",run:cJ,shift:vJ},{key:"ArrowDown",run:sJ,shift:mJ,preventDefault:!0},{mac:"Cmd-ArrowDown",run:yJ,shift:xJ},{mac:"Ctrl-ArrowDown",run:DH,shift:_J},{key:"PageUp",run:cJ,shift:vJ},{key:"PageDown",run:DH,shift:_J},{key:"Home",run:t=>Od(t,e=>Oh(t,e,!1)),shift:t=>Ku(t,e=>Oh(t,e,!1)),preventDefault:!0},{key:"Mod-Home",run:bJ,shift:CJ},{key:"End",run:t=>Od(t,e=>Oh(t,e,!0)),shift:t=>Ku(t,e=>Oh(t,e,!0)),preventDefault:!0},{key:"Mod-End",run:yJ,shift:xJ},{key:"Enter",run:zOe},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:VH,shift:VH},{key:"Delete",run:wJ},{key:"Mod-Backspace",mac:"Alt-Backspace",run:SJ},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>MJ(t,!0)},{mac:"Mod-Backspace",run:t=>B5(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)})},{mac:"Mod-Delete",run:t=>B5(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head({mac:t.key,run:t.run,shift:t.shift}))),FOe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:t=>Od(t,e=>GS(t.state,e,!g2(t))),shift:t=>Ku(t,e=>GS(t.state,e,!g2(t)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>Od(t,e=>GS(t.state,e,g2(t))),shift:t=>Ku(t,e=>GS(t.state,e,g2(t)))},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>kJ(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>EJ(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>kJ(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>EJ(t,e,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=mi.create([n.main]):n.main.empty||(i=mi.create([mi.cursor(n.main.head)])),!!i&&(e(w3(t,i)),!0)}},{key:"Mod-Enter",run:ROe},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let n=KS(t).map(({from:i,to:r})=>mi.range(i,Math.min(r+1,t.doc.length)));return e(t.update({selection:mi.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let n=F5(t.selection,i=>{var r;for(let a=t1(t).resolveStack(i.from,1);a;a=a.next){let{node:u}=a;if((u.from=i.to||u.to>i.to&&u.from<=i.from)&&null!==(r=u.parent)&&void 0!==r&&r.parent)return mi.range(u.to,u.from)}return i});return e(w3(t,n)),!0},preventDefault:!0},{key:"Mod-[",run:TJ},{key:"Mod-]",run:IH},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new K_(t,{overrideIndentation:s=>n[s]??-1}),r=AH(t,(s,a,u)=>{let d=RS(i,s.from);if(null==d)return;/\S/.test(s.text)||(d=0);let m=/^\s*/.exec(s.text)[0],_=P5(t,d);(m!=_||u.from{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(KS(e).map(({from:r,to:s})=>(r>0?r--:s{let s;if(t.lineWrapping){let a=t.lineBlockAt(r.head),u=t.coordsAtPos(r.head,r.assoc||1);u&&(s=a.bottom+t.documentTop-u.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,s)}).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>function lJ(t,e,n){let i=!1,r=F5(t.selection,s=>{let a=x3(t,s.head,-1)||x3(t,s.head,1)||s.head>0&&x3(t,s.head-1,1)||s.head{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),i=xH(t.state,n.from);return i.line?IIe(t):!!i.block&&HIe(t)}},{key:"Alt-A",run:OIe}].concat(jOe),BOe={key:"Tab",run:IH,shift:TJ};function Ic(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?t.setAttribute(i,r):null!=r&&(t[i]=r)}e++}for(;eu.from==u.to||u.from==u.to-1&&i.doc.lineAt(u.from).to==u.from?Rr.widget({widget:new QOe(u),diagnostic:u}).range(u.from):Rr.mark({attributes:{class:"cm-lintRange cm-lintRange-"+u.severity+(u.markClass?" "+u.markClass:"")},diagnostic:u,inclusive:!0}).range(u.from,u.to)),!0);return new Hp(a,n,$5(a))}}function $5(t,e=null,n=0){let i=null;return t.between(n,1e9,(r,s,{spec:a})=>{if(!e||a.diagnostic==e)return i=new $Oe(r,s,a.diagnostic),!1}),i}function AJ(t,e){let n=t.startState.doc.lineAt(e.pos);return!(!t.effects.some(i=>i.is(YS))&&!t.changes.touchesRange(n.from,n.to))}function IJ(t,e){return t.field(v2,!1)?e:e.concat(Uo.appendConfig.of($J))}const YS=Uo.define(),OH=Uo.define(),OJ=Uo.define(),v2=e1.define({create:()=>new Hp(Rr.none,null,null),update(t,e){if(e.docChanged){let n=t.diagnostics.map(e.changes),i=null;if(t.selected){let r=e.changes.mapPos(t.selected.from,1);i=$5(n,t.selected.diagnostic,r)||$5(n,null,r)}t=new Hp(n,t.panel,i)}for(let n of e.effects)n.is(YS)?t=Hp.init(n.value,t.panel,e.state):n.is(OH)?t=new Hp(t.diagnostics,n.value?QS.open:null,t.selected):n.is(OJ)&&(t=new Hp(t.diagnostics,t.panel,n.value));return t},provide:t=>[$_.from(t,e=>e.panel),ps.decorations.from(t,e=>e.diagnostics)]}),GOe=Rr.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function WOe(t,e,n){let{diagnostics:i}=t.state.field(v2),r=[],s=2e8,a=0;i.between(e-(n<0?1:0),e+(n>0?1:0),(d,m,{spec:_})=>{e>=d&&e<=m&&(d==m||(e>d||n>0)&&(e({dom:HJ(t,r)})}:null}function HJ(t,e){return Ic("ul",{class:"cm-tooltip-lint"},e.map(n=>NJ(t,n,!1)))}const LJ=t=>{let e=t.state.field(v2,!1);return!(!e||!e.panel||(t.dispatch({effects:OH.of(!1)}),0))},KOe=[{key:"Mod-Shift-m",run:t=>{let e=t.state.field(v2,!1);(!e||!e.panel)&&t.dispatch({effects:IJ(t.state,[OH.of(!0)])});let n=B_(t,QS.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(v2,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return!(!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to)||(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),0))}}],zJ=Vc.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(Lp);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let t=Date.now();if(tPromise.resolve(i(this.view)))).then(i=>{let r=i.reduce((s,a)=>s.concat(a));this.view.state.doc==e.doc&&this.view.dispatch(function UOe(t,e){return{effects:IJ(t,[YS.of(e)])}}(this.view.state,r))},i=>{K2(this.view.state,i)})}}update(t){let e=t.state.facet(Lp);(t.docChanged||e!=t.startState.facet(Lp)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Lp=sr.define({combine:t=>Object.assign({sources:t.map(e=>e.source).filter(e=>null!=e)},Td(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,n)=>e?n?i=>e(i)||n(i):e:n}))});function RJ(t){let e=[];if(t)e:for(let{name:n}of t){for(let i=0;is.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function NJ(t,e,n){var i;let r=n?RJ(e.actions):[];return Ic("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Ic("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),null===(i=e.actions)||void 0===i?void 0:i.map((s,a)=>{let u=!1,d=x=>{if(x.preventDefault(),u)return;u=!0;let S=$5(t.state.field(v2).diagnostics,e);S&&s.apply(t,S.from,S.to)},{name:m}=s,_=r[a]?m.indexOf(r[a]):-1,y=_<0?m:[m.slice(0,_),Ic("u",m.slice(_,_+1)),m.slice(_+1)];return Ic("button",{type:"button",class:"cm-diagnosticAction",onclick:d,onmousedown:d,"aria-label":` Action: ${m}${_<0?"":` (access key "${r[a]})"`}.`},y)}),e.source&&Ic("div",{class:"cm-diagnosticSource"},e.source))}class QOe extends h3{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Ic("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class PJ{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=NJ(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class QS{constructor(e){this.view=e,this.items=[],this.list=Ic("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:r=>{if(27==r.keyCode)LJ(this.view),this.view.focus();else if(38==r.keyCode||33==r.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==r.keyCode||34==r.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==r.keyCode)this.moveSelection(0);else if(35==r.keyCode)this.moveSelection(this.items.length-1);else if(13==r.keyCode)this.view.focus();else{if(!(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:s}=this.items[this.selectedIndex],a=RJ(s.actions);for(let u=0;u{for(let s=0;sLJ(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(v2).selected;if(!e)return-1;for(let n=0;n{let _,m=-1;for(let y=i;yi&&(this.items.splice(i,m-i),r=!0)),n&&_.diagnostic==n.diagnostic?_.dom.hasAttribute("aria-selected")||(_.dom.setAttribute("aria-selected","true"),s=_):_.dom.hasAttribute("aria-selected")&&_.dom.removeAttribute("aria-selected"),i++});i({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:u})=>{let d=u.height/this.list.offsetHeight;a.topu.bottom&&(this.list.scrollTop+=(a.bottom-u.bottom)/d)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function n(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)n();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let i=$5(this.view.state.field(v2).diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:OJ.of(i)})}static open(e){return new QS(e)}}function JS(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function ZS(t){return JS(``,'width="6" height="3"')}const JOe=ps.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:ZS("#d11")},".cm-lintRange-warning":{backgroundImage:ZS("orange")},".cm-lintRange-info":{backgroundImage:ZS("#999")},".cm-lintRange-hint":{backgroundImage:ZS("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function jJ(t){return"error"==t?4:"warning"==t?3:"info"==t?2:1}class ZOe extends g3{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((n,i)=>jJ(n)function tHe(t,e,n){function i(){let a=t.elementAtHeight(e.getBoundingClientRect().top+5-t.documentTop);t.coordsAtPos(a.from)&&t.dispatch({effects:HH.of({pos:a.from,above:!1,create:()=>({dom:HJ(t,n),getCoords:()=>e.getBoundingClientRect()})})}),e.onmouseout=e.onmousemove=null,function eHe(t,e){let n=i=>{let r=e.getBoundingClientRect();if(!(i.clientX>r.left-10&&i.clientXr.top-10&&i.clientY{clearTimeout(s),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(s),s=setTimeout(i,r)}}(e,n,i)),n}}function nHe(t,e){let n=Object.create(null);for(let r of e){let s=t.lineAt(r.from);(n[s.from]||(n[s.from]=[])).push(r)}let i=[];for(let r in n)i.push(new ZOe(n[r]).range(+r));return Qc.of(i,!0)}const iHe=PY({class:"cm-gutter-lint",markers:t=>t.state.field(FJ)}),FJ=e1.define({create:()=>Qc.empty,update(t,e){t=t.map(e.changes);let n=e.state.facet(ek).markerFilter;for(let i of e.effects)if(i.is(YS)){let r=i.value;n&&(r=n(r||[],e.state)),t=nHe(e.state.doc,r.slice(0))}return t}}),HH=Uo.define(),BJ=e1.define({create:()=>null,update:(t,e)=>(t&&e.docChanged&&(t=AJ(e,t)?null:Object.assign(Object.assign({},t),{pos:e.changes.mapPos(t.pos)})),e.effects.reduce((n,i)=>i.is(HH)?i.value:n,t)),provide:t=>CS.from(t)}),rHe=ps.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:JS('')},".cm-lint-marker-warning":{content:JS('')},".cm-lint-marker-error":{content:JS('')}}),$J=[v2,ps.decorations.compute([v2],t=>{let{selected:e,panel:n}=t.field(v2);return e&&n&&e.from!=e.to?Rr.set([GOe.range(e.from,e.to)]):Rr.none}),ZVe(WOe,{hideOn:AJ}),JOe],ek=sr.define({combine:t=>Td(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})});function sHe(t={}){return[ek.of(t),FJ,iHe,rHe,BJ]}class tk{constructor(e,n,i,r,s,a,u,d,m,_=0,y){this.p=e,this.stack=n,this.state=i,this.reducePos=r,this.pos=s,this.score=a,this.buffer=u,this.bufferBase=d,this.curContext=m,this.lookAhead=_,this.parent=y}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,i=0){let r=e.parser.context;return new tk(e,[],n,i,i,0,[],0,r?new UJ(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let i=e>>19,r=65535&e,{parser:s}=this.p,a=s.dynamicPrecedence(r);if(a&&(this.score+=a),0==i)return this.pushState(s.getGoto(this.state,r,!0),this.reducePos),r=2e3&&(null===(n=this.p.parser.nodeSet.types[r])||void 0===n||!n.isAnonymous)&&(d==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=m):this.p.lastBigReductionSizeu;)this.stack.pop();this.reduceContext(r,d)}storeNode(e,n,i,r=4,s=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==a.buffer[u-4]&&a.buffer[u-1]>-1){if(n==i)return;if(a.buffer[u-2]>=n)return void(a.buffer[u-2]=i)}}if(s&&this.pos!=i){let a=this.buffer.length;if(a>0&&0!=this.buffer[a-4])for(;a>0&&this.buffer[a-2]>i;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,r>4&&(r-=4);this.buffer[a]=e,this.buffer[a+1]=n,this.buffer[a+2]=i,this.buffer[a+3]=r}else this.buffer.push(e,n,i,r)}shift(e,n,i,r){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=r,this.shiftContext(n,i),n<=this.p.parser.maxNode&&this.buffer.push(n,i,r,4);else{let s=e,{parser:a}=this.p;(r>this.pos||n<=a.maxNode)&&(this.pos=r,a.stateFlag(s,1)||(this.reducePos=r)),this.pushState(s,i),this.shiftContext(n,i),n<=a.maxNode&&this.buffer.push(n,i,r,4)}}apply(e,n,i,r){65536&e?this.reduce(e):this.shift(e,n,i,r)}useNode(e,n){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(n,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let i=e.buffer.slice(n),r=e.bufferBase+n;for(;e&&r==e.bufferBase;)e=e.parent;return new tk(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,i?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new oHe(this);;){let i=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(0==i)return!1;if(!(65536&i))return!0;n.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let r=[];for(let a,s=0;s1&d&&u==a)||r.push(n[s],a)}n=r}let i=[];for(let r=0;r>19);if(s<0||e.getGoto(this.stack[s],65535&n,!1)<0){let a=this.findForcedReduction();if(null==a)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],i=(r,s)=>{if(!n.includes(r))return n.push(r),e.allActions(r,a=>{if(!(393216&a))if(65536&a){let u=(a>>19)-s;if(u>1){let d=65535&a,m=this.stack.length-3*u;if(m>=0&&e.getGoto(this.stack[m],d,!1)>=0)return u<<19|65536|d}}else{let u=i(a,s+1);if(null!=u)return u}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class UJ{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class oHe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=65535&e,i=e>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=r}}class nk{constructor(e,n,i){this.stack=e,this.pos=n,this.index=i,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new nk(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new nk(this.stack,this.pos,this.index)}}function ib(t,e=Uint16Array){if("string"!=typeof t)return t;let n=null;for(let i=0,r=0;i=92&&a--,a>=34&&a--;let d=a-32;if(d>=46&&(d-=46,u=!0),s+=d,u)break;s*=46}n?n[r++]=s:n=new e(s)}return n}class ik{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const GJ=new ik;class aHe{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=GJ,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let i=this.range,r=this.rangeIndex,s=this.pos+e;for(;si.to:s>=i.to;){if(r==this.ranges.length-1)return null;let a=this.ranges[++r];s+=a.from-i.to,i=a}return s}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,n.from);return this.end}peek(e){let i,r,n=this.chunkOff+e;if(n>=0&&n=this.chunk2Pos&&iu.to&&(this.chunk2=this.chunk2.slice(0,u.to-i)),r=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),r}acceptToken(e,n=0){let i=n?this.resolveOffset(n,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=GJ,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let i="";for(let r of this.ranges){if(r.from>=n)break;r.to>e&&(i+=this.input.read(Math.max(r.from,e),Math.min(r.to,n)))}return i}}class U5{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:i}=n.p;!function WJ(t,e,n,i,r,s){let a=0,u=1<0){let D=t[S];if(d.allows(D)&&(-1==e.token.value||e.token.value==D||lHe(D,e.token.value,r,s))){e.acceptToken(D);break}}let _=e.next,y=0,x=t[a+2];if(!(e.next<0&&x>y&&65535==t[m+3*x-3])){for(;y>1,D=m+S+(S<<1);if(_=(t[D+1]||65536))){a=t[D+2],e.advance();continue e}y=S+1}}break}a=t[m+3*x-1]}}(this.data,e,n,this.id,i.data,i.tokenPrecTable)}}function qJ(t,e,n){for(let r,i=e;65535!=(r=t[i]);i++)if(r==n)return i-e;return-1}function lHe(t,e,n,i){let r=qJ(n,i,e);return r<0||qJ(n,i,t)e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}class uHe{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?XJ(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?XJ(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(s instanceof Ga){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+s.length}}}class dHe{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new ik)}getActions(e){let n=0,i=null,{parser:r}=e.p,{tokenizers:s}=r,a=r.stateSlot(e.state,3),u=e.curContext?e.curContext.hash:0,d=0;for(let m=0;my.end+25&&(d=Math.max(y.lookAhead,d)),0!=y.value)){let x=n;if(y.extended>-1&&(n=this.addActions(e,y.extended,y.end,n)),n=this.addActions(e,y.value,y.end,n),!_.extend&&(i=y,n>x))break}}for(;this.actions.length>n;)this.actions.pop();return d&&e.setLookAhead(d),!i&&e.pos==this.stream.end&&(i=new ik,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,n=this.addActions(e,i.value,i.end,n)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new ik,{pos:i,p:r}=e;return n.start=i,n.end=Math.min(i+1,r.stream.end),n.value=i==r.stream.end?r.parser.eofTerm:0,n}updateCachedToken(e,n,i){let r=this.stream.clipPos(i.pos);if(n.token(this.stream.reset(r,e),i),e.value>-1){let{parser:s}=i.p;for(let a=0;a=0&&i.p.parser.dialect.allows(u>>1)){1&u?e.extended=u>>1:e.value=u>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,n,i,r){for(let s=0;s4*e.bufferLength?new uHe(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let r,s,e=this.stacks,n=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==e.length){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)i.push(u);else{if(this.advanceStack(u,i,e))continue;{r||(r=[],s=[]),r.push(u);let d=this.tokens.getMainToken(u);s.push(d.value,d.end)}}break}}if(!i.length){let a=r&&function pHe(t){let e=null;for(let n of t){let i=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=i&&n.pos>i)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scorethis.stoppedAt?r[0]:this.runRecovery(r,s,i);if(a)return Yu&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=1==this.recovering?1:3*this.recovering;if(i.length>a)for(i.sort((u,d)=>d.score-u.score);i.length>a;)i.pop();i.some(u=>u.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let a=0;a500&&m.buffer.length>500){if(!((u.score-m.score||u.buffer.length-m.buffer.length)>0)){i.splice(a--,1);continue e}i.splice(d--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let a=1;a ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let m=e.curContext&&e.curContext.tracker.strict,_=m?e.curContext.hash:0;for(let y=this.fragments.nodeAt(r);y;){let x=this.parser.nodeSet.types[y.type.id]==y.type?s.getGoto(e.state,y.type.id):-1;if(x>-1&&y.length&&(!m||(y.prop(ro.contextHash)||0)==_))return e.useNode(y,x),Yu&&console.log(a+this.stackID(e)+` (via reuse of ${s.getName(y.type.id)})`),!0;if(!(y instanceof Ga)||0==y.children.length||y.positions[0]>0)break;let S=y.children[0];if(!(S instanceof Ga&&0==y.positions[0]))break;y=S}}let u=s.stateSlot(e.state,4);if(u>0)return e.reduce(u),Yu&&console.log(a+this.stackID(e)+` (via always-reduce ${s.getName(65535&u)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let d=this.tokens.getActions(e);for(let m=0;mr?n.push(D):i.push(D)}return!1}advanceFully(e,n){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return KJ(e,n),!0}}runRecovery(e,n,i){let r=null,s=!1;for(let a=0;a ":"";if(u.deadEnd&&(s||(s=!0,u.restart(),Yu&&console.log(_+this.stackID(u)+" (restarted)"),this.advanceFully(u,i))))continue;let y=u.split(),x=_;for(let S=0;y.forceReduce()&&S<10&&(Yu&&console.log(x+this.stackID(y)+" (via force-reduce)"),!this.advanceFully(y,i));S++)Yu&&(x=this.stackID(y)+" -> ");for(let S of u.recoverByInsert(d))Yu&&console.log(_+this.stackID(S)+" (via recover-insert)"),this.advanceFully(S,i);this.stream.end>u.pos?(m==u.pos&&(m++,d=0),u.recoverByDelete(d,m),Yu&&console.log(_+this.stackID(u)+` (via recover-delete ${this.parser.getName(d)})`),KJ(u,i)):(!r||r.scoree.topRules[u][1]),r=[];for(let u=0;u=0)s(_,d,u[m++]);else{let y=u[m+-_];for(let x=-_;x>0;x--)s(u[m++],d,y);m++}}}this.nodeSet=new kS(n.map((u,d)=>p2.define({name:d>=this.minRepeatTerm?void 0:u,id:d,props:r[d],top:i.indexOf(d)>-1,error:0==d,skipped:e.skippedNodes&&e.skippedNodes.indexOf(d)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=qY;let a=ib(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let u=0;u"number"==typeof u?new U5(a,u):u),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,i){let r=new fHe(this,e,n,i);for(let s of this.wrappers)r=s(r,e,n,i);return r}getGoto(e,n,i=!1){let r=this.goto;if(n>=r[0])return-1;for(let s=r[n+1];;){let a=r[s++],u=1&a,d=r[s++];if(u&&i)return d;for(let m=s+(a>>1);s0}validAction(e,n){return!!this.allActions(e,i=>i==n||null)}allActions(e,n){let i=this.stateSlot(e,4),r=i?n(i):void 0;for(let s=this.stateSlot(e,1);null==r;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=w0(this.data,s+2)}r=n(w0(this.data,s+1))}return r}nextStates(e){let n=[];for(let i=this.stateSlot(e,1);;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=w0(this.data,i+2)}if(!(1&this.data[i+2])){let r=this.data[i+1];n.some((s,a)=>1&a&&s==r)||n.push(this.data[i],r)}}return n}configure(e){let n=Object.assign(Object.create(rk.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=i}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(i=>{let r=e.tokenizers.find(s=>s.from==i);return r?r.to:i})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((i,r)=>{let s=e.specializers.find(u=>u.from==i.external);if(!s)return i;let a=Object.assign(Object.assign({},i),{external:s.to});return n.specializers[r]=YJ(a),a})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),null!=e.bufferLength&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return null==n?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),i=n.map(()=>!1);if(e)for(let s of e.split(" ")){let a=n.indexOf(s);a>=0&&(i[a]=!0)}let r=null;for(let s=0;st.external(n,i)<<1|e}return t.get}const mHe=oQ({String:Pi.string,Number:Pi.number,"True False":Pi.bool,PropertyName:Pi.propertyName,Null:Pi.null,",":Pi.separator,"[ ]":Pi.squareBracket,"{ }":Pi.brace}),gHe=rk.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26a0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[mHe],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),_He=LS.define({name:"json",parser:gHe.configure({props:[bQ.add({Object:xQ({except:/^\s*\}/}),Array:xQ({except:/^\s*\]/})}),wQ.add({"Object Array":function qAe(t){let e=t.firstChild,n=t.lastChild;return e&&e.tot.normalize("NFKD"):t=>t;class G5{constructor(e,n,i=0,r=e.length,s,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,r),this.bufferStart=i,this.normalize=s?u=>s(QJ(u)):QJ,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return G1(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=YI(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Dd(e);let r=this.normalize(n);for(let s=0,a=i;;s++){let u=r.charCodeAt(s),d=this.match(u,a,this.bufferPos+this.bufferStart);if(s==r.length-1){if(d)return this.value=d,this;break}a==i&&sthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,r=i+n[0].length;if(this.matchPos=sk(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=n){let u=new W5(n,e.sliceString(n,i));return NH.set(e,u),u}if(r.from==n&&r.to==i)return r;let{text:s,from:a}=r;return a>n&&(s=e.sliceString(n,a)+s,a=n),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,r=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this.matchPos=sk(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=W5.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function sk(t,e){if(e>=t.length)return e;let i,n=t.lineAt(e);for(;e=56320&&i<57344;)e++;return e}function PH(t){let n=Ic("input",{class:"cm-textfield",name:"line",value:String(t.state.doc.lineAt(t.state.selection.main.head).number)});function r(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!s)return;let{state:a}=t,u=a.doc.lineAt(a.selection.main.head),[,d,m,_,y]=s,x=_?+_.slice(1):0,S=m?+m:u.number;if(m&&y){let $=S/100;d&&($=$*("-"==d?-1:1)+u.number/a.doc.lines),S=Math.round(a.doc.lines*$)}else m&&d&&(S=S*("-"==d?-1:1)+u.number);let D=a.doc.line(Math.max(1,Math.min(a.doc.lines,S))),z=mi.cursor(D.from+Math.max(0,Math.min(x,D.length)));t.dispatch({effects:[ok.of(!1),ps.scrollIntoView(z.from,{y:"center"})],selection:z}),t.focus()}return{dom:Ic("form",{class:"cm-gotoLine",onkeydown:s=>{27==s.keyCode?(s.preventDefault(),t.dispatch({effects:ok.of(!1)}),t.focus()):13==s.keyCode&&(s.preventDefault(),r())},onsubmit:s=>{s.preventDefault(),r()}},Ic("label",t.state.phrase("Go to line"),": ",n)," ",Ic("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(ZJ.prototype[Symbol.iterator]=eZ.prototype[Symbol.iterator]=function(){return this});const ok=Uo.define(),tZ=e1.define({create:()=>!0,update(t,e){for(let n of e.effects)n.is(ok)&&(t=n.value);return t},provide:t=>$_.from(t,e=>e?PH:null)}),xHe=ps.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),wHe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},nZ=sr.define({combine:t=>Td(t,wHe,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})});function MHe(t){let e=[THe,DHe];return t&&e.push(nZ.of(t)),e}const SHe=Rr.mark({class:"cm-selectionMatch"}),kHe=Rr.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function iZ(t,e,n,i){return!(0!=n&&t(e.sliceDoc(n-1,n))==Yc.Word||i!=e.doc.length&&t(e.sliceDoc(i,i+1))==Yc.Word)}const DHe=Vc.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(nZ),{state:n}=t,i=n.selection;if(i.ranges.length>1)return Rr.none;let s,r=i.main,a=null;if(r.empty){if(!e.highlightWordAroundCursor)return Rr.none;let d=n.wordAt(r.head);if(!d)return Rr.none;a=n.charCategorizer(r.head),s=n.sliceDoc(d.from,d.to)}else{let d=r.to-r.from;if(d200)return Rr.none;if(e.wholeWords){if(s=n.sliceDoc(r.from,r.to),a=n.charCategorizer(r.head),!iZ(a,n,r.from,r.to)||!function EHe(t,e,n,i){return t(e.sliceDoc(n,n+1))==Yc.Word&&t(e.sliceDoc(i-1,i))==Yc.Word}(a,n,r.from,r.to))return Rr.none}else if(s=n.sliceDoc(r.from,r.to),!s)return Rr.none}let u=[];for(let d of t.visibleRanges){let m=new G5(n.doc,s,d.from,d.to);for(;!m.next().done;){let{from:_,to:y}=m.value;if((!a||iZ(a,n,_,y))&&(r.empty&&_<=r.from&&y>=r.to?u.push(kHe.range(_,y)):(_>=r.to||y<=r.from)&&u.push(SHe.range(_,y)),u.length>e.maxMatches))return Rr.none}}return Rr.set(u)}},{decorations:t=>t.decorations}),THe=ps.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),zp=sr.define({combine:t=>Td(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new GHe(e),scrollToMatch:e=>ps.scrollIntoView(e)})});function OHe(t){return t?[zp.of(t),WH]:WH}class rZ{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function yHe(t){try{return new RegExp(t,RH),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new RHe(this):new LHe(this)}getCursor(e,n=0,i){let r=e.doc?e:W1.create({doc:e});return null==i&&(i=r.doc.length),this.regexp?X5(this,r,n,i):q5(this,r,n,i)}}class sZ{constructor(e){this.spec=e}}function q5(t,e,n,i){return new G5(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:r=>r.toLowerCase(),t.wholeWord?function HHe(t,e){return(n,i,r,s)=>((s>n||s+r.length=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=q5(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function X5(t,e,n,i){return new ZJ(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?zHe(e.charCategorizer(e.selection.main.head)):void 0},n,i)}function ak(t,e){return t.slice(U1(t,e,!1),e)}function ck(t,e){return t.slice(e,U1(t,e))}function zHe(t){return(e,n,i)=>!i[0].length||(t(ak(i.input,i.index))!=Yc.Word||t(ck(i.input,i.index))!=Yc.Word)&&(t(ck(i.input,i.index+i[0].length))!=Yc.Word||t(ak(i.input,i.index+i[0].length))!=Yc.Word)}class RHe extends sZ{nextMatch(e,n,i){let r=X5(this.spec,e,i,e.doc.length).next();return r.done&&(r=X5(this.spec,e,0,n).next()),r.done?null:r.value}prevMatchInRange(e,n,i){for(let r=1;;r++){let s=Math.max(n,i-1e4*r),a=X5(this.spec,e,s,i),u=null;for(;!a.next().done;)u=a.value;if(u&&(s==n||u.from>s+10))return u;if(s==n)return null}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,i)=>"$"==i?"$":"&"==i?e.match[0]:"0"!=i&&+i=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=X5(this.spec,e,Math.max(0,n-250),Math.min(i+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const rb=Uo.define(),jH=Uo.define(),M3=e1.define({create:t=>new FH(dk(t).create(),null),update(t,e){for(let n of e.effects)n.is(rb)?t=new FH(n.value.create(),t.panel):n.is(jH)&&(t=new FH(t.query,n.value?BH:null));return t},provide:t=>$_.from(t,e=>e.panel)});class FH{constructor(e,n){this.query=e,this.panel=n}}const NHe=Rr.mark({class:"cm-searchMatch"}),PHe=Rr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),jHe=Vc.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(M3))}update(t){let e=t.state.field(M3);(e!=t.startState.field(M3)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Rr.none;let{view:n}=this,i=new g4;for(let r=0,s=n.visibleRanges,a=s.length;rs[r+1].from-500;)d=s[++r].to;t.highlight(n.state,u,d,(m,_)=>{let y=n.state.selection.ranges.some(x=>x.from==m&&x.to==_);i.add(m,_,y?PHe:NHe)})}return i.finish()}},{decorations:t=>t.decorations});function sb(t){return e=>{let n=e.state.field(M3,!1);return n&&n.query.spec.valid?t(e,n):$H(e)}}const lk=sb((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);if(!i)return!1;let r=mi.single(i.from,i.to),s=t.state.facet(zp);return t.dispatch({selection:r,effects:[GH(t,i),s.scrollToMatch(r.main,t)],userEvent:"select.search"}),cZ(t),!0}),uk=sb((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,r=e.prevMatch(n,i,i);if(!r)return!1;let s=mi.single(r.from,r.to),a=t.state.facet(zp);return t.dispatch({selection:s,effects:[GH(t,r),a.scrollToMatch(s.main,t)],userEvent:"select.search"}),cZ(t),!0}),FHe=sb((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!(!n||!n.length||(t.dispatch({selection:mi.create(n.map(i=>mi.range(i.from,i.to))),userEvent:"select.search.matches"}),0))}),oZ=sb((t,{query:e})=>{let{state:n}=t,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=e.nextMatch(n,i,i);if(!s)return!1;let u,d,a=[],m=[];if(s.from==i&&s.to==r&&(d=n.toText(e.getReplacement(s)),a.push({from:s.from,to:s.to,insert:d}),s=e.nextMatch(n,s.from,s.to),m.push(ps.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),s){let _=0==a.length||a[0].from>=s.to?0:s.to-s.from-d.length;u=mi.single(s.from-_,s.to-_),m.push(GH(t,s)),m.push(n.facet(zp).scrollToMatch(u.main,t))}return t.dispatch({changes:a,selection:u,effects:m,userEvent:"input.replace"}),!0}),$He=sb((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(r=>{let{from:s,to:a}=r;return{from:s,to:a,insert:e.getReplacement(r)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:ps.announce.of(i),userEvent:"input.replace.all"}),!0});function BH(t){return t.state.facet(zp).createPanel(t)}function dk(t,e){var n,i,r,s,a;let u=t.selection.main,d=u.empty||u.to>u.from+100?"":t.sliceDoc(u.from,u.to);if(e&&!d)return e;let m=t.facet(zp);return new rZ({search:(null!==(n=e?.literal)&&void 0!==n?n:m.literal)?d:d.replace(/\n/g,"\\n"),caseSensitive:null!==(i=e?.caseSensitive)&&void 0!==i?i:m.caseSensitive,literal:null!==(r=e?.literal)&&void 0!==r?r:m.literal,regexp:null!==(s=e?.regexp)&&void 0!==s?s:m.regexp,wholeWord:null!==(a=e?.wholeWord)&&void 0!==a?a:m.wholeWord})}function aZ(t){let e=B_(t,BH);return e&&e.dom.querySelector("[main-field]")}function cZ(t){let e=aZ(t);e&&e==t.root.activeElement&&e.select()}const $H=t=>{let e=t.state.field(M3,!1);if(e&&e.panel){let n=aZ(t);if(n&&n!=t.root.activeElement){let i=dk(t.state,e.query.spec);i.valid&&t.dispatch({effects:rb.of(i)}),n.focus(),n.select()}}else t.dispatch({effects:[jH.of(!0),e?rb.of(dk(t.state,e.query.spec)):Uo.appendConfig.of(WH)]});return!0},UH=t=>{let e=t.state.field(M3,!1);if(!e||!e.panel)return!1;let n=B_(t,BH);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:jH.of(!1)}),!0},UHe=[{key:"Mod-f",run:$H,scope:"editor search-panel"},{key:"F3",run:lk,shift:uk,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:lk,shift:uk,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:UH,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],a=0;for(let u=new G5(t.doc,t.sliceDoc(i,r));!u.next().done;){if(s.length>1e3)return!1;u.value.from==i&&(a=s.length),s.push(mi.range(u.value.from,u.value.to))}return e(t.update({selection:mi.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:t=>{let e=B_(t,PH);if(!e){let n=[ok.of(!0)];null==t.state.field(tZ,!1)&&n.push(Uo.appendConfig.of([tZ,xHe])),t.dispatch({effects:n}),e=B_(t,PH)}return e&&e.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(s=>s.from===s.to))return(({state:t,dispatch:e})=>{let{selection:n}=t,i=mi.create(n.ranges.map(r=>t.wordAt(r.head)||mi.cursor(r.head)),n.mainIndex);return!i.eq(n)&&(e(t.update({selection:i})),!0)})({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=i))return!1;let r=function AHe(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let a=!1,u=new G5(t.doc,e,i[i.length-1].to);;){if(u.next(),!u.done){if(a&&i.some(d=>d.from==u.value.from))continue;if(s){let d=t.wordAt(u.value.from);if(!d||d.from!=u.value.from||d.to!=u.value.to)continue}return u.value}if(a)return null;u=new G5(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),a=!0}}(t,i);return!!r&&(e(t.update({selection:t.selection.addRange(mi.range(r.from,r.to),!1),effects:ps.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class GHe{constructor(e){this.view=e;let n=this.query=e.state.field(M3).query.spec;function i(r,s,a){return Ic("button",{class:"cm-button",name:r,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Ic("input",{value:n.search,placeholder:Qu(e,"Find"),"aria-label":Qu(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ic("input",{value:n.replace,placeholder:Qu(e,"Replace"),"aria-label":Qu(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ic("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Ic("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Ic("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit}),this.dom=Ic("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,i("next",()=>lk(e),[Qu(e,"next")]),i("prev",()=>uk(e),[Qu(e,"previous")]),i("select",()=>FHe(e),[Qu(e,"all")]),Ic("label",null,[this.caseField,Qu(e,"match case")]),Ic("label",null,[this.reField,Qu(e,"regexp")]),Ic("label",null,[this.wordField,Qu(e,"by word")]),...e.state.readOnly?[]:[Ic("br"),this.replaceField,i("replace",()=>oZ(e),[Qu(e,"replace")]),i("replaceAll",()=>$He(e),[Qu(e,"replace all")])],Ic("button",{name:"close",onclick:()=>UH(e),"aria-label":Qu(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new rZ({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:rb.of(e)}))}keydown(e){!function hVe(t,e,n){return xY(CY(t.state),e,t,n)}(this.view,e,"search-panel")?13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?uk:lk)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),oZ(this.view)):e.preventDefault()}update(e){for(let n of e.transactions)for(let i of n.effects)i.is(rb)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(zp).top}}function Qu(t,e){return t.state.phrase(e)}const fk=30,hk=/[\s\.,:;?!]/;function GH(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),r=t.state.doc.lineAt(n).to,s=Math.max(i.from,e-fk),a=Math.min(r,n+fk),u=t.state.sliceDoc(s,a);if(s!=i.from)for(let d=0;du.length-fk;d--)if(!hk.test(u[d-1])&&hk.test(u[d])){u=u.slice(0,d);break}return ps.announce.of(`${t.state.phrase("current match")}. ${u} ${t.state.phrase("on line")} ${i.number}.`)}const WHe=ps.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),WH=[M3,v0.low(jHe),WHe];class lZ{constructor(e,n,i){this.state=e,this.pos=n,this.explicit=i,this.abortListeners=[]}tokenBefore(e){let n=t1(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),i=Math.max(n.from,this.pos-250),r=n.text.slice(i-n.from,this.pos-n.from),s=r.search(fZ(e,!1));return s<0?null:{from:i+s,to:this.pos,text:r.slice(s)}}get aborted(){return null==this.abortListeners}addEventListener(e,n){"abort"==e&&this.abortListeners&&this.abortListeners.push(n)}}function uZ(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}class dZ{constructor(e,n,i,r){this.completion=e,this.source=n,this.match=i,this.score=r}}function Hh(t){return t.selection.main.from}function fZ(t,e){var n;let{source:i}=t,r=e&&"^"!=i[0],s="$"!=i[i.length-1];return r||s?new RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}const qH=b0.define(),hZ=new WeakMap;function YHe(t){if(!Array.isArray(t))return t;let e=hZ.get(t);return e||hZ.set(t,e=function XHe(t){let e=t.map(r=>"string"==typeof r?{label:r}:r),[n,i]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:function qHe(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let s=1;s{let s=r.matchBefore(i);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:n}:null}}(t)),e}const pk=Uo.define(),ob=Uo.define();class QHe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&ye<=57||ye>=97&&ye<=122?2:ye>=65&&ye<=90?1:0:(Ke=YI(ye))!=Ke.toLowerCase()?1:Ke!=Ke.toUpperCase()?2:0;(!re||1==lt&&$||0==ke&&0!=lt)&&(n[y]==ye||i[y]==ye&&(x=!0)?a[y++]=re:a.length&&(W=!1)),ke=lt,re+=Dd(ye)}return y==d&&0==a[0]&&W?this.result((x?-200:0)-100,a,e):S==d&&0==D?this.ret(-200-e.length+(z==e.length?0:-100),[0,z]):u>-1?this.ret(-700-e.length,[u,u+this.pattern.length]):S==d?this.ret(-900-e.length,[D,z]):y==d?this.result((x?-200:0)-100-700+(W?0:-1100),a,e):2==n.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,n,i){let r=[],s=0;for(let a of n){let u=a+(this.astral?Dd(G1(i,a)):1);s&&r[s-1]==a?r[s-1]=u:(r[s++]=a,r[s++]=u)}return this.ret(e-i.length,r)}}class JHe{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.lengthTd(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ZHe,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>i=>pZ(e(i),n(i)),optionClass:(e,n)=>i=>pZ(e(i),n(i)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})});function pZ(t,e){return t?e?t+" "+e:t:e}function ZHe(t,e,n,i,r,s){let _,y,a=t.textDirection==bc.RTL,u=a,d=!1,m="top",x=e.left-r.left,S=r.right-e.right,D=i.right-i.left,z=i.bottom-i.top;if(u&&x=z||re>e.top?_=n.bottom-e.top:(m="bottom",_=e.bottom-n.top)}return{style:`${m}: ${_/((e.bottom-e.top)/s.offsetHeight)}px; max-width: ${y/((e.right-e.left)/s.offsetWidth)}px`,class:"cm-completionInfo-"+(d?a?"left-narrow":"right-narrow":u?"left":"right")}}function XH(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let r=Math.floor(e/n);return{from:r*n,to:(r+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class tLe{constructor(e,n,i){this.view=e,this.stateField=n,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:d=>this.placeInfo(d),key:this},this.space=null,this.currentClass="";let r=e.state.field(n),{options:s,selected:a}=r.open,u=e.state.facet(K1);this.optionContent=function eLe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),n.type&&i.classList.add(...n.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(n,i,r,s){let a=document.createElement("span");a.className="cm-completionLabel";let u=n.displayLabel||n.label,d=0;for(let m=0;md&&a.appendChild(document.createTextNode(u.slice(d,_)));let x=a.appendChild(document.createElement("span"));x.appendChild(document.createTextNode(u.slice(_,y))),x.className="cm-completionMatchedText",d=y}return dn.position-i.position).map(n=>n.render)}(u),this.optionClass=u.optionClass,this.tooltipClass=u.tooltipClass,this.range=XH(s.length,a,u.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",d=>{let{options:m}=e.state.field(n).open;for(let y,_=d.target;_&&_!=this.dom;_=_.parentNode)if("LI"==_.nodeName&&(y=/-(\d+)$/.exec(_.id))&&+y[1]{let m=e.state.field(this.stateField,!1);m&&m.tooltip&&e.state.facet(K1).closeOnBlur&&d.relatedTarget!=e.contentDOM&&e.dispatch({effects:ob.of(null)})}),this.showOptions(s,r.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let i=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=r){let{options:s,selected:a,disabled:u}=i.open;(!r.open||r.open.options!=s)&&(this.range=XH(s.length,a,e.state.facet(K1).maxRenderedOptions),this.showOptions(s,i.id)),this.updateSel(),u!=(null===(n=r.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!u)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of n.split(" "))i&&this.dom.classList.add(i);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=XH(n.options.length,n.selected,this.view.state.facet(K1).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:i}=n.options[n.selected],{info:r}=i;if(!r)return;let s="string"==typeof r?document.createTextNode(r):r(i);if(!s)return;"then"in s?s.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,i)}).catch(a=>K2(this.view.state,a,"completion info")):this.addInfoPane(s,i)}}addInfoPane(e,n){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",null!=e.nodeType)i.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:s}=e;i.appendChild(r),this.infoDestroy=s||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)"LI"==i.nodeName&&i.id?r==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),n=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected"):r--;return n&&function iLe(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=n.height/t.offsetHeight;i.topn.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/r)}(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.space;if(!s){let a=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return r.top>Math.min(s.bottom,n.bottom)-10||r.bottomi.from||0==i.from)&&(s=x,"string"!=typeof m&&m.header?r.appendChild(m.header(m)):r.appendChild(document.createElement("completion-section")).textContent=x)}const _=r.appendChild(document.createElement("li"));_.id=n+"-"+a,_.setAttribute("role","option");let y=this.optionClass(u);y&&(_.className=y);for(let x of this.optionContent){let S=x(u,this.view.state,this.view,d);S&&_.appendChild(S)}}return i.from&&r.classList.add("cm-completionListIncompleteTop"),i.tonew tLe(n,t,e)}function mZ(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class K5{constructor(e,n,i,r,s,a){this.options=e,this.attrs=n,this.tooltip=i,this.timestamp=r,this.selected=s,this.disabled=a}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new K5(this.options,gZ(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,i,r,s){let a=function rLe(t,e){let n=[],i=null,r=m=>{n.push(m);let{section:_}=m.completion;if(_){i||(i=[]);let y="string"==typeof _?_:_.name;i.some(x=>x.name==y)||i.push("string"==typeof _?{name:y}:_)}},s=e.facet(K1);for(let m of t)if(m.hasResult()){let _=m.result.getMatch;if(!1===m.result.filter)for(let y of m.result.options)r(new dZ(y,m.source,_?_(y):[],1e9-n.length));else{let x,y=e.sliceDoc(m.from,m.to),S=s.filterStrict?new JHe(y):new QHe(y);for(let D of m.result.options)if(x=S.match(D.label)){let z=D.displayLabel?_?_(D,x.matched):[]:x.matched;r(new dZ(D,m.source,z,x.score+(D.boost||0)))}}}if(i){let m=Object.create(null),_=0,y=(x,S)=>{var D,z;return(null!==(D=x.rank)&&void 0!==D?D:1e9)-(null!==(z=S.rank)&&void 0!==z?z:1e9)||(x.namey.score-_.score||d(_.completion,y.completion))){let _=m.completion;!u||u.label!=_.label||u.detail!=_.detail||null!=u.type&&null!=_.type&&u.type!=_.type||u.apply!=_.apply||u.boost!=_.boost?a.push(m):mZ(m.completion)>mZ(u)&&(a[a.length-1]=m),u=m.completion}return a}(e,n);if(!a.length)return r&&e.some(d=>1==d.state)?new K5(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let u=n.facet(K1).selectOnOpen?0:-1;if(r&&r.selected!=u&&-1!=r.selected){let d=r.options[r.selected].completion;for(let m=0;mm.hasResult()?Math.min(d,m.from):d,1e8),create:lLe,above:s.aboveCursor},r?r.timestamp:Date.now(),u,!1)}map(e){return new K5(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class mk{constructor(e,n,i){this.active=e,this.id=n,this.open=i}static start(){return new mk(aLe,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:n}=e,i=n.facet(K1),s=(i.override||n.languageDataAt("autocomplete",Hh(n)).map(YHe)).map(u=>(this.active.find(m=>m.source==u)||new Y2(u,this.active.some(m=>0!=m.state)?1:0)).update(e,i));s.length==this.active.length&&s.every((u,d)=>u==this.active[d])&&(s=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||s.some(u=>u.hasResult()&&e.changes.touchesRange(u.from,u.to))||!function sLe(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n1==u.state)&&(a=null),!a&&s.every(u=>1!=u.state)&&s.some(u=>u.hasResult())&&(s=s.map(u=>u.hasResult()?new Y2(u.source,0):u));for(let u of e.effects)u.is(YH)&&(a=a&&a.setSelected(u.value,this.id));return s==this.active&&a==this.open?this:new mk(s,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:oLe}}const oLe={"aria-autocomplete":"list"};function gZ(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const aLe=[];function KH(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(qH);if(n&&e.activateOnCompletion(n))return"input"}return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class Y2{constructor(e,n,i=-1){this.source=e,this.state=n,this.explicitPos=i}hasResult(){return!1}update(e,n){let i=KH(e,n),r=this;i?r=r.handleUserEvent(e,i,n):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new Y2(r.source,0));for(let s of e.effects)if(s.is(pk))r=new Y2(r.source,1,s.value?Hh(e.state):-1);else if(s.is(ob))r=new Y2(r.source,0);else if(s.is(vZ))for(let a of s.value)a.source==r.source&&(r=a);return r}handleUserEvent(e,n,i){return"delete"!=n&&i.activateOnTyping?new Y2(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(Hh(e.startState))?new Y2(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Y2(this.source,this.state,e.mapPos(this.explicitPos))}}class Y5 extends Y2{constructor(e,n,i,r,s){super(e,2,n),this.result=i,this.from=r,this.to=s}hasResult(){return!0}handleUserEvent(e,n,i){var r;let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let a=e.changes.mapPos(this.from),u=e.changes.mapPos(this.to,1),d=Hh(e.state);if((this.explicitPos<0?d<=a:du||!s||"delete"==n&&Hh(e.startState)==this.from)return new Y2(this.source,"input"==n&&i.activateOnTyping?1:0);let m=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function cLe(t,e,n,i){if(!t)return!1;let r=e.sliceDoc(n,i);return"function"==typeof t?t(r,n,i,e):fZ(t,!0).test(r)}(s.validFor,e.state,a,u)?new Y5(this.source,m,s,a,u):s.update&&(s=s.update(s,a,u,new lZ(e.state,d,m>=0)))?new Y5(this.source,m,s,s.from,null!==(r=s.to)&&void 0!==r?r:Hh(e.state)):new Y2(this.source,1,m)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Y2(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Y5(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Y2(this.source,0)}}const vZ=Uo.define({map:(t,e)=>t.map(n=>n.map(e))}),YH=Uo.define(),D1=e1.define({create:()=>mk.start(),update:(t,e)=>t.update(e),provide:t=>[CS.from(t,e=>e.tooltip),ps.contentAttributes.from(t,e=>e.attrs)]});function QH(t,e){const n=e.completion.apply||e.completion.label;let i=t.state.field(D1).active.find(r=>r.source==e.source);return i instanceof Y5&&("string"==typeof n?t.dispatch(Object.assign(Object.assign({},function KHe(t,e,n,i){let{main:r}=t.selection,s=n-r.from,a=i-r.from;return Object.assign(Object.assign({},t.changeByRange(u=>u!=r&&n!=i&&t.sliceDoc(u.from+s,u.from+a)!=t.sliceDoc(n,i)?{range:u}:{changes:{from:u.from+s,to:i==r.from?u.to:u.from+a,insert:e},range:mi.cursor(u.from+s+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(t.state,n,i.from,i.to)),{annotations:qH.of(e.completion)})):n(t,e.completion,i.from,i.to),!0)}const lLe=nLe(D1,QH);function gk(t,e="option"){return n=>{let i=n.state.field(D1,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+r*(t?1:-1):t?0:a-1;return u<0?u="page"==e?0:a-1:u>=a&&(u="page"==e?a-1:0),n.dispatch({effects:YH.of(u)}),!0}}class hLe{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const gLe=Vc.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(D1).active)1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(D1),n=t.state.facet(K1);if(!t.selectionSet&&!t.docChanged&&t.startState.field(D1)==e)return;let i=t.transactions.some(s=>(s.selection||s.docChanged)&&!KH(s,n));for(let s=0;s50&&Date.now()-a.time>1e3){for(let u of a.context.abortListeners)try{u()}catch(d){K2(this.view.state,d)}a.context.abortListeners=null,this.running.splice(s--,1)}else a.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(s=>s.effects.some(a=>a.is(pk)))&&(this.pendingStart=!0);let r=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>1==s.state&&!this.running.some(a=>a.active.source==s.source))?setTimeout(()=>this.startUpdate(),r):-1,0!=this.composing)for(let s of t.transactions)"input"==KH(s,n)?this.composing=2:2==this.composing&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(D1);for(let n of e.active)1==n.state&&!this.running.some(i=>i.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=Hh(e),i=new lZ(e,n,t.explicitPos==n),r=new hLe(t,i);this.running.push(r),Promise.resolve(t.source(i)).then(s=>{r.context.aborted||(r.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:ob.of(null)}),K2(this.view.state,s)})}scheduleAccept(){this.running.every(t=>void 0!==t.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(K1).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(K1);for(let i=0;ia.source==r.active.source);if(s&&1==s.state)if(null==r.done){let a=new Y2(r.active.source,0);for(let u of r.updates)a=a.update(u,n);1!=a.state&&e.push(a)}else this.startQuery(s)}e.length&&this.view.dispatch({effects:vZ.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(D1,!1);if(e&&e.tooltip&&this.view.state.facet(K1).closeOnBlur){let n=e.open&&zY(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:ob.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:pk.of(!1)}),20),this.composing=0}}}),vLe="object"==typeof navigator&&/Win/.test(navigator.platform),_Le=v0.highest(ps.domEventHandlers({keydown(t,e){let n=e.state.field(D1,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&(!vLe||!t.altKey)||t.metaKey)return!1;let i=n.open.options[n.open.selected],r=n.active.find(a=>a.source==i.source),s=i.completion.commitCharacters||r.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&QH(e,i),!1}})),_Z=ps.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),cb={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Np=Uo.define({map:(t,e)=>e.mapPos(t,-1,q2.TrackAfter)??void 0}),tL=new class extends Dp{};tL.startSide=1,tL.endSide=-1;const SZ=e1.define({create:()=>Qc.empty,update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of e.effects)n.is(Np)&&(t=t.update({add:[tL.range(n.value,n.value+1)]}));return t}}),nL="()[]{}<>";function kZ(t){for(let e=0;e<8;e+=2)if(nL.charCodeAt(e)==t)return nL.charAt(e+1);return YI(t<128?t:t+1)}function EZ(t,e){return t.languageDataAt("closeBrackets",e)[0]||cb}const OLe="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),HLe=ps.inputHandler.of((t,e,n,i)=>{if((OLe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let r=t.state.selection.main;if(i.length>2||2==i.length&&1==Dd(G1(i,0))||e!=r.from||n!=r.to)return!1;let s=function zLe(t,e){let n=EZ(t,t.selection.main.head),i=n.brackets||cb.brackets;for(let r of i){let s=kZ(G1(r,0));if(e==r)return s==r?jLe(t,r,i.indexOf(r+r+r)>-1,n):NLe(t,r,s,n.before||cb.before);if(e==s&&DZ(t,t.selection.main.from))return PLe(t,0,s)}return null}(t.state,i);return!!s&&(t.dispatch(s),!0)}),LLe=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=EZ(t,t.selection.main.head).brackets||cb.brackets,r=null,s=t.changeByRange(a=>{if(a.empty){let u=function RLe(t,e){let n=t.sliceString(e-2,e);return Dd(G1(n,0))==n.length?n:n.slice(1)}(t.doc,a.head);for(let d of i)if(d==u&&vk(t.doc,a.head)==kZ(G1(d,0)))return{changes:{from:a.head-d.length,to:a.head+d.length},range:mi.cursor(a.head-d.length)}}return{range:r=a}});return r||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function DZ(t,e){let n=!1;return t.field(SZ).between(0,t.doc.length,i=>{i==e&&(n=!0)}),n}function vk(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Dd(G1(n,0)))}function NLe(t,e,n,i){let r=null,s=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:n,from:a.to}],effects:Np.of(a.to+e.length),range:mi.range(a.anchor+e.length,a.head+e.length)};let u=vk(t.doc,a.head);return!u||/\s/.test(u)||i.indexOf(u)>-1?{changes:{insert:e+n,from:a.head},effects:Np.of(a.head+e.length),range:mi.cursor(a.head+e.length)}:{range:r=a}});return r?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function PLe(t,e,n){let i=null,r=t.changeByRange(s=>s.empty&&vk(t.doc,s.head)==n?{changes:{from:s.head,to:s.head+n.length,insert:n},range:mi.cursor(s.head+n.length)}:i={range:s});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function jLe(t,e,n,i){let r=i.stringPrefixes||cb.stringPrefixes,s=null,a=t.changeByRange(u=>{if(!u.empty)return{changes:[{insert:e,from:u.from},{insert:e,from:u.to}],effects:Np.of(u.to+e.length),range:mi.range(u.anchor+e.length,u.head+e.length)};let _,d=u.head,m=vk(t.doc,d);if(m==e){if(TZ(t,d))return{changes:{insert:e+e,from:d},effects:Np.of(d+e.length),range:mi.cursor(d+e.length)};if(DZ(t,d)){let x=n&&t.sliceDoc(d,d+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:d,to:d+x.length,insert:x},range:mi.cursor(d+x.length)}}}else{if(n&&t.sliceDoc(d-2*e.length,d)==e+e&&(_=VZ(t,d-2*e.length,r))>-1&&TZ(t,_))return{changes:{insert:e+e+e+e,from:d},effects:Np.of(d+e.length),range:mi.cursor(d+e.length)};if(t.charCategorizer(d)(m)!=Yc.Word&&VZ(t,d,r)>-1&&!function FLe(t,e,n,i){let r=t1(t).resolveInner(e,-1),s=i.reduce((a,u)=>Math.max(a,u.length),0);for(let a=0;a<5;a++){let u=t.sliceDoc(r.from,Math.min(r.to,r.from+n.length+s)),d=u.indexOf(n);if(!d||d>-1&&i.indexOf(u.slice(0,d))>-1){let _=r.firstChild;for(;_&&_.from==r.from&&_.to-_.from>n.length+d;){if(t.sliceDoc(_.to-n.length,_.to)==n)return!1;_=_.firstChild}return!0}let m=r.to==e&&r.parent;if(!m)break;r=m}return!1}(t,d,e,r))return{changes:{insert:e+e,from:d},effects:Np.of(d+e.length),range:mi.cursor(d+e.length)}}return{range:s=u}});return s?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function TZ(t,e){let n=t1(t).resolveInner(e+1);return n.parent&&n.from==e}function VZ(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=Yc.Word)return e;for(let r of n){let s=e-r.length;if(t.sliceDoc(s,e)==r&&i(t.sliceDoc(s-1,s))!=Yc.Word)return s}return-1}function BLe(t={}){return[_Le,D1,K1.of(t),gLe,$Le,_Z]}const AZ=[{key:"Ctrl-Space",run:t=>!!t.state.field(D1,!1)&&(t.dispatch({effects:pk.of(!0)}),!0)},{key:"Escape",run:t=>{let e=t.state.field(D1,!1);return!(!e||!e.active.some(n=>0!=n.state)||(t.dispatch({effects:ob.of(null)}),0))}},{key:"ArrowDown",run:gk(!0)},{key:"ArrowUp",run:gk(!1)},{key:"PageDown",run:gk(!0,"page")},{key:"PageUp",run:gk(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field(D1,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.facet(K1).defaultKeymap?[AZ]:[]));function iL(t){return t.doc.lineAt(t.selection.main.head)}function OZ(t,e){let n=0;e:for(let i=0;iTd(t,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope",thickness:1})});class GLe{constructor(e,n,i,r){this.lines=e,this.state=n,this.map=new Map,this.unitWidth=i,this.markerType=r;for(const s of this.lines)this.add(s);this.state.facet(_k).highlightActiveBlock&&this.findAndSetActiveLines()}has(e){return this.map.has("number"==typeof e?e:e.number)}get(e){const n=this.map.get("number"==typeof e?e:e.number);if(!n)throw new Error("Line not found in indentation map");return n}set(e,n,i){const r=!e.text.trim().length,s={line:e,col:n,level:i,empty:r};return this.map.set(s.line.number,s),s}add(e){if(this.has(e))return this.get(e);if(!e.length||!e.text.trim().length){if(1===e.number)return this.set(e,0,0);if(e.number===this.state.doc.lines){const a=this.closestNonEmpty(e,-1);return this.set(e,0,a.level)}const r=this.closestNonEmpty(e,-1),s=this.closestNonEmpty(e,1);return this.set(e,0,r.level>=s.level&&"codeOnly"!==this.markerType?r.level:r.empty&&0===r.level&&0!==s.level?0:s.level>r.level?r.level+1:s.level)}const n=OZ(e.text,this.state.tabSize),i=Math.floor(n/this.unitWidth);return this.set(e,n,i)}closestNonEmpty(e,n){let i=e.number+n;for(;-1===n?i>=1:i<=this.state.doc.lines;){if(this.has(i)){const a=this.get(i);if(!a.empty)return a}const s=this.state.doc.line(i);if(s.text.trim().length){const a=OZ(s.text,this.state.tabSize),u=Math.floor(a/this.unitWidth);return this.set(s,a,u)}i+=n}const r=this.state.doc.line(-1===n?1:this.state.doc.lines);return this.set(r,0,0)}findAndSetActiveLines(){const e=iL(this.state);if(!this.has(e))return;let i,r,n=this.get(e);if(this.has(n.line.number+1)){const s=this.get(n.line.number+1);s.level>n.level&&(n=s)}if(this.has(n.line.number-1)){const s=this.get(n.line.number-1);s.level>n.level&&(n=s)}if(0!==n.level){for(n.active=n.level,i=n.line.number;i>1;i--){if(!this.has(i-1))continue;const s=this.get(i-1);if(s.level0&&u.push(bk("--indent-marker-bg-color",i,e,a,d)),u.push(bk("--indent-marker-active-bg-color",i,e,s-1,1)),s!==r&&u.push(bk("--indent-marker-bg-color",i,e,s,r-s))}else u.push(bk("--indent-marker-bg-color",i,e,a,r-a));return u.join(",")}class XLe{constructor(e){this.view=e,this.unitWidth=b4(e.state),this.currentLineNumber=iL(e.state).number,this.generate(e.state)}update(e){const n=b4(e.state),i=n!==this.unitWidth;i&&(this.unitWidth=n);const r=iL(e.state).number,s=r!==this.currentLineNumber;this.currentLineNumber=r;const a=e.state.facet(_k).highlightActiveBlock&&s;(e.docChanged||e.viewportChanged||i||a)&&this.generate(e.state)}generate(e){const n=new g4,i=function ULe(t,e=t.state){const n=new Set;for(const{from:i,to:r}of t.visibleRanges){let s=i;for(;s<=r;){const a=e.doc.lineAt(s);n.has(a)||n.add(a),s=a.to+1}}return n}(this.view,e),{hideFirstIndent:r,markerType:s,thickness:a}=e.facet(_k),u=new GLe(i,e,this.unitWidth,s);for(const d of i){const m=u.get(d.number);if(!m?.level)continue;const _=qLe(m,this.unitWidth,r,a);n.add(d.from,d.from,Rr.line({class:"cm-indent-markers",attributes:{style:`--indent-markers: ${_}`}}))}this.decorations=n.finish()}}function KLe(t={}){return[_k.of(t),WLe(t.colors),Vc.fromClass(XLe,{decorations:e=>e.decorations})]}const QLe=[Vc.fromClass(class YLe{constructor(e){this.view=e,this.indentUnit=b4(e.state),this.initialPaddingLeft=null,this.isChrome=window?.navigator.userAgent.includes("Chrome"),this.generate(e.state)}update(e){const n=b4(e.state);(n!==this.indentUnit||e.docChanged||e.viewportChanged)&&(this.indentUnit=n,this.generate(e.state))}generate(e){const n=new g4;this.initialPaddingLeft?this.addStyleToBuilder(n,e,this.initialPaddingLeft):this.view.requestMeasure({read:i=>{const r=i.contentDOM.querySelector(".cm-line");r&&(this.initialPaddingLeft=window.getComputedStyle(r).getPropertyValue("padding-left"),this.addStyleToBuilder(n,i.state,this.initialPaddingLeft)),this.decorations=n.finish()}}),this.decorations=n.finish()}addStyleToBuilder(e,n,i){const r=this.getVisibleLines(n);for(const s of r){const{numColumns:a,containsTab:u}=this.numColumns(s.text,n.tabSize);e.add(s.from,s.from,Rr.line({attributes:{style:`padding-left: calc(${a+this.indentUnit}ch + ${i}); text-indent: ${this.isChrome?`calc(-${a+this.indentUnit}ch - ${u?1:0}px)`:`-${a+this.indentUnit}ch`};`}}))}}getVisibleLines(e){const n=new Set;let i=null;for(const{from:r,to:s}of this.view.visibleRanges){let a=r;for(;a<=s;){const u=e.doc.lineAt(a);i!==u&&(n.add(u),i=u),a=u.to+1}}return n}numColumns(e,n){let i=0,r=!1;e:for(let s=0;st.decorations})];F(4574),F(9833);var ZLe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],eze=["mainAxis","crossAxis","limiter"];function HZ(t,e){if(null==t)return{};var n,i,r=function(a,u){if(null==a)return{};var d,m,_={},y=Object.keys(a);for(m=0;m=0||(_[d]=a[d]);return _}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Pp(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ck(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(d){throw d},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var d=n.next();return a=d.done,d},e:function(d){u=!0,s=d},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function gi(){gi=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function($t,Lt,et){$t[Lt]=et.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function m($t,Lt,et){return Object.defineProperty($t,Lt,{value:et,enumerable:!0,configurable:!0,writable:!0}),$t[Lt]}try{m({},"")}catch{m=function(Lt,et,st){return Lt[et]=st}}function _($t,Lt,et,st){var sn=Object.create((Lt&&Lt.prototype instanceof W?Lt:W).prototype),Hn=new ut(st||[]);return r(sn,"_invoke",{value:kt($t,et,Hn)}),sn}function y($t,Lt,et){try{return{type:"normal",arg:$t.call(Lt,et)}}catch(st){return{type:"throw",arg:st}}}e.wrap=_;var x="suspendedStart",S="suspendedYield",D="executing",z="completed",$={};function W(){}function re(){}function se(){}var ke={};m(ke,a,function(){return this});var ye=Object.getPrototypeOf,Ke=ye&&ye(ye(Ut([])));Ke&&Ke!==n&&i.call(Ke,a)&&(ke=Ke);var lt=se.prototype=W.prototype=Object.create(ke);function Vt($t){["next","throw","return"].forEach(function(Lt){m($t,Lt,function(et){return this._invoke(Lt,et)})})}function Nt($t,Lt){function et(gt,sn,Hn,on){var Xt=y($t[gt],$t,sn);if("throw"!==Xt.type){var An=Xt.arg,_n=An.value;return _n&&"object"==Cc(_n)&&i.call(_n,"__await")?Lt.resolve(_n.__await).then(function(Zt){et("next",Zt,Hn,on)},function(Zt){et("throw",Zt,Hn,on)}):Lt.resolve(_n).then(function(Zt){An.value=Zt,Hn(An)},function(Zt){return et("throw",Zt,Hn,on)})}on(Xt.arg)}var st;r(this,"_invoke",{value:function(gt,sn){function Hn(){return new Lt(function(on,Xt){et(gt,sn,on,Xt)})}return st=st?st.then(Hn,Hn):Hn()}})}function kt($t,Lt,et){var st=x;return function(gt,sn){if(st===D)throw Error("Generator is already running");if(st===z){if("throw"===gt)throw sn;return{value:t,done:!0}}for(et.method=gt,et.arg=sn;;){var Hn=et.delegate;if(Hn){var on=qt(Hn,et);if(on){if(on===$)continue;return on}}if("next"===et.method)et.sent=et._sent=et.arg;else if("throw"===et.method){if(st===x)throw st=z,et.arg;et.dispatchException(et.arg)}else"return"===et.method&&et.abrupt("return",et.arg);st=D;var Xt=y($t,Lt,et);if("normal"===Xt.type){if(st=et.done?z:S,Xt.arg===$)continue;return{value:Xt.arg,done:et.done}}"throw"===Xt.type&&(st=z,et.method="throw",et.arg=Xt.arg)}}}function qt($t,Lt){var et=Lt.method,st=$t.iterator[et];if(st===t)return Lt.delegate=null,"throw"===et&&$t.iterator.return&&(Lt.method="return",Lt.arg=t,qt($t,Lt),"throw"===Lt.method)||"return"!==et&&(Lt.method="throw",Lt.arg=new TypeError("The iterator does not provide a '"+et+"' method")),$;var gt=y(st,$t.iterator,Lt.arg);if("throw"===gt.type)return Lt.method="throw",Lt.arg=gt.arg,Lt.delegate=null,$;var sn=gt.arg;return sn?sn.done?(Lt[$t.resultName]=sn.value,Lt.next=$t.nextLoc,"return"!==Lt.method&&(Lt.method="next",Lt.arg=t),Lt.delegate=null,$):sn:(Lt.method="throw",Lt.arg=new TypeError("iterator result is not an object"),Lt.delegate=null,$)}function wt($t){var Lt={tryLoc:$t[0]};1 in $t&&(Lt.catchLoc=$t[1]),2 in $t&&(Lt.finallyLoc=$t[2],Lt.afterLoc=$t[3]),this.tryEntries.push(Lt)}function Dt($t){var Lt=$t.completion||{};Lt.type="normal",delete Lt.arg,$t.completion=Lt}function ut($t){this.tryEntries=[{tryLoc:"root"}],$t.forEach(wt,this),this.reset(!0)}function Ut($t){if($t||""===$t){var Lt=$t[a];if(Lt)return Lt.call($t);if("function"==typeof $t.next)return $t;if(!isNaN($t.length)){var et=-1,st=function gt(){for(;++et<$t.length;)if(i.call($t,et))return gt.value=$t[et],gt.done=!1,gt;return gt.value=t,gt.done=!0,gt};return st.next=st}}throw new TypeError(Cc($t)+" is not iterable")}return re.prototype=se,r(lt,"constructor",{value:se,configurable:!0}),r(se,"constructor",{value:re,configurable:!0}),re.displayName=m(se,d,"GeneratorFunction"),e.isGeneratorFunction=function($t){var Lt="function"==typeof $t&&$t.constructor;return!!Lt&&(Lt===re||"GeneratorFunction"===(Lt.displayName||Lt.name))},e.mark=function($t){return Object.setPrototypeOf?Object.setPrototypeOf($t,se):($t.__proto__=se,m($t,d,"GeneratorFunction")),$t.prototype=Object.create(lt),$t},e.awrap=function($t){return{__await:$t}},Vt(Nt.prototype),m(Nt.prototype,u,function(){return this}),e.AsyncIterator=Nt,e.async=function($t,Lt,et,st,gt){void 0===gt&&(gt=Promise);var sn=new Nt(_($t,Lt,et,st),gt);return e.isGeneratorFunction(Lt)?sn:sn.next().then(function(Hn){return Hn.done?Hn.value:sn.next()})},Vt(lt),m(lt,d,"Generator"),m(lt,a,function(){return this}),m(lt,"toString",function(){return"[object Generator]"}),e.keys=function($t){var Lt=Object($t),et=[];for(var st in Lt)et.push(st);return et.reverse(),function gt(){for(;et.length;){var sn=et.pop();if(sn in Lt)return gt.value=sn,gt.done=!1,gt}return gt.done=!0,gt}},e.values=Ut,ut.prototype={constructor:ut,reset:function($t){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Dt),!$t)for(var Lt in this)"t"===Lt.charAt(0)&&i.call(this,Lt)&&!isNaN(+Lt.slice(1))&&(this[Lt]=t)},stop:function(){this.done=!0;var $t=this.tryEntries[0].completion;if("throw"===$t.type)throw $t.arg;return this.rval},dispatchException:function($t){if(this.done)throw $t;var Lt=this;function et(Xt,An){return sn.type="throw",sn.arg=$t,Lt.next=Xt,An&&(Lt.method="next",Lt.arg=t),!!An}for(var st=this.tryEntries.length-1;st>=0;--st){var gt=this.tryEntries[st],sn=gt.completion;if("root"===gt.tryLoc)return et("end");if(gt.tryLoc<=this.prev){var Hn=i.call(gt,"catchLoc"),on=i.call(gt,"finallyLoc");if(Hn&&on){if(this.prev=0;--et){var st=this.tryEntries[et];if(st.tryLoc<=this.prev&&i.call(st,"finallyLoc")&&this.prev=0;--Lt){var et=this.tryEntries[Lt];if(et.finallyLoc===$t)return this.complete(et.completion,et.afterLoc),Dt(et),$}},catch:function($t){for(var Lt=this.tryEntries.length-1;Lt>=0;--Lt){var et=this.tryEntries[Lt];if(et.tryLoc===$t){var st=et.completion;if("throw"===st.type){var gt=st.arg;Dt(et)}return gt}}throw Error("illegal catch attempt")},delegateYield:function($t,Lt,et){return this.delegate={iterator:Ut($t),resultName:Lt,nextLoc:et},"next"===this.method&&(this.arg=t),$}},e}function LZ(t,e,n,i,r,s,a){try{var u=t[s](a),d=u.value}catch(m){return void n(m)}u.done?e(d):Promise.resolve(d).then(i,r)}function es(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var s=t.apply(e,n);function a(d){LZ(s,i,r,a,u,"next",d)}function u(d){LZ(s,i,r,a,u,"throw",d)}a(void 0)})}}function ds(t,e){return RZ(t)||function(n,i){var r=null==n?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var s,a,u,d,m=[],_=!0,y=!1;try{if(u=(r=r.call(n)).next,0===i){if(Object(r)!==r)return;_=!1}else for(;!(_=(s=u.call(r)).done)&&(m.push(s.value),m.length!==i);_=!0);}catch(x){y=!0,a=x}finally{try{if(!_&&null!=r.return&&(d=r.return(),Object(d)!==d))return}finally{if(y)throw a}}return m}}(t,e)||Ck(t,e)||zZ()}function zZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function RZ(t){if(Array.isArray(t))return t}function _r(t,e,n){return e=yk(e),function(i,r){if(r&&("object"===Cc(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(s){if(void 0===s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i)}(t,NZ()?Reflect.construct(e,n||[],yk(t).constructor):e.apply(t,n))}function NZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NZ=function(){return!!t})()}function yk(t){return(yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function br(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rL(t,e)}function rL(t,e){return(rL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n})(t,e)}function PZ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function yn(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n32){for(var e=[],n=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=n.bubbles,s=n.cancelable;return new CustomEvent(t,{detail:e,bubbles:void 0!==i&&i,cancelable:void 0!==s&&s})}function E3(t,e){return new t(e)}var ub,wk=new Map,lL=0;function eee(t,e,n,i,r,s,a){for(var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,d=16.666/i,m="{\n",_=0;_<=1;_+=d){var y=e+(n-e)*s(_);m+=100*_+"%{".concat(a(y,1-y),"}\n")}var se,ye,x=m+"100% {".concat(a(n,1-n),"}\n}"),S="__svelte_".concat(function(se){for(var ke=5381,ye=se.length;ye--;)ke=(ke<<5)-ke^se.charCodeAt(ye);return ke>>>0}(x),"_").concat(u),D=cL(t),z=wk.get(D)||(se=D,ye={stylesheet:nze(t),rules:{}},wk.set(se,ye),ye),$=z.stylesheet,W=z.rules;W[S]||(W[S]=!0,$.insertRule("@keyframes ".concat(S," ").concat(x),$.cssRules.length));var re=t.style.animation||"";return t.style.animation="".concat(re?"".concat(re,", "):"").concat(S," ").concat(i,"ms linear ").concat(r,"ms 1 both"),lL+=1,S}function db(t){ub=t}function Z5(){if(!ub)throw new Error("Function called outside component initialization");return ub}function Hd(t){Z5().$$.on_mount.push(t)}function Zu(t){Z5().$$.on_destroy.push(t)}function tee(){var t=Z5();return function(e,n){var i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[e];if(s){var a=ZZ(e,n,{cancelable:void 0!==i&&i});return s.slice().forEach(function(u){u.call(t,a)}),!a.defaultPrevented}return!0}}function nee(t,e){return Z5().$$.context.set(t,e),e}function V1(t){return Z5().$$.context.get(t)}function Mk(t,e){var n=this,i=t.$$.callbacks[e.type];i&&i.slice().forEach(function(r){return r.call(n,e)})}var e7=[],Vs=[],t7=[],uL=[],iee=Promise.resolve(),dL=!1;function ree(){dL||(dL=!0,iee.then(see))}function El(){return ree(),iee}function Fp(t){t7.push(t)}function Q2(t){uL.push(t)}var Sk,fL=new Set,n7=0;function see(){if(0===n7){var t=ub;do{try{for(;n7d.start&&(u=y(d,se),d=null,hL(t,u.b,"start"),Vt&&(_(),m=eee(t,a,u.b,u.duration,0,ye,s.css))),u&&(kt>=u.end?(lt(a=u.b,1-a),hL(t,u.b,"end"),d||(u.b?_():--u.group.r||ma(u.group.c)),u=null):kt>=u.start&&(a=u.a+u.d*ye((kt-u.start)/u.duration),lt(a,1-a))),!(!u&&!d)},0===lb.size&&oL(KZ),new Promise(function(kt){lb.add({c:D,f:kt})}))}return{run:function(S){T1(s)?(Sk||(Sk=Promise.resolve()).then(function(){Sk=null}),Sk).then(function(){s=s({direction:S?"in":"out"}),x(S)}):x(S)},end:function(){_(),u=d=null}}}function cs(t){return void 0!==t?.length?t:Array.from(t)}function aze(t,e){t.d(1),e.delete(t.key)}function pL(t,e){je(t,1,1,function(){e.delete(t.key)})}function Dk(t,e,n,i,r,s,a,u,d,m,_,y){for(var x=t.length,S=s.length,D=x,z={};D--;)z[t[D].key]=D;var $=[],W=new Map,re=new Map,se=[];D=S;for(var ke=function(){var Dt=y(r,s,D),ut=n(Dt),Ut=a.get(ut);Ut?i&&se.push(function(){return Ut.p(Dt,e)}):(Ut=m(ut,Dt)).c(),W.set(ut,$[D]=Ut),ut in z&&re.set(ut,Math.abs(D-z[ut]))};D--;)ke();var ye=new Set,Ke=new Set;function lt(Dt){Me(Dt,1),Dt.m(u,_),a.set(Dt.key,Dt),_=Dt.first,S--}for(;x&&S;){var Vt=$[S-1],Nt=t[x-1],kt=Vt.key,qt=Nt.key;Vt===Nt?(_=Vt.first,x--,S--):W.has(qt)?!a.has(kt)||ye.has(kt)?lt(Vt):Ke.has(qt)?x--:re.get(kt)>re.get(qt)?(Ke.add(kt),lt(Vt)):(ye.add(qt),x--):(d(Nt,a),x--)}for(;x--;){var wt=t[x];W.has(wt.key)||d(wt,a)}for(;S;)lt($[S-1]);return ma(se),$}function Ld(t,e){for(var n={},i={},r={$$scope:1},s=t.length;s--;){var a=t[s],u=e[s];if(u){for(var d in a)d in u||(i[d]=1);for(var m in u)r[m]||(n[m]=u[m],r[m]=1);t[s]=u}else for(var _ in a)r[_]=1}for(var y in i)y in n||(n[y]=void 0);return n}function Bp(t){return"object"===Cc(t)&&null!==t?t:{}}function J2(t,e,n){var i=t.$$.props[e];void 0!==i&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Nn(t){t&&t.c()}function zn(t,e,n){var i=t.$$,r=i.fragment,s=i.after_update;r&&r.m(e,n),Fp(function(){var a,u=t.$$.on_mount.map(UZ).filter(T1);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,Ts(u)):ma(u),t.$$.on_mount=[]}),s.forEach(Fp)}function Rn(t,e){var n,i,r,s=t.$$;null!==s.fragment&&(n=s.after_update,i=[],r=[],t7.forEach(function(a){return-1===n.indexOf(a)?i.push(a):r.push(a)}),r.forEach(function(a){return a()}),t7=i,ma(s.on_destroy),s.fragment&&s.fragment.d(e),s.on_destroy=s.fragment=null,s.ctx=[])}function yr(t,e,n,i,r,s){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],d=ub;db(t);var m=t.$$={fragment:null,ctx:[],props:s,update:hi,not_equal:r,bound:GZ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:GZ(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};a&&a(m.root);var _=!1;if(m.ctx=n?n(t,e.props||{},function(x,S){var z,$,D=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:S;return m.ctx&&r(m.ctx[x],m.ctx[x]=D)&&(!m.skip_bound&&m.bound[x]&&m.bound[x](D),_&&($=x,-1===(z=t).$$.dirty[0]&&(e7.push(z),ree(),z.$$.dirty.fill(0)),z.$$.dirty[$/31|0]|=1<<$%31)),S}):[],m.update(),_=!0,ma(m.before_update),m.fragment=!!i&&i(m.ctx),e.target){if(e.hydrate){var y=Array.from(e.target.childNodes);m.fragment&&m.fragment.l(y),y.forEach(At)}else m.fragment&&m.fragment.c();e.intro&&Me(t.$$.fragment),zn(t,e.target,e.anchor),see()}db(d)}var Cr=pr(function t(){hr(this,t),Ju(this,"$$",void 0),Ju(this,"$$set",void 0)},[{key:"$destroy",value:function(){Rn(this,1),this.$destroy=hi}},{key:"$on",value:function(t,e){if(!T1(e))return hi;var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var i=n.indexOf(e);-1!==i&&n.splice(i,1)}}},{key:"$set",value:function(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]);function v1(t){var i,r;if(!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:(i=t,null!=(r=function(s){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage.debug}catch{}}())&&r.endsWith("*")?i.startsWith(r.slice(0,-1)):i===r)))return cze;var n=function(i){for(var r=0,s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=e.delay,i=void 0===n?0:n,r=e.duration,s=void 0===r?400:r,a=e.easing,u=void 0===a?$Z:a,d=+getComputedStyle(t).opacity;return{delay:i,duration:s,easing:u,css:function(m){return"opacity: ".concat(m*d)}}}var uze=aL.window;function dze(t){as(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function aee(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se=t[1].closeButton&&cee(t),ke=t[2];return ke&&(a=E3(ke,{})),{c:function(){e=pt("div"),n=pt("div"),i=pt("div"),se&&se.c(),r=gn(),s=pt("div"),a&&Nn(a.$$.fragment),ce(s,"class",u=Oc(t[1].classContent)+" svelte-n7cvum"),ce(s,"style",t[9]),$n(s,"content",!t[0]),ce(i,"class",d=Oc(t[1].classWindow)+" svelte-n7cvum"),ce(i,"role","dialog"),ce(i,"aria-modal","true"),ce(i,"aria-label",m=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),ce(i,"aria-labelledby",_=t[1].ariaLabelledBy||null),ce(i,"style",t[8]),$n(i,"window",!t[0]),ce(n,"class",x=Oc(t[1].classWindowWrap)+" svelte-n7cvum"),ce(n,"style",t[7]),$n(n,"wrap",!t[0]),ce(e,"aria-hidden","true"),ce(e,"id",S=t[1].id),ce(e,"class",D=Oc(t[1].classBg)+" svelte-n7cvum"),ce(e,"style",t[6]),$n(e,"bg",!t[0])},m:function(ye,Ke){Ht(ye,e,Ke),Ge(e,n),Ge(n,i),se&&se.m(i,null),Ge(i,r),Ge(i,s),a&&zn(a,s,null),t[50](i),t[51](n),t[52](e),$=!0,W||(re=[ei(i,"introstart",function(){T1(t[13])&&t[13].apply(this,arguments)}),ei(i,"outrostart",function(){T1(t[14])&&t[14].apply(this,arguments)}),ei(i,"introend",function(){T1(t[15])&&t[15].apply(this,arguments)}),ei(i,"outroend",function(){T1(t[16])&&t[16].apply(this,arguments)}),ei(e,"mousedown",t[20]),ei(e,"mouseup",t[21])],W=!0)},p:function(ye,Ke){if((t=ye)[1].closeButton?se?(se.p(t,Ke),2&Ke[0]&&Me(se,1)):((se=cee(t)).c(),Me(se,1),se.m(i,r)):se&&(si(),je(se,1,1,function(){se=null}),oi()),4&Ke[0]&&ke!==(ke=t[2])){if(a){si();var lt=a;je(lt.$$.fragment,1,0,function(){Rn(lt,1)}),oi()}ke?(Nn((a=E3(ke,{})).$$.fragment),Me(a.$$.fragment,1),zn(a,s,null)):a=null}(!$||2&Ke[0]&&u!==(u=Oc(t[1].classContent)+" svelte-n7cvum"))&&ce(s,"class",u),(!$||512&Ke[0])&&ce(s,"style",t[9]),(!$||3&Ke[0])&&$n(s,"content",!t[0]),(!$||2&Ke[0]&&d!==(d=Oc(t[1].classWindow)+" svelte-n7cvum"))&&ce(i,"class",d),(!$||2&Ke[0]&&m!==(m=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&ce(i,"aria-label",m),(!$||2&Ke[0]&&_!==(_=t[1].ariaLabelledBy||null))&&ce(i,"aria-labelledby",_),(!$||256&Ke[0])&&ce(i,"style",t[8]),(!$||3&Ke[0])&&$n(i,"window",!t[0]),(!$||2&Ke[0]&&x!==(x=Oc(t[1].classWindowWrap)+" svelte-n7cvum"))&&ce(n,"class",x),(!$||128&Ke[0])&&ce(n,"style",t[7]),(!$||3&Ke[0])&&$n(n,"wrap",!t[0]),(!$||2&Ke[0]&&S!==(S=t[1].id))&&ce(e,"id",S),(!$||2&Ke[0]&&D!==(D=Oc(t[1].classBg)+" svelte-n7cvum"))&&ce(e,"class",D),(!$||64&Ke[0])&&ce(e,"style",t[6]),(!$||3&Ke[0])&&$n(e,"bg",!t[0])},i:function(ye){$||(Me(se),a&&Me(a.$$.fragment,ye),ye&&Fp(function(){$&&(y||(y=Ek(i,t[12],t[1].transitionWindowProps,!0)),y.run(1))}),ye&&Fp(function(){$&&(z||(z=Ek(e,t[11],t[1].transitionBgProps,!0)),z.run(1))}),$=!0)},o:function(ye){je(se),a&&je(a.$$.fragment,ye),ye&&(y||(y=Ek(i,t[12],t[1].transitionWindowProps,!1)),y.run(0)),ye&&(z||(z=Ek(e,t[11],t[1].transitionBgProps,!1)),z.run(0)),$=!1},d:function(ye){ye&&At(e),se&&se.d(),a&&Rn(a),t[50](null),ye&&y&&y.end(),t[51](null),t[52](null),ye&&z&&z.end(),W=!1,ma(re)}}}function cee(t){var e,n,i,r,s,a=[hze,fze],u=[];function d(m,_){return 2&_[0]&&(e=null),null==e&&(e=!!m[17](m[1].closeButton)),e?0:1}return n=d(t,[-1,-1,-1]),i=u[n]=a[n](t),{c:function(){i.c(),r=ho()},m:function(m,_){u[n].m(m,_),Ht(m,r,_),s=!0},p:function(m,_){var y=n;(n=d(m,_))===y?u[n].p(m,_):(si(),je(u[y],1,1,function(){u[y]=null}),oi(),(i=u[n])?i.p(m,_):(i=u[n]=a[n](m)).c(),Me(i,1),i.m(r.parentNode,r))},i:function(m){s||(Me(i),s=!0)},o:function(m){je(i),s=!1},d:function(m){m&&At(r),u[n].d(m)}}}function fze(t){var e,n,i,r;return{c:function(){ce(e=pt("button"),"class",n=Oc(t[1].classCloseButton)+" svelte-n7cvum"),ce(e,"aria-label","Close modal"),ce(e,"style",t[10]),ce(e,"type","button"),$n(e,"close",!t[0])},m:function(s,a){Ht(s,e,a),i||(r=ei(e,"click",t[18]),i=!0)},p:function(s,a){2&a[0]&&n!==(n=Oc(s[1].classCloseButton)+" svelte-n7cvum")&&ce(e,"class",n),1024&a[0]&&ce(e,"style",s[10]),3&a[0]&&$n(e,"close",!s[0])},i:hi,o:hi,d:function(s){s&&At(e),i=!1,r()}}}function hze(t){var e,n,i,r=t[1].closeButton;function s(a,u){return{props:{onClose:a[18]}}}return r&&(e=E3(r,s(t))),{c:function(){e&&Nn(e.$$.fragment),n=ho()},m:function(a,u){e&&zn(e,a,u),Ht(a,n,u),i=!0},p:function(a,u){if(2&u[0]&&r!==(r=a[1].closeButton)){if(e){si();var d=e;je(d.$$.fragment,1,0,function(){Rn(d,1)}),oi()}r?(Nn((e=E3(r,s(a))).$$.fragment),Me(e.$$.fragment,1),zn(e,n.parentNode,n)):e=null}},i:function(a){i||(e&&Me(e.$$.fragment,a),i=!0)},o:function(a){e&&je(e.$$.fragment,a),i=!1},d:function(a){a&&At(n),e&&Rn(e,a)}}}function pze(t){var e,n,i,r,s=t[2]&&aee(t),a=t[49].default,u=jc(a,t,t[48],null);return{c:function(){s&&s.c(),e=gn(),u&&u.c()},m:function(d,m){s&&s.m(d,m),Ht(d,e,m),u&&u.m(d,m),n=!0,i||(r=ei(uze,"keydown",t[19]),i=!0)},p:function(d,m){d[2]?s?(s.p(d,m),4&m[0]&&Me(s,1)):((s=aee(d)).c(),Me(s,1),s.m(e.parentNode,e)):s&&(si(),je(s,1,1,function(){s=null}),oi()),u&&u.p&&(!n||131072&m[1])&&Bc(u,a,d,d[48],n?Fc(a,d[48],m,null):$c(d[48]),null)},i:function(d){n||(Me(s),Me(u,d),n=!0)},o:function(d){je(s),je(u,d),n=!1},d:function(d){d&&At(e),s&&s.d(d),u&&u.d(d),i=!1,r()}}}function lee(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){return new t(yn(yn({},n),{},{props:yn(yn({},e),n.props)}))}}function mze(t,e,n){var i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re=e.$$slots,se=void 0===re?{}:re,ke=e.$$scope,ye=tee(),lt=e.isTabbable,Vt=void 0===lt?function(Bn){return Bn.tabIndex>=0&&!Bn.hidden&&!Bn.disabled&&"none"!==Bn.style.display&&"hidden"!==Bn.type&&!!(Bn.offsetWidth||Bn.offsetHeight||Bn.getClientRects().length)}:lt,Nt=e.show,kt=void 0===Nt?null:Nt,qt=e.id,wt=void 0===qt?null:qt,Dt=e.key,ut=void 0===Dt?"simple-modal":Dt,Ut=e.ariaLabel,$t=void 0===Ut?null:Ut,Lt=e.ariaLabelledBy,et=void 0===Lt?null:Lt,st=e.closeButton,gt=void 0===st||st,sn=e.closeOnEsc,Hn=void 0===sn||sn,on=e.closeOnOuterClick,Xt=void 0===on||on,An=e.styleBg,_n=void 0===An?{}:An,Zt=e.styleWindowWrap,wi=void 0===Zt?{}:Zt,zi=e.styleWindow,Zn=void 0===zi?{}:zi,En=e.styleContent,Nr=void 0===En?{}:En,Pr=e.styleCloseButton,va=void 0===Pr?{}:Pr,Qo=e.classBg,fn=void 0===Qo?null:Qo,Yr=e.classWindowWrap,sa=void 0===Yr?null:Yr,oa=e.classWindow,Jo=void 0===oa?null:oa,qi=e.classContent,$s=void 0===qi?null:qi,Mi=e.classCloseButton,Or=void 0===Mi?null:Mi,tc=e.unstyled,xa=void 0!==tc&&tc,I1=e.setContext,r1=void 0===I1?nee:I1,s1=e.transitionBg,fl=void 0===s1?lze:s1,Ho=e.transitionBgProps,Ul=void 0===Ho?{duration:250}:Ho,fc=e.transitionWindow,Tl=void 0===fc?fl:fc,Oa=e.transitionWindowProps,Gl=void 0===Oa?Ul:Oa,Z2=e.disableFocusTrap,O1=void 0!==Z2&&Z2,Wl={id:wt,ariaLabel:$t,ariaLabelledBy:et,closeButton:gt,closeOnEsc:Hn,closeOnOuterClick:Xt,styleBg:_n,styleWindowWrap:wi,styleWindow:Zn,styleContent:Nr,styleCloseButton:va,classBg:fn,classWindowWrap:sa,classWindow:Jo,classContent:$s,classCloseButton:Or,transitionBg:fl,transitionBgProps:Ul,transitionWindow:Tl,transitionWindowProps:Gl,disableFocusTrap:O1,isTabbable:Vt,unstyled:xa},bs=yn({},Wl),Jc=null,Gc=function(Bn){return Bn?Object.keys(Bn).reduce(function(to,wa){return"".concat(to,"; ").concat((ys=wa,ys.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Bn[wa]);var ys},""):""},J1=function(Bn){return!!(Bn&&Bn.constructor&&Bn.call&&Bn.apply)},o1=function(){},a1=o1,Tn=o1,Fi=o1,ss=o1,Fo=function(Bn){var to=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},wa=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n(2,Jc=lee(Bn,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),n(1,bs=yn(yn({},Wl),to)),n(6,u=Gc(Object.assign({},{width:window.innerWidth,height:window.innerHeight},bs.styleBg))),n(7,d=Gc(bs.styleWindowWrap)),n(8,m=Gc(bs.styleWindow)),n(9,_=Gc(bs.styleContent)),n(10,y=Gc(bs.styleCloseButton)),n(11,x=bs.transitionBg),n(12,S=bs.transitionWindow),Dn(),n(13,a1=function(ys){wa.onOpen&&wa.onOpen(ys),ye("open"),ye("opening")}),n(14,Tn=function(ys){wa.onClose&&wa.onClose(ys),ye("close"),ye("closing")}),n(15,Fi=function(ys){wa.onOpened&&wa.onOpened(ys),ye("opened")}),n(16,ss=function(ys){wa.onClosed&&wa.onClosed(ys),ye("closed")})},Xs=function(){var Bn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Jc&&(n(14,Tn=Bn.onClose||Tn),n(16,ss=Bn.onClosed||ss),n(2,Jc=null),ji())},Dn=function(){a=window.scrollY,D=document.body.style.position,z=document.body.style.overflow,$=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(a,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},ji=function(){document.body.style.position=D||"",document.body.style.top="",document.body.style.overflow=z||"",document.body.style.width=$||"",window.scrollTo({top:a,left:0,behavior:"instant"})};r1(ut,{open:Fo,close:Xs});var Yi=!1;return Zu(function(){Yi&&Xs()}),Hd(function(){n(47,Yi=!0)}),t.$$set=function(Bn){"isTabbable"in Bn&&n(22,Vt=Bn.isTabbable),"show"in Bn&&n(23,kt=Bn.show),"id"in Bn&&n(24,wt=Bn.id),"key"in Bn&&n(25,ut=Bn.key),"ariaLabel"in Bn&&n(26,$t=Bn.ariaLabel),"ariaLabelledBy"in Bn&&n(27,et=Bn.ariaLabelledBy),"closeButton"in Bn&&n(28,gt=Bn.closeButton),"closeOnEsc"in Bn&&n(29,Hn=Bn.closeOnEsc),"closeOnOuterClick"in Bn&&n(30,Xt=Bn.closeOnOuterClick),"styleBg"in Bn&&n(31,_n=Bn.styleBg),"styleWindowWrap"in Bn&&n(32,wi=Bn.styleWindowWrap),"styleWindow"in Bn&&n(33,Zn=Bn.styleWindow),"styleContent"in Bn&&n(34,Nr=Bn.styleContent),"styleCloseButton"in Bn&&n(35,va=Bn.styleCloseButton),"classBg"in Bn&&n(36,fn=Bn.classBg),"classWindowWrap"in Bn&&n(37,sa=Bn.classWindowWrap),"classWindow"in Bn&&n(38,Jo=Bn.classWindow),"classContent"in Bn&&n(39,$s=Bn.classContent),"classCloseButton"in Bn&&n(40,Or=Bn.classCloseButton),"unstyled"in Bn&&n(0,xa=Bn.unstyled),"setContext"in Bn&&n(41,r1=Bn.setContext),"transitionBg"in Bn&&n(42,fl=Bn.transitionBg),"transitionBgProps"in Bn&&n(43,Ul=Bn.transitionBgProps),"transitionWindow"in Bn&&n(44,Tl=Bn.transitionWindow),"transitionWindowProps"in Bn&&n(45,Gl=Bn.transitionWindowProps),"disableFocusTrap"in Bn&&n(46,O1=Bn.disableFocusTrap),"$$scope"in Bn&&n(48,ke=Bn.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&Yi&&(J1(kt)?Fo(kt):Xs())},[xa,bs,Jc,i,r,s,u,d,m,_,y,x,S,a1,Tn,Fi,ss,J1,Xs,function(Bn){if(bs.closeOnEsc&&Jc&&"Escape"===Bn.key&&(Bn.preventDefault(),Xs()),Jc&&"Tab"===Bn.key&&!bs.disableFocusTrap){var to=s.querySelectorAll("*"),wa=Array.from(to).filter(bs.isTabbable).sort(function(Bh,S4){return Bh.tabIndex-S4.tabIndex}),ys=wa.indexOf(document.activeElement);-1===ys&&Bn.shiftKey&&(ys=0),ys+=wa.length+(Bn.shiftKey?-1:1),wa[ys%=wa.length].focus(),Bn.preventDefault()}},function(Bn){!bs.closeOnOuterClick||Bn.target!==i&&Bn.target!==r||(W=Bn.target)},function(Bn){bs.closeOnOuterClick&&Bn.target===W&&(Bn.preventDefault(),Xs())},Vt,kt,wt,ut,$t,et,gt,Hn,Xt,_n,wi,Zn,Nr,va,fn,sa,Jo,$s,Or,r1,fl,Ul,Tl,Gl,O1,Yi,ke,se,function(Bn){Vs[Bn?"unshift":"push"](function(){n(5,s=Bn)})},function(Bn){Vs[Bn?"unshift":"push"](function(){n(4,r=Bn)})},function(Bn){Vs[Bn?"unshift":"push"](function(){n(3,i=Bn)})}]}var A1,Wa,C4,zd,x4,Rd,Lh,uee=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,mze,pze,n1,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},dze,[-1,-1,-1]),i}return br(e,Cr),pr(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(A1||(A1={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi",t.text="text"}(Wa||(Wa={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(C4||(C4={})),function(t){t.info="info",t.warning="warning",t.error="error"}(zd||(zd={})),function(t){t.key="key",t.value="value"}(x4||(x4={})),function(t){t.asc="asc",t.desc="desc"}(Rd||(Rd={})),function(t){t.no="no",t.self="self",t.nextInside="nextInside"}(Lh||(Lh={}));var fb=100,i7=100,mL=2e4,$p=[{start:0,end:fb}],bze=104857600,yze=1048576,gL=10485760,hee=10240,Up={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-container"},Cze=yn(yn({},Up),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),xze=yn(yn({},Up),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),wze=yn(yn({},Up),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),vL="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",_L="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",S0="hover-insert-inside",hb="hover-insert-after",bL="hover-collection",yL="valid",pee="repairable",k0=336,E0=260,Mze=Ju(Ju({},Rd.asc,"ascending"),Rd.desc,"descending"),Sze=0;function pb(){return++Sze}function Q1(t){return parseInt(t,10)}function CL(t){return kze.test(t)}var kze=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function ga(t){return"object"===Cc(t)&&null!==t&&(void 0===t.constructor||"Object"===t.constructor.name)}function Uc(t){return"object"===Cc(t)&&null!==t&&(void 0===t.constructor||"Object"===t.constructor.name||"Array"===t.constructor.name)}function xL(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return xL(Number(t));try{var e=t&&t.valueOf();if(e!==t)return xL(e)}catch{return!1}return!1}function mee(t){(Tk=Tk||window.document.createElement("div")).style.color="",Tk.style.color=t;var e=Tk.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}var Tk=null;function wL(t,e){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return Cc(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(ga(t))return"object";var n=e.stringify(t);return n&&CL(n)?"number":"true"===n||"false"===n?"boolean":"null"===n?"null":"unknown"}var Eze=/^https?:\/\/\S+$/;function Vk(t){return"string"==typeof t&&Eze.test(t)}function s7(t,e){if(""===t)return"";var n=t.trim();return"null"===n?null:"true"===n||"false"!==n&&(CL(n)?e.parse(n):t)}var Dze=/^-?[0-9]+$/,Tze=1e4,Vze=[];function ML(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(a,u){(!Array.isArray(a)&&!ga(a)||e&&u.length>0)&&(n[de(u)]=!0),ga(a)&&Object.keys(a).forEach(function(d){i(a[d],u.concat(d))})}for(var r=Math.min(t.length,Tze),s=0;se?t.slice(0,e):t}function _ee(t){return yn({},t)}function bee(t){return Object.values(t)}function yee(t,e,n,i){var r=t.slice(0),s=r.splice(e,n);return r.splice.apply(r,[e+i,0].concat(Ts(s))),r}function mb(t,e){try{return e.parse(t)}catch{return e.parse(na(t))}}function Cee(t,e){try{return mb(t,e)}catch{return}}function Ik(t,e){t=t.replace(wee,"");try{return e(t)}catch{}try{return e("["+t+"]")}catch{}try{return e("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function xee(t){t=t.replace(wee,"");try{return na(t)}catch{}try{var e=na("["+t+"]");return e.substring(1,e.length-1)}catch{}try{var n=na("{"+t+"}");return n.substring(1,n.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var wee=/,\s*$/;function o7(t,e){var n=kee.exec(e);if(n){var i=Q1(n[2]),r=function(S,D){for(var $=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S.length,W=0,re=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;re<$;re++)S.charAt(re)===D&&W++;return W}(t,"\n",0,i),s=i-t.lastIndexOf("\n",i)-1;return{position:i,line:r,column:s,message:e.replace(kee,function(){return"line ".concat(r+1," column ").concat(s+1)})}}var a=Oze.exec(e),u=a?Q1(a[1]):null,d=null!==u?u-1:null,m=Hze.exec(e),_=m?Q1(m[1]):null,y=null!==_?_-1:null;return{position:null!==d&&null!==y?function(S,D,z){for(var $=S.indexOf("\n"),W=1;W1&&void 0!==arguments[1]?arguments[1]:JSON;return gb(t)?t:{json:e.parse(t.text)}}function kL(t,e,n){return function Aze(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return a7(t)?t:{text:n.stringify(t.json,null,e)}}(t,e,n).text}function See(t,e){return function Ize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(a7(t))return t.text.length;var i=0;return function r(s){if(Array.isArray(s)){if((i+=s.length-1+2)>e)return i;for(var a=0;ae)return i}else if(ga(s)){var u=Object.keys(s);i+=2+u.length+(u.length-1);for(var d=0;de}var kee=/(position|char) (\d+)/,Oze=/line (\d+)/,Hze=/column (\d+)/;function Dee(t){var e=t.substring(0,999).trim();return!e.includes("\n")&&Lze.test(e)}var Lze=/[,:]\S/;function EL(t){var n=t.escapeUnicodeCharacters;return t.escapeControlCharacters?n?zze:Rze:n?Nze:Pze}var zze={escapeValue:function(t){return Tee(Iee(String(t)))},unescapeValue:function(t){return Oee(Vee(t))}},Rze={escapeValue:function(t){return Iee(String(t))},unescapeValue:function(t){return Oee(t)}},Nze={escapeValue:function(t){return Tee(String(t))},unescapeValue:function(t){return Vee(t)}},Pze={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function Tee(t){return t.replace(/[^\x20-\x7F]/g,function(e){var n;return"\b"===e||"\f"===e||"\n"===e||"\r"===e||"\t"===e?e:"\\u"+("000"+(null===(n=e.codePointAt(0))||void 0===n?void 0:n.toString(16))).slice(-4)})}function Vee(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(e){try{var n=JSON.parse('"'+e+'"');return Aee[n]||n}catch{return e}})}var Aee={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},jze={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Iee(t){return t.replace(/["\b\f\n\r\t\\]/g,function(e){return Aee[e]||e})}function Oee(t){return t.replace(/\\["bfnrt\\]/g,function(e){return jze[e]||e})}function Gp(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function Hee(t,e){return vb(t,function(n){return n.nodeName.toUpperCase()===e.toUpperCase()})}function Wp(t,e,n){return vb(t,function(i){return a=n,"function"==typeof(r=i).getAttribute&&r.getAttribute(e)===a;var r,a})}function vb(t,e){return!!DL(t,e)}function DL(t,e){for(var n=t;n&&!e(n);)n=n.parentNode;return n||void 0}function Lee(t){if(null!=t.firstChild){var e=document.createRange(),n=window.getSelection();e.setStart(t,1),e.collapse(!0),n?.removeAllRanges(),n?.addRange(e)}else t.focus()}function Ok(t,e,n,i){var r=c7(t);if(r){var s=r.document.activeElement?r.document.activeElement:null;s&&s.isContentEditable&&(s.textContent=n?e:s.textContent+e,Lee(s),i&&i(s))}}function c7(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function TL(t){var e=c7(t),n=e?.document.activeElement;return!!n&&vb(n,function(i){return i===t})}function zee(t,e){return DL(t,function(n){return n.nodeName===e})}function VL(t){return Wp(t,"data-type","selectable-key")?Wa.key:Wp(t,"data-type","selectable-value")?Wa.value:Wp(t,"data-type","insert-selection-area-inside")?Wa.inside:Wp(t,"data-type","insert-selection-area-after")?Wa.after:Wa.multi}function l7(t){return encodeURIComponent(de(t))}function Ree(t){var e=DL(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")}),n=e?.getAttribute("data-path");return n?tt(decodeURIComponent(n)):null}function Nee(t){return!!t&&"DIV"===t.nodeName&&"function"==typeof t.refresh&&"function"==typeof t.cancel}function D0(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",n=[];t.ctrlKey&&n.push("Ctrl"),t.metaKey&&n.push("Ctrl"),t.altKey&&n.push("Alt"),t.shiftKey&&n.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in Bze||n.push(i),n.join(e)}var Bze={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},AL=aL.window;function $ze(t){as(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function Pee(t){var e,n,i,r,s,a,u=[t[0].props],d=t[0].component;function m(_,y){for(var x={},S=0;Swindow.innerHeight&&ke>x,Vt="left"===W||se+_>window.innerWidth&&se>_;return{left:Vt?re.right-$:se+$,top:lt?ke-D:re.bottom+D,positionAbove:lt,positionLeft:Vt}}if("number"==typeof e.left&&"number"==typeof e.top){var Nt=e.left,kt=e.top,qt=e.width,wt=void 0===qt?0:qt,Dt=e.height,ut=void 0===Dt?0:Dt;return{left:Nt,top:kt,positionAbove:kt+ut>window.innerHeight&&kt>ut,positionLeft:Nt+wt>window.innerWidth&&Nt>wt}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,s=i.top,u=i.positionLeft;return(i.positionAbove?"bottom: ".concat(n.top-s,"px;"):"top: ".concat(s-n.top,"px;"))+(u?"right: ".concat(n.left-r,"px;"):"left: ".concat(r-n.left,"px;"))}function Wze(t,e,n){var i,r,s=e.popup,a=e.closeAbsolutePopup;function u(d){s.options&&s.options.closeOnOuterClick&&!vb(d.target,function(m){return m===i})&&a(s.id)}return Hd(function(){r&&r.focus()}),t.$$set=function(d){"popup"in d&&n(0,s=d.popup),"closeAbsolutePopup"in d&&n(6,a=d.closeAbsolutePopup)},[s,i,r,function(d){u(d)},function(d){"Escape"===D0(d)&&a(s.id)},function(d){u(d)},a,function(d){Vs[d?"unshift":"push"](function(){n(2,r=d)})},function(d){Vs[d?"unshift":"push"](function(){n(1,i=d)})}]}var qze=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,Wze,Uze,n1,{popup:0,closeAbsolutePopup:6},$ze),i}return br(e,Cr),pr(e)}();function Fee(t,e,n){var i=t.slice();return i[6]=e[n],i}function Bee(t){var e,n;return e=new qze({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r&&(s.popup=i[6]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Xze(t){for(var e,n,i=cs(t[0]),r=[],s=0;s0?".":"")+e}).join("")}function Yze(t){for(var e=[],n=0;n1&&void 0!==arguments[1]&&arguments[1],u="";n1?" "+s:"");r="".concat(i," (").concat(a,")"),s++}return r}function T0(t,e){return t.length>e?t.substring(0,e-3)+"...":t}var Jze={id:"javascript",name:"JavaScript",description:"\n

\n Enter a JavaScript function to filter, sort, or transform the data.\n

\n",createQuery:function(t,e){var n=e.filter,i=e.sort,r=e.projection,s=[" return data\n"];if(n&&n.path&&n.relation&&n.value){var a="item => item".concat(D3(n.path)),u=function OL(t){if(""===t)return"";var e=t.toLowerCase();if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if("undefined"!==e){var n=Number(t),i=parseFloat(t);return isNaN(n)||isNaN(i)?t:n}}(n.value),d="string"==typeof u?"'".concat(n.value,"'"):function gee(t){return Dze.test(t)}(n.value)&&!Number.isSafeInteger(u)?"".concat(n.value,"n"):n.value;s.push(" .filter(".concat(a," ").concat(n.relation," ").concat(d,")\n"))}if(i&&i.path&&i.direction&&s.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(D3(i.path),"\n")+" const valueB = b".concat(D3(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(D3(i.path),"\n")+" const valueB = b".concat(D3(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var m=r.paths.map(function(y){var x=y[y.length-1]||"item",S="item".concat(D3(y));return" ".concat(JSON.stringify(x),": ").concat(S)});s.push(" .map(item => ({\n".concat(m.join(",\n"),"})\n )\n"))}else{var _="item".concat(D3(r.paths[0]));s.push(" .map(item => ".concat(_,")\n"))}return"function query (data) {\n".concat(s.join(""),"}")},executeQuery:function(t,e){var n=new Function('"use strict";\n\n'+e+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==n?n:null}};function Zze(t){var e;return{c:function(){e=S3("g")},m:function(n,i){Ht(n,e,i),e.innerHTML=t[0]},p:function(n,i){1&ds(i,1)[0]&&(e.innerHTML=n[0])},i:hi,o:hi,d:function(n){n&&At(e)}}}function eRe(t,e,n){var i=870711,r="",s=e.data;return t.$$set=function(u){"data"in u&&n(1,s=u.data)},t.$$.update=function(){2&t.$$.dirty&&n(0,r=function a(u){if(!u||!u.raw)return"";var d=u.raw,m={};return(d=d.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,function(_,y){var x="fa-".concat((i+=1).toString(16));return m[y]=x,' id="'.concat(x,'"')})).replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,function(_,y,x,S){var D=y||S;return D&&m[D]?"#".concat(m[D]):_})}(s))},[r,s]}var tRe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,eRe,Zze,n1,{data:1}),i}return br(e,Cr),pr(e)}();function nRe(t){as(t,"svelte-1mc5hvj",".fa-icon.svelte-1mc5hvj{display:inline-block;fill:currentColor}.fa-flip-horizontal.svelte-1mc5hvj{transform:scale(-1, 1)}.fa-flip-vertical.svelte-1mc5hvj{transform:scale(1, -1)}.fa-spin.svelte-1mc5hvj{animation:svelte-1mc5hvj-fa-spin 1s 0s infinite linear}.fa-inverse.svelte-1mc5hvj{color:#fff}.fa-pulse.svelte-1mc5hvj{animation:svelte-1mc5hvj-fa-spin 1s infinite steps(8)}@keyframes svelte-1mc5hvj-fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function iRe(t){for(var e,n,i,r,s=t[12].default,a=jc(s,t,t[11],null),u=[{version:"1.1"},{class:n="fa-icon "+t[0]},{width:t[1]},{height:t[2]},{"aria-label":t[9]},{role:i=t[9]?"img":"presentation"},{viewBox:t[3]},{style:t[8]},t[10]],d={},m=0;m300},{anchor:z,closeOnOuterClick:!0,onClose:y,offsetTop:18,offsetLeft:-8,height:300})}},s,d,m]}var yRe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,bRe,_Re,gs,{path:4,value:0,readOnly:1,onPatch:5,focus:6},vRe),i}return br(e,Cr),pr(e)}();function Kee(t){for(var e=HA(t,function(u){return u.start}),n=[e[0]],i=0;i=n.start&&e0){var y=Rk(e,_);LL(d,y,function($){s[m]=String($),u(d[$])}),s.pop()}}}else if(ga(d)&&i(s)){r[de(s)]=!0;var x=Object.keys(d);if(x.length>0){var S,D=Pp(x);try{for(D.s();!(S=D.n()).done;){var z=S.value;s[m]=z,u(d[z])}}catch($){D.e($)}finally{D.f()}s.pop()}}}(a),yn(yn({},e),{},{expandedMap:r})}function Yee(t,e){var n=u7(t.expandedMap,e),i=u7(t.enforceStringMap,e),r=u7(t.visibleSectionsMap,e);return yn(yn({},t),{},{expandedMap:n,enforceStringMap:i,visibleSectionsMap:r})}function Qee(t,e,n){if(n){var i=yn({},t.enforceStringMap);return i[e]=n,yn(yn({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[e]){var r=yn({},t.enforceStringMap);return delete r[e],yn(yn({},t),{},{enforceStringMap:r})}return t}function Jee(t,e,n){var i=xe(t,n),r=n.reduce(function(s,a){return Se(a)?Zee(i,s,a):it(a)?ete(i,s,a):dt(a)?(_=(m=a).path,y=jL(u=i,(d=s).expandedMap),x=jL(u,d.enforceStringMap),S=jL(u,d.visibleSectionsMap),he(m.value)||Be(m.value)||delete y[_],Be(m.value)||delete S[_],(he(m.value)||Be(m.value))&&delete x[_],yn(yn({},d),{},{expandedMap:y,enforceStringMap:x,visibleSectionsMap:S})):jt(a)||Wt(a)?function(u,d,m){if(Wt(m)&&m.from===m.path)return d;var _=function(re){return m.path+re.substring(m.from.length)},y=PL(RL(d.expandedMap,m.from),_),x=PL(RL(d.enforceStringMap,m.from),_),S=PL(RL(d.visibleSectionsMap,m.from),_),D=d;Wt(m)&&(D=ete(u,D,{op:"remove",path:m.from}));var z=NL((D=Zee(u,D,{op:"add",path:m.path,value:null})).expandedMap,y),$=NL(D.enforceStringMap,x),W=NL(D.visibleSectionsMap,S);return yn(yn({},d),{},{expandedMap:z,enforceStringMap:$,visibleSectionsMap:W})}(i,s,a):s;var u,d,m,_,y,x,S},e);return{json:i,documentState:r}}function Zee(t,e,n){var i=ci(t,n.path),r=Ls(i),s=de(r);if(Be(nt(t,r))){var u=Q1(Ur(i)),d=d7(e.expandedMap,r,u,1),m=d7(e.enforceStringMap,r,u,1),_=d7(e.visibleSectionsMap,r,u,1);return _=tte(_,s,function(y){return nte(y,u,1)}),yn(yn({},e),{},{expandedMap:d,enforceStringMap:m,visibleSectionsMap:_})}return e}function ete(t,e,n){var i=ci(t,n.path),r=Ls(i),s=de(r),a=nt(t,r),u=e.expandedMap,d=e.enforceStringMap,m=e.visibleSectionsMap;if(u=u7(u,i),d=u7(d,i),m=u7(m,i),Be(a)){var _=Q1(Ur(i));u=d7(u,r,_,-1),d=d7(d,r,_,-1),m=tte(m=d7(m,r,_,-1),s,function(y){return nte(y,_,-1)})}return yn(yn({},e),{},{expandedMap:u,enforceStringMap:d,visibleSectionsMap:m})}function u7(t,e){var n={},i=de(e);return Object.keys(t).forEach(function(r){at(r,i)||(n[r]=t[r])}),n}function RL(t,e){var n={};return Object.keys(t).forEach(function(i){at(i,e)&&(n[i]=t[i])}),n}function NL(t,e){return yn(yn({},t),e)}function PL(t,e){var n={};return Object.keys(t).forEach(function(i){var r=e(i);n[r]=t[i]}),n}function d7(t,e,n,i){for(var r=e.length,s=de(e),a=[],u=0,d=Object.keys(t);u=n&&(_[r]=String(y+i),a.push({oldPointer:m,newPointer:de(_),value:t[m]}))}}if(0===a.length)return t;var x=yn({},t);return a.forEach(function(S){delete x[S.oldPointer]}),a.forEach(function(S){x[S.newPointer]=S.value}),x}function jL(t,e){var n={};return Object.keys(e).filter(function(i){return te(t,ci(t,i))}).forEach(function(i){n[i]=e[i]}),n}function tte(t,e,n){var i=t[e];if(e in t){var r=n(i);if(!zs(i,r)){var s=yn({},t);return void 0===r?delete s[e]:s[e]=r,s}}return t}function nte(t,e,n){return function(i){for(var r=i.slice(0),s=1;se?i.start+n:i.start,end:i.end>e?i.end+n:i.end}}))}function V0(t,e,n,i){var s,r=e?e[n]:void 0;return"boolean"==typeof r?r:"string"==typeof(s=t)&&"string"!=typeof s7(s,i)}function yb(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(e);return-1!==i?t.slice(n?i:i+1):[]}function FL(t,e){var n=[];return function i(r,s){n.push(s);var a=de(s);if(r&&!0===e.expandedMap[a]){if(Be(r)){var u=Rk(e,a);LL(r,u,function(d){i(r[d],s.concat(String(d)))})}he(r)&&Object.keys(r).forEach(function(d){i(r[d],s.concat(d))})}}(t,[]),n}function ite(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(s,a){i.push({path:a,type:C4.value});var u=de(a);if(s&&!0===e.expandedMap[u]){if(n&&i.push({path:a,type:C4.inside}),Be(s)){var d=Rk(e,u);LL(s,d,function(m){var _=a.concat(String(m));r(s[m],_),n&&i.push({path:_,type:C4.after})})}he(s)&&Object.keys(s).forEach(function(m){var _=a.concat(m);i.push({path:_,type:C4.key}),r(s[m],_),n&&i.push({path:_,type:C4.after})})}}(t,[]),i}function BL(t,e,n){var i=FL(t,e),r=i.map(de).indexOf(de(n));return-1!==r&&rn?e.focusPath:e.anchorPath}function ste(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.selection;if(!i)return null;var _,y,x,S,D,r=n?mr(i):A0(t,i),s=(_=r,x=(y=FL(t,e)).map(de),S=de(_),-1!==(D=x.indexOf(S))&&D>0?y[D-1]:null);if(n)return Dl(i)||Cu(i)?null!==s?y2(r,r):null:null!==s?y2(qp(i),s):null;if(Cu(i)||Dl(i))return Bs(r,!1);if(dl(i)){if(null==s||0===s.length)return null;var u=nt(t,Ls(s));return Array.isArray(u)||Zs(s)?Bs(s,!1):Pd(s,!1)}return po(i),null!==s?Bs(s,!1):null}function ote(t,e,n){var i=e.selection;if(!i)return{caret:null,previous:null,next:null};var r=ite(t,e,n),s=r.findIndex(function(a){return zs(a.path,mr(i))&&String(a.type)===String(i.type)});return{caret:-1!==s?r[s]:null,previous:-1!==s&&s>0?r[s-1]:null,next:-1!==s&&sn[i].length;)i++;var r=n[i];return void 0===r||0===r.length||Array.isArray(nt(t,Ls(r)))?Bs(r,!1):Pd(r,!1)}function h7(t,e){if(1===e.length){var n=G2(e);if("replace"===n.op)return Bs(ci(t,n.path),!1)}if(!Zs(e)&&e.every(function(a){return"move"===a.op})){var i=G2(e),r=e.slice(1);if((jt(i)||Wt(i))&&i.from!==i.path&&r.every(function(a){return(jt(a)||Wt(a))&&a.from===a.path}))return Pd(ci(t,i.path),!1)}var s=e.filter(function(a){return"test"!==a.op&&"remove"!==a.op&&("move"!==a.op||a.from!==a.path)&&"string"==typeof a.path}).map(function(a){return ci(t,a.path)});return Zs(s)?null:{type:Wa.multi,anchorPath:G2(s),focusPath:Ur(s)}}function ate(t,e){for(var n=0;nn.length&&e.length>n.length;return{type:Wa.multi,anchorPath:i?n.concat(t[n.length]):n,focusPath:i?n.concat(e[n.length]):n}}function lte(t,e,n,i){if(dl(e))return String(Ur(e.path));if(po(e)){var r,s=nt(t,e.path);return"string"==typeof s?s:null!==(r=i.stringify(s,null,n))&&void 0!==r?r:null}if(Ca(e)){var a;if(Zs(e.focusPath))return null!==(a=i.stringify(t,null,n))&&void 0!==a?a:null;var u=rte(e),d=nt(t,u);if(Array.isArray(d)){if(Nk(e)){var m,_=nt(t,e.focusPath);return null!==(m=i.stringify(_,null,n))&&void 0!==m?m:null}return Rh(t,e).map(function(y){var x=nt(t,y);return"".concat(i.stringify(x,null,n),",")}).join("\n")}return Rh(t,e).map(function(y){var x=Ur(y),S=nt(t,y);return"".concat(i.stringify(x),": ").concat(i.stringify(S,null,n),",")}).join("\n")}return null}function C2(t){return(dl(t)||po(t))&&!0===t.edit}function p7(t){return dl(t)||po(t)||Ca(t)}function jk(t){return dl(t)||po(t)||Nk(t)}function GL(t){switch(t.type){case C4.key:return Pd(t.path,!1);case C4.value:return Bs(t.path,!1);case C4.after:return H0(t.path);case C4.inside:return O0(t.path)}}function ute(t,e,n){switch(e){case Wa.key:return Pd(n,!1);case Wa.value:return Bs(n,!1);case Wa.after:return H0(n);case Wa.inside:return O0(n);case Wa.multi:case Wa.text:return y2(n,n)}}function dte(t,e,n){return e&&(xb(t,e,n)||I0(Ca(e)?Ls(e.focusPath):e.path,n))?e:null}function xb(t,e,n){if(void 0===t||!e)return!1;if(dl(e)||Dl(e)||Cu(e))return zs(e.path,n);if(po(e))return I0(n,e.path);if(Ca(e)){var i=A0(t,e),r=Nh(t,e),s=Ls(e.focusPath);if(!I0(n,s)||n.length<=s.length)return!1;var a=L0(t,e,i),u=L0(t,e,r),d=L0(t,e,n);return-1!==d&&d>=a&&d<=u}return!1}function L0(t,e,n){var i=Ls(e.focusPath);if(!I0(n,i)||n.length<=i.length)return-1;var r=n[i.length],s=nt(t,i);if(he(s))return Object.keys(s).indexOf(r);if(Be(s)){var a=Q1(r);if(a0?0:-1,a=e.map(function(d,m){return yn(yn({},d),{},{active:m===s})}),u=a[s];return{items:a,itemsMap:rh(a,function(d){return de(d.path)}),activeItem:u,activeIndex:s}}function _te(t){var e=t.activeIndex0?0:-1,n=t.items[e],i=t.items.map(function(r,s){return yn(yn({},r),{},{active:s===e})});return yn(yn({},t),{},{items:i,itemsMap:rh(i,function(r){return de(r.path)}),activeItem:n,activeIndex:e})}function TRe(t){var e=t.activeIndex>0?t.activeIndex-1:t.items.length-1,n=t.items[e],i=t.items.map(function(r,s){return yn(yn({},r),{},{active:s===e})});return yn(yn({},t),{},{items:i,itemsMap:rh(i,function(r){return de(r.path)}),activeItem:n,activeIndex:e})}function bte(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.toLowerCase(),s=null!==(n=i?.maxResults)&&void 0!==n?n:1/0,a=i?.columns,u=[],d=[];function m($){u.length>=s||u.push($)}function _($,W){if(Be(W)){var re=d.length;d.push("0");for(var se=0;se=s)return;d.pop()}else if(he(W)){var ke=Object.keys(W),ye=d.length;d.push("");for(var Ke=0,lt=ke;Ke=s)return}d.pop()}else yte(String(W),$,d,x4.value,m)}if(""===t)return[];if(a){if(!Array.isArray(e))throw new Error("json must be an Array when option columns is defined");for(var y=0;yD.length+1;)d.pop();_(r,nt(x,D))}if(u.length>=s)break}return u}return _(r,e),u}function yte(t,e,n,i,r){var s=t.toLowerCase(),a=0,u=-1,d=-1;do{-1!==(d=s.indexOf(e,u))&&(u=d+e.length,r({path:n.slice(0),field:i,fieldIndex:a,start:d,end:u}),a++)}while(-1!==d)}function XL(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function Cte(t,e,n){var i=t;return dp(n,function(r){i=XL(i,e,r.start,r.end)}),i}function VRe(t,e,n,i,r){var s=i.field,a=i.path,u=i.start,d=i.end;if(s===x4.key){var m=Ls(a),_=nt(t,m),y=Ur(a),x=Mb(m,Object.keys(_),y,XL(y,n,u,d));return{newSelection:h7(t,x),operations:x}}if(s===x4.value){var S=nt(t,a);if(void 0===S)throw new Error("Cannot replace: path not found ".concat(de(a)));var D="string"==typeof S?S:String(S),z=de(a),$=V0(S,e.enforceStringMap,z,r),W=XL(D,n,u,d),re=[{op:"replace",path:de(a),value:$?W:s7(W,r)}];return{newSelection:h7(t,re),operations:re}}throw new Error("Cannot replace: unknown type of search result field ".concat(s))}function ARe(t,e,n,i,r){for(var s=bte(n,t,{maxResults:1/0}),a=[],u=0;ue.floating[s]&&(a=Kk(a)),[a,Kk(a)]}function nNe(t){var e=Kk(t);return[QL(t),e,QL(e)]}function QL(t){return t.replace(/start|end/g,function(e){return eNe[e]})}function iNe(t,e,n,i){var r=qk(t),s=function(a,u,d){var m=["left","right"],_=["right","left"];switch(a){case"top":case"bottom":return d?u?_:m:u?m:_;case"left":case"right":return u?["top","bottom"]:["bottom","top"];default:return[]}}(Yp(t),"start"===n,i);return r&&(s=s.map(function(a){return a+"-"+r}),e&&(s=s.concat(s.map(QL)))),s}function Kk(t){return t.replace(/left|right|bottom|top/g,function(e){return ZRe[e]})}function rNe(t){return"number"!=typeof t?yn({top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t}}function Yk(t){return yn(yn({},t),{},{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function Vte(t,e,n){var i,r=t.reference,s=t.floating,a=Xk(e),u=Tte(e),d=Dte(u),m=Yp(e),_="y"===a,y=r.x+r.width/2-s.width/2,x=r.y+r.height/2-s.height/2,S=r[d]/2-s[d]/2;switch(m){case"top":i={x:y,y:r.y-s.height};break;case"bottom":i={x:y,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:x};break;case"left":i={x:r.x-s.width,y:x};break;default:i={x:r.x,y:r.y}}switch(qk(e)){case"start":i[u]-=S*(n&&_?-1:1);break;case"end":i[u]+=S*(n&&_?-1:1)}return i}var sNe=function(){var t=es(gi().mark(function e(n,i,r){var s,a,u,d,m,y,x,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,wt,Dt,ut;return gi().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return a=void 0===(s=r.placement)?"bottom":s,d=void 0===(u=r.strategy)?"absolute":u,y=r.platform,x=(void 0===(m=r.middleware)?[]:m).filter(Boolean),Ut.next=4,null==y.isRTL?void 0:y.isRTL(i);case 4:return S=Ut.sent,Ut.next=7,y.getElementRects({reference:n,floating:i,strategy:d});case 7:z=Vte(D=Ut.sent,a,S),$=z.x,W=z.y,re=a,se={},ke=0,ye=0;case 13:if(!(ye"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Qk(t){return["html","body","#document"].includes(jh(t))}function jd(t){return ed(t).getComputedStyle(t)}function Jk(t){return R0(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function g7(t){if("html"===jh(t))return t;var e=t.assignedSlot||t.parentNode||Ote(t)&&t.host||z0(t);return Ote(e)?e.host:e}function Hte(t){var e=g7(t);return Qk(e)?t.ownerDocument?t.ownerDocument.body:t.body:A3(e)&&kb(e)?e:Hte(e)}function Eb(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);var r=Hte(t),s=r===(null==(i=t.ownerDocument)?void 0:i.body),a=ed(r);return s?e.concat(a,a.visualViewport||[],kb(r)?r:[],a.frameElement&&n?Eb(a.frameElement):[]):e.concat(r,Eb(r,[],n))}function Lte(t){var e=jd(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,r=A3(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:i,u=Uk(n)!==s||Uk(i)!==a;return u&&(n=s,i=a),{width:n,height:i,$:u}}function nz(t){return R0(t)?t:t.contextElement}function v7(t){var e=nz(t);if(!A3(e))return Ph(1);var n=e.getBoundingClientRect(),i=Lte(e),r=i.width,s=i.height,a=i.$,u=(a?Uk(n.width):n.width)/r,d=(a?Uk(n.height):n.height)/s;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}var cNe=Ph(0);function zte(t){var e=ed(t);return tz()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:cNe}function Qp(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),s=nz(t),a=Ph(1);e&&(i?R0(i)&&(a=v7(i)):a=v7(t));var ye,Ke,u=(void 0===(ye=n)&&(ye=!1),!(Ke=i)||ye&&Ke!==ed(s)||!ye?Ph(0):zte(s)),d=(r.left+u.x)/a.x,m=(r.top+u.y)/a.y,_=r.width/a.x,y=r.height/a.y;if(s)for(var x=ed(s),S=i&&R0(i)?ed(i):i,D=x.frameElement;D&&i&&S!==x;){var z=v7(D),$=D.getBoundingClientRect(),W=jd(D),re=$.left+(D.clientLeft+parseFloat(W.paddingLeft))*z.x,se=$.top+(D.clientTop+parseFloat(W.paddingTop))*z.y;d*=z.x,m*=z.y,_*=z.x,y*=z.y,d+=re,m+=se,D=ed(D).frameElement}return Yk({width:_,height:y,x:d,y:m})}function Rte(t){return Qp(z0(t)).left+Jk(t).scrollLeft}function Nte(t,e,n){var i,s,a,u,d,m,_,y,x;if("viewport"===e)i=function(s,a){var u=ed(s),d=z0(s),m=u.visualViewport,_=d.clientWidth,y=d.clientHeight,x=0,S=0;if(m){_=m.width,y=m.height;var D=tz();(!D||D&&"fixed"===a)&&(x=m.offsetLeft,S=m.offsetTop)}return{width:_,height:y,x,y:S}}(t,n);else if("document"===e)s=z0(t),a=z0(s),u=Jk(s),m=Kp(a.scrollWidth,a.clientWidth,(d=s.ownerDocument.body).scrollWidth,d.clientWidth),_=Kp(a.scrollHeight,a.clientHeight,d.scrollHeight,d.clientHeight),y=-u.scrollLeft+Rte(s),x=-u.scrollTop,"rtl"===jd(d).direction&&(y+=Kp(a.clientWidth,d.clientWidth)-m),i={width:m,height:_,x:y,y:x};else if(R0(e))i=function(s,a){var u=Qp(s,!0,"fixed"===a),d=u.top+s.clientTop,m=u.left+s.clientLeft,_=A3(s)?v7(s):Ph(1);return{width:s.clientWidth*_.x,height:s.clientHeight*_.y,x:m*_.x,y:d*_.y}}(e,n);else{var r=zte(t);i=yn(yn({},e),{},{x:e.x-r.x,y:e.y-r.y})}return Yk(i)}function Pte(t,e){var n=g7(t);return!(n===e||!R0(n)||Qk(n))&&("fixed"===jd(n).position||Pte(n,e))}function lNe(t,e,n){var i=A3(e),r=z0(e),s="fixed"===n,a=Qp(t,!0,s,e),u={scrollLeft:0,scrollTop:0},d=Ph(0);if(i||!i&&!s)if(("body"!==jh(e)||kb(r))&&(u=Jk(e)),i){var m=Qp(e,!0,s,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}else r&&(d.x=Rte(r));return{x:a.left+u.scrollLeft-d.x,y:a.top+u.scrollTop-d.y,width:a.width,height:a.height}}function jte(t,e){return A3(t)&&"fixed"!==jd(t).position?e?e(t):t.offsetParent:null}function Fte(t,e){var n=ed(t);if(!A3(t))return n;for(var i=jte(t,e);i&&aNe(i)&&"static"===jd(i).position;)i=jte(i,e);return i&&("html"===jh(i)||"body"===jh(i)&&"static"===jd(i).position&&!ez(i))?n:i||function(r){for(var s=g7(r);A3(s)&&!Qk(s);){if(ez(s))return s;s=g7(s)}return null}(t)||n}var uNe={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var e=t.rect,n=t.offsetParent,i=t.strategy,r=A3(n),s=z0(n);if(n===s)return e;var a={scrollLeft:0,scrollTop:0},u=Ph(1),d=Ph(0);if((r||!r&&"fixed"!==i)&&(("body"!==jh(n)||kb(s))&&(a=Jk(n)),A3(n))){var m=Qp(n);u=v7(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-a.scrollLeft*u.x+d.x,y:e.y*u.y-a.scrollTop*u.y+d.y}},getDocumentElement:z0,getClippingRect:function(t){var e=t.element,n=t.boundary,i=t.rootBoundary,r=t.strategy,s="clippingAncestors"===n?function(m,_){var y=_.get(m);if(y)return y;for(var x=Eb(m,[],!1).filter(function(re){return R0(re)&&"body"!==jh(re)}),S=null,D="fixed"===jd(m).position,z=D?g7(m):m;R0(z)&&!Qk(z);){var $=jd(z),W=ez(z);W||"fixed"!==$.position||(S=null),(D?!W&&!S:!W&&"static"===$.position&&S&&["absolute","fixed"].includes(S.position)||kb(z)&&!W&&Pte(m,z))?x=x.filter(function(re){return re!==z}):S=$,z=g7(z)}return _.set(m,x),x}(e,this._c):[].concat(n),a=[].concat(Ts(s),[i]),d=a.reduce(function(m,_){var y=Nte(e,_,r);return m.top=Kp(y.top,m.top),m.right=$k(y.right,m.right),m.bottom=$k(y.bottom,m.bottom),m.left=Kp(y.left,m.left),m},Nte(e,a[0],r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},getOffsetParent:Fte,getElementRects:function(){var t=es(gi().mark(function e(n){var i,r,s,a,u;return gi().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return i=n.reference,r=n.floating,s=n.strategy,a=this.getOffsetParent||Fte,u=this.getDimensions,d.t0=lNe,d.t1=i,d.next=7,a(r);case 7:return d.t2=d.sent,d.t3=s,d.t4=(0,d.t0)(d.t1,d.t2,d.t3),d.t5=yn,d.t6={x:0,y:0},d.next=14,u(r);case 14:return d.t7=d.sent,d.t8=(0,d.t5)(d.t6,d.t7),d.abrupt("return",{reference:d.t4,floating:d.t8});case 17:case"end":return d.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}(),getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){var e=Lte(t);return{width:e.width,height:e.height}},getScale:v7,isElement:R0,isRTL:function(t){return"rtl"===jd(t).direction}},fNe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(e){return es(gi().mark(function n(){var i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,kt;return gi().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return i=e.x,r=e.y,s=e.placement,a=Wk(t,e),d=void 0===(u=a.mainAxis)||u,_=void 0!==(m=a.crossAxis)&&m,x=void 0===(y=a.limiter)?{fn:function(wt){return{x:wt.x,y:wt.y}}}:y,S=HZ(a,eze),D={x:i,y:r},qt.next=5,Ate(e,S);case 5:return z=qt.sent,$=Xk(Yp(s)),W=Ete($),re=D[W],se=D[$],d&&(re=kte(re+z["y"===W?"top":"left"],re,re-z["y"===W?"bottom":"right"])),_&&(se=kte(se+z["y"===$?"top":"left"],se,se-z["y"===$?"bottom":"right"])),kt=x.fn(yn(yn({},e),{},Ju(Ju({},W,re),$,se))),qt.abrupt("return",yn(yn({},kt),{},{data:{x:kt.x-i,y:kt.y-r}}));case 14:case"end":return qt.stop()}},n)}))()}}},hNe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(e){return es(gi().mark(function n(){var i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,Lt,et,st,gt,sn,Hn,on;return gi().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(s=e.placement,a=e.middlewareData,u=e.rects,d=e.initialPlacement,m=e.platform,_=e.elements,y=Wk(t,e),S=void 0===(x=y.mainAxis)||x,z=void 0===(D=y.crossAxis)||D,$=y.fallbackPlacements,re=void 0===(W=y.fallbackStrategy)?"bestFit":W,ke=void 0===(se=y.fallbackAxisSideDirection)?"none":se,Ke=void 0===(ye=y.flipAlignment)||ye,lt=HZ(y,ZLe),null==(i=a.arrow)||!i.alignmentOffset){Xt.next=4;break}return Xt.abrupt("return",{});case 4:return Vt=Yp(s),Nt=Yp(d)===d,Xt.next=8,null==m.isRTL?void 0:m.isRTL(_.floating);case 8:return kt=Xt.sent,qt=$||(Nt||!Ke?[Kk(d)]:nNe(d)),$||"none"===ke||qt.push.apply(qt,Ts(iNe(d,Ke,ke,kt))),wt=[d].concat(Ts(qt)),Xt.next=14,Ate(e,lt);case 14:if(Dt=Xt.sent,ut=[],Ut=(null==(r=a.flip)?void 0:r.overflows)||[],S&&ut.push(Dt[Vt]),z&&($t=tNe(s,u,kt),ut.push(Dt[$t[0]],Dt[$t[1]])),Ut=[].concat(Ts(Ut),[{placement:s,overflows:ut}]),ut.every(function(An){return An<=0})){Xt.next=37;break}if(st=((null==(Lt=a.flip)?void 0:Lt.index)||0)+1,!(gt=wt[st])){Xt.next=25;break}return Xt.abrupt("return",{data:{index:st,overflows:Ut},reset:{placement:gt}});case 25:if(sn=null==(et=Ut.filter(function(An){return An.overflows[0]<=0}).sort(function(An,_n){return An.overflows[1]-_n.overflows[1]})[0])?void 0:et.placement){Xt.next=35;break}Xt.t0=re,Xt.next="bestFit"===Xt.t0?30:"initialPlacement"===Xt.t0?33:35;break;case 30:return(on=null==(Hn=Ut.map(function(An){return[An.placement,An.overflows.filter(function(_n){return _n>0}).reduce(function(_n,Zt){return _n+Zt},0)]}).sort(function(An,_n){return An[1]-_n[1]})[0])?void 0:Hn[0])&&(sn=on),Xt.abrupt("break",35);case 33:return sn=d,Xt.abrupt("break",35);case 35:if(s===sn){Xt.next=37;break}return Xt.abrupt("return",{reset:{placement:sn}});case 37:return Xt.abrupt("return",{});case 38:case"end":return Xt.stop()}},n)}))()}}};function mNe(t){var n=t.filterText,i=t.items,r=t.multiple,s=t.value,a=t.itemId,u=t.groupBy,d=t.filterSelectedItems,m=t.itemFilter,_=t.convertStringItemsToObjects,y=t.filterGroupedItems,x=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==Cc(i[0])&&(i=_(i));var S=i.filter(function(D){var z=m(D[x],n,D);return z&&r&&null!=s&&s.length&&(z=!s.some(function($){return!!d&&$[a]===D[a]})),z});return u&&(S=y(S)),S}function gNe(t){return iz.apply(this,arguments)}function iz(){return iz=es(gi().mark(function t(e){var n,i,r,s,a;return gi().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return n=e.dispatch,i=e.loadOptions,r=e.convertStringItemsToObjects,s=e.filterText,u.next=3,i(s).catch(function(d){console.warn("svelte-select loadOptions error :>> ",d),n("error",{type:"loadOptions",details:d})});case 3:if(!(a=u.sent)||a.cancelled){u.next=7;break}return a?(a&&a.length>0&&"object"!==Cc(a[0])&&(a=r(a)),n("loaded",{items:a})):a=[],u.abrupt("return",{filteredItems:a,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return u.stop()}},t)})),iz.apply(this,arguments)}function vNe(t){as(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function _Ne(t){var e,n;return{c:function(){e=S3("svg"),ce(n=S3("path"),"fill","currentColor"),ce(n,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),ce(e,"width","100%"),ce(e,"height","100%"),ce(e,"viewBox","0 0 20 20"),ce(e,"focusable","false"),ce(e,"aria-hidden","true"),ce(e,"class","svelte-qbd276")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:hi,i:hi,o:hi,d:function(i){i&&At(e)}}}var bNe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,null,_Ne,n1,{},vNe),i}return br(e,Cr),pr(e)}();function yNe(t){as(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function CNe(t){var e,n;return{c:function(){e=S3("svg"),ce(n=S3("path"),"fill","currentColor"),ce(n,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),ce(e,"width","100%"),ce(e,"height","100%"),ce(e,"viewBox","-2 -2 50 50"),ce(e,"focusable","false"),ce(e,"aria-hidden","true"),ce(e,"role","presentation"),ce(e,"class","svelte-whdbu1")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:hi,i:hi,o:hi,d:function(i){i&&At(e)}}}var Zk=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,null,CNe,n1,{},yNe),i}return br(e,Cr),pr(e)}();function xNe(t){as(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function wNe(t){var e,n;return{c:function(){e=S3("svg"),ce(n=S3("circle"),"class","circle_path svelte-1p3nqvd"),ce(n,"cx","50"),ce(n,"cy","50"),ce(n,"r","20"),ce(n,"fill","none"),ce(n,"stroke","currentColor"),ce(n,"stroke-width","5"),ce(n,"stroke-miterlimit","10"),ce(e,"class","loading svelte-1p3nqvd"),ce(e,"viewBox","25 25 50 50")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:hi,i:hi,o:hi,d:function(i){i&&At(e)}}}var MNe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,null,wNe,n1,{},xNe),i}return br(e,Cr),pr(e)}();function SNe(t){as(t,"svelte-82qwg8",".svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--groupTitleBorderColor:var(--group-title-border-color);--groupTitleBorderWidth:var(--group-title-border-width);--groupTitleBorderStyle:var(--group-title-border-style);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px);max-height:var(--max-height)}.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:var(--value-container-padding, 5px 0);position:relative;overflow:var(--value-container-overflow, hidden);align-self:stretch}.prepend.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex-shrink:0;align-items:center}.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:var(--indicators-position);top:var(--indicators-top);right:var(--indicators-right);bottom:var(--indicators-bottom)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-82qwg8:not(.multi)>.value-container.svelte-82qwg8>input.svelte-82qwg8{width:100%;height:100%}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.svelte-select.focused.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-82qwg8 .selected-item.svelte-82qwg8.svelte-82qwg8{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.hide-selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0}.icon.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;pointer-events:none}.list-group-title.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase);border-width:var(--group-title-border-width, medium);border-style:var(--group-title-border-style, none);border-color:var(--group-title-border-color, color)}.empty.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.hover.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.active.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var kNe=function(t){return{value:8&t[0]}},Bte=function(t){return{value:t[3]}},ENe=function(t){return{value:8&t[0]}},$te=function(t){return{value:t[3]}},DNe=function(t){return{listOpen:64&t[0]}},Ute=function(t){return{listOpen:t[6]}},TNe=function(t){return{}},Gte=function(t){return{}},VNe=function(t){return{}},Wte=function(t){return{}},ANe=function(t){return{selection:8&t[0]}},qte=function(t){return{selection:t[3]}};function Xte(t,e,n){var i=t.slice();return i[126]=e[n],i[128]=n,i}var INe=function(t){return{}},Kte=function(t){return{}},ONe=function(t){return{selection:8&t[0]}},Yte=function(t){return{selection:t[126],index:t[128]}},HNe=function(t){return{}},Qte=function(t){return{}},LNe=function(t){return{}},Jte=function(t){return{}},zNe=function(t){return{}},Zte=function(t){return{}};function ene(t,e,n){var i=t.slice();return i[126]=e[n],i[128]=n,i}var RNe=function(t){return{item:16777216&t[0]}},tne=function(t){return{item:t[126],index:t[128]}},NNe=function(t){return{filteredItems:16777216&t[0]}},nne=function(t){return{filteredItems:t[24]}},PNe=function(t){return{}},ine=function(t){return{}};function rne(t){var e,n,i,r,s,a,u,d,m=t[50]["list-prepend"]&&sne(t),_=[BNe,FNe,jNe],y=[];function x(D,z){return D[50].list?0:D[24].length>0?1:D[19]?-1:2}~(i=x(t))&&(r=y[i]=_[i](t));var S=t[50]["list-append"]&&ane(t);return{c:function(){e=pt("div"),m&&m.c(),n=gn(),r&&r.c(),s=gn(),S&&S.c(),ce(e,"class","svelte-select-list svelte-82qwg8"),ce(e,"role","none"),$n(e,"prefloat",t[28])},m:function(D,z){Ht(D,e,z),m&&m.m(e,null),Ge(e,n),~i&&y[i].m(e,null),Ge(e,s),S&&S.m(e,null),t[91](e),a=!0,u||(d=[$l(t[49].call(null,e)),ei(e,"scroll",t[41]),ei(e,"pointerup",y4(jp(t[85]))),ei(e,"mousedown",y4(jp(t[86])))],u=!0)},p:function(D,z){D[50]["list-prepend"]?m?(m.p(D,z),524288&z[1]&&Me(m,1)):((m=sne(D)).c(),Me(m,1),m.m(e,n)):m&&(si(),je(m,1,1,function(){m=null}),oi());var $=i;(i=x(D))===$?~i&&y[i].p(D,z):(r&&(si(),je(y[$],1,1,function(){y[$]=null}),oi()),~i?((r=y[i])?r.p(D,z):(r=y[i]=_[i](D)).c(),Me(r,1),r.m(e,s)):r=null),D[50]["list-append"]?S?(S.p(D,z),524288&z[1]&&Me(S,1)):((S=ane(D)).c(),Me(S,1),S.m(e,null)):S&&(si(),je(S,1,1,function(){S=null}),oi()),(!a||268435456&z[0])&&$n(e,"prefloat",D[28])},i:function(D){a||(Me(m),Me(r),Me(S),a=!0)},o:function(D){je(m),je(r),je(S),a=!1},d:function(D){D&&At(e),m&&m.d(),~i&&y[i].d(),S&&S.d(),t[91](null),u=!1,ma(d)}}}function sne(t){var e,n=t[83]["list-prepend"],i=jc(n,t,t[82],ine);return{c:function(){i&&i.c()},m:function(r,s){i&&i.m(r,s),e=!0},p:function(r,s){i&&i.p&&(!e||1048576&s[2])&&Bc(i,n,r,r[82],e?Fc(n,r[82],s,PNe):$c(r[82]),ine)},i:function(r){e||(Me(i,r),e=!0)},o:function(r){je(i,r),e=!1},d:function(r){i&&i.d(r)}}}function jNe(t){var e,n,i=t[83].empty,r=jc(i,t,t[82],Zte),s=r||{c:function(){(n=pt("div")).textContent="No options",ce(n,"class","empty svelte-82qwg8")},m:function(a,u){Ht(a,n,u)},p:hi,d:function(a){a&&At(n)}};return{c:function(){s&&s.c()},m:function(a,u){s&&s.m(a,u),e=!0},p:function(a,u){r&&r.p&&(!e||1048576&u[2])&&Bc(r,i,a,a[82],e?Fc(i,a[82],u,zNe):$c(a[82]),Zte)},i:function(a){e||(Me(s,a),e=!0)},o:function(a){je(s,a),e=!1},d:function(a){s&&s.d(a)}}}function FNe(t){for(var e,n,i=cs(t[24]),r=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(x),x=setTimeout(Yt,Wi)}:Bh,S7=e.debounceWait,$d=void 0===S7?300:S7,N0=e.hideEmptyState,P0=void 0!==N0&&N0,j0=e.inputAttributes,td=void 0===j0?{}:j0,Vl=e.listAutoWidth,F0=void 0===Vl||Vl,em=e.showChevron,I3=void 0!==em&&em,B0=e.listOffset,$h=void 0===B0?5:B0,Et=e.hoverItemIndex,Ln=void 0===Et?0:Et,Hi=e.floatingConfig,Bi=void 0===Hi?{}:Hi,Xi=e.class,Us=void 0===Xi?"":Xi;function Lo(Yt){var Wi=[],Qr={};Yt.forEach(function(Cs){var Ks=tc(Cs);Wi.includes(Ks)||(Wi.push(Ks),Qr[Ks]=[],Ks&&Qr[Ks].push(Object.assign(Fi(Ks,Cs),{id:Ks,groupHeader:!0,selectable:s1}))),Qr[Ks].push(Object.assign({groupItem:!!Ks},Cs))});var Go=[];return I1(Wi).forEach(function(Cs){Qr[Cs]&&Go.push.apply(Go,Ts(Qr[Cs]))}),Go}function aa(){var Yt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Wi=arguments.length>1?arguments[1]:void 0;n(7,Ln=Yt<0?0:Yt),!Wi&&tc&&m[Ln]&&!m[Ln].selectable&&b1(1)}function ct(){var Yt=!0;if(En){var Wi=[],Qr=[];En.forEach(function(Go){Wi.includes(Go[Ho])?Yt=!1:(Wi.push(Go[Ho]),Qr.push(Go))}),Yt||n(3,En=Qr)}return Yt}function mn(Yt){var Wi=Yt?Yt[Ho]:En[Ho];return oa.find(function(Qr){return Qr[Ho]===Wi})}function Fn(Yt){return vi.apply(this,arguments)}function vi(){return(vi=es(gi().mark(function Yt(Wi){var Qr;return gi().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:Qr=En[Wi],n(3,En=1===En.length?void 0:En.filter(function(Cs){return Cs!==Qr})),lt("clear",Qr);case 3:case"end":return Go.stop()}},Yt)}))).apply(this,arguments)}function Ti(Yt){var Wi,Qr;zi&&sn===(null===(Wi=document)||void 0===Wi?void 0:Wi.activeElement)||(Yt&<("focus",Yt),null===(Qr=sn)||void 0===Qr||Qr.focus(),n(2,zi=!0))}function Ri(Yt){return ts.apply(this,arguments)}function ts(){return(ts=es(gi().mark(function Yt(Wi){var Qr;return gi().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:if(!hl){Go.next=2;break}return Go.abrupt("return");case 2:(ys||zi)&&(lt("blur",Wi),cr(),n(2,zi=!1),n(26,S=void 0),null===(Qr=sn)||void 0===Qr||Qr.blur());case 3:case"end":return Go.stop()}},Yt)}))).apply(this,arguments)}function cr(){a1&&n(4,Pr=""),n(6,ys=!1)}re=es(gi().mark(function Yt(){return gi().wrap(function(Wi){for(;;)switch(Wi.prev=Wi.next){case 0:n(78,D=En),n(79,z=Pr),n(80,$=on);case 3:case"end":return Wi.stop()}},Yt)})),Z5().$$.before_update.push(re),Hd(function(){ys&&n(2,zi=!0),zi&&sn&&sn.focus()});var _a,os=e.ariaValues,Zc=void 0===os?function(Yt){return"Option ".concat(Yt,", selected.")}:os,Ha=e.ariaListOpen,el=void 0===Ha?function(Yt,Wi){return"You are currently focused on option ".concat(Yt,". There are ").concat(Wi," results available.")}:Ha,w2=e.ariaFocused,Ns=void 0===w2?function(){return"Select is focused, type to refine list, press down to open the menu."}:w2,Al=null;function To(){clearTimeout(_a),_a=setTimeout(function(){hl=!1},100)}Zu(function(){var Yt;null===(Yt=Al)||void 0===Yt||Yt.remove()});var hl=!1;function k4(Yt){Yt&&!1!==Yt.selectable&&function(Wi){if(Wi){n(4,Pr="");var Qr=Object.assign({},Wi);if(Qr.groupHeader&&!Qr.selectable)return;n(3,En=on?En?En.concat([Qr]):[Qr]:n(3,En=Qr)),setTimeout(function(){J1&&cr(),n(26,S=void 0),lt("change",En),lt("select",Wi)})}}(Yt)}function nd(Yt){hl||n(7,Ln=Yt)}function k7(Yt){var Go,Wi=Yt.item,Qr=Yt.i;if(!1!==Wi?.selectable)return En&&!on&&En[Ho]===Wi[Ho]?cr():void(((Go=Wi).groupHeader&&Go.selectable||Go.selectable||!Go.hasOwnProperty("selectable"))&&(n(7,Ln=Qr),k4(Wi)))}function b1(Yt){if(0===m.filter(function(Qr){return!Object.hasOwn(Qr,"selectable")||!0===Qr.selectable}).length)return n(7,Ln=0);n(7,Yt>0&&Ln===m.length-1?Ln=0:Yt<0&&0===Ln?Ln=m.length-1:Ln+=Yt);var Wi=m[Ln];Wi&&!1===Wi.selectable&&(1!==Yt&&-1!==Yt||b1(Yt))}var id=Uh,O3=Uh;function Uh(Yt){return{update:function(Wi){Wi.scroll&&(To(),Yt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var eu,Yt,Wi,Qr,Go,Cs,Ks,nc,E4={strategy:"absolute",placement:"bottom-start",middleware:[(eu=$h,void 0===eu&&(eu=0),{name:"offset",options:eu,fn:function(Yt){return es(gi().mark(function Wi(){var Qr,Go,Cs,Ks,nc,nm,c1;return gi().wrap(function(Il){for(;;)switch(Il.prev=Il.next){case 0:return Cs=Yt.x,Ks=Yt.y,nc=Yt.placement,nm=Yt.middlewareData,Il.next=3,oNe(Yt,eu);case 3:if(c1=Il.sent,nc!==(null==(Qr=nm.offset)?void 0:Qr.placement)||null==(Go=nm.arrow)||!Go.alignmentOffset){Il.next=6;break}return Il.abrupt("return",{});case 6:return Il.abrupt("return",{x:Cs+c1.x,y:Ks+c1.y,data:yn(yn({},c1),{},{placement:nc})});case 7:case"end":return Il.stop()}},Wi)}))()}}),hNe(),fNe()],autoUpdate:!1},Hb=(Go={autoUpdate:!0},Cs=Yt=E4,Ks=function(c1){return yn(yn(yn({},Go),Yt||{}),c1||{})},nc=function(c1){Wi&&Qr&&(Cs=Ks(c1),function(t,e,n){var i=new Map,r=yn({platform:uNe},n),s=yn(yn({},r.platform),{},{_c:i});return sNe(t,e,yn(yn({},r),{},{platform:s}))}(Wi,Qr,Cs).then(function(Il){var rd;Object.assign(Qr.style,{position:Il.strategy,left:"".concat(Il.x,"px"),top:"".concat(Il.y,"px")}),null!==(rd=Cs)&&void 0!==rd&&rd.onComputed&&Cs.onComputed(Il)}))},[function(c1){if("subscribe"in c1)return function(c1){Zu(c1.subscribe(function(Il){void 0===Wi?(Wi=Il,nc()):(Object.assign(Wi,Il),nc())}))}(c1),{};Wi=c1,nc()},function(c1,Il){var rd;Qr=c1,Cs=Ks(Il),setTimeout(function(){return nc(Il)},0),nc(Il);var E7=function(){rd&&(rd(),rd=void 0)},dE=function(){var Gh=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cs||{}).autoUpdate;E7(),!1!==Gh&&El().then(function(){return function dNe(t,e,n,i){void 0===i&&(i={});var s=i.ancestorScroll,a=void 0===s||s,u=i.ancestorResize,d=void 0===u||u,m=i.elementResize,_=void 0===m?"function"==typeof ResizeObserver:m,y=i.layoutShift,x=void 0===y?"function"==typeof IntersectionObserver:y,S=i.animationFrame,D=void 0!==S&&S,z=nz(t),$=a||d?[].concat(Ts(z?Eb(z):[]),Ts(Eb(e))):[];$.forEach(function(Ke){a&&Ke.addEventListener("scroll",n,{passive:!0}),d&&Ke.addEventListener("resize",n)});var W,re=z&&x?function(Ke,lt){var Vt,Nt=null,kt=z0(Ke);function qt(){clearTimeout(Vt),Nt&&Nt.disconnect(),Nt=null}return function wt(Dt,ut){void 0===Dt&&(Dt=!1),void 0===ut&&(ut=1),qt();var Ut=Ke.getBoundingClientRect(),$t=Ut.left,Lt=Ut.top,et=Ut.width,st=Ut.height;if(Dt||lt(),et&&st){var gt={rootMargin:-Gk(Lt)+"px "+-Gk(kt.clientWidth-($t+et))+"px "+-Gk(kt.clientHeight-(Lt+st))+"px "+-Gk($t)+"px",threshold:Kp(0,$k(1,ut))||1},sn=!0;try{Nt=new IntersectionObserver(Hn,yn(yn({},gt),{},{root:kt.ownerDocument}))}catch{Nt=new IntersectionObserver(Hn,gt)}Nt.observe(Ke)}function Hn(on){var Xt=on[0].intersectionRatio;if(Xt!==ut){if(!sn)return wt();Xt?wt(!1,Xt):Vt=setTimeout(function(){wt(!1,1e-7)},100)}sn=!1}}(!0),qt}(z,n):null,se=-1,ke=null;_&&(ke=new ResizeObserver(function(Ke){var lt=ds(Ke,1)[0];lt&<.target===z&&ke&&(ke.unobserve(e),cancelAnimationFrame(se),se=requestAnimationFrame(function(){ke&&ke.observe(e)})),n()}),z&&!D&&ke.observe(z),ke.observe(e));var ye=D?Qp(t):null;return D&&function Ke(){var lt=Qp(t);!ye||lt.x===ye.x&<.y===ye.y&<.width===ye.width&<.height===ye.height||n(),ye=lt,W=requestAnimationFrame(Ke)}(),n(),function(){$.forEach(function(Ke){a&&Ke.removeEventListener("scroll",n),d&&Ke.removeEventListener("resize",n)}),re&&re(),ke&&ke.disconnect(),ke=null,D&&cancelAnimationFrame(W)}}(Wi,Qr,function(){return nc(Cs)},!0===Gh?{}:Gh)})};return rd=dE(),{update:function(Gh){nc(Gh),rd=dE(Gh)},destroy:function(){E7()}}},nc]),tm=ds(Hb,3),Lb=tm[0],Mz=tm[1],Sz=tm[2],zb=!0;return t.$$set=function(Yt){"justValue"in Yt&&n(52,Nt=Yt.justValue),"filter"in Yt&&n(53,qt=Yt.filter),"getItems"in Yt&&n(54,Dt=Yt.getItems),"id"in Yt&&n(55,Ut=Yt.id),"name"in Yt&&n(8,Lt=Yt.name),"container"in Yt&&n(0,st=Yt.container),"input"in Yt&&n(1,sn=Yt.input),"multiple"in Yt&&n(9,on=Yt.multiple),"multiFullItemClearable"in Yt&&n(10,An=Yt.multiFullItemClearable),"disabled"in Yt&&n(11,Zt=Yt.disabled),"focused"in Yt&&n(2,zi=Yt.focused),"value"in Yt&&n(3,En=Yt.value),"filterText"in Yt&&n(4,Pr=Yt.filterText),"placeholder"in Yt&&n(56,Qo=Yt.placeholder),"placeholderAlwaysShow"in Yt&&n(57,Yr=Yt.placeholderAlwaysShow),"items"in Yt&&n(51,oa=Yt.items),"label"in Yt&&n(12,qi=Yt.label),"itemFilter"in Yt&&n(58,Mi=Yt.itemFilter),"groupBy"in Yt&&n(59,tc=Yt.groupBy),"groupFilter"in Yt&&n(60,I1=Yt.groupFilter),"groupHeaderSelectable"in Yt&&n(61,s1=Yt.groupHeaderSelectable),"itemId"in Yt&&n(13,Ho=Yt.itemId),"loadOptions"in Yt&&n(62,fc=Yt.loadOptions),"containerStyles"in Yt&&n(14,Oa=Yt.containerStyles),"hasError"in Yt&&n(15,Z2=Yt.hasError),"filterSelectedItems"in Yt&&n(63,Wl=Yt.filterSelectedItems),"required"in Yt&&n(16,Jc=Yt.required),"closeListOnChange"in Yt&&n(64,J1=Yt.closeListOnChange),"clearFilterTextOnBlur"in Yt&&n(65,a1=Yt.clearFilterTextOnBlur),"createGroupHeaderItem"in Yt&&n(66,Fi=Yt.createGroupHeaderItem),"searchable"in Yt&&n(17,Fo=Yt.searchable),"inputStyles"in Yt&&n(18,Dn=Yt.inputStyles),"clearable"in Yt&&n(68,Yi=Yt.clearable),"loading"in Yt&&n(5,to=Yt.loading),"listOpen"in Yt&&n(6,ys=Yt.listOpen),"debounce"in Yt&&n(69,S4=Yt.debounce),"debounceWait"in Yt&&n(70,$d=Yt.debounceWait),"hideEmptyState"in Yt&&n(19,P0=Yt.hideEmptyState),"inputAttributes"in Yt&&n(71,td=Yt.inputAttributes),"listAutoWidth"in Yt&&n(72,F0=Yt.listAutoWidth),"showChevron"in Yt&&n(20,I3=Yt.showChevron),"listOffset"in Yt&&n(73,$h=Yt.listOffset),"hoverItemIndex"in Yt&&n(7,Ln=Yt.hoverItemIndex),"floatingConfig"in Yt&&n(74,Bi=Yt.floatingConfig),"class"in Yt&&n(21,Us=Yt.class),"ariaValues"in Yt&&n(75,Zc=Yt.ariaValues),"ariaListOpen"in Yt&&n(76,el=Yt.ariaListOpen),"ariaFocused"in Yt&&n(77,Ns=Yt.ariaFocused),"$$scope"in Yt&&n(82,ye=Yt.$$scope)},t.$$.update=function(){var Yt,Wi,Qr,Go;8&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&En&&function(){if("string"==typeof En){var Cs=(oa||[]).find(function(Ks){return Ks[Ho]===En});n(3,En=Cs||Ju(Ju({},Ho,En),"label",En))}else on&&Array.isArray(En)&&En.length>0&&n(3,En=En.map(function(Ks){return"string"==typeof Ks?{value:Ks,label:Ks}:Ks}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!td&&Fo||(n(27,W=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},td)),Ut&&n(27,W.id=Ut,W),Fo||n(27,W.readonly=!0,W))),512&t.$$.dirty[0]&&on&&En&&(Array.isArray(En)?n(3,En=Ts(En)):n(3,En=[En])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&$&&!on&&En&&n(3,En=null),520&t.$$.dirty[0]&&on&&En&&En.length>1&&ct(),8&t.$$.dirty[0]&&En&&(on?JSON.stringify(En)!==JSON.stringify(D)&&ct()&<("input",En):D&&JSON.stringify(En[Ho])===JSON.stringify(D[Ho])||lt("input",En)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!En&&on&&D&<("input",En),6&t.$$.dirty[0]&&!zi&&sn&&cr(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&Pr!==z&&(fc||0!==Pr.length)&&(fc?S4(es(gi().mark(function Cs(){var Ks;return gi().wrap(function(nc){for(;;)switch(nc.prev=nc.next){case 0:return n(5,to=!0),nc.next=3,Dt({dispatch:lt,loadOptions:fc,convertStringItemsToObjects:gne,filterText:Pr});case 3:(Ks=nc.sent)?(n(5,to=Ks.loading),n(6,ys=ys?Ks.listOpen:Pr.length>0),n(2,zi=ys&&Ks.focused),n(51,oa=tc?Lo(Ks.filteredItems):Ks.filteredItems)):(n(5,to=!1),n(2,zi=!0),n(6,ys=!0));case 5:case"end":return nc.stop()}},Cs)})),$d):(n(6,ys=!0),on&&n(26,S=void 0))),12824&t.$$.dirty[0]|407896064&t.$$.dirty[1]|3&t.$$.dirty[2]&&n(24,m=qt({loadOptions:fc,filterText:Pr,items:oa,multiple:on,value:En,itemId:Ho,groupBy:tc,label:qi,filterSelectedItems:Wl,itemFilter:Mi,convertStringItemsToObjects:gne,filterGroupedItems:Lo})),16777800&t.$$.dirty[0]&&!on&&ys&&En&&m&&aa(m.findIndex(function(Cs){return Cs[Ho]===En[Ho]}),!0),576&t.$$.dirty[0]&&ys&&on&&n(7,Ln=0),16&t.$$.dirty[0]&&Pr&&n(7,Ln=0),128&t.$$.dirty[0]&<("hoverItem",Ln),520&t.$$.dirty[0]&&n(25,i=on?En&&En.length>0:En),33554448&t.$$.dirty[0]&&n(35,r=i&&Pr.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&n(34,s=i&&Yi&&!Zt&&!to),520&t.$$.dirty[0]|100663296&t.$$.dirty[1]&&n(33,a=Yr&&on||on&&0===(null===(Yt=En)||void 0===Yt?void 0:Yt.length)?Qo:En?"":Qo),520&t.$$.dirty[0]&&n(32,u=En?(Wi=on&&En.length>0?En.map(function(Cs){return Cs[qi]}).join(", "):En[qi],Zc(Wi)):""),16777412&t.$$.dirty[0]&&n(31,d=function(){if(!m||0===m.length)return"";var Cs=m[Ln];return ys&&Cs?el(Cs[qi],m?m.length:0):Ns()}()),1048576&t.$$.dirty[1]&&function(Cs){Cs&&0!==Cs.length&&!Cs.some(function(Ks){return"object"!==Cc(Ks)})&&En&&(on?!En.some(function(Ks){return!Ks||!Ks[Ho]}):En[Ho])&&(Array.isArray(En)?n(3,En=En.map(function(Ks){return mn(Ks)||Ks})):n(3,En=mn()||En))}(oa),8712&t.$$.dirty[0]&&n(52,Nt=on?En?En.map(function(Cs){return Cs[Ho]}):null:En&&En[Ho]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(on||!D||En||lt("input",En)),16777800&t.$$.dirty[0]&&ys&&m&&!on&&!En&&aa(),16777216&t.$$.dirty[0]&&function(Cs){ys&<("filter",Cs)}(m),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&st&&void 0===(null===(Qr=Bi)||void 0===Qr?void 0:Qr.autoUpdate)&&n(81,E4.autoUpdate=!0,E4),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&st&&Bi&&Sz(Object.assign(E4,Bi)),8388608&t.$$.dirty[0]&&n(30,_=!!Al),8388672&t.$$.dirty[0]&&function(Cs,Ks){if(!Cs||!Ks)return n(28,zb=!0);setTimeout(function(){n(28,zb=!1)},0)}(Al,ys),8388673&t.$$.dirty[0]&&ys&&st&&Al&&(Go=st.getBoundingClientRect().width,n(23,Al.style.width=F0?Go+"px":"auto",Al)),128&t.$$.dirty[0]&&n(29,y=Ln),70&t.$$.dirty[0]&&sn&&ys&&!zi&&Ti()},[st,sn,zi,En,Pr,to,ys,Ln,Lt,on,An,Zt,qi,Ho,Oa,Z2,Jc,Fo,Dn,P0,I3,Us,function(){lt("clear",En),n(3,En=void 0),cr(),Ti()},Al,m,i,S,W,zb,y,_,d,u,a,s,r,Fn,function(Yt){if(zi)switch(Yt.stopPropagation(),Yt.key){case"Escape":Yt.preventDefault(),cr();break;case"Enter":if(Yt.preventDefault(),ys){if(0===m.length)break;if(En&&!on&&En[Ho]===m[Ln][Ho]){cr();break}k4(m[Ln])}break;case"ArrowDown":Yt.preventDefault(),ys?b1(1):(n(6,ys=!0),n(26,S=void 0));break;case"ArrowUp":Yt.preventDefault(),ys?b1(-1):(n(6,ys=!0),n(26,S=void 0));break;case"Tab":if(ys&&zi){if(0===m.length||En&&En[Ho]===m[Ln][Ho])return cr();Yt.preventDefault(),k4(m[Ln]),cr()}break;case"Backspace":if(!on||Pr.length>0)return;if(on&&En&&En.length>0){if(Fn(void 0!==S?S:En.length-1),0===S||void 0===S)break;n(26,S=En.length>S?S-1:void 0)}break;case"ArrowLeft":if(!En||!on||Pr.length>0)return;void 0===S?n(26,S=En.length-1):En.length>S&&0!==S&&n(26,S-=1);break;case"ArrowRight":if(!En||!on||Pr.length>0||void 0===S)return;S===En.length-1?n(26,S=void 0):S0?n(6,ys=!0):void n(6,ys=!ys)},To,function(Yt){var Wi;ys||zi||!st||st.contains(Yt.target)||null!==(Wi=Al)&&void 0!==Wi&&Wi.contains(Yt.target)||Ri()},nd,k7,function(Yt,Wi,Qr){if(!on)return Wi&&Wi[Qr]===Yt[Qr]},id,O3,Lb,Mz,Ke,oa,Nt,qt,Dt,Ut,Qo,Yr,Mi,tc,I1,s1,fc,Wl,J1,a1,Fi,function(){return m},Yi,S4,$d,td,F0,$h,Bi,Zc,el,Ns,D,z,$,E4,ye,ke,function(Yt){Mk.call(this,t,Yt)},function(Yt){Mk.call(this,t,Yt)},function(Yt){Mk.call(this,t,Yt)},function(Yt){Mk.call(this,t,Yt)},function(Yt){return nd(Yt)},function(Yt){return nd(Yt)},function(Yt,Wi){return k7({item:Yt,i:Wi})},function(Yt){Vs[Yt?"unshift":"push"](function(){n(23,Al=Yt)})},function(Yt){return Fn(Yt)},function(Yt){return An?Fn(Yt):{}},function(Yt){Vs[Yt?"unshift":"push"](function(){n(1,sn=Yt)})},function(){n(4,Pr=this.value)},function(Yt){Vs[Yt?"unshift":"push"](function(){n(0,st=Yt)})}]}var Jp=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,WNe,GNe,n1,{justValue:52,filter:53,getItems:54,id:55,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:56,placeholderAlwaysShow:57,items:51,label:12,itemFilter:58,groupBy:59,groupFilter:60,groupHeaderSelectable:61,itemId:13,loadOptions:62,containerStyles:14,hasError:15,filterSelectedItems:63,required:16,closeListOnChange:64,clearFilterTextOnBlur:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},SNe,[-1,-1,-1,-1,-1]),i}return br(e,Cr),pr(e,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}])}();function qNe(t){as(t,"svelte-ijtq0l","table.jse-transform-wizard.svelte-ijtq0l.svelte-ijtq0l{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-ijtq0l input.svelte-ijtq0l{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-ijtq0l tr th.svelte-ijtq0l{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal .jse-filter-value.svelte-ijtq0l{flex:4;padding:4px 8px;border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:var(--jse-input-radius, 3px);outline:none;background:var(--jse-input-background, var(--jse-background-color, #fff));color:inherit}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal .jse-filter-value.svelte-ijtq0l:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}")}function XNe(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,Lt,et,st;function gt(Zn){t[16](Zn)}var sn={class:"jse-filter-path",showChevron:!0,items:t[7]};function Hn(Zn){t[17](Zn)}void 0!==t[0]&&(sn.value=t[0]),u=new Jp({props:sn}),Vs.push(function(){return J2(u,"value",gt)});var on={class:"jse-filter-relation",showChevron:!0,items:t[8]};function Xt(Zn){t[19](Zn)}void 0!==t[1]&&(on.value=t[1]),_=new Jp({props:on}),Vs.push(function(){return J2(_,"value",Hn)});var An={class:"jse-sort-path",showChevron:!0,items:t[7]};function _n(Zn){t[20](Zn)}void 0!==t[3]&&(An.value=t[3]),ke=new Jp({props:An}),Vs.push(function(){return J2(ke,"value",Xt)});var Zt={class:"jse-sort-direction",showChevron:!0,items:t[9]};function wi(Zn){t[21](Zn)}void 0!==t[4]&&(Zt.value=t[4]),lt=new Jp({props:Zt}),Vs.push(function(){return J2(lt,"value",_n)});var zi={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:t[6]};return void 0!==t[5]&&(zi.value=t[5]),Ut=new Jp({props:zi}),Vs.push(function(){return J2(Ut,"value",wi)}),{c:function(){e=pt("table"),n=pt("tr"),(i=pt("th")).textContent="Filter",r=gn(),s=pt("td"),a=pt("div"),Nn(u.$$.fragment),m=gn(),Nn(_.$$.fragment),x=gn(),S=pt("input"),D=gn(),z=pt("tr"),($=pt("th")).textContent="Sort",W=gn(),re=pt("td"),se=pt("div"),Nn(ke.$$.fragment),Ke=gn(),Nn(lt.$$.fragment),Nt=gn(),kt=pt("tr"),(qt=pt("th")).textContent="Pick",wt=gn(),Dt=pt("td"),ut=pt("div"),Nn(Ut.$$.fragment),ce(i,"class","svelte-ijtq0l"),ce(S,"class","jse-filter-value svelte-ijtq0l"),ce(a,"class","jse-horizontal svelte-ijtq0l"),ce($,"class","svelte-ijtq0l"),ce(se,"class","jse-horizontal svelte-ijtq0l"),ce(qt,"class","svelte-ijtq0l"),ce(ut,"class","jse-horizontal svelte-ijtq0l"),ce(e,"class","jse-transform-wizard svelte-ijtq0l")},m:function(Zn,En){Ht(Zn,e,En),Ge(e,n),Ge(n,i),Ge(n,r),Ge(n,s),Ge(s,a),zn(u,a,null),Ge(a,m),zn(_,a,null),Ge(a,x),Ge(a,S),k3(S,t[2]),Ge(e,D),Ge(e,z),Ge(z,$),Ge(z,W),Ge(z,re),Ge(re,se),zn(ke,se,null),Ge(se,Ke),zn(lt,se,null),Ge(e,Nt),Ge(e,kt),Ge(kt,qt),Ge(kt,wt),Ge(kt,Dt),Ge(Dt,ut),zn(Ut,ut,null),Lt=!0,et||(st=ei(S,"input",t[18]),et=!0)},p:function(Zn,En){var Nr=ds(En,1)[0],Pr={};128&Nr&&(Pr.items=Zn[7]),!d&&1&Nr&&(d=!0,Pr.value=Zn[0],Q2(function(){return d=!1})),u.$set(Pr);var va={};!y&&2&Nr&&(y=!0,va.value=Zn[1],Q2(function(){return y=!1})),_.$set(va),4&Nr&&S.value!==Zn[2]&&k3(S,Zn[2]);var Qo={};128&Nr&&(Qo.items=Zn[7]),!ye&&8&Nr&&(ye=!0,Qo.value=Zn[3],Q2(function(){return ye=!1})),ke.$set(Qo);var fn={};!Vt&&16&Nr&&(Vt=!0,fn.value=Zn[4],Q2(function(){return Vt=!1})),lt.$set(fn);var Yr={};64&Nr&&(Yr.items=Zn[6]),!$t&&32&Nr&&($t=!0,Yr.value=Zn[5],Q2(function(){return $t=!1})),Ut.$set(Yr)},i:function(Zn){Lt||(Me(u.$$.fragment,Zn),Me(_.$$.fragment,Zn),Me(ke.$$.fragment,Zn),Me(lt.$$.fragment,Zn),Me(Ut.$$.fragment,Zn),Lt=!0)},o:function(Zn){je(u.$$.fragment,Zn),je(_.$$.fragment,Zn),je(ke.$$.fragment,Zn),je(lt.$$.fragment,Zn),je(Ut.$$.fragment,Zn),Lt=!1},d:function(Zn){Zn&&At(e),Rn(u),Rn(_),Rn(ke),Rn(lt),Rn(Ut),et=!1,st()}}}function KNe(t,e,n){var i,r,s,a,u,d,m,_,y,x,S,D=v1("jsoneditor:TransformWizard"),z=e.json,$=e.queryOptions,W=void 0===$?{}:$,re=e.onChange,se=["==","!=","<","<=",">",">="].map(function(kt){return{value:kt,label:kt}}),ke=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],ye=null!==(i=W)&&void 0!==i&&null!==(i=i.filter)&&void 0!==i&&i.path?_b(W.filter.path):null,Ke=null!==(r=W)&&void 0!==r&&null!==(r=r.filter)&&void 0!==r&&r.relation?se.find(function(kt){var qt;return kt.value===(null===(qt=W.filter)||void 0===qt?void 0:qt.relation)}):null,lt=(null===(s=W)||void 0===s||null===(s=s.filter)||void 0===s?void 0:s.value)||"",Vt=null!==(a=W)&&void 0!==a&&null!==(a=a.sort)&&void 0!==a&&a.path?_b(W.sort.path):null,Nt=null!==(u=W)&&void 0!==u&&null!==(u=u.sort)&&void 0!==u&&u.direction?ke.find(function(kt){var qt;return kt.value===(null===(qt=W.sort)||void 0===qt?void 0:qt.direction)}):null;return t.$$set=function(kt){"json"in kt&&n(11,z=kt.json),"queryOptions"in kt&&n(10,W=kt.queryOptions),"onChange"in kt&&n(12,re=kt.onChange)},t.$$.update=function(){var kt,qt,wt,Dt,ut,Ut,$t,Lt,et,st,gt,sn,Hn,on,Xt;2048&t.$$.dirty&&n(15,d=Array.isArray(z)),34816&t.$$.dirty&&n(14,m=d?ML(z):[]),34816&t.$$.dirty&&n(13,_=d?ML(z,!0):[]),16384&t.$$.dirty&&n(7,y=m.map(_b)),8192&t.$$.dirty&&n(6,x=_?_.map(_b):[]),1088&t.$$.dirty&&n(5,S=null!==(kt=W)&&void 0!==kt&&null!==(kt=kt.projection)&&void 0!==kt&&kt.paths&&x?W.projection.paths.map(function(on){return x.find(function(Xt){return zs(Xt.value,on)})}).filter(function(on){return!!on}):null),1&t.$$.dirty&&(wt=null===(qt=ye)||void 0===qt?void 0:qt.value,zs(null===(Dt=W)||void 0===Dt||null===(Dt=Dt.filter)||void 0===Dt?void 0:Dt.path,wt)||(D("changeFilterPath",wt),n(10,W=ht(W,["filter","path"],wt,!0)),re(W))),2&t.$$.dirty&&(Ut=null===(ut=Ke)||void 0===ut?void 0:ut.value,zs(null===($t=W)||void 0===$t||null===($t=$t.filter)||void 0===$t?void 0:$t.relation,Ut)||(D("changeFilterRelation",Ut),n(10,W=ht(W,["filter","relation"],Ut,!0)),re(W))),4&t.$$.dirty&&(zs(null===(et=W)||void 0===et||null===(et=et.filter)||void 0===et?void 0:et.value,Lt=lt)||(D("changeFilterValue",Lt),n(10,W=ht(W,["filter","value"],Lt,!0)),re(W))),8&t.$$.dirty&&(on=null===(st=Vt)||void 0===st?void 0:st.value,zs(null===(Xt=W)||void 0===Xt||null===(Xt=Xt.sort)||void 0===Xt?void 0:Xt.path,on)||(D("changeSortPath",on),n(10,W=ht(W,["sort","path"],on,!0)),re(W))),16&t.$$.dirty&&(sn=null===(gt=Nt)||void 0===gt?void 0:gt.value,zs(null===(Hn=W)||void 0===Hn||null===(Hn=Hn.sort)||void 0===Hn?void 0:Hn.direction,sn)||(D("changeSortDirection",sn),n(10,W=ht(W,["sort","direction"],sn,!0)),re(W))),32&t.$$.dirty&&function(on){var Xt;zs(null===(Xt=W)||void 0===Xt||null===(Xt=Xt.projection)||void 0===Xt?void 0:Xt.paths,on)||(D("changeProjectionPaths",on),n(10,W=ht(W,["projection","paths"],on,!0)),re(W))}(S?S.map(function(on){return on.value}):void 0)},[ye,Ke,lt,Vt,Nt,S,x,y,se,ke,W,z,re,_,m,d,function(kt){n(0,ye=kt)},function(kt){n(1,Ke=kt)},function(){n(2,lt=this.value)},function(kt){n(3,Vt=kt)},function(kt){n(4,Nt=kt)},function(kt){n(5,S=kt),n(10,W),n(6,x),n(13,_),n(15,d),n(11,z)}]}var YNe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,KNe,XNe,gs,{json:11,queryOptions:10,onChange:12},qNe),i}return br(e,Cr),pr(e)}();function QNe(t){as(t,"svelte-1wg043c",'.jse-select-query-language.svelte-1wg043c.svelte-1wg043c{position:relative;width:32px}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container.svelte-1wg043c{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24))}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container .jse-query-language.svelte-1wg043c{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;text-align:left;padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));white-space:nowrap;color:var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff));background:var(--jse-context-menu-background, #656565)}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container .jse-query-language.svelte-1wg043c:hover{background:var(--jse-context-menu-background-highlight, #7a7a7a)}')}function vne(t,e,n){var i=t.slice();return i[5]=e[n],i}function JNe(t){var e,n;return e=new Co({props:{data:xM}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function ZNe(t){var e,n;return e=new Co({props:{data:CM}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function _ne(t){var e,n,i,r,s,a,u,d,m,_,y=t[5].name+"",x=[ZNe,JNe],S=[];function D($,W){return $[5].id===$[0]?0:1}function z(){return t[4](t[5])}return n=D(t),i=S[n]=x[n](t),{c:function(){e=pt("button"),i.c(),r=gn(),s=Ii(y),a=gn(),ce(e,"type","button"),ce(e,"class","jse-query-language svelte-1wg043c"),ce(e,"title",u="Select ".concat(t[5].name," as query language")),$n(e,"selected",t[5].id===t[0])},m:function($,W){Ht($,e,W),S[n].m(e,null),Ge(e,r),Ge(e,s),Ge(e,a),d=!0,m||(_=ei(e,"click",z),m=!0)},p:function($,W){var re=n;(n=D(t=$))!==re&&(si(),je(S[re],1,1,function(){S[re]=null}),oi(),(i=S[n])||(i=S[n]=x[n](t)).c(),Me(i,1),i.m(e,r)),(!d||2&W)&&y!==(y=t[5].name+"")&&Ir(s,y),(!d||2&W&&u!==(u="Select ".concat(t[5].name," as query language")))&&ce(e,"title",u),(!d||3&W)&&$n(e,"selected",t[5].id===t[0])},i:function($){d||(Me(i),d=!0)},o:function($){je(i),d=!1},d:function($){$&&At(e),S[n].d(),m=!1,_()}}}function ePe(t){for(var e,n,i,r=cs(t[1]),s=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:{};switch(d=1e3,r=W.offset||0,y=W.callback,s=W.easing||fPe,a=W.a11y||!1,Cc(W.container)){case"object":t=W.container;break;case"string":t=document.querySelector(W.container);break;default:t=window.document.documentElement}switch(n=t.scrollTop,Cc($)){case"number":e=void 0,a=!1,i=n+$;break;case"object":i=S(e=$);break;case"string":e=document.querySelector($),i=S(e)}switch(u=i-n+r,Cc(W.duration)){case"number":d=W.duration;break;case"function":d=W.duration(u)}x?m=0:requestAnimationFrame(z)}},hPe=1e3,tE=v1("jsoneditor:History");function xne(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.maxItems||hPe,n=[],i=0;function r(){return i0}function a(){return{canUndo:r(),canRedo:s(),length:n.length}}function u(){t.onChange&&t.onChange(a())}return{add:function(d){tE("add",d),n=[d].concat(n.slice(i)).slice(0,e),i=0,u()},clear:function(){tE("clear"),n=[],i=0,u()},getState:a,undo:function(){if(r()){var d=n[i];return i+=1,tE("undo",d),u(),d}},redo:function(){if(s())return tE("redo",n[i-=1]),u(),n[i]}}}function _7(t,e){var n=Date.now(),i=t();return e(Date.now()-n),i}var b7=v1("validation");function wne(t,e,n,i){if(b7("validateJSON"),!e)return[];if(n!==i){var r=n.stringify(t);return e(void 0!==r?i.parse(r):void 0)}return e(t)}function pPe(t,e,n,i){if(b7("validateText"),t.length>bze)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:zd.info}]};if(0===t.length)return null;try{var r=_7(function(){return n.parse(t)},function(d){return b7("validate: parsed json in ".concat(d," ms"))});if(!e)return null;var s=n===i?r:_7(function(){return i.parse(t)},function(d){return b7("validate: parsed json with the validationParser in ".concat(d," ms"))}),a=_7(function(){return e(s)},function(d){return b7("validate: validated json in ".concat(d," ms"))});return Zs(a)?null:{validationErrors:a}}catch(d){var u=_7(function(){return function(m,_){if(m.length>yze)return!1;try{return _.parse(na(m)),!0}catch{return!1}}(t,n)},function(m){return b7("validate: checked whether repairable in ".concat(m," ms"))});return{parseError:o7(t,d.message||d.toString()),isRepairable:u}}}var nE=v1("jsoneditor:FocusTracker");function sz(t){var e,i=t.onDestroy,r=t.getWindow,s=t.hasFocus,a=t.onFocus,u=t.onBlur,d=!1;function m(){var y=s();y&&(clearTimeout(e),d||(nE("focus"),a(),d=y))}function _(){d&&(clearTimeout(e),e=setTimeout(function(){s()||(nE("blur"),d=!1,u())}))}(0,t.onMount)(function(){nE("mount FocusTracker");var y=r();y&&(y.addEventListener("focusin",m,!0),y.addEventListener("focusout",_,!0))}),i(function(){nE("destroy FocusTracker");var y=r();y&&(y.removeEventListener("focusin",m,!0),y.removeEventListener("focusout",_,!0))})}function mPe(t){as(t,"svelte-p1zf9f",'.jse-message.svelte-p1zf9f.svelte-p1zf9f{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);padding:var(--jse-padding, 10px);display:flex;gap:var(--jse-padding, 10px);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-p1zf9f.svelte-p1zf9f{background:var(--message-success-background, #9ac45d);color:var(--jse-message-success-color, #fff)}.jse-message.svelte-p1zf9f .jse-text.svelte-p1zf9f{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-p1zf9f .jse-text.jse-clickable.svelte-p1zf9f{cursor:pointer}.jse-message.svelte-p1zf9f .jse-text.jse-clickable.svelte-p1zf9f:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-error-background, var(--jse-error-color, #ee5341));color:var(--jse-message-error-color, #fff)}.jse-message.jse-warning.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-warning-background, #ffde5c);color:var(--jse-message-warning-color, #4d4d4d)}.jse-message.jse-info.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-info-background, #4f91ff);color:var(--jse-message-info-color, #fff)}.jse-message.svelte-p1zf9f .jse-actions.svelte-p1zf9f{display:flex;gap:var(--jse-padding, 10px)}.jse-message.svelte-p1zf9f .jse-actions button.jse-action.svelte-p1zf9f{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-message-action-background, rgba(255, 255, 255, 0.2));color:inherit;padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px)}.jse-message.svelte-p1zf9f .jse-actions button.jse-action.svelte-p1zf9f:hover{background:var(--jse-message-action-background-highlight, rgba(255, 255, 255, 0.3))}')}function Mne(t,e,n){var i=t.slice();return i[9]=e[n],i}function Sne(t){var e,n;return e=new Co({props:{data:t[1]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};2&r&&(s.data=i[1]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function kne(t){var e,n;return e=new Co({props:{data:t[9].icon}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};8&r&&(s.data=i[9].icon),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Ene(t){var e,n,i,r,s,a,u,d,m,_=t[9].text+"",y=t[9].icon&&kne(t);function x(){return t[7](t[9])}function S(){return t[8](t[9])}return{c:function(){e=pt("button"),y&&y.c(),n=gn(),i=Ii(_),r=gn(),ce(e,"type","button"),ce(e,"class","jse-button jse-action jse-primary svelte-p1zf9f"),ce(e,"title",s=t[9].title),e.disabled=a=t[9].disabled},m:function(D,z){Ht(D,e,z),y&&y.m(e,null),Ge(e,n),Ge(e,i),Ge(e,r),u=!0,d||(m=[ei(e,"click",x),ei(e,"mousedown",S)],d=!0)},p:function(D,z){(t=D)[9].icon?y?(y.p(t,z),8&z&&Me(y,1)):((y=kne(t)).c(),Me(y,1),y.m(e,n)):y&&(si(),je(y,1,1,function(){y=null}),oi()),(!u||8&z)&&_!==(_=t[9].text+"")&&Ir(i,_),(!u||8&z&&s!==(s=t[9].title))&&ce(e,"title",s),(!u||8&z&&a!==(a=t[9].disabled))&&(e.disabled=a)},i:function(D){u||(Me(y),u=!0)},o:function(D){je(y),u=!1},d:function(D){D&&At(e),y&&y.d(),d=!1,ma(m)}}}function gPe(t){for(var e,n,i,r,s,a,u,d,m,_,y,x=t[1]&&Sne(t),S=cs(t[3]),D=[],z=0;zi7&&Ine(t);return{c:function(){e=pt("table"),n=pt("tbody");for(var _=0;_i7?m?m.p(_,y):((m=Ine(_)).c(),m.m(n,null)):m&&(m.d(1),m=null)},i:function(_){if(!r){for(var y=0;y1&&Vne(t);function se(){return t[7](t[8])}return{c:function(){e=pt("tr"),n=pt("td"),Nn(i.$$.fragment),r=gn(),s=pt("td"),a=Ii($),u=gn(),d=pt("td"),m=Ii(W),_=gn(),y=pt("td"),re&&re.c(),ce(n,"class","jse-validation-error-icon svelte-1gq3gfv"),ce(s,"class","jse-validation-error-path svelte-1gq3gfv"),ce(d,"class","jse-validation-error-message svelte-1gq3gfv"),ce(y,"class","jse-validation-error-action svelte-1gq3gfv"),ce(e,"class",x="jse-validation-"+t[8].severity+" svelte-1gq3gfv")},m:function(ke,ye){Ht(ke,e,ye),Ge(e,n),zn(i,n,null),Ge(e,r),Ge(e,s),Ge(s,a),Ge(e,u),Ge(e,d),Ge(d,m),Ge(e,_),Ge(e,y),re&&re.m(y,null),S=!0,D||(z=ei(e,"click",se),D=!0)},p:function(ke,ye){t=ke,(!S||1&ye)&&$!==($=yu(t[8].path)+"")&&Ir(a,$),(!S||1&ye)&&W!==(W=t[8].message+"")&&Ir(m,W),0===t[10]&&t[0].length>1?re?(re.p(t,ye),1&ye&&Me(re,1)):((re=Vne(t)).c(),Me(re,1),re.m(y,null)):re&&(si(),je(re,1,1,function(){re=null}),oi()),(!S||1&ye&&x!==(x="jse-validation-"+t[8].severity+" svelte-1gq3gfv"))&&ce(e,"class",x)},i:function(ke){S||(Me(i.$$.fragment,ke),Me(re),S=!0)},o:function(ke){je(i.$$.fragment,ke),je(re),S=!1},d:function(ke){ke&&At(e),Rn(i),re&&re.d(),D=!1,z()}}}function Ine(t){var e,n,i,r,s,a,u,d,m,_,y,x=t[3]-i7+"";return{c:function(){e=pt("tr"),n=pt("td"),i=gn(),r=pt("td"),s=gn(),a=pt("td"),u=Ii("(and "),d=Ii(x),m=Ii(" more errors)"),_=gn(),y=pt("td"),ce(n,"class","svelte-1gq3gfv"),ce(r,"class","svelte-1gq3gfv"),ce(a,"class","svelte-1gq3gfv"),ce(y,"class","svelte-1gq3gfv"),ce(e,"class","jse-validation-error svelte-1gq3gfv")},m:function(S,D){Ht(S,e,D),Ge(e,n),Ge(e,i),Ge(e,r),Ge(e,s),Ge(e,a),Ge(a,u),Ge(a,d),Ge(a,m),Ge(e,_),Ge(e,y)},p:function(S,D){8&D&&x!==(x=S[3]-i7+"")&&Ir(d,x)},d:function(S){S&&At(e)}}}function CPe(t){var e,n,i=!Zs(t[0]),r=i&&Tne(t);return{c:function(){r&&r.c(),e=ho()},m:function(s,a){r&&r.m(s,a),Ht(s,e,a),n=!0},p:function(s,a){var u=ds(a,1)[0];1&u&&(i=!Zs(s[0])),i?r?(r.p(s,u),1&u&&Me(r,1)):((r=Tne(s)).c(),Me(r,1),r.m(e.parentNode,e)):r&&(si(),je(r,1,1,function(){r=null}),oi())},i:function(s){n||(Me(r),n=!0)},o:function(s){je(r),n=!1},d:function(s){s&&At(e),r&&r.d(s)}}}function xPe(t,e,n){var i,r=e.validationErrors,s=e.selectError,a=!0;return t.$$set=function(u){"validationErrors"in u&&n(0,r=u.validationErrors),"selectError"in u&&n(1,s=u.selectError)},t.$$.update=function(){1&t.$$.dirty&&n(3,i=r.length)},[r,s,a,i,function(){n(2,a=!1)},function(){n(2,a=!0)},function(u){return[zd.error,zd.warning,zd.info].find(function(d){return u.some(function(m){return m.severity===d})})},function(u){setTimeout(function(){return s(u)})}]}var oz=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,xPe,CPe,gs,{validationErrors:0,selectError:1},_Pe),i}return br(e,Cr),pr(e)}(),wPe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0,y7=[];function One(t){if("Escape"===t.key){var e=Ur(y7);e&&e()}}function Db(t,e){return Zs(y7)&&window.addEventListener("keydown",One),y7.push(e),{destroy:function(){y7=y7.filter(function(n){return n!==e}),Zs(y7)&&window.removeEventListener("keydown",One)}}}function MPe(t){as(t,"svelte-1nm0t3v",'.jse-modal.svelte-1nm0t3v.svelte-1nm0t3v{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1nm0t3v .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1nm0t3v .jse-modal-contents.svelte-1nm0t3v{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions.svelte-1nm0t3v{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-copy-paste.svelte-1nm0t3v .jse-shortcuts.svelte-1nm0t3v{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding, 10px)) 0}.jse-modal.jse-copy-paste.svelte-1nm0t3v .jse-shortcuts .jse-shortcut .jse-key.svelte-1nm0t3v{font-size:200%;color:var(--jse-theme-color, #3883fa)}')}function SPe(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt;return n=new eE({props:{title:"Copying and pasting"}}),{c:function(){e=pt("div"),Nn(n.$$.fragment),i=gn(),r=pt("div"),(s=pt("div")).textContent="These actions are unavailable via the menu. Please use:",a=gn(),u=pt("div"),d=pt("div"),(m=pt("div")).textContent="".concat(t[1],"+C"),_=Ii("\n for copy"),y=gn(),x=pt("div"),(S=pt("div")).textContent="".concat(t[1],"+X"),D=Ii("\n for cut"),z=gn(),$=pt("div"),(W=pt("div")).textContent="".concat(t[1],"+V"),re=Ii("\n for paste"),se=gn(),ke=pt("div"),(ye=pt("button")).textContent="Close",ce(m,"class","jse-key svelte-1nm0t3v"),ce(d,"class","jse-shortcut"),ce(S,"class","jse-key svelte-1nm0t3v"),ce(x,"class","jse-shortcut"),ce(W,"class","jse-key svelte-1nm0t3v"),ce($,"class","jse-shortcut"),ce(u,"class","jse-shortcuts svelte-1nm0t3v"),ce(ye,"type","button"),ce(ye,"class","jse-primary svelte-1nm0t3v"),ce(ke,"class","jse-actions svelte-1nm0t3v"),ce(r,"class","jse-modal-contents svelte-1nm0t3v"),ce(e,"class","jse-modal jse-copy-paste svelte-1nm0t3v")},m:function(Nt,kt){Ht(Nt,e,kt),zn(n,e,null),Ge(e,i),Ge(e,r),Ge(r,s),Ge(r,a),Ge(r,u),Ge(u,d),Ge(d,m),Ge(d,_),Ge(u,y),Ge(u,x),Ge(x,S),Ge(x,D),Ge(u,z),Ge(u,$),Ge($,W),Ge($,re),Ge(r,se),Ge(r,ke),Ge(ke,ye),Ke=!0,lt||(Vt=[ei(ye,"click",t[2]),$l(Db.call(null,e,t[3]))],lt=!0)},p:hi,i:function(Nt){Ke||(Me(n.$$.fragment,Nt),Ke=!0)},o:function(Nt){je(n.$$.fragment,Nt),Ke=!1},d:function(Nt){Nt&&At(e),Rn(n),lt=!1,ma(Vt)}}}function kPe(t){var e=V1("simple-modal").close;return[e,wPe?"\u2318":"Ctrl",function(){return e()},function(){return e()}]}var Hne=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,kPe,SPe,gs,{},MPe),i}return br(e,Cr),pr(e)}();function Lne(t){return!!t&&("space"===t.type||!0===t.space)}function iE(t){return!!t&&("separator"===t.type||!0===t.separator)}function Tb(t){return!!t&&"function"==typeof t.onClick}function az(t){return!!t&&"dropdown-button"===t.type&&Tb(t.main)&&Array.isArray(t.items)}function zne(t){return ga(t)&&ga(t.parseError)}function Rne(t){return ga(t)&&"function"==typeof t.action&&ga(t.props)}function OPe(t){as(t,"svelte-7deygj",'.jse-menu.svelte-7deygj.svelte-7deygj{background:var(--jse-theme-color, #3883fa);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-main-menu, 14px);color:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));display:flex;flex-wrap:wrap;align-items:stretch;position:relative}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj{font-family:inherit;font-size:inherit;line-height:1.5em;border:none;background:transparent;color:inherit;cursor:pointer;width:var(--jse-menu-button-size, 32px);height:var(--jse-menu-button-size, 32px);padding:calc(0.5 * var(--jse-padding, 10px));margin:0;border-radius:0;display:inline-flex;align-items:center;text-align:center;justify-content:center}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:hover,.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:focus{background:var(--jse-theme-color-highlight, #5f9dff)}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:disabled{color:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));opacity:0.5;background:transparent}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj{width:auto;height:calc(var(--jse-menu-button-size, 32px) - var(--jse-padding, 10px));margin:calc(0.5 * var(--jse-padding, 10px)) 0;padding:0 calc(0.5 * var(--jse-padding, 10px)) 1px;border:1px solid var(--jse-menu-color, var(--jse-text-color-inverse, #fff))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:not(.jse-last){border-right:none}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-first.svelte-7deygj{margin-left:calc(0.5 * var(--jse-padding, 10px))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-last.svelte-7deygj{margin-right:calc(0.5 * var(--jse-padding, 10px))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:hover,.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:focus{background:var(--jse-theme-color-highlight, #5f9dff)}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-selected.svelte-7deygj{background:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));color:var(--jse-theme-color, #3883fa)}.jse-menu.svelte-7deygj .jse-space.svelte-7deygj{flex:1}.jse-menu.svelte-7deygj .jse-separator.svelte-7deygj{background:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));opacity:0.3;width:1px;margin:3px}')}var HPe=function(t){return{}},Nne=function(t){return{}};function Pne(t,e,n){var i=t.slice();return i[3]=e[n],i}var LPe=function(t){return{}},jne=function(t){return{}};function zPe(t){var e,n=Une(t[3])+"";return{c:function(){e=Ii(n)},m:function(i,r){Ht(i,e,r)},p:function(i,r){1&r&&n!==(n=Une(i[3])+"")&&Ir(e,n)},i:hi,o:hi,d:function(i){i&&At(e)}}}function RPe(t){var e,n,i,r,s,a,u,d,m=t[3].icon&&Fne(t),_=t[3].text&&Bne(t);return{c:function(){e=pt("button"),m&&m.c(),n=gn(),_&&_.c(),ce(e,"type","button"),ce(e,"class",i="jse-button "+t[3].className+" svelte-7deygj"),ce(e,"title",r=t[3].title),e.disabled=s=t[3].disabled||!1},m:function(y,x){Ht(y,e,x),m&&m.m(e,null),Ge(e,n),_&&_.m(e,null),a=!0,u||(d=ei(e,"click",function(){T1(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),u=!0)},p:function(y,x){(t=y)[3].icon?m?(m.p(t,x),1&x&&Me(m,1)):((m=Fne(t)).c(),Me(m,1),m.m(e,n)):m&&(si(),je(m,1,1,function(){m=null}),oi()),t[3].text?_?_.p(t,x):((_=Bne(t)).c(),_.m(e,null)):_&&(_.d(1),_=null),(!a||1&x&&i!==(i="jse-button "+t[3].className+" svelte-7deygj"))&&ce(e,"class",i),(!a||1&x&&r!==(r=t[3].title))&&ce(e,"title",r),(!a||1&x&&s!==(s=t[3].disabled||!1))&&(e.disabled=s)},i:function(y){a||(Me(m),a=!0)},o:function(y){je(m),a=!1},d:function(y){y&&At(e),m&&m.d(),_&&_.d(),u=!1,d()}}}function NPe(t){var e;return{c:function(){ce(e=pt("div"),"class","jse-space svelte-7deygj")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function PPe(t){var e;return{c:function(){ce(e=pt("div"),"class","jse-separator svelte-7deygj")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function Fne(t){var e,n;return e=new Co({props:{data:t[3].icon}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r&&(s.data=i[3].icon),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Bne(t){var e,n=t[3].text+"";return{c:function(){e=Ii(n)},m:function(i,r){Ht(i,e,r)},p:function(i,r){1&r&&n!==(n=i[3].text+"")&&Ir(e,n)},d:function(i){i&&At(e)}}}function $ne(t){var e,n,i,r,s,a,u,d=[PPe,NPe,RPe,zPe],m=[];function _(y,x){return 1&x&&(e=null),1&x&&(n=null),1&x&&(i=null),null==e&&(e=!!iE(y[3])),e?0:(null==n&&(n=!!Lne(y[3])),n?1:(null==i&&(i=!!Tb(y[3])),i?2:3))}return r=_(t,-1),s=m[r]=d[r](t),{c:function(){s.c(),a=ho()},m:function(y,x){m[r].m(y,x),Ht(y,a,x),u=!0},p:function(y,x){var S=r;(r=_(y,x))===S?m[r].p(y,x):(si(),je(m[S],1,1,function(){m[S]=null}),oi(),(s=m[r])?s.p(y,x):(s=m[r]=d[r](y)).c(),Me(s,1),s.m(a.parentNode,a))},i:function(y){u||(Me(s),u=!0)},o:function(y){je(s),u=!1},d:function(y){y&&At(a),m[r].d(y)}}}function jPe(t){for(var e,n,i,r,s=t[2].left,a=jc(s,t,t[1],jne),u=cs(t[0]),d=[],m=0;m=W.end&&se.end<=Ke.start)&<.push(se),Ke.start>=(Vt?se.end:W.end)&<.push(Ke),u=lt))},[y,S,s,r,u,a,d,m,_,x,D,i,function(z){return S(y,z)}]}var nje=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,tje,ZPe,gs,{visibleSections:6,sectionIndex:7,total:8,path:0,selection:9,onExpandSection:1,context:10},JPe),i}return br(e,Cr),pr(e)}();function ije(t){as(t,"svelte-6k6355",".jse-context-menu-pointer.svelte-6k6355{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size, calc(1em + 4px)));right:calc(-0.5 * var(--jse-context-menu-pointer-size, calc(1em + 4px)));width:var(--jse-context-menu-pointer-size, calc(1em + 4px));height:var(--jse-context-menu-pointer-size, calc(1em + 4px));padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565));color:var(--jse-context-menu-pointer-color, var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff)));border:none;box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24))}.jse-context-menu-pointer.svelte-6k6355:hover{background:var(--jse-context-menu-pointer-background-highlight, var(--jse-context-menu-background-highlight, #7a7a7a))}")}function rje(t){var e,n,i,r,s;return n=new Co({props:{data:Uu}}),{c:function(){e=pt("button"),Nn(n.$$.fragment),ce(e,"type","button"),ce(e,"class","jse-context-menu-pointer svelte-6k6355"),ce(e,"title",_L),$n(e,"jse-selected",t[0])},m:function(a,u){Ht(a,e,u),zn(n,e,null),i=!0,r||(s=ei(e,"click",t[1]),r=!0)},p:function(a,u){var d=ds(u,1)[0];(!i||1&d)&&$n(e,"jse-selected",a[0])},i:function(a){i||(Me(n.$$.fragment,a),i=!0)},o:function(a){je(n.$$.fragment,a),i=!1},d:function(a){a&&At(e),Rn(n),r=!1,s()}}}function sje(t,e,n){var i=e.selected,r=e.onContextMenu;return t.$$set=function(s){"selected"in s&&n(0,i=s.selected),"onContextMenu"in s&&n(2,r=s.onContextMenu)},[i,function(s){for(var a=s.target;a&&"BUTTON"!==a.nodeName;)a=a.parentNode;a&&r({anchor:a,left:0,top:0,width:E0,height:k0,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var Fh=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,sje,rje,gs,{selected:0,onContextMenu:2},ije),i}return br(e,Cr),pr(e)}();function oje(t){as(t,"svelte-10xe8tv",'.jse-key.svelte-10xe8tv{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color, #1a1a1a);cursor:var(--jse-contents-cursor, pointer);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-10xe8tv:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-key.svelte-10xe8tv:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-key.jse-empty.svelte-10xe8tv{min-width:3em;outline:1px dotted var(--jse-tag-background, rgba(0, 0, 0, 0.2));-moz-outline-radius:2px}.jse-key.jse-empty.svelte-10xe8tv::after{pointer-events:none;color:var(--jse-tag-background, rgba(0, 0, 0, 0.2));content:"key"}')}function aje(t){var e,n,i,r,s,a,u,d=[uje,lje],m=[];function _(y,x){return y[1]?0:1}return n=_(t),i=m[n]=d[n](t),{c:function(){e=pt("div"),i.c(),ce(e,"role","none"),ce(e,"data-type","selectable-key"),ce(e,"class",r=Oc(t[6](t[0]))+" svelte-10xe8tv")},m:function(y,x){Ht(y,e,x),m[n].m(e,null),s=!0,a||(u=ei(e,"dblclick",t[5]),a=!0)},p:function(y,x){var S=n;(n=_(y))===S?m[n].p(y,x):(si(),je(m[S],1,1,function(){m[S]=null}),oi(),(i=m[n])?i.p(y,x):(i=m[n]=d[n](y)).c(),Me(i,1),i.m(e,null)),(!s||1&x&&r!==(r=Oc(y[6](y[0]))+" svelte-10xe8tv"))&&ce(e,"class",r)},i:function(y){s||(Me(i),s=!0)},o:function(y){je(i),s=!1},d:function(y){y&&At(e),m[n].d(),a=!1,u()}}}function cje(t){var e,n;return e=new fte({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};5&r&&(s.value=i[2].normalization.escapeValue(i[0])),4&r&&(s.onFind=i[2].onFind),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function lje(t){var e,n=Gp(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){e=Ii(n)},m:function(i,r){Ht(i,e,r)},p:function(i,r){5&r&&n!==(n=Gp(i[2].normalization.escapeValue(i[0]))+"")&&Ir(e,n)},i:hi,o:hi,d:function(i){i&&At(e)}}}function uje(t){var e,n;return e=new Ste({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};5&r&&(s.text=i[2].normalization.escapeValue(i[0])),2&r&&(s.searchResultItems=i[1]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Xne(t){var e,n;return e=new Fh({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};4&r&&(s.onContextMenu=i[2].onContextMenu),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function dje(t){var e,n,i,r,s,a=[cje,aje],u=[];function d(_,y){return!_[2].readOnly&&_[4]?0:1}e=d(t),n=u[e]=a[e](t);var m=!t[2].readOnly&&t[3]&&!t[4]&&Xne(t);return{c:function(){n.c(),i=gn(),m&&m.c(),r=ho()},m:function(_,y){u[e].m(_,y),Ht(_,i,y),m&&m.m(_,y),Ht(_,r,y),s=!0},p:function(_,y){var x=ds(y,1)[0],S=e;(e=d(_))===S?u[e].p(_,x):(si(),je(u[S],1,1,function(){u[S]=null}),oi(),(n=u[e])?n.p(_,x):(n=u[e]=a[e](_)).c(),Me(n,1),n.m(i.parentNode,i)),_[2].readOnly||!_[3]||_[4]?m&&(si(),je(m,1,1,function(){m=null}),oi()):m?(m.p(_,x),28&x&&Me(m,1)):((m=Xne(_)).c(),Me(m,1),m.m(r.parentNode,r))},i:function(_){s||(Me(n),Me(m),s=!0)},o:function(_){je(n),je(m),s=!1},d:function(_){_&&(At(i),At(r)),u[e].d(_),m&&m.d(_)}}}function fje(t,e,n){var i,r,s=e.path,a=e.key,u=e.selection,d=e.searchResultItems,m=e.onUpdateKey,_=e.context;return t.$$set=function(y){"path"in y&&n(9,s=y.path),"key"in y&&n(0,a=y.key),"selection"in y&&n(10,u=y.selection),"searchResultItems"in y&&n(1,d=y.searchResultItems),"onUpdateKey"in y&&n(11,m=y.onUpdateKey),"context"in y&&n(2,_=y.context)},t.$$.update=function(){1536&t.$$.dirty&&n(3,i=!!u&&dl(u)&&zs(u.path,s)),1032&t.$$.dirty&&n(4,r=i&&C2(u))},[a,d,_,i,r,function(y){r||_.readOnly||(y.preventDefault(),_.onSelect(Pd(s,!0)))},function(y){return V3("jse-key",{"jse-empty":""===y})},function(y,x){var S=m(a,_.normalization.unescapeValue(y)),D=Ls(s).concat(S);_.onSelect(x===Lh.nextInside?Bs(D,!1):Pd(D,!1)),x!==Lh.self&&_.focus()},function(){_.onSelect(Pd(s,!1)),_.focus()},s,u,m]}var hje=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,fje,dje,gs,{path:9,key:0,selection:10,searchResultItems:1,onUpdateKey:11,context:2},oje),i}return br(e,Cr),pr(e)}();function Kne(t,e,n){var i=t.slice();return i[8]=e[n],i}function pje(t){var e,n,i=t[8].component,r=Yne(t);return{c:function(){r.c(),e=ho()},m:function(s,a){r.m(s,a),Ht(s,e,a),n=!0},p:function(s,a){1&a&&gs(i,i=s[8].component)?(si(),je(r,1,1,hi),oi(),(r=Yne(s)).c(),Me(r,1),r.m(e.parentNode,e)):r.p(s,a)},i:function(s){n||(Me(r),n=!0)},o:function(s){je(r),n=!1},d:function(s){s&&At(e),r.d(s)}}}function mje(t){var e,n=t[8].action,i=Qne(t);return{c:function(){i.c(),e=ho()},m:function(r,s){i.m(r,s),Ht(r,e,s)},p:function(r,s){1&s&&gs(n,n=r[8].action)?(i.d(1),(i=Qne(r)).c(),i.m(e.parentNode,e)):i.p(r,s)},i:hi,o:hi,d:function(r){r&&At(e),i.d(r)}}}function Yne(t){var e,n,i,r=[t[8].props],s=t[8].component;function a(u,d){for(var m={},_=0;_ke+re()/2;)ke+=re(),se-=1;return se!==W&&void 0!==S[se]?{beforePath:S[se].path,offset:se-W}:void 0}({json:e,selection:s,deltaY:i,items:r}):function(y){for(var x,S=y.json,D=y.items,$=y.deltaY,W=Nh(S,y.selection),re=D.findIndex(function(qt){return zs(qt.path,W)}),se=0,ke=re,ye=function(){var qt;return null===(qt=D[ke+1])||void 0===qt?void 0:qt.height};void 0!==ye()&&Math.abs($)>se+ye()/2;)se+=ye(),ke+=1;var lt=nt(S,Ls(W)),Vt=Array.isArray(lt),Nt=null===(x=D[Vt?ke:ke+1])||void 0===x?void 0:x.path,kt=ke-re;return Nt?{beforePath:Nt,offset:kt}:{append:!0,offset:kt}}({json:e,selection:s,deltaY:i,items:r});if(!a||0===a.offset)return{operations:void 0,updatedSelection:null,offset:0};var y,x,S,D,z,$,W,re,se,ke,ye,u=function(y,x,S){if(!x)return[];var D="beforePath"in S?S.beforePath:void 0,z="append"in S?S.append:void 0,$=Ls(mr(x)),W=nt(y,$);if(!(z||D&&I0(D,$)&&D.length>$.length))return[];var re=A0(y,x),se=Nh(y,x),ke=Ur(re),ye=Ur(se),Ke=D?D[$.length]:void 0;if(!he(W)){if(Be(W)){var lt=Q1(ke),Vt=Q1(ye),Nt=void 0!==Ke?Q1(Ke):W.length;return RA(Vt-lt+1,Ntqt?[].concat(Ts(kt.slice(qt,wt+1)),Ts(kt.slice(Dt,kt.length))).map(function(ut){return Xp($,ut)}):[].concat(Ts(kt.slice(Dt,qt)),Ts(kt.slice(wt+1,kt.length))).map(function(ut){return Xp($,ut)}):[]}(e,s,a),m=nt(e,Ls(A0(e,s)));return Array.isArray(m)?{operations:u,updatedSelection:(D=(y={items:r,json:e,selection:s,offset:a.offset}).items,W=y.offset,re=A0(z=y.json,$=y.selection),se=Nh(z,$),ke=D.findIndex(function(Vt){return zs(Vt.path,re)}),ye=D.findIndex(function(Vt){return zs(Vt.path,se)}),y2(null===(x=D[ke+W])||void 0===x?void 0:x.path,null===(S=D[ye+W])||void 0===S?void 0:S.path)),offset:a.offset}:{operations:u,updatedSelection:null,offset:a.offset}}function Fd(t,e){return function(n,i){if(n){for(var r={},s=0,a=Object.keys(n);s0?r:void 0}}(t,function(n){return at(n,e)})}function yje(t){as(t,"svelte-1yy7qpj",'button.jse-validation-error.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-error-color, #ee5341)}button.jse-validation-info.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-info-color, #4f91ff)}button.jse-validation-warning.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color, #fdc539)}')}function Cje(t){var e,n,i,r,s,a,u;return n=new Co({props:{data:bh}}),{c:function(){e=pt("button"),Nn(n.$$.fragment),ce(e,"type","button"),ce(e,"class",i="jse-validation-"+t[0].severity+" svelte-1yy7qpj")},m:function(d,m){Ht(d,e,m),zn(n,e,null),s=!0,a||(u=[ei(e,"click",function(){T1(t[1])&&t[1].apply(this,arguments)}),$l(r=YL.call(null,e,yn({text:t[2]},t[3])))],a=!0)},p:function(d,m){var _=ds(m,1)[0];t=d,(!s||1&_&&i!==(i="jse-validation-"+t[0].severity+" svelte-1yy7qpj"))&&ce(e,"class",i),r&&T1(r.update)&&4&_&&r.update.call(null,yn({text:t[2]},t[3]))},i:function(d){s||(Me(n.$$.fragment,d),s=!0)},o:function(d){je(n.$$.fragment,d),s=!1},d:function(d){d&&At(e),Rn(n),a=!1,ma(u)}}}function xje(t,e,n){var i,r=V1("absolute-popup"),s=e.validationError,a=e.onExpand;return t.$$set=function(u){"validationError"in u&&n(0,s=u.validationError),"onExpand"in u&&n(1,a=u.onExpand)},t.$$.update=function(){1&t.$$.dirty&&n(2,i=function IPe(t){return ga(t)&&function APe(t){return ga(t)&&Array.isArray(t.path)&&"string"==typeof t.message&&"severity"in t}(t)&&"boolean"==typeof t.isChildError}(s)&&s.isChildError?"Contains invalid data":s.message)},[s,a,i,r]}var C7=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,xje,Cje,n1,{validationError:0,onExpand:1},yje),i}return br(e,Cr),pr(e)}();function wje(t){as(t,"svelte-6mjnsm",'.jse-json-node.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative;color:var(--jse-text-color, #4d4d4d)}.jse-json-node.jse-root.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size, calc(1em + 4px)))}.jse-json-node.jse-root.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm.svelte-6mjnsm{padding-left:0}.jse-json-node.svelte-6mjnsm .jse-props.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-items.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-header-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-footer-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)))}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-header .jse-meta.svelte-6mjnsm>.jse-meta-inner.svelte-6mjnsm.svelte-6mjnsm{display:flex;justify-content:center}.jse-json-node.svelte-6mjnsm .jse-contents-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)))}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;flex-direction:row;align-items:flex-start}.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding-left:var(--jse-indent-size, calc(1em + 4px))}.jse-json-node.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:inline-flex;padding-left:calc(var(--jse-indent-size, calc(1em + 4px)) + 5px)}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-contents-background-color, transparent)}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding, 10px));flex:1}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.jse-inside.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:inline-flex;align-items:center}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.jse-after.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;align-items:flex-end}.jse-json-node.svelte-6mjnsm .jse-context-menu-pointer-anchor.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-insert-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;position:relative;z-index:1;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)));max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding, 10px));outline:1px solid}.jse-json-node.svelte-6mjnsm .jse-insert-area.svelte-6mjnsm .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-hovered.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{outline-color:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-json-node.svelte-6mjnsm:hover>.jse-contents-outer .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected),.jse-json-node.svelte-6mjnsm .jse-header-outer.svelte-6mjnsm:hover>.jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected),.jse-json-node.svelte-6mjnsm .jse-footer-outer:hover .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-json-node.jse-selected.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected.svelte-6mjnsm .jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-selected.svelte-6mjnsm .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-selection-background-color, #d3d3d3)}.jse-json-node.jse-selected-key.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-identifier>.jse-key{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm>.jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.svelte-6mjnsm .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-6mjnsm .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-collapsed-items{background-color:var(--jse-selection-background-color, #d3d3d3);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color, #c2c2c2)}.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-selection-background-color, #d3d3d3)}.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm .jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-readonly.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{outline-color:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565))}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565))}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight, var(--jse-context-menu-background-highlight, #7a7a7a))}.jse-main:not(.jse-focus) .jse-json-node.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{--jse-selection-background-color:var(--jse-selection-background-inactive-color, #e8e8e8);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{width:var(--jse-indent-size, calc(1em + 4px));padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38));font-size:var(--jse-font-size-mono, 14px);height:var(--jse-line-height, calc(1em + 4px))}.jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:hover{opacity:0.8}.jse-meta.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-separator.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-index.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-bracket.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{vertical-align:top;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-index.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding:0 calc(0.5 * var(--jse-padding, 10px))}.jse-bracket.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding:0 2px}.jse-bracket.jse-expanded.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding-right:var(--jse-padding, 10px)}.jse-tag.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{border:none;font-size:80%;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);color:var(--jse-tag-color, var(--jse-text-color-inverse, #fff));background:var(--jse-tag-background, rgba(0, 0, 0, 0.2));border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{opacity:0.7;cursor:inherit}.jse-identifier.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{vertical-align:top;position:relative}')}var Mje=function(t){return{}},Zne=function(t){return{}};function eie(t,e,n){var i=t.slice();return i[52]=e[n],i}var Sje=function(t){return{}},tie=function(t){return{}};function nie(t,e,n){var i=t.slice();return i[46]=e[n],i[48]=n,i}function iie(t,e,n){var i=t.slice();return i[49]=e[n],i}var kje=function(t){return{}},rie=function(t){return{}};function Eje(t){var e,n,i,r,s,a,u,d,m,_=!t[8].readOnly&&t[16]&&t[7]&&(po(t[7])||Ca(t[7]))&&!C2(t[7])&&zs(mr(t[7]),t[1]),y=t[33].identifier,x=jc(y,t,t[34],Zne),S=!t[17]&&sie();s=new bje({props:{path:t[1],value:t[0],enforceString:t[13]||!1,selection:t[16]?t[7]:null,searchResultItems:KL(t[6],t[9]),context:t[8]}});var D=_&&oie(t),z=t[15]&&aie(t),$=!t[17]&&cie(t);return{c:function(){e=pt("div"),n=pt("div"),x&&x.c(),i=gn(),S&&S.c(),r=gn(),Nn(s.$$.fragment),a=gn(),D&&D.c(),u=gn(),z&&z.c(),d=gn(),$&&$.c(),ce(n,"class","jse-contents svelte-6mjnsm"),ce(e,"class","jse-contents-outer svelte-6mjnsm")},m:function(W,re){Ht(W,e,re),Ge(e,n),x&&x.m(n,null),Ge(n,i),S&&S.m(n,null),Ge(n,r),zn(s,n,null),Ge(n,a),D&&D.m(n,null),Ge(e,u),z&&z.m(e,null),Ge(e,d),$&&$.m(e,null),m=!0},p:function(W,re){x&&x.p&&(!m||8&re[1])&&Bc(x,y,W,W[34],m?Fc(y,W[34],re,Mje):$c(W[34]),Zne),W[17]?S&&(S.d(1),S=null):S||((S=sie()).c(),S.m(n,r));var se={};2&re[0]&&(se.path=W[1]),1&re[0]&&(se.value=W[0]),8192&re[0]&&(se.enforceString=W[13]||!1),65664&re[0]&&(se.selection=W[16]?W[7]:null),576&re[0]&&(se.searchResultItems=KL(W[6],W[9])),256&re[0]&&(se.context=W[8]),s.$set(se),65922&re[0]&&(_=!W[8].readOnly&&W[16]&&W[7]&&(po(W[7])||Ca(W[7]))&&!C2(W[7])&&zs(mr(W[7]),W[1])),_?D?(D.p(W,re),65922&re[0]&&Me(D,1)):((D=oie(W)).c(),Me(D,1),D.m(n,null)):D&&(si(),je(D,1,1,function(){D=null}),oi()),W[15]?z?(z.p(W,re),32768&re[0]&&Me(z,1)):((z=aie(W)).c(),Me(z,1),z.m(e,d)):z&&(si(),je(z,1,1,function(){z=null}),oi()),W[17]?$&&($.d(1),$=null):$?$.p(W,re):(($=cie(W)).c(),$.m(e,null))},i:function(W){m||(Me(x,W),Me(s.$$.fragment,W),Me(D),Me(z),m=!0)},o:function(W){je(x,W),je(s.$$.fragment,W),je(D),je(z),m=!1},d:function(W){W&&At(e),x&&x.d(W),S&&S.d(),Rn(s),D&&D.d(),z&&z.d(),$&&$.d()}}}function Dje(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se=!t[8].readOnly&&t[16]&&t[7]&&(po(t[7])||Ca(t[7]))&&!C2(t[7])&&zs(mr(t[7]),t[1]),ke=[Aje,Vje],ye=[];function Ke(st,gt){return st[12]?0:1}r=Ke(t),s=ye[r]=ke[r](t);var lt=t[33].identifier,Vt=jc(lt,t,t[34],tie),Nt=!t[17]&&lie();function kt(st,gt){return st[12]?Oje:Ije}var qt=kt(t),wt=qt(t),Dt=se&&uie(t),ut=t[15]&&(!t[12]||!t[15].isChildError)&&die(t);function Ut(st,gt){return st[12]?Lje:st[17]?void 0:Hje}var $t=Ut(t),Lt=$t&&$t(t),et=t[12]&&fie(t);return{c:function(){e=pt("div"),n=pt("div"),i=pt("button"),s.c(),a=gn(),Vt&&Vt.c(),u=gn(),Nt&&Nt.c(),d=gn(),m=pt("div"),_=pt("div"),wt.c(),y=gn(),Dt&&Dt.c(),x=gn(),ut&&ut.c(),S=gn(),Lt&&Lt.c(),D=gn(),et&&et.c(),z=ho(),ce(i,"type","button"),ce(i,"class","jse-expand svelte-6mjnsm"),ce(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),ce(_,"class","jse-meta-inner svelte-6mjnsm"),ce(m,"class","jse-meta svelte-6mjnsm"),ce(m,"data-type","selectable-value"),ce(n,"class","jse-header svelte-6mjnsm"),ce(e,"class","jse-header-outer svelte-6mjnsm")},m:function(st,gt){Ht(st,e,gt),Ge(e,n),Ge(n,i),ye[r].m(i,null),Ge(n,a),Vt&&Vt.m(n,null),Ge(n,u),Nt&&Nt.m(n,null),Ge(n,d),Ge(n,m),Ge(m,_),wt.m(_,null),Ge(n,y),Dt&&Dt.m(n,null),Ge(e,x),ut&&ut.m(e,null),Ge(e,S),Lt&&Lt.m(e,null),Ht(st,D,gt),et&&et.m(st,gt),Ht(st,z,gt),$=!0,W||(re=ei(i,"click",t[20]),W=!0)},p:function(st,gt){var sn=r;(r=Ke(st))!==sn&&(si(),je(ye[sn],1,1,function(){ye[sn]=null}),oi(),(s=ye[r])||(s=ye[r]=ke[r](st)).c(),Me(s,1),s.m(i,null)),Vt&&Vt.p&&(!$||8>[1])&&Bc(Vt,lt,st,st[34],$?Fc(lt,st[34],gt,Sje):$c(st[34]),tie),st[17]?Nt&&(Nt.d(1),Nt=null):Nt||((Nt=lie()).c(),Nt.m(n,d)),qt===(qt=kt(st))&&wt?wt.p(st,gt):(wt.d(1),(wt=qt(st))&&(wt.c(),wt.m(_,null))),65922>[0]&&(se=!st[8].readOnly&&st[16]&&st[7]&&(po(st[7])||Ca(st[7]))&&!C2(st[7])&&zs(mr(st[7]),st[1])),se?Dt?(Dt.p(st,gt),65922>[0]&&Me(Dt,1)):((Dt=uie(st)).c(),Me(Dt,1),Dt.m(n,null)):Dt&&(si(),je(Dt,1,1,function(){Dt=null}),oi()),!st[15]||st[12]&&st[15].isChildError?ut&&(si(),je(ut,1,1,function(){ut=null}),oi()):ut?(ut.p(st,gt),36864>[0]&&Me(ut,1)):((ut=die(st)).c(),Me(ut,1),ut.m(e,S)),$t===($t=Ut(st))&&Lt?Lt.p(st,gt):(Lt&&Lt.d(1),(Lt=$t&&$t(st))&&(Lt.c(),Lt.m(e,null))),st[12]?et?(et.p(st,gt),4096>[0]&&Me(et,1)):((et=fie(st)).c(),Me(et,1),et.m(z.parentNode,z)):et&&(si(),je(et,1,1,function(){et=null}),oi())},i:function(st){$||(Me(s),Me(Vt,st),Me(Dt),Me(ut),Me(et),$=!0)},o:function(st){je(s),je(Vt,st),je(Dt),je(ut),je(et),$=!1},d:function(st){st&&(At(e),At(D),At(z)),ye[r].d(),Vt&&Vt.d(st),Nt&&Nt.d(),wt.d(),Dt&&Dt.d(),ut&&ut.d(),Lt&&Lt.d(),et&&et.d(st),W=!1,re()}}}function Tje(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se=!t[8].readOnly&&t[16]&&t[7]&&(po(t[7])||Ca(t[7]))&&!C2(t[7])&&zs(mr(t[7]),t[1]),ke=[Nje,Rje],ye=[];function Ke(st,gt){return st[12]?0:1}r=Ke(t),s=ye[r]=ke[r](t);var lt=t[33].identifier,Vt=jc(lt,t,t[34],rie),Nt=!t[17]&&gie();function kt(st,gt){return st[12]?jje:Pje}var qt=kt(t),wt=qt(t),Dt=se&&vie(t),ut=t[15]&&(!t[12]||!t[15].isChildError)&&_ie(t);function Ut(st,gt){return st[12]?Bje:Fje}var $t=Ut(t),Lt=$t(t),et=t[12]&&bie(t);return{c:function(){e=pt("div"),n=pt("div"),i=pt("button"),s.c(),a=gn(),Vt&&Vt.c(),u=gn(),Nt&&Nt.c(),d=gn(),m=pt("div"),_=pt("div"),wt.c(),y=gn(),Dt&&Dt.c(),x=gn(),ut&&ut.c(),S=gn(),Lt.c(),D=gn(),et&&et.c(),z=ho(),ce(i,"type","button"),ce(i,"class","jse-expand svelte-6mjnsm"),ce(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),ce(_,"class","jse-meta-inner svelte-6mjnsm"),ce(_,"data-type","selectable-value"),ce(m,"class","jse-meta svelte-6mjnsm"),ce(n,"class","jse-header svelte-6mjnsm"),ce(e,"class","jse-header-outer svelte-6mjnsm")},m:function(st,gt){Ht(st,e,gt),Ge(e,n),Ge(n,i),ye[r].m(i,null),Ge(n,a),Vt&&Vt.m(n,null),Ge(n,u),Nt&&Nt.m(n,null),Ge(n,d),Ge(n,m),Ge(m,_),wt.m(_,null),Ge(n,y),Dt&&Dt.m(n,null),Ge(e,x),ut&&ut.m(e,null),Ge(e,S),Lt.m(e,null),Ht(st,D,gt),et&&et.m(st,gt),Ht(st,z,gt),$=!0,W||(re=ei(i,"click",t[20]),W=!0)},p:function(st,gt){var sn=r;(r=Ke(st))!==sn&&(si(),je(ye[sn],1,1,function(){ye[sn]=null}),oi(),(s=ye[r])||(s=ye[r]=ke[r](st)).c(),Me(s,1),s.m(i,null)),Vt&&Vt.p&&(!$||8>[1])&&Bc(Vt,lt,st,st[34],$?Fc(lt,st[34],gt,kje):$c(st[34]),rie),st[17]?Nt&&(Nt.d(1),Nt=null):Nt||((Nt=gie()).c(),Nt.m(n,d)),qt===(qt=kt(st))&&wt?wt.p(st,gt):(wt.d(1),(wt=qt(st))&&(wt.c(),wt.m(_,null))),65922>[0]&&(se=!st[8].readOnly&&st[16]&&st[7]&&(po(st[7])||Ca(st[7]))&&!C2(st[7])&&zs(mr(st[7]),st[1])),se?Dt?(Dt.p(st,gt),65922>[0]&&Me(Dt,1)):((Dt=vie(st)).c(),Me(Dt,1),Dt.m(n,null)):Dt&&(si(),je(Dt,1,1,function(){Dt=null}),oi()),!st[15]||st[12]&&st[15].isChildError?ut&&(si(),je(ut,1,1,function(){ut=null}),oi()):ut?(ut.p(st,gt),36864>[0]&&Me(ut,1)):((ut=_ie(st)).c(),Me(ut,1),ut.m(e,S)),$t===($t=Ut(st))&&Lt?Lt.p(st,gt):(Lt.d(1),(Lt=$t(st))&&(Lt.c(),Lt.m(e,null))),st[12]?et?(et.p(st,gt),4096>[0]&&Me(et,1)):((et=bie(st)).c(),Me(et,1),et.m(z.parentNode,z)):et&&(si(),je(et,1,1,function(){et=null}),oi())},i:function(st){$||(Me(s),Me(Vt,st),Me(Dt),Me(ut),Me(et),$=!0)},o:function(st){je(s),je(Vt,st),je(Dt),je(ut),je(et),$=!1},d:function(st){st&&(At(e),At(D),At(z)),ye[r].d(),Vt&&Vt.d(st),Nt&&Nt.d(),wt.d(),Dt&&Dt.d(),ut&&ut.d(),Lt.d(),et&&et.d(st),W=!1,re()}}}function sie(t){var e;return{c:function(){(e=pt("div")).textContent=":",ce(e,"class","jse-separator svelte-6mjnsm")},m:function(n,i){Ht(n,e,i)},d:function(n){n&&At(e)}}}function oie(t){var e,n,i;return n=new Fh({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){e=pt("div"),Nn(n.$$.fragment),ce(e,"class","jse-context-menu-pointer-anchor svelte-6mjnsm")},m:function(r,s){Ht(r,e,s),zn(n,e,null),i=!0},p:function(r,s){var a={};256&s[0]&&(a.onContextMenu=r[8].onContextMenu),n.$set(a)},i:function(r){i||(Me(n.$$.fragment,r),i=!0)},o:function(r){je(n.$$.fragment,r),i=!1},d:function(r){r&&At(e),Rn(n)}}}function aie(t){var e,n;return e=new C7({props:{validationError:t[15],onExpand:t[21]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};32768&r[0]&&(s.validationError=i[15]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function cie(t){var e,n,i;return{c:function(){ce(e=pt("div"),"role","none"),ce(e,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),ce(e,"data-type","insert-selection-area-after")},m:function(r,s){Ht(r,e,s),n||(i=ei(e,"click",t[29]),n=!0)},p:hi,d:function(r){r&&At(e),n=!1,i()}}}function Vje(t){var e,n;return e=new Co({props:{data:p0}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Aje(t){var e,n;return e=new Co({props:{data:Uu}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function lie(t){var e;return{c:function(){(e=pt("div")).textContent=":",ce(e,"class","jse-separator svelte-6mjnsm")},m:function(n,i){Ht(n,e,i)},d:function(n){n&&At(e)}}}function Ije(t){var e,n,i,r,s,a,u,d,m,_,y=Object.keys(t[0]).length+"",x=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(e=pt("div")).textContent="{",n=gn(),i=pt("button"),r=Ii(y),s=gn(),a=Ii(x),u=gn(),(d=pt("div")).textContent="}",ce(e,"class","jse-bracket svelte-6mjnsm"),ce(i,"type","button"),ce(i,"class","jse-tag svelte-6mjnsm"),ce(d,"class","jse-bracket svelte-6mjnsm")},m:function(S,D){Ht(S,e,D),Ht(S,n,D),Ht(S,i,D),Ge(i,r),Ge(i,s),Ge(i,a),Ht(S,u,D),Ht(S,d,D),m||(_=ei(i,"click",t[21]),m=!0)},p:function(S,D){1&D[0]&&y!==(y=Object.keys(S[0]).length+"")&&Ir(r,y),1&D[0]&&x!==(x=1===Object.keys(S[0]).length?"prop":"props")&&Ir(a,x)},d:function(S){S&&(At(e),At(n),At(i),At(u),At(d)),m=!1,_()}}}function Oje(t){var e;return{c:function(){(e=pt("div")).textContent="{",ce(e,"class","jse-bracket jse-expanded svelte-6mjnsm")},m:function(n,i){Ht(n,e,i)},p:hi,d:function(n){n&&At(e)}}}function uie(t){var e,n,i;return n=new Fh({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){e=pt("div"),Nn(n.$$.fragment),ce(e,"class","jse-context-menu-pointer-anchor svelte-6mjnsm")},m:function(r,s){Ht(r,e,s),zn(n,e,null),i=!0},p:function(r,s){var a={};256&s[0]&&(a.onContextMenu=r[8].onContextMenu),n.$set(a)},i:function(r){i||(Me(n.$$.fragment,r),i=!0)},o:function(r){je(n.$$.fragment,r),i=!1},d:function(r){r&&At(e),Rn(n)}}}function die(t){var e,n;return e=new C7({props:{validationError:t[15],onExpand:t[21]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};32768&r[0]&&(s.validationError=i[15]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Hje(t){var e,n,i;return{c:function(){ce(e=pt("div"),"role","none"),ce(e,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),ce(e,"data-type","insert-selection-area-after")},m:function(r,s){Ht(r,e,s),n||(i=ei(e,"click",t[29]),n=!0)},p:hi,d:function(r){r&&At(e),n=!1,i()}}}function Lje(t){var e,n,i;return{c:function(){ce(e=pt("div"),"role","none"),ce(e,"class","jse-insert-selection-area jse-inside svelte-6mjnsm"),ce(e,"data-type","insert-selection-area-inside")},m:function(r,s){Ht(r,e,s),n||(i=ei(e,"click",t[28]),n=!0)},p:hi,d:function(r){r&&At(e),n=!1,i()}}}function fie(t){for(var e,n,i,r,s,a,u,d=!t[8].readOnly&&(t[10]===S0||t[16]&&Dl(t[7])),m=d&&hie(t),_=cs(t[18](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),y=[],x=0;x<_.length;x+=1)y[x]=pie(eie(t,_,x));var S=function(z){return je(y[z],1,1,function(){y[z]=null})},D=!t[17]&&mie(t);return{c:function(){e=pt("div"),m&&m.c(),n=gn();for(var z=0;z}',a=gn(),D&&D.c(),ce(e,"class","jse-props svelte-6mjnsm"),ce(s,"data-type","selectable-value"),ce(s,"class","jse-footer svelte-6mjnsm"),ce(r,"class","jse-footer-outer svelte-6mjnsm")},m:function(z,$){Ht(z,e,$),m&&m.m(e,null),Ge(e,n);for(var W=0;W]',a=gn(),W&&W.c(),ce(e,"class","jse-items svelte-6mjnsm"),ce(s,"data-type","selectable-value"),ce(s,"class","jse-footer svelte-6mjnsm"),ce(r,"class","jse-footer-outer svelte-6mjnsm")},m:function(re,se){Ht(re,e,se),y&&y.m(e,null),Ge(e,n);for(var ke=0;ke=Yr.start&&Pr<=Yr.end});if(!va)return null;vee(va.start,Math.min(S.length,va.end),function(Yr){return wi(String(Yr))})}else Object.keys(S).forEach(wi);return Zt}(ke,u||$p);if(lt("dragSelectionStart",{selection:ke,items:gt}),gt){var sn=ye.getJson();if(void 0!==sn){var Hn=A0(sn,ke),on=gt.findIndex(function(An){return zs(An.path,Hn)}),Xt=cz({json:sn,documentState:ye.getDocumentState(),deltaY:0,items:gt}).offset;n(11,kt={initialTarget:et.target,initialClientY:et.clientY,initialContentTop:ut(),selectionStartIndex:on,selectionItemsCount:Rh(sn,ke).length,items:gt,offset:Xt,didMoveItems:!1}),_1.dragging=!0,document.addEventListener("mousemove",$t,!0),document.addEventListener("mouseup",Lt)}}else lt("Cannot drag the current selection (probably spread over multiple sections)")}else Ke(et)}},function(et){_1.selecting||_1.dragging||(et.stopPropagation(),Wp(et.target,"data-type","selectable-value")?n(10,Vt=bL):Wp(et.target,"data-type","insert-selection-area-inside")?n(10,Vt=S0):Wp(et.target,"data-type","insert-selection-area-after")&&n(10,Vt=hb),clearTimeout(Nt))},function(et){et.stopPropagation(),Nt=window.setTimeout(function(){return n(10,Vt=void 0)})},function(et){et.shiftKey||(et.stopPropagation(),et.preventDefault(),ye.onSelect(O0(D)))},function(et){et.shiftKey||(et.stopPropagation(),et.preventDefault(),ye.onSelect(H0(D)))},function(et){ye.onSelect(O0(D)),ye.onContextMenu(et)},function(et){ye.onSelect(H0(D)),ye.onContextMenu(et)},Ke,y,x]}var lz=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,Gje,Uje,gs,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:32},wje,[-1,-1]),i}return br(e,Cr),pr(e)}(),Wje=lz,qje={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},Xje={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},uz={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},Kje={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function Yje(t){var e,n;return e=new rE({props:{items:t[0]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&ds(r,1)[0]&&(s.items=i[0]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Qje(t,e,n){var i,r,s,a,u,d,m,_=e.json,y=e.selection,x=e.readOnly,S=e.showSearch,D=void 0!==S&&S,z=e.historyState,$=e.onExpandAll,W=e.onCollapseAll,re=e.onUndo,se=e.onRedo,ke=e.onSort,ye=e.onTransform,Ke=e.onContextMenu,lt=e.onCopy,Vt=e.onRenderMenu;function Nt(){n(1,D=!D)}return t.$$set=function(kt){"json"in kt&&n(2,_=kt.json),"selection"in kt&&n(3,y=kt.selection),"readOnly"in kt&&n(4,x=kt.readOnly),"showSearch"in kt&&n(1,D=kt.showSearch),"historyState"in kt&&n(5,z=kt.historyState),"onExpandAll"in kt&&n(6,$=kt.onExpandAll),"onCollapseAll"in kt&&n(7,W=kt.onCollapseAll),"onUndo"in kt&&n(8,re=kt.onUndo),"onRedo"in kt&&n(9,se=kt.onRedo),"onSort"in kt&&n(10,ke=kt.onSort),"onTransform"in kt&&n(11,ye=kt.onTransform),"onContextMenu"in kt&&n(12,Ke=kt.onContextMenu),"onCopy"in kt&&n(13,lt=kt.onCopy),"onRenderMenu"in kt&&n(14,Vt=kt.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&n(20,i=void 0!==_),1048584&t.$$.dirty&&n(19,r=i&&(Ca(y)||dl(y)||po(y))),68&t.$$.dirty&&n(15,a={type:"button",icon:qje,title:"Expand all",className:"jse-expand-all",onClick:$,disabled:!Uc(_)}),132&t.$$.dirty&&n(16,u={type:"button",icon:Xje,title:"Collapse all",className:"jse-collapse-all",onClick:W,disabled:!Uc(_)}),4&t.$$.dirty&&n(17,d={type:"button",icon:m_,title:"Search (Ctrl+F)",className:"jse-search",onClick:Nt,disabled:void 0===_}),769844&t.$$.dirty&&n(18,m=x?[a,u,{type:"separator"},{type:"button",icon:g0,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:lt,disabled:!r},{type:"separator"},d,{type:"space"}]:[a,u,{type:"separator"},{type:"button",icon:p_,title:"Sort",className:"jse-sort",onClick:ke,disabled:x||void 0===_},{type:"button",icon:u_,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:ye,disabled:x||void 0===_},d,{type:"button",icon:SI,title:_L,className:"jse-contextmenu",onClick:Ke},{type:"separator"},{type:"button",icon:LM,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:re,disabled:!z.canUndo},{type:"button",icon:HM,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:se,disabled:!z.canRedo},{type:"space"}]),278528&t.$$.dirty&&n(0,s=Vt(m))},[s,D,_,y,x,z,$,W,re,se,ke,ye,Ke,lt,Vt,a,u,d,m,r,i]}var Jje=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,Qje,Yje,gs,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),i}return br(e,Cr),pr(e)}();function Zje(t){as(t,"svelte-s2toti",'.jse-welcome.svelte-s2toti.svelte-s2toti{flex:1;overflow:auto;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-welcome.svelte-s2toti.svelte-s2toti:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-welcome.svelte-s2toti .jse-space.jse-before.svelte-s2toti{flex:1}.jse-welcome.svelte-s2toti .jse-space.jse-after.svelte-s2toti{flex:2}.jse-welcome.svelte-s2toti .jse-contents.svelte-s2toti{display:flex;flex-direction:column;max-width:300px;margin:2em var(--jse-padding, 10px);gap:var(--jse-padding, 10px)}.jse-welcome.svelte-s2toti .jse-contents .jse-welcome-info.svelte-s2toti{color:var(--jse-panel-color-readonly, #b2b2b2)}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}')}function kie(t){var e,n,i,r,s,a,u;return{c:function(){(e=pt("div")).innerHTML="You can paste clipboard data using Ctrl+V, or use the following options:",n=gn(),(i=pt("button")).textContent="Create object",r=gn(),(s=pt("button")).textContent="Create array",ce(e,"class","jse-welcome-info svelte-s2toti"),ce(i,"title","Create an empty JSON object (press '{')"),ce(i,"class","svelte-s2toti"),ce(s,"title","Create an empty JSON array (press '[')"),ce(s,"class","svelte-s2toti")},m:function(d,m){Ht(d,e,m),Ht(d,n,m),Ht(d,i,m),Ht(d,r,m),Ht(d,s,m),a||(u=[ei(i,"click",y4(t[4])),ei(s,"click",y4(t[5]))],a=!0)},p:hi,d:function(d){d&&(At(e),At(n),At(i),At(r),At(s)),a=!1,ma(u)}}}function eFe(t){var e,n,i,r,s,a,u,d,m,_,y=!t[0]&&kie(t);return{c:function(){e=pt("div"),n=pt("div"),i=gn(),r=pt("div"),(s=pt("div")).textContent="Empty document",a=gn(),y&&y.c(),u=gn(),d=pt("div"),ce(n,"class","jse-space jse-before svelte-s2toti"),ce(s,"class","jse-welcome-title"),ce(r,"class","jse-contents svelte-s2toti"),ce(d,"class","jse-space jse-after svelte-s2toti"),ce(e,"class","jse-welcome svelte-s2toti"),ce(e,"role","none")},m:function(x,S){Ht(x,e,S),Ge(e,n),Ge(e,i),Ge(e,r),Ge(r,s),Ge(r,a),y&&y.m(r,null),Ge(e,u),Ge(e,d),m||(_=ei(e,"click",t[6]),m=!0)},p:function(x,S){var D=ds(S,1)[0];x[0]?y&&(y.d(1),y=null):y?y.p(x,D):((y=kie(x)).c(),y.m(r,null))},i:hi,o:hi,d:function(x){x&&At(e),y&&y.d(),m=!1,_()}}}function tFe(t,e,n){var i=e.readOnly,r=e.onCreateArray,s=e.onCreateObject,a=e.onClick;return t.$$set=function(u){"readOnly"in u&&n(0,i=u.readOnly),"onCreateArray"in u&&n(1,r=u.onCreateArray),"onCreateObject"in u&&n(2,s=u.onCreateObject),"onClick"in u&&n(3,a=u.onClick)},[i,r,s,a,function(){return s()},function(){return r()},function(){return a()}]}var nFe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,tFe,eFe,gs,{readOnly:0,onCreateArray:1,onCreateObject:2,onClick:3},Zje),i}return br(e,Cr),pr(e)}();function dz(t,e){var n="string"==typeof t?t.toLowerCase():t,i="string"==typeof e?e.toLowerCase():e;return CDe(n,i)}function Eie(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(Be(nt(t,e))){if(void 0===n)throw new Error("Cannot sort: no property selected by which to sort the array");return function(r){var _,y,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],d=(_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,function(x,S){var D=nt(x,_),z=nt(S,_);return void 0===D?y:void 0===z?-y:"string"!=typeof D&&"string"!=typeof z?D>z?y:D1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=nt(r,s),d=Object.keys(u).slice();d.sort(function(S,D){return a*dz(S,D)});for(var m=[],_=0;_Vb&&Vie();return{c:function(){e=pt("div");for(var y=0;yVb?_?_.p(y,S):((_=Vie()).c(),_.m(e,null)):_&&(_.d(1),_=null)},i:hi,o:hi,d:function(y){y&&At(e);for(var x=0;x0&&(a("scrollTo ",z),s.scrollTo({left:z,behavior:"smooth"}))}})},[u,_,y,i,s,x,r,function(z){a("get items for path",z);var $=nt(u,z);if(Array.isArray($))return v(0,$.length).map(String);if(ga($)){var W=Object.keys($).slice(0);return W.sort(dz),W}return[]},function(z){return te(u,z)},S,function(){n(5,x=!x)},D,function(z){D(),S(z)},d,m,function(z){Vs[z?"unshift":"push"](function(){n(4,s=z)})}]}var bFe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,_Fe,vFe,gs,{json:0,selection:13,onSelect:14,onError:1,pathParser:2},pFe),i}return br(e,Cr),pr(e)}();function yFe(t){as(t,"svelte-wnmp4a",'.jse-search-box.svelte-wnmp4a.svelte-wnmp4a{border:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7));border-radius:3px;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24));display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-wnmp4a .jse-search-form.svelte-wnmp4a{display:flex;align-items:stretch}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a,.jse-search-box.svelte-wnmp4a .jse-search-form input.svelte-wnmp4a{font-family:inherit;font-size:inherit}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color, inherit);background:var(--jse-panel-button-background, transparent)}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a:hover{color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d));background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-search-box.svelte-wnmp4a .jse-search-form input.svelte-wnmp4a{color:var(--jse-panel-color, var(--jse-text-color, #4d4d4d));border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:3px;background:var(--jse-input-background, var(--jse-background-color, #fff));height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-replace-toggle.svelte-wnmp4a{padding:var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px));min-width:20px;background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents.svelte-wnmp4a{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding, 10px));gap:calc(0.5 * var(--jse-padding, 10px))}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section.svelte-wnmp4a{flex:1;display:flex;align-items:center;position:relative}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-wnmp4a{color:inherit;cursor:inherit;background:inherit;width:32px;text-align:center}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-wnmp4a{flex:1;display:flex}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-wnmp4a{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-wnmp4a{visibility:visible}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-replace-section.svelte-wnmp4a{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-replace-section button.svelte-wnmp4a{width:auto}')}function Pie(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,kt,qt,wt,Dt=(-1!==t[7]&&t[7]=1e3?"".concat(999,"+"):String(i)),71303168&t.$$.dirty[0]&&z(a),2&t.$$.dirty[0]&&function(wi){gt.apply(this,arguments)}(y),8&t.$$.dirty[0]&<(se),262144&t.$$.dirty[0]&&Vt(d)},[x,y,S,se,i,ye,Ke,r,s,Nt,function(_n){_n.stopPropagation();var Zt=D0(_n);"Enter"===Zt&&(_n.preventDefault(),se!==ke?(lt.flush(),ke=se):ut()),"Shift+Enter"===Zt&&(_n.preventDefault(),$t()),"Ctrl+Enter"===Zt&&(_n.preventDefault(),x?qt():ut()),"Ctrl+H"===Zt&&(_n.preventDefault(),Nt()),"Escape"===Zt&&(_n.preventDefault(),An())},function(_n){"Enter"===D0(_n)&&(_n.preventDefault(),_n.stopPropagation(),qt())},function(){return kt.apply(this,arguments)},qt,function(){return Dt.apply(this,arguments)},ut,$t,An,d,m,_,D,z,$,W,re,a,function(){n(3,se=this.value)},function(){n(5,ye=this.value)}]}var Bie=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,SFe,wFe,gs,{json:18,documentState:19,parser:20,showSearch:1,showReplace:0,readOnly:2,columns:21,onSearch:22,onFocus:23,onPatch:24,onClose:25},yFe,[-1,-1]),i}return br(e,Cr),pr(e)}(),Ab=Symbol("path");function kFe(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i={};Array.isArray(t)&&function(s,a,u){if(s.length1?(s.length-1)/(a-1):s.length,m=0;m0&&ke.height>0}),_),m=_(n);function _(se){var ke=se.getBoundingClientRect();return{x:ke.left+ke.width/2,y:ke.top+ke.height/2,rect:ke,element:se}}function y(se,ke){var Ke=se.x-ke.x,lt=(se.y-ke.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(Ke*Ke+lt*lt)}var x=function(se){return y(se,m)};if("Left"===i||"Right"===i){var S=d.filter("Left"===i?function(se){return se.rect.left+um.rect.right+u}),D=S.filter(function(se){return Math.abs(se.y-m.y)m.y+u}),W=$.filter(function(se){return s(se.element)}),re=uh(W,x)||uh($,x);return re?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:d.target,direction:_,hasPrio:function(x){return"jse-open-dropdown"!==x.getAttribute("data-type")}});y&&y.focus()}},function(d){Vs[d?"unshift":"push"](function(){n(3,i=d)})}]}var fre=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,pBe,hBe,gs,{items:0,onRequestClose:1,tip:2},QFe),i}return br(e,Cr),pr(e)}(),mBe=aL.window;function gBe(t){as(t,"svelte-1ig7ktu",'.jse-tree-mode.svelte-1ig7ktu.svelte-1ig7ktu{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color, #fff);min-width:0;min-height:0;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-text-color, #4d4d4d);line-height:var(--jse-line-height, calc(1em + 4px))}.jse-tree-mode.svelte-1ig7ktu .jse-hidden-input-label .jse-hidden-input.svelte-1ig7ktu{position:fixed;top:-10px;left:-10px;width:1px;height:1px;padding:0;border:0;outline:none}.jse-tree-mode.no-main-menu.svelte-1ig7ktu.svelte-1ig7ktu{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-search-box-container.svelte-1ig7ktu{position:relative;height:0;top:var(--jse-padding, 10px);margin-right:calc(var(--jse-padding, 10px) + 20px);margin-left:var(--jse-padding, 10px);text-align:right;z-index:3}.jse-tree-mode.svelte-1ig7ktu .jse-contents.svelte-1ig7ktu{flex:1;overflow:auto;position:relative;padding:2px;display:flex;flex-direction:column;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-contents.svelte-1ig7ktu:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-contents .jse-loading-space.svelte-1ig7ktu{flex:1}.jse-tree-mode.svelte-1ig7ktu .jse-contents .jse-loading.svelte-1ig7ktu{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}')}function hre(t){var e,n,i;function r(a){t[75](a)}var s={json:t[11],selection:t[12].selection,readOnly:t[0],historyState:t[22],onExpandAll:t[38],onCollapseAll:t[39],onUndo:t[33],onRedo:t[34],onSort:t[35],onTransform:t[36],onContextMenu:t[43],onCopy:t[30],onRenderMenu:t[7]};return void 0!==t[13]&&(s.showSearch=t[13]),e=new Jje({props:s}),Vs.push(function(){return J2(e,"showSearch",r)}),{c:function(){Nn(e.$$.fragment)},m:function(a,u){zn(e,a,u),i=!0},p:function(a,u){var d={};2048&u[0]&&(d.json=a[11]),4096&u[0]&&(d.selection=a[12].selection),1&u[0]&&(d.readOnly=a[0]),4194304&u[0]&&(d.historyState=a[22]),128&u[0]&&(d.onRenderMenu=a[7]),!n&&8192&u[0]&&(n=!0,d.showSearch=a[13],Q2(function(){return n=!1})),e.$set(d)},i:function(a){i||(Me(e.$$.fragment,a),i=!0)},o:function(a){je(e.$$.fragment,a),i=!1},d:function(a){Rn(e,a)}}}function pre(t){var e,n;return e=new bFe({props:{json:t[11],selection:t[12].selection,onSelect:t[47],onError:t[6],pathParser:t[4]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};2048&r[0]&&(s.json=i[11]),4096&r[0]&&(s.selection=i[12].selection),64&r[0]&&(s.onError=i[6]),16&r[0]&&(s.pathParser=i[4]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function vBe(t){var e;return{c:function(){(e=pt("div")).innerHTML='
loading...
',ce(e,"class","jse-contents svelte-1ig7ktu")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function _Be(t){var e,n,i,r,s,a,u,d,m,_=[yBe,bBe],y=[];function x(S,D){return void 0===S[11]?0:1}return r=x(t),s=y[r]=_[r](t),{c:function(){e=pt("label"),n=pt("input"),i=gn(),s.c(),a=ho(),ce(n,"type","text"),n.readOnly=!0,ce(n,"tabindex","-1"),ce(n,"class","jse-hidden-input svelte-1ig7ktu"),ce(e,"class","jse-hidden-input-label")},m:function(S,D){Ht(S,e,D),Ge(e,n),t[76](n),Ht(S,i,D),y[r].m(S,D),Ht(S,a,D),u=!0,d||(m=ei(n,"paste",t[31]),d=!0)},p:function(S,D){var z=r;(r=x(S))===z?y[r].p(S,D):(si(),je(y[z],1,1,function(){y[z]=null}),oi(),(s=y[r])?s.p(S,D):(s=y[r]=_[r](S)).c(),Me(s,1),s.m(a.parentNode,a))},i:function(S){u||(Me(s),u=!0)},o:function(S){je(s),u=!1},d:function(S){S&&(At(e),At(i),At(a)),t[76](null),y[r].d(S),d=!1,m()}}}function bBe(t){var e,n,i,r,s,a,u,d,m,_,y;i=new Bie({props:{json:t[11],documentState:t[12],parser:t[3],showSearch:t[13],showReplace:t[21],readOnly:t[0],columns:void 0,onSearch:t[26],onFocus:t[27],onPatch:t[37],onClose:t[28]}}),a=new Wje({props:{value:t[11],path:[],expandedMap:t[12].expandedMap,enforceStringMap:t[12].enforceStringMap,visibleSectionsMap:t[12].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(e=t[20])||void 0===e?void 0:e.itemsMap,selection:t[12].selection,context:t[15],onDragSelectionStart:Oi}});var x=t[19]&&mre(t),S=t[23]&&gre(t);return _=new oz({props:{validationErrors:t[14],selectError:t[29]}}),{c:function(){n=pt("div"),Nn(i.$$.fragment),r=gn(),s=pt("div"),Nn(a.$$.fragment),u=gn(),x&&x.c(),d=gn(),S&&S.c(),m=gn(),Nn(_.$$.fragment),ce(n,"class","jse-search-box-container svelte-1ig7ktu"),ce(s,"class","jse-contents svelte-1ig7ktu"),ce(s,"data-jsoneditor-scrollable-contents",!0)},m:function(D,z){Ht(D,n,z),zn(i,n,null),Ht(D,r,z),Ht(D,s,z),zn(a,s,null),t[80](s),Ht(D,u,z),x&&x.m(D,z),Ht(D,d,z),S&&S.m(D,z),Ht(D,m,z),zn(_,D,z),y=!0},p:function(D,z){var $,W={};2048&z[0]&&(W.json=D[11]),4096&z[0]&&(W.documentState=D[12]),8&z[0]&&(W.parser=D[3]),8192&z[0]&&(W.showSearch=D[13]),2097152&z[0]&&(W.showReplace=D[21]),1&z[0]&&(W.readOnly=D[0]),i.$set(W);var re={};2048&z[0]&&(re.value=D[11]),4096&z[0]&&(re.expandedMap=D[12].expandedMap),4096&z[0]&&(re.enforceStringMap=D[12].enforceStringMap),4096&z[0]&&(re.visibleSectionsMap=D[12].visibleSectionsMap),16777216&z[0]&&(re.validationErrorsMap=D[24]),1048576&z[0]&&(re.searchResultItemsMap=null===($=D[20])||void 0===$?void 0:$.itemsMap),4096&z[0]&&(re.selection=D[12].selection),32768&z[0]&&(re.context=D[15]),a.$set(re),D[19]?x?(x.p(D,z),524288&z[0]&&Me(x,1)):((x=mre(D)).c(),Me(x,1),x.m(d.parentNode,d)):x&&(si(),je(x,1,1,function(){x=null}),oi()),D[23]?S?(S.p(D,z),8388608&z[0]&&Me(S,1)):((S=gre(D)).c(),Me(S,1),S.m(m.parentNode,m)):S&&(si(),je(S,1,1,function(){S=null}),oi());var se={};16384&z[0]&&(se.validationErrors=D[14]),_.$set(se)},i:function(D){y||(Me(i.$$.fragment,D),Me(a.$$.fragment,D),Me(x),Me(S),Me(_.$$.fragment,D),y=!0)},o:function(D){je(i.$$.fragment,D),je(a.$$.fragment,D),je(x),je(S),je(_.$$.fragment,D),y=!1},d:function(D){D&&(At(n),At(r),At(s),At(u),At(d),At(m)),Rn(i),Rn(a),t[80](null),x&&x.d(D),S&&S.d(D),Rn(_,D)}}}function yBe(t){var e,n,i,r,s=[xBe,CBe],a=[];function u(d,m){return""===d[18]||void 0===d[18]?0:1}return e=u(t),n=a[e]=s[e](t),{c:function(){n.c(),i=ho()},m:function(d,m){a[e].m(d,m),Ht(d,i,m),r=!0},p:function(d,m){var _=e;(e=u(d))===_?a[e].p(d,m):(si(),je(a[_],1,1,function(){a[_]=null}),oi(),(n=a[e])?n.p(d,m):(n=a[e]=s[e](d)).c(),Me(n,1),n.m(i.parentNode,i))},i:function(d){r||(Me(n),r=!0)},o:function(d){je(n),r=!1},d:function(d){d&&At(i),a[e].d(d)}}}function mre(t){var e,n;return e=new w4({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[19].contents)?"array":"object"," as text"),actions:[{icon:d_,text:"Paste as JSON instead",title:"Replace the value with the pasted JSON",onMouseDown:t[44]},{text:"Leave as is",title:"Keep the JSON embedded in the value",onClick:t[45]}]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};524288&r[0]&&(s.message="You pasted a JSON ".concat(Array.isArray(i[19].contents)?"array":"object"," as text")),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function gre(t){var e,n;return e=new w4({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:S5,text:"Ok",title:"Accept the repaired document",onClick:t[8]},{icon:m0,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:t[46]}],onClose:t[9]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r[0]&&(s.actions=i[0]?[]:[{icon:S5,text:"Ok",title:"Accept the repaired document",onClick:i[8]},{icon:m0,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:i[46]}]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function CBe(t){var e,n,i,r;return e=new w4({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:m0,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:t[46]}]}}),i=new Qie({props:{text:t[18],json:t[11],indentation:t[5],parser:t[3]}}),{c:function(){Nn(e.$$.fragment),n=gn(),Nn(i.$$.fragment)},m:function(s,a){zn(e,s,a),Ht(s,n,a),zn(i,s,a),r=!0},p:function(s,a){var u={};1&a[0]&&(u.actions=s[0]?[]:[{icon:m0,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:s[46]}]),e.$set(u);var d={};262144&a[0]&&(d.text=s[18]),2048&a[0]&&(d.json=s[11]),32&a[0]&&(d.indentation=s[5]),8&a[0]&&(d.parser=s[3]),i.$set(d)},i:function(s){r||(Me(e.$$.fragment,s),Me(i.$$.fragment,s),r=!0)},o:function(s){je(e.$$.fragment,s),je(i.$$.fragment,s),r=!1},d:function(s){s&&At(n),Rn(e,s),Rn(i,s)}}}function xBe(t){var e,n;return e=new nFe({props:{readOnly:t[0],onCreateObject:t[77],onCreateArray:t[78],onClick:t[79]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r[0]&&(s.readOnly=i[0]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function wBe(t){var e,n,i,r,s,a,u,d,m=t[1]&&hre(t),_=t[2]&&pre(t),x=[];return s=x[r=t[25]?1:0]=[_Be,vBe][r](t),{c:function(){e=pt("div"),m&&m.c(),n=gn(),_&&_.c(),i=gn(),s.c(),ce(e,"role","tree"),ce(e,"tabindex","-1"),ce(e,"class","jse-tree-mode svelte-1ig7ktu"),$n(e,"no-main-menu",!t[1])},m:function(S,D){Ht(S,e,D),m&&m.m(e,null),Ge(e,n),_&&_.m(e,null),Ge(e,i),x[r].m(e,null),t[81](e),a=!0,u||(d=[ei(mBe,"mousedown",t[48]),ei(e,"keydown",t[40]),ei(e,"mousedown",t[41]),ei(e,"contextmenu",t[42])],u=!0)},p:function(S,D){S[1]?m?(m.p(S,D),2&D[0]&&Me(m,1)):((m=hre(S)).c(),Me(m,1),m.m(e,n)):m&&(si(),je(m,1,1,function(){m=null}),oi()),S[2]?_?(_.p(S,D),4&D[0]&&Me(_,1)):((_=pre(S)).c(),Me(_,1),_.m(e,i)):_&&(si(),je(_,1,1,function(){_=null}),oi()),s.p(S,D),(!a||2&D[0])&&$n(e,"no-main-menu",!S[1])},i:function(S){a||(Me(m),Me(_),Me(s),a=!0)},o:function(S){je(m),je(_),je(s),a=!1},d:function(S){S&&At(e),m&&m.d(),_&&_.d(),x[r].d(),t[81](null),u=!1,ma(d)}}}function MBe(t,e,n){var i,r=v1("jsoneditor:TreeMode"),s=typeof window>"u";r("isSSR:",s);var a,u,d,m,_,y=V1("simple-modal").open,x=vh(),S=vh(),D=V1("absolute-popup"),z=D.openAbsolutePopup,$=D.closeAbsolutePopup,W=!1,re=Cne(),se=e.readOnly,ke=e.externalContent,ye=e.externalSelection,Ke=e.mainMenuBar,lt=e.navigationBar,Vt=e.escapeControlCharacters,Nt=e.escapeUnicodeCharacters,kt=e.parser,qt=e.parseMemoizeOne,wt=e.validator,Dt=e.validationParser,ut=e.pathParser,Ut=e.indentation,$t=e.onError,Lt=e.onChange,et=e.onChangeMode,st=e.onSelect,gt=e.onRenderValue,sn=e.onRenderMenu,Hn=e.onRenderContextMenu,on=e.onClassName,Xt=e.onFocus,An=e.onBlur,_n=e.onSortModal,Zt=e.onTransformModal,wi=e.onJSONEditorModal,zi=!1;sz({onMount:Hd,onDestroy:Zu,getWindow:function(){return c7(d)},hasFocus:function(){return zi&&document.hasFocus()||TL(d)},onFocus:function(){W=!0,Xt&&Xt()},onBlur:function(){W=!1,An&&An()}});var Zn=void 0;function En(ct){r("updateSelection",ct);var mn="function"==typeof ct?ct(fn.selection)||null:ct;zs(mn,fn.selection)||(n(12,fn=yn(yn({},fn),{},{selection:mn})),st(mn))}var Nr,Pr,va,Qo=!1,fn=zk(),Yr=!1,sa=!1;function oa(){return(oa=es(gi().mark(function ct(mn){return gi().wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return n(12,fn=yn(yn({},zL(m,fn,mn)),{},{selection:null})),Fn.next=3,$d(mn);case 3:case"end":return Fn.stop()}},ct)}))).apply(this,arguments)}var $s,Mi,Jo=xne({onChange:function(ct){n(22,qi=ct)}}),qi=Jo.getState(),Or=!1,tc=[],xa=b_(wne);function I1(ct,mn,Fn,vi){_7(function(){var Ti;try{Ti=xa(ct,mn,Fn,vi)}catch(Ri){Ti=[{path:[],message:"Failed to validate: "+Ri.message,severity:zd.warning}]}zs(Ti,tc)||(r("validationErrors changed:",Ti),n(14,tc=Ti))},function(Ti){return r("validationErrors updated in ".concat(Ti," ms"))})}function r1(){return r("validate"),Zn?{parseError:Zn,isRepairable:!1}:(I1(m,wt,kt,Dt),Zs(tc)?null:{validationErrors:tc})}function s1(){return m}function fl(){return fn}function Ul(ct){Qo||(Qo=!0,n(12,fn=Nd(ct,fn,[],See({json:ct},hee)?T3:Cb)))}function fc(ct){fn.selection&&(te(ct,qp(fn.selection))&&te(ct,mr(fn.selection))||(r("clearing selection: path does not exist anymore",fn.selection),n(12,fn=yn(yn({},fn),{},{selection:f7(ct,fn)}))))}function Tl(ct){var mn=ct.previousJson,Fn=ct.previousState,vi=ct.previousText,Ti=ct.previousTextIsRepaired;void 0===mn&&void 0===vi||(void 0!==m?Jo.add(void 0!==mn?{undo:{patch:[{op:"replace",path:"",value:mn}],state:b2(Fn),json:void 0,text:vi,textIsRepaired:Ti},redo:{patch:[{op:"replace",path:"",value:m}],state:b2(fn),json:void 0,text:_,textIsRepaired:Or}}:{undo:{patch:void 0,json:void 0,text:vi,state:b2(Fn),textIsRepaired:Ti},redo:{patch:void 0,json:m,state:b2(fn),text:_,textIsRepaired:Or}}):void 0!==mn&&Jo.add({undo:{patch:void 0,json:mn,state:b2(Fn),text:vi,textIsRepaired:Ti},redo:{patch:void 0,json:void 0,text:_,textIsRepaired:Or,state:b2(fn)}}))}function Oa(ct,mn){if(r("patch",ct,mn),void 0===m)throw new Error("Cannot apply patch: no JSON");var Fn=m,vi=fn,Ti=_,Ri=Or,ts=gte(m,ct),cr=Jee(m,fn,ct),os=h7(m,ct),Zc=function(w2,Ns){return Ns||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?yn(yn({},w2),{},{selection:Ns}):w2}(cr.documentState,os,!1);r("patch updatedSelection",os);var Ha="function"==typeof mn?mn(cr.json,Zc):void 0;n(11,m=Ha&&void 0!==Ha.json?Ha.json:cr.json);var el=Ha&&void 0!==Ha.state?Ha.state:Zc;return n(12,fn=el),n(18,_=void 0),n(23,Or=!1),n(19,Pr=void 0),Zn=void 0,fc(m),Jo.add({undo:{patch:ts,json:void 0,text:Ti,state:b2(vi),textIsRepaired:Ri},redo:{patch:ct,json:void 0,state:b2(el),text:_,textIsRepaired:Or}}),{json:m,previousJson:Fn,undo:ts,redo:ct}}function Gl(){!se&&fn.selection&&En(Pd(mr(fn.selection),!0))}function Z2(){if(!se&&fn.selection){var ct=mr(fn.selection),mn=nt(m,ct);Uc(mn)?(r("openJSONEditorModal",{path:Fn=ct,value:vi=mn}),zi=!0,wi({content:{json:vi},path:Fn,onPatch:Mi.onPatch,onClose:function(){zi=!1,Xi()}})):En(Bs(ct,!0))}var Fn,vi}function O1(){if(!se&&po(fn.selection)){var ct=mr(fn.selection),mn=de(ct),Fn=nt(m,ct),vi=!V0(Fn,fn.enforceStringMap,mn,kt),Ti=vi?String(Fn):s7(String(Fn),kt);r("handleToggleEnforceString",{enforceString:vi,value:Fn,updatedValue:Ti}),Vl([{op:"replace",path:mn,value:Ti}],function(Ri,ts){return{state:Qee(ts,mn,vi)}})}}function Wl(){return bs.apply(this,arguments)}function bs(){return bs=es(gi().mark(function ct(){var mn,Fn=arguments;return gi().wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:return mn=!(Fn.length>0&&void 0!==Fn[0])||Fn[0],vi.next=3,Wie({json:m,documentState:fn,indentation:mn?Ut:void 0,readOnly:se,parser:kt,onPatch:Vl});case 3:case"end":return vi.stop()}},ct)})),bs.apply(this,arguments)}function Jc(){return Gc.apply(this,arguments)}function Gc(){return Gc=es(gi().mark(function ct(){var mn,Fn=arguments;return gi().wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:if(mn=!(Fn.length>0&&void 0!==Fn[0])||Fn[0],void 0!==m){vi.next=3;break}return vi.abrupt("return");case 3:return vi.next=5,qie({json:m,documentState:fn,indentation:mn?Ut:void 0,parser:kt});case 5:case"end":return vi.stop()}},ct)})),Gc.apply(this,arguments)}function J1(){y(Hne,{},yn(yn({},Up),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Xi()}})}function o1(ct,mn){y(Gne,{text:ct,onParse:function(Fn){return Ik(Fn,function(vi){return mb(vi,kt)})},onRepair:xee,onApply:mn},yn(yn({},Up),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Xi()}})}function a1(){Kie({json:m,text:_,documentState:fn,keepSelection:!1,readOnly:se,onChange:Lt,onPatch:Vl})}function Tn(){!se&&void 0!==m&&fn.selection&&p7&&!Zs(mr(fn.selection))&&(r("duplicate",{selection:fn.selection}),Vl(hte(m,Rh(m,fn.selection))))}function Fi(){se||!fn.selection||!Ca(fn.selection)&&!po(fn.selection)||Zs(mr(fn.selection))||(r("extract",{selection:fn.selection}),Vl(function(mn,Fn){if(po(Fn))return[{op:"move",from:de(Fn.path),path:""}];if(!Ca(Fn))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Ti=nt(mn,Ls(Fn.focusPath));if(Be(Ti))return[{op:"replace",path:"",value:Rh(mn,Fn).map(function(ts){var cr=Q1(Ur(ts));return Ti[cr]})}];if(he(Ti)){var Ri={};return Rh(mn,Fn).forEach(function(ts){var cr=String(Ur(ts));Ri[cr]=Ti[cr]}),[{op:"replace",path:"",value:Ri}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Fn))}(m,fn.selection),function(mn,Fn){if(Uc(mn))return{state:zh(mn,Fn,[])}}))}function ss(ct){sE({insertType:ct,selectInside:!0,refJsonEditor:d,json:m,selection:fn.selection,readOnly:se,parser:kt,onPatch:Vl,onReplaceJson:F0})}function Fo(ct){dl(fn.selection)&&En(Bs(fn.selection.path,!1)),fn.selection||En(f7(m,fn)),ss(ct)}function Xs(ct){if(!se&&fn.selection)if(jk(fn.selection))try{var mn=qp(fn.selection),Fn=nt(m,mn),vi=function(Ri,ts,cr){if("array"===ts){if(Array.isArray(Ri))return Ri;if(ga(Ri))return bee(Ri);if("string"==typeof Ri)try{var os=cr.parse(Ri);if(Array.isArray(os))return os;if(ga(os))return bee(os)}catch{return[Ri]}return[Ri]}if("object"===ts){if(Array.isArray(Ri))return _ee(Ri);if(ga(Ri))return Ri;if("string"==typeof Ri)try{var Zc=cr.parse(Ri);if(ga(Zc))return Zc;if(Array.isArray(Zc))return _ee(Zc)}catch{return{value:Ri}}return{value:Ri}}if("value"===ts)return Uc(Ri)?cr.stringify(Ri):Ri;throw new Error("Cannot convert ".concat(wL(Ri,cr)," to ").concat(ts))}(Fn,ct,kt);if(vi===Fn)return;var Ti=[{op:"replace",path:de(mn),value:vi}];r("handleConvert",{selection:fn.selection,path:mn,type:ct,operations:Ti}),Vl(Ti,function(Ri,ts){return{state:fn.selection?zh(Ri,ts,mr(fn.selection)):fn}})}catch(Ri){$t(Ri)}else $t(new Error("Cannot convert current selection to ".concat(ct)))}function Dn(){if(fn.selection){var ct=ste(m,fn,!1),mn=Ls(mr(fn.selection));ct&&!Zs(mr(ct))&&zs(mn,Ls(mr(ct)))?En(H0(mr(ct))):En(O0(mn)),r("insert before",{selection:fn.selection,selectionBefore:ct,parentPath:mn}),El().then(function(){return Hi()})}}function ji(){if(fn.selection){var ct=Nh(m,fn.selection);r("insert after",ct),En(H0(ct)),El().then(function(){return Hi()})}}function Yi(ct){return Bn.apply(this,arguments)}function Bn(){return(Bn=es(gi().mark(function ct(mn){return gi().wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.next=2,Yie({char:mn,selectInside:!0,refJsonEditor:d,json:m,selection:fn.selection,readOnly:se,parser:kt,onPatch:Vl,onReplaceJson:F0,onSelect:En});case 2:case"end":return Fn.stop()}},ct)}))).apply(this,arguments)}function to(){if(!se&&Jo.getState().canUndo){var ct=Jo.undo();if(ct){var mn={json:m,text:_};n(11,m=ct.undo.patch?xe(m,ct.undo.patch):ct.undo.json),n(12,fn=ct.undo.state),n(18,_=ct.undo.text),n(23,Or=ct.undo.textIsRepaired),Zn=void 0,r("undo",{item:ct,json:m,documentState:fn}),td(mn,ct.undo.patch&&ct.redo.patch?{json:m,previousJson:mn.json,redo:ct.undo.patch,undo:ct.redo.patch}:null),Xi(),fn.selection&&$d(mr(fn.selection),!1)}}}function wa(){if(!se&&Jo.getState().canRedo){var ct=Jo.redo();if(ct){var mn={json:m,text:_};n(11,m=ct.redo.patch?xe(m,ct.redo.patch):ct.redo.json),n(12,fn=ct.redo.state),n(18,_=ct.redo.text),n(23,Or=ct.redo.textIsRepaired),Zn=void 0,r("redo",{item:ct,json:m,documentState:fn}),td(mn,ct.undo.patch&&ct.redo.patch?{json:m,previousJson:mn.json,redo:ct.redo.patch,undo:ct.undo.patch}:null),Xi(),fn.selection&&$d(mr(fn.selection),!1)}}}function ys(ct){var mn;se||void 0===m||(zi=!0,_n({id:x,json:m,rootPath:ct,onSort:(mn=es(gi().mark(function Fn(vi){var Ti;return gi().wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:r("onSort",ct,Ti=vi.operations),Vl(Ti,function(ts,cr){return{state:yn(yn({},zh(ts,cr,ct)),{},{selection:Bs(ct,!1)})}});case 3:case"end":return Ri.stop()}},Fn)})),function(Fn){return mn.apply(this,arguments)}),onClose:function(){zi=!1,Xi()}}))}function Bh(){fn.selection&&ys(cte(m,fn.selection))}function S4(ct){if(void 0!==m){var Fn=ct.onTransform,vi=ct.onClose,Ti=ct.rootPath||[];zi=!0,Zt({id:ct.id||S,json:m,rootPath:Ti,onTransform:function(Ri){Fn?Fn({operations:Ri,json:m,transformedJson:xe(m,Ri)}):(r("onTransform",Ti,Ri),Vl(Ri,function(ts,cr){return{state:yn(yn({},zh(ts,cr,Ti)),{},{selection:Bs(Ti,!1)})}}))},onClose:function(){zi=!1,Xi(),vi&&vi()}})}}function S7(){fn.selection&&S4({rootPath:cte(m,fn.selection)})}function $d(ct){return N0.apply(this,arguments)}function N0(){return N0=es(gi().mark(function ct(mn){var Fn,vi,Ti,Ri,ts,cr=arguments;return gi().wrap(function(os){for(;;)switch(os.prev=os.next){case 0:return Fn=!(cr.length>1&&void 0!==cr[1])||cr[1],n(12,fn=zL(m,fn,mn)),os.next=4,El();case 4:if(vi=P0(mn),r("scrollTo",{path:mn,elem:vi,refContents:a}),vi&&a){os.next=8;break}return os.abrupt("return",Promise.resolve());case 8:if(Ti=a.getBoundingClientRect(),Ri=vi.getBoundingClientRect(),Fn){os.next=13;break}if(!(Ri.bottom>Ti.top&&Ri.topFn.bottom-20&&re(mn,{container:a,offset:-(Fn.height-Ti-20),duration:0})}}function td(ct,mn){var Fn;if(void 0!==ct.json||void 0!==ct?.text)if(void 0!==_)null===(Fn=Lt)||void 0===Fn||Fn({text:_,json:void 0},ct,{contentErrors:r1(),patchResult:mn});else if(void 0!==m){var vi;null===(vi=Lt)||void 0===vi||vi({text:void 0,json:m},ct,{contentErrors:r1(),patchResult:mn})}}function Vl(ct,mn){r("handlePatch",ct,mn);var Fn={json:m,text:_},vi=Oa(ct,mn);return td(Fn,vi),vi}function F0(ct,mn){var Fn=fn,vi=m,Ti=_,Ri={json:m,text:_},ts=Or,cr=Nd(m,fn,[],T3),os="function"==typeof mn?mn(ct,cr):void 0;n(11,m=os&&void 0!==os.json?os.json:ct),n(12,fn=os&&void 0!==os.state?os.state:cr),n(18,_=void 0),n(23,Or=!1),Zn=void 0,fc(m),Tl({previousJson:vi,previousState:Fn,previousText:Ti,previousTextIsRepaired:ts}),td(Ri,null)}function em(ct,mn){r("handleChangeText");var Fn=fn,vi=m,Ti=_,Ri={json:m,text:_},ts=Or;try{n(11,m=qt(ct)),n(12,fn=Nd(m,fn,[],T3)),n(18,_=void 0),n(23,Or=!1),Zn=void 0}catch(os){try{n(11,m=qt(na(ct))),n(12,fn=Nd(m,fn,[],T3)),n(18,_=ct),n(23,Or=!0),Zn=void 0}catch{n(11,m=void 0),n(12,fn=zk({json:m,expand:T3})),n(18,_=ct),n(23,Or=!1),Zn=""!==_?o7(_,os.message||String(os)):void 0}}if("function"==typeof mn){var cr=mn(m,fn);n(11,m=cr&&cr.json?cr.json:m),n(12,fn=cr&&cr.state?cr.state:fn)}fc(m),Tl({previousJson:vi,previousState:Fn,previousText:Ti,previousTextIsRepaired:ts}),td(Ri,null)}function I3(ct,mn){var vi,Ti,Fn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:ct,expanded:mn,recursive:Fn}),n(12,fn=mn?Fn?Nd(m,fn,ct,Cb):(Ti=ct,yn(yn({},vi=fn),{},{expandedMap:yn(yn({},vi.expandedMap),{},Ju({},de(Ti),!0))})):Yee(fn,ct)),fn.selection&&!mn&&function(vi,Ti){return I0(mr(vi),Ti)&&(mr(vi).length>Ti.length||Dl(vi))}(fn.selection,ct)&&En(null),Xi()}function B0(ct){r("openFind",{findAndReplace:ct}),n(13,Yr=!1),n(21,sa=!1),El().then(function(){n(13,Yr=!0),n(21,sa=ct)})}function $h(ct,mn){r("handleExpandSection",ct,mn);var Ti,Ri,ts,Fn=de(ct);n(12,(Ri=Fn,ts=mn,fn=yn(yn({},Ti=fn),{},{visibleSectionsMap:yn(yn({},Ti.visibleSectionsMap),{},Ju({},Ri,Kee(Rk(Ti,Ri).concat(ts))))})))}function Et(ct){r("pasted json as text",ct),n(19,Pr=ct)}function Ln(ct){var mn=ct.anchor,Fn=ct.left,vi=ct.top,Ti=ct.width,Ri=ct.height,ts=ct.offsetTop,cr=ct.offsetLeft,os=ct.showTip,Zc=function(Ns){var _a=Ns.json,Al=Ns.documentState,To=Ns.readOnly,hl=Ns.parser,k4=Ns.onEditKey,nd=Ns.onEditValue,k7=Ns.onToggleEnforceString,b1=Ns.onCut,id=Ns.onCopy,O3=Ns.onPaste,Uh=Ns.onRemove,eu=Ns.onDuplicate,E4=Ns.onExtract,Hb=Ns.onInsertBefore,tm=Ns.onInsert,Lb=Ns.onConvert,Mz=Ns.onInsertAfter,Sz=Ns.onSort,zb=Ns.onTransform,Yt=Al.selection,Wi=void 0!==_a,Qr=!!Yt,Go=!!Yt&&Zs(mr(Yt)),Cs=Yt?nt(_a,mr(Yt)):void 0,Ks=Array.isArray(Cs)?"Edit array":ga(Cs)?"Edit object":"Edit value",nc=Wi&&(Ca(Yt)||dl(Yt)||po(Yt)),nm=!To&&Wi&&null!=Yt&&Pk(Yt)&&!Go&&!Array.isArray(nt(_a,Ls(mr(Yt)))),c1=!To&&Wi&&null!=Yt&&Pk(Yt),Il=c1&&!Uc(Cs),rd=!To&&nc,E7=nc,dE=!To&&Qr,Gh=!To&&Wi&&nc&&!Go,gUe=!To&&Wi&&null!=Yt&&(Ca(Yt)||po(Yt))&&!Go,$0=nc,Rb=$0?"Convert to:":"Insert:",vUe=!To&&!$0&&Qr,_Ue=!To&&($0?jk(Yt)&&!ga(Cs):Qr),bUe=!To&&($0?jk(Yt)&&!Array.isArray(Cs):Qr),yUe=!To&&($0?jk(Yt)&&Uc(Cs):Qr),CUe=!(null==Yt||!Cs)&&V0(Cs,Al.enforceStringMap,de(mr(Yt)),hl);function fE(kz){nc?"structure"!==kz&&Lb(kz):tm(kz)}return[{type:"row",items:[{type:"button",onClick:function(){return k4()},icon:Sp,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!nm},{type:"dropdown-button",main:{type:"button",onClick:function(){return nd()},icon:Sp,text:Ks,title:"Edit the value (Double-click on the value)",disabled:!c1},width:"11em",items:[{type:"button",icon:Sp,text:Ks,title:"Edit the value (Double-click on the value)",onClick:function(){return nd()},disabled:!c1},{type:"button",icon:CUe?ZA:pI,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:function(){return k7()},disabled:!Il}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:function(){return b1(!0)},icon:Mp,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!rd},width:"10em",items:[{type:"button",icon:Mp,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:function(){return b1(!0)},disabled:!rd},{type:"button",icon:Mp,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:function(){return b1(!1)},disabled:!rd}]},{type:"dropdown-button",main:{type:"button",onClick:function(){return id(!0)},icon:g0,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!E7},width:"12em",items:[{type:"button",icon:g0,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:function(){return id(!0)},disabled:!E7},{type:"button",icon:g0,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:function(){return id(!1)},disabled:!E7}]},{type:"button",onClick:function(){return O3()},icon:SM,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!dE}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:function(){return eu()},icon:BI,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!Gh},{type:"button",onClick:function(){return E4()},icon:yG,text:"Extract",title:"Extract selected contents",disabled:!gUe},{type:"button",onClick:function(){return Sz()},icon:p_,text:"Sort",title:"Sort array or object contents",disabled:To||!nc},{type:"button",onClick:function(){return zb()},icon:u_,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:To||!nc},{type:"button",onClick:function(){return Uh()},icon:l_,text:"Remove",title:"Remove selected contents (Delete)",disabled:To||!nc}]},{type:"column",items:[{type:"label",text:Rb},{type:"button",onClick:function(){return fE("structure")},icon:$0?w5:_h,text:"Structure",title:Rb+" structure",disabled:!vUe},{type:"button",onClick:function(){return fE("object")},icon:$0?w5:_h,text:"Object",title:Rb+" structure",disabled:!_Ue},{type:"button",onClick:function(){return fE("array")},icon:$0?w5:_h,text:"Array",title:Rb+" array",disabled:!bUe},{type:"button",onClick:function(){return fE("value")},icon:$0?w5:_h,text:"Value",title:Rb+" value",disabled:!yUe}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:function(){return Hb()},icon:JB,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:To||!nc||Go},{type:"button",onClick:function(){return Mz()},icon:MF,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:To||!nc||Go}]}]}({json:m,documentState:fn,readOnly:se,parser:kt,onEditKey:Gl,onEditValue:Z2,onToggleEnforceString:O1,onCut:Wl,onCopy:Jc,onPaste:J1,onRemove:a1,onDuplicate:Tn,onExtract:Fi,onInsertBefore:Dn,onInsert:Fo,onInsertAfter:ji,onConvert:Xs,onSort:Bh,onTransform:S7}),Ha=Hn(Zc);if(!1!==Ha){var el={left:Fn,top:vi,offsetTop:ts,offsetLeft:cr,width:Ti,height:Ri,anchor:mn,closeOnOuterClick:!0,onClose:function(){zi=!1,Xi()}};zi=!0;var w2=z(fre,{tip:os?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0,items:Ha,onRequestClose:function(){return $(w2)}},el)}}function Hi(ct){if(!C2(fn.selection)){if(ct&&(ct.stopPropagation(),ct.preventDefault()),ct&&"contextmenu"===ct.type&&ct.target!==u)Ln({left:ct.clientX,top:ct.clientY,width:E0,height:k0,showTip:!1});else{var mn,Fn=null===(mn=a)||void 0===mn?void 0:mn.querySelector(".jse-context-menu-pointer.jse-selected");if(Fn)Ln({anchor:Fn,offsetTop:2,width:E0,height:k0,showTip:!1});else{var vi,Ti=null===(vi=a)||void 0===vi?void 0:vi.getBoundingClientRect();Ti&&Ln({top:Ti.top+2,left:Ti.left+2,width:E0,height:k0,showTip:!1})}}return!1}}function Bi(){return(Bi=es(gi().mark(function ct(){var mn,Fn,vi,Ti,Ri;return gi().wrap(function(ts){for(;;)switch(ts.prev=ts.next){case 0:if(r("apply pasted json",Pr),Pr){ts.next=3;break}return ts.abrupt("return");case 3:vi=(Fn=Pr).path,Ti=Fn.contents,n(19,Pr=void 0),Nee(Ri=(null===(mn=a)||void 0===mn?void 0:mn.querySelector(".jse-editable-div"))||null)&&Ri.cancel(),Vl([{op:"replace",path:de(vi),value:Ti}],function(cr,os){return{state:zh(cr,os,vi)}}),setTimeout(Xi);case 10:case"end":return ts.stop()}},ct)}))).apply(this,arguments)}function Xi(){r("focus"),u&&(u.focus(),u.select())}function Us(ct){return mn=m,Fn=fn,Ti=Ls(vi=ct),Ri=[Ur(vi)],(cr=(ts=nt(mn,Ti))?BL(ts,Fn,Ri):void 0)?Bs(Ti.concat(cr),!1):H0(vi);var mn,Fn,vi,Ti,Ri,ts,cr}function Lo(ct){i&&i.onDrag(ct)}function aa(){i&&i.onDragEnd()}return t.$$set=function(ct){"readOnly"in ct&&n(0,se=ct.readOnly),"externalContent"in ct&&n(49,ke=ct.externalContent),"externalSelection"in ct&&n(50,ye=ct.externalSelection),"mainMenuBar"in ct&&n(1,Ke=ct.mainMenuBar),"navigationBar"in ct&&n(2,lt=ct.navigationBar),"escapeControlCharacters"in ct&&n(51,Vt=ct.escapeControlCharacters),"escapeUnicodeCharacters"in ct&&n(52,Nt=ct.escapeUnicodeCharacters),"parser"in ct&&n(3,kt=ct.parser),"parseMemoizeOne"in ct&&n(53,qt=ct.parseMemoizeOne),"validator"in ct&&n(54,wt=ct.validator),"validationParser"in ct&&n(55,Dt=ct.validationParser),"pathParser"in ct&&n(4,ut=ct.pathParser),"indentation"in ct&&n(5,Ut=ct.indentation),"onError"in ct&&n(6,$t=ct.onError),"onChange"in ct&&n(56,Lt=ct.onChange),"onChangeMode"in ct&&n(57,et=ct.onChangeMode),"onSelect"in ct&&n(58,st=ct.onSelect),"onRenderValue"in ct&&n(59,gt=ct.onRenderValue),"onRenderMenu"in ct&&n(7,sn=ct.onRenderMenu),"onRenderContextMenu"in ct&&n(60,Hn=ct.onRenderContextMenu),"onClassName"in ct&&n(61,on=ct.onClassName),"onFocus"in ct&&n(62,Xt=ct.onFocus),"onBlur"in ct&&n(63,An=ct.onBlur),"onSortModal"in ct&&n(64,_n=ct.onSortModal),"onTransformModal"in ct&&n(65,Zt=ct.onTransformModal),"onJSONEditorModal"in ct&&n(66,wi=ct.onJSONEditorModal)},t.$$.update=function(){var ct;3145728&t.$$.dirty[1]&&n(74,Nr=EL({escapeControlCharacters:Vt,escapeUnicodeCharacters:Nt})),4096&t.$$.dirty[0]&&r("selection",fn.selection),8192&t.$$.dirty[0]&&function(ct){if(a)if(ct){var mn,Fn=null!==(mn=parseInt(getComputedStyle(a).padding))&&void 0!==mn?mn:0;n(10,a.style.overflowAnchor="none",a),n(10,a.style.paddingTop=Fn+100+"px",a),n(10,a.scrollTop+=100,a),n(10,a.style.overflowAnchor="",a)}else n(10,a.style.overflowAnchor="none",a),n(10,a.style.paddingTop="",a),n(10,a.scrollTop-=100,a),n(10,a.style.overflowAnchor="",a)}(Yr),262144&t.$$.dirty[1]&&function Ho(ct){gb(ct)?function(mn){if(void 0!==mn){var Fn=!zs(m,mn);if(r("update external json",{isChanged:Fn,currentlyText:void 0===m}),Fn){var vi=fn,Ti=m,Ri=_,ts=Or;n(11,m=mn),Ul(m),n(18,_=void 0),n(23,Or=!1),Zn=void 0,fc(m),Tl({previousJson:Ti,previousState:vi,previousText:Ri,previousTextIsRepaired:ts})}}}(ct.json):a7(ct)&&function(mn){if(void 0!==mn&&!gb(ke)){var Fn=mn!==_;if(r("update external text",{isChanged:Fn}),Fn){var vi=m,Ti=fn,Ri=_,ts=Or;try{n(11,m=qt(mn)),Ul(m),n(18,_=mn),n(23,Or=!1),Zn=void 0}catch(cr){try{n(11,m=qt(na(mn))),Ul(m),n(18,_=mn),n(23,Or=!0),Zn=void 0,fc(m)}catch{n(11,m=void 0),n(18,_=ke.text),n(23,Or=!1),Zn=void 0!==_&&""!==_?o7(_,cr.message||String(cr)):void 0}}fc(m),Tl({previousJson:vi,previousState:Ti,previousText:Ri,previousTextIsRepaired:ts})}}}(ct.text)}(ke),524288&t.$$.dirty[1]&&(zs(fn.selection,ct=ye)||(r("applyExternalSelection",ct),($L(ct)||null===ct)&&En(ct))),2056&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&I1(m,wt,kt,Dt),16384&t.$$.dirty[0]&&n(24,$s=function(ct){var mn={};return ct.forEach(function(Fn){mn[de(Fn.path)]=Fn}),ct.forEach(function(Fn){for(var vi=Fn.path;vi.length>0;){var Ti=de(vi=Ls(vi));Ti in mn||(mn[Ti]={isChildError:!0,path:vi,message:"Contains invalid data",severity:zd.warning})}}),mn}(tc)),1024&t.$$.dirty[0]&&(i=a?function(ct){var mn,Fn;function vi(cr){return cr<20?200:cr<50?400:1200}function Ti(){ct&&(ct.scrollTop+=.05*(mn||0))}function Ri(cr){Fn&&cr===mn||(ts(),rz("startAutoScroll",cr),mn=cr,Fn=setInterval(Ti,50))}function ts(){Fn&&(rz("stopAutoScroll"),clearInterval(Fn),Fn=void 0,mn=void 0)}return rz("createAutoScrollHandler",ct),{onDrag:function(cr){if(ct){var os=cr.clientY,Zc=ct.getBoundingClientRect(),Ha=Zc.top,el=Zc.bottom;osel?Ri(vi(os-el)):ts()}},onDragEnd:function(){ts()}}}(a):void 0),9&t.$$.dirty[0]|1342177280&t.$$.dirty[1]|4096&t.$$.dirty[2]&&n(15,Mi={readOnly:se,parser:kt,normalization:Nr,getJson:s1,getDocumentState:fl,findElement:P0,findNextInside:Us,focus:Xi,onPatch:Vl,onInsert:ss,onExpand:I3,onSelect:En,onFind:B0,onExpandSection:$h,onPasteJson:Et,onRenderValue:gt,onContextMenu:Ln,onClassName:on||function(){},onDrag:Lo,onDragEnd:aa}),32768&t.$$.dirty[0]&&r("context changed",Mi)},[se,Ke,lt,kt,ut,Ut,$t,sn,function(){return Or&&void 0!==m&&F0(m),void 0!==m?{json:m}:{text:_||""}},Xi,a,m,fn,Yr,tc,Mi,u,d,_,Pr,va,sa,qi,Or,$s,s,function(ct){n(20,va=ct)},function(ct){return oa.apply(this,arguments)},function(){n(13,Yr=!1),n(21,sa=!1),Xi()},function(ct){r("select validation error",ct),En(Bs(ct.path,!1)),$d(ct.path)},Jc,function(ct){var mn;ct.preventDefault();var Fn=null===(mn=ct.clipboardData)||void 0===mn?void 0:mn.getData("text/plain");void 0!==Fn&&Xie({clipboardText:Fn,json:m,selection:fn.selection,readOnly:se,parser:kt,onPatch:Vl,onChangeText:em,openRepairModal:o1})},Yi,to,wa,function(){ys([])},function(){S4({rootPath:[]})},Vl,function(){I3([],!0,!0)},function(){I3([],!1,!0)},function(ct){var mn=D0(ct),Fn=ct.shiftKey;if(r("keydown",{combo:mn,key:ct.key}),"Ctrl+X"===mn&&(ct.preventDefault(),Wl(!0)),"Ctrl+Shift+X"===mn&&(ct.preventDefault(),Wl(!1)),"Ctrl+C"===mn&&(ct.preventDefault(),Jc(!0)),"Ctrl+Shift+C"===mn&&(ct.preventDefault(),Jc(!1)),"Ctrl+D"===mn&&(ct.preventDefault(),Tn()),"Delete"!==mn&&"Backspace"!==mn||(ct.preventDefault(),a1()),"Insert"===mn&&(ct.preventDefault(),ss("structure")),"Ctrl+A"===mn&&(ct.preventDefault(),En(Bs([],!1))),"Ctrl+Q"===mn&&Hi(ct),"ArrowUp"===mn||"Shift+ArrowUp"===mn){ct.preventDefault();var vi=fn.selection?ste(m,fn,Fn)||fn.selection:f7(m,fn);En(vi),j0(mr(vi))}if("ArrowDown"===mn||"Shift+ArrowDown"===mn){ct.preventDefault();var Ti=fn.selection?function(Ha,el){var w2=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ns=el.selection;if(!Ns)return null;var _a=w2?mr(Ns):Nh(Ha,Ns),Al=Uc(nt(Ha,_a))?Yee(el,_a):el,To=BL(Ha,el,_a),hl=BL(Ha,Al,_a);if(w2)return Dl(Ns)?null!==To?y2(To,To):null:Cu(Ns)?null!==hl?y2(hl,hl):null:null!==hl?y2(qp(Ns),hl):null;if(Cu(Ns))return null!==hl?Bs(hl,!1):null;if(Dl(Ns)||po(Ns))return null!==To?Bs(To,!1):null;if(dl(Ns)){if(null===To||0===To.length)return null;var nd=nt(Ha,Ls(To));return Array.isArray(nd)?Bs(To,!1):Pd(To,!1)}return Ca(Ns)?null!==hl?Bs(hl,!1):null!==To?Bs(To,!1):null:null}(m,fn,Fn)||fn.selection:f7(m,fn);En(Ti),j0(mr(Ti))}if("ArrowLeft"===mn||"Shift+ArrowLeft"===mn){ct.preventDefault();var Ri=fn.selection?function(Ha,el){var w2=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_a=el.selection;if(!_a)return null;var Al=ote(Ha,el,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),To=Al.caret,hl=Al.previous;if(w2)return Ca(_a)?null:y2(_a.path,_a.path);if(To&&hl)return GL(hl);var nd=nt(Ha,Ls(mr(_a)));return po(_a)&&Array.isArray(nd)?y2(_a.path,_a.path):Ca(_a)&&!Array.isArray(nd)?Pd(_a.focusPath,!1):null}(m,fn,Fn,!se)||fn.selection:f7(m,fn);En(Ri),j0(mr(Ri))}if("ArrowRight"===mn||"Shift+ArrowRight"===mn){ct.preventDefault();var ts=fn.selection&&void 0!==m?function(Ha,el){var w2=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_a=el.selection;if(!_a)return null;var Al=ote(Ha,el,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),To=Al.caret,hl=Al.next;return w2?Ca(_a)?null:y2(_a.path,_a.path):To&&hl?GL(hl):Ca(_a)?Bs(_a.focusPath,!1):null}(m,fn,Fn,!se)||fn.selection:f7(m,fn);En(ts),j0(mr(ts))}if("Enter"===mn&&fn.selection){if(Nk(fn.selection)){var cr=fn.selection.focusPath,os=nt(m,Ls(cr));Array.isArray(os)&&En(Bs(cr,!1))}dl(fn.selection)&&(ct.preventDefault(),En(yn(yn({},fn.selection),{},{edit:!0}))),po(fn.selection)&&(ct.preventDefault(),Uc(nt(m,fn.selection.path))?I3(fn.selection.path,!0):En(yn(yn({},fn.selection),{},{edit:!0})))}if(1===mn.replace(/^Shift\+/,"").length&&fn.selection)return ct.preventDefault(),void Yi(ct.key);if("Enter"===mn&&(Cu(fn.selection)||Dl(fn.selection)))return ct.preventDefault(),void Yi("");if("Ctrl+Enter"===mn&&po(fn.selection)){var Zc=nt(m,fn.selection.path);Vk(Zc)&&window.open(String(Zc),"_blank")}"Escape"===mn&&fn.selection&&(ct.preventDefault(),En(null)),"Ctrl+F"===mn&&(ct.preventDefault(),B0(!1)),"Ctrl+H"===mn&&(ct.preventDefault(),B0(!0)),"Ctrl+Z"===mn&&(ct.preventDefault(),to()),"Ctrl+Shift+Z"===mn&&(ct.preventDefault(),wa())},function(ct){r("handleMouseDown",ct);var mn=ct.target;Hee(mn,"BUTTON")||mn.isContentEditable||(Xi(),fn.selection||void 0!==m||""!==_&&void 0!==_||(r("createDefaultSelection"),n(12,fn=yn(yn({},fn),{},{selection:Bs([],!1)}))))},Hi,function(ct){Ln({anchor:zee(ct.target,"BUTTON"),offsetTop:0,width:E0,height:k0,showTip:!0})},function(){return Bi.apply(this,arguments)},function(){r("clear pasted json"),n(19,Pr=void 0),Xi()},function(){et(A1.text)},function(ct){En(ct),Xi(),$d(mr(ct))},function(ct){!vb(ct.target,function(Fn){return Fn===d})&&C2(fn.selection)&&(r("click outside the editor, stop edit mode"),En(function(Fn){return dl(Fn)||po(Fn)?yn(yn({},Fn),{},{edit:!1}):Fn}),W&&u&&(u.focus(),u.blur()),r("blur (outside editor)"),u&&u.blur())},ke,ye,Vt,Nt,qt,wt,Dt,Lt,et,st,gt,Hn,on,Xt,An,_n,Zt,wi,function(){var ct=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cb;r("expand");var mn=yn(yn({},fn),{},{expandedMap:{},visibleSectionsMap:{}});n(12,fn=Nd(m,mn,[],ct))},r1,s1,Oa,S4,$d,P0,Nr,function(ct){n(13,Yr=ct)},function(ct){Vs[ct?"unshift":"push"](function(){n(16,u=ct)})},function(){Xi(),Yi("{")},function(){Xi(),Yi("[")},function(){Xi()},function(ct){Vs[ct?"unshift":"push"](function(){n(10,a=ct)})},function(ct){Vs[ct?"unshift":"push"](function(){n(17,d=ct)})}]}var yz=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,MBe,wBe,gs,{readOnly:0,externalContent:49,externalSelection:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onSelect:58,onRenderValue:59,onRenderMenu:7,onRenderContextMenu:60,onClassName:61,onFocus:62,onBlur:63,onSortModal:64,onTransformModal:65,onJSONEditorModal:66,expand:67,validate:68,getJson:69,patch:70,acceptAutoRepair:8,openTransformModal:71,scrollTo:72,findElement:73,focus:9},gBe,[-1,-1,-1,-1,-1]),i}return br(e,Cr),pr(e,[{key:"expand",get:function(){return this.$$.ctx[67]}},{key:"validate",get:function(){return this.$$.ctx[68]}},{key:"getJson",get:function(){return this.$$.ctx[69]}},{key:"patch",get:function(){return this.$$.ctx[70]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[71]}},{key:"scrollTo",get:function(){return this.$$.ctx[72]}},{key:"findElement",get:function(){return this.$$.ctx[73]}},{key:"focus",get:function(){return this.$$.ctx[9]}}])}();function vre(t){return"object"!==Cc(e=t)||null===e?t:new Proxy(t,{get:function(n,i,r){return vre(Reflect.get(n,i,r))},set:function(){return!1},deleteProperty:function(){return!1}});var e}function SBe(t){as(t,"svelte-1mpf6w7",'.jse-modal.svelte-1mpf6w7.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1mpf6w7 .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1mpf6w7 .jse-modal-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions.svelte-1mpf6w7{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents.svelte-1mpf6w7{color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents.svelte-1mpf6w7{flex:1;display:flex;gap:calc(2 * var(--jse-padding, 10px));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding, 10px)) var(--jse-padding, 10px)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p{margin:var(--jse-padding, 10px) 0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 code{background:var(--jse-modal-code-background, rgba(0, 0, 0, 0.05));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-1mpf6w7{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding, 10px))}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-1mpf6w7{flex:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-1mpf6w7{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-actions.svelte-1mpf6w7{padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px)) calc(2 * var(--jse-padding, 10px))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents.svelte-1mpf6w7{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-1mpf6w7{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-1mpf6w7 .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label.svelte-1mpf6w7{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label .jse-label-inner.svelte-1mpf6w7{margin-top:calc(2 * var(--jse-padding, 10px));margin-bottom:calc(0.5 * var(--jse-padding, 10px));box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label .jse-label-inner button.svelte-1mpf6w7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly, transparent);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border, 1px solid #d8dbdf)}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7{border:var(--jse-input-border, 1px solid #d8dbdf);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding, 10px));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:inherit;background:var(--jse-input-background, var(--jse-background-color, #fff))}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7:focus,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7:read-only,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7:read-only{background:var(--jse-input-background-readonly, transparent)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-preview.jse-error.svelte-1mpf6w7{flex:1;background:var(--jse-input-background-readonly, transparent);border:var(--jse-input-border, 1px solid #d8dbdf);color:var(--jse-error-color, #ee5341);padding:calc(0.5 * var(--jse-padding, 10px))}.jse-modal.jse-transform.svelte-1mpf6w7 a{color:var(--jse-a-color, #156fc5)}.jse-modal.jse-transform.svelte-1mpf6w7 a:hover{color:var(--jse-a-color-highlight, #0f508d)}')}function _re(t){var e,n,i,r,s,a=[EBe,kBe],u=[];function d(m,_){return 16384&_[0]&&(e=null),null==e&&(e=!!Array.isArray(m[14])),e?0:1}return n=d(t,[-1,-1]),i=u[n]=a[n](t),{c:function(){i.c(),r=ho()},m:function(m,_){u[n].m(m,_),Ht(m,r,_),s=!0},p:function(m,_){var y=n;(n=d(m,_))===y?u[n].p(m,_):(si(),je(u[y],1,1,function(){u[y]=null}),oi(),(i=u[n])?i.p(m,_):(i=u[n]=a[n](m)).c(),Me(i,1),i.m(r.parentNode,r))},i:function(m){s||(Me(i),s=!0)},o:function(m){je(i),s=!1},d:function(m){m&&At(r),u[n].d(m)}}}function kBe(t){var e;return{c:function(){e=Ii("(Only available for arrays, not for objects)")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function EBe(t){var e,n;return e=new YNe({props:{queryOptions:t[15],json:t[14],onChange:t[24]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};32768&r[0]&&(s.queryOptions=i[15]),16384&r[0]&&(s.json=i[14]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function bre(t){var e,n;return e=new yz({props:{externalContent:t[17],externalSelection:null,readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:t[11],onRenderContextMenu:t[12],onError:console.error,onChange:Oi,onChangeMode:Oi,onSelect:Oi,onFocus:Oi,onBlur:Oi,onSortModal:Oi,onTransformModal:Oi,onJSONEditorModal:Oi,onClassName:t[13],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};131072&r[0]&&(s.externalContent=i[17]),4&r[0]&&(s.indentation=i[2]),8&r[0]&&(s.escapeControlCharacters=i[3]),16&r[0]&&(s.escapeUnicodeCharacters=i[4]),32&r[0]&&(s.parser=i[5]),64&r[0]&&(s.parseMemoizeOne=i[6]),1024&r[0]&&(s.onRenderValue=i[10]),2048&r[0]&&(s.onRenderMenu=i[11]),4096&r[0]&&(s.onRenderContextMenu=i[12]),8192&r[0]&&(s.onClassName=i[13]),128&r[0]&&(s.validationParser=i[7]),256&r[0]&&(s.pathParser=i[8]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function DBe(t){var e,n;return{c:function(){e=pt("div"),n=Ii(t[21]),ce(e,"class","jse-preview jse-error svelte-1mpf6w7")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:function(i,r){2097152&r[0]&&Ir(n,i[21])},i:hi,o:hi,d:function(i){i&&At(e)}}}function TBe(t){var e,n;return e=new yz({props:{externalContent:t[22],externalSelection:null,readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:t[11],onRenderContextMenu:t[12],onError:console.error,onChange:Oi,onChangeMode:Oi,onSelect:Oi,onFocus:Oi,onBlur:Oi,onSortModal:Oi,onTransformModal:Oi,onJSONEditorModal:Oi,onClassName:t[13],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};4194304&r[0]&&(s.externalContent=i[22]),4&r[0]&&(s.indentation=i[2]),8&r[0]&&(s.escapeControlCharacters=i[3]),16&r[0]&&(s.escapeUnicodeCharacters=i[4]),32&r[0]&&(s.parser=i[5]),64&r[0]&&(s.parseMemoizeOne=i[6]),1024&r[0]&&(s.onRenderValue=i[10]),2048&r[0]&&(s.onRenderMenu=i[11]),4096&r[0]&&(s.onRenderContextMenu=i[12]),8192&r[0]&&(s.onClassName=i[13]),128&r[0]&&(s.validationParser=i[7]),256&r[0]&&(s.pathParser=i[8]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function VBe(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,Lt,et,st,gt,sn,Hn,on,Xt,An,_n,Zt,wi,zi,Zn,En,Nr,Pr=t[23](t[0]).description+"";function va(qi){t[37](qi)}var Qo={queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[29]};void 0!==t[18]&&(Qo.fullscreen=t[18]),e=new dPe({props:Qo}),Vs.push(function(){return J2(e,"fullscreen",va)}),se=new Co({props:{data:t[19]?Uu:p0}});var fn=t[19]&&_re(t);$t=new Co({props:{data:t[20]?Uu:p0}});var Yr=t[20]&&bre(t),sa=[TBe,DBe],oa=[];function Jo(qi,$s){return qi[21]?1:0}return on=Jo(t),Xt=oa[on]=sa[on](t),{c:function(){Nn(e.$$.fragment),i=gn(),r=pt("div"),s=pt("div"),a=pt("div"),(u=pt("div")).innerHTML='
Language
',d=gn(),m=pt("div"),_=gn(),(y=pt("div")).innerHTML='
Path
',x=gn(),S=pt("input"),z=gn(),$=pt("div"),W=pt("div"),re=pt("button"),Nn(se.$$.fragment),ke=Ii("\n Wizard"),ye=gn(),fn&&fn.c(),Ke=gn(),(lt=pt("div")).innerHTML='
Query
',Vt=gn(),Nt=pt("textarea"),kt=gn(),qt=pt("div"),wt=pt("div"),Dt=pt("div"),ut=pt("div"),Ut=pt("button"),Nn($t.$$.fragment),Lt=Ii("\n Original"),et=gn(),Yr&&Yr.c(),st=gn(),gt=pt("div"),(sn=pt("div")).innerHTML='
Preview
',Hn=gn(),Xt.c(),An=gn(),_n=pt("div"),Zt=pt("button"),wi=Ii("Transform"),ce(u,"class","jse-label svelte-1mpf6w7"),ce(m,"class","jse-description svelte-1mpf6w7"),ce(y,"class","jse-label svelte-1mpf6w7"),ce(S,"class","jse-path svelte-1mpf6w7"),ce(S,"type","text"),S.readOnly=!0,ce(S,"title","Selected path"),S.value=D=Zs(t[1])?"(document root)":yu(t[1]),ce(re,"type","button"),ce(re,"class","svelte-1mpf6w7"),ce(W,"class","jse-label-inner svelte-1mpf6w7"),ce($,"class","jse-label svelte-1mpf6w7"),ce(lt,"class","jse-label svelte-1mpf6w7"),ce(Nt,"class","jse-query svelte-1mpf6w7"),ce(Nt,"spellcheck","false"),Nt.value=t[16],ce(a,"class","jse-query-contents svelte-1mpf6w7"),ce(Ut,"type","button"),ce(Ut,"class","svelte-1mpf6w7"),ce(ut,"class","jse-label-inner svelte-1mpf6w7"),ce(Dt,"class","jse-label svelte-1mpf6w7"),ce(wt,"class","jse-original-data svelte-1mpf6w7"),$n(wt,"jse-hide",!t[20]),ce(sn,"class","jse-label svelte-1mpf6w7"),ce(gt,"class","jse-preview-data svelte-1mpf6w7"),ce(qt,"class","jse-data-contents svelte-1mpf6w7"),$n(qt,"jse-hide-original-data",!t[20]),ce(s,"class","jse-main-contents svelte-1mpf6w7"),ce(Zt,"type","button"),ce(Zt,"class","jse-primary svelte-1mpf6w7"),Zt.disabled=zi=!!t[21],ce(_n,"class","jse-actions svelte-1mpf6w7"),ce(r,"class","jse-modal-contents svelte-1mpf6w7")},m:function(qi,$s){zn(e,qi,$s),Ht(qi,i,$s),Ht(qi,r,$s),Ge(r,s),Ge(s,a),Ge(a,u),Ge(a,d),Ge(a,m),m.innerHTML=Pr,Ge(a,_),Ge(a,y),Ge(a,x),Ge(a,S),Ge(a,z),Ge(a,$),Ge($,W),Ge(W,re),zn(se,re,null),Ge(re,ke),Ge(a,ye),fn&&fn.m(a,null),Ge(a,Ke),Ge(a,lt),Ge(a,Vt),Ge(a,Nt),Ge(s,kt),Ge(s,qt),Ge(qt,wt),Ge(wt,Dt),Ge(Dt,ut),Ge(ut,Ut),zn($t,Ut,null),Ge(Ut,Lt),Ge(wt,et),Yr&&Yr.m(wt,null),Ge(qt,st),Ge(qt,gt),Ge(gt,sn),Ge(gt,Hn),oa[on].m(gt,null),Ge(r,An),Ge(r,_n),Ge(_n,Zt),Ge(Zt,wi),Zn=!0,En||(Nr=[ei(re,"click",t[27]),ei(Nt,"input",t[25]),ei(Ut,"click",t[28]),ei(Zt,"click",t[26]),$l(IBe.call(null,Zt))],En=!0)},p:function(qi,$s){var Mi={};512&$s[0]&&(Mi.queryLanguages=qi[9]),1&$s[0]&&(Mi.queryLanguageId=qi[0]),!n&&262144&$s[0]&&(n=!0,Mi.fullscreen=qi[18],Q2(function(){return n=!1})),e.$set(Mi),(!Zn||1&$s[0])&&Pr!==(Pr=qi[23](qi[0]).description+"")&&(m.innerHTML=Pr),(!Zn||2&$s[0]&&D!==(D=Zs(qi[1])?"(document root)":yu(qi[1]))&&S.value!==D)&&(S.value=D);var Or={};524288&$s[0]&&(Or.data=qi[19]?Uu:p0),se.$set(Or),qi[19]?fn?(fn.p(qi,$s),524288&$s[0]&&Me(fn,1)):((fn=_re(qi)).c(),Me(fn,1),fn.m(a,Ke)):fn&&(si(),je(fn,1,1,function(){fn=null}),oi()),(!Zn||65536&$s[0])&&(Nt.value=qi[16]);var tc={};1048576&$s[0]&&(tc.data=qi[20]?Uu:p0),$t.$set(tc),qi[20]?Yr?(Yr.p(qi,$s),1048576&$s[0]&&Me(Yr,1)):((Yr=bre(qi)).c(),Me(Yr,1),Yr.m(wt,null)):Yr&&(si(),je(Yr,1,1,function(){Yr=null}),oi()),(!Zn||1048576&$s[0])&&$n(wt,"jse-hide",!qi[20]);var xa=on;(on=Jo(qi))===xa?oa[on].p(qi,$s):(si(),je(oa[xa],1,1,function(){oa[xa]=null}),oi(),(Xt=oa[on])?Xt.p(qi,$s):(Xt=oa[on]=sa[on](qi)).c(),Me(Xt,1),Xt.m(gt,null)),(!Zn||1048576&$s[0])&&$n(qt,"jse-hide-original-data",!qi[20]),(!Zn||2097152&$s[0]&&zi!==(zi=!!qi[21]))&&(Zt.disabled=zi)},i:function(qi){Zn||(Me(e.$$.fragment,qi),Me(se.$$.fragment,qi),Me(fn),Me($t.$$.fragment,qi),Me(Yr),Me(Xt),Zn=!0)},o:function(qi){je(e.$$.fragment,qi),je(se.$$.fragment,qi),je(fn),je($t.$$.fragment,qi),je(Yr),je(Xt),Zn=!1},d:function(qi){qi&&(At(i),At(r)),Rn(e,qi),Rn(se),fn&&fn.d(),Rn($t),Yr&&Yr.d(),oa[on].d(),En=!1,ma(Nr)}}}function ABe(t){var e,n,i,r,s;return n=new $ee({props:{$$slots:{default:[VBe]},$$scope:{ctx:t}}}),{c:function(){e=pt("div"),Nn(n.$$.fragment),ce(e,"class","jse-modal jse-transform svelte-1mpf6w7"),$n(e,"fullscreen",t[18])},m:function(a,u){Ht(a,e,u),zn(n,e,null),i=!0,r||(s=$l(Db.call(null,e,t[30])),r=!0)},p:function(a,u){var d={};8388607&u[0]|16384&u[1]&&(d.$$scope={dirty:u,ctx:a}),n.$set(d),(!i||262144&u[0])&&$n(e,"fullscreen",a[18])},i:function(a){i||(Me(n.$$.fragment,a),i=!0)},o:function(a){je(n.$$.fragment,a),i=!1},d:function(a){a&&At(e),Rn(n),r=!1,s()}}}function IBe(t){t.focus()}function OBe(t,e,n){var i,r,s=v1("jsoneditor:TransformModal"),a=e.id,u=void 0===a?"transform-modal-"+pb():a,d=e.json,m=e.rootPath,_=void 0===m?[]:m,y=e.indentation,x=e.escapeControlCharacters,S=e.escapeUnicodeCharacters,D=e.parser,z=e.parseMemoizeOne,$=e.validationParser,W=e.pathParser,re=e.queryLanguages,se=e.queryLanguageId,ke=e.onChangeQueryLanguage,ye=e.onRenderValue,Ke=e.onRenderMenu,lt=e.onRenderContextMenu,Vt=e.onClassName,Nt=e.onTransform,kt=V1("simple-modal").close,qt=!1,wt="".concat(u,":").concat(de(_)),Dt=Sb[wt]||{},ut=!1!==Bk.showWizard,Ut=!1!==Bk.showOriginal,$t=Dt.queryOptions||{},Lt=se===Dt.queryLanguageId&&Dt.query?Dt.query:sn(se).createQuery(i,Dt.queryOptions||{}),et=Dt.isManual||!1,st=void 0,gt={text:""};function sn(on){return re.find(function(Xt){return Xt.id===on})||re[0]}var Hn=u0(function(on,Xt){if(void 0===on)return n(22,gt={text:""}),void n(21,st="Error: No JSON");try{s("previewTransform",{query:Xt});var An=sn(se).executeQuery(on,Xt,D);n(22,gt={json:An}),n(21,st=void 0)}catch(_n){n(22,gt={text:""}),n(21,st=String(_n))}},300);return t.$$set=function(on){"id"in on&&n(31,u=on.id),"json"in on&&n(32,d=on.json),"rootPath"in on&&n(1,_=on.rootPath),"indentation"in on&&n(2,y=on.indentation),"escapeControlCharacters"in on&&n(3,x=on.escapeControlCharacters),"escapeUnicodeCharacters"in on&&n(4,S=on.escapeUnicodeCharacters),"parser"in on&&n(5,D=on.parser),"parseMemoizeOne"in on&&n(6,z=on.parseMemoizeOne),"validationParser"in on&&n(7,$=on.validationParser),"pathParser"in on&&n(8,W=on.pathParser),"queryLanguages"in on&&n(9,re=on.queryLanguages),"queryLanguageId"in on&&n(0,se=on.queryLanguageId),"onChangeQueryLanguage"in on&&n(33,ke=on.onChangeQueryLanguage),"onRenderValue"in on&&n(10,ye=on.onRenderValue),"onRenderMenu"in on&&n(11,Ke=on.onRenderMenu),"onRenderContextMenu"in on&&n(12,lt=on.onRenderContextMenu),"onClassName"in on&&n(13,Vt=on.onClassName),"onTransform"in on&&n(34,Nt=on.onTransform)},t.$$.update=function(){2&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(14,i=vre(nt(d,_))),16384&t.$$.dirty[0]&&n(17,r=i?{json:i}:{text:""}),81920&t.$$.dirty[0]&&Hn(i,Lt),98305&t.$$.dirty[0]|48&t.$$.dirty[1]&&(n(35,Sb[wt]={queryOptions:$t,query:Lt,queryLanguageId:se,isManual:et},Sb),s("store state in memory",wt,Sb[wt]))},[se,_,y,x,S,D,z,$,W,re,ye,Ke,lt,Vt,i,$t,Lt,r,qt,ut,Ut,st,gt,sn,function(on){n(15,$t=on),n(16,Lt=sn(se).createQuery(i,on)),n(36,et=!1),s("updateQueryByWizard",{queryOptions:$t,query:Lt,isManual:et})},function(on){n(16,Lt=on.target.value),n(36,et=!0),s("handleChangeQuery",{query:Lt,isManual:et})},function(){if(void 0===i)return n(22,gt={text:""}),void n(21,st="Error: No JSON");try{s("handleTransform",{query:Lt});var on=sn(se).executeQuery(i,Lt,D);Nt([{op:"replace",path:de(_),value:on}]),kt()}catch(Xt){console.error(Xt),n(22,gt={text:""}),n(21,st=String(Xt))}},function(){n(19,ut=!ut),Bk.showWizard=ut},function(){n(20,Ut=!Ut),Bk.showOriginal=Ut},function(on){s("handleChangeQueryLanguage",on),n(0,se=on),ke(on);var Xt=sn(se);n(16,Lt=Xt.createQuery(i,$t)),n(36,et=!1)},function(){qt?n(18,qt=!qt):kt()},u,d,ke,Nt,Sb,et,function(on){n(18,qt=on)}]}var HBe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,OBe,ABe,gs,{id:31,json:32,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:33,onRenderValue:10,onRenderMenu:11,onRenderContextMenu:12,onClassName:13,onTransform:34},SBe,[-1,-1]),i}return br(e,Cr),pr(e)}(),w7={};function LBe(t){as(t,"svelte-jdii8g",'.jse-modal.svelte-jdii8g.svelte-jdii8g{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-jdii8g .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-jdii8g .jse-modal-contents.svelte-jdii8g{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions.svelte-jdii8g{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-sort.svelte-jdii8g table.svelte-jdii8g{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-jdii8g table th.svelte-jdii8g,.jse-modal.jse-sort.svelte-jdii8g table td.svelte-jdii8g{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding, 10px)}.jse-modal.jse-sort.svelte-jdii8g table th input.jse-path.svelte-jdii8g,.jse-modal.jse-sort.svelte-jdii8g table td input.jse-path.svelte-jdii8g{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:var(--jse-input-radius, 3px);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-jdii8g table th input.jse-path.svelte-jdii8g:read-only,.jse-modal.jse-sort.svelte-jdii8g table td input.jse-path.svelte-jdii8g:read-only{background:var(--jse-input-background-readonly, transparent)}.jse-modal.jse-sort.svelte-jdii8g table th.svelte-jdii8g .svelte-select input,.jse-modal.jse-sort.svelte-jdii8g table td.svelte-jdii8g .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-jdii8g .jse-space.svelte-jdii8g{height:200px}.jse-modal.jse-sort.svelte-jdii8g .jse-space .jse-error.svelte-jdii8g{color:var(--jse-error-color, #ee5341)}')}function yre(t){var e,n,i,r,s,a,u;function d(_){t[14](_)}var m={showChevron:!0,items:t[5]};return void 0!==t[1]&&(m.value=t[1]),s=new Jp({props:m}),Vs.push(function(){return J2(s,"value",d)}),{c:function(){e=pt("tr"),(n=pt("th")).textContent="Property",i=gn(),r=pt("td"),Nn(s.$$.fragment),ce(n,"class","svelte-jdii8g"),ce(r,"class","svelte-jdii8g")},m:function(_,y){Ht(_,e,y),Ge(e,n),Ge(e,i),Ge(e,r),zn(s,r,null),u=!0},p:function(_,y){var x={};32&y&&(x.items=_[5]),!a&&2&y&&(a=!0,x.value=_[1],Q2(function(){return a=!1})),s.$set(x)},i:function(_){u||(Me(s.$$.fragment,_),u=!0)},o:function(_){je(s.$$.fragment,_),u=!1},d:function(_){_&&At(e),Rn(s)}}}function Cre(t){var e,n;return{c:function(){e=pt("div"),n=Ii(t[4]),ce(e,"class","jse-error svelte-jdii8g")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:function(i,r){16&r&&Ir(n,i[4])},d:function(i){i&&At(e)}}}function zBe(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,Lt;i=new eE({props:{title:t[3]?"Sort array items":"Sort object keys"}});var et=t[3]&&(t[5]&&(null===(e=t[5])||void 0===e?void 0:e.length)>1||void 0===t[1])&&yre(t);function st(Hn){t[15](Hn)}var gt={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(gt.value=t[2]),Ke=new Jp({props:gt}),Vs.push(function(){return J2(Ke,"value",st)});var sn=t[4]&&Cre(t);return{c:function(){var Hn;n=pt("div"),Nn(i.$$.fragment),r=gn(),s=pt("div"),a=pt("table"),(u=pt("colgroup")).innerHTML=' ',d=gn(),m=pt("tbody"),_=pt("tr"),(y=pt("th")).textContent="Path",x=gn(),S=pt("td"),D=pt("input"),$=gn(),et&&et.c(),W=gn(),re=pt("tr"),(se=pt("th")).textContent="Direction",ke=gn(),ye=pt("td"),Nn(Ke.$$.fragment),Vt=gn(),Nt=pt("div"),sn&&sn.c(),kt=gn(),qt=pt("div"),wt=pt("button"),Dt=Ii("Sort"),ce(y,"class","svelte-jdii8g"),ce(D,"class","jse-path svelte-jdii8g"),ce(D,"type","text"),D.readOnly=!0,ce(D,"title","Selected path"),D.value=z=Zs(t[0])?"(document root)":yu(t[0]),ce(S,"class","svelte-jdii8g"),ce(se,"class","svelte-jdii8g"),ce(ye,"class","svelte-jdii8g"),ce(a,"class","svelte-jdii8g"),ce(Nt,"class","jse-space svelte-jdii8g"),ce(wt,"type","button"),ce(wt,"class","jse-primary svelte-jdii8g"),wt.disabled=ut=!!(t[3]&&t[5]&&(null===(Hn=t[5])||void 0===Hn?void 0:Hn.length)>1)&&!t[1],ce(qt,"class","jse-actions svelte-jdii8g"),ce(s,"class","jse-modal-contents svelte-jdii8g"),ce(n,"class","jse-modal jse-sort svelte-jdii8g")},m:function(Hn,on){Ht(Hn,n,on),zn(i,n,null),Ge(n,r),Ge(n,s),Ge(s,a),Ge(a,u),Ge(a,d),Ge(a,m),Ge(m,_),Ge(_,y),Ge(_,x),Ge(_,S),Ge(S,D),Ge(m,$),et&&et.m(m,null),Ge(m,W),Ge(m,re),Ge(re,se),Ge(re,ke),Ge(re,ye),zn(Ke,ye,null),Ge(s,Vt),Ge(s,Nt),sn&&sn.m(Nt,null),Ge(s,kt),Ge(s,qt),Ge(qt,wt),Ge(wt,Dt),Ut=!0,$t||(Lt=[ei(wt,"click",t[8]),$l(RBe.call(null,wt)),$l(Db.call(null,n,t[6]))],$t=!0)},p:function(Hn,on){var Xt,An,_n=ds(on,1)[0],Zt={};8&_n&&(Zt.title=Hn[3]?"Sort array items":"Sort object keys"),i.$set(Zt),(!Ut||1&_n&&z!==(z=Zs(Hn[0])?"(document root)":yu(Hn[0]))&&D.value!==z)&&(D.value=z),Hn[3]&&(Hn[5]&&(null===(Xt=Hn[5])||void 0===Xt?void 0:Xt.length)>1||void 0===Hn[1])?et?(et.p(Hn,_n),42&_n&&Me(et,1)):((et=yre(Hn)).c(),Me(et,1),et.m(m,W)):et&&(si(),je(et,1,1,function(){et=null}),oi());var wi={};!lt&&4&_n&&(lt=!0,wi.value=Hn[2],Q2(function(){return lt=!1})),Ke.$set(wi),Hn[4]?sn?sn.p(Hn,_n):((sn=Cre(Hn)).c(),sn.m(Nt,null)):sn&&(sn.d(1),sn=null),(!Ut||42&_n&&ut!==(ut=!!(Hn[3]&&Hn[5]&&(null===(An=Hn[5])||void 0===An?void 0:An.length)>1)&&!Hn[1]))&&(wt.disabled=ut)},i:function(Hn){Ut||(Me(i.$$.fragment,Hn),Me(et),Me(Ke.$$.fragment,Hn),Ut=!0)},o:function(Hn){je(i.$$.fragment,Hn),je(et),je(Ke.$$.fragment,Hn),Ut=!1},d:function(Hn){Hn&&At(n),Rn(i),et&&et.d(),Rn(Ke),sn&&sn.d(),$t=!1,ma(Lt)}}}function RBe(t){t.focus()}function NBe(t,e,n){var i,r,s,a,u,d=v1("jsoneditor:SortModal"),m=e.id,_=e.json,y=e.rootPath,x=e.onSort,S=V1("simple-modal").close,D="".concat(m,":").concat(de(y)),z=nt(_,y),$={value:1,label:"ascending"},W=[$,{value:-1,label:"descending"}],re=null===(i=w7[D])||void 0===i?void 0:i.selectedProperty,se=(null===(r=w7[D])||void 0===r?void 0:r.selectedDirection)||$,ke=void 0;return t.$$set=function(ye){"id"in ye&&n(9,m=ye.id),"json"in ye&&n(10,_=ye.json),"rootPath"in ye&&n(0,y=ye.rootPath),"onSort"in ye&&n(11,x=ye.onSort)},t.$$.update=function(){8&t.$$.dirty&&n(13,a=s&&void 0!==z?ML(z):void 0),8192&t.$$.dirty&&n(5,u=a?a.map(_b):void 0),4102&t.$$.dirty&&(n(12,w7[D]={selectedProperty:re,selectedDirection:se},w7),d("store state in memory",D,w7[D]))},n(3,s=Array.isArray(z)),[y,re,se,s,ke,u,S,W,function(){try{var ye,Ke,lt;n(4,ke=void 0);var Vt=(null===(ye=re)||void 0===ye?void 0:ye.value)||(null===(Ke=u)||void 0===Ke||null===(Ke=Ke[0])||void 0===Ke?void 0:Ke.value)||[],Nt=null===(lt=se)||void 0===lt?void 0:lt.value,kt=Eie(_,y,Vt,Nt);x({operations:kt,rootPath:y,itemPath:Vt,direction:Nt}),S()}catch(qt){n(4,ke=String(qt))}},m,_,x,w7,a,function(ye){n(1,re=ye)},function(ye){n(2,se=ye)}]}var PBe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,NBe,zBe,gs,{id:9,json:10,rootPath:0,onSort:11},LBe),i}return br(e,Cr),pr(e)}();function M4(){}function cE(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*e)return t.toFixed()+" B";var n=t/e;if(n<.9*e)return n.toFixed(1)+" KB";var i=n/e;if(i<.9*e)return i.toFixed(1)+" MB";var r=i/e;return r<.9*e?r.toFixed(1)+" GB":(r/e).toFixed(1)+" TB"}function jBe(t){var e,n;return e=new rE({props:{items:t[0]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&ds(r,1)[0]&&(s.items=i[0]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function FBe(t,e,n){var i,r,s=e.readOnly,a=void 0!==s&&s,u=e.onFormat,d=e.onCompact,m=e.onSort,_=e.onTransform,y=e.onToggleSearch,x=e.onUndo,S=e.onRedo,D=e.canUndo,z=e.canRedo,$=e.canFormat,W=e.canCompact,re=e.canSort,se=e.canTransform,ke=e.onRenderMenu,ye={type:"button",icon:m_,title:"Search (Ctrl+F)",className:"jse-search",onClick:y};return t.$$set=function(Ke){"readOnly"in Ke&&n(1,a=Ke.readOnly),"onFormat"in Ke&&n(2,u=Ke.onFormat),"onCompact"in Ke&&n(3,d=Ke.onCompact),"onSort"in Ke&&n(4,m=Ke.onSort),"onTransform"in Ke&&n(5,_=Ke.onTransform),"onToggleSearch"in Ke&&n(6,y=Ke.onToggleSearch),"onUndo"in Ke&&n(7,x=Ke.onUndo),"onRedo"in Ke&&n(8,S=Ke.onRedo),"canUndo"in Ke&&n(9,D=Ke.canUndo),"canRedo"in Ke&&n(10,z=Ke.canRedo),"canFormat"in Ke&&n(11,$=Ke.canFormat),"canCompact"in Ke&&n(12,W=Ke.canCompact),"canSort"in Ke&&n(13,re=Ke.canSort),"canTransform"in Ke&&n(14,se=Ke.canTransform),"onRenderMenu"in Ke&&n(15,ke=Ke.onRenderMenu)},t.$$.update=function(){32702&t.$$.dirty&&n(16,r=a?[ye,{type:"space"}]:[{type:"button",icon:uz,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:u,disabled:a||!$},{type:"button",icon:Kje,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:d,disabled:a||!W},{type:"separator"},{type:"button",icon:p_,title:"Sort",className:"jse-sort",onClick:m,disabled:a||!re},{type:"button",icon:u_,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:_,disabled:a||!se},ye,{type:"separator"},{type:"button",icon:LM,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:x,disabled:!D},{type:"button",icon:HM,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:S,disabled:!z},{type:"space"}]),98304&t.$$.dirty&&n(0,i=ke(r)||r)},[i,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,r]}var BBe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,FBe,jBe,gs,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),i}return br(e,Cr),pr(e)}();function $Be(t){as(t,"svelte-hhcn0f",'.jse-status-bar.svelte-hhcn0f.svelte-hhcn0f{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);margin:0;border-top:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7));border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7);display:flex;gap:var(--jse-padding, 10px)}.jse-status-bar.svelte-hhcn0f.svelte-hhcn0f:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-status-bar.svelte-hhcn0f .jse-status-bar-info.svelte-hhcn0f{padding:2px}')}function xre(t){var e,n,i;return{c:function(){e=pt("div"),n=Ii("Line: "),i=Ii(t[0]),ce(e,"class","jse-status-bar-info svelte-hhcn0f")},m:function(r,s){Ht(r,e,s),Ge(e,n),Ge(e,i)},p:function(r,s){1&s&&Ir(i,r[0])},d:function(r){r&&At(e)}}}function wre(t){var e,n,i;return{c:function(){e=pt("div"),n=Ii("Column: "),i=Ii(t[1]),ce(e,"class","jse-status-bar-info svelte-hhcn0f")},m:function(r,s){Ht(r,e,s),Ge(e,n),Ge(e,i)},p:function(r,s){2&s&&Ir(i,r[1])},d:function(r){r&&At(e)}}}function Mre(t){var e,n,i,r;return{c:function(){e=pt("div"),n=Ii("Selection: "),i=Ii(t[2]),r=Ii(" characters"),ce(e,"class","jse-status-bar-info svelte-hhcn0f")},m:function(s,a){Ht(s,e,a),Ge(e,n),Ge(e,i),Ge(e,r)},p:function(s,a){4&a&&Ir(i,s[2])},d:function(s){s&&At(e)}}}function UBe(t){var e,n,i,r=void 0!==t[0]&&xre(t),s=void 0!==t[1]&&wre(t),a=void 0!==t[2]&&t[2]>0&&Mre(t);return{c:function(){e=pt("div"),r&&r.c(),n=gn(),s&&s.c(),i=gn(),a&&a.c(),ce(e,"class","jse-status-bar svelte-hhcn0f")},m:function(u,d){Ht(u,e,d),r&&r.m(e,null),Ge(e,n),s&&s.m(e,null),Ge(e,i),a&&a.m(e,null)},p:function(u,d){var m=ds(d,1)[0];void 0!==u[0]?r?r.p(u,m):((r=xre(u)).c(),r.m(e,n)):r&&(r.d(1),r=null),void 0!==u[1]?s?s.p(u,m):((s=wre(u)).c(),s.m(e,i)):s&&(s.d(1),s=null),void 0!==u[2]&&u[2]>0?a?a.p(u,m):((a=Mre(u)).c(),a.m(e,null)):a&&(a.d(1),a=null)},i:hi,o:hi,d:function(u){u&&At(e),r&&r.d(),s&&s.d(),a&&a.d()}}}function GBe(t,e,n){var i,r,s,a,u,d=e.editorState;return t.$$set=function(m){"editorState"in m&&n(3,d=m.editorState)},t.$$.update=function(){var m,_,y;8&t.$$.dirty&&n(4,i=null===(m=d)||void 0===m||null===(m=m.selection)||void 0===m||null===(m=m.main)||void 0===m?void 0:m.head),24&t.$$.dirty&&n(5,r=void 0!==i?null===(_=d)||void 0===_||null===(_=_.doc)||void 0===_?void 0:_.lineAt(i):void 0),32&t.$$.dirty&&n(0,s=void 0!==r?r.number:void 0),48&t.$$.dirty&&n(1,a=void 0!==r&&void 0!==i?i-r.from+1:void 0),8&t.$$.dirty&&n(2,u=null===(y=d)||void 0===y||null===(y=y.selection)||void 0===y||null===(y=y.ranges)||void 0===y?void 0:y.reduce(function(x,S){return x+S.to-S.from},0))},[s,a,u,d,i,r]}var WBe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,GBe,UBe,n1,{editorState:3},$Be),i}return br(e,Cr),pr(e)}(),Cz=Z_.define([{tag:Pi.propertyName,color:"var(--internal-key-color)"},{tag:Pi.number,color:"var(--internal-value-color-number)"},{tag:Pi.bool,color:"var(--internal-value-color-boolean)"},{tag:Pi.string,color:"var(--internal-value-color-string)"},{tag:Pi.keyword,color:"var(--internal-value-color-null)"}]),qBe=TQ(Cz),XBe=Cz.style;function KBe(t){as(t,"svelte-a0poeb",'.jse-text-mode.svelte-a0poeb.svelte-a0poeb{--internal-key-color:var(--jse-key-color, #1a1a1a);--internal-value-color-number:var(--jse-value-color-number, #ee422e);--internal-value-color-boolean:var(--jse-value-color-boolean, #ff8c00);--internal-value-color-string:var(--jse-value-color-string, #008000);--internal-value-color-null:var(--jse-value-color-null, #004ed0);flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color, #fff)}.jse-text-mode.no-main-menu.svelte-a0poeb.svelte-a0poeb{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.jse-hidden.svelte-a0poeb{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);line-height:var(--jse-line-height, calc(1em + 4px));color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-gutters{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);border-right:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-activeLine,.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color, rgba(0, 0, 0, 0.06))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color, #d3d3d3)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color, #ffe665);outline:var(--jse-search-match-outline, 1px solid #ffd700)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color, #ffd700);outline:var(--jse-search-match-active-outline, 1px solid #e1be00)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color, rgba(153, 255, 119, 0.5019607843))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background, rgba(0, 0, 0, 0.2));color:var(--jse-tag-color, var(--jse-text-color-inverse, #fff));border:none;padding:0 var(--jse-padding, 10px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-tooltip{font-size:var(--jse-font-size, 16px);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);color:var(--jse-tooltip-color, var(--jse-text-color, #4d4d4d));background:var(--jse-tooltip-background, var(--jse-modal-background, #f5f5f5));border:var(--jse-tooltip-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color, var(--jse-text-color-inverse, #fff));background:var(--jse-tooltip-action-button-background, #4d4d4d)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-panels{border-bottom:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color, var(--jse-text-color, #4d4d4d));font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search input{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);color:var(--jse-input-color, var(--jse-text-color, #4d4d4d));border:var(--jse-input-border, 1px solid #d8dbdf);background:var(--jse-input-background, var(--jse-background-color, #fff));margin-right:2px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);color:var(--jse-panel-button-color, inherit);background:var(--jse-panel-button-background, transparent);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px);margin:0}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button:hover{color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d));background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search label{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);padding-left:var(--jse-padding, 10px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color, #4d4d4d)}.jse-text-mode.svelte-a0poeb .jse-contents .jse-loading-space.svelte-a0poeb{flex:1}.jse-text-mode.svelte-a0poeb .jse-contents .jse-loading.svelte-a0poeb{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-text-mode.svelte-a0poeb .jse-contents.jse-preview.svelte-a0poeb{flex:1;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-panel-color-readonly, #b2b2b2);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function xz(t){var e=t.slice();return e[100]=0===e[11].length,e}function Sre(t){var e,n;return e=new BBe({props:{readOnly:t[1],onFormat:t[17],onCompact:t[18],onSort:t[19],onTransform:t[20],onToggleSearch:t[21],onUndo:t[22],onRedo:t[23],canFormat:!t[100],canCompact:!t[100],canSort:!t[100],canTransform:!t[100],canUndo:t[12],canRedo:t[13],onRenderMenu:t[4]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};2&r[0]&&(s.readOnly=i[1]),2048&r[0]&&(s.canFormat=!i[100]),2048&r[0]&&(s.canCompact=!i[100]),2048&r[0]&&(s.canSort=!i[100]),2048&r[0]&&(s.canTransform=!i[100]),4096&r[0]&&(s.canUndo=i[12]),8192&r[0]&&(s.canRedo=i[13]),16&r[0]&&(s.onRenderMenu=i[4]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function YBe(t){var e;return{c:function(){(e=pt("div")).innerHTML='
loading...
',ce(e,"class","jse-contents svelte-a0poeb")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function QBe(t){var e,n,i,r,s,a=t[99]&&kre(t),u=!t[99]&&Ere(t);return{c:function(){e=pt("div"),n=gn(),a&&a.c(),i=gn(),u&&u.c(),r=ho(),ce(e,"class","jse-contents svelte-a0poeb"),$n(e,"jse-hidden",t[99])},m:function(d,m){Ht(d,e,m),t[53](e),Ht(d,n,m),a&&a.m(d,m),Ht(d,i,m),u&&u.m(d,m),Ht(d,r,m),s=!0},p:function(d,m){(!s||268438016&m[0])&&$n(e,"jse-hidden",d[99]),d[99]?a?(a.p(d,m),2560&m[0]&&Me(a,1)):((a=kre(d)).c(),Me(a,1),a.m(i.parentNode,i)):a&&(si(),je(a,1,1,function(){a=null}),oi()),d[99]?u&&(si(),je(u,1,1,function(){u=null}),oi()):u?(u.p(d,m),2560&m[0]&&Me(u,1)):((u=Ere(d)).c(),Me(u,1),u.m(r.parentNode,r))},i:function(d){s||(Me(a),Me(u),s=!0)},o:function(d){je(a),je(u),s=!1},d:function(d){d&&(At(e),At(n),At(i),At(r)),t[53](null),a&&a.d(d),u&&u.d(d)}}}function kre(t){var e,n,i,r,s,a=T0(t[11]||"",mL)+"";return e=new w4({props:{icon:bh,type:"error",message:"The JSON document is larger than ".concat(cE(gL,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(cE(t[11].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[24]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[25]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[26]}],onClose:t[5]}}),{c:function(){Nn(e.$$.fragment),n=gn(),i=pt("div"),r=Ii(a),ce(i,"class","jse-contents jse-preview svelte-a0poeb")},m:function(u,d){zn(e,u,d),Ht(u,n,d),Ht(u,i,d),Ge(i,r),s=!0},p:function(u,d){var m={};2048&d[0]&&(m.message="The JSON document is larger than ".concat(cE(gL,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(cE(u[11].length,1024),".")),e.$set(m),(!s||2048&d[0])&&a!==(a=T0(u[11]||"",mL)+"")&&Ir(r,a)},i:function(u){s||(Me(e.$$.fragment,u),s=!0)},o:function(u){je(e.$$.fragment,u),s=!1},d:function(u){u&&(At(n),At(i)),Rn(e,u)}}}function Ere(t){var e,n,i,r,s,a=!t[14]&&t[0]&&Dee(t[11]),u=t[3]&&Dre(t),d=t[14]&&Tre(t),m=a&&Vre(t);return r=new oz({props:{validationErrors:t[10],selectError:t[27]}}),{c:function(){u&&u.c(),e=gn(),d&&d.c(),n=gn(),m&&m.c(),i=gn(),Nn(r.$$.fragment)},m:function(_,y){u&&u.m(_,y),Ht(_,e,y),d&&d.m(_,y),Ht(_,n,y),m&&m.m(_,y),Ht(_,i,y),zn(r,_,y),s=!0},p:function(_,y){_[3]?u?(u.p(_,y),8&y[0]&&Me(u,1)):((u=Dre(_)).c(),Me(u,1),u.m(e.parentNode,e)):u&&(si(),je(u,1,1,function(){u=null}),oi()),_[14]?d?(d.p(_,y),16384&y[0]&&Me(d,1)):((d=Tre(_)).c(),Me(d,1),d.m(n.parentNode,n)):d&&(si(),je(d,1,1,function(){d=null}),oi()),18433&y[0]&&(a=!_[14]&&_[0]&&Dee(_[11])),a?m?(m.p(_,y),18433&y[0]&&Me(m,1)):((m=Vre(_)).c(),Me(m,1),m.m(i.parentNode,i)):m&&(si(),je(m,1,1,function(){m=null}),oi());var x={};1024&y[0]&&(x.validationErrors=_[10]),r.$set(x)},i:function(_){s||(Me(u),Me(d),Me(m),Me(r.$$.fragment,_),s=!0)},o:function(_){je(u),je(d),je(m),je(r.$$.fragment,_),s=!1},d:function(_){_&&(At(e),At(n),At(i)),u&&u.d(_),d&&d.d(_),m&&m.d(_),Rn(r,_)}}}function Dre(t){var e,n;return e=new WBe({props:{editorState:t[8]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};256&r[0]&&(s.editorState=i[8]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Tre(t){var e,n;return e=new w4({props:{type:"error",icon:bh,message:t[14].message,actions:t[15],onClick:t[29],onClose:t[5]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};16384&r[0]&&(s.message=i[14].message),32768&r[0]&&(s.actions=i[15]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Vre(t){var e,n;return e=new w4({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:uz,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[17]},{icon:M5,text:"No thanks",title:"Close this message",onClick:t[54]}],onClose:t[5]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r[0]&&(s.actions=[{icon:uz,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[17]},{icon:M5,text:"No thanks",title:"Close this message",onClick:i[54]}]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function JBe(t){var e,n,i,r,s,a=t[2]&&Sre(xz(t)),d=[];function m(_,y){return 0===y?(D=(S=_.slice())[28](S[11],S[9]),S[99]=D,S):_;var S,D}return r=d[i=t[16]?1:0]=[QBe,YBe][i](m(t,i)),{c:function(){e=pt("div"),a&&a.c(),n=gn(),r.c(),ce(e,"class","jse-text-mode svelte-a0poeb"),$n(e,"no-main-menu",!t[2])},m:function(_,y){Ht(_,e,y),a&&a.m(e,null),Ge(e,n),d[i].m(e,null),t[55](e),s=!0},p:function(_,y){_[2]?a?(a.p(xz(_),y),4&y[0]&&Me(a,1)):((a=Sre(xz(_))).c(),Me(a,1),a.m(e,n)):a&&(si(),je(a,1,1,function(){a=null}),oi()),r.p(m(_,i),y),(!s||4&y[0])&&$n(e,"no-main-menu",!_[2])},i:function(_){s||(Me(a),Me(r),s=!0)},o:function(_){je(a),je(r),s=!1},d:function(_){_&&At(e),a&&a.d(),d[i].d(),t[55](null)}}}function Are(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function ZBe(t,e,n){var i,r,s,a,u,d,m=e.readOnly,_=e.mainMenuBar,y=e.statusBar,x=e.askToFormat,S=e.externalContent,D=e.externalSelection,z=e.indentation,$=e.tabSize,W=e.escapeUnicodeCharacters,re=e.parser,se=e.validator,ke=e.validationParser,ye=e.onChange,Ke=e.onChangeMode,lt=e.onSelect,Vt=e.onError,Nt=e.onFocus,kt=e.onBlur,qt=e.onRenderMenu,wt=e.onSortModal,Dt=e.onTransformModal,ut=v1("jsoneditor:TextMode"),Ut={key:"Mod-i",run:va,shift:Qo,preventDefault:!0},$t=typeof window>"u";ut("isSSR:",$t);var Lt=!1,et=[],st=new _0,gt=new _0,sn=new _0,Hn=new _0,on=new _0,Xt=S,An=kL(Xt,z,re),_n=W;Hd(es(gi().mark(function Tn(){return gi().wrap(function(Fi){for(;;)switch(Fi.prev=Fi.next){case 0:if(!$t){Fi.next=2;break}return Fi.abrupt("return");case 2:try{u=qi({target:s,initialText:O1(An,Lt)?"":i.escapeValue(An),readOnly:m,indentation:z})}catch(ss){console.error(ss)}case 3:case"end":return Fi.stop()}},Tn)}))),Zu(function(){u&&(ut("Destroy CodeMirror editor"),u.destroy())});var Zt=!1,wi=!1,zi=vh(),Zn=vh();function En(){u&&(ut("focus"),u.focus())}var Nr=!1;function Pr(Tn,Fi){ut("handlePatch",Tn,Fi);var ss=re.parse(An),Fo=xe(ss,Tn),Xs=Tr(ss,Tn);return xa({text:re.stringify(Fo,null,z)},Fi,!1),{json:Fo,previousJson:ss,undo:Xs,redo:Tn}}function va(){if(ut("format"),m)return!1;try{var Tn=re.parse(An);return xa({text:re.stringify(Tn,null,z)},!0,!1),!0}catch(Fi){Vt(Fi)}return!1}function Qo(){if(ut("compact"),m)return!1;try{var Tn=re.parse(An);return xa({text:re.stringify(Tn)},!0,!1),!0}catch(Fi){Vt(Fi)}return!1}function fn(){if(ut("repair"),!m)try{xa({text:na(An)},!0,!1),n(52,Wl=yL),n(14,bs=null)}catch(Tn){Vt(Tn)}}function Yr(Tn){var Fi=Tn.id,ss=Tn.rootPath,Fo=Tn.onTransform,Xs=Tn.onClose;try{var Dn=re.parse(An);Nr=!0,Dt({id:Fi||Zn,json:Dn,rootPath:ss||[],onTransform:function(ji){Fo?Fo({operations:ji,json:Dn,transformedJson:xe(Dn,ji)}):(ut("onTransform",ji),Pr(ji,!0))},onClose:function(){Nr=!1,En(),Xs&&Xs()}})}catch(ji){Vt(ji)}}function sa(Tn,Fi){ut("setSelection",{anchor:Tn,head:Fi}),u&&u.dispatch(u.state.update({selection:{anchor:Tn,head:Fi},scrollIntoView:!0}))}function oa(Tn,Fi){if(1===Fi.state.selection.ranges.length){var ss=Fi.state.selection.ranges[0],Fo=An.slice(ss.from,ss.to);if("{"===Fo||"["===Fo){var Xs=Mt.parse(An),Dn=Object.keys(Xs.pointers).find(function(Yi){var Bn;return(null===(Bn=Xs.pointers[Yi].value)||void 0===Bn?void 0:Bn.pos)===ss.from}),ji=Xs.pointers[Dn];Dn&&ji&&ji.value&&ji.valueEnd&&(ut("pointer found, selecting inner contents of path:",Dn,ji),sa(ji.value.pos+1,ji.valueEnd.pos-1))}}}function Jo(){return function YOe(t,e={}){return[Lp.of({source:t,config:e}),zJ,$J]}(Jc,{delay:300})}function qi(Tn){var Fi=Tn.target,ss=Tn.initialText,Fo=Tn.readOnly,Xs=Tn.indentation;ut("Create CodeMirror editor",{readOnly:Fo,indentation:Xs});var Dn=W1.create({doc:ss,selection:Mi(D,ss)?I1(D):void 0,extensions:[R_.of([BOe,Ut]),st.of(Jo()),sHe(),aAe(),lAe,TVe(),jIe(),oIe(),bVe(),[P_,wVe],W1.allowMultipleSelections.of(!0),W1.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,r=n.lineAt(i);if(i>r.from+200)return t;let s=n.sliceString(r.from,i);if(!e.some(m=>m.test(s)))return t;let{state:a}=t,u=-1,d=[];for(let{head:m}of a.selection.ranges){let _=a.doc.lineAt(m);if(_.from==u)continue;u=_.from;let y=RS(a,_.from);if(null==y)continue;let x=/^\s*/.exec(_.text)[0],S=P5(a,y);x!=S&&d.push({from:_.from,to:_.from+x.length,insert:S})}return d.length?[t,{changes:d,sequential:!0}]:t}),TQ(uIe,{fallback:!0}),gIe(),[HLe,SZ],BLe(),BVe(),GVe(),RVe,MHe(),R_.of([].concat(Ts(LLe),Ts(FOe),Ts(UHe),Ts(QIe),Ts(nIe),Ts(AZ),Ts(KOe))),qBe,KLe({hideFirstIndent:!0}),ps.domEventHandlers({dblclick:oa}),ps.updateListener.of(function(ji){n(8,d=ji.state),ji.docChanged?Tl():ji.selectionSet&&Z2()}),new RAe(_He),OHe({top:!0}),ps.lineWrapping,gt.of(W1.readOnly.of(Fo)),Hn.of(W1.tabSize.of($)),sn.of(Ul(Xs)),on.of(ps.theme({},{dark:$s()}))]});return u=new ps({state:Dn,parent:Fi})}function $s(){return!!s&&getComputedStyle(s).getPropertyValue("--jse-theme").includes("dark")}function Mi(Tn,Fi){return!!UL(Tn)&&Tn.ranges.every(function(ss){return ss.anchor0),n(13,wi=UIe(u.state)>0),ut({canUndo:Zt,canRedo:wi})}Zu(function(){Oa()}),sz({onMount:Hd,onDestroy:Zu,getWindow:function(){return c7(a)},hasFocus:function(){return Nr&&document.hasFocus()||TL(a)},onFocus:Nt,onBlur:function(){Oa(),kt()}});var Tl=u0(s1,300);function Oa(){Tl.flush()}function Gl(Tn,Fi){ye&&ye(Tn,Fi,{contentErrors:Gc(),patchResult:null})}function Z2(){lt(yn({type:Wa.text},d.selection.toJSON()))}function O1(Tn,Fi){return!!Tn&&Tn.length>gL&&!Fi}var Wl=yL,bs=null;function Jc(){if(O1(An,Lt))return[];var Tn=Gc();return zne(Tn)?[Are(tc(Tn.parseError,Tn.isRepairable))]:function VPe(t){return ga(t)&&Array.isArray(t.validationErrors)}(Tn)?Tn.validationErrors.map(Or).map(Are):[]}function Gc(){ut("validate:start"),Oa();var Tn=J1(i.escapeValue(An),se,re,ke);return zne(Tn)?(n(52,Wl=Tn.isRepairable?pee:"invalid"),n(14,bs=Tn.parseError),n(10,et=[])):(n(52,Wl=yL),n(14,bs=null),n(10,et=Tn?.validationErrors||[])),ut("validate:end"),Tn}var J1=b_(pPe);function o1(){bs&&function(Tn){ut("select parse error",Tn);var Fi=tc(Tn,!1);sa(null!=Fi.from?Fi.from:0,null!=Fi.to?Fi.to:0),En()}(bs)}var a1={icon:VU,text:"Show me",title:"Move to the parse error location",onClick:o1};return t.$$set=function(Tn){"readOnly"in Tn&&n(1,m=Tn.readOnly),"mainMenuBar"in Tn&&n(2,_=Tn.mainMenuBar),"statusBar"in Tn&&n(3,y=Tn.statusBar),"askToFormat"in Tn&&n(0,x=Tn.askToFormat),"externalContent"in Tn&&n(30,S=Tn.externalContent),"externalSelection"in Tn&&n(31,D=Tn.externalSelection),"indentation"in Tn&&n(32,z=Tn.indentation),"tabSize"in Tn&&n(33,$=Tn.tabSize),"escapeUnicodeCharacters"in Tn&&n(34,W=Tn.escapeUnicodeCharacters),"parser"in Tn&&n(35,re=Tn.parser),"validator"in Tn&&n(36,se=Tn.validator),"validationParser"in Tn&&n(37,ke=Tn.validationParser),"onChange"in Tn&&n(38,ye=Tn.onChange),"onChangeMode"in Tn&&n(39,Ke=Tn.onChangeMode),"onSelect"in Tn&&n(40,lt=Tn.onSelect),"onError"in Tn&&n(41,Vt=Tn.onError),"onFocus"in Tn&&n(42,Nt=Tn.onFocus),"onBlur"in Tn&&n(43,kt=Tn.onBlur),"onRenderMenu"in Tn&&n(4,qt=Tn.onRenderMenu),"onSortModal"in Tn&&n(44,wt=Tn.onSortModal),"onTransformModal"in Tn&&n(45,Dt=Tn.onTransformModal)},t.$$.update=function(){var Tn;8&t.$$.dirty[1]&&(i=EL({escapeControlCharacters:!1,escapeUnicodeCharacters:W})),1073741824&t.$$.dirty[0]&&xa(S,!1,!1),1&t.$$.dirty[1]&&function(Tn){if(UL(Tn)){var Fi=I1(Tn);!u||!Fi||d&&d.selection.eq(Fi)||(ut("applyExternalSelection",Fi),u.dispatch({selection:Fi}))}}(D),32&t.$$.dirty[1]&&(ut("updateLinter",se),u&&u.dispatch({effects:st.reconfigure(Jo())})),2&t.$$.dirty[1]&&(Tn=z,u&&(ut("updateIndentation",Tn),u.dispatch({effects:sn.reconfigure(Ul(Tn))}))),4&t.$$.dirty[1]&&function(Tn){u&&(ut("updateTabSize",Tn),u.dispatch({effects:Hn.reconfigure(W1.tabSize.of(Tn))}))}($),2&t.$$.dirty[0]&&function(Tn){u&&(ut("updateReadOnly",Tn),u.dispatch({effects:[gt.reconfigure(W1.readOnly.of(Tn))]}))}(m),1048584&t.$$.dirty[1]&&_n!==W&&(n(51,_n=W),ut("forceUpdateText",{escapeUnicodeCharacters:W}),u&&u.dispatch({changes:{from:0,to:u.state.doc.length,insert:i.escapeValue(An)}})),2&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&n(15,r=Wl!==pee||m?[a1]:[{icon:d_,text:"Auto repair",title:"Automatically repair JSON",onClick:fn},a1])},[x,m,_,y,qt,En,s,a,d,Lt,et,An,Zt,wi,bs,r,$t,va,Qo,function(){var Tn;if(!m)try{var Fi=re.parse(An);Nr=!0,wt({id:zi,json:Fi,rootPath:[],onSort:(Tn=es(gi().mark(function ss(Fo){var Xs;return gi().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:ut("onSort",Xs=Fo.operations),Pr(Xs,!0);case 3:case"end":return Dn.stop()}},ss)})),function(ss){return Tn.apply(this,arguments)}),onClose:function(){Nr=!1,En()}})}catch(ss){Vt(ss)}},function(){m||Yr({rootPath:[]})},function(){u&&(s&&s.querySelector(".cm-search")?UH(u):$H(u))},function(){m||u&&(SH(u),En())},function(){m||u&&(FS(u),En())},function(){n(9,Lt=!0),xa(S,!0,!0)},function(){Ke(A1.tree)},function(){s1()},function(Tn){ut("select validation error",Tn);var Fi=Or(Tn),ss=Fi.from,Fo=Fi.to;null!==ss&&null!==Fo&&(sa(ss,Fo),En())},O1,o1,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,kt,wt,Dt,function(Tn){return Pr(Tn,!1)},Pr,Yr,function(){return r1.apply(this,arguments)},Gc,_n,Wl,function(Tn){Vs[Tn?"unshift":"push"](function(){n(6,s=Tn)})},function(){return n(0,x=!1)},function(Tn){Vs[Tn?"unshift":"push"](function(){n(7,a=Tn)})}]}Cz.style=function(t){return XBe(t||[])};var e$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,ZBe,JBe,gs,{readOnly:1,mainMenuBar:2,statusBar:3,askToFormat:0,externalContent:30,externalSelection:31,indentation:32,tabSize:33,escapeUnicodeCharacters:34,parser:35,validator:36,validationParser:37,onChange:38,onChangeMode:39,onSelect:40,onError:41,onFocus:42,onBlur:43,onRenderMenu:4,onSortModal:44,onTransformModal:45,focus:5,patch:46,handlePatch:47,openTransformModal:48,refresh:49,validate:50},KBe,[-1,-1,-1,-1]),i}return br(e,Cr),pr(e,[{key:"focus",get:function(){return this.$$.ctx[5]}},{key:"patch",get:function(){return this.$$.ctx[46]}},{key:"handlePatch",get:function(){return this.$$.ctx[47]}},{key:"openTransformModal",get:function(){return this.$$.ctx[48]}},{key:"refresh",get:function(){return this.$$.ctx[49]}},{key:"validate",get:function(){return this.$$.ctx[50]}}])}();function t$e(t){var e,n;return e=new rE({props:{items:t[0]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&ds(r,1)[0]&&(s.items=i[0]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function n$e(t,e,n){var i,r,s=e.containsValidArray,a=e.readOnly,u=e.showSearch,d=void 0!==u&&u,m=e.historyState,_=e.onSort,y=e.onTransform,x=e.onContextMenu,S=e.onUndo,D=e.onRedo,z=e.onRenderMenu;function $(){n(1,d=!d)}return t.$$set=function(W){"containsValidArray"in W&&n(2,s=W.containsValidArray),"readOnly"in W&&n(3,a=W.readOnly),"showSearch"in W&&n(1,d=W.showSearch),"historyState"in W&&n(4,m=W.historyState),"onSort"in W&&n(5,_=W.onSort),"onTransform"in W&&n(6,y=W.onTransform),"onContextMenu"in W&&n(7,x=W.onContextMenu),"onUndo"in W&&n(8,S=W.onUndo),"onRedo"in W&&n(9,D=W.onRedo),"onRenderMenu"in W&&n(10,z=W.onRenderMenu)},t.$$.update=function(){1020&t.$$.dirty&&n(11,i=a?[{type:"space"}]:[{type:"button",icon:p_,title:"Sort",className:"jse-sort",onClick:_,disabled:a||!s},{type:"button",icon:u_,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:y,disabled:a||!s},{type:"button",icon:m_,title:"Search (Ctrl+F)",className:"jse-search",onClick:$,disabled:!s},{type:"button",icon:SI,title:_L,className:"jse-contextmenu",onClick:x},{type:"separator"},{type:"button",icon:LM,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:S,disabled:!m.canUndo},{type:"button",icon:HM,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:D,disabled:!m.canRedo},{type:"space"}]),3072&t.$$.dirty&&n(0,r=z(i))},[r,d,s,a,m,_,y,x,S,D,z,i]}var i$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,n$e,t$e,gs,{containsValidArray:2,readOnly:3,showSearch:1,historyState:4,onSort:5,onTransform:6,onContextMenu:7,onUndo:8,onRedo:9,onRenderMenu:10}),i}return br(e,Cr),pr(e)}();function Ire(t,e,n){var i=t.slice();return i[9]=e[n],i}function r$e(t){var e,n,i=t[9].component,r=Ore(t);return{c:function(){r.c(),e=ho()},m:function(s,a){r.m(s,a),Ht(s,e,a),n=!0},p:function(s,a){1&a&&gs(i,i=s[9].component)?(si(),je(r,1,1,hi),oi(),(r=Ore(s)).c(),Me(r,1),r.m(e.parentNode,e)):r.p(s,a)},i:function(s){n||(Me(r),n=!0)},o:function(s){je(r),n=!1},d:function(s){s&&At(e),r.d(s)}}}function s$e(t){var e,n=t[9].action,i=Hre(t);return{c:function(){i.c(),e=ho()},m:function(r,s){i.m(r,s),Ht(r,e,s)},p:function(r,s){1&s&&gs(n,n=r[9].action)?(i.d(1),(i=Hre(r)).c(),i.m(e.parentNode,e)):i.p(r,s)},i:hi,o:hi,d:function(r){r&&At(e),i.d(r)}}}function Ore(t){var e,n,i,r=[t[9].props],s=t[9].component;function a(u,d){for(var m={},_=0;_0){for(var re=[$],se=Ls(W);se.length>0&&!te(z,se);)re.unshift({op:"add",path:de(se),value:{}}),se=Ls(se);return re}}return $})),S);var D,z}return t.$$set=function(x){"path"in x&&n(1,s=x.path),"value"in x&&n(2,a=x.value),"context"in x&&n(3,u=x.context),"enforceString"in x&&n(4,d=x.enforceString),"selection"in x&&n(5,m=x.selection),"searchResultItems"in x&&n(6,_=x.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&n(7,i=!u.readOnly&&po(m)&&C2(m)),254&t.$$.dirty&&n(0,r=u.onRenderValue({path:s,value:a,readOnly:u.readOnly,enforceString:d,isEditing:i,parser:u.parser,normalization:u.normalization,selection:m,searchResultItems:_,onPatch:y,onPasteJson:u.onPasteJson,onSelect:u.onSelect,onFind:u.onFind,findNextInside:u.findNextInside,focus:u.focus}))},[r,s,a,u,d,m,_,i]}var c$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,a$e,o$e,gs,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),i}return br(e,Cr),pr(e)}();function l$e(t){as(t,"svelte-1dhomzn",'.jse-inline-value.svelte-1dhomzn{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);line-height:var(--jse-line-height, calc(1em + 4px));border:none;padding:0 calc(0.5 * var(--jse-padding, 10px));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-1dhomzn:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-inline-value.jse-selected.svelte-1dhomzn{background:var(--jse-selection-background-color, #d3d3d3)}.jse-inline-value.jse-highlight.svelte-1dhomzn{background-color:var(--jse-search-match-color, #ffe665);outline:var(--jse-search-match-outline, 1px solid #ffd700)}.jse-inline-value.jse-highlight.jse-active.svelte-1dhomzn{background-color:var(--jse-search-match-active-color, #ffd700);outline:var(--jse-search-match-active-outline, 1px solid #e1be00)}')}function u$e(t){var e,n,i,r,s,a=T0(null!==(e=t[2].stringify(t[1]))&&void 0!==e?e:"",50)+"";return{c:function(){n=pt("button"),i=Ii(a),ce(n,"type","button"),ce(n,"class","jse-inline-value svelte-1dhomzn"),$n(n,"jse-selected",t[3]),$n(n,"jse-highlight",t[4]),$n(n,"jse-active",t[5])},m:function(u,d){Ht(u,n,d),Ge(n,i),r||(s=ei(n,"dblclick",t[7]),r=!0)},p:function(u,d){var m,_=ds(d,1)[0];6&_&&a!==(a=T0(null!==(m=u[2].stringify(u[1]))&&void 0!==m?m:"",50)+"")&&Ir(i,a),8&_&&$n(n,"jse-selected",u[3]),16&_&&$n(n,"jse-highlight",u[4]),32&_&&$n(n,"jse-active",u[5])},i:hi,o:hi,d:function(u){u&&At(n),r=!1,s()}}}function d$e(t,e,n){var i=e.path,r=e.value,s=e.parser,a=e.isSelected,u=e.containsSearchResult,d=e.containsActiveSearchResult,m=e.onEdit;return t.$$set=function(_){"path"in _&&n(0,i=_.path),"value"in _&&n(1,r=_.value),"parser"in _&&n(2,s=_.parser),"isSelected"in _&&n(3,a=_.isSelected),"containsSearchResult"in _&&n(4,u=_.containsSearchResult),"containsActiveSearchResult"in _&&n(5,d=_.containsActiveSearchResult),"onEdit"in _&&n(6,m=_.onEdit)},[i,r,s,a,u,d,m,function(){return m(i)}]}var f$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,d$e,u$e,gs,{path:0,value:1,parser:2,isSelected:3,containsSearchResult:4,containsActiveSearchResult:5,onEdit:6},l$e),i}return br(e,Cr),pr(e)}();function h$e(t){as(t,"svelte-2v0aqj",".jse-column-header.svelte-2v0aqj.svelte-2v0aqj{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-2v0aqj.svelte-2v0aqj:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-2v0aqj.svelte-2v0aqj:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-2v0aqj span.jse-column-sort-icon.svelte-2v0aqj{height:1em}")}function zre(t){var e,n,i,r;return n=new Co({props:{data:t[1]===Rd.asc?Uu:sI}}),{c:function(){e=pt("span"),Nn(n.$$.fragment),ce(e,"class","jse-column-sort-icon svelte-2v0aqj"),ce(e,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(s,a){Ht(s,e,a),zn(n,e,null),r=!0},p:function(s,a){var u={};2&a&&(u.data=s[1]===Rd.asc?Uu:sI),n.$set(u),(!r||4&a&&i!==(i="Currently sorted in ".concat(s[2]," order")))&&ce(e,"title",i)},i:function(s){r||(Me(n.$$.fragment,s),r=!0)},o:function(s){je(n.$$.fragment,s),r=!1},d:function(s){s&&At(e),Rn(n)}}}function p$e(t){var e,n,i,r,s,a,u,d,m=T0(t[3],50)+"",_=void 0!==t[1]&&zre(t);return{c:function(){e=pt("button"),n=pt("span"),i=Ii(m),r=gn(),_&&_.c(),ce(n,"class","jse-column-name"),ce(e,"type","button"),ce(e,"class","jse-column-header svelte-2v0aqj"),ce(e,"title",s=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),$n(e,"jse-readonly",t[0])},m:function(y,x){Ht(y,e,x),Ge(e,n),Ge(n,i),Ge(e,r),_&&_.m(e,null),a=!0,u||(d=ei(e,"click",t[4]),u=!0)},p:function(y,x){var S=ds(x,1)[0];(!a||8&S)&&m!==(m=T0(y[3],50)+"")&&Ir(i,m),void 0!==y[1]?_?(_.p(y,S),2&S&&Me(_,1)):((_=zre(y)).c(),Me(_,1),_.m(e,null)):_&&(si(),je(_,1,1,function(){_=null}),oi()),(!a||9&S&&s!==(s=y[0]?y[3]:y[3]+" (Click to sort the data by this column)"))&&ce(e,"title",s),(!a||1&S)&&$n(e,"jse-readonly",y[0])},i:function(y){a||(Me(_),a=!0)},o:function(y){je(_),a=!1},d:function(y){y&&At(e),_&&_.d(),u=!1,d()}}}function m$e(t,e,n){var i,r,s,a=e.path,u=e.sortedColumn,d=e.readOnly,m=e.onSort;return t.$$set=function(_){"path"in _&&n(5,a=_.path),"sortedColumn"in _&&n(6,u=_.sortedColumn),"readOnly"in _&&n(0,d=_.readOnly),"onSort"in _&&n(7,m=_.onSort)},t.$$.update=function(){var _;32&t.$$.dirty&&n(3,i=Zs(a)?"values":yu(a)),96&t.$$.dirty&&n(1,r=u&&zs(a,null===(_=u)||void 0===_?void 0:_.path)?u.sortDirection:void 0),2&t.$$.dirty&&n(2,s=r?Mze[r]:void 0)},[d,r,s,i,function(){d||m({path:a,sortDirection:r===Rd.asc?Rd.desc:Rd.asc})},a,u,m]}var lE,uE,g$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,m$e,p$e,gs,{path:5,sortedColumn:6,readOnly:0,onSort:7},h$e),i}return br(e,Cr),pr(e)}();function Rre(t,e){return lE||(uE=new WeakMap,lE=new ResizeObserver(function(n){var i,r=Pp(n);try{for(r.s();!(i=r.n()).done;){var s=i.value,a=uE.get(s.target);a&&a(s.target)}}catch(u){r.e(u)}finally{r.f()}})),uE.set(t,e),lE.observe(t),{destroy:function(){uE.delete(t),lE.unobserve(t)}}}function v$e(t){as(t,"svelte-fxr3ye",'.jse-table-mode-welcome.svelte-fxr3ye.svelte-fxr3ye{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode-welcome.svelte-fxr3ye.svelte-fxr3ye:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode-welcome.svelte-fxr3ye .jse-space.jse-before.svelte-fxr3ye{flex:1}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays.svelte-fxr3ye{display:flex;flex-direction:column;gap:var(--jse-padding, 10px);max-width:300px;margin:2em var(--jse-padding, 10px);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays .jse-nested-arrays-info.svelte-fxr3ye{color:var(--jse-panel-color-readonly, #b2b2b2)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-fxr3ye{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-fxr3ye .jse-space.jse-after.svelte-fxr3ye{flex:2}')}function Nre(t,e,n){var i=t.slice();i[16]=e[n];var r=i[9](i[16]);return i[17]=r,i}function _$e(t){var e,n;return{c:function(){e=Ii(t[7]),n=Ii(" cannot be opened in table mode.")},m:function(i,r){Ht(i,e,r),Ht(i,n,r)},p:function(i,r){128&r&&Ir(e,i[7])},d:function(i){i&&(At(e),At(n))}}}function b$e(t){var e;return{c:function(){e=Ii("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(n,i){Ht(n,e,i)},p:hi,d:function(n){n&&At(e)}}}function y$e(t){var e;return{c:function(){e=Ii("You can open the document in tree mode instead.")},m:function(n,i){Ht(n,e,i)},d:function(n){n&&At(e)}}}function C$e(t){var e,n,i;return{c:function(){e=Ii("You can open the document in tree mode instead, or paste a JSON Array using "),(n=pt("b")).textContent="Ctrl+V",i=Ii(".")},m:function(r,s){Ht(r,e,s),Ht(r,n,s),Ht(r,i,s)},d:function(r){r&&(At(e),At(n),At(i))}}}function Pre(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D=yu(t[16])+"",z=t[17]+"",$=1!==t[17]?"items":"item";function W(){return t[13](t[16])}return{c:function(){e=pt("button"),n=Ii(t[8]),i=Ii(' "'),r=Ii(D),s=Ii('"\n '),a=pt("span"),u=Ii("("),d=Ii(z),m=gn(),_=Ii($),y=Ii(")"),ce(a,"class","jse-nested-array-count svelte-fxr3ye"),ce(e,"type","button"),ce(e,"class","jse-nested-array-action svelte-fxr3ye")},m:function(re,se){Ht(re,e,se),Ge(e,n),Ge(e,i),Ge(e,r),Ge(e,s),Ge(e,a),Ge(a,u),Ge(a,d),Ge(a,m),Ge(a,_),Ge(a,y),x||(S=ei(e,"click",W),x=!0)},p:function(re,se){t=re,256&se&&Ir(n,t[8]),16&se&&D!==(D=yu(t[16])+"")&&Ir(r,D),16&se&&z!==(z=t[17]+"")&&Ir(d,z),16&se&&$!==($=1!==t[17]?"items":"item")&&Ir(_,$)},d:function(re){re&&At(e),x=!1,S()}}}function x$e(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re;function se(wt,Dt){return wt[6]?b$e:_$e}var ke=se(t),ye=ke(t);function Ke(wt,Dt){return wt[5]&&!wt[0]?C$e:y$e}for(var lt=Ke(t),Vt=lt(t),Nt=cs(t[4]),kt=[],qt=0;qt1&&void 0!==arguments[1]?arguments[1]:2,W=[];return function re(se,ke){he(se)&&ke.length<$&&Object.keys(se).forEach(function(ye){re(se[ye],ke.concat(ye))}),Be(se)&&W.push(ke)}(z,[]),W}(m).slice(0,99).filter(function(z){return z.length>0}):[]),16&t.$$.dirty&&n(6,r=!Zs(u)),3072&t.$$.dirty&&n(5,s=void 0===m&&(""===d||void 0===d)),6240&t.$$.dirty&&n(7,a=r?"Object with nested arrays":s?"An empty document":he(m)?"An object":Be(m)?"An empty array":"A ".concat(wL(m,y)))},[_,x,S,D,u,s,r,a,i,function(z){return nt(m,z).length},d,m,y,function(z){return x(z)},function(){return S(A1.tree)},function(){return D()}]}var M$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,w$e,x$e,gs,{text:10,json:11,readOnly:0,parser:12,openJSONEditorModal:1,onChangeMode:2,onClick:3},v$e),i}return br(e,Cr),pr(e)}();function S$e(t){as(t,"svelte-1nml1r3",".jse-column-header.svelte-1nml1r3{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-1nml1r3:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-1nml1r3:not(.jse-column-header.jse-readonly){cursor:pointer}")}function k$e(t){var e,n,i,r,s,a;return n=new Co({props:{data:jI}}),{c:function(){e=pt("button"),Nn(n.$$.fragment),ce(e,"type","button"),ce(e,"class","jse-column-header svelte-1nml1r3"),ce(e,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(u,d){Ht(u,e,d),zn(n,e,null),r=!0,s||(a=ei(e,"click",t[3]),s=!0)},p:function(u,d){var m=ds(d,1)[0];(!r||3&m&&i!==(i="The Columns are created by sampling ".concat(u[1]," items out of ").concat(u[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&ce(e,"title",i)},i:function(u){r||(Me(n.$$.fragment,u),r=!0)},o:function(u){je(n.$$.fragment,u),r=!1},d:function(u){u&&At(e),Rn(n),s=!1,a()}}}function E$e(t,e,n){var i=e.count,r=e.maxSampleCount,s=e.onRefresh;return t.$$set=function(a){"count"in a&&n(0,i=a.count),"maxSampleCount"in a&&n(1,r=a.maxSampleCount),"onRefresh"in a&&n(2,s=a.onRefresh)},[i,r,s,function(){return s()}]}var D$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,E$e,k$e,gs,{count:0,maxSampleCount:1,onRefresh:2},S$e),i}return br(e,Cr),pr(e)}();function T$e(t){as(t,"svelte-12ygzbc",'.jse-table-mode.svelte-12ygzbc.svelte-12ygzbc{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color, #fff);min-width:0;min-height:0;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-text-color, #4d4d4d);line-height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.no-main-menu.svelte-12ygzbc.svelte-12ygzbc{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-search-box-container.svelte-12ygzbc{position:relative;height:0;top:calc(var(--jse-line-height, calc(1em + 4px)) + 2 * var(--jse-padding, 10px));margin-right:calc(var(--jse-padding, 10px) + 20px);margin-left:var(--jse-padding, 10px);text-align:right;z-index:3}.jse-table-mode.svelte-12ygzbc .jse-hidden-input-label.svelte-12ygzbc{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-12ygzbc .jse-hidden-input-label .jse-hidden-input.svelte-12ygzbc{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-12ygzbc .jse-contents.svelte-12ygzbc{flex:1;align-items:flex-start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;scrollbar-gutter:stable;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-contents.svelte-12ygzbc:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main.svelte-12ygzbc{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-12ygzbc,.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-12ygzbc{margin:0;padding:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-12ygzbc{padding-bottom:var(--jse-padding, 10px)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row.svelte-12ygzbc:hover{background-color:var(--jse-table-row-odd-background, rgba(0, 0, 0, 0.05))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-12ygzbc{padding:0 var(--jse-padding, 10px) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-12ygzbc,.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-12ygzbc{font-weight:normal;text-align:left;color:var(--jse-text-readonly, #8d8d8d);background:var(--jse-table-header-background, #f5f5f5)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-12ygzbc{padding:0;position:sticky;top:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-12ygzbc{padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-12ygzbc{padding:0 var(--jse-padding, 10px) 0 calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-12ygzbc>.jse-value{background:var(--jse-selection-background-color, #d3d3d3)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-12ygzbc div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-12ygzbc{display:inline-flex;position:relative;vertical-align:top}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading.svelte-12ygzbc{align-items:unset}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading .jse-loading-space.svelte-12ygzbc{flex:1}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading .jse-loading.svelte-12ygzbc{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}')}function jre(t,e,n){var i,r,s,a=t.slice();a[132]=e[n],a[138]=n,a[133]=a[27].startIndex+a[138],a[134]=a[26].rows[a[133]];var m=hz([String(a[133])],null===(i=a[134])||void 0===i?void 0:i.row);a[135]=m;var _=null!==(r=a[20])&&void 0!==r&&r.itemsMap?Fd(null===(s=a[20])||void 0===s?void 0:s.itemsMap,Fe(a[133])):void 0;return a[136]=_,a}function Fre(t,e,n){var i,r=t.slice();r[139]=e[n],r[146]=n;var s=[String(r[133])].concat(r[139]);r[140]=s;var a=de(r[140]);r[141]=a;var u=nt(r[132],r[139]);r[142]=u;var d=po(r[12].selection)&&I0(r[12].selection.path,r[140]);r[143]=d;var m=null===(i=r[134])||void 0===i?void 0:i.columns[r[146]];r[144]=m;var _=hz(r[140],r[144]);return r[135]=_,r}function Bre(t,e,n){var i=t.slice();return i[139]=e[n],i}function wz(t){var e,n=t.slice(),i=hz([],null===(e=n[26])||void 0===e?void 0:e.root);return n[135]=i,n}function $re(t){var e,n,i;function r(a){t[79](a)}var s={containsValidArray:t[22],readOnly:t[0],historyState:t[24],onSort:t[47],onTransform:t[48],onUndo:t[49],onRedo:t[50],onContextMenu:t[39],onRenderMenu:t[5]};return void 0!==t[9]&&(s.showSearch=t[9]),e=new i$e({props:s}),Vs.push(function(){return J2(e,"showSearch",r)}),{c:function(){Nn(e.$$.fragment)},m:function(a,u){zn(e,a,u),i=!0},p:function(a,u){var d={};4194304&u[0]&&(d.containsValidArray=a[22]),1&u[0]&&(d.readOnly=a[0]),16777216&u[0]&&(d.historyState=a[24]),32&u[0]&&(d.onRenderMenu=a[5]),!n&&512&u[0]&&(n=!0,d.showSearch=a[9],Q2(function(){return n=!1})),e.$set(d)},i:function(a){i||(Me(e.$$.fragment,a),i=!0)},o:function(a){je(e.$$.fragment,a),i=!1},d:function(a){Rn(e,a)}}}function V$e(t){var e;return{c:function(){(e=pt("div")).innerHTML='
loading...
',ce(e,"class","jse-contents jse-contents-loading svelte-12ygzbc")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function A$e(t){var e,n,i,r,s,a,u,d,m,_=[H$e,O$e,I$e],y=[];function x(S,D){return S[22]?0:S[18]&&void 0!==S[17]&&""!==S[17]?1:2}return r=x(t),s=y[r]=_[r](t),{c:function(){e=pt("label"),n=pt("input"),i=gn(),s.c(),a=ho(),ce(n,"type","text"),n.readOnly=!0,ce(n,"tabindex","-1"),ce(n,"class","jse-hidden-input svelte-12ygzbc"),ce(e,"class","jse-hidden-input-label svelte-12ygzbc")},m:function(S,D){Ht(S,e,D),Ge(e,n),t[80](n),Ht(S,i,D),y[r].m(S,D),Ht(S,a,D),u=!0,d||(m=ei(n,"paste",t[44]),d=!0)},p:function(S,D){var z=r;(r=x(S))===z?y[r].p(S,D):(si(),je(y[z],1,1,function(){y[z]=null}),oi(),(s=y[r])?s.p(S,D):(s=y[r]=_[r](S)).c(),Me(s,1),s.m(a.parentNode,a))},i:function(S){u||(Me(s),u=!0)},o:function(S){je(s),u=!1},d:function(S){S&&(At(e),At(i),At(a)),t[80](null),y[r].d(S),d=!1,m()}}}function I$e(t){var e,n;return e=new M$e({props:{text:t[17],json:t[8],readOnly:t[0],parser:t[2],openJSONEditorModal:t[46],onChangeMode:t[4],onClick:t[84]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};131072&r[0]&&(s.text=i[17]),256&r[0]&&(s.json=i[8]),1&r[0]&&(s.readOnly=i[0]),4&r[0]&&(s.parser=i[2]),16&r[0]&&(s.onChangeMode=i[4]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function O$e(t){var e,n,i,r;return e=new w4({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:m0,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:t[42]}]}}),i=new Qie({props:{text:t[17],json:t[8],indentation:t[3],parser:t[2]}}),{c:function(){Nn(e.$$.fragment),n=gn(),Nn(i.$$.fragment)},m:function(s,a){zn(e,s,a),Ht(s,n,a),zn(i,s,a),r=!0},p:function(s,a){var u={};1&a[0]&&(u.actions=s[0]?[]:[{icon:m0,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:s[42]}]),e.$set(u);var d={};131072&a[0]&&(d.text=s[17]),256&a[0]&&(d.json=s[8]),8&a[0]&&(d.indentation=s[3]),4&a[0]&&(d.parser=s[2]),i.$set(d)},i:function(s){r||(Me(e.$$.fragment,s),Me(i.$$.fragment,s),r=!0)},o:function(s){je(e.$$.fragment,s),je(i.$$.fragment,s),r=!1},d:function(s){s&&At(n),Rn(e,s),Rn(i,s)}}}function H$e(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,kt,qt,wt=!Zs(null===(e=t[26])||void 0===e?void 0:e.root);i=new Bie({props:{json:t[8],documentState:t[12],parser:t[2],showSearch:t[9],showReplace:t[21],readOnly:t[0],columns:t[11],onSearch:t[30],onFocus:t[31],onPatch:t[34],onClose:t[32]}});for(var Dt=wt&&Ure(wz(t)),ut=cs(t[11]),Ut=[],$t=0;$t"u";a("isSSR:",D);var z,$,W,re,se,ke,ye=e.readOnly,Ke=e.externalContent,lt=e.externalSelection,Vt=e.mainMenuBar,Nt=e.escapeControlCharacters,kt=e.escapeUnicodeCharacters,qt=e.flattenColumns,wt=e.parser,Dt=e.parseMemoizeOne,ut=e.validator,Ut=e.validationParser,$t=e.indentation,Lt=e.onChange,et=e.onChangeMode,st=e.onSelect,gt=e.onRenderValue,sn=e.onRenderMenu,Hn=e.onRenderContextMenu,on=e.onFocus,Xt=e.onBlur,An=e.onSortModal,_n=e.onTransformModal,Zt=e.onJSONEditorModal;sz({onMount:Hd,onDestroy:Zu,getWindow:function(){return c7($)},hasFocus:function(){return Yr&&document.hasFocus()||TL($)},onFocus:function(){on&&on()},onBlur:function(){Xt&&Xt()}});var wi,zi,Zn=void 0,En=!1,Nr=!1;function Pr(){return(Pr=es(gi().mark(function Et(Ln){return gi().wrap(function(Hi){for(;;)switch(Hi.prev=Hi.next){case 0:return n(12,Mi=yn(yn({},Mi),{},{selection:null})),Hi.next=3,Gc(Ln);case 3:case"end":return Hi.stop()}},Et)}))).apply(this,arguments)}var va,Qo=1e4,fn=[],Yr=!1,sa={},oa=600,Jo=0;function qi(Et){a("updateSelection",Et);var Ln="function"==typeof Et?Et(Mi.selection)||null:Et;zs(Ln,Mi.selection)||(n(12,Mi=yn(yn({},Mi),{},{selection:Ln})),st(Ln))}function $s(Et){Mi.selection&&void 0!==Et&&(te(Et,qp(Mi.selection))&&te(Et,mr(Mi.selection))||(a("clearing selection: path does not exist anymore",Mi.selection),n(12,Mi=yn(yn({},Mi),{},{selection:null}))))}var tc,Mi=zk(),Or=!1,xa=xne({onChange:function(Et){n(24,I1=Et)}}),I1=xa.getState();function s1(Et){var Ln=Et.previousJson,Hi=Et.previousState,Bi=Et.previousText,Xi=Et.previousTextIsRepaired;void 0===Ln&&void 0===Bi||(void 0!==se?xa.add(void 0!==Ln?{undo:{patch:[{op:"replace",path:"",value:Ln}],state:b2(Hi),json:void 0,text:Bi,textIsRepaired:Xi},redo:{patch:[{op:"replace",path:"",value:se}],state:b2(Mi),json:void 0,text:ke,textIsRepaired:Or}}:{undo:{patch:void 0,json:void 0,text:Bi,state:b2(Hi),textIsRepaired:Xi},redo:{patch:void 0,json:se,state:b2(Mi),text:ke,textIsRepaired:Or}}):void 0!==Ln&&xa.add({undo:{patch:void 0,json:Ln,state:b2(Hi),text:Bi,textIsRepaired:Xi},redo:{patch:void 0,json:void 0,text:ke,textIsRepaired:Or,state:b2(Mi)}}))}var fl=[],Ho=b_(wne);function Ul(Et,Ln,Hi,Bi){_7(function(){var Xi;try{Xi=Ho(Et,Ln,Hi,Bi)}catch(Us){Xi=[{path:[],message:"Failed to validate: "+Us.message,severity:zd.warning}]}zs(Xi,fl)||(a("validationErrors changed:",Xi),n(13,fl=Xi))},function(Xi){return a("validationErrors updated in ".concat(Xi," ms"))})}function fc(){return a("validate"),Zn?{parseError:Zn,isRepairable:!1}:(Ul(se,ut,wt,Ut),Zs(fl)?null:{validationErrors:fl})}function Tl(Et,Ln){if(a("patch",Et,Ln),void 0===se)throw new Error("Cannot apply patch: no JSON");var Hi=se,Bi=Mi,Xi=Or,Us=gte(se,Et),Lo=Jee(se,Mi,Et).json,aa=function VFe(t,e,n){return e.some(function(i){return function(r,s,a){if(!r)return!1;if("replace"===s.op){var u=Bd(tt(s.path),a),d=u.rowIndex,m=u.columnIndex,_=a.findIndex(function(y){return zs(y,r.path)});if(-1!==d&&-1!==m&&m!==_)return!1}return!0}(t.sortedColumn,i,n)})?yn(yn({},t),{},{sortedColumn:null}):t}(Mi,Et,fn),ct="function"==typeof Ln?Ln(Lo,aa):void 0;n(8,se=ct&&void 0!==ct.json?ct.json:Lo);var mn=ct&&void 0!==ct.state?ct.state:aa;return n(12,Mi=mn),n(17,ke=void 0),n(23,Or=!1),n(19,wi=void 0),n(18,Zn=void 0),xa.add({undo:{patch:Us,json:void 0,text:void 0,state:b2(Bi),textIsRepaired:Xi},redo:{patch:Et,json:void 0,state:b2(mn),text:void 0,textIsRepaired:Or}}),{json:se,previousJson:Hi,undo:Us,redo:Et}}function Oa(Et,Ln){a("handlePatch",Et,Ln);var Hi={json:se,text:ke},Bi=Tl(Et,Ln);return Gl(Hi,Bi),Bi}function Gl(Et,Ln){(void 0!==Et.json||void 0!==Et?.text)&&Lt&&(void 0!==ke?Lt({text:ke,json:void 0},Et,{contentErrors:fc(),patchResult:Ln}):void 0!==se&&Lt({text:void 0,json:se},Et,{contentErrors:fc(),patchResult:Ln}))}function Z2(Et){a("handleFind",Et)}function O1(Et){a("pasted json as text",Et),n(19,wi=Et)}function Wl(Et){var Ln=parseInt(Et[0],10),Hi=[String(Ln+1)].concat(Ts(Et.slice(1)));return te(se,Hi)?Bs(Hi,!1):Bs(Et,!1)}function bs(){a("focus"),re&&(re.focus(),re.select())}function Jc(){Mi.selection||qi(!Be(se)||Zs(se)||Zs(fn)?null:Bs(["0"].concat(Ts(fn[0])),!1))}function Gc(Et){var Ln=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Hi=En?100:0,Bi=Gie(Et,fn,sa,18),Xi=Bi-Jo+Hi+18,Us=a1(Et);if(a("scrollTo",{path:Et,top:Bi,scrollTop:Jo,elem:Us}),!W)return Promise.resolve();var Lo=W.getBoundingClientRect();if(Us&&!Ln){var aa=Us.getBoundingClientRect();if(aa.bottom>Lo.top&&aa.topHi.right&&n(15,W.scrollLeft+=Bi.right-Hi.right,W),Bi.leftaa&&n(15,W.scrollTop+=Xi-aa,W),Bi0&&void 0!==Hi[0])||Hi[0],void 0!==se){Bi.next=3;break}return Bi.abrupt("return");case 3:return Bi.next=5,qie({json:se,documentState:Mi,indentation:Ln?$t:void 0,parser:wt});case 5:case"end":return Bi.stop()}},Et)})),wa.apply(this,arguments)}function ys(){Kie({json:se,text:ke,documentState:Mi,keepSelection:!0,readOnly:ye,onChange:Lt,onPatch:Oa})}function Bh(){!function AFe(t){var e=t.json,n=t.documentState,i=t.columns,s=t.onPatch;if(!t.readOnly&&void 0!==e&&n.selection&&p7(n.selection)){var a=Bd(mr(n.selection),i),u=a.rowIndex,d=a.columnIndex;x2("duplicate row",{rowIndex:u});var m=[String(u)];s(hte(e,[m]),function(_,y){var x=Bs(Zp({rowIndex:u0?u-1:void 0,x=void 0!==y?Bs(Zp({rowIndex:y,columnIndex:d},i),!1):null;return x2("remove row new selection",{rowIndex:u,newRowIndex:y,newSelection:x}),{state:yn(yn({},_),{},{selection:x})}})}}({json:se,documentState:Mi,columns:fn,readOnly:ye,onPatch:Oa})}function N0(){return(N0=es(gi().mark(function Et(Ln){return gi().wrap(function(Hi){for(;;)switch(Hi.prev=Hi.next){case 0:return Hi.next=2,Yie({char:Ln,selectInside:!1,refJsonEditor:$,json:se,selection:Mi.selection,readOnly:ye,parser:wt,onPatch:Oa,onReplaceJson:P0,onSelect:qi});case 2:case"end":return Hi.stop()}},Et)}))).apply(this,arguments)}function P0(Et,Ln){var Hi=Mi,Bi=se,Xi=ke,Us={json:se,text:ke},Lo=Or,aa=Nd(se,Mi,[],T3),ct="function"==typeof Ln?Ln(Et,aa):void 0;n(8,se=ct&&void 0!==ct.json?ct.json:Et),n(12,Mi=ct&&void 0!==ct.state?ct.state:aa),n(17,ke=void 0),n(23,Or=!1),n(18,Zn=void 0),$s(se),s1({previousJson:Bi,previousState:Hi,previousText:Xi,previousTextIsRepaired:Lo}),Gl(Us,null)}function j0(Et,Ln){a("handleChangeText");var Hi=Mi,Bi=se,Xi=ke,Us={json:se,text:ke},Lo=Or;try{n(8,se=Dt(Et)),n(12,Mi=Nd(se,Mi,[],T3)),n(17,ke=void 0),n(23,Or=!1),n(18,Zn=void 0)}catch(ct){try{n(8,se=Dt(na(Et))),n(12,Mi=Nd(se,Mi,[],T3)),n(17,ke=Et),n(23,Or=!0),n(18,Zn=void 0)}catch{n(8,se=void 0),n(12,Mi=zk({json:se,expand:T3})),n(17,ke=Et),n(23,Or=!1),n(18,Zn=""!==ke?o7(ke,ct.message||String(ct)):void 0)}}if("function"==typeof Ln){var aa=Ln(se,Mi);n(8,se=aa&&aa.json?aa.json:se),n(12,Mi=aa&&aa.state?aa.state:Mi)}$s(se),s1({previousJson:Bi,previousState:Hi,previousText:Xi,previousTextIsRepaired:Lo}),Gl(Us,null)}function td(Et){if(void 0!==se){var Hi=Et.onTransform,Bi=Et.onClose,Xi=Et.rootPath||[];Yr=!0,_n({id:Et.id||S,json:se,rootPath:Xi||[],onTransform:function(Us){Hi?Hi({operations:Us,json:se,transformedJson:xe(se,Us)}):(a("onTransform",Xi,Us),Oa(Us))},onClose:function(){Yr=!1,bs(),Bi&&Bi()}})}}function Vl(Et){a("openJSONEditorModal",{path:Et}),Yr=!0,Zt({content:{json:nt(se,Et)},path:Et,onPatch:tc.onPatch,onClose:function(){Yr=!1,bs()}})}function F0(Et,Ln){u(Gne,{text:Et,onParse:function(Hi){return Ik(Hi,function(Bi){return mb(Bi,wt)})},onRepair:xee,onApply:Ln},yn(yn({},Up),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return bs()}})}function em(Et){a("openFind",{findAndReplace:Et}),n(9,En=!1),n(21,Nr=!1),El().then(function(){n(9,En=!0),n(21,Nr=Et)})}function I3(){if(!ye&&xa.getState().canUndo){var Et=xa.undo();if(Et){var Ln={json:se,text:ke};n(8,se=Et.undo.patch?xe(se,Et.undo.patch):Et.undo.json),n(12,Mi=Et.undo.state),n(17,ke=Et.undo.text),n(23,Or=Et.undo.textIsRepaired),n(18,Zn=void 0),a("undo",{item:Et,json:se}),Gl(Ln,Et.undo.patch&&Et.redo.patch?{json:se,previousJson:Ln.json,redo:Et.undo.patch,undo:Et.redo.patch}:null),bs(),Mi.selection&&Gc(mr(Mi.selection),!1)}}}function B0(){if(!ye&&xa.getState().canRedo){var Et=xa.redo();if(Et){var Ln={json:se,text:ke};n(8,se=Et.redo.patch?xe(se,Et.redo.patch):Et.redo.json),n(12,Mi=Et.redo.state),n(17,ke=Et.redo.text),n(23,Or=Et.redo.textIsRepaired),n(18,Zn=void 0),a("redo",{item:Et,json:se}),Gl(Ln,Et.undo.patch&&Et.redo.patch?{json:se,previousJson:Ln.json,redo:Et.redo.patch,undo:Et.undo.patch}:null),bs(),Mi.selection&&Gc(mr(Mi.selection),!1)}}}function $h(Et,Ln){n(76,sa[Ln]=Et.getBoundingClientRect().height,sa)}return t.$$set=function(Et){"readOnly"in Et&&n(0,ye=Et.readOnly),"externalContent"in Et&&n(53,Ke=Et.externalContent),"externalSelection"in Et&&n(54,lt=Et.externalSelection),"mainMenuBar"in Et&&n(1,Vt=Et.mainMenuBar),"escapeControlCharacters"in Et&&n(55,Nt=Et.escapeControlCharacters),"escapeUnicodeCharacters"in Et&&n(56,kt=Et.escapeUnicodeCharacters),"flattenColumns"in Et&&n(57,qt=Et.flattenColumns),"parser"in Et&&n(2,wt=Et.parser),"parseMemoizeOne"in Et&&n(58,Dt=Et.parseMemoizeOne),"validator"in Et&&n(59,ut=Et.validator),"validationParser"in Et&&n(60,Ut=Et.validationParser),"indentation"in Et&&n(3,$t=Et.indentation),"onChange"in Et&&n(61,Lt=Et.onChange),"onChangeMode"in Et&&n(4,et=Et.onChangeMode),"onSelect"in Et&&n(62,st=Et.onSelect),"onRenderValue"in Et&&n(63,gt=Et.onRenderValue),"onRenderMenu"in Et&&n(5,sn=Et.onRenderMenu),"onRenderContextMenu"in Et&&n(64,Hn=Et.onRenderContextMenu),"onFocus"in Et&&n(65,on=Et.onFocus),"onBlur"in Et&&n(66,Xt=Et.onBlur),"onSortModal"in Et&&n(67,An=Et.onSortModal),"onTransformModal"in Et&&n(68,_n=Et.onTransformModal),"onJSONEditorModal"in Et&&n(69,Zt=Et.onJSONEditorModal)},t.$$.update=function(){50331648&t.$$.dirty[1]&&n(75,z=EL({escapeControlCharacters:Nt,escapeUnicodeCharacters:kt})),512&t.$$.dirty[0]&&(W&&W.scrollTo({top:n(15,W.scrollTop+=En?100:-100,W),left:W.scrollLeft})),4194304&t.$$.dirty[1]&&function r1(Et){var Ln=se,Hi=a7(Et)?Et.text!==ke:!zs(Ln,Et.json);if(a("update external content",{isChanged:Hi}),Hi){var Bi=se,Xi=Mi,Us=ke,Lo=Or;if(a7(Et))try{n(8,se=Dt(Et.text)),n(17,ke=Et.text),n(23,Or=!1),n(18,Zn=void 0)}catch(aa){try{n(8,se=Dt(na(Et.text))),n(17,ke=Et.text),n(23,Or=!0),n(18,Zn=void 0)}catch{n(8,se=void 0),n(17,ke=Et.text),n(23,Or=!1),n(18,Zn=""!==ke?o7(ke,aa.message||String(aa)):void 0)}}else n(8,se=Et.json),n(17,ke=void 0),n(23,Or=!1),n(18,Zn=void 0);$s(se),Mi.sortedColumn&&n(12,Mi=yn(yn({},Mi),{},{sortedColumn:null})),s1({previousJson:Bi,previousState:Xi,previousText:Us,previousTextIsRepaired:Lo})}}(Ke),8388608&t.$$.dirty[1]&&function(Et){zs(Mi.selection,Et)||(a("applyExternalSelection",Et),($L(Et)||null===Et)&&qi(Et))}(lt),3328&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(11,fn=Be(se)?function(Et,Ln){var Hi,Bi=new Set(Ln.map(de)),Xi=new Set(Et.map(de)),Us=Pp(Bi);try{for(Us.s();!(Hi=Us.n()).done;){var Lo=Hi.value;Xi.has(Lo)||Bi.delete(Lo)}}catch(Fn){Us.e(Fn)}finally{Us.f()}var aa,ct=Pp(Xi);try{for(ct.s();!(aa=ct.n()).done;){var mn=aa.value;Bi.has(mn)||Bi.add(mn)}}catch(Fn){ct.e(Fn)}finally{ct.f()}return Ts(Bi).map(tt)}(kFe(se,qt,Qo),fn):[]),2304&t.$$.dirty[0]&&n(22,va=!(!se||Zs(fn))),1280&t.$$.dirty[0]&&n(28,i=Array.isArray(se)&&se.length>Qo),768&t.$$.dirty[0]|114688&t.$$.dirty[2]&&n(27,r=function EFe(t,e,n,i,r,s){for(var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:80,u=Be(n)?n.length:0,d=function(re,se){var ke=Object.values(re);return Zs(ke)?se:ke.reduce(function(Ke,lt){return Ke+lt})/ke.length}(i,r),m=t-a,_=e+2*a,y=function(re){return i[re]||r},x=0,S=s;S0&&(S-=y(--x));for(var D=x,z=0;z<_&&D0?Bs(Zp({rowIndex:Fn.rowIndex,columnIndex:Ti-1},ct),!1):mn);qi(Hi),o1(mr(Hi))}if("ArrowRight"===Ln&&(Et.preventDefault(),Jc(),Mi.selection)){var Bi=function(ct,mn){var Fn=Bd(mr(mn),ct),Ti=Fn.columnIndex;return Ti0?Bs(Zp({rowIndex:vi-1,columnIndex:Fn.columnIndex},ct),!1):mn}(fn,Mi.selection);qi(Xi),o1(mr(Xi))}if("ArrowDown"===Ln&&(Et.preventDefault(),Jc(),Mi.selection)){var Us=function(ct,mn,Fn){var vi=Bd(mr(Fn),mn),Ti=vi.rowIndex;return Ti1?" (".concat(t[20].length,")"):""),fullScreenButton:!0,onClose:t[28]};void 0!==t[22]&&(Ke.fullscreen=t[22]),n=new eE({props:Ke}),Vs.push(function(){return J2(n,"fullscreen",ye)}),S=new ise({props:{mode:t[24].mode,content:t[24].content,selection:t[24].selection,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],askToFormat:t[6],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[7],escapeUnicodeCharacters:t[8],flattenColumns:t[9],parser:t[10],parseMemoizeOne:t[25],validator:t[11],validationParser:t[12],pathParser:t[13],insideModal:!0,onError:t[33],onChange:t[30],onChangeMode:t[32],onSelect:t[31],onRenderValue:t[14],onClassName:t[15],onFocus:M4,onBlur:M4,onRenderMenu:t[16],onRenderContextMenu:t[17],onSortModal:t[18],onTransformModal:t[19],onJSONEditorModal:t[34]}}),t[40](S);var Vt=t[23]&&rse(t),Nt=t[20].length>1&&sse(t);function kt(Dt,ut){return Dt[0]?W$e:q$e}var qt=kt(t),wt=qt(t);return{c:function(){e=pt("div"),Nn(n.$$.fragment),r=gn(),s=pt("div"),(a=pt("div")).innerHTML='
Path
',u=gn(),d=pt("input"),m=gn(),(_=pt("div")).innerHTML='
Contents
',y=gn(),x=pt("div"),Nn(S.$$.fragment),D=gn(),z=pt("div"),Vt&&Vt.c(),$=gn(),Nt&&Nt.c(),W=gn(),wt.c(),ce(a,"class","jse-label svelte-1m281k0"),ce(d,"class","jse-path svelte-1m281k0"),ce(d,"type","text"),d.readOnly=!0,ce(d,"title","Selected path"),d.value=t[26],ce(_,"class","jse-label svelte-1m281k0"),ce(x,"class","jse-modal-inline-editor svelte-1m281k0"),ce(z,"class","jse-actions svelte-1m281k0"),ce(s,"class","jse-modal-contents svelte-1m281k0"),ce(e,"class","jse-modal jse-jsoneditor-modal svelte-1m281k0"),$n(e,"fullscreen",t[22])},m:function(Dt,ut){Ht(Dt,e,ut),zn(n,e,null),Ge(e,r),Ge(e,s),Ge(s,a),Ge(s,u),Ge(s,d),Ge(s,m),Ge(s,_),Ge(s,y),Ge(s,x),zn(S,x,null),Ge(s,D),Ge(s,z),Vt&&Vt.m(z,null),Ge(z,$),Nt&&Nt.m(z,null),Ge(z,W),wt.m(z,null),re=!0,se||(ke=$l(Db.call(null,e,t[29])),se=!0)},p:function(Dt,ut){var Ut={};1048576&ut[0]&&(Ut.title="Edit nested content "+(Dt[20].length>1?" (".concat(Dt[20].length,")"):"")),!i&&4194304&ut[0]&&(i=!0,Ut.fullscreen=Dt[22],Q2(function(){return i=!1})),n.$set(Ut),(!re||67108864&ut[0]&&d.value!==Dt[26])&&(d.value=Dt[26]);var $t={};16777216&ut[0]&&($t.mode=Dt[24].mode),16777216&ut[0]&&($t.content=Dt[24].content),16777216&ut[0]&&($t.selection=Dt[24].selection),1&ut[0]&&($t.readOnly=Dt[0]),2&ut[0]&&($t.indentation=Dt[1]),4&ut[0]&&($t.tabSize=Dt[2]),32&ut[0]&&($t.statusBar=Dt[5]),64&ut[0]&&($t.askToFormat=Dt[6]),8&ut[0]&&($t.mainMenuBar=Dt[3]),16&ut[0]&&($t.navigationBar=Dt[4]),128&ut[0]&&($t.escapeControlCharacters=Dt[7]),256&ut[0]&&($t.escapeUnicodeCharacters=Dt[8]),512&ut[0]&&($t.flattenColumns=Dt[9]),1024&ut[0]&&($t.parser=Dt[10]),33554432&ut[0]&&($t.parseMemoizeOne=Dt[25]),2048&ut[0]&&($t.validator=Dt[11]),4096&ut[0]&&($t.validationParser=Dt[12]),8192&ut[0]&&($t.pathParser=Dt[13]),16384&ut[0]&&($t.onRenderValue=Dt[14]),32768&ut[0]&&($t.onClassName=Dt[15]),65536&ut[0]&&($t.onRenderMenu=Dt[16]),131072&ut[0]&&($t.onRenderContextMenu=Dt[17]),262144&ut[0]&&($t.onSortModal=Dt[18]),524288&ut[0]&&($t.onTransformModal=Dt[19]),S.$set($t),Dt[23]?Vt?Vt.p(Dt,ut):((Vt=rse(Dt)).c(),Vt.m(z,$)):Vt&&(Vt.d(1),Vt=null),Dt[20].length>1?Nt?(Nt.p(Dt,ut),1048576&ut[0]&&Me(Nt,1)):((Nt=sse(Dt)).c(),Me(Nt,1),Nt.m(z,W)):Nt&&(si(),je(Nt,1,1,function(){Nt=null}),oi()),qt===(qt=kt(Dt))&&wt?wt.p(Dt,ut):(wt.d(1),(wt=qt(Dt))&&(wt.c(),wt.m(z,null))),(!re||4194304&ut[0])&&$n(e,"fullscreen",Dt[22])},i:function(Dt){re||(Me(n.$$.fragment,Dt),Me(S.$$.fragment,Dt),Me(Nt),re=!0)},o:function(Dt){je(n.$$.fragment,Dt),je(S.$$.fragment,Dt),je(Nt),re=!1},d:function(Dt){Dt&&At(e),Rn(n),t[40](null),Rn(S),Vt&&Vt.d(),Nt&&Nt.d(),wt.d(),se=!1,ke()}}}function ose(t){t.focus()}function K$e(t,e,n){var i,r,s,a,u,d,m=v1("jsoneditor:JSONEditorModal"),_=e.content,y=e.path,x=e.onPatch,S=e.readOnly,D=e.indentation,z=e.tabSize,$=e.mainMenuBar,W=e.navigationBar,re=e.statusBar,se=e.askToFormat,ke=e.escapeControlCharacters,ye=e.escapeUnicodeCharacters,Ke=e.flattenColumns,lt=e.parser,Vt=e.validator,Nt=e.validationParser,kt=e.pathParser,qt=e.onRenderValue,wt=e.onClassName,Dt=e.onRenderMenu,ut=e.onRenderContextMenu,Ut=e.onSortModal,$t=e.onTransformModal,Lt=V1("simple-modal").close,et={mode:sn(_),content:_,selection:null,relativePath:y},st=[et],gt=void 0;function sn(Xt){return gb(Xt)&&Be(Xt.json)?A1.table:A1.tree}function Hn(){var Xt,An=(null===(Xt=Ur(st))||void 0===Xt?void 0:Xt.selection)||null;$L(An)&&u.scrollTo(mr(An))}function on(){m("handleClose"),st.length>1?(n(20,st=Ls(st)),El().then(Hn),n(23,gt=void 0)):Lt()}return t.$$set=function(Xt){"content"in Xt&&n(35,_=Xt.content),"path"in Xt&&n(36,y=Xt.path),"onPatch"in Xt&&n(37,x=Xt.onPatch),"readOnly"in Xt&&n(0,S=Xt.readOnly),"indentation"in Xt&&n(1,D=Xt.indentation),"tabSize"in Xt&&n(2,z=Xt.tabSize),"mainMenuBar"in Xt&&n(3,$=Xt.mainMenuBar),"navigationBar"in Xt&&n(4,W=Xt.navigationBar),"statusBar"in Xt&&n(5,re=Xt.statusBar),"askToFormat"in Xt&&n(6,se=Xt.askToFormat),"escapeControlCharacters"in Xt&&n(7,ke=Xt.escapeControlCharacters),"escapeUnicodeCharacters"in Xt&&n(8,ye=Xt.escapeUnicodeCharacters),"flattenColumns"in Xt&&n(9,Ke=Xt.flattenColumns),"parser"in Xt&&n(10,lt=Xt.parser),"validator"in Xt&&n(11,Vt=Xt.validator),"validationParser"in Xt&&n(12,Nt=Xt.validationParser),"pathParser"in Xt&&n(13,kt=Xt.pathParser),"onRenderValue"in Xt&&n(14,qt=Xt.onRenderValue),"onClassName"in Xt&&n(15,wt=Xt.onClassName),"onRenderMenu"in Xt&&n(16,Dt=Xt.onRenderMenu),"onRenderContextMenu"in Xt&&n(17,ut=Xt.onRenderContextMenu),"onSortModal"in Xt&&n(18,Ut=Xt.onSortModal),"onTransformModal"in Xt&&n(19,$t=Xt.onTransformModal)},t.$$.update=function(){1048576&t.$$.dirty[0]&&n(24,i=Ur(st)||et),1048576&t.$$.dirty[0]&&n(38,r=st.flatMap(function(Xt){return Xt.relativePath})),128&t.$$.dirty[1]&&n(26,s=Zs(r)?"(document root)":yu(r)),1024&t.$$.dirty[0]&&n(25,a=b_(lt.parse))},[S,D,z,$,W,re,se,ke,ye,Ke,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,st,u,d,gt,i,a,s,function(){if(m("handleApply"),!S)try{n(23,gt=void 0);var An=i.content,_n=[{op:"replace",path:de(i.relativePath),value:Mee(An,lt).json}];if(st.length>1){var wi={json:xe(Mee(st[st.length-2].content,lt).json,_n)},zi=yn(yn({},st[st.length-2]||et),{},{content:wi});n(20,st=[].concat(Ts(st.slice(0,st.length-2)),[zi])),El().then(Hn)}else x(_n),Lt()}catch(Zn){n(23,gt=String(Zn))}},on,function(){d?n(22,d=!1):on()},function(Xt){m("handleChange",Xt);var An=yn(yn({},i),{},{content:Xt});n(20,st=[].concat(Ts(Ls(st)),[An]))},function(Xt){m("handleChangeSelection",Xt);var An=yn(yn({},i),{},{selection:Xt});n(20,st=[].concat(Ts(Ls(st)),[An]))},function(Xt){m("handleChangeMode",Xt);var An=yn(yn({},i),{},{mode:Xt});n(20,st=[].concat(Ts(Ls(st)),[An]))},function(Xt){n(23,gt=Xt.toString()),console.error(Xt)},function(Xt){var An=Xt.content,_n=Xt.path;m("handleJSONEditorModal",{content:An,path:_n});var Zt={mode:sn(An),content:An,selection:null,relativePath:_n};n(20,st=[].concat(Ts(st),[Zt]))},_,y,x,r,function(Xt){n(22,d=Xt)},function(Xt){Vs[Xt?"unshift":"push"](function(){n(21,u=Xt)})}]}var Y$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,K$e,X$e,gs,{content:35,path:36,onPatch:37,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,askToFormat:6,escapeControlCharacters:7,escapeUnicodeCharacters:8,flattenColumns:9,parser:10,validator:11,validationParser:12,pathParser:13,onRenderValue:14,onClassName:15,onRenderMenu:16,onRenderContextMenu:17,onSortModal:18,onTransformModal:19},G$e,[-1,-1]),i}return br(e,Cr),pr(e)}();function Q$e(t,e,n){var i=V1("simple-modal");return[i.open,i.close]}var J$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,Q$e,null,gs,{open:0,close:1}),i}return br(e,Cr),pr(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}])}();function Z$e(t){as(t,"svelte-ybuk0j",'.jse-main.svelte-ybuk0j{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;position:relative;display:flex;flex-direction:row}')}function ase(t){var e,n;return e=new ise({props:{mode:t[1],content:t[0],selection:t[2],readOnly:t[3],indentation:t[4],tabSize:t[5],statusBar:t[8],askToFormat:t[9],mainMenuBar:t[6],navigationBar:t[7],escapeControlCharacters:t[10],escapeUnicodeCharacters:t[11],flattenColumns:t[12],parser:t[13],parseMemoizeOne:t[27],validator:t[14],validationParser:t[15],pathParser:t[16],insideModal:!1,onError:t[21],onChange:t[28],onChangeMode:t[32],onSelect:t[29],onRenderValue:t[17],onClassName:t[18],onFocus:t[30],onBlur:t[31],onRenderMenu:t[19],onRenderContextMenu:t[20],onSortModal:t[34],onTransformModal:t[33],onJSONEditorModal:t[35]}}),t[62](e),{c:function(){Nn(e.$$.fragment)},m:function(r,s){zn(e,r,s),n=!0},p:function(r,s){var a={};2&s[0]&&(a.mode=r[1]),1&s[0]&&(a.content=r[0]),4&s[0]&&(a.selection=r[2]),8&s[0]&&(a.readOnly=r[3]),16&s[0]&&(a.indentation=r[4]),32&s[0]&&(a.tabSize=r[5]),256&s[0]&&(a.statusBar=r[8]),512&s[0]&&(a.askToFormat=r[9]),64&s[0]&&(a.mainMenuBar=r[6]),128&s[0]&&(a.navigationBar=r[7]),1024&s[0]&&(a.escapeControlCharacters=r[10]),2048&s[0]&&(a.escapeUnicodeCharacters=r[11]),4096&s[0]&&(a.flattenColumns=r[12]),8192&s[0]&&(a.parser=r[13]),134217728&s[0]&&(a.parseMemoizeOne=r[27]),16384&s[0]&&(a.validator=r[14]),32768&s[0]&&(a.validationParser=r[15]),65536&s[0]&&(a.pathParser=r[16]),2097152&s[0]&&(a.onError=r[21]),131072&s[0]&&(a.onRenderValue=r[17]),262144&s[0]&&(a.onClassName=r[18]),524288&s[0]&&(a.onRenderMenu=r[19]),1048576&s[0]&&(a.onRenderContextMenu=r[20]),e.$set(a)},i:function(r){n||(Me(e.$$.fragment,r),n=!0)},o:function(r){je(e.$$.fragment,r),n=!1},d:function(r){t[62](null),Rn(e,r)}}}function eUe(t){var e,n,i,r,s,a=t[22];function u(_){t[61](_)}var d={};void 0!==t[25]&&(d.open=t[25]),e=new J$e({props:d}),Vs.push(function(){return J2(e,"open",u)});var m=ase(t);return{c:function(){Nn(e.$$.fragment),i=gn(),r=pt("div"),m.c(),ce(r,"class","jse-main svelte-ybuk0j"),$n(r,"jse-focus",t[23])},m:function(_,y){zn(e,_,y),Ht(_,i,y),Ht(_,r,y),m.m(r,null),s=!0},p:function(_,y){var x={};!n&&33554432&y[0]&&(n=!0,x.open=_[25],Q2(function(){return n=!1})),e.$set(x),4194304&y[0]&&gs(a,a=_[22])?(si(),je(m,1,1,hi),oi(),(m=ase(_)).c(),Me(m,1),m.m(r,null)):m.p(_,y),(!s||8388608&y[0])&&$n(r,"jse-focus",_[23])},i:function(_){s||(Me(e.$$.fragment,_),Me(m),s=!0)},o:function(_){je(e.$$.fragment,_),je(m),s=!1},d:function(_){_&&(At(i),At(r)),Rn(e,_),m.d(_)}}}function tUe(t){var e,n;return e=new uee({props:{closeOnEsc:!1,$$slots:{default:[eUe]},$$scope:{ctx:t}}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};201326591&r[0]|8&r[2]&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function nUe(t){for(var e,n,i,r=[{show:null===(e=t[26])||void 0===e?void 0:e.component},wze,{closeOnEsc:!1}],s={$$slots:{default:[tUe]},$$scope:{ctx:t}},a=0;a{class t{constructor(){this._destroyRef=(0,V.WQX)(V.abz),this._el=(0,V.WQX)(V.aKT),this._themeService=(0,V.WQX)(Re.F),this._cancelWriteValue$=new De.B,this.data=null,this.mainMenuBar=!0,this.navigationBar=!0,this.statusBar=!0,this.onEditing=new V.bkB,this.jsonEditor=null}ngOnChanges(n){const{data:i}=n;if(i&&this.jsonEditor){this._cancelWriteValue$.next();try{(0,pe.O)(100).pipe((0,Ee.s)(1),(0,be.M)(()=>this.jsonEditor?.set(i.currentValue)),(0,ge.Q)(this._cancelWriteValue$)).subscribe()}catch(r){console.error(r)}}}ngAfterViewInit(){(0,pe.O)(200).pipe((0,be.M)(()=>{this._initEditor(),this._darkThemeEvent()}),(0,oe.pQ)(this._destroyRef)).subscribe()}ngOnDestroy(){this.jsonEditor?.destroy()}_initEditor(){if(typeof window>"u")return;const i=this._el.nativeElement.querySelector(".json-editor");this.jsonEditor=new sUe({target:i,props:{mode:A1.text,content:this.data||void 0,mainMenuBar:this.mainMenuBar,navigationBar:this.navigationBar,statusBar:this.statusBar,onChange:(r,s,a)=>{const u=function hUe(t){let e=null;if(!t)return{json:e};if("json"in t&&(e=t.json),"text"in t)try{e=JSON.parse(t.text||"null")}catch{}return{json:e}}(r);this.onEditing.emit(u.json)}}})}_darkThemeEvent(){if(typeof window>"u")return;let n=0;const i=()=>{this.jsonEditor&&"function"==typeof this.jsonEditor.refresh&&this.jsonEditor.refresh()},r=(d=!1)=>{const _=this._el.nativeElement.querySelector(".json-editor");d?_.classList.add("jse-theme-dark"):_.classList.remove("jse-theme-dark"),window.clearTimeout(n),n=window.setTimeout(()=>i())},s=window.matchMedia("(prefers-color-scheme: dark)"),a=(0,Te.R)(s,"change",{passive:!0}).pipe((0,Ve.T)(d=>d.matches),(0,be.M)(d=>r(d))),u=this._themeService.theme$.pipe((0,ze.F)(),(0,be.M)(d=>r("dark"===d)));(0,vt.h)(a,u).pipe((0,oe.pQ)(this._destroyRef)).subscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V.VBU({type:t,selectors:[["app-playground-editor"]],inputs:{data:"data",mainMenuBar:"mainMenuBar",navigationBar:"navigationBar",statusBar:"statusBar"},outputs:{onEditing:"onEditing"},standalone:!0,features:[V.OA$,V.aNF],decls:3,vars:2,consts:[[3,"ngClass"],[1,"flex","flex-col","h-full"],[1,"flex-1","flex","flex-col","h-full","overflow-auto","json-editor","beauty-scrollbar","affect-child"]],template:function(i,r){1&i&&(V.j41(0,"div",0)(1,"div",1),V.nrm(2,"div",2),V.k0s()()),2&i&&V.Y8G("ngClass",V.lJ4(1,pUe))},dependencies:[o.MD,o.YU],styles:[".json-editor[_ngcontent-%COMP%]{--jse-theme-color: var(--primary-600);--jse-theme-color-highlight: var(--primary-500);--jse-menu-color: var(--primary-100)}.json-editor.jse-theme-dark[_ngcontent-%COMP%]{--jse-theme-color: var(--primary-200);--jse-menu-color: var(--primary-800)}"]})}return t})()},3503:(vn,J,F)=>{"use strict";F.d(J,{F:()=>be});var g=F(2978),o=F(5981),V=F(756),oe=F(8129),De=F(3527),pe=F(199),Ee=F(965);let be=(()=>{class ge{constructor(){this._renderer2=(0,g.WQX)(g._9s).createRenderer(null,null),this.themes=[{key:"light",class:"bi bi-brightness-high-fill"},{key:"dark",class:"bi bi-moon-stars-fill"}],this.theme$=new o.t("auto")}get savedTheme(){return typeof window>"u"?"":window.localStorage.getItem("theme")||""}set savedTheme(Ve){typeof window>"u"||window.localStorage.setItem("theme",Ve)}get currentTheme(){return this.themes.find(Ve=>Ve.key===this.savedTheme)||this.themes[0]}prefersDark$(){if(typeof window>"u")return(0,V.of)(!1);const Ve=window.matchMedia("(prefers-color-scheme: dark)"),ze=(0,oe.R)(Ve,"change",{passive:!0}).pipe((0,De.T)(Re=>Re));return(0,pe.z)([(0,V.of)(Ve),ze]).pipe((0,Ee.Z)([Ve,Ve]),(0,De.T)(([Re,tt])=>Re.matches||tt.matches))}setTheme(Ve,ze){const vt=de=>document.head.querySelector(`#${de}`),Re=de=>{const Fe=this._renderer2.createElement("link");return this._renderer2.setProperty(Fe,"id",de),this._renderer2.setProperty(Fe,"rel","stylesheet"),this._renderer2.setProperty(Fe,"href",ze),this._renderer2.insertBefore(document.head,Fe,document.head.childNodes[0]),Fe},tt=vt(Ve);if(tt){const de=vt(`${Ve}-next`),Fe=de??Re(`${Ve}-next`);de&&this._renderer2.setProperty(de,"href",ze),Fe.onload=()=>{tt.remove(),this._renderer2.setAttribute(Fe,"id",Ve)}}else Re(Ve)}static#e=this.\u0275fac=function(ze){return new(ze||ge)};static#t=this.\u0275prov=g.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}return ge})()},2568:(vn,J,F)=>{"use strict";F.d(J,{S:()=>De});var g=F(6610),o=F(5764),V=F(2978);const oe=["*"];let De=(()=>{class pe{constructor(){this.maxWidth="85rem",this.fadeUp=!0}get _maxWidth(){return this.maxWidth}static#e=this.\u0275fac=function(ge){return new(ge||pe)};static#t=this.\u0275cmp=V.VBU({type:pe,selectors:[["ui-content-wrapper"]],hostVars:3,hostBindings:function(ge,Te){2&ge&&(V.zvX("@fade-up",Te.fadeUp),V.xc7("max-width",Te._maxWidth))},inputs:{maxWidth:"maxWidth"},standalone:!0,features:[V.aNF],ngContentSelectors:oe,decls:1,vars:0,template:function(ge,Te){1&ge&&(V.NAR(),V.SdG(0))},dependencies:[g.MD],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;margin-left:auto;margin-right:auto}"],data:{animation:[o.k]}})}return pe})()},1938:(vn,J,F)=>{"use strict";F.d(J,{I:()=>be});var g=F(6409),o=F(2978),V=F(5981),oe=F(7236),De=F(4526),pe=F(756),Ee=F(3527);let be=(()=>{class ge{constructor(){this._http=(0,o.WQX)(g.Qq),this.versions=["v8"],this.docVersion="v8",this.versions$=new V.t([])}loadVersions$(){return this._npmPackageVersions$().pipe((0,oe.M)(Ve=>{this.versions$.next(Ve.map(ze=>({label:`v${ze}`,value:`v${ze.slice(0,1)}`})))}),(0,De.W)(()=>(0,pe.of)(["Latest"])))}firstContentPath$(Ve){return this._http.get(Ve,{responseType:"text"}).pipe((0,Ee.T)(ze=>ze.match(/(\.+\/){1,}.+/)?.[0]),(0,Ee.T)(ze=>ze?.replace(/(\.*\/){1,}/,"docs/")??""),(0,De.W)(()=>(0,pe.of)("")))}_npmPackageVersions$(){return this._http.get("https://registry.npmjs.org/ng-dynamic-json-form",{responseType:"json"}).pipe((0,Ee.T)(Ve=>Object.values(Ve.versions).filter(de=>!de.deprecated).map(de=>de.version).reduce((de,Fe)=>{const _t=de.findIndex(at=>at[0]===Fe[0]);return _t<0?de.push(Fe):de[_t]=Fe,de},[])))}static#e=this.\u0275fac=function(ze){return new(ze||ge)};static#t=this.\u0275prov=o.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}return ge})()},690:(vn,J,F)=>{"use strict";var g=F(6098),o=F(6610),V=F(2978),oe=F(9090),De=F(2489),pe=F(2831),Ee=F(3527);const be={schedule(ue,j){const N=setTimeout(ue,j);return()=>clearTimeout(N)},scheduleBeforeRender(ue){if(typeof window>"u")return be.schedule(ue,0);if(typeof window.requestAnimationFrame>"u")return be.schedule(ue,16);const j=window.requestAnimationFrame(ue);return()=>window.cancelAnimationFrame(j)}};let vt;function at(ue,j,N){let K=N;return function Te(ue){return!!ue&&ue.nodeType===Node.ELEMENT_NODE}(ue)&&j.some((ve,Xe)=>!("*"===ve||!function Re(ue,j){if(!vt){const N=Element.prototype;vt=N.matches||N.matchesSelector||N.mozMatchesSelector||N.msMatchesSelector||N.oMatchesSelector||N.webkitMatchesSelector}return ue.nodeType===Node.ELEMENT_NODE&&vt.call(ue,j)}(ue,ve)||(K=Xe,0))),K}class he{constructor(j,N){this.componentFactory=N.get(V.OM3).resolveComponentFactory(j)}create(j){return new He(this.componentFactory,j)}}class He{constructor(j,N){this.componentFactory=j,this.injector=N,this.eventEmitters=new oe.m(1),this.events=this.eventEmitters.pipe((0,pe.n)(K=>(0,De.h)(...K))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:K})=>K)),this.ngZone=this.injector.get(V.SKi),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(j){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(j)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=be.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(j){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(j):this.componentRef.instance[j])}setInputValue(j,N,K){this.runInZone(()=>{K&&(N=K.call(this.componentRef?.instance,N)),null!==this.componentRef?function tt(ue,j){return ue===j||ue!=ue&&j!=j}(N,this.getInputValue(j))&&(void 0!==N||!this.unchangedInputs.has(j))||(this.recordInputChange(j,N),this.unchangedInputs.delete(j),this.hasInputChanges=!0,this.componentRef.instance[j]=N,this.scheduleDetectChanges()):this.initialInputValues.set(j,N)})}initializeComponent(j){const N=V.zZn.create({providers:[],parent:this.injector}),K=function _t(ue,j){const N=ue.childNodes,K=j.map(()=>[]);let ve=-1;j.some((Xe,Ft)=>"*"===Xe&&(ve=Ft,!0));for(let Xe=0,Ft=N.length;Xe{this.initialInputValues.has(j)&&this.setInputValue(j,this.initialInputValues.get(j),N)}),this.initialInputValues.clear()}initializeOutputs(j){const N=this.componentFactory.outputs.map(({propName:K,templateName:ve})=>j.instance[K].pipe((0,Ee.T)(Ft=>({name:ve,value:Ft}))));this.eventEmitters.next(N)}callNgOnChanges(j){if(!this.implementsOnChanges||null===this.inputChanges)return;const N=this.inputChanges;this.inputChanges=null,j.instance.ngOnChanges(N)}markViewForCheck(j){this.hasInputChanges&&(this.hasInputChanges=!1,j.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=be.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(j,N){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const K=this.inputChanges[j];if(K)return void(K.currentValue=N);const ve=this.unchangedInputs.has(j),Xe=ve?void 0:this.getInputValue(j);this.inputChanges[j]=new V.FRM(Xe,N,ve)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(j){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(j):j()}}class Se extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}var jt=F(1040),Wt=F(8129),wn=F(8448),Wn=F(8283),di=F(8887),ai=F(7236),Li=F(2194),$i=F(4952);function Hr(ue,j){if(1&ue&&V.eu8(0,9),2&ue){V.XpG();const N=V.sdS(44);V.Y8G("ngTemplateOutlet",N)}}function ui(ue,j){1&ue&&(V.qex(0),V.nrm(1,"input",10),V.bVm())}function dn(ue,j){if(1&ue&&V.eu8(0,9),2&ue){V.XpG();const N=V.sdS(44);V.Y8G("ngTemplateOutlet",N)}}function nt(ue,j){1&ue&&(V.j41(0,"div",11)(1,"span"),V.EFF(2,"Description"),V.k0s(),V.j41(3,"div",1)(4,"span"),V.EFF(5,"descriptionClass"),V.k0s(),V.j41(6,"span"),V.EFF(7,"descriptionStyles"),V.k0s()()())}const ht=function(ue){return{"no-tags":ue}};let Je=(()=>{class ue{constructor(){this.isFormGroup="false",this.descriptionPosition="before",this.showTags="true"}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-input-layout-illustration"]],inputs:{isFormGroup:"isFormGroup",descriptionPosition:"descriptionPosition",showTags:"showTags"},standalone:!0,features:[V.aNF],decls:45,vars:9,consts:[[1,"host","text-sm","md:text-base",3,"ngClass"],[1,"tags"],[1,"label"],[1,"content"],[3,"ngTemplateOutlet",4,"ngIf"],[1,"input-area"],[4,"ngIf"],[1,"error"],["descriptionTemplate",""],[3,"ngTemplateOutlet"],["type","text",1,"doc-form-element"],[1,"description"]],template:function(K,ve){1&K&&(V.j41(0,"div",0)(1,"span"),V.EFF(2,"Host"),V.k0s(),V.j41(3,"div",1)(4,"span"),V.EFF(5,"hostClass"),V.k0s(),V.j41(6,"span"),V.EFF(7,"hostStyles"),V.k0s()(),V.j41(8,"div",2)(9,"span"),V.EFF(10,"Label"),V.k0s(),V.j41(11,"div",1)(12,"span"),V.EFF(13,"labelClass"),V.k0s(),V.j41(14,"span"),V.EFF(15,"labelStyles"),V.k0s()()(),V.j41(16,"div",3)(17,"span"),V.EFF(18,"Content"),V.k0s(),V.j41(19,"div",1)(20,"span"),V.EFF(21,"contentClass"),V.k0s(),V.j41(22,"span"),V.EFF(23,"contentStyles"),V.k0s()(),V.DNE(24,Hr,1,1,"ng-container",4),V.j41(25,"div",5)(26,"span"),V.EFF(27),V.k0s(),V.j41(28,"div",1)(29,"span"),V.EFF(30),V.k0s(),V.j41(31,"span"),V.EFF(32),V.k0s()(),V.DNE(33,ui,2,0,"ng-container",6),V.k0s(),V.DNE(34,dn,1,1,"ng-container",4),V.j41(35,"div",7)(36,"span"),V.EFF(37,"Error"),V.k0s(),V.j41(38,"div",1)(39,"span"),V.EFF(40,"errorClass"),V.k0s(),V.j41(41,"span"),V.EFF(42,"errorStyles"),V.k0s()()()()(),V.DNE(43,nt,8,0,"ng-template",null,8,V.C5r)),2&K&&(V.Y8G("ngClass",V.eq3(7,ht,"false"===ve.showTags)),V.R7$(24),V.Y8G("ngIf","before"===ve.descriptionPosition),V.R7$(3),V.JRh("true"===ve.isFormGroup?"Form Group":"Input Area"),V.R7$(3),V.SpI("","true"===ve.isFormGroup?"formGroup":"inputArea","Class"),V.R7$(2),V.SpI("","true"===ve.isFormGroup?"formGroup":"inputArea","Styles"),V.R7$(1),V.Y8G("ngIf","false"===ve.isFormGroup),V.R7$(1),V.Y8G("ngIf","after"===ve.descriptionPosition))},dependencies:[o.MD,o.YU,o.bT,o.T3],styles:["[_nghost-%COMP%]{--layoutBgColor: white}.no-tags[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%]{display:none!important}.host[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(112,57,154);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(112,57,154) 5%,var(--layoutBgColor));color:#70399a;z-index:0}.host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(112,57,154) 20%,var(--body-bg-color));font-size:.95rem}.description[_ngcontent-%COMP%], .input-area[_ngcontent-%COMP%]{position:relative;border:solid 1px #2d2d2d;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#2d2d2d 5%,var(--layoutBgColor));color:#2d2d2d;z-index:0}.description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#2d2d2d 20%,var(--body-bg-color));font-size:.95rem}.label[_ngcontent-%COMP%]{position:relative;border:solid 1px #4d9471;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#4d9471 5%,var(--layoutBgColor));color:#4d9471;z-index:0}.label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#4d9471 20%,var(--body-bg-color));font-size:.95rem}.content[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(24,108,244);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(24,108,244) 5%,var(--layoutBgColor));color:#186cf4;z-index:0}.content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(24,108,244) 20%,var(--body-bg-color));font-size:.95rem}input[_ngcontent-%COMP%]{border:solid 1px var(--border-color-50);margin:1rem 0}.error[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(255,42,0);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(255,42,0) 5%,var(--layoutBgColor));color:#ff2a00;z-index:0}.error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(255,42,0) 20%,var(--body-bg-color));font-size:.95rem}html.dark [_nghost-%COMP%]{--layoutBgColor: rgba(0, 0, 0, .5)}html.dark[_nghost-%COMP%] .host[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .host[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(163,127,191);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(163,127,191) 5%,var(--layoutBgColor));color:#a37fbf;z-index:0}html.dark[_nghost-%COMP%] .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(163,127,191) 20%,var(--body-bg-color));font-size:.95rem}html.dark[_nghost-%COMP%] .description[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .description[_ngcontent-%COMP%], html.dark[_nghost-%COMP%] .input-area[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .input-area[_ngcontent-%COMP%]{position:relative;border:solid 1px #9b9b9b;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#9b9b9b 5%,var(--layoutBgColor));color:#9b9b9b;z-index:0}html.dark[_nghost-%COMP%] .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark[_nghost-%COMP%] .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark[_nghost-%COMP%] .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#9b9b9b 20%,var(--body-bg-color));font-size:.95rem}html.dark[_nghost-%COMP%] .label[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .label[_ngcontent-%COMP%]{position:relative;border:solid 1px #4fae7e;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#4fae7e 5%,var(--layoutBgColor));color:#4fae7e;z-index:0}html.dark[_nghost-%COMP%] .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#4fae7e 20%,var(--body-bg-color));font-size:.95rem}html.dark[_nghost-%COMP%] .content[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .content[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(111,159,235);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(111,159,235) 5%,var(--layoutBgColor));color:#6f9feb;z-index:0}html.dark[_nghost-%COMP%] .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(111,159,235) 20%,var(--body-bg-color));font-size:.95rem}html.dark[_nghost-%COMP%] .error[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .error[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(225,114,94);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(225,114,94) 5%,var(--layoutBgColor));color:#e1725e;z-index:0}html.dark[_nghost-%COMP%] .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(225,114,94) 20%,var(--body-bg-color));font-size:.95rem}@media (prefers-color-scheme: dark){:root:not(.light) [_nghost-%COMP%]{--layoutBgColor: rgba(0, 0, 0, .5)}[_ngcontent-%COMP%]:root:not(.light) .host[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(163,127,191);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(163,127,191) 5%,var(--layoutBgColor));color:#a37fbf;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(163,127,191) 20%,var(--body-bg-color));font-size:.95rem}[_ngcontent-%COMP%]:root:not(.light) .description[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root:not(.light) .input-area[_ngcontent-%COMP%]{position:relative;border:solid 1px #9b9b9b;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#9b9b9b 5%,var(--layoutBgColor));color:#9b9b9b;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root:not(.light) .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root:not(.light) .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#9b9b9b 20%,var(--body-bg-color));font-size:.95rem}[_ngcontent-%COMP%]:root:not(.light) .label[_ngcontent-%COMP%]{position:relative;border:solid 1px #4fae7e;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#4fae7e 5%,var(--layoutBgColor));color:#4fae7e;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#4fae7e 20%,var(--body-bg-color));font-size:.95rem}[_ngcontent-%COMP%]:root:not(.light) .content[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(111,159,235);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(111,159,235) 5%,var(--layoutBgColor));color:#6f9feb;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(111,159,235) 20%,var(--body-bg-color));font-size:.95rem}[_ngcontent-%COMP%]:root:not(.light) .error[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(225,114,94);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(225,114,94) 5%,var(--layoutBgColor));color:#e1725e;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(225,114,94) 20%,var(--body-bg-color));font-size:.95rem}}"]})}return ue})();function Ae(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.j41(1,"button",3),V.bIt("click",function(){V.eBV(N);const ve=V.XpG();return V.Njj(ve.copyToClipboard())}),V.nrm(2,"i",4),V.k0s(),V.bVm()}}const Ue=["*"];let Ze=(()=>{class ue{constructor(){this._el=(0,V.WQX)(V.aKT),this.enableCopy=!0}copyToClipboard(){const ve=this._el.nativeElement.querySelector(".code-container")?.innerText;typeof window>"u"||ve&&window.navigator.clipboard.writeText(ve)}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-doc-code"]],inputs:{enableCopy:"enableCopy"},standalone:!0,features:[V.aNF],ngContentSelectors:Ue,decls:4,vars:1,consts:[[1,"content","relative","z-0","duration-300"],[1,"code-container"],[4,"ngIf"],[1,"btn-copy","absolute","z-10","top-2","right-2","p-2","bg-gray-600/30","backdrop-blur-sm","rounded-lg","text-white",3,"click"],[1,"bi","bi-copy"]],template:function(K,ve){1&K&&(V.NAR(),V.j41(0,"div",0)(1,"div",1),V.SdG(2),V.k0s(),V.DNE(3,Ae,3,0,"ng-container",2),V.k0s()),2&K&&(V.R7$(3),V.Y8G("ngIf",!0===ve.enableCopy))},dependencies:[o.MD,o.bT],styles:[".content[_ngcontent-%COMP%] .btn-copy[_ngcontent-%COMP%]{opacity:0;transition:.25s}.content[_ngcontent-%COMP%]:hover .btn-copy[_ngcontent-%COMP%]{opacity:1}"]})}return ue})();var H=F(7316);function te(ue,j){if(1&ue&&(V.qex(0),V.j41(1,"span",3),V.EFF(2),V.k0s(),V.bVm()),2&ue){const N=V.XpG();V.R7$(2),V.JRh(N.tabs[0])}}const xe=function(ue,j,N){return{"border-transparent":ue,"border-[var(--primary-500)]":j,"opacity-60":N}};function Ce(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.j41(1,"button",5),V.bIt("click",function(){const Xe=V.eBV(N).$implicit,Ft=V.XpG(2);return V.Njj(Ft.toggleTab(Xe))}),V.EFF(2),V.k0s(),V.bVm()}if(2&ue){const N=j.$implicit,K=V.XpG(2);V.R7$(1),V.Y8G("ngClass",V.sMw(2,xe,N!==K.activeTab,N===K.activeTab,N!==K.activeTab)),V.R7$(1),V.SpI(" ",N," ")}}function zt(ue,j){if(1&ue&&(V.qex(0),V.DNE(1,Ce,3,6,"ng-container",4),V.bVm()),2&ue){const N=V.XpG();V.R7$(1),V.Y8G("ngForOf",N.tabs)}}const rt=["*"];let xt=(()=>{class ue{constructor(){this._el=(0,V.WQX)(V.aKT),this._renderer2=(0,V.WQX)(V.sFG),this.children=[],this.tabs=[],this.activeTab=""}ngAfterViewInit(){this.children=Array.from(this._el.nativeElement.querySelectorAll(":scope > .content > *")),this.children.forEach((K,ve)=>{const Xe=K.getAttribute("name");Xe&&(this.tabs.push(Xe),0===ve&&this.toggleTab(Xe))}),this._listenChildrenMutation()}ngOnDestroy(){this._resizeObserver?.disconnect()}toggleTab(N){this.activeTab=N,this.children.forEach(K=>{K.getAttribute("name")&&(K.getAttribute("name")===N?(K.classList.add("block"),K.classList.remove("hidden"),this._updateContainerHeight()):(K.classList.add("hidden"),K.classList.remove("block")))})}_listenChildrenMutation(){this._resizeObserver=new ResizeObserver(()=>{this._updateContainerHeight()}),this.children.forEach(K=>{this._resizeObserver?.observe(K)})}_updateContainerHeight(){const K=this._el.nativeElement.querySelector(".content"),ve=this.children.find(Xe=>Xe.getAttribute("name")===this.activeTab);ve&&this._renderer2.setStyle(K,"height",ve.scrollHeight+"px")}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-doc-tab"]],standalone:!0,features:[V.aNF],ngContentSelectors:rt,decls:5,vars:2,consts:[[1,"flex","bg-gray-700/10","backdrop-blur-sm"],[4,"ngIf"],[1,"content","relative","z-0","duration-300"],[1,"p-3","px-5","pb-2"],[4,"ngFor","ngForOf"],[1,"p-3","px-5","pb-2","border-b-2","duration-200",3,"ngClass","click"]],template:function(K,ve){1&K&&(V.NAR(),V.j41(0,"div",0),V.DNE(1,te,3,1,"ng-container",1),V.DNE(2,zt,2,1,"ng-container",1),V.k0s(),V.j41(3,"div",2),V.SdG(4),V.k0s()),2&K&&(V.R7$(1),V.Y8G("ngIf",1===ve.tabs.length),V.R7$(1),V.Y8G("ngIf",ve.tabs.length>1))},dependencies:[o.MD,o.YU,o.Sq,o.bT]})}return ue})();var Gt=F(3090),xn=F(2709),In=F(8303),xi=F(9062),or=F(9545),ci=F(728),Dr=F(6457),Tr=F(504),cn=F(2325),On=F(4196),Qn=F(4183);function fi(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.j41(1,"input",6),V.bIt("input",function(ve){V.eBV(N);const Xe=V.XpG().$implicit,Ft=V.XpG(2);return V.Njj(Ft.updateStyle(Xe,ve))}),V.k0s(),V.bVm()}if(2&ue){const N=V.XpG().$implicit;V.R7$(1),V.Y8G("value",N.value)}}function qe(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.j41(1,"input",7),V.bIt("input",function(ve){V.eBV(N);const Xe=V.XpG().$implicit,Ft=V.XpG(2);return V.Njj(Ft.updateStyle(Xe,ve))}),V.k0s(),V.bVm()}if(2&ue){const N=V.XpG().$implicit;let K;V.R7$(1),V.Y8G("min",N.min)("max",N.max)("step",null!==(K=N.step)&&void 0!==K?K:"any")("value",N.value)}}function Mt(ue,j){if(1&ue&&(V.qex(0),V.j41(1,"div",5)(2,"span"),V.EFF(3),V.k0s(),V.j41(4,"span"),V.EFF(5),V.k0s(),V.DNE(6,fi,2,1,"ng-container",3),V.DNE(7,qe,2,4,"ng-container",3),V.k0s(),V.bVm()),2&ue){const N=j.$implicit,K=V.XpG(2);V.R7$(3),V.JRh(N.key),V.R7$(2),V.JRh(K.styles[N.key]),V.R7$(1),V.Y8G("ngIf","color"===N.type),V.R7$(1),V.Y8G("ngIf","range"===N.type)}}function Bt(ue,j){if(1&ue&&(V.qex(0),V.DNE(1,Mt,8,4,"ng-container",4),V.bVm()),2&ue){const N=V.XpG();V.R7$(1),V.Y8G("ngForOf",N.styleOptions)}}const hn=function(){return[]};let Mn=(()=>{class ue{constructor(){this._langService=(0,V.WQX)(Qn.g),this._configEn=[or.C,(0,In.r)(),Dr.Y,cn.C],this._configZhTW=[ci.m,xi.P,Tr.C,On.q],this.configs$=this._langService.language$.pipe((0,Ee.T)(N=>"en"===N?this._configEn:this._configZhTW)),this.styleOptions=[{key:"--color-primary",type:"color",value:"#3b82f6"},{key:"--color-primary-lighter",type:"color",value:"#8BADE4"},{key:"--color-description",type:"color",value:"#808080"},{key:"--color-error",type:"color",value:"#ff4747"},{key:"--color-border",type:"color",value:"#808080"},{key:"--font-size-title",type:"range",value:"1.2",unit:"em",min:.4,max:4,step:.01},{key:"--font-size-label",type:"range",value:"1",unit:"em",min:.4,max:3,step:.01},{key:"--font-size-description",type:"range",value:"0.925",unit:"em",min:.4,max:2.4,step:.01},{key:"--font-size-error",type:"range",value:"0.925",unit:"em",min:.4,max:2.4,step:.01},{key:"--font-weight-title",type:"range",value:"70",min:10,max:90,step:10},{key:"--font-weight-label",type:"range",value:"50",min:10,max:90,step:10},{key:"--input-border-width",type:"range",value:"1",unit:"px",min:1,max:5,step:1},{key:"--row-gap",type:"range",value:"1.5",unit:"em",min:0,max:5,step:.1},{key:"--column-gap",type:"range",value:"1",unit:"em",min:0,max:5,step:.1},{key:"--options-column-gap",type:"range",value:"1.85",unit:"em",min:0,max:5,step:.01},{key:"--options-row-gap",type:"range",value:"0.25",unit:"em",min:0,max:5,step:.01}],this.styles={},this.reseting=!1}ngOnInit(){this.resetStyles()}updateStyle(N,K){this.styles[N.key]=this._getStyleValue(N,K.target.value)}resetStyles(){this.reseting=!0,this.styles=[...this.styleOptions].reduce((N,K)=>(N[K.key]=this._getStyleValue(K),N),{}),window.setTimeout(()=>{this.reseting=!1})}_getStyleValue(N,K){const ve=(N.step??1)>=1?N.step:1,Xe=K??`${N.value}`;return"range"===N.type?`${parseFloat(Xe)*(ve??1)}${N.unit??""}`:Xe}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-form-style-tweaker"]],standalone:!0,features:[V.aNF],decls:7,vars:6,consts:[[3,"ngStyle","configs"],[1,"fixed","top-[calc(var(--header-height)+1rem)]","right-10","z-10"],[3,"click"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"grid","grid-cols-[220px_100px_1fr]"],["type","color",1,"doc-form-element",3,"value","input"],["type","range",1,"doc-form-element",3,"min","max","step","value","input"]],template:function(K,ve){if(1&K&&(V.j41(0,"div"),V.nrm(1,"ng-dynamic-json-form",0),V.nI1(2,"async"),V.j41(3,"div",1)(4,"button",2),V.bIt("click",function(){return ve.resetStyles()}),V.EFF(5,"RESET"),V.k0s(),V.DNE(6,Bt,2,1,"ng-container",3),V.k0s()()),2&K){let Xe;V.R7$(1),V.Y8G("ngStyle",ve.styles)("configs",null!==(Xe=V.bMT(2,3,ve.configs$))&&void 0!==Xe?Xe:V.lJ4(5,hn)),V.R7$(5),V.Y8G("ngIf",!ve.reseting)}},dependencies:[o.MD,o.Sq,o.bT,o.B3,o.Jj,xn.yz]})}return ue})();var Vi=F(8503),ni=F(6340),Qi=F(6104);const dr=function(){return["inline-flex","p-3 px-4","text-sm lg:text-base","word-keep whitespace-nowrap","duration-200 transition-[opacity]"]};function no(ue,j){if(1&ue&&(V.qex(0),V.j41(1,"a",3),V.EFF(2),V.k0s(),V.bVm()),2&ue){const N=j.$implicit;V.R7$(1),V.Y8G("ngClass",V.lJ4(4,dr))("routerLink","/"+N.route)("routerLinkActive","active"),V.R7$(1),V.JRh(N.label)}}const Ki=function(){return["relative z-0 flex gap-2","overflow-x-auto overflow-y-hidden hidden-scrollbar"]};let Ys=(()=>{class ue{constructor(N,K,ve){this._router=N,this._el=K,this._renderer2=ve,this.links=[],this._onDestroy$=new Qi.B}ngOnChanges(N){const{links:K}=N;K&&this._setIndicatorStyle()}ngAfterViewInit(){this._onRouteChange(),this._setIndicatorStyle()}ngOnDestroy(){this._onDestroy$.next(null),this._onDestroy$.complete()}_onRouteChange(){this._router.events.pipe((0,Vi.p)(N=>N instanceof jt.wF),(0,ai.M)(()=>this._setIndicatorStyle()),(0,ni.Q)(this._onDestroy$)).subscribe()}_findElement(N){return this._el.nativeElement.querySelector(N)}_setIndicatorStyle(){typeof window>"u"||requestAnimationFrame(()=>{const N=this._findElement(".indicator"),K=this._findElement("a.active");if(!N)return;if(!K)return void this._renderer2.setStyle(N,"opacity","0");const ve=this._findElement(".content")?parseFloat(window.getComputedStyle(this._findElement(".content")).paddingLeft):0,Xe=(this._findElement("a")?.getBoundingClientRect().x||0)-ve,Ft=K.getBoundingClientRect().x-Xe,I=.8*K.clientWidth,B=(K.clientWidth-I)/2;K.scrollIntoView({inline:"center",block:"nearest"}),this._renderer2.setStyle(N,"opacity","1"),this._renderer2.setStyle(N,"left",`${Ft+B}px`),this._renderer2.setStyle(N,"width",`${I}px`)})}static#e=this.\u0275fac=function(K){return new(K||ue)(V.rXU(jt.Ix),V.rXU(V.aKT),V.rXU(V.sFG))};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["header-tab-bar"]],inputs:{links:"links"},standalone:!0,features:[V.OA$,V.aNF],decls:3,vars:3,consts:[[3,"ngClass"],[4,"ngFor","ngForOf"],[1,"indicator"],[3,"ngClass","routerLink","routerLinkActive"]],template:function(K,ve){1&K&&(V.j41(0,"div",0),V.DNE(1,no,3,5,"ng-container",1),V.nrm(2,"span",2),V.k0s()),2&K&&(V.Y8G("ngClass",V.lJ4(2,Ki)),V.R7$(1),V.Y8G("ngForOf",ve.links))},dependencies:[o.MD,o.YU,o.Sq,jt.iI,jt.Wk,jt.wQ],styles:["a[_ngcontent-%COMP%]:hover, a.active[_ngcontent-%COMP%]{opacity:1;font-weight:700}.indicator[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;display:block;height:4px;border-radius:1rem;background-color:var(--primary-500);transition:.5s cubic-bezier(.54,-.49,0,1.32)}@media screen and (max-width: 992px){[_nghost-%COMP%]{overflow:hidden}}"]})}return ue})(),so=(()=>{class ue{constructor(){this._langService=(0,V.WQX)(Qn.g),this.language$=this._langService.language$}onLanguageSelect(N){this._switchLanguage(N.target.value)}_switchLanguage(N){this._langService.loadLanguageData$(N).pipe((0,ai.M)(()=>this._langService.setLanguage(N))).subscribe()}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-language-selector"]],standalone:!0,features:[V.aNF],decls:6,vars:3,consts:[[1,"doc-form-element","!px-4",3,"value","change"],["value","en"],["value","zh-TW"]],template:function(K,ve){1&K&&(V.j41(0,"select",0),V.bIt("change",function(Ft){return ve.onLanguageSelect(Ft)}),V.nI1(1,"async"),V.j41(2,"option",1),V.EFF(3,"English"),V.k0s(),V.j41(4,"option",2),V.EFF(5,"\u4e2d\u6587"),V.k0s()()),2&K&&V.Y8G("value",V.bMT(1,1,ve.language$))},dependencies:[o.MD,o.Jj],encapsulation:2})}return ue})();var zo=F(8832),qa=F(9990),xc=F(3503);const mo={primeng:{dark:"assets/primeng-theme/dark.css",light:"assets/primeng-theme/light.css"},material:{dark:"assets/material-theme/pink-bluegrey.css",light:"assets/material-theme/deeppurple-amber.css"},highlightJs:{dark:"assets/highlightjs-theme/atom-one-dark.min.css",light:"assets/highlightjs-theme/atom-one-light.min.css"}},io=function(){return["flex items-center justify-center p-4 lg:p-3","rounded-full text-xl md:text-base","bg-[var(--body-bg-color)]","hover:bg-[var(--primary-500)] hover:text-white","border border-[var(--border-color-25)] lg:border-0"]};let Wo=(()=>{class ue{constructor(){this._renderer2=(0,V.WQX)(V.sFG),this._themeService=(0,V.WQX)(xc.F),this._onDestroy$=new Qi.B,this.themes=this._themeService.themes,this.currentTheme=this._themeService.currentTheme}ngOnInit(){this.switchTheme(this.currentTheme.key),this._themeService.prefersDark$().pipe((0,qa.i)(1),(0,ai.M)(N=>this.switchTheme(N?"dark":"light")),(0,ni.Q)(this._onDestroy$)).subscribe()}switchTheme(N){if(typeof window>"u")return;const K=document.querySelector("html"),ve=this.themes.find(Xe=>N?Xe.key===N:Xe.key!==this.currentTheme.key);if(ve){this.currentTheme=ve,this._renderer2.setAttribute(K,"class",ve.key),this._themeService.theme$.next(ve.key),this._themeService.savedTheme=ve.key;for(const Xe in mo)this._themeService.setTheme(`${Xe}-theme`,mo[Xe][ve.key])}}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-theme-switcher"]],standalone:!0,features:[V.aNF],decls:2,vars:4,consts:[["type","button",3,"ngClass","click"]],template:function(K,ve){1&K&&(V.j41(0,"button",0),V.bIt("click",function(){return ve.switchTheme()}),V.nrm(1,"i"),V.k0s()),2&K&&(V.Y8G("ngClass",V.lJ4(3,io)),V.R7$(1),V.HbH(ve.currentTheme.class))},dependencies:[o.MD,o.YU,zo.YN],encapsulation:2})}return ue})();var ic=F(2568),jn=F(1938);function kn(ue,j){if(1&ue&&(V.qex(0),V.j41(1,"span",1),V.EFF(2),V.k0s(),V.bVm()),2&ue){const N=V.XpG();V.R7$(2),V.JRh(N.versions[0])}}let It=(()=>{class ue{constructor(){this._versionService=(0,V.WQX)(jn.I),this.versions=this._versionService.versions}changeVersion(N){window.location.href=`${window.location.origin}/ng-dynamic-json-form/${N.target.value}`}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["version-selector"]],standalone:!0,features:[V.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"lg:text-lg","font-light","capitalize","tracking-wider"]],template:function(K,ve){1&K&&V.DNE(0,kn,3,1,"ng-container",0),2&K&&V.Y8G("ngIf",1===ve.versions.length)},dependencies:[o.MD,o.bT],encapsulation:2})}return ue})(),Jt=(()=>{class ue{constructor(){this.links=[]}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-header-desktop"]],inputs:{links:"links"},standalone:!0,features:[V.aNF],decls:10,vars:3,consts:[[1,"header"],[1,"content-wrapper",3,"maxWidth"],[1,"flex","items-center","gap-1","mr-4"],[1,"logo",3,"routerLink"],["src","assets/logo.svg","alt",""],[1,"tab-bar",3,"links"],[1,"settings","ml-auto"]],template:function(K,ve){1&K&&(V.j41(0,"div",0)(1,"ui-content-wrapper",1)(2,"div",2)(3,"a",3),V.nrm(4,"img",4),V.k0s(),V.nrm(5,"version-selector"),V.k0s(),V.nrm(6,"header-tab-bar",5),V.j41(7,"div",6),V.nrm(8,"app-theme-switcher")(9,"app-language-selector"),V.k0s()()()),2&K&&(V.R7$(1),V.Y8G("maxWidth","var(--page-max-width)"),V.R7$(2),V.Y8G("routerLink","/"),V.R7$(3),V.Y8G("links",ve.links))},dependencies:[o.MD,jt.iI,jt.Wk,ic.S,Ys,Wo,so,It],styles:[".header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.header[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{flex-direction:row}.header[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:block;width:3rem;padding:.5rem}.header[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]:after{content:none}.header[_ngcontent-%COMP%] .settings[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}"]})}return ue})();const Un=function(ue){return{active:ue}},yt=function(ue){return["grid","duration-200",ue]},ft=function(ue){return["relative z-0","grid grid-cols-[1fr,auto] items-center gap-5","py-4 pb-2","duration-300 delay-100",ue]};let Pt=(()=>{class ue{constructor(){this._layoutService=(0,V.WQX)(Li.Y),this.links=[],this.openSettings=!1,this.settingsOpened=new V.bkB}toggleSettings(){this.openSettings=!this.openSettings,this.settingsOpened.emit(this.openSettings),requestAnimationFrame(()=>{this._layoutService.updateHeaderHeight()})}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-header-mobile"]],inputs:{links:"links",openSettings:"openSettings"},outputs:{settingsOpened:"settingsOpened"},standalone:!0,features:[V.aNF],decls:12,vars:11,consts:[[1,"flex","gap-4","items-center"],[1,"flex","gap-2","shrink-0","h-6",3,"routerLink"],["src","assets/logo.svg","alt",""],[3,"links"],["type","button",1,"ml-auto","btn-menu",3,"ngClass","click"],[3,"ngClass"],[1,"overflow-hidden"]],template:function(K,ve){1&K&&(V.j41(0,"div",0)(1,"a",1),V.nrm(2,"img",2)(3,"version-selector"),V.k0s(),V.nrm(4,"header-tab-bar",3),V.j41(5,"button",4),V.bIt("click",function(){return ve.toggleSettings()}),V.nrm(6,"span"),V.k0s()(),V.j41(7,"div",5)(8,"div",6)(9,"div",5),V.nrm(10,"app-language-selector")(11,"app-theme-switcher"),V.k0s()()()),2&K&&(V.R7$(1),V.Y8G("routerLink","/"),V.R7$(3),V.Y8G("links",ve.links),V.R7$(1),V.Y8G("ngClass",V.eq3(5,Un,ve.openSettings)),V.R7$(2),V.Y8G("ngClass",V.eq3(7,yt,ve.openSettings?"grid-rows-[1fr]":"grid-rows-[0fr]")),V.R7$(2),V.Y8G("ngClass",V.eq3(9,ft,ve.openSettings?"opacity-100":"opacity-0")))},dependencies:[o.MD,o.YU,jt.iI,jt.Wk,Ys,Wo,so,It],styles:['.btn-menu[_ngcontent-%COMP%]{--line-weight: 2px;--line-color: gray;--btn-size: 1.5rem;width:var(--btn-size);height:var(--btn-size)}.btn-menu.active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:unset}.btn-menu.active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{top:0;transform:rotate(45deg)}.btn-menu.active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{top:0;transform:rotate(-45deg)}.btn-menu[_ngcontent-%COMP%]:hover{background-color:unset}.btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;display:block;width:100%;height:var(--line-weight);margin:0 auto;background-color:var(--line-color);border-radius:2rem;z-index:0;transition:.2s}.btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before, .btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;width:100%;height:var(--line-weight);background-color:var(--line-color);border-radius:2rem;transition:.2s}.btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{top:calc(var(--btn-size) / -3)}.btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{top:calc(var(--btn-size) / 3)}']})}return ue})();function Cn(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.nrm(1,"app-header-desktop",2),V.j41(2,"app-header-mobile",3),V.bIt("settingsOpened",function(ve){V.eBV(N);const Xe=V.XpG();return V.Njj(Xe.openSettings=ve)}),V.k0s(),V.bVm()}if(2&ue){const N=j.ngIf,K=V.XpG();V.R7$(1),V.Y8G("links",N),V.R7$(1),V.Y8G("links",N)("openSettings",K.openSettings)}}const pn=function(ue,j){return["header-container","p-3 px-7 lg:p-4 lg:pb-2","duration-200",ue,j]};let Di=(()=>{class ue{onWindowScroll(){typeof window>"u"||(this.showBackground=window.scrollY>0)}constructor(){this._el=(0,V.WQX)(V.aKT),this._languageDataService=(0,V.WQX)(Qn.g),this._layoutService=(0,V.WQX)(Li.Y),this._onDestroy$=new Qi.B,this.showBackground=!1,this.openSettings=!1,this.links$=this._languageDataService.i18nContent$.pipe((0,Vi.p)(N=>Object.values(N).length>0),(0,Ee.T)(N=>[{route:"docs",label:`${N.MENU.DOCS}`},{route:"playground",label:`${N.MENU.PLAYGROUND}`}])),this._layoutService.windowSize$.pipe((0,Vi.p)(N=>N.x>=1024),(0,ai.M)(()=>this.openSettings=!1)).subscribe()}ngAfterViewInit(){this._updateHeaderHeight()}ngOnDestroy(){this._onDestroy$.next(),this._onDestroy$.complete()}_updateHeaderHeight(){const N=this._el.nativeElement;N&&(0,Wt.R)(N,"transitionend",{passive:!0}).pipe((0,di.B)(0),(0,ai.M)(()=>this._layoutService.updateHeaderHeight()),(0,ni.Q)(this._onDestroy$)).subscribe()}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-header"]],hostBindings:function(K,ve){1&K&&V.bIt("scroll",function(Ft){return ve.onWindowScroll(Ft)},!1,V.tSv)},standalone:!0,features:[V.aNF],decls:3,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"links"],[3,"links","openSettings","settingsOpened"]],template:function(K,ve){1&K&&(V.j41(0,"div",0),V.DNE(1,Cn,3,3,"ng-container",1),V.nI1(2,"async"),V.k0s()),2&K&&(V.Y8G("ngClass",V.l_i(4,pn,ve.showBackground?"show-background":"",ve.openSettings?"full-background":"")),V.R7$(1),V.Y8G("ngIf",V.bMT(2,2,ve.links$)))},dependencies:[o.MD,o.YU,o.bT,o.Jj,Jt,Pt],styles:['[_nghost-%COMP%]{position:sticky;top:0;display:block;z-index:999}.header-container[_ngcontent-%COMP%]{position:relative;z-index:0}.header-container[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;height:100%;width:100%;content:"";z-index:-1}.header-container.show-background[_ngcontent-%COMP%]:before{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);background-color:rgba(var(--body-bg-color-rgb),.35);mask:linear-gradient(var(--body-bg-color) 60%,transparent)}.header-container.full-background[_ngcontent-%COMP%]:before{mask:unset;border-bottom:solid 1px var(--border-color-25)}app-header-mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 1024px){app-header-desktop[_ngcontent-%COMP%]{display:none}app-header-mobile[_ngcontent-%COMP%]{display:block}}']})}return ue})();var nr=F(3229),tn=F(4929),Kt=F(7049);const Vn=function(ue){return{start:ue}},qn=function(ue){return{"--step-count":ue}};let pi=(()=>{class ue{constructor(){this._step=0,this._cancelTimer$=new Qi.B,this._onDestroy$=new Qi.B,this.start=!1,this.step="0%"}ngOnChanges(N){const{start:K}=N;K&&(!0===K.currentValue?this._addStep():(this.step="0%",this._cancelTimer$.next()))}ngOnDestroy(){this._cancelTimer$.next(),this._cancelTimer$.complete(),this._onDestroy$.next(),this._onDestroy$.complete()}_addStep(){(0,nr.O)(3e3).pipe((0,pe.n)(()=>function Tt(ue=0,j=tn.E){return ue<0&&(ue=0),(0,nr.O)(ue,ue,j)}(1e3)),(0,ai.M)(()=>{this._step+=Math.round(Math.random()),this.step=`${this._step}%`}),(0,ni.Q)((0,De.h)(this._onDestroy$,this._cancelTimer$)),(0,Kt.v)(()=>this._step<10)).subscribe()}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["ui-loading-indicator"]],inputs:{start:"start"},standalone:!0,features:[V.OA$,V.aNF],decls:1,vars:6,consts:[[1,"loading-bar",3,"ngClass","ngStyle"]],template:function(K,ve){1&K&&V.nrm(0,"div",0),2&K&&V.Y8G("ngClass",V.eq3(2,Vn,ve.start))("ngStyle",V.eq3(4,qn,ve.step))},dependencies:[o.MD,o.YU,o.B3],styles:['.loading-bar[_ngcontent-%COMP%]{--step-count: "0%";position:fixed;top:0;left:0;height:3px;width:100%;z-index:1000;opacity:0;transition:.35s}.loading-bar[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--primary-500);transition:.35s}.loading-bar.start[_ngcontent-%COMP%]{opacity:1;transition:0s}.loading-bar.start[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_startAnimation 2.5s cubic-bezier(.69,.24,.49,.98) forwards}@keyframes _ngcontent-%COMP%_startAnimation{0%{width:0%}30%{width:60%}90%{width:62%}to{width:calc(66% + var(--step-count))}}']})}return ue})();const ti=function(ue){return{"opacity-0":ue}},Ni=function(ue){return{"--header-height.px":ue}};let ii=(()=>{class ue{constructor(){this._cd=(0,V.WQX)(V.gRc),this._injector=(0,V.WQX)(V.zZn,{optional:!0}),this._router=(0,V.WQX)(jt.Ix),this._docsLoaderService=(0,V.WQX)(Gt.e),this._langService=(0,V.WQX)(Qn.g),this._layoutService=(0,V.WQX)(Li.Y),this.title="NgDynamicJsonForm",this.routeLoading=!1,this.isServer=!0,this.headerHeight$=this._layoutService.headerHeight$.pipe((0,Wn.c)(0)),this.docLoading$=this._docsLoaderService.docLoading$.pipe((0,Wn.c)(0))}ngOnInit(){typeof window<"u"&&window.setTimeout(()=>this.isServer=!1),this._loadGoogleFonts(),this._registerCustomElements(),this._routeChangeEvent$().subscribe()}ngAfterViewInit(){typeof window>"u"||(this._layoutService.updateHeaderHeight(),this._layoutService.updateWindowSize(),(0,Wt.R)(window,"resize",{passive:!0}).pipe((0,di.B)(50),(0,ai.M)(()=>{this._layoutService.updateHeaderHeight(),this._layoutService.updateWindowSize()})).subscribe())}_routeChangeEvent$(){return typeof window>"u"?wn.w:this._router.events.pipe((0,ai.M)(N=>{(N instanceof jt.AL||N instanceof jt.Z)&&(this.routeLoading=!0),(N instanceof jt.vX||N instanceof jt.wF)&&(this.routeLoading=!1,this._langService.setCurrentLanguage(),this._cd.detectChanges())}))}_loadGoogleFonts(){if(typeof window>"u")return;const N=document.createElement("link");N.href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Sans+TC:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap",N.rel="stylesheet",document.head.append(N)}_registerCustomElements(){if(typeof window>"u"||!this._injector)return;const N=(K,ve)=>{customElements.define(K,function it(ue,j){const N=function Fe(ue,j){return j.get(V.OM3).resolveComponentFactory(ue).inputs}(ue,j.injector),K=j.strategyFactory||new he(ue,j.injector),ve=function de(ue){const j={};return ue.forEach(({propName:N,templateName:K,transform:ve})=>{j[function ge(ue){return ue.replace(/[A-Z]/g,j=>`-${j.toLowerCase()}`)}(K)]=[N,ve]}),j}(N);class Xe extends Se{static#e=this.observedAttributes=Object.keys(ve);get ngElementStrategy(){if(!this._ngElementStrategy){const I=this._ngElementStrategy=K.create(this.injector||j.injector);N.forEach(({propName:B,transform:R})=>{if(!this.hasOwnProperty(B))return;const q=this[B];delete this[B],I.setInputValue(B,q,R)})}return this._ngElementStrategy}constructor(I){super(),this.injector=I}attributeChangedCallback(I,B,R,q){const[ae,Ne]=ve[I];this.ngElementStrategy.setInputValue(ae,R,Ne)}connectedCallback(){let I=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),I=!0),this.ngElementStrategy.connect(this),I||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(I=>{const B=new CustomEvent(I.name,{detail:I.value});this.dispatchEvent(B)})}}return N.forEach(({propName:Ft,transform:I})=>{Object.defineProperty(Xe.prototype,Ft,{get(){return this.ngElementStrategy.getInputValue(Ft)},set(B){this.ngElementStrategy.setInputValue(Ft,B,I)},configurable:!0,enumerable:!0})}),Xe}(ve,{injector:this._injector}))};N("doc-code",Ze),N("doc-tab",xt),N("custom-loading",$i.l),N("doc-form-viewer",H.Y),N("input-layout-illustration",Je),N("form-style-tweaker",Mn)}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-root"]],standalone:!0,features:[V.aNF],decls:8,vars:11,consts:[[1,"duration-500","transition-opacity",3,"ngClass","ngStyle"],[3,"start"],[1,"top-bg"],[1,"flex","flex-col"]],template:function(K,ve){if(1&K&&(V.j41(0,"div",0),V.nI1(1,"async"),V.nrm(2,"ui-loading-indicator",1),V.nI1(3,"async"),V.nrm(4,"div",2)(5,"app-header"),V.j41(6,"div",3),V.nrm(7,"router-outlet"),V.k0s()()),2&K){let Xe;V.Y8G("ngClass",V.eq3(7,ti,ve.isServer))("ngStyle",V.eq3(9,Ni,V.bMT(1,3,ve.headerHeight$))),V.R7$(2),V.Y8G("start",ve.routeLoading||null!==(Xe=V.bMT(3,5,ve.docLoading$))&&void 0!==Xe&&Xe)}},dependencies:[o.MD,o.YU,o.B3,o.Jj,jt.n3,Di,pi],styles:[".top-bg[_ngcontent-%COMP%]{--grid-line-color: rgba(var(--text-color-rgb), .05);--grid-line-weight: 1px;--grid-size: 2rem;position:fixed;top:0;left:0;width:100%;height:60vh;background:linear-gradient(0deg,transparent 50%,var(--grid-line-color) 50%,transparent calc(50% + var(--grid-line-weight))),linear-gradient(90deg,transparent 50%,var(--grid-line-color) 50%,transparent calc(50% + var(--grid-line-weight)));background-repeat:repeat;background-size:var(--grid-size) var(--grid-size);-webkit-mask-image:linear-gradient(white,transparent);mask-image:linear-gradient(white,transparent);z-index:-100;pointer-events:none}"]})}return ue})();var lr=F(6409),Gr=F(194);function ks(ue){return new V.wOt(3e3,!1)}function fr(ue){switch(ue.length){case 0:return new Gr.sf;case 1:return ue[0];default:return new Gr.ui(ue)}}function Ao(ue,j,N=new Map,K=new Map){const ve=[],Xe=[];let Ft=-1,I=null;if(j.forEach(B=>{const R=B.get("offset"),q=R==Ft,ae=q&&I||new Map;B.forEach((Ne,bt)=>{let an=bt,un=Ne;if("offset"!==bt)switch(an=ue.normalizePropertyName(an,ve),un){case Gr.FX:un=N.get(bt);break;case Gr.kp:un=K.get(bt);break;default:un=ue.normalizeStyleValue(bt,an,un,ve)}ae.set(an,un)}),q||Xe.push(ae),I=ae,Ft=R}),ve.length)throw function rc(ue){return new V.wOt(3502,!1)}();return Xe}function ca(ue,j,N,K){switch(j){case"start":ue.onStart(()=>K(N&&Ya(N,"start",ue)));break;case"done":ue.onDone(()=>K(N&&Ya(N,"done",ue)));break;case"destroy":ue.onDestroy(()=>K(N&&Ya(N,"destroy",ue)))}}function Ya(ue,j,N){const Xe=za(ue.element,ue.triggerName,ue.fromState,ue.toState,j||ue.phaseName,N.totalTime??ue.totalTime,!!N.disabled),Ft=ue._data;return null!=Ft&&(Xe._data=Ft),Xe}function za(ue,j,N,K,ve="",Xe=0,Ft){return{element:ue,triggerName:j,fromState:N,toState:K,phaseName:ve,totalTime:Xe,disabled:!!Ft}}function qs(ue,j,N){let K=ue.get(j);return K||ue.set(j,K=N),K}function gr(ue){const j=ue.indexOf(":");return[ue.substring(1,j),ue.slice(j+1)]}const il=(()=>typeof document>"u"?null:document.documentElement)();function Wr(ue){const j=ue.parentNode||ue.host||null;return j===il?null:j}let Kn=null,ar=!1;function ka(ue,j){for(;j;){if(j===ue)return!0;j=Wr(j)}return!1}function Is(ue,j,N){if(N)return Array.from(ue.querySelectorAll(j));const K=ue.querySelector(j);return K?[K]:[]}let Es=(()=>{class ue{validateStyleProperty(N){return function Sa(ue){Kn||(Kn=function ns(){return typeof document<"u"?document.body:null}()||{},ar=!!Kn.style&&"WebkitAppearance"in Kn.style);let j=!0;return Kn.style&&!function yi(ue){return"ebkit"==ue.substring(1,6)}(ue)&&(j=ue in Kn.style,!j&&ar&&(j="Webkit"+ue.charAt(0).toUpperCase()+ue.slice(1)in Kn.style)),j}(N)}matchesElement(N,K){return!1}containsElement(N,K){return ka(N,K)}getParentElement(N){return Wr(N)}query(N,K,ve){return Is(N,K,ve)}computeStyle(N,K,ve){return ve||""}animate(N,K,ve,Xe,Ft,I=[],B){return new Gr.sf(ve,Xe)}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275prov=V.jDH({token:ue,factory:ue.\u0275fac})}return ue})(),ur=(()=>{class ue{static#e=this.NOOP=new Es}return ue})();const rr=1e3,Qs="ng-enter",la="ng-leave",Js="ng-trigger",ua=".ng-trigger",da="ng-animating",gl=".ng-animating";function No(ue){if("number"==typeof ue)return ue;const j=ue.match(/^(-?[\.\d]+)(m?s)/);return!j||j.length<2?0:ia(parseFloat(j[1]),j[2])}function ia(ue,j){return"s"===j?ue*rr:ue}function zc(ue,j,N){return ue.hasOwnProperty("duration")?ue:function Hl(ue,j,N){let ve,Xe=0,Ft="";if("string"==typeof ue){const I=ue.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===I)return j.push(ks()),{duration:0,delay:0,easing:""};ve=ia(parseFloat(I[1]),I[2]);const B=I[3];null!=B&&(Xe=ia(parseFloat(B),I[4]));const R=I[5];R&&(Ft=R)}else ve=ue;if(!N){let I=!1,B=j.length;ve<0&&(j.push(function Vr(){return new V.wOt(3100,!1)}()),I=!0),Xe<0&&(j.push(function Gs(){return new V.wOt(3101,!1)}()),I=!0),I&&j.splice(B,0,ks())}return{duration:ve,delay:Xe,easing:Ft}}(ue,j,N)}function rs(ue,j={}){return Object.keys(ue).forEach(N=>{j[N]=ue[N]}),j}function H1(ue){const j=new Map;return Object.keys(ue).forEach(N=>{j.set(N,ue[N])}),j}function Lr(ue,j=new Map,N){if(N)for(let[K,ve]of N)j.set(K,ve);for(let[K,ve]of ue)j.set(K,ve);return j}function vo(ue,j,N){j.forEach((K,ve)=>{const Xe=zl(ve);N&&!N.has(ve)&&N.set(ve,ue.style[Xe]),ue.style[Xe]=K})}function Ra(ue,j){j.forEach((N,K)=>{const ve=zl(K);ue.style[ve]=""})}function Qa(ue){return Array.isArray(ue)?1==ue.length?ue[0]:(0,Gr.K2)(ue):ue}const L1=new RegExp("{{\\s*(.+?)\\s*}}","g");function Na(ue){let j=[];if("string"==typeof ue){let N;for(;N=L1.exec(ue);)j.push(N[1]);L1.lastIndex=0}return j}function vs(ue,j,N){const K=ue.toString(),ve=K.replace(L1,(Xe,Ft)=>{let I=j[Ft];return null==I&&(N.push(function is(ue){return new V.wOt(3003,!1)}()),I=""),I.toString()});return ve==K?ue:ve}function Ja(ue){const j=[];let N=ue.next();for(;!N.done;)j.push(N.value),N=ue.next();return j}const pc=/-+([a-z0-9])/g;function zl(ue){return ue.replace(pc,(...j)=>j[1].toUpperCase())}function sc(ue,j,N){switch(j.type){case 7:return ue.visitTrigger(j,N);case 0:return ue.visitState(j,N);case 1:return ue.visitTransition(j,N);case 2:return ue.visitSequence(j,N);case 3:return ue.visitGroup(j,N);case 4:return ue.visitAnimate(j,N);case 5:return ue.visitKeyframes(j,N);case 6:return ue.visitStyle(j,N);case 8:return ue.visitReference(j,N);case 9:return ue.visitAnimateChild(j,N);case 10:return ue.visitAnimateRef(j,N);case 11:return ue.visitQuery(j,N);case 12:return ue.visitStagger(j,N);default:throw function Ro(ue){return new V.wOt(3004,!1)}()}}function ie(ue,j){return window.getComputedStyle(ue)[j]}const nn="*";function Qt(ue,j){const N=[];return"string"==typeof ue?ue.split(/\s*,\s*/).forEach(K=>function ne(ue,j,N){if(":"==ue[0]){const B=function fe(ue,j){switch(ue){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(N,K)=>parseFloat(K)>parseFloat(N);case":decrement":return(N,K)=>parseFloat(K) *"}}(ue,N);if("function"==typeof B)return void j.push(B);ue=B}const K=ue.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==K||K.length<4)return N.push(function Hc(ue){return new V.wOt(3015,!1)}()),j;const ve=K[1],Xe=K[2],Ft=K[3];j.push(mt(ve,Ft));"<"==Xe[0]&&!(ve==nn&&Ft==nn)&&j.push(mt(Ft,ve))}(K,N,j)):N.push(ue),N}const ee=new Set(["true","1"]),$e=new Set(["false","0"]);function mt(ue,j){const N=ee.has(ue)||$e.has(ue),K=ee.has(j)||$e.has(j);return(ve,Xe)=>{let Ft=ue==nn||ue==ve,I=j==nn||j==Xe;return!Ft&&N&&"boolean"==typeof ve&&(Ft=ve?ee.has(ue):$e.has(ue)),!I&&K&&"boolean"==typeof Xe&&(I=Xe?ee.has(j):$e.has(j)),Ft&&I}}const ir=new RegExp("s*:selfs*,?","g");function zr(ue,j,N,K){return new bi(ue).build(j,N,K)}class bi{constructor(j){this._driver=j}build(j,N,K){const ve=new Pa(N);return this._resetContextStyleTimingState(ve),sc(this,Qa(j),ve)}_resetContextStyleTimingState(j){j.currentQuerySelector="",j.collectedStyles=new Map,j.collectedStyles.set("",new Map),j.currentTime=0}visitTrigger(j,N){let K=N.queryCount=0,ve=N.depCount=0;const Xe=[],Ft=[];return"@"==j.name.charAt(0)&&N.errors.push(function Vo(){return new V.wOt(3006,!1)}()),j.definitions.forEach(I=>{if(this._resetContextStyleTimingState(N),0==I.type){const B=I,R=B.name;R.toString().split(/\s*,\s*/).forEach(q=>{B.name=q,Xe.push(this.visitState(B,N))}),B.name=R}else if(1==I.type){const B=this.visitTransition(I,N);K+=B.queryCount,ve+=B.depCount,Ft.push(B)}else N.errors.push(function qo(){return new V.wOt(3007,!1)}())}),{type:7,name:j.name,states:Xe,transitions:Ft,queryCount:K,depCount:ve,options:null}}visitState(j,N){const K=this.visitStyle(j.styles,N),ve=j.options&&j.options.params||null;if(K.containsDynamicStyles){const Xe=new Set,Ft=ve||{};K.styles.forEach(I=>{I instanceof Map&&I.forEach(B=>{Na(B).forEach(R=>{Ft.hasOwnProperty(R)||Xe.add(R)})})}),Xe.size&&(Ja(Xe.values()),N.errors.push(function ea(ue,j){return new V.wOt(3008,!1)}()))}return{type:0,name:j.name,style:K,options:ve?{params:ve}:null}}visitTransition(j,N){N.queryCount=0,N.depCount=0;const K=sc(this,Qa(j.animation),N);return{type:1,matchers:Qt(j.expr,N.errors),animation:K,queryCount:N.queryCount,depCount:N.depCount,options:Os(j.options)}}visitSequence(j,N){return{type:2,steps:j.steps.map(K=>sc(this,K,N)),options:Os(j.options)}}visitGroup(j,N){const K=N.currentTime;let ve=0;const Xe=j.steps.map(Ft=>{N.currentTime=K;const I=sc(this,Ft,N);return ve=Math.max(ve,N.currentTime),I});return N.currentTime=ve,{type:3,steps:Xe,options:Os(j.options)}}visitAnimate(j,N){const K=function ja(ue,j){if(ue.hasOwnProperty("duration"))return ue;if("number"==typeof ue)return rl(zc(ue,j).duration,0,"");const N=ue;if(N.split(/\s+/).some(Xe=>"{"==Xe.charAt(0)&&"{"==Xe.charAt(1))){const Xe=rl(0,0,"");return Xe.dynamic=!0,Xe.strValue=N,Xe}const ve=zc(N,j);return rl(ve.duration,ve.delay,ve.easing)}(j.timings,N.errors);N.currentAnimateTimings=K;let ve,Xe=j.styles?j.styles:(0,Gr.iF)({});if(5==Xe.type)ve=this.visitKeyframes(Xe,N);else{let Ft=j.styles,I=!1;if(!Ft){I=!0;const R={};K.easing&&(R.easing=K.easing),Ft=(0,Gr.iF)(R)}N.currentTime+=K.duration+K.delay;const B=this.visitStyle(Ft,N);B.isEmptyStep=I,ve=B}return N.currentAnimateTimings=null,{type:4,timings:K,style:ve,options:null}}visitStyle(j,N){const K=this._makeStyleAst(j,N);return this._validateStyleAst(K,N),K}_makeStyleAst(j,N){const K=[],ve=Array.isArray(j.styles)?j.styles:[j.styles];for(let I of ve)"string"==typeof I?I===Gr.kp?K.push(I):N.errors.push(new V.wOt(3002,!1)):K.push(H1(I));let Xe=!1,Ft=null;return K.forEach(I=>{if(I instanceof Map&&(I.has("easing")&&(Ft=I.get("easing"),I.delete("easing")),!Xe))for(let B of I.values())if(B.toString().indexOf("{{")>=0){Xe=!0;break}}),{type:6,styles:K,easing:Ft,offset:j.offset,containsDynamicStyles:Xe,options:null}}_validateStyleAst(j,N){const K=N.currentAnimateTimings;let ve=N.currentTime,Xe=N.currentTime;K&&Xe>0&&(Xe-=K.duration+K.delay),j.styles.forEach(Ft=>{"string"!=typeof Ft&&Ft.forEach((I,B)=>{const R=N.collectedStyles.get(N.currentQuerySelector),q=R.get(B);let ae=!0;q&&(Xe!=ve&&Xe>=q.startTime&&ve<=q.endTime&&(N.errors.push(function ta(ue,j,N,K,ve){return new V.wOt(3010,!1)}()),ae=!1),Xe=q.startTime),ae&&R.set(B,{startTime:Xe,endTime:ve}),N.options&&function Ea(ue,j,N){const K=j.params||{},ve=Na(ue);ve.length&&ve.forEach(Xe=>{K.hasOwnProperty(Xe)||N.push(function Fr(ue){return new V.wOt(3001,!1)}())})}(I,N.options,N.errors)})})}visitKeyframes(j,N){const K={type:5,styles:[],options:null};if(!N.currentAnimateTimings)return N.errors.push(function Ps(){return new V.wOt(3011,!1)}()),K;let Xe=0;const Ft=[];let I=!1,B=!1,R=0;const q=j.steps.map(Ji=>{const ls=this._makeStyleAst(Ji,N);let Ar=null!=ls.offset?ls.offset:function Kr(ue){if("string"==typeof ue)return null;let j=null;if(Array.isArray(ue))ue.forEach(N=>{if(N instanceof Map&&N.has("offset")){const K=N;j=parseFloat(K.get("offset")),K.delete("offset")}});else if(ue instanceof Map&&ue.has("offset")){const N=ue;j=parseFloat(N.get("offset")),N.delete("offset")}return j}(ls.styles),Po=0;return null!=Ar&&(Xe++,Po=ls.offset=Ar),B=B||Po<0||Po>1,I=I||Po0&&Xe{const Ar=Ne>0?ls==bt?1:Ne*ls:Ft[ls],Po=Ar*Ci;N.currentTime=an+un.delay+Po,un.duration=Po,this._validateStyleAst(Ji,N),Ji.offset=Ar,K.styles.push(Ji)}),K}visitReference(j,N){return{type:8,animation:sc(this,Qa(j.animation),N),options:Os(j.options)}}visitAnimateChild(j,N){return N.depCount++,{type:9,options:Os(j.options)}}visitAnimateRef(j,N){return{type:10,animation:this.visitReference(j.animation,N),options:Os(j.options)}}visitQuery(j,N){const K=N.currentQuerySelector,ve=j.options||{};N.queryCount++,N.currentQuery=j;const[Xe,Ft]=function Bo(ue){const j=!!ue.split(/\s*,\s*/).find(N=>":self"==N);return j&&(ue=ue.replace(ir,"")),ue=ue.replace(/@\*/g,ua).replace(/@\w+/g,N=>ua+"-"+N.slice(1)).replace(/:animating/g,gl),[ue,j]}(j.selector);N.currentQuerySelector=K.length?K+" "+Xe:Xe,qs(N.collectedStyles,N.currentQuerySelector,new Map);const I=sc(this,Qa(j.animation),N);return N.currentQuery=null,N.currentQuerySelector=K,{type:11,selector:Xe,limit:ve.limit||0,optional:!!ve.optional,includeSelf:Ft,animation:I,originalSelector:j.selector,options:Os(j.options)}}visitStagger(j,N){N.currentQuery||N.errors.push(function ao(){return new V.wOt(3013,!1)}());const K="full"===j.timings?{duration:0,delay:0,easing:"full"}:zc(j.timings,N.errors,!0);return{type:12,animation:sc(this,Qa(j.animation),N),timings:K,options:null}}}class Pa{constructor(j){this.errors=j,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 Os(ue){return ue?(ue=rs(ue)).params&&(ue.params=function So(ue){return ue?rs(ue):null}(ue.params)):ue={},ue}function rl(ue,j,N){return{duration:ue,delay:j,easing:N}}function ba(ue,j,N,K,ve,Xe,Ft=null,I=!1){return{type:1,element:ue,keyframes:j,preStyleProps:N,postStyleProps:K,duration:ve,delay:Xe,totalTime:ve+Xe,easing:Ft,subTimeline:I}}class Mc{constructor(){this._map=new Map}get(j){return this._map.get(j)||[]}append(j,N){let K=this._map.get(j);K||this._map.set(j,K=[]),K.push(...N)}has(j){return this._map.has(j)}clear(){this._map.clear()}}const Mu=new RegExp(":enter","g"),M2=new RegExp(":leave","g");function fa(ue,j,N,K,ve,Xe=new Map,Ft=new Map,I,B,R=[]){return(new e2).buildKeyframes(ue,j,N,K,ve,Xe,Ft,I,B,R)}class e2{buildKeyframes(j,N,K,ve,Xe,Ft,I,B,R,q=[]){R=R||new Mc;const ae=new z1(j,N,R,ve,Xe,q,[]);ae.options=B;const Ne=B.delay?No(B.delay):0;ae.currentTimeline.delayNextStep(Ne),ae.currentTimeline.setStyles([Ft],null,ae.errors,B),sc(this,K,ae);const bt=ae.timelines.filter(an=>an.containsAnimation());if(bt.length&&I.size){let an;for(let un=bt.length-1;un>=0;un--){const Ci=bt[un];if(Ci.element===N){an=Ci;break}}an&&!an.allowOnlyTimelineStyles()&&an.setStyles([I],null,ae.errors,B)}return bt.length?bt.map(an=>an.buildKeyframes()):[ba(N,[],[],[],0,Ne,"",!1)]}visitTrigger(j,N){}visitState(j,N){}visitTransition(j,N){}visitAnimateChild(j,N){const K=N.subInstructions.get(N.element);if(K){const ve=N.createSubContext(j.options),Xe=N.currentTimeline.currentTime,Ft=this._visitSubInstructions(K,ve,ve.options);Xe!=Ft&&N.transformIntoNewTimeline(Ft)}N.previousNode=j}visitAnimateRef(j,N){const K=N.createSubContext(j.options);K.transformIntoNewTimeline(),this._applyAnimationRefDelays([j.options,j.animation.options],N,K),this.visitReference(j.animation,K),N.transformIntoNewTimeline(K.currentTimeline.currentTime),N.previousNode=j}_applyAnimationRefDelays(j,N,K){for(const ve of j){const Xe=ve?.delay;if(Xe){const Ft="number"==typeof Xe?Xe:No(vs(Xe,ve?.params??{},N.errors));K.delayNextStep(Ft)}}}_visitSubInstructions(j,N,K){let Xe=N.currentTimeline.currentTime;const Ft=null!=K.duration?No(K.duration):null,I=null!=K.delay?No(K.delay):null;return 0!==Ft&&j.forEach(B=>{const R=N.appendInstructionToTimeline(B,Ft,I);Xe=Math.max(Xe,R.duration+R.delay)}),Xe}visitReference(j,N){N.updateOptions(j.options,!0),sc(this,j.animation,N),N.previousNode=j}visitSequence(j,N){const K=N.subContextCount;let ve=N;const Xe=j.options;if(Xe&&(Xe.params||Xe.delay)&&(ve=N.createSubContext(Xe),ve.transformIntoNewTimeline(),null!=Xe.delay)){6==ve.previousNode.type&&(ve.currentTimeline.snapshotCurrentStyles(),ve.previousNode=u1);const Ft=No(Xe.delay);ve.delayNextStep(Ft)}j.steps.length&&(j.steps.forEach(Ft=>sc(this,Ft,ve)),ve.currentTimeline.applyStylesToKeyframe(),ve.subContextCount>K&&ve.transformIntoNewTimeline()),N.previousNode=j}visitGroup(j,N){const K=[];let ve=N.currentTimeline.currentTime;const Xe=j.options&&j.options.delay?No(j.options.delay):0;j.steps.forEach(Ft=>{const I=N.createSubContext(j.options);Xe&&I.delayNextStep(Xe),sc(this,Ft,I),ve=Math.max(ve,I.currentTimeline.currentTime),K.push(I.currentTimeline)}),K.forEach(Ft=>N.currentTimeline.mergeTimelineCollectedStyles(Ft)),N.transformIntoNewTimeline(ve),N.previousNode=j}_visitTiming(j,N){if(j.dynamic){const K=j.strValue;return zc(N.params?vs(K,N.params,N.errors):K,N.errors)}return{duration:j.duration,delay:j.delay,easing:j.easing}}visitAnimate(j,N){const K=N.currentAnimateTimings=this._visitTiming(j.timings,N),ve=N.currentTimeline;K.delay&&(N.incrementTime(K.delay),ve.snapshotCurrentStyles());const Xe=j.style;5==Xe.type?this.visitKeyframes(Xe,N):(N.incrementTime(K.duration),this.visitStyle(Xe,N),ve.applyStylesToKeyframe()),N.currentAnimateTimings=null,N.previousNode=j}visitStyle(j,N){const K=N.currentTimeline,ve=N.currentAnimateTimings;!ve&&K.hasCurrentStyleProperties()&&K.forwardFrame();const Xe=ve&&ve.easing||j.easing;j.isEmptyStep?K.applyEmptyStep(Xe):K.setStyles(j.styles,Xe,N.errors,N.options),N.previousNode=j}visitKeyframes(j,N){const K=N.currentAnimateTimings,ve=N.currentTimeline.duration,Xe=K.duration,I=N.createSubContext().currentTimeline;I.easing=K.easing,j.styles.forEach(B=>{I.forwardTime((B.offset||0)*Xe),I.setStyles(B.styles,B.easing,N.errors,N.options),I.applyStylesToKeyframe()}),N.currentTimeline.mergeTimelineCollectedStyles(I),N.transformIntoNewTimeline(ve+Xe),N.previousNode=j}visitQuery(j,N){const K=N.currentTimeline.currentTime,ve=j.options||{},Xe=ve.delay?No(ve.delay):0;Xe&&(6===N.previousNode.type||0==K&&N.currentTimeline.hasCurrentStyleProperties())&&(N.currentTimeline.snapshotCurrentStyles(),N.previousNode=u1);let Ft=K;const I=N.invokeQuery(j.selector,j.originalSelector,j.limit,j.includeSelf,!!ve.optional,N.errors);N.currentQueryTotal=I.length;let B=null;I.forEach((R,q)=>{N.currentQueryIndex=q;const ae=N.createSubContext(j.options,R);Xe&&ae.delayNextStep(Xe),R===N.element&&(B=ae.currentTimeline),sc(this,j.animation,ae),ae.currentTimeline.applyStylesToKeyframe(),Ft=Math.max(Ft,ae.currentTimeline.currentTime)}),N.currentQueryIndex=0,N.currentQueryTotal=0,N.transformIntoNewTimeline(Ft),B&&(N.currentTimeline.mergeTimelineCollectedStyles(B),N.currentTimeline.snapshotCurrentStyles()),N.previousNode=j}visitStagger(j,N){const K=N.parentContext,ve=N.currentTimeline,Xe=j.timings,Ft=Math.abs(Xe.duration),I=Ft*(N.currentQueryTotal-1);let B=Ft*N.currentQueryIndex;switch(Xe.duration<0?"reverse":Xe.easing){case"reverse":B=I-B;break;case"full":B=K.currentStaggerTime}const q=N.currentTimeline;B&&q.delayNextStep(B);const ae=q.currentTime;sc(this,j.animation,N),N.previousNode=j,K.currentStaggerTime=ve.currentTime-ae+(ve.startTime-K.currentTimeline.startTime)}}const u1={};class z1{constructor(j,N,K,ve,Xe,Ft,I,B){this._driver=j,this.element=N,this.subInstructions=K,this._enterClassName=ve,this._leaveClassName=Xe,this.errors=Ft,this.timelines=I,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=u1,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=B||new Xl(this._driver,N,0),I.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(j,N){if(!j)return;const K=j;let ve=this.options;null!=K.duration&&(ve.duration=No(K.duration)),null!=K.delay&&(ve.delay=No(K.delay));const Xe=K.params;if(Xe){let Ft=ve.params;Ft||(Ft=this.options.params={}),Object.keys(Xe).forEach(I=>{(!N||!Ft.hasOwnProperty(I))&&(Ft[I]=vs(Xe[I],Ft,this.errors))})}}_copyOptions(){const j={};if(this.options){const N=this.options.params;if(N){const K=j.params={};Object.keys(N).forEach(ve=>{K[ve]=N[ve]})}}return j}createSubContext(j=null,N,K){const ve=N||this.element,Xe=new z1(this._driver,ve,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ve,K||0));return Xe.previousNode=this.previousNode,Xe.currentAnimateTimings=this.currentAnimateTimings,Xe.options=this._copyOptions(),Xe.updateOptions(j),Xe.currentQueryIndex=this.currentQueryIndex,Xe.currentQueryTotal=this.currentQueryTotal,Xe.parentContext=this,this.subContextCount++,Xe}transformIntoNewTimeline(j){return this.previousNode=u1,this.currentTimeline=this.currentTimeline.fork(this.element,j),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(j,N,K){const ve={duration:N??j.duration,delay:this.currentTimeline.currentTime+(K??0)+j.delay,easing:""},Xe=new y1(this._driver,j.element,j.keyframes,j.preStyleProps,j.postStyleProps,ve,j.stretchStartingKeyframe);return this.timelines.push(Xe),ve}incrementTime(j){this.currentTimeline.forwardTime(this.currentTimeline.duration+j)}delayNextStep(j){j>0&&this.currentTimeline.delayNextStep(j)}invokeQuery(j,N,K,ve,Xe,Ft){let I=[];if(ve&&I.push(this.element),j.length>0){j=(j=j.replace(Mu,"."+this._enterClassName)).replace(M2,"."+this._leaveClassName);let R=this._driver.query(this.element,j,1!=K);0!==K&&(R=K<0?R.slice(R.length+K,R.length):R.slice(0,K)),I.push(...R)}return!Xe&&0==I.length&&Ft.push(function l1(ue){return new V.wOt(3014,!1)}()),I}}class Xl{constructor(j,N,K,ve){this._driver=j,this.element=N,this.startTime=K,this._elementTimelineStylesLookup=ve,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(N),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(N,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(j){const N=1===this._keyframes.size&&this._pendingStyles.size;this.duration||N?(this.forwardTime(this.currentTime+j),N&&this.snapshotCurrentStyles()):this.startTime+=j}fork(j,N){return this.applyStylesToKeyframe(),new Xl(this._driver,j,N||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(j){this.applyStylesToKeyframe(),this.duration=j,this._loadKeyframe()}_updateStyle(j,N){this._localTimelineStyles.set(j,N),this._globalTimelineStyles.set(j,N),this._styleSummary.set(j,{time:this.currentTime,value:N})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(j){j&&this._previousKeyframe.set("easing",j);for(let[N,K]of this._globalTimelineStyles)this._backFill.set(N,K||Gr.kp),this._currentKeyframe.set(N,Gr.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(j,N,K,ve){N&&this._previousKeyframe.set("easing",N);const Xe=ve&&ve.params||{},Ft=function sl(ue,j){const N=new Map;let K;return ue.forEach(ve=>{if("*"===ve){K=K||j.keys();for(let Xe of K)N.set(Xe,Gr.kp)}else Lr(ve,N)}),N}(j,this._globalTimelineStyles);for(let[I,B]of Ft){const R=vs(B,Xe,K);this._pendingStyles.set(I,R),this._localTimelineStyles.has(I)||this._backFill.set(I,this._globalTimelineStyles.get(I)??Gr.kp),this._updateStyle(I,R)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((j,N)=>{this._currentKeyframe.set(N,j)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((j,N)=>{this._currentKeyframe.has(N)||this._currentKeyframe.set(N,j)}))}snapshotCurrentStyles(){for(let[j,N]of this._localTimelineStyles)this._pendingStyles.set(j,N),this._updateStyle(j,N)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const j=[];for(let N in this._currentKeyframe)j.push(N);return j}mergeTimelineCollectedStyles(j){j._styleSummary.forEach((N,K)=>{const ve=this._styleSummary.get(K);(!ve||N.time>ve.time)&&this._updateStyle(K,N.value)})}buildKeyframes(){this.applyStylesToKeyframe();const j=new Set,N=new Set,K=1===this._keyframes.size&&0===this.duration;let ve=[];this._keyframes.forEach((I,B)=>{const R=Lr(I,new Map,this._backFill);R.forEach((q,ae)=>{q===Gr.FX?j.add(ae):q===Gr.kp&&N.add(ae)}),K||R.set("offset",B/this.duration),ve.push(R)});const Xe=j.size?Ja(j.values()):[],Ft=N.size?Ja(N.values()):[];if(K){const I=ve[0],B=new Map(I);I.set("offset",0),B.set("offset",1),ve=[I,B]}return ba(this.element,ve,Xe,Ft,this.duration,this.startTime,this.easing,!1)}}class y1 extends Xl{constructor(j,N,K,ve,Xe,Ft,I=!1){super(j,N,Ft.delay),this.keyframes=K,this.preStyleProps=ve,this.postStyleProps=Xe,this._stretchStartingKeyframe=I,this.timings={duration:Ft.duration,delay:Ft.delay,easing:Ft.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let j=this.keyframes,{delay:N,duration:K,easing:ve}=this.timings;if(this._stretchStartingKeyframe&&N){const Xe=[],Ft=K+N,I=N/Ft,B=Lr(j[0]);B.set("offset",0),Xe.push(B);const R=Lr(j[0]);R.set("offset",_l(I)),Xe.push(R);const q=j.length-1;for(let ae=1;ae<=q;ae++){let Ne=Lr(j[ae]);const bt=Ne.get("offset");Ne.set("offset",_l((N+bt*K)/Ft)),Xe.push(Ne)}K=Ft,N=0,ve="",j=Xe}return ba(this.element,j,this.preStyleProps,this.postStyleProps,K,N,ve,!0)}}function _l(ue,j=3){const N=Math.pow(10,j-1);return Math.round(ue*N)/N}class d1{}const bl=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 tu extends d1{normalizePropertyName(j,N){return zl(j)}normalizeStyleValue(j,N,K,ve){let Xe="";const Ft=K.toString().trim();if(bl.has(N)&&0!==K&&"0"!==K)if("number"==typeof K)Xe="px";else{const I=K.match(/^[+-]?[\d\.]+([a-z]*)$/);I&&0==I[1].length&&ve.push(function Zo(ue,j){return new V.wOt(3005,!1)}())}return Ft+Xe}}function C1(ue,j,N,K,ve,Xe,Ft,I,B,R,q,ae,Ne){return{type:0,element:ue,triggerName:j,isRemovalTransition:ve,fromState:N,fromStyles:Xe,toState:K,toStyles:Ft,timelines:I,queriedElements:B,preStyleProps:R,postStyleProps:q,totalTime:ae,errors:Ne}}const Sc={};class nu{constructor(j,N,K){this._triggerName=j,this.ast=N,this._stateStyles=K}match(j,N,K,ve){return function Du(ue,j,N,K,ve){return ue.some(Xe=>Xe(j,N,K,ve))}(this.ast.matchers,j,N,K,ve)}buildStyles(j,N,K){let ve=this._stateStyles.get("*");return void 0!==j&&(ve=this._stateStyles.get(j?.toString())||ve),ve?ve.buildStyles(N,K):new Map}build(j,N,K,ve,Xe,Ft,I,B,R,q){const ae=[],Ne=this.ast.options&&this.ast.options.params||Sc,an=this.buildStyles(K,I&&I.params||Sc,ae),un=B&&B.params||Sc,Ci=this.buildStyles(ve,un,ae),Ji=new Set,ls=new Map,Ar=new Map,Po="void"===ve,al={params:iu(un,Ne),delay:this.ast.options?.delay},Xo=q?[]:fa(j,N,this.ast.animation,Xe,Ft,an,Ci,al,R,ae);let Ko=0;if(Xo.forEach(vc=>{Ko=Math.max(vc.duration+vc.delay,Ko)}),ae.length)return C1(N,this._triggerName,K,ve,Po,an,Ci,[],[],ls,Ar,Ko,ae);Xo.forEach(vc=>{const bo=vc.element,Ou=qs(ls,bo,new Set);vc.preStyleProps.forEach(Rc=>Ou.add(Rc));const Hu=qs(Ar,bo,new Set);vc.postStyleProps.forEach(Rc=>Hu.add(Rc)),bo!==N&&Ji.add(bo)});const Io=Ja(Ji.values());return C1(N,this._triggerName,K,ve,Po,an,Ci,Xo,Io,ls,Ar,Ko)}}function iu(ue,j){const N=rs(j);for(const K in ue)ue.hasOwnProperty(K)&&null!=ue[K]&&(N[K]=ue[K]);return N}class sd{constructor(j,N,K){this.styles=j,this.defaultParams=N,this.normalizer=K}buildStyles(j,N){const K=new Map,ve=rs(this.defaultParams);return Object.keys(j).forEach(Xe=>{const Ft=j[Xe];null!==Ft&&(ve[Xe]=Ft)}),this.styles.styles.forEach(Xe=>{"string"!=typeof Xe&&Xe.forEach((Ft,I)=>{Ft&&(Ft=vs(Ft,ve,N));const B=this.normalizer.normalizePropertyName(I,N);Ft=this.normalizer.normalizeStyleValue(I,B,Ft,N),K.set(I,Ft)})}),K}}class od{constructor(j,N,K){this.name=j,this.ast=N,this._normalizer=K,this.transitionFactories=[],this.states=new Map,N.states.forEach(ve=>{this.states.set(ve.name,new sd(ve.style,ve.options&&ve.options.params||{},K))}),Pe(this.states,"true","1"),Pe(this.states,"false","0"),N.transitions.forEach(ve=>{this.transitionFactories.push(new nu(j,ve,this.states))}),this.fallbackTransition=function X(ue,j,N){return new nu(ue,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ft,I)=>!0],options:null,queryCount:0,depCount:0},j)}(j,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(j,N,K,ve){return this.transitionFactories.find(Ft=>Ft.match(j,N,K,ve))||null}matchStyles(j,N,K){return this.fallbackTransition.buildStyles(j,N,K)}}function Pe(ue,j,N){ue.has(j)?ue.has(N)||ue.set(N,ue.get(j)):ue.has(N)&&ue.set(j,ue.get(N))}const le=new Mc;class Ie{constructor(j,N,K){this.bodyNode=j,this._driver=N,this._normalizer=K,this._animations=new Map,this._playersById=new Map,this.players=[]}register(j,N){const K=[],Xe=zr(this._driver,N,K,[]);if(K.length)throw function ql(ue){return new V.wOt(3503,!1)}();this._animations.set(j,Xe)}_buildPlayer(j,N,K){const ve=j.element,Xe=Ao(this._normalizer,j.keyframes,N,K);return this._driver.animate(ve,Xe,j.duration,j.delay,j.easing,[],!0)}create(j,N,K={}){const ve=[],Xe=this._animations.get(j);let Ft;const I=new Map;if(Xe?(Ft=fa(this._driver,N,Xe,Qs,la,new Map,new Map,K,le,ve),Ft.forEach(q=>{const ae=qs(I,q.element,new Map);q.postStyleProps.forEach(Ne=>ae.set(Ne,null))})):(ve.push(function go(){return new V.wOt(3300,!1)}()),Ft=[]),ve.length)throw function Xa(ue){return new V.wOt(3504,!1)}();I.forEach((q,ae)=>{q.forEach((Ne,bt)=>{q.set(bt,this._driver.computeStyle(ae,bt,Gr.kp))})});const R=fr(Ft.map(q=>{const ae=I.get(q.element);return this._buildPlayer(q,new Map,ae)}));return this._playersById.set(j,R),R.onDestroy(()=>this.destroy(j)),this.players.push(R),R}destroy(j){const N=this._getPlayer(j);N.destroy(),this._playersById.delete(j);const K=this.players.indexOf(N);K>=0&&this.players.splice(K,1)}_getPlayer(j){const N=this._playersById.get(j);if(!N)throw function Ws(ue){return new V.wOt(3301,!1)}();return N}listen(j,N,K,ve){const Xe=za(N,"","","");return ca(this._getPlayer(j),K,Xe,ve),()=>{}}command(j,N,K,ve){if("register"==K)return void this.register(j,ve[0]);if("create"==K)return void this.create(j,N,ve[0]||{});const Xe=this._getPlayer(j);switch(K){case"play":Xe.play();break;case"pause":Xe.pause();break;case"reset":Xe.reset();break;case"restart":Xe.restart();break;case"finish":Xe.finish();break;case"init":Xe.init();break;case"setPosition":Xe.setPosition(parseFloat(ve[0]));break;case"destroy":this.destroy(j)}}}const Ot="ng-animate-queued",Pn="ng-animate-disabled",Ds=[],xr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ko={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ms="__ng_removed";class ha{get params(){return this.options.params}constructor(j,N=""){this.namespaceId=N;const K=j&&j.hasOwnProperty("value");if(this.value=function yl(ue){return ue??null}(K?j.value:j),K){const Xe=rs(j);delete Xe.value,this.options=Xe}else this.options={};this.options.params||(this.options.params={})}absorbOptions(j){const N=j.params;if(N){const K=this.options.params;Object.keys(N).forEach(ve=>{null==K[ve]&&(K[ve]=N[ve])})}}}const Fa="void",mc=new ha(Fa);class kc{constructor(j,N,K){this.id=j,this.hostElement=N,this._engine=K,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+j,ac(N,this._hostClassName)}listen(j,N,K,ve){if(!this._triggers.has(N))throw function tl(ue,j){return new V.wOt(3302,!1)}();if(null==K||0==K.length)throw function As(ue){return new V.wOt(3303,!1)}();if(!function $o(ue){return"start"==ue||"done"==ue}(K))throw function wo(ue,j){return new V.wOt(3400,!1)}();const Xe=qs(this._elementListeners,j,[]),Ft={name:N,phase:K,callback:ve};Xe.push(Ft);const I=qs(this._engine.statesByElement,j,new Map);return I.has(N)||(ac(j,Js),ac(j,Js+"-"+N),I.set(N,mc)),()=>{this._engine.afterFlush(()=>{const B=Xe.indexOf(Ft);B>=0&&Xe.splice(B,1),this._triggers.has(N)||I.delete(N)})}}register(j,N){return!this._triggers.has(j)&&(this._triggers.set(j,N),!0)}_getTrigger(j){const N=this._triggers.get(j);if(!N)throw function nl(ue){return new V.wOt(3401,!1)}();return N}trigger(j,N,K,ve=!0){const Xe=this._getTrigger(N),Ft=new uo(this.id,N,j);let I=this._engine.statesByElement.get(j);I||(ac(j,Js),ac(j,Js+"-"+N),this._engine.statesByElement.set(j,I=new Map));let B=I.get(N);const R=new ha(K,this.id);if(!(K&&K.hasOwnProperty("value"))&&B&&R.absorbOptions(B.options),I.set(N,R),B||(B=mc),R.value!==Fa&&B.value===R.value){if(!function Gd(ue,j){const N=Object.keys(ue),K=Object.keys(j);if(N.length!=K.length)return!1;for(let ve=0;ve{Ra(j,Ci),vo(j,Ji)})}return}const Ne=qs(this._engine.playersByElement,j,[]);Ne.forEach(un=>{un.namespaceId==this.id&&un.triggerName==N&&un.queued&&un.destroy()});let bt=Xe.matchTransition(B.value,R.value,j,R.params),an=!1;if(!bt){if(!ve)return;bt=Xe.fallbackTransition,an=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:j,triggerName:N,transition:bt,fromState:B,toState:R,player:Ft,isFallbackTransition:an}),an||(ac(j,Ot),Ft.onStart(()=>{R1(j,Ot)})),Ft.onDone(()=>{let un=this.players.indexOf(Ft);un>=0&&this.players.splice(un,1);const Ci=this._engine.playersByElement.get(j);if(Ci){let Ji=Ci.indexOf(Ft);Ji>=0&&Ci.splice(Ji,1)}}),this.players.push(Ft),Ne.push(Ft),Ft}deregister(j){this._triggers.delete(j),this._engine.statesByElement.forEach(N=>N.delete(j)),this._elementListeners.forEach((N,K)=>{this._elementListeners.set(K,N.filter(ve=>ve.name!=j))})}clearElementCache(j){this._engine.statesByElement.delete(j),this._elementListeners.delete(j);const N=this._engine.playersByElement.get(j);N&&(N.forEach(K=>K.destroy()),this._engine.playersByElement.delete(j))}_signalRemovalForInnerTriggers(j,N){const K=this._engine.driver.query(j,ua,!0);K.forEach(ve=>{if(ve[ms])return;const Xe=this._engine.fetchNamespacesByElement(ve);Xe.size?Xe.forEach(Ft=>Ft.triggerLeaveAnimation(ve,N,!1,!0)):this.clearElementCache(ve)}),this._engine.afterFlushAnimationsDone(()=>K.forEach(ve=>this.clearElementCache(ve)))}triggerLeaveAnimation(j,N,K,ve){const Xe=this._engine.statesByElement.get(j),Ft=new Map;if(Xe){const I=[];if(Xe.forEach((B,R)=>{if(Ft.set(R,B.value),this._triggers.has(R)){const q=this.trigger(j,R,Fa,ve);q&&I.push(q)}}),I.length)return this._engine.markElementAsRemoved(this.id,j,!0,N,Ft),K&&fr(I).onDone(()=>this._engine.processLeaveNode(j)),!0}return!1}prepareLeaveAnimationListeners(j){const N=this._elementListeners.get(j),K=this._engine.statesByElement.get(j);if(N&&K){const ve=new Set;N.forEach(Xe=>{const Ft=Xe.name;if(ve.has(Ft))return;ve.add(Ft);const B=this._triggers.get(Ft).fallbackTransition,R=K.get(Ft)||mc,q=new ha(Fa),ae=new uo(this.id,Ft,j);this._engine.totalQueuedPlayers++,this._queue.push({element:j,triggerName:Ft,transition:B,fromState:R,toState:q,player:ae,isFallbackTransition:!0})})}}removeNode(j,N){const K=this._engine;if(j.childElementCount&&this._signalRemovalForInnerTriggers(j,N),this.triggerLeaveAnimation(j,N,!0))return;let ve=!1;if(K.totalAnimations){const Xe=K.players.length?K.playersByQueriedElement.get(j):[];if(Xe&&Xe.length)ve=!0;else{let Ft=j;for(;Ft=Ft.parentNode;)if(K.statesByElement.get(Ft)){ve=!0;break}}}if(this.prepareLeaveAnimationListeners(j),ve)K.markElementAsRemoved(this.id,j,!1,N);else{const Xe=j[ms];(!Xe||Xe===xr)&&(K.afterFlush(()=>this.clearElementCache(j)),K.destroyInnerAnimations(j),K._onRemovalComplete(j,N))}}insertNode(j,N){ac(j,this._hostClassName)}drainQueuedTransitions(j){const N=[];return this._queue.forEach(K=>{const ve=K.player;if(ve.destroyed)return;const Xe=K.element,Ft=this._elementListeners.get(Xe);Ft&&Ft.forEach(I=>{if(I.name==K.triggerName){const B=za(Xe,K.triggerName,K.fromState.value,K.toState.value);B._data=j,ca(K.player,I.phase,B,I.callback)}}),ve.markedForDestroy?this._engine.afterFlush(()=>{ve.destroy()}):N.push(K)}),this._queue=[],N.sort((K,ve)=>{const Xe=K.transition.ast.depCount,Ft=ve.transition.ast.depCount;return 0==Xe||0==Ft?Xe-Ft:this._engine.driver.containsElement(K.element,ve.element)?1:-1})}destroy(j){this.players.forEach(N=>N.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,j)}}class js{_onRemovalComplete(j,N){this.onRemovalComplete(j,N)}constructor(j,N,K){this.bodyNode=j,this.driver=N,this._normalizer=K,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=(ve,Xe)=>{}}get queuedPlayers(){const j=[];return this._namespaceList.forEach(N=>{N.players.forEach(K=>{K.queued&&j.push(K)})}),j}createNamespace(j,N){const K=new kc(j,N,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,N)?this._balanceNamespaceList(K,N):(this.newHostElements.set(N,K),this.collectEnterElement(N)),this._namespaceLookup[j]=K}_balanceNamespaceList(j,N){const K=this._namespaceList,ve=this.namespacesByHostElement;if(K.length-1>=0){let Ft=!1,I=this.driver.getParentElement(N);for(;I;){const B=ve.get(I);if(B){const R=K.indexOf(B);K.splice(R+1,0,j),Ft=!0;break}I=this.driver.getParentElement(I)}Ft||K.unshift(j)}else K.push(j);return ve.set(N,j),j}register(j,N){let K=this._namespaceLookup[j];return K||(K=this.createNamespace(j,N)),K}registerTrigger(j,N,K){let ve=this._namespaceLookup[j];ve&&ve.register(N,K)&&this.totalAnimations++}destroy(j,N){j&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const K=this._fetchNamespace(j);this.namespacesByHostElement.delete(K.hostElement);const ve=this._namespaceList.indexOf(K);ve>=0&&this._namespaceList.splice(ve,1),K.destroy(N),delete this._namespaceLookup[j]}))}_fetchNamespace(j){return this._namespaceLookup[j]}fetchNamespacesByElement(j){const N=new Set,K=this.statesByElement.get(j);if(K)for(let ve of K.values())if(ve.namespaceId){const Xe=this._fetchNamespace(ve.namespaceId);Xe&&N.add(Xe)}return N}trigger(j,N,K,ve){if(S2(N)){const Xe=this._fetchNamespace(j);if(Xe)return Xe.trigger(N,K,ve),!0}return!1}insertNode(j,N,K,ve){if(!S2(N))return;const Xe=N[ms];if(Xe&&Xe.setForRemoval){Xe.setForRemoval=!1,Xe.setForMove=!0;const Ft=this.collectedLeaveElements.indexOf(N);Ft>=0&&this.collectedLeaveElements.splice(Ft,1)}if(j){const Ft=this._fetchNamespace(j);Ft&&Ft.insertNode(N,K)}ve&&this.collectEnterElement(N)}collectEnterElement(j){this.collectedEnterElements.push(j)}markElementAsDisabled(j,N){N?this.disabledNodes.has(j)||(this.disabledNodes.add(j),ac(j,Pn)):this.disabledNodes.has(j)&&(this.disabledNodes.delete(j),R1(j,Pn))}removeNode(j,N,K){if(S2(N)){const ve=j?this._fetchNamespace(j):null;ve?ve.removeNode(N,K):this.markElementAsRemoved(j,N,!1,K);const Xe=this.namespacesByHostElement.get(N);Xe&&Xe.id!==j&&Xe.removeNode(N,K)}else this._onRemovalComplete(N,K)}markElementAsRemoved(j,N,K,ve,Xe){this.collectedLeaveElements.push(N),N[ms]={namespaceId:j,setForRemoval:ve,hasAnimation:K,removedBeforeQueried:!1,previousTriggersValues:Xe}}listen(j,N,K,ve,Xe){return S2(N)?this._fetchNamespace(j).listen(N,K,ve,Xe):()=>{}}_buildInstruction(j,N,K,ve,Xe){return j.transition.build(this.driver,j.element,j.fromState.value,j.toState.value,K,ve,j.fromState.options,j.toState.options,N,Xe)}destroyInnerAnimations(j){let N=this.driver.query(j,ua,!0);N.forEach(K=>this.destroyActiveAnimationsForElement(K)),0!=this.playersByQueriedElement.size&&(N=this.driver.query(j,gl,!0),N.forEach(K=>this.finishActiveQueriedAnimationOnElement(K)))}destroyActiveAnimationsForElement(j){const N=this.playersByElement.get(j);N&&N.forEach(K=>{K.queued?K.markedForDestroy=!0:K.destroy()})}finishActiveQueriedAnimationOnElement(j){const N=this.playersByQueriedElement.get(j);N&&N.forEach(K=>K.finish())}whenRenderingDone(){return new Promise(j=>{if(this.players.length)return fr(this.players).onDone(()=>j());j()})}processLeaveNode(j){const N=j[ms];if(N&&N.setForRemoval){if(j[ms]=xr,N.namespaceId){this.destroyInnerAnimations(j);const K=this._fetchNamespace(N.namespaceId);K&&K.clearElementCache(j)}this._onRemovalComplete(j,N.setForRemoval)}j.classList?.contains(Pn)&&this.markElementAsDisabled(j,!1),this.driver.query(j,".ng-animate-disabled",!0).forEach(K=>{this.markElementAsDisabled(K,!1)})}flush(j=-1){let N=[];if(this.newHostElements.size&&(this.newHostElements.forEach((K,ve)=>this._balanceNamespaceList(K,ve)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let K=0;KK()),this._flushFns=[],this._whenQuietFns.length){const K=this._whenQuietFns;this._whenQuietFns=[],N.length?fr(N).onDone(()=>{K.forEach(ve=>ve())}):K.forEach(ve=>ve())}}reportError(j){throw function Ka(ue){return new V.wOt(3402,!1)}()}_flushAnimations(j,N){const K=new Mc,ve=[],Xe=new Map,Ft=[],I=new Map,B=new Map,R=new Map,q=new Set;this.disabledNodes.forEach(er=>{q.add(er);const wr=this.driver.query(er,".ng-animate-queued",!0);for(let Mr=0;Mr{const Mr=Qs+un++;an.set(wr,Mr),er.forEach(yo=>ac(yo,Mr))});const Ci=[],Ji=new Set,ls=new Set;for(let er=0;erJi.add(yo)):ls.add(wr))}const Ar=new Map,Po=gc(Ne,Array.from(Ji));Po.forEach((er,wr)=>{const Mr=la+un++;Ar.set(wr,Mr),er.forEach(yo=>ac(yo,Mr))}),j.push(()=>{bt.forEach((er,wr)=>{const Mr=an.get(wr);er.forEach(yo=>R1(yo,Mr))}),Po.forEach((er,wr)=>{const Mr=Ar.get(wr);er.forEach(yo=>R1(yo,Mr))}),Ci.forEach(er=>{this.processLeaveNode(er)})});const al=[],Xo=[];for(let er=this._namespaceList.length-1;er>=0;er--)this._namespaceList[er].drainQueuedTransitions(N).forEach(Mr=>{const yo=Mr.player,Ba=Mr.element;if(al.push(yo),this.collectedEnterElements.length){const $a=Ba[ms];if($a&&$a.setForMove){if($a.previousTriggersValues&&$a.previousTriggersValues.has(Mr.triggerName)){const jl=$a.previousTriggersValues.get(Mr.triggerName),Kl=this.statesByElement.get(Mr.element);if(Kl&&Kl.has(Mr.triggerName)){const Kd=Kl.get(Mr.triggerName);Kd.value=jl,Kl.set(Mr.triggerName,Kd)}}return void yo.destroy()}}const Xc=!ae||!this.driver.containsElement(ae,Ba),Sr=Ar.get(Ba),S1=an.get(Ba),ya=this._buildInstruction(Mr,K,S1,Sr,Xc);if(ya.errors&&ya.errors.length)return void Xo.push(ya);if(Xc)return yo.onStart(()=>Ra(Ba,ya.fromStyles)),yo.onDestroy(()=>vo(Ba,ya.toStyles)),void ve.push(yo);if(Mr.isFallbackTransition)return yo.onStart(()=>Ra(Ba,ya.fromStyles)),yo.onDestroy(()=>vo(Ba,ya.toStyles)),void ve.push(yo);const Xd=[];ya.timelines.forEach($a=>{$a.stretchStartingKeyframe=!0,this.disabledNodes.has($a.element)||Xd.push($a)}),ya.timelines=Xd,K.append(Ba,ya.timelines),Ft.push({instruction:ya,player:yo,element:Ba}),ya.queriedElements.forEach($a=>qs(I,$a,[]).push(yo)),ya.preStyleProps.forEach(($a,jl)=>{if($a.size){let Kl=B.get(jl);Kl||B.set(jl,Kl=new Set),$a.forEach((Kd,lu)=>Kl.add(lu))}}),ya.postStyleProps.forEach(($a,jl)=>{let Kl=R.get(jl);Kl||R.set(jl,Kl=new Set),$a.forEach((Kd,lu)=>Kl.add(lu))})});if(Xo.length){const er=[];Xo.forEach(wr=>{er.push(function Xr(ue,j){return new V.wOt(3505,!1)}())}),al.forEach(wr=>wr.destroy()),this.reportError(er)}const Ko=new Map,Io=new Map;Ft.forEach(er=>{const wr=er.element;K.has(wr)&&(Io.set(wr,wr),this._beforeAnimationBuild(er.player.namespaceId,er.instruction,Ko))}),ve.forEach(er=>{const wr=er.element;this._getPreviousPlayers(wr,!1,er.namespaceId,er.triggerName,null).forEach(yo=>{qs(Ko,wr,[]).push(yo),yo.destroy()})});const vc=Ci.filter(er=>Tu(er,B,R)),bo=new Map;ot(bo,this.driver,ls,R,Gr.kp).forEach(er=>{Tu(er,B,R)&&vc.push(er)});const Hu=new Map;bt.forEach((er,wr)=>{ot(Hu,this.driver,new Set(er),B,Gr.FX)}),vc.forEach(er=>{const wr=bo.get(er),Mr=Hu.get(er);bo.set(er,new Map([...wr?.entries()??[],...Mr?.entries()??[]]))});const Rc=[],D4=[],M1={};Ft.forEach(er=>{const{element:wr,player:Mr,instruction:yo}=er;if(K.has(wr)){if(q.has(wr))return Mr.onDestroy(()=>vo(wr,yo.toStyles)),Mr.disabled=!0,Mr.overrideTotalTime(yo.totalTime),void ve.push(Mr);let Ba=M1;if(Io.size>1){let Sr=wr;const S1=[];for(;Sr=Sr.parentNode;){const ya=Io.get(Sr);if(ya){Ba=ya;break}S1.push(Sr)}S1.forEach(ya=>Io.set(ya,Ba))}const Xc=this._buildAnimation(Mr.namespaceId,yo,Ko,Xe,Hu,bo);if(Mr.setRealPlayer(Xc),Ba===M1)Rc.push(Mr);else{const Sr=this.playersByElement.get(Ba);Sr&&Sr.length&&(Mr.parentPlayer=fr(Sr)),ve.push(Mr)}}else Ra(wr,yo.fromStyles),Mr.onDestroy(()=>vo(wr,yo.toStyles)),D4.push(Mr),q.has(wr)&&ve.push(Mr)}),D4.forEach(er=>{const wr=Xe.get(er.element);if(wr&&wr.length){const Mr=fr(wr);er.setRealPlayer(Mr)}}),ve.forEach(er=>{er.parentPlayer?er.syncPlayerEvents(er.parentPlayer):er.destroy()});for(let er=0;er!Xc.destroyed);Ba.length?k2(this,wr,Ba):this.processLeaveNode(wr)}return Ci.length=0,Rc.forEach(er=>{this.players.push(er),er.onDone(()=>{er.destroy();const wr=this.players.indexOf(er);this.players.splice(wr,1)}),er.play()}),Rc}afterFlush(j){this._flushFns.push(j)}afterFlushAnimationsDone(j){this._whenQuietFns.push(j)}_getPreviousPlayers(j,N,K,ve,Xe){let Ft=[];if(N){const I=this.playersByQueriedElement.get(j);I&&(Ft=I)}else{const I=this.playersByElement.get(j);if(I){const B=!Xe||Xe==Fa;I.forEach(R=>{R.queued||!B&&R.triggerName!=ve||Ft.push(R)})}}return(K||ve)&&(Ft=Ft.filter(I=>!(K&&K!=I.namespaceId||ve&&ve!=I.triggerName))),Ft}_beforeAnimationBuild(j,N,K){const Xe=N.element,Ft=N.isRemovalTransition?void 0:j,I=N.isRemovalTransition?void 0:N.triggerName;for(const B of N.timelines){const R=B.element,q=R!==Xe,ae=qs(K,R,[]);this._getPreviousPlayers(R,q,Ft,I,N.toState).forEach(bt=>{const an=bt.getRealPlayer();an.beforeDestroy&&an.beforeDestroy(),bt.destroy(),ae.push(bt)})}Ra(Xe,N.fromStyles)}_buildAnimation(j,N,K,ve,Xe,Ft){const I=N.triggerName,B=N.element,R=[],q=new Set,ae=new Set,Ne=N.timelines.map(an=>{const un=an.element;q.add(un);const Ci=un[ms];if(Ci&&Ci.removedBeforeQueried)return new Gr.sf(an.duration,an.delay);const Ji=un!==B,ls=function cc(ue){const j=[];return Ud(ue,j),j}((K.get(un)||Ds).map(Ko=>Ko.getRealPlayer())).filter(Ko=>!!Ko.element&&Ko.element===un),Ar=Xe.get(un),Po=Ft.get(un),al=Ao(this._normalizer,an.keyframes,Ar,Po),Xo=this._buildPlayer(an,al,ls);if(an.subTimeline&&ve&&ae.add(un),Ji){const Ko=new uo(j,I,un);Ko.setRealPlayer(Xo),R.push(Ko)}return Xo});R.forEach(an=>{qs(this.playersByQueriedElement,an.element,[]).push(an),an.onDone(()=>function oc(ue,j,N){let K=ue.get(j);if(K){if(K.length){const ve=K.indexOf(N);K.splice(ve,1)}0==K.length&&ue.delete(j)}return K}(this.playersByQueriedElement,an.element,an))}),q.forEach(an=>ac(an,da));const bt=fr(Ne);return bt.onDestroy(()=>{q.forEach(an=>R1(an,da)),vo(B,N.toStyles)}),ae.forEach(an=>{qs(ve,an,[]).push(bt)}),bt}_buildPlayer(j,N,K){return N.length>0?this.driver.animate(j.element,N,j.duration,j.delay,j.easing,K):new Gr.sf(j.duration,j.delay)}}class uo{constructor(j,N,K){this.namespaceId=j,this.triggerName=N,this.element=K,this._player=new Gr.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(j){this._containsRealPlayer||(this._player=j,this._queuedCallbacks.forEach((N,K)=>{N.forEach(ve=>ca(j,K,void 0,ve))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(j.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(j){this.totalTime=j}syncPlayerEvents(j){const N=this._player;N.triggerCallback&&j.onStart(()=>N.triggerCallback("start")),j.onDone(()=>this.finish()),j.onDestroy(()=>this.destroy())}_queueEvent(j,N){qs(this._queuedCallbacks,j,[]).push(N)}onDone(j){this.queued&&this._queueEvent("done",j),this._player.onDone(j)}onStart(j){this.queued&&this._queueEvent("start",j),this._player.onStart(j)}onDestroy(j){this.queued&&this._queueEvent("destroy",j),this._player.onDestroy(j)}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(j){this.queued||this._player.setPosition(j)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(j){const N=this._player;N.triggerCallback&&N.triggerCallback(j)}}function S2(ue){return ue&&1===ue.nodeType}function Za(ue,j){const N=ue.style.display;return ue.style.display=j??"none",N}function ot(ue,j,N,K,ve){const Xe=[];N.forEach(B=>Xe.push(Za(B)));const Ft=[];K.forEach((B,R)=>{const q=new Map;B.forEach(ae=>{const Ne=j.computeStyle(R,ae,ve);q.set(ae,Ne),(!Ne||0==Ne.length)&&(R[ms]=ko,Ft.push(R))}),ue.set(R,q)});let I=0;return N.forEach(B=>Za(B,Xe[I++])),Ft}function gc(ue,j){const N=new Map;if(ue.forEach(I=>N.set(I,[])),0==j.length)return N;const ve=new Set(j),Xe=new Map;function Ft(I){if(!I)return 1;let B=Xe.get(I);if(B)return B;const R=I.parentNode;return B=N.has(R)?R:ve.has(R)?1:Ft(R),Xe.set(I,B),B}return j.forEach(I=>{const B=Ft(I);1!==B&&N.get(B).push(I)}),N}function ac(ue,j){ue.classList?.add(j)}function R1(ue,j){ue.classList?.remove(j)}function k2(ue,j,N){fr(N).onDone(()=>ue.processLeaveNode(j))}function Ud(ue,j){for(let N=0;Nve.add(Xe)):j.set(ue,K),N.delete(ue),!0}class qc{constructor(j,N,K){this.bodyNode=j,this._driver=N,this._normalizer=K,this._triggerCache={},this.onRemovalComplete=(ve,Xe)=>{},this._transitionEngine=new js(j,N,K),this._timelineEngine=new Ie(j,N,K),this._transitionEngine.onRemovalComplete=(ve,Xe)=>this.onRemovalComplete(ve,Xe)}registerTrigger(j,N,K,ve,Xe){const Ft=j+"-"+ve;let I=this._triggerCache[Ft];if(!I){const B=[],q=zr(this._driver,Xe,B,[]);if(B.length)throw function Z1(ue,j){return new V.wOt(3404,!1)}();I=function t2(ue,j,N){return new od(ue,j,N)}(ve,q,this._normalizer),this._triggerCache[Ft]=I}this._transitionEngine.registerTrigger(N,ve,I)}register(j,N){this._transitionEngine.register(j,N)}destroy(j,N){this._transitionEngine.destroy(j,N)}onInsert(j,N,K,ve){this._transitionEngine.insertNode(j,N,K,ve)}onRemove(j,N,K){this._transitionEngine.removeNode(j,N,K)}disableAnimations(j,N){this._transitionEngine.markElementAsDisabled(j,N)}process(j,N,K,ve){if("@"==K.charAt(0)){const[Xe,Ft]=gr(K);this._timelineEngine.command(Xe,N,Ft,ve)}else this._transitionEngine.trigger(j,N,K,ve)}listen(j,N,K,ve,Xe){if("@"==K.charAt(0)){const[Ft,I]=gr(K);return this._timelineEngine.listen(Ft,N,I,Xe)}return this._transitionEngine.listen(j,N,K,ve,Xe)}flush(j=-1){this._transitionEngine.flush(j)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(j){this._transitionEngine.afterFlushAnimationsDone(j)}}let Wd=(()=>{class ue{static#e=this.initialStylesByElement=new WeakMap;constructor(N,K,ve){this._element=N,this._startStyles=K,this._endStyles=ve,this._state=0;let Xe=ue.initialStylesByElement.get(N);Xe||ue.initialStylesByElement.set(N,Xe=new Map),this._initialStyles=Xe}start(){this._state<1&&(this._startStyles&&vo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vo(this._element,this._initialStyles),this._endStyles&&(vo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ue.initialStylesByElement.delete(this._element),this._startStyles&&(Ra(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ra(this._element,this._endStyles),this._endStyles=null),vo(this._element,this._initialStyles),this._state=3)}}return ue})();function n2(ue){let j=null;return ue.forEach((N,K)=>{(function Nl(ue){return"display"===ue||"position"===ue})(K)&&(j=j||new Map,j.set(K,N))}),j}class su{constructor(j,N,K,ve){this.element=j,this.keyframes=N,this.options=K,this._specialStyles=ve,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=K.duration,this._delay=K.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(j=>j()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const j=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,j,this.options),this._finalKeyframe=j.length?j[j.length-1]:new Map;const N=()=>this._onFinish();this.domPlayer.addEventListener("finish",N),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",N)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(j){const N=[];return j.forEach(K=>{N.push(Object.fromEntries(K))}),N}_triggerWebAnimation(j,N,K){return j.animate(this._convertKeyframesToObject(N),K)}onStart(j){this._originalOnStartFns.push(j),this._onStartFns.push(j)}onDone(j){this._originalOnDoneFns.push(j),this._onDoneFns.push(j)}onDestroy(j){this._onDestroyFns.push(j)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(j=>j()),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(j=>j()),this._onDestroyFns=[])}setPosition(j){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=j*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const j=new Map;this.hasStarted()&&this._finalKeyframe.forEach((K,ve)=>{"offset"!==ve&&j.set(ve,this._finished?K:ie(this.element,ve))}),this.currentSnapshot=j}triggerCallback(j){const N="start"===j?this._onStartFns:this._onDoneFns;N.forEach(K=>K()),N.length=0}}class Vu{validateStyleProperty(j){return!0}validateAnimatableStyleProperty(j){return!0}matchesElement(j,N){return!1}containsElement(j,N){return ka(j,N)}getParentElement(j){return Wr(j)}query(j,N,K){return Is(j,N,K)}computeStyle(j,N,K){return window.getComputedStyle(j)[N]}animate(j,N,K,ve,Xe,Ft=[]){const B={duration:K,delay:ve,fill:0==ve?"both":"forwards"};Xe&&(B.easing=Xe);const R=new Map,q=Ft.filter(bt=>bt instanceof su);(function vl(ue,j){return 0===ue||0===j})(K,ve)&&q.forEach(bt=>{bt.currentSnapshot.forEach((an,un)=>R.set(un,an))});let ae=function Ll(ue){return ue.length?ue[0]instanceof Map?ue:ue.map(j=>H1(j)):[]}(N).map(bt=>Lr(bt));ae=function qr(ue,j,N){if(N.size&&j.length){let K=j[0],ve=[];if(N.forEach((Xe,Ft)=>{K.has(Ft)||ve.push(Ft),K.set(Ft,Xe)}),ve.length)for(let Xe=1;XeFt.set(I,ie(ue,I)))}}return j}(j,ae,R);const Ne=function ru(ue,j){let N=null,K=null;return Array.isArray(j)&&j.length?(N=n2(j[0]),j.length>1&&(K=n2(j[j.length-1]))):j instanceof Map&&(N=n2(j)),N||K?new Wd(ue,N,K):null}(j,ae);return new su(j,ae,B,Ne)}}let Zr=(()=>{class ue extends Gr.S6{constructor(N,K){super(),this._nextAnimationId=0,this._renderer=N.createRenderer(K.body,{id:"0",encapsulation:V.gXe.None,styles:[],data:{animation:[]}})}build(N){const K=this._nextAnimationId.toString();this._nextAnimationId++;const ve=Array.isArray(N)?(0,Gr.K2)(N):N;return x1(this._renderer,null,K,"register",[ve]),new ou(K,this._renderer)}static#e=this.\u0275fac=function(K){return new(K||ue)(V.KVO(V._9s),V.KVO(o.qQ))};static#t=this.\u0275prov=V.jDH({token:ue,factory:ue.\u0275fac})}return ue})();class ou extends Gr.Ro{constructor(j,N){super(),this._id=j,this._renderer=N}create(j,N){return new Pl(this._id,j,N||{},this._renderer)}}class Pl{constructor(j,N,K,ve){this.id=j,this.element=N,this._renderer=ve,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",K)}_listen(j,N){return this._renderer.listen(this.element,`@@${this.id}:${j}`,N)}_command(j,...N){return x1(this._renderer,this.element,this.id,j,N)}onDone(j){this._listen("done",j)}onStart(j){this._listen("start",j)}onDestroy(j){this._listen("destroy",j)}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(j){this._command("setPosition",j)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function x1(ue,j,N,K,ve){return ue.setProperty(j,`@@${N}:${K}`,ve)}const ad="@.disabled";let cd=(()=>{class ue{constructor(N,K,ve){this.delegate=N,this.engine=K,this._zone=ve,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,K.onRemovalComplete=(Xe,Ft)=>{const I=Ft?.parentNode(Xe);I&&Ft.removeChild(I,Xe)}}createRenderer(N,K){const Xe=this.delegate.createRenderer(N,K);if(!(N&&K&&K.data&&K.data.animation)){let q=this._rendererCache.get(Xe);return q||(q=new E2("",Xe,this.engine,()=>this._rendererCache.delete(Xe)),this._rendererCache.set(Xe,q)),q}const Ft=K.id,I=K.id+"-"+this._currentId;this._currentId++,this.engine.register(I,N);const B=q=>{Array.isArray(q)?q.forEach(B):this.engine.registerTrigger(Ft,I,N,q.name,q)};return K.data.animation.forEach(B),new Au(this,I,Xe,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(N,K,ve){N>=0&&NK(ve)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Xe=>{const[Ft,I]=Xe;Ft(I)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([K,ve]))}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()}static#e=this.\u0275fac=function(K){return new(K||ue)(V.KVO(V._9s),V.KVO(qc),V.KVO(V.SKi))};static#t=this.\u0275prov=V.jDH({token:ue,factory:ue.\u0275fac})}return ue})();class E2{constructor(j,N,K,ve){this.namespaceId=j,this.delegate=N,this.engine=K,this._onDestroy=ve}get data(){return this.delegate.data}destroyNode(j){this.delegate.destroyNode?.(j)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(j,N){return this.delegate.createElement(j,N)}createComment(j){return this.delegate.createComment(j)}createText(j){return this.delegate.createText(j)}appendChild(j,N){this.delegate.appendChild(j,N),this.engine.onInsert(this.namespaceId,N,j,!1)}insertBefore(j,N,K,ve=!0){this.delegate.insertBefore(j,N,K),this.engine.onInsert(this.namespaceId,N,j,ve)}removeChild(j,N,K){this.engine.onRemove(this.namespaceId,N,this.delegate)}selectRootElement(j,N){return this.delegate.selectRootElement(j,N)}parentNode(j){return this.delegate.parentNode(j)}nextSibling(j){return this.delegate.nextSibling(j)}setAttribute(j,N,K,ve){this.delegate.setAttribute(j,N,K,ve)}removeAttribute(j,N,K){this.delegate.removeAttribute(j,N,K)}addClass(j,N){this.delegate.addClass(j,N)}removeClass(j,N){this.delegate.removeClass(j,N)}setStyle(j,N,K,ve){this.delegate.setStyle(j,N,K,ve)}removeStyle(j,N,K){this.delegate.removeStyle(j,N,K)}setProperty(j,N,K){"@"==N.charAt(0)&&N==ad?this.disableAnimations(j,!!K):this.delegate.setProperty(j,N,K)}setValue(j,N){this.delegate.setValue(j,N)}listen(j,N,K){return this.delegate.listen(j,N,K)}disableAnimations(j,N){this.engine.disableAnimations(j,N)}}class Au extends E2{constructor(j,N,K,ve,Xe){super(N,K,ve,Xe),this.factory=j,this.namespaceId=N}setProperty(j,N,K){"@"==N.charAt(0)?"."==N.charAt(1)&&N==ad?this.disableAnimations(j,K=void 0===K||!!K):this.engine.process(this.namespaceId,j,N.slice(1),K):this.delegate.setProperty(j,N,K)}listen(j,N,K){if("@"==N.charAt(0)){const ve=function qd(ue){switch(ue){case"body":return document.body;case"document":return document;case"window":return window;default:return ue}}(j);let Xe=N.slice(1),Ft="";return"@"!=Xe.charAt(0)&&([Xe,Ft]=function Cl(ue){const j=ue.indexOf(".");return[ue.substring(0,j),ue.slice(j+1)]}(Xe)),this.engine.listen(this.namespaceId,ve,Xe,Ft,I=>{this.factory.scheduleListenerCallback(I._data||-1,K,I)})}return this.delegate.listen(j,N,K)}}const Fs=[{provide:Gr.S6,useClass:Zr},{provide:d1,useFactory:function Iu(){return new tu}},{provide:qc,useClass:(()=>{class ue extends qc{constructor(N,K,ve,Xe){super(N.body,K,ve)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(K){return new(K||ue)(V.KVO(o.qQ),V.KVO(ur),V.KVO(d1),V.KVO(V.o8S))};static#t=this.\u0275prov=V.jDH({token:ue,factory:ue.\u0275fac})}return ue})()},{provide:V._9s,useFactory:function li(ue,j,N){return new cd(ue,j,N)},deps:[g.B7,qc,V.SKi]}],au=[{provide:ur,useFactory:()=>new Vu},{provide:V.bc$,useValue:"BrowserAnimations"},...Fs],T2=[{path:"",pathMatch:"full",loadComponent:()=>F.e(671).then(F.bind(F,2671)).then(ue=>ue.PageHomeComponent)},{path:"playground",pathMatch:"full",loadComponent:()=>F.e(172).then(F.bind(F,4172)).then(ue=>ue.PagePlaygroundComponent)},{matcher:ue=>ue.length&&"docs"===ue[0].path?{consumed:ue}:null,loadComponent:()=>F.e(752).then(F.bind(F,9752)).then(ue=>ue.PageDocsComponent)},{path:"**",redirectTo:""}],V2=new V.nKC("x-forwared-host"),cu={providers:[function w1(){return[...au]}(),(0,lr.$R)((0,lr.b$)([(ue,j)=>{const N=(0,V.WQX)(V.Agw),K=(0,V.WQX)(V2,{optional:!0})??"http://localhost:4201";if(!ue.url.startsWith("http")&&(0,o.Vy)(N)){const ve=ue.url;ue=ue.clone({url:`${K}/${ve.startsWith("/")?ve.substring(1):ve}`})}return j(ue)}])),(0,jt.lh)(T2,(0,jt.oH)({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),(0,jt.Sn)(jt.Kp)),{provide:V.hnV,deps:[Qn.g,jn.I],multi:!0,useFactory:ue=>()=>ue.loadLanguageData$()}]};(0,g.B8)(ii,cu).catch(ue=>console.error(ue))},4510:vn=>{function J(g,o,V,oe,De,pe,Ee){try{var be=g[pe](Ee),ge=be.value}catch(Te){return void V(Te)}be.done?o(ge):Promise.resolve(ge).then(oe,De)}vn.exports=function F(g){return function(){var o=this,V=arguments;return new Promise(function(oe,De){var pe=g.apply(o,V);function Ee(ge){J(pe,oe,De,Ee,be,"next",ge)}function be(ge){J(pe,oe,De,Ee,be,"throw",ge)}Ee(void 0)})}},vn.exports.__esModule=!0,vn.exports.default=vn.exports},2576:(vn,J,F)=>{"use strict";F.d(J,{G:()=>W6});var g=F(6610),o=F(2978),V=F(8832);let oe;try{oe=typeof Intl<"u"&&Intl.v8BreakIterator}catch{oe=!1}let Ee,De=(()=>{class E{constructor(h){this._platformId=h,this.isBrowser=this._platformId?(0,g.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!oe)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(o.Agw))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const be=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ge(){if(Ee)return Ee;if("object"!=typeof document||!document)return Ee=new Set(be),Ee;let E=document.createElement("input");return Ee=new Set(be.filter(O=>(E.setAttribute("type",O),E.type===O))),Ee}let Te,Re,Fe;function ze(E){return function Ve(){if(null==Te&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Te=!0}))}finally{Te=Te||!1}return Te}()?E:!!E.capture}function tt(){if(null==Re){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Re=!1,Re;if("scrollBehavior"in document.documentElement.style)Re=!0;else{const E=Element.prototype.scrollTo;Re=!!E&&!/\{\s*\[native code\]\s*\}/.test(E.toString())}}return Re}function Be(){let E=typeof document<"u"&&document?document.activeElement:null;for(;E&&E.shadowRoot;){const O=E.shadowRoot.activeElement;if(O===E)break;E=O}return E}function he(E){return E.composedPath?E.composedPath()[0]:E.target}function He(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Se=F(6104),it=F(2029),dt=F(5981),jt=F(756);const H=37;function Ao(E,...O){return O.length?O.some(h=>E[h]):E.altKey||E.shiftKey||E.ctrlKey||E.metaKey}var ca=F(7236),Ya=F(8887),za=F(8503),qs=F(3527),gr=F(8486),il=F(9990),Wr=F(3793),yi=F(6340);function Kn(E){return null!=E&&"false"!=`${E}`}function ar(E,O=0){return function Sa(E){return!isNaN(parseFloat(E))&&!isNaN(Number(E))}(E)?Number(E):O}function Mo(E){return Array.isArray(E)?E:[E]}function ns(E){return null==E?"":"string"==typeof E?E:`${E}px`}function ka(E){return E instanceof o.aKT?E.nativeElement:E}let wc=(()=>{class E{create(h){return typeof MutationObserver>"u"?null:new MutationObserver(h)}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),rr=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[wc]})}return E})();var ml=F(199),Lc=F(6753),Qs=F(9406),la=F(965);const ua=new Set;let da,gl=(()=>{class E{constructor(h,b){this._platform=h,this._nonce=b,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ia}matchMedia(h){return(this._platform.WEBKIT||this._platform.BLINK)&&function No(E,O){if(!ua.has(E))try{da||(da=document.createElement("style"),O&&(da.nonce=O),da.setAttribute("type","text/css"),document.head.appendChild(da)),da.sheet&&(da.sheet.insertRule(`@media ${E} {body{ }}`,0),ua.add(E))}catch(h){console.error(h)}}(h,this._nonce),this._matchMedia(h)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(o.BIS,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function ia(E){return{matches:"all"===E||""===E,media:E,addListener:()=>{},removeListener:()=>{}}}let zc=(()=>{class E{constructor(h,b){this._mediaMatcher=h,this._zone=b,this._queries=new Map,this._destroySubject=new Se.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(h){return Hl(Mo(h)).some(M=>this._registerQuery(M).mql.matches)}observe(h){const M=Hl(Mo(h)).map(we=>this._registerQuery(we).observable);let G=(0,ml.z)(M);return G=(0,Lc.x)(G.pipe((0,gr.s)(1)),G.pipe((0,il.i)(1),(0,Ya.B)(0))),G.pipe((0,qs.T)(we=>{const en={matches:!1,breakpoints:{}};return we.forEach(({matches:Yn,query:ki})=>{en.matches=en.matches||Yn,en.breakpoints[ki]=Yn}),en}))}_registerQuery(h){if(this._queries.has(h))return this._queries.get(h);const b=this._mediaMatcher.matchMedia(h),G={observable:new Qs.c(we=>{const en=Yn=>this._zone.run(()=>we.next(Yn));return b.addListener(en),()=>{b.removeListener(en)}}).pipe((0,la.Z)(b),(0,qs.T)(({matches:we})=>({query:h,matches:we})),(0,yi.Q)(this._destroySubject)),mql:b};return this._queries.set(h,G),G}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(gl),o.KVO(o.SKi))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function Hl(E){return E.map(O=>O.split(",")).reduce((O,h)=>O.concat(h)).map(O=>O.trim())}function Wc(E,O,h){const M=Lr(E,O).filter(G=>G!=h.trim());M.length?E.setAttribute(O,M.join(" ")):E.removeAttribute(O)}function Lr(E,O){return(E.getAttribute(O)||"").match(/\S+/g)||[]}class Ja{constructor(O){this._items=O,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Se.B,this._typeaheadSubscription=it.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=h=>h.disabled,this._pressedLetters=[],this.tabOut=new Se.B,this.change=new Se.B,O instanceof o.rOR&&(this._itemChangesSubscription=O.changes.subscribe(h=>{if(this._activeItem){const M=h.toArray().indexOf(this._activeItem);M>-1&&M!==this._activeItemIndex&&(this._activeItemIndex=M)}}))}skipPredicate(O){return this._skipPredicateFn=O,this}withWrap(O=!0){return this._wrap=O,this}withVerticalOrientation(O=!0){return this._vertical=O,this}withHorizontalOrientation(O){return this._horizontal=O,this}withAllowedModifierKeys(O){return this._allowedModifierKeys=O,this}withTypeAhead(O=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ca.M)(h=>this._pressedLetters.push(h)),(0,Ya.B)(O),(0,za.p)(()=>this._pressedLetters.length>0),(0,qs.T)(()=>this._pressedLetters.join(""))).subscribe(h=>{const b=this._getItemsArray();for(let M=1;M!O[G]||this._allowedModifierKeys.indexOf(G)>-1);switch(h){case 9:return void this.tabOut.next();case 40:if(this._vertical&&M){this.setNextItemActive();break}return;case 38:if(this._vertical&&M){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&M){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case H:if(this._horizontal&&M){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&M){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&M){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&M){const G=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(G>0?G:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&M){const G=this._activeItemIndex+this._pageUpAndDown.delta,we=this._getItemsArray().length;this._setActiveItemByIndex(G=65&&h<=90||h>=48&&h<=57)&&this._letterKeyStream.next(String.fromCharCode(h))))}this._pressedLetters=[],O.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(O){const h=this._getItemsArray(),b="number"==typeof O?O:h.indexOf(O);this._activeItem=h[b]??null,this._activeItemIndex=b}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(O){this._wrap?this._setActiveInWrapMode(O):this._setActiveInDefaultMode(O)}_setActiveInWrapMode(O){const h=this._getItemsArray();for(let b=1;b<=h.length;b++){const M=(this._activeItemIndex+O*b+h.length)%h.length;if(!this._skipPredicateFn(h[M]))return void this.setActiveItem(M)}}_setActiveInDefaultMode(O){this._setActiveItemByIndex(this._activeItemIndex+O,O)}_setActiveItemByIndex(O,h){const b=this._getItemsArray();if(b[O]){for(;this._skipPredicateFn(b[O]);)if(!b[O+=h])return;this.setActiveItem(O)}}_getItemsArray(){return this._items instanceof o.rOR?this._items.toArray():this._items}}class pc extends Ja{setActiveItem(O){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(O),this.activeItem&&this.activeItem.setActiveStyles()}}let vl=(()=>{class E{constructor(h){this._platform=h}isDisabled(h){return h.hasAttribute("disabled")}isVisible(h){return function sc(E){return!!(E.offsetWidth||E.offsetHeight||"function"==typeof E.getClientRects&&E.getClientRects().length)}(h)&&"visible"===getComputedStyle(h).visibility}isTabbable(h){if(!this._platform.isBrowser)return!1;const b=function qr(E){try{return E.frameElement}catch{return null}}(function ne(E){return E.ownerDocument&&E.ownerDocument.defaultView||window}(h));if(b&&(-1===Oe(b)||!this.isVisible(b)))return!1;let M=h.nodeName.toLowerCase(),G=Oe(h);return h.hasAttribute("contenteditable")?-1!==G:!("iframe"===M||"object"===M||this._platform.WEBKIT&&this._platform.IOS&&!function nn(E){let O=E.nodeName.toLowerCase(),h="input"===O&&E.type;return"text"===h||"password"===h||"select"===O||"textarea"===O}(h))&&("audio"===M?!!h.hasAttribute("controls")&&-1!==G:"video"===M?-1!==G&&(null!==G||this._platform.FIREFOX||h.hasAttribute("controls")):h.tabIndex>=0)}isFocusable(h,b){return function Qt(E){return!function Rt(E){return function me(E){return"input"==E.nodeName.toLowerCase()}(E)&&"hidden"==E.type}(E)&&(function ie(E){let O=E.nodeName.toLowerCase();return"input"===O||"select"===O||"button"===O||"textarea"===O}(E)||function Y(E){return function Ye(E){return"a"==E.nodeName.toLowerCase()}(E)&&E.hasAttribute("href")}(E)||E.hasAttribute("contenteditable")||Ct(E))}(h)&&!this.isDisabled(h)&&(b?.ignoreVisibility||this.isVisible(h))}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function Ct(E){if(!E.hasAttribute("tabindex")||void 0===E.tabIndex)return!1;let O=E.getAttribute("tabindex");return!(!O||isNaN(parseInt(O,10)))}function Oe(E){if(!Ct(E))return null;const O=parseInt(E.getAttribute("tabindex")||"",10);return isNaN(O)?-1:O}class fe{get enabled(){return this._enabled}set enabled(O){this._enabled=O,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(O,this._startAnchor),this._toggleAnchorTabIndex(O,this._endAnchor))}constructor(O,h,b,M,G=!1){this._element=O,this._checker=h,this._ngZone=b,this._document=M,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,G||this.attachAnchors()}destroy(){const O=this._startAnchor,h=this._endAnchor;O&&(O.removeEventListener("focus",this.startAnchorListener),O.remove()),h&&(h.removeEventListener("focus",this.endAnchorListener),h.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(O){return new Promise(h=>{this._executeOnStable(()=>h(this.focusInitialElement(O)))})}focusFirstTabbableElementWhenReady(O){return new Promise(h=>{this._executeOnStable(()=>h(this.focusFirstTabbableElement(O)))})}focusLastTabbableElementWhenReady(O){return new Promise(h=>{this._executeOnStable(()=>h(this.focusLastTabbableElement(O)))})}_getRegionBoundary(O){const h=this._element.querySelectorAll(`[cdk-focus-region-${O}], [cdkFocusRegion${O}], [cdk-focus-${O}]`);return"start"==O?h.length?h[0]:this._getFirstTabbableElement(this._element):h.length?h[h.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(O){const h=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(h){if(!this._checker.isFocusable(h)){const b=this._getFirstTabbableElement(h);return b?.focus(O),!!b}return h.focus(O),!0}return this.focusFirstTabbableElement(O)}focusFirstTabbableElement(O){const h=this._getRegionBoundary("start");return h&&h.focus(O),!!h}focusLastTabbableElement(O){const h=this._getRegionBoundary("end");return h&&h.focus(O),!!h}hasAttached(){return this._hasAttached}_getFirstTabbableElement(O){if(this._checker.isFocusable(O)&&this._checker.isTabbable(O))return O;const h=O.children;for(let b=0;b=0;b--){const M=h[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(h[b]):null;if(M)return M}return null}_createAnchor(){const O=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,O),O.classList.add("cdk-visually-hidden"),O.classList.add("cdk-focus-trap-anchor"),O.setAttribute("aria-hidden","true"),O}_toggleAnchorTabIndex(O,h){O?h.setAttribute("tabindex","0"):h.removeAttribute("tabindex")}toggleAnchors(O){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(O,this._startAnchor),this._toggleAnchorTabIndex(O,this._endAnchor))}_executeOnStable(O){this._ngZone.isStable?O():this._ngZone.onStable.pipe((0,gr.s)(1)).subscribe(O)}}let ee=(()=>{class E{constructor(h,b,M){this._checker=h,this._ngZone=b,this._document=M}create(h,b=!1){return new fe(h,this._checker,this._ngZone,this._document,b)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(vl),o.KVO(o.SKi),o.KVO(g.qQ))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),$e=(()=>{class E{get enabled(){return this.focusTrap.enabled}set enabled(h){this.focusTrap.enabled=Kn(h)}get autoCapture(){return this._autoCapture}set autoCapture(h){this._autoCapture=Kn(h)}constructor(h,b,M){this._elementRef=h,this._focusTrapFactory=b,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(h){const b=h.autoCapture;b&&!b.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Be(),this.focusTrap.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(ee),o.rXU(g.qQ))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[o.OA$]})}return E})();function bi(E){return 0===E.buttons||0===E.detail}function Bo(E){const O=E.touches&&E.touches[0]||E.changedTouches&&E.changedTouches[0];return!(!O||-1!==O.identifier||null!=O.radiusX&&1!==O.radiusX||null!=O.radiusY&&1!==O.radiusY)}const So=new o.nKC("cdk-input-modality-detector-options"),Pa={ignoreKeys:[18,17,224,91,16]},ja=ze({passive:!0,capture:!0});let Os=(()=>{class E{get mostRecentModality(){return this._modality.value}constructor(h,b,M,G){this._platform=h,this._mostRecentTarget=null,this._modality=new dt.t(null),this._lastTouchMs=0,this._onKeydown=we=>{this._options?.ignoreKeys?.some(en=>en===we.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=he(we))},this._onMousedown=we=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bi(we)?"keyboard":"mouse"),this._mostRecentTarget=he(we))},this._onTouchstart=we=>{Bo(we)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=he(we))},this._options={...Pa,...G},this.modalityDetected=this._modality.pipe((0,il.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Wr.F)()),h.isBrowser&&b.runOutsideAngular(()=>{M.addEventListener("keydown",this._onKeydown,ja),M.addEventListener("mousedown",this._onMousedown,ja),M.addEventListener("touchstart",this._onTouchstart,ja)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ja),document.removeEventListener("mousedown",this._onMousedown,ja),document.removeEventListener("touchstart",this._onTouchstart,ja))}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(o.SKi),o.KVO(g.qQ),o.KVO(So,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const rl=new o.nKC("liveAnnouncerElement",{providedIn:"root",factory:function ba(){return null}}),Mc=new o.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let xu=0,wu=(()=>{class E{constructor(h,b,M,G){this._ngZone=b,this._defaultOptions=G,this._document=M,this._liveElement=h||this._createLiveElement()}announce(h,...b){const M=this._defaultOptions;let G,we;return 1===b.length&&"number"==typeof b[0]?we=b[0]:[G,we]=b,this.clear(),clearTimeout(this._previousTimeout),G||(G=M&&M.politeness?M.politeness:"polite"),null==we&&M&&(we=M.duration),this._liveElement.setAttribute("aria-live",G),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(en=>this._currentResolve=en)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=h,"number"==typeof we&&(this._previousTimeout=setTimeout(()=>this.clear(),we)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const h="cdk-live-announcer-element",b=this._document.getElementsByClassName(h),M=this._document.createElement("div");for(let G=0;G .cdk-overlay-container [aria-modal="true"]');for(let M=0;M{class E{constructor(h,b,M,G,we){this._ngZone=h,this._platform=b,this._inputModalityDetector=M,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Se.B,this._rootNodeFocusAndBlurListener=en=>{for(let ki=he(en);ki;ki=ki.parentElement)"focus"===en.type?this._onFocus(en,ki):this._onBlur(en,ki)},this._document=G,this._detectionMode=we?.detectionMode||0}monitor(h,b=!1){const M=ka(h);if(!this._platform.isBrowser||1!==M.nodeType)return(0,jt.of)();const G=function at(E){if(function _t(){if(null==Fe){const E=typeof document<"u"?document.head:null;Fe=!(!E||!E.createShadowRoot&&!E.attachShadow)}return Fe}()){const O=E.getRootNode?E.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&O instanceof ShadowRoot)return O}return null}(M)||this._getDocument(),we=this._elementInfo.get(M);if(we)return b&&(we.checkChildren=!0),we.subject;const en={checkChildren:b,subject:new Se.B,rootNode:G};return this._elementInfo.set(M,en),this._registerGlobalListeners(en),en.subject}stopMonitoring(h){const b=ka(h),M=this._elementInfo.get(b);M&&(M.subject.complete(),this._setClasses(b),this._elementInfo.delete(b),this._removeGlobalListeners(M))}focusVia(h,b,M){const G=ka(h);G===this._getDocument().activeElement?this._getClosestElementsInfo(G).forEach(([en,Yn])=>this._originChanged(en,b,Yn)):(this._setOrigin(b),"function"==typeof G.focus&&G.focus(M))}ngOnDestroy(){this._elementInfo.forEach((h,b)=>this.stopMonitoring(b))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(h){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(h)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:h&&this._isLastInteractionFromInputLabel(h)?"mouse":"program"}_shouldBeAttributedToTouch(h){return 1===this._detectionMode||!!h?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(h,b){h.classList.toggle("cdk-focused",!!b),h.classList.toggle("cdk-touch-focused","touch"===b),h.classList.toggle("cdk-keyboard-focused","keyboard"===b),h.classList.toggle("cdk-mouse-focused","mouse"===b),h.classList.toggle("cdk-program-focused","program"===b)}_setOrigin(h,b=!1){this._ngZone.runOutsideAngular(()=>{this._origin=h,this._originFromTouchInteraction="touch"===h&&b,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(h,b){const M=this._elementInfo.get(b),G=he(h);!M||!M.checkChildren&&b!==G||this._originChanged(b,this._getFocusOrigin(G),M)}_onBlur(h,b){const M=this._elementInfo.get(b);!M||M.checkChildren&&h.relatedTarget instanceof Node&&b.contains(h.relatedTarget)||(this._setClasses(b),this._emitOrigin(M,null))}_emitOrigin(h,b){h.subject.observers.length&&this._ngZone.run(()=>h.subject.next(b))}_registerGlobalListeners(h){if(!this._platform.isBrowser)return;const b=h.rootNode,M=this._rootNodeFocusListenerCount.get(b)||0;M||this._ngZone.runOutsideAngular(()=>{b.addEventListener("focus",this._rootNodeFocusAndBlurListener,M2),b.addEventListener("blur",this._rootNodeFocusAndBlurListener,M2)}),this._rootNodeFocusListenerCount.set(b,M+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,yi.Q)(this._stopInputModalityDetector)).subscribe(G=>{this._setOrigin(G,!0)}))}_removeGlobalListeners(h){const b=h.rootNode;if(this._rootNodeFocusListenerCount.has(b)){const M=this._rootNodeFocusListenerCount.get(b);M>1?this._rootNodeFocusListenerCount.set(b,M-1):(b.removeEventListener("focus",this._rootNodeFocusAndBlurListener,M2),b.removeEventListener("blur",this._rootNodeFocusAndBlurListener,M2),this._rootNodeFocusListenerCount.delete(b))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(h,b,M){this._setClasses(h,b),this._emitOrigin(M,b),this._lastFocusOrigin=b}_getClosestElementsInfo(h){const b=[];return this._elementInfo.forEach((M,G)=>{(G===h||M.checkChildren&&G.contains(h))&&b.push([G,M])}),b}_isLastInteractionFromInputLabel(h){const{_mostRecentTarget:b,mostRecentModality:M}=this._inputModalityDetector;if("mouse"!==M||!b||b===h||"INPUT"!==h.nodeName&&"TEXTAREA"!==h.nodeName||h.disabled)return!1;const G=h.labels;if(G)for(let we=0;we{class E{constructor(h,b){this._elementRef=h,this._focusMonitor=b,this._focusOrigin=null,this.cdkFocusChange=new o.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const h=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(h,1===h.nodeType&&h.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(b=>{this._focusOrigin=b,this.cdkFocusChange.emit(b)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(fa))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return E})();const u1="cdk-high-contrast-black-on-white",z1="cdk-high-contrast-white-on-black",Xl="cdk-high-contrast-active";let y1=(()=>{class E{constructor(h,b){this._platform=h,this._document=b,this._breakpointSubscription=(0,o.WQX)(zc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const h=this._document.createElement("div");h.style.backgroundColor="rgb(1,2,3)",h.style.position="absolute",this._document.body.appendChild(h);const b=this._document.defaultView||window,M=b&&b.getComputedStyle?b.getComputedStyle(h):null,G=(M&&M.backgroundColor||"").replace(/ /g,"");switch(h.remove(),G){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const h=this._document.body.classList;h.remove(Xl,u1,z1),this._hasCheckedHighContrastMode=!0;const b=this.getHighContrastMode();1===b?h.add(Xl,u1):2===b&&h.add(Xl,z1)}}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(g.qQ))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),_l=(()=>{class E{constructor(h){h._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(y1))};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[rr]})}return E})();const sl=new o.nKC("cdk-dir-doc",{providedIn:"root",factory:function Su(){return(0,o.WQX)(g.qQ)}}),d1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let bl=(()=>{class E{constructor(h){this.value="ltr",this.change=new o.bkB,h&&(this.value=function ku(E){const O=E?.toLowerCase()||"";return"auto"===O&&typeof navigator<"u"&&navigator?.language?d1.test(navigator.language)?"rtl":"ltr":"rtl"===O?"rtl":"ltr"}((h.body?h.body.dir:null)||(h.documentElement?h.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(sl,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),C1=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})();const Du=["text"];function iu(E,O){if(1&E&&o.nrm(0,"mat-pseudo-checkbox",6),2&E){const h=o.XpG();o.Y8G("disabled",h.disabled)("state",h.selected?"checked":"unchecked")}}function sd(E,O){if(1&E&&o.nrm(0,"mat-pseudo-checkbox",7),2&E){const h=o.XpG();o.Y8G("disabled",h.disabled)}}function t2(E,O){if(1&E&&(o.j41(0,"span",8),o.EFF(1),o.k0s()),2&E){const h=o.XpG();o.R7$(1),o.SpI("(",h.group.label,")")}}const od=[[["mat-icon"]],"*"],X=["mat-icon","*"],bn=new o.nKC("mat-sanity-checks",{providedIn:"root",factory:function Ot(){return!0}});let Pn=(()=>{class E{constructor(h,b,M){this._sanityChecks=b,this._document=M,this._hasDoneGlobalChecks=!1,h._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(h){return!He()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[h])}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(y1),o.KVO(bn,8),o.KVO(g.qQ))};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[C1,C1]})}return E})();function Ds(E){return class extends E{get disabled(){return this._disabled}set disabled(O){this._disabled=Kn(O)}constructor(...O){super(...O),this._disabled=!1}}}function xr(E,O){return class extends E{get color(){return this._color}set color(h){const b=h||this.defaultColor;b!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),b&&this._elementRef.nativeElement.classList.add(`mat-${b}`),this._color=b)}constructor(...h){super(...h),this.defaultColor=O,this.color=O}}}function ko(E){return class extends E{get disableRipple(){return this._disableRipple}set disableRipple(O){this._disableRipple=Kn(O)}constructor(...O){super(...O),this._disableRipple=!1}}}function ms(E,O=0){return class extends E{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(h){this._tabIndex=null!=h?ar(h):this.defaultTabIndex}constructor(...h){super(...h),this._tabIndex=O,this.defaultTabIndex=O}}}function ha(E){return class extends E{updateErrorState(){const O=this.errorState,G=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);G!==O&&(this.errorState=G,this.stateChanges.next())}constructor(...O){super(...O),this.errorState=!1}}}const mc=new o.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function kc(){return(0,o.WQX)(o.xe9)}});class js{constructor(){this._localeChanges=new Se.B,this.localeChanges=this._localeChanges}getValidDateOrNull(O){return this.isDateInstance(O)&&this.isValid(O)?O:null}deserialize(O){return null==O||this.isDateInstance(O)&&this.isValid(O)?O:this.invalid()}setLocale(O){this.locale=O,this._localeChanges.next()}compareDate(O,h){return this.getYear(O)-this.getYear(h)||this.getMonth(O)-this.getMonth(h)||this.getDate(O)-this.getDate(h)}sameDate(O,h){if(O&&h){let b=this.isValid(O),M=this.isValid(h);return b&&M?!this.compareDate(O,h):b==M}return O==h}clampDate(O,h,b){return h&&this.compareDate(O,h)<0?h:b&&this.compareDate(O,b)>0?b:O}}const uo=new o.nKC("mat-date-formats"),oc=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function yl(E,O){const h=Array(E);for(let b=0;b{class E extends js{constructor(h,b){super(),this.useUtcForDisplay=!1,super.setLocale(h)}getYear(h){return h.getFullYear()}getMonth(h){return h.getMonth()}getDate(h){return h.getDate()}getDayOfWeek(h){return h.getDay()}getMonthNames(h){const b=new Intl.DateTimeFormat(this.locale,{month:h,timeZone:"utc"});return yl(12,M=>this._format(b,new Date(2017,M,1)))}getDateNames(){const h=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return yl(31,b=>this._format(h,new Date(2017,0,b+1)))}getDayOfWeekNames(h){const b=new Intl.DateTimeFormat(this.locale,{weekday:h,timeZone:"utc"});return yl(7,M=>this._format(b,new Date(2017,0,M+1)))}getYearName(h){const b=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(b,h)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(h){return this.getDate(this._createDateWithOverflow(this.getYear(h),this.getMonth(h)+1,0))}clone(h){return new Date(h.getTime())}createDate(h,b,M){let G=this._createDateWithOverflow(h,b,M);return G.getMonth(),G}today(){return new Date}parse(h,b){return"number"==typeof h?new Date(h):h?new Date(Date.parse(h)):null}format(h,b){if(!this.isValid(h))throw Error("NativeDateAdapter: Cannot format invalid date.");const M=new Intl.DateTimeFormat(this.locale,{...b,timeZone:"utc"});return this._format(M,h)}addCalendarYears(h,b){return this.addCalendarMonths(h,12*b)}addCalendarMonths(h,b){let M=this._createDateWithOverflow(this.getYear(h),this.getMonth(h)+b,this.getDate(h));return this.getMonth(M)!=((this.getMonth(h)+b)%12+12)%12&&(M=this._createDateWithOverflow(this.getYear(M),this.getMonth(M),0)),M}addCalendarDays(h,b){return this._createDateWithOverflow(this.getYear(h),this.getMonth(h),this.getDate(h)+b)}toIso8601(h){return[h.getUTCFullYear(),this._2digit(h.getUTCMonth()+1),this._2digit(h.getUTCDate())].join("-")}deserialize(h){if("string"==typeof h){if(!h)return null;if(oc.test(h)){let b=new Date(h);if(this.isValid(b))return b}}return super.deserialize(h)}isDateInstance(h){return h instanceof Date}isValid(h){return!isNaN(h.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(h,b,M){const G=new Date;return G.setFullYear(h,b,M),G.setHours(0,0,0,0),G}_2digit(h){return("00"+h).slice(-2)}_format(h,b){const M=new Date;return M.setUTCFullYear(b.getFullYear(),b.getMonth(),b.getDate()),M.setUTCHours(b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds()),h.format(M)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(mc,8),o.KVO(De))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac})}return E})();const $o={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Za=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[{provide:js,useClass:S2}]})}return E})(),ot=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[{provide:uo,useValue:$o}],imports:[Za]})}return E})(),ac=(()=>{class E{isErrorState(h,b){return!!(h&&h.invalid&&(h.touched||b&&b.submitted))}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class Gd{constructor(O,h,b,M=!1){this._renderer=O,this.element=h,this.config=b,this._animationForciblyDisabledThroughCss=M,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tu=ze({passive:!0,capture:!0});class qc{constructor(){this._events=new Map,this._delegateEventHandler=O=>{const h=he(O);h&&this._events.get(O.type)?.forEach((b,M)=>{(M===h||M.contains(h))&&b.forEach(G=>G.handleEvent(O))})}}addHandler(O,h,b,M){const G=this._events.get(h);if(G){const we=G.get(b);we?we.add(M):G.set(b,new Set([M]))}else this._events.set(h,new Map([[b,new Set([M])]])),O.runOutsideAngular(()=>{document.addEventListener(h,this._delegateEventHandler,Tu)})}removeHandler(O,h,b){const M=this._events.get(O);if(!M)return;const G=M.get(h);G&&(G.delete(b),0===G.size&&M.delete(h),0===M.size&&(this._events.delete(O),document.removeEventListener(O,this._delegateEventHandler,Tu)))}}const ru={enterDuration:225,exitDuration:150},n2=ze({passive:!0,capture:!0}),Nl=["mousedown","touchstart"],su=["mouseup","mouseleave","touchend","touchcancel"];class Vu{static#e=this._eventManager=new qc;constructor(O,h,b,M){this._target=O,this._ngZone=h,this._platform=M,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,M.isBrowser&&(this._containerElement=ka(b))}fadeInRipple(O,h,b={}){const M=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),G={...ru,...b.animation};b.centered&&(O=M.left+M.width/2,h=M.top+M.height/2);const we=b.radius||function Zr(E,O,h){const b=Math.max(Math.abs(E-h.left),Math.abs(E-h.right)),M=Math.max(Math.abs(O-h.top),Math.abs(O-h.bottom));return Math.sqrt(b*b+M*M)}(O,h,M),en=O-M.left,Yn=h-M.top,ki=G.enterDuration,Ai=document.createElement("div");Ai.classList.add("mat-ripple-element"),Ai.style.left=en-we+"px",Ai.style.top=Yn-we+"px",Ai.style.height=2*we+"px",Ai.style.width=2*we+"px",null!=b.color&&(Ai.style.backgroundColor=b.color),Ai.style.transitionDuration=`${ki}ms`,this._containerElement.appendChild(Ai);const $r=window.getComputedStyle(Ai),Tc=$r.transitionDuration,lc="none"===$r.transitionProperty||"0s"===Tc||"0s, 0s"===Tc||0===M.width&&0===M.height,pa=new Gd(this,Ai,b,lc);Ai.style.transform="scale3d(1, 1, 1)",pa.state=0,b.persistent||(this._mostRecentTransientRipple=pa);let Sl=null;return!lc&&(ki||G.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const j2=()=>this._finishRippleTransition(pa),s0=()=>this._destroyRipple(pa);Ai.addEventListener("transitionend",j2),Ai.addEventListener("transitioncancel",s0),Sl={onTransitionEnd:j2,onTransitionCancel:s0}}),this._activeRipples.set(pa,Sl),(lc||!ki)&&this._finishRippleTransition(pa),pa}fadeOutRipple(O){if(2===O.state||3===O.state)return;const h=O.element,b={...ru,...O.config.animation};h.style.transitionDuration=`${b.exitDuration}ms`,h.style.opacity="0",O.state=2,(O._animationForciblyDisabledThroughCss||!b.exitDuration)&&this._finishRippleTransition(O)}fadeOutAll(){this._getActiveRipples().forEach(O=>O.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(O=>{O.config.persistent||O.fadeOut()})}setupTriggerEvents(O){const h=ka(O);!this._platform.isBrowser||!h||h===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=h,Nl.forEach(b=>{Vu._eventManager.addHandler(this._ngZone,b,h,this)}))}handleEvent(O){"mousedown"===O.type?this._onMousedown(O):"touchstart"===O.type?this._onTouchStart(O):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{su.forEach(h=>{this._triggerElement.addEventListener(h,this,n2)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(O){0===O.state?this._startFadeOutTransition(O):2===O.state&&this._destroyRipple(O)}_startFadeOutTransition(O){const h=O===this._mostRecentTransientRipple,{persistent:b}=O.config;O.state=1,!b&&(!h||!this._isPointerDown)&&O.fadeOut()}_destroyRipple(O){const h=this._activeRipples.get(O)??null;this._activeRipples.delete(O),this._activeRipples.size||(this._containerRect=null),O===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),O.state=3,null!==h&&(O.element.removeEventListener("transitionend",h.onTransitionEnd),O.element.removeEventListener("transitioncancel",h.onTransitionCancel)),O.element.remove()}_onMousedown(O){const h=bi(O),b=this._lastTouchStartEvent&&Date.now(){!O.config.persistent&&(1===O.state||O.config.terminateOnPointerUp&&0===O.state)&&O.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const O=this._triggerElement;O&&(Nl.forEach(h=>Vu._eventManager.removeHandler(h,O,this)),this._pointerUpEventsRegistered&&su.forEach(h=>O.removeEventListener(h,this,n2)))}}const ou=new o.nKC("mat-ripple-global-options");let Pl=(()=>{class E{get disabled(){return this._disabled}set disabled(h){h&&this.fadeOutAllNonPersistent(),this._disabled=h,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(h){this._trigger=h,this._setupTriggerEventsIfEnabled()}constructor(h,b,M,G,we){this._elementRef=h,this._animationMode=we,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=G||{},this._rippleRenderer=new Vu(this,b,h,M)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(h,b=0,M){return"number"==typeof h?this._rippleRenderer.fadeInRipple(h,b,{...this.rippleConfig,...M}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...h})}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.SKi),o.rXU(De),o.rXU(ou,8),o.rXU(o.bc$,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(b,M){2&b&&o.AVh("mat-ripple-unbounded",M.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return E})(),x1=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,Pn]})}return E})(),f1=(()=>{class E{constructor(h){this._animationMode=h,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.bc$,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(b,M){2&b&&o.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===M.state)("mat-pseudo-checkbox-checked","checked"===M.state)("mat-pseudo-checkbox-disabled",M.disabled)("mat-pseudo-checkbox-minimal","minimal"===M.appearance)("mat-pseudo-checkbox-full","full"===M.appearance)("_mat-animation-noopable","NoopAnimations"===M._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(b,M){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return E})(),ad=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn]})}return E})();const cd=new o.nKC("MAT_OPTION_PARENT_COMPONENT"),Cl=new o.nKC("MatOptgroup");let Iu=0;class li{constructor(O,h=!1){this.source=O,this.isUserInput=h}}let Fs=(()=>{class E{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(h){this._disabled=Kn(h)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(h,b,M,G){this._element=h,this._changeDetectorRef=b,this._parent=M,this.group=G,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Iu++,this.onSelectionChange=new o.bkB,this._stateChanges=new Se.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(h=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),h&&this._emitSelectionChangeEvent())}deselect(h=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),h&&this._emitSelectionChangeEvent())}focus(h,b){const M=this._getHostElement();"function"==typeof M.focus&&M.focus(b)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(h){(13===h.keyCode||32===h.keyCode)&&!Ao(h)&&(this._selectViaInteraction(),h.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const h=this.viewValue;h!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=h)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(h=!1){this.onSelectionChange.emit(new li(this,h))}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,viewQuery:function(b,M){if(1&b&&o.GBs(Du,7),2&b){let G;o.mGM(G=o.lsd())&&(M._text=G.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return E})(),au=(()=>{class E extends Fs{constructor(h,b,M,G){super(h,b,M,G)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(cd,8),o.rXU(Cl,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(b,M){1&b&&o.bIt("click",function(){return M._selectViaInteraction()})("keydown",function(we){return M._handleKeydown(we)}),2&b&&(o.Mr5("id",M.id),o.BMQ("aria-selected",M.selected)("aria-disabled",M.disabled.toString()),o.AVh("mdc-list-item--selected",M.selected)("mat-mdc-option-multiple",M.multiple)("mat-mdc-option-active",M.active)("mdc-list-item--disabled",M.disabled))},exportAs:["matOption"],features:[o.Vt3],ngContentSelectors:X,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(b,M){1&b&&(o.NAR(od),o.DNE(0,iu,1,2,"mat-pseudo-checkbox",0),o.SdG(1),o.j41(2,"span",1,2),o.SdG(4,1),o.k0s(),o.DNE(5,sd,1,1,"mat-pseudo-checkbox",3),o.DNE(6,t2,2,1,"span",4),o.nrm(7,"div",5)),2&b&&(o.Y8G("ngIf",M.multiple),o.R7$(5),o.Y8G("ngIf",!M.multiple&&M.selected&&!M.hideSingleSelectionIndicator),o.R7$(1),o.Y8G("ngIf",M.group&&M.group._inert),o.R7$(1),o.Y8G("matRippleTrigger",M._getHostElement())("matRippleDisabled",M.disabled||M.disableRipple))},dependencies:[Pl,g.bT,f1],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return E})(),w1=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[x1,g.MD,Pn,ad]})}return E})();const D2={capture:!0},ol=["focus","click","mouseenter","touchstart"],T2="mat-ripple-loader-uninitialized",V2="mat-ripple-loader-class-name",ud="mat-ripple-loader-centered",cu="mat-ripple-loader-disabled";let ue=(()=>{class E{constructor(){this._document=(0,o.WQX)(g.qQ,{optional:!0}),this._animationMode=(0,o.WQX)(o.bc$,{optional:!0}),this._globalRippleOptions=(0,o.WQX)(ou,{optional:!0}),this._platform=(0,o.WQX)(De),this._ngZone=(0,o.WQX)(o.SKi),this._hosts=new Map,this._onInteraction=h=>{if(!(h.target instanceof HTMLElement))return;const M=h.target.closest(`[${T2}]`);M&&this._createRipple(M)},this._ngZone.runOutsideAngular(()=>{for(const h of ol)this._document?.addEventListener(h,this._onInteraction,D2)})}ngOnDestroy(){const h=this._hosts.keys();for(const b of h)this.destroyRipple(b);for(const b of ol)this._document?.removeEventListener(b,this._onInteraction,D2)}configureRipple(h,b){h.setAttribute(T2,""),(b.className||!h.hasAttribute(V2))&&h.setAttribute(V2,b.className||""),b.centered&&h.setAttribute(ud,""),b.disabled&&h.setAttribute(cu,"")}getRipple(h){return this._hosts.get(h)||this._createRipple(h)}setDisabled(h,b){const M=this._hosts.get(h);M?M.disabled=b:b?h.setAttribute(cu,""):h.removeAttribute(cu)}_createRipple(h){if(!this._document)return;const b=this._hosts.get(h);if(b)return b;h.querySelector(".mat-ripple")?.remove();const M=this._document.createElement("span");M.classList.add("mat-ripple",h.getAttribute(V2)),h.append(M);const G=new Pl(new o.aKT(M),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return G._isInitialized=!0,G.trigger=h,G.centered=h.hasAttribute(ud),G.disabled=h.hasAttribute(cu),this.attachRipple(h,G),G}attachRipple(h,b){h.removeAttribute(T2),this._hosts.set(h,b)}destroyRipple(h){const b=this._hosts.get(h);b&&(b.ngOnDestroy(),this._hosts.delete(h))}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const j=["input"],N=["label"],K=["*"],ve=new o.nKC("mat-checkbox-default-options",{providedIn:"root",factory:Xe});function Xe(){return{color:"accent",clickAction:"check-indeterminate"}}const Ft={provide:V.kq,useExisting:(0,o.Rfq)(()=>Ne),multi:!0};class I{}let B=0;const R=Xe(),q=ms(xr(ko(Ds(class{constructor(E){this._elementRef=E}}))));let ae=(()=>{class E extends q{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(h){this._required=Kn(h)}constructor(h,b,M,G,we,en,Yn){super(b),this._changeDetectorRef=M,this._ngZone=G,this._animationMode=en,this._options=Yn,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new o.bkB,this.indeterminateChange=new o.bkB,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||R,this.color=this.defaultColor=this._options.color||R.color,this.tabIndex=parseInt(we)||0,this.id=this._uniqueId=`${h}${++B}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(h){const b=Kn(h);b!=this.checked&&(this._checked=b,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(h){const b=Kn(h);b!==this.disabled&&(this._disabled=b,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(h){const b=h!=this._indeterminate;this._indeterminate=Kn(h),b&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(h){this.checked=!!h}registerOnChange(h){this._controlValueAccessorChangeFn=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h}_transitionCheckState(h){let b=this._currentCheckState,M=this._getAnimationTargetElement();if(b!==h&&M&&(this._currentAnimationClass&&M.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,h),this._currentCheckState=h,this._currentAnimationClass.length>0)){M.classList.add(this._currentAnimationClass);const G=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{M.classList.remove(G)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const h=this._options?.clickAction;this.disabled||"noop"===h?!this.disabled&&"noop"===h&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==h&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(h){h.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(h,b){if("NoopAnimations"===this._animationMode)return"";switch(h){case 0:if(1===b)return this._animationClasses.uncheckedToChecked;if(3==b)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===b?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===b?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===b?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(h){const b=this._inputElement;b&&(b.nativeElement.indeterminate=h)}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,viewQuery:function(b,M){if(1&b&&(o.GBs(j,5),o.GBs(N,5),o.GBs(Pl,5)),2&b){let G;o.mGM(G=o.lsd())&&(M._inputElement=G.first),o.mGM(G=o.lsd())&&(M._labelElement=G.first),o.mGM(G=o.lsd())&&(M.ripple=G.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[o.Vt3]})}return E})(),Ne=(()=>{class E extends ae{constructor(h,b,M,G,we,en){super("mat-mdc-checkbox-",h,b,M,G,we,en),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(h){const b=new I;return b.source=this,b.checked=h,b}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(h){h.target&&this._labelElement.nativeElement.contains(h.target)&&h.stopPropagation()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(o.SKi),o.kS0("tabindex"),o.rXU(o.bc$,8),o.rXU(ve,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(b,M){2&b&&(o.Mr5("id",M.id),o.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),o.AVh("_mat-animation-noopable","NoopAnimations"===M._animationMode)("mdc-checkbox--disabled",M.disabled)("mat-mdc-checkbox-disabled",M.disabled)("mat-mdc-checkbox-checked",M.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[o.Jv_([Ft]),o.Vt3],ngContentSelectors:K,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(b,M){if(1&b&&(o.NAR(),o.j41(0,"div",0),o.bIt("click",function(we){return M._preventBubblingFromLabel(we)}),o.j41(1,"div",1,2)(3,"div",3),o.bIt("click",function(){return M._onTouchTargetClick()}),o.k0s(),o.j41(4,"input",4,5),o.bIt("blur",function(){return M._onBlur()})("click",function(){return M._onInputClick()})("change",function(we){return M._onInteractionEvent(we)}),o.k0s(),o.nrm(6,"div",6),o.j41(7,"div",7),o.qSk(),o.j41(8,"svg",8),o.nrm(9,"path",9),o.k0s(),o.joV(),o.nrm(10,"div",10),o.k0s(),o.nrm(11,"div",11),o.k0s(),o.j41(12,"label",12,13),o.SdG(14),o.k0s()()),2&b){const G=o.sdS(2);o.AVh("mdc-form-field--align-end","before"==M.labelPosition),o.R7$(4),o.AVh("mdc-checkbox--selected",M.checked),o.Y8G("checked",M.checked)("indeterminate",M.indeterminate)("disabled",M.disabled)("id",M.inputId)("required",M.required)("tabIndex",M.tabIndex),o.BMQ("aria-label",M.ariaLabel||null)("aria-labelledby",M.ariaLabelledby)("aria-describedby",M.ariaDescribedby)("aria-checked",M.indeterminate?"mixed":null)("name",M.name)("value",M.value),o.R7$(7),o.Y8G("matRippleTrigger",G)("matRippleDisabled",M.disableRipple||M.disabled)("matRippleCentered",!0),o.R7$(1),o.Y8G("for",M.inputId)}},dependencies:[Pl],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return E})(),un=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})(),Ci=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,x1,un,Pn,un]})}return E})();var Ji=F(8448),ls=F(8129),Ar=F(4929),Po=F(9867),al=F(8621),Xo=F(6111),Io=F(3229);function vc(E,O=Ar.E){return function Ko(E){return(0,Po.N)((O,h)=>{let b=!1,M=null,G=null,we=!1;const en=()=>{if(G?.unsubscribe(),G=null,b){b=!1;const ki=M;M=null,h.next(ki)}we&&h.complete()},Yn=()=>{G=null,we&&h.complete()};O.subscribe((0,Xo._)(h,ki=>{b=!0,M=ki,G||(0,al.Tg)(E(ki)).subscribe(G=(0,Xo._)(h,en,Yn))},()=>{we=!0,(!b||!G||G.closed)&&h.complete()}))})}(()=>(0,Io.O)(E,O))}const bo=ze({passive:!0});let Ou=(()=>{class E{constructor(h,b){this._platform=h,this._ngZone=b,this._monitoredElements=new Map}monitor(h){if(!this._platform.isBrowser)return Ji.w;const b=ka(h),M=this._monitoredElements.get(b);if(M)return M.subject;const G=new Se.B,we="cdk-text-field-autofilled",en=Yn=>{"cdk-text-field-autofill-start"!==Yn.animationName||b.classList.contains(we)?"cdk-text-field-autofill-end"===Yn.animationName&&b.classList.contains(we)&&(b.classList.remove(we),this._ngZone.run(()=>G.next({target:Yn.target,isAutofilled:!1}))):(b.classList.add(we),this._ngZone.run(()=>G.next({target:Yn.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{b.addEventListener("animationstart",en,bo),b.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(b,{subject:G,unlisten:()=>{b.removeEventListener("animationstart",en,bo)}}),G}stopMonitoring(h){const b=ka(h),M=this._monitoredElements.get(b);M&&(M.unlisten(),M.subject.complete(),b.classList.remove("cdk-text-field-autofill-monitored"),b.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(b))}ngOnDestroy(){this._monitoredElements.forEach((h,b)=>this.stopMonitoring(b))}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(o.SKi))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),Rc=(()=>{class E{get minRows(){return this._minRows}set minRows(h){this._minRows=ar(h),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(h){this._maxRows=ar(h),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(h){h=Kn(h),this._enabled!==h&&((this._enabled=h)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(h){this._cachedPlaceholderHeight=void 0,h?this._textareaElement.setAttribute("placeholder",h):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(h,b,M,G){this._elementRef=h,this._platform=b,this._ngZone=M,this._destroyed=new Se.B,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=we=>{this._hasFocus="focus"===we.type},this._document=G,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const h=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;h&&(this._textareaElement.style.minHeight=h)}_setMaxHeight(){const h=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;h&&(this._textareaElement.style.maxHeight=h)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const h=this._getWindow();(0,ls.R)(h,"resize").pipe(vc(16),(0,yi.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let h=this._textareaElement.cloneNode(!1);h.rows=1,h.style.position="absolute",h.style.visibility="hidden",h.style.border="none",h.style.padding="0",h.style.height="",h.style.minHeight="",h.style.maxHeight="",h.style.overflow="hidden",this._textareaElement.parentNode.appendChild(h),this._cachedLineHeight=h.clientHeight,h.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const h=this._textareaElement,b=h.style.marginBottom||"",M=this._platform.FIREFOX,G=M&&this._hasFocus,we=M?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";G&&(h.style.marginBottom=`${h.clientHeight}px`),h.classList.add(we);const en=h.scrollHeight-4;return h.classList.remove(we),G&&(h.style.marginBottom=b),en}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const h=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=h}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(h=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const b=this._elementRef.nativeElement,M=b.value;if(!h&&this._minRows===this._previousMinRows&&M===this._previousValue)return;const G=this._measureScrollHeight(),we=Math.max(G,this._cachedPlaceholderHeight||0);b.style.height=`${we}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(b)):setTimeout(()=>this._scrollToCaretPosition(b))}),this._previousValue=M,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(h){const{selectionStart:b,selectionEnd:M}=h;!this._destroyed.isStopped&&this._hasFocus&&h.setSelectionRange(b,M)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(De),o.rXU(o.SKi),o.rXU(g.qQ,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(b,M){1&b&&o.bIt("input",function(){return M._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return E})(),D4=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})();var M1=F(2489),er=F(9090),wr=F(7782);class Ba{constructor(O){this._box=O,this._destroyed=new Se.B,this._resizeSubject=new Se.B,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(h=>this._resizeSubject.next(h)))}observe(O){return this._elementObservables.has(O)||this._elementObservables.set(O,new Qs.c(h=>{const b=this._resizeSubject.subscribe(h);return this._resizeObserver?.observe(O,{box:this._box}),()=>{this._resizeObserver?.unobserve(O),b.unsubscribe(),this._elementObservables.delete(O)}}).pipe((0,za.p)(h=>h.some(b=>b.target===O)),function Mr(E,O,h){let b,M=!1;return E&&"object"==typeof E?({bufferSize:b=1/0,windowTime:O=1/0,refCount:M=!1,scheduler:h}=E):b=E??1/0,(0,wr.u)({connector:()=>new er.m(b,O,h),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:M})}({bufferSize:1,refCount:!0}),(0,yi.Q)(this._destroyed))),this._elementObservables.get(O)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Xc=(()=>{class E{constructor(){this._observers=new Map,this._ngZone=(0,o.WQX)(o.SKi)}ngOnDestroy(){for(const[,h]of this._observers)h.destroy();this._observers.clear()}observe(h,b){const M=b?.box||"content-box";return this._observers.has(M)||this._observers.set(M,new Ba(M)),this._observers.get(M).observe(h)}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var Sr=F(194);const S1=["notch"],ya=["matFormFieldNotchedOutline",""],Xd=["*"],L3=["textField"],$a=["iconPrefixContainer"],jl=["textPrefixContainer"];function Kl(E,O){1&E&&o.nrm(0,"span",19)}function Kd(E,O){if(1&E&&(o.j41(0,"label",17),o.SdG(1,1),o.DNE(2,Kl,1,0,"span",18),o.k0s()),2&E){const h=o.XpG(2);o.Y8G("floating",h._shouldLabelFloat())("monitorResize",h._hasOutline())("id",h._labelId),o.BMQ("for",h._control.id),o.R7$(2),o.Y8G("ngIf",!h.hideRequiredMarker&&h._control.required)}}function lu(E,O){if(1&E&&o.DNE(0,Kd,3,5,"label",16),2&E){const h=o.XpG();o.Y8G("ngIf",h._hasFloatingLabel())}}function T4(E,O){1&E&&o.nrm(0,"div",20)}function U0(E,O){}function Wh(E,O){if(1&E&&o.DNE(0,U0,0,0,"ng-template",22),2&E){o.XpG(2);const h=o.sdS(1);o.Y8G("ngTemplateOutlet",h)}}function im(E,O){if(1&E&&(o.j41(0,"div",21),o.DNE(1,Wh,1,1,"ng-template",9),o.k0s()),2&E){const h=o.XpG();o.Y8G("matFormFieldNotchedOutlineOpen",h._shouldLabelFloat()),o.R7$(1),o.Y8G("ngIf",!h._forceDisplayInfixLabel())}}function rm(E,O){1&E&&(o.j41(0,"div",23,24),o.SdG(2,2),o.k0s())}function z3(E,O){1&E&&(o.j41(0,"div",25,26),o.SdG(2,3),o.k0s())}function dd(E,O){}function qh(E,O){if(1&E&&o.DNE(0,dd,0,0,"ng-template",22),2&E){o.XpG();const h=o.sdS(1);o.Y8G("ngTemplateOutlet",h)}}function Lu(E,O){1&E&&(o.j41(0,"div",27),o.SdG(1,4),o.k0s())}function Yd(E,O){1&E&&(o.j41(0,"div",28),o.SdG(1,5),o.k0s())}function fd(E,O){1&E&&o.nrm(0,"div",29)}function Xh(E,O){if(1&E&&(o.j41(0,"div",30),o.SdG(1,6),o.k0s()),2&E){const h=o.XpG();o.Y8G("@transitionMessages",h._subscriptAnimationState)}}function R3(E,O){if(1&E&&(o.j41(0,"mat-hint",34),o.EFF(1),o.k0s()),2&E){const h=o.XpG(2);o.Y8G("id",h._hintLabelId),o.R7$(1),o.JRh(h.hintLabel)}}function G0(E,O){if(1&E&&(o.j41(0,"div",31),o.DNE(1,R3,2,2,"mat-hint",32),o.SdG(2,7),o.nrm(3,"div",33),o.SdG(4,8),o.k0s()),2&E){const h=o.XpG();o.Y8G("@transitionMessages",h._subscriptAnimationState),o.R7$(1),o.Y8G("ngIf",h.hintLabel)}}const A2=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],r2=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let zu=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["mat-label"]]})}return E})();const hd=new o.nKC("MatError");let N3=0,Yl=(()=>{class E{constructor(){this.align="start",this.id="mat-mdc-hint-"+N3++}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(b,M){2&b&&(o.Mr5("id",M.id),o.BMQ("align",null),o.AVh("mat-mdc-form-field-hint-end","end"===M.align))},inputs:{align:"align",id:"id"}})}return E})();const sm=new o.nKC("MatPrefix"),W0=new o.nKC("MatSuffix");let pd=(()=>{class E{constructor(){this._isText=!1}set _isTextSelector(h){this._isText=!0}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[o.Jv_([{provide:W0,useExisting:E}])]})}return E})();const P=new o.nKC("FloatingLabelParent");let Le=(()=>{class E{get floating(){return this._floating}set floating(h){this._floating=h,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(h){this._monitorResize=h,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(h){this._elementRef=h,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,o.WQX)(Xc),this._ngZone=(0,o.WQX)(o.SKi),this._parent=(0,o.WQX)(P),this._resizeSubscription=new it.yU}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function p(E){if(null!==E.offsetParent)return E.scrollWidth;const h=E.cloneNode(!0);h.style.setProperty("position","absolute"),h.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(h);const b=h.scrollWidth;return h.remove(),b}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(b,M){2&b&&o.AVh("mdc-floating-label--float-above",M.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return E})();const w="mdc-line-ripple--active",T="mdc-line-ripple--deactivating";let Z=(()=>{class E{constructor(h,b){this._elementRef=h,this._handleTransitionEnd=M=>{const G=this._elementRef.nativeElement.classList,we=G.contains(T);"opacity"===M.propertyName&&we&&G.remove(w,T)},b.runOutsideAngular(()=>{h.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const h=this._elementRef.nativeElement.classList;h.remove(T),h.add(w)}deactivate(){this._elementRef.nativeElement.classList.add(T)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.SKi))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return E})(),Qe=(()=>{class E{constructor(h,b){this._elementRef=h,this._ngZone=b,this.open=!1}ngAfterViewInit(){const h=this._elementRef.nativeElement.querySelector(".mdc-floating-label");h?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(h.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>h.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(h){this._notch.nativeElement.style.width=this.open&&h?`calc(${h}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.SKi))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(b,M){if(1&b&&o.GBs(S1,5),2&b){let G;o.mGM(G=o.lsd())&&(M._notch=G.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(b,M){2&b&&o.AVh("mdc-notched-outline--notched",M.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:ya,ngContentSelectors:Xd,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(b,M){1&b&&(o.NAR(),o.nrm(0,"div",0),o.j41(1,"div",1,2),o.SdG(3),o.k0s(),o.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return E})();const rn={transitionMessages:(0,Sr.hZ)("transitionMessages",[(0,Sr.wk)("enter",(0,Sr.iF)({opacity:1,transform:"translateY(0%)"})),(0,Sr.kY)("void => enter",[(0,Sr.iF)({opacity:0,transform:"translateY(-5px)"}),(0,Sr.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ri=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E})}return E})();const fs=new o.nKC("MatFormField"),kr=new o.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Eo=0,Da=(()=>{class E{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(h){this._hideRequiredMarker=Kn(h)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(h){h!==this._floatLabel&&(this._floatLabel=h,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(h){const b=this._appearance;this._appearance=h||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==b&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(h){this._subscriptSizing=h||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(h){this._hintLabel=h,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(h){this._explicitFormFieldControl=h}constructor(h,b,M,G,we,en,Yn,ki){this._elementRef=h,this._changeDetectorRef=b,this._ngZone=M,this._dir=G,this._platform=we,this._defaults=en,this._animationMode=Yn,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Eo++,this._hintLabelId="mat-mdc-hint-"+Eo++,this._subscriptAnimationState="",this._destroyed=new Se.B,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,en&&(en.appearance&&(this.appearance=en.appearance),this._hideRequiredMarker=!!en?.hideRequiredMarker,en.color&&(this.color=en.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const h=this._control;h.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${h.controlType}`),h.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),h.ngControl&&h.ngControl.valueChanges&&h.ngControl.valueChanges.pipe((0,yi.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(h=>!h._isText),this._hasTextPrefix=!!this._prefixChildren.find(h=>h._isText),this._hasIconSuffix=!!this._suffixChildren.find(h=>!h._isText),this._hasTextSuffix=!!this._suffixChildren.find(h=>h._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,M1.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,yi.Q)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,yi.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(h){const b=this._control?this._control.ngControl:null;return b&&b[h]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let h=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&h.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const b=this._hintChildren?this._hintChildren.find(G=>"start"===G.align):null,M=this._hintChildren?this._hintChildren.find(G=>"end"===G.align):null;b?h.push(b.id):this._hintLabel&&h.push(this._hintLabelId),M&&h.push(M.id)}else this._errorChildren&&h.push(...this._errorChildren.map(b=>b.id));this._control.setDescribedByIds(h)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const h=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(h.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const b=this._iconPrefixContainer?.nativeElement,M=this._textPrefixContainer?.nativeElement,G=b?.getBoundingClientRect().width??0,we=M?.getBoundingClientRect().width??0;h.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${G+we}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const h=this._elementRef.nativeElement;if(h.getRootNode){const b=h.getRootNode();return b&&b!==h}return document.documentElement.contains(h)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(bl),o.rXU(De),o.rXU(kr,8),o.rXU(o.bc$,8),o.rXU(g.qQ))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-form-field"]],contentQueries:function(b,M,G){if(1&b&&(o.wni(G,zu,5),o.wni(G,zu,7),o.wni(G,ri,5),o.wni(G,sm,5),o.wni(G,W0,5),o.wni(G,hd,5),o.wni(G,Yl,5)),2&b){let we;o.mGM(we=o.lsd())&&(M._labelChildNonStatic=we.first),o.mGM(we=o.lsd())&&(M._labelChildStatic=we.first),o.mGM(we=o.lsd())&&(M._formFieldControl=we.first),o.mGM(we=o.lsd())&&(M._prefixChildren=we),o.mGM(we=o.lsd())&&(M._suffixChildren=we),o.mGM(we=o.lsd())&&(M._errorChildren=we),o.mGM(we=o.lsd())&&(M._hintChildren=we)}},viewQuery:function(b,M){if(1&b&&(o.GBs(L3,5),o.GBs($a,5),o.GBs(jl,5),o.GBs(Le,5),o.GBs(Qe,5),o.GBs(Z,5)),2&b){let G;o.mGM(G=o.lsd())&&(M._textField=G.first),o.mGM(G=o.lsd())&&(M._iconPrefixContainer=G.first),o.mGM(G=o.lsd())&&(M._textPrefixContainer=G.first),o.mGM(G=o.lsd())&&(M._floatingLabel=G.first),o.mGM(G=o.lsd())&&(M._notchedOutline=G.first),o.mGM(G=o.lsd())&&(M._lineRipple=G.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(b,M){2&b&&o.AVh("mat-mdc-form-field-label-always-float",M._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",M._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",M._hasIconSuffix)("mat-form-field-invalid",M._control.errorState)("mat-form-field-disabled",M._control.disabled)("mat-form-field-autofilled",M._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===M._animationMode)("mat-form-field-appearance-fill","fill"==M.appearance)("mat-form-field-appearance-outline","outline"==M.appearance)("mat-form-field-hide-placeholder",M._hasFloatingLabel()&&!M._shouldLabelFloat())("mat-focused",M._control.focused)("mat-primary","accent"!==M.color&&"warn"!==M.color)("mat-accent","accent"===M.color)("mat-warn","warn"===M.color)("ng-untouched",M._shouldForward("untouched"))("ng-touched",M._shouldForward("touched"))("ng-pristine",M._shouldForward("pristine"))("ng-dirty",M._shouldForward("dirty"))("ng-valid",M._shouldForward("valid"))("ng-invalid",M._shouldForward("invalid"))("ng-pending",M._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[o.Jv_([{provide:fs,useExisting:E},{provide:P,useExisting:E}])],ngContentSelectors:r2,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(b,M){1&b&&(o.NAR(A2),o.DNE(0,lu,1,1,"ng-template",null,0,o.C5r),o.j41(2,"div",1,2),o.bIt("click",function(we){return M._control.onContainerClick(we)}),o.DNE(4,T4,1,0,"div",3),o.j41(5,"div",4),o.DNE(6,im,2,2,"div",5),o.DNE(7,rm,3,0,"div",6),o.DNE(8,z3,3,0,"div",7),o.j41(9,"div",8),o.DNE(10,qh,1,1,"ng-template",9),o.SdG(11),o.k0s(),o.DNE(12,Lu,2,0,"div",10),o.DNE(13,Yd,2,0,"div",11),o.k0s(),o.DNE(14,fd,1,0,"div",12),o.k0s(),o.j41(15,"div",13),o.DNE(16,Xh,2,1,"div",14),o.DNE(17,G0,5,2,"div",15),o.k0s()),2&b&&(o.R7$(2),o.AVh("mdc-text-field--filled",!M._hasOutline())("mdc-text-field--outlined",M._hasOutline())("mdc-text-field--no-label",!M._hasFloatingLabel())("mdc-text-field--disabled",M._control.disabled)("mdc-text-field--invalid",M._control.errorState),o.R7$(2),o.Y8G("ngIf",!M._hasOutline()&&!M._control.disabled),o.R7$(2),o.Y8G("ngIf",M._hasOutline()),o.R7$(1),o.Y8G("ngIf",M._hasIconPrefix),o.R7$(1),o.Y8G("ngIf",M._hasTextPrefix),o.R7$(2),o.Y8G("ngIf",!M._hasOutline()||M._forceDisplayInfixLabel()),o.R7$(2),o.Y8G("ngIf",M._hasTextSuffix),o.R7$(1),o.Y8G("ngIf",M._hasIconSuffix),o.R7$(1),o.Y8G("ngIf",!M._hasOutline()),o.R7$(1),o.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===M.subscriptSizing),o.Y8G("ngSwitch",M._getDisplayedMessages()),o.R7$(1),o.Y8G("ngSwitchCase","error"),o.R7$(1),o.Y8G("ngSwitchCase","hint"))},dependencies:[g.bT,g.T3,g.ux,g.e1,Yl,Le,Qe,Z],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[rn.transitionMessages]},changeDetection:0})}return E})(),ec=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,g.MD,rr,Pn]})}return E})();const s2=new o.nKC("MAT_INPUT_VALUE_ACCESSOR"),Jd=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let I2=0;const o2=ha(class{constructor(E,O,h,b){this._defaultErrorStateMatcher=E,this._parentForm=O,this._parentFormGroup=h,this.ngControl=b,this.stateChanges=new Se.B}});let a2=(()=>{class E extends o2{get disabled(){return this._disabled}set disabled(h){this._disabled=Kn(h),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(h){this._id=h||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(V.k0.required)??!1}set required(h){this._required=Kn(h)}get type(){return this._type}set type(h){this._type=h||"text",this._validateType(),!this._isTextarea&&ge().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(h){h!==this.value&&(this._inputValueAccessor.value=h,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(h){this._readonly=Kn(h)}constructor(h,b,M,G,we,en,Yn,ki,Ai,$r){super(en,G,we,M),this._elementRef=h,this._platform=b,this._autofillMonitor=ki,this._formField=$r,this._uid="mat-input-"+I2++,this.focused=!1,this.stateChanges=new Se.B,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(lc=>ge().has(lc)),this._iOSKeyupListener=lc=>{const pa=lc.target;!pa.value&&0===pa.selectionStart&&0===pa.selectionEnd&&(pa.setSelectionRange(1,1),pa.setSelectionRange(0,0))};const Pc=this._elementRef.nativeElement,Tc=Pc.nodeName.toLowerCase();this._inputValueAccessor=Yn||Pc,this._previousNativeValue=this.value,this.id=this.id,b.IOS&&Ai.runOutsideAngular(()=>{h.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Tc,this._isTextarea="textarea"===Tc,this._isInFormField=!!$r,this._isNativeSelect&&(this.controlType=Pc.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(h=>{this.autofilled=h.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(h){this._elementRef.nativeElement.focus(h)}_focusChanged(h){h!==this.focused&&(this.focused=h,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const h=this._elementRef.nativeElement.value;this._previousNativeValue!==h&&(this._previousNativeValue=h,this.stateChanges.next())}_dirtyCheckPlaceholder(){const h=this._getPlaceholder();if(h!==this._previousPlaceholder){const b=this._elementRef.nativeElement;this._previousPlaceholder=h,h?b.setAttribute("placeholder",h):b.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Jd.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let h=this._elementRef.nativeElement.validity;return h&&h.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const h=this._elementRef.nativeElement,b=h.options[0];return this.focused||h.multiple||!this.empty||!!(h.selectedIndex>-1&&b&&b.label)}return this.focused||!this.empty}setDescribedByIds(h){h.length?this._elementRef.nativeElement.setAttribute("aria-describedby",h.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const h=this._elementRef.nativeElement;return this._isNativeSelect&&(h.multiple||h.size>1)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(De),o.rXU(V.vO,10),o.rXU(V.cV,8),o.rXU(V.j4,8),o.rXU(ac),o.rXU(s2,10),o.rXU(Ou),o.rXU(o.SKi),o.rXU(fs,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(b,M){1&b&&o.bIt("focus",function(){return M._focusChanged(!0)})("blur",function(){return M._focusChanged(!1)})("input",function(){return M._onInput()}),2&b&&(o.Mr5("id",M.id)("disabled",M.disabled)("required",M.required),o.BMQ("name",M.name||null)("readonly",M.readonly&&!M._isNativeSelect||null)("aria-invalid",M.empty&&M.required?null:M.errorState)("aria-required",M.required)("id",M.id),o.AVh("mat-input-server",M._isServer)("mat-mdc-form-field-textarea-control",M._isInFormField&&M._isTextarea)("mat-mdc-form-field-input-control",M._isInFormField)("mdc-text-field__input",M._isInFormField)("mat-mdc-native-select-inline",M._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[o.Jv_([{provide:ri,useExisting:E}]),o.Vt3,o.OA$]})}return E})(),Zd=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,ec,ec,D4,Pn]})}return E})();var Oo=F(2709),D7=F(1227);const N1={schedule(E){let O=requestAnimationFrame,h=cancelAnimationFrame;const{delegate:b}=N1;b&&(O=b.requestAnimationFrame,h=b.cancelAnimationFrame);const M=O(G=>{h=void 0,E(G)});return new it.yU(()=>h?.(M))},requestAnimationFrame(...E){const{delegate:O}=N1;return(O?.requestAnimationFrame||requestAnimationFrame)(...E)},cancelAnimationFrame(...E){const{delegate:O}=N1;return(O?.cancelAnimationFrame||cancelAnimationFrame)(...E)},delegate:void 0};var Kh=F(1246);new class cl extends Kh.q{flush(O){this._active=!0;const h=this._scheduled;this._scheduled=void 0;const{actions:b}=this;let M;O=O||b.shift();do{if(M=O.execute(O.state,O.delay))break}while((O=b[0])&&O.id===h&&b.shift());if(this._active=!1,M){for(;(O=b[0])&&O.id===h&&b.shift();)O.unsubscribe();throw M}}}(class am extends D7.R{constructor(O,h){super(O,h),this.scheduler=O,this.work=h}requestAsyncId(O,h,b=0){return null!==b&&b>0?super.requestAsyncId(O,h,b):(O.actions.push(this),O._scheduled||(O._scheduled=N1.requestAnimationFrame(()=>O.flush(void 0))))}recycleAsyncId(O,h,b=0){var M;if(null!=b?b>0:this.delay>0)return super.recycleAsyncId(O,h,b);const{actions:G}=O;null!=h&&(null===(M=G[G.length-1])||void 0===M?void 0:M.id)!==h&&(N1.cancelAnimationFrame(h),O._scheduled=void 0)}});let Dc,T7=1;const Ru={};function Yh(E){return E in Ru&&(delete Ru[E],!0)}const X0={setImmediate(E){const O=T7++;return Ru[O]=!0,Dc||(Dc=Promise.resolve()),Dc.then(()=>Yh(O)&&E()),O},clearImmediate(E){Yh(E)}},{setImmediate:V7,clearImmediate:Nb}=X0,Y0={setImmediate(...E){const{delegate:O}=Y0;return(O?.setImmediate||V7)(...E)},clearImmediate(E){const{delegate:O}=Y0;return(O?.clearImmediate||Nb)(E)},delegate:void 0};new class P1 extends Kh.q{flush(O){this._active=!0;const h=this._scheduled;this._scheduled=void 0;const{actions:b}=this;let M;O=O||b.shift();do{if(M=O.execute(O.state,O.delay))break}while((O=b[0])&&O.id===h&&b.shift());if(this._active=!1,M){for(;(O=b[0])&&O.id===h&&b.shift();)O.unsubscribe();throw M}}}(class Pb extends D7.R{constructor(O,h){super(O,h),this.scheduler=O,this.work=h}requestAsyncId(O,h,b=0){return null!==b&&b>0?super.requestAsyncId(O,h,b):(O.actions.push(this),O._scheduled||(O._scheduled=Y0.setImmediate(O.flush.bind(O,void 0))))}recycleAsyncId(O,h,b=0){var M;if(null!=b?b>0:this.delay>0)return super.recycleAsyncId(O,h,b);const{actions:G}=O;null!=h&&(null===(M=G[G.length-1])||void 0===M?void 0:M.id)!==h&&(Y0.clearImmediate(h),O._scheduled===h&&(O._scheduled=void 0))}});let O7=(()=>{class E{constructor(h,b,M){this._ngZone=h,this._platform=b,this._scrolled=new Se.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=M}register(h){this.scrollContainers.has(h)||this.scrollContainers.set(h,h.elementScrolled().subscribe(()=>this._scrolled.next(h)))}deregister(h){const b=this.scrollContainers.get(h);b&&(b.unsubscribe(),this.scrollContainers.delete(h))}scrolled(h=20){return this._platform.isBrowser?new Qs.c(b=>{this._globalSubscription||this._addGlobalListener();const M=h>0?this._scrolled.pipe(vc(h)).subscribe(b):this._scrolled.subscribe(b);return this._scrolledCount++,()=>{M.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,jt.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((h,b)=>this.deregister(b)),this._scrolled.complete()}ancestorScrolled(h,b){const M=this.getAncestorScrollContainers(h);return this.scrolled(b).pipe((0,za.p)(G=>!G||M.indexOf(G)>-1))}getAncestorScrollContainers(h){const b=[];return this.scrollContainers.forEach((M,G)=>{this._scrollableContainsElement(G,h)&&b.push(G)}),b}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(h,b){let M=ka(b),G=h.getElementRef().nativeElement;do{if(M==G)return!0}while(M=M.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const h=this._getWindow();return(0,ls.R)(h.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(o.SKi),o.KVO(De),o.KVO(g.qQ,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),Jh=(()=>{class E{constructor(h,b,M){this._platform=h,this._change=new Se.B,this._changeListener=G=>{this._change.next(G)},this._document=M,b.runOutsideAngular(()=>{if(h.isBrowser){const G=this._getWindow();G.addEventListener("resize",this._changeListener),G.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const h=this._getWindow();h.removeEventListener("resize",this._changeListener),h.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const h={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),h}getViewportRect(){const h=this.getViewportScrollPosition(),{width:b,height:M}=this.getViewportSize();return{top:h.top,left:h.left,bottom:h.top+M,right:h.left+b,height:M,width:b}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const h=this._document,b=this._getWindow(),M=h.documentElement,G=M.getBoundingClientRect();return{top:-G.top||h.body.scrollTop||b.scrollY||M.scrollTop||0,left:-G.left||h.body.scrollLeft||b.scrollX||M.scrollLeft||0}}change(h=20){return h>0?this._change.pipe(vc(h)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const h=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:h.innerWidth,height:h.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(o.SKi),o.KVO(g.qQ,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),Z0=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})(),Nu=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[C1,Z0,C1,Z0]})}return E})();var j3=F(7049);class e6{attach(O){return this._attachedHost=O,O.attach(this)}detach(){let O=this._attachedHost;null!=O&&(this._attachedHost=null,O.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(O){this._attachedHost=O}}class ef extends e6{constructor(O,h,b,M,G){super(),this.component=O,this.viewContainerRef=h,this.injector=b,this.componentFactoryResolver=M,this.projectableNodes=G}}class F3 extends e6{constructor(O,h,b,M){super(),this.templateRef=O,this.viewContainerRef=h,this.context=b,this.injector=M}get origin(){return this.templateRef.elementRef}attach(O,h=this.context){return this.context=h,super.attach(O)}detach(){return this.context=void 0,super.detach()}}class t6 extends e6{constructor(O){super(),this.element=O instanceof o.aKT?O.nativeElement:O}}class fm{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(O){return O instanceof ef?(this._attachedPortal=O,this.attachComponentPortal(O)):O instanceof F3?(this._attachedPortal=O,this.attachTemplatePortal(O)):this.attachDomPortal&&O instanceof t6?(this._attachedPortal=O,this.attachDomPortal(O)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(O){this._disposeFn=O}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Xb extends fm{constructor(O,h,b,M,G){super(),this.outletElement=O,this._componentFactoryResolver=h,this._appRef=b,this._defaultInjector=M,this.attachDomPortal=we=>{const en=we.element,Yn=this._document.createComment("dom-portal");en.parentNode.insertBefore(Yn,en),this.outletElement.appendChild(en),this._attachedPortal=we,super.setDisposeFn(()=>{Yn.parentNode&&Yn.parentNode.replaceChild(en,Yn)})},this._document=G}attachComponentPortal(O){const b=(O.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(O.component);let M;return O.viewContainerRef?(M=O.viewContainerRef.createComponent(b,O.viewContainerRef.length,O.injector||O.viewContainerRef.injector,O.projectableNodes||void 0),this.setDisposeFn(()=>M.destroy())):(M=b.create(O.injector||this._defaultInjector||o.zZn.NULL),this._appRef.attachView(M.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(M.hostView),M.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(M)),this._attachedPortal=O,M}attachTemplatePortal(O){let h=O.viewContainerRef,b=h.createEmbeddedView(O.templateRef,O.context,{injector:O.injector});return b.rootNodes.forEach(M=>this.outletElement.appendChild(M)),b.detectChanges(),this.setDisposeFn(()=>{let M=h.indexOf(b);-1!==M&&h.remove(M)}),this._attachedPortal=O,b}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(O){return O.hostView.rootNodes[0]}}let pm=(()=>{class E extends fm{constructor(h,b,M){super(),this._componentFactoryResolver=h,this._viewContainerRef=b,this._isInitialized=!1,this.attached=new o.bkB,this.attachDomPortal=G=>{const we=G.element,en=this._document.createComment("dom-portal");G.setAttachedHost(this),we.parentNode.insertBefore(en,we),this._getRootNode().appendChild(we),this._attachedPortal=G,super.setDisposeFn(()=>{en.parentNode&&en.parentNode.replaceChild(we,en)})},this._document=M}get portal(){return this._attachedPortal}set portal(h){this.hasAttached()&&!h&&!this._isInitialized||(this.hasAttached()&&super.detach(),h&&super.attach(h),this._attachedPortal=h||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(h){h.setAttachedHost(this);const b=null!=h.viewContainerRef?h.viewContainerRef:this._viewContainerRef,G=(h.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(h.component),we=b.createComponent(G,b.length,h.injector||b.injector,h.projectableNodes||void 0);return b!==this._viewContainerRef&&this._getRootNode().appendChild(we.hostView.rootNodes[0]),super.setDisposeFn(()=>we.destroy()),this._attachedPortal=h,this._attachedRef=we,this.attached.emit(we),we}attachTemplatePortal(h){h.setAttachedHost(this);const b=this._viewContainerRef.createEmbeddedView(h.templateRef,h.context,{injector:h.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=h,this._attachedRef=b,this.attached.emit(b),b}_getRootNode(){const h=this._viewContainerRef.element.nativeElement;return h.nodeType===h.ELEMENT_NODE?h:h.parentNode}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.OM3),o.rXU(o.c1b),o.rXU(g.qQ))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.Vt3]})}return E})(),N7=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})();const tf=tt();class P7{constructor(O,h){this._viewportRuler=O,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=h}attach(){}enable(){if(this._canBeEnabled()){const O=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=O.style.left||"",this._previousHTMLStyles.top=O.style.top||"",O.style.left=ns(-this._previousScrollPosition.left),O.style.top=ns(-this._previousScrollPosition.top),O.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const O=this._document.documentElement,b=O.style,M=this._document.body.style,G=b.scrollBehavior||"",we=M.scrollBehavior||"";this._isEnabled=!1,b.left=this._previousHTMLStyles.left,b.top=this._previousHTMLStyles.top,O.classList.remove("cdk-global-scrollblock"),tf&&(b.scrollBehavior=M.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tf&&(b.scrollBehavior=G,M.scrollBehavior=we)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const h=this._document.body,b=this._viewportRuler.getViewportSize();return h.scrollHeight>b.height||h.scrollWidth>b.width}}class Kb{constructor(O,h,b,M){this._scrollDispatcher=O,this._ngZone=h,this._viewportRuler=b,this._config=M,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(O){this._overlayRef=O}enable(){if(this._scrollSubscription)return;const O=this._scrollDispatcher.scrolled(0).pipe((0,za.p)(h=>!h||!this._overlayRef.overlayElement.contains(h.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=O.subscribe(()=>{const h=this._viewportRuler.getViewportScrollPosition().top;Math.abs(h-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=O.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class j7{enable(){}disable(){}attach(){}}function mm(E,O){return O.some(h=>E.bottomh.bottom||E.righth.right)}function gm(E,O){return O.some(h=>E.toph.bottom||E.lefth.right)}class nf{constructor(O,h,b,M){this._scrollDispatcher=O,this._viewportRuler=h,this._ngZone=b,this._config=M,this._scrollSubscription=null}attach(O){this._overlayRef=O}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const h=this._overlayRef.overlayElement.getBoundingClientRect(),{width:b,height:M}=this._viewportRuler.getViewportSize();mm(h,[{width:b,height:M,bottom:M,right:b,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let rf=(()=>{class E{constructor(h,b,M,G){this._scrollDispatcher=h,this._viewportRuler=b,this._ngZone=M,this.noop=()=>new j7,this.close=we=>new Kb(this._scrollDispatcher,this._ngZone,this._viewportRuler,we),this.block=()=>new P7(this._viewportRuler,this._document),this.reposition=we=>new nf(this._scrollDispatcher,this._viewportRuler,this._ngZone,we),this._document=G}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(O7),o.KVO(Jh),o.KVO(o.SKi),o.KVO(g.qQ))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class wl{constructor(O){if(this.scrollStrategy=new j7,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,O){const h=Object.keys(O);for(const b of h)void 0!==O[b]&&(this[b]=O[b])}}}class A4{constructor(O,h){this.connectionPair=O,this.scrollableViewProperties=h}}let O4=(()=>{class E{constructor(h){this._attachedOverlays=[],this._document=h}ngOnDestroy(){this.detach()}add(h){this.remove(h),this._attachedOverlays.push(h)}remove(h){const b=this._attachedOverlays.indexOf(h);b>-1&&this._attachedOverlays.splice(b,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(g.qQ))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),af=(()=>{class E extends O4{constructor(h,b){super(h),this._ngZone=b,this._keydownListener=M=>{const G=this._attachedOverlays;for(let we=G.length-1;we>-1;we--)if(G[we]._keydownEvents.observers.length>0){const en=G[we]._keydownEvents;this._ngZone?this._ngZone.run(()=>en.next(M)):en.next(M);break}}}add(h){super.add(h),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(g.qQ),o.KVO(o.SKi,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),cf=(()=>{class E extends O4{constructor(h,b,M){super(h),this._platform=b,this._ngZone=M,this._cursorStyleIsSet=!1,this._pointerDownListener=G=>{this._pointerDownEventTarget=he(G)},this._clickListener=G=>{const we=he(G),en="click"===G.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:we;this._pointerDownEventTarget=null;const Yn=this._attachedOverlays.slice();for(let ki=Yn.length-1;ki>-1;ki--){const Ai=Yn[ki];if(Ai._outsidePointerEvents.observers.length<1||!Ai.hasAttached())continue;if(Ai.overlayElement.contains(we)||Ai.overlayElement.contains(en))break;const $r=Ai._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>$r.next(G)):$r.next(G)}}}add(h){if(super.add(h),!this._isAttached){const b=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(b)):this._addEventListeners(b),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=b.style.cursor,b.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const h=this._document.body;h.removeEventListener("pointerdown",this._pointerDownListener,!0),h.removeEventListener("click",this._clickListener,!0),h.removeEventListener("auxclick",this._clickListener,!0),h.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(h.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(h){h.addEventListener("pointerdown",this._pointerDownListener,!0),h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(g.qQ),o.KVO(De),o.KVO(o.SKi,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),vm=(()=>{class E{constructor(h,b){this._platform=b,this._document=h}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const h="cdk-overlay-container";if(this._platform.isBrowser||He()){const M=this._document.querySelectorAll(`.${h}[platform="server"], .${h}[platform="test"]`);for(let G=0;Gthis._backdropClick.next($r),this._backdropTransitionendHandler=$r=>{this._disposeBackdrop($r.target)},this._keydownEvents=new Se.B,this._outsidePointerEvents=new Se.B,M.scrollStrategy&&(this._scrollStrategy=M.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=M.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(O){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const h=this._portalOutlet.attach(O);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,gr.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof h?.onDestroy&&h.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),h}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const O=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),O}dispose(){const O=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,O&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(O){O!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=O,this.hasAttached()&&(O.attach(this),this.updatePosition()))}updateSize(O){this._config={...this._config,...O},this._updateElementSize()}setDirection(O){this._config={...this._config,direction:O},this._updateElementDirection()}addPanelClass(O){this._pane&&this._toggleClasses(this._pane,O,!0)}removePanelClass(O){this._pane&&this._toggleClasses(this._pane,O,!1)}getDirection(){const O=this._config.direction;return O?"string"==typeof O?O:O.value:"ltr"}updateScrollStrategy(O){O!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=O,this.hasAttached()&&(O.attach(this),O.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const O=this._pane.style;O.width=ns(this._config.width),O.height=ns(this._config.height),O.minWidth=ns(this._config.minWidth),O.minHeight=ns(this._config.minHeight),O.maxWidth=ns(this._config.maxWidth),O.maxHeight=ns(this._config.maxHeight)}_togglePointerEvents(O){this._pane.style.pointerEvents=O?"":"none"}_attachBackdrop(){const O="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(O)})}):this._backdropElement.classList.add(O)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const O=this._backdropElement;if(O){if(this._animationsDisabled)return void this._disposeBackdrop(O);O.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{O.addEventListener("transitionend",this._backdropTransitionendHandler)}),O.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(O)},500))}}_toggleClasses(O,h,b){const M=Mo(h||[]).filter(G=>!!G);M.length&&(b?O.classList.add(...M):O.classList.remove(...M))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const O=this._ngZone.onStable.pipe((0,yi.Q)((0,M1.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),O.unsubscribe())})})}_disposeScrollStrategy(){const O=this._scrollStrategy;O&&(O.disable(),O.detach&&O.detach())}_disposeBackdrop(O){O&&(O.removeEventListener("click",this._backdropClickHandler),O.removeEventListener("transitionend",this._backdropTransitionendHandler),O.remove(),this._backdropElement===O&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _m="cdk-overlay-connected-position-bounding-box",H4=/([A-Za-z%]+)$/;class lf{get positions(){return this._preferredPositions}constructor(O,h,b,M,G){this._viewportRuler=h,this._document=b,this._platform=M,this._overlayContainer=G,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Se.B,this._resizeSubscription=it.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(O)}attach(O){this._validatePositions(),O.hostElement.classList.add(_m),this._overlayRef=O,this._boundingBox=O.hostElement,this._pane=O.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const O=this._originRect,h=this._overlayRect,b=this._viewportRect,M=this._containerRect,G=[];let we;for(let en of this._preferredPositions){let Yn=this._getOriginPoint(O,M,en),ki=this._getOverlayPoint(Yn,h,en),Ai=this._getOverlayFit(ki,h,b,en);if(Ai.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(en,Yn);this._canFitWithFlexibleDimensions(Ai,ki,b)?G.push({position:en,origin:Yn,overlayRect:h,boundingBoxRect:this._calculateBoundingBoxRect(Yn,en)}):(!we||we.overlayFit.visibleAreaYn&&(Yn=Ai,en=ki)}return this._isPushed=!1,void this._applyPosition(en.position,en.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(we.position,we.originPoint);this._applyPosition(we.position,we.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&e4(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_m),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const O=this._lastPosition;if(O){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const h=this._getOriginPoint(this._originRect,this._containerRect,O);this._applyPosition(O,h)}else this.apply()}withScrollableContainers(O){return this._scrollables=O,this}withPositions(O){return this._preferredPositions=O,-1===O.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(O){return this._viewportMargin=O,this}withFlexibleDimensions(O=!0){return this._hasFlexibleDimensions=O,this}withGrowAfterOpen(O=!0){return this._growAfterOpen=O,this}withPush(O=!0){return this._canPush=O,this}withLockedPosition(O=!0){return this._positionLocked=O,this}setOrigin(O){return this._origin=O,this}withDefaultOffsetX(O){return this._offsetX=O,this}withDefaultOffsetY(O){return this._offsetY=O,this}withTransformOriginOn(O){return this._transformOriginSelector=O,this}_getOriginPoint(O,h,b){let M,G;if("center"==b.originX)M=O.left+O.width/2;else{const we=this._isRtl()?O.right:O.left,en=this._isRtl()?O.left:O.right;M="start"==b.originX?we:en}return h.left<0&&(M-=h.left),G="center"==b.originY?O.top+O.height/2:"top"==b.originY?O.top:O.bottom,h.top<0&&(G-=h.top),{x:M,y:G}}_getOverlayPoint(O,h,b){let M,G;return M="center"==b.overlayX?-h.width/2:"start"===b.overlayX?this._isRtl()?-h.width:0:this._isRtl()?0:-h.width,G="center"==b.overlayY?-h.height/2:"top"==b.overlayY?0:-h.height,{x:O.x+M,y:O.y+G}}_getOverlayFit(O,h,b,M){const G=ym(h);let{x:we,y:en}=O,Yn=this._getOffset(M,"x"),ki=this._getOffset(M,"y");Yn&&(we+=Yn),ki&&(en+=ki);let Pc=0-en,Tc=en+G.height-b.height,lc=this._subtractOverflows(G.width,0-we,we+G.width-b.width),pa=this._subtractOverflows(G.height,Pc,Tc),Sl=lc*pa;return{visibleArea:Sl,isCompletelyWithinViewport:G.width*G.height===Sl,fitsInViewportVertically:pa===G.height,fitsInViewportHorizontally:lc==G.width}}_canFitWithFlexibleDimensions(O,h,b){if(this._hasFlexibleDimensions){const M=b.bottom-h.y,G=b.right-h.x,we=bm(this._overlayRef.getConfig().minHeight),en=bm(this._overlayRef.getConfig().minWidth);return(O.fitsInViewportVertically||null!=we&&we<=M)&&(O.fitsInViewportHorizontally||null!=en&&en<=G)}return!1}_pushOverlayOnScreen(O,h,b){if(this._previousPushAmount&&this._positionLocked)return{x:O.x+this._previousPushAmount.x,y:O.y+this._previousPushAmount.y};const M=ym(h),G=this._viewportRect,we=Math.max(O.x+M.width-G.width,0),en=Math.max(O.y+M.height-G.height,0),Yn=Math.max(G.top-b.top-O.y,0),ki=Math.max(G.left-b.left-O.x,0);let Ai=0,$r=0;return Ai=M.width<=G.width?ki||-we:O.xlc&&!this._isInitialRender&&!this._growAfterOpen&&(we=O.y-lc/2)}if("end"===h.overlayX&&!M||"start"===h.overlayX&&M)Pc=b.width-O.x+this._viewportMargin,Ai=O.x-this._viewportMargin;else if("start"===h.overlayX&&!M||"end"===h.overlayX&&M)$r=O.x,Ai=b.right-O.x;else{const Tc=Math.min(b.right-O.x+b.left,O.x),lc=this._lastBoundingBoxSize.width;Ai=2*Tc,$r=O.x-Tc,Ai>lc&&!this._isInitialRender&&!this._growAfterOpen&&($r=O.x-lc/2)}return{top:we,left:$r,bottom:en,right:Pc,width:Ai,height:G}}_setBoundingBoxStyles(O,h){const b=this._calculateBoundingBoxRect(O,h);!this._isInitialRender&&!this._growAfterOpen&&(b.height=Math.min(b.height,this._lastBoundingBoxSize.height),b.width=Math.min(b.width,this._lastBoundingBoxSize.width));const M={};if(this._hasExactPosition())M.top=M.left="0",M.bottom=M.right=M.maxHeight=M.maxWidth="",M.width=M.height="100%";else{const G=this._overlayRef.getConfig().maxHeight,we=this._overlayRef.getConfig().maxWidth;M.height=ns(b.height),M.top=ns(b.top),M.bottom=ns(b.bottom),M.width=ns(b.width),M.left=ns(b.left),M.right=ns(b.right),M.alignItems="center"===h.overlayX?"center":"end"===h.overlayX?"flex-end":"flex-start",M.justifyContent="center"===h.overlayY?"center":"bottom"===h.overlayY?"flex-end":"flex-start",G&&(M.maxHeight=ns(G)),we&&(M.maxWidth=ns(we))}this._lastBoundingBoxSize=b,e4(this._boundingBox.style,M)}_resetBoundingBoxStyles(){e4(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){e4(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(O,h){const b={},M=this._hasExactPosition(),G=this._hasFlexibleDimensions,we=this._overlayRef.getConfig();if(M){const Ai=this._viewportRuler.getViewportScrollPosition();e4(b,this._getExactOverlayY(h,O,Ai)),e4(b,this._getExactOverlayX(h,O,Ai))}else b.position="static";let en="",Yn=this._getOffset(h,"x"),ki=this._getOffset(h,"y");Yn&&(en+=`translateX(${Yn}px) `),ki&&(en+=`translateY(${ki}px)`),b.transform=en.trim(),we.maxHeight&&(M?b.maxHeight=ns(we.maxHeight):G&&(b.maxHeight="")),we.maxWidth&&(M?b.maxWidth=ns(we.maxWidth):G&&(b.maxWidth="")),e4(this._pane.style,b)}_getExactOverlayY(O,h,b){let M={top:"",bottom:""},G=this._getOverlayPoint(h,this._overlayRect,O);return this._isPushed&&(G=this._pushOverlayOnScreen(G,this._overlayRect,b)),"bottom"===O.overlayY?M.bottom=this._document.documentElement.clientHeight-(G.y+this._overlayRect.height)+"px":M.top=ns(G.y),M}_getExactOverlayX(O,h,b){let we,M={left:"",right:""},G=this._getOverlayPoint(h,this._overlayRect,O);return this._isPushed&&(G=this._pushOverlayOnScreen(G,this._overlayRect,b)),we=this._isRtl()?"end"===O.overlayX?"left":"right":"end"===O.overlayX?"right":"left","right"===we?M.right=this._document.documentElement.clientWidth-(G.x+this._overlayRect.width)+"px":M.left=ns(G.x),M}_getScrollVisibility(){const O=this._getOriginRect(),h=this._pane.getBoundingClientRect(),b=this._scrollables.map(M=>M.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gm(O,b),isOriginOutsideView:mm(O,b),isOverlayClipped:gm(h,b),isOverlayOutsideView:mm(h,b)}}_subtractOverflows(O,...h){return h.reduce((b,M)=>b-Math.max(M,0),O)}_getNarrowedViewportRect(){const O=this._document.documentElement.clientWidth,h=this._document.documentElement.clientHeight,b=this._viewportRuler.getViewportScrollPosition();return{top:b.top+this._viewportMargin,left:b.left+this._viewportMargin,right:b.left+O-this._viewportMargin,bottom:b.top+h-this._viewportMargin,width:O-2*this._viewportMargin,height:h-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(O,h){return"x"===h?null==O.offsetX?this._offsetX:O.offsetX:null==O.offsetY?this._offsetY:O.offsetY}_validatePositions(){}_addPanelClasses(O){this._pane&&Mo(O).forEach(h=>{""!==h&&-1===this._appliedPanelClasses.indexOf(h)&&(this._appliedPanelClasses.push(h),this._pane.classList.add(h))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(O=>{this._pane.classList.remove(O)}),this._appliedPanelClasses=[])}_getOriginRect(){const O=this._origin;if(O instanceof o.aKT)return O.nativeElement.getBoundingClientRect();if(O instanceof Element)return O.getBoundingClientRect();const h=O.width||0,b=O.height||0;return{top:O.y,bottom:O.y+b,left:O.x,right:O.x+h,height:b,width:h}}}function e4(E,O){for(let h in O)O.hasOwnProperty(h)&&(E[h]=O[h]);return E}function bm(E){if("number"!=typeof E&&null!=E){const[O,h]=E.split(H4);return h&&"px"!==h?null:parseFloat(O)}return E||null}function ym(E){return{top:Math.floor(E.top),right:Math.floor(E.right),bottom:Math.floor(E.bottom),left:Math.floor(E.left),width:Math.floor(E.width),height:Math.floor(E.height)}}const Cm="cdk-global-overlay-wrapper";class k1{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(O){const h=O.getConfig();this._overlayRef=O,this._width&&!h.width&&O.updateSize({width:this._width}),this._height&&!h.height&&O.updateSize({height:this._height}),O.hostElement.classList.add(Cm),this._isDisposed=!1}top(O=""){return this._bottomOffset="",this._topOffset=O,this._alignItems="flex-start",this}left(O=""){return this._xOffset=O,this._xPosition="left",this}bottom(O=""){return this._topOffset="",this._bottomOffset=O,this._alignItems="flex-end",this}right(O=""){return this._xOffset=O,this._xPosition="right",this}start(O=""){return this._xOffset=O,this._xPosition="start",this}end(O=""){return this._xOffset=O,this._xPosition="end",this}width(O=""){return this._overlayRef?this._overlayRef.updateSize({width:O}):this._width=O,this}height(O=""){return this._overlayRef?this._overlayRef.updateSize({height:O}):this._height=O,this}centerHorizontally(O=""){return this.left(O),this._xPosition="center",this}centerVertically(O=""){return this.top(O),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const O=this._overlayRef.overlayElement.style,h=this._overlayRef.hostElement.style,b=this._overlayRef.getConfig(),{width:M,height:G,maxWidth:we,maxHeight:en}=b,Yn=!("100%"!==M&&"100vw"!==M||we&&"100%"!==we&&"100vw"!==we),ki=!("100%"!==G&&"100vh"!==G||en&&"100%"!==en&&"100vh"!==en),Ai=this._xPosition,$r=this._xOffset,Pc="rtl"===this._overlayRef.getConfig().direction;let Tc="",lc="",pa="";Yn?pa="flex-start":"center"===Ai?(pa="center",Pc?lc=$r:Tc=$r):Pc?"left"===Ai||"end"===Ai?(pa="flex-end",Tc=$r):("right"===Ai||"start"===Ai)&&(pa="flex-start",lc=$r):"left"===Ai||"start"===Ai?(pa="flex-start",Tc=$r):("right"===Ai||"end"===Ai)&&(pa="flex-end",lc=$r),O.position=this._cssPosition,O.marginLeft=Yn?"0":Tc,O.marginTop=ki?"0":this._topOffset,O.marginBottom=this._bottomOffset,O.marginRight=Yn?"0":lc,h.justifyContent=pa,h.alignItems=ki?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const O=this._overlayRef.overlayElement.style,h=this._overlayRef.hostElement,b=h.style;h.classList.remove(Cm),b.justifyContent=b.alignItems=O.marginTop=O.marginBottom=O.marginLeft=O.marginRight=O.position="",this._overlayRef=null,this._isDisposed=!0}}let i6=(()=>{class E{constructor(h,b,M,G){this._viewportRuler=h,this._document=b,this._platform=M,this._overlayContainer=G}global(){return new k1}flexibleConnectedTo(h){return new lf(h,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(Jh),o.KVO(g.qQ),o.KVO(De),o.KVO(vm))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),xm=0,md=(()=>{class E{constructor(h,b,M,G,we,en,Yn,ki,Ai,$r,Pc,Tc){this.scrollStrategies=h,this._overlayContainer=b,this._componentFactoryResolver=M,this._positionBuilder=G,this._keyboardDispatcher=we,this._injector=en,this._ngZone=Yn,this._document=ki,this._directionality=Ai,this._location=$r,this._outsideClickDispatcher=Pc,this._animationsModuleType=Tc}create(h){const b=this._createHostElement(),M=this._createPaneElement(b),G=this._createPortalOutlet(M),we=new wl(h);return we.direction=we.direction||this._directionality.value,new n6(G,b,M,we,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(h){const b=this._document.createElement("div");return b.id="cdk-overlay-"+xm++,b.classList.add("cdk-overlay-pane"),h.appendChild(b),b}_createHostElement(){const h=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(h),h}_createPortalOutlet(h){return this._appRef||(this._appRef=this._injector.get(o.o8S)),new Xb(h,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(rf),o.KVO(vm),o.KVO(o.OM3),o.KVO(i6),o.KVO(af),o.KVO(o.zZn),o.KVO(o.SKi),o.KVO(g.qQ),o.KVO(bl),o.KVO(g.aZ),o.KVO(cf),o.KVO(o.bc$,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const Ql=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],L4=new o.nKC("cdk-connected-overlay-scroll-strategy");let uf=(()=>{class E{constructor(h){this.elementRef=h}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return E})(),r6=(()=>{class E{get offsetX(){return this._offsetX}set offsetX(h){this._offsetX=h,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(h){this._offsetY=h,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(h){this._hasBackdrop=Kn(h)}get lockPosition(){return this._lockPosition}set lockPosition(h){this._lockPosition=Kn(h)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(h){this._flexibleDimensions=Kn(h)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(h){this._growAfterOpen=Kn(h)}get push(){return this._push}set push(h){this._push=Kn(h)}constructor(h,b,M,G,we){this._overlay=h,this._dir=we,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=it.yU.EMPTY,this._attachSubscription=it.yU.EMPTY,this._detachSubscription=it.yU.EMPTY,this._positionSubscription=it.yU.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new o.bkB,this.positionChange=new o.bkB,this.attach=new o.bkB,this.detach=new o.bkB,this.overlayKeydown=new o.bkB,this.overlayOutsideClick=new o.bkB,this._templatePortal=new F3(b,M),this._scrollStrategyFactory=G,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(h){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),h.origin&&this.open&&this._position.apply()),h.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ql);const h=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=h.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=h.detachments().subscribe(()=>this.detach.emit()),h.keydownEvents().subscribe(b=>{this.overlayKeydown.next(b),27===b.keyCode&&!this.disableClose&&!Ao(b)&&(b.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(b=>{this.overlayOutsideClick.next(b)})}_buildConfig(){const h=this._position=this.positionStrategy||this._createPositionStrategy(),b=new wl({direction:this._dir,positionStrategy:h,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(b.width=this.width),(this.height||0===this.height)&&(b.height=this.height),(this.minWidth||0===this.minWidth)&&(b.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(b.minHeight=this.minHeight),this.backdropClass&&(b.backdropClass=this.backdropClass),this.panelClass&&(b.panelClass=this.panelClass),b}_updatePositionStrategy(h){const b=this.positions.map(M=>({originX:M.originX,originY:M.originY,overlayX:M.overlayX,overlayY:M.overlayY,offsetX:M.offsetX||this.offsetX,offsetY:M.offsetY||this.offsetY,panelClass:M.panelClass||void 0}));return h.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(b).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const h=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(h),h}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof uf?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(h=>{this.backdropClick.emit(h)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,j3.v)(()=>this.positionChange.observers.length>0)).subscribe(h=>{this.positionChange.emit(h),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(md),o.rXU(o.C4Q),o.rXU(o.c1b),o.rXU(L4),o.rXU(bl,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[o.OA$]})}return E})();const t4={provide:L4,deps:[md],useFactory:function U7(E){return()=>E.scrollStrategies.reposition()}};let s6=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[md,t4],imports:[C1,N7,Nu,Nu]})}return E})();F(2319);class q7{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(O=!1,h,b=!0,M){this._multiple=O,this._emitChanges=b,this.compareWith=M,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Se.B,h&&h.length&&(O?h.forEach(G=>this._markSelected(G)):this._markSelected(h[0]),this._selectedToEmit.length=0)}select(...O){this._verifyValueAssignment(O),O.forEach(b=>this._markSelected(b));const h=this._hasQueuedChanges();return this._emitChangeEvent(),h}deselect(...O){this._verifyValueAssignment(O),O.forEach(b=>this._unmarkSelected(b));const h=this._hasQueuedChanges();return this._emitChangeEvent(),h}setSelection(...O){this._verifyValueAssignment(O);const h=this.selected,b=new Set(O);O.forEach(G=>this._markSelected(G)),h.filter(G=>!b.has(G)).forEach(G=>this._unmarkSelected(G));const M=this._hasQueuedChanges();return this._emitChangeEvent(),M}toggle(O){return this.isSelected(O)?this.deselect(O):this.select(O)}clear(O=!0){this._unmarkAll();const h=this._hasQueuedChanges();return O&&this._emitChangeEvent(),h}isSelected(O){return this._selection.has(this._getConcreteValue(O))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(O){this._multiple&&this.selected&&this._selected.sort(O)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(O){O=this._getConcreteValue(O),this.isSelected(O)||(this._multiple||this._unmarkAll(),this.isSelected(O)||this._selection.add(O),this._emitChanges&&this._selectedToEmit.push(O))}_unmarkSelected(O){O=this._getConcreteValue(O),this.isSelected(O)&&(this._selection.delete(O),this._emitChanges&&this._deselectedToEmit.push(O))}_unmarkAll(){this.isEmpty()||this._selection.forEach(O=>this._unmarkSelected(O))}_verifyValueAssignment(O){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(O){if(this.compareWith){for(let h of this._selection)if(this.compareWith(O,h))return h;return O}return O}}let X7=(()=>{class E{constructor(){this._listeners=[]}notify(h,b){for(let M of this._listeners)M(h,b)}listen(h){return this._listeners.push(h),()=>{this._listeners=this._listeners.filter(b=>h!==b)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var km=F(8001),a6=F(2831);const Em=["trigger"],H2=["panel"];function n4(E,O){if(1&E&&(o.j41(0,"span",10),o.EFF(1),o.k0s()),2&E){const h=o.XpG();o.R7$(1),o.JRh(h.placeholder)}}function Dm(E,O){if(1&E&&(o.j41(0,"span",14),o.EFF(1),o.k0s()),2&E){const h=o.XpG(2);o.R7$(1),o.JRh(h.triggerValue)}}function i4(E,O){1&E&&o.SdG(0,0,["*ngSwitchCase","true"])}function ff(E,O){if(1&E&&(o.j41(0,"span",11),o.DNE(1,Dm,2,1,"span",12),o.DNE(2,i4,1,0,"ng-content",13),o.k0s()),2&E){const h=o.XpG();o.Y8G("ngSwitch",!!h.customTrigger),o.R7$(2),o.Y8G("ngSwitchCase",!0)}}function K7(E,O){if(1&E){const h=o.RV6();o.qSk(),o.joV(),o.j41(0,"div",15,16),o.bIt("@transformPanel.done",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._panelDoneAnimatingStream.next(M.toState))})("keydown",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._handleKeydown(M))}),o.SdG(2,1),o.k0s()}if(2&E){const h=o.XpG();o.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",h._getPanelTheme(),""),o.Y8G("ngClass",h.panelClass)("@transformPanel","showing"),o.BMQ("id",h.id+"-panel")("aria-multiselectable",h.multiple)("aria-label",h.ariaLabel||null)("aria-labelledby",h._getPanelAriaLabelledby())}}const Y7=[[["mat-select-trigger"]],"*"],Q7=["mat-select-trigger","*"],J7={transformPanelWrap:(0,Sr.hZ)("transformPanelWrap",[(0,Sr.kY)("* => void",(0,Sr.P)("@transformPanel",[(0,Sr.MA)()],{optional:!0}))]),transformPanel:(0,Sr.hZ)("transformPanel",[(0,Sr.wk)("void",(0,Sr.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,Sr.kY)("void => showing",(0,Sr.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Sr.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,Sr.kY)("* => void",(0,Sr.i0)("100ms linear",(0,Sr.iF)({opacity:0})))])};let B3=0;const hf=new o.nKC("mat-select-scroll-strategy"),eg=new o.nKC("MAT_SELECT_CONFIG"),tg={provide:hf,deps:[md],useFactory:function l6(E){return()=>E.scrollStrategies.reposition()}},u6=new o.nKC("MatSelectTrigger");class r4{constructor(O,h){this.source=O,this.value=h}}const du=ko(ms(Ds(ha(class{constructor(E,O,h,b,M){this._elementRef=E,this._defaultErrorStateMatcher=O,this._parentForm=h,this._parentFormGroup=b,this.ngControl=M,this.stateChanges=new Se.B}}))));let Tm=(()=>{class E extends du{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(h){this._placeholder=h,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(V.k0.required)??!1}set required(h){this._required=Kn(h),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(h){this._multiple=Kn(h)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(h){this._disableOptionCentering=Kn(h)}get compareWith(){return this._compareWith}set compareWith(h){this._compareWith=h,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(h){this._assignValue(h)&&this._onChange(h)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(h){this._typeaheadDebounceInterval=ar(h)}get id(){return this._id}set id(h){this._id=h||this._uid,this.stateChanges.next()}constructor(h,b,M,G,we,en,Yn,ki,Ai,$r,Pc,Tc,lc,pa){super(we,G,Yn,ki,$r),this._viewportRuler=h,this._changeDetectorRef=b,this._ngZone=M,this._dir=en,this._parentFormField=Ai,this._liveAnnouncer=lc,this._defaultOptions=pa,this._panelOpen=!1,this._compareWith=(Sl,j2)=>Sl===j2,this._uid="mat-select-"+B3++,this._triggerAriaLabelledBy=null,this._destroy=new Se.B,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+B3++,this._panelDoneAnimatingStream=new Se.B,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,km.v)(()=>{const Sl=this.options;return Sl?Sl.changes.pipe((0,la.Z)(Sl),(0,a6.n)(()=>(0,M1.h)(...Sl.map(j2=>j2.onSelectionChange)))):this._ngZone.onStable.pipe((0,gr.s)(1),(0,a6.n)(()=>this.optionSelectionChanges))}),this.openedChange=new o.bkB,this._openedStream=this.openedChange.pipe((0,za.p)(Sl=>Sl),(0,qs.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,za.p)(Sl=>!Sl),(0,qs.T)(()=>{})),this.selectionChange=new o.bkB,this.valueChange=new o.bkB,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=pa?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=pa.typeaheadDebounceInterval),this._scrollStrategyFactory=Tc,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Pc)||0,this.id=this.id}ngOnInit(){this._selectionModel=new q7(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Wr.F)(),(0,yi.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,yi.Q)(this._destroy)).subscribe(h=>{h.added.forEach(b=>b.select()),h.removed.forEach(b=>b.deselect())}),this.options.changes.pipe((0,la.Z)(null),(0,yi.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const h=this._getTriggerAriaLabelledby(),b=this.ngControl;if(h!==this._triggerAriaLabelledBy){const M=this._elementRef.nativeElement;this._triggerAriaLabelledBy=h,h?M.setAttribute("aria-labelledby",h):M.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(void 0!==this._previousControl&&null!==b.disabled&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())}ngOnChanges(h){(h.disabled||h.userAriaDescribedBy)&&this.stateChanges.next(),h.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const h=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!h)return;const b=`${this.id}-panel`;this._trackedModal&&Wc(this._trackedModal,"aria-owns",b),function Ll(E,O,h){const b=Lr(E,O);b.some(M=>M.trim()==h.trim())||(b.push(h.trim()),E.setAttribute(O,b.join(" ")))}(h,"aria-owns",b),this._trackedModal=h}_clearFromModal(){this._trackedModal&&(Wc(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(h){this._assignValue(h)}registerOnChange(h){this._onChange=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const h=this._selectionModel.selected.map(b=>b.viewValue);return this._isRtl()&&h.reverse(),h.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(h){this.disabled||(this.panelOpen?this._handleOpenKeydown(h):this._handleClosedKeydown(h))}_handleClosedKeydown(h){const b=h.keyCode,M=40===b||38===b||b===H||39===b,G=13===b||32===b,we=this._keyManager;if(!we.isTyping()&&G&&!Ao(h)||(this.multiple||h.altKey)&&M)h.preventDefault(),this.open();else if(!this.multiple){const en=this.selected;we.onKeydown(h);const Yn=this.selected;Yn&&en!==Yn&&this._liveAnnouncer.announce(Yn.viewValue,1e4)}}_handleOpenKeydown(h){const b=this._keyManager,M=h.keyCode,G=40===M||38===M,we=b.isTyping();if(G&&h.altKey)h.preventDefault(),this.close();else if(we||13!==M&&32!==M||!b.activeItem||Ao(h))if(!we&&this._multiple&&65===M&&h.ctrlKey){h.preventDefault();const en=this.options.some(Yn=>!Yn.disabled&&!Yn.selected);this.options.forEach(Yn=>{Yn.disabled||(en?Yn.select():Yn.deselect())})}else{const en=b.activeItemIndex;b.onKeydown(h),this._multiple&&G&&h.shiftKey&&b.activeItem&&b.activeItemIndex!==en&&b.activeItem._selectViaInteraction()}else h.preventDefault(),b.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,gr.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(h){if(this.options.forEach(b=>b.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&h)Array.isArray(h),h.forEach(b=>this._selectOptionByValue(b)),this._sortValues();else{const b=this._selectOptionByValue(h);b?this._keyManager.updateActiveItem(b):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(h){const b=this.options.find(M=>{if(this._selectionModel.isSelected(M))return!1;try{return null!=M.value&&this._compareWith(M.value,h)}catch{return!1}});return b&&this._selectionModel.select(b),b}_assignValue(h){return!!(h!==this._value||this._multiple&&Array.isArray(h))&&(this.options&&this._setSelectionByValue(h),this._value=h,!0)}_skipPredicate(h){return h.disabled}_initKeyManager(){this._keyManager=new pc(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const h=(0,M1.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,yi.Q)(h)).subscribe(b=>{this._onSelect(b.source,b.isUserInput),b.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,M1.h)(...this.options.map(b=>b._stateChanges)).pipe((0,yi.Q)(h)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(h,b){const M=this._selectionModel.isSelected(h);null!=h.value||this._multiple?(M!==h.selected&&(h.selected?this._selectionModel.select(h):this._selectionModel.deselect(h)),b&&this._keyManager.setActiveItem(h),this.multiple&&(this._sortValues(),b&&this.focus())):(h.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(h.value)),M!==this._selectionModel.isSelected(h)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const h=this.options.toArray();this._selectionModel.sort((b,M)=>this.sortComparator?this.sortComparator(b,M,h):h.indexOf(b)-h.indexOf(M)),this.stateChanges.next()}}_propagateChanges(h){let b=null;b=this.multiple?this.selected.map(M=>M.value):this.selected?this.selected.value:h,this._value=b,this.valueChange.emit(b),this._onChange(b),this.selectionChange.emit(this._getChangeEvent(b)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let h=-1;for(let b=0;b0}focus(h){this._elementRef.nativeElement.focus(h)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const h=this._parentFormField?.getLabelId();return this.ariaLabelledby?(h?h+" ":"")+this.ariaLabelledby:h}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const h=this._parentFormField?.getLabelId();let b=(h?h+" ":"")+this._valueId;return this.ariaLabelledby&&(b+=" "+this.ariaLabelledby),b}_panelDoneAnimating(h){this.openedChange.emit(h)}setDescribedByIds(h){h.length?this._elementRef.nativeElement.setAttribute("aria-describedby",h.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(Jh),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(ac),o.rXU(o.aKT),o.rXU(bl,8),o.rXU(V.cV,8),o.rXU(V.j4,8),o.rXU(fs,8),o.rXU(V.vO,10),o.kS0("tabindex"),o.rXU(hf),o.rXU(wu),o.rXU(eg,8))};static#t=this.\u0275dir=o.FsC({type:E,viewQuery:function(b,M){if(1&b&&(o.GBs(Em,5),o.GBs(H2,5),o.GBs(r6,5)),2&b){let G;o.mGM(G=o.lsd())&&(M.trigger=G.first),o.mGM(G=o.lsd())&&(M.panel=G.first),o.mGM(G=o.lsd())&&(M._overlayDir=G.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.Vt3,o.OA$]})}return E})(),$3=(()=>{class E extends Tm{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=h=>!this.panelOpen&&h.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,yi.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(h){const b=this.options.toArray()[h];if(b){const M=this.panel.nativeElement,G=function ld(E,O,h){if(h.length){let b=O.toArray(),M=h.toArray(),G=0;for(let we=0;weh+b?Math.max(0,E-b+O):h}(we.offsetTop,we.offsetHeight,M.scrollTop,M.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(h){return new r4(this,h)}_getOverlayWidth(h){return"auto"===this.panelWidth?(h instanceof uf?h.elementRef:h||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(h){this._hideSingleSelectionIndicator=Kn(h),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const h of this.options)h._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-select"]],contentQueries:function(b,M,G){if(1&b&&(o.wni(G,u6,5),o.wni(G,au,5),o.wni(G,Cl,5)),2&b){let we;o.mGM(we=o.lsd())&&(M.customTrigger=we.first),o.mGM(we=o.lsd())&&(M.options=we),o.mGM(we=o.lsd())&&(M.optionGroups=we)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(b,M){1&b&&o.bIt("keydown",function(we){return M._handleKeydown(we)})("focus",function(){return M._onFocus()})("blur",function(){return M._onBlur()}),2&b&&(o.BMQ("id",M.id)("tabindex",M.tabIndex)("aria-controls",M.panelOpen?M.id+"-panel":null)("aria-expanded",M.panelOpen)("aria-label",M.ariaLabel||null)("aria-required",M.required.toString())("aria-disabled",M.disabled.toString())("aria-invalid",M.errorState)("aria-activedescendant",M._getAriaActiveDescendant()),o.AVh("mat-mdc-select-disabled",M.disabled)("mat-mdc-select-invalid",M.errorState)("mat-mdc-select-required",M.required)("mat-mdc-select-empty",M.empty)("mat-mdc-select-multiple",M.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[o.Jv_([{provide:ri,useExisting:E},{provide:cd,useExisting:E}]),o.Vt3],ngContentSelectors:Q7,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(b,M){if(1&b&&(o.NAR(Y7),o.j41(0,"div",0,1),o.bIt("click",function(){return M.toggle()}),o.j41(3,"div",2),o.DNE(4,n4,2,1,"span",3),o.DNE(5,ff,3,2,"span",4),o.k0s(),o.j41(6,"div",5)(7,"div",6),o.qSk(),o.j41(8,"svg",7),o.nrm(9,"path",8),o.k0s()()()(),o.DNE(10,K7,3,9,"ng-template",9),o.bIt("backdropClick",function(){return M.close()})("attach",function(){return M._onAttached()})("detach",function(){return M.close()})),2&b){const G=o.sdS(1);o.R7$(3),o.Y8G("ngSwitch",M.empty),o.BMQ("id",M._valueId),o.R7$(1),o.Y8G("ngSwitchCase",!0),o.R7$(1),o.Y8G("ngSwitchCase",!1),o.R7$(5),o.Y8G("cdkConnectedOverlayPanelClass",M._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",M._scrollStrategy)("cdkConnectedOverlayOrigin",M._preferredOverlayOrigin||G)("cdkConnectedOverlayOpen",M.panelOpen)("cdkConnectedOverlayPositions",M._positions)("cdkConnectedOverlayWidth",M._overlayWidth)}},dependencies:[g.YU,g.ux,g.e1,g.fG,r6,uf],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[J7.transformPanel]},changeDetection:0})}return E})(),ey=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[tg],imports:[g.MD,s6,w1,Pn,Z0,ec,w1,Pn]})}return E})();var U3=F(6897);const ng=["mat-button",""],Vm=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Am=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Pu=["mat-icon-button",""],f6=["*"],L2=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],sg=xr(Ds(ko(class{constructor(E){this._elementRef=E}})));let z4=(()=>{class E extends sg{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(h){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,h)}get disableRipple(){return this._disableRipple}set disableRipple(h){this._disableRipple=Kn(h),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(h){this._disabled=Kn(h),this._updateRippleDisabled()}constructor(h,b,M,G){super(h),this._platform=b,this._ngZone=M,this._animationMode=G,this._focusMonitor=(0,o.WQX)(fa),this._rippleLoader=(0,o.WQX)(ue),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const we=h.nativeElement.classList;for(const en of L2)this._hasHostAttributes(en.selector)&&en.mdcClasses.forEach(Yn=>{we.add(Yn)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(h="program",b){h?this._focusMonitor.focusVia(this._elementRef.nativeElement,h,b):this._elementRef.nativeElement.focus(b)}_hasHostAttributes(...h){return h.some(b=>this._elementRef.nativeElement.hasAttribute(b))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,features:[o.Vt3]})}return E})(),hu=(()=>{class E extends z4{constructor(h,b,M,G){super(h,b,M,G)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(De),o.rXU(o.SKi),o.rXU(o.bc$,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(b,M){2&b&&(o.BMQ("disabled",M.disabled||null),o.AVh("_mat-animation-noopable","NoopAnimations"===M._animationMode)("mat-unthemed",!M.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.Vt3],attrs:ng,ngContentSelectors:Am,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(b,M){1&b&&(o.NAR(Vm),o.nrm(0,"span",0),o.SdG(1),o.j41(2,"span",1),o.SdG(3,1),o.k0s(),o.SdG(4,2),o.nrm(5,"span",2)(6,"span",3)),2&b&&o.AVh("mdc-button__ripple",!M._isFab)("mdc-fab__ripple",M._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return E})(),Lm=(()=>{class E extends z4{constructor(h,b,M,G){super(h,b,M,G),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(De),o.rXU(o.SKi),o.rXU(o.bc$,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(b,M){2&b&&(o.BMQ("disabled",M.disabled||null),o.AVh("_mat-animation-noopable","NoopAnimations"===M._animationMode)("mat-unthemed",!M.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.Vt3],attrs:Pu,ngContentSelectors:f6,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(b,M){1&b&&(o.NAR(),o.nrm(0,"span",0),o.SdG(1),o.nrm(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return E})(),G3=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,x1,Pn]})}return E})();const P4=["input"],zm=["*"];let g6=0;class v6{constructor(O,h){this.source=O,this.value=h}}const gd={provide:V.kq,useExisting:(0,o.Rfq)(()=>B4),multi:!0},Rm=new o.nKC("MatRadioGroup"),cg=new o.nKC("mat-radio-default-options",{providedIn:"root",factory:function lg(){return{color:"accent"}}});let j4=(()=>{class E{get name(){return this._name}set name(h){this._name=h,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(h){this._labelPosition="before"===h?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(h){this._value!==h&&(this._value=h,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(h){this._selected=h,this.value=h?h.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(h){this._disabled=Kn(h),this._markRadiosForCheck()}get required(){return this._required}set required(h){this._required=Kn(h),this._markRadiosForCheck()}constructor(h){this._changeDetector=h,this._value=null,this._name="mat-radio-group-"+g6++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new o.bkB}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(h=>h===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(h=>{h.name=this.name,h._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(b=>{b.checked=this.value===b.value,b.checked&&(this._selected=b)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new v6(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(h=>h._markForCheck())}writeValue(h){this.value=h,this._changeDetector.markForCheck()}registerOnChange(h){this._controlValueAccessorChangeFn=h}registerOnTouched(h){this.onTouched=h}setDisabledState(h){this.disabled=h,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.gRc))};static#t=this.\u0275dir=o.FsC({type:E,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return E})();class ug{constructor(O){this._elementRef=O}}const ju=ko(ms(ug));let F4=(()=>{class E extends ju{get checked(){return this._checked}set checked(h){const b=Kn(h);this._checked!==b&&(this._checked=b,b&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!b&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),b&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(h){this._value!==h&&(this._value=h,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===h),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(h){this._labelPosition=h}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(h){this._setDisabled(Kn(h))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(h){this._required=Kn(h)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(h){this._color=h}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(h,b,M,G,we,en,Yn,ki){super(b),this._changeDetector=M,this._focusMonitor=G,this._radioDispatcher=we,this._providerOverride=Yn,this._uniqueId="mat-radio-"+ ++g6,this.id=this._uniqueId,this.change=new o.bkB,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=h,this._noopAnimations="NoopAnimations"===en,ki&&(this.tabIndex=ar(ki,0))}focus(h,b){b?this._focusMonitor.focusVia(this._inputElement,b,h):this._inputElement.nativeElement.focus(h)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((h,b)=>{h!==this.id&&b===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(h=>{!h&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new v6(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(h){h.stopPropagation()}_onInputInteraction(h){if(h.stopPropagation(),!this.checked&&!this.disabled){const b=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),b&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(h){this._onInputInteraction(h),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(h){this._disabled!==h&&(this._disabled=h,this._changeDetector.markForCheck())}_updateTabIndex(){const h=this.radioGroup;let b;if(b=h&&h.selected&&!this.disabled?h.selected===this?this.tabIndex:-1:this.tabIndex,b!==this._previousTabIndex){const M=this._inputElement?.nativeElement;M&&(M.setAttribute("tabindex",b+""),this._previousTabIndex=b)}}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,viewQuery:function(b,M){if(1&b&&o.GBs(P4,5),2&b){let G;o.mGM(G=o.lsd())&&(M._inputElement=G.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[o.Vt3]})}return E})(),B4=(()=>{class E extends j4{static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275dir=o.FsC({type:E,selectors:[["mat-radio-group"]],contentQueries:function(b,M,G){if(1&b&&o.wni(G,Nm,5),2&b){let we;o.mGM(we=o.lsd())&&(M._radios=we)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[o.Jv_([gd,{provide:Rm,useExisting:E}]),o.Vt3]})}return E})(),Nm=(()=>{class E extends F4{constructor(h,b,M,G,we,en,Yn,ki){super(h,b,M,G,we,en,Yn,ki)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(Rm,8),o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(fa),o.rXU(X7),o.rXU(o.bc$,8),o.rXU(cg,8),o.kS0("tabindex"))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(b,M){1&b&&o.bIt("focus",function(){return M._inputElement.nativeElement.focus()}),2&b&&(o.BMQ("id",M.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),o.AVh("mat-primary","primary"===M.color)("mat-accent","accent"===M.color)("mat-warn","warn"===M.color)("mat-mdc-radio-checked",M.checked)("_mat-animation-noopable",M._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[o.Vt3],ngContentSelectors:zm,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(b,M){if(1&b&&(o.NAR(),o.j41(0,"div",0,1)(2,"div",2)(3,"div",3),o.bIt("click",function(we){return M._onTouchTargetClick(we)}),o.k0s(),o.j41(4,"input",4,5),o.bIt("change",function(we){return M._onInputInteraction(we)}),o.k0s(),o.j41(6,"div",6),o.nrm(7,"div",7)(8,"div",8),o.k0s(),o.j41(9,"div",9),o.nrm(10,"div",10),o.k0s()(),o.j41(11,"label",11),o.SdG(12),o.k0s()()),2&b){const G=o.sdS(1);o.AVh("mdc-form-field--align-end","before"==M.labelPosition),o.R7$(2),o.AVh("mdc-radio--disabled",M.disabled),o.R7$(2),o.Y8G("id",M.inputId)("checked",M.checked)("disabled",M.disabled)("required",M.required),o.BMQ("name",M.name)("value",M.value)("aria-label",M.ariaLabel)("aria-labelledby",M.ariaLabelledby)("aria-describedby",M.ariaDescribedby),o.R7$(5),o.Y8G("matRippleTrigger",G)("matRippleDisabled",M._isRippleDisabled())("matRippleCentered",!0),o.R7$(2),o.Y8G("for",M.inputId)}},dependencies:[Pl],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return E})(),_6=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,g.MD,x1,Pn]})}return E})();const dg=["knob"],fg=["valueIndicatorContainer"];function b6(E,O){if(1&E&&(o.j41(0,"div",4,5)(2,"div",6)(3,"span",7),o.EFF(4),o.k0s()()()),2&E){const h=o.XpG();o.R7$(4),o.JRh(h.valueIndicatorText)}}const Pm=["trackActive"];function hg(E,O){if(1&E&&o.nrm(0,"div"),2&E){const h=O.$implicit,b=O.index,M=o.XpG(3);o.HbH(0===h?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),o.xc7("transform",M._calcTickMarkTransform(b))}}function y6(E,O){if(1&E&&(o.qex(0),o.DNE(1,hg,1,4,"div",11),o.bVm()),2&E){const h=o.XpG(2);o.R7$(1),o.Y8G("ngForOf",h._tickMarks)}}function C6(E,O){if(1&E&&(o.j41(0,"div",8,9),o.DNE(2,y6,2,1,"ng-container",10),o.k0s()),2&E){const h=o.XpG();o.R7$(2),o.Y8G("ngIf",h._cachedWidth)}}function pg(E,O){if(1&E&&o.nrm(0,"mat-slider-visual-thumb",7),2&E){const h=o.XpG();o.Y8G("discrete",h.discrete)("thumbPosition",1)("valueIndicatorText",h.startValueIndicatorText)}}const W3=["*"],c2=new o.nKC("_MatSlider"),$4=new o.nKC("_MatSliderThumb"),x6=new o.nKC("_MatSliderRangeThumb"),q3=new o.nKC("_MatSliderVisualThumb");let ry=(()=>{class E{constructor(h,b,M,G){this._cdr=h,this._ngZone=b,this._slider=G,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._onPointerMove=we=>{if(this._sliderInput._isFocused)return;const en=this._hostElement.getBoundingClientRect(),Yn=this._slider._isCursorOnSliderThumb(we,en);this._isHovered=Yn,Yn?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=we=>{0===we.button&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef)},this._hostElement=M.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const h=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{h.addEventListener("pointermove",this._onPointerMove),h.addEventListener("pointerdown",this._onDragStart),h.addEventListener("pointerup",this._onDragEnd),h.addEventListener("pointerleave",this._onMouseLeave),h.addEventListener("focus",this._onFocus),h.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const h=this._sliderInputEl;h.removeEventListener("pointermove",this._onPointerMove),h.removeEventListener("pointerdown",this._onDragStart),h.removeEventListener("pointerup",this._onDragEnd),h.removeEventListener("pointerleave",this._onMouseLeave),h.removeEventListener("focus",this._onFocus),h.removeEventListener("blur",this._onBlur)}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(h){return 0===h?.state||1===h?.state}_showRipple(h,b){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(1===this.thumbPosition?2:1)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||b))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:h,centered:!0,persistent:!0})}_hideRipple(h){if(h?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const b=this._getSibling();b._isShowingAnyRipple()||(this._hideValueIndicator(),b._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(1===this.thumbPosition?2:1)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(o.aKT),o.rXU(c2))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(b,M){if(1&b&&(o.GBs(Pl,5),o.GBs(dg,5),o.GBs(fg,5)),2&b){let G;o.mGM(G=o.lsd())&&(M._ripple=G.first),o.mGM(G=o.lsd())&&(M._knob=G.first),o.mGM(G=o.lsd())&&(M._valueIndicatorContainer=G.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[o.Jv_([{provide:q3,useExisting:E}])],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container",4,"ngIf"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(b,M){1&b&&(o.DNE(0,b6,5,1,"div",0),o.nrm(1,"div",1,2)(3,"div",3)),2&b&&(o.Y8G("ngIf",M.discrete),o.R7$(3),o.Y8G("matRippleDisabled",!0))},dependencies:[g.bT,Pl],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}return E})();const z2=xr(ko(class{constructor(E){this._elementRef=E}}),"primary");let mg=(()=>{class E extends z2{get disabled(){return this._disabled}set disabled(h){this._disabled=Kn(h);const b=this._getInput(2),M=this._getInput(1);b&&(b.disabled=this._disabled),M&&(M.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(h){this._discrete=Kn(h),this._updateValueIndicatorUIs()}get showTickMarks(){return this._showTickMarks}set showTickMarks(h){this._showTickMarks=Kn(h)}get min(){return this._min}set min(h){const b=ar(h,this._min);this._min!==b&&this._updateMin(b)}_updateMin(h){const b=this._min;this._min=h,this._isRange?this._updateMinRange({old:b,new:h}):this._updateMinNonRange(h),this._onMinMaxOrStepChange()}_updateMinRange(h){const b=this._getInput(2),M=this._getInput(1),G=b.value,we=M.value;M.min=h.new,b.min=Math.max(h.new,M.value),M.max=Math.min(b.max,b.value),M._updateWidthInactive(),b._updateWidthInactive(),h.newh.old?this._onTranslateXChangeBySideEffect(M,b):this._onTranslateXChangeBySideEffect(b,M),G!==b.value&&this._onValueChange(b),we!==M.value&&this._onValueChange(M)}_updateMaxNonRange(h){const b=this._getInput(2);if(b){const M=b.value;b.max=h,b._updateThumbUIByValue(),this._updateTrackUI(b),M!==b.value&&this._onValueChange(b)}}get step(){return this._step}set step(h){const b=ar(h,this._step);this._step!==b&&this._updateStep(b)}_updateStep(h){this._step=h,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const h=this._getInput(2),b=this._getInput(1),M=h.value,G=b.value,we=b.value;h.min=this._min,b.max=this._max,h.step=this._step,b.step=this._step,this._platform.SAFARI&&(h.value=h.value,b.value=b.value),h.min=Math.max(this._min,b.value),b.max=Math.min(this._max,h.value),b._updateWidthInactive(),h._updateWidthInactive(),h.value`${Yn}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=(0,o.WQX)(De),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===en,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const h=this._getInput(2),b=this._getInput(1);this._isRange=!!h&&!!b,this._cdr.detectChanges();const M=this._getThumb(2);this._rippleRadius=M._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._inputOffset=this._knobRadius,this._isRange?this._initUIRange(h,b):this._initUINonRange(h),this._updateTrackUI(h),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(h){h.initProps(),h.initUI(),this._updateValueIndicatorUI(h),this._hasViewInitialized=!0,h._updateThumbUIByValue()}_initUIRange(h,b){h.initProps(),h.initUI(),b.initProps(),b.initUI(),h._updateMinMax(),b._updateMinMax(),h._updateStaticStyles(),b._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,h._updateThumbUIByValue(),b._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const h=this._getInput(2),b=this._getInput(1);h._setIsLeftThumb(),b._setIsLeftThumb(),h.translateX=h._calcTranslateXByValue(),b.translateX=b._calcTranslateXByValue(),h._updateStaticStyles(),b._updateStaticStyles(),h._updateWidthInactive(),b._updateWidthInactive(),h._updateThumbUIByValue(),b._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(2)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive}_getValue(h=2){const b=this._getInput(h);return b?b.value:this.min}_skipUpdate(){return!(!this._getInput(1)?._skipUIUpdate&&!this._getInput(2)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(h){const b=this._trackActive.nativeElement.style;b.left=h.left,b.right=h.right,b.transformOrigin=h.transformOrigin,b.transform=h.transform}_calcTickMarkTransform(h){return`translateX(${h*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(h){this._hasViewInitialized&&(this._updateThumbUI(h),this._updateTrackUI(h),this._updateOverlappingThumbUI(h))}_onTranslateXChangeBySideEffect(h,b){this._hasViewInitialized&&(h._updateThumbUIByValue(),b._updateThumbUIByValue())}_onValueChange(h){this._hasViewInitialized&&(this._updateValueIndicatorUI(h),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const h=this._getInput(2),b=this._getInput(1);h._updateThumbUIByValue(),b._updateThumbUIByValue(),h._updateStaticStyles(),b._updateStaticStyles(),h._updateMinMax(),b._updateMinMax(),h._updateWidthInactive(),b._updateWidthInactive()}else{const h=this._getInput(2);h&&h._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const h=this._getInput(1),b=this._getInput(2);return!(!h||!b)&&b.translateX-h.translateX<20}_updateOverlappingThumbClassNames(h){const b=h.getSibling(),M=this._getThumb(h.thumbPosition);this._getThumb(b.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),M._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(h){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(h))}_updateThumbUI(h){this._skipUpdate()||(this._getThumb(2===h.thumbPosition?2:1)._hostElement.style.transform=`translateX(${h.translateX}px)`)}_updateValueIndicatorUI(h){if(this._skipUpdate())return;const b=this.displayWith(h.value);if(this._hasViewInitialized?h._valuetext=b:h._hostElement.setAttribute("aria-valuetext",b),this.discrete){1===h.thumbPosition?this.startValueIndicatorText=b:this.endValueIndicatorText=b;const M=this._getThumb(h.thumbPosition);b.length<3?M._hostElement.classList.add("mdc-slider__thumb--short-value"):M._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const h=this._getInput(2),b=this._getInput(1);h&&this._updateValueIndicatorUI(h),b&&this._updateValueIndicatorUI(b)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const h=this._step&&this._step>0?this._step:1,M=(Math.floor(this.max/h)*h-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*M-6}_updateTrackUI(h){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(h):this._updateTrackUINonRange(h))}_updateTrackUIRange(h){const b=h.getSibling();if(!b||!this._cachedWidth)return;const M=Math.abs(b.translateX-h.translateX)/this._cachedWidth;this._setTrackActiveStyles(h._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-b.translateX+"px",transformOrigin:"right",transform:`scaleX(${M})`}:{left:`${b.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${M})`})}_updateTrackUINonRange(h){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-h.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${h.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const h=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(h):this._updateTickMarkUINonRange(h),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(h){const b=this._getValue();let M=Math.max(Math.round((b-this.min)/h),0),G=Math.max(Math.round((this.max-b)/h),0);this._isRtl?M++:G++,this._tickMarks=Array(M).fill(0).concat(Array(G).fill(1))}_updateTickMarkUIRange(h){const b=this._getValue(),M=this._getValue(1),G=Math.max(Math.floor((M-this.min)/h),0),we=Math.max(Math.floor((b-M)/h)+1,0),en=Math.max(Math.floor((this.max-b)/h),0);this._tickMarks=Array(G).fill(1).concat(Array(we).fill(0),Array(en).fill(1))}_getInput(h){return 2===h&&this._input?this._input:this._inputs?.length?1===h?this._inputs.first:this._inputs.last:void 0}_getThumb(h){return 2===h?this._thumbs?.last:this._thumbs?.first}_setTransition(h){this._hasAnimation=!this._platform.IOS&&h&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(h,b){const M=b.width/2,Yn=h.clientY-(b.y+M);return Math.pow(h.clientX-(b.x+M),2)+Math.pow(Yn,2)gf),multi:!0};let gf=(()=>{class E{get value(){return ar(this._hostElement.value)}set value(h){const b=ar(h).toString();this._hasSetInitialValue?this._isActive||(this._hostElement.value=b,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()):this._initialValue=b}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=0,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(h){this._translateX=h}get min(){return ar(this._hostElement.min)}set min(h){this._hostElement.min=ar(h).toString(),this._cdr.detectChanges()}get max(){return ar(this._hostElement.max)}set max(h){this._hostElement.max=ar(h).toString(),this._cdr.detectChanges()}get step(){return ar(this._hostElement.step)}set step(h){this._hostElement.step=ar(h).toString(),this._cdr.detectChanges()}get disabled(){return Kn(this._hostElement.disabled)}set disabled(h){this._hostElement.disabled=Kn(h),this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(h){this._isFocused=h}constructor(h,b,M,G){this._ngZone=h,this._elementRef=b,this._cdr=M,this._slider=G,this.valueChange=new o.bkB,this.dragStart=new o.bkB,this.dragEnd=new o.bkB,this.thumbPosition=2,this._knobRadius=8,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new Se.B,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=(0,o.WQX)(De),this._hostElement=b.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(h){if(!this.disabled&&0===h.button){if(this._platform.IOS){const b=this._slider._isCursorOnSliderThumb(h,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());return this._isActive=b,this._updateWidthActive(),void this._slider._updateDimensions()}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(h,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(h),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(h){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(h)},0)}_fixValue(h){const b=h.clientX-this._slider._cachedLeft,M=this._slider._cachedWidth,G=0===this._slider.step?1:this._slider.step,we=Math.floor((this._slider.max-this._slider.min)/G),ki=Math.round((this._slider._isRtl?1-b/M:b/M)*we)/we*(this._slider.max-this._slider.min)+this._slider.min,Ai=Math.round(ki/G)*G;if(Ai===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(h,{withAnimation:this._slider._hasAnimation}));this.value=Ai,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(h,{withAnimation:this._slider._hasAnimation})}_onPointerMove(h){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(h)}_onPointerUp(){this._isActive&&(this._isActive=!1,this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(h){return Math.max(Math.min(h,this._slider._cachedWidth),0)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*this._slider._cachedWidth:this.percentage*this._slider._cachedWidth}_calcTranslateXByPointerEvent(h){return h.clientX-this._slider._cachedLeft}_updateWidthActive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding}px)`}_updateWidthInactive(){this._hostElement.style.padding="0px",this._hostElement.style.width="calc(100% + 48px)",this._hostElement.style.left="-24px"}_updateThumbUIByValue(h){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(h)}_updateThumbUIByPointerEvent(h,b){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(h)),this._updateThumbUI(b)}_updateThumbUI(h){this._slider._setTransition(!!h?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(h){(this._isControlInitialized||null!==h)&&(this.value=h)}registerOnChange(h){this._onChangeFn=h,this._isControlInitialized=!0}registerOnTouched(h){this._onTouchedFn=h}setDisabledState(h){this.disabled=h}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.SKi),o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(c2))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(b,M){1&b&&o.bIt("change",function(){return M._onChange()})("input",function(){return M._onInput()})("blur",function(){return M._onBlur()})("focus",function(){return M._onFocus()}),2&b&&o.BMQ("aria-valuetext",M._valuetext)},inputs:{value:"value"},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[o.Jv_([sy,{provide:$4,useExisting:E}])]})}return E})(),vg=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,g.MD,x1]})}return E})();const _g=["switch"];function bg(E,O){1&E&&(o.j41(0,"div",12),o.qSk(),o.j41(1,"svg",13),o.nrm(2,"path",14),o.k0s(),o.j41(3,"svg",15),o.nrm(4,"path",16),o.k0s()())}const Fm=["*"],Bu=new o.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),Bm={provide:V.kq,useExisting:(0,o.Rfq)(()=>M6),multi:!0};class vf{constructor(O,h){this.source=O,this.checked=h}}let $m=0;const s4=ms(xr(ko(Ds(class{constructor(E){this._elementRef=E}}))));let Um=(()=>{class E extends s4{get required(){return this._required}set required(h){this._required=Kn(h)}get checked(){return this._checked}set checked(h){this._checked=Kn(h),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(h){this._hideIcon=Kn(h)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(h,b,M,G,we,en,Yn){super(h),this._focusMonitor=b,this._changeDetectorRef=M,this.defaults=we,this._onChange=ki=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new o.bkB,this.toggleChange=new o.bkB,this.tabIndex=parseInt(G)||0,this.color=this.defaultColor=we.color||"accent",this._noopAnimations="NoopAnimations"===en,this.id=this._uniqueId=`${Yn}${++$m}`,this._hideIcon=we.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(h=>{"keyboard"===h||"program"===h?(this._focused=!0,this._changeDetectorRef.markForCheck()):h||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(h){this.checked=!!h}registerOnChange(h){this._onChange=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[o.Vt3]})}return E})(),M6=(()=>{class E extends Um{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(h,b,M,G,we,en){super(h,b,M,G,we,en,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new vf(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(h){return new vf(this,h)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(fa),o.rXU(o.gRc),o.kS0("tabindex"),o.rXU(Bu),o.rXU(o.bc$,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-slide-toggle"]],viewQuery:function(b,M){if(1&b&&o.GBs(_g,5),2&b){let G;o.mGM(G=o.lsd())&&(M._switchElement=G.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(b,M){2&b&&(o.Mr5("id",M.id),o.BMQ("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),o.AVh("mat-mdc-slide-toggle-focused",M._focused)("mat-mdc-slide-toggle-checked",M.checked)("_mat-animation-noopable",M._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[o.Jv_([Bm]),o.Vt3],ngContentSelectors:Fm,decls:13,vars:25,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],["class","mdc-switch__icons",4,"ngIf"],[1,"mdc-label",3,"for","click"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(b,M){if(1&b&&(o.NAR(),o.j41(0,"div",0)(1,"button",1,2),o.bIt("click",function(){return M._handleClick()}),o.nrm(3,"div",3),o.j41(4,"div",4)(5,"div",5)(6,"div",6),o.nrm(7,"div",7),o.k0s(),o.j41(8,"div",8),o.nrm(9,"div",9),o.k0s(),o.DNE(10,bg,5,0,"div",10),o.k0s()()(),o.j41(11,"label",11),o.bIt("click",function(we){return we.stopPropagation()}),o.SdG(12),o.k0s()()),2&b){const G=o.sdS(2);o.AVh("mdc-form-field--align-end","before"==M.labelPosition),o.R7$(1),o.AVh("mdc-switch--selected",M.checked)("mdc-switch--unselected",!M.checked)("mdc-switch--checked",M.checked)("mdc-switch--disabled",M.disabled),o.Y8G("tabIndex",M.tabIndex)("disabled",M.disabled),o.BMQ("id",M.buttonId)("name",M.name)("aria-label",M.ariaLabel)("aria-labelledby",M._getAriaLabelledBy())("aria-describedby",M.ariaDescribedby)("aria-required",M.required||null)("aria-checked",M.checked),o.R7$(8),o.Y8G("matRippleTrigger",G)("matRippleDisabled",M.disableRipple||M.disabled)("matRippleCentered",!0),o.R7$(1),o.Y8G("ngIf",!M.hideIcon),o.R7$(1),o.Y8G("for",M.buttonId),o.BMQ("id",M._labelId)}},dependencies:[Pl,g.bT],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mdc-switch{width:var(--mdc-switch-track-width);--mdc-switch-disabled-handle-opacity:0.38;--mdc-switch-disabled-selected-icon-opacity:0.38;--mdc-switch-disabled-track-opacity:0.12;--mdc-switch-disabled-unselected-icon-opacity:0.38;--mdc-switch-handle-height:20px;--mdc-switch-handle-shape:10px;--mdc-switch-handle-width:20px;--mdc-switch-selected-icon-size:18px;--mdc-switch-track-height:14px;--mdc-switch-track-shape:7px;--mdc-switch-track-width:36px;--mdc-switch-unselected-icon-size:18px;--mdc-switch-state-layer-size:40px;--mdc-switch-selected-focus-state-layer-opacity:0.12;--mdc-switch-selected-hover-state-layer-opacity:0.04;--mdc-switch-selected-pressed-state-layer-opacity:0.1;--mdc-switch-unselected-focus-state-layer-opacity:0.12;--mdc-switch-unselected-hover-state-layer-opacity:0.04;--mdc-switch-unselected-pressed-state-layer-opacity:0.1}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle .mdc-label{font-family:var(--mat-slide-toggle-label-text-font);font-size:var(--mat-slide-toggle-label-text-size);letter-spacing:var(--mat-slide-toggle-label-text-tracking);line-height:var(--mat-slide-toggle-label-text-line-height);font-weight:var(--mat-slide-toggle-label-text-weight)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}'],encapsulation:2,changeDetection:0})}return E})(),qm=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})(),S6=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[qm,Pn,x1,g.MD,qm,Pn]})}return E})();const k6=["mat-calendar-body",""];function yg(E,O){if(1&E&&(o.j41(0,"tr",3)(1,"td",4),o.EFF(2),o.k0s()()),2&E){const h=o.XpG();o.R7$(1),o.xc7("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),o.BMQ("colspan",h.numCols),o.R7$(1),o.SpI(" ",h.label," ")}}function E6(E,O){if(1&E&&(o.j41(0,"td",4),o.EFF(1),o.k0s()),2&E){const h=o.XpG(2);o.xc7("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),o.BMQ("colspan",h._firstRowOffset),o.R7$(1),o.SpI(" ",h._firstRowOffset>=h.labelMinRequiredCells?h.label:""," ")}}function Cg(E,O){if(1&E){const h=o.RV6();o.j41(0,"td",8)(1,"button",9),o.bIt("click",function(M){const we=o.eBV(h).$implicit,en=o.XpG(2);return o.Njj(en._cellClicked(we,M))})("focus",function(M){const we=o.eBV(h).$implicit,en=o.XpG(2);return o.Njj(en._emitActiveDateChange(we,M))}),o.j41(2,"span",10),o.EFF(3),o.k0s(),o.nrm(4,"span",11),o.k0s()()}if(2&E){const h=O.$implicit,b=O.index,M=o.XpG().index,G=o.XpG();o.xc7("width",G._cellWidth)("padding-top",G._cellPadding)("padding-bottom",G._cellPadding),o.BMQ("data-mat-row",M)("data-mat-col",b),o.R7$(1),o.AVh("mat-calendar-body-disabled",!h.enabled)("mat-calendar-body-active",G._isActiveCell(M,b))("mat-calendar-body-range-start",G._isRangeStart(h.compareValue))("mat-calendar-body-range-end",G._isRangeEnd(h.compareValue))("mat-calendar-body-in-range",G._isInRange(h.compareValue))("mat-calendar-body-comparison-bridge-start",G._isComparisonBridgeStart(h.compareValue,M,b))("mat-calendar-body-comparison-bridge-end",G._isComparisonBridgeEnd(h.compareValue,M,b))("mat-calendar-body-comparison-start",G._isComparisonStart(h.compareValue))("mat-calendar-body-comparison-end",G._isComparisonEnd(h.compareValue))("mat-calendar-body-in-comparison-range",G._isInComparisonRange(h.compareValue))("mat-calendar-body-preview-start",G._isPreviewStart(h.compareValue))("mat-calendar-body-preview-end",G._isPreviewEnd(h.compareValue))("mat-calendar-body-in-preview",G._isInPreview(h.compareValue)),o.Y8G("ngClass",h.cssClasses)("tabindex",G._isActiveCell(M,b)?0:-1),o.BMQ("aria-label",h.ariaLabel)("aria-disabled",!h.enabled||null)("aria-pressed",G._isSelected(h.compareValue))("aria-current",G.todayValue===h.compareValue?"date":null)("aria-describedby",G._getDescribedby(h.compareValue)),o.R7$(1),o.AVh("mat-calendar-body-selected",G._isSelected(h.compareValue))("mat-calendar-body-comparison-identical",G._isComparisonIdentical(h.compareValue))("mat-calendar-body-today",G.todayValue===h.compareValue),o.R7$(1),o.SpI(" ",h.displayValue," ")}}function xg(E,O){if(1&E&&(o.j41(0,"tr",5),o.DNE(1,E6,2,6,"td",6),o.DNE(2,Cg,5,48,"td",7),o.k0s()),2&E){const h=O.$implicit,b=O.index,M=o.XpG();o.R7$(1),o.Y8G("ngIf",0===b&&M._firstRowOffset),o.R7$(1),o.Y8G("ngForOf",h)}}function X3(E,O){if(1&E&&(o.j41(0,"th",5)(1,"span",6),o.EFF(2),o.k0s(),o.j41(3,"span",7),o.EFF(4),o.k0s()()),2&E){const h=O.$implicit;o.R7$(2),o.JRh(h.long),o.R7$(2),o.JRh(h.narrow)}}const U4=["*"];function D6(E,O){}function Xm(E,O){if(1&E){const h=o.RV6();o.j41(0,"mat-month-view",5),o.bIt("activeDateChange",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G.activeDate=M)})("_userSelection",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._dateSelected(M))})("dragStarted",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._dragStarted(M))})("dragEnded",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._dragEnded(M))}),o.k0s()}if(2&E){const h=o.XpG();o.Y8G("activeDate",h.activeDate)("selected",h.selected)("dateFilter",h.dateFilter)("maxDate",h.maxDate)("minDate",h.minDate)("dateClass",h.dateClass)("comparisonStart",h.comparisonStart)("comparisonEnd",h.comparisonEnd)("startDateAccessibleName",h.startDateAccessibleName)("endDateAccessibleName",h.endDateAccessibleName)("activeDrag",h._activeDrag)}}function T6(E,O){if(1&E){const h=o.RV6();o.j41(0,"mat-year-view",6),o.bIt("activeDateChange",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G.activeDate=M)})("monthSelected",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._monthSelectedInYearView(M))})("selectedChange",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._goToDateInView(M,"month"))}),o.k0s()}if(2&E){const h=o.XpG();o.Y8G("activeDate",h.activeDate)("selected",h.selected)("dateFilter",h.dateFilter)("maxDate",h.maxDate)("minDate",h.minDate)("dateClass",h.dateClass)}}function V6(E,O){if(1&E){const h=o.RV6();o.j41(0,"mat-multi-year-view",7),o.bIt("activeDateChange",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G.activeDate=M)})("yearSelected",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._yearSelectedInMultiYearView(M))})("selectedChange",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G._goToDateInView(M,"year"))}),o.k0s()}if(2&E){const h=o.XpG();o.Y8G("activeDate",h.activeDate)("selected",h.selected)("dateFilter",h.dateFilter)("maxDate",h.maxDate)("minDate",h.minDate)("dateClass",h.dateClass)}}function wg(E,O){}const Km=["button"];function Ym(E,O){1&E&&(o.qSk(),o.j41(0,"svg",3),o.nrm(1,"path",4),o.k0s())}const _f=[[["","matDatepickerToggleIcon",""]]],mu=["[matDatepickerToggleIcon]"];let G4=(()=>{class E{constructor(){this.changes=new Se.B,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(h,b){return`${h} \u2013 ${b}`}formatYearRangeLabel(h,b){return`${h} to ${b}`}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class R2{constructor(O,h,b,M,G={},we=O,en){this.value=O,this.displayValue=h,this.ariaLabel=b,this.enabled=M,this.cssClasses=G,this.compareValue=we,this.rawValue=en}}let Sg=1;const W4=ze({passive:!1,capture:!0}),N2=ze({passive:!0,capture:!0}),q4=ze({passive:!0});let vd=(()=>{class E{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(h,b){this._elementRef=h,this._ngZone=b,this._platform=(0,o.WQX)(De),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.bkB,this.previewChange=new o.bkB,this.activeDateChange=new o.bkB,this.dragStarted=new o.bkB,this.dragEnded=new o.bkB,this._didDragSinceMouseDown=!1,this._enterHandler=M=>{if(this._skipNextFocus&&"focus"===M.type)this._skipNextFocus=!1;else if(M.target&&this.isRange){const G=this._getCellFromElement(M.target);G&&this._ngZone.run(()=>this.previewChange.emit({value:G.enabled?G:null,event:M}))}},this._touchmoveHandler=M=>{if(!this.isRange)return;const G=Zm(M),we=G?this._getCellFromElement(G):null;G!==M.target&&(this._didDragSinceMouseDown=!0),l2(M.target)&&M.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:we?.enabled?we:null,event:M}))},this._leaveHandler=M=>{null!==this.previewEnd&&this.isRange&&("blur"!==M.type&&(this._didDragSinceMouseDown=!0),M.target&&this._getCellFromElement(M.target)&&(!M.relatedTarget||!this._getCellFromElement(M.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:M})))},this._mousedownHandler=M=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const G=M.target&&this._getCellFromElement(M.target);!G||!this._isInRange(G.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:G.rawValue,event:M})})},this._mouseupHandler=M=>{if(!this.isRange)return;const G=l2(M.target);G?G.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const we=this._getCellFromElement(G);this.dragEnded.emit({value:we?.rawValue??null,event:M})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:M})})},this._touchendHandler=M=>{const G=Zm(M);G&&this._mouseupHandler({target:G})},this._id="mat-calendar-body-"+Sg++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,b.runOutsideAngular(()=>{const M=h.nativeElement;M.addEventListener("touchmove",this._touchmoveHandler,W4),M.addEventListener("mouseenter",this._enterHandler,N2),M.addEventListener("focus",this._enterHandler,N2),M.addEventListener("mouseleave",this._leaveHandler,N2),M.addEventListener("blur",this._leaveHandler,N2),M.addEventListener("mousedown",this._mousedownHandler,q4),M.addEventListener("touchstart",this._mousedownHandler,q4),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(h,b){this._didDragSinceMouseDown||h.enabled&&this.selectedValueChange.emit({value:h.value,event:b})}_emitActiveDateChange(h,b){h.enabled&&this.activeDateChange.emit({value:h.value,event:b})}_isSelected(h){return this.startValue===h||this.endValue===h}ngOnChanges(h){const b=h.numCols,{rows:M,numCols:G}=this;(h.rows||b)&&(this._firstRowOffset=M&&M.length&&M[0].length?G-M[0].length:0),(h.cellAspectRatio||b||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/G+"%"),(b||!this._cellWidth)&&(this._cellWidth=100/G+"%")}ngOnDestroy(){const h=this._elementRef.nativeElement;h.removeEventListener("touchmove",this._touchmoveHandler,W4),h.removeEventListener("mouseenter",this._enterHandler,N2),h.removeEventListener("focus",this._enterHandler,N2),h.removeEventListener("mouseleave",this._leaveHandler,N2),h.removeEventListener("blur",this._leaveHandler,N2),h.removeEventListener("mousedown",this._mousedownHandler,q4),h.removeEventListener("touchstart",this._mousedownHandler,q4),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(h,b){let M=h*this.numCols+b;return h&&(M-=this._firstRowOffset),M==this.activeCell}_focusActiveCell(h=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,gr.s)(1)).subscribe(()=>{setTimeout(()=>{const b=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");b&&(h||(this._skipNextFocus=!0),b.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(h){return _d(h,this.startValue,this.endValue)}_isRangeEnd(h){return K3(h,this.startValue,this.endValue)}_isInRange(h){return A6(h,this.startValue,this.endValue,this.isRange)}_isComparisonStart(h){return _d(h,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(h,b,M){if(!this._isComparisonStart(h)||this._isRangeStart(h)||!this._isInRange(h))return!1;let G=this.rows[b][M-1];if(!G){const we=this.rows[b-1];G=we&&we[we.length-1]}return G&&!this._isRangeEnd(G.compareValue)}_isComparisonBridgeEnd(h,b,M){if(!this._isComparisonEnd(h)||this._isRangeEnd(h)||!this._isInRange(h))return!1;let G=this.rows[b][M+1];if(!G){const we=this.rows[b+1];G=we&&we[0]}return G&&!this._isRangeStart(G.compareValue)}_isComparisonEnd(h){return K3(h,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(h){return A6(h,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(h){return this.comparisonStart===this.comparisonEnd&&h===this.comparisonStart}_isPreviewStart(h){return _d(h,this.previewStart,this.previewEnd)}_isPreviewEnd(h){return K3(h,this.previewStart,this.previewEnd)}_isInPreview(h){return A6(h,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(h){return this.isRange?this.startValue===h&&this.endValue===h?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===h?this._startDateLabelId:this.endValue===h?this._endDateLabelId:null:null}_getCellFromElement(h){const b=l2(h);if(b){const M=b.getAttribute("data-mat-row"),G=b.getAttribute("data-mat-col");if(M&&G)return this.rows[parseInt(M)][parseInt(G)]}return null}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.SKi))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[o.OA$],attrs:k6,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(b,M){1&b&&(o.DNE(0,yg,3,6,"tr",0),o.DNE(1,xg,3,2,"tr",1),o.j41(2,"label",2),o.EFF(3),o.k0s(),o.j41(4,"label",2),o.EFF(5),o.k0s()),2&b&&(o.Y8G("ngIf",M._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0})}return E})();function X4(E){return"TD"===E?.nodeName}function l2(E){let O;return X4(E)?O=E:X4(E.parentNode)?O=E.parentNode:X4(E.parentNode?.parentNode)&&(O=E.parentNode.parentNode),null!=O?.getAttribute("data-mat-row")?O:null}function _d(E,O,h){return null!==h&&O!==h&&E=O&&E===h}function A6(E,O,h,b){return b&&null!==O&&null!==h&&O!==h&&E>=O&&E<=h}function Zm(E){const O=E.changedTouches[0];return document.elementFromPoint(O.clientX,O.clientY)}class Jl{constructor(O,h){this.start=O,this.end=h}}let j1=(()=>{class E{constructor(h,b){this.selection=h,this._adapter=b,this._selectionChanged=new Se.B,this.selectionChanged=this._selectionChanged,this.selection=h}updateSelection(h,b){const M=this.selection;this.selection=h,this._selectionChanged.next({selection:h,source:b,oldValue:M})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(h){return this._adapter.isDateInstance(h)&&this._adapter.isValid(h)}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac})}return E})(),kg=(()=>{class E extends j1{constructor(h){super(null,h)}add(h){super.updateSelection(h,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const h=new E(this._adapter);return h.updateSelection(this.selection,this),h}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(js))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac})}return E})();const yf={provide:j1,deps:[[new o.Xx1,new o.kdw,j1],js],useFactory:function I6(E,O){return E||new kg(O)}},Y3=new o.nKC("MAT_DATE_RANGE_SELECTION_STRATEGY");let t8=(()=>{class E{get activeDate(){return this._activeDate}set activeDate(h){const b=this._activeDate,M=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(M,this.minDate,this.maxDate),this._hasSameMonthAndYear(b,this._activeDate)||this._init()}get selected(){return this._selected}set selected(h){this._selected=h instanceof Jl?h:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(h){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get maxDate(){return this._maxDate}set maxDate(h){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}constructor(h,b,M,G,we){this._changeDetectorRef=h,this._dateFormats=b,this._dateAdapter=M,this._dir=G,this._rangeStrategy=we,this._rerenderSubscription=it.yU.EMPTY,this.activeDrag=null,this.selectedChange=new o.bkB,this._userSelection=new o.bkB,this.dragStarted=new o.bkB,this.dragEnded=new o.bkB,this.activeDateChange=new o.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,la.Z)(null)).subscribe(()=>this._init())}ngOnChanges(h){const b=h.comparisonStart||h.comparisonEnd;b&&!b.firstChange&&this._setRanges(this.selected),h.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(h){const b=h.value,M=this._getDateFromDayOfMonth(b);let G,we;this._selected instanceof Jl?(G=this._getDateInCurrentMonth(this._selected.start),we=this._getDateInCurrentMonth(this._selected.end)):G=we=this._getDateInCurrentMonth(this._selected),(G!==b||we!==b)&&this.selectedChange.emit(M),this._userSelection.emit({value:M,event:h.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(h){const M=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(h.value),this._dateAdapter.compareDate(M,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(h){const b=this._activeDate,M=this._isRtl();switch(h.keyCode){case H:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,M?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,M?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=h.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=h.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&h.preventDefault());case 27:return void(null!=this._previewEnd&&!Ao(h)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:h}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:h})),h.preventDefault(),h.stopPropagation()));default:return}this._dateAdapter.compareDate(b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),h.preventDefault()}_handleCalendarBodyKeyup(h){(32===h.keyCode||13===h.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:h}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let h=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(h)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(h){this._matCalendarBody._focusActiveCell(h)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:h,value:b}){if(this._rangeStrategy){const M=b?b.rawValue:null,G=this._rangeStrategy.createPreview(M,this.selected,h);if(this._previewStart=this._getCellCompareValue(G.start),this._previewEnd=this._getCellCompareValue(G.end),this.activeDrag&&M){const we=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,M,h);we&&(this._previewStart=this._getCellCompareValue(we.start),this._previewEnd=this._getCellCompareValue(we.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(h){if(this.activeDrag)if(h.value){const b=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,h.value,h.event);this.dragEnded.emit({value:b??null,event:h.event})}else this.dragEnded.emit({value:null,event:h.event})}_getDateFromDayOfMonth(h){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),h)}_initWeekdays(){const h=this._dateAdapter.getFirstDayOfWeek(),b=this._dateAdapter.getDayOfWeekNames("narrow");let G=this._dateAdapter.getDayOfWeekNames("long").map((we,en)=>({long:we,narrow:b[en]}));this._weekdays=G.slice(h).concat(G.slice(0,h))}_createWeekCells(){const h=this._dateAdapter.getNumDaysInMonth(this.activeDate),b=this._dateAdapter.getDateNames();this._weeks=[[]];for(let M=0,G=this._firstWeekOffset;M=0)&&(!this.maxDate||this._dateAdapter.compareDate(h,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(h))}_getDateInCurrentMonth(h){return h&&this._hasSameMonthAndYear(h,this.activeDate)?this._dateAdapter.getDate(h):null}_hasSameMonthAndYear(h,b){return!(!h||!b||this._dateAdapter.getMonth(h)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(h)!=this._dateAdapter.getYear(b))}_getCellCompareValue(h){if(h){const b=this._dateAdapter.getYear(h),M=this._dateAdapter.getMonth(h),G=this._dateAdapter.getDate(h);return new Date(b,M,G).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(h){h instanceof Jl?(this._rangeStart=this._getCellCompareValue(h.start),this._rangeEnd=this._getCellCompareValue(h.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(h),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(h){return!this.dateFilter||this.dateFilter(h)}_clearPreview(){this._previewStart=this._previewEnd=null}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.gRc),o.rXU(uo,8),o.rXU(js,8),o.rXU(bl,8),o.rXU(Y3,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-month-view"]],viewQuery:function(b,M){if(1&b&&o.GBs(vd,5),2&b){let G;o.mGM(G=o.lsd())&&(M._matCalendarBody=G.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[o.OA$],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(b,M){1&b&&(o.j41(0,"table",0)(1,"thead",1)(2,"tr"),o.DNE(3,X3,5,2,"th",2),o.k0s(),o.j41(4,"tr"),o.nrm(5,"th",3),o.k0s()(),o.j41(6,"tbody",4),o.bIt("selectedValueChange",function(we){return M._dateSelected(we)})("activeDateChange",function(we){return M._updateActiveDate(we)})("previewChange",function(we){return M._previewChanged(we)})("dragStarted",function(we){return M.dragStarted.emit(we)})("dragEnded",function(we){return M._dragEnded(we)})("keyup",function(we){return M._handleCalendarBodyKeyup(we)})("keydown",function(we){return M._handleCalendarBodyKeydown(we)}),o.k0s()()),2&b&&(o.R7$(3),o.Y8G("ngForOf",M._weekdays),o.R7$(3),o.Y8G("label",M._monthLabel)("rows",M._weeks)("todayValue",M._todayDate)("startValue",M._rangeStart)("endValue",M._rangeEnd)("comparisonStart",M._comparisonRangeStart)("comparisonEnd",M._comparisonRangeEnd)("previewStart",M._previewStart)("previewEnd",M._previewEnd)("isRange",M._isRange)("labelMinRequiredCells",3)("activeCell",M._dateAdapter.getDate(M.activeDate)-1)("startDateAccessibleName",M.startDateAccessibleName)("endDateAccessibleName",M.endDateAccessibleName))},dependencies:[g.Sq,vd],encapsulation:2,changeDetection:0})}return E})();const F1=24;let o4=(()=>{class E{get activeDate(){return this._activeDate}set activeDate(h){let b=this._activeDate;const M=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(M,this.minDate,this.maxDate),z6(this._dateAdapter,b,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(h){this._selected=h instanceof Jl?h:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h)),this._setSelectedYear(h)}get minDate(){return this._minDate}set minDate(h){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get maxDate(){return this._maxDate}set maxDate(h){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}constructor(h,b,M){this._changeDetectorRef=h,this._dateAdapter=b,this._dir=M,this._rerenderSubscription=it.yU.EMPTY,this.selectedChange=new o.bkB,this.yearSelected=new o.bkB,this.activeDateChange=new o.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,la.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const b=this._dateAdapter.getYear(this._activeDate)-a4(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let M=0,G=[];Mthis._createCellForYear(we))),G=[]);this._changeDetectorRef.markForCheck()}_yearSelected(h){const b=h.value,M=this._dateAdapter.createDate(b,0,1),G=this._getDateFromYear(b);this.yearSelected.emit(M),this.selectedChange.emit(G)}_updateActiveDate(h){const M=this._activeDate;this.activeDate=this._getDateFromYear(h.value),this._dateAdapter.compareDate(M,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(h){const b=this._activeDate,M=this._isRtl();switch(h.keyCode){case H:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,M?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,M?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-a4(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F1-a4(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,h.altKey?10*-F1:-F1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,h.altKey?10*F1:F1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(b,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),h.preventDefault()}_handleCalendarBodyKeyup(h){(32===h.keyCode||13===h.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:h}),this._selectionKeyPressed=!1)}_getActiveCell(){return a4(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(h){const b=this._dateAdapter.getMonth(this.activeDate),M=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(h,b,1));return this._dateAdapter.createDate(h,b,Math.min(this._dateAdapter.getDate(this.activeDate),M))}_createCellForYear(h){const b=this._dateAdapter.createDate(h,0,1),M=this._dateAdapter.getYearName(b),G=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new R2(h,M,M,this._shouldEnableYear(h),G)}_shouldEnableYear(h){if(null==h||this.maxDate&&h>this._dateAdapter.getYear(this.maxDate)||this.minDate&&h{class E{get activeDate(){return this._activeDate}set activeDate(h){let b=this._activeDate;const M=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(M,this.minDate,this.maxDate),this._dateAdapter.getYear(b)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(h){this._selected=h instanceof Jl?h:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h)),this._setSelectedMonth(h)}get minDate(){return this._minDate}set minDate(h){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get maxDate(){return this._maxDate}set maxDate(h){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}constructor(h,b,M,G){this._changeDetectorRef=h,this._dateFormats=b,this._dateAdapter=M,this._dir=G,this._rerenderSubscription=it.yU.EMPTY,this.selectedChange=new o.bkB,this.monthSelected=new o.bkB,this.activeDateChange=new o.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,la.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(h){const b=h.value,M=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),b,1);this.monthSelected.emit(M);const G=this._getDateFromMonth(b);this.selectedChange.emit(G)}_updateActiveDate(h){const M=this._activeDate;this.activeDate=this._getDateFromMonth(h.value),this._dateAdapter.compareDate(M,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(h){const b=this._activeDate,M=this._isRtl();switch(h.keyCode){case H:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,M?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,M?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,h.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,h.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),h.preventDefault()}_handleCalendarBodyKeyup(h){(32===h.keyCode||13===h.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:h}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let h=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(b=>b.map(M=>this._createCellForMonth(M,h[M]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(h){return h&&this._dateAdapter.getYear(h)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(h):null}_getDateFromMonth(h){const b=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),h,1),M=this._dateAdapter.getNumDaysInMonth(b);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),h,Math.min(this._dateAdapter.getDate(this.activeDate),M))}_createCellForMonth(h,b){const M=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),h,1),G=this._dateAdapter.format(M,this._dateFormats.display.monthYearA11yLabel),we=this.dateClass?this.dateClass(M,"year"):void 0;return new R2(h,b.toLocaleUpperCase(),G,this._shouldEnableMonth(h),we)}_shouldEnableMonth(h){const b=this._dateAdapter.getYear(this.activeDate);if(null==h||this._isYearAndMonthAfterMaxDate(b,h)||this._isYearAndMonthBeforeMinDate(b,h))return!1;if(!this.dateFilter)return!0;for(let G=this._dateAdapter.createDate(b,h,1);this._dateAdapter.getMonth(G)==h;G=this._dateAdapter.addCalendarDays(G,1))if(this.dateFilter(G))return!0;return!1}_isYearAndMonthAfterMaxDate(h,b){if(this.maxDate){const M=this._dateAdapter.getYear(this.maxDate),G=this._dateAdapter.getMonth(this.maxDate);return h>M||h===M&&b>G}return!1}_isYearAndMonthBeforeMinDate(h,b){if(this.minDate){const M=this._dateAdapter.getYear(this.minDate),G=this._dateAdapter.getMonth(this.minDate);return h{class E{constructor(h,b,M,G,we){this._intl=h,this.calendar=b,this._dateAdapter=M,this._dateFormats=G,this._id="mat-calendar-header-"+wf++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>we.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-F1)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:F1)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(h,b){return"month"==this.calendar.currentView?this._dateAdapter.getYear(h)==this._dateAdapter.getYear(b)&&this._dateAdapter.getMonth(h)==this._dateAdapter.getMonth(b):"year"==this.calendar.currentView?this._dateAdapter.getYear(h)==this._dateAdapter.getYear(b):z6(this._dateAdapter,h,b,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const b=this._dateAdapter.getYear(this.calendar.activeDate)-a4(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),M=b+F1-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(b,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(M,0,1))]}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(G4),o.rXU((0,o.Rfq)(()=>c4)),o.rXU(js,8),o.rXU(uo,8),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:U4,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(b,M){1&b&&(o.NAR(),o.j41(0,"div",0)(1,"div",1)(2,"button",2),o.bIt("click",function(){return M.currentPeriodClicked()}),o.j41(3,"span",3),o.EFF(4),o.k0s(),o.qSk(),o.j41(5,"svg",4),o.nrm(6,"polygon",5),o.k0s()(),o.joV(),o.nrm(7,"div",6),o.SdG(8),o.j41(9,"button",7),o.bIt("click",function(){return M.previousClicked()}),o.k0s(),o.j41(10,"button",8),o.bIt("click",function(){return M.nextClicked()}),o.k0s()()(),o.j41(11,"label",9),o.EFF(12),o.k0s()),2&b&&(o.R7$(2),o.BMQ("aria-label",M.periodButtonLabel)("aria-describedby",M._periodButtonLabelId),o.R7$(2),o.JRh(M.periodButtonText),o.R7$(1),o.AVh("mat-calendar-invert","month"!==M.calendar.currentView),o.R7$(4),o.Y8G("disabled",!M.previousEnabled()),o.BMQ("aria-label",M.prevButtonLabel),o.R7$(1),o.Y8G("disabled",!M.nextEnabled()),o.BMQ("aria-label",M.nextButtonLabel),o.R7$(1),o.Y8G("id",M._periodButtonLabelId),o.R7$(1),o.JRh(M.periodButtonDescription))},dependencies:[hu,Lm],encapsulation:2,changeDetection:0})}return E})(),c4=(()=>{class E{get startAt(){return this._startAt}set startAt(h){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get selected(){return this._selected}set selected(h){this._selected=h instanceof Jl?h:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get minDate(){return this._minDate}set minDate(h){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get maxDate(){return this._maxDate}set maxDate(h){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get activeDate(){return this._clampedActiveDate}set activeDate(h){this._clampedActiveDate=this._dateAdapter.clampDate(h,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(h){const b=this._currentView!==h?h:null;this._currentView=h,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),b&&this.viewChanged.emit(b)}constructor(h,b,M,G){this._dateAdapter=b,this._dateFormats=M,this._changeDetectorRef=G,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.bkB,this.yearSelected=new o.bkB,this.monthSelected=new o.bkB,this.viewChanged=new o.bkB(!0),this._userSelection=new o.bkB,this._userDragDrop=new o.bkB,this._activeDrag=null,this.stateChanges=new Se.B,this._intlChanges=h.changes.subscribe(()=>{G.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new ef(this.headerComponent||Q3),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(h){const b=h.minDate&&!this._dateAdapter.sameDate(h.minDate.previousValue,h.minDate.currentValue)?h.minDate:void 0,M=h.maxDate&&!this._dateAdapter.sameDate(h.maxDate.previousValue,h.maxDate.currentValue)?h.maxDate:void 0,G=b||M||h.dateFilter;if(G&&!G.firstChange){const we=this._getCurrentViewComponent();we&&(this._changeDetectorRef.detectChanges(),we._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(h){const b=h.value;(this.selected instanceof Jl||b&&!this._dateAdapter.sameDate(b,this.selected))&&this.selectedChange.emit(b),this._userSelection.emit(h)}_yearSelectedInMultiYearView(h){this.yearSelected.emit(h)}_monthSelectedInYearView(h){this.monthSelected.emit(h)}_goToDateInView(h,b){this.activeDate=h,this.currentView=b}_dragStarted(h){this._activeDrag=h}_dragEnded(h){this._activeDrag&&(h.value&&this._userDragDrop.emit(h),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(G4),o.rXU(js,8),o.rXU(uo,8),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-calendar"]],viewQuery:function(b,M){if(1&b&&(o.GBs(t8,5),o.GBs(xf,5),o.GBs(o4,5)),2&b){let G;o.mGM(G=o.lsd())&&(M.monthView=G.first),o.mGM(G=o.lsd())&&(M.yearView=G.first),o.mGM(G=o.lsd())&&(M.multiYearView=G.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[o.Jv_([yf]),o.OA$],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(b,M){1&b&&(o.DNE(0,D6,0,0,"ng-template",0),o.j41(1,"div",1),o.DNE(2,Xm,1,11,"mat-month-view",2),o.DNE(3,T6,1,6,"mat-year-view",3),o.DNE(4,V6,1,6,"mat-multi-year-view",4),o.k0s()),2&b&&(o.Y8G("cdkPortalOutlet",M._calendarHeaderPortal),o.R7$(1),o.Y8G("ngSwitch",M.currentView),o.R7$(1),o.Y8G("ngSwitchCase","month"),o.R7$(1),o.Y8G("ngSwitchCase","year"),o.R7$(1),o.Y8G("ngSwitchCase","multi-year"))},dependencies:[g.ux,g.e1,e2,pm,t8,xf,o4],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0})}return E})();const bd={transformPanel:(0,Sr.hZ)("transformPanel",[(0,Sr.kY)("void => enter-dropdown",(0,Sr.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Sr.i7)([(0,Sr.iF)({opacity:0,transform:"scale(1, 0.8)"}),(0,Sr.iF)({opacity:1,transform:"scale(1, 1)"})]))),(0,Sr.kY)("void => enter-dialog",(0,Sr.i0)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Sr.i7)([(0,Sr.iF)({opacity:0,transform:"scale(0.7)"}),(0,Sr.iF)({transform:"none",opacity:1})]))),(0,Sr.kY)("* => void",(0,Sr.i0)("100ms linear",(0,Sr.iF)({opacity:0})))]),fadeInCalendar:(0,Sr.hZ)("fadeInCalendar",[(0,Sr.wk)("void",(0,Sr.iF)({opacity:0})),(0,Sr.wk)("enter",(0,Sr.iF)({opacity:1})),(0,Sr.kY)("void => *",(0,Sr.i0)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Mf=0;const Sf=new o.nKC("mat-datepicker-scroll-strategy"),ly={provide:Sf,deps:[md],useFactory:function J3(E){return()=>E.scrollStrategies.reposition()}},kf=xr(class{constructor(E){this._elementRef=E}});let Y4=(()=>{class E extends kf{constructor(h,b,M,G,we,en){super(h),this._changeDetectorRef=b,this._globalModel=M,this._dateAdapter=G,this._rangeSelectionStrategy=we,this._subscriptions=new it.yU,this._animationDone=new Se.B,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=en.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(h){const b=this._model.selection,M=h.value,G=b instanceof Jl;if(G&&this._rangeSelectionStrategy){const we=this._rangeSelectionStrategy.selectionFinished(M,b,h.event);this._model.updateSelection(we,this)}else M&&(G||!this._dateAdapter.sameDate(M,b))&&this._model.add(M);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(h){this._model.updateSelection(h.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(h){this._isAnimating="start"===h.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(h,b){this._model=h?this._globalModel.clone():this._globalModel,this._actionsPortal=h,b&&this._changeDetectorRef.detectChanges()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(j1),o.rXU(js),o.rXU(Y3,8),o.rXU(G4))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-datepicker-content"]],viewQuery:function(b,M){if(1&b&&o.GBs(c4,5),2&b){let G;o.mGM(G=o.lsd())&&(M._calendar=G.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(b,M){1&b&&o.Kam("@transformPanel.start",function(we){return M._handleAnimationEvent(we)})("@transformPanel.done",function(we){return M._handleAnimationEvent(we)}),2&b&&(o.zvX("@transformPanel",M._animationState),o.AVh("mat-datepicker-content-touch",M.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.Vt3],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(b,M){if(1&b&&(o.j41(0,"div",0)(1,"mat-calendar",1),o.bIt("yearSelected",function(we){return M.datepicker._selectYear(we)})("monthSelected",function(we){return M.datepicker._selectMonth(we)})("viewChanged",function(we){return M.datepicker._viewChanged(we)})("_userSelection",function(we){return M._handleUserSelection(we)})("_userDragDrop",function(we){return M._handleUserDragDrop(we)}),o.k0s(),o.DNE(2,wg,0,0,"ng-template",2),o.j41(3,"button",3),o.bIt("focus",function(){return M._closeButtonFocused=!0})("blur",function(){return M._closeButtonFocused=!1})("click",function(){return M.datepicker.close()}),o.EFF(4),o.k0s()()),2&b){let G;o.AVh("mat-datepicker-content-container-with-custom-header",M.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",M._actionsPortal),o.BMQ("aria-modal",!0)("aria-labelledby",null!==(G=M._dialogLabelId)&&void 0!==G?G:void 0),o.R7$(1),o.Y8G("id",M.datepicker.id)("ngClass",M.datepicker.panelClass)("startAt",M.datepicker.startAt)("startView",M.datepicker.startView)("minDate",M.datepicker._getMinDate())("maxDate",M.datepicker._getMaxDate())("dateFilter",M.datepicker._getDateFilter())("headerComponent",M.datepicker.calendarHeaderComponent)("selected",M._getSelected())("dateClass",M.datepicker.dateClass)("comparisonStart",M.comparisonStart)("comparisonEnd",M.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",M.startDateAccessibleName)("endDateAccessibleName",M.endDateAccessibleName),o.R7$(1),o.Y8G("cdkPortalOutlet",M._actionsPortal),o.R7$(1),o.AVh("cdk-visually-hidden",!M._closeButtonFocused),o.Y8G("color",M.color||"primary"),o.R7$(1),o.JRh(M._closeButtonText)}},dependencies:[g.YU,hu,$e,pm,c4],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[bd.transformPanel,bd.fadeInCalendar]},changeDetection:0})}return E})(),n8=(()=>{class E{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(h){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(h){this._color=h}get touchUi(){return this._touchUi}set touchUi(h){this._touchUi=Kn(h)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(h){const b=Kn(h);b!==this._disabled&&(this._disabled=b,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(h){this._restoreFocus=Kn(h)}get panelClass(){return this._panelClass}set panelClass(h){this._panelClass=function Is(E,O=/\s+/){const h=[];if(null!=E){const b=Array.isArray(E)?E:`${E}`.split(O);for(const M of b){const G=`${M}`.trim();G&&h.push(G)}}return h}(h)}get opened(){return this._opened}set opened(h){Kn(h)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(h,b,M,G,we,en,Yn){this._overlay=h,this._ngZone=b,this._viewContainerRef=M,this._dateAdapter=we,this._dir=en,this._model=Yn,this._inputStateChanges=it.yU.EMPTY,this._document=(0,o.WQX)(g.qQ),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.bkB,this.monthSelected=new o.bkB,this.viewChanged=new o.bkB(!0),this.openedStream=new o.bkB,this.closedStream=new o.bkB,this._opened=!1,this.id="mat-datepicker-"+Mf++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Se.B,this._scrollStrategy=G}ngOnChanges(h){const b=h.xPosition||h.yPosition;if(b&&!b.firstChange&&this._overlayRef){const M=this._overlayRef.getConfig().positionStrategy;M instanceof lf&&(this._setConnectedPositions(M),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(h){this._model.add(h)}_selectYear(h){this.yearSelected.emit(h)}_selectMonth(h){this.monthSelected.emit(h)}_viewChanged(h){this.viewChanged.emit(h)}registerInput(h){return this._inputStateChanges.unsubscribe(),this.datepickerInput=h,this._inputStateChanges=h.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(h){this._actionsPortal=h,this._componentRef?.instance._assignActions(h,!0)}removeActions(h){h===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=Be(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const h=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,b=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:M,location:G}=this._componentRef;M._startExitAnimation(),M._animationDone.pipe((0,gr.s)(1)).subscribe(()=>{const we=this._document.activeElement;h&&(!we||we===this._document.activeElement||G.nativeElement.contains(we))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}h?setTimeout(b):b()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(h){h.datepicker=this,h.color=this.color,h._dialogLabelId=this.datepickerInput.getOverlayLabelId(),h._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const h=this.touchUi,b=new ef(Y4,this._viewContainerRef),M=this._overlayRef=this._overlay.create(new wl({positionStrategy:h?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[h?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:h?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(h?"dialog":"popup")}));this._getCloseStream(M).subscribe(G=>{G&&G.preventDefault(),this.close()}),M.keydownEvents().subscribe(G=>{const we=G.keyCode;(38===we||40===we||we===H||39===we||33===we||34===we)&&G.preventDefault()}),this._componentRef=M.attach(b),this._forwardContentValues(this._componentRef.instance),h||this._ngZone.onStable.pipe((0,gr.s)(1)).subscribe(()=>M.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const h=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(h)}_setConnectedPositions(h){const b="end"===this.xPosition?"end":"start",M="start"===b?"end":"start",G="above"===this.yPosition?"bottom":"top",we="top"===G?"bottom":"top";return h.withPositions([{originX:b,originY:we,overlayX:b,overlayY:G},{originX:b,originY:G,overlayX:b,overlayY:we},{originX:M,originY:we,overlayX:M,overlayY:G},{originX:M,originY:G,overlayX:M,overlayY:we}])}_getCloseStream(h){const b=["ctrlKey","shiftKey","metaKey"];return(0,M1.h)(h.backdropClick(),h.detachments(),h.keydownEvents().pipe((0,za.p)(M=>27===M.keyCode&&!Ao(M)||this.datepickerInput&&Ao(M,"altKey")&&38===M.keyCode&&b.every(G=>!Ao(M,G)))))}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(md),o.rXU(o.SKi),o.rXU(o.c1b),o.rXU(Sf),o.rXU(js,8),o.rXU(bl,8),o.rXU(j1))};static#t=this.\u0275dir=o.FsC({type:E,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.OA$]})}return E})(),i8=(()=>{class E extends n8{static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o.Jv_([yf,{provide:n8,useExisting:E}]),o.Vt3],decls:0,vars:0,template:function(b,M){},encapsulation:2,changeDetection:0})}return E})();class Ef{constructor(O,h){this.target=O,this.targetElement=h,this.value=this.target.value}}let r8=(()=>{class E{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(h){this._assignValueProgrammatically(h)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(h){const b=Kn(h),M=this._elementRef.nativeElement;this._disabled!==b&&(this._disabled=b,this.stateChanges.next(void 0)),b&&this._isInitialized&&M.blur&&M.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(h){this._model=h,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(b=>{if(this._shouldHandleChangeEvent(b)){const M=this._getValueFromModel(b.selection);this._lastValueValid=this._isValidValue(M),this._cvaOnChange(M),this._onTouched(),this._formatValue(M),this.dateInput.emit(new Ef(this,this._elementRef.nativeElement)),this.dateChange.emit(new Ef(this,this._elementRef.nativeElement))}})}constructor(h,b,M){this._elementRef=h,this._dateAdapter=b,this._dateFormats=M,this.dateChange=new o.bkB,this.dateInput=new o.bkB,this.stateChanges=new Se.B,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=it.yU.EMPTY,this._localeSubscription=it.yU.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=G=>{const we=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G.value));return!we||this._matchesFilter(we)?null:{matDatepickerFilter:!0}},this._minValidator=G=>{const we=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G.value)),en=this._getMinDate();return!en||!we||this._dateAdapter.compareDate(en,we)<=0?null:{matDatepickerMin:{min:en,actual:we}}},this._maxValidator=G=>{const we=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G.value)),en=this._getMaxDate();return!en||!we||this._dateAdapter.compareDate(en,we)>=0?null:{matDatepickerMax:{max:en,actual:we}}},this._lastValueValid=!1,this._localeSubscription=b.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(h){(function Df(E,O){const h=Object.keys(E);for(let b of h){const{previousValue:M,currentValue:G}=E[b];if(!O.isDateInstance(M)||!O.isDateInstance(G))return!0;if(!O.sameDate(M,G))return!0}return!1})(h,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(h){this._validatorOnChange=h}validate(h){return this._validator?this._validator(h):null}writeValue(h){this._assignValueProgrammatically(h)}registerOnChange(h){this._cvaOnChange=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h}_onKeydown(h){Ao(h,"altKey")&&40===h.keyCode&&["ctrlKey","shiftKey","metaKey"].every(G=>!Ao(h,G))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),h.preventDefault())}_onInput(h){const b=this._lastValueValid;let M=this._dateAdapter.parse(h,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(M),M=this._dateAdapter.getValidDateOrNull(M);const G=!this._dateAdapter.sameDate(M,this.value);!M||G?this._cvaOnChange(M):(h&&!this.value&&this._cvaOnChange(M),b!==this._lastValueValid&&this._validatorOnChange()),G&&(this._assignValue(M),this.dateInput.emit(new Ef(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Ef(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(h){this._elementRef.nativeElement.value=null!=h?this._dateAdapter.format(h,this._dateFormats.display.dateInput):""}_assignValue(h){this._model?(this._assignValueToModel(h),this._pendingValue=null):this._pendingValue=h}_isValidValue(h){return!h||this._dateAdapter.isValid(h)}_parentDisabled(){return!1}_assignValueProgrammatically(h){h=this._dateAdapter.deserialize(h),this._lastValueValid=this._isValidValue(h),h=this._dateAdapter.getValidDateOrNull(h),this._assignValue(h),this._formatValue(h)}_matchesFilter(h){const b=this._getDateFilter();return!b||b(h)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(js,8),o.rXU(uo,8))};static#t=this.\u0275dir=o.FsC({type:E,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.OA$]})}return E})();const l4={provide:V.kq,useExisting:(0,o.Rfq)(()=>Z3),multi:!0},Tg={provide:V.cz,useExisting:(0,o.Rfq)(()=>Z3),multi:!0};let Z3=(()=>{class E extends r8{set matDatepicker(h){h&&(this._datepicker=h,this._closedSubscription=h.closedStream.subscribe(()=>this._onTouched()),this._registerModel(h.registerInput(this)))}get min(){return this._min}set min(h){const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h));this._dateAdapter.sameDate(b,this._min)||(this._min=b,this._validatorOnChange())}get max(){return this._max}set max(h){const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h));this._dateAdapter.sameDate(b,this._max)||(this._max=b,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(h){const b=this._matchesFilter(this.value);this._dateFilter=h,this._matchesFilter(this.value)!==b&&this._validatorOnChange()}constructor(h,b,M,G){super(h,b,M),this._formField=G,this._closedSubscription=it.yU.EMPTY,this._validator=V.k0.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(h){return h}_assignValueToModel(h){this._model&&this._model.updateSelection(h,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(h){return h.source!==this}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(js,8),o.rXU(uo,8),o.rXU(fs,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(b,M){1&b&&o.bIt("input",function(we){return M._onInput(we.target.value)})("change",function(){return M._onChange()})("blur",function(){return M._onBlur()})("keydown",function(we){return M._onKeydown(we)}),2&b&&(o.Mr5("disabled",M.disabled),o.BMQ("aria-haspopup",M._datepicker?"dialog":null)("aria-owns",(null==M._datepicker?null:M._datepicker.opened)&&M._datepicker.id||null)("min",M.min?M._dateAdapter.toIso8601(M.min):null)("max",M.max?M._dateAdapter.toIso8601(M.max):null)("data-mat-calendar",M._datepicker?M._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o.Jv_([l4,Tg,{provide:s2,useExisting:E}]),o.Vt3]})}return E})(),uy=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","matDatepickerToggleIcon",""]]})}return E})(),s8=(()=>{class E{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(h){this._disabled=Kn(h)}constructor(h,b,M){this._intl=h,this._changeDetectorRef=b,this._stateChanges=it.yU.EMPTY;const G=Number(M);this.tabIndex=G||0===G?G:null}ngOnChanges(h){h.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(h){this.datepicker&&!this.disabled&&(this.datepicker.open(),h.stopPropagation())}_watchStateChanges(){const h=this.datepicker?this.datepicker.stateChanges:(0,jt.of)(),b=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,jt.of)(),M=this.datepicker?(0,M1.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,jt.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,M1.h)(this._intl.changes,h,b,M).subscribe(()=>this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(G4),o.rXU(o.gRc),o.kS0("tabindex"))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-datepicker-toggle"]],contentQueries:function(b,M,G){if(1&b&&o.wni(G,uy,5),2&b){let we;o.mGM(we=o.lsd())&&(M._customIcon=we.first)}},viewQuery:function(b,M){if(1&b&&o.GBs(Km,5),2&b){let G;o.mGM(G=o.lsd())&&(M._button=G.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(b,M){1&b&&o.bIt("click",function(we){return M._open(we)}),2&b&&(o.BMQ("tabindex",null)("data-mat-calendar",M.datepicker?M.datepicker.id:null),o.AVh("mat-datepicker-toggle-active",M.datepicker&&M.datepicker.opened)("mat-accent",M.datepicker&&"accent"===M.datepicker.color)("mat-warn",M.datepicker&&"warn"===M.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.OA$],ngContentSelectors:mu,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(b,M){1&b&&(o.NAR(_f),o.j41(0,"button",0,1),o.DNE(2,Ym,2,0,"svg",2),o.SdG(3),o.k0s()),2&b&&(o.Y8G("disabled",M.disabled)("disableRipple",M.disableRipple),o.BMQ("aria-haspopup",M.datepicker?"dialog":null)("aria-label",M.ariaLabel||M._intl.openCalendarLabel)("tabindex",M.disabled?-1:M.tabIndex),o.R7$(2),o.Y8G("ngIf",!M._customIcon))},dependencies:[g.bT,Lm],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}return E})(),J4=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[G4,ly],imports:[g.MD,G3,s6,_l,N7,Pn,Z0]})}return E})();const Af=function(){return["labelPosition"]},N6=function(E,O){return{key:"mat-checkbox",props:E,omit:O}},gu=function(E){return[E]};function c8(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-checkbox",2),o.bIt("change",function(M){o.eBV(h);const G=o.XpG(2);return o.Njj(G.toggle(M))}),o.EFF(2),o.k0s(),o.bVm()}if(2&E){const h=o.XpG(2);let b;o.R7$(1),o.Y8G("labelPosition",null!==(b=h.data.options.labelPosition)&&void 0!==b?b:"after")("propsBinding",o.eq3(7,gu,o.l_i(4,N6,h.data.props,o.lJ4(3,Af)))),o.R7$(1),o.JRh(null==h.data.options.data||null==h.data.options.data[0]?null:h.data.options.data[0].label)}}const l8=function(){return["labelPosition","checked","disabled","value"]};function Ig(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-checkbox",4),o.bIt("change",function(M){const we=o.eBV(h).index,en=o.XpG(3);return o.Njj(en.onCheckboxChange(M,we))}),o.EFF(2),o.k0s(),o.bVm()}if(2&E){const h=O.$implicit,b=o.XpG(3);let M;o.R7$(1),o.Y8G("labelPosition",null!==(M=b.data.options.labelPosition)&&void 0!==M?M:"after")("checked",b.isChecked(h.value))("disabled",b.control.disabled)("propsBinding",o.eq3(9,gu,o.l_i(6,N6,b.data.props,o.lJ4(5,l8)))),o.R7$(1),o.JRh(h.label)}}function P6(E,O){if(1&E&&(o.qex(0),o.DNE(1,Ig,3,11,"ng-container",3),o.bVm()),2&E){const h=o.XpG(2);o.R7$(1),o.Y8G("ngForOf",h.data.options.data)}}function u8(E,O){if(1&E&&(o.qex(0),o.j41(1,"div",1),o.DNE(2,c8,3,9,"ng-container",0),o.DNE(3,P6,2,1,"ng-container",0),o.k0s(),o.bVm()),2&E){const h=o.XpG();let b;o.R7$(1),o.Aen(h.groupButtonsStyles),o.Y8G("ngClass",o.eq3(5,gu,null!==(b=null==h.data.options?null:h.data.options.containerClass)&&void 0!==b?b:"")),o.R7$(1),o.Y8G("ngIf",h.data.options&&1===(null==h.data.options.data?null:h.data.options.data.length)),o.R7$(1),o.Y8G("ngIf",h.data.options&&h.data.options.data&&h.data.options.data.length>1)}}function If(E,O){if(1&E&&(o.qex(0),o.j41(1,"mat-option",3),o.EFF(2),o.k0s(),o.bVm()),2&E){const h=O.$implicit,b=O.index;o.R7$(1),o.Y8G("value",b),o.R7$(1),o.JRh(h.label)}}const j6=function(E){return{key:"mat-select",props:E}};function Og(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field")(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"mat-select",1),o.bIt("openedChange",function(){o.eBV(h);const M=o.XpG();return o.Njj(M.onTouched())})("selectionChange",function(){o.eBV(h);const M=o.XpG();return o.Njj(M.updateControl())}),o.DNE(5,If,3,2,"ng-container",2),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();o.R7$(3),o.JRh(h.data.label),o.R7$(1),o.Y8G("formControl",h.control)("propsBinding",o.eq3(6,gu,o.eq3(4,j6,h.data.props))),o.R7$(1),o.Y8G("ngForOf",null==h.data.options?null:h.data.options.data)}}const Of=function(){return["type"]},Hf=function(E,O){return{key:"mat-input",props:E,omit:O}},Hg=function(E){return{key:"imask",props:E}},F6=function(E,O){return[E,O]};function d8(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field")(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"input",1),o.bIt("complete",function(){o.eBV(h);const M=o.XpG();return o.Njj(M.onChange(M.control.value))}),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();o.R7$(3),o.JRh(h.data.label),o.R7$(1),o.Y8G("formControl",h.control)("imask",h.data.inputMask)("propsBinding",o.l_i(10,F6,o.l_i(5,Hf,h.data.props,o.lJ4(4,Of)),o.eq3(8,Hg,h.data.props)))}}function Lg(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field")(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"input",1),o.bIt("input",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G.onInput(M))}),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();let b;o.R7$(3),o.JRh(h.data.label),o.R7$(1),o.Y8G("formControl",h.control)("propsBinding",o.eq3(8,gu,o.l_i(5,Hf,h.data.props,o.lJ4(4,Of)))),o.BMQ("type",null!==(b=h.data.type)&&void 0!==b?b:"text")}}function Z4(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-radio-button",4),o.bIt("change",function(){const G=o.eBV(h).index,we=o.XpG(2);return o.Njj(we.onChange(G))}),o.EFF(2),o.k0s(),o.bVm()}if(2&E){const h=O.$implicit,b=O.index,M=o.XpG(2);o.R7$(1),o.Y8G("value",b)("checked",M.selectedIndex===b),o.R7$(1),o.JRh(h.label)}}const f8=function(E,O){return{key:"mat-radio-group",props:E,omit:O}},B6=function(E){return{"flex-direction":E}};function P2(E,O){if(1&E&&(o.qex(0),o.j41(1,"mat-radio-group",1)(2,"div",2),o.DNE(3,Z4,3,3,"ng-container",3),o.k0s()(),o.bVm()),2&E){const h=o.XpG();let b,M;o.R7$(1),o.Y8G("labelPosition",null!==(b=null==h.data.options?null:h.data.options.labelPosition)&&void 0!==b?b:"after")("formControl",h.control)("propsBinding",o.eq3(12,gu,o.l_i(9,f8,h.data.props,o.lJ4(8,Af)))),o.R7$(1),o.Aen(null==h.data.options?null:h.data.options.containerStyles),o.Y8G("ngClass",o.eq3(14,gu,null!==(M=null==h.data.options?null:h.data.options.containerClass)&&void 0!==M?M:""))("ngStyle",o.eq3(16,B6,null==h.data.options?null:h.data.options.layout)),o.R7$(1),o.Y8G("ngForOf",null==h.data.options?null:h.data.options.data)}}const h8=function(E){return{key:"mat-slider",props:E}};function my(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-slider",1)(2,"input",2),o.bIt("input",function(){o.eBV(h);const M=o.XpG();return o.Njj(M.onChange(M.control.value))}),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();o.R7$(1),o.Y8G("propsBinding",o.eq3(4,gu,o.eq3(2,h8,h.data.props))),o.R7$(1),o.Y8G("formControl",h.control)}}const $6=function(E,O){return{key:"mat-slide-toggle",props:E,omit:O}};function yd(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-slide-toggle",1),o.bIt("change",function(){o.eBV(h);const M=o.XpG();return o.Njj(M.onChange(M.control.value))}),o.EFF(2),o.k0s(),o.bVm()}if(2&E){const h=o.XpG();let b;o.R7$(1),o.Y8G("labelPosition",null!==(b=null==h.data.options?null:h.data.options.labelPosition)&&void 0!==b?b:"after")("formControl",h.control)("propsBinding",o.eq3(8,gu,o.l_i(5,$6,h.data.props,o.lJ4(4,Af)))),o.R7$(1),o.JRh(null==h.data.options||null==h.data.options.data||null==h.data.options.data[0]?null:h.data.options.data[0].label)}}const r0=function(E){return{key:"mat-input",props:E}},zg=function(E){return{key:"cdk-textarea-autosize",props:E}};function Rg(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field",1)(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"textarea",2),o.bIt("input",function(M){o.eBV(h);const G=o.XpG();return o.Njj(G.onInput(M))}),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();o.R7$(3),o.JRh(h.data.label),o.R7$(1),o.Y8G("formControl",h.control)("propsBinding",o.l_i(7,F6,o.eq3(3,r0,h.data.props),o.eq3(5,zg,h.data.props)))}}const Ng=function(){return["matDatepicker"]};function U6(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field")(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"input",1),o.bIt("dateInput",function(){o.eBV(h);const M=o.XpG();return o.Njj(M.onChange(M.control.value))}),o.k0s(),o.nrm(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),o.k0s(),o.bVm()}if(2&E){const h=o.sdS(7),b=o.XpG();o.R7$(3),o.JRh(b.data.label),o.R7$(1),o.Y8G("matDatepicker",h)("formControl",b.control)("propsBinding",o.eq3(9,gu,o.l_i(6,Hf,b.data.props,o.lJ4(5,Ng)))),o.R7$(1),o.Y8G("for",h)}}let vu=(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.Yp([])}writeValue(h){this.control.clear(),Array.isArray(h)&&h.forEach(b=>this._addItem(b))}registerOnChange(h){this._onChange=h}toggle(h){this._onChange(h.checked)}onCheckboxChange(h,b){const M=h.checked,G=this.data?.options?.data?.map(we=>we.value).filter((we,en)=>en===b?M:this.isChecked(we));this.control.clear(),G?.forEach(we=>this._addItem(we)),this._onChange(this.control.value)}isChecked(h){return this.control.value.some(b=>JSON.stringify(b)===JSON.stringify(h))}get groupButtonsStyles(){return`\n flex-direction: ${this.data?.options?.layout??"row"};\n align-items: flex-start;\n ${this.data?.options?.containerStyles??""}\n `.replace(/\s{2,}/g,"")}_addItem(h){const b=new V.MJ(h);this.control.push(b)}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-checkbox"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-checkbox",token:Ne}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass"],[3,"labelPosition","propsBinding","change"],[4,"ngFor","ngForOf"],[3,"labelPosition","checked","disabled","propsBinding","change"]],template:function(b,M){1&b&&o.DNE(0,u8,4,7,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.YU,g.Sq,g.bT,V.X1,Ci,Ne,Zd,Oo.XO],encapsulation:2})}return E})(),u4=(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ(-1),this.onTouched=()=>{}}writeValue(h){const b=this.data?.options?.data?.map(M=>M.value).findIndex(M=>JSON.stringify(M)===JSON.stringify(h))??-1;this.control.setValue(b)}registerOnChange(h){this._onChange=h}registerOnTouched(h){this.onTouched=h}updateControl(){const h=this.control.value??-1;if(h>-1){const b=this.data?.options?.data?.map(M=>M.value)?.[h];this._onChange(b)}}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-select"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-select",token:$3}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"formControl","propsBinding","openedChange","selectionChange"],[4,"ngFor","ngForOf"],[3,"value"]],template:function(b,M){1&b&&o.DNE(0,Og,6,8,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.Sq,g.bT,V.X1,V.BC,V.l_,ey,Da,zu,$3,au,Oo.XO],encapsulation:2})}return E})(),e3=(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-input-mask"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-input",token:a2},{key:"imask",token:U3.Zq}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["matInput","","type","text","imaskValuePatch","",3,"formControl","imask","propsBinding","complete"]],template:function(b,M){1&b&&o.DNE(0,d8,5,13,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,Zd,a2,Da,zu,U3.Zq,Oo.wc,Oo.XO],encapsulation:2})}return E})(),G6=(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.hs("")}registerOnChange(h){this.onChange=h}onInput(h){const b=h.target.value;this.control.setValue(b),this.onChange(b)}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-input"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-input",token:a2}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["matInput","",3,"formControl","propsBinding","input"]],template:function(b,M){1&b&&o.DNE(0,Lg,5,10,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,Zd,a2,Da,zu,G3,Oo.XO],encapsulation:2})}return E})();const W6={checkbox:vu,date:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ(new Date)}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-date"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-input",token:Z3}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["matInput","",3,"matDatepicker","formControl","propsBinding","dateInput"],["matSuffix","",3,"for"],["picker",""]],template:function(b,M){1&b&&o.DNE(0,U6,8,11,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,J4,i8,Z3,s8,ec,Da,zu,pd,ot,Zd,a2,Oo.XO],encapsulation:2})}return E})(),password:G6,number:G6,email:G6,radio:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.hs(""),this.selectedIndex=-1}writeValue(h){this.selectedIndex=this.data?.options?.data?.map(b=>b.value).findIndex(b=>JSON.stringify(b)===JSON.stringify(h))??-1}registerOnChange(h){this._onChange=h}onChange(h){const b=this.data?.options?.data?.[h].value;this._onChange(b)}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-radio"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-radio-group",token:B4}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"labelPosition","formControl","propsBinding"],[1,"group-buttons",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf"],[3,"value","checked","change"]],template:function(b,M){1&b&&o.DNE(0,P2,4,18,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.YU,g.Sq,g.bT,g.B3,V.X1,V.BC,V.l_,_6,B4,Nm,Zd,Oo.XO],encapsulation:2})}return E})(),range:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ(0)}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-range"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-slider",token:mg}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"propsBinding"],["matSliderThumb","",3,"formControl","input"]],template:function(b,M){1&b&&o.DNE(0,my,3,6,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,vg,mg,gf,Zd,Oo.XO],encapsulation:2})}return E})(),select:u4,switch:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ(!1)}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-switch"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-slide-toggle",token:M6}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"labelPosition","formControl","propsBinding","change"]],template:function(b,M){1&b&&o.DNE(0,yd,3,10,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.bT,V.X1,V.BC,V.l_,S6,M6,Zd,Oo.XO],encapsulation:2})}return E})(),text:G6,textMask:e3,textarea:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(h){this.onChange=h}onInput(h){const b=h.target.value;this.control.setValue(b),this.onChange(b)}static#e=this.\u0275fac=function(){let h;return function(M){return(h||(h=o.xGo(E)))(M||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-textarea"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"cdk-textarea-autosize",token:Rc},{key:"mat-input",token:a2}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"example-full-width"],["matInput","","cdkTextareaAutosize","",3,"formControl","propsBinding","input"]],template:function(b,M){1&b&&o.DNE(0,Rg,5,10,"ng-container",0),2&b&&o.Y8G("ngIf",M.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,Zd,a2,Da,zu,Rc,Oo.XO],encapsulation:2})}return E})()}},3269:(vn,J,F)=>{"use strict";F.d(J,{j:()=>pd});var g=F(6610),o=F(2978),V=F(8832),oe=F(2709),De=F(6104);class pe{static equals(Le,p,w){return w?this.resolveFieldData(Le,w)===this.resolveFieldData(p,w):this.equalsByValue(Le,p)}static equalsByValue(Le,p){if(Le===p)return!0;if(Le&&p&&"object"==typeof Le&&"object"==typeof p){var Z,Qe,rn,w=Array.isArray(Le),T=Array.isArray(p);if(w&&T){if((Qe=Le.length)!=p.length)return!1;for(Z=Qe;0!=Z--;)if(!this.equalsByValue(Le[Z],p[Z]))return!1;return!0}if(w!=T)return!1;var ri=this.isDate(Le),Si=this.isDate(p);if(ri!=Si)return!1;if(ri&&Si)return Le.getTime()==p.getTime();var Zi=Le instanceof RegExp,tr=p instanceof RegExp;if(Zi!=tr)return!1;if(Zi&&tr)return Le.toString()==p.toString();var fs=Object.keys(Le);if((Qe=fs.length)!==Object.keys(p).length)return!1;for(Z=Qe;0!=Z--;)if(!Object.prototype.hasOwnProperty.call(p,fs[Z]))return!1;for(Z=Qe;0!=Z--;)if(!this.equalsByValue(Le[rn=fs[Z]],p[rn]))return!1;return!0}return Le!=Le&&p!=p}static resolveFieldData(Le,p){if(Le&&p){if(this.isFunction(p))return p(Le);if(-1==p.indexOf("."))return Le[p];{let w=p.split("."),T=Le;for(let Z=0,Qe=w.length;Z=Le.length&&(w%=Le.length,p%=Le.length),Le.splice(w,0,Le.splice(p,1)[0]))}static insertIntoOrderedArray(Le,p,w,T){if(w.length>0){let Z=!1;for(let Qe=0;Qep){w.splice(Qe,0,Le),Z=!0;break}Z||w.push(Le)}else w.push(Le)}static findIndexInList(Le,p){let w=-1;if(p)for(let T=0;T-1&&(Le=Le.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),Le}static isDate(Le){return"[object Date]"===Object.prototype.toString.call(Le)}static isEmpty(Le){return null==Le||""===Le||Array.isArray(Le)&&0===Le.length||!this.isDate(Le)&&"object"==typeof Le&&0===Object.keys(Le).length}static isNotEmpty(Le){return!this.isEmpty(Le)}static compare(Le,p,w,T=1){let Z=-1;const Qe=this.isEmpty(Le),rn=this.isEmpty(p);return Z=Qe&&rn?0:Qe?T:rn?-T:"string"==typeof Le&&"string"==typeof p?Le.localeCompare(p,w,{numeric:!0}):Lep?1:0,Z}static sort(Le,p,w=1,T,Z=1){return(1===Z?w:Z)*pe.compare(Le,p,T,w)}static merge(Le,p){if(null!=Le||null!=p)return null!=Le&&"object"!=typeof Le||null!=p&&"object"!=typeof p?null!=Le&&"string"!=typeof Le||null!=p&&"string"!=typeof p?p||Le:[Le||"",p||""].join(" "):{...Le||{},...p||{}}}static isPrintableCharacter(Le=""){return this.isNotEmpty(Le)&&1===Le.length&&Le.match(/\S| /)}static getItemValue(Le,...p){return this.isFunction(Le)?Le(...p):Le}static findLastIndex(Le,p){let w=-1;if(this.isNotEmpty(Le))try{w=Le.findLastIndex(p)}catch{w=Le.lastIndexOf([...Le].reverse().find(p))}return w}static findLast(Le,p){let w;if(this.isNotEmpty(Le))try{w=Le.findLast(p)}catch{w=[...Le].reverse().find(p)}return w}}var Ee=0;function be(P="pn_id_"){return`${P}${++Ee}`}var Te=function ge(){let P=[];const T=Z=>Z&&parseInt(Z.style.zIndex,10)||0;return{get:T,set:(Z,Qe,rn)=>{Qe&&(Qe.style.zIndex=String(((Z,Qe)=>{let rn=P.length>0?P[P.length-1]:{key:Z,value:Qe},ri=rn.value+(rn.key===Z?0:Qe)+2;return P.push({key:Z,value:ri}),ri})(Z,rn)))},clear:Z=>{Z&&((Z=>{P=P.filter(Qe=>Qe.value!==Z)})(T(Z)),Z.style.zIndex="")},getCurrent:()=>P.length>0?P[P.length-1].value:0}}();let tt=(()=>class P{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),Fe=(()=>{class P{filter(p,w,T,Z,Qe){let rn=[];if(p)for(let ri of p)for(let Si of w){let Zi=pe.resolveFieldData(ri,Si);if(this.filters[Z](Zi,T,Qe)){rn.push(ri);break}}return rn}filters={startsWith:(p,w,T)=>{if(null==w||""===w.trim())return!0;if(null==p)return!1;let Z=pe.removeAccents(w.toString()).toLocaleLowerCase(T);return pe.removeAccents(p.toString()).toLocaleLowerCase(T).slice(0,Z.length)===Z},contains:(p,w,T)=>{if(null==w||"string"==typeof w&&""===w.trim())return!0;if(null==p)return!1;let Z=pe.removeAccents(w.toString()).toLocaleLowerCase(T);return-1!==pe.removeAccents(p.toString()).toLocaleLowerCase(T).indexOf(Z)},notContains:(p,w,T)=>{if(null==w||"string"==typeof w&&""===w.trim())return!0;if(null==p)return!1;let Z=pe.removeAccents(w.toString()).toLocaleLowerCase(T);return-1===pe.removeAccents(p.toString()).toLocaleLowerCase(T).indexOf(Z)},endsWith:(p,w,T)=>{if(null==w||""===w.trim())return!0;if(null==p)return!1;let Z=pe.removeAccents(w.toString()).toLocaleLowerCase(T),Qe=pe.removeAccents(p.toString()).toLocaleLowerCase(T);return-1!==Qe.indexOf(Z,Qe.length-Z.length)},equals:(p,w,T)=>null==w||"string"==typeof w&&""===w.trim()||null!=p&&(p.getTime&&w.getTime?p.getTime()===w.getTime():pe.removeAccents(p.toString()).toLocaleLowerCase(T)==pe.removeAccents(w.toString()).toLocaleLowerCase(T)),notEquals:(p,w,T)=>!(null==w||"string"==typeof w&&""===w.trim()||null!=p&&(p.getTime&&w.getTime?p.getTime()===w.getTime():pe.removeAccents(p.toString()).toLocaleLowerCase(T)==pe.removeAccents(w.toString()).toLocaleLowerCase(T))),in:(p,w)=>{if(null==w||0===w.length)return!0;for(let T=0;Tnull==w||null==w[0]||null==w[1]||null!=p&&(p.getTime?w[0].getTime()<=p.getTime()&&p.getTime()<=w[1].getTime():w[0]<=p&&p<=w[1]),lt:(p,w,T)=>null==w||null!=p&&(p.getTime&&w.getTime?p.getTime()null==w||null!=p&&(p.getTime&&w.getTime?p.getTime()<=w.getTime():p<=w),gt:(p,w,T)=>null==w||null!=p&&(p.getTime&&w.getTime?p.getTime()>w.getTime():p>w),gte:(p,w,T)=>null==w||null!=p&&(p.getTime&&w.getTime?p.getTime()>=w.getTime():p>=w),is:(p,w,T)=>this.filters.equals(p,w,T),isNot:(p,w,T)=>this.filters.notEquals(p,w,T),before:(p,w,T)=>this.filters.lt(p,w,T),after:(p,w,T)=>this.filters.gt(p,w,T),dateIs:(p,w)=>null==w||null!=p&&p.toDateString()===w.toDateString(),dateIsNot:(p,w)=>null==w||null!=p&&p.toDateString()!==w.toDateString(),dateBefore:(p,w)=>null==w||null!=p&&p.getTime()null==w||null!=p&&p.getTime()>w.getTime()};register(p,w){this.filters[p]=w}static \u0275fac=function(w){return new(w||P)};static \u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),at=(()=>{class P{clickSource=new De.B;clickObservable=this.clickSource.asObservable();add(p){p&&this.clickSource.next(p)}static \u0275fac=function(w){return new(w||P)};static \u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),he=(()=>{class P{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[tt.STARTS_WITH,tt.CONTAINS,tt.NOT_CONTAINS,tt.ENDS_WITH,tt.EQUALS,tt.NOT_EQUALS],numeric:[tt.EQUALS,tt.NOT_EQUALS,tt.LESS_THAN,tt.LESS_THAN_OR_EQUAL_TO,tt.GREATER_THAN,tt.GREATER_THAN_OR_EQUAL_TO],date:[tt.DATE_IS,tt.DATE_IS_NOT,tt.DATE_BEFORE,tt.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new De.B;translationObserver=this.translationSource.asObservable();getTranslation(p){return this.translation[p]}setTranslation(p){this.translation={...this.translation,...p},this.translationSource.next(this.translation)}static \u0275fac=function(w){return new(w||P)};static \u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),it=(()=>{class P{template;type;name;constructor(p){this.template=p}getType(){return this.name}static \u0275fac=function(w){return new(w||P)(o.rXU(o.C4Q))};static \u0275dir=o.FsC({type:P,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return P})(),dt=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})(),jt=(()=>class P{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})();const wn=["*"];let Wn=(()=>{class P{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const p=pe.isEmpty(this.label);this.role=p?void 0:"img",this.ariaLabel=p?void 0:this.label,this.ariaHidden=p}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(w){return new(w||P)};static \u0275cmp=o.VBU({type:P,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[o.aNF],ngContentSelectors:wn,decls:1,vars:0,template:function(w,T){1&w&&(o.NAR(),o.SdG(0))},encapsulation:2,changeDetection:0})}return P})(),di=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["CheckIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})();const ai=["input"];function Li(P,Le){if(1&P&&o.nrm(0,"span",10),2&P){const p=o.XpG(3);o.Y8G("ngClass",p.checkboxIcon),o.BMQ("data-pc-section","icon")}}function $i(P,Le){1&P&&o.nrm(0,"CheckIcon",11),2&P&&(o.Y8G("styleClass","p-checkbox-icon"),o.BMQ("data-pc-section","icon"))}function Hr(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Li,1,2,"span",8),o.DNE(2,$i,1,2,"CheckIcon",9),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("ngIf",p.checkboxIcon),o.R7$(1),o.Y8G("ngIf",!p.checkboxIcon)}}function ui(P,Le){}function dn(P,Le){1&P&&o.DNE(0,ui,0,0,"ng-template")}function nt(P,Le){if(1&P&&(o.j41(0,"span",12),o.DNE(1,dn,1,0,null,13),o.k0s()),2&P){const p=o.XpG(2);o.BMQ("data-pc-section","icon"),o.R7$(1),o.Y8G("ngTemplateOutlet",p.checkboxIconTemplate)}}function ht(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Hr,3,2,"ng-container",5),o.DNE(2,nt,2,2,"span",7),o.bVm()),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngIf",!p.checkboxIconTemplate),o.R7$(1),o.Y8G("ngIf",p.checkboxIconTemplate)}}const Je=function(P,Le,p){return{"p-checkbox-label":!0,"p-checkbox-label-active":P,"p-disabled":Le,"p-checkbox-label-focus":p}};function Ae(P,Le){if(1&P){const p=o.RV6();o.j41(0,"label",14),o.bIt("click",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onClick(T))}),o.EFF(1),o.k0s()}if(2&P){const p=o.XpG();o.HbH(p.labelStyleClass),o.Y8G("ngClass",o.sMw(6,Je,p.checked(),p.disabled,p.focused)),o.BMQ("for",p.inputId)("data-pc-section","label"),o.R7$(1),o.SpI(" ",p.label,"")}}const Ue=function(P,Le,p){return{"p-checkbox p-component":!0,"p-checkbox-checked":P,"p-checkbox-disabled":Le,"p-checkbox-focused":p}},Ze=function(P,Le,p){return{"p-highlight":P,"p-disabled":Le,"p-focus":p}},H={provide:V.kq,useExisting:(0,o.Rfq)(()=>te),multi:!0};let te=(()=>{class P{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new o.bkB;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(p){this.cd=p}ngAfterContentInit(){this.templates.forEach(p=>{"icon"===p.getType()&&(this.checkboxIconTemplate=p.template)})}onClick(p){if(!this.disabled&&!this.readonly){let w;this.inputViewChild.nativeElement.focus(),this.binary?(w=this.checked()?this.falseValue:this.trueValue,this.model=w,this.onModelChange(w)):(w=this.checked()?this.model.filter(T=>!pe.equals(T,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(w),this.model=w,this.formControl&&this.formControl.setValue(w)),this.onChange.emit({checked:w,originalEvent:p})}}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(p){this.model=p,this.cd.markForCheck()}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:pe.contains(this.value,this.model)}static \u0275fac=function(w){return new(w||P)(o.rXU(o.gRc))};static \u0275cmp=o.VBU({type:P,selectors:[["p-checkbox"]],contentQueries:function(w,T,Z){if(1&w&&o.wni(Z,it,4),2&w){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(w,T){if(1&w&&o.GBs(ai,5),2&w){let Z;o.mGM(Z=o.lsd())&&(T.inputViewChild=Z.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[o.Jv_([H])],decls:7,vars:35,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"value","checked","disabled","readonly","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(w,T){1&w&&(o.j41(0,"div",0),o.bIt("click",function(Qe){return T.onClick(Qe)}),o.j41(1,"div",1)(2,"input",2,3),o.bIt("focus",function(){return T.onFocus()})("blur",function(){return T.onBlur()}),o.k0s()(),o.j41(4,"div",4),o.DNE(5,ht,3,2,"ng-container",5),o.k0s()(),o.DNE(6,Ae,2,10,"label",6)),2&w&&(o.HbH(T.styleClass),o.Y8G("ngStyle",T.style)("ngClass",o.sMw(27,Ue,T.checked(),T.disabled,T.focused)),o.BMQ("data-pc-name","checkbox")("data-pc-section","root"),o.R7$(1),o.BMQ("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),o.R7$(1),o.Y8G("value",T.value)("checked",T.checked())("disabled",T.disabled)("readonly",T.readonly),o.BMQ("id",T.inputId)("name",T.name)("tabindex",T.tabindex)("required",T.required)("aria-labelledby",T.ariaLabelledBy)("aria-label",T.ariaLabel)("aria-checked",T.checked())("data-pc-section","hiddenInput"),o.R7$(2),o.Y8G("ngClass",o.sMw(31,Ze,T.checked(),T.disabled,T.focused)),o.BMQ("data-p-highlight",T.checked())("data-p-disabled",T.disabled)("data-p-focused",T.focused)("data-pc-section","input"),o.R7$(1),o.Y8G("ngIf",T.checked()),o.R7$(1),o.Y8G("ngIf",T.label))},dependencies:function(){return[g.YU,g.bT,g.T3,g.B3,di]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return P})(),xe=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,di,dt]})}return P})(),Ce=(()=>{class P{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(p,w){p&&w&&(p.classList?p.classList.add(w):p.className+=" "+w)}static addMultipleClasses(p,w){if(p&&w)if(p.classList){let T=w.trim().split(" ");for(let Z=0;ZT.split(" ").forEach(Z=>this.removeClass(p,Z)))}static hasClass(p,w){return!(!p||!w)&&(p.classList?p.classList.contains(w):new RegExp("(^| )"+w+"( |$)","gi").test(p.className))}static siblings(p){return Array.prototype.filter.call(p.parentNode.children,function(w){return w!==p})}static find(p,w){return Array.from(p.querySelectorAll(w))}static findSingle(p,w){return this.isElement(p)?p.querySelector(w):null}static index(p){let w=p.parentNode.childNodes,T=0;for(var Z=0;Z{if(Do)return"relative"===getComputedStyle(Do).getPropertyValue("position")?Do:T(Do.parentElement)},Z=p.offsetParent?{width:p.offsetWidth,height:p.offsetHeight}:this.getHiddenElementDimensions(p),Qe=w.offsetHeight,rn=w.getBoundingClientRect(),ri=this.getWindowScrollTop(),Si=this.getWindowScrollLeft(),Zi=this.getViewport(),fs=T(p)?.getBoundingClientRect()||{top:-1*ri,left:-1*Si};let kr,Eo;rn.top+Qe+Z.height>Zi.height?(kr=rn.top-fs.top-Z.height,p.style.transformOrigin="bottom",rn.top+kr<0&&(kr=-1*rn.top)):(kr=Qe+rn.top-fs.top,p.style.transformOrigin="top");const fo=rn.left+Z.width-Zi.width;Eo=Z.width>Zi.width?-1*(rn.left-fs.left):fo>0?rn.left-fs.left-fo:rn.left-fs.left,p.style.top=kr+"px",p.style.left=Eo+"px"}static absolutePosition(p,w){const T=p.offsetParent?{width:p.offsetWidth,height:p.offsetHeight}:this.getHiddenElementDimensions(p),Z=T.height,Qe=T.width,rn=w.offsetHeight,ri=w.offsetWidth,Si=w.getBoundingClientRect(),Zi=this.getWindowScrollTop(),tr=this.getWindowScrollLeft(),fs=this.getViewport();let kr,Eo;Si.top+rn+Z>fs.height?(kr=Si.top+Zi-Z,p.style.transformOrigin="bottom",kr<0&&(kr=Zi)):(kr=rn+Si.top+Zi,p.style.transformOrigin="top"),Eo=Si.left+Qe>fs.width?Math.max(0,Si.left+tr+ri-Qe):Si.left+tr,p.style.top=kr+"px",p.style.left=Eo+"px"}static getParents(p,w=[]){return null===p.parentNode?w:this.getParents(p.parentNode,w.concat([p.parentNode]))}static getScrollableParents(p){let w=[];if(p){let T=this.getParents(p);const Z=/(auto|scroll)/,Qe=rn=>{let ri=window.getComputedStyle(rn,null);return Z.test(ri.getPropertyValue("overflow"))||Z.test(ri.getPropertyValue("overflowX"))||Z.test(ri.getPropertyValue("overflowY"))};for(let rn of T){let ri=1===rn.nodeType&&rn.dataset.scrollselectors;if(ri){let Si=ri.split(",");for(let Zi of Si){let tr=this.findSingle(rn,Zi);tr&&Qe(tr)&&w.push(tr)}}9!==rn.nodeType&&Qe(rn)&&w.push(rn)}}return w}static getHiddenElementOuterHeight(p){p.style.visibility="hidden",p.style.display="block";let w=p.offsetHeight;return p.style.display="none",p.style.visibility="visible",w}static getHiddenElementOuterWidth(p){p.style.visibility="hidden",p.style.display="block";let w=p.offsetWidth;return p.style.display="none",p.style.visibility="visible",w}static getHiddenElementDimensions(p){let w={};return p.style.visibility="hidden",p.style.display="block",w.width=p.offsetWidth,w.height=p.offsetHeight,p.style.display="none",p.style.visibility="visible",w}static scrollInView(p,w){let T=getComputedStyle(p).getPropertyValue("borderTopWidth"),Z=T?parseFloat(T):0,Qe=getComputedStyle(p).getPropertyValue("paddingTop"),rn=Qe?parseFloat(Qe):0,ri=p.getBoundingClientRect(),Zi=w.getBoundingClientRect().top+document.body.scrollTop-(ri.top+document.body.scrollTop)-Z-rn,tr=p.scrollTop,fs=p.clientHeight,kr=this.getOuterHeight(w);Zi<0?p.scrollTop=tr+Zi:Zi+kr>fs&&(p.scrollTop=tr+Zi-fs+kr)}static fadeIn(p,w){p.style.opacity=0;let T=+new Date,Z=0,Qe=function(){Z=+p.style.opacity.replace(",",".")+((new Date).getTime()-T)/w,p.style.opacity=Z,T=+new Date,+Z<1&&(window.requestAnimationFrame&&requestAnimationFrame(Qe)||setTimeout(Qe,16))};Qe()}static fadeOut(p,w){var T=1,rn=50/w;let ri=setInterval(()=>{(T-=rn)<=0&&(T=0,clearInterval(ri)),p.style.opacity=T},50)}static getWindowScrollTop(){let p=document.documentElement;return(window.pageYOffset||p.scrollTop)-(p.clientTop||0)}static getWindowScrollLeft(){let p=document.documentElement;return(window.pageXOffset||p.scrollLeft)-(p.clientLeft||0)}static matches(p,w){var T=Element.prototype;return(T.matches||T.webkitMatchesSelector||T.mozMatchesSelector||T.msMatchesSelector||function(Qe){return-1!==[].indexOf.call(document.querySelectorAll(Qe),this)}).call(p,w)}static getOuterWidth(p,w){let T=p.offsetWidth;if(w){let Z=getComputedStyle(p);T+=parseFloat(Z.marginLeft)+parseFloat(Z.marginRight)}return T}static getHorizontalPadding(p){let w=getComputedStyle(p);return parseFloat(w.paddingLeft)+parseFloat(w.paddingRight)}static getHorizontalMargin(p){let w=getComputedStyle(p);return parseFloat(w.marginLeft)+parseFloat(w.marginRight)}static innerWidth(p){let w=p.offsetWidth,T=getComputedStyle(p);return w+=parseFloat(T.paddingLeft)+parseFloat(T.paddingRight),w}static width(p){let w=p.offsetWidth,T=getComputedStyle(p);return w-=parseFloat(T.paddingLeft)+parseFloat(T.paddingRight),w}static getInnerHeight(p){let w=p.offsetHeight,T=getComputedStyle(p);return w+=parseFloat(T.paddingTop)+parseFloat(T.paddingBottom),w}static getOuterHeight(p,w){let T=p.offsetHeight;if(w){let Z=getComputedStyle(p);T+=parseFloat(Z.marginTop)+parseFloat(Z.marginBottom)}return T}static getHeight(p){let w=p.offsetHeight,T=getComputedStyle(p);return w-=parseFloat(T.paddingTop)+parseFloat(T.paddingBottom)+parseFloat(T.borderTopWidth)+parseFloat(T.borderBottomWidth),w}static getWidth(p){let w=p.offsetWidth,T=getComputedStyle(p);return w-=parseFloat(T.paddingLeft)+parseFloat(T.paddingRight)+parseFloat(T.borderLeftWidth)+parseFloat(T.borderRightWidth),w}static getViewport(){let p=window,w=document,T=w.documentElement,Z=w.getElementsByTagName("body")[0];return{width:p.innerWidth||T.clientWidth||Z.clientWidth,height:p.innerHeight||T.clientHeight||Z.clientHeight}}static getOffset(p){var w=p.getBoundingClientRect();return{top:w.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:w.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(p,w){let T=p.parentNode;if(!T)throw"Can't replace element";return T.replaceChild(w,p)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var p=window.navigator.userAgent;return p.indexOf("MSIE ")>0||(p.indexOf("Trident/")>0?(p.indexOf("rv:"),!0):p.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(p,w){if(this.isElement(w))w.appendChild(p);else{if(!(w&&w.el&&w.el.nativeElement))throw"Cannot append "+w+" to "+p;w.el.nativeElement.appendChild(p)}}static removeChild(p,w){if(this.isElement(w))w.removeChild(p);else{if(!w.el||!w.el.nativeElement)throw"Cannot remove "+p+" from "+w;w.el.nativeElement.removeChild(p)}}static removeElement(p){"remove"in Element.prototype?p.remove():p.parentNode.removeChild(p)}static isElement(p){return"object"==typeof HTMLElement?p instanceof HTMLElement:p&&"object"==typeof p&&null!==p&&1===p.nodeType&&"string"==typeof p.nodeName}static calculateScrollbarWidth(p){if(p){let w=getComputedStyle(p);return p.offsetWidth-p.clientWidth-parseFloat(w.borderLeftWidth)-parseFloat(w.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let w=document.createElement("div");w.className="p-scrollbar-measure",document.body.appendChild(w);let T=w.offsetWidth-w.clientWidth;return document.body.removeChild(w),this.calculatedScrollbarWidth=T,T}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let p=document.createElement("div");p.className="p-scrollbar-measure",document.body.appendChild(p);let w=p.offsetHeight-p.clientHeight;return document.body.removeChild(p),this.calculatedScrollbarWidth=w,w}static invokeElementMethod(p,w,T){p[w].apply(p,T)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let p=this.resolveUserAgent();this.browser={},p.browser&&(this.browser[p.browser]=!0,this.browser.version=p.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let p=navigator.userAgent.toLowerCase(),w=/(chrome)[ \/]([\w.]+)/.exec(p)||/(webkit)[ \/]([\w.]+)/.exec(p)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(p)||/(msie) ([\w.]+)/.exec(p)||p.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(p)||[];return{browser:w[1]||"",version:w[2]||"0"}}static isInteger(p){return Number.isInteger?Number.isInteger(p):"number"==typeof p&&isFinite(p)&&Math.floor(p)===p}static isHidden(p){return!p||null===p.offsetParent}static isVisible(p){return p&&null!=p.offsetParent}static isExist(p){return null!==p&&typeof p<"u"&&p.nodeName&&p.parentNode}static focus(p,w){p&&document.activeElement!==p&&p.focus(w)}static getFocusableElements(p,w=""){let T=this.find(p,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${w},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${w},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${w},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${w},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${w},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${w},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${w}`),Z=[];for(let Qe of T)"none"!=getComputedStyle(Qe).display&&"hidden"!=getComputedStyle(Qe).visibility&&Z.push(Qe);return Z}static getFirstFocusableElement(p,w){const T=this.getFocusableElements(p,w);return T.length>0?T[0]:null}static getLastFocusableElement(p,w){const T=this.getFocusableElements(p,w);return T.length>0?T[T.length-1]:null}static getNextFocusableElement(p,w=!1){const T=P.getFocusableElements(p);let Z=0;if(T&&T.length>0){const Qe=T.indexOf(T[0].ownerDocument.activeElement);w?Z=-1==Qe||0===Qe?T.length-1:Qe-1:-1!=Qe&&Qe!==T.length-1&&(Z=Qe+1)}return T[Z]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(p,w){if(!p)return null;switch(p){case"document":return document;case"window":return window;case"@next":return w?.nextElementSibling;case"@prev":return w?.previousElementSibling;case"@parent":return w?.parentElement;case"@grandparent":return w?.parentElement.parentElement;default:const T=typeof p;if("string"===T)return document.querySelector(p);if("object"===T&&p.hasOwnProperty("nativeElement"))return this.isExist(p.nativeElement)?p.nativeElement:void 0;const Qe=(rn=p)&&rn.constructor&&rn.call&&rn.apply?p():p;return Qe&&9===Qe.nodeType||this.isExist(Qe)?Qe:null}var rn}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(p,w){if(p){const T=p.getAttribute(w);return isNaN(T)?"true"===T||"false"===T?"true"===T:T:+T}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(p="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,p)}static unblockBodyScroll(p="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,p)}}return P})();class zt{element;listener;scrollableParents;constructor(Le,p=(()=>{})){this.element=Le,this.listener=p}bindScrollListener(){this.scrollableParents=Ce.getScrollableParents(this.element);for(let Le=0;Le{class P{host;constructor(p){this.host=p}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const p=Ce.getFocusableElements(this.host.nativeElement);0===p.length&&this.host.nativeElement.focus(),p.length>0&&p[0].focus(),this.focused=!0}}static \u0275fac=function(w){return new(w||P)(o.rXU(o.aKT))};static \u0275dir=o.FsC({type:P,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return P})(),xt=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();var Gt=F(194);const xn=["overlay"],In=["content"];function xi(P,Le){1&P&&o.eu8(0)}const or=function(P,Le,p){return{showTransitionParams:P,hideTransitionParams:Le,transform:p}},ci=function(P){return{value:"visible",params:P}},Dr=function(P){return{mode:P}},Tr=function(P){return{$implicit:P}};function cn(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",1,3),o.bIt("click",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onOverlayContentClick(T))})("@overlayContentAnimation.start",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onOverlayContentAnimationStart(T))})("@overlayContentAnimation.done",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onOverlayContentAnimationDone(T))}),o.SdG(2),o.DNE(3,xi,1,0,"ng-container",4),o.k0s()}if(2&P){const p=o.XpG(2);o.HbH(p.contentStyleClass),o.Y8G("ngStyle",p.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",o.eq3(11,ci,o.sMw(7,or,p.showTransitionOptions,p.hideTransitionOptions,p.transformOptions[p.modal?p.overlayResponsiveDirection:"default"]))),o.R7$(3),o.Y8G("ngTemplateOutlet",p.contentTemplate)("ngTemplateOutletContext",o.eq3(15,Tr,o.eq3(13,Dr,p.overlayMode)))}}const On=function(P,Le,p,w,T,Z,Qe,rn,ri,Si,Zi,tr,fs,kr){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":P,"p-overlay-center":Le,"p-overlay-top":p,"p-overlay-top-start":w,"p-overlay-top-end":T,"p-overlay-bottom":Z,"p-overlay-bottom-start":Qe,"p-overlay-bottom-end":rn,"p-overlay-left":ri,"p-overlay-left-start":Si,"p-overlay-left-end":Zi,"p-overlay-right":tr,"p-overlay-right-start":fs,"p-overlay-right-end":kr}};function Qn(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",1,2),o.bIt("click",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onOverlayClick())}),o.DNE(2,cn,4,17,"div",0),o.k0s()}if(2&P){const p=o.XpG();o.HbH(p.styleClass),o.Y8G("ngStyle",p.style)("ngClass",o.zJS(5,On,[p.modal,p.modal&&"center"===p.overlayResponsiveDirection,p.modal&&"top"===p.overlayResponsiveDirection,p.modal&&"top-start"===p.overlayResponsiveDirection,p.modal&&"top-end"===p.overlayResponsiveDirection,p.modal&&"bottom"===p.overlayResponsiveDirection,p.modal&&"bottom-start"===p.overlayResponsiveDirection,p.modal&&"bottom-end"===p.overlayResponsiveDirection,p.modal&&"left"===p.overlayResponsiveDirection,p.modal&&"left-start"===p.overlayResponsiveDirection,p.modal&&"left-end"===p.overlayResponsiveDirection,p.modal&&"right"===p.overlayResponsiveDirection,p.modal&&"right-start"===p.overlayResponsiveDirection,p.modal&&"right-end"===p.overlayResponsiveDirection])),o.R7$(2),o.Y8G("ngIf",p.visible)}}const fi=["*"],qe={provide:V.kq,useExisting:(0,o.Rfq)(()=>hn),multi:!0},Mt=(0,Gt.lY)([(0,Gt.iF)({transform:"{{transform}}",opacity:0}),(0,Gt.i0)("{{showTransitionParams}}")]),Bt=(0,Gt.lY)([(0,Gt.i0)("{{hideTransitionParams}}",(0,Gt.iF)({transform:"{{transform}}",opacity:0}))]);let hn=(()=>{class P{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(p){this._visible=p,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(p){this._mode=p}get style(){return pe.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(p){this._style=p}get styleClass(){return pe.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(p){this._styleClass=p}get contentStyle(){return pe.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(p){this._contentStyle=p}get contentStyleClass(){return pe.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(p){this._contentStyleClass=p}get target(){const p=this._target||this.overlayOptions?.target;return void 0===p?"@prev":p}set target(p){this._target=p}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(p){this._appendTo=p}get autoZIndex(){const p=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===p||p}set autoZIndex(p){this._autoZIndex=p}get baseZIndex(){const p=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===p?0:p}set baseZIndex(p){this._baseZIndex=p}get showTransitionOptions(){const p=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===p?".12s cubic-bezier(0, 0, 0.2, 1)":p}set showTransitionOptions(p){this._showTransitionOptions=p}get hideTransitionOptions(){const p=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===p?".1s linear":p}set hideTransitionOptions(p){this._hideTransitionOptions=p}get listener(){return this._listener||this.overlayOptions?.listener}set listener(p){this._listener=p}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(p){this._responsive=p}get options(){return this._options}set options(p){this._options=p}visibleChange=new o.bkB;onBeforeShow=new o.bkB;onShow=new o.bkB;onBeforeHide=new o.bkB;onHide=new o.bkB;onAnimationStart=new o.bkB;onAnimationDone=new o.bkB;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if((0,g.UE)(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Ce.getTargetElement(this.target,this.el?.nativeElement)}constructor(p,w,T,Z,Qe,rn,ri,Si){this.document=p,this.platformId=w,this.el=T,this.renderer=Z,this.config=Qe,this.overlayService=rn,this.cd=ri,this.zone=Si,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(p=>{p.getType(),this.contentTemplate=p.template})}show(p,w=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:p||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),w&&Ce.focus(this.targetEl),this.modal&&Ce.addClass(this.document?.body,"p-overflow-hidden")}hide(p,w=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:p||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),w&&Ce.focus(this.targetEl),this.modal&&Ce.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&Ce.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(p){this._visible=p,this.visibleChange.emit(p)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(p){this.overlayService.add({originalEvent:p,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(p){switch(p.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Te.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),Ce.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&Ce.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",p)}onOverlayContentAnimationDone(p){const w=this.overlayEl||p.element.parentElement;switch(p.toState){case"visible":this.show(w,!0),this.bindListeners();break;case"void":this.hide(w,!0),this.unbindListeners(),Ce.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Te.clear(w),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",p)}handleEvents(p,w){this[p].emit(w),this.options&&this.options[p]&&this.options[p](w),this.config?.overlayOptions&&(this.config?.overlayOptions)[p]&&(this.config?.overlayOptions)[p](w)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new zt(this.targetEl,p=>{(!this.listener||this.listener(p,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(p,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",p=>{const T=!(this.targetEl&&(this.targetEl.isSameNode(p.target)||!this.isOverlayClicked&&this.targetEl.contains(p.target))||this.isOverlayContentClicked);(this.listener?this.listener(p,{type:"outside",mode:this.overlayMode,valid:3!==p.which&&T}):T)&&this.hide(p),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",p=>{(this.listener?this.listener(p,{type:"resize",mode:this.overlayMode,valid:!Ce.isTouchDevice()}):!Ce.isTouchDevice())&&this.hide(p,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",p=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===p.code&&(this.listener?this.listener(p,{type:"keydown",mode:this.overlayMode,valid:!Ce.isTouchDevice()}):!Ce.isTouchDevice())&&this.zone.run(()=>{this.hide(p,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(Ce.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Te.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(w){return new(w||P)(o.rXU(g.qQ),o.rXU(o.Agw),o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(he),o.rXU(at),o.rXU(o.gRc),o.rXU(o.SKi))};static \u0275cmp=o.VBU({type:P,selectors:[["p-overlay"]],contentQueries:function(w,T,Z){if(1&w&&o.wni(Z,it,4),2&w){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(w,T){if(1&w&&(o.GBs(xn,5),o.GBs(In,5)),2&w){let Z;o.mGM(Z=o.lsd())&&(T.overlayViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.contentViewChild=Z.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[o.Jv_([qe])],ngContentSelectors:fi,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(w,T){1&w&&(o.NAR(),o.DNE(0,Qn,3,20,"div",0)),2&w&&o.Y8G("ngIf",T.modalVisible)},dependencies:[g.YU,g.bT,g.T3,g.B3],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[(0,Gt.hZ)("overlayContentAnimation",[(0,Gt.kY)(":enter",[(0,Gt.sM)(Mt)]),(0,Gt.kY)(":leave",[(0,Gt.sM)(Bt)])])]},changeDetection:0})}return P})(),Mn=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,dt,dt]})}return P})(),Vi=(()=>{class P{document;platformId;renderer;el;zone;config;constructor(p,w,T,Z,Qe,rn){this.document=p,this.platformId=w,this.renderer=T,this.el=Z,this.zone=Qe,this.config=rn}animationListener;mouseDownListener;timeout;ngAfterViewInit(){(0,g.UE)(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(p){let w=this.getInk();if(!w||"none"===this.document.defaultView?.getComputedStyle(w,null).display)return;if(Ce.removeClass(w,"p-ink-active"),!Ce.getHeight(w)&&!Ce.getWidth(w)){let rn=Math.max(Ce.getOuterWidth(this.el.nativeElement),Ce.getOuterHeight(this.el.nativeElement));w.style.height=rn+"px",w.style.width=rn+"px"}let T=Ce.getOffset(this.el.nativeElement),Z=p.pageX-T.left+this.document.body.scrollTop-Ce.getWidth(w)/2,Qe=p.pageY-T.top+this.document.body.scrollLeft-Ce.getHeight(w)/2;this.renderer.setStyle(w,"top",Qe+"px"),this.renderer.setStyle(w,"left",Z+"px"),Ce.addClass(w,"p-ink-active"),this.timeout=setTimeout(()=>{let rn=this.getInk();rn&&Ce.removeClass(rn,"p-ink-active")},401)}getInk(){const p=this.el.nativeElement.children;for(let w=0;w{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})(),Qi=(()=>{class P extends Wn{pathId;ngOnInit(){this.pathId="url(#"+be()+")"}static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["SpinnerIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0)(1,"g"),o.nrm(2,"path",1),o.k0s(),o.j41(3,"defs")(4,"clipPath",2),o.nrm(5,"rect",3),o.k0s()()()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role),o.R7$(1),o.BMQ("clip-path",T.pathId),o.R7$(3),o.Y8G("id",T.pathId))},encapsulation:2})}return P})();const dr=["element"],no=["content"];function Jr(P,Le){1&P&&o.eu8(0)}const Ki=function(P,Le){return{$implicit:P,options:Le}};function Ys(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Jr,1,0,"ng-container",7),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("ngTemplateOutlet",p.contentTemplate)("ngTemplateOutletContext",o.l_i(2,Ki,p.loadedItems,p.getContentOptions()))}}function so(P,Le){1&P&&o.eu8(0)}function zo(P,Le){if(1&P&&(o.qex(0),o.DNE(1,so,1,0,"ng-container",7),o.bVm()),2&P){const p=Le.$implicit,w=Le.index,T=o.XpG(3);o.R7$(1),o.Y8G("ngTemplateOutlet",T.itemTemplate)("ngTemplateOutletContext",o.l_i(2,Ki,p,T.getOptions(w)))}}const qa=function(P){return{"p-scroller-loading":P}};function xc(P,Le){if(1&P&&(o.j41(0,"div",8,9),o.DNE(2,zo,2,5,"ng-container",10),o.k0s()),2&P){const p=o.XpG(2);o.Y8G("ngClass",o.eq3(5,qa,p.d_loading))("ngStyle",p.contentStyle),o.BMQ("data-pc-section","content"),o.R7$(2),o.Y8G("ngForOf",p.loadedItems)("ngForTrackBy",p._trackBy||p.index)}}function mo(P,Le){if(1&P&&o.nrm(0,"div",11),2&P){const p=o.XpG(2);o.Y8G("ngStyle",p.spacerStyle),o.BMQ("data-pc-section","spacer")}}function Ss(P,Le){1&P&&o.eu8(0)}const io=function(P){return{numCols:P}},Wo=function(P){return{options:P}};function ic(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Ss,1,0,"ng-container",7),o.bVm()),2&P){const p=Le.index,w=o.XpG(4);o.R7$(1),o.Y8G("ngTemplateOutlet",w.loaderTemplate)("ngTemplateOutletContext",o.eq3(4,Wo,w.getLoaderOptions(p,w.both&&o.eq3(2,io,w._numItemsInViewport.cols))))}}function jn(P,Le){if(1&P&&(o.qex(0),o.DNE(1,ic,2,6,"ng-container",14),o.bVm()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngForOf",p.loaderArr)}}function kn(P,Le){1&P&&o.eu8(0)}const It=function(){return{styleClass:"p-scroller-loading-icon"}};function Jt(P,Le){if(1&P&&(o.qex(0),o.DNE(1,kn,1,0,"ng-container",7),o.bVm()),2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("ngTemplateOutlet",p.loaderIconTemplate)("ngTemplateOutletContext",o.eq3(3,Wo,o.lJ4(2,It)))}}function Un(P,Le){1&P&&o.nrm(0,"SpinnerIcon",16),2&P&&(o.Y8G("styleClass","p-scroller-loading-icon"),o.BMQ("data-pc-section","loadingIcon"))}function yt(P,Le){if(1&P&&(o.DNE(0,Jt,2,5,"ng-container",0),o.DNE(1,Un,1,2,"ng-template",null,15,o.C5r)),2&P){const p=o.sdS(2),w=o.XpG(3);o.Y8G("ngIf",w.loaderIconTemplate)("ngIfElse",p)}}const ft=function(P){return{"p-component-overlay":P}};function Pt(P,Le){if(1&P&&(o.j41(0,"div",12),o.DNE(1,jn,2,1,"ng-container",0),o.DNE(2,yt,3,2,"ng-template",null,13,o.C5r),o.k0s()),2&P){const p=o.sdS(3),w=o.XpG(2);o.Y8G("ngClass",o.eq3(4,ft,!w.loaderTemplate)),o.BMQ("data-pc-section","loader"),o.R7$(1),o.Y8G("ngIf",w.loaderTemplate)("ngIfElse",p)}}const Cn=function(P,Le,p){return{"p-scroller":!0,"p-scroller-inline":P,"p-both-scroll":Le,"p-horizontal-scroll":p}};function pn(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"div",2,3),o.bIt("scroll",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onContainerScroll(T))}),o.DNE(3,Ys,2,5,"ng-container",0),o.DNE(4,xc,3,7,"ng-template",null,4,o.C5r),o.DNE(6,mo,1,2,"div",5),o.DNE(7,Pt,4,6,"div",6),o.k0s(),o.bVm()}if(2&P){const p=o.sdS(5),w=o.XpG();o.R7$(1),o.HbH(w._styleClass),o.Y8G("ngStyle",w._style)("ngClass",o.sMw(12,Cn,w.inline,w.both,w.horizontal)),o.BMQ("id",w._id)("tabindex",w.tabindex)("data-pc-name","scroller")("data-pc-section","root"),o.R7$(2),o.Y8G("ngIf",w.contentTemplate)("ngIfElse",p),o.R7$(3),o.Y8G("ngIf",w._showSpacer),o.R7$(1),o.Y8G("ngIf",!w.loaderDisabled&&w._showLoader&&w.d_loading)}}function Di(P,Le){1&P&&o.eu8(0)}const nr=function(P,Le){return{rows:P,columns:Le}};function tn(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Di,1,0,"ng-container",7),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("ngTemplateOutlet",p.contentTemplate)("ngTemplateOutletContext",o.l_i(5,Ki,p.items,o.l_i(2,nr,p._items,p.loadedColumns)))}}function Tt(P,Le){if(1&P&&(o.SdG(0),o.DNE(1,tn,2,8,"ng-container",17)),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngIf",p.contentTemplate)}}const Kt=["*"];let Vn=(()=>{class P{document;platformId;renderer;cd;zone;get id(){return this._id}set id(p){this._id=p}get style(){return this._style}set style(p){this._style=p}get styleClass(){return this._styleClass}set styleClass(p){this._styleClass=p}get tabindex(){return this._tabindex}set tabindex(p){this._tabindex=p}get items(){return this._items}set items(p){this._items=p}get itemSize(){return this._itemSize}set itemSize(p){this._itemSize=p}get scrollHeight(){return this._scrollHeight}set scrollHeight(p){this._scrollHeight=p}get scrollWidth(){return this._scrollWidth}set scrollWidth(p){this._scrollWidth=p}get orientation(){return this._orientation}set orientation(p){this._orientation=p}get step(){return this._step}set step(p){this._step=p}get delay(){return this._delay}set delay(p){this._delay=p}get resizeDelay(){return this._resizeDelay}set resizeDelay(p){this._resizeDelay=p}get appendOnly(){return this._appendOnly}set appendOnly(p){this._appendOnly=p}get inline(){return this._inline}set inline(p){this._inline=p}get lazy(){return this._lazy}set lazy(p){this._lazy=p}get disabled(){return this._disabled}set disabled(p){this._disabled=p}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(p){this._loaderDisabled=p}get columns(){return this._columns}set columns(p){this._columns=p}get showSpacer(){return this._showSpacer}set showSpacer(p){this._showSpacer=p}get showLoader(){return this._showLoader}set showLoader(p){this._showLoader=p}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(p){this._numToleratedItems=p}get loading(){return this._loading}set loading(p){this._loading=p}get autoSize(){return this._autoSize}set autoSize(p){this._autoSize=p}get trackBy(){return this._trackBy}set trackBy(p){this._trackBy=p}get options(){return this._options}set options(p){this._options=p,p&&"object"==typeof p&&Object.entries(p).forEach(([w,T])=>this[`_${w}`]!==T&&(this[`_${w}`]=T))}onLazyLoad=new o.bkB;onScroll=new o.bkB;onScrollIndexChange=new o.bkB;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(p=>this._columns?p:p.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(p,w,T,Z,Qe){this.document=p,this.platformId=w,this.renderer=T,this.cd=Z,this.zone=Qe}ngOnInit(){this.setInitialState()}ngOnChanges(p){let w=!1;if(p.loading){const{previousValue:T,currentValue:Z}=p.loading;this.lazy&&T!==Z&&Z!==this.d_loading&&(this.d_loading=Z,w=!0)}if(p.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),p.numToleratedItems){const{previousValue:T,currentValue:Z}=p.numToleratedItems;T!==Z&&Z!==this.d_numToleratedItems&&(this.d_numToleratedItems=Z)}if(p.options){const{previousValue:T,currentValue:Z}=p.options;this.lazy&&T?.loading!==Z?.loading&&Z?.loading!==this.d_loading&&(this.d_loading=Z.loading,w=!0),T?.numToleratedItems!==Z?.numToleratedItems&&Z?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=Z.numToleratedItems)}this.initialized&&!w&&(p.items?.previousValue?.length!==p.items?.currentValue?.length||p.itemSize||p.scrollHeight||p.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(p=>{switch(p.getType()){case"content":this.contentTemplate=p.template;break;case"item":default:this.itemTemplate=p.template;break;case"loader":this.loaderTemplate=p.template;break;case"loadericon":this.loaderIconTemplate=p.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){(0,g.UE)(this.platformId)&&Ce.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Ce.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=Ce.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=Ce.getWidth(this.contentEl),this.defaultContentHeight=Ce.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(p){this.contentEl=p||this.contentViewChild?.nativeElement||Ce.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(p){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(p)}scrollToIndex(p,w="auto"){const{numToleratedItems:T}=this.calculateNumItems(),Z=this.getContentPosition(),Qe=(Zi=0,tr)=>Zi<=tr?0:Zi,rn=(Zi,tr,fs)=>Zi*tr+fs,ri=(Zi=0,tr=0)=>this.scrollTo({left:Zi,top:tr,behavior:w});let Si=0;this.both?(Si={rows:Qe(p[0],T[0]),cols:Qe(p[1],T[1])},ri(rn(Si.cols,this._itemSize[1],Z.left),rn(Si.rows,this._itemSize[0],Z.top))):(Si=Qe(p,T),this.horizontal?ri(rn(Si,this._itemSize,Z.left),0):ri(0,rn(Si,this._itemSize,Z.top))),this.isRangeChanged=this.first!==Si,this.first=Si}scrollInView(p,w,T="auto"){if(w){const{first:Z,viewport:Qe}=this.getRenderedRange(),rn=(Zi=0,tr=0)=>this.scrollTo({left:Zi,top:tr,behavior:T}),Si="to-end"===w;if("to-start"===w){if(this.both)Qe.first.rows-Z.rows>p[0]?rn(Qe.first.cols*this._itemSize[1],(Qe.first.rows-1)*this._itemSize[0]):Qe.first.cols-Z.cols>p[1]&&rn((Qe.first.cols-1)*this._itemSize[1],Qe.first.rows*this._itemSize[0]);else if(Qe.first-Z>p){const Zi=(Qe.first-1)*this._itemSize;this.horizontal?rn(Zi,0):rn(0,Zi)}}else if(Si)if(this.both)Qe.last.rows-Z.rows<=p[0]+1?rn(Qe.first.cols*this._itemSize[1],(Qe.first.rows+1)*this._itemSize[0]):Qe.last.cols-Z.cols<=p[1]+1&&rn((Qe.first.cols+1)*this._itemSize[1],Qe.first.rows*this._itemSize[0]);else if(Qe.last-Z<=p+1){const Zi=(Qe.first+1)*this._itemSize;this.horizontal?rn(Zi,0):rn(0,Zi)}}else this.scrollToIndex(p,T)}getRenderedRange(){const p=(Z,Qe)=>Math.floor(Z/(Qe||Z));let w=this.first,T=0;if(this.elementViewChild?.nativeElement){const{scrollTop:Z,scrollLeft:Qe}=this.elementViewChild.nativeElement;this.both?(w={rows:p(Z,this._itemSize[0]),cols:p(Qe,this._itemSize[1])},T={rows:w.rows+this.numItemsInViewport.rows,cols:w.cols+this.numItemsInViewport.cols}):(w=p(this.horizontal?Qe:Z,this._itemSize),T=w+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:w,last:T}}}calculateNumItems(){const p=this.getContentPosition(),w=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-p.left:0)||0,T=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-p.top:0)||0,Z=(Si,Zi)=>Math.ceil(Si/(Zi||Si)),Qe=Si=>Math.ceil(Si/2),rn=this.both?{rows:Z(T,this._itemSize[0]),cols:Z(w,this._itemSize[1])}:Z(this.horizontal?w:T,this._itemSize);return{numItemsInViewport:rn,numToleratedItems:this.d_numToleratedItems||(this.both?[Qe(rn.rows),Qe(rn.cols)]:Qe(rn))}}calculateOptions(){const{numItemsInViewport:p,numToleratedItems:w}=this.calculateNumItems(),T=(rn,ri,Si,Zi=!1)=>this.getLast(rn+ri+(rnArray.from({length:p.cols})):Array.from({length:p})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:Z.cols}:0:Z,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[p,w]=[Ce.getWidth(this.contentEl),Ce.getHeight(this.contentEl)];p!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),w!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[T,Z]=[Ce.getWidth(this.elementViewChild.nativeElement),Ce.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=Tthis.elementViewChild.nativeElement.style[Qe]=rn;this.both||this.horizontal?(Z("height",T),Z("width",w)):Z("height",T)}}setSpacerSize(){if(this._items){const p=this.getContentPosition(),w=(T,Z,Qe,rn=0)=>this.spacerStyle={...this.spacerStyle,[`${T}`]:(Z||[]).length*Qe+rn+"px"};this.both?(w("height",this._items,this._itemSize[0],p.y),w("width",this._columns||this._items[1],this._itemSize[1],p.x)):this.horizontal?w("width",this._columns||this._items,this._itemSize,p.x):w("height",this._items,this._itemSize,p.y)}}setContentPosition(p){if(this.contentEl&&!this._appendOnly){const w=p?p.first:this.first,T=(Qe,rn)=>Qe*rn,Z=(Qe=0,rn=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${Qe}px, ${rn}px, 0)`};if(this.both)Z(T(w.cols,this._itemSize[1]),T(w.rows,this._itemSize[0]));else{const Qe=T(w,this._itemSize);this.horizontal?Z(Qe,0):Z(0,Qe)}}}onScrollPositionChange(p){const w=p.target,T=this.getContentPosition(),Z=(hs,Do)=>hs?hs>Do?hs-Do:hs:0,Qe=(hs,Do)=>Math.floor(hs/(Do||hs)),rn=(hs,Do,Yo,Da,ec,xl)=>hs<=ec?ec:xl?Yo-Da-ec:Do+ec-1,ri=(hs,Do,Yo,Da,ec,xl,s2)=>hs<=xl?0:Math.max(0,s2?hsDo?Yo:hs-2*xl),Si=(hs,Do,Yo,Da,ec,xl=!1)=>{let s2=Do+Da+2*ec;return hs>=ec&&(s2+=ec+1),this.getLast(s2,xl)},Zi=Z(w.scrollTop,T.top),tr=Z(w.scrollLeft,T.left);let fs=this.both?{rows:0,cols:0}:0,kr=this.last,Eo=!1,fo=this.lastScrollPos;if(this.both){const hs=this.lastScrollPos.top<=Zi,Do=this.lastScrollPos.left<=tr;if(!this._appendOnly||this._appendOnly&&(hs||Do)){const Yo={rows:Qe(Zi,this._itemSize[0]),cols:Qe(tr,this._itemSize[1])},Da={rows:rn(Yo.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],hs),cols:rn(Yo.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],Do)};fs={rows:ri(Yo.rows,Da.rows,this.first.rows,0,0,this.d_numToleratedItems[0],hs),cols:ri(Yo.cols,Da.cols,this.first.cols,0,0,this.d_numToleratedItems[1],Do)},kr={rows:Si(Yo.rows,fs.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:Si(Yo.cols,fs.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},Eo=fs.rows!==this.first.rows||kr.rows!==this.last.rows||fs.cols!==this.first.cols||kr.cols!==this.last.cols||this.isRangeChanged,fo={top:Zi,left:tr}}}else{const hs=this.horizontal?tr:Zi,Do=this.lastScrollPos<=hs;if(!this._appendOnly||this._appendOnly&&Do){const Yo=Qe(hs,this._itemSize);fs=ri(Yo,rn(Yo,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Do),this.first,0,0,this.d_numToleratedItems,Do),kr=Si(Yo,fs,0,this.numItemsInViewport,this.d_numToleratedItems),Eo=fs!==this.first||kr!==this.last||this.isRangeChanged,fo=hs}}return{first:fs,last:kr,isRangeChanged:Eo,scrollPos:fo}}onScrollChange(p){const{first:w,last:T,isRangeChanged:Z,scrollPos:Qe}=this.onScrollPositionChange(p);if(Z){const rn={first:w,last:T};if(this.setContentPosition(rn),this.first=w,this.last=T,this.lastScrollPos=Qe,this.handleEvents("onScrollIndexChange",rn),this._lazy&&this.isPageChanged){const ri={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):w,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:T,this.items.length)};(this.lazyLoadState.first!==ri.first||this.lazyLoadState.last!==ri.last)&&this.handleEvents("onLazyLoad",ri),this.lazyLoadState=ri}}}onContainerScroll(p){if(this.handleEvents("onScroll",{originalEvent:p}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:w}=this.onScrollPositionChange(p);(w||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(p),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(p)}bindResizeListener(){(0,g.UE)(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const p=this.document.defaultView,w=Ce.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(p,w,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Ce.isVisible(this.elementViewChild?.nativeElement)){const[p,w]=[Ce.getWidth(this.elementViewChild?.nativeElement),Ce.getHeight(this.elementViewChild?.nativeElement)],[T,Z]=[p!==this.defaultWidth,w!==this.defaultHeight];(this.both?T||Z:this.horizontal?T:this.vertical&&Z)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=p,this.defaultHeight=w,this.defaultContentWidth=Ce.getWidth(this.contentEl),this.defaultContentHeight=Ce.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(p,w){return this.options&&this.options[p]?this.options[p](w):this[p].emit(w)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:p=>this.getOptions(p),loading:this.d_loading,getLoaderOptions:(p,w)=>this.getLoaderOptions(p,w),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(p){const w=(this._items||[]).length,T=this.both?this.first.rows+p:this.first+p;return{index:T,count:w,first:0===T,last:T===w-1,even:T%2==0,odd:T%2!=0}}getLoaderOptions(p,w){const T=this.loaderArr.length;return{index:p,count:T,first:0===p,last:p===T-1,even:p%2==0,odd:p%2!=0,...w}}static \u0275fac=function(w){return new(w||P)(o.rXU(g.qQ),o.rXU(o.Agw),o.rXU(o.sFG),o.rXU(o.gRc),o.rXU(o.SKi))};static \u0275cmp=o.VBU({type:P,selectors:[["p-scroller"]],contentQueries:function(w,T,Z){if(1&w&&o.wni(Z,it,4),2&w){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(w,T){if(1&w&&(o.GBs(dr,5),o.GBs(no,5)),2&w){let Z;o.mGM(Z=o.lsd())&&(T.elementViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.contentViewChild=Z.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[o.OA$],ngContentSelectors:Kt,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(w,T){if(1&w&&(o.NAR(),o.DNE(0,pn,8,16,"ng-container",0),o.DNE(1,Tt,2,1,"ng-template",null,1,o.C5r)),2&w){const Z=o.sdS(2);o.Y8G("ngIf",!T._disabled)("ngIfElse",Z)}},dependencies:function(){return[g.YU,g.Sq,g.bT,g.T3,g.B3,Qi]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return P})(),qn=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,dt,Qi,dt]})}return P})(),pi=(()=>{class P{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(p){this._disabled=p,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:be()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(p,w,T,Z,Qe,rn){this.platformId=p,this.el=w,this.zone=T,this.config=Z,this.renderer=Qe,this.viewContainer=rn}ngAfterViewInit(){(0,g.UE)(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let p=this.getTarget(this.el.nativeElement);p.addEventListener("focus",this.focusListener),p.addEventListener("blur",this.blurListener)}})}ngOnChanges(p){p.tooltipPosition&&this.setOption({tooltipPosition:p.tooltipPosition.currentValue}),p.tooltipEvent&&this.setOption({tooltipEvent:p.tooltipEvent.currentValue}),p.appendTo&&this.setOption({appendTo:p.appendTo.currentValue}),p.positionStyle&&this.setOption({positionStyle:p.positionStyle.currentValue}),p.tooltipStyleClass&&this.setOption({tooltipStyleClass:p.tooltipStyleClass.currentValue}),p.tooltipZIndex&&this.setOption({tooltipZIndex:p.tooltipZIndex.currentValue}),p.escape&&this.setOption({escape:p.escape.currentValue}),p.showDelay&&this.setOption({showDelay:p.showDelay.currentValue}),p.hideDelay&&this.setOption({hideDelay:p.hideDelay.currentValue}),p.life&&this.setOption({life:p.life.currentValue}),p.positionTop&&this.setOption({positionTop:p.positionTop.currentValue}),p.positionLeft&&this.setOption({positionLeft:p.positionLeft.currentValue}),p.disabled&&this.setOption({disabled:p.disabled.currentValue}),p.content&&(this.setOption({tooltipLabel:p.content.currentValue}),this.active&&(p.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),p.autoHide&&this.setOption({autoHide:p.autoHide.currentValue}),p.id&&this.setOption({id:p.id.currentValue}),p.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...p.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(p){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(p){(this.isAutoHide()||!(Ce.hasClass(p.relatedTarget,"p-tooltip")||Ce.hasClass(p.relatedTarget,"p-tooltip-text")||Ce.hasClass(p.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(p){this.activate()}onBlur(p){this.deactivate()}onInputClick(p){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let p=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},p)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let p=document.createElement("div");p.className="p-tooltip-arrow",this.container.appendChild(p),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?Ce.appendChild(this.container,this.el.nativeElement):Ce.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",w=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),Ce.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Te.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Te.clear(this.container),this.remove()}updateText(){const p=this.getOption("tooltipLabel");if(p instanceof o.C4Q){const w=this.viewContainer.createEmbeddedView(p);w.detectChanges(),w.rootNodes.forEach(T=>this.tooltipText.appendChild(T))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(p))):this.tooltipText.innerHTML=p}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let p=this.el.nativeElement.getBoundingClientRect();return{left:p.left+Ce.getWindowScrollLeft(),top:p.top+Ce.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let p=this.getHostOffset(),w=p.left+Ce.getOuterWidth(this.el.nativeElement),T=p.top+(Ce.getOuterHeight(this.el.nativeElement)-Ce.getOuterHeight(this.container))/2;this.container.style.left=w+this.getOption("positionLeft")+"px",this.container.style.top=T+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let p=this.getHostOffset(),w=p.left-Ce.getOuterWidth(this.container),T=p.top+(Ce.getOuterHeight(this.el.nativeElement)-Ce.getOuterHeight(this.container))/2;this.container.style.left=w+this.getOption("positionLeft")+"px",this.container.style.top=T+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let p=this.getHostOffset(),w=p.left+(Ce.getOuterWidth(this.el.nativeElement)-Ce.getOuterWidth(this.container))/2,T=p.top-Ce.getOuterHeight(this.container);this.container.style.left=w+this.getOption("positionLeft")+"px",this.container.style.top=T+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let p=this.getHostOffset(),w=p.left+(Ce.getOuterWidth(this.el.nativeElement)-Ce.getOuterWidth(this.container))/2,T=p.top+Ce.getOuterHeight(this.el.nativeElement);this.container.style.left=w+this.getOption("positionLeft")+"px",this.container.style.top=T+this.getOption("positionTop")+"px"}setOption(p){this._tooltipOptions={...this._tooltipOptions,...p}}getOption(p){return this._tooltipOptions[p]}getTarget(p){return Ce.hasClass(p,"p-inputwrapper")?Ce.findSingle(p,"input"):p}preAlign(p){this.container.style.left="-999px",this.container.style.top="-999px";let w="p-tooltip p-component p-tooltip-"+p;this.container.className=this.getOption("tooltipStyleClass")?w+" "+this.getOption("tooltipStyleClass"):w}isOutOfBounds(){let p=this.container.getBoundingClientRect(),w=p.top,T=p.left,Z=Ce.getOuterWidth(this.container),Qe=Ce.getOuterHeight(this.container),rn=Ce.getViewport();return T+Z>rn.width||T<0||w<0||w+Qe>rn.height}onWindowResize(p){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new zt(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let p=this.getTarget(this.el.nativeElement);p.removeEventListener("focus",this.focusListener),p.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):Ce.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Te.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(w){return new(w||P)(o.rXU(o.Agw),o.rXU(o.aKT),o.rXU(o.SKi),o.rXU(he),o.rXU(o.sFG),o.rXU(o.c1b))};static \u0275dir=o.FsC({type:P,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(w,T){1&w&&o.bIt("keydown.escape",function(Qe){return T.onPressEscape(Qe)},!1,o.EBC)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[o.OA$]})}return P})(),ti=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})(),Ni=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["TimesIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),ii=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["ChevronDownIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),lr=(()=>{class P extends Wn{pathId;ngOnInit(){this.pathId="url(#"+be()+")"}static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["SearchIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0)(1,"g"),o.nrm(2,"path",1),o.k0s(),o.j41(3,"defs")(4,"clipPath",2),o.nrm(5,"rect",3),o.k0s()()()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role),o.R7$(1),o.BMQ("clip-path",T.pathId),o.R7$(3),o.Y8G("id",T.pathId))},encapsulation:2})}return P})();function Gr(P,Le){if(1&P&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&P){const p=o.XpG();let w;o.R7$(1),o.JRh(null!==(w=p.label)&&void 0!==w?w:"empty")}}function xs(P,Le){1&P&&o.eu8(0)}const ks=function(P){return{height:P}},Vr=function(P,Le,p){return{"p-dropdown-item":!0,"p-highlight":P,"p-disabled":Le,"p-focus":p}},Gs=function(P){return{$implicit:P}},Fr=["container"],is=["filter"],Ro=["focusInput"],Zo=["editableInput"],Vo=["items"],qo=["scroller"],ea=["overlay"],oo=["firstHiddenFocusableEl"],xo=["lastHiddenFocusableEl"];function ta(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.JRh("p-emptylabel"===p.label()?"\xa0":p.label())}}function Ps(P,Le){1&P&&o.eu8(0)}function Ma(P,Le){if(1&P&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&P){const p=o.XpG(3);o.R7$(1),o.JRh("p-emptylabel"===p.label()?"\xa0":p.placeholder)}}function ws(P,Le){if(1&P&&o.DNE(0,Ma,2,1,"span",4),2&P){const p=o.XpG(2);o.Y8G("ngIf",p.label()===p.placeholder||p.label()&&!p.placeholder)}}function La(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",10,11),o.bIt("focus",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInputFocus(T))})("blur",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInputBlur(T))})("keydown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onKeyDown(T))}),o.DNE(2,ta,2,1,"ng-container",12),o.DNE(3,Ps,1,0,"ng-container",13),o.DNE(4,ws,1,1,"ng-template",null,14,o.C5r),o.k0s()}if(2&P){const p=o.sdS(5),w=o.XpG();o.Y8G("ngClass",w.inputClass)("pTooltip",w.tooltip)("tooltipPosition",w.tooltipPosition)("positionStyle",w.tooltipPositionStyle)("tooltipStyleClass",w.tooltipStyleClass)("autofocus",w.autofocus),o.BMQ("aria-disabled",w.disabled)("id",w.inputId)("aria-label",w.ariaLabel||("p-emptylabel"===w.label()?void 0:w.label()))("aria-labelledby",w.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",w.overlayVisible)("aria-controls",w.id+"_list")("tabindex",w.disabled?-1:w.tabindex)("aria-activedescendant",w.focused?w.focusedOptionId:void 0),o.R7$(2),o.Y8G("ngIf",!w.selectedItemTemplate)("ngIfElse",p),o.R7$(1),o.Y8G("ngTemplateOutlet",w.selectedItemTemplate)("ngTemplateOutletContext",o.eq3(19,Gs,w.selectedOption))}}function ao(P,Le){if(1&P){const p=o.RV6();o.j41(0,"input",15,16),o.bIt("input",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onEditableInput(T))})("keydown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onKeyDown(T))})("focus",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInputFocus(T))})("blur",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInputBlur(T))}),o.k0s()}if(2&P){const p=o.XpG();o.Y8G("ngClass",p.inputClass)("disabled",p.disabled),o.BMQ("maxlength",p.maxlength)("placeholder",p.placeholder)("aria-expanded",p.overlayVisible)}}function l1(P,Le){if(1&P){const p=o.RV6();o.j41(0,"TimesIcon",19),o.bIt("click",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.clear(T))}),o.k0s()}2&P&&(o.Y8G("styleClass","p-dropdown-clear-icon"),o.BMQ("data-pc-section","clearicon"))}function Hc(P,Le){}function Ol(P,Le){1&P&&o.DNE(0,Hc,0,0,"ng-template")}function pl(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",20),o.bIt("click",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.clear(T))}),o.DNE(1,Ol,1,0,null,21),o.k0s()}if(2&P){const p=o.XpG(2);o.BMQ("data-pc-section","clearicon"),o.R7$(1),o.Y8G("ngTemplateOutlet",p.clearIconTemplate)}}function na(P,Le){if(1&P&&(o.qex(0),o.DNE(1,l1,1,2,"TimesIcon",17),o.DNE(2,pl,2,2,"span",18),o.bVm()),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngIf",!p.clearIconTemplate),o.R7$(1),o.Y8G("ngIf",p.clearIconTemplate)}}function Z1(P,Le){if(1&P&&o.nrm(0,"span",24),2&P){const p=o.XpG(2);o.Y8G("ngClass",p.dropdownIcon)}}function rc(P,Le){1&P&&o.nrm(0,"ChevronDownIcon",25),2&P&&o.Y8G("styleClass","p-dropdown-trigger-icon")}function ql(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Z1,1,1,"span",22),o.DNE(2,rc,1,1,"ChevronDownIcon",23),o.bVm()),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngIf",p.dropdownIcon),o.R7$(1),o.Y8G("ngIf",!p.dropdownIcon)}}function go(P,Le){}function Xa(P,Le){1&P&&o.DNE(0,go,0,0,"ng-template")}function Ws(P,Le){if(1&P&&(o.j41(0,"span",26),o.DNE(1,Xa,1,0,null,21),o.k0s()),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngTemplateOutlet",p.dropdownIconTemplate)}}function tl(P,Le){1&P&&o.eu8(0)}function As(P,Le){1&P&&o.eu8(0)}const wo=function(P){return{options:P}};function nl(P,Le){if(1&P&&(o.qex(0),o.DNE(1,As,1,0,"ng-container",13),o.bVm()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngTemplateOutlet",p.filterTemplate)("ngTemplateOutletContext",o.eq3(2,wo,p.filterOptions))}}function Ka(P,Le){1&P&&o.nrm(0,"SearchIcon",25),2&P&&o.Y8G("styleClass","p-dropdown-filter-icon")}function hc(P,Le){}function Xr(P,Le){1&P&&o.DNE(0,hc,0,0,"ng-template")}function Br(P,Le){if(1&P&&(o.j41(0,"span",41),o.DNE(1,Xr,1,0,null,21),o.k0s()),2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("ngTemplateOutlet",p.filterIconTemplate)}}function fr(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",37)(1,"input",38,39),o.bIt("input",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onFilterInputChange(T))})("keydown",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onFilterKeyDown(T))})("blur",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onFilterBlur(T))}),o.k0s(),o.DNE(3,Ka,1,1,"SearchIcon",23),o.DNE(4,Br,2,1,"span",40),o.k0s()}if(2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("value",p._filterValue()||""),o.BMQ("placeholder",p.filterPlaceholder)("aria-owns",p.id+"_list")("aria-label",p.ariaFilterLabel)("aria-activedescendant",p.focusedOptionId),o.R7$(2),o.Y8G("ngIf",!p.filterIconTemplate),o.R7$(1),o.Y8G("ngIf",p.filterIconTemplate)}}function Ao(P,Le){if(1&P&&(o.j41(0,"div",35),o.bIt("click",function(w){return w.stopPropagation()}),o.DNE(1,nl,2,4,"ng-container",12),o.DNE(2,fr,5,7,"ng-template",null,36,o.C5r),o.k0s()),2&P){const p=o.sdS(3),w=o.XpG(2);o.R7$(1),o.Y8G("ngIf",w.filterTemplate)("ngIfElse",p)}}function ca(P,Le){1&P&&o.eu8(0)}const Ya=function(P,Le){return{$implicit:P,options:Le}};function za(P,Le){if(1&P&&o.DNE(0,ca,1,0,"ng-container",13),2&P){const p=Le.$implicit,w=Le.options;o.XpG(2);const T=o.sdS(9);o.Y8G("ngTemplateOutlet",T)("ngTemplateOutletContext",o.l_i(2,Ya,p,w))}}function qs(P,Le){1&P&&o.eu8(0)}function gr(P,Le){if(1&P&&o.DNE(0,qs,1,0,"ng-container",13),2&P){const p=Le.options,w=o.XpG(4);o.Y8G("ngTemplateOutlet",w.loaderTemplate)("ngTemplateOutletContext",o.eq3(2,wo,p))}}function il(P,Le){1&P&&(o.qex(0),o.DNE(1,gr,1,4,"ng-template",44),o.bVm())}function Wr(P,Le){if(1&P){const p=o.RV6();o.j41(0,"p-scroller",42,43),o.bIt("onLazyLoad",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onLazyLoad.emit(T))}),o.DNE(2,za,1,5,"ng-template",9),o.DNE(3,il,2,0,"ng-container",4),o.k0s()}if(2&P){const p=o.XpG(2);o.Aen(o.eq3(8,ks,p.scrollHeight)),o.Y8G("items",p.visibleOptions())("itemSize",p.virtualScrollItemSize||p._itemSize)("autoSize",!0)("lazy",p.lazy)("options",p.virtualScrollOptions),o.R7$(3),o.Y8G("ngIf",p.loaderTemplate)}}function yi(P,Le){1&P&&o.eu8(0)}const Kn=function(){return{}};function ar(P,Le){if(1&P&&(o.qex(0),o.DNE(1,yi,1,0,"ng-container",13),o.bVm()),2&P){o.XpG();const p=o.sdS(9),w=o.XpG();o.R7$(1),o.Y8G("ngTemplateOutlet",p)("ngTemplateOutletContext",o.l_i(3,Ya,w.visibleOptions(),o.lJ4(2,Kn)))}}function Sa(P,Le){if(1&P&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&P){const p=o.XpG(2).$implicit,w=o.XpG(3);o.R7$(1),o.JRh(w.getOptionGroupLabel(p.optionGroup))}}function Mo(P,Le){1&P&&o.eu8(0)}function ns(P,Le){if(1&P&&(o.qex(0),o.j41(1,"li",49),o.DNE(2,Sa,2,1,"span",4),o.DNE(3,Mo,1,0,"ng-container",13),o.k0s(),o.bVm()),2&P){const p=o.XpG(),w=p.index,T=p.$implicit,Z=o.XpG().options,Qe=o.XpG(2);o.R7$(1),o.Y8G("ngStyle",o.eq3(5,ks,Z.itemSize+"px")),o.BMQ("id",Qe.id+"_"+Qe.getOptionIndex(w,Z)),o.R7$(1),o.Y8G("ngIf",!Qe.groupTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",Qe.groupTemplate)("ngTemplateOutletContext",o.eq3(7,Gs,T.optionGroup))}}function ka(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-dropdownItem",50),o.bIt("onClick",function(T){o.eBV(p);const Z=o.XpG().$implicit,Qe=o.XpG(3);return o.Njj(Qe.onOptionSelect(T,Z))})("onMouseEnter",function(T){o.eBV(p);const Z=o.XpG().index,Qe=o.XpG().options,rn=o.XpG(2);return o.Njj(rn.onOptionMouseEnter(T,rn.getOptionIndex(Z,Qe)))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG(),w=p.index,T=p.$implicit,Z=o.XpG().options,Qe=o.XpG(2);o.R7$(1),o.Y8G("id",Qe.id+"_"+Qe.getOptionIndex(w,Z))("option",T)("selected",Qe.isSelected(T))("label",Qe.getOptionLabel(T))("disabled",Qe.isOptionDisabled(T))("template",Qe.itemTemplate)("focused",Qe.focusedOptionIndex()===Qe.getOptionIndex(w,Z))("ariaPosInset",Qe.getAriaPosInset(Qe.getOptionIndex(w,Z)))("ariaSetSize",Qe.ariaSetSize)}}function Is(P,Le){if(1&P&&(o.DNE(0,ns,4,9,"ng-container",4),o.DNE(1,ka,2,9,"ng-container",4)),2&P){const p=Le.$implicit;o.Y8G("ngIf",p.group),o.R7$(1),o.Y8G("ngIf",!p.group)}}function wc(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(4);o.R7$(1),o.SpI(" ",p.emptyFilterMessageLabel," ")}}function Es(P,Le){1&P&&o.eu8(0,null,52)}function ur(P,Le){if(1&P&&(o.j41(0,"li",51),o.DNE(1,wc,2,1,"ng-container",12),o.DNE(2,Es,2,0,"ng-container",21),o.k0s()),2&P){const p=o.XpG().options,w=o.XpG(2);o.Y8G("ngStyle",o.eq3(4,ks,p.itemSize+"px")),o.R7$(1),o.Y8G("ngIf",!w.emptyFilterTemplate&&!w.emptyTemplate)("ngIfElse",w.emptyFilter),o.R7$(1),o.Y8G("ngTemplateOutlet",w.emptyFilterTemplate||w.emptyTemplate)}}function rr(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(4);o.R7$(1),o.SpI(" ",p.emptyMessageLabel," ")}}function ml(P,Le){1&P&&o.eu8(0,null,53)}function Lc(P,Le){if(1&P&&(o.j41(0,"li",51),o.DNE(1,rr,2,1,"ng-container",12),o.DNE(2,ml,2,0,"ng-container",21),o.k0s()),2&P){const p=o.XpG().options,w=o.XpG(2);o.Y8G("ngStyle",o.eq3(4,ks,p.itemSize+"px")),o.R7$(1),o.Y8G("ngIf",!w.emptyTemplate)("ngIfElse",w.empty),o.R7$(1),o.Y8G("ngTemplateOutlet",w.emptyTemplate)}}function Qs(P,Le){if(1&P&&(o.j41(0,"ul",45,46),o.DNE(2,Is,2,2,"ng-template",47),o.DNE(3,ur,3,6,"li",48),o.DNE(4,Lc,3,6,"li",48),o.k0s()),2&P){const p=Le.$implicit,w=Le.options,T=o.XpG(2);o.Aen(w.contentStyle),o.Y8G("ngClass",w.contentStyleClass),o.BMQ("id",T.id+"_list"),o.R7$(2),o.Y8G("ngForOf",p),o.R7$(1),o.Y8G("ngIf",T.filterValue&&T.isEmpty()),o.R7$(1),o.Y8G("ngIf",!T.filterValue&&T.isEmpty())}}function la(P,Le){1&P&&o.eu8(0)}function Js(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",27)(1,"span",28,29),o.bIt("focus",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onFirstHiddenFocus(T))}),o.k0s(),o.DNE(3,tl,1,0,"ng-container",21),o.DNE(4,Ao,4,2,"div",30),o.j41(5,"div",31),o.DNE(6,Wr,4,10,"p-scroller",32),o.DNE(7,ar,2,6,"ng-container",4),o.DNE(8,Qs,5,7,"ng-template",null,33,o.C5r),o.k0s(),o.DNE(10,la,1,0,"ng-container",21),o.j41(11,"span",28,34),o.bIt("focus",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onLastHiddenFocus(T))}),o.k0s()()}if(2&P){const p=o.XpG();o.HbH(p.panelStyleClass),o.Y8G("ngClass","p-dropdown-panel p-component")("ngStyle",p.panelStyle),o.R7$(1),o.BMQ("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),o.R7$(2),o.Y8G("ngTemplateOutlet",p.headerTemplate),o.R7$(1),o.Y8G("ngIf",p.filter),o.R7$(1),o.xc7("max-height",p.virtualScroll?"auto":p.scrollHeight||"auto"),o.R7$(1),o.Y8G("ngIf",p.virtualScroll),o.R7$(1),o.Y8G("ngIf",!p.virtualScroll),o.R7$(3),o.Y8G("ngTemplateOutlet",p.footerTemplate),o.R7$(1),o.BMQ("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const ua={provide:V.kq,useExisting:(0,o.Rfq)(()=>gl),multi:!0};let da=(()=>{class P{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new o.bkB;onMouseEnter=new o.bkB;ngOnInit(){}onOptionClick(p){this.onClick.emit(p)}onOptionMouseEnter(p){this.onMouseEnter.emit(p)}static \u0275fac=function(w){return new(w||P)};static \u0275cmp=o.VBU({type:P,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(w,T){1&w&&(o.j41(0,"li",0),o.bIt("click",function(Qe){return T.onOptionClick(Qe)})("mouseenter",function(Qe){return T.onOptionMouseEnter(Qe)}),o.DNE(1,Gr,2,1,"span",1),o.DNE(2,xs,1,0,"ng-container",2),o.k0s()),2&w&&(o.Y8G("id",T.id)("ngStyle",o.eq3(13,ks,T.itemSize+"px"))("ngClass",o.sMw(15,Vr,T.selected,T.disabled,T.focused)),o.BMQ("aria-label",T.label)("aria-setsize",T.ariaSetSize)("aria-posinset",T.ariaPosInset)("aria-selected",T.selected)("data-p-focused",T.focused)("data-p-highlight",T.selected)("data-p-disabled",T.disabled),o.R7$(1),o.Y8G("ngIf",!T.template),o.R7$(1),o.Y8G("ngTemplateOutlet",T.template)("ngTemplateOutletContext",o.eq3(19,Gs,T.option)))},dependencies:[g.YU,g.bT,g.T3,g.B3,Vi],encapsulation:2})}return P})(),gl=(()=>{class P{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(p){p&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=p,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(p){this._itemSize=p,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(p){this._autoZIndex=p,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(p){this._baseZIndex=p,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(p){this._showTransitionOptions=p,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(p){this._hideTransitionOptions=p,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(p){this._filterValue.set(p)}get options(){return this._options()}set options(p){this._options.set(p)}onChange=new o.bkB;onFilter=new o.bkB;onFocus=new o.bkB;onBlur=new o.bkB;onClick=new o.bkB;onShow=new o.bkB;onHide=new o.bkB;onClear=new o.bkB;onLazyLoad=new o.bkB;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=(0,o.vPA)(null);modelValue=(0,o.vPA)(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=(0,o.vPA)(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=(0,o.vPA)(-1);labelId;listId;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(jt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(jt.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&pe.isNotEmpty(this.modelValue())&&""!==this.modelValue()&&this.showClear&&!this.disabled}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const p=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder&&p===this.placeholder,"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||p&&"p-emptylabel"!==p&&0!==p.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}visibleOptions=(0,o.EWP)(()=>{const p=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const w=this.filterBy||this.filterFields||this.optionValue?this.filterService.filter(p,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):this.options.filter(T=>-1!==T.toLowerCase().indexOf(this._filterValue().toLowerCase()));if(this.group){const Z=[];return(this.options||[]).forEach(Qe=>{const ri=this.getOptionGroupChildren(Qe).filter(Si=>w.includes(Si));ri.length>0&&Z.push({...Qe,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...ri]})}),this.flatOptions(Z)}return w}return p});label=(0,o.EWP)(()=>{const p=this.findSelectedOptionIndex();return-1!==p?this.getOptionLabel(this.visibleOptions()[p]):this.placeholder||"p-emptylabel"});selectedOption;constructor(p,w,T,Z,Qe,rn){this.el=p,this.renderer=w,this.cd=T,this.zone=Z,this.filterService=Qe,this.config=rn,(0,o.QZP)(()=>{const ri=this.modelValue(),Si=this.visibleOptions();ri&&this.editable&&this.updateEditableLabel(),Si&&pe.isNotEmpty(Si)&&(this.selectedOption=Si[this.findSelectedOptionIndex()])})}ngOnInit(){this.id=this.id||be(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:p=>this.onFilterInputChange(p),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let p=Ce.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");p&&Ce.scrollInView(this.itemsWrapper,p),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(p=>{switch(p.getType()){case"item":default:this.itemTemplate=p.template;break;case"selectedItem":this.selectedItemTemplate=p.template;break;case"header":this.headerTemplate=p.template;break;case"filter":this.filterTemplate=p.template;break;case"footer":this.footerTemplate=p.template;break;case"emptyfilter":this.emptyFilterTemplate=p.template;break;case"empty":this.emptyTemplate=p.template;break;case"group":this.groupTemplate=p.template;break;case"loader":this.loaderTemplate=p.template;break;case"dropdownicon":this.dropdownIconTemplate=p.template;break;case"clearicon":this.clearIconTemplate=p.template;break;case"filtericon":this.filterIconTemplate=p.template}})}flatOptions(p){return(p||[]).reduce((w,T,Z)=>{w.push({optionGroup:T,group:!0,index:Z});const Qe=this.getOptionGroupChildren(T);return Qe&&Qe.forEach(rn=>w.push(rn)),w},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&!this.modelValue()){const p=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[p],!1,!0)}}onOptionSelect(p,w,T=!0,Z=!1){const Qe=this.getOptionValue(w);this.updateModel(Qe,p),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),T&&this.hide(!0),!1===Z&&this.onChange.emit({originalEvent:p,value:Qe})}onOptionMouseEnter(p,w){this.focusOnHover&&this.changeFocusedOptionIndex(p,w)}updateModel(p,w){this.value=p,this.onModelChange(p),this.modelValue.set(p),this.selectedOptionUpdated=!0}writeValue(p){this.filter&&this.resetFilter(),this.value=p,this.allowModelChange()&&this.onModelChange(p),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder&&!this.modelValue()&&!this.editable&&this.options&&this.options.length}isSelected(p){return this.isValidOption(p)&&pe.equals(this.modelValue(),this.getOptionValue(p),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=void 0===this.getOptionLabel(this.modelValue())?this.editableInputViewChild.nativeElement.value:this.getOptionLabel(this.modelValue()))}getOptionIndex(p,w){return this.virtualScrollerDisabled?p:w&&w.getItemOptions(p).index}getOptionLabel(p){return this.optionLabel?pe.resolveFieldData(p,this.optionLabel):p&&void 0!==p.label?p.label:p}getOptionValue(p){return this.optionValue?pe.resolveFieldData(p,this.optionValue):!this.optionLabel&&p&&void 0!==p.value?p.value:p}isOptionDisabled(p){return this.optionDisabled?pe.resolveFieldData(p,this.optionDisabled):!(!p||void 0===p.disabled)&&p.disabled}getOptionGroupLabel(p){return this.optionGroupLabel?pe.resolveFieldData(p,this.optionGroupLabel):p&&void 0!==p.label?p.label:p}getOptionGroupChildren(p){return this.optionGroupChildren?pe.resolveFieldData(p,this.optionGroupChildren):p.items}getAriaPosInset(p){return(this.optionGroupLabel?p-this.visibleOptions().slice(0,p).filter(w=>this.isOptionGroup(w)).length:p)+1}get ariaSetSize(){return this.visibleOptions().filter(p=>!this.isOptionGroup(p)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}onContainerClick(p){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==p.target.tagName&&"clearicon"!==p.target.getAttribute("data-pc-section")&&!p.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(p.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(p),this.cd.detectChanges()))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}onEditableInput(p){const w=p.target.value;this.searchValue="",!this.searchOptions(p,w)&&this.focusedOptionIndex.set(-1),this.onModelChange(w),this.updateModel(w,p),this.onChange.emit({originalEvent:p,value:w})}show(p){this.overlayVisible=!0;const w=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(w),p&&Ce.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(p){if("visible"===p.toState){if(this.itemsWrapper=Ce.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const w=this.modelValue()?this.focusedOptionIndex():-1;-1!==w&&this.scroller?.scrollToIndex(w)}else{let w=Ce.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");w&&w.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(p)}"void"===p.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(p))}hide(p){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),p&&Ce.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onInputFocus(p){if(this.disabled)return;this.focused=!0;const w=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(w),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(p)}onInputBlur(p){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(p),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(p,w){if(!this.disabled&&!this.readonly)switch(p.code){case"ArrowDown":this.onArrowDownKey(p);break;case"ArrowUp":this.onArrowUpKey(p,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(p,this.editable);break;case"Delete":this.onDeleteKey(p);break;case"Home":this.onHomeKey(p,this.editable);break;case"End":this.onEndKey(p,this.editable);break;case"PageDown":this.onPageDownKey(p);break;case"PageUp":this.onPageUpKey(p);break;case"Space":this.onSpaceKey(p,w);break;case"Enter":case"NumpadEnter":this.onEnterKey(p);break;case"Escape":this.onEscapeKey(p);break;case"Tab":this.onTabKey(p);break;case"Backspace":this.onBackspaceKey(p,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!p.metaKey&&pe.isPrintableCharacter(p.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(p,p.key))}}onFilterKeyDown(p){switch(p.code){case"ArrowDown":this.onArrowDownKey(p);break;case"ArrowUp":this.onArrowUpKey(p,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(p,!0);break;case"Home":this.onHomeKey(p,!0);break;case"End":this.onEndKey(p,!0);break;case"Enter":this.onEnterKey(p);break;case"Escape":this.onEscapeKey(p);break;case"Tab":this.onTabKey(p,!0)}}onFilterBlur(p){this.focusedOptionIndex.set(-1)}onArrowDownKey(p){const w=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(p,w),!this.overlayVisible&&this.show(),p.preventDefault()}changeFocusedOptionIndex(p,w){if(this.focusedOptionIndex()!==w&&(this.focusedOptionIndex.set(w),this.scrollInView(),this.selectOnFocus)){const T=this.visibleOptions()[w];this.onOptionSelect(p,T,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(p=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const T=Ce.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==p?`${this.id}_${p}`:this.focusedOptionId}"]`);T?T.scrollIntoView&&T.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==p?p:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}hasSelectedOption(){return pe.isNotEmpty(this.modelValue())}isValidSelectedOption(p){return this.isValidOption(p)&&this.isSelected(p)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const p=this.findSelectedOptionIndex();return p<0?this.findFirstOptionIndex():p}findFirstOptionIndex(){return this.visibleOptions().findIndex(p=>this.isValidOption(p))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(p=>this.isValidSelectedOption(p)):-1}findNextOptionIndex(p){const w=pthis.isValidOption(T)):-1;return w>-1?w+p+1:p}findPrevOptionIndex(p){const w=p>0?pe.findLastIndex(this.visibleOptions().slice(0,p),T=>this.isValidOption(T)):-1;return w>-1?w:p}findLastOptionIndex(){return pe.findLastIndex(this.visibleOptions(),p=>this.isValidOption(p))}findLastFocusedOptionIndex(){const p=this.findSelectedOptionIndex();return p<0?this.findLastOptionIndex():p}isValidOption(p){return p&&!(this.isOptionDisabled(p)||this.isOptionGroup(p))}isOptionGroup(p){return this.optionGroupLabel&&p.optionGroup&&p.group}onArrowUpKey(p,w=!1){if(p.altKey&&!w){if(-1!==this.focusedOptionIndex()){const T=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(p,T)}this.overlayVisible&&this.hide(),p.preventDefault()}else{const T=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(p,T),!this.overlayVisible&&this.show(),p.preventDefault()}}onArrowLeftKey(p,w=!1){w&&this.focusedOptionIndex.set(-1)}onDeleteKey(p){this.showClear&&(this.clear(p),p.preventDefault())}onHomeKey(p,w=!1){w?(p.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1)):(this.changeFocusedOptionIndex(p,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),p.preventDefault()}onEndKey(p,w=!1){if(w){const T=p.currentTarget,Z=T.value.length;T.setSelectionRange(Z,Z),this.focusedOptionIndex.set(-1)}else this.changeFocusedOptionIndex(p,this.findLastOptionIndex()),!this.overlayVisible&&this.show();p.preventDefault()}onPageDownKey(p){this.scrollInView(this.visibleOptions().length-1),p.preventDefault()}onPageUpKey(p){this.scrollInView(0),p.preventDefault()}onSpaceKey(p,w=!1){!w&&this.onEnterKey(p)}onEnterKey(p){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const w=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(p,w)}this.hide()}else this.onArrowDownKey(p);p.preventDefault()}onEscapeKey(p){this.overlayVisible&&this.hide(!0),p.preventDefault()}onTabKey(p,w=!1){if(!w)if(this.overlayVisible&&this.hasFocusableElements())Ce.focus(p.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),p.preventDefault();else{if(-1!==this.focusedOptionIndex()){const T=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(p,T)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(p){const w=p.relatedTarget===this.focusInputViewChild?.nativeElement?Ce.getFirstFocusableElement(this.overlayViewChild.el.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild.nativeElement;Ce.focus(w)}onLastHiddenFocus(p){const w=p.relatedTarget===this.focusInputViewChild?.nativeElement?Ce.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Ce.focus(w)}hasFocusableElements(){return Ce.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(p,w=!1){w&&!this.overlayVisible&&this.show()}searchFields(){return this.filterFields||[this.optionLabel]}searchOptions(p,w){this.searchValue=(this.searchValue||"")+w;let T=-1,Z=!1;return-1!==this.focusedOptionIndex()?(T=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(Qe=>this.isOptionMatched(Qe)),T=-1===T?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(Qe=>this.isOptionMatched(Qe)):T+this.focusedOptionIndex()):T=this.visibleOptions().findIndex(Qe=>this.isOptionMatched(Qe)),-1!==T&&(Z=!0),-1===T&&-1===this.focusedOptionIndex()&&(T=this.findFirstFocusedOptionIndex()),-1!==T&&this.changeFocusedOptionIndex(p,T),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),Z}isOptionMatched(p){return this.isValidOption(p)&&this.getOptionLabel(p).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(p){let w=p.target.value?.trim();this._filterValue.set(w),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:p,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),this.cd.markForCheck()}applyFocus(){this.editable?Ce.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():Ce.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(p){this.updateModel(null,p),this.updateEditableLabel(),this.onChange.emit({originalEvent:p,value:this.value}),this.onClear.emit(p)}static \u0275fac=function(w){return new(w||P)(o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(Fe),o.rXU(he))};static \u0275cmp=o.VBU({type:P,selectors:[["p-dropdown"]],contentQueries:function(w,T,Z){if(1&w&&o.wni(Z,it,4),2&w){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(w,T){if(1&w&&(o.GBs(Fr,5),o.GBs(is,5),o.GBs(Ro,5),o.GBs(Zo,5),o.GBs(Vo,5),o.GBs(qo,5),o.GBs(ea,5),o.GBs(oo,5),o.GBs(xo,5)),2&w){let Z;o.mGM(Z=o.lsd())&&(T.containerViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.filterViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.focusInputViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.editableInputViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.itemsViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.scroller=Z.first),o.mGM(Z=o.lsd())&&(T.overlayViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.firstHiddenFocusableElementOnOverlay=Z.first),o.mGM(Z=o.lsd())&&(T.lastHiddenFocusableElementOnOverlay=Z.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(w,T){2&w&&o.AVh("p-inputwrapper-filled",T.filled)("p-inputwrapper-focus",T.focused||T.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[o.Jv_([ua])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultPlaceholder",""],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(w,T){1&w&&(o.j41(0,"div",0,1),o.bIt("click",function(Qe){return T.onContainerClick(Qe)}),o.DNE(2,La,6,21,"span",2),o.DNE(3,ao,2,5,"input",3),o.DNE(4,na,3,2,"ng-container",4),o.j41(5,"div",5),o.DNE(6,ql,3,2,"ng-container",4),o.DNE(7,Ws,2,1,"span",6),o.k0s(),o.j41(8,"p-overlay",7,8),o.bIt("visibleChange",function(Qe){return T.overlayVisible=Qe})("onAnimationStart",function(Qe){return T.onOverlayAnimationStart(Qe)})("onHide",function(){return T.hide()}),o.DNE(10,Js,13,19,"ng-template",9),o.k0s()()),2&w&&(o.HbH(T.styleClass),o.Y8G("ngClass",T.containerClass)("ngStyle",T.style),o.BMQ("id",T.id),o.R7$(2),o.Y8G("ngIf",!T.editable),o.R7$(1),o.Y8G("ngIf",T.editable),o.R7$(1),o.Y8G("ngIf",T.isVisibleClearIcon),o.R7$(1),o.BMQ("aria-expanded",T.overlayVisible)("data-pc-section","trigger"),o.R7$(1),o.Y8G("ngIf",!T.dropdownIconTemplate),o.R7$(1),o.Y8G("ngIf",T.dropdownIconTemplate),o.R7$(1),o.Y8G("visible",T.overlayVisible)("options",T.overlayOptions)("target","@parent")("appendTo",T.appendTo)("autoZIndex",T.autoZIndex)("baseZIndex",T.baseZIndex)("showTransitionOptions",T.showTransitionOptions)("hideTransitionOptions",T.hideTransitionOptions))},dependencies:function(){return[g.YU,g.Sq,g.bT,g.T3,g.B3,hn,it,pi,Vn,rt,Ni,ii,lr,da]},styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return P})(),No=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,Mn,dt,ti,ni,qn,xt,Ni,ii,lr,Mn,dt,qn]})}return P})(),ia=(()=>{class P{el;ngModel;cd;filled;constructor(p,w,T){this.el=p,this.ngModel=w,this.cd=T}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(w){return new(w||P)(o.rXU(o.aKT),o.rXU(V.vS,8),o.rXU(o.gRc))};static \u0275dir=o.FsC({type:P,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(w,T){1&w&&o.bIt("input",function(Qe){return T.onInput(Qe)}),2&w&&o.AVh("p-filled",T.filled)}})}return P})(),zc=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();const Hl=["input"],rs=function(P,Le,p){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":P,"p-disabled":Le,"p-radiobutton-label-focus":p}};function H1(P,Le){if(1&P){const p=o.RV6();o.j41(0,"label",7),o.bIt("click",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.select(T))}),o.EFF(1),o.k0s()}if(2&P){const p=o.XpG(),w=o.sdS(3);o.HbH(p.labelStyleClass),o.Y8G("ngClass",o.sMw(6,rs,w.checked,p.disabled,p.focused)),o.BMQ("for",p.inputId)("data-pc-section","label"),o.R7$(1),o.JRh(p.label)}}const Ll=function(P,Le,p){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":P,"p-radiobutton-disabled":Le,"p-radiobutton-focused":p}},Wc=function(P,Le,p){return{"p-radiobutton-box":!0,"p-highlight":P,"p-disabled":Le,"p-focus":p}},Lr={provide:V.kq,useExisting:(0,o.Rfq)(()=>Ra),multi:!0};let vo=(()=>{class P{accessors=[];add(p,w){this.accessors.push([p,w])}remove(p){this.accessors=this.accessors.filter(w=>w[1]!==p)}select(p){this.accessors.forEach(w=>{this.isSameGroup(w,p)&&w[1]!==p&&w[1].writeValue(p.value)})}isSameGroup(p,w){return!!p[0].control&&p[0].control.root===w.control.control.root&&p[1].name===w.name}static \u0275fac=function(w){return new(w||P)};static \u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Ra=(()=>{class P{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new o.bkB;onFocus=new o.bkB;onBlur=new o.bkB;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(p,w,T){this.cd=p,this.injector=w,this.registry=T}ngOnInit(){this.control=this.injector.get(V.vO),this.checkName(),this.registry.add(this.control,this)}handleClick(p,w,T){p.preventDefault(),!this.disabled&&(this.select(p),T&&w.focus())}select(p){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:p,value:this.value}))}writeValue(p){this.checked=p==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}onInputFocus(p){this.focused=!0,this.onFocus.emit(p)}onInputBlur(p){this.focused=!1,this.onModelTouched(),this.onBlur.emit(p)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(w){return new(w||P)(o.rXU(o.gRc),o.rXU(o.zZn),o.rXU(vo))};static \u0275cmp=o.VBU({type:P,selectors:[["p-radioButton"]],viewQuery:function(w,T){if(1&w&&o.GBs(Hl,5),2&w){let Z;o.mGM(Z=o.lsd())&&(T.inputViewChild=Z.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[o.Jv_([Lr])],decls:7,vars:29,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","value","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(w,T){if(1&w){const Z=o.RV6();o.j41(0,"div",0),o.bIt("click",function(rn){o.eBV(Z);const ri=o.sdS(3);return o.Njj(T.handleClick(rn,ri,!0))}),o.j41(1,"div",1)(2,"input",2,3),o.bIt("focus",function(rn){return T.onInputFocus(rn)})("blur",function(rn){return T.onInputBlur(rn)}),o.k0s()(),o.j41(4,"div",4),o.nrm(5,"span",5),o.k0s()(),o.DNE(6,H1,2,10,"label",6)}2&w&&(o.HbH(T.styleClass),o.Y8G("ngStyle",T.style)("ngClass",o.sMw(21,Ll,T.checked,T.disabled,T.focused)),o.BMQ("data-pc-name","radiobutton")("data-pc-section","root"),o.R7$(1),o.BMQ("data-pc-section","hiddenInputWrapper"),o.R7$(1),o.Y8G("checked",T.checked)("disabled",T.disabled)("value",T.value),o.BMQ("id",T.inputId)("name",T.name)("aria-labelledby",T.ariaLabelledBy)("aria-label",T.ariaLabel)("tabindex",T.tabindex)("aria-checked",T.checked)("data-pc-section","hiddenInput"),o.R7$(2),o.Y8G("ngClass",o.sMw(25,Wc,T.checked,T.disabled,T.focused)),o.BMQ("data-pc-section","input"),o.R7$(1),o.BMQ("data-pc-section","icon"),o.R7$(1),o.Y8G("ngIf",T.label))},dependencies:[g.YU,g.bT,g.B3],encapsulation:2,changeDetection:0})}return P})(),Qa=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();const Ea=["input"],L1=function(P,Le,p){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":P,"p-disabled":Le,"p-focus":p}},Na={provide:V.kq,useExisting:(0,o.Rfq)(()=>vs),multi:!0};let vs=(()=>{class P{cd;style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;onChange=new o.bkB;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(p){this.cd=p}onClick(p){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:p,checked:this.modelValue}),p.preventDefault(),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(p){this.modelValue=p,this.cd.markForCheck()}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=function(w){return new(w||P)(o.rXU(o.gRc))};static \u0275cmp=o.VBU({type:P,selectors:[["p-inputSwitch"]],viewQuery:function(w,T){if(1&w&&o.GBs(Ea,5),2&w){let Z;o.mGM(Z=o.lsd())&&(T.input=Z.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[o.Jv_([Na])],decls:5,vars:22,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","focus","blur"],["input",""],[1,"p-inputswitch-slider"]],template:function(w,T){1&w&&(o.j41(0,"div",0),o.bIt("click",function(Qe){return T.onClick(Qe)}),o.j41(1,"div",1)(2,"input",2,3),o.bIt("focus",function(){return T.onFocus()})("blur",function(){return T.onBlur()}),o.k0s()(),o.nrm(4,"span",4),o.k0s()),2&w&&(o.HbH(T.styleClass),o.Y8G("ngClass",o.sMw(18,L1,T.checked(),T.disabled,T.focused))("ngStyle",T.style),o.BMQ("data-pc-name","inputswitch")("data-pc-section","root"),o.R7$(1),o.BMQ("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),o.R7$(1),o.Y8G("checked",T.checked())("disabled",T.disabled),o.BMQ("id",T.inputId)("aria-checked",T.checked())("aria-labelledby",T.ariaLabelledBy)("aria-label",T.ariaLabel)("name",T.name)("tabindex",T.tabindex)("data-pc-section","hiddenInput"),o.R7$(2),o.BMQ("data-pc-section","slider"))},dependencies:[g.YU,g.B3],styles:['@layer primeng{.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}}\n'],encapsulation:2,changeDetection:0})}return P})(),Ja=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})(),pc=(()=>{class P{el;ngModel;control;cd;autoResize;onResize=new o.bkB;filled;cachedScrollHeight;ngModelSubscription;ngControlSubscription;constructor(p,w,T,Z){this.el=p,this.ngModel=w,this.control=T,this.cd=Z}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewChecked(){this.updateState()}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(p){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}resize(p){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(p||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}static \u0275fac=function(w){return new(w||P)(o.rXU(o.aKT),o.rXU(V.vS,8),o.rXU(V.vO,8),o.rXU(o.gRc))};static \u0275dir=o.FsC({type:P,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(w,T){1&w&&o.bIt("input",function(Qe){return T.onInput(Qe)}),2&w&&o.AVh("p-filled",T.filled)("p-inputtextarea-resizable",T.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}})}return P})(),zl=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();var co=F(6897);const vl=["sliderHandle"],qr=["sliderHandleStart"],sc=["sliderHandleEnd"],ie=function(P,Le){return{left:P,width:Le}};function Rt(P,Le){if(1&P&&o.nrm(0,"span",5),2&P){const p=o.XpG();o.Y8G("ngStyle",o.l_i(2,ie,null!=p.offset?p.offset+"%":p.handleValues[0]+"%",p.diff?p.diff+"%":p.handleValues[1]-p.handleValues[0]+"%")),o.BMQ("data-pc-section","range")}}const Y=function(P,Le){return{bottom:P,height:Le}};function me(P,Le){if(1&P&&o.nrm(0,"span",5),2&P){const p=o.XpG();o.Y8G("ngStyle",o.l_i(2,Y,null!=p.offset?p.offset+"%":p.handleValues[0]+"%",p.diff?p.diff+"%":p.handleValues[1]-p.handleValues[0]+"%")),o.BMQ("data-pc-section","range")}}const Ye=function(P){return{height:P}};function Ct(P,Le){if(1&P&&o.nrm(0,"span",5),2&P){const p=o.XpG();o.Y8G("ngStyle",o.eq3(2,Ye,p.handleValue+"%")),o.BMQ("data-pc-section","range")}}const Oe=function(P){return{width:P}};function nn(P,Le){if(1&P&&o.nrm(0,"span",5),2&P){const p=o.XpG();o.Y8G("ngStyle",o.eq3(2,Oe,p.handleValue+"%")),o.BMQ("data-pc-section","range")}}const Qt=function(P,Le){return{left:P,bottom:Le}};function ne(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",6,7),o.bIt("touchstart",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDragStart(T))})("touchmove",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDrag(T))})("touchend",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDragEnd(T))})("mousedown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onMouseDown(T))})("keydown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onKeyDown(T))}),o.k0s()}if(2&P){const p=o.XpG();o.xc7("transition",p.dragging?"none":null),o.Y8G("ngStyle",o.l_i(11,Qt,"horizontal"==p.orientation?p.handleValue+"%":null,"vertical"==p.orientation?p.handleValue+"%":null)),o.BMQ("tabindex",p.disabled?null:p.tabindex)("aria-valuemin",p.min)("aria-valuenow",p.value)("aria-valuemax",p.max)("aria-labelledby",p.ariaLabelledBy)("aria-label",p.ariaLabel)("aria-orientation",p.orientation)("data-pc-section","handle")}}const fe=function(P){return{"p-slider-handle-active":P}};function ee(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",8,9),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onKeyDown(T,0))})("mousedown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onMouseDown(T,0))})("touchstart",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDragStart(T,0))})("touchmove",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDrag(T,0))})("touchend",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDragEnd(T))}),o.k0s()}if(2&P){const p=o.XpG();o.xc7("transition",p.dragging?"none":null),o.Y8G("ngStyle",o.l_i(12,Qt,p.rangeStartLeft,p.rangeStartBottom))("ngClass",o.eq3(15,fe,0==p.handleIndex)),o.BMQ("tabindex",p.disabled?null:p.tabindex)("aria-valuemin",p.min)("aria-valuenow",p.value?p.value[0]:null)("aria-valuemax",p.max)("aria-labelledby",p.ariaLabelledBy)("aria-label",p.ariaLabel)("aria-orientation",p.orientation)("data-pc-section","startHandler")}}function $e(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",10,11),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onKeyDown(T,1))})("mousedown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onMouseDown(T,1))})("touchstart",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDragStart(T,1))})("touchmove",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDrag(T,1))})("touchend",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onDragEnd(T))}),o.k0s()}if(2&P){const p=o.XpG();o.xc7("transition",p.dragging?"none":null),o.Y8G("ngStyle",o.l_i(12,Qt,p.rangeEndLeft,p.rangeEndBottom))("ngClass",o.eq3(15,fe,1==p.handleIndex)),o.BMQ("tabindex",p.disabled?null:p.tabindex)("aria-valuemin",p.min)("aria-valuenow",p.value?p.value[1]:null)("aria-valuemax",p.max)("aria-labelledby",p.ariaLabelledBy)("aria-label",p.ariaLabel)("aria-orientation",p.orientation)("data-pc-section","endHandler")}}const mt=function(P,Le,p,w){return{"p-slider p-component":!0,"p-disabled":P,"p-slider-horizontal":Le,"p-slider-vertical":p,"p-slider-animate":w}},Gn={provide:V.kq,useExisting:(0,o.Rfq)(()=>ir),multi:!0};let ir=(()=>{class P{document;platformId;el;renderer;ngZone;cd;animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;onChange=new o.bkB;onSlideEnd=new o.bkB;sliderHandle;sliderHandleStart;sliderHandleEnd;value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;constructor(p,w,T,Z,Qe,rn){this.document=p,this.platformId=w,this.el=T,this.renderer=Z,this.ngZone=Qe,this.cd=rn}onMouseDown(p,w){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:w,this.bindDragListeners(),p.target.focus(),p.preventDefault(),this.animate&&Ce.removeClass(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(p,w){if(!this.disabled){var T=p.changedTouches[0];this.startHandleValue=this.range?this.handleValues[w]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:w,"horizontal"===this.orientation?(this.startx=parseInt(T.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(T.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&Ce.removeClass(this.el.nativeElement.children[0],"p-slider-animate"),p.preventDefault()}}onDrag(p){if(!this.disabled){var T,w=p.changedTouches[0];T="horizontal"===this.orientation?Math.floor(100*(parseInt(w.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(w.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(p,T),p.preventDefault()}}onDragEnd(p){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:p,values:this.values}:{originalEvent:p,value:this.value}),this.animate&&Ce.addClass(this.el.nativeElement.children[0],"p-slider-animate"),p.preventDefault())}onBarClick(p){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(p),this.onSlideEnd.emit(this.range?{originalEvent:p,values:this.values}:{originalEvent:p,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(p,w){switch(this.handleIndex=w,p.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(p,w),p.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(p,w),p.preventDefault();break;case"PageDown":this.decrementValue(p,w,!0),p.preventDefault();break;case"PageUp":this.incrementValue(p,w,!0),p.preventDefault();break;case"Home":this.updateValue(this.min,p),p.preventDefault();break;case"End":this.updateValue(this.max,p),p.preventDefault()}}decrementValue(p,w,T=!1){let Z;Z=this.range?this.step?this.values[w]-this.step:this.values[w]-1:this.step?this.value-this.step:!this.step&&T?this.value-10:this.value-1,this.updateValue(Z,p),p.preventDefault()}incrementValue(p,w,T=!1){let Z;Z=this.range?this.step?this.values[w]+this.step:this.values[w]+1:this.step?this.value+this.step:!this.step&&T?this.value+10:this.value+1,this.updateValue(Z,p),p.preventDefault()}handleChange(p){let w=this.calculateHandleValue(p);this.setValueFromHandle(p,w)}bindDragListeners(){(0,g.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const p=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(p,"mousemove",w=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(w)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(p,"mouseup",w=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:w,values:this.values}:{originalEvent:w,value:this.value}),this.animate&&Ce.addClass(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(p,w){let T=this.getValueFromHandle(w);this.range?this.step?this.handleStepChange(T,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=w,this.updateValue(T,p)):this.step?this.handleStepChange(T,this.value):(this.handleValue=w,this.updateValue(T,p)),this.cd.markForCheck()}handleStepChange(p,w){let T=p-w,Z=w,Qe=this.step;T<0?Z=w+Math.ceil(p/Qe-w/Qe)*Qe:T>0&&(Z=w+Math.floor(p/Qe-w/Qe)*Qe),this.updateValue(Z),this.updateHandleValue()}writeValue(p){this.range?this.values=p||[0,0]:this.value=p||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let p=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=p.left+Ce.getWindowScrollLeft(),this.initY=p.top+Ce.getWindowScrollTop(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(p){return"horizontal"===this.orientation?100*(p.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-p.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.valuethis.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(p,w){if(this.range){let T=p;0==this.handleIndex?(Tthis.values[1]&&T>this.max&&(T=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(T>this.max?(T=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):Tthis.max&&(p=this.max,this.handleValue=100),this.value=this.getNormalizedValue(p),this.onModelChange(this.value),this.onChange.emit({event:w,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(p){return p/100*(this.max-this.min)+this.min}getDecimalsCount(p){return p&&Math.floor(p)!==p&&p.toString().split(".")[1].length||0}getNormalizedValue(p){let w=this.getDecimalsCount(this.step);return w>0?+parseFloat(p.toString()).toFixed(w):Math.floor(p)}ngOnDestroy(){this.unbindDragListeners()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=function(w){return new(w||P)(o.rXU(g.qQ),o.rXU(o.Agw),o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(o.SKi),o.rXU(o.gRc))};static \u0275cmp=o.VBU({type:P,selectors:[["p-slider"]],viewQuery:function(w,T){if(1&w&&(o.GBs(vl,5),o.GBs(qr,5),o.GBs(sc,5)),2&w){let Z;o.mGM(Z=o.lsd())&&(T.sliderHandle=Z.first),o.mGM(Z=o.lsd())&&(T.sliderHandleStart=Z.first),o.mGM(Z=o.lsd())&&(T.sliderHandleEnd=Z.first)}},hostAttrs:[1,"p-element"],inputs:{animate:"animate",disabled:"disabled",min:"min",max:"max",orientation:"orientation",step:"step",range:"range",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex"},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[o.Jv_([Gn])],decls:8,vars:18,consts:[[3,"ngStyle","ngClass","click"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"ngStyle","touchstart","touchmove","touchend","mousedown","keydown"],["sliderHandle",""],["role","slider",1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleStart",""],[1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleEnd",""]],template:function(w,T){1&w&&(o.j41(0,"div",0),o.bIt("click",function(Qe){return T.onBarClick(Qe)}),o.DNE(1,Rt,1,5,"span",1),o.DNE(2,me,1,5,"span",1),o.DNE(3,Ct,1,4,"span",1),o.DNE(4,nn,1,4,"span",1),o.DNE(5,ne,2,14,"span",2),o.DNE(6,ee,2,17,"span",3),o.DNE(7,$e,2,17,"span",4),o.k0s()),2&w&&(o.HbH(T.styleClass),o.Y8G("ngStyle",T.style)("ngClass",o.ziG(13,mt,T.disabled,"horizontal"==T.orientation,"vertical"==T.orientation,T.animate)),o.BMQ("data-pc-name","slider")("data-pc-section","root"),o.R7$(1),o.Y8G("ngIf",T.range&&"horizontal"==T.orientation),o.R7$(1),o.Y8G("ngIf",T.range&&"vertical"==T.orientation),o.R7$(1),o.Y8G("ngIf",!T.range&&"vertical"==T.orientation),o.R7$(1),o.Y8G("ngIf",!T.range&&"horizontal"==T.orientation),o.R7$(1),o.Y8G("ngIf",!T.range),o.R7$(1),o.Y8G("ngIf",T.range),o.R7$(1),o.Y8G("ngIf",T.range))},dependencies:[g.YU,g.bT,g.B3],styles:["@layer primeng{.p-slider{position:relative}.p-slider .p-slider-handle{position:absolute;cursor:grab;touch-action:none;display:block}.p-slider-range{position:absolute;display:block}.p-slider-horizontal .p-slider-range{top:0;left:0;height:100%}.p-slider-horizontal .p-slider-handle{top:50%}.p-slider-vertical{height:100px}.p-slider-vertical .p-slider-handle{left:50%}.p-slider-vertical .p-slider-range{bottom:0;left:0;width:100%}}\n"],encapsulation:2,changeDetection:0})}return P})(),zr=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();const fa={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let e2=(()=>{class P{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(p){this._label=p,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(p){this._icon=p,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(p){this._loading=p,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(fa);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(p,w){this.el=p,this.document=w}ngAfterViewInit(){Ce.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const p=[fa.button,fa.component];return this.icon&&!this.label&&pe.isEmpty(this.htmlElement.textContent)&&p.push(fa.iconOnly),this.loading&&(p.push(fa.disabled,fa.loading),!this.icon&&this.label&&p.push(fa.labelOnly),this.icon&&!this.label&&!pe.isEmpty(this.htmlElement.textContent)&&p.push(fa.iconOnly)),p}setStyleClass(){const p=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...p)}createLabel(){if(this.label){let p=this.document.createElement("span");this.icon&&!this.label&&p.setAttribute("aria-hidden","true"),p.className="p-button-label",p.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(p)}}createIcon(){if(this.icon||this.loading){let p=this.document.createElement("span");p.className="p-button-icon",p.setAttribute("aria-hidden","true");let w=this.label?"p-button-icon-"+this.iconPos:null;w&&Ce.addClass(p,w);let T=this.getIconClass();T&&Ce.addMultipleClasses(p,T),!this.loadingIcon&&this.loading&&(p.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(p,this.htmlElement.firstChild)}}updateLabel(){let p=Ce.findSingle(this.htmlElement,".p-button-label");this.label?p?p.textContent=this.label:this.createLabel():p&&this.htmlElement.removeChild(p)}updateIcon(){let p=Ce.findSingle(this.htmlElement,".p-button-icon"),w=Ce.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&p?p.innerHTML=this.spinnerIcon:p?.innerHTML&&(p.innerHTML=""),p?p.className=this.iconPos?"p-button-icon "+(w?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(w){return new(w||P)(o.rXU(o.aKT),o.rXU(g.qQ))};static \u0275dir=o.FsC({type:P,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return P})(),z1=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,ni,dt,Qi,dt]})}return P})(),Xl=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),y1=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["ChevronRightIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),_l=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["ChevronUpIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),sl=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["CalendarIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(w,T){1&w&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&w&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})();const Su=["container"],d1=["inputfield"],ku=["contentWrapper"];function bl(P,Le){if(1&P){const p=o.RV6();o.j41(0,"TimesIcon",10),o.bIt("click",function(){o.eBV(p);const T=o.XpG(3);return o.Njj(T.clear())}),o.k0s()}2&P&&o.Y8G("styleClass","p-calendar-clear-icon")}function tu(P,Le){}function C1(P,Le){1&P&&o.DNE(0,tu,0,0,"ng-template")}function Sc(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",11),o.bIt("click",function(){o.eBV(p);const T=o.XpG(3);return o.Njj(T.clear())}),o.DNE(1,C1,1,0,null,12),o.k0s()}if(2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngTemplateOutlet",p.clearIconTemplate)}}function nu(P,Le){if(1&P&&(o.qex(0),o.DNE(1,bl,1,1,"TimesIcon",8),o.DNE(2,Sc,2,1,"span",9),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("ngIf",!p.clearIconTemplate),o.R7$(1),o.Y8G("ngIf",p.clearIconTemplate)}}function Eu(P,Le){if(1&P&&o.nrm(0,"span",15),2&P){const p=o.XpG(3);o.Y8G("ngClass",p.icon)}}function Du(P,Le){1&P&&o.nrm(0,"CalendarIcon")}function iu(P,Le){}function sd(P,Le){1&P&&o.DNE(0,iu,0,0,"ng-template")}function t2(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Du,1,0,"CalendarIcon",6),o.DNE(2,sd,1,0,null,12),o.bVm()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngIf",!p.triggerIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.triggerIconTemplate)}}function od(P,Le){if(1&P){const p=o.RV6();o.j41(0,"button",13),o.bIt("click",function(T){o.eBV(p),o.XpG();const Z=o.sdS(1),Qe=o.XpG();return o.Njj(Qe.onButtonClick(T,Z))}),o.DNE(1,Eu,1,1,"span",14),o.DNE(2,t2,3,2,"ng-container",6),o.k0s()}if(2&P){const p=o.XpG(2);o.Y8G("disabled",p.disabled),o.BMQ("aria-label",p.iconButtonAriaLabel)("aria-expanded",p.overlayVisible)("aria-controls",p.panelId),o.R7$(1),o.Y8G("ngIf",p.icon),o.R7$(1),o.Y8G("ngIf",!p.icon)}}function X(P,Le){if(1&P){const p=o.RV6();o.j41(0,"input",4,5),o.bIt("focus",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInputFocus(T))})("keydown",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInputKeydown(T))})("click",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onInputClick())})("blur",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInputBlur(T))})("input",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onUserInput(T))}),o.k0s(),o.DNE(2,nu,3,2,"ng-container",6),o.DNE(3,od,3,6,"button",7)}if(2&P){const p=o.XpG();o.HbH(p.inputStyleClass),o.Y8G("value",p.inputFieldValue)("readonly",p.readonlyInput)("ngStyle",p.inputStyle)("placeholder",p.placeholder||"")("disabled",p.disabled)("ngClass","p-inputtext p-component"),o.BMQ("id",p.inputId)("name",p.name)("required",p.required)("aria-required",p.required)("aria-expanded",p.overlayVisible)("aria-controls",p.panelId)("aria-labelledby",p.ariaLabelledBy)("aria-label",p.ariaLabel)("tabindex",p.tabindex)("inputmode",p.touchUI?"off":null),o.R7$(2),o.Y8G("ngIf",p.showClear&&!p.disabled&&null!=p.value),o.R7$(1),o.Y8G("ngIf",p.showIcon)}}function Pe(P,Le){1&P&&o.eu8(0)}function le(P,Le){1&P&&o.nrm(0,"ChevronLeftIcon",37),2&P&&o.Y8G("styleClass","p-datepicker-prev-icon")}function Ie(P,Le){}function Ot(P,Le){1&P&&o.DNE(0,Ie,0,0,"ng-template")}function bn(P,Le){if(1&P&&(o.j41(0,"span",38),o.DNE(1,Ot,1,0,null,12),o.k0s()),2&P){const p=o.XpG(5);o.R7$(1),o.Y8G("ngTemplateOutlet",p.previousIconTemplate)}}function Pn(P,Le){if(1&P){const p=o.RV6();o.j41(0,"button",35),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(4);return o.Njj(Z.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const Z=o.XpG(4);return o.Njj(Z.onPrevButtonClick(T))}),o.DNE(1,le,1,1,"ChevronLeftIcon",32),o.DNE(2,bn,2,1,"span",36),o.k0s()}if(2&P){const p=o.XpG(4);o.BMQ("aria-label",p.prevIconAriaLabel),o.R7$(1),o.Y8G("ngIf",!p.previousIconTemplate),o.R7$(1),o.Y8G("ngIf",p.previousIconTemplate)}}function Oi(P,Le){if(1&P){const p=o.RV6();o.j41(0,"button",39),o.bIt("click",function(T){o.eBV(p);const Z=o.XpG(4);return o.Njj(Z.switchToMonthView(T))})("keydown",function(T){o.eBV(p);const Z=o.XpG(4);return o.Njj(Z.onContainerButtonKeydown(T))}),o.EFF(1),o.k0s()}if(2&P){const p=o.XpG().$implicit,w=o.XpG(3);o.Y8G("disabled",w.switchViewButtonDisabled()),o.BMQ("aria-label",w.getTranslation("chooseMonth")),o.R7$(1),o.SpI(" ",w.getMonthName(p.month)," ")}}function lo(P,Le){if(1&P){const p=o.RV6();o.j41(0,"button",40),o.bIt("click",function(T){o.eBV(p);const Z=o.XpG(4);return o.Njj(Z.switchToYearView(T))})("keydown",function(T){o.eBV(p);const Z=o.XpG(4);return o.Njj(Z.onContainerButtonKeydown(T))}),o.EFF(1),o.k0s()}if(2&P){const p=o.XpG().$implicit,w=o.XpG(3);o.Y8G("disabled",w.switchViewButtonDisabled()),o.BMQ("aria-label",w.getTranslation("chooseYear")),o.R7$(1),o.SpI(" ",w.getYear(p)," ")}}function _o(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(5);o.R7$(1),o.Lme("",p.yearPickerValues()[0]," - ",p.yearPickerValues()[p.yearPickerValues().length-1],"")}}function Ds(P,Le){1&P&&o.eu8(0)}const xr=function(P){return{$implicit:P}};function ko(P,Le){if(1&P&&(o.j41(0,"span",41),o.DNE(1,_o,2,2,"ng-container",6),o.DNE(2,Ds,1,0,"ng-container",42),o.k0s()),2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("ngIf",!p.decadeTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decadeTemplate)("ngTemplateOutletContext",o.eq3(3,xr,p.yearPickerValues))}}function ms(P,Le){1&P&&o.nrm(0,"ChevronRightIcon",37),2&P&&o.Y8G("styleClass","p-datepicker-next-icon")}function ha(P,Le){}function Fa(P,Le){1&P&&o.DNE(0,ha,0,0,"ng-template")}function mc(P,Le){if(1&P&&(o.j41(0,"span",43),o.DNE(1,Fa,1,0,null,12),o.k0s()),2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("ngTemplateOutlet",p.nextIconTemplate)}}function kc(P,Le){if(1&P&&(o.j41(0,"th",49)(1,"span"),o.EFF(2),o.k0s()()),2&P){const p=o.XpG(5);o.R7$(2),o.JRh(p.getTranslation("weekHeader"))}}function js(P,Le){if(1&P&&(o.j41(0,"th",50)(1,"span"),o.EFF(2),o.k0s()()),2&P){const p=Le.$implicit;o.R7$(2),o.JRh(p)}}function uo(P,Le){if(1&P&&(o.j41(0,"td",53)(1,"span",54),o.EFF(2),o.k0s()()),2&P){const p=o.XpG().index,w=o.XpG(2).$implicit;o.R7$(2),o.SpI(" ",w.weekNumbers[p]," ")}}function oc(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(2).$implicit;o.R7$(1),o.JRh(p.day)}}function yl(P,Le){1&P&&o.eu8(0)}function S2(P,Le){if(1&P&&(o.qex(0),o.DNE(1,yl,1,0,"ng-container",42),o.bVm()),2&P){const p=o.XpG(2).$implicit,w=o.XpG(6);o.R7$(1),o.Y8G("ngTemplateOutlet",w.dateTemplate)("ngTemplateOutletContext",o.eq3(2,xr,p))}}function $o(P,Le){1&P&&o.eu8(0)}function Za(P,Le){if(1&P&&(o.qex(0),o.DNE(1,$o,1,0,"ng-container",42),o.bVm()),2&P){const p=o.XpG(2).$implicit,w=o.XpG(6);o.R7$(1),o.Y8G("ngTemplateOutlet",w.disabledDateTemplate)("ngTemplateOutletContext",o.eq3(2,xr,p))}}function ot(P,Le){if(1&P&&(o.j41(0,"div",57),o.EFF(1),o.k0s()),2&P){const p=o.XpG(2).$implicit;o.R7$(1),o.SpI(" ",p.day," ")}}const gc=function(P,Le){return{"p-highlight":P,"p-disabled":Le}};function ac(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"span",55),o.bIt("click",function(T){o.eBV(p);const Z=o.XpG().$implicit,Qe=o.XpG(6);return o.Njj(Qe.onDateSelect(T,Z))})("keydown",function(T){o.eBV(p);const Z=o.XpG().$implicit,Qe=o.XpG(3).index,rn=o.XpG(3);return o.Njj(rn.onDateCellKeydown(T,Z,Qe))}),o.DNE(2,oc,2,1,"ng-container",6),o.DNE(3,S2,2,4,"ng-container",6),o.DNE(4,Za,2,4,"ng-container",6),o.k0s(),o.DNE(5,ot,2,1,"div",56),o.bVm()}if(2&P){const p=o.XpG().$implicit,w=o.XpG(6);o.R7$(1),o.Y8G("ngClass",o.l_i(5,gc,w.isSelected(p)&&p.selectable,!p.selectable)),o.R7$(1),o.Y8G("ngIf",!w.dateTemplate&&(p.selectable||!w.disabledDateTemplate)),o.R7$(1),o.Y8G("ngIf",p.selectable||!w.disabledDateTemplate),o.R7$(1),o.Y8G("ngIf",!p.selectable),o.R7$(1),o.Y8G("ngIf",w.isSelected(p))}}const R1=function(P,Le){return{"p-datepicker-other-month":P,"p-datepicker-today":Le}};function k2(P,Le){if(1&P&&(o.j41(0,"td",15),o.DNE(1,ac,6,8,"ng-container",6),o.k0s()),2&P){const p=Le.$implicit,w=o.XpG(6);o.Y8G("ngClass",o.l_i(3,R1,p.otherMonth,p.today)),o.BMQ("aria-label",p.day),o.R7$(1),o.Y8G("ngIf",!p.otherMonth||w.showOtherMonths)}}function cc(P,Le){if(1&P&&(o.j41(0,"tr"),o.DNE(1,uo,3,1,"td",51),o.DNE(2,k2,2,6,"td",52),o.k0s()),2&P){const p=Le.$implicit,w=o.XpG(5);o.R7$(1),o.Y8G("ngIf",w.showWeek),o.R7$(1),o.Y8G("ngForOf",p)}}function Ud(P,Le){if(1&P&&(o.j41(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),o.DNE(4,kc,3,1,"th",46),o.DNE(5,js,3,1,"th",47),o.k0s()(),o.j41(6,"tbody"),o.DNE(7,cc,3,2,"tr",48),o.k0s()()()),2&P){const p=o.XpG().$implicit,w=o.XpG(3);o.R7$(4),o.Y8G("ngIf",w.showWeek),o.R7$(1),o.Y8G("ngForOf",w.weekDays),o.R7$(2),o.Y8G("ngForOf",p.dates)}}function Gd(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",24)(1,"div",25),o.DNE(2,Pn,3,3,"button",26),o.j41(3,"div",27),o.DNE(4,Oi,2,3,"button",28),o.DNE(5,lo,2,3,"button",29),o.DNE(6,ko,3,5,"span",30),o.k0s(),o.j41(7,"button",31),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onNextButtonClick(T))}),o.DNE(8,ms,1,1,"ChevronRightIcon",32),o.DNE(9,mc,2,1,"span",33),o.k0s()(),o.DNE(10,Ud,8,3,"div",34),o.k0s()}if(2&P){const p=Le.index,w=o.XpG(3);o.R7$(2),o.Y8G("ngIf",0===p),o.R7$(2),o.Y8G("ngIf","date"===w.currentView),o.R7$(1),o.Y8G("ngIf","year"!==w.currentView),o.R7$(1),o.Y8G("ngIf","year"===w.currentView),o.R7$(1),o.xc7("display",1===w.numberOfMonths||p===w.numberOfMonths-1?"inline-flex":"none"),o.BMQ("aria-label",w.nextIconAriaLabel),o.R7$(1),o.Y8G("ngIf",!w.nextIconTemplate),o.R7$(1),o.Y8G("ngIf",w.nextIconTemplate),o.R7$(1),o.Y8G("ngIf","date"===w.currentView)}}function Tu(P,Le){if(1&P&&(o.j41(0,"div",57),o.EFF(1),o.k0s()),2&P){const p=o.XpG().$implicit;o.R7$(1),o.SpI(" ",p," ")}}function qc(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",60),o.bIt("click",function(T){const Qe=o.eBV(p).index,rn=o.XpG(4);return o.Njj(rn.onMonthSelect(T,Qe))})("keydown",function(T){const Qe=o.eBV(p).index,rn=o.XpG(4);return o.Njj(rn.onMonthCellKeydown(T,Qe))}),o.EFF(1),o.DNE(2,Tu,2,1,"div",56),o.k0s()}if(2&P){const p=Le.$implicit,w=Le.index,T=o.XpG(4);o.Y8G("ngClass",o.l_i(3,gc,T.isMonthSelected(w),T.isMonthDisabled(w))),o.R7$(1),o.SpI(" ",p," "),o.R7$(1),o.Y8G("ngIf",T.isMonthSelected(w))}}function ru(P,Le){if(1&P&&(o.j41(0,"div",58),o.DNE(1,qc,3,6,"span",59),o.k0s()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngForOf",p.monthPickerValues())}}function Wd(P,Le){if(1&P&&(o.j41(0,"div",57),o.EFF(1),o.k0s()),2&P){const p=o.XpG().$implicit;o.R7$(1),o.SpI(" ",p," ")}}function n2(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",63),o.bIt("click",function(T){const Qe=o.eBV(p).$implicit,rn=o.XpG(4);return o.Njj(rn.onYearSelect(T,Qe))})("keydown",function(T){const Qe=o.eBV(p).$implicit,rn=o.XpG(4);return o.Njj(rn.onYearCellKeydown(T,Qe))}),o.EFF(1),o.DNE(2,Wd,2,1,"div",56),o.k0s()}if(2&P){const p=Le.$implicit,w=o.XpG(4);o.Y8G("ngClass",o.l_i(3,gc,w.isYearSelected(p),w.isYearDisabled(p))),o.R7$(1),o.SpI(" ",p," "),o.R7$(1),o.Y8G("ngIf",w.isYearSelected(p))}}function Nl(P,Le){if(1&P&&(o.j41(0,"div",61),o.DNE(1,n2,3,6,"span",62),o.k0s()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngForOf",p.yearPickerValues())}}function su(P,Le){if(1&P&&(o.qex(0),o.j41(1,"div",20),o.DNE(2,Gd,11,10,"div",21),o.k0s(),o.DNE(3,ru,2,1,"div",22),o.DNE(4,Nl,2,1,"div",23),o.bVm()),2&P){const p=o.XpG(2);o.R7$(2),o.Y8G("ngForOf",p.months),o.R7$(1),o.Y8G("ngIf","month"===p.currentView),o.R7$(1),o.Y8G("ngIf","year"===p.currentView)}}function Vu(P,Le){1&P&&o.nrm(0,"ChevronUpIcon")}function Zr(P,Le){}function ou(P,Le){1&P&&o.DNE(0,Zr,0,0,"ng-template")}function Pl(P,Le){1&P&&(o.qex(0),o.EFF(1,"0"),o.bVm())}function x1(P,Le){1&P&&o.nrm(0,"ChevronDownIcon")}function f1(P,Le){}function ad(P,Le){1&P&&o.DNE(0,f1,0,0,"ng-template")}function cd(P,Le){1&P&&o.nrm(0,"ChevronUpIcon")}function E2(P,Le){}function Au(P,Le){1&P&&o.DNE(0,E2,0,0,"ng-template")}function qd(P,Le){1&P&&(o.qex(0),o.EFF(1,"0"),o.bVm())}function Cl(P,Le){1&P&&o.nrm(0,"ChevronDownIcon")}function H3(P,Le){}function Iu(P,Le){1&P&&o.DNE(0,H3,0,0,"ng-template")}function li(P,Le){if(1&P&&(o.j41(0,"div",67)(1,"span"),o.EFF(2),o.k0s()()),2&P){const p=o.XpG(3);o.R7$(2),o.JRh(p.timeSeparator)}}function Fs(P,Le){1&P&&o.nrm(0,"ChevronUpIcon")}function au(P,Le){}function ld(P,Le){1&P&&o.DNE(0,au,0,0,"ng-template")}function Ec(P,Le){1&P&&(o.qex(0),o.EFF(1,"0"),o.bVm())}function w1(P,Le){1&P&&o.nrm(0,"ChevronDownIcon")}function D2(P,Le){}function ol(P,Le){1&P&&o.DNE(0,D2,0,0,"ng-template")}function T2(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",72)(1,"button",66),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.incrementSecond(T))})("keydown.space",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.incrementSecond(T))})("mousedown",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onTimePickerElementMouseDown(T,2,1))})("mouseup",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(3);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(2,Fs,1,0,"ChevronUpIcon",6),o.DNE(3,ld,1,0,null,12),o.k0s(),o.j41(4,"span"),o.DNE(5,Ec,2,0,"ng-container",6),o.EFF(6),o.k0s(),o.j41(7,"button",66),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.decrementSecond(T))})("keydown.space",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.decrementSecond(T))})("mousedown",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onTimePickerElementMouseDown(T,2,-1))})("mouseup",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(3);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(8,w1,1,0,"ChevronDownIcon",6),o.DNE(9,ol,1,0,null,12),o.k0s()()}if(2&P){const p=o.XpG(3);o.R7$(1),o.BMQ("aria-label",p.getTranslation("nextSecond")),o.R7$(1),o.Y8G("ngIf",!p.incrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.incrementIconTemplate),o.R7$(2),o.Y8G("ngIf",p.currentSecond<10),o.R7$(1),o.JRh(p.currentSecond),o.R7$(1),o.BMQ("aria-label",p.getTranslation("prevSecond")),o.R7$(1),o.Y8G("ngIf",!p.decrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decrementIconTemplate)}}function V2(P,Le){1&P&&o.nrm(0,"ChevronUpIcon")}function ud(P,Le){}function cu(P,Le){1&P&&o.DNE(0,ud,0,0,"ng-template")}function ue(P,Le){1&P&&o.nrm(0,"ChevronDownIcon")}function j(P,Le){}function N(P,Le){1&P&&o.DNE(0,j,0,0,"ng-template")}function K(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",73)(1,"button",74),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.toggleAMPM(T))})("keydown.enter",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.toggleAMPM(T))}),o.DNE(2,V2,1,0,"ChevronUpIcon",6),o.DNE(3,cu,1,0,null,12),o.k0s(),o.j41(4,"span"),o.EFF(5),o.k0s(),o.j41(6,"button",74),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.toggleAMPM(T))})("keydown.enter",function(T){o.eBV(p);const Z=o.XpG(3);return o.Njj(Z.toggleAMPM(T))}),o.DNE(7,ue,1,0,"ChevronDownIcon",6),o.DNE(8,N,1,0,null,12),o.k0s()()}if(2&P){const p=o.XpG(3);o.R7$(1),o.BMQ("aria-label",p.getTranslation("am")),o.R7$(1),o.Y8G("ngIf",!p.incrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.incrementIconTemplate),o.R7$(2),o.JRh(p.pm?"PM":"AM"),o.R7$(1),o.BMQ("aria-label",p.getTranslation("pm")),o.R7$(1),o.Y8G("ngIf",!p.decrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decrementIconTemplate)}}function ve(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",64)(1,"div",65)(2,"button",66),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.incrementHour(T))})("keydown.space",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.incrementHour(T))})("mousedown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseDown(T,0,1))})("mouseup",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(3,Vu,1,0,"ChevronUpIcon",6),o.DNE(4,ou,1,0,null,12),o.k0s(),o.j41(5,"span"),o.DNE(6,Pl,2,0,"ng-container",6),o.EFF(7),o.k0s(),o.j41(8,"button",66),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.decrementHour(T))})("keydown.space",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.decrementHour(T))})("mousedown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseDown(T,0,-1))})("mouseup",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(9,x1,1,0,"ChevronDownIcon",6),o.DNE(10,ad,1,0,null,12),o.k0s()(),o.j41(11,"div",67)(12,"span"),o.EFF(13),o.k0s()(),o.j41(14,"div",68)(15,"button",66),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.incrementMinute(T))})("keydown.space",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.incrementMinute(T))})("mousedown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseDown(T,1,1))})("mouseup",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(16,cd,1,0,"ChevronUpIcon",6),o.DNE(17,Au,1,0,null,12),o.k0s(),o.j41(18,"span"),o.DNE(19,qd,2,0,"ng-container",6),o.EFF(20),o.k0s(),o.j41(21,"button",66),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.decrementMinute(T))})("keydown.space",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.decrementMinute(T))})("mousedown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseDown(T,1,-1))})("mouseup",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(22,Cl,1,0,"ChevronDownIcon",6),o.DNE(23,Iu,1,0,null,12),o.k0s()(),o.DNE(24,li,3,1,"div",69),o.DNE(25,T2,10,8,"div",70),o.DNE(26,K,9,7,"div",71),o.k0s()}if(2&P){const p=o.XpG(2);o.R7$(2),o.BMQ("aria-label",p.getTranslation("nextHour")),o.R7$(1),o.Y8G("ngIf",!p.incrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.incrementIconTemplate),o.R7$(2),o.Y8G("ngIf",p.currentHour<10),o.R7$(1),o.JRh(p.currentHour),o.R7$(1),o.BMQ("aria-label",p.getTranslation("prevHour")),o.R7$(1),o.Y8G("ngIf",!p.decrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decrementIconTemplate),o.R7$(3),o.JRh(p.timeSeparator),o.R7$(2),o.BMQ("aria-label",p.getTranslation("nextMinute")),o.R7$(1),o.Y8G("ngIf",!p.incrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.incrementIconTemplate),o.R7$(2),o.Y8G("ngIf",p.currentMinute<10),o.R7$(1),o.JRh(p.currentMinute),o.R7$(1),o.BMQ("aria-label",p.getTranslation("prevMinute")),o.R7$(1),o.Y8G("ngIf",!p.decrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decrementIconTemplate),o.R7$(1),o.Y8G("ngIf",p.showSeconds),o.R7$(1),o.Y8G("ngIf",p.showSeconds),o.R7$(1),o.Y8G("ngIf","12"==p.hourFormat)}}const Xe=function(P){return[P]};function Ft(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",75)(1,"button",76),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onTodayButtonClick(T))}),o.k0s(),o.j41(2,"button",76),o.bIt("keydown",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const Z=o.XpG(2);return o.Njj(Z.onClearButtonClick(T))}),o.k0s()()}if(2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("label",p.getTranslation("today"))("ngClass",o.eq3(4,Xe,p.todayButtonStyleClass)),o.R7$(1),o.Y8G("label",p.getTranslation("clear"))("ngClass",o.eq3(6,Xe,p.clearButtonStyleClass))}}function I(P,Le){1&P&&o.eu8(0)}const B=function(P,Le,p,w,T,Z){return{"p-datepicker p-component":!0,"p-datepicker-inline":P,"p-disabled":Le,"p-datepicker-timeonly":p,"p-datepicker-multiple-month":w,"p-datepicker-monthpicker":T,"p-datepicker-touch-ui":Z}},R=function(P,Le){return{showTransitionParams:P,hideTransitionParams:Le}},q=function(P){return{value:"visibleTouchUI",params:P}},ae=function(P){return{value:"visible",params:P}};function Ne(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",16,17),o.bIt("@overlayAnimation.start",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onOverlayAnimationStart(T))})("@overlayAnimation.done",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onOverlayAnimationDone(T))})("click",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onOverlayClick(T))}),o.SdG(2),o.DNE(3,Pe,1,0,"ng-container",12),o.DNE(4,su,5,3,"ng-container",6),o.DNE(5,ve,27,20,"div",18),o.DNE(6,Ft,3,8,"div",19),o.SdG(7,1),o.DNE(8,I,1,0,"ng-container",12),o.k0s()}if(2&P){const p=o.XpG();o.HbH(p.panelStyleClass),o.Y8G("ngStyle",p.panelStyle)("ngClass",o.l4e(14,B,p.inline,p.disabled,p.timeOnly,p.numberOfMonths>1,"month"===p.view,p.touchUI))("@overlayAnimation",p.touchUI?o.eq3(24,q,o.l_i(21,R,p.showTransitionOptions,p.hideTransitionOptions)):o.eq3(29,ae,o.l_i(26,R,p.showTransitionOptions,p.hideTransitionOptions)))("@.disabled",!0===p.inline),o.BMQ("aria-label",p.getTranslation("chooseDate"))("role",p.inline?null:"dialog")("aria-modal",p.inline?null:"true"),o.R7$(3),o.Y8G("ngTemplateOutlet",p.headerTemplate),o.R7$(1),o.Y8G("ngIf",!p.timeOnly),o.R7$(1),o.Y8G("ngIf",(p.showTime||p.timeOnly)&&"date"===p.currentView),o.R7$(1),o.Y8G("ngIf",p.showButtonBar),o.R7$(2),o.Y8G("ngTemplateOutlet",p.footerTemplate)}}const bt=[[["p-header"]],[["p-footer"]]],an=function(P,Le,p,w){return{"p-calendar":!0,"p-calendar-w-btn":P,"p-calendar-timeonly":Le,"p-calendar-disabled":p,"p-focus":w}},un=["p-header","p-footer"],Ci={provide:V.kq,useExisting:(0,o.Rfq)(()=>Ji),multi:!0};let Ji=(()=>{class P{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(p){this._minDate=p,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(p){this._maxDate=p,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(p){this._disabledDates=p,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(p){this._disabledDays=p,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(p){if(this._yearRange=p,p){const w=p.split(":"),T=parseInt(w[0]),Z=parseInt(w[1]);this.populateYearOptions(T,Z)}}get showTime(){return this._showTime}set showTime(p){this._showTime=p,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(p){this._responsiveOptions=p,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(p){this._numberOfMonths=p,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(p){this._firstDayOfWeek=p,this.createWeekDays()}set locale(p){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(p){this._view=p,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(p){if(this._defaultDate=p,this.initialized){const w=p||new Date;this.currentMonth=w.getMonth(),this.currentYear=w.getFullYear(),this.initTime(w),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new o.bkB;onBlur=new o.bkB;onClose=new o.bkB;onSelect=new o.bkB;onClear=new o.bkB;onInput=new o.bkB;onTodayClick=new o.bkB;onClearClick=new o.bkB;onMonthChange=new o.bkB;onYearChange=new o.bkB;onClickOutside=new o.bkB;onShow=new o.bkB;templates;containerViewChild;inputfieldViewChild;set content(p){this.contentViewChild=p,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(p,w,T,Z,Qe,rn,ri){this.document=p,this.el=w,this.renderer=T,this.cd=Z,this.zone=Qe,this.config=rn,this.overlayService=ri,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=be(),this.panelId=this.attributeSelector+"_panel";const p=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=p.getMonth(),this.currentYear=p.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(p),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(p=>{switch(p.getType()){case"date":default:this.dateTemplate=p.template;break;case"decade":this.decadeTemplate=p.template;break;case"disabledDate":this.disabledDateTemplate=p.template;break;case"header":this.headerTemplate=p.template;break;case"previousicon":this.previousIconTemplate=p.template;break;case"nexticon":this.nextIconTemplate=p.template;break;case"triggericon":this.triggerIconTemplate=p.template;break;case"clearicon":this.clearIconTemplate=p.template;break;case"decrementicon":this.decrementIconTemplate=p.template;break;case"incrementicon":this.incrementIconTemplate=p.template;break;case"footer":this.footerTemplate=p.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=Ce.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(p){return this.config.getTranslation(p)}populateYearOptions(p,w){this.yearOptions=[];for(let T=p;T<=w;T++)this.yearOptions.push(T)}createWeekDays(){this.weekDays=[];let p=this.getFirstDateOfWeek(),w=this.getTranslation(jt.DAY_NAMES_MIN);for(let T=0;T<7;T++)this.weekDays.push(w[p]),p=6==p?0:++p}monthPickerValues(){let p=[];for(let w=0;w<=11;w++)p.push(this.config.getTranslation("monthNamesShort")[w]);return p}yearPickerValues(){let p=[],w=this.currentYear-this.currentYear%10;for(let T=0;T<10;T++)p.push(w+T);return p}createMonths(p,w){this.months=this.months=[];for(let T=0;T11&&(Z=Z%11-1,Qe=w+1),this.months.push(this.createMonth(Z,Qe))}}getWeekNumber(p){let w=new Date(p.getTime());w.setDate(w.getDate()+4-(w.getDay()||7));let T=w.getTime();return w.setMonth(0),w.setDate(1),Math.floor(Math.round((T-w.getTime())/864e5)/7)+1}createMonth(p,w){let T=[],Z=this.getFirstDayOfMonthIndex(p,w),Qe=this.getDaysCountInMonth(p,w),rn=this.getDaysCountInPrevMonth(p,w),ri=1,Si=new Date,Zi=[],tr=Math.ceil((Qe+Z)/7);for(let fs=0;fsQe){let fo=this.getNextMonthAndYear(p,w);kr.push({day:ri-Qe,month:fo.month,year:fo.year,otherMonth:!0,today:this.isToday(Si,ri-Qe,fo.month,fo.year),selectable:this.isSelectable(ri-Qe,fo.month,fo.year,!0)})}else kr.push({day:ri,month:p,year:w,today:this.isToday(Si,ri,p,w),selectable:this.isSelectable(ri,p,w,!1)});ri++}this.showWeek&&Zi.push(this.getWeekNumber(new Date(kr[0].year,kr[0].month,kr[0].day))),T.push(kr)}return{month:p,year:w,dates:T,weekNumbers:Zi}}initTime(p){this.pm=p.getHours()>11,this.showTime?(this.currentMinute=p.getMinutes(),this.currentSecond=p.getSeconds(),this.setCurrentHourPM(p.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(p){this.disabled?p.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(p){this.disabled?p.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let p=this.yearOptions;if(this.yearNavigator&&this.currentYearp[p.length-1]){let w=p[p.length-1]-p[0];this.populateYearOptions(p[0]+w,p[p.length-1]+w)}}switchToMonthView(p){this.setCurrentView("month"),p.preventDefault()}switchToYearView(p){this.setCurrentView("year"),p.preventDefault()}onDateSelect(p,w){!this.disabled&&w.selectable?(this.isMultipleSelection()&&this.isSelected(w)?(this.value=this.value.filter((T,Z)=>!this.isDateEquals(T,w)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(w)&&this.selectDate(w),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{p.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),p.preventDefault()):p.preventDefault()}shouldSelectDate(p){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(p,w){"month"===this.view?this.onDateSelect(p,{year:this.currentYear,month:w,day:1,selectable:!0}):(this.currentMonth=w,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(p,w){"year"===this.view?this.onDateSelect(p,{year:w,month:0,day:1,selectable:!0}):(this.currentYear=w,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let p="";if(this.value)if(this.isSingleSelection())p=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let w=0;w11,this.currentHour=p>=12?12==p?12:p-12:0==p?12:p):this.currentHour=p}setCurrentView(p){this.currentView=p,this.cd.detectChanges(),this.alignOverlay()}selectDate(p){let w=new Date(p.year,p.month,p.day);if(this.showTime&&(w.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),w.setMinutes(this.currentMinute),w.setSeconds(this.currentSecond)),this.minDate&&this.minDate>w&&(w=this.minDate,this.setCurrentHourPM(w.getHours()),this.currentMinute=w.getMinutes(),this.currentSecond=w.getSeconds()),this.maxDate&&this.maxDate=T.getTime()?Z=w:(T=w,Z=null),this.updateModel([T,Z])}else this.updateModel([w,null]);this.onSelect.emit(w)}updateModel(p){if(this.value=p,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let w=null;Array.isArray(this.value)&&(w=this.value.map(T=>this.formatDateTime(T))),this.onModelChange(w)}}getFirstDayOfMonthIndex(p,w){let T=new Date;T.setDate(1),T.setMonth(p),T.setFullYear(w);let Z=T.getDay()+this.getSundayIndex();return Z>=7?Z-7:Z}getDaysCountInMonth(p,w){return 32-this.daylightSavingAdjust(new Date(w,p,32)).getDate()}getDaysCountInPrevMonth(p,w){let T=this.getPreviousMonthAndYear(p,w);return this.getDaysCountInMonth(T.month,T.year)}getPreviousMonthAndYear(p,w){let T,Z;return 0===p?(T=11,Z=w-1):(T=p-1,Z=w),{month:T,year:Z}}getNextMonthAndYear(p,w){let T,Z;return 11===p?(T=0,Z=w+1):(T=p+1,Z=w),{month:T,year:Z}}getSundayIndex(){let p=this.getFirstDateOfWeek();return p>0?7-p:0}isSelected(p){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,p);if(this.isMultipleSelection()){let w=!1;for(let T of this.value)if(w=this.isDateEquals(T,p),w)break;return w}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],p)||this.isDateEquals(this.value[1],p)||this.isDateBetween(this.value[0],this.value[1],p):this.isDateEquals(this.value[0],p):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(p){if(this.isComparable()&&!this.isMultipleSelection()){const[w,T]=this.isRangeSelection()?this.value:[this.value,this.value],Z=new Date(this.currentYear,p,1);return Z>=w&&Z<=(T??w)}return!1}isMonthDisabled(p){for(let w=1;w=Qe.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(p,w,T,Z){return p.getDate()===w&&p.getMonth()===T&&p.getFullYear()===Z}isSelectable(p,w,T,Z){let Qe=!0,rn=!0,ri=!0,Si=!0;return!(Z&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>T||this.minDate.getFullYear()===T&&(this.minDate.getMonth()>w||this.minDate.getMonth()===w&&this.minDate.getDate()>p))&&(Qe=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(p){this.navigationState={backward:!0,button:!0},this.navBackward(p)}onNextButtonClick(p){this.navigationState={backward:!1,button:!0},this.navForward(p)}onContainerButtonKeydown(p){switch(p.which){case 9:this.inline||this.trapFocus(p);break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault()}}onInputKeydown(p){this.isKeydown=!0,40===p.keyCode&&this.contentViewChild?this.trapFocus(p):27===p.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault()):13===p.keyCode?this.overlayVisible&&(this.overlayVisible=!1,p.preventDefault()):9===p.keyCode&&this.contentViewChild&&(Ce.getFocusableElements(this.contentViewChild.nativeElement).forEach(w=>w.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(p,w,T){const Z=p.currentTarget,Qe=Z.parentElement;switch(p.which){case 40:{Z.tabIndex="-1";let rn=Ce.index(Qe),ri=Qe.parentElement.nextElementSibling;ri?Ce.hasClass(ri.children[rn].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(p)):(ri.children[rn].children[0].tabIndex="0",ri.children[rn].children[0].focus()):(this.navigationState={backward:!1},this.navForward(p)),p.preventDefault();break}case 38:{Z.tabIndex="-1";let rn=Ce.index(Qe),ri=Qe.parentElement.previousElementSibling;if(ri){let Si=ri.children[rn].children[0];Ce.hasClass(Si,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(p)):(Si.tabIndex="0",Si.focus())}else this.navigationState={backward:!0},this.navBackward(p);p.preventDefault();break}case 37:{Z.tabIndex="-1";let rn=Qe.previousElementSibling;if(rn){let ri=rn.children[0];Ce.hasClass(ri,"p-disabled")||Ce.hasClass(ri.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,T):(ri.tabIndex="0",ri.focus())}else this.navigateToMonth(!0,T);p.preventDefault();break}case 39:{Z.tabIndex="-1";let rn=Qe.nextElementSibling;if(rn){let ri=rn.children[0];Ce.hasClass(ri,"p-disabled")?this.navigateToMonth(!1,T):(ri.tabIndex="0",ri.focus())}else this.navigateToMonth(!1,T);p.preventDefault();break}case 13:case 32:this.onDateSelect(p,w),p.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault();break;case 9:this.inline||this.trapFocus(p)}}onMonthCellKeydown(p,w){const T=p.currentTarget;switch(p.which){case 38:case 40:{T.tabIndex="-1";var Z=T.parentElement.children,Qe=Ce.index(T);let rn=Z[40===p.which?Qe+3:Qe-3];rn&&(rn.tabIndex="0",rn.focus()),p.preventDefault();break}case 37:{T.tabIndex="-1";let rn=T.previousElementSibling;rn?(rn.tabIndex="0",rn.focus()):(this.navigationState={backward:!0},this.navBackward(p)),p.preventDefault();break}case 39:{T.tabIndex="-1";let rn=T.nextElementSibling;rn?(rn.tabIndex="0",rn.focus()):(this.navigationState={backward:!1},this.navForward(p)),p.preventDefault();break}case 13:case 32:this.onMonthSelect(p,w),p.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault();break;case 9:this.inline||this.trapFocus(p)}}onYearCellKeydown(p,w){const T=p.currentTarget;switch(p.which){case 38:case 40:{T.tabIndex="-1";var Z=T.parentElement.children,Qe=Ce.index(T);let rn=Z[40===p.which?Qe+2:Qe-2];rn&&(rn.tabIndex="0",rn.focus()),p.preventDefault();break}case 37:{T.tabIndex="-1";let rn=T.previousElementSibling;rn?(rn.tabIndex="0",rn.focus()):(this.navigationState={backward:!0},this.navBackward(p)),p.preventDefault();break}case 39:{T.tabIndex="-1";let rn=T.nextElementSibling;rn?(rn.tabIndex="0",rn.focus()):(this.navigationState={backward:!1},this.navForward(p)),p.preventDefault();break}case 13:case 32:this.onYearSelect(p,w),p.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault();break;case 9:this.trapFocus(p)}}navigateToMonth(p,w){if(p)if(1===this.numberOfMonths||0===w)this.navigationState={backward:!0},this.navBackward(event);else{let Z=Ce.find(this.contentViewChild.nativeElement.children[w-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),Qe=Z[Z.length-1];Qe.tabIndex="0",Qe.focus()}else if(1===this.numberOfMonths||w===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let Z=Ce.findSingle(this.contentViewChild.nativeElement.children[w+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");Z.tabIndex="0",Z.focus()}}updateFocus(){let p;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?Ce.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():Ce.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let w;w=Ce.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),w&&w.length>0&&(p=w[w.length-1])}else p=Ce.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");p&&(p.tabIndex="0",p.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const p=this.contentViewChild?.nativeElement;let w;if("month"===this.currentView){let T=Ce.find(p,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),Z=Ce.findSingle(p,".p-monthpicker .p-monthpicker-month.p-highlight");T.forEach(Qe=>Qe.tabIndex=-1),w=Z||T[0],0===T.length&&Ce.find(p,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(rn=>rn.tabIndex=-1)}else if("year"===this.currentView){let T=Ce.find(p,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),Z=Ce.findSingle(p,".p-yearpicker .p-yearpicker-year.p-highlight");T.forEach(Qe=>Qe.tabIndex=-1),w=Z||T[0],0===T.length&&Ce.find(p,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(rn=>rn.tabIndex=-1)}else if(w=Ce.findSingle(p,"span.p-highlight"),!w){let T=Ce.findSingle(p,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");w=T||Ce.findSingle(p,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}w&&(w.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||w.focus()},1),this.preventFocus=!1)}trapFocus(p){let w=Ce.getFocusableElements(this.contentViewChild.nativeElement);if(w&&w.length>0)if(w[0].ownerDocument.activeElement){let T=w.indexOf(w[0].ownerDocument.activeElement);if(p.shiftKey)if(-1==T||0===T)if(this.focusTrap)w[w.length-1].focus();else{if(-1===T)return this.hideOverlay();if(0===T)return}else w[T-1].focus();else if(-1==T)if(this.timeOnly)w[0].focus();else{let Z=0;for(let Qe=0;Qern||this.minDate.getHours()===rn&&(this.minDate.getMinutes()>w||this.minDate.getMinutes()===w&&this.minDate.getSeconds()>T))||this.maxDate&&ri&&this.maxDate.toDateString()===ri&&(this.maxDate.getHours()=24?T-24:T:"12"==this.hourFormat&&(this.currentHour<12&&T>11&&(Z=!this.pm),T=T>=13?T-12:T),this.validateTime(T,this.currentMinute,this.currentSecond,Z)&&(this.currentHour=T,this.pm=Z),p.preventDefault()}onTimePickerElementMouseDown(p,w,T){this.disabled||(this.repeat(p,null,w,T),p.preventDefault())}onTimePickerElementMouseUp(p){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(p,w,T,Z){let Qe=w||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(p,100,T,Z),this.cd.markForCheck()},Qe),T){case 0:1===Z?this.incrementHour(p):this.decrementHour(p);break;case 1:1===Z?this.incrementMinute(p):this.decrementMinute(p);break;case 2:1===Z?this.incrementSecond(p):this.decrementSecond(p)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(p){let w=this.currentHour-this.stepHour,T=this.pm;"24"==this.hourFormat?w=w<0?24+w:w:"12"==this.hourFormat&&(12===this.currentHour&&(T=!this.pm),w=w<=0?12+w:w),this.validateTime(w,this.currentMinute,this.currentSecond,T)&&(this.currentHour=w,this.pm=T),p.preventDefault()}incrementMinute(p){let w=this.currentMinute+this.stepMinute;w=w>59?w-60:w,this.validateTime(this.currentHour,w,this.currentSecond,this.pm)&&(this.currentMinute=w),p.preventDefault()}decrementMinute(p){let w=this.currentMinute-this.stepMinute;w=w<0?60+w:w,this.validateTime(this.currentHour,w,this.currentSecond,this.pm)&&(this.currentMinute=w),p.preventDefault()}incrementSecond(p){let w=this.currentSecond+this.stepSecond;w=w>59?w-60:w,this.validateTime(this.currentHour,this.currentMinute,w,this.pm)&&(this.currentSecond=w),p.preventDefault()}decrementSecond(p){let w=this.currentSecond-this.stepSecond;w=w<0?60+w:w,this.validateTime(this.currentHour,this.currentMinute,w,this.pm)&&(this.currentSecond=w),p.preventDefault()}updateTime(){let p=this.value;this.isRangeSelection()&&(p=this.value[1]||this.value[0]),this.isMultipleSelection()&&(p=this.value[this.value.length-1]),p=p?new Date(p.getTime()):new Date,p.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),p.setMinutes(this.currentMinute),p.setSeconds(this.currentSecond),this.isRangeSelection()&&(p=this.value[1]?[this.value[0],p]:[p,null]),this.isMultipleSelection()&&(p=[...this.value.slice(0,-1),p]),this.updateModel(p),this.onSelect.emit(p),this.updateInputfield()}toggleAMPM(p){const w=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,w)&&(this.pm=w,this.updateTime()),p.preventDefault()}onUserInput(p){if(!this.isKeydown)return;this.isKeydown=!1;let w=p.target.value;try{let T=this.parseValueFromString(w);this.isValidSelection(T)?(this.updateModel(T),this.updateUI()):this.keepInvalid&&this.updateModel(T)}catch{this.updateModel(this.keepInvalid?w:null)}this.filled=null!=w&&w.length,this.onInput.emit(p)}isValidSelection(p){let w=!0;return this.isSingleSelection()?this.isSelectable(p.getDate(),p.getMonth(),p.getFullYear(),!1)||(w=!1):p.every(T=>this.isSelectable(T.getDate(),T.getMonth(),T.getFullYear(),!1))&&this.isRangeSelection()&&(w=p.length>1&&p[1]>p[0]),w}parseValueFromString(p){if(!p||0===p.trim().length)return null;let w;if(this.isSingleSelection())w=this.parseDateTime(p);else if(this.isMultipleSelection()){let T=p.split(this.multipleSeparator);w=[];for(let Z of T)w.push(this.parseDateTime(Z.trim()))}else if(this.isRangeSelection()){let T=p.split(" "+this.rangeSeparator+" ");w=[];for(let Z=0;Z{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),Ce.blockBodyScroll())}disableModality(){this.mask&&(Ce.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let w,p=this.document.body.children;for(let T=0;T{const tr=T+1{let kr=""+tr;if(Z(Zi))for(;kr.lengthZ(Zi)?kr[tr]:fs[tr];let ri="",Si=!1;if(p)for(T=0;T11&&12!=T&&(T-=12),w+="12"==this.hourFormat&&0===T?12:T<10?"0"+T:T,w+=":",w+=Z<10?"0"+Z:Z,this.showSeconds&&(w+=":",w+=Qe<10?"0"+Qe:Qe),"12"==this.hourFormat&&(w+=p.getHours()>11?" PM":" AM"),w}parseTime(p){let w=p.split(":");if(w.length!==(this.showSeconds?3:2))throw"Invalid time";let Z=parseInt(w[0]),Qe=parseInt(w[1]),rn=this.showSeconds?parseInt(w[2]):null;if(isNaN(Z)||isNaN(Qe)||Z>23||Qe>59||"12"==this.hourFormat&&Z>12||this.showSeconds&&(isNaN(rn)||rn>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==Z&&this.pm?Z+=12:!this.pm&&12===Z&&(Z-=12)),{hour:Z,minute:Qe,second:rn}}parseDate(p,w){if(null==w||null==p)throw"Invalid arguments";if(""===(p="object"==typeof p?p.toString():p+""))return null;let T,Z,Qe,Eo,rn=0,ri="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),Si=-1,Zi=-1,tr=-1,fs=-1,kr=!1,fo=Da=>{let ec=T+1{let ec=fo(Da),xl="@"===Da?14:"!"===Da?20:"y"===Da&&ec?4:"o"===Da?3:2,Jd=new RegExp("^\\d{"+("y"===Da?xl:1)+","+xl+"}"),I2=p.substring(rn).match(Jd);if(!I2)throw"Missing number at position "+rn;return rn+=I2[0].length,parseInt(I2[0],10)},Do=(Da,ec,xl)=>{let s2=-1,Jd=fo(Da)?xl:ec,I2=[];for(let o2=0;o2-(o2[1].length-a2[1].length));for(let o2=0;o2{if(p.charAt(rn)!==w.charAt(T))throw"Unexpected literal at position "+rn;rn++};for("month"===this.view&&(tr=1),T=0;T-1)for(Zi=1,tr=fs;Z=this.getDaysCountInMonth(Si,Zi-1),!(tr<=Z);)Zi++,tr-=Z;if("year"===this.view&&(Zi=-1===Zi?1:Zi,tr=-1===tr?1:tr),Eo=this.daylightSavingAdjust(new Date(Si,Zi-1,tr)),Eo.getFullYear()!==Si||Eo.getMonth()+1!==Zi||Eo.getDate()!==tr)throw"Invalid date";return Eo}daylightSavingAdjust(p){return p?(p.setHours(p.getHours()>12?p.getHours()+2:0),p):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(p){const w=new Date,T={day:w.getDate(),month:w.getMonth(),year:w.getFullYear(),otherMonth:w.getMonth()!==this.currentMonth||w.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(w.getMonth(),w.getFullYear()),this.onDateSelect(p,T),this.onTodayClick.emit(p)}onClearButtonClick(p){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(p)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let p="";if(this.responsiveOptions){let w=[...this.responsiveOptions].filter(T=>!(!T.breakpoint||!T.numMonths)).sort((T,Z)=>-1*T.breakpoint.localeCompare(Z.breakpoint,void 0,{numeric:!0}));for(let T=0;T{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",w=>{this.isOutsideClicked(w)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(w),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new zt(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(p){return!(this.el.nativeElement.isSameNode(p.target)||this.isNavIconClicked(p)||this.el.nativeElement.contains(p.target)||this.overlay&&this.overlay.contains(p.target))}isNavIconClicked(p){return Ce.hasClass(p.target,"p-datepicker-prev")||Ce.hasClass(p.target,"p-datepicker-prev-icon")||Ce.hasClass(p.target,"p-datepicker-next")||Ce.hasClass(p.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!Ce.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Te.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(w){return new(w||P)(o.rXU(g.qQ),o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(he),o.rXU(at))};static \u0275cmp=o.VBU({type:P,selectors:[["p-calendar"]],contentQueries:function(w,T,Z){if(1&w&&o.wni(Z,it,4),2&w){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(w,T){if(1&w&&(o.GBs(Su,5),o.GBs(d1,5),o.GBs(ku,5)),2&w){let Z;o.mGM(Z=o.lsd())&&(T.containerViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.inputfieldViewChild=Z.first),o.mGM(Z=o.lsd())&&(T.content=Z.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(w,T){2&w&&o.AVh("p-inputwrapper-filled",T.filled)("p-inputwrapper-focus",T.focus)("p-calendar-clearable",T.showClear&&!T.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[o.Jv_([Ci])],ngContentSelectors:un,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(w,T){1&w&&(o.NAR(bt),o.j41(0,"span",0,1),o.DNE(2,X,4,20,"ng-template",2),o.DNE(3,Ne,9,31,"div",3),o.k0s()),2&w&&(o.HbH(T.styleClass),o.Y8G("ngClass",o.ziG(6,an,T.showIcon,T.timeOnly,T.disabled,T.focus||T.overlayVisible))("ngStyle",T.style),o.R7$(2),o.Y8G("ngIf",!T.inline),o.R7$(1),o.Y8G("ngIf",T.inline||T.overlayVisible))},dependencies:function(){return[g.YU,g.Sq,g.bT,g.T3,g.B3,e2,Vi,Xl,y1,_l,ii,Ni,sl]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[(0,Gt.hZ)("overlayAnimation",[(0,Gt.wk)("visibleTouchUI",(0,Gt.iF)({transform:"translate(-50%,-50%)",opacity:1})),(0,Gt.kY)("void => visible",[(0,Gt.iF)({opacity:0,transform:"scaleY(0.8)"}),(0,Gt.i0)("{{showTransitionParams}}",(0,Gt.iF)({opacity:1,transform:"*"}))]),(0,Gt.kY)("visible => void",[(0,Gt.i0)("{{hideTransitionParams}}",(0,Gt.iF)({opacity:0}))]),(0,Gt.kY)("void => visibleTouchUI",[(0,Gt.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),(0,Gt.i0)("{{showTransitionParams}}")]),(0,Gt.kY)("visibleTouchUI => void",[(0,Gt.i0)("{{hideTransitionParams}}",(0,Gt.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return P})(),ls=(()=>{class P{static \u0275fac=function(w){return new(w||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,z1,dt,ni,Xl,y1,_l,ii,Ni,sl,z1,dt]})}return P})();function Ar(P,Le){1&P&&o.eu8(0)}const Po=function(){return["binary"]},al=function(P,Le){return{key:"p-checkbox",props:P,omit:Le}},Xo=function(P){return[P]};function Ko(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-checkbox",6,7),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG(4);return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("binary",!0)("formControl",p.control)("propsBinding",o.eq3(7,Xo,o.l_i(4,al,p.data.props,o.lJ4(3,Po))))}}function Io(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-checkbox",8),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG(4);return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG(2).$implicit,w=o.XpG(2);o.R7$(1),o.Y8G("name","group")("value",p.value)("formControl",w.control)("propsBinding",o.eq3(8,Xo,o.l_i(5,al,w.data.props,o.lJ4(4,Po))))}}function vc(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Ko,3,9,"ng-container",0),o.DNE(2,Io,2,10,"ng-container",0),o.bVm()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngIf",1===p.data.options.data.length),o.R7$(1),o.Y8G("ngIf",p.data.options.data.length>1)}}function bo(P,Le){1&P&&o.eu8(0)}const Ou=function(P){return{"justify-content":P}},Hu=function(P){return{label:P,isBefore:!0}},Rc=function(P){return{label:P,isBefore:!1}};function D4(P,Le){if(1&P&&(o.qex(0),o.j41(1,"label",4),o.DNE(2,Ar,1,0,"ng-container",5),o.DNE(3,vc,3,2,"ng-container",0),o.DNE(4,bo,1,0,"ng-container",5),o.k0s(),o.bVm()),2&P){const p=Le.$implicit;o.XpG();const w=o.sdS(4),T=o.XpG();o.R7$(1),o.Y8G("ngStyle",o.eq3(6,Ou,"before"===(null==T.data.options?null:T.data.options.labelPosition)?"space-between":null)),o.R7$(1),o.Y8G("ngTemplateOutlet",w)("ngTemplateOutletContext",o.eq3(8,Hu,p.label)),o.R7$(1),o.Y8G("ngIf",T.data.options&&T.data.options.data),o.R7$(1),o.Y8G("ngTemplateOutlet",w)("ngTemplateOutletContext",o.eq3(10,Rc,p.label))}}function M1(P,Le){if(1&P&&(o.qex(0),o.j41(1,"span"),o.EFF(2),o.k0s(),o.bVm()),2&P){const p=o.XpG().label;o.R7$(2),o.JRh(p)}}function er(P,Le){if(1&P&&o.DNE(0,M1,3,1,"ng-container",0),2&P){const p=Le.isBefore,w=o.XpG(2);o.Y8G("ngIf","before"===(null==w.data.options?null:w.data.options.labelPosition)===p)}}function wr(P,Le){if(1&P&&(o.qex(0),o.j41(1,"div",1),o.DNE(2,D4,5,12,"ng-container",2),o.k0s(),o.DNE(3,er,1,1,"ng-template",null,3,o.C5r),o.bVm()),2&P){const p=o.XpG();let w;o.R7$(1),o.Aen(p.groupButtonsStyles),o.Y8G("ngClass",o.eq3(4,Xo,null!==(w=null==p.data.options?null:p.data.options.containerClass)&&void 0!==w?w:"")),o.R7$(1),o.Y8G("ngForOf",null==p.data.options?null:p.data.options.data)}}const Mr=function(){return["options"]},yo=function(P,Le){return{key:"p-dropdown",props:P,omit:Le}};function Ba(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-dropdown",1),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))})("onBlur",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onTouched())}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(1),o.Y8G("options",null==p.data.options?null:p.data.options.data)("formControl",p.control)("propsBinding",o.eq3(7,Xo,o.l_i(4,yo,p.data.props,o.lJ4(3,Mr))))}}const Xc=function(){return["type"]},Sr=function(P,Le){return{key:"p-input-text",props:P,omit:Le}};function S1(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"input",1),o.bIt("input",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInput(T))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();let w;o.R7$(1),o.Y8G("type",null!==(w=p.data.type)&&void 0!==w?w:"text")("formControl",p.control)("propsBinding",o.eq3(7,Xo,o.l_i(4,Sr,p.data.props,o.lJ4(3,Xc))))}}function ya(P,Le){1&P&&o.eu8(0)}function Xd(P,Le){1&P&&o.eu8(0)}const L3=function(){return["value"]},$a=function(P,Le){return{key:"p-radio-button",props:P,omit:Le}};function jl(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"label",4),o.DNE(2,ya,1,0,"ng-container",5),o.j41(3,"p-radioButton",6),o.bIt("onClick",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.updateControl())}),o.k0s(),o.DNE(4,Xd,1,0,"ng-container",5),o.k0s(),o.bVm()}if(2&P){const p=Le.$implicit,w=Le.index;o.XpG();const T=o.sdS(4),Z=o.XpG();o.R7$(1),o.Y8G("ngStyle",o.eq3(8,Ou,"before"===(null==Z.data.options?null:Z.data.options.labelPosition)?"space-between":null)),o.R7$(1),o.Y8G("ngTemplateOutlet",T)("ngTemplateOutletContext",o.eq3(10,Hu,p.label)),o.R7$(1),o.Y8G("value",w)("formControl",Z.control)("propsBinding",o.eq3(16,Xo,o.l_i(13,$a,Z.data.props,o.lJ4(12,L3)))),o.R7$(1),o.Y8G("ngTemplateOutlet",T)("ngTemplateOutletContext",o.eq3(18,Rc,p.label))}}function Kl(P,Le){if(1&P&&(o.qex(0),o.j41(1,"span"),o.EFF(2),o.k0s(),o.bVm()),2&P){const p=o.XpG().label;o.R7$(2),o.JRh(p)}}function Kd(P,Le){if(1&P&&o.DNE(0,Kl,3,1,"ng-container",0),2&P){const p=Le.isBefore,w=o.XpG(2);o.Y8G("ngIf","before"===(null==w.data.options?null:w.data.options.labelPosition)===p)}}const lu=function(P){return{"flex-direction":P}};function T4(P,Le){if(1&P&&(o.qex(0),o.j41(1,"div",1),o.DNE(2,jl,5,20,"ng-container",2),o.k0s(),o.DNE(3,Kd,1,1,"ng-template",null,3,o.C5r),o.bVm()),2&P){const p=o.XpG();let w;o.R7$(1),o.Aen(null==p.data.options?null:p.data.options.containerStyles),o.Y8G("ngClass",o.eq3(5,Xo,null!==(w=null==p.data.options?null:p.data.options.containerClass)&&void 0!==w?w:""))("ngStyle",o.eq3(7,lu,null==p.data.options?null:p.data.options.layout)),o.R7$(1),o.Y8G("ngForOf",null==p.data.options?null:p.data.options.data)}}function U0(P,Le){if(1&P&&o.eu8(0,6),2&P){o.XpG();const p=o.sdS(7);o.Y8G("ngTemplateOutlet",p)}}function Wh(P,Le){if(1&P&&o.eu8(0,6),2&P){o.XpG();const p=o.sdS(7);o.Y8G("ngTemplateOutlet",p)}}function im(P,Le){if(1&P&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&P){const p=o.XpG(3);o.R7$(1),o.JRh(null==p.data.options||null==p.data.options.data||null==p.data.options.data[0]?null:p.data.options.data[0].label)}}function rm(P,Le){if(1&P&&o.DNE(0,im,2,1,"span",0),2&P){const p=o.XpG(2);o.Y8G("ngIf",null==p.data.options||null==p.data.options.data||null==p.data.options.data[0]?null:p.data.options.data[0].label)}}const z3=function(P){return{key:"p-input-switch",props:P}};function dd(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"div",1)(2,"label",2),o.DNE(3,U0,1,1,"ng-container",3),o.j41(4,"p-inputSwitch",4),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.DNE(5,Wh,1,1,"ng-container",3),o.k0s()(),o.DNE(6,rm,1,1,"ng-template",null,5,o.C5r),o.bVm()}if(2&P){const p=o.XpG();o.R7$(3),o.Y8G("ngIf","before"===(null==p.data.options?null:p.data.options.labelPosition)),o.R7$(1),o.Y8G("formControl",p.control)("propsBinding",o.eq3(6,Xo,o.eq3(4,z3,p.data.props))),o.R7$(1),o.Y8G("ngIf","before"!==(null==p.data.options?null:p.data.options.labelPosition))}}const qh=function(P){return{key:"p-input-textarea",props:P}};function Lu(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"textarea",1),o.bIt("input",function(T){o.eBV(p);const Z=o.XpG();return o.Njj(Z.onInput(T))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(1),o.Y8G("formControl",p.control)("propsBinding",o.eq3(4,Xo,o.eq3(2,qh,p.data.props)))}}const Yd=function(P){return{key:"imask",props:P}},fd=function(P,Le){return[P,Le]};function Xh(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"input",1),o.bIt("complete",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(1),o.Y8G("formControl",p.control)("imask",p.data.inputMask)("propsBinding",o.l_i(9,fd,o.l_i(4,Sr,p.data.props,o.lJ4(3,Xc)),o.eq3(7,Yd,p.data.props)))}}const R3=function(P){return{key:"p-slider",props:P}};function G0(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"div",1)(2,"p-slider",2),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))}),o.k0s()(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(2),o.Y8G("formControl",p.control)("propsBinding",o.eq3(4,Xo,o.eq3(2,R3,p.data.props)))}}const A2=function(P){return{key:"p-calendar",props:P}};function r2(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-calendar",1),o.bIt("onClose",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.updateControl())}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(1),o.Y8G("formControl",p.control)("propsBinding",o.eq3(4,Xo,o.eq3(2,A2,p.data.props)))}}let zu=(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(p){this.onChange=p}get groupButtonsStyles(){return`\n flex-direction: ${this.data?.options?.layout??"row"};\n align-items: flex-start;\n ${this.data?.options?.containerStyles??""}\n `.replace(/\s{2,}/g,"")}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-checkbox"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-checkbox",token:te}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass"],[4,"ngFor","ngForOf"],["labelTemplate",""],[1,"option-button",3,"ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"binary","formControl","propsBinding","onChange"],["pCheckbox",""],[3,"name","value","formControl","propsBinding","onChange"]],template:function(w,T){1&w&&o.DNE(0,wr,5,6,"ng-container",0),2&w&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.YU,g.Sq,g.bT,g.T3,g.B3,V.X1,V.BC,V.l_,xe,te,oe.XO],encapsulation:2})}return P})(),Qd=(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.hs(""),this.onTouched=()=>{},this.onChange=p=>{}}registerOnChange(p){this.onChange=p}registerOnTouched(p){this.onTouched=p}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-select"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-dropdown",token:gl}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"options","formControl","propsBinding","onChange","onBlur"]],template:function(w,T){1&w&&o.DNE(0,Ba,2,9,"ng-container",0),2&w&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.BC,V.l_,No,gl,oe.XO],encapsulation:2})}return P})(),hd=(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.hs("")}registerOnChange(p){this.onChange=p}onInput(p){const w=p.target.value;this.control.setValue(w),this.onChange(w)}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-input"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-input-text",token:ia}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["pInputText","",3,"type","formControl","propsBinding","input"]],template:function(w,T){1&w&&o.DNE(0,S1,2,9,"ng-container",0),2&w&&o.Y8G("ngIf",T.control&&T.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,zc,ia,oe.XO],encapsulation:2})}return P})();const pd={checkbox:zu,date:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ(new Date)}registerOnChange(p){this._onChange=p}updateControl(){this._onChange(this.control.value)}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-date"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-calendar",token:Ji}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"formControl","propsBinding","onClose"]],template:function(w,T){1&w&&o.DNE(0,r2,2,6,"ng-container",0),2&w&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.BC,V.l_,ls,Ji,V.YN,oe.XO],encapsulation:2})}return P})(),password:hd,number:hd,email:hd,radio:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ(-1)}writeValue(p){const w=this.data?.options?.data?.findIndex(T=>JSON.stringify(T.value)===JSON.stringify(p));void 0!==w&&this.control.setValue(w)}registerOnChange(p){this._onChange=p}updateControl(){const p=this.control.value??-1;if(p>-1){const w=this.data?.options?.data?.[p].value;this._onChange(w)}}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-radio"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-radio-button",token:Ra}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf"],["labelTemplate",""],[1,"option-button",3,"ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"value","formControl","propsBinding","onClick"]],template:function(w,T){1&w&&o.DNE(0,T4,5,9,"ng-container",0),2&w&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.YU,g.Sq,g.bT,g.T3,g.B3,V.X1,V.BC,V.l_,Qa,Ra,oe.XO],encapsulation:2})}return P})(),range:(()=>{class P extends oe._H{constructor(){super(...arguments),this._pendingValue=0,this.control=new V.MJ(0)}writeValue(p){super.writeValue(p),this._pendingValue=p}registerOnChange(p){this.onChange=p}ngAfterViewInit(){this.sliderRef?.updateValue(this._pendingValue)}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-range"]],viewQuery:function(w,T){if(1&w&&o.GBs(ir,5),2&w){let Z;o.mGM(Z=o.lsd())&&(T.sliderRef=Z.first)}},standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-slider",token:ir}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"range-input"],[3,"formControl","propsBinding","onChange"]],template:function(w,T){1&w&&o.DNE(0,G0,3,6,"ng-container",0),2&w&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.BC,V.l_,zr,ir,oe.XO],encapsulation:2})}return P})(),select:Qd,switch:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ(!1)}registerOnChange(p){this.onChange=p}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-switch"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-input-switch",token:vs}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"option-button-wrapper"],[1,"option-button"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"formControl","propsBinding","onChange"],["labelTemplate",""],[3,"ngTemplateOutlet"]],template:function(w,T){1&w&&o.DNE(0,dd,8,8,"ng-container",0),2&w&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,g.T3,V.X1,V.BC,V.l_,Ja,vs,oe.XO],encapsulation:2})}return P})(),text:hd,textMask:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(p){this.onChange=p}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-input-mask"]],viewQuery:function(w,T){if(1&w&&o.GBs(ia,5),2&w){let Z;o.mGM(Z=o.lsd())&&(T.target=Z.first)}},standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-input-text",token:ia},{key:"imask",token:co.Zq}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["type","text","pInputText","","imaskValuePatch","",3,"formControl","imask","propsBinding","complete"]],template:function(w,T){1&w&&o.DNE(0,Xh,2,12,"ng-container",0),2&w&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,zc,ia,co.Zq,oe.wc,oe.XO],encapsulation:2})}return P})(),textarea:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(p){this.onChange=p}onInput(p){const w=p.target.value;this.control.setValue(w),this.onChange(w)}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-textarea"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-input-textarea",token:pc}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["pInputTextarea","",3,"formControl","propsBinding","input"]],template:function(w,T){1&w&&o.DNE(0,Lu,2,6,"ng-container",0),2&w&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,zl,pc,oe.XO],encapsulation:2})}return P})()}},2709:(vn,J,F)=>{"use strict";F.d(J,{E2:()=>Qs,Hf:()=>ea,XO:()=>oo,_H:()=>Js,wc:()=>ta,yz:()=>vl});var g=F(2978),o=F(6897),V=F(2669),oe=F(5981),De=F(8448),pe=F(965),Ee=F(3527),be=F(756),ge=F(3793),Te=F(8399),Ve=F(3422),ze=F(7236),vt=F(8503),Re=F(9406),tt=F(6104),de=F(6347),Fe=F(4526),_t=F(6340),at=F(2831),Be=F(199),he=F(8887),He=F(8129),Se=F(8486),it=F(2489),dt=F(8832),jt=F(6409),Wt=F(6610),wn=F(7212);function Wn(ie,Rt){1&ie&&g.eu8(0)}const di=function(){return["type"]},ai=function(ie,Rt){return{props:ie,omit:Rt}},Li=function(ie){return[ie]};function $i(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"input",7),g.bIt("change",function(Ye){g.eBV(Y);const Ct=g.XpG(4);return g.Njj(Ct.toggle(Ye))}),g.k0s(),g.bVm()}if(2&ie){const Y=g.XpG(4);g.R7$(1),g.Y8G("propsBinding",g.eq3(5,Li,g.l_i(2,ai,Y.data.props,g.lJ4(1,di))))}}function Hr(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"input",8),g.bIt("change",function(Ye){g.eBV(Y);const Ct=g.XpG(2).index,Oe=g.XpG(2);return g.Njj(Oe.onCheckboxChange(Ye,Ct))}),g.k0s(),g.bVm()}if(2&ie){const Y=g.XpG(2).$implicit,me=g.XpG(2);g.R7$(1),g.Y8G("propsBinding",g.eq3(7,Li,g.l_i(4,ai,me.data.props,g.lJ4(3,di))))("checked",me.isChecked(Y.value))("disabled",me.control.disabled)}}function ui(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,$i,2,7,"ng-container",0),g.DNE(2,Hr,2,9,"ng-container",0),g.bVm()),2&ie){const Y=g.XpG(3);g.R7$(1),g.Y8G("ngIf",1===Y.data.options.data.length),g.R7$(1),g.Y8G("ngIf",Y.data.options.data.length>1)}}function dn(ie,Rt){1&ie&&g.eu8(0)}const nt=function(ie){return{"justify-content":ie}},ht=function(ie){return{label:ie,isBefore:!0}},Je=function(ie){return{label:ie,isBefore:!1}};function Ae(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"label",4),g.DNE(2,Wn,1,0,"ng-container",5),g.DNE(3,ui,3,2,"ng-container",0),g.nrm(4,"span",6),g.DNE(5,dn,1,0,"ng-container",5),g.k0s(),g.bVm()),2&ie){const Y=Rt.$implicit;g.XpG();const me=g.sdS(4),Ye=g.XpG();g.R7$(1),g.Y8G("ngStyle",g.eq3(6,nt,"before"===(null==Ye.data.options?null:Ye.data.options.labelPosition)?"space-between":null)),g.R7$(1),g.Y8G("ngTemplateOutlet",me)("ngTemplateOutletContext",g.eq3(8,ht,Y.label)),g.R7$(1),g.Y8G("ngIf",Ye.data.options&&Ye.data.options.data),g.R7$(2),g.Y8G("ngTemplateOutlet",me)("ngTemplateOutletContext",g.eq3(10,Je,Y.label))}}function Ue(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"span"),g.EFF(2),g.k0s(),g.bVm()),2&ie){const Y=g.XpG().label;g.R7$(2),g.JRh(Y)}}function Ze(ie,Rt){if(1&ie&&g.DNE(0,Ue,3,1,"ng-container",0),2&ie){const Y=Rt.isBefore,me=g.XpG(2);g.Y8G("ngIf","before"===(null==me.data.options?null:me.data.options.labelPosition)===Y)}}const H=function(ie,Rt){return[ie,Rt]};function te(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",1),g.DNE(2,Ae,6,12,"ng-container",2),g.k0s(),g.DNE(3,Ze,1,1,"ng-template",null,3,g.C5r),g.bVm()),2&ie){const Y=g.XpG();let me;g.R7$(1),g.Aen(Y.groupButtonsStyles),g.Y8G("ngClass",g.l_i(4,H,null!==(me=null==Y.data.options?null:Y.data.options.containerClass)&&void 0!==me?me:"",Y.control.disabled?"disabled":"")),g.R7$(1),g.Y8G("ngForOf",null==Y.data.options?null:Y.data.options.data)}}function xe(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"input",3),g.bVm()),2&ie){const Y=g.XpG(2);g.R7$(1),g.Y8G("formControl",Y.control.controls.time)}}const Ce=function(ie){return{disabled:ie}},zt=function(){return["min","max","type"]};function rt(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"div",1)(2,"input",2),g.bIt("change",function(){g.eBV(Y);const Ye=g.XpG();return g.Njj(Ye.updateControl())}),g.k0s(),g.DNE(3,xe,2,1,"ng-container",0),g.k0s(),g.bVm()}if(2&ie){const Y=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(6,Ce,Y.control.disabled)),g.R7$(1),g.Y8G("propsBinding",g.eq3(12,Li,g.l_i(9,ai,Y.data.props,g.lJ4(8,zt))))("formControl",Y.control.controls.date),g.BMQ("min",Y.dateSettings.min)("max",Y.dateSettings.max),g.R7$(1),g.Y8G("ngIf",!0===(null==Y.data||null==Y.data.props?null:Y.data.props.showTime))}}const xt=function(ie){return{key:"imask",props:ie}};function Gt(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"input",1),g.bIt("complete",function(){g.eBV(Y);const Ye=g.XpG();return g.Njj(Ye.onChange(Ye.control.value))}),g.k0s(),g.bVm()}if(2&ie){const Y=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(4,Ce,Y.control.disabled))("imask",Y.data.inputMask)("propsBinding",g.l_i(12,H,g.l_i(7,ai,Y.data.props,g.lJ4(6,di)),g.eq3(10,xt,Y.data.props)))("formControl",Y.control)}}function xn(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"input",1),g.bIt("input",function(Ye){g.eBV(Y);const Ct=g.XpG();return g.Njj(Ct.onInput(Ye))}),g.k0s(),g.bVm()}if(2&ie){const Y=g.XpG();let me;g.R7$(1),g.Y8G("ngClass",g.eq3(4,Ce,Y.control.disabled))("propsBinding",g.eq3(10,Li,g.l_i(7,ai,Y.data.props,g.lJ4(6,di))))("formControl",Y.control),g.BMQ("type",null!==(me=Y.data.type)&&void 0!==me?me:"text")}}function In(ie,Rt){if(1&ie&&(g.j41(0,"span"),g.EFF(1),g.k0s()),2&ie){const Y=g.XpG().$implicit;g.R7$(1),g.JRh(Y.label)}}function xi(ie,Rt){if(1&ie&&(g.j41(0,"span"),g.EFF(1),g.k0s()),2&ie){const Y=g.XpG().$implicit;g.R7$(1),g.JRh(Y.label)}}const or=function(){return["type","name"]};function ci(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"div",3)(2,"label",4),g.DNE(3,In,2,1,"span",0),g.j41(4,"input",5),g.bIt("change",function(){const Ct=g.eBV(Y).index,Oe=g.XpG(2);return g.Njj(Oe.onChange(Ct))}),g.k0s(),g.nrm(5,"span",6),g.DNE(6,xi,2,1,"span",0),g.k0s()(),g.bVm()}if(2&ie){const Y=Rt.index,me=g.XpG(2);g.R7$(2),g.Y8G("ngStyle",g.eq3(6,nt,"before"===(null==me.data.options?null:me.data.options.labelPosition)?"space-between":null)),g.R7$(1),g.Y8G("ngIf","before"===(null==me.data.options?null:me.data.options.labelPosition)),g.R7$(1),g.Y8G("name",me.data.formControlName)("propsBinding",g.eq3(12,Li,g.l_i(9,ai,me.data.props,g.lJ4(8,or))))("checked",me.selectedIndex===Y),g.R7$(2),g.Y8G("ngIf","before"!==(null==me.data.options?null:me.data.options.labelPosition))}}const Dr=function(ie){return{"flex-direction":ie}};function Tr(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",1),g.DNE(2,ci,7,14,"ng-container",2),g.k0s(),g.bVm()),2&ie){const Y=g.XpG();let me;g.R7$(1),g.Aen(null==Y.data.options?null:Y.data.options.containerStyles),g.Y8G("ngClass",g.l_i(5,H,null!==(me=null==Y.data.options?null:Y.data.options.containerClass)&&void 0!==me?me:"",Y.isDisabled?"disabled":""))("ngStyle",g.eq3(8,Dr,null==Y.data.options?null:Y.data.options.layout)),g.R7$(1),g.Y8G("ngForOf",null==Y.data.options?null:Y.data.options.data)}}function cn(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",3),g.EFF(2),g.k0s(),g.bVm()),2&ie){const Y=g.XpG(2);g.R7$(1),g.xc7("--left",Y.valuePosition),g.R7$(1),g.SpI(" ",Y.control.value," ")}}function On(ie,Rt){1&ie&&(g.qex(0),g.nrm(1,"span",8),g.bVm())}function Qn(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",4),g.DNE(2,On,2,0,"ng-container",5),g.k0s(),g.j41(3,"div",6),g.EFF(4),g.k0s(),g.j41(5,"div",7),g.EFF(6),g.k0s(),g.bVm()),2&ie){const Y=g.XpG(2);g.R7$(2),g.Y8G("ngForOf",Y.tickMarks),g.R7$(2),g.JRh(null==Y.data.props?null:Y.data.props.min),g.R7$(2),g.JRh(null==Y.data.props?null:Y.data.props.max)}}const fi=function(ie,Rt){return{"show-tick-marks":ie,disabled:Rt}},qe=function(ie){return{"background-size":ie}};function Mt(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"div",1)(2,"input",2),g.bIt("input",function(){g.eBV(Y);const Ye=g.XpG();return g.Njj(Ye.onChange(Ye.control.value))}),g.k0s(),g.DNE(3,cn,3,3,"ng-container",0),g.DNE(4,Qn,7,3,"ng-container",0),g.k0s(),g.bVm()}if(2&ie){const Y=g.XpG();g.R7$(1),g.Y8G("ngClass",g.l_i(6,fi,!0===(null==Y.data.props?null:Y.data.props.showTickMarks)||!0===(null==Y.data.props?null:Y.data.props.showCurrentValue),Y.control.disabled)),g.R7$(1),g.Y8G("ngStyle",g.eq3(9,qe,Y.valuePosition))("propsBinding",g.eq3(15,Li,g.l_i(12,ai,Y.data.props,g.lJ4(11,di))))("formControl",Y.control),g.R7$(1),g.Y8G("ngIf",null==Y.data.props?null:Y.data.props.showCurrentValue),g.R7$(1),g.Y8G("ngIf",null==Y.data.props?null:Y.data.props.showTickMarks)}}function Bt(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"option",4),g.EFF(2),g.k0s(),g.bVm()),2&ie){const Y=Rt.$implicit,me=Rt.index;g.R7$(1),g.Y8G("value",me),g.R7$(1),g.JRh(Y.label)}}const hn=function(ie){return{props:ie}};function Mn(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"div",1)(2,"select",2),g.bIt("blur",function(){g.eBV(Y);const Ye=g.XpG();return g.Njj(Ye.onTouched())})("change",function(Ye){g.eBV(Y);const Ct=g.XpG();return g.Njj(Ct.updateControl(Ye))}),g.DNE(3,Bt,3,2,"ng-container",3),g.k0s()(),g.bVm()}if(2&ie){const Y=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(5,Ce,Y.control.disabled))("ngStyle",g.eq3(7,Dr,null==Y.data.options?null:Y.data.options.layout)),g.R7$(1),g.Y8G("propsBinding",g.eq3(11,Li,g.eq3(9,hn,Y.data.props)))("formControl",Y.control),g.R7$(1),g.Y8G("ngForOf",null==Y.data.options?null:Y.data.options.data)}}function Vi(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){g.XpG();const Y=g.sdS(8);g.Y8G("ngTemplateOutlet",Y)}}function ni(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){g.XpG();const Y=g.sdS(8);g.Y8G("ngTemplateOutlet",Y)}}function Qi(ie,Rt){if(1&ie&&(g.j41(0,"span"),g.EFF(1),g.k0s()),2&ie){const Y=g.XpG(3);g.R7$(1),g.JRh(null==Y.data.options||null==Y.data.options.data||null==Y.data.options.data[0]?null:Y.data.options.data[0].label)}}function dr(ie,Rt){if(1&ie&&g.DNE(0,Qi,2,1,"span",0),2&ie){const Y=g.XpG(2);g.Y8G("ngIf",null==Y.data.options||null==Y.data.options.data||null==Y.data.options.data[0]?null:Y.data.options.data[0].label)}}function no(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"div",1)(2,"label",2),g.DNE(3,Vi,1,1,"ng-container",3),g.j41(4,"input",4),g.bIt("change",function(Ye){g.eBV(Y);const Ct=g.XpG();return g.Njj(Ct.updateControl(Ye))}),g.k0s(),g.nrm(5,"span",5),g.DNE(6,ni,1,1,"ng-container",3),g.k0s()(),g.DNE(7,dr,1,1,"ng-template",null,6,g.C5r),g.bVm()}if(2&ie){const Y=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(5,Ce,Y.control.disabled)),g.R7$(2),g.Y8G("ngIf","before"===(null==Y.data.options?null:Y.data.options.labelPosition)),g.R7$(1),g.Y8G("propsBinding",g.eq3(11,Li,g.l_i(8,ai,Y.data.props,g.lJ4(7,di))))("checked",!0===Y.control.value),g.R7$(2),g.Y8G("ngIf","before"!==(null==Y.data.options?null:Y.data.options.labelPosition))}}const Jr=function(ie){return{key:"textarea-autoheight",props:ie}};function Ki(ie,Rt){if(1&ie){const Y=g.RV6();g.qex(0),g.j41(1,"textarea",1),g.bIt("input",function(Ye){g.eBV(Y);const Ct=g.XpG();return g.Njj(Ct.onInput(Ye))}),g.k0s(),g.bVm()}if(2&ie){const Y=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(3,Ce,Y.control.disabled))("propsBinding",g.eq3(7,Li,g.eq3(5,Jr,Y.data.props)))("formControl",Y.control)}}const Ys=["componentAnchor"];function so(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div"),g.EFF(2),g.k0s(),g.bVm()),2&ie){const Y=Rt.$implicit;g.R7$(2),g.JRh(Y)}}function zo(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,so,3,1,"ng-container",3),g.bVm()),2&ie){const Y=g.XpG();g.R7$(1),g.Y8G("ngForOf",Y.errorMessages)}}const qa=function(ie,Rt){return{control:ie,messages:Rt}},xc=function(ie){return{transform:ie}};function mo(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"span",4),g.qSk(),g.j41(2,"svg",5),g.nrm(3,"path",6),g.k0s()(),g.bVm()),2&ie){const Y=g.XpG(2);g.R7$(1),g.Y8G("ngStyle",g.eq3(1,xc,Y.expand?"rotate(0deg)":"rotate(-180deg)"))}}function Ss(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"span",3),g.EFF(2),g.k0s(),g.DNE(3,mo,4,3,"ng-container",0),g.bVm()),2&ie){const Y=g.XpG();g.R7$(2),g.JRh(Y.label),g.R7$(1),g.Y8G("ngIf",Y.collapsible)}}const io=function(ie,Rt,Y,me,Ye,Ct){return{label:ie,layout:Rt,toggle:Y,collapsible:me,expand:Ye,props:Ct}};function Wo(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){const Y=g.XpG();g.Y8G("ngTemplateOutlet",Y.customTemplate)("ngTemplateOutletContext",g.l4e(2,io,Y.label,Y.layout,Y.toggle,Y.collapsible,Y.expand,Y.props))}}const ic=function(ie){return{type:"label",layout:ie}},jn=function(ie){return{required:ie}};function kn(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"form-label",6),g.nI1(2,"isControlRequired"),g.bVm()),2&ie){g.XpG();const Y=g.sdS(3),me=g.XpG();let Ye,Ct;g.R7$(1),g.Y8G("label",me.config.label)("layout",me.config.layout)("props",me.config.props)("collapsibleEl",Y)("customComponent",null!==(Ye=null==me.labelComponents?null:me.labelComponents[me.config.formControlName])&&void 0!==Ye?Ye:me.labelComponentDefault)("customTemplate",null!==(Ct=null==me.labelTemplates?null:me.labelTemplates[me.config.formControlName])&&void 0!==Ct?Ct:me.labelTemplateDefault)("state",me.collapsibleState)("controlLayout",g.eq3(11,ic,me.config.layout))("ngClass",g.eq3(13,jn,!1===(null==me.config.layout?null:me.config.layout.autoAddRequiredClass)?null:g.bMT(2,9,me.control)))}}const It=function(ie){return{data:ie}};function Jt(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){const Y=g.XpG(2),me=g.sdS(2);g.Y8G("ngTemplateOutlet",me)("ngTemplateOutletContext",g.eq3(2,It,Y.config))}}function Un(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){const Y=g.XpG(2),me=g.sdS(2);g.Y8G("ngTemplateOutlet",me)("ngTemplateOutletContext",g.eq3(2,It,Y.config))}}const yt=function(ie){return{type:"content",layout:ie}},ft=function(ie){return{type:"error",layout:ie}},Pt=function(ie){return{hidden:ie}};function Cn(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,kn,3,15,"ng-container",0),g.j41(2,"div",2,3),g.DNE(4,Jt,1,4,"ng-container",4),g.SdG(5),g.DNE(6,Un,1,4,"ng-container",4),g.nrm(7,"error-message",5),g.k0s(),g.bVm()),2&ie){const Y=g.XpG();let me,Ye;g.R7$(1),g.Y8G("ngIf",Y.config.label),g.R7$(1),g.Y8G("controlLayout",g.eq3(10,yt,Y.config.layout)),g.R7$(2),g.Y8G("ngIf",Y.config.description&&"after"!==(null==Y.config.layout?null:Y.config.layout.descriptionPosition)),g.R7$(2),g.Y8G("ngIf",Y.config.description&&"after"===(null==Y.config.layout?null:Y.config.layout.descriptionPosition)),g.R7$(1),g.Y8G("control",Y.control)("validators",Y.config.validators)("customComponent",null!==(me=null==Y.errorComponents?null:Y.errorComponents[Y.config.formControlName])&&void 0!==me?me:Y.errorComponentDefault)("customTemplate",null!==(Ye=null==Y.errorTemplates?null:Y.errorTemplates[Y.config.formControlName])&&void 0!==Ye?Ye:Y.errorTemplateDefault)("controlLayout",g.eq3(12,ft,Y.config.layout))("ngClass",g.eq3(14,Pt,!Y.showErrors))}}const pn=function(ie){return{type:"description",layout:ie}};function Di(ie,Rt){if(1&ie&&(g.j41(0,"span",8),g.EFF(1),g.k0s()),2&ie){const Y=Rt.data;g.Y8G("controlLayout",g.eq3(2,pn,Y.layout)),g.R7$(1),g.JRh(Y.description)}}const nr=["*"],tn=["inputComponentAnchor"];function Tt(ie,Rt){1&ie&&g.eu8(0)}const Kt=function(ie,Rt){return{disabled:ie,hidden:Rt}},Vn=function(ie,Rt,Y,me){return{control:ie,data:Rt,hostForm:Y,hideErrorMessage:me}};function qn(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",1),g.eu8(2,2)(3,null,3),g.k0s(),g.j41(5,"div",4),g.DNE(6,Tt,1,0,"ng-container",5),g.eu8(7,6),g.k0s(),g.bVm()),2&ie){const Y=g.XpG();let me,Ye,Ct;g.R7$(1),g.Y8G("ngClass",g.l_i(6,Kt,!Y.useCustomLoading&&Y.loading,Y.useCustomLoading&&Y.loading)),g.R7$(1),g.Y8G("ngTemplateOutlet",null!==(me=null==Y.customTemplates?null:Y.customTemplates[Y.data.formControlName])&&void 0!==me?me:null)("ngTemplateOutletContext",g.ziG(9,Vn,Y.control,Y.data,Y.hostForm,Y.hideErrorMessage$.value)),g.R7$(3),g.Y8G("ngClass",g.eq3(14,Pt,!Y.loading)),g.R7$(1),g.Y8G("ngComponentOutlet",null!==(Ye=Y.loadingComponent)&&void 0!==Ye?Ye:null),g.R7$(1),g.Y8G("ngTemplateOutlet",null!==(Ct=Y.loadingTemplate)&&void 0!==Ct?Ct:null)}}const pi=function(ie){return{type:"inputArea",layout:ie}};function ti(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"form-control",4),g.bVm()),2&ie){const Y=g.XpG().ngIf,me=g.XpG(2).$implicit,Ye=g.XpG();g.R7$(1),g.Y8G("data",me)("control",Y)("formControlName",me.formControlName)("customComponent",null==Ye.customComponents?null:Ye.customComponents[me.formControlName])("controlLayout",g.eq3(5,pi,me.layout))}}const Ni=function(ie){return{type:"formGroup",layout:ie}};function ii(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"form-group",5),g.bVm()),2&ie){const Y=g.XpG().ngIf,me=g.XpG(2).$implicit,Ye=g.XpG();g.R7$(1),g.Y8G("parentId",(Ye.parentId?Ye.parentId+".":"")+me.formControlName)("parentForm",Y)("configs",me.children)("collapsibleState",Ye.collapsibleState)("controlLayout",g.eq3(5,Ni,me.layout))}}const lr=function(ie,Rt){return{parentId:ie,controlName:Rt}},Gr=function(ie,Rt){return{"form-control-container":ie,readonly:Rt}},xs=function(ie){return{type:"host",layout:ie}};function ks(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"content-wrapper",3),g.nI1(2,"controlTypeByConfig"),g.DNE(3,ti,2,7,"ng-container",2),g.nI1(4,"controlTypeByConfig"),g.DNE(5,ii,2,7,"ng-container",2),g.nI1(6,"controlTypeByConfig"),g.k0s(),g.bVm()),2&ie){const Y=Rt.ngIf,me=g.XpG(2).$implicit,Ye=g.XpG();g.R7$(1),g.Y8G("config",me)("control",Y)("collapsibleState",Ye.collapsibleState)("hostId",g.l_i(14,lr,Ye.parentId,me.formControlName))("ngClass",g.l_i(17,Gr,"FormControl"===g.bMT(2,8,me),me.readonly))("controlLayout",g.eq3(20,xs,me.layout)),g.R7$(2),g.Y8G("ngIf","FormControl"===g.bMT(4,10,me)),g.R7$(2),g.Y8G("ngIf","FormGroup"===g.bMT(6,12,me))}}function Vr(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,ks,7,22,"ng-container",2),g.bVm()),2&ie){const Y=g.XpG().$implicit,me=g.XpG();g.R7$(1),g.Y8G("ngIf",null==me.parentForm||null==me.parentForm.controls?null:me.parentForm.controls[Y.formControlName])}}function Gs(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,Vr,2,1,"ng-container",2),g.bVm()),2&ie){const Y=Rt.$implicit;g.R7$(1),g.Y8G("ngIf",!Y.hidden)}}function Fr(ie,Rt){1&ie&&(g.qex(0),g.j41(1,"div",1)(2,"span"),g.EFF(3,"No configs found."),g.k0s()(),g.bVm())}function is(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"code"),g.EFF(2),g.nI1(3,"json"),g.k0s(),g.bVm()),2&ie){const Y=g.XpG().$implicit;g.R7$(2),g.JRh(g.bMT(3,1,Y.config))}}function Ro(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",4),g.EFF(2),g.k0s(),g.DNE(3,is,4,3,"ng-container",0),g.bVm()),2&ie){const Y=Rt.$implicit;g.R7$(2),g.JRh(Y.errors),g.R7$(1),g.Y8G("ngIf",Y.config)}}function Zo(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",2)(2,"div"),g.EFF(3,"NgDynamicJsonForm:"),g.k0s(),g.DNE(4,Ro,4,2,"ng-container",3),g.k0s(),g.bVm()),2&ie){const Y=g.XpG();g.R7$(4),g.Y8G("ngForOf",Y.configValidationErrors)}}function Vo(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"form-group",5),g.bVm()),2&ie){const Y=g.XpG();g.R7$(1),g.Y8G("parentForm",Y.form)("configs",Y.configGet)("collapsibleState",Y.collapsibleState)}}const qo=new g.nKC("property-binding-injector");function ea(ie){return{provide:qo,useValue:ie}}let oo=(()=>{class ie{constructor(){this._injectionTokens=(0,g.WQX)(qo,{optional:!0}),this._injector=(0,g.WQX)(g.zZn),this._cd=(0,g.WQX)(g.gRc),this._el=(0,g.WQX)(g.aKT),this._renderer2=(0,g.WQX)(g.sFG),this._isViewInitialized=!1}ngOnChanges(){this._isViewInitialized&&this._bindProperties()}ngAfterViewInit(){this._isViewInitialized=!0,this._bindProperties()}_bindProperties(){const Y=(this.propsBinding??[]).filter(Ye=>!!Ye&&"object"==typeof Ye.props&&Object.keys(Ye.props).length>0);if(!Y.length)return;const me=this._el.nativeElement;for(const Ye of Y){const{props:Ct,key:Oe,omit:nn=[]}=Ye,Qt=this._injectionTokens?.find(fe=>fe.key===Oe)?.token,ne=Qt?this._injector.get(Qt):null;for(const fe in Ct){const ee=Ct[fe];if(void 0!==ee&&!nn.includes(fe)){if(ne&&(ne[fe]=ee),ne&&ne.ngOnChanges){const $e=new g.FRM(void 0,ee,!0);ne.ngOnChanges({[fe]:$e})}me&&(this._renderer2.setAttribute(me,fe,ee),this._renderer2.setProperty(me,fe,ee))}}}this._cd.markForCheck(),this._cd.detectChanges()}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","propsBinding",""]],inputs:{propsBinding:"propsBinding"},standalone:!0,features:[g.OA$]})}return ie})(),xo=(()=>{class ie{constructor(){this._el=(0,g.WQX)(g.aKT),this._renderer2=(0,g.WQX)(g.sFG),this.autoResize=!0}ngAfterViewInit(){typeof window>"u"||(this._hostEl=this._el.nativeElement,this._hostEl&&(this._renderer2.setStyle(this._hostEl,"resize","none"),this._setHeight()))}onInput(){this._setHeight()}_setHeight(){if(!this._hostEl||!this.autoResize)return;const Y=Math.ceil(parseFloat(window.getComputedStyle(this._hostEl).borderWidth));this._renderer2.removeStyle(this._hostEl,"height"),this._renderer2.setStyle(this._hostEl,"height",`${this._hostEl.scrollHeight+2*Y}px`)}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","textareaAutoHeight",""]],hostBindings:function(me,Ye){1&me&&g.bIt("input",function(Oe){return Ye.onInput(Oe)})},inputs:{autoResize:"autoResize"},standalone:!0})}return ie})(),ta=(()=>{class ie{constructor(){this._imask=(0,g.WQX)(o.Zq),this._isNumber=!1,this._imask.writeValue=Y=>{this._isNumber||(this._isNumber="number"==typeof Y),Y=null==Y&&"typed"!==this._imask.unmask?"":`${Y}`,this._imask.maskRef?(this._imask.beginWrite(Y),this._imask.maskValue=Y,this._imask.endWrite()):(this._imask._renderer.setProperty(this._imask.element,"value",Y),this._imask._initialValue=Y)},this._imask._onAccept=()=>{const Y=this._isNumber?parseFloat(this._imask.maskValue):this._imask.maskValue;this._imask._writing&&Y===this._imask.endWrite()||(this._imask.onChange(Y),this._imask.accept.emit(Y))}}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","imaskValuePatch",""]],standalone:!0})}return ie})();var Ps=function(ie){return ie.required="required",ie.requiredTrue="requiredTrue",ie.min="min",ie.max="max",ie.minLength="minLength",ie.maxLength="maxLength",ie.email="email",ie.pattern="pattern",ie}(Ps||{}),Ma=function(ie){return ie["control.hidden"]="control.hidden",ie["control.disabled"]="control.disabled",ie["validator.required"]="validator.required",ie["validator.requiredTrue"]="validator.requiredTrue",ie["validator.min"]="validator.min",ie["validator.max"]="validator.max",ie["validator.minLength"]="validator.minLength",ie["validator.maxLength"]="validator.maxLength",ie["validator.email"]="validator.email",ie["validator.pattern"]="validator.pattern",ie}(Ma||{});let ws=(()=>{class ie{getCorrectedConfig(Y){const me=structuredClone(Y),{formControlName:Ye,props:Ct,inputMask:Oe,children:nn=[]}=me;return me.formControlName=this._getFormControlName(Ye),me.value=me.value??this._getFallbackValue(me),Ct&&(me.props=Object.keys(Ct).reduce((Qt,ne)=>("string"==typeof Qt[ne]&&(Qt[ne]=this._parseStringValue(Qt[ne])),Qt),Ct)),Oe&&this._mapInputMask(Oe),nn.length>0&&(me.children=nn.map(Qt=>this.getCorrectedConfig(Qt))),me}_getFallbackValue(Y){switch(Y.type){case"checkbox":return!(!Y.options?.src&&1===Y.options?.data?.length)&&[];case"switch":return!1;default:return Y.value}}_getFormControlName(Y){return[Oe=>Oe.replaceAll(/\s/g,"_"),Oe=>Oe.replaceAll(/[.,]/g,"")].reduce((Oe,nn)=>nn(Oe),Y)}_mapInputMask(Y){const me=Y;if("string"==typeof me.mask){const Ye=me.mask.trim();if("Number"===Ye&&(me.mask=Number),"Imask.MaskedRange"===Ye&&(me.mask=V.Ay.MaskedRange),new RegExp(/^\/.*\/\w*?$/).test(Ye)){const Ct=Ye.split("/"),Oe=Ct.concat().pop();me.mask=new RegExp(Ct[1],Oe)}}Array.isArray(me.mask)&&me.mask.forEach(Ye=>this._mapInputMask(Ye))}_parseStringValue(Y){const me=Y.trim();if(me.startsWith("Date(")&&me.endsWith(")")){const Ye=me.replace("Date(","").replace(")","").trim();try{return new Date(Ye)}catch{return Y}}return this._isIsoDate(me)?new Date(me):me}_isIsoDate(Y){if(!/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(Y))return!1;const me=new Date(Y);return me instanceof Date&&!isNaN(me.getTime())&&me.toISOString()===Y}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();function La([ie,Rt,Y]){switch(Rt){case"===":return ie===Y;case"!==":return ie!==Y;case">=":return ie>=Y;case">":return ie>Y;case"<=":return ie<=Y;case"<":return ieme.trim()).reduce((me,Ye)=>{if(null==me)return me;const Ct=me[Ye],Oe=Ye.startsWith("[")&&Ye.endsWith("]")&&3===Ye.split(",").length;return Array.isArray(Ct)&&(Y=Ct),Oe?me[function l1(ie,Rt){if(!Rt.startsWith("[")||!Rt.endsWith("]")||3!==Rt.split(",").length||!Array.isArray(ie))return Rt;const me=ee=>ee.replaceAll('"',"").replaceAll("'",""),[Ye,Ct,Oe]=Rt.replace("[","").replace("]","").split(",").map(ee=>ee.trim()),nn=me(Ye),Qt=me(Ct),fe=ie.findIndex(ee=>{const $e=nn?ao(ee,nn):ee,mt="string"!=typeof Oe?Oe:new RegExp(/^('|").*('|")$/).test(Oe)?me(Oe):JSON.parse(Oe);return La([$e,Qt,mt])});return fe<0?"0":fe.toString()}(Y,Ye)]:Ct},ie)}catch(me){return console.error(me),null}}const pl=new RegExp("^.+$","u"),rc={type:"array",minItems:3,maxItems:3,items:[{},{enum:["===","!==",">=",">","<=","<","includes","notIncludes"]},{}]},ql={validate:Xa};function go(ie,{instancePath:Rt="",rootData:Ye=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!Array.isArray(ie))return go.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const ne=ie.length;for(let fe=0;fe3){const bi={instancePath:Rt+"/"+fe,schemaPath:"#/definitions/conditionIfConfig/maxItems",keyword:"maxItems",params:{limit:3},message:"must NOT have more than 3 items"};null===Ct?Ct=[bi]:Ct.push(bi),Oe++}else if(ee.length<3){const bi={instancePath:Rt+"/"+fe,schemaPath:"#/definitions/conditionIfConfig/minItems",keyword:"minItems",params:{limit:3},message:"must NOT have fewer than 3 items"};null===Ct?Ct=[bi]:Ct.push(bi),Oe++}else if(ee.length>1){let Bo=ee[1];if("==="!==Bo&&"!=="!==Bo&&">="!==Bo&&">"!==Bo&&"<="!==Bo&&"<"!==Bo&&"includes"!==Bo&&"notIncludes"!==Bo){const So={instancePath:Rt+"/"+fe+"/1",schemaPath:"#/definitions/conditionIfConfig/items/1/enum",keyword:"enum",params:{allowedValues:rc.items[1].enum},message:"must be equal to one of the allowed values"};null===Ct?Ct=[So]:Ct.push(So),Oe++}}}else{const bi={instancePath:Rt+"/"+fe,schemaPath:"#/definitions/conditionIfConfig/type",keyword:"type",params:{type:"array"},message:"must be array"};null===Ct?Ct=[bi]:Ct.push(bi),Oe++}var Qt=ir===Oe;if(Gn=Gn||Qt,!Gn){const bi=Oe;ql.validate(ee,{instancePath:Rt+"/"+fe,parentData:ie,parentDataProperty:fe,rootData:Ye})||(Ct=null===Ct?ql.validate.errors:Ct.concat(ql.validate.errors),Oe=Ct.length),Qt=bi===Oe,Gn=Gn||Qt}if(!Gn){const bi={instancePath:Rt+"/"+fe,schemaPath:"#/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return null===Ct?Ct=[bi]:Ct.push(bi),Oe++,go.errors=Ct,!1}if(Oe=mt,null!==Ct&&(mt?Ct.length=mt:Ct=null),$e!==Oe)break}}}return go.errors=Ct,0===Oe}function Xa(ie,{instancePath:Rt="",rootData:Ye=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return Xa.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{const Qt=Oe;for(const ne in ie)if("&&"!==ne&&"||"!==ne)return Xa.errors=[{instancePath:Rt,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"}],!1;if(Qt===Oe){if(void 0!==ie["&&"]){const ne=Oe;go(ie["&&"],{instancePath:Rt+"/&&",parentData:ie,parentDataProperty:"&&",rootData:Ye})||(Ct=null===Ct?go.errors:Ct.concat(go.errors),Oe=Ct.length);var nn=ne===Oe}else nn=!0;if(nn)if(void 0!==ie["||"]){const ne=Oe;go(ie["||"],{instancePath:Rt+"/||",parentData:ie,parentDataProperty:"||",rootData:Ye})||(Ct=null===Ct?go.errors:Ct.concat(go.errors),Oe=Ct.length),nn=ne===Oe}else nn=!0}}}return Xa.errors=Ct,0===Oe}function Ws(ie,{instancePath:Rt="",rootData:Ye=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return Ws.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{const Qt=Oe;for(const ne in ie)if(!pl.test(ne))return Ws.errors=[{instancePath:Rt,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"}],!1;if(Qt===Oe)for(const ne in ie)if(pl.test(ne)){const fe=Oe;if(Xa(ie[ne],{instancePath:Rt+"/"+ne.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:ie,parentDataProperty:ne,rootData:Ye})||(Ct=null===Ct?Xa.errors:Ct.concat(Xa.errors),Oe=Ct.length),fe!==Oe)break}}}return Ws.errors=Ct,0===Oe}const As={$schema:"http://json-schema.org/draft-07/schema#",$id:"ConfigLayoutSchema",type:"object",properties:{hostClass:{type:"string"},hostStyles:{type:"string"},labelClass:{type:"string"},labelStyles:{type:"string"},contentClass:{type:"string"},contentStyles:{type:"string"},formGroupClass:{type:"string"},formGroupStyles:{type:"string"},descriptionClass:{type:"string"},descriptionStyles:{type:"string"},inputAreaClass:{type:"string"},inputAreaStyles:{type:"string"},errorClass:{type:"string"},errorStyles:{type:"string"},descriptionPosition:{enum:["after","before"]},hideLabel:{type:"boolean"},contentCollapsible:{enum:["collapse","expand"],description:"Enable expand/collapse of content. The default state will be determined by value provided"},autoAddRequiredClass:{type:"boolean",description:"Add `required` class automatically to control if there's validator named `required`. Default is true."}}},Ka={$schema:"http://json-schema.org/draft-07/schema#",$id:"ConfigOptionsSchema",type:"object",properties:{data:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{}}}},src:{oneOf:[{type:"string"},{$ref:"#/definitions/optionSourceConfig"}]},srcAppendPosition:{type:"string",enum:["after","before"]},autoSelectFirst:{type:"boolean"},layout:{type:"string",enum:["row","column"]},labelPosition:{type:"string",enum:["after","before"]},containerClass:{type:"string"},containerStyles:{type:"string"}},definitions:{optionSourceConfig:{type:"object",properties:{url:{type:"string"},method:{type:"string",enum:["GET","POST"]},headers:{},body:{},mapData:{type:"object",properties:{labelKey:{type:"string"},valueKeys:{type:"array",items:{type:"string"}},contentPath:{type:"string"},slice:{type:"array",items:[{type:"number"},{type:"number"}],minItems:2,maxItems:2},appendPosition:{type:"string",enum:["after","before"]}}},trigger:{type:"object",properties:{by:{type:"string"},body:{},debounceTime:{type:"number"}}},filter:{type:"object",properties:{by:{type:"string"},conditions:{$ref:"ConfigConditionsSchema#/definitions/conditionGroupConfig"},debounceTime:{type:"number"}}}}}}},hc={type:"object",properties:{url:{type:"string"},method:{type:"string",enum:["GET","POST"]},headers:{},body:{},mapData:{type:"object",properties:{labelKey:{type:"string"},valueKeys:{type:"array",items:{type:"string"}},contentPath:{type:"string"},slice:{type:"array",items:[{type:"number"},{type:"number"}],minItems:2,maxItems:2},appendPosition:{type:"string",enum:["after","before"]}}},trigger:{type:"object",properties:{by:{type:"string"},body:{},debounceTime:{type:"number"}}},filter:{type:"object",properties:{by:{type:"string"},conditions:{$ref:"ConfigConditionsSchema#/definitions/conditionGroupConfig"},debounceTime:{type:"number"}}}}};function Xr(ie,{instancePath:Rt="",rootData:Ye=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return Xr.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{const Qt=Oe;for(const ne in ie)if("&&"!==ne&&"||"!==ne)return Xr.errors=[{instancePath:Rt,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"}],!1;if(Qt===Oe){if(void 0!==ie["&&"]){const ne=Oe;go(ie["&&"],{instancePath:Rt+"/&&",parentData:ie,parentDataProperty:"&&",rootData:Ye})||(Ct=null===Ct?go.errors:Ct.concat(go.errors),Oe=Ct.length);var nn=ne===Oe}else nn=!0;if(nn)if(void 0!==ie["||"]){const ne=Oe;go(ie["||"],{instancePath:Rt+"/||",parentData:ie,parentDataProperty:"||",rootData:Ye})||(Ct=null===Ct?go.errors:Ct.concat(go.errors),Oe=Ct.length),nn=ne===Oe}else nn=!0}}}return Xr.errors=Ct,0===Oe}function Br(ie,{instancePath:Rt="",rootData:Ye=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return Br.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==ie.url){const mt=Oe;if("string"!=typeof ie.url)return Br.errors=[{instancePath:Rt+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var nn=mt===Oe}else nn=!0;if(nn){if(void 0!==ie.method){let mt=ie.method;const Gn=Oe;if("string"!=typeof mt)return Br.errors=[{instancePath:Rt+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("GET"!==mt&&"POST"!==mt)return Br.errors=[{instancePath:Rt+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:hc.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;nn=Gn===Oe}else nn=!0;if(nn){if(void 0!==ie.mapData){let mt=ie.mapData;const Gn=Oe;if(Oe===Gn){if(!mt||"object"!=typeof mt||Array.isArray(mt))return Br.errors=[{instancePath:Rt+"/mapData",schemaPath:"#/properties/mapData/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==mt.labelKey){const zr=Oe;if("string"!=typeof mt.labelKey)return Br.errors=[{instancePath:Rt+"/mapData/labelKey",schemaPath:"#/properties/mapData/properties/labelKey/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Qt=zr===Oe}else Qt=!0;if(Qt){if(void 0!==mt.valueKeys){let zr=mt.valueKeys;const ra=Oe;if(Oe===ra){if(!Array.isArray(zr))return Br.errors=[{instancePath:Rt+"/mapData/valueKeys",schemaPath:"#/properties/mapData/properties/valueKeys/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const Bo=zr.length;for(let So=0;So2)return Br.errors=[{instancePath:Rt+"/mapData/slice",schemaPath:"#/properties/mapData/properties/slice/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"}],!1;if(zr.length<2)return Br.errors=[{instancePath:Rt+"/mapData/slice",schemaPath:"#/properties/mapData/properties/slice/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"}],!1;{const Bo=zr.length;if(Bo>0){let So=zr[0];const Pa=Oe;if("number"!=typeof So||!isFinite(So))return Br.errors=[{instancePath:Rt+"/mapData/slice/0",schemaPath:"#/properties/mapData/properties/slice/items/0/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var fe=Pa===Oe}if(fe&&Bo>1){let So=zr[1];const Pa=Oe;if("number"!=typeof So||!isFinite(So))return Br.errors=[{instancePath:Rt+"/mapData/slice/1",schemaPath:"#/properties/mapData/properties/slice/items/1/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;fe=Pa===Oe}}}Qt=ra===Oe}else Qt=!0;if(Qt)if(void 0!==mt.appendPosition){let zr=mt.appendPosition;const ra=Oe;if("string"!=typeof zr)return Br.errors=[{instancePath:Rt+"/mapData/appendPosition",schemaPath:"#/properties/mapData/properties/appendPosition/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("after"!==zr&&"before"!==zr)return Br.errors=[{instancePath:Rt+"/mapData/appendPosition",schemaPath:"#/properties/mapData/properties/appendPosition/enum",keyword:"enum",params:{allowedValues:hc.properties.mapData.properties.appendPosition.enum},message:"must be equal to one of the allowed values"}],!1;Qt=ra===Oe}else Qt=!0}}}}nn=Gn===Oe}else nn=!0;if(nn){if(void 0!==ie.trigger){let mt=ie.trigger;const Gn=Oe;if(Oe===Gn){if(!mt||"object"!=typeof mt||Array.isArray(mt))return Br.errors=[{instancePath:Rt+"/trigger",schemaPath:"#/properties/trigger/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==mt.by){const zr=Oe;if("string"!=typeof mt.by)return Br.errors=[{instancePath:Rt+"/trigger/by",schemaPath:"#/properties/trigger/properties/by/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=zr===Oe}else ee=!0;if(ee)if(void 0!==mt.debounceTime){let zr=mt.debounceTime;const ra=Oe;if("number"!=typeof zr||!isFinite(zr))return Br.errors=[{instancePath:Rt+"/trigger/debounceTime",schemaPath:"#/properties/trigger/properties/debounceTime/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;ee=ra===Oe}else ee=!0}nn=Gn===Oe}else nn=!0;if(nn)if(void 0!==ie.filter){let mt=ie.filter;const Gn=Oe;if(Oe===Gn){if(!mt||"object"!=typeof mt||Array.isArray(mt))return Br.errors=[{instancePath:Rt+"/filter",schemaPath:"#/properties/filter/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==mt.by){const zr=Oe;if("string"!=typeof mt.by)return Br.errors=[{instancePath:Rt+"/filter/by",schemaPath:"#/properties/filter/properties/by/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $e=zr===Oe}else $e=!0;if($e){if(void 0!==mt.conditions){const zr=Oe;Xr(mt.conditions,{instancePath:Rt+"/filter/conditions",parentData:mt,parentDataProperty:"conditions",rootData:Ye})||(Ct=null===Ct?Xr.errors:Ct.concat(Xr.errors),Oe=Ct.length),$e=zr===Oe}else $e=!0;if($e)if(void 0!==mt.debounceTime){let zr=mt.debounceTime;const ra=Oe;if("number"!=typeof zr||!isFinite(zr))return Br.errors=[{instancePath:Rt+"/filter/debounceTime",schemaPath:"#/properties/filter/properties/debounceTime/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;$e=ra===Oe}else $e=!0}}nn=Gn===Oe}else nn=!0}}}}return Br.errors=Ct,0===Oe}function fr(ie,{instancePath:Rt="",rootData:Ye=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return fr.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==ie.data){let fe=ie.data;const ee=Oe;if(Oe===ee){if(!Array.isArray(fe))return fr.errors=[{instancePath:Rt+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const $e=fe.length;for(let mt=0;mt<$e;mt++){let Gn=fe[mt];const ir=Oe;if(Oe===ir){if(!Gn||"object"!=typeof Gn||Array.isArray(Gn))return fr.errors=[{instancePath:Rt+"/data/"+mt,schemaPath:"#/properties/data/items/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==Gn.label&&"string"!=typeof Gn.label)return fr.errors=[{instancePath:Rt+"/data/"+mt+"/label",schemaPath:"#/properties/data/items/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}if(ir!==Oe)break}}}var Qt=ee===Oe}else Qt=!0;if(Qt){if(void 0!==ie.src){let fe=ie.src;const ee=Oe,$e=Oe;let mt=!1,Gn=null;const ir=Oe;if("string"!=typeof fe){const bi={instancePath:Rt+"/src",schemaPath:"#/properties/src/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===Ct?Ct=[bi]:Ct.push(bi),Oe++}ir===Oe&&(mt=!0,Gn=0);const zr=Oe;var ne;if(Br(fe,{instancePath:Rt+"/src",parentData:ie,parentDataProperty:"src",rootData:Ye})||(Ct=null===Ct?Br.errors:Ct.concat(Br.errors),Oe=Ct.length),(ne=zr===Oe)&&mt?(mt=!1,Gn=[Gn,1]):ne&&(mt=!0,Gn=1),!mt){const bi={instancePath:Rt+"/src",schemaPath:"#/properties/src/oneOf",keyword:"oneOf",params:{passingSchemas:Gn},message:"must match exactly one schema in oneOf"};return null===Ct?Ct=[bi]:Ct.push(bi),Oe++,fr.errors=Ct,!1}Oe=$e,null!==Ct&&($e?Ct.length=$e:Ct=null),Qt=ee===Oe}else Qt=!0;if(Qt){if(void 0!==ie.srcAppendPosition){let fe=ie.srcAppendPosition;const ee=Oe;if("string"!=typeof fe)return fr.errors=[{instancePath:Rt+"/srcAppendPosition",schemaPath:"#/properties/srcAppendPosition/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("after"!==fe&&"before"!==fe)return fr.errors=[{instancePath:Rt+"/srcAppendPosition",schemaPath:"#/properties/srcAppendPosition/enum",keyword:"enum",params:{allowedValues:Ka.properties.srcAppendPosition.enum},message:"must be equal to one of the allowed values"}],!1;Qt=ee===Oe}else Qt=!0;if(Qt){if(void 0!==ie.autoSelectFirst){const fe=Oe;if("boolean"!=typeof ie.autoSelectFirst)return fr.errors=[{instancePath:Rt+"/autoSelectFirst",schemaPath:"#/properties/autoSelectFirst/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Qt=fe===Oe}else Qt=!0;if(Qt){if(void 0!==ie.layout){let fe=ie.layout;const ee=Oe;if("string"!=typeof fe)return fr.errors=[{instancePath:Rt+"/layout",schemaPath:"#/properties/layout/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("row"!==fe&&"column"!==fe)return fr.errors=[{instancePath:Rt+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Ka.properties.layout.enum},message:"must be equal to one of the allowed values"}],!1;Qt=ee===Oe}else Qt=!0;if(Qt){if(void 0!==ie.labelPosition){let fe=ie.labelPosition;const ee=Oe;if("string"!=typeof fe)return fr.errors=[{instancePath:Rt+"/labelPosition",schemaPath:"#/properties/labelPosition/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("after"!==fe&&"before"!==fe)return fr.errors=[{instancePath:Rt+"/labelPosition",schemaPath:"#/properties/labelPosition/enum",keyword:"enum",params:{allowedValues:Ka.properties.labelPosition.enum},message:"must be equal to one of the allowed values"}],!1;Qt=ee===Oe}else Qt=!0;if(Qt){if(void 0!==ie.containerClass){const fe=Oe;if("string"!=typeof ie.containerClass)return fr.errors=[{instancePath:Rt+"/containerClass",schemaPath:"#/properties/containerClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=fe===Oe}else Qt=!0;if(Qt)if(void 0!==ie.containerStyles){const fe=Oe;if("string"!=typeof ie.containerStyles)return fr.errors=[{instancePath:Rt+"/containerStyles",schemaPath:"#/properties/containerStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=fe===Oe}else Qt=!0}}}}}}}return fr.errors=Ct,0===Oe}const il=function gr(ie,{instancePath:Rt="",rootData:Ye=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!Array.isArray(ie))return gr.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const $e=ie.length;for(let mt=0;mt<$e;mt++){let Gn=ie[mt];const ir=Oe;if(Oe===ir){if(!Gn||"object"!=typeof Gn||Array.isArray(Gn))return gr.errors=[{instancePath:Rt+"/"+mt,schemaPath:"#/items/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let ra;if(void 0===Gn.formControlName&&(ra="formControlName"))return gr.errors=[{instancePath:Rt+"/"+mt,schemaPath:"#/items/required",keyword:"required",params:{missingProperty:ra},message:"must have required property '"+ra+"'"}],!1;if(void 0!==Gn.formControlName){const bi=Oe;if("string"!=typeof Gn.formControlName)return gr.errors=[{instancePath:Rt+"/"+mt+"/formControlName",schemaPath:"#/items/properties/formControlName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.conditions){const bi=Oe;Ws(Gn.conditions,{instancePath:Rt+"/"+mt+"/conditions",parentData:Gn,parentDataProperty:"conditions",rootData:Ye})||(Ct=null===Ct?Ws.errors:Ct.concat(Ws.errors),Oe=Ct.length),Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.children){const bi=Oe;gr(Gn.children,{instancePath:Rt+"/"+mt+"/children",parentData:Gn,parentDataProperty:"children",rootData:Ye})||(Ct=null===Ct?gr.errors:Ct.concat(gr.errors),Oe=Ct.length),Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.description){const bi=Oe;if("string"!=typeof Gn.description)return gr.errors=[{instancePath:Rt+"/"+mt+"/description",schemaPath:"#/items/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.hidden){const bi=Oe;if("boolean"!=typeof Gn.hidden)return gr.errors=[{instancePath:Rt+"/"+mt+"/hidden",schemaPath:"#/items/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.label){const bi=Oe;if("string"!=typeof Gn.label)return gr.errors=[{instancePath:Rt+"/"+mt+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.layout){let bi=Gn.layout;const Bo=Oe;if(Oe==Oe){if(!bi||"object"!=typeof bi||Array.isArray(bi))return gr.errors=[{instancePath:Rt+"/"+mt+"/layout",schemaPath:"ConfigLayoutSchema/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==bi.hostClass){const Kr=Oe;if("string"!=typeof bi.hostClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/hostClass",schemaPath:"ConfigLayoutSchema/properties/hostClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.hostStyles){const Kr=Oe;if("string"!=typeof bi.hostStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/hostStyles",schemaPath:"ConfigLayoutSchema/properties/hostStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.labelClass){const Kr=Oe;if("string"!=typeof bi.labelClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/labelClass",schemaPath:"ConfigLayoutSchema/properties/labelClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.labelStyles){const Kr=Oe;if("string"!=typeof bi.labelStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/labelStyles",schemaPath:"ConfigLayoutSchema/properties/labelStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.contentClass){const Kr=Oe;if("string"!=typeof bi.contentClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/contentClass",schemaPath:"ConfigLayoutSchema/properties/contentClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.contentStyles){const Kr=Oe;if("string"!=typeof bi.contentStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/contentStyles",schemaPath:"ConfigLayoutSchema/properties/contentStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.formGroupClass){const Kr=Oe;if("string"!=typeof bi.formGroupClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/formGroupClass",schemaPath:"ConfigLayoutSchema/properties/formGroupClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.formGroupStyles){const Kr=Oe;if("string"!=typeof bi.formGroupStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/formGroupStyles",schemaPath:"ConfigLayoutSchema/properties/formGroupStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.descriptionClass){const Kr=Oe;if("string"!=typeof bi.descriptionClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/descriptionClass",schemaPath:"ConfigLayoutSchema/properties/descriptionClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.descriptionStyles){const Kr=Oe;if("string"!=typeof bi.descriptionStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/descriptionStyles",schemaPath:"ConfigLayoutSchema/properties/descriptionStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.inputAreaClass){const Kr=Oe;if("string"!=typeof bi.inputAreaClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/inputAreaClass",schemaPath:"ConfigLayoutSchema/properties/inputAreaClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.inputAreaStyles){const Kr=Oe;if("string"!=typeof bi.inputAreaStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/inputAreaStyles",schemaPath:"ConfigLayoutSchema/properties/inputAreaStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.errorClass){const Kr=Oe;if("string"!=typeof bi.errorClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/errorClass",schemaPath:"ConfigLayoutSchema/properties/errorClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.errorStyles){const Kr=Oe;if("string"!=typeof bi.errorStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/errorStyles",schemaPath:"ConfigLayoutSchema/properties/errorStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.descriptionPosition){let Kr=bi.descriptionPosition;const ja=Oe;if("after"!==Kr&&"before"!==Kr)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/descriptionPosition",schemaPath:"ConfigLayoutSchema/properties/descriptionPosition/enum",keyword:"enum",params:{allowedValues:As.properties.descriptionPosition.enum},message:"must be equal to one of the allowed values"}],!1;ne=ja===Oe}else ne=!0;if(ne){if(void 0!==bi.hideLabel){const Kr=Oe;if("boolean"!=typeof bi.hideLabel)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/hideLabel",schemaPath:"ConfigLayoutSchema/properties/hideLabel/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.contentCollapsible){let Kr=bi.contentCollapsible;const ja=Oe;if("collapse"!==Kr&&"expand"!==Kr)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/contentCollapsible",schemaPath:"ConfigLayoutSchema/properties/contentCollapsible/enum",keyword:"enum",params:{allowedValues:As.properties.contentCollapsible.enum},message:"must be equal to one of the allowed values"}],!1;ne=ja===Oe}else ne=!0;if(ne)if(void 0!==bi.autoAddRequiredClass){const Kr=Oe;if("boolean"!=typeof bi.autoAddRequiredClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/autoAddRequiredClass",schemaPath:"ConfigLayoutSchema/properties/autoAddRequiredClass/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ne=Kr===Oe}else ne=!0}}}}}}}}}}}}}}}}}Qt=Bo===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.options){const bi=Oe;fr(Gn.options,{instancePath:Rt+"/"+mt+"/options",parentData:Gn,parentDataProperty:"options",rootData:Ye})||(Ct=null===Ct?fr.errors:Ct.concat(fr.errors),Oe=Ct.length),Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.readonly){const bi=Oe;if("boolean"!=typeof Gn.readonly)return gr.errors=[{instancePath:Rt+"/"+mt+"/readonly",schemaPath:"#/items/properties/readonly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.type){const bi=Oe;if("string"!=typeof Gn.type)return gr.errors=[{instancePath:Rt+"/"+mt+"/type",schemaPath:"#/items/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt)if(void 0!==Gn.validators){let bi=Gn.validators;const Bo=Oe;if(Oe==Oe){if(!Array.isArray(bi))return gr.errors=[{instancePath:Rt+"/"+mt+"/validators",schemaPath:"ConfigValidatorsSchema/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const Kr=bi.length;for(let ja=0;ja{class ie{constructor(){this._configMappingService=(0,g.WQX)(ws)}validateAndGetConfig(Y){const me={configs:null,errors:[{errors:"No configs found"}]};if(Array.isArray(Y))return il(Y)?{configs:Y.filter(Boolean).map(Ct=>this._configMappingService.getCorrectedConfig(Ct))}:(me.errors=(il.errors||[]).map(Ct=>this._getBeautifyErrors(Ct,Y)),me);if("string"==typeof Y)try{const Ye=JSON.parse(Y);return this.validateAndGetConfig(Ye)}catch(Ye){return me.errors=[{errors:JSON.stringify(Ye,Object.getOwnPropertyNames(Ye),4)}],me}return me}_getBeautifyErrors(Y,me){const Ye=Y.instancePath.substring(1).split("/"),Ct=Ye[Ye.length-1],Oe=new RegExp(/^\d+$/).test(Ct),Qt=ao(me,Oe?Ye.join("."):Ye[Ye.length-2]);return{errors:Oe?Y.message??"":`"${Ct}" ${Y.message}`,config:Qt}}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();function yi(ie,Rt){if(!ie["&&"]&&!ie["||"])return;const Y=ie["&&"]?"&&":"||",me=ie[Y],Ye=me.filter(nn=>!Array.isArray(nn)).map(nn=>nn).map(nn=>yi(nn,Rt)),Ct=me.filter(nn=>Array.isArray(nn)).map(nn=>nn).map(nn=>{const[Qt,ne,fe]=Rt(nn);return La([Qt,ne,fe])}),Oe=Ye.concat(Ct).filter(nn=>void 0!==nn);return"&&"===Y?Oe.every(Boolean):Oe.some(Boolean)}function Kn(ie){const Rt=ie.trim().split(/(,(?![^\[]*\]))/).filter(Y=>","!==Y);return{controlPath:Rt[0].trim(),...Rt.length>1&&{valuePath:Rt[1]}}}let ar=(()=>{class ie{constructor(){this.hideErrorMessage$=new oe.t(void 0),this.rootConfigs=[]}setup(Y){for(const me in Y)this[me]=Y[me]}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();function Sa(ie){const Rt=RegExp(/^[^@\s!(){}<>]+@[\w-]+(\.[A-Za-z]+)+$/).test(ie.value);return ie.value?Rt?null:{email:"Invalid email format"}:null}let ns=(()=>{class ie{constructor(){this._globalVariableService=(0,g.WQX)(ar)}getErrorMessages$(Y,me){return Y&&me?.length?Y.statusChanges.pipe((0,pe.Z)(Y.status),(0,Ee.T)(()=>this._getErrorMessages(Y.errors,Y.value,me))):De.w}getValidators(Y){return Y&&Y.length?[...new Map(Y.map(Ye=>[Ye.name,Ye])).values()].map(Ye=>{const{name:Ct}=Ye,nn=(ie=>({[Ps.required]:dt.k0.required,[Ps.requiredTrue]:dt.k0.requiredTrue,[Ps.email]:Sa,[Ps.pattern]:dt.k0.pattern(ie),[Ps.min]:dt.k0.min(ie),[Ps.max]:dt.k0.max(ie),[Ps.minLength]:dt.k0.minLength(ie),[Ps.maxLength]:dt.k0.maxLength(ie)}))(this._getValidatorValue(Ye))[Ct],Qt=this._getCustomValidator(Ye);return nn??Qt??dt.k0.nullValidator}):null}_getCustomValidator(Y){const me=this._globalVariableService.customValidators,{name:Ye,value:Ct}=Y,Oe=me?.[Ye];return Oe?null==Ct||""===`${Ct}`.trim()?Oe:Oe(Ct):null}_getErrorMessages(Y,me,Ye){return Y?Object.keys(Y).reduce((Oe,nn)=>{const Qt=Y[nn],fe=this._getConfigFromErrorKey({[nn]:Qt},Ye)?.message?.replace(/{{value}}/g,me||"");return Oe.push(fe||(Oe=>"string"==typeof Oe?Oe:JSON.stringify(Oe))(Qt)),Oe},[]):[]}_getConfigFromErrorKey(Y,me){const Ye={pattern:"requiredPattern",min:"min",max:"max",minLength:"requiredLength",maxLength:"requiredLength"},[Oe,nn]=Object.entries(Y)[0];return me.find(ne=>{const{name:fe,value:ee}=ne;if(Oe!==fe.toLowerCase())return!1;if(null==ee||""===ee)return!0;const mt=nn[Ye[fe]??""],Gn=(ne=>"number"==typeof ne||isNaN(ne)?ne:parseFloat(ne))(ee);return mt&&"pattern"===fe?mt.includes(Gn):mt===Gn})}_getValidatorValue(Y){const{name:me,value:Ye,flags:Ct}=Y;switch(me){case Ps.pattern:return Ye instanceof RegExp?Ye:new RegExp(Ye,Ct);case Ps.min:case Ps.max:case Ps.minLength:case Ps.maxLength:try{return"number"!=typeof Ye?parseFloat(Ye):Ye}catch{break}default:return Ye}}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),ka=(()=>{class ie{constructor(){this._renderer2=(0,g.WQX)(g._9s).createRenderer(null,null),this._globalVariableService=(0,g.WQX)(ar),this._formValidationService=(0,g.WQX)(ns)}listenConditions$(){const Y=this._globalVariableService.rootConfigs,me=this._globalVariableService.rootForm;if(!Y.length||!me||typeof window>"u")return(0,be.of)(null);const Ye=this._getPathsOfControlsToListen(Y).map(nn=>me.get(nn)).filter(Boolean),Ct=this._configsWithConditions(Y);return(0,Te.H)(Ye).pipe((0,Ve.Z)(nn=>(nn=>nn.valueChanges.pipe((0,pe.Z)(nn.value),(0,ge.F)((Qt,ne)=>JSON.stringify(Qt)===JSON.stringify(ne))))(nn)),(0,ze.M)(()=>this._onConditionsMet(Ct)))}_onConditionsMet(Y){const me=this._globalVariableService.rootForm;if(me)for(const Ye in Y){const Ct=me.get(Ye);if(!Ct)continue;const Oe=Y[Ye],nn=Oe.conditions;this._executeCustomActions(nn,Ct),this._toggleValidators(Oe,Ct),this._toggleControlStates(nn,Ct,Ye)}}_toggleControlStates(Y,me,Ye){const Ct=Ma["control.disabled"],Oe=Ma["control.hidden"],nn=Object.keys(Y).filter(Qt=>Qt===Ct||Qt===Oe);if(nn.length)for(const Qt of nn){const ne=this._evaluateConditionsStatement(Y[Qt]);void 0!==ne&&(Qt===Ct&&this._disableControl(me,ne),Qt===Oe&&(this._hideControl(Ye,ne),this._disableControl(me,ne)))}}_disableControl(Y,me){window.requestAnimationFrame(()=>{me?Y.disable():Y.enable()})}_hideControl(Y,me){const Ye=(Ct,Oe,nn)=>{this._renderer2.setStyle(Ct,Oe,me?nn:null)};this._getTargetEl$(Y).pipe((0,vt.p)(Boolean),(0,ze.M)(Ct=>{Ye(Ct,"display","none")})).subscribe()}_toggleValidators(Y,me){const{conditions:Ye={},validators:Ct=[]}=Y,Oe=Object.keys(Ye).filter(ne=>new RegExp(/^validator\.[a-zA-z]{1,}$/).test(ne));if(!Oe.length)return;const nn=Ct.filter(ne=>{const fe=`validator.${ne.name??""}`;return!!Oe.includes(fe)&&this._evaluateConditionsStatement(Ye[fe])}),Qt=this._formValidationService.getValidators(nn);me.setValidators(Qt),me.updateValueAndValidity()}_executeCustomActions(Y,me){const Ye=Object.values(Ma),Ct=Object.keys(Y).filter(Oe=>!Ye.includes(Oe));if(Ct.length)for(const Oe of Ct){if(!this._evaluateConditionsStatement(Y[Oe]))continue;const Qt=this._globalVariableService.conditionsActionFunctions;Qt&&Qt[Oe]&&"function"==typeof Qt[Oe]&&Qt[Oe](me)}}_getTargetEl$(Y){return typeof window>"u"?(0,be.of)(null):new Re.c(me=>{window.requestAnimationFrame(()=>{const Ye=this._globalVariableService.hostElement?.querySelector(`#${CSS.escape(Y)}`);me.next(Ye||null),me.complete(),me.unsubscribe()})})}_getPathsOfControlsToListen(Y){const me=Oe=>{const nn=Oe["&&"]||Oe["||"];return nn?nn.flatMap(Qt=>Array.isArray(Qt)?[this._getControlPathFromStatement(Qt[0])??"",this._getControlPathFromStatement(Qt[2])??""]:me(Qt)):[]},Ye=Y.reduce((Oe,nn)=>{const{conditions:Qt,children:ne}=nn,fe=Qt?Object.values(Qt).filter($e=>!!$e&&Object.keys($e).length>0).flatMap($e=>me($e)).filter(Boolean):[],ee=ne?.length?this._getPathsOfControlsToListen(ne):[];return Oe.push(...fe.concat(ee)),Oe},[]);return[...new Set(Ye)]}_configsWithConditions(Y,me){return Y.reduce((Ct,Oe)=>{const{conditions:nn,children:Qt}=Oe,ne=me?`${me}.${Oe.formControlName}`:Oe.formControlName;return nn&&(Ct[ne]=Oe),Qt&&Qt.length&&(Ct={...Ct,...this._configsWithConditions(Qt,ne)}),Ct},{})}_evaluateConditionsStatement(Y){return this._globalVariableService.rootForm&&(Y["&&"]||Y["||"])?yi(Y,Ct=>{const[Oe,nn,Qt]=Ct;return[this._getValueFromStatement(Oe),nn,this._getValueFromStatement(Qt)]}):void 0}_getControlPathFromStatement(Y){const me=this._globalVariableService.rootForm;if(!me||"string"!=typeof Y)return;const Ye=Kn(Y);return me.get(Ye.controlPath)?Ye.controlPath:void 0}_getValueFromStatement(Y){const me=this._globalVariableService.rootForm;if(!me||"string"!=typeof Y)return Y;const Ye=Kn(Y),Ct=me.get(Ye.controlPath);return Ct?Ye.valuePath?ao(Ct.value,Ye.valuePath):Ct.value:Y}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),Is=(()=>{class ie{constructor(){this._formValidationService=(0,g.WQX)(ns)}generateFormGroup(Y){const me=new dt.J3({});for(const Ye of Y){const Ct=Ye.children?.length?this.generateFormGroup(Ye.children):new dt.MJ(Ye.value),Oe=this._formValidationService.getValidators(Ye.validators);Ct.setValidators(Oe),me.addControl(Ye.formControlName,Ct)}return me}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),wc=(()=>{class ie{constructor(){this.optionsReady$=new oe.t(!1),this._optionsLoadingCount=0}optionsLoading(Y){Y?this._optionsLoadingCount++:(this._optionsLoadingCount--,this._optionsLoadingCount<=0&&(this._optionsLoadingCount=0,!0!==this.optionsReady$.value&&this.optionsReady$.next(!0)))}resetState(){this.optionsReady$.next(!1)}haveOptionsToWait(Y){return!!Y.length&&Y.some(Ye=>Ye.children?.length?this.haveOptionsToWait(Ye.children):!!Ye.options&&!!Ye.options.src)}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),Es=(()=>{class ie{patchForm(Y,me){if(Y)for(const Ye in me){const Ct=me[Ye],Oe=Y.get(Ye);Oe&&((0,dt.Oi)(Oe)&&Oe.patchValue(Ct),(0,dt._X)(Oe)&&this.patchForm(Oe,Ct))}}getFormDisplayValue(Y,me){const Ye=this._getKeyPreservedDisplayValue(Y,me);return{keyMapped:this._getKeyMappedFormDisplayValue(Ye,me),keyPreserved:Ye}}_getKeyPreservedDisplayValue(Y,me){const Ye=structuredClone(Y);if(null===typeof Ye||"object"!=typeof Ye)return Ye;for(const Ct of me){const Oe=Ye?.[Ct.formControlName];if(Ct.options){const Qt=Ct.options.src&&"string"!=typeof Ct.options.src?Ct.options.src.mapData?.labelKey??"label":"label",ne=fe=>"object"==typeof fe?fe?.[Qt]:Ct.options?.data?.find(ee=>ee.value===fe)?.label;Ye[Ct.formControlName]=Array.isArray(Oe)?Oe.map(fe=>ne(fe)):ne(Oe)}Ct.children?.length&&(Ye[Ct.formControlName]=this._getKeyPreservedDisplayValue(Oe,Ct.children))}return Ye}_getKeyMappedFormDisplayValue(Y,me){const Ye={};if(null===Y||"object"!=typeof Y)return Y;for(const Ct of me){const Oe=Y[Ct.formControlName],nn=Ct.label??Ct.formControlName;Ye[nn]=Oe,Ct.children?.length&&(Ye[nn]=this._getKeyMappedFormDisplayValue(Oe,Ct.children))}return Ye}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),ur=(()=>{class ie{constructor(){this._requests=[],this._http=(0,g.WQX)(jt.Qq)}request$(Y){const{src:me,method:Ye,headers:Ct,body:Oe}=Y,nn="GET"===Ye?this._http.get(me,{headers:Ct}):this._http.post(me,Oe??{},{headers:Ct}),Qt=this._prevSameRequest(Y);if(Qt){if(!Qt.data$.closed)return Qt.data$;Qt.data$=new tt.B}else this._requests.push({src:me,data$:new tt.B,body:Oe});return nn.pipe((0,ze.M)(ne=>{const fe=this._prevSameRequest(Y);!fe?.data$.closed&&fe?.data$.next(ne)}),(0,de.j)(()=>{const ne=this._prevSameRequest(Y);ne?.data$.complete(),ne?.data$.unsubscribe()}))}reset(){this._requests.filter(Y=>!Y.data$.closed).forEach(({data$:Y})=>{Y.next([]),Y.complete(),Y.unsubscribe()}),this._requests=[]}_prevSameRequest({src:Y,method:me,body:Ye}){return this._requests.find(Oe=>{if("POST"===me&&Ye){const nn=JSON.stringify(Ye)===JSON.stringify(Oe.body);return Oe.src===Y&&nn}return Oe.src===Y})}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();function rr(ie,Rt){return"object"!=typeof ie?ie:1===Rt.length?ao(ie,Rt[0]):Rt.reduce((Y,me)=>{const Ye=me.split(".").map(Oe=>Oe.trim());return Y[Ye.length>1?Ye[Ye.length-1]:me]=ao(ie,me),Y},{})}let ml=(()=>{class ie{constructor(){this._globalVariableService=(0,g.WQX)(ar),this._httpRequestCacheService=(0,g.WQX)(ur),this._cancelAll$=new tt.B}getOptions$(Y,me){return Y?(()=>Y.filter?this._getOptionsByFilter$(Y):Y.trigger?this._getOptionsOnTrigger$(Y,me):this._getOptions$(Y))().pipe((0,ze.M)(Ct=>{(0,g.naY)()&&Ct.length>100&&console.warn(`NgDynamicJsonForm:\nThe data length from the response ${Y.url} is > 100.\nPlease make sure there is optimization made. e.g. virtual scroll, lazy loading`)})):De.w}cancelAllRequest(){this._cancelAll$.next(),this._httpRequestCacheService.reset()}onDestroy(){this.cancelAllRequest(),this._cancelAll$.complete()}_getOptions$(Y){if(!Y)return De.w;const{url:me,method:Ye,headers:Ct,mapData:Oe}=Y,nn=this._mapBodyValue(Y),Qt=this._getMappedSrc(me,nn);return this._httpRequestCacheService.request$({src:Qt,method:Ye,headers:Ct,body:nn}).pipe((0,Ee.T)(ne=>this._mapData(ne,Oe)),(0,Fe.W)(()=>(0,be.of)([])),(0,_t.Q)(this._cancelAll$))}_getOptionsByFilter$(Y){return Y.filter?this._getOptions$(Y).pipe((0,at.n)(Ct=>(0,Be.z)([(0,be.of)(Ct),this._onTriggerControlChanges$(Y.filter)])),(0,Ee.T)(([Ct,Oe])=>Ct.filter(nn=>yi(Y.filter.conditions,ne=>((Ct,Oe,nn)=>{const[Qt,ne,fe]=Ct;return[ao(Oe,Qt),ne,ao(nn?.value,fe)]})(ne,Oe,nn))))).pipe((0,_t.Q)(this._cancelAll$)):(0,be.of)([])}_getOptionsOnTrigger$(Y,me){return Y.trigger?this._onTriggerControlChanges$(Y.trigger).pipe((0,at.n)(Ye=>(me(),null==Ye||""===Ye?(0,be.of)([]):this._getOptions$(Y))),(0,_t.Q)(this._cancelAll$)):(0,be.of)([])}_onTriggerControlChanges$(Y){if(!Y)return De.w;const{by:me,debounceTime:Ye=0}=Y;if(!me.trim())return De.w;const Ct=this._globalVariableService.rootForm,Oe=Kn(me),nn=Ct?.get(Oe.controlPath);return nn?nn.valueChanges.pipe((0,pe.Z)(nn.value),(0,he.B)(Ye),(0,ge.F)((Qt,ne)=>JSON.stringify(Qt)===JSON.stringify(ne)),(0,Ee.T)(Qt=>Oe.valuePath?ao(Qt,Oe.valuePath):Qt)):((0,g.naY)()&&console.warn(`Form control ${Oe.controlPath} not found.`),De.w)}_mapData(Y,me){if(!Y)return[];const{contentPath:Ye,slice:Ct,labelKey:Oe,valueKeys:nn}=me??{},Qt=Ye?ao(Y,Ye):Y,ne=[...new Set(nn)].filter(Boolean);return Qt&&Array.isArray(Qt)?Qt.slice(Ct?.[0]??0,Ct?.[1]??Qt.length).map($e=>({label:ao($e,Oe),value:ne.length?rr($e,ne):$e})):[]}_getMappedSrc(Y,me){const Ye=Y.match(/:([^/:\s]+)/g)||[];return"object"!=typeof me?Y:Ye.length?Object.keys(me).reduce((Ct,Oe)=>Ct.replace(`:${Oe}`,`${me[Oe]}`),Y):`${Y}?${new URLSearchParams(me).toString()}`}_mapBodyValue(Y){if(!Y.trigger)return Y.body;const me=Y.trigger.body;if(!me)return null;const Ye=this._globalVariableService.rootForm;return Object.keys(me).reduce((Oe,nn)=>{const{controlPath:Qt,valuePath:ne}=Kn(me[nn]),fe=Ye?.get(Qt),ee=ao(fe?.value,ne);return Oe[nn]=fe?ee:me[nn],Oe},{})}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();const Lc=new g.nKC("ng-dynamic-json-form-config");function Qs(ie){return{provide:Lc,useValue:ie}}function la(ie,Rt){if(!ie)return null;if((0,dt.Oi)(ie))return ie.errors;if((0,dt._X)(ie)){const Y=Rt?structuredClone(Rt):null,me=Object.keys(ie.controls).reduce((Ye,Ct)=>{const Oe=la(ie.controls[Ct],Y);return Oe?{...Ye,[Ct]:Oe}:Ye},{});return Object.keys(me).length?me:null}return null}let Js=(()=>{class ie{writeValue(Y){this.control?.patchValue(Y)}registerOnChange(Y){this.control?.valueChanges.subscribe(Y)}registerOnTouched(Y){}setDisabledState(Y){Y?this.control?.disable():this.control?.enable()}validate(Y){return la(this.control)}markAsDirty(){}markAsPristine(){}markAsTouched(){}markAsUntouched(){}setErrors(Y){}onOptionsGet(Y){!this.data||!this.data.options||(this.data.options.data=Y)}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["custom-control"]],standalone:!0,features:[g.aNF],decls:0,vars:0,template:function(me,Ye){},encapsulation:2})}return ie})(),ua=(()=>{class ie extends Js{constructor(){super(...arguments),this.hostClass="ui-basic",this.control=new dt.Yp([])}writeValue(Y){this.control.clear(),Array.isArray(Y)&&Y.forEach(me=>this._addItem(me))}registerOnChange(Y){this._onChange=Y}toggle(Y){this._onChange(Y.target.checked)}onCheckboxChange(Y,me){const Ct=Y.target.checked,Oe=this.data?.options?.data?.map(nn=>nn.value).filter((nn,Qt)=>Qt===me?Ct:this.isChecked(nn));this.control.clear(),Oe?.forEach(nn=>this._addItem(nn)),this._onChange(this.control.value)}isChecked(Y){return this.control.value.some(me=>JSON.stringify(me)===JSON.stringify(Y))}get groupButtonsStyles(){return`\n flex-direction: ${this.data?.options?.layout??"row"};\n align-items: flex-start;\n ${this.data?.options?.containerStyles??""}\n `.replace(/\s{2,}/g,"")}_addItem(Y){const me=new dt.MJ(Y);this.control.push(me)}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-checkbox"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass"],[4,"ngFor","ngForOf"],["labelTemplate",""],[1,"option-button",3,"ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"marker"],["type","checkbox",3,"propsBinding","change"],["type","checkbox",3,"propsBinding","checked","disabled","change"]],template:function(me,Ye){1&me&&g.DNE(0,te,5,7,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.Sq,Wt.bT,Wt.T3,Wt.B3,dt.X1,oo],encapsulation:2})}return ie})(),da=(()=>{class ie extends Js{constructor(){super(...arguments),this._locale=(0,g.WQX)(g.xe9),this.dateSettings={min:"",max:""},this.hostClass="ui-basic",this.control=new dt.gE({date:new dt.MJ(""),time:new dt.MJ("")})}writeValue(Y){if(!Y)return;const me=(0,Wt.Yq)(Y,"yyyy-MM-dd,HH:mm:ss",this._locale);this.control.patchValue({date:me.split(",")[0],time:me.split(",")[1]})}registerOnChange(Y){this._onChange=Y}ngOnInit(){const{min:Y,max:me}=this.data?.props??{};this.dateSettings={min:Y?(0,Wt.Yq)(Y,"yyyy-MM-dd",this._locale):"",max:me?(0,Wt.Yq)(me,"yyyy-MM-dd",this._locale):""}}updateControl(){const{date:Y,time:me}=this.control.value;if(!Y)return;const Ye=new Date(Y);if(me){const[Ct,Oe,nn]=me.split(":");Ct&&Ye.setHours(parseInt(Ct)),Oe&&Ye.setMinutes(parseInt(Oe)),nn&&Ye.setSeconds(parseInt(nn))}this._onChange(Ye)}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-date"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"date-input",3,"ngClass"],["type","date",3,"propsBinding","formControl","change"],["type","time",3,"formControl"]],template:function(me,Ye){1&me&&g.DNE(0,rt,4,14,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,dt.X1,dt.me,dt.BC,dt.l_,oo],encapsulation:2})}return ie})(),gl=(()=>{class ie extends Js{constructor(){super(...arguments),this.hostClass="ui-basic",this.control=new dt.MJ("")}registerOnChange(Y){this.onChange=Y}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-input-mask"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Jv_([ea([{key:"imask",token:o.Zq}])]),g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["type","text","imaskValuePatch","",3,"ngClass","imask","propsBinding","formControl","complete"]],template:function(me,Ye){1&me&&g.DNE(0,Gt,2,15,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,dt.X1,dt.me,dt.BC,dt.l_,o.Zq,ta,oo],encapsulation:2})}return ie})(),No=(()=>{class ie extends Js{constructor(){super(...arguments),this.hostClass="ui-basic",this.control=new dt.hs("")}registerOnChange(Y){this.onChange=Y}onInput(Y){const me=Y.target.value;this.control.setValue(me),this.onChange(me)}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-input"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngClass","propsBinding","formControl","input"]],template:function(me,Ye){1&me&&g.DNE(0,xn,2,12,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,dt.X1,dt.me,dt.BC,dt.l_,oo],encapsulation:2})}return ie})();const Ll={checkbox:ua,date:da,password:No,number:No,email:No,radio:(()=>{class ie extends Js{constructor(){super(...arguments),this.selectedIndex=-1,this.isDisabled=!1,this.hostClass="ui-basic"}writeValue(Y){const me=this.data?.options?.data?.findIndex(Ye=>JSON.stringify(Ye.value)===JSON.stringify(Y))??-1;this.selectedIndex=me}registerOnChange(Y){this._onChange=Y}setDisabledState(Y){this.isDisabled=Y}onChange(Y){const me=this.data?.options?.data?.[Y].value;this._onChange(me)}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-radio"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf"],[1,"option-button-wrapper"],[1,"option-button",3,"ngStyle"],["type","radio",3,"name","propsBinding","checked","change"],[1,"marker"]],template:function(me,Ye){1&me&&g.DNE(0,Tr,3,10,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.Sq,Wt.bT,Wt.B3,dt.X1,oo],encapsulation:2})}return ie})(),range:(()=>{class ie extends Js{constructor(){super(...arguments),this.control=new dt.MJ(0),this.tickMarks=[],this.hostClass="ui-basic"}registerOnChange(Y){this.onChange=Y}ngOnInit(){this._getTickMarksCount()}get valuePosition(){const Y=this.data?.props?.min??0;return(this.control.value-Y)/((this.data?.props?.max??0)-Y)*100+"%"}_getTickMarksCount(){if(!this.data?.props||!this.data.props.showTickMarks)return;const Y=(this.data.props.max??1)-(this.data.props.min??1);0!==Y&&(this.tickMarks=Array.from(Array(Math.ceil(Y/(this.data.props.step??1))+1).keys()).map((Ye,Ct)=>Ct))}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-range"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"range-input",3,"ngClass"],["type","range",3,"ngStyle","propsBinding","formControl","input"],[1,"current-value"],[1,"tick-marks-container"],[4,"ngFor","ngForOf"],[1,"min-number"],[1,"max-number"],[1,"tick-mark"]],template:function(me,Ye){1&me&&g.DNE(0,Mt,5,17,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.Sq,Wt.bT,Wt.B3,dt.X1,dt.me,dt.MR,dt.BC,dt.l_,oo],encapsulation:2})}return ie})(),select:(()=>{class ie extends Js{constructor(){super(...arguments),this.control=new dt.MJ(-1),this.hostClass="ui-basic",this.onTouched=()=>{},this.onChange=Y=>{}}writeValue(Y){const me=this.data?.options?.data?.findIndex(Ye=>JSON.stringify(Ye.value)===JSON.stringify(Y));void 0!==me&&this.control.setValue(me)}registerOnChange(Y){this.onChange=Y}registerOnTouched(Y){this.onTouched=Y}updateControl(Y){const me=Y.target.value;if(me){const Ye=this.data?.options?.data?.map(Ct=>Ct.value)?.[parseInt(me)];this.onChange(Ye)}}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-select"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass","ngStyle"],[3,"propsBinding","formControl","blur","change"],[4,"ngFor","ngForOf"],[3,"value"]],template:function(me,Ye){1&me&&g.DNE(0,Mn,4,13,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.Sq,Wt.bT,Wt.B3,dt.X1,dt.xH,dt.y7,dt.wz,dt.BC,dt.l_,oo],encapsulation:2})}return ie})(),switch:(()=>{class ie extends Js{constructor(){super(...arguments),this.control=new dt.MJ(!1),this.hostClass="ui-basic"}registerOnChange(Y){this._onChange=Y}updateControl(Y){const me=Y.target.checked;this.control.setValue(me),this._onChange(me)}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-switch"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"option-button-wrapper",3,"ngClass"],[1,"option-button","switch-button"],[3,"ngTemplateOutlet",4,"ngIf"],["type","checkbox",3,"propsBinding","checked","change"],[1,"marker"],["labelTemplate",""],[3,"ngTemplateOutlet"]],template:function(me,Ye){1&me&&g.DNE(0,no,9,13,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,Wt.T3,dt.X1,oo],encapsulation:2})}return ie})(),text:No,textMask:gl,textarea:(()=>{class ie extends Js{constructor(){super(...arguments),this.hostClass="ui-basic",this.control=new dt.MJ("")}registerOnChange(Y){this.onChange=Y}onInput(Y){const me=Y.target.value;this.control.setValue(me),this.onChange(me)}static#e=this.\u0275fac=function(){let Y;return function(Ye){return(Y||(Y=g.xGo(ie)))(Ye||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-textarea"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},standalone:!0,features:[g.Jv_([ea([{key:"textarea-autoheight",token:xo}])]),g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["textareaAutoHeight","",3,"ngClass","propsBinding","formControl","input"]],template:function(me,Ye){1&me&&g.DNE(0,Ki,2,9,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,dt.X1,dt.me,dt.BC,dt.l_,xo,oo],encapsulation:2})}return ie})()};let Wc=(()=>{class ie{constructor(){this._renderer2=(0,g.WQX)(g.sFG),this._el=(0,g.WQX)(g.aKT)}ngOnChanges(){const Y=this._el.nativeElement;if(!Y||!this.controlLayout)return;const{type:me,layout:Ye}=this.controlLayout,Ct=Ye?.[`${me??"host"}Class`]??"",Oe=Ye?.[`${me??"host"}Styles`]??"";Ct.length>0&&Ct.split(/\s{1,}/).map(nn=>nn.trim()).filter(Boolean).forEach(nn=>{this._renderer2.addClass(Y,nn)}),Oe.length>0&&Oe.split(";").map(Qt=>Qt.trim()).filter(Boolean).forEach(Qt=>{const[ne,fe]=Qt.split(":").map(ee=>ee.trim());Y.style.setProperty(ne,fe)})}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","controlLayout",""]],inputs:{controlLayout:"controlLayout"},standalone:!0,features:[g.OA$]})}return ie})(),Lr=(()=>{class ie{transform(Y){return Y.hasValidator(dt.k0.required)}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275pipe=g.EJ8({name:"isControlRequired",type:ie,pure:!0,standalone:!0})}return ie})(),vo=(()=>{class ie{constructor(){this._internal_destroyRef=(0,g.WQX)(g.abz),this._internal_formValidationService=(0,g.WQX)(ns),this._customComponent=null,this.hostClass="error-message",this.errorMessages=[]}ngAfterViewInit(){this._injectComponent(),this._getErrorMessages()}_injectComponent(){if(!this.customComponent||!this.componentAnchor)return;this.componentAnchor.clear();const Y=this.componentAnchor.createComponent(this.customComponent);this._customComponent=Y.instance,this.control&&(Y.instance.control=this.control)}_getErrorMessages(){this._internal_formValidationService.getErrorMessages$(this.control,this.validators).pipe((0,ze.M)(Y=>{this.errorMessages=Y,this._customComponent&&(this._customComponent.errorMessages=[...this.errorMessages])}),(0,wn.pQ)(this._internal_destroyRef)).subscribe()}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["error-message"]],viewQuery:function(me,Ye){if(1&me&&g.GBs(Ys,5,g.c1b),2&me){let Ct;g.mGM(Ct=g.lsd())&&(Ye.componentAnchor=Ct.first)}},hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},inputs:{control:"control",validators:"validators",customComponent:"customComponent",customTemplate:"customTemplate"},standalone:!0,features:[g.aNF],decls:4,vars:6,consts:[["componentAnchor",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(me,Ye){if(1&me&&(g.eu8(0,null,0)(2,1),g.DNE(3,zo,2,1,"ng-container",2)),2&me){let Ct;g.R7$(2),g.Y8G("ngTemplateOutlet",null!==(Ct=Ye.customTemplate)&&void 0!==Ct?Ct:null)("ngTemplateOutletContext",g.l_i(3,qa,Ye.control,Ye.errorMessages)),g.R7$(1),g.Y8G("ngIf",!Ye.customComponent&&!Ye.customTemplate)}},dependencies:[Wt.MD,Wt.Sq,Wt.bT,Wt.T3],encapsulation:2})}return ie})(),Ra=(()=>{class ie{constructor(){this._renderer2=(0,g.WQX)(g.sFG),this._destroyRef=(0,g.WQX)(g.abz),this._viewInitialized=!1,this._collapsibleElCssText="",this.hostClass="form-label",this.collapsible=!1,this.expand=!1,this.toggle=Y=>{this._collapsible&&(this.expand=Y??!this.expand,this._setElementHeight(),this._componentRef&&(this._componentRef.expand=this.expand))}}get styleDisplay(){return!this.label||this.customComponent?null:this._collapsible?"flex":"inline-block"}get styleCursor(){return this._collapsible?"pointer":"normal"}onClick(){this.toggle()}ngOnChanges(Y){if(!this._viewInitialized)return;const{state:me}=Y;if(me&&this._collapsible)switch(this.state){case"collapse":this.toggle(!1);break;case"expand":this.toggle(!0)}}ngOnInit(){this.collapsible=this._collapsible,this.expand=void 0===this.state?"expand"===this.layout?.contentCollapsible:"expand"===this.state}ngAfterViewInit(){this.customComponent?this._injectComponent():(this._initCollapsibleEl(),this._viewInitialized=!0)}_injectComponent(){if(!this.componentAnchor||!this.customComponent)return;const Y=this.componentAnchor.createComponent(this.customComponent);Y.instance.label=this.label,Y.instance.layout=this.layout,Y.instance.props=this.props,Y.instance.collapsible=this._collapsible,Y.instance.expand=this.expand,this._initCollapsibleEl(),this._componentRef=Y.instance}_listenTransition(){this.collapsibleEl&&(0,He.R)(this.collapsibleEl,"transitionend",{passive:!0}).pipe((0,vt.p)(()=>this.expand),(0,ze.M)(()=>{this._renderer2.removeStyle(this.collapsibleEl,"height"),this._renderer2.removeStyle(this.collapsibleEl,"overflow")})).pipe((0,wn.pQ)(this._destroyRef)).subscribe()}_setElementHeight(){this._setExpandStyle(),this.expand||requestAnimationFrame(()=>this._setCollapseStyle())}_initCollapsibleEl(){!this.collapsibleEl||!this.collapsible||(this._collapsibleElCssText=this.collapsibleEl.style.cssText||"",this._renderer2.addClass(this.collapsibleEl,"collapsible-container"),this._listenTransition(),this.expand||this._setCollapseStyle())}_setCollapseStyle(){["border","padding","margin"].forEach(me=>{this._collapsibleElCssText.includes(me)&&this._renderer2.removeStyle(this.collapsibleEl,me)}),this._renderer2.setStyle(this.collapsibleEl,"overflow","hidden"),this._renderer2.setStyle(this.collapsibleEl,"height","0px")}_setExpandStyle(){const Y=this.collapsibleEl?this.collapsibleEl.scrollHeight+1:0;this._renderer2.setProperty(this.collapsibleEl,"style",this._collapsibleElCssText||null),this._renderer2.setStyle(this.collapsibleEl,"height",`${Y}px`)}get _collapsible(){return"collapse"===this.layout?.contentCollapsible||"expand"===this.layout?.contentCollapsible}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["form-label"]],viewQuery:function(me,Ye){if(1&me&&g.GBs(Ys,5,g.c1b),2&me){let Ct;g.mGM(Ct=g.lsd())&&(Ye.componentAnchor=Ct.first)}},hostVars:6,hostBindings:function(me,Ye){1&me&&g.bIt("click",function(Oe){return Ye.onClick(Oe)}),2&me&&(g.HbH(Ye.hostClass),g.xc7("display",Ye.styleDisplay)("cursor",Ye.styleCursor))},inputs:{label:"label",layout:"layout",props:"props",collapsibleEl:"collapsibleEl",state:"state",customComponent:"customComponent",customTemplate:"customTemplate"},standalone:!0,features:[g.OA$,g.aNF],decls:4,vars:2,consts:[[4,"ngIf"],["componentAnchor",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[1,"text"],[2,"margin-left","auto",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","width","1em","height","1em","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-chevron-up"],["fill-rule","evenodd","d","M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(me,Ye){1&me&&(g.DNE(0,Ss,4,2,"ng-container",0),g.eu8(1,null,1),g.DNE(3,Wo,1,9,"ng-container",2)),2&me&&(g.Y8G("ngIf",!Ye.customComponent&&!Ye.customTemplate),g.R7$(3),g.Y8G("ngIf",Ye.customTemplate))},dependencies:[Wt.MD,Wt.bT,Wt.T3,Wt.B3],styles:["[_nghost-%COMP%]{align-items:center;gap:1rem}"]})}return ie})(),Qa=(()=>{class ie{constructor(){this._globalVariableService=(0,g.WQX)(ar),this.controlLayoutDisabled=!1,this.errorComponents=this._globalVariableService.errorComponents,this.errorTemplates=this._globalVariableService.errorTemplates,this.errorComponentDefault=this._globalVariableService.errorComponentDefault,this.errorTemplateDefault=this._globalVariableService.errorTemplateDefault,this.labelComponents=this._globalVariableService.labelComponents,this.labelTemplates=this._globalVariableService.labelTemplates,this.labelComponentDefault=this._globalVariableService.labelComponentDefault,this.labelTemplateDefault=this._globalVariableService.labelTemplateDefault}get showErrors(){const Y=this.control?.touched??!1;return!this._globalVariableService.hideErrorMessage$.value&&((this.control?.dirty??!1)||Y)&&!!this.control?.errors}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["content-wrapper"]],inputs:{config:"config",control:"control",collapsibleState:"collapsibleState",controlLayoutDisabled:"controlLayoutDisabled"},standalone:!0,features:[g.aNF],ngContentSelectors:nr,decls:3,vars:1,consts:[[4,"ngIf"],["descriptionTemplate",""],[3,"controlLayout"],["collapsibleEl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"control","validators","customComponent","customTemplate","controlLayout","ngClass"],[3,"label","layout","props","collapsibleEl","customComponent","customTemplate","state","controlLayout","ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form-description",3,"controlLayout"]],template:function(me,Ye){1&me&&(g.NAR(),g.DNE(0,Cn,8,16,"ng-container",0),g.DNE(1,Di,2,4,"ng-template",null,1,g.C5r)),2&me&&g.Y8G("ngIf",Ye.config&&Ye.control)},dependencies:[Wt.MD,Wt.YU,Wt.bT,Wt.T3,Ra,vo,Wc,Lr],encapsulation:2})}return ie})(),Ea=(()=>{class ie{constructor(){this._cd=(0,g.WQX)(g.gRc),this._destroyRef=(0,g.WQX)(g.abz),this._globalVariableService=(0,g.WQX)(ar),this._formReadyStateService=(0,g.WQX)(wc),this._optionsDataService=(0,g.WQX)(ml),this._uiComponents=this._globalVariableService.uiComponents,this._pendingValue=null,this._onChange=Y=>{},this._onTouched=()=>{},this.hostClass="form-control",this.customTemplates=this._globalVariableService.customTemplates,this.loadingComponent=this._globalVariableService.loadingComponent,this.loadingTemplate=this._globalVariableService.loadingTemplate,this.loading=!1,this.useCustomLoading=!1,this.hostForm=this._globalVariableService.rootForm,this.hideErrorMessage$=this._globalVariableService.hideErrorMessage$}onFocusOut(){"select"!==this.data?.type&&this._onTouched()}writeValue(Y){this._pendingValue=Y,this._controlComponent?.writeValue(Y)}registerOnChange(Y){this._onChange=Y}registerOnTouched(Y){this._onTouched=Y}setDisabledState(Y){this._controlComponent?.setDisabledState(Y)}validate(Y){return this._controlComponent?.validate(Y)??null}ngDoCheck(){if(this.control){const{dirty:Y,pristine:me,touched:Ye,untouched:Ct}=this.control;Y&&this._updateControlStatus("dirty"),me&&this._updateControlStatus("pristine"),Ye&&this._updateControlStatus("touched"),Ct&&this._updateControlStatus("untouched")}}ngOnInit(){this.useCustomLoading=!!this.loadingComponent||!!this.loadingTemplate}ngAfterViewInit(){this._injectInputComponent(),this._fetchOptions(),this._errorMessageEvent(),this._cd.detectChanges()}ngOnDestroy(){this.control=void 0,this.data=void 0}get showErrors(){const Y=this.control?.touched??!1;return!this.hideErrorMessage$&&((this.control?.dirty??!1)||Y)&&!!this.control?.errors}_injectComponent(Y,me){return Y&&me?(Y.clear(),Y.createComponent(me)):null}_injectInputComponent(){if(this.customTemplates?.[this.data?.formControlName??""])return;const me=this._injectComponent(this.inputComponentAnchor,this.customComponent||this._uiComponents?.[this._inputType]||Ll[this._inputType]||No);me&&(me.instance.data=this.data,me.instance.hostForm=this._globalVariableService.rootForm,me.instance.writeValue(this._pendingValue),me.instance.registerOnChange(this._onChange),me.instance.registerOnTouched(this._onTouched),this._controlComponent=me.instance,this._setControlErrors())}_fetchOptions(){if(!this.data||!this.data.options)return void(this._pendingValue=null);const{src:Y,srcAppendPosition:me,autoSelectFirst:Ye,data:Ct=[]}=this.data.options,Oe=ee=>{this.control?.setValue(ee),this._controlComponent?.writeValue(ee)},nn=ee=>{Ye&&ee.length>0&&Oe(ee[0].value)};if(!Y)return void nn(Ct);const Qt="string"!=typeof Y&&(Y.filter||Y.trigger),ne="string"==typeof Y?this._globalVariableService.optionsSources?.[Y]:this._optionsDataService.getOptions$(Y,()=>this.loading=!1),fe=ee=>{this.loading=ee,this._formReadyStateService.optionsLoading(ee)};fe(!0),ne?.pipe((0,ze.M)(ee=>{const $e="before"===me?ee.concat(Ct):Ct.concat(ee);this._pendingValue?(Oe(this._pendingValue),this._pendingValue=null):Qt?Oe(null):nn($e),this._controlComponent?.onOptionsGet($e),Qt&&fe(!1)}),(0,de.j)(()=>{fe(!1)})).subscribe()}_errorMessageEvent(){if(!this.control)return;const Y=this.control,me=this._controlComponent;(0,Be.z)([this.hideErrorMessage$,Y.statusChanges.pipe((0,pe.Z)(Y.status))]).pipe((0,he.B)(0),(0,ze.M)(()=>{const Ye=this.hideErrorMessage$.value,Ct=Y.errors,Oe=me?.control?.errors,nn=Ye||!Ct&&!Oe?null:Y.errors;me&&(me.control?.setErrors(nn),me.setErrors(nn),me.hideErrorMessage=Ye),!1===Ye&&(this._updateControlStatus("dirty",!0),this._updateControlStatus("touched",!0))}),(0,wn.pQ)(this._destroyRef)).subscribe()}_setControlErrors(){const Y=la(this._controlComponent?.control);!this.control?.errors&&Y&&this.control?.setErrors(Y)}_updateControlStatus(Y,me=!1){const Ye=this.control,Ct=this._controlComponent;switch(Y){case"dirty":Ct?.control?.markAsDirty(),Ct?.markAsDirty(),me&&Ye?.markAsDirty();break;case"pristine":Ct?.control?.markAsPristine(),Ct?.markAsPristine(),me&&Ye?.markAsPristine();break;case"touched":Ct?.control?.markAsTouched(),Ct?.markAsTouched(),me&&Ye?.markAsTouched();break;case"untouched":Ct?.control?.markAsUntouched(),Ct?.markAsUntouched(),me&&Ye?.markAsUntouched()}}get _inputType(){if(this.data?.inputMask)return"textMask";if(!this.data?.type)return"text";switch(this.data.type){case"number":case"text":return"text";default:return this.data.type}}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["form-control"]],viewQuery:function(me,Ye){if(1&me&&g.GBs(tn,5,g.c1b),2&me){let Ct;g.mGM(Ct=g.lsd())&&(Ye.inputComponentAnchor=Ct.first)}},hostVars:2,hostBindings:function(me,Ye){1&me&&g.bIt("focusout",function(Oe){return Ye.onFocusOut(Oe)}),2&me&&g.HbH(Ye.hostClass)},inputs:{data:"data",control:"control",customComponent:"customComponent"},standalone:!0,features:[g.Jv_([{provide:dt.kq,useExisting:(0,g.Rfq)(()=>ie),multi:!0},{provide:dt.cz,useExisting:(0,g.Rfq)(()=>ie),multi:!0}]),g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"input-container",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["inputComponentAnchor",""],[1,"loading-container",3,"ngClass"],[4,"ngComponentOutlet"],[3,"ngTemplateOutlet"]],template:function(me,Ye){1&me&&g.DNE(0,qn,8,16,"ng-container",0),2&me&&g.Y8G("ngIf",Ye.data)},dependencies:[Wt.MD,Wt.YU,Wt.OI,Wt.bT,Wt.T3],styles:["[_nghost-%COMP%]{display:block}"]})}return ie})(),L1=(()=>{class ie{constructor(){this._renderer2=(0,g.WQX)(g.sFG),this._el=(0,g.WQX)(g.aKT)}ngOnChanges(){const Y=this._el.nativeElement;!Y||!this._hostId||this._renderer2.setAttribute(Y,"id",this._hostId)}get _hostId(){if(!this.hostId)return;const{parentId:Y,controlName:me}=this.hostId;return Y?`${Y}.${me}`:me}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","hostId",""]],inputs:{hostId:"hostId"},standalone:!0,features:[g.OA$]})}return ie})(),Na=(()=>{class ie{transform(Y){return Y.children?"FormGroup":"FormControl"}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275pipe=g.EJ8({name:"controlTypeByConfig",type:ie,pure:!0,standalone:!0})}return ie})(),vs=(()=>{class ie{constructor(){this._globalVariableService=(0,g.WQX)(ar),this.parentForm=new dt.J3({}),this.hostClass="grid-container form-group-container",this.customComponents=this._globalVariableService.customComponents}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["form-group"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},inputs:{configs:"configs",parentId:"parentId",parentForm:"parentForm",hostLayout:"hostLayout",collapsibleState:"collapsibleState"},standalone:!0,features:[g.aNF],decls:2,vars:2,consts:[[3,"formGroup"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"display","block",3,"config","control","collapsibleState","hostId","ngClass","controlLayout"],[3,"data","control","formControlName","customComponent","controlLayout"],[3,"parentId","parentForm","configs","collapsibleState","controlLayout"]],template:function(me,Ye){1&me&&(g.qex(0,0),g.DNE(1,Gs,2,1,"ng-container",1),g.bVm()),2&me&&(g.Y8G("formGroup",Ye.parentForm),g.R7$(1),g.Y8G("ngForOf",Ye.configs))},dependencies:[ie,Wt.MD,Wt.YU,Wt.Sq,Wt.bT,dt.X1,dt.BC,dt.cb,dt.j4,dt.JD,Qa,L1,Wc,Ea,Na],encapsulation:2})}return ie})();function Ja(ie){ie&&(ie.dirty||ie.markAsDirty(),(0,dt._X)(ie)&&Object.values(ie.controls).forEach(Rt=>Ja(Rt)),(0,dt.cF)(ie)&&ie.controls.forEach(Rt=>Ja(Rt)))}function pc(ie){ie&&(ie.pristine||ie.markAsPristine(),(0,dt._X)(ie)&&Object.values(ie.controls).forEach(Rt=>pc(Rt)),(0,dt.cF)(ie)&&ie.controls.forEach(Rt=>pc(Rt)))}function zl(ie){ie&&(ie.touched||ie.markAsTouched(),(0,dt._X)(ie)&&Object.values(ie.controls).forEach(Rt=>zl(Rt)),(0,dt.cF)(ie)&&ie.controls.forEach(Rt=>zl(Rt)))}function co(ie){ie&&(ie.untouched||ie.markAsUntouched(),(0,dt._X)(ie)&&Object.values(ie.controls).forEach(Rt=>co(Rt)),(0,dt.cF)(ie)&&ie.controls.forEach(Rt=>co(Rt)))}let vl=(()=>{class ie{constructor(){this._providerConfig=(0,g.WQX)(Lc,{optional:!0}),this._cd=(0,g.WQX)(g.gRc),this._el=(0,g.WQX)(g.aKT),this._injector=(0,g.WQX)(g.zZn),this._destroyRef=(0,g.WQX)(g.abz),this._configValidationService=(0,g.WQX)(Wr),this._formGeneratorService=(0,g.WQX)(Is),this._formConditionsService=(0,g.WQX)(ka),this._formValueService=(0,g.WQX)(Es),this._formReadyStateService=(0,g.WQX)(wc),this._globalVariableService=(0,g.WQX)(ar),this._optionsDataService=(0,g.WQX)(ml),this._reset$=new tt.B,this._controlDirective=null,this._allowFormDirty=!1,this._globalVariablesInitialized=!1,this._onTouched=()=>{},this._onChange=Y=>{},this.configGet=[],this.configValidationErrors=[],this.formGet=new g.bkB,this.onChange=new g.bkB,this.optionsLoaded=new g.bkB,this.displayValue=new g.bkB,this.updateStatusFunctions=new g.bkB,this.hostClass="ng-dynamic-json-form",this._formReadyStateService.optionsReady$.pipe((0,vt.p)(Boolean),(0,ze.M)(()=>this.optionsLoaded.emit()),(0,wn.pQ)()).subscribe()}ngOnChanges(Y){const{configs:me,hideErrorMessage:Ye}=Y;Ye&&this._globalVariableService.hideErrorMessage$.next(Ye.currentValue),me&&this._globalVariablesInitialized&&this._buildForm()}ngOnInit(){this._setupVariables(),this._getControlDirective(),this._buildForm()}ngOnDestroy(){this._reset$.next(),this._reset$.complete(),this._optionsDataService.onDestroy()}validate(Y){return this._formErrors}registerOnValidatorChange(Y){}writeValue(Y){this._formValueService.patchForm(this.form,Y)}registerOnChange(Y){this._onChange=Y}registerOnTouched(Y){this._onTouched=Y}setDisabledState(Y){Y?this.form?.disable():this.form?.enable()}_setupVariables(){const{customValidators:Y,labelComponent:me,errorComponent:Ye,loadingComponent:Ct,uiComponents:Oe}=this._providerConfig??{};this._globalVariableService.setup({errorComponents:this.errorComponents,errorTemplates:this.errorTemplates,errorComponentDefault:this.errorComponentDefault??Ye,errorTemplateDefault:this.errorTemplateDefault,labelComponents:this.labelComponents,labelTemplates:this.labelTemplates,labelComponentDefault:this.labelComponentDefault??me,labelTemplateDefault:this.labelTemplateDefault,loadingComponent:this.loadingComponent??Ct,loadingTemplate:this.loadingTemplate,hostElement:this._el.nativeElement,customValidators:Y,customComponents:this.customComponents,customTemplates:this.customTemplates,conditionsActionFunctions:this.conditionsActionFunctions,optionsSources:this.optionsSources,uiComponents:{...Ll,...Oe}}),this._globalVariablesInitialized=!0}_buildForm(){if(this._reset(),!this.configs)return;const Y=this._configValidationService.validateAndGetConfig(this.configs);this.configGet=Y.configs??[],this.configValidationErrors=Y.errors??[],this._allowFormDirty=!1,this.configGet.length&&!Y.errors?.length&&(this.form=this._formGeneratorService.generateFormGroup(this.configGet),this._globalVariableService.rootForm=this.form,this._globalVariableService.rootConfigs=this.configGet,this._setupListeners(),this.formGet.emit(this.form),this.updateStatusFunctions.emit({setDirty:()=>this._updateFormStatus("setDirty"),setPristine:()=>this._updateFormStatus("setPristine"),setTouched:()=>this._updateFormStatus("setTouched"),setUntouched:()=>this._updateFormStatus("setUntouched")}),this._cd.detectChanges()),this._formReadyStateService.haveOptionsToWait(this.configGet)||this._formReadyStateService.optionsLoading(!1)}_getControlDirective(){this._controlDirective=this._injector.get(dt.vO,null,{optional:!0,self:!0})}_setupListeners(){if(!this.form)return;const Y=this._el.nativeElement,me=this._formConditionsService.listenConditions$(),Ye=Qt=>(0,He.R)(Y,Qt,{passive:!0}),Ct=this.form.valueChanges.pipe((0,pe.Z)(this.form.value),(0,ze.M)(()=>this._onFormValueChanges())),Oe=Ye("focusout").pipe((0,Se.s)(1),(0,ze.M)(()=>this._onTouched())),nn=(0,it.h)(Ye("click"),Ye("keydown")).pipe((0,Se.s)(1),(0,ze.M)(()=>this._allowFormDirty=!0));(0,it.h)(nn,Oe,me,Ct).pipe((0,_t.Q)(this._reset$),(0,wn.pQ)(this._destroyRef)).subscribe()}_reset(){this._reset$.next(),this._optionsDataService.cancelAllRequest(),this._formReadyStateService.resetState(),this._controlDirective?.control.markAsUntouched(),this._controlDirective?.form.markAsUntouched(),this.configValidationErrors=[]}_updateFormStatus(Y){switch(Y){case"setDirty":this._allowFormDirty=!0,this._controlDirective?.control.markAsDirty(),Ja(this.form);break;case"setPristine":this._allowFormDirty=!1,this._controlDirective?.control.markAsPristine(),pc(this.form);break;case"setTouched":this._controlDirective?.control.markAsTouched(),zl(this.form);break;case"setUntouched":this._controlDirective?.control.markAsUntouched(),co(this.form)}}_onFormValueChanges(){const Y=this.form?.value;this._allowFormDirty&&this.onChange.emit(this.form?.value),(()=>{this._controlDirective||this.form?.setErrors(this._formErrors)})(),(()=>{this._controlDirective&&this._onChange(Y)})(),(()=>{const nn=this._formValueService.getFormDisplayValue(Y,this.configGet);this.displayValue.emit(nn)})(),(()=>{this._allowFormDirty||(this._controlDirective?.form.markAsPristine(),this._controlDirective?.control.markAsPristine(),pc(this.form))})()}get _formErrors(){return this.form?la(this.form):null}static#e=this.\u0275fac=function(me){return new(me||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ng-dynamic-json-form"]],hostVars:2,hostBindings:function(me,Ye){2&me&&g.HbH(Ye.hostClass)},inputs:{configs:"configs",customComponents:"customComponents",customTemplates:"customTemplates",conditionsActionFunctions:"conditionsActionFunctions",hideErrorMessage:"hideErrorMessage",collapsibleState:"collapsibleState",errorComponents:"errorComponents",errorComponentDefault:"errorComponentDefault",errorTemplates:"errorTemplates",errorTemplateDefault:"errorTemplateDefault",labelComponents:"labelComponents",labelComponentDefault:"labelComponentDefault",labelTemplates:"labelTemplates",labelTemplateDefault:"labelTemplateDefault",loadingComponent:"loadingComponent",loadingTemplate:"loadingTemplate",optionsSources:"optionsSources"},outputs:{formGet:"formGet",onChange:"onChange",optionsLoaded:"optionsLoaded",displayValue:"displayValue",updateStatusFunctions:"updateStatusFunctions"},standalone:!0,features:[g.Jv_([Wr,ws,Is,ka,ns,Es,wc,ar,ur,ml,{provide:dt.kq,useExisting:(0,g.Rfq)(()=>ie),multi:!0},{provide:dt.cz,useExisting:(0,g.Rfq)(()=>ie),multi:!0}]),g.OA$,g.aNF],decls:3,vars:3,consts:[[4,"ngIf"],[1,"no-configs-error"],[1,"config-validation-error"],[4,"ngFor","ngForOf"],[2,"color","var(--color-error)"],[3,"parentForm","configs","collapsibleState"]],template:function(me,Ye){1&me&&(g.DNE(0,Fr,4,0,"ng-container",0),g.DNE(1,Zo,5,1,"ng-container",0),g.DNE(2,Vo,2,3,"ng-container",0)),2&me&&(g.Y8G("ngIf",!Ye.configs),g.R7$(1),g.Y8G("ngIf",!(null==Ye.configValidationErrors||!Ye.configValidationErrors.length)),g.R7$(1),g.Y8G("ngIf",Ye.form))},dependencies:[Wt.MD,Wt.Sq,Wt.bT,Wt.TG,dt.X1,vs],encapsulation:2})}return ie})()},194:(vn,J,F)=>{"use strict";F.d(J,{FX:()=>at,K2:()=>Ee,MA:()=>vt,P:()=>tt,Ro:()=>o,S6:()=>g,hZ:()=>oe,i0:()=>De,i7:()=>Te,iF:()=>be,kY:()=>Ve,kp:()=>V,lY:()=>ze,sM:()=>Re,sf:()=>Fe,ui:()=>_t,wk:()=>ge});class g{}class o{}const V="*";function oe(Be,he){return{type:7,name:Be,definitions:he,options:{}}}function De(Be,he=null){return{type:4,styles:he,timings:Be}}function Ee(Be,he=null){return{type:2,steps:Be,options:he}}function be(Be){return{type:6,styles:Be,offset:null}}function ge(Be,he,He){return{type:0,name:Be,styles:he,options:He}}function Te(Be){return{type:5,steps:Be}}function Ve(Be,he,He=null){return{type:1,expr:Be,animation:he,options:He}}function ze(Be,he=null){return{type:8,animation:Be,options:he}}function vt(Be=null){return{type:9,options:Be}}function Re(Be,he=null){return{type:10,animation:Be,options:he}}function tt(Be,he,He=null){return{type:11,selector:Be,animation:he,options:He}}class Fe{constructor(he=0,He=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=he+He}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}onStart(he){this._originalOnStartFns.push(he),this._onStartFns.push(he)}onDone(he){this._originalOnDoneFns.push(he),this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(he=>he()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(he){this._position=this.totalTime?he*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(he){const He="start"==he?this._onStartFns:this._onDoneFns;He.forEach(Se=>Se()),He.length=0}}class _t{constructor(he){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=he;let He=0,Se=0,it=0;const dt=this.players.length;0==dt?queueMicrotask(()=>this._onFinish()):this.players.forEach(jt=>{jt.onDone(()=>{++He==dt&&this._onFinish()}),jt.onDestroy(()=>{++Se==dt&&this._onDestroy()}),jt.onStart(()=>{++it==dt&&this._onStart()})}),this.totalTime=this.players.reduce((jt,Wt)=>Math.max(jt,Wt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}init(){this.players.forEach(he=>he.init())}onStart(he){this._onStartFns.push(he)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(he=>he()),this._onStartFns=[])}onDone(he){this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(he=>he.play())}pause(){this.players.forEach(he=>he.pause())}restart(){this.players.forEach(he=>he.restart())}finish(){this._onFinish(),this.players.forEach(he=>he.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(he=>he.destroy()),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this.players.forEach(he=>he.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(he){const He=he*this.totalTime;this.players.forEach(Se=>{const it=Se.totalTime?Math.min(1,He/Se.totalTime):1;Se.setPosition(it)})}getPosition(){const he=this.players.reduce((He,Se)=>null===He||Se.totalTime>He.totalTime?Se:He,null);return null!=he?he.getPosition():0}beforeDestroy(){this.players.forEach(he=>{he.beforeDestroy&&he.beforeDestroy()})}triggerCallback(he){const He="start"==he?this._onStartFns:this._onDoneFns;He.forEach(Se=>Se()),He.length=0}}const at="!"},6610:(vn,J,F)=>{"use strict";F.d(J,{AJ:()=>Is,B3:()=>pl,Jj:()=>tl,MD:()=>ka,N0:()=>No,OI:()=>Ro,QT:()=>V,Sm:()=>tt,Sq:()=>qo,T3:()=>na,TG:()=>za,UE:()=>rr,VF:()=>De,Vy:()=>ml,Xr:()=>Js,YU:()=>is,Yq:()=>qe,ZD:()=>oe,_b:()=>Vr,aZ:()=>Fe,bT:()=>xo,e1:()=>La,fG:()=>ao,fw:()=>de,hb:()=>vt,hj:()=>be,qQ:()=>pe,ux:()=>ws});var g=F(2978);let o=null;function V(){return o}function oe(X){o||(o=X)}class De{}const pe=new g.nKC("DocumentToken");let Ee=(()=>{class X{historyGo(le){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275prov=g.jDH({token:X,factory:function(){return(0,g.WQX)(ge)},providedIn:"platform"})}return X})();const be=new g.nKC("Location Initialized");let ge=(()=>{class X extends Ee{constructor(){super(),this._doc=(0,g.WQX)(pe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(le){const Ie=V().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("popstate",le,!1),()=>Ie.removeEventListener("popstate",le)}onHashChange(le){const Ie=V().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("hashchange",le,!1),()=>Ie.removeEventListener("hashchange",le)}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(le){this._location.pathname=le}pushState(le,Ie,Ot){this._history.pushState(le,Ie,Ot)}replaceState(le,Ie,Ot){this._history.replaceState(le,Ie,Ot)}forward(){this._history.forward()}back(){this._history.back()}historyGo(le=0){this._history.go(le)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275prov=g.jDH({token:X,factory:function(){return new X},providedIn:"platform"})}return X})();function Te(X,Pe){if(0==X.length)return Pe;if(0==Pe.length)return X;let le=0;return X.endsWith("/")&&le++,Pe.startsWith("/")&&le++,2==le?X+Pe.substring(1):1==le?X+Pe:X+"/"+Pe}function Ve(X){const Pe=X.match(/#|\?|$/),le=Pe&&Pe.index||X.length;return X.slice(0,le-("/"===X[le-1]?1:0))+X.slice(le)}function ze(X){return X&&"?"!==X[0]?"?"+X:X}let vt=(()=>{class X{historyGo(le){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275prov=g.jDH({token:X,factory:function(){return(0,g.WQX)(tt)},providedIn:"root"})}return X})();const Re=new g.nKC("appBaseHref");let tt=(()=>{class X extends vt{constructor(le,Ie){super(),this._platformLocation=le,this._removeListenerFns=[],this._baseHref=Ie??this._platformLocation.getBaseHrefFromDOM()??(0,g.WQX)(pe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(le){this._removeListenerFns.push(this._platformLocation.onPopState(le),this._platformLocation.onHashChange(le))}getBaseHref(){return this._baseHref}prepareExternalUrl(le){return Te(this._baseHref,le)}path(le=!1){const Ie=this._platformLocation.pathname+ze(this._platformLocation.search),Ot=this._platformLocation.hash;return Ot&&le?`${Ie}${Ot}`:Ie}pushState(le,Ie,Ot,bn){const Pn=this.prepareExternalUrl(Ot+ze(bn));this._platformLocation.pushState(le,Ie,Pn)}replaceState(le,Ie,Ot,bn){const Pn=this.prepareExternalUrl(Ot+ze(bn));this._platformLocation.replaceState(le,Ie,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(le=0){this._platformLocation.historyGo?.(le)}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.KVO(Ee),g.KVO(Re,8))};static#t=this.\u0275prov=g.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})(),de=(()=>{class X extends vt{constructor(le,Ie){super(),this._platformLocation=le,this._baseHref="",this._removeListenerFns=[],null!=Ie&&(this._baseHref=Ie)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(le){this._removeListenerFns.push(this._platformLocation.onPopState(le),this._platformLocation.onHashChange(le))}getBaseHref(){return this._baseHref}path(le=!1){let Ie=this._platformLocation.hash;return null==Ie&&(Ie="#"),Ie.length>0?Ie.substring(1):Ie}prepareExternalUrl(le){const Ie=Te(this._baseHref,le);return Ie.length>0?"#"+Ie:Ie}pushState(le,Ie,Ot,bn){let Pn=this.prepareExternalUrl(Ot+ze(bn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.pushState(le,Ie,Pn)}replaceState(le,Ie,Ot,bn){let Pn=this.prepareExternalUrl(Ot+ze(bn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.replaceState(le,Ie,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(le=0){this._platformLocation.historyGo?.(le)}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.KVO(Ee),g.KVO(Re,8))};static#t=this.\u0275prov=g.jDH({token:X,factory:X.\u0275fac})}return X})(),Fe=(()=>{class X{constructor(le){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=le;const Ie=this._locationStrategy.getBaseHref();this._basePath=function he(X){if(new RegExp("^(https?:)?//").test(X)){const[,le]=X.split(/\/\/[^\/]+/);return le}return X}(Ve(Be(Ie))),this._locationStrategy.onPopState(Ot=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ot.state,type:Ot.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(le=!1){return this.normalize(this._locationStrategy.path(le))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(le,Ie=""){return this.path()==this.normalize(le+ze(Ie))}normalize(le){return X.stripTrailingSlash(function at(X,Pe){if(!X||!Pe.startsWith(X))return Pe;const le=Pe.substring(X.length);return""===le||["/",";","?","#"].includes(le[0])?le:Pe}(this._basePath,Be(le)))}prepareExternalUrl(le){return le&&"/"!==le[0]&&(le="/"+le),this._locationStrategy.prepareExternalUrl(le)}go(le,Ie="",Ot=null){this._locationStrategy.pushState(Ot,"",le,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(le+ze(Ie)),Ot)}replaceState(le,Ie="",Ot=null){this._locationStrategy.replaceState(Ot,"",le,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(le+ze(Ie)),Ot)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(le=0){this._locationStrategy.historyGo?.(le)}onUrlChange(le){return this._urlChangeListeners.push(le),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ie=>{this._notifyUrlChangeListeners(Ie.url,Ie.state)})),()=>{const Ie=this._urlChangeListeners.indexOf(le);this._urlChangeListeners.splice(Ie,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(le="",Ie){this._urlChangeListeners.forEach(Ot=>Ot(le,Ie))}subscribe(le,Ie,Ot){return this._subject.subscribe({next:le,error:Ie,complete:Ot})}static#e=this.normalizeQueryParams=ze;static#t=this.joinWithSlash=Te;static#n=this.stripTrailingSlash=Ve;static#i=this.\u0275fac=function(Ie){return new(Ie||X)(g.KVO(vt))};static#r=this.\u0275prov=g.jDH({token:X,factory:function(){return function _t(){return new Fe((0,g.KVO)(vt))}()},providedIn:"root"})}return X})();function Be(X){return X.replace(/\/index.html$/,"")}var dt=function(X){return X[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X}(dt||{}),jt=function(X){return X[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X}(jt||{}),Wt=function(X){return X[X.Short=0]="Short",X[X.Medium=1]="Medium",X[X.Long=2]="Long",X[X.Full=3]="Full",X}(Wt||{}),wn=function(X){return X[X.Decimal=0]="Decimal",X[X.Group=1]="Group",X[X.List=2]="List",X[X.PercentSign=3]="PercentSign",X[X.PlusSign=4]="PlusSign",X[X.MinusSign=5]="MinusSign",X[X.Exponential=6]="Exponential",X[X.SuperscriptingExponent=7]="SuperscriptingExponent",X[X.PerMille=8]="PerMille",X[X.Infinity=9]="Infinity",X[X.NaN=10]="NaN",X[X.TimeSeparator=11]="TimeSeparator",X[X.CurrencyDecimal=12]="CurrencyDecimal",X[X.CurrencyGroup=13]="CurrencyGroup",X}(wn||{});function nt(X,Pe){return xn((0,g.H5H)(X)[g.KH2.DateFormat],Pe)}function ht(X,Pe){return xn((0,g.H5H)(X)[g.KH2.TimeFormat],Pe)}function Je(X,Pe){return xn((0,g.H5H)(X)[g.KH2.DateTimeFormat],Pe)}function Ae(X,Pe){const le=(0,g.H5H)(X),Ie=le[g.KH2.NumberSymbols][Pe];if(typeof Ie>"u"){if(Pe===wn.CurrencyDecimal)return le[g.KH2.NumberSymbols][wn.Decimal];if(Pe===wn.CurrencyGroup)return le[g.KH2.NumberSymbols][wn.Group]}return Ie}function zt(X){if(!X[g.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${X[g.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function xn(X,Pe){for(let le=Pe;le>-1;le--)if(typeof X[le]<"u")return X[le];throw new Error("Locale data API: locale data undefined")}function In(X){const[Pe,le]=X.split(":");return{hours:+Pe,minutes:+le}}const Dr=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tr={},cn=/((?:[^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 On=function(X){return X[X.Short=0]="Short",X[X.ShortGMT=1]="ShortGMT",X[X.Long=2]="Long",X[X.Extended=3]="Extended",X}(On||{}),Qn=function(X){return X[X.FullYear=0]="FullYear",X[X.Month=1]="Month",X[X.Date=2]="Date",X[X.Hours=3]="Hours",X[X.Minutes=4]="Minutes",X[X.Seconds=5]="Seconds",X[X.FractionalSeconds=6]="FractionalSeconds",X[X.Day=7]="Day",X}(Qn||{}),fi=function(X){return X[X.DayPeriods=0]="DayPeriods",X[X.Days=1]="Days",X[X.Months=2]="Months",X[X.Eras=3]="Eras",X}(fi||{});function qe(X,Pe,le,Ie){let Ot=function jn(X){if(It(X))return X;if("number"==typeof X&&!isNaN(X))return new Date(X);if("string"==typeof X){if(X=X.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(X)){const[Ot,bn=1,Pn=1]=X.split("-").map(Oi=>+Oi);return Mt(Ot,bn-1,Pn)}const le=parseFloat(X);if(!isNaN(X-le))return new Date(le);let Ie;if(Ie=X.match(Dr))return function kn(X){const Pe=new Date(0);let le=0,Ie=0;const Ot=X[8]?Pe.setUTCFullYear:Pe.setFullYear,bn=X[8]?Pe.setUTCHours:Pe.setHours;X[9]&&(le=Number(X[9]+X[10]),Ie=Number(X[9]+X[11])),Ot.call(Pe,Number(X[1]),Number(X[2])-1,Number(X[3]));const Pn=Number(X[4]||0)-le,Oi=Number(X[5]||0)-Ie,lo=Number(X[6]||0),_o=Math.floor(1e3*parseFloat("0."+(X[7]||0)));return bn.call(Pe,Pn,Oi,lo,_o),Pe}(Ie)}const Pe=new Date(X);if(!It(Pe))throw new Error(`Unable to convert "${X}" into a date`);return Pe}(X);Pe=Bt(le,Pe)||Pe;let Oi,Pn=[];for(;Pe;){if(Oi=cn.exec(Pe),!Oi){Pn.push(Pe);break}{Pn=Pn.concat(Oi.slice(1));const Ds=Pn.pop();if(!Ds)break;Pe=Ds}}let lo=Ot.getTimezoneOffset();Ie&&(lo=io(Ie,lo),Ot=function ic(X,Pe,le){const Ie=le?-1:1,Ot=X.getTimezoneOffset();return function Wo(X,Pe){return(X=new Date(X.getTime())).setMinutes(X.getMinutes()+Pe),X}(X,Ie*(io(Pe,Ot)-Ot))}(Ot,Ie,!0));let _o="";return Pn.forEach(Ds=>{const xr=function Ss(X){if(mo[X])return mo[X];let Pe;switch(X){case"G":case"GG":case"GGG":Pe=dr(fi.Eras,jt.Abbreviated);break;case"GGGG":Pe=dr(fi.Eras,jt.Wide);break;case"GGGGG":Pe=dr(fi.Eras,jt.Narrow);break;case"y":Pe=ni(Qn.FullYear,1,0,!1,!0);break;case"yy":Pe=ni(Qn.FullYear,2,0,!0,!0);break;case"yyy":Pe=ni(Qn.FullYear,3,0,!1,!0);break;case"yyyy":Pe=ni(Qn.FullYear,4,0,!1,!0);break;case"Y":Pe=xc(1);break;case"YY":Pe=xc(2,!0);break;case"YYY":Pe=xc(3);break;case"YYYY":Pe=xc(4);break;case"M":case"L":Pe=ni(Qn.Month,1,1);break;case"MM":case"LL":Pe=ni(Qn.Month,2,1);break;case"MMM":Pe=dr(fi.Months,jt.Abbreviated);break;case"MMMM":Pe=dr(fi.Months,jt.Wide);break;case"MMMMM":Pe=dr(fi.Months,jt.Narrow);break;case"LLL":Pe=dr(fi.Months,jt.Abbreviated,dt.Standalone);break;case"LLLL":Pe=dr(fi.Months,jt.Wide,dt.Standalone);break;case"LLLLL":Pe=dr(fi.Months,jt.Narrow,dt.Standalone);break;case"w":Pe=qa(1);break;case"ww":Pe=qa(2);break;case"W":Pe=qa(1,!0);break;case"d":Pe=ni(Qn.Date,1);break;case"dd":Pe=ni(Qn.Date,2);break;case"c":case"cc":Pe=ni(Qn.Day,1);break;case"ccc":Pe=dr(fi.Days,jt.Abbreviated,dt.Standalone);break;case"cccc":Pe=dr(fi.Days,jt.Wide,dt.Standalone);break;case"ccccc":Pe=dr(fi.Days,jt.Narrow,dt.Standalone);break;case"cccccc":Pe=dr(fi.Days,jt.Short,dt.Standalone);break;case"E":case"EE":case"EEE":Pe=dr(fi.Days,jt.Abbreviated);break;case"EEEE":Pe=dr(fi.Days,jt.Wide);break;case"EEEEE":Pe=dr(fi.Days,jt.Narrow);break;case"EEEEEE":Pe=dr(fi.Days,jt.Short);break;case"a":case"aa":case"aaa":Pe=dr(fi.DayPeriods,jt.Abbreviated);break;case"aaaa":Pe=dr(fi.DayPeriods,jt.Wide);break;case"aaaaa":Pe=dr(fi.DayPeriods,jt.Narrow);break;case"b":case"bb":case"bbb":Pe=dr(fi.DayPeriods,jt.Abbreviated,dt.Standalone,!0);break;case"bbbb":Pe=dr(fi.DayPeriods,jt.Wide,dt.Standalone,!0);break;case"bbbbb":Pe=dr(fi.DayPeriods,jt.Narrow,dt.Standalone,!0);break;case"B":case"BB":case"BBB":Pe=dr(fi.DayPeriods,jt.Abbreviated,dt.Format,!0);break;case"BBBB":Pe=dr(fi.DayPeriods,jt.Wide,dt.Format,!0);break;case"BBBBB":Pe=dr(fi.DayPeriods,jt.Narrow,dt.Format,!0);break;case"h":Pe=ni(Qn.Hours,1,-12);break;case"hh":Pe=ni(Qn.Hours,2,-12);break;case"H":Pe=ni(Qn.Hours,1);break;case"HH":Pe=ni(Qn.Hours,2);break;case"m":Pe=ni(Qn.Minutes,1);break;case"mm":Pe=ni(Qn.Minutes,2);break;case"s":Pe=ni(Qn.Seconds,1);break;case"ss":Pe=ni(Qn.Seconds,2);break;case"S":Pe=ni(Qn.FractionalSeconds,1);break;case"SS":Pe=ni(Qn.FractionalSeconds,2);break;case"SSS":Pe=ni(Qn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Pe=Jr(On.Short);break;case"ZZZZZ":Pe=Jr(On.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Pe=Jr(On.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Pe=Jr(On.Long);break;default:return null}return mo[X]=Pe,Pe}(Ds);_o+=xr?xr(Ot,le,lo):"''"===Ds?"'":Ds.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),_o}function Mt(X,Pe,le){const Ie=new Date(0);return Ie.setFullYear(X,Pe,le),Ie.setHours(0,0,0),Ie}function Bt(X,Pe){const le=function di(X){return(0,g.H5H)(X)[g.KH2.LocaleId]}(X);if(Tr[le]=Tr[le]||{},Tr[le][Pe])return Tr[le][Pe];let Ie="";switch(Pe){case"shortDate":Ie=nt(X,Wt.Short);break;case"mediumDate":Ie=nt(X,Wt.Medium);break;case"longDate":Ie=nt(X,Wt.Long);break;case"fullDate":Ie=nt(X,Wt.Full);break;case"shortTime":Ie=ht(X,Wt.Short);break;case"mediumTime":Ie=ht(X,Wt.Medium);break;case"longTime":Ie=ht(X,Wt.Long);break;case"fullTime":Ie=ht(X,Wt.Full);break;case"short":const Ot=Bt(X,"shortTime"),bn=Bt(X,"shortDate");Ie=hn(Je(X,Wt.Short),[Ot,bn]);break;case"medium":const Pn=Bt(X,"mediumTime"),Oi=Bt(X,"mediumDate");Ie=hn(Je(X,Wt.Medium),[Pn,Oi]);break;case"long":const lo=Bt(X,"longTime"),_o=Bt(X,"longDate");Ie=hn(Je(X,Wt.Long),[lo,_o]);break;case"full":const Ds=Bt(X,"fullTime"),xr=Bt(X,"fullDate");Ie=hn(Je(X,Wt.Full),[Ds,xr])}return Ie&&(Tr[le][Pe]=Ie),Ie}function hn(X,Pe){return Pe&&(X=X.replace(/\{([^}]+)}/g,function(le,Ie){return null!=Pe&&Ie in Pe?Pe[Ie]:le})),X}function Mn(X,Pe,le="-",Ie,Ot){let bn="";(X<0||Ot&&X<=0)&&(Ot?X=1-X:(X=-X,bn=le));let Pn=String(X);for(;Pn.length0||Oi>-le)&&(Oi+=le),X===Qn.Hours)0===Oi&&-12===le&&(Oi=12);else if(X===Qn.FractionalSeconds)return function Vi(X,Pe){return Mn(X,3).substring(0,Pe)}(Oi,Pe);const lo=Ae(Pn,wn.MinusSign);return Mn(Oi,Pe,lo,Ie,Ot)}}function dr(X,Pe,le=dt.Format,Ie=!1){return function(Ot,bn){return function no(X,Pe,le,Ie,Ot,bn){switch(le){case fi.Months:return function $i(X,Pe,le){const Ie=(0,g.H5H)(X),bn=xn([Ie[g.KH2.MonthsFormat],Ie[g.KH2.MonthsStandalone]],Pe);return xn(bn,le)}(Pe,Ot,Ie)[X.getMonth()];case fi.Days:return function Li(X,Pe,le){const Ie=(0,g.H5H)(X),bn=xn([Ie[g.KH2.DaysFormat],Ie[g.KH2.DaysStandalone]],Pe);return xn(bn,le)}(Pe,Ot,Ie)[X.getDay()];case fi.DayPeriods:const Pn=X.getHours(),Oi=X.getMinutes();if(bn){const _o=function rt(X){const Pe=(0,g.H5H)(X);return zt(Pe),(Pe[g.KH2.ExtraData][2]||[]).map(Ie=>"string"==typeof Ie?In(Ie):[In(Ie[0]),In(Ie[1])])}(Pe),Ds=function xt(X,Pe,le){const Ie=(0,g.H5H)(X);zt(Ie);const bn=xn([Ie[g.KH2.ExtraData][0],Ie[g.KH2.ExtraData][1]],Pe)||[];return xn(bn,le)||[]}(Pe,Ot,Ie),xr=_o.findIndex(ko=>{if(Array.isArray(ko)){const[ms,ha]=ko,Fa=Pn>=ms.hours&&Oi>=ms.minutes,mc=Pn0?Math.floor(Ot/60):Math.ceil(Ot/60);switch(X){case On.Short:return(Ot>=0?"+":"")+Mn(Pn,2,bn)+Mn(Math.abs(Ot%60),2,bn);case On.ShortGMT:return"GMT"+(Ot>=0?"+":"")+Mn(Pn,1,bn);case On.Long:return"GMT"+(Ot>=0?"+":"")+Mn(Pn,2,bn)+":"+Mn(Math.abs(Ot%60),2,bn);case On.Extended:return 0===Ie?"Z":(Ot>=0?"+":"")+Mn(Pn,2,bn)+":"+Mn(Math.abs(Ot%60),2,bn);default:throw new Error(`Unknown zone width "${X}"`)}}}const Ki=0,Ys=4;function zo(X){return Mt(X.getFullYear(),X.getMonth(),X.getDate()+(Ys-X.getDay()))}function qa(X,Pe=!1){return function(le,Ie){let Ot;if(Pe){const bn=new Date(le.getFullYear(),le.getMonth(),1).getDay()-1,Pn=le.getDate();Ot=1+Math.floor((Pn+bn)/7)}else{const bn=zo(le),Pn=function so(X){const Pe=Mt(X,Ki,1).getDay();return Mt(X,0,1+(Pe<=Ys?Ys:Ys+7)-Pe)}(bn.getFullYear()),Oi=bn.getTime()-Pn.getTime();Ot=1+Math.round(Oi/6048e5)}return Mn(Ot,X,Ae(Ie,wn.MinusSign))}}function xc(X,Pe=!1){return function(le,Ie){return Mn(zo(le).getFullYear(),X,Ae(Ie,wn.MinusSign),Pe)}}const mo={};function io(X,Pe){X=X.replace(/:/g,"");const le=Date.parse("Jan 01, 1970 00:00:00 "+X)/6e4;return isNaN(le)?Pe:le}function It(X){return X instanceof Date&&!isNaN(X.valueOf())}function Vr(X,Pe){Pe=encodeURIComponent(Pe);for(const le of X.split(";")){const Ie=le.indexOf("="),[Ot,bn]=-1==Ie?[le,""]:[le.slice(0,Ie),le.slice(Ie+1)];if(Ot.trim()===Pe)return decodeURIComponent(bn)}return null}const Gs=/\s+/,Fr=[];let is=(()=>{class X{constructor(le,Ie,Ot,bn){this._iterableDiffers=le,this._keyValueDiffers=Ie,this._ngEl=Ot,this._renderer=bn,this.initialClasses=Fr,this.stateMap=new Map}set klass(le){this.initialClasses=null!=le?le.trim().split(Gs):Fr}set ngClass(le){this.rawClass="string"==typeof le?le.trim().split(Gs):le}ngDoCheck(){for(const Ie of this.initialClasses)this._updateState(Ie,!0);const le=this.rawClass;if(Array.isArray(le)||le instanceof Set)for(const Ie of le)this._updateState(Ie,!0);else if(null!=le)for(const Ie of Object.keys(le))this._updateState(Ie,!!le[Ie]);this._applyStateDiff()}_updateState(le,Ie){const Ot=this.stateMap.get(le);void 0!==Ot?(Ot.enabled!==Ie&&(Ot.changed=!0,Ot.enabled=Ie),Ot.touched=!0):this.stateMap.set(le,{enabled:Ie,changed:!0,touched:!0})}_applyStateDiff(){for(const le of this.stateMap){const Ie=le[0],Ot=le[1];Ot.changed?(this._toggleClass(Ie,Ot.enabled),Ot.changed=!1):Ot.touched||(Ot.enabled&&this._toggleClass(Ie,!1),this.stateMap.delete(Ie)),Ot.touched=!1}}_toggleClass(le,Ie){(le=le.trim()).length>0&&le.split(Gs).forEach(Ot=>{Ie?this._renderer.addClass(this._ngEl.nativeElement,Ot):this._renderer.removeClass(this._ngEl.nativeElement,Ot)})}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g._q3),g.rXU(g.MKu),g.rXU(g.aKT),g.rXU(g.sFG))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return X})(),Ro=(()=>{class X{constructor(le){this._viewContainerRef=le,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(le){return void 0!==le.ngComponentOutletNgModule||void 0!==le.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(le){return void 0!==le.ngComponentOutlet||void 0!==le.ngComponentOutletContent||void 0!==le.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(le)}ngOnChanges(le){if(this._needToReCreateComponentInstance(le)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const Ie=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(le)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,g.w6W)(this.ngComponentOutletNgModule,Zo(Ie)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(Zo(Ie)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:Ie,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const le of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(le,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(le){for(const[Ie,Ot]of this._inputsUsed)Ot?(le.setInput(Ie,this.ngComponentOutletInputs[Ie]),this._inputsUsed.set(Ie,!1)):(le.setInput(Ie,void 0),this._inputsUsed.delete(Ie))}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[g.OA$]})}return X})();function Zo(X){return X.get(g.Vns).injector}class Vo{constructor(Pe,le,Ie,Ot){this.$implicit=Pe,this.ngForOf=le,this.index=Ie,this.count=Ot}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qo=(()=>{class X{set ngForOf(le){this._ngForOf=le,this._ngForOfDirty=!0}set ngForTrackBy(le){this._trackByFn=le}get ngForTrackBy(){return this._trackByFn}constructor(le,Ie,Ot){this._viewContainer=le,this._template=Ie,this._differs=Ot,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(le){le&&(this._template=le)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const le=this._ngForOf;!this._differ&&le&&(this._differ=this._differs.find(le).create(this.ngForTrackBy))}if(this._differ){const le=this._differ.diff(this._ngForOf);le&&this._applyChanges(le)}}_applyChanges(le){const Ie=this._viewContainer;le.forEachOperation((Ot,bn,Pn)=>{if(null==Ot.previousIndex)Ie.createEmbeddedView(this._template,new Vo(Ot.item,this._ngForOf,-1,-1),null===Pn?void 0:Pn);else if(null==Pn)Ie.remove(null===bn?void 0:bn);else if(null!==bn){const Oi=Ie.get(bn);Ie.move(Oi,Pn),ea(Oi,Ot)}});for(let Ot=0,bn=Ie.length;Ot{ea(Ie.get(Ot.currentIndex),Ot)})}static ngTemplateContextGuard(le,Ie){return!0}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(g._q3))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return X})();function ea(X,Pe){X.context.$implicit=Pe.item}let xo=(()=>{class X{constructor(le,Ie){this._viewContainer=le,this._context=new ta,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ie}set ngIf(le){this._context.$implicit=this._context.ngIf=le,this._updateView()}set ngIfThen(le){Ps("ngIfThen",le),this._thenTemplateRef=le,this._thenViewRef=null,this._updateView()}set ngIfElse(le){Ps("ngIfElse",le),this._elseTemplateRef=le,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(le,Ie){return!0}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b),g.rXU(g.C4Q))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return X})();class ta{constructor(){this.$implicit=null,this.ngIf=null}}function Ps(X,Pe){if(Pe&&!Pe.createEmbeddedView)throw new Error(`${X} must be a TemplateRef, but received '${(0,g.Tbb)(Pe)}'.`)}class Ma{constructor(Pe,le){this._viewContainerRef=Pe,this._templateRef=le,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Pe){Pe&&!this._created?this.create():!Pe&&this._created&&this.destroy()}}let ws=(()=>{class X{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(le){this._ngSwitch=le,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(le){this._defaultViews.push(le)}_matchCase(le){const Ie=le==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ie,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ie}_updateDefaultCases(le){if(this._defaultViews.length>0&&le!==this._defaultUsed){this._defaultUsed=le;for(const Ie of this._defaultViews)Ie.enforceState(le)}}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return X})(),La=(()=>{class X{constructor(le,Ie,Ot){this.ngSwitch=Ot,Ot._addCase(),this._view=new Ma(le,Ie)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(ws,9))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return X})(),ao=(()=>{class X{constructor(le,Ie,Ot){Ot._addDefault(new Ma(le,Ie))}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(ws,9))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return X})(),pl=(()=>{class X{constructor(le,Ie,Ot){this._ngEl=le,this._differs=Ie,this._renderer=Ot,this._ngStyle=null,this._differ=null}set ngStyle(le){this._ngStyle=le,!this._differ&&le&&(this._differ=this._differs.find(le).create())}ngDoCheck(){if(this._differ){const le=this._differ.diff(this._ngStyle);le&&this._applyChanges(le)}}_setStyle(le,Ie){const[Ot,bn]=le.split("."),Pn=-1===Ot.indexOf("-")?void 0:g.czy.DashCase;null!=Ie?this._renderer.setStyle(this._ngEl.nativeElement,Ot,bn?`${Ie}${bn}`:Ie,Pn):this._renderer.removeStyle(this._ngEl.nativeElement,Ot,Pn)}_applyChanges(le){le.forEachRemovedItem(Ie=>this._setStyle(Ie.key,null)),le.forEachAddedItem(Ie=>this._setStyle(Ie.key,Ie.currentValue)),le.forEachChangedItem(Ie=>this._setStyle(Ie.key,Ie.currentValue))}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.aKT),g.rXU(g.MKu),g.rXU(g.sFG))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return X})(),na=(()=>{class X{constructor(le){this._viewContainerRef=le,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(le){if(le.ngTemplateOutlet||le.ngTemplateOutletInjector){const Ie=this._viewContainerRef;if(this._viewRef&&Ie.remove(Ie.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ot,ngTemplateOutletContext:bn,ngTemplateOutletInjector:Pn}=this;this._viewRef=Ie.createEmbeddedView(Ot,bn,Pn?{injector:Pn}:void 0)}else this._viewRef=null}else this._viewRef&&le.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]})}return X})();class ql{createSubscription(Pe,le){return(0,g.O8t)(()=>Pe.subscribe({next:le,error:Ie=>{throw Ie}}))}dispose(Pe){(0,g.O8t)(()=>Pe.unsubscribe())}}class go{createSubscription(Pe,le){return Pe.then(le,Ie=>{throw Ie})}dispose(Pe){}}const Xa=new go,Ws=new ql;let tl=(()=>{class X{constructor(le){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=le}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(le){return this._obj?le!==this._obj?(this._dispose(),this.transform(le)):this._latestValue:(le&&this._subscribe(le),this._latestValue)}_subscribe(le){this._obj=le,this._strategy=this._selectStrategy(le),this._subscription=this._strategy.createSubscription(le,Ie=>this._updateLatestValue(le,Ie))}_selectStrategy(le){if((0,g.jNT)(le))return Xa;if((0,g.zjR)(le))return Ws;throw function rc(X,Pe){return new g.wOt(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(le,Ie){le===this._obj&&(this._latestValue=Ie,this._ref.markForCheck())}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.gRc,16))};static#t=this.\u0275pipe=g.EJ8({name:"async",type:X,pure:!1,standalone:!0})}return X})(),za=(()=>{class X{transform(le){return JSON.stringify(le,null,2)}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275pipe=g.EJ8({name:"json",type:X,pure:!1,standalone:!0})}return X})(),ka=(()=>{class X{static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275mod=g.$C({type:X});static#n=this.\u0275inj=g.G2t({})}return X})();const Is="browser",wc="server";function rr(X){return X===Is}function ml(X){return X===wc}let Js=(()=>{class X{static#e=this.\u0275prov=(0,g.jDH)({token:X,providedIn:"root",factory:()=>new ua((0,g.KVO)(pe),window)})}return X})();class ua{constructor(Pe,le){this.document=Pe,this.window=le,this.offset=()=>[0,0]}setOffset(Pe){this.offset=Array.isArray(Pe)?()=>Pe:Pe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Pe){this.supportsScrolling()&&this.window.scrollTo(Pe[0],Pe[1])}scrollToAnchor(Pe){if(!this.supportsScrolling())return;const le=function da(X,Pe){const le=X.getElementById(Pe)||X.getElementsByName(Pe)[0];if(le)return le;if("function"==typeof X.createTreeWalker&&X.body&&"function"==typeof X.body.attachShadow){const Ie=X.createTreeWalker(X.body,NodeFilter.SHOW_ELEMENT);let Ot=Ie.currentNode;for(;Ot;){const bn=Ot.shadowRoot;if(bn){const Pn=bn.getElementById(Pe)||bn.querySelector(`[name="${Pe}"]`);if(Pn)return Pn}Ot=Ie.nextNode()}}return null}(this.document,Pe);le&&(this.scrollToElement(le),le.focus())}setHistoryScrollRestoration(Pe){this.supportsScrolling()&&(this.window.history.scrollRestoration=Pe)}scrollToElement(Pe){const le=Pe.getBoundingClientRect(),Ie=le.left+this.window.pageXOffset,Ot=le.top+this.window.pageYOffset,bn=this.offset();this.window.scrollTo(Ie-bn[0],Ot-bn[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class No{}},6409:(vn,J,F)=>{"use strict";F.d(J,{$R:()=>qa,Qq:()=>dn,b$:()=>xc});var g=F(2978),o=F(756),V=F(8399),oe=F(9406),De=F(4807),pe=F(8503),Ee=F(3527),be=F(6347),ge=F(2831),Te=F(6610);class Ve{}class ze{}class vt{constructor(Tt){this.normalizedNames=new Map,this.lazyUpdate=null,Tt?"string"==typeof Tt?this.lazyInit=()=>{this.headers=new Map,Tt.split("\n").forEach(Kt=>{const Vn=Kt.indexOf(":");if(Vn>0){const qn=Kt.slice(0,Vn),pi=qn.toLowerCase(),ti=Kt.slice(Vn+1).trim();this.maybeSetNormalizedName(qn,pi),this.headers.has(pi)?this.headers.get(pi).push(ti):this.headers.set(pi,[ti])}})}:typeof Headers<"u"&&Tt instanceof Headers?(this.headers=new Map,Tt.forEach((Kt,Vn)=>{this.setHeaderEntries(Vn,Kt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Tt).forEach(([Kt,Vn])=>{this.setHeaderEntries(Kt,Vn)})}:this.headers=new Map}has(Tt){return this.init(),this.headers.has(Tt.toLowerCase())}get(Tt){this.init();const Kt=this.headers.get(Tt.toLowerCase());return Kt&&Kt.length>0?Kt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Tt){return this.init(),this.headers.get(Tt.toLowerCase())||null}append(Tt,Kt){return this.clone({name:Tt,value:Kt,op:"a"})}set(Tt,Kt){return this.clone({name:Tt,value:Kt,op:"s"})}delete(Tt,Kt){return this.clone({name:Tt,value:Kt,op:"d"})}maybeSetNormalizedName(Tt,Kt){this.normalizedNames.has(Kt)||this.normalizedNames.set(Kt,Tt)}init(){this.lazyInit&&(this.lazyInit instanceof vt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Tt=>this.applyUpdate(Tt)),this.lazyUpdate=null))}copyFrom(Tt){Tt.init(),Array.from(Tt.headers.keys()).forEach(Kt=>{this.headers.set(Kt,Tt.headers.get(Kt)),this.normalizedNames.set(Kt,Tt.normalizedNames.get(Kt))})}clone(Tt){const Kt=new vt;return Kt.lazyInit=this.lazyInit&&this.lazyInit instanceof vt?this.lazyInit:this,Kt.lazyUpdate=(this.lazyUpdate||[]).concat([Tt]),Kt}applyUpdate(Tt){const Kt=Tt.name.toLowerCase();switch(Tt.op){case"a":case"s":let Vn=Tt.value;if("string"==typeof Vn&&(Vn=[Vn]),0===Vn.length)return;this.maybeSetNormalizedName(Tt.name,Kt);const qn=("a"===Tt.op?this.headers.get(Kt):void 0)||[];qn.push(...Vn),this.headers.set(Kt,qn);break;case"d":const pi=Tt.value;if(pi){let ti=this.headers.get(Kt);if(!ti)return;ti=ti.filter(Ni=>-1===pi.indexOf(Ni)),0===ti.length?(this.headers.delete(Kt),this.normalizedNames.delete(Kt)):this.headers.set(Kt,ti)}else this.headers.delete(Kt),this.normalizedNames.delete(Kt)}}setHeaderEntries(Tt,Kt){const Vn=(Array.isArray(Kt)?Kt:[Kt]).map(pi=>pi.toString()),qn=Tt.toLowerCase();this.headers.set(qn,Vn),this.maybeSetNormalizedName(Tt,qn)}forEach(Tt){this.init(),Array.from(this.normalizedNames.keys()).forEach(Kt=>Tt(this.normalizedNames.get(Kt),this.headers.get(Kt)))}}class tt{encodeKey(Tt){return at(Tt)}encodeValue(Tt){return at(Tt)}decodeKey(Tt){return decodeURIComponent(Tt)}decodeValue(Tt){return decodeURIComponent(Tt)}}const Fe=/%(\d[a-f0-9])/gi,_t={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function at(tn){return encodeURIComponent(tn).replace(Fe,(Tt,Kt)=>_t[Kt]??Tt)}function Be(tn){return`${tn}`}class he{constructor(Tt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Tt.encoder||new tt,Tt.fromString){if(Tt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(tn,Tt){const Kt=new Map;return tn.length>0&&tn.replace(/^\?/,"").split("&").forEach(qn=>{const pi=qn.indexOf("="),[ti,Ni]=-1==pi?[Tt.decodeKey(qn),""]:[Tt.decodeKey(qn.slice(0,pi)),Tt.decodeValue(qn.slice(pi+1))],ii=Kt.get(ti)||[];ii.push(Ni),Kt.set(ti,ii)}),Kt}(Tt.fromString,this.encoder)}else Tt.fromObject?(this.map=new Map,Object.keys(Tt.fromObject).forEach(Kt=>{const Vn=Tt.fromObject[Kt],qn=Array.isArray(Vn)?Vn.map(Be):[Be(Vn)];this.map.set(Kt,qn)})):this.map=null}has(Tt){return this.init(),this.map.has(Tt)}get(Tt){this.init();const Kt=this.map.get(Tt);return Kt?Kt[0]:null}getAll(Tt){return this.init(),this.map.get(Tt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Tt,Kt){return this.clone({param:Tt,value:Kt,op:"a"})}appendAll(Tt){const Kt=[];return Object.keys(Tt).forEach(Vn=>{const qn=Tt[Vn];Array.isArray(qn)?qn.forEach(pi=>{Kt.push({param:Vn,value:pi,op:"a"})}):Kt.push({param:Vn,value:qn,op:"a"})}),this.clone(Kt)}set(Tt,Kt){return this.clone({param:Tt,value:Kt,op:"s"})}delete(Tt,Kt){return this.clone({param:Tt,value:Kt,op:"d"})}toString(){return this.init(),this.keys().map(Tt=>{const Kt=this.encoder.encodeKey(Tt);return this.map.get(Tt).map(Vn=>Kt+"="+this.encoder.encodeValue(Vn)).join("&")}).filter(Tt=>""!==Tt).join("&")}clone(Tt){const Kt=new he({encoder:this.encoder});return Kt.cloneFrom=this.cloneFrom||this,Kt.updates=(this.updates||[]).concat(Tt),Kt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Tt=>this.map.set(Tt,this.cloneFrom.map.get(Tt))),this.updates.forEach(Tt=>{switch(Tt.op){case"a":case"s":const Kt=("a"===Tt.op?this.map.get(Tt.param):void 0)||[];Kt.push(Be(Tt.value)),this.map.set(Tt.param,Kt);break;case"d":if(void 0===Tt.value){this.map.delete(Tt.param);break}{let Vn=this.map.get(Tt.param)||[];const qn=Vn.indexOf(Be(Tt.value));-1!==qn&&Vn.splice(qn,1),Vn.length>0?this.map.set(Tt.param,Vn):this.map.delete(Tt.param)}}}),this.cloneFrom=this.updates=null)}}class Se{constructor(){this.map=new Map}set(Tt,Kt){return this.map.set(Tt,Kt),this}get(Tt){return this.map.has(Tt)||this.map.set(Tt,Tt.defaultValue()),this.map.get(Tt)}delete(Tt){return this.map.delete(Tt),this}has(Tt){return this.map.has(Tt)}keys(){return this.map.keys()}}function dt(tn){return typeof ArrayBuffer<"u"&&tn instanceof ArrayBuffer}function jt(tn){return typeof Blob<"u"&&tn instanceof Blob}function Wt(tn){return typeof FormData<"u"&&tn instanceof FormData}class Wn{constructor(Tt,Kt,Vn,qn){let pi;if(this.url=Kt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Tt.toUpperCase(),function it(tn){switch(tn){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qn?(this.body=void 0!==Vn?Vn:null,pi=qn):pi=Vn,pi&&(this.reportProgress=!!pi.reportProgress,this.withCredentials=!!pi.withCredentials,pi.responseType&&(this.responseType=pi.responseType),pi.headers&&(this.headers=pi.headers),pi.context&&(this.context=pi.context),pi.params&&(this.params=pi.params)),this.headers||(this.headers=new vt),this.context||(this.context=new Se),this.params){const ti=this.params.toString();if(0===ti.length)this.urlWithParams=Kt;else{const Ni=Kt.indexOf("?");this.urlWithParams=Kt+(-1===Ni?"?":Nixs.set(ks,Tt.setHeaders[ks]),ii)),Tt.setParams&&(lr=Object.keys(Tt.setParams).reduce((xs,ks)=>xs.set(ks,Tt.setParams[ks]),lr)),new Wn(Kt,Vn,pi,{params:lr,headers:ii,context:Gr,reportProgress:Ni,responseType:qn,withCredentials:ti})}}var di=function(tn){return tn[tn.Sent=0]="Sent",tn[tn.UploadProgress=1]="UploadProgress",tn[tn.ResponseHeader=2]="ResponseHeader",tn[tn.DownloadProgress=3]="DownloadProgress",tn[tn.Response=4]="Response",tn[tn.User=5]="User",tn}(di||{});class ai{constructor(Tt,Kt=200,Vn="OK"){this.headers=Tt.headers||new vt,this.status=void 0!==Tt.status?Tt.status:Kt,this.statusText=Tt.statusText||Vn,this.url=Tt.url||null,this.ok=this.status>=200&&this.status<300}}class Li extends ai{constructor(Tt={}){super(Tt),this.type=di.ResponseHeader}clone(Tt={}){return new Li({headers:Tt.headers||this.headers,status:void 0!==Tt.status?Tt.status:this.status,statusText:Tt.statusText||this.statusText,url:Tt.url||this.url||void 0})}}class $i extends ai{constructor(Tt={}){super(Tt),this.type=di.Response,this.body=void 0!==Tt.body?Tt.body:null}clone(Tt={}){return new $i({body:void 0!==Tt.body?Tt.body:this.body,headers:Tt.headers||this.headers,status:void 0!==Tt.status?Tt.status:this.status,statusText:Tt.statusText||this.statusText,url:Tt.url||this.url||void 0})}}class Hr extends ai{constructor(Tt){super(Tt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Tt.url||"(unknown url)"}`:`Http failure response for ${Tt.url||"(unknown url)"}: ${Tt.status} ${Tt.statusText}`,this.error=Tt.error||null}}function ui(tn,Tt){return{body:Tt,headers:tn.headers,context:tn.context,observe:tn.observe,params:tn.params,reportProgress:tn.reportProgress,responseType:tn.responseType,withCredentials:tn.withCredentials}}let dn=(()=>{class tn{constructor(Kt){this.handler=Kt}request(Kt,Vn,qn={}){let pi;if(Kt instanceof Wn)pi=Kt;else{let ii,lr;ii=qn.headers instanceof vt?qn.headers:new vt(qn.headers),qn.params&&(lr=qn.params instanceof he?qn.params:new he({fromObject:qn.params})),pi=new Wn(Kt,Vn,void 0!==qn.body?qn.body:null,{headers:ii,context:qn.context,params:lr,reportProgress:qn.reportProgress,responseType:qn.responseType||"json",withCredentials:qn.withCredentials})}const ti=(0,o.of)(pi).pipe((0,De.H)(ii=>this.handler.handle(ii)));if(Kt instanceof Wn||"events"===qn.observe)return ti;const Ni=ti.pipe((0,pe.p)(ii=>ii instanceof $i));switch(qn.observe||"body"){case"body":switch(pi.responseType){case"arraybuffer":return Ni.pipe((0,Ee.T)(ii=>{if(null!==ii.body&&!(ii.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ii.body}));case"blob":return Ni.pipe((0,Ee.T)(ii=>{if(null!==ii.body&&!(ii.body instanceof Blob))throw new Error("Response is not a Blob.");return ii.body}));case"text":return Ni.pipe((0,Ee.T)(ii=>{if(null!==ii.body&&"string"!=typeof ii.body)throw new Error("Response is not a string.");return ii.body}));default:return Ni.pipe((0,Ee.T)(ii=>ii.body))}case"response":return Ni;default:throw new Error(`Unreachable: unhandled observe type ${qn.observe}}`)}}delete(Kt,Vn={}){return this.request("DELETE",Kt,Vn)}get(Kt,Vn={}){return this.request("GET",Kt,Vn)}head(Kt,Vn={}){return this.request("HEAD",Kt,Vn)}jsonp(Kt,Vn){return this.request("JSONP",Kt,{params:(new he).append(Vn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Kt,Vn={}){return this.request("OPTIONS",Kt,Vn)}patch(Kt,Vn,qn={}){return this.request("PATCH",Kt,ui(qn,Vn))}post(Kt,Vn,qn={}){return this.request("POST",Kt,ui(qn,Vn))}put(Kt,Vn,qn={}){return this.request("PUT",Kt,ui(qn,Vn))}static#e=this.\u0275fac=function(Vn){return new(Vn||tn)(g.KVO(Ve))};static#t=this.\u0275prov=g.jDH({token:tn,factory:tn.\u0275fac})}return tn})();function te(tn,Tt){return Tt(tn)}const rt=new g.nKC(""),xt=new g.nKC("");let xn=(()=>{class tn extends Ve{constructor(Kt,Vn){super(),this.backend=Kt,this.injector=Vn,this.chain=null,this.pendingTasks=(0,g.WQX)(g.$K3)}handle(Kt){if(null===this.chain){const qn=Array.from(new Set([...this.injector.get(rt),...this.injector.get(xt,[])]));this.chain=qn.reduceRight((pi,ti)=>function Ce(tn,Tt,Kt){return(Vn,qn)=>Kt.runInContext(()=>Tt(Vn,pi=>tn(pi,qn)))}(pi,ti,this.injector),te)}const Vn=this.pendingTasks.add();return this.chain(Kt,qn=>this.backend.handle(qn)).pipe((0,be.j)(()=>this.pendingTasks.remove(Vn)))}static#e=this.\u0275fac=function(Vn){return new(Vn||tn)(g.KVO(ze),g.KVO(g.uvJ))};static#t=this.\u0275prov=g.jDH({token:tn,factory:tn.\u0275fac})}return tn})();const Mt=/^\)\]\}',?\n/;let hn=(()=>{class tn{constructor(Kt){this.xhrFactory=Kt}handle(Kt){if("JSONP"===Kt.method)throw new g.wOt(-2800,!1);const Vn=this.xhrFactory;return(Vn.\u0275loadImpl?(0,V.H)(Vn.\u0275loadImpl()):(0,o.of)(null)).pipe((0,ge.n)(()=>new oe.c(pi=>{const ti=Vn.build();if(ti.open(Kt.method,Kt.urlWithParams),Kt.withCredentials&&(ti.withCredentials=!0),Kt.headers.forEach((Fr,is)=>ti.setRequestHeader(Fr,is.join(","))),Kt.headers.has("Accept")||ti.setRequestHeader("Accept","application/json, text/plain, */*"),!Kt.headers.has("Content-Type")){const Fr=Kt.detectContentTypeHeader();null!==Fr&&ti.setRequestHeader("Content-Type",Fr)}if(Kt.responseType){const Fr=Kt.responseType.toLowerCase();ti.responseType="json"!==Fr?Fr:"text"}const Ni=Kt.serializeBody();let ii=null;const lr=()=>{if(null!==ii)return ii;const Fr=ti.statusText||"OK",is=new vt(ti.getAllResponseHeaders()),Ro=function Bt(tn){return"responseURL"in tn&&tn.responseURL?tn.responseURL:/^X-Request-URL:/m.test(tn.getAllResponseHeaders())?tn.getResponseHeader("X-Request-URL"):null}(ti)||Kt.url;return ii=new Li({headers:is,status:ti.status,statusText:Fr,url:Ro}),ii},Gr=()=>{let{headers:Fr,status:is,statusText:Ro,url:Zo}=lr(),Vo=null;204!==is&&(Vo=typeof ti.response>"u"?ti.responseText:ti.response),0===is&&(is=Vo?200:0);let qo=is>=200&&is<300;if("json"===Kt.responseType&&"string"==typeof Vo){const ea=Vo;Vo=Vo.replace(Mt,"");try{Vo=""!==Vo?JSON.parse(Vo):null}catch(oo){Vo=ea,qo&&(qo=!1,Vo={error:oo,text:Vo})}}qo?(pi.next(new $i({body:Vo,headers:Fr,status:is,statusText:Ro,url:Zo||void 0})),pi.complete()):pi.error(new Hr({error:Vo,headers:Fr,status:is,statusText:Ro,url:Zo||void 0}))},xs=Fr=>{const{url:is}=lr(),Ro=new Hr({error:Fr,status:ti.status||0,statusText:ti.statusText||"Unknown Error",url:is||void 0});pi.error(Ro)};let ks=!1;const Vr=Fr=>{ks||(pi.next(lr()),ks=!0);let is={type:di.DownloadProgress,loaded:Fr.loaded};Fr.lengthComputable&&(is.total=Fr.total),"text"===Kt.responseType&&ti.responseText&&(is.partialText=ti.responseText),pi.next(is)},Gs=Fr=>{let is={type:di.UploadProgress,loaded:Fr.loaded};Fr.lengthComputable&&(is.total=Fr.total),pi.next(is)};return ti.addEventListener("load",Gr),ti.addEventListener("error",xs),ti.addEventListener("timeout",xs),ti.addEventListener("abort",xs),Kt.reportProgress&&(ti.addEventListener("progress",Vr),null!==Ni&&ti.upload&&ti.upload.addEventListener("progress",Gs)),ti.send(Ni),pi.next({type:di.Sent}),()=>{ti.removeEventListener("error",xs),ti.removeEventListener("abort",xs),ti.removeEventListener("load",Gr),ti.removeEventListener("timeout",xs),Kt.reportProgress&&(ti.removeEventListener("progress",Vr),null!==Ni&&ti.upload&&ti.upload.removeEventListener("progress",Gs)),ti.readyState!==ti.DONE&&ti.abort()}})))}static#e=this.\u0275fac=function(Vn){return new(Vn||tn)(g.KVO(Te.N0))};static#t=this.\u0275prov=g.jDH({token:tn,factory:tn.\u0275fac})}return tn})();const Mn=new g.nKC("XSRF_ENABLED"),ni=new g.nKC("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),dr=new g.nKC("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class no{}let Jr=(()=>{class tn{constructor(Kt,Vn,qn){this.doc=Kt,this.platform=Vn,this.cookieName=qn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Kt=this.doc.cookie||"";return Kt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Te._b)(Kt,this.cookieName),this.lastCookieString=Kt),this.lastToken}static#e=this.\u0275fac=function(Vn){return new(Vn||tn)(g.KVO(Te.qQ),g.KVO(g.Agw),g.KVO(ni))};static#t=this.\u0275prov=g.jDH({token:tn,factory:tn.\u0275fac})}return tn})();function Ki(tn,Tt){const Kt=tn.url.toLowerCase();if(!(0,g.WQX)(Mn)||"GET"===tn.method||"HEAD"===tn.method||Kt.startsWith("http://")||Kt.startsWith("https://"))return Tt(tn);const Vn=(0,g.WQX)(no).getToken(),qn=(0,g.WQX)(dr);return null!=Vn&&!tn.headers.has(qn)&&(tn=tn.clone({headers:tn.headers.set(qn,Vn)})),Tt(tn)}var so=function(tn){return tn[tn.Interceptors=0]="Interceptors",tn[tn.LegacyInterceptors=1]="LegacyInterceptors",tn[tn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",tn[tn.NoXsrfProtection=3]="NoXsrfProtection",tn[tn.JsonpSupport=4]="JsonpSupport",tn[tn.RequestsMadeViaParent=5]="RequestsMadeViaParent",tn[tn.Fetch=6]="Fetch",tn}(so||{});function qa(...tn){const Tt=[dn,hn,xn,{provide:Ve,useExisting:xn},{provide:ze,useExisting:hn},{provide:rt,useValue:Ki,multi:!0},{provide:Mn,useValue:!0},{provide:no,useClass:Jr}];for(const Kt of tn)Tt.push(...Kt.\u0275providers);return(0,g.EmA)(Tt)}function xc(tn){return function zo(tn,Tt){return{\u0275kind:tn,\u0275providers:Tt}}(so.Interceptors,tn.map(Tt=>({provide:rt,useValue:Tt,multi:!0})))}},2978:(vn,J,F)=>{"use strict";F.d(J,{$C:()=>As,$GK:()=>On,$K3:()=>Fv,$MX:()=>W3,AVh:()=>P8,Aen:()=>$2,Af3:()=>If,Agw:()=>O6,BIS:()=>H6,BMQ:()=>c9,C4Q:()=>ah,C5r:()=>hw,Co$:()=>rv,DNE:()=>hC,EBC:()=>en,EFF:()=>FC,EJ8:()=>hc,EWP:()=>d1,EmA:()=>V6,FRM:()=>Ds,FsC:()=>Ka,G2t:()=>xt,GBs:()=>cw,GFd:()=>o9,H3F:()=>Dw,H5H:()=>P9,H8p:()=>W4,HJs:()=>IA,HbH:()=>zC,JRh:()=>A9,JZv:()=>hn,Jv_:()=>Hx,KH2:()=>Jf,KVO:()=>Pt,Kam:()=>y9,Kcf:()=>Nm,L39:()=>fM,LfX:()=>xn,Lme:()=>I9,MKu:()=>r_,Mr5:()=>Yf,NAR:()=>CC,NEm:()=>eA,NYb:()=>QV,Njj:()=>ld,O8t:()=>bn,OA$:()=>xr,OM3:()=>Q4,Ocv:()=>Vw,Ol2:()=>Lx,PLl:()=>Y3,QTQ:()=>t3,QZP:()=>Ny,Ql9:()=>uh,QuC:()=>Ao,R7$:()=>My,RV6:()=>g9,Rfq:()=>tt,RxE:()=>l8,SKi:()=>Ml,SdG:()=>x9,SpI:()=>lp,TL$:()=>Lm,TL3:()=>iA,Tbb:()=>ze,UyX:()=>dg,VBU:()=>go,Vns:()=>d0,Vt3:()=>r9,WHO:()=>Rw,WPN:()=>s4,WQX:()=>pn,XpG:()=>yC,Xx1:()=>Zh,Y8G:()=>rp,Z63:()=>U4,ZF7:()=>F4,ZvI:()=>WC,_9s:()=>Af,_q3:()=>i_,aKT:()=>Vf,aNF:()=>oh,abz:()=>r0,bIt:()=>b9,bMT:()=>gv,bVm:()=>sp,bc$:()=>Dg,bkB:()=>vu,c1b:()=>Z8,cWb:()=>_6,czy:()=>cf,e01:()=>hh,e5t:()=>b6,eBV:()=>au,eq3:()=>dv,eu8:()=>m9,gRc:()=>fA,gXe:()=>ti,giA:()=>Gv,h9k:()=>Bm,hnV:()=>Ew,iLQ:()=>d5,j41:()=>V8,jDH:()=>zt,jNT:()=>v9,joV:()=>Rc,k0s:()=>Wf,kS0:()=>fo,kdw:()=>Ta,l4e:()=>Ux,lJ4:()=>jx,lNU:()=>Be,l_i:()=>Fx,lsd:()=>lw,mGM:()=>aw,mq5:()=>B8,n$t:()=>E6,nI1:()=>Xx,nKC:()=>ni,naY:()=>uA,npT:()=>Um,nrm:()=>p9,o8S:()=>ph,osQ:()=>fg,pJN:()=>o4,plB:()=>r5,qSk:()=>Ou,qex:()=>A8,rOR:()=>Y8,rXU:()=>Lf,rcV:()=>ju,sFG:()=>N6,sMw:()=>fv,sZ2:()=>e8,sdS:()=>gC,tSv:()=>we,uvJ:()=>l2,vPA:()=>sd,w6W:()=>NT,wOt:()=>he,wni:()=>Ev,xGo:()=>tr,xc7:()=>E9,xe9:()=>c5,zJS:()=>hv,zZn:()=>P2,zcH:()=>yd,ziG:()=>Bx,zjR:()=>_9,zvX:()=>N9,zw6:()=>F1});var g=F(6104),o=F(2029),V=F(9406),oe=F(2489),De=F(5981),pe=F(756),Ee=F(7782),be=F(2831),ge=F(3793);function Te(c){for(let l in c)if(c[l]===Te)return l;throw Error("Could not find renamed property on target object.")}function Ve(c,l){for(const f in l)l.hasOwnProperty(f)&&!c.hasOwnProperty(f)&&(c[f]=l[f])}function ze(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(ze).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return`${c.overriddenName}`;if(c.name)return`${c.name}`;const l=c.toString();if(null==l)return""+l;const f=l.indexOf("\n");return-1===f?l:l.substring(0,f)}function vt(c,l){return null==c||""===c?null===l?"":l:null==l||""===l?c:c+" "+l}const Re=Te({__forward_ref__:Te});function tt(c){return c.__forward_ref__=tt,c.toString=function(){return ze(this())},c}function de(c){return Fe(c)?c():c}function Fe(c){return"function"==typeof c&&c.hasOwnProperty(Re)&&c.__forward_ref__===tt}function _t(c){return c&&!!c.\u0275providers}const Be="https://g.co/ng/security#xss";class he extends Error{constructor(l,f){super(function He(c,l){return`NG0${Math.abs(c)}${l?": "+l:""}`}(l,f)),this.code=l}}function Se(c){return"string"==typeof c?c:null==c?"":String(c)}function wn(c,l){throw new he(-201,!1)}function Ze(c,l){null==c&&function H(c,l,f,v){throw new Error(`ASSERTION ERROR: ${c}`+(null==v?"":` [Expected=> ${f} ${v} ${l} <=Actual]`))}(l,c,null,"!=")}function zt(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}function xt(c){return{providers:c.providers||[],imports:c.imports||[]}}function Gt(c){return In(c,ci)||In(c,Tr)}function xn(c){return null!==Gt(c)}function In(c,l){return c.hasOwnProperty(l)?c[l]:null}function or(c){return c&&(c.hasOwnProperty(Dr)||c.hasOwnProperty(cn))?c[Dr]:null}const ci=Te({\u0275prov:Te}),Dr=Te({\u0275inj:Te}),Tr=Te({ngInjectableDef:Te}),cn=Te({ngInjectorDef:Te});var On=function(c){return c[c.Default=0]="Default",c[c.Host=1]="Host",c[c.Self=2]="Self",c[c.SkipSelf=4]="SkipSelf",c[c.Optional=8]="Optional",c}(On||{});let Qn;function fi(){return Qn}function qe(c){const l=Qn;return Qn=c,l}function Mt(c,l,f){const v=Gt(c);return v&&"root"==v.providedIn?void 0===v.value?v.value=v.factory():v.value:f&On.Optional?null:void 0!==l?l:void wn(ze(c))}const hn=globalThis;class ni{constructor(l,f){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof f?this.__NG_ELEMENT_ID__=f:void 0!==f&&(this.\u0275prov=zt({token:this,providedIn:f.providedIn||"root",factory:f.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ss={},io="__NG_DI_FLAG__",Wo="ngTempTokenPath",jn=/\n/gm,It="__source";let Jt;function yt(c){const l=Jt;return Jt=c,l}function ft(c,l=On.Default){if(void 0===Jt)throw new he(-203,!1);return null===Jt?Mt(c,void 0,l):Jt.get(c,l&On.Optional?null:void 0,l)}function Pt(c,l=On.Default){return(fi()||ft)(de(c),l)}function pn(c,l=On.Default){return Pt(c,Di(l))}function Di(c){return typeof c>"u"||"number"==typeof c?c:0|(c.optional&&8)|(c.host&&1)|(c.self&&2)|(c.skipSelf&&4)}function nr(c){const l=[];for(let f=0;fl){L=k-1;break}}}for(;kk?"":C[St+1].toLowerCase();const Sn=8&v?ln:null;if(Sn&&-1!==is(Sn,_e,0)||2&v&&_e!==ln){if(ws(v))return!1;L=!0}}}}else{if(!L&&!ws(v)&&!ws(Q))return!1;if(L&&ws(Q))continue;L=!1,v=Q|1&v}}return ws(v)||L}function ws(c){return 0==(1&c)}function La(c,l,f,v){if(null===l)return-1;let C=0;if(v||!f){let k=!1;for(;C-1)for(f++;f0?'="'+U+'"':"")+"]"}else 8&v?C+="."+L:4&v&&(C+=" "+L);else""!==C&&!ws(L)&&(l+=na(k,C),C=""),v=L,k=k||!ws(v);f++}return""!==C&&(l+=na(k,C)),l}function go(c){return qn(()=>{const l=Ya(c),f={...l,decls:c.decls,vars:c.vars,template:c.template,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,onPush:c.changeDetection===pi.OnPush,directiveDefs:null,pipeDefs:null,dependencies:l.standalone&&c.dependencies||null,getStandaloneInjector:null,signals:c.signals??!1,data:c.data||{},encapsulation:c.encapsulation||ti.Emulated,styles:c.styles||ii,_:null,schemas:c.schemas||null,tView:null,id:""};za(f);const v=c.dependencies;return f.directiveDefs=qs(v,!1),f.pipeDefs=qs(v,!0),f.id=function il(c){let l=0;const f=[c.selectors,c.ngContentSelectors,c.hostVars,c.hostAttrs,c.consts,c.vars,c.decls,c.encapsulation,c.standalone,c.signals,c.exportAs,JSON.stringify(c.inputs),JSON.stringify(c.outputs),Object.getOwnPropertyNames(c.type.prototype),!!c.contentQueries,!!c.viewQuery].join("|");for(const C of f)l=Math.imul(31,l)+C.charCodeAt(0)<<0;return l+=2147483648,"c"+l}(f),f})}function Ws(c){return Xr(c)||Br(c)}function tl(c){return null!==c}function As(c){return qn(()=>({type:c.type,bootstrap:c.bootstrap||ii,declarations:c.declarations||ii,imports:c.imports||ii,exports:c.exports||ii,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null}))}function nl(c,l){if(null==c)return Ni;const f={};for(const v in c)if(c.hasOwnProperty(v)){let C=c[v],k=C;Array.isArray(C)&&(k=C[1],C=C[0]),f[C]=v,l&&(l[C]=k)}return f}function Ka(c){return qn(()=>{const l=Ya(c);return za(l),l})}function hc(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,standalone:!0===c.standalone,onDestroy:c.type.prototype.ngOnDestroy||null}}function Xr(c){return c[lr]||null}function Br(c){return c[Gr]||null}function fr(c){return c[xs]||null}function Ao(c){const l=Xr(c)||Br(c)||fr(c);return null!==l&&l.standalone}function ca(c,l){const f=c[ks]||null;if(!f&&!0===l)throw new Error(`Type ${ze(c)} does not have '\u0275mod' property.`);return f}function Ya(c){const l={};return{type:c.type,providersResolver:null,factory:null,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:l,inputTransforms:null,inputConfig:c.inputs||Ni,exportAs:c.exportAs||null,standalone:!0===c.standalone,signals:!0===c.signals,selectors:c.selectors||ii,viewQuery:c.viewQuery||null,features:c.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:nl(c.inputs,l),outputs:nl(c.outputs)}}function za(c){c.features?.forEach(l=>l(c))}function qs(c,l){if(!c)return null;const f=l?fr:Ws;return()=>("function"==typeof c?c():c).map(v=>f(v)).filter(tl)}const Wr=0,yi=1,Kn=2,ar=3,Sa=4,Mo=5,ns=6,ka=7,Is=8,wc=9,Es=10,ur=11,rr=12,ml=13,Lc=14,Qs=15,la=16,Js=17,ua=18,da=19,gl=20,No=21,ia=22,zc=23,Hl=24,rs=25,Ll=1,Wc=2,Lr=7,Ra=9,Ea=11;function Na(c){return Array.isArray(c)&&"object"==typeof c[Ll]}function vs(c){return Array.isArray(c)&&!0===c[Ll]}function Ja(c){return 0!=(4&c.flags)}function pc(c){return c.componentOffset>-1}function zl(c){return 1==(1&c.flags)}function co(c){return!!c.template}function vl(c){return 0!=(512&c[Kn])}function So(c,l){return c.hasOwnProperty(Vr)?c[Vr]:null}const Pa=Symbol("SIGNAL");function ja(c,l){return(null===c||"object"!=typeof c)&&Object.is(c,l)}let Os=null,rl=!1;function ba(c){const l=Os;return Os=c,l}const Mc={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function xu(c){if(rl)throw new Error("");if(null===Os)return;const l=Os.nextProducerIndex++;sl(Os),lc.nextProducerIndex;)c.producerNode.pop(),c.producerLastReadVersion.pop(),c.producerIndexOfThis.pop()}}function u1(c){sl(c);for(let l=0;l0}function sl(c){c.producerNode??=[],c.producerIndexOfThis??=[],c.producerLastReadVersion??=[]}function Su(c){c.liveConsumerNode??=[],c.liveConsumerIndexOfThis??=[]}function d1(c,l){const f=Object.create(C1);f.computation=c,l?.equal&&(f.equal=l.equal);const v=()=>{if(wu(f),xu(f),f.value===tu)throw f.error;return f.value};return v[Pa]=f,v}const ku=Symbol("UNSET"),bl=Symbol("COMPUTING"),tu=Symbol("ERRORED"),C1=(()=>({...Mc,value:ku,dirty:!0,error:null,equal:ja,producerMustRecompute:c=>c.value===ku||c.value===bl,producerRecomputeValue(c){if(c.value===bl)throw new Error("Detected cycle in computations.");const l=c.value;c.value=bl;const f=fa(c);let v;try{v=c.computation()}catch(C){v=tu,c.error=C}finally{e2(c,f)}l!==ku&&l!==tu&&v!==tu&&c.equal(l,v)?c.value=l:(c.value=v,c.version++)}}))();let nu=function Sc(){throw new Error};function Eu(){nu()}let iu=null;function sd(c,l){const f=Object.create(od);function v(){return xu(f),f.value}return f.value=c,l?.equal&&(f.equal=l.equal),v.set=Pe,v.update=le,v.mutate=Ie,v.asReadonly=Ot,v[Pa]=f,v}const od=(()=>({...Mc,equal:ja,readonlyFn:void 0}))();function X(c){c.version++,Mu(c),iu?.()}function Pe(c){const l=this[Pa];Rl()||Eu(),l.equal(l.value,c)||(l.value=c,X(l))}function le(c){Rl()||Eu(),Pe.call(this,c(this[Pa].value))}function Ie(c){const l=this[Pa];Rl()||Eu(),c(l.value),X(l)}function Ot(){const c=this[Pa];if(void 0===c.readonlyFn){const l=()=>this();l[Pa]=c,c.readonlyFn=l}return c.readonlyFn}function bn(c){const l=ba(null);try{return c()}finally{ba(l)}}const Oi=()=>{},lo=(()=>({...Mc,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:c=>{c.schedule(c.ref)},hasRun:!1,cleanupFn:Oi}))();class Ds{constructor(l,f,v){this.previousValue=l,this.currentValue=f,this.firstChange=v}isFirstChange(){return this.firstChange}}function xr(){return ko}function ko(c){return c.type.prototype.ngOnChanges&&(c.setInput=ha),ms}function ms(){const c=mc(this),l=c?.current;if(l){const f=c.previous;if(f===Ni)c.previous=l;else for(let v in l)f[v]=l[v];c.current=null,this.ngOnChanges(l)}}function ha(c,l,f,v){const C=this.declaredInputs[f],k=mc(c)||function kc(c,l){return c[Fa]=l}(c,{previous:Ni,current:null}),L=k.current||(k.current={}),U=k.previous,Q=U[C];L[C]=new Ds(Q&&Q.currentValue,l,U===Ni),c[v]=l}xr.ngInherit=!0;const Fa="__ngSimpleChanges__";function mc(c){return c[Fa]||null}const oc=function(c,l,f){},yl="svg";function $o(c){for(;Array.isArray(c);)c=c[Wr];return c}function ot(c,l){return $o(l[c])}function gc(c,l){return $o(l[c.index])}function R1(c,l){return c.data[l]}function k2(c,l){return c[l]}function cc(c,l){const f=l[c];return Na(f)?f:f[Wr]}function qc(c,l){return null==l?null:c[l]}function ru(c){c[Js]=0}function Wd(c){1024&c[Kn]||(c[Kn]|=1024,Nl(c,1))}function n2(c){1024&c[Kn]&&(c[Kn]&=-1025,Nl(c,-1))}function Nl(c,l){let f=c[ar];if(null===f)return;f[Mo]+=l;let v=f;for(f=f[ar];null!==f&&(1===l&&1===v[Mo]||-1===l&&0===v[Mo]);)f[Mo]+=l,v=f,f=f[ar]}function su(c,l){if(256==(256&c[Kn]))throw new he(911,!1);null===c[No]&&(c[No]=[]),c[No].push(l)}const Zr={lFrame:ls(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cd(){return Zr.bindingsEnabled}function E2(){return null!==Zr.skipHydrationRootTNode}function li(){return Zr.lFrame.lView}function Fs(){return Zr.lFrame.tView}function au(c){return Zr.lFrame.contextLView=c,c[Is]}function ld(c){return Zr.lFrame.contextLView=null,c}function Ec(){let c=w1();for(;null!==c&&64===c.type;)c=c.parent;return c}function w1(){return Zr.lFrame.currentTNode}function ol(c,l){const f=Zr.lFrame;f.currentTNode=c,f.isParent=l}function T2(){return Zr.lFrame.isParent}function V2(){Zr.lFrame.isParent=!1}function j(){const c=Zr.lFrame;let l=c.bindingRootIndex;return-1===l&&(l=c.bindingRootIndex=c.tView.bindingStartIndex),l}function ve(){return Zr.lFrame.bindingIndex++}function Xe(c){const l=Zr.lFrame,f=l.bindingIndex;return l.bindingIndex=l.bindingIndex+c,f}function B(c,l){const f=Zr.lFrame;f.bindingIndex=f.bindingRootIndex=c,q(l)}function q(c){Zr.lFrame.currentDirectiveIndex=c}function ae(c){const l=Zr.lFrame.currentDirectiveIndex;return-1===l?null:c[l]}function Ne(){return Zr.lFrame.currentQueryIndex}function bt(c){Zr.lFrame.currentQueryIndex=c}function an(c){const l=c[yi];return 2===l.type?l.declTNode:1===l.type?c[ns]:null}function un(c,l,f){if(f&On.SkipSelf){let C=l,k=c;for(;!(C=C.parent,null!==C||f&On.Host||(C=an(k),null===C||(k=k[Lc],10&C.type))););if(null===C)return!1;l=C,c=k}const v=Zr.lFrame=Ji();return v.currentTNode=l,v.lView=c,!0}function Ci(c){const l=Ji(),f=c[yi];Zr.lFrame=l,l.currentTNode=f.firstChild,l.lView=c,l.tView=f,l.contextLView=c,l.bindingIndex=f.bindingStartIndex,l.inI18n=!1}function Ji(){const c=Zr.lFrame,l=null===c?null:c.child;return null===l?ls(c):l}function ls(c){const l={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:c,child:null,inI18n:!1};return null!==c&&(c.child=l),l}function Ar(){const c=Zr.lFrame;return Zr.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}const Po=Ar;function al(){const c=Ar();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function Io(){return Zr.lFrame.selectedIndex}function vc(c){Zr.lFrame.selectedIndex=c}function bo(){const c=Zr.lFrame;return R1(c.tView,c.selectedIndex)}function Ou(){Zr.lFrame.currentNamespace=yl}function Rc(){!function D4(){Zr.lFrame.currentNamespace=null}()}let er=!0;function wr(){return er}function Mr(c){er=c}function Ba(c,l){for(let f=l.directiveStart,v=l.directiveEnd;f=v)break}else l[Q]<0&&(c[Js]+=65536),(U>13>16&&(3&c[Kn])===l&&(c[Kn]+=8192,Xd(U,k)):Xd(U,k)}const $a=-1;class jl{constructor(l,f,v){this.factory=l,this.resolving=!1,this.canSeeViewProviders=f,this.injectImpl=v}}function z3(c){return c!==$a}function dd(c){return 32767&c}function Lu(c,l){let f=function qh(c){return c>>16}(c),v=l;for(;f>0;)v=v[Lc],f--;return v}let Yd=!0;function fd(c){const l=Yd;return Yd=c,l}const R3=255,G0=5;let A2=0;const r2={};function Qd(c,l){const f=uu(c,l);if(-1!==f)return f;const v=l[yi];v.firstCreatePass&&(c.injectorIndex=l.length,hd(v.data,c),hd(l,null),hd(v.blueprint,null));const C=N3(c,l),k=c.injectorIndex;if(z3(C)){const L=dd(C),U=Lu(C,l),Q=U[yi].data;for(let _e=0;_e<8;_e++)l[k+_e]=U[L+_e]|Q[L+_e]}return l[k+8]=C,k}function hd(c,l){c.push(0,0,0,0,0,0,0,0,l)}function uu(c,l){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===l[c.injectorIndex+8]?-1:c.injectorIndex}function N3(c,l){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;let f=0,v=null,C=l;for(;null!==C;){if(v=Eo(C),null===v)return $a;if(f++,C=C[Lc],-1!==v.injectorIndex)return v.injectorIndex|f<<16}return $a}function Yl(c,l,f){!function zu(c,l,f){let v;"string"==typeof f?v=f.charCodeAt(0)||0:f.hasOwnProperty(Gs)&&(v=f[Gs]),null==v&&(v=f[Gs]=A2++);const C=v&R3;l.data[c+(C>>G0)]|=1<=0?l&R3:Zi:l}(f);if("function"==typeof k){if(!un(l,c,v))return v&On.Host?om(C,0,v):W0(l,f,v,C);try{let L;if(L=k(v),null!=L||v&On.Optional)return L;wn()}finally{Po()}}else if("number"==typeof k){let L=null,U=uu(c,l),Q=$a,_e=v&On.Host?l[Qs][ns]:null;for((-1===U||v&On.SkipSelf)&&(Q=-1===U?N3(c,l):l[U+8],Q!==$a&&Qe(v,!1)?(L=l[yi],U=dd(Q),l=Lu(Q,l)):U=-1);-1!==U;){const We=l[yi];if(Z(k,U,We.data)){const St=Le(U,l,f,L,v,_e);if(St!==r2)return St}Q=l[U+8],Q!==$a&&Qe(v,l[yi].data[U+8]===_e)&&Z(k,U,l)?(L=We,U=dd(Q),l=Lu(Q,l)):U=-1}}return C}function Le(c,l,f,v,C,k){const L=l[yi],U=L.data[c+8],We=p(U,L,f,null==v?pc(U)&&Yd:v!=L&&0!=(3&U.type),C&On.Host&&k===U);return null!==We?w(l,L,We,U):r2}function p(c,l,f,v,C){const k=c.providerIndexes,L=l.data,U=1048575&k,Q=c.directiveStart,We=k>>20,ln=C?U+We:c.directiveEnd;for(let Sn=v?U:U+We;Sn=Q&&Jn.type===f)return Sn}if(C){const Sn=L[Q];if(Sn&&co(Sn)&&Sn.type===f)return Q}return null}function w(c,l,f,v){let C=c[f];const k=l.data;if(function Kl(c){return c instanceof jl}(C)){const L=C;L.resolving&&function dt(c,l){const f=l?`. Dependency path: ${l.join(" > ")} > ${c}`:"";throw new he(-200,`Circular dependency in DI detected for ${c}${f}`)}(function it(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():Se(c)}(k[f]));const U=fd(L.canSeeViewProviders);L.resolving=!0;const _e=L.injectImpl?qe(L.injectImpl):null;un(c,v,On.Default);try{C=c[f]=L.factory(void 0,k,c,v),l.firstCreatePass&&f>=v.directiveStart&&function yo(c,l,f){const{ngOnChanges:v,ngOnInit:C,ngDoCheck:k}=l.type.prototype;if(v){const L=ko(l);(f.preOrderHooks??=[]).push(c,L),(f.preOrderCheckHooks??=[]).push(c,L)}C&&(f.preOrderHooks??=[]).push(0-c,C),k&&((f.preOrderHooks??=[]).push(c,k),(f.preOrderCheckHooks??=[]).push(c,k))}(f,k[f],l)}finally{null!==_e&&qe(_e),fd(U),L.resolving=!1,Po()}}return C}function Z(c,l,f){return!!(f[l+(c>>G0)]&1<{const l=c.prototype.constructor,f=l[Vr]||fs(l),v=Object.prototype;let C=Object.getPrototypeOf(c.prototype).constructor;for(;C&&C!==v;){const k=C[Vr]||fs(C);if(k&&k!==f)return k;C=Object.getPrototypeOf(C)}return k=>new k})}function fs(c){return Fe(c)?()=>{const l=fs(de(c));return l&&l()}:So(c)}function Eo(c){const l=c[yi],f=l.type;return 2===f?l.declTNode:1===f?c[ns]:null}function fo(c){return function sm(c,l){if("class"===l)return c.classes;if("style"===l)return c.styles;const f=c.attrs;if(f){const v=f.length;let C=0;for(;C{const v=function ec(c){return function(...f){if(c){const v=c(...f);for(const C in v)this[C]=v[C]}}}(l);function C(...k){if(this instanceof C)return v.apply(this,k),this;const L=new C(...k);return U.annotation=L,U;function U(Q,_e,We){const St=Q.hasOwnProperty(Do)?Q[Do]:Object.defineProperty(Q,Do,{value:[]})[Do];for(;St.length<=We;)St.push(null);return(St[We]=St[We]||[]).push(L),Q}}return f&&(C.prototype=Object.create(f.prototype)),C.prototype.ngMetadataName=c,C.annotationCls=C,C})}function Ru(c,l){c.forEach(f=>Array.isArray(f)?Ru(f,l):l(f))}function Yh(c,l,f){l>=c.length?c.push(f):c.splice(l,0,f)}function X0(c,l){return l>=c.length-1?c.pop():c.splice(l,1)[0]}function K0(c,l){const f=[];for(let v=0;v=0?c[1|v]=f:(v=~v,function Y0(c,l,f,v){let C=c.length;if(C==l)c.push(f,v);else if(1===C)c.push(v,c[0]),c[0]=f;else{for(C--,c.push(c[C-1],c[C]);C>l;)c[C]=c[C-2],C--;c[l]=f,c[l+1]=v}}(c,v,l,f)),v}function Qh(c,l){const f=P3(c,l);if(f>=0)return c[1|f]}function P3(c,l){return function A7(c,l,f){let v=0,C=c.length>>f;for(;C!==v;){const k=v+(C-v>>1),L=c[k<l?C=k:v=k+1}return~(C<|^->||--!>|)/g,_m="\u200b$1\u200b";const lf=new Map;let e4=0;const md="__ngContext__";function Ql(c,l){Na(l)?(c[md]=l[da],function ym(c){lf.set(c[da],c)}(l)):c[md]=l}let Mm;function Sm(c,l){return Mm(c,l)}function df(c){const l=c[ar];return vs(l)?l[ar]:l}function km(c){return Em(c[rr])}function a6(c){return Em(c[Sa])}function Em(c){for(;null!==c&&!vs(c);)c=c[Sa];return c}function H2(c,l,f,v,C){if(null!=v){let k,L=!1;vs(v)?k=v:Na(v)&&(L=!0,v=v[Wr]);const U=$o(v);0===c&&null!==f?null==C?Tm(l,f,U):du(l,f,U,C||null,!0):1===c&&null!==f?du(l,f,U,C||null,!0):2===c?function h6(c,l,f){const v=U3(c,l);v&&function $3(c,l,f,v){c.removeChild(l,f,v)}(c,v,l,f)}(l,U,L):3===c&&l.destroyNode(U),null!=k&&function og(c,l,f,v,C){const k=f[Lr];k!==$o(f)&&H2(l,c,v,k,C);for(let U=Ea;Ul.replace(n6,_m))}(l))}function ff(c,l,f){return c.createElement(l,f)}function Z7(c,l){const f=c[Ra],v=f.indexOf(l);n2(l),f.splice(v,1)}function B3(c,l){if(c.length<=Ea)return;const f=Ea+l,v=c[f];if(v){const C=v[la];null!==C&&C!==c&&Z7(C,v),l>0&&(c[f-1][Sa]=v[Sa]);const k=X0(c,Ea+l);!function K7(c,l){L2(c,l,l[ur],2,null,null),l[Wr]=null,l[ns]=null}(v[yi],v);const L=k[ua];null!==L&&L.detachView(k[yi]),v[ar]=null,v[Sa]=null,v[Kn]&=-129}return v}function hf(c,l){if(!(256&l[Kn])){const f=l[ur];l[zc]&&z1(l[zc]),l[Hl]&&z1(l[Hl]),f.destroyNode&&L2(c,l,f,3,null,null),function J7(c){let l=c[rr];if(!l)return l6(c[yi],c);for(;l;){let f=null;if(Na(l))f=l[rr];else{const v=l[Ea];v&&(f=v)}if(!f){for(;l&&!l[Sa]&&l!==c;)Na(l)&&l6(l[yi],l),l=l[ar];null===l&&(l=c),Na(l)&&l6(l[yi],l),f=l&&l[Sa]}l=f}}(l)}}function l6(c,l){if(!(256&l[Kn])){l[Kn]&=-129,l[Kn]|=256,function tg(c,l){let f;if(null!=c&&null!=(f=c.destroyHooks))for(let v=0;v=0?v[L]():v[-L].unsubscribe(),k+=2}else f[k].call(v[f[k+1]]);null!==v&&(l[ka]=null);const C=l[No];if(null!==C){l[No]=null;for(let k=0;k-1){const{encapsulation:k}=c.data[v.directiveStart+C];if(k===ti.None||k===ti.Emulated)return null}return gc(v,f)}}(c,l.parent,f)}function du(c,l,f,v,C){c.insertBefore(l,f,v,C)}function Tm(c,l,f){c.appendChild(l,f)}function d6(c,l,f,v,C){null!==v?du(c,l,f,v,C):Tm(c,l,f)}function U3(c,l){return c.parentNode(l)}function Vm(c,l,f){return ig(c,l,f)}let pf,p6,pu,G3,ig=function Am(c,l,f){return 40&c.type?gc(c,f):null};function jo(c,l,f,v){const C=u6(c,v,l),k=l[ur],U=Vm(v.parent||l[ns],v,l);if(null!=C)if(Array.isArray(f))for(let Q=0;Qc,createScript:c=>c,createScriptURL:c=>c})}catch{}return p6}()?.createHTML(c)||c}function Lm(c){pu=c}function N4(){if(void 0!==pu)return pu;if(typeof document<"u")return document;throw new he(210,!1)}function P4(){if(void 0===G3&&(G3=null,hn.trustedTypes))try{G3=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch{}return G3}function zm(c){return P4()?.createHTML(c)||c}function v6(c){return P4()?.createScriptURL(c)||c}class gd{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Be})`}}class Rm extends gd{getTypeName(){return"HTML"}}class cg extends gd{getTypeName(){return"Style"}}class lg extends gd{getTypeName(){return"Script"}}class j4 extends gd{getTypeName(){return"URL"}}class ug extends gd{getTypeName(){return"ResourceURL"}}function ju(c){return c instanceof gd?c.changingThisBreaksApplicationSecurity:c}function F4(c,l){const f=function B4(c){return c instanceof gd&&c.getTypeName()||null}(c);if(null!=f&&f!==l){if("ResourceURL"===f&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${f} (see ${Be})`)}return f===l}function Nm(c){return new Rm(c)}function _6(c){return new cg(c)}function dg(c){return new lg(c)}function fg(c){return new j4(c)}function b6(c){return new ug(c)}class hg{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const f=(new window.DOMParser).parseFromString(R4(l),"text/html").body;return null===f?this.inertDocumentHelper.getInertBodyElement(l):(f.removeChild(f.firstChild),f)}catch{return null}}}class y6{constructor(l){this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(l){const f=this.inertDocument.createElement("template");return f.innerHTML=R4(l),f}}const pg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function W3(c){return(c=String(c)).match(pg)?c:"unsafe:"+c}function c2(c){const l={};for(const f of c.split(","))l[f]=!0;return l}function $4(...c){const l={};for(const f of c)for(const v in f)f.hasOwnProperty(v)&&(l[v]=!0);return l}const x6=c2("area,br,col,hr,img,wbr"),q3=c2("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),jm=c2("rp,rt"),Fu=$4(x6,$4(q3,c2("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),$4(jm,c2("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),$4(jm,q3)),w6=c2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),gf=$4(w6,c2("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),c2("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),gg=c2("script,style,template");class vg{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(l){let f=l.firstChild,v=!0;for(;f;)if(f.nodeType===Node.ELEMENT_NODE?v=this.startElement(f):f.nodeType===Node.TEXT_NODE?this.chars(f.nodeValue):this.sanitizedSomething=!0,v&&f.firstChild)f=f.firstChild;else for(;f;){f.nodeType===Node.ELEMENT_NODE&&this.endElement(f);let C=this.checkClobberedElement(f,f.nextSibling);if(C){f=C;break}f=this.checkClobberedElement(f,f.parentNode)}return this.buf.join("")}startElement(l){const f=l.nodeName.toLowerCase();if(!Fu.hasOwnProperty(f))return this.sanitizedSomething=!0,!gg.hasOwnProperty(f);this.buf.push("<"),this.buf.push(f);const v=l.attributes;for(let C=0;C"),!0}endElement(l){const f=l.nodeName.toLowerCase();Fu.hasOwnProperty(f)&&!x6.hasOwnProperty(f)&&(this.buf.push(""))}chars(l){this.buf.push(Fm(l))}checkClobberedElement(l,f){if(f&&(l.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return f}}const _g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bg=/([^\#-~ |!])/g;function Fm(c){return c.replace(/&/g,"&").replace(_g,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(bg,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let Bu;function Bm(c,l){let f=null;try{Bu=Bu||function Pm(c){const l=new y6(c);return function C6(){try{return!!(new window.DOMParser).parseFromString(R4(""),"text/html")}catch{return!1}}()?new hg(l):l}(c);let v=l?String(l):"";f=Bu.getInertBodyElement(v);let C=5,k=v;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,v=k,k=f.innerHTML,f=Bu.getInertBodyElement(v)}while(v!==k);return R4((new vg).sanitizeChildren(vf(f)||f))}finally{if(f){const v=vf(f)||f;for(;v.firstChild;)v.removeChild(v.firstChild)}}}function vf(c){return"content"in c&&function $m(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}var s4=function(c){return c[c.NONE=0]="NONE",c[c.HTML=1]="HTML",c[c.STYLE=2]="STYLE",c[c.SCRIPT=3]="SCRIPT",c[c.URL=4]="URL",c[c.RESOURCE_URL=5]="RESOURCE_URL",c}(s4||{});function Um(c){const l=X3();return l?zm(l.sanitize(s4.HTML,c)||""):F4(c,"HTML")?zm(ju(c)):Bm(N4(),Se(c))}function Gm(c){const l=X3();return l?l.sanitize(s4.URL,c)||"":F4(c,"URL")?ju(c):W3(Se(c))}function Wm(c){const l=X3();if(l)return v6(l.sanitize(s4.RESOURCE_URL,c)||"");if(F4(c,"ResourceURL"))return v6(ju(c));throw new he(904,!1)}function E6(c,l,f){return function yg(c,l){return"src"===l&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===l&&("base"===c||"link"===c)?Wm:Gm}(l,f)(c)}function X3(){const c=li();return c&&c[Es].sanitizer}const U4=new ni("ENVIRONMENT_INITIALIZER"),D6=new ni("INJECTOR",-1),Xm=new ni("INJECTOR_DEF_TYPES");class T6{get(l,f=Ss){if(f===Ss){const v=new Error(`NullInjectorError: No provider for ${ze(l)}!`);throw v.name="NullInjectorError",v}return f}}function V6(c){return{\u0275providers:c}}function wg(...c){return{\u0275providers:Km(0,c),\u0275fromNgModule:!0}}function Km(c,...l){const f=[],v=new Set;let C;const k=L=>{f.push(L)};return Ru(l,L=>{const U=L;_f(U,k,[],v)&&(C||=[],C.push(U))}),void 0!==C&&Ym(C,k),f}function Ym(c,l){for(let f=0;f{l(k,v)})}}function _f(c,l,f,v){if(!(c=de(c)))return!1;let C=null,k=or(c);const L=!k&&Xr(c);if(k||L){if(L&&!L.standalone)return!1;C=c}else{const Q=c.ngModule;if(k=or(Q),!k)return!1;C=Q}const U=v.has(C);if(L){if(U)return!1;if(v.add(C),L.dependencies){const Q="function"==typeof L.dependencies?L.dependencies():L.dependencies;for(const _e of Q)_f(_e,l,f,v)}}else{if(!k)return!1;{if(null!=k.imports&&!U){let _e;v.add(C);try{Ru(k.imports,We=>{_f(We,l,f,v)&&(_e||=[],_e.push(We))})}finally{}void 0!==_e&&Ym(_e,l)}if(!U){const _e=So(C)||(()=>new C);l({provide:C,useFactory:_e,deps:ii},C),l({provide:Xm,useValue:C,multi:!0},C),l({provide:U4,useValue:()=>Pt(C),multi:!0},C)}const Q=k.providers;if(null!=Q&&!U){const _e=c;Qm(Q,We=>{l(We,_e)})}}}return C!==c&&void 0!==c.providers}function Qm(c,l){for(let f of c)_t(f)&&(f=f.\u0275providers),Array.isArray(f)?Qm(f,l):l(f)}const Mg=Te({provide:String,useValue:Te});function Jm(c){return null!==c&&"object"==typeof c&&Mg in c}function R2(c){return"function"==typeof c}const W4=new ni("Set Injector scope."),N2={},q4={};let vd;function X4(){return void 0===vd&&(vd=new T6),vd}class l2{}class _d extends l2{get destroyed(){return this._destroyed}constructor(l,f,v,C){super(),this.parent=f,this.source=v,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yf(l,L=>this.processProvider(L)),this.records.set(D6,j1(void 0,this)),C.has("environment")&&this.records.set(l2,j1(void 0,this));const k=this.records.get(W4);null!=k&&"string"==typeof k.value&&this.scopes.add(k.value),this.injectorDefTypes=new Set(this.get(Xm.multi,ii,On.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();const l=this._onDestroyHooks;this._onDestroyHooks=[];for(const f of l)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(l){return this.assertNotDestroyed(),this._onDestroyHooks.push(l),()=>this.removeOnDestroy(l)}runInContext(l){this.assertNotDestroyed();const f=yt(this),v=qe(void 0);try{return l()}finally{yt(f),qe(v)}}get(l,f=Ss,v=On.Default){if(this.assertNotDestroyed(),l.hasOwnProperty(Fr))return l[Fr](this);v=Di(v);const k=yt(this),L=qe(void 0);try{if(!(v&On.SkipSelf)){let Q=this.records.get(l);if(void 0===Q){const _e=function I6(c){return"function"==typeof c||"object"==typeof c&&c instanceof ni}(l)&&Gt(l);Q=_e&&this.injectableDefInScope(_e)?j1(K3(l),N2):null,this.records.set(l,Q)}if(null!=Q)return this.hydrate(l,Q)}return(v&On.Self?X4():this.parent).get(l,f=v&On.Optional&&f===Ss?null:f)}catch(U){if("NullInjectorError"===U.name){if((U[Wo]=U[Wo]||[]).unshift(ze(l)),k)throw U;return function Kt(c,l,f,v){const C=c[Wo];throw l[It]&&C.unshift(l[It]),c.message=function Vn(c,l,f,v=null){c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.slice(2):c;let C=ze(l);if(Array.isArray(l))C=l.map(ze).join(" -> ");else if("object"==typeof l){let k=[];for(let L in l)if(l.hasOwnProperty(L)){let U=l[L];k.push(L+":"+("string"==typeof U?JSON.stringify(U):ze(U)))}C=`{${k.join(", ")}}`}return`${f}${v?"("+v+")":""}[${C}]: ${c.replace(jn,"\n ")}`}("\n"+c.message,C,f,v),c.ngTokenPath=C,c[Wo]=null,c}(U,l,"R3InjectorError",this.source)}throw U}finally{qe(L),yt(k)}}resolveInjectorInitializers(){const l=yt(this),f=qe(void 0);try{const C=this.get(U4.multi,ii,On.Self);for(const k of C)k()}finally{yt(l),qe(f)}}toString(){const l=[],f=this.records;for(const v of f.keys())l.push(ze(v));return`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(l){let f=R2(l=de(l))?l:de(l&&l.provide);const v=function Zm(c){return Jm(c)?j1(void 0,c.useValue):j1(Jl(c),N2)}(l);if(R2(l)||!0!==l.multi)this.records.get(f);else{let C=this.records.get(f);C||(C=j1(void 0,N2,!0),C.factory=()=>nr(C.multi),this.records.set(f,C)),f=l,C.multi.push(l)}this.records.set(f,v)}hydrate(l,f){return f.value===N2&&(f.value=q4,f.value=f.factory()),"object"==typeof f.value&&f.value&&function Eg(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(f.value)&&this._ngOnDestroyHooks.add(f.value),f.value}injectableDefInScope(l){if(!l.providedIn)return!1;const f=de(l.providedIn);return"string"==typeof f?"any"===f||this.scopes.has(f):this.injectorDefTypes.has(f)}removeOnDestroy(l){const f=this._onDestroyHooks.indexOf(l);-1!==f&&this._onDestroyHooks.splice(f,1)}}function K3(c){const l=Gt(c),f=null!==l?l.factory:So(c);if(null!==f)return f;if(c instanceof ni)throw new he(204,!1);if(c instanceof Function)return function A6(c){const l=c.length;if(l>0)throw K0(l,"?"),new he(204,!1);const f=function xi(c){return c&&(c[ci]||c[Tr])||null}(c);return null!==f?()=>f.factory(c):()=>new c}(c);throw new he(204,!1)}function Jl(c,l,f){let v;if(R2(c)){const C=de(c);return So(C)||K3(C)}if(Jm(c))v=()=>de(c.useValue);else if(function G4(c){return!(!c||!c.useFactory)}(c))v=()=>c.useFactory(...nr(c.deps||[]));else if(function bf(c){return!(!c||!c.useExisting)}(c))v=()=>Pt(de(c.useExisting));else{const C=de(c&&(c.useClass||c.provide));if(!function kg(c){return!!c.deps}(c))return So(C)||K3(C);v=()=>new C(...nr(c.deps))}return v}function j1(c,l,f=!1){return{factory:c,value:l,multi:f?[]:void 0}}function yf(c,l){for(const f of c)Array.isArray(f)?yf(f,l):f&&_t(f)?yf(f.\u0275providers,l):l(f)}const e8=new ni("AppId",{providedIn:"root",factory:()=>ay}),ay="ng",Y3=new ni("Platform Initializer"),O6=new ni("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Dg=new ni("AnimationModuleType"),H6=new ni("CSP nonce",{providedIn:"root",factory:()=>N4().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function F1(c){return c}function L6(){const c=new o4;return"browser"===pn(O6)&&(c.store=function z6(c,l){const f=c.getElementById(l+"-state");if(f?.textContent)try{return JSON.parse(f.textContent)}catch(v){console.warn("Exception while restoring TransferState for app "+l,v)}return{}}(N4(),pn(e8))),c}let o4=(()=>{class c{constructor(){this.store={},this.onSerializeCallbacks={}}static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:L6});get(f,v){return void 0!==this.store[f]?this.store[f]:v}set(f,v){this.store[f]=v}remove(f){delete this.store[f]}hasKey(f){return this.store.hasOwnProperty(f)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(f,v){this.onSerializeCallbacks[f]=v}toJson(){for(const f in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(f))try{this.store[f]=this.onSerializeCallbacks[f]()}catch(v){console.warn("Exception in onSerialize callback: ",v)}return JSON.stringify(this.store).replace(/null;function Df(c,l,f=!1){return i8(c,l,f)}class dy{}class Vg{}class hy{resolveComponentFactory(l){throw function fy(c){const l=Error(`No component factory found for ${ze(c)}.`);return l.ngComponent=c,l}(l)}}let Q4=(()=>{class c{static#e=this.NULL=new hy}return c})();function py(){return n0(Ec(),li())}function n0(c,l){return new Vf(gc(c,l))}let Vf=(()=>{class c{constructor(f){this.nativeElement=f}static#e=this.__NG_ELEMENT_ID__=py}return c})();function J4(c){return c instanceof Vf?c.nativeElement:c}class Af{}let N6=(()=>{class c{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function gu(){const c=li(),f=cc(Ec().index,c);return(Na(f)?f:c)[ur]}()}return c})(),c8=(()=>{class c{static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:()=>null})}return c})();class l8{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const Ig=new l8("16.2.12"),P6={};function If(c){if(!fi()&&!function Un(){return Jt}())throw new he(-203,!1)}function f8(c,l=null,f=null,v){const C=B6(c,l,f,v);return C.resolveInjectorInitializers(),C}function B6(c,l=null,f=null,v,C=new Set){const k=[f||ii,wg(c)];return v=v||("object"==typeof c?void 0:ze(c)),new _d(k,l||X4(),v||null,C)}let P2=(()=>{class c{static#e=this.THROW_IF_NOT_FOUND=Ss;static#t=this.NULL=new T6;static create(f,v){if(Array.isArray(f))return f8({name:""},v,f,"");{const C=f.name??"";return f8({name:C},f.parent,f.providers,C)}}static#n=this.\u0275prov=zt({token:c,providedIn:"any",factory:()=>Pt(D6)});static#i=this.__NG_ELEMENT_ID__=-1}return c})();function $6(c){return c.ngOriginalError}class yd{constructor(){this._console=console}handleError(l){const f=this._findOriginalError(l);this._console.error("ERROR",l),f&&this._console.error("ORIGINAL ERROR",f)}_findOriginalError(l){let f=l&&$6(l);for(;f&&$6(f);)f=$6(f);return f||null}}let r0=(()=>{class c{static#e=this.__NG_ELEMENT_ID__=Rg;static#t=this.__NG_ENV_ID__=f=>f}return c})();class zg extends r0{constructor(l){super(),this._lView=l}onDestroy(l){return su(this._lView,l),()=>function Vu(c,l){if(null===c[No])return;const f=c[No].indexOf(l);-1!==f&&c[No].splice(f,1)}(this._lView,l)}}function Rg(){return new zg(li())}function U6(c){return l=>{setTimeout(c,void 0,l)}}const vu=class Ng extends g.B{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,f,v){let C=l,k=f||(()=>null),L=v;if(l&&"object"==typeof l){const Q=l;C=Q.next?.bind(Q),k=Q.error?.bind(Q),L=Q.complete?.bind(Q)}this.__isAsync&&(k=U6(k),C&&(C=U6(C)),L&&(L=U6(L)));const U=super.subscribe({next:C,error:k,complete:L});return l instanceof o.yU&&l.add(U),U}};function u4(...c){}class Ml{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:f=!1,shouldCoalesceRunChangeDetection:v=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vu(!1),this.onMicrotaskEmpty=new vu(!1),this.onStable=new vu(!1),this.onError=new vu(!1),typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const C=this;C._nesting=0,C._outer=C._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!v&&f,C.shouldCoalesceRunChangeDetection=v,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function e3(){const c="function"==typeof hn.requestAnimationFrame;let l=hn[c?"requestAnimationFrame":"setTimeout"],f=hn[c?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&l&&f){const v=l[Zone.__symbol__("OriginalDelegate")];v&&(l=v);const C=f[Zone.__symbol__("OriginalDelegate")];C&&(f=C)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function jg(c){const l=()=>{!function Pg(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(hn,()=>{c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{c.lastRequestAnimationFrameId=-1,W6(c),c.isCheckStableRunning=!0,p8(c),c.isCheckStableRunning=!1},void 0,()=>{},()=>{})),c.fakeTopEventTask.invoke()}),W6(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(f,v,C,k,L,U)=>{if(function G(c){return!(!Array.isArray(c)||1!==c.length)&&!0===c[0].data?.__ignore_ng_zone__}(U))return f.invokeTask(C,k,L,U);try{return E(c),f.invokeTask(C,k,L,U)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===k.type||c.shouldCoalesceRunChangeDetection)&&l(),O(c)}},onInvoke:(f,v,C,k,L,U,Q)=>{try{return E(c),f.invoke(C,k,L,U,Q)}finally{c.shouldCoalesceRunChangeDetection&&l(),O(c)}},onHasTask:(f,v,C,k)=>{f.hasTask(C,k),v===C&&("microTask"==k.change?(c._hasPendingMicrotasks=k.microTask,W6(c),p8(c)):"macroTask"==k.change&&(c.hasPendingMacrotasks=k.macroTask))},onHandleError:(f,v,C,k)=>(f.handleError(C,k),c.runOutsideAngular(()=>c.onError.emit(k)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ml.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(Ml.isInAngularZone())throw new he(909,!1)}run(l,f,v){return this._inner.run(l,f,v)}runTask(l,f,v,C){const k=this._inner,L=k.scheduleEventTask("NgZoneEvent: "+C,l,gy,u4,u4);try{return k.runTask(L,f,v)}finally{k.cancelTask(L)}}runGuarded(l,f,v){return this._inner.runGuarded(l,f,v)}runOutsideAngular(l){return this._outer.run(l)}}const gy={};function p8(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(()=>c.onStable.emit(null))}finally{c.isStable=!0}}}function W6(c){c.hasPendingMicrotasks=!!(c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId)}function E(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function O(c){c._nesting--,p8(c)}const b=new ni("",{providedIn:"root",factory:M});function M(){const c=pn(Ml);let l=!0;const f=new V.c(C=>{l=c.isStable&&!c.hasPendingMacrotasks&&!c.hasPendingMicrotasks,c.runOutsideAngular(()=>{C.next(l),C.complete()})}),v=new V.c(C=>{let k;c.runOutsideAngular(()=>{k=c.onStable.subscribe(()=>{Ml.assertNotInAngularZone(),queueMicrotask(()=>{!l&&!c.hasPendingMacrotasks&&!c.hasPendingMicrotasks&&(l=!0,C.next(!0))})})});const L=c.onUnstable.subscribe(()=>{Ml.assertInAngularZone(),l&&(l=!1,c.runOutsideAngular(()=>{C.next(!1)}))});return()=>{k.unsubscribe(),L.unsubscribe()}});return(0,oe.h)(f,v.pipe((0,Ee.u)()))}function we(c){return c.ownerDocument.defaultView}function en(c){return c.ownerDocument}function Ai(c){return c instanceof Function?c():c}let Sl=(()=>{class c{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:()=>new c})}return c})();function j2(c){for(;c;){c[Kn]|=64;const l=df(c);if(vl(c)&&!l)return c;c=l}return null}const _y=new ni("",{providedIn:"root",factory:()=>!1});let g8=null;function $g(c,l){return c[l]??wy()}function Ug(c,l){const f=wy();f.producerNode?.length&&(c[l]=g8,f.lView=c,g8=Gg())}const xy={...Mc,consumerIsAlwaysLive:!0,consumerMarkedDirty:c=>{j2(c.lView)},lView:null};function Gg(){return Object.create(xy)}function wy(){return g8??=Gg(),g8}const Hs={};function My(c){Sy(Fs(),li(),Io()+c,!1)}function Sy(c,l,f,v){if(!v)if(3==(3&l[Kn])){const k=c.preOrderCheckHooks;null!==k&&Xc(l,k,f)}else{const k=c.preOrderHooks;null!==k&&Sr(l,k,0,f)}vc(f)}function Lf(c,l=On.Default){const f=li();return null===f?Pt(c,l):pd(Ec(),f,de(c),l)}function t3(){throw new Error("invalid")}function v8(c,l,f,v,C,k,L,U,Q,_e,We){const St=l.blueprint.slice();return St[Wr]=C,St[Kn]=140|v,(null!==_e||c&&2048&c[Kn])&&(St[Kn]|=2048),ru(St),St[ar]=St[Lc]=c,St[Is]=f,St[Es]=L||c&&c[Es],St[ur]=U||c&&c[ur],St[wc]=Q||c&&c[wc]||null,St[ns]=k,St[da]=function bm(){return e4++}(),St[ia]=We,St[gl]=_e,St[Qs]=2==l.type?c[Qs]:St,St}function zf(c,l,f,v,C){let k=c.data[l];if(null===k)k=function Wg(c,l,f,v,C){const k=w1(),L=T2(),Q=c.data[l]=function EE(c,l,f,v,C,k){let L=l?l.injectorIndex:-1,U=0;return E2()&&(U|=128),{type:f,index:v,insertBeforeIndex:null,injectorIndex:L,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:U,providerIndexes:0,value:C,attrs:k,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:l,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,L?k:k&&k.parent,f,l,v,C);return null===c.firstChild&&(c.firstChild=Q),null!==k&&(L?null==k.child&&null!==Q.parent&&(k.child=Q):null===k.next&&(k.next=Q,Q.prev=k)),Q}(c,l,f,v,C),function Ft(){return Zr.lFrame.inI18n}()&&(k.flags|=32);else if(64&k.type){k.type=f,k.value=v,k.attrs=C;const L=function D2(){const c=Zr.lFrame,l=c.currentTNode;return c.isParent?l:l.parent}();k.injectorIndex=null===L?-1:L.injectorIndex}return ol(k,!0),k}function q6(c,l,f,v){if(0===f)return-1;const C=l.length;for(let k=0;krs&&Sy(c,l,rs,!1),oc(U?2:0,C);const _e=U?k:null,We=fa(_e);try{null!==_e&&(_e.dirty=!1),f(v,C)}finally{e2(_e,We)}}finally{U&&null===l[zc]&&Ug(l,zc),vc(L),oc(U?3:1,C)}}function Rf(c,l,f){if(Ja(l)){const v=ba(null);try{const k=l.directiveEnd;for(let L=l.directiveStart;Lnull;function Yg(c,l,f,v){for(let C in c)if(c.hasOwnProperty(C)){f=null===f?{}:f;const k=c[C];null===v?Ty(f,l,C,k):v.hasOwnProperty(C)&&Ty(f,l,v[C],k)}return f}function Ty(c,l,f,v){c.hasOwnProperty(f)?c[f].push(l,v):c[f]=[l,v]}function F2(c,l,f,v,C,k,L,U){const Q=gc(l,f);let We,_e=l.inputs;!U&&null!=_e&&(We=_e[v])?(n9(c,f,We,v,C),pc(l)&&function VE(c,l){const f=cc(l,c);16&f[Kn]||(f[Kn]|=64)}(f,l.index)):3&l.type&&(v=function TE(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(v),C=null!=L?L(C,l.value||"",v):C,k.setProperty(Q,v,C))}function Qg(c,l,f,v){if(cd()){const C=null===v?null:{"":-1},k=function zE(c,l){const f=c.directiveRegistry;let v=null,C=null;if(f)for(let k=0;k0;){const f=c[--l];if("number"==typeof f&&f<0)return f}return 0})(L)!=U&&L.push(U),L.push(f,v,k)}}(c,l,v,q6(c,f,C.hostVars,Hs),C)}function xd(c,l,f,v,C,k){const L=gc(c,l);!function _8(c,l,f,v,C,k,L){if(null==k)c.removeAttribute(l,C,f);else{const U=null==L?Se(k):L(k,v||"",C);c.setAttribute(l,C,U,f)}}(l[ur],L,k,c.value,f,v,C)}function BE(c,l,f,v,C,k){const L=k[l];if(null!==L)for(let U=0;U{class c{constructor(){this.all=new Set,this.queue=new Map}create(f,v,C){const k=typeof Zone>"u"?null:Zone.current,L=function Pn(c,l,f){const v=Object.create(lo);f&&(v.consumerAllowSignalWrites=!0),v.fn=c,v.schedule=l;const C=L=>{v.cleanupFn=L};return v.ref={notify:()=>M2(v),run:()=>{if(v.dirty=!1,v.hasRun&&!u1(v))return;v.hasRun=!0;const L=fa(v);try{v.cleanupFn(),v.cleanupFn=Oi,v.fn(C)}finally{e2(v,L)}},cleanup:()=>v.cleanupFn()},v.ref}(f,_e=>{this.all.has(_e)&&this.queue.set(_e,k)},C);let U;this.all.add(L),L.notify();const Q=()=>{L.cleanup(),U?.(),this.all.delete(L),this.queue.delete(L)};return U=v?.onDestroy(Q),{destroy:Q}}flush(){if(0!==this.queue.size)for(const[f,v]of this.queue)this.queue.delete(f),v?v.run(()=>f.run()):f.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:()=>new c})}return c})();function Ny(c,l){!l?.injector&&If();const f=l?.injector??pn(P2),v=f.get(Ry),C=!0!==l?.manualCleanup?f.get(r0):null;return v.create(c,C,!!l?.allowSignalWrites)}function K6(c,l,f){let v=f?c.styles:null,C=f?c.classes:null,k=0;if(null!==l)for(let L=0;L0){Fy(c,1);const C=f.components;null!==C&&$y(c,C,1)}}function $y(c,l,f){for(let v=0;v-1&&(B3(l,v),X0(f,v))}this._attachedToViewContainer=!1}hf(this._lView[yi],this._lView)}onDestroy(l){su(this._lView,l)}markForCheck(){j2(this._cdRefInjectingView||this._lView)}detach(){this._lView[Kn]&=-129}reattach(){this._lView[Kn]|=128}detectChanges(){y8(this._lView[yi],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Q7(c,l){L2(c,l,l[ur],2,null,null)}(this._lView[yi],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=l}}class YE extends Q6{constructor(l){super(l),this._view=l}detectChanges(){const l=this._view;y8(l[yi],l,l[Is],!1)}checkNoChanges(){}get context(){return null}}class Uy extends Q4{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const f=Xr(l);return new J6(f,this.ngModule)}}function Gy(c){const l=[];for(let f in c)c.hasOwnProperty(f)&&l.push({propName:c[f],templateName:f});return l}class JE{constructor(l,f){this.injector=l,this.parentInjector=f}get(l,f,v){v=Di(v);const C=this.injector.get(l,P6,v);return C!==P6||f===P6?C:this.parentInjector.get(l,f,v)}}class J6 extends Vg{get inputs(){const l=this.componentDef,f=l.inputTransforms,v=Gy(l.inputs);if(null!==f)for(const C of v)f.hasOwnProperty(C.propName)&&(C.transform=f[C.propName]);return v}get outputs(){return Gy(this.componentDef.outputs)}constructor(l,f){super(),this.componentDef=l,this.ngModule=f,this.componentType=l.type,this.selector=function rc(c){return c.map(Z1).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!f}create(l,f,v,C){let k=(C=C||this.ngModule)instanceof l2?C:C?.injector;k&&null!==this.componentDef.getStandaloneInjector&&(k=this.componentDef.getStandaloneInjector(k)||k);const L=k?new JE(l,k):l,U=L.get(Af,null);if(null===U)throw new he(407,!1);const St={rendererFactory:U,sanitizer:L.get(c8,null),effectManager:L.get(Ry,null),afterRenderEventManager:L.get(Sl,null)},ln=U.createRenderer(null,this.componentDef),Sn=this.componentDef.selectors[0][0]||"div",Jn=v?function wE(c,l,f,v){const k=v.get(_y,!1)||f===ti.ShadowDom,L=c.selectRootElement(l,k);return function ME(c){Kg(c)}(L),L}(ln,v,this.componentDef.encapsulation,L):ff(ln,Sn,function QE(c){const l=c.toLowerCase();return"svg"===l?yl:"math"===l?"math":null}(Sn)),jr=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let _i=null;null!==Jn&&(_i=Df(Jn,L,!0));const _s=Xg(0,null,null,1,0,null,null,null,null,null,null),eo=v8(null,_s,null,jr,null,null,St,ln,L,null,_i);let Va,$1;Ci(eo);try{const m4=this.componentDef;let h0,c_=null;m4.findHostDirectiveDefs?(h0=[],c_=new Map,m4.findHostDirectiveDefs(m4,h0,c_),h0.push(m4)):h0=[m4];const OA=function eD(c,l){const f=c[yi],v=rs;return c[v]=l,zf(f,v,2,"#host",null)}(eo,Jn),pM=function uc(c,l,f,v,C,k,L){const U=C[yi];!function C8(c,l,f,v){for(const C of c)l.mergedAttrs=qo(l.mergedAttrs,C.hostAttrs);null!==l.mergedAttrs&&(K6(l,l.mergedAttrs,!0),null!==f&&Hm(v,f,l))}(v,c,l,L);let Q=null;null!==l&&(Q=Df(l,C[wc]));const _e=k.rendererFactory.createRenderer(l,f);let We=16;f.signals?We=4096:f.onPush&&(We=64);const St=v8(C,Ey(f),null,We,C[c.index],c,k,_e,null,null,Q);return U.firstCreatePass&&Jg(U,c,v.length-1),Nf(C,St),C[c.index]=St}(OA,Jn,m4,h0,eo,St,ln);$1=R1(_s,rs),Jn&&function tD(c,l,f,v){if(v)Ro(c,f,["ng-version",Ig.full]);else{const{attrs:C,classes:k}=function ql(c){const l=[],f=[];let v=1,C=2;for(;v0&&hu(c,f,k.join(" "))}}(ln,m4,Jn,v),void 0!==f&&function nD(c,l,f){const v=c.projection=[];for(let C=0;C=0;v--){const C=c[v];C.hostVars=l+=C.hostVars,C.hostAttrs=qo(C.hostAttrs,f=qo(f,C.hostAttrs))}}(v)}function n3(c){return c===Ni?{}:c===ii?[]:c}function rD(c,l){const f=c.viewQuery;c.viewQuery=f?(v,C)=>{l(v,C),f(v,C)}:l}function sD(c,l){const f=c.contentQueries;c.contentQueries=f?(v,C,k)=>{l(v,C,k),f(v,C,k)}:l}function oD(c,l){const f=c.hostBindings;c.hostBindings=f?(v,C)=>{l(v,C),f(v,C)}:l}function o9(c){const l=c.inputConfig,f={};for(const v in l)if(l.hasOwnProperty(v)){const C=l[v];Array.isArray(C)&&C[2]&&(f[v]=C[2])}c.inputTransforms=f}function w8(c){return!!a9(c)&&(Array.isArray(c)||!(c instanceof Map)&&Symbol.iterator in c)}function a9(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function B2(c,l,f){return c[l]=f}function Z6(c,l){return c[l]}function Zl(c,l,f){return!Object.is(c[l],f)&&(c[l]=f,!0)}function a0(c,l,f,v){const C=Zl(c,l,f);return Zl(c,l+1,v)||C}function _u(c,l,f,v,C,k){const L=a0(c,l,f,v);return a0(c,l+2,C,k)||L}function c9(c,l,f,v){const C=li();return Zl(C,ve(),l)&&(Fs(),xd(bo(),C,c,l,f,v)),c9}function c0(c,l,f,v){return Zl(c,ve(),f)?l+Se(f)+v:Hs}function jf(c,l,f,v,C,k){const U=a0(c,function N(){return Zr.lFrame.bindingIndex}(),f,C);return Xe(2),U?l+Se(f)+v+Se(C)+k:Hs}function hC(c,l,f,v,C,k,L,U){const Q=li(),_e=Fs(),We=c+rs,St=_e.firstCreatePass?function fC(c,l,f,v,C,k,L,U,Q){const _e=l.consts,We=zf(l,c,4,L||null,qc(_e,U));Qg(l,f,We,qc(_e,Q)),Ba(l,We);const St=We.tView=Xg(2,We,v,C,k,l.directiveRegistry,l.pipeRegistry,null,l.schemas,_e,null);return null!==l.queries&&(l.queries.template(l,We),St.queries=l.queries.embeddedTView(We)),We}(We,_e,Q,l,f,v,C,k,L):_e.data[We];ol(St,!1);const ln=ip(_e,Q,St,c);wr()&&jo(_e,Q,ln,St),Ql(ln,Q),Nf(Q,Q[We]=Zg(ln,Q,ln,St)),zl(St)&&qg(_e,Q,St),null!=L&&X6(Q,St,U)}let ip=function pC(c,l,f,v){return Mr(!0),l[ur].createComment("")};function gC(c){return k2(function ud(){return Zr.lFrame.contextLView}(),rs+c)}function rp(c,l,f){const v=li();return Zl(v,ve(),l)&&F2(Fs(),bo(),v,c,l,v[ur],f,!1),rp}function h9(c,l,f,v,C){const L=C?"class":"style";n9(c,f,l.inputs[L],L,v)}function V8(c,l,f,v){const C=li(),k=Fs(),L=rs+c,U=C[ur],Q=k.firstCreatePass?function kD(c,l,f,v,C,k){const L=l.consts,Q=zf(l,c,2,v,qc(L,C));return Qg(l,f,Q,qc(L,k)),null!==Q.attrs&&K6(Q,Q.attrs,!1),null!==Q.mergedAttrs&&K6(Q,Q.mergedAttrs,!0),null!==l.queries&&l.queries.elementStart(l,Q),Q}(L,k,C,l,f,v):k.data[L],_e=Ms(k,C,Q,U,l,c);C[L]=_e;const We=zl(Q);return ol(Q,!0),Hm(U,_e,Q),32!=(32&Q.flags)&&wr()&&jo(k,C,_e,Q),0===function x1(){return Zr.lFrame.elementDepthCount}()&&Ql(_e,C),function f1(){Zr.lFrame.elementDepthCount++}(),We&&(qg(k,C,Q),Rf(k,Q,C)),null!==v&&X6(C,Q),V8}function Wf(){let c=Ec();T2()?V2():(c=c.parent,ol(c,!1));const l=c;(function Au(c){return Zr.skipHydrationRootTNode===c})(l)&&function Iu(){Zr.skipHydrationRootTNode=null}(),function ad(){Zr.lFrame.elementDepthCount--}();const f=Fs();return f.firstCreatePass&&(Ba(f,c),Ja(c)&&f.queries.elementEnd(c)),null!=l.classesWithoutHost&&function U0(c){return 0!=(8&c.flags)}(l)&&h9(f,l,li(),l.classesWithoutHost,!0),null!=l.stylesWithoutHost&&function Wh(c){return 0!=(16&c.flags)}(l)&&h9(f,l,li(),l.stylesWithoutHost,!1),Wf}function p9(c,l,f,v){return V8(c,l,f,v),Wf(),p9}let Ms=(c,l,f,v,C,k)=>(Mr(!0),ff(v,C,function M1(){return Zr.lFrame.currentNamespace}()));function A8(c,l,f){const v=li(),C=Fs(),k=c+rs,L=C.firstCreatePass?function vC(c,l,f,v,C){const k=l.consts,L=qc(k,v),U=zf(l,c,8,"ng-container",L);return null!==L&&K6(U,L,!0),Qg(l,f,U,qc(k,C)),null!==l.queries&&l.queries.elementStart(l,U),U}(k,C,v,l,f):C.data[k];ol(L,!0);const U=_C(C,v,L,c);return v[k]=U,wr()&&jo(C,v,U,L),Ql(U,v),zl(L)&&(qg(C,v,L),Rf(C,L,v)),null!=f&&X6(v,L),A8}function sp(){let c=Ec();const l=Fs();return T2()?V2():(c=c.parent,ol(c,!1)),l.firstCreatePass&&(Ba(l,c),Ja(c)&&l.queries.elementEnd(c)),sp}function m9(c,l,f){return A8(c,l,f),sp(),m9}let _C=(c,l,f,v)=>(Mr(!0),i4(l[ur],""));function g9(){return li()}function v9(c){return!!c&&"function"==typeof c.then}function _9(c){return!!c&&"function"==typeof c.subscribe}function b9(c,l,f,v){const C=li(),k=Fs(),L=Ec();return C9(k,C,C[ur],L,c,l,v),b9}function y9(c,l){const f=Ec(),v=li(),C=Fs();return C9(C,v,Ly(ae(C.data),f,v),f,c,l),y9}function C9(c,l,f,v,C,k,L){const U=zl(v),_e=c.firstCreatePass&&t9(c),We=l[Is],St=Hy(l);let ln=!0;if(3&v.type||L){const Ei=gc(v,l),Ui=L?L(Ei):Ei,jr=St.length,_i=L?eo=>L($o(eo[v.index])):v.index;let _s=null;if(!L&&U&&(_s=function AD(c,l,f,v){const C=c.cleanup;if(null!=C)for(let k=0;kQ?U[Q]:null}"string"==typeof L&&(k+=2)}return null}(c,l,C,v.index)),null!==_s)(_s.__ngLastListenerFn__||_s).__ngNextListenerFn__=k,_s.__ngLastListenerFn__=k,ln=!1;else{k=I8(v,l,We,k,!1);const eo=f.listen(Ui,C,k);St.push(k,eo),_e&&_e.push(C,_i,jr,jr+1)}}else k=I8(v,l,We,k,!1);const Sn=v.outputs;let Jn;if(ln&&null!==Sn&&(Jn=Sn[C])){const Ei=Jn.length;if(Ei)for(let Ui=0;Ui-1?cc(c.index,l):l);let Q=bC(l,f,v,L),_e=k.__ngNextListenerFn__;for(;_e;)Q=bC(l,f,_e,L)&&Q,_e=_e.__ngNextListenerFn__;return C&&!1===Q&&L.preventDefault(),Q}}function yC(c=1){return function Xo(c){return(Zr.lFrame.contextLView=function Ko(c,l){for(;c>0;)l=l[Lc],c--;return l}(c,Zr.lFrame.contextLView))[Is]}(c)}function wd(c,l){let f=null;const v=function l1(c){const l=c.attrs;if(null!=l){const f=l.indexOf(5);if(!(1&f))return l[f+1]}return null}(c);for(let C=0;C>17&32767}function H8(c){return 2|c}function l0(c){return(131068&c)>>2}function ap(c,l){return-131069&c|l<<2}function S9(c){return 1|c}function VC(c,l,f,v,C){const k=c[f+1],L=null===l;let U=v?p4(k):l0(k),Q=!1;for(;0!==U&&(!1===Q||L);){const We=c[U+1];u0(c[U],l)&&(Q=!0,c[U+1]=v?S9(We):H8(We)),U=v?p4(We):l0(We)}Q&&(c[f+1]=v?H8(k):S9(k))}function u0(c,l){return null===c||null==l||(Array.isArray(c)?c[1]:c)===l||!(!Array.isArray(c)||"string"!=typeof l)&&P3(c,l)>=0}const Fl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function k9(c){return c.substring(Fl.key,Fl.keyEnd)}function AC(c){return c.substring(Fl.value,Fl.valueEnd)}function IC(c,l){const f=Fl.textEnd;return f===l?-1:(l=Fl.keyEnd=function Kc(c,l,f){for(;l32;)l++;return l}(c,Fl.key=l,f),qf(c,l,f))}function HC(c,l){const f=Fl.textEnd;let v=Fl.key=qf(c,l,f);return f===v?-1:(v=Fl.keyEnd=function zD(c,l,f){let v;for(;l=65&&(-33&v)<=90||v>=48&&v<=57);)l++;return l}(c,v,f),v=R8(c,v,f),v=Fl.value=qf(c,v,f),v=Fl.valueEnd=function RD(c,l,f){let v=-1,C=-1,k=-1,L=l,U=L;for(;L32&&(U=L),k=C,C=v,v=-33&Q}return U}(c,v,f),R8(c,v,f))}function z8(c){Fl.key=0,Fl.keyEnd=0,Fl.value=0,Fl.valueEnd=0,Fl.textEnd=c.length}function qf(c,l,f){for(;l=0;f=HC(l,f))j8(c,k9(l),AC(l))}function zC(c){$u(FD,Sd,c,!0)}function Sd(c,l){for(let f=function LD(c){return z8(c),IC(c,qf(c,0,Fl.textEnd))}(l);f>=0;f=IC(l,f))P1(c,k9(l),!0)}function U2(c,l,f,v){const C=li(),k=Fs(),L=Xe(2);k.firstUpdatePass&&RC(k,c,L,v),l!==Hs&&Zl(C,L,l)&&Kf(k,k.data[Io()],C,C[ur],c,C[L+1]=function $D(c,l){return null==c||""===c||("string"==typeof l?c+=l:"object"==typeof c&&(c=ze(ju(c)))),c}(l,f),v,L)}function $u(c,l,f,v){const C=Fs(),k=Xe(2);C.firstUpdatePass&&RC(C,null,k,v);const L=li();if(f!==Hs&&Zl(L,k,f)){const U=C.data[Io()];if(Ur(U,v)&&!D9(C,k)){let Q=v?U.classesWithoutHost:U.stylesWithoutHost;null!==Q&&(f=vt(Q,f||"")),h9(C,U,L,f,v)}else!function BD(c,l,f,v,C,k,L,U){C===Hs&&(C=ii);let Q=0,_e=0,We=0=c.expandoStartIndex}function RC(c,l,f,v){const C=c.data;if(null===C[f+1]){const k=C[Io()],L=D9(c,f);Ur(k,v)&&null===l&&!L&&(l=!1),l=function ND(c,l,f,v){const C=ae(c);let k=v?l.residualClasses:l.residualStyles;if(null===C)0===(v?l.classBindings:l.styleBindings)&&(f=Xf(f=T9(null,c,l,f,v),l.attrs,v),k=null);else{const L=l.directiveStylingLast;if(-1===L||c[L]!==C)if(f=T9(C,c,l,f,v),null===k){let Q=function NC(c,l,f){const v=f?l.classBindings:l.styleBindings;if(0!==l0(v))return c[p4(v)]}(c,l,v);void 0!==Q&&Array.isArray(Q)&&(Q=T9(null,c,l,Q[1],v),Q=Xf(Q,l.attrs,v),function PD(c,l,f,v){c[p4(f?l.classBindings:l.styleBindings)]=v}(c,l,v,Q))}else k=function PC(c,l,f){let v;const C=l.directiveEnd;for(let k=1+l.directiveStylingLast;k0)&&(_e=!0)):We=f,C)if(0!==Q){const ln=p4(c[U+1]);c[v+1]=O8(ln,U),0!==ln&&(c[ln+1]=ap(c[ln+1],v)),c[U+1]=function M9(c,l){return 131071&c|l<<17}(c[U+1],v)}else c[v+1]=O8(U,0),0!==U&&(c[U+1]=ap(c[U+1],v)),U=v;else c[v+1]=O8(Q,0),0===U?U=v:c[Q+1]=ap(c[Q+1],v),Q=v;_e&&(c[v+1]=H8(c[v+1])),VC(c,We,v,!0),VC(c,We,v,!1),function HD(c,l,f,v,C){const k=C?c.residualClasses:c.residualStyles;null!=k&&"string"==typeof l&&P3(k,l)>=0&&(f[v+1]=S9(f[v+1]))}(l,We,c,v,k),L=O8(U,Q),k?l.classBindings=L:l.styleBindings=L}(C,k,l,f,L,v)}}function T9(c,l,f,v,C){let k=null;const L=f.directiveEnd;let U=f.directiveStylingLast;for(-1===U?U=f.directiveStart:U++;U0;){const Q=c[C],_e=Array.isArray(Q),We=_e?Q[1]:Q,St=null===We;let ln=f[C+1];ln===Hs&&(ln=St?ii:void 0);let Sn=St?Qh(ln,v):We===v?ln:void 0;if(_e&&!cp(Sn)&&(Sn=Qh(Q,v)),cp(Sn)&&(U=Sn,L))return U;const Jn=c[C+1];C=L?p4(Jn):l0(Jn)}if(null!==l){let Q=k?l.residualClasses:l.residualStyles;null!=Q&&(U=Qh(Q,v))}return U}function cp(c){return void 0!==c}function Ur(c,l){return 0!=(c.flags&(l?8:16))}function FC(c,l=""){const f=li(),v=Fs(),C=c+rs,k=v.firstCreatePass?zf(v,C,1,l,null):v.data[C],L=V9(v,f,k,l,c);f[C]=L,wr()&&jo(v,f,L,k),ol(k,!1)}let V9=(c,l,f,v,C)=>(Mr(!0),function n4(c,l){return c.createText(l)}(l[ur],v));function A9(c){return lp("",c,""),A9}function lp(c,l,f){const v=li(),C=c0(v,c,l,f);return C!==Hs&&d4(v,Io(),C),lp}function I9(c,l,f,v,C){const k=li(),L=jf(k,c,l,f,v,C);return L!==Hs&&d4(k,Io(),L),I9}function WC(c,l,f){$u(P1,Sd,c0(li(),c,l,f),!0)}function Yf(c,l,f){const v=li();return Zl(v,ve(),l)&&F2(Fs(),bo(),v,c,l,v[ur],f,!0),Yf}function N9(c,l,f){const v=li();if(Zl(v,ve(),l)){const k=Fs(),L=bo();F2(k,L,v,c,l,Ly(ae(k.data),L,v),f,!0)}return N9}const Ed=void 0;var tT=["en",[["a","p"],["AM","PM"],Ed],[["AM","PM"],Ed,Ed],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ed,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ed,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ed,"{1} 'at' {0}",Ed],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function eT(c){const f=Math.floor(Math.abs(c)),v=c.toString().replace(/^[^.]*\.?/,"").length;return 1===f&&0===v?1:5}];let Qf={};function P9(c){const l=function sx(c){return c.toLowerCase().replace(/_/g,"-")}(c);let f=j9(l);if(f)return f;const v=l.split("-")[0];if(f=j9(v),f)return f;if("en"===v)return tT;throw new he(701,!1)}function B8(c){return P9(c)[Jf.PluralCase]}function j9(c){return c in Qf||(Qf[c]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[c]),Qf[c]}var Jf=function(c){return c[c.LocaleId=0]="LocaleId",c[c.DayPeriodsFormat=1]="DayPeriodsFormat",c[c.DayPeriodsStandalone=2]="DayPeriodsStandalone",c[c.DaysFormat=3]="DaysFormat",c[c.DaysStandalone=4]="DaysStandalone",c[c.MonthsFormat=5]="MonthsFormat",c[c.MonthsStandalone=6]="MonthsStandalone",c[c.Eras=7]="Eras",c[c.FirstDayOfWeek=8]="FirstDayOfWeek",c[c.WeekendRange=9]="WeekendRange",c[c.DateFormat=10]="DateFormat",c[c.TimeFormat=11]="TimeFormat",c[c.DateTimeFormat=12]="DateTimeFormat",c[c.NumberSymbols=13]="NumberSymbols",c[c.NumberFormats=14]="NumberFormats",c[c.CurrencyCode=15]="CurrencyCode",c[c.CurrencySymbol=16]="CurrencySymbol",c[c.CurrencyName=17]="CurrencyName",c[c.Currencies=18]="Currencies",c[c.Directionality=19]="Directionality",c[c.PluralCase=20]="PluralCase",c[c.ExtraData=21]="ExtraData",c}(Jf||{});const Zf="en-US";let U8=Zf;function sh(c,l,f,v,C){if(c=de(c),Array.isArray(c))for(let k=0;k>20;if(R2(c)||!c.multi){const Sn=new jl(_e,C,Lf),Jn=nv(Q,l,C?We:We+ln,St);-1===Jn?(Yl(Qd(U,L),k,Q),ev(k,c,l.length),l.push(Q),U.directiveStart++,U.directiveEnd++,C&&(U.providerIndexes+=1048576),f.push(Sn),L.push(Sn)):(f[Jn]=Sn,L[Jn]=Sn)}else{const Sn=nv(Q,l,We+ln,St),Jn=nv(Q,l,We,We+ln),Ui=Jn>=0&&f[Jn];if(C&&!Ui||!C&&!(Sn>=0&&f[Sn])){Yl(Qd(U,L),k,Q);const jr=function RT(c,l,f,v,C){const k=new jl(c,f,Lf);return k.multi=[],k.index=l,k.componentProviders=0,tv(k,C,v&&!f),k}(C?zT:Ox,f.length,C,v,_e);!C&&Ui&&(f[Jn].providerFactory=jr),ev(k,c,l.length,0),l.push(Q),U.directiveStart++,U.directiveEnd++,C&&(U.providerIndexes+=1048576),f.push(jr),L.push(jr)}else ev(k,c,Sn>-1?Sn:Jn,tv(f[C?Jn:Sn],_e,!C&&v));!C&&v&&Ui&&f[Jn].componentProviders++}}}function ev(c,l,f,v){const C=R2(l),k=function Sg(c){return!!c.useClass}(l);if(C||k){const Q=(k?de(l.useClass):l).prototype.ngOnDestroy;if(Q){const _e=c.destroyHooks||(c.destroyHooks=[]);if(!C&&l.multi){const We=_e.indexOf(f);-1===We?_e.push(f,[v,Q]):_e[We+1].push(v,Q)}else _e.push(f,Q)}}}function tv(c,l,f){return f&&c.componentProviders++,c.multi.push(l)-1}function nv(c,l,f,v){for(let C=f;C{f.providersResolver=(v,C)=>function LT(c,l,f){const v=Fs();if(v.firstCreatePass){const C=co(c);sh(f,v.data,v.blueprint,C,!0),sh(l,v.data,v.blueprint,C,!1)}}(v,C?C(c):c,l)}}class d0{}class rv{}function NT(c,l){return new sv(c,l??null,[])}class sv extends d0{constructor(l,f,v){super(),this._parent=f,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Uy(this);const C=ca(l);this._bootstrapComponents=Ai(C.bootstrap),this._r3Injector=B6(l,f,[{provide:d0,useValue:this},{provide:Q4,useValue:this.componentFactoryResolver},...v],ze(l),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(l)}get injector(){return this._r3Injector}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(f=>f()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class ov extends rv{constructor(l){super(),this.moduleType=l}create(l){return new sv(this.moduleType,l,[])}}class av extends d0{constructor(l){super(),this.componentFactoryResolver=new Uy(this),this.instance=null;const f=new _d([...l.providers,{provide:d0,useValue:this},{provide:Q4,useValue:this.componentFactoryResolver}],l.parent||X4(),l.debugName,new Set(["environment"]));this.injector=f,l.runEnvironmentInitializers&&f.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(l){this.injector.onDestroy(l)}}function Lx(c,l,f=null){return new av({providers:c,parent:l,debugName:f,runEnvironmentInitializers:!0}).injector}let jT=(()=>{class c{constructor(f){this._injector=f,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(f){if(!f.standalone)return null;if(!this.cachedInjectors.has(f)){const v=Km(0,f.type),C=v.length>0?Lx([v],this._injector,`Standalone[${f.type.name}]`):null;this.cachedInjectors.set(f,C)}return this.cachedInjectors.get(f)}ngOnDestroy(){try{for(const f of this.cachedInjectors.values())null!==f&&f.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=zt({token:c,providedIn:"environment",factory:()=>new c(Pt(l2))})}return c})();function oh(c){c.getStandaloneInjector=l=>l.get(jT).getOrCreateStandaloneInjector(c)}function jx(c,l,f){const v=j()+c,C=li();return C[v]===Hs?B2(C,v,f?l.call(f):l()):Z6(C,v)}function dv(c,l,f,v){return Gx(li(),j(),c,l,f,v)}function Fx(c,l,f,v,C){return function Wx(c,l,f,v,C,k,L){const U=l+f;return a0(c,U,C,k)?B2(c,U+2,L?v.call(L,C,k):v(C,k)):mp(c,U+2)}(li(),j(),c,l,f,v,C)}function fv(c,l,f,v,C,k){return function pv(c,l,f,v,C,k,L,U){const Q=l+f;return function i3(c,l,f,v,C){const k=a0(c,l,f,v);return Zl(c,l+2,C)||k}(c,Q,C,k,L)?B2(c,Q+3,U?v.call(U,C,k,L):v(C,k,L)):mp(c,Q+3)}(li(),j(),c,l,f,v,C,k)}function Bx(c,l,f,v,C,k,L){return function mv(c,l,f,v,C,k,L,U,Q){const _e=l+f;return _u(c,_e,C,k,L,U)?B2(c,_e+4,Q?v.call(Q,C,k,L,U):v(C,k,L,U)):mp(c,_e+4)}(li(),j(),c,l,f,v,C,k,L)}function Ux(c,l,f,v,C,k,L,U,Q){const _e=j()+c,We=li(),St=_u(We,_e,f,v,C,k);return a0(We,_e+4,L,U)||St?B2(We,_e+6,Q?l.call(Q,f,v,C,k,L,U):l(f,v,C,k,L,U)):Z6(We,_e+6)}function hv(c,l,f,v){return function qx(c,l,f,v,C,k){let L=l+f,U=!1;for(let Q=0;Q=0;f--){const v=l[f];if(c===v.name)return v}}(l,f.pipeRegistry),f.data[C]=v,v.onDestroy&&(f.destroyHooks??=[]).push(C,v.onDestroy)):v=f.data[C];const k=v.factory||(v.factory=So(v.type)),U=qe(Lf);try{const Q=fd(!1),_e=k();return fd(Q),function mC(c,l,f,v){f>=c.data.length&&(c.data[f]=null,c.blueprint[f]=null),l[f]=v}(f,li(),C,_e),_e}finally{qe(U)}}function gv(c,l,f){const v=c+rs,C=li(),k=k2(C,v);return function vp(c,l){return c[yi].data[l].pure}(C,v)?Gx(C,j(),l,k.transform,f,k):k.transform(f)}function Yx(){return this._results[Symbol.iterator]()}class Y8{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new vu)}constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const f=Y8.prototype;f[Symbol.iterator]||(f[Symbol.iterator]=Yx)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,f){return this._results.reduce(l,f)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,f){const v=this;v.dirty=!1;const C=function Dc(c){return c.flat(Number.POSITIVE_INFINITY)}(l);(this._changesDetected=!function T7(c,l,f){if(c.length!==l.length)return!1;for(let v=0;v0&&(f[C-1][Sa]=l),v{class c{static#e=this.__NG_ELEMENT_ID__=Jx}return c})();const eV=ah,tV=class extends eV{constructor(l,f,v){super(),this._declarationLView=l,this._declarationTContainer=f,this.elementRef=v}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(l,f){return this.createEmbeddedViewImpl(l,f)}createEmbeddedViewImpl(l,f,v){const C=function ZT(c,l,f,v){const C=l.tView,U=v8(c,C,f,4096&c[Kn]?4096:16,null,l,null,null,null,v?.injector??null,v?.hydrationInfo??null);U[la]=c[l.index];const _e=c[ua];return null!==_e&&(U[ua]=_e.createEmbeddedView(C)),i9(C,U,f),U}(this._declarationLView,this._declarationTContainer,l,{injector:f,hydrationInfo:v});return new Q6(C)}};function Jx(){return Q8(Ec(),li())}function Q8(c,l){return 4&c.type?new tV(l,c,n0(c,l)):null}let Z8=(()=>{class c{static#e=this.__NG_ELEMENT_ID__=oV}return c})();function oV(){return yv(Ec(),li())}const Zs=Z8,nw=class extends Zs{constructor(l,f,v){super(),this._lContainer=l,this._hostTNode=f,this._hostLView=v}get element(){return n0(this._hostTNode,this._hostLView)}get injector(){return new Si(this._hostTNode,this._hostLView)}get parentInjector(){const l=N3(this._hostTNode,this._hostLView);if(z3(l)){const f=Lu(l,this._hostLView),v=dd(l);return new Si(f[yi].data[v+8],f)}return new Si(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const f=zs(this._lContainer);return null!==f&&f[l]||null}get length(){return this._lContainer.length-Ea}createEmbeddedView(l,f,v){let C,k;"number"==typeof v?C=v:null!=v&&(C=v.index,k=v.injector);const U=l.createEmbeddedViewImpl(f||{},k,null);return this.insertImpl(U,C,false),U}createComponent(l,f,v,C,k){const L=l&&!function q0(c){return"function"==typeof c}(l);let U;if(L)U=f;else{const Ei=f||{};U=Ei.index,v=Ei.injector,C=Ei.projectableNodes,k=Ei.environmentInjector||Ei.ngModuleRef}const Q=L?l:new J6(Xr(l)),_e=v||this.parentInjector;if(!k&&null==Q.ngModule){const Ui=(L?_e:this.parentInjector).get(l2,null);Ui&&(k=Ui)}Xr(Q.componentType??{});const Sn=Q.create(_e,C,null,k);return this.insertImpl(Sn.hostView,U,false),Sn}insert(l,f){return this.insertImpl(l,f,!1)}insertImpl(l,f,v){const C=l._lView;if(function Tu(c){return vs(c[ar])}(C)){const Q=this.indexOf(l);if(-1!==Q)this.detach(Q);else{const _e=C[ar],We=new nw(_e,_e[ns],_e[ar]);We.detach(We.indexOf(l))}}const L=this._adjustIndex(f),U=this._lContainer;return Qx(U,C,L,!v),l.attachToViewContainerRef(),Yh(bv(U),L,l),l}move(l,f){return this.insert(l,f)}indexOf(l){const f=zs(this._lContainer);return null!==f?f.indexOf(l):-1}remove(l){const f=this._adjustIndex(l,-1),v=B3(this._lContainer,f);v&&(X0(bv(this._lContainer),f),hf(v[yi],v))}detach(l){const f=this._adjustIndex(l,-1),v=B3(this._lContainer,f);return v&&null!=X0(bv(this._lContainer),f)?new Q6(v):null}_adjustIndex(l,f=0){return l??this.length+f}};function zs(c){return c[8]}function bv(c){return c[8]||(c[8]=[])}function yv(c,l){let f;const v=l[c.index];return vs(v)?f=v:(f=Zg(v,l,null,c),l[c.index]=f,Nf(l,f)),iw(f,l,c,v),new nw(f,c,l)}let iw=function Cv(c,l,f,v){if(c[Lr])return;let C;C=8&f.type?$o(v):function aV(c,l){const f=c[ur],v=f.createComment(""),C=gc(l,c);return du(f,U3(f,C),v,function ng(c,l){return c.nextSibling(l)}(f,C),!1),v}(l,f),c[Lr]=C};class wv{constructor(l){this.queryList=l,this.matches=null}clone(){return new wv(this.queryList)}setDirty(){this.queryList.setDirty()}}class e5{constructor(l=[]){this.queries=l}createEmbeddedView(l){const f=l.queries;if(null!==f){const v=null!==l.contentQueries?l.contentQueries[0]:f.length,C=[];for(let k=0;k0)v.push(L[U/2]);else{const _e=k[U+1],We=l[-Q];for(let St=Ea;St{class c{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((f,v)=>{this.resolve=f,this.reject=v}),this.appInits=pn(Ew,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const f=[];for(const C of this.appInits){const k=C();if(v9(k))f.push(k);else if(_9(k)){const L=new Promise((U,Q)=>{k.subscribe({complete:U,error:Q})});f.push(L)}}const v=()=>{this.done=!0,this.resolve()};Promise.all(f).then(()=>{v()}).catch(C=>{this.reject(C)}),0===f.length&&v(),this.initialized=!0}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})(),Dw=(()=>{class c{log(f){console.log(f)}warn(f){console.warn(f)}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"platform"})}return c})();const c5=new ni("LocaleId",{providedIn:"root",factory:()=>pn(c5,On.Optional|On.SkipSelf)||function Tw(){return typeof $localize<"u"&&$localize.locale||Zf}()}),Vw=new ni("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Fv=(()=>{class c{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new De.t(!1)}add(){this.hasPendingTasks.next(!0);const f=this.taskId++;return this.pendingTasks.add(f),f}remove(f){this.pendingTasks.delete(f),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();class LV{constructor(l,f){this.ngModuleFactory=l,this.componentFactories=f}}let uh=(()=>{class c{compileModuleSync(f){return new ov(f)}compileModuleAsync(f){return Promise.resolve(this.compileModuleSync(f))}compileModuleAndAllComponentsSync(f){const v=this.compileModuleSync(f),k=Ai(ca(f).declarations).reduce((L,U)=>{const Q=Xr(U);return Q&&L.push(new J6(Q)),L},[]);return new LV(v,k)}compileModuleAndAllComponentsAsync(f){return Promise.resolve(this.compileModuleAndAllComponentsSync(f))}clearCache(){}clearCacheFor(f){}getModuleId(f){}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();const Rw=new ni(""),hh=new ni("");let Cp,QV=(()=>{class c{constructor(f,v,C){this._ngZone=f,this.registry=v,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Cp||(function JV(c){Cp=c}(C),C.addToWindow(v)),this._watchAngularEvents(),f.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:()=>{Ml.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let f=this._callbacks.pop();clearTimeout(f.timeoutId),f.doneCb(this._didWork)}this._didWork=!1});else{let f=this.getPendingTasks();this._callbacks=this._callbacks.filter(v=>!v.updateCb||!v.updateCb(f)||(clearTimeout(v.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(f=>({source:f.source,creationLocation:f.creationLocation,data:f.data})):[]}addCallback(f,v,C){let k=-1;v&&v>0&&(k=setTimeout(()=>{this._callbacks=this._callbacks.filter(L=>L.timeoutId!==k),f(this._didWork,this.getPendingTasks())},v)),this._callbacks.push({doneCb:f,timeoutId:k,updateCb:C})}whenStable(f,v,C){if(C&&!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(f,v,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(f){this.registry.registerApplication(f,this)}unregisterApplication(f){this.registry.unregisterApplication(f)}findProviders(f,v,C){return[]}static#e=this.\u0275fac=function(v){return new(v||c)(Pt(Ml),Pt(Gv),Pt(hh))};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac})}return c})(),Gv=(()=>{class c{constructor(){this._applications=new Map}registerApplication(f,v){this._applications.set(f,v)}unregisterApplication(f){this._applications.delete(f)}unregisterAllApplications(){this._applications.clear()}getTestability(f){return this._applications.get(f)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(f,v=!0){return Cp?.findTestabilityInTree(this,f,v)??null}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"platform"})}return c})(),a3=null;const qv=new ni("PlatformDestroyListeners"),d5=new ni("appBootstrapListener");class eA{constructor(l,f){this.name=l,this.token=f}}function iA(c){try{const{rootComponent:l,appProviders:f,platformProviders:v}=c,C=function nA(c=[]){if(a3)return a3;const l=function f5(c=[],l){return P2.create({name:l,providers:[{provide:W4,useValue:"platform"},{provide:qv,useValue:new Set([()=>a3=null])},...c]})}(c);return a3=l,function Nw(){!function Du(c){nu=c}(()=>{throw new he(600,!1)})}(),function Xv(c){c.get(Y3,null)?.forEach(f=>f())}(l),l}(v),k=[lA(),...f||[]],U=new av({providers:k,parent:C,debugName:"",runEnvironmentInitializers:!1}).injector,Q=U.get(Ml);return Q.run(()=>{U.resolveInjectorInitializers();const _e=U.get(yd,null);let We;Q.runOutsideAngular(()=>{We=Q.onError.subscribe({next:Sn=>{_e.handleError(Sn)}})});const St=()=>U.destroy(),ln=C.get(qv);return ln.add(St),U.onDestroy(()=>{We.unsubscribe(),ln.delete(St)}),function Bw(c,l,f){try{const v=f();return v9(v)?v.catch(C=>{throw l.runOutsideAngular(()=>c.handleError(C)),C}):v}catch(v){throw l.runOutsideAngular(()=>c.handleError(v)),v}}(_e,Q,()=>{const Sn=U.get(a5);return Sn.runInitializers(),Sn.donePromise.then(()=>{!function ax(c){Ze(c,"Expected localeId to be defined"),"string"==typeof c&&(U8=c.toLowerCase().replace(/_/g,"-"))}(U.get(c5,Zf)||Zf);const Ei=U.get(ph);return void 0!==l&&Ei.bootstrap(l),Ei})})})}catch(l){return Promise.reject(l)}}let ph=(()=>{class c{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=pn(Yv),this.zoneIsStable=pn(b),this.componentTypes=[],this.components=[],this.isStable=pn(Fv).hasPendingTasks.pipe((0,be.n)(f=>f?(0,pe.of)(!1):this.zoneIsStable),(0,ge.F)(),(0,Ee.u)()),this._injector=pn(l2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(f,v){const C=f instanceof Vg;if(!this._injector.get(a5).done)throw!C&&Ao(f),new he(405,!1);let L;L=C?f:this._injector.get(Q4).resolveComponentFactory(f),this.componentTypes.push(L.componentType);const U=function Pw(c){return c.isBoundToModule}(L)?void 0:this._injector.get(d0),_e=L.create(P2.NULL,[],v||L.selector,U),We=_e.location.nativeElement,St=_e.injector.get(Rw,null);return St?.registerApplication(We),_e.onDestroy(()=>{this.detachView(_e.hostView),xp(this.components,_e),St?.unregisterApplication(We)}),this._loadComponent(_e),_e}tick(){if(this._runningTick)throw new he(101,!1);try{this._runningTick=!0;for(let f of this._views)f.detectChanges()}catch(f){this.internalErrorHandler(f)}finally{this._runningTick=!1}}attachView(f){const v=f;this._views.push(v),v.attachToAppRef(this)}detachView(f){const v=f;xp(this._views,v),v.detachFromAppRef()}_loadComponent(f){this.attachView(f.hostView),this.tick(),this.components.push(f);const v=this._injector.get(d5,[]);v.push(...this._bootstrapListeners),v.forEach(C=>C(f))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(f=>f()),this._views.slice().forEach(f=>f.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(f){return this._destroyListeners.push(f),()=>xp(this._destroyListeners,f)}destroy(){if(this._destroyed)throw new he(406,!1);const f=this._injector;f.destroy&&!f.destroyed&&f.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();function xp(c,l){const f=c.indexOf(l);f>-1&&c.splice(f,1)}const Yv=new ni("",{providedIn:"root",factory:()=>pn(yd).handleError.bind(void 0)});function aA(){const c=pn(Ml),l=pn(yd);return f=>c.runOutsideAngular(()=>l.handleError(f))}let cA=(()=>{class c{constructor(){this.zone=pn(Ml),this.applicationRef=pn(ph)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();function p5(c){return[{provide:Ml,useFactory:c},{provide:U4,multi:!0,useFactory:()=>{const l=pn(cA,{optional:!0});return()=>l.initialize()}},{provide:Yv,useFactory:aA},{provide:b,useFactory:M}]}function lA(c){return V6([[],p5(()=>new Ml(function Fw(c){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:c?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:c?.runCoalescing??!1}}(c)))])}function uA(){return!1}let fA=(()=>{class c{static#e=this.__NG_ELEMENT_ID__=hA}return c})();function hA(c){return function pA(c,l,f){if(pc(c)&&!f){const v=cc(c.index,l);return new Q6(v,v)}return 47&c.type?new Q6(l[Qs],l):null}(Ec(),li(),16==(16&c))}class Qw{constructor(){}supports(l){return w8(l)}create(l){return new Jw(l)}}const _A=(c,l)=>l;class Jw{constructor(l){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=l||_A}forEachItem(l){let f;for(f=this._itHead;null!==f;f=f._next)l(f)}forEachOperation(l){let f=this._itHead,v=this._removalsHead,C=0,k=null;for(;f||v;){const L=!v||f&&f.currentIndex{L=this._trackByFn(C,U),null!==f&&Object.is(f.trackById,L)?(v&&(f=this._verifyReinsertion(f,U,L,C)),Object.is(f.item,U)||this._addIdentityChange(f,U)):(f=this._mismatch(f,U,L,C),v=!0),f=f._next,C++}),this.length=C;return this._truncate(f),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,f,v,C){let k;return null===l?k=this._itTail:(k=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(v,null))?(Object.is(l.item,f)||this._addIdentityChange(l,f),this._reinsertAfter(l,k,C)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(v,C))?(Object.is(l.item,f)||this._addIdentityChange(l,f),this._moveAfter(l,k,C)):l=this._addAfter(new bA(f,v),k,C),l}_verifyReinsertion(l,f,v,C){let k=null===this._unlinkedRecords?null:this._unlinkedRecords.get(v,null);return null!==k?l=this._reinsertAfter(k,l._prev,C):l.currentIndex!=C&&(l.currentIndex=C,this._addToMoves(l,C)),l}_truncate(l){for(;null!==l;){const f=l._next;this._addToRemovals(this._unlink(l)),l=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(l,f,v){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const C=l._prevRemoved,k=l._nextRemoved;return null===C?this._removalsHead=k:C._nextRemoved=k,null===k?this._removalsTail=C:k._prevRemoved=C,this._insertAfter(l,f,v),this._addToMoves(l,v),l}_moveAfter(l,f,v){return this._unlink(l),this._insertAfter(l,f,v),this._addToMoves(l,v),l}_addAfter(l,f,v){return this._insertAfter(l,f,v),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,f,v){const C=null===f?this._itHead:f._next;return l._next=C,l._prev=f,null===C?this._itTail=l:C._prev=l,null===f?this._itHead=l:f._next=l,null===this._linkedRecords&&(this._linkedRecords=new eM),this._linkedRecords.put(l),l.currentIndex=v,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const f=l._prev,v=l._next;return null===f?this._itHead=v:f._next=v,null===v?this._itTail=f:v._prev=f,l}_addToMoves(l,f){return l.previousIndex===f||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new eM),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,f){return l.item=f,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class bA{constructor(l,f){this.item=l,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 Zw{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,f){let v;for(v=this._head;null!==v;v=v._nextDup)if((null===f||f<=v.currentIndex)&&Object.is(v.trackById,l))return v;return null}remove(l){const f=l._prevDup,v=l._nextDup;return null===f?this._head=v:f._nextDup=v,null===v?this._tail=f:v._prevDup=f,null===this._head}}class eM{constructor(){this.map=new Map}put(l){const f=l.trackById;let v=this.map.get(f);v||(v=new Zw,this.map.set(f,v)),v.add(l)}get(l,f){const C=this.map.get(l);return C?C.get(l,f):null}remove(l){const f=l.trackById;return this.map.get(f).remove(l)&&this.map.delete(f),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function t_(c,l,f){const v=c.previousIndex;if(null===v)return v;let C=0;return f&&v{if(f&&f.key===C)this._maybeAddToChanges(f,v),this._appendAfter=f,f=f._next;else{const k=this._getOrCreateRecordForKey(C,v);f=this._insertBeforeOrAppend(f,k)}}),f){f._prev&&(f._prev._next=null),this._removalsHead=f;for(let v=f;null!==v;v=v._nextRemoved)v===this._mapHead&&(this._mapHead=null),this._records.delete(v.key),v._nextRemoved=v._next,v.previousValue=v.currentValue,v.currentValue=null,v._prev=null,v._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,f){if(l){const v=l._prev;return f._next=l,f._prev=v,l._prev=f,v&&(v._next=f),l===this._mapHead&&(this._mapHead=f),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=f,f._prev=this._appendAfter):this._mapHead=f,this._appendAfter=f,null}_getOrCreateRecordForKey(l,f){if(this._records.has(l)){const C=this._records.get(l);this._maybeAddToChanges(C,f);const k=C._prev,L=C._next;return k&&(k._next=L),L&&(L._prev=k),C._next=null,C._prev=null,C}const v=new CA(l);return this._records.set(l,v),v.currentValue=f,this._addToAdditions(v),v}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,f){Object.is(f,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=f,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,f){l instanceof Map?l.forEach(f):Object.keys(l).forEach(v=>f(l[v],v))}}class CA{constructor(l){this.key=l,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 n_(){return new i_([new Qw])}let i_=(()=>{class c{static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:n_});constructor(f){this.factories=f}static create(f,v){if(null!=v){const C=v.factories.slice();f=f.concat(C)}return new c(f)}static extend(f){return{provide:c,useFactory:v=>c.create(f,v||n_()),deps:[[c,new Ta,new Zh]]}}find(f){const v=this.factories.find(C=>C.supports(f));if(null!=v)return v;throw new he(901,!1)}}return c})();function _5(){return new r_([new tM])}let r_=(()=>{class c{static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:_5});constructor(f){this.factories=f}static create(f,v){if(v){const C=v.factories.slice();f=f.concat(C)}return new c(f)}static extend(f){return{provide:c,useFactory:v=>c.create(f,v||_5()),deps:[[c,new Ta,new Zh]]}}find(f){const v=this.factories.find(C=>C.supports(f));if(v)return v;throw new he(901,!1)}}return c})();function fM(c){return"boolean"==typeof c?c:null!=c&&"false"!==c}function IA(c){const l=Xr(c);if(!l)return null;const f=new J6(l);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 l.standalone},get isSignal(){return l.signals}}}},7212:(vn,J,F)=>{"use strict";F.d(J,{pQ:()=>oe});var g=F(2978),o=F(9406),V=F(6340);function oe(cn){cn||((0,g.Af3)(oe),cn=(0,g.WQX)(g.abz));const On=new o.c(Qn=>cn.onDestroy(Qn.next.bind(Qn)));return Qn=>Qn.pipe((0,V.Q)(On))}Error},8832:(vn,J,F)=>{"use strict";F.d(J,{mP:()=>Be,Zm:()=>Fe,xq:()=>vo,me:()=>he,Yp:()=>sc,MJ:()=>Hc,l_:()=>il,JD:()=>Is,gE:()=>Pt,j4:()=>yi,YN:()=>nn,cz:()=>it,kq:()=>tt,vO:()=>Dr,BC:()=>Qn,cb:()=>fi,cV:()=>La,vS:()=>wo,xH:()=>ml,Q0:()=>hc,MR:()=>za,X1:()=>Qt,wz:()=>rr,hs:()=>Ol,J3:()=>Cn,k0:()=>Wt,cF:()=>Rt,Oi:()=>pl,_X:()=>pn,y7:()=>da});var g=F(2978),o=F(6610),V=F(8399),oe=F(9406),De=F(6872),pe=F(8621),Ee=F(2363),be=F(6111),ge=F(6219),Te=F(6405),ze=F(3527);let vt=(()=>{class ne{constructor(ee,$e){this._renderer=ee,this._elementRef=$e,this.onChange=mt=>{},this.onTouched=()=>{}}setProperty(ee,$e){this._renderer.setProperty(this._elementRef.nativeElement,ee,$e)}registerOnTouched(ee){this.onTouched=ee}registerOnChange(ee){this.onChange=ee}setDisabledState(ee){this.setProperty("disabled",ee)}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(g.sFG),g.rXU(g.aKT))};static#t=this.\u0275dir=g.FsC({type:ne})}return ne})(),Re=(()=>{class ne extends vt{static#e=this.\u0275fac=function(){let ee;return function(mt){return(ee||(ee=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,features:[g.Vt3]})}return ne})();const tt=new g.nKC("NgValueAccessor"),de={provide:tt,useExisting:(0,g.Rfq)(()=>Fe),multi:!0};let Fe=(()=>{class ne extends Re{writeValue(ee){this.setProperty("checked",ee)}static#e=this.\u0275fac=function(){let ee;return function(mt){return(ee||(ee=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function($e,mt){1&$e&&g.bIt("change",function(ir){return mt.onChange(ir.target.checked)})("blur",function(){return mt.onTouched()})},features:[g.Jv_([de]),g.Vt3]})}return ne})();const _t={provide:tt,useExisting:(0,g.Rfq)(()=>he),multi:!0},Be=new g.nKC("CompositionEventMode");let he=(()=>{class ne extends vt{constructor(ee,$e,mt){super(ee,$e),this._compositionMode=mt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function at(){const ne=(0,o.QT)()?(0,o.QT)().getUserAgent():"";return/android (\d+)/.test(ne.toLowerCase())}())}writeValue(ee){this.setProperty("value",ee??"")}_handleInput(ee){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ee)}_compositionStart(){this._composing=!0}_compositionEnd(ee){this._composing=!1,this._compositionMode&&this.onChange(ee)}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(Be,8))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function($e,mt){1&$e&&g.bIt("input",function(ir){return mt._handleInput(ir.target.value)})("blur",function(){return mt.onTouched()})("compositionstart",function(){return mt._compositionStart()})("compositionend",function(ir){return mt._compositionEnd(ir.target.value)})},features:[g.Jv_([_t]),g.Vt3]})}return ne})();function He(ne){return null==ne||("string"==typeof ne||Array.isArray(ne))&&0===ne.length}function Se(ne){return null!=ne&&"number"==typeof ne.length}const it=new g.nKC("NgValidators"),dt=new g.nKC("NgAsyncValidators"),jt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Wt{static min(fe){return function wn(ne){return fe=>{if(He(fe.value)||He(ne))return null;const ee=parseFloat(fe.value);return!isNaN(ee)&&ee{if(He(fe.value)||He(ne))return null;const ee=parseFloat(fe.value);return!isNaN(ee)&&ee>ne?{max:{max:ne,actual:fe.value}}:null}}(fe)}static required(fe){return di(fe)}static requiredTrue(fe){return ai(fe)}static email(fe){return function Li(ne){return He(ne.value)||jt.test(ne.value)?null:{email:!0}}(fe)}static minLength(fe){return function $i(ne){return fe=>He(fe.value)||!Se(fe.value)?null:fe.value.lengthSe(fe.value)&&fe.value.length>ne?{maxlength:{requiredLength:ne,actualLength:fe.value.length}}:null}(fe)}static pattern(fe){return function ui(ne){if(!ne)return dn;let fe,ee;return"string"==typeof ne?(ee="","^"!==ne.charAt(0)&&(ee+="^"),ee+=ne,"$"!==ne.charAt(ne.length-1)&&(ee+="$"),fe=new RegExp(ee)):(ee=ne.toString(),fe=ne),$e=>{if(He($e.value))return null;const mt=$e.value;return fe.test(mt)?null:{pattern:{requiredPattern:ee,actualValue:mt}}}}(fe)}static nullValidator(fe){return null}static compose(fe){return H(fe)}static composeAsync(fe){return xe(fe)}}function di(ne){return He(ne.value)?{required:!0}:null}function ai(ne){return!0===ne.value?null:{required:!0}}function dn(ne){return null}function nt(ne){return null!=ne}function ht(ne){return(0,g.jNT)(ne)?(0,V.H)(ne):ne}function Je(ne){let fe={};return ne.forEach(ee=>{fe=null!=ee?{...fe,...ee}:fe}),0===Object.keys(fe).length?null:fe}function Ae(ne,fe){return fe.map(ee=>ee(ne))}function Ze(ne){return ne.map(fe=>function Ue(ne){return!ne.validate}(fe)?fe:ee=>fe.validate(ee))}function H(ne){if(!ne)return null;const fe=ne.filter(nt);return 0==fe.length?null:function(ee){return Je(Ae(ee,fe))}}function te(ne){return null!=ne?H(Ze(ne)):null}function xe(ne){if(!ne)return null;const fe=ne.filter(nt);return 0==fe.length?null:function(ee){return function Ve(...ne){const fe=(0,Ee.ms)(ne),{args:ee,keys:$e}=(0,De.D)(ne),mt=new oe.c(Gn=>{const{length:ir}=ee;if(!ir)return void Gn.complete();const zr=new Array(ir);let ra=ir,bi=ir;for(let Bo=0;Bo{So||(So=!0,bi--),zr[Bo]=Pa},()=>ra--,void 0,()=>{(!ra||!So)&&(bi||Gn.next($e?(0,Te.e)($e,zr):zr),Gn.complete())}))}});return fe?mt.pipe((0,ge.I)(fe)):mt}(Ae(ee,fe).map(ht)).pipe((0,ze.T)(Je))}}function Ce(ne){return null!=ne?xe(Ze(ne)):null}function zt(ne,fe){return null===ne?[fe]:Array.isArray(ne)?[...ne,fe]:[ne,fe]}function rt(ne){return ne._rawValidators}function xt(ne){return ne._rawAsyncValidators}function Gt(ne){return ne?Array.isArray(ne)?ne:[ne]:[]}function xn(ne,fe){return Array.isArray(ne)?ne.includes(fe):ne===fe}function In(ne,fe){const ee=Gt(fe);return Gt(ne).forEach(mt=>{xn(ee,mt)||ee.push(mt)}),ee}function xi(ne,fe){return Gt(fe).filter(ee=>!xn(ne,ee))}class or{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(fe){this._rawValidators=fe||[],this._composedValidatorFn=te(this._rawValidators)}_setAsyncValidators(fe){this._rawAsyncValidators=fe||[],this._composedAsyncValidatorFn=Ce(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(fe){this._onDestroyCallbacks.push(fe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(fe=>fe()),this._onDestroyCallbacks=[]}reset(fe=void 0){this.control&&this.control.reset(fe)}hasError(fe,ee){return!!this.control&&this.control.hasError(fe,ee)}getError(fe,ee){return this.control?this.control.getError(fe,ee):null}}class ci extends or{get formDirective(){return null}get path(){return null}}class Dr extends or{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Tr{constructor(fe){this._cd=fe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Qn=(()=>{class ne extends Tr{constructor(ee){super(ee)}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(Dr,2))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($e,mt){2&$e&&g.AVh("ng-untouched",mt.isUntouched)("ng-touched",mt.isTouched)("ng-pristine",mt.isPristine)("ng-dirty",mt.isDirty)("ng-valid",mt.isValid)("ng-invalid",mt.isInvalid)("ng-pending",mt.isPending)},features:[g.Vt3]})}return ne})(),fi=(()=>{class ne extends Tr{constructor(ee){super(ee)}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(ci,10))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function($e,mt){2&$e&&g.AVh("ng-untouched",mt.isUntouched)("ng-touched",mt.isTouched)("ng-pristine",mt.isPristine)("ng-dirty",mt.isDirty)("ng-valid",mt.isValid)("ng-invalid",mt.isInvalid)("ng-pending",mt.isPending)("ng-submitted",mt.isSubmitted)},features:[g.Vt3]})}return ne})();const mo="VALID",Ss="INVALID",io="PENDING",Wo="DISABLED";function ic(ne){return(Jt(ne)?ne.validators:ne)||null}function kn(ne,fe){return(Jt(fe)?fe.asyncValidators:ne)||null}function Jt(ne){return null!=ne&&!Array.isArray(ne)&&"object"==typeof ne}function Un(ne,fe,ee){const $e=ne.controls;if(!(fe?Object.keys($e):$e).length)throw new g.wOt(1e3,"");if(!$e[ee])throw new g.wOt(1001,"")}function yt(ne,fe,ee){ne._forEachChild(($e,mt)=>{if(void 0===ee[mt])throw new g.wOt(1002,"")})}class ft{constructor(fe,ee){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(fe),this._assignAsyncValidators(ee)}get validator(){return this._composedValidatorFn}set validator(fe){this._rawValidators=this._composedValidatorFn=fe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(fe){this._rawAsyncValidators=this._composedAsyncValidatorFn=fe}get parent(){return this._parent}get valid(){return this.status===mo}get invalid(){return this.status===Ss}get pending(){return this.status==io}get disabled(){return this.status===Wo}get enabled(){return this.status!==Wo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(fe){this._assignValidators(fe)}setAsyncValidators(fe){this._assignAsyncValidators(fe)}addValidators(fe){this.setValidators(In(fe,this._rawValidators))}addAsyncValidators(fe){this.setAsyncValidators(In(fe,this._rawAsyncValidators))}removeValidators(fe){this.setValidators(xi(fe,this._rawValidators))}removeAsyncValidators(fe){this.setAsyncValidators(xi(fe,this._rawAsyncValidators))}hasValidator(fe){return xn(this._rawValidators,fe)}hasAsyncValidator(fe){return xn(this._rawAsyncValidators,fe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(fe={}){this.touched=!0,this._parent&&!fe.onlySelf&&this._parent.markAsTouched(fe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(fe=>fe.markAllAsTouched())}markAsUntouched(fe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ee=>{ee.markAsUntouched({onlySelf:!0})}),this._parent&&!fe.onlySelf&&this._parent._updateTouched(fe)}markAsDirty(fe={}){this.pristine=!1,this._parent&&!fe.onlySelf&&this._parent.markAsDirty(fe)}markAsPristine(fe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ee=>{ee.markAsPristine({onlySelf:!0})}),this._parent&&!fe.onlySelf&&this._parent._updatePristine(fe)}markAsPending(fe={}){this.status=io,!1!==fe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!fe.onlySelf&&this._parent.markAsPending(fe)}disable(fe={}){const ee=this._parentMarkedDirty(fe.onlySelf);this.status=Wo,this.errors=null,this._forEachChild($e=>{$e.disable({...fe,onlySelf:!0})}),this._updateValue(),!1!==fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...fe,skipPristineCheck:ee}),this._onDisabledChange.forEach($e=>$e(!0))}enable(fe={}){const ee=this._parentMarkedDirty(fe.onlySelf);this.status=mo,this._forEachChild($e=>{$e.enable({...fe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:fe.emitEvent}),this._updateAncestors({...fe,skipPristineCheck:ee}),this._onDisabledChange.forEach($e=>$e(!1))}_updateAncestors(fe){this._parent&&!fe.onlySelf&&(this._parent.updateValueAndValidity(fe),fe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(fe){this._parent=fe}getRawValue(){return this.value}updateValueAndValidity(fe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mo||this.status===io)&&this._runAsyncValidator(fe.emitEvent)),!1!==fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!fe.onlySelf&&this._parent.updateValueAndValidity(fe)}_updateTreeValidity(fe={emitEvent:!0}){this._forEachChild(ee=>ee._updateTreeValidity(fe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:fe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wo:mo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(fe){if(this.asyncValidator){this.status=io,this._hasOwnPendingAsyncValidator=!0;const ee=ht(this.asyncValidator(this));this._asyncValidationSubscription=ee.subscribe($e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors($e,{emitEvent:fe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(fe,ee={}){this.errors=fe,this._updateControlsErrors(!1!==ee.emitEvent)}get(fe){let ee=fe;return null==ee||(Array.isArray(ee)||(ee=ee.split(".")),0===ee.length)?null:ee.reduce(($e,mt)=>$e&&$e._find(mt),this)}getError(fe,ee){const $e=ee?this.get(ee):this;return $e&&$e.errors?$e.errors[fe]:null}hasError(fe,ee){return!!this.getError(fe,ee)}get root(){let fe=this;for(;fe._parent;)fe=fe._parent;return fe}_updateControlsErrors(fe){this.status=this._calculateStatus(),fe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(fe)}_initObservables(){this.valueChanges=new g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?Wo:this.errors?Ss:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(io)?io:this._anyControlsHaveStatus(Ss)?Ss:mo}_anyControlsHaveStatus(fe){return this._anyControls(ee=>ee.status===fe)}_anyControlsDirty(){return this._anyControls(fe=>fe.dirty)}_anyControlsTouched(){return this._anyControls(fe=>fe.touched)}_updatePristine(fe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!fe.onlySelf&&this._parent._updatePristine(fe)}_updateTouched(fe={}){this.touched=this._anyControlsTouched(),this._parent&&!fe.onlySelf&&this._parent._updateTouched(fe)}_registerOnCollectionChange(fe){this._onCollectionChange=fe}_setUpdateStrategy(fe){Jt(fe)&&null!=fe.updateOn&&(this._updateOn=fe.updateOn)}_parentMarkedDirty(fe){return!fe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(fe){return null}_assignValidators(fe){this._rawValidators=Array.isArray(fe)?fe.slice():fe,this._composedValidatorFn=function jn(ne){return Array.isArray(ne)?te(ne):ne||null}(this._rawValidators)}_assignAsyncValidators(fe){this._rawAsyncValidators=Array.isArray(fe)?fe.slice():fe,this._composedAsyncValidatorFn=function It(ne){return Array.isArray(ne)?Ce(ne):ne||null}(this._rawAsyncValidators)}}class Pt extends ft{constructor(fe,ee,$e){super(ic(ee),kn($e,ee)),this.controls=fe,this._initObservables(),this._setUpdateStrategy(ee),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(fe,ee){return this.controls[fe]?this.controls[fe]:(this.controls[fe]=ee,ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange),ee)}addControl(fe,ee,$e={}){this.registerControl(fe,ee),this.updateValueAndValidity({emitEvent:$e.emitEvent}),this._onCollectionChange()}removeControl(fe,ee={}){this.controls[fe]&&this.controls[fe]._registerOnCollectionChange(()=>{}),delete this.controls[fe],this.updateValueAndValidity({emitEvent:ee.emitEvent}),this._onCollectionChange()}setControl(fe,ee,$e={}){this.controls[fe]&&this.controls[fe]._registerOnCollectionChange(()=>{}),delete this.controls[fe],ee&&this.registerControl(fe,ee),this.updateValueAndValidity({emitEvent:$e.emitEvent}),this._onCollectionChange()}contains(fe){return this.controls.hasOwnProperty(fe)&&this.controls[fe].enabled}setValue(fe,ee={}){yt(this,0,fe),Object.keys(fe).forEach($e=>{Un(this,!0,$e),this.controls[$e].setValue(fe[$e],{onlySelf:!0,emitEvent:ee.emitEvent})}),this.updateValueAndValidity(ee)}patchValue(fe,ee={}){null!=fe&&(Object.keys(fe).forEach($e=>{const mt=this.controls[$e];mt&&mt.patchValue(fe[$e],{onlySelf:!0,emitEvent:ee.emitEvent})}),this.updateValueAndValidity(ee))}reset(fe={},ee={}){this._forEachChild(($e,mt)=>{$e.reset(fe?fe[mt]:null,{onlySelf:!0,emitEvent:ee.emitEvent})}),this._updatePristine(ee),this._updateTouched(ee),this.updateValueAndValidity(ee)}getRawValue(){return this._reduceChildren({},(fe,ee,$e)=>(fe[$e]=ee.getRawValue(),fe))}_syncPendingControls(){let fe=this._reduceChildren(!1,(ee,$e)=>!!$e._syncPendingControls()||ee);return fe&&this.updateValueAndValidity({onlySelf:!0}),fe}_forEachChild(fe){Object.keys(this.controls).forEach(ee=>{const $e=this.controls[ee];$e&&fe($e,ee)})}_setUpControls(){this._forEachChild(fe=>{fe.setParent(this),fe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(fe){for(const[ee,$e]of Object.entries(this.controls))if(this.contains(ee)&&fe($e))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ee,$e,mt)=>(($e.enabled||this.disabled)&&(ee[mt]=$e.value),ee))}_reduceChildren(fe,ee){let $e=fe;return this._forEachChild((mt,Gn)=>{$e=ee($e,mt,Gn)}),$e}_allControlsDisabled(){for(const fe of Object.keys(this.controls))if(this.controls[fe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(fe){return this.controls.hasOwnProperty(fe)?this.controls[fe]:null}}const Cn=Pt,pn=ne=>ne instanceof Pt,tn=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Tt}),Tt="always";function Kt(ne,fe){return[...fe.path,ne]}function Vn(ne,fe,ee=Tt){Ni(ne,fe),fe.valueAccessor.writeValue(ne.value),(ne.disabled||"always"===ee)&&fe.valueAccessor.setDisabledState?.(ne.disabled),function lr(ne,fe){fe.valueAccessor.registerOnChange(ee=>{ne._pendingValue=ee,ne._pendingChange=!0,ne._pendingDirty=!0,"change"===ne.updateOn&&xs(ne,fe)})}(ne,fe),function ks(ne,fe){const ee=($e,mt)=>{fe.valueAccessor.writeValue($e),mt&&fe.viewToModelUpdate($e)};ne.registerOnChange(ee),fe._registerOnDestroy(()=>{ne._unregisterOnChange(ee)})}(ne,fe),function Gr(ne,fe){fe.valueAccessor.registerOnTouched(()=>{ne._pendingTouched=!0,"blur"===ne.updateOn&&ne._pendingChange&&xs(ne,fe),"submit"!==ne.updateOn&&ne.markAsTouched()})}(ne,fe),function ti(ne,fe){if(fe.valueAccessor.setDisabledState){const ee=$e=>{fe.valueAccessor.setDisabledState($e)};ne.registerOnDisabledChange(ee),fe._registerOnDestroy(()=>{ne._unregisterOnDisabledChange(ee)})}}(ne,fe)}function qn(ne,fe,ee=!0){const $e=()=>{};fe.valueAccessor&&(fe.valueAccessor.registerOnChange($e),fe.valueAccessor.registerOnTouched($e)),ii(ne,fe),ne&&(fe._invokeOnDestroyCallbacks(),ne._registerOnCollectionChange(()=>{}))}function pi(ne,fe){ne.forEach(ee=>{ee.registerOnValidatorChange&&ee.registerOnValidatorChange(fe)})}function Ni(ne,fe){const ee=rt(ne);null!==fe.validator?ne.setValidators(zt(ee,fe.validator)):"function"==typeof ee&&ne.setValidators([ee]);const $e=xt(ne);null!==fe.asyncValidator?ne.setAsyncValidators(zt($e,fe.asyncValidator)):"function"==typeof $e&&ne.setAsyncValidators([$e]);const mt=()=>ne.updateValueAndValidity();pi(fe._rawValidators,mt),pi(fe._rawAsyncValidators,mt)}function ii(ne,fe){let ee=!1;if(null!==ne){if(null!==fe.validator){const mt=rt(ne);if(Array.isArray(mt)&&mt.length>0){const Gn=mt.filter(ir=>ir!==fe.validator);Gn.length!==mt.length&&(ee=!0,ne.setValidators(Gn))}}if(null!==fe.asyncValidator){const mt=xt(ne);if(Array.isArray(mt)&&mt.length>0){const Gn=mt.filter(ir=>ir!==fe.asyncValidator);Gn.length!==mt.length&&(ee=!0,ne.setAsyncValidators(Gn))}}}const $e=()=>{};return pi(fe._rawValidators,$e),pi(fe._rawAsyncValidators,$e),ee}function xs(ne,fe){ne._pendingDirty&&ne.markAsDirty(),ne.setValue(ne._pendingValue,{emitModelToViewChange:!1}),fe.viewToModelUpdate(ne._pendingValue),ne._pendingChange=!1}function Vr(ne,fe){Ni(ne,fe)}function qo(ne,fe){if(!ne.hasOwnProperty("model"))return!1;const ee=ne.model;return!!ee.isFirstChange()||!Object.is(fe,ee.currentValue)}function oo(ne,fe){ne._syncPendingControls(),fe.forEach(ee=>{const $e=ee.control;"submit"===$e.updateOn&&$e._pendingChange&&(ee.viewToModelUpdate($e._pendingValue),$e._pendingChange=!1)})}function xo(ne,fe){if(!fe)return null;let ee,$e,mt;return Array.isArray(fe),fe.forEach(Gn=>{Gn.constructor===he?ee=Gn:function ea(ne){return Object.getPrototypeOf(ne.constructor)===Re}(Gn)?$e=Gn:mt=Gn}),mt||$e||ee||null}const Ma={provide:ci,useExisting:(0,g.Rfq)(()=>La)},ws=(()=>Promise.resolve())();let La=(()=>{class ne extends ci{constructor(ee,$e,mt){super(),this.callSetDisabledState=mt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.bkB,this.form=new Pt({},te(ee),Ce($e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ee){ws.then(()=>{const $e=this._findContainer(ee.path);ee.control=$e.registerControl(ee.name,ee.control),Vn(ee.control,ee,this.callSetDisabledState),ee.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(ee)})}getControl(ee){return this.form.get(ee.path)}removeControl(ee){ws.then(()=>{const $e=this._findContainer(ee.path);$e&&$e.removeControl(ee.name),this._directives.delete(ee)})}addFormGroup(ee){ws.then(()=>{const $e=this._findContainer(ee.path),mt=new Pt({});Vr(mt,ee),$e.registerControl(ee.name,mt),mt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ee){ws.then(()=>{const $e=this._findContainer(ee.path);$e&&$e.removeControl(ee.name)})}getFormGroup(ee){return this.form.get(ee.path)}updateModel(ee,$e){ws.then(()=>{this.form.get(ee.path).setValue($e)})}setValue(ee){this.control.setValue(ee)}onSubmit(ee){return this.submitted=!0,oo(this.form,this._directives),this.ngSubmit.emit(ee),"dialog"===ee?.target?.method}onReset(){this.resetForm()}resetForm(ee=void 0){this.form.reset(ee),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ee){return ee.pop(),ee.length?this.form.get(ee):this.form}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(it,10),g.rXU(dt,10),g.rXU(tn,8))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function($e,mt){1&$e&&g.bIt("submit",function(ir){return mt.onSubmit(ir)})("reset",function(){return mt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g.Jv_([Ma]),g.Vt3]})}return ne})();function ao(ne,fe){const ee=ne.indexOf(fe);ee>-1&&ne.splice(ee,1)}function l1(ne){return"object"==typeof ne&&null!==ne&&2===Object.keys(ne).length&&"value"in ne&&"disabled"in ne}const Hc=class extends ft{constructor(fe=null,ee,$e){super(ic(ee),kn($e,ee)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(fe),this._setUpdateStrategy(ee),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jt(ee)&&(ee.nonNullable||ee.initialValueIsDefault)&&(this.defaultValue=l1(fe)?fe.value:fe)}setValue(fe,ee={}){this.value=this._pendingValue=fe,this._onChange.length&&!1!==ee.emitModelToViewChange&&this._onChange.forEach($e=>$e(this.value,!1!==ee.emitViewToModelChange)),this.updateValueAndValidity(ee)}patchValue(fe,ee={}){this.setValue(fe,ee)}reset(fe=this.defaultValue,ee={}){this._applyFormState(fe),this.markAsPristine(ee),this.markAsUntouched(ee),this.setValue(this.value,ee),this._pendingChange=!1}_updateValue(){}_anyControls(fe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(fe){this._onChange.push(fe)}_unregisterOnChange(fe){ao(this._onChange,fe)}registerOnDisabledChange(fe){this._onDisabledChange.push(fe)}_unregisterOnDisabledChange(fe){ao(this._onDisabledChange,fe)}_forEachChild(fe){}_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(fe){l1(fe)?(this.value=this._pendingValue=fe.value,fe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=fe}},Ol=Hc,pl=ne=>ne instanceof Hc,tl={provide:Dr,useExisting:(0,g.Rfq)(()=>wo)},As=(()=>Promise.resolve())();let wo=(()=>{class ne extends Dr{constructor(ee,$e,mt,Gn,ir,zr){super(),this._changeDetectorRef=ir,this.callSetDisabledState=zr,this.control=new Hc,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=ee,this._setValidators($e),this._setAsyncValidators(mt),this.valueAccessor=xo(0,Gn)}ngOnChanges(ee){if(this._checkForErrors(),!this._registered||"name"in ee){if(this._registered&&(this._checkName(),this.formDirective)){const $e=ee.name.previousValue;this.formDirective.removeControl({name:$e,path:this._getPath($e)})}this._setUpControl()}"isDisabled"in ee&&this._updateDisabled(ee),qo(ee,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(ee){this.viewModel=ee,this.update.emit(ee)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Vn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(ee){As.then(()=>{this.control.setValue(ee,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(ee){const $e=ee.isDisabled.currentValue,mt=0!==$e&&(0,g.L39)($e);As.then(()=>{mt&&!this.control.disabled?this.control.disable():!mt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(ee){return this._parent?Kt(ee,this._parent):[ee]}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(ci,9),g.rXU(it,10),g.rXU(dt,10),g.rXU(tt,10),g.rXU(g.gRc,8),g.rXU(tn,8))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g.Jv_([tl]),g.Vt3,g.OA$]})}return ne})();const Ka={provide:tt,useExisting:(0,g.Rfq)(()=>hc),multi:!0};let hc=(()=>{class ne extends Re{writeValue(ee){this.setProperty("value",ee??"")}registerOnChange(ee){this.onChange=$e=>{ee(""==$e?null:parseFloat($e))}}static#e=this.\u0275fac=function(){let ee;return function(mt){return(ee||(ee=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function($e,mt){1&$e&&g.bIt("input",function(ir){return mt.onChange(ir.target.value)})("blur",function(){return mt.onTouched()})},features:[g.Jv_([Ka]),g.Vt3]})}return ne})(),fr=(()=>{class ne{static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275mod=g.$C({type:ne});static#n=this.\u0275inj=g.G2t({})}return ne})();const Ya={provide:tt,useExisting:(0,g.Rfq)(()=>za),multi:!0};let za=(()=>{class ne extends Re{writeValue(ee){this.setProperty("value",parseFloat(ee))}registerOnChange(ee){this.onChange=$e=>{ee(""==$e?null:parseFloat($e))}}static#e=this.\u0275fac=function(){let ee;return function(mt){return(ee||(ee=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function($e,mt){1&$e&&g.bIt("change",function(ir){return mt.onChange(ir.target.value)})("input",function(ir){return mt.onChange(ir.target.value)})("blur",function(){return mt.onTouched()})},features:[g.Jv_([Ya]),g.Vt3]})}return ne})();const qs=new g.nKC("NgModelWithFormControlWarning"),gr={provide:Dr,useExisting:(0,g.Rfq)(()=>il)};let il=(()=>{class ne extends Dr{set isDisabled(ee){}static#e=this._ngModelWarningSentOnce=!1;constructor(ee,$e,mt,Gn,ir){super(),this._ngModelWarningConfig=Gn,this.callSetDisabledState=ir,this.update=new g.bkB,this._ngModelWarningSent=!1,this._setValidators(ee),this._setAsyncValidators($e),this.valueAccessor=xo(0,mt)}ngOnChanges(ee){if(this._isControlChanged(ee)){const $e=ee.form.previousValue;$e&&qn($e,this,!1),Vn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}qo(ee,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ee){this.viewModel=ee,this.update.emit(ee)}_isControlChanged(ee){return ee.hasOwnProperty("form")}static#t=this.\u0275fac=function($e){return new($e||ne)(g.rXU(it,10),g.rXU(dt,10),g.rXU(tt,10),g.rXU(qs,8),g.rXU(tn,8))};static#n=this.\u0275dir=g.FsC({type:ne,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[g.Jv_([gr]),g.Vt3,g.OA$]})}return ne})();const Wr={provide:ci,useExisting:(0,g.Rfq)(()=>yi)};let yi=(()=>{class ne extends ci{constructor(ee,$e,mt){super(),this.callSetDisabledState=mt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new g.bkB,this._setValidators(ee),this._setAsyncValidators($e)}ngOnChanges(ee){this._checkFormPresent(),ee.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ii(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ee){const $e=this.form.get(ee.path);return Vn($e,ee,this.callSetDisabledState),$e.updateValueAndValidity({emitEvent:!1}),this.directives.push(ee),$e}getControl(ee){return this.form.get(ee.path)}removeControl(ee){qn(ee.control||null,ee,!1),function ta(ne,fe){const ee=ne.indexOf(fe);ee>-1&&ne.splice(ee,1)}(this.directives,ee)}addFormGroup(ee){this._setUpFormContainer(ee)}removeFormGroup(ee){this._cleanUpFormContainer(ee)}getFormGroup(ee){return this.form.get(ee.path)}addFormArray(ee){this._setUpFormContainer(ee)}removeFormArray(ee){this._cleanUpFormContainer(ee)}getFormArray(ee){return this.form.get(ee.path)}updateModel(ee,$e){this.form.get(ee.path).setValue($e)}onSubmit(ee){return this.submitted=!0,oo(this.form,this.directives),this.ngSubmit.emit(ee),"dialog"===ee?.target?.method}onReset(){this.resetForm()}resetForm(ee=void 0){this.form.reset(ee),this.submitted=!1}_updateDomValue(){this.directives.forEach(ee=>{const $e=ee.control,mt=this.form.get(ee.path);$e!==mt&&(qn($e||null,ee),pl(mt)&&(Vn(mt,ee,this.callSetDisabledState),ee.control=mt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ee){const $e=this.form.get(ee.path);Vr($e,ee),$e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ee){if(this.form){const $e=this.form.get(ee.path);$e&&function Gs(ne,fe){return ii(ne,fe)}($e,ee)&&$e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ni(this.form,this),this._oldForm&&ii(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(it,10),g.rXU(dt,10),g.rXU(tn,8))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","formGroup",""]],hostBindings:function($e,mt){1&$e&&g.bIt("submit",function(ir){return mt.onSubmit(ir)})("reset",function(){return mt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g.Jv_([Wr]),g.Vt3,g.OA$]})}return ne})();const ka={provide:Dr,useExisting:(0,g.Rfq)(()=>Is)};let Is=(()=>{class ne extends Dr{set isDisabled(ee){}static#e=this._ngModelWarningSentOnce=!1;constructor(ee,$e,mt,Gn,ir){super(),this._ngModelWarningConfig=ir,this._added=!1,this.name=null,this.update=new g.bkB,this._ngModelWarningSent=!1,this._parent=ee,this._setValidators($e),this._setAsyncValidators(mt),this.valueAccessor=xo(0,Gn)}ngOnChanges(ee){this._added||this._setUpControl(),qo(ee,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ee){this.viewModel=ee,this.update.emit(ee)}get path(){return Kt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function($e){return new($e||ne)(g.rXU(ci,13),g.rXU(it,10),g.rXU(dt,10),g.rXU(tt,10),g.rXU(qs,8))};static#n=this.\u0275dir=g.FsC({type:ne,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[g.Jv_([ka]),g.Vt3,g.OA$]})}return ne})();const wc={provide:tt,useExisting:(0,g.Rfq)(()=>rr),multi:!0};function Es(ne,fe){return null==ne?`${fe}`:(fe&&"object"==typeof fe&&(fe="Object"),`${ne}: ${fe}`.slice(0,50))}let rr=(()=>{class ne extends Re{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ee){this._compareWith=ee}writeValue(ee){this.value=ee;const mt=Es(this._getOptionId(ee),ee);this.setProperty("value",mt)}registerOnChange(ee){this.onChange=$e=>{this.value=this._getOptionValue($e),ee(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(ee){for(const $e of this._optionMap.keys())if(this._compareWith(this._optionMap.get($e),ee))return $e;return null}_getOptionValue(ee){const $e=function ur(ne){return ne.split(":")[0]}(ee);return this._optionMap.has($e)?this._optionMap.get($e):ee}static#e=this.\u0275fac=function(){let ee;return function(mt){return(ee||(ee=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function($e,mt){1&$e&&g.bIt("change",function(ir){return mt.onChange(ir.target.value)})("blur",function(){return mt.onTouched()})},inputs:{compareWith:"compareWith"},features:[g.Jv_([wc]),g.Vt3]})}return ne})(),ml=(()=>{class ne{constructor(ee,$e,mt){this._element=ee,this._renderer=$e,this._select=mt,this._select&&(this.id=this._select._registerOption())}set ngValue(ee){null!=this._select&&(this._select._optionMap.set(this.id,ee),this._setElementValue(Es(this.id,ee)),this._select.writeValue(this._select.value))}set value(ee){this._setElementValue(ee),this._select&&this._select.writeValue(this._select.value)}_setElementValue(ee){this._renderer.setProperty(this._element.nativeElement,"value",ee)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(g.aKT),g.rXU(g.sFG),g.rXU(rr,9))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return ne})();const Lc={provide:tt,useExisting:(0,g.Rfq)(()=>ua),multi:!0};function Qs(ne,fe){return null==ne?`${fe}`:("string"==typeof fe&&(fe=`'${fe}'`),fe&&"object"==typeof fe&&(fe="Object"),`${ne}: ${fe}`.slice(0,50))}let ua=(()=>{class ne extends Re{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(ee){this._compareWith=ee}writeValue(ee){let $e;if(this.value=ee,Array.isArray(ee)){const mt=ee.map(Gn=>this._getOptionId(Gn));$e=(Gn,ir)=>{Gn._setSelected(mt.indexOf(ir.toString())>-1)}}else $e=(mt,Gn)=>{mt._setSelected(!1)};this._optionMap.forEach($e)}registerOnChange(ee){this.onChange=$e=>{const mt=[],Gn=$e.selectedOptions;if(void 0!==Gn){const ir=Gn;for(let zr=0;zr{class ne{constructor(ee,$e,mt){this._element=ee,this._renderer=$e,this._select=mt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(ee){null!=this._select&&(this._value=ee,this._setElementValue(Qs(this.id,ee)),this._select.writeValue(this._select.value))}set value(ee){this._select?(this._value=ee,this._setElementValue(Qs(this.id,ee)),this._select.writeValue(this._select.value)):this._setElementValue(ee)}_setElementValue(ee){this._renderer.setProperty(this._element.nativeElement,"value",ee)}_setSelected(ee){this._renderer.setProperty(this._element.nativeElement,"selected",ee)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(g.aKT),g.rXU(g.sFG),g.rXU(ua,9))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return ne})(),ia=(()=>{class ne{constructor(){this._validator=dn}ngOnChanges(ee){if(this.inputName in ee){const $e=this.normalizeInput(ee[this.inputName].currentValue);this._enabled=this.enabled($e),this._validator=this._enabled?this.createValidator($e):dn,this._onChange&&this._onChange()}}validate(ee){return this._validator(ee)}registerOnValidatorChange(ee){this._onChange=ee}enabled(ee){return null!=ee}static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275dir=g.FsC({type:ne,features:[g.OA$]})}return ne})();const Ll={provide:it,useExisting:(0,g.Rfq)(()=>Lr),multi:!0},Wc={provide:it,useExisting:(0,g.Rfq)(()=>vo),multi:!0};let Lr=(()=>{class ne extends ia{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=g.L39,this.createValidator=ee=>di}enabled(ee){return ee}static#e=this.\u0275fac=function(){let ee;return function(mt){return(ee||(ee=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function($e,mt){2&$e&&g.BMQ("required",mt._enabled?"":null)},inputs:{required:"required"},features:[g.Jv_([Ll]),g.Vt3]})}return ne})(),vo=(()=>{class ne extends Lr{constructor(){super(...arguments),this.createValidator=ee=>ai}static#e=this.\u0275fac=function(){let ee;return function(mt){return(ee||(ee=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function($e,mt){2&$e&&g.BMQ("required",mt._enabled?"":null)},features:[g.Jv_([Wc]),g.Vt3]})}return ne})(),qr=(()=>{class ne{static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275mod=g.$C({type:ne});static#n=this.\u0275inj=g.G2t({imports:[fr]})}return ne})();class sc extends ft{constructor(fe,ee,$e){super(ic(ee),kn($e,ee)),this.controls=fe,this._initObservables(),this._setUpdateStrategy(ee),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(fe){return this.controls[this._adjustIndex(fe)]}push(fe,ee={}){this.controls.push(fe),this._registerControl(fe),this.updateValueAndValidity({emitEvent:ee.emitEvent}),this._onCollectionChange()}insert(fe,ee,$e={}){this.controls.splice(fe,0,ee),this._registerControl(ee),this.updateValueAndValidity({emitEvent:$e.emitEvent})}removeAt(fe,ee={}){let $e=this._adjustIndex(fe);$e<0&&($e=0),this.controls[$e]&&this.controls[$e]._registerOnCollectionChange(()=>{}),this.controls.splice($e,1),this.updateValueAndValidity({emitEvent:ee.emitEvent})}setControl(fe,ee,$e={}){let mt=this._adjustIndex(fe);mt<0&&(mt=0),this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),this.controls.splice(mt,1),ee&&(this.controls.splice(mt,0,ee),this._registerControl(ee)),this.updateValueAndValidity({emitEvent:$e.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(fe,ee={}){yt(this,0,fe),fe.forEach(($e,mt)=>{Un(this,!1,mt),this.at(mt).setValue($e,{onlySelf:!0,emitEvent:ee.emitEvent})}),this.updateValueAndValidity(ee)}patchValue(fe,ee={}){null!=fe&&(fe.forEach(($e,mt)=>{this.at(mt)&&this.at(mt).patchValue($e,{onlySelf:!0,emitEvent:ee.emitEvent})}),this.updateValueAndValidity(ee))}reset(fe=[],ee={}){this._forEachChild(($e,mt)=>{$e.reset(fe[mt],{onlySelf:!0,emitEvent:ee.emitEvent})}),this._updatePristine(ee),this._updateTouched(ee),this.updateValueAndValidity(ee)}getRawValue(){return this.controls.map(fe=>fe.getRawValue())}clear(fe={}){this.controls.length<1||(this._forEachChild(ee=>ee._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:fe.emitEvent}))}_adjustIndex(fe){return fe<0?fe+this.length:fe}_syncPendingControls(){let fe=this.controls.reduce((ee,$e)=>!!$e._syncPendingControls()||ee,!1);return fe&&this.updateValueAndValidity({onlySelf:!0}),fe}_forEachChild(fe){this.controls.forEach((ee,$e)=>{fe(ee,$e)})}_updateValue(){this.value=this.controls.filter(fe=>fe.enabled||this.disabled).map(fe=>fe.value)}_anyControls(fe){return this.controls.some(ee=>ee.enabled&&fe(ee))}_setUpControls(){this._forEachChild(fe=>this._registerControl(fe))}_allControlsDisabled(){for(const fe of this.controls)if(fe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(fe){fe.setParent(this),fe._registerOnCollectionChange(this._onCollectionChange)}_find(fe){return this.at(fe)??null}}const Rt=ne=>ne instanceof sc;let nn=(()=>{class ne{static withConfig(ee){return{ngModule:ne,providers:[{provide:tn,useValue:ee.callSetDisabledState??Tt}]}}static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275mod=g.$C({type:ne});static#n=this.\u0275inj=g.G2t({imports:[qr]})}return ne})(),Qt=(()=>{class ne{static withConfig(ee){return{ngModule:ne,providers:[{provide:qs,useValue:ee.warnOnNgModelWithFormControl??"always"},{provide:tn,useValue:ee.callSetDisabledState??Tt}]}}static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275mod=g.$C({type:ne});static#n=this.\u0275inj=g.G2t({imports:[qr]})}return ne})()},6098:(vn,J,F)=>{"use strict";F.d(J,{B7:()=>jt,B8:()=>Je,hE:()=>Dr,up:()=>Ki});var g=F(2978),o=F(6610);class V extends o.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends V{static makeCurrent(){(0,o.ZD)(new oe)}onAndCancel(kn,It,Jt){return kn.addEventListener(It,Jt),()=>{kn.removeEventListener(It,Jt)}}dispatchEvent(kn,It){kn.dispatchEvent(It)}remove(kn){kn.parentNode&&kn.parentNode.removeChild(kn)}createElement(kn,It){return(It=It||this.getDefaultDocument()).createElement(kn)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(kn){return kn.nodeType===Node.ELEMENT_NODE}isShadowRoot(kn){return kn instanceof DocumentFragment}getGlobalEventTarget(kn,It){return"window"===It?window:"document"===It?kn:"body"===It?kn.body:null}getBaseHref(kn){const It=function pe(){return De=De||document.querySelector("base"),De?De.getAttribute("href"):null}();return null==It?null:function be(jn){Ee=Ee||document.createElement("a"),Ee.setAttribute("href",jn);const kn=Ee.pathname;return"/"===kn.charAt(0)?kn:`/${kn}`}(It)}resetBaseElement(){De=null}getUserAgent(){return window.navigator.userAgent}getCookie(kn){return(0,o._b)(document.cookie,kn)}}let Ee,De=null,Te=(()=>{class jn{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();const Ve=new g.nKC("EventManagerPlugins");let ze=(()=>{class jn{constructor(It,Jt){this._zone=Jt,this._eventNameToPlugin=new Map,It.forEach(Un=>{Un.manager=this}),this._plugins=It.slice().reverse()}addEventListener(It,Jt,Un){return this._findPluginFor(Jt).addEventListener(It,Jt,Un)}getZone(){return this._zone}_findPluginFor(It){let Jt=this._eventNameToPlugin.get(It);if(Jt)return Jt;if(Jt=this._plugins.find(yt=>yt.supports(It)),!Jt)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(It,Jt),Jt}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(Ve),g.KVO(g.SKi))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();class vt{constructor(kn){this._doc=kn}}const Re="ng-app-id";let tt=(()=>{class jn{constructor(It,Jt,Un,yt={}){this.doc=It,this.appId=Jt,this.nonce=Un,this.platformId=yt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,o.Vy)(yt),this.resetHostNodes()}addStyles(It){for(const Jt of It)1===this.changeUsageCount(Jt,1)&&this.onStyleAdded(Jt)}removeStyles(It){for(const Jt of It)this.changeUsageCount(Jt,-1)<=0&&this.onStyleRemoved(Jt)}ngOnDestroy(){const It=this.styleNodesInDOM;It&&(It.forEach(Jt=>Jt.remove()),It.clear());for(const Jt of this.getAllStyles())this.onStyleRemoved(Jt);this.resetHostNodes()}addHost(It){this.hostNodes.add(It);for(const Jt of this.getAllStyles())this.addStyleToHost(It,Jt)}removeHost(It){this.hostNodes.delete(It)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(It){for(const Jt of this.hostNodes)this.addStyleToHost(Jt,It)}onStyleRemoved(It){const Jt=this.styleRef;Jt.get(It)?.elements?.forEach(Un=>Un.remove()),Jt.delete(It)}collectServerRenderedStyles(){const It=this.doc.head?.querySelectorAll(`style[${Re}="${this.appId}"]`);if(It?.length){const Jt=new Map;return It.forEach(Un=>{null!=Un.textContent&&Jt.set(Un.textContent,Un)}),Jt}return null}changeUsageCount(It,Jt){const Un=this.styleRef;if(Un.has(It)){const yt=Un.get(It);return yt.usage+=Jt,yt.usage}return Un.set(It,{usage:Jt,elements:[]}),Jt}getStyleElement(It,Jt){const Un=this.styleNodesInDOM,yt=Un?.get(Jt);if(yt?.parentNode===It)return Un.delete(Jt),yt.removeAttribute(Re),yt;{const ft=this.doc.createElement("style");return this.nonce&&ft.setAttribute("nonce",this.nonce),ft.textContent=Jt,this.platformIsServer&&ft.setAttribute(Re,this.appId),ft}}addStyleToHost(It,Jt){const Un=this.getStyleElement(It,Jt);It.appendChild(Un);const yt=this.styleRef,ft=yt.get(Jt)?.elements;ft?ft.push(Un):yt.set(Jt,{elements:[Un],usage:1})}resetHostNodes(){const It=this.hostNodes;It.clear(),It.add(this.doc.head)}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();const de={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/"},Fe=/%COMP%/g,He=new g.nKC("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function dt(jn,kn){return kn.map(It=>It.replace(Fe,jn))}let jt=(()=>{class jn{constructor(It,Jt,Un,yt,ft,Pt,Cn,pn=null){this.eventManager=It,this.sharedStylesHost=Jt,this.appId=Un,this.removeStylesOnCompDestroy=yt,this.doc=ft,this.platformId=Pt,this.ngZone=Cn,this.nonce=pn,this.rendererByCompId=new Map,this.platformIsServer=(0,o.Vy)(Pt),this.defaultRenderer=new Wt(It,ft,Cn,this.platformIsServer)}createRenderer(It,Jt){if(!It||!Jt)return this.defaultRenderer;this.platformIsServer&&Jt.encapsulation===g.gXe.ShadowDom&&(Jt={...Jt,encapsulation:g.gXe.Emulated});const Un=this.getOrCreateRenderer(It,Jt);return Un instanceof $i?Un.applyToHost(It):Un instanceof Li&&Un.applyStyles(),Un}getOrCreateRenderer(It,Jt){const Un=this.rendererByCompId;let yt=Un.get(Jt.id);if(!yt){const ft=this.doc,Pt=this.ngZone,Cn=this.eventManager,pn=this.sharedStylesHost,Di=this.removeStylesOnCompDestroy,nr=this.platformIsServer;switch(Jt.encapsulation){case g.gXe.Emulated:yt=new $i(Cn,pn,Jt,this.appId,Di,ft,Pt,nr);break;case g.gXe.ShadowDom:return new ai(Cn,pn,It,Jt,ft,Pt,this.nonce,nr);default:yt=new Li(Cn,pn,Jt,Di,ft,Pt,nr)}Un.set(Jt.id,yt)}return yt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(ze),g.KVO(tt),g.KVO(g.sZ2),g.KVO(He),g.KVO(o.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();class Wt{constructor(kn,It,Jt,Un){this.eventManager=kn,this.doc=It,this.ngZone=Jt,this.platformIsServer=Un,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(kn,It){return It?this.doc.createElementNS(de[It]||It,kn):this.doc.createElement(kn)}createComment(kn){return this.doc.createComment(kn)}createText(kn){return this.doc.createTextNode(kn)}appendChild(kn,It){(di(kn)?kn.content:kn).appendChild(It)}insertBefore(kn,It,Jt){kn&&(di(kn)?kn.content:kn).insertBefore(It,Jt)}removeChild(kn,It){kn&&kn.removeChild(It)}selectRootElement(kn,It){let Jt="string"==typeof kn?this.doc.querySelector(kn):kn;if(!Jt)throw new g.wOt(-5104,!1);return It||(Jt.textContent=""),Jt}parentNode(kn){return kn.parentNode}nextSibling(kn){return kn.nextSibling}setAttribute(kn,It,Jt,Un){if(Un){It=Un+":"+It;const yt=de[Un];yt?kn.setAttributeNS(yt,It,Jt):kn.setAttribute(It,Jt)}else kn.setAttribute(It,Jt)}removeAttribute(kn,It,Jt){if(Jt){const Un=de[Jt];Un?kn.removeAttributeNS(Un,It):kn.removeAttribute(`${Jt}:${It}`)}else kn.removeAttribute(It)}addClass(kn,It){kn.classList.add(It)}removeClass(kn,It){kn.classList.remove(It)}setStyle(kn,It,Jt,Un){Un&(g.czy.DashCase|g.czy.Important)?kn.style.setProperty(It,Jt,Un&g.czy.Important?"important":""):kn.style[It]=Jt}removeStyle(kn,It,Jt){Jt&g.czy.DashCase?kn.style.removeProperty(It):kn.style[It]=""}setProperty(kn,It,Jt){kn[It]=Jt}setValue(kn,It){kn.nodeValue=It}listen(kn,It,Jt){if("string"==typeof kn&&!(kn=(0,o.QT)().getGlobalEventTarget(this.doc,kn)))throw new Error(`Unsupported event target ${kn} for event ${It}`);return this.eventManager.addEventListener(kn,It,this.decoratePreventDefault(Jt))}decoratePreventDefault(kn){return It=>{if("__ngUnwrap__"===It)return kn;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>kn(It)):kn(It))&&It.preventDefault()}}}function di(jn){return"TEMPLATE"===jn.tagName&&void 0!==jn.content}class ai extends Wt{constructor(kn,It,Jt,Un,yt,ft,Pt,Cn){super(kn,yt,ft,Cn),this.sharedStylesHost=It,this.hostEl=Jt,this.shadowRoot=Jt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const pn=dt(Un.id,Un.styles);for(const Di of pn){const nr=document.createElement("style");Pt&&nr.setAttribute("nonce",Pt),nr.textContent=Di,this.shadowRoot.appendChild(nr)}}nodeOrShadowRoot(kn){return kn===this.hostEl?this.shadowRoot:kn}appendChild(kn,It){return super.appendChild(this.nodeOrShadowRoot(kn),It)}insertBefore(kn,It,Jt){return super.insertBefore(this.nodeOrShadowRoot(kn),It,Jt)}removeChild(kn,It){return super.removeChild(this.nodeOrShadowRoot(kn),It)}parentNode(kn){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(kn)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Li extends Wt{constructor(kn,It,Jt,Un,yt,ft,Pt,Cn){super(kn,yt,ft,Pt),this.sharedStylesHost=It,this.removeStylesOnCompDestroy=Un,this.styles=Cn?dt(Cn,Jt.styles):Jt.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class $i extends Li{constructor(kn,It,Jt,Un,yt,ft,Pt,Cn){const pn=Un+"-"+Jt.id;super(kn,It,Jt,yt,ft,Pt,Cn,pn),this.contentAttr=function Se(jn){return"_ngcontent-%COMP%".replace(Fe,jn)}(pn),this.hostAttr=function it(jn){return"_nghost-%COMP%".replace(Fe,jn)}(pn)}applyToHost(kn){this.applyStyles(),this.setAttribute(kn,this.hostAttr,"")}createElement(kn,It){const Jt=super.createElement(kn,It);return super.setAttribute(Jt,this.contentAttr,""),Jt}}let Hr=(()=>{class jn extends vt{constructor(It){super(It)}supports(It){return!0}addEventListener(It,Jt,Un){return It.addEventListener(Jt,Un,!1),()=>this.removeEventListener(It,Jt,Un)}removeEventListener(It,Jt,Un){return It.removeEventListener(Jt,Un)}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();const ui=["alt","control","meta","shift"],dn={"\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"},nt={alt:jn=>jn.altKey,control:jn=>jn.ctrlKey,meta:jn=>jn.metaKey,shift:jn=>jn.shiftKey};let ht=(()=>{class jn extends vt{constructor(It){super(It)}supports(It){return null!=jn.parseEventName(It)}addEventListener(It,Jt,Un){const yt=jn.parseEventName(Jt),ft=jn.eventCallback(yt.fullKey,Un,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.QT)().onAndCancel(It,yt.domEventName,ft))}static parseEventName(It){const Jt=It.toLowerCase().split("."),Un=Jt.shift();if(0===Jt.length||"keydown"!==Un&&"keyup"!==Un)return null;const yt=jn._normalizeKey(Jt.pop());let ft="",Pt=Jt.indexOf("code");if(Pt>-1&&(Jt.splice(Pt,1),ft="code."),ui.forEach(pn=>{const Di=Jt.indexOf(pn);Di>-1&&(Jt.splice(Di,1),ft+=pn+".")}),ft+=yt,0!=Jt.length||0===yt.length)return null;const Cn={};return Cn.domEventName=Un,Cn.fullKey=ft,Cn}static matchEventFullKeyCode(It,Jt){let Un=dn[It.key]||It.key,yt="";return Jt.indexOf("code.")>-1&&(Un=It.code,yt="code."),!(null==Un||!Un)&&(Un=Un.toLowerCase()," "===Un?Un="space":"."===Un&&(Un="dot"),ui.forEach(ft=>{ft!==Un&&(0,nt[ft])(It)&&(yt+=ft+".")}),yt+=Un,yt===Jt)}static eventCallback(It,Jt,Un){return yt=>{jn.matchEventFullKeyCode(yt,It)&&Un.runGuarded(()=>Jt(yt))}}static _normalizeKey(It){return"esc"===It?"escape":It}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();function Je(jn,kn){return(0,g.TL3)({rootComponent:jn,...Ue(kn)})}function Ue(jn){return{appProviders:[...Gt,...jn?.providers??[]],platformProviders:Ce}}const Ce=[{provide:g.Agw,useValue:o.AJ},{provide:g.PLl,useValue:function H(){oe.makeCurrent()},multi:!0},{provide:o.qQ,useFactory:function xe(){return(0,g.TL$)(document),document},deps:[]}],Gt=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function te(){return new g.zcH},deps:[]},{provide:Ve,useClass:Hr,multi:!0,deps:[o.qQ,g.SKi,g.Agw]},{provide:Ve,useClass:ht,multi:!0,deps:[o.qQ]},jt,tt,ze,{provide:g._9s,useExisting:jt},{provide:o.N0,useClass:Te,deps:[]},[]];let Dr=(()=>{class jn{constructor(It){this._doc=It}getTitle(){return this._doc.title}setTitle(It){this._doc.title=It||""}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ))};static#t=this.\u0275prov=g.jDH({token:jn,factory:function(Jt){let Un=null;return Un=Jt?new Jt:function ci(){return new Dr((0,g.KVO)(o.qQ))}(),Un},providedIn:"root"})}return jn})();typeof window<"u"&&window;let Ki=(()=>{class jn{static#e=this.\u0275fac=function(Jt){return new(Jt||jn)};static#t=this.\u0275prov=g.jDH({token:jn,factory:function(Jt){let Un=null;return Un=Jt?new(Jt||jn):g.KVO(so),Un},providedIn:"root"})}return jn})(),so=(()=>{class jn extends Ki{constructor(It){super(),this._doc=It}sanitize(It,Jt){if(null==Jt)return null;switch(It){case g.WPN.NONE:return Jt;case g.WPN.HTML:return(0,g.ZF7)(Jt,"HTML")?(0,g.rcV)(Jt):(0,g.h9k)(this._doc,String(Jt)).toString();case g.WPN.STYLE:return(0,g.ZF7)(Jt,"Style")?(0,g.rcV)(Jt):Jt;case g.WPN.SCRIPT:if((0,g.ZF7)(Jt,"Script"))return(0,g.rcV)(Jt);throw new g.wOt(5200,!1);case g.WPN.URL:return(0,g.ZF7)(Jt,"URL")?(0,g.rcV)(Jt):(0,g.$MX)(String(Jt));case g.WPN.RESOURCE_URL:if((0,g.ZF7)(Jt,"ResourceURL"))return(0,g.rcV)(Jt);throw new g.wOt(5201,!1);default:throw new g.wOt(5202,!1)}}bypassSecurityTrustHtml(It){return(0,g.Kcf)(It)}bypassSecurityTrustStyle(It){return(0,g.cWb)(It)}bypassSecurityTrustScript(It){return(0,g.UyX)(It)}bypassSecurityTrustUrl(It){return(0,g.osQ)(It)}bypassSecurityTrustResourceUrl(It){return(0,g.e5t)(It)}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ))};static#t=this.\u0275prov=g.jDH({token:jn,factory:function(Jt){let Un=null;return Un=Jt?new Jt:function Ys(jn){return new so(jn.get(o.qQ))}(g.KVO(g.zZn)),Un},providedIn:"root"})}return jn})()},1040:(vn,J,F)=>{"use strict";F.d(J,{nX:()=>qs,wF:()=>Ps,Z:()=>ta,Kp:()=>Ud,vX:()=>Z1,AL:()=>na,Ix:()=>Za,Wk:()=>ac,wQ:()=>R1,iI:()=>w1,n3:()=>ns,lh:()=>Wd,oH:()=>ou,Sn:()=>qd});var g=F(2978),o=F(2319),V=F(8399),oe=F(756),De=F(5981),pe=F(199);const be=(0,F(4520).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var ge=F(6753),Te=F(8001),Ve=F(6106),ze=F(9406),vt=F(4418);function Re(I,B){const R=(0,vt.T)(I)?I:()=>I,q=ae=>ae.error(R());return new ze.c(B?ae=>B.schedule(q,0,ae):q)}var tt=F(8448),de=F(2029),Fe=F(9867),_t=F(6111);function at(){return(0,Fe.N)((I,B)=>{let R=null;I._refCount++;const q=(0,_t._)(B,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(R=null);const ae=I._connection,Ne=R;R=null,ae&&(!Ne||ae===Ne)&&ae.unsubscribe(),B.unsubscribe()});I.subscribe(q),q.closed||(R=I.connect())})}class Be extends ze.c{constructor(B,R){super(),this.source=B,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,Fe.S)(B)&&(this.lift=B.lift)}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:B}=this;this._subject=this._connection=null,B?.unsubscribe()}connect(){let B=this._connection;if(!B){B=this._connection=new de.yU;const R=this.getSubject();B.add(this.source.subscribe((0,_t._)(R,void 0,()=>{this._teardown(),R.complete()},q=>{this._teardown(),R.error(q)},()=>this._teardown()))),B.closed&&(this._connection=null,B=de.yU.EMPTY)}return B}refCount(){return at()(this)}}var he=F(6104),He=F(6610),Se=F(3527),it=F(2831),dt=F(8486),jt=F(965),Wt=F(8503),wn=F(3422);function Wn(I){return(0,Fe.N)((B,R)=>{let q=!1;B.subscribe((0,_t._)(R,ae=>{q=!0,R.next(ae)},()=>{q||R.next(I),R.complete()}))})}function di(I=ai){return(0,Fe.N)((B,R)=>{let q=!1;B.subscribe((0,_t._)(R,ae=>{q=!0,R.next(ae)},()=>q?R.complete():R.error(I())))})}function ai(){return new be}var Li=F(9656);function $i(I,B){const R=arguments.length>=2;return q=>q.pipe(I?(0,Wt.p)((ae,Ne)=>I(ae,Ne,q)):Li.D,(0,dt.s)(1),R?Wn(B):di(()=>new be))}var Hr=F(4807),ui=F(7236),dn=F(4526),nt=F(2360);function Je(I){return I<=0?()=>tt.w:(0,Fe.N)((B,R)=>{let q=[];B.subscribe((0,_t._)(R,ae=>{q.push(ae),I{for(const ae of q)R.next(ae);R.complete()},void 0,()=>{q=null}))})}var Ue=F(3770),Ze=F(6347),H=F(6340),te=F(3806),xe=F(6098);const Ce="primary",zt=Symbol("RouteTitle");class rt{constructor(B){this.params=B||{}}has(B){return Object.prototype.hasOwnProperty.call(this.params,B)}get(B){if(this.has(B)){const R=this.params[B];return Array.isArray(R)?R[0]:R}return null}getAll(B){if(this.has(B)){const R=this.params[B];return Array.isArray(R)?R:[R]}return[]}get keys(){return Object.keys(this.params)}}function xt(I){return new rt(I)}function Gt(I,B,R){const q=R.path.split("/");if(q.length>I.length||"full"===R.pathMatch&&(B.hasChildren()||q.lengthq[Ne]===ae)}return I===B}function or(I){return I.length>0?I[I.length-1]:null}function ci(I){return(0,o.A)(I)?I:(0,g.jNT)(I)?(0,V.H)(Promise.resolve(I)):(0,oe.of)(I)}const Dr={exact:function Qn(I,B,R){if(!Qi(I.segments,B.segments)||!Bt(I.segments,B.segments,R)||I.numberOfChildren!==B.numberOfChildren)return!1;for(const q in B.children)if(!I.children[q]||!Qn(I.children[q],B.children[q],R))return!1;return!0},subset:qe},Tr={exact:function On(I,B){return In(I,B)},subset:function fi(I,B){return Object.keys(B).length<=Object.keys(I).length&&Object.keys(B).every(R=>xi(I[R],B[R]))},ignored:()=>!0};function cn(I,B,R){return Dr[R.paths](I.root,B.root,R.matrixParams)&&Tr[R.queryParams](I.queryParams,B.queryParams)&&!("exact"===R.fragment&&I.fragment!==B.fragment)}function qe(I,B,R){return Mt(I,B,B.segments,R)}function Mt(I,B,R,q){if(I.segments.length>R.length){const ae=I.segments.slice(0,R.length);return!(!Qi(ae,R)||B.hasChildren()||!Bt(ae,R,q))}if(I.segments.length===R.length){if(!Qi(I.segments,R)||!Bt(I.segments,R,q))return!1;for(const ae in B.children)if(!I.children[ae]||!qe(I.children[ae],B.children[ae],q))return!1;return!0}{const ae=R.slice(0,I.segments.length),Ne=R.slice(I.segments.length);return!!(Qi(I.segments,ae)&&Bt(I.segments,ae,q)&&I.children[Ce])&&Mt(I.children[Ce],B,Ne,q)}}function Bt(I,B,R){return B.every((q,ae)=>Tr[R](I[ae].parameters,q.parameters))}class hn{constructor(B=new Mn([],{}),R={},q=null){this.root=B,this.queryParams=R,this.fragment=q}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap}toString(){return Ki.serialize(this)}}class Mn{constructor(B,R){this.segments=B,this.children=R,this.parent=null,Object.values(R).forEach(q=>q.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ys(this)}}class Vi{constructor(B,R){this.path=B,this.parameters=R}get parameterMap(){return this._parameterMap||(this._parameterMap=xt(this.parameters)),this._parameterMap}toString(){return Wo(this)}}function Qi(I,B){return I.length===B.length&&I.every((R,q)=>R.path===B[q].path)}let no=(()=>{class I{static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:function(){return new Jr},providedIn:"root"})}return I})();class Jr{parse(B){const R=new pn(B);return new hn(R.parseRootSegment(),R.parseQueryParams(),R.parseFragment())}serialize(B){const R=`/${so(B.root,!0)}`,q=function jn(I){const B=Object.keys(I).map(R=>{const q=I[R];return Array.isArray(q)?q.map(ae=>`${qa(R)}=${qa(ae)}`).join("&"):`${qa(R)}=${qa(q)}`}).filter(R=>!!R);return B.length?`?${B.join("&")}`:""}(B.queryParams);return`${R}${q}${"string"==typeof B.fragment?`#${function xc(I){return encodeURI(I)}(B.fragment)}`:""}`}}const Ki=new Jr;function Ys(I){return I.segments.map(B=>Wo(B)).join("/")}function so(I,B){if(!I.hasChildren())return Ys(I);if(B){const R=I.children[Ce]?so(I.children[Ce],!1):"",q=[];return Object.entries(I.children).forEach(([ae,Ne])=>{ae!==Ce&&q.push(`${ae}:${so(Ne,!1)}`)}),q.length>0?`${R}(${q.join("//")})`:R}{const R=function dr(I,B){let R=[];return Object.entries(I.children).forEach(([q,ae])=>{q===Ce&&(R=R.concat(B(ae,q)))}),Object.entries(I.children).forEach(([q,ae])=>{q!==Ce&&(R=R.concat(B(ae,q)))}),R}(I,(q,ae)=>ae===Ce?[so(I.children[Ce],!1)]:[`${ae}:${so(q,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[Ce]?`${Ys(I)}/${R[0]}`:`${Ys(I)}/(${R.join("//")})`}}function zo(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qa(I){return zo(I).replace(/%3B/gi,";")}function mo(I){return zo(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ss(I){return decodeURIComponent(I)}function io(I){return Ss(I.replace(/\+/g,"%20"))}function Wo(I){return`${mo(I.path)}${function ic(I){return Object.keys(I).map(B=>`;${mo(B)}=${mo(I[B])}`).join("")}(I.parameters)}`}const kn=/^[^\/()?;#]+/;function It(I){const B=I.match(kn);return B?B[0]:""}const Jt=/^[^\/()?;=#]+/,yt=/^[^=?&#]+/,Pt=/^[^&#]+/;class pn{constructor(B){this.url=B,this.remaining=B}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Mn([],{}):new Mn([],this.parseChildren())}parseQueryParams(){const B={};if(this.consumeOptional("?"))do{this.parseQueryParam(B)}while(this.consumeOptional("&"));return B}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const B=[];for(this.peekStartsWith("(")||B.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),B.push(this.parseSegment());let R={};this.peekStartsWith("/(")&&(this.capture("/"),R=this.parseParens(!0));let q={};return this.peekStartsWith("(")&&(q=this.parseParens(!1)),(B.length>0||Object.keys(R).length>0)&&(q[Ce]=new Mn(B,R)),q}parseSegment(){const B=It(this.remaining);if(""===B&&this.peekStartsWith(";"))throw new g.wOt(4009,!1);return this.capture(B),new Vi(Ss(B),this.parseMatrixParams())}parseMatrixParams(){const B={};for(;this.consumeOptional(";");)this.parseParam(B);return B}parseParam(B){const R=function Un(I){const B=I.match(Jt);return B?B[0]:""}(this.remaining);if(!R)return;this.capture(R);let q="";if(this.consumeOptional("=")){const ae=It(this.remaining);ae&&(q=ae,this.capture(q))}B[Ss(R)]=Ss(q)}parseQueryParam(B){const R=function ft(I){const B=I.match(yt);return B?B[0]:""}(this.remaining);if(!R)return;this.capture(R);let q="";if(this.consumeOptional("=")){const bt=function Cn(I){const B=I.match(Pt);return B?B[0]:""}(this.remaining);bt&&(q=bt,this.capture(q))}const ae=io(R),Ne=io(q);if(B.hasOwnProperty(ae)){let bt=B[ae];Array.isArray(bt)||(bt=[bt],B[ae]=bt),bt.push(Ne)}else B[ae]=Ne}parseParens(B){const R={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const q=It(this.remaining),ae=this.remaining[q.length];if("/"!==ae&&")"!==ae&&";"!==ae)throw new g.wOt(4010,!1);let Ne;q.indexOf(":")>-1?(Ne=q.slice(0,q.indexOf(":")),this.capture(Ne),this.capture(":")):B&&(Ne=Ce);const bt=this.parseChildren();R[Ne]=1===Object.keys(bt).length?bt[Ce]:new Mn([],bt),this.consumeOptional("//")}return R}peekStartsWith(B){return this.remaining.startsWith(B)}consumeOptional(B){return!!this.peekStartsWith(B)&&(this.remaining=this.remaining.substring(B.length),!0)}capture(B){if(!this.consumeOptional(B))throw new g.wOt(4011,!1)}}function Di(I){return I.segments.length>0?new Mn([],{[Ce]:I}):I}function nr(I){const B={};for(const q of Object.keys(I.children)){const Ne=nr(I.children[q]);if(q===Ce&&0===Ne.segments.length&&Ne.hasChildren())for(const[bt,an]of Object.entries(Ne.children))B[bt]=an;else(Ne.segments.length>0||Ne.hasChildren())&&(B[q]=Ne)}return function tn(I){if(1===I.numberOfChildren&&I.children[Ce]){const B=I.children[Ce];return new Mn(I.segments.concat(B.segments),B.children)}return I}(new Mn(I.segments,B))}function Tt(I){return I instanceof hn}function Vn(I){let B;const ae=Di(function R(Ne){const bt={};for(const un of Ne.children){const Ci=R(un);bt[un.outlet]=Ci}const an=new Mn(Ne.url,bt);return Ne===I&&(B=an),an}(I.root));return B??ae}function qn(I,B,R,q){let ae=I;for(;ae.parent;)ae=ae.parent;if(0===B.length)return Ni(ae,ae,ae,R,q);const Ne=function Gr(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new lr(!0,0,I);let B=0,R=!1;const q=I.reduce((ae,Ne,bt)=>{if("object"==typeof Ne&&null!=Ne){if(Ne.outlets){const an={};return Object.entries(Ne.outlets).forEach(([un,Ci])=>{an[un]="string"==typeof Ci?Ci.split("/"):Ci}),[...ae,{outlets:an}]}if(Ne.segmentPath)return[...ae,Ne.segmentPath]}return"string"!=typeof Ne?[...ae,Ne]:0===bt?(Ne.split("/").forEach((an,un)=>{0==un&&"."===an||(0==un&&""===an?R=!0:".."===an?B++:""!=an&&ae.push(an))}),ae):[...ae,Ne]},[]);return new lr(R,B,q)}(B);if(Ne.toRoot())return Ni(ae,ae,new Mn([],{}),R,q);const bt=function ks(I,B,R){if(I.isAbsolute)return new xs(B,!0,0);if(!R)return new xs(B,!1,NaN);if(null===R.parent)return new xs(R,!0,0);const q=pi(I.commands[0])?0:1;return function Vr(I,B,R){let q=I,ae=B,Ne=R;for(;Ne>ae;){if(Ne-=ae,q=q.parent,!q)throw new g.wOt(4005,!1);ae=q.segments.length}return new xs(q,!1,ae-Ne)}(R,R.segments.length-1+q,I.numberOfDoubleDots)}(Ne,ae,I),an=bt.processChildren?is(bt.segmentGroup,bt.index,Ne.commands):Fr(bt.segmentGroup,bt.index,Ne.commands);return Ni(ae,bt.segmentGroup,an,R,q)}function pi(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function ti(I){return"object"==typeof I&&null!=I&&I.outlets}function Ni(I,B,R,q,ae){let bt,Ne={};q&&Object.entries(q).forEach(([un,Ci])=>{Ne[un]=Array.isArray(Ci)?Ci.map(Ji=>`${Ji}`):`${Ci}`}),bt=I===B?R:ii(I,B,R);const an=Di(nr(bt));return new hn(an,Ne,ae)}function ii(I,B,R){const q={};return Object.entries(I.children).forEach(([ae,Ne])=>{q[ae]=Ne===B?R:ii(Ne,B,R)}),new Mn(I.segments,q)}class lr{constructor(B,R,q){if(this.isAbsolute=B,this.numberOfDoubleDots=R,this.commands=q,B&&q.length>0&&pi(q[0]))throw new g.wOt(4003,!1);const ae=q.find(ti);if(ae&&ae!==or(q))throw new g.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xs{constructor(B,R,q){this.segmentGroup=B,this.processChildren=R,this.index=q}}function Fr(I,B,R){if(I||(I=new Mn([],{})),0===I.segments.length&&I.hasChildren())return is(I,B,R);const q=function Ro(I,B,R){let q=0,ae=B;const Ne={match:!1,pathIndex:0,commandIndex:0};for(;ae=R.length)return Ne;const bt=I.segments[ae],an=R[q];if(ti(an))break;const un=`${an}`,Ci=q0&&void 0===un)break;if(un&&Ci&&"object"==typeof Ci&&void 0===Ci.outlets){if(!ea(un,Ci,bt))return Ne;q+=2}else{if(!ea(un,{},bt))return Ne;q++}ae++}return{match:!0,pathIndex:ae,commandIndex:q}}(I,B,R),ae=R.slice(q.commandIndex);if(q.match&&q.pathIndexNe!==Ce)&&I.children[Ce]&&1===I.numberOfChildren&&0===I.children[Ce].segments.length){const Ne=is(I.children[Ce],B,R);return new Mn(I.segments,Ne.children)}return Object.entries(q).forEach(([Ne,bt])=>{"string"==typeof bt&&(bt=[bt]),null!==bt&&(ae[Ne]=Fr(I.children[Ne],B,bt))}),Object.entries(I.children).forEach(([Ne,bt])=>{void 0===q[Ne]&&(ae[Ne]=bt)}),new Mn(I.segments,ae)}}function Zo(I,B,R){const q=I.segments.slice(0,B);let ae=0;for(;ae{"string"==typeof q&&(q=[q]),null!==q&&(B[R]=Zo(new Mn([],{}),0,q))}),B}function qo(I){const B={};return Object.entries(I).forEach(([R,q])=>B[R]=`${q}`),B}function ea(I,B,R){return I==R.path&&In(B,R.parameters)}const oo="imperative";class xo{constructor(B,R){this.id=B,this.url=R}}class ta extends xo{constructor(B,R,q="imperative",ae=null){super(B,R),this.type=0,this.navigationTrigger=q,this.restoredState=ae}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ps extends xo{constructor(B,R,q){super(B,R),this.urlAfterRedirects=q,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ma extends xo{constructor(B,R,q,ae){super(B,R),this.reason=q,this.code=ae,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ws extends xo{constructor(B,R,q,ae){super(B,R),this.reason=q,this.code=ae,this.type=16}}class La extends xo{constructor(B,R,q,ae){super(B,R),this.error=q,this.target=ae,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ao extends xo{constructor(B,R,q,ae){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class l1 extends xo{constructor(B,R,q,ae){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hc extends xo{constructor(B,R,q,ae,Ne){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.shouldActivate=Ne,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ol extends xo{constructor(B,R,q,ae){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pl extends xo{constructor(B,R,q,ae){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class na{constructor(B){this.route=B,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Z1{constructor(B){this.route=B,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rc{constructor(B){this.snapshot=B,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ql{constructor(B){this.snapshot=B,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class go{constructor(B){this.snapshot=B,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xa{constructor(B){this.snapshot=B,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ws{constructor(B,R,q){this.routerEvent=B,this.position=R,this.anchor=q,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class tl{}class As{constructor(B){this.url=B}}class nl{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ka,this.attachRef=null}}let Ka=(()=>{class I{constructor(){this.contexts=new Map}onChildOutletCreated(R,q){const ae=this.getOrCreateContext(R);ae.outlet=q,this.contexts.set(R,ae)}onChildOutletDestroyed(R){const q=this.getContext(R);q&&(q.outlet=null,q.attachRef=null)}onOutletDeactivated(){const R=this.contexts;return this.contexts=new Map,R}onOutletReAttached(R){this.contexts=R}getOrCreateContext(R){let q=this.getContext(R);return q||(q=new nl,this.contexts.set(R,q)),q}getContext(R){return this.contexts.get(R)||null}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();class hc{constructor(B){this._root=B}get root(){return this._root.value}parent(B){const R=this.pathFromRoot(B);return R.length>1?R[R.length-2]:null}children(B){const R=Xr(B,this._root);return R?R.children.map(q=>q.value):[]}firstChild(B){const R=Xr(B,this._root);return R&&R.children.length>0?R.children[0].value:null}siblings(B){const R=Br(B,this._root);return R.length<2?[]:R[R.length-2].children.map(ae=>ae.value).filter(ae=>ae!==B)}pathFromRoot(B){return Br(B,this._root).map(R=>R.value)}}function Xr(I,B){if(I===B.value)return B;for(const R of B.children){const q=Xr(I,R);if(q)return q}return null}function Br(I,B){if(I===B.value)return[B];for(const R of B.children){const q=Br(I,R);if(q.length)return q.unshift(B),q}return[]}class fr{constructor(B,R){this.value=B,this.children=R}toString(){return`TreeNode(${this.value})`}}function Ao(I){const B={};return I&&I.children.forEach(R=>B[R.value.outlet]=R),B}class ca extends hc{constructor(B,R){super(B),this.snapshot=R,Kn(this,B)}toString(){return this.snapshot.toString()}}function Ya(I,B){const R=function za(I,B){const bt=new Wr([],{},{},"",{},Ce,B,null,{});return new yi("",new fr(bt,[]))}(0,B),q=new De.t([new Vi("",{})]),ae=new De.t({}),Ne=new De.t({}),bt=new De.t({}),an=new De.t(""),un=new qs(q,ae,bt,an,Ne,Ce,B,R.root);return un.snapshot=R.root,new ca(new fr(un,[]),R)}class qs{constructor(B,R,q,ae,Ne,bt,an,un){this.urlSubject=B,this.paramsSubject=R,this.queryParamsSubject=q,this.fragmentSubject=ae,this.dataSubject=Ne,this.outlet=bt,this.component=an,this._futureSnapshot=un,this.title=this.dataSubject?.pipe((0,Se.T)(Ci=>Ci[zt]))??(0,oe.of)(void 0),this.url=B,this.params=R,this.queryParams=q,this.fragment=ae,this.data=Ne}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,Se.T)(B=>xt(B)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Se.T)(B=>xt(B)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function gr(I,B="emptyOnly"){const R=I.pathFromRoot;let q=0;if("always"!==B)for(q=R.length-1;q>=1;){const ae=R[q],Ne=R[q-1];if(ae.routeConfig&&""===ae.routeConfig.path)q--;else{if(Ne.component)break;q--}}return function il(I){return I.reduce((B,R)=>({params:{...B.params,...R.params},data:{...B.data,...R.data},resolve:{...R.data,...B.resolve,...R.routeConfig?.data,...R._resolvedData}}),{params:{},data:{},resolve:{}})}(R.slice(q))}class Wr{get title(){return this.data?.[zt]}constructor(B,R,q,ae,Ne,bt,an,un,Ci){this.url=B,this.params=R,this.queryParams=q,this.fragment=ae,this.data=Ne,this.outlet=bt,this.component=an,this.routeConfig=un,this._resolve=Ci}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=xt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(q=>q.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yi extends hc{constructor(B,R){super(R),this.url=B,Kn(this,R)}toString(){return ar(this._root)}}function Kn(I,B){B.value._routerState=I,B.children.forEach(R=>Kn(I,R))}function ar(I){const B=I.children.length>0?` { ${I.children.map(ar).join(", ")} } `:"";return`${I.value}${B}`}function Sa(I){if(I.snapshot){const B=I.snapshot,R=I._futureSnapshot;I.snapshot=R,In(B.queryParams,R.queryParams)||I.queryParamsSubject.next(R.queryParams),B.fragment!==R.fragment&&I.fragmentSubject.next(R.fragment),In(B.params,R.params)||I.paramsSubject.next(R.params),function xn(I,B){if(I.length!==B.length)return!1;for(let R=0;RIn(R.parameters,B[q].parameters))}(I.url,B.url);return R&&!(!I.parent!=!B.parent)&&(!I.parent||Mo(I.parent,B.parent))}let ns=(()=>{class I{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new g.bkB,this.deactivateEvents=new g.bkB,this.attachEvents=new g.bkB,this.detachEvents=new g.bkB,this.parentContexts=(0,g.WQX)(Ka),this.location=(0,g.WQX)(g.c1b),this.changeDetector=(0,g.WQX)(g.gRc),this.environmentInjector=(0,g.WQX)(g.uvJ),this.inputBinder=(0,g.WQX)(Is,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(R){if(R.name){const{firstChange:q,previousValue:ae}=R.name;if(q)return;this.isTrackedInParentContexts(ae)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ae)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(R){return this.parentContexts.getContext(R)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const R=this.parentContexts.getContext(this.name);R?.route&&(R.attachRef?this.attach(R.attachRef,R.route):this.activateWith(R.route,R.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.wOt(4012,!1);this.location.detach();const R=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(R.instance),R}attach(R,q){this.activated=R,this._activatedRoute=q,this.location.insert(R.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(R.instance)}deactivate(){if(this.activated){const R=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(R)}}activateWith(R,q){if(this.isActivated)throw new g.wOt(4013,!1);this._activatedRoute=R;const ae=this.location,bt=R.snapshot.component,an=this.parentContexts.getOrCreateContext(this.name).children,un=new ka(R,an,ae.injector);this.activated=ae.createComponent(bt,{index:ae.length,injector:un,environmentInjector:q??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275dir=g.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g.OA$]})}return I})();class ka{constructor(B,R,q){this.route=B,this.childContexts=R,this.parent=q}get(B,R){return B===qs?this.route:B===Ka?this.childContexts:this.parent.get(B,R)}}const Is=new g.nKC("");let wc=(()=>{class I{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(R){this.unsubscribeFromRouteData(R),this.subscribeToRouteData(R)}unsubscribeFromRouteData(R){this.outletDataSubscriptions.get(R)?.unsubscribe(),this.outletDataSubscriptions.delete(R)}subscribeToRouteData(R){const{activatedRoute:q}=R,ae=(0,pe.z)([q.queryParams,q.params,q.data]).pipe((0,it.n)(([Ne,bt,an],un)=>(an={...Ne,...bt,...an},0===un?(0,oe.of)(an):Promise.resolve(an)))).subscribe(Ne=>{if(!R.isActivated||!R.activatedComponentRef||R.activatedRoute!==q||null===q.component)return void this.unsubscribeFromRouteData(R);const bt=(0,g.HJs)(q.component);if(bt)for(const{templateName:an}of bt.inputs)R.activatedComponentRef.setInput(an,Ne[an]);else this.unsubscribeFromRouteData(R)});this.outletDataSubscriptions.set(R,ae)}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac})}return I})();function ur(I,B,R){if(R&&I.shouldReuseRoute(B.value,R.value.snapshot)){const q=R.value;q._futureSnapshot=B.value;const ae=function rr(I,B,R){return B.children.map(q=>{for(const ae of R.children)if(I.shouldReuseRoute(q.value,ae.value.snapshot))return ur(I,q,ae);return ur(I,q)})}(I,B,R);return new fr(q,ae)}{if(I.shouldAttach(B.value)){const Ne=I.retrieve(B.value);if(null!==Ne){const bt=Ne.route;return bt.value._futureSnapshot=B.value,bt.children=B.children.map(an=>ur(I,an)),bt}}const q=function ml(I){return new qs(new De.t(I.url),new De.t(I.params),new De.t(I.queryParams),new De.t(I.fragment),new De.t(I.data),I.outlet,I.component,I)}(B.value),ae=B.children.map(Ne=>ur(I,Ne));return new fr(q,ae)}}const Lc="ngNavigationCancelingError";function Qs(I,B){const{redirectTo:R,navigationBehaviorOptions:q}=Tt(B)?{redirectTo:B,navigationBehaviorOptions:void 0}:B,ae=la(!1,0,B);return ae.url=R,ae.navigationBehaviorOptions=q,ae}function la(I,B,R){const q=new Error("NavigationCancelingError: "+(I||""));return q[Lc]=!0,q.cancellationCode=B,R&&(q.url=R),q}function ua(I){return I&&I[Lc]}let da=(()=>{class I{static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275cmp=g.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[g.aNF],decls:1,vars:0,template:function(q,ae){1&q&&g.nrm(0,"router-outlet")},dependencies:[ns],encapsulation:2})}return I})();function Lr(I){const B=I.children&&I.children.map(Lr),R=B?{...I,children:B}:{...I};return!R.component&&!R.loadComponent&&(B||R.loadChildren)&&R.outlet&&R.outlet!==Ce&&(R.component=da),R}function vo(I){return I.outlet||Ce}function Qa(I){if(!I)return null;if(I.routeConfig?._injector)return I.routeConfig._injector;for(let B=I.parent;B;B=B.parent){const R=B.routeConfig;if(R?._loadedInjector)return R._loadedInjector;if(R?._injector)return R._injector}return null}class Na{constructor(B,R,q,ae,Ne){this.routeReuseStrategy=B,this.futureState=R,this.currState=q,this.forwardEvent=ae,this.inputBindingEnabled=Ne}activate(B){const R=this.futureState._root,q=this.currState?this.currState._root:null;this.deactivateChildRoutes(R,q,B),Sa(this.futureState.root),this.activateChildRoutes(R,q,B)}deactivateChildRoutes(B,R,q){const ae=Ao(R);B.children.forEach(Ne=>{const bt=Ne.value.outlet;this.deactivateRoutes(Ne,ae[bt],q),delete ae[bt]}),Object.values(ae).forEach(Ne=>{this.deactivateRouteAndItsChildren(Ne,q)})}deactivateRoutes(B,R,q){const ae=B.value,Ne=R?R.value:null;if(ae===Ne)if(ae.component){const bt=q.getContext(ae.outlet);bt&&this.deactivateChildRoutes(B,R,bt.children)}else this.deactivateChildRoutes(B,R,q);else Ne&&this.deactivateRouteAndItsChildren(R,q)}deactivateRouteAndItsChildren(B,R){B.value.component&&this.routeReuseStrategy.shouldDetach(B.value.snapshot)?this.detachAndStoreRouteSubtree(B,R):this.deactivateRouteAndOutlet(B,R)}detachAndStoreRouteSubtree(B,R){const q=R.getContext(B.value.outlet),ae=q&&B.value.component?q.children:R,Ne=Ao(B);for(const bt of Object.keys(Ne))this.deactivateRouteAndItsChildren(Ne[bt],ae);if(q&&q.outlet){const bt=q.outlet.detach(),an=q.children.onOutletDeactivated();this.routeReuseStrategy.store(B.value.snapshot,{componentRef:bt,route:B,contexts:an})}}deactivateRouteAndOutlet(B,R){const q=R.getContext(B.value.outlet),ae=q&&B.value.component?q.children:R,Ne=Ao(B);for(const bt of Object.keys(Ne))this.deactivateRouteAndItsChildren(Ne[bt],ae);q&&(q.outlet&&(q.outlet.deactivate(),q.children.onOutletDeactivated()),q.attachRef=null,q.route=null)}activateChildRoutes(B,R,q){const ae=Ao(R);B.children.forEach(Ne=>{this.activateRoutes(Ne,ae[Ne.value.outlet],q),this.forwardEvent(new Xa(Ne.value.snapshot))}),B.children.length&&this.forwardEvent(new ql(B.value.snapshot))}activateRoutes(B,R,q){const ae=B.value,Ne=R?R.value:null;if(Sa(ae),ae===Ne)if(ae.component){const bt=q.getOrCreateContext(ae.outlet);this.activateChildRoutes(B,R,bt.children)}else this.activateChildRoutes(B,R,q);else if(ae.component){const bt=q.getOrCreateContext(ae.outlet);if(this.routeReuseStrategy.shouldAttach(ae.snapshot)){const an=this.routeReuseStrategy.retrieve(ae.snapshot);this.routeReuseStrategy.store(ae.snapshot,null),bt.children.onOutletReAttached(an.contexts),bt.attachRef=an.componentRef,bt.route=an.route.value,bt.outlet&&bt.outlet.attach(an.componentRef,an.route.value),Sa(an.route.value),this.activateChildRoutes(B,null,bt.children)}else{const an=Qa(ae.snapshot);bt.attachRef=null,bt.route=ae,bt.injector=an,bt.outlet&&bt.outlet.activateWith(ae,bt.injector),this.activateChildRoutes(B,null,bt.children)}}else this.activateChildRoutes(B,null,q)}}class vs{constructor(B){this.path=B,this.route=this.path[this.path.length-1]}}class Ja{constructor(B,R){this.component=B,this.route=R}}function pc(I,B,R){const q=I._root;return vl(q,B?B._root:null,R,[q.value])}function co(I,B){const R=Symbol(),q=B.get(I,R);return q===R?"function"!=typeof I||(0,g.LfX)(I)?B.get(I):I:q}function vl(I,B,R,q,ae={canDeactivateChecks:[],canActivateChecks:[]}){const Ne=Ao(B);return I.children.forEach(bt=>{(function qr(I,B,R,q,ae={canDeactivateChecks:[],canActivateChecks:[]}){const Ne=I.value,bt=B?B.value:null,an=R?R.getContext(I.value.outlet):null;if(bt&&Ne.routeConfig===bt.routeConfig){const un=function sc(I,B,R){if("function"==typeof R)return R(I,B);switch(R){case"pathParamsChange":return!Qi(I.url,B.url);case"pathParamsOrQueryParamsChange":return!Qi(I.url,B.url)||!In(I.queryParams,B.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mo(I,B)||!In(I.queryParams,B.queryParams);default:return!Mo(I,B)}}(bt,Ne,Ne.routeConfig.runGuardsAndResolvers);un?ae.canActivateChecks.push(new vs(q)):(Ne.data=bt.data,Ne._resolvedData=bt._resolvedData),vl(I,B,Ne.component?an?an.children:null:R,q,ae),un&&an&&an.outlet&&an.outlet.isActivated&&ae.canDeactivateChecks.push(new Ja(an.outlet.component,bt))}else bt&&ie(B,an,ae),ae.canActivateChecks.push(new vs(q)),vl(I,null,Ne.component?an?an.children:null:R,q,ae)})(bt,Ne[bt.value.outlet],R,q.concat([bt.value]),ae),delete Ne[bt.value.outlet]}),Object.entries(Ne).forEach(([bt,an])=>ie(an,R.getContext(bt),ae)),ae}function ie(I,B,R){const q=Ao(I),ae=I.value;Object.entries(q).forEach(([Ne,bt])=>{ie(bt,ae.component?B?B.children.getContext(Ne):null:B,R)}),R.canDeactivateChecks.push(new Ja(ae.component&&B&&B.outlet&&B.outlet.isActivated?B.outlet.component:null,ae))}function Rt(I){return"function"==typeof I}function fe(I){return I instanceof be||"EmptyError"===I?.name}const ee=Symbol("INITIAL_VALUE");function $e(){return(0,it.n)(I=>(0,pe.z)(I.map(B=>B.pipe((0,dt.s)(1),(0,jt.Z)(ee)))).pipe((0,Se.T)(B=>{for(const R of B)if(!0!==R){if(R===ee)return ee;if(!1===R||R instanceof hn)return R}return!0}),(0,Wt.p)(B=>B!==ee),(0,dt.s)(1)))}function Kr(I){return(0,Ve.F)((0,ui.M)(B=>{if(Tt(B))throw Qs(0,B)}),(0,Se.T)(B=>!0===B))}class Os{constructor(B){this.segmentGroup=B||null}}class rl{constructor(B){this.urlTree=B}}function ba(I){return Re(new Os(I))}function Mc(I){return Re(new rl(I))}class Mu{constructor(B,R){this.urlSerializer=B,this.urlTree=R}noMatchError(B){return new g.wOt(4002,!1)}lineralizeSegments(B,R){let q=[],ae=R.root;for(;;){if(q=q.concat(ae.segments),0===ae.numberOfChildren)return(0,oe.of)(q);if(ae.numberOfChildren>1||!ae.children[Ce])return Re(new g.wOt(4e3,!1));ae=ae.children[Ce]}}applyRedirectCommands(B,R,q){return this.applyRedirectCreateUrlTree(R,this.urlSerializer.parse(R),B,q)}applyRedirectCreateUrlTree(B,R,q,ae){const Ne=this.createSegmentGroup(B,R.root,q,ae);return new hn(Ne,this.createQueryParams(R.queryParams,this.urlTree.queryParams),R.fragment)}createQueryParams(B,R){const q={};return Object.entries(B).forEach(([ae,Ne])=>{if("string"==typeof Ne&&Ne.startsWith(":")){const an=Ne.substring(1);q[ae]=R[an]}else q[ae]=Ne}),q}createSegmentGroup(B,R,q,ae){const Ne=this.createSegments(B,R.segments,q,ae);let bt={};return Object.entries(R.children).forEach(([an,un])=>{bt[an]=this.createSegmentGroup(B,un,q,ae)}),new Mn(Ne,bt)}createSegments(B,R,q,ae){return R.map(Ne=>Ne.path.startsWith(":")?this.findPosParam(B,Ne,ae):this.findOrReturn(Ne,q))}findPosParam(B,R,q){const ae=q[R.path.substring(1)];if(!ae)throw new g.wOt(4001,!1);return ae}findOrReturn(B,R){let q=0;for(const ae of R){if(ae.path===B.path)return R.splice(q),ae;q++}return B}}const Rl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function M2(I,B,R,q,ae){const Ne=fa(I,B,R);return Ne.matched?(q=function gl(I,B){return I.providers&&!I._injector&&(I._injector=(0,g.Ol2)(I.providers,B,`Route: ${I.path}`)),I._injector??B}(B,q),function ja(I,B,R,q){const ae=B.canMatch;if(!ae||0===ae.length)return(0,oe.of)(!0);const Ne=ae.map(bt=>{const an=co(bt,I);return ci(function nn(I){return I&&Rt(I.canMatch)}(an)?an.canMatch(B,R):I.runInContext(()=>an(B,R)))});return(0,oe.of)(Ne).pipe($e(),Kr())}(q,B,R).pipe((0,Se.T)(bt=>!0===bt?Ne:{...Rl}))):(0,oe.of)(Ne)}function fa(I,B,R){if(""===B.path)return"full"===B.pathMatch&&(I.hasChildren()||R.length>0)?{...Rl}:{matched:!0,consumedSegments:[],remainingSegments:R,parameters:{},positionalParamSegments:{}};const ae=(B.matcher||Gt)(R,I,B);if(!ae)return{...Rl};const Ne={};Object.entries(ae.posParams??{}).forEach(([an,un])=>{Ne[an]=un.path});const bt=ae.consumed.length>0?{...Ne,...ae.consumed[ae.consumed.length-1].parameters}:Ne;return{matched:!0,consumedSegments:ae.consumed,remainingSegments:R.slice(ae.consumed.length),parameters:bt,positionalParamSegments:ae.posParams??{}}}function e2(I,B,R,q){return R.length>0&&function Xl(I,B,R){return R.some(q=>_l(I,B,q)&&vo(q)!==Ce)}(I,R,q)?{segmentGroup:new Mn(B,z1(q,new Mn(R,I.children))),slicedSegments:[]}:0===R.length&&function y1(I,B,R){return R.some(q=>_l(I,B,q))}(I,R,q)?{segmentGroup:new Mn(I.segments,u1(I,0,R,q,I.children)),slicedSegments:R}:{segmentGroup:new Mn(I.segments,I.children),slicedSegments:R}}function u1(I,B,R,q,ae){const Ne={};for(const bt of q)if(_l(I,R,bt)&&!ae[vo(bt)]){const an=new Mn([],{});Ne[vo(bt)]=an}return{...ae,...Ne}}function z1(I,B){const R={};R[Ce]=B;for(const q of I)if(""===q.path&&vo(q)!==Ce){const ae=new Mn([],{});R[vo(q)]=ae}return R}function _l(I,B,R){return(!(I.hasChildren()||B.length>0)||"full"!==R.pathMatch)&&""===R.path}class ku{constructor(B,R,q,ae,Ne,bt,an){this.injector=B,this.configLoader=R,this.rootComponentType=q,this.config=ae,this.urlTree=Ne,this.paramsInheritanceStrategy=bt,this.urlSerializer=an,this.allowRedirects=!0,this.applyRedirects=new Mu(this.urlSerializer,this.urlTree)}noMatchError(B){return new g.wOt(4002,!1)}recognize(){const B=e2(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,B,Ce).pipe((0,dn.W)(R=>{if(R instanceof rl)return this.allowRedirects=!1,this.urlTree=R.urlTree,this.match(R.urlTree);throw R instanceof Os?this.noMatchError(R):R}),(0,Se.T)(R=>{const q=new Wr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ce,this.rootComponentType,null,{}),ae=new fr(q,R),Ne=new yi("",ae),bt=function Kt(I,B,R=null,q=null){return qn(Vn(I),B,R,q)}(q,[],this.urlTree.queryParams,this.urlTree.fragment);return bt.queryParams=this.urlTree.queryParams,Ne.url=this.urlSerializer.serialize(bt),this.inheritParamsAndData(Ne._root),{state:Ne,tree:bt}}))}match(B){return this.processSegmentGroup(this.injector,this.config,B.root,Ce).pipe((0,dn.W)(q=>{throw q instanceof Os?this.noMatchError(q):q}))}inheritParamsAndData(B){const R=B.value,q=gr(R,this.paramsInheritanceStrategy);R.params=Object.freeze(q.params),R.data=Object.freeze(q.data),B.children.forEach(ae=>this.inheritParamsAndData(ae))}processSegmentGroup(B,R,q,ae){return 0===q.segments.length&&q.hasChildren()?this.processChildren(B,R,q):this.processSegment(B,R,q,q.segments,ae,!0)}processChildren(B,R,q){const ae=[];for(const Ne of Object.keys(q.children))"primary"===Ne?ae.unshift(Ne):ae.push(Ne);return(0,V.H)(ae).pipe((0,Hr.H)(Ne=>{const bt=q.children[Ne],an=function Ra(I,B){const R=I.filter(q=>vo(q)===B);return R.push(...I.filter(q=>vo(q)!==B)),R}(R,Ne);return this.processSegmentGroup(B,an,bt,Ne)}),function ht(I,B){return(0,Fe.N)((0,nt.S)(I,B,arguments.length>=2,!0))}((Ne,bt)=>(Ne.push(...bt),Ne)),Wn(null),function Ae(I,B){const R=arguments.length>=2;return q=>q.pipe(I?(0,Wt.p)((ae,Ne)=>I(ae,Ne,q)):Li.D,Je(1),R?Wn(B):di(()=>new be))}(),(0,wn.Z)(Ne=>{if(null===Ne)return ba(q);const bt=C1(Ne);return function bl(I){I.sort((B,R)=>B.value.outlet===Ce?-1:R.value.outlet===Ce?1:B.value.outlet.localeCompare(R.value.outlet))}(bt),(0,oe.of)(bt)}))}processSegment(B,R,q,ae,Ne,bt){return(0,V.H)(R).pipe((0,Hr.H)(an=>this.processSegmentAgainstRoute(an._injector??B,R,an,q,ae,Ne,bt).pipe((0,dn.W)(un=>{if(un instanceof Os)return(0,oe.of)(null);throw un}))),$i(an=>!!an),(0,dn.W)(an=>{if(fe(an))return function Su(I,B,R){return 0===B.length&&!I.children[R]}(q,ae,Ne)?(0,oe.of)([]):ba(q);throw an}))}processSegmentAgainstRoute(B,R,q,ae,Ne,bt,an){return function sl(I,B,R,q){return!!(vo(I)===q||q!==Ce&&_l(B,R,I))&&("**"===I.path||fa(B,I,R).matched)}(q,ae,Ne,bt)?void 0===q.redirectTo?this.matchSegmentAgainstRoute(B,ae,q,Ne,bt,an):an&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(B,ae,R,q,Ne,bt):ba(ae):ba(ae)}expandSegmentAgainstRouteUsingRedirect(B,R,q,ae,Ne,bt){return"**"===ae.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(B,q,ae,bt):this.expandRegularSegmentAgainstRouteUsingRedirect(B,R,q,ae,Ne,bt)}expandWildCardWithParamsAgainstRouteUsingRedirect(B,R,q,ae){const Ne=this.applyRedirects.applyRedirectCommands([],q.redirectTo,{});return q.redirectTo.startsWith("/")?Mc(Ne):this.applyRedirects.lineralizeSegments(q,Ne).pipe((0,wn.Z)(bt=>{const an=new Mn(bt,{});return this.processSegment(B,R,an,bt,ae,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(B,R,q,ae,Ne,bt){const{matched:an,consumedSegments:un,remainingSegments:Ci,positionalParamSegments:Ji}=fa(R,ae,Ne);if(!an)return ba(R);const ls=this.applyRedirects.applyRedirectCommands(un,ae.redirectTo,Ji);return ae.redirectTo.startsWith("/")?Mc(ls):this.applyRedirects.lineralizeSegments(ae,ls).pipe((0,wn.Z)(Ar=>this.processSegment(B,q,R,Ar.concat(Ci),bt,!1)))}matchSegmentAgainstRoute(B,R,q,ae,Ne,bt){let an;if("**"===q.path){const un=ae.length>0?or(ae).parameters:{},Ci=new Wr(ae,un,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nu(q),vo(q),q.component??q._loadedComponent??null,q,Eu(q));an=(0,oe.of)({snapshot:Ci,consumedSegments:[],remainingSegments:[]}),R.children={}}else an=M2(R,q,ae,B).pipe((0,Se.T)(({matched:un,consumedSegments:Ci,remainingSegments:Ji,parameters:ls})=>un?{snapshot:new Wr(Ci,ls,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nu(q),vo(q),q.component??q._loadedComponent??null,q,Eu(q)),consumedSegments:Ci,remainingSegments:Ji}:null));return an.pipe((0,it.n)(un=>null===un?ba(R):this.getChildConfig(B=q._injector??B,q,ae).pipe((0,it.n)(({routes:Ci})=>{const Ji=q._loadedInjector??B,{snapshot:ls,consumedSegments:Ar,remainingSegments:Po}=un,{segmentGroup:al,slicedSegments:Xo}=e2(R,Ar,Po,Ci);if(0===Xo.length&&al.hasChildren())return this.processChildren(Ji,Ci,al).pipe((0,Se.T)(Io=>null===Io?null:[new fr(ls,Io)]));if(0===Ci.length&&0===Xo.length)return(0,oe.of)([new fr(ls,[])]);const Ko=vo(q)===Ne;return this.processSegment(Ji,Ci,al,Xo,Ko?Ce:Ne,!0).pipe((0,Se.T)(Io=>[new fr(ls,Io)]))}))))}getChildConfig(B,R,q){return R.children?(0,oe.of)({routes:R.children,injector:B}):R.loadChildren?void 0!==R._loadedRoutes?(0,oe.of)({routes:R._loadedRoutes,injector:R._loadedInjector}):function Pa(I,B,R,q){const ae=B.canLoad;if(void 0===ae||0===ae.length)return(0,oe.of)(!0);const Ne=ae.map(bt=>{const an=co(bt,I);return ci(function me(I){return I&&Rt(I.canLoad)}(an)?an.canLoad(B,R):I.runInContext(()=>an(B,R)))});return(0,oe.of)(Ne).pipe($e(),Kr())}(B,R,q).pipe((0,wn.Z)(ae=>ae?this.configLoader.loadChildren(B,R).pipe((0,ui.M)(Ne=>{R._loadedRoutes=Ne.routes,R._loadedInjector=Ne.injector})):function wu(I){return Re(la(!1,3))}())):(0,oe.of)({routes:[],injector:B})}}function tu(I){const B=I.value.routeConfig;return B&&""===B.path}function C1(I){const B=[],R=new Set;for(const q of I){if(!tu(q)){B.push(q);continue}const ae=B.find(Ne=>q.value.routeConfig===Ne.value.routeConfig);void 0!==ae?(ae.children.push(...q.children),R.add(ae)):B.push(q)}for(const q of R){const ae=C1(q.children);B.push(new fr(q.value,ae))}return B.filter(q=>!R.has(q))}function nu(I){return I.data||{}}function Eu(I){return I.resolve||{}}function Pe(I){return"string"==typeof I.title||null===I.title}function le(I){return(0,it.n)(B=>{const R=I(B);return R?(0,V.H)(R).pipe((0,Se.T)(()=>B)):(0,oe.of)(B)})}const Ie=new g.nKC("ROUTES");let Ot=(()=>{class I{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.WQX)(g.Ql9)}loadComponent(R){if(this.componentLoaders.get(R))return this.componentLoaders.get(R);if(R._loadedComponent)return(0,oe.of)(R._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(R);const q=ci(R.loadComponent()).pipe((0,Se.T)(Oi),(0,ui.M)(Ne=>{this.onLoadEndListener&&this.onLoadEndListener(R),R._loadedComponent=Ne}),(0,Ze.j)(()=>{this.componentLoaders.delete(R)})),ae=new Be(q,()=>new he.B).pipe(at());return this.componentLoaders.set(R,ae),ae}loadChildren(R,q){if(this.childrenLoaders.get(q))return this.childrenLoaders.get(q);if(q._loadedRoutes)return(0,oe.of)({routes:q._loadedRoutes,injector:q._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(q);const Ne=function bn(I,B,R,q){return ci(I.loadChildren()).pipe((0,Se.T)(Oi),(0,wn.Z)(ae=>ae instanceof g.Co$||Array.isArray(ae)?(0,oe.of)(ae):(0,V.H)(B.compileModuleAsync(ae))),(0,Se.T)(ae=>{q&&q(I);let Ne,bt,an=!1;return Array.isArray(ae)?(bt=ae,!0):(Ne=ae.create(R).injector,bt=Ne.get(Ie,[],{optional:!0,self:!0}).flat()),{routes:bt.map(Lr),injector:Ne}}))}(q,this.compiler,R,this.onLoadEndListener).pipe((0,Ze.j)(()=>{this.childrenLoaders.delete(q)})),bt=new Be(Ne,()=>new he.B).pipe(at());return this.childrenLoaders.set(q,bt),bt}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function Oi(I){return function Pn(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let lo=(()=>{class I{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new he.B,this.transitionAbortSubject=new he.B,this.configLoader=(0,g.WQX)(Ot),this.environmentInjector=(0,g.WQX)(g.uvJ),this.urlSerializer=(0,g.WQX)(no),this.rootContexts=(0,g.WQX)(Ka),this.inputBindingEnabled=null!==(0,g.WQX)(Is,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,oe.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ae=>this.events.next(new Z1(ae)),this.configLoader.onLoadStartListener=ae=>this.events.next(new na(ae))}complete(){this.transitions?.complete()}handleNavigationRequest(R){const q=++this.navigationId;this.transitions?.next({...this.transitions.value,...R,id:q})}setupNavigations(R,q,ae){return this.transitions=new De.t({id:0,currentUrlTree:q,currentRawUrl:q,currentBrowserUrl:q,extractedUrl:R.urlHandlingStrategy.extract(q),urlAfterRedirects:R.urlHandlingStrategy.extract(q),rawUrl:q,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:oo,restoredState:null,currentSnapshot:ae.snapshot,targetSnapshot:null,currentRouterState:ae,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Wt.p)(Ne=>0!==Ne.id),(0,Se.T)(Ne=>({...Ne,extractedUrl:R.urlHandlingStrategy.extract(Ne.rawUrl)})),(0,it.n)(Ne=>{this.currentTransition=Ne;let bt=!1,an=!1;return(0,oe.of)(Ne).pipe((0,ui.M)(un=>{this.currentNavigation={id:un.id,initialUrl:un.rawUrl,extractedUrl:un.extractedUrl,trigger:un.source,extras:un.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,it.n)(un=>{const Ci=un.currentBrowserUrl.toString(),Ji=!R.navigated||un.extractedUrl.toString()!==Ci||Ci!==un.currentUrlTree.toString();if(!Ji&&"reload"!==(un.extras.onSameUrlNavigation??R.onSameUrlNavigation)){const Ar="";return this.events.next(new ws(un.id,this.urlSerializer.serialize(un.rawUrl),Ar,0)),un.resolve(null),tt.w}if(R.urlHandlingStrategy.shouldProcessUrl(un.rawUrl))return(0,oe.of)(un).pipe((0,it.n)(Ar=>{const Po=this.transitions?.getValue();return this.events.next(new ta(Ar.id,this.urlSerializer.serialize(Ar.extractedUrl),Ar.source,Ar.restoredState)),Po!==this.transitions?.getValue()?tt.w:Promise.resolve(Ar)}),function Du(I,B,R,q,ae,Ne){return(0,wn.Z)(bt=>function d1(I,B,R,q,ae,Ne,bt="emptyOnly"){return new ku(I,B,R,q,ae,bt,Ne).recognize()}(I,B,R,q,bt.extractedUrl,ae,Ne).pipe((0,Se.T)(({state:an,tree:un})=>({...bt,targetSnapshot:an,urlAfterRedirects:un}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,R.config,this.urlSerializer,R.paramsInheritanceStrategy),(0,ui.M)(Ar=>{Ne.targetSnapshot=Ar.targetSnapshot,Ne.urlAfterRedirects=Ar.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ar.urlAfterRedirects};const Po=new ao(Ar.id,this.urlSerializer.serialize(Ar.extractedUrl),this.urlSerializer.serialize(Ar.urlAfterRedirects),Ar.targetSnapshot);this.events.next(Po)}));if(Ji&&R.urlHandlingStrategy.shouldProcessUrl(un.currentRawUrl)){const{id:Ar,extractedUrl:Po,source:al,restoredState:Xo,extras:Ko}=un,Io=new ta(Ar,this.urlSerializer.serialize(Po),al,Xo);this.events.next(Io);const vc=Ya(0,this.rootComponentType).snapshot;return this.currentTransition=Ne={...un,targetSnapshot:vc,urlAfterRedirects:Po,extras:{...Ko,skipLocationChange:!1,replaceUrl:!1}},(0,oe.of)(Ne)}{const Ar="";return this.events.next(new ws(un.id,this.urlSerializer.serialize(un.extractedUrl),Ar,1)),un.resolve(null),tt.w}}),(0,ui.M)(un=>{const Ci=new l1(un.id,this.urlSerializer.serialize(un.extractedUrl),this.urlSerializer.serialize(un.urlAfterRedirects),un.targetSnapshot);this.events.next(Ci)}),(0,Se.T)(un=>(this.currentTransition=Ne={...un,guards:pc(un.targetSnapshot,un.currentSnapshot,this.rootContexts)},Ne)),function mt(I,B){return(0,wn.Z)(R=>{const{targetSnapshot:q,currentSnapshot:ae,guards:{canActivateChecks:Ne,canDeactivateChecks:bt}}=R;return 0===bt.length&&0===Ne.length?(0,oe.of)({...R,guardsResult:!0}):function Gn(I,B,R,q){return(0,V.H)(I).pipe((0,wn.Z)(ae=>function So(I,B,R,q,ae){const Ne=B&&B.routeConfig?B.routeConfig.canDeactivate:null;if(!Ne||0===Ne.length)return(0,oe.of)(!0);const bt=Ne.map(an=>{const un=Qa(B)??ae,Ci=co(an,un);return ci(function Oe(I){return I&&Rt(I.canDeactivate)}(Ci)?Ci.canDeactivate(I,B,R,q):un.runInContext(()=>Ci(I,B,R,q))).pipe($i())});return(0,oe.of)(bt).pipe($e())}(ae.component,ae.route,R,B,q)),$i(ae=>!0!==ae,!0))}(bt,q,ae,I).pipe((0,wn.Z)(an=>an&&function Y(I){return"boolean"==typeof I}(an)?function ir(I,B,R,q){return(0,V.H)(B).pipe((0,Hr.H)(ae=>(0,ge.x)(function ra(I,B){return null!==I&&B&&B(new rc(I)),(0,oe.of)(!0)}(ae.route.parent,q),function zr(I,B){return null!==I&&B&&B(new go(I)),(0,oe.of)(!0)}(ae.route,q),function Bo(I,B,R){const q=B[B.length-1],Ne=B.slice(0,B.length-1).reverse().map(bt=>function zl(I){const B=I.routeConfig?I.routeConfig.canActivateChild:null;return B&&0!==B.length?{node:I,guards:B}:null}(bt)).filter(bt=>null!==bt).map(bt=>(0,Te.v)(()=>{const an=bt.guards.map(un=>{const Ci=Qa(bt.node)??R,Ji=co(un,Ci);return ci(function Ct(I){return I&&Rt(I.canActivateChild)}(Ji)?Ji.canActivateChild(q,I):Ci.runInContext(()=>Ji(q,I))).pipe($i())});return(0,oe.of)(an).pipe($e())}));return(0,oe.of)(Ne).pipe($e())}(I,ae.path,R),function bi(I,B,R){const q=B.routeConfig?B.routeConfig.canActivate:null;if(!q||0===q.length)return(0,oe.of)(!0);const ae=q.map(Ne=>(0,Te.v)(()=>{const bt=Qa(B)??R,an=co(Ne,bt);return ci(function Ye(I){return I&&Rt(I.canActivate)}(an)?an.canActivate(B,I):bt.runInContext(()=>an(B,I))).pipe($i())}));return(0,oe.of)(ae).pipe($e())}(I,ae.route,R))),$i(ae=>!0!==ae,!0))}(q,Ne,I,B):(0,oe.of)(an)),(0,Se.T)(an=>({...R,guardsResult:an})))})}(this.environmentInjector,un=>this.events.next(un)),(0,ui.M)(un=>{if(Ne.guardsResult=un.guardsResult,Tt(un.guardsResult))throw Qs(0,un.guardsResult);const Ci=new Hc(un.id,this.urlSerializer.serialize(un.extractedUrl),this.urlSerializer.serialize(un.urlAfterRedirects),un.targetSnapshot,!!un.guardsResult);this.events.next(Ci)}),(0,Wt.p)(un=>!!un.guardsResult||(this.cancelNavigationTransition(un,"",3),!1)),le(un=>{if(un.guards.canActivateChecks.length)return(0,oe.of)(un).pipe((0,ui.M)(Ci=>{const Ji=new Ol(Ci.id,this.urlSerializer.serialize(Ci.extractedUrl),this.urlSerializer.serialize(Ci.urlAfterRedirects),Ci.targetSnapshot);this.events.next(Ji)}),(0,it.n)(Ci=>{let Ji=!1;return(0,oe.of)(Ci).pipe(function iu(I,B){return(0,wn.Z)(R=>{const{targetSnapshot:q,guards:{canActivateChecks:ae}}=R;if(!ae.length)return(0,oe.of)(R);let Ne=0;return(0,V.H)(ae).pipe((0,Hr.H)(bt=>function sd(I,B,R,q){const ae=I.routeConfig,Ne=I._resolve;return void 0!==ae?.title&&!Pe(ae)&&(Ne[zt]=ae.title),function t2(I,B,R,q){const ae=function od(I){return[...Object.keys(I),...Object.getOwnPropertySymbols(I)]}(I);if(0===ae.length)return(0,oe.of)({});const Ne={};return(0,V.H)(ae).pipe((0,wn.Z)(bt=>function X(I,B,R,q){const ae=Qa(B)??q,Ne=co(I,ae);return ci(Ne.resolve?Ne.resolve(B,R):ae.runInContext(()=>Ne(B,R)))}(I[bt],B,R,q).pipe($i(),(0,ui.M)(an=>{Ne[bt]=an}))),Je(1),(0,Ue.u)(Ne),(0,dn.W)(bt=>fe(bt)?tt.w:Re(bt)))}(Ne,I,B,q).pipe((0,Se.T)(bt=>(I._resolvedData=bt,I.data=gr(I,R).resolve,ae&&Pe(ae)&&(I.data[zt]=ae.title),null)))}(bt.route,q,I,B)),(0,ui.M)(()=>Ne++),Je(1),(0,wn.Z)(bt=>Ne===ae.length?(0,oe.of)(R):tt.w))})}(R.paramsInheritanceStrategy,this.environmentInjector),(0,ui.M)({next:()=>Ji=!0,complete:()=>{Ji||this.cancelNavigationTransition(Ci,"",2)}}))}),(0,ui.M)(Ci=>{const Ji=new pl(Ci.id,this.urlSerializer.serialize(Ci.extractedUrl),this.urlSerializer.serialize(Ci.urlAfterRedirects),Ci.targetSnapshot);this.events.next(Ji)}))}),le(un=>{const Ci=Ji=>{const ls=[];Ji.routeConfig?.loadComponent&&!Ji.routeConfig._loadedComponent&&ls.push(this.configLoader.loadComponent(Ji.routeConfig).pipe((0,ui.M)(Ar=>{Ji.component=Ar}),(0,Se.T)(()=>{})));for(const Ar of Ji.children)ls.push(...Ci(Ar));return ls};return(0,pe.z)(Ci(un.targetSnapshot.root)).pipe(Wn(),(0,dt.s)(1))}),le(()=>this.afterPreactivation()),(0,Se.T)(un=>{const Ci=function Es(I,B,R){const q=ur(I,B._root,R?R._root:void 0);return new ca(q,B)}(R.routeReuseStrategy,un.targetSnapshot,un.currentRouterState);return this.currentTransition=Ne={...un,targetRouterState:Ci},Ne}),(0,ui.M)(()=>{this.events.next(new tl)}),((I,B,R,q)=>(0,Se.T)(ae=>(new Na(B,ae.targetRouterState,ae.currentRouterState,R,q).activate(I),ae)))(this.rootContexts,R.routeReuseStrategy,un=>this.events.next(un),this.inputBindingEnabled),(0,dt.s)(1),(0,ui.M)({next:un=>{bt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ps(un.id,this.urlSerializer.serialize(un.extractedUrl),this.urlSerializer.serialize(un.urlAfterRedirects))),R.titleStrategy?.updateTitle(un.targetRouterState.snapshot),un.resolve(!0)},complete:()=>{bt=!0}}),(0,H.Q)(this.transitionAbortSubject.pipe((0,ui.M)(un=>{throw un}))),(0,Ze.j)(()=>{bt||an||this.cancelNavigationTransition(Ne,"",1),this.currentNavigation?.id===Ne.id&&(this.currentNavigation=null)}),(0,dn.W)(un=>{if(an=!0,ua(un))this.events.next(new Ma(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),un.message,un.cancellationCode)),function Js(I){return ua(I)&&Tt(I.url)}(un)?this.events.next(new As(un.url)):Ne.resolve(!1);else{this.events.next(new La(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),un,Ne.targetSnapshot??void 0));try{Ne.resolve(R.errorHandler(un))}catch(Ci){Ne.reject(Ci)}}return tt.w}))}))}cancelNavigationTransition(R,q,ae){const Ne=new Ma(R.id,this.urlSerializer.serialize(R.extractedUrl),q,ae);this.events.next(Ne),R.resolve(!1)}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function _o(I){return I!==oo}let Ds=(()=>{class I{buildTitle(R){let q,ae=R.root;for(;void 0!==ae;)q=this.getResolvedTitleForRoute(ae)??q,ae=ae.children.find(Ne=>Ne.outlet===Ce);return q}getResolvedTitleForRoute(R){return R.data[zt]}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:function(){return(0,g.WQX)(xr)},providedIn:"root"})}return I})(),xr=(()=>{class I extends Ds{constructor(R){super(),this.title=R}updateTitle(R){const q=this.buildTitle(R);void 0!==q&&this.title.setTitle(q)}static#e=this.\u0275fac=function(q){return new(q||I)(g.KVO(xe.hE))};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),ko=(()=>{class I{static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:function(){return(0,g.WQX)(ha)},providedIn:"root"})}return I})();class ms{shouldDetach(B){return!1}store(B,R){}shouldAttach(B){return!1}retrieve(B){return null}shouldReuseRoute(B,R){return B.routeConfig===R.routeConfig}}let ha=(()=>{class I extends ms{static#e=this.\u0275fac=function(){let R;return function(ae){return(R||(R=g.xGo(I)))(ae||I)}}();static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();const Fa=new g.nKC("",{providedIn:"root",factory:()=>({})});let mc=(()=>{class I{static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:function(){return(0,g.WQX)(kc)},providedIn:"root"})}return I})(),kc=(()=>{class I{shouldProcessUrl(R){return!0}extract(R){return R}merge(R,q){return R}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();var js=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(js||{});function uo(I,B){I.events.pipe((0,Wt.p)(R=>R instanceof Ps||R instanceof Ma||R instanceof La||R instanceof ws),(0,Se.T)(R=>R instanceof Ps||R instanceof ws?js.COMPLETE:R instanceof Ma&&(0===R.code||1===R.code)?js.REDIRECTING:js.FAILED),(0,Wt.p)(R=>R!==js.REDIRECTING),(0,dt.s)(1)).subscribe(()=>{B()})}function oc(I){throw I}function yl(I,B,R){return B.parse("/")}const S2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$o={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Za=(()=>{class I{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,g.WQX)(g.H3F),this.isNgZoneEnabled=!1,this._events=new he.B,this.options=(0,g.WQX)(Fa,{optional:!0})||{},this.pendingTasks=(0,g.WQX)(g.$K3),this.errorHandler=this.options.errorHandler||oc,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||yl,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,g.WQX)(mc),this.routeReuseStrategy=(0,g.WQX)(ko),this.titleStrategy=(0,g.WQX)(Ds),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=(0,g.WQX)(Ie,{optional:!0})?.flat()??[],this.navigationTransitions=(0,g.WQX)(lo),this.urlSerializer=(0,g.WQX)(no),this.location=(0,g.WQX)(He.aZ),this.componentInputBindingEnabled=!!(0,g.WQX)(Is,{optional:!0}),this.eventsSubscription=new de.yU,this.isNgZoneEnabled=(0,g.WQX)(g.SKi)instanceof g.SKi&&g.SKi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new hn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ya(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(R=>{this.lastSuccessfulId=R.id,this.currentPageId=this.browserPageId},R=>{this.console.warn(`Unhandled Navigation Error: ${R}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const R=this.navigationTransitions.events.subscribe(q=>{try{const{currentTransition:ae}=this.navigationTransitions;if(null===ae)return void(gc(q)&&this._events.next(q));if(q instanceof ta)_o(ae.source)&&(this.browserUrlTree=ae.extractedUrl);else if(q instanceof ws)this.rawUrlTree=ae.rawUrl;else if(q instanceof ao){if("eager"===this.urlUpdateStrategy){if(!ae.extras.skipLocationChange){const Ne=this.urlHandlingStrategy.merge(ae.urlAfterRedirects,ae.rawUrl);this.setBrowserUrl(Ne,ae)}this.browserUrlTree=ae.urlAfterRedirects}}else if(q instanceof tl)this.currentUrlTree=ae.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ae.urlAfterRedirects,ae.rawUrl),this.routerState=ae.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ae.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ae),this.browserUrlTree=ae.urlAfterRedirects);else if(q instanceof Ma)0!==q.code&&1!==q.code&&(this.navigated=!0),(3===q.code||2===q.code)&&this.restoreHistory(ae);else if(q instanceof As){const Ne=this.urlHandlingStrategy.merge(q.url,ae.currentRawUrl),bt={skipLocationChange:ae.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||_o(ae.source)};this.scheduleNavigation(Ne,oo,null,bt,{resolve:ae.resolve,reject:ae.reject,promise:ae.promise})}q instanceof La&&this.restoreHistory(ae,!0),q instanceof Ps&&(this.navigated=!0),gc(q)&&this._events.next(q)}catch(ae){this.navigationTransitions.transitionAbortSubject.next(ae)}});this.eventsSubscription.add(R)}resetRootComponentType(R){this.routerState.root.component=R,this.navigationTransitions.rootComponentType=R}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const R=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),oo,R)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(R=>{const q="popstate"===R.type?"popstate":"hashchange";"popstate"===q&&setTimeout(()=>{this.navigateToSyncWithBrowser(R.url,q,R.state)},0)}))}navigateToSyncWithBrowser(R,q,ae){const Ne={replaceUrl:!0},bt=ae?.navigationId?ae:null;if(ae){const un={...ae};delete un.navigationId,delete un.\u0275routerPageId,0!==Object.keys(un).length&&(Ne.state=un)}const an=this.parseUrl(R);this.scheduleNavigation(an,q,bt,Ne)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(R){this.config=R.map(Lr),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,this.eventsSubscription.unsubscribe()}createUrlTree(R,q={}){const{relativeTo:ae,queryParams:Ne,fragment:bt,queryParamsHandling:an,preserveFragment:un}=q,Ci=un?this.currentUrlTree.fragment:bt;let ls,Ji=null;switch(an){case"merge":Ji={...this.currentUrlTree.queryParams,...Ne};break;case"preserve":Ji=this.currentUrlTree.queryParams;break;default:Ji=Ne||null}null!==Ji&&(Ji=this.removeEmptyProps(Ji));try{ls=Vn(ae?ae.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof R[0]||!R[0].startsWith("/"))&&(R=[]),ls=this.currentUrlTree.root}return qn(ls,R,Ji,Ci??null)}navigateByUrl(R,q={skipLocationChange:!1}){const ae=Tt(R)?R:this.parseUrl(R),Ne=this.urlHandlingStrategy.merge(ae,this.rawUrlTree);return this.scheduleNavigation(Ne,oo,null,q)}navigate(R,q={skipLocationChange:!1}){return function ot(I){for(let B=0;B{const Ne=R[ae];return null!=Ne&&(q[ae]=Ne),q},{})}scheduleNavigation(R,q,ae,Ne,bt){if(this.disposed)return Promise.resolve(!1);let an,un,Ci;bt?(an=bt.resolve,un=bt.reject,Ci=bt.promise):Ci=new Promise((ls,Ar)=>{an=ls,un=Ar});const Ji=this.pendingTasks.add();return uo(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Ji))}),this.navigationTransitions.handleNavigationRequest({source:q,restoredState:ae,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:R,extras:Ne,resolve:an,reject:un,promise:Ci,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ci.catch(ls=>Promise.reject(ls))}setBrowserUrl(R,q){const ae=this.urlSerializer.serialize(R);if(this.location.isCurrentPathEqualTo(ae)||q.extras.replaceUrl){const bt={...q.extras.state,...this.generateNgRouterState(q.id,this.browserPageId)};this.location.replaceState(ae,"",bt)}else{const Ne={...q.extras.state,...this.generateNgRouterState(q.id,this.browserPageId+1)};this.location.go(ae,"",Ne)}}restoreHistory(R,q=!1){if("computed"===this.canceledNavigationResolution){const Ne=this.currentPageId-this.browserPageId;0!==Ne?this.location.historyGo(Ne):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Ne&&(this.resetState(R),this.browserUrlTree=R.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(q&&this.resetState(R),this.resetUrlToCurrentUrlTree())}resetState(R){this.routerState=R.currentRouterState,this.currentUrlTree=R.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,R.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(R,q){return"computed"===this.canceledNavigationResolution?{navigationId:R,\u0275routerPageId:q}:{navigationId:R}}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function gc(I){return!(I instanceof tl||I instanceof As)}let ac=(()=>{class I{constructor(R,q,ae,Ne,bt,an){this.router=R,this.route=q,this.tabIndexAttribute=ae,this.renderer=Ne,this.el=bt,this.locationStrategy=an,this.href=null,this.commands=null,this.onChanges=new he.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const un=bt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===un||"area"===un,this.isAnchorElement?this.subscription=R.events.subscribe(Ci=>{Ci instanceof Ps&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(R){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",R)}ngOnChanges(R){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(R){null!=R?(this.commands=Array.isArray(R)?R:[R],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(R,q,ae,Ne,bt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==R||q||ae||Ne||bt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const R=null===this.href?null:(0,g.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",R)}applyAttributeValue(R,q){const ae=this.renderer,Ne=this.el.nativeElement;null!==q?ae.setAttribute(Ne,R,q):ae.removeAttribute(Ne,R)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(q){return new(q||I)(g.rXU(Za),g.rXU(qs),g.kS0("tabindex"),g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(He.hb))};static#t=this.\u0275dir=g.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(q,ae){1&q&&g.bIt("click",function(bt){return ae.onClick(bt.button,bt.ctrlKey,bt.shiftKey,bt.altKey,bt.metaKey)}),2&q&&g.BMQ("target",ae.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",g.L39],skipLocationChange:["skipLocationChange","skipLocationChange",g.L39],replaceUrl:["replaceUrl","replaceUrl",g.L39],routerLink:"routerLink"},standalone:!0,features:[g.GFd,g.OA$]})}return I})(),R1=(()=>{class I{get isActive(){return this._isActive}constructor(R,q,ae,Ne,bt){this.router=R,this.element=q,this.renderer=ae,this.cdr=Ne,this.link=bt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new g.bkB,this.routerEventsSubscription=R.events.subscribe(an=>{an instanceof Ps&&this.update()})}ngAfterContentInit(){(0,oe.of)(this.links.changes,(0,oe.of)(null)).pipe((0,te.U)()).subscribe(R=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const R=[...this.links.toArray(),this.link].filter(q=>!!q).map(q=>q.onChanges);this.linkInputChangesSubscription=(0,V.H)(R).pipe((0,te.U)()).subscribe(q=>{this._isActive!==this.isLinkActive(this.router)(q)&&this.update()})}set routerLinkActive(R){const q=Array.isArray(R)?R:R.split(" ");this.classes=q.filter(ae=>!!ae)}ngOnChanges(R){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const R=this.hasActiveLinks();this._isActive!==R&&(this._isActive=R,this.cdr.markForCheck(),this.classes.forEach(q=>{R?this.renderer.addClass(this.element.nativeElement,q):this.renderer.removeClass(this.element.nativeElement,q)}),R&&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(R))})}isLinkActive(R){const q=function k2(I){return!!I.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ae=>!!ae.urlTree&&R.isActive(ae.urlTree,q)}hasActiveLinks(){const R=this.isLinkActive(this.router);return this.link&&R(this.link)||this.links.some(R)}static#e=this.\u0275fac=function(q){return new(q||I)(g.rXU(Za),g.rXU(g.aKT),g.rXU(g.sFG),g.rXU(g.gRc),g.rXU(ac,8))};static#t=this.\u0275dir=g.FsC({type:I,selectors:[["","routerLinkActive",""]],contentQueries:function(q,ae,Ne){if(1&q&&g.wni(Ne,ac,5),2&q){let bt;g.mGM(bt=g.lsd())&&(ae.links=bt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[g.OA$]})}return I})();class cc{}let Ud=(()=>{class I{preload(R,q){return q().pipe((0,dn.W)(()=>(0,oe.of)(null)))}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),Tu=(()=>{class I{constructor(R,q,ae,Ne,bt){this.router=R,this.injector=ae,this.preloadingStrategy=Ne,this.loader=bt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Wt.p)(R=>R instanceof Ps),(0,Hr.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(R,q){const ae=[];for(const Ne of q){Ne.providers&&!Ne._injector&&(Ne._injector=(0,g.Ol2)(Ne.providers,R,`Route: ${Ne.path}`));const bt=Ne._injector??R,an=Ne._loadedInjector??bt;(Ne.loadChildren&&!Ne._loadedRoutes&&void 0===Ne.canLoad||Ne.loadComponent&&!Ne._loadedComponent)&&ae.push(this.preloadConfig(bt,Ne)),(Ne.children||Ne._loadedRoutes)&&ae.push(this.processRoutes(an,Ne.children??Ne._loadedRoutes))}return(0,V.H)(ae).pipe((0,te.U)())}preloadConfig(R,q){return this.preloadingStrategy.preload(q,()=>{let ae;ae=q.loadChildren&&void 0===q.canLoad?this.loader.loadChildren(R,q):(0,oe.of)(null);const Ne=ae.pipe((0,wn.Z)(bt=>null===bt?(0,oe.of)(void 0):(q._loadedRoutes=bt.routes,q._loadedInjector=bt.injector,this.processRoutes(bt.injector??R,bt.routes))));if(q.loadComponent&&!q._loadedComponent){const bt=this.loader.loadComponent(q);return(0,V.H)([Ne,bt]).pipe((0,te.U)())}return Ne})}static#e=this.\u0275fac=function(q){return new(q||I)(g.KVO(Za),g.KVO(g.Ql9),g.KVO(g.uvJ),g.KVO(cc),g.KVO(Ot))};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();const qc=new g.nKC("");let ru=(()=>{class I{constructor(R,q,ae,Ne,bt={}){this.urlSerializer=R,this.transitions=q,this.viewportScroller=ae,this.zone=Ne,this.options=bt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},bt.scrollPositionRestoration=bt.scrollPositionRestoration||"disabled",bt.anchorScrolling=bt.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(R=>{R instanceof ta?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=R.navigationTrigger,this.restoredId=R.restoredState?R.restoredState.navigationId:0):R instanceof Ps?(this.lastId=R.id,this.scheduleScrollEvent(R,this.urlSerializer.parse(R.urlAfterRedirects).fragment)):R instanceof ws&&0===R.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(R,this.urlSerializer.parse(R.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(R=>{R instanceof Ws&&(R.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(R.position):R.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(R.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(R,q){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ws(R,"popstate"===this.lastSource?this.store[this.restoredId]:null,q))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(q){g.QTQ()};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac})}return I})();function Wd(I,...B){return(0,g.EmA)([{provide:Ie,multi:!0,useValue:I},[],{provide:qs,useFactory:n2,deps:[Za]},{provide:g.iLQ,multi:!0,useFactory:Pl},B.map(R=>R.\u0275providers)])}function n2(I){return I.routerState.root}function Nl(I,B){return{\u0275kind:I,\u0275providers:B}}function ou(I={}){return Nl(4,[{provide:qc,useFactory:()=>{const R=(0,g.WQX)(He.Xr),q=(0,g.WQX)(g.SKi),ae=(0,g.WQX)(lo),Ne=(0,g.WQX)(no);return new ru(Ne,ae,R,q,I)}}])}function Pl(){const I=(0,g.WQX)(g.zZn);return B=>{const R=I.get(g.o8S);if(B!==R.components[0])return;const q=I.get(Za),ae=I.get(x1);1===I.get(f1)&&q.initialNavigation(),I.get(Au,null,g.$GK.Optional)?.setUpPreloading(),I.get(qc,null,g.$GK.Optional)?.init(),q.resetRootComponentType(R.componentTypes[0]),ae.closed||(ae.next(),ae.complete(),ae.unsubscribe())}}const x1=new g.nKC("",{factory:()=>new he.B}),f1=new g.nKC("",{providedIn:"root",factory:()=>1}),Au=new g.nKC("");function qd(I){return Nl(0,[{provide:Au,useExisting:Tu},{provide:cc,useExisting:I}])}const au=new g.nKC("ROUTER_FORROOT_GUARD"),ld=[He.aZ,{provide:no,useClass:Jr},Za,Ka,{provide:qs,useFactory:n2,deps:[Za]},Ot,[]];function Ec(){return new g.NEm("Router",Za)}let w1=(()=>{class I{constructor(R){}static forRoot(R,q){return{ngModule:I,providers:[ld,[],{provide:Ie,multi:!0,useValue:R},{provide:au,useFactory:V2,deps:[[Za,new g.Xx1,new g.kdw]]},{provide:Fa,useValue:q||{}},q?.useHash?{provide:He.hb,useClass:He.fw}:{provide:He.hb,useClass:He.Sm},{provide:qc,useFactory:()=>{const I=(0,g.WQX)(He.Xr),B=(0,g.WQX)(g.SKi),R=(0,g.WQX)(Fa),q=(0,g.WQX)(lo),ae=(0,g.WQX)(no);return R.scrollOffset&&I.setOffset(R.scrollOffset),new ru(ae,q,I,B,R)}},q?.preloadingStrategy?qd(q.preloadingStrategy).\u0275providers:[],{provide:g.NEm,multi:!0,useFactory:Ec},q?.initialNavigation?ud(q):[],q?.bindToComponentInputs?Nl(8,[wc,{provide:Is,useExisting:wc}]).\u0275providers:[],[{provide:cu,useFactory:Pl},{provide:g.iLQ,multi:!0,useExisting:cu}]]}}static forChild(R){return{ngModule:I,providers:[{provide:Ie,multi:!0,useValue:R}]}}static#e=this.\u0275fac=function(q){return new(q||I)(g.KVO(au,8))};static#t=this.\u0275mod=g.$C({type:I});static#n=this.\u0275inj=g.G2t({})}return I})();function V2(I){return"guarded"}function ud(I){return["disabled"===I.initialNavigation?Nl(3,[{provide:g.hnV,multi:!0,useFactory:()=>{const B=(0,g.WQX)(Za);return()=>{B.setUpLocationChangeListener()}}},{provide:f1,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Nl(2,[{provide:f1,useValue:0},{provide:g.hnV,multi:!0,deps:[g.zZn],useFactory:B=>{const R=B.get(He.hj,Promise.resolve());return()=>R.then(()=>new Promise(q=>{const ae=B.get(Za),Ne=B.get(x1);uo(ae,()=>{q(!0)}),B.get(lo).afterPreactivation=()=>(q(!0),Ne.closed?(0,oe.of)(void 0):Ne),ae.initialNavigation()}))}}]).\u0275providers:[]]}const cu=new g.nKC("")},6897:(vn,J,F)=>{"use strict";F.d(J,{Zq:()=>ge});var g=F(2669),o=F(6610),V=F(2978),oe=F(8832);let De=(()=>{class ze{create(Re,tt){return(0,g.Ay)(Re,tt)}static#e=this.\u0275fac=function(tt){return new(tt||ze)};static#t=this.\u0275prov=V.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})();const pe=new V.nKC("IMASK_FACTORY",{providedIn:"root",factory:()=>(0,V.WQX)(De)}),Ee={provide:oe.kq,useExisting:(0,V.Rfq)(()=>ge),multi:!0},be=ze=>ze.nativeElement;let ge=(()=>{class ze{constructor(){this.onTouched=()=>{},this.onChange=()=>{},this._viewInitialized=!1,this._composing=!1,this._writing=!1,this._elementRef=(0,V.WQX)(V.aKT),this._renderer=(0,V.WQX)(V.sFG),this._factory=(0,V.WQX)(pe),this._platformId=(0,V.WQX)(V.Agw),this._compositionMode=(0,V.WQX)(oe.mP,{optional:!0})??!this._isAndroid(),this.imaskElement=be,this.accept=new V.bkB,this.complete=new V.bkB}get element(){return this.imaskElement(this._elementRef,this)}get maskValue(){return this.maskRef?"typed"===this.unmask?this.maskRef.typedValue:this.unmask?this.maskRef.unmaskedValue:this.maskRef.value:this.element?.value||""}set maskValue(Re){this.maskRef?"typed"===this.unmask?this.maskRef.typedValue=Re:this.unmask?this.maskRef.unmaskedValue=Re:this.maskRef.value=Re:this._renderer.setProperty(this.element,"value",Re)}ngAfterViewInit(){this.imask&&this.initMask(),this._viewInitialized=!0}ngOnChanges(Re){Re.elementRef&&!this.imaskElement&&(this.imaskElement=be),Re.imask&&this._viewInitialized&&(this.imask?this.maskRef?this.maskRef.updateOptions(this.imask):(this.initMask(),this.onChange(this.maskValue)):this.destroyMask())}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}ngOnDestroy(){this.destroyMask(),this.accept.complete(),this.complete.complete()}beginWrite(Re){this._writing=!0,this._writingValue=Re}endWrite(){return this._writing=!1,this._writingValue}writeValue(Re){Re=null==Re&&"typed"!==this.unmask?"":Re,this.maskRef?(this.beginWrite(Re),this.maskValue=Re,this.endWrite()):(this._renderer.setProperty(this.element,"value",Re),this._initialValue=Re)}_onAccept(){const Re=this.maskValue;this._writing&&Re===this.endWrite()||(this.onChange(Re),this.accept.emit(Re))}_onComplete(){this.complete.emit(this.maskValue)}initMask(){this.maskRef=this._factory.create(this.element,this.imask).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),null!=this._initialValue&&this.writeValue(this._initialValue),delete this._initialValue}setDisabledState(Re){this._renderer.setProperty(this.element,"disabled",Re)}registerOnChange(Re){this.onChange=Re}registerOnTouched(Re){this.onTouched=Re}_handleInput(Re){this.maskRef||(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Re)}_compositionStart(){this._composing=!0}_compositionEnd(Re){this._composing=!1,this._compositionMode&&this._handleInput(Re)}_isAndroid(){return(0,o.UE)(this._platformId)&&/android (\d+)/.test(navigator.userAgent.toLowerCase())}static#e=this.\u0275fac=function(tt){return new(tt||ze)};static#t=this.\u0275dir=V.FsC({type:ze,selectors:[["","imask",""]],hostBindings:function(tt,de){1&tt&&V.bIt("input",function(_t){return de._handleInput(_t.target.value)})("blur",function(){return de.onTouched()})("compositionstart",function(){return de._compositionStart()})("compositionend",function(_t){return de._compositionEnd(_t.target.value)})},inputs:{imask:"imask",unmask:"unmask",imaskElement:"imaskElement"},outputs:{accept:"accept",complete:"complete"},exportAs:["imask"],standalone:!0,features:[V.Jv_([Ee]),V.OA$]})}return ze})()},2669:(vn,J,F)=>{"use strict";function g(Ze){return"string"==typeof Ze||Ze instanceof String}function o(Ze){var H;return"object"==typeof Ze&&null!=Ze&&"Object"===(null==Ze||null==(H=Ze.constructor)?void 0:H.name)}function V(Ze,H){return Array.isArray(H)?V(Ze,(te,xe)=>H.includes(xe)):Object.entries(Ze).reduce((te,xe)=>{let[Ce,zt]=xe;return H(zt,Ce)&&(te[Ce]=zt),te},{})}F.d(J,{Ay:()=>ge});function pe(Ze){return Ze.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Ee(Ze,H){if(H===Ze)return!0;const te=Array.isArray(H),xe=Array.isArray(Ze);let Ce;if(te&&xe){if(H.length!=Ze.length)return!1;for(Ce=0;Ce!zt.startsWith("_")),mask:H.constructor,_mask:xe,...te}}}return o(Ze)?{...Ze}:{mask:Ze}}function ze(Ze){if(ge.Masked&&Ze instanceof ge.Masked)return Ze;const H=Ve(Ze),te=Te(H.mask);if(!te)throw new Error("Masked class is not found for provided mask "+H.mask+", appropriate module needs to be imported manually before creating mask.");return H.mask===te&&delete H.mask,H._mask&&(H.mask=H._mask,delete H._mask),new te(H)}ge.createMask=ze;class vt{get selectionStart(){let H;try{H=this._unsafeSelectionStart}catch{}return H??this.value.length}get selectionEnd(){let H;try{H=this._unsafeSelectionEnd}catch{}return H??this.value.length}select(H,te){if(null!=H&&null!=te&&(H!==this.selectionStart||te!==this.selectionEnd))try{this._unsafeSelect(H,te)}catch{}}get isActive(){return!1}}ge.MaskElement=vt;class de extends vt{constructor(H){super(),this.input=H,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var H,te,xe;return null!=(H=null==(te=(xe=this.input).getRootNode)?void 0:te.call(xe))?H:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(H){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",H.drop),this.input.addEventListener("click",H.click),this.input.addEventListener("focus",H.focus),this.input.addEventListener("blur",H.commit),this._handlers=H}_onKeydown(H){return this._handlers.redo&&(90===H.keyCode&&H.shiftKey&&(H.metaKey||H.ctrlKey)||89===H.keyCode&&H.ctrlKey)?(H.preventDefault(),this._handlers.redo(H)):this._handlers.undo&&90===H.keyCode&&(H.metaKey||H.ctrlKey)?(H.preventDefault(),this._handlers.undo(H)):void(H.isComposing||this._handlers.selectionChange(H))}_onBeforeinput(H){return"historyUndo"===H.inputType&&this._handlers.undo?(H.preventDefault(),this._handlers.undo(H)):"historyRedo"===H.inputType&&this._handlers.redo?(H.preventDefault(),this._handlers.redo(H)):void 0}_onCompositionEnd(H){this._handlers.input(H)}_onInput(H){H.isComposing||this._handlers.input(H)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}ge.HTMLMaskElement=de;class Fe extends de{constructor(H){super(H),this.input=H}get _unsafeSelectionStart(){return null!=this.input.selectionStart?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(H,te){this.input.setSelectionRange(H,te)}get value(){return this.input.value}set value(H){this.input.value=H}}ge.HTMLMaskElement=de;class _t extends de{get _unsafeSelectionStart(){const H=this.rootElement,te=H.getSelection&&H.getSelection(),xe=te&&te.anchorOffset,Ce=te&&te.focusOffset;return null==Ce||null==xe||xeCe?xe:Ce}_unsafeSelect(H,te){if(!this.rootElement.createRange)return;const xe=this.rootElement.createRange();xe.setStart(this.input.firstChild||this.input,H),xe.setEnd(this.input.lastChild||this.input,te);const Ce=this.rootElement,zt=Ce.getSelection&&Ce.getSelection();zt&&(zt.removeAllRanges(),zt.addRange(xe))}get value(){return this.input.textContent||""}set value(H){this.input.textContent=H}}ge.HTMLContenteditableMaskElement=_t;let at=(()=>{class Ze{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return 0===this.states.length}push(te){this.currentIndexZe.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(te){return this.currentIndex=Math.min(Math.max(this.currentIndex+te,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}return Ze.MAX_LENGTH=100,Ze})();ge.InputMask=class Be{constructor(H,te){this.el=H instanceof vt?H:H.isContentEditable&&"INPUT"!==H.tagName&&"TEXTAREA"!==H.tagName?new _t(H):new Fe(H),this.masked=ze(te),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new at,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(H){var te;return null==H||(null==(te=this.masked)?void 0:te.maskEquals(H))}get mask(){return this.masked.mask}set mask(H){if(this.maskEquals(H))return;if(!(H instanceof ge.Masked)&&this.masked.constructor===Te(H))return void this.masked.updateOptions({mask:H});const te=H instanceof ge.Masked?H:ze({mask:H});te.unmaskedValue=this.masked.unmaskedValue,this.masked=te}get value(){return this._value}set value(H){this.value!==H&&(this.masked.value=H,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(H){this.unmaskedValue!==H&&(this.masked.unmaskedValue=H,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(H){this.rawInputValue!==H&&(this.masked.rawInputValue=H,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(H){this.masked.typedValueEquals(H)||(this.masked.typedValue=H,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(H,te){const xe=this._listeners[H];xe&&xe.forEach(Ce=>Ce(te))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(H){!this.el||!this.el.isActive||(this.el.select(H,H),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(H){const te=this.masked.unmaskedValue,xe=this.masked.value,Ce=this.masked.rawInputValue,zt=this.displayValue,rt=this.unmaskedValue!==te||this.value!==xe||this._rawInputValue!==Ce;this._unmaskedValue=te,this._value=xe,this._rawInputValue=Ce,this.el.value!==zt&&(this.el.value=zt),"auto"===H?this.alignCursor():null!=H&&(this.cursorPos=H),rt&&this._fireChangeEvents(),!this._historyChanging&&(rt||this.history.isEmpty)&&this.history.push({unmaskedValue:te,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(H){const{mask:te,...xe}=H,Ce=!this.maskEquals(te),zt=this.masked.optionsIsChanged(xe);Ce&&(this.mask=te),zt&&this.masked.updateOptions(xe),(Ce||zt)&&this.updateControl()}updateCursor(H){null!=H&&(this.cursorPos=H,this._delayUpdateCursor(H))}_delayUpdateCursor(H){this._abortUpdateCursor(),this._changingCursorPos=H,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,"LEFT"))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(H,te){return this._listeners[H]||(this._listeners[H]=[]),this._listeners[H].push(te),this}off(H,te){if(!this._listeners[H])return this;if(!te)return delete this._listeners[H],this;const xe=this._listeners[H].indexOf(te);return xe>=0&&this._listeners[H].splice(xe,1),this}_onInput(H){this._inputEvent=H,this._abortUpdateCursor();const te=new be({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),xe=this.masked.rawInputValue,Ce=this.masked.splice(te.startChangePos,te.removed.length,te.inserted,te.removeDirection,{input:!0,raw:!0}).offset,zt=xe===this.masked.rawInputValue?te.removeDirection:"NONE";let rt=this.masked.nearestInputPos(te.startChangePos+Ce,zt);"NONE"!==zt&&(rt=this.masked.nearestInputPos(rt,"NONE")),this.updateControl(rt),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(H){H.preventDefault(),H.stopPropagation()}_onFocus(H){this.alignCursorFriendly()}_onClick(H){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(H){H&&(this._historyChanging=!0,this.unmaskedValue=H.unmaskedValue,this.el.select(H.selection.start,H.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};class he{static normalize(H){return Array.isArray(H)?H:[H,new he]}constructor(H){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},H)}aggregate(H){return this.inserted+=H.inserted,this.rawInserted+=H.rawInserted,this.tailShift+=H.tailShift,this.skip=this.skip||H.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(H){return this.inserted===H.inserted&&this.tailShift===H.tailShift&&this.rawInserted===H.rawInserted&&this.skip===H.skip}}ge.ChangeDetails=he;class He{constructor(H,te,xe){void 0===H&&(H=""),void 0===te&&(te=0),this.value=H,this.from=te,this.stop=xe}toString(){return this.value}extend(H){this.value+=String(H)}appendTo(H){return H.append(this.toString(),{tail:!0}).aggregate(H._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(H){Object.assign(this,H)}unshift(H){if(!this.value.length||null!=H&&this.from>=H)return"";const te=this.value[0];return this.value=this.value.slice(1),te}shift(){if(!this.value.length)return"";const H=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),H}}class Se{constructor(H){this._value="",this._update({...Se.DEFAULTS,...H}),this._initialized=!0}updateOptions(H){this.optionsIsChanged(H)&&this.withValueRefresh(this._update.bind(this,H))}_update(H){Object.assign(this,H)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(H){this._value=H._value}reset(){this._value=""}get value(){return this._value}set value(H){this.resolve(H,{input:!0})}resolve(H,te){void 0===te&&(te={input:!0}),this.reset(),this.append(H,te,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(H){this.resolve(H,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(H){this.format?this.value=this.format(H,this):this.unmaskedValue=String(H)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(H){this.resolve(H,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(H,te){return H}totalInputPositions(H,te){return void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),Math.min(this.displayValue.length,te-H)}extractInput(H,te,xe){return void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),this.displayValue.slice(H,te)}extractTail(H,te){return void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),new He(this.extractInput(H,te),H)}appendTail(H){return g(H)&&(H=new He(String(H))),H.appendTo(this)}_appendCharRaw(H,te){return H?(this._value+=H,new he({inserted:H,rawInserted:H})):new he}_appendChar(H,te,xe){void 0===te&&(te={});const Ce=this.state;let zt;if([H,zt]=this.doPrepareChar(H,te),H&&(zt=zt.aggregate(this._appendCharRaw(H,te)),!zt.rawInserted&&"pad"===this.autofix)){const rt=this.state;this.state=Ce;let xt=this.pad(te);const Gt=this._appendCharRaw(H,te);xt=xt.aggregate(Gt),Gt.rawInserted||xt.equals(zt)?zt=xt:this.state=rt}if(zt.inserted){let rt,xt=!1!==this.doValidate(te);if(xt&&null!=xe){const Gt=this.state;if(!0===this.overwrite){rt=xe.state;for(let In=0;In1&&0!==H&&!Gt?"NONE":Ce),xi.tailShift=In-H),xi.aggregate(this.remove(In)),Gt&&"NONE"!==Ce&&xn===this.rawInputValue)if("FORCE_LEFT"===Ce){let or;for(;xn===this.rawInputValue&&(or=this.displayValue.length);)xi.aggregate(new he({tailShift:-1})).aggregate(this.remove(or-1))}else"FORCE_RIGHT"===Ce&&xt.unshift();return xi.aggregate(this.append(xe,zt,xt))}maskEquals(H){return this.mask===H}optionsIsChanged(H){return!Ee(this,H)}typedValueEquals(H){const te=this.typedValue;return H===te||Se.EMPTY_VALUES.includes(H)&&Se.EMPTY_VALUES.includes(te)||!!this.format&&this.format(H,this)===this.format(this.typedValue,this)}pad(H){return new he}}Se.DEFAULTS={skipInvalid:!0},Se.EMPTY_VALUES=[void 0,null,""],ge.Masked=Se;class it{constructor(H,te){void 0===H&&(H=[]),void 0===te&&(te=0),this.chunks=H,this.from=te}toString(){return this.chunks.map(String).join("")}extend(H){if(!String(H))return;H=g(H)?new He(String(H)):H;const te=this.chunks[this.chunks.length-1],xe=te&&(te.stop===H.stop||null==H.stop)&&H.from===te.from+te.toString().length;if(H instanceof He)xe?te.extend(H.toString()):this.chunks.push(H);else if(H instanceof it){if(null==H.stop){let Ce;for(;H.chunks.length&&null==H.chunks[0].stop;)Ce=H.chunks.shift(),Ce.from+=H.from,this.extend(Ce)}H.toString()&&(H.stop=H.blockIndex,this.chunks.push(H))}}appendTo(H){if(!(H instanceof ge.MaskedPattern))return new He(this.toString()).appendTo(H);const te=new he;for(let xe=0;xe=0)&&te.aggregate(H._appendPlaceholder(rt)),xt=Ce instanceof it&&H._blocks[rt]),xt){const Gt=xt.appendTail(Ce);te.aggregate(Gt);const xn=Ce.toString().slice(Gt.rawInserted.length);xn&&te.aggregate(H.append(xn,{tail:!0}))}else te.aggregate(H.append(Ce.toString(),{tail:!0}))}return te}get state(){return{chunks:this.chunks.map(H=>H.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(H){const{chunks:te,...xe}=H;Object.assign(this,xe),this.chunks=te.map(Ce=>{const zt="chunks"in Ce?new it:new He;return zt.state=Ce,zt})}unshift(H){if(!this.chunks.length||null!=H&&this.from>=H)return"";const te=null!=H?H-this.from:H;let xe=0;for(;xe=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(H){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null==(te=this.block)?void 0:te.displayValue.length)||0){var te;if(H())return this.ok=!0}return this.ok=!1}_pushRight(H){for(this.pushState(),this.bindBlock();this.index{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,"FORCE_LEFT"),0!==this.offset))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,"LEFT"),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,"LEFT"),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,"FORCE_RIGHT"),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,"NONE"),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,"NONE"),!0})}}class jt{constructor(H){Object.assign(this,H),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(H,te){return void 0===H&&(H=0),void 0===te&&(te=this._value.length),this._value=this._value.slice(0,H)+this._value.slice(te),this._value||(this._isRawInput=!1),new he}nearestInputPos(H,te){void 0===te&&(te="NONE");const Ce=this._value.length;switch(te){case"LEFT":case"FORCE_LEFT":return 0;default:return Ce}}totalInputPositions(H,te){return void 0===H&&(H=0),void 0===te&&(te=this._value.length),this._isRawInput?te-H:0}extractInput(H,te,xe){return void 0===H&&(H=0),void 0===te&&(te=this._value.length),void 0===xe&&(xe={}),xe.raw&&this._isRawInput&&this._value.slice(H,te)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(H,te){if(void 0===te&&(te={}),this.isFilled)return new he;const zt=this.char===H&&(this.isUnmasking||te.input||te.raw)&&(!te.raw||!(!0===this.eager||"append"===this.eager))&&!te.tail,rt=new he({inserted:this.char,rawInserted:zt?this.char:""});return this._value=this.char,this._isRawInput=zt&&(te.raw||te.input),rt}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const H=new he;return this.isFilled||(this._value=H.inserted=this.char),H}extractTail(){return new He("")}appendTail(H){return g(H)&&(H=new He(String(H))),H.appendTo(this)}append(H,te,xe){const Ce=this._appendChar(H[0],te);return null!=xe&&(Ce.tailShift+=this.appendTail(xe).tailShift),Ce}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(H){this._value=H._value,this._isRawInput=!!H._rawInputValue}pad(H){return this._appendPlaceholder()}}let Wt=(()=>{class Ze{constructor(te){const{parent:xe,isOptional:Ce,placeholderChar:zt,displayChar:rt,lazy:xt,eager:Gt,...xn}=te;this.masked=ze(xn),Object.assign(this,{parent:xe,isOptional:Ce,placeholderChar:zt,displayChar:rt,lazy:xt,eager:Gt})}reset(){this.isFilled=!1,this.masked.reset()}remove(te,xe){return void 0===te&&(te=0),void 0===xe&&(xe=this.value.length),0===te&&xe>=1?(this.isFilled=!1,this.masked.remove(te,xe)):new he}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(te,xe){if(void 0===xe&&(xe={}),this.isFilled)return new he;const Ce=this.masked.state;let zt=this.masked._appendChar(te,this.currentMaskFlags(xe));return zt.inserted&&!1===this.doValidate(xe)&&(zt=new he,this.masked.state=Ce),!zt.inserted&&!this.isOptional&&!this.lazy&&!xe.input&&(zt.inserted=this.placeholderChar),zt.skip=!zt.inserted&&!this.isOptional,this.isFilled=!!zt.inserted,zt}append(te,xe,Ce){return this.masked.append(te,this.currentMaskFlags(xe),Ce)}_appendPlaceholder(){return this.isFilled||this.isOptional?new he:(this.isFilled=!0,new he({inserted:this.placeholderChar}))}_appendEager(){return new he}extractTail(te,xe){return this.masked.extractTail(te,xe)}appendTail(te){return this.masked.appendTail(te)}extractInput(te,xe,Ce){return void 0===te&&(te=0),void 0===xe&&(xe=this.value.length),this.masked.extractInput(te,xe,Ce)}nearestInputPos(te,xe){void 0===xe&&(xe="NONE");const zt=this.value.length,rt=Math.min(Math.max(te,0),zt);switch(xe){case"LEFT":case"FORCE_LEFT":return this.isComplete?rt:0;case"RIGHT":case"FORCE_RIGHT":return this.isComplete?rt:zt;default:return rt}}totalInputPositions(te,xe){return void 0===te&&(te=0),void 0===xe&&(xe=this.value.length),this.value.slice(te,xe).length}doValidate(te){return this.masked.doValidate(this.currentMaskFlags(te))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(te)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(te){this.masked.state=te.masked,this.isFilled=te.isFilled}currentMaskFlags(te){var xe;return{...te,_beforeTailState:(null==te||null==(xe=te._beforeTailState)?void 0:xe.masked)||te?._beforeTailState}}pad(te){return new he}}return Ze.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\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\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-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\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]/,"*":/./},Ze})();ge.MaskedRegExp=class wn extends Se{updateOptions(H){super.updateOptions(H)}_update(H){const te=H.mask;te&&(H.validate=xe=>xe.search(te)>=0),super._update(H)}};class Wn extends Se{constructor(H){super({...Wn.DEFAULTS,...H,definitions:Object.assign({},Wt.DEFAULT_DEFINITIONS,H?.definitions)})}updateOptions(H){super.updateOptions(H)}_update(H){H.definitions=Object.assign({},this.definitions,H.definitions),super._update(H),this._rebuildMask()}_rebuildMask(){const H=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const te=this.mask;if(!te||!H)return;let xe=!1,Ce=!1;for(let zt=0;zt0===xn.indexOf(or));In.sort((or,ci)=>ci.length-or.length);const xi=In[0];if(xi){const{expose:or,repeat:ci,...Dr}=Ve(this.blocks[xi]),Tr={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...Dr,repeat:ci,parent:this},cn=null!=ci?new ge.RepeatBlock(Tr):ze(Tr);cn&&(this._blocks.push(cn),or&&(this.exposeBlock=cn),this._maskedBlocks[xi]||(this._maskedBlocks[xi]=[]),this._maskedBlocks[xi].push(this._blocks.length-1)),zt+=xi.length-1;continue}}let rt=te[zt],xt=rt in H;if(rt===Wn.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===rt||"}"===rt){xe=!xe;continue}if("["===rt||"]"===rt){Ce=!Ce;continue}if(rt===Wn.ESCAPE_CHAR){if(++zt,rt=te[zt],!rt)break;xt=!1}const Gt=xt?new Wt({isOptional:Ce,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Ve(H[rt]),parent:this}):new jt({char:rt,eager:this.eager,isUnmasking:xe});this._blocks.push(Gt)}}get state(){return{...super.state,_blocks:this._blocks.map(H=>H.state)}}set state(H){if(!H)return void this.reset();const{_blocks:te,...xe}=H;this._blocks.forEach((Ce,zt)=>Ce.state=te[zt]),super.state=xe}reset(){super.reset(),this._blocks.forEach(H=>H.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(H=>H.isComplete)}get isFilled(){return this._blocks.every(H=>H.isFilled)}get isFixed(){return this._blocks.every(H=>H.isFixed)}get isOptional(){return this._blocks.every(H=>H.isOptional)}doCommit(){this._blocks.forEach(H=>H.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((H,te)=>H+te.unmaskedValue,"")}set unmaskedValue(H){if(this.exposeBlock){const te=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=H,this.appendTail(te),this.doCommit()}else super.unmaskedValue=H}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((H,te)=>H+te.value,"")}set value(H){if(this.exposeBlock){const te=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=H,this.appendTail(te),this.doCommit()}else super.value=H}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(H){if(this.exposeBlock){const te=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=H,this.appendTail(te),this.doCommit()}else super.typedValue=H}get displayValue(){return this._blocks.reduce((H,te)=>H+te.displayValue,"")}appendTail(H){return super.appendTail(H).aggregate(this._appendPlaceholder())}_appendEager(){var H;const te=new he;let xe=null==(H=this._mapPosToBlock(this.displayValue.length))?void 0:H.index;if(null==xe)return te;this._blocks[xe].isFilled&&++xe;for(let Ce=xe;Ce{const Gt=Ce.extractTail(rt,xt);Gt.stop=this._findStopBefore(zt),Gt.from=this._blockStartPos(zt),Gt instanceof it&&(Gt.blockIndex=zt),xe.extend(Gt)}),xe}extractInput(H,te,xe){if(void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),void 0===xe&&(xe={}),H===te)return"";let Ce="";return this._forEachBlocksInRange(H,te,(zt,rt,xt,Gt)=>{Ce+=zt.extractInput(xt,Gt,xe)}),Ce}_findStopBefore(H){let te;for(let xe=0;xe{var xt;rt.lazy&&null==H||te.aggregate(rt._appendPlaceholder(null==(xt=rt._blocks)?void 0:xt.length))}),te):te}_mapPosToBlock(H){let te="";for(let xe=0;xete+xe.displayValue.length,0)}_forEachBlocksInRange(H,te,xe){void 0===te&&(te=this.displayValue.length);const Ce=this._mapPosToBlock(H);if(Ce){const zt=this._mapPosToBlock(te),rt=zt&&Ce.index===zt.index;if(xe(this._blocks[Ce.index],Ce.index,Ce.offset,zt&&rt?zt.offset:this._blocks[Ce.index].displayValue.length),zt&&!rt){for(let xn=Ce.index+1;xn{xe.aggregate(Ce.remove(rt,xt))}),xe}nearestInputPos(H,te){if(void 0===te&&(te="NONE"),!this._blocks.length)return 0;const xe=new dt(this,H);if("NONE"===te)return xe.pushRightBeforeInput()||(xe.popState(),xe.pushLeftBeforeInput())?xe.pos:this.displayValue.length;if("LEFT"===te||"FORCE_LEFT"===te){if("LEFT"===te){if(xe.pushRightBeforeFilled(),xe.ok&&xe.pos===H)return H;xe.popState()}if(xe.pushLeftBeforeInput(),xe.pushLeftBeforeRequired(),xe.pushLeftBeforeFilled(),"LEFT"===te){if(xe.pushRightBeforeInput(),xe.pushRightBeforeRequired(),xe.ok&&xe.pos<=H||(xe.popState(),xe.ok&&xe.pos<=H))return xe.pos;xe.popState()}return xe.ok?xe.pos:"FORCE_LEFT"===te?0:(xe.popState(),xe.ok||(xe.popState(),xe.ok)?xe.pos:0)}return"RIGHT"===te||"FORCE_RIGHT"===te?(xe.pushRightBeforeInput(),xe.pushRightBeforeRequired(),xe.pushRightBeforeFilled()?xe.pos:"FORCE_RIGHT"===te?this.displayValue.length:(xe.popState(),xe.ok||(xe.popState(),xe.ok)?xe.pos:this.nearestInputPos(H,"LEFT"))):H}totalInputPositions(H,te){void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length);let xe=0;return this._forEachBlocksInRange(H,te,(Ce,zt,rt,xt)=>{xe+=Ce.totalInputPositions(rt,xt)}),xe}maskedBlock(H){return this.maskedBlocks(H)[0]}maskedBlocks(H){const te=this._maskedBlocks[H];return te?te.map(xe=>this._blocks[xe]):[]}pad(H){const te=new he;return this._forEachBlocksInRange(0,this.displayValue.length,xe=>te.aggregate(xe.pad(H))),te}}Wn.DEFAULTS={...Se.DEFAULTS,lazy:!0,placeholderChar:"_"},Wn.STOP_CHAR="`",Wn.ESCAPE_CHAR="\\",Wn.InputDefinition=Wt,Wn.FixedDefinition=jt,ge.MaskedPattern=Wn;class di extends Wn{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(H){super(H)}updateOptions(H){super.updateOptions(H)}_update(H){const{to:te=this.to||0,from:xe=this.from||0,maxLength:Ce=this.maxLength||0,autofix:zt=this.autofix,...rt}=H;this.to=te,this.from=xe,this.maxLength=Math.max(String(te).length,Ce),this.autofix=zt;const xt=String(this.from).padStart(this.maxLength,"0"),Gt=String(this.to).padStart(this.maxLength,"0");let xn=0;for(;xnthis.maxLength)return super._appendCharRaw(H,te);const xe=String(this.from).padStart(this.maxLength,"0"),Ce=String(this.to).padStart(this.maxLength,"0"),[zt,rt]=this.boundaries(this.value+H);return Number(rt)this.to?!te.tail&&"pad"===this.autofix&&this.value.length+1this._appendCharRaw(zt))}return te}}ge.MaskedRange=di;class Li extends Wn{static extractPatternOptions(H){const{mask:te,pattern:xe,...Ce}=H;return{...Ce,mask:g(te)?te:xe}}constructor(H){super(Li.extractPatternOptions({...Li.DEFAULTS,...H}))}updateOptions(H){super.updateOptions(H)}_update(H){const{mask:te,pattern:xe,blocks:Ce,...zt}={...Li.DEFAULTS,...H},rt=Object.assign({},Li.GET_DEFAULT_BLOCKS());H.min&&(rt.Y.from=H.min.getFullYear()),H.max&&(rt.Y.to=H.max.getFullYear()),H.min&&H.max&&rt.Y.from===rt.Y.to&&(rt.m.from=H.min.getMonth()+1,rt.m.to=H.max.getMonth()+1,rt.m.from===rt.m.to&&(rt.d.from=H.min.getDate(),rt.d.to=H.max.getDate())),Object.assign(rt,this.blocks,Ce),super._update({...zt,mask:g(te)?te:xe,blocks:rt})}doValidate(H){const te=this.date;return super.doValidate(H)&&(!this.isComplete||this.isDateExist(this.value)&&null!=te&&(null==this.min||this.min<=te)&&(null==this.max||te<=this.max))}isDateExist(H){return this.format(this.parse(H,this),this).indexOf(H)>=0}get date(){return this.typedValue}set date(H){this.typedValue=H}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(H){super.typedValue=H}maskEquals(H){return H===Date||super.maskEquals(H)}optionsIsChanged(H){return super.optionsIsChanged(Li.extractPatternOptions(H))}}Li.GET_DEFAULT_BLOCKS=()=>({d:{mask:di,from:1,to:31,maxLength:2},m:{mask:di,from:1,to:12,maxLength:2},Y:{mask:di,from:1900,to:9999}}),Li.DEFAULTS={...Wn.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(Ze,H)=>Ze?[String(Ze.getDate()).padStart(2,"0"),String(Ze.getMonth()+1).padStart(2,"0"),Ze.getFullYear()].join("."):"",parse:(Ze,H)=>{const[te,xe,Ce]=Ze.split(".").map(Number);return new Date(Ce,xe-1,te)}},ge.MaskedDate=Li;class $i extends Se{constructor(H){super({...$i.DEFAULTS,...H}),this.currentMask=void 0}updateOptions(H){super.updateOptions(H)}_update(H){super._update(H),"mask"in H&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(H.mask)?H.mask.map(te=>{const{expose:xe,...Ce}=Ve(te),zt=ze({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...Ce});return xe&&(this.exposeMask=zt),zt}):[])}_appendCharRaw(H,te){void 0===te&&(te={});const xe=this._applyDispatch(H,te);return this.currentMask&&xe.aggregate(this.currentMask._appendChar(H,this.currentMaskFlags(te))),xe}_applyDispatch(H,te,xe){void 0===H&&(H=""),void 0===te&&(te={}),void 0===xe&&(xe="");const Ce=te.tail&&null!=te._beforeTailState?te._beforeTailState._value:this.value,zt=this.rawInputValue,rt=te.tail&&null!=te._beforeTailState?te._beforeTailState._rawInputValue:zt,xt=zt.slice(rt.length),Gt=this.currentMask,xn=new he,In=Gt?.state;return this.currentMask=this.doDispatch(H,{...te},xe),this.currentMask&&(this.currentMask!==Gt?(this.currentMask.reset(),rt&&(this.currentMask.append(rt,{raw:!0}),xn.tailShift=this.currentMask.value.length-Ce.length),xt&&(xn.tailShift+=this.currentMask.append(xt,{raw:!0,tail:!0}).tailShift)):In&&(this.currentMask.state=In)),xn}_appendPlaceholder(){const H=this._applyDispatch();return this.currentMask&&H.aggregate(this.currentMask._appendPlaceholder()),H}_appendEager(){const H=this._applyDispatch();return this.currentMask&&H.aggregate(this.currentMask._appendEager()),H}appendTail(H){const te=new he;return H&&te.aggregate(this._applyDispatch("",{},H)),te.aggregate(this.currentMask?this.currentMask.appendTail(H):super.appendTail(H))}currentMaskFlags(H){var te,xe;return{...H,_beforeTailState:(null==(te=H._beforeTailState)?void 0:te.currentMaskRef)===this.currentMask&&(null==(xe=H._beforeTailState)?void 0:xe.currentMask)||H._beforeTailState}}doDispatch(H,te,xe){return void 0===te&&(te={}),void 0===xe&&(xe=""),this.dispatch(H,this,te,xe)}doValidate(H){return super.doValidate(H)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(H)))}doPrepare(H,te){void 0===te&&(te={});let[xe,Ce]=super.doPrepare(H,te);if(this.currentMask){let zt;[xe,zt]=super.doPrepare(xe,this.currentMaskFlags(te)),Ce=Ce.aggregate(zt)}return[xe,Ce]}doPrepareChar(H,te){void 0===te&&(te={});let[xe,Ce]=super.doPrepareChar(H,te);if(this.currentMask){let zt;[xe,zt]=super.doPrepareChar(xe,this.currentMaskFlags(te)),Ce=Ce.aggregate(zt)}return[xe,Ce]}reset(){var H;null==(H=this.currentMask)||H.reset(),this.compiledMasks.forEach(te=>te.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(H){this.exposeMask?(this.exposeMask.value=H,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=H}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(H){this.exposeMask?(this.exposeMask.unmaskedValue=H,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=H}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(H){if(this.exposeMask)return this.exposeMask.typedValue=H,this.currentMask=this.exposeMask,void this._applyDispatch();let te=String(H);this.currentMask&&(this.currentMask.typedValue=H,te=this.currentMask.unmaskedValue),this.unmaskedValue=te}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var H;return!(null==(H=this.currentMask)||!H.isComplete)}get isFilled(){var H;return!(null==(H=this.currentMask)||!H.isFilled)}remove(H,te){const xe=new he;return this.currentMask&&xe.aggregate(this.currentMask.remove(H,te)).aggregate(this._applyDispatch()),xe}get state(){var H;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(te=>te.state),currentMaskRef:this.currentMask,currentMask:null==(H=this.currentMask)?void 0:H.state}}set state(H){const{compiledMasks:te,currentMaskRef:xe,currentMask:Ce,...zt}=H;te&&this.compiledMasks.forEach((rt,xt)=>rt.state=te[xt]),null!=xe&&(this.currentMask=xe,this.currentMask.state=Ce),super.state=zt}extractInput(H,te,xe){return this.currentMask?this.currentMask.extractInput(H,te,xe):""}extractTail(H,te){return this.currentMask?this.currentMask.extractTail(H,te):super.extractTail(H,te)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(H,te){return this.currentMask?this.currentMask.nearestInputPos(H,te):super.nearestInputPos(H,te)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(H){this._overwrite=H}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(H){this._eager=H}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(H){this._skipInvalid=H}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(H){this._autofix=H}maskEquals(H){return Array.isArray(H)?this.compiledMasks.every((te,xe)=>{if(!H[xe])return;const{mask:Ce,...zt}=H[xe];return Ee(te,zt)&&te.maskEquals(Ce)}):super.maskEquals(H)}typedValueEquals(H){var te;return!(null==(te=this.currentMask)||!te.typedValueEquals(H))}}$i.DEFAULTS={...Se.DEFAULTS,dispatch:(Ze,H,te,xe)=>{if(!H.compiledMasks.length)return;const Ce=H.rawInputValue,zt=H.compiledMasks.map((rt,xt)=>{const Gt=H.currentMask===rt,xn=Gt?rt.displayValue.length:rt.nearestInputPos(rt.displayValue.length,"FORCE_LEFT");return rt.rawInputValue!==Ce?(rt.reset(),rt.append(Ce,{raw:!0})):Gt||rt.remove(xn),rt.append(Ze,H.currentMaskFlags(te)),rt.appendTail(xe),{index:xt,weight:rt.rawInputValue.length,totalInputPositions:rt.totalInputPositions(0,Math.max(xn,rt.nearestInputPos(rt.displayValue.length,"FORCE_LEFT")))}});return zt.sort((rt,xt)=>xt.weight-rt.weight||xt.totalInputPositions-rt.totalInputPositions),H.compiledMasks[zt[0].index]}},ge.MaskedDynamic=$i;class Hr extends Wn{constructor(H){super({...Hr.DEFAULTS,...H})}updateOptions(H){super.updateOptions(H)}_update(H){const{enum:te,...xe}=H;if(te){const Ce=te.map(xt=>xt.length),zt=Math.min(...Ce),rt=Math.max(...Ce)-zt;xe.mask="*".repeat(zt),rt&&(xe.mask+="["+"*".repeat(rt)+"]"),this.enum=te}super._update(xe)}_appendCharRaw(H,te){void 0===te&&(te={});const xe=Math.min(this.nearestInputPos(0,"FORCE_RIGHT"),this.value.length),Ce=this.enum.filter(zt=>this.matchValue(zt,this.unmaskedValue+H,xe));if(Ce.length){1===Ce.length&&this._forEachBlocksInRange(0,this.value.length,(rt,xt)=>{const Gt=Ce[0][xt];xt>=this.value.length||Gt===rt.value||(rt.reset(),rt._appendChar(Gt,te))});const zt=super._appendCharRaw(Ce[0][this.value.length],te);return 1===Ce.length&&Ce[0].slice(this.unmaskedValue.length).split("").forEach(rt=>zt.aggregate(super._appendCharRaw(rt))),zt}return new he({skip:!this.isComplete})}extractTail(H,te){return void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),new He("",H)}remove(H,te){if(void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),H===te)return new he;const xe=Math.min(super.nearestInputPos(0,"FORCE_RIGHT"),this.value.length);let Ce;for(Ce=H;Ce>=0&&!(this.enum.filter(xt=>this.matchValue(xt,this.value.slice(xe,Ce),xe)).length>1);--Ce);const zt=super.remove(Ce,te);return zt.tailShift+=Ce-H,zt}get isComplete(){return this.enum.indexOf(this.value)>=0}}var dn;Hr.DEFAULTS={...Wn.DEFAULTS,matchValue:(Ze,H,te)=>Ze.indexOf(H,te)===te},ge.MaskedEnum=Hr,ge.MaskedFunction=class ui extends Se{updateOptions(H){super.updateOptions(H)}_update(H){super._update({...H,validate:H.mask})}};class nt extends Se{constructor(H){super({...nt.DEFAULTS,...H})}updateOptions(H){super.updateOptions(H)}_update(H){super._update(H),this._updateRegExps()}_updateRegExps(){const H="^"+(this.allowNegative?"[+|\\-]?":""),xe=(this.scale?"("+pe(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(H+"\\d*"+xe),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(pe).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(pe(this.thousandsSeparator),"g")}_removeThousandsSeparators(H){return H.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(H){const te=H.split(this.radix);return te[0]=te[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),te.join(this.radix)}doPrepareChar(H,te){void 0===te&&(te={});const[xe,Ce]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(te.input&&te.raw||!te.input&&!te.raw)?H.replace(this._mapToRadixRegExp,this.radix):H),te);return H&&!xe&&(Ce.skip=!0),xe&&!this.allowPositive&&!this.value&&"-"!==xe&&Ce.aggregate(this._appendChar("-")),[xe,Ce]}_separatorsCount(H,te){void 0===te&&(te=!1);let xe=0;for(let Ce=0;Ce0&&this.number>this.max&&(or=this.max),null!=or&&(this.autofix?(this._value=this.format(or,this).replace(nt.UNMASKED_RADIX,this.radix),Gt||(Gt=zt===this._value&&!te.tail)):xt=!1),xt&&(xt=!!this._value.match(this._numberRegExp))}xt?xn=new he({inserted:this._value.slice(zt.length),rawInserted:Gt?"":H,skip:Gt}):(this._value=zt,xn=new he),this._value=this._insertThousandsSeparators(this._value);const xi=this._separatorsCountFromSlice(te.tail&&te._beforeTailState?te._beforeTailState._value:this._value);return xn.tailShift+=(xi-Ce)*this.thousandsSeparator.length,xn}_findSeparatorAround(H){if(this.thousandsSeparator){const xe=this.value.indexOf(this.thousandsSeparator,H-this.thousandsSeparator.length+1);if(xe<=H)return xe}return-1}_adjustRangeWithSeparators(H,te){const xe=this._findSeparatorAround(H);xe>=0&&(H=xe);const Ce=this._findSeparatorAround(te);return Ce>=0&&(te=Ce+this.thousandsSeparator.length),[H,te]}remove(H,te){void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),[H,te]=this._adjustRangeWithSeparators(H,te);const xe=this.value.slice(0,H),Ce=this.value.slice(te),zt=this._separatorsCount(xe.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(xe+Ce));const rt=this._separatorsCountFromSlice(xe);return new he({tailShift:(rt-zt)*this.thousandsSeparator.length})}nearestInputPos(H,te){if(!this.thousandsSeparator)return H;switch(te){case"NONE":case"LEFT":case"FORCE_LEFT":{const xe=this._findSeparatorAround(H-1);if(xe>=0){const Ce=xe+this.thousandsSeparator.length;if(H=0)return xe+this.thousandsSeparator.length}}return H}doCommit(){if(this.value){const H=this.number;let te=H;null!=this.min&&(te=Math.max(te,this.min)),null!=this.max&&(te=Math.min(te,this.max)),te!==H&&(this.unmaskedValue=this.format(te,this));let xe=this.value;this.normalizeZeros&&(xe=this._normalizeZeros(xe)),this.padFractionalZeros&&this.scale>0&&(xe=this._padFractionalZeros(xe)),this._value=xe}super.doCommit()}_normalizeZeros(H){const te=this._removeThousandsSeparators(H).split(this.radix);return te[0]=te[0].replace(/^(\D*)(0*)(\d*)/,(xe,Ce,zt,rt)=>Ce+rt),H.length&&!/\d$/.test(te[0])&&(te[0]=te[0]+"0"),te.length>1&&(te[1]=te[1].replace(/0*$/,""),te[1].length||(te.length=1)),this._insertThousandsSeparators(te.join(this.radix))}_padFractionalZeros(H){if(!H)return H;const te=H.split(this.radix);return te.length<2&&te.push(""),te[1]=te[1].padEnd(this.scale,"0"),te.join(this.radix)}doSkipInvalid(H,te,xe){void 0===te&&(te={});const Ce=0===this.scale&&H!==this.thousandsSeparator&&(H===this.radix||H===nt.UNMASKED_RADIX||this.mapToRadix.includes(H));return super.doSkipInvalid(H,te,xe)&&!Ce}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,nt.UNMASKED_RADIX)}set unmaskedValue(H){super.unmaskedValue=H}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(H){this.rawInputValue=this.format(H,this).replace(nt.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(H){this.typedValue=H}get allowNegative(){return null!=this.min&&this.min<0||null!=this.max&&this.max<0}get allowPositive(){return null!=this.min&&this.min>0||null!=this.max&&this.max>0}typedValueEquals(H){return(super.typedValueEquals(H)||nt.EMPTY_VALUES.includes(H)&&nt.EMPTY_VALUES.includes(this.typedValue))&&!(0===H&&""===this.value)}}dn=nt,nt.UNMASKED_RADIX=".",nt.EMPTY_VALUES=[...Se.EMPTY_VALUES,0],nt.DEFAULTS={...Se.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[dn.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:Ze=>Ze.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},ge.MaskedNumber=nt;const ht={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Je(Ze,H,te){void 0===H&&(H=ht.MASKED),void 0===te&&(te=ht.MASKED);const xe=ze(Ze);return Ce=>xe.runIsolated(zt=>(zt[H]=Ce,zt[te]))}ge.PIPE_TYPE=ht,ge.createPipe=Je,ge.pipe=function Ae(Ze,H,te,xe){return Je(H,te,xe)(Ze)},ge.RepeatBlock=class Ue extends Wn{get repeatFrom(){var H;return null!=(H=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)?H:0}get repeatTo(){var H;return null!=(H=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)?H:1/0}constructor(H){super(H)}updateOptions(H){super.updateOptions(H)}_update(H){var te,xe,Ce;const{repeat:zt,...rt}=Ve(H);this._blockOpts=Object.assign({},this._blockOpts,rt);const xt=ze(this._blockOpts);this.repeat=null!=(te=null!=(xe=zt??xt.repeat)?xe:this.repeat)?te:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&(null==(Ce=this._blocks)?void 0:Ce.length)||0,this.repeatFrom)),blocks:{m:xt},eager:xt.eager,overwrite:xt.overwrite,skipInvalid:xt.skipInvalid,lazy:xt.lazy,placeholderChar:xt.placeholderChar,displayChar:xt.displayChar})}_allocateBlock(H){return H{"use strict";function ze(dn,nt,ht,Je){return new(ht||(ht=Promise))(function(Ue,Ze){function H(Ce){try{xe(Je.next(Ce))}catch(zt){Ze(zt)}}function te(Ce){try{xe(Je.throw(Ce))}catch(zt){Ze(zt)}}function xe(Ce){Ce.done?Ue(Ce.value):function Ae(Ue){return Ue instanceof ht?Ue:new ht(function(Ze){Ze(Ue)})}(Ce.value).then(H,te)}xe((Je=Je.apply(dn,nt||[])).next())})}function he(dn){return this instanceof he?(this.v=dn,this):new he(dn)}function He(dn,nt,ht){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ae,Je=ht.apply(dn,nt||[]),Ue=[];return Ae={},Ze("next"),Ze("throw"),Ze("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae;function Ze(rt){Je[rt]&&(Ae[rt]=function(xt){return new Promise(function(Gt,xn){Ue.push([rt,xt,Gt,xn])>1||H(rt,xt)})})}function H(rt,xt){try{!function te(rt){rt.value instanceof he?Promise.resolve(rt.value.v).then(xe,Ce):zt(Ue[0][2],rt)}(Je[rt](xt))}catch(Gt){zt(Ue[0][3],Gt)}}function xe(rt){H("next",rt)}function Ce(rt){H("throw",rt)}function zt(rt,xt){rt(xt),Ue.shift(),Ue.length&&H(Ue[0][0],Ue[0][1])}}function it(dn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ht,nt=dn[Symbol.asyncIterator];return nt?nt.call(dn):(dn=function de(dn){var nt="function"==typeof Symbol&&Symbol.iterator,ht=nt&&dn[nt],Je=0;if(ht)return ht.call(dn);if(dn&&"number"==typeof dn.length)return{next:function(){return dn&&Je>=dn.length&&(dn=void 0),{value:dn&&dn[Je++],done:!dn}}};throw new TypeError(nt?"Object is not iterable.":"Symbol.iterator is not defined.")}(dn),ht={},Je("next"),Je("throw"),Je("return"),ht[Symbol.asyncIterator]=function(){return this},ht);function Je(Ue){ht[Ue]=dn[Ue]&&function(Ze){return new Promise(function(H,te){!function Ae(Ue,Ze,H,te){Promise.resolve(te).then(function(xe){Ue({value:xe,done:H})},Ze)}(H,te,(Ze=dn[Ue](Ze)).done,Ze.value)})}}}F.d(J,{AQ:()=>He,N3:()=>he,sH:()=>ze,xN:()=>it}),"function"==typeof SuppressedError&&SuppressedError},3837:vn=>{"use strict";vn.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},2079:vn=>{"use strict";vn.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},vn=>{vn(vn.s=690)}]); \ No newline at end of file diff --git a/docs/main.37fa3c241126779a.js b/docs/main.37fa3c241126779a.js deleted file mode 100644 index efb41b62..00000000 --- a/docs/main.37fa3c241126779a.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[792],{4574:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.MissingRefError=J.ValidationError=J.CodeGen=J.Name=J.nil=J.stringify=J.str=J._=J.KeywordCxt=J.Ajv=void 0;const g=F(3078),o=F(7540),V=F(3121),oe=F(2079),De=["/properties"],pe="http://json-schema.org/draft-07/schema";class Ee extends g.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(vt=>this.addVocabulary(vt)),this.opts.discriminator&&this.addKeyword(V.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const vt=this.opts.$data?this.$dataMetaSchema(oe,De):oe;this.addMetaSchema(vt,pe,!1),this.refs["http://json-schema.org/schema"]=pe}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(pe)?pe:void 0)}}J.Ajv=Ee,vn.exports=J=Ee,vn.exports.Ajv=Ee,Object.defineProperty(J,"__esModule",{value:!0}),J.default=Ee;var be=F(6038);Object.defineProperty(J,"KeywordCxt",{enumerable:!0,get:function(){return be.KeywordCxt}});var me=F(6033);Object.defineProperty(J,"_",{enumerable:!0,get:function(){return me._}}),Object.defineProperty(J,"str",{enumerable:!0,get:function(){return me.str}}),Object.defineProperty(J,"stringify",{enumerable:!0,get:function(){return me.stringify}}),Object.defineProperty(J,"nil",{enumerable:!0,get:function(){return me.nil}}),Object.defineProperty(J,"Name",{enumerable:!0,get:function(){return me.Name}}),Object.defineProperty(J,"CodeGen",{enumerable:!0,get:function(){return me.CodeGen}});var Te=F(8186);Object.defineProperty(J,"ValidationError",{enumerable:!0,get:function(){return Te.default}});var Ve=F(3115);Object.defineProperty(J,"MissingRefError",{enumerable:!0,get:function(){return Ve.default}})},2004:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.regexpCode=J.getEsmExportName=J.getProperty=J.safeStringify=J.stringify=J.strConcat=J.addCodeArg=J.str=J._=J.nil=J._Code=J.Name=J.IDENTIFIER=J._CodeOrName=void 0;class F{}J._CodeOrName=F,J.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class g extends F{constructor(Fe){if(super(),!J.IDENTIFIER.test(Fe))throw new Error("CodeGen: name must be a valid identifier");this.str=Fe}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}J.Name=g;class o extends F{constructor(Fe){super(),this._items="string"==typeof Fe?[Fe]:Fe}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const Fe=this._items[0];return""===Fe||'""'===Fe}get str(){var Fe;return null!==(Fe=this._str)&&void 0!==Fe?Fe:this._str=this._items.reduce((_t,at)=>`${_t}${at}`,"")}get names(){var Fe;return null!==(Fe=this._names)&&void 0!==Fe?Fe:this._names=this._items.reduce((_t,at)=>(at instanceof g&&(_t[at.str]=(_t[at.str]||0)+1),_t),{})}}function V(de,...Fe){const _t=[de[0]];let at=0;for(;at{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.or=J.and=J.not=J.CodeGen=J.operators=J.varKinds=J.ValueScopeName=J.ValueScope=J.Scope=J.Name=J.regexpCode=J.stringify=J.getProperty=J.nil=J.strConcat=J.str=J._=void 0;const g=F(2004),o=F(4249);var V=F(2004);Object.defineProperty(J,"_",{enumerable:!0,get:function(){return V._}}),Object.defineProperty(J,"str",{enumerable:!0,get:function(){return V.str}}),Object.defineProperty(J,"strConcat",{enumerable:!0,get:function(){return V.strConcat}}),Object.defineProperty(J,"nil",{enumerable:!0,get:function(){return V.nil}}),Object.defineProperty(J,"getProperty",{enumerable:!0,get:function(){return V.getProperty}}),Object.defineProperty(J,"stringify",{enumerable:!0,get:function(){return V.stringify}}),Object.defineProperty(J,"regexpCode",{enumerable:!0,get:function(){return V.regexpCode}}),Object.defineProperty(J,"Name",{enumerable:!0,get:function(){return V.Name}});var oe=F(4249);Object.defineProperty(J,"Scope",{enumerable:!0,get:function(){return oe.Scope}}),Object.defineProperty(J,"ValueScope",{enumerable:!0,get:function(){return oe.ValueScope}}),Object.defineProperty(J,"ValueScopeName",{enumerable:!0,get:function(){return oe.ValueScopeName}}),Object.defineProperty(J,"varKinds",{enumerable:!0,get:function(){return oe.varKinds}}),J.operators={GT:new g._Code(">"),GTE:new g._Code(">="),LT:new g._Code("<"),LTE:new g._Code("<="),EQ:new g._Code("==="),NEQ:new g._Code("!=="),NOT:new g._Code("!"),OR:new g._Code("||"),AND:new g._Code("&&"),ADD:new g._Code("+")};class De{optimizeNodes(){return this}optimizeNames(Ae,Ue){return this}}class pe extends De{constructor(Ae,Ue,Ze){super(),this.varKind=Ae,this.name=Ue,this.rhs=Ze}render({es5:Ae,_n:Ue}){return`${Ae?o.varKinds.var:this.varKind} ${this.name}${void 0===this.rhs?"":` = ${this.rhs}`};`+Ue}optimizeNames(Ae,Ue){if(Ae[this.name.str])return this.rhs&&(this.rhs=di(this.rhs,Ae,Ue)),this}get names(){return this.rhs instanceof g._CodeOrName?this.rhs.names:{}}}class Ee extends De{constructor(Ae,Ue,Ze){super(),this.lhs=Ae,this.rhs=Ue,this.sideEffects=Ze}render({_n:Ae}){return`${this.lhs} = ${this.rhs};`+Ae}optimizeNames(Ae,Ue){if(!(this.lhs instanceof g.Name)||Ae[this.lhs.str]||this.sideEffects)return this.rhs=di(this.rhs,Ae,Ue),this}get names(){return Wn(this.lhs instanceof g.Name?{}:{...this.lhs.names},this.rhs)}}class be extends Ee{constructor(Ae,Ue,Ze,H){super(Ae,Ze,H),this.op=Ue}render({_n:Ae}){return`${this.lhs} ${this.op}= ${this.rhs};`+Ae}}class me extends De{constructor(Ae){super(),this.label=Ae,this.names={}}render({_n:Ae}){return`${this.label}:`+Ae}}class Te extends De{constructor(Ae){super(),this.label=Ae,this.names={}}render({_n:Ae}){return`break${this.label?` ${this.label}`:""};`+Ae}}class Ve extends De{constructor(Ae){super(),this.error=Ae}render({_n:Ae}){return`throw ${this.error};`+Ae}get names(){return this.error.names}}class ze extends De{constructor(Ae){super(),this.code=Ae}render({_n:Ae}){return`${this.code};`+Ae}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(Ae,Ue){return this.code=di(this.code,Ae,Ue),this}get names(){return this.code instanceof g._CodeOrName?this.code.names:{}}}class vt extends De{constructor(Ae=[]){super(),this.nodes=Ae}render(Ae){return this.nodes.reduce((Ue,Ze)=>Ue+Ze.render(Ae),"")}optimizeNodes(){const{nodes:Ae}=this;let Ue=Ae.length;for(;Ue--;){const Ze=Ae[Ue].optimizeNodes();Array.isArray(Ze)?Ae.splice(Ue,1,...Ze):Ze?Ae[Ue]=Ze:Ae.splice(Ue,1)}return Ae.length>0?this:void 0}optimizeNames(Ae,Ue){const{nodes:Ze}=this;let H=Ze.length;for(;H--;){const te=Ze[H];te.optimizeNames(Ae,Ue)||(ai(Ae,te.names),Ze.splice(H,1))}return Ze.length>0?this:void 0}get names(){return this.nodes.reduce((Ae,Ue)=>wn(Ae,Ue.names),{})}}class Re extends vt{render(Ae){return"{"+Ae._n+super.render(Ae)+"}"+Ae._n}}class tt extends vt{}let de=(()=>{class Je extends Re{}return Je.kind="else",Je})(),Fe=(()=>{class Je extends Re{constructor(Ue,Ze){super(Ze),this.condition=Ue}render(Ue){let Ze=`if(${this.condition})`+super.render(Ue);return this.else&&(Ze+="else "+this.else.render(Ue)),Ze}optimizeNodes(){super.optimizeNodes();const Ue=this.condition;if(!0===Ue)return this.nodes;let Ze=this.else;if(Ze){const H=Ze.optimizeNodes();Ze=this.else=Array.isArray(H)?new de(H):H}return Ze?!1===Ue?Ze instanceof Je?Ze:Ze.nodes:this.nodes.length?this:new Je(Li(Ue),Ze instanceof Je?[Ze]:Ze.nodes):!1!==Ue&&this.nodes.length?this:void 0}optimizeNames(Ue,Ze){var H;if(this.else=null===(H=this.else)||void 0===H?void 0:H.optimizeNames(Ue,Ze),super.optimizeNames(Ue,Ze)||this.else)return this.condition=di(this.condition,Ue,Ze),this}get names(){const Ue=super.names;return Wn(Ue,this.condition),this.else&&wn(Ue,this.else.names),Ue}}return Je.kind="if",Je})(),_t=(()=>{class Je extends Re{}return Je.kind="for",Je})();class at extends _t{constructor(Ae){super(),this.iteration=Ae}render(Ae){return`for(${this.iteration})`+super.render(Ae)}optimizeNames(Ae,Ue){if(super.optimizeNames(Ae,Ue))return this.iteration=di(this.iteration,Ae,Ue),this}get names(){return wn(super.names,this.iteration.names)}}class Be extends _t{constructor(Ae,Ue,Ze,H){super(),this.varKind=Ae,this.name=Ue,this.from=Ze,this.to=H}render(Ae){const Ue=Ae.es5?o.varKinds.var:this.varKind,{name:Ze,from:H,to:te}=this;return`for(${Ue} ${Ze}=${H}; ${Ze}<${te}; ${Ze}++)`+super.render(Ae)}get names(){const Ae=Wn(super.names,this.from);return Wn(Ae,this.to)}}class he extends _t{constructor(Ae,Ue,Ze,H){super(),this.loop=Ae,this.varKind=Ue,this.name=Ze,this.iterable=H}render(Ae){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(Ae)}optimizeNames(Ae,Ue){if(super.optimizeNames(Ae,Ue))return this.iterable=di(this.iterable,Ae,Ue),this}get names(){return wn(super.names,this.iterable.names)}}let He=(()=>{class Je extends Re{constructor(Ue,Ze,H){super(),this.name=Ue,this.args=Ze,this.async=H}render(Ue){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(Ue)}}return Je.kind="func",Je})(),Se=(()=>{class Je extends vt{render(Ue){return"return "+super.render(Ue)}}return Je.kind="return",Je})();class it extends Re{render(Ae){let Ue="try"+super.render(Ae);return this.catch&&(Ue+=this.catch.render(Ae)),this.finally&&(Ue+=this.finally.render(Ae)),Ue}optimizeNodes(){var Ae,Ue;return super.optimizeNodes(),null===(Ae=this.catch)||void 0===Ae||Ae.optimizeNodes(),null===(Ue=this.finally)||void 0===Ue||Ue.optimizeNodes(),this}optimizeNames(Ae,Ue){var Ze,H;return super.optimizeNames(Ae,Ue),null===(Ze=this.catch)||void 0===Ze||Ze.optimizeNames(Ae,Ue),null===(H=this.finally)||void 0===H||H.optimizeNames(Ae,Ue),this}get names(){const Ae=super.names;return this.catch&&wn(Ae,this.catch.names),this.finally&&wn(Ae,this.finally.names),Ae}}let dt=(()=>{class Je extends Re{constructor(Ue){super(),this.error=Ue}render(Ue){return`catch(${this.error})`+super.render(Ue)}}return Je.kind="catch",Je})(),jt=(()=>{class Je extends Re{render(Ue){return"finally"+super.render(Ue)}}return Je.kind="finally",Je})();function wn(Je,Ae){for(const Ue in Ae)Je[Ue]=(Je[Ue]||0)+(Ae[Ue]||0);return Je}function Wn(Je,Ae){return Ae instanceof g._CodeOrName?wn(Je,Ae.names):Je}function di(Je,Ae,Ue){return Je instanceof g.Name?Ze(Je):function H(te){return te instanceof g._Code&&te._items.some(xe=>xe instanceof g.Name&&1===Ae[xe.str]&&void 0!==Ue[xe.str])}(Je)?new g._Code(Je._items.reduce((te,xe)=>(xe instanceof g.Name&&(xe=Ze(xe)),xe instanceof g._Code?te.push(...xe._items):te.push(xe),te),[])):Je;function Ze(te){const xe=Ue[te.str];return void 0===xe||1!==Ae[te.str]?te:(delete Ae[te.str],xe)}}function ai(Je,Ae){for(const Ue in Ae)Je[Ue]=(Je[Ue]||0)-(Ae[Ue]||0)}function Li(Je){return"boolean"==typeof Je||"number"==typeof Je||null===Je?!Je:g._`!${ht(Je)}`}J.CodeGen=class Wt{constructor(Ae,Ue={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Ue,_n:Ue.lines?"\n":""},this._extScope=Ae,this._scope=new o.Scope({parent:Ae}),this._nodes=[new tt]}toString(){return this._root.render(this.opts)}name(Ae){return this._scope.name(Ae)}scopeName(Ae){return this._extScope.name(Ae)}scopeValue(Ae,Ue){const Ze=this._extScope.value(Ae,Ue);return(this._values[Ze.prefix]||(this._values[Ze.prefix]=new Set)).add(Ze),Ze}getScopeValue(Ae,Ue){return this._extScope.getValue(Ae,Ue)}scopeRefs(Ae){return this._extScope.scopeRefs(Ae,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(Ae,Ue,Ze,H){const te=this._scope.toName(Ue);return void 0!==Ze&&H&&(this._constants[te.str]=Ze),this._leafNode(new pe(Ae,te,Ze)),te}const(Ae,Ue,Ze){return this._def(o.varKinds.const,Ae,Ue,Ze)}let(Ae,Ue,Ze){return this._def(o.varKinds.let,Ae,Ue,Ze)}var(Ae,Ue,Ze){return this._def(o.varKinds.var,Ae,Ue,Ze)}assign(Ae,Ue,Ze){return this._leafNode(new Ee(Ae,Ue,Ze))}add(Ae,Ue){return this._leafNode(new be(Ae,J.operators.ADD,Ue))}code(Ae){return"function"==typeof Ae?Ae():Ae!==g.nil&&this._leafNode(new ze(Ae)),this}object(...Ae){const Ue=["{"];for(const[Ze,H]of Ae)Ue.length>1&&Ue.push(","),Ue.push(Ze),(Ze!==H||this.opts.es5)&&(Ue.push(":"),(0,g.addCodeArg)(Ue,H));return Ue.push("}"),new g._Code(Ue)}if(Ae,Ue,Ze){if(this._blockNode(new Fe(Ae)),Ue&&Ze)this.code(Ue).else().code(Ze).endIf();else if(Ue)this.code(Ue).endIf();else if(Ze)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(Ae){return this._elseNode(new Fe(Ae))}else(){return this._elseNode(new de)}endIf(){return this._endBlockNode(Fe,de)}_for(Ae,Ue){return this._blockNode(Ae),Ue&&this.code(Ue).endFor(),this}for(Ae,Ue){return this._for(new at(Ae),Ue)}forRange(Ae,Ue,Ze,H,te=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const xe=this._scope.toName(Ae);return this._for(new Be(te,xe,Ue,Ze),()=>H(xe))}forOf(Ae,Ue,Ze,H=o.varKinds.const){const te=this._scope.toName(Ae);if(this.opts.es5){const xe=Ue instanceof g.Name?Ue:this.var("_arr",Ue);return this.forRange("_i",0,g._`${xe}.length`,Ce=>{this.var(te,g._`${xe}[${Ce}]`),Ze(te)})}return this._for(new he("of",H,te,Ue),()=>Ze(te))}forIn(Ae,Ue,Ze,H=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(Ae,g._`Object.keys(${Ue})`,Ze);const te=this._scope.toName(Ae);return this._for(new he("in",H,te,Ue),()=>Ze(te))}endFor(){return this._endBlockNode(_t)}label(Ae){return this._leafNode(new me(Ae))}break(Ae){return this._leafNode(new Te(Ae))}return(Ae){const Ue=new Se;if(this._blockNode(Ue),this.code(Ae),1!==Ue.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Se)}try(Ae,Ue,Ze){if(!Ue&&!Ze)throw new Error('CodeGen: "try" without "catch" and "finally"');const H=new it;if(this._blockNode(H),this.code(Ae),Ue){const te=this.name("e");this._currNode=H.catch=new dt(te),Ue(te)}return Ze&&(this._currNode=H.finally=new jt,this.code(Ze)),this._endBlockNode(dt,jt)}throw(Ae){return this._leafNode(new Ve(Ae))}block(Ae,Ue){return this._blockStarts.push(this._nodes.length),Ae&&this.code(Ae).endBlock(Ue),this}endBlock(Ae){const Ue=this._blockStarts.pop();if(void 0===Ue)throw new Error("CodeGen: not in self-balancing block");const Ze=this._nodes.length-Ue;if(Ze<0||void 0!==Ae&&Ze!==Ae)throw new Error(`CodeGen: wrong number of nodes: ${Ze} vs ${Ae} expected`);return this._nodes.length=Ue,this}func(Ae,Ue=g.nil,Ze,H){return this._blockNode(new He(Ae,Ue,Ze)),H&&this.code(H).endFunc(),this}endFunc(){return this._endBlockNode(He)}optimize(Ae=1){for(;Ae-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(Ae){return this._currNode.nodes.push(Ae),this}_blockNode(Ae){this._currNode.nodes.push(Ae),this._nodes.push(Ae)}_endBlockNode(Ae,Ue){const Ze=this._currNode;if(Ze instanceof Ae||Ue&&Ze instanceof Ue)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Ue?`${Ae.kind}/${Ue.kind}`:Ae.kind}"`)}_elseNode(Ae){const Ue=this._currNode;if(!(Ue instanceof Fe))throw new Error('CodeGen: "else" without "if"');return this._currNode=Ue.else=Ae,this}get _root(){return this._nodes[0]}get _currNode(){const Ae=this._nodes;return Ae[Ae.length-1]}set _currNode(Ae){const Ue=this._nodes;Ue[Ue.length-1]=Ae}},J.not=Li;const $i=nt(J.operators.AND);J.and=function Hr(...Je){return Je.reduce($i)};const ui=nt(J.operators.OR);function nt(Je){return(Ae,Ue)=>Ae===g.nil?Ue:Ue===g.nil?Ae:g._`${ht(Ae)} ${Je} ${ht(Ue)}`}function ht(Je){return Je instanceof g.Name?Je:g._`(${Je})`}J.or=function dn(...Je){return Je.reduce(ui)}},4249:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.ValueScope=J.ValueScopeName=J.Scope=J.varKinds=J.UsedValueState=void 0;const g=F(2004);class o extends Error{constructor(me){super(`CodeGen: "code" for ${me} not defined`),this.value=me.value}}var V=function(be){return be[be.Started=0]="Started",be[be.Completed=1]="Completed",be}(V||(J.UsedValueState=V={}));J.varKinds={const:new g.Name("const"),let:new g.Name("let"),var:new g.Name("var")};class oe{constructor({prefixes:me,parent:Te}={}){this._names={},this._prefixes=me,this._parent=Te}toName(me){return me instanceof g.Name?me:this.name(me)}name(me){return new g.Name(this._newName(me))}_newName(me){return`${me}${(this._names[me]||this._nameGroup(me)).index++}`}_nameGroup(me){var Te,Ve;if(null!==(Ve=null===(Te=this._parent)||void 0===Te?void 0:Te._prefixes)&&void 0!==Ve&&Ve.has(me)||this._prefixes&&!this._prefixes.has(me))throw new Error(`CodeGen: prefix "${me}" is not allowed in this scope`);return this._names[me]={prefix:me,index:0}}}J.Scope=oe;class De extends g.Name{constructor(me,Te){super(Te),this.prefix=me}setValue(me,{property:Te,itemIndex:Ve}){this.value=me,this.scopePath=g._`.${new g.Name(Te)}[${Ve}]`}}J.ValueScopeName=De;const pe=g._`\n`;J.ValueScope=class Ee extends oe{constructor(me){super(me),this._values={},this._scope=me.scope,this.opts={...me,_n:me.lines?pe:g.nil}}get(){return this._scope}name(me){return new De(me,this._newName(me))}value(me,Te){var Ve;if(void 0===Te.ref)throw new Error("CodeGen: ref must be passed in value");const ze=this.toName(me),{prefix:vt}=ze,Re=null!==(Ve=Te.key)&&void 0!==Ve?Ve:Te.ref;let tt=this._values[vt];if(tt){const _t=tt.get(Re);if(_t)return _t}else tt=this._values[vt]=new Map;tt.set(Re,ze);const de=this._scope[vt]||(this._scope[vt]=[]),Fe=de.length;return de[Fe]=Te.ref,ze.setValue(Te,{property:vt,itemIndex:Fe}),ze}getValue(me,Te){const Ve=this._values[me];if(Ve)return Ve.get(Te)}scopeRefs(me,Te=this._values){return this._reduceValues(Te,Ve=>{if(void 0===Ve.scopePath)throw new Error(`CodeGen: name "${Ve}" has no value`);return g._`${me}${Ve.scopePath}`})}scopeCode(me=this._values,Te,Ve){return this._reduceValues(me,ze=>{if(void 0===ze.value)throw new Error(`CodeGen: name "${ze}" has no value`);return ze.value.code},Te,Ve)}_reduceValues(me,Te,Ve={},ze){let vt=g.nil;for(const Re in me){const tt=me[Re];if(!tt)continue;const de=Ve[Re]=Ve[Re]||new Map;tt.forEach(Fe=>{if(de.has(Fe))return;de.set(Fe,V.Started);let _t=Te(Fe);if(_t)vt=g._`${vt}${this.opts.es5?J.varKinds.var:J.varKinds.const} ${Fe} = ${_t};${this.opts._n}`;else{if(!(_t=ze?.(Fe)))throw new o(Fe);vt=g._`${vt}${_t}${this.opts._n}`}de.set(Fe,V.Completed)})}return vt}}},1224:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.extendErrors=J.resetErrorsCount=J.reportExtraError=J.reportError=J.keyword$DataError=J.keywordError=void 0;const g=F(6033),o=F(9455),V=F(395);function be(de,Fe){const _t=de.const("err",Fe);de.if(g._`${V.default.vErrors} === null`,()=>de.assign(V.default.vErrors,g._`[${_t}]`),g._`${V.default.vErrors}.push(${_t})`),de.code(g._`${V.default.errors}++`)}function me(de,Fe){const{gen:_t,validateName:at,schemaEnv:Be}=de;Be.$async?_t.throw(g._`new ${de.ValidationError}(${Fe})`):(_t.assign(g._`${at}.errors`,Fe),_t.return(!1))}J.keywordError={message:({keyword:de})=>g.str`must pass "${de}" keyword validation`},J.keyword$DataError={message:({keyword:de,schemaType:Fe})=>Fe?g.str`"${de}" keyword must be ${Fe} ($data)`:g.str`"${de}" keyword is invalid ($data)`},J.reportError=function oe(de,Fe=J.keywordError,_t,at){const{it:Be}=de,{gen:he,compositeRule:He,allErrors:Se}=Be,it=Ve(de,Fe,_t);at??(He||Se)?be(he,it):me(Be,g._`[${it}]`)},J.reportExtraError=function De(de,Fe=J.keywordError,_t){const{it:at}=de,{gen:Be,compositeRule:he,allErrors:He}=at;be(Be,Ve(de,Fe,_t)),he||He||me(at,V.default.vErrors)},J.resetErrorsCount=function pe(de,Fe){de.assign(V.default.errors,Fe),de.if(g._`${V.default.vErrors} !== null`,()=>de.if(Fe,()=>de.assign(g._`${V.default.vErrors}.length`,Fe),()=>de.assign(V.default.vErrors,null)))},J.extendErrors=function Ee({gen:de,keyword:Fe,schemaValue:_t,data:at,errsCount:Be,it:he}){if(void 0===Be)throw new Error("ajv implementation error");const He=de.name("err");de.forRange("i",Be,V.default.errors,Se=>{de.const(He,g._`${V.default.vErrors}[${Se}]`),de.if(g._`${He}.instancePath === undefined`,()=>de.assign(g._`${He}.instancePath`,(0,g.strConcat)(V.default.instancePath,he.errorPath))),de.assign(g._`${He}.schemaPath`,g.str`${he.errSchemaPath}/${Fe}`),he.opts.verbose&&(de.assign(g._`${He}.schema`,_t),de.assign(g._`${He}.data`,at))})};const Te={keyword:new g.Name("keyword"),schemaPath:new g.Name("schemaPath"),params:new g.Name("params"),propertyName:new g.Name("propertyName"),message:new g.Name("message"),schema:new g.Name("schema"),parentSchema:new g.Name("parentSchema")};function Ve(de,Fe,_t){const{createErrors:at}=de.it;return!1===at?g._`{}`:function ze(de,Fe,_t={}){const{gen:at,it:Be}=de,he=[vt(Be,_t),Re(de,_t)];return function tt(de,{params:Fe,message:_t},at){const{keyword:Be,data:he,schemaValue:He,it:Se}=de,{opts:it,propertyName:dt,topSchemaRef:jt,schemaPath:Wt}=Se;at.push([Te.keyword,Be],[Te.params,"function"==typeof Fe?Fe(de):Fe||g._`{}`]),it.messages&&at.push([Te.message,"function"==typeof _t?_t(de):_t]),it.verbose&&at.push([Te.schema,He],[Te.parentSchema,g._`${jt}${Wt}`],[V.default.data,he]),dt&&at.push([Te.propertyName,dt])}(de,Fe,he),at.object(...he)}(de,Fe,_t)}function vt({errorPath:de},{instancePath:Fe}){const _t=Fe?g.str`${de}${(0,o.getErrorPath)(Fe,o.Type.Str)}`:de;return[V.default.instancePath,(0,g.strConcat)(V.default.instancePath,_t)]}function Re({keyword:de,it:{errSchemaPath:Fe}},{schemaPath:_t,parentSchema:at}){let Be=at?Fe:g.str`${Fe}/${de}`;return _t&&(Be=g.str`${Be}${(0,o.getErrorPath)(_t,o.Type.Str)}`),[Te.schemaPath,Be]}},2431:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.resolveSchema=J.getCompilingSchema=J.resolveRef=J.compileSchema=J.SchemaEnv=void 0;const g=F(6033),o=F(8186),V=F(395),oe=F(9839),De=F(9455),pe=F(6038);class Ee{constructor(_t){var at;let Be;this.refs={},this.dynamicAnchors={},"object"==typeof _t.schema&&(Be=_t.schema),this.schema=_t.schema,this.schemaId=_t.schemaId,this.root=_t.root||this,this.baseId=null!==(at=_t.baseId)&&void 0!==at?at:(0,oe.normalizeId)(Be?.[_t.schemaId||"$id"]),this.schemaPath=_t.schemaPath,this.localRefs=_t.localRefs,this.meta=_t.meta,this.$async=Be?.$async,this.refs={}}}function be(Fe){const _t=Ve.call(this,Fe);if(_t)return _t;const at=(0,oe.getFullPath)(this.opts.uriResolver,Fe.root.baseId),{es5:Be,lines:he}=this.opts.code,{ownProperties:He}=this.opts,Se=new g.CodeGen(this.scope,{es5:Be,lines:he,ownProperties:He});let it;Fe.$async&&(it=Se.scopeValue("Error",{ref:o.default,code:g._`require("ajv/dist/runtime/validation_error").default`}));const dt=Se.scopeName("validate");Fe.validateName=dt;const jt={gen:Se,allErrors:this.opts.allErrors,data:V.default.data,parentData:V.default.parentData,parentDataProperty:V.default.parentDataProperty,dataNames:[V.default.data],dataPathArr:[g.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Se.scopeValue("schema",!0===this.opts.code.source?{ref:Fe.schema,code:(0,g.stringify)(Fe.schema)}:{ref:Fe.schema}),validateName:dt,ValidationError:it,schema:Fe.schema,schemaEnv:Fe,rootId:at,baseId:Fe.baseId||at,schemaPath:g.nil,errSchemaPath:Fe.schemaPath||(this.opts.jtd?"":"#"),errorPath:g._`""`,opts:this.opts,self:this};let Wt;try{this._compilations.add(Fe),(0,pe.validateFunctionCode)(jt),Se.optimize(this.opts.code.optimize);const wn=Se.toString();Wt=`${Se.scopeRefs(V.default.scope)}return ${wn}`,this.opts.code.process&&(Wt=this.opts.code.process(Wt,Fe));const di=new Function(`${V.default.self}`,`${V.default.scope}`,Wt)(this,this.scope.get());if(this.scope.value(dt,{ref:di}),di.errors=null,di.schema=Fe.schema,di.schemaEnv=Fe,Fe.$async&&(di.$async=!0),!0===this.opts.code.source&&(di.source={validateName:dt,validateCode:wn,scopeValues:Se._values}),this.opts.unevaluated){const{props:ai,items:Li}=jt;di.evaluated={props:ai instanceof g.Name?void 0:ai,items:Li instanceof g.Name?void 0:Li,dynamicProps:ai instanceof g.Name,dynamicItems:Li instanceof g.Name},di.source&&(di.source.evaluated=(0,g.stringify)(di.evaluated))}return Fe.validate=di,Fe}catch(wn){throw delete Fe.validate,delete Fe.validateName,Wt&&this.logger.error("Error compiling schema, function code:",Wt),wn}finally{this._compilations.delete(Fe)}}function Te(Fe){return(0,oe.inlineRef)(Fe.schema,this.opts.inlineRefs)?Fe.schema:Fe.validate?Fe:be.call(this,Fe)}function Ve(Fe){for(const _t of this._compilations)if(ze(_t,Fe))return _t}function ze(Fe,_t){return Fe.schema===_t.schema&&Fe.root===_t.root&&Fe.baseId===_t.baseId}function vt(Fe,_t){let at;for(;"string"==typeof(at=this.refs[_t]);)_t=at;return at||this.schemas[_t]||Re.call(this,Fe,_t)}function Re(Fe,_t){const at=this.opts.uriResolver.parse(_t),Be=(0,oe._getFullPath)(this.opts.uriResolver,at);let he=(0,oe.getFullPath)(this.opts.uriResolver,Fe.baseId,void 0);if(Object.keys(Fe.schema).length>0&&Be===he)return de.call(this,at,Fe);const He=(0,oe.normalizeId)(Be),Se=this.refs[He]||this.schemas[He];if("string"==typeof Se){const it=Re.call(this,Fe,Se);return"object"!=typeof it?.schema?void 0:de.call(this,at,it)}if("object"==typeof Se?.schema){if(Se.validate||be.call(this,Se),He===(0,oe.normalizeId)(_t)){const{schema:it}=Se,{schemaId:dt}=this.opts,jt=it[dt];return jt&&(he=(0,oe.resolveUrl)(this.opts.uriResolver,he,jt)),new Ee({schema:it,schemaId:dt,root:Fe,baseId:he})}return de.call(this,at,Se)}}J.SchemaEnv=Ee,J.compileSchema=be,J.resolveRef=function me(Fe,_t,at){var Be;at=(0,oe.resolveUrl)(this.opts.uriResolver,_t,at);const he=Fe.refs[at];if(he)return he;let He=vt.call(this,Fe,at);if(void 0===He){const Se=null===(Be=Fe.localRefs)||void 0===Be?void 0:Be[at],{schemaId:it}=this.opts;Se&&(He=new Ee({schema:Se,schemaId:it,root:Fe,baseId:_t}))}return void 0!==He?Fe.refs[at]=Te.call(this,He):void 0},J.getCompilingSchema=Ve,J.resolveSchema=Re;const tt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function de(Fe,{baseId:_t,schema:at,root:Be}){var he;if("/"!==(null===(he=Fe.fragment)||void 0===he?void 0:he[0]))return;for(const it of Fe.fragment.slice(1).split("/")){if("boolean"==typeof at)return;const dt=at[(0,De.unescapeFragment)(it)];if(void 0===dt)return;const jt="object"==typeof(at=dt)&&at[this.opts.schemaId];!tt.has(it)&&jt&&(_t=(0,oe.resolveUrl)(this.opts.uriResolver,_t,jt))}let He;if("boolean"!=typeof at&&at.$ref&&!(0,De.schemaHasRulesButRef)(at,this.RULES)){const it=(0,oe.resolveUrl)(this.opts.uriResolver,_t,at.$ref);He=Re.call(this,Be,it)}const{schemaId:Se}=this.opts;return He=He||new Ee({schema:at,schemaId:Se,root:Be,baseId:_t}),He.schema!==He.root.schema?He:void 0}},395:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o={data:new g.Name("data"),valCxt:new g.Name("valCxt"),instancePath:new g.Name("instancePath"),parentData:new g.Name("parentData"),parentDataProperty:new g.Name("parentDataProperty"),rootData:new g.Name("rootData"),dynamicAnchors:new g.Name("dynamicAnchors"),vErrors:new g.Name("vErrors"),errors:new g.Name("errors"),this:new g.Name("this"),self:new g.Name("self"),scope:new g.Name("scope"),json:new g.Name("json"),jsonPos:new g.Name("jsonPos"),jsonLen:new g.Name("jsonLen"),jsonPart:new g.Name("jsonPart")};J.default=o},3115:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(9839);class o extends Error{constructor(oe,De,pe,Ee){super(Ee||`can't resolve reference ${pe} from id ${De}`),this.missingRef=(0,g.resolveUrl)(oe,De,pe),this.missingSchema=(0,g.normalizeId)((0,g.getFullPath)(oe,this.missingRef))}}J.default=o},9839:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getSchemaRefs=J.resolveUrl=J.normalizeId=J._getFullPath=J.getFullPath=J.inlineRef=void 0;const g=F(9455),o=F(7413),V=F(8574),oe=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);J.inlineRef=function De(de,Fe=!0){return"boolean"==typeof de||(!0===Fe?!Ee(de):!!Fe&&be(de)<=Fe)};const pe=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ee(de){for(const Fe in de){if(pe.has(Fe))return!0;const _t=de[Fe];if(Array.isArray(_t)&&_t.some(Ee)||"object"==typeof _t&&Ee(_t))return!0}return!1}function be(de){let Fe=0;for(const _t in de){if("$ref"===_t)return 1/0;if(Fe++,!oe.has(_t)&&("object"==typeof de[_t]&&(0,g.eachItem)(de[_t],at=>Fe+=be(at)),Fe===1/0))return 1/0}return Fe}function me(de,Fe="",_t){!1!==_t&&(Fe=ze(Fe));const at=de.parse(Fe);return Te(de,at)}function Te(de,Fe){return de.serialize(Fe).split("#")[0]+"#"}J.getFullPath=me,J._getFullPath=Te;const Ve=/#\/?$/;function ze(de){return de?de.replace(Ve,""):""}J.normalizeId=ze,J.resolveUrl=function vt(de,Fe,_t){return _t=ze(_t),de.resolve(Fe,_t)};const Re=/^[a-z_][-a-z0-9._]*$/i;J.getSchemaRefs=function tt(de,Fe){if("boolean"==typeof de)return{};const{schemaId:_t,uriResolver:at}=this.opts,Be=ze(de[_t]||Fe),he={"":Be},He=me(at,Be,!1),Se={},it=new Set;return V(de,{allKeys:!0},(Wt,wn,Wn,di)=>{if(void 0===di)return;const ai=He+wn;let Li=he[di];function $i(ui){if(ui=ze(Li?(0,this.opts.uriResolver.resolve)(Li,ui):ui),it.has(ui))throw jt(ui);it.add(ui);let nt=this.refs[ui];return"string"==typeof nt&&(nt=this.refs[nt]),"object"==typeof nt?dt(Wt,nt.schema,ui):ui!==ze(ai)&&("#"===ui[0]?(dt(Wt,Se[ui],ui),Se[ui]=Wt):this.refs[ui]=ai),ui}function Hr(ui){if("string"==typeof ui){if(!Re.test(ui))throw new Error(`invalid anchor "${ui}"`);$i.call(this,`#${ui}`)}}"string"==typeof Wt[_t]&&(Li=$i.call(this,Wt[_t])),Hr.call(this,Wt.$anchor),Hr.call(this,Wt.$dynamicAnchor),he[wn]=Li}),Se;function dt(Wt,wn,Wn){if(void 0!==wn&&!o(Wt,wn))throw jt(Wn)}function jt(Wt){return new Error(`reference "${Wt}" resolves to more than one schema`)}}},5456:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getRules=J.isJSONType=void 0;const g=new Set(["string","number","integer","boolean","null","object","array"]);J.isJSONType=function o(oe){return"string"==typeof oe&&g.has(oe)},J.getRules=function V(){const oe={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...oe,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},oe.number,oe.string,oe.array,oe.object],post:{rules:[]},all:{},keywords:{}}}},9455:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.checkStrictMode=J.getErrorPath=J.Type=J.useFunc=J.setEvaluated=J.evaluatedPropsToName=J.mergeEvaluated=J.eachItem=J.unescapeJsonPointer=J.escapeJsonPointer=J.escapeFragment=J.unescapeFragment=J.schemaRefOrVal=J.schemaHasRulesButRef=J.schemaHasRules=J.checkUnknownRules=J.alwaysValidSchema=J.toHash=void 0;const g=F(6033),o=F(2004);function De(He,Se=He.schema){const{opts:it,self:dt}=He;if(!it.strictSchema||"boolean"==typeof Se)return;const jt=dt.RULES.keywords;for(const Wt in Se)jt[Wt]||he(He,`unknown keyword: "${Wt}"`)}function pe(He,Se){if("boolean"==typeof He)return!He;for(const it in He)if(Se[it])return!0;return!1}function Ve(He){return"number"==typeof He?`${He}`:He.replace(/~/g,"~0").replace(/\//g,"~1")}function ze(He){return He.replace(/~1/g,"/").replace(/~0/g,"~")}function Re({mergeNames:He,mergeToName:Se,mergeValues:it,resultToName:dt}){return(jt,Wt,wn,Wn)=>{const di=void 0===wn?Wt:wn instanceof g.Name?(Wt instanceof g.Name?He(jt,Wt,wn):Se(jt,Wt,wn),wn):Wt instanceof g.Name?(Se(jt,wn,Wt),Wt):it(Wt,wn);return Wn!==g.Name||di instanceof g.Name?di:dt(jt,di)}}function tt(He,Se){if(!0===Se)return He.var("props",!0);const it=He.var("props",g._`{}`);return void 0!==Se&&de(He,it,Se),it}function de(He,Se,it){Object.keys(it).forEach(dt=>He.assign(g._`${Se}${(0,g.getProperty)(dt)}`,!0))}J.toHash=function V(He){const Se={};for(const it of He)Se[it]=!0;return Se},J.alwaysValidSchema=function oe(He,Se){return"boolean"==typeof Se?Se:0===Object.keys(Se).length||(De(He,Se),!pe(Se,He.self.RULES.all))},J.checkUnknownRules=De,J.schemaHasRules=pe,J.schemaHasRulesButRef=function Ee(He,Se){if("boolean"==typeof He)return!He;for(const it in He)if("$ref"!==it&&Se.all[it])return!0;return!1},J.schemaRefOrVal=function be({topSchemaRef:He,schemaPath:Se},it,dt,jt){if(!jt){if("number"==typeof it||"boolean"==typeof it)return it;if("string"==typeof it)return g._`${it}`}return g._`${He}${Se}${(0,g.getProperty)(dt)}`},J.unescapeFragment=function me(He){return ze(decodeURIComponent(He))},J.escapeFragment=function Te(He){return encodeURIComponent(Ve(He))},J.escapeJsonPointer=Ve,J.unescapeJsonPointer=ze,J.eachItem=function vt(He,Se){if(Array.isArray(He))for(const it of He)Se(it);else Se(He)},J.mergeEvaluated={props:Re({mergeNames:(He,Se,it)=>He.if(g._`${it} !== true && ${Se} !== undefined`,()=>{He.if(g._`${Se} === true`,()=>He.assign(it,!0),()=>He.assign(it,g._`${it} || {}`).code(g._`Object.assign(${it}, ${Se})`))}),mergeToName:(He,Se,it)=>He.if(g._`${it} !== true`,()=>{!0===Se?He.assign(it,!0):(He.assign(it,g._`${it} || {}`),de(He,it,Se))}),mergeValues:(He,Se)=>!0===He||{...He,...Se},resultToName:tt}),items:Re({mergeNames:(He,Se,it)=>He.if(g._`${it} !== true && ${Se} !== undefined`,()=>He.assign(it,g._`${Se} === true ? true : ${it} > ${Se} ? ${it} : ${Se}`)),mergeToName:(He,Se,it)=>He.if(g._`${it} !== true`,()=>He.assign(it,!0===Se||g._`${it} > ${Se} ? ${it} : ${Se}`)),mergeValues:(He,Se)=>!0===He||Math.max(He,Se),resultToName:(He,Se)=>He.var("items",Se)})},J.evaluatedPropsToName=tt,J.setEvaluated=de;const Fe={};J.useFunc=function _t(He,Se){return He.scopeValue("func",{ref:Se,code:Fe[Se.code]||(Fe[Se.code]=new o._Code(Se.code))})};var at=function(He){return He[He.Num=0]="Num",He[He.Str=1]="Str",He}(at||(J.Type=at={}));function he(He,Se,it=He.opts.strictSchema){if(it){if(Se=`strict mode: ${Se}`,!0===it)throw new Error(Se);He.self.logger.warn(Se)}}J.getErrorPath=function Be(He,Se,it){if(He instanceof g.Name){const dt=Se===at.Num;return it?dt?g._`"[" + ${He} + "]"`:g._`"['" + ${He} + "']"`:dt?g._`"/" + ${He}`:g._`"/" + ${He}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return it?(0,g.getProperty)(He).toString():"/"+Ve(He)},J.checkStrictMode=he},9083:(vn,J)=>{"use strict";function g(V,oe){return oe.rules.some(De=>o(V,De))}function o(V,oe){var De;return void 0!==V[oe.keyword]||(null===(De=oe.definition.implements)||void 0===De?void 0:De.some(pe=>void 0!==V[pe]))}Object.defineProperty(J,"__esModule",{value:!0}),J.shouldUseRule=J.shouldUseGroup=J.schemaHasRulesForType=void 0,J.schemaHasRulesForType=function F({schema:V,self:oe},De){const pe=oe.RULES.types[De];return pe&&!0!==pe&&g(V,pe)},J.shouldUseGroup=g,J.shouldUseRule=o},8123:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.boolOrEmptySchema=J.topBoolOrEmptySchema=void 0;const g=F(1224),o=F(6033),V=F(395),oe={message:"boolean schema is false"};function Ee(be,me){const{gen:Te,data:Ve}=be;(0,g.reportError)({gen:Te,keyword:"false schema",data:Ve,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:be},oe,void 0,me)}J.topBoolOrEmptySchema=function De(be){const{gen:me,schema:Te,validateName:Ve}=be;!1===Te?Ee(be,!1):"object"==typeof Te&&!0===Te.$async?me.return(V.default.data):(me.assign(o._`${Ve}.errors`,null),me.return(!0))},J.boolOrEmptySchema=function pe(be,me){const{gen:Te,schema:Ve}=be;!1===Ve?(Te.var(me,!1),Ee(be)):Te.var(me,!0)}},5404:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.reportTypeError=J.checkDataTypes=J.checkDataType=J.coerceAndCheckDataType=J.getJSONTypes=J.getSchemaTypes=J.DataType=void 0;const g=F(5456),o=F(9083),V=F(1224),oe=F(6033),De=F(9455);var pe=function(at){return at[at.Correct=0]="Correct",at[at.Wrong=1]="Wrong",at}(pe||(J.DataType=pe={}));function be(at){const Be=Array.isArray(at)?at:at?[at]:[];if(Be.every(g.isJSONType))return Be;throw new Error("type must be JSONType or JSONType[]: "+Be.join(","))}J.getSchemaTypes=function Ee(at){const Be=be(at.type);if(Be.includes("null")){if(!1===at.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!Be.length&&void 0!==at.nullable)throw new Error('"nullable" cannot be used without "type"');!0===at.nullable&&Be.push("null")}return Be},J.getJSONTypes=be,J.coerceAndCheckDataType=function me(at,Be){const{gen:he,data:He,opts:Se}=at,it=function Ve(at,Be){return Be?at.filter(he=>Te.has(he)||"array"===Be&&"array"===he):[]}(Be,Se.coerceTypes),dt=Be.length>0&&!(0===it.length&&1===Be.length&&(0,o.schemaHasRulesForType)(at,Be[0]));if(dt){const jt=tt(Be,He,Se.strictNumbers,pe.Wrong);he.if(jt,()=>{it.length?function ze(at,Be,he){const{gen:He,data:Se,opts:it}=at,dt=He.let("dataType",oe._`typeof ${Se}`),jt=He.let("coerced",oe._`undefined`);"array"===it.coerceTypes&&He.if(oe._`${dt} == 'object' && Array.isArray(${Se}) && ${Se}.length == 1`,()=>He.assign(Se,oe._`${Se}[0]`).assign(dt,oe._`typeof ${Se}`).if(tt(Be,Se,it.strictNumbers),()=>He.assign(jt,Se))),He.if(oe._`${jt} !== undefined`);for(const wn of he)(Te.has(wn)||"array"===wn&&"array"===it.coerceTypes)&&Wt(wn);function Wt(wn){switch(wn){case"string":return void He.elseIf(oe._`${dt} == "number" || ${dt} == "boolean"`).assign(jt,oe._`"" + ${Se}`).elseIf(oe._`${Se} === null`).assign(jt,oe._`""`);case"number":return void He.elseIf(oe._`${dt} == "boolean" || ${Se} === null - || (${dt} == "string" && ${Se} && ${Se} == +${Se})`).assign(jt,oe._`+${Se}`);case"integer":return void He.elseIf(oe._`${dt} === "boolean" || ${Se} === null - || (${dt} === "string" && ${Se} && ${Se} == +${Se} && !(${Se} % 1))`).assign(jt,oe._`+${Se}`);case"boolean":return void He.elseIf(oe._`${Se} === "false" || ${Se} === 0 || ${Se} === null`).assign(jt,!1).elseIf(oe._`${Se} === "true" || ${Se} === 1`).assign(jt,!0);case"null":return He.elseIf(oe._`${Se} === "" || ${Se} === 0 || ${Se} === false`),void He.assign(jt,null);case"array":He.elseIf(oe._`${dt} === "string" || ${dt} === "number" - || ${dt} === "boolean" || ${Se} === null`).assign(jt,oe._`[${Se}]`)}}He.else(),Fe(at),He.endIf(),He.if(oe._`${jt} !== undefined`,()=>{He.assign(Se,jt),function vt({gen:at,parentData:Be,parentDataProperty:he},He){at.if(oe._`${Be} !== undefined`,()=>at.assign(oe._`${Be}[${he}]`,He))}(at,jt)})}(at,Be,it):Fe(at)})}return dt};const Te=new Set(["string","number","integer","boolean","null"]);function Re(at,Be,he,He=pe.Correct){const Se=He===pe.Correct?oe.operators.EQ:oe.operators.NEQ;let it;switch(at){case"null":return oe._`${Be} ${Se} null`;case"array":it=oe._`Array.isArray(${Be})`;break;case"object":it=oe._`${Be} && typeof ${Be} == "object" && !Array.isArray(${Be})`;break;case"integer":it=dt(oe._`!(${Be} % 1) && !isNaN(${Be})`);break;case"number":it=dt();break;default:return oe._`typeof ${Be} ${Se} ${at}`}return He===pe.Correct?it:(0,oe.not)(it);function dt(jt=oe.nil){return(0,oe.and)(oe._`typeof ${Be} == "number"`,jt,he?oe._`isFinite(${Be})`:oe.nil)}}function tt(at,Be,he,He){if(1===at.length)return Re(at[0],Be,he,He);let Se;const it=(0,De.toHash)(at);if(it.array&&it.object){const dt=oe._`typeof ${Be} != "object"`;Se=it.null?dt:oe._`!${Be} || ${dt}`,delete it.null,delete it.array,delete it.object}else Se=oe.nil;it.number&&delete it.integer;for(const dt in it)Se=(0,oe.and)(Se,Re(dt,Be,he,He));return Se}J.checkDataType=Re,J.checkDataTypes=tt;const de={message:({schema:at})=>`must be ${at}`,params:({schema:at,schemaValue:Be})=>"string"==typeof at?oe._`{type: ${at}}`:oe._`{type: ${Be}}`};function Fe(at){const Be=function _t(at){const{gen:Be,data:he,schema:He}=at,Se=(0,De.schemaRefOrVal)(at,He,"type");return{gen:Be,keyword:"type",data:he,schema:He.type,schemaCode:Se,schemaValue:Se,parentSchema:He,params:{},it:at}}(at);(0,V.reportError)(Be,de)}J.reportTypeError=Fe},794:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.assignDefaults=void 0;const g=F(6033),o=F(9455);function oe(De,pe,Ee){const{gen:be,compositeRule:me,data:Te,opts:Ve}=De;if(void 0===Ee)return;const ze=g._`${Te}${(0,g.getProperty)(pe)}`;if(me)return void(0,o.checkStrictMode)(De,`default is ignored for: ${ze}`);let vt=g._`${ze} === undefined`;"empty"===Ve.useDefaults&&(vt=g._`${vt} || ${ze} === null || ${ze} === ""`),be.if(vt,g._`${ze} = ${(0,g.stringify)(Ee)}`)}J.assignDefaults=function V(De,pe){const{properties:Ee,items:be}=De.schema;if("object"===pe&&Ee)for(const me in Ee)oe(De,me,Ee[me].default);else"array"===pe&&Array.isArray(be)&&be.forEach((me,Te)=>oe(De,Te,me.default))}},6038:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getData=J.KeywordCxt=J.validateFunctionCode=void 0;const g=F(8123),o=F(5404),V=F(9083),oe=F(5404),De=F(794),pe=F(3885),Ee=F(1483),be=F(6033),me=F(395),Te=F(9839),Ve=F(9455),ze=F(1224);function Re({gen:rt,validateName:xt,schema:Gt,schemaEnv:xn,opts:In},xi){In.code.es5?rt.func(xt,be._`${me.default.data}, ${me.default.valCxt}`,xn.$async,()=>{rt.code(be._`"use strict"; ${at(Gt,In)}`),function de(rt,xt){rt.if(me.default.valCxt,()=>{rt.var(me.default.instancePath,be._`${me.default.valCxt}.${me.default.instancePath}`),rt.var(me.default.parentData,be._`${me.default.valCxt}.${me.default.parentData}`),rt.var(me.default.parentDataProperty,be._`${me.default.valCxt}.${me.default.parentDataProperty}`),rt.var(me.default.rootData,be._`${me.default.valCxt}.${me.default.rootData}`),xt.dynamicRef&&rt.var(me.default.dynamicAnchors,be._`${me.default.valCxt}.${me.default.dynamicAnchors}`)},()=>{rt.var(me.default.instancePath,be._`""`),rt.var(me.default.parentData,be._`undefined`),rt.var(me.default.parentDataProperty,be._`undefined`),rt.var(me.default.rootData,me.default.data),xt.dynamicRef&&rt.var(me.default.dynamicAnchors,be._`{}`)})}(rt,In),rt.code(xi)}):rt.func(xt,be._`${me.default.data}, ${function tt(rt){return be._`{${me.default.instancePath}="", ${me.default.parentData}, ${me.default.parentDataProperty}, ${me.default.rootData}=${me.default.data}${rt.dynamicRef?be._`, ${me.default.dynamicAnchors}={}`:be.nil}}={}`}(In)}`,xn.$async,()=>rt.code(at(Gt,In)).code(xi))}function at(rt,xt){const Gt="object"==typeof rt&&rt[xt.schemaId];return Gt&&(xt.code.source||xt.code.process)?be._`/*# sourceURL=${Gt} */`:be.nil}function he({schema:rt,self:xt}){if("boolean"==typeof rt)return!rt;for(const Gt in rt)if(xt.RULES.all[Gt])return!0;return!1}function He(rt){return"boolean"!=typeof rt.schema}function it(rt){(0,Ve.checkUnknownRules)(rt),function jt(rt){const{schema:xt,errSchemaPath:Gt,opts:xn,self:In}=rt;xt.$ref&&xn.ignoreKeywordsWithRef&&(0,Ve.schemaHasRulesButRef)(xt,In.RULES)&&In.logger.warn(`$ref: keywords ignored in schema at path "${Gt}"`)}(rt)}function dt(rt,xt){if(rt.opts.jtd)return $i(rt,[],!1,xt);const Gt=(0,o.getSchemaTypes)(rt.schema);$i(rt,Gt,!(0,o.coerceAndCheckDataType)(rt,Gt),xt)}function di({gen:rt,schemaEnv:xt,schema:Gt,errSchemaPath:xn,opts:In}){const xi=Gt.$comment;if(!0===In.$comment)rt.code(be._`${me.default.self}.logger.log(${xi})`);else if("function"==typeof In.$comment){const or=be.str`${xn}/$comment`,ci=rt.scopeValue("root",{ref:xt.root});rt.code(be._`${me.default.self}.opts.$comment(${xi}, ${or}, ${ci}.schema)`)}}function $i(rt,xt,Gt,xn){const{gen:In,schema:xi,data:or,allErrors:ci,opts:Dr,self:Tr}=rt,{RULES:cn}=Tr;function On(Qn){(0,V.shouldUseGroup)(xi,Qn)&&(Qn.type?(In.if((0,oe.checkDataType)(Qn.type,or,Dr.strictNumbers)),Hr(rt,Qn),1===xt.length&&xt[0]===Qn.type&&Gt&&(In.else(),(0,oe.reportTypeError)(rt)),In.endIf()):Hr(rt,Qn),ci||In.if(be._`${me.default.errors} === ${xn||0}`))}!xi.$ref||!Dr.ignoreKeywordsWithRef&&(0,Ve.schemaHasRulesButRef)(xi,cn)?(Dr.jtd||function ui(rt,xt){rt.schemaEnv.meta||!rt.opts.strictTypes||(function dn(rt,xt){if(xt.length){if(!rt.dataTypes.length)return void(rt.dataTypes=xt);xt.forEach(Gt=>{Ae(rt.dataTypes,Gt)||Ze(rt,`type "${Gt}" not allowed by context "${rt.dataTypes.join(",")}"`)}),function Ue(rt,xt){const Gt=[];for(const xn of rt.dataTypes)Ae(xt,xn)?Gt.push(xn):xt.includes("integer")&&"number"===xn&&Gt.push("integer");rt.dataTypes=Gt}(rt,xt)}}(rt,xt),rt.opts.allowUnionTypes||function nt(rt,xt){xt.length>1&&(2!==xt.length||!xt.includes("null"))&&Ze(rt,"use allowUnionTypes to allow union type keyword")}(rt,xt),function ht(rt,xt){const Gt=rt.self.RULES.all;for(const xn in Gt){const In=Gt[xn];if("object"==typeof In&&(0,V.shouldUseRule)(rt.schema,In)){const{type:xi}=In.definition;xi.length&&!xi.some(or=>Je(xt,or))&&Ze(rt,`missing type "${xi.join(",")}" for keyword "${xn}"`)}}}(rt,rt.dataTypes))}(rt,xt),In.block(()=>{for(const Qn of cn.rules)On(Qn);On(cn.post)})):In.block(()=>te(rt,"$ref",cn.all.$ref.definition))}function Hr(rt,xt){const{gen:Gt,schema:xn,opts:{useDefaults:In}}=rt;In&&(0,De.assignDefaults)(rt,xt.type),Gt.block(()=>{for(const xi of xt.rules)(0,V.shouldUseRule)(xn,xi)&&te(rt,xi.keyword,xi.definition,xt.type)})}function Je(rt,xt){return rt.includes(xt)||"number"===xt&&rt.includes("integer")}function Ae(rt,xt){return rt.includes(xt)||"integer"===xt&&rt.includes("number")}function Ze(rt,xt){(0,Ve.checkStrictMode)(rt,xt+=` at "${rt.schemaEnv.baseId+rt.errSchemaPath}" (strictTypes)`,rt.opts.strictTypes)}J.validateFunctionCode=function vt(rt){He(rt)&&(it(rt),he(rt))?function Fe(rt){const{schema:xt,opts:Gt,gen:xn}=rt;Re(rt,()=>{Gt.$comment&&xt.$comment&&di(rt),function Wt(rt){const{schema:xt,opts:Gt}=rt;void 0!==xt.default&&Gt.useDefaults&&Gt.strictSchema&&(0,Ve.checkStrictMode)(rt,"default is ignored in the schema root")}(rt),xn.let(me.default.vErrors,null),xn.let(me.default.errors,0),Gt.unevaluated&&function _t(rt){const{gen:xt,validateName:Gt}=rt;rt.evaluated=xt.const("evaluated",be._`${Gt}.evaluated`),xt.if(be._`${rt.evaluated}.dynamicProps`,()=>xt.assign(be._`${rt.evaluated}.props`,be._`undefined`)),xt.if(be._`${rt.evaluated}.dynamicItems`,()=>xt.assign(be._`${rt.evaluated}.items`,be._`undefined`))}(rt),dt(rt),function ai(rt){const{gen:xt,schemaEnv:Gt,validateName:xn,ValidationError:In,opts:xi}=rt;Gt.$async?xt.if(be._`${me.default.errors} === 0`,()=>xt.return(me.default.data),()=>xt.throw(be._`new ${In}(${me.default.vErrors})`)):(xt.assign(be._`${xn}.errors`,me.default.vErrors),xi.unevaluated&&function Li({gen:rt,evaluated:xt,props:Gt,items:xn}){Gt instanceof be.Name&&rt.assign(be._`${xt}.props`,Gt),xn instanceof be.Name&&rt.assign(be._`${xt}.items`,xn)}(rt),xt.return(be._`${me.default.errors} === 0`))}(rt)})}(rt):Re(rt,()=>(0,g.topBoolOrEmptySchema)(rt))};class H{constructor(xt,Gt,xn){if((0,pe.validateKeywordUsage)(xt,Gt,xn),this.gen=xt.gen,this.allErrors=xt.allErrors,this.keyword=xn,this.data=xt.data,this.schema=xt.schema[xn],this.$data=Gt.$data&&xt.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ve.schemaRefOrVal)(xt,this.schema,xn,this.$data),this.schemaType=Gt.schemaType,this.parentSchema=xt.schema,this.params={},this.it=xt,this.def=Gt,this.$data)this.schemaCode=xt.gen.const("vSchema",zt(this.$data,xt));else if(this.schemaCode=this.schemaValue,!(0,pe.validSchemaType)(this.schema,Gt.schemaType,Gt.allowUndefined))throw new Error(`${xn} value must be ${JSON.stringify(Gt.schemaType)}`);("code"in Gt?Gt.trackErrors:!1!==Gt.errors)&&(this.errsCount=xt.gen.const("_errs",me.default.errors))}result(xt,Gt,xn){this.failResult((0,be.not)(xt),Gt,xn)}failResult(xt,Gt,xn){this.gen.if(xt),xn?xn():this.error(),Gt?(this.gen.else(),Gt(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(xt,Gt){this.failResult((0,be.not)(xt),void 0,Gt)}fail(xt){if(void 0===xt)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(xt),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(xt){if(!this.$data)return this.fail(xt);const{schemaCode:Gt}=this;this.fail(be._`${Gt} !== undefined && (${(0,be.or)(this.invalid$data(),xt)})`)}error(xt,Gt,xn){if(Gt)return this.setParams(Gt),this._error(xt,xn),void this.setParams({});this._error(xt,xn)}_error(xt,Gt){(xt?ze.reportExtraError:ze.reportError)(this,this.def.error,Gt)}$dataError(){(0,ze.reportError)(this,this.def.$dataError||ze.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,ze.resetErrorsCount)(this.gen,this.errsCount)}ok(xt){this.allErrors||this.gen.if(xt)}setParams(xt,Gt){Gt?Object.assign(this.params,xt):this.params=xt}block$data(xt,Gt,xn=be.nil){this.gen.block(()=>{this.check$data(xt,xn),Gt()})}check$data(xt=be.nil,Gt=be.nil){if(!this.$data)return;const{gen:xn,schemaCode:In,schemaType:xi,def:or}=this;xn.if((0,be.or)(be._`${In} === undefined`,Gt)),xt!==be.nil&&xn.assign(xt,!0),(xi.length||or.validateSchema)&&(xn.elseIf(this.invalid$data()),this.$dataError(),xt!==be.nil&&xn.assign(xt,!1)),xn.else()}invalid$data(){const{gen:xt,schemaCode:Gt,schemaType:xn,def:In,it:xi}=this;return(0,be.or)(function or(){if(xn.length){if(!(Gt instanceof be.Name))throw new Error("ajv implementation error");const Dr=Array.isArray(xn)?xn:[xn];return be._`${(0,oe.checkDataTypes)(Dr,Gt,xi.opts.strictNumbers,oe.DataType.Wrong)}`}return be.nil}(),function ci(){if(In.validateSchema){const Dr=xt.scopeValue("validate$data",{ref:In.validateSchema});return be._`!${Dr}(${Gt})`}return be.nil}())}subschema(xt,Gt){const xn=(0,Ee.getSubschema)(this.it,xt);(0,Ee.extendSubschemaData)(xn,this.it,xt),(0,Ee.extendSubschemaMode)(xn,xt);const In={...this.it,...xn,items:void 0,props:void 0};return function Be(rt,xt){He(rt)&&(it(rt),he(rt))?function Se(rt,xt){const{schema:Gt,gen:xn,opts:In}=rt;In.$comment&&Gt.$comment&&di(rt),function wn(rt){const xt=rt.schema[rt.opts.schemaId];xt&&(rt.baseId=(0,Te.resolveUrl)(rt.opts.uriResolver,rt.baseId,xt))}(rt),function Wn(rt){if(rt.schema.$async&&!rt.schemaEnv.$async)throw new Error("async schema in sync schema")}(rt);const xi=xn.const("_errs",me.default.errors);dt(rt,xi),xn.var(xt,be._`${xi} === ${me.default.errors}`)}(rt,xt):(0,g.boolOrEmptySchema)(rt,xt)}(In,Gt),In}mergeEvaluated(xt,Gt){const{it:xn,gen:In}=this;xn.opts.unevaluated&&(!0!==xn.props&&void 0!==xt.props&&(xn.props=Ve.mergeEvaluated.props(In,xt.props,xn.props,Gt)),!0!==xn.items&&void 0!==xt.items&&(xn.items=Ve.mergeEvaluated.items(In,xt.items,xn.items,Gt)))}mergeValidEvaluated(xt,Gt){const{it:xn,gen:In}=this;if(xn.opts.unevaluated&&(!0!==xn.props||!0!==xn.items))return In.if(Gt,()=>this.mergeEvaluated(xt,be.Name)),!0}}function te(rt,xt,Gt,xn){const In=new H(rt,Gt,xt);"code"in Gt?Gt.code(In,xn):In.$data&&Gt.validate?(0,pe.funcKeywordCode)(In,Gt):"macro"in Gt?(0,pe.macroKeywordCode)(In,Gt):(Gt.compile||Gt.validate)&&(0,pe.funcKeywordCode)(In,Gt)}J.KeywordCxt=H;const xe=/^\/(?:[^~]|~0|~1)*$/,Ce=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function zt(rt,{dataLevel:xt,dataNames:Gt,dataPathArr:xn}){let In,xi;if(""===rt)return me.default.rootData;if("/"===rt[0]){if(!xe.test(rt))throw new Error(`Invalid JSON-pointer: ${rt}`);In=rt,xi=me.default.rootData}else{const Tr=Ce.exec(rt);if(!Tr)throw new Error(`Invalid JSON-pointer: ${rt}`);const cn=+Tr[1];if(In=Tr[2],"#"===In){if(cn>=xt)throw new Error(Dr("property/index",cn));return xn[xt-cn]}if(cn>xt)throw new Error(Dr("data",cn));if(xi=Gt[xt-cn],!In)return xi}let or=xi;const ci=In.split("/");for(const Tr of ci)Tr&&(xi=be._`${xi}${(0,be.getProperty)((0,Ve.unescapeJsonPointer)(Tr))}`,or=be._`${or} && ${xi}`);return or;function Dr(Tr,cn){return`Cannot access ${Tr} ${cn} levels up, current level is ${xt}`}}J.getData=zt},3885:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateKeywordUsage=J.validSchemaType=J.funcKeywordCode=J.macroKeywordCode=void 0;const g=F(6033),o=F(395),V=F(4737),oe=F(1224);function Ee(vt){const{gen:Re,data:tt,it:de}=vt;Re.if(de.parentData,()=>Re.assign(tt,g._`${de.parentData}[${de.parentDataProperty}]`))}function Te(vt,Re,tt){if(void 0===tt)throw new Error(`keyword "${Re}" failed to compile`);return vt.scopeValue("keyword","function"==typeof tt?{ref:tt}:{ref:tt,code:(0,g.stringify)(tt)})}J.macroKeywordCode=function De(vt,Re){const{gen:tt,keyword:de,schema:Fe,parentSchema:_t,it:at}=vt,Be=Re.macro.call(at.self,Fe,_t,at),he=Te(tt,de,Be);!1!==at.opts.validateSchema&&at.self.validateSchema(Be,!0);const He=tt.name("valid");vt.subschema({schema:Be,schemaPath:g.nil,errSchemaPath:`${at.errSchemaPath}/${de}`,topSchemaRef:he,compositeRule:!0},He),vt.pass(He,()=>vt.error(!0))},J.funcKeywordCode=function pe(vt,Re){var tt;const{gen:de,keyword:Fe,schema:_t,parentSchema:at,$data:Be,it:he}=vt;!function me({schemaEnv:vt},Re){if(Re.async&&!vt.$async)throw new Error("async keyword in sync schema")}(he,Re);const He=!Be&&Re.compile?Re.compile.call(he.self,_t,at,he):Re.validate,Se=Te(de,Fe,He),it=de.let("valid");function wn(di=(Re.async?g._`await `:g.nil)){de.assign(it,g._`${di}${(0,V.callValidateCode)(vt,Se,he.opts.passContext?o.default.this:o.default.self,!("compile"in Re&&!Be||!1===Re.schema))}`,Re.modifying)}function Wn(di){var ai;de.if((0,g.not)(null!==(ai=Re.valid)&&void 0!==ai?ai:it),di)}vt.block$data(it,function dt(){if(!1===Re.errors)wn(),Re.modifying&&Ee(vt),Wn(()=>vt.error());else{const di=Re.async?function jt(){const di=de.let("ruleErrs",null);return de.try(()=>wn(g._`await `),ai=>de.assign(it,!1).if(g._`${ai} instanceof ${he.ValidationError}`,()=>de.assign(di,g._`${ai}.errors`),()=>de.throw(ai))),di}():function Wt(){const di=g._`${Se}.errors`;return de.assign(di,null),wn(g.nil),di}();Re.modifying&&Ee(vt),Wn(()=>function be(vt,Re){const{gen:tt}=vt;tt.if(g._`Array.isArray(${Re})`,()=>{tt.assign(o.default.vErrors,g._`${o.default.vErrors} === null ? ${Re} : ${o.default.vErrors}.concat(${Re})`).assign(o.default.errors,g._`${o.default.vErrors}.length`),(0,oe.extendErrors)(vt)},()=>vt.error())}(vt,di))}}),vt.ok(null!==(tt=Re.valid)&&void 0!==tt?tt:it)},J.validSchemaType=function Ve(vt,Re,tt=!1){return!Re.length||Re.some(de=>"array"===de?Array.isArray(vt):"object"===de?vt&&"object"==typeof vt&&!Array.isArray(vt):typeof vt==de||tt&&typeof vt>"u")},J.validateKeywordUsage=function ze({schema:vt,opts:Re,self:tt,errSchemaPath:de},Fe,_t){if(Array.isArray(Fe.keyword)?!Fe.keyword.includes(_t):Fe.keyword!==_t)throw new Error("ajv implementation error");const at=Fe.dependencies;if(at?.some(Be=>!Object.prototype.hasOwnProperty.call(vt,Be)))throw new Error(`parent schema must have dependencies of ${_t}: ${at.join(",")}`);if(Fe.validateSchema&&!Fe.validateSchema(vt[_t])){const he=`keyword "${_t}" value is invalid at path "${de}": `+tt.errorsText(Fe.validateSchema.errors);if("log"!==Re.validateSchema)throw new Error(he);tt.logger.error(he)}}},1483:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.extendSubschemaMode=J.extendSubschemaData=J.getSubschema=void 0;const g=F(6033),o=F(9455);J.getSubschema=function V(pe,{keyword:Ee,schemaProp:be,schema:me,schemaPath:Te,errSchemaPath:Ve,topSchemaRef:ze}){if(void 0!==Ee&&void 0!==me)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==Ee){const vt=pe.schema[Ee];return void 0===be?{schema:vt,schemaPath:g._`${pe.schemaPath}${(0,g.getProperty)(Ee)}`,errSchemaPath:`${pe.errSchemaPath}/${Ee}`}:{schema:vt[be],schemaPath:g._`${pe.schemaPath}${(0,g.getProperty)(Ee)}${(0,g.getProperty)(be)}`,errSchemaPath:`${pe.errSchemaPath}/${Ee}/${(0,o.escapeFragment)(be)}`}}if(void 0!==me){if(void 0===Te||void 0===Ve||void 0===ze)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:me,schemaPath:Te,topSchemaRef:ze,errSchemaPath:Ve}}throw new Error('either "keyword" or "schema" must be passed')},J.extendSubschemaData=function oe(pe,Ee,{dataProp:be,dataPropType:me,data:Te,dataTypes:Ve,propertyName:ze}){if(void 0!==Te&&void 0!==be)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:vt}=Ee;if(void 0!==be){const{errorPath:tt,dataPathArr:de,opts:Fe}=Ee;Re(vt.let("data",g._`${Ee.data}${(0,g.getProperty)(be)}`,!0)),pe.errorPath=g.str`${tt}${(0,o.getErrorPath)(be,me,Fe.jsPropertySyntax)}`,pe.parentDataProperty=g._`${be}`,pe.dataPathArr=[...de,pe.parentDataProperty]}function Re(tt){pe.data=tt,pe.dataLevel=Ee.dataLevel+1,pe.dataTypes=[],Ee.definedProperties=new Set,pe.parentData=Ee.data,pe.dataNames=[...Ee.dataNames,tt]}void 0!==Te&&(Re(Te instanceof g.Name?Te:vt.let("data",Te,!0)),void 0!==ze&&(pe.propertyName=ze)),Ve&&(pe.dataTypes=Ve)},J.extendSubschemaMode=function De(pe,{jtdDiscriminator:Ee,jtdMetadata:be,compositeRule:me,createErrors:Te,allErrors:Ve}){void 0!==me&&(pe.compositeRule=me),void 0!==Te&&(pe.createErrors=Te),void 0!==Ve&&(pe.allErrors=Ve),pe.jtdDiscriminator=Ee,pe.jtdMetadata=be}},3078:(vn,J,F)=>{"use strict";var g=F(4510).default;Object.defineProperty(J,"__esModule",{value:!0}),J.CodeGen=J.Name=J.nil=J.stringify=J.str=J._=J.KeywordCxt=void 0;var o=F(6038);Object.defineProperty(J,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var V=F(6033);Object.defineProperty(J,"_",{enumerable:!0,get:function(){return V._}}),Object.defineProperty(J,"str",{enumerable:!0,get:function(){return V.str}}),Object.defineProperty(J,"stringify",{enumerable:!0,get:function(){return V.stringify}}),Object.defineProperty(J,"nil",{enumerable:!0,get:function(){return V.nil}}),Object.defineProperty(J,"Name",{enumerable:!0,get:function(){return V.Name}}),Object.defineProperty(J,"CodeGen",{enumerable:!0,get:function(){return V.CodeGen}});const oe=F(8186),De=F(3115),pe=F(5456),Ee=F(2431),be=F(6033),me=F(9839),Te=F(5404),Ve=F(9455),ze=F(3837),vt=F(3572),Re=(nt,ht)=>new RegExp(nt,ht);Re.code="new RegExp";const tt=["removeAdditional","useDefaults","coerceTypes"],de=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Fe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_t={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function Be(nt){var ht,Je,Ae,Ue,Ze,H,te,xe,Ce,zt,rt,xt,Gt,xn,In,xi,or,ci,Dr,Tr,cn,On,Qn,fi,qe;const Mt=nt.strict,Bt=null===(ht=nt.code)||void 0===ht?void 0:ht.optimize,hn=!0===Bt||void 0===Bt?1:Bt||0,Mn=null!==(Ae=null===(Je=nt.code)||void 0===Je?void 0:Je.regExp)&&void 0!==Ae?Ae:Re,Vi=null!==(Ue=nt.uriResolver)&&void 0!==Ue?Ue:vt.default;return{strictSchema:null===(H=null!==(Ze=nt.strictSchema)&&void 0!==Ze?Ze:Mt)||void 0===H||H,strictNumbers:null===(xe=null!==(te=nt.strictNumbers)&&void 0!==te?te:Mt)||void 0===xe||xe,strictTypes:null!==(zt=null!==(Ce=nt.strictTypes)&&void 0!==Ce?Ce:Mt)&&void 0!==zt?zt:"log",strictTuples:null!==(xt=null!==(rt=nt.strictTuples)&&void 0!==rt?rt:Mt)&&void 0!==xt?xt:"log",strictRequired:null!==(xn=null!==(Gt=nt.strictRequired)&&void 0!==Gt?Gt:Mt)&&void 0!==xn&&xn,code:nt.code?{...nt.code,optimize:hn,regExp:Mn}:{optimize:hn,regExp:Mn},loopRequired:null!==(In=nt.loopRequired)&&void 0!==In?In:200,loopEnum:null!==(xi=nt.loopEnum)&&void 0!==xi?xi:200,meta:null===(or=nt.meta)||void 0===or||or,messages:null===(ci=nt.messages)||void 0===ci||ci,inlineRefs:null===(Dr=nt.inlineRefs)||void 0===Dr||Dr,schemaId:null!==(Tr=nt.schemaId)&&void 0!==Tr?Tr:"$id",addUsedSchema:null===(cn=nt.addUsedSchema)||void 0===cn||cn,validateSchema:null===(On=nt.validateSchema)||void 0===On||On,validateFormats:null===(Qn=nt.validateFormats)||void 0===Qn||Qn,unicodeRegExp:null===(fi=nt.unicodeRegExp)||void 0===fi||fi,int32range:null===(qe=nt.int32range)||void 0===qe||qe,uriResolver:Vi}}class he{constructor(ht={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,ht=this.opts={...ht,...Be(ht)};const{es5:Je,lines:Ae}=this.opts.code;this.scope=new be.ValueScope({scope:{},prefixes:de,es5:Je,lines:Ae}),this.logger=function Wn(nt){if(!1===nt)return wn;if(void 0===nt)return console;if(nt.log&&nt.warn&&nt.error)return nt;throw new Error("logger must implement log, warn and error methods")}(ht.logger);const Ue=ht.validateFormats;ht.validateFormats=!1,this.RULES=(0,pe.getRules)(),He.call(this,Fe,ht,"NOT SUPPORTED"),He.call(this,_t,ht,"DEPRECATED","warn"),this._metaOpts=Wt.call(this),ht.formats&&dt.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),ht.keywords&&jt.call(this,ht.keywords),"object"==typeof ht.meta&&this.addMetaSchema(ht.meta),it.call(this),ht.validateFormats=Ue}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:ht,meta:Je,schemaId:Ae}=this.opts;let Ue=ze;"id"===Ae&&(Ue={...ze},Ue.id=Ue.$id,delete Ue.$id),Je&&ht&&this.addMetaSchema(Ue,Ue[Ae],!1)}defaultMeta(){const{meta:ht,schemaId:Je}=this.opts;return this.opts.defaultMeta="object"==typeof ht?ht[Je]||ht:void 0}validate(ht,Je){let Ae;if("string"==typeof ht){if(Ae=this.getSchema(ht),!Ae)throw new Error(`no schema with key or ref "${ht}"`)}else Ae=this.compile(ht);const Ue=Ae(Je);return"$async"in Ae||(this.errors=Ae.errors),Ue}compile(ht,Je){const Ae=this._addSchema(ht,Je);return Ae.validate||this._compileSchemaEnv(Ae)}compileAsync(ht,Je){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:Ae}=this.opts;return Ue.call(this,ht,Je);function Ue(In,xi){return Ze.apply(this,arguments)}function Ze(){return(Ze=g(function*(In,xi){yield H.call(this,In.$schema);const or=this._addSchema(In,xi);return or.validate||xe.call(this,or)})).apply(this,arguments)}function H(In){return te.apply(this,arguments)}function te(){return(te=g(function*(In){In&&!this.getSchema(In)&&(yield Ue.call(this,{$ref:In},!0))})).apply(this,arguments)}function xe(In){return Ce.apply(this,arguments)}function Ce(){return(Ce=g(function*(In){try{return this._compileSchemaEnv(In)}catch(xi){if(!(xi instanceof De.default))throw xi;return zt.call(this,xi),yield rt.call(this,xi.missingSchema),xe.call(this,In)}})).apply(this,arguments)}function zt({missingSchema:In,missingRef:xi}){if(this.refs[In])throw new Error(`AnySchema ${In} is loaded but ${xi} cannot be resolved`)}function rt(In){return xt.apply(this,arguments)}function xt(){return(xt=g(function*(In){const xi=yield Gt.call(this,In);this.refs[In]||(yield H.call(this,xi.$schema)),this.refs[In]||this.addSchema(xi,In,Je)})).apply(this,arguments)}function Gt(In){return xn.apply(this,arguments)}function xn(){return(xn=g(function*(In){const xi=this._loading[In];if(xi)return xi;try{return yield this._loading[In]=Ae(In)}finally{delete this._loading[In]}})).apply(this,arguments)}}addSchema(ht,Je,Ae,Ue=this.opts.validateSchema){if(Array.isArray(ht)){for(const H of ht)this.addSchema(H,void 0,Ae,Ue);return this}let Ze;if("object"==typeof ht){const{schemaId:H}=this.opts;if(Ze=ht[H],void 0!==Ze&&"string"!=typeof Ze)throw new Error(`schema ${H} must be string`)}return Je=(0,me.normalizeId)(Je||Ze),this._checkUnique(Je),this.schemas[Je]=this._addSchema(ht,Ae,Je,Ue,!0),this}addMetaSchema(ht,Je,Ae=this.opts.validateSchema){return this.addSchema(ht,Je,!0,Ae),this}validateSchema(ht,Je){if("boolean"==typeof ht)return!0;let Ae;if(Ae=ht.$schema,void 0!==Ae&&"string"!=typeof Ae)throw new Error("$schema must be a string");if(Ae=Ae||this.opts.defaultMeta||this.defaultMeta(),!Ae)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const Ue=this.validate(Ae,ht);if(!Ue&&Je){const Ze="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(Ze);this.logger.error(Ze)}return Ue}getSchema(ht){let Je;for(;"string"==typeof(Je=Se.call(this,ht));)ht=Je;if(void 0===Je){const{schemaId:Ae}=this.opts,Ue=new Ee.SchemaEnv({schema:{},schemaId:Ae});if(Je=Ee.resolveSchema.call(this,Ue,ht),!Je)return;this.refs[ht]=Je}return Je.validate||this._compileSchemaEnv(Je)}removeSchema(ht){if(ht instanceof RegExp)return this._removeAllSchemas(this.schemas,ht),this._removeAllSchemas(this.refs,ht),this;switch(typeof ht){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Je=Se.call(this,ht);return"object"==typeof Je&&this._cache.delete(Je.schema),delete this.schemas[ht],delete this.refs[ht],this}case"object":{this._cache.delete(ht);let Ae=ht[this.opts.schemaId];return Ae&&(Ae=(0,me.normalizeId)(Ae),delete this.schemas[Ae],delete this.refs[Ae]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(ht){for(const Je of ht)this.addKeyword(Je);return this}addKeyword(ht,Je){let Ae;if("string"==typeof ht)Ae=ht,"object"==typeof Je&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Je.keyword=Ae);else{if("object"!=typeof ht||void 0!==Je)throw new Error("invalid addKeywords parameters");if(Ae=(Je=ht).keyword,Array.isArray(Ae)&&!Ae.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(ai.call(this,Ae,Je),!Je)return(0,Ve.eachItem)(Ae,Ze=>Li.call(this,Ze)),this;Hr.call(this,Je);const Ue={...Je,type:(0,Te.getJSONTypes)(Je.type),schemaType:(0,Te.getJSONTypes)(Je.schemaType)};return(0,Ve.eachItem)(Ae,0===Ue.type.length?Ze=>Li.call(this,Ze,Ue):Ze=>Ue.type.forEach(H=>Li.call(this,Ze,Ue,H))),this}getKeyword(ht){const Je=this.RULES.all[ht];return"object"==typeof Je?Je.definition:!!Je}removeKeyword(ht){const{RULES:Je}=this;delete Je.keywords[ht],delete Je.all[ht];for(const Ae of Je.rules){const Ue=Ae.rules.findIndex(Ze=>Ze.keyword===ht);Ue>=0&&Ae.rules.splice(Ue,1)}return this}addFormat(ht,Je){return"string"==typeof Je&&(Je=new RegExp(Je)),this.formats[ht]=Je,this}errorsText(ht=this.errors,{separator:Je=", ",dataVar:Ae="data"}={}){return ht&&0!==ht.length?ht.map(Ue=>`${Ae}${Ue.instancePath} ${Ue.message}`).reduce((Ue,Ze)=>Ue+Je+Ze):"No errors"}$dataMetaSchema(ht,Je){const Ae=this.RULES.all;ht=JSON.parse(JSON.stringify(ht));for(const Ue of Je){const Ze=Ue.split("/").slice(1);let H=ht;for(const te of Ze)H=H[te];for(const te in Ae){const xe=Ae[te];if("object"!=typeof xe)continue;const{$data:Ce}=xe.definition,zt=H[te];Ce&&zt&&(H[te]=dn(zt))}}return ht}_removeAllSchemas(ht,Je){for(const Ae in ht){const Ue=ht[Ae];(!Je||Je.test(Ae))&&("string"==typeof Ue?delete ht[Ae]:Ue&&!Ue.meta&&(this._cache.delete(Ue.schema),delete ht[Ae]))}}_addSchema(ht,Je,Ae,Ue=this.opts.validateSchema,Ze=this.opts.addUsedSchema){let H;const{schemaId:te}=this.opts;if("object"==typeof ht)H=ht[te];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof ht)throw new Error("schema must be object or boolean")}let xe=this._cache.get(ht);if(void 0!==xe)return xe;Ae=(0,me.normalizeId)(H||Ae);const Ce=me.getSchemaRefs.call(this,ht,Ae);return xe=new Ee.SchemaEnv({schema:ht,schemaId:te,meta:Je,baseId:Ae,localRefs:Ce}),this._cache.set(xe.schema,xe),Ze&&!Ae.startsWith("#")&&(Ae&&this._checkUnique(Ae),this.refs[Ae]=xe),Ue&&this.validateSchema(ht,!0),xe}_checkUnique(ht){if(this.schemas[ht]||this.refs[ht])throw new Error(`schema with key or id "${ht}" already exists`)}_compileSchemaEnv(ht){if(ht.meta?this._compileMetaSchema(ht):Ee.compileSchema.call(this,ht),!ht.validate)throw new Error("ajv implementation error");return ht.validate}_compileMetaSchema(ht){const Je=this.opts;this.opts=this._metaOpts;try{Ee.compileSchema.call(this,ht)}finally{this.opts=Je}}}function He(nt,ht,Je,Ae="error"){for(const Ue in nt)Ue in ht&&this.logger[Ae](`${Je}: option ${Ue}. ${nt[Ue]}`)}function Se(nt){return nt=(0,me.normalizeId)(nt),this.schemas[nt]||this.refs[nt]}function it(){const nt=this.opts.schemas;if(nt)if(Array.isArray(nt))this.addSchema(nt);else for(const ht in nt)this.addSchema(nt[ht],ht)}function dt(){for(const nt in this.opts.formats){const ht=this.opts.formats[nt];ht&&this.addFormat(nt,ht)}}function jt(nt){if(Array.isArray(nt))this.addVocabulary(nt);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const ht in nt){const Je=nt[ht];Je.keyword||(Je.keyword=ht),this.addKeyword(Je)}}}function Wt(){const nt={...this.opts};for(const ht of tt)delete nt[ht];return nt}he.ValidationError=oe.default,he.MissingRefError=De.default,J.default=he;const wn={log(){},warn(){},error(){}},di=/^[a-z_$][a-z0-9_$:-]*$/i;function ai(nt,ht){const{RULES:Je}=this;if((0,Ve.eachItem)(nt,Ae=>{if(Je.keywords[Ae])throw new Error(`Keyword ${Ae} is already defined`);if(!di.test(Ae))throw new Error(`Keyword ${Ae} has invalid name`)}),ht&&ht.$data&&!("code"in ht)&&!("validate"in ht))throw new Error('$data keyword must have "code" or "validate" function')}function Li(nt,ht,Je){var Ae;const Ue=ht?.post;if(Je&&Ue)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Ze}=this;let H=Ue?Ze.post:Ze.rules.find(({type:xe})=>xe===Je);if(H||(H={type:Je,rules:[]},Ze.rules.push(H)),Ze.keywords[nt]=!0,!ht)return;const te={keyword:nt,definition:{...ht,type:(0,Te.getJSONTypes)(ht.type),schemaType:(0,Te.getJSONTypes)(ht.schemaType)}};ht.before?$i.call(this,H,te,ht.before):H.rules.push(te),Ze.all[nt]=te,null===(Ae=ht.implements)||void 0===Ae||Ae.forEach(xe=>this.addKeyword(xe))}function $i(nt,ht,Je){const Ae=nt.rules.findIndex(Ue=>Ue.keyword===Je);Ae>=0?nt.rules.splice(Ae,0,ht):(nt.rules.push(ht),this.logger.warn(`rule ${Je} is not defined`))}function Hr(nt){let{metaSchema:ht}=nt;void 0!==ht&&(nt.$data&&this.opts.$data&&(ht=dn(ht)),nt.validateSchema=this.compile(ht,!0))}const ui={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function dn(nt){return{anyOf:[nt,ui]}}},7494:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(7413);g.code='require("ajv/dist/runtime/equal").default',J.default=g},5033:(vn,J)=>{"use strict";function F(g){const o=g.length;let De,V=0,oe=0;for(;oe=55296&&De<=56319&&oe{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(8255);g.code='require("ajv/dist/runtime/uri").default',J.default=g},8186:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});class F extends Error{constructor(o){super("validation failed"),this.errors=o,this.ajv=this.validation=!0}}J.default=F},3901:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateAdditionalItems=void 0;const g=F(6033),o=F(9455),oe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:pe}})=>g.str`must NOT have more than ${pe} items`,params:({params:{len:pe}})=>g._`{limit: ${pe}}`},code(pe){const{parentSchema:Ee,it:be}=pe,{items:me}=Ee;Array.isArray(me)?De(pe,me):(0,o.checkStrictMode)(be,'"additionalItems" is ignored when "items" is not an array of schemas')}};function De(pe,Ee){const{gen:be,schema:me,data:Te,keyword:Ve,it:ze}=pe;ze.items=!0;const vt=be.const("len",g._`${Te}.length`);if(!1===me)pe.setParams({len:Ee.length}),pe.pass(g._`${vt} <= ${Ee.length}`);else if("object"==typeof me&&!(0,o.alwaysValidSchema)(ze,me)){const tt=be.var("valid",g._`${vt} <= ${Ee.length}`);be.if((0,g.not)(tt),()=>function Re(tt){be.forRange("i",Ee.length,vt,de=>{pe.subschema({keyword:Ve,dataProp:de,dataPropType:o.Type.Num},tt),ze.allErrors||be.if((0,g.not)(tt),()=>be.break())})}(tt)),pe.ok(tt)}}J.validateAdditionalItems=De,J.default=oe},0:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(4737),o=F(6033),V=F(395),oe=F(9455);J.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:Ee})=>o._`{additionalProperty: ${Ee.additionalProperty}}`},code(Ee){const{gen:be,schema:me,parentSchema:Te,data:Ve,errsCount:ze,it:vt}=Ee;if(!ze)throw new Error("ajv implementation error");const{allErrors:Re,opts:tt}=vt;if(vt.props=!0,"all"!==tt.removeAdditional&&(0,oe.alwaysValidSchema)(vt,me))return;const de=(0,g.allSchemaProperties)(Te.properties),Fe=(0,g.allSchemaProperties)(Te.patternProperties);function Be(Se){be.code(o._`delete ${Ve}[${Se}]`)}function he(Se){if("all"===tt.removeAdditional||tt.removeAdditional&&!1===me)Be(Se);else{if(!1===me)return Ee.setParams({additionalProperty:Se}),Ee.error(),void(Re||be.break());if("object"==typeof me&&!(0,oe.alwaysValidSchema)(vt,me)){const it=be.name("valid");"failing"===tt.removeAdditional?(He(Se,it,!1),be.if((0,o.not)(it),()=>{Ee.reset(),Be(Se)})):(He(Se,it),Re||be.if((0,o.not)(it),()=>be.break()))}}}function He(Se,it,dt){const jt={keyword:"additionalProperties",dataProp:Se,dataPropType:oe.Type.Str};!1===dt&&Object.assign(jt,{compositeRule:!0,createErrors:!1,allErrors:!1}),Ee.subschema(jt,it)}(function _t(){be.forIn("key",Ve,Se=>{de.length||Fe.length?be.if(function at(Se){let it;if(de.length>8){const dt=(0,oe.schemaRefOrVal)(vt,Te.properties,"properties");it=(0,g.isOwnProperty)(be,dt,Se)}else it=de.length?(0,o.or)(...de.map(dt=>o._`${Se} === ${dt}`)):o.nil;return Fe.length&&(it=(0,o.or)(it,...Fe.map(dt=>o._`${(0,g.usePattern)(Ee,dt)}.test(${Se})`))),(0,o.not)(it)}(Se),()=>he(Se)):he(Se)})})(),Ee.ok(o._`${ze} === ${V.default.errors}`)}}},4760:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(9455);J.default={keyword:"allOf",schemaType:"array",code(V){const{gen:oe,schema:De,it:pe}=V;if(!Array.isArray(De))throw new Error("ajv implementation error");const Ee=oe.name("valid");De.forEach((be,me)=>{if((0,g.alwaysValidSchema)(pe,be))return;const Te=V.subschema({keyword:"allOf",schemaProp:me},Ee);V.ok(Ee),V.mergeEvaluated(Te)})}}},2453:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const o={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:F(4737).validateUnion,error:{message:"must match a schema in anyOf"}};J.default=o},3937:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455);J.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:De,max:pe}})=>void 0===pe?g.str`must contain at least ${De} valid item(s)`:g.str`must contain at least ${De} and no more than ${pe} valid item(s)`,params:({params:{min:De,max:pe}})=>void 0===pe?g._`{minContains: ${De}}`:g._`{minContains: ${De}, maxContains: ${pe}}`},code(De){const{gen:pe,schema:Ee,parentSchema:be,data:me,it:Te}=De;let Ve,ze;const{minContains:vt,maxContains:Re}=be;Te.opts.next?(Ve=void 0===vt?1:vt,ze=Re):Ve=1;const tt=pe.const("len",g._`${me}.length`);if(De.setParams({min:Ve,max:ze}),void 0===ze&&0===Ve)return void(0,o.checkStrictMode)(Te,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==ze&&Ve>ze)return(0,o.checkStrictMode)(Te,'"minContains" > "maxContains" is always invalid'),void De.fail();if((0,o.alwaysValidSchema)(Te,Ee)){let Be=g._`${tt} >= ${Ve}`;return void 0!==ze&&(Be=g._`${Be} && ${tt} <= ${ze}`),void De.pass(Be)}Te.items=!0;const de=pe.name("valid");function Fe(){const Be=pe.name("_valid"),he=pe.let("count",0);_t(Be,()=>pe.if(Be,()=>function at(Be){pe.code(g._`${Be}++`),void 0===ze?pe.if(g._`${Be} >= ${Ve}`,()=>pe.assign(de,!0).break()):(pe.if(g._`${Be} > ${ze}`,()=>pe.assign(de,!1).break()),1===Ve?pe.assign(de,!0):pe.if(g._`${Be} >= ${Ve}`,()=>pe.assign(de,!0)))}(he)))}function _t(Be,he){pe.forRange("i",0,tt,He=>{De.subschema({keyword:"contains",dataProp:He,dataPropType:o.Type.Num,compositeRule:!0},Be),he()})}void 0===ze&&1===Ve?_t(de,()=>pe.if(de,()=>pe.break())):0===Ve?(pe.let(de,!0),void 0!==ze&&pe.if(g._`${me}.length > 0`,Fe)):(pe.let(de,!1),Fe()),De.result(de,()=>De.reset())}}},5133:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateSchemaDeps=J.validatePropertyDeps=J.error=void 0;const g=F(6033),o=F(9455),V=F(4737);J.error={message:({params:{property:be,depsCount:me,deps:Te}})=>g.str`must have ${1===me?"property":"properties"} ${Te} when property ${be} is present`,params:({params:{property:be,depsCount:me,deps:Te,missingProperty:Ve}})=>g._`{property: ${be}, - missingProperty: ${Ve}, - depsCount: ${me}, - deps: ${Te}}`};const oe={keyword:"dependencies",type:"object",schemaType:"object",error:J.error,code(be){const[me,Te]=function De({schema:be}){const me={},Te={};for(const Ve in be)"__proto__"!==Ve&&((Array.isArray(be[Ve])?me:Te)[Ve]=be[Ve]);return[me,Te]}(be);pe(be,me),Ee(be,Te)}};function pe(be,me=be.schema){const{gen:Te,data:Ve,it:ze}=be;if(0===Object.keys(me).length)return;const vt=Te.let("missing");for(const Re in me){const tt=me[Re];if(0===tt.length)continue;const de=(0,V.propertyInData)(Te,Ve,Re,ze.opts.ownProperties);be.setParams({property:Re,depsCount:tt.length,deps:tt.join(", ")}),ze.allErrors?Te.if(de,()=>{for(const Fe of tt)(0,V.checkReportMissingProp)(be,Fe)}):(Te.if(g._`${de} && (${(0,V.checkMissingProp)(be,tt,vt)})`),(0,V.reportMissingProp)(be,vt),Te.else())}}function Ee(be,me=be.schema){const{gen:Te,data:Ve,keyword:ze,it:vt}=be,Re=Te.name("valid");for(const tt in me)(0,o.alwaysValidSchema)(vt,me[tt])||(Te.if((0,V.propertyInData)(Te,Ve,tt,vt.opts.ownProperties),()=>{const de=be.subschema({keyword:ze,schemaProp:tt},Re);be.mergeValidEvaluated(de,Re)},()=>Te.var(Re,!0)),be.ok(Re))}J.validatePropertyDeps=pe,J.validateSchemaDeps=Ee,J.default=oe},4779:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455);function De(pe,Ee){const be=pe.schema[Ee];return void 0!==be&&!(0,o.alwaysValidSchema)(pe,be)}J.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:pe})=>g.str`must match "${pe.ifClause}" schema`,params:({params:pe})=>g._`{failingKeyword: ${pe.ifClause}}`},code(pe){const{gen:Ee,parentSchema:be,it:me}=pe;void 0===be.then&&void 0===be.else&&(0,o.checkStrictMode)(me,'"if" without "then" and "else" is ignored');const Te=De(me,"then"),Ve=De(me,"else");if(!Te&&!Ve)return;const ze=Ee.let("valid",!0),vt=Ee.name("_valid");if(function Re(){const de=pe.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},vt);pe.mergeEvaluated(de)}(),pe.reset(),Te&&Ve){const de=Ee.let("ifClause");pe.setParams({ifClause:de}),Ee.if(vt,tt("then",de),tt("else",de))}else Te?Ee.if(vt,tt("then")):Ee.if((0,g.not)(vt),tt("else"));function tt(de,Fe){return()=>{const _t=pe.subschema({keyword:de},vt);Ee.assign(ze,vt),pe.mergeValidEvaluated(_t,ze),Fe?Ee.assign(Fe,g._`${de}`):pe.setParams({ifClause:de})}}pe.pass(ze,()=>pe.error(!0))}}},4390:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(3901),o=F(5366),V=F(5434),oe=F(9098),De=F(3937),pe=F(5133),Ee=F(485),be=F(0),me=F(9537),Te=F(1145),Ve=F(1039),ze=F(2453),vt=F(1263),Re=F(4760),tt=F(4779),de=F(7142);J.default=function Fe(_t=!1){const at=[Ve.default,ze.default,vt.default,Re.default,tt.default,de.default,Ee.default,be.default,pe.default,me.default,Te.default];return _t?at.push(o.default,oe.default):at.push(g.default,V.default),at.push(De.default),at}},5434:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateTuple=void 0;const g=F(6033),o=F(9455),V=F(4737),oe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(pe){const{schema:Ee,it:be}=pe;if(Array.isArray(Ee))return De(pe,"additionalItems",Ee);be.items=!0,!(0,o.alwaysValidSchema)(be,Ee)&&pe.ok((0,V.validateArray)(pe))}};function De(pe,Ee,be=pe.schema){const{gen:me,parentSchema:Te,data:Ve,keyword:ze,it:vt}=pe;(function de(Fe){const{opts:_t,errSchemaPath:at}=vt,Be=be.length;_t.strictTuples&&!(Be===Fe.minItems&&(Be===Fe.maxItems||!1===Fe[Ee]))&&(0,o.checkStrictMode)(vt,`"${ze}" is ${Be}-tuple, but minItems or maxItems/${Ee} are not specified or different at path "${at}"`,_t.strictTuples)})(Te),vt.opts.unevaluated&&be.length&&!0!==vt.items&&(vt.items=o.mergeEvaluated.items(me,be.length,vt.items));const Re=me.name("valid"),tt=me.const("len",g._`${Ve}.length`);be.forEach((Fe,_t)=>{(0,o.alwaysValidSchema)(vt,Fe)||(me.if(g._`${tt} > ${_t}`,()=>pe.subschema({keyword:ze,schemaProp:_t,dataProp:_t},Re)),pe.ok(Re))})}J.validateTuple=De,J.default=oe},9098:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455),V=F(4737),oe=F(3901);J.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:Ee}})=>g.str`must NOT have more than ${Ee} items`,params:({params:{len:Ee}})=>g._`{limit: ${Ee}}`},code(Ee){const{schema:be,parentSchema:me,it:Te}=Ee,{prefixItems:Ve}=me;Te.items=!0,!(0,o.alwaysValidSchema)(Te,be)&&(Ve?(0,oe.validateAdditionalItems)(Ee,Ve):Ee.ok((0,V.validateArray)(Ee)))}}},1039:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(9455);J.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(V){const{gen:oe,schema:De,it:pe}=V;if((0,g.alwaysValidSchema)(pe,De))return void V.fail();const Ee=oe.name("valid");V.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},Ee),V.failResult(Ee,()=>V.reset(),()=>V.error())},error:{message:"must NOT be valid"}}},1263:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455);J.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:De})=>g._`{passingSchemas: ${De.passing}}`},code(De){const{gen:pe,schema:Ee,parentSchema:be,it:me}=De;if(!Array.isArray(Ee))throw new Error("ajv implementation error");if(me.opts.discriminator&&be.discriminator)return;const Te=Ee,Ve=pe.let("valid",!1),ze=pe.let("passing",null),vt=pe.name("_valid");De.setParams({passing:ze}),pe.block(function Re(){Te.forEach((tt,de)=>{let Fe;(0,o.alwaysValidSchema)(me,tt)?pe.var(vt,!0):Fe=De.subschema({keyword:"oneOf",schemaProp:de,compositeRule:!0},vt),de>0&&pe.if(g._`${vt} && ${Ve}`).assign(Ve,!1).assign(ze,g._`[${ze}, ${de}]`).else(),pe.if(vt,()=>{pe.assign(Ve,!0),pe.assign(ze,de),Fe&&De.mergeEvaluated(Fe,g.Name)})})}),De.result(Ve,()=>De.reset(),()=>De.error(!0))}}},1145:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(4737),o=F(6033),V=F(9455),oe=F(9455);J.default={keyword:"patternProperties",type:"object",schemaType:"object",code(pe){const{gen:Ee,schema:be,data:me,parentSchema:Te,it:Ve}=pe,{opts:ze}=Ve,vt=(0,g.allSchemaProperties)(be),Re=vt.filter(he=>(0,V.alwaysValidSchema)(Ve,be[he]));if(0===vt.length||Re.length===vt.length&&(!Ve.opts.unevaluated||!0===Ve.props))return;const tt=ze.strictSchema&&!ze.allowMatchingProperties&&Te.properties,de=Ee.name("valid");!0!==Ve.props&&!(Ve.props instanceof o.Name)&&(Ve.props=(0,oe.evaluatedPropsToName)(Ee,Ve.props));const{props:Fe}=Ve;function at(he){for(const He in tt)new RegExp(he).test(He)&&(0,V.checkStrictMode)(Ve,`property ${He} matches pattern ${he} (use allowMatchingProperties)`)}function Be(he){Ee.forIn("key",me,He=>{Ee.if(o._`${(0,g.usePattern)(pe,he)}.test(${He})`,()=>{const Se=Re.includes(he);Se||pe.subschema({keyword:"patternProperties",schemaProp:he,dataProp:He,dataPropType:oe.Type.Str},de),Ve.opts.unevaluated&&!0!==Fe?Ee.assign(o._`${Fe}[${He}]`,!0):!Se&&!Ve.allErrors&&Ee.if((0,o.not)(de),()=>Ee.break())})})}!function _t(){for(const he of vt)tt&&at(he),Ve.allErrors?Be(he):(Ee.var(de,!0),Be(he),Ee.if(de))}()}}},5366:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(5434);J.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:V=>(0,g.validateTuple)(V,"items")}},9537:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6038),o=F(4737),V=F(9455),oe=F(0);J.default={keyword:"properties",type:"object",schemaType:"object",code(pe){const{gen:Ee,schema:be,parentSchema:me,data:Te,it:Ve}=pe;"all"===Ve.opts.removeAdditional&&void 0===me.additionalProperties&&oe.default.code(new g.KeywordCxt(Ve,oe.default,"additionalProperties"));const ze=(0,o.allSchemaProperties)(be);for(const Fe of ze)Ve.definedProperties.add(Fe);Ve.opts.unevaluated&&ze.length&&!0!==Ve.props&&(Ve.props=V.mergeEvaluated.props(Ee,(0,V.toHash)(ze),Ve.props));const vt=ze.filter(Fe=>!(0,V.alwaysValidSchema)(Ve,be[Fe]));if(0===vt.length)return;const Re=Ee.name("valid");for(const Fe of vt)tt(Fe)?de(Fe):(Ee.if((0,o.propertyInData)(Ee,Te,Fe,Ve.opts.ownProperties)),de(Fe),Ve.allErrors||Ee.else().var(Re,!0),Ee.endIf()),pe.it.definedProperties.add(Fe),pe.ok(Re);function tt(Fe){return Ve.opts.useDefaults&&!Ve.compositeRule&&void 0!==be[Fe].default}function de(Fe){pe.subschema({keyword:"properties",schemaProp:Fe,dataProp:Fe},Re)}}}},485:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455);J.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:De})=>g._`{propertyName: ${De.propertyName}}`},code(De){const{gen:pe,schema:Ee,data:be,it:me}=De;if((0,o.alwaysValidSchema)(me,Ee))return;const Te=pe.name("valid");pe.forIn("key",be,Ve=>{De.setParams({propertyName:Ve}),De.subschema({keyword:"propertyNames",data:Ve,dataTypes:["string"],propertyName:Ve,compositeRule:!0},Te),pe.if((0,g.not)(Te),()=>{De.error(!0),me.allErrors||pe.break()})}),De.ok(Te)}}},7142:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(9455);J.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:V,parentSchema:oe,it:De}){void 0===oe.if&&(0,g.checkStrictMode)(De,`"${V}" without "if" is ignored`)}}},4737:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.validateUnion=J.validateArray=J.usePattern=J.callValidateCode=J.schemaProperties=J.allSchemaProperties=J.noPropertyInData=J.propertyInData=J.isOwnProperty=J.hasPropFunc=J.reportMissingProp=J.checkMissingProp=J.checkReportMissingProp=void 0;const g=F(6033),o=F(9455),V=F(395),oe=F(9455);function be(at){return at.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:g._`Object.prototype.hasOwnProperty`})}function me(at,Be,he){return g._`${be(at)}.call(${Be}, ${he})`}function Ve(at,Be,he,He){const Se=g._`${Be}${(0,g.getProperty)(he)} === undefined`;return He?(0,g.or)(Se,(0,g.not)(me(at,Be,he))):Se}function ze(at){return at?Object.keys(at).filter(Be=>"__proto__"!==Be):[]}J.checkReportMissingProp=function De(at,Be){const{gen:he,data:He,it:Se}=at;he.if(Ve(he,He,Be,Se.opts.ownProperties),()=>{at.setParams({missingProperty:g._`${Be}`},!0),at.error()})},J.checkMissingProp=function pe({gen:at,data:Be,it:{opts:he}},He,Se){return(0,g.or)(...He.map(it=>(0,g.and)(Ve(at,Be,it,he.ownProperties),g._`${Se} = ${it}`)))},J.reportMissingProp=function Ee(at,Be){at.setParams({missingProperty:Be},!0),at.error()},J.hasPropFunc=be,J.isOwnProperty=me,J.propertyInData=function Te(at,Be,he,He){const Se=g._`${Be}${(0,g.getProperty)(he)} !== undefined`;return He?g._`${Se} && ${me(at,Be,he)}`:Se},J.noPropertyInData=Ve,J.allSchemaProperties=ze,J.schemaProperties=function vt(at,Be){return ze(Be).filter(he=>!(0,o.alwaysValidSchema)(at,Be[he]))},J.callValidateCode=function Re({schemaCode:at,data:Be,it:{gen:he,topSchemaRef:He,schemaPath:Se,errorPath:it},it:dt},jt,Wt,wn){const Wn=wn?g._`${at}, ${Be}, ${He}${Se}`:Be,di=[[V.default.instancePath,(0,g.strConcat)(V.default.instancePath,it)],[V.default.parentData,dt.parentData],[V.default.parentDataProperty,dt.parentDataProperty],[V.default.rootData,V.default.rootData]];dt.opts.dynamicRef&&di.push([V.default.dynamicAnchors,V.default.dynamicAnchors]);const ai=g._`${Wn}, ${he.object(...di)}`;return Wt!==g.nil?g._`${jt}.call(${Wt}, ${ai})`:g._`${jt}(${ai})`};const tt=g._`new RegExp`;J.usePattern=function de({gen:at,it:{opts:Be}},he){const He=Be.unicodeRegExp?"u":"",{regExp:Se}=Be.code,it=Se(he,He);return at.scopeValue("pattern",{key:it.toString(),ref:it,code:g._`${"new RegExp"===Se.code?tt:(0,oe.useFunc)(at,Se)}(${he}, ${He})`})},J.validateArray=function Fe(at){const{gen:Be,data:he,keyword:He,it:Se}=at,it=Be.name("valid");if(Se.allErrors){const jt=Be.let("valid",!0);return dt(()=>Be.assign(jt,!1)),jt}return Be.var(it,!0),dt(()=>Be.break()),it;function dt(jt){const Wt=Be.const("len",g._`${he}.length`);Be.forRange("i",0,Wt,wn=>{at.subschema({keyword:He,dataProp:wn,dataPropType:o.Type.Num},it),Be.if((0,g.not)(it),jt)})}},J.validateUnion=function _t(at){const{gen:Be,schema:he,keyword:He,it:Se}=at;if(!Array.isArray(he))throw new Error("ajv implementation error");if(he.some(Wt=>(0,o.alwaysValidSchema)(Se,Wt))&&!Se.opts.unevaluated)return;const dt=Be.let("valid",!1),jt=Be.name("_valid");Be.block(()=>he.forEach((Wt,wn)=>{const Wn=at.subschema({keyword:He,schemaProp:wn,compositeRule:!0},jt);Be.assign(dt,g._`${dt} || ${jt}`),at.mergeValidEvaluated(Wn,jt)||Be.if((0,g.not)(dt))})),at.result(dt,()=>at.reset(),()=>at.error(!0))}},307:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.default={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},6551:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(307),o=F(8809);J.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",g.default,o.default]},8809:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.callRef=J.getValidate=void 0;const g=F(3115),o=F(4737),V=F(6033),oe=F(395),De=F(2431),pe=F(9455),Ee={keyword:"$ref",schemaType:"string",code(Te){const{gen:Ve,schema:ze,it:vt}=Te,{baseId:Re,schemaEnv:tt,validateName:de,opts:Fe,self:_t}=vt,{root:at}=tt;if(("#"===ze||"#/"===ze)&&Re===at.baseId)return function he(){if(tt===at)return me(Te,de,tt,tt.$async);const it=Ve.scopeValue("root",{ref:at});return me(Te,V._`${it}.validate`,at,at.$async)}();const Be=De.resolveRef.call(_t,at,Re,ze);if(void 0===Be)throw new g.default(vt.opts.uriResolver,Re,ze);return Be instanceof De.SchemaEnv?function He(it){const dt=be(Te,it);me(Te,dt,it,it.$async)}(Be):function Se(it){const dt=Ve.scopeValue("schema",!0===Fe.code.source?{ref:it,code:(0,V.stringify)(it)}:{ref:it}),jt=Ve.name("valid"),Wt=Te.subschema({schema:it,dataTypes:[],schemaPath:V.nil,topSchemaRef:dt,errSchemaPath:ze},jt);Te.mergeEvaluated(Wt),Te.ok(jt)}(Be)}};function be(Te,Ve){const{gen:ze}=Te;return Ve.validate?ze.scopeValue("validate",{ref:Ve.validate}):V._`${ze.scopeValue("wrapper",{ref:Ve})}.validate`}function me(Te,Ve,ze,vt){const{gen:Re,it:tt}=Te,{allErrors:de,schemaEnv:Fe,opts:_t}=tt,at=_t.passContext?oe.default.this:V.nil;function He(it){const dt=V._`${it}.errors`;Re.assign(oe.default.vErrors,V._`${oe.default.vErrors} === null ? ${dt} : ${oe.default.vErrors}.concat(${dt})`),Re.assign(oe.default.errors,V._`${oe.default.vErrors}.length`)}function Se(it){var dt;if(!tt.opts.unevaluated)return;const jt=null===(dt=ze?.validate)||void 0===dt?void 0:dt.evaluated;if(!0!==tt.props)if(jt&&!jt.dynamicProps)void 0!==jt.props&&(tt.props=pe.mergeEvaluated.props(Re,jt.props,tt.props));else{const Wt=Re.var("props",V._`${it}.evaluated.props`);tt.props=pe.mergeEvaluated.props(Re,Wt,tt.props,V.Name)}if(!0!==tt.items)if(jt&&!jt.dynamicItems)void 0!==jt.items&&(tt.items=pe.mergeEvaluated.items(Re,jt.items,tt.items));else{const Wt=Re.var("items",V._`${it}.evaluated.items`);tt.items=pe.mergeEvaluated.items(Re,Wt,tt.items,V.Name)}}vt?function Be(){if(!Fe.$async)throw new Error("async schema referenced by sync schema");const it=Re.let("valid");Re.try(()=>{Re.code(V._`await ${(0,o.callValidateCode)(Te,Ve,at)}`),Se(Ve),de||Re.assign(it,!0)},dt=>{Re.if(V._`!(${dt} instanceof ${tt.ValidationError})`,()=>Re.throw(dt)),He(dt),de||Re.assign(it,!1)}),Te.ok(it)}():function he(){Te.result((0,o.callValidateCode)(Te,Ve,at),()=>Se(Ve),()=>He(Ve))}()}J.getValidate=be,J.callRef=me,J.default=Ee},3121:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(5952),V=F(2431),oe=F(9455);J.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:Ee,tagName:be}})=>Ee===o.DiscrError.Tag?`tag "${be}" must be string`:`value of tag "${be}" must be in oneOf`,params:({params:{discrError:Ee,tag:be,tagName:me}})=>g._`{error: ${Ee}, tag: ${me}, tagValue: ${be}}`},code(Ee){const{gen:be,data:me,schema:Te,parentSchema:Ve,it:ze}=Ee,{oneOf:vt}=Ve;if(!ze.opts.discriminator)throw new Error("discriminator: requires discriminator option");const Re=Te.propertyName;if("string"!=typeof Re)throw new Error("discriminator: requires propertyName");if(Te.mapping)throw new Error("discriminator: mapping is not supported");if(!vt)throw new Error("discriminator: requires oneOf keyword");const tt=be.let("valid",!1),de=be.const("tag",g._`${me}${(0,g.getProperty)(Re)}`);function _t(Be){const he=be.name("valid"),He=Ee.subschema({keyword:"oneOf",schemaProp:Be},he);return Ee.mergeEvaluated(He,g.Name),he}be.if(g._`typeof ${de} == "string"`,()=>function Fe(){const Be=function at(){var Be;const he={},He=it(Ve);let Se=!0;for(let Wt=0;WtEe.error(!1,{discrError:o.DiscrError.Tag,tag:de,tagName:Re})),Ee.ok(tt)}}},5952:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.DiscrError=void 0;var F=function(g){return g.Tag="tag",g.Mapping="mapping",g}(F||(J.DiscrError=F={}))},7540:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6551),o=F(9208),V=F(4390),oe=F(5248),De=F(8349),pe=[g.default,o.default,(0,V.default)(),oe.default,De.metadataVocabulary,De.contentVocabulary];J.default=pe},7381:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033);J.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:oe})=>g.str`must match format "${oe}"`,params:({schemaCode:oe})=>g._`{format: ${oe}}`},code(oe,De){const{gen:pe,data:Ee,$data:be,schema:me,schemaCode:Te,it:Ve}=oe,{opts:ze,errSchemaPath:vt,schemaEnv:Re,self:tt}=Ve;ze.validateFormats&&(be?function de(){const _t=pe.scopeValue("formats",{ref:tt.formats,code:ze.code.formats}),at=pe.const("fDef",g._`${_t}[${Te}]`),Be=pe.let("fType"),he=pe.let("format");pe.if(g._`typeof ${at} == "object" && !(${at} instanceof RegExp)`,()=>pe.assign(Be,g._`${at}.type || "string"`).assign(he,g._`${at}.validate`),()=>pe.assign(Be,g._`"string"`).assign(he,at)),oe.fail$data((0,g.or)(function He(){return!1===ze.strictSchema?g.nil:g._`${Te} && !${he}`}(),function Se(){const it=Re.$async?g._`(${at}.async ? await ${he}(${Ee}) : ${he}(${Ee}))`:g._`${he}(${Ee})`,dt=g._`(typeof ${he} == "function" ? ${it} : ${he}.test(${Ee}))`;return g._`${he} && ${he} !== true && ${Be} === ${De} && !${dt}`}()))}():function Fe(){const _t=tt.formats[me];if(!_t)return void function He(){if(!1!==ze.strictSchema)throw new Error(dt());function dt(){return`unknown format "${me}" ignored in schema at path "${vt}"`}tt.logger.warn(dt())}();if(!0===_t)return;const[at,Be,he]=function Se(dt){const jt=dt instanceof RegExp?(0,g.regexpCode)(dt):ze.code.formats?g._`${ze.code.formats}${(0,g.getProperty)(me)}`:void 0,Wt=pe.scopeValue("formats",{key:me,ref:dt,code:jt});return"object"!=typeof dt||dt instanceof RegExp?["string",dt,Wt]:[dt.type||"string",dt.validate,g._`${Wt}.validate`]}(_t);at===De&&oe.pass(function it(){if("object"==typeof _t&&!(_t instanceof RegExp)&&_t.async){if(!Re.$async)throw new Error("async format in sync schema");return g._`await ${he}(${Ee})`}return"function"==typeof Be?g._`${he}(${Ee})`:g._`${he}.test(${Ee})`}())}())}}},5248:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const o=[F(7381).default];J.default=o},8349:(vn,J)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.contentVocabulary=J.metadataVocabulary=void 0,J.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],J.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},4131:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455),V=F(7494);J.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:pe})=>g._`{allowedValue: ${pe}}`},code(pe){const{gen:Ee,data:be,$data:me,schemaCode:Te,schema:Ve}=pe;me||Ve&&"object"==typeof Ve?pe.fail$data(g._`!${(0,o.useFunc)(Ee,V.default)}(${be}, ${Te})`):pe.fail(g._`${Ve} !== ${be}`)}}},4407:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455),V=F(7494);J.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:pe})=>g._`{allowedValues: ${pe}}`},code(pe){const{gen:Ee,data:be,$data:me,schema:Te,schemaCode:Ve,it:ze}=pe;if(!me&&0===Te.length)throw new Error("enum must have non-empty array");let Re;const tt=()=>Re??(Re=(0,o.useFunc)(Ee,V.default));let de;if(Te.length>=ze.opts.loopEnum||me)de=Ee.let("valid"),pe.block$data(de,function Fe(){Ee.assign(de,!1),Ee.forOf("v",Ve,at=>Ee.if(g._`${tt()}(${be}, ${at})`,()=>Ee.assign(de,!0).break()))});else{if(!Array.isArray(Te))throw new Error("ajv implementation error");const at=Ee.const("vSchema",Ve);de=(0,g.or)(...Te.map((Be,he)=>function _t(at,Be){const he=Te[Be];return"object"==typeof he&&null!==he?g._`${tt()}(${be}, ${at}[${Be}])`:g._`${be} === ${he}`}(at,he)))}pe.pass(de)}}},9208:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(7662),o=F(5667),V=F(23),oe=F(5218),De=F(4090),pe=F(9767),Ee=F(6911),be=F(5949),me=F(4131),Te=F(4407);J.default=[g.default,o.default,V.default,oe.default,De.default,pe.default,Ee.default,be.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},me.default,Te.default]},6911:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033);J.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:oe,schemaCode:De})=>g.str`must NOT have ${"maxItems"===oe?"more":"fewer"} than ${De} items`,params:({schemaCode:oe})=>g._`{limit: ${oe}}`},code(oe){const{keyword:De,data:pe,schemaCode:Ee}=oe;oe.fail$data(g._`${pe}.length ${"maxItems"===De?g.operators.GT:g.operators.LT} ${Ee}`)}}},23:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=F(9455),V=F(5033);J.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:pe,schemaCode:Ee})=>g.str`must NOT have ${"maxLength"===pe?"more":"fewer"} than ${Ee} characters`,params:({schemaCode:pe})=>g._`{limit: ${pe}}`},code(pe){const{keyword:Ee,data:be,schemaCode:me,it:Te}=pe,Ve="maxLength"===Ee?g.operators.GT:g.operators.LT,ze=!1===Te.opts.unicode?g._`${be}.length`:g._`${(0,o.useFunc)(pe.gen,V.default)}(${be})`;pe.fail$data(g._`${ze} ${Ve} ${me}`)}}},7662:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033),o=g.operators,V={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},oe={message:({keyword:pe,schemaCode:Ee})=>g.str`must be ${V[pe].okStr} ${Ee}`,params:({keyword:pe,schemaCode:Ee})=>g._`{comparison: ${V[pe].okStr}, limit: ${Ee}}`},De={keyword:Object.keys(V),type:"number",schemaType:"number",$data:!0,error:oe,code(pe){const{keyword:Ee,data:be,schemaCode:me}=pe;pe.fail$data(g._`${be} ${V[Ee].fail} ${me} || isNaN(${be})`)}};J.default=De},4090:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033);J.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:oe,schemaCode:De})=>g.str`must NOT have ${"maxProperties"===oe?"more":"fewer"} than ${De} properties`,params:({schemaCode:oe})=>g._`{limit: ${oe}}`},code(oe){const{keyword:De,data:pe,schemaCode:Ee}=oe;oe.fail$data(g._`Object.keys(${pe}).length ${"maxProperties"===De?g.operators.GT:g.operators.LT} ${Ee}`)}}},5667:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(6033);J.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:oe})=>g.str`must be multiple of ${oe}`,params:({schemaCode:oe})=>g._`{multipleOf: ${oe}}`},code(oe){const{gen:De,data:pe,schemaCode:Ee,it:be}=oe,me=be.opts.multipleOfPrecision,Te=De.let("res"),Ve=me?g._`Math.abs(Math.round(${Te}) - ${Te}) > 1e-${me}`:g._`${Te} !== parseInt(${Te})`;oe.fail$data(g._`(${Ee} === 0 || (${Te} = ${pe}/${Ee}, ${Ve}))`)}}},5218:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(4737),o=F(6033);J.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:De})=>o.str`must match pattern "${De}"`,params:({schemaCode:De})=>o._`{pattern: ${De}}`},code(De){const{data:pe,$data:Ee,schema:be,schemaCode:me,it:Te}=De,ze=Ee?o._`(new RegExp(${me}, ${Te.opts.unicodeRegExp?"u":""}))`:(0,g.usePattern)(De,be);De.fail$data(o._`!${ze}.test(${pe})`)}}},9767:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(4737),o=F(6033),V=F(9455);J.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:pe}})=>o.str`must have required property '${pe}'`,params:({params:{missingProperty:pe}})=>o._`{missingProperty: ${pe}}`},code(pe){const{gen:Ee,schema:be,schemaCode:me,data:Te,$data:Ve,it:ze}=pe,{opts:vt}=ze;if(!Ve&&0===be.length)return;const Re=be.length>=vt.loopRequired;if(ze.allErrors?function tt(){if(Re||Ve)pe.block$data(o.nil,Fe);else for(const at of be)(0,g.checkReportMissingProp)(pe,at)}():function de(){const at=Ee.let("missing");if(Re||Ve){const Be=Ee.let("valid",!0);pe.block$data(Be,()=>function _t(at,Be){pe.setParams({missingProperty:at}),Ee.forOf(at,me,()=>{Ee.assign(Be,(0,g.propertyInData)(Ee,Te,at,vt.ownProperties)),Ee.if((0,o.not)(Be),()=>{pe.error(),Ee.break()})},o.nil)}(at,Be)),pe.ok(Be)}else Ee.if((0,g.checkMissingProp)(pe,be,at)),(0,g.reportMissingProp)(pe,at),Ee.else()}(),vt.strictRequired){const at=pe.parentSchema.properties,{definedProperties:Be}=pe.it;for(const he of be)void 0!==at?.[he]||Be.has(he)||(0,V.checkStrictMode)(ze,`required property "${he}" is not defined at "${ze.schemaEnv.baseId+ze.errSchemaPath}" (strictRequired)`,ze.opts.strictRequired)}function Fe(){Ee.forOf("prop",me,at=>{pe.setParams({missingProperty:at}),Ee.if((0,g.noPropertyInData)(Ee,Te,at,vt.ownProperties),()=>pe.error())})}}}},5949:(vn,J,F)=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});const g=F(5404),o=F(6033),V=F(9455),oe=F(7494);J.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:Ee,j:be}})=>o.str`must NOT have duplicate items (items ## ${be} and ${Ee} are identical)`,params:({params:{i:Ee,j:be}})=>o._`{i: ${Ee}, j: ${be}}`},code(Ee){const{gen:be,data:me,$data:Te,schema:Ve,parentSchema:ze,schemaCode:vt,it:Re}=Ee;if(!Te&&!Ve)return;const tt=be.let("valid"),de=ze.items?(0,g.getSchemaTypes)(ze.items):[];function at(he,He){const Se=be.name("item"),it=(0,g.checkDataTypes)(de,Se,Re.opts.strictNumbers,g.DataType.Wrong),dt=be.const("indices",o._`{}`);be.for(o._`;${he}--;`,()=>{be.let(Se,o._`${me}[${he}]`),be.if(it,o._`continue`),de.length>1&&be.if(o._`typeof ${Se} == "string"`,o._`${Se} += "_"`),be.if(o._`typeof ${dt}[${Se}] == "number"`,()=>{be.assign(He,o._`${dt}[${Se}]`),Ee.error(),be.assign(tt,!1).break()}).code(o._`${dt}[${Se}] = ${he}`)})}function Be(he,He){const Se=(0,V.useFunc)(be,oe.default),it=be.name("outer");be.label(it).for(o._`;${he}--;`,()=>be.for(o._`${He} = ${he}; ${He}--;`,()=>be.if(o._`${Se}(${me}[${he}], ${me}[${He}])`,()=>{Ee.error(),be.assign(tt,!1).break(it)})))}Ee.block$data(tt,function Fe(){const he=be.let("i",o._`${me}.length`),He=be.let("j");Ee.setParams({i:he,j:He}),be.assign(tt,!0),be.if(o._`${he} > 1`,()=>(function _t(){return de.length>0&&!de.some(he=>"object"===he||"array"===he)}()?at:Be)(he,He))},o._`${vt} === false`),Ee.ok(tt)}}},7413:vn=>{"use strict";vn.exports=function J(F,g){if(F===g)return!0;if(F&&g&&"object"==typeof F&&"object"==typeof g){if(F.constructor!==g.constructor)return!1;var o,V,oe;if(Array.isArray(F)){if((o=F.length)!=g.length)return!1;for(V=o;0!=V--;)if(!J(F[V],g[V]))return!1;return!0}if(F.constructor===RegExp)return F.source===g.source&&F.flags===g.flags;if(F.valueOf!==Object.prototype.valueOf)return F.valueOf()===g.valueOf();if(F.toString!==Object.prototype.toString)return F.toString()===g.toString();if((o=(oe=Object.keys(F)).length)!==Object.keys(g).length)return!1;for(V=o;0!=V--;)if(!Object.prototype.hasOwnProperty.call(g,oe[V]))return!1;for(V=o;0!=V--;){var De=oe[V];if(!J(F[De],g[De]))return!1}return!0}return F!=F&&g!=g}},9833:(vn,J)=>{!function(F){"use strict";function g(qe){return null!==qe&&"[object Array]"===Object.prototype.toString.call(qe)}function o(qe){return null!==qe&&"[object Object]"===Object.prototype.toString.call(qe)}function V(qe,Mt){if(qe===Mt)return!0;if(Object.prototype.toString.call(qe)!==Object.prototype.toString.call(Mt))return!1;if(!0===g(qe)){if(qe.length!==Mt.length)return!1;for(var hn=0;hn",9:"Array"},Be="UnquotedIdentifier",he="QuotedIdentifier",He="Rbracket",Se="Rparen",it="Comma",dt="Colon",jt="Rbrace",Wt="Number",wn="Current",Wn="Expref",di="Pipe",dn="GTE",nt="LTE",Je="Flatten",Ae="Star",Ue="Filter",Ze="Dot",H="Not",te="Lbrace",xe="Lbracket",Ce="Lparen",zt="Literal",rt={".":Ze,"*":Ae,",":it,":":dt,"{":te,"}":jt,"]":He,"(":Ce,")":Se,"@":wn},xt={"<":!0,">":!0,"=":!0,"!":!0},Gt={" ":!0,"\t":!0,"\n":!0};function xn(qe){return qe>="a"&&qe<="z"||qe>="A"&&qe<="Z"||"_"===qe}function In(qe){return qe>="0"&&qe<="9"||"-"===qe}function xi(qe){return qe>="a"&&qe<="z"||qe>="A"&&qe<="Z"||qe>="0"&&qe<="9"||"_"===qe}function or(){}or.prototype={tokenize:function(qe){var Bt,hn,Mn,Mt=[];for(this._current=0;this._current"===Bt?"="===qe[this._current]?(this._current++,{type:dn,value:">=",start:Mt}):{type:"GT",value:">",start:Mt}:"="===Bt&&"="===qe[this._current]?(this._current++,{type:"EQ",value:"==",start:Mt}):void 0},_consumeLiteral:function(qe){this._current++;for(var hn,Mt=this._current,Bt=qe.length;"`"!==qe[this._current]&&this._current=0)return!0;if(["true","false","null"].indexOf(qe)>=0)return!0;if(!("-0123456789".indexOf(qe[0])>=0))return!1;try{return JSON.parse(qe),!0}catch{return!1}}};var ci={};function Dr(){}function Tr(qe){this.runtime=qe}function cn(qe){this._interpreter=qe,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[be]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[be]}]},contains:{_func:this._functionContains,_signature:[{types:[Te,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[Te]},{types:[Te]}]},floor:{_func:this._functionFloor,_signature:[{types:[be]}]},length:{_func:this._functionLength,_signature:[{types:[Te,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[Te]},{types:[Te]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[Te]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[Te,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}ci.EOF=0,ci[Be]=0,ci[he]=0,ci[He]=0,ci[Se]=0,ci[it]=0,ci[jt]=0,ci[Wt]=0,ci[wn]=0,ci[Wn]=0,ci[di]=1,ci.Or=2,ci.And=3,ci.EQ=5,ci.GT=5,ci.LT=5,ci[dn]=5,ci[nt]=5,ci.NE=5,ci[Je]=9,ci[Ae]=20,ci[Ue]=21,ci[Ze]=40,ci[H]=45,ci[te]=50,ci[xe]=55,ci[Ce]=60,Dr.prototype={parse:function(qe){this._loadTokens(qe),this.index=0;var Mt=this.expression(0);if("EOF"!==this._lookahead(0)){var Bt=this._lookaheadToken(0),hn=new Error("Unexpected token type: "+Bt.type+", value: "+Bt.value);throw hn.name="ParserError",hn}return Mt},_loadTokens:function(qe){var Bt=(new or).tokenize(qe);Bt.push({type:"EOF",value:"",start:qe.length}),this.tokens=Bt},expression:function(qe){var Mt=this._lookaheadToken(0);this._advance();for(var Bt=this.nud(Mt),hn=this._lookahead(0);qe=0?this.expression(qe):Mt===xe?(this._match(xe),this._parseMultiselectList()):Mt===te?(this._match(te),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(qe){var Mt;if(ci[this._lookahead(0)]<10)Mt={type:"Identity"};else if(this._lookahead(0)===xe)Mt=this.expression(qe);else if(this._lookahead(0)===Ue)Mt=this.expression(qe);else{if(this._lookahead(0)!==Ze){var Bt=this._lookaheadToken(0),hn=new Error("Sytanx error, unexpected token: "+Bt.value+"("+Bt.type+")");throw hn.name="ParserError",hn}this._match(Ze),Mt=this._parseDotRHS(qe)}return Mt},_parseMultiselectList:function(){for(var qe=[];this._lookahead(0)!==He;){var Mt=this.expression(0);if(qe.push(Mt),this._lookahead(0)===it&&(this._match(it),this._lookahead(0)===He))throw new Error("Unexpected token Rbracket")}return this._match(He),{type:"MultiSelectList",children:qe}},_parseMultiselectHash:function(){for(var Bt,hn,Mn,qe=[],Mt=[Be,he];;){if(Bt=this._lookaheadToken(0),Mt.indexOf(Bt.type)<0)throw new Error("Expecting an identifier token, got: "+Bt.type);if(hn=Bt.value,this._advance(),this._match(dt),Mn=this.expression(0),qe.push({type:"KeyValuePair",name:hn,value:Mn}),this._lookahead(0)===it)this._match(it);else if(this._lookahead(0)===jt){this._match(jt);break}}return{type:"MultiSelectHash",children:qe}}},Tr.prototype={search:function(qe,Mt){return this.visit(qe,Mt)},visit:function(qe,Mt){var Bt,hn,Mn,Vi,ni,Qi,dr,Jr,Ki;switch(qe.type){case"Field":return null!==Mt&&o(Mt)?void 0===(Qi=Mt[qe.name])?null:Qi:null;case"Subexpression":for(Mn=this.visit(qe.children[0],Mt),Ki=1;Ki0)for(Ki=qa;Kixc;Ki+=mo)Mn.push(Mt[Ki]);return Mn;case"Projection":var Ss=this.visit(qe.children[0],Mt);if(!g(Ss))return null;for(Jr=[],Ki=0;Kini;break;case dn:Mn=Vi>=ni;break;case"LT":Mn=Vi=qe&&(Mt=Bt<0?qe-1:qe),Mt}},cn.prototype={callFunction:function(qe,Mt){var Bt=this.functionTable[qe];if(void 0===Bt)throw new Error("Unknown function: "+qe+"()");return this._validateArgs(qe,Mt,Bt._signature),Bt._func.call(this,Mt)},_validateArgs:function(qe,Mt,Bt){var hn;if(Bt[Bt.length-1].variadic){if(Mt.length=0;Mn--)hn+=Bt[Mn];return hn}var Vi=qe[0].slice(0);return Vi.reverse(),Vi},_functionAbs:function(qe){return Math.abs(qe[0])},_functionCeil:function(qe){return Math.ceil(qe[0])},_functionAvg:function(qe){for(var Mt=0,Bt=qe[0],hn=0;hn=0},_functionFloor:function(qe){return Math.floor(qe[0])},_functionLength:function(qe){return o(qe[0])?Object.keys(qe[0]).length:qe[0].length},_functionMap:function(qe){for(var Mt=[],Bt=this._interpreter,hn=qe[0],Mn=qe[1],Vi=0;Vi0){if(this._getTypeName(qe[0][0])===be)return Math.max.apply(Math,qe[0]);for(var Bt=qe[0],hn=Bt[0],Mn=1;Mn0){if(this._getTypeName(qe[0][0])===be)return Math.min.apply(Math,qe[0]);for(var Bt=qe[0],hn=Bt[0],Mn=1;MnYs?1:KiMn&&(Mn=ni,Vi=Bt[Qi]);return Vi},_functionMinBy:function(qe){for(var Vi,ni,Bt=qe[0],hn=this.createKeyFunction(qe[1],[be,Te]),Mn=1/0,Qi=0;Qi{"use strict";var J=vn.exports=function(o,V,oe){"function"==typeof V&&(oe=V,V={}),F(V,"function"==typeof(oe=V.cb||oe)?oe:oe.pre||function(){},oe.post||function(){},o,"",o)};function F(o,V,oe,De,pe,Ee,be,me,Te,Ve){if(De&&"object"==typeof De&&!Array.isArray(De)){for(var ze in V(De,pe,Ee,be,me,Te,Ve),De){var vt=De[ze];if(Array.isArray(vt)){if(ze in J.arrayKeywords)for(var Re=0;Re{"use strict";var F={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},g="a".charCodeAt();J.parse=function(Re,tt,de){var Fe={},_t=0,at=0,Be=0,he=de&&de.bigint&&typeof BigInt<"u";return{data:function He(Je,Ae){var Ue;Se(),$i(Je,"value");var Ze=Wn();switch(Ze){case"t":wn("rue"),Ue=!0;break;case"f":wn("alse"),Ue=!1;break;case"n":wn("ull"),Ue=null;break;case'"':Ue=it();break;case"[":Ue=function jt(Je){Se();var Ae=[],Ue=0;if("]"==Wn())return Ae;for(di();;){Ae.push(He(Je+"/"+Ue)),Se();var H=Wn();if("]"==H)break;","!=H&&nt(),Se(),Ue++}return Ae}(Je);break;case"{":Ue=function Wt(Je){Se();var Ae={};if("}"==Wn())return Ae;for(di();;){var Ue=ui();'"'!=Wn()&&nt();var Ze=it(),H=Je+"/"+vt(Ze);Hr(H,"key",Ue),$i(H,"keyEnd"),Se(),":"!=Wn()&&nt(),Se(),Ae[Ze]=He(H),Se();var te=Wn();if("}"==te)break;","!=te&&nt(),Se()}return Ae}(Je);break;default:di(),"-0123456789".indexOf(Ze)>=0?Ue=function dt(){var Je="",Ae=!0;"-"==Re[Be]&&(Je+=Wn()),Je+="0"==Re[Be]?Wn():Li(),"."==Re[Be]&&(Je+=Wn()+Li(),Ae=!1),("e"==Re[Be]||"E"==Re[Be])&&(Je+=Wn(),("+"==Re[Be]||"-"==Re[Be])&&(Je+=Wn()),Je+=Li(),Ae=!1);var Ue=+Je;return he&&Ae&&(Ue>Number.MAX_SAFE_INTEGER||Ue="a"&&Ue<="f"?Ae+=Ue.charCodeAt()-g+10:Ue>="0"&&Ue<="9"?Ae+=+Ue:nt()}return String.fromCharCode(Ae)}function Li(){for(var Je="";Re[Be]>="0"&&Re[Be]<="9";)Je+=Wn();if(Je.length)return Je;ht(),dn()}function $i(Je,Ae){Hr(Je,Ae,ui())}function Hr(Je,Ae,Ue){Fe[Je]=Fe[Je]||{},Fe[Je][Ae]=Ue}function ui(){return{line:_t,column:at,pos:Be}}function dn(){throw new SyntaxError("Unexpected token "+Re[Be]+" in JSON at position "+Be)}function nt(){di(),dn()}function ht(){if(Be>=Re.length)throw new SyntaxError("Unexpected end of JSON input")}},J.stringify=function(Re,tt,de){if(V(Re)){var _t,at,Fe=0,Be="object"==typeof de?de.space:de;switch(typeof Be){case"number":var he=Be>10?10:Be<0?0:Math.floor(Be);Be=he&&Hr(he," "),_t=he,at=he;break;case"string":Be=Be.slice(0,10),_t=0,at=0;for(var He=0;He=0}var oe=/"|\\/g,De=/[\b]/g,pe=/\f/g,Ee=/\n/g,be=/\r/g,me=/\t/g;function Te(Re){return'"'+(Re=Re.replace(oe,"\\$&").replace(pe,"\\f").replace(De,"\\b").replace(Ee,"\\n").replace(be,"\\r").replace(me,"\\t"))+'"'}var Ve=/~/g,ze=/\//g;function vt(Re){return Re.replace(Ve,"~0").replace(ze,"~1")}},6915:vn=>{var J=function(F,g){var o,V,oe=1,De=0,pe=0,Ee=String.alphabet;function be(me,Te,Ve){if(Ve){for(o=Te;(Ve=be(me,o))<76&&Ve>65;)++o;return+me.slice(Te-1,o)}return(Ve=Ee&&Ee.indexOf(me.charAt(Te)))>-1?Ve+76:(Ve=me.charCodeAt(Te)||0)<45||Ve>127?Ve:Ve<46?65:Ve<48?Ve-1:Ve<58?Ve+18:Ve<65?Ve-11:Ve<91?Ve+11:Ve<97?Ve-37:Ve<123?Ve+5:Ve-63}if((F+="")!=(g+=""))for(;oe;)if(V=be(F,De++),oe=be(g,pe++),V<76&&oe<76&&V>66&&oe>66&&(V=be(F,De,De),oe=be(g,pe,De=o),pe=o),V!=oe)return V{"use strict";F.d(J,{t:()=>o});var g=F(6104);class o extends g.B{constructor(oe){super(),this._value=oe}get value(){return this.getValue()}_subscribe(oe){const De=super._subscribe(oe);return!De.closed&&oe.next(this._value),De}getValue(){const{hasError:oe,thrownError:De,_value:pe}=this;if(oe)throw De;return this._throwIfClosed(),pe}next(oe){super.next(this._value=oe)}}},9406:(vn,J,F)=>{"use strict";F.d(J,{c:()=>be});var g=F(4500),o=F(2029),V=F(1479),oe=F(6106),De=F(2493),pe=F(4418),Ee=F(2895);let be=(()=>{class ze{constructor(Re){Re&&(this._subscribe=Re)}lift(Re){const tt=new ze;return tt.source=this,tt.operator=Re,tt}subscribe(Re,tt,de){const Fe=function Ve(ze){return ze&&ze instanceof g.vU||function Te(ze){return ze&&(0,pe.T)(ze.next)&&(0,pe.T)(ze.error)&&(0,pe.T)(ze.complete)}(ze)&&(0,o.Uv)(ze)}(Re)?Re:new g.Ms(Re,tt,de);return(0,Ee.Y)(()=>{const{operator:_t,source:at}=this;Fe.add(_t?_t.call(Fe,at):at?this._subscribe(Fe):this._trySubscribe(Fe))}),Fe}_trySubscribe(Re){try{return this._subscribe(Re)}catch(tt){Re.error(tt)}}forEach(Re,tt){return new(tt=me(tt))((de,Fe)=>{const _t=new g.Ms({next:at=>{try{Re(at)}catch(Be){Fe(Be),_t.unsubscribe()}},error:Fe,complete:de});this.subscribe(_t)})}_subscribe(Re){var tt;return null===(tt=this.source)||void 0===tt?void 0:tt.subscribe(Re)}[V.s](){return this}pipe(...Re){return(0,oe.m)(Re)(this)}toPromise(Re){return new(Re=me(Re))((tt,de)=>{let Fe;this.subscribe(_t=>Fe=_t,_t=>de(_t),()=>tt(Fe))})}}return ze.create=vt=>new ze(vt),ze})();function me(ze){var vt;return null!==(vt=ze??De.$.Promise)&&void 0!==vt?vt:Promise}},9090:(vn,J,F)=>{"use strict";F.d(J,{m:()=>V});var g=F(6104),o=F(4808);class V extends g.B{constructor(De=1/0,pe=1/0,Ee=o.U){super(),this._bufferSize=De,this._windowTime=pe,this._timestampProvider=Ee,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=pe===1/0,this._bufferSize=Math.max(1,De),this._windowTime=Math.max(1,pe)}next(De){const{isStopped:pe,_buffer:Ee,_infiniteTimeWindow:be,_timestampProvider:me,_windowTime:Te}=this;pe||(Ee.push(De),!be&&Ee.push(me.now()+Te)),this._trimBuffer(),super.next(De)}_subscribe(De){this._throwIfClosed(),this._trimBuffer();const pe=this._innerSubscribe(De),{_infiniteTimeWindow:Ee,_buffer:be}=this,me=be.slice();for(let Te=0;Te{"use strict";F.d(J,{B:()=>Ee});var g=F(9406),o=F(2029);const oe=(0,F(4520).L)(me=>function(){me(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var De=F(9583),pe=F(2895);let Ee=(()=>{class me extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ve){const ze=new be(this,this);return ze.operator=Ve,ze}_throwIfClosed(){if(this.closed)throw new oe}next(Ve){(0,pe.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ze of this.currentObservers)ze.next(Ve)}})}error(Ve){(0,pe.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ve;const{observers:ze}=this;for(;ze.length;)ze.shift().error(Ve)}})}complete(){(0,pe.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ve}=this;for(;Ve.length;)Ve.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ve;return(null===(Ve=this.observers)||void 0===Ve?void 0:Ve.length)>0}_trySubscribe(Ve){return this._throwIfClosed(),super._trySubscribe(Ve)}_subscribe(Ve){return this._throwIfClosed(),this._checkFinalizedStatuses(Ve),this._innerSubscribe(Ve)}_innerSubscribe(Ve){const{hasError:ze,isStopped:vt,observers:Re}=this;return ze||vt?o.Kn:(this.currentObservers=null,Re.push(Ve),new o.yU(()=>{this.currentObservers=null,(0,De.o)(Re,Ve)}))}_checkFinalizedStatuses(Ve){const{hasError:ze,thrownError:vt,isStopped:Re}=this;ze?Ve.error(vt):Re&&Ve.complete()}asObservable(){const Ve=new g.c;return Ve.source=this,Ve}}return me.create=(Te,Ve)=>new be(Te,Ve),me})();class be extends Ee{constructor(Te,Ve){super(),this.destination=Te,this.source=Ve}next(Te){var Ve,ze;null===(ze=null===(Ve=this.destination)||void 0===Ve?void 0:Ve.next)||void 0===ze||ze.call(Ve,Te)}error(Te){var Ve,ze;null===(ze=null===(Ve=this.destination)||void 0===Ve?void 0:Ve.error)||void 0===ze||ze.call(Ve,Te)}complete(){var Te,Ve;null===(Ve=null===(Te=this.destination)||void 0===Te?void 0:Te.complete)||void 0===Ve||Ve.call(Te)}_subscribe(Te){var Ve,ze;return null!==(ze=null===(Ve=this.source)||void 0===Ve?void 0:Ve.subscribe(Te))&&void 0!==ze?ze:o.Kn}}},4500:(vn,J,F)=>{"use strict";F.d(J,{Ms:()=>de,vU:()=>ze});var g=F(4418),o=F(2029),V=F(2493),oe=F(6379),De=F(262);const pe=me("C",void 0,void 0);function me(he,He,Se){return{kind:he,value:He,error:Se}}var Te=F(6171),Ve=F(2895);class ze extends o.yU{constructor(He){super(),this.isStopped=!1,He?(this.destination=He,(0,o.Uv)(He)&&He.add(this)):this.destination=Be}static create(He,Se,it){return new de(He,Se,it)}next(He){this.isStopped?at(function be(he){return me("N",he,void 0)}(He),this):this._next(He)}error(He){this.isStopped?at(function Ee(he){return me("E",void 0,he)}(He),this):(this.isStopped=!0,this._error(He))}complete(){this.isStopped?at(pe,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(He){this.destination.next(He)}_error(He){try{this.destination.error(He)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const vt=Function.prototype.bind;function Re(he,He){return vt.call(he,He)}class tt{constructor(He){this.partialObserver=He}next(He){const{partialObserver:Se}=this;if(Se.next)try{Se.next(He)}catch(it){Fe(it)}}error(He){const{partialObserver:Se}=this;if(Se.error)try{Se.error(He)}catch(it){Fe(it)}else Fe(He)}complete(){const{partialObserver:He}=this;if(He.complete)try{He.complete()}catch(Se){Fe(Se)}}}class de extends ze{constructor(He,Se,it){let dt;if(super(),(0,g.T)(He)||!He)dt={next:He??void 0,error:Se??void 0,complete:it??void 0};else{let jt;this&&V.$.useDeprecatedNextContext?(jt=Object.create(He),jt.unsubscribe=()=>this.unsubscribe(),dt={next:He.next&&Re(He.next,jt),error:He.error&&Re(He.error,jt),complete:He.complete&&Re(He.complete,jt)}):dt=He}this.destination=new tt(dt)}}function Fe(he){V.$.useDeprecatedSynchronousErrorHandling?(0,Ve.l)(he):(0,oe.m)(he)}function at(he,He){const{onStoppedNotification:Se}=V.$;Se&&Te.f.setTimeout(()=>Se(he,He))}const Be={closed:!0,next:De.l,error:function _t(he){throw he},complete:De.l}},2029:(vn,J,F)=>{"use strict";F.d(J,{Kn:()=>pe,yU:()=>De,Uv:()=>Ee});var g=F(4418);const V=(0,F(4520).L)(me=>function(Ve){me(this),this.message=Ve?`${Ve.length} errors occurred during unsubscription:\n${Ve.map((ze,vt)=>`${vt+1}) ${ze.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ve});var oe=F(9583);class De{constructor(Te){this.initialTeardown=Te,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Te;if(!this.closed){this.closed=!0;const{_parentage:Ve}=this;if(Ve)if(this._parentage=null,Array.isArray(Ve))for(const Re of Ve)Re.remove(this);else Ve.remove(this);const{initialTeardown:ze}=this;if((0,g.T)(ze))try{ze()}catch(Re){Te=Re instanceof V?Re.errors:[Re]}const{_finalizers:vt}=this;if(vt){this._finalizers=null;for(const Re of vt)try{be(Re)}catch(tt){Te=Te??[],tt instanceof V?Te=[...Te,...tt.errors]:Te.push(tt)}}if(Te)throw new V(Te)}}add(Te){var Ve;if(Te&&Te!==this)if(this.closed)be(Te);else{if(Te instanceof De){if(Te.closed||Te._hasParent(this))return;Te._addParent(this)}(this._finalizers=null!==(Ve=this._finalizers)&&void 0!==Ve?Ve:[]).push(Te)}}_hasParent(Te){const{_parentage:Ve}=this;return Ve===Te||Array.isArray(Ve)&&Ve.includes(Te)}_addParent(Te){const{_parentage:Ve}=this;this._parentage=Array.isArray(Ve)?(Ve.push(Te),Ve):Ve?[Ve,Te]:Te}_removeParent(Te){const{_parentage:Ve}=this;Ve===Te?this._parentage=null:Array.isArray(Ve)&&(0,oe.o)(Ve,Te)}remove(Te){const{_finalizers:Ve}=this;Ve&&(0,oe.o)(Ve,Te),Te instanceof De&&Te._removeParent(this)}}De.EMPTY=(()=>{const me=new De;return me.closed=!0,me})();const pe=De.EMPTY;function Ee(me){return me instanceof De||me&&"closed"in me&&(0,g.T)(me.remove)&&(0,g.T)(me.add)&&(0,g.T)(me.unsubscribe)}function be(me){(0,g.T)(me)?me():me.unsubscribe()}},2493:(vn,J,F)=>{"use strict";F.d(J,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},199:(vn,J,F)=>{"use strict";F.d(J,{z:()=>Te});var g=F(9406),o=F(6872),V=F(8399),oe=F(9656),De=F(6219),pe=F(2363),Ee=F(6405),be=F(6111),me=F(1982);function Te(...vt){const Re=(0,pe.lI)(vt),tt=(0,pe.ms)(vt),{args:de,keys:Fe}=(0,o.D)(vt);if(0===de.length)return(0,V.H)([],Re);const _t=new g.c(function Ve(vt,Re,tt=oe.D){return de=>{ze(Re,()=>{const{length:Fe}=vt,_t=new Array(Fe);let at=Fe,Be=Fe;for(let he=0;he{const He=(0,V.H)(vt[he],Re);let Se=!1;He.subscribe((0,be._)(de,it=>{_t[he]=it,Se||(Se=!0,Be--),Be||de.next(tt(_t.slice()))},()=>{--at||de.complete()}))},de)},de)}}(de,Re,Fe?at=>(0,Ee.e)(Fe,at):oe.D));return tt?_t.pipe((0,De.I)(tt)):_t}function ze(vt,Re,tt){vt?(0,me.N)(tt,vt,Re):Re()}},6753:(vn,J,F)=>{"use strict";F.d(J,{x:()=>oe});var g=F(5350),o=F(2363),V=F(8399);function oe(...De){return(0,g.K)()((0,V.H)(De,(0,o.lI)(De)))}},8001:(vn,J,F)=>{"use strict";F.d(J,{v:()=>V});var g=F(9406),o=F(8621);function V(oe){return new g.c(De=>{(0,o.Tg)(oe()).subscribe(De)})}},8448:(vn,J,F)=>{"use strict";F.d(J,{w:()=>o});const o=new(F(9406).c)(De=>De.complete())},8399:(vn,J,F)=>{"use strict";F.d(J,{H:()=>it});var g=F(8621),o=F(1982),V=F(9867),oe=F(6111);function De(dt,jt=0){return(0,V.N)((Wt,wn)=>{Wt.subscribe((0,oe._)(wn,Wn=>(0,o.N)(wn,dt,()=>wn.next(Wn),jt),()=>(0,o.N)(wn,dt,()=>wn.complete(),jt),Wn=>(0,o.N)(wn,dt,()=>wn.error(Wn),jt)))})}function pe(dt,jt=0){return(0,V.N)((Wt,wn)=>{wn.add(dt.schedule(()=>Wt.subscribe(wn),jt))})}var me=F(9406),Ve=F(7028),ze=F(4418);function Re(dt,jt){if(!dt)throw new Error("Iterable cannot be null");return new me.c(Wt=>{(0,o.N)(Wt,jt,()=>{const wn=dt[Symbol.asyncIterator]();(0,o.N)(Wt,jt,()=>{wn.next().then(Wn=>{Wn.done?Wt.complete():Wt.next(Wn.value)})},0,!0)})})}var tt=F(8932),de=F(5717),Fe=F(5206),_t=F(6472),at=F(7462),Be=F(2246),he=F(8889);function it(dt,jt){return jt?function Se(dt,jt){if(null!=dt){if((0,tt.l)(dt))return function Ee(dt,jt){return(0,g.Tg)(dt).pipe(pe(jt),De(jt))}(dt,jt);if((0,Fe.X)(dt))return function Te(dt,jt){return new me.c(Wt=>{let wn=0;return jt.schedule(function(){wn===dt.length?Wt.complete():(Wt.next(dt[wn++]),Wt.closed||this.schedule())})})}(dt,jt);if((0,de.y)(dt))return function be(dt,jt){return(0,g.Tg)(dt).pipe(pe(jt),De(jt))}(dt,jt);if((0,at.T)(dt))return Re(dt,jt);if((0,_t.x)(dt))return function vt(dt,jt){return new me.c(Wt=>{let wn;return(0,o.N)(Wt,jt,()=>{wn=dt[Ve.l](),(0,o.N)(Wt,jt,()=>{let Wn,di;try{({value:Wn,done:di}=wn.next())}catch(ai){return void Wt.error(ai)}di?Wt.complete():Wt.next(Wn)},0,!0)}),()=>(0,ze.T)(wn?.return)&&wn.return()})}(dt,jt);if((0,he.U)(dt))return function He(dt,jt){return Re((0,he.C)(dt),jt)}(dt,jt)}throw(0,Be.L)(dt)}(dt,jt):(0,g.Tg)(dt)}},8129:(vn,J,F)=>{"use strict";F.d(J,{R:()=>Te});var g=F(8621),o=F(9406),V=F(3422),oe=F(5206),De=F(4418),pe=F(6219);const Ee=["addListener","removeListener"],be=["addEventListener","removeEventListener"],me=["on","off"];function Te(tt,de,Fe,_t){if((0,De.T)(Fe)&&(_t=Fe,Fe=void 0),_t)return Te(tt,de,Fe).pipe((0,pe.I)(_t));const[at,Be]=function Re(tt){return(0,De.T)(tt.addEventListener)&&(0,De.T)(tt.removeEventListener)}(tt)?be.map(he=>He=>tt[he](de,He,Fe)):function ze(tt){return(0,De.T)(tt.addListener)&&(0,De.T)(tt.removeListener)}(tt)?Ee.map(Ve(tt,de)):function vt(tt){return(0,De.T)(tt.on)&&(0,De.T)(tt.off)}(tt)?me.map(Ve(tt,de)):[];if(!at&&(0,oe.X)(tt))return(0,V.Z)(he=>Te(he,de,Fe))((0,g.Tg)(tt));if(!at)throw new TypeError("Invalid event target");return new o.c(he=>{const He=(...Se)=>he.next(1Be(He)})}function Ve(tt,de){return Fe=>_t=>tt[Fe](de,_t)}},8621:(vn,J,F)=>{"use strict";F.d(J,{Tg:()=>vt});var g=F(7270),o=F(5206),V=F(5717),oe=F(9406),De=F(8932),pe=F(7462),Ee=F(2246),be=F(6472),me=F(8889),Te=F(4418),Ve=F(6379),ze=F(1479);function vt(he){if(he instanceof oe.c)return he;if(null!=he){if((0,De.l)(he))return function Re(he){return new oe.c(He=>{const Se=he[ze.s]();if((0,Te.T)(Se.subscribe))return Se.subscribe(He);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(he);if((0,o.X)(he))return function tt(he){return new oe.c(He=>{for(let Se=0;Se{he.then(Se=>{He.closed||(He.next(Se),He.complete())},Se=>He.error(Se)).then(null,Ve.m)})}(he);if((0,pe.T)(he))return _t(he);if((0,be.x)(he))return function Fe(he){return new oe.c(He=>{for(const Se of he)if(He.next(Se),He.closed)return;He.complete()})}(he);if((0,me.U)(he))return function at(he){return _t((0,me.C)(he))}(he)}throw(0,Ee.L)(he)}function _t(he){return new oe.c(He=>{(function Be(he,He){var Se,it,dt,jt;return(0,g.sH)(this,void 0,void 0,function*(){try{for(Se=(0,g.xN)(he);!(it=yield Se.next()).done;)if(He.next(it.value),He.closed)return}catch(Wt){dt={error:Wt}}finally{try{it&&!it.done&&(jt=Se.return)&&(yield jt.call(Se))}finally{if(dt)throw dt.error}}He.complete()})})(he,He).catch(Se=>He.error(Se))})}},2489:(vn,J,F)=>{"use strict";F.d(J,{h:()=>pe});var g=F(3806),o=F(8621),V=F(8448),oe=F(2363),De=F(8399);function pe(...Ee){const be=(0,oe.lI)(Ee),me=(0,oe.R0)(Ee,1/0),Te=Ee;return Te.length?1===Te.length?(0,o.Tg)(Te[0]):(0,g.U)(me)((0,De.H)(Te,be)):V.w}},756:(vn,J,F)=>{"use strict";F.d(J,{of:()=>V});var g=F(2363),o=F(8399);function V(...oe){const De=(0,g.lI)(oe);return(0,o.H)(oe,De)}},3229:(vn,J,F)=>{"use strict";F.d(J,{O:()=>De});var g=F(9406),o=F(4929),V=F(1677);function De(pe=0,Ee,be=o.b){let me=-1;return null!=Ee&&((0,V.m)(Ee)?be=Ee:me=Ee),new g.c(Te=>{let Ve=function oe(pe){return pe instanceof Date&&!isNaN(pe)}(pe)?+pe-be.now():pe;Ve<0&&(Ve=0);let ze=0;return be.schedule(function(){Te.closed||(Te.next(ze++),0<=me?this.schedule(void 0,me):Te.complete())},Ve)})}},6111:(vn,J,F)=>{"use strict";F.d(J,{_:()=>o});var g=F(4500);function o(oe,De,pe,Ee,be){return new V(oe,De,pe,Ee,be)}class V extends g.vU{constructor(De,pe,Ee,be,me,Te){super(De),this.onFinalize=me,this.shouldUnsubscribe=Te,this._next=pe?function(Ve){try{pe(Ve)}catch(ze){De.error(ze)}}:super._next,this._error=be?function(Ve){try{be(Ve)}catch(ze){De.error(ze)}finally{this.unsubscribe()}}:super._error,this._complete=Ee?function(){try{Ee()}catch(Ve){De.error(Ve)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var De;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:pe}=this;super.unsubscribe(),!pe&&(null===(De=this.onFinalize)||void 0===De||De.call(this))}}}},4526:(vn,J,F)=>{"use strict";F.d(J,{W:()=>oe});var g=F(8621),o=F(6111),V=F(9867);function oe(De){return(0,V.N)((pe,Ee)=>{let Te,be=null,me=!1;be=pe.subscribe((0,o._)(Ee,void 0,void 0,Ve=>{Te=(0,g.Tg)(De(Ve,oe(De)(pe))),be?(be.unsubscribe(),be=null,Te.subscribe(Ee)):me=!0})),me&&(be.unsubscribe(),be=null,Te.subscribe(Ee))})}},5350:(vn,J,F)=>{"use strict";F.d(J,{K:()=>o});var g=F(3806);function o(){return(0,g.U)(1)}},4807:(vn,J,F)=>{"use strict";F.d(J,{H:()=>V});var g=F(3422),o=F(4418);function V(oe,De){return(0,o.T)(De)?(0,g.Z)(oe,De,1):(0,g.Z)(oe,1)}},8887:(vn,J,F)=>{"use strict";F.d(J,{B:()=>oe});var g=F(4929),o=F(9867),V=F(6111);function oe(De,pe=g.E){return(0,o.N)((Ee,be)=>{let me=null,Te=null,Ve=null;const ze=()=>{if(me){me.unsubscribe(),me=null;const Re=Te;Te=null,be.next(Re)}};function vt(){const Re=Ve+De,tt=pe.now();if(tt{Te=Re,Ve=pe.now(),me||(me=pe.schedule(vt,De),be.add(me))},()=>{ze(),be.complete()},void 0,()=>{Te=me=null}))})}},8283:(vn,J,F)=>{"use strict";F.d(J,{c:()=>vt});var g=F(4929),o=F(6753),V=F(8486),oe=F(9867),De=F(6111),pe=F(262),be=F(3770),me=F(3422),Te=F(8621);function Ve(Re,tt){return tt?de=>(0,o.x)(tt.pipe((0,V.s)(1),function Ee(){return(0,oe.N)((Re,tt)=>{Re.subscribe((0,De._)(tt,pe.l))})}()),de.pipe(Ve(Re))):(0,me.Z)((de,Fe)=>(0,Te.Tg)(Re(de,Fe)).pipe((0,V.s)(1),(0,be.u)(de)))}var ze=F(3229);function vt(Re,tt=g.E){const de=(0,ze.O)(Re,tt);return Ve(()=>de)}},3793:(vn,J,F)=>{"use strict";F.d(J,{F:()=>oe});var g=F(9656),o=F(9867),V=F(6111);function oe(pe,Ee=g.D){return pe=pe??De,(0,o.N)((be,me)=>{let Te,Ve=!0;be.subscribe((0,V._)(me,ze=>{const vt=Ee(ze);(Ve||!pe(Te,vt))&&(Ve=!1,Te=vt,me.next(ze))}))})}function De(pe,Ee){return pe===Ee}},8503:(vn,J,F)=>{"use strict";F.d(J,{p:()=>V});var g=F(9867),o=F(6111);function V(oe,De){return(0,g.N)((pe,Ee)=>{let be=0;pe.subscribe((0,o._)(Ee,me=>oe.call(De,me,be++)&&Ee.next(me)))})}},6347:(vn,J,F)=>{"use strict";F.d(J,{j:()=>o});var g=F(9867);function o(V){return(0,g.N)((oe,De)=>{try{oe.subscribe(De)}finally{De.add(V)}})}},3527:(vn,J,F)=>{"use strict";F.d(J,{T:()=>V});var g=F(9867),o=F(6111);function V(oe,De){return(0,g.N)((pe,Ee)=>{let be=0;pe.subscribe((0,o._)(Ee,me=>{Ee.next(oe.call(De,me,be++))}))})}},3770:(vn,J,F)=>{"use strict";F.d(J,{u:()=>o});var g=F(3527);function o(V){return(0,g.T)(()=>V)}},3806:(vn,J,F)=>{"use strict";F.d(J,{U:()=>V});var g=F(3422),o=F(9656);function V(oe=1/0){return(0,g.Z)(o.D,oe)}},3422:(vn,J,F)=>{"use strict";F.d(J,{Z:()=>be});var g=F(3527),o=F(8621),V=F(9867),oe=F(1982),De=F(6111),Ee=F(4418);function be(me,Te,Ve=1/0){return(0,Ee.T)(Te)?be((ze,vt)=>(0,g.T)((Re,tt)=>Te(ze,Re,vt,tt))((0,o.Tg)(me(ze,vt))),Ve):("number"==typeof Te&&(Ve=Te),(0,V.N)((ze,vt)=>function pe(me,Te,Ve,ze,vt,Re,tt,de){const Fe=[];let _t=0,at=0,Be=!1;const he=()=>{Be&&!Fe.length&&!_t&&Te.complete()},He=it=>_t{Re&&Te.next(it),_t++;let dt=!1;(0,o.Tg)(Ve(it,at++)).subscribe((0,De._)(Te,jt=>{vt?.(jt),Re?He(jt):Te.next(jt)},()=>{dt=!0},void 0,()=>{if(dt)try{for(_t--;Fe.length&&_tSe(jt)):Se(jt)}he()}catch(jt){Te.error(jt)}}))};return me.subscribe((0,De._)(Te,He,()=>{Be=!0,he()})),()=>{de?.()}}(ze,vt,me,Ve)))}},2360:(vn,J,F)=>{"use strict";F.d(J,{S:()=>o});var g=F(6111);function o(V,oe,De,pe,Ee){return(be,me)=>{let Te=De,Ve=oe,ze=0;be.subscribe((0,g._)(me,vt=>{const Re=ze++;Ve=Te?V(Ve,vt,Re):(Te=!0,vt),pe&&me.next(Ve)},Ee&&(()=>{Te&&me.next(Ve),me.complete()})))}}},7782:(vn,J,F)=>{"use strict";F.d(J,{u:()=>De});var g=F(8621),o=F(6104),V=F(4500),oe=F(9867);function De(Ee={}){const{connector:be=(()=>new o.B),resetOnError:me=!0,resetOnComplete:Te=!0,resetOnRefCountZero:Ve=!0}=Ee;return ze=>{let vt,Re,tt,de=0,Fe=!1,_t=!1;const at=()=>{Re?.unsubscribe(),Re=void 0},Be=()=>{at(),vt=tt=void 0,Fe=_t=!1},he=()=>{const He=vt;Be(),He?.unsubscribe()};return(0,oe.N)((He,Se)=>{de++,!_t&&!Fe&&at();const it=tt=tt??be();Se.add(()=>{de--,0===de&&!_t&&!Fe&&(Re=pe(he,Ve))}),it.subscribe(Se),!vt&&de>0&&(vt=new V.Ms({next:dt=>it.next(dt),error:dt=>{_t=!0,at(),Re=pe(Be,me,dt),it.error(dt)},complete:()=>{Fe=!0,at(),Re=pe(Be,Te),it.complete()}}),(0,g.Tg)(He).subscribe(vt))})(ze)}}function pe(Ee,be,...me){if(!0===be)return void Ee();if(!1===be)return;const Te=new V.Ms({next:()=>{Te.unsubscribe(),Ee()}});return(0,g.Tg)(be(...me)).subscribe(Te)}},9990:(vn,J,F)=>{"use strict";F.d(J,{i:()=>o});var g=F(8503);function o(V){return(0,g.p)((oe,De)=>V<=De)}},965:(vn,J,F)=>{"use strict";F.d(J,{Z:()=>oe});var g=F(6753),o=F(2363),V=F(9867);function oe(...De){const pe=(0,o.lI)(De);return(0,V.N)((Ee,be)=>{(pe?(0,g.x)(De,Ee,pe):(0,g.x)(De,Ee)).subscribe(be)})}},2831:(vn,J,F)=>{"use strict";F.d(J,{n:()=>oe});var g=F(8621),o=F(9867),V=F(6111);function oe(De,pe){return(0,o.N)((Ee,be)=>{let me=null,Te=0,Ve=!1;const ze=()=>Ve&&!me&&be.complete();Ee.subscribe((0,V._)(be,vt=>{me?.unsubscribe();let Re=0;const tt=Te++;(0,g.Tg)(De(vt,tt)).subscribe(me=(0,V._)(be,de=>be.next(pe?pe(vt,de,tt,Re++):de),()=>{me=null,ze()}))},()=>{Ve=!0,ze()}))})}},8486:(vn,J,F)=>{"use strict";F.d(J,{s:()=>oe});var g=F(8448),o=F(9867),V=F(6111);function oe(De){return De<=0?()=>g.w:(0,o.N)((pe,Ee)=>{let be=0;pe.subscribe((0,V._)(Ee,me=>{++be<=De&&(Ee.next(me),De<=be&&Ee.complete())}))})}},6340:(vn,J,F)=>{"use strict";F.d(J,{Q:()=>De});var g=F(9867),o=F(6111),V=F(8621),oe=F(262);function De(pe){return(0,g.N)((Ee,be)=>{(0,V.Tg)(pe).subscribe((0,o._)(be,()=>be.complete(),oe.l)),!be.closed&&Ee.subscribe(be)})}},7049:(vn,J,F)=>{"use strict";F.d(J,{v:()=>V});var g=F(9867),o=F(6111);function V(oe,De=!1){return(0,g.N)((pe,Ee)=>{let be=0;pe.subscribe((0,o._)(Ee,me=>{const Te=oe(me,be++);(Te||De)&&Ee.next(me),!Te&&Ee.complete()}))})}},7236:(vn,J,F)=>{"use strict";F.d(J,{M:()=>De});var g=F(4418),o=F(9867),V=F(6111),oe=F(9656);function De(pe,Ee,be){const me=(0,g.T)(pe)||Ee||be?{next:pe,error:Ee,complete:be}:pe;return me?(0,o.N)((Te,Ve)=>{var ze;null===(ze=me.subscribe)||void 0===ze||ze.call(me);let vt=!0;Te.subscribe((0,V._)(Ve,Re=>{var tt;null===(tt=me.next)||void 0===tt||tt.call(me,Re),Ve.next(Re)},()=>{var Re;vt=!1,null===(Re=me.complete)||void 0===Re||Re.call(me),Ve.complete()},Re=>{var tt;vt=!1,null===(tt=me.error)||void 0===tt||tt.call(me,Re),Ve.error(Re)},()=>{var Re,tt;vt&&(null===(Re=me.unsubscribe)||void 0===Re||Re.call(me)),null===(tt=me.finalize)||void 0===tt||tt.call(me)}))}):oe.D}},1227:(vn,J,F)=>{"use strict";F.d(J,{R:()=>De});var g=F(2029);class o extends g.yU{constructor(Ee,be){super()}schedule(Ee,be=0){return this}}const V={setInterval(pe,Ee,...be){const{delegate:me}=V;return me?.setInterval?me.setInterval(pe,Ee,...be):setInterval(pe,Ee,...be)},clearInterval(pe){const{delegate:Ee}=V;return(Ee?.clearInterval||clearInterval)(pe)},delegate:void 0};var oe=F(9583);class De extends o{constructor(Ee,be){super(Ee,be),this.scheduler=Ee,this.work=be,this.pending=!1}schedule(Ee,be=0){var me;if(this.closed)return this;this.state=Ee;const Te=this.id,Ve=this.scheduler;return null!=Te&&(this.id=this.recycleAsyncId(Ve,Te,be)),this.pending=!0,this.delay=be,this.id=null!==(me=this.id)&&void 0!==me?me:this.requestAsyncId(Ve,this.id,be),this}requestAsyncId(Ee,be,me=0){return V.setInterval(Ee.flush.bind(Ee,this),me)}recycleAsyncId(Ee,be,me=0){if(null!=me&&this.delay===me&&!1===this.pending)return be;null!=be&&V.clearInterval(be)}execute(Ee,be){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const me=this._execute(Ee,be);if(me)return me;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ee,be){let Te,me=!1;try{this.work(Ee)}catch(Ve){me=!0,Te=Ve||new Error("Scheduled action threw falsy error")}if(me)return this.unsubscribe(),Te}unsubscribe(){if(!this.closed){const{id:Ee,scheduler:be}=this,{actions:me}=be;this.work=this.state=this.scheduler=null,this.pending=!1,(0,oe.o)(me,this),null!=Ee&&(this.id=this.recycleAsyncId(be,Ee,null)),this.delay=null,super.unsubscribe()}}}},1246:(vn,J,F)=>{"use strict";F.d(J,{q:()=>V});var g=F(4808);class o{constructor(De,pe=o.now){this.schedulerActionCtor=De,this.now=pe}schedule(De,pe=0,Ee){return new this.schedulerActionCtor(this,De).schedule(Ee,pe)}}o.now=g.U.now;class V extends o{constructor(De,pe=o.now){super(De,pe),this.actions=[],this._active=!1}flush(De){const{actions:pe}=this;if(this._active)return void pe.push(De);let Ee;this._active=!0;do{if(Ee=De.execute(De.state,De.delay))break}while(De=pe.shift());if(this._active=!1,Ee){for(;De=pe.shift();)De.unsubscribe();throw Ee}}}},4929:(vn,J,F)=>{"use strict";F.d(J,{E:()=>V,b:()=>oe});var g=F(1227);const V=new(F(1246).q)(g.R),oe=V},4808:(vn,J,F)=>{"use strict";F.d(J,{U:()=>g});const g={now:()=>(g.delegate||Date).now(),delegate:void 0}},6171:(vn,J,F)=>{"use strict";F.d(J,{f:()=>g});const g={setTimeout(o,V,...oe){const{delegate:De}=g;return De?.setTimeout?De.setTimeout(o,V,...oe):setTimeout(o,V,...oe)},clearTimeout(o){const{delegate:V}=g;return(V?.clearTimeout||clearTimeout)(o)},delegate:void 0}},7028:(vn,J,F)=>{"use strict";F.d(J,{l:()=>o});const o=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},1479:(vn,J,F)=>{"use strict";F.d(J,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},2363:(vn,J,F)=>{"use strict";F.d(J,{R0:()=>pe,lI:()=>De,ms:()=>oe});var g=F(4418),o=F(1677);function V(Ee){return Ee[Ee.length-1]}function oe(Ee){return(0,g.T)(V(Ee))?Ee.pop():void 0}function De(Ee){return(0,o.m)(V(Ee))?Ee.pop():void 0}function pe(Ee,be){return"number"==typeof V(Ee)?Ee.pop():be}},6872:(vn,J,F)=>{"use strict";F.d(J,{D:()=>De});const{isArray:g}=Array,{getPrototypeOf:o,prototype:V,keys:oe}=Object;function De(Ee){if(1===Ee.length){const be=Ee[0];if(g(be))return{args:be,keys:null};if(function pe(Ee){return Ee&&"object"==typeof Ee&&o(Ee)===V}(be)){const me=oe(be);return{args:me.map(Te=>be[Te]),keys:me}}}return{args:Ee,keys:null}}},9583:(vn,J,F)=>{"use strict";function g(o,V){if(o){const oe=o.indexOf(V);0<=oe&&o.splice(oe,1)}}F.d(J,{o:()=>g})},4520:(vn,J,F)=>{"use strict";function g(o){const oe=o(De=>{Error.call(De),De.stack=(new Error).stack});return oe.prototype=Object.create(Error.prototype),oe.prototype.constructor=oe,oe}F.d(J,{L:()=>g})},6405:(vn,J,F)=>{"use strict";function g(o,V){return o.reduce((oe,De,pe)=>(oe[De]=V[pe],oe),{})}F.d(J,{e:()=>g})},2895:(vn,J,F)=>{"use strict";F.d(J,{Y:()=>V,l:()=>oe});var g=F(2493);let o=null;function V(De){if(g.$.useDeprecatedSynchronousErrorHandling){const pe=!o;if(pe&&(o={errorThrown:!1,error:null}),De(),pe){const{errorThrown:Ee,error:be}=o;if(o=null,Ee)throw be}}else De()}function oe(De){g.$.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=De)}},1982:(vn,J,F)=>{"use strict";function g(o,V,oe,De=0,pe=!1){const Ee=V.schedule(function(){oe(),pe?o.add(this.schedule(null,De)):this.unsubscribe()},De);if(o.add(Ee),!pe)return Ee}F.d(J,{N:()=>g})},9656:(vn,J,F)=>{"use strict";function g(o){return o}F.d(J,{D:()=>g})},5206:(vn,J,F)=>{"use strict";F.d(J,{X:()=>g});const g=o=>o&&"number"==typeof o.length&&"function"!=typeof o},7462:(vn,J,F)=>{"use strict";F.d(J,{T:()=>o});var g=F(4418);function o(V){return Symbol.asyncIterator&&(0,g.T)(V?.[Symbol.asyncIterator])}},4418:(vn,J,F)=>{"use strict";function g(o){return"function"==typeof o}F.d(J,{T:()=>g})},8932:(vn,J,F)=>{"use strict";F.d(J,{l:()=>V});var g=F(1479),o=F(4418);function V(oe){return(0,o.T)(oe[g.s])}},6472:(vn,J,F)=>{"use strict";F.d(J,{x:()=>V});var g=F(7028),o=F(4418);function V(oe){return(0,o.T)(oe?.[g.l])}},2319:(vn,J,F)=>{"use strict";F.d(J,{A:()=>V});var g=F(9406),o=F(4418);function V(oe){return!!oe&&(oe instanceof g.c||(0,o.T)(oe.lift)&&(0,o.T)(oe.subscribe))}},5717:(vn,J,F)=>{"use strict";F.d(J,{y:()=>o});var g=F(4418);function o(V){return(0,g.T)(V?.then)}},8889:(vn,J,F)=>{"use strict";F.d(J,{C:()=>V,U:()=>oe});var g=F(7270),o=F(4418);function V(De){return(0,g.AQ)(this,arguments,function*(){const Ee=De.getReader();try{for(;;){const{value:be,done:me}=yield(0,g.N3)(Ee.read());if(me)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(be)}}finally{Ee.releaseLock()}})}function oe(De){return(0,o.T)(De?.getReader)}},1677:(vn,J,F)=>{"use strict";F.d(J,{m:()=>o});var g=F(4418);function o(V){return V&&(0,g.T)(V.schedule)}},9867:(vn,J,F)=>{"use strict";F.d(J,{N:()=>V,S:()=>o});var g=F(4418);function o(oe){return(0,g.T)(oe?.lift)}function V(oe){return De=>{if(o(De))return De.lift(function(pe){try{return oe(pe,this)}catch(Ee){this.error(Ee)}});throw new TypeError("Unable to lift unknown Observable type")}}},6219:(vn,J,F)=>{"use strict";F.d(J,{I:()=>oe});var g=F(3527);const{isArray:o}=Array;function oe(De){return(0,g.T)(pe=>function V(De,pe){return o(pe)?De(...pe):De(pe)}(De,pe))}},262:(vn,J,F)=>{"use strict";function g(){}F.d(J,{l:()=>g})},6106:(vn,J,F)=>{"use strict";F.d(J,{F:()=>o,m:()=>V});var g=F(9656);function o(...oe){return V(oe)}function V(oe){return 0===oe.length?g.D:1===oe.length?oe[0]:function(pe){return oe.reduce((Ee,be)=>be(Ee),pe)}}},6379:(vn,J,F)=>{"use strict";F.d(J,{m:()=>V});var g=F(2493),o=F(6171);function V(oe){o.f.setTimeout(()=>{const{onUnhandledError:De}=g.$;if(!De)throw oe;De(oe)})}},2246:(vn,J,F)=>{"use strict";function g(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}F.d(J,{L:()=>g})},8255:function(vn,J){!function(F){"use strict";function g(){for(var yt=arguments.length,ft=Array(yt),Pt=0;Pt1){ft[0]=ft[0].slice(0,-1);for(var Cn=ft.length-1,pn=1;pn= 0x80 (not a basic code point)","invalid-input":"Invalid input"},jt=Math.floor,Wt=String.fromCharCode;function wn(yt){throw new RangeError(it[yt])}function di(yt,ft){var Pt=yt.split("@"),Cn="";return Pt.length>1&&(Cn=Pt[0]+"@",yt=Pt[1]),Cn+function Wn(yt,ft){for(var Pt=[],Cn=yt.length;Cn--;)Pt[Cn]=ft(yt[Cn]);return Pt}((yt=yt.replace(Se,".")).split("."),ft).join(".")}function ai(yt){for(var ft=[],Pt=0,Cn=yt.length;Pt=55296&&pn<=56319&&Pt>1,ft+=jt(ft/Pt);ft>455;pn+=36)ft=jt(ft/35);return jt(pn+36*ft/(ft+38))},dn=function(ft){var Pt=[],Cn=ft.length,pn=0,Di=128,nr=72,tn=ft.lastIndexOf("-");tn<0&&(tn=0);for(var Tt=0;Tt=128&&wn("not-basic"),Pt.push(ft.charCodeAt(Tt));for(var Kt=tn>0?tn+1:0;Kt=Cn&&wn("invalid-input");var ti=$i(ft.charCodeAt(Kt++));(ti>=36||ti>jt((ze-pn)/qn))&&wn("overflow"),pn+=ti*qn;var Ni=pi<=nr?1:pi>=nr+26?26:pi-nr;if(tijt(ze/ii)&&wn("overflow"),qn*=ii}var lr=Pt.length+1;nr=ui(pn-Vn,lr,0==Vn),jt(pn/lr)>ze-Di&&wn("overflow"),Di+=jt(pn/lr),pn%=lr,Pt.splice(pn++,0,Di)}return String.fromCodePoint.apply(String,Pt)},nt=function(ft){var Pt=[],Cn=(ft=ai(ft)).length,pn=128,Di=0,nr=72,tn=!0,Tt=!1,Kt=void 0;try{for(var qn,Vn=ft[Symbol.iterator]();!(tn=(qn=Vn.next()).done);tn=!0){var pi=qn.value;pi<128&&Pt.push(Wt(pi))}}catch(ws){Tt=!0,Kt=ws}finally{try{!tn&&Vn.return&&Vn.return()}finally{if(Tt)throw Kt}}var ti=Pt.length,Ni=ti;for(ti&&Pt.push("-");Ni=pn&&Gsjt((ze-Di)/Fr)&&wn("overflow"),Di+=(ii-pn)*Fr,pn=ii;var is=!0,Ro=!1,Zo=void 0;try{for(var qo,Vo=ft[Symbol.iterator]();!(is=(qo=Vo.next()).done);is=!0){var ea=qo.value;if(eaze&&wn("overflow"),ea==pn){for(var oo=Di,xo=36;;xo+=36){var ta=xo<=nr?1:xo>=nr+26?26:xo-nr;if(oo>6|192).toString(16).toUpperCase()+"%"+(63&ft|128).toString(16).toUpperCase():"%"+(ft>>12|224).toString(16).toUpperCase()+"%"+(ft>>6&63|128).toString(16).toUpperCase()+"%"+(63&ft|128).toString(16).toUpperCase()}function H(yt){for(var ft="",Pt=0,Cn=yt.length;Pt=194&&pn<224){if(Cn-Pt>=6){var Di=parseInt(yt.substr(Pt+4,2),16);ft+=String.fromCharCode((31&pn)<<6|63&Di)}else ft+=yt.substr(Pt,6);Pt+=6}else if(pn>=224){if(Cn-Pt>=9){var nr=parseInt(yt.substr(Pt+4,2),16),tn=parseInt(yt.substr(Pt+7,2),16);ft+=String.fromCharCode((15&pn)<<12|(63&nr)<<6|63&tn)}else ft+=yt.substr(Pt,9);Pt+=9}else ft+=yt.substr(Pt,3),Pt+=3}return ft}function te(yt,ft){function Pt(Cn){var pn=H(Cn);return pn.match(ft.UNRESERVED)?pn:Cn}return yt.scheme&&(yt.scheme=String(yt.scheme).replace(ft.PCT_ENCODED,Pt).toLowerCase().replace(ft.NOT_SCHEME,"")),void 0!==yt.userinfo&&(yt.userinfo=String(yt.userinfo).replace(ft.PCT_ENCODED,Pt).replace(ft.NOT_USERINFO,Ze).replace(ft.PCT_ENCODED,oe)),void 0!==yt.host&&(yt.host=String(yt.host).replace(ft.PCT_ENCODED,Pt).toLowerCase().replace(ft.NOT_HOST,Ze).replace(ft.PCT_ENCODED,oe)),void 0!==yt.path&&(yt.path=String(yt.path).replace(ft.PCT_ENCODED,Pt).replace(yt.scheme?ft.NOT_PATH:ft.NOT_PATH_NOSCHEME,Ze).replace(ft.PCT_ENCODED,oe)),void 0!==yt.query&&(yt.query=String(yt.query).replace(ft.PCT_ENCODED,Pt).replace(ft.NOT_QUERY,Ze).replace(ft.PCT_ENCODED,oe)),void 0!==yt.fragment&&(yt.fragment=String(yt.fragment).replace(ft.PCT_ENCODED,Pt).replace(ft.NOT_FRAGMENT,Ze).replace(ft.PCT_ENCODED,oe)),yt}function xe(yt){return yt.replace(/^0*(.*)/,"$1")||"0"}function Ce(yt,ft){var Pt=yt.match(ft.IPV4ADDRESS)||[],pn=Te(Pt,2)[1];return pn?pn.split(".").map(xe).join("."):yt}function zt(yt,ft){var Pt=yt.match(ft.IPV6ADDRESS)||[],Cn=Te(Pt,3),pn=Cn[1],Di=Cn[2];if(pn){for(var nr=pn.toLowerCase().split("::").reverse(),tn=Te(nr,2),Tt=tn[0],Kt=tn[1],Vn=Kt?Kt.split(":").map(xe):[],qn=Tt.split(":").map(xe),pi=ft.IPV4ADDRESS.test(qn[qn.length-1]),ti=pi?7:8,Ni=qn.length-ti,ii=Array(ti),lr=0;lr1){var Vr=ii.slice(0,xs.index),Gs=ii.slice(xs.index+xs.length);ks=Vr.join(":")+"::"+Gs.join(":")}else ks=ii.join(":");return Di&&(ks+="%"+Di),ks}return yt}var rt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,xt=void 0==="".match(/(){0}/)[1];function Gt(yt){var ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt={},Cn=!1!==ft.iri?me:be;"suffix"===ft.reference&&(yt=(ft.scheme?ft.scheme+":":"")+"//"+yt);var pn=yt.match(rt);if(pn){xt?(Pt.scheme=pn[1],Pt.userinfo=pn[3],Pt.host=pn[4],Pt.port=parseInt(pn[5],10),Pt.path=pn[6]||"",Pt.query=pn[7],Pt.fragment=pn[8],isNaN(Pt.port)&&(Pt.port=pn[5])):(Pt.scheme=pn[1]||void 0,Pt.userinfo=-1!==yt.indexOf("@")?pn[3]:void 0,Pt.host=-1!==yt.indexOf("//")?pn[4]:void 0,Pt.port=parseInt(pn[5],10),Pt.path=pn[6]||"",Pt.query=-1!==yt.indexOf("?")?pn[7]:void 0,Pt.fragment=-1!==yt.indexOf("#")?pn[8]:void 0,isNaN(Pt.port)&&(Pt.port=yt.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?pn[4]:void 0)),Pt.host&&(Pt.host=zt(Ce(Pt.host,Cn),Cn)),Pt.reference=void 0!==Pt.scheme||void 0!==Pt.userinfo||void 0!==Pt.host||void 0!==Pt.port||Pt.path||void 0!==Pt.query?void 0===Pt.scheme?"relative":void 0===Pt.fragment?"absolute":"uri":"same-document",ft.reference&&"suffix"!==ft.reference&&ft.reference!==Pt.reference&&(Pt.error=Pt.error||"URI is not a "+ft.reference+" reference.");var Di=Ue[(ft.scheme||Pt.scheme||"").toLowerCase()];if(ft.unicodeSupport||Di&&Di.unicodeSupport)te(Pt,Cn);else{if(Pt.host&&(ft.domainHost||Di&&Di.domainHost))try{Pt.host=Ae.toASCII(Pt.host.replace(Cn.PCT_ENCODED,H).toLowerCase())}catch(nr){Pt.error=Pt.error||"Host's domain name can not be converted to ASCII via punycode: "+nr}te(Pt,be)}Di&&Di.parse&&Di.parse(Pt,ft)}else Pt.error=Pt.error||"URI can not be parsed.";return Pt}var In=/^\.\.?\//,xi=/^\/\.(\/|$)/,or=/^\/\.\.(\/|$)/,ci=/^\/?(?:.|\n)*?(?=\/|$)/;function Dr(yt){for(var ft=[];yt.length;)if(yt.match(In))yt=yt.replace(In,"");else if(yt.match(xi))yt=yt.replace(xi,"/");else if(yt.match(or))yt=yt.replace(or,"/"),ft.pop();else if("."===yt||".."===yt)yt="";else{var Pt=yt.match(ci);if(!Pt)throw new Error("Unexpected dot segment condition");var Cn=Pt[0];yt=yt.slice(Cn.length),ft.push(Cn)}return ft.join("")}function Tr(yt){var ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pt=ft.iri?me:be,Cn=[],pn=Ue[(ft.scheme||yt.scheme||"").toLowerCase()];if(pn&&pn.serialize&&pn.serialize(yt,ft),yt.host&&!Pt.IPV6ADDRESS.test(yt.host)&&(ft.domainHost||pn&&pn.domainHost))try{yt.host=ft.iri?Ae.toUnicode(yt.host):Ae.toASCII(yt.host.replace(Pt.PCT_ENCODED,H).toLowerCase())}catch(tn){yt.error=yt.error||"Host's domain name can not be converted to "+(ft.iri?"Unicode":"ASCII")+" via punycode: "+tn}te(yt,Pt),"suffix"!==ft.reference&&yt.scheme&&(Cn.push(yt.scheme),Cn.push(":"));var Di=function xn(yt,ft){var Pt=!1!==ft.iri?me:be,Cn=[];return void 0!==yt.userinfo&&(Cn.push(yt.userinfo),Cn.push("@")),void 0!==yt.host&&Cn.push(zt(Ce(String(yt.host),Pt),Pt).replace(Pt.IPV6ADDRESS,function(pn,Di,nr){return"["+Di+(nr?"%25"+nr:"")+"]"})),("number"==typeof yt.port||"string"==typeof yt.port)&&(Cn.push(":"),Cn.push(String(yt.port))),Cn.length?Cn.join(""):void 0}(yt,ft);if(void 0!==Di&&("suffix"!==ft.reference&&Cn.push("//"),Cn.push(Di),yt.path&&"/"!==yt.path.charAt(0)&&Cn.push("/")),void 0!==yt.path){var nr=yt.path;!ft.absolutePath&&(!pn||!pn.absolutePath)&&(nr=Dr(nr)),void 0===Di&&(nr=nr.replace(/^\/\//,"/%2F")),Cn.push(nr)}return void 0!==yt.query&&(Cn.push("?"),Cn.push(yt.query)),void 0!==yt.fragment&&(Cn.push("#"),Cn.push(yt.fragment)),Cn.join("")}function cn(yt,ft){var Pt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},pn={};return arguments[3]||(yt=Gt(Tr(yt,Pt),Pt),ft=Gt(Tr(ft,Pt),Pt)),!(Pt=Pt||{}).tolerant&&ft.scheme?(pn.scheme=ft.scheme,pn.userinfo=ft.userinfo,pn.host=ft.host,pn.port=ft.port,pn.path=Dr(ft.path||""),pn.query=ft.query):(void 0!==ft.userinfo||void 0!==ft.host||void 0!==ft.port?(pn.userinfo=ft.userinfo,pn.host=ft.host,pn.port=ft.port,pn.path=Dr(ft.path||""),pn.query=ft.query):(ft.path?("/"===ft.path.charAt(0)?pn.path=Dr(ft.path):(pn.path=void 0===yt.userinfo&&void 0===yt.host&&void 0===yt.port||yt.path?yt.path?yt.path.slice(0,yt.path.lastIndexOf("/")+1)+ft.path:ft.path:"/"+ft.path,pn.path=Dr(pn.path)),pn.query=ft.query):(pn.path=yt.path,pn.query=void 0!==ft.query?ft.query:yt.query),pn.userinfo=yt.userinfo,pn.host=yt.host,pn.port=yt.port),pn.scheme=yt.scheme),pn.fragment=ft.fragment,pn}function Mt(yt,ft){return yt&&yt.toString().replace(ft&&ft.iri?me.PCT_ENCODED:be.PCT_ENCODED,H)}var Bt={scheme:"http",domainHost:!0,parse:function(ft,Pt){return ft.host||(ft.error=ft.error||"HTTP URIs must have a host."),ft},serialize:function(ft,Pt){var Cn="https"===String(ft.scheme).toLowerCase();return(ft.port===(Cn?443:80)||""===ft.port)&&(ft.port=void 0),ft.path||(ft.path="/"),ft}},hn={scheme:"https",domainHost:Bt.domainHost,parse:Bt.parse,serialize:Bt.serialize};function Mn(yt){return"boolean"==typeof yt.secure?yt.secure:"wss"===String(yt.scheme).toLowerCase()}var Vi={scheme:"ws",domainHost:!0,parse:function(ft,Pt){var Cn=ft;return Cn.secure=Mn(Cn),Cn.resourceName=(Cn.path||"/")+(Cn.query?"?"+Cn.query:""),Cn.path=void 0,Cn.query=void 0,Cn},serialize:function(ft,Pt){if((ft.port===(Mn(ft)?443:80)||""===ft.port)&&(ft.port=void 0),"boolean"==typeof ft.secure&&(ft.scheme=ft.secure?"wss":"ws",ft.secure=void 0),ft.resourceName){var Cn=ft.resourceName.split("?"),pn=Te(Cn,2),Di=pn[0],nr=pn[1];ft.path=Di&&"/"!==Di?Di:void 0,ft.query=nr,ft.resourceName=void 0}return ft.fragment=void 0,ft}},ni={scheme:"wss",domainHost:Vi.domainHost,parse:Vi.parse,serialize:Vi.serialize},Qi={},no="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Jr="[0-9A-Fa-f]",Ki=o(o("%[EFef]"+Jr+"%"+Jr+Jr+"%"+Jr+Jr)+"|"+o("%[89A-Fa-f]"+Jr+"%"+Jr+Jr)+"|"+o("%"+Jr+Jr)),zo=g("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),xc=new RegExp(no,"g"),mo=new RegExp(Ki,"g"),Ss=new RegExp(g("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',zo),"g"),io=new RegExp(g("[^]",no,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),Wo=io;function ic(yt){var ft=H(yt);return ft.match(xc)?ft:yt}var jn={scheme:"mailto",parse:function(ft,Pt){var Cn=ft,pn=Cn.to=Cn.path?Cn.path.split(","):[];if(Cn.path=void 0,Cn.query){for(var Di=!1,nr={},tn=Cn.query.split("&"),Tt=0,Kt=tn.length;Tt{"use strict";F.d(J,{k:()=>V});var g=F(194);const o=(0,g.i0)("0.35s ease",(0,g.i7)([(0,g.iF)({opacity:0,transform:"translateY(0.5rem)"}),(0,g.iF)({opacity:1,transform:"translateY(0)"})])),V=(0,g.hZ)("fade-up",[(0,g.kY)("void => *",o),(0,g.kY)("* => true",o)])},2194:(vn,J,F)=>{"use strict";F.d(J,{Y:()=>V});var g=F(5981),o=F(2978);let V=(()=>{class oe{constructor(){this.headerHeight$=new g.t(0),this.windowSize$=new g.t({x:0,y:0})}updateHeaderHeight(){if(typeof window>"u")return;const pe=document.querySelector("app-header");pe&&this.headerHeight$.next(pe.clientHeight)}updateWindowSize(){typeof window>"u"||this.windowSize$.next({x:window.innerWidth,y:window.innerHeight})}static#e=this.\u0275fac=function(Ee){return new(Ee||oe)};static#t=this.\u0275prov=o.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},4952:(vn,J,F)=>{"use strict";F.d(J,{l:()=>V});var g=F(6610),o=F(2978);let V=(()=>{class oe{static#e=this.\u0275fac=function(Ee){return new(Ee||oe)};static#t=this.\u0275cmp=o.VBU({type:oe,selectors:[["app-custom-loading"]],standalone:!0,features:[o.aNF],decls:1,vars:0,consts:[[1,"loader","mx-4","my-2"]],template:function(Ee,be){1&Ee&&o.nrm(0,"span",0)},dependencies:[g.MD],styles:[".loader[_ngcontent-%COMP%]{width:1.25em;height:1.25em;border:3px solid var(--primary-500);border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:_ngcontent-%COMP%_rotation 1s linear infinite}@keyframes _ngcontent-%COMP%_rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return oe})()},8303:(vn,J,F)=>{"use strict";F.d(J,{r:()=>o});const g={hostClass:"!flex flex-col",contentClass:"mt-auto"},o=V=>({label:V?.addressLabel??"Address",formControlName:"address",layout:{formGroupClass:"grid grid-cols-1 md:grid-cols-3",contentCollapsible:"expand"},children:[{label:V?.countryLabel??"Country",formControlName:"country",type:"text",props:{placeholder:V?.countryPlaceholder??"Country"},layout:g},{label:V?.stateLabel??"State/Province",formControlName:"state",type:"text",props:{placeholder:V?.statePlaceholder??"State/Province"},layout:g},{label:V?.postcodeLabel??"Zip/Postal code",formControlName:"postcode",type:"text",props:{placeholder:"00000"},layout:g},{label:V?.detailLabel??"Address",formControlName:"detail",type:"text",layout:{hostStyles:"grid-column: -1/1;"},props:{placeholder:V?.detailPlaceholder??"Detail"}}]})},9062:(vn,J,F)=>{"use strict";F.d(J,{P:()=>o});const o=(0,F(8303).r)({addressLabel:"\u5730\u5740",countryLabel:"\u570b\u5bb6/\u5730\u5340",countryPlaceholder:"\u570b\u5bb6/\u5730\u5340",stateLabel:"\u5dde/\u7701/\u7e23\u5e02",statePlaceholder:"\u5dde/\u7701/\u7e23\u5e02",postcodeLabel:"\u90f5\u905e\u5340\u865f",detailLabel:"\u8a73\u7d30\u5730\u5740",detailPlaceholder:"\u8a73\u7d30\u5730\u5740"})},9545:(vn,J,F)=>{"use strict";F.d(J,{C:()=>g});const g={label:"Age",description:"Input mask (number)",formControlName:"age",type:"number",inputMask:{mask:"Number"},validators:[{name:"required",message:"Please enter your age"},{name:"min",value:18,message:"Must above 18 years old"},{name:"max",value:65,message:"Must not greater than 65 years old"}]}},728:(vn,J,F)=>{"use strict";F.d(J,{m:()=>g});const g={label:"\u5e74\u9f61",description:"\u4f7f\u7528\u6578\u5b57\u906e\u7f69",formControlName:"age",type:"number",inputMask:{mask:"Number"},validators:[{name:"required",message:"\u8acb\u8f38\u5165\u5e74\u9f61"},{name:"min",value:18,message:"\u4e0d\u53ef\u5c0f\u65bc 18 \u6b72"},{name:"max",value:65,message:"\u4e0d\u53ef\u8d85\u904e 65 \u6b72"}]}},6457:(vn,J,F)=>{"use strict";F.d(J,{Y:()=>g});const g={label:"Cards",formControlName:"cards",layout:{formGroupStyles:"row-gap: 0px"},children:[{formControlName:"cardTypes",type:"checkbox",value:[0],validators:[{name:"required",message:"Please choose at least one."}],options:{layout:"column",data:[{label:"Visa",value:0},{label:"Master",value:1},{label:"JCB",value:2},{label:"Other",value:3}]}},{formControlName:"cardOther",props:{placeholder:"Other card type"},conditions:{"control.hidden":{"&&":[["cards.cardTypes","notIncludes",3]]}}}]}},504:(vn,J,F)=>{"use strict";F.d(J,{C:()=>g});const g={label:"\u4fe1\u7528\u5361",formControlName:"cards",layout:{formGroupStyles:"row-gap: 0px"},children:[{formControlName:"cardTypes",type:"checkbox",value:[0],validators:[{name:"required",message:"\u8acb\u81f3\u5c11\u9078\u64c7\u4e00\u500b"}],options:{layout:"column",data:[{label:"Visa",value:0},{label:"Master",value:1},{label:"JCB",value:2},{label:"\u5176\u4ed6",value:3}]}},{formControlName:"cardOther",props:{placeholder:"\u5176\u4ed6\u5361\u7247\u985e\u578b"},conditions:{"control.hidden":{"&&":[["cards.cardTypes","notIncludes",3]]}}}]}},2325:(vn,J,F)=>{"use strict";F.d(J,{C:()=>g});const g={label:"Gender",formControlName:"gender",value:"0",type:"radio",options:{data:[{label:"Male",value:"0"},{label:"Female",value:"1"},{label:"Prefer not to state",value:"2"}]}}},4196:(vn,J,F)=>{"use strict";F.d(J,{q:()=>g});const g={label:"\u6027\u5225",formControlName:"gender",value:"0",type:"radio",options:{data:[{label:"\u7537\u751f",value:"0"},{label:"\u5973\u751f",value:"1"},{label:"\u6211\u4e0d\u60f3\u8aaa",value:"2"}]}}},9353:(vn,J,F)=>{"use strict";F.d(J,{M:()=>g});const g={label:"Name",formControlName:"name",type:"text",validators:[{name:"required",message:"Please type your name"},{name:"minLength",value:4,message:"Please enter at lease 4 characters"},{name:"pattern",value:"^\\D+$",message:"Numbers are not allowed"}]}},3624:(vn,J,F)=>{"use strict";F.d(J,{c:()=>g});const g={label:"\u59d3\u540d",formControlName:"name",type:"text",validators:[{name:"required",message:"\u8acb\u8f38\u5165\u540d\u5b57"},{name:"minLength",value:2,message:"\u8acb\u8f38\u5165\u81f3\u5c11 2 \u500b\u5b57"},{name:"pattern",value:"^\\D+$",message:"\u4e0d\u53ef\u8f38\u5165\u6578\u5b57"}]}},9707:(vn,J,F)=>{"use strict";F.d(J,{d:()=>g});const g={label:"Temperature",formControlName:"temperature",type:"range",value:27,props:{min:-20,max:80,step:1,showCurrentValue:!0,showTickMarks:!0,discrete:!0}}},1490:(vn,J,F)=>{"use strict";F.d(J,{$:()=>g});const g={label:"\u6eab\u5ea6",formControlName:"temperature",type:"range",value:27,props:{min:-20,max:80,step:1,showCurrentValue:!0,showTickMarks:!0}}},3265:(vn,J,F)=>{"use strict";F.d(J,{I:()=>g});const g={formControlName:"toggles",layout:{formGroupStyles:"display: flex; gap: 2.5rem;"},children:[{formControlName:"checkbox",value:!1,type:"checkbox",description:"A binary checkbox",layout:{descriptionPosition:"after"},options:{data:[{label:"Confirm?"}]}},{formControlName:"switch",value:!1,type:"switch",options:{labelPosition:"before",data:[{label:"Open?"}]}}]}},5200:(vn,J,F)=>{"use strict";F.d(J,{a:()=>g});const g={formControlName:"toggles",layout:{formGroupStyles:"display: flex; gap: 2.5rem;"},children:[{formControlName:"checkbox",value:!1,type:"checkbox",description:"\u4e8c\u5143\u52fe\u9078\u6846",layout:{descriptionPosition:"after"},options:{data:[{label:"\u78ba\u5b9a?"}]}},{formControlName:"switch",value:!1,type:"switch",options:{labelPosition:"before",data:[{label:"\u958b\u555f?"}]}}]}},863:(vn,J,F)=>{"use strict";F.d(J,{T:()=>Ss});const V=[{label:"Option 1",value:0},{label:"Option 2",value:1},{label:"Option 3",value:2}],De=[{label:"\u9078\u9805 1",value:0},{label:"\u9078\u9805 2",value:1},{label:"\u9078\u9805 3",value:2}],Ve={CHECKBOX_BINARY:{EN:{label:"Binary checkbox",formControlName:"checkbox",type:"checkbox",options:{data:[{label:"Label for this binary checkbox"}]}},"ZH-TW":{label:"\u4e8c\u5143\u8907\u9078\u6846",formControlName:"checkbox",type:"checkbox",options:{data:[{label:"\u6b64\u4e8c\u5143\u8907\u9078\u6846\u7684\u6587\u5b57"}]}}},CHECKBOX_MULTI:{EN:{label:"Checkbox",formControlName:"checkbox",type:"checkbox",options:{data:V}},"ZH-TW":{label:"\u8907\u9078\u6846",formControlName:"checkbox",type:"checkbox",options:{data:De}}},CHECKBOX_MULTI_VERTICAL:{EN:{label:"Checkbox",formControlName:"checkbox",type:"checkbox",options:{layout:"column",data:V}},"ZH-TW":{label:"\u8907\u9078\u6846",formControlName:"checkbox",type:"checkbox",options:{layout:"column",data:De}}},CHECKBOX_LABEL_BEFORE:{EN:{label:"Checkbox",formControlName:"checkbox",type:"checkbox",options:{labelPosition:"before",layout:"column",data:V}},"ZH-TW":{label:"\u8907\u9078\u6846",formControlName:"checkbox",type:"checkbox",options:{labelPosition:"before",layout:"column",data:De}}}};var ze=F(9545),vt=F(9353),Re=F(3265);const _t=[{description:"Disabled if (name === 'Andrew' && age > 20 && (checkbox === false || switch === false))",formControlName:"conditionsMultiple",conditions:{"control.disabled":{"&&":[["group.name","===","Andrew"],["group.age",">",20],{"||":[["group.toggles.checkbox","===",!1],["group.toggles.switch","===",!1]]}]}}},{formControlName:"group",layout:{hostStyles:"margin-top: 1.5rem"},children:[{...vt.M,value:"Andrew"},{...ze.C,value:22},Re.I]}];var at=F(728),Be=F(3624),he=F(5200);const dt=[{description:"if (name === '\u738b\u5c0f\u660e' && age > 20 && (checkbox === false || switch === false)), \u7981\u7528\u6b64\u6b04\u4f4d",formControlName:"conditionsMultiple",conditions:{"control.disabled":{"&&":[["group.name","===","\u738b\u5c0f\u660e"],["group.age",">",20],{"||":[["group.toggles.checkbox","===",!1],["group.toggles.switch","===",!1]]}]}}},{formControlName:"group",layout:{hostStyles:"border: solid 1px var(--border-color-50); border-radius: 0.5rem; padding: 1rem;"},children:[Be.c,at.m,he.a]}],Wn=[{formControlName:"group",description:"Name is required when slider > 50",children:[{...F(9707).d,label:"Slider",formControlName:"slider"},{...vt.M,value:"",conditions:{"control.disabled":{"&&":[["group.slider","<",0]]},"validator.required":{"&&":[["group.slider",">",50]]}}}]}],$i=[{formControlName:"group",description:"Slider \u7684\u503c > 50 \u6642\uff0c\u59d3\u540d\u6b04\u4f4d\u5fc5\u586b",children:[{...F(1490).$,label:"Slider",formControlName:"slider"},{...Be.c,value:"",conditions:{"control.disabled":{"&&":[["group.slider","<",0]]},"validator.required":{"&&":[["group.slider",">",50]]}}}]}],Hr=io=>[{formControlName:"checkbox",type:"checkbox",value:!0,options:{data:[{label:"Uncheck to hide the following input"}]}},{formControlName:"text",conditions:{"control.hidden":{"&&":[[io?`${io}.checkbox`:"checkbox","===",!1]]}}}],ui=io=>[{formControlName:"checkbox",type:"checkbox",value:!0,options:{data:[{label:"\u53d6\u6d88\u52fe\u9078\uff0c\u96b1\u85cf\u4ee5\u4e0b\u8f38\u5165\u6b04\u4f4d"}]}},{formControlName:"text",conditions:{"control.hidden":{"&&":[[io?`${io}.checkbox`:"checkbox","===",!1]]}}}],dn={CONDITIONS_VISIBILITY:{EN:Hr(""),"ZH-TW":ui("")},CONDITIONS_VALIDATOR:{EN:Wn,"ZH-TW":$i},CONDITIONS_MULTIPLE:{EN:_t,"ZH-TW":dt}},nt=io=>({label:io?.label??"Custom Component",formControlName:"customInput"}),ht=nt({label:"\u81ea\u8a02\u5143\u4ef6"}),Je={CUSTOM_COMPONENT:{EN:nt(),"ZH-TW":ht}},te={DATE:{EN:{label:"Date",formControlName:"date",type:"date"},"ZH-TW":{label:"\u65e5\u671f",formControlName:"date",type:"date"}},DATE_MIN_DATE:{EN:{label:"Date (min date)",formControlName:"minDate",type:"date",props:{min:new Date}},"ZH-TW":{label:"\u65e5\u671f (\u6700\u65e9\u65e5\u671f)",formControlName:"minDate",type:"date",props:{min:new Date}}}};var xe=F(8303);const Ce={hostClass:"p-6 m-3 rounded-xl border-gray-500/30",hostStyles:"\n background: linear-gradient(145deg, var(--primary-100), var(--body-bg-color));\n box-shadow: 1rem 1rem 1.75rem rgba(0,0,0,0.15), -1rem -1rem 1.75rem var(--body-bg-color);".replace(/\s{2,}/g,"")},zt={label:"Level 1",formControlName:"level1",layout:Ce,children:[vt.M,...Hr("level1"),{label:"Level 2",formControlName:"level2",layout:Ce,children:[ze.C,{label:"Level 3",formControlName:"level3",layout:Ce,children:[(0,xe.r)()]}]}]};var rt=F(9062);const zo={label:"\u6587\u5b57\u8f38\u5165",formControlName:"text",type:"text"},Ss={...Ve,...dn,...Je,...te,PASSWORD:{EN:{label:"Password",formControlName:"password",type:"password"},"ZH-TW":{label:"\u5bc6\u78bc",formControlName:"password",type:"password"}},HOME_DEMO:{EN:zt,"ZH-TW":{label:"\u7b2c 1 \u5c64",formControlName:"level1",layout:Ce,children:[Be.c,...ui("level1"),{label:"\u7b2c 2 \u5c64",formControlName:"level2",layout:Ce,children:[at.m,{label:"\u7b2c 3 \u5c64",formControlName:"level3",layout:Ce,children:[rt.P]}]}]}},NUMBER:{EN:{label:"Number",formControlName:"number",type:"number"},"ZH-TW":{label:"\u6578\u5b57",formControlName:"number",type:"number"}},NUMBER_MASK:{EN:{label:"Number (using mask)",formControlName:"number",type:"text",inputMask:{mask:"Number"}},"ZH-TW":{label:"\u6578\u5b57 (\u4f7f\u7528\u906e\u7f69)",formControlName:"number",type:"text",inputMask:{mask:"Number"}}},RADIO:{EN:{label:"Radio",formControlName:"radio",type:"radio",options:{data:V}},"ZH-TW":{label:"\u55ae\u9078\u9078\u9805",formControlName:"radio",type:"radio",options:{data:De}}},RADIO_VERTICAL:{EN:{label:"Radio",formControlName:"radioVertical",type:"radio",options:{layout:"column",data:V}},"ZH-TW":{label:"\u55ae\u9078\u9078\u9805",formControlName:"radioVertical",type:"radio",options:{layout:"column",data:De}}},RADIO_LABEL_BEFORE:{EN:{label:"Radio",formControlName:"radioLabelBefore",type:"radio",options:{labelPosition:"before",layout:"column",data:V}},"ZH-TW":{label:"\u55ae\u9078\u9078\u9805 (\u6587\u5b57\u5728\u524d)",formControlName:"radioLabelBefore",type:"radio",options:{labelPosition:"before",layout:"column",data:De}}},RANGE:{EN:{formControlName:"range",label:"Range",type:"range",value:20,props:{min:0,max:100,step:10}},"ZH-TW":{formControlName:"range",label:"\u7bc4\u570d",type:"range",value:20,props:{min:0,max:100,step:10}}},SELECT:{EN:{label:"Select",formControlName:"select",type:"select",options:{data:[{label:"Option 1",value:0},{label:"Option 2",value:1},{label:"Option 3",value:2}]}},"ZH-TW":{label:"\u4e0b\u62c9\u9078\u55ae",formControlName:"select",type:"select",options:{data:[{label:"\u9078\u9805 1",value:0},{label:"\u9078\u9805 2",value:1},{label:"\u9078\u9805 3",value:2}]}}},SWITCH:{EN:{label:"Switch",formControlName:"switch",type:"switch",options:{data:[{label:"Label of this switch"}]}},"ZH-TW":{label:"\u958b\u95dc",formControlName:"switch",type:"switch",options:{data:[{label:"\u6b64\u958b\u95dc\u7684\u6587\u5b57"}]}}},TEXT:{EN:{label:"Text",formControlName:"text",type:"text"},"ZH-TW":zo},TEXTAREA:{EN:{label:"Textarea",formControlName:"textarea",type:"textarea",props:{rows:5}},"ZH-TW":zo}}},7004:(vn,J,F)=>{"use strict";function g(o){return"string"!=typeof o.value||!o.value.length||RegExp(/[A-Z]/).test(o.value[0])?null:{uppercase:"Make sure your first letter is uppercase"}}F.d(J,{D:()=>g})},7316:(vn,J,F)=>{"use strict";F.d(J,{Y:()=>Fe});var g=F(6610),o=F(2978),V=F(2709),oe=F(2576),De=F(3269),pe=F(863),Ee=F(7004),be=F(5494);const me=["formContent"];function Te(_t,at){if(1&_t){const Be=o.RV6();o.qex(0),o.j41(1,"button",6),o.bIt("click",function(){o.eBV(Be);const He=o.XpG(2);return o.Njj(He.reset())}),o.nrm(2,"i",8),o.k0s(),o.bVm()}}function Ve(_t,at){if(1&_t){const Be=o.RV6();o.qex(0),o.j41(1,"div",5),o.DNE(2,Te,3,0,"ng-container",1),o.j41(3,"button",6),o.bIt("click",function(){o.eBV(Be);const He=o.XpG();return o.Njj(He.showEditor?He.onConfirm():He.onEdit())}),o.nrm(4,"i",7),o.k0s()(),o.bVm()}if(2&_t){const Be=o.XpG();o.R7$(2),o.Y8G("ngIf",Be.showEditor),o.R7$(2),o.Y8G("ngClass",Be.showEditor?"bi-check-lg":"bi-pencil-square")}}const ze=function(_t){return{"opacity-0 pointer-events-none":_t}},vt=function(_t){return{json:_t}};function Re(_t,at){if(1&_t){const Be=o.RV6();o.qex(0),o.j41(1,"app-playground-editor",9),o.bIt("onEditing",function(He){o.eBV(Be);const Se=o.XpG();return o.Njj(Se.onEditorChange(He))}),o.k0s(),o.bVm()}if(2&_t){const Be=o.XpG();o.R7$(1),o.Y8G("ngClass",o.eq3(5,ze,!Be.showEditor))("mainMenuBar",!1)("statusBar",!1)("navigationBar",!1)("data",o.eq3(7,vt,Be.configsUntouched))}}const tt=function(){return["relative z-0","mt-8"]},de=function(_t){return{"min-height":_t}};let Fe=(()=>{class _t{constructor(){this._cd=(0,o.WQX)(o.gRc),this.configs=[],this.configPath="",this.showFormOnly=!1,this.minHeight="20rem",this.ui="Default",this.showEditor=!1,this.formHeight="0px",this.configsUntouched=[],this.uiComponents={Default:void 0,PrimeNg:De.j,"Angular Material":oe.G},this._editorData=null}ngOnChanges(Be){const{configs:he,configPath:He}=Be;he&&(this._parseConfigs(),this.reset()),He&&(this._loadConfigFromPath(),this.reset())}ngAfterViewInit(){this._getFormHeight()}onEditorChange(Be){this._editorData=Be}onEdit(){this.showEditor=!0}onConfirm(){this._editorData&&(this.configs=structuredClone(this._editorData)),this.showEditor=!1}reset(){const Be=structuredClone(this.configsUntouched);this.configs=Be,this._editorData=Be,this.configsUntouched=[...this.configsUntouched]}_loadConfigFromPath(){if(!this.configPath)return;const Be=this.configPath.split(".").reduce((He,Se)=>He[Se],pe.T),he=Array.isArray(Be)?Be:[Be];this.configsUntouched=[...he]}_parseConfigs(){this.configs&&("string"==typeof this.configs&&(this.configsUntouched=JSON.parse(this.configs)),Array.isArray(this.configs)&&this.configs.length>0&&(this.configsUntouched=[...this.configs]))}_getFormHeight(){this.formContent&&(this.formHeight=`${this.formContent.nativeElement.scrollHeight+1}px`,this._cd.detectChanges())}static#e=this.\u0275fac=function(he){return new(he||_t)};static#t=this.\u0275cmp=o.VBU({type:_t,selectors:[["app-doc-form-viewer"]],viewQuery:function(he,He){if(1&he&&o.GBs(me,5),2&he){let Se;o.mGM(Se=o.lsd())&&(He.formContent=Se.first)}},inputs:{configs:"configs",configPath:"configPath",showFormOnly:"showFormOnly",minHeight:"minHeight",ui:"ui"},standalone:!0,features:[o.Jv_([(0,V.E2)({customValidators:{firstUppercase:Ee.D}})]),o.OA$,o.aNF],decls:7,vars:8,consts:[[3,"ngClass"],[4,"ngIf"],[1,"content","relative","z-0",3,"ngStyle"],["formContent",""],[1,"block","p-1",3,"configs"],[1,"toolbar","absolute","z-10","-top-5","right-1","flex","gap-1"],["type","button",3,"click"],[1,"bi",3,"ngClass"],[1,"bi","bi-arrow-repeat","rotate-45"],[1,"absolute","top-0","left-0","h-full","w-full","duration-100",3,"ngClass","mainMenuBar","statusBar","navigationBar","data","onEditing"]],template:function(he,He){1&he&&(o.j41(0,"div",0),o.DNE(1,Ve,5,2,"ng-container",1),o.j41(2,"div",2)(3,"div",null,3),o.nrm(5,"ng-dynamic-json-form",4),o.k0s(),o.DNE(6,Re,2,9,"ng-container",1),o.k0s()()),2&he&&(o.Y8G("ngClass",o.lJ4(5,tt)),o.R7$(1),o.Y8G("ngIf",!He.showFormOnly),o.R7$(1),o.Y8G("ngStyle",o.eq3(6,de,He.showEditor?He.minHeight:He.formHeight)),o.R7$(3),o.Y8G("configs",He.configs),o.R7$(1),o.Y8G("ngIf",!He.showFormOnly))},dependencies:[g.MD,g.YU,g.bT,g.B3,be._,V.yz],styles:["[_nghost-%COMP%]{margin-top:1rem;margin-bottom:1rem;display:block}doc-tab[_nghost-%COMP%], doc-tab [_nghost-%COMP%]{margin-top:0;margin-bottom:0}doc-tab[_nghost-%COMP%] .content[_ngcontent-%COMP%], doc-tab [_nghost-%COMP%] .content[_ngcontent-%COMP%]{transition-duration:0s}.content[_ngcontent-%COMP%]{transition-duration:.3s}.toolbar[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:inline-flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-width:1px;border-color:var(--border-color-25);border-radius:9999px;--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}"]})}return _t})()},3090:(vn,J,F)=>{"use strict";F.d(J,{e:()=>Ve});var g=F(6409),o=F(2978),V=F(5981),oe=F(756),De=F(3527),pe=F(7236),Ee=F(6347),be=F(4526),me=F(4183),Te=F(1938);let Ve=(()=>{class ze{constructor(){this._renderer2=(0,o.WQX)(o._9s).createRenderer(null,null),this._http=(0,o.WQX)(g.Qq),this._transferState=(0,o.WQX)(o.pJN),this._versionService=(0,o.WQX)(Te.I),this._languageDataService=(0,o.WQX)(me.g),this._docCache=[],this.docLoading$=new V.t(!1)}loadDoc$(Re){Re.startsWith("docs/")&&(Re=Re.replace("docs/",""));const tt=this._docCache.find(Se=>Se.path===Re&&Se.data)?.data;if(tt)return(0,oe.of)(tt);const de=this._versionService.docVersion,Fe=this._languageDataService.selectedLanguage,_t=Re.split("/"),at=`${_t[_t.length-1]}_${Fe}.md`,he=`assets/docs/${de}/${Re.endsWith(".md")?Re:`${Re}/${at}`}`,He=(0,o.zw6)(he);return this._transferState.hasKey(He)?(0,oe.of)(this._transferState.get(He,"")):(this.docLoading$.next(!0),this._http.get(he,{responseType:"text",observe:"response"}).pipe((0,De.T)(Se=>{if((Se.headers.get("Content-Type")??"").indexOf("text/markdown")<0)throw"Content not found";return Se.body??""}),(0,pe.M)(Se=>{this._docCache.some(it=>it.path===Re)||(this._docCache.push({path:Re,data:Se}),this._transferState.set(He,Se))}),(0,Ee.j)(()=>this.docLoading$.next(!1)),(0,be.W)(Se=>{throw Se})))}clearCache(){this._docCache=[]}firstContentPath$(Re=!1){const de=this._versionService.docVersion,Fe=`assets/docs/${de}/index_${Re?"en":this._languageDataService.selectedLanguage}.md`,_t=(0,o.zw6)(Fe);return(()=>this._transferState.hasKey(_t)?(0,oe.of)(this._transferState.get(_t,"")):this._http.get(Fe,{responseType:"text"}).pipe((0,pe.M)(Be=>this._transferState.set(_t,Be))))().pipe((0,De.T)(Be=>{const he=Be.match(/(\.+\/){1,}.+\.md/)?.[0],Se=(he?.match(/(\.*\/){1,}/)?.[0]||"")+de+"/";return he?.replace(Se,"docs/")??""}),(0,be.W)(()=>this.firstContentPath$(!0)))}wrapTable(){typeof window>"u"||window.setTimeout(()=>{const Re=Array.from(document.querySelectorAll("table"));for(const tt of Re){const de=document.createElement("div"),Fe=tt.cloneNode(!0);tt.parentElement?.classList.contains("table-wrapper")||(de.classList.add("table-wrapper"),de.appendChild(Fe),this._renderer2.appendChild(de,Fe),this._renderer2.insertBefore(tt.parentElement,de,tt),tt.remove())}})}static#e=this.\u0275fac=function(tt){return new(tt||ze)};static#t=this.\u0275prov=o.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})()},4183:(vn,J,F)=>{"use strict";F.d(J,{g:()=>Ee});var g=F(6610),o=F(6409),V=F(2978),oe=F(5981),De=F(756),pe=F(7236);let Ee=(()=>{class be{constructor(){this._http=(0,V.WQX)(o.Qq),this._transferState=(0,V.WQX)(V.pJN),this._location=(0,V.WQX)(g.aZ),this._defaultLanguage="en",this._language$=new oe.t(this._defaultLanguage),this._cache=[],this.languageList=["zh-TW","en"],this.i18nContent$=new oe.t({})}setLanguage(Te){Te!==this._language$.value&&this._language$.next(Te)}setCurrentLanguage(){this.setLanguage(this.currentLanguage)}loadLanguageData$(Te){const Ve=Te??this.currentLanguage,ze=`assets/i18n/${Ve}.json`,vt=(0,V.zw6)(ze),Re=this._cache.find(de=>de.lang===Ve)?.data;return(()=>this._transferState.hasKey(vt)?(0,De.of)(this._transferState.get(vt,"")):Re?(0,De.of)(Re):this._http.get(ze,{responseType:"json"}))().pipe((0,pe.M)(de=>{de&&(this.setLanguage(Ve),this.i18nContent$.next(de),this._cache.push({lang:Ve,data:de}),this._userLanguage=Ve,this._transferState.set(vt,de))}))}get language$(){return this._language$.asObservable()}get languageFromUrl(){return this._location.path().match(/_.+\.md$/)?.[0].substring(1).replace(".md","")}get selectedLanguage(){return this._language$.value}get currentLanguage(){return this.languageFromUrl??this._userLanguage}set _userLanguage(Te){typeof window>"u"||window.localStorage.setItem("language",Te)}get _userLanguage(){if(typeof window>"u")return"en";const Te=window.navigator.language,ze=window.localStorage.getItem("language")??Te;return ze.includes("en")?"en":ze.includes("zh")?"zh-TW":"en"}static#e=this.\u0275fac=function(Ve){return new(Ve||be)};static#t=this.\u0275prov=V.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})()},5494:(vn,J,F)=>{"use strict";F.d(J,{_:()=>mUe});var g={};F.r(g),F.d(g,{add:()=>No,after:()=>Rt,ary:()=>Qd,assign:()=>P7,assignIn:()=>sf,assignInWith:()=>I4,assignWith:()=>O4,at:()=>N4,attempt:()=>_6,before:()=>b6,bind:()=>C6,bindAll:()=>W3,bindKey:()=>jm,camelCase:()=>N6,capitalize:()=>R2,castArray:()=>c8,ceil:()=>j6,chain:()=>Of,chunk:()=>d8,clamp:()=>B6,clone:()=>Wy,cloneDeep:()=>n3,cloneDeepWith:()=>s9,cloneWith:()=>Xy,commit:()=>x8,compact:()=>uD,concat:()=>o9,cond:()=>vC,conforms:()=>g9,conformsTo:()=>_9,constant:()=>Pl,countBy:()=>w9,create:()=>p4,curry:()=>H8,curryRight:()=>TC,debounce:()=>u0,deburr:()=>I6,default:()=>xce,defaultTo:()=>k9,defaults:()=>OC,defaultsDeep:()=>D9,defer:()=>PC,delay:()=>Xf,difference:()=>cp,differenceBy:()=>V9,differenceWith:()=>BC,divide:()=>lp,drop:()=>O9,dropRight:()=>H9,dropRightWhile:()=>L9,dropWhile:()=>qC,each:()=>F8,eachRight:()=>dp,endsWith:()=>YC,entries:()=>Yf,entriesIn:()=>Ed,eq:()=>Yl,escape:()=>B8,escapeRegExp:()=>sx,every:()=>fp,extend:()=>sf,extendWith:()=>I4,fill:()=>F9,filter:()=>ux,find:()=>U9,findIndex:()=>$9,findKey:()=>th,findLast:()=>q9,findLastIndex:()=>W9,findLastKey:()=>px,first:()=>G2,flatMap:()=>X9,flatMapDeep:()=>gx,flatMapDepth:()=>nh,flatten:()=>ag,flattenDeep:()=>_x,flattenDepth:()=>bT,flip:()=>yx,floor:()=>ih,flow:()=>Sx,flowRight:()=>Y9,forEach:()=>F8,forEachRight:()=>dp,forIn:()=>Ex,forInRight:()=>q8,forOwn:()=>Q9,forOwnRight:()=>Dx,fromPairs:()=>Tx,functions:()=>Vx,functionsIn:()=>J9,get:()=>z4,groupBy:()=>rh,gt:()=>tv,gte:()=>Ox,has:()=>rv,hasIn:()=>ip,head:()=>G2,identity:()=>ge,inRange:()=>av,includes:()=>Nx,indexOf:()=>lv,initial:()=>Ls,intersection:()=>dv,intersectionBy:()=>fv,intersectionWith:()=>$x,invert:()=>pv,invertBy:()=>YT,invoke:()=>Kx,invokeMap:()=>Yx,isArguments:()=>Oo,isArray:()=>rr,isArrayBuffer:()=>ah,isArrayLike:()=>tr,isArrayLikeObject:()=>Kc,isBoolean:()=>Jx,isBuffer:()=>Dc,isDate:()=>ew,isElement:()=>_v,isEmpty:()=>Zs,isEqual:()=>zs,isEqualWith:()=>yv,isError:()=>B4,isFinite:()=>Cv,isFunction:()=>ne,isInteger:()=>xv,isLength:()=>Si,isMap:()=>Nf,isMatch:()=>e5,isMatchWith:()=>t5,isNaN:()=>sw,isNative:()=>Ev,isNil:()=>uw,isNull:()=>Dv,isNumber:()=>Sv,isObject:()=>Lr,isObjectLike:()=>Kn,isPlainObject:()=>j4,isRegExp:()=>n5,isSafeInteger:()=>fV,isSet:()=>b8,isString:()=>oh,isSymbol:()=>Mo,isTypedArray:()=>V4,isUndefined:()=>r5,isWeakMap:()=>hV,isWeakSet:()=>s5,iteratee:()=>vw,join:()=>Vv,kebabCase:()=>bp,keyBy:()=>bV,keys:()=>Nc,keysIn:()=>wl,last:()=>Ur,lastIndexOf:()=>Iv,lodash:()=>ot,lowerCase:()=>xV,lowerFirst:()=>MV,lt:()=>Lv,lte:()=>Cw,map:()=>pp,mapKeys:()=>zv,mapValues:()=>Rv,matches:()=>Nv,matchesProperty:()=>Pv,max:()=>jv,maxBy:()=>VV,mean:()=>IV,meanBy:()=>a5,memoize:()=>$3,merge:()=>Tw,mergeWith:()=>U2,method:()=>Vw,methodOf:()=>OV,min:()=>Fv,minBy:()=>uh,mixin:()=>Aw,multiply:()=>dh,negate:()=>fh,next:()=>$v,noop:()=>Oi,now:()=>L8,nth:()=>Ow,nthArg:()=>Hw,omit:()=>B1,omitBy:()=>Wv,once:()=>d5,orderBy:()=>rA,over:()=>h5,overArgs:()=>Kv,overEvery:()=>xp,overSome:()=>Yv,pad:()=>Jw,padEnd:()=>Zw,padStart:()=>t_,parseInt:()=>n_,partial:()=>_5,partialRight:()=>iM,partition:()=>rM,pick:()=>sM,pickBy:()=>Cp,plant:()=>b5,property:()=>Wf,propertyOf:()=>o_,pull:()=>lM,pullAll:()=>mh,pullAllBy:()=>a_,pullAllWith:()=>dM,pullAt:()=>fM,random:()=>AA,range:()=>v,rangeRight:()=>k,rearg:()=>Y,reduce:()=>ln,reduceRight:()=>Ui,reject:()=>_i,remove:()=>eo,repeat:()=>$1,replace:()=>h0,rest:()=>pM,result:()=>TR,reverse:()=>mM,round:()=>VR,sample:()=>IR,sampleSize:()=>OR,set:()=>HR,setWith:()=>LR,shuffle:()=>zR,size:()=>RR,slice:()=>NR,snakeCase:()=>PR,some:()=>jR,sortBy:()=>HA,sortedIndex:()=>FR,sortedIndexBy:()=>BR,sortedIndexOf:()=>$R,sortedLastIndex:()=>UR,sortedLastIndexBy:()=>GR,sortedLastIndexOf:()=>WR,sortedUniq:()=>XR,sortedUniqBy:()=>KR,split:()=>YR,spread:()=>QR,startCase:()=>JR,startsWith:()=>ZR,stubArray:()=>en,stubFalse:()=>N1,stubObject:()=>eN,stubString:()=>tN,stubTrue:()=>nN,subtract:()=>iN,sum:()=>rN,sumBy:()=>sN,tail:()=>oN,take:()=>aN,takeRight:()=>cN,takeRightWhile:()=>lN,takeWhile:()=>uN,tap:()=>dN,template:()=>gN,templateSettings:()=>_M,throttle:()=>vN,thru:()=>x5,times:()=>RA,toArray:()=>Bv,toFinite:()=>co,toInteger:()=>qr,toIterator:()=>NA,toJSON:()=>wp,toLength:()=>U8,toLower:()=>bN,toNumber:()=>vs,toPairs:()=>Yf,toPairsIn:()=>Ed,toPath:()=>yN,toPlainObject:()=>N8,toSafeInteger:()=>xN,toString:()=>jo,toUpper:()=>wN,transform:()=>MN,trim:()=>EN,trimEnd:()=>DN,trimStart:()=>TN,truncate:()=>VN,unary:()=>AN,unescape:()=>ON,union:()=>HN,unionBy:()=>LN,unionWith:()=>zN,uniq:()=>RN,uniqBy:()=>NN,uniqWith:()=>PN,uniqueId:()=>vh,unset:()=>jN,unzip:()=>yM,unzipWith:()=>PA,update:()=>BN,updateWith:()=>$N,upperCase:()=>UN,upperFirst:()=>bf,value:()=>wp,valueOf:()=>wp,values:()=>o3,valuesIn:()=>GN,without:()=>WN,words:()=>Q4,wrap:()=>qN,wrapperAt:()=>XN,wrapperChain:()=>KN,wrapperCommit:()=>x8,wrapperLodash:()=>ot,wrapperNext:()=>$v,wrapperPlant:()=>b5,wrapperReverse:()=>YN,wrapperToIterator:()=>NA,wrapperValue:()=>wp,xor:()=>QN,xorBy:()=>JN,xorWith:()=>ZN,zip:()=>eP,zipObject:()=>nP,zipObjectDeep:()=>iP,zipWith:()=>rP});var o=F(6610),V=F(2978),oe=F(7212),De=F(6104),pe=F(3229),Ee=F(8486),be=F(7236),me=F(6340),Te=F(8129),Ve=F(3527),ze=F(3793),vt=F(2489),Re=F(3503);function tt(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function de(t){return t.map(Fe).join("")}function Fe(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function _t(t,e){return t+Fe(e)}function at(t,e){return t.startsWith(e)&&(t.length===e.length||"/"===t[e.length])}function Be(t){return Array.isArray(t)}function he(t){return null!==t&&"object"==typeof t&&(void 0===t.constructor||"Object"===t.constructor.name)}function Se(t){return!(!t||"object"!=typeof t)&&"add"===t.op}function it(t){return!(!t||"object"!=typeof t)&&"remove"===t.op}function dt(t){return!(!t||"object"!=typeof t)&&"replace"===t.op}function jt(t){return!(!t||"object"!=typeof t)&&"copy"===t.op}function Wt(t){return!(!t||"object"!=typeof t)&&"move"===t.op}function di(t,e){return t===e}function ai(t){return t.slice(0,t.length-1)}function Hr(t){return"object"==typeof t&&null!==t}function ui(t){if(Be(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}if(he(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}return t}function dn(t,e,n){if(t[e]===n)return t;{const i=ui(t);return i[e]=n,i}}function nt(t,e){let n=t,i=0;for(;i3&&void 0!==arguments[3]&&arguments[3];if(0===e.length)return n;const r=e[0],s=ht(t?t[r]:void 0,e.slice(1),n,i);if(he(t)||Be(t))return dn(t,r,s);if(i){const a=Je.test(r)?[]:{};return a[r]=s,a}throw new Error("Path does not exist")}const Je=/^\d+$/;function Ae(t,e,n){if(0===e.length)return n(t);if(!Hr(t))throw new Error("Path doesn't exist");const i=e[0];return dn(t,i,Ae(t[i],e.slice(1),n))}function Ue(t,e){if(0===e.length)return t;if(!Hr(t))throw new Error("Path does not exist");if(1===e.length){const r=e[0];if(r in t){const s=ui(t);return Be(s)&&s.splice(parseInt(r),1),he(s)&&delete s[r],s}return t}const n=e[0];return dn(t,n,Ue(t[n],e.slice(1)))}function Ze(t,e,n){const i=e.slice(0,e.length-1),r=e[e.length-1];return Ae(t,i,s=>{if(!Array.isArray(s))throw new TypeError("Array expected at path "+JSON.stringify(i));const a=ui(s);return a.splice(parseInt(r),0,n),a})}function te(t,e){return void 0!==t&&(0===e.length||null!==t&&te(t[e[0]],e.slice(1)))}function xe(t,e,n){let i=t;for(let r=0;r{let u;const d=ci(s,a.path);if("add"===a.op)u=Qn(s,d);else if("remove"===a.op)u=On(s,d);else if("replace"===a.op)u=cn(s,d);else if("copy"===a.op)u=function fi(t,e){return Qn(t,e)}(s,d);else if("move"===a.op)u=function qe(t,e,n){if(e.length2&&void 0!==arguments[2]?arguments[2]:di;if(t.length=jn&&t<=kn||t>=ft&&t<=Di||t>=Pt&&t<=nr}function Vr(t){return t>=jn&&t<=kn}function Gs(t){return t>=32&&t<=1114111}function Fr(t){return is.test(t)}const is=/^[,:[\]/{}()\n+]$/;function Ro(t){return Fr(t)&&"/"!==t}function Zo(t){return Vo.test(t)||t&&xo(t.charCodeAt(0))}const Vo=/^[[{\w-]$/;function qo(t){return t===so||t===qa||t===zo||t===xc||t===mo}function ea(t){return t===Ys||t===so||t===zo||t===qa}function oo(t){return t===tn||t>=Tt&&t<=Kt||t===Vn||t===qn||t===pi}function xo(t){return ta(t)||Ma(t)}function ta(t){return t===Ss||t===ti||t===Ni}function Ps(t){return t===Ss}function Ma(t){return t===ic||t===ii||t===lr||t===Gr||t===xs}function ws(t){return t===ic}function La(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=t.lastIndexOf(e);return-1!==i?t.substring(0,i)+(n?"":t.substring(i+1)):t}function ao(t,e){let n=t.length;if(!ea(t.charCodeAt(n-1)))return t+e;for(;ea(t.charCodeAt(n-1));)n--;return t.substring(0,n)+e+t.substring(n)}function l1(t,e,n){return t.substring(0,e)+t.substring(e+n)}const Ol={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},pl={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function na(t){let e=0,n="";s()||function kt(){throw new Bt("Unexpected end of json string",t.length)}();const r=m(It);for(r&&a(),Zo(t[e])&&function Hc(t){return/[,\n][ \t\r]*$/.test(t)}(n)?(r||(n=ao(n,",")),function D(){let ut=!0,Ut=!0;for(;Ut;)ut?ut=!1:m(It)||(n=ao(n,",")),Ut=s();Ut||(n=La(n,",")),n="[\n".concat(n,"\n]")}()):r&&(n=La(n,","));t.charCodeAt(e)===Qi||t.charCodeAt(e)===no;)e++,a();if(e>=t.length)return n;function s(){a();const ut=function x(){if(t.charCodeAt(e)===ni){n+="{",e++,a();let ut=!0;for(;e=t.length;Lt||(Zo(t[e])||et?n=ao(n,":"):wt()),s()||(Lt||et?n+="null":wt())}return t.charCodeAt(e)===Qi?(n+="}",e++):n=ao(n,"}"),!0}return!1}()||function S(){if(t.charCodeAt(e)===dr){n+="[",e++,a();let ut=!0;for(;eut){const Ut=t.slice(ut,e),$t=/^0\d/.test(Ut);return n+=$t?'"'.concat(Ut,'"'):Ut,!0}return!1}()||function re(){return se("true","true")||se("false","false")||se("null","null")||se("True","true")||se("False","false")||se("None","null")}()||ke();return a(),ut}function a(){const ut=e;let Ut=u();do{Ut=d(),Ut&&(Ut=u())}while(Ut);return e>ut}function u(){let Ut,ut="";for(;(Ut=ea(t.charCodeAt(e)))||oo(t.charCodeAt(e));)ut+=Ut?t[e]:" ",e++;return ut.length>0&&(n+=ut,!0)}function d(){if(t.charCodeAt(e)===Mn&&t.charCodeAt(e+1)===Vi){for(;e0&&void 0!==arguments[0]&&arguments[0],Ut=t.charCodeAt(e)===hn;if(Ut&&(e++,Ut=!0),xo(t.charCodeAt(e))){const $t=Ps(t.charCodeAt(e))?Ps:ws(t.charCodeAt(e))?ws:Ma(t.charCodeAt(e))?Ma:ta,Lt=e,et=n.length;let st='"';for(e++;;){if(e>=t.length){const gt=ye(e-1);return!ut&&Fr(t.charAt(gt))?(e=Lt,n=n.substring(0,et),z(!0)):(st=ao(st,'"'),n+=st,!0)}if($t(t.charCodeAt(e))){const gt=e,sn=st.length;if(st+='"',e++,n+=st,a(),ut||e>=t.length||Fr(t.charAt(e))||xo(t.charCodeAt(e))||Vr(t.charCodeAt(e)))return $(),!0;if(Fr(t.charAt(ye(gt-1))))return e=Lt,n=n.substring(0,et),z(!0);n=n.substring(0,et),e=gt+1,st=st.substring(0,sn)+"\\"+st.substring(sn)}else{if(ut&&Fr(t[e]))return st=ao(st,'"'),n+=st,$(),!0;if(t.charCodeAt(e)===hn){const gt=t.charAt(e+1);if(void 0!==pl[gt])st+=t.slice(e,e+2),e+=2;else if("u"===gt){let Hn=2;for(;Hn<6&&ks(t.charCodeAt(e+Hn));)Hn++;6===Hn?(st+=t.slice(e,e+6),e+=6):e+Hn>=t.length?e=t.length:Dt()}else st+=gt,e+=2}else{const gt=t.charAt(e),sn=t.charCodeAt(e);sn===Ss&&t.charCodeAt(e-1)!==hn?(st+="\\"+gt,e++):qo(sn)?(st+=Ol[gt],e++):(Gs(sn)||Vt(gt),st+=gt,e++)}}Ut&&function _(ut){t.charCodeAt(e)===ut&&e++}(hn)}}return!1}function $(){let ut=!1;for(a();t.charCodeAt(e)===io;){ut=!0,e++,a(),n=La(n,'"',!0);const Ut=n.length;n=z()?l1(n,Ut,1):ao(n,'"')}return ut}function se(ut,Ut){return t.slice(e,e+ut.length)===ut&&(n+=Ut,e+=ut.length,!0)}function ke(){const ut=e;for(;eut){if(t.charCodeAt(e)===Jr)return e++,s(),t.charCodeAt(e)===Ki&&(e++,t.charCodeAt(e)===yt&&e++),!0;{for(;ea(t.charCodeAt(e-1))&&e>0;)e--;const Ut=t.slice(ut,e);return n+="undefined"===Ut?"null":JSON.stringify(Ut),t.charCodeAt(e)===Ss&&e++,!0}}}function ye(ut){let Ut=ut;for(;Ut>0&&ea(t.charCodeAt(Ut));)Ut--;return Ut}function Ye(){return e>=t.length||Fr(t[e])||ea(t.charCodeAt(e))}function lt(ut){n+=t.slice(ut,e)+"0"}function Vt(ut){throw new Bt("Invalid character "+JSON.stringify(ut),e)}function qt(){throw new Bt("Object key expected",e)}function wt(){throw new Bt("Colon expected",e)}function Dt(){const ut=t.slice(e,e+6);throw new Bt('Invalid unicode character "'.concat(ut,'"'),e)}!function Nt(){throw new Bt("Unexpected character "+JSON.stringify(t[e]),e)}()}function Z1(t,e){return"*"===t[e]&&"/"===t[e+1]}const ql="object"==typeof global&&global&&global.Object===Object&&global;var go="object"==typeof self&&self&&self.Object===Object&&self;const Ws=ql||go||Function("return this")(),As=Ws.Symbol;var wo=Object.prototype,nl=wo.hasOwnProperty,Ka=wo.toString,hc=As?As.toStringTag:void 0;var Ao=Object.prototype.toString;var gr=As?As.toStringTag:void 0;const Wr=function il(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":gr&&gr in Object(t)?function Xr(t){var e=nl.call(t,hc),n=t[hc];try{t[hc]=void 0;var i=!0}catch{}var r=Ka.call(t);return i&&(e?t[hc]=n:delete t[hc]),r}(t):function ca(t){return Ao.call(t)}(t)},Kn=function yi(t){return null!=t&&"object"==typeof t},Mo=function Sa(t){return"symbol"==typeof t||Kn(t)&&"[object Symbol]"==Wr(t)},Is=function ka(t){return"number"==typeof t?t:Mo(t)?NaN:+t},Es=function wc(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},qc=Gd(Xl);var ru=/\{\n\/\* \[wrapped with (.+)\] \*/,Wd=/,? & /;var su=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Pl=function ou(t){return function(){return t}};var x1=function(){try{var t=Rl(Object,"defineProperty");return t({},"",{}),t}catch{}}();const f1=x1;var ad=f1?function(t,e){return f1(t,"toString",{configurable:!0,enumerable:!1,value:Pl(e),writable:!0})}:ge;const Au=Gd(ad),Cl=function qd(t,e){for(var n=-1,i=null==t?0:t.length;++n-1};var Xe=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const R=function B(t,e,n){var i=e+"";return Au(t,function Vu(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(su,"{\n/* [wrapped with "+e+"] */\n")}(i,function Ft(t,e){return Cl(Xe,function(n){var i="_."+n[0];e&n[1]&&!ol(t,i)&&t.push(i)}),t.sort()}(function n2(t){var e=t.match(ru);return e?e[1].split(Wd):[]}(i),n)))},Ji=function Ci(t,e,n,i,r,s,a,u,d,m){var _=8&e;e|=_?32:64,4&(e&=~(_?64:32))||(e&=-4);var z=[t,e,r,_?s:void 0,_?a:void 0,_?void 0:s,_?void 0:a,u,d,m],$=n.apply(void 0,z);return ac(t)&&qc($,z),$.placeholder=i,R($,t,e)},Ar=function ls(t){return t.placeholder};var al=/^(?:0|[1-9]\d*)$/;const Ko=function Xo(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&al.test(t))&&t>-1&&t%1==0&&t1&&re.reverse(),_&&d-1&&t%1==0&&t<=9007199254740991},tr=function Zi(t){return null!=t&&Si(t.length)&&!ne(t)},kr=function fs(t,e,n){if(!Lr(n))return!1;var i=typeof e;return!!("number"==i?tr(n)&&Ko(e,n.length):"string"==i&&e in n)&&Yl(n[e],t)},fo=function Eo(t){return Qe(function(e,n){var i=-1,r=n.length,s=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(r--,s):void 0,a&&kr(n[0],n[1],a)&&(s=r<3?void 0:s,r=1),e=Object(e);++i-1},H2.prototype.set=function a6(t,e){var n=this.__data__,i=o6(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};const n4=H2,i4=Rl(Ws,"Map"),c6=function J7(t,e){var n=t.__data__;return function Y7(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map};function r4(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0&&n(u)?e>1?R4(u,e-1,n,i,r):hu(r,u):i||(r[r.length]=u)}return r},ag=function ny(t){return null!=t&&t.length?p1(t,1):[]},pu=function iy(t){return Au(T(t,void 0,ag),t+"")},N4=pu(Om),P4=t6(Object.getPrototypeOf,Object);var gd=Function.prototype.toString,Rm=Object.prototype.hasOwnProperty,cg=gd.call(Object);const j4=function lg(t){if(!Kn(t)||"[object Object]"!=Wr(t))return!1;var e=P4(t);if(null===e)return!0;var n=Rm.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&gd.call(n)==cg},B4=function F4(t){if(!Kn(t))return!1;var e=Wr(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!j4(t)};var Nm=Qe(function(t,e){try{return Sc(t,void 0,e)}catch(n){return B4(n)?n:new Error(n)}});const _6=Nm,b6=function fg(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=qr(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}};var y6=Qe(function(t,e,n){var i=1;if(n.length){var r=Rc(n,Ar(y6));i|=32}return A2(t,i,e,n,r)});y6.placeholder={};const C6=y6;var pg=pu(function(t,e){return Cl(e,function(n){n=fu(n),uu(t,n,C6(t[n],t))}),t});const W3=pg;var q3=Qe(function(t,e,n){var i=3;if(n.length){var r=Rc(n,Ar(q3));i|=32}return A2(e,i,t,n,r)});q3.placeholder={};const jm=q3,z2=function ry(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++i=i?t:z2(t,e,n)};var bg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Bu=function Fm(t){return bg.test(t)};var $m="\\ud800-\\udfff",qm="["+$m+"]",S6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",k6="\\ud83c[\\udffb-\\udfff]",E6="[^"+$m+"]",Cg="(?:\\ud83c[\\udde6-\\uddff]){2}",xg="[\\ud800-\\udbff][\\udc00-\\udfff]",U4="(?:"+S6+"|"+k6+")?",D6="[\\ufe0e\\ufe0f]?",T6=D6+U4+"(?:\\u200d(?:"+[E6,Cg,xg].join("|")+")"+D6+U4+")*",V6="(?:"+[E6+S6+"?",S6,Cg,xg,qm].join("|")+")",wg=RegExp(k6+"(?="+k6+")|"+V6+T6,"g");const mu=function _f(t){return Bu(t)?function Km(t){return t.match(wg)||[]}(t):function Bm(t){return t.split("")}(t)},Mg=function Qm(t){return function(e){e=jo(e);var n=Bu(e)?mu(e):void 0,i=n?n[0]:e.charAt(0),r=n?Fu(n,1).join(""):e.slice(1);return i[t]()+r}},bf=Mg("toUpperCase"),R2=function G4(t){return bf(jo(t).toLowerCase())},W4=function Sg(t,e,n,i){var r=-1,s=null==t?0:t.length;for(i&&s&&(n=t[++r]);++r=e?t:e)),t},B6=function f8(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=vs(n))==n?n:0),void 0!==e&&(e=(e=vs(e))==e?e:0),Z4(vs(t),e,n)};function u4(t){var e=this.__data__=new n4(t);this.size=e.size}u4.prototype.clear=function P2(){this.__data__=new n4,this.size=0},u4.prototype.delete=function my(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},u4.prototype.get=function yd(t){return this.__data__.get(t)},u4.prototype.has=function zg(t){return this.__data__.has(t)},u4.prototype.set=function U6(t,e){var n=this.__data__;if(n instanceof n4){var i=n.__data__;if(!i4||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new du(i)}return n.set(t,e),this.size=n.size,this};const e3=u4,Ml=function G6(t,e){return t&&Le(e,Nc(e),t)};var Pg="object"==typeof exports&&exports&&!exports.nodeType&&exports,jg=Pg&&"object"==typeof module&&module&&!module.nodeType&&module,E=jg&&jg.exports===Pg?Ws.Buffer:void 0,O=E?E.allocUnsafe:void 0;const b=function h(t,e){if(e)return t.slice();var n=t.length,i=O?O(n):new t.constructor(n);return t.copy(i),i},G=function w(t,e){for(var n=-1,i=null==t?0:t.length,r=0,s=[];++nu))return!1;var m=s.get(t),_=s.get(e);if(m&&_)return m==e&&_==t;var y=-1,x=!0,S=2&n?new B2:void 0;for(s.set(t,e),s.set(e,t);++y=e||lt<0||y&&Ye-m>=s}function W(){var Ye=L8();if($(Ye))return re(Ye);u=setTimeout(W,function z(Ye){var Nt=e-(Ye-d);return y?HD(Nt,s-(Ye-m)):Nt}(Ye))}function re(Ye){return u=void 0,x&&i?S(Ye):(i=r=void 0,a)}function ye(){var Ye=L8(),lt=$(Ye);if(i=arguments,r=this,d=Ye,lt){if(void 0===u)return function D(Ye){return m=Ye,u=setTimeout(W,e),_?S(Ye):a}(d);if(y)return clearTimeout(u),u=setTimeout(W,e),S(d)}return void 0===u&&(u=setTimeout(W,e)),a}return e=vs(e)||0,Lr(n)&&(_=!!n.leading,s=(y="maxWait"in n)?OD(vs(n.maxWait)||0,e):s,x="trailing"in n?!!n.trailing:x),ye.cancel=function se(){void 0!==u&&clearTimeout(u),m=0,i=d=r=u=void 0},ye.flush=function ke(){return void 0===u?a:re(L8())},ye},k9=function Fl(t,e){return null==t||t!=t?e:t};var AC=Object.prototype,LD=AC.hasOwnProperty,IC=Qe(function(t,e){t=Object(t);var n=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&kr(e[0],e[1],r)&&(i=1);++n=200&&(s=i3,a=!1,e=new B2(e));e:for(;++r=0&&t.slice(n,r)==e},R9=function ix(t){return function(e){var n=Cd(e);return"[object Map]"==n?r3(e):"[object Set]"==n?function ZC(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=[i,i]}),n}(e):function QC(t,e){return Es(e,function(n){return[n,t[n]]})}(e,t(e))}},Yf=R9(Nc),Ed=R9(wl),Qf=q4({"&":"&","<":"<",">":">",'"':""","'":"'"});var nT=/[&<>"']/g,P9=RegExp(nT.source);const B8=function Nz(t){return(t=jo(t))&&P9.test(t)?t.replace(nT,Qf):t};var j9=/[\\^$.*+?()[\]{}|]/g,Pz=RegExp(j9.source);const sx=function Jf(t){return(t=jo(t))&&Pz.test(t)?t.replace(j9,"\\$&"):t},ox=function iT(t,e){for(var n=-1,i=null==t?0:t.length;++nr?0:r+n),(i=void 0===i||i>r?r:qr(i))<0&&(i+=r),i=n>i?0:U8(i);n-1?r[s?e[a]:a]:void 0}};var cT=Math.max;const $9=function lT(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:qr(n);return r<0&&(r=cT(i+r,0)),Iu(t,Ms(e),r)},U9=eh($9),G9=function dx(t,e,n){var i;return n(t,function(r,s,a){if(e(r,s,a))return i=s,!1}),i},th=function uT(t,e){return G9(t,Ms(e),wd)};var hp=Math.max,dT=Math.min;const W9=function fT(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i-1;return void 0!==n&&(r=qr(n),r=n<0?hp(i+r,0):dT(r,i-1)),Iu(t,Ms(e),r,!0)},q9=eh(W9),px=function hx(t,e){return G9(t,Ms(e),z9)},G2=function mx(t){return t&&t.length?t[0]:void 0},pT=function hT(t,e){var n=-1,i=tr(t)?Array(t.length):[];return Md(t,function(r,s,a){i[++n]=e(r,s,a)}),i},pp=function Fz(t,e){return(rr(t)?Es:pT)(t,Ms(e))},X9=function Bz(t,e){return p1(pp(t,e),1)},gx=function mT(t,e){return p1(pp(t,e),1/0)},nh=function vx(t,e,n){return n=void 0===n?1:qr(n),p1(pp(t,e),n)},_x=function vT(t){return null!=t&&t.length?p1(t,1/0):[]},bT=function _T(t,e){return null!=t&&t.length?(e=void 0===e?1:qr(e),p1(t,e)):[]},yx=function bx(t){return A2(t,512)},ih=u8("floor"),Mx=function wx(t){return pu(function(e){var n=e.length,i=n,r=kc.prototype.thru;for(t&&e.reverse();i--;){var s=e[i];if("function"!=typeof s)throw new TypeError("Expected a function");if(r&&!a&&"wrapper"==Fa(s))var a=new kc([],!0)}for(i=a?i:n;++ie},sh=function LT(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=vs(e),n=vs(n)),t(e,n)}},tv=sh(Z9);var nv=sh(function(t,e){return t>=e});const Ox=nv;var iv=Object.prototype.hasOwnProperty;const Hx=function RT(t,e){return null!=t&&iv.call(t,e)},rv=function d0(t,e){return null!=t&&fC(t,e,Hx)};var NT=Math.max,$z=Math.min;const av=function PT(t,e,n){return e=co(e),void 0===n?(n=e,e=0):n=co(n),function sv(t,e,n){return t>=$z(e,n)&&t-1:!!r&&w1(t,e,n)>-1};var BT=Math.max;const lv=function $T(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:qr(n);return r<0&&(r=BT(i+r,0)),w1(t,e,r)},Ls=function Uz(t){return null!=t&&t.length?z2(t,0,-1):[]};var UT=Math.min;const Px=function GT(t,e,n){for(var i=n?j8:ol,r=t[0].length,s=t.length,a=s,u=Array(s),d=1/0,m=[];a--;){var _=t[a];a&&e&&(_=Es(_,h1(e))),d=UT(_.length,d),u[a]=!n&&(e||r>=120&&_.length>=120)?new B2(a&&_):void 0}_=t[0];var y=-1,x=u[0];e:for(;++y=-pw&&t<=pw},r5=function mw(t){return void 0===t},hV=function Yz(t){return Kn(t)&&"[object WeakMap]"==Cd(t)},s5=function pV(t){return Kn(t)&&"[object WeakSet]"==Wr(t)},vw=function gw(t){return Ms("function"==typeof t?t:f4(t,1))};var vV=Array.prototype.join;const Vv=function Tv(t,e){return null==t?"":vV.call(t,e)};var _V=J4(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});const bp=_V;var Av=op(function(t,e,n){uu(t,n,e)});const bV=Av;var bw=Math.max,lh=Math.min;const Iv=function CV(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=i;return void 0!==n&&(r=(r=qr(n))<0?bw(i+r,0):lh(r,i-1)),e==e?function _w(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,r):Iu(t,Fs,r,!0)};var Ov=J4(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()});const xV=Ov,MV=Mg("toLowerCase"),Hv=function SV(t,e){return t=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Iw=function GV(t,e){var n=t.length;if(n)return Ko(e+=e<0?n:0,n)?t[e]:void 0},Ow=function WV(t,e){return t&&t.length?Iw(t,qr(e)):void 0},Hw=function qV(t){return t=qr(t),Qe(function(e){return Iw(e,t)})},u5=function XV(t,e){return e=Pu(e,t),null==(t=gv(t,e))||delete t[fu(Ur(e))]},KV=function Uv(t){return j4(t)?void 0:t};var rR=pu(function(t,e){var n={};if(null==t)return n;var i=!1;e=Es(e,function(s){return s=Pu(s,t),i||(i=s.length>1),s}),Le(t,m8(t),n),i&&(n=f4(n,7,KV));for(var r=e.length;r--;)u5(n,e[r]);return n});const B1=rR,hh=function Rw(t,e,n,i){if(!Lr(t))return t;for(var r=-1,s=(e=Pu(e,t)).length,a=s-1,u=t;null!=u&&++re||s&&a&&d&&!u&&!m||i&&a&&d||!n&&d||!r)return 1;if(!i&&!s&&!m&&t=u?d:d*("desc"==n[i]?-1:1)}return t.index-e.index}(s,a,n)})},rA=function iA(t,e,n,i){return null==t?[]:(rr(e)||(e=null==e?[]:[e]),rr(n=i?void 0:n)||(n=null==n?[]:[n]),Xv(t,e,n))},f5=function sA(t){return pu(function(e){return e=Es(e,h1(Ms)),Qe(function(n){var i=this;return t(e,function(r){return Sc(r,i,n)})})})},h5=f5(Es);var oA=Math.min,Bw=Qe(function(t,e){var n=(e=1==e.length&&rr(e[0])?Es(e[0],h1(Ms)):Es(p1(e,1),h1(Ms))).length;return Qe(function(i){for(var r=-1,s=oA(i.length,n);++r9007199254740991)return n;do{e%2&&(n+=t),(e=cA(e/2))&&(t+=t)}while(e);return n},uA=rp("length");var dA="\\ud800-\\udfff",pA="["+dA+"]",Gw="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ww="\\ud83c[\\udffb-\\udfff]",mA="[^"+dA+"]",gA="(?:\\ud83c[\\udde6-\\uddff]){2}",Qv="[\\ud800-\\udbff][\\udc00-\\udfff]",qw="(?:"+Gw+"|"+Ww+")?",Xw="[\\ufe0e\\ufe0f]?",f0=Xw+qw+"(?:\\u200d(?:"+[mA,gA,Qv].join("|")+")"+Xw+qw+")*",Yw="(?:"+[mA+Gw+"?",Gw,gA,Qv,pA].join("|")+")",g5=RegExp(Ww+"(?="+Ww+")|"+Yw+f0,"g");const c3=function Zv(t){return Bu(t)?function Jv(t){for(var e=g5.lastIndex=0;g5.test(t);)++e;return e}(t):uA(t)};var v5=Math.ceil;const e_=function dR(t,e){var n=(e=void 0===e?" ":Js(e)).length;if(n<2)return n?p5(e,t):e;var i=p5(e,v5(t/c3(e)));return Bu(e)?Fu(mu(i),0,t).join(""):i.slice(0,t)};var fR=Math.ceil,Qw=Math.floor;const Jw=function _A(t,e,n){t=jo(t);var i=(e=qr(e))?c3(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return e_(Qw(r),n)+t+e_(fR(r),n)},Zw=function bA(t,e,n){t=jo(t);var i=(e=qr(e))?c3(t):0;return e&&i-1;)u!==t&&y5.call(u,d,1),y5.call(t,d,1);return t},mh=function SA(t,e){return t&&t.length&&e&&e.length?C5(t,e):t},lM=Qe(mh),a_=function uM(t,e,n){return t&&t.length&&e&&e.length?C5(t,e,Ms(n)):t},dM=function vR(t,e,n){return t&&t.length&&e&&e.length?C5(t,e,void 0,n):t};var EA=Array.prototype.splice;const DA=function bR(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==s){var s=r;Ko(r)?EA.call(t,r,1):u5(t,r)}}return t};var TA=pu(function(t,e){var n=null==t?0:t.length,i=Om(t,e);return DA(t,Es(e,function(r){return Ko(r,n)?+r:r}).sort(Pw)),i});const fM=TA;var yR=Math.floor,CR=Math.random;const hM=function xR(t,e){return t+yR(CR()*(e-t+1))};var wR=parseFloat,VA=Math.min,MR=Math.random;const AA=function SR(t,e,n){if(n&&"boolean"!=typeof n&&kr(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=co(t),void 0===e?(e=t,t=0):e=co(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var r=MR();return VA(t+r*(e-t+wR("1e-"+((r+"").length-1))),e)}return hM(t,e)};var kR=Math.ceil,ER=Math.max;const l=function c(t){return function(e,n,i){return i&&"number"!=typeof i&&kr(e,n,i)&&(n=i=void 0),e=co(e),void 0===n?(n=e,e=0):n=co(n),function IA(t,e,n,i){for(var r=-1,s=ER(kR((e-t)/(n||1)),0),a=Array(s);s--;)a[i?s:++r]=t,t+=n;return a}(e,n,i=void 0===i?e1&&kr(t,e[0],e[1])?e=[]:n>2&&kr(e[0],e[1],e[2])&&(e=[e[0]]),Xv(t,p1(e,1),[])});const HA=Fse;var Use=Math.floor,Gse=Math.min;const LA=function Wse(t,e,n,i){var r=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!=e,u=null===e,d=Mo(e),m=void 0===e;r>>1,a=t[s];null!==a&&!Mo(a)&&(n?a<=e:a>>0)?(t=jo(t))&&("string"==typeof e||null!=e&&!n5(e))&&!(e=Js(e))&&Bu(t)?Fu(mu(t),0,n):t.split(e,n):[]};var coe=Math.max;const QR=function loe(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:coe(qr(e),0),Qe(function(n){var i=n[e],r=Fu(n,0,e);return i&&hu(r,i),Sc(t,this,r)})};var uoe=J4(function(t,e,n){return t+(n?" ":"")+bf(e)});const JR=uoe,ZR=function doe(t,e,n){return t=jo(t),n=null==n?0:Z4(qr(n),0,t.length),e=Js(e),t.slice(n,n+e.length)==e},eN=function foe(){return{}},tN=function hoe(){return""},nN=function poe(){return!0};var moe=da(function(t,e){return t-e},0);const iN=moe,rN=function goe(t){return t&&t.length?kw(t,ge):0},sN=function voe(t,e){return t&&t.length?kw(t,Ms(e)):0},oN=function _oe(t){var e=null==t?0:t.length;return e?z2(t,1,e):[]},aN=function boe(t,e,n){return t&&t.length?(e=n||void 0===e?1:qr(e),z2(t,0,e<0?0:e)):[]},cN=function yoe(t,e,n){var i=null==t?0:t.length;return i?(e=n||void 0===e?1:qr(e),z2(t,(e=i-e)<0?0:e,i)):[]},lN=function Coe(t,e){return t&&t.length?up(t,Ms(e),!1,!0):[]},uN=function xoe(t,e){return t&&t.length?up(t,Ms(e)):[]},dN=function woe(t,e){return e(t),t};var fN=Object.prototype,Moe=fN.hasOwnProperty;const hN=function Soe(t,e,n,i){return void 0===t||Yl(t,fN[n])&&!Moe.call(i,n)?e:t};var koe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};const Doe=function Eoe(t){return"\\"+koe[t]},pN=/<%=([\s\S]+?)%>/g,_M={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:pN,variable:"",imports:{_:{escape:B8}}};var Loe=/\b__p \+= '';/g,zoe=/\b(__p \+=) '' \+/g,Roe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Noe=/[()=,{}\[\]\/\s]/,Poe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bM=/($^)/,joe=/['\n\r\u2028\u2029\\]/g,mN=Object.prototype.hasOwnProperty;const gN=function Boe(t,e,n){var i=_M.imports._.templateSettings||_M;n&&kr(t,e,n)&&(e=void 0),t=jo(t),e=I4({},e,i,hN);var u,d,r=I4({},e.imports,i.imports,hN),s=Nc(r),a=K8(r,s),m=0,_=e.interpolate||bM,y="__p += '",x=RegExp((e.escape||bM).source+"|"+_.source+"|"+(_===pN?Poe:bM).source+"|"+(e.evaluate||bM).source+"|$","g"),S=mN.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(x,function($,W,re,se,ke,ye){return re||(re=se),y+=t.slice(m,ye).replace(joe,Doe),W&&(u=!0,y+="' +\n__e("+W+") +\n'"),ke&&(d=!0,y+="';\n"+ke+";\n__p += '"),re&&(y+="' +\n((__t = ("+re+")) == null ? '' : __t) +\n'"),m=ye+$.length,$}),y+="';\n";var D=mN.call(e,"variable")&&e.variable;if(D){if(Noe.test(D))throw new Error("Invalid `variable` option passed into `_.template`")}else y="with (obj) {\n"+y+"\n}\n";y=(d?y.replace(Loe,""):y).replace(zoe,"$1").replace(Roe,"$1;"),y="function("+(D||"obj")+") {\n"+(D?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(d?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+y+"return __p\n}";var z=_6(function(){return Function(s,S+"return "+y).apply(void 0,a)});if(z.source=y,B4(z))throw z;return z},vN=function Uoe(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Lr(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),u0(t,e,{leading:i,maxWait:e,trailing:r})},x5=function Goe(t,e){return e(t)};var zA=4294967295,qoe=Math.min;const RA=function Xoe(t,e){if((t=qr(t))<1||t>9007199254740991)return[];var n=zA,i=qoe(t,zA);e=kd(e),t-=zA;for(var r=ec(i,e);++n-1;);return n},kN=function rae(t,e){for(var n=-1,i=t.length;++n-1;);return n},EN=function sae(t,e,n){if((t=jo(t))&&(n||void 0===e))return Ll(t);if(!t||!(e=Js(e)))return t;var i=mu(t),r=mu(e),s=kN(i,r),a=SN(i,r)+1;return Fu(i,s,a).join("")},DN=function oae(t,e,n){if((t=jo(t))&&(n||void 0===e))return t.slice(0,Hl(t)+1);if(!t||!(e=Js(e)))return t;var i=mu(t),r=SN(i,mu(e))+1;return Fu(i,0,r).join("")};var aae=/^\s+/;const TN=function cae(t,e,n){if((t=jo(t))&&(n||void 0===e))return t.replace(aae,"");if(!t||!(e=Js(e)))return t;var i=mu(t),r=kN(i,mu(e));return Fu(i,r).join("")};var dae=/\w*$/;const VN=function fae(t,e){var n=30,i="...";if(Lr(e)){var r="separator"in e?e.separator:r;n="length"in e?qr(e.length):n,i="omission"in e?Js(e.omission):i}var s=(t=jo(t)).length;if(Bu(t)){var a=mu(t);s=a.length}if(n>=s)return t;var u=n-c3(i);if(u<1)return i;var d=a?Fu(a,0,u).join(""):t.slice(0,u);if(void 0===r)return d+i;if(a&&(u+=d.length-u),n5(r)){if(t.slice(u).search(r)){var m,_=d;for(r.global||(r=RegExp(r.source,jo(dae.exec(r))+"g")),r.lastIndex=0;m=r.exec(_);)var y=m.index;d=d.slice(0,void 0===y?u:y)}}else if(t.indexOf(Js(r),u)!=u){var x=d.lastIndexOf(r);x>-1&&(d=d.slice(0,x))}return d+i},AN=function hae(t){return Qd(t,1)},gae=q4({"&":"&","<":"<",">":">",""":'"',"'":"'"});var IN=/&(?:amp|lt|gt|quot|#39);/g,vae=RegExp(IN.source);const ON=function _ae(t){return(t=jo(t))&&vae.test(t)?t.replace(IN,gae):t};var yae=o0&&1/h4(new o0([,-0]))[1]==1/0?function(t){return new o0(t)}:Oi;const Cae=yae,gh=function wae(t,e,n){var i=-1,r=ol,s=t.length,a=!0,u=[],d=u;if(n)a=!1,r=j8;else if(s>=200){var m=e?null:Cae(t);if(m)return h4(m);a=!1,r=i3,d=new B2}else d=e?[]:u;e:for(;++i1||this.__actions__.length)&&i instanceof bn&&Ko(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:x5,args:[r],thisArg:void 0}),new kc(i,this.__chain__).thru(function(s){return e&&!s.length&&s.push(void 0),s})):this.thru(r)});const XN=$ae,KN=function Uae(){return Of(this)},YN=function Gae(){var t=this.__wrapped__;if(t instanceof bn){var e=t;return this.__actions__.length&&(e=new bn(this)),(e=e.reverse()).__actions__.push({func:x5,args:[mM],thisArg:void 0}),new kc(e,this.__chain__)}return this.thru(mM)},jA=function Wae(t,e,n){var i=t.length;if(i<2)return i?gh(t[0]):[];for(var r=-1,s=Array(i);++r1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,PA(t,n)});const rP=ece,Er={chunk:d8,compact:uD,concat:o9,difference:cp,differenceBy:V9,differenceWith:BC,drop:O9,dropRight:H9,dropRightWhile:L9,dropWhile:qC,fill:F9,findIndex:$9,findLastIndex:W9,first:G2,flatten:ag,flattenDeep:_x,flattenDepth:bT,fromPairs:Tx,head:G2,indexOf:lv,initial:Ls,intersection:dv,intersectionBy:fv,intersectionWith:$x,join:Vv,last:Ur,lastIndexOf:Iv,nth:Ow,pull:lM,pullAll:mh,pullAllBy:a_,pullAllWith:dM,pullAt:fM,remove:eo,reverse:mM,slice:NR,sortedIndex:FR,sortedIndexBy:BR,sortedIndexOf:$R,sortedLastIndex:UR,sortedLastIndexBy:GR,sortedLastIndexOf:WR,sortedUniq:XR,sortedUniqBy:KR,tail:oN,take:aN,takeRight:cN,takeRightWhile:lN,takeWhile:uN,union:HN,unionBy:LN,unionWith:zN,uniq:RN,uniqBy:NN,uniqWith:PN,unzip:yM,unzipWith:PA,without:WN,xor:QN,xorBy:JN,xorWith:ZN,zip:eP,zipObject:nP,zipObjectDeep:iP,zipWith:rP},dc={countBy:w9,each:F8,eachRight:dp,every:fp,filter:ux,find:U9,findLast:q9,flatMap:X9,flatMapDeep:gx,flatMapDepth:nh,forEach:F8,forEachRight:dp,groupBy:rh,includes:Nx,invokeMap:Yx,keyBy:bV,map:pp,orderBy:rA,partition:rM,reduce:ln,reduceRight:Ui,reject:_i,sample:IR,sampleSize:OR,shuffle:zR,size:RR,some:jR,sortBy:HA},tce={now:L8},kl={after:Rt,ary:Qd,before:b6,bind:C6,bindKey:jm,curry:H8,curryRight:TC,debounce:u0,defer:PC,delay:Xf,flip:yx,memoize:$3,negate:fh,once:d5,overArgs:Kv,partial:_5,partialRight:iM,rearg:Y,rest:pM,spread:QR,throttle:vN,unary:AN,wrap:qN},us={castArray:c8,clone:Wy,cloneDeep:n3,cloneDeepWith:s9,cloneWith:Xy,conformsTo:_9,eq:Yl,gt:tv,gte:Ox,isArguments:Oo,isArray:rr,isArrayBuffer:ah,isArrayLike:tr,isArrayLikeObject:Kc,isBoolean:Jx,isBuffer:Dc,isDate:ew,isElement:_v,isEmpty:Zs,isEqual:zs,isEqualWith:yv,isError:B4,isFinite:Cv,isFunction:ne,isInteger:xv,isLength:Si,isMap:Nf,isMatch:e5,isMatchWith:t5,isNaN:sw,isNative:Ev,isNil:uw,isNull:Dv,isNumber:Sv,isObject:Lr,isObjectLike:Kn,isPlainObject:j4,isRegExp:n5,isSafeInteger:fV,isSet:b8,isString:oh,isSymbol:Mo,isTypedArray:V4,isUndefined:r5,isWeakMap:hV,isWeakSet:s5,lt:Lv,lte:Cw,toArray:Bv,toFinite:co,toInteger:qr,toLength:U8,toNumber:vs,toPlainObject:N8,toSafeInteger:xN,toString:jo},W2={add:No,ceil:j6,divide:lp,floor:ih,max:jv,maxBy:VV,mean:IV,meanBy:a5,min:Fv,minBy:uh,multiply:dh,round:VR,subtract:iN,sum:rN,sumBy:sN},FA={clamp:B6,inRange:av,random:AA},Rs={assign:P7,assignIn:sf,assignInWith:I4,assignWith:O4,at:N4,create:p4,defaults:OC,defaultsDeep:D9,entries:Yf,entriesIn:Ed,extend:sf,extendWith:I4,findKey:th,findLastKey:px,forIn:Ex,forInRight:q8,forOwn:Q9,forOwnRight:Dx,functions:Vx,functionsIn:J9,get:z4,has:rv,hasIn:ip,invert:pv,invertBy:YT,invoke:Kx,keys:Nc,keysIn:wl,mapKeys:zv,mapValues:Rv,merge:Tw,mergeWith:U2,omit:B1,omitBy:Wv,pick:sM,pickBy:Cp,result:TR,set:HR,setWith:LR,toPairs:Yf,toPairsIn:Ed,transform:MN,unset:jN,update:BN,updateWith:$N,values:o3,valuesIn:GN},l3={at:XN,chain:Of,commit:x8,lodash:ot,next:$v,plant:b5,reverse:YN,tap:dN,thru:x5,toIterator:NA,toJSON:wp,value:wp,valueOf:wp,wrapperChain:KN},Aa={camelCase:N6,capitalize:R2,deburr:I6,endsWith:YC,escape:B8,escapeRegExp:sx,kebabCase:bp,lowerCase:xV,lowerFirst:MV,pad:Jw,padEnd:Zw,padStart:t_,parseInt:n_,repeat:$1,replace:h0,snakeCase:PR,split:YR,startCase:JR,startsWith:ZR,template:gN,templateSettings:_M,toLower:bN,toUpper:wN,trim:EN,trimEnd:DN,trimStart:TN,truncate:VN,unescape:ON,upperCase:UN,upperFirst:bf,words:Q4},Ua={attempt:_6,bindAll:W3,cond:vC,conforms:g9,constant:Pl,defaultTo:k9,flow:Sx,flowRight:Y9,identity:ge,iteratee:vw,matches:Nv,matchesProperty:Pv,method:Vw,methodOf:OV,mixin:Aw,noop:Oi,nthArg:Hw,over:h5,overEvery:xp,overSome:Yv,property:Wf,propertyOf:o_,range:v,rangeRight:k,stubArray:en,stubFalse:N1,stubObject:eN,stubString:tN,stubTrue:nN,times:RA,toPath:yN,uniqueId:vh};var oce=Math.max,ace=Math.min;var fce=Math.min;var sP=4294967295,bce=Array.prototype,oP=Object.prototype.hasOwnProperty,aP=As?As.iterator:void 0,Cce=Math.max,cP=Math.min,BA=function(t){return function(e,n,i){if(null==i){var r=Lr(n),s=r&&Nc(n),a=s&&s.length&&X8(n,s);(a?a.length:r)||(i=n,n=e,e=this)}return t(e,n,i)}}(Aw);ot.after=kl.after,ot.ary=kl.ary,ot.assign=Rs.assign,ot.assignIn=Rs.assignIn,ot.assignInWith=Rs.assignInWith,ot.assignWith=Rs.assignWith,ot.at=Rs.at,ot.before=kl.before,ot.bind=kl.bind,ot.bindAll=Ua.bindAll,ot.bindKey=kl.bindKey,ot.castArray=us.castArray,ot.chain=l3.chain,ot.chunk=Er.chunk,ot.compact=Er.compact,ot.concat=Er.concat,ot.cond=Ua.cond,ot.conforms=Ua.conforms,ot.constant=Ua.constant,ot.countBy=dc.countBy,ot.create=Rs.create,ot.curry=kl.curry,ot.curryRight=kl.curryRight,ot.debounce=kl.debounce,ot.defaults=Rs.defaults,ot.defaultsDeep=Rs.defaultsDeep,ot.defer=kl.defer,ot.delay=kl.delay,ot.difference=Er.difference,ot.differenceBy=Er.differenceBy,ot.differenceWith=Er.differenceWith,ot.drop=Er.drop,ot.dropRight=Er.dropRight,ot.dropRightWhile=Er.dropRightWhile,ot.dropWhile=Er.dropWhile,ot.fill=Er.fill,ot.filter=dc.filter,ot.flatMap=dc.flatMap,ot.flatMapDeep=dc.flatMapDeep,ot.flatMapDepth=dc.flatMapDepth,ot.flatten=Er.flatten,ot.flattenDeep=Er.flattenDeep,ot.flattenDepth=Er.flattenDepth,ot.flip=kl.flip,ot.flow=Ua.flow,ot.flowRight=Ua.flowRight,ot.fromPairs=Er.fromPairs,ot.functions=Rs.functions,ot.functionsIn=Rs.functionsIn,ot.groupBy=dc.groupBy,ot.initial=Er.initial,ot.intersection=Er.intersection,ot.intersectionBy=Er.intersectionBy,ot.intersectionWith=Er.intersectionWith,ot.invert=Rs.invert,ot.invertBy=Rs.invertBy,ot.invokeMap=dc.invokeMap,ot.iteratee=Ua.iteratee,ot.keyBy=dc.keyBy,ot.keys=Nc,ot.keysIn=Rs.keysIn,ot.map=dc.map,ot.mapKeys=Rs.mapKeys,ot.mapValues=Rs.mapValues,ot.matches=Ua.matches,ot.matchesProperty=Ua.matchesProperty,ot.memoize=kl.memoize,ot.merge=Rs.merge,ot.mergeWith=Rs.mergeWith,ot.method=Ua.method,ot.methodOf=Ua.methodOf,ot.mixin=BA,ot.negate=fh,ot.nthArg=Ua.nthArg,ot.omit=Rs.omit,ot.omitBy=Rs.omitBy,ot.once=kl.once,ot.orderBy=dc.orderBy,ot.over=Ua.over,ot.overArgs=kl.overArgs,ot.overEvery=Ua.overEvery,ot.overSome=Ua.overSome,ot.partial=kl.partial,ot.partialRight=kl.partialRight,ot.partition=dc.partition,ot.pick=Rs.pick,ot.pickBy=Rs.pickBy,ot.property=Ua.property,ot.propertyOf=Ua.propertyOf,ot.pull=Er.pull,ot.pullAll=Er.pullAll,ot.pullAllBy=Er.pullAllBy,ot.pullAllWith=Er.pullAllWith,ot.pullAt=Er.pullAt,ot.range=Ua.range,ot.rangeRight=Ua.rangeRight,ot.rearg=kl.rearg,ot.reject=dc.reject,ot.remove=Er.remove,ot.rest=kl.rest,ot.reverse=Er.reverse,ot.sampleSize=dc.sampleSize,ot.set=Rs.set,ot.setWith=Rs.setWith,ot.shuffle=dc.shuffle,ot.slice=Er.slice,ot.sortBy=dc.sortBy,ot.sortedUniq=Er.sortedUniq,ot.sortedUniqBy=Er.sortedUniqBy,ot.split=Aa.split,ot.spread=kl.spread,ot.tail=Er.tail,ot.take=Er.take,ot.takeRight=Er.takeRight,ot.takeRightWhile=Er.takeRightWhile,ot.takeWhile=Er.takeWhile,ot.tap=l3.tap,ot.throttle=kl.throttle,ot.thru=x5,ot.toArray=us.toArray,ot.toPairs=Rs.toPairs,ot.toPairsIn=Rs.toPairsIn,ot.toPath=Ua.toPath,ot.toPlainObject=us.toPlainObject,ot.transform=Rs.transform,ot.unary=kl.unary,ot.union=Er.union,ot.unionBy=Er.unionBy,ot.unionWith=Er.unionWith,ot.uniq=Er.uniq,ot.uniqBy=Er.uniqBy,ot.uniqWith=Er.uniqWith,ot.unset=Rs.unset,ot.unzip=Er.unzip,ot.unzipWith=Er.unzipWith,ot.update=Rs.update,ot.updateWith=Rs.updateWith,ot.values=Rs.values,ot.valuesIn=Rs.valuesIn,ot.without=Er.without,ot.words=Aa.words,ot.wrap=kl.wrap,ot.xor=Er.xor,ot.xorBy=Er.xorBy,ot.xorWith=Er.xorWith,ot.zip=Er.zip,ot.zipObject=Er.zipObject,ot.zipObjectDeep=Er.zipObjectDeep,ot.zipWith=Er.zipWith,ot.entries=Rs.toPairs,ot.entriesIn=Rs.toPairsIn,ot.extend=Rs.assignIn,ot.extendWith=Rs.assignInWith,BA(ot,ot),ot.add=W2.add,ot.attempt=Ua.attempt,ot.camelCase=Aa.camelCase,ot.capitalize=Aa.capitalize,ot.ceil=W2.ceil,ot.clamp=FA.clamp,ot.clone=us.clone,ot.cloneDeep=us.cloneDeep,ot.cloneDeepWith=us.cloneDeepWith,ot.cloneWith=us.cloneWith,ot.conformsTo=us.conformsTo,ot.deburr=Aa.deburr,ot.defaultTo=Ua.defaultTo,ot.divide=W2.divide,ot.endsWith=Aa.endsWith,ot.eq=us.eq,ot.escape=Aa.escape,ot.escapeRegExp=Aa.escapeRegExp,ot.every=dc.every,ot.find=dc.find,ot.findIndex=Er.findIndex,ot.findKey=Rs.findKey,ot.findLast=dc.findLast,ot.findLastIndex=Er.findLastIndex,ot.findLastKey=Rs.findLastKey,ot.floor=W2.floor,ot.forEach=dc.forEach,ot.forEachRight=dc.forEachRight,ot.forIn=Rs.forIn,ot.forInRight=Rs.forInRight,ot.forOwn=Rs.forOwn,ot.forOwnRight=Rs.forOwnRight,ot.get=Rs.get,ot.gt=us.gt,ot.gte=us.gte,ot.has=Rs.has,ot.hasIn=Rs.hasIn,ot.head=Er.head,ot.identity=ge,ot.includes=dc.includes,ot.indexOf=Er.indexOf,ot.inRange=FA.inRange,ot.invoke=Rs.invoke,ot.isArguments=us.isArguments,ot.isArray=rr,ot.isArrayBuffer=us.isArrayBuffer,ot.isArrayLike=us.isArrayLike,ot.isArrayLikeObject=us.isArrayLikeObject,ot.isBoolean=us.isBoolean,ot.isBuffer=us.isBuffer,ot.isDate=us.isDate,ot.isElement=us.isElement,ot.isEmpty=us.isEmpty,ot.isEqual=us.isEqual,ot.isEqualWith=us.isEqualWith,ot.isError=us.isError,ot.isFinite=us.isFinite,ot.isFunction=us.isFunction,ot.isInteger=us.isInteger,ot.isLength=us.isLength,ot.isMap=us.isMap,ot.isMatch=us.isMatch,ot.isMatchWith=us.isMatchWith,ot.isNaN=us.isNaN,ot.isNative=us.isNative,ot.isNil=us.isNil,ot.isNull=us.isNull,ot.isNumber=us.isNumber,ot.isObject=Lr,ot.isObjectLike=us.isObjectLike,ot.isPlainObject=us.isPlainObject,ot.isRegExp=us.isRegExp,ot.isSafeInteger=us.isSafeInteger,ot.isSet=us.isSet,ot.isString=us.isString,ot.isSymbol=us.isSymbol,ot.isTypedArray=us.isTypedArray,ot.isUndefined=us.isUndefined,ot.isWeakMap=us.isWeakMap,ot.isWeakSet=us.isWeakSet,ot.join=Er.join,ot.kebabCase=Aa.kebabCase,ot.last=Ur,ot.lastIndexOf=Er.lastIndexOf,ot.lowerCase=Aa.lowerCase,ot.lowerFirst=Aa.lowerFirst,ot.lt=us.lt,ot.lte=us.lte,ot.max=W2.max,ot.maxBy=W2.maxBy,ot.mean=W2.mean,ot.meanBy=W2.meanBy,ot.min=W2.min,ot.minBy=W2.minBy,ot.stubArray=Ua.stubArray,ot.stubFalse=Ua.stubFalse,ot.stubObject=Ua.stubObject,ot.stubString=Ua.stubString,ot.stubTrue=Ua.stubTrue,ot.multiply=W2.multiply,ot.nth=Er.nth,ot.noop=Ua.noop,ot.now=tce.now,ot.pad=Aa.pad,ot.padEnd=Aa.padEnd,ot.padStart=Aa.padStart,ot.parseInt=Aa.parseInt,ot.random=FA.random,ot.reduce=dc.reduce,ot.reduceRight=dc.reduceRight,ot.repeat=Aa.repeat,ot.replace=Aa.replace,ot.result=Rs.result,ot.round=W2.round,ot.sample=dc.sample,ot.size=dc.size,ot.snakeCase=Aa.snakeCase,ot.some=dc.some,ot.sortedIndex=Er.sortedIndex,ot.sortedIndexBy=Er.sortedIndexBy,ot.sortedIndexOf=Er.sortedIndexOf,ot.sortedLastIndex=Er.sortedLastIndex,ot.sortedLastIndexBy=Er.sortedLastIndexBy,ot.sortedLastIndexOf=Er.sortedLastIndexOf,ot.startCase=Aa.startCase,ot.startsWith=Aa.startsWith,ot.subtract=W2.subtract,ot.sum=W2.sum,ot.sumBy=W2.sumBy,ot.template=Aa.template,ot.times=Ua.times,ot.toFinite=us.toFinite,ot.toInteger=qr,ot.toLength=us.toLength,ot.toLower=Aa.toLower,ot.toNumber=us.toNumber,ot.toSafeInteger=us.toSafeInteger,ot.toString=us.toString,ot.toUpper=Aa.toUpper,ot.trim=Aa.trim,ot.trimEnd=Aa.trimEnd,ot.trimStart=Aa.trimStart,ot.truncate=Aa.truncate,ot.unescape=Aa.unescape,ot.uniqueId=Ua.uniqueId,ot.upperCase=Aa.upperCase,ot.upperFirst=Aa.upperFirst,ot.each=dc.forEach,ot.eachRight=dc.forEachRight,ot.first=Er.head,BA(ot,function(){var t={};return wd(ot,function(e,n){oP.call(ot.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),ot.VERSION="4.17.21",(ot.templateSettings=Aa.templateSettings).imports._=ot,Cl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){ot[t].placeholder=ot}),Cl(["drop","take"],function(t,e){bn.prototype[t]=function(n){n=void 0===n?1:Cce(qr(n),0);var i=this.__filtered__&&!e?new bn(this):this.clone();return i.__filtered__?i.__takeCount__=cP(n,i.__takeCount__):i.__views__.push({size:cP(n,sP),type:t+(i.__dir__<0?"Right":"")}),i},bn.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),Cl(["filter","map","takeWhile"],function(t,e){var n=e+1,i=1==n||3==n;bn.prototype[t]=function(r){var s=this.clone();return s.__iteratees__.push({iteratee:Ms(r),type:n}),s.__filtered__=s.__filtered__||i,s}}),Cl(["head","last"],function(t,e){var n="take"+(e?"Right":"");bn.prototype[t]=function(){return this[n](1).value()[0]}}),Cl(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");bn.prototype[t]=function(){return this.__filtered__?new bn(this):this[n](1)}}),bn.prototype.compact=function(){return this.filter(ge)},bn.prototype.find=function(t){return this.filter(t).head()},bn.prototype.findLast=function(t){return this.reverse().find(t)},bn.prototype.invokeMap=Qe(function(t,e){return"function"==typeof t?new bn(this):this.map(function(n){return gp(n,t,e)})}),bn.prototype.reject=function(t){return this.filter(fh(Ms(t)))},bn.prototype.slice=function(t,e){t=qr(t);var n=this;return n.__filtered__&&(t>0||e<0)?new bn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=qr(e))<0?n.dropRight(-e):n.take(e-t)),n)},bn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},bn.prototype.toArray=function(){return this.take(sP)},wd(bn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),r=ot[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);r&&(ot.prototype[e]=function(){var a=this.__wrapped__,u=i?[1]:arguments,d=a instanceof bn,m=u[0],_=d||rr(a),y=function(W){var re=r.apply(ot,hu([W],u));return i&&x?re[0]:re};_&&n&&"function"==typeof m&&1!=m.length&&(d=_=!1);var x=this.__chain__,D=s&&!x,z=d&&!this.__actions__.length;if(!s&&_){a=z?a:new bn(this);var $=t.apply(a,u);return $.__actions__.push({func:x5,args:[y],thisArg:void 0}),new kc($,x)}return D&&z?t.apply(this,u):($=this.thru(y),D?i?$.value()[0]:$.value():$)})}),Cl(["pop","push","shift","sort","splice","unshift"],function(t){var e=bce[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);ot.prototype[t]=function(){var r=arguments;if(i&&!this.__chain__){var s=this.value();return e.apply(rr(s)?s:[],r)}return this[n](function(a){return e.apply(rr(a)?a:[],r)})}}),wd(bn.prototype,function(t,e){var n=ot[e];if(n){var i=n.name+"";oP.call(xr,i)||(xr[i]=[]),xr[i].push({name:e,func:n})}}),xr[Xc(void 0,2).name]=[{name:"wrapper",func:void 0}],bn.prototype.clone=function nce(){var t=new bn(this.__wrapped__);return t.__actions__=uo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=uo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=uo(this.__views__),t},bn.prototype.reverse=function rce(){if(this.__filtered__){var t=new bn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},bn.prototype.value=function hce(){var t=this.__wrapped__.value(),e=this.__dir__,n=rr(t),i=e<0,r=n?t.length:0,s=function cce(t,e,n){for(var i=-1,r=n.length;++ithis.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,i){[e,n]=k5(this,e,n);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(n,this.length,r,1),u3.from(r,this.length-(n-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=k5(this,e,n);let i=[];return this.decompose(e,n,i,0),u3.from(i,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new y_(this),s=new y_(e);for(let a=n,u=n;;){if(r.next(a),s.next(a),a=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(u+=r.value.length,r.done||u>=i)return!0}}iter(e=1){return new y_(this,e)}iterRange(e,n=this.length){return new hX(this,e,n)}iterLines(e,n){let i;if(null==e)i=this.iter();else{null==n&&(n=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new pX(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Bl(e):u3.from(Bl.split(e,[])):Ia.empty}}class Bl extends Ia{constructor(e,n=function MDe(t){let e=-1;for(let n of t)e+=n.length+1;return e}(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,i,r){for(let s=0;;s++){let a=this.text[s],u=r+a.length;if((n?i:u)>=e)return new SDe(r,u,i,a);r=u+1,i++}}decompose(e,n,i,r){let s=e<=0&&n>=this.length?this:new Bl(fX(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(1&r){let a=i.pop(),u=GM(s.text,a.text.slice(),0,s.length);if(u.length<=32)i.push(new Bl(u,a.length+s.length));else{let d=u.length>>1;i.push(new Bl(u.slice(0,d)),new Bl(u.slice(d)))}}else i.push(s)}replace(e,n,i){if(!(i instanceof Bl))return super.replace(e,n,i);[e,n]=k5(this,e,n);let r=GM(this.text,GM(i.text,fX(this.text,0,e)),n),s=this.length+i.length-(n-e);return r.length<=32?new Bl(r,s):u3.from(Bl.split(r,[]),s)}sliceString(e,n=this.length,i="\n"){[e,n]=k5(this,e,n);let r="";for(let s=0,a=0;s<=n&&ae&&a&&(r+=i),es&&(r+=u.slice(Math.max(0,e-s),n-s)),s=d+1}return r}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let i=[],r=-1;for(let s of e)i.push(s),r+=s.length+1,32==i.length&&(n.push(new Bl(i,r)),i=[],r=-1);return r>-1&&n.push(new Bl(i,r)),n}}class u3 extends Ia{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,n,i,r){for(let s=0;;s++){let a=this.children[s],u=r+a.length,d=i+a.lines-1;if((n?d:u)>=e)return a.lineInner(e,n,i,r);r=u+1,i=d+1}}decompose(e,n,i,r){for(let s=0,a=0;a<=n&&s=a){let m=r&((a<=e?1:0)|(d>=n?2:0));a>=e&&d<=n&&!m?i.push(u):u.decompose(e-a,n-a,i,m)}a=d+1}}replace(e,n,i){if([e,n]=k5(this,e,n),i.lines=s&&n<=u){let d=a.replace(e-s,n-s,i),m=this.lines-a.lines+d.lines;if(d.lines>4&&d.lines>m>>6){let _=this.children.slice();return _[r]=d,new u3(_,this.length-(n-e)+i.length)}return super.replace(s,u,d)}s=u+1}return super.replace(e,n,i)}sliceString(e,n=this.length,i="\n"){[e,n]=k5(this,e,n);let r="";for(let s=0,a=0;se&&s&&(r+=i),ea&&(r+=u.sliceString(e-a,n-a,i)),a=d+1}return r}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof u3))return 0;let i=0,[r,s,a,u]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=n,s+=n){if(r==a||s==u)return i;let d=this.children[r],m=e.children[s];if(d!=m)return i+d.scanIdentical(m,n);i+=d.length+1}}static from(e,n=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let S of e)i+=S.lines;if(i<32){let S=[];for(let D of e)D.flatten(S);return new Bl(S,n)}let r=Math.max(32,i>>5),s=r<<1,a=r>>1,u=[],d=0,m=-1,_=[];function y(S){let D;if(S.lines>s&&S instanceof u3)for(let z of S.children)y(z);else S.lines>a&&(d>a||!d)?(x(),u.push(S)):S instanceof Bl&&d&&(D=_[_.length-1])instanceof Bl&&S.lines+D.lines<=32?(d+=S.lines,m+=S.length+1,_[_.length-1]=new Bl(D.text.concat(S.text),D.length+1+S.length)):(d+S.lines>r&&x(),d+=S.lines,m+=S.length+1,_.push(S))}function x(){0!=d&&(u.push(1==_.length?_[0]:u3.from(_,m)),m=-1,d=_.length=0)}for(let S of e)y(S);return x(),1==u.length?u[0]:new u3(u,n)}}function GM(t,e,n=0,i=1e9){for(let r=0,s=0,a=!0;s=n&&(d>i&&(u=u.slice(0,i-r)),r0?1:(e instanceof Bl?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],s=this.offsets[i],a=s>>1;if(a==(n>0?r instanceof Bl?r.text.length:r.children.length:0)){if(0==i)return this.done=!0,this.value="",this;n>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(n>0?0:1)){if(this.offsets[i]+=n,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof Bl){let d=r.text[a+(n<0?-1:0)];if(this.offsets[i]+=n,d.length>Math.max(0,e))return this.value=0==e?d:n>0?d.slice(e):d.slice(0,d.length-e),this;e-=d.length}else{let d=r.children[a+(n<0?-1:0)];e>d.length?(e-=d.length,this.offsets[i]+=n):(n<0&&this.offsets[i]--,this.nodes.push(d),this.offsets.push(n>0?1:(d instanceof Bl?d.text.length:d.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class hX{constructor(e,n,i){this.value="",this.done=!1,this.cursor=new y_(e,n>i?-1:1),this.pos=n>i?e.length:0,this.from=Math.min(n,i),this.to=Math.max(n,i)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let i=n<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*n,this.value=r.length<=i?r:n<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class pX{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:i,value:r}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Ia.prototype[Symbol.iterator]=function(){return this.iter()},y_.prototype[Symbol.iterator]=hX.prototype[Symbol.iterator]=pX.prototype[Symbol.iterator]=function(){return this});class SDe{constructor(e,n,i,r){this.from=e,this.to=n,this.number=i,this.text=r}get length(){return this.to-this.from}}function k5(t,e,n){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,n))]}let E5="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return E5[e-1]<=t;return!1}function mX(t){return t>=127462&&t<=127487}const gX=8205;function U1(t,e,n=!0,i=!0){return(n?vX:EDe)(t,e,i)}function vX(t,e,n){if(e==t.length)return e;e&&_X(t.charCodeAt(e))&&bX(t.charCodeAt(e-1))&&e--;let i=G1(t,e);for(e+=Dd(i);e=0&&mX(G1(t,a));)s++,a-=2;if(s%2==0)break;e+=2}}}return e}function EDe(t,e,n){for(;e>0;){let i=vX(t,e-2,n);if(i=56320&&t<57344}function bX(t){return t>=55296&&t<56320}function G1(t,e){let n=t.charCodeAt(e);if(!bX(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return _X(i)?i-56320+(n-55296<<10)+65536:n}function YI(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function Dd(t){return t<65536?1:2}const QI=/\r\n?|\n/;var q2=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(q2||(q2={}));class d3{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;ne)return s+(e-r);s+=u}else{if(i!=q2.Simple&&m>=e&&(i==q2.TrackDel&&re||i==q2.TrackBefore&&re))return null;if(m>e||m==e&&n<0&&!u)return e==r||n<0?s:s+d;s+=d}r=m}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,n=e){for(let i=0,r=0;i=0&&r<=n&&u>=e)return!(rn)||"cover";r=u}return!1}toString(){let e="";for(let n=0;n=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>"number"!=typeof n))throw new RangeError("Invalid JSON representation of ChangeDesc");return new d3(e)}static create(e){return new d3(e)}}class m1 extends d3{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return JI(this,(n,i,r,s,a)=>e=e.replace(r,r+(i-n),a),!1),e}mapDesc(e,n=!1){return ZI(this,e,n,!0)}invert(e){let n=this.sections.slice(),i=[];for(let r=0,s=0;r=0){n[r]=u,n[r+1]=a;let d=r>>1;for(;i.length0&&yh(i,n,s.text),s.forward(_),u+=_}let m=e[a++];for(;u>1].toJSON()))}return e}static of(e,n,i){let r=[],s=[],a=0,u=null;function d(_=!1){if(!_&&!r.length)return;ax||y<0||x>n)throw new RangeError(`Invalid change range ${y} to ${x} (in doc of length ${n})`);let D=S?"string"==typeof S?Ia.of(S.split(i||QI)):S:Ia.empty,z=D.length;if(y==x&&0==z)return;ya&&d2(r,y-a,-1),d2(r,x-y,z),yh(s,r,D),a=x}}(e),d(!u),u}static empty(e){return new m1(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],i=[];for(let r=0;ru&&"string"!=typeof a))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==s.length)n.push(s[0],0);else{for(;i.length=0&&n<=0&&n==t[r+1]?t[r]+=e:0==e&&0==t[r]?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function yh(t,e,n){if(0==n.length)return;let i=e.length-2>>1;if(i>1])),!(n||a==t.sections.length||t.sections[a+1]<0);)u=t.sections[a++],d=t.sections[a++];e(r,m,s,_,y),r=m,s=_}}}function ZI(t,e,n,i=!1){let r=[],s=i?[]:null,a=new C_(t),u=new C_(e);for(let d=-1;;)if(-1==a.ins&&-1==u.ins){let m=Math.min(a.len,u.len);d2(r,m,-1),a.forward(m),u.forward(m)}else if(u.ins>=0&&(a.ins<0||d==a.i||0==a.off&&(u.len=0&&d=0)){if(a.done&&u.done)return s?m1.createSet(r,s):d3.create(r);throw new Error("Mismatched change set lengths")}{let m=0,_=a.len;for(;_;)if(-1==u.ins){let y=Math.min(_,u.len);m+=y,_-=y,u.forward(y)}else{if(!(0==u.ins&&u.len<_))break;_-=u.len,u.next()}d2(r,m,dd||a.ins>=0&&a.len>d)&&(u||i.length>m),s.forward2(d),a.forward(d)}}else d2(i,0,a.ins,u),r&&yh(r,i,a.text),a.next()}}class C_{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return n>=e.length?Ia.empty:e[n]}textBit(e){let{inserted:n}=this.set,i=this.i-2>>1;return i>=n.length&&!e?Ia.empty:n[i].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class kp{constructor(e,n,i){this.from=e,this.to=n,this.flags=i}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,n=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,n):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new kp(i,r,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return mi.range(e,n);let i=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return mi.range(this.anchor,i)}eq(e,n=!1){return!(this.anchor!=e.anchor||this.head!=e.head||n&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return mi.range(e.anchor,e.head)}static create(e,n,i){return new kp(e,n,i)}}class mi{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:mi.create(this.ranges.map(i=>i.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;ie.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new mi(e.ranges.map(n=>kp.fromJSON(n)),e.main)}static single(e,n=e){return new mi([mi.range(e,n)],0)}static create(e,n=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;re?8:0)|s)}static normalized(e,n=0){let i=e[n];e.sort((r,s)=>r.from-s.from),n=e.indexOf(i);for(let r=1;rs.head?mi.range(d,u):mi.range(u,d))}}return new mi(e,n)}}function CX(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let eO=0;class sr{constructor(e,n,i,r,s){this.combine=e,this.compareInput=n,this.compare=i,this.isStatic=r,this.id=eO++,this.default=e([]),this.extensions="function"==typeof s?s(this):s}get reader(){return this}static define(e={}){return new sr(e.combine||(n=>n),e.compareInput||((n,i)=>n===i),e.compare||(e.combine?(n,i)=>n===i:tO),!!e.static,e.enables)}of(e){return new WM([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new WM(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new WM(e,this,2,n)}from(e,n){return n||(n=i=>i),this.compute([e],i=>n(i.field(e)))}}function tO(t,e){return t==e||t.length==e.length&&t.every((n,i)=>n===e[i])}class WM{constructor(e,n,i,r){this.dependencies=e,this.facet=n,this.type=i,this.value=r,this.id=eO++}dynamicSlot(e){var n;let i=this.value,r=this.facet.compareInput,s=this.id,a=e[s]>>1,u=2==this.type,d=!1,m=!1,_=[];for(let y of this.dependencies)"doc"==y?d=!0:"selection"==y?m=!0:1&(null!==(n=e[y.id])&&void 0!==n?n:1)||_.push(e[y.id]);return{create:y=>(y.values[a]=i(y),1),update(y,x){if(d&&x.docChanged||m&&(x.docChanged||x.selection)||nO(y,_)){let S=i(y);if(u?!xX(S,y.values[a],r):!r(S,y.values[a]))return y.values[a]=S,1}return 0},reconfigure:(y,x)=>{let S,D=x.config.address[s];if(null!=D){let z=XM(x,D);if(this.dependencies.every($=>$ instanceof sr?x.facet($)===y.facet($):!($ instanceof e1)||x.field($,!1)==y.field($,!1))||(u?xX(S=i(y),z,r):r(S=i(y),z)))return y.values[a]=z,0}else S=i(y);return y.values[a]=S,1}}}}function xX(t,e,n){if(t.length!=e.length)return!1;for(let i=0;it[d.id]),r=n.map(d=>d.type),s=i.filter(d=>!(1&d)),a=t[e.id]>>1;function u(d){let m=[];for(let _=0;_i===r),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(wX).find(i=>i.field==this);return(n?.create||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:i=>(i.values[n]=this.create(i),1),update:(i,r)=>{let s=i.values[n],a=this.updateF(s,r);return this.compareF(s,a)?0:(i.values[n]=a,1)},reconfigure:(i,r)=>null!=r.config.address[this.id]?(i.values[n]=r.field(this),0):(i.values[n]=this.create(i),1)}}init(e){return[this,wX.of({field:this,create:e})]}get extension(){return this}}function x_(t){return e=>new MX(e,t)}const v0={highest:x_(0),high:x_(1),default:x_(2),low:x_(3),lowest:x_(4)};class MX{constructor(e,n){this.inner=e,this.prec=n}}class _0{of(e){return new iO(this,e)}reconfigure(e){return _0.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class iO{constructor(e,n){this.compartment=e,this.inner=n}}class qM{constructor(e,n,i,r,s,a){for(this.base=e,this.compartments=n,this.dynamicSlots=i,this.address=r,this.staticValues=s,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,n,i){let r=[],s=Object.create(null),a=new Map;for(let x of function TDe(t,e,n){let i=[[],[],[],[],[]],r=new Map;return function s(a,u){let d=r.get(a);if(null!=d){if(d<=u)return;let m=i[d].indexOf(a);m>-1&&i[d].splice(m,1),a instanceof iO&&n.delete(a.compartment)}if(r.set(a,u),Array.isArray(a))for(let m of a)s(m,u);else if(a instanceof iO){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let m=e.get(a.compartment)||a.inner;n.set(a.compartment,m),s(m,u)}else if(a instanceof MX)s(a.inner,a.prec);else if(a instanceof e1)i[u].push(a),a.provides&&s(a.provides,u);else if(a instanceof WM)i[u].push(a),a.facet.extensions&&s(a.facet.extensions,2);else{let m=a.extension;if(!m)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(m,u)}}(t,2),i.reduce((a,u)=>a.concat(u))}(e,n,a))x instanceof e1?r.push(x):(s[x.facet.id]||(s[x.facet.id]=[])).push(x);let u=Object.create(null),d=[],m=[];for(let x of r)u[x.id]=m.length<<1,m.push(S=>x.slot(S));let _=i?.config.facets;for(let x in s){let S=s[x],D=S[0].facet,z=_&&_[x]||[];if(S.every($=>0==$.type))if(u[D.id]=d.length<<1|1,tO(z,S))d.push(i.facet(D));else{let $=D.combine(S.map(W=>W.value));d.push(i&&D.compare($,i.facet(D))?i.facet(D):$)}else{for(let $ of S)0==$.type?(u[$.id]=d.length<<1|1,d.push($.value)):(u[$.id]=m.length<<1,m.push(W=>$.dynamicSlot(W)));u[D.id]=m.length<<1,m.push($=>DDe($,D,S))}}let y=m.map(x=>x(u));return new qM(e,a,y,u,d,s)}}function w_(t,e){if(1&e)return 2;let n=e>>1,i=t.status[n];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function XM(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}const SX=sr.define(),rO=sr.define({combine:t=>t.some(e=>e),static:!0}),kX=sr.define({combine:t=>t.length?t[0]:void 0,static:!0}),EX=sr.define(),DX=sr.define(),TX=sr.define(),VX=sr.define({combine:t=>!!t.length&&t[0]});class b0{constructor(e,n){this.type=e,this.value=n}static define(){return new VDe}}class VDe{of(e){return new b0(this,e)}}class ADe{constructor(e){this.map=e}of(e){return new Uo(this,e)}}let Uo=(()=>{class t{constructor(n,i){this.type=n,this.value=i}map(n){let i=this.type.map(this.value,n);return void 0===i?void 0:i==this.value?this:new t(this.type,i)}is(n){return this.type==n}static define(n={}){return new ADe(n.map||(i=>i))}static mapEffects(n,i){if(!n.length)return n;let r=[];for(let s of n){let a=s.map(i);a&&r.push(a)}return r}}return t.reconfigure=t.define(),t.appendConfig=t.define(),t})(),f3=(()=>{class t{constructor(n,i,r,s,a,u){this.startState=n,this.changes=i,this.selection=r,this.effects=s,this.annotations=a,this.scrollIntoView=u,this._doc=null,this._state=null,r&&CX(r,i.newLength),a.some(d=>d.type==t.time)||(this.annotations=a.concat(t.time.of(Date.now())))}static create(n,i,r,s,a,u){return new t(n,i,r,s,a,u)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(n){for(let i of this.annotations)if(i.type==n)return i.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(n){let i=this.annotation(t.userEvent);return!(!i||!(i==n||i.length>n.length&&i.slice(0,n.length)==n&&"."==i[n.length]))}}return t.time=b0.define(),t.userEvent=b0.define(),t.addToHistory=b0.define(),t.remote=b0.define(),t})();function IDe(t,e){let n=[];for(let i=0,r=0;;){let s,a;if(i=t[i]))s=t[i++],a=t[i++];else{if(!(r=0;r--){let s=n[r](t);s&&Object.keys(s).length&&(i=AX(i,sO(e,s,t.changes.newLength),!0))}return i==t?t:f3.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function ODe(t){let e=t.startState,n=!0;for(let r of e.facet(EX)){let s=r(t);if(!1===s){n=!1;break}Array.isArray(s)&&(n=!0===n?s:IDe(n,s))}if(!0!==n){let r,s;if(!1===n)s=t.changes.invertedDesc,r=m1.empty(e.doc.length);else{let a=t.changes.filter(n);r=a.changes,s=a.filtered.mapDesc(a.changes).invertedDesc}t=f3.create(e,r,t.selection&&t.selection.map(s),Uo.mapEffects(t.effects,s),t.annotations,t.scrollIntoView)}let i=e.facet(DX);for(let r=i.length-1;r>=0;r--){let s=i[r](t);t=s instanceof f3?s:Array.isArray(s)&&1==s.length&&s[0]instanceof f3?s[0]:IX(e,D5(s),!1)}return t}(r):r)}const LDe=[];function D5(t){return null==t?LDe:Array.isArray(t)?t:[t]}var Yc=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Yc||(Yc={}));const zDe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let oO;try{oO=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}let W1=(()=>{class t{constructor(n,i,r,s,a,u){this.config=n,this.doc=i,this.selection=r,this.values=s,this.status=n.statusTemplate.slice(),this.computeSlot=a,u&&(u._state=this);for(let d=0;ds.set(_,m)),i=null),s.set(d.value.compartment,d.value.extension)):d.is(Uo.reconfigure)?(i=null,r=d.value):d.is(Uo.appendConfig)&&(i=null,r=D5(r).concat(d.value));i?a=n.startState.values.slice():(i=qM.resolve(r,s,this),a=new t(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(m,_)=>_.reconfigure(m,this),null).values);let u=n.startState.facet(rO)?n.newSelection:n.newSelection.asSingle();new t(i,n.newDoc,u,a,(d,m)=>m.update(d,n),n)}replaceSelection(n){return"string"==typeof n&&(n=this.toText(n)),this.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:n},range:mi.cursor(i.from+n.length)}))}changeByRange(n){let i=this.selection,r=n(i.ranges[0]),s=this.changes(r.changes),a=[r.range],u=D5(r.effects);for(let d=1;du.spec.fromJSON(d,m)))}return t.create({doc:n.doc,selection:mi.fromJSON(n.selection),extensions:i.extensions?s.concat([i.extensions]):s})}static create(n={}){let i=qM.resolve(n.extensions||[],new Map),r=n.doc instanceof Ia?n.doc:Ia.of((n.doc||"").split(i.staticFacet(t.lineSeparator)||QI)),s=n.selection?n.selection instanceof mi?n.selection:mi.single(n.selection.anchor,n.selection.head):mi.single(0);return CX(s,r.length),i.staticFacet(rO)||(s=s.asSingle()),new t(i,r,s,i.dynamicSlots.map(()=>null),(a,u)=>u.create(a),null)}get tabSize(){return this.facet(t.tabSize)}get lineBreak(){return this.facet(t.lineSeparator)||"\n"}get readOnly(){return this.facet(VX)}phrase(n,...i){for(let r of this.facet(t.phrases))if(Object.prototype.hasOwnProperty.call(r,n)){n=r[n];break}return i.length&&(n=n.replace(/\$(\$|\d*)/g,(r,s)=>{if("$"==s)return"$";let a=+(s||1);return!a||a>i.length?r:i[a-1]})),n}languageDataAt(n,i,r=-1){let s=[];for(let a of this.facet(SX))for(let u of a(this,i,r))Object.prototype.hasOwnProperty.call(u,n)&&s.push(u[n]);return s}charCategorizer(n){return function NDe(t){return e=>{if(!/\S/.test(e))return Yc.Space;if(function RDe(t){if(oO)return oO.test(t);for(let e=0;e"\x80"&&(n.toUpperCase()!=n.toLowerCase()||zDe.test(n)))return!0}return!1}(e))return Yc.Word;for(let n=0;n-1)return Yc.Word;return Yc.Other}}(this.languageDataAt("wordChars",n).join(""))}wordAt(n){let{text:i,from:r,length:s}=this.doc.lineAt(n),a=this.charCategorizer(n),u=n-r,d=n-r;for(;u>0;){let m=U1(i,u,!1);if(a(i.slice(m,u))!=Yc.Word)break;u=m}for(;de.length?e[0]:4}),t.lineSeparator=kX,t.readOnly=VX,t.phrases=sr.define({compare(e,n){let i=Object.keys(e),r=Object.keys(n);return i.length==r.length&&i.every(s=>e[s]==n[s])}}),t.languageData=SX,t.changeFilter=EX,t.transactionFilter=DX,t.transactionExtender=TX,t})();function Td(t,e,n={}){let i={};for(let r of t)for(let s of Object.keys(r)){let a=r[s],u=i[s];if(void 0===u)i[s]=a;else if(u!==a&&void 0!==a){if(!Object.hasOwnProperty.call(n,s))throw new Error("Config merge conflict for field "+s);i[s]=n[s](u,a)}}for(let r in e)void 0===i[r]&&(i[r]=e[r]);return i}_0.reconfigure=Uo.define();class Dp{eq(e){return this==e}range(e,n=e){return M_.create(e,n,this)}}Dp.prototype.startSide=Dp.prototype.endSide=0,Dp.prototype.point=!1,Dp.prototype.mapMode=q2.TrackDel;class M_{constructor(e,n,i){this.from=e,this.to=n,this.value=i}static create(e,n,i){return new M_(e,n,i)}}function aO(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class cO{constructor(e,n,i,r){this.from=e,this.to=n,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,n,i,r=0){let s=i?this.to:this.from;for(let a=r,u=s.length;;){if(a==u)return a;let d=a+u>>1,m=s[d]-e||(i?this.value[d].endSide:this.value[d].startSide)-n;if(d==a)return m>=0?a:u;m>=0?u=d:a=d+1}}between(e,n,i,r){for(let s=this.findIndex(n,-1e9,!0),a=this.findIndex(i,1e9,!1,s);sS||x==S&&m.startSide>0&&m.endSide<=0)continue;(S-x||m.endSide-m.startSide)<0||(a<0&&(a=x),m.point&&(u=Math.max(u,S-x)),i.push(m),r.push(x-a),s.push(S-a))}return{mapped:i.length?new cO(r,s,i,u):null,pos:a}}}let Qc=(()=>{class t{constructor(n,i,r,s){this.chunkPos=n,this.chunk=i,this.nextLayer=r,this.maxPoint=s}static create(n,i,r,s){return new t(n,i,r,s)}get length(){let n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let n=this.nextLayer.size;for(let i of this.chunk)n+=i.value.length;return n}chunkEnd(n){return this.chunkPos[n]+this.chunk[n].length}update(n){let{add:i=[],sort:r=!1,filterFrom:s=0,filterTo:a=this.length}=n,u=n.filter;if(0==i.length&&!u)return this;if(r&&(i=i.slice().sort(aO)),this.isEmpty)return i.length?t.of(i):this;let d=new HX(this,null,-1).goto(0),m=0,_=[],y=new g4;for(;d.value||m=0){let x=i[m++];y.addInner(x.from,x.to,x.value)||_.push(x)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||ad.to||a=a&&n<=a+u.length&&!1===u.between(a,n-a,i-a,r))return}this.nextLayer.between(n,i,r)}}iter(n=0){return S_.from([this]).goto(n)}get isEmpty(){return this.nextLayer==this}static iter(n,i=0){return S_.from(n).goto(i)}static compare(n,i,r,s,a=-1){let u=n.filter(x=>x.maxPoint>0||!x.isEmpty&&x.maxPoint>=a),d=i.filter(x=>x.maxPoint>0||!x.isEmpty&&x.maxPoint>=a),m=OX(u,d,r),_=new k_(u,m,a),y=new k_(d,m,a);r.iterGaps((x,S,D)=>LX(_,x,y,S,D,s)),r.empty&&0==r.length&&LX(_,0,y,0,0,s)}static eq(n,i,r=0,s){null==s&&(s=999999999);let a=n.filter(y=>!y.isEmpty&&i.indexOf(y)<0),u=i.filter(y=>!y.isEmpty&&n.indexOf(y)<0);if(a.length!=u.length)return!1;if(!a.length)return!0;let d=OX(a,u),m=new k_(a,d,0).goto(r),_=new k_(u,d,0).goto(r);for(;;){if(m.to!=_.to||!uO(m.active,_.active)||m.point&&(!_.point||!m.point.eq(_.point)))return!1;if(m.to>s)return!0;m.next(),_.next()}}static spans(n,i,r,s,a=-1){let u=new k_(n,null,a).goto(i),d=i,m=u.openStart;for(;;){let _=Math.min(u.to,r);if(u.point){let y=u.activeForPoint(u.to),x=u.pointFromd&&(s.span(d,_,u.active,m),m=u.openEnd(_));if(u.to>r)return m+(u.point&&u.to>r?1:0);d=u.to,u.next()}}static of(n,i=!1){let r=new g4;for(let s of n instanceof M_?[n]:i?function PDe(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(aO);e=i}return t}(n):n)r.add(s.from,s.to,s.value);return r.finish()}static join(n){if(!n.length)return t.empty;let i=n[n.length-1];for(let r=n.length-2;r>=0;r--)for(let s=n[r];s!=t.empty;s=s.nextLayer)i=new t(s.chunkPos,s.chunk,i,Math.max(s.maxPoint,i.maxPoint));return i}}return t.empty=new t([],[],null,-1),t})();Qc.empty.nextLayer=Qc.empty;class g4{finishChunk(e){this.chunks.push(new cO(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,i){this.addInner(e,n,i)||(this.nextLayer||(this.nextLayer=new g4)).add(e,n,i)}addInner(e,n,i){let r=e-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=n,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),0))}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let i=n.value.length-1;return this.last=n.value[i],this.lastFrom=n.from[i]+e,this.lastTo=n.to[i]+e,!0}finish(){return this.finishInner(Qc.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let n=Qc.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function OX(t,e,n){let i=new Map;for(let s of t)for(let a=0;a=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&r.push(new HX(a,n,i,s));return 1==r.length?r[0]:new S_(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let i of this.heap)i.goto(e,n);for(let i=this.heap.length>>1;i>=0;i--)lO(this.heap,i);return this.next(),this}forward(e,n){for(let i of this.heap)i.forward(e,n);for(let i=this.heap.length>>1;i>=0;i--)lO(this.heap,i);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),lO(this.heap,0)}}}function lO(t,e){for(let n=t[e];;){let i=1+(e<<1);if(i>=t.length)break;let r=t[i];if(i+1=0&&(r=t[i+1],i++),n.compare(r)<0)break;t[i]=n,t[e]=r,e=i}}class k_{constructor(e,n,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=S_.from(e,n,i)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){KM(this.active,e),KM(this.activeTo,e),KM(this.activeRank,e),this.minActive=zX(this.active,this.activeTo)}addActive(e){let n=0,{value:i,to:r,rank:s}=this.cursor;for(;n0;)n++;YM(this.active,n,i),YM(this.activeTo,n,r),YM(this.activeRank,n,s),e&&YM(e,n,this.cursor.from),this.minActive=zX(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&KM(i,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let s=this.cursor.value;if(s.point){if(!(n&&this.cursor.to==this.to&&this.cursor.from=0&&i[r]=0&&!(this.activeRank[i]e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&n.push(this.active[i]);return n.reverse()}openEnd(e){let n=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)n++;return n}}function LX(t,e,n,i,r,s){t.goto(e),n.goto(i);let a=i+r,u=i,d=i-e;for(;;){let m=t.to+d-n.to||t.endSide-n.endSide,_=m<0?t.to+d:n.to,y=Math.min(_,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&uO(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(u,y,t.point,n.point):y>u&&!uO(t.active,n.active)&&s.compareRange(u,y,t.active,n.active),_>a)break;u=_,m<=0&&t.next(),m>=0&&n.next()}}function uO(t,e){if(t.length!=e.length)return!1;for(let n=0;n=e;i--)t[i+1]=t[i];t[e]=n}function zX(t,e){let n=-1,i=1e9;for(let r=0;r=e)return r;if(r==t.length)break;s+=9==t.charCodeAt(r)?n-s%n:1,r=U1(t,r)}return!0===i?-1:t.length}const RX=typeof Symbol>"u"?"__\u037c":Symbol.for("\u037c"),hO=typeof Symbol>"u"?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),NX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Ch{constructor(e,n){this.rules=[];let{finish:i}=n||{};function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function s(a,u,d,m){let _=[],y=/^@(\w+)\b/.exec(a[0]),x=y&&"keyframes"==y[1];if(y&&null==u)return d.push(a[0]+";");for(let S in u){let D=u[S];if(/&/.test(S))s(S.split(/,\s*/).map(z=>a.map($=>z.replace(/&/,$))).reduce((z,$)=>z.concat($)),D,d);else if(D&&"object"==typeof D){if(!y)throw new RangeError("The value of a property ("+S+") should be a primitive value.");s(r(S),D,_,x)}else null!=D&&_.push(S.replace(/_.*/,"").replace(/[A-Z]/g,z=>"-"+z.toLowerCase())+": "+D+";")}(_.length||x)&&d.push((!i||y||m?a:a.map(i)).join(", ")+" {"+_.join(" ")+"}")}for(let a in e)s(r(a),e[a],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=NX[RX]||1;return NX[RX]=e+1,"\u037c"+e.toString(36)}static mount(e,n,i){let r=e[hO],s=i&&i.nonce;r?s&&r.setNonce(s):r=new jDe(e,s),r.mount(Array.isArray(n)?n:[n],e)}}let PX=new Map;class jDe{constructor(e,n){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=PX.get(i);if(s)return e[hO]=s;this.sheet=new r.CSSStyleSheet,PX.set(i,this)}else this.styleTag=i.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[hO]=this}mount(e,n){let i=this.sheet,r=0,s=0;for(let a=0;a-1&&(this.modules.splice(d,1),s--,d=-1),-1==d){if(this.modules.splice(s++,0,u),i)for(let m=0;m",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},FDe=typeof navigator<"u"&&/Mac/.test(navigator.platform),BDe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),q1=0;q1<10;q1++)xh[48+q1]=xh[96+q1]=String(q1);for(q1=1;q1<=24;q1++)xh[q1+111]="F"+q1;for(q1=65;q1<=90;q1++)xh[q1]=String.fromCharCode(q1+32),E_[q1]=String.fromCharCode(q1);for(var pO in xh)E_.hasOwnProperty(pO)||(E_[pO]=xh[pO]);function QM(t){let e;return e=11==t.nodeType?t.getSelection?t:t.ownerDocument:t,e.getSelection()}function mO(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function JM(t,e){if(!e.anchorNode)return!1;try{return mO(t,e.anchorNode)}catch{return!1}}function V5(t){return 3==t.nodeType?Vp(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function D_(t,e,n,i){return!!n&&(jX(t,e,n,i,-1)||jX(t,e,n,i,1))}function Tp(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function ZM(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function jX(t,e,n,i,r){for(;;){if(t==n&&e==i)return!0;if(e==(r<0?0:y0(t))){if("DIV"==t.nodeName)return!1;let s=t.parentNode;if(!s||1!=s.nodeType)return!1;e=Tp(t)+(r<0?0:1),t=s}else{if(1!=t.nodeType)return!1;if(1==(t=t.childNodes[e+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=r<0?y0(t):0}}}function y0(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function eS(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function GDe(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function FX(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}class XDe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?y0(n):0),i,Math.min(e.focusOffset,i?y0(i):0))}set(e,n,i,r){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=r}}let $X,A5=null;function BX(t){if(t.setActive)return t.setActive();if(A5)return t.focus(A5);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(null==A5?{get preventScroll(){return A5={preventScroll:!0},!0}}:void 0),!A5){A5=!1;for(let n=0;nMath.max(1,t.scrollHeight-t.clientHeight-4)}function WX(t,e){for(let n=t,i=e;;){if(3==n.nodeType&&i>0)return{node:n,offset:i};if(1==n.nodeType&&i>0){if("false"==n.contentEditable)return null;n=n.childNodes[i-1],i=y0(n)}else{if(!n.parentNode||ZM(n))return null;i=Tp(n),n=n.parentNode}}}function qX(t,e){for(let n=t,i=e;;){if(3==n.nodeType&&in)return y.domBoundsAround(e,n,m);if(x>=e&&-1==r&&(r=d,s=m),m>n&&y.dom.parentNode==this.dom){a=d,u=_;break}_=x,m=x+y.breakAfter}return{from:s,to:u<0?i+this.length:u,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),1&n.flags)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=gO){this.markDirty();for(let r=e;rthis.pos||e==this.pos&&(n>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function YX(t,e,n,i,r,s,a,u,d){let{children:m}=t,_=m.length?m[e]:null,y=s.length?s[s.length-1]:null,x=y?y.breakAfter:a;if(!(e==i&&_&&!a&&!x&&s.length<2&&_.merge(n,r,s.length?y:null,0==n,u,d))){if(i0&&(!a&&s.length&&_.merge(n,_.length,s[0],!1,u,0)?_.breakAfter=s.shift().breakAfter:(n<_.length||_.children.length&&0==_.children[_.children.length-1].length)&&_.merge(n,_.length,null,!1,u,0),e++));e2);var vr={mac:nK||/Mac/.test(Gu.platform),windows:/Win/.test(Gu.platform),linux:/Linux|X11/.test(Gu.platform),ie:tS,ie_version:JX?vO.documentMode||6:bO?+bO[1]:_O?+_O[1]:0,gecko:ZX,gecko_version:ZX?+(/Firefox\/(\d+)/.exec(Gu.userAgent)||[0,0])[1]:0,chrome:!!yO,chrome_version:yO?+yO[1]:0,ios:nK,android:/Android\b/.test(Gu.userAgent),webkit:eK,safari:tK,webkit_version:eK?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=vO.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class v4 extends _c{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,n,i){return!(8&this.flags||i&&(!(i instanceof v4)||this.length-(n-e)+i.length>256||8&i.flags)||(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),0))}split(e){let n=new v4(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=8&this.flags,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new f2(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return function JDe(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let r=e,s=e,a=0;0==e&&n<0||e==i&&n>=0?vr.chrome||vr.gecko||(e?(r--,a=1):s=0)?0:u.length-1];return vr.safari&&!a&&0==d.width&&(d=Array.prototype.find.call(u,m=>m.width)||d),a?eS(d,a<0):d||null}(this.dom,e,n)}}class C0 extends _c{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let r of n)r.setParent(this)}setAttrs(e){if(UX(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,r,s,a){return!(i&&(!(i instanceof C0&&i.mark.eq(this.mark))||e&&s<=0||ne&&n.push(i=e&&(r=s),i=d,s++}let a=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new C0(this.mark,n,a)}domAtPos(e){return iK(this,e)}coordsAt(e,n){return sK(this,e,n)}}class wh extends _c{static create(e,n,i){return new wh(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=wh.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,r,s,a){return!(i&&(!(i instanceof wh&&this.widget.compare(i.widget))||e>0&&s<=0||n0)?f2.before(this.dom):f2.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let a=this.side?this.side<0:e>0;for(let u=a?r.length-1:0;s=r[u],!(e>0?0==u:u==r.length-1||s.top0?f2.before(this.dom):f2.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ia.empty}get isHidden(){return!0}}function iK(t,e){let n=t.dom,{children:i}=t,r=0;for(let s=0;rs&&e0;s--){let a=i[s-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let s=r;s0&&e instanceof C0&&r.length&&(i=r[r.length-1])instanceof C0&&i.mark.eq(e.mark)?rK(i,e.children[0],n-1):(r.push(e),e.setParent(t)),t.length+=e.length}function sK(t,e,n){let i=null,r=-1,s=null,a=-1;!function u(m,_){for(let y=0,x=0;y=_&&(S.children.length?u(S,_-x):(!s||s.isHidden&&n>0)&&(D>_||x==D&&S.getSide()>0)?(s=S,a=_-x):(x<_||x==D&&S.getSide()<0&&!S.isHidden)&&(i=S,r=_-x)),x=D}}(t,e);let d=(n<0?i:s)||i||s;return d?d.coordsAt(Math.max(0,d==i?r:a),n):function ZDe(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=V5(e);return n[n.length-1]||null}(t)}function CO(t,e){for(let n in t)"class"==n&&e.class?e.class+=" "+t.class:"style"==n&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}v4.prototype.children=wh.prototype.children=O5.prototype.children=gO;const oK=Object.create(null);function xO(t,e,n){if(t==e)return!0;t||(t=oK),e||(e=oK);let i=Object.keys(t),r=Object.keys(e);if(i.length-(n&&i.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let s of i)if(s!=n&&(-1==r.indexOf(s)||t[s]!==e[s]))return!1;return!0}function wO(t,e,n){let i=!1;if(e)for(let r in e)n&&r in n||(i=!0,"style"==r?t.style.cssText="":t.removeAttribute(r));if(n)for(let r in n)e&&e[r]==n[r]||(i=!0,"style"==r?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return i}function eTe(t){let e=Object.create(null);for(let n=0;n0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){xO(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){rK(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=CO(n,this.attrs||{})),i&&(this.attrs=CO({class:i},this.attrs||{}))}domAtPos(e){return iK(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?4&this.flags&&(UX(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(wO(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let r=this.dom.lastChild;for(;r&&_c.get(r)instanceof C0;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(i=_c.get(r))||void 0===i?void 0:i.isEditable)||vr.ios&&this.children.some(s=>s instanceof v4)))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let n,e=0;for(let i of this.children){if(!(i instanceof v4)||/[^ -~]/.test(i.text))return null;let r=V5(i.dom);if(1!=r.length)return null;e+=r[0].width,n=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=sK(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight=n){if(s instanceof g1)return s;if(a>n)break}r=a+s.breakAfter}return null}}class Mh extends _c{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,r,s,a){return!(i&&(!(i instanceof Mh&&this.widget.compare(i.widget))||e>0&&s<=0||n0)}}class h3{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var X2=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(X2||(X2={}));class Rr extends Dp{constructor(e,n,i,r){super(),this.startSide=e,this.endSide=n,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new T_(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return n+=i&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Sh(e,n,n,i,e.widget||null,!1)}static replace(e){let i,r,n=!!e.block;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:s,end:a}=aK(e,n);i=(s?n?-3e8:-1:5e8)-1,r=1+(a?n?2e8:1:-6e8)}return new Sh(e,i,r,n,e.widget||null,!0)}static line(e){return new V_(e)}static set(e,n=!1){return Qc.of(e,n)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Rr.none=Qc.empty;class T_ extends Rr{constructor(e){let{start:n,end:i}=aK(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof T_&&this.tagName==e.tagName&&(this.class||(null===(n=this.attrs)||void 0===n?void 0:n.class))==(e.class||(null===(i=e.attrs)||void 0===i?void 0:i.class))&&xO(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}T_.prototype.point=!1;class V_ extends Rr{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof V_&&this.spec.class==e.spec.class&&xO(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}V_.prototype.mapMode=q2.TrackBefore,V_.prototype.point=!0;class Sh extends Rr{constructor(e,n,i,r,s,a){super(n,i,s,e),this.block=r,this.isReplace=a,this.mapMode=r?n<=0?q2.TrackBefore:q2.TrackAfter:q2.TrackDel}get type(){return this.startSide!=this.endSide?X2.WidgetRange:this.startSide<=0?X2.WidgetBefore:X2.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Sh&&function tTe(t,e){return t==e||!!(t&&e&&t.compare(e))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}function aK(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return null==n&&(n=t.inclusive),null==i&&(i=t.inclusive),{start:n??e,end:i??e}}function MO(t,e,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=t?n[r]=Math.max(n[r],e):n.push(t,e)}Sh.prototype.point=!0;class A_{constructor(e,n,i,r){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Mh&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new g1),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(nS(new O5(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Mh)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:a,done:u}=this.cursor.next(this.skip);if(this.skip=0,u)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(nS(new v4(this.text.slice(this.textOff,this.textOff+r)),n),i),this.atCursorPos=!0,this.textOff+=r,e-=r,i=0}}span(e,n,i,r){this.buildText(n-e,i,r),this.pos=n,this.openStart<0&&(this.openStart=r)}point(e,n,i,r,s,a){if(this.disallowBlockEffectsFor[a]&&i instanceof Sh){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let u=n-e;if(i instanceof Sh)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Mh(i.widget||cK.block,u,i));else{let d=wh.create(i.widget||cK.inline,u,u?0:i.startSide),m=this.atCursorPos&&!d.isEditable&&s<=r.length&&(e0),_=!d.isEditable&&(er.length||i.startSide<=0),y=this.getLine();2==this.pendingBuffer&&!m&&!d.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),m&&(y.append(nS(new O5(1),r),s),s=r.length+Math.max(0,s-r.length)),y.append(nS(d,r),s),this.atCursorPos=_,this.pendingBuffer=_?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);u&&(this.textOff+u<=this.text.length?this.textOff+=u:(this.skip+=u-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(e,n,i,r,s){let a=new A_(e,n,i,s);return a.openEnd=Qc.spans(r,n,i,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function nS(t,e){for(let n of e)t=new C0(n,[t],t.length);return t}let cK=(()=>{class t extends h3{constructor(n){super(),this.tag=n}eq(n){return n.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(n){return n.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}return t.inline=new t("span"),t.block=new t("div"),t})();var bc=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(bc||(bc={}));const Ap=bc.LTR,SO=bc.RTL;function lK(t){let e=[];for(let n=0;n=n){if(u.level==i)return a;(s<0||(0!=r?r<0?u.fromn:e[s].level>u.level))&&(s=a)}}if(s<0)throw new RangeError("Index out of range");return s}}function dK(t,e){if(t.length!=e.length)return!1;for(let n=0;nd&&a.push(new kh(d,z.from,S)),DO(t,z.direction==Ap!=!(S%2)?i+1:i,r,z.inner,z.from,z.to,a),d=z.to),D=z.to}else{if(D==n||(_?yc[D]!=u:yc[D]==u))break;D++}x?EO(t,d,D,i+1,r,x,a):de;){let _=!0,y=!1;if(!m||d>s[m-1].to){let z=yc[d-1];z!=u&&(_=!1,y=16==z)}let x=_||1!=u?null:[],S=_?i:i+1,D=d;e:for(;;)if(m&&D==s[m-1].to){if(y)break e;let z=s[--m];if(!_)for(let $=z.from,W=m;;){if($==e)break e;if(!W||s[W-1].to!=$){if(yc[$-1]==u)break e;break}$=s[--W].from}x?x.push(z):(z.to=0;z-=3)if(p3[z+1]==-S){let $=p3[z+2],W=2&$?r:4&$?1&$?s:r:0;W&&(yc[y]=yc[p3[z]]=W),u=z;break}}else{if(189==p3.length)break;p3[u++]=y,p3[u++]=x,p3[u++]=d}else if(2==(D=yc[y])||1==D){let z=D==r;d=z?0:1;for(let $=u-3;$>=0;$-=3){let W=p3[$+2];if(2&W)break;if(z)p3[$+2]|=2;else{if(4&W)break;p3[$+2]|=4}}}}}(t,r,s,i,u),function aTe(t,e,n,i){for(let r=0,s=i;r<=n.length;r++){let u=rd;)D==$&&(D=n[--z].from,$=z?n[z-1].to:t),yc[--D]=S;d=_}else s=m,d++}}}(r,s,i,u),EO(t,r,s,e,n,i,a)}function hK(t){return[new kh(0,t,0)]}let pK="";function mK(t,e,n,i,r){var s;let a=i.head-t.from,u=kh.find(e,a,null!==(s=i.bidiLevel)&&void 0!==s?s:-1,i.assoc),d=e[u],m=d.side(r,n);if(a==m){let x=u+=r?1:-1;if(x<0||x>=e.length)return null;d=e[u=x],a=d.side(!r,n),m=d.side(r,n)}let _=U1(t.text,a,d.forward(r,n));(_d.to)&&(_=m),pK=t.text.slice(Math.min(a,_),Math.max(a,_));let y=u==(r?e.length-1:0)?null:e[u+(r?1:-1)];return y&&_==m&&y.level+(r?0:1)t.some(e=>e)}),wK=sr.define({combine:t=>t.some(e=>e)}),MK=sr.define();class H5{constructor(e,n="nearest",i="nearest",r=5,s=5,a=!1){this.range=e,this.y=n,this.x=i,this.yMargin=r,this.xMargin=s,this.isSnapshot=a}map(e){return e.empty?this:new H5(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new H5(mi.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const iS=Uo.define({map:(t,e)=>t.map(e)});function K2(t,e,n){let i=t.facet(bK);i.length?i[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const rS=sr.define({combine:t=>!t.length||t[0]});let lTe=0;const I_=sr.define();class Vc{constructor(e,n,i,r,s){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=r,this.extension=s(this)}static define(e,n){const{eventHandlers:i,eventObservers:r,provide:s,decorations:a}=n||{};return new Vc(lTe++,e,i,r,u=>{let d=[I_.of(u)];return a&&d.push(O_.of(m=>{let _=m.plugin(u);return _?a(_):Rr.none})),s&&d.push(s(u)),d})}static fromClass(e,n){return Vc.define(i=>new e(i),n)}}class VO{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(K2(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){K2(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(null!==(n=this.value)&&void 0!==n&&n.destroy)try{this.value.destroy()}catch(i){K2(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const SK=sr.define(),sS=sr.define(),O_=sr.define(),kK=sr.define(),AO=sr.define(),EK=sr.define();function DK(t,e){let n=t.state.facet(EK);if(!n.length)return n;let i=n.map(s=>s instanceof Function?s(t):s),r=[];return Qc.spans(i,e.from,e.to,{point(){},span(s,a,u,d){let m=s-e.from,_=a-e.from,y=r;for(let x=u.length-1;x>=0;x--,d--){let D,S=u[x].spec.bidiIsolate;if(null==S&&(S=cTe(e.text,m,_)),d>0&&y.length&&(D=y[y.length-1]).to==m&&D.direction==S)D.to=_,y=D.inner;else{let z={from:m,to:_,direction:S,inner:[]};y.push(z),y=z.inner}}}}),r}const TK=sr.define();function VK(t){let e=0,n=0,i=0,r=0;for(let s of t.state.facet(TK)){let a=s(t);a&&(null!=a.left&&(e=Math.max(e,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(i=Math.max(i,a.top)),null!=a.bottom&&(r=Math.max(r,a.bottom)))}return{left:e,right:n,top:i,bottom:r}}const H_=sr.define();class Wu{constructor(e,n,i,r){this.fromA=e,this.toA=n,this.fromB=i,this.toB=r}join(e){return new Wu(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let r=e[n-1];if(!(r.fromA>i.toA)){if(r.toA_)break;s+=2}if(!d)return i;new Wu(d.fromA,d.toA,d.fromB,d.toB).addToSet(i),a=d.toA,u=d.toB}}}class oS{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=m1.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,a,u,d)=>r.push(new Wu(s,a,u,d))),this.changedRanges=r}static create(e,n,i){return new oS(e,n,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}class AK extends _c{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new g1],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Wu(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:m,toA:_})=>_this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(null!==(n=this.domChanged)&&void 0!==n&&n.newSel?r=this.domChanged.newSel.head:!function gTe(t,e){let n=!1;return e&&t.iterChangedRanges((i,r)=>{ie.from&&(n=!0)}),n}(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?function dTe(t,e,n){let i=OK(t,n);if(!i)return null;let{node:r,from:s,to:a}=i,u=r.nodeValue;if(/[\n\r]/.test(u)||t.state.doc.sliceString(i.from,i.to)!=u)return null;let d=e.invertedDesc,m=new Wu(d.mapPos(s),d.mapPos(a),s,a),_=[];for(let y=r.parentNode;;y=y.parentNode){let x=_c.get(y);if(x instanceof C0)_.push({node:y,deco:x.mark});else{if(x instanceof g1||"DIV"==y.nodeName&&y.parentNode==t.contentDOM)return{range:m,text:r,marks:_,line:y};if(y==t.contentDOM)return null;_.push({node:y,deco:new T_({inclusive:!0,attributes:eTe(y),tagName:y.tagName.toLowerCase()})})}}}(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:m,to:_}=this.hasComposition;i=new Wu(m,_,e.changes.mapPos(m,-1),e.changes.mapPos(_,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(vr.ie||vr.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let d=function pTe(t,e,n){let i=new hTe;return Qc.compare(t,e,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return i=Wu.extendWithRanges(i,d),!!(7&this.flags||0!=i.length)&&(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=vr.chrome||vr.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||r.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to=0?r[a]:null;if(!u)break;let x,S,D,z,{fromA:d,toA:m,fromB:_,toB:y}=u;if(i&&i.range.fromB_){let ke=A_.build(this.view.state.doc,_,i.range.fromB,this.decorations,this.dynamicDecorationMap),ye=A_.build(this.view.state.doc,i.range.toB,y,this.decorations,this.dynamicDecorationMap);S=ke.breakAtStart,D=ke.openStart,z=ye.openEnd;let Ye=this.compositionView(i);ye.breakAtStart?Ye.breakAfter=1:ye.content.length&&Ye.merge(Ye.length,Ye.length,ye.content[0],!1,ye.openStart,0)&&(Ye.breakAfter=ye.content[0].breakAfter,ye.content.shift()),ke.content.length&&Ye.merge(0,0,ke.content[ke.content.length-1],!0,0,ke.openEnd)&&ke.content.pop(),x=ke.content.concat(Ye).concat(ye.content)}else({content:x,breakAtStart:S,openStart:D,openEnd:z}=A_.build(this.view.state.doc,_,y,this.decorations,this.dynamicDecorationMap));let{i:$,off:W}=s.findPos(m,1),{i:re,off:se}=s.findPos(d,-1);YX(this,re,se,$,W,x,S,D,z)}i&&this.fixCompositionDOM(i)}compositionView(e){let n=new v4(e.text.nodeValue);n.flags|=8;for(let{deco:r}of e.marks)n=new C0(r,[n],n.length);let i=new g1;return i.append(n,0),i}fixCompositionDOM(e){let n=(s,a)=>{a.flags|=8|(a.children.some(d=>7&d.flags)?1:0),this.markedForComposition.add(a);let u=_c.get(s);u&&u!=a&&(u.dom=null),a.setDOM(s)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];n(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)i=r.childPos(i.off,1),r=r.children[i.i],n(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,s=!r&&JM(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||n||s))return;let a=this.forceSelection;this.forceSelection=!1;let u=this.view.state.selection.main,d=this.moveToLine(this.domAtPos(u.anchor)),m=u.empty?d:this.moveToLine(this.domAtPos(u.head));if(vr.gecko&&u.empty&&!this.hasComposition&&function uTe(t){return 1==t.node.nodeType&&t.node.firstChild&&(0==t.offset||"false"==t.node.childNodes[t.offset-1].contentEditable)&&(t.offset==t.node.childNodes.length||"false"==t.node.childNodes[t.offset].contentEditable)}(d)){let y=document.createTextNode("");this.view.observer.ignore(()=>d.node.insertBefore(y,d.node.childNodes[d.offset]||null)),d=m=new f2(y,0),a=!0}let _=this.view.observer.selectionRange;(a||!_.focusNode||(!D_(d.node,d.offset,_.anchorNode,_.anchorOffset)||!D_(m.node,m.offset,_.focusNode,_.focusOffset))&&!this.suppressWidgetCursorChange(_,u))&&(this.view.observer.ignore(()=>{vr.android&&vr.chrome&&this.dom.contains(_.focusNode)&&function mTe(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(_.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let y=QM(this.view.root);if(y)if(u.empty){if(vr.gecko){let x=function fTe(t,e){return 1!=t.nodeType?0:(e&&"false"==t.childNodes[e-1].contentEditable?1:0)|(eu.head&&([d,m]=[m,d]),x.setEnd(m.node,m.offset),x.setStart(d.node,d.offset),y.removeAllRanges(),y.addRange(x)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(d,m)),this.impreciseAnchor=d.precise?null:new f2(_.anchorNode,_.anchorOffset),this.impreciseHead=m.precise?null:new f2(_.focusNode,_.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&D_(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=QM(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!(i&&n.empty&&n.assoc&&i.modify))return;let a=g1.find(this,n.head);if(!a)return;let u=a.posAtStart;if(n.head==u||n.head==u+a.length)return;let d=this.coordsAt(n.head,-1),m=this.coordsAt(n.head,1);if(!d||!m||d.bottom>m.top)return;let _=this.domAtPos(n.head+n.assoc);i.collapse(_.node,_.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let y=e.observer.selectionRange;e.docView.posFromDOM(y.anchorNode,y.anchorOffset)!=n.from&&i.collapse(r,s)}moveToLine(e){let i,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!i&&r=0;r--){let s=_c.get(n.childNodes[r]);s instanceof g1&&(i=s.domAtPos(s.length))}return i?new f2(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=_c.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n=0;a--){let u=this.children[a],d=s-u.breakAfter,m=d-u.length;if(de||u.covers(1))&&(!i||u instanceof g1&&!(i instanceof g1&&n>=0))&&(i=u,r=m),s=m}return i?i.coordsAt(e-r,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),r=this.children[n];if(!(r instanceof g1))return null;for(;r.children.length;){let{i:u,off:d}=r.childPos(i,1);for(;;u++){if(u==r.children.length)return null;if((r=r.children[u]).length)break}i=d}if(!(r instanceof v4))return null;let s=U1(r.text,i);if(s==i)return null;let a=Vp(r.dom,i,s).getClientRects();for(let u=0;uMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,u=-1,d=this.view.textDirection==bc.LTR;for(let m=0,_=0;_r)break;if(m>=i){let S=y.dom.getBoundingClientRect();if(n.push(S.height),a){let D=y.dom.lastChild,z=D?V5(D):[];if(z.length){let $=z[z.length-1],W=d?$.right-S.left:S.right-$.left;W>u&&(u=W,this.minWidth=s,this.minWidthFrom=m,this.minWidthTo=x)}}}m=x+y.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[n].dom).direction?bc.RTL:bc.LTR}measureTextSize(){for(let s of this.children)if(s instanceof g1){let a=s.measureTextSize();if(a)return a}let n,i,r,e=document.createElement("div");return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=V5(e.firstChild)[0];n=e.getBoundingClientRect().height,i=s?s.width/27:7,r=s?s.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:r}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new KX(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,r=0;;r++){let s=r==n.viewports.length?null:n.viewports[r],a=s?s.from-1:this.length;if(a>i){let u=(n.lineBlockAt(a).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(Rr.replace({widget:new IK(u),block:!0,inclusive:!0,isBlockGap:!0}).range(i,a))}if(!s)break;i=s.to+1}return Rr.set(e)}updateDeco(){let e=0,n=this.view.state.facet(O_).map(s=>(this.dynamicDecorationMap[e++]="function"==typeof s)?s(this.view):s),i=!1,r=this.view.state.facet(kK).map((s,a)=>{let u="function"==typeof s;return u&&(i=!0),u?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=i,n.push(Qc.join(r))),this.decorations=[...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];en.anchor?-1:1);if(!i)return;!n.empty&&(r=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=VK(this.view),a={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:u,offsetHeight:d}=this.view.scrollDOM;!function WDe(t,e,n,i,r,s,a,u){let d=t.ownerDocument,m=d.defaultView||window;for(let _=t,y=!1;_&&!y;)if(1==_.nodeType){let x,S=_==d.body,D=1,z=1;if(S)x=GDe(m);else{if(/^(fixed|sticky)$/.test(getComputedStyle(_).position)&&(y=!0),_.scrollHeight<=_.clientHeight&&_.scrollWidth<=_.clientWidth){_=_.assignedSlot||_.parentNode;continue}let re=_.getBoundingClientRect();({scaleX:D,scaleY:z}=FX(_,re)),x={left:re.left,right:re.left+_.clientWidth*D,top:re.top,bottom:re.top+_.clientHeight*z}}let $=0,W=0;if("nearest"==r)e.top0&&e.bottom>x.bottom+W&&(W=e.bottom-x.bottom+W+a)):e.bottom>x.bottom&&(W=e.bottom-x.bottom+a,n<0&&e.top-W0&&e.right>x.right+$&&($=e.right-x.right+$+s)):e.right>x.right&&($=e.right-x.right+s,n<0&&e.leftt?e.left-t:Math.max(0,t-e.right)}function bTe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function IO(t,e){return t.tope.top+1}function HK(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function OO(t,e,n){let i,r,s,a,d,m,_,y,u=!1;for(let D=t.firstChild;D;D=D.nextSibling){let z=V5(D);for(let $=0;$se||a==se&&s>re){i=D,r=W,s=re,a=se;let ke=se?n0?$0)}0==re?n>W.bottom&&(!_||_.bottomW.top)&&(m=D,y=W):_&&IO(_,W)?_=LK(_,W.bottom):y&&IO(y,W)&&(y=HK(y,W.top))}}if(_&&_.bottom>=n?(i=d,r=_):y&&y.top<=n&&(i=m,r=y),!i)return{node:t,offset:0};let x=Math.max(r.left,Math.min(r.right,e));return 3==i.nodeType?zK(i,x,n):u&&"false"!=i.contentEditable?OO(i,x,n):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,i)+(e>=(r.left+r.right)/2?1:0)}}function zK(t,e,n){let i=t.nodeValue.length,r=-1,s=1e9,a=0;for(let u=0;un?_.top-n:n-_.bottom)-1;if(_.left-1<=e&&_.right+1>=e&&y=(_.left+_.right)/2,S=x;if((vr.chrome||vr.gecko)&&Vp(t,u).getBoundingClientRect().left==_.right&&(S=!x),y<=0)return{node:t,offset:u+(S?1:0)};r=u+(S?1:0),s=y}}}return{node:t,offset:r>-1?r:a>0?t.nodeValue.length:0}}function RK(t,e,n,i=-1){var r,s;let d,a=t.contentDOM.getBoundingClientRect(),u=a.top+t.viewState.paddingTop,{docHeight:m}=t.viewState,{x:_,y}=e,x=y-u;if(x<0)return 0;if(x>m)return t.state.doc.length;for(let ke=t.viewState.heightOracle.textHeight/2,ye=!1;d=t.elementAtHeight(x),d.type!=X2.Text;)for(;x=i>0?d.bottom+ke:d.top-ke,!(x>=0&&x<=m);){if(ye)return n?null:0;ye=!0,i=-i}y=u+x;let S=d.from;if(St.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:NK(t,a,d,_,y);let D=t.dom.ownerDocument,z=t.root.elementFromPoint?t.root:D,$=z.elementFromPoint(_,y);$&&!t.contentDOM.contains($)&&($=null),$||(_=Math.max(a.left+1,Math.min(a.right-1,_)),$=z.elementFromPoint(_,y),$&&!t.contentDOM.contains($)&&($=null));let W,re=-1;if($&&0!=(null===(r=t.docView.nearest($))||void 0===r?void 0:r.isEditable))if(D.caretPositionFromPoint){let ke=D.caretPositionFromPoint(_,y);ke&&({offsetNode:W,offset:re}=ke)}else if(D.caretRangeFromPoint){let ke=D.caretRangeFromPoint(_,y);ke&&(({startContainer:W,startOffset:re}=ke),(!t.contentDOM.contains(W)||vr.safari&&function yTe(t,e,n){let i;if(3!=t.nodeType||e!=(i=t.nodeValue.length))return!1;for(let r=t.nextSibling;r;r=r.nextSibling)if(1!=r.nodeType||"BR"!=r.nodeName)return!1;return Vp(t,i-1,i).getBoundingClientRect().left>n}(W,re,_)||vr.chrome&&function CTe(t,e,n){if(0!=e)return!1;for(let r=t;;){let s=r.parentNode;if(!s||1!=s.nodeType||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}return n-(1==t.nodeType?t.getBoundingClientRect():Vp(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(W,re,_))&&(W=void 0))}if(!W||!t.docView.dom.contains(W)){let ke=g1.find(t.docView,S);if(!ke)return x>d.top+d.height/2?d.to:d.from;({node:W,offset:re}=OO(ke.dom,_,y))}let se=t.docView.nearest(W);if(!se)return null;if(se.isWidget&&1==(null===(s=se.dom)||void 0===s?void 0:s.nodeType)){let ke=se.dom.getBoundingClientRect();return e.y1.5*t.defaultLineHeight){let u=t.viewState.heightOracle.textHeight;s+=Math.floor((r-n.top-.5*(t.defaultLineHeight-u))/u)*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+dO(a,s,t.state.tabSize)}function HO(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type))for(let i of n.type)if(i.to>e||i.to==e&&(i.to==n.to||i.type==X2.Text))return i;return n}function PK(t,e,n,i){let r=t.state.doc.lineAt(e.head),s=t.bidiSpans(r),a=t.textDirectionAt(r.from);for(let u=e,d=null;;){let m=mK(r,s,a,u,n),_=pK;if(!m){if(r.number==(n?t.state.doc.lines:1))return u;_="\n",r=t.state.doc.line(r.number+(n?1:-1)),s=t.bidiSpans(r),m=t.visualLineSide(r,!n)}if(d){if(!d(_))return u}else{if(!i)return m;d=i(_)}u=m}}function aS(t,e,n){for(;;){let i=0;for(let r of t)r.between(e-1,e+1,(s,a,u)=>{if(e>s&&er(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:mi.cursor(i,inull),vr.gecko&&function FTe(t){iY.has(t)||(iY.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){!function OTe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i,n=e.target;n!=t.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(i=_c.get(n))&&i.ignoreEvent(e))return!1;return!0}(this.view,e)||this.ignoreDuringComposition(e)||"keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,n);for(let r of i.handlers){if(n.defaultPrevented)break;if(r(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=function kTe(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let r=i.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let a=r.domEventHandlers[s];a&&n(s).handlers.push(jK(i.value,a))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let a=r.domEventObservers[s];a&&n(s).observers.push(jK(i.value,a))}}for(let i in _4)n(i).handlers.push(_4[i]);for(let i in Vd)n(i).observers.push(Vd[i]);return e}(e),i=this.handlers,r=this.view.contentDOM;for(let s in n)if("scroll"!=s){let a=!n[s].handlers.length,u=i[s];u&&a!=!u.handlers.length&&(r.removeEventListener(s,this.handleEvent),u=null),u||r.addEventListener(s,this.handleEvent,{passive:a})}for(let s in i)"scroll"!=s&&!n[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()i.keyCode==e.keyCode))&&!e.ctrlKey||ETe.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(e){let n=this.pendingIOSKey;return!(!n||"Enter"==n.key&&e&&e.from0||!!(vr.safari&&!vr.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function jK(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(r){K2(n.state,r)}}}const FK=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ETe="dthko",BK=[16,17,18,20,91,92,224,225];function lS(t){return.7*Math.max(0,t)+8}class TTe{constructor(e,n,i,r){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=function qDe(t){let e=t.ownerDocument;for(let n=t.parentNode;n&&n!=e.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(AO).map(a=>a(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(W1.allowMultipleSelections)&&function VTe(t,e){let n=t.state.facet(gK);return n.length?n[0](e):vr.mac?e.metaKey:e.ctrlKey}(e,n),this.dragging=!(!function ITe(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=QM(t.root);if(!i||0==i.rangeCount)return!0;let r=i.getRangeAt(0).getClientRects();for(let s=0;s=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}(e,n)||1!=JK(n))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var n;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function DTe(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,r=0,s=(null===(n=this.scrollParent)||void 0===n?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=VK(this.view);e.clientX-a.left<=s.left+6?i=-lS(s.left-e.clientX):e.clientX+a.right>=s.right-6&&(i=lS(e.clientX-s.right)),e.clientY-a.top<=s.top+6?r=-lS(s.top-e.clientY):e.clientY+a.bottom>=s.bottom-6&&(r=lS(e.clientY-s.bottom)),this.setScrollSpeed(i,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let i=0;ithis.select(this.lastEvent),20)}}const _4=Object.create(null),Vd=Object.create(null),$K=vr.ie&&vr.ie_version<15||vr.ios&&vr.webkit_version<604;function UK(t,e){let i,{state:n}=t,r=1,s=n.toText(e),a=s.lines==n.selection.ranges.length;if(null!=zO&&n.selection.ranges.every(d=>d.empty)&&zO==s.toString()){let d=-1;i=n.changeByRange(m=>{let _=n.doc.lineAt(m.from);if(_.from==d)return{range:m};d=_.from;let y=n.toText((a?s.line(r++).text:e)+n.lineBreak);return{changes:{from:_.from,insert:y},range:mi.cursor(m.from+y.length)}})}else i=a?n.changeByRange(d=>{let m=s.line(r++);return{changes:{from:d.from,to:d.to,insert:m.text},range:mi.cursor(d.from+m.length)}}):n.replaceSelection(s);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function GK(t,e,n,i){if(1==i)return mi.cursor(e,n);if(2==i)return function vTe(t,e,n=1){let i=t.charCategorizer(e),r=t.doc.lineAt(e),s=e-r.from;if(0==r.length)return mi.cursor(e);0==s?n=1:s==r.length&&(n=-1);let a=s,u=s;n<0?a=U1(r.text,s,!1):u=U1(r.text,s);let d=i(r.text.slice(a,u));for(;a>0;){let m=U1(r.text,a,!1);if(i(r.text.slice(m,a))!=d)break;a=m}for(;u{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},_4.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&(t.inputState.lastEscPress=Date.now()),!1),Vd.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},Vd.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},_4.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(_K))if(n=i(t,e),n)break;if(!n&&0==e.button&&(n=function RTe(t,e){let n=XK(t,e),i=JK(e),r=t.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),r=r.map(s.changes))},get(s,a,u){let m,d=XK(t,s),_=GK(t,d.pos,d.bias,i);if(n.pos!=d.pos&&!a){let y=GK(t,n.pos,n.bias,i),x=Math.min(y.from,_.from),S=Math.max(y.to,_.to);_=x<_.from?mi.range(x,S):mi.range(S,x)}return a?r.replaceRange(r.main.extend(_.from,_.to)):u&&1==i&&r.ranges.length>1&&(m=function NTe(t,e){for(let n=0;n=e)return mi.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}(r,d.pos))?m:u?r.addRange(_):mi.create([_])}}}(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new TTe(t,e,n,i)),i&&t.observer.ignore(()=>BX(t.contentDOM));let r=t.inputState.mouseSelection;if(r)return r.start(e),!1===r.dragging}return!1};let WK=(t,e)=>t>=e.top&&t<=e.bottom,qK=(t,e,n)=>WK(e,n)&&t>=n.left&&t<=n.right;function LTe(t,e,n,i){let r=g1.find(t.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(0==s)return 1;if(s==r.length)return-1;let a=r.coordsAt(s,-1);if(a&&qK(n,i,a))return-1;let u=r.coordsAt(s,1);return u&&qK(n,i,u)?1:a&&WK(i,a)?-1:1}function XK(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:LTe(t,n,e.clientX,e.clientY)}}const zTe=vr.ie&&vr.ie_version<=11;let KK=null,YK=0,QK=0;function JK(t){if(!zTe)return t.detail;let e=KK,n=QK;return KK=t,QK=Date.now(),YK=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(YK+1)%3:1}function ZK(t,e,n,i){if(!n)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,a=i&&s&&function ATe(t,e){let n=t.state.facet(vK);return n.length?n[0](e):vr.mac?!e.altKey:!e.ctrlKey}(t,e)?{from:s.from,to:s.to}:null,u={from:r,insert:n},d=t.state.changes(a?[a,u]:u);t.focus(),t.dispatch({changes:d,selection:{anchor:d.mapPos(r,-1),head:d.mapPos(r,1)},userEvent:a?"move.drop":"input.drop"}),t.inputState.draggedContent=null}_4.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,a=s+r.length;(s>=n.to||a<=n.from)&&(n=mi.range(s,a))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1},_4.dragend=t=>(t.inputState.draggedContent=null,!1),_4.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),r=0,s=()=>{++r==n.length&&ZK(t,e,i.filter(a=>null!=a).join(t.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(u.result)||(i[a]=u.result),s()},u.readAsText(n[a])}return!0}{let i=e.dataTransfer.getData("Text");if(i)return ZK(t,e,i,!0),!0}return!1},_4.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=$K?null:e.clipboardData;return n?(UK(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function HTe(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),UK(t,n.value)},50)}(t),!1)};let zO=null;_4.copy=_4.cut=(t,e)=>{let{text:n,ranges:i,linewise:r}=function jTe(t){let e=[],n=[],i=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),n.push(r));if(!e.length){let r=-1;for(let{from:s}of t.selection.ranges){let a=t.doc.lineAt(s);a.number>r&&(e.push(a.text),n.push({from:a.from,to:Math.min(t.doc.length,a.to+1)})),r=a.number}i=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:i}}(t.state);if(!n&&!r)return!1;zO=r?n:null,"cut"==e.type&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=$K?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(function PTe(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}(t,n),!1)};const eY=b0.define();function tY(t,e){let n=[];for(let i of t.facet(CK)){let r=i(t,e);r&&n.push(r)}return n?t.update({effects:n,annotations:eY.of(!0)}):null}function nY(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=tY(t.state,e);n?t.dispatch(n):t.update([])}},10)}Vd.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),nY(t)},Vd.blur=t=>{t.observer.clearSelectionRange(),nY(t)},Vd.compositionstart=Vd.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},Vd.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,vr.chrome&&vr.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)},Vd.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},_4.beforeinput=(t,e)=>{var n;let i;if(vr.chrome&&vr.android&&(i=FK.find(r=>r.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let r=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout(()=>{var s;((null===(s=window.visualViewport)||void 0===s?void 0:s.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return vr.ios&&"deleteContentForward"==e.inputType&&t.observer.flushSoon(),vr.safari&&"insertText"==e.inputType&&t.inputState.composing>=0&&setTimeout(()=>Vd.compositionend(t,e),20),!1};const iY=new Set,rY=["pre-wrap","normal","pre-line","break-spaces"];class sY{constructor(e){this.lineWrapping=e,this.doc=Ia.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return rY.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i-1,d=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=u;if(this.lineWrapping=u,this.lineHeight=n,this.charWidth=i,this.textHeight=r,this.lineLength=s,d){this.heightSamples={};for(let m=0;m0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,n){this.height!=n&&(Math.abs(this.height-n)>uS&&(e.heightChanged=!0),this.height=n)}replace(e,n,i){return h2.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,r){let s=this,a=i.doc;for(let u=r.length-1;u>=0;u--){let{fromA:d,toA:m,fromB:_,toB:y}=r[u],x=s.lineAt(d,Ac.ByPosNoHeight,i.setDoc(n),0,0),S=x.to>=m?x:s.lineAt(m,Ac.ByPosNoHeight,i,0,0);for(y+=S.to-m,m=S.to;u>0&&x.from<=r[u-1].toA;)d=r[u-1].fromA,_=r[u-1].fromB,u--,d2*s){let u=e[n-1];u.break?e.splice(--n,1,u.left,null,u.right):e.splice(--n,1,u.left,u.right),i+=1+u.break,r-=u.size}else{if(!(s>2*r))break;{let u=e[i];u.break?e.splice(i,1,u.left,null,u.right):e.splice(i,1,u.left,u.right),i+=2+u.break,s-=u.size}}else if(r=s&&a(this.blockAt(0,i,r,s))}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class qu extends aY{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,r){return new m3(r,this.length,i,this.height,this.breaks)}replace(e,n,i){let r=i[0];return 1==i.length&&(r instanceof qu||r instanceof X1&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof X1?r=new qu(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):h2.of(i)}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more?this.setHeight(e,r.heights[r.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class X1 extends h2{constructor(e){super(e,0)}heightMetrics(e,n){let a,i=e.doc.lineAt(n).number,r=e.doc.lineAt(n+this.length).number,s=r-i+1,u=0;if(e.lineWrapping){let d=Math.min(this.height,e.lineHeight*s);a=d/s,this.length>s+1&&(u=(this.height-d)/(this.length-s-1))}else a=this.height/s;return{firstLine:i,lastLine:r,perLine:a,perChar:u}}blockAt(e,n,i,r){let{firstLine:s,lastLine:a,perLine:u,perChar:d}=this.heightMetrics(n,r);if(n.lineWrapping){let m=r+(e0){let s=i[i.length-1];s instanceof X1?i[i.length-1]=new X1(s.length+r):i.push(null,new X1(r-1))}if(e>0){let s=i[0];s instanceof X1?i[0]=new X1(e+s.length):i.unshift(new X1(e-1),null)}return h2.of(i)}decomposeLeft(e,n){n.push(new X1(e-1),null)}decomposeRight(e,n){n.push(null,new X1(this.length-e-1))}updateHeight(e,n=0,i=!1,r){let s=n+this.length;if(r&&r.from<=n+this.length&&r.more){let a=[],u=Math.max(n,r.from),d=-1;for(r.from>n&&a.push(new X1(r.from-n-1).updateHeight(e,n));u<=s&&r.more;){let _=e.doc.lineAt(u).length;a.length&&a.push(null);let y=r.heights[r.index++];-1==d?d=y:Math.abs(y-d)>=uS&&(d=-2);let x=new qu(_,y);x.outdated=!1,a.push(x),u+=_+1}u<=s&&a.push(null,new X1(s-u).updateHeight(e,u));let m=h2.of(a);return(d<0||Math.abs(m.height-this.height)>=uS||Math.abs(d-this.heightMetrics(e,n).perLine)>=uS)&&(e.heightChanged=!0),m}return(i||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class BTe extends h2{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return 1&this.flags}blockAt(e,n,i,r){let s=i+this.left.height;return eu))return m;let _=n==Ac.ByPosNoHeight?Ac.ByPosNoHeight:Ac.ByPos;return d?m.join(this.right.lineAt(u,_,i,a,u)):this.left.lineAt(u,_,i,r,s).join(m)}forEachLine(e,n,i,r,s,a){let u=r+this.left.height,d=s+this.left.length+this.break;if(this.break)e=d&&this.right.forEachLine(e,n,i,u,d,a);else{let m=this.lineAt(d,Ac.ByPos,i,r,s);e=e&&m.from<=n&&a(m),n>m.to&&this.right.forEachLine(m.to+1,n,i,u,d,a)}}replace(e,n,i){let r=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(e-r,n-r,i));let s=[];e>0&&this.decomposeLeft(e,s);let a=s.length;for(let u of i)s.push(u);if(e>0&&cY(s,a-1),n=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,n);e2*n.size||n.size>2*e.size?h2.of(this.break?[e,null,n]:[e,n]):(this.left=e,this.right=n,this.height=e.height+n.height,this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,r){let{left:s,right:a}=this,u=n+s.length+this.break,d=null;return r&&r.from<=n+s.length&&r.more?d=s=s.updateHeight(e,n,i,r):s.updateHeight(e,n,i),r&&r.from<=u+a.length&&r.more?d=a=a.updateHeight(e,u,i,r):a.updateHeight(e,u,i),d?this.balanced(s,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function cY(t,e){let n,i;null==t[e]&&(n=t[e-1])instanceof X1&&(i=t[e+1])instanceof X1&&t.splice(e-1,3,new X1(n.length+1+i.length))}class RO{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof qu?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new qu(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e=5)&&this.addLineDeco(r,s,a)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenToe&&this.nodes.push(new qu(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new X1(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof qu)return e;let n=new qu(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||n instanceof qu||this.isCovered?(this.writtenTo_.clientHeight||_.scrollWidth>_.clientWidth)&&"visible"!=y.overflow){let x=_.getBoundingClientRect();s=Math.max(s,x.left),a=Math.min(a,x.right),u=Math.max(u,x.top),d=m==t.parentNode?x.bottom:Math.min(d,x.bottom)}m="absolute"==y.position||"fixed"==y.position?_.offsetParent:_.parentNode}else{if(11!=m.nodeType)break;m=m.host}return{left:s-n.left,right:Math.max(s,a)-n.left,top:u-(n.top+e),bottom:Math.max(u,d)-(n.top+e)}}function qTe(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class NO{constructor(e,n,i){this.from=e,this.to=n,this.size=i}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;i"function"!=typeof i&&"cm-lineWrapping"==i.class);this.heightOracle=new sY(n),this.stateDeco=e.facet(O_).filter(i=>"function"!=typeof i),this.heightMap=h2.empty().applyChanges(this.stateDeco,Ia.empty,this.heightOracle.setDoc(e.doc),[new Wu(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Rr.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let r=i?n.head:n.anchor;if(!e.some(({from:s,to:a})=>r>=s&&r<=a)){let{from:s,to:a}=this.lineBlockAt(r);e.push(new dS(s,a))}}this.viewports=e.sort((i,r)=>i.from-r.from),this.scaler=this.heightMap.height<=7e6?uY:new QTe(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(1==this.scaler.scale?e:L_(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(O_).filter(_=>"function"!=typeof _);let s=Wu.extendWithRanges(e.changedRanges,function UTe(t,e,n){let i=new GTe;return Qc.compare(t,e,n,i,0),i.changes}(i,this.stateDeco,e?e.changes:m1.empty(this.state.doc.length))),a=this.heightMap.height,u=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=a&&(e.flags|=2),u?(this.scrollAnchorPos=e.changes.mapPos(u.from,-1),this.scrollAnchorHeight=u.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let d=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.headd.to)||!this.viewportIsAppropriate(d))&&(d=this.getViewport(0,n));let m=!e.changes.empty||2&e.flags||d.from!=this.viewport.from||d.to!=this.viewport.to;this.viewport=d,this.updateForViewport(),m&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(wK)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),r=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?bc.RTL:bc.LTR;let a=this.heightOracle.mustRefreshForWrapping(s),u=n.getBoundingClientRect(),d=a||this.mustMeasureContent||this.contentDOMHeight!=u.height;this.contentDOMHeight=u.height,this.mustMeasureContent=!1;let m=0,_=0;if(u.width&&u.height){let{scaleX:ke,scaleY:ye}=FX(n,u);(ke>.005&&Math.abs(this.scaleX-ke)>.005||ye>.005&&Math.abs(this.scaleY-ye)>.005)&&(this.scaleX=ke,this.scaleY=ye,m|=8,a=d=!0)}let y=(parseInt(i.paddingTop)||0)*this.scaleY,x=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=y||this.paddingBottom!=x)&&(this.paddingTop=y,this.paddingBottom=x,m|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(d=!0),this.editorWidth=e.scrollDOM.clientWidth,m|=8);let S=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=S&&(this.scrollAnchorHeight=-1,this.scrollTop=S),this.scrolledToBottom=GX(e.scrollDOM);let D=(this.printing?qTe:WTe)(n,this.paddingTop),z=D.top-this.pixelViewport.top,$=D.bottom-this.pixelViewport.bottom;this.pixelViewport=D;let W=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(W!=this.inView&&(this.inView=W,W&&(d=!0)),!this.inView&&!this.scrollTarget)return 0;let re=u.width;if((this.contentDOMWidth!=re||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=u.width,this.editorHeight=e.scrollDOM.clientHeight,m|=8),d){let ke=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(ke)&&(a=!0),a||r.lineWrapping&&Math.abs(re-this.contentDOMWidth)>r.charWidth){let{lineHeight:ye,charWidth:Ye,textHeight:lt}=e.docView.measureTextSize();a=ye>0&&r.refresh(s,ye,Ye,lt,re/Ye,ke),a&&(e.docView.minWidth=0,m|=8)}z>0&&$>0?_=Math.max(z,$):z<0&&$<0&&(_=Math.min(z,$)),r.heightChanged=!1;for(let ye of this.viewports){let Ye=ye.from==this.viewport.from?ke:e.docView.measureVisibleLineHeights(ye);this.heightMap=(a?h2.empty().applyChanges(this.stateDeco,Ia.empty,this.heightOracle,[new Wu(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,a,new oY(ye.from,Ye))}r.heightChanged&&(m|=2)}let se=!this.viewportIsAppropriate(this.viewport,_)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return se&&(this.viewport=this.getViewport(_,this.scrollTarget)),this.updateForViewport(),(2&m||se)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),m|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),m}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:a,visibleBottom:u}=this,d=new dS(r.lineAt(a-1e3*i,Ac.ByHeight,s,0,0).from,r.lineAt(u+1e3*(1-i),Ac.ByHeight,s,0,0).to);if(n){let{head:m}=n.range;if(md.to){let x,_=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),y=r.lineAt(m,Ac.ByPos,s,0,0);x="center"==n.y?(y.top+y.bottom)/2-_/2:"start"==n.y||"nearest"==n.y&&m=u+Math.max(10,Math.min(i,250)))&&r>a-2e3&&s>1,a=r<<1;if(this.defaultTextDirection!=bc.LTR&&!i)return[];let u=[],d=(m,_,y,x)=>{if(_-mm&&$<_)return d(m,$-10,y,x),void d($+10,_,y,x);let z=function YTe(t,e){for(let n of t)if(e(n))return n}(e,$=>$.from>=y.from&&$.to<=y.to&&Math.abs($.from-m)$.fromW));if(!z){if(_$.from<=_&&$.to>=_)){let $=n.moveToLineBoundary(mi.cursor(_),!1,!0).head;$>m&&(_=$)}z=new NO(m,_,this.gapSize(y,m,_,x))}u.push(z)};for(let m of this.viewportLines){if(m.lengthm.from&&d(m.from,x,m,_),Sn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];Qc.spans(e,this.viewport.from,this.viewport.to,{span(r,s){n.push({from:r,to:s})},point(){}},20);let i=n.length!=this.visibleRanges.length||this.visibleRanges.some((r,s)=>r.from!=n[s].from||r.to!=n[s].to);return this.visibleRanges=n,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||L_(this.heightMap.lineAt(e,Ac.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return L_(this.heightMap.lineAt(this.scaler.fromDOM(e),Ac.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return L_(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class dS{constructor(e,n){this.from=e,this.to=n}}function KTe(t,e,n){let i=[],r=t,s=0;return Qc.spans(n,t,e,{span(){},point(a,u){a>r&&(i.push({from:r,to:a}),s+=a-r),r=u}},20),r=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let r=0;;r++){let{from:s,to:a}=e[r],u=a-s;if(i<=u)return s+i;i-=u}}function hS(t,e){let n=0;for(let{from:i,to:r}of t.ranges){if(e<=r){n+=e-i;break}n+=r-i}return n/t.total}const uY={toDOM:t=>t,fromDOM:t=>t,scale:1};class QTe{constructor(e,n,i){let r=0,s=0,a=0;this.viewports=i.map(({from:u,to:d})=>{let m=n.lineAt(u,Ac.ByPos,e,0,0).top,_=n.lineAt(d,Ac.ByPos,e,0,0).bottom;return r+=_-m,{from:u,to:d,top:m,bottom:_,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(n.height-r);for(let u of this.viewports)u.domTop=a+(u.top-s)*this.scale,a=u.domBottom=u.domTop+(u.bottom-u.top),s=u.bottom}toDOM(e){for(let n=0,i=0,r=0;;n++){let s=nL_(r,e)):t._content)}const pS=sr.define({combine:t=>t.join(" ")}),PO=sr.define({combine:t=>t.indexOf(!0)>-1}),jO=Ch.newName(),dY=Ch.newName(),fY=Ch.newName(),hY={"&light":"."+dY,"&dark":"."+fY};function FO(t,e,n){return new Ch(e,{finish:i=>/&/.test(i)?i.replace(/&\w*/,r=>{if("&"==r)return t;if(!n||!n[r])throw new RangeError(`Unsupported selector: ${r}`);return n[r]}):t+" "+i})}const JTe=FO("."+jO,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},hY);class ZTe{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(W1.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="\uffff"}readRange(e,n){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let s=this.text.length;this.readNode(r);let a=r.nextSibling;if(a==n)break;let u=_c.get(r),d=_c.get(a);(u&&d?u.breakAfter:(u?u.breakAfter:ZM(r))||ZM(a)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>s)&&this.lineBreak(),r=a}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let u,s=-1,a=1;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,i),a=this.lineSeparator.length):(u=r.exec(n))&&(s=u.index,a=u[0].length),this.append(n.slice(i,s<0?n.length:s)),s<0)break;if(this.lineBreak(),a>1)for(let d of this.points)d.node==e&&d.pos>this.text.length&&(d.pos-=a-1);i=s+a}}readNode(e){if(e.cmIgnore)return;let n=_c.get(e),i=n&&n.overrideDOMText;if(null!=i){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(3==e.nodeType?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(eVe(e,i.node,i.offset)?n:0))}}function eVe(t,e,n){for(;;){if(!e||n-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let u=s||a?[]:function rVe(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new pY(n,i)),(r!=n||s!=i)&&e.push(new pY(r,s))),e}(e),d=new ZTe(u,e.state);d.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=d.text,this.newSel=function sVe(t,e){if(0==t.length)return null;let n=t[0].pos,i=2==t.length?t[1].pos:n;return n>-1&&i>-1?mi.single(n+e,i+e):null}(u,this.bounds.from)}else{let u=e.observer.selectionRange,d=s&&s.node==u.focusNode&&s.offset==u.focusOffset||!mO(e.contentDOM,u.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(u.focusNode,u.focusOffset),m=a&&a.node==u.anchorNode&&a.offset==u.anchorOffset||!mO(e.contentDOM,u.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(u.anchorNode,u.anchorOffset),_=e.viewport;if((vr.ios||vr.chrome)&&e.state.selection.main.empty&&d!=m&&(_.from>0||_.toDate.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:u}=e.bounds,d=r.from,m=null;(8===s||vr.android&&e.text.length0&&u>0&&t.charCodeAt(a-1)==e.charCodeAt(u-1);)a--,u--;return"end"==i&&(n-=a+Math.max(0,s-Math.min(a,u))-s),a=a?s-n:0,u=s+(u-a),a=s):u=u?s-n:0,a=s+(a-u),u=s),{from:s,toA:a,toB:u}}(t.state.doc.sliceString(a,u,"\uffff"),e.text,d-a,m);_&&(vr.chrome&&13==s&&_.toB==_.from+2&&"\uffff\uffff"==e.text.slice(_.from,_.toB)&&_.toB--,n={from:a+_.from,to:a+_.toA,insert:Ia.of(e.text.slice(_.from,_.toB).split("\uffff"))})}else i&&(!t.hasFocus&&t.state.facet(rS)||i.main.eq(r))&&(i=null);if(!n&&!i)return!1;if(!n&&e.typeOver&&!r.empty&&i&&i.main.empty?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,r.to))}:(vr.mac||vr.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=mi.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:Ia.of([" "])}):vr.chrome&&n&&n.from==n.to&&n.from==r.head&&"\n "==n.insert.toString()&&t.lineWrapping&&(i&&(i=mi.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:Ia.of([" "])}),n){if(vr.ios&&t.inputState.flushIOSKey(n)||vr.android&&(n.to==r.to&&(n.from==r.from||n.from==r.from-1&&" "==t.state.sliceDoc(n.from,r.from))&&1==n.insert.length&&2==n.insert.lines&&I5(t.contentDOM,"Enter",13)||(n.from==r.from-1&&n.to==r.to&&0==n.insert.length||8==s&&n.insert.lengthr.head)&&I5(t.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&0==n.insert.length&&I5(t.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let u,d=()=>u||(u=function nVe(t,e,n){let i,r=t.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let u=s.frome.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(t.state.toText(u+e.insert.sliceString(0,void 0,t.state.lineBreak)+d))}else{let u=r.changes(e),d=n&&n.main.to<=u.newLength?n.main:void 0;if(r.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let _,m=t.state.sliceDoc(e.from,e.to),y=n&&OK(t,n.main.head);_=y?{from:y.from,to:y.to-(e.insert.length-(e.to-e.from))}:t.state.doc.lineAt(s.head);let x=s.to-e.to,S=s.to-s.from;i=r.changeByRange(D=>{if(D.from==s.from&&D.to==s.to)return{changes:u,range:d||D.map(u)};let z=D.to-x,$=z-m.length;if(D.to-D.from!=S||t.state.sliceDoc($,z)!=m||D.to>=_.from&&D.from<=_.to)return{range:D};let W=r.changes({from:$,to:z,insert:e.insert}),re=D.to-s.to;return{changes:W,range:d?mi.range(Math.max(0,d.anchor+re),Math.max(0,d.head+re)):D.map(W)}})}else i={changes:u,selection:d&&r.selection.replaceRange(d)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}(t,n,i));return t.state.facet(yK).some(m=>m(t,n.from,n.to,a,d))||t.dispatch(d()),!0}if(i&&!i.main.eq(r)){let a=!1,u="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(a=!0),u=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:a,userEvent:u}),!0}return!1}const oVe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},BO=vr.ie&&vr.ie_version<=11;class aVe{constructor(e){this.view=e,this.active=!1,this.selectionRange=new XDe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(vr.ie&&vr.ie_version<=11||vr.ios&&e.composing)&&n.some(i=>"childList"==i.type&&i.removedNodes.length||"characterData"==i.type&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),BO&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var n;(null===(n=this.view.docView)||void 0===n?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){"change"==e.type&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(rS)?i.root.activeElement!=this.dom:!JM(i.dom,r))return;let s=r.anchorNode&&i.docView.nearest(r.anchorNode);s&&s.ignoreEvent(e)?n||(this.selectionChanged=!1):(vr.ie&&vr.ie_version<=11||vr.android&&vr.chrome)&&!i.state.selection.main.empty&&r.focusNode&&D_(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=QM(e.root);if(!n)return!1;let i=vr.safari&&11==e.root.nodeType&&function UDe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function cVe(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return vY(t,r)}let n=null;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),n?vY(t,n):null}(this.view,n)||n;if(!i||this.selectionRange.eq(i))return!1;let r=JM(this.dom,i);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&I5(this.dom,s.key,s.keyCode))})),(!this.delayedAndroidKey||"Enter"==e)&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,r=!1;for(let s of e){let a=this.readMutation(s);a&&(a.typeOver&&(r=!0),-1==n?({from:n,to:i}=a):(n=Math.min(a.from,n),i=Math.max(a.to,i)))}return{from:n,to:i,typeOver:r}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&JM(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new tVe(this.view,e,n,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,r=mY(this.view,n);return this.view.state==i&&this.view.update([]),r}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty("attributes"==e.type),"attributes"==e.type&&(n.flags|=4),"childList"==e.type){let i=gY(n,e.previousSibling||e.target.previousSibling,-1),r=gY(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:r?n.posBefore(r):n.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,n,i;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(n=this.gapIntersection)||void 0===n||n.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function gY(t,e,n){for(;e;){let i=_c.get(e);if(i&&i.parent==t)return i;let r=e.parentNode;e=r!=t.dom?r:n>0?e.nextSibling:e.previousSibling}return null}function vY(t,e){let n=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return D_(a.node,a.offset,r,s)&&([n,i,r,s]=[r,s,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}}let ps=(()=>{class t{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(n={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),n.parent&&n.parent.appendChild(this.dom);let{dispatch:i}=n;this.dispatchTransactions=n.dispatchTransactions||i&&(r=>r.forEach(s=>i(s,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=n.root||function KDe(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(n.parent)||document,this.viewState=new lY(n.state||W1.create(n)),n.scrollTo&&n.scrollTo.is(iS)&&(this.viewState.scrollTarget=n.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(I_).map(r=>new VO(r));for(let r of this.plugins)r.update(this);this.observer=new aVe(this),this.inputState=new STe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new AK(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...n){let i=1==n.length&&n[0]instanceof f3?n:1==n.length&&Array.isArray(n[0])?n[0]:[this.state.update(...n)];this.dispatchTransactions(i,this)}update(n){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let s,i=!1,r=!1,a=this.state;for(let S of n){if(S.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=S.state}if(this.destroyed)return void(this.viewState.state=a);let u=this.hasFocus,d=0,m=null;n.some(S=>S.annotation(eY))?(this.inputState.notifiedFocused=u,d=1):u!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=u,m=tY(a,u),m||(d=1));let _=this.observer.delayedAndroidKey,y=null;if(_?(this.observer.clearDelayedAndroidKey(),y=this.observer.readChange(),(y&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(y=null)):this.observer.clear(),a.facet(W1.phrases)!=this.state.facet(W1.phrases))return this.setState(a);s=oS.create(this,a,n),s.flags|=d;let x=this.viewState.scrollTarget;try{this.updateState=2;for(let S of n){if(x&&(x=x.map(S.changes)),S.scrollIntoView){let{main:D}=S.state.selection;x=new H5(D.empty?D:mi.cursor(D.head,D.head>D.anchor?-1:1))}for(let D of S.effects)D.is(iS)&&(x=D.value.clip(this.state))}this.viewState.update(s,x),this.bidiCache=mS.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),i=this.docView.update(s),this.state.facet(H_)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(i,n.some(S=>S.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(pS)!=s.state.facet(pS)&&(this.viewState.mustMeasureContent=!0),(i||r||x||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!s.empty)for(let S of this.state.facet(TO))try{S(s)}catch(D){K2(this.state,D,"update listener")}(m||y)&&Promise.resolve().then(()=>{m&&this.state==m.startState&&this.dispatch(m),y&&!mY(this,y)&&_.force&&I5(this.contentDOM,_.key,_.keyCode)})}setState(n){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=n);this.updateState=2;let i=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new lY(n),this.plugins=n.facet(I_).map(r=>new VO(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new AK(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}i&&this.focus(),this.requestMeasure()}updatePlugins(n){let i=n.startState.facet(I_),r=n.state.facet(I_);if(i!=r){let s=[];for(let a of r){let u=i.indexOf(a);if(u<0)s.push(new VO(a));else{let d=this.plugins[u];d.mustUpdate=n,s.push(d)}}for(let a of this.plugins)a.mustUpdate!=n&&a.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=n;for(let s=0;s-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,n&&this.observer.forceFlush();let i=null,r=this.scrollDOM,s=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:u}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(u=-1),this.viewState.scrollAnchorHeight=-1;try{for(let d=0;;d++){if(u<0)if(GX(r))a=-1,u=this.viewState.heightMap.height;else{let D=this.viewState.scrollAnchorAt(s);a=D.from,u=D.top}this.updateState=1;let m=this.viewState.measure(this);if(!m&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(d>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let _=[];4&m||([this.measureRequests,_]=[_,this.measureRequests]);let y=_.map(D=>{try{return D.read(this)}catch(z){return K2(this.state,z),_Y}}),x=oS.create(this,this.state,[]),S=!1;x.flags|=m,i?i.flags|=m:i=x,this.updateState=2,x.empty||(this.updatePlugins(x),this.inputState.update(x),this.updateAttrs(),S=this.docView.update(x),S&&this.docViewUpdate());for(let D=0;D<_.length;D++)if(y[D]!=_Y)try{let z=_[D];z.write&&z.write(y[D],this)}catch(z){K2(this.state,z)}if(S&&this.docView.updateSelection(!0),!x.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,u=-1;continue}{let z=(a<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(a).top)-u;if(z>1||z<-1){s+=z,r.scrollTop=s/this.scaleY,u=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(i&&!i.empty)for(let d of this.state.facet(TO))d(i)}get themeClasses(){return jO+" "+(this.state.facet(PO)?fY:dY)+" "+this.state.facet(pS)}updateAttrs(){let n=bY(this,SK,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),i={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(rS)?"true":"false",class:"cm-content",style:`${vr.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(i["aria-readonly"]="true"),bY(this,sS,i);let r=this.observer.ignore(()=>{let s=wO(this.contentDOM,this.contentAttrs,i),a=wO(this.dom,this.editorAttrs,n);return s||a});return this.editorAttrs=n,this.contentAttrs=i,r}showAnnouncements(n){let i=!0;for(let r of n)for(let s of r.effects)s.is(t.announce)&&(i&&(this.announceDOM.textContent=""),i=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value)}mountStyles(){this.styleModules=this.state.facet(H_);let n=this.state.facet(t.cspNonce);Ch.mount(this.root,this.styleModules.concat(JTe).reverse(),n?{nonce:n}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(n){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),n){if(this.measureRequests.indexOf(n)>-1)return;if(null!=n.key)for(let i=0;ir.spec==n)||null),i&&i.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(n){return this.readMeasured(),this.viewState.elementAtHeight(n)}lineBlockAtHeight(n){return this.readMeasured(),this.viewState.lineBlockAtHeight(n)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(n){return this.viewState.lineBlockAt(n)}get contentHeight(){return this.viewState.contentHeight}moveByChar(n,i,r){return LO(this,n,PK(this,n,i,r))}moveByGroup(n,i){return LO(this,n,PK(this,n,i,r=>function wTe(t,e,n){let i=t.state.charCategorizer(e),r=i(n);return s=>{let a=i(s);return r==Yc.Space&&(r=a),r==a}}(this,n.head,r)))}visualLineSide(n,i){let r=this.bidiSpans(n),s=this.textDirectionAt(n.from),a=r[i?r.length-1:0];return mi.cursor(a.side(i,s)+n.from,a.forward(!i,s)?1:-1)}moveToLineBoundary(n,i,r=!0){return function xTe(t,e,n,i){let r=HO(t,e.head),s=i&&r.type==X2.Text&&(t.lineWrapping||r.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head):null;if(s){let a=t.dom.getBoundingClientRect(),u=t.textDirectionAt(r.from),d=t.posAtCoords({x:n==(u==bc.LTR)?a.right-1:a.left+1,y:(s.top+s.bottom)/2});if(null!=d)return mi.cursor(d,n?-1:1)}return mi.cursor(n?r.to:r.from,n?-1:1)}(this,n,i,r)}moveVertically(n,i,r){return LO(this,n,function MTe(t,e,n,i){let r=e.head,s=n?1:-1;if(r==(n?t.state.doc.length:0))return mi.cursor(r,e.assoc);let u,a=e.goalColumn,d=t.contentDOM.getBoundingClientRect(),m=t.coordsAtPos(r,e.assoc||-1),_=t.documentTop;if(m)null==a&&(a=m.left-d.left),u=s<0?m.top:m.bottom;else{let S=t.viewState.lineBlockAt(r);null==a&&(a=Math.min(d.right-d.left,t.defaultCharacterWidth*(r-S.from))),u=(s<0?S.top:S.bottom)+_}let y=d.left+a,x=i??t.viewState.heightOracle.textHeight>>1;for(let S=0;;S+=10){let D=u+(x+S)*s,z=RK(t,{x:y,y:D},!1,s);if(Dd.bottom||(s<0?zr)){let $=t.docView.coordsForChar(z);return mi.cursor(z,!$||D<$.top?-1:1,void 0,a)}}}(this,n,i,r))}domAtPos(n){return this.docView.domAtPos(n)}posAtDOM(n,i=0){return this.docView.posFromDOM(n,i)}posAtCoords(n,i=!0){return this.readMeasured(),RK(this,n,i)}coordsAtPos(n,i=1){this.readMeasured();let r=this.docView.coordsAt(n,i);if(!r||r.left==r.right)return r;let s=this.state.doc.lineAt(n),a=this.bidiSpans(s);return eS(r,a[kh.find(a,n-s.from,-1,i)].dir==bc.LTR==i>0)}coordsForChar(n){return this.readMeasured(),this.docView.coordsForChar(n)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(n){return!this.state.facet(xK)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(n){if(n.length>lVe)return hK(n.length);let r,i=this.textDirectionAt(n.from);for(let a of this.bidiCache)if(a.from==n.from&&a.dir==i&&(a.fresh||dK(a.isolates,r=DK(this,n))))return a.order;r||(r=DK(this,n));let s=function fK(t,e,n){if(!t)return[new kh(0,0,e==SO?1:0)];if(e==Ap&&!n.length&&!rTe.test(t))return hK(t.length);if(n.length)for(;t.length>yc.length;)yc[yc.length]=256;let i=[],r=e==Ap?0:1;return DO(t,r,r,n,0,t.length,i),i}(n.text,i,r);return this.bidiCache.push(new mS(n.from,n.to,i,r,!0,s)),s}get hasFocus(){var n;return(this.dom.ownerDocument.hasFocus()||vr.safari&&(null===(n=this.inputState)||void 0===n?void 0:n.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{BX(this.contentDOM),this.docView.updateSelection()})}setRoot(n){this._root!=n&&(this._root=n,this.observer.setWindow((9==n.nodeType?n:n.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let n of this.plugins)n.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(n,i={}){return iS.of(new H5("number"==typeof n?mi.cursor(n):n,i.y,i.x,i.yMargin,i.xMargin))}scrollSnapshot(){let{scrollTop:n,scrollLeft:i}=this.scrollDOM,r=this.viewState.scrollAnchorAt(n);return iS.of(new H5(mi.cursor(r.from),"start","start",r.top-n,i,!0))}static domEventHandlers(n){return Vc.define(()=>({}),{eventHandlers:n})}static domEventObservers(n){return Vc.define(()=>({}),{eventObservers:n})}static theme(n,i){let r=Ch.newName(),s=[pS.of(r),H_.of(FO(`.${r}`,n))];return i&&i.dark&&s.push(PO.of(!0)),s}static baseTheme(n){return v0.lowest(H_.of(FO("."+jO,n,hY)))}static findFromDOM(n){var i;let r=n.querySelector(".cm-content"),s=r&&_c.get(r)||_c.get(n);return(null===(i=s?.rootView)||void 0===i?void 0:i.view)||null}}return t.styleModule=H_,t.inputHandler=yK,t.scrollHandler=MK,t.focusChangeEffect=CK,t.perLineTextDirection=xK,t.exceptionSink=bK,t.updateListener=TO,t.editable=rS,t.mouseSelectionStyle=_K,t.dragMovesSelection=vK,t.clickAddsSelectionRange=gK,t.decorations=O_,t.outerDecorations=kK,t.atomicRanges=AO,t.bidiIsolatedRanges=EK,t.scrollMargins=TK,t.darkTheme=PO,t.cspNonce=sr.define({combine:e=>e.length?e[0]:""}),t.contentAttributes=sS,t.editorAttributes=SK,t.lineWrapping=t.contentAttributes.of({class:"cm-lineWrapping"}),t.announce=Uo.define(),t})();const lVe=4096,_Y={};class mS{constructor(e,n,i,r,s,a){this.from=e,this.to=n,this.dir=i,this.isolates=r,this.fresh=s,this.order=a}static update(e,n){if(n.empty&&!e.some(s=>s.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:bc.LTR;for(let s=Math.max(0,e.length-10);s=0;r--){let s=i[r],a="function"==typeof s?s(t):s;a&&CO(a,n)}return n}const uVe=vr.mac?"mac":vr.windows?"win":vr.linux?"linux":"key";function gS(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==n&&e.shiftKey&&(t="Shift-"+t),t}const fVe=v0.default(ps.domEventHandlers({keydown:(t,e)=>xY(CY(e.state),t,e,"editor")})),R_=sr.define({enables:fVe}),yY=new WeakMap;function CY(t){let e=t.facet(R_),n=yY.get(e);return n||yY.set(e,n=function mVe(t,e=uVe){let n=Object.create(null),i=Object.create(null),r=(a,u)=>{let d=i[a];if(null==d)i[a]=u;else if(d!=u)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},s=(a,u,d,m,_)=>{var y,x;let S=n[a]||(n[a]=Object.create(null)),D=u.split(/ (?!$)/).map(W=>function dVe(t,e){const n=t.split(/-(?!$)/);let r,s,a,u,i=n[n.length-1];"Space"==i&&(i=" ");for(let d=0;d{let ke=Eh={view:se,prefix:re,scope:a};return setTimeout(()=>{Eh==ke&&(Eh=null)},pVe),!0}]})}let z=D.join(" ");r(z,!1);let $=S[z]||(S[z]={preventDefault:!1,stopPropagation:!1,run:(null===(x=null===(y=S._any)||void 0===y?void 0:y.run)||void 0===x?void 0:x.slice())||[]});d&&$.run.push(d),m&&($.preventDefault=!0),_&&($.stopPropagation=!0)};for(let a of t){let u=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let m of u){let _=n[m]||(n[m]=Object.create(null));_._any||(_._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let y in _)_[y].run.push(a.any)}let d=a[e]||a.key;if(d)for(let m of u)s(m,d,a.run,a.preventDefault,a.stopPropagation),a.shift&&s(m,"Shift-"+d,a.shift,a.preventDefault,a.stopPropagation)}return n}(e.reduce((i,r)=>i.concat(r),[]))),n}let Eh=null;const pVe=4e3;function xY(t,e,n,i){let r=function $De(t){var n=!(FDe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||BDe&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?E_:xh)[t.keyCode]||t.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}(e),a=Dd(G1(r,0))==r.length&&" "!=r,u="",d=!1,m=!1,_=!1;Eh&&Eh.view==n&&Eh.scope==i&&(u=Eh.prefix+" ",BK.indexOf(e.keyCode)<0&&(m=!0,Eh=null));let D,z,y=new Set,x=$=>{if($){for(let W of $.run)if(!y.has(W)&&(y.add(W),W(n,e)))return $.stopPropagation&&(_=!0),!0;$.preventDefault&&($.stopPropagation&&(_=!0),m=!0)}return!1},S=t[i];return S&&(x(S[u+gS(r,e,!a)])?d=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(vr.windows&&e.ctrlKey&&e.altKey)&&(D=xh[e.keyCode])&&D!=r?(x(S[u+gS(D,e,!0)])||e.shiftKey&&(z=E_[e.keyCode])!=r&&z!=D&&x(S[u+gS(z,e,!1)]))&&(d=!0):a&&e.shiftKey&&x(S[u+gS(r,e,!0)])&&(d=!0),!d&&x(S._any)&&(d=!0)),m&&(d=!0),d&&_&&e.stopPropagation(),d}class N_{constructor(e,n,i,r,s){this.className=e,this.left=n,this.top=i,this.width=r,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,i){if(i.empty){let r=e.coordsAtPos(i.head,i.assoc||1);if(!r)return[];let s=wY(e);return[new N_(n,r.left-s.left,r.top-s.top,null,r.bottom-r.top)]}return function gVe(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let i=Math.max(n.from,t.viewport.from),r=Math.min(n.to,t.viewport.to),s=t.textDirection==bc.LTR,a=t.contentDOM,u=a.getBoundingClientRect(),d=wY(t),m=a.querySelector(".cm-line"),_=m&&window.getComputedStyle(m),y=u.left+(_?parseInt(_.paddingLeft)+Math.min(0,parseInt(_.textIndent)):0),x=u.right-(_?parseInt(_.paddingRight):0),S=HO(t,i),D=HO(t,r),z=S.type==X2.Text?S:null,$=D.type==X2.Text?D:null;if(z&&(t.lineWrapping||S.widgetLineBreaks)&&(z=MY(t,i,z)),$&&(t.lineWrapping||D.widgetLineBreaks)&&($=MY(t,r,$)),z&&$&&z.from==$.from)return re(se(n.from,n.to,z));{let ye=z?se(n.from,null,z):ke(S,!1),Ye=$?se(null,n.to,$):ke(D,!0),lt=[];return(z||S).to<($||D).from-(z&&$?1:0)||S.widgetLineBreaks>1&&ye.bottom+t.defaultLineHeight/2wt&&ut.from=$t)break;gt>Ut&&qt(Math.max(st,Ut),null==ye&&st<=wt,Math.min(gt,$t),null==Ye&>>=Dt,et.dir)}if(Ut=Lt.to+1,Ut>=$t)break}return 0==kt.length&&qt(wt,null==ye,Dt,null==Ye,t.textDirection),{top:Vt,bottom:Nt,horizontal:kt}}function ke(ye,Ye){let lt=u.top+(Ye?ye.top:ye.bottom);return{top:lt,bottom:lt,horizontal:[]}}}(e,n,i)}}function wY(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==bc.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function MY(t,e,n){let i=mi.cursor(e);return{from:Math.max(n.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,t.moveToLineBoundary(i,!0,!0).from),type:X2.Text}}class _Ve{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(vS)!=e.state.facet(vS)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,i=e.facet(vS);for(;n!function vVe(t,e){return t.constructor==e.constructor&&t.eq(e)}(n,this.drawn[i]))){let n=this.dom.firstChild,i=0;for(let r of e)r.update&&n&&r.constructor&&this.drawn[i].constructor&&r.update(n,this.drawn[i])?(n=n.nextSibling,i++):this.dom.insertBefore(r.draw(),n);for(;n;){let r=n.nextSibling;n.remove(),n=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const vS=sr.define();function SY(t){return[Vc.define(e=>new _Ve(e,t)),vS.of(t)]}const kY=!vr.ios,L5=sr.define({combine:t=>Td(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})});function bVe(t={}){return[L5.of(t),yVe,CVe,xVe,wK.of(!0)]}function EY(t){return t.startState.facet(L5)!=t.state.facet(L5)}const yVe=SY({above:!0,markers(t){let{state:e}=t,n=e.facet(L5),i=[];for(let r of e.selection.ranges){let s=r==e.selection.main;if(r.empty?!s||kY:n.drawRangeCursor){let a=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",u=r.empty?r:mi.cursor(r.head,r.head>r.anchor?-1:1);for(let d of N_.forRange(t,a,u))i.push(d)}}return i},update(t,e){t.transactions.some(i=>i.selection)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let n=EY(t);return n&&DY(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){DY(e.state,t)},class:"cm-cursorLayer"});function DY(t,e){e.style.animationDuration=t.facet(L5).cursorBlinkRate+"ms"}const CVe=SY({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:N_.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||EY(t),class:"cm-selectionLayer"}),$O={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};kY&&($O[".cm-line"].caretColor="transparent !important",$O[".cm-content"]={caretColor:"transparent !important"});const xVe=v0.highest(ps.theme($O)),TY=Uo.define({map:(t,e)=>null==t?null:e.mapPos(t)}),P_=e1.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((n,i)=>i.is(TY)?i.value:n,t))}),wVe=Vc.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(P_);null==n?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(P_)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(P_),n=null!=e&&t.coordsAtPos(e);if(!n)return null;let i=t.scrollDOM.getBoundingClientRect();return{left:n.left-i.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-i.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(P_)!=t&&this.view.dispatch({effects:TY.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function VY(t,e,n,i,r){e.lastIndex=0;for(let u,s=t.iterRange(n,i),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;u=e.exec(s.value);)r(a+u.index,u)}class UO{constructor(e){const{regexp:n,decoration:i,decorate:r,boundary:s,maxLength:a=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,r)this.addMatch=(u,d,m,_)=>r(_,m,m+u[0].length,u,d);else if("function"==typeof i)this.addMatch=(u,d,m,_)=>{let y=i(u,d,m);y&&_(m,m+u[0].length,y)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(u,d,m,_)=>_(m,m+u[0].length,i)}this.boundary=s,this.maxLength=a}createDeco(e){let n=new g4,i=n.add.bind(n);for(let{from:r,to:s}of function SVe(t,e){let n=t.visibleRanges;if(1==n.length&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let i=[];for(let{from:r,to:s}of n)r=Math.max(t.state.doc.lineAt(r).from,r-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),i.length&&i[i.length-1].to>=r?i[i.length-1].to=s:i.push({from:r,to:s});return i}(e,this.maxLength))VY(e.state.doc,this.regexp,r,s,(a,u)=>this.addMatch(u,e,a,i));return n.finish()}updateDeco(e,n){let i=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,a,u,d)=>{d>e.view.viewport.from&&u1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,n.map(e.changes),i,r):n}updateRange(e,n,i,r){for(let s of e.visibleRanges){let a=Math.max(s.from,i),u=Math.min(s.to,r);if(u>a){let d=e.state.doc.lineAt(a),m=d.tod.from;a--)if(this.boundary.test(d.text[a-1-d.from])){_=a;break}for(;ux.push(W.range(z,$));if(d==m)for(this.regexp.lastIndex=_-d.from;(S=this.regexp.exec(d.text))&&S.indexthis.addMatch($,e,z,D));n=n.update({filterFrom:_,filterTo:y,filter:(z,$)=>z<_||$>y,add:x})}}return n}}const GO=null!=/x/.unicode?"gu":"g",kVe=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",GO),EVe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let WO=null;const _S=sr.define({combine(t){let e=Td(t,{render:null,specialChars:kVe,addSpecialChars:null});return(e.replaceTabs=!function DVe(){var t;if(null==WO&&typeof document<"u"&&document.body){let e=document.body.style;WO=null!=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)}return WO||!1}())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,GO)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,GO)),e}});function TVe(t={}){return[_S.of(t),AY||(AY=Vc.fromClass(class{constructor(t){this.view=t,this.decorations=Rr.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(_S)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new UO({regexp:t.specialChars,decoration:(e,n,i)=>{let{doc:r}=n.state,s=G1(e[0],0);if(9==s){let a=r.lineAt(i),u=n.state.tabSize,d=T5(a.text,u,i-a.from);return Rr.replace({widget:new HVe((u-d%u)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=Rr.replace({widget:new OVe(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(_S);t.startState.facet(_S)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let AY=null;class OVe extends h3{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=function IVe(t){return t>=32?"\u2022":10==t?"\u2424":String.fromCharCode(9216+t)}(this.code),i=e.state.phrase("Control character")+" "+(EVe[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,n);if(r)return r;let s=document.createElement("span");return s.textContent=n,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class HVe extends h3{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const zVe=Rr.line({class:"cm-activeLine"}),RVe=Vc.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let i of t.state.selection.ranges){let r=t.lineBlockAt(i.head);r.from>e&&(n.push(zVe.range(r.from)),e=r.from)}return Rr.set(n)}},{decorations:t=>t.decorations}),qO=2e3;function OY(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),i=t.state.doc.lineAt(n),r=n-i.from,s=r>qO?-1:r==i.length?function jVe(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):T5(i.text,t.state.tabSize,n-i.from);return{line:i.number,col:s,off:r}}function BVe(t){let e=t?.eventFilter||(n=>n.altKey&&0==n.button);return ps.mouseSelectionStyle.of((n,i)=>e(i)?function FVe(t,e){let n=OY(t,e),i=t.state.selection;return n?{update(r){if(r.docChanged){let s=r.changes.mapPos(r.startState.doc.line(n.line).from),a=r.state.doc.lineAt(s);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},i=i.map(r.changes)}},get(r,s,a){let u=OY(t,r);if(!u)return i;let d=function PVe(t,e,n){let i=Math.min(e.line,n.line),r=Math.max(e.line,n.line),s=[];if(e.off>qO||n.off>qO||e.col<0||n.col<0){let a=Math.min(e.off,n.off),u=Math.max(e.off,n.off);for(let d=i;d<=r;d++){let m=t.doc.line(d);m.length<=u&&s.push(mi.range(m.from+a,m.to+u))}}else{let a=Math.min(e.col,n.col),u=Math.max(e.col,n.col);for(let d=i;d<=r;d++){let m=t.doc.line(d),_=dO(m.text,a,t.tabSize,!0);if(_<0)s.push(mi.cursor(m.to));else{let y=dO(m.text,u,t.tabSize);s.push(mi.range(m.from+_,m.from+y))}}}return s}(t.state,n,u);return d.length?mi.create(a?d.concat(i.ranges):d):i}}:null}(n,i):null)}const $Ve={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},UVe={style:"cursor: crosshair"};function GVe(t={}){let[e,n]=$Ve[t.key||"Alt"],i=Vc.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||n(r))},keyup(r){(r.keyCode==e||!n(r))&&this.set(!1)},mousemove(r){this.set(n(r))}}});return[i,ps.contentAttributes.of(r=>{var s;return null!==(s=r.plugin(i))&&void 0!==s&&s.isDown?UVe:null})]}const j_="-10000px";class HY{constructor(e,n,i,r){this.facet=n,this.createTooltipView=i,this.removeTooltipView=r,this.input=e.state.facet(n),this.tooltips=this.input.filter(a=>a);let s=null;this.tooltipViews=this.tooltips.map(a=>s=i(a,s))}update(e,n){var i;let r=e.state.facet(this.facet),s=r.filter(d=>d);if(r===this.input){for(let d of this.tooltipViews)d.update&&d.update(e);return!1}let a=[],u=n?[]:null;for(let d=0;dn[m]=d),n.length=u.length),this.input=r,this.tooltips=s,this.tooltipViews=a,!0}}function WVe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const bS=sr.define({combine:t=>{var e,n,i;return{position:vr.ios?"absolute":(null===(e=t.find(r=>r.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(n=t.find(r=>r.parent))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(i=t.find(r=>r.tooltipSpace))||void 0===i?void 0:i.tooltipSpace)||WVe}}}),LY=new WeakMap,yS=Vc.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(bS);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new HY(t,CS,(n,i)=>this.createTooltip(n,i),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,i=t.state.facet(bS);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),i=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",n.dom.appendChild(r)}return n.dom.style.position=this.position,n.dom.style.top=j_,n.dom.style.left="0px",this.container.insertBefore(n.dom,i),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),null===(t=i.destroy)||void 0===t||t.call(i);this.parent&&this.container.remove(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,i=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(vr.gecko)i=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==j_&&"0px"==r.style.left){let s=r.getBoundingClientRect();i=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(i||"absolute"==this.position)if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,n=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((r,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(bS).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let u of this.manager.tooltipViews)u.dom.style.position="absolute"}let{editor:n,space:i,scaleX:r,scaleY:s}=t,a=[];for(let u=0;u=Math.min(n.bottom,i.bottom)||y.rightMath.min(n.right,i.right)+.1){_.style.top=j_;continue}let S=d.arrow?m.dom.querySelector(".cm-tooltip-arrow"):null,D=S?7:0,z=x.right-x.left,$=null!==(e=LY.get(m))&&void 0!==e?e:x.bottom-x.top,W=m.offset||XVe,re=this.view.textDirection==bc.LTR,se=x.width>i.right-i.left?re?i.left:i.right-x.width:re?Math.min(y.left-(S?14:0)+W.x,i.right-z):Math.max(i.left,y.left-z+(S?14:0)-W.x),ke=this.above[u];!d.strictSide&&(ke?y.top-(x.bottom-x.top)-W.yi.bottom)&&ke==i.bottom-y.bottom>y.top-i.top&&(ke=this.above[u]=!ke);let ye=(ke?y.top-i.top:i.bottom-y.bottom)-D;if(ye<$&&!1!==m.resize){if(yese&&Vt.topYe&&(Ye=ke?Vt.top-$-2-D:Vt.bottom+D+2);"absolute"==this.position?(_.style.top=(Ye-t.parent.top)/s+"px",_.style.left=(se-t.parent.left)/r+"px"):(_.style.top=Ye/s+"px",_.style.left=se/r+"px"),S&&(S.style.left=(y.left+(re?W.x:-W.x)-(se+14-7))/r+"px"),!0!==m.overlap&&a.push({left:se,top:Ye,right:lt,bottom:Ye+$}),_.classList.toggle("cm-tooltip-above",ke),_.classList.toggle("cm-tooltip-below",!ke),m.positioned&&m.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=j_}},{eventObservers:{scroll(){this.maybeMeasure()}}}),XVe={x:0,y:0},CS=sr.define({enables:[yS,ps.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}})]}),F_=sr.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class xS{static create(e){return new xS(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new HY(e,F_,(n,i)=>this.createHostedView(n,i),n=>n.dom.remove())}createHostedView(e,n){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)null===(e=n.destroy)||void 0===e||e.call(n)}passProp(e){let n;for(let i of this.manager.tooltipViews){let r=i[e];if(void 0!==r)if(void 0===n)n=r;else if(n!==r)return}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const KVe=CS.compute([F_],t=>{let e=t.facet(F_);return 0===e.length?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var i;return null!==(i=n.end)&&void 0!==i?i:n.pos})),create:xS.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class YVe{constructor(e,n,i,r,s){this.view=e,this.source=n,this.field=i,this.setHover=r,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;eu.bottom||n.xu.right+e.defaultCharacterWidth)return;let d=e.bidiSpans(e.state.doc.lineAt(r)).find(_=>_.from<=r&&_.to>=r),m=d&&d.dir==bc.RTL?-1:1;s=n.x{this.pending==u&&(this.pending=null,d&&(!Array.isArray(d)||d.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(d)?d:[d])}))},d=>K2(e.state,d,"hover tooltip"))}else a&&(!Array.isArray(a)||a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(yS),n=e?e.manager.tooltips.findIndex(i=>i.create==xS.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:s}=this;if(r.length&&s&&!function QVe(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-wS&&e.clientX<=n.right+wS&&e.clientY>=n.top-wS&&e.clientY<=n.bottom+wS}(s.dom,e)||this.pending){let{pos:a}=r[0]||this.pending,u=null!==(i=null===(n=r[0])||void 0===n?void 0:n.end)&&void 0!==i?i:a;(a==u?this.view.posAtCoords(this.lastMove)!=a:!function JVe(t,e,n,i,r,s){let a=t.scrollDOM.getBoundingClientRect();if(a.left>i||a.rightr||Math.min(a.bottom,t.documentTop+t.documentPadding.top+t.contentHeight)=e&&d<=n}(this.view,a,u,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=i=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const wS=4;function ZVe(t,e={}){let n=Uo.define(),i=e1.define({create:()=>[],update(r,s){if(r.length&&(e.hideOnChange&&(s.docChanged||s.selection)?r=[]:e.hideOn&&(r=r.filter(a=>!e.hideOn(s,a))),s.docChanged)){let a=[];for(let u of r){let d=s.changes.mapPos(u.pos,-1,q2.TrackDel);if(null!=d){let m=Object.assign(Object.create(null),u);m.pos=d,null!=m.end&&(m.end=s.changes.mapPos(m.end)),a.push(m)}}r=a}for(let a of s.effects)a.is(n)&&(r=a.value),a.is(eAe)&&(r=[]);return r},provide:r=>F_.from(r)});return[i,Vc.define(r=>new YVe(r,t,i,n,e.hoverTime||300)),KVe]}function zY(t,e){let n=t.plugin(yS);if(!n)return null;let i=n.manager.tooltips.indexOf(e);return i<0?null:n.manager.tooltipViews[i]}const eAe=Uo.define(),XO=sr.define({combine(t){let e,n;for(let i of t)e=e||i.topContainer,n=n||i.bottomContainer;return{topContainer:e,bottomContainer:n}}});function B_(t,e){let n=t.plugin(RY),i=n?n.specs.indexOf(e):-1;return i>-1?n.panels[i]:null}const RY=Vc.fromClass(class{constructor(t){this.input=t.state.facet($_),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(XO);this.top=new MS(t,!0,e.topContainer),this.bottom=new MS(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(XO);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new MS(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new MS(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet($_);if(n!=this.input){let i=n.filter(d=>d),r=[],s=[],a=[],u=[];for(let d of i){let _,m=this.specs.indexOf(d);m<0?(_=d(t.view),u.push(_)):(_=this.panels[m],_.update&&_.update(t)),r.push(_),(_.top?s:a).push(_)}this.specs=i,this.panels=r,this.top.sync(s),this.bottom.sync(a);for(let d of u)d.dom.classList.add("cm-panel"),d.mount&&d.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>ps.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class MS{constructor(e,n,i){this.view=e,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=NY(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=NY(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function NY(t){let e=t.nextSibling;return t.remove(),e}const $_=sr.define({enables:RY});class g3 extends Dp{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}g3.prototype.elementClass="",g3.prototype.toDOM=void 0,g3.prototype.mapMode=q2.TrackBefore,g3.prototype.startSide=g3.prototype.endSide=-1,g3.prototype.point=!0;const SS=sr.define(),tAe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Qc.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},U_=sr.define();function PY(t){return[jY(),U_.of(Object.assign(Object.assign({},tAe),t))]}const KO=sr.define({combine:t=>t.some(e=>e)});function jY(t){let e=[nAe];return t&&!1===t.fixed&&e.push(KO.of(!0)),e}const nAe=Vc.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(U_).map(e=>new BY(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(KO),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,i=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(i<.8*(n.to-n.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(KO)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=Qc.iter(this.view.state.facet(SS),this.view.viewport.from),i=[],r=this.gutters.map(s=>new iAe(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(s.type)){let a=!0;for(let u of s.type)if(u.type==X2.Text&&a){YO(n,i,u.from);for(let d of r)d.line(this.view,u,i);a=!1}else if(u.widget)for(let d of r)d.widget(this.view,u)}else if(s.type==X2.Text){YO(n,i,s.from);for(let a of r)a.line(this.view,s,i)}else if(s.widget)for(let a of r)a.widget(this.view,s);for(let s of r)s.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(U_),n=t.state.facet(U_),i=t.docChanged||t.heightChanged||t.viewportChanged||!Qc.eq(t.startState.facet(SS),t.state.facet(SS),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let r of this.gutters)r.update(t)&&(i=!0);else{i=!0;let r=[];for(let s of n){let a=e.indexOf(s);a<0?r.push(new BY(this.view,s)):(this.gutters[a].update(t),r.push(this.gutters[a]))}for(let s of this.gutters)s.dom.remove(),r.indexOf(s)<0&&s.destroy();for(let s of r)this.dom.appendChild(s.dom);this.gutters=r}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>ps.scrollMargins.of(e=>{let n=e.plugin(t);return n&&0!=n.gutters.length&&n.fixed?e.textDirection==bc.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}:null})});function FY(t){return Array.isArray(t)?t:[t]}function YO(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class iAe{constructor(e,n,i){this.gutter=e,this.height=i,this.i=0,this.cursor=Qc.iter(e.markers,n.from)}addElement(e,n,i){let{gutter:r}=this,s=(n.top-this.height)/e.scaleY,a=n.height/e.scaleY;if(this.i==r.elements.length){let u=new $Y(e,a,s,i);r.elements.push(u),r.dom.appendChild(u.dom)}else r.elements[this.i].update(e,a,s,i);this.height=n.bottom,this.i++}line(e,n,i){let r=[];YO(this.cursor,r,n.from),i.length&&(r=r.concat(i));let s=this.gutter.config.lineMarker(e,n,r);s&&r.unshift(s),0==r.length&&!this.gutter.config.renderEmptyElements||this.addElement(e,n,r)}widget(e,n){let i=this.gutter.config.widgetMarker(e,n.widget,n);i&&this.addElement(e,n,[i])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class BY{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in n.domEventHandlers)this.dom.addEventListener(i,r=>{let a,s=r.target;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let d=s.getBoundingClientRect();a=(d.top+d.bottom)/2}else a=r.clientY;let u=e.lineBlockAtHeight(a-e.documentTop);n.domEventHandlers[i](e,u,r)&&r.preventDefault()});this.markers=FY(n.markers(e)),n.initialSpacer&&(this.spacer=new $Y(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=FY(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let i=e.view.viewport;return!Qc.eq(this.markers,n,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class $Y{constructor(e,n,i,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,i,r)}update(e,n,i,r){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function rAe(t,e){if(t.length!=e.length)return!1;for(let n=0;nTd(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let i=Object.assign({},e);for(let r in n){let s=i[r],a=n[r];i[r]=s?(u,d,m)=>s(u,d,m)||a(u,d,m):a}return i}})});class QO extends g3{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function JO(t,e){return t.state.facet(z5).formatNumber(e,t.state)}const oAe=U_.compute([z5],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(sAe),lineMarker:(e,n,i)=>i.some(r=>r.toDOM)?null:new QO(JO(e,e.state.doc.lineAt(n.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(z5)!=e.state.facet(z5),initialSpacer:e=>new QO(JO(e,UY(e.state.doc.lines))),updateSpacer(e,n){let i=JO(n.view,UY(n.view.state.doc.lines));return i==e.number?e:new QO(i)},domEventHandlers:t.facet(z5).domEventHandlers}));function aAe(t={}){return[z5.of(t),jY(),oAe]}function UY(t){let e=9;for(;e{let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.head).from;r>n&&(n=r,e.push(cAe.range(r)))}return Qc.of(e)}),qY=1024;let pAe=0;class Ad{constructor(e,n){this.from=e,this.to=n}}class ro{constructor(e={}){this.id=pAe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=p2.match(e)),n=>{let i=e(n);return void 0===i?null:[this,i]}}}ro.closedBy=new ro({deserialize:t=>t.split(" ")}),ro.openedBy=new ro({deserialize:t=>t.split(" ")}),ro.group=new ro({deserialize:t=>t.split(" ")}),ro.isolate=new ro({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),ro.contextHash=new ro({perNode:!0}),ro.lookAhead=new ro({perNode:!0}),ro.mounted=new ro({perNode:!0});class G_{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[ro.mounted.id]}}const mAe=Object.create(null);class p2{constructor(e,n,i,r=0){this.name=e,this.props=n,this.id=i,this.flags=r}static define(e){let n=e.props&&e.props.length?Object.create(null):mAe,r=new p2(e.name||"",n,e.id,(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0));if(e.props)for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let n=this.prop(ro.group);return!!n&&n.indexOf(e)>-1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let r of i.split(" "))n[r]=e[i];return i=>{for(let r=i.prop(ro.group),s=-1;s<(r?r.length:0);s++){let a=n[s<0?i.name:r[s]];if(a)return a}}}}p2.none=new p2("",Object.create(null),0,8);class kS{constructor(e){this.types=e;for(let n=0;n=e){let u=new m2(a.tree,a.overlay[0].from+s.from,-1,s);(r||(r=[i])).push(W_(u,e,n,!1))}}return r?JY(r):i}(this,e,n)}iterate(e){let{enter:n,leave:i,from:r=0,to:s=this.length}=e,a=e.mode||0,u=(a&ll.IncludeAnonymous)>0;for(let d=this.cursor(a|ll.IncludeAnonymous);;){let m=!1;if(d.from<=s&&d.to>=r&&(!u&&d.type.isAnonymous||!1!==n(d))){if(d.firstChild())continue;m=!0}for(;m&&i&&(u||!d.type.isAnonymous)&&i(d),!d.nextSibling();){if(!d.parent())return;m=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:nH(p2.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,r)=>new Ga(this.type,n,i,r,this.propValues),e.makeTree||((n,i,r)=>new Ga(p2.none,n,i,r)))}static build(e){return function bAe(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=qY,reused:s=[],minRepeatType:a=i.types.length}=t,u=Array.isArray(n)?new ZO(n,n.length):n,d=i.types,m=0,_=0;function y(ye,Ye,lt,Vt,Nt,kt){let{id:qt,start:wt,end:Dt,size:ut}=u,Ut=_;for(;ut<0;){if(u.next(),-1==ut)return lt.push(s[qt]),void Vt.push(wt-ye);if(-3==ut)return void(m=qt);if(-4==ut)return void(_=qt);throw new RangeError(`Unrecognized record size: ${ut}`)}let Lt,et,$t=d[qt],st=wt-ye;if(Dt-wt<=r&&(et=function $(ye,Ye){let lt=u.fork(),Vt=0,Nt=0,kt=0,qt=lt.end-r,wt={size:0,start:0,skip:0};e:for(let Dt=lt.pos-ye;lt.pos>Dt;){let ut=lt.size;if(lt.id==Ye&&ut>=0){wt.size=Vt,wt.start=Nt,wt.skip=kt,kt+=4,Vt+=4,lt.next();continue}let Ut=lt.pos-ut;if(ut<0||Ut=a?4:0,Lt=lt.start;for(lt.next();lt.pos>Ut;){if(lt.size<0){if(-3!=lt.size)break e;$t+=4}else lt.id>=a&&($t+=4);lt.next()}Nt=Lt,Vt+=ut,kt+=$t}return(Ye<0||Vt==ye)&&(wt.size=Vt,wt.start=Nt,wt.skip=kt),wt.size>4?wt:void 0}(u.pos-Ye,Nt))){let gt=new Uint16Array(et.size-et.skip),sn=u.pos-et.size,Hn=gt.length;for(;u.pos>sn;)Hn=W(et.start,gt,Hn);Lt=new Dh(gt,Dt-et.start,i),st=et.start-ye}else{let gt=u.pos-ut;u.next();let sn=[],Hn=[],on=qt>=a?qt:-1,Xt=0,An=Dt;for(;u.pos>gt;)on>=0&&u.id==on&&u.size>=0?(u.end<=An-r&&(D(sn,Hn,wt,Xt,u.end,An,on,Ut),Xt=sn.length,An=u.end),u.next()):kt>2500?x(wt,gt,sn,Hn):y(wt,gt,sn,Hn,on,kt+1);if(on>=0&&Xt>0&&Xt-1&&Xt>0){let _n=function S(ye){return(Ye,lt,Vt)=>{let qt,wt,Nt=0,kt=Ye.length-1;if(kt>=0&&(qt=Ye[kt])instanceof Ga){if(!kt&&qt.type==ye&&qt.length==Vt)return qt;(wt=qt.prop(ro.lookAhead))&&(Nt=lt[kt]+qt.length+wt)}return z(ye,Ye,lt,Vt,Nt)}}($t);Lt=nH($t,sn,Hn,0,sn.length,0,Dt-wt,_n,_n)}else Lt=z($t,sn,Hn,Dt-wt,Ut-Dt)}lt.push(Lt),Vt.push(st)}function x(ye,Ye,lt,Vt){let Nt=[],kt=0,qt=-1;for(;u.pos>Ye;){let{id:wt,start:Dt,end:ut,size:Ut}=u;if(Ut>4)u.next();else{if(qt>-1&&Dt=0;ut-=3)wt[Ut++]=Nt[ut],wt[Ut++]=Nt[ut+1]-Dt,wt[Ut++]=Nt[ut+2]-Dt,wt[Ut++]=Ut;lt.push(new Dh(wt,Nt[2]-Dt,i)),Vt.push(Dt-ye)}}function D(ye,Ye,lt,Vt,Nt,kt,qt,wt){let Dt=[],ut=[];for(;ye.length>Vt;)Dt.push(ye.pop()),ut.push(Ye.pop()+lt-Nt);ye.push(z(i.types[qt],Dt,ut,kt-Nt,wt-kt)),Ye.push(Nt-lt)}function z(ye,Ye,lt,Vt,Nt=0,kt){if(m){let qt=[ro.contextHash,m];kt=kt?[qt].concat(kt):[qt]}if(Nt>25){let qt=[ro.lookAhead,Nt];kt=kt?[qt].concat(kt):[qt]}return new Ga(ye,Ye,lt,Vt,kt)}function W(ye,Ye,lt){let{id:Vt,start:Nt,end:kt,size:qt}=u;if(u.next(),qt>=0&&Vt4){let Dt=u.pos-(qt-4);for(;u.pos>Dt;)lt=W(ye,Ye,lt)}Ye[--lt]=wt,Ye[--lt]=kt-ye,Ye[--lt]=Nt-ye,Ye[--lt]=Vt}else-3==qt?m=Vt:-4==qt&&(_=Vt);return lt}let re=[],se=[];for(;u.pos>0;)y(t.start||0,t.bufferStart||0,re,se,-1,0);let ke=null!==(e=t.length)&&void 0!==e?e:re.length?se[0]+re[0].length:0;return new Ga(d[t.topID],re.reverse(),se.reverse(),ke)}(e)}}Ga.empty=new Ga(p2.none,[],[],0);class ZO{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new ZO(this.buffer,this.index)}}class Dh{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return p2.none}toString(){let e=[];for(let n=0;n0));d=a[d+3]);return u}slice(e,n,i){let r=this.buffer,s=new Uint16Array(n-e),a=0;for(let u=e,d=0;u=e&&ne;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function W_(t,e,n,i){for(var r;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?u.length:-1;e!=m;e+=n){let _=u[e],y=d[e]+a.from;if(KY(r,i,y,y+_.length))if(_ instanceof Dh){if(s&ll.ExcludeBuffers)continue;let x=_.findChild(0,_.buffer.length,n,i-y,r);if(x>-1)return new v3(new gAe(a,_,e,y),null,x)}else if(s&ll.IncludeAnonymous||!_.type.isAnonymous||tH(_)){let x;if(!(s&ll.IgnoreMounts)&&(x=G_.get(_))&&!x.overlay)return new m2(x.tree,y,e,a);let S=new m2(_,y,e,a);return s&ll.IncludeAnonymous||!S.type.isAnonymous?S:S.nextChild(n<0?_.children.length-1:0,n,i,r)}}if(s&ll.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+n:n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,i=0){let r;if(!(i&ll.IgnoreOverlays)&&(r=G_.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:a,to:u}of r.overlay)if((n>0?a<=s:a=s:u>s))return new m2(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function QY(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(null!=n)for(let a=!1;!a;)if(a=r.type.is(n),!r.nextSibling())return s;for(;;){if(null!=i&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return null==i?s:[]}}function eH(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class gAe{constructor(e,n,i,r){this.parent=e,this.buffer=n,this.index=i,this.start=r}}class v3 extends YY{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.context.start,i);return s<0?null:new v3(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,i=0){if(i&ll.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new v3(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new v3(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new v3(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,r=this.index+4,s=i.buffer[this.index+3];return s>r&&(e.push(i.slice(r,s,i.buffer[this.index+1])),n.push(0)),new Ga(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function JY(t){if(!t.length)return null;let e=0,n=t[0];for(let s=1;sn.from||a.to0){if(this.index-1)for(let s=n+e,a=e<0?-1:i._tree.children.length;s!=a;s+=e){let u=i._tree.children[s];if(this.mode&ll.IncludeAnonymous||u instanceof Dh||!u.type.isAnonymous||tH(u))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;n=a,i=s+1;break e}r=this.stack[--s]}for(let r=i;r=0;s--){if(s<0)return eH(this.node,e,r);let a=i[n.buffer[this.stack[s]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}}function tH(t){return t.children.some(e=>e instanceof Dh||!e.type.isAnonymous||tH(e))}const ZY=new WeakMap;function TS(t,e){if(!t.isAnonymous||e instanceof Dh||e.type!=t)return 1;let n=ZY.get(e);if(null==n){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Ga)){n=1;break}n+=TS(t,i)}ZY.set(e,n)}return n}function nH(t,e,n,i,r,s,a,u,d){let m=0;for(let D=i;D=_)break;Ye+=lt}if(se==ke+1){if(Ye>_){let lt=D[ke];S(lt.children,lt.positions,0,lt.children.length,z[ke]+re);continue}y.push(D[ke])}else y.push(nH(t,D,z,ke,se,ye,z[se-1]+D[se-1].length-ye,null,d));x.push(ye+re-s)}}(e,n,i,r,0),(u||d)(y,x,a)}class x0{constructor(e,n,i,r,s=!1,a=!1){this.from=e,this.to=n,this.tree=i,this.offset=r,this.open=(s?1:0)|(a?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,n=[],i=!1){let r=[new x0(0,e.length,e,0,!1,i)];for(let s of n)s.to>e.length&&r.push(s);return r}static applyChanges(e,n,i=128){if(!n.length)return e;let r=[],s=1,a=e.length?e[0]:null;for(let u=0,d=0,m=0;;u++){let _=u=i)for(;a&&a.from=x.from||y<=x.to||m){let S=Math.max(x.from,d)-m,D=Math.min(x.to,y)-m;x=S>=D?null:new x0(S,D,x.tree,x.offset+m,u>0,!!_)}if(x&&r.push(x),a.to>y)break;a=snew Ad(r.from,r.to)):[new Ad(0,0)]:[new Ad(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let r=this.startParse(e,n,i);for(;;){let s=r.advance();if(s)return s}}}class yAe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new ro({perNode:!0});let EAe=0;class _3{constructor(e,n,i){this.set=e,this.base=n,this.modified=i,this.id=EAe++}static define(e){if(e?.base)throw new Error("Can not derive from a modified tag");let n=new _3([],null,[]);if(n.set.push(n),e)for(let i of e.set)n.set.push(i);return n}static defineModifier(){let e=new VS;return n=>n.modified.indexOf(e)>-1?n:VS.get(n.base||n,n.modified.concat(e).sort((i,r)=>i.id-r.id))}}let DAe=0;class VS{constructor(){this.instances=[],this.id=DAe++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(u=>u.base==e&&function TAe(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}(n,u.modified));if(i)return i;let r=[],s=new _3(r,e,n);for(let u of n)u.instances.push(s);let a=function VAe(t){let e=[[]];for(let n=0;ni.length-n.length)}(n);for(let u of e.set)if(!u.modified.length)for(let d of a)r.push(VS.get(u,d));return s}}function oQ(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let r of n.split(" "))if(r){let s=[],a=2,u=r;for(let y=0;;){if("..."==u&&y>0&&y+3==r.length){a=1;break}let x=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(u);if(!x)throw new RangeError("Invalid path: "+r);if(s.push("*"==x[0]?"":'"'==x[0][0]?JSON.parse(x[0]):x[0]),y+=x[0].length,y==r.length)break;let S=r[y++];if(y==r.length&&"!"==S){a=0;break}if("/"!=S)throw new RangeError("Invalid path: "+r);u=r.slice(y)}let d=s.length-1,m=s[d];if(!m)throw new RangeError("Invalid path: "+r);let _=new AS(i,a,d>0?s.slice(0,d):null);e[m]=_.sort(e[m])}}return aQ.add(e)}const aQ=new ro;class AS{constructor(e,n,i,r){this.tags=e,this.mode=n,this.context=i,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let a=r;for(let u of s)for(let d of u.set){let m=n[d.id];if(m){a=a?a+" "+m:m;break}}return a},scope:i}}function lQ(t,e,n,i=0,r=t.length){let s=new IAe(i,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),i,r,"",s.highlighters),s.flush(r)}AS.empty=new AS([],2,null);class IAe{constructor(e,n,i){this.at=e,this.highlighters=n,this.span=i,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,i,r,s){let{type:a,from:u,to:d}=e;if(u>=i||d<=n)return;a.isTop&&(s=this.highlighters.filter(S=>!S.scope||S.scope(a)));let m=r,_=function OAe(t){let e=t.type.prop(aQ);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(e)||AS.empty,y=function AAe(t,e){let n=null;for(let i of t){let r=i.style(e);r&&(n=n?n+" "+r:r)}return n}(s,_.tags);if(y&&(m&&(m+=" "),m+=y,1==_.mode&&(r+=(r?" ":"")+y)),this.startSpan(Math.max(n,u),m),_.opaque)return;let x=e.tree&&e.tree.prop(ro.mounted);if(x&&x.overlay){let S=e.node.enter(x.overlay[0].from+u,1),D=this.highlighters.filter($=>!$.scope||$.scope(x.tree.type)),z=e.firstChild();for(let $=0,W=u;;$++){let re=$=se)&&e.nextSibling()););if(!re||se>i)break;W=re.to+u,W>n&&(this.highlightRange(S.cursor(),Math.max(n,re.from+u),Math.min(i,W),"",D),this.startSpan(Math.min(i,W),m))}z&&e.parent()}else if(e.firstChild()){x&&(r="");do{if(!(e.to<=n)){if(e.from>=i)break;this.highlightRange(e,n,i,r,s),this.startSpan(Math.min(i,e.to),m)}}while(e.nextSibling());e.parent()}}}const Gi=_3.define,IS=Gi(),Th=Gi(),uQ=Gi(Th),dQ=Gi(Th),Vh=Gi(),OS=Gi(Vh),sH=Gi(Vh),b3=Gi(),Ip=Gi(b3),y3=Gi(),C3=Gi(),oH=Gi(),q_=Gi(oH),HS=Gi(),Pi={comment:IS,lineComment:Gi(IS),blockComment:Gi(IS),docComment:Gi(IS),name:Th,variableName:Gi(Th),typeName:uQ,tagName:Gi(uQ),propertyName:dQ,attributeName:Gi(dQ),className:Gi(Th),labelName:Gi(Th),namespace:Gi(Th),macroName:Gi(Th),literal:Vh,string:OS,docString:Gi(OS),character:Gi(OS),attributeValue:Gi(OS),number:sH,integer:Gi(sH),float:Gi(sH),bool:Gi(Vh),regexp:Gi(Vh),escape:Gi(Vh),color:Gi(Vh),url:Gi(Vh),keyword:y3,self:Gi(y3),null:Gi(y3),atom:Gi(y3),unit:Gi(y3),modifier:Gi(y3),operatorKeyword:Gi(y3),controlKeyword:Gi(y3),definitionKeyword:Gi(y3),moduleKeyword:Gi(y3),operator:C3,derefOperator:Gi(C3),arithmeticOperator:Gi(C3),logicOperator:Gi(C3),bitwiseOperator:Gi(C3),compareOperator:Gi(C3),updateOperator:Gi(C3),definitionOperator:Gi(C3),typeOperator:Gi(C3),controlOperator:Gi(C3),punctuation:oH,separator:Gi(oH),bracket:q_,angleBracket:Gi(q_),squareBracket:Gi(q_),paren:Gi(q_),brace:Gi(q_),content:b3,heading:Ip,heading1:Gi(Ip),heading2:Gi(Ip),heading3:Gi(Ip),heading4:Gi(Ip),heading5:Gi(Ip),heading6:Gi(Ip),contentSeparator:Gi(b3),list:Gi(b3),quote:Gi(b3),emphasis:Gi(b3),strong:Gi(b3),link:Gi(b3),monospace:Gi(b3),strikethrough:Gi(b3),inserted:Gi(),deleted:Gi(),changed:Gi(),invalid:Gi(),meta:HS,documentMeta:Gi(HS),annotation:Gi(HS),processingInstruction:Gi(HS),definition:_3.defineModifier(),constant:_3.defineModifier(),function:_3.defineModifier(),standard:_3.defineModifier(),local:_3.defineModifier(),special:_3.defineModifier()};var aH;cQ([{tag:Pi.link,class:"tok-link"},{tag:Pi.heading,class:"tok-heading"},{tag:Pi.emphasis,class:"tok-emphasis"},{tag:Pi.strong,class:"tok-strong"},{tag:Pi.keyword,class:"tok-keyword"},{tag:Pi.atom,class:"tok-atom"},{tag:Pi.bool,class:"tok-bool"},{tag:Pi.url,class:"tok-url"},{tag:Pi.labelName,class:"tok-labelName"},{tag:Pi.inserted,class:"tok-inserted"},{tag:Pi.deleted,class:"tok-deleted"},{tag:Pi.literal,class:"tok-literal"},{tag:Pi.string,class:"tok-string"},{tag:Pi.number,class:"tok-number"},{tag:[Pi.regexp,Pi.escape,Pi.special(Pi.string)],class:"tok-string2"},{tag:Pi.variableName,class:"tok-variableName"},{tag:Pi.local(Pi.variableName),class:"tok-variableName tok-local"},{tag:Pi.definition(Pi.variableName),class:"tok-variableName tok-definition"},{tag:Pi.special(Pi.variableName),class:"tok-variableName2"},{tag:Pi.definition(Pi.propertyName),class:"tok-propertyName tok-definition"},{tag:Pi.typeName,class:"tok-typeName"},{tag:Pi.namespace,class:"tok-namespace"},{tag:Pi.className,class:"tok-className"},{tag:Pi.macroName,class:"tok-macroName"},{tag:Pi.propertyName,class:"tok-propertyName"},{tag:Pi.operator,class:"tok-operator"},{tag:Pi.comment,class:"tok-comment"},{tag:Pi.meta,class:"tok-meta"},{tag:Pi.invalid,class:"tok-invalid"},{tag:Pi.punctuation,class:"tok-punctuation"}]);const Op=new ro;const HAe=new ro;let Xu=(()=>{class t{constructor(n,i,r=[],s=""){this.data=n,this.name=s,W1.prototype.hasOwnProperty("tree")||Object.defineProperty(W1.prototype,"tree",{get(){return t1(this)}}),this.parser=i,this.extension=[Ah.of(this),W1.languageData.of((a,u,d)=>{let m=hQ(a,u,d),_=m.type.prop(Op);if(!_)return[];let y=a.facet(_),x=m.type.prop(HAe);if(x){let S=m.resolve(u-m.from,d);for(let D of x)if(D.test(S,a)){let z=a.facet(D.facet);return"replace"==D.type?z:z.concat(y)}}return y})].concat(r)}isActiveAt(n,i,r=-1){return hQ(n,i,r).type.prop(Op)==this.data}findRegions(n){let i=n.facet(Ah);if(i?.data==this.data)return[{from:0,to:n.doc.length}];if(!i||!i.allowsNesting)return[];let r=[],s=(a,u)=>{if(a.prop(Op)==this.data)return void r.push({from:u,to:u+a.length});let d=a.prop(ro.mounted);if(d){if(d.tree.prop(Op)==this.data){if(d.overlay)for(let m of d.overlay)r.push({from:m.from+u,to:m.to+u});else r.push({from:u,to:u+a.length});return}if(d.overlay){let m=r.length;if(s(d.tree,d.overlay[0].from+u),r.length>m)return}}for(let m=0;me.concat(t):void 0})}(e.languageData);return new LS(n,e.parser.configure({props:[Op.add(i=>i.isTop?n:void 0)]}),e.name)}configure(e,n){return new LS(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function t1(t){let e=t.field(Xu.state,!1);return e?e.tree:Ga.empty}class zAe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let i=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-i,n-i)}}let X_=null;class R5{constructor(e,n,i=[],r,s,a,u,d){this.parser=e,this.state=n,this.fragments=i,this.tree=r,this.treeLen=s,this.viewport=a,this.skipped=u,this.scheduleOn=d,this.parse=null,this.tempSkipped=[]}static create(e,n,i){return new R5(e,n,[],Ga.empty,0,i,[],null)}startParse(){return this.parser.startParse(new zAe(this.state.doc),this.fragments)}work(e,n){return null!=n&&n>=this.state.doc.length&&(n=void 0),this.tree!=Ga.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if("number"==typeof e){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),null!=n&&(null==this.parse.stoppedAt||this.parse.stoppedAt>n)&&n=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(x0.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=X_;X_=this;try{return e()}finally{X_=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=pQ(e,n.from,n.to);return e}changes(e,n){let{fragments:i,tree:r,treeLen:s,viewport:a,skipped:u}=this;if(this.takeTree(),!e.empty){let d=[];if(e.iterChangedRanges((m,_,y,x)=>d.push({fromA:m,toA:_,fromB:y,toB:x})),i=x0.applyChanges(i,d),r=Ga.empty,s=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){u=[];for(let m of this.skipped){let _=e.mapPos(m.from,1),y=e.mapPos(m.to,-1);_e.from&&(this.fragments=pQ(this.fragments,r,s),this.skipped.splice(i--,1))}return!(this.skipped.length>=n||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends iH{createParse(n,i,r){let s=r[0].from,a=r[r.length-1].to;return{parsedPos:s,advance(){let d=X_;if(d){for(let m of r)d.tempSkipped.push(m);e&&(d.scheduleOn=d.scheduleOn?Promise.all([d.scheduleOn,e]):e)}return this.parsedPos=a,new Ga(p2.none,[],[],a-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&0==n[0].from&&n[0].to>=e}static get(){return X_}}function pQ(t,e,n){return x0.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class N5{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,i)||n.takeTree(),new N5(n)}static init(e){let n=Math.min(3e3,e.doc.length),i=R5.create(e.facet(Ah).parser,e,{from:0,to:n});return i.work(20,n)||i.takeTree(),new N5(i)}}Xu.state=e1.define({create:N5.init,update(t,e){for(let n of e.effects)if(n.is(Xu.setState))return n.value;return e.startState.facet(Ah)!=e.state.facet(Ah)?N5.init(e.state):t.apply(e)}});let mQ=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(mQ=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const cH=typeof navigator<"u"&&null!==(aH=navigator.scheduling)&&void 0!==aH&&aH.isInputPending?()=>navigator.scheduling.isInputPending():null,gQ=Vc.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Xu.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Xu.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=mQ(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEndr+1e3,d=s.context.work(()=>cH&&cH()||Date.now()>a,r+(u?0:1e5));this.chunkBudget-=Date.now()-n,(d||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Xu.setState.of(new N5(s.context))})),this.chunkBudget>0&&!(d&&!u)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>K2(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ah=sr.define({combine:t=>t.length?t[0]:null,enables:t=>[Xu.state,gQ,ps.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class RAe{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const _Q=sr.define(),zS=sr.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function b4(t){let e=t.facet(zS);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function P5(t,e){let n="",i=t.tabSize,r=t.facet(zS)[0];if("\t"==r){for(;e>=i;)n+="\t",e-=i;r=" "}for(let s=0;s=e?function NAe(t,e,n){let i=e.resolveStack(n),r=i.node.enterUnfinishedNodesBefore(n);if(r!=i.node){let s=[];for(let a=r;a!=i.node;a=a.parent)s.push(a);for(let a=s.length-1;a>=0;a--)i={node:s[a],next:i}}return yQ(i,t,n)}(t,n,e):null}class K_{constructor(e,n={}){this.state=e,this.options=n,this.unit=b4(e)}lineAt(e,n=1){let i=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return null!=r&&r>=i.from&&r<=i.to?s&&r==e?{text:"",from:e}:(n<0?r-1&&(s+=a-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,n=e.length){return T5(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:i,from:r}=this.lineAt(e,n),s=this.options.overrideIndentation;if(s){let a=s(r);if(a>-1)return a}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const bQ=new ro;function yQ(t,e,n){for(let i=t;i;i=i.next){let r=jAe(i.node);if(r)return r(lH.create(e,n,i))}return 0}function jAe(t){let e=t.type.prop(bQ);if(e)return e;let i,n=t.firstChild;if(n&&(i=n.type.prop(ro.closedBy))){let r=t.lastChild,s=r&&i.indexOf(r.name)>-1;return a=>function CQ(t,e,n,i,r){let s=t.textAfter,a=s.match(/^\s*/)[0].length,u=i&&s.slice(a,a+i.length)==i||r==t.pos+a,d=e?function $Ae(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),a=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let u=n.to;;){let d=e.childAfter(u);if(!d||d==i)return null;if(!d.type.isSkipped)return d.from{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}const WAe=sr.define(),wQ=new ro;function KAe(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function Y_(t,e,n){for(let i of t.facet(WAe)){let r=i(t,e,n);if(r)return r}return function XAe(t,e,n){let i=t1(t);if(i.lengthn)continue;if(s&&u.from=e&&m.to>n&&(s=m)}}return s}(t,e,n)}function MQ(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}const Q_=Uo.define({map:MQ}),j5=Uo.define({map:MQ});function uH(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(i=>i.from<=n&&i.to>=n)||e.push(t.lineBlockAt(n));return e}const Ih=e1.define({create:()=>Rr.none,update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(Q_)&&!YAe(t,n.value.from,n.value.to)){let{preparePlaceholder:i}=e.state.facet(fH),r=i?Rr.replace({widget:new rIe(i(e.state,n.value))}):EQ;t=t.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(j5)&&(t=t.update({filter:(i,r)=>n.value.from!=i||n.value.to!=r,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:i}=e.selection.main;t.between(i,i,(r,s)=>{ri&&(n=!0)}),n&&(t=t.update({filterFrom:i,filterTo:i,filter:(r,s)=>s<=i||r>=i}))}return t},provide:t=>ps.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(i,r)=>{n.push(i,r)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!r||r.from>s)&&(r={from:s,to:a})}),r}function YAe(t,e,n){let i=!1;return t.between(e,e,(r,s)=>{r==e&&s==n&&(i=!0)}),i}function dH(t,e){return t.field(Ih,!1)?e:e.concat(Uo.appendConfig.of(SQ()))}function NS(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return ps.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${r}.`)}const nIe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:t=>{for(let e of uH(t)){let n=Y_(t.state,e.from,e.to);if(n)return t.dispatch({effects:dH(t.state,[Q_.of(n),NS(t,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:t=>{if(!t.state.field(Ih,!1))return!1;let e=[];for(let n of uH(t)){let i=J_(t.state,n.from,n.to);i&&e.push(j5.of(i),NS(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0}},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let i=0;i{let e=t.state.field(Ih,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(i,r)=>{n.push(j5.of({from:i,to:r}))}),t.dispatch({effects:n}),!0}}],iIe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},fH=sr.define({combine:t=>Td(t,iIe)});function SQ(t){let e=[Ih,aIe];return t&&e.push(fH.of(t)),e}function kQ(t,e){let{state:n}=t,i=n.facet(fH),r=a=>{let u=t.lineBlockAt(t.posAtDOM(a.target)),d=J_(t.state,u.from,u.to);d&&t.dispatch({effects:j5.of(d)}),a.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,r,e);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}const EQ=Rr.replace({widget:new class extends h3{toDOM(t){return kQ(t,null)}}});class rIe extends h3{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return kQ(e,this.value)}}const sIe={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class hH extends g3{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function oIe(t={}){let e=Object.assign(Object.assign({},sIe),t),n=new hH(e,!0),i=new hH(e,!1),r=Vc.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(Ah)!=a.state.facet(Ah)||a.startState.field(Ih,!1)!=a.state.field(Ih,!1)||t1(a.startState)!=t1(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let u=new g4;for(let d of a.viewportLineBlocks){let m=J_(a.state,d.from,d.to)?i:Y_(a.state,d.from,d.to)?n:null;m&&u.add(d.from,d.from,m)}return u.finish()}}),{domEventHandlers:s}=e;return[r,PY({class:"cm-foldGutter",markers(a){var u;return(null===(u=a.plugin(r))||void 0===u?void 0:u.markers)||Qc.empty},initialSpacer:()=>new hH(e,!1),domEventHandlers:Object.assign(Object.assign({},s),{click:(a,u,d)=>{if(s.click&&s.click(a,u,d))return!0;let m=J_(a.state,u.from,u.to);if(m)return a.dispatch({effects:j5.of(m)}),!0;let _=Y_(a.state,u.from,u.to);return!!_&&(a.dispatch({effects:Q_.of(_)}),!0)}})}),SQ()]}const aIe=ps.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Z_{constructor(e,n){let i;function r(u){let d=Ch.newName();return(i||(i=Object.create(null)))["."+d]=u,d}this.specs=e;const s="string"==typeof n.all?n.all:n.all?r(n.all):void 0,a=n.scope;this.scope=a instanceof Xu?u=>u.prop(Op)==a.data:a?u=>u==a:void 0,this.style=cQ(e.map(u=>({tag:u.tag,class:u.class||r(Object.assign({},u,{tag:null}))})),{all:s}).style,this.module=i?new Ch(i):null,this.themeType=n.themeType}static define(e,n){return new Z_(e,n||{})}}const pH=sr.define(),DQ=sr.define({combine:t=>t.length?[t[0]]:null});function PS(t){let e=t.facet(pH);return e.length?e:t.facet(DQ)}function TQ(t,e){let i,n=[lIe];return t instanceof Z_&&(t.module&&n.push(ps.styleModule.of(t.module)),i=t.themeType),n.push(e?.fallback?DQ.of(t):i?pH.computeN([ps.darkTheme],r=>r.facet(ps.darkTheme)==("dark"==i)?[t]:[]):pH.of(t)),n}class cIe{constructor(e){this.markCache=Object.create(null),this.tree=t1(e.state),this.decorations=this.buildDeco(e,PS(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=t1(e.state),i=PS(e.state),r=i!=PS(e.startState),{viewport:s}=e.view,a=e.changes.mapPos(this.decoratedTo,1);n.length=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(n!=this.tree||e.viewportChanged||r)&&(this.tree=n,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=s.to)}buildDeco(e,n){if(!n||!this.tree.length)return Rr.none;let i=new g4;for(let{from:r,to:s}of e.visibleRanges)lQ(this.tree,n,(a,u,d)=>{i.add(a,u,this.markCache[d]||(this.markCache[d]=Rr.mark({class:d})))},r,s);return i.finish()}}const lIe=v0.high(Vc.fromClass(cIe,{decorations:t=>t.decorations})),uIe=Z_.define([{tag:Pi.meta,color:"#404740"},{tag:Pi.link,textDecoration:"underline"},{tag:Pi.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Pi.emphasis,fontStyle:"italic"},{tag:Pi.strong,fontWeight:"bold"},{tag:Pi.strikethrough,textDecoration:"line-through"},{tag:Pi.keyword,color:"#708"},{tag:[Pi.atom,Pi.bool,Pi.url,Pi.contentSeparator,Pi.labelName],color:"#219"},{tag:[Pi.literal,Pi.inserted],color:"#164"},{tag:[Pi.string,Pi.deleted],color:"#a11"},{tag:[Pi.regexp,Pi.escape,Pi.special(Pi.string)],color:"#e40"},{tag:Pi.definition(Pi.variableName),color:"#00f"},{tag:Pi.local(Pi.variableName),color:"#30a"},{tag:[Pi.typeName,Pi.namespace],color:"#085"},{tag:Pi.className,color:"#167"},{tag:[Pi.special(Pi.variableName),Pi.macroName],color:"#256"},{tag:Pi.definition(Pi.propertyName),color:"#00c"},{tag:Pi.comment,color:"#940"},{tag:Pi.invalid,color:"#f00"}]),dIe=ps.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),VQ=1e4,AQ="()[]{}",IQ=sr.define({combine:t=>Td(t,{afterCursor:!0,brackets:AQ,maxScanDistance:VQ,renderMatch:pIe})}),fIe=Rr.mark({class:"cm-matchingBracket"}),hIe=Rr.mark({class:"cm-nonmatchingBracket"});function pIe(t){let e=[],n=t.matched?fIe:hIe;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const mIe=[e1.define({create:()=>Rr.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(IQ);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=x3(e.state,r.head,-1,i)||r.head>0&&x3(e.state,r.head-1,1,i)||i.afterCursor&&(x3(e.state,r.head,1,i)||r.headps.decorations.from(t)}),dIe];function gIe(t={}){return[IQ.of(t),mIe]}const vIe=new ro;function mH(t,e,n){let i=t.prop(e<0?ro.openedBy:ro.closedBy);if(i)return i;if(1==t.name.length){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function gH(t){let e=t.type.prop(vIe);return e?e(t.node):t}function x3(t,e,n,i={}){let r=i.maxScanDistance||VQ,s=i.brackets||AQ,a=t1(t),u=a.resolveInner(e,n);for(let d=u;d;d=d.parent){let m=mH(d.type,n,s);if(m&&d.from0?e>=_.from&&e<_.to:e>_.from&&e<=_.to))return _Ie(0,0,n,d,_,m,s)}}return function bIe(t,e,n,i,r,s,a){let u=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),d=a.indexOf(u);if(d<0||d%2==0!=n>0)return null;let m={from:n<0?e-1:e,to:n>0?e+1:e},_=t.doc.iterRange(e,n>0?t.doc.length:0),y=0;for(let x=0;!_.next().done&&x<=s;){let S=_.value;n<0&&(x+=S.length);let D=e+x*n;for(let z=n>0?0:S.length-1,$=n>0?S.length:-1;z!=$;z+=n){let W=a.indexOf(S[z]);if(!(W<0||i.resolveInner(D+z,1).type!=r))if(W%2==0==n>0)y++;else{if(1==y)return{start:m,end:{from:D+z,to:D+z+1},matched:W>>1==d>>1};y--}}n>0&&(x+=S.length)}return _.done?{start:m,matched:!1}:null}(t,e,n,a,u.type,r,s)}function _Ie(t,e,n,i,r,s,a){let u=i.parent,d={from:r.from,to:r.to},m=0,_=u?.cursor();if(_&&(n<0?_.childBefore(i.from):_.childAfter(i.to)))do{if(n<0?_.to<=i.from:_.from>=i.to){if(0==m&&s.indexOf(_.type.name)>-1&&_.from<_.to){let y=gH(_);return{start:d,end:y?{from:y.from,to:y.to}:void 0,matched:!0}}if(mH(_.type,n,a))m++;else if(mH(_.type,-n,a)){if(0==m){let y=gH(_);return{start:d,end:y&&y.from-1||(PQ.push(t),console.warn(e))}function $Q(t,e){let n=[];for(let u of e.split(" ")){let d=[];for(let m of u.split(".")){let _=t[m]||Pi[m];_?"function"==typeof _?d.length?d=d.map(_):bH(m,`Modifier ${m} used at start of tag`):d.length?bH(m,`Tag ${m} used as modifier`):d=Array.isArray(_)?_:[_]:bH(m,`Unknown highlighting tag ${m}`)}for(let m of d)n.push(m)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),r=i+" "+n.map(u=>u.id),s=jQ[r];if(s)return s.id;let a=jQ[r]=p2.define({id:eb.length,name:i,props:[oQ({[i]:n})]});return eb.push(a),a.id}function CH(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=t(e,n);return!!r&&(i(n.update(r)),!0)}}const IIe=CH(RIe,0),OIe=CH(qQ,0),HIe=CH((t,e)=>qQ(t,e,function zIe(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=n.to<=i.to?i:t.doc.lineAt(n.to),s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=r.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return e}(e)),0);function xH(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const tb=50;function qQ(t,e,n=e.selection.ranges){let i=n.map(s=>xH(e,s.from).block);if(!i.every(s=>s))return null;let r=n.map((s,a)=>function LIe(t,{open:e,close:n},i,r){let _,y,s=t.sliceDoc(i-tb,i),a=t.sliceDoc(r,r+tb),u=/\s*$/.exec(s)[0].length,d=/^\s*/.exec(a)[0].length,m=s.length-u;if(s.slice(m-e.length,m)==e&&a.slice(d,d+n.length)==n)return{open:{pos:i-u,margin:u&&1},close:{pos:r+d,margin:d&&1}};r-i<=2*tb?_=y=t.sliceDoc(i,r):(_=t.sliceDoc(i,i+tb),y=t.sliceDoc(r-tb,r));let x=/^\s*/.exec(_)[0].length,S=/\s*$/.exec(y)[0].length,D=y.length-S-n.length;return _.slice(x,x+e.length)==e&&y.slice(D,D+n.length)==n?{open:{pos:i+x+e.length,margin:/\s/.test(_.charAt(x+e.length))?1:0},close:{pos:r-S-n.length,margin:/\s/.test(y.charAt(D-1))?1:0}}:null}(e,i[a],s.from,s.to));if(2!=t&&!r.every(s=>s))return{changes:e.changes(n.map((s,a)=>r[a]?[]:[{from:s.from,insert:i[a].open+" "},{from:s.to,insert:" "+i[a].close}]))};if(1!=t&&r.some(s=>s)){let s=[];for(let u,a=0;ar&&(s==a||a>y.from)){r=y.from;let x=/^\s*/.exec(y.text)[0].length,S=x==y.length,D=y.text.slice(x,x+m.length)==m?x:-1;xs.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:u,token:d,indent:m,empty:_,single:y}of i)(y||!_)&&s.push({from:u.from+m,insert:d+" "});let a=e.changes(s);return{changes:a,selection:e.selection.map(a,1)}}if(1!=t&&i.some(s=>s.comment>=0)){let s=[];for(let{line:a,comment:u,token:d}of i)if(u>=0){let m=a.from+u,_=m+d.length;" "==a.text[_-a.from]&&_++,s.push({from:m,to:_})}return{changes:s}}return null}const wH=b0.define(),NIe=b0.define(),PIe=sr.define(),XQ=sr.define({combine:t=>Td(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(i,r)=>e(i,r)||n(i,r)})}),MH=e1.define({create:()=>EH.empty,update(t,e){let n=e.state.facet(XQ),i=e.annotation(wH);if(i){let d=bu.fromTransaction(e,i.selection),m=i.side,_=0==m?t.undone:t.done;return _=d?BS(_,_.length,n.minDepth,d):QQ(_,e.startState.selection),new EH(0==m?i.rest:_,0==m?_:i.rest)}let r=e.annotation(NIe);if(("full"==r||"before"==r)&&(t=t.isolate()),!1===e.annotation(f3.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let s=bu.fromTransaction(e),a=e.annotation(f3.time),u=e.annotation(f3.userEvent);return s?t=t.addChanges(s,a,u,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,u,n.newGroupDelay)),("full"==r||"after"==r)&&(t=t.isolate()),t},toJSON:t=>({done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}),fromJSON:t=>new EH(t.done.map(bu.fromJSON),t.undone.map(bu.fromJSON))});function jIe(t={}){return[MH,XQ.of(t),ps.domEventHandlers({beforeinput(e,n){let i="historyUndo"==e.inputType?SH:"historyRedo"==e.inputType?FS:null;return!!i&&(e.preventDefault(),i(n))}})]}function jS(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let r=n.field(MH,!1);if(!r)return!1;let s=r.pop(t,n,e);return!!s&&(i(s),!0)}}const SH=jS(0,!1),FS=jS(1,!1),FIe=jS(0,!0),BIe=jS(1,!0);function KQ(t){return function(e){let n=e.field(MH,!1);if(!n)return 0;let i=0==t?n.done:n.undone;return i.length-(i.length&&!i[0].changes?1:0)}}const $Ie=KQ(0),UIe=KQ(1);class bu{constructor(e,n,i,r,s){this.changes=e,this.effects=n,this.mapped=i,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new bu(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,i;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(n=this.mapped)||void 0===n?void 0:n.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new bu(e.changes&&m1.fromJSON(e.changes),[],e.mapped&&d3.fromJSON(e.mapped),e.startSelection&&mi.fromJSON(e.startSelection),e.selectionsAfter.map(mi.fromJSON))}static fromTransaction(e,n){let i=Id;for(let r of e.startState.facet(PIe)){let s=r(e);s.length&&(i=i.concat(s))}return!i.length&&e.changes.empty?null:new bu(e.changes.invert(e.startState.doc),i,void 0,n||e.startState.selection,Id)}static selection(e){return new bu(void 0,Id,void 0,void 0,e)}}function BS(t,e,n,i){let s=t.slice(e+1>n+20?e-n-1:0,e);return s.push(i),s}function YQ(t,e){return t.length?e.length?t.concat(e):t:e}const Id=[],qIe=200;function QQ(t,e){if(t.length){let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-qIe));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),BS(t,t.length-1,1e9,n.setSelAfter(i)))}return[bu.selection([e])]}function XIe(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function kH(t,e){if(!t.length)return t;let n=t.length,i=Id;for(;n;){let r=KIe(t[n-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let s=t.slice(0,n);return s[n-1]=r,s}e=r.mapped,n--,i=r.selectionsAfter}return i.length?[bu.selection(i)]:Id}function KIe(t,e,n){let i=YQ(t.selectionsAfter.length?t.selectionsAfter.map(u=>u.map(e)):Id,n);if(!t.changes)return bu.selection(i);let r=t.changes.map(e),s=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(s):s;return new bu(r,Uo.mapEffects(t.effects,e),a,t.startSelection.map(s),i)}const YIe=/^(input\.type|delete)($|\.)/;let EH=(()=>{class t{constructor(n,i,r=0,s=void 0){this.done=n,this.undone=i,this.prevTime=r,this.prevUserEvent=s}isolate(){return this.prevTime?new t(this.done,this.undone):this}addChanges(n,i,r,s,a){let u=this.done,d=u[u.length-1];return u=d&&d.changes&&!d.changes.empty&&n.changes&&(!r||YIe.test(r))&&(!d.selectionsAfter.length&&i-this.prevTimen.push(r,s)),e.iterChangedRanges((r,s,a,u)=>{for(let d=0;d=m&&a<=_&&(i=!0)}}),i}(d.changes,n.changes))||"input.type.compose"==r)?BS(u,u.length-1,s.minDepth,new bu(n.changes.compose(d.changes),YQ(n.effects,d.effects),d.mapped,d.startSelection,Id)):BS(u,u.length,s.minDepth,n),new t(u,Id,i,r)}addSelection(n,i,r,s){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:Id;return a.length>0&&i-this.prevTimen.empty!=e.ranges[i].empty).length}(a[a.length-1],n)?this:new t(QQ(this.done,n),this.undone,i,r)}addMapping(n){return new t(kH(this.done,n),kH(this.undone,n),this.prevTime,this.prevUserEvent)}pop(n,i,r){let s=0==n?this.done:this.undone;if(0==s.length)return null;let a=s[s.length-1],u=a.selectionsAfter[0]||i.selection;if(r&&a.selectionsAfter.length)return i.update({selection:a.selectionsAfter[a.selectionsAfter.length-1],annotations:wH.of({side:n,rest:XIe(s),selection:u}),userEvent:0==n?"select.undo":"select.redo",scrollIntoView:!0});if(a.changes){let d=1==s.length?Id:s.slice(0,s.length-1);return a.mapped&&(d=kH(d,a.mapped)),i.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:wH.of({side:n,rest:d,selection:u}),filter:!1,userEvent:0==n?"undo":"redo",scrollIntoView:!0})}return null}}return t.empty=new t(Id,Id),t})();const QIe=[{key:"Mod-z",run:SH,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:FS,preventDefault:!0},{linux:"Ctrl-Shift-z",run:FS,preventDefault:!0},{key:"Mod-u",run:FIe,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:BIe,preventDefault:!0}];function F5(t,e){return mi.create(t.ranges.map(e),t.mainIndex)}function w3(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Od({state:t,dispatch:e},n){let i=F5(t.selection,n);return!i.eq(t.selection,!0)&&(e(w3(t,i)),!0)}function nb(t,e){return mi.cursor(e?t.to:t.from)}function $S(t,e){return Od(t,n=>n.empty?t.moveByChar(n,e):nb(n,e))}function g2(t){return t.textDirectionAt(t.state.selection.main.head)==bc.LTR}const JQ=t=>$S(t,!g2(t)),ZQ=t=>$S(t,g2(t));function US(t,e){return Od(t,n=>n.empty?t.moveByGroup(n,e):nb(n,e))}function eOe(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function GS(t,e,n){let a,u,i=t1(t).resolveInner(e.head),r=n?ro.closedBy:ro.openedBy;for(let d=e.head;;){let m=n?i.childAfter(d):i.childBefore(d);if(!m)break;eOe(t,m,r)?i=m:d=n?m.to:m.from}return u=i.type.prop(r)&&(a=n?x3(t,i.from,1):x3(t,i.to,-1))&&a.matched?n?a.end.to:a.end.from:n?i.to:i.from,mi.cursor(u,n?-1:1)}function iJ(t,e){return Od(t,n=>{if(!n.empty)return nb(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}typeof Intl<"u"&&Intl;const rJ=t=>iJ(t,!1),sJ=t=>iJ(t,!0);function oJ(t){let r,e=t.scrollDOM.clientHeighta.empty?t.moveVertically(a,e,n.height):nb(a,e));if(r.eq(i.selection))return!1;if(n.selfScroll){let a=t.coordsAtPos(i.selection.main.head),u=t.scrollDOM.getBoundingClientRect(),d=u.top+n.marginTop;a&&a.top>d&&a.bottomaJ(t,!1),DH=t=>aJ(t,!0);function Oh(t,e,n){let i=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,n);if(r.head==e.head&&r.head!=(n?i.to:i.from)&&(r=t.moveToLineBoundary(e,n,!1)),!n&&r.head==i.from&&i.length){let s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(r=mi.cursor(i.from+s))}return r}function Ku(t,e){let n=F5(t.state.selection,i=>{let r=e(i);return mi.range(i.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return!n.eq(t.state.selection)&&(t.dispatch(w3(t.state,n)),!0)}function WS(t,e){return Ku(t,n=>t.moveByChar(n,e))}const uJ=t=>WS(t,!g2(t)),dJ=t=>WS(t,g2(t));function qS(t,e){return Ku(t,n=>t.moveByGroup(n,e))}function hJ(t,e){return Ku(t,n=>t.moveVertically(n,e))}const pJ=t=>hJ(t,!1),mJ=t=>hJ(t,!0);function gJ(t,e){return Ku(t,n=>t.moveVertically(n,e,oJ(t).height))}const vJ=t=>gJ(t,!1),_J=t=>gJ(t,!0),bJ=({state:t,dispatch:e})=>(e(w3(t,{anchor:0})),!0),yJ=({state:t,dispatch:e})=>(e(w3(t,{anchor:t.doc.length})),!0),CJ=({state:t,dispatch:e})=>(e(w3(t,{anchor:t.selection.main.anchor,head:0})),!0),xJ=({state:t,dispatch:e})=>(e(w3(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function B5(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,r=i.changeByRange(s=>{let{from:a,to:u}=s;if(a==u){let d=e(s);da&&(n="delete.forward",d=XS(t,d,!0)),a=Math.min(a,d),u=Math.max(u,d)}else a=XS(t,a,!1),u=XS(t,u,!0);return a==u?{range:s}:{changes:{from:a,to:u},range:mi.cursor(a,ar(t)))i.between(e,e,(r,s)=>{re&&(e=n?s:r)});return e}const TH=(t,e,n)=>B5(t,i=>{let u,d,r=i.from,{state:s}=t,a=s.doc.lineAt(r);if(n&&!e&&r>a.from&&rTH(t,!1,!0),wJ=t=>TH(t,!0,!1),MJ=(t,e)=>B5(t,n=>{let i=n.head,{state:r}=t,s=r.doc.lineAt(i),a=r.charCategorizer(i);for(let u=null;;){if(i==(e?s.to:s.from)){i==n.head&&s.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let d=U1(s.text,i-s.from,e)+s.from,m=s.text.slice(Math.min(i,d)-s.from,Math.max(i,d)-s.from),_=a(m);if(null!=u&&_!=u)break;(" "!=m||i!=n.head)&&(u=_),i=d}return i}),SJ=t=>MJ(t,!1);function KS(t){let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.from),s=t.doc.lineAt(i.to);if(!i.empty&&i.to==s.from&&(s=t.doc.lineAt(i.to-1)),n>=r.number){let a=e[e.length-1];a.to=s.to,a.ranges.push(i)}else e.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return e}function kJ(t,e,n){if(t.readOnly)return!1;let i=[],r=[];for(let s of KS(t)){if(n?s.to==t.doc.length:0==s.from)continue;let a=t.doc.lineAt(n?s.to+1:s.from-1),u=a.length+1;if(n){i.push({from:s.to,to:a.to},{from:s.from,insert:a.text+t.lineBreak});for(let d of s.ranges)r.push(mi.range(Math.min(t.doc.length,d.anchor+u),Math.min(t.doc.length,d.head+u)))}else{i.push({from:a.from,to:s.from},{from:s.to,insert:t.lineBreak+a.text});for(let d of s.ranges)r.push(mi.range(d.anchor-u,d.head-u))}}return!!i.length&&(e(t.update({changes:i,scrollIntoView:!0,selection:mi.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0)}function EJ(t,e,n){if(t.readOnly)return!1;let i=[];for(let r of KS(t))i.push(n?{from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}:{from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const zOe=DJ(!1),ROe=DJ(!0);function DJ(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(r=>{let{from:s,to:a}=r,u=e.doc.lineAt(s),d=!t&&s==a&&function LOe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let s,n=t1(t).resolveInner(e),i=n.childBefore(e),r=n.childAfter(e);return i&&r&&i.to<=e&&r.from>=e&&(s=i.type.prop(ro.closedBy))&&s.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}(e,s);t&&(s=a=(a<=u.to?u:e.doc.lineAt(a)).to);let m=new K_(e,{simulateBreak:s,simulateDoubleBreak:!!d}),_=RS(m,s);for(null==_&&(_=T5(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));au.from&&s{let r=[];for(let a=i.from;a<=i.to;){let u=t.doc.lineAt(a);u.number>n&&(i.empty||i.to>u.from)&&(e(u,r,i),n=u.number),a=u.to+1}let s=t.changes(r);return{changes:r,range:mi.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}const IH=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(AH(t,(n,i)=>{i.push({from:n.from,insert:t.facet(zS)})}),{userEvent:"input.indent"})),!0),TJ=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(AH(t,(n,i)=>{let r=/^\s*/.exec(n.text)[0];if(!r)return;let s=T5(r,t.tabSize),a=0,u=P5(t,Math.max(0,s-b4(t)));for(;aOd(t,e=>mi.cursor(t.lineBlockAt(e.head).from,1)),shift:t=>Ku(t,e=>mi.cursor(t.lineBlockAt(e.head).from))},{key:"Ctrl-e",run:t=>Od(t,e=>mi.cursor(t.lineBlockAt(e.head).to,-1)),shift:t=>Ku(t,e=>mi.cursor(t.lineBlockAt(e.head).to))},{key:"Ctrl-d",run:wJ},{key:"Ctrl-h",run:VH},{key:"Ctrl-k",run:t=>B5(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head{if(t.readOnly)return!1;let n=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:Ia.of(["",""])},range:mi.cursor(i.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{if(!i.empty||0==i.from||i.from==t.doc.length)return{range:i};let r=i.from,s=t.doc.lineAt(r),a=r==s.from?r-1:U1(s.text,r-s.from,!1)+s.from,u=r==s.to?r+1:U1(s.text,r-s.from,!0)+s.from;return{changes:{from:a,to:u,insert:t.doc.slice(r,u).append(t.doc.slice(a,r))},range:mi.cursor(u)}});return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:DH}],jOe=[{key:"ArrowLeft",run:JQ,shift:uJ,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>US(t,!g2(t)),shift:t=>qS(t,!g2(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>Od(t,e=>Oh(t,e,!g2(t))),shift:t=>Ku(t,e=>Oh(t,e,!g2(t))),preventDefault:!0},{key:"ArrowRight",run:ZQ,shift:dJ,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>US(t,g2(t)),shift:t=>qS(t,g2(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>Od(t,e=>Oh(t,e,g2(t))),shift:t=>Ku(t,e=>Oh(t,e,g2(t))),preventDefault:!0},{key:"ArrowUp",run:rJ,shift:pJ,preventDefault:!0},{mac:"Cmd-ArrowUp",run:bJ,shift:CJ},{mac:"Ctrl-ArrowUp",run:cJ,shift:vJ},{key:"ArrowDown",run:sJ,shift:mJ,preventDefault:!0},{mac:"Cmd-ArrowDown",run:yJ,shift:xJ},{mac:"Ctrl-ArrowDown",run:DH,shift:_J},{key:"PageUp",run:cJ,shift:vJ},{key:"PageDown",run:DH,shift:_J},{key:"Home",run:t=>Od(t,e=>Oh(t,e,!1)),shift:t=>Ku(t,e=>Oh(t,e,!1)),preventDefault:!0},{key:"Mod-Home",run:bJ,shift:CJ},{key:"End",run:t=>Od(t,e=>Oh(t,e,!0)),shift:t=>Ku(t,e=>Oh(t,e,!0)),preventDefault:!0},{key:"Mod-End",run:yJ,shift:xJ},{key:"Enter",run:zOe},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:VH,shift:VH},{key:"Delete",run:wJ},{key:"Mod-Backspace",mac:"Alt-Backspace",run:SJ},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>MJ(t,!0)},{mac:"Mod-Backspace",run:t=>B5(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)})},{mac:"Mod-Delete",run:t=>B5(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head({mac:t.key,run:t.run,shift:t.shift}))),FOe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:t=>Od(t,e=>GS(t.state,e,!g2(t))),shift:t=>Ku(t,e=>GS(t.state,e,!g2(t)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>Od(t,e=>GS(t.state,e,g2(t))),shift:t=>Ku(t,e=>GS(t.state,e,g2(t)))},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>kJ(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>EJ(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>kJ(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>EJ(t,e,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=mi.create([n.main]):n.main.empty||(i=mi.create([mi.cursor(n.main.head)])),!!i&&(e(w3(t,i)),!0)}},{key:"Mod-Enter",run:ROe},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let n=KS(t).map(({from:i,to:r})=>mi.range(i,Math.min(r+1,t.doc.length)));return e(t.update({selection:mi.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let n=F5(t.selection,i=>{var r;for(let a=t1(t).resolveStack(i.from,1);a;a=a.next){let{node:u}=a;if((u.from=i.to||u.to>i.to&&u.from<=i.from)&&null!==(r=u.parent)&&void 0!==r&&r.parent)return mi.range(u.to,u.from)}return i});return e(w3(t,n)),!0},preventDefault:!0},{key:"Mod-[",run:TJ},{key:"Mod-]",run:IH},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new K_(t,{overrideIndentation:s=>n[s]??-1}),r=AH(t,(s,a,u)=>{let d=RS(i,s.from);if(null==d)return;/\S/.test(s.text)||(d=0);let m=/^\s*/.exec(s.text)[0],_=P5(t,d);(m!=_||u.from{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(KS(e).map(({from:r,to:s})=>(r>0?r--:s{let s;if(t.lineWrapping){let a=t.lineBlockAt(r.head),u=t.coordsAtPos(r.head,r.assoc||1);u&&(s=a.bottom+t.documentTop-u.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,s)}).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>function lJ(t,e,n){let i=!1,r=F5(t.selection,s=>{let a=x3(t,s.head,-1)||x3(t,s.head,1)||s.head>0&&x3(t,s.head-1,1)||s.head{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),i=xH(t.state,n.from);return i.line?IIe(t):!!i.block&&HIe(t)}},{key:"Alt-A",run:OIe}].concat(jOe),BOe={key:"Tab",run:IH,shift:TJ};function Ic(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?t.setAttribute(i,r):null!=r&&(t[i]=r)}e++}for(;eu.from==u.to||u.from==u.to-1&&i.doc.lineAt(u.from).to==u.from?Rr.widget({widget:new QOe(u),diagnostic:u}).range(u.from):Rr.mark({attributes:{class:"cm-lintRange cm-lintRange-"+u.severity+(u.markClass?" "+u.markClass:"")},diagnostic:u,inclusive:!0}).range(u.from,u.to)),!0);return new Hp(a,n,$5(a))}}function $5(t,e=null,n=0){let i=null;return t.between(n,1e9,(r,s,{spec:a})=>{if(!e||a.diagnostic==e)return i=new $Oe(r,s,a.diagnostic),!1}),i}function AJ(t,e){let n=t.startState.doc.lineAt(e.pos);return!(!t.effects.some(i=>i.is(YS))&&!t.changes.touchesRange(n.from,n.to))}function IJ(t,e){return t.field(v2,!1)?e:e.concat(Uo.appendConfig.of($J))}const YS=Uo.define(),OH=Uo.define(),OJ=Uo.define(),v2=e1.define({create:()=>new Hp(Rr.none,null,null),update(t,e){if(e.docChanged){let n=t.diagnostics.map(e.changes),i=null;if(t.selected){let r=e.changes.mapPos(t.selected.from,1);i=$5(n,t.selected.diagnostic,r)||$5(n,null,r)}t=new Hp(n,t.panel,i)}for(let n of e.effects)n.is(YS)?t=Hp.init(n.value,t.panel,e.state):n.is(OH)?t=new Hp(t.diagnostics,n.value?QS.open:null,t.selected):n.is(OJ)&&(t=new Hp(t.diagnostics,t.panel,n.value));return t},provide:t=>[$_.from(t,e=>e.panel),ps.decorations.from(t,e=>e.diagnostics)]}),GOe=Rr.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function WOe(t,e,n){let{diagnostics:i}=t.state.field(v2),r=[],s=2e8,a=0;i.between(e-(n<0?1:0),e+(n>0?1:0),(d,m,{spec:_})=>{e>=d&&e<=m&&(d==m||(e>d||n>0)&&(e({dom:HJ(t,r)})}:null}function HJ(t,e){return Ic("ul",{class:"cm-tooltip-lint"},e.map(n=>NJ(t,n,!1)))}const LJ=t=>{let e=t.state.field(v2,!1);return!(!e||!e.panel||(t.dispatch({effects:OH.of(!1)}),0))},KOe=[{key:"Mod-Shift-m",run:t=>{let e=t.state.field(v2,!1);(!e||!e.panel)&&t.dispatch({effects:IJ(t.state,[OH.of(!0)])});let n=B_(t,QS.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(v2,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return!(!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to)||(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),0))}}],zJ=Vc.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(Lp);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let t=Date.now();if(tPromise.resolve(i(this.view)))).then(i=>{let r=i.reduce((s,a)=>s.concat(a));this.view.state.doc==e.doc&&this.view.dispatch(function UOe(t,e){return{effects:IJ(t,[YS.of(e)])}}(this.view.state,r))},i=>{K2(this.view.state,i)})}}update(t){let e=t.state.facet(Lp);(t.docChanged||e!=t.startState.facet(Lp)||e.needsRefresh&&e.needsRefresh(t))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Lp=sr.define({combine:t=>Object.assign({sources:t.map(e=>e.source).filter(e=>null!=e)},Td(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,n)=>e?n?i=>e(i)||n(i):e:n}))});function RJ(t){let e=[];if(t)e:for(let{name:n}of t){for(let i=0;is.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function NJ(t,e,n){var i;let r=n?RJ(e.actions):[];return Ic("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Ic("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),null===(i=e.actions)||void 0===i?void 0:i.map((s,a)=>{let u=!1,d=x=>{if(x.preventDefault(),u)return;u=!0;let S=$5(t.state.field(v2).diagnostics,e);S&&s.apply(t,S.from,S.to)},{name:m}=s,_=r[a]?m.indexOf(r[a]):-1,y=_<0?m:[m.slice(0,_),Ic("u",m.slice(_,_+1)),m.slice(_+1)];return Ic("button",{type:"button",class:"cm-diagnosticAction",onclick:d,onmousedown:d,"aria-label":` Action: ${m}${_<0?"":` (access key "${r[a]})"`}.`},y)}),e.source&&Ic("div",{class:"cm-diagnosticSource"},e.source))}class QOe extends h3{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Ic("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class PJ{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=NJ(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class QS{constructor(e){this.view=e,this.items=[],this.list=Ic("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:r=>{if(27==r.keyCode)LJ(this.view),this.view.focus();else if(38==r.keyCode||33==r.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==r.keyCode||34==r.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==r.keyCode)this.moveSelection(0);else if(35==r.keyCode)this.moveSelection(this.items.length-1);else if(13==r.keyCode)this.view.focus();else{if(!(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:s}=this.items[this.selectedIndex],a=RJ(s.actions);for(let u=0;u{for(let s=0;sLJ(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(v2).selected;if(!e)return-1;for(let n=0;n{let _,m=-1;for(let y=i;yi&&(this.items.splice(i,m-i),r=!0)),n&&_.diagnostic==n.diagnostic?_.dom.hasAttribute("aria-selected")||(_.dom.setAttribute("aria-selected","true"),s=_):_.dom.hasAttribute("aria-selected")&&_.dom.removeAttribute("aria-selected"),i++});i({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:u})=>{let d=u.height/this.list.offsetHeight;a.topu.bottom&&(this.list.scrollTop+=(a.bottom-u.bottom)/d)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function n(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)n();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let i=$5(this.view.state.field(v2).diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:OJ.of(i)})}static open(e){return new QS(e)}}function JS(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function ZS(t){return JS(``,'width="6" height="3"')}const JOe=ps.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:ZS("#d11")},".cm-lintRange-warning":{backgroundImage:ZS("orange")},".cm-lintRange-info":{backgroundImage:ZS("#999")},".cm-lintRange-hint":{backgroundImage:ZS("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function jJ(t){return"error"==t?4:"warning"==t?3:"info"==t?2:1}class ZOe extends g3{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((n,i)=>jJ(n)function tHe(t,e,n){function i(){let a=t.elementAtHeight(e.getBoundingClientRect().top+5-t.documentTop);t.coordsAtPos(a.from)&&t.dispatch({effects:HH.of({pos:a.from,above:!1,create:()=>({dom:HJ(t,n),getCoords:()=>e.getBoundingClientRect()})})}),e.onmouseout=e.onmousemove=null,function eHe(t,e){let n=i=>{let r=e.getBoundingClientRect();if(!(i.clientX>r.left-10&&i.clientXr.top-10&&i.clientY{clearTimeout(s),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(s),s=setTimeout(i,r)}}(e,n,i)),n}}function nHe(t,e){let n=Object.create(null);for(let r of e){let s=t.lineAt(r.from);(n[s.from]||(n[s.from]=[])).push(r)}let i=[];for(let r in n)i.push(new ZOe(n[r]).range(+r));return Qc.of(i,!0)}const iHe=PY({class:"cm-gutter-lint",markers:t=>t.state.field(FJ)}),FJ=e1.define({create:()=>Qc.empty,update(t,e){t=t.map(e.changes);let n=e.state.facet(ek).markerFilter;for(let i of e.effects)if(i.is(YS)){let r=i.value;n&&(r=n(r||[],e.state)),t=nHe(e.state.doc,r.slice(0))}return t}}),HH=Uo.define(),BJ=e1.define({create:()=>null,update:(t,e)=>(t&&e.docChanged&&(t=AJ(e,t)?null:Object.assign(Object.assign({},t),{pos:e.changes.mapPos(t.pos)})),e.effects.reduce((n,i)=>i.is(HH)?i.value:n,t)),provide:t=>CS.from(t)}),rHe=ps.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:JS('')},".cm-lint-marker-warning":{content:JS('')},".cm-lint-marker-error":{content:JS('')}}),$J=[v2,ps.decorations.compute([v2],t=>{let{selected:e,panel:n}=t.field(v2);return e&&n&&e.from!=e.to?Rr.set([GOe.range(e.from,e.to)]):Rr.none}),ZVe(WOe,{hideOn:AJ}),JOe],ek=sr.define({combine:t=>Td(t,{hoverTime:300,markerFilter:null,tooltipFilter:null})});function sHe(t={}){return[ek.of(t),FJ,iHe,rHe,BJ]}class tk{constructor(e,n,i,r,s,a,u,d,m,_=0,y){this.p=e,this.stack=n,this.state=i,this.reducePos=r,this.pos=s,this.score=a,this.buffer=u,this.bufferBase=d,this.curContext=m,this.lookAhead=_,this.parent=y}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,i=0){let r=e.parser.context;return new tk(e,[],n,i,i,0,[],0,r?new UJ(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let i=e>>19,r=65535&e,{parser:s}=this.p,a=s.dynamicPrecedence(r);if(a&&(this.score+=a),0==i)return this.pushState(s.getGoto(this.state,r,!0),this.reducePos),r=2e3&&(null===(n=this.p.parser.nodeSet.types[r])||void 0===n||!n.isAnonymous)&&(d==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=m):this.p.lastBigReductionSizeu;)this.stack.pop();this.reduceContext(r,d)}storeNode(e,n,i,r=4,s=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==a.buffer[u-4]&&a.buffer[u-1]>-1){if(n==i)return;if(a.buffer[u-2]>=n)return void(a.buffer[u-2]=i)}}if(s&&this.pos!=i){let a=this.buffer.length;if(a>0&&0!=this.buffer[a-4])for(;a>0&&this.buffer[a-2]>i;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,r>4&&(r-=4);this.buffer[a]=e,this.buffer[a+1]=n,this.buffer[a+2]=i,this.buffer[a+3]=r}else this.buffer.push(e,n,i,r)}shift(e,n,i,r){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=r,this.shiftContext(n,i),n<=this.p.parser.maxNode&&this.buffer.push(n,i,r,4);else{let s=e,{parser:a}=this.p;(r>this.pos||n<=a.maxNode)&&(this.pos=r,a.stateFlag(s,1)||(this.reducePos=r)),this.pushState(s,i),this.shiftContext(n,i),n<=a.maxNode&&this.buffer.push(n,i,r,4)}}apply(e,n,i,r){65536&e?this.reduce(e):this.shift(e,n,i,r)}useNode(e,n){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(n,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let i=e.buffer.slice(n),r=e.bufferBase+n;for(;e&&r==e.bufferBase;)e=e.parent;return new tk(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,i?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new oHe(this);;){let i=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(0==i)return!1;if(!(65536&i))return!0;n.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let r=[];for(let a,s=0;s1&d&&u==a)||r.push(n[s],a)}n=r}let i=[];for(let r=0;r>19);if(s<0||e.getGoto(this.stack[s],65535&n,!1)<0){let a=this.findForcedReduction();if(null==a)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],i=(r,s)=>{if(!n.includes(r))return n.push(r),e.allActions(r,a=>{if(!(393216&a))if(65536&a){let u=(a>>19)-s;if(u>1){let d=65535&a,m=this.stack.length-3*u;if(m>=0&&e.getGoto(this.stack[m],d,!1)>=0)return u<<19|65536|d}}else{let u=i(a,s+1);if(null!=u)return u}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class UJ{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class oHe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=65535&e,i=e>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=r}}class nk{constructor(e,n,i){this.stack=e,this.pos=n,this.index=i,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new nk(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new nk(this.stack,this.pos,this.index)}}function ib(t,e=Uint16Array){if("string"!=typeof t)return t;let n=null;for(let i=0,r=0;i=92&&a--,a>=34&&a--;let d=a-32;if(d>=46&&(d-=46,u=!0),s+=d,u)break;s*=46}n?n[r++]=s:n=new e(s)}return n}class ik{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const GJ=new ik;class aHe{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=GJ,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let i=this.range,r=this.rangeIndex,s=this.pos+e;for(;si.to:s>=i.to;){if(r==this.ranges.length-1)return null;let a=this.ranges[++r];s+=a.from-i.to,i=a}return s}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,n.from);return this.end}peek(e){let i,r,n=this.chunkOff+e;if(n>=0&&n=this.chunk2Pos&&iu.to&&(this.chunk2=this.chunk2.slice(0,u.to-i)),r=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),r}acceptToken(e,n=0){let i=n?this.resolveOffset(n,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.next=this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?-1:this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=GJ,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let i="";for(let r of this.ranges){if(r.from>=n)break;r.to>e&&(i+=this.input.read(Math.max(r.from,e),Math.min(r.to,n)))}return i}}class U5{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:i}=n.p;!function WJ(t,e,n,i,r,s){let a=0,u=1<0){let D=t[S];if(d.allows(D)&&(-1==e.token.value||e.token.value==D||lHe(D,e.token.value,r,s))){e.acceptToken(D);break}}let _=e.next,y=0,x=t[a+2];if(!(e.next<0&&x>y&&65535==t[m+3*x-3])){for(;y>1,D=m+S+(S<<1);if(_=(t[D+1]||65536))){a=t[D+2],e.advance();continue e}y=S+1}}break}a=t[m+3*x-1]}}(this.data,e,n,this.id,i.data,i.tokenPrecTable)}}function qJ(t,e,n){for(let r,i=e;65535!=(r=t[i]);i++)if(r==n)return i-e;return-1}function lHe(t,e,n,i){let r=qJ(n,i,e);return r<0||qJ(n,i,t)e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}class uHe{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?XJ(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?XJ(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(s instanceof Ga){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+s.length}}}class dHe{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new ik)}getActions(e){let n=0,i=null,{parser:r}=e.p,{tokenizers:s}=r,a=r.stateSlot(e.state,3),u=e.curContext?e.curContext.hash:0,d=0;for(let m=0;my.end+25&&(d=Math.max(y.lookAhead,d)),0!=y.value)){let x=n;if(y.extended>-1&&(n=this.addActions(e,y.extended,y.end,n)),n=this.addActions(e,y.value,y.end,n),!_.extend&&(i=y,n>x))break}}for(;this.actions.length>n;)this.actions.pop();return d&&e.setLookAhead(d),!i&&e.pos==this.stream.end&&(i=new ik,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,n=this.addActions(e,i.value,i.end,n)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new ik,{pos:i,p:r}=e;return n.start=i,n.end=Math.min(i+1,r.stream.end),n.value=i==r.stream.end?r.parser.eofTerm:0,n}updateCachedToken(e,n,i){let r=this.stream.clipPos(i.pos);if(n.token(this.stream.reset(r,e),i),e.value>-1){let{parser:s}=i.p;for(let a=0;a=0&&i.p.parser.dialect.allows(u>>1)){1&u?e.extended=u>>1:e.value=u>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,n,i,r){for(let s=0;s4*e.bufferLength?new uHe(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let r,s,e=this.stacks,n=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==e.length){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)i.push(u);else{if(this.advanceStack(u,i,e))continue;{r||(r=[],s=[]),r.push(u);let d=this.tokens.getMainToken(u);s.push(d.value,d.end)}}break}}if(!i.length){let a=r&&function pHe(t){let e=null;for(let n of t){let i=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=i&&n.pos>i)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scorethis.stoppedAt?r[0]:this.runRecovery(r,s,i);if(a)return Yu&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=1==this.recovering?1:3*this.recovering;if(i.length>a)for(i.sort((u,d)=>d.score-u.score);i.length>a;)i.pop();i.some(u=>u.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let a=0;a500&&m.buffer.length>500){if(!((u.score-m.score||u.buffer.length-m.buffer.length)>0)){i.splice(a--,1);continue e}i.splice(d--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let a=1;a ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let m=e.curContext&&e.curContext.tracker.strict,_=m?e.curContext.hash:0;for(let y=this.fragments.nodeAt(r);y;){let x=this.parser.nodeSet.types[y.type.id]==y.type?s.getGoto(e.state,y.type.id):-1;if(x>-1&&y.length&&(!m||(y.prop(ro.contextHash)||0)==_))return e.useNode(y,x),Yu&&console.log(a+this.stackID(e)+` (via reuse of ${s.getName(y.type.id)})`),!0;if(!(y instanceof Ga)||0==y.children.length||y.positions[0]>0)break;let S=y.children[0];if(!(S instanceof Ga&&0==y.positions[0]))break;y=S}}let u=s.stateSlot(e.state,4);if(u>0)return e.reduce(u),Yu&&console.log(a+this.stackID(e)+` (via always-reduce ${s.getName(65535&u)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let d=this.tokens.getActions(e);for(let m=0;mr?n.push(D):i.push(D)}return!1}advanceFully(e,n){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return KJ(e,n),!0}}runRecovery(e,n,i){let r=null,s=!1;for(let a=0;a ":"";if(u.deadEnd&&(s||(s=!0,u.restart(),Yu&&console.log(_+this.stackID(u)+" (restarted)"),this.advanceFully(u,i))))continue;let y=u.split(),x=_;for(let S=0;y.forceReduce()&&S<10&&(Yu&&console.log(x+this.stackID(y)+" (via force-reduce)"),!this.advanceFully(y,i));S++)Yu&&(x=this.stackID(y)+" -> ");for(let S of u.recoverByInsert(d))Yu&&console.log(_+this.stackID(S)+" (via recover-insert)"),this.advanceFully(S,i);this.stream.end>u.pos?(m==u.pos&&(m++,d=0),u.recoverByDelete(d,m),Yu&&console.log(_+this.stackID(u)+` (via recover-delete ${this.parser.getName(d)})`),KJ(u,i)):(!r||r.scoree.topRules[u][1]),r=[];for(let u=0;u=0)s(_,d,u[m++]);else{let y=u[m+-_];for(let x=-_;x>0;x--)s(u[m++],d,y);m++}}}this.nodeSet=new kS(n.map((u,d)=>p2.define({name:d>=this.minRepeatTerm?void 0:u,id:d,props:r[d],top:i.indexOf(d)>-1,error:0==d,skipped:e.skippedNodes&&e.skippedNodes.indexOf(d)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=qY;let a=ib(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let u=0;u"number"==typeof u?new U5(a,u):u),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,i){let r=new fHe(this,e,n,i);for(let s of this.wrappers)r=s(r,e,n,i);return r}getGoto(e,n,i=!1){let r=this.goto;if(n>=r[0])return-1;for(let s=r[n+1];;){let a=r[s++],u=1&a,d=r[s++];if(u&&i)return d;for(let m=s+(a>>1);s0}validAction(e,n){return!!this.allActions(e,i=>i==n||null)}allActions(e,n){let i=this.stateSlot(e,4),r=i?n(i):void 0;for(let s=this.stateSlot(e,1);null==r;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=w0(this.data,s+2)}r=n(w0(this.data,s+1))}return r}nextStates(e){let n=[];for(let i=this.stateSlot(e,1);;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=w0(this.data,i+2)}if(!(1&this.data[i+2])){let r=this.data[i+1];n.some((s,a)=>1&a&&s==r)||n.push(this.data[i],r)}}return n}configure(e){let n=Object.assign(Object.create(rk.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=i}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(i=>{let r=e.tokenizers.find(s=>s.from==i);return r?r.to:i})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((i,r)=>{let s=e.specializers.find(u=>u.from==i.external);if(!s)return i;let a=Object.assign(Object.assign({},i),{external:s.to});return n.specializers[r]=YJ(a),a})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),null!=e.bufferLength&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return null==n?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),i=n.map(()=>!1);if(e)for(let s of e.split(" ")){let a=n.indexOf(s);a>=0&&(i[a]=!0)}let r=null;for(let s=0;st.external(n,i)<<1|e}return t.get}const mHe=oQ({String:Pi.string,Number:Pi.number,"True False":Pi.bool,PropertyName:Pi.propertyName,Null:Pi.null,",":Pi.separator,"[ ]":Pi.squareBracket,"{ }":Pi.brace}),gHe=rk.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26a0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[mHe],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),_He=LS.define({name:"json",parser:gHe.configure({props:[bQ.add({Object:xQ({except:/^\s*\}/}),Array:xQ({except:/^\s*\]/})}),wQ.add({"Object Array":function qAe(t){let e=t.firstChild,n=t.lastChild;return e&&e.tot.normalize("NFKD"):t=>t;class G5{constructor(e,n,i=0,r=e.length,s,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,r),this.bufferStart=i,this.normalize=s?u=>s(QJ(u)):QJ,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return G1(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=YI(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Dd(e);let r=this.normalize(n);for(let s=0,a=i;;s++){let u=r.charCodeAt(s),d=this.match(u,a,this.bufferPos+this.bufferStart);if(s==r.length-1){if(d)return this.value=d,this;break}a==i&&sthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,r=i+n[0].length;if(this.matchPos=sk(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||r.to<=n){let u=new W5(n,e.sliceString(n,i));return NH.set(e,u),u}if(r.from==n&&r.to==i)return r;let{text:s,from:a}=r;return a>n&&(s=e.sliceString(n,a)+s,a=n),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,r=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this.matchPos=sk(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=W5.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function sk(t,e){if(e>=t.length)return e;let i,n=t.lineAt(e);for(;e=56320&&i<57344;)e++;return e}function PH(t){let n=Ic("input",{class:"cm-textfield",name:"line",value:String(t.state.doc.lineAt(t.state.selection.main.head).number)});function r(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!s)return;let{state:a}=t,u=a.doc.lineAt(a.selection.main.head),[,d,m,_,y]=s,x=_?+_.slice(1):0,S=m?+m:u.number;if(m&&y){let $=S/100;d&&($=$*("-"==d?-1:1)+u.number/a.doc.lines),S=Math.round(a.doc.lines*$)}else m&&d&&(S=S*("-"==d?-1:1)+u.number);let D=a.doc.line(Math.max(1,Math.min(a.doc.lines,S))),z=mi.cursor(D.from+Math.max(0,Math.min(x,D.length)));t.dispatch({effects:[ok.of(!1),ps.scrollIntoView(z.from,{y:"center"})],selection:z}),t.focus()}return{dom:Ic("form",{class:"cm-gotoLine",onkeydown:s=>{27==s.keyCode?(s.preventDefault(),t.dispatch({effects:ok.of(!1)}),t.focus()):13==s.keyCode&&(s.preventDefault(),r())},onsubmit:s=>{s.preventDefault(),r()}},Ic("label",t.state.phrase("Go to line"),": ",n)," ",Ic("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}typeof Symbol<"u"&&(ZJ.prototype[Symbol.iterator]=eZ.prototype[Symbol.iterator]=function(){return this});const ok=Uo.define(),tZ=e1.define({create:()=>!0,update(t,e){for(let n of e.effects)n.is(ok)&&(t=n.value);return t},provide:t=>$_.from(t,e=>e?PH:null)}),xHe=ps.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),wHe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},nZ=sr.define({combine:t=>Td(t,wHe,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})});function MHe(t){let e=[THe,DHe];return t&&e.push(nZ.of(t)),e}const SHe=Rr.mark({class:"cm-selectionMatch"}),kHe=Rr.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function iZ(t,e,n,i){return!(0!=n&&t(e.sliceDoc(n-1,n))==Yc.Word||i!=e.doc.length&&t(e.sliceDoc(i,i+1))==Yc.Word)}const DHe=Vc.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(nZ),{state:n}=t,i=n.selection;if(i.ranges.length>1)return Rr.none;let s,r=i.main,a=null;if(r.empty){if(!e.highlightWordAroundCursor)return Rr.none;let d=n.wordAt(r.head);if(!d)return Rr.none;a=n.charCategorizer(r.head),s=n.sliceDoc(d.from,d.to)}else{let d=r.to-r.from;if(d200)return Rr.none;if(e.wholeWords){if(s=n.sliceDoc(r.from,r.to),a=n.charCategorizer(r.head),!iZ(a,n,r.from,r.to)||!function EHe(t,e,n,i){return t(e.sliceDoc(n,n+1))==Yc.Word&&t(e.sliceDoc(i-1,i))==Yc.Word}(a,n,r.from,r.to))return Rr.none}else if(s=n.sliceDoc(r.from,r.to),!s)return Rr.none}let u=[];for(let d of t.visibleRanges){let m=new G5(n.doc,s,d.from,d.to);for(;!m.next().done;){let{from:_,to:y}=m.value;if((!a||iZ(a,n,_,y))&&(r.empty&&_<=r.from&&y>=r.to?u.push(kHe.range(_,y)):(_>=r.to||y<=r.from)&&u.push(SHe.range(_,y)),u.length>e.maxMatches))return Rr.none}}return Rr.set(u)}},{decorations:t=>t.decorations}),THe=ps.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),zp=sr.define({combine:t=>Td(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new GHe(e),scrollToMatch:e=>ps.scrollIntoView(e)})});function OHe(t){return t?[zp.of(t),WH]:WH}class rZ{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function yHe(t){try{return new RegExp(t,RH),!0}catch{return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>"n"==i?"\n":"r"==i?"\r":"t"==i?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new RHe(this):new LHe(this)}getCursor(e,n=0,i){let r=e.doc?e:W1.create({doc:e});return null==i&&(i=r.doc.length),this.regexp?X5(this,r,n,i):q5(this,r,n,i)}}class sZ{constructor(e){this.spec=e}}function q5(t,e,n,i){return new G5(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:r=>r.toLowerCase(),t.wholeWord?function HHe(t,e){return(n,i,r,s)=>((s>n||s+r.length=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=q5(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function X5(t,e,n,i){return new ZJ(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?zHe(e.charCategorizer(e.selection.main.head)):void 0},n,i)}function ak(t,e){return t.slice(U1(t,e,!1),e)}function ck(t,e){return t.slice(e,U1(t,e))}function zHe(t){return(e,n,i)=>!i[0].length||(t(ak(i.input,i.index))!=Yc.Word||t(ck(i.input,i.index))!=Yc.Word)&&(t(ck(i.input,i.index+i[0].length))!=Yc.Word||t(ak(i.input,i.index+i[0].length))!=Yc.Word)}class RHe extends sZ{nextMatch(e,n,i){let r=X5(this.spec,e,i,e.doc.length).next();return r.done&&(r=X5(this.spec,e,0,n).next()),r.done?null:r.value}prevMatchInRange(e,n,i){for(let r=1;;r++){let s=Math.max(n,i-1e4*r),a=X5(this.spec,e,s,i),u=null;for(;!a.next().done;)u=a.value;if(u&&(s==n||u.from>s+10))return u;if(s==n)return null}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,i)=>"$"==i?"$":"&"==i?e.match[0]:"0"!=i&&+i=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=X5(this.spec,e,Math.max(0,n-250),Math.min(i+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const rb=Uo.define(),jH=Uo.define(),M3=e1.define({create:t=>new FH(dk(t).create(),null),update(t,e){for(let n of e.effects)n.is(rb)?t=new FH(n.value.create(),t.panel):n.is(jH)&&(t=new FH(t.query,n.value?BH:null));return t},provide:t=>$_.from(t,e=>e.panel)});class FH{constructor(e,n){this.query=e,this.panel=n}}const NHe=Rr.mark({class:"cm-searchMatch"}),PHe=Rr.mark({class:"cm-searchMatch cm-searchMatch-selected"}),jHe=Vc.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(M3))}update(t){let e=t.state.field(M3);(e!=t.startState.field(M3)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Rr.none;let{view:n}=this,i=new g4;for(let r=0,s=n.visibleRanges,a=s.length;rs[r+1].from-500;)d=s[++r].to;t.highlight(n.state,u,d,(m,_)=>{let y=n.state.selection.ranges.some(x=>x.from==m&&x.to==_);i.add(m,_,y?PHe:NHe)})}return i.finish()}},{decorations:t=>t.decorations});function sb(t){return e=>{let n=e.state.field(M3,!1);return n&&n.query.spec.valid?t(e,n):$H(e)}}const lk=sb((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);if(!i)return!1;let r=mi.single(i.from,i.to),s=t.state.facet(zp);return t.dispatch({selection:r,effects:[GH(t,i),s.scrollToMatch(r.main,t)],userEvent:"select.search"}),cZ(t),!0}),uk=sb((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,r=e.prevMatch(n,i,i);if(!r)return!1;let s=mi.single(r.from,r.to),a=t.state.facet(zp);return t.dispatch({selection:s,effects:[GH(t,r),a.scrollToMatch(s.main,t)],userEvent:"select.search"}),cZ(t),!0}),FHe=sb((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!(!n||!n.length||(t.dispatch({selection:mi.create(n.map(i=>mi.range(i.from,i.to))),userEvent:"select.search.matches"}),0))}),oZ=sb((t,{query:e})=>{let{state:n}=t,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=e.nextMatch(n,i,i);if(!s)return!1;let u,d,a=[],m=[];if(s.from==i&&s.to==r&&(d=n.toText(e.getReplacement(s)),a.push({from:s.from,to:s.to,insert:d}),s=e.nextMatch(n,s.from,s.to),m.push(ps.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),s){let _=0==a.length||a[0].from>=s.to?0:s.to-s.from-d.length;u=mi.single(s.from-_,s.to-_),m.push(GH(t,s)),m.push(n.facet(zp).scrollToMatch(u.main,t))}return t.dispatch({changes:a,selection:u,effects:m,userEvent:"input.replace"}),!0}),$He=sb((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(r=>{let{from:s,to:a}=r;return{from:s,to:a,insert:e.getReplacement(r)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:ps.announce.of(i),userEvent:"input.replace.all"}),!0});function BH(t){return t.state.facet(zp).createPanel(t)}function dk(t,e){var n,i,r,s,a;let u=t.selection.main,d=u.empty||u.to>u.from+100?"":t.sliceDoc(u.from,u.to);if(e&&!d)return e;let m=t.facet(zp);return new rZ({search:(null!==(n=e?.literal)&&void 0!==n?n:m.literal)?d:d.replace(/\n/g,"\\n"),caseSensitive:null!==(i=e?.caseSensitive)&&void 0!==i?i:m.caseSensitive,literal:null!==(r=e?.literal)&&void 0!==r?r:m.literal,regexp:null!==(s=e?.regexp)&&void 0!==s?s:m.regexp,wholeWord:null!==(a=e?.wholeWord)&&void 0!==a?a:m.wholeWord})}function aZ(t){let e=B_(t,BH);return e&&e.dom.querySelector("[main-field]")}function cZ(t){let e=aZ(t);e&&e==t.root.activeElement&&e.select()}const $H=t=>{let e=t.state.field(M3,!1);if(e&&e.panel){let n=aZ(t);if(n&&n!=t.root.activeElement){let i=dk(t.state,e.query.spec);i.valid&&t.dispatch({effects:rb.of(i)}),n.focus(),n.select()}}else t.dispatch({effects:[jH.of(!0),e?rb.of(dk(t.state,e.query.spec)):Uo.appendConfig.of(WH)]});return!0},UH=t=>{let e=t.state.field(M3,!1);if(!e||!e.panel)return!1;let n=B_(t,BH);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:jH.of(!1)}),!0},UHe=[{key:"Mod-f",run:$H,scope:"editor search-panel"},{key:"F3",run:lk,shift:uk,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:lk,shift:uk,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:UH,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],a=0;for(let u=new G5(t.doc,t.sliceDoc(i,r));!u.next().done;){if(s.length>1e3)return!1;u.value.from==i&&(a=s.length),s.push(mi.range(u.value.from,u.value.to))}return e(t.update({selection:mi.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:t=>{let e=B_(t,PH);if(!e){let n=[ok.of(!0)];null==t.state.field(tZ,!1)&&n.push(Uo.appendConfig.of([tZ,xHe])),t.dispatch({effects:n}),e=B_(t,PH)}return e&&e.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(s=>s.from===s.to))return(({state:t,dispatch:e})=>{let{selection:n}=t,i=mi.create(n.ranges.map(r=>t.wordAt(r.head)||mi.cursor(r.head)),n.mainIndex);return!i.eq(n)&&(e(t.update({selection:i})),!0)})({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=i))return!1;let r=function AHe(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let a=!1,u=new G5(t.doc,e,i[i.length-1].to);;){if(u.next(),!u.done){if(a&&i.some(d=>d.from==u.value.from))continue;if(s){let d=t.wordAt(u.value.from);if(!d||d.from!=u.value.from||d.to!=u.value.to)continue}return u.value}if(a)return null;u=new G5(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),a=!0}}(t,i);return!!r&&(e(t.update({selection:t.selection.addRange(mi.range(r.from,r.to),!1),effects:ps.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class GHe{constructor(e){this.view=e;let n=this.query=e.state.field(M3).query.spec;function i(r,s,a){return Ic("button",{class:"cm-button",name:r,onclick:s,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Ic("input",{value:n.search,placeholder:Qu(e,"Find"),"aria-label":Qu(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ic("input",{value:n.replace,placeholder:Qu(e,"Replace"),"aria-label":Qu(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ic("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Ic("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Ic("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit}),this.dom=Ic("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,i("next",()=>lk(e),[Qu(e,"next")]),i("prev",()=>uk(e),[Qu(e,"previous")]),i("select",()=>FHe(e),[Qu(e,"all")]),Ic("label",null,[this.caseField,Qu(e,"match case")]),Ic("label",null,[this.reField,Qu(e,"regexp")]),Ic("label",null,[this.wordField,Qu(e,"by word")]),...e.state.readOnly?[]:[Ic("br"),this.replaceField,i("replace",()=>oZ(e),[Qu(e,"replace")]),i("replaceAll",()=>$He(e),[Qu(e,"replace all")])],Ic("button",{name:"close",onclick:()=>UH(e),"aria-label":Qu(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new rZ({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:rb.of(e)}))}keydown(e){!function hVe(t,e,n){return xY(CY(t.state),e,t,n)}(this.view,e,"search-panel")?13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?uk:lk)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),oZ(this.view)):e.preventDefault()}update(e){for(let n of e.transactions)for(let i of n.effects)i.is(rb)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(zp).top}}function Qu(t,e){return t.state.phrase(e)}const fk=30,hk=/[\s\.,:;?!]/;function GH(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),r=t.state.doc.lineAt(n).to,s=Math.max(i.from,e-fk),a=Math.min(r,n+fk),u=t.state.sliceDoc(s,a);if(s!=i.from)for(let d=0;du.length-fk;d--)if(!hk.test(u[d-1])&&hk.test(u[d])){u=u.slice(0,d);break}return ps.announce.of(`${t.state.phrase("current match")}. ${u} ${t.state.phrase("on line")} ${i.number}.`)}const WHe=ps.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),WH=[M3,v0.low(jHe),WHe];class lZ{constructor(e,n,i){this.state=e,this.pos=n,this.explicit=i,this.abortListeners=[]}tokenBefore(e){let n=t1(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),i=Math.max(n.from,this.pos-250),r=n.text.slice(i-n.from,this.pos-n.from),s=r.search(fZ(e,!1));return s<0?null:{from:i+s,to:this.pos,text:r.slice(s)}}get aborted(){return null==this.abortListeners}addEventListener(e,n){"abort"==e&&this.abortListeners&&this.abortListeners.push(n)}}function uZ(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}class dZ{constructor(e,n,i,r){this.completion=e,this.source=n,this.match=i,this.score=r}}function Hh(t){return t.selection.main.from}function fZ(t,e){var n;let{source:i}=t,r=e&&"^"!=i[0],s="$"!=i[i.length-1];return r||s?new RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}const qH=b0.define(),hZ=new WeakMap;function YHe(t){if(!Array.isArray(t))return t;let e=hZ.get(t);return e||hZ.set(t,e=function XHe(t){let e=t.map(r=>"string"==typeof r?{label:r}:r),[n,i]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:function qHe(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let s=1;s{let s=r.matchBefore(i);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:n}:null}}(t)),e}const pk=Uo.define(),ob=Uo.define();class QHe{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&ye<=57||ye>=97&&ye<=122?2:ye>=65&&ye<=90?1:0:(Ye=YI(ye))!=Ye.toLowerCase()?1:Ye!=Ye.toUpperCase()?2:0;(!re||1==lt&&$||0==ke&&0!=lt)&&(n[y]==ye||i[y]==ye&&(x=!0)?a[y++]=re:a.length&&(W=!1)),ke=lt,re+=Dd(ye)}return y==d&&0==a[0]&&W?this.result((x?-200:0)-100,a,e):S==d&&0==D?this.ret(-200-e.length+(z==e.length?0:-100),[0,z]):u>-1?this.ret(-700-e.length,[u,u+this.pattern.length]):S==d?this.ret(-900-e.length,[D,z]):y==d?this.result((x?-200:0)-100-700+(W?0:-1100),a,e):2==n.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,n,i){let r=[],s=0;for(let a of n){let u=a+(this.astral?Dd(G1(i,a)):1);s&&r[s-1]==a?r[s-1]=u:(r[s++]=a,r[s++]=u)}return this.ret(e-i.length,r)}}class JHe{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.lengthTd(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ZHe,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>i=>pZ(e(i),n(i)),optionClass:(e,n)=>i=>pZ(e(i),n(i)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})});function pZ(t,e){return t?e?t+" "+e:t:e}function ZHe(t,e,n,i,r,s){let _,y,a=t.textDirection==bc.RTL,u=a,d=!1,m="top",x=e.left-r.left,S=r.right-e.right,D=i.right-i.left,z=i.bottom-i.top;if(u&&x=z||re>e.top?_=n.bottom-e.top:(m="bottom",_=e.bottom-n.top)}return{style:`${m}: ${_/((e.bottom-e.top)/s.offsetHeight)}px; max-width: ${y/((e.right-e.left)/s.offsetWidth)}px`,class:"cm-completionInfo-"+(d?a?"left-narrow":"right-narrow":u?"left":"right")}}function XH(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let r=Math.floor(e/n);return{from:r*n,to:(r+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class tLe{constructor(e,n,i){this.view=e,this.stateField=n,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:d=>this.placeInfo(d),key:this},this.space=null,this.currentClass="";let r=e.state.field(n),{options:s,selected:a}=r.open,u=e.state.facet(K1);this.optionContent=function eLe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),n.type&&i.classList.add(...n.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(n,i,r,s){let a=document.createElement("span");a.className="cm-completionLabel";let u=n.displayLabel||n.label,d=0;for(let m=0;md&&a.appendChild(document.createTextNode(u.slice(d,_)));let x=a.appendChild(document.createElement("span"));x.appendChild(document.createTextNode(u.slice(_,y))),x.className="cm-completionMatchedText",d=y}return dn.position-i.position).map(n=>n.render)}(u),this.optionClass=u.optionClass,this.tooltipClass=u.tooltipClass,this.range=XH(s.length,a,u.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",d=>{let{options:m}=e.state.field(n).open;for(let y,_=d.target;_&&_!=this.dom;_=_.parentNode)if("LI"==_.nodeName&&(y=/-(\d+)$/.exec(_.id))&&+y[1]{let m=e.state.field(this.stateField,!1);m&&m.tooltip&&e.state.facet(K1).closeOnBlur&&d.relatedTarget!=e.contentDOM&&e.dispatch({effects:ob.of(null)})}),this.showOptions(s,r.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let i=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=r){let{options:s,selected:a,disabled:u}=i.open;(!r.open||r.open.options!=s)&&(this.range=XH(s.length,a,e.state.facet(K1).maxRenderedOptions),this.showOptions(s,i.id)),this.updateSel(),u!=(null===(n=r.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!u)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of n.split(" "))i&&this.dom.classList.add(i);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=XH(n.options.length,n.selected,this.view.state.facet(K1).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:i}=n.options[n.selected],{info:r}=i;if(!r)return;let s="string"==typeof r?document.createTextNode(r):r(i);if(!s)return;"then"in s?s.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,i)}).catch(a=>K2(this.view.state,a,"completion info")):this.addInfoPane(s,i)}}addInfoPane(e,n){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",null!=e.nodeType)i.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:s}=e;i.appendChild(r),this.infoDestroy=s||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)"LI"==i.nodeName&&i.id?r==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),n=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected"):r--;return n&&function iLe(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=n.height/t.offsetHeight;i.topn.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/r)}(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.space;if(!s){let a=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return r.top>Math.min(s.bottom,n.bottom)-10||r.bottomi.from||0==i.from)&&(s=x,"string"!=typeof m&&m.header?r.appendChild(m.header(m)):r.appendChild(document.createElement("completion-section")).textContent=x)}const _=r.appendChild(document.createElement("li"));_.id=n+"-"+a,_.setAttribute("role","option");let y=this.optionClass(u);y&&(_.className=y);for(let x of this.optionContent){let S=x(u,this.view.state,this.view,d);S&&_.appendChild(S)}}return i.from&&r.classList.add("cm-completionListIncompleteTop"),i.tonew tLe(n,t,e)}function mZ(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class K5{constructor(e,n,i,r,s,a){this.options=e,this.attrs=n,this.tooltip=i,this.timestamp=r,this.selected=s,this.disabled=a}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new K5(this.options,gZ(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,i,r,s){let a=function rLe(t,e){let n=[],i=null,r=m=>{n.push(m);let{section:_}=m.completion;if(_){i||(i=[]);let y="string"==typeof _?_:_.name;i.some(x=>x.name==y)||i.push("string"==typeof _?{name:y}:_)}},s=e.facet(K1);for(let m of t)if(m.hasResult()){let _=m.result.getMatch;if(!1===m.result.filter)for(let y of m.result.options)r(new dZ(y,m.source,_?_(y):[],1e9-n.length));else{let x,y=e.sliceDoc(m.from,m.to),S=s.filterStrict?new JHe(y):new QHe(y);for(let D of m.result.options)if(x=S.match(D.label)){let z=D.displayLabel?_?_(D,x.matched):[]:x.matched;r(new dZ(D,m.source,z,x.score+(D.boost||0)))}}}if(i){let m=Object.create(null),_=0,y=(x,S)=>{var D,z;return(null!==(D=x.rank)&&void 0!==D?D:1e9)-(null!==(z=S.rank)&&void 0!==z?z:1e9)||(x.namey.score-_.score||d(_.completion,y.completion))){let _=m.completion;!u||u.label!=_.label||u.detail!=_.detail||null!=u.type&&null!=_.type&&u.type!=_.type||u.apply!=_.apply||u.boost!=_.boost?a.push(m):mZ(m.completion)>mZ(u)&&(a[a.length-1]=m),u=m.completion}return a}(e,n);if(!a.length)return r&&e.some(d=>1==d.state)?new K5(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let u=n.facet(K1).selectOnOpen?0:-1;if(r&&r.selected!=u&&-1!=r.selected){let d=r.options[r.selected].completion;for(let m=0;mm.hasResult()?Math.min(d,m.from):d,1e8),create:lLe,above:s.aboveCursor},r?r.timestamp:Date.now(),u,!1)}map(e){return new K5(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class mk{constructor(e,n,i){this.active=e,this.id=n,this.open=i}static start(){return new mk(aLe,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:n}=e,i=n.facet(K1),s=(i.override||n.languageDataAt("autocomplete",Hh(n)).map(YHe)).map(u=>(this.active.find(m=>m.source==u)||new Y2(u,this.active.some(m=>0!=m.state)?1:0)).update(e,i));s.length==this.active.length&&s.every((u,d)=>u==this.active[d])&&(s=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||s.some(u=>u.hasResult()&&e.changes.touchesRange(u.from,u.to))||!function sLe(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n1==u.state)&&(a=null),!a&&s.every(u=>1!=u.state)&&s.some(u=>u.hasResult())&&(s=s.map(u=>u.hasResult()?new Y2(u.source,0):u));for(let u of e.effects)u.is(YH)&&(a=a&&a.setSelected(u.value,this.id));return s==this.active&&a==this.open?this:new mk(s,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:oLe}}const oLe={"aria-autocomplete":"list"};function gZ(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const aLe=[];function KH(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(qH);if(n&&e.activateOnCompletion(n))return"input"}return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class Y2{constructor(e,n,i=-1){this.source=e,this.state=n,this.explicitPos=i}hasResult(){return!1}update(e,n){let i=KH(e,n),r=this;i?r=r.handleUserEvent(e,i,n):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new Y2(r.source,0));for(let s of e.effects)if(s.is(pk))r=new Y2(r.source,1,s.value?Hh(e.state):-1);else if(s.is(ob))r=new Y2(r.source,0);else if(s.is(vZ))for(let a of s.value)a.source==r.source&&(r=a);return r}handleUserEvent(e,n,i){return"delete"!=n&&i.activateOnTyping?new Y2(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(Hh(e.startState))?new Y2(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Y2(this.source,this.state,e.mapPos(this.explicitPos))}}class Y5 extends Y2{constructor(e,n,i,r,s){super(e,2,n),this.result=i,this.from=r,this.to=s}hasResult(){return!0}handleUserEvent(e,n,i){var r;let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let a=e.changes.mapPos(this.from),u=e.changes.mapPos(this.to,1),d=Hh(e.state);if((this.explicitPos<0?d<=a:du||!s||"delete"==n&&Hh(e.startState)==this.from)return new Y2(this.source,"input"==n&&i.activateOnTyping?1:0);let m=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function cLe(t,e,n,i){if(!t)return!1;let r=e.sliceDoc(n,i);return"function"==typeof t?t(r,n,i,e):fZ(t,!0).test(r)}(s.validFor,e.state,a,u)?new Y5(this.source,m,s,a,u):s.update&&(s=s.update(s,a,u,new lZ(e.state,d,m>=0)))?new Y5(this.source,m,s,s.from,null!==(r=s.to)&&void 0!==r?r:Hh(e.state)):new Y2(this.source,1,m)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Y2(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Y5(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Y2(this.source,0)}}const vZ=Uo.define({map:(t,e)=>t.map(n=>n.map(e))}),YH=Uo.define(),D1=e1.define({create:()=>mk.start(),update:(t,e)=>t.update(e),provide:t=>[CS.from(t,e=>e.tooltip),ps.contentAttributes.from(t,e=>e.attrs)]});function QH(t,e){const n=e.completion.apply||e.completion.label;let i=t.state.field(D1).active.find(r=>r.source==e.source);return i instanceof Y5&&("string"==typeof n?t.dispatch(Object.assign(Object.assign({},function KHe(t,e,n,i){let{main:r}=t.selection,s=n-r.from,a=i-r.from;return Object.assign(Object.assign({},t.changeByRange(u=>u!=r&&n!=i&&t.sliceDoc(u.from+s,u.from+a)!=t.sliceDoc(n,i)?{range:u}:{changes:{from:u.from+s,to:i==r.from?u.to:u.from+a,insert:e},range:mi.cursor(u.from+s+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(t.state,n,i.from,i.to)),{annotations:qH.of(e.completion)})):n(t,e.completion,i.from,i.to),!0)}const lLe=nLe(D1,QH);function gk(t,e="option"){return n=>{let i=n.state.field(D1,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+r*(t?1:-1):t?0:a-1;return u<0?u="page"==e?0:a-1:u>=a&&(u="page"==e?a-1:0),n.dispatch({effects:YH.of(u)}),!0}}class hLe{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const gLe=Vc.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(D1).active)1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(D1),n=t.state.facet(K1);if(!t.selectionSet&&!t.docChanged&&t.startState.field(D1)==e)return;let i=t.transactions.some(s=>(s.selection||s.docChanged)&&!KH(s,n));for(let s=0;s50&&Date.now()-a.time>1e3){for(let u of a.context.abortListeners)try{u()}catch(d){K2(this.view.state,d)}a.context.abortListeners=null,this.running.splice(s--,1)}else a.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(s=>s.effects.some(a=>a.is(pk)))&&(this.pendingStart=!0);let r=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>1==s.state&&!this.running.some(a=>a.active.source==s.source))?setTimeout(()=>this.startUpdate(),r):-1,0!=this.composing)for(let s of t.transactions)"input"==KH(s,n)?this.composing=2:2==this.composing&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(D1);for(let n of e.active)1==n.state&&!this.running.some(i=>i.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=Hh(e),i=new lZ(e,n,t.explicitPos==n),r=new hLe(t,i);this.running.push(r),Promise.resolve(t.source(i)).then(s=>{r.context.aborted||(r.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:ob.of(null)}),K2(this.view.state,s)})}scheduleAccept(){this.running.every(t=>void 0!==t.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(K1).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(K1);for(let i=0;ia.source==r.active.source);if(s&&1==s.state)if(null==r.done){let a=new Y2(r.active.source,0);for(let u of r.updates)a=a.update(u,n);1!=a.state&&e.push(a)}else this.startQuery(s)}e.length&&this.view.dispatch({effects:vZ.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(D1,!1);if(e&&e.tooltip&&this.view.state.facet(K1).closeOnBlur){let n=e.open&&zY(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:ob.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:pk.of(!1)}),20),this.composing=0}}}),vLe="object"==typeof navigator&&/Win/.test(navigator.platform),_Le=v0.highest(ps.domEventHandlers({keydown(t,e){let n=e.state.field(D1,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&(!vLe||!t.altKey)||t.metaKey)return!1;let i=n.open.options[n.open.selected],r=n.active.find(a=>a.source==i.source),s=i.completion.commitCharacters||r.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&QH(e,i),!1}})),_Z=ps.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1d465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1d436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1d461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1f511}\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),cb={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Np=Uo.define({map:(t,e)=>e.mapPos(t,-1,q2.TrackAfter)??void 0}),tL=new class extends Dp{};tL.startSide=1,tL.endSide=-1;const SZ=e1.define({create:()=>Qc.empty,update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of e.effects)n.is(Np)&&(t=t.update({add:[tL.range(n.value,n.value+1)]}));return t}}),nL="()[]{}<>";function kZ(t){for(let e=0;e<8;e+=2)if(nL.charCodeAt(e)==t)return nL.charAt(e+1);return YI(t<128?t:t+1)}function EZ(t,e){return t.languageDataAt("closeBrackets",e)[0]||cb}const OLe="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),HLe=ps.inputHandler.of((t,e,n,i)=>{if((OLe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let r=t.state.selection.main;if(i.length>2||2==i.length&&1==Dd(G1(i,0))||e!=r.from||n!=r.to)return!1;let s=function zLe(t,e){let n=EZ(t,t.selection.main.head),i=n.brackets||cb.brackets;for(let r of i){let s=kZ(G1(r,0));if(e==r)return s==r?jLe(t,r,i.indexOf(r+r+r)>-1,n):NLe(t,r,s,n.before||cb.before);if(e==s&&DZ(t,t.selection.main.from))return PLe(t,0,s)}return null}(t.state,i);return!!s&&(t.dispatch(s),!0)}),LLe=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=EZ(t,t.selection.main.head).brackets||cb.brackets,r=null,s=t.changeByRange(a=>{if(a.empty){let u=function RLe(t,e){let n=t.sliceString(e-2,e);return Dd(G1(n,0))==n.length?n:n.slice(1)}(t.doc,a.head);for(let d of i)if(d==u&&vk(t.doc,a.head)==kZ(G1(d,0)))return{changes:{from:a.head-d.length,to:a.head+d.length},range:mi.cursor(a.head-d.length)}}return{range:r=a}});return r||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function DZ(t,e){let n=!1;return t.field(SZ).between(0,t.doc.length,i=>{i==e&&(n=!0)}),n}function vk(t,e){let n=t.sliceString(e,e+2);return n.slice(0,Dd(G1(n,0)))}function NLe(t,e,n,i){let r=null,s=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:n,from:a.to}],effects:Np.of(a.to+e.length),range:mi.range(a.anchor+e.length,a.head+e.length)};let u=vk(t.doc,a.head);return!u||/\s/.test(u)||i.indexOf(u)>-1?{changes:{insert:e+n,from:a.head},effects:Np.of(a.head+e.length),range:mi.cursor(a.head+e.length)}:{range:r=a}});return r?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function PLe(t,e,n){let i=null,r=t.changeByRange(s=>s.empty&&vk(t.doc,s.head)==n?{changes:{from:s.head,to:s.head+n.length,insert:n},range:mi.cursor(s.head+n.length)}:i={range:s});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function jLe(t,e,n,i){let r=i.stringPrefixes||cb.stringPrefixes,s=null,a=t.changeByRange(u=>{if(!u.empty)return{changes:[{insert:e,from:u.from},{insert:e,from:u.to}],effects:Np.of(u.to+e.length),range:mi.range(u.anchor+e.length,u.head+e.length)};let _,d=u.head,m=vk(t.doc,d);if(m==e){if(TZ(t,d))return{changes:{insert:e+e,from:d},effects:Np.of(d+e.length),range:mi.cursor(d+e.length)};if(DZ(t,d)){let x=n&&t.sliceDoc(d,d+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:d,to:d+x.length,insert:x},range:mi.cursor(d+x.length)}}}else{if(n&&t.sliceDoc(d-2*e.length,d)==e+e&&(_=VZ(t,d-2*e.length,r))>-1&&TZ(t,_))return{changes:{insert:e+e+e+e,from:d},effects:Np.of(d+e.length),range:mi.cursor(d+e.length)};if(t.charCategorizer(d)(m)!=Yc.Word&&VZ(t,d,r)>-1&&!function FLe(t,e,n,i){let r=t1(t).resolveInner(e,-1),s=i.reduce((a,u)=>Math.max(a,u.length),0);for(let a=0;a<5;a++){let u=t.sliceDoc(r.from,Math.min(r.to,r.from+n.length+s)),d=u.indexOf(n);if(!d||d>-1&&i.indexOf(u.slice(0,d))>-1){let _=r.firstChild;for(;_&&_.from==r.from&&_.to-_.from>n.length+d;){if(t.sliceDoc(_.to-n.length,_.to)==n)return!1;_=_.firstChild}return!0}let m=r.to==e&&r.parent;if(!m)break;r=m}return!1}(t,d,e,r))return{changes:{insert:e+e,from:d},effects:Np.of(d+e.length),range:mi.cursor(d+e.length)}}return{range:s=u}});return s?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function TZ(t,e){let n=t1(t).resolveInner(e+1);return n.parent&&n.from==e}function VZ(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=Yc.Word)return e;for(let r of n){let s=e-r.length;if(t.sliceDoc(s,e)==r&&i(t.sliceDoc(s-1,s))!=Yc.Word)return s}return-1}function BLe(t={}){return[_Le,D1,K1.of(t),gLe,$Le,_Z]}const AZ=[{key:"Ctrl-Space",run:t=>!!t.state.field(D1,!1)&&(t.dispatch({effects:pk.of(!0)}),!0)},{key:"Escape",run:t=>{let e=t.state.field(D1,!1);return!(!e||!e.active.some(n=>0!=n.state)||(t.dispatch({effects:ob.of(null)}),0))}},{key:"ArrowDown",run:gk(!0)},{key:"ArrowUp",run:gk(!1)},{key:"PageDown",run:gk(!0,"page")},{key:"PageUp",run:gk(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field(D1,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.facet(K1).defaultKeymap?[AZ]:[]));function iL(t){return t.doc.lineAt(t.selection.main.head)}function OZ(t,e){let n=0;e:for(let i=0;iTd(t,{highlightActiveBlock:!0,hideFirstIndent:!1,markerType:"fullScope",thickness:1})});class GLe{constructor(e,n,i,r){this.lines=e,this.state=n,this.map=new Map,this.unitWidth=i,this.markerType=r;for(const s of this.lines)this.add(s);this.state.facet(_k).highlightActiveBlock&&this.findAndSetActiveLines()}has(e){return this.map.has("number"==typeof e?e:e.number)}get(e){const n=this.map.get("number"==typeof e?e:e.number);if(!n)throw new Error("Line not found in indentation map");return n}set(e,n,i){const r=!e.text.trim().length,s={line:e,col:n,level:i,empty:r};return this.map.set(s.line.number,s),s}add(e){if(this.has(e))return this.get(e);if(!e.length||!e.text.trim().length){if(1===e.number)return this.set(e,0,0);if(e.number===this.state.doc.lines){const a=this.closestNonEmpty(e,-1);return this.set(e,0,a.level)}const r=this.closestNonEmpty(e,-1),s=this.closestNonEmpty(e,1);return this.set(e,0,r.level>=s.level&&"codeOnly"!==this.markerType?r.level:r.empty&&0===r.level&&0!==s.level?0:s.level>r.level?r.level+1:s.level)}const n=OZ(e.text,this.state.tabSize),i=Math.floor(n/this.unitWidth);return this.set(e,n,i)}closestNonEmpty(e,n){let i=e.number+n;for(;-1===n?i>=1:i<=this.state.doc.lines;){if(this.has(i)){const a=this.get(i);if(!a.empty)return a}const s=this.state.doc.line(i);if(s.text.trim().length){const a=OZ(s.text,this.state.tabSize),u=Math.floor(a/this.unitWidth);return this.set(s,a,u)}i+=n}const r=this.state.doc.line(-1===n?1:this.state.doc.lines);return this.set(r,0,0)}findAndSetActiveLines(){const e=iL(this.state);if(!this.has(e))return;let i,r,n=this.get(e);if(this.has(n.line.number+1)){const s=this.get(n.line.number+1);s.level>n.level&&(n=s)}if(this.has(n.line.number-1)){const s=this.get(n.line.number-1);s.level>n.level&&(n=s)}if(0!==n.level){for(n.active=n.level,i=n.line.number;i>1;i--){if(!this.has(i-1))continue;const s=this.get(i-1);if(s.level0&&u.push(bk("--indent-marker-bg-color",i,e,a,d)),u.push(bk("--indent-marker-active-bg-color",i,e,s-1,1)),s!==r&&u.push(bk("--indent-marker-bg-color",i,e,s,r-s))}else u.push(bk("--indent-marker-bg-color",i,e,a,r-a));return u.join(",")}class XLe{constructor(e){this.view=e,this.unitWidth=b4(e.state),this.currentLineNumber=iL(e.state).number,this.generate(e.state)}update(e){const n=b4(e.state),i=n!==this.unitWidth;i&&(this.unitWidth=n);const r=iL(e.state).number,s=r!==this.currentLineNumber;this.currentLineNumber=r;const a=e.state.facet(_k).highlightActiveBlock&&s;(e.docChanged||e.viewportChanged||i||a)&&this.generate(e.state)}generate(e){const n=new g4,i=function ULe(t,e=t.state){const n=new Set;for(const{from:i,to:r}of t.visibleRanges){let s=i;for(;s<=r;){const a=e.doc.lineAt(s);n.has(a)||n.add(a),s=a.to+1}}return n}(this.view,e),{hideFirstIndent:r,markerType:s,thickness:a}=e.facet(_k),u=new GLe(i,e,this.unitWidth,s);for(const d of i){const m=u.get(d.number);if(!m?.level)continue;const _=qLe(m,this.unitWidth,r,a);n.add(d.from,d.from,Rr.line({class:"cm-indent-markers",attributes:{style:`--indent-markers: ${_}`}}))}this.decorations=n.finish()}}function KLe(t={}){return[_k.of(t),WLe(t.colors),Vc.fromClass(XLe,{decorations:e=>e.decorations})]}const QLe=[Vc.fromClass(class YLe{constructor(e){this.view=e,this.indentUnit=b4(e.state),this.initialPaddingLeft=null,this.isChrome=window?.navigator.userAgent.includes("Chrome"),this.generate(e.state)}update(e){const n=b4(e.state);(n!==this.indentUnit||e.docChanged||e.viewportChanged)&&(this.indentUnit=n,this.generate(e.state))}generate(e){const n=new g4;this.initialPaddingLeft?this.addStyleToBuilder(n,e,this.initialPaddingLeft):this.view.requestMeasure({read:i=>{const r=i.contentDOM.querySelector(".cm-line");r&&(this.initialPaddingLeft=window.getComputedStyle(r).getPropertyValue("padding-left"),this.addStyleToBuilder(n,i.state,this.initialPaddingLeft)),this.decorations=n.finish()}}),this.decorations=n.finish()}addStyleToBuilder(e,n,i){const r=this.getVisibleLines(n);for(const s of r){const{numColumns:a,containsTab:u}=this.numColumns(s.text,n.tabSize);e.add(s.from,s.from,Rr.line({attributes:{style:`padding-left: calc(${a+this.indentUnit}ch + ${i}); text-indent: ${this.isChrome?`calc(-${a+this.indentUnit}ch - ${u?1:0}px)`:`-${a+this.indentUnit}ch`};`}}))}}getVisibleLines(e){const n=new Set;let i=null;for(const{from:r,to:s}of this.view.visibleRanges){let a=r;for(;a<=s;){const u=e.doc.lineAt(a);i!==u&&(n.add(u),i=u),a=u.to+1}}return n}numColumns(e,n){let i=0,r=!1;e:for(let s=0;st.decorations})];F(4574),F(9833);var ZLe=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],eze=["mainAxis","crossAxis","limiter"];function HZ(t,e){if(null==t)return{};var n,i,r=function(a,u){if(null==a)return{};var d,m,_={},y=Object.keys(a);for(m=0;m=0||(_[d]=a[d]);return _}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Pp(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Ck(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(d){throw d},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var d=n.next();return a=d.done,d},e:function(d){u=!0,s=d},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function gi(){gi=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function($t,Lt,et){$t[Lt]=et.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function m($t,Lt,et){return Object.defineProperty($t,Lt,{value:et,enumerable:!0,configurable:!0,writable:!0}),$t[Lt]}try{m({},"")}catch{m=function(Lt,et,st){return Lt[et]=st}}function _($t,Lt,et,st){var sn=Object.create((Lt&&Lt.prototype instanceof W?Lt:W).prototype),Hn=new ut(st||[]);return r(sn,"_invoke",{value:kt($t,et,Hn)}),sn}function y($t,Lt,et){try{return{type:"normal",arg:$t.call(Lt,et)}}catch(st){return{type:"throw",arg:st}}}e.wrap=_;var x="suspendedStart",S="suspendedYield",D="executing",z="completed",$={};function W(){}function re(){}function se(){}var ke={};m(ke,a,function(){return this});var ye=Object.getPrototypeOf,Ye=ye&&ye(ye(Ut([])));Ye&&Ye!==n&&i.call(Ye,a)&&(ke=Ye);var lt=se.prototype=W.prototype=Object.create(ke);function Vt($t){["next","throw","return"].forEach(function(Lt){m($t,Lt,function(et){return this._invoke(Lt,et)})})}function Nt($t,Lt){function et(gt,sn,Hn,on){var Xt=y($t[gt],$t,sn);if("throw"!==Xt.type){var An=Xt.arg,_n=An.value;return _n&&"object"==Cc(_n)&&i.call(_n,"__await")?Lt.resolve(_n.__await).then(function(Zt){et("next",Zt,Hn,on)},function(Zt){et("throw",Zt,Hn,on)}):Lt.resolve(_n).then(function(Zt){An.value=Zt,Hn(An)},function(Zt){return et("throw",Zt,Hn,on)})}on(Xt.arg)}var st;r(this,"_invoke",{value:function(gt,sn){function Hn(){return new Lt(function(on,Xt){et(gt,sn,on,Xt)})}return st=st?st.then(Hn,Hn):Hn()}})}function kt($t,Lt,et){var st=x;return function(gt,sn){if(st===D)throw Error("Generator is already running");if(st===z){if("throw"===gt)throw sn;return{value:t,done:!0}}for(et.method=gt,et.arg=sn;;){var Hn=et.delegate;if(Hn){var on=qt(Hn,et);if(on){if(on===$)continue;return on}}if("next"===et.method)et.sent=et._sent=et.arg;else if("throw"===et.method){if(st===x)throw st=z,et.arg;et.dispatchException(et.arg)}else"return"===et.method&&et.abrupt("return",et.arg);st=D;var Xt=y($t,Lt,et);if("normal"===Xt.type){if(st=et.done?z:S,Xt.arg===$)continue;return{value:Xt.arg,done:et.done}}"throw"===Xt.type&&(st=z,et.method="throw",et.arg=Xt.arg)}}}function qt($t,Lt){var et=Lt.method,st=$t.iterator[et];if(st===t)return Lt.delegate=null,"throw"===et&&$t.iterator.return&&(Lt.method="return",Lt.arg=t,qt($t,Lt),"throw"===Lt.method)||"return"!==et&&(Lt.method="throw",Lt.arg=new TypeError("The iterator does not provide a '"+et+"' method")),$;var gt=y(st,$t.iterator,Lt.arg);if("throw"===gt.type)return Lt.method="throw",Lt.arg=gt.arg,Lt.delegate=null,$;var sn=gt.arg;return sn?sn.done?(Lt[$t.resultName]=sn.value,Lt.next=$t.nextLoc,"return"!==Lt.method&&(Lt.method="next",Lt.arg=t),Lt.delegate=null,$):sn:(Lt.method="throw",Lt.arg=new TypeError("iterator result is not an object"),Lt.delegate=null,$)}function wt($t){var Lt={tryLoc:$t[0]};1 in $t&&(Lt.catchLoc=$t[1]),2 in $t&&(Lt.finallyLoc=$t[2],Lt.afterLoc=$t[3]),this.tryEntries.push(Lt)}function Dt($t){var Lt=$t.completion||{};Lt.type="normal",delete Lt.arg,$t.completion=Lt}function ut($t){this.tryEntries=[{tryLoc:"root"}],$t.forEach(wt,this),this.reset(!0)}function Ut($t){if($t||""===$t){var Lt=$t[a];if(Lt)return Lt.call($t);if("function"==typeof $t.next)return $t;if(!isNaN($t.length)){var et=-1,st=function gt(){for(;++et<$t.length;)if(i.call($t,et))return gt.value=$t[et],gt.done=!1,gt;return gt.value=t,gt.done=!0,gt};return st.next=st}}throw new TypeError(Cc($t)+" is not iterable")}return re.prototype=se,r(lt,"constructor",{value:se,configurable:!0}),r(se,"constructor",{value:re,configurable:!0}),re.displayName=m(se,d,"GeneratorFunction"),e.isGeneratorFunction=function($t){var Lt="function"==typeof $t&&$t.constructor;return!!Lt&&(Lt===re||"GeneratorFunction"===(Lt.displayName||Lt.name))},e.mark=function($t){return Object.setPrototypeOf?Object.setPrototypeOf($t,se):($t.__proto__=se,m($t,d,"GeneratorFunction")),$t.prototype=Object.create(lt),$t},e.awrap=function($t){return{__await:$t}},Vt(Nt.prototype),m(Nt.prototype,u,function(){return this}),e.AsyncIterator=Nt,e.async=function($t,Lt,et,st,gt){void 0===gt&&(gt=Promise);var sn=new Nt(_($t,Lt,et,st),gt);return e.isGeneratorFunction(Lt)?sn:sn.next().then(function(Hn){return Hn.done?Hn.value:sn.next()})},Vt(lt),m(lt,d,"Generator"),m(lt,a,function(){return this}),m(lt,"toString",function(){return"[object Generator]"}),e.keys=function($t){var Lt=Object($t),et=[];for(var st in Lt)et.push(st);return et.reverse(),function gt(){for(;et.length;){var sn=et.pop();if(sn in Lt)return gt.value=sn,gt.done=!1,gt}return gt.done=!0,gt}},e.values=Ut,ut.prototype={constructor:ut,reset:function($t){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(Dt),!$t)for(var Lt in this)"t"===Lt.charAt(0)&&i.call(this,Lt)&&!isNaN(+Lt.slice(1))&&(this[Lt]=t)},stop:function(){this.done=!0;var $t=this.tryEntries[0].completion;if("throw"===$t.type)throw $t.arg;return this.rval},dispatchException:function($t){if(this.done)throw $t;var Lt=this;function et(Xt,An){return sn.type="throw",sn.arg=$t,Lt.next=Xt,An&&(Lt.method="next",Lt.arg=t),!!An}for(var st=this.tryEntries.length-1;st>=0;--st){var gt=this.tryEntries[st],sn=gt.completion;if("root"===gt.tryLoc)return et("end");if(gt.tryLoc<=this.prev){var Hn=i.call(gt,"catchLoc"),on=i.call(gt,"finallyLoc");if(Hn&&on){if(this.prev=0;--et){var st=this.tryEntries[et];if(st.tryLoc<=this.prev&&i.call(st,"finallyLoc")&&this.prev=0;--Lt){var et=this.tryEntries[Lt];if(et.finallyLoc===$t)return this.complete(et.completion,et.afterLoc),Dt(et),$}},catch:function($t){for(var Lt=this.tryEntries.length-1;Lt>=0;--Lt){var et=this.tryEntries[Lt];if(et.tryLoc===$t){var st=et.completion;if("throw"===st.type){var gt=st.arg;Dt(et)}return gt}}throw Error("illegal catch attempt")},delegateYield:function($t,Lt,et){return this.delegate={iterator:Ut($t),resultName:Lt,nextLoc:et},"next"===this.method&&(this.arg=t),$}},e}function LZ(t,e,n,i,r,s,a){try{var u=t[s](a),d=u.value}catch(m){return void n(m)}u.done?e(d):Promise.resolve(d).then(i,r)}function es(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var s=t.apply(e,n);function a(d){LZ(s,i,r,a,u,"next",d)}function u(d){LZ(s,i,r,a,u,"throw",d)}a(void 0)})}}function ds(t,e){return RZ(t)||function(n,i){var r=null==n?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var s,a,u,d,m=[],_=!0,y=!1;try{if(u=(r=r.call(n)).next,0===i){if(Object(r)!==r)return;_=!1}else for(;!(_=(s=u.call(r)).done)&&(m.push(s.value),m.length!==i);_=!0);}catch(x){y=!0,a=x}finally{try{if(!_&&null!=r.return&&(d=r.return(),Object(d)!==d))return}finally{if(y)throw a}}return m}}(t,e)||Ck(t,e)||zZ()}function zZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function RZ(t){if(Array.isArray(t))return t}function _r(t,e,n){return e=yk(e),function(i,r){if(r&&("object"===Cc(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(s){if(void 0===s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i)}(t,NZ()?Reflect.construct(e,n||[],yk(t).constructor):e.apply(t,n))}function NZ(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NZ=function(){return!!t})()}function yk(t){return(yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function br(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rL(t,e)}function rL(t,e){return(rL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n})(t,e)}function PZ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function yn(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n32){for(var e=[],n=t.ctx.length/32,i=0;i2&&void 0!==arguments[2]?arguments[2]:{},i=n.bubbles,s=n.cancelable;return new CustomEvent(t,{detail:e,bubbles:void 0!==i&&i,cancelable:void 0!==s&&s})}function E3(t,e){return new t(e)}var ub,wk=new Map,lL=0;function eee(t,e,n,i,r,s,a){for(var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,d=16.666/i,m="{\n",_=0;_<=1;_+=d){var y=e+(n-e)*s(_);m+=100*_+"%{".concat(a(y,1-y),"}\n")}var se,ye,x=m+"100% {".concat(a(n,1-n),"}\n}"),S="__svelte_".concat(function(se){for(var ke=5381,ye=se.length;ye--;)ke=(ke<<5)-ke^se.charCodeAt(ye);return ke>>>0}(x),"_").concat(u),D=cL(t),z=wk.get(D)||(se=D,ye={stylesheet:nze(t),rules:{}},wk.set(se,ye),ye),$=z.stylesheet,W=z.rules;W[S]||(W[S]=!0,$.insertRule("@keyframes ".concat(S," ").concat(x),$.cssRules.length));var re=t.style.animation||"";return t.style.animation="".concat(re?"".concat(re,", "):"").concat(S," ").concat(i,"ms linear ").concat(r,"ms 1 both"),lL+=1,S}function db(t){ub=t}function Z5(){if(!ub)throw new Error("Function called outside component initialization");return ub}function Hd(t){Z5().$$.on_mount.push(t)}function Zu(t){Z5().$$.on_destroy.push(t)}function tee(){var t=Z5();return function(e,n){var i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,s=t.$$.callbacks[e];if(s){var a=ZZ(e,n,{cancelable:void 0!==i&&i});return s.slice().forEach(function(u){u.call(t,a)}),!a.defaultPrevented}return!0}}function nee(t,e){return Z5().$$.context.set(t,e),e}function V1(t){return Z5().$$.context.get(t)}function Mk(t,e){var n=this,i=t.$$.callbacks[e.type];i&&i.slice().forEach(function(r){return r.call(n,e)})}var e7=[],Vs=[],t7=[],uL=[],iee=Promise.resolve(),dL=!1;function ree(){dL||(dL=!0,iee.then(see))}function El(){return ree(),iee}function Fp(t){t7.push(t)}function Q2(t){uL.push(t)}var Sk,fL=new Set,n7=0;function see(){if(0===n7){var t=ub;do{try{for(;n7d.start&&(u=y(d,se),d=null,hL(t,u.b,"start"),Vt&&(_(),m=eee(t,a,u.b,u.duration,0,ye,s.css))),u&&(kt>=u.end?(lt(a=u.b,1-a),hL(t,u.b,"end"),d||(u.b?_():--u.group.r||ma(u.group.c)),u=null):kt>=u.start&&(a=u.a+u.d*ye((kt-u.start)/u.duration),lt(a,1-a))),!(!u&&!d)},0===lb.size&&oL(KZ),new Promise(function(kt){lb.add({c:D,f:kt})}))}return{run:function(S){T1(s)?(Sk||(Sk=Promise.resolve()).then(function(){Sk=null}),Sk).then(function(){s=s({direction:S?"in":"out"}),x(S)}):x(S)},end:function(){_(),u=d=null}}}function cs(t){return void 0!==t?.length?t:Array.from(t)}function aze(t,e){t.d(1),e.delete(t.key)}function pL(t,e){je(t,1,1,function(){e.delete(t.key)})}function Dk(t,e,n,i,r,s,a,u,d,m,_,y){for(var x=t.length,S=s.length,D=x,z={};D--;)z[t[D].key]=D;var $=[],W=new Map,re=new Map,se=[];D=S;for(var ke=function(){var Dt=y(r,s,D),ut=n(Dt),Ut=a.get(ut);Ut?i&&se.push(function(){return Ut.p(Dt,e)}):(Ut=m(ut,Dt)).c(),W.set(ut,$[D]=Ut),ut in z&&re.set(ut,Math.abs(D-z[ut]))};D--;)ke();var ye=new Set,Ye=new Set;function lt(Dt){Me(Dt,1),Dt.m(u,_),a.set(Dt.key,Dt),_=Dt.first,S--}for(;x&&S;){var Vt=$[S-1],Nt=t[x-1],kt=Vt.key,qt=Nt.key;Vt===Nt?(_=Vt.first,x--,S--):W.has(qt)?!a.has(kt)||ye.has(kt)?lt(Vt):Ye.has(qt)?x--:re.get(kt)>re.get(qt)?(Ye.add(kt),lt(Vt)):(ye.add(qt),x--):(d(Nt,a),x--)}for(;x--;){var wt=t[x];W.has(wt.key)||d(wt,a)}for(;S;)lt($[S-1]);return ma(se),$}function Ld(t,e){for(var n={},i={},r={$$scope:1},s=t.length;s--;){var a=t[s],u=e[s];if(u){for(var d in a)d in u||(i[d]=1);for(var m in u)r[m]||(n[m]=u[m],r[m]=1);t[s]=u}else for(var _ in a)r[_]=1}for(var y in i)y in n||(n[y]=void 0);return n}function Bp(t){return"object"===Cc(t)&&null!==t?t:{}}function J2(t,e,n){var i=t.$$.props[e];void 0!==i&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function Nn(t){t&&t.c()}function zn(t,e,n){var i=t.$$,r=i.fragment,s=i.after_update;r&&r.m(e,n),Fp(function(){var a,u=t.$$.on_mount.map(UZ).filter(T1);t.$$.on_destroy?(a=t.$$.on_destroy).push.apply(a,Ts(u)):ma(u),t.$$.on_mount=[]}),s.forEach(Fp)}function Rn(t,e){var n,i,r,s=t.$$;null!==s.fragment&&(n=s.after_update,i=[],r=[],t7.forEach(function(a){return-1===n.indexOf(a)?i.push(a):r.push(a)}),r.forEach(function(a){return a()}),t7=i,ma(s.on_destroy),s.fragment&&s.fragment.d(e),s.on_destroy=s.fragment=null,s.ctx=[])}function yr(t,e,n,i,r,s){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],d=ub;db(t);var m=t.$$={fragment:null,ctx:[],props:s,update:hi,not_equal:r,bound:GZ(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:GZ(),dirty:u,skip_bound:!1,root:e.target||d.$$.root};a&&a(m.root);var _=!1;if(m.ctx=n?n(t,e.props||{},function(x,S){var z,$,D=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:S;return m.ctx&&r(m.ctx[x],m.ctx[x]=D)&&(!m.skip_bound&&m.bound[x]&&m.bound[x](D),_&&($=x,-1===(z=t).$$.dirty[0]&&(e7.push(z),ree(),z.$$.dirty.fill(0)),z.$$.dirty[$/31|0]|=1<<$%31)),S}):[],m.update(),_=!0,ma(m.before_update),m.fragment=!!i&&i(m.ctx),e.target){if(e.hydrate){var y=Array.from(e.target.childNodes);m.fragment&&m.fragment.l(y),y.forEach(At)}else m.fragment&&m.fragment.c();e.intro&&Me(t.$$.fragment),zn(t,e.target,e.anchor),see()}db(d)}var Cr=pr(function t(){hr(this,t),Ju(this,"$$",void 0),Ju(this,"$$set",void 0)},[{key:"$destroy",value:function(){Rn(this,1),this.$destroy=hi}},{key:"$on",value:function(t,e){if(!T1(e))return hi;var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var i=n.indexOf(e);-1!==i&&n.splice(i,1)}}},{key:"$set",value:function(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]);function v1(t){var i,r;if(!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:(i=t,null!=(r=function(s){try{if(typeof window<"u"&&void 0!==window.localStorage)return window.localStorage.debug}catch{}}())&&r.endsWith("*")?i.startsWith(r.slice(0,-1)):i===r)))return cze;var n=function(i){for(var r=0,s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=e.delay,i=void 0===n?0:n,r=e.duration,s=void 0===r?400:r,a=e.easing,u=void 0===a?$Z:a,d=+getComputedStyle(t).opacity;return{delay:i,duration:s,easing:u,css:function(m){return"opacity: ".concat(m*d)}}}var uze=aL.window;function dze(t){as(t,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function aee(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se=t[1].closeButton&&cee(t),ke=t[2];return ke&&(a=E3(ke,{})),{c:function(){e=pt("div"),n=pt("div"),i=pt("div"),se&&se.c(),r=gn(),s=pt("div"),a&&Nn(a.$$.fragment),ce(s,"class",u=Oc(t[1].classContent)+" svelte-n7cvum"),ce(s,"style",t[9]),$n(s,"content",!t[0]),ce(i,"class",d=Oc(t[1].classWindow)+" svelte-n7cvum"),ce(i,"role","dialog"),ce(i,"aria-modal","true"),ce(i,"aria-label",m=t[1].ariaLabelledBy?null:t[1].ariaLabel||null),ce(i,"aria-labelledby",_=t[1].ariaLabelledBy||null),ce(i,"style",t[8]),$n(i,"window",!t[0]),ce(n,"class",x=Oc(t[1].classWindowWrap)+" svelte-n7cvum"),ce(n,"style",t[7]),$n(n,"wrap",!t[0]),ce(e,"aria-hidden","true"),ce(e,"id",S=t[1].id),ce(e,"class",D=Oc(t[1].classBg)+" svelte-n7cvum"),ce(e,"style",t[6]),$n(e,"bg",!t[0])},m:function(ye,Ye){Ht(ye,e,Ye),Ge(e,n),Ge(n,i),se&&se.m(i,null),Ge(i,r),Ge(i,s),a&&zn(a,s,null),t[50](i),t[51](n),t[52](e),$=!0,W||(re=[ei(i,"introstart",function(){T1(t[13])&&t[13].apply(this,arguments)}),ei(i,"outrostart",function(){T1(t[14])&&t[14].apply(this,arguments)}),ei(i,"introend",function(){T1(t[15])&&t[15].apply(this,arguments)}),ei(i,"outroend",function(){T1(t[16])&&t[16].apply(this,arguments)}),ei(e,"mousedown",t[20]),ei(e,"mouseup",t[21])],W=!0)},p:function(ye,Ye){if((t=ye)[1].closeButton?se?(se.p(t,Ye),2&Ye[0]&&Me(se,1)):((se=cee(t)).c(),Me(se,1),se.m(i,r)):se&&(si(),je(se,1,1,function(){se=null}),oi()),4&Ye[0]&&ke!==(ke=t[2])){if(a){si();var lt=a;je(lt.$$.fragment,1,0,function(){Rn(lt,1)}),oi()}ke?(Nn((a=E3(ke,{})).$$.fragment),Me(a.$$.fragment,1),zn(a,s,null)):a=null}(!$||2&Ye[0]&&u!==(u=Oc(t[1].classContent)+" svelte-n7cvum"))&&ce(s,"class",u),(!$||512&Ye[0])&&ce(s,"style",t[9]),(!$||3&Ye[0])&&$n(s,"content",!t[0]),(!$||2&Ye[0]&&d!==(d=Oc(t[1].classWindow)+" svelte-n7cvum"))&&ce(i,"class",d),(!$||2&Ye[0]&&m!==(m=t[1].ariaLabelledBy?null:t[1].ariaLabel||null))&&ce(i,"aria-label",m),(!$||2&Ye[0]&&_!==(_=t[1].ariaLabelledBy||null))&&ce(i,"aria-labelledby",_),(!$||256&Ye[0])&&ce(i,"style",t[8]),(!$||3&Ye[0])&&$n(i,"window",!t[0]),(!$||2&Ye[0]&&x!==(x=Oc(t[1].classWindowWrap)+" svelte-n7cvum"))&&ce(n,"class",x),(!$||128&Ye[0])&&ce(n,"style",t[7]),(!$||3&Ye[0])&&$n(n,"wrap",!t[0]),(!$||2&Ye[0]&&S!==(S=t[1].id))&&ce(e,"id",S),(!$||2&Ye[0]&&D!==(D=Oc(t[1].classBg)+" svelte-n7cvum"))&&ce(e,"class",D),(!$||64&Ye[0])&&ce(e,"style",t[6]),(!$||3&Ye[0])&&$n(e,"bg",!t[0])},i:function(ye){$||(Me(se),a&&Me(a.$$.fragment,ye),ye&&Fp(function(){$&&(y||(y=Ek(i,t[12],t[1].transitionWindowProps,!0)),y.run(1))}),ye&&Fp(function(){$&&(z||(z=Ek(e,t[11],t[1].transitionBgProps,!0)),z.run(1))}),$=!0)},o:function(ye){je(se),a&&je(a.$$.fragment,ye),ye&&(y||(y=Ek(i,t[12],t[1].transitionWindowProps,!1)),y.run(0)),ye&&(z||(z=Ek(e,t[11],t[1].transitionBgProps,!1)),z.run(0)),$=!1},d:function(ye){ye&&At(e),se&&se.d(),a&&Rn(a),t[50](null),ye&&y&&y.end(),t[51](null),t[52](null),ye&&z&&z.end(),W=!1,ma(re)}}}function cee(t){var e,n,i,r,s,a=[hze,fze],u=[];function d(m,_){return 2&_[0]&&(e=null),null==e&&(e=!!m[17](m[1].closeButton)),e?0:1}return n=d(t,[-1,-1,-1]),i=u[n]=a[n](t),{c:function(){i.c(),r=ho()},m:function(m,_){u[n].m(m,_),Ht(m,r,_),s=!0},p:function(m,_){var y=n;(n=d(m,_))===y?u[n].p(m,_):(si(),je(u[y],1,1,function(){u[y]=null}),oi(),(i=u[n])?i.p(m,_):(i=u[n]=a[n](m)).c(),Me(i,1),i.m(r.parentNode,r))},i:function(m){s||(Me(i),s=!0)},o:function(m){je(i),s=!1},d:function(m){m&&At(r),u[n].d(m)}}}function fze(t){var e,n,i,r;return{c:function(){ce(e=pt("button"),"class",n=Oc(t[1].classCloseButton)+" svelte-n7cvum"),ce(e,"aria-label","Close modal"),ce(e,"style",t[10]),ce(e,"type","button"),$n(e,"close",!t[0])},m:function(s,a){Ht(s,e,a),i||(r=ei(e,"click",t[18]),i=!0)},p:function(s,a){2&a[0]&&n!==(n=Oc(s[1].classCloseButton)+" svelte-n7cvum")&&ce(e,"class",n),1024&a[0]&&ce(e,"style",s[10]),3&a[0]&&$n(e,"close",!s[0])},i:hi,o:hi,d:function(s){s&&At(e),i=!1,r()}}}function hze(t){var e,n,i,r=t[1].closeButton;function s(a,u){return{props:{onClose:a[18]}}}return r&&(e=E3(r,s(t))),{c:function(){e&&Nn(e.$$.fragment),n=ho()},m:function(a,u){e&&zn(e,a,u),Ht(a,n,u),i=!0},p:function(a,u){if(2&u[0]&&r!==(r=a[1].closeButton)){if(e){si();var d=e;je(d.$$.fragment,1,0,function(){Rn(d,1)}),oi()}r?(Nn((e=E3(r,s(a))).$$.fragment),Me(e.$$.fragment,1),zn(e,n.parentNode,n)):e=null}},i:function(a){i||(e&&Me(e.$$.fragment,a),i=!0)},o:function(a){e&&je(e.$$.fragment,a),i=!1},d:function(a){a&&At(n),e&&Rn(e,a)}}}function pze(t){var e,n,i,r,s=t[2]&&aee(t),a=t[49].default,u=jc(a,t,t[48],null);return{c:function(){s&&s.c(),e=gn(),u&&u.c()},m:function(d,m){s&&s.m(d,m),Ht(d,e,m),u&&u.m(d,m),n=!0,i||(r=ei(uze,"keydown",t[19]),i=!0)},p:function(d,m){d[2]?s?(s.p(d,m),4&m[0]&&Me(s,1)):((s=aee(d)).c(),Me(s,1),s.m(e.parentNode,e)):s&&(si(),je(s,1,1,function(){s=null}),oi()),u&&u.p&&(!n||131072&m[1])&&Bc(u,a,d,d[48],n?Fc(a,d[48],m,null):$c(d[48]),null)},i:function(d){n||(Me(s),Me(u,d),n=!0)},o:function(d){je(s),je(u,d),n=!1},d:function(d){d&&At(e),s&&s.d(d),u&&u.d(d),i=!1,r()}}}function lee(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){return new t(yn(yn({},n),{},{props:yn(yn({},e),n.props)}))}}function mze(t,e,n){var i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re=e.$$slots,se=void 0===re?{}:re,ke=e.$$scope,ye=tee(),lt=e.isTabbable,Vt=void 0===lt?function(Bn){return Bn.tabIndex>=0&&!Bn.hidden&&!Bn.disabled&&"none"!==Bn.style.display&&"hidden"!==Bn.type&&!!(Bn.offsetWidth||Bn.offsetHeight||Bn.getClientRects().length)}:lt,Nt=e.show,kt=void 0===Nt?null:Nt,qt=e.id,wt=void 0===qt?null:qt,Dt=e.key,ut=void 0===Dt?"simple-modal":Dt,Ut=e.ariaLabel,$t=void 0===Ut?null:Ut,Lt=e.ariaLabelledBy,et=void 0===Lt?null:Lt,st=e.closeButton,gt=void 0===st||st,sn=e.closeOnEsc,Hn=void 0===sn||sn,on=e.closeOnOuterClick,Xt=void 0===on||on,An=e.styleBg,_n=void 0===An?{}:An,Zt=e.styleWindowWrap,wi=void 0===Zt?{}:Zt,zi=e.styleWindow,Zn=void 0===zi?{}:zi,En=e.styleContent,Nr=void 0===En?{}:En,Pr=e.styleCloseButton,va=void 0===Pr?{}:Pr,Qo=e.classBg,fn=void 0===Qo?null:Qo,Yr=e.classWindowWrap,sa=void 0===Yr?null:Yr,oa=e.classWindow,Jo=void 0===oa?null:oa,qi=e.classContent,$s=void 0===qi?null:qi,Mi=e.classCloseButton,Or=void 0===Mi?null:Mi,tc=e.unstyled,xa=void 0!==tc&&tc,I1=e.setContext,r1=void 0===I1?nee:I1,s1=e.transitionBg,fl=void 0===s1?lze:s1,Ho=e.transitionBgProps,Ul=void 0===Ho?{duration:250}:Ho,fc=e.transitionWindow,Tl=void 0===fc?fl:fc,Oa=e.transitionWindowProps,Gl=void 0===Oa?Ul:Oa,Z2=e.disableFocusTrap,O1=void 0!==Z2&&Z2,Wl={id:wt,ariaLabel:$t,ariaLabelledBy:et,closeButton:gt,closeOnEsc:Hn,closeOnOuterClick:Xt,styleBg:_n,styleWindowWrap:wi,styleWindow:Zn,styleContent:Nr,styleCloseButton:va,classBg:fn,classWindowWrap:sa,classWindow:Jo,classContent:$s,classCloseButton:Or,transitionBg:fl,transitionBgProps:Ul,transitionWindow:Tl,transitionWindowProps:Gl,disableFocusTrap:O1,isTabbable:Vt,unstyled:xa},bs=yn({},Wl),Jc=null,Gc=function(Bn){return Bn?Object.keys(Bn).reduce(function(to,wa){return"".concat(to,"; ").concat((ys=wa,ys.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()),": ").concat(Bn[wa]);var ys},""):""},J1=function(Bn){return!!(Bn&&Bn.constructor&&Bn.call&&Bn.apply)},o1=function(){},a1=o1,Tn=o1,Fi=o1,ss=o1,Fo=function(Bn){var to=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},wa=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n(2,Jc=lee(Bn,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),n(1,bs=yn(yn({},Wl),to)),n(6,u=Gc(Object.assign({},{width:window.innerWidth,height:window.innerHeight},bs.styleBg))),n(7,d=Gc(bs.styleWindowWrap)),n(8,m=Gc(bs.styleWindow)),n(9,_=Gc(bs.styleContent)),n(10,y=Gc(bs.styleCloseButton)),n(11,x=bs.transitionBg),n(12,S=bs.transitionWindow),Dn(),n(13,a1=function(ys){wa.onOpen&&wa.onOpen(ys),ye("open"),ye("opening")}),n(14,Tn=function(ys){wa.onClose&&wa.onClose(ys),ye("close"),ye("closing")}),n(15,Fi=function(ys){wa.onOpened&&wa.onOpened(ys),ye("opened")}),n(16,ss=function(ys){wa.onClosed&&wa.onClosed(ys),ye("closed")})},Xs=function(){var Bn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Jc&&(n(14,Tn=Bn.onClose||Tn),n(16,ss=Bn.onClosed||ss),n(2,Jc=null),ji())},Dn=function(){a=window.scrollY,D=document.body.style.position,z=document.body.style.overflow,$=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(a,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},ji=function(){document.body.style.position=D||"",document.body.style.top="",document.body.style.overflow=z||"",document.body.style.width=$||"",window.scrollTo({top:a,left:0,behavior:"instant"})};r1(ut,{open:Fo,close:Xs});var Yi=!1;return Zu(function(){Yi&&Xs()}),Hd(function(){n(47,Yi=!0)}),t.$$set=function(Bn){"isTabbable"in Bn&&n(22,Vt=Bn.isTabbable),"show"in Bn&&n(23,kt=Bn.show),"id"in Bn&&n(24,wt=Bn.id),"key"in Bn&&n(25,ut=Bn.key),"ariaLabel"in Bn&&n(26,$t=Bn.ariaLabel),"ariaLabelledBy"in Bn&&n(27,et=Bn.ariaLabelledBy),"closeButton"in Bn&&n(28,gt=Bn.closeButton),"closeOnEsc"in Bn&&n(29,Hn=Bn.closeOnEsc),"closeOnOuterClick"in Bn&&n(30,Xt=Bn.closeOnOuterClick),"styleBg"in Bn&&n(31,_n=Bn.styleBg),"styleWindowWrap"in Bn&&n(32,wi=Bn.styleWindowWrap),"styleWindow"in Bn&&n(33,Zn=Bn.styleWindow),"styleContent"in Bn&&n(34,Nr=Bn.styleContent),"styleCloseButton"in Bn&&n(35,va=Bn.styleCloseButton),"classBg"in Bn&&n(36,fn=Bn.classBg),"classWindowWrap"in Bn&&n(37,sa=Bn.classWindowWrap),"classWindow"in Bn&&n(38,Jo=Bn.classWindow),"classContent"in Bn&&n(39,$s=Bn.classContent),"classCloseButton"in Bn&&n(40,Or=Bn.classCloseButton),"unstyled"in Bn&&n(0,xa=Bn.unstyled),"setContext"in Bn&&n(41,r1=Bn.setContext),"transitionBg"in Bn&&n(42,fl=Bn.transitionBg),"transitionBgProps"in Bn&&n(43,Ul=Bn.transitionBgProps),"transitionWindow"in Bn&&n(44,Tl=Bn.transitionWindow),"transitionWindowProps"in Bn&&n(45,Gl=Bn.transitionWindowProps),"disableFocusTrap"in Bn&&n(46,O1=Bn.disableFocusTrap),"$$scope"in Bn&&n(48,ke=Bn.$$scope)},t.$$.update=function(){8388608&t.$$.dirty[0]|65536&t.$$.dirty[1]&&Yi&&(J1(kt)?Fo(kt):Xs())},[xa,bs,Jc,i,r,s,u,d,m,_,y,x,S,a1,Tn,Fi,ss,J1,Xs,function(Bn){if(bs.closeOnEsc&&Jc&&"Escape"===Bn.key&&(Bn.preventDefault(),Xs()),Jc&&"Tab"===Bn.key&&!bs.disableFocusTrap){var to=s.querySelectorAll("*"),wa=Array.from(to).filter(bs.isTabbable).sort(function(Bh,S4){return Bh.tabIndex-S4.tabIndex}),ys=wa.indexOf(document.activeElement);-1===ys&&Bn.shiftKey&&(ys=0),ys+=wa.length+(Bn.shiftKey?-1:1),wa[ys%=wa.length].focus(),Bn.preventDefault()}},function(Bn){!bs.closeOnOuterClick||Bn.target!==i&&Bn.target!==r||(W=Bn.target)},function(Bn){bs.closeOnOuterClick&&Bn.target===W&&(Bn.preventDefault(),Xs())},Vt,kt,wt,ut,$t,et,gt,Hn,Xt,_n,wi,Zn,Nr,va,fn,sa,Jo,$s,Or,r1,fl,Ul,Tl,Gl,O1,Yi,ke,se,function(Bn){Vs[Bn?"unshift":"push"](function(){n(5,s=Bn)})},function(Bn){Vs[Bn?"unshift":"push"](function(){n(4,r=Bn)})},function(Bn){Vs[Bn?"unshift":"push"](function(){n(3,i=Bn)})}]}var A1,Wa,C4,zd,x4,Rd,Lh,uee=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,mze,pze,n1,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},dze,[-1,-1,-1]),i}return br(e,Cr),pr(e)}();(function(t){t.text="text",t.tree="tree",t.table="table"})(A1||(A1={})),function(t){t.after="after",t.inside="inside",t.key="key",t.value="value",t.multi="multi",t.text="text"}(Wa||(Wa={})),function(t){t.after="after",t.key="key",t.value="value",t.inside="inside"}(C4||(C4={})),function(t){t.info="info",t.warning="warning",t.error="error"}(zd||(zd={})),function(t){t.key="key",t.value="value"}(x4||(x4={})),function(t){t.asc="asc",t.desc="desc"}(Rd||(Rd={})),function(t){t.no="no",t.self="self",t.nextInside="nextInside"}(Lh||(Lh={}));var fb=100,i7=100,mL=2e4,$p=[{start:0,end:fb}],bze=104857600,yze=1048576,gL=10485760,hee=10240,Up={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-container"},Cze=yn(yn({},Up),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),xze=yn(yn({},Up),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),wze=yn(yn({},Up),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),vL="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",_L="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",S0="hover-insert-inside",hb="hover-insert-after",bL="hover-collection",yL="valid",pee="repairable",k0=336,E0=260,Mze=Ju(Ju({},Rd.asc,"ascending"),Rd.desc,"descending"),Sze=0;function pb(){return++Sze}function Q1(t){return parseInt(t,10)}function CL(t){return kze.test(t)}var kze=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function ga(t){return"object"===Cc(t)&&null!==t&&(void 0===t.constructor||"Object"===t.constructor.name)}function Uc(t){return"object"===Cc(t)&&null!==t&&(void 0===t.constructor||"Object"===t.constructor.name||"Array"===t.constructor.name)}function xL(t){if("number"==typeof t)return t>9466848e5&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf());if("bigint"==typeof t)return xL(Number(t));try{var e=t&&t.valueOf();if(e!==t)return xL(e)}catch{return!1}return!1}function mee(t){(Tk=Tk||window.document.createElement("div")).style.color="",Tk.style.color=t;var e=Tk.style.color;return""!==e?e.replace(/\s+/g,"").toLowerCase():null}var Tk=null;function wL(t,e){if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||void 0===t)return Cc(t);if("bigint"==typeof t)return"number";if(null===t)return"null";if(Array.isArray(t))return"array";if(ga(t))return"object";var n=e.stringify(t);return n&&CL(n)?"number":"true"===n||"false"===n?"boolean":"null"===n?"null":"unknown"}var Eze=/^https?:\/\/\S+$/;function Vk(t){return"string"==typeof t&&Eze.test(t)}function s7(t,e){if(""===t)return"";var n=t.trim();return"null"===n?null:"true"===n||"false"!==n&&(CL(n)?e.parse(n):t)}var Dze=/^-?[0-9]+$/,Tze=1e4,Vze=[];function ML(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};if(!Array.isArray(t))throw new TypeError("Array expected");function i(a,u){(!Array.isArray(a)&&!ga(a)||e&&u.length>0)&&(n[de(u)]=!0),ga(a)&&Object.keys(a).forEach(function(d){i(a[d],u.concat(d))})}for(var r=Math.min(t.length,Tze),s=0;se?t.slice(0,e):t}function _ee(t){return yn({},t)}function bee(t){return Object.values(t)}function yee(t,e,n,i){var r=t.slice(0),s=r.splice(e,n);return r.splice.apply(r,[e+i,0].concat(Ts(s))),r}function mb(t,e){try{return e.parse(t)}catch{return e.parse(na(t))}}function Cee(t,e){try{return mb(t,e)}catch{return}}function Ik(t,e){t=t.replace(wee,"");try{return e(t)}catch{}try{return e("["+t+"]")}catch{}try{return e("{"+t+"}")}catch{}throw new Error("Failed to parse partial JSON")}function xee(t){t=t.replace(wee,"");try{return na(t)}catch{}try{var e=na("["+t+"]");return e.substring(1,e.length-1)}catch{}try{var n=na("{"+t+"}");return n.substring(1,n.length-1)}catch{}throw new Error("Failed to repair partial JSON")}var wee=/,\s*$/;function o7(t,e){var n=kee.exec(e);if(n){var i=Q1(n[2]),r=function(S,D){for(var $=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S.length,W=0,re=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;re<$;re++)S.charAt(re)===D&&W++;return W}(t,"\n",0,i),s=i-t.lastIndexOf("\n",i)-1;return{position:i,line:r,column:s,message:e.replace(kee,function(){return"line ".concat(r+1," column ").concat(s+1)})}}var a=Oze.exec(e),u=a?Q1(a[1]):null,d=null!==u?u-1:null,m=Hze.exec(e),_=m?Q1(m[1]):null,y=null!==_?_-1:null;return{position:null!==d&&null!==y?function(S,D,z){for(var $=S.indexOf("\n"),W=1;W1&&void 0!==arguments[1]?arguments[1]:JSON;return gb(t)?t:{json:e.parse(t.text)}}function kL(t,e,n){return function Aze(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return a7(t)?t:{text:n.stringify(t.json,null,e)}}(t,e,n).text}function See(t,e){return function Ize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(a7(t))return t.text.length;var i=0;return function r(s){if(Array.isArray(s)){if((i+=s.length-1+2)>e)return i;for(var a=0;ae)return i}else if(ga(s)){var u=Object.keys(s);i+=2+u.length+(u.length-1);for(var d=0;de}var kee=/(position|char) (\d+)/,Oze=/line (\d+)/,Hze=/column (\d+)/;function Dee(t){var e=t.substring(0,999).trim();return!e.includes("\n")&&Lze.test(e)}var Lze=/[,:]\S/;function EL(t){var n=t.escapeUnicodeCharacters;return t.escapeControlCharacters?n?zze:Rze:n?Nze:Pze}var zze={escapeValue:function(t){return Tee(Iee(String(t)))},unescapeValue:function(t){return Oee(Vee(t))}},Rze={escapeValue:function(t){return Iee(String(t))},unescapeValue:function(t){return Oee(t)}},Nze={escapeValue:function(t){return Tee(String(t))},unescapeValue:function(t){return Vee(t)}},Pze={escapeValue:function(t){return String(t)},unescapeValue:function(t){return t}};function Tee(t){return t.replace(/[^\x20-\x7F]/g,function(e){var n;return"\b"===e||"\f"===e||"\n"===e||"\r"===e||"\t"===e?e:"\\u"+("000"+(null===(n=e.codePointAt(0))||void 0===n?void 0:n.toString(16))).slice(-4)})}function Vee(t){return t.replace(/\\u[a-fA-F0-9]{4}/g,function(e){try{var n=JSON.parse('"'+e+'"');return Aee[n]||n}catch{return e}})}var Aee={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},jze={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Iee(t){return t.replace(/["\b\f\n\r\t\\]/g,function(e){return Aee[e]||e})}function Oee(t){return t.replace(/\\["bfnrt\\]/g,function(e){return jze[e]||e})}function Gp(t){return"string"!=typeof t?String(t):t.endsWith("\n")?t+"\n":t}function Hee(t,e){return vb(t,function(n){return n.nodeName.toUpperCase()===e.toUpperCase()})}function Wp(t,e,n){return vb(t,function(i){return a=n,"function"==typeof(r=i).getAttribute&&r.getAttribute(e)===a;var r,a})}function vb(t,e){return!!DL(t,e)}function DL(t,e){for(var n=t;n&&!e(n);)n=n.parentNode;return n||void 0}function Lee(t){if(null!=t.firstChild){var e=document.createRange(),n=window.getSelection();e.setStart(t,1),e.collapse(!0),n?.removeAllRanges(),n?.addRange(e)}else t.focus()}function Ok(t,e,n,i){var r=c7(t);if(r){var s=r.document.activeElement?r.document.activeElement:null;s&&s.isContentEditable&&(s.textContent=n?e:s.textContent+e,Lee(s),i&&i(s))}}function c7(t){return t&&t.ownerDocument?t.ownerDocument.defaultView:null}function TL(t){var e=c7(t),n=e?.document.activeElement;return!!n&&vb(n,function(i){return i===t})}function zee(t,e){return DL(t,function(n){return n.nodeName===e})}function VL(t){return Wp(t,"data-type","selectable-key")?Wa.key:Wp(t,"data-type","selectable-value")?Wa.value:Wp(t,"data-type","insert-selection-area-inside")?Wa.inside:Wp(t,"data-type","insert-selection-area-after")?Wa.after:Wa.multi}function l7(t){return encodeURIComponent(de(t))}function Ree(t){var e=DL(t,function(i){return!(null==i||!i.hasAttribute)&&i.hasAttribute("data-path")}),n=e?.getAttribute("data-path");return n?tt(decodeURIComponent(n)):null}function Nee(t){return!!t&&"DIV"===t.nodeName&&"function"==typeof t.refresh&&"function"==typeof t.cancel}function D0(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"+",n=[];t.ctrlKey&&n.push("Ctrl"),t.metaKey&&n.push("Ctrl"),t.altKey&&n.push("Alt"),t.shiftKey&&n.push("Shift");var i=1===t.key.length?t.key.toUpperCase():t.key;return i in Bze||n.push(i),n.join(e)}var Bze={Ctrl:!0,Command:!0,Control:!0,Alt:!0,Option:!0,Shift:!0},AL=aL.window;function $ze(t){as(t,"svelte-1r8q3m8",".jse-absolute-popup.svelte-1r8q3m8.svelte-1r8q3m8{position:relative;left:0;top:0;width:0;height:0;z-index:1001}.jse-absolute-popup.svelte-1r8q3m8 .jse-hidden-input.svelte-1r8q3m8{position:fixed;left:0;top:0;width:0;height:0;padding:0;margin:0;border:none;outline:none;overflow:hidden}.jse-absolute-popup.svelte-1r8q3m8 .jse-absolute-popup-content.svelte-1r8q3m8{position:absolute}")}function Pee(t){var e,n,i,r,s,a,u=[t[0].props],d=t[0].component;function m(_,y){for(var x={},S=0;Swindow.innerHeight&&ke>x,Vt="left"===W||se+_>window.innerWidth&&se>_;return{left:Vt?re.right-$:se+$,top:lt?ke-D:re.bottom+D,positionAbove:lt,positionLeft:Vt}}if("number"==typeof e.left&&"number"==typeof e.top){var Nt=e.left,kt=e.top,qt=e.width,wt=void 0===qt?0:qt,Dt=e.height,ut=void 0===Dt?0:Dt;return{left:Nt,top:kt,positionAbove:kt+ut>window.innerHeight&&kt>ut,positionLeft:Nt+wt>window.innerWidth&&Nt>wt}}throw new Error('Invalid config: pass either "left" and "top", or pass "anchor"')}(),r=i.left,s=i.top,u=i.positionLeft;return(i.positionAbove?"bottom: ".concat(n.top-s,"px;"):"top: ".concat(s-n.top,"px;"))+(u?"right: ".concat(n.left-r,"px;"):"left: ".concat(r-n.left,"px;"))}function Wze(t,e,n){var i,r,s=e.popup,a=e.closeAbsolutePopup;function u(d){s.options&&s.options.closeOnOuterClick&&!vb(d.target,function(m){return m===i})&&a(s.id)}return Hd(function(){r&&r.focus()}),t.$$set=function(d){"popup"in d&&n(0,s=d.popup),"closeAbsolutePopup"in d&&n(6,a=d.closeAbsolutePopup)},[s,i,r,function(d){u(d)},function(d){"Escape"===D0(d)&&a(s.id)},function(d){u(d)},a,function(d){Vs[d?"unshift":"push"](function(){n(2,r=d)})},function(d){Vs[d?"unshift":"push"](function(){n(1,i=d)})}]}var qze=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,Wze,Uze,n1,{popup:0,closeAbsolutePopup:6},$ze),i}return br(e,Cr),pr(e)}();function Fee(t,e,n){var i=t.slice();return i[6]=e[n],i}function Bee(t){var e,n;return e=new qze({props:{popup:t[6],closeAbsolutePopup:t[1]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r&&(s.popup=i[6]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Xze(t){for(var e,n,i=cs(t[0]),r=[],s=0;s0?".":"")+e}).join("")}function Yze(t){for(var e=[],n=0;n1&&void 0!==arguments[1]&&arguments[1],u="";n1?" "+s:"");r="".concat(i," (").concat(a,")"),s++}return r}function T0(t,e){return t.length>e?t.substring(0,e-3)+"...":t}var Jze={id:"javascript",name:"JavaScript",description:"\n

\n Enter a JavaScript function to filter, sort, or transform the data.\n

\n",createQuery:function(t,e){var n=e.filter,i=e.sort,r=e.projection,s=[" return data\n"];if(n&&n.path&&n.relation&&n.value){var a="item => item".concat(D3(n.path)),u=function OL(t){if(""===t)return"";var e=t.toLowerCase();if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;if("undefined"!==e){var n=Number(t),i=parseFloat(t);return isNaN(n)||isNaN(i)?t:n}}(n.value),d="string"==typeof u?"'".concat(n.value,"'"):function gee(t){return Dze.test(t)}(n.value)&&!Number.isSafeInteger(u)?"".concat(n.value,"n"):n.value;s.push(" .filter(".concat(a," ").concat(n.relation," ").concat(d,")\n"))}if(i&&i.path&&i.direction&&s.push("desc"===i.direction?" .slice()\n .sort((a, b) => {\n // sort descending\n"+" const valueA = a".concat(D3(i.path),"\n")+" const valueB = b".concat(D3(i.path),"\n")+" return valueA > valueB ? -1 : valueA < valueB ? 1 : 0\n })\n":" .slice()\n .sort((a, b) => {\n // sort ascending\n"+" const valueA = a".concat(D3(i.path),"\n")+" const valueB = b".concat(D3(i.path),"\n")+" return valueA > valueB ? 1 : valueA < valueB ? -1 : 0\n })\n"),r&&r.paths)if(r.paths.length>1){var m=r.paths.map(function(y){var x=y[y.length-1]||"item",S="item".concat(D3(y));return" ".concat(JSON.stringify(x),": ").concat(S)});s.push(" .map(item => ({\n".concat(m.join(",\n"),"})\n )\n"))}else{var _="item".concat(D3(r.paths[0]));s.push(" .map(item => ".concat(_,")\n"))}return"function query (data) {\n".concat(s.join(""),"}")},executeQuery:function(t,e){var n=new Function('"use strict";\n\n'+e+'\n\nif (typeof query !== "function") {\n throw new Error("Cannot execute query: expecting a function named \'query\' but is undefined")\n}\n\nreturn query;\n')()(t);return void 0!==n?n:null}};function Zze(t){var e;return{c:function(){e=S3("g")},m:function(n,i){Ht(n,e,i),e.innerHTML=t[0]},p:function(n,i){1&ds(i,1)[0]&&(e.innerHTML=n[0])},i:hi,o:hi,d:function(n){n&&At(e)}}}function eRe(t,e,n){var i=870711,r="",s=e.data;return t.$$set=function(u){"data"in u&&n(1,s=u.data)},t.$$.update=function(){2&t.$$.dirty&&n(0,r=function a(u){if(!u||!u.raw)return"";var d=u.raw,m={};return(d=d.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,function(_,y){var x="fa-".concat((i+=1).toString(16));return m[y]=x,' id="'.concat(x,'"')})).replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,function(_,y,x,S){var D=y||S;return D&&m[D]?"#".concat(m[D]):_})}(s))},[r,s]}var tRe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,eRe,Zze,n1,{data:1}),i}return br(e,Cr),pr(e)}();function nRe(t){as(t,"svelte-1mc5hvj",".fa-icon.svelte-1mc5hvj{display:inline-block;fill:currentColor}.fa-flip-horizontal.svelte-1mc5hvj{transform:scale(-1, 1)}.fa-flip-vertical.svelte-1mc5hvj{transform:scale(1, -1)}.fa-spin.svelte-1mc5hvj{animation:svelte-1mc5hvj-fa-spin 1s 0s infinite linear}.fa-inverse.svelte-1mc5hvj{color:#fff}.fa-pulse.svelte-1mc5hvj{animation:svelte-1mc5hvj-fa-spin 1s infinite steps(8)}@keyframes svelte-1mc5hvj-fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function iRe(t){for(var e,n,i,r,s=t[12].default,a=jc(s,t,t[11],null),u=[{version:"1.1"},{class:n="fa-icon "+t[0]},{width:t[1]},{height:t[2]},{"aria-label":t[9]},{role:i=t[9]?"img":"presentation"},{viewBox:t[3]},{style:t[8]},t[10]],d={},m=0;m300},{anchor:z,closeOnOuterClick:!0,onClose:y,offsetTop:18,offsetLeft:-8,height:300})}},s,d,m]}var yRe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,bRe,_Re,gs,{path:4,value:0,readOnly:1,onPatch:5,focus:6},vRe),i}return br(e,Cr),pr(e)}();function Kee(t){for(var e=HA(t,function(u){return u.start}),n=[e[0]],i=0;i=n.start&&e0){var y=Rk(e,_);LL(d,y,function($){s[m]=String($),u(d[$])}),s.pop()}}}else if(ga(d)&&i(s)){r[de(s)]=!0;var x=Object.keys(d);if(x.length>0){var S,D=Pp(x);try{for(D.s();!(S=D.n()).done;){var z=S.value;s[m]=z,u(d[z])}}catch($){D.e($)}finally{D.f()}s.pop()}}}(a),yn(yn({},e),{},{expandedMap:r})}function Yee(t,e){var n=u7(t.expandedMap,e),i=u7(t.enforceStringMap,e),r=u7(t.visibleSectionsMap,e);return yn(yn({},t),{},{expandedMap:n,enforceStringMap:i,visibleSectionsMap:r})}function Qee(t,e,n){if(n){var i=yn({},t.enforceStringMap);return i[e]=n,yn(yn({},t),{},{enforceStringMap:i})}if("boolean"==typeof t.enforceStringMap[e]){var r=yn({},t.enforceStringMap);return delete r[e],yn(yn({},t),{},{enforceStringMap:r})}return t}function Jee(t,e,n){var i=xe(t,n),r=n.reduce(function(s,a){return Se(a)?Zee(i,s,a):it(a)?ete(i,s,a):dt(a)?(_=(m=a).path,y=jL(u=i,(d=s).expandedMap),x=jL(u,d.enforceStringMap),S=jL(u,d.visibleSectionsMap),he(m.value)||Be(m.value)||delete y[_],Be(m.value)||delete S[_],(he(m.value)||Be(m.value))&&delete x[_],yn(yn({},d),{},{expandedMap:y,enforceStringMap:x,visibleSectionsMap:S})):jt(a)||Wt(a)?function(u,d,m){if(Wt(m)&&m.from===m.path)return d;var _=function(re){return m.path+re.substring(m.from.length)},y=PL(RL(d.expandedMap,m.from),_),x=PL(RL(d.enforceStringMap,m.from),_),S=PL(RL(d.visibleSectionsMap,m.from),_),D=d;Wt(m)&&(D=ete(u,D,{op:"remove",path:m.from}));var z=NL((D=Zee(u,D,{op:"add",path:m.path,value:null})).expandedMap,y),$=NL(D.enforceStringMap,x),W=NL(D.visibleSectionsMap,S);return yn(yn({},d),{},{expandedMap:z,enforceStringMap:$,visibleSectionsMap:W})}(i,s,a):s;var u,d,m,_,y,x,S},e);return{json:i,documentState:r}}function Zee(t,e,n){var i=ci(t,n.path),r=Ls(i),s=de(r);if(Be(nt(t,r))){var u=Q1(Ur(i)),d=d7(e.expandedMap,r,u,1),m=d7(e.enforceStringMap,r,u,1),_=d7(e.visibleSectionsMap,r,u,1);return _=tte(_,s,function(y){return nte(y,u,1)}),yn(yn({},e),{},{expandedMap:d,enforceStringMap:m,visibleSectionsMap:_})}return e}function ete(t,e,n){var i=ci(t,n.path),r=Ls(i),s=de(r),a=nt(t,r),u=e.expandedMap,d=e.enforceStringMap,m=e.visibleSectionsMap;if(u=u7(u,i),d=u7(d,i),m=u7(m,i),Be(a)){var _=Q1(Ur(i));u=d7(u,r,_,-1),d=d7(d,r,_,-1),m=tte(m=d7(m,r,_,-1),s,function(y){return nte(y,_,-1)})}return yn(yn({},e),{},{expandedMap:u,enforceStringMap:d,visibleSectionsMap:m})}function u7(t,e){var n={},i=de(e);return Object.keys(t).forEach(function(r){at(r,i)||(n[r]=t[r])}),n}function RL(t,e){var n={};return Object.keys(t).forEach(function(i){at(i,e)&&(n[i]=t[i])}),n}function NL(t,e){return yn(yn({},t),e)}function PL(t,e){var n={};return Object.keys(t).forEach(function(i){var r=e(i);n[r]=t[i]}),n}function d7(t,e,n,i){for(var r=e.length,s=de(e),a=[],u=0,d=Object.keys(t);u=n&&(_[r]=String(y+i),a.push({oldPointer:m,newPointer:de(_),value:t[m]}))}}if(0===a.length)return t;var x=yn({},t);return a.forEach(function(S){delete x[S.oldPointer]}),a.forEach(function(S){x[S.newPointer]=S.value}),x}function jL(t,e){var n={};return Object.keys(e).filter(function(i){return te(t,ci(t,i))}).forEach(function(i){n[i]=e[i]}),n}function tte(t,e,n){var i=t[e];if(e in t){var r=n(i);if(!zs(i,r)){var s=yn({},t);return void 0===r?delete s[e]:s[e]=r,s}}return t}function nte(t,e,n){return function(i){for(var r=i.slice(0),s=1;se?i.start+n:i.start,end:i.end>e?i.end+n:i.end}}))}function V0(t,e,n,i){var s,r=e?e[n]:void 0;return"boolean"==typeof r?r:"string"==typeof(s=t)&&"string"!=typeof s7(s,i)}function yb(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.indexOf(e);return-1!==i?t.slice(n?i:i+1):[]}function FL(t,e){var n=[];return function i(r,s){n.push(s);var a=de(s);if(r&&!0===e.expandedMap[a]){if(Be(r)){var u=Rk(e,a);LL(r,u,function(d){i(r[d],s.concat(String(d)))})}he(r)&&Object.keys(r).forEach(function(d){i(r[d],s.concat(d))})}}(t,[]),n}function ite(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=[];return function r(s,a){i.push({path:a,type:C4.value});var u=de(a);if(s&&!0===e.expandedMap[u]){if(n&&i.push({path:a,type:C4.inside}),Be(s)){var d=Rk(e,u);LL(s,d,function(m){var _=a.concat(String(m));r(s[m],_),n&&i.push({path:_,type:C4.after})})}he(s)&&Object.keys(s).forEach(function(m){var _=a.concat(m);i.push({path:_,type:C4.key}),r(s[m],_),n&&i.push({path:_,type:C4.after})})}}(t,[]),i}function BL(t,e,n){var i=FL(t,e),r=i.map(de).indexOf(de(n));return-1!==r&&rn?e.focusPath:e.anchorPath}function ste(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.selection;if(!i)return null;var _,y,x,S,D,r=n?mr(i):A0(t,i),s=(_=r,x=(y=FL(t,e)).map(de),S=de(_),-1!==(D=x.indexOf(S))&&D>0?y[D-1]:null);if(n)return Dl(i)||Cu(i)?null!==s?y2(r,r):null:null!==s?y2(qp(i),s):null;if(Cu(i)||Dl(i))return Bs(r,!1);if(dl(i)){if(null==s||0===s.length)return null;var u=nt(t,Ls(s));return Array.isArray(u)||Zs(s)?Bs(s,!1):Pd(s,!1)}return po(i),null!==s?Bs(s,!1):null}function ote(t,e,n){var i=e.selection;if(!i)return{caret:null,previous:null,next:null};var r=ite(t,e,n),s=r.findIndex(function(a){return zs(a.path,mr(i))&&String(a.type)===String(i.type)});return{caret:-1!==s?r[s]:null,previous:-1!==s&&s>0?r[s-1]:null,next:-1!==s&&sn[i].length;)i++;var r=n[i];return void 0===r||0===r.length||Array.isArray(nt(t,Ls(r)))?Bs(r,!1):Pd(r,!1)}function h7(t,e){if(1===e.length){var n=G2(e);if("replace"===n.op)return Bs(ci(t,n.path),!1)}if(!Zs(e)&&e.every(function(a){return"move"===a.op})){var i=G2(e),r=e.slice(1);if((jt(i)||Wt(i))&&i.from!==i.path&&r.every(function(a){return(jt(a)||Wt(a))&&a.from===a.path}))return Pd(ci(t,i.path),!1)}var s=e.filter(function(a){return"test"!==a.op&&"remove"!==a.op&&("move"!==a.op||a.from!==a.path)&&"string"==typeof a.path}).map(function(a){return ci(t,a.path)});return Zs(s)?null:{type:Wa.multi,anchorPath:G2(s),focusPath:Ur(s)}}function ate(t,e){for(var n=0;nn.length&&e.length>n.length;return{type:Wa.multi,anchorPath:i?n.concat(t[n.length]):n,focusPath:i?n.concat(e[n.length]):n}}function lte(t,e,n,i){if(dl(e))return String(Ur(e.path));if(po(e)){var r,s=nt(t,e.path);return"string"==typeof s?s:null!==(r=i.stringify(s,null,n))&&void 0!==r?r:null}if(Ca(e)){var a;if(Zs(e.focusPath))return null!==(a=i.stringify(t,null,n))&&void 0!==a?a:null;var u=rte(e),d=nt(t,u);if(Array.isArray(d)){if(Nk(e)){var m,_=nt(t,e.focusPath);return null!==(m=i.stringify(_,null,n))&&void 0!==m?m:null}return Rh(t,e).map(function(y){var x=nt(t,y);return"".concat(i.stringify(x,null,n),",")}).join("\n")}return Rh(t,e).map(function(y){var x=Ur(y),S=nt(t,y);return"".concat(i.stringify(x),": ").concat(i.stringify(S,null,n),",")}).join("\n")}return null}function C2(t){return(dl(t)||po(t))&&!0===t.edit}function p7(t){return dl(t)||po(t)||Ca(t)}function jk(t){return dl(t)||po(t)||Nk(t)}function GL(t){switch(t.type){case C4.key:return Pd(t.path,!1);case C4.value:return Bs(t.path,!1);case C4.after:return H0(t.path);case C4.inside:return O0(t.path)}}function ute(t,e,n){switch(e){case Wa.key:return Pd(n,!1);case Wa.value:return Bs(n,!1);case Wa.after:return H0(n);case Wa.inside:return O0(n);case Wa.multi:case Wa.text:return y2(n,n)}}function dte(t,e,n){return e&&(xb(t,e,n)||I0(Ca(e)?Ls(e.focusPath):e.path,n))?e:null}function xb(t,e,n){if(void 0===t||!e)return!1;if(dl(e)||Dl(e)||Cu(e))return zs(e.path,n);if(po(e))return I0(n,e.path);if(Ca(e)){var i=A0(t,e),r=Nh(t,e),s=Ls(e.focusPath);if(!I0(n,s)||n.length<=s.length)return!1;var a=L0(t,e,i),u=L0(t,e,r),d=L0(t,e,n);return-1!==d&&d>=a&&d<=u}return!1}function L0(t,e,n){var i=Ls(e.focusPath);if(!I0(n,i)||n.length<=i.length)return-1;var r=n[i.length],s=nt(t,i);if(he(s))return Object.keys(s).indexOf(r);if(Be(s)){var a=Q1(r);if(a0?0:-1,a=e.map(function(d,m){return yn(yn({},d),{},{active:m===s})}),u=a[s];return{items:a,itemsMap:rh(a,function(d){return de(d.path)}),activeItem:u,activeIndex:s}}function _te(t){var e=t.activeIndex0?0:-1,n=t.items[e],i=t.items.map(function(r,s){return yn(yn({},r),{},{active:s===e})});return yn(yn({},t),{},{items:i,itemsMap:rh(i,function(r){return de(r.path)}),activeItem:n,activeIndex:e})}function TRe(t){var e=t.activeIndex>0?t.activeIndex-1:t.items.length-1,n=t.items[e],i=t.items.map(function(r,s){return yn(yn({},r),{},{active:s===e})});return yn(yn({},t),{},{items:i,itemsMap:rh(i,function(r){return de(r.path)}),activeItem:n,activeIndex:e})}function bte(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.toLowerCase(),s=null!==(n=i?.maxResults)&&void 0!==n?n:1/0,a=i?.columns,u=[],d=[];function m($){u.length>=s||u.push($)}function _($,W){if(Be(W)){var re=d.length;d.push("0");for(var se=0;se=s)return;d.pop()}else if(he(W)){var ke=Object.keys(W),ye=d.length;d.push("");for(var Ye=0,lt=ke;Ye=s)return}d.pop()}else yte(String(W),$,d,x4.value,m)}if(""===t)return[];if(a){if(!Array.isArray(e))throw new Error("json must be an Array when option columns is defined");for(var y=0;yD.length+1;)d.pop();_(r,nt(x,D))}if(u.length>=s)break}return u}return _(r,e),u}function yte(t,e,n,i,r){var s=t.toLowerCase(),a=0,u=-1,d=-1;do{-1!==(d=s.indexOf(e,u))&&(u=d+e.length,r({path:n.slice(0),field:i,fieldIndex:a,start:d,end:u}),a++)}while(-1!==d)}function XL(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function Cte(t,e,n){var i=t;return dp(n,function(r){i=XL(i,e,r.start,r.end)}),i}function VRe(t,e,n,i,r){var s=i.field,a=i.path,u=i.start,d=i.end;if(s===x4.key){var m=Ls(a),_=nt(t,m),y=Ur(a),x=Mb(m,Object.keys(_),y,XL(y,n,u,d));return{newSelection:h7(t,x),operations:x}}if(s===x4.value){var S=nt(t,a);if(void 0===S)throw new Error("Cannot replace: path not found ".concat(de(a)));var D="string"==typeof S?S:String(S),z=de(a),$=V0(S,e.enforceStringMap,z,r),W=XL(D,n,u,d),re=[{op:"replace",path:de(a),value:$?W:s7(W,r)}];return{newSelection:h7(t,re),operations:re}}throw new Error("Cannot replace: unknown type of search result field ".concat(s))}function ARe(t,e,n,i,r){for(var s=bte(n,t,{maxResults:1/0}),a=[],u=0;ue.floating[s]&&(a=Kk(a)),[a,Kk(a)]}function nNe(t){var e=Kk(t);return[QL(t),e,QL(e)]}function QL(t){return t.replace(/start|end/g,function(e){return eNe[e]})}function iNe(t,e,n,i){var r=qk(t),s=function(a,u,d){var m=["left","right"],_=["right","left"];switch(a){case"top":case"bottom":return d?u?_:m:u?m:_;case"left":case"right":return u?["top","bottom"]:["bottom","top"];default:return[]}}(Yp(t),"start"===n,i);return r&&(s=s.map(function(a){return a+"-"+r}),e&&(s=s.concat(s.map(QL)))),s}function Kk(t){return t.replace(/left|right|bottom|top/g,function(e){return ZRe[e]})}function rNe(t){return"number"!=typeof t?yn({top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t}}function Yk(t){return yn(yn({},t),{},{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function Vte(t,e,n){var i,r=t.reference,s=t.floating,a=Xk(e),u=Tte(e),d=Dte(u),m=Yp(e),_="y"===a,y=r.x+r.width/2-s.width/2,x=r.y+r.height/2-s.height/2,S=r[d]/2-s[d]/2;switch(m){case"top":i={x:y,y:r.y-s.height};break;case"bottom":i={x:y,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:x};break;case"left":i={x:r.x-s.width,y:x};break;default:i={x:r.x,y:r.y}}switch(qk(e)){case"start":i[u]-=S*(n&&_?-1:1);break;case"end":i[u]+=S*(n&&_?-1:1)}return i}var sNe=function(){var t=es(gi().mark(function e(n,i,r){var s,a,u,d,m,y,x,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,wt,Dt,ut;return gi().wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return a=void 0===(s=r.placement)?"bottom":s,d=void 0===(u=r.strategy)?"absolute":u,y=r.platform,x=(void 0===(m=r.middleware)?[]:m).filter(Boolean),Ut.next=4,null==y.isRTL?void 0:y.isRTL(i);case 4:return S=Ut.sent,Ut.next=7,y.getElementRects({reference:n,floating:i,strategy:d});case 7:z=Vte(D=Ut.sent,a,S),$=z.x,W=z.y,re=a,se={},ke=0,ye=0;case 13:if(!(ye"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Qk(t){return["html","body","#document"].includes(jh(t))}function jd(t){return ed(t).getComputedStyle(t)}function Jk(t){return R0(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function g7(t){if("html"===jh(t))return t;var e=t.assignedSlot||t.parentNode||Ote(t)&&t.host||z0(t);return Ote(e)?e.host:e}function Hte(t){var e=g7(t);return Qk(e)?t.ownerDocument?t.ownerDocument.body:t.body:A3(e)&&kb(e)?e:Hte(e)}function Eb(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);var r=Hte(t),s=r===(null==(i=t.ownerDocument)?void 0:i.body),a=ed(r);return s?e.concat(a,a.visualViewport||[],kb(r)?r:[],a.frameElement&&n?Eb(a.frameElement):[]):e.concat(r,Eb(r,[],n))}function Lte(t){var e=jd(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,r=A3(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:i,u=Uk(n)!==s||Uk(i)!==a;return u&&(n=s,i=a),{width:n,height:i,$:u}}function nz(t){return R0(t)?t:t.contextElement}function v7(t){var e=nz(t);if(!A3(e))return Ph(1);var n=e.getBoundingClientRect(),i=Lte(e),r=i.width,s=i.height,a=i.$,u=(a?Uk(n.width):n.width)/r,d=(a?Uk(n.height):n.height)/s;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}var cNe=Ph(0);function zte(t){var e=ed(t);return tz()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:cNe}function Qp(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),s=nz(t),a=Ph(1);e&&(i?R0(i)&&(a=v7(i)):a=v7(t));var ye,Ye,u=(void 0===(ye=n)&&(ye=!1),!(Ye=i)||ye&&Ye!==ed(s)||!ye?Ph(0):zte(s)),d=(r.left+u.x)/a.x,m=(r.top+u.y)/a.y,_=r.width/a.x,y=r.height/a.y;if(s)for(var x=ed(s),S=i&&R0(i)?ed(i):i,D=x.frameElement;D&&i&&S!==x;){var z=v7(D),$=D.getBoundingClientRect(),W=jd(D),re=$.left+(D.clientLeft+parseFloat(W.paddingLeft))*z.x,se=$.top+(D.clientTop+parseFloat(W.paddingTop))*z.y;d*=z.x,m*=z.y,_*=z.x,y*=z.y,d+=re,m+=se,D=ed(D).frameElement}return Yk({width:_,height:y,x:d,y:m})}function Rte(t){return Qp(z0(t)).left+Jk(t).scrollLeft}function Nte(t,e,n){var i,s,a,u,d,m,_,y,x;if("viewport"===e)i=function(s,a){var u=ed(s),d=z0(s),m=u.visualViewport,_=d.clientWidth,y=d.clientHeight,x=0,S=0;if(m){_=m.width,y=m.height;var D=tz();(!D||D&&"fixed"===a)&&(x=m.offsetLeft,S=m.offsetTop)}return{width:_,height:y,x,y:S}}(t,n);else if("document"===e)s=z0(t),a=z0(s),u=Jk(s),m=Kp(a.scrollWidth,a.clientWidth,(d=s.ownerDocument.body).scrollWidth,d.clientWidth),_=Kp(a.scrollHeight,a.clientHeight,d.scrollHeight,d.clientHeight),y=-u.scrollLeft+Rte(s),x=-u.scrollTop,"rtl"===jd(d).direction&&(y+=Kp(a.clientWidth,d.clientWidth)-m),i={width:m,height:_,x:y,y:x};else if(R0(e))i=function(s,a){var u=Qp(s,!0,"fixed"===a),d=u.top+s.clientTop,m=u.left+s.clientLeft,_=A3(s)?v7(s):Ph(1);return{width:s.clientWidth*_.x,height:s.clientHeight*_.y,x:m*_.x,y:d*_.y}}(e,n);else{var r=zte(t);i=yn(yn({},e),{},{x:e.x-r.x,y:e.y-r.y})}return Yk(i)}function Pte(t,e){var n=g7(t);return!(n===e||!R0(n)||Qk(n))&&("fixed"===jd(n).position||Pte(n,e))}function lNe(t,e,n){var i=A3(e),r=z0(e),s="fixed"===n,a=Qp(t,!0,s,e),u={scrollLeft:0,scrollTop:0},d=Ph(0);if(i||!i&&!s)if(("body"!==jh(e)||kb(r))&&(u=Jk(e)),i){var m=Qp(e,!0,s,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}else r&&(d.x=Rte(r));return{x:a.left+u.scrollLeft-d.x,y:a.top+u.scrollTop-d.y,width:a.width,height:a.height}}function jte(t,e){return A3(t)&&"fixed"!==jd(t).position?e?e(t):t.offsetParent:null}function Fte(t,e){var n=ed(t);if(!A3(t))return n;for(var i=jte(t,e);i&&aNe(i)&&"static"===jd(i).position;)i=jte(i,e);return i&&("html"===jh(i)||"body"===jh(i)&&"static"===jd(i).position&&!ez(i))?n:i||function(r){for(var s=g7(r);A3(s)&&!Qk(s);){if(ez(s))return s;s=g7(s)}return null}(t)||n}var uNe={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){var e=t.rect,n=t.offsetParent,i=t.strategy,r=A3(n),s=z0(n);if(n===s)return e;var a={scrollLeft:0,scrollTop:0},u=Ph(1),d=Ph(0);if((r||!r&&"fixed"!==i)&&(("body"!==jh(n)||kb(s))&&(a=Jk(n)),A3(n))){var m=Qp(n);u=v7(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-a.scrollLeft*u.x+d.x,y:e.y*u.y-a.scrollTop*u.y+d.y}},getDocumentElement:z0,getClippingRect:function(t){var e=t.element,n=t.boundary,i=t.rootBoundary,r=t.strategy,s="clippingAncestors"===n?function(m,_){var y=_.get(m);if(y)return y;for(var x=Eb(m,[],!1).filter(function(re){return R0(re)&&"body"!==jh(re)}),S=null,D="fixed"===jd(m).position,z=D?g7(m):m;R0(z)&&!Qk(z);){var $=jd(z),W=ez(z);W||"fixed"!==$.position||(S=null),(D?!W&&!S:!W&&"static"===$.position&&S&&["absolute","fixed"].includes(S.position)||kb(z)&&!W&&Pte(m,z))?x=x.filter(function(re){return re!==z}):S=$,z=g7(z)}return _.set(m,x),x}(e,this._c):[].concat(n),a=[].concat(Ts(s),[i]),d=a.reduce(function(m,_){var y=Nte(e,_,r);return m.top=Kp(y.top,m.top),m.right=$k(y.right,m.right),m.bottom=$k(y.bottom,m.bottom),m.left=Kp(y.left,m.left),m},Nte(e,a[0],r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},getOffsetParent:Fte,getElementRects:function(){var t=es(gi().mark(function e(n){var i,r,s,a,u;return gi().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return i=n.reference,r=n.floating,s=n.strategy,a=this.getOffsetParent||Fte,u=this.getDimensions,d.t0=lNe,d.t1=i,d.next=7,a(r);case 7:return d.t2=d.sent,d.t3=s,d.t4=(0,d.t0)(d.t1,d.t2,d.t3),d.t5=yn,d.t6={x:0,y:0},d.next=14,u(r);case 14:return d.t7=d.sent,d.t8=(0,d.t5)(d.t6,d.t7),d.abrupt("return",{reference:d.t4,floating:d.t8});case 17:case"end":return d.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}(),getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){var e=Lte(t);return{width:e.width,height:e.height}},getScale:v7,isElement:R0,isRTL:function(t){return"rtl"===jd(t).direction}},fNe=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn:function(e){return es(gi().mark(function n(){var i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,kt;return gi().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return i=e.x,r=e.y,s=e.placement,a=Wk(t,e),d=void 0===(u=a.mainAxis)||u,_=void 0!==(m=a.crossAxis)&&m,x=void 0===(y=a.limiter)?{fn:function(wt){return{x:wt.x,y:wt.y}}}:y,S=HZ(a,eze),D={x:i,y:r},qt.next=5,Ate(e,S);case 5:return z=qt.sent,$=Xk(Yp(s)),W=Ete($),re=D[W],se=D[$],d&&(re=kte(re+z["y"===W?"top":"left"],re,re-z["y"===W?"bottom":"right"])),_&&(se=kte(se+z["y"===$?"top":"left"],se,se-z["y"===$?"bottom":"right"])),kt=x.fn(yn(yn({},e),{},Ju(Ju({},W,re),$,se))),qt.abrupt("return",yn(yn({},kt),{},{data:{x:kt.x-i,y:kt.y-r}}));case 14:case"end":return qt.stop()}},n)}))()}}},hNe=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn:function(e){return es(gi().mark(function n(){var i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,Lt,et,st,gt,sn,Hn,on;return gi().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(s=e.placement,a=e.middlewareData,u=e.rects,d=e.initialPlacement,m=e.platform,_=e.elements,y=Wk(t,e),S=void 0===(x=y.mainAxis)||x,z=void 0===(D=y.crossAxis)||D,$=y.fallbackPlacements,re=void 0===(W=y.fallbackStrategy)?"bestFit":W,ke=void 0===(se=y.fallbackAxisSideDirection)?"none":se,Ye=void 0===(ye=y.flipAlignment)||ye,lt=HZ(y,ZLe),null==(i=a.arrow)||!i.alignmentOffset){Xt.next=4;break}return Xt.abrupt("return",{});case 4:return Vt=Yp(s),Nt=Yp(d)===d,Xt.next=8,null==m.isRTL?void 0:m.isRTL(_.floating);case 8:return kt=Xt.sent,qt=$||(Nt||!Ye?[Kk(d)]:nNe(d)),$||"none"===ke||qt.push.apply(qt,Ts(iNe(d,Ye,ke,kt))),wt=[d].concat(Ts(qt)),Xt.next=14,Ate(e,lt);case 14:if(Dt=Xt.sent,ut=[],Ut=(null==(r=a.flip)?void 0:r.overflows)||[],S&&ut.push(Dt[Vt]),z&&($t=tNe(s,u,kt),ut.push(Dt[$t[0]],Dt[$t[1]])),Ut=[].concat(Ts(Ut),[{placement:s,overflows:ut}]),ut.every(function(An){return An<=0})){Xt.next=37;break}if(st=((null==(Lt=a.flip)?void 0:Lt.index)||0)+1,!(gt=wt[st])){Xt.next=25;break}return Xt.abrupt("return",{data:{index:st,overflows:Ut},reset:{placement:gt}});case 25:if(sn=null==(et=Ut.filter(function(An){return An.overflows[0]<=0}).sort(function(An,_n){return An.overflows[1]-_n.overflows[1]})[0])?void 0:et.placement){Xt.next=35;break}Xt.t0=re,Xt.next="bestFit"===Xt.t0?30:"initialPlacement"===Xt.t0?33:35;break;case 30:return(on=null==(Hn=Ut.map(function(An){return[An.placement,An.overflows.filter(function(_n){return _n>0}).reduce(function(_n,Zt){return _n+Zt},0)]}).sort(function(An,_n){return An[1]-_n[1]})[0])?void 0:Hn[0])&&(sn=on),Xt.abrupt("break",35);case 33:return sn=d,Xt.abrupt("break",35);case 35:if(s===sn){Xt.next=37;break}return Xt.abrupt("return",{reset:{placement:sn}});case 37:return Xt.abrupt("return",{});case 38:case"end":return Xt.stop()}},n)}))()}}};function mNe(t){var n=t.filterText,i=t.items,r=t.multiple,s=t.value,a=t.itemId,u=t.groupBy,d=t.filterSelectedItems,m=t.itemFilter,_=t.convertStringItemsToObjects,y=t.filterGroupedItems,x=t.label;if(i&&t.loadOptions)return i;if(!i)return[];i&&i.length>0&&"object"!==Cc(i[0])&&(i=_(i));var S=i.filter(function(D){var z=m(D[x],n,D);return z&&r&&null!=s&&s.length&&(z=!s.some(function($){return!!d&&$[a]===D[a]})),z});return u&&(S=y(S)),S}function gNe(t){return iz.apply(this,arguments)}function iz(){return iz=es(gi().mark(function t(e){var n,i,r,s,a;return gi().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return n=e.dispatch,i=e.loadOptions,r=e.convertStringItemsToObjects,s=e.filterText,u.next=3,i(s).catch(function(d){console.warn("svelte-select loadOptions error :>> ",d),n("error",{type:"loadOptions",details:d})});case 3:if(!(a=u.sent)||a.cancelled){u.next=7;break}return a?(a&&a.length>0&&"object"!==Cc(a[0])&&(a=r(a)),n("loaded",{items:a})):a=[],u.abrupt("return",{filteredItems:a,loading:!1,focused:!0,listOpen:!0});case 7:case"end":return u.stop()}},t)})),iz.apply(this,arguments)}function vNe(t){as(t,"svelte-qbd276","svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)}")}function _Ne(t){var e,n;return{c:function(){e=S3("svg"),ce(n=S3("path"),"fill","currentColor"),ce(n,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),ce(e,"width","100%"),ce(e,"height","100%"),ce(e,"viewBox","0 0 20 20"),ce(e,"focusable","false"),ce(e,"aria-hidden","true"),ce(e,"class","svelte-qbd276")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:hi,i:hi,o:hi,d:function(i){i&&At(e)}}}var bNe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,null,_Ne,n1,{},vNe),i}return br(e,Cr),pr(e)}();function yNe(t){as(t,"svelte-whdbu1","svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)}")}function CNe(t){var e,n;return{c:function(){e=S3("svg"),ce(n=S3("path"),"fill","currentColor"),ce(n,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),ce(e,"width","100%"),ce(e,"height","100%"),ce(e,"viewBox","-2 -2 50 50"),ce(e,"focusable","false"),ce(e,"aria-hidden","true"),ce(e,"role","presentation"),ce(e,"class","svelte-whdbu1")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:hi,i:hi,o:hi,d:function(i){i&&At(e)}}}var Zk=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,null,CNe,n1,{},yNe),i}return br(e,Cr),pr(e)}();function xNe(t){as(t,"svelte-1p3nqvd",".loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}}")}function wNe(t){var e,n;return{c:function(){e=S3("svg"),ce(n=S3("circle"),"class","circle_path svelte-1p3nqvd"),ce(n,"cx","50"),ce(n,"cy","50"),ce(n,"r","20"),ce(n,"fill","none"),ce(n,"stroke","currentColor"),ce(n,"stroke-width","5"),ce(n,"stroke-miterlimit","10"),ce(e,"class","loading svelte-1p3nqvd"),ce(e,"viewBox","25 25 50 50")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:hi,i:hi,o:hi,d:function(i){i&&At(e)}}}var MNe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,null,wNe,n1,{},xNe),i}return br(e,Cr),pr(e)}();function SNe(t){as(t,"svelte-82qwg8",".svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--groupTitleBorderColor:var(--group-title-border-color);--groupTitleBorderWidth:var(--group-title-border-width);--groupTitleBorderStyle:var(--group-title-border-style);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px);max-height:var(--max-height)}.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:var(--value-container-padding, 5px 0);position:relative;overflow:var(--value-container-overflow, hidden);align-self:stretch}.prepend.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex-shrink:0;align-items:center}.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:var(--indicators-position);top:var(--indicators-top);right:var(--indicators-right);bottom:var(--indicators-bottom)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-82qwg8:not(.multi)>.value-container.svelte-82qwg8>input.svelte-82qwg8{width:100%;height:100%}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.svelte-select.focused.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-82qwg8 .selected-item.svelte-82qwg8.svelte-82qwg8{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.hide-selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0}.icon.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;pointer-events:none}.list-group-title.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase);border-width:var(--group-title-border-width, medium);border-style:var(--group-title-border-style, none);border-color:var(--group-title-border-color, color)}.empty.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.hover.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.active.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0}")}var kNe=function(t){return{value:8&t[0]}},Bte=function(t){return{value:t[3]}},ENe=function(t){return{value:8&t[0]}},$te=function(t){return{value:t[3]}},DNe=function(t){return{listOpen:64&t[0]}},Ute=function(t){return{listOpen:t[6]}},TNe=function(t){return{}},Gte=function(t){return{}},VNe=function(t){return{}},Wte=function(t){return{}},ANe=function(t){return{selection:8&t[0]}},qte=function(t){return{selection:t[3]}};function Xte(t,e,n){var i=t.slice();return i[126]=e[n],i[128]=n,i}var INe=function(t){return{}},Kte=function(t){return{}},ONe=function(t){return{selection:8&t[0]}},Yte=function(t){return{selection:t[126],index:t[128]}},HNe=function(t){return{}},Qte=function(t){return{}},LNe=function(t){return{}},Jte=function(t){return{}},zNe=function(t){return{}},Zte=function(t){return{}};function ene(t,e,n){var i=t.slice();return i[126]=e[n],i[128]=n,i}var RNe=function(t){return{item:16777216&t[0]}},tne=function(t){return{item:t[126],index:t[128]}},NNe=function(t){return{filteredItems:16777216&t[0]}},nne=function(t){return{filteredItems:t[24]}},PNe=function(t){return{}},ine=function(t){return{}};function rne(t){var e,n,i,r,s,a,u,d,m=t[50]["list-prepend"]&&sne(t),_=[BNe,FNe,jNe],y=[];function x(D,z){return D[50].list?0:D[24].length>0?1:D[19]?-1:2}~(i=x(t))&&(r=y[i]=_[i](t));var S=t[50]["list-append"]&&ane(t);return{c:function(){e=pt("div"),m&&m.c(),n=gn(),r&&r.c(),s=gn(),S&&S.c(),ce(e,"class","svelte-select-list svelte-82qwg8"),ce(e,"role","none"),$n(e,"prefloat",t[28])},m:function(D,z){Ht(D,e,z),m&&m.m(e,null),Ge(e,n),~i&&y[i].m(e,null),Ge(e,s),S&&S.m(e,null),t[91](e),a=!0,u||(d=[$l(t[49].call(null,e)),ei(e,"scroll",t[41]),ei(e,"pointerup",y4(jp(t[85]))),ei(e,"mousedown",y4(jp(t[86])))],u=!0)},p:function(D,z){D[50]["list-prepend"]?m?(m.p(D,z),524288&z[1]&&Me(m,1)):((m=sne(D)).c(),Me(m,1),m.m(e,n)):m&&(si(),je(m,1,1,function(){m=null}),oi());var $=i;(i=x(D))===$?~i&&y[i].p(D,z):(r&&(si(),je(y[$],1,1,function(){y[$]=null}),oi()),~i?((r=y[i])?r.p(D,z):(r=y[i]=_[i](D)).c(),Me(r,1),r.m(e,s)):r=null),D[50]["list-append"]?S?(S.p(D,z),524288&z[1]&&Me(S,1)):((S=ane(D)).c(),Me(S,1),S.m(e,null)):S&&(si(),je(S,1,1,function(){S=null}),oi()),(!a||268435456&z[0])&&$n(e,"prefloat",D[28])},i:function(D){a||(Me(m),Me(r),Me(S),a=!0)},o:function(D){je(m),je(r),je(S),a=!1},d:function(D){D&&At(e),m&&m.d(),~i&&y[i].d(),S&&S.d(),t[91](null),u=!1,ma(d)}}}function sne(t){var e,n=t[83]["list-prepend"],i=jc(n,t,t[82],ine);return{c:function(){i&&i.c()},m:function(r,s){i&&i.m(r,s),e=!0},p:function(r,s){i&&i.p&&(!e||1048576&s[2])&&Bc(i,n,r,r[82],e?Fc(n,r[82],s,PNe):$c(r[82]),ine)},i:function(r){e||(Me(i,r),e=!0)},o:function(r){je(i,r),e=!1},d:function(r){i&&i.d(r)}}}function jNe(t){var e,n,i=t[83].empty,r=jc(i,t,t[82],Zte),s=r||{c:function(){(n=pt("div")).textContent="No options",ce(n,"class","empty svelte-82qwg8")},m:function(a,u){Ht(a,n,u)},p:hi,d:function(a){a&&At(n)}};return{c:function(){s&&s.c()},m:function(a,u){s&&s.m(a,u),e=!0},p:function(a,u){r&&r.p&&(!e||1048576&u[2])&&Bc(r,i,a,a[82],e?Fc(i,a[82],u,zNe):$c(a[82]),Zte)},i:function(a){e||(Me(s,a),e=!0)},o:function(a){je(s,a),e=!1},d:function(a){s&&s.d(a)}}}function FNe(t){for(var e,n,i=cs(t[24]),r=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:1;clearTimeout(x),x=setTimeout(Yt,Wi)}:Bh,S7=e.debounceWait,$d=void 0===S7?300:S7,N0=e.hideEmptyState,P0=void 0!==N0&&N0,j0=e.inputAttributes,td=void 0===j0?{}:j0,Vl=e.listAutoWidth,F0=void 0===Vl||Vl,em=e.showChevron,I3=void 0!==em&&em,B0=e.listOffset,$h=void 0===B0?5:B0,Et=e.hoverItemIndex,Ln=void 0===Et?0:Et,Hi=e.floatingConfig,Bi=void 0===Hi?{}:Hi,Xi=e.class,Us=void 0===Xi?"":Xi;function Lo(Yt){var Wi=[],Qr={};Yt.forEach(function(Cs){var Ks=tc(Cs);Wi.includes(Ks)||(Wi.push(Ks),Qr[Ks]=[],Ks&&Qr[Ks].push(Object.assign(Fi(Ks,Cs),{id:Ks,groupHeader:!0,selectable:s1}))),Qr[Ks].push(Object.assign({groupItem:!!Ks},Cs))});var Go=[];return I1(Wi).forEach(function(Cs){Qr[Cs]&&Go.push.apply(Go,Ts(Qr[Cs]))}),Go}function aa(){var Yt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Wi=arguments.length>1?arguments[1]:void 0;n(7,Ln=Yt<0?0:Yt),!Wi&&tc&&m[Ln]&&!m[Ln].selectable&&b1(1)}function ct(){var Yt=!0;if(En){var Wi=[],Qr=[];En.forEach(function(Go){Wi.includes(Go[Ho])?Yt=!1:(Wi.push(Go[Ho]),Qr.push(Go))}),Yt||n(3,En=Qr)}return Yt}function mn(Yt){var Wi=Yt?Yt[Ho]:En[Ho];return oa.find(function(Qr){return Qr[Ho]===Wi})}function Fn(Yt){return vi.apply(this,arguments)}function vi(){return(vi=es(gi().mark(function Yt(Wi){var Qr;return gi().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:Qr=En[Wi],n(3,En=1===En.length?void 0:En.filter(function(Cs){return Cs!==Qr})),lt("clear",Qr);case 3:case"end":return Go.stop()}},Yt)}))).apply(this,arguments)}function Ti(Yt){var Wi,Qr;zi&&sn===(null===(Wi=document)||void 0===Wi?void 0:Wi.activeElement)||(Yt&<("focus",Yt),null===(Qr=sn)||void 0===Qr||Qr.focus(),n(2,zi=!0))}function Ri(Yt){return ts.apply(this,arguments)}function ts(){return(ts=es(gi().mark(function Yt(Wi){var Qr;return gi().wrap(function(Go){for(;;)switch(Go.prev=Go.next){case 0:if(!hl){Go.next=2;break}return Go.abrupt("return");case 2:(ys||zi)&&(lt("blur",Wi),cr(),n(2,zi=!1),n(26,S=void 0),null===(Qr=sn)||void 0===Qr||Qr.blur());case 3:case"end":return Go.stop()}},Yt)}))).apply(this,arguments)}function cr(){a1&&n(4,Pr=""),n(6,ys=!1)}re=es(gi().mark(function Yt(){return gi().wrap(function(Wi){for(;;)switch(Wi.prev=Wi.next){case 0:n(78,D=En),n(79,z=Pr),n(80,$=on);case 3:case"end":return Wi.stop()}},Yt)})),Z5().$$.before_update.push(re),Hd(function(){ys&&n(2,zi=!0),zi&&sn&&sn.focus()});var _a,os=e.ariaValues,Zc=void 0===os?function(Yt){return"Option ".concat(Yt,", selected.")}:os,Ha=e.ariaListOpen,el=void 0===Ha?function(Yt,Wi){return"You are currently focused on option ".concat(Yt,". There are ").concat(Wi," results available.")}:Ha,w2=e.ariaFocused,Ns=void 0===w2?function(){return"Select is focused, type to refine list, press down to open the menu."}:w2,Al=null;function To(){clearTimeout(_a),_a=setTimeout(function(){hl=!1},100)}Zu(function(){var Yt;null===(Yt=Al)||void 0===Yt||Yt.remove()});var hl=!1;function k4(Yt){Yt&&!1!==Yt.selectable&&function(Wi){if(Wi){n(4,Pr="");var Qr=Object.assign({},Wi);if(Qr.groupHeader&&!Qr.selectable)return;n(3,En=on?En?En.concat([Qr]):[Qr]:n(3,En=Qr)),setTimeout(function(){J1&&cr(),n(26,S=void 0),lt("change",En),lt("select",Wi)})}}(Yt)}function nd(Yt){hl||n(7,Ln=Yt)}function k7(Yt){var Go,Wi=Yt.item,Qr=Yt.i;if(!1!==Wi?.selectable)return En&&!on&&En[Ho]===Wi[Ho]?cr():void(((Go=Wi).groupHeader&&Go.selectable||Go.selectable||!Go.hasOwnProperty("selectable"))&&(n(7,Ln=Qr),k4(Wi)))}function b1(Yt){if(0===m.filter(function(Qr){return!Object.hasOwn(Qr,"selectable")||!0===Qr.selectable}).length)return n(7,Ln=0);n(7,Yt>0&&Ln===m.length-1?Ln=0:Yt<0&&0===Ln?Ln=m.length-1:Ln+=Yt);var Wi=m[Ln];Wi&&!1===Wi.selectable&&(1!==Yt&&-1!==Yt||b1(Yt))}var id=Uh,O3=Uh;function Uh(Yt){return{update:function(Wi){Wi.scroll&&(To(),Yt.scrollIntoView({behavior:"auto",block:"nearest"}))}}}var eu,Yt,Wi,Qr,Go,Cs,Ks,nc,E4={strategy:"absolute",placement:"bottom-start",middleware:[(eu=$h,void 0===eu&&(eu=0),{name:"offset",options:eu,fn:function(Yt){return es(gi().mark(function Wi(){var Qr,Go,Cs,Ks,nc,nm,c1;return gi().wrap(function(Il){for(;;)switch(Il.prev=Il.next){case 0:return Cs=Yt.x,Ks=Yt.y,nc=Yt.placement,nm=Yt.middlewareData,Il.next=3,oNe(Yt,eu);case 3:if(c1=Il.sent,nc!==(null==(Qr=nm.offset)?void 0:Qr.placement)||null==(Go=nm.arrow)||!Go.alignmentOffset){Il.next=6;break}return Il.abrupt("return",{});case 6:return Il.abrupt("return",{x:Cs+c1.x,y:Ks+c1.y,data:yn(yn({},c1),{},{placement:nc})});case 7:case"end":return Il.stop()}},Wi)}))()}}),hNe(),fNe()],autoUpdate:!1},Hb=(Go={autoUpdate:!0},Cs=Yt=E4,Ks=function(c1){return yn(yn(yn({},Go),Yt||{}),c1||{})},nc=function(c1){Wi&&Qr&&(Cs=Ks(c1),function(t,e,n){var i=new Map,r=yn({platform:uNe},n),s=yn(yn({},r.platform),{},{_c:i});return sNe(t,e,yn(yn({},r),{},{platform:s}))}(Wi,Qr,Cs).then(function(Il){var rd;Object.assign(Qr.style,{position:Il.strategy,left:"".concat(Il.x,"px"),top:"".concat(Il.y,"px")}),null!==(rd=Cs)&&void 0!==rd&&rd.onComputed&&Cs.onComputed(Il)}))},[function(c1){if("subscribe"in c1)return function(c1){Zu(c1.subscribe(function(Il){void 0===Wi?(Wi=Il,nc()):(Object.assign(Wi,Il),nc())}))}(c1),{};Wi=c1,nc()},function(c1,Il){var rd;Qr=c1,Cs=Ks(Il),setTimeout(function(){return nc(Il)},0),nc(Il);var E7=function(){rd&&(rd(),rd=void 0)},dE=function(){var Gh=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cs||{}).autoUpdate;E7(),!1!==Gh&&El().then(function(){return function dNe(t,e,n,i){void 0===i&&(i={});var s=i.ancestorScroll,a=void 0===s||s,u=i.ancestorResize,d=void 0===u||u,m=i.elementResize,_=void 0===m?"function"==typeof ResizeObserver:m,y=i.layoutShift,x=void 0===y?"function"==typeof IntersectionObserver:y,S=i.animationFrame,D=void 0!==S&&S,z=nz(t),$=a||d?[].concat(Ts(z?Eb(z):[]),Ts(Eb(e))):[];$.forEach(function(Ye){a&&Ye.addEventListener("scroll",n,{passive:!0}),d&&Ye.addEventListener("resize",n)});var W,re=z&&x?function(Ye,lt){var Vt,Nt=null,kt=z0(Ye);function qt(){clearTimeout(Vt),Nt&&Nt.disconnect(),Nt=null}return function wt(Dt,ut){void 0===Dt&&(Dt=!1),void 0===ut&&(ut=1),qt();var Ut=Ye.getBoundingClientRect(),$t=Ut.left,Lt=Ut.top,et=Ut.width,st=Ut.height;if(Dt||lt(),et&&st){var gt={rootMargin:-Gk(Lt)+"px "+-Gk(kt.clientWidth-($t+et))+"px "+-Gk(kt.clientHeight-(Lt+st))+"px "+-Gk($t)+"px",threshold:Kp(0,$k(1,ut))||1},sn=!0;try{Nt=new IntersectionObserver(Hn,yn(yn({},gt),{},{root:kt.ownerDocument}))}catch{Nt=new IntersectionObserver(Hn,gt)}Nt.observe(Ye)}function Hn(on){var Xt=on[0].intersectionRatio;if(Xt!==ut){if(!sn)return wt();Xt?wt(!1,Xt):Vt=setTimeout(function(){wt(!1,1e-7)},100)}sn=!1}}(!0),qt}(z,n):null,se=-1,ke=null;_&&(ke=new ResizeObserver(function(Ye){var lt=ds(Ye,1)[0];lt&<.target===z&&ke&&(ke.unobserve(e),cancelAnimationFrame(se),se=requestAnimationFrame(function(){ke&&ke.observe(e)})),n()}),z&&!D&&ke.observe(z),ke.observe(e));var ye=D?Qp(t):null;return D&&function Ye(){var lt=Qp(t);!ye||lt.x===ye.x&<.y===ye.y&<.width===ye.width&<.height===ye.height||n(),ye=lt,W=requestAnimationFrame(Ye)}(),n(),function(){$.forEach(function(Ye){a&&Ye.removeEventListener("scroll",n),d&&Ye.removeEventListener("resize",n)}),re&&re(),ke&&ke.disconnect(),ke=null,D&&cancelAnimationFrame(W)}}(Wi,Qr,function(){return nc(Cs)},!0===Gh?{}:Gh)})};return rd=dE(),{update:function(Gh){nc(Gh),rd=dE(Gh)},destroy:function(){E7()}}},nc]),tm=ds(Hb,3),Lb=tm[0],Mz=tm[1],Sz=tm[2],zb=!0;return t.$$set=function(Yt){"justValue"in Yt&&n(52,Nt=Yt.justValue),"filter"in Yt&&n(53,qt=Yt.filter),"getItems"in Yt&&n(54,Dt=Yt.getItems),"id"in Yt&&n(55,Ut=Yt.id),"name"in Yt&&n(8,Lt=Yt.name),"container"in Yt&&n(0,st=Yt.container),"input"in Yt&&n(1,sn=Yt.input),"multiple"in Yt&&n(9,on=Yt.multiple),"multiFullItemClearable"in Yt&&n(10,An=Yt.multiFullItemClearable),"disabled"in Yt&&n(11,Zt=Yt.disabled),"focused"in Yt&&n(2,zi=Yt.focused),"value"in Yt&&n(3,En=Yt.value),"filterText"in Yt&&n(4,Pr=Yt.filterText),"placeholder"in Yt&&n(56,Qo=Yt.placeholder),"placeholderAlwaysShow"in Yt&&n(57,Yr=Yt.placeholderAlwaysShow),"items"in Yt&&n(51,oa=Yt.items),"label"in Yt&&n(12,qi=Yt.label),"itemFilter"in Yt&&n(58,Mi=Yt.itemFilter),"groupBy"in Yt&&n(59,tc=Yt.groupBy),"groupFilter"in Yt&&n(60,I1=Yt.groupFilter),"groupHeaderSelectable"in Yt&&n(61,s1=Yt.groupHeaderSelectable),"itemId"in Yt&&n(13,Ho=Yt.itemId),"loadOptions"in Yt&&n(62,fc=Yt.loadOptions),"containerStyles"in Yt&&n(14,Oa=Yt.containerStyles),"hasError"in Yt&&n(15,Z2=Yt.hasError),"filterSelectedItems"in Yt&&n(63,Wl=Yt.filterSelectedItems),"required"in Yt&&n(16,Jc=Yt.required),"closeListOnChange"in Yt&&n(64,J1=Yt.closeListOnChange),"clearFilterTextOnBlur"in Yt&&n(65,a1=Yt.clearFilterTextOnBlur),"createGroupHeaderItem"in Yt&&n(66,Fi=Yt.createGroupHeaderItem),"searchable"in Yt&&n(17,Fo=Yt.searchable),"inputStyles"in Yt&&n(18,Dn=Yt.inputStyles),"clearable"in Yt&&n(68,Yi=Yt.clearable),"loading"in Yt&&n(5,to=Yt.loading),"listOpen"in Yt&&n(6,ys=Yt.listOpen),"debounce"in Yt&&n(69,S4=Yt.debounce),"debounceWait"in Yt&&n(70,$d=Yt.debounceWait),"hideEmptyState"in Yt&&n(19,P0=Yt.hideEmptyState),"inputAttributes"in Yt&&n(71,td=Yt.inputAttributes),"listAutoWidth"in Yt&&n(72,F0=Yt.listAutoWidth),"showChevron"in Yt&&n(20,I3=Yt.showChevron),"listOffset"in Yt&&n(73,$h=Yt.listOffset),"hoverItemIndex"in Yt&&n(7,Ln=Yt.hoverItemIndex),"floatingConfig"in Yt&&n(74,Bi=Yt.floatingConfig),"class"in Yt&&n(21,Us=Yt.class),"ariaValues"in Yt&&n(75,Zc=Yt.ariaValues),"ariaListOpen"in Yt&&n(76,el=Yt.ariaListOpen),"ariaFocused"in Yt&&n(77,Ns=Yt.ariaFocused),"$$scope"in Yt&&n(82,ye=Yt.$$scope)},t.$$.update=function(){var Yt,Wi,Qr,Go;8&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&En&&function(){if("string"==typeof En){var Cs=(oa||[]).find(function(Ks){return Ks[Ho]===En});n(3,En=Cs||Ju(Ju({},Ho,En),"label",En))}else on&&Array.isArray(En)&&En.length>0&&n(3,En=En.map(function(Ks){return"string"==typeof Ks?{value:Ks,label:Ks}:Ks}))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!td&&Fo||(n(27,W=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},td)),Ut&&n(27,W.id=Ut,W),Fo||n(27,W.readonly=!0,W))),512&t.$$.dirty[0]&&on&&En&&(Array.isArray(En)?n(3,En=Ts(En)):n(3,En=[En])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&$&&!on&&En&&n(3,En=null),520&t.$$.dirty[0]&&on&&En&&En.length>1&&ct(),8&t.$$.dirty[0]&&En&&(on?JSON.stringify(En)!==JSON.stringify(D)&&ct()&<("input",En):D&&JSON.stringify(En[Ho])===JSON.stringify(D[Ho])||lt("input",En)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!En&&on&&D&<("input",En),6&t.$$.dirty[0]&&!zi&&sn&&cr(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&Pr!==z&&(fc||0!==Pr.length)&&(fc?S4(es(gi().mark(function Cs(){var Ks;return gi().wrap(function(nc){for(;;)switch(nc.prev=nc.next){case 0:return n(5,to=!0),nc.next=3,Dt({dispatch:lt,loadOptions:fc,convertStringItemsToObjects:gne,filterText:Pr});case 3:(Ks=nc.sent)?(n(5,to=Ks.loading),n(6,ys=ys?Ks.listOpen:Pr.length>0),n(2,zi=ys&&Ks.focused),n(51,oa=tc?Lo(Ks.filteredItems):Ks.filteredItems)):(n(5,to=!1),n(2,zi=!0),n(6,ys=!0));case 5:case"end":return nc.stop()}},Cs)})),$d):(n(6,ys=!0),on&&n(26,S=void 0))),12824&t.$$.dirty[0]|407896064&t.$$.dirty[1]|3&t.$$.dirty[2]&&n(24,m=qt({loadOptions:fc,filterText:Pr,items:oa,multiple:on,value:En,itemId:Ho,groupBy:tc,label:qi,filterSelectedItems:Wl,itemFilter:Mi,convertStringItemsToObjects:gne,filterGroupedItems:Lo})),16777800&t.$$.dirty[0]&&!on&&ys&&En&&m&&aa(m.findIndex(function(Cs){return Cs[Ho]===En[Ho]}),!0),576&t.$$.dirty[0]&&ys&&on&&n(7,Ln=0),16&t.$$.dirty[0]&&Pr&&n(7,Ln=0),128&t.$$.dirty[0]&<("hoverItem",Ln),520&t.$$.dirty[0]&&n(25,i=on?En&&En.length>0:En),33554448&t.$$.dirty[0]&&n(35,r=i&&Pr.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&n(34,s=i&&Yi&&!Zt&&!to),520&t.$$.dirty[0]|100663296&t.$$.dirty[1]&&n(33,a=Yr&&on||on&&0===(null===(Yt=En)||void 0===Yt?void 0:Yt.length)?Qo:En?"":Qo),520&t.$$.dirty[0]&&n(32,u=En?(Wi=on&&En.length>0?En.map(function(Cs){return Cs[qi]}).join(", "):En[qi],Zc(Wi)):""),16777412&t.$$.dirty[0]&&n(31,d=function(){if(!m||0===m.length)return"";var Cs=m[Ln];return ys&&Cs?el(Cs[qi],m?m.length:0):Ns()}()),1048576&t.$$.dirty[1]&&function(Cs){Cs&&0!==Cs.length&&!Cs.some(function(Ks){return"object"!==Cc(Ks)})&&En&&(on?!En.some(function(Ks){return!Ks||!Ks[Ho]}):En[Ho])&&(Array.isArray(En)?n(3,En=En.map(function(Ks){return mn(Ks)||Ks})):n(3,En=mn()||En))}(oa),8712&t.$$.dirty[0]&&n(52,Nt=on?En?En.map(function(Cs){return Cs[Ho]}):null:En&&En[Ho]),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(on||!D||En||lt("input",En)),16777800&t.$$.dirty[0]&&ys&&m&&!on&&!En&&aa(),16777216&t.$$.dirty[0]&&function(Cs){ys&<("filter",Cs)}(m),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&st&&void 0===(null===(Qr=Bi)||void 0===Qr?void 0:Qr.autoUpdate)&&n(81,E4.autoUpdate=!0,E4),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&st&&Bi&&Sz(Object.assign(E4,Bi)),8388608&t.$$.dirty[0]&&n(30,_=!!Al),8388672&t.$$.dirty[0]&&function(Cs,Ks){if(!Cs||!Ks)return n(28,zb=!0);setTimeout(function(){n(28,zb=!1)},0)}(Al,ys),8388673&t.$$.dirty[0]&&ys&&st&&Al&&(Go=st.getBoundingClientRect().width,n(23,Al.style.width=F0?Go+"px":"auto",Al)),128&t.$$.dirty[0]&&n(29,y=Ln),70&t.$$.dirty[0]&&sn&&ys&&!zi&&Ti()},[st,sn,zi,En,Pr,to,ys,Ln,Lt,on,An,Zt,qi,Ho,Oa,Z2,Jc,Fo,Dn,P0,I3,Us,function(){lt("clear",En),n(3,En=void 0),cr(),Ti()},Al,m,i,S,W,zb,y,_,d,u,a,s,r,Fn,function(Yt){if(zi)switch(Yt.stopPropagation(),Yt.key){case"Escape":Yt.preventDefault(),cr();break;case"Enter":if(Yt.preventDefault(),ys){if(0===m.length)break;if(En&&!on&&En[Ho]===m[Ln][Ho]){cr();break}k4(m[Ln])}break;case"ArrowDown":Yt.preventDefault(),ys?b1(1):(n(6,ys=!0),n(26,S=void 0));break;case"ArrowUp":Yt.preventDefault(),ys?b1(-1):(n(6,ys=!0),n(26,S=void 0));break;case"Tab":if(ys&&zi){if(0===m.length||En&&En[Ho]===m[Ln][Ho])return cr();Yt.preventDefault(),k4(m[Ln]),cr()}break;case"Backspace":if(!on||Pr.length>0)return;if(on&&En&&En.length>0){if(Fn(void 0!==S?S:En.length-1),0===S||void 0===S)break;n(26,S=En.length>S?S-1:void 0)}break;case"ArrowLeft":if(!En||!on||Pr.length>0)return;void 0===S?n(26,S=En.length-1):En.length>S&&0!==S&&n(26,S-=1);break;case"ArrowRight":if(!En||!on||Pr.length>0||void 0===S)return;S===En.length-1?n(26,S=void 0):S0?n(6,ys=!0):void n(6,ys=!ys)},To,function(Yt){var Wi;ys||zi||!st||st.contains(Yt.target)||null!==(Wi=Al)&&void 0!==Wi&&Wi.contains(Yt.target)||Ri()},nd,k7,function(Yt,Wi,Qr){if(!on)return Wi&&Wi[Qr]===Yt[Qr]},id,O3,Lb,Mz,Ye,oa,Nt,qt,Dt,Ut,Qo,Yr,Mi,tc,I1,s1,fc,Wl,J1,a1,Fi,function(){return m},Yi,S4,$d,td,F0,$h,Bi,Zc,el,Ns,D,z,$,E4,ye,ke,function(Yt){Mk.call(this,t,Yt)},function(Yt){Mk.call(this,t,Yt)},function(Yt){Mk.call(this,t,Yt)},function(Yt){Mk.call(this,t,Yt)},function(Yt){return nd(Yt)},function(Yt){return nd(Yt)},function(Yt,Wi){return k7({item:Yt,i:Wi})},function(Yt){Vs[Yt?"unshift":"push"](function(){n(23,Al=Yt)})},function(Yt){return Fn(Yt)},function(Yt){return An?Fn(Yt):{}},function(Yt){Vs[Yt?"unshift":"push"](function(){n(1,sn=Yt)})},function(){n(4,Pr=this.value)},function(Yt){Vs[Yt?"unshift":"push"](function(){n(0,st=Yt)})}]}var Jp=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,WNe,GNe,n1,{justValue:52,filter:53,getItems:54,id:55,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:56,placeholderAlwaysShow:57,items:51,label:12,itemFilter:58,groupBy:59,groupFilter:60,groupHeaderSelectable:61,itemId:13,loadOptions:62,containerStyles:14,hasError:15,filterSelectedItems:63,required:16,closeListOnChange:64,clearFilterTextOnBlur:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},SNe,[-1,-1,-1,-1,-1]),i}return br(e,Cr),pr(e,[{key:"getFilteredItems",get:function(){return this.$$.ctx[67]}},{key:"handleClear",get:function(){return this.$$.ctx[22]}}])}();function qNe(t){as(t,"svelte-ijtq0l","table.jse-transform-wizard.svelte-ijtq0l.svelte-ijtq0l{border-collapse:collapse;border-spacing:0;width:100%}table.jse-transform-wizard.svelte-ijtq0l input.svelte-ijtq0l{font-family:inherit;font-size:inherit}table.jse-transform-wizard.svelte-ijtq0l tr th.svelte-ijtq0l{font-weight:normal;text-align:left;width:60px}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l{width:100%;display:flex;flex-direction:row;margin-bottom:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select .multi-item{align-items:center}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select .value-container{gap:0 !important}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-filter-path{flex:4;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-filter-relation{flex:1.5;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-sort-path{flex:3;margin-right:calc(0.5 * var(--jse-padding, 10px))}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-sort-direction{flex:1}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select.jse-projection-paths{flex:1}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal.svelte-ijtq0l .svelte-select input{box-sizing:border-box}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal .jse-filter-value.svelte-ijtq0l{flex:4;padding:4px 8px;border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:var(--jse-input-radius, 3px);outline:none;background:var(--jse-input-background, var(--jse-background-color, #fff));color:inherit}table.jse-transform-wizard.svelte-ijtq0l tr td .jse-horizontal .jse-filter-value.svelte-ijtq0l:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}")}function XNe(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,Lt,et,st;function gt(Zn){t[16](Zn)}var sn={class:"jse-filter-path",showChevron:!0,items:t[7]};function Hn(Zn){t[17](Zn)}void 0!==t[0]&&(sn.value=t[0]),u=new Jp({props:sn}),Vs.push(function(){return J2(u,"value",gt)});var on={class:"jse-filter-relation",showChevron:!0,items:t[8]};function Xt(Zn){t[19](Zn)}void 0!==t[1]&&(on.value=t[1]),_=new Jp({props:on}),Vs.push(function(){return J2(_,"value",Hn)});var An={class:"jse-sort-path",showChevron:!0,items:t[7]};function _n(Zn){t[20](Zn)}void 0!==t[3]&&(An.value=t[3]),ke=new Jp({props:An}),Vs.push(function(){return J2(ke,"value",Xt)});var Zt={class:"jse-sort-direction",showChevron:!0,items:t[9]};function wi(Zn){t[21](Zn)}void 0!==t[4]&&(Zt.value=t[4]),lt=new Jp({props:Zt}),Vs.push(function(){return J2(lt,"value",_n)});var zi={class:"jse-projection-paths",multiple:!0,showChevron:!0,items:t[6]};return void 0!==t[5]&&(zi.value=t[5]),Ut=new Jp({props:zi}),Vs.push(function(){return J2(Ut,"value",wi)}),{c:function(){e=pt("table"),n=pt("tr"),(i=pt("th")).textContent="Filter",r=gn(),s=pt("td"),a=pt("div"),Nn(u.$$.fragment),m=gn(),Nn(_.$$.fragment),x=gn(),S=pt("input"),D=gn(),z=pt("tr"),($=pt("th")).textContent="Sort",W=gn(),re=pt("td"),se=pt("div"),Nn(ke.$$.fragment),Ye=gn(),Nn(lt.$$.fragment),Nt=gn(),kt=pt("tr"),(qt=pt("th")).textContent="Pick",wt=gn(),Dt=pt("td"),ut=pt("div"),Nn(Ut.$$.fragment),ce(i,"class","svelte-ijtq0l"),ce(S,"class","jse-filter-value svelte-ijtq0l"),ce(a,"class","jse-horizontal svelte-ijtq0l"),ce($,"class","svelte-ijtq0l"),ce(se,"class","jse-horizontal svelte-ijtq0l"),ce(qt,"class","svelte-ijtq0l"),ce(ut,"class","jse-horizontal svelte-ijtq0l"),ce(e,"class","jse-transform-wizard svelte-ijtq0l")},m:function(Zn,En){Ht(Zn,e,En),Ge(e,n),Ge(n,i),Ge(n,r),Ge(n,s),Ge(s,a),zn(u,a,null),Ge(a,m),zn(_,a,null),Ge(a,x),Ge(a,S),k3(S,t[2]),Ge(e,D),Ge(e,z),Ge(z,$),Ge(z,W),Ge(z,re),Ge(re,se),zn(ke,se,null),Ge(se,Ye),zn(lt,se,null),Ge(e,Nt),Ge(e,kt),Ge(kt,qt),Ge(kt,wt),Ge(kt,Dt),Ge(Dt,ut),zn(Ut,ut,null),Lt=!0,et||(st=ei(S,"input",t[18]),et=!0)},p:function(Zn,En){var Nr=ds(En,1)[0],Pr={};128&Nr&&(Pr.items=Zn[7]),!d&&1&Nr&&(d=!0,Pr.value=Zn[0],Q2(function(){return d=!1})),u.$set(Pr);var va={};!y&&2&Nr&&(y=!0,va.value=Zn[1],Q2(function(){return y=!1})),_.$set(va),4&Nr&&S.value!==Zn[2]&&k3(S,Zn[2]);var Qo={};128&Nr&&(Qo.items=Zn[7]),!ye&&8&Nr&&(ye=!0,Qo.value=Zn[3],Q2(function(){return ye=!1})),ke.$set(Qo);var fn={};!Vt&&16&Nr&&(Vt=!0,fn.value=Zn[4],Q2(function(){return Vt=!1})),lt.$set(fn);var Yr={};64&Nr&&(Yr.items=Zn[6]),!$t&&32&Nr&&($t=!0,Yr.value=Zn[5],Q2(function(){return $t=!1})),Ut.$set(Yr)},i:function(Zn){Lt||(Me(u.$$.fragment,Zn),Me(_.$$.fragment,Zn),Me(ke.$$.fragment,Zn),Me(lt.$$.fragment,Zn),Me(Ut.$$.fragment,Zn),Lt=!0)},o:function(Zn){je(u.$$.fragment,Zn),je(_.$$.fragment,Zn),je(ke.$$.fragment,Zn),je(lt.$$.fragment,Zn),je(Ut.$$.fragment,Zn),Lt=!1},d:function(Zn){Zn&&At(e),Rn(u),Rn(_),Rn(ke),Rn(lt),Rn(Ut),et=!1,st()}}}function KNe(t,e,n){var i,r,s,a,u,d,m,_,y,x,S,D=v1("jsoneditor:TransformWizard"),z=e.json,$=e.queryOptions,W=void 0===$?{}:$,re=e.onChange,se=["==","!=","<","<=",">",">="].map(function(kt){return{value:kt,label:kt}}),ke=[{value:"asc",label:"ascending"},{value:"desc",label:"descending"}],ye=null!==(i=W)&&void 0!==i&&null!==(i=i.filter)&&void 0!==i&&i.path?_b(W.filter.path):null,Ye=null!==(r=W)&&void 0!==r&&null!==(r=r.filter)&&void 0!==r&&r.relation?se.find(function(kt){var qt;return kt.value===(null===(qt=W.filter)||void 0===qt?void 0:qt.relation)}):null,lt=(null===(s=W)||void 0===s||null===(s=s.filter)||void 0===s?void 0:s.value)||"",Vt=null!==(a=W)&&void 0!==a&&null!==(a=a.sort)&&void 0!==a&&a.path?_b(W.sort.path):null,Nt=null!==(u=W)&&void 0!==u&&null!==(u=u.sort)&&void 0!==u&&u.direction?ke.find(function(kt){var qt;return kt.value===(null===(qt=W.sort)||void 0===qt?void 0:qt.direction)}):null;return t.$$set=function(kt){"json"in kt&&n(11,z=kt.json),"queryOptions"in kt&&n(10,W=kt.queryOptions),"onChange"in kt&&n(12,re=kt.onChange)},t.$$.update=function(){var kt,qt,wt,Dt,ut,Ut,$t,Lt,et,st,gt,sn,Hn,on,Xt;2048&t.$$.dirty&&n(15,d=Array.isArray(z)),34816&t.$$.dirty&&n(14,m=d?ML(z):[]),34816&t.$$.dirty&&n(13,_=d?ML(z,!0):[]),16384&t.$$.dirty&&n(7,y=m.map(_b)),8192&t.$$.dirty&&n(6,x=_?_.map(_b):[]),1088&t.$$.dirty&&n(5,S=null!==(kt=W)&&void 0!==kt&&null!==(kt=kt.projection)&&void 0!==kt&&kt.paths&&x?W.projection.paths.map(function(on){return x.find(function(Xt){return zs(Xt.value,on)})}).filter(function(on){return!!on}):null),1&t.$$.dirty&&(wt=null===(qt=ye)||void 0===qt?void 0:qt.value,zs(null===(Dt=W)||void 0===Dt||null===(Dt=Dt.filter)||void 0===Dt?void 0:Dt.path,wt)||(D("changeFilterPath",wt),n(10,W=ht(W,["filter","path"],wt,!0)),re(W))),2&t.$$.dirty&&(Ut=null===(ut=Ye)||void 0===ut?void 0:ut.value,zs(null===($t=W)||void 0===$t||null===($t=$t.filter)||void 0===$t?void 0:$t.relation,Ut)||(D("changeFilterRelation",Ut),n(10,W=ht(W,["filter","relation"],Ut,!0)),re(W))),4&t.$$.dirty&&(zs(null===(et=W)||void 0===et||null===(et=et.filter)||void 0===et?void 0:et.value,Lt=lt)||(D("changeFilterValue",Lt),n(10,W=ht(W,["filter","value"],Lt,!0)),re(W))),8&t.$$.dirty&&(on=null===(st=Vt)||void 0===st?void 0:st.value,zs(null===(Xt=W)||void 0===Xt||null===(Xt=Xt.sort)||void 0===Xt?void 0:Xt.path,on)||(D("changeSortPath",on),n(10,W=ht(W,["sort","path"],on,!0)),re(W))),16&t.$$.dirty&&(sn=null===(gt=Nt)||void 0===gt?void 0:gt.value,zs(null===(Hn=W)||void 0===Hn||null===(Hn=Hn.sort)||void 0===Hn?void 0:Hn.direction,sn)||(D("changeSortDirection",sn),n(10,W=ht(W,["sort","direction"],sn,!0)),re(W))),32&t.$$.dirty&&function(on){var Xt;zs(null===(Xt=W)||void 0===Xt||null===(Xt=Xt.projection)||void 0===Xt?void 0:Xt.paths,on)||(D("changeProjectionPaths",on),n(10,W=ht(W,["projection","paths"],on,!0)),re(W))}(S?S.map(function(on){return on.value}):void 0)},[ye,Ye,lt,Vt,Nt,S,x,y,se,ke,W,z,re,_,m,d,function(kt){n(0,ye=kt)},function(kt){n(1,Ye=kt)},function(){n(2,lt=this.value)},function(kt){n(3,Vt=kt)},function(kt){n(4,Nt=kt)},function(kt){n(5,S=kt),n(10,W),n(6,x),n(13,_),n(15,d),n(11,z)}]}var YNe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,KNe,XNe,gs,{json:11,queryOptions:10,onChange:12},qNe),i}return br(e,Cr),pr(e)}();function QNe(t){as(t,"svelte-1wg043c",'.jse-select-query-language.svelte-1wg043c.svelte-1wg043c{position:relative;width:32px}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container.svelte-1wg043c{position:absolute;top:0;right:0;display:flex;flex-direction:column;box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24))}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container .jse-query-language.svelte-1wg043c{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;text-align:left;padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));white-space:nowrap;color:var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff));background:var(--jse-context-menu-background, #656565)}.jse-select-query-language.svelte-1wg043c .jse-select-query-language-container .jse-query-language.svelte-1wg043c:hover{background:var(--jse-context-menu-background-highlight, #7a7a7a)}')}function vne(t,e,n){var i=t.slice();return i[5]=e[n],i}function JNe(t){var e,n;return e=new Co({props:{data:xM}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function ZNe(t){var e,n;return e=new Co({props:{data:CM}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function _ne(t){var e,n,i,r,s,a,u,d,m,_,y=t[5].name+"",x=[ZNe,JNe],S=[];function D($,W){return $[5].id===$[0]?0:1}function z(){return t[4](t[5])}return n=D(t),i=S[n]=x[n](t),{c:function(){e=pt("button"),i.c(),r=gn(),s=Ii(y),a=gn(),ce(e,"type","button"),ce(e,"class","jse-query-language svelte-1wg043c"),ce(e,"title",u="Select ".concat(t[5].name," as query language")),$n(e,"selected",t[5].id===t[0])},m:function($,W){Ht($,e,W),S[n].m(e,null),Ge(e,r),Ge(e,s),Ge(e,a),d=!0,m||(_=ei(e,"click",z),m=!0)},p:function($,W){var re=n;(n=D(t=$))!==re&&(si(),je(S[re],1,1,function(){S[re]=null}),oi(),(i=S[n])||(i=S[n]=x[n](t)).c(),Me(i,1),i.m(e,r)),(!d||2&W)&&y!==(y=t[5].name+"")&&Ir(s,y),(!d||2&W&&u!==(u="Select ".concat(t[5].name," as query language")))&&ce(e,"title",u),(!d||3&W)&&$n(e,"selected",t[5].id===t[0])},i:function($){d||(Me(i),d=!0)},o:function($){je(i),d=!1},d:function($){$&&At(e),S[n].d(),m=!1,_()}}}function ePe(t){for(var e,n,i,r=cs(t[1]),s=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:{};switch(d=1e3,r=W.offset||0,y=W.callback,s=W.easing||fPe,a=W.a11y||!1,Cc(W.container)){case"object":t=W.container;break;case"string":t=document.querySelector(W.container);break;default:t=window.document.documentElement}switch(n=t.scrollTop,Cc($)){case"number":e=void 0,a=!1,i=n+$;break;case"object":i=S(e=$);break;case"string":e=document.querySelector($),i=S(e)}switch(u=i-n+r,Cc(W.duration)){case"number":d=W.duration;break;case"function":d=W.duration(u)}x?m=0:requestAnimationFrame(z)}},hPe=1e3,tE=v1("jsoneditor:History");function xne(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.maxItems||hPe,n=[],i=0;function r(){return i0}function a(){return{canUndo:r(),canRedo:s(),length:n.length}}function u(){t.onChange&&t.onChange(a())}return{add:function(d){tE("add",d),n=[d].concat(n.slice(i)).slice(0,e),i=0,u()},clear:function(){tE("clear"),n=[],i=0,u()},getState:a,undo:function(){if(r()){var d=n[i];return i+=1,tE("undo",d),u(),d}},redo:function(){if(s())return tE("redo",n[i-=1]),u(),n[i]}}}function _7(t,e){var n=Date.now(),i=t();return e(Date.now()-n),i}var b7=v1("validation");function wne(t,e,n,i){if(b7("validateJSON"),!e)return[];if(n!==i){var r=n.stringify(t);return e(void 0!==r?i.parse(r):void 0)}return e(t)}function pPe(t,e,n,i){if(b7("validateText"),t.length>bze)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:zd.info}]};if(0===t.length)return null;try{var r=_7(function(){return n.parse(t)},function(d){return b7("validate: parsed json in ".concat(d," ms"))});if(!e)return null;var s=n===i?r:_7(function(){return i.parse(t)},function(d){return b7("validate: parsed json with the validationParser in ".concat(d," ms"))}),a=_7(function(){return e(s)},function(d){return b7("validate: validated json in ".concat(d," ms"))});return Zs(a)?null:{validationErrors:a}}catch(d){var u=_7(function(){return function(m,_){if(m.length>yze)return!1;try{return _.parse(na(m)),!0}catch{return!1}}(t,n)},function(m){return b7("validate: checked whether repairable in ".concat(m," ms"))});return{parseError:o7(t,d.message||d.toString()),isRepairable:u}}}var nE=v1("jsoneditor:FocusTracker");function sz(t){var e,i=t.onDestroy,r=t.getWindow,s=t.hasFocus,a=t.onFocus,u=t.onBlur,d=!1;function m(){var y=s();y&&(clearTimeout(e),d||(nE("focus"),a(),d=y))}function _(){d&&(clearTimeout(e),e=setTimeout(function(){s()||(nE("blur"),d=!1,u())}))}(0,t.onMount)(function(){nE("mount FocusTracker");var y=r();y&&(y.addEventListener("focusin",m,!0),y.addEventListener("focusout",_,!0))}),i(function(){nE("destroy FocusTracker");var y=r();y&&(y.removeEventListener("focusin",m,!0),y.removeEventListener("focusout",_,!0))})}function mPe(t){as(t,"svelte-p1zf9f",'.jse-message.svelte-p1zf9f.svelte-p1zf9f{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);padding:var(--jse-padding, 10px);display:flex;gap:var(--jse-padding, 10px);flex-wrap:wrap;align-items:stretch}.jse-message.jse-success.svelte-p1zf9f.svelte-p1zf9f{background:var(--message-success-background, #9ac45d);color:var(--jse-message-success-color, #fff)}.jse-message.svelte-p1zf9f .jse-text.svelte-p1zf9f{display:flex;flex:1;min-width:60%;align-items:center}.jse-message.svelte-p1zf9f .jse-text.jse-clickable.svelte-p1zf9f{cursor:pointer}.jse-message.svelte-p1zf9f .jse-text.jse-clickable.svelte-p1zf9f:hover{background-color:rgba(255, 255, 255, 0.1)}.jse-message.jse-error.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-error-background, var(--jse-error-color, #ee5341));color:var(--jse-message-error-color, #fff)}.jse-message.jse-warning.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-warning-background, #ffde5c);color:var(--jse-message-warning-color, #4d4d4d)}.jse-message.jse-info.svelte-p1zf9f.svelte-p1zf9f{background:var(--jse-message-info-background, #4f91ff);color:var(--jse-message-info-color, #fff)}.jse-message.svelte-p1zf9f .jse-actions.svelte-p1zf9f{display:flex;gap:var(--jse-padding, 10px)}.jse-message.svelte-p1zf9f .jse-actions button.jse-action.svelte-p1zf9f{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-message-action-background, rgba(255, 255, 255, 0.2));color:inherit;padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px)}.jse-message.svelte-p1zf9f .jse-actions button.jse-action.svelte-p1zf9f:hover{background:var(--jse-message-action-background-highlight, rgba(255, 255, 255, 0.3))}')}function Mne(t,e,n){var i=t.slice();return i[9]=e[n],i}function Sne(t){var e,n;return e=new Co({props:{data:t[1]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};2&r&&(s.data=i[1]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function kne(t){var e,n;return e=new Co({props:{data:t[9].icon}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};8&r&&(s.data=i[9].icon),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Ene(t){var e,n,i,r,s,a,u,d,m,_=t[9].text+"",y=t[9].icon&&kne(t);function x(){return t[7](t[9])}function S(){return t[8](t[9])}return{c:function(){e=pt("button"),y&&y.c(),n=gn(),i=Ii(_),r=gn(),ce(e,"type","button"),ce(e,"class","jse-button jse-action jse-primary svelte-p1zf9f"),ce(e,"title",s=t[9].title),e.disabled=a=t[9].disabled},m:function(D,z){Ht(D,e,z),y&&y.m(e,null),Ge(e,n),Ge(e,i),Ge(e,r),u=!0,d||(m=[ei(e,"click",x),ei(e,"mousedown",S)],d=!0)},p:function(D,z){(t=D)[9].icon?y?(y.p(t,z),8&z&&Me(y,1)):((y=kne(t)).c(),Me(y,1),y.m(e,n)):y&&(si(),je(y,1,1,function(){y=null}),oi()),(!u||8&z)&&_!==(_=t[9].text+"")&&Ir(i,_),(!u||8&z&&s!==(s=t[9].title))&&ce(e,"title",s),(!u||8&z&&a!==(a=t[9].disabled))&&(e.disabled=a)},i:function(D){u||(Me(y),u=!0)},o:function(D){je(y),u=!1},d:function(D){D&&At(e),y&&y.d(),d=!1,ma(m)}}}function gPe(t){for(var e,n,i,r,s,a,u,d,m,_,y,x=t[1]&&Sne(t),S=cs(t[3]),D=[],z=0;zi7&&Ine(t);return{c:function(){e=pt("table"),n=pt("tbody");for(var _=0;_i7?m?m.p(_,y):((m=Ine(_)).c(),m.m(n,null)):m&&(m.d(1),m=null)},i:function(_){if(!r){for(var y=0;y1&&Vne(t);function se(){return t[7](t[8])}return{c:function(){e=pt("tr"),n=pt("td"),Nn(i.$$.fragment),r=gn(),s=pt("td"),a=Ii($),u=gn(),d=pt("td"),m=Ii(W),_=gn(),y=pt("td"),re&&re.c(),ce(n,"class","jse-validation-error-icon svelte-1gq3gfv"),ce(s,"class","jse-validation-error-path svelte-1gq3gfv"),ce(d,"class","jse-validation-error-message svelte-1gq3gfv"),ce(y,"class","jse-validation-error-action svelte-1gq3gfv"),ce(e,"class",x="jse-validation-"+t[8].severity+" svelte-1gq3gfv")},m:function(ke,ye){Ht(ke,e,ye),Ge(e,n),zn(i,n,null),Ge(e,r),Ge(e,s),Ge(s,a),Ge(e,u),Ge(e,d),Ge(d,m),Ge(e,_),Ge(e,y),re&&re.m(y,null),S=!0,D||(z=ei(e,"click",se),D=!0)},p:function(ke,ye){t=ke,(!S||1&ye)&&$!==($=yu(t[8].path)+"")&&Ir(a,$),(!S||1&ye)&&W!==(W=t[8].message+"")&&Ir(m,W),0===t[10]&&t[0].length>1?re?(re.p(t,ye),1&ye&&Me(re,1)):((re=Vne(t)).c(),Me(re,1),re.m(y,null)):re&&(si(),je(re,1,1,function(){re=null}),oi()),(!S||1&ye&&x!==(x="jse-validation-"+t[8].severity+" svelte-1gq3gfv"))&&ce(e,"class",x)},i:function(ke){S||(Me(i.$$.fragment,ke),Me(re),S=!0)},o:function(ke){je(i.$$.fragment,ke),je(re),S=!1},d:function(ke){ke&&At(e),Rn(i),re&&re.d(),D=!1,z()}}}function Ine(t){var e,n,i,r,s,a,u,d,m,_,y,x=t[3]-i7+"";return{c:function(){e=pt("tr"),n=pt("td"),i=gn(),r=pt("td"),s=gn(),a=pt("td"),u=Ii("(and "),d=Ii(x),m=Ii(" more errors)"),_=gn(),y=pt("td"),ce(n,"class","svelte-1gq3gfv"),ce(r,"class","svelte-1gq3gfv"),ce(a,"class","svelte-1gq3gfv"),ce(y,"class","svelte-1gq3gfv"),ce(e,"class","jse-validation-error svelte-1gq3gfv")},m:function(S,D){Ht(S,e,D),Ge(e,n),Ge(e,i),Ge(e,r),Ge(e,s),Ge(e,a),Ge(a,u),Ge(a,d),Ge(a,m),Ge(e,_),Ge(e,y)},p:function(S,D){8&D&&x!==(x=S[3]-i7+"")&&Ir(d,x)},d:function(S){S&&At(e)}}}function CPe(t){var e,n,i=!Zs(t[0]),r=i&&Tne(t);return{c:function(){r&&r.c(),e=ho()},m:function(s,a){r&&r.m(s,a),Ht(s,e,a),n=!0},p:function(s,a){var u=ds(a,1)[0];1&u&&(i=!Zs(s[0])),i?r?(r.p(s,u),1&u&&Me(r,1)):((r=Tne(s)).c(),Me(r,1),r.m(e.parentNode,e)):r&&(si(),je(r,1,1,function(){r=null}),oi())},i:function(s){n||(Me(r),n=!0)},o:function(s){je(r),n=!1},d:function(s){s&&At(e),r&&r.d(s)}}}function xPe(t,e,n){var i,r=e.validationErrors,s=e.selectError,a=!0;return t.$$set=function(u){"validationErrors"in u&&n(0,r=u.validationErrors),"selectError"in u&&n(1,s=u.selectError)},t.$$.update=function(){1&t.$$.dirty&&n(3,i=r.length)},[r,s,a,i,function(){n(2,a=!1)},function(){n(2,a=!0)},function(u){return[zd.error,zd.warning,zd.info].find(function(d){return u.some(function(m){return m.severity===d})})},function(u){setTimeout(function(){return s(u)})}]}var oz=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,xPe,CPe,gs,{validationErrors:0,selectError:1},_Pe),i}return br(e,Cr),pr(e)}(),wPe=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0,y7=[];function One(t){if("Escape"===t.key){var e=Ur(y7);e&&e()}}function Db(t,e){return Zs(y7)&&window.addEventListener("keydown",One),y7.push(e),{destroy:function(){y7=y7.filter(function(n){return n!==e}),Zs(y7)&&window.removeEventListener("keydown",One)}}}function MPe(t){as(t,"svelte-1nm0t3v",'.jse-modal.svelte-1nm0t3v.svelte-1nm0t3v{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1nm0t3v .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1nm0t3v .jse-modal-contents.svelte-1nm0t3v{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions.svelte-1nm0t3v{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1nm0t3v .jse-modal-contents .jse-actions button.jse-primary.svelte-1nm0t3v:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-copy-paste.svelte-1nm0t3v .jse-shortcuts.svelte-1nm0t3v{display:flex;flex-wrap:wrap;justify-content:space-around;margin:calc(2 * var(--jse-padding, 10px)) 0}.jse-modal.jse-copy-paste.svelte-1nm0t3v .jse-shortcuts .jse-shortcut .jse-key.svelte-1nm0t3v{font-size:200%;color:var(--jse-theme-color, #3883fa)}')}function SPe(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt;return n=new eE({props:{title:"Copying and pasting"}}),{c:function(){e=pt("div"),Nn(n.$$.fragment),i=gn(),r=pt("div"),(s=pt("div")).textContent="These actions are unavailable via the menu. Please use:",a=gn(),u=pt("div"),d=pt("div"),(m=pt("div")).textContent="".concat(t[1],"+C"),_=Ii("\n for copy"),y=gn(),x=pt("div"),(S=pt("div")).textContent="".concat(t[1],"+X"),D=Ii("\n for cut"),z=gn(),$=pt("div"),(W=pt("div")).textContent="".concat(t[1],"+V"),re=Ii("\n for paste"),se=gn(),ke=pt("div"),(ye=pt("button")).textContent="Close",ce(m,"class","jse-key svelte-1nm0t3v"),ce(d,"class","jse-shortcut"),ce(S,"class","jse-key svelte-1nm0t3v"),ce(x,"class","jse-shortcut"),ce(W,"class","jse-key svelte-1nm0t3v"),ce($,"class","jse-shortcut"),ce(u,"class","jse-shortcuts svelte-1nm0t3v"),ce(ye,"type","button"),ce(ye,"class","jse-primary svelte-1nm0t3v"),ce(ke,"class","jse-actions svelte-1nm0t3v"),ce(r,"class","jse-modal-contents svelte-1nm0t3v"),ce(e,"class","jse-modal jse-copy-paste svelte-1nm0t3v")},m:function(Nt,kt){Ht(Nt,e,kt),zn(n,e,null),Ge(e,i),Ge(e,r),Ge(r,s),Ge(r,a),Ge(r,u),Ge(u,d),Ge(d,m),Ge(d,_),Ge(u,y),Ge(u,x),Ge(x,S),Ge(x,D),Ge(u,z),Ge(u,$),Ge($,W),Ge($,re),Ge(r,se),Ge(r,ke),Ge(ke,ye),Ye=!0,lt||(Vt=[ei(ye,"click",t[2]),$l(Db.call(null,e,t[3]))],lt=!0)},p:hi,i:function(Nt){Ye||(Me(n.$$.fragment,Nt),Ye=!0)},o:function(Nt){je(n.$$.fragment,Nt),Ye=!1},d:function(Nt){Nt&&At(e),Rn(n),lt=!1,ma(Vt)}}}function kPe(t){var e=V1("simple-modal").close;return[e,wPe?"\u2318":"Ctrl",function(){return e()},function(){return e()}]}var Hne=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,kPe,SPe,gs,{},MPe),i}return br(e,Cr),pr(e)}();function Lne(t){return!!t&&("space"===t.type||!0===t.space)}function iE(t){return!!t&&("separator"===t.type||!0===t.separator)}function Tb(t){return!!t&&"function"==typeof t.onClick}function az(t){return!!t&&"dropdown-button"===t.type&&Tb(t.main)&&Array.isArray(t.items)}function zne(t){return ga(t)&&ga(t.parseError)}function Rne(t){return ga(t)&&"function"==typeof t.action&&ga(t.props)}function OPe(t){as(t,"svelte-7deygj",'.jse-menu.svelte-7deygj.svelte-7deygj{background:var(--jse-theme-color, #3883fa);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-main-menu, 14px);color:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));display:flex;flex-wrap:wrap;align-items:stretch;position:relative}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj{font-family:inherit;font-size:inherit;line-height:1.5em;border:none;background:transparent;color:inherit;cursor:pointer;width:var(--jse-menu-button-size, 32px);height:var(--jse-menu-button-size, 32px);padding:calc(0.5 * var(--jse-padding, 10px));margin:0;border-radius:0;display:inline-flex;align-items:center;text-align:center;justify-content:center}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:hover,.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:focus{background:var(--jse-theme-color-highlight, #5f9dff)}.jse-menu.svelte-7deygj .jse-button.svelte-7deygj:disabled{color:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));opacity:0.5;background:transparent}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj{width:auto;height:calc(var(--jse-menu-button-size, 32px) - var(--jse-padding, 10px));margin:calc(0.5 * var(--jse-padding, 10px)) 0;padding:0 calc(0.5 * var(--jse-padding, 10px)) 1px;border:1px solid var(--jse-menu-color, var(--jse-text-color-inverse, #fff))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:not(.jse-last){border-right:none}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-first.svelte-7deygj{margin-left:calc(0.5 * var(--jse-padding, 10px))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-last.svelte-7deygj{margin-right:calc(0.5 * var(--jse-padding, 10px))}.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:hover,.jse-menu.svelte-7deygj .jse-button.jse-group-button.svelte-7deygj:focus{background:var(--jse-theme-color-highlight, #5f9dff)}.jse-menu.svelte-7deygj .jse-button.jse-group-button.jse-selected.svelte-7deygj{background:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));color:var(--jse-theme-color, #3883fa)}.jse-menu.svelte-7deygj .jse-space.svelte-7deygj{flex:1}.jse-menu.svelte-7deygj .jse-separator.svelte-7deygj{background:var(--jse-menu-color, var(--jse-text-color-inverse, #fff));opacity:0.3;width:1px;margin:3px}')}var HPe=function(t){return{}},Nne=function(t){return{}};function Pne(t,e,n){var i=t.slice();return i[3]=e[n],i}var LPe=function(t){return{}},jne=function(t){return{}};function zPe(t){var e,n=Une(t[3])+"";return{c:function(){e=Ii(n)},m:function(i,r){Ht(i,e,r)},p:function(i,r){1&r&&n!==(n=Une(i[3])+"")&&Ir(e,n)},i:hi,o:hi,d:function(i){i&&At(e)}}}function RPe(t){var e,n,i,r,s,a,u,d,m=t[3].icon&&Fne(t),_=t[3].text&&Bne(t);return{c:function(){e=pt("button"),m&&m.c(),n=gn(),_&&_.c(),ce(e,"type","button"),ce(e,"class",i="jse-button "+t[3].className+" svelte-7deygj"),ce(e,"title",r=t[3].title),e.disabled=s=t[3].disabled||!1},m:function(y,x){Ht(y,e,x),m&&m.m(e,null),Ge(e,n),_&&_.m(e,null),a=!0,u||(d=ei(e,"click",function(){T1(t[3].onClick)&&t[3].onClick.apply(this,arguments)}),u=!0)},p:function(y,x){(t=y)[3].icon?m?(m.p(t,x),1&x&&Me(m,1)):((m=Fne(t)).c(),Me(m,1),m.m(e,n)):m&&(si(),je(m,1,1,function(){m=null}),oi()),t[3].text?_?_.p(t,x):((_=Bne(t)).c(),_.m(e,null)):_&&(_.d(1),_=null),(!a||1&x&&i!==(i="jse-button "+t[3].className+" svelte-7deygj"))&&ce(e,"class",i),(!a||1&x&&r!==(r=t[3].title))&&ce(e,"title",r),(!a||1&x&&s!==(s=t[3].disabled||!1))&&(e.disabled=s)},i:function(y){a||(Me(m),a=!0)},o:function(y){je(m),a=!1},d:function(y){y&&At(e),m&&m.d(),_&&_.d(),u=!1,d()}}}function NPe(t){var e;return{c:function(){ce(e=pt("div"),"class","jse-space svelte-7deygj")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function PPe(t){var e;return{c:function(){ce(e=pt("div"),"class","jse-separator svelte-7deygj")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function Fne(t){var e,n;return e=new Co({props:{data:t[3].icon}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r&&(s.data=i[3].icon),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Bne(t){var e,n=t[3].text+"";return{c:function(){e=Ii(n)},m:function(i,r){Ht(i,e,r)},p:function(i,r){1&r&&n!==(n=i[3].text+"")&&Ir(e,n)},d:function(i){i&&At(e)}}}function $ne(t){var e,n,i,r,s,a,u,d=[PPe,NPe,RPe,zPe],m=[];function _(y,x){return 1&x&&(e=null),1&x&&(n=null),1&x&&(i=null),null==e&&(e=!!iE(y[3])),e?0:(null==n&&(n=!!Lne(y[3])),n?1:(null==i&&(i=!!Tb(y[3])),i?2:3))}return r=_(t,-1),s=m[r]=d[r](t),{c:function(){s.c(),a=ho()},m:function(y,x){m[r].m(y,x),Ht(y,a,x),u=!0},p:function(y,x){var S=r;(r=_(y,x))===S?m[r].p(y,x):(si(),je(m[S],1,1,function(){m[S]=null}),oi(),(s=m[r])?s.p(y,x):(s=m[r]=d[r](y)).c(),Me(s,1),s.m(a.parentNode,a))},i:function(y){u||(Me(s),u=!0)},o:function(y){je(s),u=!1},d:function(y){y&&At(a),m[r].d(y)}}}function jPe(t){for(var e,n,i,r,s=t[2].left,a=jc(s,t,t[1],jne),u=cs(t[0]),d=[],m=0;m=W.end&&se.end<=Ye.start)&<.push(se),Ye.start>=(Vt?se.end:W.end)&<.push(Ye),u=lt))},[y,S,s,r,u,a,d,m,_,x,D,i,function(z){return S(y,z)}]}var nje=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,tje,ZPe,gs,{visibleSections:6,sectionIndex:7,total:8,path:0,selection:9,onExpandSection:1,context:10},JPe),i}return br(e,Cr),pr(e)}();function ije(t){as(t,"svelte-6k6355",".jse-context-menu-pointer.svelte-6k6355{position:absolute;top:calc(-0.5 * var(--jse-context-menu-pointer-size, calc(1em + 4px)));right:calc(-0.5 * var(--jse-context-menu-pointer-size, calc(1em + 4px)));width:var(--jse-context-menu-pointer-size, calc(1em + 4px));height:var(--jse-context-menu-pointer-size, calc(1em + 4px));padding:0;margin:0;cursor:pointer;background:transparent;border-radius:2px;background:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565));color:var(--jse-context-menu-pointer-color, var(--jse-context-menu-color, var(--jse-text-color-inverse, #fff)));border:none;box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24))}.jse-context-menu-pointer.svelte-6k6355:hover{background:var(--jse-context-menu-pointer-background-highlight, var(--jse-context-menu-background-highlight, #7a7a7a))}")}function rje(t){var e,n,i,r,s;return n=new Co({props:{data:Uu}}),{c:function(){e=pt("button"),Nn(n.$$.fragment),ce(e,"type","button"),ce(e,"class","jse-context-menu-pointer svelte-6k6355"),ce(e,"title",_L),$n(e,"jse-selected",t[0])},m:function(a,u){Ht(a,e,u),zn(n,e,null),i=!0,r||(s=ei(e,"click",t[1]),r=!0)},p:function(a,u){var d=ds(u,1)[0];(!i||1&d)&&$n(e,"jse-selected",a[0])},i:function(a){i||(Me(n.$$.fragment,a),i=!0)},o:function(a){je(n.$$.fragment,a),i=!1},d:function(a){a&&At(e),Rn(n),r=!1,s()}}}function sje(t,e,n){var i=e.selected,r=e.onContextMenu;return t.$$set=function(s){"selected"in s&&n(0,i=s.selected),"onContextMenu"in s&&n(2,r=s.onContextMenu)},[i,function(s){for(var a=s.target;a&&"BUTTON"!==a.nodeName;)a=a.parentNode;a&&r({anchor:a,left:0,top:0,width:E0,height:k0,offsetTop:2,offsetLeft:0,showTip:!0})},r]}var Fh=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,sje,rje,gs,{selected:0,onContextMenu:2},ije),i}return br(e,Cr),pr(e)}();function oje(t){as(t,"svelte-10xe8tv",'.jse-key.svelte-10xe8tv{display:inline-block;min-width:2em;padding:0 5px;box-sizing:border-box;outline:none;border-radius:1px;vertical-align:top;color:var(--jse-key-color, #1a1a1a);cursor:var(--jse-contents-cursor, pointer);word-break:normal;overflow-wrap:normal;white-space:pre-wrap}.jse-key.svelte-10xe8tv:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-key.svelte-10xe8tv:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-key.jse-empty.svelte-10xe8tv{min-width:3em;outline:1px dotted var(--jse-tag-background, rgba(0, 0, 0, 0.2));-moz-outline-radius:2px}.jse-key.jse-empty.svelte-10xe8tv::after{pointer-events:none;color:var(--jse-tag-background, rgba(0, 0, 0, 0.2));content:"key"}')}function aje(t){var e,n,i,r,s,a,u,d=[uje,lje],m=[];function _(y,x){return y[1]?0:1}return n=_(t),i=m[n]=d[n](t),{c:function(){e=pt("div"),i.c(),ce(e,"role","none"),ce(e,"data-type","selectable-key"),ce(e,"class",r=Oc(t[6](t[0]))+" svelte-10xe8tv")},m:function(y,x){Ht(y,e,x),m[n].m(e,null),s=!0,a||(u=ei(e,"dblclick",t[5]),a=!0)},p:function(y,x){var S=n;(n=_(y))===S?m[n].p(y,x):(si(),je(m[S],1,1,function(){m[S]=null}),oi(),(i=m[n])?i.p(y,x):(i=m[n]=d[n](y)).c(),Me(i,1),i.m(e,null)),(!s||1&x&&r!==(r=Oc(y[6](y[0]))+" svelte-10xe8tv"))&&ce(e,"class",r)},i:function(y){s||(Me(i),s=!0)},o:function(y){je(i),s=!1},d:function(y){y&&At(e),m[n].d(),a=!1,u()}}}function cje(t){var e,n;return e=new fte({props:{value:t[2].normalization.escapeValue(t[0]),shortText:!0,onChange:t[7],onCancel:t[8],onFind:t[2].onFind}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};5&r&&(s.value=i[2].normalization.escapeValue(i[0])),4&r&&(s.onFind=i[2].onFind),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function lje(t){var e,n=Gp(t[2].normalization.escapeValue(t[0]))+"";return{c:function(){e=Ii(n)},m:function(i,r){Ht(i,e,r)},p:function(i,r){5&r&&n!==(n=Gp(i[2].normalization.escapeValue(i[0]))+"")&&Ir(e,n)},i:hi,o:hi,d:function(i){i&&At(e)}}}function uje(t){var e,n;return e=new Ste({props:{text:t[2].normalization.escapeValue(t[0]),searchResultItems:t[1]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};5&r&&(s.text=i[2].normalization.escapeValue(i[0])),2&r&&(s.searchResultItems=i[1]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Xne(t){var e,n;return e=new Fh({props:{selected:!0,onContextMenu:t[2].onContextMenu}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};4&r&&(s.onContextMenu=i[2].onContextMenu),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function dje(t){var e,n,i,r,s,a=[cje,aje],u=[];function d(_,y){return!_[2].readOnly&&_[4]?0:1}e=d(t),n=u[e]=a[e](t);var m=!t[2].readOnly&&t[3]&&!t[4]&&Xne(t);return{c:function(){n.c(),i=gn(),m&&m.c(),r=ho()},m:function(_,y){u[e].m(_,y),Ht(_,i,y),m&&m.m(_,y),Ht(_,r,y),s=!0},p:function(_,y){var x=ds(y,1)[0],S=e;(e=d(_))===S?u[e].p(_,x):(si(),je(u[S],1,1,function(){u[S]=null}),oi(),(n=u[e])?n.p(_,x):(n=u[e]=a[e](_)).c(),Me(n,1),n.m(i.parentNode,i)),_[2].readOnly||!_[3]||_[4]?m&&(si(),je(m,1,1,function(){m=null}),oi()):m?(m.p(_,x),28&x&&Me(m,1)):((m=Xne(_)).c(),Me(m,1),m.m(r.parentNode,r))},i:function(_){s||(Me(n),Me(m),s=!0)},o:function(_){je(n),je(m),s=!1},d:function(_){_&&(At(i),At(r)),u[e].d(_),m&&m.d(_)}}}function fje(t,e,n){var i,r,s=e.path,a=e.key,u=e.selection,d=e.searchResultItems,m=e.onUpdateKey,_=e.context;return t.$$set=function(y){"path"in y&&n(9,s=y.path),"key"in y&&n(0,a=y.key),"selection"in y&&n(10,u=y.selection),"searchResultItems"in y&&n(1,d=y.searchResultItems),"onUpdateKey"in y&&n(11,m=y.onUpdateKey),"context"in y&&n(2,_=y.context)},t.$$.update=function(){1536&t.$$.dirty&&n(3,i=!!u&&dl(u)&&zs(u.path,s)),1032&t.$$.dirty&&n(4,r=i&&C2(u))},[a,d,_,i,r,function(y){r||_.readOnly||(y.preventDefault(),_.onSelect(Pd(s,!0)))},function(y){return V3("jse-key",{"jse-empty":""===y})},function(y,x){var S=m(a,_.normalization.unescapeValue(y)),D=Ls(s).concat(S);_.onSelect(x===Lh.nextInside?Bs(D,!1):Pd(D,!1)),x!==Lh.self&&_.focus()},function(){_.onSelect(Pd(s,!1)),_.focus()},s,u,m]}var hje=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,fje,dje,gs,{path:9,key:0,selection:10,searchResultItems:1,onUpdateKey:11,context:2},oje),i}return br(e,Cr),pr(e)}();function Kne(t,e,n){var i=t.slice();return i[8]=e[n],i}function pje(t){var e,n,i=t[8].component,r=Yne(t);return{c:function(){r.c(),e=ho()},m:function(s,a){r.m(s,a),Ht(s,e,a),n=!0},p:function(s,a){1&a&&gs(i,i=s[8].component)?(si(),je(r,1,1,hi),oi(),(r=Yne(s)).c(),Me(r,1),r.m(e.parentNode,e)):r.p(s,a)},i:function(s){n||(Me(r),n=!0)},o:function(s){je(r),n=!1},d:function(s){s&&At(e),r.d(s)}}}function mje(t){var e,n=t[8].action,i=Qne(t);return{c:function(){i.c(),e=ho()},m:function(r,s){i.m(r,s),Ht(r,e,s)},p:function(r,s){1&s&&gs(n,n=r[8].action)?(i.d(1),(i=Qne(r)).c(),i.m(e.parentNode,e)):i.p(r,s)},i:hi,o:hi,d:function(r){r&&At(e),i.d(r)}}}function Yne(t){var e,n,i,r=[t[8].props],s=t[8].component;function a(u,d){for(var m={},_=0;_ke+re()/2;)ke+=re(),se-=1;return se!==W&&void 0!==S[se]?{beforePath:S[se].path,offset:se-W}:void 0}({json:e,selection:s,deltaY:i,items:r}):function(y){for(var x,S=y.json,D=y.items,$=y.deltaY,W=Nh(S,y.selection),re=D.findIndex(function(qt){return zs(qt.path,W)}),se=0,ke=re,ye=function(){var qt;return null===(qt=D[ke+1])||void 0===qt?void 0:qt.height};void 0!==ye()&&Math.abs($)>se+ye()/2;)se+=ye(),ke+=1;var lt=nt(S,Ls(W)),Vt=Array.isArray(lt),Nt=null===(x=D[Vt?ke:ke+1])||void 0===x?void 0:x.path,kt=ke-re;return Nt?{beforePath:Nt,offset:kt}:{append:!0,offset:kt}}({json:e,selection:s,deltaY:i,items:r});if(!a||0===a.offset)return{operations:void 0,updatedSelection:null,offset:0};var y,x,S,D,z,$,W,re,se,ke,ye,u=function(y,x,S){if(!x)return[];var D="beforePath"in S?S.beforePath:void 0,z="append"in S?S.append:void 0,$=Ls(mr(x)),W=nt(y,$);if(!(z||D&&I0(D,$)&&D.length>$.length))return[];var re=A0(y,x),se=Nh(y,x),ke=Ur(re),ye=Ur(se),Ye=D?D[$.length]:void 0;if(!he(W)){if(Be(W)){var lt=Q1(ke),Vt=Q1(ye),Nt=void 0!==Ye?Q1(Ye):W.length;return RA(Vt-lt+1,Ntqt?[].concat(Ts(kt.slice(qt,wt+1)),Ts(kt.slice(Dt,kt.length))).map(function(ut){return Xp($,ut)}):[].concat(Ts(kt.slice(Dt,qt)),Ts(kt.slice(wt+1,kt.length))).map(function(ut){return Xp($,ut)}):[]}(e,s,a),m=nt(e,Ls(A0(e,s)));return Array.isArray(m)?{operations:u,updatedSelection:(D=(y={items:r,json:e,selection:s,offset:a.offset}).items,W=y.offset,re=A0(z=y.json,$=y.selection),se=Nh(z,$),ke=D.findIndex(function(Vt){return zs(Vt.path,re)}),ye=D.findIndex(function(Vt){return zs(Vt.path,se)}),y2(null===(x=D[ke+W])||void 0===x?void 0:x.path,null===(S=D[ye+W])||void 0===S?void 0:S.path)),offset:a.offset}:{operations:u,updatedSelection:null,offset:a.offset}}function Fd(t,e){return function(n,i){if(n){for(var r={},s=0,a=Object.keys(n);s0?r:void 0}}(t,function(n){return at(n,e)})}function yje(t){as(t,"svelte-1yy7qpj",'button.jse-validation-error.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-error-color, #ee5341)}button.jse-validation-info.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-info-color, #4f91ff)}button.jse-validation-warning.svelte-1yy7qpj{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;padding:0;margin:0;vertical-align:top;display:inline-flex;color:var(--jse-warning-color, #fdc539)}')}function Cje(t){var e,n,i,r,s,a,u;return n=new Co({props:{data:bh}}),{c:function(){e=pt("button"),Nn(n.$$.fragment),ce(e,"type","button"),ce(e,"class",i="jse-validation-"+t[0].severity+" svelte-1yy7qpj")},m:function(d,m){Ht(d,e,m),zn(n,e,null),s=!0,a||(u=[ei(e,"click",function(){T1(t[1])&&t[1].apply(this,arguments)}),$l(r=YL.call(null,e,yn({text:t[2]},t[3])))],a=!0)},p:function(d,m){var _=ds(m,1)[0];t=d,(!s||1&_&&i!==(i="jse-validation-"+t[0].severity+" svelte-1yy7qpj"))&&ce(e,"class",i),r&&T1(r.update)&&4&_&&r.update.call(null,yn({text:t[2]},t[3]))},i:function(d){s||(Me(n.$$.fragment,d),s=!0)},o:function(d){je(n.$$.fragment,d),s=!1},d:function(d){d&&At(e),Rn(n),a=!1,ma(u)}}}function xje(t,e,n){var i,r=V1("absolute-popup"),s=e.validationError,a=e.onExpand;return t.$$set=function(u){"validationError"in u&&n(0,s=u.validationError),"onExpand"in u&&n(1,a=u.onExpand)},t.$$.update=function(){1&t.$$.dirty&&n(2,i=function IPe(t){return ga(t)&&function APe(t){return ga(t)&&Array.isArray(t.path)&&"string"==typeof t.message&&"severity"in t}(t)&&"boolean"==typeof t.isChildError}(s)&&s.isChildError?"Contains invalid data":s.message)},[s,a,i,r]}var C7=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,xje,Cje,n1,{validationError:0,onExpand:1},yje),i}return br(e,Cr),pr(e)}();function wje(t){as(t,"svelte-6mjnsm",'.jse-json-node.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative;color:var(--jse-text-color, #4d4d4d)}.jse-json-node.jse-root.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{min-height:100%;padding-bottom:2px;box-sizing:border-box}.jse-json-node.jse-root.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm .jse-context-menu-pointer,.jse-json-node.jse-root.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm .jse-context-menu-pointer{top:0;right:calc(-2px - var(--jse-context-menu-pointer-size, calc(1em + 4px)))}.jse-json-node.jse-root.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm.svelte-6mjnsm{padding-left:0}.jse-json-node.svelte-6mjnsm .jse-props.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-items.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-header-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-footer-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)))}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-header .jse-meta.svelte-6mjnsm>.jse-meta-inner.svelte-6mjnsm.svelte-6mjnsm{display:flex;justify-content:center}.jse-json-node.svelte-6mjnsm .jse-contents-outer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)))}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;flex-direction:row;align-items:flex-start}.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding-left:var(--jse-indent-size, calc(1em + 4px))}.jse-json-node.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:inline-flex;padding-left:calc(var(--jse-indent-size, calc(1em + 4px)) + 5px)}.jse-json-node.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-contents-background-color, transparent)}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{visibility:hidden;padding:0 calc(0.5 * var(--jse-padding, 10px));flex:1}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.jse-inside.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:inline-flex;align-items:center}.jse-json-node.svelte-6mjnsm .jse-insert-selection-area.jse-after.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;align-items:flex-end}.jse-json-node.svelte-6mjnsm .jse-context-menu-pointer-anchor.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{position:relative}.jse-json-node.svelte-6mjnsm .jse-insert-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{display:flex;position:relative;z-index:1;margin-left:calc(var(--level) * var(--jse-indent-size, calc(1em + 4px)));max-width:250px;min-width:100px;height:0;margin-right:calc(0.5 * var(--jse-padding, 10px));outline:1px solid}.jse-json-node.svelte-6mjnsm .jse-insert-area.svelte-6mjnsm .jse-context-menu-pointer{right:-1px;background:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-hovered.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{outline-color:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-json-node.svelte-6mjnsm:hover>.jse-contents-outer .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected),.jse-json-node.svelte-6mjnsm .jse-header-outer.svelte-6mjnsm:hover>.jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected),.jse-json-node.svelte-6mjnsm .jse-footer-outer:hover .jse-insert-selection-area.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:not(.jse-selected){visibility:visible}.jse-json-node.jse-hovered.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-hovered.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-json-node.jse-selected.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected.svelte-6mjnsm .jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-selected.svelte-6mjnsm .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-selection-background-color, #d3d3d3)}.jse-json-node.jse-selected-key.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm>.jse-identifier>.jse-key,.jse-json-node.jse-selected-key.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-identifier>.jse-key{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-contents-outer.svelte-6mjnsm>.jse-contents.svelte-6mjnsm>.jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.svelte-6mjnsm .jse-collapsed-items.jse-selected,.jse-json-node.jse-selected.svelte-6mjnsm .jse-collapsed-items,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-collapsed-items{background-color:var(--jse-selection-background-color, #d3d3d3);--jse-collapsed-items-background-color:var(--jse-collapsed-items-selected-background-color, #c2c2c2)}.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{background:var(--jse-selection-background-color, #d3d3d3)}.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-meta.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-header-outer.svelte-6mjnsm>.jse-header.svelte-6mjnsm>.jse-meta.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm>.jse-footer-outer.svelte-6mjnsm>.jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-contents.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-header.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-props .jse-expand.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-contents.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-header.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-footer.svelte-6mjnsm .jse-value,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm .jse-key,.jse-json-node.jse-selected-value.svelte-6mjnsm .jse-items .jse-expand.svelte-6mjnsm .jse-value{background:var(--jse-selection-background-color, #d3d3d3);cursor:var(--jse-contents-selected-cursor, grab)}.jse-json-node.jse-readonly.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{--jse-contents-selected-cursor:pointer}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{outline-color:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565))}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm .jse-context-menu-pointer{background:var(--jse-context-menu-pointer-background, var(--jse-context-menu-background, #656565))}.jse-json-node.svelte-6mjnsm .jse-insert-area.jse-selected.svelte-6mjnsm .jse-context-menu-pointer:hover{background:var(--jse-context-menu-pointer-background-highlight, var(--jse-context-menu-background-highlight, #7a7a7a))}.jse-main:not(.jse-focus) .jse-json-node.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{--jse-selection-background-color:var(--jse-selection-background-inactive-color, #e8e8e8);--jse-context-menu-pointer-background:var(--jse-context-menu-pointer-hover-background, #b2b2b2)}.jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{width:var(--jse-indent-size, calc(1em + 4px));padding:0;margin:0;border:none;cursor:pointer;background:transparent;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38));font-size:var(--jse-font-size-mono, 14px);height:var(--jse-line-height, calc(1em + 4px))}.jse-expand.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:hover{opacity:0.8}.jse-meta.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-separator.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-index.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm,.jse-bracket.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{vertical-align:top;color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-index.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding:0 calc(0.5 * var(--jse-padding, 10px))}.jse-bracket.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding:0 2px}.jse-bracket.jse-expanded.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{padding-right:var(--jse-padding, 10px)}.jse-tag.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{border:none;font-size:80%;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);color:var(--jse-tag-color, var(--jse-text-color-inverse, #fff));background:var(--jse-tag-background, rgba(0, 0, 0, 0.2));border-radius:2px;cursor:pointer;display:inline-block;padding:0 4px;line-height:normal;margin:1px 0}.jse-tag.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm:hover{opacity:0.8}.jse-tag.jse-expanded.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{opacity:0.7;cursor:inherit}.jse-identifier.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm.svelte-6mjnsm{vertical-align:top;position:relative}')}var Mje=function(t){return{}},Zne=function(t){return{}};function eie(t,e,n){var i=t.slice();return i[52]=e[n],i}var Sje=function(t){return{}},tie=function(t){return{}};function nie(t,e,n){var i=t.slice();return i[46]=e[n],i[48]=n,i}function iie(t,e,n){var i=t.slice();return i[49]=e[n],i}var kje=function(t){return{}},rie=function(t){return{}};function Eje(t){var e,n,i,r,s,a,u,d,m,_=!t[8].readOnly&&t[16]&&t[7]&&(po(t[7])||Ca(t[7]))&&!C2(t[7])&&zs(mr(t[7]),t[1]),y=t[33].identifier,x=jc(y,t,t[34],Zne),S=!t[17]&&sie();s=new bje({props:{path:t[1],value:t[0],enforceString:t[13]||!1,selection:t[16]?t[7]:null,searchResultItems:KL(t[6],t[9]),context:t[8]}});var D=_&&oie(t),z=t[15]&&aie(t),$=!t[17]&&cie(t);return{c:function(){e=pt("div"),n=pt("div"),x&&x.c(),i=gn(),S&&S.c(),r=gn(),Nn(s.$$.fragment),a=gn(),D&&D.c(),u=gn(),z&&z.c(),d=gn(),$&&$.c(),ce(n,"class","jse-contents svelte-6mjnsm"),ce(e,"class","jse-contents-outer svelte-6mjnsm")},m:function(W,re){Ht(W,e,re),Ge(e,n),x&&x.m(n,null),Ge(n,i),S&&S.m(n,null),Ge(n,r),zn(s,n,null),Ge(n,a),D&&D.m(n,null),Ge(e,u),z&&z.m(e,null),Ge(e,d),$&&$.m(e,null),m=!0},p:function(W,re){x&&x.p&&(!m||8&re[1])&&Bc(x,y,W,W[34],m?Fc(y,W[34],re,Mje):$c(W[34]),Zne),W[17]?S&&(S.d(1),S=null):S||((S=sie()).c(),S.m(n,r));var se={};2&re[0]&&(se.path=W[1]),1&re[0]&&(se.value=W[0]),8192&re[0]&&(se.enforceString=W[13]||!1),65664&re[0]&&(se.selection=W[16]?W[7]:null),576&re[0]&&(se.searchResultItems=KL(W[6],W[9])),256&re[0]&&(se.context=W[8]),s.$set(se),65922&re[0]&&(_=!W[8].readOnly&&W[16]&&W[7]&&(po(W[7])||Ca(W[7]))&&!C2(W[7])&&zs(mr(W[7]),W[1])),_?D?(D.p(W,re),65922&re[0]&&Me(D,1)):((D=oie(W)).c(),Me(D,1),D.m(n,null)):D&&(si(),je(D,1,1,function(){D=null}),oi()),W[15]?z?(z.p(W,re),32768&re[0]&&Me(z,1)):((z=aie(W)).c(),Me(z,1),z.m(e,d)):z&&(si(),je(z,1,1,function(){z=null}),oi()),W[17]?$&&($.d(1),$=null):$?$.p(W,re):(($=cie(W)).c(),$.m(e,null))},i:function(W){m||(Me(x,W),Me(s.$$.fragment,W),Me(D),Me(z),m=!0)},o:function(W){je(x,W),je(s.$$.fragment,W),je(D),je(z),m=!1},d:function(W){W&&At(e),x&&x.d(W),S&&S.d(),Rn(s),D&&D.d(),z&&z.d(),$&&$.d()}}}function Dje(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se=!t[8].readOnly&&t[16]&&t[7]&&(po(t[7])||Ca(t[7]))&&!C2(t[7])&&zs(mr(t[7]),t[1]),ke=[Aje,Vje],ye=[];function Ye(st,gt){return st[12]?0:1}r=Ye(t),s=ye[r]=ke[r](t);var lt=t[33].identifier,Vt=jc(lt,t,t[34],tie),Nt=!t[17]&&lie();function kt(st,gt){return st[12]?Oje:Ije}var qt=kt(t),wt=qt(t),Dt=se&&uie(t),ut=t[15]&&(!t[12]||!t[15].isChildError)&&die(t);function Ut(st,gt){return st[12]?Lje:st[17]?void 0:Hje}var $t=Ut(t),Lt=$t&&$t(t),et=t[12]&&fie(t);return{c:function(){e=pt("div"),n=pt("div"),i=pt("button"),s.c(),a=gn(),Vt&&Vt.c(),u=gn(),Nt&&Nt.c(),d=gn(),m=pt("div"),_=pt("div"),wt.c(),y=gn(),Dt&&Dt.c(),x=gn(),ut&&ut.c(),S=gn(),Lt&&Lt.c(),D=gn(),et&&et.c(),z=ho(),ce(i,"type","button"),ce(i,"class","jse-expand svelte-6mjnsm"),ce(i,"title","Expand or collapse this object (Ctrl+Click to expand/collapse recursively)"),ce(_,"class","jse-meta-inner svelte-6mjnsm"),ce(m,"class","jse-meta svelte-6mjnsm"),ce(m,"data-type","selectable-value"),ce(n,"class","jse-header svelte-6mjnsm"),ce(e,"class","jse-header-outer svelte-6mjnsm")},m:function(st,gt){Ht(st,e,gt),Ge(e,n),Ge(n,i),ye[r].m(i,null),Ge(n,a),Vt&&Vt.m(n,null),Ge(n,u),Nt&&Nt.m(n,null),Ge(n,d),Ge(n,m),Ge(m,_),wt.m(_,null),Ge(n,y),Dt&&Dt.m(n,null),Ge(e,x),ut&&ut.m(e,null),Ge(e,S),Lt&&Lt.m(e,null),Ht(st,D,gt),et&&et.m(st,gt),Ht(st,z,gt),$=!0,W||(re=ei(i,"click",t[20]),W=!0)},p:function(st,gt){var sn=r;(r=Ye(st))!==sn&&(si(),je(ye[sn],1,1,function(){ye[sn]=null}),oi(),(s=ye[r])||(s=ye[r]=ke[r](st)).c(),Me(s,1),s.m(i,null)),Vt&&Vt.p&&(!$||8>[1])&&Bc(Vt,lt,st,st[34],$?Fc(lt,st[34],gt,Sje):$c(st[34]),tie),st[17]?Nt&&(Nt.d(1),Nt=null):Nt||((Nt=lie()).c(),Nt.m(n,d)),qt===(qt=kt(st))&&wt?wt.p(st,gt):(wt.d(1),(wt=qt(st))&&(wt.c(),wt.m(_,null))),65922>[0]&&(se=!st[8].readOnly&&st[16]&&st[7]&&(po(st[7])||Ca(st[7]))&&!C2(st[7])&&zs(mr(st[7]),st[1])),se?Dt?(Dt.p(st,gt),65922>[0]&&Me(Dt,1)):((Dt=uie(st)).c(),Me(Dt,1),Dt.m(n,null)):Dt&&(si(),je(Dt,1,1,function(){Dt=null}),oi()),!st[15]||st[12]&&st[15].isChildError?ut&&(si(),je(ut,1,1,function(){ut=null}),oi()):ut?(ut.p(st,gt),36864>[0]&&Me(ut,1)):((ut=die(st)).c(),Me(ut,1),ut.m(e,S)),$t===($t=Ut(st))&&Lt?Lt.p(st,gt):(Lt&&Lt.d(1),(Lt=$t&&$t(st))&&(Lt.c(),Lt.m(e,null))),st[12]?et?(et.p(st,gt),4096>[0]&&Me(et,1)):((et=fie(st)).c(),Me(et,1),et.m(z.parentNode,z)):et&&(si(),je(et,1,1,function(){et=null}),oi())},i:function(st){$||(Me(s),Me(Vt,st),Me(Dt),Me(ut),Me(et),$=!0)},o:function(st){je(s),je(Vt,st),je(Dt),je(ut),je(et),$=!1},d:function(st){st&&(At(e),At(D),At(z)),ye[r].d(),Vt&&Vt.d(st),Nt&&Nt.d(),wt.d(),Dt&&Dt.d(),ut&&ut.d(),Lt&&Lt.d(),et&&et.d(st),W=!1,re()}}}function Tje(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se=!t[8].readOnly&&t[16]&&t[7]&&(po(t[7])||Ca(t[7]))&&!C2(t[7])&&zs(mr(t[7]),t[1]),ke=[Nje,Rje],ye=[];function Ye(st,gt){return st[12]?0:1}r=Ye(t),s=ye[r]=ke[r](t);var lt=t[33].identifier,Vt=jc(lt,t,t[34],rie),Nt=!t[17]&&gie();function kt(st,gt){return st[12]?jje:Pje}var qt=kt(t),wt=qt(t),Dt=se&&vie(t),ut=t[15]&&(!t[12]||!t[15].isChildError)&&_ie(t);function Ut(st,gt){return st[12]?Bje:Fje}var $t=Ut(t),Lt=$t(t),et=t[12]&&bie(t);return{c:function(){e=pt("div"),n=pt("div"),i=pt("button"),s.c(),a=gn(),Vt&&Vt.c(),u=gn(),Nt&&Nt.c(),d=gn(),m=pt("div"),_=pt("div"),wt.c(),y=gn(),Dt&&Dt.c(),x=gn(),ut&&ut.c(),S=gn(),Lt.c(),D=gn(),et&&et.c(),z=ho(),ce(i,"type","button"),ce(i,"class","jse-expand svelte-6mjnsm"),ce(i,"title","Expand or collapse this array (Ctrl+Click to expand/collapse recursively)"),ce(_,"class","jse-meta-inner svelte-6mjnsm"),ce(_,"data-type","selectable-value"),ce(m,"class","jse-meta svelte-6mjnsm"),ce(n,"class","jse-header svelte-6mjnsm"),ce(e,"class","jse-header-outer svelte-6mjnsm")},m:function(st,gt){Ht(st,e,gt),Ge(e,n),Ge(n,i),ye[r].m(i,null),Ge(n,a),Vt&&Vt.m(n,null),Ge(n,u),Nt&&Nt.m(n,null),Ge(n,d),Ge(n,m),Ge(m,_),wt.m(_,null),Ge(n,y),Dt&&Dt.m(n,null),Ge(e,x),ut&&ut.m(e,null),Ge(e,S),Lt.m(e,null),Ht(st,D,gt),et&&et.m(st,gt),Ht(st,z,gt),$=!0,W||(re=ei(i,"click",t[20]),W=!0)},p:function(st,gt){var sn=r;(r=Ye(st))!==sn&&(si(),je(ye[sn],1,1,function(){ye[sn]=null}),oi(),(s=ye[r])||(s=ye[r]=ke[r](st)).c(),Me(s,1),s.m(i,null)),Vt&&Vt.p&&(!$||8>[1])&&Bc(Vt,lt,st,st[34],$?Fc(lt,st[34],gt,kje):$c(st[34]),rie),st[17]?Nt&&(Nt.d(1),Nt=null):Nt||((Nt=gie()).c(),Nt.m(n,d)),qt===(qt=kt(st))&&wt?wt.p(st,gt):(wt.d(1),(wt=qt(st))&&(wt.c(),wt.m(_,null))),65922>[0]&&(se=!st[8].readOnly&&st[16]&&st[7]&&(po(st[7])||Ca(st[7]))&&!C2(st[7])&&zs(mr(st[7]),st[1])),se?Dt?(Dt.p(st,gt),65922>[0]&&Me(Dt,1)):((Dt=vie(st)).c(),Me(Dt,1),Dt.m(n,null)):Dt&&(si(),je(Dt,1,1,function(){Dt=null}),oi()),!st[15]||st[12]&&st[15].isChildError?ut&&(si(),je(ut,1,1,function(){ut=null}),oi()):ut?(ut.p(st,gt),36864>[0]&&Me(ut,1)):((ut=_ie(st)).c(),Me(ut,1),ut.m(e,S)),$t===($t=Ut(st))&&Lt?Lt.p(st,gt):(Lt.d(1),(Lt=$t(st))&&(Lt.c(),Lt.m(e,null))),st[12]?et?(et.p(st,gt),4096>[0]&&Me(et,1)):((et=bie(st)).c(),Me(et,1),et.m(z.parentNode,z)):et&&(si(),je(et,1,1,function(){et=null}),oi())},i:function(st){$||(Me(s),Me(Vt,st),Me(Dt),Me(ut),Me(et),$=!0)},o:function(st){je(s),je(Vt,st),je(Dt),je(ut),je(et),$=!1},d:function(st){st&&(At(e),At(D),At(z)),ye[r].d(),Vt&&Vt.d(st),Nt&&Nt.d(),wt.d(),Dt&&Dt.d(),ut&&ut.d(),Lt.d(),et&&et.d(st),W=!1,re()}}}function sie(t){var e;return{c:function(){(e=pt("div")).textContent=":",ce(e,"class","jse-separator svelte-6mjnsm")},m:function(n,i){Ht(n,e,i)},d:function(n){n&&At(e)}}}function oie(t){var e,n,i;return n=new Fh({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){e=pt("div"),Nn(n.$$.fragment),ce(e,"class","jse-context-menu-pointer-anchor svelte-6mjnsm")},m:function(r,s){Ht(r,e,s),zn(n,e,null),i=!0},p:function(r,s){var a={};256&s[0]&&(a.onContextMenu=r[8].onContextMenu),n.$set(a)},i:function(r){i||(Me(n.$$.fragment,r),i=!0)},o:function(r){je(n.$$.fragment,r),i=!1},d:function(r){r&&At(e),Rn(n)}}}function aie(t){var e,n;return e=new C7({props:{validationError:t[15],onExpand:t[21]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};32768&r[0]&&(s.validationError=i[15]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function cie(t){var e,n,i;return{c:function(){ce(e=pt("div"),"role","none"),ce(e,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),ce(e,"data-type","insert-selection-area-after")},m:function(r,s){Ht(r,e,s),n||(i=ei(e,"click",t[29]),n=!0)},p:hi,d:function(r){r&&At(e),n=!1,i()}}}function Vje(t){var e,n;return e=new Co({props:{data:p0}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Aje(t){var e,n;return e=new Co({props:{data:Uu}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function lie(t){var e;return{c:function(){(e=pt("div")).textContent=":",ce(e,"class","jse-separator svelte-6mjnsm")},m:function(n,i){Ht(n,e,i)},d:function(n){n&&At(e)}}}function Ije(t){var e,n,i,r,s,a,u,d,m,_,y=Object.keys(t[0]).length+"",x=1===Object.keys(t[0]).length?"prop":"props";return{c:function(){(e=pt("div")).textContent="{",n=gn(),i=pt("button"),r=Ii(y),s=gn(),a=Ii(x),u=gn(),(d=pt("div")).textContent="}",ce(e,"class","jse-bracket svelte-6mjnsm"),ce(i,"type","button"),ce(i,"class","jse-tag svelte-6mjnsm"),ce(d,"class","jse-bracket svelte-6mjnsm")},m:function(S,D){Ht(S,e,D),Ht(S,n,D),Ht(S,i,D),Ge(i,r),Ge(i,s),Ge(i,a),Ht(S,u,D),Ht(S,d,D),m||(_=ei(i,"click",t[21]),m=!0)},p:function(S,D){1&D[0]&&y!==(y=Object.keys(S[0]).length+"")&&Ir(r,y),1&D[0]&&x!==(x=1===Object.keys(S[0]).length?"prop":"props")&&Ir(a,x)},d:function(S){S&&(At(e),At(n),At(i),At(u),At(d)),m=!1,_()}}}function Oje(t){var e;return{c:function(){(e=pt("div")).textContent="{",ce(e,"class","jse-bracket jse-expanded svelte-6mjnsm")},m:function(n,i){Ht(n,e,i)},p:hi,d:function(n){n&&At(e)}}}function uie(t){var e,n,i;return n=new Fh({props:{selected:!0,onContextMenu:t[8].onContextMenu}}),{c:function(){e=pt("div"),Nn(n.$$.fragment),ce(e,"class","jse-context-menu-pointer-anchor svelte-6mjnsm")},m:function(r,s){Ht(r,e,s),zn(n,e,null),i=!0},p:function(r,s){var a={};256&s[0]&&(a.onContextMenu=r[8].onContextMenu),n.$set(a)},i:function(r){i||(Me(n.$$.fragment,r),i=!0)},o:function(r){je(n.$$.fragment,r),i=!1},d:function(r){r&&At(e),Rn(n)}}}function die(t){var e,n;return e=new C7({props:{validationError:t[15],onExpand:t[21]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};32768&r[0]&&(s.validationError=i[15]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Hje(t){var e,n,i;return{c:function(){ce(e=pt("div"),"role","none"),ce(e,"class","jse-insert-selection-area jse-after svelte-6mjnsm"),ce(e,"data-type","insert-selection-area-after")},m:function(r,s){Ht(r,e,s),n||(i=ei(e,"click",t[29]),n=!0)},p:hi,d:function(r){r&&At(e),n=!1,i()}}}function Lje(t){var e,n,i;return{c:function(){ce(e=pt("div"),"role","none"),ce(e,"class","jse-insert-selection-area jse-inside svelte-6mjnsm"),ce(e,"data-type","insert-selection-area-inside")},m:function(r,s){Ht(r,e,s),n||(i=ei(e,"click",t[28]),n=!0)},p:hi,d:function(r){r&&At(e),n=!1,i()}}}function fie(t){for(var e,n,i,r,s,a,u,d=!t[8].readOnly&&(t[10]===S0||t[16]&&Dl(t[7])),m=d&&hie(t),_=cs(t[18](t[1],t[0],t[2],t[3],t[4],t[5],t[6],t[7],t[11])),y=[],x=0;x<_.length;x+=1)y[x]=pie(eie(t,_,x));var S=function(z){return je(y[z],1,1,function(){y[z]=null})},D=!t[17]&&mie(t);return{c:function(){e=pt("div"),m&&m.c(),n=gn();for(var z=0;z}',a=gn(),D&&D.c(),ce(e,"class","jse-props svelte-6mjnsm"),ce(s,"data-type","selectable-value"),ce(s,"class","jse-footer svelte-6mjnsm"),ce(r,"class","jse-footer-outer svelte-6mjnsm")},m:function(z,$){Ht(z,e,$),m&&m.m(e,null),Ge(e,n);for(var W=0;W]',a=gn(),W&&W.c(),ce(e,"class","jse-items svelte-6mjnsm"),ce(s,"data-type","selectable-value"),ce(s,"class","jse-footer svelte-6mjnsm"),ce(r,"class","jse-footer-outer svelte-6mjnsm")},m:function(re,se){Ht(re,e,se),y&&y.m(e,null),Ge(e,n);for(var ke=0;ke=Yr.start&&Pr<=Yr.end});if(!va)return null;vee(va.start,Math.min(S.length,va.end),function(Yr){return wi(String(Yr))})}else Object.keys(S).forEach(wi);return Zt}(ke,u||$p);if(lt("dragSelectionStart",{selection:ke,items:gt}),gt){var sn=ye.getJson();if(void 0!==sn){var Hn=A0(sn,ke),on=gt.findIndex(function(An){return zs(An.path,Hn)}),Xt=cz({json:sn,documentState:ye.getDocumentState(),deltaY:0,items:gt}).offset;n(11,kt={initialTarget:et.target,initialClientY:et.clientY,initialContentTop:ut(),selectionStartIndex:on,selectionItemsCount:Rh(sn,ke).length,items:gt,offset:Xt,didMoveItems:!1}),_1.dragging=!0,document.addEventListener("mousemove",$t,!0),document.addEventListener("mouseup",Lt)}}else lt("Cannot drag the current selection (probably spread over multiple sections)")}else Ye(et)}},function(et){_1.selecting||_1.dragging||(et.stopPropagation(),Wp(et.target,"data-type","selectable-value")?n(10,Vt=bL):Wp(et.target,"data-type","insert-selection-area-inside")?n(10,Vt=S0):Wp(et.target,"data-type","insert-selection-area-after")&&n(10,Vt=hb),clearTimeout(Nt))},function(et){et.stopPropagation(),Nt=window.setTimeout(function(){return n(10,Vt=void 0)})},function(et){et.shiftKey||(et.stopPropagation(),et.preventDefault(),ye.onSelect(O0(D)))},function(et){et.shiftKey||(et.stopPropagation(),et.preventDefault(),ye.onSelect(H0(D)))},function(et){ye.onSelect(O0(D)),ye.onContextMenu(et)},function(et){ye.onSelect(H0(D)),ye.onContextMenu(et)},Ye,y,x]}var lz=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,Gje,Uje,gs,{value:0,path:1,expandedMap:2,enforceStringMap:3,visibleSectionsMap:4,validationErrorsMap:5,searchResultItemsMap:6,selection:7,context:8,onDragSelectionStart:32},wje,[-1,-1]),i}return br(e,Cr),pr(e)}(),Wje=lz,qje={prefix:"fas",iconName:"jsoneditor-expand",icon:[512,512,[],"","M 0,448 V 512 h 512 v -64 z M 0,0 V 64 H 512 V 0 Z M 256,96 128,224 h 256 z M 256,416 384,288 H 128 Z"]},Xje={prefix:"fas",iconName:"jsoneditor-collapse",icon:[512,512,[],"","m 0,224 v 64 h 512 v -64 z M 256,192 384,64 H 128 Z M 256,320 128,448 h 256 z"]},uz={prefix:"fas",iconName:"jsoneditor-format",icon:[512,512,[],"","M 0,32 v 64 h 416 v -64 z M 160,160 v 64 h 352 v -64 z M 160,288 v 64 h 288 v -64 z M 0,416 v 64 h 320 v -64 z"]},Kje={prefix:"fas",iconName:"jsoneditor-compact",icon:[512,512,[],"","M 0,32 v 64 h 512 v -64 z M 0,160 v 64 h 512 v -64 z M 0,288 v 64 h 352 v -64 z"]};function Yje(t){var e,n;return e=new rE({props:{items:t[0]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&ds(r,1)[0]&&(s.items=i[0]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Qje(t,e,n){var i,r,s,a,u,d,m,_=e.json,y=e.selection,x=e.readOnly,S=e.showSearch,D=void 0!==S&&S,z=e.historyState,$=e.onExpandAll,W=e.onCollapseAll,re=e.onUndo,se=e.onRedo,ke=e.onSort,ye=e.onTransform,Ye=e.onContextMenu,lt=e.onCopy,Vt=e.onRenderMenu;function Nt(){n(1,D=!D)}return t.$$set=function(kt){"json"in kt&&n(2,_=kt.json),"selection"in kt&&n(3,y=kt.selection),"readOnly"in kt&&n(4,x=kt.readOnly),"showSearch"in kt&&n(1,D=kt.showSearch),"historyState"in kt&&n(5,z=kt.historyState),"onExpandAll"in kt&&n(6,$=kt.onExpandAll),"onCollapseAll"in kt&&n(7,W=kt.onCollapseAll),"onUndo"in kt&&n(8,re=kt.onUndo),"onRedo"in kt&&n(9,se=kt.onRedo),"onSort"in kt&&n(10,ke=kt.onSort),"onTransform"in kt&&n(11,ye=kt.onTransform),"onContextMenu"in kt&&n(12,Ye=kt.onContextMenu),"onCopy"in kt&&n(13,lt=kt.onCopy),"onRenderMenu"in kt&&n(14,Vt=kt.onRenderMenu)},t.$$.update=function(){4&t.$$.dirty&&n(20,i=void 0!==_),1048584&t.$$.dirty&&n(19,r=i&&(Ca(y)||dl(y)||po(y))),68&t.$$.dirty&&n(15,a={type:"button",icon:qje,title:"Expand all",className:"jse-expand-all",onClick:$,disabled:!Uc(_)}),132&t.$$.dirty&&n(16,u={type:"button",icon:Xje,title:"Collapse all",className:"jse-collapse-all",onClick:W,disabled:!Uc(_)}),4&t.$$.dirty&&n(17,d={type:"button",icon:m_,title:"Search (Ctrl+F)",className:"jse-search",onClick:Nt,disabled:void 0===_}),769844&t.$$.dirty&&n(18,m=x?[a,u,{type:"separator"},{type:"button",icon:g0,title:"Copy (Ctrl+C)",className:"jse-copy",onClick:lt,disabled:!r},{type:"separator"},d,{type:"space"}]:[a,u,{type:"separator"},{type:"button",icon:p_,title:"Sort",className:"jse-sort",onClick:ke,disabled:x||void 0===_},{type:"button",icon:u_,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:ye,disabled:x||void 0===_},d,{type:"button",icon:SI,title:_L,className:"jse-contextmenu",onClick:Ye},{type:"separator"},{type:"button",icon:LM,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:re,disabled:!z.canUndo},{type:"button",icon:HM,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:se,disabled:!z.canRedo},{type:"space"}]),278528&t.$$.dirty&&n(0,s=Vt(m))},[s,D,_,y,x,z,$,W,re,se,ke,ye,Ye,lt,Vt,a,u,d,m,r,i]}var Jje=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,Qje,Yje,gs,{json:2,selection:3,readOnly:4,showSearch:1,historyState:5,onExpandAll:6,onCollapseAll:7,onUndo:8,onRedo:9,onSort:10,onTransform:11,onContextMenu:12,onCopy:13,onRenderMenu:14}),i}return br(e,Cr),pr(e)}();function Zje(t){as(t,"svelte-s2toti",'.jse-welcome.svelte-s2toti.svelte-s2toti{flex:1;overflow:auto;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);display:flex;flex-direction:column;align-items:center;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-welcome.svelte-s2toti.svelte-s2toti:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-welcome.svelte-s2toti .jse-space.jse-before.svelte-s2toti{flex:1}.jse-welcome.svelte-s2toti .jse-space.jse-after.svelte-s2toti{flex:2}.jse-welcome.svelte-s2toti .jse-contents.svelte-s2toti{display:flex;flex-direction:column;max-width:300px;margin:2em var(--jse-padding, 10px);gap:var(--jse-padding, 10px)}.jse-welcome.svelte-s2toti .jse-contents .jse-welcome-info.svelte-s2toti{color:var(--jse-panel-color-readonly, #b2b2b2)}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-welcome.svelte-s2toti .jse-contents button.svelte-s2toti:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}')}function kie(t){var e,n,i,r,s,a,u;return{c:function(){(e=pt("div")).innerHTML="You can paste clipboard data using Ctrl+V, or use the following options:",n=gn(),(i=pt("button")).textContent="Create object",r=gn(),(s=pt("button")).textContent="Create array",ce(e,"class","jse-welcome-info svelte-s2toti"),ce(i,"title","Create an empty JSON object (press '{')"),ce(i,"class","svelte-s2toti"),ce(s,"title","Create an empty JSON array (press '[')"),ce(s,"class","svelte-s2toti")},m:function(d,m){Ht(d,e,m),Ht(d,n,m),Ht(d,i,m),Ht(d,r,m),Ht(d,s,m),a||(u=[ei(i,"click",y4(t[4])),ei(s,"click",y4(t[5]))],a=!0)},p:hi,d:function(d){d&&(At(e),At(n),At(i),At(r),At(s)),a=!1,ma(u)}}}function eFe(t){var e,n,i,r,s,a,u,d,m,_,y=!t[0]&&kie(t);return{c:function(){e=pt("div"),n=pt("div"),i=gn(),r=pt("div"),(s=pt("div")).textContent="Empty document",a=gn(),y&&y.c(),u=gn(),d=pt("div"),ce(n,"class","jse-space jse-before svelte-s2toti"),ce(s,"class","jse-welcome-title"),ce(r,"class","jse-contents svelte-s2toti"),ce(d,"class","jse-space jse-after svelte-s2toti"),ce(e,"class","jse-welcome svelte-s2toti"),ce(e,"role","none")},m:function(x,S){Ht(x,e,S),Ge(e,n),Ge(e,i),Ge(e,r),Ge(r,s),Ge(r,a),y&&y.m(r,null),Ge(e,u),Ge(e,d),m||(_=ei(e,"click",t[6]),m=!0)},p:function(x,S){var D=ds(S,1)[0];x[0]?y&&(y.d(1),y=null):y?y.p(x,D):((y=kie(x)).c(),y.m(r,null))},i:hi,o:hi,d:function(x){x&&At(e),y&&y.d(),m=!1,_()}}}function tFe(t,e,n){var i=e.readOnly,r=e.onCreateArray,s=e.onCreateObject,a=e.onClick;return t.$$set=function(u){"readOnly"in u&&n(0,i=u.readOnly),"onCreateArray"in u&&n(1,r=u.onCreateArray),"onCreateObject"in u&&n(2,s=u.onCreateObject),"onClick"in u&&n(3,a=u.onClick)},[i,r,s,a,function(){return s()},function(){return r()},function(){return a()}]}var nFe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,tFe,eFe,gs,{readOnly:0,onCreateArray:1,onCreateObject:2,onClick:3},Zje),i}return br(e,Cr),pr(e)}();function dz(t,e){var n="string"==typeof t?t.toLowerCase():t,i="string"==typeof e?e.toLowerCase():e;return CDe(n,i)}function Eie(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(Be(nt(t,e))){if(void 0===n)throw new Error("Cannot sort: no property selected by which to sort the array");return function(r){var _,y,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],d=(_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,function(x,S){var D=nt(x,_),z=nt(S,_);return void 0===D?y:void 0===z?-y:"string"!=typeof D&&"string"!=typeof z?D>z?y:D1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=nt(r,s),d=Object.keys(u).slice();d.sort(function(S,D){return a*dz(S,D)});for(var m=[],_=0;_Vb&&Vie();return{c:function(){e=pt("div");for(var y=0;yVb?_?_.p(y,S):((_=Vie()).c(),_.m(e,null)):_&&(_.d(1),_=null)},i:hi,o:hi,d:function(y){y&&At(e);for(var x=0;x0&&(a("scrollTo ",z),s.scrollTo({left:z,behavior:"smooth"}))}})},[u,_,y,i,s,x,r,function(z){a("get items for path",z);var $=nt(u,z);if(Array.isArray($))return v(0,$.length).map(String);if(ga($)){var W=Object.keys($).slice(0);return W.sort(dz),W}return[]},function(z){return te(u,z)},S,function(){n(5,x=!x)},D,function(z){D(),S(z)},d,m,function(z){Vs[z?"unshift":"push"](function(){n(4,s=z)})}]}var bFe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,_Fe,vFe,gs,{json:0,selection:13,onSelect:14,onError:1,pathParser:2},pFe),i}return br(e,Cr),pr(e)}();function yFe(t){as(t,"svelte-wnmp4a",'.jse-search-box.svelte-wnmp4a.svelte-wnmp4a{border:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7));border-radius:3px;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);box-shadow:var(--jse-controls-box-shadow, 0 2px 6px 0 rgba(0, 0, 0, 0.24));display:inline-block;width:400px;max-width:100%;overflow:auto}.jse-search-box.svelte-wnmp4a .jse-search-form.svelte-wnmp4a{display:flex;align-items:stretch}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a,.jse-search-box.svelte-wnmp4a .jse-search-form input.svelte-wnmp4a{font-family:inherit;font-size:inherit}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a{display:block;text-align:center;border:none;padding:0 5px;margin:0;cursor:pointer;color:var(--jse-panel-button-color, inherit);background:var(--jse-panel-button-background, transparent)}.jse-search-box.svelte-wnmp4a .jse-search-form button.svelte-wnmp4a:hover{color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d));background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-search-box.svelte-wnmp4a .jse-search-form input.svelte-wnmp4a{color:var(--jse-panel-color, var(--jse-text-color, #4d4d4d));border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:3px;background:var(--jse-input-background, var(--jse-background-color, #fff));height:28px;padding:0 5px;margin:0;flex:1;width:0;min-width:50px;outline:none}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-replace-toggle.svelte-wnmp4a{padding:var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px));min-width:20px;background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents.svelte-wnmp4a{flex:1;display:flex;flex-direction:column;padding:calc(0.5 * var(--jse-padding, 10px));gap:calc(0.5 * var(--jse-padding, 10px))}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section.svelte-wnmp4a{flex:1;display:flex;align-items:center;position:relative}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-icon.svelte-wnmp4a{color:inherit;cursor:inherit;background:inherit;width:32px;text-align:center}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section label.jse-search-input-label.svelte-wnmp4a{flex:1;display:flex}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.svelte-wnmp4a{color:inherit;font-size:80%;visibility:hidden;padding:0 5px;min-width:36px;text-align:center}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-search-section .jse-search-count.jse-visible.svelte-wnmp4a{visibility:visible}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-replace-section.svelte-wnmp4a{padding-left:32px;flex:1;display:flex}.jse-search-box.svelte-wnmp4a .jse-search-form .jse-search-contents .jse-replace-section button.svelte-wnmp4a{width:auto}')}function Pie(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,kt,qt,wt,Dt=(-1!==t[7]&&t[7]=1e3?"".concat(999,"+"):String(i)),71303168&t.$$.dirty[0]&&z(a),2&t.$$.dirty[0]&&function(wi){gt.apply(this,arguments)}(y),8&t.$$.dirty[0]&<(se),262144&t.$$.dirty[0]&&Vt(d)},[x,y,S,se,i,ye,Ye,r,s,Nt,function(_n){_n.stopPropagation();var Zt=D0(_n);"Enter"===Zt&&(_n.preventDefault(),se!==ke?(lt.flush(),ke=se):ut()),"Shift+Enter"===Zt&&(_n.preventDefault(),$t()),"Ctrl+Enter"===Zt&&(_n.preventDefault(),x?qt():ut()),"Ctrl+H"===Zt&&(_n.preventDefault(),Nt()),"Escape"===Zt&&(_n.preventDefault(),An())},function(_n){"Enter"===D0(_n)&&(_n.preventDefault(),_n.stopPropagation(),qt())},function(){return kt.apply(this,arguments)},qt,function(){return Dt.apply(this,arguments)},ut,$t,An,d,m,_,D,z,$,W,re,a,function(){n(3,se=this.value)},function(){n(5,ye=this.value)}]}var Bie=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,SFe,wFe,gs,{json:18,documentState:19,parser:20,showSearch:1,showReplace:0,readOnly:2,columns:21,onSearch:22,onFocus:23,onPatch:24,onClose:25},yFe,[-1,-1]),i}return br(e,Cr),pr(e)}(),Ab=Symbol("path");function kFe(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i={};Array.isArray(t)&&function(s,a,u){if(s.length1?(s.length-1)/(a-1):s.length,m=0;m0&&ke.height>0}),_),m=_(n);function _(se){var ke=se.getBoundingClientRect();return{x:ke.left+ke.width/2,y:ke.top+ke.height/2,rect:ke,element:se}}function y(se,ke){var Ye=se.x-ke.x,lt=(se.y-ke.y)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return Math.sqrt(Ye*Ye+lt*lt)}var x=function(se){return y(se,m)};if("Left"===i||"Right"===i){var S=d.filter("Left"===i?function(se){return se.rect.left+um.rect.right+u}),D=S.filter(function(se){return Math.abs(se.y-m.y)m.y+u}),W=$.filter(function(se){return s(se.element)}),re=uh(W,x)||uh($,x);return re?.element}}({allElements:Array.from(i.querySelectorAll("button:not([disabled])")),currentElement:d.target,direction:_,hasPrio:function(x){return"jse-open-dropdown"!==x.getAttribute("data-type")}});y&&y.focus()}},function(d){Vs[d?"unshift":"push"](function(){n(3,i=d)})}]}var fre=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,pBe,hBe,gs,{items:0,onRequestClose:1,tip:2},QFe),i}return br(e,Cr),pr(e)}(),mBe=aL.window;function gBe(t){as(t,"svelte-1ig7ktu",'.jse-tree-mode.svelte-1ig7ktu.svelte-1ig7ktu{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color, #fff);min-width:0;min-height:0;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-text-color, #4d4d4d);line-height:var(--jse-line-height, calc(1em + 4px))}.jse-tree-mode.svelte-1ig7ktu .jse-hidden-input-label .jse-hidden-input.svelte-1ig7ktu{position:fixed;top:-10px;left:-10px;width:1px;height:1px;padding:0;border:0;outline:none}.jse-tree-mode.no-main-menu.svelte-1ig7ktu.svelte-1ig7ktu{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-search-box-container.svelte-1ig7ktu{position:relative;height:0;top:var(--jse-padding, 10px);margin-right:calc(var(--jse-padding, 10px) + 20px);margin-left:var(--jse-padding, 10px);text-align:right;z-index:3}.jse-tree-mode.svelte-1ig7ktu .jse-contents.svelte-1ig7ktu{flex:1;overflow:auto;position:relative;padding:2px;display:flex;flex-direction:column;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-contents.svelte-1ig7ktu:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-tree-mode.svelte-1ig7ktu .jse-contents .jse-loading-space.svelte-1ig7ktu{flex:1}.jse-tree-mode.svelte-1ig7ktu .jse-contents .jse-loading.svelte-1ig7ktu{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}')}function hre(t){var e,n,i;function r(a){t[75](a)}var s={json:t[11],selection:t[12].selection,readOnly:t[0],historyState:t[22],onExpandAll:t[38],onCollapseAll:t[39],onUndo:t[33],onRedo:t[34],onSort:t[35],onTransform:t[36],onContextMenu:t[43],onCopy:t[30],onRenderMenu:t[7]};return void 0!==t[13]&&(s.showSearch=t[13]),e=new Jje({props:s}),Vs.push(function(){return J2(e,"showSearch",r)}),{c:function(){Nn(e.$$.fragment)},m:function(a,u){zn(e,a,u),i=!0},p:function(a,u){var d={};2048&u[0]&&(d.json=a[11]),4096&u[0]&&(d.selection=a[12].selection),1&u[0]&&(d.readOnly=a[0]),4194304&u[0]&&(d.historyState=a[22]),128&u[0]&&(d.onRenderMenu=a[7]),!n&&8192&u[0]&&(n=!0,d.showSearch=a[13],Q2(function(){return n=!1})),e.$set(d)},i:function(a){i||(Me(e.$$.fragment,a),i=!0)},o:function(a){je(e.$$.fragment,a),i=!1},d:function(a){Rn(e,a)}}}function pre(t){var e,n;return e=new bFe({props:{json:t[11],selection:t[12].selection,onSelect:t[47],onError:t[6],pathParser:t[4]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};2048&r[0]&&(s.json=i[11]),4096&r[0]&&(s.selection=i[12].selection),64&r[0]&&(s.onError=i[6]),16&r[0]&&(s.pathParser=i[4]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function vBe(t){var e;return{c:function(){(e=pt("div")).innerHTML='
loading...
',ce(e,"class","jse-contents svelte-1ig7ktu")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function _Be(t){var e,n,i,r,s,a,u,d,m,_=[yBe,bBe],y=[];function x(S,D){return void 0===S[11]?0:1}return r=x(t),s=y[r]=_[r](t),{c:function(){e=pt("label"),n=pt("input"),i=gn(),s.c(),a=ho(),ce(n,"type","text"),n.readOnly=!0,ce(n,"tabindex","-1"),ce(n,"class","jse-hidden-input svelte-1ig7ktu"),ce(e,"class","jse-hidden-input-label")},m:function(S,D){Ht(S,e,D),Ge(e,n),t[76](n),Ht(S,i,D),y[r].m(S,D),Ht(S,a,D),u=!0,d||(m=ei(n,"paste",t[31]),d=!0)},p:function(S,D){var z=r;(r=x(S))===z?y[r].p(S,D):(si(),je(y[z],1,1,function(){y[z]=null}),oi(),(s=y[r])?s.p(S,D):(s=y[r]=_[r](S)).c(),Me(s,1),s.m(a.parentNode,a))},i:function(S){u||(Me(s),u=!0)},o:function(S){je(s),u=!1},d:function(S){S&&(At(e),At(i),At(a)),t[76](null),y[r].d(S),d=!1,m()}}}function bBe(t){var e,n,i,r,s,a,u,d,m,_,y;i=new Bie({props:{json:t[11],documentState:t[12],parser:t[3],showSearch:t[13],showReplace:t[21],readOnly:t[0],columns:void 0,onSearch:t[26],onFocus:t[27],onPatch:t[37],onClose:t[28]}}),a=new Wje({props:{value:t[11],path:[],expandedMap:t[12].expandedMap,enforceStringMap:t[12].enforceStringMap,visibleSectionsMap:t[12].visibleSectionsMap,validationErrorsMap:t[24],searchResultItemsMap:null===(e=t[20])||void 0===e?void 0:e.itemsMap,selection:t[12].selection,context:t[15],onDragSelectionStart:Oi}});var x=t[19]&&mre(t),S=t[23]&&gre(t);return _=new oz({props:{validationErrors:t[14],selectError:t[29]}}),{c:function(){n=pt("div"),Nn(i.$$.fragment),r=gn(),s=pt("div"),Nn(a.$$.fragment),u=gn(),x&&x.c(),d=gn(),S&&S.c(),m=gn(),Nn(_.$$.fragment),ce(n,"class","jse-search-box-container svelte-1ig7ktu"),ce(s,"class","jse-contents svelte-1ig7ktu"),ce(s,"data-jsoneditor-scrollable-contents",!0)},m:function(D,z){Ht(D,n,z),zn(i,n,null),Ht(D,r,z),Ht(D,s,z),zn(a,s,null),t[80](s),Ht(D,u,z),x&&x.m(D,z),Ht(D,d,z),S&&S.m(D,z),Ht(D,m,z),zn(_,D,z),y=!0},p:function(D,z){var $,W={};2048&z[0]&&(W.json=D[11]),4096&z[0]&&(W.documentState=D[12]),8&z[0]&&(W.parser=D[3]),8192&z[0]&&(W.showSearch=D[13]),2097152&z[0]&&(W.showReplace=D[21]),1&z[0]&&(W.readOnly=D[0]),i.$set(W);var re={};2048&z[0]&&(re.value=D[11]),4096&z[0]&&(re.expandedMap=D[12].expandedMap),4096&z[0]&&(re.enforceStringMap=D[12].enforceStringMap),4096&z[0]&&(re.visibleSectionsMap=D[12].visibleSectionsMap),16777216&z[0]&&(re.validationErrorsMap=D[24]),1048576&z[0]&&(re.searchResultItemsMap=null===($=D[20])||void 0===$?void 0:$.itemsMap),4096&z[0]&&(re.selection=D[12].selection),32768&z[0]&&(re.context=D[15]),a.$set(re),D[19]?x?(x.p(D,z),524288&z[0]&&Me(x,1)):((x=mre(D)).c(),Me(x,1),x.m(d.parentNode,d)):x&&(si(),je(x,1,1,function(){x=null}),oi()),D[23]?S?(S.p(D,z),8388608&z[0]&&Me(S,1)):((S=gre(D)).c(),Me(S,1),S.m(m.parentNode,m)):S&&(si(),je(S,1,1,function(){S=null}),oi());var se={};16384&z[0]&&(se.validationErrors=D[14]),_.$set(se)},i:function(D){y||(Me(i.$$.fragment,D),Me(a.$$.fragment,D),Me(x),Me(S),Me(_.$$.fragment,D),y=!0)},o:function(D){je(i.$$.fragment,D),je(a.$$.fragment,D),je(x),je(S),je(_.$$.fragment,D),y=!1},d:function(D){D&&(At(n),At(r),At(s),At(u),At(d),At(m)),Rn(i),Rn(a),t[80](null),x&&x.d(D),S&&S.d(D),Rn(_,D)}}}function yBe(t){var e,n,i,r,s=[xBe,CBe],a=[];function u(d,m){return""===d[18]||void 0===d[18]?0:1}return e=u(t),n=a[e]=s[e](t),{c:function(){n.c(),i=ho()},m:function(d,m){a[e].m(d,m),Ht(d,i,m),r=!0},p:function(d,m){var _=e;(e=u(d))===_?a[e].p(d,m):(si(),je(a[_],1,1,function(){a[_]=null}),oi(),(n=a[e])?n.p(d,m):(n=a[e]=s[e](d)).c(),Me(n,1),n.m(i.parentNode,i))},i:function(d){r||(Me(n),r=!0)},o:function(d){je(n),r=!1},d:function(d){d&&At(i),a[e].d(d)}}}function mre(t){var e,n;return e=new w4({props:{type:"info",message:"You pasted a JSON ".concat(Array.isArray(t[19].contents)?"array":"object"," as text"),actions:[{icon:d_,text:"Paste as JSON instead",title:"Replace the value with the pasted JSON",onMouseDown:t[44]},{text:"Leave as is",title:"Keep the JSON embedded in the value",onClick:t[45]}]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};524288&r[0]&&(s.message="You pasted a JSON ".concat(Array.isArray(i[19].contents)?"array":"object"," as text")),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function gre(t){var e,n;return e=new w4({props:{type:"success",message:"The loaded JSON document was invalid but is successfully repaired.",actions:t[0]?[]:[{icon:S5,text:"Ok",title:"Accept the repaired document",onClick:t[8]},{icon:m0,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:t[46]}],onClose:t[9]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r[0]&&(s.actions=i[0]?[]:[{icon:S5,text:"Ok",title:"Accept the repaired document",onClick:i[8]},{icon:m0,text:"Repair manually instead",title:"Leave the document unchanged and repair it manually instead",onClick:i[46]}]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function CBe(t){var e,n,i,r;return e=new w4({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:m0,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:t[46]}]}}),i=new Qie({props:{text:t[18],json:t[11],indentation:t[5],parser:t[3]}}),{c:function(){Nn(e.$$.fragment),n=gn(),Nn(i.$$.fragment)},m:function(s,a){zn(e,s,a),Ht(s,n,a),zn(i,s,a),r=!0},p:function(s,a){var u={};1&a[0]&&(u.actions=s[0]?[]:[{icon:m0,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:s[46]}]),e.$set(u);var d={};262144&a[0]&&(d.text=s[18]),2048&a[0]&&(d.json=s[11]),32&a[0]&&(d.indentation=s[5]),8&a[0]&&(d.parser=s[3]),i.$set(d)},i:function(s){r||(Me(e.$$.fragment,s),Me(i.$$.fragment,s),r=!0)},o:function(s){je(e.$$.fragment,s),je(i.$$.fragment,s),r=!1},d:function(s){s&&At(n),Rn(e,s),Rn(i,s)}}}function xBe(t){var e,n;return e=new nFe({props:{readOnly:t[0],onCreateObject:t[77],onCreateArray:t[78],onClick:t[79]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r[0]&&(s.readOnly=i[0]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function wBe(t){var e,n,i,r,s,a,u,d,m=t[1]&&hre(t),_=t[2]&&pre(t),x=[];return s=x[r=t[25]?1:0]=[_Be,vBe][r](t),{c:function(){e=pt("div"),m&&m.c(),n=gn(),_&&_.c(),i=gn(),s.c(),ce(e,"role","tree"),ce(e,"tabindex","-1"),ce(e,"class","jse-tree-mode svelte-1ig7ktu"),$n(e,"no-main-menu",!t[1])},m:function(S,D){Ht(S,e,D),m&&m.m(e,null),Ge(e,n),_&&_.m(e,null),Ge(e,i),x[r].m(e,null),t[81](e),a=!0,u||(d=[ei(mBe,"mousedown",t[48]),ei(e,"keydown",t[40]),ei(e,"mousedown",t[41]),ei(e,"contextmenu",t[42])],u=!0)},p:function(S,D){S[1]?m?(m.p(S,D),2&D[0]&&Me(m,1)):((m=hre(S)).c(),Me(m,1),m.m(e,n)):m&&(si(),je(m,1,1,function(){m=null}),oi()),S[2]?_?(_.p(S,D),4&D[0]&&Me(_,1)):((_=pre(S)).c(),Me(_,1),_.m(e,i)):_&&(si(),je(_,1,1,function(){_=null}),oi()),s.p(S,D),(!a||2&D[0])&&$n(e,"no-main-menu",!S[1])},i:function(S){a||(Me(m),Me(_),Me(s),a=!0)},o:function(S){je(m),je(_),je(s),a=!1},d:function(S){S&&At(e),m&&m.d(),_&&_.d(),x[r].d(),t[81](null),u=!1,ma(d)}}}function MBe(t,e,n){var i,r=v1("jsoneditor:TreeMode"),s=typeof window>"u";r("isSSR:",s);var a,u,d,m,_,y=V1("simple-modal").open,x=vh(),S=vh(),D=V1("absolute-popup"),z=D.openAbsolutePopup,$=D.closeAbsolutePopup,W=!1,re=Cne(),se=e.readOnly,ke=e.externalContent,ye=e.externalSelection,Ye=e.mainMenuBar,lt=e.navigationBar,Vt=e.escapeControlCharacters,Nt=e.escapeUnicodeCharacters,kt=e.parser,qt=e.parseMemoizeOne,wt=e.validator,Dt=e.validationParser,ut=e.pathParser,Ut=e.indentation,$t=e.onError,Lt=e.onChange,et=e.onChangeMode,st=e.onSelect,gt=e.onRenderValue,sn=e.onRenderMenu,Hn=e.onRenderContextMenu,on=e.onClassName,Xt=e.onFocus,An=e.onBlur,_n=e.onSortModal,Zt=e.onTransformModal,wi=e.onJSONEditorModal,zi=!1;sz({onMount:Hd,onDestroy:Zu,getWindow:function(){return c7(d)},hasFocus:function(){return zi&&document.hasFocus()||TL(d)},onFocus:function(){W=!0,Xt&&Xt()},onBlur:function(){W=!1,An&&An()}});var Zn=void 0;function En(ct){r("updateSelection",ct);var mn="function"==typeof ct?ct(fn.selection)||null:ct;zs(mn,fn.selection)||(n(12,fn=yn(yn({},fn),{},{selection:mn})),st(mn))}var Nr,Pr,va,Qo=!1,fn=zk(),Yr=!1,sa=!1;function oa(){return(oa=es(gi().mark(function ct(mn){return gi().wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return n(12,fn=yn(yn({},zL(m,fn,mn)),{},{selection:null})),Fn.next=3,$d(mn);case 3:case"end":return Fn.stop()}},ct)}))).apply(this,arguments)}var $s,Mi,Jo=xne({onChange:function(ct){n(22,qi=ct)}}),qi=Jo.getState(),Or=!1,tc=[],xa=b_(wne);function I1(ct,mn,Fn,vi){_7(function(){var Ti;try{Ti=xa(ct,mn,Fn,vi)}catch(Ri){Ti=[{path:[],message:"Failed to validate: "+Ri.message,severity:zd.warning}]}zs(Ti,tc)||(r("validationErrors changed:",Ti),n(14,tc=Ti))},function(Ti){return r("validationErrors updated in ".concat(Ti," ms"))})}function r1(){return r("validate"),Zn?{parseError:Zn,isRepairable:!1}:(I1(m,wt,kt,Dt),Zs(tc)?null:{validationErrors:tc})}function s1(){return m}function fl(){return fn}function Ul(ct){Qo||(Qo=!0,n(12,fn=Nd(ct,fn,[],See({json:ct},hee)?T3:Cb)))}function fc(ct){fn.selection&&(te(ct,qp(fn.selection))&&te(ct,mr(fn.selection))||(r("clearing selection: path does not exist anymore",fn.selection),n(12,fn=yn(yn({},fn),{},{selection:f7(ct,fn)}))))}function Tl(ct){var mn=ct.previousJson,Fn=ct.previousState,vi=ct.previousText,Ti=ct.previousTextIsRepaired;void 0===mn&&void 0===vi||(void 0!==m?Jo.add(void 0!==mn?{undo:{patch:[{op:"replace",path:"",value:mn}],state:b2(Fn),json:void 0,text:vi,textIsRepaired:Ti},redo:{patch:[{op:"replace",path:"",value:m}],state:b2(fn),json:void 0,text:_,textIsRepaired:Or}}:{undo:{patch:void 0,json:void 0,text:vi,state:b2(Fn),textIsRepaired:Ti},redo:{patch:void 0,json:m,state:b2(fn),text:_,textIsRepaired:Or}}):void 0!==mn&&Jo.add({undo:{patch:void 0,json:mn,state:b2(Fn),text:vi,textIsRepaired:Ti},redo:{patch:void 0,json:void 0,text:_,textIsRepaired:Or,state:b2(fn)}}))}function Oa(ct,mn){if(r("patch",ct,mn),void 0===m)throw new Error("Cannot apply patch: no JSON");var Fn=m,vi=fn,Ti=_,Ri=Or,ts=gte(m,ct),cr=Jee(m,fn,ct),os=h7(m,ct),Zc=function(w2,Ns){return Ns||!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?yn(yn({},w2),{},{selection:Ns}):w2}(cr.documentState,os,!1);r("patch updatedSelection",os);var Ha="function"==typeof mn?mn(cr.json,Zc):void 0;n(11,m=Ha&&void 0!==Ha.json?Ha.json:cr.json);var el=Ha&&void 0!==Ha.state?Ha.state:Zc;return n(12,fn=el),n(18,_=void 0),n(23,Or=!1),n(19,Pr=void 0),Zn=void 0,fc(m),Jo.add({undo:{patch:ts,json:void 0,text:Ti,state:b2(vi),textIsRepaired:Ri},redo:{patch:ct,json:void 0,state:b2(el),text:_,textIsRepaired:Or}}),{json:m,previousJson:Fn,undo:ts,redo:ct}}function Gl(){!se&&fn.selection&&En(Pd(mr(fn.selection),!0))}function Z2(){if(!se&&fn.selection){var ct=mr(fn.selection),mn=nt(m,ct);Uc(mn)?(r("openJSONEditorModal",{path:Fn=ct,value:vi=mn}),zi=!0,wi({content:{json:vi},path:Fn,onPatch:Mi.onPatch,onClose:function(){zi=!1,Xi()}})):En(Bs(ct,!0))}var Fn,vi}function O1(){if(!se&&po(fn.selection)){var ct=mr(fn.selection),mn=de(ct),Fn=nt(m,ct),vi=!V0(Fn,fn.enforceStringMap,mn,kt),Ti=vi?String(Fn):s7(String(Fn),kt);r("handleToggleEnforceString",{enforceString:vi,value:Fn,updatedValue:Ti}),Vl([{op:"replace",path:mn,value:Ti}],function(Ri,ts){return{state:Qee(ts,mn,vi)}})}}function Wl(){return bs.apply(this,arguments)}function bs(){return bs=es(gi().mark(function ct(){var mn,Fn=arguments;return gi().wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:return mn=!(Fn.length>0&&void 0!==Fn[0])||Fn[0],vi.next=3,Wie({json:m,documentState:fn,indentation:mn?Ut:void 0,readOnly:se,parser:kt,onPatch:Vl});case 3:case"end":return vi.stop()}},ct)})),bs.apply(this,arguments)}function Jc(){return Gc.apply(this,arguments)}function Gc(){return Gc=es(gi().mark(function ct(){var mn,Fn=arguments;return gi().wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:if(mn=!(Fn.length>0&&void 0!==Fn[0])||Fn[0],void 0!==m){vi.next=3;break}return vi.abrupt("return");case 3:return vi.next=5,qie({json:m,documentState:fn,indentation:mn?Ut:void 0,parser:kt});case 5:case"end":return vi.stop()}},ct)})),Gc.apply(this,arguments)}function J1(){y(Hne,{},yn(yn({},Up),{},{styleWindow:{width:"450px"}}),{onClose:function(){return Xi()}})}function o1(ct,mn){y(Gne,{text:ct,onParse:function(Fn){return Ik(Fn,function(vi){return mb(vi,kt)})},onRepair:xee,onApply:mn},yn(yn({},Up),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return Xi()}})}function a1(){Kie({json:m,text:_,documentState:fn,keepSelection:!1,readOnly:se,onChange:Lt,onPatch:Vl})}function Tn(){!se&&void 0!==m&&fn.selection&&p7&&!Zs(mr(fn.selection))&&(r("duplicate",{selection:fn.selection}),Vl(hte(m,Rh(m,fn.selection))))}function Fi(){se||!fn.selection||!Ca(fn.selection)&&!po(fn.selection)||Zs(mr(fn.selection))||(r("extract",{selection:fn.selection}),Vl(function(mn,Fn){if(po(Fn))return[{op:"move",from:de(Fn.path),path:""}];if(!Ca(Fn))throw new Error("Cannot create extract operations: parent must be an Object or Array");var Ti=nt(mn,Ls(Fn.focusPath));if(Be(Ti))return[{op:"replace",path:"",value:Rh(mn,Fn).map(function(ts){var cr=Q1(Ur(ts));return Ti[cr]})}];if(he(Ti)){var Ri={};return Rh(mn,Fn).forEach(function(ts){var cr=String(Ur(ts));Ri[cr]=Ti[cr]}),[{op:"replace",path:"",value:Ri}]}throw new Error("Cannot extract: unsupported type of selection "+JSON.stringify(Fn))}(m,fn.selection),function(mn,Fn){if(Uc(mn))return{state:zh(mn,Fn,[])}}))}function ss(ct){sE({insertType:ct,selectInside:!0,refJsonEditor:d,json:m,selection:fn.selection,readOnly:se,parser:kt,onPatch:Vl,onReplaceJson:F0})}function Fo(ct){dl(fn.selection)&&En(Bs(fn.selection.path,!1)),fn.selection||En(f7(m,fn)),ss(ct)}function Xs(ct){if(!se&&fn.selection)if(jk(fn.selection))try{var mn=qp(fn.selection),Fn=nt(m,mn),vi=function(Ri,ts,cr){if("array"===ts){if(Array.isArray(Ri))return Ri;if(ga(Ri))return bee(Ri);if("string"==typeof Ri)try{var os=cr.parse(Ri);if(Array.isArray(os))return os;if(ga(os))return bee(os)}catch{return[Ri]}return[Ri]}if("object"===ts){if(Array.isArray(Ri))return _ee(Ri);if(ga(Ri))return Ri;if("string"==typeof Ri)try{var Zc=cr.parse(Ri);if(ga(Zc))return Zc;if(Array.isArray(Zc))return _ee(Zc)}catch{return{value:Ri}}return{value:Ri}}if("value"===ts)return Uc(Ri)?cr.stringify(Ri):Ri;throw new Error("Cannot convert ".concat(wL(Ri,cr)," to ").concat(ts))}(Fn,ct,kt);if(vi===Fn)return;var Ti=[{op:"replace",path:de(mn),value:vi}];r("handleConvert",{selection:fn.selection,path:mn,type:ct,operations:Ti}),Vl(Ti,function(Ri,ts){return{state:fn.selection?zh(Ri,ts,mr(fn.selection)):fn}})}catch(Ri){$t(Ri)}else $t(new Error("Cannot convert current selection to ".concat(ct)))}function Dn(){if(fn.selection){var ct=ste(m,fn,!1),mn=Ls(mr(fn.selection));ct&&!Zs(mr(ct))&&zs(mn,Ls(mr(ct)))?En(H0(mr(ct))):En(O0(mn)),r("insert before",{selection:fn.selection,selectionBefore:ct,parentPath:mn}),El().then(function(){return Hi()})}}function ji(){if(fn.selection){var ct=Nh(m,fn.selection);r("insert after",ct),En(H0(ct)),El().then(function(){return Hi()})}}function Yi(ct){return Bn.apply(this,arguments)}function Bn(){return(Bn=es(gi().mark(function ct(mn){return gi().wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.next=2,Yie({char:mn,selectInside:!0,refJsonEditor:d,json:m,selection:fn.selection,readOnly:se,parser:kt,onPatch:Vl,onReplaceJson:F0,onSelect:En});case 2:case"end":return Fn.stop()}},ct)}))).apply(this,arguments)}function to(){if(!se&&Jo.getState().canUndo){var ct=Jo.undo();if(ct){var mn={json:m,text:_};n(11,m=ct.undo.patch?xe(m,ct.undo.patch):ct.undo.json),n(12,fn=ct.undo.state),n(18,_=ct.undo.text),n(23,Or=ct.undo.textIsRepaired),Zn=void 0,r("undo",{item:ct,json:m,documentState:fn}),td(mn,ct.undo.patch&&ct.redo.patch?{json:m,previousJson:mn.json,redo:ct.undo.patch,undo:ct.redo.patch}:null),Xi(),fn.selection&&$d(mr(fn.selection),!1)}}}function wa(){if(!se&&Jo.getState().canRedo){var ct=Jo.redo();if(ct){var mn={json:m,text:_};n(11,m=ct.redo.patch?xe(m,ct.redo.patch):ct.redo.json),n(12,fn=ct.redo.state),n(18,_=ct.redo.text),n(23,Or=ct.redo.textIsRepaired),Zn=void 0,r("redo",{item:ct,json:m,documentState:fn}),td(mn,ct.undo.patch&&ct.redo.patch?{json:m,previousJson:mn.json,redo:ct.redo.patch,undo:ct.undo.patch}:null),Xi(),fn.selection&&$d(mr(fn.selection),!1)}}}function ys(ct){var mn;se||void 0===m||(zi=!0,_n({id:x,json:m,rootPath:ct,onSort:(mn=es(gi().mark(function Fn(vi){var Ti;return gi().wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:r("onSort",ct,Ti=vi.operations),Vl(Ti,function(ts,cr){return{state:yn(yn({},zh(ts,cr,ct)),{},{selection:Bs(ct,!1)})}});case 3:case"end":return Ri.stop()}},Fn)})),function(Fn){return mn.apply(this,arguments)}),onClose:function(){zi=!1,Xi()}}))}function Bh(){fn.selection&&ys(cte(m,fn.selection))}function S4(ct){if(void 0!==m){var Fn=ct.onTransform,vi=ct.onClose,Ti=ct.rootPath||[];zi=!0,Zt({id:ct.id||S,json:m,rootPath:Ti,onTransform:function(Ri){Fn?Fn({operations:Ri,json:m,transformedJson:xe(m,Ri)}):(r("onTransform",Ti,Ri),Vl(Ri,function(ts,cr){return{state:yn(yn({},zh(ts,cr,Ti)),{},{selection:Bs(Ti,!1)})}}))},onClose:function(){zi=!1,Xi(),vi&&vi()}})}}function S7(){fn.selection&&S4({rootPath:cte(m,fn.selection)})}function $d(ct){return N0.apply(this,arguments)}function N0(){return N0=es(gi().mark(function ct(mn){var Fn,vi,Ti,Ri,ts,cr=arguments;return gi().wrap(function(os){for(;;)switch(os.prev=os.next){case 0:return Fn=!(cr.length>1&&void 0!==cr[1])||cr[1],n(12,fn=zL(m,fn,mn)),os.next=4,El();case 4:if(vi=P0(mn),r("scrollTo",{path:mn,elem:vi,refContents:a}),vi&&a){os.next=8;break}return os.abrupt("return",Promise.resolve());case 8:if(Ti=a.getBoundingClientRect(),Ri=vi.getBoundingClientRect(),Fn){os.next=13;break}if(!(Ri.bottom>Ti.top&&Ri.topFn.bottom-20&&re(mn,{container:a,offset:-(Fn.height-Ti-20),duration:0})}}function td(ct,mn){var Fn;if(void 0!==ct.json||void 0!==ct?.text)if(void 0!==_)null===(Fn=Lt)||void 0===Fn||Fn({text:_,json:void 0},ct,{contentErrors:r1(),patchResult:mn});else if(void 0!==m){var vi;null===(vi=Lt)||void 0===vi||vi({text:void 0,json:m},ct,{contentErrors:r1(),patchResult:mn})}}function Vl(ct,mn){r("handlePatch",ct,mn);var Fn={json:m,text:_},vi=Oa(ct,mn);return td(Fn,vi),vi}function F0(ct,mn){var Fn=fn,vi=m,Ti=_,Ri={json:m,text:_},ts=Or,cr=Nd(m,fn,[],T3),os="function"==typeof mn?mn(ct,cr):void 0;n(11,m=os&&void 0!==os.json?os.json:ct),n(12,fn=os&&void 0!==os.state?os.state:cr),n(18,_=void 0),n(23,Or=!1),Zn=void 0,fc(m),Tl({previousJson:vi,previousState:Fn,previousText:Ti,previousTextIsRepaired:ts}),td(Ri,null)}function em(ct,mn){r("handleChangeText");var Fn=fn,vi=m,Ti=_,Ri={json:m,text:_},ts=Or;try{n(11,m=qt(ct)),n(12,fn=Nd(m,fn,[],T3)),n(18,_=void 0),n(23,Or=!1),Zn=void 0}catch(os){try{n(11,m=qt(na(ct))),n(12,fn=Nd(m,fn,[],T3)),n(18,_=ct),n(23,Or=!0),Zn=void 0}catch{n(11,m=void 0),n(12,fn=zk({json:m,expand:T3})),n(18,_=ct),n(23,Or=!1),Zn=""!==_?o7(_,os.message||String(os)):void 0}}if("function"==typeof mn){var cr=mn(m,fn);n(11,m=cr&&cr.json?cr.json:m),n(12,fn=cr&&cr.state?cr.state:fn)}fc(m),Tl({previousJson:vi,previousState:Fn,previousText:Ti,previousTextIsRepaired:ts}),td(Ri,null)}function I3(ct,mn){var vi,Ti,Fn=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r("expand",{path:ct,expanded:mn,recursive:Fn}),n(12,fn=mn?Fn?Nd(m,fn,ct,Cb):(Ti=ct,yn(yn({},vi=fn),{},{expandedMap:yn(yn({},vi.expandedMap),{},Ju({},de(Ti),!0))})):Yee(fn,ct)),fn.selection&&!mn&&function(vi,Ti){return I0(mr(vi),Ti)&&(mr(vi).length>Ti.length||Dl(vi))}(fn.selection,ct)&&En(null),Xi()}function B0(ct){r("openFind",{findAndReplace:ct}),n(13,Yr=!1),n(21,sa=!1),El().then(function(){n(13,Yr=!0),n(21,sa=ct)})}function $h(ct,mn){r("handleExpandSection",ct,mn);var Ti,Ri,ts,Fn=de(ct);n(12,(Ri=Fn,ts=mn,fn=yn(yn({},Ti=fn),{},{visibleSectionsMap:yn(yn({},Ti.visibleSectionsMap),{},Ju({},Ri,Kee(Rk(Ti,Ri).concat(ts))))})))}function Et(ct){r("pasted json as text",ct),n(19,Pr=ct)}function Ln(ct){var mn=ct.anchor,Fn=ct.left,vi=ct.top,Ti=ct.width,Ri=ct.height,ts=ct.offsetTop,cr=ct.offsetLeft,os=ct.showTip,Zc=function(Ns){var _a=Ns.json,Al=Ns.documentState,To=Ns.readOnly,hl=Ns.parser,k4=Ns.onEditKey,nd=Ns.onEditValue,k7=Ns.onToggleEnforceString,b1=Ns.onCut,id=Ns.onCopy,O3=Ns.onPaste,Uh=Ns.onRemove,eu=Ns.onDuplicate,E4=Ns.onExtract,Hb=Ns.onInsertBefore,tm=Ns.onInsert,Lb=Ns.onConvert,Mz=Ns.onInsertAfter,Sz=Ns.onSort,zb=Ns.onTransform,Yt=Al.selection,Wi=void 0!==_a,Qr=!!Yt,Go=!!Yt&&Zs(mr(Yt)),Cs=Yt?nt(_a,mr(Yt)):void 0,Ks=Array.isArray(Cs)?"Edit array":ga(Cs)?"Edit object":"Edit value",nc=Wi&&(Ca(Yt)||dl(Yt)||po(Yt)),nm=!To&&Wi&&null!=Yt&&Pk(Yt)&&!Go&&!Array.isArray(nt(_a,Ls(mr(Yt)))),c1=!To&&Wi&&null!=Yt&&Pk(Yt),Il=c1&&!Uc(Cs),rd=!To&&nc,E7=nc,dE=!To&&Qr,Gh=!To&&Wi&&nc&&!Go,gUe=!To&&Wi&&null!=Yt&&(Ca(Yt)||po(Yt))&&!Go,$0=nc,Rb=$0?"Convert to:":"Insert:",vUe=!To&&!$0&&Qr,_Ue=!To&&($0?jk(Yt)&&!ga(Cs):Qr),bUe=!To&&($0?jk(Yt)&&!Array.isArray(Cs):Qr),yUe=!To&&($0?jk(Yt)&&Uc(Cs):Qr),CUe=!(null==Yt||!Cs)&&V0(Cs,Al.enforceStringMap,de(mr(Yt)),hl);function fE(kz){nc?"structure"!==kz&&Lb(kz):tm(kz)}return[{type:"row",items:[{type:"button",onClick:function(){return k4()},icon:Sp,text:"Edit key",title:"Edit the key (Double-click on the key)",disabled:!nm},{type:"dropdown-button",main:{type:"button",onClick:function(){return nd()},icon:Sp,text:Ks,title:"Edit the value (Double-click on the value)",disabled:!c1},width:"11em",items:[{type:"button",icon:Sp,text:Ks,title:"Edit the value (Double-click on the value)",onClick:function(){return nd()},disabled:!c1},{type:"button",icon:CUe?ZA:pI,text:"Enforce string",title:"Enforce keeping the value as string when it contains a numeric value",onClick:function(){return k7()},disabled:!Il}]}]},{type:"separator"},{type:"row",items:[{type:"dropdown-button",main:{type:"button",onClick:function(){return b1(!0)},icon:Mp,text:"Cut",title:"Cut selected contents, formatted with indentation (Ctrl+X)",disabled:!rd},width:"10em",items:[{type:"button",icon:Mp,text:"Cut formatted",title:"Cut selected contents, formatted with indentation (Ctrl+X)",onClick:function(){return b1(!0)},disabled:!rd},{type:"button",icon:Mp,text:"Cut compacted",title:"Cut selected contents, without indentation (Ctrl+Shift+X)",onClick:function(){return b1(!1)},disabled:!rd}]},{type:"dropdown-button",main:{type:"button",onClick:function(){return id(!0)},icon:g0,text:"Copy",title:"Copy selected contents, formatted with indentation (Ctrl+C)",disabled:!E7},width:"12em",items:[{type:"button",icon:g0,text:"Copy formatted",title:"Copy selected contents, formatted with indentation (Ctrl+C)",onClick:function(){return id(!0)},disabled:!E7},{type:"button",icon:g0,text:"Copy compacted",title:"Copy selected contents, without indentation (Ctrl+Shift+C)",onClick:function(){return id(!1)},disabled:!E7}]},{type:"button",onClick:function(){return O3()},icon:SM,text:"Paste",title:"Paste clipboard contents (Ctrl+V)",disabled:!dE}]},{type:"separator"},{type:"row",items:[{type:"column",items:[{type:"button",onClick:function(){return eu()},icon:BI,text:"Duplicate",title:"Duplicate selected contents (Ctrl+D)",disabled:!Gh},{type:"button",onClick:function(){return E4()},icon:yG,text:"Extract",title:"Extract selected contents",disabled:!gUe},{type:"button",onClick:function(){return Sz()},icon:p_,text:"Sort",title:"Sort array or object contents",disabled:To||!nc},{type:"button",onClick:function(){return zb()},icon:u_,text:"Transform",title:"Transform array or object contents (filter, sort, project)",disabled:To||!nc},{type:"button",onClick:function(){return Uh()},icon:l_,text:"Remove",title:"Remove selected contents (Delete)",disabled:To||!nc}]},{type:"column",items:[{type:"label",text:Rb},{type:"button",onClick:function(){return fE("structure")},icon:$0?w5:_h,text:"Structure",title:Rb+" structure",disabled:!vUe},{type:"button",onClick:function(){return fE("object")},icon:$0?w5:_h,text:"Object",title:Rb+" structure",disabled:!_Ue},{type:"button",onClick:function(){return fE("array")},icon:$0?w5:_h,text:"Array",title:Rb+" array",disabled:!bUe},{type:"button",onClick:function(){return fE("value")},icon:$0?w5:_h,text:"Value",title:Rb+" value",disabled:!yUe}]}]},{type:"separator"},{type:"row",items:[{type:"button",onClick:function(){return Hb()},icon:JB,text:"Insert before",title:"Select area before current entry to insert or paste contents",disabled:To||!nc||Go},{type:"button",onClick:function(){return Mz()},icon:MF,text:"Insert after",title:"Select area after current entry to insert or paste contents",disabled:To||!nc||Go}]}]}({json:m,documentState:fn,readOnly:se,parser:kt,onEditKey:Gl,onEditValue:Z2,onToggleEnforceString:O1,onCut:Wl,onCopy:Jc,onPaste:J1,onRemove:a1,onDuplicate:Tn,onExtract:Fi,onInsertBefore:Dn,onInsert:Fo,onInsertAfter:ji,onConvert:Xs,onSort:Bh,onTransform:S7}),Ha=Hn(Zc);if(!1!==Ha){var el={left:Fn,top:vi,offsetTop:ts,offsetLeft:cr,width:Ti,height:Ri,anchor:mn,closeOnOuterClick:!0,onClose:function(){zi=!1,Xi()}};zi=!0;var w2=z(fre,{tip:os?"Tip: you can open this context menu via right-click or with Ctrl+Q":void 0,items:Ha,onRequestClose:function(){return $(w2)}},el)}}function Hi(ct){if(!C2(fn.selection)){if(ct&&(ct.stopPropagation(),ct.preventDefault()),ct&&"contextmenu"===ct.type&&ct.target!==u)Ln({left:ct.clientX,top:ct.clientY,width:E0,height:k0,showTip:!1});else{var mn,Fn=null===(mn=a)||void 0===mn?void 0:mn.querySelector(".jse-context-menu-pointer.jse-selected");if(Fn)Ln({anchor:Fn,offsetTop:2,width:E0,height:k0,showTip:!1});else{var vi,Ti=null===(vi=a)||void 0===vi?void 0:vi.getBoundingClientRect();Ti&&Ln({top:Ti.top+2,left:Ti.left+2,width:E0,height:k0,showTip:!1})}}return!1}}function Bi(){return(Bi=es(gi().mark(function ct(){var mn,Fn,vi,Ti,Ri;return gi().wrap(function(ts){for(;;)switch(ts.prev=ts.next){case 0:if(r("apply pasted json",Pr),Pr){ts.next=3;break}return ts.abrupt("return");case 3:vi=(Fn=Pr).path,Ti=Fn.contents,n(19,Pr=void 0),Nee(Ri=(null===(mn=a)||void 0===mn?void 0:mn.querySelector(".jse-editable-div"))||null)&&Ri.cancel(),Vl([{op:"replace",path:de(vi),value:Ti}],function(cr,os){return{state:zh(cr,os,vi)}}),setTimeout(Xi);case 10:case"end":return ts.stop()}},ct)}))).apply(this,arguments)}function Xi(){r("focus"),u&&(u.focus(),u.select())}function Us(ct){return mn=m,Fn=fn,Ti=Ls(vi=ct),Ri=[Ur(vi)],(cr=(ts=nt(mn,Ti))?BL(ts,Fn,Ri):void 0)?Bs(Ti.concat(cr),!1):H0(vi);var mn,Fn,vi,Ti,Ri,ts,cr}function Lo(ct){i&&i.onDrag(ct)}function aa(){i&&i.onDragEnd()}return t.$$set=function(ct){"readOnly"in ct&&n(0,se=ct.readOnly),"externalContent"in ct&&n(49,ke=ct.externalContent),"externalSelection"in ct&&n(50,ye=ct.externalSelection),"mainMenuBar"in ct&&n(1,Ye=ct.mainMenuBar),"navigationBar"in ct&&n(2,lt=ct.navigationBar),"escapeControlCharacters"in ct&&n(51,Vt=ct.escapeControlCharacters),"escapeUnicodeCharacters"in ct&&n(52,Nt=ct.escapeUnicodeCharacters),"parser"in ct&&n(3,kt=ct.parser),"parseMemoizeOne"in ct&&n(53,qt=ct.parseMemoizeOne),"validator"in ct&&n(54,wt=ct.validator),"validationParser"in ct&&n(55,Dt=ct.validationParser),"pathParser"in ct&&n(4,ut=ct.pathParser),"indentation"in ct&&n(5,Ut=ct.indentation),"onError"in ct&&n(6,$t=ct.onError),"onChange"in ct&&n(56,Lt=ct.onChange),"onChangeMode"in ct&&n(57,et=ct.onChangeMode),"onSelect"in ct&&n(58,st=ct.onSelect),"onRenderValue"in ct&&n(59,gt=ct.onRenderValue),"onRenderMenu"in ct&&n(7,sn=ct.onRenderMenu),"onRenderContextMenu"in ct&&n(60,Hn=ct.onRenderContextMenu),"onClassName"in ct&&n(61,on=ct.onClassName),"onFocus"in ct&&n(62,Xt=ct.onFocus),"onBlur"in ct&&n(63,An=ct.onBlur),"onSortModal"in ct&&n(64,_n=ct.onSortModal),"onTransformModal"in ct&&n(65,Zt=ct.onTransformModal),"onJSONEditorModal"in ct&&n(66,wi=ct.onJSONEditorModal)},t.$$.update=function(){var ct;3145728&t.$$.dirty[1]&&n(74,Nr=EL({escapeControlCharacters:Vt,escapeUnicodeCharacters:Nt})),4096&t.$$.dirty[0]&&r("selection",fn.selection),8192&t.$$.dirty[0]&&function(ct){if(a)if(ct){var mn,Fn=null!==(mn=parseInt(getComputedStyle(a).padding))&&void 0!==mn?mn:0;n(10,a.style.overflowAnchor="none",a),n(10,a.style.paddingTop=Fn+100+"px",a),n(10,a.scrollTop+=100,a),n(10,a.style.overflowAnchor="",a)}else n(10,a.style.overflowAnchor="none",a),n(10,a.style.paddingTop="",a),n(10,a.scrollTop-=100,a),n(10,a.style.overflowAnchor="",a)}(Yr),262144&t.$$.dirty[1]&&function Ho(ct){gb(ct)?function(mn){if(void 0!==mn){var Fn=!zs(m,mn);if(r("update external json",{isChanged:Fn,currentlyText:void 0===m}),Fn){var vi=fn,Ti=m,Ri=_,ts=Or;n(11,m=mn),Ul(m),n(18,_=void 0),n(23,Or=!1),Zn=void 0,fc(m),Tl({previousJson:Ti,previousState:vi,previousText:Ri,previousTextIsRepaired:ts})}}}(ct.json):a7(ct)&&function(mn){if(void 0!==mn&&!gb(ke)){var Fn=mn!==_;if(r("update external text",{isChanged:Fn}),Fn){var vi=m,Ti=fn,Ri=_,ts=Or;try{n(11,m=qt(mn)),Ul(m),n(18,_=mn),n(23,Or=!1),Zn=void 0}catch(cr){try{n(11,m=qt(na(mn))),Ul(m),n(18,_=mn),n(23,Or=!0),Zn=void 0,fc(m)}catch{n(11,m=void 0),n(18,_=ke.text),n(23,Or=!1),Zn=void 0!==_&&""!==_?o7(_,cr.message||String(cr)):void 0}}fc(m),Tl({previousJson:vi,previousState:Ti,previousText:Ri,previousTextIsRepaired:ts})}}}(ct.text)}(ke),524288&t.$$.dirty[1]&&(zs(fn.selection,ct=ye)||(r("applyExternalSelection",ct),($L(ct)||null===ct)&&En(ct))),2056&t.$$.dirty[0]|25165824&t.$$.dirty[1]&&I1(m,wt,kt,Dt),16384&t.$$.dirty[0]&&n(24,$s=function(ct){var mn={};return ct.forEach(function(Fn){mn[de(Fn.path)]=Fn}),ct.forEach(function(Fn){for(var vi=Fn.path;vi.length>0;){var Ti=de(vi=Ls(vi));Ti in mn||(mn[Ti]={isChildError:!0,path:vi,message:"Contains invalid data",severity:zd.warning})}}),mn}(tc)),1024&t.$$.dirty[0]&&(i=a?function(ct){var mn,Fn;function vi(cr){return cr<20?200:cr<50?400:1200}function Ti(){ct&&(ct.scrollTop+=.05*(mn||0))}function Ri(cr){Fn&&cr===mn||(ts(),rz("startAutoScroll",cr),mn=cr,Fn=setInterval(Ti,50))}function ts(){Fn&&(rz("stopAutoScroll"),clearInterval(Fn),Fn=void 0,mn=void 0)}return rz("createAutoScrollHandler",ct),{onDrag:function(cr){if(ct){var os=cr.clientY,Zc=ct.getBoundingClientRect(),Ha=Zc.top,el=Zc.bottom;osel?Ri(vi(os-el)):ts()}},onDragEnd:function(){ts()}}}(a):void 0),9&t.$$.dirty[0]|1342177280&t.$$.dirty[1]|4096&t.$$.dirty[2]&&n(15,Mi={readOnly:se,parser:kt,normalization:Nr,getJson:s1,getDocumentState:fl,findElement:P0,findNextInside:Us,focus:Xi,onPatch:Vl,onInsert:ss,onExpand:I3,onSelect:En,onFind:B0,onExpandSection:$h,onPasteJson:Et,onRenderValue:gt,onContextMenu:Ln,onClassName:on||function(){},onDrag:Lo,onDragEnd:aa}),32768&t.$$.dirty[0]&&r("context changed",Mi)},[se,Ye,lt,kt,ut,Ut,$t,sn,function(){return Or&&void 0!==m&&F0(m),void 0!==m?{json:m}:{text:_||""}},Xi,a,m,fn,Yr,tc,Mi,u,d,_,Pr,va,sa,qi,Or,$s,s,function(ct){n(20,va=ct)},function(ct){return oa.apply(this,arguments)},function(){n(13,Yr=!1),n(21,sa=!1),Xi()},function(ct){r("select validation error",ct),En(Bs(ct.path,!1)),$d(ct.path)},Jc,function(ct){var mn;ct.preventDefault();var Fn=null===(mn=ct.clipboardData)||void 0===mn?void 0:mn.getData("text/plain");void 0!==Fn&&Xie({clipboardText:Fn,json:m,selection:fn.selection,readOnly:se,parser:kt,onPatch:Vl,onChangeText:em,openRepairModal:o1})},Yi,to,wa,function(){ys([])},function(){S4({rootPath:[]})},Vl,function(){I3([],!0,!0)},function(){I3([],!1,!0)},function(ct){var mn=D0(ct),Fn=ct.shiftKey;if(r("keydown",{combo:mn,key:ct.key}),"Ctrl+X"===mn&&(ct.preventDefault(),Wl(!0)),"Ctrl+Shift+X"===mn&&(ct.preventDefault(),Wl(!1)),"Ctrl+C"===mn&&(ct.preventDefault(),Jc(!0)),"Ctrl+Shift+C"===mn&&(ct.preventDefault(),Jc(!1)),"Ctrl+D"===mn&&(ct.preventDefault(),Tn()),"Delete"!==mn&&"Backspace"!==mn||(ct.preventDefault(),a1()),"Insert"===mn&&(ct.preventDefault(),ss("structure")),"Ctrl+A"===mn&&(ct.preventDefault(),En(Bs([],!1))),"Ctrl+Q"===mn&&Hi(ct),"ArrowUp"===mn||"Shift+ArrowUp"===mn){ct.preventDefault();var vi=fn.selection?ste(m,fn,Fn)||fn.selection:f7(m,fn);En(vi),j0(mr(vi))}if("ArrowDown"===mn||"Shift+ArrowDown"===mn){ct.preventDefault();var Ti=fn.selection?function(Ha,el){var w2=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ns=el.selection;if(!Ns)return null;var _a=w2?mr(Ns):Nh(Ha,Ns),Al=Uc(nt(Ha,_a))?Yee(el,_a):el,To=BL(Ha,el,_a),hl=BL(Ha,Al,_a);if(w2)return Dl(Ns)?null!==To?y2(To,To):null:Cu(Ns)?null!==hl?y2(hl,hl):null:null!==hl?y2(qp(Ns),hl):null;if(Cu(Ns))return null!==hl?Bs(hl,!1):null;if(Dl(Ns)||po(Ns))return null!==To?Bs(To,!1):null;if(dl(Ns)){if(null===To||0===To.length)return null;var nd=nt(Ha,Ls(To));return Array.isArray(nd)?Bs(To,!1):Pd(To,!1)}return Ca(Ns)?null!==hl?Bs(hl,!1):null!==To?Bs(To,!1):null:null}(m,fn,Fn)||fn.selection:f7(m,fn);En(Ti),j0(mr(Ti))}if("ArrowLeft"===mn||"Shift+ArrowLeft"===mn){ct.preventDefault();var Ri=fn.selection?function(Ha,el){var w2=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_a=el.selection;if(!_a)return null;var Al=ote(Ha,el,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),To=Al.caret,hl=Al.previous;if(w2)return Ca(_a)?null:y2(_a.path,_a.path);if(To&&hl)return GL(hl);var nd=nt(Ha,Ls(mr(_a)));return po(_a)&&Array.isArray(nd)?y2(_a.path,_a.path):Ca(_a)&&!Array.isArray(nd)?Pd(_a.focusPath,!1):null}(m,fn,Fn,!se)||fn.selection:f7(m,fn);En(Ri),j0(mr(Ri))}if("ArrowRight"===mn||"Shift+ArrowRight"===mn){ct.preventDefault();var ts=fn.selection&&void 0!==m?function(Ha,el){var w2=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_a=el.selection;if(!_a)return null;var Al=ote(Ha,el,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]),To=Al.caret,hl=Al.next;return w2?Ca(_a)?null:y2(_a.path,_a.path):To&&hl?GL(hl):Ca(_a)?Bs(_a.focusPath,!1):null}(m,fn,Fn,!se)||fn.selection:f7(m,fn);En(ts),j0(mr(ts))}if("Enter"===mn&&fn.selection){if(Nk(fn.selection)){var cr=fn.selection.focusPath,os=nt(m,Ls(cr));Array.isArray(os)&&En(Bs(cr,!1))}dl(fn.selection)&&(ct.preventDefault(),En(yn(yn({},fn.selection),{},{edit:!0}))),po(fn.selection)&&(ct.preventDefault(),Uc(nt(m,fn.selection.path))?I3(fn.selection.path,!0):En(yn(yn({},fn.selection),{},{edit:!0})))}if(1===mn.replace(/^Shift\+/,"").length&&fn.selection)return ct.preventDefault(),void Yi(ct.key);if("Enter"===mn&&(Cu(fn.selection)||Dl(fn.selection)))return ct.preventDefault(),void Yi("");if("Ctrl+Enter"===mn&&po(fn.selection)){var Zc=nt(m,fn.selection.path);Vk(Zc)&&window.open(String(Zc),"_blank")}"Escape"===mn&&fn.selection&&(ct.preventDefault(),En(null)),"Ctrl+F"===mn&&(ct.preventDefault(),B0(!1)),"Ctrl+H"===mn&&(ct.preventDefault(),B0(!0)),"Ctrl+Z"===mn&&(ct.preventDefault(),to()),"Ctrl+Shift+Z"===mn&&(ct.preventDefault(),wa())},function(ct){r("handleMouseDown",ct);var mn=ct.target;Hee(mn,"BUTTON")||mn.isContentEditable||(Xi(),fn.selection||void 0!==m||""!==_&&void 0!==_||(r("createDefaultSelection"),n(12,fn=yn(yn({},fn),{},{selection:Bs([],!1)}))))},Hi,function(ct){Ln({anchor:zee(ct.target,"BUTTON"),offsetTop:0,width:E0,height:k0,showTip:!0})},function(){return Bi.apply(this,arguments)},function(){r("clear pasted json"),n(19,Pr=void 0),Xi()},function(){et(A1.text)},function(ct){En(ct),Xi(),$d(mr(ct))},function(ct){!vb(ct.target,function(Fn){return Fn===d})&&C2(fn.selection)&&(r("click outside the editor, stop edit mode"),En(function(Fn){return dl(Fn)||po(Fn)?yn(yn({},Fn),{},{edit:!1}):Fn}),W&&u&&(u.focus(),u.blur()),r("blur (outside editor)"),u&&u.blur())},ke,ye,Vt,Nt,qt,wt,Dt,Lt,et,st,gt,Hn,on,Xt,An,_n,Zt,wi,function(){var ct=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cb;r("expand");var mn=yn(yn({},fn),{},{expandedMap:{},visibleSectionsMap:{}});n(12,fn=Nd(m,mn,[],ct))},r1,s1,Oa,S4,$d,P0,Nr,function(ct){n(13,Yr=ct)},function(ct){Vs[ct?"unshift":"push"](function(){n(16,u=ct)})},function(){Xi(),Yi("{")},function(){Xi(),Yi("[")},function(){Xi()},function(ct){Vs[ct?"unshift":"push"](function(){n(10,a=ct)})},function(ct){Vs[ct?"unshift":"push"](function(){n(17,d=ct)})}]}var yz=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,MBe,wBe,gs,{readOnly:0,externalContent:49,externalSelection:50,mainMenuBar:1,navigationBar:2,escapeControlCharacters:51,escapeUnicodeCharacters:52,parser:3,parseMemoizeOne:53,validator:54,validationParser:55,pathParser:4,indentation:5,onError:6,onChange:56,onChangeMode:57,onSelect:58,onRenderValue:59,onRenderMenu:7,onRenderContextMenu:60,onClassName:61,onFocus:62,onBlur:63,onSortModal:64,onTransformModal:65,onJSONEditorModal:66,expand:67,validate:68,getJson:69,patch:70,acceptAutoRepair:8,openTransformModal:71,scrollTo:72,findElement:73,focus:9},gBe,[-1,-1,-1,-1,-1]),i}return br(e,Cr),pr(e,[{key:"expand",get:function(){return this.$$.ctx[67]}},{key:"validate",get:function(){return this.$$.ctx[68]}},{key:"getJson",get:function(){return this.$$.ctx[69]}},{key:"patch",get:function(){return this.$$.ctx[70]}},{key:"acceptAutoRepair",get:function(){return this.$$.ctx[8]}},{key:"openTransformModal",get:function(){return this.$$.ctx[71]}},{key:"scrollTo",get:function(){return this.$$.ctx[72]}},{key:"findElement",get:function(){return this.$$.ctx[73]}},{key:"focus",get:function(){return this.$$.ctx[9]}}])}();function vre(t){return"object"!==Cc(e=t)||null===e?t:new Proxy(t,{get:function(n,i,r){return vre(Reflect.get(n,i,r))},set:function(){return!1},deleteProperty:function(){return!1}});var e}function SBe(t){as(t,"svelte-1mpf6w7",'.jse-modal.svelte-1mpf6w7.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-1mpf6w7 .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-1mpf6w7 .jse-modal-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions.svelte-1mpf6w7{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-1mpf6w7 .jse-modal-contents .jse-actions button.jse-primary.svelte-1mpf6w7:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents.svelte-1mpf6w7{color:inherit;min-height:0;padding:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents.svelte-1mpf6w7{flex:1;display:flex;gap:calc(2 * var(--jse-padding, 10px));min-height:0;box-sizing:border-box;padding:0 calc(2 * var(--jse-padding, 10px)) var(--jse-padding, 10px)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p{margin:var(--jse-padding, 10px) 0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p:first-child{margin-top:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 p:last-child{margin-bottom:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents .jse-description.svelte-1mpf6w7 code{background:var(--jse-modal-code-background, rgba(0, 0, 0, 0.05));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-1mpf6w7{flex:1;outline:none;resize:vertical}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;gap:calc(2 * var(--jse-padding, 10px))}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-original-data.jse-hide.svelte-1mpf6w7{flex:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents .jse-preview-data.svelte-1mpf6w7{flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.jse-hide-original-data.svelte-1mpf6w7{flex-direction:column;gap:0;margin-bottom:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-actions.svelte-1mpf6w7{padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px)) calc(2 * var(--jse-padding, 10px))}@media screen and (max-width: 1200px){.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents.svelte-1mpf6w7{flex-direction:column;overflow:auto}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-query-contents textarea.jse-query.svelte-1mpf6w7{min-height:150px;flex:none}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-modal-contents .jse-main-contents .jse-data-contents.svelte-1mpf6w7 .jse-tree-mode{height:300px;flex:none}}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label.svelte-1mpf6w7{font-weight:bold;display:block;box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label .jse-label-inner.svelte-1mpf6w7{margin-top:calc(2 * var(--jse-padding, 10px));margin-bottom:calc(0.5 * var(--jse-padding, 10px));box-sizing:border-box}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-label .jse-label-inner button.svelte-1mpf6w7{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;font-weight:bold;padding:0}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-tree-mode{flex:1;background:var(--jse-input-background-readonly, transparent);box-shadow:none;box-sizing:border-box;--jse-main-border:var(--jse-input-border, 1px solid #d8dbdf)}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7{border:var(--jse-input-border, 1px solid #d8dbdf);outline:none;box-sizing:border-box;padding:calc(0.5 * var(--jse-padding, 10px));font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:inherit;background:var(--jse-input-background, var(--jse-background-color, #fff))}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7:focus,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7:focus{border:var(--jse-input-border-focus, 1px solid var(--jse-input-border-focus, var(--jse-theme-color, #3883fa)))}.jse-modal.jse-transform.svelte-1mpf6w7 input.svelte-1mpf6w7:read-only,.jse-modal.jse-transform.svelte-1mpf6w7 textarea.svelte-1mpf6w7:read-only{background:var(--jse-input-background-readonly, transparent)}.jse-modal.jse-transform.svelte-1mpf6w7 .jse-preview.jse-error.svelte-1mpf6w7{flex:1;background:var(--jse-input-background-readonly, transparent);border:var(--jse-input-border, 1px solid #d8dbdf);color:var(--jse-error-color, #ee5341);padding:calc(0.5 * var(--jse-padding, 10px))}.jse-modal.jse-transform.svelte-1mpf6w7 a{color:var(--jse-a-color, #156fc5)}.jse-modal.jse-transform.svelte-1mpf6w7 a:hover{color:var(--jse-a-color-highlight, #0f508d)}')}function _re(t){var e,n,i,r,s,a=[EBe,kBe],u=[];function d(m,_){return 16384&_[0]&&(e=null),null==e&&(e=!!Array.isArray(m[14])),e?0:1}return n=d(t,[-1,-1]),i=u[n]=a[n](t),{c:function(){i.c(),r=ho()},m:function(m,_){u[n].m(m,_),Ht(m,r,_),s=!0},p:function(m,_){var y=n;(n=d(m,_))===y?u[n].p(m,_):(si(),je(u[y],1,1,function(){u[y]=null}),oi(),(i=u[n])?i.p(m,_):(i=u[n]=a[n](m)).c(),Me(i,1),i.m(r.parentNode,r))},i:function(m){s||(Me(i),s=!0)},o:function(m){je(i),s=!1},d:function(m){m&&At(r),u[n].d(m)}}}function kBe(t){var e;return{c:function(){e=Ii("(Only available for arrays, not for objects)")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function EBe(t){var e,n;return e=new YNe({props:{queryOptions:t[15],json:t[14],onChange:t[24]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};32768&r[0]&&(s.queryOptions=i[15]),16384&r[0]&&(s.json=i[14]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function bre(t){var e,n;return e=new yz({props:{externalContent:t[17],externalSelection:null,readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:t[11],onRenderContextMenu:t[12],onError:console.error,onChange:Oi,onChangeMode:Oi,onSelect:Oi,onFocus:Oi,onBlur:Oi,onSortModal:Oi,onTransformModal:Oi,onJSONEditorModal:Oi,onClassName:t[13],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};131072&r[0]&&(s.externalContent=i[17]),4&r[0]&&(s.indentation=i[2]),8&r[0]&&(s.escapeControlCharacters=i[3]),16&r[0]&&(s.escapeUnicodeCharacters=i[4]),32&r[0]&&(s.parser=i[5]),64&r[0]&&(s.parseMemoizeOne=i[6]),1024&r[0]&&(s.onRenderValue=i[10]),2048&r[0]&&(s.onRenderMenu=i[11]),4096&r[0]&&(s.onRenderContextMenu=i[12]),8192&r[0]&&(s.onClassName=i[13]),128&r[0]&&(s.validationParser=i[7]),256&r[0]&&(s.pathParser=i[8]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function DBe(t){var e,n;return{c:function(){e=pt("div"),n=Ii(t[21]),ce(e,"class","jse-preview jse-error svelte-1mpf6w7")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:function(i,r){2097152&r[0]&&Ir(n,i[21])},i:hi,o:hi,d:function(i){i&&At(e)}}}function TBe(t){var e,n;return e=new yz({props:{externalContent:t[22],externalSelection:null,readOnly:!0,mainMenuBar:!1,navigationBar:!1,indentation:t[2],escapeControlCharacters:t[3],escapeUnicodeCharacters:t[4],parser:t[5],parseMemoizeOne:t[6],onRenderValue:t[10],onRenderMenu:t[11],onRenderContextMenu:t[12],onError:console.error,onChange:Oi,onChangeMode:Oi,onSelect:Oi,onFocus:Oi,onBlur:Oi,onSortModal:Oi,onTransformModal:Oi,onJSONEditorModal:Oi,onClassName:t[13],validator:null,validationParser:t[7],pathParser:t[8]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};4194304&r[0]&&(s.externalContent=i[22]),4&r[0]&&(s.indentation=i[2]),8&r[0]&&(s.escapeControlCharacters=i[3]),16&r[0]&&(s.escapeUnicodeCharacters=i[4]),32&r[0]&&(s.parser=i[5]),64&r[0]&&(s.parseMemoizeOne=i[6]),1024&r[0]&&(s.onRenderValue=i[10]),2048&r[0]&&(s.onRenderMenu=i[11]),4096&r[0]&&(s.onRenderContextMenu=i[12]),8192&r[0]&&(s.onClassName=i[13]),128&r[0]&&(s.validationParser=i[7]),256&r[0]&&(s.pathParser=i[8]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function VBe(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,Lt,et,st,gt,sn,Hn,on,Xt,An,_n,Zt,wi,zi,Zn,En,Nr,Pr=t[23](t[0]).description+"";function va(qi){t[37](qi)}var Qo={queryLanguages:t[9],queryLanguageId:t[0],onChangeQueryLanguage:t[29]};void 0!==t[18]&&(Qo.fullscreen=t[18]),e=new dPe({props:Qo}),Vs.push(function(){return J2(e,"fullscreen",va)}),se=new Co({props:{data:t[19]?Uu:p0}});var fn=t[19]&&_re(t);$t=new Co({props:{data:t[20]?Uu:p0}});var Yr=t[20]&&bre(t),sa=[TBe,DBe],oa=[];function Jo(qi,$s){return qi[21]?1:0}return on=Jo(t),Xt=oa[on]=sa[on](t),{c:function(){Nn(e.$$.fragment),i=gn(),r=pt("div"),s=pt("div"),a=pt("div"),(u=pt("div")).innerHTML='
Language
',d=gn(),m=pt("div"),_=gn(),(y=pt("div")).innerHTML='
Path
',x=gn(),S=pt("input"),z=gn(),$=pt("div"),W=pt("div"),re=pt("button"),Nn(se.$$.fragment),ke=Ii("\n Wizard"),ye=gn(),fn&&fn.c(),Ye=gn(),(lt=pt("div")).innerHTML='
Query
',Vt=gn(),Nt=pt("textarea"),kt=gn(),qt=pt("div"),wt=pt("div"),Dt=pt("div"),ut=pt("div"),Ut=pt("button"),Nn($t.$$.fragment),Lt=Ii("\n Original"),et=gn(),Yr&&Yr.c(),st=gn(),gt=pt("div"),(sn=pt("div")).innerHTML='
Preview
',Hn=gn(),Xt.c(),An=gn(),_n=pt("div"),Zt=pt("button"),wi=Ii("Transform"),ce(u,"class","jse-label svelte-1mpf6w7"),ce(m,"class","jse-description svelte-1mpf6w7"),ce(y,"class","jse-label svelte-1mpf6w7"),ce(S,"class","jse-path svelte-1mpf6w7"),ce(S,"type","text"),S.readOnly=!0,ce(S,"title","Selected path"),S.value=D=Zs(t[1])?"(document root)":yu(t[1]),ce(re,"type","button"),ce(re,"class","svelte-1mpf6w7"),ce(W,"class","jse-label-inner svelte-1mpf6w7"),ce($,"class","jse-label svelte-1mpf6w7"),ce(lt,"class","jse-label svelte-1mpf6w7"),ce(Nt,"class","jse-query svelte-1mpf6w7"),ce(Nt,"spellcheck","false"),Nt.value=t[16],ce(a,"class","jse-query-contents svelte-1mpf6w7"),ce(Ut,"type","button"),ce(Ut,"class","svelte-1mpf6w7"),ce(ut,"class","jse-label-inner svelte-1mpf6w7"),ce(Dt,"class","jse-label svelte-1mpf6w7"),ce(wt,"class","jse-original-data svelte-1mpf6w7"),$n(wt,"jse-hide",!t[20]),ce(sn,"class","jse-label svelte-1mpf6w7"),ce(gt,"class","jse-preview-data svelte-1mpf6w7"),ce(qt,"class","jse-data-contents svelte-1mpf6w7"),$n(qt,"jse-hide-original-data",!t[20]),ce(s,"class","jse-main-contents svelte-1mpf6w7"),ce(Zt,"type","button"),ce(Zt,"class","jse-primary svelte-1mpf6w7"),Zt.disabled=zi=!!t[21],ce(_n,"class","jse-actions svelte-1mpf6w7"),ce(r,"class","jse-modal-contents svelte-1mpf6w7")},m:function(qi,$s){zn(e,qi,$s),Ht(qi,i,$s),Ht(qi,r,$s),Ge(r,s),Ge(s,a),Ge(a,u),Ge(a,d),Ge(a,m),m.innerHTML=Pr,Ge(a,_),Ge(a,y),Ge(a,x),Ge(a,S),Ge(a,z),Ge(a,$),Ge($,W),Ge(W,re),zn(se,re,null),Ge(re,ke),Ge(a,ye),fn&&fn.m(a,null),Ge(a,Ye),Ge(a,lt),Ge(a,Vt),Ge(a,Nt),Ge(s,kt),Ge(s,qt),Ge(qt,wt),Ge(wt,Dt),Ge(Dt,ut),Ge(ut,Ut),zn($t,Ut,null),Ge(Ut,Lt),Ge(wt,et),Yr&&Yr.m(wt,null),Ge(qt,st),Ge(qt,gt),Ge(gt,sn),Ge(gt,Hn),oa[on].m(gt,null),Ge(r,An),Ge(r,_n),Ge(_n,Zt),Ge(Zt,wi),Zn=!0,En||(Nr=[ei(re,"click",t[27]),ei(Nt,"input",t[25]),ei(Ut,"click",t[28]),ei(Zt,"click",t[26]),$l(IBe.call(null,Zt))],En=!0)},p:function(qi,$s){var Mi={};512&$s[0]&&(Mi.queryLanguages=qi[9]),1&$s[0]&&(Mi.queryLanguageId=qi[0]),!n&&262144&$s[0]&&(n=!0,Mi.fullscreen=qi[18],Q2(function(){return n=!1})),e.$set(Mi),(!Zn||1&$s[0])&&Pr!==(Pr=qi[23](qi[0]).description+"")&&(m.innerHTML=Pr),(!Zn||2&$s[0]&&D!==(D=Zs(qi[1])?"(document root)":yu(qi[1]))&&S.value!==D)&&(S.value=D);var Or={};524288&$s[0]&&(Or.data=qi[19]?Uu:p0),se.$set(Or),qi[19]?fn?(fn.p(qi,$s),524288&$s[0]&&Me(fn,1)):((fn=_re(qi)).c(),Me(fn,1),fn.m(a,Ye)):fn&&(si(),je(fn,1,1,function(){fn=null}),oi()),(!Zn||65536&$s[0])&&(Nt.value=qi[16]);var tc={};1048576&$s[0]&&(tc.data=qi[20]?Uu:p0),$t.$set(tc),qi[20]?Yr?(Yr.p(qi,$s),1048576&$s[0]&&Me(Yr,1)):((Yr=bre(qi)).c(),Me(Yr,1),Yr.m(wt,null)):Yr&&(si(),je(Yr,1,1,function(){Yr=null}),oi()),(!Zn||1048576&$s[0])&&$n(wt,"jse-hide",!qi[20]);var xa=on;(on=Jo(qi))===xa?oa[on].p(qi,$s):(si(),je(oa[xa],1,1,function(){oa[xa]=null}),oi(),(Xt=oa[on])?Xt.p(qi,$s):(Xt=oa[on]=sa[on](qi)).c(),Me(Xt,1),Xt.m(gt,null)),(!Zn||1048576&$s[0])&&$n(qt,"jse-hide-original-data",!qi[20]),(!Zn||2097152&$s[0]&&zi!==(zi=!!qi[21]))&&(Zt.disabled=zi)},i:function(qi){Zn||(Me(e.$$.fragment,qi),Me(se.$$.fragment,qi),Me(fn),Me($t.$$.fragment,qi),Me(Yr),Me(Xt),Zn=!0)},o:function(qi){je(e.$$.fragment,qi),je(se.$$.fragment,qi),je(fn),je($t.$$.fragment,qi),je(Yr),je(Xt),Zn=!1},d:function(qi){qi&&(At(i),At(r)),Rn(e,qi),Rn(se),fn&&fn.d(),Rn($t),Yr&&Yr.d(),oa[on].d(),En=!1,ma(Nr)}}}function ABe(t){var e,n,i,r,s;return n=new $ee({props:{$$slots:{default:[VBe]},$$scope:{ctx:t}}}),{c:function(){e=pt("div"),Nn(n.$$.fragment),ce(e,"class","jse-modal jse-transform svelte-1mpf6w7"),$n(e,"fullscreen",t[18])},m:function(a,u){Ht(a,e,u),zn(n,e,null),i=!0,r||(s=$l(Db.call(null,e,t[30])),r=!0)},p:function(a,u){var d={};8388607&u[0]|16384&u[1]&&(d.$$scope={dirty:u,ctx:a}),n.$set(d),(!i||262144&u[0])&&$n(e,"fullscreen",a[18])},i:function(a){i||(Me(n.$$.fragment,a),i=!0)},o:function(a){je(n.$$.fragment,a),i=!1},d:function(a){a&&At(e),Rn(n),r=!1,s()}}}function IBe(t){t.focus()}function OBe(t,e,n){var i,r,s=v1("jsoneditor:TransformModal"),a=e.id,u=void 0===a?"transform-modal-"+pb():a,d=e.json,m=e.rootPath,_=void 0===m?[]:m,y=e.indentation,x=e.escapeControlCharacters,S=e.escapeUnicodeCharacters,D=e.parser,z=e.parseMemoizeOne,$=e.validationParser,W=e.pathParser,re=e.queryLanguages,se=e.queryLanguageId,ke=e.onChangeQueryLanguage,ye=e.onRenderValue,Ye=e.onRenderMenu,lt=e.onRenderContextMenu,Vt=e.onClassName,Nt=e.onTransform,kt=V1("simple-modal").close,qt=!1,wt="".concat(u,":").concat(de(_)),Dt=Sb[wt]||{},ut=!1!==Bk.showWizard,Ut=!1!==Bk.showOriginal,$t=Dt.queryOptions||{},Lt=se===Dt.queryLanguageId&&Dt.query?Dt.query:sn(se).createQuery(i,Dt.queryOptions||{}),et=Dt.isManual||!1,st=void 0,gt={text:""};function sn(on){return re.find(function(Xt){return Xt.id===on})||re[0]}var Hn=u0(function(on,Xt){if(void 0===on)return n(22,gt={text:""}),void n(21,st="Error: No JSON");try{s("previewTransform",{query:Xt});var An=sn(se).executeQuery(on,Xt,D);n(22,gt={json:An}),n(21,st=void 0)}catch(_n){n(22,gt={text:""}),n(21,st=String(_n))}},300);return t.$$set=function(on){"id"in on&&n(31,u=on.id),"json"in on&&n(32,d=on.json),"rootPath"in on&&n(1,_=on.rootPath),"indentation"in on&&n(2,y=on.indentation),"escapeControlCharacters"in on&&n(3,x=on.escapeControlCharacters),"escapeUnicodeCharacters"in on&&n(4,S=on.escapeUnicodeCharacters),"parser"in on&&n(5,D=on.parser),"parseMemoizeOne"in on&&n(6,z=on.parseMemoizeOne),"validationParser"in on&&n(7,$=on.validationParser),"pathParser"in on&&n(8,W=on.pathParser),"queryLanguages"in on&&n(9,re=on.queryLanguages),"queryLanguageId"in on&&n(0,se=on.queryLanguageId),"onChangeQueryLanguage"in on&&n(33,ke=on.onChangeQueryLanguage),"onRenderValue"in on&&n(10,ye=on.onRenderValue),"onRenderMenu"in on&&n(11,Ye=on.onRenderMenu),"onRenderContextMenu"in on&&n(12,lt=on.onRenderContextMenu),"onClassName"in on&&n(13,Vt=on.onClassName),"onTransform"in on&&n(34,Nt=on.onTransform)},t.$$.update=function(){2&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(14,i=vre(nt(d,_))),16384&t.$$.dirty[0]&&n(17,r=i?{json:i}:{text:""}),81920&t.$$.dirty[0]&&Hn(i,Lt),98305&t.$$.dirty[0]|48&t.$$.dirty[1]&&(n(35,Sb[wt]={queryOptions:$t,query:Lt,queryLanguageId:se,isManual:et},Sb),s("store state in memory",wt,Sb[wt]))},[se,_,y,x,S,D,z,$,W,re,ye,Ye,lt,Vt,i,$t,Lt,r,qt,ut,Ut,st,gt,sn,function(on){n(15,$t=on),n(16,Lt=sn(se).createQuery(i,on)),n(36,et=!1),s("updateQueryByWizard",{queryOptions:$t,query:Lt,isManual:et})},function(on){n(16,Lt=on.target.value),n(36,et=!0),s("handleChangeQuery",{query:Lt,isManual:et})},function(){if(void 0===i)return n(22,gt={text:""}),void n(21,st="Error: No JSON");try{s("handleTransform",{query:Lt});var on=sn(se).executeQuery(i,Lt,D);Nt([{op:"replace",path:de(_),value:on}]),kt()}catch(Xt){console.error(Xt),n(22,gt={text:""}),n(21,st=String(Xt))}},function(){n(19,ut=!ut),Bk.showWizard=ut},function(){n(20,Ut=!Ut),Bk.showOriginal=Ut},function(on){s("handleChangeQueryLanguage",on),n(0,se=on),ke(on);var Xt=sn(se);n(16,Lt=Xt.createQuery(i,$t)),n(36,et=!1)},function(){qt?n(18,qt=!qt):kt()},u,d,ke,Nt,Sb,et,function(on){n(18,qt=on)}]}var HBe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,OBe,ABe,gs,{id:31,json:32,rootPath:1,indentation:2,escapeControlCharacters:3,escapeUnicodeCharacters:4,parser:5,parseMemoizeOne:6,validationParser:7,pathParser:8,queryLanguages:9,queryLanguageId:0,onChangeQueryLanguage:33,onRenderValue:10,onRenderMenu:11,onRenderContextMenu:12,onClassName:13,onTransform:34},SBe,[-1,-1]),i}return br(e,Cr),pr(e)}(),w7={};function LBe(t){as(t,"svelte-jdii8g",'.jse-modal.svelte-jdii8g.svelte-jdii8g{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;background:var(--jse-modal-background, #f5f5f5);color:var(--jse-text-color, #4d4d4d)}.jse-modal.svelte-jdii8g .svelte-select{--border:var(--jse-svelte-select-border, 1px solid #d8dbdf);--item-is-active-bg:var(--jse-item-is-active-bg, #3883fa);--border-radius:var(--jse-svelte-select-border-radius, 3px);--background:var(--jse-svelte-select-background, #fff);--padding:var(--jse-svelte-select-padding, 0 10px);--multi-select-padding:var(--jse-svelte-select-multi-select-padding, 0 10px);--font-size:var(--jse-svelte-select-font-size, var(--jse-font-size, 16px));--height:36px;--multi-item-height:28px;--multi-item-margin:2px;--multi-item-padding:2px 8px;--multi-item-border-radius:6px;--indicator-top:8px}.jse-modal.svelte-jdii8g .jse-modal-contents.svelte-jdii8g{flex:1;display:flex;flex-direction:column;padding:20px;overflow:auto;min-width:0;min-height:0}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions.svelte-jdii8g{display:flex;flex-direction:row;justify-content:flex-end;padding-top:var(--jse-padding, 10px)}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-modal.svelte-jdii8g .jse-modal-contents .jse-actions button.jse-primary.svelte-jdii8g:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.bg.jse-modal-bg{width:100%;height:100%;top:0;left:0;background:var(--jse-overlay-background, rgba(0, 0, 0, 0.3))}.bg.jse-modal-bg .jse-modal-window-wrap{margin:0;overflow:auto}.bg.jse-modal-bg .jse-modal-window{max-width:90%;margin:4rem auto 2rem auto;border-radius:2px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-sort{width:400px}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-transform{width:1200px;height:1200px;max-height:80%;display:flex}.bg.jse-modal-bg .jse-modal-window.jse-modal-window-jsoneditor{width:800px;max-height:500px;display:flex}.bg.jse-modal-bg .jse-modal-window:has(div.fullscreen){margin:var(--jse-padding, 10px);padding:0;width:calc(100vw - 2 * var(--jse-padding, 10px));height:calc(100vh - 2 * var(--jse-padding, 10px));max-width:none;max-height:none}.bg.jse-modal-bg .jse-modal-container{flex:1;display:flex;flex-direction:column;padding:0;max-height:none}.jse-modal.jse-sort.svelte-jdii8g table.svelte-jdii8g{width:100%;border-collapse:collapse;border-spacing:0}.jse-modal.jse-sort.svelte-jdii8g table th.svelte-jdii8g,.jse-modal.jse-sort.svelte-jdii8g table td.svelte-jdii8g{text-align:left;vertical-align:middle;font-weight:normal;padding-bottom:var(--jse-padding, 10px)}.jse-modal.jse-sort.svelte-jdii8g table th input.jse-path.svelte-jdii8g,.jse-modal.jse-sort.svelte-jdii8g table td input.jse-path.svelte-jdii8g{width:100%;box-sizing:border-box;padding:6px 16px;border:var(--jse-input-border, 1px solid #d8dbdf);border-radius:var(--jse-input-radius, 3px);font-family:inherit;font-size:inherit;background:inherit;color:inherit;outline:none}.jse-modal.jse-sort.svelte-jdii8g table th input.jse-path.svelte-jdii8g:read-only,.jse-modal.jse-sort.svelte-jdii8g table td input.jse-path.svelte-jdii8g:read-only{background:var(--jse-input-background-readonly, transparent)}.jse-modal.jse-sort.svelte-jdii8g table th.svelte-jdii8g .svelte-select input,.jse-modal.jse-sort.svelte-jdii8g table td.svelte-jdii8g .svelte-select input{box-sizing:border-box}.jse-modal.jse-sort.svelte-jdii8g .jse-space.svelte-jdii8g{height:200px}.jse-modal.jse-sort.svelte-jdii8g .jse-space .jse-error.svelte-jdii8g{color:var(--jse-error-color, #ee5341)}')}function yre(t){var e,n,i,r,s,a,u;function d(_){t[14](_)}var m={showChevron:!0,items:t[5]};return void 0!==t[1]&&(m.value=t[1]),s=new Jp({props:m}),Vs.push(function(){return J2(s,"value",d)}),{c:function(){e=pt("tr"),(n=pt("th")).textContent="Property",i=gn(),r=pt("td"),Nn(s.$$.fragment),ce(n,"class","svelte-jdii8g"),ce(r,"class","svelte-jdii8g")},m:function(_,y){Ht(_,e,y),Ge(e,n),Ge(e,i),Ge(e,r),zn(s,r,null),u=!0},p:function(_,y){var x={};32&y&&(x.items=_[5]),!a&&2&y&&(a=!0,x.value=_[1],Q2(function(){return a=!1})),s.$set(x)},i:function(_){u||(Me(s.$$.fragment,_),u=!0)},o:function(_){je(s.$$.fragment,_),u=!1},d:function(_){_&&At(e),Rn(s)}}}function Cre(t){var e,n;return{c:function(){e=pt("div"),n=Ii(t[4]),ce(e,"class","jse-error svelte-jdii8g")},m:function(i,r){Ht(i,e,r),Ge(e,n)},p:function(i,r){16&r&&Ir(n,i[4])},d:function(i){i&&At(e)}}}function zBe(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,Lt;i=new eE({props:{title:t[3]?"Sort array items":"Sort object keys"}});var et=t[3]&&(t[5]&&(null===(e=t[5])||void 0===e?void 0:e.length)>1||void 0===t[1])&&yre(t);function st(Hn){t[15](Hn)}var gt={showChevron:!0,clearable:!1,items:t[7]};void 0!==t[2]&&(gt.value=t[2]),Ye=new Jp({props:gt}),Vs.push(function(){return J2(Ye,"value",st)});var sn=t[4]&&Cre(t);return{c:function(){var Hn;n=pt("div"),Nn(i.$$.fragment),r=gn(),s=pt("div"),a=pt("table"),(u=pt("colgroup")).innerHTML=' ',d=gn(),m=pt("tbody"),_=pt("tr"),(y=pt("th")).textContent="Path",x=gn(),S=pt("td"),D=pt("input"),$=gn(),et&&et.c(),W=gn(),re=pt("tr"),(se=pt("th")).textContent="Direction",ke=gn(),ye=pt("td"),Nn(Ye.$$.fragment),Vt=gn(),Nt=pt("div"),sn&&sn.c(),kt=gn(),qt=pt("div"),wt=pt("button"),Dt=Ii("Sort"),ce(y,"class","svelte-jdii8g"),ce(D,"class","jse-path svelte-jdii8g"),ce(D,"type","text"),D.readOnly=!0,ce(D,"title","Selected path"),D.value=z=Zs(t[0])?"(document root)":yu(t[0]),ce(S,"class","svelte-jdii8g"),ce(se,"class","svelte-jdii8g"),ce(ye,"class","svelte-jdii8g"),ce(a,"class","svelte-jdii8g"),ce(Nt,"class","jse-space svelte-jdii8g"),ce(wt,"type","button"),ce(wt,"class","jse-primary svelte-jdii8g"),wt.disabled=ut=!!(t[3]&&t[5]&&(null===(Hn=t[5])||void 0===Hn?void 0:Hn.length)>1)&&!t[1],ce(qt,"class","jse-actions svelte-jdii8g"),ce(s,"class","jse-modal-contents svelte-jdii8g"),ce(n,"class","jse-modal jse-sort svelte-jdii8g")},m:function(Hn,on){Ht(Hn,n,on),zn(i,n,null),Ge(n,r),Ge(n,s),Ge(s,a),Ge(a,u),Ge(a,d),Ge(a,m),Ge(m,_),Ge(_,y),Ge(_,x),Ge(_,S),Ge(S,D),Ge(m,$),et&&et.m(m,null),Ge(m,W),Ge(m,re),Ge(re,se),Ge(re,ke),Ge(re,ye),zn(Ye,ye,null),Ge(s,Vt),Ge(s,Nt),sn&&sn.m(Nt,null),Ge(s,kt),Ge(s,qt),Ge(qt,wt),Ge(wt,Dt),Ut=!0,$t||(Lt=[ei(wt,"click",t[8]),$l(RBe.call(null,wt)),$l(Db.call(null,n,t[6]))],$t=!0)},p:function(Hn,on){var Xt,An,_n=ds(on,1)[0],Zt={};8&_n&&(Zt.title=Hn[3]?"Sort array items":"Sort object keys"),i.$set(Zt),(!Ut||1&_n&&z!==(z=Zs(Hn[0])?"(document root)":yu(Hn[0]))&&D.value!==z)&&(D.value=z),Hn[3]&&(Hn[5]&&(null===(Xt=Hn[5])||void 0===Xt?void 0:Xt.length)>1||void 0===Hn[1])?et?(et.p(Hn,_n),42&_n&&Me(et,1)):((et=yre(Hn)).c(),Me(et,1),et.m(m,W)):et&&(si(),je(et,1,1,function(){et=null}),oi());var wi={};!lt&&4&_n&&(lt=!0,wi.value=Hn[2],Q2(function(){return lt=!1})),Ye.$set(wi),Hn[4]?sn?sn.p(Hn,_n):((sn=Cre(Hn)).c(),sn.m(Nt,null)):sn&&(sn.d(1),sn=null),(!Ut||42&_n&&ut!==(ut=!!(Hn[3]&&Hn[5]&&(null===(An=Hn[5])||void 0===An?void 0:An.length)>1)&&!Hn[1]))&&(wt.disabled=ut)},i:function(Hn){Ut||(Me(i.$$.fragment,Hn),Me(et),Me(Ye.$$.fragment,Hn),Ut=!0)},o:function(Hn){je(i.$$.fragment,Hn),je(et),je(Ye.$$.fragment,Hn),Ut=!1},d:function(Hn){Hn&&At(n),Rn(i),et&&et.d(),Rn(Ye),sn&&sn.d(),$t=!1,ma(Lt)}}}function RBe(t){t.focus()}function NBe(t,e,n){var i,r,s,a,u,d=v1("jsoneditor:SortModal"),m=e.id,_=e.json,y=e.rootPath,x=e.onSort,S=V1("simple-modal").close,D="".concat(m,":").concat(de(y)),z=nt(_,y),$={value:1,label:"ascending"},W=[$,{value:-1,label:"descending"}],re=null===(i=w7[D])||void 0===i?void 0:i.selectedProperty,se=(null===(r=w7[D])||void 0===r?void 0:r.selectedDirection)||$,ke=void 0;return t.$$set=function(ye){"id"in ye&&n(9,m=ye.id),"json"in ye&&n(10,_=ye.json),"rootPath"in ye&&n(0,y=ye.rootPath),"onSort"in ye&&n(11,x=ye.onSort)},t.$$.update=function(){8&t.$$.dirty&&n(13,a=s&&void 0!==z?ML(z):void 0),8192&t.$$.dirty&&n(5,u=a?a.map(_b):void 0),4102&t.$$.dirty&&(n(12,w7[D]={selectedProperty:re,selectedDirection:se},w7),d("store state in memory",D,w7[D]))},n(3,s=Array.isArray(z)),[y,re,se,s,ke,u,S,W,function(){try{var ye,Ye,lt;n(4,ke=void 0);var Vt=(null===(ye=re)||void 0===ye?void 0:ye.value)||(null===(Ye=u)||void 0===Ye||null===(Ye=Ye[0])||void 0===Ye?void 0:Ye.value)||[],Nt=null===(lt=se)||void 0===lt?void 0:lt.value,kt=Eie(_,y,Vt,Nt);x({operations:kt,rootPath:y,itemPath:Vt,direction:Nt}),S()}catch(qt){n(4,ke=String(qt))}},m,_,x,w7,a,function(ye){n(1,re=ye)},function(ye){n(2,se=ye)}]}var PBe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,NBe,zBe,gs,{id:9,json:10,rootPath:0,onSort:11},LBe),i}return br(e,Cr),pr(e)}();function M4(){}function cE(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t<.9*e)return t.toFixed()+" B";var n=t/e;if(n<.9*e)return n.toFixed(1)+" KB";var i=n/e;if(i<.9*e)return i.toFixed(1)+" MB";var r=i/e;return r<.9*e?r.toFixed(1)+" GB":(r/e).toFixed(1)+" TB"}function jBe(t){var e,n;return e=new rE({props:{items:t[0]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&ds(r,1)[0]&&(s.items=i[0]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function FBe(t,e,n){var i,r,s=e.readOnly,a=void 0!==s&&s,u=e.onFormat,d=e.onCompact,m=e.onSort,_=e.onTransform,y=e.onToggleSearch,x=e.onUndo,S=e.onRedo,D=e.canUndo,z=e.canRedo,$=e.canFormat,W=e.canCompact,re=e.canSort,se=e.canTransform,ke=e.onRenderMenu,ye={type:"button",icon:m_,title:"Search (Ctrl+F)",className:"jse-search",onClick:y};return t.$$set=function(Ye){"readOnly"in Ye&&n(1,a=Ye.readOnly),"onFormat"in Ye&&n(2,u=Ye.onFormat),"onCompact"in Ye&&n(3,d=Ye.onCompact),"onSort"in Ye&&n(4,m=Ye.onSort),"onTransform"in Ye&&n(5,_=Ye.onTransform),"onToggleSearch"in Ye&&n(6,y=Ye.onToggleSearch),"onUndo"in Ye&&n(7,x=Ye.onUndo),"onRedo"in Ye&&n(8,S=Ye.onRedo),"canUndo"in Ye&&n(9,D=Ye.canUndo),"canRedo"in Ye&&n(10,z=Ye.canRedo),"canFormat"in Ye&&n(11,$=Ye.canFormat),"canCompact"in Ye&&n(12,W=Ye.canCompact),"canSort"in Ye&&n(13,re=Ye.canSort),"canTransform"in Ye&&n(14,se=Ye.canTransform),"onRenderMenu"in Ye&&n(15,ke=Ye.onRenderMenu)},t.$$.update=function(){32702&t.$$.dirty&&n(16,r=a?[ye,{type:"space"}]:[{type:"button",icon:uz,title:"Format JSON: add proper indentation and new lines (Ctrl+I)",className:"jse-format",onClick:u,disabled:a||!$},{type:"button",icon:Kje,title:"Compact JSON: remove all white spacing and new lines (Ctrl+Shift+I)",className:"jse-compact",onClick:d,disabled:a||!W},{type:"separator"},{type:"button",icon:p_,title:"Sort",className:"jse-sort",onClick:m,disabled:a||!re},{type:"button",icon:u_,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:_,disabled:a||!se},ye,{type:"separator"},{type:"button",icon:LM,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:x,disabled:!D},{type:"button",icon:HM,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:S,disabled:!z},{type:"space"}]),98304&t.$$.dirty&&n(0,i=ke(r)||r)},[i,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,r]}var BBe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,FBe,jBe,gs,{readOnly:1,onFormat:2,onCompact:3,onSort:4,onTransform:5,onToggleSearch:6,onUndo:7,onRedo:8,canUndo:9,canRedo:10,canFormat:11,canCompact:12,canSort:13,canTransform:14,onRenderMenu:15}),i}return br(e,Cr),pr(e)}();function $Be(t){as(t,"svelte-hhcn0f",'.jse-status-bar.svelte-hhcn0f.svelte-hhcn0f{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);margin:0;border-top:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7));border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7);display:flex;gap:var(--jse-padding, 10px)}.jse-status-bar.svelte-hhcn0f.svelte-hhcn0f:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-status-bar.svelte-hhcn0f .jse-status-bar-info.svelte-hhcn0f{padding:2px}')}function xre(t){var e,n,i;return{c:function(){e=pt("div"),n=Ii("Line: "),i=Ii(t[0]),ce(e,"class","jse-status-bar-info svelte-hhcn0f")},m:function(r,s){Ht(r,e,s),Ge(e,n),Ge(e,i)},p:function(r,s){1&s&&Ir(i,r[0])},d:function(r){r&&At(e)}}}function wre(t){var e,n,i;return{c:function(){e=pt("div"),n=Ii("Column: "),i=Ii(t[1]),ce(e,"class","jse-status-bar-info svelte-hhcn0f")},m:function(r,s){Ht(r,e,s),Ge(e,n),Ge(e,i)},p:function(r,s){2&s&&Ir(i,r[1])},d:function(r){r&&At(e)}}}function Mre(t){var e,n,i,r;return{c:function(){e=pt("div"),n=Ii("Selection: "),i=Ii(t[2]),r=Ii(" characters"),ce(e,"class","jse-status-bar-info svelte-hhcn0f")},m:function(s,a){Ht(s,e,a),Ge(e,n),Ge(e,i),Ge(e,r)},p:function(s,a){4&a&&Ir(i,s[2])},d:function(s){s&&At(e)}}}function UBe(t){var e,n,i,r=void 0!==t[0]&&xre(t),s=void 0!==t[1]&&wre(t),a=void 0!==t[2]&&t[2]>0&&Mre(t);return{c:function(){e=pt("div"),r&&r.c(),n=gn(),s&&s.c(),i=gn(),a&&a.c(),ce(e,"class","jse-status-bar svelte-hhcn0f")},m:function(u,d){Ht(u,e,d),r&&r.m(e,null),Ge(e,n),s&&s.m(e,null),Ge(e,i),a&&a.m(e,null)},p:function(u,d){var m=ds(d,1)[0];void 0!==u[0]?r?r.p(u,m):((r=xre(u)).c(),r.m(e,n)):r&&(r.d(1),r=null),void 0!==u[1]?s?s.p(u,m):((s=wre(u)).c(),s.m(e,i)):s&&(s.d(1),s=null),void 0!==u[2]&&u[2]>0?a?a.p(u,m):((a=Mre(u)).c(),a.m(e,null)):a&&(a.d(1),a=null)},i:hi,o:hi,d:function(u){u&&At(e),r&&r.d(),s&&s.d(),a&&a.d()}}}function GBe(t,e,n){var i,r,s,a,u,d=e.editorState;return t.$$set=function(m){"editorState"in m&&n(3,d=m.editorState)},t.$$.update=function(){var m,_,y;8&t.$$.dirty&&n(4,i=null===(m=d)||void 0===m||null===(m=m.selection)||void 0===m||null===(m=m.main)||void 0===m?void 0:m.head),24&t.$$.dirty&&n(5,r=void 0!==i?null===(_=d)||void 0===_||null===(_=_.doc)||void 0===_?void 0:_.lineAt(i):void 0),32&t.$$.dirty&&n(0,s=void 0!==r?r.number:void 0),48&t.$$.dirty&&n(1,a=void 0!==r&&void 0!==i?i-r.from+1:void 0),8&t.$$.dirty&&n(2,u=null===(y=d)||void 0===y||null===(y=y.selection)||void 0===y||null===(y=y.ranges)||void 0===y?void 0:y.reduce(function(x,S){return x+S.to-S.from},0))},[s,a,u,d,i,r]}var WBe=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,GBe,UBe,n1,{editorState:3},$Be),i}return br(e,Cr),pr(e)}(),Cz=Z_.define([{tag:Pi.propertyName,color:"var(--internal-key-color)"},{tag:Pi.number,color:"var(--internal-value-color-number)"},{tag:Pi.bool,color:"var(--internal-value-color-boolean)"},{tag:Pi.string,color:"var(--internal-value-color-string)"},{tag:Pi.keyword,color:"var(--internal-value-color-null)"}]),qBe=TQ(Cz),XBe=Cz.style;function KBe(t){as(t,"svelte-a0poeb",'.jse-text-mode.svelte-a0poeb.svelte-a0poeb{--internal-key-color:var(--jse-key-color, #1a1a1a);--internal-value-color-number:var(--jse-value-color-number, #ee422e);--internal-value-color-boolean:var(--jse-value-color-boolean, #ff8c00);--internal-value-color-string:var(--jse-value-color-string, #008000);--internal-value-color-null:var(--jse-value-color-null, #004ed0);flex:1;box-sizing:border-box;display:flex;flex-direction:column;background:var(--jse-background-color, #fff)}.jse-text-mode.no-main-menu.svelte-a0poeb.svelte-a0poeb{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb{flex:1;display:flex;position:relative;flex-direction:column;overflow:hidden;min-width:0;min-height:0;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-text-mode.svelte-a0poeb .jse-contents.jse-hidden.svelte-a0poeb{visibility:hidden;position:absolute;top:0;left:0}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor{flex:1;overflow:hidden}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-scroller{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);line-height:var(--jse-line-height, calc(1em + 4px));color:var(--jse-delimiter-color, rgba(0, 0, 0, 0.38))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-gutters{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color-readonly, #b2b2b2);border-right:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-activeLine,.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-activeLineGutter{background:var(--jse-active-line-background-color, rgba(0, 0, 0, 0.06))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-selectionBackground{background:var(--jse-selection-background-color, #d3d3d3)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-searchMatch{background-color:var(--jse-search-match-color, #ffe665);outline:var(--jse-search-match-outline, 1px solid #ffd700)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-searchMatch.cm-searchMatch-selected{background-color:var(--jse-search-match-active-color, #ffd700);outline:var(--jse-search-match-active-outline, 1px solid #e1be00)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-selectionMatch{background-color:var(--jse-search-match-background-color, rgba(153, 255, 119, 0.5019607843))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-foldPlaceholder{background:var(--jse-tag-background, rgba(0, 0, 0, 0.2));color:var(--jse-tag-color, var(--jse-text-color-inverse, #fff));border:none;padding:0 var(--jse-padding, 10px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-tooltip{font-size:var(--jse-font-size, 16px);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);color:var(--jse-tooltip-color, var(--jse-text-color, #4d4d4d));background:var(--jse-tooltip-background, var(--jse-modal-background, #f5f5f5));border:var(--jse-tooltip-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-diagnosticAction{background:var(--jse-tooltip-action-button-color, var(--jse-text-color-inverse, #fff));background:var(--jse-tooltip-action-button-background, #4d4d4d)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-panels{border-bottom:var(--jse-panel-border, var(--jse-main-border, 1px solid #d7d7d7))}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search{background:var(--jse-panel-background, #ebebeb);color:var(--jse-panel-color, var(--jse-text-color, #4d4d4d));font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search input{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);color:var(--jse-input-color, var(--jse-text-color, #4d4d4d));border:var(--jse-input-border, 1px solid #d8dbdf);background:var(--jse-input-background, var(--jse-background-color, #fff));margin-right:2px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);color:var(--jse-panel-button-color, inherit);background:var(--jse-panel-button-background, transparent);border:none;cursor:pointer;text-transform:capitalize;padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px);margin:0}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button:hover{color:var(--panel-button-color-highlight, var(--jse-text-color, #4d4d4d));background:var(--jse-panel-button-background-highlight, #e0e0e0)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search label{font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size-text-mode-search, 80%);padding-left:var(--jse-padding, 10px)}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search label input{margin-right:2px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-search button[name="close"]{width:32px;height:32px;font-size:24px;line-height:24px;padding:0;right:0;top:-4px}.jse-text-mode.svelte-a0poeb .jse-contents.svelte-a0poeb .cm-editor .cm-cursor-primary{border-color:var(--jse-text-color, #4d4d4d)}.jse-text-mode.svelte-a0poeb .jse-contents .jse-loading-space.svelte-a0poeb{flex:1}.jse-text-mode.svelte-a0poeb .jse-contents .jse-loading.svelte-a0poeb{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-text-mode.svelte-a0poeb .jse-contents.jse-preview.svelte-a0poeb{flex:1;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-panel-color-readonly, #b2b2b2);overflow:auto;white-space:pre-wrap;word-break:break-word;padding:2px}')}function xz(t){var e=t.slice();return e[100]=0===e[11].length,e}function Sre(t){var e,n;return e=new BBe({props:{readOnly:t[1],onFormat:t[17],onCompact:t[18],onSort:t[19],onTransform:t[20],onToggleSearch:t[21],onUndo:t[22],onRedo:t[23],canFormat:!t[100],canCompact:!t[100],canSort:!t[100],canTransform:!t[100],canUndo:t[12],canRedo:t[13],onRenderMenu:t[4]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};2&r[0]&&(s.readOnly=i[1]),2048&r[0]&&(s.canFormat=!i[100]),2048&r[0]&&(s.canCompact=!i[100]),2048&r[0]&&(s.canSort=!i[100]),2048&r[0]&&(s.canTransform=!i[100]),4096&r[0]&&(s.canUndo=i[12]),8192&r[0]&&(s.canRedo=i[13]),16&r[0]&&(s.onRenderMenu=i[4]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function YBe(t){var e;return{c:function(){(e=pt("div")).innerHTML='
loading...
',ce(e,"class","jse-contents svelte-a0poeb")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function QBe(t){var e,n,i,r,s,a=t[99]&&kre(t),u=!t[99]&&Ere(t);return{c:function(){e=pt("div"),n=gn(),a&&a.c(),i=gn(),u&&u.c(),r=ho(),ce(e,"class","jse-contents svelte-a0poeb"),$n(e,"jse-hidden",t[99])},m:function(d,m){Ht(d,e,m),t[53](e),Ht(d,n,m),a&&a.m(d,m),Ht(d,i,m),u&&u.m(d,m),Ht(d,r,m),s=!0},p:function(d,m){(!s||268438016&m[0])&&$n(e,"jse-hidden",d[99]),d[99]?a?(a.p(d,m),2560&m[0]&&Me(a,1)):((a=kre(d)).c(),Me(a,1),a.m(i.parentNode,i)):a&&(si(),je(a,1,1,function(){a=null}),oi()),d[99]?u&&(si(),je(u,1,1,function(){u=null}),oi()):u?(u.p(d,m),2560&m[0]&&Me(u,1)):((u=Ere(d)).c(),Me(u,1),u.m(r.parentNode,r))},i:function(d){s||(Me(a),Me(u),s=!0)},o:function(d){je(a),je(u),s=!1},d:function(d){d&&(At(e),At(n),At(i),At(r)),t[53](null),a&&a.d(d),u&&u.d(d)}}}function kre(t){var e,n,i,r,s,a=T0(t[11]||"",mL)+"";return e=new w4({props:{icon:bh,type:"error",message:"The JSON document is larger than ".concat(cE(gL,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(cE(t[11].length,1024),"."),actions:[{text:"Open anyway",title:"Open the document in text mode. This may freeze or crash your browser.",onClick:t[24]},{text:"Open in tree mode",title:"Open the document in tree mode. Tree mode can handle large documents.",onClick:t[25]},{text:"Cancel",title:"Cancel opening this large document.",onClick:t[26]}],onClose:t[5]}}),{c:function(){Nn(e.$$.fragment),n=gn(),i=pt("div"),r=Ii(a),ce(i,"class","jse-contents jse-preview svelte-a0poeb")},m:function(u,d){zn(e,u,d),Ht(u,n,d),Ht(u,i,d),Ge(i,r),s=!0},p:function(u,d){var m={};2048&d[0]&&(m.message="The JSON document is larger than ".concat(cE(gL,1024),", ")+"and may crash your browser when loading it in text mode. Actual size: ".concat(cE(u[11].length,1024),".")),e.$set(m),(!s||2048&d[0])&&a!==(a=T0(u[11]||"",mL)+"")&&Ir(r,a)},i:function(u){s||(Me(e.$$.fragment,u),s=!0)},o:function(u){je(e.$$.fragment,u),s=!1},d:function(u){u&&(At(n),At(i)),Rn(e,u)}}}function Ere(t){var e,n,i,r,s,a=!t[14]&&t[0]&&Dee(t[11]),u=t[3]&&Dre(t),d=t[14]&&Tre(t),m=a&&Vre(t);return r=new oz({props:{validationErrors:t[10],selectError:t[27]}}),{c:function(){u&&u.c(),e=gn(),d&&d.c(),n=gn(),m&&m.c(),i=gn(),Nn(r.$$.fragment)},m:function(_,y){u&&u.m(_,y),Ht(_,e,y),d&&d.m(_,y),Ht(_,n,y),m&&m.m(_,y),Ht(_,i,y),zn(r,_,y),s=!0},p:function(_,y){_[3]?u?(u.p(_,y),8&y[0]&&Me(u,1)):((u=Dre(_)).c(),Me(u,1),u.m(e.parentNode,e)):u&&(si(),je(u,1,1,function(){u=null}),oi()),_[14]?d?(d.p(_,y),16384&y[0]&&Me(d,1)):((d=Tre(_)).c(),Me(d,1),d.m(n.parentNode,n)):d&&(si(),je(d,1,1,function(){d=null}),oi()),18433&y[0]&&(a=!_[14]&&_[0]&&Dee(_[11])),a?m?(m.p(_,y),18433&y[0]&&Me(m,1)):((m=Vre(_)).c(),Me(m,1),m.m(i.parentNode,i)):m&&(si(),je(m,1,1,function(){m=null}),oi());var x={};1024&y[0]&&(x.validationErrors=_[10]),r.$set(x)},i:function(_){s||(Me(u),Me(d),Me(m),Me(r.$$.fragment,_),s=!0)},o:function(_){je(u),je(d),je(m),je(r.$$.fragment,_),s=!1},d:function(_){_&&(At(e),At(n),At(i)),u&&u.d(_),d&&d.d(_),m&&m.d(_),Rn(r,_)}}}function Dre(t){var e,n;return e=new WBe({props:{editorState:t[8]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};256&r[0]&&(s.editorState=i[8]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Tre(t){var e,n;return e=new w4({props:{type:"error",icon:bh,message:t[14].message,actions:t[15],onClick:t[29],onClose:t[5]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};16384&r[0]&&(s.message=i[14].message),32768&r[0]&&(s.actions=i[15]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function Vre(t){var e,n;return e=new w4({props:{type:"success",message:"Do you want to format the JSON?",actions:[{icon:uz,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:t[17]},{icon:M5,text:"No thanks",title:"Close this message",onClick:t[54]}],onClose:t[5]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&r[0]&&(s.actions=[{icon:uz,text:"Format",title:"Format JSON: add proper indentation and new lines (Ctrl+I)",onClick:i[17]},{icon:M5,text:"No thanks",title:"Close this message",onClick:i[54]}]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function JBe(t){var e,n,i,r,s,a=t[2]&&Sre(xz(t)),d=[];function m(_,y){return 0===y?(D=(S=_.slice())[28](S[11],S[9]),S[99]=D,S):_;var S,D}return r=d[i=t[16]?1:0]=[QBe,YBe][i](m(t,i)),{c:function(){e=pt("div"),a&&a.c(),n=gn(),r.c(),ce(e,"class","jse-text-mode svelte-a0poeb"),$n(e,"no-main-menu",!t[2])},m:function(_,y){Ht(_,e,y),a&&a.m(e,null),Ge(e,n),d[i].m(e,null),t[55](e),s=!0},p:function(_,y){_[2]?a?(a.p(xz(_),y),4&y[0]&&Me(a,1)):((a=Sre(xz(_))).c(),Me(a,1),a.m(e,n)):a&&(si(),je(a,1,1,function(){a=null}),oi()),r.p(m(_,i),y),(!s||4&y[0])&&$n(e,"no-main-menu",!_[2])},i:function(_){s||(Me(a),Me(r),s=!0)},o:function(_){je(a),je(r),s=!1},d:function(_){_&&At(e),a&&a.d(),d[i].d(),t[55](null)}}}function Are(t){return{from:t.from||0,to:t.to||0,message:t.message||"",actions:t.actions,severity:t.severity}}function ZBe(t,e,n){var i,r,s,a,u,d,m=e.readOnly,_=e.mainMenuBar,y=e.statusBar,x=e.askToFormat,S=e.externalContent,D=e.externalSelection,z=e.indentation,$=e.tabSize,W=e.escapeUnicodeCharacters,re=e.parser,se=e.validator,ke=e.validationParser,ye=e.onChange,Ye=e.onChangeMode,lt=e.onSelect,Vt=e.onError,Nt=e.onFocus,kt=e.onBlur,qt=e.onRenderMenu,wt=e.onSortModal,Dt=e.onTransformModal,ut=v1("jsoneditor:TextMode"),Ut={key:"Mod-i",run:va,shift:Qo,preventDefault:!0},$t=typeof window>"u";ut("isSSR:",$t);var Lt=!1,et=[],st=new _0,gt=new _0,sn=new _0,Hn=new _0,on=new _0,Xt=S,An=kL(Xt,z,re),_n=W;Hd(es(gi().mark(function Tn(){return gi().wrap(function(Fi){for(;;)switch(Fi.prev=Fi.next){case 0:if(!$t){Fi.next=2;break}return Fi.abrupt("return");case 2:try{u=qi({target:s,initialText:O1(An,Lt)?"":i.escapeValue(An),readOnly:m,indentation:z})}catch(ss){console.error(ss)}case 3:case"end":return Fi.stop()}},Tn)}))),Zu(function(){u&&(ut("Destroy CodeMirror editor"),u.destroy())});var Zt=!1,wi=!1,zi=vh(),Zn=vh();function En(){u&&(ut("focus"),u.focus())}var Nr=!1;function Pr(Tn,Fi){ut("handlePatch",Tn,Fi);var ss=re.parse(An),Fo=xe(ss,Tn),Xs=Tr(ss,Tn);return xa({text:re.stringify(Fo,null,z)},Fi,!1),{json:Fo,previousJson:ss,undo:Xs,redo:Tn}}function va(){if(ut("format"),m)return!1;try{var Tn=re.parse(An);return xa({text:re.stringify(Tn,null,z)},!0,!1),!0}catch(Fi){Vt(Fi)}return!1}function Qo(){if(ut("compact"),m)return!1;try{var Tn=re.parse(An);return xa({text:re.stringify(Tn)},!0,!1),!0}catch(Fi){Vt(Fi)}return!1}function fn(){if(ut("repair"),!m)try{xa({text:na(An)},!0,!1),n(52,Wl=yL),n(14,bs=null)}catch(Tn){Vt(Tn)}}function Yr(Tn){var Fi=Tn.id,ss=Tn.rootPath,Fo=Tn.onTransform,Xs=Tn.onClose;try{var Dn=re.parse(An);Nr=!0,Dt({id:Fi||Zn,json:Dn,rootPath:ss||[],onTransform:function(ji){Fo?Fo({operations:ji,json:Dn,transformedJson:xe(Dn,ji)}):(ut("onTransform",ji),Pr(ji,!0))},onClose:function(){Nr=!1,En(),Xs&&Xs()}})}catch(ji){Vt(ji)}}function sa(Tn,Fi){ut("setSelection",{anchor:Tn,head:Fi}),u&&u.dispatch(u.state.update({selection:{anchor:Tn,head:Fi},scrollIntoView:!0}))}function oa(Tn,Fi){if(1===Fi.state.selection.ranges.length){var ss=Fi.state.selection.ranges[0],Fo=An.slice(ss.from,ss.to);if("{"===Fo||"["===Fo){var Xs=Mt.parse(An),Dn=Object.keys(Xs.pointers).find(function(Yi){var Bn;return(null===(Bn=Xs.pointers[Yi].value)||void 0===Bn?void 0:Bn.pos)===ss.from}),ji=Xs.pointers[Dn];Dn&&ji&&ji.value&&ji.valueEnd&&(ut("pointer found, selecting inner contents of path:",Dn,ji),sa(ji.value.pos+1,ji.valueEnd.pos-1))}}}function Jo(){return function YOe(t,e={}){return[Lp.of({source:t,config:e}),zJ,$J]}(Jc,{delay:300})}function qi(Tn){var Fi=Tn.target,ss=Tn.initialText,Fo=Tn.readOnly,Xs=Tn.indentation;ut("Create CodeMirror editor",{readOnly:Fo,indentation:Xs});var Dn=W1.create({doc:ss,selection:Mi(D,ss)?I1(D):void 0,extensions:[R_.of([BOe,Ut]),st.of(Jo()),sHe(),aAe(),lAe,TVe(),jIe(),oIe(),bVe(),[P_,wVe],W1.allowMultipleSelections.of(!0),W1.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,r=n.lineAt(i);if(i>r.from+200)return t;let s=n.sliceString(r.from,i);if(!e.some(m=>m.test(s)))return t;let{state:a}=t,u=-1,d=[];for(let{head:m}of a.selection.ranges){let _=a.doc.lineAt(m);if(_.from==u)continue;u=_.from;let y=RS(a,_.from);if(null==y)continue;let x=/^\s*/.exec(_.text)[0],S=P5(a,y);x!=S&&d.push({from:_.from,to:_.from+x.length,insert:S})}return d.length?[t,{changes:d,sequential:!0}]:t}),TQ(uIe,{fallback:!0}),gIe(),[HLe,SZ],BLe(),BVe(),GVe(),RVe,MHe(),R_.of([].concat(Ts(LLe),Ts(FOe),Ts(UHe),Ts(QIe),Ts(nIe),Ts(AZ),Ts(KOe))),qBe,KLe({hideFirstIndent:!0}),ps.domEventHandlers({dblclick:oa}),ps.updateListener.of(function(ji){n(8,d=ji.state),ji.docChanged?Tl():ji.selectionSet&&Z2()}),new RAe(_He),OHe({top:!0}),ps.lineWrapping,gt.of(W1.readOnly.of(Fo)),Hn.of(W1.tabSize.of($)),sn.of(Ul(Xs)),on.of(ps.theme({},{dark:$s()}))]});return u=new ps({state:Dn,parent:Fi})}function $s(){return!!s&&getComputedStyle(s).getPropertyValue("--jse-theme").includes("dark")}function Mi(Tn,Fi){return!!UL(Tn)&&Tn.ranges.every(function(ss){return ss.anchor0),n(13,wi=UIe(u.state)>0),ut({canUndo:Zt,canRedo:wi})}Zu(function(){Oa()}),sz({onMount:Hd,onDestroy:Zu,getWindow:function(){return c7(a)},hasFocus:function(){return Nr&&document.hasFocus()||TL(a)},onFocus:Nt,onBlur:function(){Oa(),kt()}});var Tl=u0(s1,300);function Oa(){Tl.flush()}function Gl(Tn,Fi){ye&&ye(Tn,Fi,{contentErrors:Gc(),patchResult:null})}function Z2(){lt(yn({type:Wa.text},d.selection.toJSON()))}function O1(Tn,Fi){return!!Tn&&Tn.length>gL&&!Fi}var Wl=yL,bs=null;function Jc(){if(O1(An,Lt))return[];var Tn=Gc();return zne(Tn)?[Are(tc(Tn.parseError,Tn.isRepairable))]:function VPe(t){return ga(t)&&Array.isArray(t.validationErrors)}(Tn)?Tn.validationErrors.map(Or).map(Are):[]}function Gc(){ut("validate:start"),Oa();var Tn=J1(i.escapeValue(An),se,re,ke);return zne(Tn)?(n(52,Wl=Tn.isRepairable?pee:"invalid"),n(14,bs=Tn.parseError),n(10,et=[])):(n(52,Wl=yL),n(14,bs=null),n(10,et=Tn?.validationErrors||[])),ut("validate:end"),Tn}var J1=b_(pPe);function o1(){bs&&function(Tn){ut("select parse error",Tn);var Fi=tc(Tn,!1);sa(null!=Fi.from?Fi.from:0,null!=Fi.to?Fi.to:0),En()}(bs)}var a1={icon:VU,text:"Show me",title:"Move to the parse error location",onClick:o1};return t.$$set=function(Tn){"readOnly"in Tn&&n(1,m=Tn.readOnly),"mainMenuBar"in Tn&&n(2,_=Tn.mainMenuBar),"statusBar"in Tn&&n(3,y=Tn.statusBar),"askToFormat"in Tn&&n(0,x=Tn.askToFormat),"externalContent"in Tn&&n(30,S=Tn.externalContent),"externalSelection"in Tn&&n(31,D=Tn.externalSelection),"indentation"in Tn&&n(32,z=Tn.indentation),"tabSize"in Tn&&n(33,$=Tn.tabSize),"escapeUnicodeCharacters"in Tn&&n(34,W=Tn.escapeUnicodeCharacters),"parser"in Tn&&n(35,re=Tn.parser),"validator"in Tn&&n(36,se=Tn.validator),"validationParser"in Tn&&n(37,ke=Tn.validationParser),"onChange"in Tn&&n(38,ye=Tn.onChange),"onChangeMode"in Tn&&n(39,Ye=Tn.onChangeMode),"onSelect"in Tn&&n(40,lt=Tn.onSelect),"onError"in Tn&&n(41,Vt=Tn.onError),"onFocus"in Tn&&n(42,Nt=Tn.onFocus),"onBlur"in Tn&&n(43,kt=Tn.onBlur),"onRenderMenu"in Tn&&n(4,qt=Tn.onRenderMenu),"onSortModal"in Tn&&n(44,wt=Tn.onSortModal),"onTransformModal"in Tn&&n(45,Dt=Tn.onTransformModal)},t.$$.update=function(){var Tn;8&t.$$.dirty[1]&&(i=EL({escapeControlCharacters:!1,escapeUnicodeCharacters:W})),1073741824&t.$$.dirty[0]&&xa(S,!1,!1),1&t.$$.dirty[1]&&function(Tn){if(UL(Tn)){var Fi=I1(Tn);!u||!Fi||d&&d.selection.eq(Fi)||(ut("applyExternalSelection",Fi),u.dispatch({selection:Fi}))}}(D),32&t.$$.dirty[1]&&(ut("updateLinter",se),u&&u.dispatch({effects:st.reconfigure(Jo())})),2&t.$$.dirty[1]&&(Tn=z,u&&(ut("updateIndentation",Tn),u.dispatch({effects:sn.reconfigure(Ul(Tn))}))),4&t.$$.dirty[1]&&function(Tn){u&&(ut("updateTabSize",Tn),u.dispatch({effects:Hn.reconfigure(W1.tabSize.of(Tn))}))}($),2&t.$$.dirty[0]&&function(Tn){u&&(ut("updateReadOnly",Tn),u.dispatch({effects:[gt.reconfigure(W1.readOnly.of(Tn))]}))}(m),1048584&t.$$.dirty[1]&&_n!==W&&(n(51,_n=W),ut("forceUpdateText",{escapeUnicodeCharacters:W}),u&&u.dispatch({changes:{from:0,to:u.state.doc.length,insert:i.escapeValue(An)}})),2&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&n(15,r=Wl!==pee||m?[a1]:[{icon:d_,text:"Auto repair",title:"Automatically repair JSON",onClick:fn},a1])},[x,m,_,y,qt,En,s,a,d,Lt,et,An,Zt,wi,bs,r,$t,va,Qo,function(){var Tn;if(!m)try{var Fi=re.parse(An);Nr=!0,wt({id:zi,json:Fi,rootPath:[],onSort:(Tn=es(gi().mark(function ss(Fo){var Xs;return gi().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:ut("onSort",Xs=Fo.operations),Pr(Xs,!0);case 3:case"end":return Dn.stop()}},ss)})),function(ss){return Tn.apply(this,arguments)}),onClose:function(){Nr=!1,En()}})}catch(ss){Vt(ss)}},function(){m||Yr({rootPath:[]})},function(){u&&(s&&s.querySelector(".cm-search")?UH(u):$H(u))},function(){m||u&&(SH(u),En())},function(){m||u&&(FS(u),En())},function(){n(9,Lt=!0),xa(S,!0,!0)},function(){Ye(A1.tree)},function(){s1()},function(Tn){ut("select validation error",Tn);var Fi=Or(Tn),ss=Fi.from,Fo=Fi.to;null!==ss&&null!==Fo&&(sa(ss,Fo),En())},O1,o1,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,kt,wt,Dt,function(Tn){return Pr(Tn,!1)},Pr,Yr,function(){return r1.apply(this,arguments)},Gc,_n,Wl,function(Tn){Vs[Tn?"unshift":"push"](function(){n(6,s=Tn)})},function(){return n(0,x=!1)},function(Tn){Vs[Tn?"unshift":"push"](function(){n(7,a=Tn)})}]}Cz.style=function(t){return XBe(t||[])};var e$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,ZBe,JBe,gs,{readOnly:1,mainMenuBar:2,statusBar:3,askToFormat:0,externalContent:30,externalSelection:31,indentation:32,tabSize:33,escapeUnicodeCharacters:34,parser:35,validator:36,validationParser:37,onChange:38,onChangeMode:39,onSelect:40,onError:41,onFocus:42,onBlur:43,onRenderMenu:4,onSortModal:44,onTransformModal:45,focus:5,patch:46,handlePatch:47,openTransformModal:48,refresh:49,validate:50},KBe,[-1,-1,-1,-1]),i}return br(e,Cr),pr(e,[{key:"focus",get:function(){return this.$$.ctx[5]}},{key:"patch",get:function(){return this.$$.ctx[46]}},{key:"handlePatch",get:function(){return this.$$.ctx[47]}},{key:"openTransformModal",get:function(){return this.$$.ctx[48]}},{key:"refresh",get:function(){return this.$$.ctx[49]}},{key:"validate",get:function(){return this.$$.ctx[50]}}])}();function t$e(t){var e,n;return e=new rE({props:{items:t[0]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};1&ds(r,1)[0]&&(s.items=i[0]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function n$e(t,e,n){var i,r,s=e.containsValidArray,a=e.readOnly,u=e.showSearch,d=void 0!==u&&u,m=e.historyState,_=e.onSort,y=e.onTransform,x=e.onContextMenu,S=e.onUndo,D=e.onRedo,z=e.onRenderMenu;function $(){n(1,d=!d)}return t.$$set=function(W){"containsValidArray"in W&&n(2,s=W.containsValidArray),"readOnly"in W&&n(3,a=W.readOnly),"showSearch"in W&&n(1,d=W.showSearch),"historyState"in W&&n(4,m=W.historyState),"onSort"in W&&n(5,_=W.onSort),"onTransform"in W&&n(6,y=W.onTransform),"onContextMenu"in W&&n(7,x=W.onContextMenu),"onUndo"in W&&n(8,S=W.onUndo),"onRedo"in W&&n(9,D=W.onRedo),"onRenderMenu"in W&&n(10,z=W.onRenderMenu)},t.$$.update=function(){1020&t.$$.dirty&&n(11,i=a?[{type:"space"}]:[{type:"button",icon:p_,title:"Sort",className:"jse-sort",onClick:_,disabled:a||!s},{type:"button",icon:u_,title:"Transform contents (filter, sort, project)",className:"jse-transform",onClick:y,disabled:a||!s},{type:"button",icon:m_,title:"Search (Ctrl+F)",className:"jse-search",onClick:$,disabled:!s},{type:"button",icon:SI,title:_L,className:"jse-contextmenu",onClick:x},{type:"separator"},{type:"button",icon:LM,title:"Undo (Ctrl+Z)",className:"jse-undo",onClick:S,disabled:!m.canUndo},{type:"button",icon:HM,title:"Redo (Ctrl+Shift+Z)",className:"jse-redo",onClick:D,disabled:!m.canRedo},{type:"space"}]),3072&t.$$.dirty&&n(0,r=z(i))},[r,d,s,a,m,_,y,x,S,D,z,i]}var i$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,n$e,t$e,gs,{containsValidArray:2,readOnly:3,showSearch:1,historyState:4,onSort:5,onTransform:6,onContextMenu:7,onUndo:8,onRedo:9,onRenderMenu:10}),i}return br(e,Cr),pr(e)}();function Ire(t,e,n){var i=t.slice();return i[9]=e[n],i}function r$e(t){var e,n,i=t[9].component,r=Ore(t);return{c:function(){r.c(),e=ho()},m:function(s,a){r.m(s,a),Ht(s,e,a),n=!0},p:function(s,a){1&a&&gs(i,i=s[9].component)?(si(),je(r,1,1,hi),oi(),(r=Ore(s)).c(),Me(r,1),r.m(e.parentNode,e)):r.p(s,a)},i:function(s){n||(Me(r),n=!0)},o:function(s){je(r),n=!1},d:function(s){s&&At(e),r.d(s)}}}function s$e(t){var e,n=t[9].action,i=Hre(t);return{c:function(){i.c(),e=ho()},m:function(r,s){i.m(r,s),Ht(r,e,s)},p:function(r,s){1&s&&gs(n,n=r[9].action)?(i.d(1),(i=Hre(r)).c(),i.m(e.parentNode,e)):i.p(r,s)},i:hi,o:hi,d:function(r){r&&At(e),i.d(r)}}}function Ore(t){var e,n,i,r=[t[9].props],s=t[9].component;function a(u,d){for(var m={},_=0;_0){for(var re=[$],se=Ls(W);se.length>0&&!te(z,se);)re.unshift({op:"add",path:de(se),value:{}}),se=Ls(se);return re}}return $})),S);var D,z}return t.$$set=function(x){"path"in x&&n(1,s=x.path),"value"in x&&n(2,a=x.value),"context"in x&&n(3,u=x.context),"enforceString"in x&&n(4,d=x.enforceString),"selection"in x&&n(5,m=x.selection),"searchResultItems"in x&&n(6,_=x.searchResultItems)},t.$$.update=function(){40&t.$$.dirty&&n(7,i=!u.readOnly&&po(m)&&C2(m)),254&t.$$.dirty&&n(0,r=u.onRenderValue({path:s,value:a,readOnly:u.readOnly,enforceString:d,isEditing:i,parser:u.parser,normalization:u.normalization,selection:m,searchResultItems:_,onPatch:y,onPasteJson:u.onPasteJson,onSelect:u.onSelect,onFind:u.onFind,findNextInside:u.findNextInside,focus:u.focus}))},[r,s,a,u,d,m,_,i]}var c$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,a$e,o$e,gs,{path:1,value:2,context:3,enforceString:4,selection:5,searchResultItems:6}),i}return br(e,Cr),pr(e)}();function l$e(t){as(t,"svelte-1dhomzn",'.jse-inline-value.svelte-1dhomzn{font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);line-height:var(--jse-line-height, calc(1em + 4px));border:none;padding:0 calc(0.5 * var(--jse-padding, 10px));background:transparent;color:inherit;cursor:pointer}.jse-inline-value.svelte-1dhomzn:hover{background:var(--jse-hover-background-color, rgba(0, 0, 0, 0.06))}.jse-inline-value.jse-selected.svelte-1dhomzn{background:var(--jse-selection-background-color, #d3d3d3)}.jse-inline-value.jse-highlight.svelte-1dhomzn{background-color:var(--jse-search-match-color, #ffe665);outline:var(--jse-search-match-outline, 1px solid #ffd700)}.jse-inline-value.jse-highlight.jse-active.svelte-1dhomzn{background-color:var(--jse-search-match-active-color, #ffd700);outline:var(--jse-search-match-active-outline, 1px solid #e1be00)}')}function u$e(t){var e,n,i,r,s,a=T0(null!==(e=t[2].stringify(t[1]))&&void 0!==e?e:"",50)+"";return{c:function(){n=pt("button"),i=Ii(a),ce(n,"type","button"),ce(n,"class","jse-inline-value svelte-1dhomzn"),$n(n,"jse-selected",t[3]),$n(n,"jse-highlight",t[4]),$n(n,"jse-active",t[5])},m:function(u,d){Ht(u,n,d),Ge(n,i),r||(s=ei(n,"dblclick",t[7]),r=!0)},p:function(u,d){var m,_=ds(d,1)[0];6&_&&a!==(a=T0(null!==(m=u[2].stringify(u[1]))&&void 0!==m?m:"",50)+"")&&Ir(i,a),8&_&&$n(n,"jse-selected",u[3]),16&_&&$n(n,"jse-highlight",u[4]),32&_&&$n(n,"jse-active",u[5])},i:hi,o:hi,d:function(u){u&&At(n),r=!1,s()}}}function d$e(t,e,n){var i=e.path,r=e.value,s=e.parser,a=e.isSelected,u=e.containsSearchResult,d=e.containsActiveSearchResult,m=e.onEdit;return t.$$set=function(_){"path"in _&&n(0,i=_.path),"value"in _&&n(1,r=_.value),"parser"in _&&n(2,s=_.parser),"isSelected"in _&&n(3,a=_.isSelected),"containsSearchResult"in _&&n(4,u=_.containsSearchResult),"containsActiveSearchResult"in _&&n(5,d=_.containsActiveSearchResult),"onEdit"in _&&n(6,m=_.onEdit)},[i,r,s,a,u,d,m,function(){return m(i)}]}var f$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,d$e,u$e,gs,{path:0,value:1,parser:2,isSelected:3,containsSearchResult:4,containsActiveSearchResult:5,onEdit:6},l$e),i}return br(e,Cr),pr(e)}();function h$e(t){as(t,"svelte-2v0aqj",".jse-column-header.svelte-2v0aqj.svelte-2v0aqj{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-2v0aqj.svelte-2v0aqj:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-2v0aqj.svelte-2v0aqj:not(.jse-column-header.jse-readonly){cursor:pointer}.jse-column-header.svelte-2v0aqj span.jse-column-sort-icon.svelte-2v0aqj{height:1em}")}function zre(t){var e,n,i,r;return n=new Co({props:{data:t[1]===Rd.asc?Uu:sI}}),{c:function(){e=pt("span"),Nn(n.$$.fragment),ce(e,"class","jse-column-sort-icon svelte-2v0aqj"),ce(e,"title",i="Currently sorted in ".concat(t[2]," order"))},m:function(s,a){Ht(s,e,a),zn(n,e,null),r=!0},p:function(s,a){var u={};2&a&&(u.data=s[1]===Rd.asc?Uu:sI),n.$set(u),(!r||4&a&&i!==(i="Currently sorted in ".concat(s[2]," order")))&&ce(e,"title",i)},i:function(s){r||(Me(n.$$.fragment,s),r=!0)},o:function(s){je(n.$$.fragment,s),r=!1},d:function(s){s&&At(e),Rn(n)}}}function p$e(t){var e,n,i,r,s,a,u,d,m=T0(t[3],50)+"",_=void 0!==t[1]&&zre(t);return{c:function(){e=pt("button"),n=pt("span"),i=Ii(m),r=gn(),_&&_.c(),ce(n,"class","jse-column-name"),ce(e,"type","button"),ce(e,"class","jse-column-header svelte-2v0aqj"),ce(e,"title",s=t[0]?t[3]:t[3]+" (Click to sort the data by this column)"),$n(e,"jse-readonly",t[0])},m:function(y,x){Ht(y,e,x),Ge(e,n),Ge(n,i),Ge(e,r),_&&_.m(e,null),a=!0,u||(d=ei(e,"click",t[4]),u=!0)},p:function(y,x){var S=ds(x,1)[0];(!a||8&S)&&m!==(m=T0(y[3],50)+"")&&Ir(i,m),void 0!==y[1]?_?(_.p(y,S),2&S&&Me(_,1)):((_=zre(y)).c(),Me(_,1),_.m(e,null)):_&&(si(),je(_,1,1,function(){_=null}),oi()),(!a||9&S&&s!==(s=y[0]?y[3]:y[3]+" (Click to sort the data by this column)"))&&ce(e,"title",s),(!a||1&S)&&$n(e,"jse-readonly",y[0])},i:function(y){a||(Me(_),a=!0)},o:function(y){je(_),a=!1},d:function(y){y&&At(e),_&&_.d(),u=!1,d()}}}function m$e(t,e,n){var i,r,s,a=e.path,u=e.sortedColumn,d=e.readOnly,m=e.onSort;return t.$$set=function(_){"path"in _&&n(5,a=_.path),"sortedColumn"in _&&n(6,u=_.sortedColumn),"readOnly"in _&&n(0,d=_.readOnly),"onSort"in _&&n(7,m=_.onSort)},t.$$.update=function(){var _;32&t.$$.dirty&&n(3,i=Zs(a)?"values":yu(a)),96&t.$$.dirty&&n(1,r=u&&zs(a,null===(_=u)||void 0===_?void 0:_.path)?u.sortDirection:void 0),2&t.$$.dirty&&n(2,s=r?Mze[r]:void 0)},[d,r,s,i,function(){d||m({path:a,sortDirection:r===Rd.asc?Rd.desc:Rd.asc})},a,u,m]}var lE,uE,g$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,m$e,p$e,gs,{path:5,sortedColumn:6,readOnly:0,onSort:7},h$e),i}return br(e,Cr),pr(e)}();function Rre(t,e){return lE||(uE=new WeakMap,lE=new ResizeObserver(function(n){var i,r=Pp(n);try{for(r.s();!(i=r.n()).done;){var s=i.value,a=uE.get(s.target);a&&a(s.target)}}catch(u){r.e(u)}finally{r.f()}})),uE.set(t,e),lE.observe(t),{destroy:function(){uE.delete(t),lE.unobserve(t)}}}function v$e(t){as(t,"svelte-fxr3ye",'.jse-table-mode-welcome.svelte-fxr3ye.svelte-fxr3ye{flex:1;display:flex;flex-direction:column;overflow:auto;align-items:center;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode-welcome.svelte-fxr3ye.svelte-fxr3ye:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode-welcome.svelte-fxr3ye .jse-space.jse-before.svelte-fxr3ye{flex:1}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays.svelte-fxr3ye{display:flex;flex-direction:column;gap:var(--jse-padding, 10px);max-width:300px;margin:2em var(--jse-padding, 10px);font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays .jse-nested-arrays-info.svelte-fxr3ye{color:var(--jse-panel-color-readonly, #b2b2b2)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye{border:none;background:transparent;color:inherit;cursor:pointer;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);padding:5px;margin:0;background:var(--jse-button-primary-background, var(--jse-theme-color, #3883fa));color:var(--jse-button-primary-color, #fff);padding:var(--jse-padding, 10px) calc(2 * var(--jse-padding, 10px));border-radius:3px;text-align:left}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye:hover{background:var(--jse-button-primary-background-highlight, var(--jse-theme-color-highlight, #5f9dff))}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action.svelte-fxr3ye:disabled{background:var(--jse-button-primary-background-disabled, #9d9d9d)}.jse-table-mode-welcome.svelte-fxr3ye .jse-nested-arrays button.jse-nested-array-action .jse-nested-array-count.svelte-fxr3ye{opacity:0.5;white-space:nowrap}.jse-table-mode-welcome.svelte-fxr3ye .jse-space.jse-after.svelte-fxr3ye{flex:2}')}function Nre(t,e,n){var i=t.slice();i[16]=e[n];var r=i[9](i[16]);return i[17]=r,i}function _$e(t){var e,n;return{c:function(){e=Ii(t[7]),n=Ii(" cannot be opened in table mode.")},m:function(i,r){Ht(i,e,r),Ht(i,n,r)},p:function(i,r){128&r&&Ir(e,i[7])},d:function(i){i&&(At(e),At(n))}}}function b$e(t){var e;return{c:function(){e=Ii("An object cannot be opened in table mode. You can open a nested array instead, or open the\n document in tree mode.")},m:function(n,i){Ht(n,e,i)},p:hi,d:function(n){n&&At(e)}}}function y$e(t){var e;return{c:function(){e=Ii("You can open the document in tree mode instead.")},m:function(n,i){Ht(n,e,i)},d:function(n){n&&At(e)}}}function C$e(t){var e,n,i;return{c:function(){e=Ii("You can open the document in tree mode instead, or paste a JSON Array using "),(n=pt("b")).textContent="Ctrl+V",i=Ii(".")},m:function(r,s){Ht(r,e,s),Ht(r,n,s),Ht(r,i,s)},d:function(r){r&&(At(e),At(n),At(i))}}}function Pre(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D=yu(t[16])+"",z=t[17]+"",$=1!==t[17]?"items":"item";function W(){return t[13](t[16])}return{c:function(){e=pt("button"),n=Ii(t[8]),i=Ii(' "'),r=Ii(D),s=Ii('"\n '),a=pt("span"),u=Ii("("),d=Ii(z),m=gn(),_=Ii($),y=Ii(")"),ce(a,"class","jse-nested-array-count svelte-fxr3ye"),ce(e,"type","button"),ce(e,"class","jse-nested-array-action svelte-fxr3ye")},m:function(re,se){Ht(re,e,se),Ge(e,n),Ge(e,i),Ge(e,r),Ge(e,s),Ge(e,a),Ge(a,u),Ge(a,d),Ge(a,m),Ge(a,_),Ge(a,y),x||(S=ei(e,"click",W),x=!0)},p:function(re,se){t=re,256&se&&Ir(n,t[8]),16&se&&D!==(D=yu(t[16])+"")&&Ir(r,D),16&se&&z!==(z=t[17]+"")&&Ir(d,z),16&se&&$!==($=1!==t[17]?"items":"item")&&Ir(_,$)},d:function(re){re&&At(e),x=!1,S()}}}function x$e(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re;function se(wt,Dt){return wt[6]?b$e:_$e}var ke=se(t),ye=ke(t);function Ye(wt,Dt){return wt[5]&&!wt[0]?C$e:y$e}for(var lt=Ye(t),Vt=lt(t),Nt=cs(t[4]),kt=[],qt=0;qt1&&void 0!==arguments[1]?arguments[1]:2,W=[];return function re(se,ke){he(se)&&ke.length<$&&Object.keys(se).forEach(function(ye){re(se[ye],ke.concat(ye))}),Be(se)&&W.push(ke)}(z,[]),W}(m).slice(0,99).filter(function(z){return z.length>0}):[]),16&t.$$.dirty&&n(6,r=!Zs(u)),3072&t.$$.dirty&&n(5,s=void 0===m&&(""===d||void 0===d)),6240&t.$$.dirty&&n(7,a=r?"Object with nested arrays":s?"An empty document":he(m)?"An object":Be(m)?"An empty array":"A ".concat(wL(m,y)))},[_,x,S,D,u,s,r,a,i,function(z){return nt(m,z).length},d,m,y,function(z){return x(z)},function(){return S(A1.tree)},function(){return D()}]}var M$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,w$e,x$e,gs,{text:10,json:11,readOnly:0,parser:12,openJSONEditorModal:1,onChangeMode:2,onClick:3},v$e),i}return br(e,Cr),pr(e)}();function S$e(t){as(t,"svelte-1nml1r3",".jse-column-header.svelte-1nml1r3{background:none;border:none;font-family:inherit;font-size:inherit;color:inherit;display:flex;gap:var(--jse-padding, 10px);padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px));width:100%}.jse-column-header.svelte-1nml1r3:hover{background:var(--jse-table-header-background-highlight, #e8e8e8)}.jse-column-header.svelte-1nml1r3:not(.jse-column-header.jse-readonly){cursor:pointer}")}function k$e(t){var e,n,i,r,s,a;return n=new Co({props:{data:jI}}),{c:function(){e=pt("button"),Nn(n.$$.fragment),ce(e,"type","button"),ce(e,"class","jse-column-header svelte-1nml1r3"),ce(e,"title",i="The Columns are created by sampling ".concat(t[1]," items out of ").concat(t[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower.")},m:function(u,d){Ht(u,e,d),zn(n,e,null),r=!0,s||(a=ei(e,"click",t[3]),s=!0)},p:function(u,d){var m=ds(d,1)[0];(!r||3&m&&i!==(i="The Columns are created by sampling ".concat(u[1]," items out of ").concat(u[0],". ")+"If you're missing a column, click here to sample all of the items instead of a subset. This is slower."))&&ce(e,"title",i)},i:function(u){r||(Me(n.$$.fragment,u),r=!0)},o:function(u){je(n.$$.fragment,u),r=!1},d:function(u){u&&At(e),Rn(n),s=!1,a()}}}function E$e(t,e,n){var i=e.count,r=e.maxSampleCount,s=e.onRefresh;return t.$$set=function(a){"count"in a&&n(0,i=a.count),"maxSampleCount"in a&&n(1,r=a.maxSampleCount),"onRefresh"in a&&n(2,s=a.onRefresh)},[i,r,s,function(){return s()}]}var D$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,E$e,k$e,gs,{count:0,maxSampleCount:1,onRefresh:2},S$e),i}return br(e,Cr),pr(e)}();function T$e(t){as(t,"svelte-12ygzbc",'.jse-table-mode.svelte-12ygzbc.svelte-12ygzbc{flex:1;display:flex;flex-direction:column;position:relative;background:var(--jse-background-color, #fff);min-width:0;min-height:0;font-family:var(--jse-font-family-mono, consolas, menlo, monaco, "Ubuntu Mono", "source-code-pro", monospace);font-size:var(--jse-font-size-mono, 14px);color:var(--jse-text-color, #4d4d4d);line-height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.no-main-menu.svelte-12ygzbc.svelte-12ygzbc{border-top:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-search-box-container.svelte-12ygzbc{position:relative;height:0;top:calc(var(--jse-line-height, calc(1em + 4px)) + 2 * var(--jse-padding, 10px));margin-right:calc(var(--jse-padding, 10px) + 20px);margin-left:var(--jse-padding, 10px);text-align:right;z-index:3}.jse-table-mode.svelte-12ygzbc .jse-hidden-input-label.svelte-12ygzbc{position:fixed;right:0;top:0;width:0;height:0}.jse-table-mode.svelte-12ygzbc .jse-hidden-input-label .jse-hidden-input.svelte-12ygzbc{width:0;height:0;padding:0;border:0;outline:none}.jse-table-mode.svelte-12ygzbc .jse-contents.svelte-12ygzbc{flex:1;align-items:flex-start;flex-direction:column;display:flex;overflow:auto;overflow-anchor:none;scrollbar-gutter:stable;border-left:var(--jse-main-border, 1px solid #d7d7d7);border-right:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-contents.svelte-12ygzbc:last-child{border-bottom:var(--jse-main-border, 1px solid #d7d7d7)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main.svelte-12ygzbc{border-collapse:collapse;border-spacing:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-start-section td.svelte-12ygzbc,.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-12ygzbc{margin:0;padding:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-invisible-end-section td.svelte-12ygzbc{padding-bottom:var(--jse-padding, 10px)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row.svelte-12ygzbc:hover{background-color:var(--jse-table-row-odd-background, rgba(0, 0, 0, 0.05))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-12ygzbc{padding:0 var(--jse-padding, 10px) 0 0;vertical-align:top;white-space:nowrap;height:var(--jse-line-height, calc(1em + 4px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-12ygzbc,.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-12ygzbc{font-weight:normal;text-align:left;color:var(--jse-text-readonly, #8d8d8d);background:var(--jse-table-header-background, #f5f5f5)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header.svelte-12ygzbc{padding:0;position:sticky;top:0}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-header .jse-table-root-error.svelte-12ygzbc{padding:calc(0.5 * var(--jse-padding, 10px)) var(--jse-padding, 10px) calc(0.5 * var(--jse-padding, 10px)) calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-table-cell-gutter.svelte-12ygzbc{padding:0 var(--jse-padding, 10px) 0 calc(0.5 * var(--jse-padding, 10px))}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.jse-selected-value.svelte-12ygzbc>.jse-value{background:var(--jse-selection-background-color, #d3d3d3)}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell.svelte-12ygzbc div.jse-value{overflow-wrap:normal;white-space:nowrap;vertical-align:top;display:inline-block}.jse-table-mode.svelte-12ygzbc .jse-contents table.jse-table-main .jse-table-row .jse-table-cell .jse-context-menu-anchor.svelte-12ygzbc{display:inline-flex;position:relative;vertical-align:top}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading.svelte-12ygzbc{align-items:unset}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading .jse-loading-space.svelte-12ygzbc{flex:1}.jse-table-mode.svelte-12ygzbc .jse-contents.jse-contents-loading .jse-loading.svelte-12ygzbc{flex:2;text-align:center;color:var(--jse-panel-color-readonly, #b2b2b2);box-sizing:border-box;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px)}')}function jre(t,e,n){var i,r,s,a=t.slice();a[132]=e[n],a[138]=n,a[133]=a[27].startIndex+a[138],a[134]=a[26].rows[a[133]];var m=hz([String(a[133])],null===(i=a[134])||void 0===i?void 0:i.row);a[135]=m;var _=null!==(r=a[20])&&void 0!==r&&r.itemsMap?Fd(null===(s=a[20])||void 0===s?void 0:s.itemsMap,Fe(a[133])):void 0;return a[136]=_,a}function Fre(t,e,n){var i,r=t.slice();r[139]=e[n],r[146]=n;var s=[String(r[133])].concat(r[139]);r[140]=s;var a=de(r[140]);r[141]=a;var u=nt(r[132],r[139]);r[142]=u;var d=po(r[12].selection)&&I0(r[12].selection.path,r[140]);r[143]=d;var m=null===(i=r[134])||void 0===i?void 0:i.columns[r[146]];r[144]=m;var _=hz(r[140],r[144]);return r[135]=_,r}function Bre(t,e,n){var i=t.slice();return i[139]=e[n],i}function wz(t){var e,n=t.slice(),i=hz([],null===(e=n[26])||void 0===e?void 0:e.root);return n[135]=i,n}function $re(t){var e,n,i;function r(a){t[79](a)}var s={containsValidArray:t[22],readOnly:t[0],historyState:t[24],onSort:t[47],onTransform:t[48],onUndo:t[49],onRedo:t[50],onContextMenu:t[39],onRenderMenu:t[5]};return void 0!==t[9]&&(s.showSearch=t[9]),e=new i$e({props:s}),Vs.push(function(){return J2(e,"showSearch",r)}),{c:function(){Nn(e.$$.fragment)},m:function(a,u){zn(e,a,u),i=!0},p:function(a,u){var d={};4194304&u[0]&&(d.containsValidArray=a[22]),1&u[0]&&(d.readOnly=a[0]),16777216&u[0]&&(d.historyState=a[24]),32&u[0]&&(d.onRenderMenu=a[5]),!n&&512&u[0]&&(n=!0,d.showSearch=a[9],Q2(function(){return n=!1})),e.$set(d)},i:function(a){i||(Me(e.$$.fragment,a),i=!0)},o:function(a){je(e.$$.fragment,a),i=!1},d:function(a){Rn(e,a)}}}function V$e(t){var e;return{c:function(){(e=pt("div")).innerHTML='
loading...
',ce(e,"class","jse-contents jse-contents-loading svelte-12ygzbc")},m:function(n,i){Ht(n,e,i)},p:hi,i:hi,o:hi,d:function(n){n&&At(e)}}}function A$e(t){var e,n,i,r,s,a,u,d,m,_=[H$e,O$e,I$e],y=[];function x(S,D){return S[22]?0:S[18]&&void 0!==S[17]&&""!==S[17]?1:2}return r=x(t),s=y[r]=_[r](t),{c:function(){e=pt("label"),n=pt("input"),i=gn(),s.c(),a=ho(),ce(n,"type","text"),n.readOnly=!0,ce(n,"tabindex","-1"),ce(n,"class","jse-hidden-input svelte-12ygzbc"),ce(e,"class","jse-hidden-input-label svelte-12ygzbc")},m:function(S,D){Ht(S,e,D),Ge(e,n),t[80](n),Ht(S,i,D),y[r].m(S,D),Ht(S,a,D),u=!0,d||(m=ei(n,"paste",t[44]),d=!0)},p:function(S,D){var z=r;(r=x(S))===z?y[r].p(S,D):(si(),je(y[z],1,1,function(){y[z]=null}),oi(),(s=y[r])?s.p(S,D):(s=y[r]=_[r](S)).c(),Me(s,1),s.m(a.parentNode,a))},i:function(S){u||(Me(s),u=!0)},o:function(S){je(s),u=!1},d:function(S){S&&(At(e),At(i),At(a)),t[80](null),y[r].d(S),d=!1,m()}}}function I$e(t){var e,n;return e=new M$e({props:{text:t[17],json:t[8],readOnly:t[0],parser:t[2],openJSONEditorModal:t[46],onChangeMode:t[4],onClick:t[84]}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};131072&r[0]&&(s.text=i[17]),256&r[0]&&(s.json=i[8]),1&r[0]&&(s.readOnly=i[0]),4&r[0]&&(s.parser=i[2]),16&r[0]&&(s.onChangeMode=i[4]),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function O$e(t){var e,n,i,r;return e=new w4({props:{type:"error",message:"The loaded JSON document is invalid and could not be repaired automatically.",actions:t[0]?[]:[{icon:m0,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:t[42]}]}}),i=new Qie({props:{text:t[17],json:t[8],indentation:t[3],parser:t[2]}}),{c:function(){Nn(e.$$.fragment),n=gn(),Nn(i.$$.fragment)},m:function(s,a){zn(e,s,a),Ht(s,n,a),zn(i,s,a),r=!0},p:function(s,a){var u={};1&a[0]&&(u.actions=s[0]?[]:[{icon:m0,text:"Repair manually",title:'Open the document in "code" mode and repair it manually',onClick:s[42]}]),e.$set(u);var d={};131072&a[0]&&(d.text=s[17]),256&a[0]&&(d.json=s[8]),8&a[0]&&(d.indentation=s[3]),4&a[0]&&(d.parser=s[2]),i.$set(d)},i:function(s){r||(Me(e.$$.fragment,s),Me(i.$$.fragment,s),r=!0)},o:function(s){je(e.$$.fragment,s),je(i.$$.fragment,s),r=!1},d:function(s){s&&At(n),Rn(e,s),Rn(i,s)}}}function H$e(t){var e,n,i,r,s,a,u,d,m,_,y,x,S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,kt,qt,wt=!Zs(null===(e=t[26])||void 0===e?void 0:e.root);i=new Bie({props:{json:t[8],documentState:t[12],parser:t[2],showSearch:t[9],showReplace:t[21],readOnly:t[0],columns:t[11],onSearch:t[30],onFocus:t[31],onPatch:t[34],onClose:t[32]}});for(var Dt=wt&&Ure(wz(t)),ut=cs(t[11]),Ut=[],$t=0;$t"u";a("isSSR:",D);var z,$,W,re,se,ke,ye=e.readOnly,Ye=e.externalContent,lt=e.externalSelection,Vt=e.mainMenuBar,Nt=e.escapeControlCharacters,kt=e.escapeUnicodeCharacters,qt=e.flattenColumns,wt=e.parser,Dt=e.parseMemoizeOne,ut=e.validator,Ut=e.validationParser,$t=e.indentation,Lt=e.onChange,et=e.onChangeMode,st=e.onSelect,gt=e.onRenderValue,sn=e.onRenderMenu,Hn=e.onRenderContextMenu,on=e.onFocus,Xt=e.onBlur,An=e.onSortModal,_n=e.onTransformModal,Zt=e.onJSONEditorModal;sz({onMount:Hd,onDestroy:Zu,getWindow:function(){return c7($)},hasFocus:function(){return Yr&&document.hasFocus()||TL($)},onFocus:function(){on&&on()},onBlur:function(){Xt&&Xt()}});var wi,zi,Zn=void 0,En=!1,Nr=!1;function Pr(){return(Pr=es(gi().mark(function Et(Ln){return gi().wrap(function(Hi){for(;;)switch(Hi.prev=Hi.next){case 0:return n(12,Mi=yn(yn({},Mi),{},{selection:null})),Hi.next=3,Gc(Ln);case 3:case"end":return Hi.stop()}},Et)}))).apply(this,arguments)}var va,Qo=1e4,fn=[],Yr=!1,sa={},oa=600,Jo=0;function qi(Et){a("updateSelection",Et);var Ln="function"==typeof Et?Et(Mi.selection)||null:Et;zs(Ln,Mi.selection)||(n(12,Mi=yn(yn({},Mi),{},{selection:Ln})),st(Ln))}function $s(Et){Mi.selection&&void 0!==Et&&(te(Et,qp(Mi.selection))&&te(Et,mr(Mi.selection))||(a("clearing selection: path does not exist anymore",Mi.selection),n(12,Mi=yn(yn({},Mi),{},{selection:null}))))}var tc,Mi=zk(),Or=!1,xa=xne({onChange:function(Et){n(24,I1=Et)}}),I1=xa.getState();function s1(Et){var Ln=Et.previousJson,Hi=Et.previousState,Bi=Et.previousText,Xi=Et.previousTextIsRepaired;void 0===Ln&&void 0===Bi||(void 0!==se?xa.add(void 0!==Ln?{undo:{patch:[{op:"replace",path:"",value:Ln}],state:b2(Hi),json:void 0,text:Bi,textIsRepaired:Xi},redo:{patch:[{op:"replace",path:"",value:se}],state:b2(Mi),json:void 0,text:ke,textIsRepaired:Or}}:{undo:{patch:void 0,json:void 0,text:Bi,state:b2(Hi),textIsRepaired:Xi},redo:{patch:void 0,json:se,state:b2(Mi),text:ke,textIsRepaired:Or}}):void 0!==Ln&&xa.add({undo:{patch:void 0,json:Ln,state:b2(Hi),text:Bi,textIsRepaired:Xi},redo:{patch:void 0,json:void 0,text:ke,textIsRepaired:Or,state:b2(Mi)}}))}var fl=[],Ho=b_(wne);function Ul(Et,Ln,Hi,Bi){_7(function(){var Xi;try{Xi=Ho(Et,Ln,Hi,Bi)}catch(Us){Xi=[{path:[],message:"Failed to validate: "+Us.message,severity:zd.warning}]}zs(Xi,fl)||(a("validationErrors changed:",Xi),n(13,fl=Xi))},function(Xi){return a("validationErrors updated in ".concat(Xi," ms"))})}function fc(){return a("validate"),Zn?{parseError:Zn,isRepairable:!1}:(Ul(se,ut,wt,Ut),Zs(fl)?null:{validationErrors:fl})}function Tl(Et,Ln){if(a("patch",Et,Ln),void 0===se)throw new Error("Cannot apply patch: no JSON");var Hi=se,Bi=Mi,Xi=Or,Us=gte(se,Et),Lo=Jee(se,Mi,Et).json,aa=function VFe(t,e,n){return e.some(function(i){return function(r,s,a){if(!r)return!1;if("replace"===s.op){var u=Bd(tt(s.path),a),d=u.rowIndex,m=u.columnIndex,_=a.findIndex(function(y){return zs(y,r.path)});if(-1!==d&&-1!==m&&m!==_)return!1}return!0}(t.sortedColumn,i,n)})?yn(yn({},t),{},{sortedColumn:null}):t}(Mi,Et,fn),ct="function"==typeof Ln?Ln(Lo,aa):void 0;n(8,se=ct&&void 0!==ct.json?ct.json:Lo);var mn=ct&&void 0!==ct.state?ct.state:aa;return n(12,Mi=mn),n(17,ke=void 0),n(23,Or=!1),n(19,wi=void 0),n(18,Zn=void 0),xa.add({undo:{patch:Us,json:void 0,text:void 0,state:b2(Bi),textIsRepaired:Xi},redo:{patch:Et,json:void 0,state:b2(mn),text:void 0,textIsRepaired:Or}}),{json:se,previousJson:Hi,undo:Us,redo:Et}}function Oa(Et,Ln){a("handlePatch",Et,Ln);var Hi={json:se,text:ke},Bi=Tl(Et,Ln);return Gl(Hi,Bi),Bi}function Gl(Et,Ln){(void 0!==Et.json||void 0!==Et?.text)&&Lt&&(void 0!==ke?Lt({text:ke,json:void 0},Et,{contentErrors:fc(),patchResult:Ln}):void 0!==se&&Lt({text:void 0,json:se},Et,{contentErrors:fc(),patchResult:Ln}))}function Z2(Et){a("handleFind",Et)}function O1(Et){a("pasted json as text",Et),n(19,wi=Et)}function Wl(Et){var Ln=parseInt(Et[0],10),Hi=[String(Ln+1)].concat(Ts(Et.slice(1)));return te(se,Hi)?Bs(Hi,!1):Bs(Et,!1)}function bs(){a("focus"),re&&(re.focus(),re.select())}function Jc(){Mi.selection||qi(!Be(se)||Zs(se)||Zs(fn)?null:Bs(["0"].concat(Ts(fn[0])),!1))}function Gc(Et){var Ln=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Hi=En?100:0,Bi=Gie(Et,fn,sa,18),Xi=Bi-Jo+Hi+18,Us=a1(Et);if(a("scrollTo",{path:Et,top:Bi,scrollTop:Jo,elem:Us}),!W)return Promise.resolve();var Lo=W.getBoundingClientRect();if(Us&&!Ln){var aa=Us.getBoundingClientRect();if(aa.bottom>Lo.top&&aa.topHi.right&&n(15,W.scrollLeft+=Bi.right-Hi.right,W),Bi.leftaa&&n(15,W.scrollTop+=Xi-aa,W),Bi0&&void 0!==Hi[0])||Hi[0],void 0!==se){Bi.next=3;break}return Bi.abrupt("return");case 3:return Bi.next=5,qie({json:se,documentState:Mi,indentation:Ln?$t:void 0,parser:wt});case 5:case"end":return Bi.stop()}},Et)})),wa.apply(this,arguments)}function ys(){Kie({json:se,text:ke,documentState:Mi,keepSelection:!0,readOnly:ye,onChange:Lt,onPatch:Oa})}function Bh(){!function AFe(t){var e=t.json,n=t.documentState,i=t.columns,s=t.onPatch;if(!t.readOnly&&void 0!==e&&n.selection&&p7(n.selection)){var a=Bd(mr(n.selection),i),u=a.rowIndex,d=a.columnIndex;x2("duplicate row",{rowIndex:u});var m=[String(u)];s(hte(e,[m]),function(_,y){var x=Bs(Zp({rowIndex:u0?u-1:void 0,x=void 0!==y?Bs(Zp({rowIndex:y,columnIndex:d},i),!1):null;return x2("remove row new selection",{rowIndex:u,newRowIndex:y,newSelection:x}),{state:yn(yn({},_),{},{selection:x})}})}}({json:se,documentState:Mi,columns:fn,readOnly:ye,onPatch:Oa})}function N0(){return(N0=es(gi().mark(function Et(Ln){return gi().wrap(function(Hi){for(;;)switch(Hi.prev=Hi.next){case 0:return Hi.next=2,Yie({char:Ln,selectInside:!1,refJsonEditor:$,json:se,selection:Mi.selection,readOnly:ye,parser:wt,onPatch:Oa,onReplaceJson:P0,onSelect:qi});case 2:case"end":return Hi.stop()}},Et)}))).apply(this,arguments)}function P0(Et,Ln){var Hi=Mi,Bi=se,Xi=ke,Us={json:se,text:ke},Lo=Or,aa=Nd(se,Mi,[],T3),ct="function"==typeof Ln?Ln(Et,aa):void 0;n(8,se=ct&&void 0!==ct.json?ct.json:Et),n(12,Mi=ct&&void 0!==ct.state?ct.state:aa),n(17,ke=void 0),n(23,Or=!1),n(18,Zn=void 0),$s(se),s1({previousJson:Bi,previousState:Hi,previousText:Xi,previousTextIsRepaired:Lo}),Gl(Us,null)}function j0(Et,Ln){a("handleChangeText");var Hi=Mi,Bi=se,Xi=ke,Us={json:se,text:ke},Lo=Or;try{n(8,se=Dt(Et)),n(12,Mi=Nd(se,Mi,[],T3)),n(17,ke=void 0),n(23,Or=!1),n(18,Zn=void 0)}catch(ct){try{n(8,se=Dt(na(Et))),n(12,Mi=Nd(se,Mi,[],T3)),n(17,ke=Et),n(23,Or=!0),n(18,Zn=void 0)}catch{n(8,se=void 0),n(12,Mi=zk({json:se,expand:T3})),n(17,ke=Et),n(23,Or=!1),n(18,Zn=""!==ke?o7(ke,ct.message||String(ct)):void 0)}}if("function"==typeof Ln){var aa=Ln(se,Mi);n(8,se=aa&&aa.json?aa.json:se),n(12,Mi=aa&&aa.state?aa.state:Mi)}$s(se),s1({previousJson:Bi,previousState:Hi,previousText:Xi,previousTextIsRepaired:Lo}),Gl(Us,null)}function td(Et){if(void 0!==se){var Hi=Et.onTransform,Bi=Et.onClose,Xi=Et.rootPath||[];Yr=!0,_n({id:Et.id||S,json:se,rootPath:Xi||[],onTransform:function(Us){Hi?Hi({operations:Us,json:se,transformedJson:xe(se,Us)}):(a("onTransform",Xi,Us),Oa(Us))},onClose:function(){Yr=!1,bs(),Bi&&Bi()}})}}function Vl(Et){a("openJSONEditorModal",{path:Et}),Yr=!0,Zt({content:{json:nt(se,Et)},path:Et,onPatch:tc.onPatch,onClose:function(){Yr=!1,bs()}})}function F0(Et,Ln){u(Gne,{text:Et,onParse:function(Hi){return Ik(Hi,function(Bi){return mb(Bi,wt)})},onRepair:xee,onApply:Ln},yn(yn({},Up),{},{styleWindow:{width:"600px",height:"500px"},styleContent:{padding:0,height:"100%"}}),{onClose:function(){return bs()}})}function em(Et){a("openFind",{findAndReplace:Et}),n(9,En=!1),n(21,Nr=!1),El().then(function(){n(9,En=!0),n(21,Nr=Et)})}function I3(){if(!ye&&xa.getState().canUndo){var Et=xa.undo();if(Et){var Ln={json:se,text:ke};n(8,se=Et.undo.patch?xe(se,Et.undo.patch):Et.undo.json),n(12,Mi=Et.undo.state),n(17,ke=Et.undo.text),n(23,Or=Et.undo.textIsRepaired),n(18,Zn=void 0),a("undo",{item:Et,json:se}),Gl(Ln,Et.undo.patch&&Et.redo.patch?{json:se,previousJson:Ln.json,redo:Et.undo.patch,undo:Et.redo.patch}:null),bs(),Mi.selection&&Gc(mr(Mi.selection),!1)}}}function B0(){if(!ye&&xa.getState().canRedo){var Et=xa.redo();if(Et){var Ln={json:se,text:ke};n(8,se=Et.redo.patch?xe(se,Et.redo.patch):Et.redo.json),n(12,Mi=Et.redo.state),n(17,ke=Et.redo.text),n(23,Or=Et.redo.textIsRepaired),n(18,Zn=void 0),a("redo",{item:Et,json:se}),Gl(Ln,Et.undo.patch&&Et.redo.patch?{json:se,previousJson:Ln.json,redo:Et.redo.patch,undo:Et.undo.patch}:null),bs(),Mi.selection&&Gc(mr(Mi.selection),!1)}}}function $h(Et,Ln){n(76,sa[Ln]=Et.getBoundingClientRect().height,sa)}return t.$$set=function(Et){"readOnly"in Et&&n(0,ye=Et.readOnly),"externalContent"in Et&&n(53,Ye=Et.externalContent),"externalSelection"in Et&&n(54,lt=Et.externalSelection),"mainMenuBar"in Et&&n(1,Vt=Et.mainMenuBar),"escapeControlCharacters"in Et&&n(55,Nt=Et.escapeControlCharacters),"escapeUnicodeCharacters"in Et&&n(56,kt=Et.escapeUnicodeCharacters),"flattenColumns"in Et&&n(57,qt=Et.flattenColumns),"parser"in Et&&n(2,wt=Et.parser),"parseMemoizeOne"in Et&&n(58,Dt=Et.parseMemoizeOne),"validator"in Et&&n(59,ut=Et.validator),"validationParser"in Et&&n(60,Ut=Et.validationParser),"indentation"in Et&&n(3,$t=Et.indentation),"onChange"in Et&&n(61,Lt=Et.onChange),"onChangeMode"in Et&&n(4,et=Et.onChangeMode),"onSelect"in Et&&n(62,st=Et.onSelect),"onRenderValue"in Et&&n(63,gt=Et.onRenderValue),"onRenderMenu"in Et&&n(5,sn=Et.onRenderMenu),"onRenderContextMenu"in Et&&n(64,Hn=Et.onRenderContextMenu),"onFocus"in Et&&n(65,on=Et.onFocus),"onBlur"in Et&&n(66,Xt=Et.onBlur),"onSortModal"in Et&&n(67,An=Et.onSortModal),"onTransformModal"in Et&&n(68,_n=Et.onTransformModal),"onJSONEditorModal"in Et&&n(69,Zt=Et.onJSONEditorModal)},t.$$.update=function(){50331648&t.$$.dirty[1]&&n(75,z=EL({escapeControlCharacters:Nt,escapeUnicodeCharacters:kt})),512&t.$$.dirty[0]&&(W&&W.scrollTo({top:n(15,W.scrollTop+=En?100:-100,W),left:W.scrollLeft})),4194304&t.$$.dirty[1]&&function r1(Et){var Ln=se,Hi=a7(Et)?Et.text!==ke:!zs(Ln,Et.json);if(a("update external content",{isChanged:Hi}),Hi){var Bi=se,Xi=Mi,Us=ke,Lo=Or;if(a7(Et))try{n(8,se=Dt(Et.text)),n(17,ke=Et.text),n(23,Or=!1),n(18,Zn=void 0)}catch(aa){try{n(8,se=Dt(na(Et.text))),n(17,ke=Et.text),n(23,Or=!0),n(18,Zn=void 0)}catch{n(8,se=void 0),n(17,ke=Et.text),n(23,Or=!1),n(18,Zn=""!==ke?o7(ke,aa.message||String(aa)):void 0)}}else n(8,se=Et.json),n(17,ke=void 0),n(23,Or=!1),n(18,Zn=void 0);$s(se),Mi.sortedColumn&&n(12,Mi=yn(yn({},Mi),{},{sortedColumn:null})),s1({previousJson:Bi,previousState:Xi,previousText:Us,previousTextIsRepaired:Lo})}}(Ye),8388608&t.$$.dirty[1]&&function(Et){zs(Mi.selection,Et)||(a("applyExternalSelection",Et),($L(Et)||null===Et)&&qi(Et))}(lt),3328&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(11,fn=Be(se)?function(Et,Ln){var Hi,Bi=new Set(Ln.map(de)),Xi=new Set(Et.map(de)),Us=Pp(Bi);try{for(Us.s();!(Hi=Us.n()).done;){var Lo=Hi.value;Xi.has(Lo)||Bi.delete(Lo)}}catch(Fn){Us.e(Fn)}finally{Us.f()}var aa,ct=Pp(Xi);try{for(ct.s();!(aa=ct.n()).done;){var mn=aa.value;Bi.has(mn)||Bi.add(mn)}}catch(Fn){ct.e(Fn)}finally{ct.f()}return Ts(Bi).map(tt)}(kFe(se,qt,Qo),fn):[]),2304&t.$$.dirty[0]&&n(22,va=!(!se||Zs(fn))),1280&t.$$.dirty[0]&&n(28,i=Array.isArray(se)&&se.length>Qo),768&t.$$.dirty[0]|114688&t.$$.dirty[2]&&n(27,r=function EFe(t,e,n,i,r,s){for(var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:80,u=Be(n)?n.length:0,d=function(re,se){var ke=Object.values(re);return Zs(ke)?se:ke.reduce(function(Ye,lt){return Ye+lt})/ke.length}(i,r),m=t-a,_=e+2*a,y=function(re){return i[re]||r},x=0,S=s;S0&&(S-=y(--x));for(var D=x,z=0;z<_&&D0?Bs(Zp({rowIndex:Fn.rowIndex,columnIndex:Ti-1},ct),!1):mn);qi(Hi),o1(mr(Hi))}if("ArrowRight"===Ln&&(Et.preventDefault(),Jc(),Mi.selection)){var Bi=function(ct,mn){var Fn=Bd(mr(mn),ct),Ti=Fn.columnIndex;return Ti0?Bs(Zp({rowIndex:vi-1,columnIndex:Fn.columnIndex},ct),!1):mn}(fn,Mi.selection);qi(Xi),o1(mr(Xi))}if("ArrowDown"===Ln&&(Et.preventDefault(),Jc(),Mi.selection)){var Us=function(ct,mn,Fn){var vi=Bd(mr(Fn),mn),Ti=vi.rowIndex;return Ti1?" (".concat(t[20].length,")"):""),fullScreenButton:!0,onClose:t[28]};void 0!==t[22]&&(Ye.fullscreen=t[22]),n=new eE({props:Ye}),Vs.push(function(){return J2(n,"fullscreen",ye)}),S=new ise({props:{mode:t[24].mode,content:t[24].content,selection:t[24].selection,readOnly:t[0],indentation:t[1],tabSize:t[2],statusBar:t[5],askToFormat:t[6],mainMenuBar:t[3],navigationBar:t[4],escapeControlCharacters:t[7],escapeUnicodeCharacters:t[8],flattenColumns:t[9],parser:t[10],parseMemoizeOne:t[25],validator:t[11],validationParser:t[12],pathParser:t[13],insideModal:!0,onError:t[33],onChange:t[30],onChangeMode:t[32],onSelect:t[31],onRenderValue:t[14],onClassName:t[15],onFocus:M4,onBlur:M4,onRenderMenu:t[16],onRenderContextMenu:t[17],onSortModal:t[18],onTransformModal:t[19],onJSONEditorModal:t[34]}}),t[40](S);var Vt=t[23]&&rse(t),Nt=t[20].length>1&&sse(t);function kt(Dt,ut){return Dt[0]?W$e:q$e}var qt=kt(t),wt=qt(t);return{c:function(){e=pt("div"),Nn(n.$$.fragment),r=gn(),s=pt("div"),(a=pt("div")).innerHTML='
Path
',u=gn(),d=pt("input"),m=gn(),(_=pt("div")).innerHTML='
Contents
',y=gn(),x=pt("div"),Nn(S.$$.fragment),D=gn(),z=pt("div"),Vt&&Vt.c(),$=gn(),Nt&&Nt.c(),W=gn(),wt.c(),ce(a,"class","jse-label svelte-1m281k0"),ce(d,"class","jse-path svelte-1m281k0"),ce(d,"type","text"),d.readOnly=!0,ce(d,"title","Selected path"),d.value=t[26],ce(_,"class","jse-label svelte-1m281k0"),ce(x,"class","jse-modal-inline-editor svelte-1m281k0"),ce(z,"class","jse-actions svelte-1m281k0"),ce(s,"class","jse-modal-contents svelte-1m281k0"),ce(e,"class","jse-modal jse-jsoneditor-modal svelte-1m281k0"),$n(e,"fullscreen",t[22])},m:function(Dt,ut){Ht(Dt,e,ut),zn(n,e,null),Ge(e,r),Ge(e,s),Ge(s,a),Ge(s,u),Ge(s,d),Ge(s,m),Ge(s,_),Ge(s,y),Ge(s,x),zn(S,x,null),Ge(s,D),Ge(s,z),Vt&&Vt.m(z,null),Ge(z,$),Nt&&Nt.m(z,null),Ge(z,W),wt.m(z,null),re=!0,se||(ke=$l(Db.call(null,e,t[29])),se=!0)},p:function(Dt,ut){var Ut={};1048576&ut[0]&&(Ut.title="Edit nested content "+(Dt[20].length>1?" (".concat(Dt[20].length,")"):"")),!i&&4194304&ut[0]&&(i=!0,Ut.fullscreen=Dt[22],Q2(function(){return i=!1})),n.$set(Ut),(!re||67108864&ut[0]&&d.value!==Dt[26])&&(d.value=Dt[26]);var $t={};16777216&ut[0]&&($t.mode=Dt[24].mode),16777216&ut[0]&&($t.content=Dt[24].content),16777216&ut[0]&&($t.selection=Dt[24].selection),1&ut[0]&&($t.readOnly=Dt[0]),2&ut[0]&&($t.indentation=Dt[1]),4&ut[0]&&($t.tabSize=Dt[2]),32&ut[0]&&($t.statusBar=Dt[5]),64&ut[0]&&($t.askToFormat=Dt[6]),8&ut[0]&&($t.mainMenuBar=Dt[3]),16&ut[0]&&($t.navigationBar=Dt[4]),128&ut[0]&&($t.escapeControlCharacters=Dt[7]),256&ut[0]&&($t.escapeUnicodeCharacters=Dt[8]),512&ut[0]&&($t.flattenColumns=Dt[9]),1024&ut[0]&&($t.parser=Dt[10]),33554432&ut[0]&&($t.parseMemoizeOne=Dt[25]),2048&ut[0]&&($t.validator=Dt[11]),4096&ut[0]&&($t.validationParser=Dt[12]),8192&ut[0]&&($t.pathParser=Dt[13]),16384&ut[0]&&($t.onRenderValue=Dt[14]),32768&ut[0]&&($t.onClassName=Dt[15]),65536&ut[0]&&($t.onRenderMenu=Dt[16]),131072&ut[0]&&($t.onRenderContextMenu=Dt[17]),262144&ut[0]&&($t.onSortModal=Dt[18]),524288&ut[0]&&($t.onTransformModal=Dt[19]),S.$set($t),Dt[23]?Vt?Vt.p(Dt,ut):((Vt=rse(Dt)).c(),Vt.m(z,$)):Vt&&(Vt.d(1),Vt=null),Dt[20].length>1?Nt?(Nt.p(Dt,ut),1048576&ut[0]&&Me(Nt,1)):((Nt=sse(Dt)).c(),Me(Nt,1),Nt.m(z,W)):Nt&&(si(),je(Nt,1,1,function(){Nt=null}),oi()),qt===(qt=kt(Dt))&&wt?wt.p(Dt,ut):(wt.d(1),(wt=qt(Dt))&&(wt.c(),wt.m(z,null))),(!re||4194304&ut[0])&&$n(e,"fullscreen",Dt[22])},i:function(Dt){re||(Me(n.$$.fragment,Dt),Me(S.$$.fragment,Dt),Me(Nt),re=!0)},o:function(Dt){je(n.$$.fragment,Dt),je(S.$$.fragment,Dt),je(Nt),re=!1},d:function(Dt){Dt&&At(e),Rn(n),t[40](null),Rn(S),Vt&&Vt.d(),Nt&&Nt.d(),wt.d(),se=!1,ke()}}}function ose(t){t.focus()}function K$e(t,e,n){var i,r,s,a,u,d,m=v1("jsoneditor:JSONEditorModal"),_=e.content,y=e.path,x=e.onPatch,S=e.readOnly,D=e.indentation,z=e.tabSize,$=e.mainMenuBar,W=e.navigationBar,re=e.statusBar,se=e.askToFormat,ke=e.escapeControlCharacters,ye=e.escapeUnicodeCharacters,Ye=e.flattenColumns,lt=e.parser,Vt=e.validator,Nt=e.validationParser,kt=e.pathParser,qt=e.onRenderValue,wt=e.onClassName,Dt=e.onRenderMenu,ut=e.onRenderContextMenu,Ut=e.onSortModal,$t=e.onTransformModal,Lt=V1("simple-modal").close,et={mode:sn(_),content:_,selection:null,relativePath:y},st=[et],gt=void 0;function sn(Xt){return gb(Xt)&&Be(Xt.json)?A1.table:A1.tree}function Hn(){var Xt,An=(null===(Xt=Ur(st))||void 0===Xt?void 0:Xt.selection)||null;$L(An)&&u.scrollTo(mr(An))}function on(){m("handleClose"),st.length>1?(n(20,st=Ls(st)),El().then(Hn),n(23,gt=void 0)):Lt()}return t.$$set=function(Xt){"content"in Xt&&n(35,_=Xt.content),"path"in Xt&&n(36,y=Xt.path),"onPatch"in Xt&&n(37,x=Xt.onPatch),"readOnly"in Xt&&n(0,S=Xt.readOnly),"indentation"in Xt&&n(1,D=Xt.indentation),"tabSize"in Xt&&n(2,z=Xt.tabSize),"mainMenuBar"in Xt&&n(3,$=Xt.mainMenuBar),"navigationBar"in Xt&&n(4,W=Xt.navigationBar),"statusBar"in Xt&&n(5,re=Xt.statusBar),"askToFormat"in Xt&&n(6,se=Xt.askToFormat),"escapeControlCharacters"in Xt&&n(7,ke=Xt.escapeControlCharacters),"escapeUnicodeCharacters"in Xt&&n(8,ye=Xt.escapeUnicodeCharacters),"flattenColumns"in Xt&&n(9,Ye=Xt.flattenColumns),"parser"in Xt&&n(10,lt=Xt.parser),"validator"in Xt&&n(11,Vt=Xt.validator),"validationParser"in Xt&&n(12,Nt=Xt.validationParser),"pathParser"in Xt&&n(13,kt=Xt.pathParser),"onRenderValue"in Xt&&n(14,qt=Xt.onRenderValue),"onClassName"in Xt&&n(15,wt=Xt.onClassName),"onRenderMenu"in Xt&&n(16,Dt=Xt.onRenderMenu),"onRenderContextMenu"in Xt&&n(17,ut=Xt.onRenderContextMenu),"onSortModal"in Xt&&n(18,Ut=Xt.onSortModal),"onTransformModal"in Xt&&n(19,$t=Xt.onTransformModal)},t.$$.update=function(){1048576&t.$$.dirty[0]&&n(24,i=Ur(st)||et),1048576&t.$$.dirty[0]&&n(38,r=st.flatMap(function(Xt){return Xt.relativePath})),128&t.$$.dirty[1]&&n(26,s=Zs(r)?"(document root)":yu(r)),1024&t.$$.dirty[0]&&n(25,a=b_(lt.parse))},[S,D,z,$,W,re,se,ke,ye,Ye,lt,Vt,Nt,kt,qt,wt,Dt,ut,Ut,$t,st,u,d,gt,i,a,s,function(){if(m("handleApply"),!S)try{n(23,gt=void 0);var An=i.content,_n=[{op:"replace",path:de(i.relativePath),value:Mee(An,lt).json}];if(st.length>1){var wi={json:xe(Mee(st[st.length-2].content,lt).json,_n)},zi=yn(yn({},st[st.length-2]||et),{},{content:wi});n(20,st=[].concat(Ts(st.slice(0,st.length-2)),[zi])),El().then(Hn)}else x(_n),Lt()}catch(Zn){n(23,gt=String(Zn))}},on,function(){d?n(22,d=!1):on()},function(Xt){m("handleChange",Xt);var An=yn(yn({},i),{},{content:Xt});n(20,st=[].concat(Ts(Ls(st)),[An]))},function(Xt){m("handleChangeSelection",Xt);var An=yn(yn({},i),{},{selection:Xt});n(20,st=[].concat(Ts(Ls(st)),[An]))},function(Xt){m("handleChangeMode",Xt);var An=yn(yn({},i),{},{mode:Xt});n(20,st=[].concat(Ts(Ls(st)),[An]))},function(Xt){n(23,gt=Xt.toString()),console.error(Xt)},function(Xt){var An=Xt.content,_n=Xt.path;m("handleJSONEditorModal",{content:An,path:_n});var Zt={mode:sn(An),content:An,selection:null,relativePath:_n};n(20,st=[].concat(Ts(st),[Zt]))},_,y,x,r,function(Xt){n(22,d=Xt)},function(Xt){Vs[Xt?"unshift":"push"](function(){n(21,u=Xt)})}]}var Y$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,K$e,X$e,gs,{content:35,path:36,onPatch:37,readOnly:0,indentation:1,tabSize:2,mainMenuBar:3,navigationBar:4,statusBar:5,askToFormat:6,escapeControlCharacters:7,escapeUnicodeCharacters:8,flattenColumns:9,parser:10,validator:11,validationParser:12,pathParser:13,onRenderValue:14,onClassName:15,onRenderMenu:16,onRenderContextMenu:17,onSortModal:18,onTransformModal:19},G$e,[-1,-1]),i}return br(e,Cr),pr(e)}();function Q$e(t,e,n){var i=V1("simple-modal");return[i.open,i.close]}var J$e=function(t){function e(n){var i;return hr(this,e),yr(i=_r(this,e),n,Q$e,null,gs,{open:0,close:1}),i}return br(e,Cr),pr(e,[{key:"open",get:function(){return this.$$.ctx[0]}},{key:"close",get:function(){return this.$$.ctx[1]}}])}();function Z$e(t){as(t,"svelte-ybuk0j",'.jse-main.svelte-ybuk0j{width:100%;height:100%;min-width:0;min-height:150px;font-family:var(--jse-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);font-size:var(--jse-font-size, 16px);line-height:normal;position:relative;display:flex;flex-direction:row}')}function ase(t){var e,n;return e=new ise({props:{mode:t[1],content:t[0],selection:t[2],readOnly:t[3],indentation:t[4],tabSize:t[5],statusBar:t[8],askToFormat:t[9],mainMenuBar:t[6],navigationBar:t[7],escapeControlCharacters:t[10],escapeUnicodeCharacters:t[11],flattenColumns:t[12],parser:t[13],parseMemoizeOne:t[27],validator:t[14],validationParser:t[15],pathParser:t[16],insideModal:!1,onError:t[21],onChange:t[28],onChangeMode:t[32],onSelect:t[29],onRenderValue:t[17],onClassName:t[18],onFocus:t[30],onBlur:t[31],onRenderMenu:t[19],onRenderContextMenu:t[20],onSortModal:t[34],onTransformModal:t[33],onJSONEditorModal:t[35]}}),t[62](e),{c:function(){Nn(e.$$.fragment)},m:function(r,s){zn(e,r,s),n=!0},p:function(r,s){var a={};2&s[0]&&(a.mode=r[1]),1&s[0]&&(a.content=r[0]),4&s[0]&&(a.selection=r[2]),8&s[0]&&(a.readOnly=r[3]),16&s[0]&&(a.indentation=r[4]),32&s[0]&&(a.tabSize=r[5]),256&s[0]&&(a.statusBar=r[8]),512&s[0]&&(a.askToFormat=r[9]),64&s[0]&&(a.mainMenuBar=r[6]),128&s[0]&&(a.navigationBar=r[7]),1024&s[0]&&(a.escapeControlCharacters=r[10]),2048&s[0]&&(a.escapeUnicodeCharacters=r[11]),4096&s[0]&&(a.flattenColumns=r[12]),8192&s[0]&&(a.parser=r[13]),134217728&s[0]&&(a.parseMemoizeOne=r[27]),16384&s[0]&&(a.validator=r[14]),32768&s[0]&&(a.validationParser=r[15]),65536&s[0]&&(a.pathParser=r[16]),2097152&s[0]&&(a.onError=r[21]),131072&s[0]&&(a.onRenderValue=r[17]),262144&s[0]&&(a.onClassName=r[18]),524288&s[0]&&(a.onRenderMenu=r[19]),1048576&s[0]&&(a.onRenderContextMenu=r[20]),e.$set(a)},i:function(r){n||(Me(e.$$.fragment,r),n=!0)},o:function(r){je(e.$$.fragment,r),n=!1},d:function(r){t[62](null),Rn(e,r)}}}function eUe(t){var e,n,i,r,s,a=t[22];function u(_){t[61](_)}var d={};void 0!==t[25]&&(d.open=t[25]),e=new J$e({props:d}),Vs.push(function(){return J2(e,"open",u)});var m=ase(t);return{c:function(){Nn(e.$$.fragment),i=gn(),r=pt("div"),m.c(),ce(r,"class","jse-main svelte-ybuk0j"),$n(r,"jse-focus",t[23])},m:function(_,y){zn(e,_,y),Ht(_,i,y),Ht(_,r,y),m.m(r,null),s=!0},p:function(_,y){var x={};!n&&33554432&y[0]&&(n=!0,x.open=_[25],Q2(function(){return n=!1})),e.$set(x),4194304&y[0]&&gs(a,a=_[22])?(si(),je(m,1,1,hi),oi(),(m=ase(_)).c(),Me(m,1),m.m(r,null)):m.p(_,y),(!s||8388608&y[0])&&$n(r,"jse-focus",_[23])},i:function(_){s||(Me(e.$$.fragment,_),Me(m),s=!0)},o:function(_){je(e.$$.fragment,_),je(m),s=!1},d:function(_){_&&(At(i),At(r)),Rn(e,_),m.d(_)}}}function tUe(t){var e,n;return e=new uee({props:{closeOnEsc:!1,$$slots:{default:[eUe]},$$scope:{ctx:t}}}),{c:function(){Nn(e.$$.fragment)},m:function(i,r){zn(e,i,r),n=!0},p:function(i,r){var s={};201326591&r[0]|8&r[2]&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i:function(i){n||(Me(e.$$.fragment,i),n=!0)},o:function(i){je(e.$$.fragment,i),n=!1},d:function(i){Rn(e,i)}}}function nUe(t){for(var e,n,i,r=[{show:null===(e=t[26])||void 0===e?void 0:e.component},wze,{closeOnEsc:!1}],s={$$slots:{default:[tUe]},$$scope:{ctx:t}},a=0;a{class t{constructor(){this._destroyRef=(0,V.WQX)(V.abz),this._el=(0,V.WQX)(V.aKT),this._themeService=(0,V.WQX)(Re.F),this._cancelWriteValue$=new De.B,this.data=null,this.mainMenuBar=!0,this.navigationBar=!0,this.statusBar=!0,this.onEditing=new V.bkB,this.jsonEditor=null}ngOnChanges(n){const{data:i}=n;if(i&&this.jsonEditor){this._cancelWriteValue$.next();try{(0,pe.O)(100).pipe((0,Ee.s)(1),(0,be.M)(()=>this.jsonEditor?.set(i.currentValue)),(0,me.Q)(this._cancelWriteValue$)).subscribe()}catch(r){console.error(r)}}}ngAfterViewInit(){(0,pe.O)(200).pipe((0,be.M)(()=>{this._initEditor(),this._darkThemeEvent()}),(0,oe.pQ)(this._destroyRef)).subscribe()}ngOnDestroy(){this.jsonEditor?.destroy()}_initEditor(){if(typeof window>"u")return;const i=this._el.nativeElement.querySelector(".json-editor");this.jsonEditor=new sUe({target:i,props:{mode:A1.text,content:this.data||void 0,mainMenuBar:this.mainMenuBar,navigationBar:this.navigationBar,statusBar:this.statusBar,onChange:(r,s,a)=>{const u=function hUe(t){let e=null;if(!t)return{json:e};if("json"in t&&(e=t.json),"text"in t)try{e=JSON.parse(t.text||"null")}catch{}return{json:e}}(r);this.onEditing.emit(u.json)}}})}_darkThemeEvent(){if(typeof window>"u")return;let n=0;const i=()=>{this.jsonEditor&&"function"==typeof this.jsonEditor.refresh&&this.jsonEditor.refresh()},r=(d=!1)=>{const _=this._el.nativeElement.querySelector(".json-editor");d?_.classList.add("jse-theme-dark"):_.classList.remove("jse-theme-dark"),window.clearTimeout(n),n=window.setTimeout(()=>i())},s=window.matchMedia("(prefers-color-scheme: dark)"),a=(0,Te.R)(s,"change",{passive:!0}).pipe((0,Ve.T)(d=>d.matches),(0,be.M)(d=>r(d))),u=this._themeService.theme$.pipe((0,ze.F)(),(0,be.M)(d=>r("dark"===d)));(0,vt.h)(a,u).pipe((0,oe.pQ)(this._destroyRef)).subscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V.VBU({type:t,selectors:[["app-playground-editor"]],inputs:{data:"data",mainMenuBar:"mainMenuBar",navigationBar:"navigationBar",statusBar:"statusBar"},outputs:{onEditing:"onEditing"},standalone:!0,features:[V.OA$,V.aNF],decls:3,vars:2,consts:[[3,"ngClass"],[1,"flex","flex-col","h-full"],[1,"flex-1","flex","flex-col","h-full","overflow-auto","json-editor","beauty-scrollbar","affect-child"]],template:function(i,r){1&i&&(V.j41(0,"div",0)(1,"div",1),V.nrm(2,"div",2),V.k0s()()),2&i&&V.Y8G("ngClass",V.lJ4(1,pUe))},dependencies:[o.MD,o.YU],styles:[".json-editor[_ngcontent-%COMP%]{--jse-theme-color: var(--primary-600);--jse-theme-color-highlight: var(--primary-500);--jse-menu-color: var(--primary-100)}.json-editor.jse-theme-dark[_ngcontent-%COMP%]{--jse-theme-color: var(--primary-200);--jse-menu-color: var(--primary-800)}"]})}return t})()},3503:(vn,J,F)=>{"use strict";F.d(J,{F:()=>be});var g=F(2978),o=F(5981),V=F(756),oe=F(8129),De=F(3527),pe=F(199),Ee=F(965);let be=(()=>{class me{constructor(){this._renderer2=(0,g.WQX)(g._9s).createRenderer(null,null),this.themes=[{key:"light",class:"bi bi-brightness-high-fill"},{key:"dark",class:"bi bi-moon-stars-fill"}],this.theme$=new o.t("auto")}get savedTheme(){return typeof window>"u"?"":window.localStorage.getItem("theme")||""}set savedTheme(Ve){typeof window>"u"||window.localStorage.setItem("theme",Ve)}get currentTheme(){return this.themes.find(Ve=>Ve.key===this.savedTheme)||this.themes[0]}prefersDark$(){if(typeof window>"u")return(0,V.of)(!1);const Ve=window.matchMedia("(prefers-color-scheme: dark)"),ze=(0,oe.R)(Ve,"change",{passive:!0}).pipe((0,De.T)(Re=>Re));return(0,pe.z)([(0,V.of)(Ve),ze]).pipe((0,Ee.Z)([Ve,Ve]),(0,De.T)(([Re,tt])=>Re.matches||tt.matches))}setTheme(Ve,ze){const vt=de=>document.head.querySelector(`#${de}`),Re=de=>{const Fe=this._renderer2.createElement("link");return this._renderer2.setProperty(Fe,"id",de),this._renderer2.setProperty(Fe,"rel","stylesheet"),this._renderer2.setProperty(Fe,"href",ze),this._renderer2.insertBefore(document.head,Fe,document.head.childNodes[0]),Fe},tt=vt(Ve);if(tt){const de=vt(`${Ve}-next`),Fe=de??Re(`${Ve}-next`);de&&this._renderer2.setProperty(de,"href",ze),Fe.onload=()=>{tt.remove(),this._renderer2.setAttribute(Fe,"id",Ve)}}else Re(Ve)}static#e=this.\u0275fac=function(ze){return new(ze||me)};static#t=this.\u0275prov=g.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})()},2568:(vn,J,F)=>{"use strict";F.d(J,{S:()=>De});var g=F(6610),o=F(5764),V=F(2978);const oe=["*"];let De=(()=>{class pe{constructor(){this.maxWidth="85rem",this.fadeUp=!0}get _maxWidth(){return this.maxWidth}static#e=this.\u0275fac=function(me){return new(me||pe)};static#t=this.\u0275cmp=V.VBU({type:pe,selectors:[["ui-content-wrapper"]],hostVars:3,hostBindings:function(me,Te){2&me&&(V.zvX("@fade-up",Te.fadeUp),V.xc7("max-width",Te._maxWidth))},inputs:{maxWidth:"maxWidth"},standalone:!0,features:[V.aNF],ngContentSelectors:oe,decls:1,vars:0,template:function(me,Te){1&me&&(V.NAR(),V.SdG(0))},dependencies:[g.MD],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;margin-left:auto;margin-right:auto}"],data:{animation:[o.k]}})}return pe})()},1938:(vn,J,F)=>{"use strict";F.d(J,{I:()=>be});var g=F(6409),o=F(2978),V=F(5981),oe=F(7236),De=F(4526),pe=F(756),Ee=F(3527);let be=(()=>{class me{constructor(){this._http=(0,o.WQX)(g.Qq),this.versions=["v8"],this.docVersion="v8",this.versions$=new V.t([])}loadVersions$(){return this._npmPackageVersions$().pipe((0,oe.M)(Ve=>{this.versions$.next(Ve.map(ze=>({label:`v${ze}`,value:`v${ze.slice(0,1)}`})))}),(0,De.W)(()=>(0,pe.of)(["Latest"])))}firstContentPath$(Ve){return this._http.get(Ve,{responseType:"text"}).pipe((0,Ee.T)(ze=>ze.match(/(\.+\/){1,}.+/)?.[0]),(0,Ee.T)(ze=>ze?.replace(/(\.*\/){1,}/,"docs/")??""),(0,De.W)(()=>(0,pe.of)("")))}_npmPackageVersions$(){return this._http.get("https://registry.npmjs.org/ng-dynamic-json-form",{responseType:"json"}).pipe((0,Ee.T)(Ve=>Object.values(Ve.versions).filter(de=>!de.deprecated).map(de=>de.version).reduce((de,Fe)=>{const _t=de.findIndex(at=>at[0]===Fe[0]);return _t<0?de.push(Fe):de[_t]=Fe,de},[])))}static#e=this.\u0275fac=function(ze){return new(ze||me)};static#t=this.\u0275prov=o.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})()},690:(vn,J,F)=>{"use strict";var g=F(6098),o=F(6610),V=F(2978),oe=F(9090),De=F(2489),pe=F(2831),Ee=F(3527);const be={schedule(ue,j){const N=setTimeout(ue,j);return()=>clearTimeout(N)},scheduleBeforeRender(ue){if(typeof window>"u")return be.schedule(ue,0);if(typeof window.requestAnimationFrame>"u")return be.schedule(ue,16);const j=window.requestAnimationFrame(ue);return()=>window.cancelAnimationFrame(j)}};let vt;function at(ue,j,N){let K=N;return function Te(ue){return!!ue&&ue.nodeType===Node.ELEMENT_NODE}(ue)&&j.some((ve,Xe)=>!("*"===ve||!function Re(ue,j){if(!vt){const N=Element.prototype;vt=N.matches||N.matchesSelector||N.mozMatchesSelector||N.msMatchesSelector||N.oMatchesSelector||N.webkitMatchesSelector}return ue.nodeType===Node.ELEMENT_NODE&&vt.call(ue,j)}(ue,ve)||(K=Xe,0))),K}class he{constructor(j,N){this.componentFactory=N.get(V.OM3).resolveComponentFactory(j)}create(j){return new He(this.componentFactory,j)}}class He{constructor(j,N){this.componentFactory=j,this.injector=N,this.eventEmitters=new oe.m(1),this.events=this.eventEmitters.pipe((0,pe.n)(K=>(0,De.h)(...K))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:K})=>K)),this.ngZone=this.injector.get(V.SKi),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(j){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(j)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=be.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(j){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(j):this.componentRef.instance[j])}setInputValue(j,N,K){this.runInZone(()=>{K&&(N=K.call(this.componentRef?.instance,N)),null!==this.componentRef?function tt(ue,j){return ue===j||ue!=ue&&j!=j}(N,this.getInputValue(j))&&(void 0!==N||!this.unchangedInputs.has(j))||(this.recordInputChange(j,N),this.unchangedInputs.delete(j),this.hasInputChanges=!0,this.componentRef.instance[j]=N,this.scheduleDetectChanges()):this.initialInputValues.set(j,N)})}initializeComponent(j){const N=V.zZn.create({providers:[],parent:this.injector}),K=function _t(ue,j){const N=ue.childNodes,K=j.map(()=>[]);let ve=-1;j.some((Xe,Ft)=>"*"===Xe&&(ve=Ft,!0));for(let Xe=0,Ft=N.length;Xe{this.initialInputValues.has(j)&&this.setInputValue(j,this.initialInputValues.get(j),N)}),this.initialInputValues.clear()}initializeOutputs(j){const N=this.componentFactory.outputs.map(({propName:K,templateName:ve})=>j.instance[K].pipe((0,Ee.T)(Ft=>({name:ve,value:Ft}))));this.eventEmitters.next(N)}callNgOnChanges(j){if(!this.implementsOnChanges||null===this.inputChanges)return;const N=this.inputChanges;this.inputChanges=null,j.instance.ngOnChanges(N)}markViewForCheck(j){this.hasInputChanges&&(this.hasInputChanges=!1,j.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=be.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(j,N){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const K=this.inputChanges[j];if(K)return void(K.currentValue=N);const ve=this.unchangedInputs.has(j),Xe=ve?void 0:this.getInputValue(j);this.inputChanges[j]=new V.FRM(Xe,N,ve)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(j){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(j):j()}}class Se extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}var jt=F(1040),Wt=F(8129),wn=F(8448),Wn=F(8283),di=F(8887),ai=F(7236),Li=F(2194),$i=F(4952);function Hr(ue,j){if(1&ue&&V.eu8(0,9),2&ue){V.XpG();const N=V.sdS(44);V.Y8G("ngTemplateOutlet",N)}}function ui(ue,j){1&ue&&(V.qex(0),V.nrm(1,"input",10),V.bVm())}function dn(ue,j){if(1&ue&&V.eu8(0,9),2&ue){V.XpG();const N=V.sdS(44);V.Y8G("ngTemplateOutlet",N)}}function nt(ue,j){1&ue&&(V.j41(0,"div",11)(1,"span"),V.EFF(2,"Description"),V.k0s(),V.j41(3,"div",1)(4,"span"),V.EFF(5,"descriptionClass"),V.k0s(),V.j41(6,"span"),V.EFF(7,"descriptionStyles"),V.k0s()()())}const ht=function(ue){return{"no-tags":ue}};let Je=(()=>{class ue{constructor(){this.isFormGroup="false",this.descriptionPosition="before",this.showTags="true"}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-input-layout-illustration"]],inputs:{isFormGroup:"isFormGroup",descriptionPosition:"descriptionPosition",showTags:"showTags"},standalone:!0,features:[V.aNF],decls:45,vars:9,consts:[[1,"host","text-sm","md:text-base",3,"ngClass"],[1,"tags"],[1,"label"],[1,"content"],[3,"ngTemplateOutlet",4,"ngIf"],[1,"input-area"],[4,"ngIf"],[1,"error"],["descriptionTemplate",""],[3,"ngTemplateOutlet"],["type","text",1,"doc-form-element"],[1,"description"]],template:function(K,ve){1&K&&(V.j41(0,"div",0)(1,"span"),V.EFF(2,"Host"),V.k0s(),V.j41(3,"div",1)(4,"span"),V.EFF(5,"hostClass"),V.k0s(),V.j41(6,"span"),V.EFF(7,"hostStyles"),V.k0s()(),V.j41(8,"div",2)(9,"span"),V.EFF(10,"Label"),V.k0s(),V.j41(11,"div",1)(12,"span"),V.EFF(13,"labelClass"),V.k0s(),V.j41(14,"span"),V.EFF(15,"labelStyles"),V.k0s()()(),V.j41(16,"div",3)(17,"span"),V.EFF(18,"Content"),V.k0s(),V.j41(19,"div",1)(20,"span"),V.EFF(21,"contentClass"),V.k0s(),V.j41(22,"span"),V.EFF(23,"contentStyles"),V.k0s()(),V.DNE(24,Hr,1,1,"ng-container",4),V.j41(25,"div",5)(26,"span"),V.EFF(27),V.k0s(),V.j41(28,"div",1)(29,"span"),V.EFF(30),V.k0s(),V.j41(31,"span"),V.EFF(32),V.k0s()(),V.DNE(33,ui,2,0,"ng-container",6),V.k0s(),V.DNE(34,dn,1,1,"ng-container",4),V.j41(35,"div",7)(36,"span"),V.EFF(37,"Error"),V.k0s(),V.j41(38,"div",1)(39,"span"),V.EFF(40,"errorClass"),V.k0s(),V.j41(41,"span"),V.EFF(42,"errorStyles"),V.k0s()()()()(),V.DNE(43,nt,8,0,"ng-template",null,8,V.C5r)),2&K&&(V.Y8G("ngClass",V.eq3(7,ht,"false"===ve.showTags)),V.R7$(24),V.Y8G("ngIf","before"===ve.descriptionPosition),V.R7$(3),V.JRh("true"===ve.isFormGroup?"Form Group":"Input Area"),V.R7$(3),V.SpI("","true"===ve.isFormGroup?"formGroup":"inputArea","Class"),V.R7$(2),V.SpI("","true"===ve.isFormGroup?"formGroup":"inputArea","Styles"),V.R7$(1),V.Y8G("ngIf","false"===ve.isFormGroup),V.R7$(1),V.Y8G("ngIf","after"===ve.descriptionPosition))},dependencies:[o.MD,o.YU,o.bT,o.T3],styles:["[_nghost-%COMP%]{--layoutBgColor: white}.no-tags[_ngcontent-%COMP%] .tags[_ngcontent-%COMP%]{display:none!important}.host[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(112,57,154);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(112,57,154) 5%,var(--layoutBgColor));color:#70399a;z-index:0}.host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(112,57,154) 20%,var(--body-bg-color));font-size:.95rem}.description[_ngcontent-%COMP%], .input-area[_ngcontent-%COMP%]{position:relative;border:solid 1px #2d2d2d;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#2d2d2d 5%,var(--layoutBgColor));color:#2d2d2d;z-index:0}.description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#2d2d2d 20%,var(--body-bg-color));font-size:.95rem}.label[_ngcontent-%COMP%]{position:relative;border:solid 1px #4d9471;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#4d9471 5%,var(--layoutBgColor));color:#4d9471;z-index:0}.label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#4d9471 20%,var(--body-bg-color));font-size:.95rem}.content[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(24,108,244);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(24,108,244) 5%,var(--layoutBgColor));color:#186cf4;z-index:0}.content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(24,108,244) 20%,var(--body-bg-color));font-size:.95rem}input[_ngcontent-%COMP%]{border:solid 1px var(--border-color-50);margin:1rem 0}.error[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(255,42,0);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(255,42,0) 5%,var(--layoutBgColor));color:#ff2a00;z-index:0}.error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}.error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(255,42,0) 20%,var(--body-bg-color));font-size:.95rem}html.dark [_nghost-%COMP%]{--layoutBgColor: rgba(0, 0, 0, .5)}html.dark[_nghost-%COMP%] .host[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .host[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(163,127,191);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(163,127,191) 5%,var(--layoutBgColor));color:#a37fbf;z-index:0}html.dark[_nghost-%COMP%] .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(163,127,191) 20%,var(--body-bg-color));font-size:.95rem}html.dark[_nghost-%COMP%] .description[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .description[_ngcontent-%COMP%], html.dark[_nghost-%COMP%] .input-area[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .input-area[_ngcontent-%COMP%]{position:relative;border:solid 1px #9b9b9b;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#9b9b9b 5%,var(--layoutBgColor));color:#9b9b9b;z-index:0}html.dark[_nghost-%COMP%] .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark[_nghost-%COMP%] .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark[_nghost-%COMP%] .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#9b9b9b 20%,var(--body-bg-color));font-size:.95rem}html.dark[_nghost-%COMP%] .label[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .label[_ngcontent-%COMP%]{position:relative;border:solid 1px #4fae7e;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#4fae7e 5%,var(--layoutBgColor));color:#4fae7e;z-index:0}html.dark[_nghost-%COMP%] .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#4fae7e 20%,var(--body-bg-color));font-size:.95rem}html.dark[_nghost-%COMP%] .content[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .content[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(111,159,235);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(111,159,235) 5%,var(--layoutBgColor));color:#6f9feb;z-index:0}html.dark[_nghost-%COMP%] .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(111,159,235) 20%,var(--body-bg-color));font-size:.95rem}html.dark[_nghost-%COMP%] .error[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .error[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(225,114,94);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(225,114,94) 5%,var(--layoutBgColor));color:#e1725e;z-index:0}html.dark[_nghost-%COMP%] .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}html.dark[_nghost-%COMP%] .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], html.dark [_nghost-%COMP%] .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(225,114,94) 20%,var(--body-bg-color));font-size:.95rem}@media (prefers-color-scheme: dark){:root:not(.light) [_nghost-%COMP%]{--layoutBgColor: rgba(0, 0, 0, .5)}[_ngcontent-%COMP%]:root:not(.light) .host[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(163,127,191);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(163,127,191) 5%,var(--layoutBgColor));color:#a37fbf;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .host[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(163,127,191) 20%,var(--body-bg-color));font-size:.95rem}[_ngcontent-%COMP%]:root:not(.light) .description[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root:not(.light) .input-area[_ngcontent-%COMP%]{position:relative;border:solid 1px #9b9b9b;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#9b9b9b 5%,var(--layoutBgColor));color:#9b9b9b;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root:not(.light) .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .description[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root:not(.light) .input-area[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#9b9b9b 20%,var(--body-bg-color));font-size:.95rem}[_ngcontent-%COMP%]:root:not(.light) .label[_ngcontent-%COMP%]{position:relative;border:solid 1px #4fae7e;border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,#4fae7e 5%,var(--layoutBgColor));color:#4fae7e;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .label[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,#4fae7e 20%,var(--body-bg-color));font-size:.95rem}[_ngcontent-%COMP%]:root:not(.light) .content[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(111,159,235);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(111,159,235) 5%,var(--layoutBgColor));color:#6f9feb;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .content[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(111,159,235) 20%,var(--body-bg-color));font-size:.95rem}[_ngcontent-%COMP%]:root:not(.light) .error[_ngcontent-%COMP%]{position:relative;border:solid 1px rgb(225,114,94);border-radius:.25rem;padding:.5rem .85rem;margin:.5rem 0;background-color:color-mix(in srgb,rgb(225,114,94) 5%,var(--layoutBgColor));color:#e1725e;z-index:0}[_ngcontent-%COMP%]:root:not(.light) .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%]{display:inline-flex;flex-wrap:wrap;gap:.5rem;margin:0 1rem}[_ngcontent-%COMP%]:root:not(.light) .error[_ngcontent-%COMP%] > .tags[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:.2rem 1rem;border-radius:1rem;background-color:color-mix(in srgb,rgb(225,114,94) 20%,var(--body-bg-color));font-size:.95rem}}"]})}return ue})();function Ae(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.j41(1,"button",3),V.bIt("click",function(){V.eBV(N);const ve=V.XpG();return V.Njj(ve.copyToClipboard())}),V.nrm(2,"i",4),V.k0s(),V.bVm()}}const Ue=["*"];let Ze=(()=>{class ue{constructor(){this._el=(0,V.WQX)(V.aKT),this.enableCopy=!0}copyToClipboard(){const ve=this._el.nativeElement.querySelector(".code-container")?.innerText;typeof window>"u"||ve&&window.navigator.clipboard.writeText(ve)}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-doc-code"]],inputs:{enableCopy:"enableCopy"},standalone:!0,features:[V.aNF],ngContentSelectors:Ue,decls:4,vars:1,consts:[[1,"content","relative","z-0","duration-300"],[1,"code-container"],[4,"ngIf"],[1,"btn-copy","absolute","z-10","top-2","right-2","p-2","bg-gray-600/30","backdrop-blur-sm","rounded-lg","text-white",3,"click"],[1,"bi","bi-copy"]],template:function(K,ve){1&K&&(V.NAR(),V.j41(0,"div",0)(1,"div",1),V.SdG(2),V.k0s(),V.DNE(3,Ae,3,0,"ng-container",2),V.k0s()),2&K&&(V.R7$(3),V.Y8G("ngIf",!0===ve.enableCopy))},dependencies:[o.MD,o.bT],styles:[".content[_ngcontent-%COMP%] .btn-copy[_ngcontent-%COMP%]{opacity:0;transition:.25s}.content[_ngcontent-%COMP%]:hover .btn-copy[_ngcontent-%COMP%]{opacity:1}"]})}return ue})();var H=F(7316);function te(ue,j){if(1&ue&&(V.qex(0),V.j41(1,"span",3),V.EFF(2),V.k0s(),V.bVm()),2&ue){const N=V.XpG();V.R7$(2),V.JRh(N.tabs[0])}}const xe=function(ue,j,N){return{"border-transparent":ue,"border-[var(--primary-500)]":j,"opacity-60":N}};function Ce(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.j41(1,"button",5),V.bIt("click",function(){const Xe=V.eBV(N).$implicit,Ft=V.XpG(2);return V.Njj(Ft.toggleTab(Xe))}),V.EFF(2),V.k0s(),V.bVm()}if(2&ue){const N=j.$implicit,K=V.XpG(2);V.R7$(1),V.Y8G("ngClass",V.sMw(2,xe,N!==K.activeTab,N===K.activeTab,N!==K.activeTab)),V.R7$(1),V.SpI(" ",N," ")}}function zt(ue,j){if(1&ue&&(V.qex(0),V.DNE(1,Ce,3,6,"ng-container",4),V.bVm()),2&ue){const N=V.XpG();V.R7$(1),V.Y8G("ngForOf",N.tabs)}}const rt=["*"];let xt=(()=>{class ue{constructor(){this._el=(0,V.WQX)(V.aKT),this._renderer2=(0,V.WQX)(V.sFG),this.children=[],this.tabs=[],this.activeTab=""}ngAfterViewInit(){this.children=Array.from(this._el.nativeElement.querySelectorAll(":scope > .content > *")),this.children.forEach((K,ve)=>{const Xe=K.getAttribute("name");Xe&&(this.tabs.push(Xe),0===ve&&this.toggleTab(Xe))}),this._listenChildrenMutation()}ngOnDestroy(){this._resizeObserver?.disconnect()}toggleTab(N){this.activeTab=N,this.children.forEach(K=>{K.getAttribute("name")&&(K.getAttribute("name")===N?(K.classList.add("block"),K.classList.remove("hidden"),this._updateContainerHeight()):(K.classList.add("hidden"),K.classList.remove("block")))})}_listenChildrenMutation(){this._resizeObserver=new ResizeObserver(()=>{this._updateContainerHeight()}),this.children.forEach(K=>{this._resizeObserver?.observe(K)})}_updateContainerHeight(){const K=this._el.nativeElement.querySelector(".content"),ve=this.children.find(Xe=>Xe.getAttribute("name")===this.activeTab);ve&&this._renderer2.setStyle(K,"height",ve.scrollHeight+"px")}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-doc-tab"]],standalone:!0,features:[V.aNF],ngContentSelectors:rt,decls:5,vars:2,consts:[[1,"flex","bg-gray-700/10","backdrop-blur-sm"],[4,"ngIf"],[1,"content","relative","z-0","duration-300"],[1,"p-3","px-5","pb-2"],[4,"ngFor","ngForOf"],[1,"p-3","px-5","pb-2","border-b-2","duration-200",3,"ngClass","click"]],template:function(K,ve){1&K&&(V.NAR(),V.j41(0,"div",0),V.DNE(1,te,3,1,"ng-container",1),V.DNE(2,zt,2,1,"ng-container",1),V.k0s(),V.j41(3,"div",2),V.SdG(4),V.k0s()),2&K&&(V.R7$(1),V.Y8G("ngIf",1===ve.tabs.length),V.R7$(1),V.Y8G("ngIf",ve.tabs.length>1))},dependencies:[o.MD,o.YU,o.Sq,o.bT]})}return ue})();var Gt=F(3090),xn=F(2709),In=F(8303),xi=F(9062),or=F(9545),ci=F(728),Dr=F(6457),Tr=F(504),cn=F(2325),On=F(4196),Qn=F(4183);function fi(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.j41(1,"input",6),V.bIt("input",function(ve){V.eBV(N);const Xe=V.XpG().$implicit,Ft=V.XpG(2);return V.Njj(Ft.updateStyle(Xe,ve))}),V.k0s(),V.bVm()}if(2&ue){const N=V.XpG().$implicit;V.R7$(1),V.Y8G("value",N.value)}}function qe(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.j41(1,"input",7),V.bIt("input",function(ve){V.eBV(N);const Xe=V.XpG().$implicit,Ft=V.XpG(2);return V.Njj(Ft.updateStyle(Xe,ve))}),V.k0s(),V.bVm()}if(2&ue){const N=V.XpG().$implicit;let K;V.R7$(1),V.Y8G("min",N.min)("max",N.max)("step",null!==(K=N.step)&&void 0!==K?K:"any")("value",N.value)}}function Mt(ue,j){if(1&ue&&(V.qex(0),V.j41(1,"div",5)(2,"span"),V.EFF(3),V.k0s(),V.j41(4,"span"),V.EFF(5),V.k0s(),V.DNE(6,fi,2,1,"ng-container",3),V.DNE(7,qe,2,4,"ng-container",3),V.k0s(),V.bVm()),2&ue){const N=j.$implicit,K=V.XpG(2);V.R7$(3),V.JRh(N.key),V.R7$(2),V.JRh(K.styles[N.key]),V.R7$(1),V.Y8G("ngIf","color"===N.type),V.R7$(1),V.Y8G("ngIf","range"===N.type)}}function Bt(ue,j){if(1&ue&&(V.qex(0),V.DNE(1,Mt,8,4,"ng-container",4),V.bVm()),2&ue){const N=V.XpG();V.R7$(1),V.Y8G("ngForOf",N.styleOptions)}}const hn=function(){return[]};let Mn=(()=>{class ue{constructor(){this._langService=(0,V.WQX)(Qn.g),this._configEn=[or.C,(0,In.r)(),Dr.Y,cn.C],this._configZhTW=[ci.m,xi.P,Tr.C,On.q],this.configs$=this._langService.language$.pipe((0,Ee.T)(N=>"en"===N?this._configEn:this._configZhTW)),this.styleOptions=[{key:"--color-primary",type:"color",value:"#3b82f6"},{key:"--color-primary-lighter",type:"color",value:"#8BADE4"},{key:"--color-description",type:"color",value:"#808080"},{key:"--color-error",type:"color",value:"#ff4747"},{key:"--color-border",type:"color",value:"#808080"},{key:"--font-size-title",type:"range",value:"1.2",unit:"em",min:.4,max:4,step:.01},{key:"--font-size-label",type:"range",value:"1",unit:"em",min:.4,max:3,step:.01},{key:"--font-size-description",type:"range",value:"0.925",unit:"em",min:.4,max:2.4,step:.01},{key:"--font-size-error",type:"range",value:"0.925",unit:"em",min:.4,max:2.4,step:.01},{key:"--font-weight-title",type:"range",value:"70",min:10,max:90,step:10},{key:"--font-weight-label",type:"range",value:"50",min:10,max:90,step:10},{key:"--input-border-width",type:"range",value:"1",unit:"px",min:1,max:5,step:1},{key:"--row-gap",type:"range",value:"1.5",unit:"em",min:0,max:5,step:.1},{key:"--column-gap",type:"range",value:"1",unit:"em",min:0,max:5,step:.1},{key:"--options-column-gap",type:"range",value:"1.85",unit:"em",min:0,max:5,step:.01},{key:"--options-row-gap",type:"range",value:"0.25",unit:"em",min:0,max:5,step:.01}],this.styles={},this.reseting=!1}ngOnInit(){this.resetStyles()}updateStyle(N,K){this.styles[N.key]=this._getStyleValue(N,K.target.value)}resetStyles(){this.reseting=!0,this.styles=[...this.styleOptions].reduce((N,K)=>(N[K.key]=this._getStyleValue(K),N),{}),window.setTimeout(()=>{this.reseting=!1})}_getStyleValue(N,K){const ve=(N.step??1)>=1?N.step:1,Xe=K??`${N.value}`;return"range"===N.type?`${parseFloat(Xe)*(ve??1)}${N.unit??""}`:Xe}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-form-style-tweaker"]],standalone:!0,features:[V.aNF],decls:7,vars:6,consts:[[3,"ngStyle","configs"],[1,"fixed","top-[calc(var(--header-height)+1rem)]","right-10","z-10"],[3,"click"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"grid","grid-cols-[220px_100px_1fr]"],["type","color",1,"doc-form-element",3,"value","input"],["type","range",1,"doc-form-element",3,"min","max","step","value","input"]],template:function(K,ve){if(1&K&&(V.j41(0,"div"),V.nrm(1,"ng-dynamic-json-form",0),V.nI1(2,"async"),V.j41(3,"div",1)(4,"button",2),V.bIt("click",function(){return ve.resetStyles()}),V.EFF(5,"RESET"),V.k0s(),V.DNE(6,Bt,2,1,"ng-container",3),V.k0s()()),2&K){let Xe;V.R7$(1),V.Y8G("ngStyle",ve.styles)("configs",null!==(Xe=V.bMT(2,3,ve.configs$))&&void 0!==Xe?Xe:V.lJ4(5,hn)),V.R7$(5),V.Y8G("ngIf",!ve.reseting)}},dependencies:[o.MD,o.Sq,o.bT,o.B3,o.Jj,xn.yz]})}return ue})();var Vi=F(8503),ni=F(6340),Qi=F(6104);const dr=function(){return["inline-flex","p-3 px-4","text-sm lg:text-base","word-keep whitespace-nowrap","duration-200 transition-[opacity]"]};function no(ue,j){if(1&ue&&(V.qex(0),V.j41(1,"a",3),V.EFF(2),V.k0s(),V.bVm()),2&ue){const N=j.$implicit;V.R7$(1),V.Y8G("ngClass",V.lJ4(4,dr))("routerLink","/"+N.route)("routerLinkActive","active"),V.R7$(1),V.JRh(N.label)}}const Ki=function(){return["relative z-0 flex gap-2","overflow-x-auto overflow-y-hidden hidden-scrollbar"]};let Ys=(()=>{class ue{constructor(N,K,ve){this._router=N,this._el=K,this._renderer2=ve,this.links=[],this._onDestroy$=new Qi.B}ngOnChanges(N){const{links:K}=N;K&&this._setIndicatorStyle()}ngAfterViewInit(){this._onRouteChange(),this._setIndicatorStyle()}ngOnDestroy(){this._onDestroy$.next(null),this._onDestroy$.complete()}_onRouteChange(){this._router.events.pipe((0,Vi.p)(N=>N instanceof jt.wF),(0,ai.M)(()=>this._setIndicatorStyle()),(0,ni.Q)(this._onDestroy$)).subscribe()}_findElement(N){return this._el.nativeElement.querySelector(N)}_setIndicatorStyle(){typeof window>"u"||requestAnimationFrame(()=>{const N=this._findElement(".indicator"),K=this._findElement("a.active");if(!N)return;if(!K)return void this._renderer2.setStyle(N,"opacity","0");const ve=this._findElement(".content")?parseFloat(window.getComputedStyle(this._findElement(".content")).paddingLeft):0,Xe=(this._findElement("a")?.getBoundingClientRect().x||0)-ve,Ft=K.getBoundingClientRect().x-Xe,I=.8*K.clientWidth,B=(K.clientWidth-I)/2;K.scrollIntoView({inline:"center",block:"nearest"}),this._renderer2.setStyle(N,"opacity","1"),this._renderer2.setStyle(N,"left",`${Ft+B}px`),this._renderer2.setStyle(N,"width",`${I}px`)})}static#e=this.\u0275fac=function(K){return new(K||ue)(V.rXU(jt.Ix),V.rXU(V.aKT),V.rXU(V.sFG))};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["header-tab-bar"]],inputs:{links:"links"},standalone:!0,features:[V.OA$,V.aNF],decls:3,vars:3,consts:[[3,"ngClass"],[4,"ngFor","ngForOf"],[1,"indicator"],[3,"ngClass","routerLink","routerLinkActive"]],template:function(K,ve){1&K&&(V.j41(0,"div",0),V.DNE(1,no,3,5,"ng-container",1),V.nrm(2,"span",2),V.k0s()),2&K&&(V.Y8G("ngClass",V.lJ4(2,Ki)),V.R7$(1),V.Y8G("ngForOf",ve.links))},dependencies:[o.MD,o.YU,o.Sq,jt.iI,jt.Wk,jt.wQ],styles:["a[_ngcontent-%COMP%]:hover, a.active[_ngcontent-%COMP%]{opacity:1;font-weight:700}.indicator[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;display:block;height:4px;border-radius:1rem;background-color:var(--primary-500);transition:.5s cubic-bezier(.54,-.49,0,1.32)}@media screen and (max-width: 992px){[_nghost-%COMP%]{overflow:hidden}}"]})}return ue})(),so=(()=>{class ue{constructor(){this._langService=(0,V.WQX)(Qn.g),this.language$=this._langService.language$}onLanguageSelect(N){this._switchLanguage(N.target.value)}_switchLanguage(N){this._langService.loadLanguageData$(N).pipe((0,ai.M)(()=>this._langService.setLanguage(N))).subscribe()}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-language-selector"]],standalone:!0,features:[V.aNF],decls:6,vars:3,consts:[[1,"doc-form-element","!px-4",3,"value","change"],["value","en"],["value","zh-TW"]],template:function(K,ve){1&K&&(V.j41(0,"select",0),V.bIt("change",function(Ft){return ve.onLanguageSelect(Ft)}),V.nI1(1,"async"),V.j41(2,"option",1),V.EFF(3,"English"),V.k0s(),V.j41(4,"option",2),V.EFF(5,"\u4e2d\u6587"),V.k0s()()),2&K&&V.Y8G("value",V.bMT(1,1,ve.language$))},dependencies:[o.MD,o.Jj],encapsulation:2})}return ue})();var zo=F(8832),qa=F(9990),xc=F(3503);const mo={primeng:{dark:"assets/primeng-theme/dark.css",light:"assets/primeng-theme/light.css"},material:{dark:"assets/material-theme/pink-bluegrey.css",light:"assets/material-theme/deeppurple-amber.css"},highlightJs:{dark:"assets/highlightjs-theme/atom-one-dark.min.css",light:"assets/highlightjs-theme/atom-one-light.min.css"}},io=function(){return["flex items-center justify-center p-4 lg:p-3","rounded-full text-xl md:text-base","bg-[var(--body-bg-color)]","hover:bg-[var(--primary-500)] hover:text-white","border border-[var(--border-color-25)] lg:border-0"]};let Wo=(()=>{class ue{constructor(){this._renderer2=(0,V.WQX)(V.sFG),this._themeService=(0,V.WQX)(xc.F),this._onDestroy$=new Qi.B,this.themes=this._themeService.themes,this.currentTheme=this._themeService.currentTheme}ngOnInit(){this.switchTheme(this.currentTheme.key),this._themeService.prefersDark$().pipe((0,qa.i)(1),(0,ai.M)(N=>this.switchTheme(N?"dark":"light")),(0,ni.Q)(this._onDestroy$)).subscribe()}switchTheme(N){if(typeof window>"u")return;const K=document.querySelector("html"),ve=this.themes.find(Xe=>N?Xe.key===N:Xe.key!==this.currentTheme.key);if(ve){this.currentTheme=ve,this._renderer2.setAttribute(K,"class",ve.key),this._themeService.theme$.next(ve.key),this._themeService.savedTheme=ve.key;for(const Xe in mo)this._themeService.setTheme(`${Xe}-theme`,mo[Xe][ve.key])}}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-theme-switcher"]],standalone:!0,features:[V.aNF],decls:2,vars:4,consts:[["type","button",3,"ngClass","click"]],template:function(K,ve){1&K&&(V.j41(0,"button",0),V.bIt("click",function(){return ve.switchTheme()}),V.nrm(1,"i"),V.k0s()),2&K&&(V.Y8G("ngClass",V.lJ4(3,io)),V.R7$(1),V.HbH(ve.currentTheme.class))},dependencies:[o.MD,o.YU,zo.YN],encapsulation:2})}return ue})();var ic=F(2568),jn=F(1938);function kn(ue,j){if(1&ue&&(V.qex(0),V.j41(1,"span",1),V.EFF(2),V.k0s(),V.bVm()),2&ue){const N=V.XpG();V.R7$(2),V.JRh(N.versions[0])}}let It=(()=>{class ue{constructor(){this._versionService=(0,V.WQX)(jn.I),this.versions=this._versionService.versions}changeVersion(N){window.location.href=`${window.location.origin}/ng-dynamic-json-form/${N.target.value}`}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["version-selector"]],standalone:!0,features:[V.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"lg:text-lg","font-light","capitalize","tracking-wider"]],template:function(K,ve){1&K&&V.DNE(0,kn,3,1,"ng-container",0),2&K&&V.Y8G("ngIf",1===ve.versions.length)},dependencies:[o.MD,o.bT],encapsulation:2})}return ue})(),Jt=(()=>{class ue{constructor(){this.links=[]}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-header-desktop"]],inputs:{links:"links"},standalone:!0,features:[V.aNF],decls:10,vars:3,consts:[[1,"header"],[1,"content-wrapper",3,"maxWidth"],[1,"flex","items-center","gap-1","mr-4"],[1,"logo",3,"routerLink"],["src","assets/logo.svg","alt",""],[1,"tab-bar",3,"links"],[1,"settings","ml-auto"]],template:function(K,ve){1&K&&(V.j41(0,"div",0)(1,"ui-content-wrapper",1)(2,"div",2)(3,"a",3),V.nrm(4,"img",4),V.k0s(),V.nrm(5,"version-selector"),V.k0s(),V.nrm(6,"header-tab-bar",5),V.j41(7,"div",6),V.nrm(8,"app-theme-switcher")(9,"app-language-selector"),V.k0s()()()),2&K&&(V.R7$(1),V.Y8G("maxWidth","var(--page-max-width)"),V.R7$(2),V.Y8G("routerLink","/"),V.R7$(3),V.Y8G("links",ve.links))},dependencies:[o.MD,jt.iI,jt.Wk,ic.S,Ys,Wo,so,It],styles:[".header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}.header[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{flex-direction:row}.header[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:block;width:3rem;padding:.5rem}.header[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]:after{content:none}.header[_ngcontent-%COMP%] .settings[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}"]})}return ue})();const Un=function(ue){return{active:ue}},yt=function(ue){return["grid","duration-200",ue]},ft=function(ue){return["relative z-0","grid grid-cols-[1fr,auto] items-center gap-5","py-4 pb-2","duration-300 delay-100",ue]};let Pt=(()=>{class ue{constructor(){this._layoutService=(0,V.WQX)(Li.Y),this.links=[],this.openSettings=!1,this.settingsOpened=new V.bkB}toggleSettings(){this.openSettings=!this.openSettings,this.settingsOpened.emit(this.openSettings),requestAnimationFrame(()=>{this._layoutService.updateHeaderHeight()})}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-header-mobile"]],inputs:{links:"links",openSettings:"openSettings"},outputs:{settingsOpened:"settingsOpened"},standalone:!0,features:[V.aNF],decls:12,vars:11,consts:[[1,"flex","gap-4","items-center"],[1,"flex","gap-2","shrink-0","h-6",3,"routerLink"],["src","assets/logo.svg","alt",""],[3,"links"],["type","button",1,"ml-auto","btn-menu",3,"ngClass","click"],[3,"ngClass"],[1,"overflow-hidden"]],template:function(K,ve){1&K&&(V.j41(0,"div",0)(1,"a",1),V.nrm(2,"img",2)(3,"version-selector"),V.k0s(),V.nrm(4,"header-tab-bar",3),V.j41(5,"button",4),V.bIt("click",function(){return ve.toggleSettings()}),V.nrm(6,"span"),V.k0s()(),V.j41(7,"div",5)(8,"div",6)(9,"div",5),V.nrm(10,"app-language-selector")(11,"app-theme-switcher"),V.k0s()()()),2&K&&(V.R7$(1),V.Y8G("routerLink","/"),V.R7$(3),V.Y8G("links",ve.links),V.R7$(1),V.Y8G("ngClass",V.eq3(5,Un,ve.openSettings)),V.R7$(2),V.Y8G("ngClass",V.eq3(7,yt,ve.openSettings?"grid-rows-[1fr]":"grid-rows-[0fr]")),V.R7$(2),V.Y8G("ngClass",V.eq3(9,ft,ve.openSettings?"opacity-100":"opacity-0")))},dependencies:[o.MD,o.YU,jt.iI,jt.Wk,Ys,Wo,so,It],styles:['.btn-menu[_ngcontent-%COMP%]{--line-weight: 2px;--line-color: gray;--btn-size: 1.5rem;width:var(--btn-size);height:var(--btn-size)}.btn-menu.active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:unset}.btn-menu.active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{top:0;transform:rotate(45deg)}.btn-menu.active[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{top:0;transform:rotate(-45deg)}.btn-menu[_ngcontent-%COMP%]:hover{background-color:unset}.btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative;display:block;width:100%;height:var(--line-weight);margin:0 auto;background-color:var(--line-color);border-radius:2rem;z-index:0;transition:.2s}.btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before, .btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;width:100%;height:var(--line-weight);background-color:var(--line-color);border-radius:2rem;transition:.2s}.btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{top:calc(var(--btn-size) / -3)}.btn-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:after{top:calc(var(--btn-size) / 3)}']})}return ue})();function Cn(ue,j){if(1&ue){const N=V.RV6();V.qex(0),V.nrm(1,"app-header-desktop",2),V.j41(2,"app-header-mobile",3),V.bIt("settingsOpened",function(ve){V.eBV(N);const Xe=V.XpG();return V.Njj(Xe.openSettings=ve)}),V.k0s(),V.bVm()}if(2&ue){const N=j.ngIf,K=V.XpG();V.R7$(1),V.Y8G("links",N),V.R7$(1),V.Y8G("links",N)("openSettings",K.openSettings)}}const pn=function(ue,j){return["header-container","p-3 px-7 lg:p-4 lg:pb-2","duration-200",ue,j]};let Di=(()=>{class ue{onWindowScroll(){typeof window>"u"||(this.showBackground=window.scrollY>0)}constructor(){this._el=(0,V.WQX)(V.aKT),this._languageDataService=(0,V.WQX)(Qn.g),this._layoutService=(0,V.WQX)(Li.Y),this._onDestroy$=new Qi.B,this.showBackground=!1,this.openSettings=!1,this.links$=this._languageDataService.i18nContent$.pipe((0,Vi.p)(N=>Object.values(N).length>0),(0,Ee.T)(N=>[{route:"docs",label:`${N.MENU.DOCS}`},{route:"playground",label:`${N.MENU.PLAYGROUND}`}])),this._layoutService.windowSize$.pipe((0,Vi.p)(N=>N.x>=1024),(0,ai.M)(()=>this.openSettings=!1)).subscribe()}ngAfterViewInit(){this._updateHeaderHeight()}ngOnDestroy(){this._onDestroy$.next(),this._onDestroy$.complete()}_updateHeaderHeight(){const N=this._el.nativeElement;N&&(0,Wt.R)(N,"transitionend",{passive:!0}).pipe((0,di.B)(0),(0,ai.M)(()=>this._layoutService.updateHeaderHeight()),(0,ni.Q)(this._onDestroy$)).subscribe()}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-header"]],hostBindings:function(K,ve){1&K&&V.bIt("scroll",function(Ft){return ve.onWindowScroll(Ft)},!1,V.tSv)},standalone:!0,features:[V.aNF],decls:3,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"links"],[3,"links","openSettings","settingsOpened"]],template:function(K,ve){1&K&&(V.j41(0,"div",0),V.DNE(1,Cn,3,3,"ng-container",1),V.nI1(2,"async"),V.k0s()),2&K&&(V.Y8G("ngClass",V.l_i(4,pn,ve.showBackground?"show-background":"",ve.openSettings?"full-background":"")),V.R7$(1),V.Y8G("ngIf",V.bMT(2,2,ve.links$)))},dependencies:[o.MD,o.YU,o.bT,o.Jj,Jt,Pt],styles:['[_nghost-%COMP%]{position:sticky;top:0;display:block;z-index:999}.header-container[_ngcontent-%COMP%]{position:relative;z-index:0}.header-container[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;height:100%;width:100%;content:"";z-index:-1}.header-container.show-background[_ngcontent-%COMP%]:before{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);background-color:rgba(var(--body-bg-color-rgb),.35);mask:linear-gradient(var(--body-bg-color) 60%,transparent)}.header-container.full-background[_ngcontent-%COMP%]:before{mask:unset;border-bottom:solid 1px var(--border-color-25)}app-header-mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 1024px){app-header-desktop[_ngcontent-%COMP%]{display:none}app-header-mobile[_ngcontent-%COMP%]{display:block}}']})}return ue})();var nr=F(3229),tn=F(4929),Kt=F(7049);const Vn=function(ue){return{start:ue}},qn=function(ue){return{"--step-count":ue}};let pi=(()=>{class ue{constructor(){this._step=0,this._cancelTimer$=new Qi.B,this._onDestroy$=new Qi.B,this.start=!1,this.step="0%"}ngOnChanges(N){const{start:K}=N;K&&(!0===K.currentValue?this._addStep():(this.step="0%",this._cancelTimer$.next()))}ngOnDestroy(){this._cancelTimer$.next(),this._cancelTimer$.complete(),this._onDestroy$.next(),this._onDestroy$.complete()}_addStep(){(0,nr.O)(3e3).pipe((0,pe.n)(()=>function Tt(ue=0,j=tn.E){return ue<0&&(ue=0),(0,nr.O)(ue,ue,j)}(1e3)),(0,ai.M)(()=>{this._step+=Math.round(Math.random()),this.step=`${this._step}%`}),(0,ni.Q)((0,De.h)(this._onDestroy$,this._cancelTimer$)),(0,Kt.v)(()=>this._step<10)).subscribe()}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["ui-loading-indicator"]],inputs:{start:"start"},standalone:!0,features:[V.OA$,V.aNF],decls:1,vars:6,consts:[[1,"loading-bar",3,"ngClass","ngStyle"]],template:function(K,ve){1&K&&V.nrm(0,"div",0),2&K&&V.Y8G("ngClass",V.eq3(2,Vn,ve.start))("ngStyle",V.eq3(4,qn,ve.step))},dependencies:[o.MD,o.YU,o.B3],styles:['.loading-bar[_ngcontent-%COMP%]{--step-count: "0%";position:fixed;top:0;left:0;height:3px;width:100%;z-index:1000;opacity:0;transition:.35s}.loading-bar[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--primary-500);transition:.35s}.loading-bar.start[_ngcontent-%COMP%]{opacity:1;transition:0s}.loading-bar.start[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_startAnimation 2.5s cubic-bezier(.69,.24,.49,.98) forwards}@keyframes _ngcontent-%COMP%_startAnimation{0%{width:0%}30%{width:60%}90%{width:62%}to{width:calc(66% + var(--step-count))}}']})}return ue})();const ti=function(ue){return{"opacity-0":ue}},Ni=function(ue){return{"--header-height.px":ue}};let ii=(()=>{class ue{constructor(){this._cd=(0,V.WQX)(V.gRc),this._injector=(0,V.WQX)(V.zZn,{optional:!0}),this._router=(0,V.WQX)(jt.Ix),this._docsLoaderService=(0,V.WQX)(Gt.e),this._langService=(0,V.WQX)(Qn.g),this._layoutService=(0,V.WQX)(Li.Y),this.title="NgDynamicJsonForm",this.routeLoading=!1,this.isServer=!0,this.headerHeight$=this._layoutService.headerHeight$.pipe((0,Wn.c)(0)),this.docLoading$=this._docsLoaderService.docLoading$.pipe((0,Wn.c)(0))}ngOnInit(){typeof window<"u"&&window.setTimeout(()=>this.isServer=!1),this._loadGoogleFonts(),this._registerCustomElements(),this._routeChangeEvent$().subscribe()}ngAfterViewInit(){typeof window>"u"||(this._layoutService.updateHeaderHeight(),this._layoutService.updateWindowSize(),(0,Wt.R)(window,"resize",{passive:!0}).pipe((0,di.B)(50),(0,ai.M)(()=>{this._layoutService.updateHeaderHeight(),this._layoutService.updateWindowSize()})).subscribe())}_routeChangeEvent$(){return typeof window>"u"?wn.w:this._router.events.pipe((0,ai.M)(N=>{(N instanceof jt.AL||N instanceof jt.Z)&&(this.routeLoading=!0),(N instanceof jt.vX||N instanceof jt.wF)&&(this.routeLoading=!1,this._langService.setCurrentLanguage(),this._cd.detectChanges())}))}_loadGoogleFonts(){if(typeof window>"u")return;const N=document.createElement("link");N.href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Sans+TC:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap",N.rel="stylesheet",document.head.append(N)}_registerCustomElements(){if(typeof window>"u"||!this._injector)return;const N=(K,ve)=>{customElements.define(K,function it(ue,j){const N=function Fe(ue,j){return j.get(V.OM3).resolveComponentFactory(ue).inputs}(ue,j.injector),K=j.strategyFactory||new he(ue,j.injector),ve=function de(ue){const j={};return ue.forEach(({propName:N,templateName:K,transform:ve})=>{j[function me(ue){return ue.replace(/[A-Z]/g,j=>`-${j.toLowerCase()}`)}(K)]=[N,ve]}),j}(N);class Xe extends Se{static#e=this.observedAttributes=Object.keys(ve);get ngElementStrategy(){if(!this._ngElementStrategy){const I=this._ngElementStrategy=K.create(this.injector||j.injector);N.forEach(({propName:B,transform:R})=>{if(!this.hasOwnProperty(B))return;const q=this[B];delete this[B],I.setInputValue(B,q,R)})}return this._ngElementStrategy}constructor(I){super(),this.injector=I}attributeChangedCallback(I,B,R,q){const[ae,Ne]=ve[I];this.ngElementStrategy.setInputValue(ae,R,Ne)}connectedCallback(){let I=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),I=!0),this.ngElementStrategy.connect(this),I||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(I=>{const B=new CustomEvent(I.name,{detail:I.value});this.dispatchEvent(B)})}}return N.forEach(({propName:Ft,transform:I})=>{Object.defineProperty(Xe.prototype,Ft,{get(){return this.ngElementStrategy.getInputValue(Ft)},set(B){this.ngElementStrategy.setInputValue(Ft,B,I)},configurable:!0,enumerable:!0})}),Xe}(ve,{injector:this._injector}))};N("doc-code",Ze),N("doc-tab",xt),N("custom-loading",$i.l),N("doc-form-viewer",H.Y),N("input-layout-illustration",Je),N("form-style-tweaker",Mn)}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275cmp=V.VBU({type:ue,selectors:[["app-root"]],standalone:!0,features:[V.aNF],decls:8,vars:11,consts:[[1,"duration-500","transition-opacity",3,"ngClass","ngStyle"],[3,"start"],[1,"top-bg"],[1,"flex","flex-col"]],template:function(K,ve){if(1&K&&(V.j41(0,"div",0),V.nI1(1,"async"),V.nrm(2,"ui-loading-indicator",1),V.nI1(3,"async"),V.nrm(4,"div",2)(5,"app-header"),V.j41(6,"div",3),V.nrm(7,"router-outlet"),V.k0s()()),2&K){let Xe;V.Y8G("ngClass",V.eq3(7,ti,ve.isServer))("ngStyle",V.eq3(9,Ni,V.bMT(1,3,ve.headerHeight$))),V.R7$(2),V.Y8G("start",ve.routeLoading||null!==(Xe=V.bMT(3,5,ve.docLoading$))&&void 0!==Xe&&Xe)}},dependencies:[o.MD,o.YU,o.B3,o.Jj,jt.n3,Di,pi],styles:[".top-bg[_ngcontent-%COMP%]{--grid-line-color: rgba(var(--text-color-rgb), .05);--grid-line-weight: 1px;--grid-size: 2rem;position:fixed;top:0;left:0;width:100%;height:60vh;background:linear-gradient(0deg,transparent 50%,var(--grid-line-color) 50%,transparent calc(50% + var(--grid-line-weight))),linear-gradient(90deg,transparent 50%,var(--grid-line-color) 50%,transparent calc(50% + var(--grid-line-weight)));background-repeat:repeat;background-size:var(--grid-size) var(--grid-size);-webkit-mask-image:linear-gradient(white,transparent);mask-image:linear-gradient(white,transparent);z-index:-100;pointer-events:none}"]})}return ue})();var lr=F(6409),Gr=F(194);function ks(ue){return new V.wOt(3e3,!1)}function fr(ue){switch(ue.length){case 0:return new Gr.sf;case 1:return ue[0];default:return new Gr.ui(ue)}}function Ao(ue,j,N=new Map,K=new Map){const ve=[],Xe=[];let Ft=-1,I=null;if(j.forEach(B=>{const R=B.get("offset"),q=R==Ft,ae=q&&I||new Map;B.forEach((Ne,bt)=>{let an=bt,un=Ne;if("offset"!==bt)switch(an=ue.normalizePropertyName(an,ve),un){case Gr.FX:un=N.get(bt);break;case Gr.kp:un=K.get(bt);break;default:un=ue.normalizeStyleValue(bt,an,un,ve)}ae.set(an,un)}),q||Xe.push(ae),I=ae,Ft=R}),ve.length)throw function rc(ue){return new V.wOt(3502,!1)}();return Xe}function ca(ue,j,N,K){switch(j){case"start":ue.onStart(()=>K(N&&Ya(N,"start",ue)));break;case"done":ue.onDone(()=>K(N&&Ya(N,"done",ue)));break;case"destroy":ue.onDestroy(()=>K(N&&Ya(N,"destroy",ue)))}}function Ya(ue,j,N){const Xe=za(ue.element,ue.triggerName,ue.fromState,ue.toState,j||ue.phaseName,N.totalTime??ue.totalTime,!!N.disabled),Ft=ue._data;return null!=Ft&&(Xe._data=Ft),Xe}function za(ue,j,N,K,ve="",Xe=0,Ft){return{element:ue,triggerName:j,fromState:N,toState:K,phaseName:ve,totalTime:Xe,disabled:!!Ft}}function qs(ue,j,N){let K=ue.get(j);return K||ue.set(j,K=N),K}function gr(ue){const j=ue.indexOf(":");return[ue.substring(1,j),ue.slice(j+1)]}const il=(()=>typeof document>"u"?null:document.documentElement)();function Wr(ue){const j=ue.parentNode||ue.host||null;return j===il?null:j}let Kn=null,ar=!1;function ka(ue,j){for(;j;){if(j===ue)return!0;j=Wr(j)}return!1}function Is(ue,j,N){if(N)return Array.from(ue.querySelectorAll(j));const K=ue.querySelector(j);return K?[K]:[]}let Es=(()=>{class ue{validateStyleProperty(N){return function Sa(ue){Kn||(Kn=function ns(){return typeof document<"u"?document.body:null}()||{},ar=!!Kn.style&&"WebkitAppearance"in Kn.style);let j=!0;return Kn.style&&!function yi(ue){return"ebkit"==ue.substring(1,6)}(ue)&&(j=ue in Kn.style,!j&&ar&&(j="Webkit"+ue.charAt(0).toUpperCase()+ue.slice(1)in Kn.style)),j}(N)}matchesElement(N,K){return!1}containsElement(N,K){return ka(N,K)}getParentElement(N){return Wr(N)}query(N,K,ve){return Is(N,K,ve)}computeStyle(N,K,ve){return ve||""}animate(N,K,ve,Xe,Ft,I=[],B){return new Gr.sf(ve,Xe)}static#e=this.\u0275fac=function(K){return new(K||ue)};static#t=this.\u0275prov=V.jDH({token:ue,factory:ue.\u0275fac})}return ue})(),ur=(()=>{class ue{static#e=this.NOOP=new Es}return ue})();const rr=1e3,Qs="ng-enter",la="ng-leave",Js="ng-trigger",ua=".ng-trigger",da="ng-animating",gl=".ng-animating";function No(ue){if("number"==typeof ue)return ue;const j=ue.match(/^(-?[\.\d]+)(m?s)/);return!j||j.length<2?0:ia(parseFloat(j[1]),j[2])}function ia(ue,j){return"s"===j?ue*rr:ue}function zc(ue,j,N){return ue.hasOwnProperty("duration")?ue:function Hl(ue,j,N){let ve,Xe=0,Ft="";if("string"==typeof ue){const I=ue.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===I)return j.push(ks()),{duration:0,delay:0,easing:""};ve=ia(parseFloat(I[1]),I[2]);const B=I[3];null!=B&&(Xe=ia(parseFloat(B),I[4]));const R=I[5];R&&(Ft=R)}else ve=ue;if(!N){let I=!1,B=j.length;ve<0&&(j.push(function Vr(){return new V.wOt(3100,!1)}()),I=!0),Xe<0&&(j.push(function Gs(){return new V.wOt(3101,!1)}()),I=!0),I&&j.splice(B,0,ks())}return{duration:ve,delay:Xe,easing:Ft}}(ue,j,N)}function rs(ue,j={}){return Object.keys(ue).forEach(N=>{j[N]=ue[N]}),j}function H1(ue){const j=new Map;return Object.keys(ue).forEach(N=>{j.set(N,ue[N])}),j}function Lr(ue,j=new Map,N){if(N)for(let[K,ve]of N)j.set(K,ve);for(let[K,ve]of ue)j.set(K,ve);return j}function vo(ue,j,N){j.forEach((K,ve)=>{const Xe=zl(ve);N&&!N.has(ve)&&N.set(ve,ue.style[Xe]),ue.style[Xe]=K})}function Ra(ue,j){j.forEach((N,K)=>{const ve=zl(K);ue.style[ve]=""})}function Qa(ue){return Array.isArray(ue)?1==ue.length?ue[0]:(0,Gr.K2)(ue):ue}const L1=new RegExp("{{\\s*(.+?)\\s*}}","g");function Na(ue){let j=[];if("string"==typeof ue){let N;for(;N=L1.exec(ue);)j.push(N[1]);L1.lastIndex=0}return j}function vs(ue,j,N){const K=ue.toString(),ve=K.replace(L1,(Xe,Ft)=>{let I=j[Ft];return null==I&&(N.push(function is(ue){return new V.wOt(3003,!1)}()),I=""),I.toString()});return ve==K?ue:ve}function Ja(ue){const j=[];let N=ue.next();for(;!N.done;)j.push(N.value),N=ue.next();return j}const pc=/-+([a-z0-9])/g;function zl(ue){return ue.replace(pc,(...j)=>j[1].toUpperCase())}function sc(ue,j,N){switch(j.type){case 7:return ue.visitTrigger(j,N);case 0:return ue.visitState(j,N);case 1:return ue.visitTransition(j,N);case 2:return ue.visitSequence(j,N);case 3:return ue.visitGroup(j,N);case 4:return ue.visitAnimate(j,N);case 5:return ue.visitKeyframes(j,N);case 6:return ue.visitStyle(j,N);case 8:return ue.visitReference(j,N);case 9:return ue.visitAnimateChild(j,N);case 10:return ue.visitAnimateRef(j,N);case 11:return ue.visitQuery(j,N);case 12:return ue.visitStagger(j,N);default:throw function Ro(ue){return new V.wOt(3004,!1)}()}}function ie(ue,j){return window.getComputedStyle(ue)[j]}const nn="*";function Qt(ue,j){const N=[];return"string"==typeof ue?ue.split(/\s*,\s*/).forEach(K=>function ne(ue,j,N){if(":"==ue[0]){const B=function fe(ue,j){switch(ue){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(N,K)=>parseFloat(K)>parseFloat(N);case":decrement":return(N,K)=>parseFloat(K) *"}}(ue,N);if("function"==typeof B)return void j.push(B);ue=B}const K=ue.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==K||K.length<4)return N.push(function Hc(ue){return new V.wOt(3015,!1)}()),j;const ve=K[1],Xe=K[2],Ft=K[3];j.push(mt(ve,Ft));"<"==Xe[0]&&!(ve==nn&&Ft==nn)&&j.push(mt(Ft,ve))}(K,N,j)):N.push(ue),N}const Z=new Set(["true","1"]),$e=new Set(["false","0"]);function mt(ue,j){const N=Z.has(ue)||$e.has(ue),K=Z.has(j)||$e.has(j);return(ve,Xe)=>{let Ft=ue==nn||ue==ve,I=j==nn||j==Xe;return!Ft&&N&&"boolean"==typeof ve&&(Ft=ve?Z.has(ue):$e.has(ue)),!I&&K&&"boolean"==typeof Xe&&(I=Xe?Z.has(j):$e.has(j)),Ft&&I}}const ir=new RegExp("s*:selfs*,?","g");function zr(ue,j,N,K){return new bi(ue).build(j,N,K)}class bi{constructor(j){this._driver=j}build(j,N,K){const ve=new Pa(N);return this._resetContextStyleTimingState(ve),sc(this,Qa(j),ve)}_resetContextStyleTimingState(j){j.currentQuerySelector="",j.collectedStyles=new Map,j.collectedStyles.set("",new Map),j.currentTime=0}visitTrigger(j,N){let K=N.queryCount=0,ve=N.depCount=0;const Xe=[],Ft=[];return"@"==j.name.charAt(0)&&N.errors.push(function Vo(){return new V.wOt(3006,!1)}()),j.definitions.forEach(I=>{if(this._resetContextStyleTimingState(N),0==I.type){const B=I,R=B.name;R.toString().split(/\s*,\s*/).forEach(q=>{B.name=q,Xe.push(this.visitState(B,N))}),B.name=R}else if(1==I.type){const B=this.visitTransition(I,N);K+=B.queryCount,ve+=B.depCount,Ft.push(B)}else N.errors.push(function qo(){return new V.wOt(3007,!1)}())}),{type:7,name:j.name,states:Xe,transitions:Ft,queryCount:K,depCount:ve,options:null}}visitState(j,N){const K=this.visitStyle(j.styles,N),ve=j.options&&j.options.params||null;if(K.containsDynamicStyles){const Xe=new Set,Ft=ve||{};K.styles.forEach(I=>{I instanceof Map&&I.forEach(B=>{Na(B).forEach(R=>{Ft.hasOwnProperty(R)||Xe.add(R)})})}),Xe.size&&(Ja(Xe.values()),N.errors.push(function ea(ue,j){return new V.wOt(3008,!1)}()))}return{type:0,name:j.name,style:K,options:ve?{params:ve}:null}}visitTransition(j,N){N.queryCount=0,N.depCount=0;const K=sc(this,Qa(j.animation),N);return{type:1,matchers:Qt(j.expr,N.errors),animation:K,queryCount:N.queryCount,depCount:N.depCount,options:Os(j.options)}}visitSequence(j,N){return{type:2,steps:j.steps.map(K=>sc(this,K,N)),options:Os(j.options)}}visitGroup(j,N){const K=N.currentTime;let ve=0;const Xe=j.steps.map(Ft=>{N.currentTime=K;const I=sc(this,Ft,N);return ve=Math.max(ve,N.currentTime),I});return N.currentTime=ve,{type:3,steps:Xe,options:Os(j.options)}}visitAnimate(j,N){const K=function ja(ue,j){if(ue.hasOwnProperty("duration"))return ue;if("number"==typeof ue)return rl(zc(ue,j).duration,0,"");const N=ue;if(N.split(/\s+/).some(Xe=>"{"==Xe.charAt(0)&&"{"==Xe.charAt(1))){const Xe=rl(0,0,"");return Xe.dynamic=!0,Xe.strValue=N,Xe}const ve=zc(N,j);return rl(ve.duration,ve.delay,ve.easing)}(j.timings,N.errors);N.currentAnimateTimings=K;let ve,Xe=j.styles?j.styles:(0,Gr.iF)({});if(5==Xe.type)ve=this.visitKeyframes(Xe,N);else{let Ft=j.styles,I=!1;if(!Ft){I=!0;const R={};K.easing&&(R.easing=K.easing),Ft=(0,Gr.iF)(R)}N.currentTime+=K.duration+K.delay;const B=this.visitStyle(Ft,N);B.isEmptyStep=I,ve=B}return N.currentAnimateTimings=null,{type:4,timings:K,style:ve,options:null}}visitStyle(j,N){const K=this._makeStyleAst(j,N);return this._validateStyleAst(K,N),K}_makeStyleAst(j,N){const K=[],ve=Array.isArray(j.styles)?j.styles:[j.styles];for(let I of ve)"string"==typeof I?I===Gr.kp?K.push(I):N.errors.push(new V.wOt(3002,!1)):K.push(H1(I));let Xe=!1,Ft=null;return K.forEach(I=>{if(I instanceof Map&&(I.has("easing")&&(Ft=I.get("easing"),I.delete("easing")),!Xe))for(let B of I.values())if(B.toString().indexOf("{{")>=0){Xe=!0;break}}),{type:6,styles:K,easing:Ft,offset:j.offset,containsDynamicStyles:Xe,options:null}}_validateStyleAst(j,N){const K=N.currentAnimateTimings;let ve=N.currentTime,Xe=N.currentTime;K&&Xe>0&&(Xe-=K.duration+K.delay),j.styles.forEach(Ft=>{"string"!=typeof Ft&&Ft.forEach((I,B)=>{const R=N.collectedStyles.get(N.currentQuerySelector),q=R.get(B);let ae=!0;q&&(Xe!=ve&&Xe>=q.startTime&&ve<=q.endTime&&(N.errors.push(function ta(ue,j,N,K,ve){return new V.wOt(3010,!1)}()),ae=!1),Xe=q.startTime),ae&&R.set(B,{startTime:Xe,endTime:ve}),N.options&&function Ea(ue,j,N){const K=j.params||{},ve=Na(ue);ve.length&&ve.forEach(Xe=>{K.hasOwnProperty(Xe)||N.push(function Fr(ue){return new V.wOt(3001,!1)}())})}(I,N.options,N.errors)})})}visitKeyframes(j,N){const K={type:5,styles:[],options:null};if(!N.currentAnimateTimings)return N.errors.push(function Ps(){return new V.wOt(3011,!1)}()),K;let Xe=0;const Ft=[];let I=!1,B=!1,R=0;const q=j.steps.map(Ji=>{const ls=this._makeStyleAst(Ji,N);let Ar=null!=ls.offset?ls.offset:function Kr(ue){if("string"==typeof ue)return null;let j=null;if(Array.isArray(ue))ue.forEach(N=>{if(N instanceof Map&&N.has("offset")){const K=N;j=parseFloat(K.get("offset")),K.delete("offset")}});else if(ue instanceof Map&&ue.has("offset")){const N=ue;j=parseFloat(N.get("offset")),N.delete("offset")}return j}(ls.styles),Po=0;return null!=Ar&&(Xe++,Po=ls.offset=Ar),B=B||Po<0||Po>1,I=I||Po0&&Xe{const Ar=Ne>0?ls==bt?1:Ne*ls:Ft[ls],Po=Ar*Ci;N.currentTime=an+un.delay+Po,un.duration=Po,this._validateStyleAst(Ji,N),Ji.offset=Ar,K.styles.push(Ji)}),K}visitReference(j,N){return{type:8,animation:sc(this,Qa(j.animation),N),options:Os(j.options)}}visitAnimateChild(j,N){return N.depCount++,{type:9,options:Os(j.options)}}visitAnimateRef(j,N){return{type:10,animation:this.visitReference(j.animation,N),options:Os(j.options)}}visitQuery(j,N){const K=N.currentQuerySelector,ve=j.options||{};N.queryCount++,N.currentQuery=j;const[Xe,Ft]=function Bo(ue){const j=!!ue.split(/\s*,\s*/).find(N=>":self"==N);return j&&(ue=ue.replace(ir,"")),ue=ue.replace(/@\*/g,ua).replace(/@\w+/g,N=>ua+"-"+N.slice(1)).replace(/:animating/g,gl),[ue,j]}(j.selector);N.currentQuerySelector=K.length?K+" "+Xe:Xe,qs(N.collectedStyles,N.currentQuerySelector,new Map);const I=sc(this,Qa(j.animation),N);return N.currentQuery=null,N.currentQuerySelector=K,{type:11,selector:Xe,limit:ve.limit||0,optional:!!ve.optional,includeSelf:Ft,animation:I,originalSelector:j.selector,options:Os(j.options)}}visitStagger(j,N){N.currentQuery||N.errors.push(function ao(){return new V.wOt(3013,!1)}());const K="full"===j.timings?{duration:0,delay:0,easing:"full"}:zc(j.timings,N.errors,!0);return{type:12,animation:sc(this,Qa(j.animation),N),timings:K,options:null}}}class Pa{constructor(j){this.errors=j,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 Os(ue){return ue?(ue=rs(ue)).params&&(ue.params=function So(ue){return ue?rs(ue):null}(ue.params)):ue={},ue}function rl(ue,j,N){return{duration:ue,delay:j,easing:N}}function ba(ue,j,N,K,ve,Xe,Ft=null,I=!1){return{type:1,element:ue,keyframes:j,preStyleProps:N,postStyleProps:K,duration:ve,delay:Xe,totalTime:ve+Xe,easing:Ft,subTimeline:I}}class Mc{constructor(){this._map=new Map}get(j){return this._map.get(j)||[]}append(j,N){let K=this._map.get(j);K||this._map.set(j,K=[]),K.push(...N)}has(j){return this._map.has(j)}clear(){this._map.clear()}}const Mu=new RegExp(":enter","g"),M2=new RegExp(":leave","g");function fa(ue,j,N,K,ve,Xe=new Map,Ft=new Map,I,B,R=[]){return(new e2).buildKeyframes(ue,j,N,K,ve,Xe,Ft,I,B,R)}class e2{buildKeyframes(j,N,K,ve,Xe,Ft,I,B,R,q=[]){R=R||new Mc;const ae=new z1(j,N,R,ve,Xe,q,[]);ae.options=B;const Ne=B.delay?No(B.delay):0;ae.currentTimeline.delayNextStep(Ne),ae.currentTimeline.setStyles([Ft],null,ae.errors,B),sc(this,K,ae);const bt=ae.timelines.filter(an=>an.containsAnimation());if(bt.length&&I.size){let an;for(let un=bt.length-1;un>=0;un--){const Ci=bt[un];if(Ci.element===N){an=Ci;break}}an&&!an.allowOnlyTimelineStyles()&&an.setStyles([I],null,ae.errors,B)}return bt.length?bt.map(an=>an.buildKeyframes()):[ba(N,[],[],[],0,Ne,"",!1)]}visitTrigger(j,N){}visitState(j,N){}visitTransition(j,N){}visitAnimateChild(j,N){const K=N.subInstructions.get(N.element);if(K){const ve=N.createSubContext(j.options),Xe=N.currentTimeline.currentTime,Ft=this._visitSubInstructions(K,ve,ve.options);Xe!=Ft&&N.transformIntoNewTimeline(Ft)}N.previousNode=j}visitAnimateRef(j,N){const K=N.createSubContext(j.options);K.transformIntoNewTimeline(),this._applyAnimationRefDelays([j.options,j.animation.options],N,K),this.visitReference(j.animation,K),N.transformIntoNewTimeline(K.currentTimeline.currentTime),N.previousNode=j}_applyAnimationRefDelays(j,N,K){for(const ve of j){const Xe=ve?.delay;if(Xe){const Ft="number"==typeof Xe?Xe:No(vs(Xe,ve?.params??{},N.errors));K.delayNextStep(Ft)}}}_visitSubInstructions(j,N,K){let Xe=N.currentTimeline.currentTime;const Ft=null!=K.duration?No(K.duration):null,I=null!=K.delay?No(K.delay):null;return 0!==Ft&&j.forEach(B=>{const R=N.appendInstructionToTimeline(B,Ft,I);Xe=Math.max(Xe,R.duration+R.delay)}),Xe}visitReference(j,N){N.updateOptions(j.options,!0),sc(this,j.animation,N),N.previousNode=j}visitSequence(j,N){const K=N.subContextCount;let ve=N;const Xe=j.options;if(Xe&&(Xe.params||Xe.delay)&&(ve=N.createSubContext(Xe),ve.transformIntoNewTimeline(),null!=Xe.delay)){6==ve.previousNode.type&&(ve.currentTimeline.snapshotCurrentStyles(),ve.previousNode=u1);const Ft=No(Xe.delay);ve.delayNextStep(Ft)}j.steps.length&&(j.steps.forEach(Ft=>sc(this,Ft,ve)),ve.currentTimeline.applyStylesToKeyframe(),ve.subContextCount>K&&ve.transformIntoNewTimeline()),N.previousNode=j}visitGroup(j,N){const K=[];let ve=N.currentTimeline.currentTime;const Xe=j.options&&j.options.delay?No(j.options.delay):0;j.steps.forEach(Ft=>{const I=N.createSubContext(j.options);Xe&&I.delayNextStep(Xe),sc(this,Ft,I),ve=Math.max(ve,I.currentTimeline.currentTime),K.push(I.currentTimeline)}),K.forEach(Ft=>N.currentTimeline.mergeTimelineCollectedStyles(Ft)),N.transformIntoNewTimeline(ve),N.previousNode=j}_visitTiming(j,N){if(j.dynamic){const K=j.strValue;return zc(N.params?vs(K,N.params,N.errors):K,N.errors)}return{duration:j.duration,delay:j.delay,easing:j.easing}}visitAnimate(j,N){const K=N.currentAnimateTimings=this._visitTiming(j.timings,N),ve=N.currentTimeline;K.delay&&(N.incrementTime(K.delay),ve.snapshotCurrentStyles());const Xe=j.style;5==Xe.type?this.visitKeyframes(Xe,N):(N.incrementTime(K.duration),this.visitStyle(Xe,N),ve.applyStylesToKeyframe()),N.currentAnimateTimings=null,N.previousNode=j}visitStyle(j,N){const K=N.currentTimeline,ve=N.currentAnimateTimings;!ve&&K.hasCurrentStyleProperties()&&K.forwardFrame();const Xe=ve&&ve.easing||j.easing;j.isEmptyStep?K.applyEmptyStep(Xe):K.setStyles(j.styles,Xe,N.errors,N.options),N.previousNode=j}visitKeyframes(j,N){const K=N.currentAnimateTimings,ve=N.currentTimeline.duration,Xe=K.duration,I=N.createSubContext().currentTimeline;I.easing=K.easing,j.styles.forEach(B=>{I.forwardTime((B.offset||0)*Xe),I.setStyles(B.styles,B.easing,N.errors,N.options),I.applyStylesToKeyframe()}),N.currentTimeline.mergeTimelineCollectedStyles(I),N.transformIntoNewTimeline(ve+Xe),N.previousNode=j}visitQuery(j,N){const K=N.currentTimeline.currentTime,ve=j.options||{},Xe=ve.delay?No(ve.delay):0;Xe&&(6===N.previousNode.type||0==K&&N.currentTimeline.hasCurrentStyleProperties())&&(N.currentTimeline.snapshotCurrentStyles(),N.previousNode=u1);let Ft=K;const I=N.invokeQuery(j.selector,j.originalSelector,j.limit,j.includeSelf,!!ve.optional,N.errors);N.currentQueryTotal=I.length;let B=null;I.forEach((R,q)=>{N.currentQueryIndex=q;const ae=N.createSubContext(j.options,R);Xe&&ae.delayNextStep(Xe),R===N.element&&(B=ae.currentTimeline),sc(this,j.animation,ae),ae.currentTimeline.applyStylesToKeyframe(),Ft=Math.max(Ft,ae.currentTimeline.currentTime)}),N.currentQueryIndex=0,N.currentQueryTotal=0,N.transformIntoNewTimeline(Ft),B&&(N.currentTimeline.mergeTimelineCollectedStyles(B),N.currentTimeline.snapshotCurrentStyles()),N.previousNode=j}visitStagger(j,N){const K=N.parentContext,ve=N.currentTimeline,Xe=j.timings,Ft=Math.abs(Xe.duration),I=Ft*(N.currentQueryTotal-1);let B=Ft*N.currentQueryIndex;switch(Xe.duration<0?"reverse":Xe.easing){case"reverse":B=I-B;break;case"full":B=K.currentStaggerTime}const q=N.currentTimeline;B&&q.delayNextStep(B);const ae=q.currentTime;sc(this,j.animation,N),N.previousNode=j,K.currentStaggerTime=ve.currentTime-ae+(ve.startTime-K.currentTimeline.startTime)}}const u1={};class z1{constructor(j,N,K,ve,Xe,Ft,I,B){this._driver=j,this.element=N,this.subInstructions=K,this._enterClassName=ve,this._leaveClassName=Xe,this.errors=Ft,this.timelines=I,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=u1,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=B||new Xl(this._driver,N,0),I.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(j,N){if(!j)return;const K=j;let ve=this.options;null!=K.duration&&(ve.duration=No(K.duration)),null!=K.delay&&(ve.delay=No(K.delay));const Xe=K.params;if(Xe){let Ft=ve.params;Ft||(Ft=this.options.params={}),Object.keys(Xe).forEach(I=>{(!N||!Ft.hasOwnProperty(I))&&(Ft[I]=vs(Xe[I],Ft,this.errors))})}}_copyOptions(){const j={};if(this.options){const N=this.options.params;if(N){const K=j.params={};Object.keys(N).forEach(ve=>{K[ve]=N[ve]})}}return j}createSubContext(j=null,N,K){const ve=N||this.element,Xe=new z1(this._driver,ve,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ve,K||0));return Xe.previousNode=this.previousNode,Xe.currentAnimateTimings=this.currentAnimateTimings,Xe.options=this._copyOptions(),Xe.updateOptions(j),Xe.currentQueryIndex=this.currentQueryIndex,Xe.currentQueryTotal=this.currentQueryTotal,Xe.parentContext=this,this.subContextCount++,Xe}transformIntoNewTimeline(j){return this.previousNode=u1,this.currentTimeline=this.currentTimeline.fork(this.element,j),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(j,N,K){const ve={duration:N??j.duration,delay:this.currentTimeline.currentTime+(K??0)+j.delay,easing:""},Xe=new y1(this._driver,j.element,j.keyframes,j.preStyleProps,j.postStyleProps,ve,j.stretchStartingKeyframe);return this.timelines.push(Xe),ve}incrementTime(j){this.currentTimeline.forwardTime(this.currentTimeline.duration+j)}delayNextStep(j){j>0&&this.currentTimeline.delayNextStep(j)}invokeQuery(j,N,K,ve,Xe,Ft){let I=[];if(ve&&I.push(this.element),j.length>0){j=(j=j.replace(Mu,"."+this._enterClassName)).replace(M2,"."+this._leaveClassName);let R=this._driver.query(this.element,j,1!=K);0!==K&&(R=K<0?R.slice(R.length+K,R.length):R.slice(0,K)),I.push(...R)}return!Xe&&0==I.length&&Ft.push(function l1(ue){return new V.wOt(3014,!1)}()),I}}class Xl{constructor(j,N,K,ve){this._driver=j,this.element=N,this.startTime=K,this._elementTimelineStylesLookup=ve,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(N),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(N,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(j){const N=1===this._keyframes.size&&this._pendingStyles.size;this.duration||N?(this.forwardTime(this.currentTime+j),N&&this.snapshotCurrentStyles()):this.startTime+=j}fork(j,N){return this.applyStylesToKeyframe(),new Xl(this._driver,j,N||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(j){this.applyStylesToKeyframe(),this.duration=j,this._loadKeyframe()}_updateStyle(j,N){this._localTimelineStyles.set(j,N),this._globalTimelineStyles.set(j,N),this._styleSummary.set(j,{time:this.currentTime,value:N})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(j){j&&this._previousKeyframe.set("easing",j);for(let[N,K]of this._globalTimelineStyles)this._backFill.set(N,K||Gr.kp),this._currentKeyframe.set(N,Gr.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(j,N,K,ve){N&&this._previousKeyframe.set("easing",N);const Xe=ve&&ve.params||{},Ft=function sl(ue,j){const N=new Map;let K;return ue.forEach(ve=>{if("*"===ve){K=K||j.keys();for(let Xe of K)N.set(Xe,Gr.kp)}else Lr(ve,N)}),N}(j,this._globalTimelineStyles);for(let[I,B]of Ft){const R=vs(B,Xe,K);this._pendingStyles.set(I,R),this._localTimelineStyles.has(I)||this._backFill.set(I,this._globalTimelineStyles.get(I)??Gr.kp),this._updateStyle(I,R)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((j,N)=>{this._currentKeyframe.set(N,j)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((j,N)=>{this._currentKeyframe.has(N)||this._currentKeyframe.set(N,j)}))}snapshotCurrentStyles(){for(let[j,N]of this._localTimelineStyles)this._pendingStyles.set(j,N),this._updateStyle(j,N)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const j=[];for(let N in this._currentKeyframe)j.push(N);return j}mergeTimelineCollectedStyles(j){j._styleSummary.forEach((N,K)=>{const ve=this._styleSummary.get(K);(!ve||N.time>ve.time)&&this._updateStyle(K,N.value)})}buildKeyframes(){this.applyStylesToKeyframe();const j=new Set,N=new Set,K=1===this._keyframes.size&&0===this.duration;let ve=[];this._keyframes.forEach((I,B)=>{const R=Lr(I,new Map,this._backFill);R.forEach((q,ae)=>{q===Gr.FX?j.add(ae):q===Gr.kp&&N.add(ae)}),K||R.set("offset",B/this.duration),ve.push(R)});const Xe=j.size?Ja(j.values()):[],Ft=N.size?Ja(N.values()):[];if(K){const I=ve[0],B=new Map(I);I.set("offset",0),B.set("offset",1),ve=[I,B]}return ba(this.element,ve,Xe,Ft,this.duration,this.startTime,this.easing,!1)}}class y1 extends Xl{constructor(j,N,K,ve,Xe,Ft,I=!1){super(j,N,Ft.delay),this.keyframes=K,this.preStyleProps=ve,this.postStyleProps=Xe,this._stretchStartingKeyframe=I,this.timings={duration:Ft.duration,delay:Ft.delay,easing:Ft.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let j=this.keyframes,{delay:N,duration:K,easing:ve}=this.timings;if(this._stretchStartingKeyframe&&N){const Xe=[],Ft=K+N,I=N/Ft,B=Lr(j[0]);B.set("offset",0),Xe.push(B);const R=Lr(j[0]);R.set("offset",_l(I)),Xe.push(R);const q=j.length-1;for(let ae=1;ae<=q;ae++){let Ne=Lr(j[ae]);const bt=Ne.get("offset");Ne.set("offset",_l((N+bt*K)/Ft)),Xe.push(Ne)}K=Ft,N=0,ve="",j=Xe}return ba(this.element,j,this.preStyleProps,this.postStyleProps,K,N,ve,!0)}}function _l(ue,j=3){const N=Math.pow(10,j-1);return Math.round(ue*N)/N}class d1{}const bl=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 tu extends d1{normalizePropertyName(j,N){return zl(j)}normalizeStyleValue(j,N,K,ve){let Xe="";const Ft=K.toString().trim();if(bl.has(N)&&0!==K&&"0"!==K)if("number"==typeof K)Xe="px";else{const I=K.match(/^[+-]?[\d\.]+([a-z]*)$/);I&&0==I[1].length&&ve.push(function Zo(ue,j){return new V.wOt(3005,!1)}())}return Ft+Xe}}function C1(ue,j,N,K,ve,Xe,Ft,I,B,R,q,ae,Ne){return{type:0,element:ue,triggerName:j,isRemovalTransition:ve,fromState:N,fromStyles:Xe,toState:K,toStyles:Ft,timelines:I,queriedElements:B,preStyleProps:R,postStyleProps:q,totalTime:ae,errors:Ne}}const Sc={};class nu{constructor(j,N,K){this._triggerName=j,this.ast=N,this._stateStyles=K}match(j,N,K,ve){return function Du(ue,j,N,K,ve){return ue.some(Xe=>Xe(j,N,K,ve))}(this.ast.matchers,j,N,K,ve)}buildStyles(j,N,K){let ve=this._stateStyles.get("*");return void 0!==j&&(ve=this._stateStyles.get(j?.toString())||ve),ve?ve.buildStyles(N,K):new Map}build(j,N,K,ve,Xe,Ft,I,B,R,q){const ae=[],Ne=this.ast.options&&this.ast.options.params||Sc,an=this.buildStyles(K,I&&I.params||Sc,ae),un=B&&B.params||Sc,Ci=this.buildStyles(ve,un,ae),Ji=new Set,ls=new Map,Ar=new Map,Po="void"===ve,al={params:iu(un,Ne),delay:this.ast.options?.delay},Xo=q?[]:fa(j,N,this.ast.animation,Xe,Ft,an,Ci,al,R,ae);let Ko=0;if(Xo.forEach(vc=>{Ko=Math.max(vc.duration+vc.delay,Ko)}),ae.length)return C1(N,this._triggerName,K,ve,Po,an,Ci,[],[],ls,Ar,Ko,ae);Xo.forEach(vc=>{const bo=vc.element,Ou=qs(ls,bo,new Set);vc.preStyleProps.forEach(Rc=>Ou.add(Rc));const Hu=qs(Ar,bo,new Set);vc.postStyleProps.forEach(Rc=>Hu.add(Rc)),bo!==N&&Ji.add(bo)});const Io=Ja(Ji.values());return C1(N,this._triggerName,K,ve,Po,an,Ci,Xo,Io,ls,Ar,Ko)}}function iu(ue,j){const N=rs(j);for(const K in ue)ue.hasOwnProperty(K)&&null!=ue[K]&&(N[K]=ue[K]);return N}class sd{constructor(j,N,K){this.styles=j,this.defaultParams=N,this.normalizer=K}buildStyles(j,N){const K=new Map,ve=rs(this.defaultParams);return Object.keys(j).forEach(Xe=>{const Ft=j[Xe];null!==Ft&&(ve[Xe]=Ft)}),this.styles.styles.forEach(Xe=>{"string"!=typeof Xe&&Xe.forEach((Ft,I)=>{Ft&&(Ft=vs(Ft,ve,N));const B=this.normalizer.normalizePropertyName(I,N);Ft=this.normalizer.normalizeStyleValue(I,B,Ft,N),K.set(I,Ft)})}),K}}class od{constructor(j,N,K){this.name=j,this.ast=N,this._normalizer=K,this.transitionFactories=[],this.states=new Map,N.states.forEach(ve=>{this.states.set(ve.name,new sd(ve.style,ve.options&&ve.options.params||{},K))}),Pe(this.states,"true","1"),Pe(this.states,"false","0"),N.transitions.forEach(ve=>{this.transitionFactories.push(new nu(j,ve,this.states))}),this.fallbackTransition=function X(ue,j,N){return new nu(ue,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ft,I)=>!0],options:null,queryCount:0,depCount:0},j)}(j,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(j,N,K,ve){return this.transitionFactories.find(Ft=>Ft.match(j,N,K,ve))||null}matchStyles(j,N,K){return this.fallbackTransition.buildStyles(j,N,K)}}function Pe(ue,j,N){ue.has(j)?ue.has(N)||ue.set(N,ue.get(j)):ue.has(N)&&ue.set(j,ue.get(N))}const le=new Mc;class Ie{constructor(j,N,K){this.bodyNode=j,this._driver=N,this._normalizer=K,this._animations=new Map,this._playersById=new Map,this.players=[]}register(j,N){const K=[],Xe=zr(this._driver,N,K,[]);if(K.length)throw function ql(ue){return new V.wOt(3503,!1)}();this._animations.set(j,Xe)}_buildPlayer(j,N,K){const ve=j.element,Xe=Ao(this._normalizer,j.keyframes,N,K);return this._driver.animate(ve,Xe,j.duration,j.delay,j.easing,[],!0)}create(j,N,K={}){const ve=[],Xe=this._animations.get(j);let Ft;const I=new Map;if(Xe?(Ft=fa(this._driver,N,Xe,Qs,la,new Map,new Map,K,le,ve),Ft.forEach(q=>{const ae=qs(I,q.element,new Map);q.postStyleProps.forEach(Ne=>ae.set(Ne,null))})):(ve.push(function go(){return new V.wOt(3300,!1)}()),Ft=[]),ve.length)throw function Xa(ue){return new V.wOt(3504,!1)}();I.forEach((q,ae)=>{q.forEach((Ne,bt)=>{q.set(bt,this._driver.computeStyle(ae,bt,Gr.kp))})});const R=fr(Ft.map(q=>{const ae=I.get(q.element);return this._buildPlayer(q,new Map,ae)}));return this._playersById.set(j,R),R.onDestroy(()=>this.destroy(j)),this.players.push(R),R}destroy(j){const N=this._getPlayer(j);N.destroy(),this._playersById.delete(j);const K=this.players.indexOf(N);K>=0&&this.players.splice(K,1)}_getPlayer(j){const N=this._playersById.get(j);if(!N)throw function Ws(ue){return new V.wOt(3301,!1)}();return N}listen(j,N,K,ve){const Xe=za(N,"","","");return ca(this._getPlayer(j),K,Xe,ve),()=>{}}command(j,N,K,ve){if("register"==K)return void this.register(j,ve[0]);if("create"==K)return void this.create(j,N,ve[0]||{});const Xe=this._getPlayer(j);switch(K){case"play":Xe.play();break;case"pause":Xe.pause();break;case"reset":Xe.reset();break;case"restart":Xe.restart();break;case"finish":Xe.finish();break;case"init":Xe.init();break;case"setPosition":Xe.setPosition(parseFloat(ve[0]));break;case"destroy":this.destroy(j)}}}const Ot="ng-animate-queued",Pn="ng-animate-disabled",Ds=[],xr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ko={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ms="__ng_removed";class ha{get params(){return this.options.params}constructor(j,N=""){this.namespaceId=N;const K=j&&j.hasOwnProperty("value");if(this.value=function yl(ue){return ue??null}(K?j.value:j),K){const Xe=rs(j);delete Xe.value,this.options=Xe}else this.options={};this.options.params||(this.options.params={})}absorbOptions(j){const N=j.params;if(N){const K=this.options.params;Object.keys(N).forEach(ve=>{null==K[ve]&&(K[ve]=N[ve])})}}}const Fa="void",mc=new ha(Fa);class kc{constructor(j,N,K){this.id=j,this.hostElement=N,this._engine=K,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+j,ac(N,this._hostClassName)}listen(j,N,K,ve){if(!this._triggers.has(N))throw function tl(ue,j){return new V.wOt(3302,!1)}();if(null==K||0==K.length)throw function As(ue){return new V.wOt(3303,!1)}();if(!function $o(ue){return"start"==ue||"done"==ue}(K))throw function wo(ue,j){return new V.wOt(3400,!1)}();const Xe=qs(this._elementListeners,j,[]),Ft={name:N,phase:K,callback:ve};Xe.push(Ft);const I=qs(this._engine.statesByElement,j,new Map);return I.has(N)||(ac(j,Js),ac(j,Js+"-"+N),I.set(N,mc)),()=>{this._engine.afterFlush(()=>{const B=Xe.indexOf(Ft);B>=0&&Xe.splice(B,1),this._triggers.has(N)||I.delete(N)})}}register(j,N){return!this._triggers.has(j)&&(this._triggers.set(j,N),!0)}_getTrigger(j){const N=this._triggers.get(j);if(!N)throw function nl(ue){return new V.wOt(3401,!1)}();return N}trigger(j,N,K,ve=!0){const Xe=this._getTrigger(N),Ft=new uo(this.id,N,j);let I=this._engine.statesByElement.get(j);I||(ac(j,Js),ac(j,Js+"-"+N),this._engine.statesByElement.set(j,I=new Map));let B=I.get(N);const R=new ha(K,this.id);if(!(K&&K.hasOwnProperty("value"))&&B&&R.absorbOptions(B.options),I.set(N,R),B||(B=mc),R.value!==Fa&&B.value===R.value){if(!function Gd(ue,j){const N=Object.keys(ue),K=Object.keys(j);if(N.length!=K.length)return!1;for(let ve=0;ve{Ra(j,Ci),vo(j,Ji)})}return}const Ne=qs(this._engine.playersByElement,j,[]);Ne.forEach(un=>{un.namespaceId==this.id&&un.triggerName==N&&un.queued&&un.destroy()});let bt=Xe.matchTransition(B.value,R.value,j,R.params),an=!1;if(!bt){if(!ve)return;bt=Xe.fallbackTransition,an=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:j,triggerName:N,transition:bt,fromState:B,toState:R,player:Ft,isFallbackTransition:an}),an||(ac(j,Ot),Ft.onStart(()=>{R1(j,Ot)})),Ft.onDone(()=>{let un=this.players.indexOf(Ft);un>=0&&this.players.splice(un,1);const Ci=this._engine.playersByElement.get(j);if(Ci){let Ji=Ci.indexOf(Ft);Ji>=0&&Ci.splice(Ji,1)}}),this.players.push(Ft),Ne.push(Ft),Ft}deregister(j){this._triggers.delete(j),this._engine.statesByElement.forEach(N=>N.delete(j)),this._elementListeners.forEach((N,K)=>{this._elementListeners.set(K,N.filter(ve=>ve.name!=j))})}clearElementCache(j){this._engine.statesByElement.delete(j),this._elementListeners.delete(j);const N=this._engine.playersByElement.get(j);N&&(N.forEach(K=>K.destroy()),this._engine.playersByElement.delete(j))}_signalRemovalForInnerTriggers(j,N){const K=this._engine.driver.query(j,ua,!0);K.forEach(ve=>{if(ve[ms])return;const Xe=this._engine.fetchNamespacesByElement(ve);Xe.size?Xe.forEach(Ft=>Ft.triggerLeaveAnimation(ve,N,!1,!0)):this.clearElementCache(ve)}),this._engine.afterFlushAnimationsDone(()=>K.forEach(ve=>this.clearElementCache(ve)))}triggerLeaveAnimation(j,N,K,ve){const Xe=this._engine.statesByElement.get(j),Ft=new Map;if(Xe){const I=[];if(Xe.forEach((B,R)=>{if(Ft.set(R,B.value),this._triggers.has(R)){const q=this.trigger(j,R,Fa,ve);q&&I.push(q)}}),I.length)return this._engine.markElementAsRemoved(this.id,j,!0,N,Ft),K&&fr(I).onDone(()=>this._engine.processLeaveNode(j)),!0}return!1}prepareLeaveAnimationListeners(j){const N=this._elementListeners.get(j),K=this._engine.statesByElement.get(j);if(N&&K){const ve=new Set;N.forEach(Xe=>{const Ft=Xe.name;if(ve.has(Ft))return;ve.add(Ft);const B=this._triggers.get(Ft).fallbackTransition,R=K.get(Ft)||mc,q=new ha(Fa),ae=new uo(this.id,Ft,j);this._engine.totalQueuedPlayers++,this._queue.push({element:j,triggerName:Ft,transition:B,fromState:R,toState:q,player:ae,isFallbackTransition:!0})})}}removeNode(j,N){const K=this._engine;if(j.childElementCount&&this._signalRemovalForInnerTriggers(j,N),this.triggerLeaveAnimation(j,N,!0))return;let ve=!1;if(K.totalAnimations){const Xe=K.players.length?K.playersByQueriedElement.get(j):[];if(Xe&&Xe.length)ve=!0;else{let Ft=j;for(;Ft=Ft.parentNode;)if(K.statesByElement.get(Ft)){ve=!0;break}}}if(this.prepareLeaveAnimationListeners(j),ve)K.markElementAsRemoved(this.id,j,!1,N);else{const Xe=j[ms];(!Xe||Xe===xr)&&(K.afterFlush(()=>this.clearElementCache(j)),K.destroyInnerAnimations(j),K._onRemovalComplete(j,N))}}insertNode(j,N){ac(j,this._hostClassName)}drainQueuedTransitions(j){const N=[];return this._queue.forEach(K=>{const ve=K.player;if(ve.destroyed)return;const Xe=K.element,Ft=this._elementListeners.get(Xe);Ft&&Ft.forEach(I=>{if(I.name==K.triggerName){const B=za(Xe,K.triggerName,K.fromState.value,K.toState.value);B._data=j,ca(K.player,I.phase,B,I.callback)}}),ve.markedForDestroy?this._engine.afterFlush(()=>{ve.destroy()}):N.push(K)}),this._queue=[],N.sort((K,ve)=>{const Xe=K.transition.ast.depCount,Ft=ve.transition.ast.depCount;return 0==Xe||0==Ft?Xe-Ft:this._engine.driver.containsElement(K.element,ve.element)?1:-1})}destroy(j){this.players.forEach(N=>N.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,j)}}class js{_onRemovalComplete(j,N){this.onRemovalComplete(j,N)}constructor(j,N,K){this.bodyNode=j,this.driver=N,this._normalizer=K,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=(ve,Xe)=>{}}get queuedPlayers(){const j=[];return this._namespaceList.forEach(N=>{N.players.forEach(K=>{K.queued&&j.push(K)})}),j}createNamespace(j,N){const K=new kc(j,N,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,N)?this._balanceNamespaceList(K,N):(this.newHostElements.set(N,K),this.collectEnterElement(N)),this._namespaceLookup[j]=K}_balanceNamespaceList(j,N){const K=this._namespaceList,ve=this.namespacesByHostElement;if(K.length-1>=0){let Ft=!1,I=this.driver.getParentElement(N);for(;I;){const B=ve.get(I);if(B){const R=K.indexOf(B);K.splice(R+1,0,j),Ft=!0;break}I=this.driver.getParentElement(I)}Ft||K.unshift(j)}else K.push(j);return ve.set(N,j),j}register(j,N){let K=this._namespaceLookup[j];return K||(K=this.createNamespace(j,N)),K}registerTrigger(j,N,K){let ve=this._namespaceLookup[j];ve&&ve.register(N,K)&&this.totalAnimations++}destroy(j,N){j&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const K=this._fetchNamespace(j);this.namespacesByHostElement.delete(K.hostElement);const ve=this._namespaceList.indexOf(K);ve>=0&&this._namespaceList.splice(ve,1),K.destroy(N),delete this._namespaceLookup[j]}))}_fetchNamespace(j){return this._namespaceLookup[j]}fetchNamespacesByElement(j){const N=new Set,K=this.statesByElement.get(j);if(K)for(let ve of K.values())if(ve.namespaceId){const Xe=this._fetchNamespace(ve.namespaceId);Xe&&N.add(Xe)}return N}trigger(j,N,K,ve){if(S2(N)){const Xe=this._fetchNamespace(j);if(Xe)return Xe.trigger(N,K,ve),!0}return!1}insertNode(j,N,K,ve){if(!S2(N))return;const Xe=N[ms];if(Xe&&Xe.setForRemoval){Xe.setForRemoval=!1,Xe.setForMove=!0;const Ft=this.collectedLeaveElements.indexOf(N);Ft>=0&&this.collectedLeaveElements.splice(Ft,1)}if(j){const Ft=this._fetchNamespace(j);Ft&&Ft.insertNode(N,K)}ve&&this.collectEnterElement(N)}collectEnterElement(j){this.collectedEnterElements.push(j)}markElementAsDisabled(j,N){N?this.disabledNodes.has(j)||(this.disabledNodes.add(j),ac(j,Pn)):this.disabledNodes.has(j)&&(this.disabledNodes.delete(j),R1(j,Pn))}removeNode(j,N,K){if(S2(N)){const ve=j?this._fetchNamespace(j):null;ve?ve.removeNode(N,K):this.markElementAsRemoved(j,N,!1,K);const Xe=this.namespacesByHostElement.get(N);Xe&&Xe.id!==j&&Xe.removeNode(N,K)}else this._onRemovalComplete(N,K)}markElementAsRemoved(j,N,K,ve,Xe){this.collectedLeaveElements.push(N),N[ms]={namespaceId:j,setForRemoval:ve,hasAnimation:K,removedBeforeQueried:!1,previousTriggersValues:Xe}}listen(j,N,K,ve,Xe){return S2(N)?this._fetchNamespace(j).listen(N,K,ve,Xe):()=>{}}_buildInstruction(j,N,K,ve,Xe){return j.transition.build(this.driver,j.element,j.fromState.value,j.toState.value,K,ve,j.fromState.options,j.toState.options,N,Xe)}destroyInnerAnimations(j){let N=this.driver.query(j,ua,!0);N.forEach(K=>this.destroyActiveAnimationsForElement(K)),0!=this.playersByQueriedElement.size&&(N=this.driver.query(j,gl,!0),N.forEach(K=>this.finishActiveQueriedAnimationOnElement(K)))}destroyActiveAnimationsForElement(j){const N=this.playersByElement.get(j);N&&N.forEach(K=>{K.queued?K.markedForDestroy=!0:K.destroy()})}finishActiveQueriedAnimationOnElement(j){const N=this.playersByQueriedElement.get(j);N&&N.forEach(K=>K.finish())}whenRenderingDone(){return new Promise(j=>{if(this.players.length)return fr(this.players).onDone(()=>j());j()})}processLeaveNode(j){const N=j[ms];if(N&&N.setForRemoval){if(j[ms]=xr,N.namespaceId){this.destroyInnerAnimations(j);const K=this._fetchNamespace(N.namespaceId);K&&K.clearElementCache(j)}this._onRemovalComplete(j,N.setForRemoval)}j.classList?.contains(Pn)&&this.markElementAsDisabled(j,!1),this.driver.query(j,".ng-animate-disabled",!0).forEach(K=>{this.markElementAsDisabled(K,!1)})}flush(j=-1){let N=[];if(this.newHostElements.size&&(this.newHostElements.forEach((K,ve)=>this._balanceNamespaceList(K,ve)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let K=0;KK()),this._flushFns=[],this._whenQuietFns.length){const K=this._whenQuietFns;this._whenQuietFns=[],N.length?fr(N).onDone(()=>{K.forEach(ve=>ve())}):K.forEach(ve=>ve())}}reportError(j){throw function Ka(ue){return new V.wOt(3402,!1)}()}_flushAnimations(j,N){const K=new Mc,ve=[],Xe=new Map,Ft=[],I=new Map,B=new Map,R=new Map,q=new Set;this.disabledNodes.forEach(er=>{q.add(er);const wr=this.driver.query(er,".ng-animate-queued",!0);for(let Mr=0;Mr{const Mr=Qs+un++;an.set(wr,Mr),er.forEach(yo=>ac(yo,Mr))});const Ci=[],Ji=new Set,ls=new Set;for(let er=0;erJi.add(yo)):ls.add(wr))}const Ar=new Map,Po=gc(Ne,Array.from(Ji));Po.forEach((er,wr)=>{const Mr=la+un++;Ar.set(wr,Mr),er.forEach(yo=>ac(yo,Mr))}),j.push(()=>{bt.forEach((er,wr)=>{const Mr=an.get(wr);er.forEach(yo=>R1(yo,Mr))}),Po.forEach((er,wr)=>{const Mr=Ar.get(wr);er.forEach(yo=>R1(yo,Mr))}),Ci.forEach(er=>{this.processLeaveNode(er)})});const al=[],Xo=[];for(let er=this._namespaceList.length-1;er>=0;er--)this._namespaceList[er].drainQueuedTransitions(N).forEach(Mr=>{const yo=Mr.player,Ba=Mr.element;if(al.push(yo),this.collectedEnterElements.length){const $a=Ba[ms];if($a&&$a.setForMove){if($a.previousTriggersValues&&$a.previousTriggersValues.has(Mr.triggerName)){const jl=$a.previousTriggersValues.get(Mr.triggerName),Kl=this.statesByElement.get(Mr.element);if(Kl&&Kl.has(Mr.triggerName)){const Kd=Kl.get(Mr.triggerName);Kd.value=jl,Kl.set(Mr.triggerName,Kd)}}return void yo.destroy()}}const Xc=!ae||!this.driver.containsElement(ae,Ba),Sr=Ar.get(Ba),S1=an.get(Ba),ya=this._buildInstruction(Mr,K,S1,Sr,Xc);if(ya.errors&&ya.errors.length)return void Xo.push(ya);if(Xc)return yo.onStart(()=>Ra(Ba,ya.fromStyles)),yo.onDestroy(()=>vo(Ba,ya.toStyles)),void ve.push(yo);if(Mr.isFallbackTransition)return yo.onStart(()=>Ra(Ba,ya.fromStyles)),yo.onDestroy(()=>vo(Ba,ya.toStyles)),void ve.push(yo);const Xd=[];ya.timelines.forEach($a=>{$a.stretchStartingKeyframe=!0,this.disabledNodes.has($a.element)||Xd.push($a)}),ya.timelines=Xd,K.append(Ba,ya.timelines),Ft.push({instruction:ya,player:yo,element:Ba}),ya.queriedElements.forEach($a=>qs(I,$a,[]).push(yo)),ya.preStyleProps.forEach(($a,jl)=>{if($a.size){let Kl=B.get(jl);Kl||B.set(jl,Kl=new Set),$a.forEach((Kd,lu)=>Kl.add(lu))}}),ya.postStyleProps.forEach(($a,jl)=>{let Kl=R.get(jl);Kl||R.set(jl,Kl=new Set),$a.forEach((Kd,lu)=>Kl.add(lu))})});if(Xo.length){const er=[];Xo.forEach(wr=>{er.push(function Xr(ue,j){return new V.wOt(3505,!1)}())}),al.forEach(wr=>wr.destroy()),this.reportError(er)}const Ko=new Map,Io=new Map;Ft.forEach(er=>{const wr=er.element;K.has(wr)&&(Io.set(wr,wr),this._beforeAnimationBuild(er.player.namespaceId,er.instruction,Ko))}),ve.forEach(er=>{const wr=er.element;this._getPreviousPlayers(wr,!1,er.namespaceId,er.triggerName,null).forEach(yo=>{qs(Ko,wr,[]).push(yo),yo.destroy()})});const vc=Ci.filter(er=>Tu(er,B,R)),bo=new Map;ot(bo,this.driver,ls,R,Gr.kp).forEach(er=>{Tu(er,B,R)&&vc.push(er)});const Hu=new Map;bt.forEach((er,wr)=>{ot(Hu,this.driver,new Set(er),B,Gr.FX)}),vc.forEach(er=>{const wr=bo.get(er),Mr=Hu.get(er);bo.set(er,new Map([...wr?.entries()??[],...Mr?.entries()??[]]))});const Rc=[],D4=[],M1={};Ft.forEach(er=>{const{element:wr,player:Mr,instruction:yo}=er;if(K.has(wr)){if(q.has(wr))return Mr.onDestroy(()=>vo(wr,yo.toStyles)),Mr.disabled=!0,Mr.overrideTotalTime(yo.totalTime),void ve.push(Mr);let Ba=M1;if(Io.size>1){let Sr=wr;const S1=[];for(;Sr=Sr.parentNode;){const ya=Io.get(Sr);if(ya){Ba=ya;break}S1.push(Sr)}S1.forEach(ya=>Io.set(ya,Ba))}const Xc=this._buildAnimation(Mr.namespaceId,yo,Ko,Xe,Hu,bo);if(Mr.setRealPlayer(Xc),Ba===M1)Rc.push(Mr);else{const Sr=this.playersByElement.get(Ba);Sr&&Sr.length&&(Mr.parentPlayer=fr(Sr)),ve.push(Mr)}}else Ra(wr,yo.fromStyles),Mr.onDestroy(()=>vo(wr,yo.toStyles)),D4.push(Mr),q.has(wr)&&ve.push(Mr)}),D4.forEach(er=>{const wr=Xe.get(er.element);if(wr&&wr.length){const Mr=fr(wr);er.setRealPlayer(Mr)}}),ve.forEach(er=>{er.parentPlayer?er.syncPlayerEvents(er.parentPlayer):er.destroy()});for(let er=0;er!Xc.destroyed);Ba.length?k2(this,wr,Ba):this.processLeaveNode(wr)}return Ci.length=0,Rc.forEach(er=>{this.players.push(er),er.onDone(()=>{er.destroy();const wr=this.players.indexOf(er);this.players.splice(wr,1)}),er.play()}),Rc}afterFlush(j){this._flushFns.push(j)}afterFlushAnimationsDone(j){this._whenQuietFns.push(j)}_getPreviousPlayers(j,N,K,ve,Xe){let Ft=[];if(N){const I=this.playersByQueriedElement.get(j);I&&(Ft=I)}else{const I=this.playersByElement.get(j);if(I){const B=!Xe||Xe==Fa;I.forEach(R=>{R.queued||!B&&R.triggerName!=ve||Ft.push(R)})}}return(K||ve)&&(Ft=Ft.filter(I=>!(K&&K!=I.namespaceId||ve&&ve!=I.triggerName))),Ft}_beforeAnimationBuild(j,N,K){const Xe=N.element,Ft=N.isRemovalTransition?void 0:j,I=N.isRemovalTransition?void 0:N.triggerName;for(const B of N.timelines){const R=B.element,q=R!==Xe,ae=qs(K,R,[]);this._getPreviousPlayers(R,q,Ft,I,N.toState).forEach(bt=>{const an=bt.getRealPlayer();an.beforeDestroy&&an.beforeDestroy(),bt.destroy(),ae.push(bt)})}Ra(Xe,N.fromStyles)}_buildAnimation(j,N,K,ve,Xe,Ft){const I=N.triggerName,B=N.element,R=[],q=new Set,ae=new Set,Ne=N.timelines.map(an=>{const un=an.element;q.add(un);const Ci=un[ms];if(Ci&&Ci.removedBeforeQueried)return new Gr.sf(an.duration,an.delay);const Ji=un!==B,ls=function cc(ue){const j=[];return Ud(ue,j),j}((K.get(un)||Ds).map(Ko=>Ko.getRealPlayer())).filter(Ko=>!!Ko.element&&Ko.element===un),Ar=Xe.get(un),Po=Ft.get(un),al=Ao(this._normalizer,an.keyframes,Ar,Po),Xo=this._buildPlayer(an,al,ls);if(an.subTimeline&&ve&&ae.add(un),Ji){const Ko=new uo(j,I,un);Ko.setRealPlayer(Xo),R.push(Ko)}return Xo});R.forEach(an=>{qs(this.playersByQueriedElement,an.element,[]).push(an),an.onDone(()=>function oc(ue,j,N){let K=ue.get(j);if(K){if(K.length){const ve=K.indexOf(N);K.splice(ve,1)}0==K.length&&ue.delete(j)}return K}(this.playersByQueriedElement,an.element,an))}),q.forEach(an=>ac(an,da));const bt=fr(Ne);return bt.onDestroy(()=>{q.forEach(an=>R1(an,da)),vo(B,N.toStyles)}),ae.forEach(an=>{qs(ve,an,[]).push(bt)}),bt}_buildPlayer(j,N,K){return N.length>0?this.driver.animate(j.element,N,j.duration,j.delay,j.easing,K):new Gr.sf(j.duration,j.delay)}}class uo{constructor(j,N,K){this.namespaceId=j,this.triggerName=N,this.element=K,this._player=new Gr.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(j){this._containsRealPlayer||(this._player=j,this._queuedCallbacks.forEach((N,K)=>{N.forEach(ve=>ca(j,K,void 0,ve))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(j.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(j){this.totalTime=j}syncPlayerEvents(j){const N=this._player;N.triggerCallback&&j.onStart(()=>N.triggerCallback("start")),j.onDone(()=>this.finish()),j.onDestroy(()=>this.destroy())}_queueEvent(j,N){qs(this._queuedCallbacks,j,[]).push(N)}onDone(j){this.queued&&this._queueEvent("done",j),this._player.onDone(j)}onStart(j){this.queued&&this._queueEvent("start",j),this._player.onStart(j)}onDestroy(j){this.queued&&this._queueEvent("destroy",j),this._player.onDestroy(j)}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(j){this.queued||this._player.setPosition(j)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(j){const N=this._player;N.triggerCallback&&N.triggerCallback(j)}}function S2(ue){return ue&&1===ue.nodeType}function Za(ue,j){const N=ue.style.display;return ue.style.display=j??"none",N}function ot(ue,j,N,K,ve){const Xe=[];N.forEach(B=>Xe.push(Za(B)));const Ft=[];K.forEach((B,R)=>{const q=new Map;B.forEach(ae=>{const Ne=j.computeStyle(R,ae,ve);q.set(ae,Ne),(!Ne||0==Ne.length)&&(R[ms]=ko,Ft.push(R))}),ue.set(R,q)});let I=0;return N.forEach(B=>Za(B,Xe[I++])),Ft}function gc(ue,j){const N=new Map;if(ue.forEach(I=>N.set(I,[])),0==j.length)return N;const ve=new Set(j),Xe=new Map;function Ft(I){if(!I)return 1;let B=Xe.get(I);if(B)return B;const R=I.parentNode;return B=N.has(R)?R:ve.has(R)?1:Ft(R),Xe.set(I,B),B}return j.forEach(I=>{const B=Ft(I);1!==B&&N.get(B).push(I)}),N}function ac(ue,j){ue.classList?.add(j)}function R1(ue,j){ue.classList?.remove(j)}function k2(ue,j,N){fr(N).onDone(()=>ue.processLeaveNode(j))}function Ud(ue,j){for(let N=0;Nve.add(Xe)):j.set(ue,K),N.delete(ue),!0}class qc{constructor(j,N,K){this.bodyNode=j,this._driver=N,this._normalizer=K,this._triggerCache={},this.onRemovalComplete=(ve,Xe)=>{},this._transitionEngine=new js(j,N,K),this._timelineEngine=new Ie(j,N,K),this._transitionEngine.onRemovalComplete=(ve,Xe)=>this.onRemovalComplete(ve,Xe)}registerTrigger(j,N,K,ve,Xe){const Ft=j+"-"+ve;let I=this._triggerCache[Ft];if(!I){const B=[],q=zr(this._driver,Xe,B,[]);if(B.length)throw function Z1(ue,j){return new V.wOt(3404,!1)}();I=function t2(ue,j,N){return new od(ue,j,N)}(ve,q,this._normalizer),this._triggerCache[Ft]=I}this._transitionEngine.registerTrigger(N,ve,I)}register(j,N){this._transitionEngine.register(j,N)}destroy(j,N){this._transitionEngine.destroy(j,N)}onInsert(j,N,K,ve){this._transitionEngine.insertNode(j,N,K,ve)}onRemove(j,N,K){this._transitionEngine.removeNode(j,N,K)}disableAnimations(j,N){this._transitionEngine.markElementAsDisabled(j,N)}process(j,N,K,ve){if("@"==K.charAt(0)){const[Xe,Ft]=gr(K);this._timelineEngine.command(Xe,N,Ft,ve)}else this._transitionEngine.trigger(j,N,K,ve)}listen(j,N,K,ve,Xe){if("@"==K.charAt(0)){const[Ft,I]=gr(K);return this._timelineEngine.listen(Ft,N,I,Xe)}return this._transitionEngine.listen(j,N,K,ve,Xe)}flush(j=-1){this._transitionEngine.flush(j)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(j){this._transitionEngine.afterFlushAnimationsDone(j)}}let Wd=(()=>{class ue{static#e=this.initialStylesByElement=new WeakMap;constructor(N,K,ve){this._element=N,this._startStyles=K,this._endStyles=ve,this._state=0;let Xe=ue.initialStylesByElement.get(N);Xe||ue.initialStylesByElement.set(N,Xe=new Map),this._initialStyles=Xe}start(){this._state<1&&(this._startStyles&&vo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vo(this._element,this._initialStyles),this._endStyles&&(vo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ue.initialStylesByElement.delete(this._element),this._startStyles&&(Ra(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ra(this._element,this._endStyles),this._endStyles=null),vo(this._element,this._initialStyles),this._state=3)}}return ue})();function n2(ue){let j=null;return ue.forEach((N,K)=>{(function Nl(ue){return"display"===ue||"position"===ue})(K)&&(j=j||new Map,j.set(K,N))}),j}class su{constructor(j,N,K,ve){this.element=j,this.keyframes=N,this.options=K,this._specialStyles=ve,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=K.duration,this._delay=K.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(j=>j()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const j=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,j,this.options),this._finalKeyframe=j.length?j[j.length-1]:new Map;const N=()=>this._onFinish();this.domPlayer.addEventListener("finish",N),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",N)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(j){const N=[];return j.forEach(K=>{N.push(Object.fromEntries(K))}),N}_triggerWebAnimation(j,N,K){return j.animate(this._convertKeyframesToObject(N),K)}onStart(j){this._originalOnStartFns.push(j),this._onStartFns.push(j)}onDone(j){this._originalOnDoneFns.push(j),this._onDoneFns.push(j)}onDestroy(j){this._onDestroyFns.push(j)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(j=>j()),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(j=>j()),this._onDestroyFns=[])}setPosition(j){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=j*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const j=new Map;this.hasStarted()&&this._finalKeyframe.forEach((K,ve)=>{"offset"!==ve&&j.set(ve,this._finished?K:ie(this.element,ve))}),this.currentSnapshot=j}triggerCallback(j){const N="start"===j?this._onStartFns:this._onDoneFns;N.forEach(K=>K()),N.length=0}}class Vu{validateStyleProperty(j){return!0}validateAnimatableStyleProperty(j){return!0}matchesElement(j,N){return!1}containsElement(j,N){return ka(j,N)}getParentElement(j){return Wr(j)}query(j,N,K){return Is(j,N,K)}computeStyle(j,N,K){return window.getComputedStyle(j)[N]}animate(j,N,K,ve,Xe,Ft=[]){const B={duration:K,delay:ve,fill:0==ve?"both":"forwards"};Xe&&(B.easing=Xe);const R=new Map,q=Ft.filter(bt=>bt instanceof su);(function vl(ue,j){return 0===ue||0===j})(K,ve)&&q.forEach(bt=>{bt.currentSnapshot.forEach((an,un)=>R.set(un,an))});let ae=function Ll(ue){return ue.length?ue[0]instanceof Map?ue:ue.map(j=>H1(j)):[]}(N).map(bt=>Lr(bt));ae=function qr(ue,j,N){if(N.size&&j.length){let K=j[0],ve=[];if(N.forEach((Xe,Ft)=>{K.has(Ft)||ve.push(Ft),K.set(Ft,Xe)}),ve.length)for(let Xe=1;XeFt.set(I,ie(ue,I)))}}return j}(j,ae,R);const Ne=function ru(ue,j){let N=null,K=null;return Array.isArray(j)&&j.length?(N=n2(j[0]),j.length>1&&(K=n2(j[j.length-1]))):j instanceof Map&&(N=n2(j)),N||K?new Wd(ue,N,K):null}(j,ae);return new su(j,ae,B,Ne)}}let Zr=(()=>{class ue extends Gr.S6{constructor(N,K){super(),this._nextAnimationId=0,this._renderer=N.createRenderer(K.body,{id:"0",encapsulation:V.gXe.None,styles:[],data:{animation:[]}})}build(N){const K=this._nextAnimationId.toString();this._nextAnimationId++;const ve=Array.isArray(N)?(0,Gr.K2)(N):N;return x1(this._renderer,null,K,"register",[ve]),new ou(K,this._renderer)}static#e=this.\u0275fac=function(K){return new(K||ue)(V.KVO(V._9s),V.KVO(o.qQ))};static#t=this.\u0275prov=V.jDH({token:ue,factory:ue.\u0275fac})}return ue})();class ou extends Gr.Ro{constructor(j,N){super(),this._id=j,this._renderer=N}create(j,N){return new Pl(this._id,j,N||{},this._renderer)}}class Pl{constructor(j,N,K,ve){this.id=j,this.element=N,this._renderer=ve,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",K)}_listen(j,N){return this._renderer.listen(this.element,`@@${this.id}:${j}`,N)}_command(j,...N){return x1(this._renderer,this.element,this.id,j,N)}onDone(j){this._listen("done",j)}onStart(j){this._listen("start",j)}onDestroy(j){this._listen("destroy",j)}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(j){this._command("setPosition",j)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function x1(ue,j,N,K,ve){return ue.setProperty(j,`@@${N}:${K}`,ve)}const ad="@.disabled";let cd=(()=>{class ue{constructor(N,K,ve){this.delegate=N,this.engine=K,this._zone=ve,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,K.onRemovalComplete=(Xe,Ft)=>{const I=Ft?.parentNode(Xe);I&&Ft.removeChild(I,Xe)}}createRenderer(N,K){const Xe=this.delegate.createRenderer(N,K);if(!(N&&K&&K.data&&K.data.animation)){let q=this._rendererCache.get(Xe);return q||(q=new E2("",Xe,this.engine,()=>this._rendererCache.delete(Xe)),this._rendererCache.set(Xe,q)),q}const Ft=K.id,I=K.id+"-"+this._currentId;this._currentId++,this.engine.register(I,N);const B=q=>{Array.isArray(q)?q.forEach(B):this.engine.registerTrigger(Ft,I,N,q.name,q)};return K.data.animation.forEach(B),new Au(this,I,Xe,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(N,K,ve){N>=0&&NK(ve)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Xe=>{const[Ft,I]=Xe;Ft(I)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([K,ve]))}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()}static#e=this.\u0275fac=function(K){return new(K||ue)(V.KVO(V._9s),V.KVO(qc),V.KVO(V.SKi))};static#t=this.\u0275prov=V.jDH({token:ue,factory:ue.\u0275fac})}return ue})();class E2{constructor(j,N,K,ve){this.namespaceId=j,this.delegate=N,this.engine=K,this._onDestroy=ve}get data(){return this.delegate.data}destroyNode(j){this.delegate.destroyNode?.(j)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(j,N){return this.delegate.createElement(j,N)}createComment(j){return this.delegate.createComment(j)}createText(j){return this.delegate.createText(j)}appendChild(j,N){this.delegate.appendChild(j,N),this.engine.onInsert(this.namespaceId,N,j,!1)}insertBefore(j,N,K,ve=!0){this.delegate.insertBefore(j,N,K),this.engine.onInsert(this.namespaceId,N,j,ve)}removeChild(j,N,K){this.engine.onRemove(this.namespaceId,N,this.delegate)}selectRootElement(j,N){return this.delegate.selectRootElement(j,N)}parentNode(j){return this.delegate.parentNode(j)}nextSibling(j){return this.delegate.nextSibling(j)}setAttribute(j,N,K,ve){this.delegate.setAttribute(j,N,K,ve)}removeAttribute(j,N,K){this.delegate.removeAttribute(j,N,K)}addClass(j,N){this.delegate.addClass(j,N)}removeClass(j,N){this.delegate.removeClass(j,N)}setStyle(j,N,K,ve){this.delegate.setStyle(j,N,K,ve)}removeStyle(j,N,K){this.delegate.removeStyle(j,N,K)}setProperty(j,N,K){"@"==N.charAt(0)&&N==ad?this.disableAnimations(j,!!K):this.delegate.setProperty(j,N,K)}setValue(j,N){this.delegate.setValue(j,N)}listen(j,N,K){return this.delegate.listen(j,N,K)}disableAnimations(j,N){this.engine.disableAnimations(j,N)}}class Au extends E2{constructor(j,N,K,ve,Xe){super(N,K,ve,Xe),this.factory=j,this.namespaceId=N}setProperty(j,N,K){"@"==N.charAt(0)?"."==N.charAt(1)&&N==ad?this.disableAnimations(j,K=void 0===K||!!K):this.engine.process(this.namespaceId,j,N.slice(1),K):this.delegate.setProperty(j,N,K)}listen(j,N,K){if("@"==N.charAt(0)){const ve=function qd(ue){switch(ue){case"body":return document.body;case"document":return document;case"window":return window;default:return ue}}(j);let Xe=N.slice(1),Ft="";return"@"!=Xe.charAt(0)&&([Xe,Ft]=function Cl(ue){const j=ue.indexOf(".");return[ue.substring(0,j),ue.slice(j+1)]}(Xe)),this.engine.listen(this.namespaceId,ve,Xe,Ft,I=>{this.factory.scheduleListenerCallback(I._data||-1,K,I)})}return this.delegate.listen(j,N,K)}}const Fs=[{provide:Gr.S6,useClass:Zr},{provide:d1,useFactory:function Iu(){return new tu}},{provide:qc,useClass:(()=>{class ue extends qc{constructor(N,K,ve,Xe){super(N.body,K,ve)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(K){return new(K||ue)(V.KVO(o.qQ),V.KVO(ur),V.KVO(d1),V.KVO(V.o8S))};static#t=this.\u0275prov=V.jDH({token:ue,factory:ue.\u0275fac})}return ue})()},{provide:V._9s,useFactory:function li(ue,j,N){return new cd(ue,j,N)},deps:[g.B7,qc,V.SKi]}],au=[{provide:ur,useFactory:()=>new Vu},{provide:V.bc$,useValue:"BrowserAnimations"},...Fs],T2=[{path:"",pathMatch:"full",loadComponent:()=>F.e(671).then(F.bind(F,2671)).then(ue=>ue.PageHomeComponent)},{path:"playground",pathMatch:"full",loadComponent:()=>F.e(172).then(F.bind(F,4172)).then(ue=>ue.PagePlaygroundComponent)},{matcher:ue=>ue.length&&"docs"===ue[0].path?{consumed:ue}:null,loadComponent:()=>F.e(752).then(F.bind(F,9752)).then(ue=>ue.PageDocsComponent)},{path:"**",redirectTo:""}],V2=new V.nKC("x-forwared-host"),cu={providers:[function w1(){return[...au]}(),(0,lr.$R)((0,lr.b$)([(ue,j)=>{const N=(0,V.WQX)(V.Agw),K=(0,V.WQX)(V2,{optional:!0})??"http://localhost:4201";if(!ue.url.startsWith("http")&&(0,o.Vy)(N)){const ve=ue.url;ue=ue.clone({url:`${K}/${ve.startsWith("/")?ve.substring(1):ve}`})}return j(ue)}])),(0,jt.lh)(T2,(0,jt.oH)({scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),(0,jt.Sn)(jt.Kp)),{provide:V.hnV,deps:[Qn.g,jn.I],multi:!0,useFactory:ue=>()=>ue.loadLanguageData$()}]};(0,g.B8)(ii,cu).catch(ue=>console.error(ue))},4510:vn=>{function J(g,o,V,oe,De,pe,Ee){try{var be=g[pe](Ee),me=be.value}catch(Te){return void V(Te)}be.done?o(me):Promise.resolve(me).then(oe,De)}vn.exports=function F(g){return function(){var o=this,V=arguments;return new Promise(function(oe,De){var pe=g.apply(o,V);function Ee(me){J(pe,oe,De,Ee,be,"next",me)}function be(me){J(pe,oe,De,Ee,be,"throw",me)}Ee(void 0)})}},vn.exports.__esModule=!0,vn.exports.default=vn.exports},2576:(vn,J,F)=>{"use strict";F.d(J,{G:()=>W6});var g=F(6610),o=F(2978),V=F(8832);let oe;try{oe=typeof Intl<"u"&&Intl.v8BreakIterator}catch{oe=!1}let Ee,De=(()=>{class E{constructor(h){this._platformId=h,this.isBrowser=this._platformId?(0,g.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!oe)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(o.Agw))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const be=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function me(){if(Ee)return Ee;if("object"!=typeof document||!document)return Ee=new Set(be),Ee;let E=document.createElement("input");return Ee=new Set(be.filter(O=>(E.setAttribute("type",O),E.type===O))),Ee}let Te,Re,Fe;function ze(E){return function Ve(){if(null==Te&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Te=!0}))}finally{Te=Te||!1}return Te}()?E:!!E.capture}function tt(){if(null==Re){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Re=!1,Re;if("scrollBehavior"in document.documentElement.style)Re=!0;else{const E=Element.prototype.scrollTo;Re=!!E&&!/\{\s*\[native code\]\s*\}/.test(E.toString())}}return Re}function Be(){let E=typeof document<"u"&&document?document.activeElement:null;for(;E&&E.shadowRoot;){const O=E.shadowRoot.activeElement;if(O===E)break;E=O}return E}function he(E){return E.composedPath?E.composedPath()[0]:E.target}function He(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Se=F(6104),it=F(2029),dt=F(5981),jt=F(756);const H=37;function Ao(E,...O){return O.length?O.some(h=>E[h]):E.altKey||E.shiftKey||E.ctrlKey||E.metaKey}var ca=F(7236),Ya=F(8887),za=F(8503),qs=F(3527),gr=F(8486),il=F(9990),Wr=F(3793),yi=F(6340);function Kn(E){return null!=E&&"false"!=`${E}`}function ar(E,O=0){return function Sa(E){return!isNaN(parseFloat(E))&&!isNaN(Number(E))}(E)?Number(E):O}function Mo(E){return Array.isArray(E)?E:[E]}function ns(E){return null==E?"":"string"==typeof E?E:`${E}px`}function ka(E){return E instanceof o.aKT?E.nativeElement:E}let wc=(()=>{class E{create(h){return typeof MutationObserver>"u"?null:new MutationObserver(h)}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),rr=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[wc]})}return E})();var ml=F(199),Lc=F(6753),Qs=F(9406),la=F(965);const ua=new Set;let da,gl=(()=>{class E{constructor(h,b){this._platform=h,this._nonce=b,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ia}matchMedia(h){return(this._platform.WEBKIT||this._platform.BLINK)&&function No(E,O){if(!ua.has(E))try{da||(da=document.createElement("style"),O&&(da.nonce=O),da.setAttribute("type","text/css"),document.head.appendChild(da)),da.sheet&&(da.sheet.insertRule(`@media ${E} {body{ }}`,0),ua.add(E))}catch(h){console.error(h)}}(h,this._nonce),this._matchMedia(h)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(o.BIS,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function ia(E){return{matches:"all"===E||""===E,media:E,addListener:()=>{},removeListener:()=>{}}}let zc=(()=>{class E{constructor(h,b){this._mediaMatcher=h,this._zone=b,this._queries=new Map,this._destroySubject=new Se.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(h){return Hl(Mo(h)).some(w=>this._registerQuery(w).mql.matches)}observe(h){const w=Hl(Mo(h)).map(we=>this._registerQuery(we).observable);let G=(0,ml.z)(w);return G=(0,Lc.x)(G.pipe((0,gr.s)(1)),G.pipe((0,il.i)(1),(0,Ya.B)(0))),G.pipe((0,qs.T)(we=>{const en={matches:!1,breakpoints:{}};return we.forEach(({matches:Yn,query:ki})=>{en.matches=en.matches||Yn,en.breakpoints[ki]=Yn}),en}))}_registerQuery(h){if(this._queries.has(h))return this._queries.get(h);const b=this._mediaMatcher.matchMedia(h),G={observable:new Qs.c(we=>{const en=Yn=>this._zone.run(()=>we.next(Yn));return b.addListener(en),()=>{b.removeListener(en)}}).pipe((0,la.Z)(b),(0,qs.T)(({matches:we})=>({query:h,matches:we})),(0,yi.Q)(this._destroySubject)),mql:b};return this._queries.set(h,G),G}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(gl),o.KVO(o.SKi))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function Hl(E){return E.map(O=>O.split(",")).reduce((O,h)=>O.concat(h)).map(O=>O.trim())}function Wc(E,O,h){const w=Lr(E,O).filter(G=>G!=h.trim());w.length?E.setAttribute(O,w.join(" ")):E.removeAttribute(O)}function Lr(E,O){return(E.getAttribute(O)||"").match(/\S+/g)||[]}class Ja{constructor(O){this._items=O,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Se.B,this._typeaheadSubscription=it.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=h=>h.disabled,this._pressedLetters=[],this.tabOut=new Se.B,this.change=new Se.B,O instanceof o.rOR&&(this._itemChangesSubscription=O.changes.subscribe(h=>{if(this._activeItem){const w=h.toArray().indexOf(this._activeItem);w>-1&&w!==this._activeItemIndex&&(this._activeItemIndex=w)}}))}skipPredicate(O){return this._skipPredicateFn=O,this}withWrap(O=!0){return this._wrap=O,this}withVerticalOrientation(O=!0){return this._vertical=O,this}withHorizontalOrientation(O){return this._horizontal=O,this}withAllowedModifierKeys(O){return this._allowedModifierKeys=O,this}withTypeAhead(O=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ca.M)(h=>this._pressedLetters.push(h)),(0,Ya.B)(O),(0,za.p)(()=>this._pressedLetters.length>0),(0,qs.T)(()=>this._pressedLetters.join(""))).subscribe(h=>{const b=this._getItemsArray();for(let w=1;w!O[G]||this._allowedModifierKeys.indexOf(G)>-1);switch(h){case 9:return void this.tabOut.next();case 40:if(this._vertical&&w){this.setNextItemActive();break}return;case 38:if(this._vertical&&w){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&w){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case H:if(this._horizontal&&w){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&w){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&w){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&w){const G=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(G>0?G:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&w){const G=this._activeItemIndex+this._pageUpAndDown.delta,we=this._getItemsArray().length;this._setActiveItemByIndex(G=65&&h<=90||h>=48&&h<=57)&&this._letterKeyStream.next(String.fromCharCode(h))))}this._pressedLetters=[],O.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(O){const h=this._getItemsArray(),b="number"==typeof O?O:h.indexOf(O);this._activeItem=h[b]??null,this._activeItemIndex=b}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(O){this._wrap?this._setActiveInWrapMode(O):this._setActiveInDefaultMode(O)}_setActiveInWrapMode(O){const h=this._getItemsArray();for(let b=1;b<=h.length;b++){const w=(this._activeItemIndex+O*b+h.length)%h.length;if(!this._skipPredicateFn(h[w]))return void this.setActiveItem(w)}}_setActiveInDefaultMode(O){this._setActiveItemByIndex(this._activeItemIndex+O,O)}_setActiveItemByIndex(O,h){const b=this._getItemsArray();if(b[O]){for(;this._skipPredicateFn(b[O]);)if(!b[O+=h])return;this.setActiveItem(O)}}_getItemsArray(){return this._items instanceof o.rOR?this._items.toArray():this._items}}class pc extends Ja{setActiveItem(O){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(O),this.activeItem&&this.activeItem.setActiveStyles()}}let vl=(()=>{class E{constructor(h){this._platform=h}isDisabled(h){return h.hasAttribute("disabled")}isVisible(h){return function sc(E){return!!(E.offsetWidth||E.offsetHeight||"function"==typeof E.getClientRects&&E.getClientRects().length)}(h)&&"visible"===getComputedStyle(h).visibility}isTabbable(h){if(!this._platform.isBrowser)return!1;const b=function qr(E){try{return E.frameElement}catch{return null}}(function ne(E){return E.ownerDocument&&E.ownerDocument.defaultView||window}(h));if(b&&(-1===Oe(b)||!this.isVisible(b)))return!1;let w=h.nodeName.toLowerCase(),G=Oe(h);return h.hasAttribute("contenteditable")?-1!==G:!("iframe"===w||"object"===w||this._platform.WEBKIT&&this._platform.IOS&&!function nn(E){let O=E.nodeName.toLowerCase(),h="input"===O&&E.type;return"text"===h||"password"===h||"select"===O||"textarea"===O}(h))&&("audio"===w?!!h.hasAttribute("controls")&&-1!==G:"video"===w?-1!==G&&(null!==G||this._platform.FIREFOX||h.hasAttribute("controls")):h.tabIndex>=0)}isFocusable(h,b){return function Qt(E){return!function Rt(E){return function ge(E){return"input"==E.nodeName.toLowerCase()}(E)&&"hidden"==E.type}(E)&&(function ie(E){let O=E.nodeName.toLowerCase();return"input"===O||"select"===O||"button"===O||"textarea"===O}(E)||function Q(E){return function Ke(E){return"a"==E.nodeName.toLowerCase()}(E)&&E.hasAttribute("href")}(E)||E.hasAttribute("contenteditable")||Ct(E))}(h)&&!this.isDisabled(h)&&(b?.ignoreVisibility||this.isVisible(h))}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function Ct(E){if(!E.hasAttribute("tabindex")||void 0===E.tabIndex)return!1;let O=E.getAttribute("tabindex");return!(!O||isNaN(parseInt(O,10)))}function Oe(E){if(!Ct(E))return null;const O=parseInt(E.getAttribute("tabindex")||"",10);return isNaN(O)?-1:O}class fe{get enabled(){return this._enabled}set enabled(O){this._enabled=O,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(O,this._startAnchor),this._toggleAnchorTabIndex(O,this._endAnchor))}constructor(O,h,b,w,G=!1){this._element=O,this._checker=h,this._ngZone=b,this._document=w,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,G||this.attachAnchors()}destroy(){const O=this._startAnchor,h=this._endAnchor;O&&(O.removeEventListener("focus",this.startAnchorListener),O.remove()),h&&(h.removeEventListener("focus",this.endAnchorListener),h.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(O){return new Promise(h=>{this._executeOnStable(()=>h(this.focusInitialElement(O)))})}focusFirstTabbableElementWhenReady(O){return new Promise(h=>{this._executeOnStable(()=>h(this.focusFirstTabbableElement(O)))})}focusLastTabbableElementWhenReady(O){return new Promise(h=>{this._executeOnStable(()=>h(this.focusLastTabbableElement(O)))})}_getRegionBoundary(O){const h=this._element.querySelectorAll(`[cdk-focus-region-${O}], [cdkFocusRegion${O}], [cdk-focus-${O}]`);return"start"==O?h.length?h[0]:this._getFirstTabbableElement(this._element):h.length?h[h.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(O){const h=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(h){if(!this._checker.isFocusable(h)){const b=this._getFirstTabbableElement(h);return b?.focus(O),!!b}return h.focus(O),!0}return this.focusFirstTabbableElement(O)}focusFirstTabbableElement(O){const h=this._getRegionBoundary("start");return h&&h.focus(O),!!h}focusLastTabbableElement(O){const h=this._getRegionBoundary("end");return h&&h.focus(O),!!h}hasAttached(){return this._hasAttached}_getFirstTabbableElement(O){if(this._checker.isFocusable(O)&&this._checker.isTabbable(O))return O;const h=O.children;for(let b=0;b=0;b--){const w=h[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(h[b]):null;if(w)return w}return null}_createAnchor(){const O=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,O),O.classList.add("cdk-visually-hidden"),O.classList.add("cdk-focus-trap-anchor"),O.setAttribute("aria-hidden","true"),O}_toggleAnchorTabIndex(O,h){O?h.setAttribute("tabindex","0"):h.removeAttribute("tabindex")}toggleAnchors(O){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(O,this._startAnchor),this._toggleAnchorTabIndex(O,this._endAnchor))}_executeOnStable(O){this._ngZone.isStable?O():this._ngZone.onStable.pipe((0,gr.s)(1)).subscribe(O)}}let Z=(()=>{class E{constructor(h,b,w){this._checker=h,this._ngZone=b,this._document=w}create(h,b=!1){return new fe(h,this._checker,this._ngZone,this._document,b)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(vl),o.KVO(o.SKi),o.KVO(g.qQ))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),$e=(()=>{class E{get enabled(){return this.focusTrap.enabled}set enabled(h){this.focusTrap.enabled=Kn(h)}get autoCapture(){return this._autoCapture}set autoCapture(h){this._autoCapture=Kn(h)}constructor(h,b,w){this._elementRef=h,this._focusTrapFactory=b,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(h){const b=h.autoCapture;b&&!b.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Be(),this.focusTrap.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(Z),o.rXU(g.qQ))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[o.OA$]})}return E})();function bi(E){return 0===E.buttons||0===E.detail}function Bo(E){const O=E.touches&&E.touches[0]||E.changedTouches&&E.changedTouches[0];return!(!O||-1!==O.identifier||null!=O.radiusX&&1!==O.radiusX||null!=O.radiusY&&1!==O.radiusY)}const So=new o.nKC("cdk-input-modality-detector-options"),Pa={ignoreKeys:[18,17,224,91,16]},ja=ze({passive:!0,capture:!0});let Os=(()=>{class E{get mostRecentModality(){return this._modality.value}constructor(h,b,w,G){this._platform=h,this._mostRecentTarget=null,this._modality=new dt.t(null),this._lastTouchMs=0,this._onKeydown=we=>{this._options?.ignoreKeys?.some(en=>en===we.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=he(we))},this._onMousedown=we=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bi(we)?"keyboard":"mouse"),this._mostRecentTarget=he(we))},this._onTouchstart=we=>{Bo(we)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=he(we))},this._options={...Pa,...G},this.modalityDetected=this._modality.pipe((0,il.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Wr.F)()),h.isBrowser&&b.runOutsideAngular(()=>{w.addEventListener("keydown",this._onKeydown,ja),w.addEventListener("mousedown",this._onMousedown,ja),w.addEventListener("touchstart",this._onTouchstart,ja)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ja),document.removeEventListener("mousedown",this._onMousedown,ja),document.removeEventListener("touchstart",this._onTouchstart,ja))}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(o.SKi),o.KVO(g.qQ),o.KVO(So,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const rl=new o.nKC("liveAnnouncerElement",{providedIn:"root",factory:function ba(){return null}}),Mc=new o.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let xu=0,wu=(()=>{class E{constructor(h,b,w,G){this._ngZone=b,this._defaultOptions=G,this._document=w,this._liveElement=h||this._createLiveElement()}announce(h,...b){const w=this._defaultOptions;let G,we;return 1===b.length&&"number"==typeof b[0]?we=b[0]:[G,we]=b,this.clear(),clearTimeout(this._previousTimeout),G||(G=w&&w.politeness?w.politeness:"polite"),null==we&&w&&(we=w.duration),this._liveElement.setAttribute("aria-live",G),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(en=>this._currentResolve=en)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=h,"number"==typeof we&&(this._previousTimeout=setTimeout(()=>this.clear(),we)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const h="cdk-live-announcer-element",b=this._document.getElementsByClassName(h),w=this._document.createElement("div");for(let G=0;G .cdk-overlay-container [aria-modal="true"]');for(let w=0;w{class E{constructor(h,b,w,G,we){this._ngZone=h,this._platform=b,this._inputModalityDetector=w,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Se.B,this._rootNodeFocusAndBlurListener=en=>{for(let ki=he(en);ki;ki=ki.parentElement)"focus"===en.type?this._onFocus(en,ki):this._onBlur(en,ki)},this._document=G,this._detectionMode=we?.detectionMode||0}monitor(h,b=!1){const w=ka(h);if(!this._platform.isBrowser||1!==w.nodeType)return(0,jt.of)();const G=function at(E){if(function _t(){if(null==Fe){const E=typeof document<"u"?document.head:null;Fe=!(!E||!E.createShadowRoot&&!E.attachShadow)}return Fe}()){const O=E.getRootNode?E.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&O instanceof ShadowRoot)return O}return null}(w)||this._getDocument(),we=this._elementInfo.get(w);if(we)return b&&(we.checkChildren=!0),we.subject;const en={checkChildren:b,subject:new Se.B,rootNode:G};return this._elementInfo.set(w,en),this._registerGlobalListeners(en),en.subject}stopMonitoring(h){const b=ka(h),w=this._elementInfo.get(b);w&&(w.subject.complete(),this._setClasses(b),this._elementInfo.delete(b),this._removeGlobalListeners(w))}focusVia(h,b,w){const G=ka(h);G===this._getDocument().activeElement?this._getClosestElementsInfo(G).forEach(([en,Yn])=>this._originChanged(en,b,Yn)):(this._setOrigin(b),"function"==typeof G.focus&&G.focus(w))}ngOnDestroy(){this._elementInfo.forEach((h,b)=>this.stopMonitoring(b))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(h){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(h)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:h&&this._isLastInteractionFromInputLabel(h)?"mouse":"program"}_shouldBeAttributedToTouch(h){return 1===this._detectionMode||!!h?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(h,b){h.classList.toggle("cdk-focused",!!b),h.classList.toggle("cdk-touch-focused","touch"===b),h.classList.toggle("cdk-keyboard-focused","keyboard"===b),h.classList.toggle("cdk-mouse-focused","mouse"===b),h.classList.toggle("cdk-program-focused","program"===b)}_setOrigin(h,b=!1){this._ngZone.runOutsideAngular(()=>{this._origin=h,this._originFromTouchInteraction="touch"===h&&b,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(h,b){const w=this._elementInfo.get(b),G=he(h);!w||!w.checkChildren&&b!==G||this._originChanged(b,this._getFocusOrigin(G),w)}_onBlur(h,b){const w=this._elementInfo.get(b);!w||w.checkChildren&&h.relatedTarget instanceof Node&&b.contains(h.relatedTarget)||(this._setClasses(b),this._emitOrigin(w,null))}_emitOrigin(h,b){h.subject.observers.length&&this._ngZone.run(()=>h.subject.next(b))}_registerGlobalListeners(h){if(!this._platform.isBrowser)return;const b=h.rootNode,w=this._rootNodeFocusListenerCount.get(b)||0;w||this._ngZone.runOutsideAngular(()=>{b.addEventListener("focus",this._rootNodeFocusAndBlurListener,M2),b.addEventListener("blur",this._rootNodeFocusAndBlurListener,M2)}),this._rootNodeFocusListenerCount.set(b,w+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,yi.Q)(this._stopInputModalityDetector)).subscribe(G=>{this._setOrigin(G,!0)}))}_removeGlobalListeners(h){const b=h.rootNode;if(this._rootNodeFocusListenerCount.has(b)){const w=this._rootNodeFocusListenerCount.get(b);w>1?this._rootNodeFocusListenerCount.set(b,w-1):(b.removeEventListener("focus",this._rootNodeFocusAndBlurListener,M2),b.removeEventListener("blur",this._rootNodeFocusAndBlurListener,M2),this._rootNodeFocusListenerCount.delete(b))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(h,b,w){this._setClasses(h,b),this._emitOrigin(w,b),this._lastFocusOrigin=b}_getClosestElementsInfo(h){const b=[];return this._elementInfo.forEach((w,G)=>{(G===h||w.checkChildren&&G.contains(h))&&b.push([G,w])}),b}_isLastInteractionFromInputLabel(h){const{_mostRecentTarget:b,mostRecentModality:w}=this._inputModalityDetector;if("mouse"!==w||!b||b===h||"INPUT"!==h.nodeName&&"TEXTAREA"!==h.nodeName||h.disabled)return!1;const G=h.labels;if(G)for(let we=0;we{class E{constructor(h,b){this._elementRef=h,this._focusMonitor=b,this._focusOrigin=null,this.cdkFocusChange=new o.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const h=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(h,1===h.nodeType&&h.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(b=>{this._focusOrigin=b,this.cdkFocusChange.emit(b)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(fa))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return E})();const u1="cdk-high-contrast-black-on-white",z1="cdk-high-contrast-white-on-black",Xl="cdk-high-contrast-active";let y1=(()=>{class E{constructor(h,b){this._platform=h,this._document=b,this._breakpointSubscription=(0,o.WQX)(zc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const h=this._document.createElement("div");h.style.backgroundColor="rgb(1,2,3)",h.style.position="absolute",this._document.body.appendChild(h);const b=this._document.defaultView||window,w=b&&b.getComputedStyle?b.getComputedStyle(h):null,G=(w&&w.backgroundColor||"").replace(/ /g,"");switch(h.remove(),G){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const h=this._document.body.classList;h.remove(Xl,u1,z1),this._hasCheckedHighContrastMode=!0;const b=this.getHighContrastMode();1===b?h.add(Xl,u1):2===b&&h.add(Xl,z1)}}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(g.qQ))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),_l=(()=>{class E{constructor(h){h._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(y1))};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[rr]})}return E})();const sl=new o.nKC("cdk-dir-doc",{providedIn:"root",factory:function Su(){return(0,o.WQX)(g.qQ)}}),d1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let bl=(()=>{class E{constructor(h){this.value="ltr",this.change=new o.bkB,h&&(this.value=function ku(E){const O=E?.toLowerCase()||"";return"auto"===O&&typeof navigator<"u"&&navigator?.language?d1.test(navigator.language)?"rtl":"ltr":"rtl"===O?"rtl":"ltr"}((h.body?h.body.dir:null)||(h.documentElement?h.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(sl,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),C1=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})();const Du=["text"];function iu(E,O){if(1&E&&o.nrm(0,"mat-pseudo-checkbox",6),2&E){const h=o.XpG();o.Y8G("disabled",h.disabled)("state",h.selected?"checked":"unchecked")}}function sd(E,O){if(1&E&&o.nrm(0,"mat-pseudo-checkbox",7),2&E){const h=o.XpG();o.Y8G("disabled",h.disabled)}}function t2(E,O){if(1&E&&(o.j41(0,"span",8),o.EFF(1),o.k0s()),2&E){const h=o.XpG();o.R7$(1),o.SpI("(",h.group.label,")")}}const od=[[["mat-icon"]],"*"],X=["mat-icon","*"],bn=new o.nKC("mat-sanity-checks",{providedIn:"root",factory:function Ot(){return!0}});let Pn=(()=>{class E{constructor(h,b,w){this._sanityChecks=b,this._document=w,this._hasDoneGlobalChecks=!1,h._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(h){return!He()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[h])}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(y1),o.KVO(bn,8),o.KVO(g.qQ))};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[C1,C1]})}return E})();function Ds(E){return class extends E{get disabled(){return this._disabled}set disabled(O){this._disabled=Kn(O)}constructor(...O){super(...O),this._disabled=!1}}}function xr(E,O){return class extends E{get color(){return this._color}set color(h){const b=h||this.defaultColor;b!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),b&&this._elementRef.nativeElement.classList.add(`mat-${b}`),this._color=b)}constructor(...h){super(...h),this.defaultColor=O,this.color=O}}}function ko(E){return class extends E{get disableRipple(){return this._disableRipple}set disableRipple(O){this._disableRipple=Kn(O)}constructor(...O){super(...O),this._disableRipple=!1}}}function ms(E,O=0){return class extends E{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(h){this._tabIndex=null!=h?ar(h):this.defaultTabIndex}constructor(...h){super(...h),this._tabIndex=O,this.defaultTabIndex=O}}}function ha(E){return class extends E{updateErrorState(){const O=this.errorState,G=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);G!==O&&(this.errorState=G,this.stateChanges.next())}constructor(...O){super(...O),this.errorState=!1}}}const mc=new o.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function kc(){return(0,o.WQX)(o.xe9)}});class js{constructor(){this._localeChanges=new Se.B,this.localeChanges=this._localeChanges}getValidDateOrNull(O){return this.isDateInstance(O)&&this.isValid(O)?O:null}deserialize(O){return null==O||this.isDateInstance(O)&&this.isValid(O)?O:this.invalid()}setLocale(O){this.locale=O,this._localeChanges.next()}compareDate(O,h){return this.getYear(O)-this.getYear(h)||this.getMonth(O)-this.getMonth(h)||this.getDate(O)-this.getDate(h)}sameDate(O,h){if(O&&h){let b=this.isValid(O),w=this.isValid(h);return b&&w?!this.compareDate(O,h):b==w}return O==h}clampDate(O,h,b){return h&&this.compareDate(O,h)<0?h:b&&this.compareDate(O,b)>0?b:O}}const uo=new o.nKC("mat-date-formats"),oc=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function yl(E,O){const h=Array(E);for(let b=0;b{class E extends js{constructor(h,b){super(),this.useUtcForDisplay=!1,super.setLocale(h)}getYear(h){return h.getFullYear()}getMonth(h){return h.getMonth()}getDate(h){return h.getDate()}getDayOfWeek(h){return h.getDay()}getMonthNames(h){const b=new Intl.DateTimeFormat(this.locale,{month:h,timeZone:"utc"});return yl(12,w=>this._format(b,new Date(2017,w,1)))}getDateNames(){const h=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return yl(31,b=>this._format(h,new Date(2017,0,b+1)))}getDayOfWeekNames(h){const b=new Intl.DateTimeFormat(this.locale,{weekday:h,timeZone:"utc"});return yl(7,w=>this._format(b,new Date(2017,0,w+1)))}getYearName(h){const b=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(b,h)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(h){return this.getDate(this._createDateWithOverflow(this.getYear(h),this.getMonth(h)+1,0))}clone(h){return new Date(h.getTime())}createDate(h,b,w){let G=this._createDateWithOverflow(h,b,w);return G.getMonth(),G}today(){return new Date}parse(h,b){return"number"==typeof h?new Date(h):h?new Date(Date.parse(h)):null}format(h,b){if(!this.isValid(h))throw Error("NativeDateAdapter: Cannot format invalid date.");const w=new Intl.DateTimeFormat(this.locale,{...b,timeZone:"utc"});return this._format(w,h)}addCalendarYears(h,b){return this.addCalendarMonths(h,12*b)}addCalendarMonths(h,b){let w=this._createDateWithOverflow(this.getYear(h),this.getMonth(h)+b,this.getDate(h));return this.getMonth(w)!=((this.getMonth(h)+b)%12+12)%12&&(w=this._createDateWithOverflow(this.getYear(w),this.getMonth(w),0)),w}addCalendarDays(h,b){return this._createDateWithOverflow(this.getYear(h),this.getMonth(h),this.getDate(h)+b)}toIso8601(h){return[h.getUTCFullYear(),this._2digit(h.getUTCMonth()+1),this._2digit(h.getUTCDate())].join("-")}deserialize(h){if("string"==typeof h){if(!h)return null;if(oc.test(h)){let b=new Date(h);if(this.isValid(b))return b}}return super.deserialize(h)}isDateInstance(h){return h instanceof Date}isValid(h){return!isNaN(h.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(h,b,w){const G=new Date;return G.setFullYear(h,b,w),G.setHours(0,0,0,0),G}_2digit(h){return("00"+h).slice(-2)}_format(h,b){const w=new Date;return w.setUTCFullYear(b.getFullYear(),b.getMonth(),b.getDate()),w.setUTCHours(b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds()),h.format(w)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(mc,8),o.KVO(De))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac})}return E})();const $o={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Za=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[{provide:js,useClass:S2}]})}return E})(),ot=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[{provide:uo,useValue:$o}],imports:[Za]})}return E})(),ac=(()=>{class E{isErrorState(h,b){return!!(h&&h.invalid&&(h.touched||b&&b.submitted))}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class Gd{constructor(O,h,b,w=!1){this._renderer=O,this.element=h,this.config=b,this._animationForciblyDisabledThroughCss=w,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tu=ze({passive:!0,capture:!0});class qc{constructor(){this._events=new Map,this._delegateEventHandler=O=>{const h=he(O);h&&this._events.get(O.type)?.forEach((b,w)=>{(w===h||w.contains(h))&&b.forEach(G=>G.handleEvent(O))})}}addHandler(O,h,b,w){const G=this._events.get(h);if(G){const we=G.get(b);we?we.add(w):G.set(b,new Set([w]))}else this._events.set(h,new Map([[b,new Set([w])]])),O.runOutsideAngular(()=>{document.addEventListener(h,this._delegateEventHandler,Tu)})}removeHandler(O,h,b){const w=this._events.get(O);if(!w)return;const G=w.get(h);G&&(G.delete(b),0===G.size&&w.delete(h),0===w.size&&(this._events.delete(O),document.removeEventListener(O,this._delegateEventHandler,Tu)))}}const ru={enterDuration:225,exitDuration:150},n2=ze({passive:!0,capture:!0}),Nl=["mousedown","touchstart"],su=["mouseup","mouseleave","touchend","touchcancel"];class Vu{static#e=this._eventManager=new qc;constructor(O,h,b,w){this._target=O,this._ngZone=h,this._platform=w,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,w.isBrowser&&(this._containerElement=ka(b))}fadeInRipple(O,h,b={}){const w=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),G={...ru,...b.animation};b.centered&&(O=w.left+w.width/2,h=w.top+w.height/2);const we=b.radius||function Zr(E,O,h){const b=Math.max(Math.abs(E-h.left),Math.abs(E-h.right)),w=Math.max(Math.abs(O-h.top),Math.abs(O-h.bottom));return Math.sqrt(b*b+w*w)}(O,h,w),en=O-w.left,Yn=h-w.top,ki=G.enterDuration,Ai=document.createElement("div");Ai.classList.add("mat-ripple-element"),Ai.style.left=en-we+"px",Ai.style.top=Yn-we+"px",Ai.style.height=2*we+"px",Ai.style.width=2*we+"px",null!=b.color&&(Ai.style.backgroundColor=b.color),Ai.style.transitionDuration=`${ki}ms`,this._containerElement.appendChild(Ai);const $r=window.getComputedStyle(Ai),Tc=$r.transitionDuration,lc="none"===$r.transitionProperty||"0s"===Tc||"0s, 0s"===Tc||0===w.width&&0===w.height,pa=new Gd(this,Ai,b,lc);Ai.style.transform="scale3d(1, 1, 1)",pa.state=0,b.persistent||(this._mostRecentTransientRipple=pa);let Sl=null;return!lc&&(ki||G.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const j2=()=>this._finishRippleTransition(pa),s0=()=>this._destroyRipple(pa);Ai.addEventListener("transitionend",j2),Ai.addEventListener("transitioncancel",s0),Sl={onTransitionEnd:j2,onTransitionCancel:s0}}),this._activeRipples.set(pa,Sl),(lc||!ki)&&this._finishRippleTransition(pa),pa}fadeOutRipple(O){if(2===O.state||3===O.state)return;const h=O.element,b={...ru,...O.config.animation};h.style.transitionDuration=`${b.exitDuration}ms`,h.style.opacity="0",O.state=2,(O._animationForciblyDisabledThroughCss||!b.exitDuration)&&this._finishRippleTransition(O)}fadeOutAll(){this._getActiveRipples().forEach(O=>O.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(O=>{O.config.persistent||O.fadeOut()})}setupTriggerEvents(O){const h=ka(O);!this._platform.isBrowser||!h||h===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=h,Nl.forEach(b=>{Vu._eventManager.addHandler(this._ngZone,b,h,this)}))}handleEvent(O){"mousedown"===O.type?this._onMousedown(O):"touchstart"===O.type?this._onTouchStart(O):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{su.forEach(h=>{this._triggerElement.addEventListener(h,this,n2)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(O){0===O.state?this._startFadeOutTransition(O):2===O.state&&this._destroyRipple(O)}_startFadeOutTransition(O){const h=O===this._mostRecentTransientRipple,{persistent:b}=O.config;O.state=1,!b&&(!h||!this._isPointerDown)&&O.fadeOut()}_destroyRipple(O){const h=this._activeRipples.get(O)??null;this._activeRipples.delete(O),this._activeRipples.size||(this._containerRect=null),O===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),O.state=3,null!==h&&(O.element.removeEventListener("transitionend",h.onTransitionEnd),O.element.removeEventListener("transitioncancel",h.onTransitionCancel)),O.element.remove()}_onMousedown(O){const h=bi(O),b=this._lastTouchStartEvent&&Date.now(){!O.config.persistent&&(1===O.state||O.config.terminateOnPointerUp&&0===O.state)&&O.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const O=this._triggerElement;O&&(Nl.forEach(h=>Vu._eventManager.removeHandler(h,O,this)),this._pointerUpEventsRegistered&&su.forEach(h=>O.removeEventListener(h,this,n2)))}}const ou=new o.nKC("mat-ripple-global-options");let Pl=(()=>{class E{get disabled(){return this._disabled}set disabled(h){h&&this.fadeOutAllNonPersistent(),this._disabled=h,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(h){this._trigger=h,this._setupTriggerEventsIfEnabled()}constructor(h,b,w,G,we){this._elementRef=h,this._animationMode=we,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=G||{},this._rippleRenderer=new Vu(this,b,h,w)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(h,b=0,w){return"number"==typeof h?this._rippleRenderer.fadeInRipple(h,b,{...this.rippleConfig,...w}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...h})}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.SKi),o.rXU(De),o.rXU(ou,8),o.rXU(o.bc$,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(b,w){2&b&&o.AVh("mat-ripple-unbounded",w.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return E})(),x1=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,Pn]})}return E})(),f1=(()=>{class E{constructor(h){this._animationMode=h,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.bc$,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(b,w){2&b&&o.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===w.state)("mat-pseudo-checkbox-checked","checked"===w.state)("mat-pseudo-checkbox-disabled",w.disabled)("mat-pseudo-checkbox-minimal","minimal"===w.appearance)("mat-pseudo-checkbox-full","full"===w.appearance)("_mat-animation-noopable","NoopAnimations"===w._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(b,w){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return E})(),ad=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn]})}return E})();const cd=new o.nKC("MAT_OPTION_PARENT_COMPONENT"),Cl=new o.nKC("MatOptgroup");let Iu=0;class li{constructor(O,h=!1){this.source=O,this.isUserInput=h}}let Fs=(()=>{class E{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(h){this._disabled=Kn(h)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(h,b,w,G){this._element=h,this._changeDetectorRef=b,this._parent=w,this.group=G,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Iu++,this.onSelectionChange=new o.bkB,this._stateChanges=new Se.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(h=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),h&&this._emitSelectionChangeEvent())}deselect(h=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),h&&this._emitSelectionChangeEvent())}focus(h,b){const w=this._getHostElement();"function"==typeof w.focus&&w.focus(b)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(h){(13===h.keyCode||32===h.keyCode)&&!Ao(h)&&(this._selectViaInteraction(),h.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const h=this.viewValue;h!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=h)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(h=!1){this.onSelectionChange.emit(new li(this,h))}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,viewQuery:function(b,w){if(1&b&&o.GBs(Du,7),2&b){let G;o.mGM(G=o.lsd())&&(w._text=G.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return E})(),au=(()=>{class E extends Fs{constructor(h,b,w,G){super(h,b,w,G)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(cd,8),o.rXU(Cl,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(b,w){1&b&&o.bIt("click",function(){return w._selectViaInteraction()})("keydown",function(we){return w._handleKeydown(we)}),2&b&&(o.Mr5("id",w.id),o.BMQ("aria-selected",w.selected)("aria-disabled",w.disabled.toString()),o.AVh("mdc-list-item--selected",w.selected)("mat-mdc-option-multiple",w.multiple)("mat-mdc-option-active",w.active)("mdc-list-item--disabled",w.disabled))},exportAs:["matOption"],features:[o.Vt3],ngContentSelectors:X,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(b,w){1&b&&(o.NAR(od),o.DNE(0,iu,1,2,"mat-pseudo-checkbox",0),o.SdG(1),o.j41(2,"span",1,2),o.SdG(4,1),o.k0s(),o.DNE(5,sd,1,1,"mat-pseudo-checkbox",3),o.DNE(6,t2,2,1,"span",4),o.nrm(7,"div",5)),2&b&&(o.Y8G("ngIf",w.multiple),o.R7$(5),o.Y8G("ngIf",!w.multiple&&w.selected&&!w.hideSingleSelectionIndicator),o.R7$(1),o.Y8G("ngIf",w.group&&w.group._inert),o.R7$(1),o.Y8G("matRippleTrigger",w._getHostElement())("matRippleDisabled",w.disabled||w.disableRipple))},dependencies:[Pl,g.bT,f1],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return E})(),w1=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[x1,g.MD,Pn,ad]})}return E})();const D2={capture:!0},ol=["focus","click","mouseenter","touchstart"],T2="mat-ripple-loader-uninitialized",V2="mat-ripple-loader-class-name",ud="mat-ripple-loader-centered",cu="mat-ripple-loader-disabled";let ue=(()=>{class E{constructor(){this._document=(0,o.WQX)(g.qQ,{optional:!0}),this._animationMode=(0,o.WQX)(o.bc$,{optional:!0}),this._globalRippleOptions=(0,o.WQX)(ou,{optional:!0}),this._platform=(0,o.WQX)(De),this._ngZone=(0,o.WQX)(o.SKi),this._hosts=new Map,this._onInteraction=h=>{if(!(h.target instanceof HTMLElement))return;const w=h.target.closest(`[${T2}]`);w&&this._createRipple(w)},this._ngZone.runOutsideAngular(()=>{for(const h of ol)this._document?.addEventListener(h,this._onInteraction,D2)})}ngOnDestroy(){const h=this._hosts.keys();for(const b of h)this.destroyRipple(b);for(const b of ol)this._document?.removeEventListener(b,this._onInteraction,D2)}configureRipple(h,b){h.setAttribute(T2,""),(b.className||!h.hasAttribute(V2))&&h.setAttribute(V2,b.className||""),b.centered&&h.setAttribute(ud,""),b.disabled&&h.setAttribute(cu,"")}getRipple(h){return this._hosts.get(h)||this._createRipple(h)}setDisabled(h,b){const w=this._hosts.get(h);w?w.disabled=b:b?h.setAttribute(cu,""):h.removeAttribute(cu)}_createRipple(h){if(!this._document)return;const b=this._hosts.get(h);if(b)return b;h.querySelector(".mat-ripple")?.remove();const w=this._document.createElement("span");w.classList.add("mat-ripple",h.getAttribute(V2)),h.append(w);const G=new Pl(new o.aKT(w),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return G._isInitialized=!0,G.trigger=h,G.centered=h.hasAttribute(ud),G.disabled=h.hasAttribute(cu),this.attachRipple(h,G),G}attachRipple(h,b){h.removeAttribute(T2),this._hosts.set(h,b)}destroyRipple(h){const b=this._hosts.get(h);b&&(b.ngOnDestroy(),this._hosts.delete(h))}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const j=["input"],N=["label"],K=["*"],ve=new o.nKC("mat-checkbox-default-options",{providedIn:"root",factory:Xe});function Xe(){return{color:"accent",clickAction:"check-indeterminate"}}const Ft={provide:V.kq,useExisting:(0,o.Rfq)(()=>Ne),multi:!0};class I{}let B=0;const R=Xe(),q=ms(xr(ko(Ds(class{constructor(E){this._elementRef=E}}))));let ae=(()=>{class E extends q{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(h){this._required=Kn(h)}constructor(h,b,w,G,we,en,Yn){super(b),this._changeDetectorRef=w,this._ngZone=G,this._animationMode=en,this._options=Yn,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new o.bkB,this.indeterminateChange=new o.bkB,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||R,this.color=this.defaultColor=this._options.color||R.color,this.tabIndex=parseInt(we)||0,this.id=this._uniqueId=`${h}${++B}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(h){const b=Kn(h);b!=this.checked&&(this._checked=b,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(h){const b=Kn(h);b!==this.disabled&&(this._disabled=b,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(h){const b=h!=this._indeterminate;this._indeterminate=Kn(h),b&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(h){this.checked=!!h}registerOnChange(h){this._controlValueAccessorChangeFn=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h}_transitionCheckState(h){let b=this._currentCheckState,w=this._getAnimationTargetElement();if(b!==h&&w&&(this._currentAnimationClass&&w.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,h),this._currentCheckState=h,this._currentAnimationClass.length>0)){w.classList.add(this._currentAnimationClass);const G=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{w.classList.remove(G)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const h=this._options?.clickAction;this.disabled||"noop"===h?!this.disabled&&"noop"===h&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==h&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(h){h.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(h,b){if("NoopAnimations"===this._animationMode)return"";switch(h){case 0:if(1===b)return this._animationClasses.uncheckedToChecked;if(3==b)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===b?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===b?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===b?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(h){const b=this._inputElement;b&&(b.nativeElement.indeterminate=h)}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,viewQuery:function(b,w){if(1&b&&(o.GBs(j,5),o.GBs(N,5),o.GBs(Pl,5)),2&b){let G;o.mGM(G=o.lsd())&&(w._inputElement=G.first),o.mGM(G=o.lsd())&&(w._labelElement=G.first),o.mGM(G=o.lsd())&&(w.ripple=G.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[o.Vt3]})}return E})(),Ne=(()=>{class E extends ae{constructor(h,b,w,G,we,en){super("mat-mdc-checkbox-",h,b,w,G,we,en),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(h){const b=new I;return b.source=this,b.checked=h,b}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(h){h.target&&this._labelElement.nativeElement.contains(h.target)&&h.stopPropagation()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(o.SKi),o.kS0("tabindex"),o.rXU(o.bc$,8),o.rXU(ve,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(b,w){2&b&&(o.Mr5("id",w.id),o.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),o.AVh("_mat-animation-noopable","NoopAnimations"===w._animationMode)("mdc-checkbox--disabled",w.disabled)("mat-mdc-checkbox-disabled",w.disabled)("mat-mdc-checkbox-checked",w.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[o.Jv_([Ft]),o.Vt3],ngContentSelectors:K,decls:15,vars:20,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","indeterminate","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"],["label",""]],template:function(b,w){if(1&b&&(o.NAR(),o.j41(0,"div",0),o.bIt("click",function(we){return w._preventBubblingFromLabel(we)}),o.j41(1,"div",1,2)(3,"div",3),o.bIt("click",function(){return w._onTouchTargetClick()}),o.k0s(),o.j41(4,"input",4,5),o.bIt("blur",function(){return w._onBlur()})("click",function(){return w._onInputClick()})("change",function(we){return w._onInteractionEvent(we)}),o.k0s(),o.nrm(6,"div",6),o.j41(7,"div",7),o.qSk(),o.j41(8,"svg",8),o.nrm(9,"path",9),o.k0s(),o.joV(),o.nrm(10,"div",10),o.k0s(),o.nrm(11,"div",11),o.k0s(),o.j41(12,"label",12,13),o.SdG(14),o.k0s()()),2&b){const G=o.sdS(2);o.AVh("mdc-form-field--align-end","before"==w.labelPosition),o.R7$(4),o.AVh("mdc-checkbox--selected",w.checked),o.Y8G("checked",w.checked)("indeterminate",w.indeterminate)("disabled",w.disabled)("id",w.inputId)("required",w.required)("tabIndex",w.tabIndex),o.BMQ("aria-label",w.ariaLabel||null)("aria-labelledby",w.ariaLabelledby)("aria-describedby",w.ariaDescribedby)("aria-checked",w.indeterminate?"mixed":null)("name",w.name)("value",w.value),o.R7$(7),o.Y8G("matRippleTrigger",G)("matRippleDisabled",w.disableRipple||w.disabled)("matRippleCentered",!0),o.R7$(1),o.Y8G("for",w.inputId)}},dependencies:[Pl],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}html{--mdc-checkbox-disabled-selected-checkmark-color:#fff;--mdc-checkbox-selected-focus-state-layer-opacity:0.16;--mdc-checkbox-selected-hover-state-layer-opacity:0.04;--mdc-checkbox-selected-pressed-state-layer-opacity:0.16;--mdc-checkbox-unselected-focus-state-layer-opacity:0.16;--mdc-checkbox-unselected-hover-state-layer-opacity:0.04;--mdc-checkbox-unselected-pressed-state-layer-opacity:0.16}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return E})(),un=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})(),Ci=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,x1,un,Pn,un]})}return E})();var Ji=F(8448),ls=F(8129),Ar=F(4929),Po=F(9867),al=F(8621),Xo=F(6111),Io=F(3229);function vc(E,O=Ar.E){return function Ko(E){return(0,Po.N)((O,h)=>{let b=!1,w=null,G=null,we=!1;const en=()=>{if(G?.unsubscribe(),G=null,b){b=!1;const ki=w;w=null,h.next(ki)}we&&h.complete()},Yn=()=>{G=null,we&&h.complete()};O.subscribe((0,Xo._)(h,ki=>{b=!0,w=ki,G||(0,al.Tg)(E(ki)).subscribe(G=(0,Xo._)(h,en,Yn))},()=>{we=!0,(!b||!G||G.closed)&&h.complete()}))})}(()=>(0,Io.O)(E,O))}const bo=ze({passive:!0});let Ou=(()=>{class E{constructor(h,b){this._platform=h,this._ngZone=b,this._monitoredElements=new Map}monitor(h){if(!this._platform.isBrowser)return Ji.w;const b=ka(h),w=this._monitoredElements.get(b);if(w)return w.subject;const G=new Se.B,we="cdk-text-field-autofilled",en=Yn=>{"cdk-text-field-autofill-start"!==Yn.animationName||b.classList.contains(we)?"cdk-text-field-autofill-end"===Yn.animationName&&b.classList.contains(we)&&(b.classList.remove(we),this._ngZone.run(()=>G.next({target:Yn.target,isAutofilled:!1}))):(b.classList.add(we),this._ngZone.run(()=>G.next({target:Yn.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{b.addEventListener("animationstart",en,bo),b.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(b,{subject:G,unlisten:()=>{b.removeEventListener("animationstart",en,bo)}}),G}stopMonitoring(h){const b=ka(h),w=this._monitoredElements.get(b);w&&(w.unlisten(),w.subject.complete(),b.classList.remove("cdk-text-field-autofill-monitored"),b.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(b))}ngOnDestroy(){this._monitoredElements.forEach((h,b)=>this.stopMonitoring(b))}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(o.SKi))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),Rc=(()=>{class E{get minRows(){return this._minRows}set minRows(h){this._minRows=ar(h),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(h){this._maxRows=ar(h),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(h){h=Kn(h),this._enabled!==h&&((this._enabled=h)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(h){this._cachedPlaceholderHeight=void 0,h?this._textareaElement.setAttribute("placeholder",h):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(h,b,w,G){this._elementRef=h,this._platform=b,this._ngZone=w,this._destroyed=new Se.B,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=we=>{this._hasFocus="focus"===we.type},this._document=G,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const h=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;h&&(this._textareaElement.style.minHeight=h)}_setMaxHeight(){const h=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;h&&(this._textareaElement.style.maxHeight=h)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const h=this._getWindow();(0,ls.R)(h,"resize").pipe(vc(16),(0,yi.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let h=this._textareaElement.cloneNode(!1);h.rows=1,h.style.position="absolute",h.style.visibility="hidden",h.style.border="none",h.style.padding="0",h.style.height="",h.style.minHeight="",h.style.maxHeight="",h.style.overflow="hidden",this._textareaElement.parentNode.appendChild(h),this._cachedLineHeight=h.clientHeight,h.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const h=this._textareaElement,b=h.style.marginBottom||"",w=this._platform.FIREFOX,G=w&&this._hasFocus,we=w?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";G&&(h.style.marginBottom=`${h.clientHeight}px`),h.classList.add(we);const en=h.scrollHeight-4;return h.classList.remove(we),G&&(h.style.marginBottom=b),en}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const h=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=h}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(h=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const b=this._elementRef.nativeElement,w=b.value;if(!h&&this._minRows===this._previousMinRows&&w===this._previousValue)return;const G=this._measureScrollHeight(),we=Math.max(G,this._cachedPlaceholderHeight||0);b.style.height=`${we}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(b)):setTimeout(()=>this._scrollToCaretPosition(b))}),this._previousValue=w,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(h){const{selectionStart:b,selectionEnd:w}=h;!this._destroyed.isStopped&&this._hasFocus&&h.setSelectionRange(b,w)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(De),o.rXU(o.SKi),o.rXU(g.qQ,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(b,w){1&b&&o.bIt("input",function(){return w._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return E})(),D4=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})();var M1=F(2489),er=F(9090),wr=F(7782);class Ba{constructor(O){this._box=O,this._destroyed=new Se.B,this._resizeSubject=new Se.B,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(h=>this._resizeSubject.next(h)))}observe(O){return this._elementObservables.has(O)||this._elementObservables.set(O,new Qs.c(h=>{const b=this._resizeSubject.subscribe(h);return this._resizeObserver?.observe(O,{box:this._box}),()=>{this._resizeObserver?.unobserve(O),b.unsubscribe(),this._elementObservables.delete(O)}}).pipe((0,za.p)(h=>h.some(b=>b.target===O)),function Mr(E,O,h){let b,w=!1;return E&&"object"==typeof E?({bufferSize:b=1/0,windowTime:O=1/0,refCount:w=!1,scheduler:h}=E):b=E??1/0,(0,wr.u)({connector:()=>new er.m(b,O,h),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:w})}({bufferSize:1,refCount:!0}),(0,yi.Q)(this._destroyed))),this._elementObservables.get(O)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Xc=(()=>{class E{constructor(){this._observers=new Map,this._ngZone=(0,o.WQX)(o.SKi)}ngOnDestroy(){for(const[,h]of this._observers)h.destroy();this._observers.clear()}observe(h,b){const w=b?.box||"content-box";return this._observers.has(w)||this._observers.set(w,new Ba(w)),this._observers.get(w).observe(h)}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var Sr=F(194);const S1=["notch"],ya=["matFormFieldNotchedOutline",""],Xd=["*"],L3=["textField"],$a=["iconPrefixContainer"],jl=["textPrefixContainer"];function Kl(E,O){1&E&&o.nrm(0,"span",19)}function Kd(E,O){if(1&E&&(o.j41(0,"label",17),o.SdG(1,1),o.DNE(2,Kl,1,0,"span",18),o.k0s()),2&E){const h=o.XpG(2);o.Y8G("floating",h._shouldLabelFloat())("monitorResize",h._hasOutline())("id",h._labelId),o.BMQ("for",h._control.id),o.R7$(2),o.Y8G("ngIf",!h.hideRequiredMarker&&h._control.required)}}function lu(E,O){if(1&E&&o.DNE(0,Kd,3,5,"label",16),2&E){const h=o.XpG();o.Y8G("ngIf",h._hasFloatingLabel())}}function T4(E,O){1&E&&o.nrm(0,"div",20)}function U0(E,O){}function Wh(E,O){if(1&E&&o.DNE(0,U0,0,0,"ng-template",22),2&E){o.XpG(2);const h=o.sdS(1);o.Y8G("ngTemplateOutlet",h)}}function im(E,O){if(1&E&&(o.j41(0,"div",21),o.DNE(1,Wh,1,1,"ng-template",9),o.k0s()),2&E){const h=o.XpG();o.Y8G("matFormFieldNotchedOutlineOpen",h._shouldLabelFloat()),o.R7$(1),o.Y8G("ngIf",!h._forceDisplayInfixLabel())}}function rm(E,O){1&E&&(o.j41(0,"div",23,24),o.SdG(2,2),o.k0s())}function z3(E,O){1&E&&(o.j41(0,"div",25,26),o.SdG(2,3),o.k0s())}function dd(E,O){}function qh(E,O){if(1&E&&o.DNE(0,dd,0,0,"ng-template",22),2&E){o.XpG();const h=o.sdS(1);o.Y8G("ngTemplateOutlet",h)}}function Lu(E,O){1&E&&(o.j41(0,"div",27),o.SdG(1,4),o.k0s())}function Yd(E,O){1&E&&(o.j41(0,"div",28),o.SdG(1,5),o.k0s())}function fd(E,O){1&E&&o.nrm(0,"div",29)}function Xh(E,O){if(1&E&&(o.j41(0,"div",30),o.SdG(1,6),o.k0s()),2&E){const h=o.XpG();o.Y8G("@transitionMessages",h._subscriptAnimationState)}}function R3(E,O){if(1&E&&(o.j41(0,"mat-hint",34),o.EFF(1),o.k0s()),2&E){const h=o.XpG(2);o.Y8G("id",h._hintLabelId),o.R7$(1),o.JRh(h.hintLabel)}}function G0(E,O){if(1&E&&(o.j41(0,"div",31),o.DNE(1,R3,2,2,"mat-hint",32),o.SdG(2,7),o.nrm(3,"div",33),o.SdG(4,8),o.k0s()),2&E){const h=o.XpG();o.Y8G("@transitionMessages",h._subscriptAnimationState),o.R7$(1),o.Y8G("ngIf",h.hintLabel)}}const A2=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],r2=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let zu=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["mat-label"]]})}return E})();const hd=new o.nKC("MatError");let N3=0,Yl=(()=>{class E{constructor(){this.align="start",this.id="mat-mdc-hint-"+N3++}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(b,w){2&b&&(o.Mr5("id",w.id),o.BMQ("align",null),o.AVh("mat-mdc-form-field-hint-end","end"===w.align))},inputs:{align:"align",id:"id"}})}return E})();const sm=new o.nKC("MatPrefix"),W0=new o.nKC("MatSuffix");let pd=(()=>{class E{constructor(){this._isText=!1}set _isTextSelector(h){this._isText=!0}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:["matTextSuffix","_isTextSelector"]},features:[o.Jv_([{provide:W0,useExisting:E}])]})}return E})();const P=new o.nKC("FloatingLabelParent");let Le=(()=>{class E{get floating(){return this._floating}set floating(h){this._floating=h,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(h){this._monitorResize=h,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(h){this._elementRef=h,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,o.WQX)(Xc),this._ngZone=(0,o.WQX)(o.SKi),this._parent=(0,o.WQX)(P),this._resizeSubscription=new it.yU}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function p(E){if(null!==E.offsetParent)return E.scrollWidth;const h=E.cloneNode(!0);h.style.setProperty("position","absolute"),h.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(h);const b=h.scrollWidth;return h.remove(),b}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(b,w){2&b&&o.AVh("mdc-floating-label--float-above",w.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return E})();const M="mdc-line-ripple--active",T="mdc-line-ripple--deactivating";let ee=(()=>{class E{constructor(h,b){this._elementRef=h,this._handleTransitionEnd=w=>{const G=this._elementRef.nativeElement.classList,we=G.contains(T);"opacity"===w.propertyName&&we&&G.remove(M,T)},b.runOutsideAngular(()=>{h.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const h=this._elementRef.nativeElement.classList;h.remove(T),h.add(M)}deactivate(){this._elementRef.nativeElement.classList.add(T)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.SKi))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return E})(),Qe=(()=>{class E{constructor(h,b){this._elementRef=h,this._ngZone=b,this.open=!1}ngAfterViewInit(){const h=this._elementRef.nativeElement.querySelector(".mdc-floating-label");h?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(h.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>h.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(h){this._notch.nativeElement.style.width=this.open&&h?`calc(${h}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.SKi))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(b,w){if(1&b&&o.GBs(S1,5),2&b){let G;o.mGM(G=o.lsd())&&(w._notch=G.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(b,w){2&b&&o.AVh("mdc-notched-outline--notched",w.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:ya,ngContentSelectors:Xd,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(b,w){1&b&&(o.NAR(),o.nrm(0,"div",0),o.j41(1,"div",1,2),o.SdG(3),o.k0s(),o.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return E})();const rn={transitionMessages:(0,Sr.hZ)("transitionMessages",[(0,Sr.wk)("enter",(0,Sr.iF)({opacity:1,transform:"translateY(0%)"})),(0,Sr.kY)("void => enter",[(0,Sr.iF)({opacity:0,transform:"translateY(-5px)"}),(0,Sr.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ri=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E})}return E})();const fs=new o.nKC("MatFormField"),kr=new o.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Eo=0,Da=(()=>{class E{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(h){this._hideRequiredMarker=Kn(h)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(h){h!==this._floatLabel&&(this._floatLabel=h,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(h){const b=this._appearance;this._appearance=h||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==b&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(h){this._subscriptSizing=h||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(h){this._hintLabel=h,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(h){this._explicitFormFieldControl=h}constructor(h,b,w,G,we,en,Yn,ki){this._elementRef=h,this._changeDetectorRef=b,this._ngZone=w,this._dir=G,this._platform=we,this._defaults=en,this._animationMode=Yn,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+Eo++,this._hintLabelId="mat-mdc-hint-"+Eo++,this._subscriptAnimationState="",this._destroyed=new Se.B,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,en&&(en.appearance&&(this.appearance=en.appearance),this._hideRequiredMarker=!!en?.hideRequiredMarker,en.color&&(this.color=en.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const h=this._control;h.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${h.controlType}`),h.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),h.ngControl&&h.ngControl.valueChanges&&h.ngControl.valueChanges.pipe((0,yi.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(h=>!h._isText),this._hasTextPrefix=!!this._prefixChildren.find(h=>h._isText),this._hasIconSuffix=!!this._suffixChildren.find(h=>!h._isText),this._hasTextSuffix=!!this._suffixChildren.find(h=>h._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,M1.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,yi.Q)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,yi.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(h){const b=this._control?this._control.ngControl:null;return b&&b[h]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let h=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&h.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const b=this._hintChildren?this._hintChildren.find(G=>"start"===G.align):null,w=this._hintChildren?this._hintChildren.find(G=>"end"===G.align):null;b?h.push(b.id):this._hintLabel&&h.push(this._hintLabelId),w&&h.push(w.id)}else this._errorChildren&&h.push(...this._errorChildren.map(b=>b.id));this._control.setDescribedByIds(h)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const h=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(h.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const b=this._iconPrefixContainer?.nativeElement,w=this._textPrefixContainer?.nativeElement,G=b?.getBoundingClientRect().width??0,we=w?.getBoundingClientRect().width??0;h.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${G+we}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const h=this._elementRef.nativeElement;if(h.getRootNode){const b=h.getRootNode();return b&&b!==h}return document.documentElement.contains(h)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(bl),o.rXU(De),o.rXU(kr,8),o.rXU(o.bc$,8),o.rXU(g.qQ))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-form-field"]],contentQueries:function(b,w,G){if(1&b&&(o.wni(G,zu,5),o.wni(G,zu,7),o.wni(G,ri,5),o.wni(G,sm,5),o.wni(G,W0,5),o.wni(G,hd,5),o.wni(G,Yl,5)),2&b){let we;o.mGM(we=o.lsd())&&(w._labelChildNonStatic=we.first),o.mGM(we=o.lsd())&&(w._labelChildStatic=we.first),o.mGM(we=o.lsd())&&(w._formFieldControl=we.first),o.mGM(we=o.lsd())&&(w._prefixChildren=we),o.mGM(we=o.lsd())&&(w._suffixChildren=we),o.mGM(we=o.lsd())&&(w._errorChildren=we),o.mGM(we=o.lsd())&&(w._hintChildren=we)}},viewQuery:function(b,w){if(1&b&&(o.GBs(L3,5),o.GBs($a,5),o.GBs(jl,5),o.GBs(Le,5),o.GBs(Qe,5),o.GBs(ee,5)),2&b){let G;o.mGM(G=o.lsd())&&(w._textField=G.first),o.mGM(G=o.lsd())&&(w._iconPrefixContainer=G.first),o.mGM(G=o.lsd())&&(w._textPrefixContainer=G.first),o.mGM(G=o.lsd())&&(w._floatingLabel=G.first),o.mGM(G=o.lsd())&&(w._notchedOutline=G.first),o.mGM(G=o.lsd())&&(w._lineRipple=G.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(b,w){2&b&&o.AVh("mat-mdc-form-field-label-always-float",w._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",w._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",w._hasIconSuffix)("mat-form-field-invalid",w._control.errorState)("mat-form-field-disabled",w._control.disabled)("mat-form-field-autofilled",w._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===w._animationMode)("mat-form-field-appearance-fill","fill"==w.appearance)("mat-form-field-appearance-outline","outline"==w.appearance)("mat-form-field-hide-placeholder",w._hasFloatingLabel()&&!w._shouldLabelFloat())("mat-focused",w._control.focused)("mat-primary","accent"!==w.color&&"warn"!==w.color)("mat-accent","accent"===w.color)("mat-warn","warn"===w.color)("ng-untouched",w._shouldForward("untouched"))("ng-touched",w._shouldForward("touched"))("ng-pristine",w._shouldForward("pristine"))("ng-dirty",w._shouldForward("dirty"))("ng-valid",w._shouldForward("valid"))("ng-invalid",w._shouldForward("invalid"))("ng-pending",w._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[o.Jv_([{provide:fs,useExisting:E},{provide:P,useExisting:E}])],ngContentSelectors:r2,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(b,w){1&b&&(o.NAR(A2),o.DNE(0,lu,1,1,"ng-template",null,0,o.C5r),o.j41(2,"div",1,2),o.bIt("click",function(we){return w._control.onContainerClick(we)}),o.DNE(4,T4,1,0,"div",3),o.j41(5,"div",4),o.DNE(6,im,2,2,"div",5),o.DNE(7,rm,3,0,"div",6),o.DNE(8,z3,3,0,"div",7),o.j41(9,"div",8),o.DNE(10,qh,1,1,"ng-template",9),o.SdG(11),o.k0s(),o.DNE(12,Lu,2,0,"div",10),o.DNE(13,Yd,2,0,"div",11),o.k0s(),o.DNE(14,fd,1,0,"div",12),o.k0s(),o.j41(15,"div",13),o.DNE(16,Xh,2,1,"div",14),o.DNE(17,G0,5,2,"div",15),o.k0s()),2&b&&(o.R7$(2),o.AVh("mdc-text-field--filled",!w._hasOutline())("mdc-text-field--outlined",w._hasOutline())("mdc-text-field--no-label",!w._hasFloatingLabel())("mdc-text-field--disabled",w._control.disabled)("mdc-text-field--invalid",w._control.errorState),o.R7$(2),o.Y8G("ngIf",!w._hasOutline()&&!w._control.disabled),o.R7$(2),o.Y8G("ngIf",w._hasOutline()),o.R7$(1),o.Y8G("ngIf",w._hasIconPrefix),o.R7$(1),o.Y8G("ngIf",w._hasTextPrefix),o.R7$(2),o.Y8G("ngIf",!w._hasOutline()||w._forceDisplayInfixLabel()),o.R7$(2),o.Y8G("ngIf",w._hasTextSuffix),o.R7$(1),o.Y8G("ngIf",w._hasIconSuffix),o.R7$(1),o.Y8G("ngIf",!w._hasOutline()),o.R7$(1),o.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===w.subscriptSizing),o.Y8G("ngSwitch",w._getDisplayedMessages()),o.R7$(1),o.Y8G("ngSwitchCase","error"),o.R7$(1),o.Y8G("ngSwitchCase","hint"))},dependencies:[g.bT,g.T3,g.ux,g.e1,Yl,Le,Qe,ee],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[rn.transitionMessages]},changeDetection:0})}return E})(),ec=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,g.MD,rr,Pn]})}return E})();const s2=new o.nKC("MAT_INPUT_VALUE_ACCESSOR"),Jd=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let I2=0;const o2=ha(class{constructor(E,O,h,b){this._defaultErrorStateMatcher=E,this._parentForm=O,this._parentFormGroup=h,this.ngControl=b,this.stateChanges=new Se.B}});let a2=(()=>{class E extends o2{get disabled(){return this._disabled}set disabled(h){this._disabled=Kn(h),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(h){this._id=h||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(V.k0.required)??!1}set required(h){this._required=Kn(h)}get type(){return this._type}set type(h){this._type=h||"text",this._validateType(),!this._isTextarea&&me().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(h){h!==this.value&&(this._inputValueAccessor.value=h,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(h){this._readonly=Kn(h)}constructor(h,b,w,G,we,en,Yn,ki,Ai,$r){super(en,G,we,w),this._elementRef=h,this._platform=b,this._autofillMonitor=ki,this._formField=$r,this._uid="mat-input-"+I2++,this.focused=!1,this.stateChanges=new Se.B,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(lc=>me().has(lc)),this._iOSKeyupListener=lc=>{const pa=lc.target;!pa.value&&0===pa.selectionStart&&0===pa.selectionEnd&&(pa.setSelectionRange(1,1),pa.setSelectionRange(0,0))};const Pc=this._elementRef.nativeElement,Tc=Pc.nodeName.toLowerCase();this._inputValueAccessor=Yn||Pc,this._previousNativeValue=this.value,this.id=this.id,b.IOS&&Ai.runOutsideAngular(()=>{h.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Tc,this._isTextarea="textarea"===Tc,this._isInFormField=!!$r,this._isNativeSelect&&(this.controlType=Pc.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(h=>{this.autofilled=h.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(h){this._elementRef.nativeElement.focus(h)}_focusChanged(h){h!==this.focused&&(this.focused=h,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const h=this._elementRef.nativeElement.value;this._previousNativeValue!==h&&(this._previousNativeValue=h,this.stateChanges.next())}_dirtyCheckPlaceholder(){const h=this._getPlaceholder();if(h!==this._previousPlaceholder){const b=this._elementRef.nativeElement;this._previousPlaceholder=h,h?b.setAttribute("placeholder",h):b.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Jd.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let h=this._elementRef.nativeElement.validity;return h&&h.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const h=this._elementRef.nativeElement,b=h.options[0];return this.focused||h.multiple||!this.empty||!!(h.selectedIndex>-1&&b&&b.label)}return this.focused||!this.empty}setDescribedByIds(h){h.length?this._elementRef.nativeElement.setAttribute("aria-describedby",h.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const h=this._elementRef.nativeElement;return this._isNativeSelect&&(h.multiple||h.size>1)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(De),o.rXU(V.vO,10),o.rXU(V.cV,8),o.rXU(V.j4,8),o.rXU(ac),o.rXU(s2,10),o.rXU(Ou),o.rXU(o.SKi),o.rXU(fs,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(b,w){1&b&&o.bIt("focus",function(){return w._focusChanged(!0)})("blur",function(){return w._focusChanged(!1)})("input",function(){return w._onInput()}),2&b&&(o.Mr5("id",w.id)("disabled",w.disabled)("required",w.required),o.BMQ("name",w.name||null)("readonly",w.readonly&&!w._isNativeSelect||null)("aria-invalid",w.empty&&w.required?null:w.errorState)("aria-required",w.required)("id",w.id),o.AVh("mat-input-server",w._isServer)("mat-mdc-form-field-textarea-control",w._isInFormField&&w._isTextarea)("mat-mdc-form-field-input-control",w._isInFormField)("mdc-text-field__input",w._isInFormField)("mat-mdc-native-select-inline",w._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[o.Jv_([{provide:ri,useExisting:E}]),o.Vt3,o.OA$]})}return E})(),Zd=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,ec,ec,D4,Pn]})}return E})();var Oo=F(2709),D7=F(1227);const N1={schedule(E){let O=requestAnimationFrame,h=cancelAnimationFrame;const{delegate:b}=N1;b&&(O=b.requestAnimationFrame,h=b.cancelAnimationFrame);const w=O(G=>{h=void 0,E(G)});return new it.yU(()=>h?.(w))},requestAnimationFrame(...E){const{delegate:O}=N1;return(O?.requestAnimationFrame||requestAnimationFrame)(...E)},cancelAnimationFrame(...E){const{delegate:O}=N1;return(O?.cancelAnimationFrame||cancelAnimationFrame)(...E)},delegate:void 0};var Kh=F(1246);new class cl extends Kh.q{flush(O){this._active=!0;const h=this._scheduled;this._scheduled=void 0;const{actions:b}=this;let w;O=O||b.shift();do{if(w=O.execute(O.state,O.delay))break}while((O=b[0])&&O.id===h&&b.shift());if(this._active=!1,w){for(;(O=b[0])&&O.id===h&&b.shift();)O.unsubscribe();throw w}}}(class am extends D7.R{constructor(O,h){super(O,h),this.scheduler=O,this.work=h}requestAsyncId(O,h,b=0){return null!==b&&b>0?super.requestAsyncId(O,h,b):(O.actions.push(this),O._scheduled||(O._scheduled=N1.requestAnimationFrame(()=>O.flush(void 0))))}recycleAsyncId(O,h,b=0){var w;if(null!=b?b>0:this.delay>0)return super.recycleAsyncId(O,h,b);const{actions:G}=O;null!=h&&(null===(w=G[G.length-1])||void 0===w?void 0:w.id)!==h&&(N1.cancelAnimationFrame(h),O._scheduled=void 0)}});let Dc,T7=1;const Ru={};function Yh(E){return E in Ru&&(delete Ru[E],!0)}const X0={setImmediate(E){const O=T7++;return Ru[O]=!0,Dc||(Dc=Promise.resolve()),Dc.then(()=>Yh(O)&&E()),O},clearImmediate(E){Yh(E)}},{setImmediate:V7,clearImmediate:Nb}=X0,Y0={setImmediate(...E){const{delegate:O}=Y0;return(O?.setImmediate||V7)(...E)},clearImmediate(E){const{delegate:O}=Y0;return(O?.clearImmediate||Nb)(E)},delegate:void 0};new class P1 extends Kh.q{flush(O){this._active=!0;const h=this._scheduled;this._scheduled=void 0;const{actions:b}=this;let w;O=O||b.shift();do{if(w=O.execute(O.state,O.delay))break}while((O=b[0])&&O.id===h&&b.shift());if(this._active=!1,w){for(;(O=b[0])&&O.id===h&&b.shift();)O.unsubscribe();throw w}}}(class Pb extends D7.R{constructor(O,h){super(O,h),this.scheduler=O,this.work=h}requestAsyncId(O,h,b=0){return null!==b&&b>0?super.requestAsyncId(O,h,b):(O.actions.push(this),O._scheduled||(O._scheduled=Y0.setImmediate(O.flush.bind(O,void 0))))}recycleAsyncId(O,h,b=0){var w;if(null!=b?b>0:this.delay>0)return super.recycleAsyncId(O,h,b);const{actions:G}=O;null!=h&&(null===(w=G[G.length-1])||void 0===w?void 0:w.id)!==h&&(Y0.clearImmediate(h),O._scheduled===h&&(O._scheduled=void 0))}});let O7=(()=>{class E{constructor(h,b,w){this._ngZone=h,this._platform=b,this._scrolled=new Se.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=w}register(h){this.scrollContainers.has(h)||this.scrollContainers.set(h,h.elementScrolled().subscribe(()=>this._scrolled.next(h)))}deregister(h){const b=this.scrollContainers.get(h);b&&(b.unsubscribe(),this.scrollContainers.delete(h))}scrolled(h=20){return this._platform.isBrowser?new Qs.c(b=>{this._globalSubscription||this._addGlobalListener();const w=h>0?this._scrolled.pipe(vc(h)).subscribe(b):this._scrolled.subscribe(b);return this._scrolledCount++,()=>{w.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,jt.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((h,b)=>this.deregister(b)),this._scrolled.complete()}ancestorScrolled(h,b){const w=this.getAncestorScrollContainers(h);return this.scrolled(b).pipe((0,za.p)(G=>!G||w.indexOf(G)>-1))}getAncestorScrollContainers(h){const b=[];return this.scrollContainers.forEach((w,G)=>{this._scrollableContainsElement(G,h)&&b.push(G)}),b}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(h,b){let w=ka(b),G=h.getElementRef().nativeElement;do{if(w==G)return!0}while(w=w.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const h=this._getWindow();return(0,ls.R)(h.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(o.SKi),o.KVO(De),o.KVO(g.qQ,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),Jh=(()=>{class E{constructor(h,b,w){this._platform=h,this._change=new Se.B,this._changeListener=G=>{this._change.next(G)},this._document=w,b.runOutsideAngular(()=>{if(h.isBrowser){const G=this._getWindow();G.addEventListener("resize",this._changeListener),G.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const h=this._getWindow();h.removeEventListener("resize",this._changeListener),h.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const h={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),h}getViewportRect(){const h=this.getViewportScrollPosition(),{width:b,height:w}=this.getViewportSize();return{top:h.top,left:h.left,bottom:h.top+w,right:h.left+b,height:w,width:b}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const h=this._document,b=this._getWindow(),w=h.documentElement,G=w.getBoundingClientRect();return{top:-G.top||h.body.scrollTop||b.scrollY||w.scrollTop||0,left:-G.left||h.body.scrollLeft||b.scrollX||w.scrollLeft||0}}change(h=20){return h>0?this._change.pipe(vc(h)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const h=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:h.innerWidth,height:h.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(De),o.KVO(o.SKi),o.KVO(g.qQ,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),Z0=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})(),Nu=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[C1,Z0,C1,Z0]})}return E})();var j3=F(7049);class e6{attach(O){return this._attachedHost=O,O.attach(this)}detach(){let O=this._attachedHost;null!=O&&(this._attachedHost=null,O.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(O){this._attachedHost=O}}class ef extends e6{constructor(O,h,b,w,G){super(),this.component=O,this.viewContainerRef=h,this.injector=b,this.componentFactoryResolver=w,this.projectableNodes=G}}class F3 extends e6{constructor(O,h,b,w){super(),this.templateRef=O,this.viewContainerRef=h,this.context=b,this.injector=w}get origin(){return this.templateRef.elementRef}attach(O,h=this.context){return this.context=h,super.attach(O)}detach(){return this.context=void 0,super.detach()}}class t6 extends e6{constructor(O){super(),this.element=O instanceof o.aKT?O.nativeElement:O}}class fm{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(O){return O instanceof ef?(this._attachedPortal=O,this.attachComponentPortal(O)):O instanceof F3?(this._attachedPortal=O,this.attachTemplatePortal(O)):this.attachDomPortal&&O instanceof t6?(this._attachedPortal=O,this.attachDomPortal(O)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(O){this._disposeFn=O}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Xb extends fm{constructor(O,h,b,w,G){super(),this.outletElement=O,this._componentFactoryResolver=h,this._appRef=b,this._defaultInjector=w,this.attachDomPortal=we=>{const en=we.element,Yn=this._document.createComment("dom-portal");en.parentNode.insertBefore(Yn,en),this.outletElement.appendChild(en),this._attachedPortal=we,super.setDisposeFn(()=>{Yn.parentNode&&Yn.parentNode.replaceChild(en,Yn)})},this._document=G}attachComponentPortal(O){const b=(O.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(O.component);let w;return O.viewContainerRef?(w=O.viewContainerRef.createComponent(b,O.viewContainerRef.length,O.injector||O.viewContainerRef.injector,O.projectableNodes||void 0),this.setDisposeFn(()=>w.destroy())):(w=b.create(O.injector||this._defaultInjector||o.zZn.NULL),this._appRef.attachView(w.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(w.hostView),w.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(w)),this._attachedPortal=O,w}attachTemplatePortal(O){let h=O.viewContainerRef,b=h.createEmbeddedView(O.templateRef,O.context,{injector:O.injector});return b.rootNodes.forEach(w=>this.outletElement.appendChild(w)),b.detectChanges(),this.setDisposeFn(()=>{let w=h.indexOf(b);-1!==w&&h.remove(w)}),this._attachedPortal=O,b}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(O){return O.hostView.rootNodes[0]}}let pm=(()=>{class E extends fm{constructor(h,b,w){super(),this._componentFactoryResolver=h,this._viewContainerRef=b,this._isInitialized=!1,this.attached=new o.bkB,this.attachDomPortal=G=>{const we=G.element,en=this._document.createComment("dom-portal");G.setAttachedHost(this),we.parentNode.insertBefore(en,we),this._getRootNode().appendChild(we),this._attachedPortal=G,super.setDisposeFn(()=>{en.parentNode&&en.parentNode.replaceChild(we,en)})},this._document=w}get portal(){return this._attachedPortal}set portal(h){this.hasAttached()&&!h&&!this._isInitialized||(this.hasAttached()&&super.detach(),h&&super.attach(h),this._attachedPortal=h||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(h){h.setAttachedHost(this);const b=null!=h.viewContainerRef?h.viewContainerRef:this._viewContainerRef,G=(h.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(h.component),we=b.createComponent(G,b.length,h.injector||b.injector,h.projectableNodes||void 0);return b!==this._viewContainerRef&&this._getRootNode().appendChild(we.hostView.rootNodes[0]),super.setDisposeFn(()=>we.destroy()),this._attachedPortal=h,this._attachedRef=we,this.attached.emit(we),we}attachTemplatePortal(h){h.setAttachedHost(this);const b=this._viewContainerRef.createEmbeddedView(h.templateRef,h.context,{injector:h.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=h,this._attachedRef=b,this.attached.emit(b),b}_getRootNode(){const h=this._viewContainerRef.element.nativeElement;return h.nodeType===h.ELEMENT_NODE?h:h.parentNode}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.OM3),o.rXU(o.c1b),o.rXU(g.qQ))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.Vt3]})}return E})(),N7=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})();const tf=tt();class P7{constructor(O,h){this._viewportRuler=O,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=h}attach(){}enable(){if(this._canBeEnabled()){const O=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=O.style.left||"",this._previousHTMLStyles.top=O.style.top||"",O.style.left=ns(-this._previousScrollPosition.left),O.style.top=ns(-this._previousScrollPosition.top),O.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const O=this._document.documentElement,b=O.style,w=this._document.body.style,G=b.scrollBehavior||"",we=w.scrollBehavior||"";this._isEnabled=!1,b.left=this._previousHTMLStyles.left,b.top=this._previousHTMLStyles.top,O.classList.remove("cdk-global-scrollblock"),tf&&(b.scrollBehavior=w.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tf&&(b.scrollBehavior=G,w.scrollBehavior=we)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const h=this._document.body,b=this._viewportRuler.getViewportSize();return h.scrollHeight>b.height||h.scrollWidth>b.width}}class Kb{constructor(O,h,b,w){this._scrollDispatcher=O,this._ngZone=h,this._viewportRuler=b,this._config=w,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(O){this._overlayRef=O}enable(){if(this._scrollSubscription)return;const O=this._scrollDispatcher.scrolled(0).pipe((0,za.p)(h=>!h||!this._overlayRef.overlayElement.contains(h.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=O.subscribe(()=>{const h=this._viewportRuler.getViewportScrollPosition().top;Math.abs(h-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=O.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class j7{enable(){}disable(){}attach(){}}function mm(E,O){return O.some(h=>E.bottomh.bottom||E.righth.right)}function gm(E,O){return O.some(h=>E.toph.bottom||E.lefth.right)}class nf{constructor(O,h,b,w){this._scrollDispatcher=O,this._viewportRuler=h,this._ngZone=b,this._config=w,this._scrollSubscription=null}attach(O){this._overlayRef=O}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const h=this._overlayRef.overlayElement.getBoundingClientRect(),{width:b,height:w}=this._viewportRuler.getViewportSize();mm(h,[{width:b,height:w,bottom:w,right:b,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let rf=(()=>{class E{constructor(h,b,w,G){this._scrollDispatcher=h,this._viewportRuler=b,this._ngZone=w,this.noop=()=>new j7,this.close=we=>new Kb(this._scrollDispatcher,this._ngZone,this._viewportRuler,we),this.block=()=>new P7(this._viewportRuler,this._document),this.reposition=we=>new nf(this._scrollDispatcher,this._viewportRuler,this._ngZone,we),this._document=G}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(O7),o.KVO(Jh),o.KVO(o.SKi),o.KVO(g.qQ))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class wl{constructor(O){if(this.scrollStrategy=new j7,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,O){const h=Object.keys(O);for(const b of h)void 0!==O[b]&&(this[b]=O[b])}}}class A4{constructor(O,h){this.connectionPair=O,this.scrollableViewProperties=h}}let O4=(()=>{class E{constructor(h){this._attachedOverlays=[],this._document=h}ngOnDestroy(){this.detach()}add(h){this.remove(h),this._attachedOverlays.push(h)}remove(h){const b=this._attachedOverlays.indexOf(h);b>-1&&this._attachedOverlays.splice(b,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(g.qQ))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),af=(()=>{class E extends O4{constructor(h,b){super(h),this._ngZone=b,this._keydownListener=w=>{const G=this._attachedOverlays;for(let we=G.length-1;we>-1;we--)if(G[we]._keydownEvents.observers.length>0){const en=G[we]._keydownEvents;this._ngZone?this._ngZone.run(()=>en.next(w)):en.next(w);break}}}add(h){super.add(h),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(g.qQ),o.KVO(o.SKi,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),cf=(()=>{class E extends O4{constructor(h,b,w){super(h),this._platform=b,this._ngZone=w,this._cursorStyleIsSet=!1,this._pointerDownListener=G=>{this._pointerDownEventTarget=he(G)},this._clickListener=G=>{const we=he(G),en="click"===G.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:we;this._pointerDownEventTarget=null;const Yn=this._attachedOverlays.slice();for(let ki=Yn.length-1;ki>-1;ki--){const Ai=Yn[ki];if(Ai._outsidePointerEvents.observers.length<1||!Ai.hasAttached())continue;if(Ai.overlayElement.contains(we)||Ai.overlayElement.contains(en))break;const $r=Ai._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>$r.next(G)):$r.next(G)}}}add(h){if(super.add(h),!this._isAttached){const b=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(b)):this._addEventListeners(b),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=b.style.cursor,b.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const h=this._document.body;h.removeEventListener("pointerdown",this._pointerDownListener,!0),h.removeEventListener("click",this._clickListener,!0),h.removeEventListener("auxclick",this._clickListener,!0),h.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(h.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(h){h.addEventListener("pointerdown",this._pointerDownListener,!0),h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(g.qQ),o.KVO(De),o.KVO(o.SKi,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),vm=(()=>{class E{constructor(h,b){this._platform=b,this._document=h}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const h="cdk-overlay-container";if(this._platform.isBrowser||He()){const w=this._document.querySelectorAll(`.${h}[platform="server"], .${h}[platform="test"]`);for(let G=0;Gthis._backdropClick.next($r),this._backdropTransitionendHandler=$r=>{this._disposeBackdrop($r.target)},this._keydownEvents=new Se.B,this._outsidePointerEvents=new Se.B,w.scrollStrategy&&(this._scrollStrategy=w.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=w.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(O){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const h=this._portalOutlet.attach(O);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,gr.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof h?.onDestroy&&h.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),h}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const O=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),O}dispose(){const O=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,O&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(O){O!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=O,this.hasAttached()&&(O.attach(this),this.updatePosition()))}updateSize(O){this._config={...this._config,...O},this._updateElementSize()}setDirection(O){this._config={...this._config,direction:O},this._updateElementDirection()}addPanelClass(O){this._pane&&this._toggleClasses(this._pane,O,!0)}removePanelClass(O){this._pane&&this._toggleClasses(this._pane,O,!1)}getDirection(){const O=this._config.direction;return O?"string"==typeof O?O:O.value:"ltr"}updateScrollStrategy(O){O!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=O,this.hasAttached()&&(O.attach(this),O.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const O=this._pane.style;O.width=ns(this._config.width),O.height=ns(this._config.height),O.minWidth=ns(this._config.minWidth),O.minHeight=ns(this._config.minHeight),O.maxWidth=ns(this._config.maxWidth),O.maxHeight=ns(this._config.maxHeight)}_togglePointerEvents(O){this._pane.style.pointerEvents=O?"":"none"}_attachBackdrop(){const O="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(O)})}):this._backdropElement.classList.add(O)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const O=this._backdropElement;if(O){if(this._animationsDisabled)return void this._disposeBackdrop(O);O.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{O.addEventListener("transitionend",this._backdropTransitionendHandler)}),O.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(O)},500))}}_toggleClasses(O,h,b){const w=Mo(h||[]).filter(G=>!!G);w.length&&(b?O.classList.add(...w):O.classList.remove(...w))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const O=this._ngZone.onStable.pipe((0,yi.Q)((0,M1.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),O.unsubscribe())})})}_disposeScrollStrategy(){const O=this._scrollStrategy;O&&(O.disable(),O.detach&&O.detach())}_disposeBackdrop(O){O&&(O.removeEventListener("click",this._backdropClickHandler),O.removeEventListener("transitionend",this._backdropTransitionendHandler),O.remove(),this._backdropElement===O&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const _m="cdk-overlay-connected-position-bounding-box",H4=/([A-Za-z%]+)$/;class lf{get positions(){return this._preferredPositions}constructor(O,h,b,w,G){this._viewportRuler=h,this._document=b,this._platform=w,this._overlayContainer=G,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Se.B,this._resizeSubscription=it.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(O)}attach(O){this._validatePositions(),O.hostElement.classList.add(_m),this._overlayRef=O,this._boundingBox=O.hostElement,this._pane=O.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const O=this._originRect,h=this._overlayRect,b=this._viewportRect,w=this._containerRect,G=[];let we;for(let en of this._preferredPositions){let Yn=this._getOriginPoint(O,w,en),ki=this._getOverlayPoint(Yn,h,en),Ai=this._getOverlayFit(ki,h,b,en);if(Ai.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(en,Yn);this._canFitWithFlexibleDimensions(Ai,ki,b)?G.push({position:en,origin:Yn,overlayRect:h,boundingBoxRect:this._calculateBoundingBoxRect(Yn,en)}):(!we||we.overlayFit.visibleAreaYn&&(Yn=Ai,en=ki)}return this._isPushed=!1,void this._applyPosition(en.position,en.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(we.position,we.originPoint);this._applyPosition(we.position,we.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&e4(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_m),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const O=this._lastPosition;if(O){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const h=this._getOriginPoint(this._originRect,this._containerRect,O);this._applyPosition(O,h)}else this.apply()}withScrollableContainers(O){return this._scrollables=O,this}withPositions(O){return this._preferredPositions=O,-1===O.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(O){return this._viewportMargin=O,this}withFlexibleDimensions(O=!0){return this._hasFlexibleDimensions=O,this}withGrowAfterOpen(O=!0){return this._growAfterOpen=O,this}withPush(O=!0){return this._canPush=O,this}withLockedPosition(O=!0){return this._positionLocked=O,this}setOrigin(O){return this._origin=O,this}withDefaultOffsetX(O){return this._offsetX=O,this}withDefaultOffsetY(O){return this._offsetY=O,this}withTransformOriginOn(O){return this._transformOriginSelector=O,this}_getOriginPoint(O,h,b){let w,G;if("center"==b.originX)w=O.left+O.width/2;else{const we=this._isRtl()?O.right:O.left,en=this._isRtl()?O.left:O.right;w="start"==b.originX?we:en}return h.left<0&&(w-=h.left),G="center"==b.originY?O.top+O.height/2:"top"==b.originY?O.top:O.bottom,h.top<0&&(G-=h.top),{x:w,y:G}}_getOverlayPoint(O,h,b){let w,G;return w="center"==b.overlayX?-h.width/2:"start"===b.overlayX?this._isRtl()?-h.width:0:this._isRtl()?0:-h.width,G="center"==b.overlayY?-h.height/2:"top"==b.overlayY?0:-h.height,{x:O.x+w,y:O.y+G}}_getOverlayFit(O,h,b,w){const G=ym(h);let{x:we,y:en}=O,Yn=this._getOffset(w,"x"),ki=this._getOffset(w,"y");Yn&&(we+=Yn),ki&&(en+=ki);let Pc=0-en,Tc=en+G.height-b.height,lc=this._subtractOverflows(G.width,0-we,we+G.width-b.width),pa=this._subtractOverflows(G.height,Pc,Tc),Sl=lc*pa;return{visibleArea:Sl,isCompletelyWithinViewport:G.width*G.height===Sl,fitsInViewportVertically:pa===G.height,fitsInViewportHorizontally:lc==G.width}}_canFitWithFlexibleDimensions(O,h,b){if(this._hasFlexibleDimensions){const w=b.bottom-h.y,G=b.right-h.x,we=bm(this._overlayRef.getConfig().minHeight),en=bm(this._overlayRef.getConfig().minWidth);return(O.fitsInViewportVertically||null!=we&&we<=w)&&(O.fitsInViewportHorizontally||null!=en&&en<=G)}return!1}_pushOverlayOnScreen(O,h,b){if(this._previousPushAmount&&this._positionLocked)return{x:O.x+this._previousPushAmount.x,y:O.y+this._previousPushAmount.y};const w=ym(h),G=this._viewportRect,we=Math.max(O.x+w.width-G.width,0),en=Math.max(O.y+w.height-G.height,0),Yn=Math.max(G.top-b.top-O.y,0),ki=Math.max(G.left-b.left-O.x,0);let Ai=0,$r=0;return Ai=w.width<=G.width?ki||-we:O.xlc&&!this._isInitialRender&&!this._growAfterOpen&&(we=O.y-lc/2)}if("end"===h.overlayX&&!w||"start"===h.overlayX&&w)Pc=b.width-O.x+this._viewportMargin,Ai=O.x-this._viewportMargin;else if("start"===h.overlayX&&!w||"end"===h.overlayX&&w)$r=O.x,Ai=b.right-O.x;else{const Tc=Math.min(b.right-O.x+b.left,O.x),lc=this._lastBoundingBoxSize.width;Ai=2*Tc,$r=O.x-Tc,Ai>lc&&!this._isInitialRender&&!this._growAfterOpen&&($r=O.x-lc/2)}return{top:we,left:$r,bottom:en,right:Pc,width:Ai,height:G}}_setBoundingBoxStyles(O,h){const b=this._calculateBoundingBoxRect(O,h);!this._isInitialRender&&!this._growAfterOpen&&(b.height=Math.min(b.height,this._lastBoundingBoxSize.height),b.width=Math.min(b.width,this._lastBoundingBoxSize.width));const w={};if(this._hasExactPosition())w.top=w.left="0",w.bottom=w.right=w.maxHeight=w.maxWidth="",w.width=w.height="100%";else{const G=this._overlayRef.getConfig().maxHeight,we=this._overlayRef.getConfig().maxWidth;w.height=ns(b.height),w.top=ns(b.top),w.bottom=ns(b.bottom),w.width=ns(b.width),w.left=ns(b.left),w.right=ns(b.right),w.alignItems="center"===h.overlayX?"center":"end"===h.overlayX?"flex-end":"flex-start",w.justifyContent="center"===h.overlayY?"center":"bottom"===h.overlayY?"flex-end":"flex-start",G&&(w.maxHeight=ns(G)),we&&(w.maxWidth=ns(we))}this._lastBoundingBoxSize=b,e4(this._boundingBox.style,w)}_resetBoundingBoxStyles(){e4(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){e4(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(O,h){const b={},w=this._hasExactPosition(),G=this._hasFlexibleDimensions,we=this._overlayRef.getConfig();if(w){const Ai=this._viewportRuler.getViewportScrollPosition();e4(b,this._getExactOverlayY(h,O,Ai)),e4(b,this._getExactOverlayX(h,O,Ai))}else b.position="static";let en="",Yn=this._getOffset(h,"x"),ki=this._getOffset(h,"y");Yn&&(en+=`translateX(${Yn}px) `),ki&&(en+=`translateY(${ki}px)`),b.transform=en.trim(),we.maxHeight&&(w?b.maxHeight=ns(we.maxHeight):G&&(b.maxHeight="")),we.maxWidth&&(w?b.maxWidth=ns(we.maxWidth):G&&(b.maxWidth="")),e4(this._pane.style,b)}_getExactOverlayY(O,h,b){let w={top:"",bottom:""},G=this._getOverlayPoint(h,this._overlayRect,O);return this._isPushed&&(G=this._pushOverlayOnScreen(G,this._overlayRect,b)),"bottom"===O.overlayY?w.bottom=this._document.documentElement.clientHeight-(G.y+this._overlayRect.height)+"px":w.top=ns(G.y),w}_getExactOverlayX(O,h,b){let we,w={left:"",right:""},G=this._getOverlayPoint(h,this._overlayRect,O);return this._isPushed&&(G=this._pushOverlayOnScreen(G,this._overlayRect,b)),we=this._isRtl()?"end"===O.overlayX?"left":"right":"end"===O.overlayX?"right":"left","right"===we?w.right=this._document.documentElement.clientWidth-(G.x+this._overlayRect.width)+"px":w.left=ns(G.x),w}_getScrollVisibility(){const O=this._getOriginRect(),h=this._pane.getBoundingClientRect(),b=this._scrollables.map(w=>w.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gm(O,b),isOriginOutsideView:mm(O,b),isOverlayClipped:gm(h,b),isOverlayOutsideView:mm(h,b)}}_subtractOverflows(O,...h){return h.reduce((b,w)=>b-Math.max(w,0),O)}_getNarrowedViewportRect(){const O=this._document.documentElement.clientWidth,h=this._document.documentElement.clientHeight,b=this._viewportRuler.getViewportScrollPosition();return{top:b.top+this._viewportMargin,left:b.left+this._viewportMargin,right:b.left+O-this._viewportMargin,bottom:b.top+h-this._viewportMargin,width:O-2*this._viewportMargin,height:h-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(O,h){return"x"===h?null==O.offsetX?this._offsetX:O.offsetX:null==O.offsetY?this._offsetY:O.offsetY}_validatePositions(){}_addPanelClasses(O){this._pane&&Mo(O).forEach(h=>{""!==h&&-1===this._appliedPanelClasses.indexOf(h)&&(this._appliedPanelClasses.push(h),this._pane.classList.add(h))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(O=>{this._pane.classList.remove(O)}),this._appliedPanelClasses=[])}_getOriginRect(){const O=this._origin;if(O instanceof o.aKT)return O.nativeElement.getBoundingClientRect();if(O instanceof Element)return O.getBoundingClientRect();const h=O.width||0,b=O.height||0;return{top:O.y,bottom:O.y+b,left:O.x,right:O.x+h,height:b,width:h}}}function e4(E,O){for(let h in O)O.hasOwnProperty(h)&&(E[h]=O[h]);return E}function bm(E){if("number"!=typeof E&&null!=E){const[O,h]=E.split(H4);return h&&"px"!==h?null:parseFloat(O)}return E||null}function ym(E){return{top:Math.floor(E.top),right:Math.floor(E.right),bottom:Math.floor(E.bottom),left:Math.floor(E.left),width:Math.floor(E.width),height:Math.floor(E.height)}}const Cm="cdk-global-overlay-wrapper";class k1{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(O){const h=O.getConfig();this._overlayRef=O,this._width&&!h.width&&O.updateSize({width:this._width}),this._height&&!h.height&&O.updateSize({height:this._height}),O.hostElement.classList.add(Cm),this._isDisposed=!1}top(O=""){return this._bottomOffset="",this._topOffset=O,this._alignItems="flex-start",this}left(O=""){return this._xOffset=O,this._xPosition="left",this}bottom(O=""){return this._topOffset="",this._bottomOffset=O,this._alignItems="flex-end",this}right(O=""){return this._xOffset=O,this._xPosition="right",this}start(O=""){return this._xOffset=O,this._xPosition="start",this}end(O=""){return this._xOffset=O,this._xPosition="end",this}width(O=""){return this._overlayRef?this._overlayRef.updateSize({width:O}):this._width=O,this}height(O=""){return this._overlayRef?this._overlayRef.updateSize({height:O}):this._height=O,this}centerHorizontally(O=""){return this.left(O),this._xPosition="center",this}centerVertically(O=""){return this.top(O),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const O=this._overlayRef.overlayElement.style,h=this._overlayRef.hostElement.style,b=this._overlayRef.getConfig(),{width:w,height:G,maxWidth:we,maxHeight:en}=b,Yn=!("100%"!==w&&"100vw"!==w||we&&"100%"!==we&&"100vw"!==we),ki=!("100%"!==G&&"100vh"!==G||en&&"100%"!==en&&"100vh"!==en),Ai=this._xPosition,$r=this._xOffset,Pc="rtl"===this._overlayRef.getConfig().direction;let Tc="",lc="",pa="";Yn?pa="flex-start":"center"===Ai?(pa="center",Pc?lc=$r:Tc=$r):Pc?"left"===Ai||"end"===Ai?(pa="flex-end",Tc=$r):("right"===Ai||"start"===Ai)&&(pa="flex-start",lc=$r):"left"===Ai||"start"===Ai?(pa="flex-start",Tc=$r):("right"===Ai||"end"===Ai)&&(pa="flex-end",lc=$r),O.position=this._cssPosition,O.marginLeft=Yn?"0":Tc,O.marginTop=ki?"0":this._topOffset,O.marginBottom=this._bottomOffset,O.marginRight=Yn?"0":lc,h.justifyContent=pa,h.alignItems=ki?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const O=this._overlayRef.overlayElement.style,h=this._overlayRef.hostElement,b=h.style;h.classList.remove(Cm),b.justifyContent=b.alignItems=O.marginTop=O.marginBottom=O.marginLeft=O.marginRight=O.position="",this._overlayRef=null,this._isDisposed=!0}}let i6=(()=>{class E{constructor(h,b,w,G){this._viewportRuler=h,this._document=b,this._platform=w,this._overlayContainer=G}global(){return new k1}flexibleConnectedTo(h){return new lf(h,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(Jh),o.KVO(g.qQ),o.KVO(De),o.KVO(vm))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),xm=0,md=(()=>{class E{constructor(h,b,w,G,we,en,Yn,ki,Ai,$r,Pc,Tc){this.scrollStrategies=h,this._overlayContainer=b,this._componentFactoryResolver=w,this._positionBuilder=G,this._keyboardDispatcher=we,this._injector=en,this._ngZone=Yn,this._document=ki,this._directionality=Ai,this._location=$r,this._outsideClickDispatcher=Pc,this._animationsModuleType=Tc}create(h){const b=this._createHostElement(),w=this._createPaneElement(b),G=this._createPortalOutlet(w),we=new wl(h);return we.direction=we.direction||this._directionality.value,new n6(G,b,w,we,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(h){const b=this._document.createElement("div");return b.id="cdk-overlay-"+xm++,b.classList.add("cdk-overlay-pane"),h.appendChild(b),b}_createHostElement(){const h=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(h),h}_createPortalOutlet(h){return this._appRef||(this._appRef=this._injector.get(o.o8S)),new Xb(h,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(rf),o.KVO(vm),o.KVO(o.OM3),o.KVO(i6),o.KVO(af),o.KVO(o.zZn),o.KVO(o.SKi),o.KVO(g.qQ),o.KVO(bl),o.KVO(g.aZ),o.KVO(cf),o.KVO(o.bc$,8))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const Ql=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],L4=new o.nKC("cdk-connected-overlay-scroll-strategy");let uf=(()=>{class E{constructor(h){this.elementRef=h}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return E})(),r6=(()=>{class E{get offsetX(){return this._offsetX}set offsetX(h){this._offsetX=h,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(h){this._offsetY=h,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(h){this._hasBackdrop=Kn(h)}get lockPosition(){return this._lockPosition}set lockPosition(h){this._lockPosition=Kn(h)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(h){this._flexibleDimensions=Kn(h)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(h){this._growAfterOpen=Kn(h)}get push(){return this._push}set push(h){this._push=Kn(h)}constructor(h,b,w,G,we){this._overlay=h,this._dir=we,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=it.yU.EMPTY,this._attachSubscription=it.yU.EMPTY,this._detachSubscription=it.yU.EMPTY,this._positionSubscription=it.yU.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new o.bkB,this.positionChange=new o.bkB,this.attach=new o.bkB,this.detach=new o.bkB,this.overlayKeydown=new o.bkB,this.overlayOutsideClick=new o.bkB,this._templatePortal=new F3(b,w),this._scrollStrategyFactory=G,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(h){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),h.origin&&this.open&&this._position.apply()),h.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ql);const h=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=h.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=h.detachments().subscribe(()=>this.detach.emit()),h.keydownEvents().subscribe(b=>{this.overlayKeydown.next(b),27===b.keyCode&&!this.disableClose&&!Ao(b)&&(b.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(b=>{this.overlayOutsideClick.next(b)})}_buildConfig(){const h=this._position=this.positionStrategy||this._createPositionStrategy(),b=new wl({direction:this._dir,positionStrategy:h,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(b.width=this.width),(this.height||0===this.height)&&(b.height=this.height),(this.minWidth||0===this.minWidth)&&(b.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(b.minHeight=this.minHeight),this.backdropClass&&(b.backdropClass=this.backdropClass),this.panelClass&&(b.panelClass=this.panelClass),b}_updatePositionStrategy(h){const b=this.positions.map(w=>({originX:w.originX,originY:w.originY,overlayX:w.overlayX,overlayY:w.overlayY,offsetX:w.offsetX||this.offsetX,offsetY:w.offsetY||this.offsetY,panelClass:w.panelClass||void 0}));return h.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(b).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const h=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(h),h}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof uf?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(h=>{this.backdropClick.emit(h)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,j3.v)(()=>this.positionChange.observers.length>0)).subscribe(h=>{this.positionChange.emit(h),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(md),o.rXU(o.C4Q),o.rXU(o.c1b),o.rXU(L4),o.rXU(bl,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[o.OA$]})}return E})();const t4={provide:L4,deps:[md],useFactory:function U7(E){return()=>E.scrollStrategies.reposition()}};let s6=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[md,t4],imports:[C1,N7,Nu,Nu]})}return E})();F(2319);class q7{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(O=!1,h,b=!0,w){this._multiple=O,this._emitChanges=b,this.compareWith=w,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Se.B,h&&h.length&&(O?h.forEach(G=>this._markSelected(G)):this._markSelected(h[0]),this._selectedToEmit.length=0)}select(...O){this._verifyValueAssignment(O),O.forEach(b=>this._markSelected(b));const h=this._hasQueuedChanges();return this._emitChangeEvent(),h}deselect(...O){this._verifyValueAssignment(O),O.forEach(b=>this._unmarkSelected(b));const h=this._hasQueuedChanges();return this._emitChangeEvent(),h}setSelection(...O){this._verifyValueAssignment(O);const h=this.selected,b=new Set(O);O.forEach(G=>this._markSelected(G)),h.filter(G=>!b.has(G)).forEach(G=>this._unmarkSelected(G));const w=this._hasQueuedChanges();return this._emitChangeEvent(),w}toggle(O){return this.isSelected(O)?this.deselect(O):this.select(O)}clear(O=!0){this._unmarkAll();const h=this._hasQueuedChanges();return O&&this._emitChangeEvent(),h}isSelected(O){return this._selection.has(this._getConcreteValue(O))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(O){this._multiple&&this.selected&&this._selected.sort(O)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(O){O=this._getConcreteValue(O),this.isSelected(O)||(this._multiple||this._unmarkAll(),this.isSelected(O)||this._selection.add(O),this._emitChanges&&this._selectedToEmit.push(O))}_unmarkSelected(O){O=this._getConcreteValue(O),this.isSelected(O)&&(this._selection.delete(O),this._emitChanges&&this._deselectedToEmit.push(O))}_unmarkAll(){this.isEmpty()||this._selection.forEach(O=>this._unmarkSelected(O))}_verifyValueAssignment(O){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(O){if(this.compareWith){for(let h of this._selection)if(this.compareWith(O,h))return h;return O}return O}}let X7=(()=>{class E{constructor(){this._listeners=[]}notify(h,b){for(let w of this._listeners)w(h,b)}listen(h){return this._listeners.push(h),()=>{this._listeners=this._listeners.filter(b=>h!==b)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var km=F(8001),a6=F(2831);const Em=["trigger"],H2=["panel"];function n4(E,O){if(1&E&&(o.j41(0,"span",10),o.EFF(1),o.k0s()),2&E){const h=o.XpG();o.R7$(1),o.JRh(h.placeholder)}}function Dm(E,O){if(1&E&&(o.j41(0,"span",14),o.EFF(1),o.k0s()),2&E){const h=o.XpG(2);o.R7$(1),o.JRh(h.triggerValue)}}function i4(E,O){1&E&&o.SdG(0,0,["*ngSwitchCase","true"])}function ff(E,O){if(1&E&&(o.j41(0,"span",11),o.DNE(1,Dm,2,1,"span",12),o.DNE(2,i4,1,0,"ng-content",13),o.k0s()),2&E){const h=o.XpG();o.Y8G("ngSwitch",!!h.customTrigger),o.R7$(2),o.Y8G("ngSwitchCase",!0)}}function K7(E,O){if(1&E){const h=o.RV6();o.qSk(),o.joV(),o.j41(0,"div",15,16),o.bIt("@transformPanel.done",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._panelDoneAnimatingStream.next(w.toState))})("keydown",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._handleKeydown(w))}),o.SdG(2,1),o.k0s()}if(2&E){const h=o.XpG();o.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",h._getPanelTheme(),""),o.Y8G("ngClass",h.panelClass)("@transformPanel","showing"),o.BMQ("id",h.id+"-panel")("aria-multiselectable",h.multiple)("aria-label",h.ariaLabel||null)("aria-labelledby",h._getPanelAriaLabelledby())}}const Y7=[[["mat-select-trigger"]],"*"],Q7=["mat-select-trigger","*"],J7={transformPanelWrap:(0,Sr.hZ)("transformPanelWrap",[(0,Sr.kY)("* => void",(0,Sr.P)("@transformPanel",[(0,Sr.MA)()],{optional:!0}))]),transformPanel:(0,Sr.hZ)("transformPanel",[(0,Sr.wk)("void",(0,Sr.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,Sr.kY)("void => showing",(0,Sr.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Sr.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,Sr.kY)("* => void",(0,Sr.i0)("100ms linear",(0,Sr.iF)({opacity:0})))])};let B3=0;const hf=new o.nKC("mat-select-scroll-strategy"),eg=new o.nKC("MAT_SELECT_CONFIG"),tg={provide:hf,deps:[md],useFactory:function l6(E){return()=>E.scrollStrategies.reposition()}},u6=new o.nKC("MatSelectTrigger");class r4{constructor(O,h){this.source=O,this.value=h}}const du=ko(ms(Ds(ha(class{constructor(E,O,h,b,w){this._elementRef=E,this._defaultErrorStateMatcher=O,this._parentForm=h,this._parentFormGroup=b,this.ngControl=w,this.stateChanges=new Se.B}}))));let Tm=(()=>{class E extends du{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(h){this._placeholder=h,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(V.k0.required)??!1}set required(h){this._required=Kn(h),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(h){this._multiple=Kn(h)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(h){this._disableOptionCentering=Kn(h)}get compareWith(){return this._compareWith}set compareWith(h){this._compareWith=h,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(h){this._assignValue(h)&&this._onChange(h)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(h){this._typeaheadDebounceInterval=ar(h)}get id(){return this._id}set id(h){this._id=h||this._uid,this.stateChanges.next()}constructor(h,b,w,G,we,en,Yn,ki,Ai,$r,Pc,Tc,lc,pa){super(we,G,Yn,ki,$r),this._viewportRuler=h,this._changeDetectorRef=b,this._ngZone=w,this._dir=en,this._parentFormField=Ai,this._liveAnnouncer=lc,this._defaultOptions=pa,this._panelOpen=!1,this._compareWith=(Sl,j2)=>Sl===j2,this._uid="mat-select-"+B3++,this._triggerAriaLabelledBy=null,this._destroy=new Se.B,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+B3++,this._panelDoneAnimatingStream=new Se.B,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,km.v)(()=>{const Sl=this.options;return Sl?Sl.changes.pipe((0,la.Z)(Sl),(0,a6.n)(()=>(0,M1.h)(...Sl.map(j2=>j2.onSelectionChange)))):this._ngZone.onStable.pipe((0,gr.s)(1),(0,a6.n)(()=>this.optionSelectionChanges))}),this.openedChange=new o.bkB,this._openedStream=this.openedChange.pipe((0,za.p)(Sl=>Sl),(0,qs.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,za.p)(Sl=>!Sl),(0,qs.T)(()=>{})),this.selectionChange=new o.bkB,this.valueChange=new o.bkB,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=pa?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=pa.typeaheadDebounceInterval),this._scrollStrategyFactory=Tc,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Pc)||0,this.id=this.id}ngOnInit(){this._selectionModel=new q7(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Wr.F)(),(0,yi.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,yi.Q)(this._destroy)).subscribe(h=>{h.added.forEach(b=>b.select()),h.removed.forEach(b=>b.deselect())}),this.options.changes.pipe((0,la.Z)(null),(0,yi.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const h=this._getTriggerAriaLabelledby(),b=this.ngControl;if(h!==this._triggerAriaLabelledBy){const w=this._elementRef.nativeElement;this._triggerAriaLabelledBy=h,h?w.setAttribute("aria-labelledby",h):w.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(void 0!==this._previousControl&&null!==b.disabled&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())}ngOnChanges(h){(h.disabled||h.userAriaDescribedBy)&&this.stateChanges.next(),h.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const h=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!h)return;const b=`${this.id}-panel`;this._trackedModal&&Wc(this._trackedModal,"aria-owns",b),function Ll(E,O,h){const b=Lr(E,O);b.some(w=>w.trim()==h.trim())||(b.push(h.trim()),E.setAttribute(O,b.join(" ")))}(h,"aria-owns",b),this._trackedModal=h}_clearFromModal(){this._trackedModal&&(Wc(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(h){this._assignValue(h)}registerOnChange(h){this._onChange=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const h=this._selectionModel.selected.map(b=>b.viewValue);return this._isRtl()&&h.reverse(),h.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(h){this.disabled||(this.panelOpen?this._handleOpenKeydown(h):this._handleClosedKeydown(h))}_handleClosedKeydown(h){const b=h.keyCode,w=40===b||38===b||b===H||39===b,G=13===b||32===b,we=this._keyManager;if(!we.isTyping()&&G&&!Ao(h)||(this.multiple||h.altKey)&&w)h.preventDefault(),this.open();else if(!this.multiple){const en=this.selected;we.onKeydown(h);const Yn=this.selected;Yn&&en!==Yn&&this._liveAnnouncer.announce(Yn.viewValue,1e4)}}_handleOpenKeydown(h){const b=this._keyManager,w=h.keyCode,G=40===w||38===w,we=b.isTyping();if(G&&h.altKey)h.preventDefault(),this.close();else if(we||13!==w&&32!==w||!b.activeItem||Ao(h))if(!we&&this._multiple&&65===w&&h.ctrlKey){h.preventDefault();const en=this.options.some(Yn=>!Yn.disabled&&!Yn.selected);this.options.forEach(Yn=>{Yn.disabled||(en?Yn.select():Yn.deselect())})}else{const en=b.activeItemIndex;b.onKeydown(h),this._multiple&&G&&h.shiftKey&&b.activeItem&&b.activeItemIndex!==en&&b.activeItem._selectViaInteraction()}else h.preventDefault(),b.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,gr.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(h){if(this.options.forEach(b=>b.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&h)Array.isArray(h),h.forEach(b=>this._selectOptionByValue(b)),this._sortValues();else{const b=this._selectOptionByValue(h);b?this._keyManager.updateActiveItem(b):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(h){const b=this.options.find(w=>{if(this._selectionModel.isSelected(w))return!1;try{return null!=w.value&&this._compareWith(w.value,h)}catch{return!1}});return b&&this._selectionModel.select(b),b}_assignValue(h){return!!(h!==this._value||this._multiple&&Array.isArray(h))&&(this.options&&this._setSelectionByValue(h),this._value=h,!0)}_skipPredicate(h){return h.disabled}_initKeyManager(){this._keyManager=new pc(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const h=(0,M1.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,yi.Q)(h)).subscribe(b=>{this._onSelect(b.source,b.isUserInput),b.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,M1.h)(...this.options.map(b=>b._stateChanges)).pipe((0,yi.Q)(h)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(h,b){const w=this._selectionModel.isSelected(h);null!=h.value||this._multiple?(w!==h.selected&&(h.selected?this._selectionModel.select(h):this._selectionModel.deselect(h)),b&&this._keyManager.setActiveItem(h),this.multiple&&(this._sortValues(),b&&this.focus())):(h.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(h.value)),w!==this._selectionModel.isSelected(h)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const h=this.options.toArray();this._selectionModel.sort((b,w)=>this.sortComparator?this.sortComparator(b,w,h):h.indexOf(b)-h.indexOf(w)),this.stateChanges.next()}}_propagateChanges(h){let b=null;b=this.multiple?this.selected.map(w=>w.value):this.selected?this.selected.value:h,this._value=b,this.valueChange.emit(b),this._onChange(b),this.selectionChange.emit(this._getChangeEvent(b)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let h=-1;for(let b=0;b0}focus(h){this._elementRef.nativeElement.focus(h)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const h=this._parentFormField?.getLabelId();return this.ariaLabelledby?(h?h+" ":"")+this.ariaLabelledby:h}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const h=this._parentFormField?.getLabelId();let b=(h?h+" ":"")+this._valueId;return this.ariaLabelledby&&(b+=" "+this.ariaLabelledby),b}_panelDoneAnimating(h){this.openedChange.emit(h)}setDescribedByIds(h){h.length?this._elementRef.nativeElement.setAttribute("aria-describedby",h.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(Jh),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(ac),o.rXU(o.aKT),o.rXU(bl,8),o.rXU(V.cV,8),o.rXU(V.j4,8),o.rXU(fs,8),o.rXU(V.vO,10),o.kS0("tabindex"),o.rXU(hf),o.rXU(wu),o.rXU(eg,8))};static#t=this.\u0275dir=o.FsC({type:E,viewQuery:function(b,w){if(1&b&&(o.GBs(Em,5),o.GBs(H2,5),o.GBs(r6,5)),2&b){let G;o.mGM(G=o.lsd())&&(w.trigger=G.first),o.mGM(G=o.lsd())&&(w.panel=G.first),o.mGM(G=o.lsd())&&(w._overlayDir=G.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.Vt3,o.OA$]})}return E})(),$3=(()=>{class E extends Tm{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=h=>!this.panelOpen&&h.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,yi.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(h){const b=this.options.toArray()[h];if(b){const w=this.panel.nativeElement,G=function ld(E,O,h){if(h.length){let b=O.toArray(),w=h.toArray(),G=0;for(let we=0;weh+b?Math.max(0,E-b+O):h}(we.offsetTop,we.offsetHeight,w.scrollTop,w.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(h){return new r4(this,h)}_getOverlayWidth(h){return"auto"===this.panelWidth?(h instanceof uf?h.elementRef:h||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(h){this._hideSingleSelectionIndicator=Kn(h),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const h of this.options)h._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-select"]],contentQueries:function(b,w,G){if(1&b&&(o.wni(G,u6,5),o.wni(G,au,5),o.wni(G,Cl,5)),2&b){let we;o.mGM(we=o.lsd())&&(w.customTrigger=we.first),o.mGM(we=o.lsd())&&(w.options=we),o.mGM(we=o.lsd())&&(w.optionGroups=we)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(b,w){1&b&&o.bIt("keydown",function(we){return w._handleKeydown(we)})("focus",function(){return w._onFocus()})("blur",function(){return w._onBlur()}),2&b&&(o.BMQ("id",w.id)("tabindex",w.tabIndex)("aria-controls",w.panelOpen?w.id+"-panel":null)("aria-expanded",w.panelOpen)("aria-label",w.ariaLabel||null)("aria-required",w.required.toString())("aria-disabled",w.disabled.toString())("aria-invalid",w.errorState)("aria-activedescendant",w._getAriaActiveDescendant()),o.AVh("mat-mdc-select-disabled",w.disabled)("mat-mdc-select-invalid",w.errorState)("mat-mdc-select-required",w.required)("mat-mdc-select-empty",w.empty)("mat-mdc-select-multiple",w.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[o.Jv_([{provide:ri,useExisting:E},{provide:cd,useExisting:E}]),o.Vt3],ngContentSelectors:Q7,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(b,w){if(1&b&&(o.NAR(Y7),o.j41(0,"div",0,1),o.bIt("click",function(){return w.toggle()}),o.j41(3,"div",2),o.DNE(4,n4,2,1,"span",3),o.DNE(5,ff,3,2,"span",4),o.k0s(),o.j41(6,"div",5)(7,"div",6),o.qSk(),o.j41(8,"svg",7),o.nrm(9,"path",8),o.k0s()()()(),o.DNE(10,K7,3,9,"ng-template",9),o.bIt("backdropClick",function(){return w.close()})("attach",function(){return w._onAttached()})("detach",function(){return w.close()})),2&b){const G=o.sdS(1);o.R7$(3),o.Y8G("ngSwitch",w.empty),o.BMQ("id",w._valueId),o.R7$(1),o.Y8G("ngSwitchCase",!0),o.R7$(1),o.Y8G("ngSwitchCase",!1),o.R7$(5),o.Y8G("cdkConnectedOverlayPanelClass",w._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",w._scrollStrategy)("cdkConnectedOverlayOrigin",w._preferredOverlayOrigin||G)("cdkConnectedOverlayOpen",w.panelOpen)("cdkConnectedOverlayPositions",w._positions)("cdkConnectedOverlayWidth",w._overlayWidth)}},dependencies:[g.YU,g.ux,g.e1,g.fG,r6,uf],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[J7.transformPanel]},changeDetection:0})}return E})(),ey=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[tg],imports:[g.MD,s6,w1,Pn,Z0,ec,w1,Pn]})}return E})();var U3=F(6897);const ng=["mat-button",""],Vm=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Am=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Pu=["mat-icon-button",""],f6=["*"],L2=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],sg=xr(Ds(ko(class{constructor(E){this._elementRef=E}})));let z4=(()=>{class E extends sg{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(h){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,h)}get disableRipple(){return this._disableRipple}set disableRipple(h){this._disableRipple=Kn(h),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(h){this._disabled=Kn(h),this._updateRippleDisabled()}constructor(h,b,w,G){super(h),this._platform=b,this._ngZone=w,this._animationMode=G,this._focusMonitor=(0,o.WQX)(fa),this._rippleLoader=(0,o.WQX)(ue),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const we=h.nativeElement.classList;for(const en of L2)this._hasHostAttributes(en.selector)&&en.mdcClasses.forEach(Yn=>{we.add(Yn)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(h="program",b){h?this._focusMonitor.focusVia(this._elementRef.nativeElement,h,b):this._elementRef.nativeElement.focus(b)}_hasHostAttributes(...h){return h.some(b=>this._elementRef.nativeElement.hasAttribute(b))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,features:[o.Vt3]})}return E})(),hu=(()=>{class E extends z4{constructor(h,b,w,G){super(h,b,w,G)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(De),o.rXU(o.SKi),o.rXU(o.bc$,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(b,w){2&b&&(o.BMQ("disabled",w.disabled||null),o.AVh("_mat-animation-noopable","NoopAnimations"===w._animationMode)("mat-unthemed",!w.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.Vt3],attrs:ng,ngContentSelectors:Am,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(b,w){1&b&&(o.NAR(Vm),o.nrm(0,"span",0),o.SdG(1),o.j41(2,"span",1),o.SdG(3,1),o.k0s(),o.SdG(4,2),o.nrm(5,"span",2)(6,"span",3)),2&b&&o.AVh("mdc-button__ripple",!w._isFab)("mdc-fab__ripple",w._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return E})(),Lm=(()=>{class E extends z4{constructor(h,b,w,G){super(h,b,w,G),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(De),o.rXU(o.SKi),o.rXU(o.bc$,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(b,w){2&b&&(o.BMQ("disabled",w.disabled||null),o.AVh("_mat-animation-noopable","NoopAnimations"===w._animationMode)("mat-unthemed",!w.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.Vt3],attrs:Pu,ngContentSelectors:f6,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(b,w){1&b&&(o.NAR(),o.nrm(0,"span",0),o.SdG(1),o.nrm(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return E})(),G3=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,x1,Pn]})}return E})();const P4=["input"],zm=["*"];let g6=0;class v6{constructor(O,h){this.source=O,this.value=h}}const gd={provide:V.kq,useExisting:(0,o.Rfq)(()=>B4),multi:!0},Rm=new o.nKC("MatRadioGroup"),cg=new o.nKC("mat-radio-default-options",{providedIn:"root",factory:function lg(){return{color:"accent"}}});let j4=(()=>{class E{get name(){return this._name}set name(h){this._name=h,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(h){this._labelPosition="before"===h?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(h){this._value!==h&&(this._value=h,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(h){this._selected=h,this.value=h?h.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(h){this._disabled=Kn(h),this._markRadiosForCheck()}get required(){return this._required}set required(h){this._required=Kn(h),this._markRadiosForCheck()}constructor(h){this._changeDetector=h,this._value=null,this._name="mat-radio-group-"+g6++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new o.bkB}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(h=>h===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(h=>{h.name=this.name,h._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(b=>{b.checked=this.value===b.value,b.checked&&(this._selected=b)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new v6(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(h=>h._markForCheck())}writeValue(h){this.value=h,this._changeDetector.markForCheck()}registerOnChange(h){this._controlValueAccessorChangeFn=h}registerOnTouched(h){this.onTouched=h}setDisabledState(h){this.disabled=h,this._changeDetector.markForCheck()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.gRc))};static#t=this.\u0275dir=o.FsC({type:E,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return E})();class ug{constructor(O){this._elementRef=O}}const ju=ko(ms(ug));let F4=(()=>{class E extends ju{get checked(){return this._checked}set checked(h){const b=Kn(h);this._checked!==b&&(this._checked=b,b&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!b&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),b&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(h){this._value!==h&&(this._value=h,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===h),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(h){this._labelPosition=h}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(h){this._setDisabled(Kn(h))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(h){this._required=Kn(h)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(h){this._color=h}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(h,b,w,G,we,en,Yn,ki){super(b),this._changeDetector=w,this._focusMonitor=G,this._radioDispatcher=we,this._providerOverride=Yn,this._uniqueId="mat-radio-"+ ++g6,this.id=this._uniqueId,this.change=new o.bkB,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=h,this._noopAnimations="NoopAnimations"===en,ki&&(this.tabIndex=ar(ki,0))}focus(h,b){b?this._focusMonitor.focusVia(this._inputElement,b,h):this._inputElement.nativeElement.focus(h)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((h,b)=>{h!==this.id&&b===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(h=>{!h&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new v6(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(h){h.stopPropagation()}_onInputInteraction(h){if(h.stopPropagation(),!this.checked&&!this.disabled){const b=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),b&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(h){this._onInputInteraction(h),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(h){this._disabled!==h&&(this._disabled=h,this._changeDetector.markForCheck())}_updateTabIndex(){const h=this.radioGroup;let b;if(b=h&&h.selected&&!this.disabled?h.selected===this?this.tabIndex:-1:this.tabIndex,b!==this._previousTabIndex){const w=this._inputElement?.nativeElement;w&&(w.setAttribute("tabindex",b+""),this._previousTabIndex=b)}}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,viewQuery:function(b,w){if(1&b&&o.GBs(P4,5),2&b){let G;o.mGM(G=o.lsd())&&(w._inputElement=G.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[o.Vt3]})}return E})(),B4=(()=>{class E extends j4{static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275dir=o.FsC({type:E,selectors:[["mat-radio-group"]],contentQueries:function(b,w,G){if(1&b&&o.wni(G,Nm,5),2&b){let we;o.mGM(we=o.lsd())&&(w._radios=we)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],exportAs:["matRadioGroup"],features:[o.Jv_([gd,{provide:Rm,useExisting:E}]),o.Vt3]})}return E})(),Nm=(()=>{class E extends F4{constructor(h,b,w,G,we,en,Yn,ki){super(h,b,w,G,we,en,Yn,ki)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(Rm,8),o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(fa),o.rXU(X7),o.rXU(o.bc$,8),o.rXU(cg,8),o.kS0("tabindex"))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(b,w){1&b&&o.bIt("focus",function(){return w._inputElement.nativeElement.focus()}),2&b&&(o.BMQ("id",w.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),o.AVh("mat-primary","primary"===w.color)("mat-accent","accent"===w.color)("mat-warn","warn"===w.color)("mat-mdc-radio-checked",w.checked)("_mat-animation-noopable",w._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[o.Vt3],ngContentSelectors:zm,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(b,w){if(1&b&&(o.NAR(),o.j41(0,"div",0,1)(2,"div",2)(3,"div",3),o.bIt("click",function(we){return w._onTouchTargetClick(we)}),o.k0s(),o.j41(4,"input",4,5),o.bIt("change",function(we){return w._onInputInteraction(we)}),o.k0s(),o.j41(6,"div",6),o.nrm(7,"div",7)(8,"div",8),o.k0s(),o.j41(9,"div",9),o.nrm(10,"div",10),o.k0s()(),o.j41(11,"label",11),o.SdG(12),o.k0s()()),2&b){const G=o.sdS(1);o.AVh("mdc-form-field--align-end","before"==w.labelPosition),o.R7$(2),o.AVh("mdc-radio--disabled",w.disabled),o.R7$(2),o.Y8G("id",w.inputId)("checked",w.checked)("disabled",w.disabled)("required",w.required),o.BMQ("name",w.name)("value",w.value)("aria-label",w.ariaLabel)("aria-labelledby",w.ariaLabelledby)("aria-describedby",w.ariaDescribedby),o.R7$(5),o.Y8G("matRippleTrigger",G)("matRippleDisabled",w._isRippleDisabled())("matRippleCentered",!0),o.R7$(2),o.Y8G("for",w.inputId)}},dependencies:[Pl],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{--mdc-radio-disabled-selected-icon-opacity:0.38;--mdc-radio-disabled-unselected-icon-opacity:0.38;--mdc-radio-state-layer-size:40px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}return E})(),_6=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,g.MD,x1,Pn]})}return E})();const dg=["knob"],fg=["valueIndicatorContainer"];function b6(E,O){if(1&E&&(o.j41(0,"div",4,5)(2,"div",6)(3,"span",7),o.EFF(4),o.k0s()()()),2&E){const h=o.XpG();o.R7$(4),o.JRh(h.valueIndicatorText)}}const Pm=["trackActive"];function hg(E,O){if(1&E&&o.nrm(0,"div"),2&E){const h=O.$implicit,b=O.index,w=o.XpG(3);o.HbH(0===h?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),o.xc7("transform",w._calcTickMarkTransform(b))}}function y6(E,O){if(1&E&&(o.qex(0),o.DNE(1,hg,1,4,"div",11),o.bVm()),2&E){const h=o.XpG(2);o.R7$(1),o.Y8G("ngForOf",h._tickMarks)}}function C6(E,O){if(1&E&&(o.j41(0,"div",8,9),o.DNE(2,y6,2,1,"ng-container",10),o.k0s()),2&E){const h=o.XpG();o.R7$(2),o.Y8G("ngIf",h._cachedWidth)}}function pg(E,O){if(1&E&&o.nrm(0,"mat-slider-visual-thumb",7),2&E){const h=o.XpG();o.Y8G("discrete",h.discrete)("thumbPosition",1)("valueIndicatorText",h.startValueIndicatorText)}}const W3=["*"],c2=new o.nKC("_MatSlider"),$4=new o.nKC("_MatSliderThumb"),x6=new o.nKC("_MatSliderRangeThumb"),q3=new o.nKC("_MatSliderVisualThumb");let ry=(()=>{class E{constructor(h,b,w,G){this._cdr=h,this._ngZone=b,this._slider=G,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._onPointerMove=we=>{if(this._sliderInput._isFocused)return;const en=this._hostElement.getBoundingClientRect(),Yn=this._slider._isCursorOnSliderThumb(we,en);this._isHovered=Yn,Yn?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=we=>{0===we.button&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef)},this._hostElement=w.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const h=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{h.addEventListener("pointermove",this._onPointerMove),h.addEventListener("pointerdown",this._onDragStart),h.addEventListener("pointerup",this._onDragEnd),h.addEventListener("pointerleave",this._onMouseLeave),h.addEventListener("focus",this._onFocus),h.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const h=this._sliderInputEl;h.removeEventListener("pointermove",this._onPointerMove),h.removeEventListener("pointerdown",this._onDragStart),h.removeEventListener("pointerup",this._onDragEnd),h.removeEventListener("pointerleave",this._onMouseLeave),h.removeEventListener("focus",this._onFocus),h.removeEventListener("blur",this._onBlur)}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(h){return 0===h?.state||1===h?.state}_showRipple(h,b){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(1===this.thumbPosition?2:1)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||b))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:h,centered:!0,persistent:!0})}_hideRipple(h){if(h?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const b=this._getSibling();b._isShowingAnyRipple()||(this._hideValueIndicator(),b._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(1===this.thumbPosition?2:1)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(o.aKT),o.rXU(c2))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(b,w){if(1&b&&(o.GBs(Pl,5),o.GBs(dg,5),o.GBs(fg,5)),2&b){let G;o.mGM(G=o.lsd())&&(w._ripple=G.first),o.mGM(G=o.lsd())&&(w._knob=G.first),o.mGM(G=o.lsd())&&(w._valueIndicatorContainer=G.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[o.Jv_([{provide:q3,useExisting:E}])],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container",4,"ngIf"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(b,w){1&b&&(o.DNE(0,b6,5,1,"div",0),o.nrm(1,"div",1,2)(3,"div",3)),2&b&&(o.Y8G("ngIf",w.discrete),o.R7$(3),o.Y8G("matRippleDisabled",!0))},dependencies:[g.bT,Pl],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}return E})();const z2=xr(ko(class{constructor(E){this._elementRef=E}}),"primary");let mg=(()=>{class E extends z2{get disabled(){return this._disabled}set disabled(h){this._disabled=Kn(h);const b=this._getInput(2),w=this._getInput(1);b&&(b.disabled=this._disabled),w&&(w.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(h){this._discrete=Kn(h),this._updateValueIndicatorUIs()}get showTickMarks(){return this._showTickMarks}set showTickMarks(h){this._showTickMarks=Kn(h)}get min(){return this._min}set min(h){const b=ar(h,this._min);this._min!==b&&this._updateMin(b)}_updateMin(h){const b=this._min;this._min=h,this._isRange?this._updateMinRange({old:b,new:h}):this._updateMinNonRange(h),this._onMinMaxOrStepChange()}_updateMinRange(h){const b=this._getInput(2),w=this._getInput(1),G=b.value,we=w.value;w.min=h.new,b.min=Math.max(h.new,w.value),w.max=Math.min(b.max,b.value),w._updateWidthInactive(),b._updateWidthInactive(),h.newh.old?this._onTranslateXChangeBySideEffect(w,b):this._onTranslateXChangeBySideEffect(b,w),G!==b.value&&this._onValueChange(b),we!==w.value&&this._onValueChange(w)}_updateMaxNonRange(h){const b=this._getInput(2);if(b){const w=b.value;b.max=h,b._updateThumbUIByValue(),this._updateTrackUI(b),w!==b.value&&this._onValueChange(b)}}get step(){return this._step}set step(h){const b=ar(h,this._step);this._step!==b&&this._updateStep(b)}_updateStep(h){this._step=h,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const h=this._getInput(2),b=this._getInput(1),w=h.value,G=b.value,we=b.value;h.min=this._min,b.max=this._max,h.step=this._step,b.step=this._step,this._platform.SAFARI&&(h.value=h.value,b.value=b.value),h.min=Math.max(this._min,b.value),b.max=Math.min(this._max,h.value),b._updateWidthInactive(),h._updateWidthInactive(),h.value`${Yn}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=(0,o.WQX)(De),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===en,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const h=this._getInput(2),b=this._getInput(1);this._isRange=!!h&&!!b,this._cdr.detectChanges();const w=this._getThumb(2);this._rippleRadius=w._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._inputOffset=this._knobRadius,this._isRange?this._initUIRange(h,b):this._initUINonRange(h),this._updateTrackUI(h),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(h){h.initProps(),h.initUI(),this._updateValueIndicatorUI(h),this._hasViewInitialized=!0,h._updateThumbUIByValue()}_initUIRange(h,b){h.initProps(),h.initUI(),b.initProps(),b.initUI(),h._updateMinMax(),b._updateMinMax(),h._updateStaticStyles(),b._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,h._updateThumbUIByValue(),b._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const h=this._getInput(2),b=this._getInput(1);h._setIsLeftThumb(),b._setIsLeftThumb(),h.translateX=h._calcTranslateXByValue(),b.translateX=b._calcTranslateXByValue(),h._updateStaticStyles(),b._updateStaticStyles(),h._updateWidthInactive(),b._updateWidthInactive(),h._updateThumbUIByValue(),b._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(2)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive}_getValue(h=2){const b=this._getInput(h);return b?b.value:this.min}_skipUpdate(){return!(!this._getInput(1)?._skipUIUpdate&&!this._getInput(2)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(h){const b=this._trackActive.nativeElement.style;b.left=h.left,b.right=h.right,b.transformOrigin=h.transformOrigin,b.transform=h.transform}_calcTickMarkTransform(h){return`translateX(${h*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(h){this._hasViewInitialized&&(this._updateThumbUI(h),this._updateTrackUI(h),this._updateOverlappingThumbUI(h))}_onTranslateXChangeBySideEffect(h,b){this._hasViewInitialized&&(h._updateThumbUIByValue(),b._updateThumbUIByValue())}_onValueChange(h){this._hasViewInitialized&&(this._updateValueIndicatorUI(h),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const h=this._getInput(2),b=this._getInput(1);h._updateThumbUIByValue(),b._updateThumbUIByValue(),h._updateStaticStyles(),b._updateStaticStyles(),h._updateMinMax(),b._updateMinMax(),h._updateWidthInactive(),b._updateWidthInactive()}else{const h=this._getInput(2);h&&h._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const h=this._getInput(1),b=this._getInput(2);return!(!h||!b)&&b.translateX-h.translateX<20}_updateOverlappingThumbClassNames(h){const b=h.getSibling(),w=this._getThumb(h.thumbPosition);this._getThumb(b.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),w._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(h){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(h))}_updateThumbUI(h){this._skipUpdate()||(this._getThumb(2===h.thumbPosition?2:1)._hostElement.style.transform=`translateX(${h.translateX}px)`)}_updateValueIndicatorUI(h){if(this._skipUpdate())return;const b=this.displayWith(h.value);if(this._hasViewInitialized?h._valuetext=b:h._hostElement.setAttribute("aria-valuetext",b),this.discrete){1===h.thumbPosition?this.startValueIndicatorText=b:this.endValueIndicatorText=b;const w=this._getThumb(h.thumbPosition);b.length<3?w._hostElement.classList.add("mdc-slider__thumb--short-value"):w._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const h=this._getInput(2),b=this._getInput(1);h&&this._updateValueIndicatorUI(h),b&&this._updateValueIndicatorUI(b)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const h=this._step&&this._step>0?this._step:1,w=(Math.floor(this.max/h)*h-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*w-6}_updateTrackUI(h){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(h):this._updateTrackUINonRange(h))}_updateTrackUIRange(h){const b=h.getSibling();if(!b||!this._cachedWidth)return;const w=Math.abs(b.translateX-h.translateX)/this._cachedWidth;this._setTrackActiveStyles(h._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-b.translateX+"px",transformOrigin:"right",transform:`scaleX(${w})`}:{left:`${b.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${w})`})}_updateTrackUINonRange(h){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-h.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${h.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const h=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(h):this._updateTickMarkUINonRange(h),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(h){const b=this._getValue();let w=Math.max(Math.round((b-this.min)/h),0),G=Math.max(Math.round((this.max-b)/h),0);this._isRtl?w++:G++,this._tickMarks=Array(w).fill(0).concat(Array(G).fill(1))}_updateTickMarkUIRange(h){const b=this._getValue(),w=this._getValue(1),G=Math.max(Math.floor((w-this.min)/h),0),we=Math.max(Math.floor((b-w)/h)+1,0),en=Math.max(Math.floor((this.max-b)/h),0);this._tickMarks=Array(G).fill(1).concat(Array(we).fill(0),Array(en).fill(1))}_getInput(h){return 2===h&&this._input?this._input:this._inputs?.length?1===h?this._inputs.first:this._inputs.last:void 0}_getThumb(h){return 2===h?this._thumbs?.last:this._thumbs?.first}_setTransition(h){this._hasAnimation=!this._platform.IOS&&h&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(h,b){const w=b.width/2,Yn=h.clientY-(b.y+w);return Math.pow(h.clientX-(b.x+w),2)+Math.pow(Yn,2)gf),multi:!0};let gf=(()=>{class E{get value(){return ar(this._hostElement.value)}set value(h){const b=ar(h).toString();this._hasSetInitialValue?this._isActive||(this._hostElement.value=b,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()):this._initialValue=b}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=0,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(h){this._translateX=h}get min(){return ar(this._hostElement.min)}set min(h){this._hostElement.min=ar(h).toString(),this._cdr.detectChanges()}get max(){return ar(this._hostElement.max)}set max(h){this._hostElement.max=ar(h).toString(),this._cdr.detectChanges()}get step(){return ar(this._hostElement.step)}set step(h){this._hostElement.step=ar(h).toString(),this._cdr.detectChanges()}get disabled(){return Kn(this._hostElement.disabled)}set disabled(h){this._hostElement.disabled=Kn(h),this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(h){this._isFocused=h}constructor(h,b,w,G){this._ngZone=h,this._elementRef=b,this._cdr=w,this._slider=G,this.valueChange=new o.bkB,this.dragStart=new o.bkB,this.dragEnd=new o.bkB,this.thumbPosition=2,this._knobRadius=8,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new Se.B,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=(0,o.WQX)(De),this._hostElement=b.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(h){if(!this.disabled&&0===h.button){if(this._platform.IOS){const b=this._slider._isCursorOnSliderThumb(h,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());return this._isActive=b,this._updateWidthActive(),void this._slider._updateDimensions()}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(h,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(h),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(h){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(h)},0)}_fixValue(h){const b=h.clientX-this._slider._cachedLeft,w=this._slider._cachedWidth,G=0===this._slider.step?1:this._slider.step,we=Math.floor((this._slider.max-this._slider.min)/G),ki=Math.round((this._slider._isRtl?1-b/w:b/w)*we)/we*(this._slider.max-this._slider.min)+this._slider.min,Ai=Math.round(ki/G)*G;if(Ai===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(h,{withAnimation:this._slider._hasAnimation}));this.value=Ai,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(h,{withAnimation:this._slider._hasAnimation})}_onPointerMove(h){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(h)}_onPointerUp(){this._isActive&&(this._isActive=!1,this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(h){return Math.max(Math.min(h,this._slider._cachedWidth),0)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*this._slider._cachedWidth:this.percentage*this._slider._cachedWidth}_calcTranslateXByPointerEvent(h){return h.clientX-this._slider._cachedLeft}_updateWidthActive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding}px)`}_updateWidthInactive(){this._hostElement.style.padding="0px",this._hostElement.style.width="calc(100% + 48px)",this._hostElement.style.left="-24px"}_updateThumbUIByValue(h){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(h)}_updateThumbUIByPointerEvent(h,b){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(h)),this._updateThumbUI(b)}_updateThumbUI(h){this._slider._setTransition(!!h?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(h){(this._isControlInitialized||null!==h)&&(this.value=h)}registerOnChange(h){this._onChangeFn=h,this._isControlInitialized=!0}registerOnTouched(h){this._onTouchedFn=h}setDisabledState(h){this.disabled=h}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.SKi),o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(c2))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(b,w){1&b&&o.bIt("change",function(){return w._onChange()})("input",function(){return w._onInput()})("blur",function(){return w._onBlur()})("focus",function(){return w._onFocus()}),2&b&&o.BMQ("aria-valuetext",w._valuetext)},inputs:{value:"value"},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[o.Jv_([sy,{provide:$4,useExisting:E}])]})}return E})(),vg=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[Pn,g.MD,x1]})}return E})();const _g=["switch"];function bg(E,O){1&E&&(o.j41(0,"div",12),o.qSk(),o.j41(1,"svg",13),o.nrm(2,"path",14),o.k0s(),o.j41(3,"svg",15),o.nrm(4,"path",16),o.k0s()())}const Fm=["*"],Bu=new o.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),Bm={provide:V.kq,useExisting:(0,o.Rfq)(()=>M6),multi:!0};class vf{constructor(O,h){this.source=O,this.checked=h}}let $m=0;const s4=ms(xr(ko(Ds(class{constructor(E){this._elementRef=E}}))));let Um=(()=>{class E extends s4{get required(){return this._required}set required(h){this._required=Kn(h)}get checked(){return this._checked}set checked(h){this._checked=Kn(h),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(h){this._hideIcon=Kn(h)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(h,b,w,G,we,en,Yn){super(h),this._focusMonitor=b,this._changeDetectorRef=w,this.defaults=we,this._onChange=ki=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new o.bkB,this.toggleChange=new o.bkB,this.tabIndex=parseInt(G)||0,this.color=this.defaultColor=we.color||"accent",this._noopAnimations="NoopAnimations"===en,this.id=this._uniqueId=`${Yn}${++$m}`,this._hideIcon=we.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(h=>{"keyboard"===h||"program"===h?(this._focused=!0,this._changeDetectorRef.markForCheck()):h||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(h){this.checked=!!h}registerOnChange(h){this._onChange=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275dir=o.FsC({type:E,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[o.Vt3]})}return E})(),M6=(()=>{class E extends Um{get buttonId(){return`${this.id||this._uniqueId}-button`}constructor(h,b,w,G,we,en){super(h,b,w,G,we,en,"mat-mdc-slide-toggle-"),this._labelId=this._uniqueId+"-label"}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new vf(this,this.checked)))}focus(){this._switchElement.nativeElement.focus()}_createChangeEvent(h){return new vf(this,h)}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(fa),o.rXU(o.gRc),o.kS0("tabindex"),o.rXU(Bu),o.rXU(o.bc$,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-slide-toggle"]],viewQuery:function(b,w){if(1&b&&o.GBs(_g,5),2&b){let G;o.mGM(G=o.lsd())&&(w._switchElement=G.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:11,hostBindings:function(b,w){2&b&&(o.Mr5("id",w.id),o.BMQ("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),o.AVh("mat-mdc-slide-toggle-focused",w._focused)("mat-mdc-slide-toggle-checked",w.checked)("_mat-animation-noopable",w._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[o.Jv_([Bm]),o.Vt3],ngContentSelectors:Fm,decls:13,vars:25,consts:[[1,"mdc-form-field"],["role","switch","type","button",1,"mdc-switch",3,"tabIndex","disabled","click"],["switch",""],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],["class","mdc-switch__icons",4,"ngIf"],[1,"mdc-label",3,"for","click"],[1,"mdc-switch__icons"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(b,w){if(1&b&&(o.NAR(),o.j41(0,"div",0)(1,"button",1,2),o.bIt("click",function(){return w._handleClick()}),o.nrm(3,"div",3),o.j41(4,"div",4)(5,"div",5)(6,"div",6),o.nrm(7,"div",7),o.k0s(),o.j41(8,"div",8),o.nrm(9,"div",9),o.k0s(),o.DNE(10,bg,5,0,"div",10),o.k0s()()(),o.j41(11,"label",11),o.bIt("click",function(we){return we.stopPropagation()}),o.SdG(12),o.k0s()()),2&b){const G=o.sdS(2);o.AVh("mdc-form-field--align-end","before"==w.labelPosition),o.R7$(1),o.AVh("mdc-switch--selected",w.checked)("mdc-switch--unselected",!w.checked)("mdc-switch--checked",w.checked)("mdc-switch--disabled",w.disabled),o.Y8G("tabIndex",w.tabIndex)("disabled",w.disabled),o.BMQ("id",w.buttonId)("name",w.name)("aria-label",w.ariaLabel)("aria-labelledby",w._getAriaLabelledBy())("aria-describedby",w.ariaDescribedby)("aria-required",w.required||null)("aria-checked",w.checked),o.R7$(8),o.Y8G("matRippleTrigger",G)("matRippleDisabled",w.disableRipple||w.disabled)("matRippleCentered",!0),o.R7$(1),o.Y8G("ngIf",!w.hideIcon),o.R7$(1),o.Y8G("for",w.buttonId),o.BMQ("id",w._labelId)}},dependencies:[Pl,g.bT],styles:['.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mdc-switch{width:var(--mdc-switch-track-width);--mdc-switch-disabled-handle-opacity:0.38;--mdc-switch-disabled-selected-icon-opacity:0.38;--mdc-switch-disabled-track-opacity:0.12;--mdc-switch-disabled-unselected-icon-opacity:0.38;--mdc-switch-handle-height:20px;--mdc-switch-handle-shape:10px;--mdc-switch-handle-width:20px;--mdc-switch-selected-icon-size:18px;--mdc-switch-track-height:14px;--mdc-switch-track-shape:7px;--mdc-switch-track-width:36px;--mdc-switch-unselected-icon-size:18px;--mdc-switch-state-layer-size:40px;--mdc-switch-selected-focus-state-layer-opacity:0.12;--mdc-switch-selected-hover-state-layer-opacity:0.04;--mdc-switch-selected-pressed-state-layer-opacity:0.1;--mdc-switch-unselected-focus-state-layer-opacity:0.12;--mdc-switch-unselected-hover-state-layer-opacity:0.04;--mdc-switch-unselected-pressed-state-layer-opacity:0.1}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch:disabled .mdc-switch__handle::after{opacity:var(--mdc-switch-disabled-handle-opacity)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle .mdc-label{font-family:var(--mat-slide-toggle-label-text-font);font-size:var(--mat-slide-toggle-label-text-size);letter-spacing:var(--mat-slide-toggle-label-text-tracking);line-height:var(--mat-slide-toggle-label-text-line-height);font-weight:var(--mat-slide-toggle-label-text-weight)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}'],encapsulation:2,changeDetection:0})}return E})(),qm=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({})}return E})(),S6=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({imports:[qm,Pn,x1,g.MD,qm,Pn]})}return E})();const k6=["mat-calendar-body",""];function yg(E,O){if(1&E&&(o.j41(0,"tr",3)(1,"td",4),o.EFF(2),o.k0s()()),2&E){const h=o.XpG();o.R7$(1),o.xc7("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),o.BMQ("colspan",h.numCols),o.R7$(1),o.SpI(" ",h.label," ")}}function E6(E,O){if(1&E&&(o.j41(0,"td",4),o.EFF(1),o.k0s()),2&E){const h=o.XpG(2);o.xc7("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),o.BMQ("colspan",h._firstRowOffset),o.R7$(1),o.SpI(" ",h._firstRowOffset>=h.labelMinRequiredCells?h.label:""," ")}}function Cg(E,O){if(1&E){const h=o.RV6();o.j41(0,"td",8)(1,"button",9),o.bIt("click",function(w){const we=o.eBV(h).$implicit,en=o.XpG(2);return o.Njj(en._cellClicked(we,w))})("focus",function(w){const we=o.eBV(h).$implicit,en=o.XpG(2);return o.Njj(en._emitActiveDateChange(we,w))}),o.j41(2,"span",10),o.EFF(3),o.k0s(),o.nrm(4,"span",11),o.k0s()()}if(2&E){const h=O.$implicit,b=O.index,w=o.XpG().index,G=o.XpG();o.xc7("width",G._cellWidth)("padding-top",G._cellPadding)("padding-bottom",G._cellPadding),o.BMQ("data-mat-row",w)("data-mat-col",b),o.R7$(1),o.AVh("mat-calendar-body-disabled",!h.enabled)("mat-calendar-body-active",G._isActiveCell(w,b))("mat-calendar-body-range-start",G._isRangeStart(h.compareValue))("mat-calendar-body-range-end",G._isRangeEnd(h.compareValue))("mat-calendar-body-in-range",G._isInRange(h.compareValue))("mat-calendar-body-comparison-bridge-start",G._isComparisonBridgeStart(h.compareValue,w,b))("mat-calendar-body-comparison-bridge-end",G._isComparisonBridgeEnd(h.compareValue,w,b))("mat-calendar-body-comparison-start",G._isComparisonStart(h.compareValue))("mat-calendar-body-comparison-end",G._isComparisonEnd(h.compareValue))("mat-calendar-body-in-comparison-range",G._isInComparisonRange(h.compareValue))("mat-calendar-body-preview-start",G._isPreviewStart(h.compareValue))("mat-calendar-body-preview-end",G._isPreviewEnd(h.compareValue))("mat-calendar-body-in-preview",G._isInPreview(h.compareValue)),o.Y8G("ngClass",h.cssClasses)("tabindex",G._isActiveCell(w,b)?0:-1),o.BMQ("aria-label",h.ariaLabel)("aria-disabled",!h.enabled||null)("aria-pressed",G._isSelected(h.compareValue))("aria-current",G.todayValue===h.compareValue?"date":null)("aria-describedby",G._getDescribedby(h.compareValue)),o.R7$(1),o.AVh("mat-calendar-body-selected",G._isSelected(h.compareValue))("mat-calendar-body-comparison-identical",G._isComparisonIdentical(h.compareValue))("mat-calendar-body-today",G.todayValue===h.compareValue),o.R7$(1),o.SpI(" ",h.displayValue," ")}}function xg(E,O){if(1&E&&(o.j41(0,"tr",5),o.DNE(1,E6,2,6,"td",6),o.DNE(2,Cg,5,48,"td",7),o.k0s()),2&E){const h=O.$implicit,b=O.index,w=o.XpG();o.R7$(1),o.Y8G("ngIf",0===b&&w._firstRowOffset),o.R7$(1),o.Y8G("ngForOf",h)}}function X3(E,O){if(1&E&&(o.j41(0,"th",5)(1,"span",6),o.EFF(2),o.k0s(),o.j41(3,"span",7),o.EFF(4),o.k0s()()),2&E){const h=O.$implicit;o.R7$(2),o.JRh(h.long),o.R7$(2),o.JRh(h.narrow)}}const U4=["*"];function D6(E,O){}function Xm(E,O){if(1&E){const h=o.RV6();o.j41(0,"mat-month-view",5),o.bIt("activeDateChange",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G.activeDate=w)})("_userSelection",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._dateSelected(w))})("dragStarted",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._dragStarted(w))})("dragEnded",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._dragEnded(w))}),o.k0s()}if(2&E){const h=o.XpG();o.Y8G("activeDate",h.activeDate)("selected",h.selected)("dateFilter",h.dateFilter)("maxDate",h.maxDate)("minDate",h.minDate)("dateClass",h.dateClass)("comparisonStart",h.comparisonStart)("comparisonEnd",h.comparisonEnd)("startDateAccessibleName",h.startDateAccessibleName)("endDateAccessibleName",h.endDateAccessibleName)("activeDrag",h._activeDrag)}}function T6(E,O){if(1&E){const h=o.RV6();o.j41(0,"mat-year-view",6),o.bIt("activeDateChange",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G.activeDate=w)})("monthSelected",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._monthSelectedInYearView(w))})("selectedChange",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._goToDateInView(w,"month"))}),o.k0s()}if(2&E){const h=o.XpG();o.Y8G("activeDate",h.activeDate)("selected",h.selected)("dateFilter",h.dateFilter)("maxDate",h.maxDate)("minDate",h.minDate)("dateClass",h.dateClass)}}function V6(E,O){if(1&E){const h=o.RV6();o.j41(0,"mat-multi-year-view",7),o.bIt("activeDateChange",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G.activeDate=w)})("yearSelected",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._yearSelectedInMultiYearView(w))})("selectedChange",function(w){o.eBV(h);const G=o.XpG();return o.Njj(G._goToDateInView(w,"year"))}),o.k0s()}if(2&E){const h=o.XpG();o.Y8G("activeDate",h.activeDate)("selected",h.selected)("dateFilter",h.dateFilter)("maxDate",h.maxDate)("minDate",h.minDate)("dateClass",h.dateClass)}}function wg(E,O){}const Km=["button"];function Ym(E,O){1&E&&(o.qSk(),o.j41(0,"svg",3),o.nrm(1,"path",4),o.k0s())}const _f=[[["","matDatepickerToggleIcon",""]]],mu=["[matDatepickerToggleIcon]"];let G4=(()=>{class E{constructor(){this.changes=new Se.B,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(h,b){return`${h} \u2013 ${b}`}formatYearRangeLabel(h,b){return`${h} to ${b}`}static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class R2{constructor(O,h,b,w,G={},we=O,en){this.value=O,this.displayValue=h,this.ariaLabel=b,this.enabled=w,this.cssClasses=G,this.compareValue=we,this.rawValue=en}}let Sg=1;const W4=ze({passive:!1,capture:!0}),N2=ze({passive:!0,capture:!0}),q4=ze({passive:!0});let vd=(()=>{class E{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(h,b){this._elementRef=h,this._ngZone=b,this._platform=(0,o.WQX)(De),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.bkB,this.previewChange=new o.bkB,this.activeDateChange=new o.bkB,this.dragStarted=new o.bkB,this.dragEnded=new o.bkB,this._didDragSinceMouseDown=!1,this._enterHandler=w=>{if(this._skipNextFocus&&"focus"===w.type)this._skipNextFocus=!1;else if(w.target&&this.isRange){const G=this._getCellFromElement(w.target);G&&this._ngZone.run(()=>this.previewChange.emit({value:G.enabled?G:null,event:w}))}},this._touchmoveHandler=w=>{if(!this.isRange)return;const G=Zm(w),we=G?this._getCellFromElement(G):null;G!==w.target&&(this._didDragSinceMouseDown=!0),l2(w.target)&&w.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:we?.enabled?we:null,event:w}))},this._leaveHandler=w=>{null!==this.previewEnd&&this.isRange&&("blur"!==w.type&&(this._didDragSinceMouseDown=!0),w.target&&this._getCellFromElement(w.target)&&(!w.relatedTarget||!this._getCellFromElement(w.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:w})))},this._mousedownHandler=w=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const G=w.target&&this._getCellFromElement(w.target);!G||!this._isInRange(G.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:G.rawValue,event:w})})},this._mouseupHandler=w=>{if(!this.isRange)return;const G=l2(w.target);G?G.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const we=this._getCellFromElement(G);this.dragEnded.emit({value:we?.rawValue??null,event:w})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:w})})},this._touchendHandler=w=>{const G=Zm(w);G&&this._mouseupHandler({target:G})},this._id="mat-calendar-body-"+Sg++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,b.runOutsideAngular(()=>{const w=h.nativeElement;w.addEventListener("touchmove",this._touchmoveHandler,W4),w.addEventListener("mouseenter",this._enterHandler,N2),w.addEventListener("focus",this._enterHandler,N2),w.addEventListener("mouseleave",this._leaveHandler,N2),w.addEventListener("blur",this._leaveHandler,N2),w.addEventListener("mousedown",this._mousedownHandler,q4),w.addEventListener("touchstart",this._mousedownHandler,q4),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(h,b){this._didDragSinceMouseDown||h.enabled&&this.selectedValueChange.emit({value:h.value,event:b})}_emitActiveDateChange(h,b){h.enabled&&this.activeDateChange.emit({value:h.value,event:b})}_isSelected(h){return this.startValue===h||this.endValue===h}ngOnChanges(h){const b=h.numCols,{rows:w,numCols:G}=this;(h.rows||b)&&(this._firstRowOffset=w&&w.length&&w[0].length?G-w[0].length:0),(h.cellAspectRatio||b||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/G+"%"),(b||!this._cellWidth)&&(this._cellWidth=100/G+"%")}ngOnDestroy(){const h=this._elementRef.nativeElement;h.removeEventListener("touchmove",this._touchmoveHandler,W4),h.removeEventListener("mouseenter",this._enterHandler,N2),h.removeEventListener("focus",this._enterHandler,N2),h.removeEventListener("mouseleave",this._leaveHandler,N2),h.removeEventListener("blur",this._leaveHandler,N2),h.removeEventListener("mousedown",this._mousedownHandler,q4),h.removeEventListener("touchstart",this._mousedownHandler,q4),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(h,b){let w=h*this.numCols+b;return h&&(w-=this._firstRowOffset),w==this.activeCell}_focusActiveCell(h=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,gr.s)(1)).subscribe(()=>{setTimeout(()=>{const b=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");b&&(h||(this._skipNextFocus=!0),b.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(h){return _d(h,this.startValue,this.endValue)}_isRangeEnd(h){return K3(h,this.startValue,this.endValue)}_isInRange(h){return A6(h,this.startValue,this.endValue,this.isRange)}_isComparisonStart(h){return _d(h,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(h,b,w){if(!this._isComparisonStart(h)||this._isRangeStart(h)||!this._isInRange(h))return!1;let G=this.rows[b][w-1];if(!G){const we=this.rows[b-1];G=we&&we[we.length-1]}return G&&!this._isRangeEnd(G.compareValue)}_isComparisonBridgeEnd(h,b,w){if(!this._isComparisonEnd(h)||this._isRangeEnd(h)||!this._isInRange(h))return!1;let G=this.rows[b][w+1];if(!G){const we=this.rows[b+1];G=we&&we[0]}return G&&!this._isRangeStart(G.compareValue)}_isComparisonEnd(h){return K3(h,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(h){return A6(h,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(h){return this.comparisonStart===this.comparisonEnd&&h===this.comparisonStart}_isPreviewStart(h){return _d(h,this.previewStart,this.previewEnd)}_isPreviewEnd(h){return K3(h,this.previewStart,this.previewEnd)}_isInPreview(h){return A6(h,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(h){return this.isRange?this.startValue===h&&this.endValue===h?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===h?this._startDateLabelId:this.endValue===h?this._endDateLabelId:null:null}_getCellFromElement(h){const b=l2(h);if(b){const w=b.getAttribute("data-mat-row"),G=b.getAttribute("data-mat-col");if(w&&G)return this.rows[parseInt(w)][parseInt(G)]}return null}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.SKi))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[o.OA$],attrs:k6,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(b,w){1&b&&(o.DNE(0,yg,3,6,"tr",0),o.DNE(1,xg,3,2,"tr",1),o.j41(2,"label",2),o.EFF(3),o.k0s(),o.j41(4,"label",2),o.EFF(5),o.k0s()),2&b&&(o.Y8G("ngIf",w._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0})}return E})();function X4(E){return"TD"===E?.nodeName}function l2(E){let O;return X4(E)?O=E:X4(E.parentNode)?O=E.parentNode:X4(E.parentNode?.parentNode)&&(O=E.parentNode.parentNode),null!=O?.getAttribute("data-mat-row")?O:null}function _d(E,O,h){return null!==h&&O!==h&&E=O&&E===h}function A6(E,O,h,b){return b&&null!==O&&null!==h&&O!==h&&E>=O&&E<=h}function Zm(E){const O=E.changedTouches[0];return document.elementFromPoint(O.clientX,O.clientY)}class Jl{constructor(O,h){this.start=O,this.end=h}}let j1=(()=>{class E{constructor(h,b){this.selection=h,this._adapter=b,this._selectionChanged=new Se.B,this.selectionChanged=this._selectionChanged,this.selection=h}updateSelection(h,b){const w=this.selection;this.selection=h,this._selectionChanged.next({selection:h,source:b,oldValue:w})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(h){return this._adapter.isDateInstance(h)&&this._adapter.isValid(h)}static#e=this.\u0275fac=function(b){o.QTQ()};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac})}return E})(),kg=(()=>{class E extends j1{constructor(h){super(null,h)}add(h){super.updateSelection(h,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const h=new E(this._adapter);return h.updateSelection(this.selection,this),h}static#e=this.\u0275fac=function(b){return new(b||E)(o.KVO(js))};static#t=this.\u0275prov=o.jDH({token:E,factory:E.\u0275fac})}return E})();const yf={provide:j1,deps:[[new o.Xx1,new o.kdw,j1],js],useFactory:function I6(E,O){return E||new kg(O)}},Y3=new o.nKC("MAT_DATE_RANGE_SELECTION_STRATEGY");let t8=(()=>{class E{get activeDate(){return this._activeDate}set activeDate(h){const b=this._activeDate,w=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(w,this.minDate,this.maxDate),this._hasSameMonthAndYear(b,this._activeDate)||this._init()}get selected(){return this._selected}set selected(h){this._selected=h instanceof Jl?h:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(h){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get maxDate(){return this._maxDate}set maxDate(h){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}constructor(h,b,w,G,we){this._changeDetectorRef=h,this._dateFormats=b,this._dateAdapter=w,this._dir=G,this._rangeStrategy=we,this._rerenderSubscription=it.yU.EMPTY,this.activeDrag=null,this.selectedChange=new o.bkB,this._userSelection=new o.bkB,this.dragStarted=new o.bkB,this.dragEnded=new o.bkB,this.activeDateChange=new o.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,la.Z)(null)).subscribe(()=>this._init())}ngOnChanges(h){const b=h.comparisonStart||h.comparisonEnd;b&&!b.firstChange&&this._setRanges(this.selected),h.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(h){const b=h.value,w=this._getDateFromDayOfMonth(b);let G,we;this._selected instanceof Jl?(G=this._getDateInCurrentMonth(this._selected.start),we=this._getDateInCurrentMonth(this._selected.end)):G=we=this._getDateInCurrentMonth(this._selected),(G!==b||we!==b)&&this.selectedChange.emit(w),this._userSelection.emit({value:w,event:h.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(h){const w=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(h.value),this._dateAdapter.compareDate(w,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(h){const b=this._activeDate,w=this._isRtl();switch(h.keyCode){case H:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,w?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,w?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=h.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=h.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&h.preventDefault());case 27:return void(null!=this._previewEnd&&!Ao(h)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:h}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:h})),h.preventDefault(),h.stopPropagation()));default:return}this._dateAdapter.compareDate(b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),h.preventDefault()}_handleCalendarBodyKeyup(h){(32===h.keyCode||13===h.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:h}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let h=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(h)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(h){this._matCalendarBody._focusActiveCell(h)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:h,value:b}){if(this._rangeStrategy){const w=b?b.rawValue:null,G=this._rangeStrategy.createPreview(w,this.selected,h);if(this._previewStart=this._getCellCompareValue(G.start),this._previewEnd=this._getCellCompareValue(G.end),this.activeDrag&&w){const we=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,w,h);we&&(this._previewStart=this._getCellCompareValue(we.start),this._previewEnd=this._getCellCompareValue(we.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(h){if(this.activeDrag)if(h.value){const b=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,h.value,h.event);this.dragEnded.emit({value:b??null,event:h.event})}else this.dragEnded.emit({value:null,event:h.event})}_getDateFromDayOfMonth(h){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),h)}_initWeekdays(){const h=this._dateAdapter.getFirstDayOfWeek(),b=this._dateAdapter.getDayOfWeekNames("narrow");let G=this._dateAdapter.getDayOfWeekNames("long").map((we,en)=>({long:we,narrow:b[en]}));this._weekdays=G.slice(h).concat(G.slice(0,h))}_createWeekCells(){const h=this._dateAdapter.getNumDaysInMonth(this.activeDate),b=this._dateAdapter.getDateNames();this._weeks=[[]];for(let w=0,G=this._firstWeekOffset;w=0)&&(!this.maxDate||this._dateAdapter.compareDate(h,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(h))}_getDateInCurrentMonth(h){return h&&this._hasSameMonthAndYear(h,this.activeDate)?this._dateAdapter.getDate(h):null}_hasSameMonthAndYear(h,b){return!(!h||!b||this._dateAdapter.getMonth(h)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(h)!=this._dateAdapter.getYear(b))}_getCellCompareValue(h){if(h){const b=this._dateAdapter.getYear(h),w=this._dateAdapter.getMonth(h),G=this._dateAdapter.getDate(h);return new Date(b,w,G).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(h){h instanceof Jl?(this._rangeStart=this._getCellCompareValue(h.start),this._rangeEnd=this._getCellCompareValue(h.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(h),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(h){return!this.dateFilter||this.dateFilter(h)}_clearPreview(){this._previewStart=this._previewEnd=null}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.gRc),o.rXU(uo,8),o.rXU(js,8),o.rXU(bl,8),o.rXU(Y3,8))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-month-view"]],viewQuery:function(b,w){if(1&b&&o.GBs(vd,5),2&b){let G;o.mGM(G=o.lsd())&&(w._matCalendarBody=G.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[o.OA$],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(b,w){1&b&&(o.j41(0,"table",0)(1,"thead",1)(2,"tr"),o.DNE(3,X3,5,2,"th",2),o.k0s(),o.j41(4,"tr"),o.nrm(5,"th",3),o.k0s()(),o.j41(6,"tbody",4),o.bIt("selectedValueChange",function(we){return w._dateSelected(we)})("activeDateChange",function(we){return w._updateActiveDate(we)})("previewChange",function(we){return w._previewChanged(we)})("dragStarted",function(we){return w.dragStarted.emit(we)})("dragEnded",function(we){return w._dragEnded(we)})("keyup",function(we){return w._handleCalendarBodyKeyup(we)})("keydown",function(we){return w._handleCalendarBodyKeydown(we)}),o.k0s()()),2&b&&(o.R7$(3),o.Y8G("ngForOf",w._weekdays),o.R7$(3),o.Y8G("label",w._monthLabel)("rows",w._weeks)("todayValue",w._todayDate)("startValue",w._rangeStart)("endValue",w._rangeEnd)("comparisonStart",w._comparisonRangeStart)("comparisonEnd",w._comparisonRangeEnd)("previewStart",w._previewStart)("previewEnd",w._previewEnd)("isRange",w._isRange)("labelMinRequiredCells",3)("activeCell",w._dateAdapter.getDate(w.activeDate)-1)("startDateAccessibleName",w.startDateAccessibleName)("endDateAccessibleName",w.endDateAccessibleName))},dependencies:[g.Sq,vd],encapsulation:2,changeDetection:0})}return E})();const F1=24;let o4=(()=>{class E{get activeDate(){return this._activeDate}set activeDate(h){let b=this._activeDate;const w=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(w,this.minDate,this.maxDate),z6(this._dateAdapter,b,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(h){this._selected=h instanceof Jl?h:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h)),this._setSelectedYear(h)}get minDate(){return this._minDate}set minDate(h){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get maxDate(){return this._maxDate}set maxDate(h){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}constructor(h,b,w){this._changeDetectorRef=h,this._dateAdapter=b,this._dir=w,this._rerenderSubscription=it.yU.EMPTY,this.selectedChange=new o.bkB,this.yearSelected=new o.bkB,this.activeDateChange=new o.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,la.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const b=this._dateAdapter.getYear(this._activeDate)-a4(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let w=0,G=[];wthis._createCellForYear(we))),G=[]);this._changeDetectorRef.markForCheck()}_yearSelected(h){const b=h.value,w=this._dateAdapter.createDate(b,0,1),G=this._getDateFromYear(b);this.yearSelected.emit(w),this.selectedChange.emit(G)}_updateActiveDate(h){const w=this._activeDate;this.activeDate=this._getDateFromYear(h.value),this._dateAdapter.compareDate(w,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(h){const b=this._activeDate,w=this._isRtl();switch(h.keyCode){case H:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,w?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,w?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-a4(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F1-a4(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,h.altKey?10*-F1:-F1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,h.altKey?10*F1:F1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(b,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),h.preventDefault()}_handleCalendarBodyKeyup(h){(32===h.keyCode||13===h.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:h}),this._selectionKeyPressed=!1)}_getActiveCell(){return a4(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(h){const b=this._dateAdapter.getMonth(this.activeDate),w=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(h,b,1));return this._dateAdapter.createDate(h,b,Math.min(this._dateAdapter.getDate(this.activeDate),w))}_createCellForYear(h){const b=this._dateAdapter.createDate(h,0,1),w=this._dateAdapter.getYearName(b),G=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new R2(h,w,w,this._shouldEnableYear(h),G)}_shouldEnableYear(h){if(null==h||this.maxDate&&h>this._dateAdapter.getYear(this.maxDate)||this.minDate&&h{class E{get activeDate(){return this._activeDate}set activeDate(h){let b=this._activeDate;const w=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(w,this.minDate,this.maxDate),this._dateAdapter.getYear(b)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(h){this._selected=h instanceof Jl?h:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h)),this._setSelectedMonth(h)}get minDate(){return this._minDate}set minDate(h){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get maxDate(){return this._maxDate}set maxDate(h){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}constructor(h,b,w,G){this._changeDetectorRef=h,this._dateFormats=b,this._dateAdapter=w,this._dir=G,this._rerenderSubscription=it.yU.EMPTY,this.selectedChange=new o.bkB,this.monthSelected=new o.bkB,this.activeDateChange=new o.bkB,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,la.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(h){const b=h.value,w=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),b,1);this.monthSelected.emit(w);const G=this._getDateFromMonth(b);this.selectedChange.emit(G)}_updateActiveDate(h){const w=this._activeDate;this.activeDate=this._getDateFromMonth(h.value),this._dateAdapter.compareDate(w,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(h){const b=this._activeDate,w=this._isRtl();switch(h.keyCode){case H:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,w?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,w?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,h.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,h.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),h.preventDefault()}_handleCalendarBodyKeyup(h){(32===h.keyCode||13===h.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:h}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let h=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(b=>b.map(w=>this._createCellForMonth(w,h[w]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(h){return h&&this._dateAdapter.getYear(h)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(h):null}_getDateFromMonth(h){const b=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),h,1),w=this._dateAdapter.getNumDaysInMonth(b);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),h,Math.min(this._dateAdapter.getDate(this.activeDate),w))}_createCellForMonth(h,b){const w=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),h,1),G=this._dateAdapter.format(w,this._dateFormats.display.monthYearA11yLabel),we=this.dateClass?this.dateClass(w,"year"):void 0;return new R2(h,b.toLocaleUpperCase(),G,this._shouldEnableMonth(h),we)}_shouldEnableMonth(h){const b=this._dateAdapter.getYear(this.activeDate);if(null==h||this._isYearAndMonthAfterMaxDate(b,h)||this._isYearAndMonthBeforeMinDate(b,h))return!1;if(!this.dateFilter)return!0;for(let G=this._dateAdapter.createDate(b,h,1);this._dateAdapter.getMonth(G)==h;G=this._dateAdapter.addCalendarDays(G,1))if(this.dateFilter(G))return!0;return!1}_isYearAndMonthAfterMaxDate(h,b){if(this.maxDate){const w=this._dateAdapter.getYear(this.maxDate),G=this._dateAdapter.getMonth(this.maxDate);return h>w||h===w&&b>G}return!1}_isYearAndMonthBeforeMinDate(h,b){if(this.minDate){const w=this._dateAdapter.getYear(this.minDate),G=this._dateAdapter.getMonth(this.minDate);return h{class E{constructor(h,b,w,G,we){this._intl=h,this.calendar=b,this._dateAdapter=w,this._dateFormats=G,this._id="mat-calendar-header-"+wf++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>we.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-F1)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:F1)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(h,b){return"month"==this.calendar.currentView?this._dateAdapter.getYear(h)==this._dateAdapter.getYear(b)&&this._dateAdapter.getMonth(h)==this._dateAdapter.getMonth(b):"year"==this.calendar.currentView?this._dateAdapter.getYear(h)==this._dateAdapter.getYear(b):z6(this._dateAdapter,h,b,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const b=this._dateAdapter.getYear(this.calendar.activeDate)-a4(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),w=b+F1-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(b,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(w,0,1))]}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(G4),o.rXU((0,o.Rfq)(()=>c4)),o.rXU(js,8),o.rXU(uo,8),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:U4,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(b,w){1&b&&(o.NAR(),o.j41(0,"div",0)(1,"div",1)(2,"button",2),o.bIt("click",function(){return w.currentPeriodClicked()}),o.j41(3,"span",3),o.EFF(4),o.k0s(),o.qSk(),o.j41(5,"svg",4),o.nrm(6,"polygon",5),o.k0s()(),o.joV(),o.nrm(7,"div",6),o.SdG(8),o.j41(9,"button",7),o.bIt("click",function(){return w.previousClicked()}),o.k0s(),o.j41(10,"button",8),o.bIt("click",function(){return w.nextClicked()}),o.k0s()()(),o.j41(11,"label",9),o.EFF(12),o.k0s()),2&b&&(o.R7$(2),o.BMQ("aria-label",w.periodButtonLabel)("aria-describedby",w._periodButtonLabelId),o.R7$(2),o.JRh(w.periodButtonText),o.R7$(1),o.AVh("mat-calendar-invert","month"!==w.calendar.currentView),o.R7$(4),o.Y8G("disabled",!w.previousEnabled()),o.BMQ("aria-label",w.prevButtonLabel),o.R7$(1),o.Y8G("disabled",!w.nextEnabled()),o.BMQ("aria-label",w.nextButtonLabel),o.R7$(1),o.Y8G("id",w._periodButtonLabelId),o.R7$(1),o.JRh(w.periodButtonDescription))},dependencies:[hu,Lm],encapsulation:2,changeDetection:0})}return E})(),c4=(()=>{class E{get startAt(){return this._startAt}set startAt(h){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get selected(){return this._selected}set selected(h){this._selected=h instanceof Jl?h:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get minDate(){return this._minDate}set minDate(h){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get maxDate(){return this._maxDate}set maxDate(h){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get activeDate(){return this._clampedActiveDate}set activeDate(h){this._clampedActiveDate=this._dateAdapter.clampDate(h,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(h){const b=this._currentView!==h?h:null;this._currentView=h,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),b&&this.viewChanged.emit(b)}constructor(h,b,w,G){this._dateAdapter=b,this._dateFormats=w,this._changeDetectorRef=G,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.bkB,this.yearSelected=new o.bkB,this.monthSelected=new o.bkB,this.viewChanged=new o.bkB(!0),this._userSelection=new o.bkB,this._userDragDrop=new o.bkB,this._activeDrag=null,this.stateChanges=new Se.B,this._intlChanges=h.changes.subscribe(()=>{G.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new ef(this.headerComponent||Q3),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(h){const b=h.minDate&&!this._dateAdapter.sameDate(h.minDate.previousValue,h.minDate.currentValue)?h.minDate:void 0,w=h.maxDate&&!this._dateAdapter.sameDate(h.maxDate.previousValue,h.maxDate.currentValue)?h.maxDate:void 0,G=b||w||h.dateFilter;if(G&&!G.firstChange){const we=this._getCurrentViewComponent();we&&(this._changeDetectorRef.detectChanges(),we._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(h){const b=h.value;(this.selected instanceof Jl||b&&!this._dateAdapter.sameDate(b,this.selected))&&this.selectedChange.emit(b),this._userSelection.emit(h)}_yearSelectedInMultiYearView(h){this.yearSelected.emit(h)}_monthSelectedInYearView(h){this.monthSelected.emit(h)}_goToDateInView(h,b){this.activeDate=h,this.currentView=b}_dragStarted(h){this._activeDrag=h}_dragEnded(h){this._activeDrag&&(h.value&&this._userDragDrop.emit(h),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(G4),o.rXU(js,8),o.rXU(uo,8),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-calendar"]],viewQuery:function(b,w){if(1&b&&(o.GBs(t8,5),o.GBs(xf,5),o.GBs(o4,5)),2&b){let G;o.mGM(G=o.lsd())&&(w.monthView=G.first),o.mGM(G=o.lsd())&&(w.yearView=G.first),o.mGM(G=o.lsd())&&(w.multiYearView=G.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[o.Jv_([yf]),o.OA$],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(b,w){1&b&&(o.DNE(0,D6,0,0,"ng-template",0),o.j41(1,"div",1),o.DNE(2,Xm,1,11,"mat-month-view",2),o.DNE(3,T6,1,6,"mat-year-view",3),o.DNE(4,V6,1,6,"mat-multi-year-view",4),o.k0s()),2&b&&(o.Y8G("cdkPortalOutlet",w._calendarHeaderPortal),o.R7$(1),o.Y8G("ngSwitch",w.currentView),o.R7$(1),o.Y8G("ngSwitchCase","month"),o.R7$(1),o.Y8G("ngSwitchCase","year"),o.R7$(1),o.Y8G("ngSwitchCase","multi-year"))},dependencies:[g.ux,g.e1,e2,pm,t8,xf,o4],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0})}return E})();const bd={transformPanel:(0,Sr.hZ)("transformPanel",[(0,Sr.kY)("void => enter-dropdown",(0,Sr.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Sr.i7)([(0,Sr.iF)({opacity:0,transform:"scale(1, 0.8)"}),(0,Sr.iF)({opacity:1,transform:"scale(1, 1)"})]))),(0,Sr.kY)("void => enter-dialog",(0,Sr.i0)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Sr.i7)([(0,Sr.iF)({opacity:0,transform:"scale(0.7)"}),(0,Sr.iF)({transform:"none",opacity:1})]))),(0,Sr.kY)("* => void",(0,Sr.i0)("100ms linear",(0,Sr.iF)({opacity:0})))]),fadeInCalendar:(0,Sr.hZ)("fadeInCalendar",[(0,Sr.wk)("void",(0,Sr.iF)({opacity:0})),(0,Sr.wk)("enter",(0,Sr.iF)({opacity:1})),(0,Sr.kY)("void => *",(0,Sr.i0)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Mf=0;const Sf=new o.nKC("mat-datepicker-scroll-strategy"),ly={provide:Sf,deps:[md],useFactory:function J3(E){return()=>E.scrollStrategies.reposition()}},kf=xr(class{constructor(E){this._elementRef=E}});let Y4=(()=>{class E extends kf{constructor(h,b,w,G,we,en){super(h),this._changeDetectorRef=b,this._globalModel=w,this._dateAdapter=G,this._rangeSelectionStrategy=we,this._subscriptions=new it.yU,this._animationDone=new Se.B,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=en.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(h){const b=this._model.selection,w=h.value,G=b instanceof Jl;if(G&&this._rangeSelectionStrategy){const we=this._rangeSelectionStrategy.selectionFinished(w,b,h.event);this._model.updateSelection(we,this)}else w&&(G||!this._dateAdapter.sameDate(w,b))&&this._model.add(w);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(h){this._model.updateSelection(h.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(h){this._isAnimating="start"===h.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(h,b){this._model=h?this._globalModel.clone():this._globalModel,this._actionsPortal=h,b&&this._changeDetectorRef.detectChanges()}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(j1),o.rXU(js),o.rXU(Y3,8),o.rXU(G4))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-datepicker-content"]],viewQuery:function(b,w){if(1&b&&o.GBs(c4,5),2&b){let G;o.mGM(G=o.lsd())&&(w._calendar=G.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(b,w){1&b&&o.Kam("@transformPanel.start",function(we){return w._handleAnimationEvent(we)})("@transformPanel.done",function(we){return w._handleAnimationEvent(we)}),2&b&&(o.zvX("@transformPanel",w._animationState),o.AVh("mat-datepicker-content-touch",w.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.Vt3],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(b,w){if(1&b&&(o.j41(0,"div",0)(1,"mat-calendar",1),o.bIt("yearSelected",function(we){return w.datepicker._selectYear(we)})("monthSelected",function(we){return w.datepicker._selectMonth(we)})("viewChanged",function(we){return w.datepicker._viewChanged(we)})("_userSelection",function(we){return w._handleUserSelection(we)})("_userDragDrop",function(we){return w._handleUserDragDrop(we)}),o.k0s(),o.DNE(2,wg,0,0,"ng-template",2),o.j41(3,"button",3),o.bIt("focus",function(){return w._closeButtonFocused=!0})("blur",function(){return w._closeButtonFocused=!1})("click",function(){return w.datepicker.close()}),o.EFF(4),o.k0s()()),2&b){let G;o.AVh("mat-datepicker-content-container-with-custom-header",w.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",w._actionsPortal),o.BMQ("aria-modal",!0)("aria-labelledby",null!==(G=w._dialogLabelId)&&void 0!==G?G:void 0),o.R7$(1),o.Y8G("id",w.datepicker.id)("ngClass",w.datepicker.panelClass)("startAt",w.datepicker.startAt)("startView",w.datepicker.startView)("minDate",w.datepicker._getMinDate())("maxDate",w.datepicker._getMaxDate())("dateFilter",w.datepicker._getDateFilter())("headerComponent",w.datepicker.calendarHeaderComponent)("selected",w._getSelected())("dateClass",w.datepicker.dateClass)("comparisonStart",w.comparisonStart)("comparisonEnd",w.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",w.startDateAccessibleName)("endDateAccessibleName",w.endDateAccessibleName),o.R7$(1),o.Y8G("cdkPortalOutlet",w._actionsPortal),o.R7$(1),o.AVh("cdk-visually-hidden",!w._closeButtonFocused),o.Y8G("color",w.color||"primary"),o.R7$(1),o.JRh(w._closeButtonText)}},dependencies:[g.YU,hu,$e,pm,c4],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[bd.transformPanel,bd.fadeInCalendar]},changeDetection:0})}return E})(),n8=(()=>{class E{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(h){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(h){this._color=h}get touchUi(){return this._touchUi}set touchUi(h){this._touchUi=Kn(h)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(h){const b=Kn(h);b!==this._disabled&&(this._disabled=b,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(h){this._restoreFocus=Kn(h)}get panelClass(){return this._panelClass}set panelClass(h){this._panelClass=function Is(E,O=/\s+/){const h=[];if(null!=E){const b=Array.isArray(E)?E:`${E}`.split(O);for(const w of b){const G=`${w}`.trim();G&&h.push(G)}}return h}(h)}get opened(){return this._opened}set opened(h){Kn(h)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(h,b,w,G,we,en,Yn){this._overlay=h,this._ngZone=b,this._viewContainerRef=w,this._dateAdapter=we,this._dir=en,this._model=Yn,this._inputStateChanges=it.yU.EMPTY,this._document=(0,o.WQX)(g.qQ),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.bkB,this.monthSelected=new o.bkB,this.viewChanged=new o.bkB(!0),this.openedStream=new o.bkB,this.closedStream=new o.bkB,this._opened=!1,this.id="mat-datepicker-"+Mf++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Se.B,this._scrollStrategy=G}ngOnChanges(h){const b=h.xPosition||h.yPosition;if(b&&!b.firstChange&&this._overlayRef){const w=this._overlayRef.getConfig().positionStrategy;w instanceof lf&&(this._setConnectedPositions(w),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(h){this._model.add(h)}_selectYear(h){this.yearSelected.emit(h)}_selectMonth(h){this.monthSelected.emit(h)}_viewChanged(h){this.viewChanged.emit(h)}registerInput(h){return this._inputStateChanges.unsubscribe(),this.datepickerInput=h,this._inputStateChanges=h.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(h){this._actionsPortal=h,this._componentRef?.instance._assignActions(h,!0)}removeActions(h){h===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=Be(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const h=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,b=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:w,location:G}=this._componentRef;w._startExitAnimation(),w._animationDone.pipe((0,gr.s)(1)).subscribe(()=>{const we=this._document.activeElement;h&&(!we||we===this._document.activeElement||G.nativeElement.contains(we))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}h?setTimeout(b):b()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(h){h.datepicker=this,h.color=this.color,h._dialogLabelId=this.datepickerInput.getOverlayLabelId(),h._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const h=this.touchUi,b=new ef(Y4,this._viewContainerRef),w=this._overlayRef=this._overlay.create(new wl({positionStrategy:h?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[h?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:h?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(h?"dialog":"popup")}));this._getCloseStream(w).subscribe(G=>{G&&G.preventDefault(),this.close()}),w.keydownEvents().subscribe(G=>{const we=G.keyCode;(38===we||40===we||we===H||39===we||33===we||34===we)&&G.preventDefault()}),this._componentRef=w.attach(b),this._forwardContentValues(this._componentRef.instance),h||this._ngZone.onStable.pipe((0,gr.s)(1)).subscribe(()=>w.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const h=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(h)}_setConnectedPositions(h){const b="end"===this.xPosition?"end":"start",w="start"===b?"end":"start",G="above"===this.yPosition?"bottom":"top",we="top"===G?"bottom":"top";return h.withPositions([{originX:b,originY:we,overlayX:b,overlayY:G},{originX:b,originY:G,overlayX:b,overlayY:we},{originX:w,originY:we,overlayX:w,overlayY:G},{originX:w,originY:G,overlayX:w,overlayY:we}])}_getCloseStream(h){const b=["ctrlKey","shiftKey","metaKey"];return(0,M1.h)(h.backdropClick(),h.detachments(),h.keydownEvents().pipe((0,za.p)(w=>27===w.keyCode&&!Ao(w)||this.datepickerInput&&Ao(w,"altKey")&&38===w.keyCode&&b.every(G=>!Ao(w,G)))))}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(md),o.rXU(o.SKi),o.rXU(o.c1b),o.rXU(Sf),o.rXU(js,8),o.rXU(bl,8),o.rXU(j1))};static#t=this.\u0275dir=o.FsC({type:E,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.OA$]})}return E})(),i8=(()=>{class E extends n8{static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o.Jv_([yf,{provide:n8,useExisting:E}]),o.Vt3],decls:0,vars:0,template:function(b,w){},encapsulation:2,changeDetection:0})}return E})();class Ef{constructor(O,h){this.target=O,this.targetElement=h,this.value=this.target.value}}let r8=(()=>{class E{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(h){this._assignValueProgrammatically(h)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(h){const b=Kn(h),w=this._elementRef.nativeElement;this._disabled!==b&&(this._disabled=b,this.stateChanges.next(void 0)),b&&this._isInitialized&&w.blur&&w.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(h){this._model=h,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(b=>{if(this._shouldHandleChangeEvent(b)){const w=this._getValueFromModel(b.selection);this._lastValueValid=this._isValidValue(w),this._cvaOnChange(w),this._onTouched(),this._formatValue(w),this.dateInput.emit(new Ef(this,this._elementRef.nativeElement)),this.dateChange.emit(new Ef(this,this._elementRef.nativeElement))}})}constructor(h,b,w){this._elementRef=h,this._dateAdapter=b,this._dateFormats=w,this.dateChange=new o.bkB,this.dateInput=new o.bkB,this.stateChanges=new Se.B,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=it.yU.EMPTY,this._localeSubscription=it.yU.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=G=>{const we=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G.value));return!we||this._matchesFilter(we)?null:{matDatepickerFilter:!0}},this._minValidator=G=>{const we=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G.value)),en=this._getMinDate();return!en||!we||this._dateAdapter.compareDate(en,we)<=0?null:{matDatepickerMin:{min:en,actual:we}}},this._maxValidator=G=>{const we=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(G.value)),en=this._getMaxDate();return!en||!we||this._dateAdapter.compareDate(en,we)>=0?null:{matDatepickerMax:{max:en,actual:we}}},this._lastValueValid=!1,this._localeSubscription=b.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(h){(function Df(E,O){const h=Object.keys(E);for(let b of h){const{previousValue:w,currentValue:G}=E[b];if(!O.isDateInstance(w)||!O.isDateInstance(G))return!0;if(!O.sameDate(w,G))return!0}return!1})(h,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(h){this._validatorOnChange=h}validate(h){return this._validator?this._validator(h):null}writeValue(h){this._assignValueProgrammatically(h)}registerOnChange(h){this._cvaOnChange=h}registerOnTouched(h){this._onTouched=h}setDisabledState(h){this.disabled=h}_onKeydown(h){Ao(h,"altKey")&&40===h.keyCode&&["ctrlKey","shiftKey","metaKey"].every(G=>!Ao(h,G))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),h.preventDefault())}_onInput(h){const b=this._lastValueValid;let w=this._dateAdapter.parse(h,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(w),w=this._dateAdapter.getValidDateOrNull(w);const G=!this._dateAdapter.sameDate(w,this.value);!w||G?this._cvaOnChange(w):(h&&!this.value&&this._cvaOnChange(w),b!==this._lastValueValid&&this._validatorOnChange()),G&&(this._assignValue(w),this.dateInput.emit(new Ef(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Ef(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(h){this._elementRef.nativeElement.value=null!=h?this._dateAdapter.format(h,this._dateFormats.display.dateInput):""}_assignValue(h){this._model?(this._assignValueToModel(h),this._pendingValue=null):this._pendingValue=h}_isValidValue(h){return!h||this._dateAdapter.isValid(h)}_parentDisabled(){return!1}_assignValueProgrammatically(h){h=this._dateAdapter.deserialize(h),this._lastValueValid=this._isValidValue(h),h=this._dateAdapter.getValidDateOrNull(h),this._assignValue(h),this._formatValue(h)}_matchesFilter(h){const b=this._getDateFilter();return!b||b(h)}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(js,8),o.rXU(uo,8))};static#t=this.\u0275dir=o.FsC({type:E,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.OA$]})}return E})();const l4={provide:V.kq,useExisting:(0,o.Rfq)(()=>Z3),multi:!0},Tg={provide:V.cz,useExisting:(0,o.Rfq)(()=>Z3),multi:!0};let Z3=(()=>{class E extends r8{set matDatepicker(h){h&&(this._datepicker=h,this._closedSubscription=h.closedStream.subscribe(()=>this._onTouched()),this._registerModel(h.registerInput(this)))}get min(){return this._min}set min(h){const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h));this._dateAdapter.sameDate(b,this._min)||(this._min=b,this._validatorOnChange())}get max(){return this._max}set max(h){const b=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(h));this._dateAdapter.sameDate(b,this._max)||(this._max=b,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(h){const b=this._matchesFilter(this.value);this._dateFilter=h,this._matchesFilter(this.value)!==b&&this._validatorOnChange()}constructor(h,b,w,G){super(h,b,w),this._formField=G,this._closedSubscription=it.yU.EMPTY,this._validator=V.k0.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(h){return h}_assignValueToModel(h){this._model&&this._model.updateSelection(h,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(h){return h.source!==this}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(o.aKT),o.rXU(js,8),o.rXU(uo,8),o.rXU(fs,8))};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(b,w){1&b&&o.bIt("input",function(we){return w._onInput(we.target.value)})("change",function(){return w._onChange()})("blur",function(){return w._onBlur()})("keydown",function(we){return w._onKeydown(we)}),2&b&&(o.Mr5("disabled",w.disabled),o.BMQ("aria-haspopup",w._datepicker?"dialog":null)("aria-owns",(null==w._datepicker?null:w._datepicker.opened)&&w._datepicker.id||null)("min",w.min?w._dateAdapter.toIso8601(w.min):null)("max",w.max?w._dateAdapter.toIso8601(w.max):null)("data-mat-calendar",w._datepicker?w._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o.Jv_([l4,Tg,{provide:s2,useExisting:E}]),o.Vt3]})}return E})(),uy=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275dir=o.FsC({type:E,selectors:[["","matDatepickerToggleIcon",""]]})}return E})(),s8=(()=>{class E{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(h){this._disabled=Kn(h)}constructor(h,b,w){this._intl=h,this._changeDetectorRef=b,this._stateChanges=it.yU.EMPTY;const G=Number(w);this.tabIndex=G||0===G?G:null}ngOnChanges(h){h.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(h){this.datepicker&&!this.disabled&&(this.datepicker.open(),h.stopPropagation())}_watchStateChanges(){const h=this.datepicker?this.datepicker.stateChanges:(0,jt.of)(),b=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,jt.of)(),w=this.datepicker?(0,M1.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,jt.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,M1.h)(this._intl.changes,h,b,w).subscribe(()=>this._changeDetectorRef.markForCheck())}static#e=this.\u0275fac=function(b){return new(b||E)(o.rXU(G4),o.rXU(o.gRc),o.kS0("tabindex"))};static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["mat-datepicker-toggle"]],contentQueries:function(b,w,G){if(1&b&&o.wni(G,uy,5),2&b){let we;o.mGM(we=o.lsd())&&(w._customIcon=we.first)}},viewQuery:function(b,w){if(1&b&&o.GBs(Km,5),2&b){let G;o.mGM(G=o.lsd())&&(w._button=G.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(b,w){1&b&&o.bIt("click",function(we){return w._open(we)}),2&b&&(o.BMQ("tabindex",null)("data-mat-calendar",w.datepicker?w.datepicker.id:null),o.AVh("mat-datepicker-toggle-active",w.datepicker&&w.datepicker.opened)("mat-accent",w.datepicker&&"accent"===w.datepicker.color)("mat-warn",w.datepicker&&"warn"===w.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.OA$],ngContentSelectors:mu,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(b,w){1&b&&(o.NAR(_f),o.j41(0,"button",0,1),o.DNE(2,Ym,2,0,"svg",2),o.SdG(3),o.k0s()),2&b&&(o.Y8G("disabled",w.disabled)("disableRipple",w.disableRipple),o.BMQ("aria-haspopup",w.datepicker?"dialog":null)("aria-label",w.ariaLabel||w._intl.openCalendarLabel)("tabindex",w.disabled?-1:w.tabIndex),o.R7$(2),o.Y8G("ngIf",!w._customIcon))},dependencies:[g.bT,Lm],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}return E})(),J4=(()=>{class E{static#e=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=o.$C({type:E});static#n=this.\u0275inj=o.G2t({providers:[G4,ly],imports:[g.MD,G3,s6,_l,N7,Pn,Z0]})}return E})();const Af=function(){return["labelPosition"]},N6=function(E,O){return{key:"mat-checkbox",props:E,omit:O}},gu=function(E){return[E]};function c8(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-checkbox",2),o.bIt("change",function(w){o.eBV(h);const G=o.XpG(2);return o.Njj(G.toggle(w))}),o.EFF(2),o.k0s(),o.bVm()}if(2&E){const h=o.XpG(2);let b;o.R7$(1),o.Y8G("labelPosition",null!==(b=h.data.options.labelPosition)&&void 0!==b?b:"after")("propsBinding",o.eq3(7,gu,o.l_i(4,N6,h.data.props,o.lJ4(3,Af)))),o.R7$(1),o.JRh(null==h.data.options.data||null==h.data.options.data[0]?null:h.data.options.data[0].label)}}const l8=function(){return["labelPosition","checked","disabled","value"]};function Ig(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-checkbox",4),o.bIt("change",function(w){const we=o.eBV(h).index,en=o.XpG(3);return o.Njj(en.onCheckboxChange(w,we))}),o.EFF(2),o.k0s(),o.bVm()}if(2&E){const h=O.$implicit,b=o.XpG(3);let w;o.R7$(1),o.Y8G("labelPosition",null!==(w=b.data.options.labelPosition)&&void 0!==w?w:"after")("checked",b.isChecked(h.value))("disabled",b.control.disabled)("propsBinding",o.eq3(9,gu,o.l_i(6,N6,b.data.props,o.lJ4(5,l8)))),o.R7$(1),o.JRh(h.label)}}function P6(E,O){if(1&E&&(o.qex(0),o.DNE(1,Ig,3,11,"ng-container",3),o.bVm()),2&E){const h=o.XpG(2);o.R7$(1),o.Y8G("ngForOf",h.data.options.data)}}function u8(E,O){if(1&E&&(o.qex(0),o.j41(1,"div",1),o.DNE(2,c8,3,9,"ng-container",0),o.DNE(3,P6,2,1,"ng-container",0),o.k0s(),o.bVm()),2&E){const h=o.XpG();let b;o.R7$(1),o.Aen(h.groupButtonsStyles),o.Y8G("ngClass",o.eq3(5,gu,null!==(b=null==h.data.options?null:h.data.options.containerClass)&&void 0!==b?b:"")),o.R7$(1),o.Y8G("ngIf",h.data.options&&1===(null==h.data.options.data?null:h.data.options.data.length)),o.R7$(1),o.Y8G("ngIf",h.data.options&&h.data.options.data&&h.data.options.data.length>1)}}function If(E,O){if(1&E&&(o.qex(0),o.j41(1,"mat-option",3),o.EFF(2),o.k0s(),o.bVm()),2&E){const h=O.$implicit,b=O.index;o.R7$(1),o.Y8G("value",b),o.R7$(1),o.JRh(h.label)}}const j6=function(E){return{key:"mat-select",props:E}};function Og(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field")(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"mat-select",1),o.bIt("openedChange",function(){o.eBV(h);const w=o.XpG();return o.Njj(w.onTouched())})("selectionChange",function(){o.eBV(h);const w=o.XpG();return o.Njj(w.updateControl())}),o.DNE(5,If,3,2,"ng-container",2),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();o.R7$(3),o.JRh(h.data.label),o.R7$(1),o.Y8G("formControl",h.control)("propsBinding",o.eq3(6,gu,o.eq3(4,j6,h.data.props))),o.R7$(1),o.Y8G("ngForOf",null==h.data.options?null:h.data.options.data)}}const Of=function(){return["type"]},Hf=function(E,O){return{key:"mat-input",props:E,omit:O}},Hg=function(E){return{key:"imask",props:E}},F6=function(E,O){return[E,O]};function d8(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field")(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"input",1),o.bIt("complete",function(){o.eBV(h);const w=o.XpG();return o.Njj(w.onChange(w.control.value))}),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();o.R7$(3),o.JRh(h.data.label),o.R7$(1),o.Y8G("formControl",h.control)("imask",h.data.inputMask)("propsBinding",o.l_i(10,F6,o.l_i(5,Hf,h.data.props,o.lJ4(4,Of)),o.eq3(8,Hg,h.data.props)))}}function Lg(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field")(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"input",1),o.bIt("input",function(){o.eBV(h);const w=o.XpG();return o.Njj(w.onChange(w.control.value))}),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();let b;o.R7$(3),o.JRh(h.data.label),o.R7$(1),o.Y8G("formControl",h.control)("propsBinding",o.eq3(8,gu,o.l_i(5,Hf,h.data.props,o.lJ4(4,Of)))),o.BMQ("type",null!==(b=h.data.type)&&void 0!==b?b:"text")}}function Z4(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-radio-button",4),o.bIt("change",function(){const G=o.eBV(h).index,we=o.XpG(2);return o.Njj(we.onChange(G))}),o.EFF(2),o.k0s(),o.bVm()}if(2&E){const h=O.$implicit,b=O.index,w=o.XpG(2);o.R7$(1),o.Y8G("value",b)("checked",w.selectedIndex===b),o.R7$(1),o.JRh(h.label)}}const f8=function(E,O){return{key:"mat-radio-group",props:E,omit:O}},B6=function(E){return{"flex-direction":E}};function P2(E,O){if(1&E&&(o.qex(0),o.j41(1,"mat-radio-group",1)(2,"div",2),o.DNE(3,Z4,3,3,"ng-container",3),o.k0s()(),o.bVm()),2&E){const h=o.XpG();let b,w;o.R7$(1),o.Y8G("labelPosition",null!==(b=null==h.data.options?null:h.data.options.labelPosition)&&void 0!==b?b:"after")("formControl",h.control)("propsBinding",o.eq3(12,gu,o.l_i(9,f8,h.data.props,o.lJ4(8,Af)))),o.R7$(1),o.Aen(null==h.data.options?null:h.data.options.containerStyles),o.Y8G("ngClass",o.eq3(14,gu,null!==(w=null==h.data.options?null:h.data.options.containerClass)&&void 0!==w?w:""))("ngStyle",o.eq3(16,B6,null==h.data.options?null:h.data.options.layout)),o.R7$(1),o.Y8G("ngForOf",null==h.data.options?null:h.data.options.data)}}const h8=function(E){return{key:"mat-slider",props:E}};function my(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-slider",1)(2,"input",2),o.bIt("input",function(){o.eBV(h);const w=o.XpG();return o.Njj(w.onChange(w.control.value))}),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();o.R7$(1),o.Y8G("propsBinding",o.eq3(4,gu,o.eq3(2,h8,h.data.props))),o.R7$(1),o.Y8G("formControl",h.control)}}const $6=function(E,O){return{key:"mat-slide-toggle",props:E,omit:O}};function yd(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-slide-toggle",1),o.bIt("change",function(){o.eBV(h);const w=o.XpG();return o.Njj(w.onChange(w.control.value))}),o.EFF(2),o.k0s(),o.bVm()}if(2&E){const h=o.XpG();let b;o.R7$(1),o.Y8G("labelPosition",null!==(b=null==h.data.options?null:h.data.options.labelPosition)&&void 0!==b?b:"after")("formControl",h.control)("propsBinding",o.eq3(8,gu,o.l_i(5,$6,h.data.props,o.lJ4(4,Af)))),o.R7$(1),o.JRh(null==h.data.options||null==h.data.options.data||null==h.data.options.data[0]?null:h.data.options.data[0].label)}}const r0=function(E){return{key:"mat-input",props:E}},zg=function(E){return{key:"cdk-textarea-autosize",props:E}};function Rg(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field",1)(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"textarea",2),o.bIt("input",function(){o.eBV(h);const w=o.XpG();return o.Njj(w.onChange(w.control.value))}),o.k0s()(),o.bVm()}if(2&E){const h=o.XpG();o.R7$(3),o.JRh(h.data.label),o.R7$(1),o.Y8G("formControl",h.control)("propsBinding",o.l_i(7,F6,o.eq3(3,r0,h.data.props),o.eq3(5,zg,h.data.props)))}}const Ng=function(){return["matDatepicker"]};function U6(E,O){if(1&E){const h=o.RV6();o.qex(0),o.j41(1,"mat-form-field")(2,"mat-label"),o.EFF(3),o.k0s(),o.j41(4,"input",1),o.bIt("dateInput",function(){o.eBV(h);const w=o.XpG();return o.Njj(w.onChange(w.control.value))}),o.k0s(),o.nrm(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),o.k0s(),o.bVm()}if(2&E){const h=o.sdS(7),b=o.XpG();o.R7$(3),o.JRh(b.data.label),o.R7$(1),o.Y8G("matDatepicker",h)("formControl",b.control)("propsBinding",o.eq3(9,gu,o.l_i(6,Hf,b.data.props,o.lJ4(5,Ng)))),o.R7$(1),o.Y8G("for",h)}}let vu=(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.Yp([])}writeValue(h){this.control.clear(),Array.isArray(h)&&h.forEach(b=>this._addItem(b))}registerOnChange(h){this._onChange=h}toggle(h){this._onChange(h.checked)}onCheckboxChange(h,b){const w=h.checked,G=this.data?.options?.data?.map(we=>we.value).filter((we,en)=>en===b?w:this.isChecked(we));this.control.clear(),G?.forEach(we=>this._addItem(we)),this._onChange(this.control.value)}isChecked(h){return this.control.value.some(b=>JSON.stringify(b)===JSON.stringify(h))}get groupButtonsStyles(){return`\n flex-direction: ${this.data?.options?.layout??"row"};\n align-items: flex-start;\n ${this.data?.options?.containerStyles??""}\n `.replace(/\s{2,}/g,"")}_addItem(h){const b=new V.MJ(h);this.control.push(b)}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-checkbox"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-checkbox",token:Ne}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass"],[3,"labelPosition","propsBinding","change"],[4,"ngFor","ngForOf"],[3,"labelPosition","checked","disabled","propsBinding","change"]],template:function(b,w){1&b&&o.DNE(0,u8,4,7,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.YU,g.Sq,g.bT,V.X1,Ci,Ne,Zd,Oo.XO],encapsulation:2})}return E})(),u4=(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ(-1),this.onTouched=()=>{}}writeValue(h){const b=this.data?.options?.data?.map(w=>w.value).findIndex(w=>JSON.stringify(w)===JSON.stringify(h))??-1;this.control.setValue(b)}registerOnChange(h){this._onChange=h}registerOnTouched(h){this.onTouched=h}updateControl(){const h=this.control.value??-1;if(h>-1){const b=this.data?.options?.data?.map(w=>w.value)?.[h];this._onChange(b)}}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-select"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-select",token:$3}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"formControl","propsBinding","openedChange","selectionChange"],[4,"ngFor","ngForOf"],[3,"value"]],template:function(b,w){1&b&&o.DNE(0,Og,6,8,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.Sq,g.bT,V.X1,V.BC,V.l_,ey,Da,zu,$3,au,Oo.XO],encapsulation:2})}return E})(),e3=(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-input-mask"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-input",token:a2},{key:"imask",token:U3.Zq}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["matInput","","type","text","imaskValuePatch","",3,"formControl","imask","propsBinding","complete"]],template:function(b,w){1&b&&o.DNE(0,d8,5,13,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,Zd,a2,Da,zu,U3.Zq,Oo.wc,Oo.XO],encapsulation:2})}return E})(),G6=(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.hs("")}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-input"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-input",token:a2}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["matInput","",3,"formControl","propsBinding","input"]],template:function(b,w){1&b&&o.DNE(0,Lg,5,10,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,Zd,a2,Da,zu,G3,Oo.XO],encapsulation:2})}return E})();const W6={checkbox:vu,date:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ(new Date)}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-date"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-input",token:Z3}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["matInput","",3,"matDatepicker","formControl","propsBinding","dateInput"],["matSuffix","",3,"for"],["picker",""]],template:function(b,w){1&b&&o.DNE(0,U6,8,11,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,J4,i8,Z3,s8,ec,Da,zu,pd,ot,Zd,a2,Oo.XO],encapsulation:2})}return E})(),password:G6,number:G6,email:G6,radio:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.hs(""),this.selectedIndex=-1}writeValue(h){this.selectedIndex=this.data?.options?.data?.map(b=>b.value).findIndex(b=>JSON.stringify(b)===JSON.stringify(h))??-1}registerOnChange(h){this._onChange=h}onChange(h){const b=this.data?.options?.data?.[h].value;this._onChange(b)}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-radio"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-radio-group",token:B4}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"labelPosition","formControl","propsBinding"],[1,"group-buttons",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf"],[3,"value","checked","change"]],template:function(b,w){1&b&&o.DNE(0,P2,4,18,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.YU,g.Sq,g.bT,g.B3,V.X1,V.BC,V.l_,_6,B4,Nm,Zd,Oo.XO],encapsulation:2})}return E})(),range:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ(0)}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-range"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-slider",token:mg}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"propsBinding"],["matSliderThumb","",3,"formControl","input"]],template:function(b,w){1&b&&o.DNE(0,my,3,6,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,vg,mg,gf,Zd,Oo.XO],encapsulation:2})}return E})(),select:u4,switch:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ(!1)}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-switch"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"mat-slide-toggle",token:M6}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"labelPosition","formControl","propsBinding","change"]],template:function(b,w){1&b&&o.DNE(0,yd,3,10,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.bT,V.X1,V.BC,V.l_,S6,M6,Zd,Oo.XO],encapsulation:2})}return E})(),text:G6,textMask:e3,textarea:(()=>{class E extends Oo._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(h){this.onChange=h}static#e=this.\u0275fac=function(){let h;return function(w){return(h||(h=o.xGo(E)))(w||E)}}();static#t=this.\u0275cmp=o.VBU({type:E,selectors:[["ui-material-textarea"]],standalone:!0,features:[o.Jv_([(0,Oo.Hf)([{key:"cdk-textarea-autosize",token:Rc},{key:"mat-input",token:a2}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"example-full-width"],["matInput","","cdkTextareaAutosize","",3,"formControl","propsBinding","input"]],template:function(b,w){1&b&&o.DNE(0,Rg,5,10,"ng-container",0),2&b&&o.Y8G("ngIf",w.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,Zd,a2,Da,zu,Rc,Oo.XO],encapsulation:2})}return E})()}},3269:(vn,J,F)=>{"use strict";F.d(J,{j:()=>pd});var g=F(6610),o=F(2978),V=F(8832),oe=F(2709),De=F(6104);class pe{static equals(Le,p,M){return M?this.resolveFieldData(Le,M)===this.resolveFieldData(p,M):this.equalsByValue(Le,p)}static equalsByValue(Le,p){if(Le===p)return!0;if(Le&&p&&"object"==typeof Le&&"object"==typeof p){var ee,Qe,rn,M=Array.isArray(Le),T=Array.isArray(p);if(M&&T){if((Qe=Le.length)!=p.length)return!1;for(ee=Qe;0!=ee--;)if(!this.equalsByValue(Le[ee],p[ee]))return!1;return!0}if(M!=T)return!1;var ri=this.isDate(Le),Si=this.isDate(p);if(ri!=Si)return!1;if(ri&&Si)return Le.getTime()==p.getTime();var Zi=Le instanceof RegExp,tr=p instanceof RegExp;if(Zi!=tr)return!1;if(Zi&&tr)return Le.toString()==p.toString();var fs=Object.keys(Le);if((Qe=fs.length)!==Object.keys(p).length)return!1;for(ee=Qe;0!=ee--;)if(!Object.prototype.hasOwnProperty.call(p,fs[ee]))return!1;for(ee=Qe;0!=ee--;)if(!this.equalsByValue(Le[rn=fs[ee]],p[rn]))return!1;return!0}return Le!=Le&&p!=p}static resolveFieldData(Le,p){if(Le&&p){if(this.isFunction(p))return p(Le);if(-1==p.indexOf("."))return Le[p];{let M=p.split("."),T=Le;for(let ee=0,Qe=M.length;ee=Le.length&&(M%=Le.length,p%=Le.length),Le.splice(M,0,Le.splice(p,1)[0]))}static insertIntoOrderedArray(Le,p,M,T){if(M.length>0){let ee=!1;for(let Qe=0;Qep){M.splice(Qe,0,Le),ee=!0;break}ee||M.push(Le)}else M.push(Le)}static findIndexInList(Le,p){let M=-1;if(p)for(let T=0;T-1&&(Le=Le.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),Le}static isDate(Le){return"[object Date]"===Object.prototype.toString.call(Le)}static isEmpty(Le){return null==Le||""===Le||Array.isArray(Le)&&0===Le.length||!this.isDate(Le)&&"object"==typeof Le&&0===Object.keys(Le).length}static isNotEmpty(Le){return!this.isEmpty(Le)}static compare(Le,p,M,T=1){let ee=-1;const Qe=this.isEmpty(Le),rn=this.isEmpty(p);return ee=Qe&&rn?0:Qe?T:rn?-T:"string"==typeof Le&&"string"==typeof p?Le.localeCompare(p,M,{numeric:!0}):Lep?1:0,ee}static sort(Le,p,M=1,T,ee=1){return(1===ee?M:ee)*pe.compare(Le,p,T,M)}static merge(Le,p){if(null!=Le||null!=p)return null!=Le&&"object"!=typeof Le||null!=p&&"object"!=typeof p?null!=Le&&"string"!=typeof Le||null!=p&&"string"!=typeof p?p||Le:[Le||"",p||""].join(" "):{...Le||{},...p||{}}}static isPrintableCharacter(Le=""){return this.isNotEmpty(Le)&&1===Le.length&&Le.match(/\S| /)}static getItemValue(Le,...p){return this.isFunction(Le)?Le(...p):Le}static findLastIndex(Le,p){let M=-1;if(this.isNotEmpty(Le))try{M=Le.findLastIndex(p)}catch{M=Le.lastIndexOf([...Le].reverse().find(p))}return M}static findLast(Le,p){let M;if(this.isNotEmpty(Le))try{M=Le.findLast(p)}catch{M=[...Le].reverse().find(p)}return M}}var Ee=0;function be(P="pn_id_"){return`${P}${++Ee}`}var Te=function me(){let P=[];const T=ee=>ee&&parseInt(ee.style.zIndex,10)||0;return{get:T,set:(ee,Qe,rn)=>{Qe&&(Qe.style.zIndex=String(((ee,Qe)=>{let rn=P.length>0?P[P.length-1]:{key:ee,value:Qe},ri=rn.value+(rn.key===ee?0:Qe)+2;return P.push({key:ee,value:ri}),ri})(ee,rn)))},clear:ee=>{ee&&((ee=>{P=P.filter(Qe=>Qe.value!==ee)})(T(ee)),ee.style.zIndex="")},getCurrent:()=>P.length>0?P[P.length-1].value:0}}();let tt=(()=>class P{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),Fe=(()=>{class P{filter(p,M,T,ee,Qe){let rn=[];if(p)for(let ri of p)for(let Si of M){let Zi=pe.resolveFieldData(ri,Si);if(this.filters[ee](Zi,T,Qe)){rn.push(ri);break}}return rn}filters={startsWith:(p,M,T)=>{if(null==M||""===M.trim())return!0;if(null==p)return!1;let ee=pe.removeAccents(M.toString()).toLocaleLowerCase(T);return pe.removeAccents(p.toString()).toLocaleLowerCase(T).slice(0,ee.length)===ee},contains:(p,M,T)=>{if(null==M||"string"==typeof M&&""===M.trim())return!0;if(null==p)return!1;let ee=pe.removeAccents(M.toString()).toLocaleLowerCase(T);return-1!==pe.removeAccents(p.toString()).toLocaleLowerCase(T).indexOf(ee)},notContains:(p,M,T)=>{if(null==M||"string"==typeof M&&""===M.trim())return!0;if(null==p)return!1;let ee=pe.removeAccents(M.toString()).toLocaleLowerCase(T);return-1===pe.removeAccents(p.toString()).toLocaleLowerCase(T).indexOf(ee)},endsWith:(p,M,T)=>{if(null==M||""===M.trim())return!0;if(null==p)return!1;let ee=pe.removeAccents(M.toString()).toLocaleLowerCase(T),Qe=pe.removeAccents(p.toString()).toLocaleLowerCase(T);return-1!==Qe.indexOf(ee,Qe.length-ee.length)},equals:(p,M,T)=>null==M||"string"==typeof M&&""===M.trim()||null!=p&&(p.getTime&&M.getTime?p.getTime()===M.getTime():pe.removeAccents(p.toString()).toLocaleLowerCase(T)==pe.removeAccents(M.toString()).toLocaleLowerCase(T)),notEquals:(p,M,T)=>!(null==M||"string"==typeof M&&""===M.trim()||null!=p&&(p.getTime&&M.getTime?p.getTime()===M.getTime():pe.removeAccents(p.toString()).toLocaleLowerCase(T)==pe.removeAccents(M.toString()).toLocaleLowerCase(T))),in:(p,M)=>{if(null==M||0===M.length)return!0;for(let T=0;Tnull==M||null==M[0]||null==M[1]||null!=p&&(p.getTime?M[0].getTime()<=p.getTime()&&p.getTime()<=M[1].getTime():M[0]<=p&&p<=M[1]),lt:(p,M,T)=>null==M||null!=p&&(p.getTime&&M.getTime?p.getTime()null==M||null!=p&&(p.getTime&&M.getTime?p.getTime()<=M.getTime():p<=M),gt:(p,M,T)=>null==M||null!=p&&(p.getTime&&M.getTime?p.getTime()>M.getTime():p>M),gte:(p,M,T)=>null==M||null!=p&&(p.getTime&&M.getTime?p.getTime()>=M.getTime():p>=M),is:(p,M,T)=>this.filters.equals(p,M,T),isNot:(p,M,T)=>this.filters.notEquals(p,M,T),before:(p,M,T)=>this.filters.lt(p,M,T),after:(p,M,T)=>this.filters.gt(p,M,T),dateIs:(p,M)=>null==M||null!=p&&p.toDateString()===M.toDateString(),dateIsNot:(p,M)=>null==M||null!=p&&p.toDateString()!==M.toDateString(),dateBefore:(p,M)=>null==M||null!=p&&p.getTime()null==M||null!=p&&p.getTime()>M.getTime()};register(p,M){this.filters[p]=M}static \u0275fac=function(M){return new(M||P)};static \u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),at=(()=>{class P{clickSource=new De.B;clickObservable=this.clickSource.asObservable();add(p){p&&this.clickSource.next(p)}static \u0275fac=function(M){return new(M||P)};static \u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),he=(()=>{class P{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[tt.STARTS_WITH,tt.CONTAINS,tt.NOT_CONTAINS,tt.ENDS_WITH,tt.EQUALS,tt.NOT_EQUALS],numeric:[tt.EQUALS,tt.NOT_EQUALS,tt.LESS_THAN,tt.LESS_THAN_OR_EQUAL_TO,tt.GREATER_THAN,tt.GREATER_THAN_OR_EQUAL_TO],date:[tt.DATE_IS,tt.DATE_IS_NOT,tt.DATE_BEFORE,tt.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new De.B;translationObserver=this.translationSource.asObservable();getTranslation(p){return this.translation[p]}setTranslation(p){this.translation={...this.translation,...p},this.translationSource.next(this.translation)}static \u0275fac=function(M){return new(M||P)};static \u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),it=(()=>{class P{template;type;name;constructor(p){this.template=p}getType(){return this.name}static \u0275fac=function(M){return new(M||P)(o.rXU(o.C4Q))};static \u0275dir=o.FsC({type:P,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return P})(),dt=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})(),jt=(()=>class P{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})();const wn=["*"];let Wn=(()=>{class P{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const p=pe.isEmpty(this.label);this.role=p?void 0:"img",this.ariaLabel=p?void 0:this.label,this.ariaHidden=p}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(M){return new(M||P)};static \u0275cmp=o.VBU({type:P,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[o.aNF],ngContentSelectors:wn,decls:1,vars:0,template:function(M,T){1&M&&(o.NAR(),o.SdG(0))},encapsulation:2,changeDetection:0})}return P})(),di=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["CheckIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})();const ai=["input"];function Li(P,Le){if(1&P&&o.nrm(0,"span",10),2&P){const p=o.XpG(3);o.Y8G("ngClass",p.checkboxIcon),o.BMQ("data-pc-section","icon")}}function $i(P,Le){1&P&&o.nrm(0,"CheckIcon",11),2&P&&(o.Y8G("styleClass","p-checkbox-icon"),o.BMQ("data-pc-section","icon"))}function Hr(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Li,1,2,"span",8),o.DNE(2,$i,1,2,"CheckIcon",9),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("ngIf",p.checkboxIcon),o.R7$(1),o.Y8G("ngIf",!p.checkboxIcon)}}function ui(P,Le){}function dn(P,Le){1&P&&o.DNE(0,ui,0,0,"ng-template")}function nt(P,Le){if(1&P&&(o.j41(0,"span",12),o.DNE(1,dn,1,0,null,13),o.k0s()),2&P){const p=o.XpG(2);o.BMQ("data-pc-section","icon"),o.R7$(1),o.Y8G("ngTemplateOutlet",p.checkboxIconTemplate)}}function ht(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Hr,3,2,"ng-container",5),o.DNE(2,nt,2,2,"span",7),o.bVm()),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngIf",!p.checkboxIconTemplate),o.R7$(1),o.Y8G("ngIf",p.checkboxIconTemplate)}}const Je=function(P,Le,p){return{"p-checkbox-label":!0,"p-checkbox-label-active":P,"p-disabled":Le,"p-checkbox-label-focus":p}};function Ae(P,Le){if(1&P){const p=o.RV6();o.j41(0,"label",14),o.bIt("click",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onClick(T))}),o.EFF(1),o.k0s()}if(2&P){const p=o.XpG();o.HbH(p.labelStyleClass),o.Y8G("ngClass",o.sMw(6,Je,p.checked(),p.disabled,p.focused)),o.BMQ("for",p.inputId)("data-pc-section","label"),o.R7$(1),o.SpI(" ",p.label,"")}}const Ue=function(P,Le,p){return{"p-checkbox p-component":!0,"p-checkbox-checked":P,"p-checkbox-disabled":Le,"p-checkbox-focused":p}},Ze=function(P,Le,p){return{"p-highlight":P,"p-disabled":Le,"p-focus":p}},H={provide:V.kq,useExisting:(0,o.Rfq)(()=>te),multi:!0};let te=(()=>{class P{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new o.bkB;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(p){this.cd=p}ngAfterContentInit(){this.templates.forEach(p=>{"icon"===p.getType()&&(this.checkboxIconTemplate=p.template)})}onClick(p){if(!this.disabled&&!this.readonly){let M;this.inputViewChild.nativeElement.focus(),this.binary?(M=this.checked()?this.falseValue:this.trueValue,this.model=M,this.onModelChange(M)):(M=this.checked()?this.model.filter(T=>!pe.equals(T,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(M),this.model=M,this.formControl&&this.formControl.setValue(M)),this.onChange.emit({checked:M,originalEvent:p})}}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(p){this.model=p,this.cd.markForCheck()}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:pe.contains(this.value,this.model)}static \u0275fac=function(M){return new(M||P)(o.rXU(o.gRc))};static \u0275cmp=o.VBU({type:P,selectors:[["p-checkbox"]],contentQueries:function(M,T,ee){if(1&M&&o.wni(ee,it,4),2&M){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(M,T){if(1&M&&o.GBs(ai,5),2&M){let ee;o.mGM(ee=o.lsd())&&(T.inputViewChild=ee.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[o.Jv_([H])],decls:7,vars:35,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"value","checked","disabled","readonly","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(M,T){1&M&&(o.j41(0,"div",0),o.bIt("click",function(Qe){return T.onClick(Qe)}),o.j41(1,"div",1)(2,"input",2,3),o.bIt("focus",function(){return T.onFocus()})("blur",function(){return T.onBlur()}),o.k0s()(),o.j41(4,"div",4),o.DNE(5,ht,3,2,"ng-container",5),o.k0s()(),o.DNE(6,Ae,2,10,"label",6)),2&M&&(o.HbH(T.styleClass),o.Y8G("ngStyle",T.style)("ngClass",o.sMw(27,Ue,T.checked(),T.disabled,T.focused)),o.BMQ("data-pc-name","checkbox")("data-pc-section","root"),o.R7$(1),o.BMQ("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),o.R7$(1),o.Y8G("value",T.value)("checked",T.checked())("disabled",T.disabled)("readonly",T.readonly),o.BMQ("id",T.inputId)("name",T.name)("tabindex",T.tabindex)("required",T.required)("aria-labelledby",T.ariaLabelledBy)("aria-label",T.ariaLabel)("aria-checked",T.checked())("data-pc-section","hiddenInput"),o.R7$(2),o.Y8G("ngClass",o.sMw(31,Ze,T.checked(),T.disabled,T.focused)),o.BMQ("data-p-highlight",T.checked())("data-p-disabled",T.disabled)("data-p-focused",T.focused)("data-pc-section","input"),o.R7$(1),o.Y8G("ngIf",T.checked()),o.R7$(1),o.Y8G("ngIf",T.label))},dependencies:function(){return[g.YU,g.bT,g.T3,g.B3,di]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return P})(),xe=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,di,dt]})}return P})(),Ce=(()=>{class P{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(p,M){p&&M&&(p.classList?p.classList.add(M):p.className+=" "+M)}static addMultipleClasses(p,M){if(p&&M)if(p.classList){let T=M.trim().split(" ");for(let ee=0;eeT.split(" ").forEach(ee=>this.removeClass(p,ee)))}static hasClass(p,M){return!(!p||!M)&&(p.classList?p.classList.contains(M):new RegExp("(^| )"+M+"( |$)","gi").test(p.className))}static siblings(p){return Array.prototype.filter.call(p.parentNode.children,function(M){return M!==p})}static find(p,M){return Array.from(p.querySelectorAll(M))}static findSingle(p,M){return this.isElement(p)?p.querySelector(M):null}static index(p){let M=p.parentNode.childNodes,T=0;for(var ee=0;ee{if(Do)return"relative"===getComputedStyle(Do).getPropertyValue("position")?Do:T(Do.parentElement)},ee=p.offsetParent?{width:p.offsetWidth,height:p.offsetHeight}:this.getHiddenElementDimensions(p),Qe=M.offsetHeight,rn=M.getBoundingClientRect(),ri=this.getWindowScrollTop(),Si=this.getWindowScrollLeft(),Zi=this.getViewport(),fs=T(p)?.getBoundingClientRect()||{top:-1*ri,left:-1*Si};let kr,Eo;rn.top+Qe+ee.height>Zi.height?(kr=rn.top-fs.top-ee.height,p.style.transformOrigin="bottom",rn.top+kr<0&&(kr=-1*rn.top)):(kr=Qe+rn.top-fs.top,p.style.transformOrigin="top");const fo=rn.left+ee.width-Zi.width;Eo=ee.width>Zi.width?-1*(rn.left-fs.left):fo>0?rn.left-fs.left-fo:rn.left-fs.left,p.style.top=kr+"px",p.style.left=Eo+"px"}static absolutePosition(p,M){const T=p.offsetParent?{width:p.offsetWidth,height:p.offsetHeight}:this.getHiddenElementDimensions(p),ee=T.height,Qe=T.width,rn=M.offsetHeight,ri=M.offsetWidth,Si=M.getBoundingClientRect(),Zi=this.getWindowScrollTop(),tr=this.getWindowScrollLeft(),fs=this.getViewport();let kr,Eo;Si.top+rn+ee>fs.height?(kr=Si.top+Zi-ee,p.style.transformOrigin="bottom",kr<0&&(kr=Zi)):(kr=rn+Si.top+Zi,p.style.transformOrigin="top"),Eo=Si.left+Qe>fs.width?Math.max(0,Si.left+tr+ri-Qe):Si.left+tr,p.style.top=kr+"px",p.style.left=Eo+"px"}static getParents(p,M=[]){return null===p.parentNode?M:this.getParents(p.parentNode,M.concat([p.parentNode]))}static getScrollableParents(p){let M=[];if(p){let T=this.getParents(p);const ee=/(auto|scroll)/,Qe=rn=>{let ri=window.getComputedStyle(rn,null);return ee.test(ri.getPropertyValue("overflow"))||ee.test(ri.getPropertyValue("overflowX"))||ee.test(ri.getPropertyValue("overflowY"))};for(let rn of T){let ri=1===rn.nodeType&&rn.dataset.scrollselectors;if(ri){let Si=ri.split(",");for(let Zi of Si){let tr=this.findSingle(rn,Zi);tr&&Qe(tr)&&M.push(tr)}}9!==rn.nodeType&&Qe(rn)&&M.push(rn)}}return M}static getHiddenElementOuterHeight(p){p.style.visibility="hidden",p.style.display="block";let M=p.offsetHeight;return p.style.display="none",p.style.visibility="visible",M}static getHiddenElementOuterWidth(p){p.style.visibility="hidden",p.style.display="block";let M=p.offsetWidth;return p.style.display="none",p.style.visibility="visible",M}static getHiddenElementDimensions(p){let M={};return p.style.visibility="hidden",p.style.display="block",M.width=p.offsetWidth,M.height=p.offsetHeight,p.style.display="none",p.style.visibility="visible",M}static scrollInView(p,M){let T=getComputedStyle(p).getPropertyValue("borderTopWidth"),ee=T?parseFloat(T):0,Qe=getComputedStyle(p).getPropertyValue("paddingTop"),rn=Qe?parseFloat(Qe):0,ri=p.getBoundingClientRect(),Zi=M.getBoundingClientRect().top+document.body.scrollTop-(ri.top+document.body.scrollTop)-ee-rn,tr=p.scrollTop,fs=p.clientHeight,kr=this.getOuterHeight(M);Zi<0?p.scrollTop=tr+Zi:Zi+kr>fs&&(p.scrollTop=tr+Zi-fs+kr)}static fadeIn(p,M){p.style.opacity=0;let T=+new Date,ee=0,Qe=function(){ee=+p.style.opacity.replace(",",".")+((new Date).getTime()-T)/M,p.style.opacity=ee,T=+new Date,+ee<1&&(window.requestAnimationFrame&&requestAnimationFrame(Qe)||setTimeout(Qe,16))};Qe()}static fadeOut(p,M){var T=1,rn=50/M;let ri=setInterval(()=>{(T-=rn)<=0&&(T=0,clearInterval(ri)),p.style.opacity=T},50)}static getWindowScrollTop(){let p=document.documentElement;return(window.pageYOffset||p.scrollTop)-(p.clientTop||0)}static getWindowScrollLeft(){let p=document.documentElement;return(window.pageXOffset||p.scrollLeft)-(p.clientLeft||0)}static matches(p,M){var T=Element.prototype;return(T.matches||T.webkitMatchesSelector||T.mozMatchesSelector||T.msMatchesSelector||function(Qe){return-1!==[].indexOf.call(document.querySelectorAll(Qe),this)}).call(p,M)}static getOuterWidth(p,M){let T=p.offsetWidth;if(M){let ee=getComputedStyle(p);T+=parseFloat(ee.marginLeft)+parseFloat(ee.marginRight)}return T}static getHorizontalPadding(p){let M=getComputedStyle(p);return parseFloat(M.paddingLeft)+parseFloat(M.paddingRight)}static getHorizontalMargin(p){let M=getComputedStyle(p);return parseFloat(M.marginLeft)+parseFloat(M.marginRight)}static innerWidth(p){let M=p.offsetWidth,T=getComputedStyle(p);return M+=parseFloat(T.paddingLeft)+parseFloat(T.paddingRight),M}static width(p){let M=p.offsetWidth,T=getComputedStyle(p);return M-=parseFloat(T.paddingLeft)+parseFloat(T.paddingRight),M}static getInnerHeight(p){let M=p.offsetHeight,T=getComputedStyle(p);return M+=parseFloat(T.paddingTop)+parseFloat(T.paddingBottom),M}static getOuterHeight(p,M){let T=p.offsetHeight;if(M){let ee=getComputedStyle(p);T+=parseFloat(ee.marginTop)+parseFloat(ee.marginBottom)}return T}static getHeight(p){let M=p.offsetHeight,T=getComputedStyle(p);return M-=parseFloat(T.paddingTop)+parseFloat(T.paddingBottom)+parseFloat(T.borderTopWidth)+parseFloat(T.borderBottomWidth),M}static getWidth(p){let M=p.offsetWidth,T=getComputedStyle(p);return M-=parseFloat(T.paddingLeft)+parseFloat(T.paddingRight)+parseFloat(T.borderLeftWidth)+parseFloat(T.borderRightWidth),M}static getViewport(){let p=window,M=document,T=M.documentElement,ee=M.getElementsByTagName("body")[0];return{width:p.innerWidth||T.clientWidth||ee.clientWidth,height:p.innerHeight||T.clientHeight||ee.clientHeight}}static getOffset(p){var M=p.getBoundingClientRect();return{top:M.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:M.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(p,M){let T=p.parentNode;if(!T)throw"Can't replace element";return T.replaceChild(M,p)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var p=window.navigator.userAgent;return p.indexOf("MSIE ")>0||(p.indexOf("Trident/")>0?(p.indexOf("rv:"),!0):p.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(p,M){if(this.isElement(M))M.appendChild(p);else{if(!(M&&M.el&&M.el.nativeElement))throw"Cannot append "+M+" to "+p;M.el.nativeElement.appendChild(p)}}static removeChild(p,M){if(this.isElement(M))M.removeChild(p);else{if(!M.el||!M.el.nativeElement)throw"Cannot remove "+p+" from "+M;M.el.nativeElement.removeChild(p)}}static removeElement(p){"remove"in Element.prototype?p.remove():p.parentNode.removeChild(p)}static isElement(p){return"object"==typeof HTMLElement?p instanceof HTMLElement:p&&"object"==typeof p&&null!==p&&1===p.nodeType&&"string"==typeof p.nodeName}static calculateScrollbarWidth(p){if(p){let M=getComputedStyle(p);return p.offsetWidth-p.clientWidth-parseFloat(M.borderLeftWidth)-parseFloat(M.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let M=document.createElement("div");M.className="p-scrollbar-measure",document.body.appendChild(M);let T=M.offsetWidth-M.clientWidth;return document.body.removeChild(M),this.calculatedScrollbarWidth=T,T}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let p=document.createElement("div");p.className="p-scrollbar-measure",document.body.appendChild(p);let M=p.offsetHeight-p.clientHeight;return document.body.removeChild(p),this.calculatedScrollbarWidth=M,M}static invokeElementMethod(p,M,T){p[M].apply(p,T)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let p=this.resolveUserAgent();this.browser={},p.browser&&(this.browser[p.browser]=!0,this.browser.version=p.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let p=navigator.userAgent.toLowerCase(),M=/(chrome)[ \/]([\w.]+)/.exec(p)||/(webkit)[ \/]([\w.]+)/.exec(p)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(p)||/(msie) ([\w.]+)/.exec(p)||p.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(p)||[];return{browser:M[1]||"",version:M[2]||"0"}}static isInteger(p){return Number.isInteger?Number.isInteger(p):"number"==typeof p&&isFinite(p)&&Math.floor(p)===p}static isHidden(p){return!p||null===p.offsetParent}static isVisible(p){return p&&null!=p.offsetParent}static isExist(p){return null!==p&&typeof p<"u"&&p.nodeName&&p.parentNode}static focus(p,M){p&&document.activeElement!==p&&p.focus(M)}static getFocusableElements(p,M=""){let T=this.find(p,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${M},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${M},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${M},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${M},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${M},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${M},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${M}`),ee=[];for(let Qe of T)"none"!=getComputedStyle(Qe).display&&"hidden"!=getComputedStyle(Qe).visibility&&ee.push(Qe);return ee}static getFirstFocusableElement(p,M){const T=this.getFocusableElements(p,M);return T.length>0?T[0]:null}static getLastFocusableElement(p,M){const T=this.getFocusableElements(p,M);return T.length>0?T[T.length-1]:null}static getNextFocusableElement(p,M=!1){const T=P.getFocusableElements(p);let ee=0;if(T&&T.length>0){const Qe=T.indexOf(T[0].ownerDocument.activeElement);M?ee=-1==Qe||0===Qe?T.length-1:Qe-1:-1!=Qe&&Qe!==T.length-1&&(ee=Qe+1)}return T[ee]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(p,M){if(!p)return null;switch(p){case"document":return document;case"window":return window;case"@next":return M?.nextElementSibling;case"@prev":return M?.previousElementSibling;case"@parent":return M?.parentElement;case"@grandparent":return M?.parentElement.parentElement;default:const T=typeof p;if("string"===T)return document.querySelector(p);if("object"===T&&p.hasOwnProperty("nativeElement"))return this.isExist(p.nativeElement)?p.nativeElement:void 0;const Qe=(rn=p)&&rn.constructor&&rn.call&&rn.apply?p():p;return Qe&&9===Qe.nodeType||this.isExist(Qe)?Qe:null}var rn}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(p,M){if(p){const T=p.getAttribute(M);return isNaN(T)?"true"===T||"false"===T?"true"===T:T:+T}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(p="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,p)}static unblockBodyScroll(p="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,p)}}return P})();class zt{element;listener;scrollableParents;constructor(Le,p=(()=>{})){this.element=Le,this.listener=p}bindScrollListener(){this.scrollableParents=Ce.getScrollableParents(this.element);for(let Le=0;Le{class P{host;constructor(p){this.host=p}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const p=Ce.getFocusableElements(this.host.nativeElement);0===p.length&&this.host.nativeElement.focus(),p.length>0&&p[0].focus(),this.focused=!0}}static \u0275fac=function(M){return new(M||P)(o.rXU(o.aKT))};static \u0275dir=o.FsC({type:P,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return P})(),xt=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();var Gt=F(194);const xn=["overlay"],In=["content"];function xi(P,Le){1&P&&o.eu8(0)}const or=function(P,Le,p){return{showTransitionParams:P,hideTransitionParams:Le,transform:p}},ci=function(P){return{value:"visible",params:P}},Dr=function(P){return{mode:P}},Tr=function(P){return{$implicit:P}};function cn(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",1,3),o.bIt("click",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onOverlayContentClick(T))})("@overlayContentAnimation.start",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onOverlayContentAnimationStart(T))})("@overlayContentAnimation.done",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onOverlayContentAnimationDone(T))}),o.SdG(2),o.DNE(3,xi,1,0,"ng-container",4),o.k0s()}if(2&P){const p=o.XpG(2);o.HbH(p.contentStyleClass),o.Y8G("ngStyle",p.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",o.eq3(11,ci,o.sMw(7,or,p.showTransitionOptions,p.hideTransitionOptions,p.transformOptions[p.modal?p.overlayResponsiveDirection:"default"]))),o.R7$(3),o.Y8G("ngTemplateOutlet",p.contentTemplate)("ngTemplateOutletContext",o.eq3(15,Tr,o.eq3(13,Dr,p.overlayMode)))}}const On=function(P,Le,p,M,T,ee,Qe,rn,ri,Si,Zi,tr,fs,kr){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":P,"p-overlay-center":Le,"p-overlay-top":p,"p-overlay-top-start":M,"p-overlay-top-end":T,"p-overlay-bottom":ee,"p-overlay-bottom-start":Qe,"p-overlay-bottom-end":rn,"p-overlay-left":ri,"p-overlay-left-start":Si,"p-overlay-left-end":Zi,"p-overlay-right":tr,"p-overlay-right-start":fs,"p-overlay-right-end":kr}};function Qn(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",1,2),o.bIt("click",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onOverlayClick())}),o.DNE(2,cn,4,17,"div",0),o.k0s()}if(2&P){const p=o.XpG();o.HbH(p.styleClass),o.Y8G("ngStyle",p.style)("ngClass",o.zJS(5,On,[p.modal,p.modal&&"center"===p.overlayResponsiveDirection,p.modal&&"top"===p.overlayResponsiveDirection,p.modal&&"top-start"===p.overlayResponsiveDirection,p.modal&&"top-end"===p.overlayResponsiveDirection,p.modal&&"bottom"===p.overlayResponsiveDirection,p.modal&&"bottom-start"===p.overlayResponsiveDirection,p.modal&&"bottom-end"===p.overlayResponsiveDirection,p.modal&&"left"===p.overlayResponsiveDirection,p.modal&&"left-start"===p.overlayResponsiveDirection,p.modal&&"left-end"===p.overlayResponsiveDirection,p.modal&&"right"===p.overlayResponsiveDirection,p.modal&&"right-start"===p.overlayResponsiveDirection,p.modal&&"right-end"===p.overlayResponsiveDirection])),o.R7$(2),o.Y8G("ngIf",p.visible)}}const fi=["*"],qe={provide:V.kq,useExisting:(0,o.Rfq)(()=>hn),multi:!0},Mt=(0,Gt.lY)([(0,Gt.iF)({transform:"{{transform}}",opacity:0}),(0,Gt.i0)("{{showTransitionParams}}")]),Bt=(0,Gt.lY)([(0,Gt.i0)("{{hideTransitionParams}}",(0,Gt.iF)({transform:"{{transform}}",opacity:0}))]);let hn=(()=>{class P{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(p){this._visible=p,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(p){this._mode=p}get style(){return pe.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(p){this._style=p}get styleClass(){return pe.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(p){this._styleClass=p}get contentStyle(){return pe.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(p){this._contentStyle=p}get contentStyleClass(){return pe.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(p){this._contentStyleClass=p}get target(){const p=this._target||this.overlayOptions?.target;return void 0===p?"@prev":p}set target(p){this._target=p}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(p){this._appendTo=p}get autoZIndex(){const p=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===p||p}set autoZIndex(p){this._autoZIndex=p}get baseZIndex(){const p=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===p?0:p}set baseZIndex(p){this._baseZIndex=p}get showTransitionOptions(){const p=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===p?".12s cubic-bezier(0, 0, 0.2, 1)":p}set showTransitionOptions(p){this._showTransitionOptions=p}get hideTransitionOptions(){const p=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===p?".1s linear":p}set hideTransitionOptions(p){this._hideTransitionOptions=p}get listener(){return this._listener||this.overlayOptions?.listener}set listener(p){this._listener=p}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(p){this._responsive=p}get options(){return this._options}set options(p){this._options=p}visibleChange=new o.bkB;onBeforeShow=new o.bkB;onShow=new o.bkB;onBeforeHide=new o.bkB;onHide=new o.bkB;onAnimationStart=new o.bkB;onAnimationDone=new o.bkB;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if((0,g.UE)(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Ce.getTargetElement(this.target,this.el?.nativeElement)}constructor(p,M,T,ee,Qe,rn,ri,Si){this.document=p,this.platformId=M,this.el=T,this.renderer=ee,this.config=Qe,this.overlayService=rn,this.cd=ri,this.zone=Si,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(p=>{p.getType(),this.contentTemplate=p.template})}show(p,M=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:p||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),M&&Ce.focus(this.targetEl),this.modal&&Ce.addClass(this.document?.body,"p-overflow-hidden")}hide(p,M=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:p||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),M&&Ce.focus(this.targetEl),this.modal&&Ce.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&Ce.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(p){this._visible=p,this.visibleChange.emit(p)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(p){this.overlayService.add({originalEvent:p,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(p){switch(p.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Te.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),Ce.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&Ce.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",p)}onOverlayContentAnimationDone(p){const M=this.overlayEl||p.element.parentElement;switch(p.toState){case"visible":this.show(M,!0),this.bindListeners();break;case"void":this.hide(M,!0),this.unbindListeners(),Ce.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Te.clear(M),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",p)}handleEvents(p,M){this[p].emit(M),this.options&&this.options[p]&&this.options[p](M),this.config?.overlayOptions&&(this.config?.overlayOptions)[p]&&(this.config?.overlayOptions)[p](M)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new zt(this.targetEl,p=>{(!this.listener||this.listener(p,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(p,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",p=>{const T=!(this.targetEl&&(this.targetEl.isSameNode(p.target)||!this.isOverlayClicked&&this.targetEl.contains(p.target))||this.isOverlayContentClicked);(this.listener?this.listener(p,{type:"outside",mode:this.overlayMode,valid:3!==p.which&&T}):T)&&this.hide(p),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",p=>{(this.listener?this.listener(p,{type:"resize",mode:this.overlayMode,valid:!Ce.isTouchDevice()}):!Ce.isTouchDevice())&&this.hide(p,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",p=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===p.code&&(this.listener?this.listener(p,{type:"keydown",mode:this.overlayMode,valid:!Ce.isTouchDevice()}):!Ce.isTouchDevice())&&this.zone.run(()=>{this.hide(p,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(Ce.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Te.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(M){return new(M||P)(o.rXU(g.qQ),o.rXU(o.Agw),o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(he),o.rXU(at),o.rXU(o.gRc),o.rXU(o.SKi))};static \u0275cmp=o.VBU({type:P,selectors:[["p-overlay"]],contentQueries:function(M,T,ee){if(1&M&&o.wni(ee,it,4),2&M){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(M,T){if(1&M&&(o.GBs(xn,5),o.GBs(In,5)),2&M){let ee;o.mGM(ee=o.lsd())&&(T.overlayViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.contentViewChild=ee.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[o.Jv_([qe])],ngContentSelectors:fi,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(M,T){1&M&&(o.NAR(),o.DNE(0,Qn,3,20,"div",0)),2&M&&o.Y8G("ngIf",T.modalVisible)},dependencies:[g.YU,g.bT,g.T3,g.B3],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[(0,Gt.hZ)("overlayContentAnimation",[(0,Gt.kY)(":enter",[(0,Gt.sM)(Mt)]),(0,Gt.kY)(":leave",[(0,Gt.sM)(Bt)])])]},changeDetection:0})}return P})(),Mn=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,dt,dt]})}return P})(),Vi=(()=>{class P{document;platformId;renderer;el;zone;config;constructor(p,M,T,ee,Qe,rn){this.document=p,this.platformId=M,this.renderer=T,this.el=ee,this.zone=Qe,this.config=rn}animationListener;mouseDownListener;timeout;ngAfterViewInit(){(0,g.UE)(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(p){let M=this.getInk();if(!M||"none"===this.document.defaultView?.getComputedStyle(M,null).display)return;if(Ce.removeClass(M,"p-ink-active"),!Ce.getHeight(M)&&!Ce.getWidth(M)){let rn=Math.max(Ce.getOuterWidth(this.el.nativeElement),Ce.getOuterHeight(this.el.nativeElement));M.style.height=rn+"px",M.style.width=rn+"px"}let T=Ce.getOffset(this.el.nativeElement),ee=p.pageX-T.left+this.document.body.scrollTop-Ce.getWidth(M)/2,Qe=p.pageY-T.top+this.document.body.scrollLeft-Ce.getHeight(M)/2;this.renderer.setStyle(M,"top",Qe+"px"),this.renderer.setStyle(M,"left",ee+"px"),Ce.addClass(M,"p-ink-active"),this.timeout=setTimeout(()=>{let rn=this.getInk();rn&&Ce.removeClass(rn,"p-ink-active")},401)}getInk(){const p=this.el.nativeElement.children;for(let M=0;M{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})(),Qi=(()=>{class P extends Wn{pathId;ngOnInit(){this.pathId="url(#"+be()+")"}static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["SpinnerIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0)(1,"g"),o.nrm(2,"path",1),o.k0s(),o.j41(3,"defs")(4,"clipPath",2),o.nrm(5,"rect",3),o.k0s()()()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role),o.R7$(1),o.BMQ("clip-path",T.pathId),o.R7$(3),o.Y8G("id",T.pathId))},encapsulation:2})}return P})();const dr=["element"],no=["content"];function Jr(P,Le){1&P&&o.eu8(0)}const Ki=function(P,Le){return{$implicit:P,options:Le}};function Ys(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Jr,1,0,"ng-container",7),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("ngTemplateOutlet",p.contentTemplate)("ngTemplateOutletContext",o.l_i(2,Ki,p.loadedItems,p.getContentOptions()))}}function so(P,Le){1&P&&o.eu8(0)}function zo(P,Le){if(1&P&&(o.qex(0),o.DNE(1,so,1,0,"ng-container",7),o.bVm()),2&P){const p=Le.$implicit,M=Le.index,T=o.XpG(3);o.R7$(1),o.Y8G("ngTemplateOutlet",T.itemTemplate)("ngTemplateOutletContext",o.l_i(2,Ki,p,T.getOptions(M)))}}const qa=function(P){return{"p-scroller-loading":P}};function xc(P,Le){if(1&P&&(o.j41(0,"div",8,9),o.DNE(2,zo,2,5,"ng-container",10),o.k0s()),2&P){const p=o.XpG(2);o.Y8G("ngClass",o.eq3(5,qa,p.d_loading))("ngStyle",p.contentStyle),o.BMQ("data-pc-section","content"),o.R7$(2),o.Y8G("ngForOf",p.loadedItems)("ngForTrackBy",p._trackBy||p.index)}}function mo(P,Le){if(1&P&&o.nrm(0,"div",11),2&P){const p=o.XpG(2);o.Y8G("ngStyle",p.spacerStyle),o.BMQ("data-pc-section","spacer")}}function Ss(P,Le){1&P&&o.eu8(0)}const io=function(P){return{numCols:P}},Wo=function(P){return{options:P}};function ic(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Ss,1,0,"ng-container",7),o.bVm()),2&P){const p=Le.index,M=o.XpG(4);o.R7$(1),o.Y8G("ngTemplateOutlet",M.loaderTemplate)("ngTemplateOutletContext",o.eq3(4,Wo,M.getLoaderOptions(p,M.both&&o.eq3(2,io,M._numItemsInViewport.cols))))}}function jn(P,Le){if(1&P&&(o.qex(0),o.DNE(1,ic,2,6,"ng-container",14),o.bVm()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngForOf",p.loaderArr)}}function kn(P,Le){1&P&&o.eu8(0)}const It=function(){return{styleClass:"p-scroller-loading-icon"}};function Jt(P,Le){if(1&P&&(o.qex(0),o.DNE(1,kn,1,0,"ng-container",7),o.bVm()),2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("ngTemplateOutlet",p.loaderIconTemplate)("ngTemplateOutletContext",o.eq3(3,Wo,o.lJ4(2,It)))}}function Un(P,Le){1&P&&o.nrm(0,"SpinnerIcon",16),2&P&&(o.Y8G("styleClass","p-scroller-loading-icon"),o.BMQ("data-pc-section","loadingIcon"))}function yt(P,Le){if(1&P&&(o.DNE(0,Jt,2,5,"ng-container",0),o.DNE(1,Un,1,2,"ng-template",null,15,o.C5r)),2&P){const p=o.sdS(2),M=o.XpG(3);o.Y8G("ngIf",M.loaderIconTemplate)("ngIfElse",p)}}const ft=function(P){return{"p-component-overlay":P}};function Pt(P,Le){if(1&P&&(o.j41(0,"div",12),o.DNE(1,jn,2,1,"ng-container",0),o.DNE(2,yt,3,2,"ng-template",null,13,o.C5r),o.k0s()),2&P){const p=o.sdS(3),M=o.XpG(2);o.Y8G("ngClass",o.eq3(4,ft,!M.loaderTemplate)),o.BMQ("data-pc-section","loader"),o.R7$(1),o.Y8G("ngIf",M.loaderTemplate)("ngIfElse",p)}}const Cn=function(P,Le,p){return{"p-scroller":!0,"p-scroller-inline":P,"p-both-scroll":Le,"p-horizontal-scroll":p}};function pn(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"div",2,3),o.bIt("scroll",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onContainerScroll(T))}),o.DNE(3,Ys,2,5,"ng-container",0),o.DNE(4,xc,3,7,"ng-template",null,4,o.C5r),o.DNE(6,mo,1,2,"div",5),o.DNE(7,Pt,4,6,"div",6),o.k0s(),o.bVm()}if(2&P){const p=o.sdS(5),M=o.XpG();o.R7$(1),o.HbH(M._styleClass),o.Y8G("ngStyle",M._style)("ngClass",o.sMw(12,Cn,M.inline,M.both,M.horizontal)),o.BMQ("id",M._id)("tabindex",M.tabindex)("data-pc-name","scroller")("data-pc-section","root"),o.R7$(2),o.Y8G("ngIf",M.contentTemplate)("ngIfElse",p),o.R7$(3),o.Y8G("ngIf",M._showSpacer),o.R7$(1),o.Y8G("ngIf",!M.loaderDisabled&&M._showLoader&&M.d_loading)}}function Di(P,Le){1&P&&o.eu8(0)}const nr=function(P,Le){return{rows:P,columns:Le}};function tn(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Di,1,0,"ng-container",7),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("ngTemplateOutlet",p.contentTemplate)("ngTemplateOutletContext",o.l_i(5,Ki,p.items,o.l_i(2,nr,p._items,p.loadedColumns)))}}function Tt(P,Le){if(1&P&&(o.SdG(0),o.DNE(1,tn,2,8,"ng-container",17)),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngIf",p.contentTemplate)}}const Kt=["*"];let Vn=(()=>{class P{document;platformId;renderer;cd;zone;get id(){return this._id}set id(p){this._id=p}get style(){return this._style}set style(p){this._style=p}get styleClass(){return this._styleClass}set styleClass(p){this._styleClass=p}get tabindex(){return this._tabindex}set tabindex(p){this._tabindex=p}get items(){return this._items}set items(p){this._items=p}get itemSize(){return this._itemSize}set itemSize(p){this._itemSize=p}get scrollHeight(){return this._scrollHeight}set scrollHeight(p){this._scrollHeight=p}get scrollWidth(){return this._scrollWidth}set scrollWidth(p){this._scrollWidth=p}get orientation(){return this._orientation}set orientation(p){this._orientation=p}get step(){return this._step}set step(p){this._step=p}get delay(){return this._delay}set delay(p){this._delay=p}get resizeDelay(){return this._resizeDelay}set resizeDelay(p){this._resizeDelay=p}get appendOnly(){return this._appendOnly}set appendOnly(p){this._appendOnly=p}get inline(){return this._inline}set inline(p){this._inline=p}get lazy(){return this._lazy}set lazy(p){this._lazy=p}get disabled(){return this._disabled}set disabled(p){this._disabled=p}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(p){this._loaderDisabled=p}get columns(){return this._columns}set columns(p){this._columns=p}get showSpacer(){return this._showSpacer}set showSpacer(p){this._showSpacer=p}get showLoader(){return this._showLoader}set showLoader(p){this._showLoader=p}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(p){this._numToleratedItems=p}get loading(){return this._loading}set loading(p){this._loading=p}get autoSize(){return this._autoSize}set autoSize(p){this._autoSize=p}get trackBy(){return this._trackBy}set trackBy(p){this._trackBy=p}get options(){return this._options}set options(p){this._options=p,p&&"object"==typeof p&&Object.entries(p).forEach(([M,T])=>this[`_${M}`]!==T&&(this[`_${M}`]=T))}onLazyLoad=new o.bkB;onScroll=new o.bkB;onScrollIndexChange=new o.bkB;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(p=>this._columns?p:p.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(p,M,T,ee,Qe){this.document=p,this.platformId=M,this.renderer=T,this.cd=ee,this.zone=Qe}ngOnInit(){this.setInitialState()}ngOnChanges(p){let M=!1;if(p.loading){const{previousValue:T,currentValue:ee}=p.loading;this.lazy&&T!==ee&&ee!==this.d_loading&&(this.d_loading=ee,M=!0)}if(p.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),p.numToleratedItems){const{previousValue:T,currentValue:ee}=p.numToleratedItems;T!==ee&&ee!==this.d_numToleratedItems&&(this.d_numToleratedItems=ee)}if(p.options){const{previousValue:T,currentValue:ee}=p.options;this.lazy&&T?.loading!==ee?.loading&&ee?.loading!==this.d_loading&&(this.d_loading=ee.loading,M=!0),T?.numToleratedItems!==ee?.numToleratedItems&&ee?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=ee.numToleratedItems)}this.initialized&&!M&&(p.items?.previousValue?.length!==p.items?.currentValue?.length||p.itemSize||p.scrollHeight||p.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(p=>{switch(p.getType()){case"content":this.contentTemplate=p.template;break;case"item":default:this.itemTemplate=p.template;break;case"loader":this.loaderTemplate=p.template;break;case"loadericon":this.loaderIconTemplate=p.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){(0,g.UE)(this.platformId)&&Ce.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Ce.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=Ce.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=Ce.getWidth(this.contentEl),this.defaultContentHeight=Ce.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(p){this.contentEl=p||this.contentViewChild?.nativeElement||Ce.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(p){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(p)}scrollToIndex(p,M="auto"){const{numToleratedItems:T}=this.calculateNumItems(),ee=this.getContentPosition(),Qe=(Zi=0,tr)=>Zi<=tr?0:Zi,rn=(Zi,tr,fs)=>Zi*tr+fs,ri=(Zi=0,tr=0)=>this.scrollTo({left:Zi,top:tr,behavior:M});let Si=0;this.both?(Si={rows:Qe(p[0],T[0]),cols:Qe(p[1],T[1])},ri(rn(Si.cols,this._itemSize[1],ee.left),rn(Si.rows,this._itemSize[0],ee.top))):(Si=Qe(p,T),this.horizontal?ri(rn(Si,this._itemSize,ee.left),0):ri(0,rn(Si,this._itemSize,ee.top))),this.isRangeChanged=this.first!==Si,this.first=Si}scrollInView(p,M,T="auto"){if(M){const{first:ee,viewport:Qe}=this.getRenderedRange(),rn=(Zi=0,tr=0)=>this.scrollTo({left:Zi,top:tr,behavior:T}),Si="to-end"===M;if("to-start"===M){if(this.both)Qe.first.rows-ee.rows>p[0]?rn(Qe.first.cols*this._itemSize[1],(Qe.first.rows-1)*this._itemSize[0]):Qe.first.cols-ee.cols>p[1]&&rn((Qe.first.cols-1)*this._itemSize[1],Qe.first.rows*this._itemSize[0]);else if(Qe.first-ee>p){const Zi=(Qe.first-1)*this._itemSize;this.horizontal?rn(Zi,0):rn(0,Zi)}}else if(Si)if(this.both)Qe.last.rows-ee.rows<=p[0]+1?rn(Qe.first.cols*this._itemSize[1],(Qe.first.rows+1)*this._itemSize[0]):Qe.last.cols-ee.cols<=p[1]+1&&rn((Qe.first.cols+1)*this._itemSize[1],Qe.first.rows*this._itemSize[0]);else if(Qe.last-ee<=p+1){const Zi=(Qe.first+1)*this._itemSize;this.horizontal?rn(Zi,0):rn(0,Zi)}}else this.scrollToIndex(p,T)}getRenderedRange(){const p=(ee,Qe)=>Math.floor(ee/(Qe||ee));let M=this.first,T=0;if(this.elementViewChild?.nativeElement){const{scrollTop:ee,scrollLeft:Qe}=this.elementViewChild.nativeElement;this.both?(M={rows:p(ee,this._itemSize[0]),cols:p(Qe,this._itemSize[1])},T={rows:M.rows+this.numItemsInViewport.rows,cols:M.cols+this.numItemsInViewport.cols}):(M=p(this.horizontal?Qe:ee,this._itemSize),T=M+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:M,last:T}}}calculateNumItems(){const p=this.getContentPosition(),M=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-p.left:0)||0,T=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-p.top:0)||0,ee=(Si,Zi)=>Math.ceil(Si/(Zi||Si)),Qe=Si=>Math.ceil(Si/2),rn=this.both?{rows:ee(T,this._itemSize[0]),cols:ee(M,this._itemSize[1])}:ee(this.horizontal?M:T,this._itemSize);return{numItemsInViewport:rn,numToleratedItems:this.d_numToleratedItems||(this.both?[Qe(rn.rows),Qe(rn.cols)]:Qe(rn))}}calculateOptions(){const{numItemsInViewport:p,numToleratedItems:M}=this.calculateNumItems(),T=(rn,ri,Si,Zi=!1)=>this.getLast(rn+ri+(rnArray.from({length:p.cols})):Array.from({length:p})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:ee.cols}:0:ee,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[p,M]=[Ce.getWidth(this.contentEl),Ce.getHeight(this.contentEl)];p!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),M!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[T,ee]=[Ce.getWidth(this.elementViewChild.nativeElement),Ce.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=Tthis.elementViewChild.nativeElement.style[Qe]=rn;this.both||this.horizontal?(ee("height",T),ee("width",M)):ee("height",T)}}setSpacerSize(){if(this._items){const p=this.getContentPosition(),M=(T,ee,Qe,rn=0)=>this.spacerStyle={...this.spacerStyle,[`${T}`]:(ee||[]).length*Qe+rn+"px"};this.both?(M("height",this._items,this._itemSize[0],p.y),M("width",this._columns||this._items[1],this._itemSize[1],p.x)):this.horizontal?M("width",this._columns||this._items,this._itemSize,p.x):M("height",this._items,this._itemSize,p.y)}}setContentPosition(p){if(this.contentEl&&!this._appendOnly){const M=p?p.first:this.first,T=(Qe,rn)=>Qe*rn,ee=(Qe=0,rn=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${Qe}px, ${rn}px, 0)`};if(this.both)ee(T(M.cols,this._itemSize[1]),T(M.rows,this._itemSize[0]));else{const Qe=T(M,this._itemSize);this.horizontal?ee(Qe,0):ee(0,Qe)}}}onScrollPositionChange(p){const M=p.target,T=this.getContentPosition(),ee=(hs,Do)=>hs?hs>Do?hs-Do:hs:0,Qe=(hs,Do)=>Math.floor(hs/(Do||hs)),rn=(hs,Do,Yo,Da,ec,xl)=>hs<=ec?ec:xl?Yo-Da-ec:Do+ec-1,ri=(hs,Do,Yo,Da,ec,xl,s2)=>hs<=xl?0:Math.max(0,s2?hsDo?Yo:hs-2*xl),Si=(hs,Do,Yo,Da,ec,xl=!1)=>{let s2=Do+Da+2*ec;return hs>=ec&&(s2+=ec+1),this.getLast(s2,xl)},Zi=ee(M.scrollTop,T.top),tr=ee(M.scrollLeft,T.left);let fs=this.both?{rows:0,cols:0}:0,kr=this.last,Eo=!1,fo=this.lastScrollPos;if(this.both){const hs=this.lastScrollPos.top<=Zi,Do=this.lastScrollPos.left<=tr;if(!this._appendOnly||this._appendOnly&&(hs||Do)){const Yo={rows:Qe(Zi,this._itemSize[0]),cols:Qe(tr,this._itemSize[1])},Da={rows:rn(Yo.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],hs),cols:rn(Yo.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],Do)};fs={rows:ri(Yo.rows,Da.rows,this.first.rows,0,0,this.d_numToleratedItems[0],hs),cols:ri(Yo.cols,Da.cols,this.first.cols,0,0,this.d_numToleratedItems[1],Do)},kr={rows:Si(Yo.rows,fs.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:Si(Yo.cols,fs.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},Eo=fs.rows!==this.first.rows||kr.rows!==this.last.rows||fs.cols!==this.first.cols||kr.cols!==this.last.cols||this.isRangeChanged,fo={top:Zi,left:tr}}}else{const hs=this.horizontal?tr:Zi,Do=this.lastScrollPos<=hs;if(!this._appendOnly||this._appendOnly&&Do){const Yo=Qe(hs,this._itemSize);fs=ri(Yo,rn(Yo,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,Do),this.first,0,0,this.d_numToleratedItems,Do),kr=Si(Yo,fs,0,this.numItemsInViewport,this.d_numToleratedItems),Eo=fs!==this.first||kr!==this.last||this.isRangeChanged,fo=hs}}return{first:fs,last:kr,isRangeChanged:Eo,scrollPos:fo}}onScrollChange(p){const{first:M,last:T,isRangeChanged:ee,scrollPos:Qe}=this.onScrollPositionChange(p);if(ee){const rn={first:M,last:T};if(this.setContentPosition(rn),this.first=M,this.last=T,this.lastScrollPos=Qe,this.handleEvents("onScrollIndexChange",rn),this._lazy&&this.isPageChanged){const ri={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):M,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:T,this.items.length)};(this.lazyLoadState.first!==ri.first||this.lazyLoadState.last!==ri.last)&&this.handleEvents("onLazyLoad",ri),this.lazyLoadState=ri}}}onContainerScroll(p){if(this.handleEvents("onScroll",{originalEvent:p}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:M}=this.onScrollPositionChange(p);(M||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(p),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(p)}bindResizeListener(){(0,g.UE)(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const p=this.document.defaultView,M=Ce.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(p,M,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Ce.isVisible(this.elementViewChild?.nativeElement)){const[p,M]=[Ce.getWidth(this.elementViewChild?.nativeElement),Ce.getHeight(this.elementViewChild?.nativeElement)],[T,ee]=[p!==this.defaultWidth,M!==this.defaultHeight];(this.both?T||ee:this.horizontal?T:this.vertical&&ee)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=p,this.defaultHeight=M,this.defaultContentWidth=Ce.getWidth(this.contentEl),this.defaultContentHeight=Ce.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(p,M){return this.options&&this.options[p]?this.options[p](M):this[p].emit(M)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:p=>this.getOptions(p),loading:this.d_loading,getLoaderOptions:(p,M)=>this.getLoaderOptions(p,M),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(p){const M=(this._items||[]).length,T=this.both?this.first.rows+p:this.first+p;return{index:T,count:M,first:0===T,last:T===M-1,even:T%2==0,odd:T%2!=0}}getLoaderOptions(p,M){const T=this.loaderArr.length;return{index:p,count:T,first:0===p,last:p===T-1,even:p%2==0,odd:p%2!=0,...M}}static \u0275fac=function(M){return new(M||P)(o.rXU(g.qQ),o.rXU(o.Agw),o.rXU(o.sFG),o.rXU(o.gRc),o.rXU(o.SKi))};static \u0275cmp=o.VBU({type:P,selectors:[["p-scroller"]],contentQueries:function(M,T,ee){if(1&M&&o.wni(ee,it,4),2&M){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(M,T){if(1&M&&(o.GBs(dr,5),o.GBs(no,5)),2&M){let ee;o.mGM(ee=o.lsd())&&(T.elementViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.contentViewChild=ee.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[o.OA$],ngContentSelectors:Kt,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(M,T){if(1&M&&(o.NAR(),o.DNE(0,pn,8,16,"ng-container",0),o.DNE(1,Tt,2,1,"ng-template",null,1,o.C5r)),2&M){const ee=o.sdS(2);o.Y8G("ngIf",!T._disabled)("ngIfElse",ee)}},dependencies:function(){return[g.YU,g.Sq,g.bT,g.T3,g.B3,Qi]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return P})(),qn=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,dt,Qi,dt]})}return P})(),pi=(()=>{class P{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(p){this._disabled=p,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:be()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(p,M,T,ee,Qe,rn){this.platformId=p,this.el=M,this.zone=T,this.config=ee,this.renderer=Qe,this.viewContainer=rn}ngAfterViewInit(){(0,g.UE)(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let p=this.getTarget(this.el.nativeElement);p.addEventListener("focus",this.focusListener),p.addEventListener("blur",this.blurListener)}})}ngOnChanges(p){p.tooltipPosition&&this.setOption({tooltipPosition:p.tooltipPosition.currentValue}),p.tooltipEvent&&this.setOption({tooltipEvent:p.tooltipEvent.currentValue}),p.appendTo&&this.setOption({appendTo:p.appendTo.currentValue}),p.positionStyle&&this.setOption({positionStyle:p.positionStyle.currentValue}),p.tooltipStyleClass&&this.setOption({tooltipStyleClass:p.tooltipStyleClass.currentValue}),p.tooltipZIndex&&this.setOption({tooltipZIndex:p.tooltipZIndex.currentValue}),p.escape&&this.setOption({escape:p.escape.currentValue}),p.showDelay&&this.setOption({showDelay:p.showDelay.currentValue}),p.hideDelay&&this.setOption({hideDelay:p.hideDelay.currentValue}),p.life&&this.setOption({life:p.life.currentValue}),p.positionTop&&this.setOption({positionTop:p.positionTop.currentValue}),p.positionLeft&&this.setOption({positionLeft:p.positionLeft.currentValue}),p.disabled&&this.setOption({disabled:p.disabled.currentValue}),p.content&&(this.setOption({tooltipLabel:p.content.currentValue}),this.active&&(p.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),p.autoHide&&this.setOption({autoHide:p.autoHide.currentValue}),p.id&&this.setOption({id:p.id.currentValue}),p.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...p.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(p){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(p){(this.isAutoHide()||!(Ce.hasClass(p.relatedTarget,"p-tooltip")||Ce.hasClass(p.relatedTarget,"p-tooltip-text")||Ce.hasClass(p.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(p){this.activate()}onBlur(p){this.deactivate()}onInputClick(p){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let p=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},p)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let p=document.createElement("div");p.className="p-tooltip-arrow",this.container.appendChild(p),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?Ce.appendChild(this.container,this.el.nativeElement):Ce.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",M=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),Ce.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Te.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Te.clear(this.container),this.remove()}updateText(){const p=this.getOption("tooltipLabel");if(p instanceof o.C4Q){const M=this.viewContainer.createEmbeddedView(p);M.detectChanges(),M.rootNodes.forEach(T=>this.tooltipText.appendChild(T))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(p))):this.tooltipText.innerHTML=p}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let p=this.el.nativeElement.getBoundingClientRect();return{left:p.left+Ce.getWindowScrollLeft(),top:p.top+Ce.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let p=this.getHostOffset(),M=p.left+Ce.getOuterWidth(this.el.nativeElement),T=p.top+(Ce.getOuterHeight(this.el.nativeElement)-Ce.getOuterHeight(this.container))/2;this.container.style.left=M+this.getOption("positionLeft")+"px",this.container.style.top=T+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let p=this.getHostOffset(),M=p.left-Ce.getOuterWidth(this.container),T=p.top+(Ce.getOuterHeight(this.el.nativeElement)-Ce.getOuterHeight(this.container))/2;this.container.style.left=M+this.getOption("positionLeft")+"px",this.container.style.top=T+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let p=this.getHostOffset(),M=p.left+(Ce.getOuterWidth(this.el.nativeElement)-Ce.getOuterWidth(this.container))/2,T=p.top-Ce.getOuterHeight(this.container);this.container.style.left=M+this.getOption("positionLeft")+"px",this.container.style.top=T+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let p=this.getHostOffset(),M=p.left+(Ce.getOuterWidth(this.el.nativeElement)-Ce.getOuterWidth(this.container))/2,T=p.top+Ce.getOuterHeight(this.el.nativeElement);this.container.style.left=M+this.getOption("positionLeft")+"px",this.container.style.top=T+this.getOption("positionTop")+"px"}setOption(p){this._tooltipOptions={...this._tooltipOptions,...p}}getOption(p){return this._tooltipOptions[p]}getTarget(p){return Ce.hasClass(p,"p-inputwrapper")?Ce.findSingle(p,"input"):p}preAlign(p){this.container.style.left="-999px",this.container.style.top="-999px";let M="p-tooltip p-component p-tooltip-"+p;this.container.className=this.getOption("tooltipStyleClass")?M+" "+this.getOption("tooltipStyleClass"):M}isOutOfBounds(){let p=this.container.getBoundingClientRect(),M=p.top,T=p.left,ee=Ce.getOuterWidth(this.container),Qe=Ce.getOuterHeight(this.container),rn=Ce.getViewport();return T+ee>rn.width||T<0||M<0||M+Qe>rn.height}onWindowResize(p){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new zt(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let p=this.getTarget(this.el.nativeElement);p.removeEventListener("focus",this.focusListener),p.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):Ce.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Te.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(M){return new(M||P)(o.rXU(o.Agw),o.rXU(o.aKT),o.rXU(o.SKi),o.rXU(he),o.rXU(o.sFG),o.rXU(o.c1b))};static \u0275dir=o.FsC({type:P,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(M,T){1&M&&o.bIt("keydown.escape",function(Qe){return T.onPressEscape(Qe)},!1,o.EBC)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[o.OA$]})}return P})(),ti=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})(),Ni=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["TimesIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),ii=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["ChevronDownIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),lr=(()=>{class P extends Wn{pathId;ngOnInit(){this.pathId="url(#"+be()+")"}static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["SearchIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0)(1,"g"),o.nrm(2,"path",1),o.k0s(),o.j41(3,"defs")(4,"clipPath",2),o.nrm(5,"rect",3),o.k0s()()()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role),o.R7$(1),o.BMQ("clip-path",T.pathId),o.R7$(3),o.Y8G("id",T.pathId))},encapsulation:2})}return P})();function Gr(P,Le){if(1&P&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&P){const p=o.XpG();let M;o.R7$(1),o.JRh(null!==(M=p.label)&&void 0!==M?M:"empty")}}function xs(P,Le){1&P&&o.eu8(0)}const ks=function(P){return{height:P}},Vr=function(P,Le,p){return{"p-dropdown-item":!0,"p-highlight":P,"p-disabled":Le,"p-focus":p}},Gs=function(P){return{$implicit:P}},Fr=["container"],is=["filter"],Ro=["focusInput"],Zo=["editableInput"],Vo=["items"],qo=["scroller"],ea=["overlay"],oo=["firstHiddenFocusableEl"],xo=["lastHiddenFocusableEl"];function ta(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.JRh("p-emptylabel"===p.label()?"\xa0":p.label())}}function Ps(P,Le){1&P&&o.eu8(0)}function Ma(P,Le){if(1&P&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&P){const p=o.XpG(3);o.R7$(1),o.JRh("p-emptylabel"===p.label()?"\xa0":p.placeholder)}}function ws(P,Le){if(1&P&&o.DNE(0,Ma,2,1,"span",4),2&P){const p=o.XpG(2);o.Y8G("ngIf",p.label()===p.placeholder||p.label()&&!p.placeholder)}}function La(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",10,11),o.bIt("focus",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onInputFocus(T))})("blur",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onInputBlur(T))})("keydown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onKeyDown(T))}),o.DNE(2,ta,2,1,"ng-container",12),o.DNE(3,Ps,1,0,"ng-container",13),o.DNE(4,ws,1,1,"ng-template",null,14,o.C5r),o.k0s()}if(2&P){const p=o.sdS(5),M=o.XpG();o.Y8G("ngClass",M.inputClass)("pTooltip",M.tooltip)("tooltipPosition",M.tooltipPosition)("positionStyle",M.tooltipPositionStyle)("tooltipStyleClass",M.tooltipStyleClass)("autofocus",M.autofocus),o.BMQ("aria-disabled",M.disabled)("id",M.inputId)("aria-label",M.ariaLabel||("p-emptylabel"===M.label()?void 0:M.label()))("aria-labelledby",M.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",M.overlayVisible)("aria-controls",M.id+"_list")("tabindex",M.disabled?-1:M.tabindex)("aria-activedescendant",M.focused?M.focusedOptionId:void 0),o.R7$(2),o.Y8G("ngIf",!M.selectedItemTemplate)("ngIfElse",p),o.R7$(1),o.Y8G("ngTemplateOutlet",M.selectedItemTemplate)("ngTemplateOutletContext",o.eq3(19,Gs,M.selectedOption))}}function ao(P,Le){if(1&P){const p=o.RV6();o.j41(0,"input",15,16),o.bIt("input",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onEditableInput(T))})("keydown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onKeyDown(T))})("focus",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onInputFocus(T))})("blur",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onInputBlur(T))}),o.k0s()}if(2&P){const p=o.XpG();o.Y8G("ngClass",p.inputClass)("disabled",p.disabled),o.BMQ("maxlength",p.maxlength)("placeholder",p.placeholder)("aria-expanded",p.overlayVisible)}}function l1(P,Le){if(1&P){const p=o.RV6();o.j41(0,"TimesIcon",19),o.bIt("click",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.clear(T))}),o.k0s()}2&P&&(o.Y8G("styleClass","p-dropdown-clear-icon"),o.BMQ("data-pc-section","clearicon"))}function Hc(P,Le){}function Ol(P,Le){1&P&&o.DNE(0,Hc,0,0,"ng-template")}function pl(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",20),o.bIt("click",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.clear(T))}),o.DNE(1,Ol,1,0,null,21),o.k0s()}if(2&P){const p=o.XpG(2);o.BMQ("data-pc-section","clearicon"),o.R7$(1),o.Y8G("ngTemplateOutlet",p.clearIconTemplate)}}function na(P,Le){if(1&P&&(o.qex(0),o.DNE(1,l1,1,2,"TimesIcon",17),o.DNE(2,pl,2,2,"span",18),o.bVm()),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngIf",!p.clearIconTemplate),o.R7$(1),o.Y8G("ngIf",p.clearIconTemplate)}}function Z1(P,Le){if(1&P&&o.nrm(0,"span",24),2&P){const p=o.XpG(2);o.Y8G("ngClass",p.dropdownIcon)}}function rc(P,Le){1&P&&o.nrm(0,"ChevronDownIcon",25),2&P&&o.Y8G("styleClass","p-dropdown-trigger-icon")}function ql(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Z1,1,1,"span",22),o.DNE(2,rc,1,1,"ChevronDownIcon",23),o.bVm()),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngIf",p.dropdownIcon),o.R7$(1),o.Y8G("ngIf",!p.dropdownIcon)}}function go(P,Le){}function Xa(P,Le){1&P&&o.DNE(0,go,0,0,"ng-template")}function Ws(P,Le){if(1&P&&(o.j41(0,"span",26),o.DNE(1,Xa,1,0,null,21),o.k0s()),2&P){const p=o.XpG();o.R7$(1),o.Y8G("ngTemplateOutlet",p.dropdownIconTemplate)}}function tl(P,Le){1&P&&o.eu8(0)}function As(P,Le){1&P&&o.eu8(0)}const wo=function(P){return{options:P}};function nl(P,Le){if(1&P&&(o.qex(0),o.DNE(1,As,1,0,"ng-container",13),o.bVm()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngTemplateOutlet",p.filterTemplate)("ngTemplateOutletContext",o.eq3(2,wo,p.filterOptions))}}function Ka(P,Le){1&P&&o.nrm(0,"SearchIcon",25),2&P&&o.Y8G("styleClass","p-dropdown-filter-icon")}function hc(P,Le){}function Xr(P,Le){1&P&&o.DNE(0,hc,0,0,"ng-template")}function Br(P,Le){if(1&P&&(o.j41(0,"span",41),o.DNE(1,Xr,1,0,null,21),o.k0s()),2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("ngTemplateOutlet",p.filterIconTemplate)}}function fr(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",37)(1,"input",38,39),o.bIt("input",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onFilterInputChange(T))})("keydown",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onFilterKeyDown(T))})("blur",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onFilterBlur(T))}),o.k0s(),o.DNE(3,Ka,1,1,"SearchIcon",23),o.DNE(4,Br,2,1,"span",40),o.k0s()}if(2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("value",p._filterValue()||""),o.BMQ("placeholder",p.filterPlaceholder)("aria-owns",p.id+"_list")("aria-label",p.ariaFilterLabel)("aria-activedescendant",p.focusedOptionId),o.R7$(2),o.Y8G("ngIf",!p.filterIconTemplate),o.R7$(1),o.Y8G("ngIf",p.filterIconTemplate)}}function Ao(P,Le){if(1&P&&(o.j41(0,"div",35),o.bIt("click",function(M){return M.stopPropagation()}),o.DNE(1,nl,2,4,"ng-container",12),o.DNE(2,fr,5,7,"ng-template",null,36,o.C5r),o.k0s()),2&P){const p=o.sdS(3),M=o.XpG(2);o.R7$(1),o.Y8G("ngIf",M.filterTemplate)("ngIfElse",p)}}function ca(P,Le){1&P&&o.eu8(0)}const Ya=function(P,Le){return{$implicit:P,options:Le}};function za(P,Le){if(1&P&&o.DNE(0,ca,1,0,"ng-container",13),2&P){const p=Le.$implicit,M=Le.options;o.XpG(2);const T=o.sdS(9);o.Y8G("ngTemplateOutlet",T)("ngTemplateOutletContext",o.l_i(2,Ya,p,M))}}function qs(P,Le){1&P&&o.eu8(0)}function gr(P,Le){if(1&P&&o.DNE(0,qs,1,0,"ng-container",13),2&P){const p=Le.options,M=o.XpG(4);o.Y8G("ngTemplateOutlet",M.loaderTemplate)("ngTemplateOutletContext",o.eq3(2,wo,p))}}function il(P,Le){1&P&&(o.qex(0),o.DNE(1,gr,1,4,"ng-template",44),o.bVm())}function Wr(P,Le){if(1&P){const p=o.RV6();o.j41(0,"p-scroller",42,43),o.bIt("onLazyLoad",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onLazyLoad.emit(T))}),o.DNE(2,za,1,5,"ng-template",9),o.DNE(3,il,2,0,"ng-container",4),o.k0s()}if(2&P){const p=o.XpG(2);o.Aen(o.eq3(8,ks,p.scrollHeight)),o.Y8G("items",p.visibleOptions())("itemSize",p.virtualScrollItemSize||p._itemSize)("autoSize",!0)("lazy",p.lazy)("options",p.virtualScrollOptions),o.R7$(3),o.Y8G("ngIf",p.loaderTemplate)}}function yi(P,Le){1&P&&o.eu8(0)}const Kn=function(){return{}};function ar(P,Le){if(1&P&&(o.qex(0),o.DNE(1,yi,1,0,"ng-container",13),o.bVm()),2&P){o.XpG();const p=o.sdS(9),M=o.XpG();o.R7$(1),o.Y8G("ngTemplateOutlet",p)("ngTemplateOutletContext",o.l_i(3,Ya,M.visibleOptions(),o.lJ4(2,Kn)))}}function Sa(P,Le){if(1&P&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&P){const p=o.XpG(2).$implicit,M=o.XpG(3);o.R7$(1),o.JRh(M.getOptionGroupLabel(p.optionGroup))}}function Mo(P,Le){1&P&&o.eu8(0)}function ns(P,Le){if(1&P&&(o.qex(0),o.j41(1,"li",49),o.DNE(2,Sa,2,1,"span",4),o.DNE(3,Mo,1,0,"ng-container",13),o.k0s(),o.bVm()),2&P){const p=o.XpG(),M=p.index,T=p.$implicit,ee=o.XpG().options,Qe=o.XpG(2);o.R7$(1),o.Y8G("ngStyle",o.eq3(5,ks,ee.itemSize+"px")),o.BMQ("id",Qe.id+"_"+Qe.getOptionIndex(M,ee)),o.R7$(1),o.Y8G("ngIf",!Qe.groupTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",Qe.groupTemplate)("ngTemplateOutletContext",o.eq3(7,Gs,T.optionGroup))}}function ka(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-dropdownItem",50),o.bIt("onClick",function(T){o.eBV(p);const ee=o.XpG().$implicit,Qe=o.XpG(3);return o.Njj(Qe.onOptionSelect(T,ee))})("onMouseEnter",function(T){o.eBV(p);const ee=o.XpG().index,Qe=o.XpG().options,rn=o.XpG(2);return o.Njj(rn.onOptionMouseEnter(T,rn.getOptionIndex(ee,Qe)))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG(),M=p.index,T=p.$implicit,ee=o.XpG().options,Qe=o.XpG(2);o.R7$(1),o.Y8G("id",Qe.id+"_"+Qe.getOptionIndex(M,ee))("option",T)("selected",Qe.isSelected(T))("label",Qe.getOptionLabel(T))("disabled",Qe.isOptionDisabled(T))("template",Qe.itemTemplate)("focused",Qe.focusedOptionIndex()===Qe.getOptionIndex(M,ee))("ariaPosInset",Qe.getAriaPosInset(Qe.getOptionIndex(M,ee)))("ariaSetSize",Qe.ariaSetSize)}}function Is(P,Le){if(1&P&&(o.DNE(0,ns,4,9,"ng-container",4),o.DNE(1,ka,2,9,"ng-container",4)),2&P){const p=Le.$implicit;o.Y8G("ngIf",p.group),o.R7$(1),o.Y8G("ngIf",!p.group)}}function wc(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(4);o.R7$(1),o.SpI(" ",p.emptyFilterMessageLabel," ")}}function Es(P,Le){1&P&&o.eu8(0,null,52)}function ur(P,Le){if(1&P&&(o.j41(0,"li",51),o.DNE(1,wc,2,1,"ng-container",12),o.DNE(2,Es,2,0,"ng-container",21),o.k0s()),2&P){const p=o.XpG().options,M=o.XpG(2);o.Y8G("ngStyle",o.eq3(4,ks,p.itemSize+"px")),o.R7$(1),o.Y8G("ngIf",!M.emptyFilterTemplate&&!M.emptyTemplate)("ngIfElse",M.emptyFilter),o.R7$(1),o.Y8G("ngTemplateOutlet",M.emptyFilterTemplate||M.emptyTemplate)}}function rr(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(4);o.R7$(1),o.SpI(" ",p.emptyMessageLabel," ")}}function ml(P,Le){1&P&&o.eu8(0,null,53)}function Lc(P,Le){if(1&P&&(o.j41(0,"li",51),o.DNE(1,rr,2,1,"ng-container",12),o.DNE(2,ml,2,0,"ng-container",21),o.k0s()),2&P){const p=o.XpG().options,M=o.XpG(2);o.Y8G("ngStyle",o.eq3(4,ks,p.itemSize+"px")),o.R7$(1),o.Y8G("ngIf",!M.emptyTemplate)("ngIfElse",M.empty),o.R7$(1),o.Y8G("ngTemplateOutlet",M.emptyTemplate)}}function Qs(P,Le){if(1&P&&(o.j41(0,"ul",45,46),o.DNE(2,Is,2,2,"ng-template",47),o.DNE(3,ur,3,6,"li",48),o.DNE(4,Lc,3,6,"li",48),o.k0s()),2&P){const p=Le.$implicit,M=Le.options,T=o.XpG(2);o.Aen(M.contentStyle),o.Y8G("ngClass",M.contentStyleClass),o.BMQ("id",T.id+"_list"),o.R7$(2),o.Y8G("ngForOf",p),o.R7$(1),o.Y8G("ngIf",T.filterValue&&T.isEmpty()),o.R7$(1),o.Y8G("ngIf",!T.filterValue&&T.isEmpty())}}function la(P,Le){1&P&&o.eu8(0)}function Js(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",27)(1,"span",28,29),o.bIt("focus",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onFirstHiddenFocus(T))}),o.k0s(),o.DNE(3,tl,1,0,"ng-container",21),o.DNE(4,Ao,4,2,"div",30),o.j41(5,"div",31),o.DNE(6,Wr,4,10,"p-scroller",32),o.DNE(7,ar,2,6,"ng-container",4),o.DNE(8,Qs,5,7,"ng-template",null,33,o.C5r),o.k0s(),o.DNE(10,la,1,0,"ng-container",21),o.j41(11,"span",28,34),o.bIt("focus",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onLastHiddenFocus(T))}),o.k0s()()}if(2&P){const p=o.XpG();o.HbH(p.panelStyleClass),o.Y8G("ngClass","p-dropdown-panel p-component")("ngStyle",p.panelStyle),o.R7$(1),o.BMQ("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),o.R7$(2),o.Y8G("ngTemplateOutlet",p.headerTemplate),o.R7$(1),o.Y8G("ngIf",p.filter),o.R7$(1),o.xc7("max-height",p.virtualScroll?"auto":p.scrollHeight||"auto"),o.R7$(1),o.Y8G("ngIf",p.virtualScroll),o.R7$(1),o.Y8G("ngIf",!p.virtualScroll),o.R7$(3),o.Y8G("ngTemplateOutlet",p.footerTemplate),o.R7$(1),o.BMQ("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const ua={provide:V.kq,useExisting:(0,o.Rfq)(()=>gl),multi:!0};let da=(()=>{class P{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new o.bkB;onMouseEnter=new o.bkB;ngOnInit(){}onOptionClick(p){this.onClick.emit(p)}onOptionMouseEnter(p){this.onMouseEnter.emit(p)}static \u0275fac=function(M){return new(M||P)};static \u0275cmp=o.VBU({type:P,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(M,T){1&M&&(o.j41(0,"li",0),o.bIt("click",function(Qe){return T.onOptionClick(Qe)})("mouseenter",function(Qe){return T.onOptionMouseEnter(Qe)}),o.DNE(1,Gr,2,1,"span",1),o.DNE(2,xs,1,0,"ng-container",2),o.k0s()),2&M&&(o.Y8G("id",T.id)("ngStyle",o.eq3(13,ks,T.itemSize+"px"))("ngClass",o.sMw(15,Vr,T.selected,T.disabled,T.focused)),o.BMQ("aria-label",T.label)("aria-setsize",T.ariaSetSize)("aria-posinset",T.ariaPosInset)("aria-selected",T.selected)("data-p-focused",T.focused)("data-p-highlight",T.selected)("data-p-disabled",T.disabled),o.R7$(1),o.Y8G("ngIf",!T.template),o.R7$(1),o.Y8G("ngTemplateOutlet",T.template)("ngTemplateOutletContext",o.eq3(19,Gs,T.option)))},dependencies:[g.YU,g.bT,g.T3,g.B3,Vi],encapsulation:2})}return P})(),gl=(()=>{class P{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(p){p&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=p,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(p){this._itemSize=p,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(p){this._autoZIndex=p,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(p){this._baseZIndex=p,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(p){this._showTransitionOptions=p,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(p){this._hideTransitionOptions=p,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(p){this._filterValue.set(p)}get options(){return this._options()}set options(p){this._options.set(p)}onChange=new o.bkB;onFilter=new o.bkB;onFocus=new o.bkB;onBlur=new o.bkB;onClick=new o.bkB;onShow=new o.bkB;onHide=new o.bkB;onClear=new o.bkB;onLazyLoad=new o.bkB;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=(0,o.vPA)(null);modelValue=(0,o.vPA)(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=(0,o.vPA)(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=(0,o.vPA)(-1);labelId;listId;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(jt.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(jt.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&pe.isNotEmpty(this.modelValue())&&""!==this.modelValue()&&this.showClear&&!this.disabled}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const p=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder&&p===this.placeholder,"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||p&&"p-emptylabel"!==p&&0!==p.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}visibleOptions=(0,o.EWP)(()=>{const p=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const M=this.filterBy||this.filterFields||this.optionValue?this.filterService.filter(p,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):this.options.filter(T=>-1!==T.toLowerCase().indexOf(this._filterValue().toLowerCase()));if(this.group){const ee=[];return(this.options||[]).forEach(Qe=>{const ri=this.getOptionGroupChildren(Qe).filter(Si=>M.includes(Si));ri.length>0&&ee.push({...Qe,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...ri]})}),this.flatOptions(ee)}return M}return p});label=(0,o.EWP)(()=>{const p=this.findSelectedOptionIndex();return-1!==p?this.getOptionLabel(this.visibleOptions()[p]):this.placeholder||"p-emptylabel"});selectedOption;constructor(p,M,T,ee,Qe,rn){this.el=p,this.renderer=M,this.cd=T,this.zone=ee,this.filterService=Qe,this.config=rn,(0,o.QZP)(()=>{const ri=this.modelValue(),Si=this.visibleOptions();ri&&this.editable&&this.updateEditableLabel(),Si&&pe.isNotEmpty(Si)&&(this.selectedOption=Si[this.findSelectedOptionIndex()])})}ngOnInit(){this.id=this.id||be(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:p=>this.onFilterInputChange(p),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let p=Ce.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");p&&Ce.scrollInView(this.itemsWrapper,p),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(p=>{switch(p.getType()){case"item":default:this.itemTemplate=p.template;break;case"selectedItem":this.selectedItemTemplate=p.template;break;case"header":this.headerTemplate=p.template;break;case"filter":this.filterTemplate=p.template;break;case"footer":this.footerTemplate=p.template;break;case"emptyfilter":this.emptyFilterTemplate=p.template;break;case"empty":this.emptyTemplate=p.template;break;case"group":this.groupTemplate=p.template;break;case"loader":this.loaderTemplate=p.template;break;case"dropdownicon":this.dropdownIconTemplate=p.template;break;case"clearicon":this.clearIconTemplate=p.template;break;case"filtericon":this.filterIconTemplate=p.template}})}flatOptions(p){return(p||[]).reduce((M,T,ee)=>{M.push({optionGroup:T,group:!0,index:ee});const Qe=this.getOptionGroupChildren(T);return Qe&&Qe.forEach(rn=>M.push(rn)),M},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&!this.modelValue()){const p=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[p],!1,!0)}}onOptionSelect(p,M,T=!0,ee=!1){const Qe=this.getOptionValue(M);this.updateModel(Qe,p),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),T&&this.hide(!0),!1===ee&&this.onChange.emit({originalEvent:p,value:Qe})}onOptionMouseEnter(p,M){this.focusOnHover&&this.changeFocusedOptionIndex(p,M)}updateModel(p,M){this.value=p,this.onModelChange(p),this.modelValue.set(p),this.selectedOptionUpdated=!0}writeValue(p){this.filter&&this.resetFilter(),this.value=p,this.allowModelChange()&&this.onModelChange(p),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder&&!this.modelValue()&&!this.editable&&this.options&&this.options.length}isSelected(p){return this.isValidOption(p)&&pe.equals(this.modelValue(),this.getOptionValue(p),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=void 0===this.getOptionLabel(this.modelValue())?this.editableInputViewChild.nativeElement.value:this.getOptionLabel(this.modelValue()))}getOptionIndex(p,M){return this.virtualScrollerDisabled?p:M&&M.getItemOptions(p).index}getOptionLabel(p){return this.optionLabel?pe.resolveFieldData(p,this.optionLabel):p&&void 0!==p.label?p.label:p}getOptionValue(p){return this.optionValue?pe.resolveFieldData(p,this.optionValue):!this.optionLabel&&p&&void 0!==p.value?p.value:p}isOptionDisabled(p){return this.optionDisabled?pe.resolveFieldData(p,this.optionDisabled):!(!p||void 0===p.disabled)&&p.disabled}getOptionGroupLabel(p){return this.optionGroupLabel?pe.resolveFieldData(p,this.optionGroupLabel):p&&void 0!==p.label?p.label:p}getOptionGroupChildren(p){return this.optionGroupChildren?pe.resolveFieldData(p,this.optionGroupChildren):p.items}getAriaPosInset(p){return(this.optionGroupLabel?p-this.visibleOptions().slice(0,p).filter(M=>this.isOptionGroup(M)).length:p)+1}get ariaSetSize(){return this.visibleOptions().filter(p=>!this.isOptionGroup(p)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}onContainerClick(p){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==p.target.tagName&&"clearicon"!==p.target.getAttribute("data-pc-section")&&!p.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(p.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(p),this.cd.detectChanges()))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}onEditableInput(p){const M=p.target.value;this.searchValue="",!this.searchOptions(p,M)&&this.focusedOptionIndex.set(-1),this.onModelChange(M),this.updateModel(M,p),this.onChange.emit({originalEvent:p,value:M})}show(p){this.overlayVisible=!0;const M=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(M),p&&Ce.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(p){if("visible"===p.toState){if(this.itemsWrapper=Ce.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const M=this.modelValue()?this.focusedOptionIndex():-1;-1!==M&&this.scroller?.scrollToIndex(M)}else{let M=Ce.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");M&&M.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(p)}"void"===p.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(p))}hide(p){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),p&&Ce.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onInputFocus(p){if(this.disabled)return;this.focused=!0;const M=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(M),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(p)}onInputBlur(p){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(p),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(p,M){if(!this.disabled&&!this.readonly)switch(p.code){case"ArrowDown":this.onArrowDownKey(p);break;case"ArrowUp":this.onArrowUpKey(p,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(p,this.editable);break;case"Delete":this.onDeleteKey(p);break;case"Home":this.onHomeKey(p,this.editable);break;case"End":this.onEndKey(p,this.editable);break;case"PageDown":this.onPageDownKey(p);break;case"PageUp":this.onPageUpKey(p);break;case"Space":this.onSpaceKey(p,M);break;case"Enter":case"NumpadEnter":this.onEnterKey(p);break;case"Escape":this.onEscapeKey(p);break;case"Tab":this.onTabKey(p);break;case"Backspace":this.onBackspaceKey(p,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!p.metaKey&&pe.isPrintableCharacter(p.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(p,p.key))}}onFilterKeyDown(p){switch(p.code){case"ArrowDown":this.onArrowDownKey(p);break;case"ArrowUp":this.onArrowUpKey(p,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(p,!0);break;case"Home":this.onHomeKey(p,!0);break;case"End":this.onEndKey(p,!0);break;case"Enter":this.onEnterKey(p);break;case"Escape":this.onEscapeKey(p);break;case"Tab":this.onTabKey(p,!0)}}onFilterBlur(p){this.focusedOptionIndex.set(-1)}onArrowDownKey(p){const M=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(p,M),!this.overlayVisible&&this.show(),p.preventDefault()}changeFocusedOptionIndex(p,M){if(this.focusedOptionIndex()!==M&&(this.focusedOptionIndex.set(M),this.scrollInView(),this.selectOnFocus)){const T=this.visibleOptions()[M];this.onOptionSelect(p,T,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(p=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const T=Ce.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==p?`${this.id}_${p}`:this.focusedOptionId}"]`);T?T.scrollIntoView&&T.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==p?p:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}hasSelectedOption(){return pe.isNotEmpty(this.modelValue())}isValidSelectedOption(p){return this.isValidOption(p)&&this.isSelected(p)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const p=this.findSelectedOptionIndex();return p<0?this.findFirstOptionIndex():p}findFirstOptionIndex(){return this.visibleOptions().findIndex(p=>this.isValidOption(p))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(p=>this.isValidSelectedOption(p)):-1}findNextOptionIndex(p){const M=pthis.isValidOption(T)):-1;return M>-1?M+p+1:p}findPrevOptionIndex(p){const M=p>0?pe.findLastIndex(this.visibleOptions().slice(0,p),T=>this.isValidOption(T)):-1;return M>-1?M:p}findLastOptionIndex(){return pe.findLastIndex(this.visibleOptions(),p=>this.isValidOption(p))}findLastFocusedOptionIndex(){const p=this.findSelectedOptionIndex();return p<0?this.findLastOptionIndex():p}isValidOption(p){return p&&!(this.isOptionDisabled(p)||this.isOptionGroup(p))}isOptionGroup(p){return this.optionGroupLabel&&p.optionGroup&&p.group}onArrowUpKey(p,M=!1){if(p.altKey&&!M){if(-1!==this.focusedOptionIndex()){const T=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(p,T)}this.overlayVisible&&this.hide(),p.preventDefault()}else{const T=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(p,T),!this.overlayVisible&&this.show(),p.preventDefault()}}onArrowLeftKey(p,M=!1){M&&this.focusedOptionIndex.set(-1)}onDeleteKey(p){this.showClear&&(this.clear(p),p.preventDefault())}onHomeKey(p,M=!1){M?(p.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1)):(this.changeFocusedOptionIndex(p,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),p.preventDefault()}onEndKey(p,M=!1){if(M){const T=p.currentTarget,ee=T.value.length;T.setSelectionRange(ee,ee),this.focusedOptionIndex.set(-1)}else this.changeFocusedOptionIndex(p,this.findLastOptionIndex()),!this.overlayVisible&&this.show();p.preventDefault()}onPageDownKey(p){this.scrollInView(this.visibleOptions().length-1),p.preventDefault()}onPageUpKey(p){this.scrollInView(0),p.preventDefault()}onSpaceKey(p,M=!1){!M&&this.onEnterKey(p)}onEnterKey(p){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const M=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(p,M)}this.hide()}else this.onArrowDownKey(p);p.preventDefault()}onEscapeKey(p){this.overlayVisible&&this.hide(!0),p.preventDefault()}onTabKey(p,M=!1){if(!M)if(this.overlayVisible&&this.hasFocusableElements())Ce.focus(p.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),p.preventDefault();else{if(-1!==this.focusedOptionIndex()){const T=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(p,T)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(p){const M=p.relatedTarget===this.focusInputViewChild?.nativeElement?Ce.getFirstFocusableElement(this.overlayViewChild.el.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild.nativeElement;Ce.focus(M)}onLastHiddenFocus(p){const M=p.relatedTarget===this.focusInputViewChild?.nativeElement?Ce.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;Ce.focus(M)}hasFocusableElements(){return Ce.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(p,M=!1){M&&!this.overlayVisible&&this.show()}searchFields(){return this.filterFields||[this.optionLabel]}searchOptions(p,M){this.searchValue=(this.searchValue||"")+M;let T=-1,ee=!1;return-1!==this.focusedOptionIndex()?(T=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(Qe=>this.isOptionMatched(Qe)),T=-1===T?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(Qe=>this.isOptionMatched(Qe)):T+this.focusedOptionIndex()):T=this.visibleOptions().findIndex(Qe=>this.isOptionMatched(Qe)),-1!==T&&(ee=!0),-1===T&&-1===this.focusedOptionIndex()&&(T=this.findFirstFocusedOptionIndex()),-1!==T&&this.changeFocusedOptionIndex(p,T),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),ee}isOptionMatched(p){return this.isValidOption(p)&&this.getOptionLabel(p).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(p){let M=p.target.value?.trim();this._filterValue.set(M),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:p,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),this.cd.markForCheck()}applyFocus(){this.editable?Ce.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():Ce.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(p){this.updateModel(null,p),this.updateEditableLabel(),this.onChange.emit({originalEvent:p,value:this.value}),this.onClear.emit(p)}static \u0275fac=function(M){return new(M||P)(o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(Fe),o.rXU(he))};static \u0275cmp=o.VBU({type:P,selectors:[["p-dropdown"]],contentQueries:function(M,T,ee){if(1&M&&o.wni(ee,it,4),2&M){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(M,T){if(1&M&&(o.GBs(Fr,5),o.GBs(is,5),o.GBs(Ro,5),o.GBs(Zo,5),o.GBs(Vo,5),o.GBs(qo,5),o.GBs(ea,5),o.GBs(oo,5),o.GBs(xo,5)),2&M){let ee;o.mGM(ee=o.lsd())&&(T.containerViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.filterViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.focusInputViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.editableInputViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.itemsViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.scroller=ee.first),o.mGM(ee=o.lsd())&&(T.overlayViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.firstHiddenFocusableElementOnOverlay=ee.first),o.mGM(ee=o.lsd())&&(T.lastHiddenFocusableElementOnOverlay=ee.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(M,T){2&M&&o.AVh("p-inputwrapper-filled",T.filled)("p-inputwrapper-focus",T.focused||T.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[o.Jv_([ua])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultPlaceholder",""],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(M,T){1&M&&(o.j41(0,"div",0,1),o.bIt("click",function(Qe){return T.onContainerClick(Qe)}),o.DNE(2,La,6,21,"span",2),o.DNE(3,ao,2,5,"input",3),o.DNE(4,na,3,2,"ng-container",4),o.j41(5,"div",5),o.DNE(6,ql,3,2,"ng-container",4),o.DNE(7,Ws,2,1,"span",6),o.k0s(),o.j41(8,"p-overlay",7,8),o.bIt("visibleChange",function(Qe){return T.overlayVisible=Qe})("onAnimationStart",function(Qe){return T.onOverlayAnimationStart(Qe)})("onHide",function(){return T.hide()}),o.DNE(10,Js,13,19,"ng-template",9),o.k0s()()),2&M&&(o.HbH(T.styleClass),o.Y8G("ngClass",T.containerClass)("ngStyle",T.style),o.BMQ("id",T.id),o.R7$(2),o.Y8G("ngIf",!T.editable),o.R7$(1),o.Y8G("ngIf",T.editable),o.R7$(1),o.Y8G("ngIf",T.isVisibleClearIcon),o.R7$(1),o.BMQ("aria-expanded",T.overlayVisible)("data-pc-section","trigger"),o.R7$(1),o.Y8G("ngIf",!T.dropdownIconTemplate),o.R7$(1),o.Y8G("ngIf",T.dropdownIconTemplate),o.R7$(1),o.Y8G("visible",T.overlayVisible)("options",T.overlayOptions)("target","@parent")("appendTo",T.appendTo)("autoZIndex",T.autoZIndex)("baseZIndex",T.baseZIndex)("showTransitionOptions",T.showTransitionOptions)("hideTransitionOptions",T.hideTransitionOptions))},dependencies:function(){return[g.YU,g.Sq,g.bT,g.T3,g.B3,hn,it,pi,Vn,rt,Ni,ii,lr,da]},styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return P})(),No=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,Mn,dt,ti,ni,qn,xt,Ni,ii,lr,Mn,dt,qn]})}return P})(),ia=(()=>{class P{el;ngModel;cd;filled;constructor(p,M,T){this.el=p,this.ngModel=M,this.cd=T}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(M){return new(M||P)(o.rXU(o.aKT),o.rXU(V.vS,8),o.rXU(o.gRc))};static \u0275dir=o.FsC({type:P,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(M,T){1&M&&o.bIt("input",function(Qe){return T.onInput(Qe)}),2&M&&o.AVh("p-filled",T.filled)}})}return P})(),zc=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();const Hl=["input"],rs=function(P,Le,p){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":P,"p-disabled":Le,"p-radiobutton-label-focus":p}};function H1(P,Le){if(1&P){const p=o.RV6();o.j41(0,"label",7),o.bIt("click",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.select(T))}),o.EFF(1),o.k0s()}if(2&P){const p=o.XpG(),M=o.sdS(3);o.HbH(p.labelStyleClass),o.Y8G("ngClass",o.sMw(6,rs,M.checked,p.disabled,p.focused)),o.BMQ("for",p.inputId)("data-pc-section","label"),o.R7$(1),o.JRh(p.label)}}const Ll=function(P,Le,p){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":P,"p-radiobutton-disabled":Le,"p-radiobutton-focused":p}},Wc=function(P,Le,p){return{"p-radiobutton-box":!0,"p-highlight":P,"p-disabled":Le,"p-focus":p}},Lr={provide:V.kq,useExisting:(0,o.Rfq)(()=>Ra),multi:!0};let vo=(()=>{class P{accessors=[];add(p,M){this.accessors.push([p,M])}remove(p){this.accessors=this.accessors.filter(M=>M[1]!==p)}select(p){this.accessors.forEach(M=>{this.isSameGroup(M,p)&&M[1]!==p&&M[1].writeValue(p.value)})}isSameGroup(p,M){return!!p[0].control&&p[0].control.root===M.control.control.root&&p[1].name===M.name}static \u0275fac=function(M){return new(M||P)};static \u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Ra=(()=>{class P{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new o.bkB;onFocus=new o.bkB;onBlur=new o.bkB;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(p,M,T){this.cd=p,this.injector=M,this.registry=T}ngOnInit(){this.control=this.injector.get(V.vO),this.checkName(),this.registry.add(this.control,this)}handleClick(p,M,T){p.preventDefault(),!this.disabled&&(this.select(p),T&&M.focus())}select(p){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:p,value:this.value}))}writeValue(p){this.checked=p==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}onInputFocus(p){this.focused=!0,this.onFocus.emit(p)}onInputBlur(p){this.focused=!1,this.onModelTouched(),this.onBlur.emit(p)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(M){return new(M||P)(o.rXU(o.gRc),o.rXU(o.zZn),o.rXU(vo))};static \u0275cmp=o.VBU({type:P,selectors:[["p-radioButton"]],viewQuery:function(M,T){if(1&M&&o.GBs(Hl,5),2&M){let ee;o.mGM(ee=o.lsd())&&(T.inputViewChild=ee.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[o.Jv_([Lr])],decls:7,vars:29,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","value","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(M,T){if(1&M){const ee=o.RV6();o.j41(0,"div",0),o.bIt("click",function(rn){o.eBV(ee);const ri=o.sdS(3);return o.Njj(T.handleClick(rn,ri,!0))}),o.j41(1,"div",1)(2,"input",2,3),o.bIt("focus",function(rn){return T.onInputFocus(rn)})("blur",function(rn){return T.onInputBlur(rn)}),o.k0s()(),o.j41(4,"div",4),o.nrm(5,"span",5),o.k0s()(),o.DNE(6,H1,2,10,"label",6)}2&M&&(o.HbH(T.styleClass),o.Y8G("ngStyle",T.style)("ngClass",o.sMw(21,Ll,T.checked,T.disabled,T.focused)),o.BMQ("data-pc-name","radiobutton")("data-pc-section","root"),o.R7$(1),o.BMQ("data-pc-section","hiddenInputWrapper"),o.R7$(1),o.Y8G("checked",T.checked)("disabled",T.disabled)("value",T.value),o.BMQ("id",T.inputId)("name",T.name)("aria-labelledby",T.ariaLabelledBy)("aria-label",T.ariaLabel)("tabindex",T.tabindex)("aria-checked",T.checked)("data-pc-section","hiddenInput"),o.R7$(2),o.Y8G("ngClass",o.sMw(25,Wc,T.checked,T.disabled,T.focused)),o.BMQ("data-pc-section","input"),o.R7$(1),o.BMQ("data-pc-section","icon"),o.R7$(1),o.Y8G("ngIf",T.label))},dependencies:[g.YU,g.bT,g.B3],encapsulation:2,changeDetection:0})}return P})(),Qa=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();const Ea=["input"],L1=function(P,Le,p){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":P,"p-disabled":Le,"p-focus":p}},Na={provide:V.kq,useExisting:(0,o.Rfq)(()=>vs),multi:!0};let vs=(()=>{class P{cd;style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;onChange=new o.bkB;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(p){this.cd=p}onClick(p){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:p,checked:this.modelValue}),p.preventDefault(),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(p){this.modelValue=p,this.cd.markForCheck()}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=function(M){return new(M||P)(o.rXU(o.gRc))};static \u0275cmp=o.VBU({type:P,selectors:[["p-inputSwitch"]],viewQuery:function(M,T){if(1&M&&o.GBs(Ea,5),2&M){let ee;o.mGM(ee=o.lsd())&&(T.input=ee.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[o.Jv_([Na])],decls:5,vars:22,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","focus","blur"],["input",""],[1,"p-inputswitch-slider"]],template:function(M,T){1&M&&(o.j41(0,"div",0),o.bIt("click",function(Qe){return T.onClick(Qe)}),o.j41(1,"div",1)(2,"input",2,3),o.bIt("focus",function(){return T.onFocus()})("blur",function(){return T.onBlur()}),o.k0s()(),o.nrm(4,"span",4),o.k0s()),2&M&&(o.HbH(T.styleClass),o.Y8G("ngClass",o.sMw(18,L1,T.checked(),T.disabled,T.focused))("ngStyle",T.style),o.BMQ("data-pc-name","inputswitch")("data-pc-section","root"),o.R7$(1),o.BMQ("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),o.R7$(1),o.Y8G("checked",T.checked())("disabled",T.disabled),o.BMQ("id",T.inputId)("aria-checked",T.checked())("aria-labelledby",T.ariaLabelledBy)("aria-label",T.ariaLabel)("name",T.name)("tabindex",T.tabindex)("data-pc-section","hiddenInput"),o.R7$(2),o.BMQ("data-pc-section","slider"))},dependencies:[g.YU,g.B3],styles:['@layer primeng{.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}}\n'],encapsulation:2,changeDetection:0})}return P})(),Ja=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})(),pc=(()=>{class P{el;ngModel;control;cd;autoResize;onResize=new o.bkB;filled;cachedScrollHeight;ngModelSubscription;ngControlSubscription;constructor(p,M,T,ee){this.el=p,this.ngModel=M,this.control=T,this.cd=ee}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewChecked(){this.updateState()}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(p){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}resize(p){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(p||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}static \u0275fac=function(M){return new(M||P)(o.rXU(o.aKT),o.rXU(V.vS,8),o.rXU(V.vO,8),o.rXU(o.gRc))};static \u0275dir=o.FsC({type:P,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(M,T){1&M&&o.bIt("input",function(Qe){return T.onInput(Qe)}),2&M&&o.AVh("p-filled",T.filled)("p-inputtextarea-resizable",T.autoResize)},inputs:{autoResize:"autoResize"},outputs:{onResize:"onResize"}})}return P})(),zl=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();var co=F(6897);const vl=["sliderHandle"],qr=["sliderHandleStart"],sc=["sliderHandleEnd"],ie=function(P,Le){return{left:P,width:Le}};function Rt(P,Le){if(1&P&&o.nrm(0,"span",5),2&P){const p=o.XpG();o.Y8G("ngStyle",o.l_i(2,ie,null!=p.offset?p.offset+"%":p.handleValues[0]+"%",p.diff?p.diff+"%":p.handleValues[1]-p.handleValues[0]+"%")),o.BMQ("data-pc-section","range")}}const Q=function(P,Le){return{bottom:P,height:Le}};function ge(P,Le){if(1&P&&o.nrm(0,"span",5),2&P){const p=o.XpG();o.Y8G("ngStyle",o.l_i(2,Q,null!=p.offset?p.offset+"%":p.handleValues[0]+"%",p.diff?p.diff+"%":p.handleValues[1]-p.handleValues[0]+"%")),o.BMQ("data-pc-section","range")}}const Ke=function(P){return{height:P}};function Ct(P,Le){if(1&P&&o.nrm(0,"span",5),2&P){const p=o.XpG();o.Y8G("ngStyle",o.eq3(2,Ke,p.handleValue+"%")),o.BMQ("data-pc-section","range")}}const Oe=function(P){return{width:P}};function nn(P,Le){if(1&P&&o.nrm(0,"span",5),2&P){const p=o.XpG();o.Y8G("ngStyle",o.eq3(2,Oe,p.handleValue+"%")),o.BMQ("data-pc-section","range")}}const Qt=function(P,Le){return{left:P,bottom:Le}};function ne(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",6,7),o.bIt("touchstart",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDragStart(T))})("touchmove",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDrag(T))})("touchend",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDragEnd(T))})("mousedown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onMouseDown(T))})("keydown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onKeyDown(T))}),o.k0s()}if(2&P){const p=o.XpG();o.xc7("transition",p.dragging?"none":null),o.Y8G("ngStyle",o.l_i(11,Qt,"horizontal"==p.orientation?p.handleValue+"%":null,"vertical"==p.orientation?p.handleValue+"%":null)),o.BMQ("tabindex",p.disabled?null:p.tabindex)("aria-valuemin",p.min)("aria-valuenow",p.value)("aria-valuemax",p.max)("aria-labelledby",p.ariaLabelledBy)("aria-label",p.ariaLabel)("aria-orientation",p.orientation)("data-pc-section","handle")}}const fe=function(P){return{"p-slider-handle-active":P}};function Z(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",8,9),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onKeyDown(T,0))})("mousedown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onMouseDown(T,0))})("touchstart",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDragStart(T,0))})("touchmove",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDrag(T,0))})("touchend",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDragEnd(T))}),o.k0s()}if(2&P){const p=o.XpG();o.xc7("transition",p.dragging?"none":null),o.Y8G("ngStyle",o.l_i(12,Qt,p.rangeStartLeft,p.rangeStartBottom))("ngClass",o.eq3(15,fe,0==p.handleIndex)),o.BMQ("tabindex",p.disabled?null:p.tabindex)("aria-valuemin",p.min)("aria-valuenow",p.value?p.value[0]:null)("aria-valuemax",p.max)("aria-labelledby",p.ariaLabelledBy)("aria-label",p.ariaLabel)("aria-orientation",p.orientation)("data-pc-section","startHandler")}}function $e(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",10,11),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onKeyDown(T,1))})("mousedown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onMouseDown(T,1))})("touchstart",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDragStart(T,1))})("touchmove",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDrag(T,1))})("touchend",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onDragEnd(T))}),o.k0s()}if(2&P){const p=o.XpG();o.xc7("transition",p.dragging?"none":null),o.Y8G("ngStyle",o.l_i(12,Qt,p.rangeEndLeft,p.rangeEndBottom))("ngClass",o.eq3(15,fe,1==p.handleIndex)),o.BMQ("tabindex",p.disabled?null:p.tabindex)("aria-valuemin",p.min)("aria-valuenow",p.value?p.value[1]:null)("aria-valuemax",p.max)("aria-labelledby",p.ariaLabelledBy)("aria-label",p.ariaLabel)("aria-orientation",p.orientation)("data-pc-section","endHandler")}}const mt=function(P,Le,p,M){return{"p-slider p-component":!0,"p-disabled":P,"p-slider-horizontal":Le,"p-slider-vertical":p,"p-slider-animate":M}},Gn={provide:V.kq,useExisting:(0,o.Rfq)(()=>ir),multi:!0};let ir=(()=>{class P{document;platformId;el;renderer;ngZone;cd;animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;onChange=new o.bkB;onSlideEnd=new o.bkB;sliderHandle;sliderHandleStart;sliderHandleEnd;value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;constructor(p,M,T,ee,Qe,rn){this.document=p,this.platformId=M,this.el=T,this.renderer=ee,this.ngZone=Qe,this.cd=rn}onMouseDown(p,M){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:M,this.bindDragListeners(),p.target.focus(),p.preventDefault(),this.animate&&Ce.removeClass(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(p,M){if(!this.disabled){var T=p.changedTouches[0];this.startHandleValue=this.range?this.handleValues[M]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:M,"horizontal"===this.orientation?(this.startx=parseInt(T.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(T.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&Ce.removeClass(this.el.nativeElement.children[0],"p-slider-animate"),p.preventDefault()}}onDrag(p){if(!this.disabled){var T,M=p.changedTouches[0];T="horizontal"===this.orientation?Math.floor(100*(parseInt(M.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(M.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(p,T),p.preventDefault()}}onDragEnd(p){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:p,values:this.values}:{originalEvent:p,value:this.value}),this.animate&&Ce.addClass(this.el.nativeElement.children[0],"p-slider-animate"),p.preventDefault())}onBarClick(p){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(p),this.onSlideEnd.emit(this.range?{originalEvent:p,values:this.values}:{originalEvent:p,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(p,M){switch(this.handleIndex=M,p.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(p,M),p.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(p,M),p.preventDefault();break;case"PageDown":this.decrementValue(p,M,!0),p.preventDefault();break;case"PageUp":this.incrementValue(p,M,!0),p.preventDefault();break;case"Home":this.updateValue(this.min,p),p.preventDefault();break;case"End":this.updateValue(this.max,p),p.preventDefault()}}decrementValue(p,M,T=!1){let ee;ee=this.range?this.step?this.values[M]-this.step:this.values[M]-1:this.step?this.value-this.step:!this.step&&T?this.value-10:this.value-1,this.updateValue(ee,p),p.preventDefault()}incrementValue(p,M,T=!1){let ee;ee=this.range?this.step?this.values[M]+this.step:this.values[M]+1:this.step?this.value+this.step:!this.step&&T?this.value+10:this.value+1,this.updateValue(ee,p),p.preventDefault()}handleChange(p){let M=this.calculateHandleValue(p);this.setValueFromHandle(p,M)}bindDragListeners(){(0,g.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const p=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(p,"mousemove",M=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(M)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(p,"mouseup",M=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:M,values:this.values}:{originalEvent:M,value:this.value}),this.animate&&Ce.addClass(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(p,M){let T=this.getValueFromHandle(M);this.range?this.step?this.handleStepChange(T,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=M,this.updateValue(T,p)):this.step?this.handleStepChange(T,this.value):(this.handleValue=M,this.updateValue(T,p)),this.cd.markForCheck()}handleStepChange(p,M){let T=p-M,ee=M,Qe=this.step;T<0?ee=M+Math.ceil(p/Qe-M/Qe)*Qe:T>0&&(ee=M+Math.floor(p/Qe-M/Qe)*Qe),this.updateValue(ee),this.updateHandleValue()}writeValue(p){this.range?this.values=p||[0,0]:this.value=p||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(p){this.onModelChange=p}registerOnTouched(p){this.onModelTouched=p}setDisabledState(p){this.disabled=p,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let p=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=p.left+Ce.getWindowScrollLeft(),this.initY=p.top+Ce.getWindowScrollTop(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(p){return"horizontal"===this.orientation?100*(p.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-p.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.valuethis.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(p,M){if(this.range){let T=p;0==this.handleIndex?(Tthis.values[1]&&T>this.max&&(T=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(T>this.max?(T=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):Tthis.max&&(p=this.max,this.handleValue=100),this.value=this.getNormalizedValue(p),this.onModelChange(this.value),this.onChange.emit({event:M,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(p){return p/100*(this.max-this.min)+this.min}getDecimalsCount(p){return p&&Math.floor(p)!==p&&p.toString().split(".")[1].length||0}getNormalizedValue(p){let M=this.getDecimalsCount(this.step);return M>0?+parseFloat(p.toString()).toFixed(M):Math.floor(p)}ngOnDestroy(){this.unbindDragListeners()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=function(M){return new(M||P)(o.rXU(g.qQ),o.rXU(o.Agw),o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(o.SKi),o.rXU(o.gRc))};static \u0275cmp=o.VBU({type:P,selectors:[["p-slider"]],viewQuery:function(M,T){if(1&M&&(o.GBs(vl,5),o.GBs(qr,5),o.GBs(sc,5)),2&M){let ee;o.mGM(ee=o.lsd())&&(T.sliderHandle=ee.first),o.mGM(ee=o.lsd())&&(T.sliderHandleStart=ee.first),o.mGM(ee=o.lsd())&&(T.sliderHandleEnd=ee.first)}},hostAttrs:[1,"p-element"],inputs:{animate:"animate",disabled:"disabled",min:"min",max:"max",orientation:"orientation",step:"step",range:"range",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex"},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[o.Jv_([Gn])],decls:8,vars:18,consts:[[3,"ngStyle","ngClass","click"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"ngStyle","touchstart","touchmove","touchend","mousedown","keydown"],["sliderHandle",""],["role","slider",1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleStart",""],[1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleEnd",""]],template:function(M,T){1&M&&(o.j41(0,"div",0),o.bIt("click",function(Qe){return T.onBarClick(Qe)}),o.DNE(1,Rt,1,5,"span",1),o.DNE(2,ge,1,5,"span",1),o.DNE(3,Ct,1,4,"span",1),o.DNE(4,nn,1,4,"span",1),o.DNE(5,ne,2,14,"span",2),o.DNE(6,Z,2,17,"span",3),o.DNE(7,$e,2,17,"span",4),o.k0s()),2&M&&(o.HbH(T.styleClass),o.Y8G("ngStyle",T.style)("ngClass",o.ziG(13,mt,T.disabled,"horizontal"==T.orientation,"vertical"==T.orientation,T.animate)),o.BMQ("data-pc-name","slider")("data-pc-section","root"),o.R7$(1),o.Y8G("ngIf",T.range&&"horizontal"==T.orientation),o.R7$(1),o.Y8G("ngIf",T.range&&"vertical"==T.orientation),o.R7$(1),o.Y8G("ngIf",!T.range&&"vertical"==T.orientation),o.R7$(1),o.Y8G("ngIf",!T.range&&"horizontal"==T.orientation),o.R7$(1),o.Y8G("ngIf",!T.range),o.R7$(1),o.Y8G("ngIf",T.range),o.R7$(1),o.Y8G("ngIf",T.range))},dependencies:[g.YU,g.bT,g.B3],styles:["@layer primeng{.p-slider{position:relative}.p-slider .p-slider-handle{position:absolute;cursor:grab;touch-action:none;display:block}.p-slider-range{position:absolute;display:block}.p-slider-horizontal .p-slider-range{top:0;left:0;height:100%}.p-slider-horizontal .p-slider-handle{top:50%}.p-slider-vertical{height:100px}.p-slider-vertical .p-slider-handle{left:50%}.p-slider-vertical .p-slider-range{bottom:0;left:0;width:100%}}\n"],encapsulation:2,changeDetection:0})}return P})(),zr=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD]})}return P})();const fa={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let e2=(()=>{class P{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(p){this._label=p,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(p){this._icon=p,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(p){this._loading=p,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(fa);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(p,M){this.el=p,this.document=M}ngAfterViewInit(){Ce.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const p=[fa.button,fa.component];return this.icon&&!this.label&&pe.isEmpty(this.htmlElement.textContent)&&p.push(fa.iconOnly),this.loading&&(p.push(fa.disabled,fa.loading),!this.icon&&this.label&&p.push(fa.labelOnly),this.icon&&!this.label&&!pe.isEmpty(this.htmlElement.textContent)&&p.push(fa.iconOnly)),p}setStyleClass(){const p=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...p)}createLabel(){if(this.label){let p=this.document.createElement("span");this.icon&&!this.label&&p.setAttribute("aria-hidden","true"),p.className="p-button-label",p.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(p)}}createIcon(){if(this.icon||this.loading){let p=this.document.createElement("span");p.className="p-button-icon",p.setAttribute("aria-hidden","true");let M=this.label?"p-button-icon-"+this.iconPos:null;M&&Ce.addClass(p,M);let T=this.getIconClass();T&&Ce.addMultipleClasses(p,T),!this.loadingIcon&&this.loading&&(p.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(p,this.htmlElement.firstChild)}}updateLabel(){let p=Ce.findSingle(this.htmlElement,".p-button-label");this.label?p?p.textContent=this.label:this.createLabel():p&&this.htmlElement.removeChild(p)}updateIcon(){let p=Ce.findSingle(this.htmlElement,".p-button-icon"),M=Ce.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&p?p.innerHTML=this.spinnerIcon:p?.innerHTML&&(p.innerHTML=""),p?p.className=this.iconPos?"p-button-icon "+(M?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(M){return new(M||P)(o.rXU(o.aKT),o.rXU(g.qQ))};static \u0275dir=o.FsC({type:P,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return P})(),z1=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,ni,dt,Qi,dt]})}return P})(),Xl=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),y1=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["ChevronRightIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),_l=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["ChevronUpIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})(),sl=(()=>{class P extends Wn{static \u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static \u0275cmp=o.VBU({type:P,selectors:[["CalendarIcon"]],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(M,T){1&M&&(o.qSk(),o.j41(0,"svg",0),o.nrm(1,"path",1),o.k0s()),2&M&&(o.HbH(T.getClassNames()),o.BMQ("aria-label",T.ariaLabel)("aria-hidden",T.ariaHidden)("role",T.role))},encapsulation:2})}return P})();const Su=["container"],d1=["inputfield"],ku=["contentWrapper"];function bl(P,Le){if(1&P){const p=o.RV6();o.j41(0,"TimesIcon",10),o.bIt("click",function(){o.eBV(p);const T=o.XpG(3);return o.Njj(T.clear())}),o.k0s()}2&P&&o.Y8G("styleClass","p-calendar-clear-icon")}function tu(P,Le){}function C1(P,Le){1&P&&o.DNE(0,tu,0,0,"ng-template")}function Sc(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",11),o.bIt("click",function(){o.eBV(p);const T=o.XpG(3);return o.Njj(T.clear())}),o.DNE(1,C1,1,0,null,12),o.k0s()}if(2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngTemplateOutlet",p.clearIconTemplate)}}function nu(P,Le){if(1&P&&(o.qex(0),o.DNE(1,bl,1,1,"TimesIcon",8),o.DNE(2,Sc,2,1,"span",9),o.bVm()),2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("ngIf",!p.clearIconTemplate),o.R7$(1),o.Y8G("ngIf",p.clearIconTemplate)}}function Eu(P,Le){if(1&P&&o.nrm(0,"span",15),2&P){const p=o.XpG(3);o.Y8G("ngClass",p.icon)}}function Du(P,Le){1&P&&o.nrm(0,"CalendarIcon")}function iu(P,Le){}function sd(P,Le){1&P&&o.DNE(0,iu,0,0,"ng-template")}function t2(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Du,1,0,"CalendarIcon",6),o.DNE(2,sd,1,0,null,12),o.bVm()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngIf",!p.triggerIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.triggerIconTemplate)}}function od(P,Le){if(1&P){const p=o.RV6();o.j41(0,"button",13),o.bIt("click",function(T){o.eBV(p),o.XpG();const ee=o.sdS(1),Qe=o.XpG();return o.Njj(Qe.onButtonClick(T,ee))}),o.DNE(1,Eu,1,1,"span",14),o.DNE(2,t2,3,2,"ng-container",6),o.k0s()}if(2&P){const p=o.XpG(2);o.Y8G("disabled",p.disabled),o.BMQ("aria-label",p.iconButtonAriaLabel)("aria-expanded",p.overlayVisible)("aria-controls",p.panelId),o.R7$(1),o.Y8G("ngIf",p.icon),o.R7$(1),o.Y8G("ngIf",!p.icon)}}function X(P,Le){if(1&P){const p=o.RV6();o.j41(0,"input",4,5),o.bIt("focus",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onInputFocus(T))})("keydown",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onInputKeydown(T))})("click",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onInputClick())})("blur",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onInputBlur(T))})("input",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onUserInput(T))}),o.k0s(),o.DNE(2,nu,3,2,"ng-container",6),o.DNE(3,od,3,6,"button",7)}if(2&P){const p=o.XpG();o.HbH(p.inputStyleClass),o.Y8G("value",p.inputFieldValue)("readonly",p.readonlyInput)("ngStyle",p.inputStyle)("placeholder",p.placeholder||"")("disabled",p.disabled)("ngClass","p-inputtext p-component"),o.BMQ("id",p.inputId)("name",p.name)("required",p.required)("aria-required",p.required)("aria-expanded",p.overlayVisible)("aria-controls",p.panelId)("aria-labelledby",p.ariaLabelledBy)("aria-label",p.ariaLabel)("tabindex",p.tabindex)("inputmode",p.touchUI?"off":null),o.R7$(2),o.Y8G("ngIf",p.showClear&&!p.disabled&&null!=p.value),o.R7$(1),o.Y8G("ngIf",p.showIcon)}}function Pe(P,Le){1&P&&o.eu8(0)}function le(P,Le){1&P&&o.nrm(0,"ChevronLeftIcon",37),2&P&&o.Y8G("styleClass","p-datepicker-prev-icon")}function Ie(P,Le){}function Ot(P,Le){1&P&&o.DNE(0,Ie,0,0,"ng-template")}function bn(P,Le){if(1&P&&(o.j41(0,"span",38),o.DNE(1,Ot,1,0,null,12),o.k0s()),2&P){const p=o.XpG(5);o.R7$(1),o.Y8G("ngTemplateOutlet",p.previousIconTemplate)}}function Pn(P,Le){if(1&P){const p=o.RV6();o.j41(0,"button",35),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(4);return o.Njj(ee.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const ee=o.XpG(4);return o.Njj(ee.onPrevButtonClick(T))}),o.DNE(1,le,1,1,"ChevronLeftIcon",32),o.DNE(2,bn,2,1,"span",36),o.k0s()}if(2&P){const p=o.XpG(4);o.BMQ("aria-label",p.prevIconAriaLabel),o.R7$(1),o.Y8G("ngIf",!p.previousIconTemplate),o.R7$(1),o.Y8G("ngIf",p.previousIconTemplate)}}function Oi(P,Le){if(1&P){const p=o.RV6();o.j41(0,"button",39),o.bIt("click",function(T){o.eBV(p);const ee=o.XpG(4);return o.Njj(ee.switchToMonthView(T))})("keydown",function(T){o.eBV(p);const ee=o.XpG(4);return o.Njj(ee.onContainerButtonKeydown(T))}),o.EFF(1),o.k0s()}if(2&P){const p=o.XpG().$implicit,M=o.XpG(3);o.Y8G("disabled",M.switchViewButtonDisabled()),o.BMQ("aria-label",M.getTranslation("chooseMonth")),o.R7$(1),o.SpI(" ",M.getMonthName(p.month)," ")}}function lo(P,Le){if(1&P){const p=o.RV6();o.j41(0,"button",40),o.bIt("click",function(T){o.eBV(p);const ee=o.XpG(4);return o.Njj(ee.switchToYearView(T))})("keydown",function(T){o.eBV(p);const ee=o.XpG(4);return o.Njj(ee.onContainerButtonKeydown(T))}),o.EFF(1),o.k0s()}if(2&P){const p=o.XpG().$implicit,M=o.XpG(3);o.Y8G("disabled",M.switchViewButtonDisabled()),o.BMQ("aria-label",M.getTranslation("chooseYear")),o.R7$(1),o.SpI(" ",M.getYear(p)," ")}}function _o(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(5);o.R7$(1),o.Lme("",p.yearPickerValues()[0]," - ",p.yearPickerValues()[p.yearPickerValues().length-1],"")}}function Ds(P,Le){1&P&&o.eu8(0)}const xr=function(P){return{$implicit:P}};function ko(P,Le){if(1&P&&(o.j41(0,"span",41),o.DNE(1,_o,2,2,"ng-container",6),o.DNE(2,Ds,1,0,"ng-container",42),o.k0s()),2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("ngIf",!p.decadeTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decadeTemplate)("ngTemplateOutletContext",o.eq3(3,xr,p.yearPickerValues))}}function ms(P,Le){1&P&&o.nrm(0,"ChevronRightIcon",37),2&P&&o.Y8G("styleClass","p-datepicker-next-icon")}function ha(P,Le){}function Fa(P,Le){1&P&&o.DNE(0,ha,0,0,"ng-template")}function mc(P,Le){if(1&P&&(o.j41(0,"span",43),o.DNE(1,Fa,1,0,null,12),o.k0s()),2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("ngTemplateOutlet",p.nextIconTemplate)}}function kc(P,Le){if(1&P&&(o.j41(0,"th",49)(1,"span"),o.EFF(2),o.k0s()()),2&P){const p=o.XpG(5);o.R7$(2),o.JRh(p.getTranslation("weekHeader"))}}function js(P,Le){if(1&P&&(o.j41(0,"th",50)(1,"span"),o.EFF(2),o.k0s()()),2&P){const p=Le.$implicit;o.R7$(2),o.JRh(p)}}function uo(P,Le){if(1&P&&(o.j41(0,"td",53)(1,"span",54),o.EFF(2),o.k0s()()),2&P){const p=o.XpG().index,M=o.XpG(2).$implicit;o.R7$(2),o.SpI(" ",M.weekNumbers[p]," ")}}function oc(P,Le){if(1&P&&(o.qex(0),o.EFF(1),o.bVm()),2&P){const p=o.XpG(2).$implicit;o.R7$(1),o.JRh(p.day)}}function yl(P,Le){1&P&&o.eu8(0)}function S2(P,Le){if(1&P&&(o.qex(0),o.DNE(1,yl,1,0,"ng-container",42),o.bVm()),2&P){const p=o.XpG(2).$implicit,M=o.XpG(6);o.R7$(1),o.Y8G("ngTemplateOutlet",M.dateTemplate)("ngTemplateOutletContext",o.eq3(2,xr,p))}}function $o(P,Le){1&P&&o.eu8(0)}function Za(P,Le){if(1&P&&(o.qex(0),o.DNE(1,$o,1,0,"ng-container",42),o.bVm()),2&P){const p=o.XpG(2).$implicit,M=o.XpG(6);o.R7$(1),o.Y8G("ngTemplateOutlet",M.disabledDateTemplate)("ngTemplateOutletContext",o.eq3(2,xr,p))}}function ot(P,Le){if(1&P&&(o.j41(0,"div",57),o.EFF(1),o.k0s()),2&P){const p=o.XpG(2).$implicit;o.R7$(1),o.SpI(" ",p.day," ")}}const gc=function(P,Le){return{"p-highlight":P,"p-disabled":Le}};function ac(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"span",55),o.bIt("click",function(T){o.eBV(p);const ee=o.XpG().$implicit,Qe=o.XpG(6);return o.Njj(Qe.onDateSelect(T,ee))})("keydown",function(T){o.eBV(p);const ee=o.XpG().$implicit,Qe=o.XpG(3).index,rn=o.XpG(3);return o.Njj(rn.onDateCellKeydown(T,ee,Qe))}),o.DNE(2,oc,2,1,"ng-container",6),o.DNE(3,S2,2,4,"ng-container",6),o.DNE(4,Za,2,4,"ng-container",6),o.k0s(),o.DNE(5,ot,2,1,"div",56),o.bVm()}if(2&P){const p=o.XpG().$implicit,M=o.XpG(6);o.R7$(1),o.Y8G("ngClass",o.l_i(5,gc,M.isSelected(p)&&p.selectable,!p.selectable)),o.R7$(1),o.Y8G("ngIf",!M.dateTemplate&&(p.selectable||!M.disabledDateTemplate)),o.R7$(1),o.Y8G("ngIf",p.selectable||!M.disabledDateTemplate),o.R7$(1),o.Y8G("ngIf",!p.selectable),o.R7$(1),o.Y8G("ngIf",M.isSelected(p))}}const R1=function(P,Le){return{"p-datepicker-other-month":P,"p-datepicker-today":Le}};function k2(P,Le){if(1&P&&(o.j41(0,"td",15),o.DNE(1,ac,6,8,"ng-container",6),o.k0s()),2&P){const p=Le.$implicit,M=o.XpG(6);o.Y8G("ngClass",o.l_i(3,R1,p.otherMonth,p.today)),o.BMQ("aria-label",p.day),o.R7$(1),o.Y8G("ngIf",!p.otherMonth||M.showOtherMonths)}}function cc(P,Le){if(1&P&&(o.j41(0,"tr"),o.DNE(1,uo,3,1,"td",51),o.DNE(2,k2,2,6,"td",52),o.k0s()),2&P){const p=Le.$implicit,M=o.XpG(5);o.R7$(1),o.Y8G("ngIf",M.showWeek),o.R7$(1),o.Y8G("ngForOf",p)}}function Ud(P,Le){if(1&P&&(o.j41(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),o.DNE(4,kc,3,1,"th",46),o.DNE(5,js,3,1,"th",47),o.k0s()(),o.j41(6,"tbody"),o.DNE(7,cc,3,2,"tr",48),o.k0s()()()),2&P){const p=o.XpG().$implicit,M=o.XpG(3);o.R7$(4),o.Y8G("ngIf",M.showWeek),o.R7$(1),o.Y8G("ngForOf",M.weekDays),o.R7$(2),o.Y8G("ngForOf",p.dates)}}function Gd(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",24)(1,"div",25),o.DNE(2,Pn,3,3,"button",26),o.j41(3,"div",27),o.DNE(4,Oi,2,3,"button",28),o.DNE(5,lo,2,3,"button",29),o.DNE(6,ko,3,5,"span",30),o.k0s(),o.j41(7,"button",31),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onNextButtonClick(T))}),o.DNE(8,ms,1,1,"ChevronRightIcon",32),o.DNE(9,mc,2,1,"span",33),o.k0s()(),o.DNE(10,Ud,8,3,"div",34),o.k0s()}if(2&P){const p=Le.index,M=o.XpG(3);o.R7$(2),o.Y8G("ngIf",0===p),o.R7$(2),o.Y8G("ngIf","date"===M.currentView),o.R7$(1),o.Y8G("ngIf","year"!==M.currentView),o.R7$(1),o.Y8G("ngIf","year"===M.currentView),o.R7$(1),o.xc7("display",1===M.numberOfMonths||p===M.numberOfMonths-1?"inline-flex":"none"),o.BMQ("aria-label",M.nextIconAriaLabel),o.R7$(1),o.Y8G("ngIf",!M.nextIconTemplate),o.R7$(1),o.Y8G("ngIf",M.nextIconTemplate),o.R7$(1),o.Y8G("ngIf","date"===M.currentView)}}function Tu(P,Le){if(1&P&&(o.j41(0,"div",57),o.EFF(1),o.k0s()),2&P){const p=o.XpG().$implicit;o.R7$(1),o.SpI(" ",p," ")}}function qc(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",60),o.bIt("click",function(T){const Qe=o.eBV(p).index,rn=o.XpG(4);return o.Njj(rn.onMonthSelect(T,Qe))})("keydown",function(T){const Qe=o.eBV(p).index,rn=o.XpG(4);return o.Njj(rn.onMonthCellKeydown(T,Qe))}),o.EFF(1),o.DNE(2,Tu,2,1,"div",56),o.k0s()}if(2&P){const p=Le.$implicit,M=Le.index,T=o.XpG(4);o.Y8G("ngClass",o.l_i(3,gc,T.isMonthSelected(M),T.isMonthDisabled(M))),o.R7$(1),o.SpI(" ",p," "),o.R7$(1),o.Y8G("ngIf",T.isMonthSelected(M))}}function ru(P,Le){if(1&P&&(o.j41(0,"div",58),o.DNE(1,qc,3,6,"span",59),o.k0s()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngForOf",p.monthPickerValues())}}function Wd(P,Le){if(1&P&&(o.j41(0,"div",57),o.EFF(1),o.k0s()),2&P){const p=o.XpG().$implicit;o.R7$(1),o.SpI(" ",p," ")}}function n2(P,Le){if(1&P){const p=o.RV6();o.j41(0,"span",63),o.bIt("click",function(T){const Qe=o.eBV(p).$implicit,rn=o.XpG(4);return o.Njj(rn.onYearSelect(T,Qe))})("keydown",function(T){const Qe=o.eBV(p).$implicit,rn=o.XpG(4);return o.Njj(rn.onYearCellKeydown(T,Qe))}),o.EFF(1),o.DNE(2,Wd,2,1,"div",56),o.k0s()}if(2&P){const p=Le.$implicit,M=o.XpG(4);o.Y8G("ngClass",o.l_i(3,gc,M.isYearSelected(p),M.isYearDisabled(p))),o.R7$(1),o.SpI(" ",p," "),o.R7$(1),o.Y8G("ngIf",M.isYearSelected(p))}}function Nl(P,Le){if(1&P&&(o.j41(0,"div",61),o.DNE(1,n2,3,6,"span",62),o.k0s()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngForOf",p.yearPickerValues())}}function su(P,Le){if(1&P&&(o.qex(0),o.j41(1,"div",20),o.DNE(2,Gd,11,10,"div",21),o.k0s(),o.DNE(3,ru,2,1,"div",22),o.DNE(4,Nl,2,1,"div",23),o.bVm()),2&P){const p=o.XpG(2);o.R7$(2),o.Y8G("ngForOf",p.months),o.R7$(1),o.Y8G("ngIf","month"===p.currentView),o.R7$(1),o.Y8G("ngIf","year"===p.currentView)}}function Vu(P,Le){1&P&&o.nrm(0,"ChevronUpIcon")}function Zr(P,Le){}function ou(P,Le){1&P&&o.DNE(0,Zr,0,0,"ng-template")}function Pl(P,Le){1&P&&(o.qex(0),o.EFF(1,"0"),o.bVm())}function x1(P,Le){1&P&&o.nrm(0,"ChevronDownIcon")}function f1(P,Le){}function ad(P,Le){1&P&&o.DNE(0,f1,0,0,"ng-template")}function cd(P,Le){1&P&&o.nrm(0,"ChevronUpIcon")}function E2(P,Le){}function Au(P,Le){1&P&&o.DNE(0,E2,0,0,"ng-template")}function qd(P,Le){1&P&&(o.qex(0),o.EFF(1,"0"),o.bVm())}function Cl(P,Le){1&P&&o.nrm(0,"ChevronDownIcon")}function H3(P,Le){}function Iu(P,Le){1&P&&o.DNE(0,H3,0,0,"ng-template")}function li(P,Le){if(1&P&&(o.j41(0,"div",67)(1,"span"),o.EFF(2),o.k0s()()),2&P){const p=o.XpG(3);o.R7$(2),o.JRh(p.timeSeparator)}}function Fs(P,Le){1&P&&o.nrm(0,"ChevronUpIcon")}function au(P,Le){}function ld(P,Le){1&P&&o.DNE(0,au,0,0,"ng-template")}function Ec(P,Le){1&P&&(o.qex(0),o.EFF(1,"0"),o.bVm())}function w1(P,Le){1&P&&o.nrm(0,"ChevronDownIcon")}function D2(P,Le){}function ol(P,Le){1&P&&o.DNE(0,D2,0,0,"ng-template")}function T2(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",72)(1,"button",66),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.incrementSecond(T))})("keydown.space",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.incrementSecond(T))})("mousedown",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onTimePickerElementMouseDown(T,2,1))})("mouseup",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(3);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(2,Fs,1,0,"ChevronUpIcon",6),o.DNE(3,ld,1,0,null,12),o.k0s(),o.j41(4,"span"),o.DNE(5,Ec,2,0,"ng-container",6),o.EFF(6),o.k0s(),o.j41(7,"button",66),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.decrementSecond(T))})("keydown.space",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.decrementSecond(T))})("mousedown",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onTimePickerElementMouseDown(T,2,-1))})("mouseup",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(3);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(8,w1,1,0,"ChevronDownIcon",6),o.DNE(9,ol,1,0,null,12),o.k0s()()}if(2&P){const p=o.XpG(3);o.R7$(1),o.BMQ("aria-label",p.getTranslation("nextSecond")),o.R7$(1),o.Y8G("ngIf",!p.incrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.incrementIconTemplate),o.R7$(2),o.Y8G("ngIf",p.currentSecond<10),o.R7$(1),o.JRh(p.currentSecond),o.R7$(1),o.BMQ("aria-label",p.getTranslation("prevSecond")),o.R7$(1),o.Y8G("ngIf",!p.decrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decrementIconTemplate)}}function V2(P,Le){1&P&&o.nrm(0,"ChevronUpIcon")}function ud(P,Le){}function cu(P,Le){1&P&&o.DNE(0,ud,0,0,"ng-template")}function ue(P,Le){1&P&&o.nrm(0,"ChevronDownIcon")}function j(P,Le){}function N(P,Le){1&P&&o.DNE(0,j,0,0,"ng-template")}function K(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",73)(1,"button",74),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.toggleAMPM(T))})("keydown.enter",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.toggleAMPM(T))}),o.DNE(2,V2,1,0,"ChevronUpIcon",6),o.DNE(3,cu,1,0,null,12),o.k0s(),o.j41(4,"span"),o.EFF(5),o.k0s(),o.j41(6,"button",74),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.toggleAMPM(T))})("keydown.enter",function(T){o.eBV(p);const ee=o.XpG(3);return o.Njj(ee.toggleAMPM(T))}),o.DNE(7,ue,1,0,"ChevronDownIcon",6),o.DNE(8,N,1,0,null,12),o.k0s()()}if(2&P){const p=o.XpG(3);o.R7$(1),o.BMQ("aria-label",p.getTranslation("am")),o.R7$(1),o.Y8G("ngIf",!p.incrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.incrementIconTemplate),o.R7$(2),o.JRh(p.pm?"PM":"AM"),o.R7$(1),o.BMQ("aria-label",p.getTranslation("pm")),o.R7$(1),o.Y8G("ngIf",!p.decrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decrementIconTemplate)}}function ve(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",64)(1,"div",65)(2,"button",66),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.incrementHour(T))})("keydown.space",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.incrementHour(T))})("mousedown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseDown(T,0,1))})("mouseup",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(3,Vu,1,0,"ChevronUpIcon",6),o.DNE(4,ou,1,0,null,12),o.k0s(),o.j41(5,"span"),o.DNE(6,Pl,2,0,"ng-container",6),o.EFF(7),o.k0s(),o.j41(8,"button",66),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.decrementHour(T))})("keydown.space",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.decrementHour(T))})("mousedown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseDown(T,0,-1))})("mouseup",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(9,x1,1,0,"ChevronDownIcon",6),o.DNE(10,ad,1,0,null,12),o.k0s()(),o.j41(11,"div",67)(12,"span"),o.EFF(13),o.k0s()(),o.j41(14,"div",68)(15,"button",66),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.incrementMinute(T))})("keydown.space",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.incrementMinute(T))})("mousedown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseDown(T,1,1))})("mouseup",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(16,cd,1,0,"ChevronUpIcon",6),o.DNE(17,Au,1,0,null,12),o.k0s(),o.j41(18,"span"),o.DNE(19,qd,2,0,"ng-container",6),o.EFF(20),o.k0s(),o.j41(21,"button",66),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onContainerButtonKeydown(T))})("keydown.enter",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.decrementMinute(T))})("keydown.space",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.decrementMinute(T))})("mousedown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseDown(T,1,-1))})("mouseup",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.enter",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("keyup.space",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTimePickerElementMouseUp(T))})("mouseleave",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.onTimePickerElementMouseLeave())}),o.DNE(22,Cl,1,0,"ChevronDownIcon",6),o.DNE(23,Iu,1,0,null,12),o.k0s()(),o.DNE(24,li,3,1,"div",69),o.DNE(25,T2,10,8,"div",70),o.DNE(26,K,9,7,"div",71),o.k0s()}if(2&P){const p=o.XpG(2);o.R7$(2),o.BMQ("aria-label",p.getTranslation("nextHour")),o.R7$(1),o.Y8G("ngIf",!p.incrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.incrementIconTemplate),o.R7$(2),o.Y8G("ngIf",p.currentHour<10),o.R7$(1),o.JRh(p.currentHour),o.R7$(1),o.BMQ("aria-label",p.getTranslation("prevHour")),o.R7$(1),o.Y8G("ngIf",!p.decrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decrementIconTemplate),o.R7$(3),o.JRh(p.timeSeparator),o.R7$(2),o.BMQ("aria-label",p.getTranslation("nextMinute")),o.R7$(1),o.Y8G("ngIf",!p.incrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.incrementIconTemplate),o.R7$(2),o.Y8G("ngIf",p.currentMinute<10),o.R7$(1),o.JRh(p.currentMinute),o.R7$(1),o.BMQ("aria-label",p.getTranslation("prevMinute")),o.R7$(1),o.Y8G("ngIf",!p.decrementIconTemplate),o.R7$(1),o.Y8G("ngTemplateOutlet",p.decrementIconTemplate),o.R7$(1),o.Y8G("ngIf",p.showSeconds),o.R7$(1),o.Y8G("ngIf",p.showSeconds),o.R7$(1),o.Y8G("ngIf","12"==p.hourFormat)}}const Xe=function(P){return[P]};function Ft(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",75)(1,"button",76),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onTodayButtonClick(T))}),o.k0s(),o.j41(2,"button",76),o.bIt("keydown",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onContainerButtonKeydown(T))})("click",function(T){o.eBV(p);const ee=o.XpG(2);return o.Njj(ee.onClearButtonClick(T))}),o.k0s()()}if(2&P){const p=o.XpG(2);o.R7$(1),o.Y8G("label",p.getTranslation("today"))("ngClass",o.eq3(4,Xe,p.todayButtonStyleClass)),o.R7$(1),o.Y8G("label",p.getTranslation("clear"))("ngClass",o.eq3(6,Xe,p.clearButtonStyleClass))}}function I(P,Le){1&P&&o.eu8(0)}const B=function(P,Le,p,M,T,ee){return{"p-datepicker p-component":!0,"p-datepicker-inline":P,"p-disabled":Le,"p-datepicker-timeonly":p,"p-datepicker-multiple-month":M,"p-datepicker-monthpicker":T,"p-datepicker-touch-ui":ee}},R=function(P,Le){return{showTransitionParams:P,hideTransitionParams:Le}},q=function(P){return{value:"visibleTouchUI",params:P}},ae=function(P){return{value:"visible",params:P}};function Ne(P,Le){if(1&P){const p=o.RV6();o.j41(0,"div",16,17),o.bIt("@overlayAnimation.start",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onOverlayAnimationStart(T))})("@overlayAnimation.done",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onOverlayAnimationDone(T))})("click",function(T){o.eBV(p);const ee=o.XpG();return o.Njj(ee.onOverlayClick(T))}),o.SdG(2),o.DNE(3,Pe,1,0,"ng-container",12),o.DNE(4,su,5,3,"ng-container",6),o.DNE(5,ve,27,20,"div",18),o.DNE(6,Ft,3,8,"div",19),o.SdG(7,1),o.DNE(8,I,1,0,"ng-container",12),o.k0s()}if(2&P){const p=o.XpG();o.HbH(p.panelStyleClass),o.Y8G("ngStyle",p.panelStyle)("ngClass",o.l4e(14,B,p.inline,p.disabled,p.timeOnly,p.numberOfMonths>1,"month"===p.view,p.touchUI))("@overlayAnimation",p.touchUI?o.eq3(24,q,o.l_i(21,R,p.showTransitionOptions,p.hideTransitionOptions)):o.eq3(29,ae,o.l_i(26,R,p.showTransitionOptions,p.hideTransitionOptions)))("@.disabled",!0===p.inline),o.BMQ("aria-label",p.getTranslation("chooseDate"))("role",p.inline?null:"dialog")("aria-modal",p.inline?null:"true"),o.R7$(3),o.Y8G("ngTemplateOutlet",p.headerTemplate),o.R7$(1),o.Y8G("ngIf",!p.timeOnly),o.R7$(1),o.Y8G("ngIf",(p.showTime||p.timeOnly)&&"date"===p.currentView),o.R7$(1),o.Y8G("ngIf",p.showButtonBar),o.R7$(2),o.Y8G("ngTemplateOutlet",p.footerTemplate)}}const bt=[[["p-header"]],[["p-footer"]]],an=function(P,Le,p,M){return{"p-calendar":!0,"p-calendar-w-btn":P,"p-calendar-timeonly":Le,"p-calendar-disabled":p,"p-focus":M}},un=["p-header","p-footer"],Ci={provide:V.kq,useExisting:(0,o.Rfq)(()=>Ji),multi:!0};let Ji=(()=>{class P{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(p){this._minDate=p,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(p){this._maxDate=p,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(p){this._disabledDates=p,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(p){this._disabledDays=p,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(p){if(this._yearRange=p,p){const M=p.split(":"),T=parseInt(M[0]),ee=parseInt(M[1]);this.populateYearOptions(T,ee)}}get showTime(){return this._showTime}set showTime(p){this._showTime=p,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(p){this._responsiveOptions=p,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(p){this._numberOfMonths=p,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(p){this._firstDayOfWeek=p,this.createWeekDays()}set locale(p){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(p){this._view=p,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(p){if(this._defaultDate=p,this.initialized){const M=p||new Date;this.currentMonth=M.getMonth(),this.currentYear=M.getFullYear(),this.initTime(M),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new o.bkB;onBlur=new o.bkB;onClose=new o.bkB;onSelect=new o.bkB;onClear=new o.bkB;onInput=new o.bkB;onTodayClick=new o.bkB;onClearClick=new o.bkB;onMonthChange=new o.bkB;onYearChange=new o.bkB;onClickOutside=new o.bkB;onShow=new o.bkB;templates;containerViewChild;inputfieldViewChild;set content(p){this.contentViewChild=p,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(p,M,T,ee,Qe,rn,ri){this.document=p,this.el=M,this.renderer=T,this.cd=ee,this.zone=Qe,this.config=rn,this.overlayService=ri,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=be(),this.panelId=this.attributeSelector+"_panel";const p=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=p.getMonth(),this.currentYear=p.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(p),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(p=>{switch(p.getType()){case"date":default:this.dateTemplate=p.template;break;case"decade":this.decadeTemplate=p.template;break;case"disabledDate":this.disabledDateTemplate=p.template;break;case"header":this.headerTemplate=p.template;break;case"previousicon":this.previousIconTemplate=p.template;break;case"nexticon":this.nextIconTemplate=p.template;break;case"triggericon":this.triggerIconTemplate=p.template;break;case"clearicon":this.clearIconTemplate=p.template;break;case"decrementicon":this.decrementIconTemplate=p.template;break;case"incrementicon":this.incrementIconTemplate=p.template;break;case"footer":this.footerTemplate=p.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=Ce.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(p){return this.config.getTranslation(p)}populateYearOptions(p,M){this.yearOptions=[];for(let T=p;T<=M;T++)this.yearOptions.push(T)}createWeekDays(){this.weekDays=[];let p=this.getFirstDateOfWeek(),M=this.getTranslation(jt.DAY_NAMES_MIN);for(let T=0;T<7;T++)this.weekDays.push(M[p]),p=6==p?0:++p}monthPickerValues(){let p=[];for(let M=0;M<=11;M++)p.push(this.config.getTranslation("monthNamesShort")[M]);return p}yearPickerValues(){let p=[],M=this.currentYear-this.currentYear%10;for(let T=0;T<10;T++)p.push(M+T);return p}createMonths(p,M){this.months=this.months=[];for(let T=0;T11&&(ee=ee%11-1,Qe=M+1),this.months.push(this.createMonth(ee,Qe))}}getWeekNumber(p){let M=new Date(p.getTime());M.setDate(M.getDate()+4-(M.getDay()||7));let T=M.getTime();return M.setMonth(0),M.setDate(1),Math.floor(Math.round((T-M.getTime())/864e5)/7)+1}createMonth(p,M){let T=[],ee=this.getFirstDayOfMonthIndex(p,M),Qe=this.getDaysCountInMonth(p,M),rn=this.getDaysCountInPrevMonth(p,M),ri=1,Si=new Date,Zi=[],tr=Math.ceil((Qe+ee)/7);for(let fs=0;fsQe){let fo=this.getNextMonthAndYear(p,M);kr.push({day:ri-Qe,month:fo.month,year:fo.year,otherMonth:!0,today:this.isToday(Si,ri-Qe,fo.month,fo.year),selectable:this.isSelectable(ri-Qe,fo.month,fo.year,!0)})}else kr.push({day:ri,month:p,year:M,today:this.isToday(Si,ri,p,M),selectable:this.isSelectable(ri,p,M,!1)});ri++}this.showWeek&&Zi.push(this.getWeekNumber(new Date(kr[0].year,kr[0].month,kr[0].day))),T.push(kr)}return{month:p,year:M,dates:T,weekNumbers:Zi}}initTime(p){this.pm=p.getHours()>11,this.showTime?(this.currentMinute=p.getMinutes(),this.currentSecond=p.getSeconds(),this.setCurrentHourPM(p.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(p){this.disabled?p.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(p){this.disabled?p.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let p=this.yearOptions;if(this.yearNavigator&&this.currentYearp[p.length-1]){let M=p[p.length-1]-p[0];this.populateYearOptions(p[0]+M,p[p.length-1]+M)}}switchToMonthView(p){this.setCurrentView("month"),p.preventDefault()}switchToYearView(p){this.setCurrentView("year"),p.preventDefault()}onDateSelect(p,M){!this.disabled&&M.selectable?(this.isMultipleSelection()&&this.isSelected(M)?(this.value=this.value.filter((T,ee)=>!this.isDateEquals(T,M)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(M)&&this.selectDate(M),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{p.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),p.preventDefault()):p.preventDefault()}shouldSelectDate(p){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(p,M){"month"===this.view?this.onDateSelect(p,{year:this.currentYear,month:M,day:1,selectable:!0}):(this.currentMonth=M,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(p,M){"year"===this.view?this.onDateSelect(p,{year:M,month:0,day:1,selectable:!0}):(this.currentYear=M,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let p="";if(this.value)if(this.isSingleSelection())p=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let M=0;M11,this.currentHour=p>=12?12==p?12:p-12:0==p?12:p):this.currentHour=p}setCurrentView(p){this.currentView=p,this.cd.detectChanges(),this.alignOverlay()}selectDate(p){let M=new Date(p.year,p.month,p.day);if(this.showTime&&(M.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),M.setMinutes(this.currentMinute),M.setSeconds(this.currentSecond)),this.minDate&&this.minDate>M&&(M=this.minDate,this.setCurrentHourPM(M.getHours()),this.currentMinute=M.getMinutes(),this.currentSecond=M.getSeconds()),this.maxDate&&this.maxDate=T.getTime()?ee=M:(T=M,ee=null),this.updateModel([T,ee])}else this.updateModel([M,null]);this.onSelect.emit(M)}updateModel(p){if(this.value=p,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let M=null;Array.isArray(this.value)&&(M=this.value.map(T=>this.formatDateTime(T))),this.onModelChange(M)}}getFirstDayOfMonthIndex(p,M){let T=new Date;T.setDate(1),T.setMonth(p),T.setFullYear(M);let ee=T.getDay()+this.getSundayIndex();return ee>=7?ee-7:ee}getDaysCountInMonth(p,M){return 32-this.daylightSavingAdjust(new Date(M,p,32)).getDate()}getDaysCountInPrevMonth(p,M){let T=this.getPreviousMonthAndYear(p,M);return this.getDaysCountInMonth(T.month,T.year)}getPreviousMonthAndYear(p,M){let T,ee;return 0===p?(T=11,ee=M-1):(T=p-1,ee=M),{month:T,year:ee}}getNextMonthAndYear(p,M){let T,ee;return 11===p?(T=0,ee=M+1):(T=p+1,ee=M),{month:T,year:ee}}getSundayIndex(){let p=this.getFirstDateOfWeek();return p>0?7-p:0}isSelected(p){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,p);if(this.isMultipleSelection()){let M=!1;for(let T of this.value)if(M=this.isDateEquals(T,p),M)break;return M}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],p)||this.isDateEquals(this.value[1],p)||this.isDateBetween(this.value[0],this.value[1],p):this.isDateEquals(this.value[0],p):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(p){if(this.isComparable()&&!this.isMultipleSelection()){const[M,T]=this.isRangeSelection()?this.value:[this.value,this.value],ee=new Date(this.currentYear,p,1);return ee>=M&&ee<=(T??M)}return!1}isMonthDisabled(p){for(let M=1;M=Qe.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(p,M,T,ee){return p.getDate()===M&&p.getMonth()===T&&p.getFullYear()===ee}isSelectable(p,M,T,ee){let Qe=!0,rn=!0,ri=!0,Si=!0;return!(ee&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>T||this.minDate.getFullYear()===T&&(this.minDate.getMonth()>M||this.minDate.getMonth()===M&&this.minDate.getDate()>p))&&(Qe=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(p){this.navigationState={backward:!0,button:!0},this.navBackward(p)}onNextButtonClick(p){this.navigationState={backward:!1,button:!0},this.navForward(p)}onContainerButtonKeydown(p){switch(p.which){case 9:this.inline||this.trapFocus(p);break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault()}}onInputKeydown(p){this.isKeydown=!0,40===p.keyCode&&this.contentViewChild?this.trapFocus(p):27===p.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault()):13===p.keyCode?this.overlayVisible&&(this.overlayVisible=!1,p.preventDefault()):9===p.keyCode&&this.contentViewChild&&(Ce.getFocusableElements(this.contentViewChild.nativeElement).forEach(M=>M.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(p,M,T){const ee=p.currentTarget,Qe=ee.parentElement;switch(p.which){case 40:{ee.tabIndex="-1";let rn=Ce.index(Qe),ri=Qe.parentElement.nextElementSibling;ri?Ce.hasClass(ri.children[rn].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(p)):(ri.children[rn].children[0].tabIndex="0",ri.children[rn].children[0].focus()):(this.navigationState={backward:!1},this.navForward(p)),p.preventDefault();break}case 38:{ee.tabIndex="-1";let rn=Ce.index(Qe),ri=Qe.parentElement.previousElementSibling;if(ri){let Si=ri.children[rn].children[0];Ce.hasClass(Si,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(p)):(Si.tabIndex="0",Si.focus())}else this.navigationState={backward:!0},this.navBackward(p);p.preventDefault();break}case 37:{ee.tabIndex="-1";let rn=Qe.previousElementSibling;if(rn){let ri=rn.children[0];Ce.hasClass(ri,"p-disabled")||Ce.hasClass(ri.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,T):(ri.tabIndex="0",ri.focus())}else this.navigateToMonth(!0,T);p.preventDefault();break}case 39:{ee.tabIndex="-1";let rn=Qe.nextElementSibling;if(rn){let ri=rn.children[0];Ce.hasClass(ri,"p-disabled")?this.navigateToMonth(!1,T):(ri.tabIndex="0",ri.focus())}else this.navigateToMonth(!1,T);p.preventDefault();break}case 13:case 32:this.onDateSelect(p,M),p.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault();break;case 9:this.inline||this.trapFocus(p)}}onMonthCellKeydown(p,M){const T=p.currentTarget;switch(p.which){case 38:case 40:{T.tabIndex="-1";var ee=T.parentElement.children,Qe=Ce.index(T);let rn=ee[40===p.which?Qe+3:Qe-3];rn&&(rn.tabIndex="0",rn.focus()),p.preventDefault();break}case 37:{T.tabIndex="-1";let rn=T.previousElementSibling;rn?(rn.tabIndex="0",rn.focus()):(this.navigationState={backward:!0},this.navBackward(p)),p.preventDefault();break}case 39:{T.tabIndex="-1";let rn=T.nextElementSibling;rn?(rn.tabIndex="0",rn.focus()):(this.navigationState={backward:!1},this.navForward(p)),p.preventDefault();break}case 13:case 32:this.onMonthSelect(p,M),p.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault();break;case 9:this.inline||this.trapFocus(p)}}onYearCellKeydown(p,M){const T=p.currentTarget;switch(p.which){case 38:case 40:{T.tabIndex="-1";var ee=T.parentElement.children,Qe=Ce.index(T);let rn=ee[40===p.which?Qe+2:Qe-2];rn&&(rn.tabIndex="0",rn.focus()),p.preventDefault();break}case 37:{T.tabIndex="-1";let rn=T.previousElementSibling;rn?(rn.tabIndex="0",rn.focus()):(this.navigationState={backward:!0},this.navBackward(p)),p.preventDefault();break}case 39:{T.tabIndex="-1";let rn=T.nextElementSibling;rn?(rn.tabIndex="0",rn.focus()):(this.navigationState={backward:!1},this.navForward(p)),p.preventDefault();break}case 13:case 32:this.onYearSelect(p,M),p.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,p.preventDefault();break;case 9:this.trapFocus(p)}}navigateToMonth(p,M){if(p)if(1===this.numberOfMonths||0===M)this.navigationState={backward:!0},this.navBackward(event);else{let ee=Ce.find(this.contentViewChild.nativeElement.children[M-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),Qe=ee[ee.length-1];Qe.tabIndex="0",Qe.focus()}else if(1===this.numberOfMonths||M===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let ee=Ce.findSingle(this.contentViewChild.nativeElement.children[M+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");ee.tabIndex="0",ee.focus()}}updateFocus(){let p;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?Ce.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():Ce.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let M;M=Ce.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),M&&M.length>0&&(p=M[M.length-1])}else p=Ce.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");p&&(p.tabIndex="0",p.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const p=this.contentViewChild?.nativeElement;let M;if("month"===this.currentView){let T=Ce.find(p,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),ee=Ce.findSingle(p,".p-monthpicker .p-monthpicker-month.p-highlight");T.forEach(Qe=>Qe.tabIndex=-1),M=ee||T[0],0===T.length&&Ce.find(p,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(rn=>rn.tabIndex=-1)}else if("year"===this.currentView){let T=Ce.find(p,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),ee=Ce.findSingle(p,".p-yearpicker .p-yearpicker-year.p-highlight");T.forEach(Qe=>Qe.tabIndex=-1),M=ee||T[0],0===T.length&&Ce.find(p,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(rn=>rn.tabIndex=-1)}else if(M=Ce.findSingle(p,"span.p-highlight"),!M){let T=Ce.findSingle(p,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");M=T||Ce.findSingle(p,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}M&&(M.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||M.focus()},1),this.preventFocus=!1)}trapFocus(p){let M=Ce.getFocusableElements(this.contentViewChild.nativeElement);if(M&&M.length>0)if(M[0].ownerDocument.activeElement){let T=M.indexOf(M[0].ownerDocument.activeElement);if(p.shiftKey)if(-1==T||0===T)if(this.focusTrap)M[M.length-1].focus();else{if(-1===T)return this.hideOverlay();if(0===T)return}else M[T-1].focus();else if(-1==T)if(this.timeOnly)M[0].focus();else{let ee=0;for(let Qe=0;Qern||this.minDate.getHours()===rn&&(this.minDate.getMinutes()>M||this.minDate.getMinutes()===M&&this.minDate.getSeconds()>T))||this.maxDate&&ri&&this.maxDate.toDateString()===ri&&(this.maxDate.getHours()=24?T-24:T:"12"==this.hourFormat&&(this.currentHour<12&&T>11&&(ee=!this.pm),T=T>=13?T-12:T),this.validateTime(T,this.currentMinute,this.currentSecond,ee)&&(this.currentHour=T,this.pm=ee),p.preventDefault()}onTimePickerElementMouseDown(p,M,T){this.disabled||(this.repeat(p,null,M,T),p.preventDefault())}onTimePickerElementMouseUp(p){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(p,M,T,ee){let Qe=M||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(p,100,T,ee),this.cd.markForCheck()},Qe),T){case 0:1===ee?this.incrementHour(p):this.decrementHour(p);break;case 1:1===ee?this.incrementMinute(p):this.decrementMinute(p);break;case 2:1===ee?this.incrementSecond(p):this.decrementSecond(p)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(p){let M=this.currentHour-this.stepHour,T=this.pm;"24"==this.hourFormat?M=M<0?24+M:M:"12"==this.hourFormat&&(12===this.currentHour&&(T=!this.pm),M=M<=0?12+M:M),this.validateTime(M,this.currentMinute,this.currentSecond,T)&&(this.currentHour=M,this.pm=T),p.preventDefault()}incrementMinute(p){let M=this.currentMinute+this.stepMinute;M=M>59?M-60:M,this.validateTime(this.currentHour,M,this.currentSecond,this.pm)&&(this.currentMinute=M),p.preventDefault()}decrementMinute(p){let M=this.currentMinute-this.stepMinute;M=M<0?60+M:M,this.validateTime(this.currentHour,M,this.currentSecond,this.pm)&&(this.currentMinute=M),p.preventDefault()}incrementSecond(p){let M=this.currentSecond+this.stepSecond;M=M>59?M-60:M,this.validateTime(this.currentHour,this.currentMinute,M,this.pm)&&(this.currentSecond=M),p.preventDefault()}decrementSecond(p){let M=this.currentSecond-this.stepSecond;M=M<0?60+M:M,this.validateTime(this.currentHour,this.currentMinute,M,this.pm)&&(this.currentSecond=M),p.preventDefault()}updateTime(){let p=this.value;this.isRangeSelection()&&(p=this.value[1]||this.value[0]),this.isMultipleSelection()&&(p=this.value[this.value.length-1]),p=p?new Date(p.getTime()):new Date,p.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),p.setMinutes(this.currentMinute),p.setSeconds(this.currentSecond),this.isRangeSelection()&&(p=this.value[1]?[this.value[0],p]:[p,null]),this.isMultipleSelection()&&(p=[...this.value.slice(0,-1),p]),this.updateModel(p),this.onSelect.emit(p),this.updateInputfield()}toggleAMPM(p){const M=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,M)&&(this.pm=M,this.updateTime()),p.preventDefault()}onUserInput(p){if(!this.isKeydown)return;this.isKeydown=!1;let M=p.target.value;try{let T=this.parseValueFromString(M);this.isValidSelection(T)?(this.updateModel(T),this.updateUI()):this.keepInvalid&&this.updateModel(T)}catch{this.updateModel(this.keepInvalid?M:null)}this.filled=null!=M&&M.length,this.onInput.emit(p)}isValidSelection(p){let M=!0;return this.isSingleSelection()?this.isSelectable(p.getDate(),p.getMonth(),p.getFullYear(),!1)||(M=!1):p.every(T=>this.isSelectable(T.getDate(),T.getMonth(),T.getFullYear(),!1))&&this.isRangeSelection()&&(M=p.length>1&&p[1]>p[0]),M}parseValueFromString(p){if(!p||0===p.trim().length)return null;let M;if(this.isSingleSelection())M=this.parseDateTime(p);else if(this.isMultipleSelection()){let T=p.split(this.multipleSeparator);M=[];for(let ee of T)M.push(this.parseDateTime(ee.trim()))}else if(this.isRangeSelection()){let T=p.split(" "+this.rangeSeparator+" ");M=[];for(let ee=0;ee{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),Ce.blockBodyScroll())}disableModality(){this.mask&&(Ce.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let M,p=this.document.body.children;for(let T=0;T{const tr=T+1{let kr=""+tr;if(ee(Zi))for(;kr.lengthee(Zi)?kr[tr]:fs[tr];let ri="",Si=!1;if(p)for(T=0;T11&&12!=T&&(T-=12),M+="12"==this.hourFormat&&0===T?12:T<10?"0"+T:T,M+=":",M+=ee<10?"0"+ee:ee,this.showSeconds&&(M+=":",M+=Qe<10?"0"+Qe:Qe),"12"==this.hourFormat&&(M+=p.getHours()>11?" PM":" AM"),M}parseTime(p){let M=p.split(":");if(M.length!==(this.showSeconds?3:2))throw"Invalid time";let ee=parseInt(M[0]),Qe=parseInt(M[1]),rn=this.showSeconds?parseInt(M[2]):null;if(isNaN(ee)||isNaN(Qe)||ee>23||Qe>59||"12"==this.hourFormat&&ee>12||this.showSeconds&&(isNaN(rn)||rn>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==ee&&this.pm?ee+=12:!this.pm&&12===ee&&(ee-=12)),{hour:ee,minute:Qe,second:rn}}parseDate(p,M){if(null==M||null==p)throw"Invalid arguments";if(""===(p="object"==typeof p?p.toString():p+""))return null;let T,ee,Qe,Eo,rn=0,ri="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),Si=-1,Zi=-1,tr=-1,fs=-1,kr=!1,fo=Da=>{let ec=T+1{let ec=fo(Da),xl="@"===Da?14:"!"===Da?20:"y"===Da&&ec?4:"o"===Da?3:2,Jd=new RegExp("^\\d{"+("y"===Da?xl:1)+","+xl+"}"),I2=p.substring(rn).match(Jd);if(!I2)throw"Missing number at position "+rn;return rn+=I2[0].length,parseInt(I2[0],10)},Do=(Da,ec,xl)=>{let s2=-1,Jd=fo(Da)?xl:ec,I2=[];for(let o2=0;o2-(o2[1].length-a2[1].length));for(let o2=0;o2{if(p.charAt(rn)!==M.charAt(T))throw"Unexpected literal at position "+rn;rn++};for("month"===this.view&&(tr=1),T=0;T-1)for(Zi=1,tr=fs;ee=this.getDaysCountInMonth(Si,Zi-1),!(tr<=ee);)Zi++,tr-=ee;if("year"===this.view&&(Zi=-1===Zi?1:Zi,tr=-1===tr?1:tr),Eo=this.daylightSavingAdjust(new Date(Si,Zi-1,tr)),Eo.getFullYear()!==Si||Eo.getMonth()+1!==Zi||Eo.getDate()!==tr)throw"Invalid date";return Eo}daylightSavingAdjust(p){return p?(p.setHours(p.getHours()>12?p.getHours()+2:0),p):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(p){const M=new Date,T={day:M.getDate(),month:M.getMonth(),year:M.getFullYear(),otherMonth:M.getMonth()!==this.currentMonth||M.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(M.getMonth(),M.getFullYear()),this.onDateSelect(p,T),this.onTodayClick.emit(p)}onClearButtonClick(p){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(p)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let p="";if(this.responsiveOptions){let M=[...this.responsiveOptions].filter(T=>!(!T.breakpoint||!T.numMonths)).sort((T,ee)=>-1*T.breakpoint.localeCompare(ee.breakpoint,void 0,{numeric:!0}));for(let T=0;T{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",M=>{this.isOutsideClicked(M)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(M),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new zt(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(p){return!(this.el.nativeElement.isSameNode(p.target)||this.isNavIconClicked(p)||this.el.nativeElement.contains(p.target)||this.overlay&&this.overlay.contains(p.target))}isNavIconClicked(p){return Ce.hasClass(p.target,"p-datepicker-prev")||Ce.hasClass(p.target,"p-datepicker-prev-icon")||Ce.hasClass(p.target,"p-datepicker-next")||Ce.hasClass(p.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!Ce.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Te.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(M){return new(M||P)(o.rXU(g.qQ),o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(he),o.rXU(at))};static \u0275cmp=o.VBU({type:P,selectors:[["p-calendar"]],contentQueries:function(M,T,ee){if(1&M&&o.wni(ee,it,4),2&M){let Qe;o.mGM(Qe=o.lsd())&&(T.templates=Qe)}},viewQuery:function(M,T){if(1&M&&(o.GBs(Su,5),o.GBs(d1,5),o.GBs(ku,5)),2&M){let ee;o.mGM(ee=o.lsd())&&(T.containerViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.inputfieldViewChild=ee.first),o.mGM(ee=o.lsd())&&(T.content=ee.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(M,T){2&M&&o.AVh("p-inputwrapper-filled",T.filled)("p-inputwrapper-focus",T.focus)("p-calendar-clearable",T.showClear&&!T.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[o.Jv_([Ci])],ngContentSelectors:un,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(M,T){1&M&&(o.NAR(bt),o.j41(0,"span",0,1),o.DNE(2,X,4,20,"ng-template",2),o.DNE(3,Ne,9,31,"div",3),o.k0s()),2&M&&(o.HbH(T.styleClass),o.Y8G("ngClass",o.ziG(6,an,T.showIcon,T.timeOnly,T.disabled,T.focus||T.overlayVisible))("ngStyle",T.style),o.R7$(2),o.Y8G("ngIf",!T.inline),o.R7$(1),o.Y8G("ngIf",T.inline||T.overlayVisible))},dependencies:function(){return[g.YU,g.Sq,g.bT,g.T3,g.B3,e2,Vi,Xl,y1,_l,ii,Ni,sl]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[(0,Gt.hZ)("overlayAnimation",[(0,Gt.wk)("visibleTouchUI",(0,Gt.iF)({transform:"translate(-50%,-50%)",opacity:1})),(0,Gt.kY)("void => visible",[(0,Gt.iF)({opacity:0,transform:"scaleY(0.8)"}),(0,Gt.i0)("{{showTransitionParams}}",(0,Gt.iF)({opacity:1,transform:"*"}))]),(0,Gt.kY)("visible => void",[(0,Gt.i0)("{{hideTransitionParams}}",(0,Gt.iF)({opacity:0}))]),(0,Gt.kY)("void => visibleTouchUI",[(0,Gt.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),(0,Gt.i0)("{{showTransitionParams}}")]),(0,Gt.kY)("visibleTouchUI => void",[(0,Gt.i0)("{{hideTransitionParams}}",(0,Gt.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return P})(),ls=(()=>{class P{static \u0275fac=function(M){return new(M||P)};static \u0275mod=o.$C({type:P});static \u0275inj=o.G2t({imports:[g.MD,z1,dt,ni,Xl,y1,_l,ii,Ni,sl,z1,dt]})}return P})();function Ar(P,Le){1&P&&o.eu8(0)}const Po=function(){return["binary"]},al=function(P,Le){return{key:"p-checkbox",props:P,omit:Le}},Xo=function(P){return[P]};function Ko(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-checkbox",6,7),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG(4);return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG(4);o.R7$(1),o.Y8G("binary",!0)("formControl",p.control)("propsBinding",o.eq3(7,Xo,o.l_i(4,al,p.data.props,o.lJ4(3,Po))))}}function Io(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-checkbox",8),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG(4);return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG(2).$implicit,M=o.XpG(2);o.R7$(1),o.Y8G("name","group")("value",p.value)("formControl",M.control)("propsBinding",o.eq3(8,Xo,o.l_i(5,al,M.data.props,o.lJ4(4,Po))))}}function vc(P,Le){if(1&P&&(o.qex(0),o.DNE(1,Ko,3,9,"ng-container",0),o.DNE(2,Io,2,10,"ng-container",0),o.bVm()),2&P){const p=o.XpG(3);o.R7$(1),o.Y8G("ngIf",1===p.data.options.data.length),o.R7$(1),o.Y8G("ngIf",p.data.options.data.length>1)}}function bo(P,Le){1&P&&o.eu8(0)}const Ou=function(P){return{"justify-content":P}},Hu=function(P){return{label:P,isBefore:!0}},Rc=function(P){return{label:P,isBefore:!1}};function D4(P,Le){if(1&P&&(o.qex(0),o.j41(1,"label",4),o.DNE(2,Ar,1,0,"ng-container",5),o.DNE(3,vc,3,2,"ng-container",0),o.DNE(4,bo,1,0,"ng-container",5),o.k0s(),o.bVm()),2&P){const p=Le.$implicit;o.XpG();const M=o.sdS(4),T=o.XpG();o.R7$(1),o.Y8G("ngStyle",o.eq3(6,Ou,"before"===(null==T.data.options?null:T.data.options.labelPosition)?"space-between":null)),o.R7$(1),o.Y8G("ngTemplateOutlet",M)("ngTemplateOutletContext",o.eq3(8,Hu,p.label)),o.R7$(1),o.Y8G("ngIf",T.data.options&&T.data.options.data),o.R7$(1),o.Y8G("ngTemplateOutlet",M)("ngTemplateOutletContext",o.eq3(10,Rc,p.label))}}function M1(P,Le){if(1&P&&(o.qex(0),o.j41(1,"span"),o.EFF(2),o.k0s(),o.bVm()),2&P){const p=o.XpG().label;o.R7$(2),o.JRh(p)}}function er(P,Le){if(1&P&&o.DNE(0,M1,3,1,"ng-container",0),2&P){const p=Le.isBefore,M=o.XpG(2);o.Y8G("ngIf","before"===(null==M.data.options?null:M.data.options.labelPosition)===p)}}function wr(P,Le){if(1&P&&(o.qex(0),o.j41(1,"div",1),o.DNE(2,D4,5,12,"ng-container",2),o.k0s(),o.DNE(3,er,1,1,"ng-template",null,3,o.C5r),o.bVm()),2&P){const p=o.XpG();let M;o.R7$(1),o.Aen(p.groupButtonsStyles),o.Y8G("ngClass",o.eq3(4,Xo,null!==(M=null==p.data.options?null:p.data.options.containerClass)&&void 0!==M?M:"")),o.R7$(1),o.Y8G("ngForOf",null==p.data.options?null:p.data.options.data)}}const Mr=function(){return["options"]},yo=function(P,Le){return{key:"p-dropdown",props:P,omit:Le}};function Ba(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-dropdown",1),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))})("onBlur",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onTouched())}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(1),o.Y8G("options",null==p.data.options?null:p.data.options.data)("formControl",p.control)("propsBinding",o.eq3(7,Xo,o.l_i(4,yo,p.data.props,o.lJ4(3,Mr))))}}const Xc=function(){return["type"]},Sr=function(P,Le){return{key:"p-input-text",props:P,omit:Le}};function S1(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"input",1),o.bIt("input",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();let M;o.R7$(1),o.Y8G("type",null!==(M=p.data.type)&&void 0!==M?M:"text")("formControl",p.control)("propsBinding",o.eq3(7,Xo,o.l_i(4,Sr,p.data.props,o.lJ4(3,Xc))))}}function ya(P,Le){1&P&&o.eu8(0)}function Xd(P,Le){1&P&&o.eu8(0)}const L3=function(){return["value"]},$a=function(P,Le){return{key:"p-radio-button",props:P,omit:Le}};function jl(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"label",4),o.DNE(2,ya,1,0,"ng-container",5),o.j41(3,"p-radioButton",6),o.bIt("onClick",function(){o.eBV(p);const T=o.XpG(2);return o.Njj(T.updateControl())}),o.k0s(),o.DNE(4,Xd,1,0,"ng-container",5),o.k0s(),o.bVm()}if(2&P){const p=Le.$implicit,M=Le.index;o.XpG();const T=o.sdS(4),ee=o.XpG();o.R7$(1),o.Y8G("ngStyle",o.eq3(8,Ou,"before"===(null==ee.data.options?null:ee.data.options.labelPosition)?"space-between":null)),o.R7$(1),o.Y8G("ngTemplateOutlet",T)("ngTemplateOutletContext",o.eq3(10,Hu,p.label)),o.R7$(1),o.Y8G("value",M)("formControl",ee.control)("propsBinding",o.eq3(16,Xo,o.l_i(13,$a,ee.data.props,o.lJ4(12,L3)))),o.R7$(1),o.Y8G("ngTemplateOutlet",T)("ngTemplateOutletContext",o.eq3(18,Rc,p.label))}}function Kl(P,Le){if(1&P&&(o.qex(0),o.j41(1,"span"),o.EFF(2),o.k0s(),o.bVm()),2&P){const p=o.XpG().label;o.R7$(2),o.JRh(p)}}function Kd(P,Le){if(1&P&&o.DNE(0,Kl,3,1,"ng-container",0),2&P){const p=Le.isBefore,M=o.XpG(2);o.Y8G("ngIf","before"===(null==M.data.options?null:M.data.options.labelPosition)===p)}}const lu=function(P){return{"flex-direction":P}};function T4(P,Le){if(1&P&&(o.qex(0),o.j41(1,"div",1),o.DNE(2,jl,5,20,"ng-container",2),o.k0s(),o.DNE(3,Kd,1,1,"ng-template",null,3,o.C5r),o.bVm()),2&P){const p=o.XpG();let M;o.R7$(1),o.Aen(null==p.data.options?null:p.data.options.containerStyles),o.Y8G("ngClass",o.eq3(5,Xo,null!==(M=null==p.data.options?null:p.data.options.containerClass)&&void 0!==M?M:""))("ngStyle",o.eq3(7,lu,null==p.data.options?null:p.data.options.layout)),o.R7$(1),o.Y8G("ngForOf",null==p.data.options?null:p.data.options.data)}}function U0(P,Le){if(1&P&&o.eu8(0,6),2&P){o.XpG();const p=o.sdS(7);o.Y8G("ngTemplateOutlet",p)}}function Wh(P,Le){if(1&P&&o.eu8(0,6),2&P){o.XpG();const p=o.sdS(7);o.Y8G("ngTemplateOutlet",p)}}function im(P,Le){if(1&P&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&P){const p=o.XpG(3);o.R7$(1),o.JRh(null==p.data.options||null==p.data.options.data||null==p.data.options.data[0]?null:p.data.options.data[0].label)}}function rm(P,Le){if(1&P&&o.DNE(0,im,2,1,"span",0),2&P){const p=o.XpG(2);o.Y8G("ngIf",null==p.data.options||null==p.data.options.data||null==p.data.options.data[0]?null:p.data.options.data[0].label)}}const z3=function(P){return{key:"p-input-switch",props:P}};function dd(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"div",1)(2,"label",2),o.DNE(3,U0,1,1,"ng-container",3),o.j41(4,"p-inputSwitch",4),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.DNE(5,Wh,1,1,"ng-container",3),o.k0s()(),o.DNE(6,rm,1,1,"ng-template",null,5,o.C5r),o.bVm()}if(2&P){const p=o.XpG();o.R7$(3),o.Y8G("ngIf","before"===(null==p.data.options?null:p.data.options.labelPosition)),o.R7$(1),o.Y8G("formControl",p.control)("propsBinding",o.eq3(6,Xo,o.eq3(4,z3,p.data.props))),o.R7$(1),o.Y8G("ngIf","before"!==(null==p.data.options?null:p.data.options.labelPosition))}}const qh=function(P){return{key:"p-input-textarea",props:P}};function Lu(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"textarea",1),o.bIt("input",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(1),o.Y8G("formControl",p.control)("propsBinding",o.eq3(4,Xo,o.eq3(2,qh,p.data.props)))}}const Yd=function(P){return{key:"imask",props:P}},fd=function(P,Le){return[P,Le]};function Xh(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"input",1),o.bIt("complete",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(1),o.Y8G("formControl",p.control)("imask",p.data.inputMask)("propsBinding",o.l_i(9,fd,o.l_i(4,Sr,p.data.props,o.lJ4(3,Xc)),o.eq3(7,Yd,p.data.props)))}}const R3=function(P){return{key:"p-slider",props:P}};function G0(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"div",1)(2,"p-slider",2),o.bIt("onChange",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.onChange(T.control.value))}),o.k0s()(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(2),o.Y8G("formControl",p.control)("propsBinding",o.eq3(4,Xo,o.eq3(2,R3,p.data.props)))}}const A2=function(P){return{key:"p-calendar",props:P}};function r2(P,Le){if(1&P){const p=o.RV6();o.qex(0),o.j41(1,"p-calendar",1),o.bIt("onClose",function(){o.eBV(p);const T=o.XpG();return o.Njj(T.updateControl())}),o.k0s(),o.bVm()}if(2&P){const p=o.XpG();o.R7$(1),o.Y8G("formControl",p.control)("propsBinding",o.eq3(4,Xo,o.eq3(2,A2,p.data.props)))}}let zu=(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(p){this.onChange=p}get groupButtonsStyles(){return`\n flex-direction: ${this.data?.options?.layout??"row"};\n align-items: flex-start;\n ${this.data?.options?.containerStyles??""}\n `.replace(/\s{2,}/g,"")}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-checkbox"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-checkbox",token:te}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass"],[4,"ngFor","ngForOf"],["labelTemplate",""],[1,"option-button",3,"ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"binary","formControl","propsBinding","onChange"],["pCheckbox",""],[3,"name","value","formControl","propsBinding","onChange"]],template:function(M,T){1&M&&o.DNE(0,wr,5,6,"ng-container",0),2&M&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.YU,g.Sq,g.bT,g.T3,g.B3,V.X1,V.BC,V.l_,xe,te,oe.XO],encapsulation:2})}return P})(),Qd=(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.hs(""),this.onTouched=()=>{},this.onChange=p=>{}}registerOnChange(p){this.onChange=p}registerOnTouched(p){this.onTouched=p}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-select"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-dropdown",token:gl}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"options","formControl","propsBinding","onChange","onBlur"]],template:function(M,T){1&M&&o.DNE(0,Ba,2,9,"ng-container",0),2&M&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.BC,V.l_,No,gl,oe.XO],encapsulation:2})}return P})(),hd=(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.hs("")}registerOnChange(p){this.onChange=p}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-input"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-input-text",token:ia}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["pInputText","",3,"type","formControl","propsBinding","input"]],template:function(M,T){1&M&&o.DNE(0,S1,2,9,"ng-container",0),2&M&&o.Y8G("ngIf",T.control&&T.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,zc,ia,oe.XO],encapsulation:2})}return P})();const pd={checkbox:zu,date:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ(new Date)}registerOnChange(p){this._onChange=p}updateControl(){this._onChange(this.control.value)}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-date"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-calendar",token:Ji}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"formControl","propsBinding","onClose"]],template:function(M,T){1&M&&o.DNE(0,r2,2,6,"ng-container",0),2&M&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.BC,V.l_,ls,Ji,V.YN,oe.XO],encapsulation:2})}return P})(),password:hd,number:hd,email:hd,radio:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ(-1)}writeValue(p){const M=this.data?.options?.data?.findIndex(T=>JSON.stringify(T.value)===JSON.stringify(p));void 0!==M&&this.control.setValue(M)}registerOnChange(p){this._onChange=p}updateControl(){const p=this.control.value??-1;if(p>-1){const M=this.data?.options?.data?.[p].value;this._onChange(M)}}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-radio"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-radio-button",token:Ra}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf"],["labelTemplate",""],[1,"option-button",3,"ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"value","formControl","propsBinding","onClick"]],template:function(M,T){1&M&&o.DNE(0,T4,5,9,"ng-container",0),2&M&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.YU,g.Sq,g.bT,g.T3,g.B3,V.X1,V.BC,V.l_,Qa,Ra,oe.XO],encapsulation:2})}return P})(),range:(()=>{class P extends oe._H{constructor(){super(...arguments),this._pendingValue=0,this.control=new V.MJ(0)}writeValue(p){super.writeValue(p),this._pendingValue=p}registerOnChange(p){this.onChange=p}ngAfterViewInit(){this.sliderRef?.updateValue(this._pendingValue)}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-range"]],viewQuery:function(M,T){if(1&M&&o.GBs(ir,5),2&M){let ee;o.mGM(ee=o.lsd())&&(T.sliderRef=ee.first)}},standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-slider",token:ir}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"range-input"],[3,"formControl","propsBinding","onChange"]],template:function(M,T){1&M&&o.DNE(0,G0,3,6,"ng-container",0),2&M&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.BC,V.l_,zr,ir,oe.XO],encapsulation:2})}return P})(),select:Qd,switch:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ(!1)}registerOnChange(p){this.onChange=p}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-switch"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-input-switch",token:vs}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"option-button-wrapper"],[1,"option-button"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"formControl","propsBinding","onChange"],["labelTemplate",""],[3,"ngTemplateOutlet"]],template:function(M,T){1&M&&o.DNE(0,dd,8,8,"ng-container",0),2&M&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,g.T3,V.X1,V.BC,V.l_,Ja,vs,oe.XO],encapsulation:2})}return P})(),text:hd,textMask:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(p){this.onChange=p}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-input-mask"]],viewQuery:function(M,T){if(1&M&&o.GBs(ia,5),2&M){let ee;o.mGM(ee=o.lsd())&&(T.target=ee.first)}},standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-input-text",token:ia},{key:"imask",token:co.Zq}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["type","text","pInputText","","imaskValuePatch","",3,"formControl","imask","propsBinding","complete"]],template:function(M,T){1&M&&o.DNE(0,Xh,2,12,"ng-container",0),2&M&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,zc,ia,co.Zq,oe.wc,oe.XO],encapsulation:2})}return P})(),textarea:(()=>{class P extends oe._H{constructor(){super(...arguments),this.control=new V.MJ("")}registerOnChange(p){this.onChange=p}static#e=this.\u0275fac=function(){let p;return function(T){return(p||(p=o.xGo(P)))(T||P)}}();static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["ui-primeng-textarea"]],standalone:!0,features:[o.Jv_([(0,oe.Hf)([{key:"p-input-textarea",token:pc}])]),o.Vt3,o.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["pInputTextarea","",3,"formControl","propsBinding","input"]],template:function(M,T){1&M&&o.DNE(0,Lu,2,6,"ng-container",0),2&M&&o.Y8G("ngIf",T.data)},dependencies:[g.MD,g.bT,V.X1,V.me,V.BC,V.l_,zl,pc,oe.XO],encapsulation:2})}return P})()}},2709:(vn,J,F)=>{"use strict";F.d(J,{E2:()=>Qs,Hf:()=>ea,XO:()=>oo,_H:()=>Js,wc:()=>ta,yz:()=>vl});var g=F(2978),o=F(6897),V=F(2669),oe=F(5981),De=F(8448),pe=F(965),Ee=F(3527),be=F(756),me=F(3793),Te=F(8399),Ve=F(3422),ze=F(7236),vt=F(8503),Re=F(9406),tt=F(6104),de=F(6347),Fe=F(4526),_t=F(6340),at=F(2831),Be=F(199),he=F(8887),He=F(8129),Se=F(8486),it=F(2489),dt=F(8832),jt=F(6409),Wt=F(6610),wn=F(7212);function Wn(ie,Rt){1&ie&&g.eu8(0)}const di=function(){return["type"]},ai=function(ie,Rt){return{props:ie,omit:Rt}},Li=function(ie){return[ie]};function $i(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"input",7),g.bIt("change",function(Ke){g.eBV(Q);const Ct=g.XpG(4);return g.Njj(Ct.toggle(Ke))}),g.k0s(),g.bVm()}if(2&ie){const Q=g.XpG(4);g.R7$(1),g.Y8G("propsBinding",g.eq3(5,Li,g.l_i(2,ai,Q.data.props,g.lJ4(1,di))))}}function Hr(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"input",8),g.bIt("change",function(Ke){g.eBV(Q);const Ct=g.XpG(2).index,Oe=g.XpG(2);return g.Njj(Oe.onCheckboxChange(Ke,Ct))}),g.k0s(),g.bVm()}if(2&ie){const Q=g.XpG(2).$implicit,ge=g.XpG(2);g.R7$(1),g.Y8G("propsBinding",g.eq3(7,Li,g.l_i(4,ai,ge.data.props,g.lJ4(3,di))))("checked",ge.isChecked(Q.value))("disabled",ge.control.disabled)}}function ui(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,$i,2,7,"ng-container",0),g.DNE(2,Hr,2,9,"ng-container",0),g.bVm()),2&ie){const Q=g.XpG(3);g.R7$(1),g.Y8G("ngIf",1===Q.data.options.data.length),g.R7$(1),g.Y8G("ngIf",Q.data.options.data.length>1)}}function dn(ie,Rt){1&ie&&g.eu8(0)}const nt=function(ie){return{"justify-content":ie}},ht=function(ie){return{label:ie,isBefore:!0}},Je=function(ie){return{label:ie,isBefore:!1}};function Ae(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"label",4),g.DNE(2,Wn,1,0,"ng-container",5),g.DNE(3,ui,3,2,"ng-container",0),g.nrm(4,"span",6),g.DNE(5,dn,1,0,"ng-container",5),g.k0s(),g.bVm()),2&ie){const Q=Rt.$implicit;g.XpG();const ge=g.sdS(4),Ke=g.XpG();g.R7$(1),g.Y8G("ngStyle",g.eq3(6,nt,"before"===(null==Ke.data.options?null:Ke.data.options.labelPosition)?"space-between":null)),g.R7$(1),g.Y8G("ngTemplateOutlet",ge)("ngTemplateOutletContext",g.eq3(8,ht,Q.label)),g.R7$(1),g.Y8G("ngIf",Ke.data.options&&Ke.data.options.data),g.R7$(2),g.Y8G("ngTemplateOutlet",ge)("ngTemplateOutletContext",g.eq3(10,Je,Q.label))}}function Ue(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"span"),g.EFF(2),g.k0s(),g.bVm()),2&ie){const Q=g.XpG().label;g.R7$(2),g.JRh(Q)}}function Ze(ie,Rt){if(1&ie&&g.DNE(0,Ue,3,1,"ng-container",0),2&ie){const Q=Rt.isBefore,ge=g.XpG(2);g.Y8G("ngIf","before"===(null==ge.data.options?null:ge.data.options.labelPosition)===Q)}}const H=function(ie,Rt){return[ie,Rt]};function te(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",1),g.DNE(2,Ae,6,12,"ng-container",2),g.k0s(),g.DNE(3,Ze,1,1,"ng-template",null,3,g.C5r),g.bVm()),2&ie){const Q=g.XpG();let ge;g.R7$(1),g.Aen(Q.groupButtonsStyles),g.Y8G("ngClass",g.l_i(4,H,null!==(ge=null==Q.data.options?null:Q.data.options.containerClass)&&void 0!==ge?ge:"",Q.control.disabled?"disabled":"")),g.R7$(1),g.Y8G("ngForOf",null==Q.data.options?null:Q.data.options.data)}}function xe(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"input",3),g.bVm()),2&ie){const Q=g.XpG(2);g.R7$(1),g.Y8G("formControl",Q.control.controls.time)}}const Ce=function(ie){return{disabled:ie}},zt=function(){return["min","max","type"]};function rt(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"div",1)(2,"input",2),g.bIt("change",function(){g.eBV(Q);const Ke=g.XpG();return g.Njj(Ke.updateControl())}),g.k0s(),g.DNE(3,xe,2,1,"ng-container",0),g.k0s(),g.bVm()}if(2&ie){const Q=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(6,Ce,Q.control.disabled)),g.R7$(1),g.Y8G("propsBinding",g.eq3(12,Li,g.l_i(9,ai,Q.data.props,g.lJ4(8,zt))))("formControl",Q.control.controls.date),g.BMQ("min",Q.dateSettings.min)("max",Q.dateSettings.max),g.R7$(1),g.Y8G("ngIf",!0===(null==Q.data||null==Q.data.props?null:Q.data.props.showTime))}}const xt=function(ie){return{key:"imask",props:ie}};function Gt(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"input",1),g.bIt("complete",function(){g.eBV(Q);const Ke=g.XpG();return g.Njj(Ke.onChange(Ke.control.value))}),g.k0s(),g.bVm()}if(2&ie){const Q=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(4,Ce,Q.control.disabled))("imask",Q.data.inputMask)("propsBinding",g.l_i(12,H,g.l_i(7,ai,Q.data.props,g.lJ4(6,di)),g.eq3(10,xt,Q.data.props)))("formControl",Q.control)}}function xn(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"input",1),g.bIt("input",function(){g.eBV(Q);const Ke=g.XpG();return g.Njj(Ke.onChange(Ke.control.value))}),g.k0s(),g.bVm()}if(2&ie){const Q=g.XpG();let ge;g.R7$(1),g.Y8G("ngClass",g.eq3(4,Ce,Q.control.disabled))("propsBinding",g.eq3(10,Li,g.l_i(7,ai,Q.data.props,g.lJ4(6,di))))("formControl",Q.control),g.BMQ("type",null!==(ge=Q.data.type)&&void 0!==ge?ge:"text")}}function In(ie,Rt){if(1&ie&&(g.j41(0,"span"),g.EFF(1),g.k0s()),2&ie){const Q=g.XpG().$implicit;g.R7$(1),g.JRh(Q.label)}}function xi(ie,Rt){if(1&ie&&(g.j41(0,"span"),g.EFF(1),g.k0s()),2&ie){const Q=g.XpG().$implicit;g.R7$(1),g.JRh(Q.label)}}const or=function(){return["type","name"]};function ci(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"div",3)(2,"label",4),g.DNE(3,In,2,1,"span",0),g.j41(4,"input",5),g.bIt("change",function(){const Ct=g.eBV(Q).index,Oe=g.XpG(2);return g.Njj(Oe.onChange(Ct))}),g.k0s(),g.nrm(5,"span",6),g.DNE(6,xi,2,1,"span",0),g.k0s()(),g.bVm()}if(2&ie){const Q=Rt.index,ge=g.XpG(2);g.R7$(2),g.Y8G("ngStyle",g.eq3(6,nt,"before"===(null==ge.data.options?null:ge.data.options.labelPosition)?"space-between":null)),g.R7$(1),g.Y8G("ngIf","before"===(null==ge.data.options?null:ge.data.options.labelPosition)),g.R7$(1),g.Y8G("name",ge.data.formControlName)("propsBinding",g.eq3(12,Li,g.l_i(9,ai,ge.data.props,g.lJ4(8,or))))("checked",ge.selectedIndex===Q),g.R7$(2),g.Y8G("ngIf","before"!==(null==ge.data.options?null:ge.data.options.labelPosition))}}const Dr=function(ie){return{"flex-direction":ie}};function Tr(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",1),g.DNE(2,ci,7,14,"ng-container",2),g.k0s(),g.bVm()),2&ie){const Q=g.XpG();let ge;g.R7$(1),g.Aen(null==Q.data.options?null:Q.data.options.containerStyles),g.Y8G("ngClass",g.l_i(5,H,null!==(ge=null==Q.data.options?null:Q.data.options.containerClass)&&void 0!==ge?ge:"",Q.isDisabled?"disabled":""))("ngStyle",g.eq3(8,Dr,null==Q.data.options?null:Q.data.options.layout)),g.R7$(1),g.Y8G("ngForOf",null==Q.data.options?null:Q.data.options.data)}}function cn(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",3),g.EFF(2),g.k0s(),g.bVm()),2&ie){const Q=g.XpG(2);g.R7$(1),g.xc7("--left",Q.valuePosition),g.R7$(1),g.SpI(" ",Q.control.value," ")}}function On(ie,Rt){1&ie&&(g.qex(0),g.nrm(1,"span",8),g.bVm())}function Qn(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",4),g.DNE(2,On,2,0,"ng-container",5),g.k0s(),g.j41(3,"div",6),g.EFF(4),g.k0s(),g.j41(5,"div",7),g.EFF(6),g.k0s(),g.bVm()),2&ie){const Q=g.XpG(2);g.R7$(2),g.Y8G("ngForOf",Q.tickMarks),g.R7$(2),g.JRh(null==Q.data.props?null:Q.data.props.min),g.R7$(2),g.JRh(null==Q.data.props?null:Q.data.props.max)}}const fi=function(ie,Rt){return{"show-tick-marks":ie,disabled:Rt}},qe=function(ie){return{"background-size":ie}};function Mt(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"div",1)(2,"input",2),g.bIt("input",function(){g.eBV(Q);const Ke=g.XpG();return g.Njj(Ke.onChange(Ke.control.value))}),g.k0s(),g.DNE(3,cn,3,3,"ng-container",0),g.DNE(4,Qn,7,3,"ng-container",0),g.k0s(),g.bVm()}if(2&ie){const Q=g.XpG();g.R7$(1),g.Y8G("ngClass",g.l_i(6,fi,!0===(null==Q.data.props?null:Q.data.props.showTickMarks)||!0===(null==Q.data.props?null:Q.data.props.showCurrentValue),Q.control.disabled)),g.R7$(1),g.Y8G("ngStyle",g.eq3(9,qe,Q.valuePosition))("propsBinding",g.eq3(15,Li,g.l_i(12,ai,Q.data.props,g.lJ4(11,di))))("formControl",Q.control),g.R7$(1),g.Y8G("ngIf",null==Q.data.props?null:Q.data.props.showCurrentValue),g.R7$(1),g.Y8G("ngIf",null==Q.data.props?null:Q.data.props.showTickMarks)}}function Bt(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"option",4),g.EFF(2),g.k0s(),g.bVm()),2&ie){const Q=Rt.$implicit,ge=Rt.index;g.R7$(1),g.Y8G("value",ge),g.R7$(1),g.JRh(Q.label)}}const hn=function(ie){return{props:ie}};function Mn(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"div",1)(2,"select",2),g.bIt("blur",function(){g.eBV(Q);const Ke=g.XpG();return g.Njj(Ke.onTouched())})("change",function(Ke){g.eBV(Q);const Ct=g.XpG();return g.Njj(Ct.updateControl(Ke))}),g.DNE(3,Bt,3,2,"ng-container",3),g.k0s()(),g.bVm()}if(2&ie){const Q=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(5,Ce,Q.control.disabled))("ngStyle",g.eq3(7,Dr,null==Q.data.options?null:Q.data.options.layout)),g.R7$(1),g.Y8G("propsBinding",g.eq3(11,Li,g.eq3(9,hn,Q.data.props)))("formControl",Q.control),g.R7$(1),g.Y8G("ngForOf",null==Q.data.options?null:Q.data.options.data)}}function Vi(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){g.XpG();const Q=g.sdS(8);g.Y8G("ngTemplateOutlet",Q)}}function ni(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){g.XpG();const Q=g.sdS(8);g.Y8G("ngTemplateOutlet",Q)}}function Qi(ie,Rt){if(1&ie&&(g.j41(0,"span"),g.EFF(1),g.k0s()),2&ie){const Q=g.XpG(3);g.R7$(1),g.JRh(null==Q.data.options||null==Q.data.options.data||null==Q.data.options.data[0]?null:Q.data.options.data[0].label)}}function dr(ie,Rt){if(1&ie&&g.DNE(0,Qi,2,1,"span",0),2&ie){const Q=g.XpG(2);g.Y8G("ngIf",null==Q.data.options||null==Q.data.options.data||null==Q.data.options.data[0]?null:Q.data.options.data[0].label)}}function no(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"div",1)(2,"label",2),g.DNE(3,Vi,1,1,"ng-container",3),g.j41(4,"input",4),g.bIt("change",function(Ke){g.eBV(Q);const Ct=g.XpG();return g.Njj(Ct.updateControl(Ke))}),g.k0s(),g.nrm(5,"span",5),g.DNE(6,ni,1,1,"ng-container",3),g.k0s()(),g.DNE(7,dr,1,1,"ng-template",null,6,g.C5r),g.bVm()}if(2&ie){const Q=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(5,Ce,Q.control.disabled)),g.R7$(2),g.Y8G("ngIf","before"===(null==Q.data.options?null:Q.data.options.labelPosition)),g.R7$(1),g.Y8G("propsBinding",g.eq3(11,Li,g.l_i(8,ai,Q.data.props,g.lJ4(7,di))))("checked",!0===Q.control.value),g.R7$(2),g.Y8G("ngIf","before"!==(null==Q.data.options?null:Q.data.options.labelPosition))}}const Jr=function(ie){return{key:"textarea-autoheight",props:ie}};function Ki(ie,Rt){if(1&ie){const Q=g.RV6();g.qex(0),g.j41(1,"textarea",1),g.bIt("input",function(){g.eBV(Q);const Ke=g.XpG();return g.Njj(Ke.onChange(Ke.control.value))}),g.k0s(),g.bVm()}if(2&ie){const Q=g.XpG();g.R7$(1),g.Y8G("ngClass",g.eq3(3,Ce,Q.control.disabled))("propsBinding",g.eq3(7,Li,g.eq3(5,Jr,Q.data.props)))("formControl",Q.control)}}const Ys=["componentAnchor"];function so(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div"),g.EFF(2),g.k0s(),g.bVm()),2&ie){const Q=Rt.$implicit;g.R7$(2),g.JRh(Q)}}function zo(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,so,3,1,"ng-container",3),g.bVm()),2&ie){const Q=g.XpG();g.R7$(1),g.Y8G("ngForOf",Q.errorMessages)}}const qa=function(ie,Rt){return{control:ie,messages:Rt}},xc=function(ie){return{transform:ie}};function mo(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"span",4),g.qSk(),g.j41(2,"svg",5),g.nrm(3,"path",6),g.k0s()(),g.bVm()),2&ie){const Q=g.XpG(2);g.R7$(1),g.Y8G("ngStyle",g.eq3(1,xc,Q.expand?"rotate(0deg)":"rotate(-180deg)"))}}function Ss(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"span",3),g.EFF(2),g.k0s(),g.DNE(3,mo,4,3,"ng-container",0),g.bVm()),2&ie){const Q=g.XpG();g.R7$(2),g.JRh(Q.label),g.R7$(1),g.Y8G("ngIf",Q.collapsible)}}const io=function(ie,Rt,Q,ge,Ke,Ct){return{label:ie,layout:Rt,toggle:Q,collapsible:ge,expand:Ke,props:Ct}};function Wo(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){const Q=g.XpG();g.Y8G("ngTemplateOutlet",Q.customTemplate)("ngTemplateOutletContext",g.l4e(2,io,Q.label,Q.layout,Q.toggle,Q.collapsible,Q.expand,Q.props))}}const ic=function(ie){return{type:"label",layout:ie}},jn=function(ie){return{required:ie}};function kn(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"form-label",6),g.nI1(2,"isControlRequired"),g.bVm()),2&ie){g.XpG();const Q=g.sdS(3),ge=g.XpG();let Ke,Ct;g.R7$(1),g.Y8G("label",ge.config.label)("layout",ge.config.layout)("props",ge.config.props)("collapsibleEl",Q)("customComponent",null!==(Ke=null==ge.labelComponents?null:ge.labelComponents[ge.config.formControlName])&&void 0!==Ke?Ke:ge.labelComponentDefault)("customTemplate",null!==(Ct=null==ge.labelTemplates?null:ge.labelTemplates[ge.config.formControlName])&&void 0!==Ct?Ct:ge.labelTemplateDefault)("state",ge.collapsibleState)("controlLayout",g.eq3(11,ic,ge.config.layout))("ngClass",g.eq3(13,jn,!1===(null==ge.config.layout?null:ge.config.layout.autoAddRequiredClass)?null:g.bMT(2,9,ge.control)))}}const It=function(ie){return{data:ie}};function Jt(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){const Q=g.XpG(2),ge=g.sdS(2);g.Y8G("ngTemplateOutlet",ge)("ngTemplateOutletContext",g.eq3(2,It,Q.config))}}function Un(ie,Rt){if(1&ie&&g.eu8(0,7),2&ie){const Q=g.XpG(2),ge=g.sdS(2);g.Y8G("ngTemplateOutlet",ge)("ngTemplateOutletContext",g.eq3(2,It,Q.config))}}const yt=function(ie){return{type:"content",layout:ie}},ft=function(ie){return{type:"error",layout:ie}},Pt=function(ie){return{hidden:ie}};function Cn(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,kn,3,15,"ng-container",0),g.j41(2,"div",2,3),g.DNE(4,Jt,1,4,"ng-container",4),g.SdG(5),g.DNE(6,Un,1,4,"ng-container",4),g.nrm(7,"error-message",5),g.k0s(),g.bVm()),2&ie){const Q=g.XpG();let ge,Ke;g.R7$(1),g.Y8G("ngIf",Q.config.label),g.R7$(1),g.Y8G("controlLayout",g.eq3(10,yt,Q.config.layout)),g.R7$(2),g.Y8G("ngIf",Q.config.description&&"after"!==(null==Q.config.layout?null:Q.config.layout.descriptionPosition)),g.R7$(2),g.Y8G("ngIf",Q.config.description&&"after"===(null==Q.config.layout?null:Q.config.layout.descriptionPosition)),g.R7$(1),g.Y8G("control",Q.control)("validators",Q.config.validators)("customComponent",null!==(ge=null==Q.errorComponents?null:Q.errorComponents[Q.config.formControlName])&&void 0!==ge?ge:Q.errorComponentDefault)("customTemplate",null!==(Ke=null==Q.errorTemplates?null:Q.errorTemplates[Q.config.formControlName])&&void 0!==Ke?Ke:Q.errorTemplateDefault)("controlLayout",g.eq3(12,ft,Q.config.layout))("ngClass",g.eq3(14,Pt,!Q.showErrors))}}const pn=function(ie){return{type:"description",layout:ie}};function Di(ie,Rt){if(1&ie&&(g.j41(0,"span",8),g.EFF(1),g.k0s()),2&ie){const Q=Rt.data;g.Y8G("controlLayout",g.eq3(2,pn,Q.layout)),g.R7$(1),g.JRh(Q.description)}}const nr=["*"],tn=["inputComponentAnchor"];function Tt(ie,Rt){1&ie&&g.eu8(0)}const Kt=function(ie,Rt){return{disabled:ie,hidden:Rt}},Vn=function(ie,Rt,Q,ge){return{control:ie,data:Rt,hostForm:Q,hideErrorMessage:ge}};function qn(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",1),g.eu8(2,2)(3,null,3),g.k0s(),g.j41(5,"div",4),g.DNE(6,Tt,1,0,"ng-container",5),g.eu8(7,6),g.k0s(),g.bVm()),2&ie){const Q=g.XpG();let ge,Ke,Ct;g.R7$(1),g.Y8G("ngClass",g.l_i(6,Kt,!Q.useCustomLoading&&Q.loading,Q.useCustomLoading&&Q.loading)),g.R7$(1),g.Y8G("ngTemplateOutlet",null!==(ge=null==Q.customTemplates?null:Q.customTemplates[Q.data.formControlName])&&void 0!==ge?ge:null)("ngTemplateOutletContext",g.ziG(9,Vn,Q.control,Q.data,Q.hostForm,Q.hideErrorMessage$.value)),g.R7$(3),g.Y8G("ngClass",g.eq3(14,Pt,!Q.loading)),g.R7$(1),g.Y8G("ngComponentOutlet",null!==(Ke=Q.loadingComponent)&&void 0!==Ke?Ke:null),g.R7$(1),g.Y8G("ngTemplateOutlet",null!==(Ct=Q.loadingTemplate)&&void 0!==Ct?Ct:null)}}const pi=function(ie){return{type:"inputArea",layout:ie}};function ti(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"form-control",4),g.bVm()),2&ie){const Q=g.XpG().ngIf,ge=g.XpG(2).$implicit,Ke=g.XpG();g.R7$(1),g.Y8G("data",ge)("control",Q)("formControlName",ge.formControlName)("customComponent",null==Ke.customComponents?null:Ke.customComponents[ge.formControlName])("controlLayout",g.eq3(5,pi,ge.layout))}}const Ni=function(ie){return{type:"formGroup",layout:ie}};function ii(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"form-group",5),g.bVm()),2&ie){const Q=g.XpG().ngIf,ge=g.XpG(2).$implicit,Ke=g.XpG();g.R7$(1),g.Y8G("parentId",(Ke.parentId?Ke.parentId+".":"")+ge.formControlName)("parentForm",Q)("configs",ge.children)("collapsibleState",Ke.collapsibleState)("controlLayout",g.eq3(5,Ni,ge.layout))}}const lr=function(ie,Rt){return{parentId:ie,controlName:Rt}},Gr=function(ie,Rt){return{"form-control-container":ie,readonly:Rt}},xs=function(ie){return{type:"host",layout:ie}};function ks(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"content-wrapper",3),g.nI1(2,"controlTypeByConfig"),g.DNE(3,ti,2,7,"ng-container",2),g.nI1(4,"controlTypeByConfig"),g.DNE(5,ii,2,7,"ng-container",2),g.nI1(6,"controlTypeByConfig"),g.k0s(),g.bVm()),2&ie){const Q=Rt.ngIf,ge=g.XpG(2).$implicit,Ke=g.XpG();g.R7$(1),g.Y8G("config",ge)("control",Q)("collapsibleState",Ke.collapsibleState)("hostId",g.l_i(14,lr,Ke.parentId,ge.formControlName))("ngClass",g.l_i(17,Gr,"FormControl"===g.bMT(2,8,ge),ge.readonly))("controlLayout",g.eq3(20,xs,ge.layout)),g.R7$(2),g.Y8G("ngIf","FormControl"===g.bMT(4,10,ge)),g.R7$(2),g.Y8G("ngIf","FormGroup"===g.bMT(6,12,ge))}}function Vr(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,ks,7,22,"ng-container",2),g.bVm()),2&ie){const Q=g.XpG().$implicit,ge=g.XpG();g.R7$(1),g.Y8G("ngIf",null==ge.parentForm||null==ge.parentForm.controls?null:ge.parentForm.controls[Q.formControlName])}}function Gs(ie,Rt){if(1&ie&&(g.qex(0),g.DNE(1,Vr,2,1,"ng-container",2),g.bVm()),2&ie){const Q=Rt.$implicit;g.R7$(1),g.Y8G("ngIf",!Q.hidden)}}function Fr(ie,Rt){1&ie&&(g.qex(0),g.j41(1,"div",1)(2,"span"),g.EFF(3,"No configs found."),g.k0s()(),g.bVm())}function is(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"code"),g.EFF(2),g.nI1(3,"json"),g.k0s(),g.bVm()),2&ie){const Q=g.XpG().$implicit;g.R7$(2),g.JRh(g.bMT(3,1,Q.config))}}function Ro(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",4),g.EFF(2),g.k0s(),g.DNE(3,is,4,3,"ng-container",0),g.bVm()),2&ie){const Q=Rt.$implicit;g.R7$(2),g.JRh(Q.errors),g.R7$(1),g.Y8G("ngIf",Q.config)}}function Zo(ie,Rt){if(1&ie&&(g.qex(0),g.j41(1,"div",2)(2,"div"),g.EFF(3,"NgDynamicJsonForm:"),g.k0s(),g.DNE(4,Ro,4,2,"ng-container",3),g.k0s(),g.bVm()),2&ie){const Q=g.XpG();g.R7$(4),g.Y8G("ngForOf",Q.configValidationErrors)}}function Vo(ie,Rt){if(1&ie&&(g.qex(0),g.nrm(1,"form-group",5),g.bVm()),2&ie){const Q=g.XpG();g.R7$(1),g.Y8G("parentForm",Q.form)("configs",Q.configGet)("collapsibleState",Q.collapsibleState)}}const qo=new g.nKC("property-binding-injector");function ea(ie){return{provide:qo,useValue:ie}}let oo=(()=>{class ie{constructor(){this._injectionTokens=(0,g.WQX)(qo,{optional:!0}),this._injector=(0,g.WQX)(g.zZn),this._cd=(0,g.WQX)(g.gRc),this._el=(0,g.WQX)(g.aKT),this._renderer2=(0,g.WQX)(g.sFG),this._isViewInitialized=!1}ngOnChanges(){this._isViewInitialized&&this._bindProperties()}ngAfterViewInit(){this._isViewInitialized=!0,this._bindProperties()}_bindProperties(){const Q=(this.propsBinding??[]).filter(Ke=>!!Ke&&"object"==typeof Ke.props&&Object.keys(Ke.props).length>0);if(!Q.length)return;const ge=this._el.nativeElement;for(const Ke of Q){const{props:Ct,key:Oe,omit:nn=[]}=Ke,Qt=this._injectionTokens?.find(fe=>fe.key===Oe)?.token,ne=Qt?this._injector.get(Qt):null;for(const fe in Ct){const Z=Ct[fe];if(void 0!==Z&&!nn.includes(fe)){if(ne&&(ne[fe]=Z),ne&&ne.ngOnChanges){const $e=new g.FRM(void 0,Z,!0);ne.ngOnChanges({[fe]:$e})}ge&&(this._renderer2.setAttribute(ge,fe,Z),this._renderer2.setProperty(ge,fe,Z))}}}this._cd.markForCheck(),this._cd.detectChanges()}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","propsBinding",""]],inputs:{propsBinding:"propsBinding"},standalone:!0,features:[g.OA$]})}return ie})(),xo=(()=>{class ie{constructor(){this._el=(0,g.WQX)(g.aKT),this._renderer2=(0,g.WQX)(g.sFG),this.autoResize=!0}ngAfterViewInit(){typeof window>"u"||(this._hostEl=this._el.nativeElement,this._hostEl&&(this._renderer2.setStyle(this._hostEl,"resize","none"),this._setHeight()))}onInput(){this._setHeight()}_setHeight(){if(!this._hostEl||!this.autoResize)return;const Q=Math.ceil(parseFloat(window.getComputedStyle(this._hostEl).borderWidth));this._renderer2.removeStyle(this._hostEl,"height"),this._renderer2.setStyle(this._hostEl,"height",`${this._hostEl.scrollHeight+2*Q}px`)}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","textareaAutoHeight",""]],hostBindings:function(ge,Ke){1&ge&&g.bIt("input",function(Oe){return Ke.onInput(Oe)})},inputs:{autoResize:"autoResize"},standalone:!0})}return ie})(),ta=(()=>{class ie{constructor(){this._imask=(0,g.WQX)(o.Zq),this._isNumber=!1,this._imask.writeValue=Q=>{this._isNumber||(this._isNumber="number"==typeof Q),Q=null==Q&&"typed"!==this._imask.unmask?"":`${Q}`,this._imask.maskRef?(this._imask.beginWrite(Q),this._imask.maskValue=Q,this._imask.endWrite()):(this._imask._renderer.setProperty(this._imask.element,"value",Q),this._imask._initialValue=Q)},this._imask._onAccept=()=>{const Q=this._isNumber?parseFloat(this._imask.maskValue):this._imask.maskValue;this._imask._writing&&Q===this._imask.endWrite()||(this._imask.onChange(Q),this._imask.accept.emit(Q))}}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","imaskValuePatch",""]],standalone:!0})}return ie})();var Ps=function(ie){return ie.required="required",ie.requiredTrue="requiredTrue",ie.min="min",ie.max="max",ie.minLength="minLength",ie.maxLength="maxLength",ie.email="email",ie.pattern="pattern",ie}(Ps||{}),Ma=function(ie){return ie["control.hidden"]="control.hidden",ie["control.disabled"]="control.disabled",ie["validator.required"]="validator.required",ie["validator.requiredTrue"]="validator.requiredTrue",ie["validator.min"]="validator.min",ie["validator.max"]="validator.max",ie["validator.minLength"]="validator.minLength",ie["validator.maxLength"]="validator.maxLength",ie["validator.email"]="validator.email",ie["validator.pattern"]="validator.pattern",ie}(Ma||{});let ws=(()=>{class ie{getCorrectedConfig(Q){const ge=structuredClone(Q),{formControlName:Ke,props:Ct,inputMask:Oe,children:nn=[]}=ge;return ge.formControlName=this._getFormControlName(Ke),ge.value=ge.value??this._getFallbackValue(ge),Ct&&(ge.props=Object.keys(Ct).reduce((Qt,ne)=>("string"==typeof Qt[ne]&&(Qt[ne]=this._parseStringValue(Qt[ne])),Qt),Ct)),Oe&&this._mapInputMask(Oe),nn.length>0&&(ge.children=nn.map(Qt=>this.getCorrectedConfig(Qt))),ge}_getFallbackValue(Q){switch(Q.type){case"checkbox":case"switch":return!1;default:return Q.value}}_getFormControlName(Q){return[Oe=>Oe.replaceAll(/\s/g,"_"),Oe=>Oe.replaceAll(/[.,]/g,"")].reduce((Oe,nn)=>nn(Oe),Q)}_mapInputMask(Q){const ge=Q;if("string"==typeof ge.mask){const Ke=ge.mask.trim();if("Number"===Ke&&(ge.mask=Number),"Imask.MaskedRange"===Ke&&(ge.mask=V.Ay.MaskedRange),new RegExp(/^\/.*\/\w*?$/).test(Ke)){const Ct=Ke.split("/"),Oe=Ct.concat().pop();ge.mask=new RegExp(Ct[1],Oe)}}Array.isArray(ge.mask)&&ge.mask.forEach(Ke=>this._mapInputMask(Ke))}_parseStringValue(Q){const ge=Q.trim();if(ge.startsWith("Date(")&&ge.endsWith(")")){const Ke=ge.replace("Date(","").replace(")","").trim();try{return new Date(Ke)}catch{return Q}}return this._isIsoDate(ge)?new Date(ge):ge}_isIsoDate(Q){if(!/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(Q))return!1;const ge=new Date(Q);return ge instanceof Date&&!isNaN(ge.getTime())&&ge.toISOString()===Q}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();function La([ie,Rt,Q]){switch(Rt){case"===":return ie===Q;case"!==":return ie!==Q;case">=":return ie>=Q;case">":return ie>Q;case"<=":return ie<=Q;case"<":return iege.trim()).reduce((ge,Ke)=>{if(null==ge)return ge;const Ct=ge[Ke],Oe=Ke.startsWith("[")&&Ke.endsWith("]")&&3===Ke.split(",").length;return Array.isArray(Ct)&&(Q=Ct),Oe?ge[function l1(ie,Rt){if(!Rt.startsWith("[")||!Rt.endsWith("]")||3!==Rt.split(",").length||!Array.isArray(ie))return Rt;const ge=Z=>Z.replaceAll('"',"").replaceAll("'",""),[Ke,Ct,Oe]=Rt.replace("[","").replace("]","").split(",").map(Z=>Z.trim()),nn=ge(Ke),Qt=ge(Ct),fe=ie.findIndex(Z=>{const $e=nn?ao(Z,nn):Z,mt="string"!=typeof Oe?Oe:new RegExp(/^('|").*('|")$/).test(Oe)?ge(Oe):JSON.parse(Oe);return La([$e,Qt,mt])});return fe<0?"0":fe.toString()}(Q,Ke)]:Ct},ie)}catch(ge){return console.error(ge),null}}const pl=new RegExp("^.+$","u"),rc={type:"array",minItems:3,maxItems:3,items:[{},{enum:["===","!==",">=",">","<=","<","includes","notIncludes"]},{}]},ql={validate:Xa};function go(ie,{instancePath:Rt="",rootData:Ke=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!Array.isArray(ie))return go.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const ne=ie.length;for(let fe=0;fe3){const bi={instancePath:Rt+"/"+fe,schemaPath:"#/definitions/conditionIfConfig/maxItems",keyword:"maxItems",params:{limit:3},message:"must NOT have more than 3 items"};null===Ct?Ct=[bi]:Ct.push(bi),Oe++}else if(Z.length<3){const bi={instancePath:Rt+"/"+fe,schemaPath:"#/definitions/conditionIfConfig/minItems",keyword:"minItems",params:{limit:3},message:"must NOT have fewer than 3 items"};null===Ct?Ct=[bi]:Ct.push(bi),Oe++}else if(Z.length>1){let Bo=Z[1];if("==="!==Bo&&"!=="!==Bo&&">="!==Bo&&">"!==Bo&&"<="!==Bo&&"<"!==Bo&&"includes"!==Bo&&"notIncludes"!==Bo){const So={instancePath:Rt+"/"+fe+"/1",schemaPath:"#/definitions/conditionIfConfig/items/1/enum",keyword:"enum",params:{allowedValues:rc.items[1].enum},message:"must be equal to one of the allowed values"};null===Ct?Ct=[So]:Ct.push(So),Oe++}}}else{const bi={instancePath:Rt+"/"+fe,schemaPath:"#/definitions/conditionIfConfig/type",keyword:"type",params:{type:"array"},message:"must be array"};null===Ct?Ct=[bi]:Ct.push(bi),Oe++}var Qt=ir===Oe;if(Gn=Gn||Qt,!Gn){const bi=Oe;ql.validate(Z,{instancePath:Rt+"/"+fe,parentData:ie,parentDataProperty:fe,rootData:Ke})||(Ct=null===Ct?ql.validate.errors:Ct.concat(ql.validate.errors),Oe=Ct.length),Qt=bi===Oe,Gn=Gn||Qt}if(!Gn){const bi={instancePath:Rt+"/"+fe,schemaPath:"#/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return null===Ct?Ct=[bi]:Ct.push(bi),Oe++,go.errors=Ct,!1}if(Oe=mt,null!==Ct&&(mt?Ct.length=mt:Ct=null),$e!==Oe)break}}}return go.errors=Ct,0===Oe}function Xa(ie,{instancePath:Rt="",rootData:Ke=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return Xa.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{const Qt=Oe;for(const ne in ie)if("&&"!==ne&&"||"!==ne)return Xa.errors=[{instancePath:Rt,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"}],!1;if(Qt===Oe){if(void 0!==ie["&&"]){const ne=Oe;go(ie["&&"],{instancePath:Rt+"/&&",parentData:ie,parentDataProperty:"&&",rootData:Ke})||(Ct=null===Ct?go.errors:Ct.concat(go.errors),Oe=Ct.length);var nn=ne===Oe}else nn=!0;if(nn)if(void 0!==ie["||"]){const ne=Oe;go(ie["||"],{instancePath:Rt+"/||",parentData:ie,parentDataProperty:"||",rootData:Ke})||(Ct=null===Ct?go.errors:Ct.concat(go.errors),Oe=Ct.length),nn=ne===Oe}else nn=!0}}}return Xa.errors=Ct,0===Oe}function Ws(ie,{instancePath:Rt="",rootData:Ke=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return Ws.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{const Qt=Oe;for(const ne in ie)if(!pl.test(ne))return Ws.errors=[{instancePath:Rt,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"}],!1;if(Qt===Oe)for(const ne in ie)if(pl.test(ne)){const fe=Oe;if(Xa(ie[ne],{instancePath:Rt+"/"+ne.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:ie,parentDataProperty:ne,rootData:Ke})||(Ct=null===Ct?Xa.errors:Ct.concat(Xa.errors),Oe=Ct.length),fe!==Oe)break}}}return Ws.errors=Ct,0===Oe}const As={$schema:"http://json-schema.org/draft-07/schema#",$id:"ConfigLayoutSchema",type:"object",properties:{hostClass:{type:"string"},hostStyles:{type:"string"},labelClass:{type:"string"},labelStyles:{type:"string"},contentClass:{type:"string"},contentStyles:{type:"string"},formGroupClass:{type:"string"},formGroupStyles:{type:"string"},descriptionClass:{type:"string"},descriptionStyles:{type:"string"},inputAreaClass:{type:"string"},inputAreaStyles:{type:"string"},errorClass:{type:"string"},errorStyles:{type:"string"},descriptionPosition:{enum:["after","before"]},hideLabel:{type:"boolean"},contentCollapsible:{enum:["collapse","expand"],description:"Enable expand/collapse of content. The default state will be determined by value provided"},autoAddRequiredClass:{type:"boolean",description:"Add `required` class automatically to control if there's validator named `required`. Default is true."}}},Ka={$schema:"http://json-schema.org/draft-07/schema#",$id:"ConfigOptionsSchema",type:"object",properties:{data:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{}}}},src:{oneOf:[{type:"string"},{$ref:"#/definitions/optionSourceConfig"}]},srcAppendPosition:{type:"string",enum:["after","before"]},autoSelectFirst:{type:"boolean"},layout:{type:"string",enum:["row","column"]},labelPosition:{type:"string",enum:["after","before"]},containerClass:{type:"string"},containerStyles:{type:"string"}},definitions:{optionSourceConfig:{type:"object",properties:{url:{type:"string"},method:{type:"string",enum:["GET","POST"]},headers:{},body:{},mapData:{type:"object",properties:{labelKey:{type:"string"},valueKeys:{type:"array",items:{type:"string"}},contentPath:{type:"string"},slice:{type:"array",items:[{type:"number"},{type:"number"}],minItems:2,maxItems:2},appendPosition:{type:"string",enum:["after","before"]}}},trigger:{type:"object",properties:{by:{type:"string"},body:{},debounceTime:{type:"number"}}},filter:{type:"object",properties:{by:{type:"string"},conditions:{$ref:"ConfigConditionsSchema#/definitions/conditionGroupConfig"},debounceTime:{type:"number"}}}}}}},hc={type:"object",properties:{url:{type:"string"},method:{type:"string",enum:["GET","POST"]},headers:{},body:{},mapData:{type:"object",properties:{labelKey:{type:"string"},valueKeys:{type:"array",items:{type:"string"}},contentPath:{type:"string"},slice:{type:"array",items:[{type:"number"},{type:"number"}],minItems:2,maxItems:2},appendPosition:{type:"string",enum:["after","before"]}}},trigger:{type:"object",properties:{by:{type:"string"},body:{},debounceTime:{type:"number"}}},filter:{type:"object",properties:{by:{type:"string"},conditions:{$ref:"ConfigConditionsSchema#/definitions/conditionGroupConfig"},debounceTime:{type:"number"}}}}};function Xr(ie,{instancePath:Rt="",rootData:Ke=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return Xr.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{const Qt=Oe;for(const ne in ie)if("&&"!==ne&&"||"!==ne)return Xr.errors=[{instancePath:Rt,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"}],!1;if(Qt===Oe){if(void 0!==ie["&&"]){const ne=Oe;go(ie["&&"],{instancePath:Rt+"/&&",parentData:ie,parentDataProperty:"&&",rootData:Ke})||(Ct=null===Ct?go.errors:Ct.concat(go.errors),Oe=Ct.length);var nn=ne===Oe}else nn=!0;if(nn)if(void 0!==ie["||"]){const ne=Oe;go(ie["||"],{instancePath:Rt+"/||",parentData:ie,parentDataProperty:"||",rootData:Ke})||(Ct=null===Ct?go.errors:Ct.concat(go.errors),Oe=Ct.length),nn=ne===Oe}else nn=!0}}}return Xr.errors=Ct,0===Oe}function Br(ie,{instancePath:Rt="",rootData:Ke=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return Br.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==ie.url){const mt=Oe;if("string"!=typeof ie.url)return Br.errors=[{instancePath:Rt+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var nn=mt===Oe}else nn=!0;if(nn){if(void 0!==ie.method){let mt=ie.method;const Gn=Oe;if("string"!=typeof mt)return Br.errors=[{instancePath:Rt+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("GET"!==mt&&"POST"!==mt)return Br.errors=[{instancePath:Rt+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:hc.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;nn=Gn===Oe}else nn=!0;if(nn){if(void 0!==ie.mapData){let mt=ie.mapData;const Gn=Oe;if(Oe===Gn){if(!mt||"object"!=typeof mt||Array.isArray(mt))return Br.errors=[{instancePath:Rt+"/mapData",schemaPath:"#/properties/mapData/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==mt.labelKey){const zr=Oe;if("string"!=typeof mt.labelKey)return Br.errors=[{instancePath:Rt+"/mapData/labelKey",schemaPath:"#/properties/mapData/properties/labelKey/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Qt=zr===Oe}else Qt=!0;if(Qt){if(void 0!==mt.valueKeys){let zr=mt.valueKeys;const ra=Oe;if(Oe===ra){if(!Array.isArray(zr))return Br.errors=[{instancePath:Rt+"/mapData/valueKeys",schemaPath:"#/properties/mapData/properties/valueKeys/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const Bo=zr.length;for(let So=0;So2)return Br.errors=[{instancePath:Rt+"/mapData/slice",schemaPath:"#/properties/mapData/properties/slice/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"}],!1;if(zr.length<2)return Br.errors=[{instancePath:Rt+"/mapData/slice",schemaPath:"#/properties/mapData/properties/slice/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"}],!1;{const Bo=zr.length;if(Bo>0){let So=zr[0];const Pa=Oe;if("number"!=typeof So||!isFinite(So))return Br.errors=[{instancePath:Rt+"/mapData/slice/0",schemaPath:"#/properties/mapData/properties/slice/items/0/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var fe=Pa===Oe}if(fe&&Bo>1){let So=zr[1];const Pa=Oe;if("number"!=typeof So||!isFinite(So))return Br.errors=[{instancePath:Rt+"/mapData/slice/1",schemaPath:"#/properties/mapData/properties/slice/items/1/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;fe=Pa===Oe}}}Qt=ra===Oe}else Qt=!0;if(Qt)if(void 0!==mt.appendPosition){let zr=mt.appendPosition;const ra=Oe;if("string"!=typeof zr)return Br.errors=[{instancePath:Rt+"/mapData/appendPosition",schemaPath:"#/properties/mapData/properties/appendPosition/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("after"!==zr&&"before"!==zr)return Br.errors=[{instancePath:Rt+"/mapData/appendPosition",schemaPath:"#/properties/mapData/properties/appendPosition/enum",keyword:"enum",params:{allowedValues:hc.properties.mapData.properties.appendPosition.enum},message:"must be equal to one of the allowed values"}],!1;Qt=ra===Oe}else Qt=!0}}}}nn=Gn===Oe}else nn=!0;if(nn){if(void 0!==ie.trigger){let mt=ie.trigger;const Gn=Oe;if(Oe===Gn){if(!mt||"object"!=typeof mt||Array.isArray(mt))return Br.errors=[{instancePath:Rt+"/trigger",schemaPath:"#/properties/trigger/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==mt.by){const zr=Oe;if("string"!=typeof mt.by)return Br.errors=[{instancePath:Rt+"/trigger/by",schemaPath:"#/properties/trigger/properties/by/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=zr===Oe}else Z=!0;if(Z)if(void 0!==mt.debounceTime){let zr=mt.debounceTime;const ra=Oe;if("number"!=typeof zr||!isFinite(zr))return Br.errors=[{instancePath:Rt+"/trigger/debounceTime",schemaPath:"#/properties/trigger/properties/debounceTime/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;Z=ra===Oe}else Z=!0}nn=Gn===Oe}else nn=!0;if(nn)if(void 0!==ie.filter){let mt=ie.filter;const Gn=Oe;if(Oe===Gn){if(!mt||"object"!=typeof mt||Array.isArray(mt))return Br.errors=[{instancePath:Rt+"/filter",schemaPath:"#/properties/filter/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==mt.by){const zr=Oe;if("string"!=typeof mt.by)return Br.errors=[{instancePath:Rt+"/filter/by",schemaPath:"#/properties/filter/properties/by/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $e=zr===Oe}else $e=!0;if($e){if(void 0!==mt.conditions){const zr=Oe;Xr(mt.conditions,{instancePath:Rt+"/filter/conditions",parentData:mt,parentDataProperty:"conditions",rootData:Ke})||(Ct=null===Ct?Xr.errors:Ct.concat(Xr.errors),Oe=Ct.length),$e=zr===Oe}else $e=!0;if($e)if(void 0!==mt.debounceTime){let zr=mt.debounceTime;const ra=Oe;if("number"!=typeof zr||!isFinite(zr))return Br.errors=[{instancePath:Rt+"/filter/debounceTime",schemaPath:"#/properties/filter/properties/debounceTime/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;$e=ra===Oe}else $e=!0}}nn=Gn===Oe}else nn=!0}}}}return Br.errors=Ct,0===Oe}function fr(ie,{instancePath:Rt="",rootData:Ke=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!ie||"object"!=typeof ie||Array.isArray(ie))return fr.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==ie.data){let fe=ie.data;const Z=Oe;if(Oe===Z){if(!Array.isArray(fe))return fr.errors=[{instancePath:Rt+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const $e=fe.length;for(let mt=0;mt<$e;mt++){let Gn=fe[mt];const ir=Oe;if(Oe===ir){if(!Gn||"object"!=typeof Gn||Array.isArray(Gn))return fr.errors=[{instancePath:Rt+"/data/"+mt,schemaPath:"#/properties/data/items/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==Gn.label&&"string"!=typeof Gn.label)return fr.errors=[{instancePath:Rt+"/data/"+mt+"/label",schemaPath:"#/properties/data/items/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}if(ir!==Oe)break}}}var Qt=Z===Oe}else Qt=!0;if(Qt){if(void 0!==ie.src){let fe=ie.src;const Z=Oe,$e=Oe;let mt=!1,Gn=null;const ir=Oe;if("string"!=typeof fe){const bi={instancePath:Rt+"/src",schemaPath:"#/properties/src/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===Ct?Ct=[bi]:Ct.push(bi),Oe++}ir===Oe&&(mt=!0,Gn=0);const zr=Oe;var ne;if(Br(fe,{instancePath:Rt+"/src",parentData:ie,parentDataProperty:"src",rootData:Ke})||(Ct=null===Ct?Br.errors:Ct.concat(Br.errors),Oe=Ct.length),(ne=zr===Oe)&&mt?(mt=!1,Gn=[Gn,1]):ne&&(mt=!0,Gn=1),!mt){const bi={instancePath:Rt+"/src",schemaPath:"#/properties/src/oneOf",keyword:"oneOf",params:{passingSchemas:Gn},message:"must match exactly one schema in oneOf"};return null===Ct?Ct=[bi]:Ct.push(bi),Oe++,fr.errors=Ct,!1}Oe=$e,null!==Ct&&($e?Ct.length=$e:Ct=null),Qt=Z===Oe}else Qt=!0;if(Qt){if(void 0!==ie.srcAppendPosition){let fe=ie.srcAppendPosition;const Z=Oe;if("string"!=typeof fe)return fr.errors=[{instancePath:Rt+"/srcAppendPosition",schemaPath:"#/properties/srcAppendPosition/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("after"!==fe&&"before"!==fe)return fr.errors=[{instancePath:Rt+"/srcAppendPosition",schemaPath:"#/properties/srcAppendPosition/enum",keyword:"enum",params:{allowedValues:Ka.properties.srcAppendPosition.enum},message:"must be equal to one of the allowed values"}],!1;Qt=Z===Oe}else Qt=!0;if(Qt){if(void 0!==ie.autoSelectFirst){const fe=Oe;if("boolean"!=typeof ie.autoSelectFirst)return fr.errors=[{instancePath:Rt+"/autoSelectFirst",schemaPath:"#/properties/autoSelectFirst/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Qt=fe===Oe}else Qt=!0;if(Qt){if(void 0!==ie.layout){let fe=ie.layout;const Z=Oe;if("string"!=typeof fe)return fr.errors=[{instancePath:Rt+"/layout",schemaPath:"#/properties/layout/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("row"!==fe&&"column"!==fe)return fr.errors=[{instancePath:Rt+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Ka.properties.layout.enum},message:"must be equal to one of the allowed values"}],!1;Qt=Z===Oe}else Qt=!0;if(Qt){if(void 0!==ie.labelPosition){let fe=ie.labelPosition;const Z=Oe;if("string"!=typeof fe)return fr.errors=[{instancePath:Rt+"/labelPosition",schemaPath:"#/properties/labelPosition/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if("after"!==fe&&"before"!==fe)return fr.errors=[{instancePath:Rt+"/labelPosition",schemaPath:"#/properties/labelPosition/enum",keyword:"enum",params:{allowedValues:Ka.properties.labelPosition.enum},message:"must be equal to one of the allowed values"}],!1;Qt=Z===Oe}else Qt=!0;if(Qt){if(void 0!==ie.containerClass){const fe=Oe;if("string"!=typeof ie.containerClass)return fr.errors=[{instancePath:Rt+"/containerClass",schemaPath:"#/properties/containerClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=fe===Oe}else Qt=!0;if(Qt)if(void 0!==ie.containerStyles){const fe=Oe;if("string"!=typeof ie.containerStyles)return fr.errors=[{instancePath:Rt+"/containerStyles",schemaPath:"#/properties/containerStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=fe===Oe}else Qt=!0}}}}}}}return fr.errors=Ct,0===Oe}const il=function gr(ie,{instancePath:Rt="",rootData:Ke=ie}={}){let Ct=null,Oe=0;if(0===Oe){if(!Array.isArray(ie))return gr.errors=[{instancePath:Rt,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const $e=ie.length;for(let mt=0;mt<$e;mt++){let Gn=ie[mt];const ir=Oe;if(Oe===ir){if(!Gn||"object"!=typeof Gn||Array.isArray(Gn))return gr.errors=[{instancePath:Rt+"/"+mt,schemaPath:"#/items/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;{let ra;if(void 0===Gn.formControlName&&(ra="formControlName"))return gr.errors=[{instancePath:Rt+"/"+mt,schemaPath:"#/items/required",keyword:"required",params:{missingProperty:ra},message:"must have required property '"+ra+"'"}],!1;if(void 0!==Gn.formControlName){const bi=Oe;if("string"!=typeof Gn.formControlName)return gr.errors=[{instancePath:Rt+"/"+mt+"/formControlName",schemaPath:"#/items/properties/formControlName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.conditions){const bi=Oe;Ws(Gn.conditions,{instancePath:Rt+"/"+mt+"/conditions",parentData:Gn,parentDataProperty:"conditions",rootData:Ke})||(Ct=null===Ct?Ws.errors:Ct.concat(Ws.errors),Oe=Ct.length),Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.children){const bi=Oe;gr(Gn.children,{instancePath:Rt+"/"+mt+"/children",parentData:Gn,parentDataProperty:"children",rootData:Ke})||(Ct=null===Ct?gr.errors:Ct.concat(gr.errors),Oe=Ct.length),Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.description){const bi=Oe;if("string"!=typeof Gn.description)return gr.errors=[{instancePath:Rt+"/"+mt+"/description",schemaPath:"#/items/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.hidden){const bi=Oe;if("boolean"!=typeof Gn.hidden)return gr.errors=[{instancePath:Rt+"/"+mt+"/hidden",schemaPath:"#/items/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.label){const bi=Oe;if("string"!=typeof Gn.label)return gr.errors=[{instancePath:Rt+"/"+mt+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.layout){let bi=Gn.layout;const Bo=Oe;if(Oe==Oe){if(!bi||"object"!=typeof bi||Array.isArray(bi))return gr.errors=[{instancePath:Rt+"/"+mt+"/layout",schemaPath:"ConfigLayoutSchema/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;if(void 0!==bi.hostClass){const Kr=Oe;if("string"!=typeof bi.hostClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/hostClass",schemaPath:"ConfigLayoutSchema/properties/hostClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.hostStyles){const Kr=Oe;if("string"!=typeof bi.hostStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/hostStyles",schemaPath:"ConfigLayoutSchema/properties/hostStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.labelClass){const Kr=Oe;if("string"!=typeof bi.labelClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/labelClass",schemaPath:"ConfigLayoutSchema/properties/labelClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.labelStyles){const Kr=Oe;if("string"!=typeof bi.labelStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/labelStyles",schemaPath:"ConfigLayoutSchema/properties/labelStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.contentClass){const Kr=Oe;if("string"!=typeof bi.contentClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/contentClass",schemaPath:"ConfigLayoutSchema/properties/contentClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.contentStyles){const Kr=Oe;if("string"!=typeof bi.contentStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/contentStyles",schemaPath:"ConfigLayoutSchema/properties/contentStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.formGroupClass){const Kr=Oe;if("string"!=typeof bi.formGroupClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/formGroupClass",schemaPath:"ConfigLayoutSchema/properties/formGroupClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.formGroupStyles){const Kr=Oe;if("string"!=typeof bi.formGroupStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/formGroupStyles",schemaPath:"ConfigLayoutSchema/properties/formGroupStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.descriptionClass){const Kr=Oe;if("string"!=typeof bi.descriptionClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/descriptionClass",schemaPath:"ConfigLayoutSchema/properties/descriptionClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.descriptionStyles){const Kr=Oe;if("string"!=typeof bi.descriptionStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/descriptionStyles",schemaPath:"ConfigLayoutSchema/properties/descriptionStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.inputAreaClass){const Kr=Oe;if("string"!=typeof bi.inputAreaClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/inputAreaClass",schemaPath:"ConfigLayoutSchema/properties/inputAreaClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.inputAreaStyles){const Kr=Oe;if("string"!=typeof bi.inputAreaStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/inputAreaStyles",schemaPath:"ConfigLayoutSchema/properties/inputAreaStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.errorClass){const Kr=Oe;if("string"!=typeof bi.errorClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/errorClass",schemaPath:"ConfigLayoutSchema/properties/errorClass/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.errorStyles){const Kr=Oe;if("string"!=typeof bi.errorStyles)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/errorStyles",schemaPath:"ConfigLayoutSchema/properties/errorStyles/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.descriptionPosition){let Kr=bi.descriptionPosition;const ja=Oe;if("after"!==Kr&&"before"!==Kr)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/descriptionPosition",schemaPath:"ConfigLayoutSchema/properties/descriptionPosition/enum",keyword:"enum",params:{allowedValues:As.properties.descriptionPosition.enum},message:"must be equal to one of the allowed values"}],!1;ne=ja===Oe}else ne=!0;if(ne){if(void 0!==bi.hideLabel){const Kr=Oe;if("boolean"!=typeof bi.hideLabel)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/hideLabel",schemaPath:"ConfigLayoutSchema/properties/hideLabel/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ne=Kr===Oe}else ne=!0;if(ne){if(void 0!==bi.contentCollapsible){let Kr=bi.contentCollapsible;const ja=Oe;if("collapse"!==Kr&&"expand"!==Kr)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/contentCollapsible",schemaPath:"ConfigLayoutSchema/properties/contentCollapsible/enum",keyword:"enum",params:{allowedValues:As.properties.contentCollapsible.enum},message:"must be equal to one of the allowed values"}],!1;ne=ja===Oe}else ne=!0;if(ne)if(void 0!==bi.autoAddRequiredClass){const Kr=Oe;if("boolean"!=typeof bi.autoAddRequiredClass)return gr.errors=[{instancePath:Rt+"/"+mt+"/layout/autoAddRequiredClass",schemaPath:"ConfigLayoutSchema/properties/autoAddRequiredClass/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ne=Kr===Oe}else ne=!0}}}}}}}}}}}}}}}}}Qt=Bo===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.options){const bi=Oe;fr(Gn.options,{instancePath:Rt+"/"+mt+"/options",parentData:Gn,parentDataProperty:"options",rootData:Ke})||(Ct=null===Ct?fr.errors:Ct.concat(fr.errors),Oe=Ct.length),Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.readonly){const bi=Oe;if("boolean"!=typeof Gn.readonly)return gr.errors=[{instancePath:Rt+"/"+mt+"/readonly",schemaPath:"#/items/properties/readonly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt){if(void 0!==Gn.type){const bi=Oe;if("string"!=typeof Gn.type)return gr.errors=[{instancePath:Rt+"/"+mt+"/type",schemaPath:"#/items/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Qt=bi===Oe}else Qt=!0;if(Qt)if(void 0!==Gn.validators){let bi=Gn.validators;const Bo=Oe;if(Oe==Oe){if(!Array.isArray(bi))return gr.errors=[{instancePath:Rt+"/"+mt+"/validators",schemaPath:"ConfigValidatorsSchema/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;{const Kr=bi.length;for(let ja=0;ja{class ie{constructor(){this._configMappingService=(0,g.WQX)(ws)}validateAndGetConfig(Q){const ge={configs:null,errors:[{errors:"No configs found"}]};if(Array.isArray(Q))return il(Q)?{configs:Q.filter(Boolean).map(Ct=>this._configMappingService.getCorrectedConfig(Ct))}:(ge.errors=(il.errors||[]).map(Ct=>this._getBeautifyErrors(Ct,Q)),ge);if("string"==typeof Q)try{const Ke=JSON.parse(Q);return this.validateAndGetConfig(Ke)}catch(Ke){return ge.errors=[{errors:JSON.stringify(Ke,Object.getOwnPropertyNames(Ke),4)}],ge}return ge}_getBeautifyErrors(Q,ge){const Ke=Q.instancePath.substring(1).split("/"),Ct=Ke[Ke.length-1],Oe=new RegExp(/^\d+$/).test(Ct),Qt=ao(ge,Oe?Ke.join("."):Ke[Ke.length-2]);return{errors:Oe?Q.message??"":`"${Ct}" ${Q.message}`,config:Qt}}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();function yi(ie,Rt){if(!ie["&&"]&&!ie["||"])return;const Q=ie["&&"]?"&&":"||",ge=ie[Q],Ke=ge.filter(nn=>!Array.isArray(nn)).map(nn=>nn).map(nn=>yi(nn,Rt)),Ct=ge.filter(nn=>Array.isArray(nn)).map(nn=>nn).map(nn=>{const[Qt,ne,fe]=Rt(nn);return La([Qt,ne,fe])}),Oe=Ke.concat(Ct).filter(nn=>void 0!==nn);return"&&"===Q?Oe.every(Boolean):Oe.some(Boolean)}function Kn(ie){const Rt=ie.trim().split(/(,(?![^\[]*\]))/).filter(Q=>","!==Q);return{controlPath:Rt[0].trim(),...Rt.length>1&&{valuePath:Rt[1]}}}let ar=(()=>{class ie{constructor(){this.hideErrorMessage$=new oe.t(void 0),this.rootConfigs=[]}setup(Q){for(const ge in Q)this[ge]=Q[ge]}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();function Sa(ie){const Rt=RegExp(/^[^@\s!(){}<>]+@[\w-]+(\.[A-Za-z]+)+$/).test(ie.value);return ie.value?Rt?null:{email:"Invalid email format"}:null}let ns=(()=>{class ie{constructor(){this._globalVariableService=(0,g.WQX)(ar)}getErrorMessages$(Q,ge){return Q&&ge?.length?Q.statusChanges.pipe((0,pe.Z)(Q.status),(0,Ee.T)(()=>this._getErrorMessages(Q.errors,Q.value,ge))):De.w}getValidators(Q){return Q&&Q.length?[...new Map(Q.map(Ke=>[Ke.name,Ke])).values()].map(Ke=>{const{name:Ct}=Ke,nn=(ie=>({[Ps.required]:dt.k0.required,[Ps.requiredTrue]:dt.k0.requiredTrue,[Ps.email]:Sa,[Ps.pattern]:dt.k0.pattern(ie),[Ps.min]:dt.k0.min(ie),[Ps.max]:dt.k0.max(ie),[Ps.minLength]:dt.k0.minLength(ie),[Ps.maxLength]:dt.k0.maxLength(ie)}))(this._getValidatorValue(Ke))[Ct],Qt=this._getCustomValidator(Ke);return nn??Qt??dt.k0.nullValidator}):null}_getCustomValidator(Q){const ge=this._globalVariableService.customValidators,{name:Ke,value:Ct}=Q,Oe=ge?.[Ke];return Oe?null==Ct||""===`${Ct}`.trim()?Oe:Oe(Ct):null}_getErrorMessages(Q,ge,Ke){return Q?Object.keys(Q).reduce((Oe,nn)=>{const Qt=Q[nn],fe=this._getConfigFromErrorKey({[nn]:Qt},Ke)?.message?.replace(/{{value}}/g,ge||"");return Oe.push(fe||(Oe=>"string"==typeof Oe?Oe:JSON.stringify(Oe))(Qt)),Oe},[]):[]}_getConfigFromErrorKey(Q,ge){const Ke={pattern:"requiredPattern",min:"min",max:"max",minLength:"requiredLength",maxLength:"requiredLength"},[Oe,nn]=Object.entries(Q)[0];return ge.find(ne=>{const{name:fe,value:Z}=ne;if(Oe!==fe.toLowerCase())return!1;if(null==Z||""===Z)return!0;const mt=nn[Ke[fe]??""],Gn=(ne=>"number"==typeof ne||isNaN(ne)?ne:parseFloat(ne))(Z);return mt&&"pattern"===fe?mt.includes(Gn):mt===Gn})}_getValidatorValue(Q){const{name:ge,value:Ke,flags:Ct}=Q;switch(ge){case Ps.pattern:return Ke instanceof RegExp?Ke:new RegExp(Ke,Ct);case Ps.min:case Ps.max:case Ps.minLength:case Ps.maxLength:try{return"number"!=typeof Ke?parseFloat(Ke):Ke}catch{break}default:return Ke}}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),ka=(()=>{class ie{constructor(){this._renderer2=(0,g.WQX)(g._9s).createRenderer(null,null),this._globalVariableService=(0,g.WQX)(ar),this._formValidationService=(0,g.WQX)(ns)}listenConditions$(){const Q=this._globalVariableService.rootConfigs,ge=this._globalVariableService.rootForm;if(!Q.length||!ge||typeof window>"u")return(0,be.of)(null);const Ke=this._getPathsOfControlsToListen(Q).map(nn=>ge.get(nn)).filter(Boolean),Ct=this._configsWithConditions(Q);return(0,Te.H)(Ke).pipe((0,Ve.Z)(nn=>(nn=>nn.valueChanges.pipe((0,pe.Z)(nn.value),(0,me.F)((Qt,ne)=>JSON.stringify(Qt)===JSON.stringify(ne))))(nn)),(0,ze.M)(()=>this._onConditionsMet(Ct)))}_onConditionsMet(Q){const ge=this._globalVariableService.rootForm;if(ge)for(const Ke in Q){const Ct=ge.get(Ke);if(!Ct)continue;const Oe=Q[Ke],nn=Oe.conditions;this._executeCustomActions(nn,Ct),this._toggleValidators(Oe,Ct),this._toggleControlStates(nn,Ct,Ke)}}_toggleControlStates(Q,ge,Ke){const Ct=Ma["control.disabled"],Oe=Ma["control.hidden"],nn=Object.keys(Q).filter(Qt=>Qt===Ct||Qt===Oe);if(nn.length)for(const Qt of nn){const ne=this._evaluateConditionsStatement(Q[Qt]);void 0!==ne&&(Qt===Ct&&this._disableControl(ge,ne),Qt===Oe&&(this._hideControl(Ke,ne),this._disableControl(ge,ne)))}}_disableControl(Q,ge){window.requestAnimationFrame(()=>{ge?Q.disable():Q.enable()})}_hideControl(Q,ge){const Ke=(Ct,Oe,nn)=>{this._renderer2.setStyle(Ct,Oe,ge?nn:null)};this._getTargetEl$(Q).pipe((0,vt.p)(Boolean),(0,ze.M)(Ct=>{Ke(Ct,"display","none")})).subscribe()}_toggleValidators(Q,ge){const{conditions:Ke={},validators:Ct=[]}=Q,Oe=Object.keys(Ke).filter(ne=>new RegExp(/^validator\.[a-zA-z]{1,}$/).test(ne));if(!Oe.length)return;const nn=Ct.filter(ne=>{const fe=`validator.${ne.name??""}`;return!!Oe.includes(fe)&&this._evaluateConditionsStatement(Ke[fe])}),Qt=this._formValidationService.getValidators(nn);ge.setValidators(Qt),ge.updateValueAndValidity()}_executeCustomActions(Q,ge){const Ke=Object.values(Ma),Ct=Object.keys(Q).filter(Oe=>!Ke.includes(Oe));if(Ct.length)for(const Oe of Ct){if(!this._evaluateConditionsStatement(Q[Oe]))continue;const Qt=this._globalVariableService.conditionsActionFunctions;Qt&&Qt[Oe]&&"function"==typeof Qt[Oe]&&Qt[Oe](ge)}}_getTargetEl$(Q){return typeof window>"u"?(0,be.of)(null):new Re.c(ge=>{window.requestAnimationFrame(()=>{const Ke=this._globalVariableService.hostElement?.querySelector(`#${CSS.escape(Q)}`);ge.next(Ke||null),ge.complete(),ge.unsubscribe()})})}_getPathsOfControlsToListen(Q){const ge=Oe=>{const nn=Oe["&&"]||Oe["||"];return nn?nn.flatMap(Qt=>Array.isArray(Qt)?[this._getControlPathFromStatement(Qt[0])??"",this._getControlPathFromStatement(Qt[2])??""]:ge(Qt)):[]},Ke=Q.reduce((Oe,nn)=>{const{conditions:Qt,children:ne}=nn,fe=Qt?Object.values(Qt).filter($e=>!!$e&&Object.keys($e).length>0).flatMap($e=>ge($e)).filter(Boolean):[],Z=ne?.length?this._getPathsOfControlsToListen(ne):[];return Oe.push(...fe.concat(Z)),Oe},[]);return[...new Set(Ke)]}_configsWithConditions(Q,ge){return Q.reduce((Ct,Oe)=>{const{conditions:nn,children:Qt}=Oe,ne=ge?`${ge}.${Oe.formControlName}`:Oe.formControlName;return nn&&(Ct[ne]=Oe),Qt&&Qt.length&&(Ct={...Ct,...this._configsWithConditions(Qt,ne)}),Ct},{})}_evaluateConditionsStatement(Q){return this._globalVariableService.rootForm&&(Q["&&"]||Q["||"])?yi(Q,Ct=>{const[Oe,nn,Qt]=Ct;return[this._getValueFromStatement(Oe),nn,this._getValueFromStatement(Qt)]}):void 0}_getControlPathFromStatement(Q){const ge=this._globalVariableService.rootForm;if(!ge||"string"!=typeof Q)return;const Ke=Kn(Q);return ge.get(Ke.controlPath)?Ke.controlPath:void 0}_getValueFromStatement(Q){const ge=this._globalVariableService.rootForm;if(!ge||"string"!=typeof Q)return Q;const Ke=Kn(Q),Ct=ge.get(Ke.controlPath);return Ct?Ke.valuePath?ao(Ct.value,Ke.valuePath):Ct.value:Q}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),Is=(()=>{class ie{constructor(){this._formValidationService=(0,g.WQX)(ns)}generateFormGroup(Q){const ge=new dt.J3({});for(const Ke of Q){const Ct=Ke.children?.length?this.generateFormGroup(Ke.children):new dt.MJ(Ke.value),Oe=this._formValidationService.getValidators(Ke.validators);Ct.setValidators(Oe),ge.addControl(Ke.formControlName,Ct)}return ge}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),wc=(()=>{class ie{constructor(){this.optionsReady$=new oe.t(!1),this._optionsLoadingCount=0}optionsLoading(Q){Q?this._optionsLoadingCount++:(this._optionsLoadingCount--,this._optionsLoadingCount<=0&&(this._optionsLoadingCount=0,!0!==this.optionsReady$.value&&this.optionsReady$.next(!0)))}resetState(){this.optionsReady$.next(!1)}haveOptionsToWait(Q){return!!Q.length&&Q.some(Ke=>Ke.children?.length?this.haveOptionsToWait(Ke.children):!!Ke.options&&!!Ke.options.src)}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),Es=(()=>{class ie{patchForm(Q,ge){if(Q)for(const Ke in ge){const Ct=ge[Ke],Oe=Q.get(Ke);Oe&&((0,dt.Oi)(Oe)&&Oe.patchValue(Ct),(0,dt._X)(Oe)&&this.patchForm(Oe,Ct))}}getFormDisplayValue(Q,ge){const Ke=this._getKeyPreservedDisplayValue(Q,ge);return{keyMapped:this._getKeyMappedFormDisplayValue(Ke,ge),keyPreserved:Ke}}_getKeyPreservedDisplayValue(Q,ge){const Ke=structuredClone(Q);if(null===typeof Ke||"object"!=typeof Ke)return Ke;for(const Ct of ge){const Oe=Ke?.[Ct.formControlName];if(Ct.options){const Qt=Ct.options.src&&"string"!=typeof Ct.options.src?Ct.options.src.mapData?.labelKey??"label":"label",ne=fe=>"object"==typeof fe?fe?.[Qt]:Ct.options?.data?.find(Z=>Z.value===fe)?.label;Ke[Ct.formControlName]=Array.isArray(Oe)?Oe.map(fe=>ne(fe)):ne(Oe)}Ct.children?.length&&(Ke[Ct.formControlName]=this._getKeyPreservedDisplayValue(Oe,Ct.children))}return Ke}_getKeyMappedFormDisplayValue(Q,ge){const Ke={};if(null===Q||"object"!=typeof Q)return Q;for(const Ct of ge){const Oe=Q[Ct.formControlName],nn=Ct.label??Ct.formControlName;Ke[nn]=Oe,Ct.children?.length&&(Ke[nn]=this._getKeyMappedFormDisplayValue(Oe,Ct.children))}return Ke}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})(),ur=(()=>{class ie{constructor(){this._requests=[],this._http=(0,g.WQX)(jt.Qq)}request$(Q){const{src:ge,method:Ke,headers:Ct,body:Oe}=Q,nn="GET"===Ke?this._http.get(ge,{headers:Ct}):this._http.post(ge,Oe??{},{headers:Ct}),Qt=this._prevSameRequest(Q);if(Qt){if(!Qt.data$.closed)return Qt.data$;Qt.data$=new tt.B}else this._requests.push({src:ge,data$:new tt.B,body:Oe});return nn.pipe((0,ze.M)(ne=>{const fe=this._prevSameRequest(Q);!fe?.data$.closed&&fe?.data$.next(ne)}),(0,de.j)(()=>{const ne=this._prevSameRequest(Q);ne?.data$.complete(),ne?.data$.unsubscribe()}))}reset(){this._requests.filter(Q=>!Q.data$.closed).forEach(({data$:Q})=>{Q.next([]),Q.complete(),Q.unsubscribe()}),this._requests=[]}_prevSameRequest({src:Q,method:ge,body:Ke}){return this._requests.find(Oe=>{if("POST"===ge&&Ke){const nn=JSON.stringify(Ke)===JSON.stringify(Oe.body);return Oe.src===Q&&nn}return Oe.src===Q})}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();function rr(ie,Rt){return"object"!=typeof ie?ie:1===Rt.length?ao(ie,Rt[0]):Rt.reduce((Q,ge)=>{const Ke=ge.split(".").map(Oe=>Oe.trim());return Q[Ke.length>1?Ke[Ke.length-1]:ge]=ao(ie,ge),Q},{})}let ml=(()=>{class ie{constructor(){this._globalVariableService=(0,g.WQX)(ar),this._httpRequestCacheService=(0,g.WQX)(ur),this._cancelAll$=new tt.B}getOptions$(Q,ge){return Q?(()=>Q.filter?this._getOptionsByFilter$(Q):Q.trigger?this._getOptionsOnTrigger$(Q,ge):this._getOptions$(Q))().pipe((0,ze.M)(Ct=>{(0,g.naY)()&&Ct.length>100&&console.warn(`NgDynamicJsonForm:\nThe data length from the response ${Q.url} is > 100.\nPlease make sure there is optimization made. e.g. virtual scroll, lazy loading`)})):De.w}cancelAllRequest(){this._cancelAll$.next(),this._httpRequestCacheService.reset()}onDestroy(){this.cancelAllRequest(),this._cancelAll$.complete()}_getOptions$(Q){if(!Q)return De.w;const{url:ge,method:Ke,headers:Ct,mapData:Oe}=Q,nn=this._mapBodyValue(Q),Qt=this._getMappedSrc(ge,nn);return this._httpRequestCacheService.request$({src:Qt,method:Ke,headers:Ct,body:nn}).pipe((0,Ee.T)(ne=>this._mapData(ne,Oe)),(0,Fe.W)(()=>(0,be.of)([])),(0,_t.Q)(this._cancelAll$))}_getOptionsByFilter$(Q){return Q.filter?this._getOptions$(Q).pipe((0,at.n)(Ct=>(0,Be.z)([(0,be.of)(Ct),this._onTriggerControlChanges$(Q.filter)])),(0,Ee.T)(([Ct,Oe])=>Ct.filter(nn=>yi(Q.filter.conditions,ne=>((Ct,Oe,nn)=>{const[Qt,ne,fe]=Ct;return[ao(Oe,Qt),ne,ao(nn?.value,fe)]})(ne,Oe,nn))))).pipe((0,_t.Q)(this._cancelAll$)):(0,be.of)([])}_getOptionsOnTrigger$(Q,ge){return Q.trigger?this._onTriggerControlChanges$(Q.trigger).pipe((0,at.n)(Ke=>(ge(),null==Ke||""===Ke?(0,be.of)([]):this._getOptions$(Q))),(0,_t.Q)(this._cancelAll$)):(0,be.of)([])}_onTriggerControlChanges$(Q){if(!Q)return De.w;const{by:ge,debounceTime:Ke=0}=Q;if(!ge.trim())return De.w;const Ct=this._globalVariableService.rootForm,Oe=Kn(ge),nn=Ct?.get(Oe.controlPath);return nn?nn.valueChanges.pipe((0,pe.Z)(nn.value),(0,he.B)(Ke),(0,me.F)((Qt,ne)=>JSON.stringify(Qt)===JSON.stringify(ne)),(0,Ee.T)(Qt=>Oe.valuePath?ao(Qt,Oe.valuePath):Qt)):((0,g.naY)()&&console.warn(`Form control ${Oe.controlPath} not found.`),De.w)}_mapData(Q,ge){if(!Q)return[];const{contentPath:Ke,slice:Ct,labelKey:Oe,valueKeys:nn}=ge??{},Qt=Ke?ao(Q,Ke):Q,ne=[...new Set(nn)].filter(Boolean);return Qt&&Array.isArray(Qt)?Qt.slice(Ct?.[0]??0,Ct?.[1]??Qt.length).map($e=>({label:ao($e,Oe),value:ne.length?rr($e,ne):$e})):[]}_getMappedSrc(Q,ge){const Ke=Q.match(/:([^/:\s]+)/g)||[];return"object"!=typeof ge?Q:Ke.length?Object.keys(ge).reduce((Ct,Oe)=>Ct.replace(`:${Oe}`,`${ge[Oe]}`),Q):`${Q}?${new URLSearchParams(ge).toString()}`}_mapBodyValue(Q){if(!Q.trigger)return Q.body;const ge=Q.trigger.body;if(!ge)return null;const Ke=this._globalVariableService.rootForm;return Object.keys(ge).reduce((Oe,nn)=>{const{controlPath:Qt,valuePath:ne}=Kn(ge[nn]),fe=Ke?.get(Qt),Z=ao(fe?.value,ne);return Oe[nn]=fe?Z:ge[nn],Oe},{})}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275prov=g.jDH({token:ie,factory:ie.\u0275fac})}return ie})();const Lc=new g.nKC("ng-dynamic-json-form-config");function Qs(ie){return{provide:Lc,useValue:ie}}function la(ie,Rt){if(!ie)return null;if((0,dt.Oi)(ie))return ie.errors;if((0,dt._X)(ie)){const Q=Rt?structuredClone(Rt):null,ge=Object.keys(ie.controls).reduce((Ke,Ct)=>{const Oe=la(ie.controls[Ct],Q);return Oe?{...Ke,[Ct]:Oe}:Ke},{});return Object.keys(ge).length?ge:null}return null}let Js=(()=>{class ie{writeValue(Q){this.control?.patchValue(Q)}registerOnChange(Q){this.control?.valueChanges.subscribe(Q)}registerOnTouched(Q){}setDisabledState(Q){Q?this.control?.disable():this.control?.enable()}validate(Q){return la(this.control)}markAsDirty(){}markAsPristine(){}markAsTouched(){}markAsUntouched(){}setErrors(Q){}onOptionsGet(Q){!this.data||!this.data.options||(this.data.options.data=Q)}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["custom-control"]],standalone:!0,features:[g.aNF],decls:0,vars:0,template:function(ge,Ke){},encapsulation:2})}return ie})(),ua=(()=>{class ie extends Js{constructor(){super(...arguments),this.hostClass="ui-basic",this.control=new dt.Yp([])}writeValue(Q){this.control.clear(),Array.isArray(Q)&&Q.forEach(ge=>this._addItem(ge))}registerOnChange(Q){this._onChange=Q}toggle(Q){this._onChange(Q.target.checked)}onCheckboxChange(Q,ge){const Ct=Q.target.checked,Oe=this.data?.options?.data?.map(nn=>nn.value).filter((nn,Qt)=>Qt===ge?Ct:this.isChecked(nn));this.control.clear(),Oe?.forEach(nn=>this._addItem(nn)),this._onChange(this.control.value)}isChecked(Q){return this.control.value.some(ge=>JSON.stringify(ge)===JSON.stringify(Q))}get groupButtonsStyles(){return`\n flex-direction: ${this.data?.options?.layout??"row"};\n align-items: flex-start;\n ${this.data?.options?.containerStyles??""}\n `.replace(/\s{2,}/g,"")}_addItem(Q){const ge=new dt.MJ(Q);this.control.push(ge)}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-checkbox"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass"],[4,"ngFor","ngForOf"],["labelTemplate",""],[1,"option-button",3,"ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"marker"],["type","checkbox",3,"propsBinding","change"],["type","checkbox",3,"propsBinding","checked","disabled","change"]],template:function(ge,Ke){1&ge&&g.DNE(0,te,5,7,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.Sq,Wt.bT,Wt.T3,Wt.B3,dt.X1,oo],encapsulation:2})}return ie})(),da=(()=>{class ie extends Js{constructor(){super(...arguments),this._locale=(0,g.WQX)(g.xe9),this.dateSettings={min:"",max:""},this.hostClass="ui-basic",this.control=new dt.gE({date:new dt.MJ(""),time:new dt.MJ("")})}writeValue(Q){if(!Q)return;const ge=(0,Wt.Yq)(Q,"yyyy-MM-dd,HH:mm:ss",this._locale);this.control.patchValue({date:ge.split(",")[0],time:ge.split(",")[1]})}registerOnChange(Q){this._onChange=Q}ngOnInit(){const{min:Q,max:ge}=this.data?.props??{};this.dateSettings={min:Q?(0,Wt.Yq)(Q,"yyyy-MM-dd",this._locale):"",max:ge?(0,Wt.Yq)(ge,"yyyy-MM-dd",this._locale):""}}updateControl(){const{date:Q,time:ge}=this.control.value;if(!Q)return;const Ke=new Date(Q);if(ge){const[Ct,Oe,nn]=ge.split(":");Ct&&Ke.setHours(parseInt(Ct)),Oe&&Ke.setMinutes(parseInt(Oe)),nn&&Ke.setSeconds(parseInt(nn))}this._onChange(Ke)}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-date"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"date-input",3,"ngClass"],["type","date",3,"propsBinding","formControl","change"],["type","time",3,"formControl"]],template:function(ge,Ke){1&ge&&g.DNE(0,rt,4,14,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,dt.X1,dt.me,dt.BC,dt.l_,oo],encapsulation:2})}return ie})(),gl=(()=>{class ie extends Js{constructor(){super(...arguments),this.hostClass="ui-basic",this.control=new dt.MJ("")}registerOnChange(Q){this.onChange=Q}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-input-mask"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Jv_([ea([{key:"imask",token:o.Zq}])]),g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["type","text","imaskValuePatch","",3,"ngClass","imask","propsBinding","formControl","complete"]],template:function(ge,Ke){1&ge&&g.DNE(0,Gt,2,15,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,dt.X1,dt.me,dt.BC,dt.l_,o.Zq,ta,oo],encapsulation:2})}return ie})(),No=(()=>{class ie extends Js{constructor(){super(...arguments),this.hostClass="ui-basic",this.control=new dt.hs("")}registerOnChange(Q){this.onChange=Q}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-input"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngClass","propsBinding","formControl","input"]],template:function(ge,Ke){1&ge&&g.DNE(0,xn,2,12,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,dt.X1,dt.me,dt.BC,dt.l_,oo],encapsulation:2})}return ie})();const Ll={checkbox:ua,date:da,password:No,number:No,email:No,radio:(()=>{class ie extends Js{constructor(){super(...arguments),this.selectedIndex=-1,this.isDisabled=!1,this.hostClass="ui-basic"}writeValue(Q){const ge=this.data?.options?.data?.findIndex(Ke=>JSON.stringify(Ke.value)===JSON.stringify(Q))??-1;this.selectedIndex=ge}registerOnChange(Q){this._onChange=Q}setDisabledState(Q){this.isDisabled=Q}onChange(Q){const ge=this.data?.options?.data?.[Q].value;this._onChange(ge)}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-radio"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf"],[1,"option-button-wrapper"],[1,"option-button",3,"ngStyle"],["type","radio",3,"name","propsBinding","checked","change"],[1,"marker"]],template:function(ge,Ke){1&ge&&g.DNE(0,Tr,3,10,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.Sq,Wt.bT,Wt.B3,dt.X1,oo],encapsulation:2})}return ie})(),range:(()=>{class ie extends Js{constructor(){super(...arguments),this.control=new dt.MJ(0),this.tickMarks=[],this.hostClass="ui-basic"}registerOnChange(Q){this.onChange=Q}ngOnInit(){this._getTickMarksCount()}get valuePosition(){const Q=this.data?.props?.min??0;return(this.control.value-Q)/((this.data?.props?.max??0)-Q)*100+"%"}_getTickMarksCount(){if(!this.data?.props||!this.data.props.showTickMarks)return;const Q=(this.data.props.max??1)-(this.data.props.min??1);0!==Q&&(this.tickMarks=Array.from(Array(Math.ceil(Q/(this.data.props.step??1))+1).keys()).map((Ke,Ct)=>Ct))}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-range"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"range-input",3,"ngClass"],["type","range",3,"ngStyle","propsBinding","formControl","input"],[1,"current-value"],[1,"tick-marks-container"],[4,"ngFor","ngForOf"],[1,"min-number"],[1,"max-number"],[1,"tick-mark"]],template:function(ge,Ke){1&ge&&g.DNE(0,Mt,5,17,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.Sq,Wt.bT,Wt.B3,dt.X1,dt.me,dt.MR,dt.BC,dt.l_,oo],encapsulation:2})}return ie})(),select:(()=>{class ie extends Js{constructor(){super(...arguments),this.control=new dt.MJ(-1),this.hostClass="ui-basic",this.onTouched=()=>{},this.onChange=Q=>{}}writeValue(Q){const ge=this.data?.options?.data?.findIndex(Ke=>JSON.stringify(Ke.value)===JSON.stringify(Q));void 0!==ge&&this.control.setValue(ge)}registerOnChange(Q){this.onChange=Q}registerOnTouched(Q){this.onTouched=Q}updateControl(Q){const ge=Q.target.value;if(ge){const Ke=this.data?.options?.data?.map(Ct=>Ct.value)?.[parseInt(ge)];this.onChange(Ke)}}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-select"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"group-buttons",3,"ngClass","ngStyle"],[3,"propsBinding","formControl","blur","change"],[4,"ngFor","ngForOf"],[3,"value"]],template:function(ge,Ke){1&ge&&g.DNE(0,Mn,4,13,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.Sq,Wt.bT,Wt.B3,dt.X1,dt.xH,dt.y7,dt.wz,dt.BC,dt.l_,oo],encapsulation:2})}return ie})(),switch:(()=>{class ie extends Js{constructor(){super(...arguments),this.control=new dt.MJ(!1),this.hostClass="ui-basic"}registerOnChange(Q){this._onChange=Q}updateControl(Q){const ge=Q.target.checked;this.control.setValue(ge),this._onChange(ge)}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-switch"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"option-button-wrapper",3,"ngClass"],[1,"option-button","switch-button"],[3,"ngTemplateOutlet",4,"ngIf"],["type","checkbox",3,"propsBinding","checked","change"],[1,"marker"],["labelTemplate",""],[3,"ngTemplateOutlet"]],template:function(ge,Ke){1&ge&&g.DNE(0,no,9,13,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,Wt.T3,dt.X1,oo],encapsulation:2})}return ie})(),text:No,textMask:gl,textarea:(()=>{class ie extends Js{constructor(){super(...arguments),this.hostClass="ui-basic",this.control=new dt.MJ("")}registerOnChange(Q){this.onChange=Q}static#e=this.\u0275fac=function(){let Q;return function(Ke){return(Q||(Q=g.xGo(ie)))(Ke||ie)}}();static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ui-basic-textarea"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},standalone:!0,features:[g.Jv_([ea([{key:"textarea-autoheight",token:xo}])]),g.Vt3,g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],["textareaAutoHeight","",3,"ngClass","propsBinding","formControl","input"]],template:function(ge,Ke){1&ge&&g.DNE(0,Ki,2,9,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.bT,dt.X1,dt.me,dt.BC,dt.l_,xo,oo],encapsulation:2})}return ie})()};let Wc=(()=>{class ie{constructor(){this._renderer2=(0,g.WQX)(g.sFG),this._el=(0,g.WQX)(g.aKT)}ngOnChanges(){const Q=this._el.nativeElement;if(!Q||!this.controlLayout)return;const{type:ge,layout:Ke}=this.controlLayout,Ct=Ke?.[`${ge??"host"}Class`]??"",Oe=Ke?.[`${ge??"host"}Styles`]??"";Ct.length>0&&Ct.split(/\s{1,}/).map(nn=>nn.trim()).filter(Boolean).forEach(nn=>{this._renderer2.addClass(Q,nn)}),Oe.length>0&&Oe.split(";").map(Qt=>Qt.trim()).filter(Boolean).forEach(Qt=>{const[ne,fe]=Qt.split(":").map(Z=>Z.trim());Q.style.setProperty(ne,fe)})}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","controlLayout",""]],inputs:{controlLayout:"controlLayout"},standalone:!0,features:[g.OA$]})}return ie})(),Lr=(()=>{class ie{transform(Q){return Q.hasValidator(dt.k0.required)}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275pipe=g.EJ8({name:"isControlRequired",type:ie,pure:!0,standalone:!0})}return ie})(),vo=(()=>{class ie{constructor(){this._internal_destroyRef=(0,g.WQX)(g.abz),this._internal_formValidationService=(0,g.WQX)(ns),this._customComponent=null,this.hostClass="error-message",this.errorMessages=[]}ngAfterViewInit(){this._injectComponent(),this._getErrorMessages()}_injectComponent(){if(!this.customComponent||!this.componentAnchor)return;this.componentAnchor.clear();const Q=this.componentAnchor.createComponent(this.customComponent);this._customComponent=Q.instance,this.control&&(Q.instance.control=this.control)}_getErrorMessages(){this._internal_formValidationService.getErrorMessages$(this.control,this.validators).pipe((0,ze.M)(Q=>{this.errorMessages=Q,this._customComponent&&(this._customComponent.errorMessages=[...this.errorMessages])}),(0,wn.pQ)(this._internal_destroyRef)).subscribe()}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["error-message"]],viewQuery:function(ge,Ke){if(1&ge&&g.GBs(Ys,5,g.c1b),2&ge){let Ct;g.mGM(Ct=g.lsd())&&(Ke.componentAnchor=Ct.first)}},hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},inputs:{control:"control",validators:"validators",customComponent:"customComponent",customTemplate:"customTemplate"},standalone:!0,features:[g.aNF],decls:4,vars:6,consts:[["componentAnchor",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(ge,Ke){if(1&ge&&(g.eu8(0,null,0)(2,1),g.DNE(3,zo,2,1,"ng-container",2)),2&ge){let Ct;g.R7$(2),g.Y8G("ngTemplateOutlet",null!==(Ct=Ke.customTemplate)&&void 0!==Ct?Ct:null)("ngTemplateOutletContext",g.l_i(3,qa,Ke.control,Ke.errorMessages)),g.R7$(1),g.Y8G("ngIf",!Ke.customComponent&&!Ke.customTemplate)}},dependencies:[Wt.MD,Wt.Sq,Wt.bT,Wt.T3],encapsulation:2})}return ie})(),Ra=(()=>{class ie{constructor(){this._renderer2=(0,g.WQX)(g.sFG),this._destroyRef=(0,g.WQX)(g.abz),this._viewInitialized=!1,this._collapsibleElCssText="",this.hostClass="form-label",this.collapsible=!1,this.expand=!1,this.toggle=Q=>{this._collapsible&&(this.expand=Q??!this.expand,this._setElementHeight(),this._componentRef&&(this._componentRef.expand=this.expand))}}get styleDisplay(){return!this.label||this.customComponent?null:this._collapsible?"flex":"inline-block"}get styleCursor(){return this._collapsible?"pointer":"normal"}onClick(){this.toggle()}ngOnChanges(Q){if(!this._viewInitialized)return;const{state:ge}=Q;if(ge&&this._collapsible)switch(this.state){case"collapse":this.toggle(!1);break;case"expand":this.toggle(!0)}}ngOnInit(){this.collapsible=this._collapsible,this.expand=void 0===this.state?"expand"===this.layout?.contentCollapsible:"expand"===this.state}ngAfterViewInit(){this.customComponent?this._injectComponent():(this._initCollapsibleEl(),this._viewInitialized=!0)}_injectComponent(){if(!this.componentAnchor||!this.customComponent)return;const Q=this.componentAnchor.createComponent(this.customComponent);Q.instance.label=this.label,Q.instance.layout=this.layout,Q.instance.props=this.props,Q.instance.collapsible=this._collapsible,Q.instance.expand=this.expand,this._initCollapsibleEl(),this._componentRef=Q.instance}_listenTransition(){this.collapsibleEl&&(0,He.R)(this.collapsibleEl,"transitionend",{passive:!0}).pipe((0,vt.p)(()=>this.expand),(0,ze.M)(()=>{this._renderer2.removeStyle(this.collapsibleEl,"height"),this._renderer2.removeStyle(this.collapsibleEl,"overflow")})).pipe((0,wn.pQ)(this._destroyRef)).subscribe()}_setElementHeight(){this._setExpandStyle(),this.expand||requestAnimationFrame(()=>this._setCollapseStyle())}_initCollapsibleEl(){!this.collapsibleEl||!this.collapsible||(this._collapsibleElCssText=this.collapsibleEl.style.cssText||"",this._renderer2.addClass(this.collapsibleEl,"collapsible-container"),this._listenTransition(),this.expand||this._setCollapseStyle())}_setCollapseStyle(){["border","padding","margin"].forEach(ge=>{this._collapsibleElCssText.includes(ge)&&this._renderer2.removeStyle(this.collapsibleEl,ge)}),this._renderer2.setStyle(this.collapsibleEl,"overflow","hidden"),this._renderer2.setStyle(this.collapsibleEl,"height","0px")}_setExpandStyle(){const Q=this.collapsibleEl?this.collapsibleEl.scrollHeight+1:0;this._renderer2.setProperty(this.collapsibleEl,"style",this._collapsibleElCssText||null),this._renderer2.setStyle(this.collapsibleEl,"height",`${Q}px`)}get _collapsible(){return"collapse"===this.layout?.contentCollapsible||"expand"===this.layout?.contentCollapsible}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["form-label"]],viewQuery:function(ge,Ke){if(1&ge&&g.GBs(Ys,5,g.c1b),2&ge){let Ct;g.mGM(Ct=g.lsd())&&(Ke.componentAnchor=Ct.first)}},hostVars:6,hostBindings:function(ge,Ke){1&ge&&g.bIt("click",function(Oe){return Ke.onClick(Oe)}),2&ge&&(g.HbH(Ke.hostClass),g.xc7("display",Ke.styleDisplay)("cursor",Ke.styleCursor))},inputs:{label:"label",layout:"layout",props:"props",collapsibleEl:"collapsibleEl",state:"state",customComponent:"customComponent",customTemplate:"customTemplate"},standalone:!0,features:[g.OA$,g.aNF],decls:4,vars:2,consts:[[4,"ngIf"],["componentAnchor",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[1,"text"],[2,"margin-left","auto",3,"ngStyle"],["xmlns","http://www.w3.org/2000/svg","width","1em","height","1em","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-chevron-up"],["fill-rule","evenodd","d","M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(ge,Ke){1&ge&&(g.DNE(0,Ss,4,2,"ng-container",0),g.eu8(1,null,1),g.DNE(3,Wo,1,9,"ng-container",2)),2&ge&&(g.Y8G("ngIf",!Ke.customComponent&&!Ke.customTemplate),g.R7$(3),g.Y8G("ngIf",Ke.customTemplate))},dependencies:[Wt.MD,Wt.bT,Wt.T3,Wt.B3],styles:["[_nghost-%COMP%]{align-items:center;gap:1rem}"]})}return ie})(),Qa=(()=>{class ie{constructor(){this._globalVariableService=(0,g.WQX)(ar),this.controlLayoutDisabled=!1,this.errorComponents=this._globalVariableService.errorComponents,this.errorTemplates=this._globalVariableService.errorTemplates,this.errorComponentDefault=this._globalVariableService.errorComponentDefault,this.errorTemplateDefault=this._globalVariableService.errorTemplateDefault,this.labelComponents=this._globalVariableService.labelComponents,this.labelTemplates=this._globalVariableService.labelTemplates,this.labelComponentDefault=this._globalVariableService.labelComponentDefault,this.labelTemplateDefault=this._globalVariableService.labelTemplateDefault}get showErrors(){const Q=this.control?.touched??!1;return!this._globalVariableService.hideErrorMessage$.value&&((this.control?.dirty??!1)||Q)&&!!this.control?.errors}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["content-wrapper"]],inputs:{config:"config",control:"control",collapsibleState:"collapsibleState",controlLayoutDisabled:"controlLayoutDisabled"},standalone:!0,features:[g.aNF],ngContentSelectors:nr,decls:3,vars:1,consts:[[4,"ngIf"],["descriptionTemplate",""],[3,"controlLayout"],["collapsibleEl",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"control","validators","customComponent","customTemplate","controlLayout","ngClass"],[3,"label","layout","props","collapsibleEl","customComponent","customTemplate","state","controlLayout","ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"form-description",3,"controlLayout"]],template:function(ge,Ke){1&ge&&(g.NAR(),g.DNE(0,Cn,8,16,"ng-container",0),g.DNE(1,Di,2,4,"ng-template",null,1,g.C5r)),2&ge&&g.Y8G("ngIf",Ke.config&&Ke.control)},dependencies:[Wt.MD,Wt.YU,Wt.bT,Wt.T3,Ra,vo,Wc,Lr],encapsulation:2})}return ie})(),Ea=(()=>{class ie{constructor(){this._cd=(0,g.WQX)(g.gRc),this._destroyRef=(0,g.WQX)(g.abz),this._globalVariableService=(0,g.WQX)(ar),this._formReadyStateService=(0,g.WQX)(wc),this._optionsDataService=(0,g.WQX)(ml),this._uiComponents=this._globalVariableService.uiComponents,this._pendingValue=null,this._onChange=Q=>{},this._onTouched=()=>{},this.hostClass="form-control",this.customTemplates=this._globalVariableService.customTemplates,this.loadingComponent=this._globalVariableService.loadingComponent,this.loadingTemplate=this._globalVariableService.loadingTemplate,this.loading=!1,this.useCustomLoading=!1,this.hostForm=this._globalVariableService.rootForm,this.hideErrorMessage$=this._globalVariableService.hideErrorMessage$}onFocusOut(){"select"!==this.data?.type&&this._onTouched()}writeValue(Q){this._pendingValue=Q,this._controlComponent?.writeValue(Q)}registerOnChange(Q){this._onChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){this._controlComponent?.setDisabledState(Q)}validate(Q){return this._controlComponent?.validate(Q)??null}ngDoCheck(){if(this.control){const{dirty:Q,pristine:ge,touched:Ke,untouched:Ct}=this.control;Q&&this._updateControlStatus("dirty"),ge&&this._updateControlStatus("pristine"),Ke&&this._updateControlStatus("touched"),Ct&&this._updateControlStatus("untouched")}}ngOnInit(){this.useCustomLoading=!!this.loadingComponent||!!this.loadingTemplate}ngAfterViewInit(){this._injectInputComponent(),this._fetchOptions(),this._errorMessageEvent(),this._cd.detectChanges()}ngOnDestroy(){this.control=void 0,this.data=void 0}get showErrors(){const Q=this.control?.touched??!1;return!this.hideErrorMessage$&&((this.control?.dirty??!1)||Q)&&!!this.control?.errors}_injectComponent(Q,ge){return Q&&ge?(Q.clear(),Q.createComponent(ge)):null}_injectInputComponent(){if(this.customTemplates?.[this.data?.formControlName??""])return;const ge=this._injectComponent(this.inputComponentAnchor,this.customComponent||this._uiComponents?.[this._inputType]||Ll[this._inputType]||No);ge&&(ge.instance.data=this.data,ge.instance.hostForm=this._globalVariableService.rootForm,ge.instance.writeValue(this._pendingValue),ge.instance.registerOnChange(this._onChange),ge.instance.registerOnTouched(this._onTouched),this._controlComponent=ge.instance,this._setControlErrors())}_fetchOptions(){if(!this.data||!this.data.options)return void(this._pendingValue=null);const{src:Q,srcAppendPosition:ge,autoSelectFirst:Ke,data:Ct=[]}=this.data.options,Oe=Z=>{this.control?.setValue(Z),this._controlComponent?.writeValue(Z)},nn=Z=>{Ke&&Z.length>0&&Oe(Z[0].value)};if(!Q)return void nn(Ct);const Qt="string"!=typeof Q&&(Q.filter||Q.trigger),ne="string"==typeof Q?this._globalVariableService.optionsSources?.[Q]:this._optionsDataService.getOptions$(Q,()=>this.loading=!1),fe=Z=>{this.loading=Z,this._formReadyStateService.optionsLoading(Z)};fe(!0),ne?.pipe((0,ze.M)(Z=>{const $e="before"===ge?Z.concat(Ct):Ct.concat(Z);this._pendingValue?(Oe(this._pendingValue),this._pendingValue=null):Qt?Oe(null):nn($e),this._controlComponent?.onOptionsGet($e),Qt&&fe(!1)}),(0,de.j)(()=>{fe(!1)})).subscribe()}_errorMessageEvent(){if(!this.control)return;const Q=this.control,ge=this._controlComponent;(0,Be.z)([this.hideErrorMessage$,Q.statusChanges.pipe((0,pe.Z)(Q.status))]).pipe((0,he.B)(0),(0,ze.M)(()=>{const Ke=this.hideErrorMessage$.value,Ct=Q.errors,Oe=ge?.control?.errors,nn=Ke||!Ct&&!Oe?null:Q.errors;ge&&(ge.control?.setErrors(nn),ge.setErrors(nn),ge.hideErrorMessage=Ke),!1===Ke&&(this._updateControlStatus("dirty",!0),this._updateControlStatus("touched",!0))}),(0,wn.pQ)(this._destroyRef)).subscribe()}_setControlErrors(){const Q=la(this._controlComponent?.control);!this.control?.errors&&Q&&this.control?.setErrors(Q)}_updateControlStatus(Q,ge=!1){const Ke=this.control,Ct=this._controlComponent;switch(Q){case"dirty":Ct?.control?.markAsDirty(),Ct?.markAsDirty(),ge&&Ke?.markAsDirty();break;case"pristine":Ct?.control?.markAsPristine(),Ct?.markAsPristine(),ge&&Ke?.markAsPristine();break;case"touched":Ct?.control?.markAsTouched(),Ct?.markAsTouched(),ge&&Ke?.markAsTouched();break;case"untouched":Ct?.control?.markAsUntouched(),Ct?.markAsUntouched(),ge&&Ke?.markAsUntouched()}}get _inputType(){if(this.data?.inputMask)return"textMask";if(!this.data?.type)return"text";switch(this.data.type){case"number":case"text":return"text";default:return this.data.type}}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["form-control"]],viewQuery:function(ge,Ke){if(1&ge&&g.GBs(tn,5,g.c1b),2&ge){let Ct;g.mGM(Ct=g.lsd())&&(Ke.inputComponentAnchor=Ct.first)}},hostVars:2,hostBindings:function(ge,Ke){1&ge&&g.bIt("focusout",function(Oe){return Ke.onFocusOut(Oe)}),2&ge&&g.HbH(Ke.hostClass)},inputs:{data:"data",control:"control",customComponent:"customComponent"},standalone:!0,features:[g.Jv_([{provide:dt.kq,useExisting:(0,g.Rfq)(()=>ie),multi:!0},{provide:dt.cz,useExisting:(0,g.Rfq)(()=>ie),multi:!0}]),g.aNF],decls:1,vars:1,consts:[[4,"ngIf"],[1,"input-container",3,"ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["inputComponentAnchor",""],[1,"loading-container",3,"ngClass"],[4,"ngComponentOutlet"],[3,"ngTemplateOutlet"]],template:function(ge,Ke){1&ge&&g.DNE(0,qn,8,16,"ng-container",0),2&ge&&g.Y8G("ngIf",Ke.data)},dependencies:[Wt.MD,Wt.YU,Wt.OI,Wt.bT,Wt.T3],styles:["[_nghost-%COMP%]{display:block}"]})}return ie})(),L1=(()=>{class ie{constructor(){this._renderer2=(0,g.WQX)(g.sFG),this._el=(0,g.WQX)(g.aKT)}ngOnChanges(){const Q=this._el.nativeElement;!Q||!this._hostId||this._renderer2.setAttribute(Q,"id",this._hostId)}get _hostId(){if(!this.hostId)return;const{parentId:Q,controlName:ge}=this.hostId;return Q?`${Q}.${ge}`:ge}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275dir=g.FsC({type:ie,selectors:[["","hostId",""]],inputs:{hostId:"hostId"},standalone:!0,features:[g.OA$]})}return ie})(),Na=(()=>{class ie{transform(Q){return Q.children?"FormGroup":"FormControl"}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275pipe=g.EJ8({name:"controlTypeByConfig",type:ie,pure:!0,standalone:!0})}return ie})(),vs=(()=>{class ie{constructor(){this._globalVariableService=(0,g.WQX)(ar),this.parentForm=new dt.J3({}),this.hostClass="grid-container form-group-container",this.customComponents=this._globalVariableService.customComponents}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["form-group"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},inputs:{configs:"configs",parentId:"parentId",parentForm:"parentForm",hostLayout:"hostLayout",collapsibleState:"collapsibleState"},standalone:!0,features:[g.aNF],decls:2,vars:2,consts:[[3,"formGroup"],[4,"ngFor","ngForOf"],[4,"ngIf"],[2,"display","block",3,"config","control","collapsibleState","hostId","ngClass","controlLayout"],[3,"data","control","formControlName","customComponent","controlLayout"],[3,"parentId","parentForm","configs","collapsibleState","controlLayout"]],template:function(ge,Ke){1&ge&&(g.qex(0,0),g.DNE(1,Gs,2,1,"ng-container",1),g.bVm()),2&ge&&(g.Y8G("formGroup",Ke.parentForm),g.R7$(1),g.Y8G("ngForOf",Ke.configs))},dependencies:[ie,Wt.MD,Wt.YU,Wt.Sq,Wt.bT,dt.X1,dt.BC,dt.cb,dt.j4,dt.JD,Qa,L1,Wc,Ea,Na],encapsulation:2})}return ie})();function Ja(ie){ie&&(ie.dirty||ie.markAsDirty(),(0,dt._X)(ie)&&Object.values(ie.controls).forEach(Rt=>Ja(Rt)),(0,dt.cF)(ie)&&ie.controls.forEach(Rt=>Ja(Rt)))}function pc(ie){ie&&(ie.pristine||ie.markAsPristine(),(0,dt._X)(ie)&&Object.values(ie.controls).forEach(Rt=>pc(Rt)),(0,dt.cF)(ie)&&ie.controls.forEach(Rt=>pc(Rt)))}function zl(ie){ie&&(ie.touched||ie.markAsTouched(),(0,dt._X)(ie)&&Object.values(ie.controls).forEach(Rt=>zl(Rt)),(0,dt.cF)(ie)&&ie.controls.forEach(Rt=>zl(Rt)))}function co(ie){ie&&(ie.untouched||ie.markAsUntouched(),(0,dt._X)(ie)&&Object.values(ie.controls).forEach(Rt=>co(Rt)),(0,dt.cF)(ie)&&ie.controls.forEach(Rt=>co(Rt)))}let vl=(()=>{class ie{constructor(){this._providerConfig=(0,g.WQX)(Lc,{optional:!0}),this._cd=(0,g.WQX)(g.gRc),this._el=(0,g.WQX)(g.aKT),this._injector=(0,g.WQX)(g.zZn),this._destroyRef=(0,g.WQX)(g.abz),this._configValidationService=(0,g.WQX)(Wr),this._formGeneratorService=(0,g.WQX)(Is),this._formConditionsService=(0,g.WQX)(ka),this._formValueService=(0,g.WQX)(Es),this._formReadyStateService=(0,g.WQX)(wc),this._globalVariableService=(0,g.WQX)(ar),this._optionsDataService=(0,g.WQX)(ml),this._reset$=new tt.B,this._controlDirective=null,this._allowFormDirty=!1,this._globalVariablesInitialized=!1,this._onTouched=()=>{},this._onChange=Q=>{},this.configGet=[],this.configValidationErrors=[],this.formGet=new g.bkB,this.optionsLoaded=new g.bkB,this.displayValue=new g.bkB,this.updateStatusFunctions=new g.bkB,this.hostClass="ng-dynamic-json-form",this._formReadyStateService.optionsReady$.pipe((0,vt.p)(Boolean),(0,ze.M)(()=>this.optionsLoaded.emit()),(0,wn.pQ)()).subscribe()}ngOnChanges(Q){const{configs:ge,hideErrorMessage:Ke}=Q;Ke&&this._globalVariableService.hideErrorMessage$.next(Ke.currentValue),ge&&this._globalVariablesInitialized&&this._buildForm()}ngOnInit(){this._setupVariables(),this._getControlDirective(),this._buildForm()}ngOnDestroy(){this._reset$.next(),this._reset$.complete(),this._optionsDataService.onDestroy()}validate(Q){return this._formErrors}registerOnValidatorChange(Q){}writeValue(Q){this._formValueService.patchForm(this.form,Q)}registerOnChange(Q){this._onChange=Q}registerOnTouched(Q){this._onTouched=Q}setDisabledState(Q){Q?this.form?.disable():this.form?.enable()}_setupVariables(){const{customValidators:Q,labelComponent:ge,errorComponent:Ke,loadingComponent:Ct,uiComponents:Oe}=this._providerConfig??{};this._globalVariableService.setup({errorComponents:this.errorComponents,errorTemplates:this.errorTemplates,errorComponentDefault:this.errorComponentDefault??Ke,errorTemplateDefault:this.errorTemplateDefault,labelComponents:this.labelComponents,labelTemplates:this.labelTemplates,labelComponentDefault:this.labelComponentDefault??ge,labelTemplateDefault:this.labelTemplateDefault,loadingComponent:this.loadingComponent??Ct,loadingTemplate:this.loadingTemplate,hostElement:this._el.nativeElement,customValidators:Q,customComponents:this.customComponents,customTemplates:this.customTemplates,conditionsActionFunctions:this.conditionsActionFunctions,optionsSources:this.optionsSources,uiComponents:{...Ll,...Oe}}),this._globalVariablesInitialized=!0}_buildForm(){if(this._reset(),!this.configs)return;const Q=this._configValidationService.validateAndGetConfig(this.configs);this.configGet=Q.configs??[],this.configValidationErrors=Q.errors??[],this._allowFormDirty=!1,this.configGet.length&&!Q.errors?.length&&(this.form=this._formGeneratorService.generateFormGroup(this.configGet),this._globalVariableService.rootForm=this.form,this._globalVariableService.rootConfigs=this.configGet,this._setupListeners(),this.formGet.emit(this.form),this.updateStatusFunctions.emit({setDirty:()=>this._updateFormStatus("setDirty"),setPristine:()=>this._updateFormStatus("setPristine"),setTouched:()=>this._updateFormStatus("setTouched"),setUntouched:()=>this._updateFormStatus("setUntouched")}),this._cd.detectChanges()),this._formReadyStateService.haveOptionsToWait(this.configGet)||this._formReadyStateService.optionsLoading(!1)}_getControlDirective(){this._controlDirective=this._injector.get(dt.vO,null,{optional:!0,self:!0})}_setupListeners(){if(!this.form)return;const Q=this._el.nativeElement,ge=this._formConditionsService.listenConditions$(),Ke=Qt=>(0,He.R)(Q,Qt,{passive:!0}),Ct=this.form.valueChanges.pipe((0,pe.Z)(this.form.value),(0,ze.M)(()=>this._onFormValueChanges())),Oe=Ke("focusout").pipe((0,Se.s)(1),(0,ze.M)(()=>this._onTouched())),nn=(0,it.h)(Ke("focusin"),Ke("click"),Ke("keydown")).pipe((0,Se.s)(1),(0,ze.M)(()=>{this._allowFormDirty=!0}));(0,it.h)(nn,Oe,ge,Ct).pipe((0,_t.Q)(this._reset$),(0,wn.pQ)(this._destroyRef)).subscribe()}_reset(){this._reset$.next(),this._optionsDataService.cancelAllRequest(),this._formReadyStateService.resetState(),this._controlDirective?.control.markAsUntouched(),this._controlDirective?.form.markAsUntouched(),this.configValidationErrors=[]}_updateFormStatus(Q){switch(Q){case"setDirty":this._allowFormDirty=!0,this._controlDirective?.control.markAsDirty(),Ja(this.form);break;case"setPristine":this._allowFormDirty=!1,this._controlDirective?.control.markAsPristine(),pc(this.form);break;case"setTouched":this._controlDirective?.control.markAsTouched(),zl(this.form);break;case"setUntouched":this._controlDirective?.control.markAsUntouched(),co(this.form)}}_onFormValueChanges(){const Q=this.form?.value;(()=>{this._controlDirective||this.form?.setErrors(this._formErrors)})(),(()=>{this._controlDirective&&this._onChange(Q)})(),(()=>{const nn=this._formValueService.getFormDisplayValue(Q,this.configGet);this.displayValue.emit(nn)})(),(()=>{this._allowFormDirty||(this._controlDirective?.form.markAsPristine(),this._controlDirective?.control.markAsPristine(),pc(this.form))})()}get _formErrors(){return this.form?la(this.form):null}static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275cmp=g.VBU({type:ie,selectors:[["ng-dynamic-json-form"]],hostVars:2,hostBindings:function(ge,Ke){2&ge&&g.HbH(Ke.hostClass)},inputs:{configs:"configs",customComponents:"customComponents",customTemplates:"customTemplates",conditionsActionFunctions:"conditionsActionFunctions",hideErrorMessage:"hideErrorMessage",collapsibleState:"collapsibleState",errorComponents:"errorComponents",errorComponentDefault:"errorComponentDefault",errorTemplates:"errorTemplates",errorTemplateDefault:"errorTemplateDefault",labelComponents:"labelComponents",labelComponentDefault:"labelComponentDefault",labelTemplates:"labelTemplates",labelTemplateDefault:"labelTemplateDefault",loadingComponent:"loadingComponent",loadingTemplate:"loadingTemplate",optionsSources:"optionsSources"},outputs:{formGet:"formGet",optionsLoaded:"optionsLoaded",displayValue:"displayValue",updateStatusFunctions:"updateStatusFunctions"},standalone:!0,features:[g.Jv_([Wr,ws,Is,ka,ns,Es,wc,ar,ur,ml,{provide:dt.kq,useExisting:(0,g.Rfq)(()=>ie),multi:!0},{provide:dt.cz,useExisting:(0,g.Rfq)(()=>ie),multi:!0}]),g.OA$,g.aNF],decls:3,vars:3,consts:[[4,"ngIf"],[1,"no-configs-error"],[1,"config-validation-error"],[4,"ngFor","ngForOf"],[2,"color","var(--color-error)"],[3,"parentForm","configs","collapsibleState"]],template:function(ge,Ke){1&ge&&(g.DNE(0,Fr,4,0,"ng-container",0),g.DNE(1,Zo,5,1,"ng-container",0),g.DNE(2,Vo,2,3,"ng-container",0)),2&ge&&(g.Y8G("ngIf",!Ke.configs),g.R7$(1),g.Y8G("ngIf",!(null==Ke.configValidationErrors||!Ke.configValidationErrors.length)),g.R7$(1),g.Y8G("ngIf",Ke.form))},dependencies:[Wt.MD,Wt.Sq,Wt.bT,Wt.TG,dt.X1,vs],encapsulation:2})}return ie})()},194:(vn,J,F)=>{"use strict";F.d(J,{FX:()=>at,K2:()=>Ee,MA:()=>vt,P:()=>tt,Ro:()=>o,S6:()=>g,hZ:()=>oe,i0:()=>De,i7:()=>Te,iF:()=>be,kY:()=>Ve,kp:()=>V,lY:()=>ze,sM:()=>Re,sf:()=>Fe,ui:()=>_t,wk:()=>me});class g{}class o{}const V="*";function oe(Be,he){return{type:7,name:Be,definitions:he,options:{}}}function De(Be,he=null){return{type:4,styles:he,timings:Be}}function Ee(Be,he=null){return{type:2,steps:Be,options:he}}function be(Be){return{type:6,styles:Be,offset:null}}function me(Be,he,He){return{type:0,name:Be,styles:he,options:He}}function Te(Be){return{type:5,steps:Be}}function Ve(Be,he,He=null){return{type:1,expr:Be,animation:he,options:He}}function ze(Be,he=null){return{type:8,animation:Be,options:he}}function vt(Be=null){return{type:9,options:Be}}function Re(Be,he=null){return{type:10,animation:Be,options:he}}function tt(Be,he,He=null){return{type:11,selector:Be,animation:he,options:He}}class Fe{constructor(he=0,He=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=he+He}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}onStart(he){this._originalOnStartFns.push(he),this._onStartFns.push(he)}onDone(he){this._originalOnDoneFns.push(he),this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(he=>he()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(he){this._position=this.totalTime?he*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(he){const He="start"==he?this._onStartFns:this._onDoneFns;He.forEach(Se=>Se()),He.length=0}}class _t{constructor(he){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=he;let He=0,Se=0,it=0;const dt=this.players.length;0==dt?queueMicrotask(()=>this._onFinish()):this.players.forEach(jt=>{jt.onDone(()=>{++He==dt&&this._onFinish()}),jt.onDestroy(()=>{++Se==dt&&this._onDestroy()}),jt.onStart(()=>{++it==dt&&this._onStart()})}),this.totalTime=this.players.reduce((jt,Wt)=>Math.max(jt,Wt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(he=>he()),this._onDoneFns=[])}init(){this.players.forEach(he=>he.init())}onStart(he){this._onStartFns.push(he)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(he=>he()),this._onStartFns=[])}onDone(he){this._onDoneFns.push(he)}onDestroy(he){this._onDestroyFns.push(he)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(he=>he.play())}pause(){this.players.forEach(he=>he.pause())}restart(){this.players.forEach(he=>he.restart())}finish(){this._onFinish(),this.players.forEach(he=>he.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(he=>he.destroy()),this._onDestroyFns.forEach(he=>he()),this._onDestroyFns=[])}reset(){this.players.forEach(he=>he.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(he){const He=he*this.totalTime;this.players.forEach(Se=>{const it=Se.totalTime?Math.min(1,He/Se.totalTime):1;Se.setPosition(it)})}getPosition(){const he=this.players.reduce((He,Se)=>null===He||Se.totalTime>He.totalTime?Se:He,null);return null!=he?he.getPosition():0}beforeDestroy(){this.players.forEach(he=>{he.beforeDestroy&&he.beforeDestroy()})}triggerCallback(he){const He="start"==he?this._onStartFns:this._onDoneFns;He.forEach(Se=>Se()),He.length=0}}const at="!"},6610:(vn,J,F)=>{"use strict";F.d(J,{AJ:()=>Is,B3:()=>pl,Jj:()=>tl,MD:()=>ka,N0:()=>No,OI:()=>Ro,QT:()=>V,Sm:()=>tt,Sq:()=>qo,T3:()=>na,TG:()=>za,UE:()=>rr,VF:()=>De,Vy:()=>ml,Xr:()=>Js,YU:()=>is,Yq:()=>qe,ZD:()=>oe,_b:()=>Vr,aZ:()=>Fe,bT:()=>xo,e1:()=>La,fG:()=>ao,fw:()=>de,hb:()=>vt,hj:()=>be,qQ:()=>pe,ux:()=>ws});var g=F(2978);let o=null;function V(){return o}function oe(X){o||(o=X)}class De{}const pe=new g.nKC("DocumentToken");let Ee=(()=>{class X{historyGo(le){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275prov=g.jDH({token:X,factory:function(){return(0,g.WQX)(me)},providedIn:"platform"})}return X})();const be=new g.nKC("Location Initialized");let me=(()=>{class X extends Ee{constructor(){super(),this._doc=(0,g.WQX)(pe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(le){const Ie=V().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("popstate",le,!1),()=>Ie.removeEventListener("popstate",le)}onHashChange(le){const Ie=V().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("hashchange",le,!1),()=>Ie.removeEventListener("hashchange",le)}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(le){this._location.pathname=le}pushState(le,Ie,Ot){this._history.pushState(le,Ie,Ot)}replaceState(le,Ie,Ot){this._history.replaceState(le,Ie,Ot)}forward(){this._history.forward()}back(){this._history.back()}historyGo(le=0){this._history.go(le)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275prov=g.jDH({token:X,factory:function(){return new X},providedIn:"platform"})}return X})();function Te(X,Pe){if(0==X.length)return Pe;if(0==Pe.length)return X;let le=0;return X.endsWith("/")&&le++,Pe.startsWith("/")&&le++,2==le?X+Pe.substring(1):1==le?X+Pe:X+"/"+Pe}function Ve(X){const Pe=X.match(/#|\?|$/),le=Pe&&Pe.index||X.length;return X.slice(0,le-("/"===X[le-1]?1:0))+X.slice(le)}function ze(X){return X&&"?"!==X[0]?"?"+X:X}let vt=(()=>{class X{historyGo(le){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275prov=g.jDH({token:X,factory:function(){return(0,g.WQX)(tt)},providedIn:"root"})}return X})();const Re=new g.nKC("appBaseHref");let tt=(()=>{class X extends vt{constructor(le,Ie){super(),this._platformLocation=le,this._removeListenerFns=[],this._baseHref=Ie??this._platformLocation.getBaseHrefFromDOM()??(0,g.WQX)(pe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(le){this._removeListenerFns.push(this._platformLocation.onPopState(le),this._platformLocation.onHashChange(le))}getBaseHref(){return this._baseHref}prepareExternalUrl(le){return Te(this._baseHref,le)}path(le=!1){const Ie=this._platformLocation.pathname+ze(this._platformLocation.search),Ot=this._platformLocation.hash;return Ot&&le?`${Ie}${Ot}`:Ie}pushState(le,Ie,Ot,bn){const Pn=this.prepareExternalUrl(Ot+ze(bn));this._platformLocation.pushState(le,Ie,Pn)}replaceState(le,Ie,Ot,bn){const Pn=this.prepareExternalUrl(Ot+ze(bn));this._platformLocation.replaceState(le,Ie,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(le=0){this._platformLocation.historyGo?.(le)}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.KVO(Ee),g.KVO(Re,8))};static#t=this.\u0275prov=g.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})(),de=(()=>{class X extends vt{constructor(le,Ie){super(),this._platformLocation=le,this._baseHref="",this._removeListenerFns=[],null!=Ie&&(this._baseHref=Ie)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(le){this._removeListenerFns.push(this._platformLocation.onPopState(le),this._platformLocation.onHashChange(le))}getBaseHref(){return this._baseHref}path(le=!1){let Ie=this._platformLocation.hash;return null==Ie&&(Ie="#"),Ie.length>0?Ie.substring(1):Ie}prepareExternalUrl(le){const Ie=Te(this._baseHref,le);return Ie.length>0?"#"+Ie:Ie}pushState(le,Ie,Ot,bn){let Pn=this.prepareExternalUrl(Ot+ze(bn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.pushState(le,Ie,Pn)}replaceState(le,Ie,Ot,bn){let Pn=this.prepareExternalUrl(Ot+ze(bn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.replaceState(le,Ie,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(le=0){this._platformLocation.historyGo?.(le)}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.KVO(Ee),g.KVO(Re,8))};static#t=this.\u0275prov=g.jDH({token:X,factory:X.\u0275fac})}return X})(),Fe=(()=>{class X{constructor(le){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=le;const Ie=this._locationStrategy.getBaseHref();this._basePath=function he(X){if(new RegExp("^(https?:)?//").test(X)){const[,le]=X.split(/\/\/[^\/]+/);return le}return X}(Ve(Be(Ie))),this._locationStrategy.onPopState(Ot=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ot.state,type:Ot.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(le=!1){return this.normalize(this._locationStrategy.path(le))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(le,Ie=""){return this.path()==this.normalize(le+ze(Ie))}normalize(le){return X.stripTrailingSlash(function at(X,Pe){if(!X||!Pe.startsWith(X))return Pe;const le=Pe.substring(X.length);return""===le||["/",";","?","#"].includes(le[0])?le:Pe}(this._basePath,Be(le)))}prepareExternalUrl(le){return le&&"/"!==le[0]&&(le="/"+le),this._locationStrategy.prepareExternalUrl(le)}go(le,Ie="",Ot=null){this._locationStrategy.pushState(Ot,"",le,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(le+ze(Ie)),Ot)}replaceState(le,Ie="",Ot=null){this._locationStrategy.replaceState(Ot,"",le,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(le+ze(Ie)),Ot)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(le=0){this._locationStrategy.historyGo?.(le)}onUrlChange(le){return this._urlChangeListeners.push(le),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ie=>{this._notifyUrlChangeListeners(Ie.url,Ie.state)})),()=>{const Ie=this._urlChangeListeners.indexOf(le);this._urlChangeListeners.splice(Ie,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(le="",Ie){this._urlChangeListeners.forEach(Ot=>Ot(le,Ie))}subscribe(le,Ie,Ot){return this._subject.subscribe({next:le,error:Ie,complete:Ot})}static#e=this.normalizeQueryParams=ze;static#t=this.joinWithSlash=Te;static#n=this.stripTrailingSlash=Ve;static#i=this.\u0275fac=function(Ie){return new(Ie||X)(g.KVO(vt))};static#r=this.\u0275prov=g.jDH({token:X,factory:function(){return function _t(){return new Fe((0,g.KVO)(vt))}()},providedIn:"root"})}return X})();function Be(X){return X.replace(/\/index.html$/,"")}var dt=function(X){return X[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X}(dt||{}),jt=function(X){return X[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X}(jt||{}),Wt=function(X){return X[X.Short=0]="Short",X[X.Medium=1]="Medium",X[X.Long=2]="Long",X[X.Full=3]="Full",X}(Wt||{}),wn=function(X){return X[X.Decimal=0]="Decimal",X[X.Group=1]="Group",X[X.List=2]="List",X[X.PercentSign=3]="PercentSign",X[X.PlusSign=4]="PlusSign",X[X.MinusSign=5]="MinusSign",X[X.Exponential=6]="Exponential",X[X.SuperscriptingExponent=7]="SuperscriptingExponent",X[X.PerMille=8]="PerMille",X[X.Infinity=9]="Infinity",X[X.NaN=10]="NaN",X[X.TimeSeparator=11]="TimeSeparator",X[X.CurrencyDecimal=12]="CurrencyDecimal",X[X.CurrencyGroup=13]="CurrencyGroup",X}(wn||{});function nt(X,Pe){return xn((0,g.H5H)(X)[g.KH2.DateFormat],Pe)}function ht(X,Pe){return xn((0,g.H5H)(X)[g.KH2.TimeFormat],Pe)}function Je(X,Pe){return xn((0,g.H5H)(X)[g.KH2.DateTimeFormat],Pe)}function Ae(X,Pe){const le=(0,g.H5H)(X),Ie=le[g.KH2.NumberSymbols][Pe];if(typeof Ie>"u"){if(Pe===wn.CurrencyDecimal)return le[g.KH2.NumberSymbols][wn.Decimal];if(Pe===wn.CurrencyGroup)return le[g.KH2.NumberSymbols][wn.Group]}return Ie}function zt(X){if(!X[g.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${X[g.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function xn(X,Pe){for(let le=Pe;le>-1;le--)if(typeof X[le]<"u")return X[le];throw new Error("Locale data API: locale data undefined")}function In(X){const[Pe,le]=X.split(":");return{hours:+Pe,minutes:+le}}const Dr=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tr={},cn=/((?:[^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 On=function(X){return X[X.Short=0]="Short",X[X.ShortGMT=1]="ShortGMT",X[X.Long=2]="Long",X[X.Extended=3]="Extended",X}(On||{}),Qn=function(X){return X[X.FullYear=0]="FullYear",X[X.Month=1]="Month",X[X.Date=2]="Date",X[X.Hours=3]="Hours",X[X.Minutes=4]="Minutes",X[X.Seconds=5]="Seconds",X[X.FractionalSeconds=6]="FractionalSeconds",X[X.Day=7]="Day",X}(Qn||{}),fi=function(X){return X[X.DayPeriods=0]="DayPeriods",X[X.Days=1]="Days",X[X.Months=2]="Months",X[X.Eras=3]="Eras",X}(fi||{});function qe(X,Pe,le,Ie){let Ot=function jn(X){if(It(X))return X;if("number"==typeof X&&!isNaN(X))return new Date(X);if("string"==typeof X){if(X=X.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(X)){const[Ot,bn=1,Pn=1]=X.split("-").map(Oi=>+Oi);return Mt(Ot,bn-1,Pn)}const le=parseFloat(X);if(!isNaN(X-le))return new Date(le);let Ie;if(Ie=X.match(Dr))return function kn(X){const Pe=new Date(0);let le=0,Ie=0;const Ot=X[8]?Pe.setUTCFullYear:Pe.setFullYear,bn=X[8]?Pe.setUTCHours:Pe.setHours;X[9]&&(le=Number(X[9]+X[10]),Ie=Number(X[9]+X[11])),Ot.call(Pe,Number(X[1]),Number(X[2])-1,Number(X[3]));const Pn=Number(X[4]||0)-le,Oi=Number(X[5]||0)-Ie,lo=Number(X[6]||0),_o=Math.floor(1e3*parseFloat("0."+(X[7]||0)));return bn.call(Pe,Pn,Oi,lo,_o),Pe}(Ie)}const Pe=new Date(X);if(!It(Pe))throw new Error(`Unable to convert "${X}" into a date`);return Pe}(X);Pe=Bt(le,Pe)||Pe;let Oi,Pn=[];for(;Pe;){if(Oi=cn.exec(Pe),!Oi){Pn.push(Pe);break}{Pn=Pn.concat(Oi.slice(1));const Ds=Pn.pop();if(!Ds)break;Pe=Ds}}let lo=Ot.getTimezoneOffset();Ie&&(lo=io(Ie,lo),Ot=function ic(X,Pe,le){const Ie=le?-1:1,Ot=X.getTimezoneOffset();return function Wo(X,Pe){return(X=new Date(X.getTime())).setMinutes(X.getMinutes()+Pe),X}(X,Ie*(io(Pe,Ot)-Ot))}(Ot,Ie,!0));let _o="";return Pn.forEach(Ds=>{const xr=function Ss(X){if(mo[X])return mo[X];let Pe;switch(X){case"G":case"GG":case"GGG":Pe=dr(fi.Eras,jt.Abbreviated);break;case"GGGG":Pe=dr(fi.Eras,jt.Wide);break;case"GGGGG":Pe=dr(fi.Eras,jt.Narrow);break;case"y":Pe=ni(Qn.FullYear,1,0,!1,!0);break;case"yy":Pe=ni(Qn.FullYear,2,0,!0,!0);break;case"yyy":Pe=ni(Qn.FullYear,3,0,!1,!0);break;case"yyyy":Pe=ni(Qn.FullYear,4,0,!1,!0);break;case"Y":Pe=xc(1);break;case"YY":Pe=xc(2,!0);break;case"YYY":Pe=xc(3);break;case"YYYY":Pe=xc(4);break;case"M":case"L":Pe=ni(Qn.Month,1,1);break;case"MM":case"LL":Pe=ni(Qn.Month,2,1);break;case"MMM":Pe=dr(fi.Months,jt.Abbreviated);break;case"MMMM":Pe=dr(fi.Months,jt.Wide);break;case"MMMMM":Pe=dr(fi.Months,jt.Narrow);break;case"LLL":Pe=dr(fi.Months,jt.Abbreviated,dt.Standalone);break;case"LLLL":Pe=dr(fi.Months,jt.Wide,dt.Standalone);break;case"LLLLL":Pe=dr(fi.Months,jt.Narrow,dt.Standalone);break;case"w":Pe=qa(1);break;case"ww":Pe=qa(2);break;case"W":Pe=qa(1,!0);break;case"d":Pe=ni(Qn.Date,1);break;case"dd":Pe=ni(Qn.Date,2);break;case"c":case"cc":Pe=ni(Qn.Day,1);break;case"ccc":Pe=dr(fi.Days,jt.Abbreviated,dt.Standalone);break;case"cccc":Pe=dr(fi.Days,jt.Wide,dt.Standalone);break;case"ccccc":Pe=dr(fi.Days,jt.Narrow,dt.Standalone);break;case"cccccc":Pe=dr(fi.Days,jt.Short,dt.Standalone);break;case"E":case"EE":case"EEE":Pe=dr(fi.Days,jt.Abbreviated);break;case"EEEE":Pe=dr(fi.Days,jt.Wide);break;case"EEEEE":Pe=dr(fi.Days,jt.Narrow);break;case"EEEEEE":Pe=dr(fi.Days,jt.Short);break;case"a":case"aa":case"aaa":Pe=dr(fi.DayPeriods,jt.Abbreviated);break;case"aaaa":Pe=dr(fi.DayPeriods,jt.Wide);break;case"aaaaa":Pe=dr(fi.DayPeriods,jt.Narrow);break;case"b":case"bb":case"bbb":Pe=dr(fi.DayPeriods,jt.Abbreviated,dt.Standalone,!0);break;case"bbbb":Pe=dr(fi.DayPeriods,jt.Wide,dt.Standalone,!0);break;case"bbbbb":Pe=dr(fi.DayPeriods,jt.Narrow,dt.Standalone,!0);break;case"B":case"BB":case"BBB":Pe=dr(fi.DayPeriods,jt.Abbreviated,dt.Format,!0);break;case"BBBB":Pe=dr(fi.DayPeriods,jt.Wide,dt.Format,!0);break;case"BBBBB":Pe=dr(fi.DayPeriods,jt.Narrow,dt.Format,!0);break;case"h":Pe=ni(Qn.Hours,1,-12);break;case"hh":Pe=ni(Qn.Hours,2,-12);break;case"H":Pe=ni(Qn.Hours,1);break;case"HH":Pe=ni(Qn.Hours,2);break;case"m":Pe=ni(Qn.Minutes,1);break;case"mm":Pe=ni(Qn.Minutes,2);break;case"s":Pe=ni(Qn.Seconds,1);break;case"ss":Pe=ni(Qn.Seconds,2);break;case"S":Pe=ni(Qn.FractionalSeconds,1);break;case"SS":Pe=ni(Qn.FractionalSeconds,2);break;case"SSS":Pe=ni(Qn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Pe=Jr(On.Short);break;case"ZZZZZ":Pe=Jr(On.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Pe=Jr(On.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Pe=Jr(On.Long);break;default:return null}return mo[X]=Pe,Pe}(Ds);_o+=xr?xr(Ot,le,lo):"''"===Ds?"'":Ds.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),_o}function Mt(X,Pe,le){const Ie=new Date(0);return Ie.setFullYear(X,Pe,le),Ie.setHours(0,0,0),Ie}function Bt(X,Pe){const le=function di(X){return(0,g.H5H)(X)[g.KH2.LocaleId]}(X);if(Tr[le]=Tr[le]||{},Tr[le][Pe])return Tr[le][Pe];let Ie="";switch(Pe){case"shortDate":Ie=nt(X,Wt.Short);break;case"mediumDate":Ie=nt(X,Wt.Medium);break;case"longDate":Ie=nt(X,Wt.Long);break;case"fullDate":Ie=nt(X,Wt.Full);break;case"shortTime":Ie=ht(X,Wt.Short);break;case"mediumTime":Ie=ht(X,Wt.Medium);break;case"longTime":Ie=ht(X,Wt.Long);break;case"fullTime":Ie=ht(X,Wt.Full);break;case"short":const Ot=Bt(X,"shortTime"),bn=Bt(X,"shortDate");Ie=hn(Je(X,Wt.Short),[Ot,bn]);break;case"medium":const Pn=Bt(X,"mediumTime"),Oi=Bt(X,"mediumDate");Ie=hn(Je(X,Wt.Medium),[Pn,Oi]);break;case"long":const lo=Bt(X,"longTime"),_o=Bt(X,"longDate");Ie=hn(Je(X,Wt.Long),[lo,_o]);break;case"full":const Ds=Bt(X,"fullTime"),xr=Bt(X,"fullDate");Ie=hn(Je(X,Wt.Full),[Ds,xr])}return Ie&&(Tr[le][Pe]=Ie),Ie}function hn(X,Pe){return Pe&&(X=X.replace(/\{([^}]+)}/g,function(le,Ie){return null!=Pe&&Ie in Pe?Pe[Ie]:le})),X}function Mn(X,Pe,le="-",Ie,Ot){let bn="";(X<0||Ot&&X<=0)&&(Ot?X=1-X:(X=-X,bn=le));let Pn=String(X);for(;Pn.length0||Oi>-le)&&(Oi+=le),X===Qn.Hours)0===Oi&&-12===le&&(Oi=12);else if(X===Qn.FractionalSeconds)return function Vi(X,Pe){return Mn(X,3).substring(0,Pe)}(Oi,Pe);const lo=Ae(Pn,wn.MinusSign);return Mn(Oi,Pe,lo,Ie,Ot)}}function dr(X,Pe,le=dt.Format,Ie=!1){return function(Ot,bn){return function no(X,Pe,le,Ie,Ot,bn){switch(le){case fi.Months:return function $i(X,Pe,le){const Ie=(0,g.H5H)(X),bn=xn([Ie[g.KH2.MonthsFormat],Ie[g.KH2.MonthsStandalone]],Pe);return xn(bn,le)}(Pe,Ot,Ie)[X.getMonth()];case fi.Days:return function Li(X,Pe,le){const Ie=(0,g.H5H)(X),bn=xn([Ie[g.KH2.DaysFormat],Ie[g.KH2.DaysStandalone]],Pe);return xn(bn,le)}(Pe,Ot,Ie)[X.getDay()];case fi.DayPeriods:const Pn=X.getHours(),Oi=X.getMinutes();if(bn){const _o=function rt(X){const Pe=(0,g.H5H)(X);return zt(Pe),(Pe[g.KH2.ExtraData][2]||[]).map(Ie=>"string"==typeof Ie?In(Ie):[In(Ie[0]),In(Ie[1])])}(Pe),Ds=function xt(X,Pe,le){const Ie=(0,g.H5H)(X);zt(Ie);const bn=xn([Ie[g.KH2.ExtraData][0],Ie[g.KH2.ExtraData][1]],Pe)||[];return xn(bn,le)||[]}(Pe,Ot,Ie),xr=_o.findIndex(ko=>{if(Array.isArray(ko)){const[ms,ha]=ko,Fa=Pn>=ms.hours&&Oi>=ms.minutes,mc=Pn0?Math.floor(Ot/60):Math.ceil(Ot/60);switch(X){case On.Short:return(Ot>=0?"+":"")+Mn(Pn,2,bn)+Mn(Math.abs(Ot%60),2,bn);case On.ShortGMT:return"GMT"+(Ot>=0?"+":"")+Mn(Pn,1,bn);case On.Long:return"GMT"+(Ot>=0?"+":"")+Mn(Pn,2,bn)+":"+Mn(Math.abs(Ot%60),2,bn);case On.Extended:return 0===Ie?"Z":(Ot>=0?"+":"")+Mn(Pn,2,bn)+":"+Mn(Math.abs(Ot%60),2,bn);default:throw new Error(`Unknown zone width "${X}"`)}}}const Ki=0,Ys=4;function zo(X){return Mt(X.getFullYear(),X.getMonth(),X.getDate()+(Ys-X.getDay()))}function qa(X,Pe=!1){return function(le,Ie){let Ot;if(Pe){const bn=new Date(le.getFullYear(),le.getMonth(),1).getDay()-1,Pn=le.getDate();Ot=1+Math.floor((Pn+bn)/7)}else{const bn=zo(le),Pn=function so(X){const Pe=Mt(X,Ki,1).getDay();return Mt(X,0,1+(Pe<=Ys?Ys:Ys+7)-Pe)}(bn.getFullYear()),Oi=bn.getTime()-Pn.getTime();Ot=1+Math.round(Oi/6048e5)}return Mn(Ot,X,Ae(Ie,wn.MinusSign))}}function xc(X,Pe=!1){return function(le,Ie){return Mn(zo(le).getFullYear(),X,Ae(Ie,wn.MinusSign),Pe)}}const mo={};function io(X,Pe){X=X.replace(/:/g,"");const le=Date.parse("Jan 01, 1970 00:00:00 "+X)/6e4;return isNaN(le)?Pe:le}function It(X){return X instanceof Date&&!isNaN(X.valueOf())}function Vr(X,Pe){Pe=encodeURIComponent(Pe);for(const le of X.split(";")){const Ie=le.indexOf("="),[Ot,bn]=-1==Ie?[le,""]:[le.slice(0,Ie),le.slice(Ie+1)];if(Ot.trim()===Pe)return decodeURIComponent(bn)}return null}const Gs=/\s+/,Fr=[];let is=(()=>{class X{constructor(le,Ie,Ot,bn){this._iterableDiffers=le,this._keyValueDiffers=Ie,this._ngEl=Ot,this._renderer=bn,this.initialClasses=Fr,this.stateMap=new Map}set klass(le){this.initialClasses=null!=le?le.trim().split(Gs):Fr}set ngClass(le){this.rawClass="string"==typeof le?le.trim().split(Gs):le}ngDoCheck(){for(const Ie of this.initialClasses)this._updateState(Ie,!0);const le=this.rawClass;if(Array.isArray(le)||le instanceof Set)for(const Ie of le)this._updateState(Ie,!0);else if(null!=le)for(const Ie of Object.keys(le))this._updateState(Ie,!!le[Ie]);this._applyStateDiff()}_updateState(le,Ie){const Ot=this.stateMap.get(le);void 0!==Ot?(Ot.enabled!==Ie&&(Ot.changed=!0,Ot.enabled=Ie),Ot.touched=!0):this.stateMap.set(le,{enabled:Ie,changed:!0,touched:!0})}_applyStateDiff(){for(const le of this.stateMap){const Ie=le[0],Ot=le[1];Ot.changed?(this._toggleClass(Ie,Ot.enabled),Ot.changed=!1):Ot.touched||(Ot.enabled&&this._toggleClass(Ie,!1),this.stateMap.delete(Ie)),Ot.touched=!1}}_toggleClass(le,Ie){(le=le.trim()).length>0&&le.split(Gs).forEach(Ot=>{Ie?this._renderer.addClass(this._ngEl.nativeElement,Ot):this._renderer.removeClass(this._ngEl.nativeElement,Ot)})}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g._q3),g.rXU(g.MKu),g.rXU(g.aKT),g.rXU(g.sFG))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return X})(),Ro=(()=>{class X{constructor(le){this._viewContainerRef=le,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(le){return void 0!==le.ngComponentOutletNgModule||void 0!==le.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(le){return void 0!==le.ngComponentOutlet||void 0!==le.ngComponentOutletContent||void 0!==le.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(le)}ngOnChanges(le){if(this._needToReCreateComponentInstance(le)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const Ie=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(le)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,g.w6W)(this.ngComponentOutletNgModule,Zo(Ie)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(Zo(Ie)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:Ie,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const le of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(le,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(le){for(const[Ie,Ot]of this._inputsUsed)Ot?(le.setInput(Ie,this.ngComponentOutletInputs[Ie]),this._inputsUsed.set(Ie,!1)):(le.setInput(Ie,void 0),this._inputsUsed.delete(Ie))}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[g.OA$]})}return X})();function Zo(X){return X.get(g.Vns).injector}class Vo{constructor(Pe,le,Ie,Ot){this.$implicit=Pe,this.ngForOf=le,this.index=Ie,this.count=Ot}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qo=(()=>{class X{set ngForOf(le){this._ngForOf=le,this._ngForOfDirty=!0}set ngForTrackBy(le){this._trackByFn=le}get ngForTrackBy(){return this._trackByFn}constructor(le,Ie,Ot){this._viewContainer=le,this._template=Ie,this._differs=Ot,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(le){le&&(this._template=le)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const le=this._ngForOf;!this._differ&&le&&(this._differ=this._differs.find(le).create(this.ngForTrackBy))}if(this._differ){const le=this._differ.diff(this._ngForOf);le&&this._applyChanges(le)}}_applyChanges(le){const Ie=this._viewContainer;le.forEachOperation((Ot,bn,Pn)=>{if(null==Ot.previousIndex)Ie.createEmbeddedView(this._template,new Vo(Ot.item,this._ngForOf,-1,-1),null===Pn?void 0:Pn);else if(null==Pn)Ie.remove(null===bn?void 0:bn);else if(null!==bn){const Oi=Ie.get(bn);Ie.move(Oi,Pn),ea(Oi,Ot)}});for(let Ot=0,bn=Ie.length;Ot{ea(Ie.get(Ot.currentIndex),Ot)})}static ngTemplateContextGuard(le,Ie){return!0}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(g._q3))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return X})();function ea(X,Pe){X.context.$implicit=Pe.item}let xo=(()=>{class X{constructor(le,Ie){this._viewContainer=le,this._context=new ta,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ie}set ngIf(le){this._context.$implicit=this._context.ngIf=le,this._updateView()}set ngIfThen(le){Ps("ngIfThen",le),this._thenTemplateRef=le,this._thenViewRef=null,this._updateView()}set ngIfElse(le){Ps("ngIfElse",le),this._elseTemplateRef=le,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(le,Ie){return!0}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b),g.rXU(g.C4Q))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return X})();class ta{constructor(){this.$implicit=null,this.ngIf=null}}function Ps(X,Pe){if(Pe&&!Pe.createEmbeddedView)throw new Error(`${X} must be a TemplateRef, but received '${(0,g.Tbb)(Pe)}'.`)}class Ma{constructor(Pe,le){this._viewContainerRef=Pe,this._templateRef=le,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Pe){Pe&&!this._created?this.create():!Pe&&this._created&&this.destroy()}}let ws=(()=>{class X{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(le){this._ngSwitch=le,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(le){this._defaultViews.push(le)}_matchCase(le){const Ie=le==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ie,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ie}_updateDefaultCases(le){if(this._defaultViews.length>0&&le!==this._defaultUsed){this._defaultUsed=le;for(const Ie of this._defaultViews)Ie.enforceState(le)}}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return X})(),La=(()=>{class X{constructor(le,Ie,Ot){this.ngSwitch=Ot,Ot._addCase(),this._view=new Ma(le,Ie)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(ws,9))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return X})(),ao=(()=>{class X{constructor(le,Ie,Ot){Ot._addDefault(new Ma(le,Ie))}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(ws,9))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return X})(),pl=(()=>{class X{constructor(le,Ie,Ot){this._ngEl=le,this._differs=Ie,this._renderer=Ot,this._ngStyle=null,this._differ=null}set ngStyle(le){this._ngStyle=le,!this._differ&&le&&(this._differ=this._differs.find(le).create())}ngDoCheck(){if(this._differ){const le=this._differ.diff(this._ngStyle);le&&this._applyChanges(le)}}_setStyle(le,Ie){const[Ot,bn]=le.split("."),Pn=-1===Ot.indexOf("-")?void 0:g.czy.DashCase;null!=Ie?this._renderer.setStyle(this._ngEl.nativeElement,Ot,bn?`${Ie}${bn}`:Ie,Pn):this._renderer.removeStyle(this._ngEl.nativeElement,Ot,Pn)}_applyChanges(le){le.forEachRemovedItem(Ie=>this._setStyle(Ie.key,null)),le.forEachAddedItem(Ie=>this._setStyle(Ie.key,Ie.currentValue)),le.forEachChangedItem(Ie=>this._setStyle(Ie.key,Ie.currentValue))}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.aKT),g.rXU(g.MKu),g.rXU(g.sFG))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return X})(),na=(()=>{class X{constructor(le){this._viewContainerRef=le,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(le){if(le.ngTemplateOutlet||le.ngTemplateOutletInjector){const Ie=this._viewContainerRef;if(this._viewRef&&Ie.remove(Ie.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ot,ngTemplateOutletContext:bn,ngTemplateOutletInjector:Pn}=this;this._viewRef=Ie.createEmbeddedView(Ot,bn,Pn?{injector:Pn}:void 0)}else this._viewRef=null}else this._viewRef&&le.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.c1b))};static#t=this.\u0275dir=g.FsC({type:X,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]})}return X})();class ql{createSubscription(Pe,le){return(0,g.O8t)(()=>Pe.subscribe({next:le,error:Ie=>{throw Ie}}))}dispose(Pe){(0,g.O8t)(()=>Pe.unsubscribe())}}class go{createSubscription(Pe,le){return Pe.then(le,Ie=>{throw Ie})}dispose(Pe){}}const Xa=new go,Ws=new ql;let tl=(()=>{class X{constructor(le){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=le}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(le){return this._obj?le!==this._obj?(this._dispose(),this.transform(le)):this._latestValue:(le&&this._subscribe(le),this._latestValue)}_subscribe(le){this._obj=le,this._strategy=this._selectStrategy(le),this._subscription=this._strategy.createSubscription(le,Ie=>this._updateLatestValue(le,Ie))}_selectStrategy(le){if((0,g.jNT)(le))return Xa;if((0,g.zjR)(le))return Ws;throw function rc(X,Pe){return new g.wOt(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(le,Ie){le===this._obj&&(this._latestValue=Ie,this._ref.markForCheck())}static#e=this.\u0275fac=function(Ie){return new(Ie||X)(g.rXU(g.gRc,16))};static#t=this.\u0275pipe=g.EJ8({name:"async",type:X,pure:!1,standalone:!0})}return X})(),za=(()=>{class X{transform(le){return JSON.stringify(le,null,2)}static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275pipe=g.EJ8({name:"json",type:X,pure:!1,standalone:!0})}return X})(),ka=(()=>{class X{static#e=this.\u0275fac=function(Ie){return new(Ie||X)};static#t=this.\u0275mod=g.$C({type:X});static#n=this.\u0275inj=g.G2t({})}return X})();const Is="browser",wc="server";function rr(X){return X===Is}function ml(X){return X===wc}let Js=(()=>{class X{static#e=this.\u0275prov=(0,g.jDH)({token:X,providedIn:"root",factory:()=>new ua((0,g.KVO)(pe),window)})}return X})();class ua{constructor(Pe,le){this.document=Pe,this.window=le,this.offset=()=>[0,0]}setOffset(Pe){this.offset=Array.isArray(Pe)?()=>Pe:Pe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Pe){this.supportsScrolling()&&this.window.scrollTo(Pe[0],Pe[1])}scrollToAnchor(Pe){if(!this.supportsScrolling())return;const le=function da(X,Pe){const le=X.getElementById(Pe)||X.getElementsByName(Pe)[0];if(le)return le;if("function"==typeof X.createTreeWalker&&X.body&&"function"==typeof X.body.attachShadow){const Ie=X.createTreeWalker(X.body,NodeFilter.SHOW_ELEMENT);let Ot=Ie.currentNode;for(;Ot;){const bn=Ot.shadowRoot;if(bn){const Pn=bn.getElementById(Pe)||bn.querySelector(`[name="${Pe}"]`);if(Pn)return Pn}Ot=Ie.nextNode()}}return null}(this.document,Pe);le&&(this.scrollToElement(le),le.focus())}setHistoryScrollRestoration(Pe){this.supportsScrolling()&&(this.window.history.scrollRestoration=Pe)}scrollToElement(Pe){const le=Pe.getBoundingClientRect(),Ie=le.left+this.window.pageXOffset,Ot=le.top+this.window.pageYOffset,bn=this.offset();this.window.scrollTo(Ie-bn[0],Ot-bn[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class No{}},6409:(vn,J,F)=>{"use strict";F.d(J,{$R:()=>qa,Qq:()=>dn,b$:()=>xc});var g=F(2978),o=F(756),V=F(8399),oe=F(9406),De=F(4807),pe=F(8503),Ee=F(3527),be=F(6347),me=F(2831),Te=F(6610);class Ve{}class ze{}class vt{constructor(Tt){this.normalizedNames=new Map,this.lazyUpdate=null,Tt?"string"==typeof Tt?this.lazyInit=()=>{this.headers=new Map,Tt.split("\n").forEach(Kt=>{const Vn=Kt.indexOf(":");if(Vn>0){const qn=Kt.slice(0,Vn),pi=qn.toLowerCase(),ti=Kt.slice(Vn+1).trim();this.maybeSetNormalizedName(qn,pi),this.headers.has(pi)?this.headers.get(pi).push(ti):this.headers.set(pi,[ti])}})}:typeof Headers<"u"&&Tt instanceof Headers?(this.headers=new Map,Tt.forEach((Kt,Vn)=>{this.setHeaderEntries(Vn,Kt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Tt).forEach(([Kt,Vn])=>{this.setHeaderEntries(Kt,Vn)})}:this.headers=new Map}has(Tt){return this.init(),this.headers.has(Tt.toLowerCase())}get(Tt){this.init();const Kt=this.headers.get(Tt.toLowerCase());return Kt&&Kt.length>0?Kt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Tt){return this.init(),this.headers.get(Tt.toLowerCase())||null}append(Tt,Kt){return this.clone({name:Tt,value:Kt,op:"a"})}set(Tt,Kt){return this.clone({name:Tt,value:Kt,op:"s"})}delete(Tt,Kt){return this.clone({name:Tt,value:Kt,op:"d"})}maybeSetNormalizedName(Tt,Kt){this.normalizedNames.has(Kt)||this.normalizedNames.set(Kt,Tt)}init(){this.lazyInit&&(this.lazyInit instanceof vt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Tt=>this.applyUpdate(Tt)),this.lazyUpdate=null))}copyFrom(Tt){Tt.init(),Array.from(Tt.headers.keys()).forEach(Kt=>{this.headers.set(Kt,Tt.headers.get(Kt)),this.normalizedNames.set(Kt,Tt.normalizedNames.get(Kt))})}clone(Tt){const Kt=new vt;return Kt.lazyInit=this.lazyInit&&this.lazyInit instanceof vt?this.lazyInit:this,Kt.lazyUpdate=(this.lazyUpdate||[]).concat([Tt]),Kt}applyUpdate(Tt){const Kt=Tt.name.toLowerCase();switch(Tt.op){case"a":case"s":let Vn=Tt.value;if("string"==typeof Vn&&(Vn=[Vn]),0===Vn.length)return;this.maybeSetNormalizedName(Tt.name,Kt);const qn=("a"===Tt.op?this.headers.get(Kt):void 0)||[];qn.push(...Vn),this.headers.set(Kt,qn);break;case"d":const pi=Tt.value;if(pi){let ti=this.headers.get(Kt);if(!ti)return;ti=ti.filter(Ni=>-1===pi.indexOf(Ni)),0===ti.length?(this.headers.delete(Kt),this.normalizedNames.delete(Kt)):this.headers.set(Kt,ti)}else this.headers.delete(Kt),this.normalizedNames.delete(Kt)}}setHeaderEntries(Tt,Kt){const Vn=(Array.isArray(Kt)?Kt:[Kt]).map(pi=>pi.toString()),qn=Tt.toLowerCase();this.headers.set(qn,Vn),this.maybeSetNormalizedName(Tt,qn)}forEach(Tt){this.init(),Array.from(this.normalizedNames.keys()).forEach(Kt=>Tt(this.normalizedNames.get(Kt),this.headers.get(Kt)))}}class tt{encodeKey(Tt){return at(Tt)}encodeValue(Tt){return at(Tt)}decodeKey(Tt){return decodeURIComponent(Tt)}decodeValue(Tt){return decodeURIComponent(Tt)}}const Fe=/%(\d[a-f0-9])/gi,_t={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function at(tn){return encodeURIComponent(tn).replace(Fe,(Tt,Kt)=>_t[Kt]??Tt)}function Be(tn){return`${tn}`}class he{constructor(Tt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Tt.encoder||new tt,Tt.fromString){if(Tt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(tn,Tt){const Kt=new Map;return tn.length>0&&tn.replace(/^\?/,"").split("&").forEach(qn=>{const pi=qn.indexOf("="),[ti,Ni]=-1==pi?[Tt.decodeKey(qn),""]:[Tt.decodeKey(qn.slice(0,pi)),Tt.decodeValue(qn.slice(pi+1))],ii=Kt.get(ti)||[];ii.push(Ni),Kt.set(ti,ii)}),Kt}(Tt.fromString,this.encoder)}else Tt.fromObject?(this.map=new Map,Object.keys(Tt.fromObject).forEach(Kt=>{const Vn=Tt.fromObject[Kt],qn=Array.isArray(Vn)?Vn.map(Be):[Be(Vn)];this.map.set(Kt,qn)})):this.map=null}has(Tt){return this.init(),this.map.has(Tt)}get(Tt){this.init();const Kt=this.map.get(Tt);return Kt?Kt[0]:null}getAll(Tt){return this.init(),this.map.get(Tt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Tt,Kt){return this.clone({param:Tt,value:Kt,op:"a"})}appendAll(Tt){const Kt=[];return Object.keys(Tt).forEach(Vn=>{const qn=Tt[Vn];Array.isArray(qn)?qn.forEach(pi=>{Kt.push({param:Vn,value:pi,op:"a"})}):Kt.push({param:Vn,value:qn,op:"a"})}),this.clone(Kt)}set(Tt,Kt){return this.clone({param:Tt,value:Kt,op:"s"})}delete(Tt,Kt){return this.clone({param:Tt,value:Kt,op:"d"})}toString(){return this.init(),this.keys().map(Tt=>{const Kt=this.encoder.encodeKey(Tt);return this.map.get(Tt).map(Vn=>Kt+"="+this.encoder.encodeValue(Vn)).join("&")}).filter(Tt=>""!==Tt).join("&")}clone(Tt){const Kt=new he({encoder:this.encoder});return Kt.cloneFrom=this.cloneFrom||this,Kt.updates=(this.updates||[]).concat(Tt),Kt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Tt=>this.map.set(Tt,this.cloneFrom.map.get(Tt))),this.updates.forEach(Tt=>{switch(Tt.op){case"a":case"s":const Kt=("a"===Tt.op?this.map.get(Tt.param):void 0)||[];Kt.push(Be(Tt.value)),this.map.set(Tt.param,Kt);break;case"d":if(void 0===Tt.value){this.map.delete(Tt.param);break}{let Vn=this.map.get(Tt.param)||[];const qn=Vn.indexOf(Be(Tt.value));-1!==qn&&Vn.splice(qn,1),Vn.length>0?this.map.set(Tt.param,Vn):this.map.delete(Tt.param)}}}),this.cloneFrom=this.updates=null)}}class Se{constructor(){this.map=new Map}set(Tt,Kt){return this.map.set(Tt,Kt),this}get(Tt){return this.map.has(Tt)||this.map.set(Tt,Tt.defaultValue()),this.map.get(Tt)}delete(Tt){return this.map.delete(Tt),this}has(Tt){return this.map.has(Tt)}keys(){return this.map.keys()}}function dt(tn){return typeof ArrayBuffer<"u"&&tn instanceof ArrayBuffer}function jt(tn){return typeof Blob<"u"&&tn instanceof Blob}function Wt(tn){return typeof FormData<"u"&&tn instanceof FormData}class Wn{constructor(Tt,Kt,Vn,qn){let pi;if(this.url=Kt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Tt.toUpperCase(),function it(tn){switch(tn){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qn?(this.body=void 0!==Vn?Vn:null,pi=qn):pi=Vn,pi&&(this.reportProgress=!!pi.reportProgress,this.withCredentials=!!pi.withCredentials,pi.responseType&&(this.responseType=pi.responseType),pi.headers&&(this.headers=pi.headers),pi.context&&(this.context=pi.context),pi.params&&(this.params=pi.params)),this.headers||(this.headers=new vt),this.context||(this.context=new Se),this.params){const ti=this.params.toString();if(0===ti.length)this.urlWithParams=Kt;else{const Ni=Kt.indexOf("?");this.urlWithParams=Kt+(-1===Ni?"?":Nixs.set(ks,Tt.setHeaders[ks]),ii)),Tt.setParams&&(lr=Object.keys(Tt.setParams).reduce((xs,ks)=>xs.set(ks,Tt.setParams[ks]),lr)),new Wn(Kt,Vn,pi,{params:lr,headers:ii,context:Gr,reportProgress:Ni,responseType:qn,withCredentials:ti})}}var di=function(tn){return tn[tn.Sent=0]="Sent",tn[tn.UploadProgress=1]="UploadProgress",tn[tn.ResponseHeader=2]="ResponseHeader",tn[tn.DownloadProgress=3]="DownloadProgress",tn[tn.Response=4]="Response",tn[tn.User=5]="User",tn}(di||{});class ai{constructor(Tt,Kt=200,Vn="OK"){this.headers=Tt.headers||new vt,this.status=void 0!==Tt.status?Tt.status:Kt,this.statusText=Tt.statusText||Vn,this.url=Tt.url||null,this.ok=this.status>=200&&this.status<300}}class Li extends ai{constructor(Tt={}){super(Tt),this.type=di.ResponseHeader}clone(Tt={}){return new Li({headers:Tt.headers||this.headers,status:void 0!==Tt.status?Tt.status:this.status,statusText:Tt.statusText||this.statusText,url:Tt.url||this.url||void 0})}}class $i extends ai{constructor(Tt={}){super(Tt),this.type=di.Response,this.body=void 0!==Tt.body?Tt.body:null}clone(Tt={}){return new $i({body:void 0!==Tt.body?Tt.body:this.body,headers:Tt.headers||this.headers,status:void 0!==Tt.status?Tt.status:this.status,statusText:Tt.statusText||this.statusText,url:Tt.url||this.url||void 0})}}class Hr extends ai{constructor(Tt){super(Tt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Tt.url||"(unknown url)"}`:`Http failure response for ${Tt.url||"(unknown url)"}: ${Tt.status} ${Tt.statusText}`,this.error=Tt.error||null}}function ui(tn,Tt){return{body:Tt,headers:tn.headers,context:tn.context,observe:tn.observe,params:tn.params,reportProgress:tn.reportProgress,responseType:tn.responseType,withCredentials:tn.withCredentials}}let dn=(()=>{class tn{constructor(Kt){this.handler=Kt}request(Kt,Vn,qn={}){let pi;if(Kt instanceof Wn)pi=Kt;else{let ii,lr;ii=qn.headers instanceof vt?qn.headers:new vt(qn.headers),qn.params&&(lr=qn.params instanceof he?qn.params:new he({fromObject:qn.params})),pi=new Wn(Kt,Vn,void 0!==qn.body?qn.body:null,{headers:ii,context:qn.context,params:lr,reportProgress:qn.reportProgress,responseType:qn.responseType||"json",withCredentials:qn.withCredentials})}const ti=(0,o.of)(pi).pipe((0,De.H)(ii=>this.handler.handle(ii)));if(Kt instanceof Wn||"events"===qn.observe)return ti;const Ni=ti.pipe((0,pe.p)(ii=>ii instanceof $i));switch(qn.observe||"body"){case"body":switch(pi.responseType){case"arraybuffer":return Ni.pipe((0,Ee.T)(ii=>{if(null!==ii.body&&!(ii.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ii.body}));case"blob":return Ni.pipe((0,Ee.T)(ii=>{if(null!==ii.body&&!(ii.body instanceof Blob))throw new Error("Response is not a Blob.");return ii.body}));case"text":return Ni.pipe((0,Ee.T)(ii=>{if(null!==ii.body&&"string"!=typeof ii.body)throw new Error("Response is not a string.");return ii.body}));default:return Ni.pipe((0,Ee.T)(ii=>ii.body))}case"response":return Ni;default:throw new Error(`Unreachable: unhandled observe type ${qn.observe}}`)}}delete(Kt,Vn={}){return this.request("DELETE",Kt,Vn)}get(Kt,Vn={}){return this.request("GET",Kt,Vn)}head(Kt,Vn={}){return this.request("HEAD",Kt,Vn)}jsonp(Kt,Vn){return this.request("JSONP",Kt,{params:(new he).append(Vn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Kt,Vn={}){return this.request("OPTIONS",Kt,Vn)}patch(Kt,Vn,qn={}){return this.request("PATCH",Kt,ui(qn,Vn))}post(Kt,Vn,qn={}){return this.request("POST",Kt,ui(qn,Vn))}put(Kt,Vn,qn={}){return this.request("PUT",Kt,ui(qn,Vn))}static#e=this.\u0275fac=function(Vn){return new(Vn||tn)(g.KVO(Ve))};static#t=this.\u0275prov=g.jDH({token:tn,factory:tn.\u0275fac})}return tn})();function te(tn,Tt){return Tt(tn)}const rt=new g.nKC(""),xt=new g.nKC("");let xn=(()=>{class tn extends Ve{constructor(Kt,Vn){super(),this.backend=Kt,this.injector=Vn,this.chain=null,this.pendingTasks=(0,g.WQX)(g.$K3)}handle(Kt){if(null===this.chain){const qn=Array.from(new Set([...this.injector.get(rt),...this.injector.get(xt,[])]));this.chain=qn.reduceRight((pi,ti)=>function Ce(tn,Tt,Kt){return(Vn,qn)=>Kt.runInContext(()=>Tt(Vn,pi=>tn(pi,qn)))}(pi,ti,this.injector),te)}const Vn=this.pendingTasks.add();return this.chain(Kt,qn=>this.backend.handle(qn)).pipe((0,be.j)(()=>this.pendingTasks.remove(Vn)))}static#e=this.\u0275fac=function(Vn){return new(Vn||tn)(g.KVO(ze),g.KVO(g.uvJ))};static#t=this.\u0275prov=g.jDH({token:tn,factory:tn.\u0275fac})}return tn})();const Mt=/^\)\]\}',?\n/;let hn=(()=>{class tn{constructor(Kt){this.xhrFactory=Kt}handle(Kt){if("JSONP"===Kt.method)throw new g.wOt(-2800,!1);const Vn=this.xhrFactory;return(Vn.\u0275loadImpl?(0,V.H)(Vn.\u0275loadImpl()):(0,o.of)(null)).pipe((0,me.n)(()=>new oe.c(pi=>{const ti=Vn.build();if(ti.open(Kt.method,Kt.urlWithParams),Kt.withCredentials&&(ti.withCredentials=!0),Kt.headers.forEach((Fr,is)=>ti.setRequestHeader(Fr,is.join(","))),Kt.headers.has("Accept")||ti.setRequestHeader("Accept","application/json, text/plain, */*"),!Kt.headers.has("Content-Type")){const Fr=Kt.detectContentTypeHeader();null!==Fr&&ti.setRequestHeader("Content-Type",Fr)}if(Kt.responseType){const Fr=Kt.responseType.toLowerCase();ti.responseType="json"!==Fr?Fr:"text"}const Ni=Kt.serializeBody();let ii=null;const lr=()=>{if(null!==ii)return ii;const Fr=ti.statusText||"OK",is=new vt(ti.getAllResponseHeaders()),Ro=function Bt(tn){return"responseURL"in tn&&tn.responseURL?tn.responseURL:/^X-Request-URL:/m.test(tn.getAllResponseHeaders())?tn.getResponseHeader("X-Request-URL"):null}(ti)||Kt.url;return ii=new Li({headers:is,status:ti.status,statusText:Fr,url:Ro}),ii},Gr=()=>{let{headers:Fr,status:is,statusText:Ro,url:Zo}=lr(),Vo=null;204!==is&&(Vo=typeof ti.response>"u"?ti.responseText:ti.response),0===is&&(is=Vo?200:0);let qo=is>=200&&is<300;if("json"===Kt.responseType&&"string"==typeof Vo){const ea=Vo;Vo=Vo.replace(Mt,"");try{Vo=""!==Vo?JSON.parse(Vo):null}catch(oo){Vo=ea,qo&&(qo=!1,Vo={error:oo,text:Vo})}}qo?(pi.next(new $i({body:Vo,headers:Fr,status:is,statusText:Ro,url:Zo||void 0})),pi.complete()):pi.error(new Hr({error:Vo,headers:Fr,status:is,statusText:Ro,url:Zo||void 0}))},xs=Fr=>{const{url:is}=lr(),Ro=new Hr({error:Fr,status:ti.status||0,statusText:ti.statusText||"Unknown Error",url:is||void 0});pi.error(Ro)};let ks=!1;const Vr=Fr=>{ks||(pi.next(lr()),ks=!0);let is={type:di.DownloadProgress,loaded:Fr.loaded};Fr.lengthComputable&&(is.total=Fr.total),"text"===Kt.responseType&&ti.responseText&&(is.partialText=ti.responseText),pi.next(is)},Gs=Fr=>{let is={type:di.UploadProgress,loaded:Fr.loaded};Fr.lengthComputable&&(is.total=Fr.total),pi.next(is)};return ti.addEventListener("load",Gr),ti.addEventListener("error",xs),ti.addEventListener("timeout",xs),ti.addEventListener("abort",xs),Kt.reportProgress&&(ti.addEventListener("progress",Vr),null!==Ni&&ti.upload&&ti.upload.addEventListener("progress",Gs)),ti.send(Ni),pi.next({type:di.Sent}),()=>{ti.removeEventListener("error",xs),ti.removeEventListener("abort",xs),ti.removeEventListener("load",Gr),ti.removeEventListener("timeout",xs),Kt.reportProgress&&(ti.removeEventListener("progress",Vr),null!==Ni&&ti.upload&&ti.upload.removeEventListener("progress",Gs)),ti.readyState!==ti.DONE&&ti.abort()}})))}static#e=this.\u0275fac=function(Vn){return new(Vn||tn)(g.KVO(Te.N0))};static#t=this.\u0275prov=g.jDH({token:tn,factory:tn.\u0275fac})}return tn})();const Mn=new g.nKC("XSRF_ENABLED"),ni=new g.nKC("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),dr=new g.nKC("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class no{}let Jr=(()=>{class tn{constructor(Kt,Vn,qn){this.doc=Kt,this.platform=Vn,this.cookieName=qn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Kt=this.doc.cookie||"";return Kt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Te._b)(Kt,this.cookieName),this.lastCookieString=Kt),this.lastToken}static#e=this.\u0275fac=function(Vn){return new(Vn||tn)(g.KVO(Te.qQ),g.KVO(g.Agw),g.KVO(ni))};static#t=this.\u0275prov=g.jDH({token:tn,factory:tn.\u0275fac})}return tn})();function Ki(tn,Tt){const Kt=tn.url.toLowerCase();if(!(0,g.WQX)(Mn)||"GET"===tn.method||"HEAD"===tn.method||Kt.startsWith("http://")||Kt.startsWith("https://"))return Tt(tn);const Vn=(0,g.WQX)(no).getToken(),qn=(0,g.WQX)(dr);return null!=Vn&&!tn.headers.has(qn)&&(tn=tn.clone({headers:tn.headers.set(qn,Vn)})),Tt(tn)}var so=function(tn){return tn[tn.Interceptors=0]="Interceptors",tn[tn.LegacyInterceptors=1]="LegacyInterceptors",tn[tn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",tn[tn.NoXsrfProtection=3]="NoXsrfProtection",tn[tn.JsonpSupport=4]="JsonpSupport",tn[tn.RequestsMadeViaParent=5]="RequestsMadeViaParent",tn[tn.Fetch=6]="Fetch",tn}(so||{});function qa(...tn){const Tt=[dn,hn,xn,{provide:Ve,useExisting:xn},{provide:ze,useExisting:hn},{provide:rt,useValue:Ki,multi:!0},{provide:Mn,useValue:!0},{provide:no,useClass:Jr}];for(const Kt of tn)Tt.push(...Kt.\u0275providers);return(0,g.EmA)(Tt)}function xc(tn){return function zo(tn,Tt){return{\u0275kind:tn,\u0275providers:Tt}}(so.Interceptors,tn.map(Tt=>({provide:rt,useValue:Tt,multi:!0})))}},2978:(vn,J,F)=>{"use strict";F.d(J,{$C:()=>As,$GK:()=>On,$K3:()=>Fv,$MX:()=>W3,AVh:()=>P8,Aen:()=>$2,Af3:()=>If,Agw:()=>O6,BIS:()=>H6,BMQ:()=>c9,C4Q:()=>ah,C5r:()=>hw,Co$:()=>rv,DNE:()=>hC,EBC:()=>en,EFF:()=>FC,EJ8:()=>hc,EWP:()=>d1,EmA:()=>V6,FRM:()=>Ds,FsC:()=>Ka,G2t:()=>xt,GBs:()=>cw,GFd:()=>o9,H3F:()=>Dw,H5H:()=>P9,H8p:()=>W4,HJs:()=>IA,HbH:()=>zC,JRh:()=>A9,JZv:()=>hn,Jv_:()=>Hx,KH2:()=>Jf,KVO:()=>Pt,Kam:()=>y9,Kcf:()=>Nm,L39:()=>fM,LfX:()=>xn,Lme:()=>I9,MKu:()=>r_,Mr5:()=>Yf,NAR:()=>CC,NEm:()=>eA,NYb:()=>QV,Njj:()=>ld,O8t:()=>bn,OA$:()=>xr,OM3:()=>Q4,Ocv:()=>Vw,Ol2:()=>Lx,PLl:()=>Y3,QTQ:()=>t3,QZP:()=>Ny,Ql9:()=>uh,QuC:()=>Ao,R7$:()=>My,RV6:()=>g9,Rfq:()=>tt,RxE:()=>l8,SKi:()=>Ml,SdG:()=>x9,SpI:()=>lp,TL$:()=>Lm,TL3:()=>iA,Tbb:()=>ze,UyX:()=>dg,VBU:()=>go,Vns:()=>d0,Vt3:()=>r9,WHO:()=>Rw,WPN:()=>s4,WQX:()=>pn,XpG:()=>yC,Xx1:()=>Zh,Y8G:()=>rp,Z63:()=>U4,ZF7:()=>F4,ZvI:()=>WC,_9s:()=>Af,_q3:()=>i_,aKT:()=>Vf,aNF:()=>oh,abz:()=>r0,bIt:()=>b9,bMT:()=>gv,bVm:()=>sp,bc$:()=>Dg,bkB:()=>vu,c1b:()=>Z8,cWb:()=>_6,czy:()=>cf,e01:()=>hh,e5t:()=>b6,eBV:()=>au,eq3:()=>dv,eu8:()=>m9,gRc:()=>fA,gXe:()=>ti,giA:()=>Gv,h9k:()=>Bm,hnV:()=>Ew,iLQ:()=>d5,j41:()=>V8,jDH:()=>zt,jNT:()=>v9,joV:()=>Rc,k0s:()=>Wf,kS0:()=>fo,kdw:()=>Ta,l4e:()=>Ux,lJ4:()=>jx,lNU:()=>Be,l_i:()=>Fx,lsd:()=>lw,mGM:()=>aw,mq5:()=>B8,n$t:()=>E6,nI1:()=>Xx,nKC:()=>ni,naY:()=>uA,npT:()=>Um,nrm:()=>p9,o8S:()=>ph,osQ:()=>fg,pJN:()=>o4,plB:()=>r5,qSk:()=>Ou,qex:()=>A8,rOR:()=>Y8,rXU:()=>Lf,rcV:()=>ju,sFG:()=>N6,sMw:()=>fv,sZ2:()=>e8,sdS:()=>gC,tSv:()=>we,uvJ:()=>l2,vPA:()=>sd,w6W:()=>NT,wOt:()=>he,wni:()=>Ev,xGo:()=>tr,xc7:()=>E9,xe9:()=>c5,zJS:()=>hv,zZn:()=>P2,zcH:()=>yd,ziG:()=>Bx,zjR:()=>_9,zvX:()=>N9,zw6:()=>F1});var g=F(6104),o=F(2029),V=F(9406),oe=F(2489),De=F(5981),pe=F(756),Ee=F(7782),be=F(2831),me=F(3793);function Te(c){for(let l in c)if(c[l]===Te)return l;throw Error("Could not find renamed property on target object.")}function Ve(c,l){for(const f in l)l.hasOwnProperty(f)&&!c.hasOwnProperty(f)&&(c[f]=l[f])}function ze(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(ze).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return`${c.overriddenName}`;if(c.name)return`${c.name}`;const l=c.toString();if(null==l)return""+l;const f=l.indexOf("\n");return-1===f?l:l.substring(0,f)}function vt(c,l){return null==c||""===c?null===l?"":l:null==l||""===l?c:c+" "+l}const Re=Te({__forward_ref__:Te});function tt(c){return c.__forward_ref__=tt,c.toString=function(){return ze(this())},c}function de(c){return Fe(c)?c():c}function Fe(c){return"function"==typeof c&&c.hasOwnProperty(Re)&&c.__forward_ref__===tt}function _t(c){return c&&!!c.\u0275providers}const Be="https://g.co/ng/security#xss";class he extends Error{constructor(l,f){super(function He(c,l){return`NG0${Math.abs(c)}${l?": "+l:""}`}(l,f)),this.code=l}}function Se(c){return"string"==typeof c?c:null==c?"":String(c)}function wn(c,l){throw new he(-201,!1)}function Ze(c,l){null==c&&function H(c,l,f,v){throw new Error(`ASSERTION ERROR: ${c}`+(null==v?"":` [Expected=> ${f} ${v} ${l} <=Actual]`))}(l,c,null,"!=")}function zt(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}function xt(c){return{providers:c.providers||[],imports:c.imports||[]}}function Gt(c){return In(c,ci)||In(c,Tr)}function xn(c){return null!==Gt(c)}function In(c,l){return c.hasOwnProperty(l)?c[l]:null}function or(c){return c&&(c.hasOwnProperty(Dr)||c.hasOwnProperty(cn))?c[Dr]:null}const ci=Te({\u0275prov:Te}),Dr=Te({\u0275inj:Te}),Tr=Te({ngInjectableDef:Te}),cn=Te({ngInjectorDef:Te});var On=function(c){return c[c.Default=0]="Default",c[c.Host=1]="Host",c[c.Self=2]="Self",c[c.SkipSelf=4]="SkipSelf",c[c.Optional=8]="Optional",c}(On||{});let Qn;function fi(){return Qn}function qe(c){const l=Qn;return Qn=c,l}function Mt(c,l,f){const v=Gt(c);return v&&"root"==v.providedIn?void 0===v.value?v.value=v.factory():v.value:f&On.Optional?null:void 0!==l?l:void wn(ze(c))}const hn=globalThis;class ni{constructor(l,f){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof f?this.__NG_ELEMENT_ID__=f:void 0!==f&&(this.\u0275prov=zt({token:this,providedIn:f.providedIn||"root",factory:f.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ss={},io="__NG_DI_FLAG__",Wo="ngTempTokenPath",jn=/\n/gm,It="__source";let Jt;function yt(c){const l=Jt;return Jt=c,l}function ft(c,l=On.Default){if(void 0===Jt)throw new he(-203,!1);return null===Jt?Mt(c,void 0,l):Jt.get(c,l&On.Optional?null:void 0,l)}function Pt(c,l=On.Default){return(fi()||ft)(de(c),l)}function pn(c,l=On.Default){return Pt(c,Di(l))}function Di(c){return typeof c>"u"||"number"==typeof c?c:0|(c.optional&&8)|(c.host&&1)|(c.self&&2)|(c.skipSelf&&4)}function nr(c){const l=[];for(let f=0;fl){L=k-1;break}}}for(;kk?"":C[St+1].toLowerCase();const Sn=8&v?ln:null;if(Sn&&-1!==is(Sn,_e,0)||2&v&&_e!==ln){if(ws(v))return!1;L=!0}}}}else{if(!L&&!ws(v)&&!ws(Y))return!1;if(L&&ws(Y))continue;L=!1,v=Y|1&v}}return ws(v)||L}function ws(c){return 0==(1&c)}function La(c,l,f,v){if(null===l)return-1;let C=0;if(v||!f){let k=!1;for(;C-1)for(f++;f0?'="'+U+'"':"")+"]"}else 8&v?C+="."+L:4&v&&(C+=" "+L);else""!==C&&!ws(L)&&(l+=na(k,C),C=""),v=L,k=k||!ws(v);f++}return""!==C&&(l+=na(k,C)),l}function go(c){return qn(()=>{const l=Ya(c),f={...l,decls:c.decls,vars:c.vars,template:c.template,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,onPush:c.changeDetection===pi.OnPush,directiveDefs:null,pipeDefs:null,dependencies:l.standalone&&c.dependencies||null,getStandaloneInjector:null,signals:c.signals??!1,data:c.data||{},encapsulation:c.encapsulation||ti.Emulated,styles:c.styles||ii,_:null,schemas:c.schemas||null,tView:null,id:""};za(f);const v=c.dependencies;return f.directiveDefs=qs(v,!1),f.pipeDefs=qs(v,!0),f.id=function il(c){let l=0;const f=[c.selectors,c.ngContentSelectors,c.hostVars,c.hostAttrs,c.consts,c.vars,c.decls,c.encapsulation,c.standalone,c.signals,c.exportAs,JSON.stringify(c.inputs),JSON.stringify(c.outputs),Object.getOwnPropertyNames(c.type.prototype),!!c.contentQueries,!!c.viewQuery].join("|");for(const C of f)l=Math.imul(31,l)+C.charCodeAt(0)<<0;return l+=2147483648,"c"+l}(f),f})}function Ws(c){return Xr(c)||Br(c)}function tl(c){return null!==c}function As(c){return qn(()=>({type:c.type,bootstrap:c.bootstrap||ii,declarations:c.declarations||ii,imports:c.imports||ii,exports:c.exports||ii,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null}))}function nl(c,l){if(null==c)return Ni;const f={};for(const v in c)if(c.hasOwnProperty(v)){let C=c[v],k=C;Array.isArray(C)&&(k=C[1],C=C[0]),f[C]=v,l&&(l[C]=k)}return f}function Ka(c){return qn(()=>{const l=Ya(c);return za(l),l})}function hc(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,standalone:!0===c.standalone,onDestroy:c.type.prototype.ngOnDestroy||null}}function Xr(c){return c[lr]||null}function Br(c){return c[Gr]||null}function fr(c){return c[xs]||null}function Ao(c){const l=Xr(c)||Br(c)||fr(c);return null!==l&&l.standalone}function ca(c,l){const f=c[ks]||null;if(!f&&!0===l)throw new Error(`Type ${ze(c)} does not have '\u0275mod' property.`);return f}function Ya(c){const l={};return{type:c.type,providersResolver:null,factory:null,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:l,inputTransforms:null,inputConfig:c.inputs||Ni,exportAs:c.exportAs||null,standalone:!0===c.standalone,signals:!0===c.signals,selectors:c.selectors||ii,viewQuery:c.viewQuery||null,features:c.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:nl(c.inputs,l),outputs:nl(c.outputs)}}function za(c){c.features?.forEach(l=>l(c))}function qs(c,l){if(!c)return null;const f=l?fr:Ws;return()=>("function"==typeof c?c():c).map(v=>f(v)).filter(tl)}const Wr=0,yi=1,Kn=2,ar=3,Sa=4,Mo=5,ns=6,ka=7,Is=8,wc=9,Es=10,ur=11,rr=12,ml=13,Lc=14,Qs=15,la=16,Js=17,ua=18,da=19,gl=20,No=21,ia=22,zc=23,Hl=24,rs=25,Ll=1,Wc=2,Lr=7,Ra=9,Ea=11;function Na(c){return Array.isArray(c)&&"object"==typeof c[Ll]}function vs(c){return Array.isArray(c)&&!0===c[Ll]}function Ja(c){return 0!=(4&c.flags)}function pc(c){return c.componentOffset>-1}function zl(c){return 1==(1&c.flags)}function co(c){return!!c.template}function vl(c){return 0!=(512&c[Kn])}function So(c,l){return c.hasOwnProperty(Vr)?c[Vr]:null}const Pa=Symbol("SIGNAL");function ja(c,l){return(null===c||"object"!=typeof c)&&Object.is(c,l)}let Os=null,rl=!1;function ba(c){const l=Os;return Os=c,l}const Mc={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function xu(c){if(rl)throw new Error("");if(null===Os)return;const l=Os.nextProducerIndex++;sl(Os),lc.nextProducerIndex;)c.producerNode.pop(),c.producerLastReadVersion.pop(),c.producerIndexOfThis.pop()}}function u1(c){sl(c);for(let l=0;l0}function sl(c){c.producerNode??=[],c.producerIndexOfThis??=[],c.producerLastReadVersion??=[]}function Su(c){c.liveConsumerNode??=[],c.liveConsumerIndexOfThis??=[]}function d1(c,l){const f=Object.create(C1);f.computation=c,l?.equal&&(f.equal=l.equal);const v=()=>{if(wu(f),xu(f),f.value===tu)throw f.error;return f.value};return v[Pa]=f,v}const ku=Symbol("UNSET"),bl=Symbol("COMPUTING"),tu=Symbol("ERRORED"),C1=(()=>({...Mc,value:ku,dirty:!0,error:null,equal:ja,producerMustRecompute:c=>c.value===ku||c.value===bl,producerRecomputeValue(c){if(c.value===bl)throw new Error("Detected cycle in computations.");const l=c.value;c.value=bl;const f=fa(c);let v;try{v=c.computation()}catch(C){v=tu,c.error=C}finally{e2(c,f)}l!==ku&&l!==tu&&v!==tu&&c.equal(l,v)?c.value=l:(c.value=v,c.version++)}}))();let nu=function Sc(){throw new Error};function Eu(){nu()}let iu=null;function sd(c,l){const f=Object.create(od);function v(){return xu(f),f.value}return f.value=c,l?.equal&&(f.equal=l.equal),v.set=Pe,v.update=le,v.mutate=Ie,v.asReadonly=Ot,v[Pa]=f,v}const od=(()=>({...Mc,equal:ja,readonlyFn:void 0}))();function X(c){c.version++,Mu(c),iu?.()}function Pe(c){const l=this[Pa];Rl()||Eu(),l.equal(l.value,c)||(l.value=c,X(l))}function le(c){Rl()||Eu(),Pe.call(this,c(this[Pa].value))}function Ie(c){const l=this[Pa];Rl()||Eu(),c(l.value),X(l)}function Ot(){const c=this[Pa];if(void 0===c.readonlyFn){const l=()=>this();l[Pa]=c,c.readonlyFn=l}return c.readonlyFn}function bn(c){const l=ba(null);try{return c()}finally{ba(l)}}const Oi=()=>{},lo=(()=>({...Mc,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:c=>{c.schedule(c.ref)},hasRun:!1,cleanupFn:Oi}))();class Ds{constructor(l,f,v){this.previousValue=l,this.currentValue=f,this.firstChange=v}isFirstChange(){return this.firstChange}}function xr(){return ko}function ko(c){return c.type.prototype.ngOnChanges&&(c.setInput=ha),ms}function ms(){const c=mc(this),l=c?.current;if(l){const f=c.previous;if(f===Ni)c.previous=l;else for(let v in l)f[v]=l[v];c.current=null,this.ngOnChanges(l)}}function ha(c,l,f,v){const C=this.declaredInputs[f],k=mc(c)||function kc(c,l){return c[Fa]=l}(c,{previous:Ni,current:null}),L=k.current||(k.current={}),U=k.previous,Y=U[C];L[C]=new Ds(Y&&Y.currentValue,l,U===Ni),c[v]=l}xr.ngInherit=!0;const Fa="__ngSimpleChanges__";function mc(c){return c[Fa]||null}const oc=function(c,l,f){},yl="svg";function $o(c){for(;Array.isArray(c);)c=c[Wr];return c}function ot(c,l){return $o(l[c])}function gc(c,l){return $o(l[c.index])}function R1(c,l){return c.data[l]}function k2(c,l){return c[l]}function cc(c,l){const f=l[c];return Na(f)?f:f[Wr]}function qc(c,l){return null==l?null:c[l]}function ru(c){c[Js]=0}function Wd(c){1024&c[Kn]||(c[Kn]|=1024,Nl(c,1))}function n2(c){1024&c[Kn]&&(c[Kn]&=-1025,Nl(c,-1))}function Nl(c,l){let f=c[ar];if(null===f)return;f[Mo]+=l;let v=f;for(f=f[ar];null!==f&&(1===l&&1===v[Mo]||-1===l&&0===v[Mo]);)f[Mo]+=l,v=f,f=f[ar]}function su(c,l){if(256==(256&c[Kn]))throw new he(911,!1);null===c[No]&&(c[No]=[]),c[No].push(l)}const Zr={lFrame:ls(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cd(){return Zr.bindingsEnabled}function E2(){return null!==Zr.skipHydrationRootTNode}function li(){return Zr.lFrame.lView}function Fs(){return Zr.lFrame.tView}function au(c){return Zr.lFrame.contextLView=c,c[Is]}function ld(c){return Zr.lFrame.contextLView=null,c}function Ec(){let c=w1();for(;null!==c&&64===c.type;)c=c.parent;return c}function w1(){return Zr.lFrame.currentTNode}function ol(c,l){const f=Zr.lFrame;f.currentTNode=c,f.isParent=l}function T2(){return Zr.lFrame.isParent}function V2(){Zr.lFrame.isParent=!1}function j(){const c=Zr.lFrame;let l=c.bindingRootIndex;return-1===l&&(l=c.bindingRootIndex=c.tView.bindingStartIndex),l}function ve(){return Zr.lFrame.bindingIndex++}function Xe(c){const l=Zr.lFrame,f=l.bindingIndex;return l.bindingIndex=l.bindingIndex+c,f}function B(c,l){const f=Zr.lFrame;f.bindingIndex=f.bindingRootIndex=c,q(l)}function q(c){Zr.lFrame.currentDirectiveIndex=c}function ae(c){const l=Zr.lFrame.currentDirectiveIndex;return-1===l?null:c[l]}function Ne(){return Zr.lFrame.currentQueryIndex}function bt(c){Zr.lFrame.currentQueryIndex=c}function an(c){const l=c[yi];return 2===l.type?l.declTNode:1===l.type?c[ns]:null}function un(c,l,f){if(f&On.SkipSelf){let C=l,k=c;for(;!(C=C.parent,null!==C||f&On.Host||(C=an(k),null===C||(k=k[Lc],10&C.type))););if(null===C)return!1;l=C,c=k}const v=Zr.lFrame=Ji();return v.currentTNode=l,v.lView=c,!0}function Ci(c){const l=Ji(),f=c[yi];Zr.lFrame=l,l.currentTNode=f.firstChild,l.lView=c,l.tView=f,l.contextLView=c,l.bindingIndex=f.bindingStartIndex,l.inI18n=!1}function Ji(){const c=Zr.lFrame,l=null===c?null:c.child;return null===l?ls(c):l}function ls(c){const l={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:c,child:null,inI18n:!1};return null!==c&&(c.child=l),l}function Ar(){const c=Zr.lFrame;return Zr.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}const Po=Ar;function al(){const c=Ar();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function Io(){return Zr.lFrame.selectedIndex}function vc(c){Zr.lFrame.selectedIndex=c}function bo(){const c=Zr.lFrame;return R1(c.tView,c.selectedIndex)}function Ou(){Zr.lFrame.currentNamespace=yl}function Rc(){!function D4(){Zr.lFrame.currentNamespace=null}()}let er=!0;function wr(){return er}function Mr(c){er=c}function Ba(c,l){for(let f=l.directiveStart,v=l.directiveEnd;f=v)break}else l[Y]<0&&(c[Js]+=65536),(U>13>16&&(3&c[Kn])===l&&(c[Kn]+=8192,Xd(U,k)):Xd(U,k)}const $a=-1;class jl{constructor(l,f,v){this.factory=l,this.resolving=!1,this.canSeeViewProviders=f,this.injectImpl=v}}function z3(c){return c!==$a}function dd(c){return 32767&c}function Lu(c,l){let f=function qh(c){return c>>16}(c),v=l;for(;f>0;)v=v[Lc],f--;return v}let Yd=!0;function fd(c){const l=Yd;return Yd=c,l}const R3=255,G0=5;let A2=0;const r2={};function Qd(c,l){const f=uu(c,l);if(-1!==f)return f;const v=l[yi];v.firstCreatePass&&(c.injectorIndex=l.length,hd(v.data,c),hd(l,null),hd(v.blueprint,null));const C=N3(c,l),k=c.injectorIndex;if(z3(C)){const L=dd(C),U=Lu(C,l),Y=U[yi].data;for(let _e=0;_e<8;_e++)l[k+_e]=U[L+_e]|Y[L+_e]}return l[k+8]=C,k}function hd(c,l){c.push(0,0,0,0,0,0,0,0,l)}function uu(c,l){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===l[c.injectorIndex+8]?-1:c.injectorIndex}function N3(c,l){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;let f=0,v=null,C=l;for(;null!==C;){if(v=Eo(C),null===v)return $a;if(f++,C=C[Lc],-1!==v.injectorIndex)return v.injectorIndex|f<<16}return $a}function Yl(c,l,f){!function zu(c,l,f){let v;"string"==typeof f?v=f.charCodeAt(0)||0:f.hasOwnProperty(Gs)&&(v=f[Gs]),null==v&&(v=f[Gs]=A2++);const C=v&R3;l.data[c+(C>>G0)]|=1<=0?l&R3:Zi:l}(f);if("function"==typeof k){if(!un(l,c,v))return v&On.Host?om(C,0,v):W0(l,f,v,C);try{let L;if(L=k(v),null!=L||v&On.Optional)return L;wn()}finally{Po()}}else if("number"==typeof k){let L=null,U=uu(c,l),Y=$a,_e=v&On.Host?l[Qs][ns]:null;for((-1===U||v&On.SkipSelf)&&(Y=-1===U?N3(c,l):l[U+8],Y!==$a&&Qe(v,!1)?(L=l[yi],U=dd(Y),l=Lu(Y,l)):U=-1);-1!==U;){const We=l[yi];if(ee(k,U,We.data)){const St=Le(U,l,f,L,v,_e);if(St!==r2)return St}Y=l[U+8],Y!==$a&&Qe(v,l[yi].data[U+8]===_e)&&ee(k,U,l)?(L=We,U=dd(Y),l=Lu(Y,l)):U=-1}}return C}function Le(c,l,f,v,C,k){const L=l[yi],U=L.data[c+8],We=p(U,L,f,null==v?pc(U)&&Yd:v!=L&&0!=(3&U.type),C&On.Host&&k===U);return null!==We?M(l,L,We,U):r2}function p(c,l,f,v,C){const k=c.providerIndexes,L=l.data,U=1048575&k,Y=c.directiveStart,We=k>>20,ln=C?U+We:c.directiveEnd;for(let Sn=v?U:U+We;Sn=Y&&Jn.type===f)return Sn}if(C){const Sn=L[Y];if(Sn&&co(Sn)&&Sn.type===f)return Y}return null}function M(c,l,f,v){let C=c[f];const k=l.data;if(function Kl(c){return c instanceof jl}(C)){const L=C;L.resolving&&function dt(c,l){const f=l?`. Dependency path: ${l.join(" > ")} > ${c}`:"";throw new he(-200,`Circular dependency in DI detected for ${c}${f}`)}(function it(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():Se(c)}(k[f]));const U=fd(L.canSeeViewProviders);L.resolving=!0;const _e=L.injectImpl?qe(L.injectImpl):null;un(c,v,On.Default);try{C=c[f]=L.factory(void 0,k,c,v),l.firstCreatePass&&f>=v.directiveStart&&function yo(c,l,f){const{ngOnChanges:v,ngOnInit:C,ngDoCheck:k}=l.type.prototype;if(v){const L=ko(l);(f.preOrderHooks??=[]).push(c,L),(f.preOrderCheckHooks??=[]).push(c,L)}C&&(f.preOrderHooks??=[]).push(0-c,C),k&&((f.preOrderHooks??=[]).push(c,k),(f.preOrderCheckHooks??=[]).push(c,k))}(f,k[f],l)}finally{null!==_e&&qe(_e),fd(U),L.resolving=!1,Po()}}return C}function ee(c,l,f){return!!(f[l+(c>>G0)]&1<{const l=c.prototype.constructor,f=l[Vr]||fs(l),v=Object.prototype;let C=Object.getPrototypeOf(c.prototype).constructor;for(;C&&C!==v;){const k=C[Vr]||fs(C);if(k&&k!==f)return k;C=Object.getPrototypeOf(C)}return k=>new k})}function fs(c){return Fe(c)?()=>{const l=fs(de(c));return l&&l()}:So(c)}function Eo(c){const l=c[yi],f=l.type;return 2===f?l.declTNode:1===f?c[ns]:null}function fo(c){return function sm(c,l){if("class"===l)return c.classes;if("style"===l)return c.styles;const f=c.attrs;if(f){const v=f.length;let C=0;for(;C{const v=function ec(c){return function(...f){if(c){const v=c(...f);for(const C in v)this[C]=v[C]}}}(l);function C(...k){if(this instanceof C)return v.apply(this,k),this;const L=new C(...k);return U.annotation=L,U;function U(Y,_e,We){const St=Y.hasOwnProperty(Do)?Y[Do]:Object.defineProperty(Y,Do,{value:[]})[Do];for(;St.length<=We;)St.push(null);return(St[We]=St[We]||[]).push(L),Y}}return f&&(C.prototype=Object.create(f.prototype)),C.prototype.ngMetadataName=c,C.annotationCls=C,C})}function Ru(c,l){c.forEach(f=>Array.isArray(f)?Ru(f,l):l(f))}function Yh(c,l,f){l>=c.length?c.push(f):c.splice(l,0,f)}function X0(c,l){return l>=c.length-1?c.pop():c.splice(l,1)[0]}function K0(c,l){const f=[];for(let v=0;v=0?c[1|v]=f:(v=~v,function Y0(c,l,f,v){let C=c.length;if(C==l)c.push(f,v);else if(1===C)c.push(v,c[0]),c[0]=f;else{for(C--,c.push(c[C-1],c[C]);C>l;)c[C]=c[C-2],C--;c[l]=f,c[l+1]=v}}(c,v,l,f)),v}function Qh(c,l){const f=P3(c,l);if(f>=0)return c[1|f]}function P3(c,l){return function A7(c,l,f){let v=0,C=c.length>>f;for(;C!==v;){const k=v+(C-v>>1),L=c[k<l?C=k:v=k+1}return~(C<|^->||--!>|)/g,_m="\u200b$1\u200b";const lf=new Map;let e4=0;const md="__ngContext__";function Ql(c,l){Na(l)?(c[md]=l[da],function ym(c){lf.set(c[da],c)}(l)):c[md]=l}let Mm;function Sm(c,l){return Mm(c,l)}function df(c){const l=c[ar];return vs(l)?l[ar]:l}function km(c){return Em(c[rr])}function a6(c){return Em(c[Sa])}function Em(c){for(;null!==c&&!vs(c);)c=c[Sa];return c}function H2(c,l,f,v,C){if(null!=v){let k,L=!1;vs(v)?k=v:Na(v)&&(L=!0,v=v[Wr]);const U=$o(v);0===c&&null!==f?null==C?Tm(l,f,U):du(l,f,U,C||null,!0):1===c&&null!==f?du(l,f,U,C||null,!0):2===c?function h6(c,l,f){const v=U3(c,l);v&&function $3(c,l,f,v){c.removeChild(l,f,v)}(c,v,l,f)}(l,U,L):3===c&&l.destroyNode(U),null!=k&&function og(c,l,f,v,C){const k=f[Lr];k!==$o(f)&&H2(l,c,v,k,C);for(let U=Ea;Ul.replace(n6,_m))}(l))}function ff(c,l,f){return c.createElement(l,f)}function Z7(c,l){const f=c[Ra],v=f.indexOf(l);n2(l),f.splice(v,1)}function B3(c,l){if(c.length<=Ea)return;const f=Ea+l,v=c[f];if(v){const C=v[la];null!==C&&C!==c&&Z7(C,v),l>0&&(c[f-1][Sa]=v[Sa]);const k=X0(c,Ea+l);!function K7(c,l){L2(c,l,l[ur],2,null,null),l[Wr]=null,l[ns]=null}(v[yi],v);const L=k[ua];null!==L&&L.detachView(k[yi]),v[ar]=null,v[Sa]=null,v[Kn]&=-129}return v}function hf(c,l){if(!(256&l[Kn])){const f=l[ur];l[zc]&&z1(l[zc]),l[Hl]&&z1(l[Hl]),f.destroyNode&&L2(c,l,f,3,null,null),function J7(c){let l=c[rr];if(!l)return l6(c[yi],c);for(;l;){let f=null;if(Na(l))f=l[rr];else{const v=l[Ea];v&&(f=v)}if(!f){for(;l&&!l[Sa]&&l!==c;)Na(l)&&l6(l[yi],l),l=l[ar];null===l&&(l=c),Na(l)&&l6(l[yi],l),f=l&&l[Sa]}l=f}}(l)}}function l6(c,l){if(!(256&l[Kn])){l[Kn]&=-129,l[Kn]|=256,function tg(c,l){let f;if(null!=c&&null!=(f=c.destroyHooks))for(let v=0;v=0?v[L]():v[-L].unsubscribe(),k+=2}else f[k].call(v[f[k+1]]);null!==v&&(l[ka]=null);const C=l[No];if(null!==C){l[No]=null;for(let k=0;k-1){const{encapsulation:k}=c.data[v.directiveStart+C];if(k===ti.None||k===ti.Emulated)return null}return gc(v,f)}}(c,l.parent,f)}function du(c,l,f,v,C){c.insertBefore(l,f,v,C)}function Tm(c,l,f){c.appendChild(l,f)}function d6(c,l,f,v,C){null!==v?du(c,l,f,v,C):Tm(c,l,f)}function U3(c,l){return c.parentNode(l)}function Vm(c,l,f){return ig(c,l,f)}let pf,p6,pu,G3,ig=function Am(c,l,f){return 40&c.type?gc(c,f):null};function jo(c,l,f,v){const C=u6(c,v,l),k=l[ur],U=Vm(v.parent||l[ns],v,l);if(null!=C)if(Array.isArray(f))for(let Y=0;Yc,createScript:c=>c,createScriptURL:c=>c})}catch{}return p6}()?.createHTML(c)||c}function Lm(c){pu=c}function N4(){if(void 0!==pu)return pu;if(typeof document<"u")return document;throw new he(210,!1)}function P4(){if(void 0===G3&&(G3=null,hn.trustedTypes))try{G3=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:c=>c,createScript:c=>c,createScriptURL:c=>c})}catch{}return G3}function zm(c){return P4()?.createHTML(c)||c}function v6(c){return P4()?.createScriptURL(c)||c}class gd{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Be})`}}class Rm extends gd{getTypeName(){return"HTML"}}class cg extends gd{getTypeName(){return"Style"}}class lg extends gd{getTypeName(){return"Script"}}class j4 extends gd{getTypeName(){return"URL"}}class ug extends gd{getTypeName(){return"ResourceURL"}}function ju(c){return c instanceof gd?c.changingThisBreaksApplicationSecurity:c}function F4(c,l){const f=function B4(c){return c instanceof gd&&c.getTypeName()||null}(c);if(null!=f&&f!==l){if("ResourceURL"===f&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${f} (see ${Be})`)}return f===l}function Nm(c){return new Rm(c)}function _6(c){return new cg(c)}function dg(c){return new lg(c)}function fg(c){return new j4(c)}function b6(c){return new ug(c)}class hg{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const f=(new window.DOMParser).parseFromString(R4(l),"text/html").body;return null===f?this.inertDocumentHelper.getInertBodyElement(l):(f.removeChild(f.firstChild),f)}catch{return null}}}class y6{constructor(l){this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(l){const f=this.inertDocument.createElement("template");return f.innerHTML=R4(l),f}}const pg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function W3(c){return(c=String(c)).match(pg)?c:"unsafe:"+c}function c2(c){const l={};for(const f of c.split(","))l[f]=!0;return l}function $4(...c){const l={};for(const f of c)for(const v in f)f.hasOwnProperty(v)&&(l[v]=!0);return l}const x6=c2("area,br,col,hr,img,wbr"),q3=c2("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),jm=c2("rp,rt"),Fu=$4(x6,$4(q3,c2("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),$4(jm,c2("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),$4(jm,q3)),w6=c2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),gf=$4(w6,c2("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),c2("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),gg=c2("script,style,template");class vg{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(l){let f=l.firstChild,v=!0;for(;f;)if(f.nodeType===Node.ELEMENT_NODE?v=this.startElement(f):f.nodeType===Node.TEXT_NODE?this.chars(f.nodeValue):this.sanitizedSomething=!0,v&&f.firstChild)f=f.firstChild;else for(;f;){f.nodeType===Node.ELEMENT_NODE&&this.endElement(f);let C=this.checkClobberedElement(f,f.nextSibling);if(C){f=C;break}f=this.checkClobberedElement(f,f.parentNode)}return this.buf.join("")}startElement(l){const f=l.nodeName.toLowerCase();if(!Fu.hasOwnProperty(f))return this.sanitizedSomething=!0,!gg.hasOwnProperty(f);this.buf.push("<"),this.buf.push(f);const v=l.attributes;for(let C=0;C"),!0}endElement(l){const f=l.nodeName.toLowerCase();Fu.hasOwnProperty(f)&&!x6.hasOwnProperty(f)&&(this.buf.push(""))}chars(l){this.buf.push(Fm(l))}checkClobberedElement(l,f){if(f&&(l.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return f}}const _g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bg=/([^\#-~ |!])/g;function Fm(c){return c.replace(/&/g,"&").replace(_g,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(bg,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let Bu;function Bm(c,l){let f=null;try{Bu=Bu||function Pm(c){const l=new y6(c);return function C6(){try{return!!(new window.DOMParser).parseFromString(R4(""),"text/html")}catch{return!1}}()?new hg(l):l}(c);let v=l?String(l):"";f=Bu.getInertBodyElement(v);let C=5,k=v;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,v=k,k=f.innerHTML,f=Bu.getInertBodyElement(v)}while(v!==k);return R4((new vg).sanitizeChildren(vf(f)||f))}finally{if(f){const v=vf(f)||f;for(;v.firstChild;)v.removeChild(v.firstChild)}}}function vf(c){return"content"in c&&function $m(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}var s4=function(c){return c[c.NONE=0]="NONE",c[c.HTML=1]="HTML",c[c.STYLE=2]="STYLE",c[c.SCRIPT=3]="SCRIPT",c[c.URL=4]="URL",c[c.RESOURCE_URL=5]="RESOURCE_URL",c}(s4||{});function Um(c){const l=X3();return l?zm(l.sanitize(s4.HTML,c)||""):F4(c,"HTML")?zm(ju(c)):Bm(N4(),Se(c))}function Gm(c){const l=X3();return l?l.sanitize(s4.URL,c)||"":F4(c,"URL")?ju(c):W3(Se(c))}function Wm(c){const l=X3();if(l)return v6(l.sanitize(s4.RESOURCE_URL,c)||"");if(F4(c,"ResourceURL"))return v6(ju(c));throw new he(904,!1)}function E6(c,l,f){return function yg(c,l){return"src"===l&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===l&&("base"===c||"link"===c)?Wm:Gm}(l,f)(c)}function X3(){const c=li();return c&&c[Es].sanitizer}const U4=new ni("ENVIRONMENT_INITIALIZER"),D6=new ni("INJECTOR",-1),Xm=new ni("INJECTOR_DEF_TYPES");class T6{get(l,f=Ss){if(f===Ss){const v=new Error(`NullInjectorError: No provider for ${ze(l)}!`);throw v.name="NullInjectorError",v}return f}}function V6(c){return{\u0275providers:c}}function wg(...c){return{\u0275providers:Km(0,c),\u0275fromNgModule:!0}}function Km(c,...l){const f=[],v=new Set;let C;const k=L=>{f.push(L)};return Ru(l,L=>{const U=L;_f(U,k,[],v)&&(C||=[],C.push(U))}),void 0!==C&&Ym(C,k),f}function Ym(c,l){for(let f=0;f{l(k,v)})}}function _f(c,l,f,v){if(!(c=de(c)))return!1;let C=null,k=or(c);const L=!k&&Xr(c);if(k||L){if(L&&!L.standalone)return!1;C=c}else{const Y=c.ngModule;if(k=or(Y),!k)return!1;C=Y}const U=v.has(C);if(L){if(U)return!1;if(v.add(C),L.dependencies){const Y="function"==typeof L.dependencies?L.dependencies():L.dependencies;for(const _e of Y)_f(_e,l,f,v)}}else{if(!k)return!1;{if(null!=k.imports&&!U){let _e;v.add(C);try{Ru(k.imports,We=>{_f(We,l,f,v)&&(_e||=[],_e.push(We))})}finally{}void 0!==_e&&Ym(_e,l)}if(!U){const _e=So(C)||(()=>new C);l({provide:C,useFactory:_e,deps:ii},C),l({provide:Xm,useValue:C,multi:!0},C),l({provide:U4,useValue:()=>Pt(C),multi:!0},C)}const Y=k.providers;if(null!=Y&&!U){const _e=c;Qm(Y,We=>{l(We,_e)})}}}return C!==c&&void 0!==c.providers}function Qm(c,l){for(let f of c)_t(f)&&(f=f.\u0275providers),Array.isArray(f)?Qm(f,l):l(f)}const Mg=Te({provide:String,useValue:Te});function Jm(c){return null!==c&&"object"==typeof c&&Mg in c}function R2(c){return"function"==typeof c}const W4=new ni("Set Injector scope."),N2={},q4={};let vd;function X4(){return void 0===vd&&(vd=new T6),vd}class l2{}class _d extends l2{get destroyed(){return this._destroyed}constructor(l,f,v,C){super(),this.parent=f,this.source=v,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yf(l,L=>this.processProvider(L)),this.records.set(D6,j1(void 0,this)),C.has("environment")&&this.records.set(l2,j1(void 0,this));const k=this.records.get(W4);null!=k&&"string"==typeof k.value&&this.scopes.add(k.value),this.injectorDefTypes=new Set(this.get(Xm.multi,ii,On.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();const l=this._onDestroyHooks;this._onDestroyHooks=[];for(const f of l)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(l){return this.assertNotDestroyed(),this._onDestroyHooks.push(l),()=>this.removeOnDestroy(l)}runInContext(l){this.assertNotDestroyed();const f=yt(this),v=qe(void 0);try{return l()}finally{yt(f),qe(v)}}get(l,f=Ss,v=On.Default){if(this.assertNotDestroyed(),l.hasOwnProperty(Fr))return l[Fr](this);v=Di(v);const k=yt(this),L=qe(void 0);try{if(!(v&On.SkipSelf)){let Y=this.records.get(l);if(void 0===Y){const _e=function I6(c){return"function"==typeof c||"object"==typeof c&&c instanceof ni}(l)&&Gt(l);Y=_e&&this.injectableDefInScope(_e)?j1(K3(l),N2):null,this.records.set(l,Y)}if(null!=Y)return this.hydrate(l,Y)}return(v&On.Self?X4():this.parent).get(l,f=v&On.Optional&&f===Ss?null:f)}catch(U){if("NullInjectorError"===U.name){if((U[Wo]=U[Wo]||[]).unshift(ze(l)),k)throw U;return function Kt(c,l,f,v){const C=c[Wo];throw l[It]&&C.unshift(l[It]),c.message=function Vn(c,l,f,v=null){c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.slice(2):c;let C=ze(l);if(Array.isArray(l))C=l.map(ze).join(" -> ");else if("object"==typeof l){let k=[];for(let L in l)if(l.hasOwnProperty(L)){let U=l[L];k.push(L+":"+("string"==typeof U?JSON.stringify(U):ze(U)))}C=`{${k.join(", ")}}`}return`${f}${v?"("+v+")":""}[${C}]: ${c.replace(jn,"\n ")}`}("\n"+c.message,C,f,v),c.ngTokenPath=C,c[Wo]=null,c}(U,l,"R3InjectorError",this.source)}throw U}finally{qe(L),yt(k)}}resolveInjectorInitializers(){const l=yt(this),f=qe(void 0);try{const C=this.get(U4.multi,ii,On.Self);for(const k of C)k()}finally{yt(l),qe(f)}}toString(){const l=[],f=this.records;for(const v of f.keys())l.push(ze(v));return`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new he(205,!1)}processProvider(l){let f=R2(l=de(l))?l:de(l&&l.provide);const v=function Zm(c){return Jm(c)?j1(void 0,c.useValue):j1(Jl(c),N2)}(l);if(R2(l)||!0!==l.multi)this.records.get(f);else{let C=this.records.get(f);C||(C=j1(void 0,N2,!0),C.factory=()=>nr(C.multi),this.records.set(f,C)),f=l,C.multi.push(l)}this.records.set(f,v)}hydrate(l,f){return f.value===N2&&(f.value=q4,f.value=f.factory()),"object"==typeof f.value&&f.value&&function Eg(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(f.value)&&this._ngOnDestroyHooks.add(f.value),f.value}injectableDefInScope(l){if(!l.providedIn)return!1;const f=de(l.providedIn);return"string"==typeof f?"any"===f||this.scopes.has(f):this.injectorDefTypes.has(f)}removeOnDestroy(l){const f=this._onDestroyHooks.indexOf(l);-1!==f&&this._onDestroyHooks.splice(f,1)}}function K3(c){const l=Gt(c),f=null!==l?l.factory:So(c);if(null!==f)return f;if(c instanceof ni)throw new he(204,!1);if(c instanceof Function)return function A6(c){const l=c.length;if(l>0)throw K0(l,"?"),new he(204,!1);const f=function xi(c){return c&&(c[ci]||c[Tr])||null}(c);return null!==f?()=>f.factory(c):()=>new c}(c);throw new he(204,!1)}function Jl(c,l,f){let v;if(R2(c)){const C=de(c);return So(C)||K3(C)}if(Jm(c))v=()=>de(c.useValue);else if(function G4(c){return!(!c||!c.useFactory)}(c))v=()=>c.useFactory(...nr(c.deps||[]));else if(function bf(c){return!(!c||!c.useExisting)}(c))v=()=>Pt(de(c.useExisting));else{const C=de(c&&(c.useClass||c.provide));if(!function kg(c){return!!c.deps}(c))return So(C)||K3(C);v=()=>new C(...nr(c.deps))}return v}function j1(c,l,f=!1){return{factory:c,value:l,multi:f?[]:void 0}}function yf(c,l){for(const f of c)Array.isArray(f)?yf(f,l):f&&_t(f)?yf(f.\u0275providers,l):l(f)}const e8=new ni("AppId",{providedIn:"root",factory:()=>ay}),ay="ng",Y3=new ni("Platform Initializer"),O6=new ni("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Dg=new ni("AnimationModuleType"),H6=new ni("CSP nonce",{providedIn:"root",factory:()=>N4().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function F1(c){return c}function L6(){const c=new o4;return"browser"===pn(O6)&&(c.store=function z6(c,l){const f=c.getElementById(l+"-state");if(f?.textContent)try{return JSON.parse(f.textContent)}catch(v){console.warn("Exception while restoring TransferState for app "+l,v)}return{}}(N4(),pn(e8))),c}let o4=(()=>{class c{constructor(){this.store={},this.onSerializeCallbacks={}}static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:L6});get(f,v){return void 0!==this.store[f]?this.store[f]:v}set(f,v){this.store[f]=v}remove(f){delete this.store[f]}hasKey(f){return this.store.hasOwnProperty(f)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(f,v){this.onSerializeCallbacks[f]=v}toJson(){for(const f in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(f))try{this.store[f]=this.onSerializeCallbacks[f]()}catch(v){console.warn("Exception in onSerialize callback: ",v)}return JSON.stringify(this.store).replace(/null;function Df(c,l,f=!1){return i8(c,l,f)}class dy{}class Vg{}class hy{resolveComponentFactory(l){throw function fy(c){const l=Error(`No component factory found for ${ze(c)}.`);return l.ngComponent=c,l}(l)}}let Q4=(()=>{class c{static#e=this.NULL=new hy}return c})();function py(){return n0(Ec(),li())}function n0(c,l){return new Vf(gc(c,l))}let Vf=(()=>{class c{constructor(f){this.nativeElement=f}static#e=this.__NG_ELEMENT_ID__=py}return c})();function J4(c){return c instanceof Vf?c.nativeElement:c}class Af{}let N6=(()=>{class c{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function gu(){const c=li(),f=cc(Ec().index,c);return(Na(f)?f:c)[ur]}()}return c})(),c8=(()=>{class c{static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:()=>null})}return c})();class l8{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const Ig=new l8("16.2.12"),P6={};function If(c){if(!fi()&&!function Un(){return Jt}())throw new he(-203,!1)}function f8(c,l=null,f=null,v){const C=B6(c,l,f,v);return C.resolveInjectorInitializers(),C}function B6(c,l=null,f=null,v,C=new Set){const k=[f||ii,wg(c)];return v=v||("object"==typeof c?void 0:ze(c)),new _d(k,l||X4(),v||null,C)}let P2=(()=>{class c{static#e=this.THROW_IF_NOT_FOUND=Ss;static#t=this.NULL=new T6;static create(f,v){if(Array.isArray(f))return f8({name:""},v,f,"");{const C=f.name??"";return f8({name:C},f.parent,f.providers,C)}}static#n=this.\u0275prov=zt({token:c,providedIn:"any",factory:()=>Pt(D6)});static#i=this.__NG_ELEMENT_ID__=-1}return c})();function $6(c){return c.ngOriginalError}class yd{constructor(){this._console=console}handleError(l){const f=this._findOriginalError(l);this._console.error("ERROR",l),f&&this._console.error("ORIGINAL ERROR",f)}_findOriginalError(l){let f=l&&$6(l);for(;f&&$6(f);)f=$6(f);return f||null}}let r0=(()=>{class c{static#e=this.__NG_ELEMENT_ID__=Rg;static#t=this.__NG_ENV_ID__=f=>f}return c})();class zg extends r0{constructor(l){super(),this._lView=l}onDestroy(l){return su(this._lView,l),()=>function Vu(c,l){if(null===c[No])return;const f=c[No].indexOf(l);-1!==f&&c[No].splice(f,1)}(this._lView,l)}}function Rg(){return new zg(li())}function U6(c){return l=>{setTimeout(c,void 0,l)}}const vu=class Ng extends g.B{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,f,v){let C=l,k=f||(()=>null),L=v;if(l&&"object"==typeof l){const Y=l;C=Y.next?.bind(Y),k=Y.error?.bind(Y),L=Y.complete?.bind(Y)}this.__isAsync&&(k=U6(k),C&&(C=U6(C)),L&&(L=U6(L)));const U=super.subscribe({next:C,error:k,complete:L});return l instanceof o.yU&&l.add(U),U}};function u4(...c){}class Ml{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:f=!1,shouldCoalesceRunChangeDetection:v=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vu(!1),this.onMicrotaskEmpty=new vu(!1),this.onStable=new vu(!1),this.onError=new vu(!1),typeof Zone>"u")throw new he(908,!1);Zone.assertZonePatched();const C=this;C._nesting=0,C._outer=C._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!v&&f,C.shouldCoalesceRunChangeDetection=v,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function e3(){const c="function"==typeof hn.requestAnimationFrame;let l=hn[c?"requestAnimationFrame":"setTimeout"],f=hn[c?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&l&&f){const v=l[Zone.__symbol__("OriginalDelegate")];v&&(l=v);const C=f[Zone.__symbol__("OriginalDelegate")];C&&(f=C)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function jg(c){const l=()=>{!function Pg(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(hn,()=>{c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{c.lastRequestAnimationFrameId=-1,W6(c),c.isCheckStableRunning=!0,p8(c),c.isCheckStableRunning=!1},void 0,()=>{},()=>{})),c.fakeTopEventTask.invoke()}),W6(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(f,v,C,k,L,U)=>{if(function G(c){return!(!Array.isArray(c)||1!==c.length)&&!0===c[0].data?.__ignore_ng_zone__}(U))return f.invokeTask(C,k,L,U);try{return E(c),f.invokeTask(C,k,L,U)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===k.type||c.shouldCoalesceRunChangeDetection)&&l(),O(c)}},onInvoke:(f,v,C,k,L,U,Y)=>{try{return E(c),f.invoke(C,k,L,U,Y)}finally{c.shouldCoalesceRunChangeDetection&&l(),O(c)}},onHasTask:(f,v,C,k)=>{f.hasTask(C,k),v===C&&("microTask"==k.change?(c._hasPendingMicrotasks=k.microTask,W6(c),p8(c)):"macroTask"==k.change&&(c.hasPendingMacrotasks=k.macroTask))},onHandleError:(f,v,C,k)=>(f.handleError(C,k),c.runOutsideAngular(()=>c.onError.emit(k)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ml.isInAngularZone())throw new he(909,!1)}static assertNotInAngularZone(){if(Ml.isInAngularZone())throw new he(909,!1)}run(l,f,v){return this._inner.run(l,f,v)}runTask(l,f,v,C){const k=this._inner,L=k.scheduleEventTask("NgZoneEvent: "+C,l,gy,u4,u4);try{return k.runTask(L,f,v)}finally{k.cancelTask(L)}}runGuarded(l,f,v){return this._inner.runGuarded(l,f,v)}runOutsideAngular(l){return this._outer.run(l)}}const gy={};function p8(c){if(0==c._nesting&&!c.hasPendingMicrotasks&&!c.isStable)try{c._nesting++,c.onMicrotaskEmpty.emit(null)}finally{if(c._nesting--,!c.hasPendingMicrotasks)try{c.runOutsideAngular(()=>c.onStable.emit(null))}finally{c.isStable=!0}}}function W6(c){c.hasPendingMicrotasks=!!(c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId)}function E(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function O(c){c._nesting--,p8(c)}const b=new ni("",{providedIn:"root",factory:w});function w(){const c=pn(Ml);let l=!0;const f=new V.c(C=>{l=c.isStable&&!c.hasPendingMacrotasks&&!c.hasPendingMicrotasks,c.runOutsideAngular(()=>{C.next(l),C.complete()})}),v=new V.c(C=>{let k;c.runOutsideAngular(()=>{k=c.onStable.subscribe(()=>{Ml.assertNotInAngularZone(),queueMicrotask(()=>{!l&&!c.hasPendingMacrotasks&&!c.hasPendingMicrotasks&&(l=!0,C.next(!0))})})});const L=c.onUnstable.subscribe(()=>{Ml.assertInAngularZone(),l&&(l=!1,c.runOutsideAngular(()=>{C.next(!1)}))});return()=>{k.unsubscribe(),L.unsubscribe()}});return(0,oe.h)(f,v.pipe((0,Ee.u)()))}function we(c){return c.ownerDocument.defaultView}function en(c){return c.ownerDocument}function Ai(c){return c instanceof Function?c():c}let Sl=(()=>{class c{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:()=>new c})}return c})();function j2(c){for(;c;){c[Kn]|=64;const l=df(c);if(vl(c)&&!l)return c;c=l}return null}const _y=new ni("",{providedIn:"root",factory:()=>!1});let g8=null;function $g(c,l){return c[l]??wy()}function Ug(c,l){const f=wy();f.producerNode?.length&&(c[l]=g8,f.lView=c,g8=Gg())}const xy={...Mc,consumerIsAlwaysLive:!0,consumerMarkedDirty:c=>{j2(c.lView)},lView:null};function Gg(){return Object.create(xy)}function wy(){return g8??=Gg(),g8}const Hs={};function My(c){Sy(Fs(),li(),Io()+c,!1)}function Sy(c,l,f,v){if(!v)if(3==(3&l[Kn])){const k=c.preOrderCheckHooks;null!==k&&Xc(l,k,f)}else{const k=c.preOrderHooks;null!==k&&Sr(l,k,0,f)}vc(f)}function Lf(c,l=On.Default){const f=li();return null===f?Pt(c,l):pd(Ec(),f,de(c),l)}function t3(){throw new Error("invalid")}function v8(c,l,f,v,C,k,L,U,Y,_e,We){const St=l.blueprint.slice();return St[Wr]=C,St[Kn]=140|v,(null!==_e||c&&2048&c[Kn])&&(St[Kn]|=2048),ru(St),St[ar]=St[Lc]=c,St[Is]=f,St[Es]=L||c&&c[Es],St[ur]=U||c&&c[ur],St[wc]=Y||c&&c[wc]||null,St[ns]=k,St[da]=function bm(){return e4++}(),St[ia]=We,St[gl]=_e,St[Qs]=2==l.type?c[Qs]:St,St}function zf(c,l,f,v,C){let k=c.data[l];if(null===k)k=function Wg(c,l,f,v,C){const k=w1(),L=T2(),Y=c.data[l]=function EE(c,l,f,v,C,k){let L=l?l.injectorIndex:-1,U=0;return E2()&&(U|=128),{type:f,index:v,insertBeforeIndex:null,injectorIndex:L,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:U,providerIndexes:0,value:C,attrs:k,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:l,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,L?k:k&&k.parent,f,l,v,C);return null===c.firstChild&&(c.firstChild=Y),null!==k&&(L?null==k.child&&null!==Y.parent&&(k.child=Y):null===k.next&&(k.next=Y,Y.prev=k)),Y}(c,l,f,v,C),function Ft(){return Zr.lFrame.inI18n}()&&(k.flags|=32);else if(64&k.type){k.type=f,k.value=v,k.attrs=C;const L=function D2(){const c=Zr.lFrame,l=c.currentTNode;return c.isParent?l:l.parent}();k.injectorIndex=null===L?-1:L.injectorIndex}return ol(k,!0),k}function q6(c,l,f,v){if(0===f)return-1;const C=l.length;for(let k=0;krs&&Sy(c,l,rs,!1),oc(U?2:0,C);const _e=U?k:null,We=fa(_e);try{null!==_e&&(_e.dirty=!1),f(v,C)}finally{e2(_e,We)}}finally{U&&null===l[zc]&&Ug(l,zc),vc(L),oc(U?3:1,C)}}function Rf(c,l,f){if(Ja(l)){const v=ba(null);try{const k=l.directiveEnd;for(let L=l.directiveStart;Lnull;function Yg(c,l,f,v){for(let C in c)if(c.hasOwnProperty(C)){f=null===f?{}:f;const k=c[C];null===v?Ty(f,l,C,k):v.hasOwnProperty(C)&&Ty(f,l,v[C],k)}return f}function Ty(c,l,f,v){c.hasOwnProperty(f)?c[f].push(l,v):c[f]=[l,v]}function F2(c,l,f,v,C,k,L,U){const Y=gc(l,f);let We,_e=l.inputs;!U&&null!=_e&&(We=_e[v])?(n9(c,f,We,v,C),pc(l)&&function VE(c,l){const f=cc(l,c);16&f[Kn]||(f[Kn]|=64)}(f,l.index)):3&l.type&&(v=function TE(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(v),C=null!=L?L(C,l.value||"",v):C,k.setProperty(Y,v,C))}function Qg(c,l,f,v){if(cd()){const C=null===v?null:{"":-1},k=function zE(c,l){const f=c.directiveRegistry;let v=null,C=null;if(f)for(let k=0;k0;){const f=c[--l];if("number"==typeof f&&f<0)return f}return 0})(L)!=U&&L.push(U),L.push(f,v,k)}}(c,l,v,q6(c,f,C.hostVars,Hs),C)}function xd(c,l,f,v,C,k){const L=gc(c,l);!function _8(c,l,f,v,C,k,L){if(null==k)c.removeAttribute(l,C,f);else{const U=null==L?Se(k):L(k,v||"",C);c.setAttribute(l,C,U,f)}}(l[ur],L,k,c.value,f,v,C)}function BE(c,l,f,v,C,k){const L=k[l];if(null!==L)for(let U=0;U{class c{constructor(){this.all=new Set,this.queue=new Map}create(f,v,C){const k=typeof Zone>"u"?null:Zone.current,L=function Pn(c,l,f){const v=Object.create(lo);f&&(v.consumerAllowSignalWrites=!0),v.fn=c,v.schedule=l;const C=L=>{v.cleanupFn=L};return v.ref={notify:()=>M2(v),run:()=>{if(v.dirty=!1,v.hasRun&&!u1(v))return;v.hasRun=!0;const L=fa(v);try{v.cleanupFn(),v.cleanupFn=Oi,v.fn(C)}finally{e2(v,L)}},cleanup:()=>v.cleanupFn()},v.ref}(f,_e=>{this.all.has(_e)&&this.queue.set(_e,k)},C);let U;this.all.add(L),L.notify();const Y=()=>{L.cleanup(),U?.(),this.all.delete(L),this.queue.delete(L)};return U=v?.onDestroy(Y),{destroy:Y}}flush(){if(0!==this.queue.size)for(const[f,v]of this.queue)this.queue.delete(f),v?v.run(()=>f.run()):f.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:()=>new c})}return c})();function Ny(c,l){!l?.injector&&If();const f=l?.injector??pn(P2),v=f.get(Ry),C=!0!==l?.manualCleanup?f.get(r0):null;return v.create(c,C,!!l?.allowSignalWrites)}function K6(c,l,f){let v=f?c.styles:null,C=f?c.classes:null,k=0;if(null!==l)for(let L=0;L0){Fy(c,1);const C=f.components;null!==C&&$y(c,C,1)}}function $y(c,l,f){for(let v=0;v-1&&(B3(l,v),X0(f,v))}this._attachedToViewContainer=!1}hf(this._lView[yi],this._lView)}onDestroy(l){su(this._lView,l)}markForCheck(){j2(this._cdRefInjectingView||this._lView)}detach(){this._lView[Kn]&=-129}reattach(){this._lView[Kn]|=128}detectChanges(){y8(this._lView[yi],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new he(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Q7(c,l){L2(c,l,l[ur],2,null,null)}(this._lView[yi],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new he(902,!1);this._appRef=l}}class YE extends Q6{constructor(l){super(l),this._view=l}detectChanges(){const l=this._view;y8(l[yi],l,l[Is],!1)}checkNoChanges(){}get context(){return null}}class Uy extends Q4{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const f=Xr(l);return new J6(f,this.ngModule)}}function Gy(c){const l=[];for(let f in c)c.hasOwnProperty(f)&&l.push({propName:c[f],templateName:f});return l}class JE{constructor(l,f){this.injector=l,this.parentInjector=f}get(l,f,v){v=Di(v);const C=this.injector.get(l,P6,v);return C!==P6||f===P6?C:this.parentInjector.get(l,f,v)}}class J6 extends Vg{get inputs(){const l=this.componentDef,f=l.inputTransforms,v=Gy(l.inputs);if(null!==f)for(const C of v)f.hasOwnProperty(C.propName)&&(C.transform=f[C.propName]);return v}get outputs(){return Gy(this.componentDef.outputs)}constructor(l,f){super(),this.componentDef=l,this.ngModule=f,this.componentType=l.type,this.selector=function rc(c){return c.map(Z1).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!f}create(l,f,v,C){let k=(C=C||this.ngModule)instanceof l2?C:C?.injector;k&&null!==this.componentDef.getStandaloneInjector&&(k=this.componentDef.getStandaloneInjector(k)||k);const L=k?new JE(l,k):l,U=L.get(Af,null);if(null===U)throw new he(407,!1);const St={rendererFactory:U,sanitizer:L.get(c8,null),effectManager:L.get(Ry,null),afterRenderEventManager:L.get(Sl,null)},ln=U.createRenderer(null,this.componentDef),Sn=this.componentDef.selectors[0][0]||"div",Jn=v?function wE(c,l,f,v){const k=v.get(_y,!1)||f===ti.ShadowDom,L=c.selectRootElement(l,k);return function ME(c){Kg(c)}(L),L}(ln,v,this.componentDef.encapsulation,L):ff(ln,Sn,function QE(c){const l=c.toLowerCase();return"svg"===l?yl:"math"===l?"math":null}(Sn)),jr=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let _i=null;null!==Jn&&(_i=Df(Jn,L,!0));const _s=Xg(0,null,null,1,0,null,null,null,null,null,null),eo=v8(null,_s,null,jr,null,null,St,ln,L,null,_i);let Va,$1;Ci(eo);try{const m4=this.componentDef;let h0,c_=null;m4.findHostDirectiveDefs?(h0=[],c_=new Map,m4.findHostDirectiveDefs(m4,h0,c_),h0.push(m4)):h0=[m4];const OA=function eD(c,l){const f=c[yi],v=rs;return c[v]=l,zf(f,v,2,"#host",null)}(eo,Jn),pM=function uc(c,l,f,v,C,k,L){const U=C[yi];!function C8(c,l,f,v){for(const C of c)l.mergedAttrs=qo(l.mergedAttrs,C.hostAttrs);null!==l.mergedAttrs&&(K6(l,l.mergedAttrs,!0),null!==f&&Hm(v,f,l))}(v,c,l,L);let Y=null;null!==l&&(Y=Df(l,C[wc]));const _e=k.rendererFactory.createRenderer(l,f);let We=16;f.signals?We=4096:f.onPush&&(We=64);const St=v8(C,Ey(f),null,We,C[c.index],c,k,_e,null,null,Y);return U.firstCreatePass&&Jg(U,c,v.length-1),Nf(C,St),C[c.index]=St}(OA,Jn,m4,h0,eo,St,ln);$1=R1(_s,rs),Jn&&function tD(c,l,f,v){if(v)Ro(c,f,["ng-version",Ig.full]);else{const{attrs:C,classes:k}=function ql(c){const l=[],f=[];let v=1,C=2;for(;v0&&hu(c,f,k.join(" "))}}(ln,m4,Jn,v),void 0!==f&&function nD(c,l,f){const v=c.projection=[];for(let C=0;C=0;v--){const C=c[v];C.hostVars=l+=C.hostVars,C.hostAttrs=qo(C.hostAttrs,f=qo(f,C.hostAttrs))}}(v)}function n3(c){return c===Ni?{}:c===ii?[]:c}function rD(c,l){const f=c.viewQuery;c.viewQuery=f?(v,C)=>{l(v,C),f(v,C)}:l}function sD(c,l){const f=c.contentQueries;c.contentQueries=f?(v,C,k)=>{l(v,C,k),f(v,C,k)}:l}function oD(c,l){const f=c.hostBindings;c.hostBindings=f?(v,C)=>{l(v,C),f(v,C)}:l}function o9(c){const l=c.inputConfig,f={};for(const v in l)if(l.hasOwnProperty(v)){const C=l[v];Array.isArray(C)&&C[2]&&(f[v]=C[2])}c.inputTransforms=f}function w8(c){return!!a9(c)&&(Array.isArray(c)||!(c instanceof Map)&&Symbol.iterator in c)}function a9(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function B2(c,l,f){return c[l]=f}function Z6(c,l){return c[l]}function Zl(c,l,f){return!Object.is(c[l],f)&&(c[l]=f,!0)}function a0(c,l,f,v){const C=Zl(c,l,f);return Zl(c,l+1,v)||C}function _u(c,l,f,v,C,k){const L=a0(c,l,f,v);return a0(c,l+2,C,k)||L}function c9(c,l,f,v){const C=li();return Zl(C,ve(),l)&&(Fs(),xd(bo(),C,c,l,f,v)),c9}function c0(c,l,f,v){return Zl(c,ve(),f)?l+Se(f)+v:Hs}function jf(c,l,f,v,C,k){const U=a0(c,function N(){return Zr.lFrame.bindingIndex}(),f,C);return Xe(2),U?l+Se(f)+v+Se(C)+k:Hs}function hC(c,l,f,v,C,k,L,U){const Y=li(),_e=Fs(),We=c+rs,St=_e.firstCreatePass?function fC(c,l,f,v,C,k,L,U,Y){const _e=l.consts,We=zf(l,c,4,L||null,qc(_e,U));Qg(l,f,We,qc(_e,Y)),Ba(l,We);const St=We.tView=Xg(2,We,v,C,k,l.directiveRegistry,l.pipeRegistry,null,l.schemas,_e,null);return null!==l.queries&&(l.queries.template(l,We),St.queries=l.queries.embeddedTView(We)),We}(We,_e,Y,l,f,v,C,k,L):_e.data[We];ol(St,!1);const ln=ip(_e,Y,St,c);wr()&&jo(_e,Y,ln,St),Ql(ln,Y),Nf(Y,Y[We]=Zg(ln,Y,ln,St)),zl(St)&&qg(_e,Y,St),null!=L&&X6(Y,St,U)}let ip=function pC(c,l,f,v){return Mr(!0),l[ur].createComment("")};function gC(c){return k2(function ud(){return Zr.lFrame.contextLView}(),rs+c)}function rp(c,l,f){const v=li();return Zl(v,ve(),l)&&F2(Fs(),bo(),v,c,l,v[ur],f,!1),rp}function h9(c,l,f,v,C){const L=C?"class":"style";n9(c,f,l.inputs[L],L,v)}function V8(c,l,f,v){const C=li(),k=Fs(),L=rs+c,U=C[ur],Y=k.firstCreatePass?function kD(c,l,f,v,C,k){const L=l.consts,Y=zf(l,c,2,v,qc(L,C));return Qg(l,f,Y,qc(L,k)),null!==Y.attrs&&K6(Y,Y.attrs,!1),null!==Y.mergedAttrs&&K6(Y,Y.mergedAttrs,!0),null!==l.queries&&l.queries.elementStart(l,Y),Y}(L,k,C,l,f,v):k.data[L],_e=Ms(k,C,Y,U,l,c);C[L]=_e;const We=zl(Y);return ol(Y,!0),Hm(U,_e,Y),32!=(32&Y.flags)&&wr()&&jo(k,C,_e,Y),0===function x1(){return Zr.lFrame.elementDepthCount}()&&Ql(_e,C),function f1(){Zr.lFrame.elementDepthCount++}(),We&&(qg(k,C,Y),Rf(k,Y,C)),null!==v&&X6(C,Y),V8}function Wf(){let c=Ec();T2()?V2():(c=c.parent,ol(c,!1));const l=c;(function Au(c){return Zr.skipHydrationRootTNode===c})(l)&&function Iu(){Zr.skipHydrationRootTNode=null}(),function ad(){Zr.lFrame.elementDepthCount--}();const f=Fs();return f.firstCreatePass&&(Ba(f,c),Ja(c)&&f.queries.elementEnd(c)),null!=l.classesWithoutHost&&function U0(c){return 0!=(8&c.flags)}(l)&&h9(f,l,li(),l.classesWithoutHost,!0),null!=l.stylesWithoutHost&&function Wh(c){return 0!=(16&c.flags)}(l)&&h9(f,l,li(),l.stylesWithoutHost,!1),Wf}function p9(c,l,f,v){return V8(c,l,f,v),Wf(),p9}let Ms=(c,l,f,v,C,k)=>(Mr(!0),ff(v,C,function M1(){return Zr.lFrame.currentNamespace}()));function A8(c,l,f){const v=li(),C=Fs(),k=c+rs,L=C.firstCreatePass?function vC(c,l,f,v,C){const k=l.consts,L=qc(k,v),U=zf(l,c,8,"ng-container",L);return null!==L&&K6(U,L,!0),Qg(l,f,U,qc(k,C)),null!==l.queries&&l.queries.elementStart(l,U),U}(k,C,v,l,f):C.data[k];ol(L,!0);const U=_C(C,v,L,c);return v[k]=U,wr()&&jo(C,v,U,L),Ql(U,v),zl(L)&&(qg(C,v,L),Rf(C,L,v)),null!=f&&X6(v,L),A8}function sp(){let c=Ec();const l=Fs();return T2()?V2():(c=c.parent,ol(c,!1)),l.firstCreatePass&&(Ba(l,c),Ja(c)&&l.queries.elementEnd(c)),sp}function m9(c,l,f){return A8(c,l,f),sp(),m9}let _C=(c,l,f,v)=>(Mr(!0),i4(l[ur],""));function g9(){return li()}function v9(c){return!!c&&"function"==typeof c.then}function _9(c){return!!c&&"function"==typeof c.subscribe}function b9(c,l,f,v){const C=li(),k=Fs(),L=Ec();return C9(k,C,C[ur],L,c,l,v),b9}function y9(c,l){const f=Ec(),v=li(),C=Fs();return C9(C,v,Ly(ae(C.data),f,v),f,c,l),y9}function C9(c,l,f,v,C,k,L){const U=zl(v),_e=c.firstCreatePass&&t9(c),We=l[Is],St=Hy(l);let ln=!0;if(3&v.type||L){const Ei=gc(v,l),Ui=L?L(Ei):Ei,jr=St.length,_i=L?eo=>L($o(eo[v.index])):v.index;let _s=null;if(!L&&U&&(_s=function AD(c,l,f,v){const C=c.cleanup;if(null!=C)for(let k=0;kY?U[Y]:null}"string"==typeof L&&(k+=2)}return null}(c,l,C,v.index)),null!==_s)(_s.__ngLastListenerFn__||_s).__ngNextListenerFn__=k,_s.__ngLastListenerFn__=k,ln=!1;else{k=I8(v,l,We,k,!1);const eo=f.listen(Ui,C,k);St.push(k,eo),_e&&_e.push(C,_i,jr,jr+1)}}else k=I8(v,l,We,k,!1);const Sn=v.outputs;let Jn;if(ln&&null!==Sn&&(Jn=Sn[C])){const Ei=Jn.length;if(Ei)for(let Ui=0;Ui-1?cc(c.index,l):l);let Y=bC(l,f,v,L),_e=k.__ngNextListenerFn__;for(;_e;)Y=bC(l,f,_e,L)&&Y,_e=_e.__ngNextListenerFn__;return C&&!1===Y&&L.preventDefault(),Y}}function yC(c=1){return function Xo(c){return(Zr.lFrame.contextLView=function Ko(c,l){for(;c>0;)l=l[Lc],c--;return l}(c,Zr.lFrame.contextLView))[Is]}(c)}function wd(c,l){let f=null;const v=function l1(c){const l=c.attrs;if(null!=l){const f=l.indexOf(5);if(!(1&f))return l[f+1]}return null}(c);for(let C=0;C>17&32767}function H8(c){return 2|c}function l0(c){return(131068&c)>>2}function ap(c,l){return-131069&c|l<<2}function S9(c){return 1|c}function VC(c,l,f,v,C){const k=c[f+1],L=null===l;let U=v?p4(k):l0(k),Y=!1;for(;0!==U&&(!1===Y||L);){const We=c[U+1];u0(c[U],l)&&(Y=!0,c[U+1]=v?S9(We):H8(We)),U=v?p4(We):l0(We)}Y&&(c[f+1]=v?H8(k):S9(k))}function u0(c,l){return null===c||null==l||(Array.isArray(c)?c[1]:c)===l||!(!Array.isArray(c)||"string"!=typeof l)&&P3(c,l)>=0}const Fl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function k9(c){return c.substring(Fl.key,Fl.keyEnd)}function AC(c){return c.substring(Fl.value,Fl.valueEnd)}function IC(c,l){const f=Fl.textEnd;return f===l?-1:(l=Fl.keyEnd=function Kc(c,l,f){for(;l32;)l++;return l}(c,Fl.key=l,f),qf(c,l,f))}function HC(c,l){const f=Fl.textEnd;let v=Fl.key=qf(c,l,f);return f===v?-1:(v=Fl.keyEnd=function zD(c,l,f){let v;for(;l=65&&(-33&v)<=90||v>=48&&v<=57);)l++;return l}(c,v,f),v=R8(c,v,f),v=Fl.value=qf(c,v,f),v=Fl.valueEnd=function RD(c,l,f){let v=-1,C=-1,k=-1,L=l,U=L;for(;L32&&(U=L),k=C,C=v,v=-33&Y}return U}(c,v,f),R8(c,v,f))}function z8(c){Fl.key=0,Fl.keyEnd=0,Fl.value=0,Fl.valueEnd=0,Fl.textEnd=c.length}function qf(c,l,f){for(;l=0;f=HC(l,f))j8(c,k9(l),AC(l))}function zC(c){$u(FD,Sd,c,!0)}function Sd(c,l){for(let f=function LD(c){return z8(c),IC(c,qf(c,0,Fl.textEnd))}(l);f>=0;f=IC(l,f))P1(c,k9(l),!0)}function U2(c,l,f,v){const C=li(),k=Fs(),L=Xe(2);k.firstUpdatePass&&RC(k,c,L,v),l!==Hs&&Zl(C,L,l)&&Kf(k,k.data[Io()],C,C[ur],c,C[L+1]=function $D(c,l){return null==c||""===c||("string"==typeof l?c+=l:"object"==typeof c&&(c=ze(ju(c)))),c}(l,f),v,L)}function $u(c,l,f,v){const C=Fs(),k=Xe(2);C.firstUpdatePass&&RC(C,null,k,v);const L=li();if(f!==Hs&&Zl(L,k,f)){const U=C.data[Io()];if(Ur(U,v)&&!D9(C,k)){let Y=v?U.classesWithoutHost:U.stylesWithoutHost;null!==Y&&(f=vt(Y,f||"")),h9(C,U,L,f,v)}else!function BD(c,l,f,v,C,k,L,U){C===Hs&&(C=ii);let Y=0,_e=0,We=0=c.expandoStartIndex}function RC(c,l,f,v){const C=c.data;if(null===C[f+1]){const k=C[Io()],L=D9(c,f);Ur(k,v)&&null===l&&!L&&(l=!1),l=function ND(c,l,f,v){const C=ae(c);let k=v?l.residualClasses:l.residualStyles;if(null===C)0===(v?l.classBindings:l.styleBindings)&&(f=Xf(f=T9(null,c,l,f,v),l.attrs,v),k=null);else{const L=l.directiveStylingLast;if(-1===L||c[L]!==C)if(f=T9(C,c,l,f,v),null===k){let Y=function NC(c,l,f){const v=f?l.classBindings:l.styleBindings;if(0!==l0(v))return c[p4(v)]}(c,l,v);void 0!==Y&&Array.isArray(Y)&&(Y=T9(null,c,l,Y[1],v),Y=Xf(Y,l.attrs,v),function PD(c,l,f,v){c[p4(f?l.classBindings:l.styleBindings)]=v}(c,l,v,Y))}else k=function PC(c,l,f){let v;const C=l.directiveEnd;for(let k=1+l.directiveStylingLast;k0)&&(_e=!0)):We=f,C)if(0!==Y){const ln=p4(c[U+1]);c[v+1]=O8(ln,U),0!==ln&&(c[ln+1]=ap(c[ln+1],v)),c[U+1]=function M9(c,l){return 131071&c|l<<17}(c[U+1],v)}else c[v+1]=O8(U,0),0!==U&&(c[U+1]=ap(c[U+1],v)),U=v;else c[v+1]=O8(Y,0),0===U?U=v:c[Y+1]=ap(c[Y+1],v),Y=v;_e&&(c[v+1]=H8(c[v+1])),VC(c,We,v,!0),VC(c,We,v,!1),function HD(c,l,f,v,C){const k=C?c.residualClasses:c.residualStyles;null!=k&&"string"==typeof l&&P3(k,l)>=0&&(f[v+1]=S9(f[v+1]))}(l,We,c,v,k),L=O8(U,Y),k?l.classBindings=L:l.styleBindings=L}(C,k,l,f,L,v)}}function T9(c,l,f,v,C){let k=null;const L=f.directiveEnd;let U=f.directiveStylingLast;for(-1===U?U=f.directiveStart:U++;U0;){const Y=c[C],_e=Array.isArray(Y),We=_e?Y[1]:Y,St=null===We;let ln=f[C+1];ln===Hs&&(ln=St?ii:void 0);let Sn=St?Qh(ln,v):We===v?ln:void 0;if(_e&&!cp(Sn)&&(Sn=Qh(Y,v)),cp(Sn)&&(U=Sn,L))return U;const Jn=c[C+1];C=L?p4(Jn):l0(Jn)}if(null!==l){let Y=k?l.residualClasses:l.residualStyles;null!=Y&&(U=Qh(Y,v))}return U}function cp(c){return void 0!==c}function Ur(c,l){return 0!=(c.flags&(l?8:16))}function FC(c,l=""){const f=li(),v=Fs(),C=c+rs,k=v.firstCreatePass?zf(v,C,1,l,null):v.data[C],L=V9(v,f,k,l,c);f[C]=L,wr()&&jo(v,f,L,k),ol(k,!1)}let V9=(c,l,f,v,C)=>(Mr(!0),function n4(c,l){return c.createText(l)}(l[ur],v));function A9(c){return lp("",c,""),A9}function lp(c,l,f){const v=li(),C=c0(v,c,l,f);return C!==Hs&&d4(v,Io(),C),lp}function I9(c,l,f,v,C){const k=li(),L=jf(k,c,l,f,v,C);return L!==Hs&&d4(k,Io(),L),I9}function WC(c,l,f){$u(P1,Sd,c0(li(),c,l,f),!0)}function Yf(c,l,f){const v=li();return Zl(v,ve(),l)&&F2(Fs(),bo(),v,c,l,v[ur],f,!0),Yf}function N9(c,l,f){const v=li();if(Zl(v,ve(),l)){const k=Fs(),L=bo();F2(k,L,v,c,l,Ly(ae(k.data),L,v),f,!0)}return N9}const Ed=void 0;var tT=["en",[["a","p"],["AM","PM"],Ed],[["AM","PM"],Ed,Ed],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ed,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ed,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ed,"{1} 'at' {0}",Ed],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function eT(c){const f=Math.floor(Math.abs(c)),v=c.toString().replace(/^[^.]*\.?/,"").length;return 1===f&&0===v?1:5}];let Qf={};function P9(c){const l=function sx(c){return c.toLowerCase().replace(/_/g,"-")}(c);let f=j9(l);if(f)return f;const v=l.split("-")[0];if(f=j9(v),f)return f;if("en"===v)return tT;throw new he(701,!1)}function B8(c){return P9(c)[Jf.PluralCase]}function j9(c){return c in Qf||(Qf[c]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[c]),Qf[c]}var Jf=function(c){return c[c.LocaleId=0]="LocaleId",c[c.DayPeriodsFormat=1]="DayPeriodsFormat",c[c.DayPeriodsStandalone=2]="DayPeriodsStandalone",c[c.DaysFormat=3]="DaysFormat",c[c.DaysStandalone=4]="DaysStandalone",c[c.MonthsFormat=5]="MonthsFormat",c[c.MonthsStandalone=6]="MonthsStandalone",c[c.Eras=7]="Eras",c[c.FirstDayOfWeek=8]="FirstDayOfWeek",c[c.WeekendRange=9]="WeekendRange",c[c.DateFormat=10]="DateFormat",c[c.TimeFormat=11]="TimeFormat",c[c.DateTimeFormat=12]="DateTimeFormat",c[c.NumberSymbols=13]="NumberSymbols",c[c.NumberFormats=14]="NumberFormats",c[c.CurrencyCode=15]="CurrencyCode",c[c.CurrencySymbol=16]="CurrencySymbol",c[c.CurrencyName=17]="CurrencyName",c[c.Currencies=18]="Currencies",c[c.Directionality=19]="Directionality",c[c.PluralCase=20]="PluralCase",c[c.ExtraData=21]="ExtraData",c}(Jf||{});const Zf="en-US";let U8=Zf;function sh(c,l,f,v,C){if(c=de(c),Array.isArray(c))for(let k=0;k>20;if(R2(c)||!c.multi){const Sn=new jl(_e,C,Lf),Jn=nv(Y,l,C?We:We+ln,St);-1===Jn?(Yl(Qd(U,L),k,Y),ev(k,c,l.length),l.push(Y),U.directiveStart++,U.directiveEnd++,C&&(U.providerIndexes+=1048576),f.push(Sn),L.push(Sn)):(f[Jn]=Sn,L[Jn]=Sn)}else{const Sn=nv(Y,l,We+ln,St),Jn=nv(Y,l,We,We+ln),Ui=Jn>=0&&f[Jn];if(C&&!Ui||!C&&!(Sn>=0&&f[Sn])){Yl(Qd(U,L),k,Y);const jr=function RT(c,l,f,v,C){const k=new jl(c,f,Lf);return k.multi=[],k.index=l,k.componentProviders=0,tv(k,C,v&&!f),k}(C?zT:Ox,f.length,C,v,_e);!C&&Ui&&(f[Jn].providerFactory=jr),ev(k,c,l.length,0),l.push(Y),U.directiveStart++,U.directiveEnd++,C&&(U.providerIndexes+=1048576),f.push(jr),L.push(jr)}else ev(k,c,Sn>-1?Sn:Jn,tv(f[C?Jn:Sn],_e,!C&&v));!C&&v&&Ui&&f[Jn].componentProviders++}}}function ev(c,l,f,v){const C=R2(l),k=function Sg(c){return!!c.useClass}(l);if(C||k){const Y=(k?de(l.useClass):l).prototype.ngOnDestroy;if(Y){const _e=c.destroyHooks||(c.destroyHooks=[]);if(!C&&l.multi){const We=_e.indexOf(f);-1===We?_e.push(f,[v,Y]):_e[We+1].push(v,Y)}else _e.push(f,Y)}}}function tv(c,l,f){return f&&c.componentProviders++,c.multi.push(l)-1}function nv(c,l,f,v){for(let C=f;C{f.providersResolver=(v,C)=>function LT(c,l,f){const v=Fs();if(v.firstCreatePass){const C=co(c);sh(f,v.data,v.blueprint,C,!0),sh(l,v.data,v.blueprint,C,!1)}}(v,C?C(c):c,l)}}class d0{}class rv{}function NT(c,l){return new sv(c,l??null,[])}class sv extends d0{constructor(l,f,v){super(),this._parent=f,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Uy(this);const C=ca(l);this._bootstrapComponents=Ai(C.bootstrap),this._r3Injector=B6(l,f,[{provide:d0,useValue:this},{provide:Q4,useValue:this.componentFactoryResolver},...v],ze(l),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(l)}get injector(){return this._r3Injector}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(f=>f()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class ov extends rv{constructor(l){super(),this.moduleType=l}create(l){return new sv(this.moduleType,l,[])}}class av extends d0{constructor(l){super(),this.componentFactoryResolver=new Uy(this),this.instance=null;const f=new _d([...l.providers,{provide:d0,useValue:this},{provide:Q4,useValue:this.componentFactoryResolver}],l.parent||X4(),l.debugName,new Set(["environment"]));this.injector=f,l.runEnvironmentInitializers&&f.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(l){this.injector.onDestroy(l)}}function Lx(c,l,f=null){return new av({providers:c,parent:l,debugName:f,runEnvironmentInitializers:!0}).injector}let jT=(()=>{class c{constructor(f){this._injector=f,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(f){if(!f.standalone)return null;if(!this.cachedInjectors.has(f)){const v=Km(0,f.type),C=v.length>0?Lx([v],this._injector,`Standalone[${f.type.name}]`):null;this.cachedInjectors.set(f,C)}return this.cachedInjectors.get(f)}ngOnDestroy(){try{for(const f of this.cachedInjectors.values())null!==f&&f.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=zt({token:c,providedIn:"environment",factory:()=>new c(Pt(l2))})}return c})();function oh(c){c.getStandaloneInjector=l=>l.get(jT).getOrCreateStandaloneInjector(c)}function jx(c,l,f){const v=j()+c,C=li();return C[v]===Hs?B2(C,v,f?l.call(f):l()):Z6(C,v)}function dv(c,l,f,v){return Gx(li(),j(),c,l,f,v)}function Fx(c,l,f,v,C){return function Wx(c,l,f,v,C,k,L){const U=l+f;return a0(c,U,C,k)?B2(c,U+2,L?v.call(L,C,k):v(C,k)):mp(c,U+2)}(li(),j(),c,l,f,v,C)}function fv(c,l,f,v,C,k){return function pv(c,l,f,v,C,k,L,U){const Y=l+f;return function i3(c,l,f,v,C){const k=a0(c,l,f,v);return Zl(c,l+2,C)||k}(c,Y,C,k,L)?B2(c,Y+3,U?v.call(U,C,k,L):v(C,k,L)):mp(c,Y+3)}(li(),j(),c,l,f,v,C,k)}function Bx(c,l,f,v,C,k,L){return function mv(c,l,f,v,C,k,L,U,Y){const _e=l+f;return _u(c,_e,C,k,L,U)?B2(c,_e+4,Y?v.call(Y,C,k,L,U):v(C,k,L,U)):mp(c,_e+4)}(li(),j(),c,l,f,v,C,k,L)}function Ux(c,l,f,v,C,k,L,U,Y){const _e=j()+c,We=li(),St=_u(We,_e,f,v,C,k);return a0(We,_e+4,L,U)||St?B2(We,_e+6,Y?l.call(Y,f,v,C,k,L,U):l(f,v,C,k,L,U)):Z6(We,_e+6)}function hv(c,l,f,v){return function qx(c,l,f,v,C,k){let L=l+f,U=!1;for(let Y=0;Y=0;f--){const v=l[f];if(c===v.name)return v}}(l,f.pipeRegistry),f.data[C]=v,v.onDestroy&&(f.destroyHooks??=[]).push(C,v.onDestroy)):v=f.data[C];const k=v.factory||(v.factory=So(v.type)),U=qe(Lf);try{const Y=fd(!1),_e=k();return fd(Y),function mC(c,l,f,v){f>=c.data.length&&(c.data[f]=null,c.blueprint[f]=null),l[f]=v}(f,li(),C,_e),_e}finally{qe(U)}}function gv(c,l,f){const v=c+rs,C=li(),k=k2(C,v);return function vp(c,l){return c[yi].data[l].pure}(C,v)?Gx(C,j(),l,k.transform,f,k):k.transform(f)}function Yx(){return this._results[Symbol.iterator]()}class Y8{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new vu)}constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const f=Y8.prototype;f[Symbol.iterator]||(f[Symbol.iterator]=Yx)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,f){return this._results.reduce(l,f)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,f){const v=this;v.dirty=!1;const C=function Dc(c){return c.flat(Number.POSITIVE_INFINITY)}(l);(this._changesDetected=!function T7(c,l,f){if(c.length!==l.length)return!1;for(let v=0;v0&&(f[C-1][Sa]=l),v{class c{static#e=this.__NG_ELEMENT_ID__=Jx}return c})();const eV=ah,tV=class extends eV{constructor(l,f,v){super(),this._declarationLView=l,this._declarationTContainer=f,this.elementRef=v}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(l,f){return this.createEmbeddedViewImpl(l,f)}createEmbeddedViewImpl(l,f,v){const C=function ZT(c,l,f,v){const C=l.tView,U=v8(c,C,f,4096&c[Kn]?4096:16,null,l,null,null,null,v?.injector??null,v?.hydrationInfo??null);U[la]=c[l.index];const _e=c[ua];return null!==_e&&(U[ua]=_e.createEmbeddedView(C)),i9(C,U,f),U}(this._declarationLView,this._declarationTContainer,l,{injector:f,hydrationInfo:v});return new Q6(C)}};function Jx(){return Q8(Ec(),li())}function Q8(c,l){return 4&c.type?new tV(l,c,n0(c,l)):null}let Z8=(()=>{class c{static#e=this.__NG_ELEMENT_ID__=oV}return c})();function oV(){return yv(Ec(),li())}const Zs=Z8,nw=class extends Zs{constructor(l,f,v){super(),this._lContainer=l,this._hostTNode=f,this._hostLView=v}get element(){return n0(this._hostTNode,this._hostLView)}get injector(){return new Si(this._hostTNode,this._hostLView)}get parentInjector(){const l=N3(this._hostTNode,this._hostLView);if(z3(l)){const f=Lu(l,this._hostLView),v=dd(l);return new Si(f[yi].data[v+8],f)}return new Si(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const f=zs(this._lContainer);return null!==f&&f[l]||null}get length(){return this._lContainer.length-Ea}createEmbeddedView(l,f,v){let C,k;"number"==typeof v?C=v:null!=v&&(C=v.index,k=v.injector);const U=l.createEmbeddedViewImpl(f||{},k,null);return this.insertImpl(U,C,false),U}createComponent(l,f,v,C,k){const L=l&&!function q0(c){return"function"==typeof c}(l);let U;if(L)U=f;else{const Ei=f||{};U=Ei.index,v=Ei.injector,C=Ei.projectableNodes,k=Ei.environmentInjector||Ei.ngModuleRef}const Y=L?l:new J6(Xr(l)),_e=v||this.parentInjector;if(!k&&null==Y.ngModule){const Ui=(L?_e:this.parentInjector).get(l2,null);Ui&&(k=Ui)}Xr(Y.componentType??{});const Sn=Y.create(_e,C,null,k);return this.insertImpl(Sn.hostView,U,false),Sn}insert(l,f){return this.insertImpl(l,f,!1)}insertImpl(l,f,v){const C=l._lView;if(function Tu(c){return vs(c[ar])}(C)){const Y=this.indexOf(l);if(-1!==Y)this.detach(Y);else{const _e=C[ar],We=new nw(_e,_e[ns],_e[ar]);We.detach(We.indexOf(l))}}const L=this._adjustIndex(f),U=this._lContainer;return Qx(U,C,L,!v),l.attachToViewContainerRef(),Yh(bv(U),L,l),l}move(l,f){return this.insert(l,f)}indexOf(l){const f=zs(this._lContainer);return null!==f?f.indexOf(l):-1}remove(l){const f=this._adjustIndex(l,-1),v=B3(this._lContainer,f);v&&(X0(bv(this._lContainer),f),hf(v[yi],v))}detach(l){const f=this._adjustIndex(l,-1),v=B3(this._lContainer,f);return v&&null!=X0(bv(this._lContainer),f)?new Q6(v):null}_adjustIndex(l,f=0){return l??this.length+f}};function zs(c){return c[8]}function bv(c){return c[8]||(c[8]=[])}function yv(c,l){let f;const v=l[c.index];return vs(v)?f=v:(f=Zg(v,l,null,c),l[c.index]=f,Nf(l,f)),iw(f,l,c,v),new nw(f,c,l)}let iw=function Cv(c,l,f,v){if(c[Lr])return;let C;C=8&f.type?$o(v):function aV(c,l){const f=c[ur],v=f.createComment(""),C=gc(l,c);return du(f,U3(f,C),v,function ng(c,l){return c.nextSibling(l)}(f,C),!1),v}(l,f),c[Lr]=C};class wv{constructor(l){this.queryList=l,this.matches=null}clone(){return new wv(this.queryList)}setDirty(){this.queryList.setDirty()}}class e5{constructor(l=[]){this.queries=l}createEmbeddedView(l){const f=l.queries;if(null!==f){const v=null!==l.contentQueries?l.contentQueries[0]:f.length,C=[];for(let k=0;k0)v.push(L[U/2]);else{const _e=k[U+1],We=l[-Y];for(let St=Ea;St{class c{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((f,v)=>{this.resolve=f,this.reject=v}),this.appInits=pn(Ew,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const f=[];for(const C of this.appInits){const k=C();if(v9(k))f.push(k);else if(_9(k)){const L=new Promise((U,Y)=>{k.subscribe({complete:U,error:Y})});f.push(L)}}const v=()=>{this.done=!0,this.resolve()};Promise.all(f).then(()=>{v()}).catch(C=>{this.reject(C)}),0===f.length&&v(),this.initialized=!0}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})(),Dw=(()=>{class c{log(f){console.log(f)}warn(f){console.warn(f)}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"platform"})}return c})();const c5=new ni("LocaleId",{providedIn:"root",factory:()=>pn(c5,On.Optional|On.SkipSelf)||function Tw(){return typeof $localize<"u"&&$localize.locale||Zf}()}),Vw=new ni("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Fv=(()=>{class c{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new De.t(!1)}add(){this.hasPendingTasks.next(!0);const f=this.taskId++;return this.pendingTasks.add(f),f}remove(f){this.pendingTasks.delete(f),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();class LV{constructor(l,f){this.ngModuleFactory=l,this.componentFactories=f}}let uh=(()=>{class c{compileModuleSync(f){return new ov(f)}compileModuleAsync(f){return Promise.resolve(this.compileModuleSync(f))}compileModuleAndAllComponentsSync(f){const v=this.compileModuleSync(f),k=Ai(ca(f).declarations).reduce((L,U)=>{const Y=Xr(U);return Y&&L.push(new J6(Y)),L},[]);return new LV(v,k)}compileModuleAndAllComponentsAsync(f){return Promise.resolve(this.compileModuleAndAllComponentsSync(f))}clearCache(){}clearCacheFor(f){}getModuleId(f){}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();const Rw=new ni(""),hh=new ni("");let Cp,QV=(()=>{class c{constructor(f,v,C){this._ngZone=f,this.registry=v,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Cp||(function JV(c){Cp=c}(C),C.addToWindow(v)),this._watchAngularEvents(),f.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:()=>{Ml.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let f=this._callbacks.pop();clearTimeout(f.timeoutId),f.doneCb(this._didWork)}this._didWork=!1});else{let f=this.getPendingTasks();this._callbacks=this._callbacks.filter(v=>!v.updateCb||!v.updateCb(f)||(clearTimeout(v.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(f=>({source:f.source,creationLocation:f.creationLocation,data:f.data})):[]}addCallback(f,v,C){let k=-1;v&&v>0&&(k=setTimeout(()=>{this._callbacks=this._callbacks.filter(L=>L.timeoutId!==k),f(this._didWork,this.getPendingTasks())},v)),this._callbacks.push({doneCb:f,timeoutId:k,updateCb:C})}whenStable(f,v,C){if(C&&!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(f,v,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(f){this.registry.registerApplication(f,this)}unregisterApplication(f){this.registry.unregisterApplication(f)}findProviders(f,v,C){return[]}static#e=this.\u0275fac=function(v){return new(v||c)(Pt(Ml),Pt(Gv),Pt(hh))};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac})}return c})(),Gv=(()=>{class c{constructor(){this._applications=new Map}registerApplication(f,v){this._applications.set(f,v)}unregisterApplication(f){this._applications.delete(f)}unregisterAllApplications(){this._applications.clear()}getTestability(f){return this._applications.get(f)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(f,v=!0){return Cp?.findTestabilityInTree(this,f,v)??null}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"platform"})}return c})(),a3=null;const qv=new ni("PlatformDestroyListeners"),d5=new ni("appBootstrapListener");class eA{constructor(l,f){this.name=l,this.token=f}}function iA(c){try{const{rootComponent:l,appProviders:f,platformProviders:v}=c,C=function nA(c=[]){if(a3)return a3;const l=function f5(c=[],l){return P2.create({name:l,providers:[{provide:W4,useValue:"platform"},{provide:qv,useValue:new Set([()=>a3=null])},...c]})}(c);return a3=l,function Nw(){!function Du(c){nu=c}(()=>{throw new he(600,!1)})}(),function Xv(c){c.get(Y3,null)?.forEach(f=>f())}(l),l}(v),k=[lA(),...f||[]],U=new av({providers:k,parent:C,debugName:"",runEnvironmentInitializers:!1}).injector,Y=U.get(Ml);return Y.run(()=>{U.resolveInjectorInitializers();const _e=U.get(yd,null);let We;Y.runOutsideAngular(()=>{We=Y.onError.subscribe({next:Sn=>{_e.handleError(Sn)}})});const St=()=>U.destroy(),ln=C.get(qv);return ln.add(St),U.onDestroy(()=>{We.unsubscribe(),ln.delete(St)}),function Bw(c,l,f){try{const v=f();return v9(v)?v.catch(C=>{throw l.runOutsideAngular(()=>c.handleError(C)),C}):v}catch(v){throw l.runOutsideAngular(()=>c.handleError(v)),v}}(_e,Y,()=>{const Sn=U.get(a5);return Sn.runInitializers(),Sn.donePromise.then(()=>{!function ax(c){Ze(c,"Expected localeId to be defined"),"string"==typeof c&&(U8=c.toLowerCase().replace(/_/g,"-"))}(U.get(c5,Zf)||Zf);const Ei=U.get(ph);return void 0!==l&&Ei.bootstrap(l),Ei})})})}catch(l){return Promise.reject(l)}}let ph=(()=>{class c{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=pn(Yv),this.zoneIsStable=pn(b),this.componentTypes=[],this.components=[],this.isStable=pn(Fv).hasPendingTasks.pipe((0,be.n)(f=>f?(0,pe.of)(!1):this.zoneIsStable),(0,me.F)(),(0,Ee.u)()),this._injector=pn(l2)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(f,v){const C=f instanceof Vg;if(!this._injector.get(a5).done)throw!C&&Ao(f),new he(405,!1);let L;L=C?f:this._injector.get(Q4).resolveComponentFactory(f),this.componentTypes.push(L.componentType);const U=function Pw(c){return c.isBoundToModule}(L)?void 0:this._injector.get(d0),_e=L.create(P2.NULL,[],v||L.selector,U),We=_e.location.nativeElement,St=_e.injector.get(Rw,null);return St?.registerApplication(We),_e.onDestroy(()=>{this.detachView(_e.hostView),xp(this.components,_e),St?.unregisterApplication(We)}),this._loadComponent(_e),_e}tick(){if(this._runningTick)throw new he(101,!1);try{this._runningTick=!0;for(let f of this._views)f.detectChanges()}catch(f){this.internalErrorHandler(f)}finally{this._runningTick=!1}}attachView(f){const v=f;this._views.push(v),v.attachToAppRef(this)}detachView(f){const v=f;xp(this._views,v),v.detachFromAppRef()}_loadComponent(f){this.attachView(f.hostView),this.tick(),this.components.push(f);const v=this._injector.get(d5,[]);v.push(...this._bootstrapListeners),v.forEach(C=>C(f))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(f=>f()),this._views.slice().forEach(f=>f.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(f){return this._destroyListeners.push(f),()=>xp(this._destroyListeners,f)}destroy(){if(this._destroyed)throw new he(406,!1);const f=this._injector;f.destroy&&!f.destroyed&&f.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();function xp(c,l){const f=c.indexOf(l);f>-1&&c.splice(f,1)}const Yv=new ni("",{providedIn:"root",factory:()=>pn(yd).handleError.bind(void 0)});function aA(){const c=pn(Ml),l=pn(yd);return f=>c.runOutsideAngular(()=>l.handleError(f))}let cA=(()=>{class c{constructor(){this.zone=pn(Ml),this.applicationRef=pn(ph)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(v){return new(v||c)};static#t=this.\u0275prov=zt({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})();function p5(c){return[{provide:Ml,useFactory:c},{provide:U4,multi:!0,useFactory:()=>{const l=pn(cA,{optional:!0});return()=>l.initialize()}},{provide:Yv,useFactory:aA},{provide:b,useFactory:w}]}function lA(c){return V6([[],p5(()=>new Ml(function Fw(c){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:c?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:c?.runCoalescing??!1}}(c)))])}function uA(){return!1}let fA=(()=>{class c{static#e=this.__NG_ELEMENT_ID__=hA}return c})();function hA(c){return function pA(c,l,f){if(pc(c)&&!f){const v=cc(c.index,l);return new Q6(v,v)}return 47&c.type?new Q6(l[Qs],l):null}(Ec(),li(),16==(16&c))}class Qw{constructor(){}supports(l){return w8(l)}create(l){return new Jw(l)}}const _A=(c,l)=>l;class Jw{constructor(l){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=l||_A}forEachItem(l){let f;for(f=this._itHead;null!==f;f=f._next)l(f)}forEachOperation(l){let f=this._itHead,v=this._removalsHead,C=0,k=null;for(;f||v;){const L=!v||f&&f.currentIndex{L=this._trackByFn(C,U),null!==f&&Object.is(f.trackById,L)?(v&&(f=this._verifyReinsertion(f,U,L,C)),Object.is(f.item,U)||this._addIdentityChange(f,U)):(f=this._mismatch(f,U,L,C),v=!0),f=f._next,C++}),this.length=C;return this._truncate(f),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,f,v,C){let k;return null===l?k=this._itTail:(k=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(v,null))?(Object.is(l.item,f)||this._addIdentityChange(l,f),this._reinsertAfter(l,k,C)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(v,C))?(Object.is(l.item,f)||this._addIdentityChange(l,f),this._moveAfter(l,k,C)):l=this._addAfter(new bA(f,v),k,C),l}_verifyReinsertion(l,f,v,C){let k=null===this._unlinkedRecords?null:this._unlinkedRecords.get(v,null);return null!==k?l=this._reinsertAfter(k,l._prev,C):l.currentIndex!=C&&(l.currentIndex=C,this._addToMoves(l,C)),l}_truncate(l){for(;null!==l;){const f=l._next;this._addToRemovals(this._unlink(l)),l=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(l,f,v){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const C=l._prevRemoved,k=l._nextRemoved;return null===C?this._removalsHead=k:C._nextRemoved=k,null===k?this._removalsTail=C:k._prevRemoved=C,this._insertAfter(l,f,v),this._addToMoves(l,v),l}_moveAfter(l,f,v){return this._unlink(l),this._insertAfter(l,f,v),this._addToMoves(l,v),l}_addAfter(l,f,v){return this._insertAfter(l,f,v),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,f,v){const C=null===f?this._itHead:f._next;return l._next=C,l._prev=f,null===C?this._itTail=l:C._prev=l,null===f?this._itHead=l:f._next=l,null===this._linkedRecords&&(this._linkedRecords=new eM),this._linkedRecords.put(l),l.currentIndex=v,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const f=l._prev,v=l._next;return null===f?this._itHead=v:f._next=v,null===v?this._itTail=f:v._prev=f,l}_addToMoves(l,f){return l.previousIndex===f||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new eM),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,f){return l.item=f,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class bA{constructor(l,f){this.item=l,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 Zw{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,f){let v;for(v=this._head;null!==v;v=v._nextDup)if((null===f||f<=v.currentIndex)&&Object.is(v.trackById,l))return v;return null}remove(l){const f=l._prevDup,v=l._nextDup;return null===f?this._head=v:f._nextDup=v,null===v?this._tail=f:v._prevDup=f,null===this._head}}class eM{constructor(){this.map=new Map}put(l){const f=l.trackById;let v=this.map.get(f);v||(v=new Zw,this.map.set(f,v)),v.add(l)}get(l,f){const C=this.map.get(l);return C?C.get(l,f):null}remove(l){const f=l.trackById;return this.map.get(f).remove(l)&&this.map.delete(f),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function t_(c,l,f){const v=c.previousIndex;if(null===v)return v;let C=0;return f&&v{if(f&&f.key===C)this._maybeAddToChanges(f,v),this._appendAfter=f,f=f._next;else{const k=this._getOrCreateRecordForKey(C,v);f=this._insertBeforeOrAppend(f,k)}}),f){f._prev&&(f._prev._next=null),this._removalsHead=f;for(let v=f;null!==v;v=v._nextRemoved)v===this._mapHead&&(this._mapHead=null),this._records.delete(v.key),v._nextRemoved=v._next,v.previousValue=v.currentValue,v.currentValue=null,v._prev=null,v._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,f){if(l){const v=l._prev;return f._next=l,f._prev=v,l._prev=f,v&&(v._next=f),l===this._mapHead&&(this._mapHead=f),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=f,f._prev=this._appendAfter):this._mapHead=f,this._appendAfter=f,null}_getOrCreateRecordForKey(l,f){if(this._records.has(l)){const C=this._records.get(l);this._maybeAddToChanges(C,f);const k=C._prev,L=C._next;return k&&(k._next=L),L&&(L._prev=k),C._next=null,C._prev=null,C}const v=new CA(l);return this._records.set(l,v),v.currentValue=f,this._addToAdditions(v),v}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,f){Object.is(f,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=f,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,f){l instanceof Map?l.forEach(f):Object.keys(l).forEach(v=>f(l[v],v))}}class CA{constructor(l){this.key=l,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 n_(){return new i_([new Qw])}let i_=(()=>{class c{static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:n_});constructor(f){this.factories=f}static create(f,v){if(null!=v){const C=v.factories.slice();f=f.concat(C)}return new c(f)}static extend(f){return{provide:c,useFactory:v=>c.create(f,v||n_()),deps:[[c,new Ta,new Zh]]}}find(f){const v=this.factories.find(C=>C.supports(f));if(null!=v)return v;throw new he(901,!1)}}return c})();function _5(){return new r_([new tM])}let r_=(()=>{class c{static#e=this.\u0275prov=zt({token:c,providedIn:"root",factory:_5});constructor(f){this.factories=f}static create(f,v){if(v){const C=v.factories.slice();f=f.concat(C)}return new c(f)}static extend(f){return{provide:c,useFactory:v=>c.create(f,v||_5()),deps:[[c,new Ta,new Zh]]}}find(f){const v=this.factories.find(C=>C.supports(f));if(v)return v;throw new he(901,!1)}}return c})();function fM(c){return"boolean"==typeof c?c:null!=c&&"false"!==c}function IA(c){const l=Xr(c);if(!l)return null;const f=new J6(l);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 l.standalone},get isSignal(){return l.signals}}}},7212:(vn,J,F)=>{"use strict";F.d(J,{pQ:()=>oe});var g=F(2978),o=F(9406),V=F(6340);function oe(cn){cn||((0,g.Af3)(oe),cn=(0,g.WQX)(g.abz));const On=new o.c(Qn=>cn.onDestroy(Qn.next.bind(Qn)));return Qn=>Qn.pipe((0,V.Q)(On))}Error},8832:(vn,J,F)=>{"use strict";F.d(J,{mP:()=>Be,Zm:()=>Fe,xq:()=>vo,me:()=>he,Yp:()=>sc,MJ:()=>Hc,l_:()=>il,JD:()=>Is,gE:()=>Pt,j4:()=>yi,YN:()=>nn,cz:()=>it,kq:()=>tt,vO:()=>Dr,BC:()=>Qn,cb:()=>fi,cV:()=>La,vS:()=>wo,xH:()=>ml,Q0:()=>hc,MR:()=>za,X1:()=>Qt,wz:()=>rr,hs:()=>Ol,J3:()=>Cn,k0:()=>Wt,cF:()=>Rt,Oi:()=>pl,_X:()=>pn,y7:()=>da});var g=F(2978),o=F(6610),V=F(8399),oe=F(9406),De=F(6872),pe=F(8621),Ee=F(2363),be=F(6111),me=F(6219),Te=F(6405),ze=F(3527);let vt=(()=>{class ne{constructor(Z,$e){this._renderer=Z,this._elementRef=$e,this.onChange=mt=>{},this.onTouched=()=>{}}setProperty(Z,$e){this._renderer.setProperty(this._elementRef.nativeElement,Z,$e)}registerOnTouched(Z){this.onTouched=Z}registerOnChange(Z){this.onChange=Z}setDisabledState(Z){this.setProperty("disabled",Z)}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(g.sFG),g.rXU(g.aKT))};static#t=this.\u0275dir=g.FsC({type:ne})}return ne})(),Re=(()=>{class ne extends vt{static#e=this.\u0275fac=function(){let Z;return function(mt){return(Z||(Z=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,features:[g.Vt3]})}return ne})();const tt=new g.nKC("NgValueAccessor"),de={provide:tt,useExisting:(0,g.Rfq)(()=>Fe),multi:!0};let Fe=(()=>{class ne extends Re{writeValue(Z){this.setProperty("checked",Z)}static#e=this.\u0275fac=function(){let Z;return function(mt){return(Z||(Z=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function($e,mt){1&$e&&g.bIt("change",function(ir){return mt.onChange(ir.target.checked)})("blur",function(){return mt.onTouched()})},features:[g.Jv_([de]),g.Vt3]})}return ne})();const _t={provide:tt,useExisting:(0,g.Rfq)(()=>he),multi:!0},Be=new g.nKC("CompositionEventMode");let he=(()=>{class ne extends vt{constructor(Z,$e,mt){super(Z,$e),this._compositionMode=mt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function at(){const ne=(0,o.QT)()?(0,o.QT)().getUserAgent():"";return/android (\d+)/.test(ne.toLowerCase())}())}writeValue(Z){this.setProperty("value",Z??"")}_handleInput(Z){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Z)}_compositionStart(){this._composing=!0}_compositionEnd(Z){this._composing=!1,this._compositionMode&&this.onChange(Z)}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(Be,8))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function($e,mt){1&$e&&g.bIt("input",function(ir){return mt._handleInput(ir.target.value)})("blur",function(){return mt.onTouched()})("compositionstart",function(){return mt._compositionStart()})("compositionend",function(ir){return mt._compositionEnd(ir.target.value)})},features:[g.Jv_([_t]),g.Vt3]})}return ne})();function He(ne){return null==ne||("string"==typeof ne||Array.isArray(ne))&&0===ne.length}function Se(ne){return null!=ne&&"number"==typeof ne.length}const it=new g.nKC("NgValidators"),dt=new g.nKC("NgAsyncValidators"),jt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Wt{static min(fe){return function wn(ne){return fe=>{if(He(fe.value)||He(ne))return null;const Z=parseFloat(fe.value);return!isNaN(Z)&&Z{if(He(fe.value)||He(ne))return null;const Z=parseFloat(fe.value);return!isNaN(Z)&&Z>ne?{max:{max:ne,actual:fe.value}}:null}}(fe)}static required(fe){return di(fe)}static requiredTrue(fe){return ai(fe)}static email(fe){return function Li(ne){return He(ne.value)||jt.test(ne.value)?null:{email:!0}}(fe)}static minLength(fe){return function $i(ne){return fe=>He(fe.value)||!Se(fe.value)?null:fe.value.lengthSe(fe.value)&&fe.value.length>ne?{maxlength:{requiredLength:ne,actualLength:fe.value.length}}:null}(fe)}static pattern(fe){return function ui(ne){if(!ne)return dn;let fe,Z;return"string"==typeof ne?(Z="","^"!==ne.charAt(0)&&(Z+="^"),Z+=ne,"$"!==ne.charAt(ne.length-1)&&(Z+="$"),fe=new RegExp(Z)):(Z=ne.toString(),fe=ne),$e=>{if(He($e.value))return null;const mt=$e.value;return fe.test(mt)?null:{pattern:{requiredPattern:Z,actualValue:mt}}}}(fe)}static nullValidator(fe){return null}static compose(fe){return H(fe)}static composeAsync(fe){return xe(fe)}}function di(ne){return He(ne.value)?{required:!0}:null}function ai(ne){return!0===ne.value?null:{required:!0}}function dn(ne){return null}function nt(ne){return null!=ne}function ht(ne){return(0,g.jNT)(ne)?(0,V.H)(ne):ne}function Je(ne){let fe={};return ne.forEach(Z=>{fe=null!=Z?{...fe,...Z}:fe}),0===Object.keys(fe).length?null:fe}function Ae(ne,fe){return fe.map(Z=>Z(ne))}function Ze(ne){return ne.map(fe=>function Ue(ne){return!ne.validate}(fe)?fe:Z=>fe.validate(Z))}function H(ne){if(!ne)return null;const fe=ne.filter(nt);return 0==fe.length?null:function(Z){return Je(Ae(Z,fe))}}function te(ne){return null!=ne?H(Ze(ne)):null}function xe(ne){if(!ne)return null;const fe=ne.filter(nt);return 0==fe.length?null:function(Z){return function Ve(...ne){const fe=(0,Ee.ms)(ne),{args:Z,keys:$e}=(0,De.D)(ne),mt=new oe.c(Gn=>{const{length:ir}=Z;if(!ir)return void Gn.complete();const zr=new Array(ir);let ra=ir,bi=ir;for(let Bo=0;Bo{So||(So=!0,bi--),zr[Bo]=Pa},()=>ra--,void 0,()=>{(!ra||!So)&&(bi||Gn.next($e?(0,Te.e)($e,zr):zr),Gn.complete())}))}});return fe?mt.pipe((0,me.I)(fe)):mt}(Ae(Z,fe).map(ht)).pipe((0,ze.T)(Je))}}function Ce(ne){return null!=ne?xe(Ze(ne)):null}function zt(ne,fe){return null===ne?[fe]:Array.isArray(ne)?[...ne,fe]:[ne,fe]}function rt(ne){return ne._rawValidators}function xt(ne){return ne._rawAsyncValidators}function Gt(ne){return ne?Array.isArray(ne)?ne:[ne]:[]}function xn(ne,fe){return Array.isArray(ne)?ne.includes(fe):ne===fe}function In(ne,fe){const Z=Gt(fe);return Gt(ne).forEach(mt=>{xn(Z,mt)||Z.push(mt)}),Z}function xi(ne,fe){return Gt(fe).filter(Z=>!xn(ne,Z))}class or{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(fe){this._rawValidators=fe||[],this._composedValidatorFn=te(this._rawValidators)}_setAsyncValidators(fe){this._rawAsyncValidators=fe||[],this._composedAsyncValidatorFn=Ce(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(fe){this._onDestroyCallbacks.push(fe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(fe=>fe()),this._onDestroyCallbacks=[]}reset(fe=void 0){this.control&&this.control.reset(fe)}hasError(fe,Z){return!!this.control&&this.control.hasError(fe,Z)}getError(fe,Z){return this.control?this.control.getError(fe,Z):null}}class ci extends or{get formDirective(){return null}get path(){return null}}class Dr extends or{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Tr{constructor(fe){this._cd=fe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Qn=(()=>{class ne extends Tr{constructor(Z){super(Z)}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(Dr,2))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($e,mt){2&$e&&g.AVh("ng-untouched",mt.isUntouched)("ng-touched",mt.isTouched)("ng-pristine",mt.isPristine)("ng-dirty",mt.isDirty)("ng-valid",mt.isValid)("ng-invalid",mt.isInvalid)("ng-pending",mt.isPending)},features:[g.Vt3]})}return ne})(),fi=(()=>{class ne extends Tr{constructor(Z){super(Z)}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(ci,10))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function($e,mt){2&$e&&g.AVh("ng-untouched",mt.isUntouched)("ng-touched",mt.isTouched)("ng-pristine",mt.isPristine)("ng-dirty",mt.isDirty)("ng-valid",mt.isValid)("ng-invalid",mt.isInvalid)("ng-pending",mt.isPending)("ng-submitted",mt.isSubmitted)},features:[g.Vt3]})}return ne})();const mo="VALID",Ss="INVALID",io="PENDING",Wo="DISABLED";function ic(ne){return(Jt(ne)?ne.validators:ne)||null}function kn(ne,fe){return(Jt(fe)?fe.asyncValidators:ne)||null}function Jt(ne){return null!=ne&&!Array.isArray(ne)&&"object"==typeof ne}function Un(ne,fe,Z){const $e=ne.controls;if(!(fe?Object.keys($e):$e).length)throw new g.wOt(1e3,"");if(!$e[Z])throw new g.wOt(1001,"")}function yt(ne,fe,Z){ne._forEachChild(($e,mt)=>{if(void 0===Z[mt])throw new g.wOt(1002,"")})}class ft{constructor(fe,Z){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(fe),this._assignAsyncValidators(Z)}get validator(){return this._composedValidatorFn}set validator(fe){this._rawValidators=this._composedValidatorFn=fe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(fe){this._rawAsyncValidators=this._composedAsyncValidatorFn=fe}get parent(){return this._parent}get valid(){return this.status===mo}get invalid(){return this.status===Ss}get pending(){return this.status==io}get disabled(){return this.status===Wo}get enabled(){return this.status!==Wo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(fe){this._assignValidators(fe)}setAsyncValidators(fe){this._assignAsyncValidators(fe)}addValidators(fe){this.setValidators(In(fe,this._rawValidators))}addAsyncValidators(fe){this.setAsyncValidators(In(fe,this._rawAsyncValidators))}removeValidators(fe){this.setValidators(xi(fe,this._rawValidators))}removeAsyncValidators(fe){this.setAsyncValidators(xi(fe,this._rawAsyncValidators))}hasValidator(fe){return xn(this._rawValidators,fe)}hasAsyncValidator(fe){return xn(this._rawAsyncValidators,fe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(fe={}){this.touched=!0,this._parent&&!fe.onlySelf&&this._parent.markAsTouched(fe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(fe=>fe.markAllAsTouched())}markAsUntouched(fe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Z=>{Z.markAsUntouched({onlySelf:!0})}),this._parent&&!fe.onlySelf&&this._parent._updateTouched(fe)}markAsDirty(fe={}){this.pristine=!1,this._parent&&!fe.onlySelf&&this._parent.markAsDirty(fe)}markAsPristine(fe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Z=>{Z.markAsPristine({onlySelf:!0})}),this._parent&&!fe.onlySelf&&this._parent._updatePristine(fe)}markAsPending(fe={}){this.status=io,!1!==fe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!fe.onlySelf&&this._parent.markAsPending(fe)}disable(fe={}){const Z=this._parentMarkedDirty(fe.onlySelf);this.status=Wo,this.errors=null,this._forEachChild($e=>{$e.disable({...fe,onlySelf:!0})}),this._updateValue(),!1!==fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...fe,skipPristineCheck:Z}),this._onDisabledChange.forEach($e=>$e(!0))}enable(fe={}){const Z=this._parentMarkedDirty(fe.onlySelf);this.status=mo,this._forEachChild($e=>{$e.enable({...fe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:fe.emitEvent}),this._updateAncestors({...fe,skipPristineCheck:Z}),this._onDisabledChange.forEach($e=>$e(!1))}_updateAncestors(fe){this._parent&&!fe.onlySelf&&(this._parent.updateValueAndValidity(fe),fe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(fe){this._parent=fe}getRawValue(){return this.value}updateValueAndValidity(fe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mo||this.status===io)&&this._runAsyncValidator(fe.emitEvent)),!1!==fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!fe.onlySelf&&this._parent.updateValueAndValidity(fe)}_updateTreeValidity(fe={emitEvent:!0}){this._forEachChild(Z=>Z._updateTreeValidity(fe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:fe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wo:mo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(fe){if(this.asyncValidator){this.status=io,this._hasOwnPendingAsyncValidator=!0;const Z=ht(this.asyncValidator(this));this._asyncValidationSubscription=Z.subscribe($e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors($e,{emitEvent:fe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(fe,Z={}){this.errors=fe,this._updateControlsErrors(!1!==Z.emitEvent)}get(fe){let Z=fe;return null==Z||(Array.isArray(Z)||(Z=Z.split(".")),0===Z.length)?null:Z.reduce(($e,mt)=>$e&&$e._find(mt),this)}getError(fe,Z){const $e=Z?this.get(Z):this;return $e&&$e.errors?$e.errors[fe]:null}hasError(fe,Z){return!!this.getError(fe,Z)}get root(){let fe=this;for(;fe._parent;)fe=fe._parent;return fe}_updateControlsErrors(fe){this.status=this._calculateStatus(),fe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(fe)}_initObservables(){this.valueChanges=new g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?Wo:this.errors?Ss:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(io)?io:this._anyControlsHaveStatus(Ss)?Ss:mo}_anyControlsHaveStatus(fe){return this._anyControls(Z=>Z.status===fe)}_anyControlsDirty(){return this._anyControls(fe=>fe.dirty)}_anyControlsTouched(){return this._anyControls(fe=>fe.touched)}_updatePristine(fe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!fe.onlySelf&&this._parent._updatePristine(fe)}_updateTouched(fe={}){this.touched=this._anyControlsTouched(),this._parent&&!fe.onlySelf&&this._parent._updateTouched(fe)}_registerOnCollectionChange(fe){this._onCollectionChange=fe}_setUpdateStrategy(fe){Jt(fe)&&null!=fe.updateOn&&(this._updateOn=fe.updateOn)}_parentMarkedDirty(fe){return!fe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(fe){return null}_assignValidators(fe){this._rawValidators=Array.isArray(fe)?fe.slice():fe,this._composedValidatorFn=function jn(ne){return Array.isArray(ne)?te(ne):ne||null}(this._rawValidators)}_assignAsyncValidators(fe){this._rawAsyncValidators=Array.isArray(fe)?fe.slice():fe,this._composedAsyncValidatorFn=function It(ne){return Array.isArray(ne)?Ce(ne):ne||null}(this._rawAsyncValidators)}}class Pt extends ft{constructor(fe,Z,$e){super(ic(Z),kn($e,Z)),this.controls=fe,this._initObservables(),this._setUpdateStrategy(Z),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(fe,Z){return this.controls[fe]?this.controls[fe]:(this.controls[fe]=Z,Z.setParent(this),Z._registerOnCollectionChange(this._onCollectionChange),Z)}addControl(fe,Z,$e={}){this.registerControl(fe,Z),this.updateValueAndValidity({emitEvent:$e.emitEvent}),this._onCollectionChange()}removeControl(fe,Z={}){this.controls[fe]&&this.controls[fe]._registerOnCollectionChange(()=>{}),delete this.controls[fe],this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}setControl(fe,Z,$e={}){this.controls[fe]&&this.controls[fe]._registerOnCollectionChange(()=>{}),delete this.controls[fe],Z&&this.registerControl(fe,Z),this.updateValueAndValidity({emitEvent:$e.emitEvent}),this._onCollectionChange()}contains(fe){return this.controls.hasOwnProperty(fe)&&this.controls[fe].enabled}setValue(fe,Z={}){yt(this,0,fe),Object.keys(fe).forEach($e=>{Un(this,!0,$e),this.controls[$e].setValue(fe[$e],{onlySelf:!0,emitEvent:Z.emitEvent})}),this.updateValueAndValidity(Z)}patchValue(fe,Z={}){null!=fe&&(Object.keys(fe).forEach($e=>{const mt=this.controls[$e];mt&&mt.patchValue(fe[$e],{onlySelf:!0,emitEvent:Z.emitEvent})}),this.updateValueAndValidity(Z))}reset(fe={},Z={}){this._forEachChild(($e,mt)=>{$e.reset(fe?fe[mt]:null,{onlySelf:!0,emitEvent:Z.emitEvent})}),this._updatePristine(Z),this._updateTouched(Z),this.updateValueAndValidity(Z)}getRawValue(){return this._reduceChildren({},(fe,Z,$e)=>(fe[$e]=Z.getRawValue(),fe))}_syncPendingControls(){let fe=this._reduceChildren(!1,(Z,$e)=>!!$e._syncPendingControls()||Z);return fe&&this.updateValueAndValidity({onlySelf:!0}),fe}_forEachChild(fe){Object.keys(this.controls).forEach(Z=>{const $e=this.controls[Z];$e&&fe($e,Z)})}_setUpControls(){this._forEachChild(fe=>{fe.setParent(this),fe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(fe){for(const[Z,$e]of Object.entries(this.controls))if(this.contains(Z)&&fe($e))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Z,$e,mt)=>(($e.enabled||this.disabled)&&(Z[mt]=$e.value),Z))}_reduceChildren(fe,Z){let $e=fe;return this._forEachChild((mt,Gn)=>{$e=Z($e,mt,Gn)}),$e}_allControlsDisabled(){for(const fe of Object.keys(this.controls))if(this.controls[fe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(fe){return this.controls.hasOwnProperty(fe)?this.controls[fe]:null}}const Cn=Pt,pn=ne=>ne instanceof Pt,tn=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Tt}),Tt="always";function Kt(ne,fe){return[...fe.path,ne]}function Vn(ne,fe,Z=Tt){Ni(ne,fe),fe.valueAccessor.writeValue(ne.value),(ne.disabled||"always"===Z)&&fe.valueAccessor.setDisabledState?.(ne.disabled),function lr(ne,fe){fe.valueAccessor.registerOnChange(Z=>{ne._pendingValue=Z,ne._pendingChange=!0,ne._pendingDirty=!0,"change"===ne.updateOn&&xs(ne,fe)})}(ne,fe),function ks(ne,fe){const Z=($e,mt)=>{fe.valueAccessor.writeValue($e),mt&&fe.viewToModelUpdate($e)};ne.registerOnChange(Z),fe._registerOnDestroy(()=>{ne._unregisterOnChange(Z)})}(ne,fe),function Gr(ne,fe){fe.valueAccessor.registerOnTouched(()=>{ne._pendingTouched=!0,"blur"===ne.updateOn&&ne._pendingChange&&xs(ne,fe),"submit"!==ne.updateOn&&ne.markAsTouched()})}(ne,fe),function ti(ne,fe){if(fe.valueAccessor.setDisabledState){const Z=$e=>{fe.valueAccessor.setDisabledState($e)};ne.registerOnDisabledChange(Z),fe._registerOnDestroy(()=>{ne._unregisterOnDisabledChange(Z)})}}(ne,fe)}function qn(ne,fe,Z=!0){const $e=()=>{};fe.valueAccessor&&(fe.valueAccessor.registerOnChange($e),fe.valueAccessor.registerOnTouched($e)),ii(ne,fe),ne&&(fe._invokeOnDestroyCallbacks(),ne._registerOnCollectionChange(()=>{}))}function pi(ne,fe){ne.forEach(Z=>{Z.registerOnValidatorChange&&Z.registerOnValidatorChange(fe)})}function Ni(ne,fe){const Z=rt(ne);null!==fe.validator?ne.setValidators(zt(Z,fe.validator)):"function"==typeof Z&&ne.setValidators([Z]);const $e=xt(ne);null!==fe.asyncValidator?ne.setAsyncValidators(zt($e,fe.asyncValidator)):"function"==typeof $e&&ne.setAsyncValidators([$e]);const mt=()=>ne.updateValueAndValidity();pi(fe._rawValidators,mt),pi(fe._rawAsyncValidators,mt)}function ii(ne,fe){let Z=!1;if(null!==ne){if(null!==fe.validator){const mt=rt(ne);if(Array.isArray(mt)&&mt.length>0){const Gn=mt.filter(ir=>ir!==fe.validator);Gn.length!==mt.length&&(Z=!0,ne.setValidators(Gn))}}if(null!==fe.asyncValidator){const mt=xt(ne);if(Array.isArray(mt)&&mt.length>0){const Gn=mt.filter(ir=>ir!==fe.asyncValidator);Gn.length!==mt.length&&(Z=!0,ne.setAsyncValidators(Gn))}}}const $e=()=>{};return pi(fe._rawValidators,$e),pi(fe._rawAsyncValidators,$e),Z}function xs(ne,fe){ne._pendingDirty&&ne.markAsDirty(),ne.setValue(ne._pendingValue,{emitModelToViewChange:!1}),fe.viewToModelUpdate(ne._pendingValue),ne._pendingChange=!1}function Vr(ne,fe){Ni(ne,fe)}function qo(ne,fe){if(!ne.hasOwnProperty("model"))return!1;const Z=ne.model;return!!Z.isFirstChange()||!Object.is(fe,Z.currentValue)}function oo(ne,fe){ne._syncPendingControls(),fe.forEach(Z=>{const $e=Z.control;"submit"===$e.updateOn&&$e._pendingChange&&(Z.viewToModelUpdate($e._pendingValue),$e._pendingChange=!1)})}function xo(ne,fe){if(!fe)return null;let Z,$e,mt;return Array.isArray(fe),fe.forEach(Gn=>{Gn.constructor===he?Z=Gn:function ea(ne){return Object.getPrototypeOf(ne.constructor)===Re}(Gn)?$e=Gn:mt=Gn}),mt||$e||Z||null}const Ma={provide:ci,useExisting:(0,g.Rfq)(()=>La)},ws=(()=>Promise.resolve())();let La=(()=>{class ne extends ci{constructor(Z,$e,mt){super(),this.callSetDisabledState=mt,this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.bkB,this.form=new Pt({},te(Z),Ce($e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Z){ws.then(()=>{const $e=this._findContainer(Z.path);Z.control=$e.registerControl(Z.name,Z.control),Vn(Z.control,Z,this.callSetDisabledState),Z.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Z)})}getControl(Z){return this.form.get(Z.path)}removeControl(Z){ws.then(()=>{const $e=this._findContainer(Z.path);$e&&$e.removeControl(Z.name),this._directives.delete(Z)})}addFormGroup(Z){ws.then(()=>{const $e=this._findContainer(Z.path),mt=new Pt({});Vr(mt,Z),$e.registerControl(Z.name,mt),mt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Z){ws.then(()=>{const $e=this._findContainer(Z.path);$e&&$e.removeControl(Z.name)})}getFormGroup(Z){return this.form.get(Z.path)}updateModel(Z,$e){ws.then(()=>{this.form.get(Z.path).setValue($e)})}setValue(Z){this.control.setValue(Z)}onSubmit(Z){return this.submitted=!0,oo(this.form,this._directives),this.ngSubmit.emit(Z),"dialog"===Z?.target?.method}onReset(){this.resetForm()}resetForm(Z=void 0){this.form.reset(Z),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Z){return Z.pop(),Z.length?this.form.get(Z):this.form}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(it,10),g.rXU(dt,10),g.rXU(tn,8))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function($e,mt){1&$e&&g.bIt("submit",function(ir){return mt.onSubmit(ir)})("reset",function(){return mt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g.Jv_([Ma]),g.Vt3]})}return ne})();function ao(ne,fe){const Z=ne.indexOf(fe);Z>-1&&ne.splice(Z,1)}function l1(ne){return"object"==typeof ne&&null!==ne&&2===Object.keys(ne).length&&"value"in ne&&"disabled"in ne}const Hc=class extends ft{constructor(fe=null,Z,$e){super(ic(Z),kn($e,Z)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(fe),this._setUpdateStrategy(Z),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jt(Z)&&(Z.nonNullable||Z.initialValueIsDefault)&&(this.defaultValue=l1(fe)?fe.value:fe)}setValue(fe,Z={}){this.value=this._pendingValue=fe,this._onChange.length&&!1!==Z.emitModelToViewChange&&this._onChange.forEach($e=>$e(this.value,!1!==Z.emitViewToModelChange)),this.updateValueAndValidity(Z)}patchValue(fe,Z={}){this.setValue(fe,Z)}reset(fe=this.defaultValue,Z={}){this._applyFormState(fe),this.markAsPristine(Z),this.markAsUntouched(Z),this.setValue(this.value,Z),this._pendingChange=!1}_updateValue(){}_anyControls(fe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(fe){this._onChange.push(fe)}_unregisterOnChange(fe){ao(this._onChange,fe)}registerOnDisabledChange(fe){this._onDisabledChange.push(fe)}_unregisterOnDisabledChange(fe){ao(this._onDisabledChange,fe)}_forEachChild(fe){}_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(fe){l1(fe)?(this.value=this._pendingValue=fe.value,fe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=fe}},Ol=Hc,pl=ne=>ne instanceof Hc,tl={provide:Dr,useExisting:(0,g.Rfq)(()=>wo)},As=(()=>Promise.resolve())();let wo=(()=>{class ne extends Dr{constructor(Z,$e,mt,Gn,ir,zr){super(),this._changeDetectorRef=ir,this.callSetDisabledState=zr,this.control=new Hc,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=Z,this._setValidators($e),this._setAsyncValidators(mt),this.valueAccessor=xo(0,Gn)}ngOnChanges(Z){if(this._checkForErrors(),!this._registered||"name"in Z){if(this._registered&&(this._checkName(),this.formDirective)){const $e=Z.name.previousValue;this.formDirective.removeControl({name:$e,path:this._getPath($e)})}this._setUpControl()}"isDisabled"in Z&&this._updateDisabled(Z),qo(Z,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(Z){this.viewModel=Z,this.update.emit(Z)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Vn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Z){As.then(()=>{this.control.setValue(Z,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Z){const $e=Z.isDisabled.currentValue,mt=0!==$e&&(0,g.L39)($e);As.then(()=>{mt&&!this.control.disabled?this.control.disable():!mt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Z){return this._parent?Kt(Z,this._parent):[Z]}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(ci,9),g.rXU(it,10),g.rXU(dt,10),g.rXU(tt,10),g.rXU(g.gRc,8),g.rXU(tn,8))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g.Jv_([tl]),g.Vt3,g.OA$]})}return ne})();const Ka={provide:tt,useExisting:(0,g.Rfq)(()=>hc),multi:!0};let hc=(()=>{class ne extends Re{writeValue(Z){this.setProperty("value",Z??"")}registerOnChange(Z){this.onChange=$e=>{Z(""==$e?null:parseFloat($e))}}static#e=this.\u0275fac=function(){let Z;return function(mt){return(Z||(Z=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function($e,mt){1&$e&&g.bIt("input",function(ir){return mt.onChange(ir.target.value)})("blur",function(){return mt.onTouched()})},features:[g.Jv_([Ka]),g.Vt3]})}return ne})(),fr=(()=>{class ne{static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275mod=g.$C({type:ne});static#n=this.\u0275inj=g.G2t({})}return ne})();const Ya={provide:tt,useExisting:(0,g.Rfq)(()=>za),multi:!0};let za=(()=>{class ne extends Re{writeValue(Z){this.setProperty("value",parseFloat(Z))}registerOnChange(Z){this.onChange=$e=>{Z(""==$e?null:parseFloat($e))}}static#e=this.\u0275fac=function(){let Z;return function(mt){return(Z||(Z=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function($e,mt){1&$e&&g.bIt("change",function(ir){return mt.onChange(ir.target.value)})("input",function(ir){return mt.onChange(ir.target.value)})("blur",function(){return mt.onTouched()})},features:[g.Jv_([Ya]),g.Vt3]})}return ne})();const qs=new g.nKC("NgModelWithFormControlWarning"),gr={provide:Dr,useExisting:(0,g.Rfq)(()=>il)};let il=(()=>{class ne extends Dr{set isDisabled(Z){}static#e=this._ngModelWarningSentOnce=!1;constructor(Z,$e,mt,Gn,ir){super(),this._ngModelWarningConfig=Gn,this.callSetDisabledState=ir,this.update=new g.bkB,this._ngModelWarningSent=!1,this._setValidators(Z),this._setAsyncValidators($e),this.valueAccessor=xo(0,mt)}ngOnChanges(Z){if(this._isControlChanged(Z)){const $e=Z.form.previousValue;$e&&qn($e,this,!1),Vn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}qo(Z,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Z){this.viewModel=Z,this.update.emit(Z)}_isControlChanged(Z){return Z.hasOwnProperty("form")}static#t=this.\u0275fac=function($e){return new($e||ne)(g.rXU(it,10),g.rXU(dt,10),g.rXU(tt,10),g.rXU(qs,8),g.rXU(tn,8))};static#n=this.\u0275dir=g.FsC({type:ne,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[g.Jv_([gr]),g.Vt3,g.OA$]})}return ne})();const Wr={provide:ci,useExisting:(0,g.Rfq)(()=>yi)};let yi=(()=>{class ne extends ci{constructor(Z,$e,mt){super(),this.callSetDisabledState=mt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new g.bkB,this._setValidators(Z),this._setAsyncValidators($e)}ngOnChanges(Z){this._checkFormPresent(),Z.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ii(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Z){const $e=this.form.get(Z.path);return Vn($e,Z,this.callSetDisabledState),$e.updateValueAndValidity({emitEvent:!1}),this.directives.push(Z),$e}getControl(Z){return this.form.get(Z.path)}removeControl(Z){qn(Z.control||null,Z,!1),function ta(ne,fe){const Z=ne.indexOf(fe);Z>-1&&ne.splice(Z,1)}(this.directives,Z)}addFormGroup(Z){this._setUpFormContainer(Z)}removeFormGroup(Z){this._cleanUpFormContainer(Z)}getFormGroup(Z){return this.form.get(Z.path)}addFormArray(Z){this._setUpFormContainer(Z)}removeFormArray(Z){this._cleanUpFormContainer(Z)}getFormArray(Z){return this.form.get(Z.path)}updateModel(Z,$e){this.form.get(Z.path).setValue($e)}onSubmit(Z){return this.submitted=!0,oo(this.form,this.directives),this.ngSubmit.emit(Z),"dialog"===Z?.target?.method}onReset(){this.resetForm()}resetForm(Z=void 0){this.form.reset(Z),this.submitted=!1}_updateDomValue(){this.directives.forEach(Z=>{const $e=Z.control,mt=this.form.get(Z.path);$e!==mt&&(qn($e||null,Z),pl(mt)&&(Vn(mt,Z,this.callSetDisabledState),Z.control=mt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Z){const $e=this.form.get(Z.path);Vr($e,Z),$e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Z){if(this.form){const $e=this.form.get(Z.path);$e&&function Gs(ne,fe){return ii(ne,fe)}($e,Z)&&$e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ni(this.form,this),this._oldForm&&ii(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(it,10),g.rXU(dt,10),g.rXU(tn,8))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","formGroup",""]],hostBindings:function($e,mt){1&$e&&g.bIt("submit",function(ir){return mt.onSubmit(ir)})("reset",function(){return mt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g.Jv_([Wr]),g.Vt3,g.OA$]})}return ne})();const ka={provide:Dr,useExisting:(0,g.Rfq)(()=>Is)};let Is=(()=>{class ne extends Dr{set isDisabled(Z){}static#e=this._ngModelWarningSentOnce=!1;constructor(Z,$e,mt,Gn,ir){super(),this._ngModelWarningConfig=ir,this._added=!1,this.name=null,this.update=new g.bkB,this._ngModelWarningSent=!1,this._parent=Z,this._setValidators($e),this._setAsyncValidators(mt),this.valueAccessor=xo(0,Gn)}ngOnChanges(Z){this._added||this._setUpControl(),qo(Z,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Z){this.viewModel=Z,this.update.emit(Z)}get path(){return Kt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function($e){return new($e||ne)(g.rXU(ci,13),g.rXU(it,10),g.rXU(dt,10),g.rXU(tt,10),g.rXU(qs,8))};static#n=this.\u0275dir=g.FsC({type:ne,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[g.Jv_([ka]),g.Vt3,g.OA$]})}return ne})();const wc={provide:tt,useExisting:(0,g.Rfq)(()=>rr),multi:!0};function Es(ne,fe){return null==ne?`${fe}`:(fe&&"object"==typeof fe&&(fe="Object"),`${ne}: ${fe}`.slice(0,50))}let rr=(()=>{class ne extends Re{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Z){this._compareWith=Z}writeValue(Z){this.value=Z;const mt=Es(this._getOptionId(Z),Z);this.setProperty("value",mt)}registerOnChange(Z){this.onChange=$e=>{this.value=this._getOptionValue($e),Z(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Z){for(const $e of this._optionMap.keys())if(this._compareWith(this._optionMap.get($e),Z))return $e;return null}_getOptionValue(Z){const $e=function ur(ne){return ne.split(":")[0]}(Z);return this._optionMap.has($e)?this._optionMap.get($e):Z}static#e=this.\u0275fac=function(){let Z;return function(mt){return(Z||(Z=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function($e,mt){1&$e&&g.bIt("change",function(ir){return mt.onChange(ir.target.value)})("blur",function(){return mt.onTouched()})},inputs:{compareWith:"compareWith"},features:[g.Jv_([wc]),g.Vt3]})}return ne})(),ml=(()=>{class ne{constructor(Z,$e,mt){this._element=Z,this._renderer=$e,this._select=mt,this._select&&(this.id=this._select._registerOption())}set ngValue(Z){null!=this._select&&(this._select._optionMap.set(this.id,Z),this._setElementValue(Es(this.id,Z)),this._select.writeValue(this._select.value))}set value(Z){this._setElementValue(Z),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Z){this._renderer.setProperty(this._element.nativeElement,"value",Z)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(g.aKT),g.rXU(g.sFG),g.rXU(rr,9))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return ne})();const Lc={provide:tt,useExisting:(0,g.Rfq)(()=>ua),multi:!0};function Qs(ne,fe){return null==ne?`${fe}`:("string"==typeof fe&&(fe=`'${fe}'`),fe&&"object"==typeof fe&&(fe="Object"),`${ne}: ${fe}`.slice(0,50))}let ua=(()=>{class ne extends Re{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Z){this._compareWith=Z}writeValue(Z){let $e;if(this.value=Z,Array.isArray(Z)){const mt=Z.map(Gn=>this._getOptionId(Gn));$e=(Gn,ir)=>{Gn._setSelected(mt.indexOf(ir.toString())>-1)}}else $e=(mt,Gn)=>{mt._setSelected(!1)};this._optionMap.forEach($e)}registerOnChange(Z){this.onChange=$e=>{const mt=[],Gn=$e.selectedOptions;if(void 0!==Gn){const ir=Gn;for(let zr=0;zr{class ne{constructor(Z,$e,mt){this._element=Z,this._renderer=$e,this._select=mt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Z){null!=this._select&&(this._value=Z,this._setElementValue(Qs(this.id,Z)),this._select.writeValue(this._select.value))}set value(Z){this._select?(this._value=Z,this._setElementValue(Qs(this.id,Z)),this._select.writeValue(this._select.value)):this._setElementValue(Z)}_setElementValue(Z){this._renderer.setProperty(this._element.nativeElement,"value",Z)}_setSelected(Z){this._renderer.setProperty(this._element.nativeElement,"selected",Z)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function($e){return new($e||ne)(g.rXU(g.aKT),g.rXU(g.sFG),g.rXU(ua,9))};static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return ne})(),ia=(()=>{class ne{constructor(){this._validator=dn}ngOnChanges(Z){if(this.inputName in Z){const $e=this.normalizeInput(Z[this.inputName].currentValue);this._enabled=this.enabled($e),this._validator=this._enabled?this.createValidator($e):dn,this._onChange&&this._onChange()}}validate(Z){return this._validator(Z)}registerOnValidatorChange(Z){this._onChange=Z}enabled(Z){return null!=Z}static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275dir=g.FsC({type:ne,features:[g.OA$]})}return ne})();const Ll={provide:it,useExisting:(0,g.Rfq)(()=>Lr),multi:!0},Wc={provide:it,useExisting:(0,g.Rfq)(()=>vo),multi:!0};let Lr=(()=>{class ne extends ia{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=g.L39,this.createValidator=Z=>di}enabled(Z){return Z}static#e=this.\u0275fac=function(){let Z;return function(mt){return(Z||(Z=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function($e,mt){2&$e&&g.BMQ("required",mt._enabled?"":null)},inputs:{required:"required"},features:[g.Jv_([Ll]),g.Vt3]})}return ne})(),vo=(()=>{class ne extends Lr{constructor(){super(...arguments),this.createValidator=Z=>ai}static#e=this.\u0275fac=function(){let Z;return function(mt){return(Z||(Z=g.xGo(ne)))(mt||ne)}}();static#t=this.\u0275dir=g.FsC({type:ne,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function($e,mt){2&$e&&g.BMQ("required",mt._enabled?"":null)},features:[g.Jv_([Wc]),g.Vt3]})}return ne})(),qr=(()=>{class ne{static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275mod=g.$C({type:ne});static#n=this.\u0275inj=g.G2t({imports:[fr]})}return ne})();class sc extends ft{constructor(fe,Z,$e){super(ic(Z),kn($e,Z)),this.controls=fe,this._initObservables(),this._setUpdateStrategy(Z),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(fe){return this.controls[this._adjustIndex(fe)]}push(fe,Z={}){this.controls.push(fe),this._registerControl(fe),this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}insert(fe,Z,$e={}){this.controls.splice(fe,0,Z),this._registerControl(Z),this.updateValueAndValidity({emitEvent:$e.emitEvent})}removeAt(fe,Z={}){let $e=this._adjustIndex(fe);$e<0&&($e=0),this.controls[$e]&&this.controls[$e]._registerOnCollectionChange(()=>{}),this.controls.splice($e,1),this.updateValueAndValidity({emitEvent:Z.emitEvent})}setControl(fe,Z,$e={}){let mt=this._adjustIndex(fe);mt<0&&(mt=0),this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),this.controls.splice(mt,1),Z&&(this.controls.splice(mt,0,Z),this._registerControl(Z)),this.updateValueAndValidity({emitEvent:$e.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(fe,Z={}){yt(this,0,fe),fe.forEach(($e,mt)=>{Un(this,!1,mt),this.at(mt).setValue($e,{onlySelf:!0,emitEvent:Z.emitEvent})}),this.updateValueAndValidity(Z)}patchValue(fe,Z={}){null!=fe&&(fe.forEach(($e,mt)=>{this.at(mt)&&this.at(mt).patchValue($e,{onlySelf:!0,emitEvent:Z.emitEvent})}),this.updateValueAndValidity(Z))}reset(fe=[],Z={}){this._forEachChild(($e,mt)=>{$e.reset(fe[mt],{onlySelf:!0,emitEvent:Z.emitEvent})}),this._updatePristine(Z),this._updateTouched(Z),this.updateValueAndValidity(Z)}getRawValue(){return this.controls.map(fe=>fe.getRawValue())}clear(fe={}){this.controls.length<1||(this._forEachChild(Z=>Z._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:fe.emitEvent}))}_adjustIndex(fe){return fe<0?fe+this.length:fe}_syncPendingControls(){let fe=this.controls.reduce((Z,$e)=>!!$e._syncPendingControls()||Z,!1);return fe&&this.updateValueAndValidity({onlySelf:!0}),fe}_forEachChild(fe){this.controls.forEach((Z,$e)=>{fe(Z,$e)})}_updateValue(){this.value=this.controls.filter(fe=>fe.enabled||this.disabled).map(fe=>fe.value)}_anyControls(fe){return this.controls.some(Z=>Z.enabled&&fe(Z))}_setUpControls(){this._forEachChild(fe=>this._registerControl(fe))}_allControlsDisabled(){for(const fe of this.controls)if(fe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(fe){fe.setParent(this),fe._registerOnCollectionChange(this._onCollectionChange)}_find(fe){return this.at(fe)??null}}const Rt=ne=>ne instanceof sc;let nn=(()=>{class ne{static withConfig(Z){return{ngModule:ne,providers:[{provide:tn,useValue:Z.callSetDisabledState??Tt}]}}static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275mod=g.$C({type:ne});static#n=this.\u0275inj=g.G2t({imports:[qr]})}return ne})(),Qt=(()=>{class ne{static withConfig(Z){return{ngModule:ne,providers:[{provide:qs,useValue:Z.warnOnNgModelWithFormControl??"always"},{provide:tn,useValue:Z.callSetDisabledState??Tt}]}}static#e=this.\u0275fac=function($e){return new($e||ne)};static#t=this.\u0275mod=g.$C({type:ne});static#n=this.\u0275inj=g.G2t({imports:[qr]})}return ne})()},6098:(vn,J,F)=>{"use strict";F.d(J,{B7:()=>jt,B8:()=>Je,hE:()=>Dr,up:()=>Ki});var g=F(2978),o=F(6610);class V extends o.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends V{static makeCurrent(){(0,o.ZD)(new oe)}onAndCancel(kn,It,Jt){return kn.addEventListener(It,Jt),()=>{kn.removeEventListener(It,Jt)}}dispatchEvent(kn,It){kn.dispatchEvent(It)}remove(kn){kn.parentNode&&kn.parentNode.removeChild(kn)}createElement(kn,It){return(It=It||this.getDefaultDocument()).createElement(kn)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(kn){return kn.nodeType===Node.ELEMENT_NODE}isShadowRoot(kn){return kn instanceof DocumentFragment}getGlobalEventTarget(kn,It){return"window"===It?window:"document"===It?kn:"body"===It?kn.body:null}getBaseHref(kn){const It=function pe(){return De=De||document.querySelector("base"),De?De.getAttribute("href"):null}();return null==It?null:function be(jn){Ee=Ee||document.createElement("a"),Ee.setAttribute("href",jn);const kn=Ee.pathname;return"/"===kn.charAt(0)?kn:`/${kn}`}(It)}resetBaseElement(){De=null}getUserAgent(){return window.navigator.userAgent}getCookie(kn){return(0,o._b)(document.cookie,kn)}}let Ee,De=null,Te=(()=>{class jn{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();const Ve=new g.nKC("EventManagerPlugins");let ze=(()=>{class jn{constructor(It,Jt){this._zone=Jt,this._eventNameToPlugin=new Map,It.forEach(Un=>{Un.manager=this}),this._plugins=It.slice().reverse()}addEventListener(It,Jt,Un){return this._findPluginFor(Jt).addEventListener(It,Jt,Un)}getZone(){return this._zone}_findPluginFor(It){let Jt=this._eventNameToPlugin.get(It);if(Jt)return Jt;if(Jt=this._plugins.find(yt=>yt.supports(It)),!Jt)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(It,Jt),Jt}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(Ve),g.KVO(g.SKi))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();class vt{constructor(kn){this._doc=kn}}const Re="ng-app-id";let tt=(()=>{class jn{constructor(It,Jt,Un,yt={}){this.doc=It,this.appId=Jt,this.nonce=Un,this.platformId=yt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,o.Vy)(yt),this.resetHostNodes()}addStyles(It){for(const Jt of It)1===this.changeUsageCount(Jt,1)&&this.onStyleAdded(Jt)}removeStyles(It){for(const Jt of It)this.changeUsageCount(Jt,-1)<=0&&this.onStyleRemoved(Jt)}ngOnDestroy(){const It=this.styleNodesInDOM;It&&(It.forEach(Jt=>Jt.remove()),It.clear());for(const Jt of this.getAllStyles())this.onStyleRemoved(Jt);this.resetHostNodes()}addHost(It){this.hostNodes.add(It);for(const Jt of this.getAllStyles())this.addStyleToHost(It,Jt)}removeHost(It){this.hostNodes.delete(It)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(It){for(const Jt of this.hostNodes)this.addStyleToHost(Jt,It)}onStyleRemoved(It){const Jt=this.styleRef;Jt.get(It)?.elements?.forEach(Un=>Un.remove()),Jt.delete(It)}collectServerRenderedStyles(){const It=this.doc.head?.querySelectorAll(`style[${Re}="${this.appId}"]`);if(It?.length){const Jt=new Map;return It.forEach(Un=>{null!=Un.textContent&&Jt.set(Un.textContent,Un)}),Jt}return null}changeUsageCount(It,Jt){const Un=this.styleRef;if(Un.has(It)){const yt=Un.get(It);return yt.usage+=Jt,yt.usage}return Un.set(It,{usage:Jt,elements:[]}),Jt}getStyleElement(It,Jt){const Un=this.styleNodesInDOM,yt=Un?.get(Jt);if(yt?.parentNode===It)return Un.delete(Jt),yt.removeAttribute(Re),yt;{const ft=this.doc.createElement("style");return this.nonce&&ft.setAttribute("nonce",this.nonce),ft.textContent=Jt,this.platformIsServer&&ft.setAttribute(Re,this.appId),ft}}addStyleToHost(It,Jt){const Un=this.getStyleElement(It,Jt);It.appendChild(Un);const yt=this.styleRef,ft=yt.get(Jt)?.elements;ft?ft.push(Un):yt.set(Jt,{elements:[Un],usage:1})}resetHostNodes(){const It=this.hostNodes;It.clear(),It.add(this.doc.head)}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();const de={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/"},Fe=/%COMP%/g,He=new g.nKC("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function dt(jn,kn){return kn.map(It=>It.replace(Fe,jn))}let jt=(()=>{class jn{constructor(It,Jt,Un,yt,ft,Pt,Cn,pn=null){this.eventManager=It,this.sharedStylesHost=Jt,this.appId=Un,this.removeStylesOnCompDestroy=yt,this.doc=ft,this.platformId=Pt,this.ngZone=Cn,this.nonce=pn,this.rendererByCompId=new Map,this.platformIsServer=(0,o.Vy)(Pt),this.defaultRenderer=new Wt(It,ft,Cn,this.platformIsServer)}createRenderer(It,Jt){if(!It||!Jt)return this.defaultRenderer;this.platformIsServer&&Jt.encapsulation===g.gXe.ShadowDom&&(Jt={...Jt,encapsulation:g.gXe.Emulated});const Un=this.getOrCreateRenderer(It,Jt);return Un instanceof $i?Un.applyToHost(It):Un instanceof Li&&Un.applyStyles(),Un}getOrCreateRenderer(It,Jt){const Un=this.rendererByCompId;let yt=Un.get(Jt.id);if(!yt){const ft=this.doc,Pt=this.ngZone,Cn=this.eventManager,pn=this.sharedStylesHost,Di=this.removeStylesOnCompDestroy,nr=this.platformIsServer;switch(Jt.encapsulation){case g.gXe.Emulated:yt=new $i(Cn,pn,Jt,this.appId,Di,ft,Pt,nr);break;case g.gXe.ShadowDom:return new ai(Cn,pn,It,Jt,ft,Pt,this.nonce,nr);default:yt=new Li(Cn,pn,Jt,Di,ft,Pt,nr)}Un.set(Jt.id,yt)}return yt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(ze),g.KVO(tt),g.KVO(g.sZ2),g.KVO(He),g.KVO(o.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();class Wt{constructor(kn,It,Jt,Un){this.eventManager=kn,this.doc=It,this.ngZone=Jt,this.platformIsServer=Un,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(kn,It){return It?this.doc.createElementNS(de[It]||It,kn):this.doc.createElement(kn)}createComment(kn){return this.doc.createComment(kn)}createText(kn){return this.doc.createTextNode(kn)}appendChild(kn,It){(di(kn)?kn.content:kn).appendChild(It)}insertBefore(kn,It,Jt){kn&&(di(kn)?kn.content:kn).insertBefore(It,Jt)}removeChild(kn,It){kn&&kn.removeChild(It)}selectRootElement(kn,It){let Jt="string"==typeof kn?this.doc.querySelector(kn):kn;if(!Jt)throw new g.wOt(-5104,!1);return It||(Jt.textContent=""),Jt}parentNode(kn){return kn.parentNode}nextSibling(kn){return kn.nextSibling}setAttribute(kn,It,Jt,Un){if(Un){It=Un+":"+It;const yt=de[Un];yt?kn.setAttributeNS(yt,It,Jt):kn.setAttribute(It,Jt)}else kn.setAttribute(It,Jt)}removeAttribute(kn,It,Jt){if(Jt){const Un=de[Jt];Un?kn.removeAttributeNS(Un,It):kn.removeAttribute(`${Jt}:${It}`)}else kn.removeAttribute(It)}addClass(kn,It){kn.classList.add(It)}removeClass(kn,It){kn.classList.remove(It)}setStyle(kn,It,Jt,Un){Un&(g.czy.DashCase|g.czy.Important)?kn.style.setProperty(It,Jt,Un&g.czy.Important?"important":""):kn.style[It]=Jt}removeStyle(kn,It,Jt){Jt&g.czy.DashCase?kn.style.removeProperty(It):kn.style[It]=""}setProperty(kn,It,Jt){kn[It]=Jt}setValue(kn,It){kn.nodeValue=It}listen(kn,It,Jt){if("string"==typeof kn&&!(kn=(0,o.QT)().getGlobalEventTarget(this.doc,kn)))throw new Error(`Unsupported event target ${kn} for event ${It}`);return this.eventManager.addEventListener(kn,It,this.decoratePreventDefault(Jt))}decoratePreventDefault(kn){return It=>{if("__ngUnwrap__"===It)return kn;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>kn(It)):kn(It))&&It.preventDefault()}}}function di(jn){return"TEMPLATE"===jn.tagName&&void 0!==jn.content}class ai extends Wt{constructor(kn,It,Jt,Un,yt,ft,Pt,Cn){super(kn,yt,ft,Cn),this.sharedStylesHost=It,this.hostEl=Jt,this.shadowRoot=Jt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const pn=dt(Un.id,Un.styles);for(const Di of pn){const nr=document.createElement("style");Pt&&nr.setAttribute("nonce",Pt),nr.textContent=Di,this.shadowRoot.appendChild(nr)}}nodeOrShadowRoot(kn){return kn===this.hostEl?this.shadowRoot:kn}appendChild(kn,It){return super.appendChild(this.nodeOrShadowRoot(kn),It)}insertBefore(kn,It,Jt){return super.insertBefore(this.nodeOrShadowRoot(kn),It,Jt)}removeChild(kn,It){return super.removeChild(this.nodeOrShadowRoot(kn),It)}parentNode(kn){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(kn)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Li extends Wt{constructor(kn,It,Jt,Un,yt,ft,Pt,Cn){super(kn,yt,ft,Pt),this.sharedStylesHost=It,this.removeStylesOnCompDestroy=Un,this.styles=Cn?dt(Cn,Jt.styles):Jt.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class $i extends Li{constructor(kn,It,Jt,Un,yt,ft,Pt,Cn){const pn=Un+"-"+Jt.id;super(kn,It,Jt,yt,ft,Pt,Cn,pn),this.contentAttr=function Se(jn){return"_ngcontent-%COMP%".replace(Fe,jn)}(pn),this.hostAttr=function it(jn){return"_nghost-%COMP%".replace(Fe,jn)}(pn)}applyToHost(kn){this.applyStyles(),this.setAttribute(kn,this.hostAttr,"")}createElement(kn,It){const Jt=super.createElement(kn,It);return super.setAttribute(Jt,this.contentAttr,""),Jt}}let Hr=(()=>{class jn extends vt{constructor(It){super(It)}supports(It){return!0}addEventListener(It,Jt,Un){return It.addEventListener(Jt,Un,!1),()=>this.removeEventListener(It,Jt,Un)}removeEventListener(It,Jt,Un){return It.removeEventListener(Jt,Un)}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();const ui=["alt","control","meta","shift"],dn={"\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"},nt={alt:jn=>jn.altKey,control:jn=>jn.ctrlKey,meta:jn=>jn.metaKey,shift:jn=>jn.shiftKey};let ht=(()=>{class jn extends vt{constructor(It){super(It)}supports(It){return null!=jn.parseEventName(It)}addEventListener(It,Jt,Un){const yt=jn.parseEventName(Jt),ft=jn.eventCallback(yt.fullKey,Un,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.QT)().onAndCancel(It,yt.domEventName,ft))}static parseEventName(It){const Jt=It.toLowerCase().split("."),Un=Jt.shift();if(0===Jt.length||"keydown"!==Un&&"keyup"!==Un)return null;const yt=jn._normalizeKey(Jt.pop());let ft="",Pt=Jt.indexOf("code");if(Pt>-1&&(Jt.splice(Pt,1),ft="code."),ui.forEach(pn=>{const Di=Jt.indexOf(pn);Di>-1&&(Jt.splice(Di,1),ft+=pn+".")}),ft+=yt,0!=Jt.length||0===yt.length)return null;const Cn={};return Cn.domEventName=Un,Cn.fullKey=ft,Cn}static matchEventFullKeyCode(It,Jt){let Un=dn[It.key]||It.key,yt="";return Jt.indexOf("code.")>-1&&(Un=It.code,yt="code."),!(null==Un||!Un)&&(Un=Un.toLowerCase()," "===Un?Un="space":"."===Un&&(Un="dot"),ui.forEach(ft=>{ft!==Un&&(0,nt[ft])(It)&&(yt+=ft+".")}),yt+=Un,yt===Jt)}static eventCallback(It,Jt,Un){return yt=>{jn.matchEventFullKeyCode(yt,It)&&Un.runGuarded(()=>Jt(yt))}}static _normalizeKey(It){return"esc"===It?"escape":It}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ))};static#t=this.\u0275prov=g.jDH({token:jn,factory:jn.\u0275fac})}return jn})();function Je(jn,kn){return(0,g.TL3)({rootComponent:jn,...Ue(kn)})}function Ue(jn){return{appProviders:[...Gt,...jn?.providers??[]],platformProviders:Ce}}const Ce=[{provide:g.Agw,useValue:o.AJ},{provide:g.PLl,useValue:function H(){oe.makeCurrent()},multi:!0},{provide:o.qQ,useFactory:function xe(){return(0,g.TL$)(document),document},deps:[]}],Gt=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function te(){return new g.zcH},deps:[]},{provide:Ve,useClass:Hr,multi:!0,deps:[o.qQ,g.SKi,g.Agw]},{provide:Ve,useClass:ht,multi:!0,deps:[o.qQ]},jt,tt,ze,{provide:g._9s,useExisting:jt},{provide:o.N0,useClass:Te,deps:[]},[]];let Dr=(()=>{class jn{constructor(It){this._doc=It}getTitle(){return this._doc.title}setTitle(It){this._doc.title=It||""}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ))};static#t=this.\u0275prov=g.jDH({token:jn,factory:function(Jt){let Un=null;return Un=Jt?new Jt:function ci(){return new Dr((0,g.KVO)(o.qQ))}(),Un},providedIn:"root"})}return jn})();typeof window<"u"&&window;let Ki=(()=>{class jn{static#e=this.\u0275fac=function(Jt){return new(Jt||jn)};static#t=this.\u0275prov=g.jDH({token:jn,factory:function(Jt){let Un=null;return Un=Jt?new(Jt||jn):g.KVO(so),Un},providedIn:"root"})}return jn})(),so=(()=>{class jn extends Ki{constructor(It){super(),this._doc=It}sanitize(It,Jt){if(null==Jt)return null;switch(It){case g.WPN.NONE:return Jt;case g.WPN.HTML:return(0,g.ZF7)(Jt,"HTML")?(0,g.rcV)(Jt):(0,g.h9k)(this._doc,String(Jt)).toString();case g.WPN.STYLE:return(0,g.ZF7)(Jt,"Style")?(0,g.rcV)(Jt):Jt;case g.WPN.SCRIPT:if((0,g.ZF7)(Jt,"Script"))return(0,g.rcV)(Jt);throw new g.wOt(5200,!1);case g.WPN.URL:return(0,g.ZF7)(Jt,"URL")?(0,g.rcV)(Jt):(0,g.$MX)(String(Jt));case g.WPN.RESOURCE_URL:if((0,g.ZF7)(Jt,"ResourceURL"))return(0,g.rcV)(Jt);throw new g.wOt(5201,!1);default:throw new g.wOt(5202,!1)}}bypassSecurityTrustHtml(It){return(0,g.Kcf)(It)}bypassSecurityTrustStyle(It){return(0,g.cWb)(It)}bypassSecurityTrustScript(It){return(0,g.UyX)(It)}bypassSecurityTrustUrl(It){return(0,g.osQ)(It)}bypassSecurityTrustResourceUrl(It){return(0,g.e5t)(It)}static#e=this.\u0275fac=function(Jt){return new(Jt||jn)(g.KVO(o.qQ))};static#t=this.\u0275prov=g.jDH({token:jn,factory:function(Jt){let Un=null;return Un=Jt?new Jt:function Ys(jn){return new so(jn.get(o.qQ))}(g.KVO(g.zZn)),Un},providedIn:"root"})}return jn})()},1040:(vn,J,F)=>{"use strict";F.d(J,{nX:()=>qs,wF:()=>Ps,Z:()=>ta,Kp:()=>Ud,vX:()=>Z1,AL:()=>na,Ix:()=>Za,Wk:()=>ac,wQ:()=>R1,iI:()=>w1,n3:()=>ns,lh:()=>Wd,oH:()=>ou,Sn:()=>qd});var g=F(2978),o=F(2319),V=F(8399),oe=F(756),De=F(5981),pe=F(199);const be=(0,F(4520).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var me=F(6753),Te=F(8001),Ve=F(6106),ze=F(9406),vt=F(4418);function Re(I,B){const R=(0,vt.T)(I)?I:()=>I,q=ae=>ae.error(R());return new ze.c(B?ae=>B.schedule(q,0,ae):q)}var tt=F(8448),de=F(2029),Fe=F(9867),_t=F(6111);function at(){return(0,Fe.N)((I,B)=>{let R=null;I._refCount++;const q=(0,_t._)(B,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(R=null);const ae=I._connection,Ne=R;R=null,ae&&(!Ne||ae===Ne)&&ae.unsubscribe(),B.unsubscribe()});I.subscribe(q),q.closed||(R=I.connect())})}class Be extends ze.c{constructor(B,R){super(),this.source=B,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,Fe.S)(B)&&(this.lift=B.lift)}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:B}=this;this._subject=this._connection=null,B?.unsubscribe()}connect(){let B=this._connection;if(!B){B=this._connection=new de.yU;const R=this.getSubject();B.add(this.source.subscribe((0,_t._)(R,void 0,()=>{this._teardown(),R.complete()},q=>{this._teardown(),R.error(q)},()=>this._teardown()))),B.closed&&(this._connection=null,B=de.yU.EMPTY)}return B}refCount(){return at()(this)}}var he=F(6104),He=F(6610),Se=F(3527),it=F(2831),dt=F(8486),jt=F(965),Wt=F(8503),wn=F(3422);function Wn(I){return(0,Fe.N)((B,R)=>{let q=!1;B.subscribe((0,_t._)(R,ae=>{q=!0,R.next(ae)},()=>{q||R.next(I),R.complete()}))})}function di(I=ai){return(0,Fe.N)((B,R)=>{let q=!1;B.subscribe((0,_t._)(R,ae=>{q=!0,R.next(ae)},()=>q?R.complete():R.error(I())))})}function ai(){return new be}var Li=F(9656);function $i(I,B){const R=arguments.length>=2;return q=>q.pipe(I?(0,Wt.p)((ae,Ne)=>I(ae,Ne,q)):Li.D,(0,dt.s)(1),R?Wn(B):di(()=>new be))}var Hr=F(4807),ui=F(7236),dn=F(4526),nt=F(2360);function Je(I){return I<=0?()=>tt.w:(0,Fe.N)((B,R)=>{let q=[];B.subscribe((0,_t._)(R,ae=>{q.push(ae),I{for(const ae of q)R.next(ae);R.complete()},void 0,()=>{q=null}))})}var Ue=F(3770),Ze=F(6347),H=F(6340),te=F(3806),xe=F(6098);const Ce="primary",zt=Symbol("RouteTitle");class rt{constructor(B){this.params=B||{}}has(B){return Object.prototype.hasOwnProperty.call(this.params,B)}get(B){if(this.has(B)){const R=this.params[B];return Array.isArray(R)?R[0]:R}return null}getAll(B){if(this.has(B)){const R=this.params[B];return Array.isArray(R)?R:[R]}return[]}get keys(){return Object.keys(this.params)}}function xt(I){return new rt(I)}function Gt(I,B,R){const q=R.path.split("/");if(q.length>I.length||"full"===R.pathMatch&&(B.hasChildren()||q.lengthq[Ne]===ae)}return I===B}function or(I){return I.length>0?I[I.length-1]:null}function ci(I){return(0,o.A)(I)?I:(0,g.jNT)(I)?(0,V.H)(Promise.resolve(I)):(0,oe.of)(I)}const Dr={exact:function Qn(I,B,R){if(!Qi(I.segments,B.segments)||!Bt(I.segments,B.segments,R)||I.numberOfChildren!==B.numberOfChildren)return!1;for(const q in B.children)if(!I.children[q]||!Qn(I.children[q],B.children[q],R))return!1;return!0},subset:qe},Tr={exact:function On(I,B){return In(I,B)},subset:function fi(I,B){return Object.keys(B).length<=Object.keys(I).length&&Object.keys(B).every(R=>xi(I[R],B[R]))},ignored:()=>!0};function cn(I,B,R){return Dr[R.paths](I.root,B.root,R.matrixParams)&&Tr[R.queryParams](I.queryParams,B.queryParams)&&!("exact"===R.fragment&&I.fragment!==B.fragment)}function qe(I,B,R){return Mt(I,B,B.segments,R)}function Mt(I,B,R,q){if(I.segments.length>R.length){const ae=I.segments.slice(0,R.length);return!(!Qi(ae,R)||B.hasChildren()||!Bt(ae,R,q))}if(I.segments.length===R.length){if(!Qi(I.segments,R)||!Bt(I.segments,R,q))return!1;for(const ae in B.children)if(!I.children[ae]||!qe(I.children[ae],B.children[ae],q))return!1;return!0}{const ae=R.slice(0,I.segments.length),Ne=R.slice(I.segments.length);return!!(Qi(I.segments,ae)&&Bt(I.segments,ae,q)&&I.children[Ce])&&Mt(I.children[Ce],B,Ne,q)}}function Bt(I,B,R){return B.every((q,ae)=>Tr[R](I[ae].parameters,q.parameters))}class hn{constructor(B=new Mn([],{}),R={},q=null){this.root=B,this.queryParams=R,this.fragment=q}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap}toString(){return Ki.serialize(this)}}class Mn{constructor(B,R){this.segments=B,this.children=R,this.parent=null,Object.values(R).forEach(q=>q.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ys(this)}}class Vi{constructor(B,R){this.path=B,this.parameters=R}get parameterMap(){return this._parameterMap||(this._parameterMap=xt(this.parameters)),this._parameterMap}toString(){return Wo(this)}}function Qi(I,B){return I.length===B.length&&I.every((R,q)=>R.path===B[q].path)}let no=(()=>{class I{static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:function(){return new Jr},providedIn:"root"})}return I})();class Jr{parse(B){const R=new pn(B);return new hn(R.parseRootSegment(),R.parseQueryParams(),R.parseFragment())}serialize(B){const R=`/${so(B.root,!0)}`,q=function jn(I){const B=Object.keys(I).map(R=>{const q=I[R];return Array.isArray(q)?q.map(ae=>`${qa(R)}=${qa(ae)}`).join("&"):`${qa(R)}=${qa(q)}`}).filter(R=>!!R);return B.length?`?${B.join("&")}`:""}(B.queryParams);return`${R}${q}${"string"==typeof B.fragment?`#${function xc(I){return encodeURI(I)}(B.fragment)}`:""}`}}const Ki=new Jr;function Ys(I){return I.segments.map(B=>Wo(B)).join("/")}function so(I,B){if(!I.hasChildren())return Ys(I);if(B){const R=I.children[Ce]?so(I.children[Ce],!1):"",q=[];return Object.entries(I.children).forEach(([ae,Ne])=>{ae!==Ce&&q.push(`${ae}:${so(Ne,!1)}`)}),q.length>0?`${R}(${q.join("//")})`:R}{const R=function dr(I,B){let R=[];return Object.entries(I.children).forEach(([q,ae])=>{q===Ce&&(R=R.concat(B(ae,q)))}),Object.entries(I.children).forEach(([q,ae])=>{q!==Ce&&(R=R.concat(B(ae,q)))}),R}(I,(q,ae)=>ae===Ce?[so(I.children[Ce],!1)]:[`${ae}:${so(q,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[Ce]?`${Ys(I)}/${R[0]}`:`${Ys(I)}/(${R.join("//")})`}}function zo(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qa(I){return zo(I).replace(/%3B/gi,";")}function mo(I){return zo(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ss(I){return decodeURIComponent(I)}function io(I){return Ss(I.replace(/\+/g,"%20"))}function Wo(I){return`${mo(I.path)}${function ic(I){return Object.keys(I).map(B=>`;${mo(B)}=${mo(I[B])}`).join("")}(I.parameters)}`}const kn=/^[^\/()?;#]+/;function It(I){const B=I.match(kn);return B?B[0]:""}const Jt=/^[^\/()?;=#]+/,yt=/^[^=?&#]+/,Pt=/^[^&#]+/;class pn{constructor(B){this.url=B,this.remaining=B}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Mn([],{}):new Mn([],this.parseChildren())}parseQueryParams(){const B={};if(this.consumeOptional("?"))do{this.parseQueryParam(B)}while(this.consumeOptional("&"));return B}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const B=[];for(this.peekStartsWith("(")||B.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),B.push(this.parseSegment());let R={};this.peekStartsWith("/(")&&(this.capture("/"),R=this.parseParens(!0));let q={};return this.peekStartsWith("(")&&(q=this.parseParens(!1)),(B.length>0||Object.keys(R).length>0)&&(q[Ce]=new Mn(B,R)),q}parseSegment(){const B=It(this.remaining);if(""===B&&this.peekStartsWith(";"))throw new g.wOt(4009,!1);return this.capture(B),new Vi(Ss(B),this.parseMatrixParams())}parseMatrixParams(){const B={};for(;this.consumeOptional(";");)this.parseParam(B);return B}parseParam(B){const R=function Un(I){const B=I.match(Jt);return B?B[0]:""}(this.remaining);if(!R)return;this.capture(R);let q="";if(this.consumeOptional("=")){const ae=It(this.remaining);ae&&(q=ae,this.capture(q))}B[Ss(R)]=Ss(q)}parseQueryParam(B){const R=function ft(I){const B=I.match(yt);return B?B[0]:""}(this.remaining);if(!R)return;this.capture(R);let q="";if(this.consumeOptional("=")){const bt=function Cn(I){const B=I.match(Pt);return B?B[0]:""}(this.remaining);bt&&(q=bt,this.capture(q))}const ae=io(R),Ne=io(q);if(B.hasOwnProperty(ae)){let bt=B[ae];Array.isArray(bt)||(bt=[bt],B[ae]=bt),bt.push(Ne)}else B[ae]=Ne}parseParens(B){const R={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const q=It(this.remaining),ae=this.remaining[q.length];if("/"!==ae&&")"!==ae&&";"!==ae)throw new g.wOt(4010,!1);let Ne;q.indexOf(":")>-1?(Ne=q.slice(0,q.indexOf(":")),this.capture(Ne),this.capture(":")):B&&(Ne=Ce);const bt=this.parseChildren();R[Ne]=1===Object.keys(bt).length?bt[Ce]:new Mn([],bt),this.consumeOptional("//")}return R}peekStartsWith(B){return this.remaining.startsWith(B)}consumeOptional(B){return!!this.peekStartsWith(B)&&(this.remaining=this.remaining.substring(B.length),!0)}capture(B){if(!this.consumeOptional(B))throw new g.wOt(4011,!1)}}function Di(I){return I.segments.length>0?new Mn([],{[Ce]:I}):I}function nr(I){const B={};for(const q of Object.keys(I.children)){const Ne=nr(I.children[q]);if(q===Ce&&0===Ne.segments.length&&Ne.hasChildren())for(const[bt,an]of Object.entries(Ne.children))B[bt]=an;else(Ne.segments.length>0||Ne.hasChildren())&&(B[q]=Ne)}return function tn(I){if(1===I.numberOfChildren&&I.children[Ce]){const B=I.children[Ce];return new Mn(I.segments.concat(B.segments),B.children)}return I}(new Mn(I.segments,B))}function Tt(I){return I instanceof hn}function Vn(I){let B;const ae=Di(function R(Ne){const bt={};for(const un of Ne.children){const Ci=R(un);bt[un.outlet]=Ci}const an=new Mn(Ne.url,bt);return Ne===I&&(B=an),an}(I.root));return B??ae}function qn(I,B,R,q){let ae=I;for(;ae.parent;)ae=ae.parent;if(0===B.length)return Ni(ae,ae,ae,R,q);const Ne=function Gr(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new lr(!0,0,I);let B=0,R=!1;const q=I.reduce((ae,Ne,bt)=>{if("object"==typeof Ne&&null!=Ne){if(Ne.outlets){const an={};return Object.entries(Ne.outlets).forEach(([un,Ci])=>{an[un]="string"==typeof Ci?Ci.split("/"):Ci}),[...ae,{outlets:an}]}if(Ne.segmentPath)return[...ae,Ne.segmentPath]}return"string"!=typeof Ne?[...ae,Ne]:0===bt?(Ne.split("/").forEach((an,un)=>{0==un&&"."===an||(0==un&&""===an?R=!0:".."===an?B++:""!=an&&ae.push(an))}),ae):[...ae,Ne]},[]);return new lr(R,B,q)}(B);if(Ne.toRoot())return Ni(ae,ae,new Mn([],{}),R,q);const bt=function ks(I,B,R){if(I.isAbsolute)return new xs(B,!0,0);if(!R)return new xs(B,!1,NaN);if(null===R.parent)return new xs(R,!0,0);const q=pi(I.commands[0])?0:1;return function Vr(I,B,R){let q=I,ae=B,Ne=R;for(;Ne>ae;){if(Ne-=ae,q=q.parent,!q)throw new g.wOt(4005,!1);ae=q.segments.length}return new xs(q,!1,ae-Ne)}(R,R.segments.length-1+q,I.numberOfDoubleDots)}(Ne,ae,I),an=bt.processChildren?is(bt.segmentGroup,bt.index,Ne.commands):Fr(bt.segmentGroup,bt.index,Ne.commands);return Ni(ae,bt.segmentGroup,an,R,q)}function pi(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function ti(I){return"object"==typeof I&&null!=I&&I.outlets}function Ni(I,B,R,q,ae){let bt,Ne={};q&&Object.entries(q).forEach(([un,Ci])=>{Ne[un]=Array.isArray(Ci)?Ci.map(Ji=>`${Ji}`):`${Ci}`}),bt=I===B?R:ii(I,B,R);const an=Di(nr(bt));return new hn(an,Ne,ae)}function ii(I,B,R){const q={};return Object.entries(I.children).forEach(([ae,Ne])=>{q[ae]=Ne===B?R:ii(Ne,B,R)}),new Mn(I.segments,q)}class lr{constructor(B,R,q){if(this.isAbsolute=B,this.numberOfDoubleDots=R,this.commands=q,B&&q.length>0&&pi(q[0]))throw new g.wOt(4003,!1);const ae=q.find(ti);if(ae&&ae!==or(q))throw new g.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xs{constructor(B,R,q){this.segmentGroup=B,this.processChildren=R,this.index=q}}function Fr(I,B,R){if(I||(I=new Mn([],{})),0===I.segments.length&&I.hasChildren())return is(I,B,R);const q=function Ro(I,B,R){let q=0,ae=B;const Ne={match:!1,pathIndex:0,commandIndex:0};for(;ae=R.length)return Ne;const bt=I.segments[ae],an=R[q];if(ti(an))break;const un=`${an}`,Ci=q0&&void 0===un)break;if(un&&Ci&&"object"==typeof Ci&&void 0===Ci.outlets){if(!ea(un,Ci,bt))return Ne;q+=2}else{if(!ea(un,{},bt))return Ne;q++}ae++}return{match:!0,pathIndex:ae,commandIndex:q}}(I,B,R),ae=R.slice(q.commandIndex);if(q.match&&q.pathIndexNe!==Ce)&&I.children[Ce]&&1===I.numberOfChildren&&0===I.children[Ce].segments.length){const Ne=is(I.children[Ce],B,R);return new Mn(I.segments,Ne.children)}return Object.entries(q).forEach(([Ne,bt])=>{"string"==typeof bt&&(bt=[bt]),null!==bt&&(ae[Ne]=Fr(I.children[Ne],B,bt))}),Object.entries(I.children).forEach(([Ne,bt])=>{void 0===q[Ne]&&(ae[Ne]=bt)}),new Mn(I.segments,ae)}}function Zo(I,B,R){const q=I.segments.slice(0,B);let ae=0;for(;ae{"string"==typeof q&&(q=[q]),null!==q&&(B[R]=Zo(new Mn([],{}),0,q))}),B}function qo(I){const B={};return Object.entries(I).forEach(([R,q])=>B[R]=`${q}`),B}function ea(I,B,R){return I==R.path&&In(B,R.parameters)}const oo="imperative";class xo{constructor(B,R){this.id=B,this.url=R}}class ta extends xo{constructor(B,R,q="imperative",ae=null){super(B,R),this.type=0,this.navigationTrigger=q,this.restoredState=ae}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ps extends xo{constructor(B,R,q){super(B,R),this.urlAfterRedirects=q,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ma extends xo{constructor(B,R,q,ae){super(B,R),this.reason=q,this.code=ae,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ws extends xo{constructor(B,R,q,ae){super(B,R),this.reason=q,this.code=ae,this.type=16}}class La extends xo{constructor(B,R,q,ae){super(B,R),this.error=q,this.target=ae,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ao extends xo{constructor(B,R,q,ae){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class l1 extends xo{constructor(B,R,q,ae){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hc extends xo{constructor(B,R,q,ae,Ne){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.shouldActivate=Ne,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ol extends xo{constructor(B,R,q,ae){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pl extends xo{constructor(B,R,q,ae){super(B,R),this.urlAfterRedirects=q,this.state=ae,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class na{constructor(B){this.route=B,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Z1{constructor(B){this.route=B,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rc{constructor(B){this.snapshot=B,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ql{constructor(B){this.snapshot=B,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class go{constructor(B){this.snapshot=B,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xa{constructor(B){this.snapshot=B,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ws{constructor(B,R,q){this.routerEvent=B,this.position=R,this.anchor=q,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class tl{}class As{constructor(B){this.url=B}}class nl{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ka,this.attachRef=null}}let Ka=(()=>{class I{constructor(){this.contexts=new Map}onChildOutletCreated(R,q){const ae=this.getOrCreateContext(R);ae.outlet=q,this.contexts.set(R,ae)}onChildOutletDestroyed(R){const q=this.getContext(R);q&&(q.outlet=null,q.attachRef=null)}onOutletDeactivated(){const R=this.contexts;return this.contexts=new Map,R}onOutletReAttached(R){this.contexts=R}getOrCreateContext(R){let q=this.getContext(R);return q||(q=new nl,this.contexts.set(R,q)),q}getContext(R){return this.contexts.get(R)||null}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();class hc{constructor(B){this._root=B}get root(){return this._root.value}parent(B){const R=this.pathFromRoot(B);return R.length>1?R[R.length-2]:null}children(B){const R=Xr(B,this._root);return R?R.children.map(q=>q.value):[]}firstChild(B){const R=Xr(B,this._root);return R&&R.children.length>0?R.children[0].value:null}siblings(B){const R=Br(B,this._root);return R.length<2?[]:R[R.length-2].children.map(ae=>ae.value).filter(ae=>ae!==B)}pathFromRoot(B){return Br(B,this._root).map(R=>R.value)}}function Xr(I,B){if(I===B.value)return B;for(const R of B.children){const q=Xr(I,R);if(q)return q}return null}function Br(I,B){if(I===B.value)return[B];for(const R of B.children){const q=Br(I,R);if(q.length)return q.unshift(B),q}return[]}class fr{constructor(B,R){this.value=B,this.children=R}toString(){return`TreeNode(${this.value})`}}function Ao(I){const B={};return I&&I.children.forEach(R=>B[R.value.outlet]=R),B}class ca extends hc{constructor(B,R){super(B),this.snapshot=R,Kn(this,B)}toString(){return this.snapshot.toString()}}function Ya(I,B){const R=function za(I,B){const bt=new Wr([],{},{},"",{},Ce,B,null,{});return new yi("",new fr(bt,[]))}(0,B),q=new De.t([new Vi("",{})]),ae=new De.t({}),Ne=new De.t({}),bt=new De.t({}),an=new De.t(""),un=new qs(q,ae,bt,an,Ne,Ce,B,R.root);return un.snapshot=R.root,new ca(new fr(un,[]),R)}class qs{constructor(B,R,q,ae,Ne,bt,an,un){this.urlSubject=B,this.paramsSubject=R,this.queryParamsSubject=q,this.fragmentSubject=ae,this.dataSubject=Ne,this.outlet=bt,this.component=an,this._futureSnapshot=un,this.title=this.dataSubject?.pipe((0,Se.T)(Ci=>Ci[zt]))??(0,oe.of)(void 0),this.url=B,this.params=R,this.queryParams=q,this.fragment=ae,this.data=Ne}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,Se.T)(B=>xt(B)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Se.T)(B=>xt(B)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function gr(I,B="emptyOnly"){const R=I.pathFromRoot;let q=0;if("always"!==B)for(q=R.length-1;q>=1;){const ae=R[q],Ne=R[q-1];if(ae.routeConfig&&""===ae.routeConfig.path)q--;else{if(Ne.component)break;q--}}return function il(I){return I.reduce((B,R)=>({params:{...B.params,...R.params},data:{...B.data,...R.data},resolve:{...R.data,...B.resolve,...R.routeConfig?.data,...R._resolvedData}}),{params:{},data:{},resolve:{}})}(R.slice(q))}class Wr{get title(){return this.data?.[zt]}constructor(B,R,q,ae,Ne,bt,an,un,Ci){this.url=B,this.params=R,this.queryParams=q,this.fragment=ae,this.data=Ne,this.outlet=bt,this.component=an,this.routeConfig=un,this._resolve=Ci}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=xt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(q=>q.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yi extends hc{constructor(B,R){super(R),this.url=B,Kn(this,R)}toString(){return ar(this._root)}}function Kn(I,B){B.value._routerState=I,B.children.forEach(R=>Kn(I,R))}function ar(I){const B=I.children.length>0?` { ${I.children.map(ar).join(", ")} } `:"";return`${I.value}${B}`}function Sa(I){if(I.snapshot){const B=I.snapshot,R=I._futureSnapshot;I.snapshot=R,In(B.queryParams,R.queryParams)||I.queryParamsSubject.next(R.queryParams),B.fragment!==R.fragment&&I.fragmentSubject.next(R.fragment),In(B.params,R.params)||I.paramsSubject.next(R.params),function xn(I,B){if(I.length!==B.length)return!1;for(let R=0;RIn(R.parameters,B[q].parameters))}(I.url,B.url);return R&&!(!I.parent!=!B.parent)&&(!I.parent||Mo(I.parent,B.parent))}let ns=(()=>{class I{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ce,this.activateEvents=new g.bkB,this.deactivateEvents=new g.bkB,this.attachEvents=new g.bkB,this.detachEvents=new g.bkB,this.parentContexts=(0,g.WQX)(Ka),this.location=(0,g.WQX)(g.c1b),this.changeDetector=(0,g.WQX)(g.gRc),this.environmentInjector=(0,g.WQX)(g.uvJ),this.inputBinder=(0,g.WQX)(Is,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(R){if(R.name){const{firstChange:q,previousValue:ae}=R.name;if(q)return;this.isTrackedInParentContexts(ae)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ae)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(R){return this.parentContexts.getContext(R)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const R=this.parentContexts.getContext(this.name);R?.route&&(R.attachRef?this.attach(R.attachRef,R.route):this.activateWith(R.route,R.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.wOt(4012,!1);this.location.detach();const R=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(R.instance),R}attach(R,q){this.activated=R,this._activatedRoute=q,this.location.insert(R.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(R.instance)}deactivate(){if(this.activated){const R=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(R)}}activateWith(R,q){if(this.isActivated)throw new g.wOt(4013,!1);this._activatedRoute=R;const ae=this.location,bt=R.snapshot.component,an=this.parentContexts.getOrCreateContext(this.name).children,un=new ka(R,an,ae.injector);this.activated=ae.createComponent(bt,{index:ae.length,injector:un,environmentInjector:q??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275dir=g.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g.OA$]})}return I})();class ka{constructor(B,R,q){this.route=B,this.childContexts=R,this.parent=q}get(B,R){return B===qs?this.route:B===Ka?this.childContexts:this.parent.get(B,R)}}const Is=new g.nKC("");let wc=(()=>{class I{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(R){this.unsubscribeFromRouteData(R),this.subscribeToRouteData(R)}unsubscribeFromRouteData(R){this.outletDataSubscriptions.get(R)?.unsubscribe(),this.outletDataSubscriptions.delete(R)}subscribeToRouteData(R){const{activatedRoute:q}=R,ae=(0,pe.z)([q.queryParams,q.params,q.data]).pipe((0,it.n)(([Ne,bt,an],un)=>(an={...Ne,...bt,...an},0===un?(0,oe.of)(an):Promise.resolve(an)))).subscribe(Ne=>{if(!R.isActivated||!R.activatedComponentRef||R.activatedRoute!==q||null===q.component)return void this.unsubscribeFromRouteData(R);const bt=(0,g.HJs)(q.component);if(bt)for(const{templateName:an}of bt.inputs)R.activatedComponentRef.setInput(an,Ne[an]);else this.unsubscribeFromRouteData(R)});this.outletDataSubscriptions.set(R,ae)}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac})}return I})();function ur(I,B,R){if(R&&I.shouldReuseRoute(B.value,R.value.snapshot)){const q=R.value;q._futureSnapshot=B.value;const ae=function rr(I,B,R){return B.children.map(q=>{for(const ae of R.children)if(I.shouldReuseRoute(q.value,ae.value.snapshot))return ur(I,q,ae);return ur(I,q)})}(I,B,R);return new fr(q,ae)}{if(I.shouldAttach(B.value)){const Ne=I.retrieve(B.value);if(null!==Ne){const bt=Ne.route;return bt.value._futureSnapshot=B.value,bt.children=B.children.map(an=>ur(I,an)),bt}}const q=function ml(I){return new qs(new De.t(I.url),new De.t(I.params),new De.t(I.queryParams),new De.t(I.fragment),new De.t(I.data),I.outlet,I.component,I)}(B.value),ae=B.children.map(Ne=>ur(I,Ne));return new fr(q,ae)}}const Lc="ngNavigationCancelingError";function Qs(I,B){const{redirectTo:R,navigationBehaviorOptions:q}=Tt(B)?{redirectTo:B,navigationBehaviorOptions:void 0}:B,ae=la(!1,0,B);return ae.url=R,ae.navigationBehaviorOptions=q,ae}function la(I,B,R){const q=new Error("NavigationCancelingError: "+(I||""));return q[Lc]=!0,q.cancellationCode=B,R&&(q.url=R),q}function ua(I){return I&&I[Lc]}let da=(()=>{class I{static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275cmp=g.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[g.aNF],decls:1,vars:0,template:function(q,ae){1&q&&g.nrm(0,"router-outlet")},dependencies:[ns],encapsulation:2})}return I})();function Lr(I){const B=I.children&&I.children.map(Lr),R=B?{...I,children:B}:{...I};return!R.component&&!R.loadComponent&&(B||R.loadChildren)&&R.outlet&&R.outlet!==Ce&&(R.component=da),R}function vo(I){return I.outlet||Ce}function Qa(I){if(!I)return null;if(I.routeConfig?._injector)return I.routeConfig._injector;for(let B=I.parent;B;B=B.parent){const R=B.routeConfig;if(R?._loadedInjector)return R._loadedInjector;if(R?._injector)return R._injector}return null}class Na{constructor(B,R,q,ae,Ne){this.routeReuseStrategy=B,this.futureState=R,this.currState=q,this.forwardEvent=ae,this.inputBindingEnabled=Ne}activate(B){const R=this.futureState._root,q=this.currState?this.currState._root:null;this.deactivateChildRoutes(R,q,B),Sa(this.futureState.root),this.activateChildRoutes(R,q,B)}deactivateChildRoutes(B,R,q){const ae=Ao(R);B.children.forEach(Ne=>{const bt=Ne.value.outlet;this.deactivateRoutes(Ne,ae[bt],q),delete ae[bt]}),Object.values(ae).forEach(Ne=>{this.deactivateRouteAndItsChildren(Ne,q)})}deactivateRoutes(B,R,q){const ae=B.value,Ne=R?R.value:null;if(ae===Ne)if(ae.component){const bt=q.getContext(ae.outlet);bt&&this.deactivateChildRoutes(B,R,bt.children)}else this.deactivateChildRoutes(B,R,q);else Ne&&this.deactivateRouteAndItsChildren(R,q)}deactivateRouteAndItsChildren(B,R){B.value.component&&this.routeReuseStrategy.shouldDetach(B.value.snapshot)?this.detachAndStoreRouteSubtree(B,R):this.deactivateRouteAndOutlet(B,R)}detachAndStoreRouteSubtree(B,R){const q=R.getContext(B.value.outlet),ae=q&&B.value.component?q.children:R,Ne=Ao(B);for(const bt of Object.keys(Ne))this.deactivateRouteAndItsChildren(Ne[bt],ae);if(q&&q.outlet){const bt=q.outlet.detach(),an=q.children.onOutletDeactivated();this.routeReuseStrategy.store(B.value.snapshot,{componentRef:bt,route:B,contexts:an})}}deactivateRouteAndOutlet(B,R){const q=R.getContext(B.value.outlet),ae=q&&B.value.component?q.children:R,Ne=Ao(B);for(const bt of Object.keys(Ne))this.deactivateRouteAndItsChildren(Ne[bt],ae);q&&(q.outlet&&(q.outlet.deactivate(),q.children.onOutletDeactivated()),q.attachRef=null,q.route=null)}activateChildRoutes(B,R,q){const ae=Ao(R);B.children.forEach(Ne=>{this.activateRoutes(Ne,ae[Ne.value.outlet],q),this.forwardEvent(new Xa(Ne.value.snapshot))}),B.children.length&&this.forwardEvent(new ql(B.value.snapshot))}activateRoutes(B,R,q){const ae=B.value,Ne=R?R.value:null;if(Sa(ae),ae===Ne)if(ae.component){const bt=q.getOrCreateContext(ae.outlet);this.activateChildRoutes(B,R,bt.children)}else this.activateChildRoutes(B,R,q);else if(ae.component){const bt=q.getOrCreateContext(ae.outlet);if(this.routeReuseStrategy.shouldAttach(ae.snapshot)){const an=this.routeReuseStrategy.retrieve(ae.snapshot);this.routeReuseStrategy.store(ae.snapshot,null),bt.children.onOutletReAttached(an.contexts),bt.attachRef=an.componentRef,bt.route=an.route.value,bt.outlet&&bt.outlet.attach(an.componentRef,an.route.value),Sa(an.route.value),this.activateChildRoutes(B,null,bt.children)}else{const an=Qa(ae.snapshot);bt.attachRef=null,bt.route=ae,bt.injector=an,bt.outlet&&bt.outlet.activateWith(ae,bt.injector),this.activateChildRoutes(B,null,bt.children)}}else this.activateChildRoutes(B,null,q)}}class vs{constructor(B){this.path=B,this.route=this.path[this.path.length-1]}}class Ja{constructor(B,R){this.component=B,this.route=R}}function pc(I,B,R){const q=I._root;return vl(q,B?B._root:null,R,[q.value])}function co(I,B){const R=Symbol(),q=B.get(I,R);return q===R?"function"!=typeof I||(0,g.LfX)(I)?B.get(I):I:q}function vl(I,B,R,q,ae={canDeactivateChecks:[],canActivateChecks:[]}){const Ne=Ao(B);return I.children.forEach(bt=>{(function qr(I,B,R,q,ae={canDeactivateChecks:[],canActivateChecks:[]}){const Ne=I.value,bt=B?B.value:null,an=R?R.getContext(I.value.outlet):null;if(bt&&Ne.routeConfig===bt.routeConfig){const un=function sc(I,B,R){if("function"==typeof R)return R(I,B);switch(R){case"pathParamsChange":return!Qi(I.url,B.url);case"pathParamsOrQueryParamsChange":return!Qi(I.url,B.url)||!In(I.queryParams,B.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mo(I,B)||!In(I.queryParams,B.queryParams);default:return!Mo(I,B)}}(bt,Ne,Ne.routeConfig.runGuardsAndResolvers);un?ae.canActivateChecks.push(new vs(q)):(Ne.data=bt.data,Ne._resolvedData=bt._resolvedData),vl(I,B,Ne.component?an?an.children:null:R,q,ae),un&&an&&an.outlet&&an.outlet.isActivated&&ae.canDeactivateChecks.push(new Ja(an.outlet.component,bt))}else bt&&ie(B,an,ae),ae.canActivateChecks.push(new vs(q)),vl(I,null,Ne.component?an?an.children:null:R,q,ae)})(bt,Ne[bt.value.outlet],R,q.concat([bt.value]),ae),delete Ne[bt.value.outlet]}),Object.entries(Ne).forEach(([bt,an])=>ie(an,R.getContext(bt),ae)),ae}function ie(I,B,R){const q=Ao(I),ae=I.value;Object.entries(q).forEach(([Ne,bt])=>{ie(bt,ae.component?B?B.children.getContext(Ne):null:B,R)}),R.canDeactivateChecks.push(new Ja(ae.component&&B&&B.outlet&&B.outlet.isActivated?B.outlet.component:null,ae))}function Rt(I){return"function"==typeof I}function fe(I){return I instanceof be||"EmptyError"===I?.name}const Z=Symbol("INITIAL_VALUE");function $e(){return(0,it.n)(I=>(0,pe.z)(I.map(B=>B.pipe((0,dt.s)(1),(0,jt.Z)(Z)))).pipe((0,Se.T)(B=>{for(const R of B)if(!0!==R){if(R===Z)return Z;if(!1===R||R instanceof hn)return R}return!0}),(0,Wt.p)(B=>B!==Z),(0,dt.s)(1)))}function Kr(I){return(0,Ve.F)((0,ui.M)(B=>{if(Tt(B))throw Qs(0,B)}),(0,Se.T)(B=>!0===B))}class Os{constructor(B){this.segmentGroup=B||null}}class rl{constructor(B){this.urlTree=B}}function ba(I){return Re(new Os(I))}function Mc(I){return Re(new rl(I))}class Mu{constructor(B,R){this.urlSerializer=B,this.urlTree=R}noMatchError(B){return new g.wOt(4002,!1)}lineralizeSegments(B,R){let q=[],ae=R.root;for(;;){if(q=q.concat(ae.segments),0===ae.numberOfChildren)return(0,oe.of)(q);if(ae.numberOfChildren>1||!ae.children[Ce])return Re(new g.wOt(4e3,!1));ae=ae.children[Ce]}}applyRedirectCommands(B,R,q){return this.applyRedirectCreateUrlTree(R,this.urlSerializer.parse(R),B,q)}applyRedirectCreateUrlTree(B,R,q,ae){const Ne=this.createSegmentGroup(B,R.root,q,ae);return new hn(Ne,this.createQueryParams(R.queryParams,this.urlTree.queryParams),R.fragment)}createQueryParams(B,R){const q={};return Object.entries(B).forEach(([ae,Ne])=>{if("string"==typeof Ne&&Ne.startsWith(":")){const an=Ne.substring(1);q[ae]=R[an]}else q[ae]=Ne}),q}createSegmentGroup(B,R,q,ae){const Ne=this.createSegments(B,R.segments,q,ae);let bt={};return Object.entries(R.children).forEach(([an,un])=>{bt[an]=this.createSegmentGroup(B,un,q,ae)}),new Mn(Ne,bt)}createSegments(B,R,q,ae){return R.map(Ne=>Ne.path.startsWith(":")?this.findPosParam(B,Ne,ae):this.findOrReturn(Ne,q))}findPosParam(B,R,q){const ae=q[R.path.substring(1)];if(!ae)throw new g.wOt(4001,!1);return ae}findOrReturn(B,R){let q=0;for(const ae of R){if(ae.path===B.path)return R.splice(q),ae;q++}return B}}const Rl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function M2(I,B,R,q,ae){const Ne=fa(I,B,R);return Ne.matched?(q=function gl(I,B){return I.providers&&!I._injector&&(I._injector=(0,g.Ol2)(I.providers,B,`Route: ${I.path}`)),I._injector??B}(B,q),function ja(I,B,R,q){const ae=B.canMatch;if(!ae||0===ae.length)return(0,oe.of)(!0);const Ne=ae.map(bt=>{const an=co(bt,I);return ci(function nn(I){return I&&Rt(I.canMatch)}(an)?an.canMatch(B,R):I.runInContext(()=>an(B,R)))});return(0,oe.of)(Ne).pipe($e(),Kr())}(q,B,R).pipe((0,Se.T)(bt=>!0===bt?Ne:{...Rl}))):(0,oe.of)(Ne)}function fa(I,B,R){if(""===B.path)return"full"===B.pathMatch&&(I.hasChildren()||R.length>0)?{...Rl}:{matched:!0,consumedSegments:[],remainingSegments:R,parameters:{},positionalParamSegments:{}};const ae=(B.matcher||Gt)(R,I,B);if(!ae)return{...Rl};const Ne={};Object.entries(ae.posParams??{}).forEach(([an,un])=>{Ne[an]=un.path});const bt=ae.consumed.length>0?{...Ne,...ae.consumed[ae.consumed.length-1].parameters}:Ne;return{matched:!0,consumedSegments:ae.consumed,remainingSegments:R.slice(ae.consumed.length),parameters:bt,positionalParamSegments:ae.posParams??{}}}function e2(I,B,R,q){return R.length>0&&function Xl(I,B,R){return R.some(q=>_l(I,B,q)&&vo(q)!==Ce)}(I,R,q)?{segmentGroup:new Mn(B,z1(q,new Mn(R,I.children))),slicedSegments:[]}:0===R.length&&function y1(I,B,R){return R.some(q=>_l(I,B,q))}(I,R,q)?{segmentGroup:new Mn(I.segments,u1(I,0,R,q,I.children)),slicedSegments:R}:{segmentGroup:new Mn(I.segments,I.children),slicedSegments:R}}function u1(I,B,R,q,ae){const Ne={};for(const bt of q)if(_l(I,R,bt)&&!ae[vo(bt)]){const an=new Mn([],{});Ne[vo(bt)]=an}return{...ae,...Ne}}function z1(I,B){const R={};R[Ce]=B;for(const q of I)if(""===q.path&&vo(q)!==Ce){const ae=new Mn([],{});R[vo(q)]=ae}return R}function _l(I,B,R){return(!(I.hasChildren()||B.length>0)||"full"!==R.pathMatch)&&""===R.path}class ku{constructor(B,R,q,ae,Ne,bt,an){this.injector=B,this.configLoader=R,this.rootComponentType=q,this.config=ae,this.urlTree=Ne,this.paramsInheritanceStrategy=bt,this.urlSerializer=an,this.allowRedirects=!0,this.applyRedirects=new Mu(this.urlSerializer,this.urlTree)}noMatchError(B){return new g.wOt(4002,!1)}recognize(){const B=e2(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,B,Ce).pipe((0,dn.W)(R=>{if(R instanceof rl)return this.allowRedirects=!1,this.urlTree=R.urlTree,this.match(R.urlTree);throw R instanceof Os?this.noMatchError(R):R}),(0,Se.T)(R=>{const q=new Wr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ce,this.rootComponentType,null,{}),ae=new fr(q,R),Ne=new yi("",ae),bt=function Kt(I,B,R=null,q=null){return qn(Vn(I),B,R,q)}(q,[],this.urlTree.queryParams,this.urlTree.fragment);return bt.queryParams=this.urlTree.queryParams,Ne.url=this.urlSerializer.serialize(bt),this.inheritParamsAndData(Ne._root),{state:Ne,tree:bt}}))}match(B){return this.processSegmentGroup(this.injector,this.config,B.root,Ce).pipe((0,dn.W)(q=>{throw q instanceof Os?this.noMatchError(q):q}))}inheritParamsAndData(B){const R=B.value,q=gr(R,this.paramsInheritanceStrategy);R.params=Object.freeze(q.params),R.data=Object.freeze(q.data),B.children.forEach(ae=>this.inheritParamsAndData(ae))}processSegmentGroup(B,R,q,ae){return 0===q.segments.length&&q.hasChildren()?this.processChildren(B,R,q):this.processSegment(B,R,q,q.segments,ae,!0)}processChildren(B,R,q){const ae=[];for(const Ne of Object.keys(q.children))"primary"===Ne?ae.unshift(Ne):ae.push(Ne);return(0,V.H)(ae).pipe((0,Hr.H)(Ne=>{const bt=q.children[Ne],an=function Ra(I,B){const R=I.filter(q=>vo(q)===B);return R.push(...I.filter(q=>vo(q)!==B)),R}(R,Ne);return this.processSegmentGroup(B,an,bt,Ne)}),function ht(I,B){return(0,Fe.N)((0,nt.S)(I,B,arguments.length>=2,!0))}((Ne,bt)=>(Ne.push(...bt),Ne)),Wn(null),function Ae(I,B){const R=arguments.length>=2;return q=>q.pipe(I?(0,Wt.p)((ae,Ne)=>I(ae,Ne,q)):Li.D,Je(1),R?Wn(B):di(()=>new be))}(),(0,wn.Z)(Ne=>{if(null===Ne)return ba(q);const bt=C1(Ne);return function bl(I){I.sort((B,R)=>B.value.outlet===Ce?-1:R.value.outlet===Ce?1:B.value.outlet.localeCompare(R.value.outlet))}(bt),(0,oe.of)(bt)}))}processSegment(B,R,q,ae,Ne,bt){return(0,V.H)(R).pipe((0,Hr.H)(an=>this.processSegmentAgainstRoute(an._injector??B,R,an,q,ae,Ne,bt).pipe((0,dn.W)(un=>{if(un instanceof Os)return(0,oe.of)(null);throw un}))),$i(an=>!!an),(0,dn.W)(an=>{if(fe(an))return function Su(I,B,R){return 0===B.length&&!I.children[R]}(q,ae,Ne)?(0,oe.of)([]):ba(q);throw an}))}processSegmentAgainstRoute(B,R,q,ae,Ne,bt,an){return function sl(I,B,R,q){return!!(vo(I)===q||q!==Ce&&_l(B,R,I))&&("**"===I.path||fa(B,I,R).matched)}(q,ae,Ne,bt)?void 0===q.redirectTo?this.matchSegmentAgainstRoute(B,ae,q,Ne,bt,an):an&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(B,ae,R,q,Ne,bt):ba(ae):ba(ae)}expandSegmentAgainstRouteUsingRedirect(B,R,q,ae,Ne,bt){return"**"===ae.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(B,q,ae,bt):this.expandRegularSegmentAgainstRouteUsingRedirect(B,R,q,ae,Ne,bt)}expandWildCardWithParamsAgainstRouteUsingRedirect(B,R,q,ae){const Ne=this.applyRedirects.applyRedirectCommands([],q.redirectTo,{});return q.redirectTo.startsWith("/")?Mc(Ne):this.applyRedirects.lineralizeSegments(q,Ne).pipe((0,wn.Z)(bt=>{const an=new Mn(bt,{});return this.processSegment(B,R,an,bt,ae,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(B,R,q,ae,Ne,bt){const{matched:an,consumedSegments:un,remainingSegments:Ci,positionalParamSegments:Ji}=fa(R,ae,Ne);if(!an)return ba(R);const ls=this.applyRedirects.applyRedirectCommands(un,ae.redirectTo,Ji);return ae.redirectTo.startsWith("/")?Mc(ls):this.applyRedirects.lineralizeSegments(ae,ls).pipe((0,wn.Z)(Ar=>this.processSegment(B,q,R,Ar.concat(Ci),bt,!1)))}matchSegmentAgainstRoute(B,R,q,ae,Ne,bt){let an;if("**"===q.path){const un=ae.length>0?or(ae).parameters:{},Ci=new Wr(ae,un,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nu(q),vo(q),q.component??q._loadedComponent??null,q,Eu(q));an=(0,oe.of)({snapshot:Ci,consumedSegments:[],remainingSegments:[]}),R.children={}}else an=M2(R,q,ae,B).pipe((0,Se.T)(({matched:un,consumedSegments:Ci,remainingSegments:Ji,parameters:ls})=>un?{snapshot:new Wr(Ci,ls,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nu(q),vo(q),q.component??q._loadedComponent??null,q,Eu(q)),consumedSegments:Ci,remainingSegments:Ji}:null));return an.pipe((0,it.n)(un=>null===un?ba(R):this.getChildConfig(B=q._injector??B,q,ae).pipe((0,it.n)(({routes:Ci})=>{const Ji=q._loadedInjector??B,{snapshot:ls,consumedSegments:Ar,remainingSegments:Po}=un,{segmentGroup:al,slicedSegments:Xo}=e2(R,Ar,Po,Ci);if(0===Xo.length&&al.hasChildren())return this.processChildren(Ji,Ci,al).pipe((0,Se.T)(Io=>null===Io?null:[new fr(ls,Io)]));if(0===Ci.length&&0===Xo.length)return(0,oe.of)([new fr(ls,[])]);const Ko=vo(q)===Ne;return this.processSegment(Ji,Ci,al,Xo,Ko?Ce:Ne,!0).pipe((0,Se.T)(Io=>[new fr(ls,Io)]))}))))}getChildConfig(B,R,q){return R.children?(0,oe.of)({routes:R.children,injector:B}):R.loadChildren?void 0!==R._loadedRoutes?(0,oe.of)({routes:R._loadedRoutes,injector:R._loadedInjector}):function Pa(I,B,R,q){const ae=B.canLoad;if(void 0===ae||0===ae.length)return(0,oe.of)(!0);const Ne=ae.map(bt=>{const an=co(bt,I);return ci(function ge(I){return I&&Rt(I.canLoad)}(an)?an.canLoad(B,R):I.runInContext(()=>an(B,R)))});return(0,oe.of)(Ne).pipe($e(),Kr())}(B,R,q).pipe((0,wn.Z)(ae=>ae?this.configLoader.loadChildren(B,R).pipe((0,ui.M)(Ne=>{R._loadedRoutes=Ne.routes,R._loadedInjector=Ne.injector})):function wu(I){return Re(la(!1,3))}())):(0,oe.of)({routes:[],injector:B})}}function tu(I){const B=I.value.routeConfig;return B&&""===B.path}function C1(I){const B=[],R=new Set;for(const q of I){if(!tu(q)){B.push(q);continue}const ae=B.find(Ne=>q.value.routeConfig===Ne.value.routeConfig);void 0!==ae?(ae.children.push(...q.children),R.add(ae)):B.push(q)}for(const q of R){const ae=C1(q.children);B.push(new fr(q.value,ae))}return B.filter(q=>!R.has(q))}function nu(I){return I.data||{}}function Eu(I){return I.resolve||{}}function Pe(I){return"string"==typeof I.title||null===I.title}function le(I){return(0,it.n)(B=>{const R=I(B);return R?(0,V.H)(R).pipe((0,Se.T)(()=>B)):(0,oe.of)(B)})}const Ie=new g.nKC("ROUTES");let Ot=(()=>{class I{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.WQX)(g.Ql9)}loadComponent(R){if(this.componentLoaders.get(R))return this.componentLoaders.get(R);if(R._loadedComponent)return(0,oe.of)(R._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(R);const q=ci(R.loadComponent()).pipe((0,Se.T)(Oi),(0,ui.M)(Ne=>{this.onLoadEndListener&&this.onLoadEndListener(R),R._loadedComponent=Ne}),(0,Ze.j)(()=>{this.componentLoaders.delete(R)})),ae=new Be(q,()=>new he.B).pipe(at());return this.componentLoaders.set(R,ae),ae}loadChildren(R,q){if(this.childrenLoaders.get(q))return this.childrenLoaders.get(q);if(q._loadedRoutes)return(0,oe.of)({routes:q._loadedRoutes,injector:q._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(q);const Ne=function bn(I,B,R,q){return ci(I.loadChildren()).pipe((0,Se.T)(Oi),(0,wn.Z)(ae=>ae instanceof g.Co$||Array.isArray(ae)?(0,oe.of)(ae):(0,V.H)(B.compileModuleAsync(ae))),(0,Se.T)(ae=>{q&&q(I);let Ne,bt,an=!1;return Array.isArray(ae)?(bt=ae,!0):(Ne=ae.create(R).injector,bt=Ne.get(Ie,[],{optional:!0,self:!0}).flat()),{routes:bt.map(Lr),injector:Ne}}))}(q,this.compiler,R,this.onLoadEndListener).pipe((0,Ze.j)(()=>{this.childrenLoaders.delete(q)})),bt=new Be(Ne,()=>new he.B).pipe(at());return this.childrenLoaders.set(q,bt),bt}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function Oi(I){return function Pn(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let lo=(()=>{class I{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new he.B,this.transitionAbortSubject=new he.B,this.configLoader=(0,g.WQX)(Ot),this.environmentInjector=(0,g.WQX)(g.uvJ),this.urlSerializer=(0,g.WQX)(no),this.rootContexts=(0,g.WQX)(Ka),this.inputBindingEnabled=null!==(0,g.WQX)(Is,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,oe.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ae=>this.events.next(new Z1(ae)),this.configLoader.onLoadStartListener=ae=>this.events.next(new na(ae))}complete(){this.transitions?.complete()}handleNavigationRequest(R){const q=++this.navigationId;this.transitions?.next({...this.transitions.value,...R,id:q})}setupNavigations(R,q,ae){return this.transitions=new De.t({id:0,currentUrlTree:q,currentRawUrl:q,currentBrowserUrl:q,extractedUrl:R.urlHandlingStrategy.extract(q),urlAfterRedirects:R.urlHandlingStrategy.extract(q),rawUrl:q,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:oo,restoredState:null,currentSnapshot:ae.snapshot,targetSnapshot:null,currentRouterState:ae,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Wt.p)(Ne=>0!==Ne.id),(0,Se.T)(Ne=>({...Ne,extractedUrl:R.urlHandlingStrategy.extract(Ne.rawUrl)})),(0,it.n)(Ne=>{this.currentTransition=Ne;let bt=!1,an=!1;return(0,oe.of)(Ne).pipe((0,ui.M)(un=>{this.currentNavigation={id:un.id,initialUrl:un.rawUrl,extractedUrl:un.extractedUrl,trigger:un.source,extras:un.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,it.n)(un=>{const Ci=un.currentBrowserUrl.toString(),Ji=!R.navigated||un.extractedUrl.toString()!==Ci||Ci!==un.currentUrlTree.toString();if(!Ji&&"reload"!==(un.extras.onSameUrlNavigation??R.onSameUrlNavigation)){const Ar="";return this.events.next(new ws(un.id,this.urlSerializer.serialize(un.rawUrl),Ar,0)),un.resolve(null),tt.w}if(R.urlHandlingStrategy.shouldProcessUrl(un.rawUrl))return(0,oe.of)(un).pipe((0,it.n)(Ar=>{const Po=this.transitions?.getValue();return this.events.next(new ta(Ar.id,this.urlSerializer.serialize(Ar.extractedUrl),Ar.source,Ar.restoredState)),Po!==this.transitions?.getValue()?tt.w:Promise.resolve(Ar)}),function Du(I,B,R,q,ae,Ne){return(0,wn.Z)(bt=>function d1(I,B,R,q,ae,Ne,bt="emptyOnly"){return new ku(I,B,R,q,ae,bt,Ne).recognize()}(I,B,R,q,bt.extractedUrl,ae,Ne).pipe((0,Se.T)(({state:an,tree:un})=>({...bt,targetSnapshot:an,urlAfterRedirects:un}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,R.config,this.urlSerializer,R.paramsInheritanceStrategy),(0,ui.M)(Ar=>{Ne.targetSnapshot=Ar.targetSnapshot,Ne.urlAfterRedirects=Ar.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ar.urlAfterRedirects};const Po=new ao(Ar.id,this.urlSerializer.serialize(Ar.extractedUrl),this.urlSerializer.serialize(Ar.urlAfterRedirects),Ar.targetSnapshot);this.events.next(Po)}));if(Ji&&R.urlHandlingStrategy.shouldProcessUrl(un.currentRawUrl)){const{id:Ar,extractedUrl:Po,source:al,restoredState:Xo,extras:Ko}=un,Io=new ta(Ar,this.urlSerializer.serialize(Po),al,Xo);this.events.next(Io);const vc=Ya(0,this.rootComponentType).snapshot;return this.currentTransition=Ne={...un,targetSnapshot:vc,urlAfterRedirects:Po,extras:{...Ko,skipLocationChange:!1,replaceUrl:!1}},(0,oe.of)(Ne)}{const Ar="";return this.events.next(new ws(un.id,this.urlSerializer.serialize(un.extractedUrl),Ar,1)),un.resolve(null),tt.w}}),(0,ui.M)(un=>{const Ci=new l1(un.id,this.urlSerializer.serialize(un.extractedUrl),this.urlSerializer.serialize(un.urlAfterRedirects),un.targetSnapshot);this.events.next(Ci)}),(0,Se.T)(un=>(this.currentTransition=Ne={...un,guards:pc(un.targetSnapshot,un.currentSnapshot,this.rootContexts)},Ne)),function mt(I,B){return(0,wn.Z)(R=>{const{targetSnapshot:q,currentSnapshot:ae,guards:{canActivateChecks:Ne,canDeactivateChecks:bt}}=R;return 0===bt.length&&0===Ne.length?(0,oe.of)({...R,guardsResult:!0}):function Gn(I,B,R,q){return(0,V.H)(I).pipe((0,wn.Z)(ae=>function So(I,B,R,q,ae){const Ne=B&&B.routeConfig?B.routeConfig.canDeactivate:null;if(!Ne||0===Ne.length)return(0,oe.of)(!0);const bt=Ne.map(an=>{const un=Qa(B)??ae,Ci=co(an,un);return ci(function Oe(I){return I&&Rt(I.canDeactivate)}(Ci)?Ci.canDeactivate(I,B,R,q):un.runInContext(()=>Ci(I,B,R,q))).pipe($i())});return(0,oe.of)(bt).pipe($e())}(ae.component,ae.route,R,B,q)),$i(ae=>!0!==ae,!0))}(bt,q,ae,I).pipe((0,wn.Z)(an=>an&&function Q(I){return"boolean"==typeof I}(an)?function ir(I,B,R,q){return(0,V.H)(B).pipe((0,Hr.H)(ae=>(0,me.x)(function ra(I,B){return null!==I&&B&&B(new rc(I)),(0,oe.of)(!0)}(ae.route.parent,q),function zr(I,B){return null!==I&&B&&B(new go(I)),(0,oe.of)(!0)}(ae.route,q),function Bo(I,B,R){const q=B[B.length-1],Ne=B.slice(0,B.length-1).reverse().map(bt=>function zl(I){const B=I.routeConfig?I.routeConfig.canActivateChild:null;return B&&0!==B.length?{node:I,guards:B}:null}(bt)).filter(bt=>null!==bt).map(bt=>(0,Te.v)(()=>{const an=bt.guards.map(un=>{const Ci=Qa(bt.node)??R,Ji=co(un,Ci);return ci(function Ct(I){return I&&Rt(I.canActivateChild)}(Ji)?Ji.canActivateChild(q,I):Ci.runInContext(()=>Ji(q,I))).pipe($i())});return(0,oe.of)(an).pipe($e())}));return(0,oe.of)(Ne).pipe($e())}(I,ae.path,R),function bi(I,B,R){const q=B.routeConfig?B.routeConfig.canActivate:null;if(!q||0===q.length)return(0,oe.of)(!0);const ae=q.map(Ne=>(0,Te.v)(()=>{const bt=Qa(B)??R,an=co(Ne,bt);return ci(function Ke(I){return I&&Rt(I.canActivate)}(an)?an.canActivate(B,I):bt.runInContext(()=>an(B,I))).pipe($i())}));return(0,oe.of)(ae).pipe($e())}(I,ae.route,R))),$i(ae=>!0!==ae,!0))}(q,Ne,I,B):(0,oe.of)(an)),(0,Se.T)(an=>({...R,guardsResult:an})))})}(this.environmentInjector,un=>this.events.next(un)),(0,ui.M)(un=>{if(Ne.guardsResult=un.guardsResult,Tt(un.guardsResult))throw Qs(0,un.guardsResult);const Ci=new Hc(un.id,this.urlSerializer.serialize(un.extractedUrl),this.urlSerializer.serialize(un.urlAfterRedirects),un.targetSnapshot,!!un.guardsResult);this.events.next(Ci)}),(0,Wt.p)(un=>!!un.guardsResult||(this.cancelNavigationTransition(un,"",3),!1)),le(un=>{if(un.guards.canActivateChecks.length)return(0,oe.of)(un).pipe((0,ui.M)(Ci=>{const Ji=new Ol(Ci.id,this.urlSerializer.serialize(Ci.extractedUrl),this.urlSerializer.serialize(Ci.urlAfterRedirects),Ci.targetSnapshot);this.events.next(Ji)}),(0,it.n)(Ci=>{let Ji=!1;return(0,oe.of)(Ci).pipe(function iu(I,B){return(0,wn.Z)(R=>{const{targetSnapshot:q,guards:{canActivateChecks:ae}}=R;if(!ae.length)return(0,oe.of)(R);let Ne=0;return(0,V.H)(ae).pipe((0,Hr.H)(bt=>function sd(I,B,R,q){const ae=I.routeConfig,Ne=I._resolve;return void 0!==ae?.title&&!Pe(ae)&&(Ne[zt]=ae.title),function t2(I,B,R,q){const ae=function od(I){return[...Object.keys(I),...Object.getOwnPropertySymbols(I)]}(I);if(0===ae.length)return(0,oe.of)({});const Ne={};return(0,V.H)(ae).pipe((0,wn.Z)(bt=>function X(I,B,R,q){const ae=Qa(B)??q,Ne=co(I,ae);return ci(Ne.resolve?Ne.resolve(B,R):ae.runInContext(()=>Ne(B,R)))}(I[bt],B,R,q).pipe($i(),(0,ui.M)(an=>{Ne[bt]=an}))),Je(1),(0,Ue.u)(Ne),(0,dn.W)(bt=>fe(bt)?tt.w:Re(bt)))}(Ne,I,B,q).pipe((0,Se.T)(bt=>(I._resolvedData=bt,I.data=gr(I,R).resolve,ae&&Pe(ae)&&(I.data[zt]=ae.title),null)))}(bt.route,q,I,B)),(0,ui.M)(()=>Ne++),Je(1),(0,wn.Z)(bt=>Ne===ae.length?(0,oe.of)(R):tt.w))})}(R.paramsInheritanceStrategy,this.environmentInjector),(0,ui.M)({next:()=>Ji=!0,complete:()=>{Ji||this.cancelNavigationTransition(Ci,"",2)}}))}),(0,ui.M)(Ci=>{const Ji=new pl(Ci.id,this.urlSerializer.serialize(Ci.extractedUrl),this.urlSerializer.serialize(Ci.urlAfterRedirects),Ci.targetSnapshot);this.events.next(Ji)}))}),le(un=>{const Ci=Ji=>{const ls=[];Ji.routeConfig?.loadComponent&&!Ji.routeConfig._loadedComponent&&ls.push(this.configLoader.loadComponent(Ji.routeConfig).pipe((0,ui.M)(Ar=>{Ji.component=Ar}),(0,Se.T)(()=>{})));for(const Ar of Ji.children)ls.push(...Ci(Ar));return ls};return(0,pe.z)(Ci(un.targetSnapshot.root)).pipe(Wn(),(0,dt.s)(1))}),le(()=>this.afterPreactivation()),(0,Se.T)(un=>{const Ci=function Es(I,B,R){const q=ur(I,B._root,R?R._root:void 0);return new ca(q,B)}(R.routeReuseStrategy,un.targetSnapshot,un.currentRouterState);return this.currentTransition=Ne={...un,targetRouterState:Ci},Ne}),(0,ui.M)(()=>{this.events.next(new tl)}),((I,B,R,q)=>(0,Se.T)(ae=>(new Na(B,ae.targetRouterState,ae.currentRouterState,R,q).activate(I),ae)))(this.rootContexts,R.routeReuseStrategy,un=>this.events.next(un),this.inputBindingEnabled),(0,dt.s)(1),(0,ui.M)({next:un=>{bt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ps(un.id,this.urlSerializer.serialize(un.extractedUrl),this.urlSerializer.serialize(un.urlAfterRedirects))),R.titleStrategy?.updateTitle(un.targetRouterState.snapshot),un.resolve(!0)},complete:()=>{bt=!0}}),(0,H.Q)(this.transitionAbortSubject.pipe((0,ui.M)(un=>{throw un}))),(0,Ze.j)(()=>{bt||an||this.cancelNavigationTransition(Ne,"",1),this.currentNavigation?.id===Ne.id&&(this.currentNavigation=null)}),(0,dn.W)(un=>{if(an=!0,ua(un))this.events.next(new Ma(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),un.message,un.cancellationCode)),function Js(I){return ua(I)&&Tt(I.url)}(un)?this.events.next(new As(un.url)):Ne.resolve(!1);else{this.events.next(new La(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),un,Ne.targetSnapshot??void 0));try{Ne.resolve(R.errorHandler(un))}catch(Ci){Ne.reject(Ci)}}return tt.w}))}))}cancelNavigationTransition(R,q,ae){const Ne=new Ma(R.id,this.urlSerializer.serialize(R.extractedUrl),q,ae);this.events.next(Ne),R.resolve(!1)}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function _o(I){return I!==oo}let Ds=(()=>{class I{buildTitle(R){let q,ae=R.root;for(;void 0!==ae;)q=this.getResolvedTitleForRoute(ae)??q,ae=ae.children.find(Ne=>Ne.outlet===Ce);return q}getResolvedTitleForRoute(R){return R.data[zt]}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:function(){return(0,g.WQX)(xr)},providedIn:"root"})}return I})(),xr=(()=>{class I extends Ds{constructor(R){super(),this.title=R}updateTitle(R){const q=this.buildTitle(R);void 0!==q&&this.title.setTitle(q)}static#e=this.\u0275fac=function(q){return new(q||I)(g.KVO(xe.hE))};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),ko=(()=>{class I{static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:function(){return(0,g.WQX)(ha)},providedIn:"root"})}return I})();class ms{shouldDetach(B){return!1}store(B,R){}shouldAttach(B){return!1}retrieve(B){return null}shouldReuseRoute(B,R){return B.routeConfig===R.routeConfig}}let ha=(()=>{class I extends ms{static#e=this.\u0275fac=function(){let R;return function(ae){return(R||(R=g.xGo(I)))(ae||I)}}();static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();const Fa=new g.nKC("",{providedIn:"root",factory:()=>({})});let mc=(()=>{class I{static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:function(){return(0,g.WQX)(kc)},providedIn:"root"})}return I})(),kc=(()=>{class I{shouldProcessUrl(R){return!0}extract(R){return R}merge(R,q){return R}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();var js=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(js||{});function uo(I,B){I.events.pipe((0,Wt.p)(R=>R instanceof Ps||R instanceof Ma||R instanceof La||R instanceof ws),(0,Se.T)(R=>R instanceof Ps||R instanceof ws?js.COMPLETE:R instanceof Ma&&(0===R.code||1===R.code)?js.REDIRECTING:js.FAILED),(0,Wt.p)(R=>R!==js.REDIRECTING),(0,dt.s)(1)).subscribe(()=>{B()})}function oc(I){throw I}function yl(I,B,R){return B.parse("/")}const S2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$o={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Za=(()=>{class I{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,g.WQX)(g.H3F),this.isNgZoneEnabled=!1,this._events=new he.B,this.options=(0,g.WQX)(Fa,{optional:!0})||{},this.pendingTasks=(0,g.WQX)(g.$K3),this.errorHandler=this.options.errorHandler||oc,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||yl,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,g.WQX)(mc),this.routeReuseStrategy=(0,g.WQX)(ko),this.titleStrategy=(0,g.WQX)(Ds),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=(0,g.WQX)(Ie,{optional:!0})?.flat()??[],this.navigationTransitions=(0,g.WQX)(lo),this.urlSerializer=(0,g.WQX)(no),this.location=(0,g.WQX)(He.aZ),this.componentInputBindingEnabled=!!(0,g.WQX)(Is,{optional:!0}),this.eventsSubscription=new de.yU,this.isNgZoneEnabled=(0,g.WQX)(g.SKi)instanceof g.SKi&&g.SKi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new hn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ya(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(R=>{this.lastSuccessfulId=R.id,this.currentPageId=this.browserPageId},R=>{this.console.warn(`Unhandled Navigation Error: ${R}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const R=this.navigationTransitions.events.subscribe(q=>{try{const{currentTransition:ae}=this.navigationTransitions;if(null===ae)return void(gc(q)&&this._events.next(q));if(q instanceof ta)_o(ae.source)&&(this.browserUrlTree=ae.extractedUrl);else if(q instanceof ws)this.rawUrlTree=ae.rawUrl;else if(q instanceof ao){if("eager"===this.urlUpdateStrategy){if(!ae.extras.skipLocationChange){const Ne=this.urlHandlingStrategy.merge(ae.urlAfterRedirects,ae.rawUrl);this.setBrowserUrl(Ne,ae)}this.browserUrlTree=ae.urlAfterRedirects}}else if(q instanceof tl)this.currentUrlTree=ae.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ae.urlAfterRedirects,ae.rawUrl),this.routerState=ae.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ae.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ae),this.browserUrlTree=ae.urlAfterRedirects);else if(q instanceof Ma)0!==q.code&&1!==q.code&&(this.navigated=!0),(3===q.code||2===q.code)&&this.restoreHistory(ae);else if(q instanceof As){const Ne=this.urlHandlingStrategy.merge(q.url,ae.currentRawUrl),bt={skipLocationChange:ae.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||_o(ae.source)};this.scheduleNavigation(Ne,oo,null,bt,{resolve:ae.resolve,reject:ae.reject,promise:ae.promise})}q instanceof La&&this.restoreHistory(ae,!0),q instanceof Ps&&(this.navigated=!0),gc(q)&&this._events.next(q)}catch(ae){this.navigationTransitions.transitionAbortSubject.next(ae)}});this.eventsSubscription.add(R)}resetRootComponentType(R){this.routerState.root.component=R,this.navigationTransitions.rootComponentType=R}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const R=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),oo,R)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(R=>{const q="popstate"===R.type?"popstate":"hashchange";"popstate"===q&&setTimeout(()=>{this.navigateToSyncWithBrowser(R.url,q,R.state)},0)}))}navigateToSyncWithBrowser(R,q,ae){const Ne={replaceUrl:!0},bt=ae?.navigationId?ae:null;if(ae){const un={...ae};delete un.navigationId,delete un.\u0275routerPageId,0!==Object.keys(un).length&&(Ne.state=un)}const an=this.parseUrl(R);this.scheduleNavigation(an,q,bt,Ne)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(R){this.config=R.map(Lr),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,this.eventsSubscription.unsubscribe()}createUrlTree(R,q={}){const{relativeTo:ae,queryParams:Ne,fragment:bt,queryParamsHandling:an,preserveFragment:un}=q,Ci=un?this.currentUrlTree.fragment:bt;let ls,Ji=null;switch(an){case"merge":Ji={...this.currentUrlTree.queryParams,...Ne};break;case"preserve":Ji=this.currentUrlTree.queryParams;break;default:Ji=Ne||null}null!==Ji&&(Ji=this.removeEmptyProps(Ji));try{ls=Vn(ae?ae.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof R[0]||!R[0].startsWith("/"))&&(R=[]),ls=this.currentUrlTree.root}return qn(ls,R,Ji,Ci??null)}navigateByUrl(R,q={skipLocationChange:!1}){const ae=Tt(R)?R:this.parseUrl(R),Ne=this.urlHandlingStrategy.merge(ae,this.rawUrlTree);return this.scheduleNavigation(Ne,oo,null,q)}navigate(R,q={skipLocationChange:!1}){return function ot(I){for(let B=0;B{const Ne=R[ae];return null!=Ne&&(q[ae]=Ne),q},{})}scheduleNavigation(R,q,ae,Ne,bt){if(this.disposed)return Promise.resolve(!1);let an,un,Ci;bt?(an=bt.resolve,un=bt.reject,Ci=bt.promise):Ci=new Promise((ls,Ar)=>{an=ls,un=Ar});const Ji=this.pendingTasks.add();return uo(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Ji))}),this.navigationTransitions.handleNavigationRequest({source:q,restoredState:ae,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:R,extras:Ne,resolve:an,reject:un,promise:Ci,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ci.catch(ls=>Promise.reject(ls))}setBrowserUrl(R,q){const ae=this.urlSerializer.serialize(R);if(this.location.isCurrentPathEqualTo(ae)||q.extras.replaceUrl){const bt={...q.extras.state,...this.generateNgRouterState(q.id,this.browserPageId)};this.location.replaceState(ae,"",bt)}else{const Ne={...q.extras.state,...this.generateNgRouterState(q.id,this.browserPageId+1)};this.location.go(ae,"",Ne)}}restoreHistory(R,q=!1){if("computed"===this.canceledNavigationResolution){const Ne=this.currentPageId-this.browserPageId;0!==Ne?this.location.historyGo(Ne):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Ne&&(this.resetState(R),this.browserUrlTree=R.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(q&&this.resetState(R),this.resetUrlToCurrentUrlTree())}resetState(R){this.routerState=R.currentRouterState,this.currentUrlTree=R.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,R.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(R,q){return"computed"===this.canceledNavigationResolution?{navigationId:R,\u0275routerPageId:q}:{navigationId:R}}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function gc(I){return!(I instanceof tl||I instanceof As)}let ac=(()=>{class I{constructor(R,q,ae,Ne,bt,an){this.router=R,this.route=q,this.tabIndexAttribute=ae,this.renderer=Ne,this.el=bt,this.locationStrategy=an,this.href=null,this.commands=null,this.onChanges=new he.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const un=bt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===un||"area"===un,this.isAnchorElement?this.subscription=R.events.subscribe(Ci=>{Ci instanceof Ps&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(R){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",R)}ngOnChanges(R){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(R){null!=R?(this.commands=Array.isArray(R)?R:[R],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(R,q,ae,Ne,bt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==R||q||ae||Ne||bt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const R=null===this.href?null:(0,g.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",R)}applyAttributeValue(R,q){const ae=this.renderer,Ne=this.el.nativeElement;null!==q?ae.setAttribute(Ne,R,q):ae.removeAttribute(Ne,R)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(q){return new(q||I)(g.rXU(Za),g.rXU(qs),g.kS0("tabindex"),g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(He.hb))};static#t=this.\u0275dir=g.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(q,ae){1&q&&g.bIt("click",function(bt){return ae.onClick(bt.button,bt.ctrlKey,bt.shiftKey,bt.altKey,bt.metaKey)}),2&q&&g.BMQ("target",ae.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",g.L39],skipLocationChange:["skipLocationChange","skipLocationChange",g.L39],replaceUrl:["replaceUrl","replaceUrl",g.L39],routerLink:"routerLink"},standalone:!0,features:[g.GFd,g.OA$]})}return I})(),R1=(()=>{class I{get isActive(){return this._isActive}constructor(R,q,ae,Ne,bt){this.router=R,this.element=q,this.renderer=ae,this.cdr=Ne,this.link=bt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new g.bkB,this.routerEventsSubscription=R.events.subscribe(an=>{an instanceof Ps&&this.update()})}ngAfterContentInit(){(0,oe.of)(this.links.changes,(0,oe.of)(null)).pipe((0,te.U)()).subscribe(R=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const R=[...this.links.toArray(),this.link].filter(q=>!!q).map(q=>q.onChanges);this.linkInputChangesSubscription=(0,V.H)(R).pipe((0,te.U)()).subscribe(q=>{this._isActive!==this.isLinkActive(this.router)(q)&&this.update()})}set routerLinkActive(R){const q=Array.isArray(R)?R:R.split(" ");this.classes=q.filter(ae=>!!ae)}ngOnChanges(R){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const R=this.hasActiveLinks();this._isActive!==R&&(this._isActive=R,this.cdr.markForCheck(),this.classes.forEach(q=>{R?this.renderer.addClass(this.element.nativeElement,q):this.renderer.removeClass(this.element.nativeElement,q)}),R&&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(R))})}isLinkActive(R){const q=function k2(I){return!!I.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ae=>!!ae.urlTree&&R.isActive(ae.urlTree,q)}hasActiveLinks(){const R=this.isLinkActive(this.router);return this.link&&R(this.link)||this.links.some(R)}static#e=this.\u0275fac=function(q){return new(q||I)(g.rXU(Za),g.rXU(g.aKT),g.rXU(g.sFG),g.rXU(g.gRc),g.rXU(ac,8))};static#t=this.\u0275dir=g.FsC({type:I,selectors:[["","routerLinkActive",""]],contentQueries:function(q,ae,Ne){if(1&q&&g.wni(Ne,ac,5),2&q){let bt;g.mGM(bt=g.lsd())&&(ae.links=bt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[g.OA$]})}return I})();class cc{}let Ud=(()=>{class I{preload(R,q){return q().pipe((0,dn.W)(()=>(0,oe.of)(null)))}static#e=this.\u0275fac=function(q){return new(q||I)};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),Tu=(()=>{class I{constructor(R,q,ae,Ne,bt){this.router=R,this.injector=ae,this.preloadingStrategy=Ne,this.loader=bt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Wt.p)(R=>R instanceof Ps),(0,Hr.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(R,q){const ae=[];for(const Ne of q){Ne.providers&&!Ne._injector&&(Ne._injector=(0,g.Ol2)(Ne.providers,R,`Route: ${Ne.path}`));const bt=Ne._injector??R,an=Ne._loadedInjector??bt;(Ne.loadChildren&&!Ne._loadedRoutes&&void 0===Ne.canLoad||Ne.loadComponent&&!Ne._loadedComponent)&&ae.push(this.preloadConfig(bt,Ne)),(Ne.children||Ne._loadedRoutes)&&ae.push(this.processRoutes(an,Ne.children??Ne._loadedRoutes))}return(0,V.H)(ae).pipe((0,te.U)())}preloadConfig(R,q){return this.preloadingStrategy.preload(q,()=>{let ae;ae=q.loadChildren&&void 0===q.canLoad?this.loader.loadChildren(R,q):(0,oe.of)(null);const Ne=ae.pipe((0,wn.Z)(bt=>null===bt?(0,oe.of)(void 0):(q._loadedRoutes=bt.routes,q._loadedInjector=bt.injector,this.processRoutes(bt.injector??R,bt.routes))));if(q.loadComponent&&!q._loadedComponent){const bt=this.loader.loadComponent(q);return(0,V.H)([Ne,bt]).pipe((0,te.U)())}return Ne})}static#e=this.\u0275fac=function(q){return new(q||I)(g.KVO(Za),g.KVO(g.Ql9),g.KVO(g.uvJ),g.KVO(cc),g.KVO(Ot))};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();const qc=new g.nKC("");let ru=(()=>{class I{constructor(R,q,ae,Ne,bt={}){this.urlSerializer=R,this.transitions=q,this.viewportScroller=ae,this.zone=Ne,this.options=bt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},bt.scrollPositionRestoration=bt.scrollPositionRestoration||"disabled",bt.anchorScrolling=bt.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(R=>{R instanceof ta?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=R.navigationTrigger,this.restoredId=R.restoredState?R.restoredState.navigationId:0):R instanceof Ps?(this.lastId=R.id,this.scheduleScrollEvent(R,this.urlSerializer.parse(R.urlAfterRedirects).fragment)):R instanceof ws&&0===R.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(R,this.urlSerializer.parse(R.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(R=>{R instanceof Ws&&(R.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(R.position):R.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(R.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(R,q){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ws(R,"popstate"===this.lastSource?this.store[this.restoredId]:null,q))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(q){g.QTQ()};static#t=this.\u0275prov=g.jDH({token:I,factory:I.\u0275fac})}return I})();function Wd(I,...B){return(0,g.EmA)([{provide:Ie,multi:!0,useValue:I},[],{provide:qs,useFactory:n2,deps:[Za]},{provide:g.iLQ,multi:!0,useFactory:Pl},B.map(R=>R.\u0275providers)])}function n2(I){return I.routerState.root}function Nl(I,B){return{\u0275kind:I,\u0275providers:B}}function ou(I={}){return Nl(4,[{provide:qc,useFactory:()=>{const R=(0,g.WQX)(He.Xr),q=(0,g.WQX)(g.SKi),ae=(0,g.WQX)(lo),Ne=(0,g.WQX)(no);return new ru(Ne,ae,R,q,I)}}])}function Pl(){const I=(0,g.WQX)(g.zZn);return B=>{const R=I.get(g.o8S);if(B!==R.components[0])return;const q=I.get(Za),ae=I.get(x1);1===I.get(f1)&&q.initialNavigation(),I.get(Au,null,g.$GK.Optional)?.setUpPreloading(),I.get(qc,null,g.$GK.Optional)?.init(),q.resetRootComponentType(R.componentTypes[0]),ae.closed||(ae.next(),ae.complete(),ae.unsubscribe())}}const x1=new g.nKC("",{factory:()=>new he.B}),f1=new g.nKC("",{providedIn:"root",factory:()=>1}),Au=new g.nKC("");function qd(I){return Nl(0,[{provide:Au,useExisting:Tu},{provide:cc,useExisting:I}])}const au=new g.nKC("ROUTER_FORROOT_GUARD"),ld=[He.aZ,{provide:no,useClass:Jr},Za,Ka,{provide:qs,useFactory:n2,deps:[Za]},Ot,[]];function Ec(){return new g.NEm("Router",Za)}let w1=(()=>{class I{constructor(R){}static forRoot(R,q){return{ngModule:I,providers:[ld,[],{provide:Ie,multi:!0,useValue:R},{provide:au,useFactory:V2,deps:[[Za,new g.Xx1,new g.kdw]]},{provide:Fa,useValue:q||{}},q?.useHash?{provide:He.hb,useClass:He.fw}:{provide:He.hb,useClass:He.Sm},{provide:qc,useFactory:()=>{const I=(0,g.WQX)(He.Xr),B=(0,g.WQX)(g.SKi),R=(0,g.WQX)(Fa),q=(0,g.WQX)(lo),ae=(0,g.WQX)(no);return R.scrollOffset&&I.setOffset(R.scrollOffset),new ru(ae,q,I,B,R)}},q?.preloadingStrategy?qd(q.preloadingStrategy).\u0275providers:[],{provide:g.NEm,multi:!0,useFactory:Ec},q?.initialNavigation?ud(q):[],q?.bindToComponentInputs?Nl(8,[wc,{provide:Is,useExisting:wc}]).\u0275providers:[],[{provide:cu,useFactory:Pl},{provide:g.iLQ,multi:!0,useExisting:cu}]]}}static forChild(R){return{ngModule:I,providers:[{provide:Ie,multi:!0,useValue:R}]}}static#e=this.\u0275fac=function(q){return new(q||I)(g.KVO(au,8))};static#t=this.\u0275mod=g.$C({type:I});static#n=this.\u0275inj=g.G2t({})}return I})();function V2(I){return"guarded"}function ud(I){return["disabled"===I.initialNavigation?Nl(3,[{provide:g.hnV,multi:!0,useFactory:()=>{const B=(0,g.WQX)(Za);return()=>{B.setUpLocationChangeListener()}}},{provide:f1,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Nl(2,[{provide:f1,useValue:0},{provide:g.hnV,multi:!0,deps:[g.zZn],useFactory:B=>{const R=B.get(He.hj,Promise.resolve());return()=>R.then(()=>new Promise(q=>{const ae=B.get(Za),Ne=B.get(x1);uo(ae,()=>{q(!0)}),B.get(lo).afterPreactivation=()=>(q(!0),Ne.closed?(0,oe.of)(void 0):Ne),ae.initialNavigation()}))}}]).\u0275providers:[]]}const cu=new g.nKC("")},6897:(vn,J,F)=>{"use strict";F.d(J,{Zq:()=>me});var g=F(2669),o=F(6610),V=F(2978),oe=F(8832);let De=(()=>{class ze{create(Re,tt){return(0,g.Ay)(Re,tt)}static#e=this.\u0275fac=function(tt){return new(tt||ze)};static#t=this.\u0275prov=V.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})();const pe=new V.nKC("IMASK_FACTORY",{providedIn:"root",factory:()=>(0,V.WQX)(De)}),Ee={provide:oe.kq,useExisting:(0,V.Rfq)(()=>me),multi:!0},be=ze=>ze.nativeElement;let me=(()=>{class ze{constructor(){this.onTouched=()=>{},this.onChange=()=>{},this._viewInitialized=!1,this._composing=!1,this._writing=!1,this._elementRef=(0,V.WQX)(V.aKT),this._renderer=(0,V.WQX)(V.sFG),this._factory=(0,V.WQX)(pe),this._platformId=(0,V.WQX)(V.Agw),this._compositionMode=(0,V.WQX)(oe.mP,{optional:!0})??!this._isAndroid(),this.imaskElement=be,this.accept=new V.bkB,this.complete=new V.bkB}get element(){return this.imaskElement(this._elementRef,this)}get maskValue(){return this.maskRef?"typed"===this.unmask?this.maskRef.typedValue:this.unmask?this.maskRef.unmaskedValue:this.maskRef.value:this.element?.value||""}set maskValue(Re){this.maskRef?"typed"===this.unmask?this.maskRef.typedValue=Re:this.unmask?this.maskRef.unmaskedValue=Re:this.maskRef.value=Re:this._renderer.setProperty(this.element,"value",Re)}ngAfterViewInit(){this.imask&&this.initMask(),this._viewInitialized=!0}ngOnChanges(Re){Re.elementRef&&!this.imaskElement&&(this.imaskElement=be),Re.imask&&this._viewInitialized&&(this.imask?this.maskRef?this.maskRef.updateOptions(this.imask):(this.initMask(),this.onChange(this.maskValue)):this.destroyMask())}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}ngOnDestroy(){this.destroyMask(),this.accept.complete(),this.complete.complete()}beginWrite(Re){this._writing=!0,this._writingValue=Re}endWrite(){return this._writing=!1,this._writingValue}writeValue(Re){Re=null==Re&&"typed"!==this.unmask?"":Re,this.maskRef?(this.beginWrite(Re),this.maskValue=Re,this.endWrite()):(this._renderer.setProperty(this.element,"value",Re),this._initialValue=Re)}_onAccept(){const Re=this.maskValue;this._writing&&Re===this.endWrite()||(this.onChange(Re),this.accept.emit(Re))}_onComplete(){this.complete.emit(this.maskValue)}initMask(){this.maskRef=this._factory.create(this.element,this.imask).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),null!=this._initialValue&&this.writeValue(this._initialValue),delete this._initialValue}setDisabledState(Re){this._renderer.setProperty(this.element,"disabled",Re)}registerOnChange(Re){this.onChange=Re}registerOnTouched(Re){this.onTouched=Re}_handleInput(Re){this.maskRef||(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Re)}_compositionStart(){this._composing=!0}_compositionEnd(Re){this._composing=!1,this._compositionMode&&this._handleInput(Re)}_isAndroid(){return(0,o.UE)(this._platformId)&&/android (\d+)/.test(navigator.userAgent.toLowerCase())}static#e=this.\u0275fac=function(tt){return new(tt||ze)};static#t=this.\u0275dir=V.FsC({type:ze,selectors:[["","imask",""]],hostBindings:function(tt,de){1&tt&&V.bIt("input",function(_t){return de._handleInput(_t.target.value)})("blur",function(){return de.onTouched()})("compositionstart",function(){return de._compositionStart()})("compositionend",function(_t){return de._compositionEnd(_t.target.value)})},inputs:{imask:"imask",unmask:"unmask",imaskElement:"imaskElement"},outputs:{accept:"accept",complete:"complete"},exportAs:["imask"],standalone:!0,features:[V.Jv_([Ee]),V.OA$]})}return ze})()},2669:(vn,J,F)=>{"use strict";function g(Ze){return"string"==typeof Ze||Ze instanceof String}function o(Ze){var H;return"object"==typeof Ze&&null!=Ze&&"Object"===(null==Ze||null==(H=Ze.constructor)?void 0:H.name)}function V(Ze,H){return Array.isArray(H)?V(Ze,(te,xe)=>H.includes(xe)):Object.entries(Ze).reduce((te,xe)=>{let[Ce,zt]=xe;return H(zt,Ce)&&(te[Ce]=zt),te},{})}F.d(J,{Ay:()=>me});function pe(Ze){return Ze.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function Ee(Ze,H){if(H===Ze)return!0;const te=Array.isArray(H),xe=Array.isArray(Ze);let Ce;if(te&&xe){if(H.length!=Ze.length)return!1;for(Ce=0;Ce!zt.startsWith("_")),mask:H.constructor,_mask:xe,...te}}}return o(Ze)?{...Ze}:{mask:Ze}}function ze(Ze){if(me.Masked&&Ze instanceof me.Masked)return Ze;const H=Ve(Ze),te=Te(H.mask);if(!te)throw new Error("Masked class is not found for provided mask "+H.mask+", appropriate module needs to be imported manually before creating mask.");return H.mask===te&&delete H.mask,H._mask&&(H.mask=H._mask,delete H._mask),new te(H)}me.createMask=ze;class vt{get selectionStart(){let H;try{H=this._unsafeSelectionStart}catch{}return H??this.value.length}get selectionEnd(){let H;try{H=this._unsafeSelectionEnd}catch{}return H??this.value.length}select(H,te){if(null!=H&&null!=te&&(H!==this.selectionStart||te!==this.selectionEnd))try{this._unsafeSelect(H,te)}catch{}}get isActive(){return!1}}me.MaskElement=vt;class de extends vt{constructor(H){super(),this.input=H,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var H,te,xe;return null!=(H=null==(te=(xe=this.input).getRootNode)?void 0:te.call(xe))?H:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(H){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",H.drop),this.input.addEventListener("click",H.click),this.input.addEventListener("focus",H.focus),this.input.addEventListener("blur",H.commit),this._handlers=H}_onKeydown(H){return this._handlers.redo&&(90===H.keyCode&&H.shiftKey&&(H.metaKey||H.ctrlKey)||89===H.keyCode&&H.ctrlKey)?(H.preventDefault(),this._handlers.redo(H)):this._handlers.undo&&90===H.keyCode&&(H.metaKey||H.ctrlKey)?(H.preventDefault(),this._handlers.undo(H)):void(H.isComposing||this._handlers.selectionChange(H))}_onBeforeinput(H){return"historyUndo"===H.inputType&&this._handlers.undo?(H.preventDefault(),this._handlers.undo(H)):"historyRedo"===H.inputType&&this._handlers.redo?(H.preventDefault(),this._handlers.redo(H)):void 0}_onCompositionEnd(H){this._handlers.input(H)}_onInput(H){H.isComposing||this._handlers.input(H)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}me.HTMLMaskElement=de;class Fe extends de{constructor(H){super(H),this.input=H}get _unsafeSelectionStart(){return null!=this.input.selectionStart?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(H,te){this.input.setSelectionRange(H,te)}get value(){return this.input.value}set value(H){this.input.value=H}}me.HTMLMaskElement=de;class _t extends de{get _unsafeSelectionStart(){const H=this.rootElement,te=H.getSelection&&H.getSelection(),xe=te&&te.anchorOffset,Ce=te&&te.focusOffset;return null==Ce||null==xe||xeCe?xe:Ce}_unsafeSelect(H,te){if(!this.rootElement.createRange)return;const xe=this.rootElement.createRange();xe.setStart(this.input.firstChild||this.input,H),xe.setEnd(this.input.lastChild||this.input,te);const Ce=this.rootElement,zt=Ce.getSelection&&Ce.getSelection();zt&&(zt.removeAllRanges(),zt.addRange(xe))}get value(){return this.input.textContent||""}set value(H){this.input.textContent=H}}me.HTMLContenteditableMaskElement=_t;let at=(()=>{class Ze{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return 0===this.states.length}push(te){this.currentIndexZe.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(te){return this.currentIndex=Math.min(Math.max(this.currentIndex+te,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}return Ze.MAX_LENGTH=100,Ze})();me.InputMask=class Be{constructor(H,te){this.el=H instanceof vt?H:H.isContentEditable&&"INPUT"!==H.tagName&&"TEXTAREA"!==H.tagName?new _t(H):new Fe(H),this.masked=ze(te),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new at,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(H){var te;return null==H||(null==(te=this.masked)?void 0:te.maskEquals(H))}get mask(){return this.masked.mask}set mask(H){if(this.maskEquals(H))return;if(!(H instanceof me.Masked)&&this.masked.constructor===Te(H))return void this.masked.updateOptions({mask:H});const te=H instanceof me.Masked?H:ze({mask:H});te.unmaskedValue=this.masked.unmaskedValue,this.masked=te}get value(){return this._value}set value(H){this.value!==H&&(this.masked.value=H,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(H){this.unmaskedValue!==H&&(this.masked.unmaskedValue=H,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(H){this.rawInputValue!==H&&(this.masked.rawInputValue=H,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(H){this.masked.typedValueEquals(H)||(this.masked.typedValue=H,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(H,te){const xe=this._listeners[H];xe&&xe.forEach(Ce=>Ce(te))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(H){!this.el||!this.el.isActive||(this.el.select(H,H),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(H){const te=this.masked.unmaskedValue,xe=this.masked.value,Ce=this.masked.rawInputValue,zt=this.displayValue,rt=this.unmaskedValue!==te||this.value!==xe||this._rawInputValue!==Ce;this._unmaskedValue=te,this._value=xe,this._rawInputValue=Ce,this.el.value!==zt&&(this.el.value=zt),"auto"===H?this.alignCursor():null!=H&&(this.cursorPos=H),rt&&this._fireChangeEvents(),!this._historyChanging&&(rt||this.history.isEmpty)&&this.history.push({unmaskedValue:te,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(H){const{mask:te,...xe}=H,Ce=!this.maskEquals(te),zt=this.masked.optionsIsChanged(xe);Ce&&(this.mask=te),zt&&this.masked.updateOptions(xe),(Ce||zt)&&this.updateControl()}updateCursor(H){null!=H&&(this.cursorPos=H,this._delayUpdateCursor(H))}_delayUpdateCursor(H){this._abortUpdateCursor(),this._changingCursorPos=H,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,"LEFT"))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(H,te){return this._listeners[H]||(this._listeners[H]=[]),this._listeners[H].push(te),this}off(H,te){if(!this._listeners[H])return this;if(!te)return delete this._listeners[H],this;const xe=this._listeners[H].indexOf(te);return xe>=0&&this._listeners[H].splice(xe,1),this}_onInput(H){this._inputEvent=H,this._abortUpdateCursor();const te=new be({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),xe=this.masked.rawInputValue,Ce=this.masked.splice(te.startChangePos,te.removed.length,te.inserted,te.removeDirection,{input:!0,raw:!0}).offset,zt=xe===this.masked.rawInputValue?te.removeDirection:"NONE";let rt=this.masked.nearestInputPos(te.startChangePos+Ce,zt);"NONE"!==zt&&(rt=this.masked.nearestInputPos(rt,"NONE")),this.updateControl(rt),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(H){H.preventDefault(),H.stopPropagation()}_onFocus(H){this.alignCursorFriendly()}_onClick(H){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(H){H&&(this._historyChanging=!0,this.unmaskedValue=H.unmaskedValue,this.el.select(H.selection.start,H.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};class he{static normalize(H){return Array.isArray(H)?H:[H,new he]}constructor(H){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},H)}aggregate(H){return this.inserted+=H.inserted,this.rawInserted+=H.rawInserted,this.tailShift+=H.tailShift,this.skip=this.skip||H.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(H){return this.inserted===H.inserted&&this.tailShift===H.tailShift&&this.rawInserted===H.rawInserted&&this.skip===H.skip}}me.ChangeDetails=he;class He{constructor(H,te,xe){void 0===H&&(H=""),void 0===te&&(te=0),this.value=H,this.from=te,this.stop=xe}toString(){return this.value}extend(H){this.value+=String(H)}appendTo(H){return H.append(this.toString(),{tail:!0}).aggregate(H._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(H){Object.assign(this,H)}unshift(H){if(!this.value.length||null!=H&&this.from>=H)return"";const te=this.value[0];return this.value=this.value.slice(1),te}shift(){if(!this.value.length)return"";const H=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),H}}class Se{constructor(H){this._value="",this._update({...Se.DEFAULTS,...H}),this._initialized=!0}updateOptions(H){this.optionsIsChanged(H)&&this.withValueRefresh(this._update.bind(this,H))}_update(H){Object.assign(this,H)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(H){this._value=H._value}reset(){this._value=""}get value(){return this._value}set value(H){this.resolve(H,{input:!0})}resolve(H,te){void 0===te&&(te={input:!0}),this.reset(),this.append(H,te,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(H){this.resolve(H,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(H){this.format?this.value=this.format(H,this):this.unmaskedValue=String(H)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(H){this.resolve(H,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(H,te){return H}totalInputPositions(H,te){return void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),Math.min(this.displayValue.length,te-H)}extractInput(H,te,xe){return void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),this.displayValue.slice(H,te)}extractTail(H,te){return void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),new He(this.extractInput(H,te),H)}appendTail(H){return g(H)&&(H=new He(String(H))),H.appendTo(this)}_appendCharRaw(H,te){return H?(this._value+=H,new he({inserted:H,rawInserted:H})):new he}_appendChar(H,te,xe){void 0===te&&(te={});const Ce=this.state;let zt;if([H,zt]=this.doPrepareChar(H,te),H&&(zt=zt.aggregate(this._appendCharRaw(H,te)),!zt.rawInserted&&"pad"===this.autofix)){const rt=this.state;this.state=Ce;let xt=this.pad(te);const Gt=this._appendCharRaw(H,te);xt=xt.aggregate(Gt),Gt.rawInserted||xt.equals(zt)?zt=xt:this.state=rt}if(zt.inserted){let rt,xt=!1!==this.doValidate(te);if(xt&&null!=xe){const Gt=this.state;if(!0===this.overwrite){rt=xe.state;for(let In=0;In1&&0!==H&&!Gt?"NONE":Ce),xi.tailShift=In-H),xi.aggregate(this.remove(In)),Gt&&"NONE"!==Ce&&xn===this.rawInputValue)if("FORCE_LEFT"===Ce){let or;for(;xn===this.rawInputValue&&(or=this.displayValue.length);)xi.aggregate(new he({tailShift:-1})).aggregate(this.remove(or-1))}else"FORCE_RIGHT"===Ce&&xt.unshift();return xi.aggregate(this.append(xe,zt,xt))}maskEquals(H){return this.mask===H}optionsIsChanged(H){return!Ee(this,H)}typedValueEquals(H){const te=this.typedValue;return H===te||Se.EMPTY_VALUES.includes(H)&&Se.EMPTY_VALUES.includes(te)||!!this.format&&this.format(H,this)===this.format(this.typedValue,this)}pad(H){return new he}}Se.DEFAULTS={skipInvalid:!0},Se.EMPTY_VALUES=[void 0,null,""],me.Masked=Se;class it{constructor(H,te){void 0===H&&(H=[]),void 0===te&&(te=0),this.chunks=H,this.from=te}toString(){return this.chunks.map(String).join("")}extend(H){if(!String(H))return;H=g(H)?new He(String(H)):H;const te=this.chunks[this.chunks.length-1],xe=te&&(te.stop===H.stop||null==H.stop)&&H.from===te.from+te.toString().length;if(H instanceof He)xe?te.extend(H.toString()):this.chunks.push(H);else if(H instanceof it){if(null==H.stop){let Ce;for(;H.chunks.length&&null==H.chunks[0].stop;)Ce=H.chunks.shift(),Ce.from+=H.from,this.extend(Ce)}H.toString()&&(H.stop=H.blockIndex,this.chunks.push(H))}}appendTo(H){if(!(H instanceof me.MaskedPattern))return new He(this.toString()).appendTo(H);const te=new he;for(let xe=0;xe=0)&&te.aggregate(H._appendPlaceholder(rt)),xt=Ce instanceof it&&H._blocks[rt]),xt){const Gt=xt.appendTail(Ce);te.aggregate(Gt);const xn=Ce.toString().slice(Gt.rawInserted.length);xn&&te.aggregate(H.append(xn,{tail:!0}))}else te.aggregate(H.append(Ce.toString(),{tail:!0}))}return te}get state(){return{chunks:this.chunks.map(H=>H.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(H){const{chunks:te,...xe}=H;Object.assign(this,xe),this.chunks=te.map(Ce=>{const zt="chunks"in Ce?new it:new He;return zt.state=Ce,zt})}unshift(H){if(!this.chunks.length||null!=H&&this.from>=H)return"";const te=null!=H?H-this.from:H;let xe=0;for(;xe=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(H){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null==(te=this.block)?void 0:te.displayValue.length)||0){var te;if(H())return this.ok=!0}return this.ok=!1}_pushRight(H){for(this.pushState(),this.bindBlock();this.index{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,"FORCE_LEFT"),0!==this.offset))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,"LEFT"),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,"LEFT"),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,"FORCE_RIGHT"),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,"NONE"),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,"NONE"),!0})}}class jt{constructor(H){Object.assign(this,H),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(H,te){return void 0===H&&(H=0),void 0===te&&(te=this._value.length),this._value=this._value.slice(0,H)+this._value.slice(te),this._value||(this._isRawInput=!1),new he}nearestInputPos(H,te){void 0===te&&(te="NONE");const Ce=this._value.length;switch(te){case"LEFT":case"FORCE_LEFT":return 0;default:return Ce}}totalInputPositions(H,te){return void 0===H&&(H=0),void 0===te&&(te=this._value.length),this._isRawInput?te-H:0}extractInput(H,te,xe){return void 0===H&&(H=0),void 0===te&&(te=this._value.length),void 0===xe&&(xe={}),xe.raw&&this._isRawInput&&this._value.slice(H,te)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(H,te){if(void 0===te&&(te={}),this.isFilled)return new he;const zt=this.char===H&&(this.isUnmasking||te.input||te.raw)&&(!te.raw||!(!0===this.eager||"append"===this.eager))&&!te.tail,rt=new he({inserted:this.char,rawInserted:zt?this.char:""});return this._value=this.char,this._isRawInput=zt&&(te.raw||te.input),rt}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const H=new he;return this.isFilled||(this._value=H.inserted=this.char),H}extractTail(){return new He("")}appendTail(H){return g(H)&&(H=new He(String(H))),H.appendTo(this)}append(H,te,xe){const Ce=this._appendChar(H[0],te);return null!=xe&&(Ce.tailShift+=this.appendTail(xe).tailShift),Ce}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(H){this._value=H._value,this._isRawInput=!!H._rawInputValue}pad(H){return this._appendPlaceholder()}}let Wt=(()=>{class Ze{constructor(te){const{parent:xe,isOptional:Ce,placeholderChar:zt,displayChar:rt,lazy:xt,eager:Gt,...xn}=te;this.masked=ze(xn),Object.assign(this,{parent:xe,isOptional:Ce,placeholderChar:zt,displayChar:rt,lazy:xt,eager:Gt})}reset(){this.isFilled=!1,this.masked.reset()}remove(te,xe){return void 0===te&&(te=0),void 0===xe&&(xe=this.value.length),0===te&&xe>=1?(this.isFilled=!1,this.masked.remove(te,xe)):new he}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(te,xe){if(void 0===xe&&(xe={}),this.isFilled)return new he;const Ce=this.masked.state;let zt=this.masked._appendChar(te,this.currentMaskFlags(xe));return zt.inserted&&!1===this.doValidate(xe)&&(zt=new he,this.masked.state=Ce),!zt.inserted&&!this.isOptional&&!this.lazy&&!xe.input&&(zt.inserted=this.placeholderChar),zt.skip=!zt.inserted&&!this.isOptional,this.isFilled=!!zt.inserted,zt}append(te,xe,Ce){return this.masked.append(te,this.currentMaskFlags(xe),Ce)}_appendPlaceholder(){return this.isFilled||this.isOptional?new he:(this.isFilled=!0,new he({inserted:this.placeholderChar}))}_appendEager(){return new he}extractTail(te,xe){return this.masked.extractTail(te,xe)}appendTail(te){return this.masked.appendTail(te)}extractInput(te,xe,Ce){return void 0===te&&(te=0),void 0===xe&&(xe=this.value.length),this.masked.extractInput(te,xe,Ce)}nearestInputPos(te,xe){void 0===xe&&(xe="NONE");const zt=this.value.length,rt=Math.min(Math.max(te,0),zt);switch(xe){case"LEFT":case"FORCE_LEFT":return this.isComplete?rt:0;case"RIGHT":case"FORCE_RIGHT":return this.isComplete?rt:zt;default:return rt}}totalInputPositions(te,xe){return void 0===te&&(te=0),void 0===xe&&(xe=this.value.length),this.value.slice(te,xe).length}doValidate(te){return this.masked.doValidate(this.currentMaskFlags(te))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(te)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(te){this.masked.state=te.masked,this.isFilled=te.isFilled}currentMaskFlags(te){var xe;return{...te,_beforeTailState:(null==te||null==(xe=te._beforeTailState)?void 0:xe.masked)||te?._beforeTailState}}pad(te){return new he}}return Ze.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\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\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-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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-\u2C2E\u2C30-\u2C5E\u2C60-\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\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]/,"*":/./},Ze})();me.MaskedRegExp=class wn extends Se{updateOptions(H){super.updateOptions(H)}_update(H){const te=H.mask;te&&(H.validate=xe=>xe.search(te)>=0),super._update(H)}};class Wn extends Se{constructor(H){super({...Wn.DEFAULTS,...H,definitions:Object.assign({},Wt.DEFAULT_DEFINITIONS,H?.definitions)})}updateOptions(H){super.updateOptions(H)}_update(H){H.definitions=Object.assign({},this.definitions,H.definitions),super._update(H),this._rebuildMask()}_rebuildMask(){const H=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const te=this.mask;if(!te||!H)return;let xe=!1,Ce=!1;for(let zt=0;zt0===xn.indexOf(or));In.sort((or,ci)=>ci.length-or.length);const xi=In[0];if(xi){const{expose:or,repeat:ci,...Dr}=Ve(this.blocks[xi]),Tr={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...Dr,repeat:ci,parent:this},cn=null!=ci?new me.RepeatBlock(Tr):ze(Tr);cn&&(this._blocks.push(cn),or&&(this.exposeBlock=cn),this._maskedBlocks[xi]||(this._maskedBlocks[xi]=[]),this._maskedBlocks[xi].push(this._blocks.length-1)),zt+=xi.length-1;continue}}let rt=te[zt],xt=rt in H;if(rt===Wn.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===rt||"}"===rt){xe=!xe;continue}if("["===rt||"]"===rt){Ce=!Ce;continue}if(rt===Wn.ESCAPE_CHAR){if(++zt,rt=te[zt],!rt)break;xt=!1}const Gt=xt?new Wt({isOptional:Ce,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Ve(H[rt]),parent:this}):new jt({char:rt,eager:this.eager,isUnmasking:xe});this._blocks.push(Gt)}}get state(){return{...super.state,_blocks:this._blocks.map(H=>H.state)}}set state(H){if(!H)return void this.reset();const{_blocks:te,...xe}=H;this._blocks.forEach((Ce,zt)=>Ce.state=te[zt]),super.state=xe}reset(){super.reset(),this._blocks.forEach(H=>H.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(H=>H.isComplete)}get isFilled(){return this._blocks.every(H=>H.isFilled)}get isFixed(){return this._blocks.every(H=>H.isFixed)}get isOptional(){return this._blocks.every(H=>H.isOptional)}doCommit(){this._blocks.forEach(H=>H.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((H,te)=>H+te.unmaskedValue,"")}set unmaskedValue(H){if(this.exposeBlock){const te=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=H,this.appendTail(te),this.doCommit()}else super.unmaskedValue=H}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((H,te)=>H+te.value,"")}set value(H){if(this.exposeBlock){const te=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=H,this.appendTail(te),this.doCommit()}else super.value=H}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(H){if(this.exposeBlock){const te=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=H,this.appendTail(te),this.doCommit()}else super.typedValue=H}get displayValue(){return this._blocks.reduce((H,te)=>H+te.displayValue,"")}appendTail(H){return super.appendTail(H).aggregate(this._appendPlaceholder())}_appendEager(){var H;const te=new he;let xe=null==(H=this._mapPosToBlock(this.displayValue.length))?void 0:H.index;if(null==xe)return te;this._blocks[xe].isFilled&&++xe;for(let Ce=xe;Ce{const Gt=Ce.extractTail(rt,xt);Gt.stop=this._findStopBefore(zt),Gt.from=this._blockStartPos(zt),Gt instanceof it&&(Gt.blockIndex=zt),xe.extend(Gt)}),xe}extractInput(H,te,xe){if(void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),void 0===xe&&(xe={}),H===te)return"";let Ce="";return this._forEachBlocksInRange(H,te,(zt,rt,xt,Gt)=>{Ce+=zt.extractInput(xt,Gt,xe)}),Ce}_findStopBefore(H){let te;for(let xe=0;xe{var xt;rt.lazy&&null==H||te.aggregate(rt._appendPlaceholder(null==(xt=rt._blocks)?void 0:xt.length))}),te):te}_mapPosToBlock(H){let te="";for(let xe=0;xete+xe.displayValue.length,0)}_forEachBlocksInRange(H,te,xe){void 0===te&&(te=this.displayValue.length);const Ce=this._mapPosToBlock(H);if(Ce){const zt=this._mapPosToBlock(te),rt=zt&&Ce.index===zt.index;if(xe(this._blocks[Ce.index],Ce.index,Ce.offset,zt&&rt?zt.offset:this._blocks[Ce.index].displayValue.length),zt&&!rt){for(let xn=Ce.index+1;xn{xe.aggregate(Ce.remove(rt,xt))}),xe}nearestInputPos(H,te){if(void 0===te&&(te="NONE"),!this._blocks.length)return 0;const xe=new dt(this,H);if("NONE"===te)return xe.pushRightBeforeInput()||(xe.popState(),xe.pushLeftBeforeInput())?xe.pos:this.displayValue.length;if("LEFT"===te||"FORCE_LEFT"===te){if("LEFT"===te){if(xe.pushRightBeforeFilled(),xe.ok&&xe.pos===H)return H;xe.popState()}if(xe.pushLeftBeforeInput(),xe.pushLeftBeforeRequired(),xe.pushLeftBeforeFilled(),"LEFT"===te){if(xe.pushRightBeforeInput(),xe.pushRightBeforeRequired(),xe.ok&&xe.pos<=H||(xe.popState(),xe.ok&&xe.pos<=H))return xe.pos;xe.popState()}return xe.ok?xe.pos:"FORCE_LEFT"===te?0:(xe.popState(),xe.ok||(xe.popState(),xe.ok)?xe.pos:0)}return"RIGHT"===te||"FORCE_RIGHT"===te?(xe.pushRightBeforeInput(),xe.pushRightBeforeRequired(),xe.pushRightBeforeFilled()?xe.pos:"FORCE_RIGHT"===te?this.displayValue.length:(xe.popState(),xe.ok||(xe.popState(),xe.ok)?xe.pos:this.nearestInputPos(H,"LEFT"))):H}totalInputPositions(H,te){void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length);let xe=0;return this._forEachBlocksInRange(H,te,(Ce,zt,rt,xt)=>{xe+=Ce.totalInputPositions(rt,xt)}),xe}maskedBlock(H){return this.maskedBlocks(H)[0]}maskedBlocks(H){const te=this._maskedBlocks[H];return te?te.map(xe=>this._blocks[xe]):[]}pad(H){const te=new he;return this._forEachBlocksInRange(0,this.displayValue.length,xe=>te.aggregate(xe.pad(H))),te}}Wn.DEFAULTS={...Se.DEFAULTS,lazy:!0,placeholderChar:"_"},Wn.STOP_CHAR="`",Wn.ESCAPE_CHAR="\\",Wn.InputDefinition=Wt,Wn.FixedDefinition=jt,me.MaskedPattern=Wn;class di extends Wn{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(H){super(H)}updateOptions(H){super.updateOptions(H)}_update(H){const{to:te=this.to||0,from:xe=this.from||0,maxLength:Ce=this.maxLength||0,autofix:zt=this.autofix,...rt}=H;this.to=te,this.from=xe,this.maxLength=Math.max(String(te).length,Ce),this.autofix=zt;const xt=String(this.from).padStart(this.maxLength,"0"),Gt=String(this.to).padStart(this.maxLength,"0");let xn=0;for(;xnthis.maxLength)return super._appendCharRaw(H,te);const xe=String(this.from).padStart(this.maxLength,"0"),Ce=String(this.to).padStart(this.maxLength,"0"),[zt,rt]=this.boundaries(this.value+H);return Number(rt)this.to?!te.tail&&"pad"===this.autofix&&this.value.length+1this._appendCharRaw(zt))}return te}}me.MaskedRange=di;class Li extends Wn{static extractPatternOptions(H){const{mask:te,pattern:xe,...Ce}=H;return{...Ce,mask:g(te)?te:xe}}constructor(H){super(Li.extractPatternOptions({...Li.DEFAULTS,...H}))}updateOptions(H){super.updateOptions(H)}_update(H){const{mask:te,pattern:xe,blocks:Ce,...zt}={...Li.DEFAULTS,...H},rt=Object.assign({},Li.GET_DEFAULT_BLOCKS());H.min&&(rt.Y.from=H.min.getFullYear()),H.max&&(rt.Y.to=H.max.getFullYear()),H.min&&H.max&&rt.Y.from===rt.Y.to&&(rt.m.from=H.min.getMonth()+1,rt.m.to=H.max.getMonth()+1,rt.m.from===rt.m.to&&(rt.d.from=H.min.getDate(),rt.d.to=H.max.getDate())),Object.assign(rt,this.blocks,Ce),super._update({...zt,mask:g(te)?te:xe,blocks:rt})}doValidate(H){const te=this.date;return super.doValidate(H)&&(!this.isComplete||this.isDateExist(this.value)&&null!=te&&(null==this.min||this.min<=te)&&(null==this.max||te<=this.max))}isDateExist(H){return this.format(this.parse(H,this),this).indexOf(H)>=0}get date(){return this.typedValue}set date(H){this.typedValue=H}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(H){super.typedValue=H}maskEquals(H){return H===Date||super.maskEquals(H)}optionsIsChanged(H){return super.optionsIsChanged(Li.extractPatternOptions(H))}}Li.GET_DEFAULT_BLOCKS=()=>({d:{mask:di,from:1,to:31,maxLength:2},m:{mask:di,from:1,to:12,maxLength:2},Y:{mask:di,from:1900,to:9999}}),Li.DEFAULTS={...Wn.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(Ze,H)=>Ze?[String(Ze.getDate()).padStart(2,"0"),String(Ze.getMonth()+1).padStart(2,"0"),Ze.getFullYear()].join("."):"",parse:(Ze,H)=>{const[te,xe,Ce]=Ze.split(".").map(Number);return new Date(Ce,xe-1,te)}},me.MaskedDate=Li;class $i extends Se{constructor(H){super({...$i.DEFAULTS,...H}),this.currentMask=void 0}updateOptions(H){super.updateOptions(H)}_update(H){super._update(H),"mask"in H&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(H.mask)?H.mask.map(te=>{const{expose:xe,...Ce}=Ve(te),zt=ze({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...Ce});return xe&&(this.exposeMask=zt),zt}):[])}_appendCharRaw(H,te){void 0===te&&(te={});const xe=this._applyDispatch(H,te);return this.currentMask&&xe.aggregate(this.currentMask._appendChar(H,this.currentMaskFlags(te))),xe}_applyDispatch(H,te,xe){void 0===H&&(H=""),void 0===te&&(te={}),void 0===xe&&(xe="");const Ce=te.tail&&null!=te._beforeTailState?te._beforeTailState._value:this.value,zt=this.rawInputValue,rt=te.tail&&null!=te._beforeTailState?te._beforeTailState._rawInputValue:zt,xt=zt.slice(rt.length),Gt=this.currentMask,xn=new he,In=Gt?.state;return this.currentMask=this.doDispatch(H,{...te},xe),this.currentMask&&(this.currentMask!==Gt?(this.currentMask.reset(),rt&&(this.currentMask.append(rt,{raw:!0}),xn.tailShift=this.currentMask.value.length-Ce.length),xt&&(xn.tailShift+=this.currentMask.append(xt,{raw:!0,tail:!0}).tailShift)):In&&(this.currentMask.state=In)),xn}_appendPlaceholder(){const H=this._applyDispatch();return this.currentMask&&H.aggregate(this.currentMask._appendPlaceholder()),H}_appendEager(){const H=this._applyDispatch();return this.currentMask&&H.aggregate(this.currentMask._appendEager()),H}appendTail(H){const te=new he;return H&&te.aggregate(this._applyDispatch("",{},H)),te.aggregate(this.currentMask?this.currentMask.appendTail(H):super.appendTail(H))}currentMaskFlags(H){var te,xe;return{...H,_beforeTailState:(null==(te=H._beforeTailState)?void 0:te.currentMaskRef)===this.currentMask&&(null==(xe=H._beforeTailState)?void 0:xe.currentMask)||H._beforeTailState}}doDispatch(H,te,xe){return void 0===te&&(te={}),void 0===xe&&(xe=""),this.dispatch(H,this,te,xe)}doValidate(H){return super.doValidate(H)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(H)))}doPrepare(H,te){void 0===te&&(te={});let[xe,Ce]=super.doPrepare(H,te);if(this.currentMask){let zt;[xe,zt]=super.doPrepare(xe,this.currentMaskFlags(te)),Ce=Ce.aggregate(zt)}return[xe,Ce]}doPrepareChar(H,te){void 0===te&&(te={});let[xe,Ce]=super.doPrepareChar(H,te);if(this.currentMask){let zt;[xe,zt]=super.doPrepareChar(xe,this.currentMaskFlags(te)),Ce=Ce.aggregate(zt)}return[xe,Ce]}reset(){var H;null==(H=this.currentMask)||H.reset(),this.compiledMasks.forEach(te=>te.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(H){this.exposeMask?(this.exposeMask.value=H,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=H}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(H){this.exposeMask?(this.exposeMask.unmaskedValue=H,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=H}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(H){if(this.exposeMask)return this.exposeMask.typedValue=H,this.currentMask=this.exposeMask,void this._applyDispatch();let te=String(H);this.currentMask&&(this.currentMask.typedValue=H,te=this.currentMask.unmaskedValue),this.unmaskedValue=te}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var H;return!(null==(H=this.currentMask)||!H.isComplete)}get isFilled(){var H;return!(null==(H=this.currentMask)||!H.isFilled)}remove(H,te){const xe=new he;return this.currentMask&&xe.aggregate(this.currentMask.remove(H,te)).aggregate(this._applyDispatch()),xe}get state(){var H;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(te=>te.state),currentMaskRef:this.currentMask,currentMask:null==(H=this.currentMask)?void 0:H.state}}set state(H){const{compiledMasks:te,currentMaskRef:xe,currentMask:Ce,...zt}=H;te&&this.compiledMasks.forEach((rt,xt)=>rt.state=te[xt]),null!=xe&&(this.currentMask=xe,this.currentMask.state=Ce),super.state=zt}extractInput(H,te,xe){return this.currentMask?this.currentMask.extractInput(H,te,xe):""}extractTail(H,te){return this.currentMask?this.currentMask.extractTail(H,te):super.extractTail(H,te)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(H,te){return this.currentMask?this.currentMask.nearestInputPos(H,te):super.nearestInputPos(H,te)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(H){this._overwrite=H}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(H){this._eager=H}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(H){this._skipInvalid=H}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(H){this._autofix=H}maskEquals(H){return Array.isArray(H)?this.compiledMasks.every((te,xe)=>{if(!H[xe])return;const{mask:Ce,...zt}=H[xe];return Ee(te,zt)&&te.maskEquals(Ce)}):super.maskEquals(H)}typedValueEquals(H){var te;return!(null==(te=this.currentMask)||!te.typedValueEquals(H))}}$i.DEFAULTS={...Se.DEFAULTS,dispatch:(Ze,H,te,xe)=>{if(!H.compiledMasks.length)return;const Ce=H.rawInputValue,zt=H.compiledMasks.map((rt,xt)=>{const Gt=H.currentMask===rt,xn=Gt?rt.displayValue.length:rt.nearestInputPos(rt.displayValue.length,"FORCE_LEFT");return rt.rawInputValue!==Ce?(rt.reset(),rt.append(Ce,{raw:!0})):Gt||rt.remove(xn),rt.append(Ze,H.currentMaskFlags(te)),rt.appendTail(xe),{index:xt,weight:rt.rawInputValue.length,totalInputPositions:rt.totalInputPositions(0,Math.max(xn,rt.nearestInputPos(rt.displayValue.length,"FORCE_LEFT")))}});return zt.sort((rt,xt)=>xt.weight-rt.weight||xt.totalInputPositions-rt.totalInputPositions),H.compiledMasks[zt[0].index]}},me.MaskedDynamic=$i;class Hr extends Wn{constructor(H){super({...Hr.DEFAULTS,...H})}updateOptions(H){super.updateOptions(H)}_update(H){const{enum:te,...xe}=H;if(te){const Ce=te.map(xt=>xt.length),zt=Math.min(...Ce),rt=Math.max(...Ce)-zt;xe.mask="*".repeat(zt),rt&&(xe.mask+="["+"*".repeat(rt)+"]"),this.enum=te}super._update(xe)}_appendCharRaw(H,te){void 0===te&&(te={});const xe=Math.min(this.nearestInputPos(0,"FORCE_RIGHT"),this.value.length),Ce=this.enum.filter(zt=>this.matchValue(zt,this.unmaskedValue+H,xe));if(Ce.length){1===Ce.length&&this._forEachBlocksInRange(0,this.value.length,(rt,xt)=>{const Gt=Ce[0][xt];xt>=this.value.length||Gt===rt.value||(rt.reset(),rt._appendChar(Gt,te))});const zt=super._appendCharRaw(Ce[0][this.value.length],te);return 1===Ce.length&&Ce[0].slice(this.unmaskedValue.length).split("").forEach(rt=>zt.aggregate(super._appendCharRaw(rt))),zt}return new he({skip:!this.isComplete})}extractTail(H,te){return void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),new He("",H)}remove(H,te){if(void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),H===te)return new he;const xe=Math.min(super.nearestInputPos(0,"FORCE_RIGHT"),this.value.length);let Ce;for(Ce=H;Ce>=0&&!(this.enum.filter(xt=>this.matchValue(xt,this.value.slice(xe,Ce),xe)).length>1);--Ce);const zt=super.remove(Ce,te);return zt.tailShift+=Ce-H,zt}get isComplete(){return this.enum.indexOf(this.value)>=0}}var dn;Hr.DEFAULTS={...Wn.DEFAULTS,matchValue:(Ze,H,te)=>Ze.indexOf(H,te)===te},me.MaskedEnum=Hr,me.MaskedFunction=class ui extends Se{updateOptions(H){super.updateOptions(H)}_update(H){super._update({...H,validate:H.mask})}};class nt extends Se{constructor(H){super({...nt.DEFAULTS,...H})}updateOptions(H){super.updateOptions(H)}_update(H){super._update(H),this._updateRegExps()}_updateRegExps(){const H="^"+(this.allowNegative?"[+|\\-]?":""),xe=(this.scale?"("+pe(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(H+"\\d*"+xe),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(pe).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(pe(this.thousandsSeparator),"g")}_removeThousandsSeparators(H){return H.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(H){const te=H.split(this.radix);return te[0]=te[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),te.join(this.radix)}doPrepareChar(H,te){void 0===te&&(te={});const[xe,Ce]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(te.input&&te.raw||!te.input&&!te.raw)?H.replace(this._mapToRadixRegExp,this.radix):H),te);return H&&!xe&&(Ce.skip=!0),xe&&!this.allowPositive&&!this.value&&"-"!==xe&&Ce.aggregate(this._appendChar("-")),[xe,Ce]}_separatorsCount(H,te){void 0===te&&(te=!1);let xe=0;for(let Ce=0;Ce0&&this.number>this.max&&(or=this.max),null!=or&&(this.autofix?(this._value=this.format(or,this).replace(nt.UNMASKED_RADIX,this.radix),Gt||(Gt=zt===this._value&&!te.tail)):xt=!1),xt&&(xt=!!this._value.match(this._numberRegExp))}xt?xn=new he({inserted:this._value.slice(zt.length),rawInserted:Gt?"":H,skip:Gt}):(this._value=zt,xn=new he),this._value=this._insertThousandsSeparators(this._value);const xi=this._separatorsCountFromSlice(te.tail&&te._beforeTailState?te._beforeTailState._value:this._value);return xn.tailShift+=(xi-Ce)*this.thousandsSeparator.length,xn}_findSeparatorAround(H){if(this.thousandsSeparator){const xe=this.value.indexOf(this.thousandsSeparator,H-this.thousandsSeparator.length+1);if(xe<=H)return xe}return-1}_adjustRangeWithSeparators(H,te){const xe=this._findSeparatorAround(H);xe>=0&&(H=xe);const Ce=this._findSeparatorAround(te);return Ce>=0&&(te=Ce+this.thousandsSeparator.length),[H,te]}remove(H,te){void 0===H&&(H=0),void 0===te&&(te=this.displayValue.length),[H,te]=this._adjustRangeWithSeparators(H,te);const xe=this.value.slice(0,H),Ce=this.value.slice(te),zt=this._separatorsCount(xe.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(xe+Ce));const rt=this._separatorsCountFromSlice(xe);return new he({tailShift:(rt-zt)*this.thousandsSeparator.length})}nearestInputPos(H,te){if(!this.thousandsSeparator)return H;switch(te){case"NONE":case"LEFT":case"FORCE_LEFT":{const xe=this._findSeparatorAround(H-1);if(xe>=0){const Ce=xe+this.thousandsSeparator.length;if(H=0)return xe+this.thousandsSeparator.length}}return H}doCommit(){if(this.value){const H=this.number;let te=H;null!=this.min&&(te=Math.max(te,this.min)),null!=this.max&&(te=Math.min(te,this.max)),te!==H&&(this.unmaskedValue=this.format(te,this));let xe=this.value;this.normalizeZeros&&(xe=this._normalizeZeros(xe)),this.padFractionalZeros&&this.scale>0&&(xe=this._padFractionalZeros(xe)),this._value=xe}super.doCommit()}_normalizeZeros(H){const te=this._removeThousandsSeparators(H).split(this.radix);return te[0]=te[0].replace(/^(\D*)(0*)(\d*)/,(xe,Ce,zt,rt)=>Ce+rt),H.length&&!/\d$/.test(te[0])&&(te[0]=te[0]+"0"),te.length>1&&(te[1]=te[1].replace(/0*$/,""),te[1].length||(te.length=1)),this._insertThousandsSeparators(te.join(this.radix))}_padFractionalZeros(H){if(!H)return H;const te=H.split(this.radix);return te.length<2&&te.push(""),te[1]=te[1].padEnd(this.scale,"0"),te.join(this.radix)}doSkipInvalid(H,te,xe){void 0===te&&(te={});const Ce=0===this.scale&&H!==this.thousandsSeparator&&(H===this.radix||H===nt.UNMASKED_RADIX||this.mapToRadix.includes(H));return super.doSkipInvalid(H,te,xe)&&!Ce}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,nt.UNMASKED_RADIX)}set unmaskedValue(H){super.unmaskedValue=H}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(H){this.rawInputValue=this.format(H,this).replace(nt.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(H){this.typedValue=H}get allowNegative(){return null!=this.min&&this.min<0||null!=this.max&&this.max<0}get allowPositive(){return null!=this.min&&this.min>0||null!=this.max&&this.max>0}typedValueEquals(H){return(super.typedValueEquals(H)||nt.EMPTY_VALUES.includes(H)&&nt.EMPTY_VALUES.includes(this.typedValue))&&!(0===H&&""===this.value)}}dn=nt,nt.UNMASKED_RADIX=".",nt.EMPTY_VALUES=[...Se.EMPTY_VALUES,0],nt.DEFAULTS={...Se.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[dn.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:Ze=>Ze.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},me.MaskedNumber=nt;const ht={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Je(Ze,H,te){void 0===H&&(H=ht.MASKED),void 0===te&&(te=ht.MASKED);const xe=ze(Ze);return Ce=>xe.runIsolated(zt=>(zt[H]=Ce,zt[te]))}me.PIPE_TYPE=ht,me.createPipe=Je,me.pipe=function Ae(Ze,H,te,xe){return Je(H,te,xe)(Ze)},me.RepeatBlock=class Ue extends Wn{get repeatFrom(){var H;return null!=(H=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)?H:0}get repeatTo(){var H;return null!=(H=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)?H:1/0}constructor(H){super(H)}updateOptions(H){super.updateOptions(H)}_update(H){var te,xe,Ce;const{repeat:zt,...rt}=Ve(H);this._blockOpts=Object.assign({},this._blockOpts,rt);const xt=ze(this._blockOpts);this.repeat=null!=(te=null!=(xe=zt??xt.repeat)?xe:this.repeat)?te:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&(null==(Ce=this._blocks)?void 0:Ce.length)||0,this.repeatFrom)),blocks:{m:xt},eager:xt.eager,overwrite:xt.overwrite,skipInvalid:xt.skipInvalid,lazy:xt.lazy,placeholderChar:xt.placeholderChar,displayChar:xt.displayChar})}_allocateBlock(H){return H{"use strict";function ze(dn,nt,ht,Je){return new(ht||(ht=Promise))(function(Ue,Ze){function H(Ce){try{xe(Je.next(Ce))}catch(zt){Ze(zt)}}function te(Ce){try{xe(Je.throw(Ce))}catch(zt){Ze(zt)}}function xe(Ce){Ce.done?Ue(Ce.value):function Ae(Ue){return Ue instanceof ht?Ue:new ht(function(Ze){Ze(Ue)})}(Ce.value).then(H,te)}xe((Je=Je.apply(dn,nt||[])).next())})}function he(dn){return this instanceof he?(this.v=dn,this):new he(dn)}function He(dn,nt,ht){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ae,Je=ht.apply(dn,nt||[]),Ue=[];return Ae={},Ze("next"),Ze("throw"),Ze("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae;function Ze(rt){Je[rt]&&(Ae[rt]=function(xt){return new Promise(function(Gt,xn){Ue.push([rt,xt,Gt,xn])>1||H(rt,xt)})})}function H(rt,xt){try{!function te(rt){rt.value instanceof he?Promise.resolve(rt.value.v).then(xe,Ce):zt(Ue[0][2],rt)}(Je[rt](xt))}catch(Gt){zt(Ue[0][3],Gt)}}function xe(rt){H("next",rt)}function Ce(rt){H("throw",rt)}function zt(rt,xt){rt(xt),Ue.shift(),Ue.length&&H(Ue[0][0],Ue[0][1])}}function it(dn){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ht,nt=dn[Symbol.asyncIterator];return nt?nt.call(dn):(dn=function de(dn){var nt="function"==typeof Symbol&&Symbol.iterator,ht=nt&&dn[nt],Je=0;if(ht)return ht.call(dn);if(dn&&"number"==typeof dn.length)return{next:function(){return dn&&Je>=dn.length&&(dn=void 0),{value:dn&&dn[Je++],done:!dn}}};throw new TypeError(nt?"Object is not iterable.":"Symbol.iterator is not defined.")}(dn),ht={},Je("next"),Je("throw"),Je("return"),ht[Symbol.asyncIterator]=function(){return this},ht);function Je(Ue){ht[Ue]=dn[Ue]&&function(Ze){return new Promise(function(H,te){!function Ae(Ue,Ze,H,te){Promise.resolve(te).then(function(xe){Ue({value:xe,done:H})},Ze)}(H,te,(Ze=dn[Ue](Ze)).done,Ze.value)})}}}F.d(J,{AQ:()=>He,N3:()=>he,sH:()=>ze,xN:()=>it}),"function"==typeof SuppressedError&&SuppressedError},3837:vn=>{"use strict";vn.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},2079:vn=>{"use strict";vn.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},vn=>{vn(vn.s=690)}]); \ No newline at end of file diff --git a/docs/playground/index.html b/docs/playground/index.html index b3671b09..beae4b46 100644 --- a/docs/playground/index.html +++ b/docs/playground/index.html @@ -26,7 +26,7 @@ -
v8