@sdkgen/playground 0.0.0-dev.20260924185432 → 0.0.0-dev.20260924191239

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{3661:(De,C,y)=>{"use strict";y.d(C,{m:()=>I});var a=y(7481),i=y(1322),Z=y(9462),V=y(6086),_=y(7950),v=y(1238);function x(R,ie){1&R&&(i.ynx(0),i._uU(1,"info_outline"),i.BQk())}function M(R,ie){1&R&&(i.ynx(0),i._uU(1,"error"),i.BQk())}function N(R,ie){1&R&&(i.ynx(0),i._uU(1,"public"),i.BQk())}function P(R,ie){1&R&&(i.ynx(0),i._uU(1,"warning"),i.BQk())}function Y(R,ie){1&R&&(i.ynx(0),i._uU(1,"bug_report"),i.BQk())}function O(R,ie){if(1&R&&i._UZ(0,"ngx-json-viewer",6),2&R){const X=i.oxw().$implicit;i.Q6J("json",X.details)("expanded",!1)}}function w(R,ie){if(1&R&&(i.TgZ(0,"li",2)(1,"mat-icon",3),i.YNc(2,x,2,0,"ng-container",4)(3,M,2,0,"ng-container",4)(4,N,2,0,"ng-container",4)(5,P,2,0,"ng-container",4)(6,Y,2,0,"ng-container",4),i.qZA(),i.TgZ(7,"span"),i._uU(8),i.qZA(),i.YNc(9,O,1,2,"ngx-json-viewer",5),i.qZA()),2&R){const X=ie.$implicit,ce=i.oxw();i.Q6J("ngClass",X.type),i.xp6(1),i.Q6J("ngSwitch",X.type)("ngClass",X.type),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.INFO),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.ERROR),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.NETWORK),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.WARN),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.DEBUG),i.xp6(2),i.Oqu(X.message),i.xp6(1),i.Q6J("ngIf",X.details)}}let I=(()=>{class R{constructor(){this.itemTypes=a.p,this.items=[]}static#e=this.\u0275fac=function(ce){return new(ce||R)};static#t=this.\u0275cmp=i.Xpm({type:R,selectors:[["app-console"]],inputs:{items:"items"},decls:9,vars:1,consts:[["mat-icon-button","",3,"click"],["class","console-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"console-item",3,"ngClass"],[3,"ngSwitch","ngClass"],[4,"ngSwitchCase"],[3,"json","expanded",4,"ngIf"],[3,"json","expanded"]],template:function(ce,Ne){1&ce&&(i.TgZ(0,"header")(1,"strong"),i._uU(2,"CONSOLE"),i.qZA(),i._UZ(3,"s"),i.TgZ(4,"button",0),i.NdJ("click",function(){return Ne.items.splice(0,Ne.items.length)}),i.TgZ(5,"mat-icon"),i._uU(6,"delete"),i.qZA()()(),i.TgZ(7,"ul"),i.YNc(8,w,10,10,"li",1),i.qZA()),2&ce&&(i.xp6(8),i.Q6J("ngForOf",Ne.items))},dependencies:[Z.mk,Z.sg,Z.O5,Z.RF,Z.n9,V.Y,_.RK,v.Hw],styles:["[_nghost-%COMP%]{display:block;height:100%;text-align:left;overflow-y:scroll;box-sizing:border-box}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:sticky;top:0;background:#1E1E1E;border-bottom:1px solid #444444;padding:5px 0;z-index:2}header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin:0 10px;text-transform:uppercase;font-weight:200;color:#e7e7e7;border-bottom:1px solid rgb(231,231,231);line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})}return R})()},7481:(De,C,y)=>{"use strict";y.d(C,{p:()=>a});var a=function(i){return i.INFO="info",i.ERROR="error",i.WARN="warn",i.DEBUG="debug",i.NETWORK="network",i}(a||{})},6921:(De,C,y)=>{"use strict";y.d(C,{W:()=>Z});var a=y(1322);const i="sdkgenPlaygroundGlobalExtras";let Z=(()=>{class V{constructor(){this.text="",this.extras={};const v=this.readStorage();if(null!==v){this.text=v;try{this.extras=this.parseExtras(v)}catch{}}}get count(){return Object.keys(this.extras).length}save(v){this.extras=this.parseExtras(v),this.text=v,this.writeStorage(v)}parseExtras(v){if(!v.trim())return{};const x=JSON.parse(v);if("object"!=typeof x||null===x||Array.isArray(x))throw new Error("Os extras globais precisam ser um objeto JSON.");return x}readStorage(){try{return localStorage.getItem(i)}catch{return null}}writeStorage(v){try{v.trim()?localStorage.setItem(i,v):localStorage.removeItem(i)}catch{}}static#e=this.\u0275fac=function(x){return new(x||V)};static#t=this.\u0275prov=a.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"})}return V})()},3855:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>SdkgenService});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5861),_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1611),_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__),_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6068),_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1625),_angular_core__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1322),_global_extras_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6921);let SdkgenService=(()=>{class SdkgenService{constructor(De){this.globalExtras=De,this.state$=new rxjs__WEBPACK_IMPORTED_MODULE_2__.X(null)}static buildJsonObject(De,C=new Set){function y(a){switch(a.constructor){case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StringPrimitiveType:return"";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.IntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.FloatPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BigIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.MoneyPrimitiveType:return 0;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DecimalPrimitiveType:return"0.00";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DatePrimitiveType:return(new Date).toJSON().substring(0,10);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DateTimePrimitiveType:return(new Date).toJSON().substring(0,23);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BoolPrimitiveType:return Math.random()>.5;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.VoidPrimitiveType:return null;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CpfPrimitiveType:return"000.000.001-91";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CnpjPrimitiveType:return"00.000.001/0001-91";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EmailPrimitiveType:return"joao@acme.com";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UrlPrimitiveType:return"https://www.google.com/";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UuidPrimitiveType:return"00000000-0000-0000-0000-000000000000";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HexPrimitiveType:return new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("");case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HtmlPrimitiveType:return"<h1>Hello world!</h1>";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BytesPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.Base64PrimitiveType:return"0a=";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.XmlPrimitiveType:return"<xml></xml>";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.JsonPrimitiveType:return{};case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StructType:return C.has(a.name)?{}:SdkgenService.buildJsonObject(a.fields,new Set([...C,a.name]));case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.OptionalType:return null;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.TypeReference:return y(a.type);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.ArrayType:return[y(a.base),y(a.base),y(a.base)];case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EnumType:return a.values[0].value;default:return null}}return De.reduce((a,i)=>(a[i.name]=y(i.type),a),{})}getTypeScriptCode(De,C){return`await client.${De}(${JSON.stringify(C,null,2)});\n`}buildKotlinString(De,C=0){const y=a=>{switch(a.constructor){case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StringPrimitiveType:return'""';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.IntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.FloatPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BigIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.MoneyPrimitiveType:return 0;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DecimalPrimitiveType:return'BigDecimal("0.00")';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DatePrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DateTimePrimitiveType:return"Calendar.getInstance()";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BoolPrimitiveType:return Math.random()>.5?"true":"false";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.VoidPrimitiveType:return"null";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CpfPrimitiveType:return'"000.000.001-91"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CnpjPrimitiveType:return'"00.000.001/0001-91"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EmailPrimitiveType:return'"joao@acme.com"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UrlPrimitiveType:return'"https://www.google.com/"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UuidPrimitiveType:return'"00000000-0000-0000-0000-000000000000"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HexPrimitiveType:return`"${new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("")}"`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HtmlPrimitiveType:return'"<h1>Hello world!</h1>"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BytesPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.Base64PrimitiveType:return'"0a="';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.XmlPrimitiveType:return'"<xml></xml>"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.JsonPrimitiveType:return"json {}";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StructType:return`${a.name}(\n${this.buildKotlinString(a.fields,C+1)}\n${" ".repeat(C+1)})`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.OptionalType:return"null";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.TypeReference:return y(a.type);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.ArrayType:C++;const i=y(a.base);return C--,`arrayOf(\n${" ".repeat(C+2)}${i},\n${" ".repeat(C+2)}${i}\n${" ".repeat(C+1)})`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EnumType:return`"${a.values[0].value}"`;default:return"<>()"}};return De.map(a=>`${" ".repeat(C+1)}${y(a.type)}`).join(",\n")}getKotlinCode(De,C){return 0===C.length?`client.${De}().await();`:`client.${De}(\n${this.buildKotlinString(C)}\n).await();`}getDartCode(De,C){return'print("todo");'}getSwiftCode(De,C){return'print("todo");'}getSdkgenClient(url,ast){const errorFns=ast.errors.reduce((acc,cur)=>{function errorClass(type,base){return eval(`(\n (sup) => class ${type} extends sup {\n type = "${type}";\n message = "";\n ${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?"data = null;":""}\n\n constructor(message${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?", data":""}) {\n super(message${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?", data":""});\n this.message = message;\n ${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?"this.data = data;":""}\n this.toString = () => this.type + ": " + this.message;\n }\n }\n )`)(base)}return"string"==typeof cur?acc[cur]=errorClass(cur,_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenError):acc[cur[0]]=errorClass(cur[0],_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData),acc},{}),clientInstance=new _sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenHttpClient(url,ast,errorFns),ownExtra=clientInstance.extra,{globalExtras}=this;function makeRequest(De,C){return _makeRequest.apply(this,arguments)}function _makeRequest(){return(_makeRequest=(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.Z)(function*(De,C){clientInstance.extra=new Map([...Object.entries(globalExtras.extras),...ownExtra]);try{return yield clientInstance.makeRequest(De,C)}finally{clientInstance.extra=ownExtra}})).apply(this,arguments)}return new Proxy(clientInstance,{get:(De,C)=>"extra"===C.toString()?ownExtra:"makeRequest"===C.toString()?makeRequest:["baseUrl","successHook","errorHook"].includes(C.toString())?clientInstance[C.toString()]:function(){var y=(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.Z)(function*(a){return makeRequest(C.toString(),a)});return function(a){return y.apply(this,arguments)}}()})}static#_=this.\u0275fac=function De(C){return new(C||SdkgenService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__.LFG(_global_extras_service__WEBPACK_IMPORTED_MODULE_5__.W))};static#_2=this.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_4__.Yz7({token:SdkgenService,factory:SdkgenService.\u0275fac,providedIn:"root"})}return SdkgenService})()},2311:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>SimpleCallComponent});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5861),_angular_forms__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8832),_console_console_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7481),_sdkgen_service__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3855),_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9086),_angular_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1322),_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9309),ngx_json_viewer__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6086),angular_split__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(534),_angular_material_button__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7950),_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1238),_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7361),_console_console_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3661);let SimpleCallComponent=(()=>{class SimpleCallComponent{constructor(De){this.sdkgen=De,this.editorOptions={theme:"vs-dark",language:"json"},this.code="",this.initialExtras='{\n "key": "value"\n}\n',this.extras=this.initialExtras,this.busy=!1,this.selected=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI(0),this.consoleItems=[]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(De=>{De&&(this.generateFunctionCode(De.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(De.url,De.astJson))})}ngOnDestroy(){this.state$?.unsubscribe()}run(){var _this=this;return(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__.Z)(function*(){try{_this.busy=!0;{const events=_this.consoleItems;eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.Y)}if(_this.extras&&_this.extras!==_this.initialExtras){const De=JSON.parse(_this.extras),C=Object.keys(De);for(const y of C)_this.client?.extra.set(y,De[y])}const exec=_this.client[_this.fn](JSON.parse(_this.code));_this.response={result:yield exec}}catch(De){_this.consoleItems.push({type:_console_console_types__WEBPACK_IMPORTED_MODULE_0__.p.ERROR,message:De.toString()}),delete De.toString,_this.response={error:{type:De.type,message:De.message,data:De.data}}}finally{eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.W),_this.selected.setValue(2),_this.busy=!1}})()}generateFunctionCode(De,C){const y=De.operations.find(a=>a.name===C)?.args;y&&(this.code=JSON.stringify(_sdkgen_service__WEBPACK_IMPORTED_MODULE_1__.G.buildJsonObject(y),null,2))}static#_=this.\u0275fac=function De(C){return new(C||SimpleCallComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Y36(_sdkgen_service__WEBPACK_IMPORTED_MODULE_1__.G))};static#_2=this.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Xpm({type:SimpleCallComponent,selectors:[["app-simple-call"]],inputs:{fn:"fn"},decls:14,vars:10,consts:[["direction","vertical"],["animationDuration","0ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange"],["label","Requisi\xe7\xe3o"],["mat-fab","",1,"run-fab",3,"disabled","click"],[3,"options","ngModel","ngModelChange"],["label","Extras"],["label","Resposta",3,"disabled"],[3,"json"],[3,"size"],[3,"items"]],template:function De(C,y){1&C&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(0,"as-split",0)(1,"as-split-area")(2,"mat-tab-group",1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("selectedIndexChange",function(i){return y.selected.setValue(i)}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(3,"mat-tab",2)(4,"button",3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("click",function(){return y.run()}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(5,"mat-icon"),_angular_core__WEBPACK_IMPORTED_MODULE_6__._uU(6,"play_arrow"),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(7,"ngx-monaco-editor",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return y.code=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(8,"mat-tab",5)(9,"ngx-monaco-editor",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return y.extras=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(10,"mat-tab",6),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(11,"ngx-json-viewer",7),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(12,"as-split-area",8),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(13,"app-console",9),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()),2&C&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("selectedIndex",y.selected.value),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",y.busy),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",y.editorOptions)("ngModel",y.code),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",y.editorOptions)("ngModel",y.extras),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",!y.response),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("json",y.response),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("size",30),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("items",y.consoleItems))},dependencies:[_angular_forms__WEBPACK_IMPORTED_MODULE_3__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.On,_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.T2,ngx_json_viewer__WEBPACK_IMPORTED_MODULE_8__.Y,angular_split__WEBPACK_IMPORTED_MODULE_9__.Mq,angular_split__WEBPACK_IMPORTED_MODULE_9__.zE,_angular_material_button__WEBPACK_IMPORTED_MODULE_10__.cs,_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__.Hw,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__.uX,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__.SP,_console_console_component__WEBPACK_IMPORTED_MODULE_2__.m],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .ngx-json-viewer{overflow:inherit!important}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden!important}mat-tab-group[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%] ngx-json-viewer[_ngcontent-%COMP%]{display:block;height:100%;width:100%;overflow-y:auto;scrollbar-width:thin}"]})}return SimpleCallComponent})()},3101:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>TabEditorComponent});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5861),_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5747),_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__),_console_console_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7481),_sdkgen_service__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3855),_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9086),_angular_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1322),_angular_forms__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(8832),_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9309),angular_split__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(534),_angular_material_button__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7950),_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1238),_console_console_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3661);let TabEditorComponent=(()=>{class TabEditorComponent{constructor(De){this.sdkgen=De,this.code="",this.busy=!1,this.editorOptions={theme:"vs-dark",language:"typescript"},this.consoleItems=[{type:_console_console_types__WEBPACK_IMPORTED_MODULE_1__.p.INFO,message:"Bem-vindo! A sa\xedda dos seus testes aparecer\xe1 aqui :)"}]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(De=>{if(!De)return;const C=`${this.patchBrowserClientSource((0,_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__.generateBrowserClientSource)(De.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(De.url,De.astJson),monaco.languages.typescript.typescriptDefaults.getCompilerOptions().target=monaco.languages.typescript.ScriptTarget.ESNext,monaco.languages.typescript.typescriptDefaults.getCompilerOptions().module=monaco.languages.typescript.ModuleKind.ESNext,monaco.languages.typescript.typescriptDefaults.getDiagnosticsOptions().diagnosticCodesToIgnore=[1375];const y=monaco.editor.getModels().find(i=>i.uri.toString().endsWith("client.d.ts"));y?y.setValue(C):monaco.editor.createModel(C,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[a]=De.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(a.name,_sdkgen_service__WEBPACK_IMPORTED_MODULE_2__.G.buildJsonObject(a.args))})}ngOnDestroy(){this.state$?.unsubscribe()}patchBrowserClientSource(De){return`declare namespace sdkgen {\n${De.substring(95,De.indexOf("const errClasses")).replace(/ extends SdkgenError/g," extends Error").replace(/ extends SdkgenHttpClient/g,"").replace(/{ return this.makeRequest\(.*$/gm,"").replace(/ {\n {8}super\(baseUrl, astJson, errClasses\);\n {4}}/g,"").replace("constructor(","\n baseUrl: string;\n extra = new Map<string, any>();\n successHook: (result: any, name: string, args: any) => void = () => undefined;\n errorHook: (result: any, name: string, args: any) => void = () => undefined;\n async makeRequest(functionName: string, args: unknown): Promise<any>;\n \nconstructor(")}\n}\n`}run(){var _this=this;return(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__.Z)(function*(){try{_this.busy=!0,yield eval(`\n (async (client, events) => {\n ${_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.Y}\n ${_this.code}\n })\n `)(_this.client,_this.consoleItems).finally(()=>eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.W))}catch(De){_this.consoleItems.push({type:_console_console_types__WEBPACK_IMPORTED_MODULE_1__.p.ERROR,message:De.toString()})}_this.busy=!1})()}static#_=this.\u0275fac=function De(C){return new(C||TabEditorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Y36(_sdkgen_service__WEBPACK_IMPORTED_MODULE_2__.G))};static#_2=this.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Xpm({type:TabEditorComponent,selectors:[["app-tab-editor"]],decls:8,vars:5,consts:[["mat-fab","",1,"run-fab",3,"disabled","click"],["direction","vertical"],[1,"o-hidden"],[3,"options","ngModel","ngModelChange"],[3,"size"],[3,"items"]],template:function De(C,y){1&C&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(0,"button",0),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("click",function(){return y.run()}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(1,"mat-icon"),_angular_core__WEBPACK_IMPORTED_MODULE_6__._uU(2,"play_arrow"),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(3,"as-split",1)(4,"as-split-area",2)(5,"ngx-monaco-editor",3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return y.code=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(6,"as-split-area",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(7,"app-console",5),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()),2&C&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",y.busy),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",y.editorOptions)("ngModel",y.code),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("size",30),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("items",y.consoleItems))},dependencies:[_angular_forms__WEBPACK_IMPORTED_MODULE_7__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_7__.On,_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_8__.T2,angular_split__WEBPACK_IMPORTED_MODULE_9__.Mq,angular_split__WEBPACK_IMPORTED_MODULE_9__.zE,_angular_material_button__WEBPACK_IMPORTED_MODULE_10__.cs,_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__.Hw,_console_console_component__WEBPACK_IMPORTED_MODULE_3__.m],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 4px);margin-top:4px} .scroll-decoration{display:none}.o-hidden[_ngcontent-%COMP%]{overflow:hidden!important}"]})}return TabEditorComponent})()},9086:(De,C,y)=>{"use strict";y.d(C,{W:()=>i,Y:()=>a});const a='\n window.___originalXmlHttpRequestOpen = XMLHttpRequest.prototype.open;\n XMLHttpRequest.prototype.open = function() {\n const event = { type: "network", message: `XHR: ${Array.prototype.join.call(arguments, " ")}` };\n events.push(event);\n\n const send = this.send;\n this.send = function() {\n try {\n event.details = { req: JSON.parse(arguments[0]) };\n } catch (e) {\n event.details = { req: arguments[0] };\n }\n\n const onreadystatechange = this.onreadystatechange;\n this.onreadystatechange = function() {\n const result = onreadystatechange.apply(this, arguments);\n\n if (this.readyState === 4) {\n try {\n event.details = { ...event.details, res: JSON.parse(this.responseText) };\n } catch (e) {\n event.details = { ...event.details, res: this.responseText };\n }\n }\n\n return result;\n };\n\n return send.apply(this, arguments);\n };\n\n return ___originalXmlHttpRequestOpen.apply(this, arguments);\n };\n\n window.__originalConsole = [console.log, console.error, console.warn, console.debug, console.info];\n\n for (const method of window.__originalConsole) {\n console[method.name] = function() {\n const event = { type: method.name === "log" ? "info" : method.name, message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n return method.apply(this, arguments);\n }\n }\n',i="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n for (const method of window.__originalConsole) {\n console[method.name] = method;\n }\n"},222:(De,C,y)=>{"use strict";var a=y(4707),i=y(1322),Z=y(9272),V=y(8832),_=y(7950),v=y(5988),x=y(9462),M=y(9021),N=y(8654),P=y(9453),Y=y(4991),O=y(3581),w=y(5779),I=y(19),R=y(2835),ie=y(7605),X=y(4877),ce=y(6e3);function In(h,l){1&h&&(i.TgZ(0,"span",7),i.Hsn(1,1),i.qZA())}function Vn(h,l){1&h&&(i.TgZ(0,"span",8),i.Hsn(1,2),i.qZA())}const $n=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],We=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],kt=["*"],gn=new i.OlP("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[ie.K5]})}),qt=new i.OlP("MatChipAvatar"),xt=new i.OlP("MatChipTrailingIcon"),xi=new i.OlP("MatChipRemove"),_i=new i.OlP("MatChip");class ao{}const er=(0,M.sb)(ao,-1);let Qt=(()=>{class h extends er{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(o){this._disabled=(0,v.Ig)(o)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(o,c){super(),this._elementRef=o,this._parentChip=c,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===o.nativeElement.nodeName&&o.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(o){!this.disabled&&this.isInteractive&&this._isPrimary&&(o.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(o){(o.keyCode===ie.K5||o.keyCode===ie.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(o.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(_i))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(c,u){1&c&&i.NdJ("click",function(D){return u._handleClick(D)})("keydown",function(D){return u._handleKeydown(D)}),2&c&&(i.uIk("tabindex",u._getTabindex())("disabled",u._getDisabledAttribute())("aria-disabled",u.disabled),i.ekj("mdc-evolution-chip__action--primary",u._isPrimary)("mdc-evolution-chip__action--presentational",!u.isInteractive)("mdc-evolution-chip__action--trailing",!u._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[i.qOj]})}return h})(),Lo=0;const wo=(0,M.sb)((0,M.pj)((0,M.Kr)((0,M.Id)(class{constructor(h){this._elementRef=h}})),"primary"),-1);let fi=(()=>{class h extends wo{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(o){this._value=o}get removable(){return this._removable}set removable(o){this._removable=(0,v.Ig)(o)}get highlighted(){return this._highlighted}set highlighted(o){this._highlighted=(0,v.Ig)(o)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(o){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,o)}constructor(o,c,u,p,D,G,fe,we){super(c),this._changeDetectorRef=o,this._ngZone=u,this._focusMonitor=p,this._globalRippleOptions=fe,this._onFocus=new P.x,this._onBlur=new P.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+Lo++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new i.vpe,this.destroyed=new i.vpe,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=(0,i.f3M)(M.Fq),this._document=D,this._animationsDisabled="NoopAnimations"===G,null!=we&&(this.tabIndex=parseInt(we)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const o=this._elementRef.nativeElement;this._isBasicChip=o.hasAttribute(this.basicChipAttrName)||o.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,Y.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(o){(o.keyCode===ie.ZH||o.keyCode===ie.yY)&&(o.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(o){return this._getActions().find(c=>{const u=c._elementRef.nativeElement;return u===o||u.contains(o)})}_getActions(){const o=[];return this.primaryAction&&o.push(this.primaryAction),this.removeIcon&&o.push(this.removeIcon),this.trailingIcon&&o.push(this.trailingIcon),o}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(o=>{const c=null!==o;c!==this._hasFocusInternal&&(this._hasFocusInternal=c,c?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(N.tE),i.Y36(x.K0),i.Y36(i.QbO,8),i.Y36(M.Y2,8),i.$8M("tabindex"))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,qt,5),i.Suo(p,xt,5),i.Suo(p,xi,5),i.Suo(p,qt,5),i.Suo(p,xt,5),i.Suo(p,xi,5)),2&c){let D;i.iGM(D=i.CRH())&&(u.leadingIcon=D.first),i.iGM(D=i.CRH())&&(u.trailingIcon=D.first),i.iGM(D=i.CRH())&&(u.removeIcon=D.first),i.iGM(D=i.CRH())&&(u._allLeadingIcons=D),i.iGM(D=i.CRH())&&(u._allTrailingIcons=D),i.iGM(D=i.CRH())&&(u._allRemoveIcons=D)}},viewQuery:function(c,u){if(1&c&&i.Gf(Qt,5),2&c){let p;i.iGM(p=i.CRH())&&(u.primaryAction=p.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(c,u){1&c&&i.NdJ("keydown",function(D){return u._handleKeydown(D)}),2&c&&(i.Ikx("id",u.id),i.uIk("role",u.role)("tabindex",u.role?u.tabIndex:null)("aria-label",u.ariaLabel),i.ekj("mdc-evolution-chip",!u._isBasicChip)("mdc-evolution-chip--disabled",u.disabled)("mdc-evolution-chip--with-trailing-action",u._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",u.leadingIcon)("mdc-evolution-chip--with-primary-icon",u.leadingIcon)("mdc-evolution-chip--with-avatar",u.leadingIcon)("mat-mdc-chip-with-avatar",u.leadingIcon)("mat-mdc-chip-highlighted",u.highlighted)("mat-mdc-chip-disabled",u.disabled)("mat-mdc-basic-chip",u._isBasicChip)("mat-mdc-standard-chip",!u._isBasicChip)("mat-mdc-chip-with-trailing-icon",u._hasTrailingIcon())("_mat-animation-noopable",u._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[i._Bn([{provide:_i,useExisting:h}]),i.qOj],ngContentSelectors:We,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(c,u){1&c&&(i.F$t($n),i._UZ(0,"span",0),i.TgZ(1,"span",1)(2,"span",2),i.YNc(3,In,2,0,"span",3),i.TgZ(4,"span",4),i.Hsn(5),i._UZ(6,"span",5),i.qZA()()(),i.YNc(7,Vn,2,0,"span",6)),2&c&&(i.xp6(2),i.Q6J("isInteractive",!1),i.xp6(1),i.um2(3,u.leadingIcon?3:-1),i.xp6(4),i.um2(7,u._hasTrailingIcon()?7:-1))},dependencies:[Qt],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return h})();class ve{constructor(l){}}const Re=(0,M.sb)(ve);let qe=(()=>{class h extends Re{get chipFocusChanges(){return this._getChipStream(o=>o._onFocus)}get chipDestroyedChanges(){return this._getChipStream(o=>o.destroyed)}get disabled(){return this._disabled}set disabled(o){this._disabled=(0,v.Ig)(o),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(o){this._explicitRole=o}get focused(){return this._hasFocusedChip()}constructor(o,c,u){super(o),this._elementRef=o,this._changeDetectorRef=c,this._dir=u,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new P.x,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new i.n_E}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(o=>o._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(o=>{o.disabled=this._disabled,o._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(o){this._originatesFromChip(o)&&this._keyManager.onKeydown(o)}_isValidIndex(o){return o>=0&&o<this._chips.length}_allowFocusEscape(){if(-1!==this.tabIndex){const o=this.tabIndex;this.tabIndex=-1,setTimeout(()=>this.tabIndex=o)}}_getChipStream(o){return this._chips.changes.pipe((0,I.O)(null),(0,R.w)(()=>(0,Y.T)(...this._chips.map(o))))}_originatesFromChip(o){let c=o.target;for(;c&&c!==this._elementRef.nativeElement;){if(c.classList.contains("mat-mdc-chip"))return!0;c=c.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe((0,I.O)(this._chips)).subscribe(o=>{const c=[];o.forEach(u=>u._getActions().forEach(p=>c.push(p))),this._chipActions.reset(c),this._chipActions.notifyOnChanges()}),this._keyManager=new N.Em(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(o=>this._skipPredicate(o)),this.chipFocusChanges.pipe((0,w.R)(this._destroyed)).subscribe(({chip:o})=>{const c=o._getSourceAction(document.activeElement);c&&this._keyManager.updateActiveItem(c)}),this._dir?.change.pipe((0,w.R)(this._destroyed)).subscribe(o=>this._keyManager.withHorizontalOrientation(o))}_skipPredicate(o){return!o.isInteractive||o.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,I.O)(null),(0,w.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,w.R)(this._destroyed)).subscribe(o=>{const u=this._chips.toArray().indexOf(o.chip);this._isValidIndex(u)&&o.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=u)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const o=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),c=this._chips.toArray()[o];c.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():c.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(X.Is,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-chip-set"]],contentQueries:function(c,u,p){if(1&c&&i.Suo(p,fi,5),2&c){let D;i.iGM(D=i.CRH())&&(u._chips=D)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(c,u){1&c&&i.NdJ("keydown",function(D){return u._handleKeydown(D)}),2&c&&i.uIk("role",u.role)},inputs:{disabled:"disabled",role:"role"},features:[i.qOj],ngContentSelectors:kt,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(c,u){1&c&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return h})(),en=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[M.rD,{provide:gn,useValue:{separatorKeyCodes:[ie.K5]}}],imports:[M.BQ,M.si,M.BQ]})}return h})();var Zt=y(9467),mn=y(3844),ti=y(1497),on=y(6512),ni=y(9592);const Co=(0,mn.Mq)();class Zi{constructor(l,o){this._viewportRuler=l,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}attach(){}enable(){if(this._canBeEnabled()){const l=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=l.style.left||"",this._previousHTMLStyles.top=l.style.top||"",l.style.left=(0,v.HM)(-this._previousScrollPosition.left),l.style.top=(0,v.HM)(-this._previousScrollPosition.top),l.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const l=this._document.documentElement,c=l.style,u=this._document.body.style,p=c.scrollBehavior||"",D=u.scrollBehavior||"";this._isEnabled=!1,c.left=this._previousHTMLStyles.left,c.top=this._previousHTMLStyles.top,l.classList.remove("cdk-global-scrollblock"),Co&&(c.scrollBehavior=u.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Co&&(c.scrollBehavior=p,u.scrollBehavior=D)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const o=this._document.body,c=this._viewportRuler.getViewportSize();return o.scrollHeight>c.height||o.scrollWidth>c.width}}class ki{constructor(l,o,c,u){this._scrollDispatcher=l,this._ngZone=o,this._viewportRuler=c,this._config=u,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(l){this._overlayRef=l}enable(){if(this._scrollSubscription)return;const l=this._scrollDispatcher.scrolled(0).pipe((0,ti.h)(o=>!o||!this._overlayRef.overlayElement.contains(o.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=l.subscribe(()=>{const o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=l.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Zn{enable(){}disable(){}attach(){}}function xo(h,l){return l.some(o=>h.bottom<o.top||h.top>o.bottom||h.right<o.left||h.left>o.right)}function Er(h,l){return l.some(o=>h.top<o.top||h.bottom>o.bottom||h.left<o.left||h.right>o.right)}class zs{constructor(l,o,c,u){this._scrollDispatcher=l,this._viewportRuler=o,this._ngZone=c,this._config=u,this._scrollSubscription=null}attach(l){this._overlayRef=l}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 o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:c,height:u}=this._viewportRuler.getViewportSize();xo(o,[{width:c,height:u,bottom:u,right:c,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 Ja=(()=>{class h{constructor(o,c,u,p){this._scrollDispatcher=o,this._viewportRuler=c,this._ngZone=u,this.noop=()=>new Zn,this.close=D=>new ki(this._scrollDispatcher,this._ngZone,this._viewportRuler,D),this.block=()=>new Zi(this._viewportRuler,this._document),this.reposition=D=>new zs(this._scrollDispatcher,this._viewportRuler,this._ngZone,D),this._document=p}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Zt.mF),i.LFG(Zt.rL),i.LFG(i.R0b),i.LFG(x.K0))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class To{constructor(l){if(this.scrollStrategy=new Zn,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,l){const o=Object.keys(l);for(const c of o)void 0!==l[c]&&(this[c]=l[c])}}}class qi{constructor(l,o){this.connectionPair=l,this.scrollableViewProperties=o}}let Mr=(()=>{class h{constructor(o){this._attachedOverlays=[],this._document=o}ngOnDestroy(){this.detach()}add(o){this.remove(o),this._attachedOverlays.push(o)}remove(o){const c=this._attachedOverlays.indexOf(o);c>-1&&this._attachedOverlays.splice(c,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(x.K0))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),tn=(()=>{class h extends Mr{constructor(o,c){super(o),this._ngZone=c,this._keydownListener=u=>{const p=this._attachedOverlays;for(let D=p.length-1;D>-1;D--)if(p[D]._keydownEvents.observers.length>0){const G=p[D]._keydownEvents;this._ngZone?this._ngZone.run(()=>G.next(u)):G.next(u);break}}}add(o){super.add(o),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(c){return new(c||h)(i.LFG(x.K0),i.LFG(i.R0b,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),tr=(()=>{class h extends Mr{constructor(o,c,u){super(o),this._platform=c,this._ngZone=u,this._cursorStyleIsSet=!1,this._pointerDownListener=p=>{this._pointerDownEventTarget=(0,mn.sA)(p)},this._clickListener=p=>{const D=(0,mn.sA)(p),G="click"===p.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:D;this._pointerDownEventTarget=null;const fe=this._attachedOverlays.slice();for(let we=fe.length-1;we>-1;we--){const Le=fe[we];if(Le._outsidePointerEvents.observers.length<1||!Le.hasAttached())continue;if(Le.overlayElement.contains(D)||Le.overlayElement.contains(G))break;const Ye=Le._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ye.next(p)):Ye.next(p)}}}add(o){if(super.add(o),!this._isAttached){const c=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(c)):this._addEventListeners(c),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=c.style.cursor,c.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const o=this._document.body;o.removeEventListener("pointerdown",this._pointerDownListener,!0),o.removeEventListener("click",this._clickListener,!0),o.removeEventListener("auxclick",this._clickListener,!0),o.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(o.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(o){o.addEventListener("pointerdown",this._pointerDownListener,!0),o.addEventListener("click",this._clickListener,!0),o.addEventListener("auxclick",this._clickListener,!0),o.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(x.K0),i.LFG(mn.t4),i.LFG(i.R0b,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Ri=(()=>{class h{constructor(o,c){this._platform=c,this._document=o}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const o="cdk-overlay-container";if(this._platform.isBrowser||(0,mn.Oy)()){const u=this._document.querySelectorAll(`.${o}[platform="server"], .${o}[platform="test"]`);for(let p=0;p<u.length;p++)u[p].remove()}const c=this._document.createElement("div");c.classList.add(o),(0,mn.Oy)()?c.setAttribute("platform","test"):this._platform.isBrowser||c.setAttribute("platform","server"),this._document.body.appendChild(c),this._containerElement=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(x.K0),i.LFG(mn.t4))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class Ji{constructor(l,o,c,u,p,D,G,fe,we,Le=!1){this._portalOutlet=l,this._host=o,this._pane=c,this._config=u,this._ngZone=p,this._keyboardDispatcher=D,this._document=G,this._location=fe,this._outsideClickDispatcher=we,this._animationsDisabled=Le,this._backdropElement=null,this._backdropClick=new P.x,this._attachments=new P.x,this._detachments=new P.x,this._locationChanges=ni.w0.EMPTY,this._backdropClickHandler=Ye=>this._backdropClick.next(Ye),this._backdropTransitionendHandler=Ye=>{this._disposeBackdrop(Ye.target)},this._keydownEvents=new P.x,this._outsidePointerEvents=new P.x,u.scrollStrategy&&(this._scrollStrategy=u.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=u.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(l){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const o=this._portalOutlet.attach(l);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,O.q)(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 o?.onDestroy&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const l=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),l}dispose(){const l=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,l&&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(l){l!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=l,this.hasAttached()&&(l.attach(this),this.updatePosition()))}updateSize(l){this._config={...this._config,...l},this._updateElementSize()}setDirection(l){this._config={...this._config,direction:l},this._updateElementDirection()}addPanelClass(l){this._pane&&this._toggleClasses(this._pane,l,!0)}removePanelClass(l){this._pane&&this._toggleClasses(this._pane,l,!1)}getDirection(){const l=this._config.direction;return l?"string"==typeof l?l:l.value:"ltr"}updateScrollStrategy(l){l!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=l,this.hasAttached()&&(l.attach(this),l.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const l=this._pane.style;l.width=(0,v.HM)(this._config.width),l.height=(0,v.HM)(this._config.height),l.minWidth=(0,v.HM)(this._config.minWidth),l.minHeight=(0,v.HM)(this._config.minHeight),l.maxWidth=(0,v.HM)(this._config.maxWidth),l.maxHeight=(0,v.HM)(this._config.maxHeight)}_togglePointerEvents(l){this._pane.style.pointerEvents=l?"":"none"}_attachBackdrop(){const l="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(l)})}):this._backdropElement.classList.add(l)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const l=this._backdropElement;if(l){if(this._animationsDisabled)return void this._disposeBackdrop(l);l.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{l.addEventListener("transitionend",this._backdropTransitionendHandler)}),l.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(l)},500))}}_toggleClasses(l,o,c){const u=(0,v.Eq)(o||[]).filter(p=>!!p);u.length&&(c?l.classList.add(...u):l.classList.remove(...u))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const l=this._ngZone.onStable.pipe((0,w.R)((0,Y.T)(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()),l.unsubscribe())})})}_disposeScrollStrategy(){const l=this._scrollStrategy;l&&(l.disable(),l.detach&&l.detach())}_disposeBackdrop(l){l&&(l.removeEventListener("click",this._backdropClickHandler),l.removeEventListener("transitionend",this._backdropTransitionendHandler),l.remove(),this._backdropElement===l&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const nr="cdk-overlay-connected-position-bounding-box",Ys=/([A-Za-z%]+)$/;class Sr{get positions(){return this._preferredPositions}constructor(l,o,c,u,p){this._viewportRuler=o,this._document=c,this._platform=u,this._overlayContainer=p,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 P.x,this._resizeSubscription=ni.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(l)}attach(l){this._validatePositions(),l.hostElement.classList.add(nr),this._overlayRef=l,this._boundingBox=l.hostElement,this._pane=l.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 l=this._originRect,o=this._overlayRect,c=this._viewportRect,u=this._containerRect,p=[];let D;for(let G of this._preferredPositions){let fe=this._getOriginPoint(l,u,G),we=this._getOverlayPoint(fe,o,G),Le=this._getOverlayFit(we,o,c,G);if(Le.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(G,fe);this._canFitWithFlexibleDimensions(Le,we,c)?p.push({position:G,origin:fe,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(fe,G)}):(!D||D.overlayFit.visibleArea<Le.visibleArea)&&(D={overlayFit:Le,overlayPoint:we,originPoint:fe,position:G,overlayRect:o})}if(p.length){let G=null,fe=-1;for(const we of p){const Le=we.boundingBoxRect.width*we.boundingBoxRect.height*(we.position.weight||1);Le>fe&&(fe=Le,G=we)}return this._isPushed=!1,void this._applyPosition(G.position,G.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(D.position,D.originPoint);this._applyPosition(D.position,D.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Gn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(nr),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const l=this._lastPosition;if(l){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const o=this._getOriginPoint(this._originRect,this._containerRect,l);this._applyPosition(l,o)}else this.apply()}withScrollableContainers(l){return this._scrollables=l,this}withPositions(l){return this._preferredPositions=l,-1===l.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(l){return this._viewportMargin=l,this}withFlexibleDimensions(l=!0){return this._hasFlexibleDimensions=l,this}withGrowAfterOpen(l=!0){return this._growAfterOpen=l,this}withPush(l=!0){return this._canPush=l,this}withLockedPosition(l=!0){return this._positionLocked=l,this}setOrigin(l){return this._origin=l,this}withDefaultOffsetX(l){return this._offsetX=l,this}withDefaultOffsetY(l){return this._offsetY=l,this}withTransformOriginOn(l){return this._transformOriginSelector=l,this}_getOriginPoint(l,o,c){let u,p;if("center"==c.originX)u=l.left+l.width/2;else{const D=this._isRtl()?l.right:l.left,G=this._isRtl()?l.left:l.right;u="start"==c.originX?D:G}return o.left<0&&(u-=o.left),p="center"==c.originY?l.top+l.height/2:"top"==c.originY?l.top:l.bottom,o.top<0&&(p-=o.top),{x:u,y:p}}_getOverlayPoint(l,o,c){let u,p;return u="center"==c.overlayX?-o.width/2:"start"===c.overlayX?this._isRtl()?-o.width:0:this._isRtl()?0:-o.width,p="center"==c.overlayY?-o.height/2:"top"==c.overlayY?0:-o.height,{x:l.x+u,y:l.y+p}}_getOverlayFit(l,o,c,u){const p=Si(o);let{x:D,y:G}=l,fe=this._getOffset(u,"x"),we=this._getOffset(u,"y");fe&&(D+=fe),we&&(G+=we);let dt=0-G,mt=G+p.height-c.height,gt=this._subtractOverflows(p.width,0-D,D+p.width-c.width),bt=this._subtractOverflows(p.height,dt,mt),zt=gt*bt;return{visibleArea:zt,isCompletelyWithinViewport:p.width*p.height===zt,fitsInViewportVertically:bt===p.height,fitsInViewportHorizontally:gt==p.width}}_canFitWithFlexibleDimensions(l,o,c){if(this._hasFlexibleDimensions){const u=c.bottom-o.y,p=c.right-o.x,D=Do(this._overlayRef.getConfig().minHeight),G=Do(this._overlayRef.getConfig().minWidth);return(l.fitsInViewportVertically||null!=D&&D<=u)&&(l.fitsInViewportHorizontally||null!=G&&G<=p)}return!1}_pushOverlayOnScreen(l,o,c){if(this._previousPushAmount&&this._positionLocked)return{x:l.x+this._previousPushAmount.x,y:l.y+this._previousPushAmount.y};const u=Si(o),p=this._viewportRect,D=Math.max(l.x+u.width-p.width,0),G=Math.max(l.y+u.height-p.height,0),fe=Math.max(p.top-c.top-l.y,0),we=Math.max(p.left-c.left-l.x,0);let Le=0,Ye=0;return Le=u.width<=p.width?we||-D:l.x<this._viewportMargin?p.left-c.left-l.x:0,Ye=u.height<=p.height?fe||-G:l.y<this._viewportMargin?p.top-c.top-l.y:0,this._previousPushAmount={x:Le,y:Ye},{x:l.x+Le,y:l.y+Ye}}_applyPosition(l,o){if(this._setTransformOrigin(l),this._setOverlayElementStyles(o,l),this._setBoundingBoxStyles(o,l),l.panelClass&&this._addPanelClasses(l.panelClass),this._lastPosition=l,this._positionChanges.observers.length){const c=this._getScrollVisibility(),u=new qi(l,c);this._positionChanges.next(u)}this._isInitialRender=!1}_setTransformOrigin(l){if(!this._transformOriginSelector)return;const o=this._boundingBox.querySelectorAll(this._transformOriginSelector);let c,u=l.overlayY;c="center"===l.overlayX?"center":this._isRtl()?"start"===l.overlayX?"right":"left":"start"===l.overlayX?"left":"right";for(let p=0;p<o.length;p++)o[p].style.transformOrigin=`${c} ${u}`}_calculateBoundingBoxRect(l,o){const c=this._viewportRect,u=this._isRtl();let p,D,G,Le,Ye,dt;if("top"===o.overlayY)D=l.y,p=c.height-D+this._viewportMargin;else if("bottom"===o.overlayY)G=c.height-l.y+2*this._viewportMargin,p=c.height-G+this._viewportMargin;else{const mt=Math.min(c.bottom-l.y+c.top,l.y),gt=this._lastBoundingBoxSize.height;p=2*mt,D=l.y-mt,p>gt&&!this._isInitialRender&&!this._growAfterOpen&&(D=l.y-gt/2)}if("end"===o.overlayX&&!u||"start"===o.overlayX&&u)dt=c.width-l.x+this._viewportMargin,Le=l.x-this._viewportMargin;else if("start"===o.overlayX&&!u||"end"===o.overlayX&&u)Ye=l.x,Le=c.right-l.x;else{const mt=Math.min(c.right-l.x+c.left,l.x),gt=this._lastBoundingBoxSize.width;Le=2*mt,Ye=l.x-mt,Le>gt&&!this._isInitialRender&&!this._growAfterOpen&&(Ye=l.x-gt/2)}return{top:D,left:Ye,bottom:G,right:dt,width:Le,height:p}}_setBoundingBoxStyles(l,o){const c=this._calculateBoundingBoxRect(l,o);!this._isInitialRender&&!this._growAfterOpen&&(c.height=Math.min(c.height,this._lastBoundingBoxSize.height),c.width=Math.min(c.width,this._lastBoundingBoxSize.width));const u={};if(this._hasExactPosition())u.top=u.left="0",u.bottom=u.right=u.maxHeight=u.maxWidth="",u.width=u.height="100%";else{const p=this._overlayRef.getConfig().maxHeight,D=this._overlayRef.getConfig().maxWidth;u.height=(0,v.HM)(c.height),u.top=(0,v.HM)(c.top),u.bottom=(0,v.HM)(c.bottom),u.width=(0,v.HM)(c.width),u.left=(0,v.HM)(c.left),u.right=(0,v.HM)(c.right),u.alignItems="center"===o.overlayX?"center":"end"===o.overlayX?"flex-end":"flex-start",u.justifyContent="center"===o.overlayY?"center":"bottom"===o.overlayY?"flex-end":"flex-start",p&&(u.maxHeight=(0,v.HM)(p)),D&&(u.maxWidth=(0,v.HM)(D))}this._lastBoundingBoxSize=c,Gn(this._boundingBox.style,u)}_resetBoundingBoxStyles(){Gn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Gn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(l,o){const c={},u=this._hasExactPosition(),p=this._hasFlexibleDimensions,D=this._overlayRef.getConfig();if(u){const Le=this._viewportRuler.getViewportScrollPosition();Gn(c,this._getExactOverlayY(o,l,Le)),Gn(c,this._getExactOverlayX(o,l,Le))}else c.position="static";let G="",fe=this._getOffset(o,"x"),we=this._getOffset(o,"y");fe&&(G+=`translateX(${fe}px) `),we&&(G+=`translateY(${we}px)`),c.transform=G.trim(),D.maxHeight&&(u?c.maxHeight=(0,v.HM)(D.maxHeight):p&&(c.maxHeight="")),D.maxWidth&&(u?c.maxWidth=(0,v.HM)(D.maxWidth):p&&(c.maxWidth="")),Gn(this._pane.style,c)}_getExactOverlayY(l,o,c){let u={top:"",bottom:""},p=this._getOverlayPoint(o,this._overlayRect,l);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,c)),"bottom"===l.overlayY?u.bottom=this._document.documentElement.clientHeight-(p.y+this._overlayRect.height)+"px":u.top=(0,v.HM)(p.y),u}_getExactOverlayX(l,o,c){let D,u={left:"",right:""},p=this._getOverlayPoint(o,this._overlayRect,l);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,c)),D=this._isRtl()?"end"===l.overlayX?"left":"right":"end"===l.overlayX?"right":"left","right"===D?u.right=this._document.documentElement.clientWidth-(p.x+this._overlayRect.width)+"px":u.left=(0,v.HM)(p.x),u}_getScrollVisibility(){const l=this._getOriginRect(),o=this._pane.getBoundingClientRect(),c=this._scrollables.map(u=>u.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Er(l,c),isOriginOutsideView:xo(l,c),isOverlayClipped:Er(o,c),isOverlayOutsideView:xo(o,c)}}_subtractOverflows(l,...o){return o.reduce((c,u)=>c-Math.max(u,0),l)}_getNarrowedViewportRect(){const l=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._viewportMargin,left:c.left+this._viewportMargin,right:c.left+l-this._viewportMargin,bottom:c.top+o-this._viewportMargin,width:l-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(l,o){return"x"===o?null==l.offsetX?this._offsetX:l.offsetX:null==l.offsetY?this._offsetY:l.offsetY}_validatePositions(){}_addPanelClasses(l){this._pane&&(0,v.Eq)(l).forEach(o=>{""!==o&&-1===this._appliedPanelClasses.indexOf(o)&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(l=>{this._pane.classList.remove(l)}),this._appliedPanelClasses=[])}_getOriginRect(){const l=this._origin;if(l instanceof i.SBq)return l.nativeElement.getBoundingClientRect();if(l instanceof Element)return l.getBoundingClientRect();const o=l.width||0,c=l.height||0;return{top:l.y,bottom:l.y+c,left:l.x,right:l.x+o,height:c,width:o}}}function Gn(h,l){for(let o in l)l.hasOwnProperty(o)&&(h[o]=l[o]);return h}function Do(h){if("number"!=typeof h&&null!=h){const[l,o]=h.split(Ys);return o&&"px"!==o?null:parseFloat(l)}return h||null}function Si(h){return{top:Math.floor(h.top),right:Math.floor(h.right),bottom:Math.floor(h.bottom),left:Math.floor(h.left),width:Math.floor(h.width),height:Math.floor(h.height)}}const jo="cdk-global-overlay-wrapper";class ho{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(l){const o=l.getConfig();this._overlayRef=l,this._width&&!o.width&&l.updateSize({width:this._width}),this._height&&!o.height&&l.updateSize({height:this._height}),l.hostElement.classList.add(jo),this._isDisposed=!1}top(l=""){return this._bottomOffset="",this._topOffset=l,this._alignItems="flex-start",this}left(l=""){return this._xOffset=l,this._xPosition="left",this}bottom(l=""){return this._topOffset="",this._bottomOffset=l,this._alignItems="flex-end",this}right(l=""){return this._xOffset=l,this._xPosition="right",this}start(l=""){return this._xOffset=l,this._xPosition="start",this}end(l=""){return this._xOffset=l,this._xPosition="end",this}width(l=""){return this._overlayRef?this._overlayRef.updateSize({width:l}):this._width=l,this}height(l=""){return this._overlayRef?this._overlayRef.updateSize({height:l}):this._height=l,this}centerHorizontally(l=""){return this.left(l),this._xPosition="center",this}centerVertically(l=""){return this.top(l),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const l=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),{width:u,height:p,maxWidth:D,maxHeight:G}=c,fe=!("100%"!==u&&"100vw"!==u||D&&"100%"!==D&&"100vw"!==D),we=!("100%"!==p&&"100vh"!==p||G&&"100%"!==G&&"100vh"!==G),Le=this._xPosition,Ye=this._xOffset,dt="rtl"===this._overlayRef.getConfig().direction;let mt="",gt="",bt="";fe?bt="flex-start":"center"===Le?(bt="center",dt?gt=Ye:mt=Ye):dt?"left"===Le||"end"===Le?(bt="flex-end",mt=Ye):("right"===Le||"start"===Le)&&(bt="flex-start",gt=Ye):"left"===Le||"start"===Le?(bt="flex-start",mt=Ye):("right"===Le||"end"===Le)&&(bt="flex-end",gt=Ye),l.position=this._cssPosition,l.marginLeft=fe?"0":mt,l.marginTop=we?"0":this._topOffset,l.marginBottom=this._bottomOffset,l.marginRight=fe?"0":gt,o.justifyContent=bt,o.alignItems=we?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const l=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,c=o.style;o.classList.remove(jo),c.justifyContent=c.alignItems=l.marginTop=l.marginBottom=l.marginLeft=l.marginRight=l.position="",this._overlayRef=null,this._isDisposed=!0}}let Ks=(()=>{class h{constructor(o,c,u,p){this._viewportRuler=o,this._document=c,this._platform=u,this._overlayContainer=p}global(){return new ho}flexibleConnectedTo(o){return new Sr(o,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Zt.rL),i.LFG(x.K0),i.LFG(mn.t4),i.LFG(Ri))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Zs=0,On=(()=>{class h{constructor(o,c,u,p,D,G,fe,we,Le,Ye,dt,mt){this.scrollStrategies=o,this._overlayContainer=c,this._componentFactoryResolver=u,this._positionBuilder=p,this._keyboardDispatcher=D,this._injector=G,this._ngZone=fe,this._document=we,this._directionality=Le,this._location=Ye,this._outsideClickDispatcher=dt,this._animationsModuleType=mt}create(o){const c=this._createHostElement(),u=this._createPaneElement(c),p=this._createPortalOutlet(u),D=new To(o);return D.direction=D.direction||this._directionality.value,new Ji(p,c,u,D,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(o){const c=this._document.createElement("div");return c.id="cdk-overlay-"+Zs++,c.classList.add("cdk-overlay-pane"),o.appendChild(c),c}_createHostElement(){const o=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalOutlet(o){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new on.u0(o,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Ja),i.LFG(Ri),i.LFG(i._Vd),i.LFG(Ks),i.LFG(tn),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(x.K0),i.LFG(X.Is),i.LFG(x.Ye),i.LFG(tr),i.LFG(i.QbO,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();const os={provide:new i.OlP("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(On);return()=>h.scrollStrategies.reposition()}}),deps:[On],useFactory:function is(h){return()=>h.scrollStrategies.reposition()}};let Fn=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[On,os],imports:[X.vT,on.eL,Zt.Cl,Zt.Cl]})}return h})();var ir=y(7371),Qs=y(8299);function rs(h){return new ir.y(l=>{(0,Qs.Xf)(h()).subscribe(l)})}var Ho=y(9627);function Qa(h,l){}class fo{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Uo=(()=>{class h extends on.en{constructor(o,c,u,p,D,G,fe,we){super(),this._elementRef=o,this._focusTrapFactory=c,this._config=p,this._interactivityChecker=D,this._ngZone=G,this._overlayRef=fe,this._focusMonitor=we,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Le=>{this._portalOutlet.hasAttached();const Ye=this._portalOutlet.attachDomPortal(Le);return this._contentAttached(),Ye},this._document=u,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(o){this._portalOutlet.hasAttached();const c=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),c}attachTemplatePortal(o){this._portalOutlet.hasAttached();const c=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),c}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(o,c){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const u=()=>{o.removeEventListener("blur",u),o.removeEventListener("mousedown",u),o.removeAttribute("tabindex")};o.addEventListener("blur",u),o.addEventListener("mousedown",u)})),o.focus(c)}_focusByCssSelector(o,c){let u=this._elementRef.nativeElement.querySelector(o);u&&this._forceFocus(u,c)}_trapFocus(){const o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(c=>{c||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const o=this._config.restoreFocus;let c=null;if("string"==typeof o?c=this._document.querySelector(o):"boolean"==typeof o?c=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(c=o),this._config.restoreFocus&&c&&"function"==typeof c.focus){const u=(0,mn.ht)(),p=this._elementRef.nativeElement;(!u||u===this._document.body||u===p||p.contains(u))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const o=this._elementRef.nativeElement,c=(0,mn.ht)();return o===c||o.contains(c)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,mn.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(N.qV),i.Y36(x.K0,8),i.Y36(fo),i.Y36(N.ic),i.Y36(i.R0b),i.Y36(Ji),i.Y36(N.tE))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-dialog-container"]],viewQuery:function(c,u){if(1&c&&i.Gf(on.Pl,7),2&c){let p;i.iGM(p=i.CRH())&&(u._portalOutlet=p.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(c,u){2&c&&i.uIk("id",u._config.id||null)("role",u._config.role)("aria-modal",u._config.ariaModal)("aria-labelledby",u._config.ariaLabel?null:u._ariaLabelledByQueue[0])("aria-label",u._config.ariaLabel)("aria-describedby",u._config.ariaDescribedBy||null)},standalone:!0,features:[i.qOj,i.jDz],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(c,u){1&c&&i.YNc(0,Qa,0,0,"ng-template",0)},dependencies:[on.eL,on.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return h})();class Ar{constructor(l,o){this.overlayRef=l,this.config=o,this.closed=new P.x,this.disableClose=o.disableClose,this.backdropClick=l.backdropClick(),this.keydownEvents=l.keydownEvents(),this.outsidePointerEvents=l.outsidePointerEvents(),this.id=o.id,this.keydownEvents.subscribe(c=>{c.keyCode===ie.hY&&!this.disableClose&&!(0,ie.Vb)(c)&&(c.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=l.detachments().subscribe(()=>{!1!==o.closeOnOverlayDetachments&&this.close()})}close(l,o){if(this.containerInstance){const c=this.closed;this.containerInstance._closeInteractionType=o?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),c.next(l),c.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(l="",o=""){return this.overlayRef.updateSize({width:l,height:o}),this}addPanelClass(l){return this.overlayRef.addPanelClass(l),this}removePanelClass(l){return this.overlayRef.removePanelClass(l),this}}const Ir=new i.OlP("DialogScrollStrategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(On);return()=>h.scrollStrategies.block()}}),ss=new i.OlP("DialogData"),Xs=new i.OlP("DefaultDialogConfig");let as=0,cs=(()=>{class h{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(o,c,u,p,D,G){this._overlay=o,this._injector=c,this._defaultOptions=u,this._parentDialog=p,this._overlayContainer=D,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P.x,this._afterOpenedAtThisLevel=new P.x,this._ariaHiddenElements=new Map,this.afterAllClosed=rs(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,I.O)(void 0))),this._scrollStrategy=G}open(o,c){(c={...this._defaultOptions||new fo,...c}).id=c.id||"cdk-dialog-"+as++,c.id&&this.getDialogById(c.id);const p=this._getOverlayConfig(c),D=this._overlay.create(p),G=new Ar(D,c),fe=this._attachContainer(D,G,c);return G.containerInstance=fe,this._attachDialogContent(o,G,fe,c),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(G),G.closed.subscribe(()=>this._removeOpenDialog(G,!0)),this.afterOpened.next(G),G}closeAll(){Yt(this.openDialogs,o=>o.close())}getDialogById(o){return this.openDialogs.find(c=>c.id===o)}ngOnDestroy(){Yt(this._openDialogsAtThisLevel,o=>{!1===o.config.closeOnDestroy&&this._removeOpenDialog(o,!1)}),Yt(this._openDialogsAtThisLevel,o=>o.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(o){const c=new To({positionStrategy:o.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:o.scrollStrategy||this._scrollStrategy(),panelClass:o.panelClass,hasBackdrop:o.hasBackdrop,direction:o.direction,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,width:o.width,height:o.height,disposeOnNavigation:o.closeOnNavigation});return o.backdropClass&&(c.backdropClass=o.backdropClass),c}_attachContainer(o,c,u){const p=u.injector||u.viewContainerRef?.injector,D=[{provide:fo,useValue:u},{provide:Ar,useValue:c},{provide:Ji,useValue:o}];let G;u.container?"function"==typeof u.container?G=u.container:(G=u.container.type,D.push(...u.container.providers(u))):G=Uo;const fe=new on.C5(G,u.viewContainerRef,i.zs3.create({parent:p||this._injector,providers:D}),u.componentFactoryResolver);return o.attach(fe).instance}_attachDialogContent(o,c,u,p){if(o instanceof i.Rgc){const D=this._createInjector(p,c,u,void 0);let G={$implicit:p.data,dialogRef:c};p.templateContext&&(G={...G,..."function"==typeof p.templateContext?p.templateContext():p.templateContext}),u.attachTemplatePortal(new on.UE(o,null,G,D))}else{const D=this._createInjector(p,c,u,this._injector),G=u.attachComponentPortal(new on.C5(o,p.viewContainerRef,D,p.componentFactoryResolver));c.componentRef=G,c.componentInstance=G.instance}}_createInjector(o,c,u,p){const D=o.injector||o.viewContainerRef?.injector,G=[{provide:ss,useValue:o.data},{provide:Ar,useValue:c}];return o.providers&&("function"==typeof o.providers?G.push(...o.providers(c,o,u)):G.push(...o.providers)),o.direction&&(!D||!D.get(X.Is,null,{optional:!0}))&&G.push({provide:X.Is,useValue:{value:o.direction,change:(0,Ho.of)()}}),i.zs3.create({parent:D||p,providers:G})}_removeOpenDialog(o,c){const u=this.openDialogs.indexOf(o);u>-1&&(this.openDialogs.splice(u,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((p,D)=>{p?D.setAttribute("aria-hidden",p):D.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),c&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const o=this._overlayContainer.getContainerElement();if(o.parentElement){const c=o.parentElement.children;for(let u=c.length-1;u>-1;u--){const p=c[u];p!==o&&"SCRIPT"!==p.nodeName&&"STYLE"!==p.nodeName&&!p.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(p,p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(On),i.LFG(i.zs3),i.LFG(Xs,8),i.LFG(h,12),i.LFG(Ri),i.LFG(Ir))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();function Yt(h,l){let o=h.length;for(;o--;)l(h[o])}let Hn=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[cs],imports:[Fn,on.eL,N.rt,Uo,on.eL]})}return h})();function Un(h,l){}class Ni{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const zn="mdc-dialog--open",ls="mdc-dialog--opening",ta="mdc-dialog--closing";let us=(()=>{class h extends Uo{constructor(o,c,u,p,D,G,fe,we,Le){super(o,c,u,p,D,G,fe,Le),this._animationMode=we,this._animationStateChanged=new i.vpe,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?at(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?at(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(En,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ls,zn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(zn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(zn),this._animationsEnabled?(this._hostElement.style.setProperty(En,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ta)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(ls,ta)}_waitForAnimationToComplete(o,c){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(c,o)}_requestAnimationFrame(o){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(o):o()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(o){const c=super.attachComponentPortal(o);return c.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(N.qV),i.Y36(x.K0,8),i.Y36(Ni),i.Y36(N.ic),i.Y36(i.R0b),i.Y36(Ji),i.Y36(i.QbO,8),i.Y36(N.tE))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(c,u){2&c&&(i.Ikx("id",u._config.id),i.uIk("aria-modal",u._config.ariaModal)("role",u._config.role)("aria-labelledby",u._config.ariaLabel?null:u._ariaLabelledByQueue[0])("aria-label",u._config.ariaLabel)("aria-describedby",u._config.ariaDescribedBy||null),i.ekj("_mat-animation-noopable",!u._animationsEnabled))},standalone:!0,features:[i.qOj,i.jDz],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(c,u){1&c&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,Un,0,0,"ng-template",2),i.qZA()())},dependencies:[on.eL,on.Pl],styles:['.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-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 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))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return h})();const En="--mat-dialog-transition-duration";function at(h){return null==h?null:"number"==typeof h?h:h.endsWith("ms")?(0,v.su)(h.substring(0,h.length-2)):h.endsWith("s")?1e3*(0,v.su)(h.substring(0,h.length-1)):"0"===h?0:null}class At{constructor(l,o,c){this._ref=l,this._containerInstance=c,this._afterOpened=new P.x,this._beforeClosed=new P.x,this._state=0,this.disableClose=o.disableClose,this.id=l.id,c._animationStateChanged.pipe((0,ti.h)(u=>"opened"===u.state),(0,O.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),c._animationStateChanged.pipe((0,ti.h)(u=>"closed"===u.state),(0,O.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),l.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Y.T)(this.backdropClick(),this.keydownEvents().pipe((0,ti.h)(u=>u.keyCode===ie.hY&&!this.disableClose&&!(0,ie.Vb)(u)))).subscribe(u=>{this.disableClose||(u.preventDefault(),k(this,"keydown"===u.type?"keyboard":"mouse"))})}close(l){this._result=l,this._containerInstance._animationStateChanged.pipe((0,ti.h)(o=>"closing"===o.state),(0,O.q)(1)).subscribe(o=>{this._beforeClosed.next(l),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(l){let o=this._ref.config.positionStrategy;return l&&(l.left||l.right)?l.left?o.left(l.left):o.right(l.right):o.centerHorizontally(),l&&(l.top||l.bottom)?l.top?o.top(l.top):o.bottom(l.bottom):o.centerVertically(),this._ref.updatePosition(),this}updateSize(l="",o=""){return this._ref.updateSize(l,o),this}addPanelClass(l){return this._ref.addPanelClass(l),this}removePanelClass(l){return this._ref.removePanelClass(l),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function k(h,l,o){return h._closeInteractionType=l,h.close(o)}const L=new i.OlP("MatMdcDialogData"),T=new i.OlP("mat-mdc-dialog-default-options"),te=new i.OlP("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(On);return()=>h.scrollStrategies.block()}});let Rt=0,Mn=(()=>{class h{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(o,c,u,p,D,G,fe,we){this._overlay=o,this._defaultOptions=p,this._scrollStrategy=D,this._parentDialog=G,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P.x,this._afterOpenedAtThisLevel=new P.x,this.dialogConfigClass=Ni,this.afterAllClosed=rs(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,I.O)(void 0))),this._dialog=c.get(cs),this._dialogRefConstructor=At,this._dialogContainerType=us,this._dialogDataToken=L}open(o,c){let u;(c={...this._defaultOptions||new Ni,...c}).id=c.id||"mat-mdc-dialog-"+Rt++,c.scrollStrategy=c.scrollStrategy||this._scrollStrategy();const p=this._dialog.open(o,{...c,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:c},{provide:fo,useValue:c}]},templateContext:()=>({dialogRef:u}),providers:(D,G,fe)=>(u=new this._dialogRefConstructor(D,c,fe),u.updatePosition(c?.position),[{provide:this._dialogContainerType,useValue:fe},{provide:this._dialogDataToken,useValue:G.data},{provide:this._dialogRefConstructor,useValue:u}])});return u.componentRef=p.componentRef,u.componentInstance=p.componentInstance,this.openDialogs.push(u),this.afterOpened.next(u),u.afterClosed().subscribe(()=>{const D=this.openDialogs.indexOf(u);D>-1&&(this.openDialogs.splice(D,1),this.openDialogs.length||this._getAfterAllClosed().next())}),u}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(o){return this.openDialogs.find(c=>c.id===o)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(o){let c=o.length;for(;c--;)o[c].close()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(On),i.LFG(i.zs3),i.LFG(x.Ye,8),i.LFG(T,8),i.LFG(te),i.LFG(h,12),i.LFG(Ri),i.LFG(i.QbO,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Lt=0,Li=(()=>{class h{constructor(o,c,u){this.dialogRef=o,this._elementRef=c,this._dialog=u,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=or(this._elementRef,this._dialog.openDialogs))}ngOnChanges(o){const c=o._matDialogClose||o._matDialogCloseResult;c&&(this.dialogResult=c.currentValue)}_onButtonClick(o){k(this.dialogRef,0===o.screenX&&0===o.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(At,8),i.Y36(i.SBq),i.Y36(Mn))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(c,u){1&c&&i.NdJ("click",function(D){return u._onButtonClick(D)}),2&c&&i.uIk("aria-label",u.ariaLabel||null)("type",u.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[i.TTD]})}return h})(),na=(()=>{class h{constructor(o,c,u){this._dialogRef=o,this._elementRef=c,this._dialog=u,this.id="mat-mdc-dialog-title-"+Lt++}ngOnInit(){this._dialogRef||(this._dialogRef=or(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const o=this._dialogRef?._containerInstance?._ariaLabelledByQueue;o&&Promise.resolve().then(()=>{const c=o.indexOf(this.id);c>-1&&o.splice(c,1)})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(At,8),i.Y36(i.SBq),i.Y36(Mn))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(c,u){2&c&&i.Ikx("id",u.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0})}return h})();function or(h,l){let o=h.nativeElement.parentElement;for(;o&&!o.classList.contains("mat-mdc-dialog-container");)o=o.parentElement;return o?l.find(c=>c.id===o.id):null}let po=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[Mn],imports:[Hn,Fn,on.eL,M.BQ,us,M.BQ]})}return h})();var mi=y(1238),kr=y(4453),go=y(6589),Bt=y(9925),fs=y(4049),rr=y(2829),Bi=y(1952),Fr=y(8412),sr=y(5123);function qn(h,l){return l?o=>(0,Bt.z)(l.pipe((0,O.q)(1),function Rr(){return(0,fs.e)((h,l)=>{h.subscribe((0,rr.x)(l,Bi.Z))})}()),o.pipe(qn(h))):(0,sr.z)((o,c)=>(0,Qs.Xf)(h(o,c)).pipe((0,O.q)(1),function Nn(h){return(0,Fr.U)(()=>h)}(o)))}var Jn=y(5117);function ia(h,l=go.z){const o=(0,Jn.H)(h,l);return qn(()=>o)}const ar=["mat-menu-item",""];function oa(h,l){1&h&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"polygon",4),i.qZA())}const Qi=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],nc=["mat-icon, [matMenuItemIcon]","*"];function El(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._handleKeydown(u))})("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.closed.emit("click"))})("@transformMenu.start",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._onAnimationStart(u))})("@transformMenu.done",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._onAnimationDone(u))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&h){const o=i.oxw();i.Q6J("id",o.panelId)("ngClass",o._classList)("@transformMenu",o._panelAnimationState),i.uIk("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null)("aria-describedby",o.ariaDescribedby||null)}}const gu=["*"],Nr=new i.OlP("MAT_MENU_PANEL");let Lr=(()=>{class h{constructor(o,c,u,p,D){this._elementRef=o,this._document=c,this._focusMonitor=u,this._parentMenu=p,this._changeDetectorRef=D,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new P.x,this._focused=new P.x,this._highlighted=!1,this._triggersSubmenu=!1,p?.addItem?.(this)}focus(o,c){this._focusMonitor&&o?this._focusMonitor.focusVia(this._getHostElement(),o,c):this._getHostElement().focus(c),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(o){this.disabled&&(o.preventDefault(),o.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const o=this._elementRef.nativeElement.cloneNode(!0),c=o.querySelectorAll("mat-icon, .material-icons");for(let u=0;u<c.length;u++)c[u].remove();return o.textContent?.trim()||""}_setHighlighted(o){this._highlighted=o,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(o){this._triggersSubmenu=o,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(x.K0),i.Y36(N.tE),i.Y36(Nr,8),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(c,u){1&c&&i.NdJ("click",function(D){return u._checkDisabled(D)})("mouseenter",function(){return u._handleMouseEnter()}),2&c&&(i.uIk("role",u.role)("tabindex",u._getTabIndex())("aria-disabled",u.disabled)("disabled",u.disabled||null),i.ekj("mat-mdc-menu-item-highlighted",u._highlighted)("mat-mdc-menu-item-submenu-trigger",u._triggersSubmenu))},inputs:{role:"role",disabled:["disabled","disabled",i.VuI],disableRipple:["disableRipple","disableRipple",i.VuI]},exportAs:["matMenuItem"],features:[i.Xq5],attrs:ar,ngContentSelectors:nc,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(c,u){1&c&&(i.F$t(Qi),i.Hsn(0),i.TgZ(1,"span",0),i.Hsn(2,1),i.qZA(),i._UZ(3,"div",1),i.YNc(4,oa,2,0,":svg:svg",2)),2&c&&(i.xp6(3),i.Q6J("matRippleDisabled",u.disableRipple||u.disabled)("matRippleTrigger",u._getHostElement()),i.xp6(1),i.um2(4,u._triggersSubmenu?4:-1))},dependencies:[M.wG],encapsulation:2,changeDetection:0})}return h})();const Gf=new i.OlP("MatMenuContent"),ic={transformMenu:(0,ce.X$)("transformMenu",[(0,ce.SB)("void",(0,ce.oB)({opacity:0,transform:"scale(0.8)"})),(0,ce.eR)("void => enter",(0,ce.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ce.oB)({opacity:1,transform:"scale(1)"}))),(0,ce.eR)("* => void",(0,ce.jt)("100ms 25ms linear",(0,ce.oB)({opacity:0})))]),fadeInItems:(0,ce.X$)("fadeInItems",[(0,ce.SB)("showing",(0,ce.oB)({opacity:1})),(0,ce.eR)("void => *",[(0,ce.oB)({opacity:0}),(0,ce.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Wf=0;const Yf=new i.OlP("mat-menu-default-options",{providedIn:"root",factory:function ra(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let sa=(()=>{class h{get xPosition(){return this._xPosition}set xPosition(o){this._xPosition=o,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(o){this._yPosition=o,this.setPositionClasses()}set panelClass(o){const c=this._previousPanelClass;c&&c.length&&c.split(" ").forEach(u=>{this._classList[u]=!1}),this._previousPanelClass=o,o&&o.length&&(o.split(" ").forEach(u=>{this._classList[u]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(o){this.panelClass=o}constructor(o,c,u,p){this._elementRef=o,this._ngZone=c,this._changeDetectorRef=p,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new i.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new P.x,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Wf++,this.overlayPanelClass=u.overlayPanelClass||"",this._xPosition=u.xPosition,this._yPosition=u.yPosition,this.backdropClass=u.backdropClass,this.overlapTrigger=u.overlapTrigger,this.hasBackdrop=u.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new N.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,I.O)(this._directDescendantItems),(0,R.w)(o=>(0,Y.T)(...o.map(c=>c._focused)))).subscribe(o=>this._keyManager.updateActiveItem(o)),this._directDescendantItems.changes.subscribe(o=>{const c=this._keyManager;if("enter"===this._panelAnimationState&&c.activeItem?._hasFocus()){const u=o.toArray(),p=Math.max(0,Math.min(u.length-1,c.activeItemIndex||0));u[p]&&!u[p].disabled?c.setActiveItem(p):c.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,I.O)(this._directDescendantItems),(0,R.w)(c=>(0,Y.T)(...c.map(u=>u._hovered))))}addItem(o){}removeItem(o){}_handleKeydown(o){const c=o.keyCode,u=this._keyManager;switch(c){case ie.hY:(0,ie.Vb)(o)||(o.preventDefault(),this.closed.emit("keydown"));break;case ie.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case ie.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(c===ie.LH||c===ie.JH)&&u.setFocusOrigin("keyboard"),void u.onKeydown(o)}o.stopPropagation()}focusFirstItem(o="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>{let c=null;if(this._directDescendantItems.length&&(c=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!c||!c.contains(document.activeElement)){const u=this._keyManager;u.setFocusOrigin(o).setFirstItemActive(),!u.activeItem&&c&&c.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(o){const c=Math.min(this._baseElevation+o,24),u=`${this._elevationPrefix}${c}`,p=Object.keys(this._classList).find(D=>D.startsWith(this._elevationPrefix));(!p||p===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[u]=!0,this._previousElevation=u)}setPositionClasses(o=this.xPosition,c=this.yPosition){const u=this._classList;u["mat-menu-before"]="before"===o,u["mat-menu-after"]="after"===o,u["mat-menu-above"]="above"===c,u["mat-menu-below"]="below"===c,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(o){this._animationDone.next(o),this._isAnimating=!1}_onAnimationStart(o){this._isAnimating=!0,"enter"===o.toState&&0===this._keyManager.activeItemIndex&&(o.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,I.O)(this._allItems)).subscribe(o=>{this._directDescendantItems.reset(o.filter(c=>c._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Yf),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-menu"]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,Gf,5),i.Suo(p,Lr,5),i.Suo(p,Lr,4)),2&c){let D;i.iGM(D=i.CRH())&&(u.lazyContent=D.first),i.iGM(D=i.CRH())&&(u._allItems=D),i.iGM(D=i.CRH())&&(u.items=D)}},viewQuery:function(c,u){if(1&c&&i.Gf(i.Rgc,5),2&c){let p;i.iGM(p=i.CRH())&&(u.templateRef=p.first)}},hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(c,u){2&c&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:["overlapTrigger","overlapTrigger",i.VuI],hasBackdrop:["hasBackdrop","hasBackdrop",o=>null==o?null:(0,i.VuI)(o)],panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i._Bn([{provide:Nr,useExisting:h}]),i.Xq5],ngContentSelectors:gu,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(c,u){1&c&&(i.F$t(),i.YNc(0,El,3,6,"ng-template"))},dependencies:[x.mk],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{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;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[ic.transformMenu,ic.fadeInItems]},changeDetection:0})}return h})();const b=new i.OlP("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(On);return()=>h.scrollStrategies.reposition()}}),E={provide:b,deps:[On],useFactory:function q(h){return()=>h.scrollStrategies.reposition()}},$=(0,mn.i$)({passive:!0});let He=(()=>{class h{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(o){this.menu=o}get menu(){return this._menu}set menu(o){o!==this._menu&&(this._menu=o,this._menuCloseSubscription.unsubscribe(),o&&(this._menuCloseSubscription=o.close.subscribe(c=>{this._destroyMenu(c),("click"===c||"tab"===c)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(c)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(o,c,u,p,D,G,fe,we,Le){this._overlay=o,this._element=c,this._viewContainerRef=u,this._menuItemInstance=G,this._dir=fe,this._focusMonitor=we,this._ngZone=Le,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ni.w0.EMPTY,this._hoverSubscription=ni.w0.EMPTY,this._menuCloseSubscription=ni.w0.EMPTY,this._changeDetectorRef=(0,i.f3M)(i.sBO),this._handleTouchStart=Ye=>{(0,N.yG)(Ye)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=p,this._parentMaterialMenu=D instanceof sa?D:void 0,c.nativeElement.addEventListener("touchstart",this._handleTouchStart,$)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const o=this.menu;if(this._menuOpen||!o)return;const c=this._createOverlay(o),u=c.getConfig(),p=u.positionStrategy;this._setPosition(o,p),u.hasBackdrop=null==o.hasBackdrop?!this.triggersSubmenu():o.hasBackdrop,c.attach(this._getPortal(o)),o.lazyContent&&o.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(o),o instanceof sa&&(o._startAnimation(),o._directDescendantItems.changes.pipe((0,w.R)(o.close)).subscribe(()=>{p.withLockedPosition(!1).reapplyLastPosition(),p.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(o,c){this._focusMonitor&&o?this._focusMonitor.focusVia(this._element,o,c):this._element.nativeElement.focus(c)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(o){if(!this._overlayRef||!this.menuOpen)return;const c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===o||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof sa?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe((0,ti.h)(u=>"void"===u.toState),(0,O.q)(1),(0,w.R)(c.lazyContent._attached)).subscribe({next:()=>c.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c?.lazyContent?.detach())}_initMenu(o){o.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,o.direction=this.dir,this._setMenuElevation(o),o.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(o){if(o.setElevation){let c=0,u=o.parentMenu;for(;u;)c++,u=u.parentMenu;o.setElevation(c)}}_setIsMenuOpen(o){o!==this._menuOpen&&(this._menuOpen=o,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(o),this._changeDetectorRef.markForCheck())}_createOverlay(o){if(!this._overlayRef){const c=this._getOverlayConfig(o);this._subscribeToPositions(o,c.positionStrategy),this._overlayRef=this._overlay.create(c),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(o){return new To({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:o.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:o.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(o,c){o.setPositionClasses&&c.positionChanges.subscribe(u=>{const p="start"===u.connectionPair.overlayX?"after":"before",D="top"===u.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>o.setPositionClasses(p,D)):o.setPositionClasses(p,D)})}_setPosition(o,c){let[u,p]="before"===o.xPosition?["end","start"]:["start","end"],[D,G]="above"===o.yPosition?["bottom","top"]:["top","bottom"],[fe,we]=[D,G],[Le,Ye]=[u,p],dt=0;if(this.triggersSubmenu()){if(Ye=u="before"===o.xPosition?"start":"end",p=Le="end"===u?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mt=this._parentMaterialMenu.items.first;this._parentInnerPadding=mt?mt._getHostElement().offsetTop:0}dt="bottom"===D?this._parentInnerPadding:-this._parentInnerPadding}}else o.overlapTrigger||(fe="top"===D?"bottom":"top",we="top"===G?"bottom":"top");c.withPositions([{originX:u,originY:fe,overlayX:Le,overlayY:D,offsetY:dt},{originX:p,originY:fe,overlayX:Ye,overlayY:D,offsetY:dt},{originX:u,originY:we,overlayX:Le,overlayY:G,offsetY:-dt},{originX:p,originY:we,overlayX:Ye,overlayY:G,offsetY:-dt}])}_menuClosingActions(){const o=this._overlayRef.backdropClick(),c=this._overlayRef.detachments(),u=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ho.of)(),p=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ti.h)(D=>D!==this._menuItemInstance),(0,ti.h)(()=>this._menuOpen)):(0,Ho.of)();return(0,Y.T)(o,u,p,c)}_handleMousedown(o){(0,N.X6)(o)||(this._openedBy=0===o.button?"mouse":void 0,this.triggersSubmenu()&&o.preventDefault())}_handleKeydown(o){const c=o.keyCode;(c===ie.K5||c===ie.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(c===ie.SV&&"ltr"===this.dir||c===ie.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(o){this.triggersSubmenu()?(o.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ti.h)(o=>o===this._menuItemInstance&&!o.disabled),ia(0,kr.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof sa&&this.menu._isAnimating?this.menu._animationDone.pipe((0,O.q)(1),ia(0,kr.E),(0,w.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(o){return(!this._portal||this._portal.templateRef!==o.templateRef)&&(this._portal=new on.UE(o.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(On),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(b),i.Y36(Nr,8),i.Y36(Lr,10),i.Y36(X.Is,8),i.Y36(N.tE),i.Y36(i.R0b))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(c,u){1&c&&i.NdJ("click",function(D){return u._handleClick(D)})("mousedown",function(D){return u._handleMousedown(D)})("keydown",function(D){return u._handleKeydown(D)}),2&c&&i.uIk("aria-haspopup",u.menu?"menu":null)("aria-expanded",u.menuOpen)("aria-controls",u.menuOpen?u.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return h})(),tt=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[E],imports:[x.ez,M.si,M.BQ,Fn,Zt.ZD,M.BQ]})}return h})();class un extends ir.y{constructor(l,o){super(),this.source=l,this.subjectFactory=o,this._subject=null,this._refCount=0,this._connection=null,(0,fs.A)(l)&&(this.lift=l.lift)}_subscribe(l){return this.getSubject().subscribe(l)}getSubject(){const l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:l}=this;this._subject=this._connection=null,l?.unsubscribe()}connect(){let l=this._connection;if(!l){l=this._connection=new ni.w0;const o=this.getSubject();l.add(this.source.subscribe((0,rr.x)(o,void 0,()=>{this._teardown(),o.complete()},c=>{this._teardown(),o.error(c)},()=>this._teardown()))),l.closed&&(this._connection=null,l=ni.w0.EMPTY)}return l}refCount(){return function yt(){return(0,fs.e)((h,l)=>{let o=null;h._refCount++;const c=(0,rr.x)(l,void 0,void 0,void 0,()=>{if(!h||h._refCount<=0||0<--h._refCount)return void(o=null);const u=h._connection,p=o;o=null,u&&(!p||u===p)&&u.unsubscribe(),l.unsubscribe()});h.subscribe(c),c.closed||(o=h.connect())})}()(this)}}function hn(h){return h&&"function"==typeof h.connect&&!(h instanceof un)}class An{applyChanges(l,o,c,u,p){l.forEachOperation((D,G,fe)=>{let we,Le;if(null==D.previousIndex){const Ye=c(D,G,fe);we=o.createEmbeddedView(Ye.templateRef,Ye.context,Ye.index),Le=1}else null==fe?(o.remove(G),Le=3):(we=o.get(G),o.move(we,fe),Le=2);p&&p({context:we?.context,operation:Le,record:D})})}detach(){}}const Ai=new i.OlP("_ViewRepeater");var Mo=y(107),ii=y(1625),Xi=y(3276);const ms=[[["caption"]],[["colgroup"],["col"]]],Kf=["caption","colgroup, col"];function aa(h){return class extends h{get sticky(){return this._sticky}set sticky(l){const o=this._sticky;this._sticky=(0,v.Ig)(l),this._hasStickyChanged=o!==this._sticky}hasStickyChanged(){const l=this._hasStickyChanged;return this._hasStickyChanged=!1,l}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...l){super(...l),this._sticky=!1,this._hasStickyChanged=!1}}}const So=new i.OlP("CDK_TABLE");let ps=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkCellDef",""]]})}return h})(),Ao=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkHeaderCellDef",""]]})}return h})(),Go=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkFooterCellDef",""]]})}return h})();class Vi{}const Zf=aa(Vi);let bo=(()=>{class h extends Zf{get name(){return this._name}set name(o){this._setNameInput(o)}get stickyEnd(){return this._stickyEnd}set stickyEnd(o){o!==this._stickyEnd&&(this._stickyEnd=o,this._hasStickyChanged=!0)}constructor(o){super(),this._table=o,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(o){o&&(this._name=o,this.cssClassFriendlyName=o.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(So,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkColumnDef",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,ps,5),i.Suo(p,Ao,5),i.Suo(p,Go,5)),2&c){let D;i.iGM(D=i.CRH())&&(u.cell=D.first),i.iGM(D=i.CRH())&&(u.headerCell=D.first),i.iGM(D=i.CRH())&&(u.footerCell=D.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:["stickyEnd","stickyEnd",i.VuI]},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:h}]),i.Xq5,i.qOj]})}return h})();class Sl{constructor(l,o){o.nativeElement.classList.add(...l._columnCssClassName)}}let eo=(()=>{class h extends Sl{constructor(o,c){super(o,c)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(bo),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]})}return h})(),Il=(()=>{class h extends Sl{constructor(o,c){if(super(o,c),1===o._table?._elementRef.nativeElement.nodeType){const u=o._table._elementRef.nativeElement.getAttribute("role");c.nativeElement.setAttribute("role","grid"===u||"treegrid"===u?"gridcell":"cell")}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(bo),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]})}return h})();class Ol{constructor(){this.tasks=[],this.endTasks=[]}}const oc=new i.OlP("_COALESCED_STYLE_SCHEDULER");let rc=(()=>{class h{constructor(o){this._ngZone=o,this._currentSchedule=null,this._destroyed=new P.x}schedule(o){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(o)}scheduleEnd(o){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(o)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ol,this._getScheduleObservable().pipe((0,w.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const o=this._currentSchedule;this._currentSchedule=new Ol;for(const c of o.tasks)c();for(const c of o.endTasks)c()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Mo.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,O.q)(1))}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(i.R0b))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})(),gs=(()=>{class h{constructor(o,c){this.template=o,this._differs=c}ngOnChanges(o){if(!this._columnsDiffer){const c=o.columns&&o.columns.currentValue||[];this._columnsDiffer=this._differs.find(c).create(),this._columnsDiffer.diff(c)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(o){return this instanceof _s?o.headerCell.template:this instanceof ca?o.footerCell.template:o.cell.template}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4))};static#t=this.\u0275dir=i.lG2({type:h,features:[i.TTD]})}return h})();class Pl extends gs{}const Ut=aa(Pl);let _s=(()=>{class h extends Ut{constructor(o,c,u){super(o,c),this._table=u}ngOnChanges(o){super.ngOnChanges(o)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(So,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]})}return h})();class F_ extends gs{}const qf=aa(F_);let ca=(()=>{class h extends qf{constructor(o,c,u){super(o,c),this._table=u}ngOnChanges(o){super.ngOnChanges(o)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(So,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]})}return h})(),ac=(()=>{class h extends gs{constructor(o,c,u){super(o,c),this._table=u}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(So,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]})}return h})(),Io=(()=>{class h{static#e=this.mostRecentCellOutlet=null;constructor(o){this._viewContainer=o,h.mostRecentCellOutlet=this}ngOnDestroy(){h.mostRecentCellOutlet===this&&(h.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b))};static#n=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkCellOutlet",""]]})}return h})(),cr=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Io],encapsulation:2})}return h})(),Rl=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Io],encapsulation:2})}return h})(),cc=(()=>{class h{constructor(o){this.templateRef=o,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["ng-template","cdkNoDataRow",""]]})}return h})();const _u=["top","bottom","left","right"];class Jf{constructor(l,o,c,u,p=!0,D=!0,G){this._isNativeHtmlTable=l,this._stickCellCss=o,this.direction=c,this._coalescedStyleScheduler=u,this._isBrowser=p,this._needsPositionStickyOnElement=D,this._positionListener=G,this._cachedCellWidths=[],this._borderCellCss={top:`${o}-border-elem-top`,bottom:`${o}-border-elem-bottom`,left:`${o}-border-elem-left`,right:`${o}-border-elem-right`}}clearStickyPositioning(l,o){const c=[];for(const u of l)if(u.nodeType===u.ELEMENT_NODE){c.push(u);for(let p=0;p<u.children.length;p++)c.push(u.children[p])}this._coalescedStyleScheduler.schedule(()=>{for(const u of c)this._removeStickyStyle(u,o)})}updateStickyColumns(l,o,c,u=!0){if(!l.length||!this._isBrowser||!o.some(dt=>dt)&&!c.some(dt=>dt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const p=l[0],D=p.children.length,G=this._getCellWidths(p,u),fe=this._getStickyStartColumnPositions(G,o),we=this._getStickyEndColumnPositions(G,c),Le=o.lastIndexOf(!0),Ye=c.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const dt="rtl"===this.direction,mt=dt?"right":"left",gt=dt?"left":"right";for(const bt of l)for(let zt=0;zt<D;zt++){const kn=bt.children[zt];o[zt]&&this._addStickyStyle(kn,mt,fe[zt],zt===Le),c[zt]&&this._addStickyStyle(kn,gt,we[zt],zt===Ye)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Le?[]:G.slice(0,Le+1).map((bt,zt)=>o[zt]?bt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ye?[]:G.slice(Ye).map((bt,zt)=>c[zt+Ye]?bt:null).reverse()}))})}stickRows(l,o,c){if(!this._isBrowser)return;const u="bottom"===c?l.slice().reverse():l,p="bottom"===c?o.slice().reverse():o,D=[],G=[],fe=[];for(let Le=0,Ye=0;Le<u.length;Le++){if(!p[Le])continue;D[Le]=Ye;const dt=u[Le];fe[Le]=this._isNativeHtmlTable?Array.from(dt.children):[dt];const mt=dt.getBoundingClientRect().height;Ye+=mt,G[Le]=mt}const we=p.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Le=0;Le<u.length;Le++){if(!p[Le])continue;const Ye=D[Le],dt=Le===we;for(const mt of fe[Le])this._addStickyStyle(mt,c,Ye,dt)}"top"===c?this._positionListener?.stickyHeaderRowsUpdated({sizes:G,offsets:D,elements:fe}):this._positionListener?.stickyFooterRowsUpdated({sizes:G,offsets:D,elements:fe})})}updateStickyFooterContainer(l,o){if(!this._isNativeHtmlTable)return;const c=l.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{o.some(u=>!u)?this._removeStickyStyle(c,["bottom"]):this._addStickyStyle(c,"bottom",0,!1)})}_removeStickyStyle(l,o){for(const u of o)l.style[u]="",l.classList.remove(this._borderCellCss[u]);_u.some(u=>-1===o.indexOf(u)&&l.style[u])?l.style.zIndex=this._getCalculatedZIndex(l):(l.style.zIndex="",this._needsPositionStickyOnElement&&(l.style.position=""),l.classList.remove(this._stickCellCss))}_addStickyStyle(l,o,c,u){l.classList.add(this._stickCellCss),u&&l.classList.add(this._borderCellCss[o]),l.style[o]=`${c}px`,l.style.zIndex=this._getCalculatedZIndex(l),this._needsPositionStickyOnElement&&(l.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(l){const o={top:100,bottom:10,left:1,right:1};let c=0;for(const u of _u)l.style[u]&&(c+=o[u]);return c?`${c}`:""}_getCellWidths(l,o=!0){if(!o&&this._cachedCellWidths.length)return this._cachedCellWidths;const c=[],u=l.children;for(let p=0;p<u.length;p++)c.push(u[p].getBoundingClientRect().width);return this._cachedCellWidths=c,c}_getStickyStartColumnPositions(l,o){const c=[];let u=0;for(let p=0;p<l.length;p++)o[p]&&(c[p]=u,u+=l[p]);return c}_getStickyEndColumnPositions(l,o){const c=[];let u=0;for(let p=l.length;p>0;p--)o[p]&&(c[p]=u,u+=l[p]);return c}}const la=new i.OlP("CDK_SPL");let dc=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","rowOutlet",""]]})}return h})(),Nl=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","headerRowOutlet",""]]})}return h})(),da=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","footerRowOutlet",""]]})}return h})(),oi=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","noDataRowOutlet",""]]})}return h})(),$i=(()=>{class h{get trackBy(){return this._trackByFn}set trackBy(o){this._trackByFn=o}get dataSource(){return this._dataSource}set dataSource(o){this._dataSource!==o&&this._switchDataSource(o)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(o){this._multiTemplateDataRows=o,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(o){this._fixedLayout=o,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(o,c,u,p,D,G,fe,we,Le,Ye,dt,mt){this._differs=o,this._changeDetectorRef=c,this._elementRef=u,this._dir=D,this._platform=fe,this._viewRepeater=we,this._coalescedStyleScheduler=Le,this._viewportRuler=Ye,this._stickyPositioningListener=dt,this._ngZone=mt,this._onDestroy=new P.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new ii.X({start:0,end:Number.MAX_VALUE}),p||this._elementRef.nativeElement.setAttribute("role","table"),this._document=G,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((o,c)=>this.trackBy?this.trackBy(c.dataIndex,c.data):c),this._viewportRuler.change().pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const c=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||c,this._forceRecalculateCellWidths=c,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(o=>{o.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),hn(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();const c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,c,(u,p,D)=>this._getEmbeddedViewArgs(u.item,D),u=>u.item.data,u=>{1===u.operation&&u.context&&this._renderCellTemplateForItem(u.record.item.rowDef,u.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(u=>{c.get(u.currentIndex).context.$implicit=u.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,O.q)(1),(0,w.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(o){this._customColumnDefs.add(o)}removeColumnDef(o){this._customColumnDefs.delete(o)}addRowDef(o){this._customRowDefs.add(o)}removeRowDef(o){this._customRowDefs.delete(o)}addHeaderRowDef(o){this._customHeaderRowDefs.add(o),this._headerRowDefChanged=!0}removeHeaderRowDef(o){this._customHeaderRowDefs.delete(o),this._headerRowDefChanged=!0}addFooterRowDef(o){this._customFooterRowDefs.add(o),this._footerRowDefChanged=!0}removeFooterRowDef(o){this._customFooterRowDefs.delete(o),this._footerRowDefChanged=!0}setNoDataRow(o){this._customNoDataRow=o}updateStickyHeaderRowStyles(){const o=this._getRenderedRows(this._headerRowOutlet),u=this._elementRef.nativeElement.querySelector("thead");u&&(u.style.display=o.length?"":"none");const p=this._headerRowDefs.map(D=>D.sticky);this._stickyStyler.clearStickyPositioning(o,["top"]),this._stickyStyler.stickRows(o,p,"top"),this._headerRowDefs.forEach(D=>D.resetStickyChanged())}updateStickyFooterRowStyles(){const o=this._getRenderedRows(this._footerRowOutlet),u=this._elementRef.nativeElement.querySelector("tfoot");u&&(u.style.display=o.length?"":"none");const p=this._footerRowDefs.map(D=>D.sticky);this._stickyStyler.clearStickyPositioning(o,["bottom"]),this._stickyStyler.stickRows(o,p,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,p),this._footerRowDefs.forEach(D=>D.resetStickyChanged())}updateStickyColumnStyles(){const o=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),u=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...o,...c,...u],["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach((p,D)=>{this._addStickyColumnStyles([p],this._headerRowDefs[D])}),this._rowDefs.forEach(p=>{const D=[];for(let G=0;G<c.length;G++)this._renderRows[G].rowDef===p&&D.push(c[G]);this._addStickyColumnStyles(D,p)}),u.forEach((p,D)=>{this._addStickyColumnStyles([p],this._footerRowDefs[D])}),Array.from(this._columnDefsByName.values()).forEach(p=>p.resetStickyChanged())}_getAllRenderRows(){const o=[],c=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let u=0;u<this._data.length;u++){let p=this._data[u];const D=this._getRenderRowsForData(p,u,c.get(p));this._cachedRenderRowsMap.has(p)||this._cachedRenderRowsMap.set(p,new WeakMap);for(let G=0;G<D.length;G++){let fe=D[G];const we=this._cachedRenderRowsMap.get(fe.data);we.has(fe.rowDef)?we.get(fe.rowDef).push(fe):we.set(fe.rowDef,[fe]),o.push(fe)}}return o}_getRenderRowsForData(o,c,u){return this._getRowDefs(o,c).map(D=>{const G=u&&u.has(D)?u.get(D):[];if(G.length){const fe=G.shift();return fe.dataIndex=c,fe}return{data:o,rowDef:D,dataIndex:c}})}_cacheColumnDefs(){this._columnDefsByName.clear(),to(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(c=>{this._columnDefsByName.has(c.name),this._columnDefsByName.set(c.name,c)})}_cacheRowDefs(){this._headerRowDefs=to(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=to(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=to(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const o=this._rowDefs.filter(c=>!c.when);this._defaultRowDef=o[0]}_renderUpdatedColumns(){const o=(D,G)=>D||!!G.getColumnsDiff(),c=this._rowDefs.reduce(o,!1);c&&this._forceRenderDataRows();const u=this._headerRowDefs.reduce(o,!1);u&&this._forceRenderHeaderRows();const p=this._footerRowDefs.reduce(o,!1);return p&&this._forceRenderFooterRows(),c||u||p}_switchDataSource(o){this._data=[],hn(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),o||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=o}_observeRenderChanges(){if(!this.dataSource)return;let o;hn(this.dataSource)?o=this.dataSource.connect(this):function zo(h){return!!h&&(h instanceof ir.y||(0,Xi.m)(h.lift)&&(0,Xi.m)(h.subscribe))}(this.dataSource)?o=this.dataSource:Array.isArray(this.dataSource)&&(o=(0,Ho.of)(this.dataSource)),this._renderChangeSubscription=o.pipe((0,w.R)(this._onDestroy)).subscribe(c=>{this._data=c||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((o,c)=>this._renderRow(this._headerRowOutlet,o,c)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((o,c)=>this._renderRow(this._footerRowOutlet,o,c)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(o,c){const u=Array.from(c.columns||[]).map(G=>this._columnDefsByName.get(G)),p=u.map(G=>G.sticky),D=u.map(G=>G.stickyEnd);this._stickyStyler.updateStickyColumns(o,p,D,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(o){const c=[];for(let u=0;u<o.viewContainer.length;u++){const p=o.viewContainer.get(u);c.push(p.rootNodes[0])}return c}_getRowDefs(o,c){if(1==this._rowDefs.length)return[this._rowDefs[0]];let u=[];if(this.multiTemplateDataRows)u=this._rowDefs.filter(p=>!p.when||p.when(c,o));else{let p=this._rowDefs.find(D=>D.when&&D.when(c,o))||this._defaultRowDef;p&&u.push(p)}return u}_getEmbeddedViewArgs(o,c){return{templateRef:o.rowDef.template,context:{$implicit:o.data},index:c}}_renderRow(o,c,u,p={}){const D=o.viewContainer.createEmbeddedView(c.template,p,u);return this._renderCellTemplateForItem(c,p),D}_renderCellTemplateForItem(o,c){for(let u of this._getCellTemplates(o))Io.mostRecentCellOutlet&&Io.mostRecentCellOutlet._viewContainer.createEmbeddedView(u,c);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const o=this._rowOutlet.viewContainer;for(let c=0,u=o.length;c<u;c++){const D=o.get(c).context;D.count=u,D.first=0===c,D.last=c===u-1,D.even=c%2==0,D.odd=!D.even,this.multiTemplateDataRows?(D.dataIndex=this._renderRows[c].dataIndex,D.renderIndex=c):D.index=this._renderRows[c].dataIndex}}_getCellTemplates(o){return o&&o.columns?Array.from(o.columns,c=>{const u=this._columnDefsByName.get(c);return o.extractCellTemplate(u)}):[]}_applyNativeTableSections(){const o=this._document.createDocumentFragment(),c=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const u of c){const p=this._document.createElement(u.tag);p.setAttribute("role","rowgroup");for(const D of u.outlets)p.appendChild(D.elementRef.nativeElement);o.appendChild(p)}this._elementRef.nativeElement.appendChild(o)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const o=(c,u)=>c||u.hasStickyChanged();this._headerRowDefs.reduce(o,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(o,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(o,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Jf(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Ho.of)()).pipe((0,w.R)(this._onDestroy)).subscribe(c=>{this._stickyStyler.direction=c,this.updateStickyColumnStyles()})}_getOwnDefs(o){return o.filter(c=>!c._table||c._table===this)}_updateNoDataRow(){const o=this._customNoDataRow||this._noDataRow;if(!o)return;const c=0===this._rowOutlet.viewContainer.length;if(c===this._isShowingNoDataRow)return;const u=this._noDataRowOutlet.viewContainer;if(c){const p=u.createEmbeddedView(o.templateRef),D=p.rootNodes[0];1===p.rootNodes.length&&D?.nodeType===this._document.ELEMENT_NODE&&(D.setAttribute("role","row"),D.classList.add(o._contentClassName))}else u.clear();this._isShowingNoDataRow=c,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(X.Is,8),i.Y36(x.K0),i.Y36(mn.t4),i.Y36(Ai),i.Y36(oc),i.Y36(Zt.rL),i.Y36(la,12),i.Y36(i.R0b,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,cc,5),i.Suo(p,bo,5),i.Suo(p,ac,5),i.Suo(p,_s,5),i.Suo(p,ca,5)),2&c){let D;i.iGM(D=i.CRH())&&(u._noDataRow=D.first),i.iGM(D=i.CRH())&&(u._contentColumnDefs=D),i.iGM(D=i.CRH())&&(u._contentRowDefs=D),i.iGM(D=i.CRH())&&(u._contentHeaderRowDefs=D),i.iGM(D=i.CRH())&&(u._contentFooterRowDefs=D)}},viewQuery:function(c,u){if(1&c&&(i.Gf(dc,7),i.Gf(Nl,7),i.Gf(da,7),i.Gf(oi,7)),2&c){let p;i.iGM(p=i.CRH())&&(u._rowOutlet=p.first),i.iGM(p=i.CRH())&&(u._headerRowOutlet=p.first),i.iGM(p=i.CRH())&&(u._footerRowOutlet=p.first),i.iGM(p=i.CRH())&&(u._noDataRowOutlet=p.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("cdk-table-fixed-layout",u.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:["multiTemplateDataRows","multiTemplateDataRows",i.VuI],fixedLayout:["fixedLayout","fixedLayout",i.VuI]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:So,useExisting:h},{provide:Ai,useClass:An},{provide:oc,useClass:rc},{provide:la,useValue:null}]),i.Xq5],ngContentSelectors:Kf,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(c,u){1&c&&(i.F$t(ms),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[dc,Nl,da,oi],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return h})();function to(h,l){return h.concat(Array.from(l))}let im=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({imports:[Zt.Cl]})}return h})();const om=[[["caption"]],[["colgroup"],["col"]]],Ll=["caption","colgroup, col"];let $l=(()=>{class h extends $i{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("mdc-table-fixed-layout",u.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:$i,useExisting:h},{provide:So,useExisting:h},{provide:oc,useClass:rc},{provide:Ai,useClass:An},{provide:la,useValue:null}]),i.qOj],ngContentSelectors:Ll,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(c,u){1&c&&(i.F$t(om),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[dc,Nl,da,oi],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return h})(),ua=(()=>{class h extends ps{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:ps,useExisting:h}]),i.qOj]})}return h})(),bs=(()=>{class h extends Ao{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:Ao,useExisting:h}]),i.qOj]})}return h})(),ha=(()=>{class h extends bo{get name(){return this._name}set name(o){this._setNameInput(o)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:bo,useExisting:h},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:h}]),i.qOj]})}return h})(),fa=(()=>{class h extends eo{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[i.qOj]})}return h})(),vs=(()=>{class h extends Il{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[i.qOj]})}return h})(),ri=(()=>{class h extends _s{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:_s,useExisting:h}]),i.qOj]})}return h})(),xn=(()=>{class h extends ac{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:ac,useExisting:h}]),i.qOj]})}return h})(),uc=(()=>{class h extends cr{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:cr,useExisting:h}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Io],encapsulation:2})}return h})(),jl=(()=>{class h extends Rl{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[i._Bn([{provide:Rl,useExisting:h}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Io],encapsulation:2})}return h})(),hc=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({imports:[M.BQ,im,M.BQ]})}return h})();var Oo=y(7361);const fc=["tooltip"],Hl=new i.OlP("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(On);return()=>h.scrollStrategies.reposition({scrollThrottle:20})}}),cm={provide:Hl,deps:[On],useFactory:function xu(h){return()=>h.scrollStrategies.reposition({scrollThrottle:20})}},pa=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ys(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),mc="tooltip-panel",Tu=(0,mn.i$)({passive:!0});let Vr=(()=>{class h{get position(){return this._position}set position(o){o!==this._position&&(this._position=o,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(o){this._positionAtOrigin=(0,v.Ig)(o),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(o){this._disabled=(0,v.Ig)(o),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(o){this._showDelay=(0,v.su)(o)}get hideDelay(){return this._hideDelay}set hideDelay(o){this._hideDelay=(0,v.su)(o),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(o){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=o?String(o).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(o){this._tooltipClass=o,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(o,c,u,p,D,G,fe,we,Le,Ye,dt,mt){this._overlay=o,this._elementRef=c,this._scrollDispatcher=u,this._viewContainerRef=p,this._ngZone=D,this._platform=G,this._ariaDescriber=fe,this._focusMonitor=we,this._dir=Ye,this._defaultOptions=dt,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=um,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new P.x,this._scrollStrategy=Le,this._document=mt,dt&&(this._showDelay=dt.showDelay,this._hideDelay=dt.hideDelay,dt.position&&(this.position=dt.position),dt.positionAtOrigin&&(this.positionAtOrigin=dt.positionAtOrigin),dt.touchGestures&&(this.touchGestures=dt.touchGestures)),Ye.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(o=>{o?"keyboard"===o&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const o=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([c,u])=>{o.removeEventListener(c,u,Tu)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(o,this.message,"tooltip"),this._focusMonitor.stopMonitoring(o)}show(o=this.showDelay,c){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const u=this._createOverlay(c);this._detach(),this._portal=this._portal||new on.C5(this._tooltipComponent,this._viewContainerRef);const p=this._tooltipInstance=u.attach(this._portal).instance;p._triggerElement=this._elementRef.nativeElement,p._mouseLeaveHideDelay=this._hideDelay,p.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),p.show(o)}hide(o=this.hideDelay){const c=this._tooltipInstance;c&&(c.isVisible()?c.hide(o):(c._cancelPendingAnimations(),this._detach()))}toggle(o){this._isTooltipVisible()?this.hide():this.show(void 0,o)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(o){if(this._overlayRef){const p=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!o)&&p._origin instanceof i.SBq)return this._overlayRef;this._detach()}const c=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),u=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&o||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(c);return u.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(p=>{this._updateCurrentPositionClass(p.connectionPair),this._tooltipInstance&&p.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:u,panelClass:`${this._cssClassPrefix}-${mc}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,w.R)(this._destroyed)).subscribe(p=>{this._isTooltipVisible()&&p.keyCode===ie.hY&&!(0,ie.Vb)(p)&&(p.preventDefault(),p.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(o){const c=o.getConfig().positionStrategy,u=this._getOrigin(),p=this._getOverlayPosition();c.withPositions([this._addOffset({...u.main,...p.main}),this._addOffset({...u.fallback,...p.fallback})])}_addOffset(o){const u=!this._dir||"ltr"==this._dir.value;return"top"===o.originY?o.offsetY=-8:"bottom"===o.originY?o.offsetY=8:"start"===o.originX?o.offsetX=u?-8:8:"end"===o.originX&&(o.offsetX=u?8:-8),o}_getOrigin(){const o=!this._dir||"ltr"==this._dir.value,c=this.position;let u;"above"==c||"below"==c?u={originX:"center",originY:"above"==c?"top":"bottom"}:"before"==c||"left"==c&&o||"right"==c&&!o?u={originX:"start",originY:"center"}:("after"==c||"right"==c&&o||"left"==c&&!o)&&(u={originX:"end",originY:"center"});const{x:p,y:D}=this._invertPosition(u.originX,u.originY);return{main:u,fallback:{originX:p,originY:D}}}_getOverlayPosition(){const o=!this._dir||"ltr"==this._dir.value,c=this.position;let u;"above"==c?u={overlayX:"center",overlayY:"bottom"}:"below"==c?u={overlayX:"center",overlayY:"top"}:"before"==c||"left"==c&&o||"right"==c&&!o?u={overlayX:"end",overlayY:"center"}:("after"==c||"right"==c&&o||"left"==c&&!o)&&(u={overlayX:"start",overlayY:"center"});const{x:p,y:D}=this._invertPosition(u.overlayX,u.overlayY);return{main:u,fallback:{overlayX:p,overlayY:D}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,O.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(o){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=o,this._tooltipInstance._markForCheck())}_invertPosition(o,c){return"above"===this.position||"below"===this.position?"top"===c?c="bottom":"bottom"===c&&(c="top"):"end"===o?o="start":"start"===o&&(o="end"),{x:o,y:c}}_updateCurrentPositionClass(o){const{overlayY:c,originX:u,originY:p}=o;let D;if(D="center"===c?this._dir&&"rtl"===this._dir.value?"end"===u?"left":"right":"start"===u?"left":"right":"bottom"===c&&"top"===p?"above":"below",D!==this._currentPosition){const G=this._overlayRef;if(G){const fe=`${this._cssClassPrefix}-${mc}-`;G.removePanelClass(fe+this._currentPosition),G.addPanelClass(fe+D)}this._currentPosition=D}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",o=>{let c;this._setupPointerExitEventsIfNeeded(),void 0!==o.x&&void 0!==o.y&&(c=o),this.show(void 0,c)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",o=>{const c=o.targetTouches?.[0],u=c?{x:c.clientX,y:c.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,u),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const o=[];if(this._platformSupportsMouseEvents())o.push(["mouseleave",c=>{const u=c.relatedTarget;(!u||!this._overlayRef?.overlayElement.contains(u))&&this.hide()}],["wheel",c=>this._wheelListener(c)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const c=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};o.push(["touchend",c],["touchcancel",c])}this._addListeners(o),this._passiveListeners.push(...o)}_addListeners(o){o.forEach(([c,u])=>{this._elementRef.nativeElement.addEventListener(c,u,Tu)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(o){if(this._isTooltipVisible()){const c=this._document.elementFromPoint(o.clientX,o.clientY),u=this._elementRef.nativeElement;c!==u&&!u.contains(c)&&this.hide()}}_disableNativeGesturesIfNecessary(){const o=this.touchGestures;if("off"!==o){const c=this._elementRef.nativeElement,u=c.style;("on"===o||"INPUT"!==c.nodeName&&"TEXTAREA"!==c.nodeName)&&(u.userSelect=u.msUserSelect=u.webkitUserSelect=u.MozUserSelect="none"),("on"===o||!c.draggable)&&(u.webkitUserDrag="none"),u.touchAction="none",u.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(On),i.Y36(i.SBq),i.Y36(Zt.mF),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(mn.t4),i.Y36(N.$s),i.Y36(N.tE),i.Y36(Hl),i.Y36(X.Is),i.Y36(pa,8),i.Y36(x.K0))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("mat-mdc-tooltip-disabled",u.disabled)},inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return h})(),um=(()=>{class h{constructor(o,c,u){this._changeDetectorRef=o,this._elementRef=c,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new P.x,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===u}show(o){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},o)}hide(o){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},o)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:o}){(!o||!this._triggerElement.contains(o))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const o=this._elementRef.nativeElement.getBoundingClientRect();return o.height>24&&o.width>=200}_handleAnimationEnd({animationName:o}){(o===this._showAnimation||o===this._hideAnimation)&&this._finalizeAnimation(o===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(o){o?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(o){const c=this._tooltip.nativeElement,u=this._showAnimation,p=this._hideAnimation;if(c.classList.remove(o?p:u),c.classList.add(o?u:p),this._isVisible=o,o&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const D=getComputedStyle(c);("0s"===D.getPropertyValue("animation-duration")||"none"===D.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}o&&this._onShow(),this._animationsDisabled&&(c.classList.add("_mat-animation-noopable"),this._finalizeAnimation(o))}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-tooltip-component"]],viewQuery:function(c,u){if(1&c&&i.Gf(fc,7),2&c){let p;i.iGM(p=i.CRH())&&(u._tooltip=p.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(c,u){1&c&&i.NdJ("mouseleave",function(D){return u._handleMouseLeave(D)}),2&c&&i.Udp("zoom",u.isVisible()?1:null)},decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(c,u){1&c&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(D){return u._handleAnimationEnd(D)}),i.TgZ(2,"div",2),i._uU(3),i.qZA()()),2&c&&(i.ekj("mdc-tooltip--multiline",u._isMultiline),i.Q6J("ngClass",u.tooltipClass),i.xp6(3),i.Oqu(u.message))},dependencies:[x.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow: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);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return h})(),zl=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[cm],imports:[N.rt,x.ez,Fn,M.BQ,M.BQ,Zt.ZD]})}return h})();function hm(h){return new i.vHH(3e3,!1)}function jr(h){switch(h.length){case 0:return new ce.ZN;case 1:return h[0];default:return new ce.ZE(h)}}function Nu(h,l,o=new Map,c=new Map){const u=[],p=[];let D=-1,G=null;if(l.forEach(fe=>{const we=fe.get("offset"),Le=we==D,Ye=Le&&G||new Map;fe.forEach((dt,mt)=>{let gt=mt,bt=dt;if("offset"!==mt)switch(gt=h.normalizePropertyName(gt,u),bt){case ce.k1:bt=o.get(mt);break;case ce.l3:bt=c.get(mt);break;default:bt=h.normalizeStyleValue(mt,gt,bt,u)}Ye.set(gt,bt)}),Le||p.push(Ye),G=Ye,D=we}),u.length)throw function Qn(h){return new i.vHH(3502,!1)}();return p}function Lu(h,l,o,c){switch(l){case"start":h.onStart(()=>c(o&&Bu(o,"start",h)));break;case"done":h.onDone(()=>c(o&&Bu(o,"done",h)));break;case"destroy":h.onDestroy(()=>c(o&&Bu(o,"destroy",h)))}}function Bu(h,l,o){const p=Vu(h.element,h.triggerName,h.fromState,h.toState,l||h.phaseName,o.totalTime??h.totalTime,!!o.disabled),D=h._data;return null!=D&&(p._data=D),p}function Vu(h,l,o,c,u="",p=0,D){return{element:h,triggerName:l,fromState:o,toState:c,phaseName:u,totalTime:p,disabled:!!D}}function no(h,l,o){let c=h.get(l);return c||h.set(l,c=o),c}function ym(h){const l=h.indexOf(":");return[h.substring(1,l),h.slice(l+1)]}const U_=(()=>typeof document>"u"?null:document.documentElement)();function ur(h){const l=h.parentNode||h.host||null;return l===U_?null:l}let Hr=null,Yn=!1;function Di(h,l){for(;l;){if(l===h)return!0;l=ur(l)}return!1}function Ur(h,l,o){if(o)return Array.from(h.querySelectorAll(l));const c=h.querySelector(l);return c?[c]:[]}let Ms=(()=>{class h{validateStyleProperty(o){return function Cm(h){Hr||(Hr=function xm(){return typeof document<"u"?document.body:null}()||{},Yn=!!Hr.style&&"WebkitAppearance"in Hr.style);let l=!0;return Hr.style&&!function wm(h){return"ebkit"==h.substring(1,6)}(h)&&(l=h in Hr.style,!l&&Yn&&(l="Webkit"+h.charAt(0).toUpperCase()+h.slice(1)in Hr.style)),l}(o)}matchesElement(o,c){return!1}containsElement(o,c){return Di(o,c)}getParentElement(o){return ur(o)}query(o,c,u){return Ur(o,c,u)}computeStyle(o,c,u){return u||""}animate(o,c,u,p,D,G=[],fe){return new ce.ZN(u,p)}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})(),zr=(()=>{class h{static#e=this.NOOP=new Ms}return h})();class ga{}const $u=1e3,_a="ng-enter",Yo="ng-leave",Jl="ng-trigger",ba=".ng-trigger",ju="ng-animating",Ql=".ng-animating";function Ko(h){if("number"==typeof h)return h;const l=h.match(/^(-?[\.\d]+)(m?s)/);return!l||l.length<2?0:Xl(parseFloat(l[1]),l[2])}function Xl(h,l){return"s"===l?h*$u:h}function yc(h,l,o){return h.hasOwnProperty("duration")?h:function Em(h,l,o){let u,p=0,D="";if("string"==typeof h){const G=h.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===G)return l.push(hm()),{duration:0,delay:0,easing:""};u=Xl(parseFloat(G[1]),G[2]);const fe=G[3];null!=fe&&(p=Xl(parseFloat(fe),G[4]));const we=G[5];we&&(D=we)}else u=h;if(!o){let G=!1,fe=l.length;u<0&&(l.push(function Du(){return new i.vHH(3100,!1)}()),G=!0),p<0&&(l.push(function Eu(){return new i.vHH(3101,!1)}()),G=!0),G&&l.splice(fe,0,hm())}return{duration:u,delay:p,easing:D}}(h,l,o)}function Gr(h,l={}){return Object.keys(h).forEach(o=>{l[o]=h[o]}),l}function va(h){const l=new Map;return Object.keys(h).forEach(o=>{l.set(o,h[o])}),l}function hr(h,l=new Map,o){if(o)for(let[c,u]of o)l.set(c,u);for(let[c,u]of h)l.set(c,u);return l}function Hi(h,l,o){l.forEach((c,u)=>{const p=Yr(u);o&&!o.has(u)&&o.set(u,h.style[p]),h.style[p]=c})}function Wr(h,l){l.forEach((o,c)=>{const u=Yr(c);h.style[u]=""})}function Ss(h){return Array.isArray(h)?1==h.length?h[0]:(0,ce.vP)(h):h}const As=new RegExp("{{\\s*(.+?)\\s*}}","g");function td(h){let l=[];if("string"==typeof h){let o;for(;o=As.exec(h);)l.push(o[1]);As.lastIndex=0}return l}function wa(h,l,o){const c=h.toString(),u=c.replace(As,(p,D)=>{let G=l[D];return null==G&&(o.push(function Po(h){return new i.vHH(3003,!1)}()),G=""),G.toString()});return u==c?h:u}function wc(h){const l=[];let o=h.next();for(;!o.done;)l.push(o.value),o=h.next();return l}const Is=/-+([a-z0-9])/g;function Yr(h){return h.replace(Is,(...l)=>l[1].toUpperCase())}function Ui(h,l,o){switch(l.type){case 7:return h.visitTrigger(l,o);case 0:return h.visitState(l,o);case 1:return h.visitTransition(l,o);case 2:return h.visitSequence(l,o);case 3:return h.visitGroup(l,o);case 4:return h.visitAnimate(l,o);case 5:return h.visitKeyframes(l,o);case 6:return h.visitStyle(l,o);case 8:return h.visitReference(l,o);case 9:return h.visitAnimateChild(l,o);case 10:return h.visitAnimateRef(l,o);case 11:return h.visitQuery(l,o);case 12:return h.visitStagger(l,o);default:throw function mm(h){return new i.vHH(3004,!1)}()}}function Sm(h,l){return window.getComputedStyle(h)[l]}const Am=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 Uu extends ga{normalizePropertyName(l,o){return Yr(l)}normalizeStyleValue(l,o,c,u){let p="";const D=c.toString().trim();if(Am.has(o)&&0!==c&&"0"!==c)if("number"==typeof c)p="px";else{const G=c.match(/^[+-]?[\d\.]+([a-z]*)$/);G&&0==G[1].length&&u.push(function gc(h,l){return new i.vHH(3005,!1)}())}return D+p}}const Cc="*";function Wu(h,l){const o=[];return"string"==typeof h?h.split(/\s*,\s*/).forEach(c=>function Yu(h,l,o){if(":"==h[0]){const fe=function xc(h,l){switch(h){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,c)=>parseFloat(c)>parseFloat(o);case":decrement":return(o,c)=>parseFloat(c)<parseFloat(o);default:return l.push(function Pu(h){return new i.vHH(3016,!1)}()),"* => *"}}(h,o);if("function"==typeof fe)return void l.push(fe);h=fe}const c=h.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return o.push(function gm(h){return new i.vHH(3015,!1)}()),l;const u=c[1],p=c[2],D=c[3];l.push(Ku(u,D));"<"==p[0]&&!(u==Cc&&D==Cc)&&l.push(Ku(D,u))}(c,o,l)):o.push(h),o}const id=new Set(["true","1"]),Os=new Set(["false","0"]);function Ku(h,l){const o=id.has(h)||Os.has(h),c=id.has(l)||Os.has(l);return(u,p)=>{let D=h==Cc||h==u,G=l==Cc||l==p;return!D&&o&&"boolean"==typeof u&&(D=u?id.has(h):Os.has(h)),!G&&c&&"boolean"==typeof p&&(G=p?id.has(l):Os.has(l)),D&&G}}const Zu=new RegExp("s*:selfs*,?","g");function Dc(h,l,o,c){return new Om(h).build(l,o,c)}class Om{constructor(l){this._driver=l}build(l,o,c){const u=new Pm(o);return this._resetContextStyleTimingState(u),Ui(this,Ss(l),u)}_resetContextStyleTimingState(l){l.currentQuerySelector="",l.collectedStyles=new Map,l.collectedStyles.set("",new Map),l.currentTime=0}visitTrigger(l,o){let c=o.queryCount=0,u=o.depCount=0;const p=[],D=[];return"@"==l.name.charAt(0)&&o.errors.push(function Wl(){return new i.vHH(3006,!1)}()),l.definitions.forEach(G=>{if(this._resetContextStyleTimingState(o),0==G.type){const fe=G,we=fe.name;we.toString().split(/\s*,\s*/).forEach(Le=>{fe.name=Le,p.push(this.visitState(fe,o))}),fe.name=we}else if(1==G.type){const fe=this.visitTransition(G,o);c+=fe.queryCount,u+=fe.depCount,D.push(fe)}else o.errors.push(function Mu(){return new i.vHH(3007,!1)}())}),{type:7,name:l.name,states:p,transitions:D,queryCount:c,depCount:u,options:null}}visitState(l,o){const c=this.visitStyle(l.styles,o),u=l.options&&l.options.params||null;if(c.containsDynamicStyles){const p=new Set,D=u||{};c.styles.forEach(G=>{G instanceof Map&&G.forEach(fe=>{td(fe).forEach(we=>{D.hasOwnProperty(we)||p.add(we)})})}),p.size&&(wc(p.values()),o.errors.push(function _c(h,l){return new i.vHH(3008,!1)}()))}return{type:0,name:l.name,style:c,options:u?{params:u}:null}}visitTransition(l,o){o.queryCount=0,o.depCount=0;const c=Ui(this,Ss(l.animation),o);return{type:1,matchers:Wu(l.expr,o.errors),animation:c,queryCount:o.queryCount,depCount:o.depCount,options:bi(l.options)}}visitSequence(l,o){return{type:2,steps:l.steps.map(c=>Ui(this,c,o)),options:bi(l.options)}}visitGroup(l,o){const c=o.currentTime;let u=0;const p=l.steps.map(D=>{o.currentTime=c;const G=Ui(this,D,o);return u=Math.max(u,o.currentTime),G});return o.currentTime=u,{type:3,steps:p,options:bi(l.options)}}visitAnimate(l,o){const c=function Mc(h,l){if(h.hasOwnProperty("duration"))return h;if("number"==typeof h)return mr(yc(h,l).duration,0,"");const o=h;if(o.split(/\s+/).some(p=>"{"==p.charAt(0)&&"{"==p.charAt(1))){const p=mr(0,0,"");return p.dynamic=!0,p.strValue=o,p}const u=yc(o,l);return mr(u.duration,u.delay,u.easing)}(l.timings,o.errors);o.currentAnimateTimings=c;let u,p=l.styles?l.styles:(0,ce.oB)({});if(5==p.type)u=this.visitKeyframes(p,o);else{let D=l.styles,G=!1;if(!D){G=!0;const we={};c.easing&&(we.easing=c.easing),D=(0,ce.oB)(we)}o.currentTime+=c.duration+c.delay;const fe=this.visitStyle(D,o);fe.isEmptyStep=G,u=fe}return o.currentAnimateTimings=null,{type:4,timings:c,style:u,options:null}}visitStyle(l,o){const c=this._makeStyleAst(l,o);return this._validateStyleAst(c,o),c}_makeStyleAst(l,o){const c=[],u=Array.isArray(l.styles)?l.styles:[l.styles];for(let G of u)"string"==typeof G?G===ce.l3?c.push(G):o.errors.push(new i.vHH(3002,!1)):c.push(va(G));let p=!1,D=null;return c.forEach(G=>{if(G instanceof Map&&(G.has("easing")&&(D=G.get("easing"),G.delete("easing")),!p))for(let fe of G.values())if(fe.toString().indexOf("{{")>=0){p=!0;break}}),{type:6,styles:c,easing:D,offset:l.offset,containsDynamicStyles:p,options:null}}_validateStyleAst(l,o){const c=o.currentAnimateTimings;let u=o.currentTime,p=o.currentTime;c&&p>0&&(p-=c.duration+c.delay),l.styles.forEach(D=>{"string"!=typeof D&&D.forEach((G,fe)=>{const we=o.collectedStyles.get(o.currentQuerySelector),Le=we.get(fe);let Ye=!0;Le&&(p!=u&&p>=Le.startTime&&u<=Le.endTime&&(o.errors.push(function Su(h,l,o,c,u){return new i.vHH(3010,!1)}()),Ye=!1),p=Le.startTime),Ye&&we.set(fe,{startTime:p,endTime:u}),o.options&&function ed(h,l,o){const c=l.params||{},u=td(h);u.length&&u.forEach(p=>{c.hasOwnProperty(p)||o.push(function fm(h){return new i.vHH(3001,!1)}())})}(G,o.options,o.errors)})})}visitKeyframes(l,o){const c={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function Au(){return new i.vHH(3011,!1)}()),c;let p=0;const D=[];let G=!1,fe=!1,we=0;const Le=l.steps.map(kn=>{const Ln=this._makeStyleAst(kn,o);let si=null!=Ln.offset?Ln.offset:function rd(h){if("string"==typeof h)return null;let l=null;if(Array.isArray(h))h.forEach(o=>{if(o instanceof Map&&o.has("offset")){const c=o;l=parseFloat(c.get("offset")),c.delete("offset")}});else if(h instanceof Map&&h.has("offset")){const o=h;l=parseFloat(o.get("offset")),o.delete("offset")}return l}(Ln.styles),Bn=0;return null!=si&&(p++,Bn=Ln.offset=si),fe=fe||Bn<0||Bn>1,G=G||Bn<we,we=Bn,D.push(Bn),Ln});fe&&o.errors.push(function Iu(){return new i.vHH(3012,!1)}()),G&&o.errors.push(function Ou(){return new i.vHH(3200,!1)}());const Ye=l.steps.length;let dt=0;p>0&&p<Ye?o.errors.push(function pm(){return new i.vHH(3202,!1)}()):0==p&&(dt=1/(Ye-1));const mt=Ye-1,gt=o.currentTime,bt=o.currentAnimateTimings,zt=bt.duration;return Le.forEach((kn,Ln)=>{const si=dt>0?Ln==mt?1:dt*Ln:D[Ln],Bn=si*zt;o.currentTime=gt+bt.delay+Bn,bt.duration=Bn,this._validateStyleAst(kn,o),kn.offset=si,c.styles.push(kn)}),c}visitReference(l,o){return{type:8,animation:Ui(this,Ss(l.animation),o),options:bi(l.options)}}visitAnimateChild(l,o){return o.depCount++,{type:9,options:bi(l.options)}}visitAnimateRef(l,o){return{type:10,animation:this.visitReference(l.animation,o),options:bi(l.options)}}visitQuery(l,o){const c=o.currentQuerySelector,u=l.options||{};o.queryCount++,o.currentQuery=l;const[p,D]=function od(h){const l=!!h.split(/\s*,\s*/).find(o=>":self"==o);return l&&(h=h.replace(Zu,"")),h=h.replace(/@\*/g,ba).replace(/@\w+/g,o=>ba+"-"+o.slice(1)).replace(/:animating/g,Ql),[h,l]}(l.selector);o.currentQuerySelector=c.length?c+" "+p:p,no(o.collectedStyles,o.currentQuerySelector,new Map);const G=Ui(this,Ss(l.animation),o);return o.currentQuery=null,o.currentQuerySelector=c,{type:11,selector:p,limit:u.limit||0,optional:!!u.optional,includeSelf:D,animation:G,originalSelector:l.selector,options:bi(l.options)}}visitStagger(l,o){o.currentQuery||o.errors.push(function bc(){return new i.vHH(3013,!1)}());const c="full"===l.timings?{duration:0,delay:0,easing:"full"}:yc(l.timings,o.errors,!0);return{type:12,animation:Ui(this,Ss(l.animation),o),timings:c,options:null}}}class Pm{constructor(l){this.errors=l,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 bi(h){return h?(h=Gr(h)).params&&(h.params=function Ec(h){return h?Gr(h):null}(h.params)):h={},h}function mr(h,l,o){return{duration:h,delay:l,easing:o}}function xa(h,l,o,c,u,p,D=null,G=!1){return{type:1,element:h,keyframes:l,preStyleProps:o,postStyleProps:c,duration:u,delay:p,totalTime:u+p,easing:D,subTimeline:G}}class Sc{constructor(){this._map=new Map}get(l){return this._map.get(l)||[]}append(l,o){let c=this._map.get(l);c||this._map.set(l,c=[]),c.push(...o)}has(l){return this._map.has(l)}clear(){this._map.clear()}}const Ps=new RegExp(":enter","g"),Fm=new RegExp(":leave","g");function sd(h,l,o,c,u,p=new Map,D=new Map,G,fe,we=[]){return(new ad).buildKeyframes(h,l,o,c,u,p,D,G,fe,we)}class ad{buildKeyframes(l,o,c,u,p,D,G,fe,we,Le=[]){we=we||new Sc;const Ye=new Ta(l,o,we,u,p,Le,[]);Ye.options=fe;const dt=fe.delay?Ko(fe.delay):0;Ye.currentTimeline.delayNextStep(dt),Ye.currentTimeline.setStyles([D],null,Ye.errors,fe),Ui(this,c,Ye);const mt=Ye.timelines.filter(gt=>gt.containsAnimation());if(mt.length&&G.size){let gt;for(let bt=mt.length-1;bt>=0;bt--){const zt=mt[bt];if(zt.element===o){gt=zt;break}}gt&&!gt.allowOnlyTimelineStyles()&&gt.setStyles([G],null,Ye.errors,fe)}return mt.length?mt.map(gt=>gt.buildKeyframes()):[xa(o,[],[],[],0,dt,"",!1)]}visitTrigger(l,o){}visitState(l,o){}visitTransition(l,o){}visitAnimateChild(l,o){const c=o.subInstructions.get(o.element);if(c){const u=o.createSubContext(l.options),p=o.currentTimeline.currentTime,D=this._visitSubInstructions(c,u,u.options);p!=D&&o.transformIntoNewTimeline(D)}o.previousNode=l}visitAnimateRef(l,o){const c=o.createSubContext(l.options);c.transformIntoNewTimeline(),this._applyAnimationRefDelays([l.options,l.animation.options],o,c),this.visitReference(l.animation,c),o.transformIntoNewTimeline(c.currentTimeline.currentTime),o.previousNode=l}_applyAnimationRefDelays(l,o,c){for(const u of l){const p=u?.delay;if(p){const D="number"==typeof p?p:Ko(wa(p,u?.params??{},o.errors));c.delayNextStep(D)}}}_visitSubInstructions(l,o,c){let p=o.currentTimeline.currentTime;const D=null!=c.duration?Ko(c.duration):null,G=null!=c.delay?Ko(c.delay):null;return 0!==D&&l.forEach(fe=>{const we=o.appendInstructionToTimeline(fe,D,G);p=Math.max(p,we.duration+we.delay)}),p}visitReference(l,o){o.updateOptions(l.options,!0),Ui(this,l.animation,o),o.previousNode=l}visitSequence(l,o){const c=o.subContextCount;let u=o;const p=l.options;if(p&&(p.params||p.delay)&&(u=o.createSubContext(p),u.transformIntoNewTimeline(),null!=p.delay)){6==u.previousNode.type&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Ac);const D=Ko(p.delay);u.delayNextStep(D)}l.steps.length&&(l.steps.forEach(D=>Ui(this,D,u)),u.currentTimeline.applyStylesToKeyframe(),u.subContextCount>c&&u.transformIntoNewTimeline()),o.previousNode=l}visitGroup(l,o){const c=[];let u=o.currentTimeline.currentTime;const p=l.options&&l.options.delay?Ko(l.options.delay):0;l.steps.forEach(D=>{const G=o.createSubContext(l.options);p&&G.delayNextStep(p),Ui(this,D,G),u=Math.max(u,G.currentTimeline.currentTime),c.push(G.currentTimeline)}),c.forEach(D=>o.currentTimeline.mergeTimelineCollectedStyles(D)),o.transformIntoNewTimeline(u),o.previousNode=l}_visitTiming(l,o){if(l.dynamic){const c=l.strValue;return yc(o.params?wa(c,o.params,o.errors):c,o.errors)}return{duration:l.duration,delay:l.delay,easing:l.easing}}visitAnimate(l,o){const c=o.currentAnimateTimings=this._visitTiming(l.timings,o),u=o.currentTimeline;c.delay&&(o.incrementTime(c.delay),u.snapshotCurrentStyles());const p=l.style;5==p.type?this.visitKeyframes(p,o):(o.incrementTime(c.duration),this.visitStyle(p,o),u.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=l}visitStyle(l,o){const c=o.currentTimeline,u=o.currentAnimateTimings;!u&&c.hasCurrentStyleProperties()&&c.forwardFrame();const p=u&&u.easing||l.easing;l.isEmptyStep?c.applyEmptyStep(p):c.setStyles(l.styles,p,o.errors,o.options),o.previousNode=l}visitKeyframes(l,o){const c=o.currentAnimateTimings,u=o.currentTimeline.duration,p=c.duration,G=o.createSubContext().currentTimeline;G.easing=c.easing,l.styles.forEach(fe=>{G.forwardTime((fe.offset||0)*p),G.setStyles(fe.styles,fe.easing,o.errors,o.options),G.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(G),o.transformIntoNewTimeline(u+p),o.previousNode=l}visitQuery(l,o){const c=o.currentTimeline.currentTime,u=l.options||{},p=u.delay?Ko(u.delay):0;p&&(6===o.previousNode.type||0==c&&o.currentTimeline.hasCurrentStyleProperties())&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ac);let D=c;const G=o.invokeQuery(l.selector,l.originalSelector,l.limit,l.includeSelf,!!u.optional,o.errors);o.currentQueryTotal=G.length;let fe=null;G.forEach((we,Le)=>{o.currentQueryIndex=Le;const Ye=o.createSubContext(l.options,we);p&&Ye.delayNextStep(p),we===o.element&&(fe=Ye.currentTimeline),Ui(this,l.animation,Ye),Ye.currentTimeline.applyStylesToKeyframe(),D=Math.max(D,Ye.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(D),fe&&(o.currentTimeline.mergeTimelineCollectedStyles(fe),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=l}visitStagger(l,o){const c=o.parentContext,u=o.currentTimeline,p=l.timings,D=Math.abs(p.duration),G=D*(o.currentQueryTotal-1);let fe=D*o.currentQueryIndex;switch(p.duration<0?"reverse":p.easing){case"reverse":fe=G-fe;break;case"full":fe=c.currentStaggerTime}const Le=o.currentTimeline;fe&&Le.delayNextStep(fe);const Ye=Le.currentTime;Ui(this,l.animation,o),o.previousNode=l,c.currentStaggerTime=u.currentTime-Ye+(u.startTime-c.currentTimeline.startTime)}}const Ac={};class Ta{constructor(l,o,c,u,p,D,G,fe){this._driver=l,this.element=o,this.subInstructions=c,this._enterClassName=u,this._leaveClassName=p,this.errors=D,this.timelines=G,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ac,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=fe||new Da(this._driver,o,0),G.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(l,o){if(!l)return;const c=l;let u=this.options;null!=c.duration&&(u.duration=Ko(c.duration)),null!=c.delay&&(u.delay=Ko(c.delay));const p=c.params;if(p){let D=u.params;D||(D=this.options.params={}),Object.keys(p).forEach(G=>{(!o||!D.hasOwnProperty(G))&&(D[G]=wa(p[G],D,this.errors))})}}_copyOptions(){const l={};if(this.options){const o=this.options.params;if(o){const c=l.params={};Object.keys(o).forEach(u=>{c[u]=o[u]})}}return l}createSubContext(l=null,o,c){const u=o||this.element,p=new Ta(this._driver,u,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(u,c||0));return p.previousNode=this.previousNode,p.currentAnimateTimings=this.currentAnimateTimings,p.options=this._copyOptions(),p.updateOptions(l),p.currentQueryIndex=this.currentQueryIndex,p.currentQueryTotal=this.currentQueryTotal,p.parentContext=this,this.subContextCount++,p}transformIntoNewTimeline(l){return this.previousNode=Ac,this.currentTimeline=this.currentTimeline.fork(this.element,l),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(l,o,c){const u={duration:o??l.duration,delay:this.currentTimeline.currentTime+(c??0)+l.delay,easing:""},p=new Nm(this._driver,l.element,l.keyframes,l.preStyleProps,l.postStyleProps,u,l.stretchStartingKeyframe);return this.timelines.push(p),u}incrementTime(l){this.currentTimeline.forwardTime(this.currentTimeline.duration+l)}delayNextStep(l){l>0&&this.currentTimeline.delayNextStep(l)}invokeQuery(l,o,c,u,p,D){let G=[];if(u&&G.push(this.element),l.length>0){l=(l=l.replace(Ps,"."+this._enterClassName)).replace(Fm,"."+this._leaveClassName);let we=this._driver.query(this.element,l,1!=c);0!==c&&(we=c<0?we.slice(we.length+c,we.length):we.slice(0,c)),G.push(...we)}return!p&&0==G.length&&D.push(function $r(h){return new i.vHH(3014,!1)}()),G}}class Da{constructor(l,o,c,u){this._driver=l,this.element=o,this.startTime=c,this._elementTimelineStylesLookup=u,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(l){const o=1===this._keyframes.size&&this._pendingStyles.size;this.duration||o?(this.forwardTime(this.currentTime+l),o&&this.snapshotCurrentStyles()):this.startTime+=l}fork(l,o){return this.applyStylesToKeyframe(),new Da(this._driver,l,o||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(l){this.applyStylesToKeyframe(),this.duration=l,this._loadKeyframe()}_updateStyle(l,o){this._localTimelineStyles.set(l,o),this._globalTimelineStyles.set(l,o),this._styleSummary.set(l,{time:this.currentTime,value:o})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(l){l&&this._previousKeyframe.set("easing",l);for(let[o,c]of this._globalTimelineStyles)this._backFill.set(o,c||ce.l3),this._currentKeyframe.set(o,ce.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(l,o,c,u){o&&this._previousKeyframe.set("easing",o);const p=u&&u.params||{},D=function Qu(h,l){const o=new Map;let c;return h.forEach(u=>{if("*"===u){c=c||l.keys();for(let p of c)o.set(p,ce.l3)}else hr(u,o)}),o}(l,this._globalTimelineStyles);for(let[G,fe]of D){const we=wa(fe,p,c);this._pendingStyles.set(G,we),this._localTimelineStyles.has(G)||this._backFill.set(G,this._globalTimelineStyles.get(G)??ce.l3),this._updateStyle(G,we)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((l,o)=>{this._currentKeyframe.set(o,l)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((l,o)=>{this._currentKeyframe.has(o)||this._currentKeyframe.set(o,l)}))}snapshotCurrentStyles(){for(let[l,o]of this._localTimelineStyles)this._pendingStyles.set(l,o),this._updateStyle(l,o)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const l=[];for(let o in this._currentKeyframe)l.push(o);return l}mergeTimelineCollectedStyles(l){l._styleSummary.forEach((o,c)=>{const u=this._styleSummary.get(c);(!u||o.time>u.time)&&this._updateStyle(c,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const l=new Set,o=new Set,c=1===this._keyframes.size&&0===this.duration;let u=[];this._keyframes.forEach((G,fe)=>{const we=hr(G,new Map,this._backFill);we.forEach((Le,Ye)=>{Le===ce.k1?l.add(Ye):Le===ce.l3&&o.add(Ye)}),c||we.set("offset",fe/this.duration),u.push(we)});const p=l.size?wc(l.values()):[],D=o.size?wc(o.values()):[];if(c){const G=u[0],fe=new Map(G);G.set("offset",0),fe.set("offset",1),u=[G,fe]}return xa(this.element,u,p,D,this.duration,this.startTime,this.easing,!1)}}class Nm extends Da{constructor(l,o,c,u,p,D,G=!1){super(l,o,D.delay),this.keyframes=c,this.preStyleProps=u,this.postStyleProps=p,this._stretchStartingKeyframe=G,this.timings={duration:D.duration,delay:D.delay,easing:D.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let l=this.keyframes,{delay:o,duration:c,easing:u}=this.timings;if(this._stretchStartingKeyframe&&o){const p=[],D=c+o,G=o/D,fe=hr(l[0]);fe.set("offset",0),p.push(fe);const we=hr(l[0]);we.set("offset",Ju(G)),p.push(we);const Le=l.length-1;for(let Ye=1;Ye<=Le;Ye++){let dt=hr(l[Ye]);const mt=dt.get("offset");dt.set("offset",Ju((o+mt*c)/D)),p.push(dt)}c=D,o=0,u="",l=p}return xa(this.element,l,this.preStyleProps,this.postStyleProps,c,o,u,!0)}}function Ju(h,l=3){const o=Math.pow(10,l-1);return Math.round(h*o)/o}function Xu(h,l,o,c,u,p,D,G,fe,we,Le,Ye,dt){return{type:0,element:h,triggerName:l,isRemovalTransition:u,fromState:o,fromStyles:p,toState:c,toStyles:D,timelines:G,queriedElements:fe,preStyleProps:we,postStyleProps:Le,totalTime:Ye,errors:dt}}const Ic={};class eh{constructor(l,o,c){this._triggerName=l,this.ast=o,this._stateStyles=c}match(l,o,c,u){return function Z_(h,l,o,c,u){return h.some(p=>p(l,o,c,u))}(this.ast.matchers,l,o,c,u)}buildStyles(l,o,c){let u=this._stateStyles.get("*");return void 0!==l&&(u=this._stateStyles.get(l?.toString())||u),u?u.buildStyles(o,c):new Map}build(l,o,c,u,p,D,G,fe,we,Le){const Ye=[],dt=this.ast.options&&this.ast.options.params||Ic,gt=this.buildStyles(c,G&&G.params||Ic,Ye),bt=fe&&fe.params||Ic,zt=this.buildStyles(u,bt,Ye),kn=new Set,Ln=new Map,si=new Map,Bn="void"===u,_r={params:th(bt,dt),delay:this.ast.options?.delay},oo=Le?[]:sd(l,o,this.ast.animation,p,D,gt,zt,_r,we,Ye);let ai=0;if(oo.forEach(vo=>{ai=Math.max(vo.duration+vo.delay,ai)}),Ye.length)return Xu(o,this._triggerName,c,u,Bn,gt,zt,[],[],Ln,si,ai,Ye);oo.forEach(vo=>{const zi=vo.element,Wh=no(Ln,zi,new Set);vo.preStyleProps.forEach(Xr=>Wh.add(Xr));const Vs=no(si,zi,new Set);vo.postStyleProps.forEach(Xr=>Vs.add(Xr)),zi!==o&&kn.add(zi)});const br=wc(kn.values());return Xu(o,this._triggerName,c,u,Bn,gt,zt,oo,br,Ln,si,ai)}}function th(h,l){const o=Gr(l);for(const c in h)h.hasOwnProperty(c)&&null!=h[c]&&(o[c]=h[c]);return o}class nh{constructor(l,o,c){this.styles=l,this.defaultParams=o,this.normalizer=c}buildStyles(l,o){const c=new Map,u=Gr(this.defaultParams);return Object.keys(l).forEach(p=>{const D=l[p];null!==D&&(u[p]=D)}),this.styles.styles.forEach(p=>{"string"!=typeof p&&p.forEach((D,G)=>{D&&(D=wa(D,u,o));const fe=this.normalizer.normalizePropertyName(G,o);D=this.normalizer.normalizeStyleValue(G,fe,D,o),c.set(G,D)})}),c}}class cd{constructor(l,o,c){this.name=l,this.ast=o,this._normalizer=c,this.transitionFactories=[],this.states=new Map,o.states.forEach(u=>{this.states.set(u.name,new nh(u.style,u.options&&u.options.params||{},c))}),Ea(this.states,"true","1"),Ea(this.states,"false","0"),o.transitions.forEach(u=>{this.transitionFactories.push(new eh(l,u,this.states))}),this.fallbackTransition=function Kr(h,l,o){return new eh(h,{type:1,animation:{type:2,steps:[],options:null},matchers:[(D,G)=>!0],options:null,queryCount:0,depCount:0},l)}(l,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(l,o,c,u){return this.transitionFactories.find(D=>D.match(l,o,c,u))||null}matchStyles(l,o,c){return this.fallbackTransition.buildStyles(l,o,c)}}function Ea(h,l,o){h.has(l)?h.has(o)||h.set(o,h.get(l)):h.has(o)&&h.set(l,h.get(o))}const ih=new Sc;class Ma{constructor(l,o,c){this.bodyNode=l,this._driver=o,this._normalizer=c,this._animations=new Map,this._playersById=new Map,this.players=[]}register(l,o){const c=[],p=Dc(this._driver,o,c,[]);if(c.length)throw function _m(h){return new i.vHH(3503,!1)}();this._animations.set(l,p)}_buildPlayer(l,o,c){const u=l.element,p=Nu(this._normalizer,l.keyframes,o,c);return this._driver.animate(u,p,l.duration,l.delay,l.easing,[],!0)}create(l,o,c={}){const u=[],p=this._animations.get(l);let D;const G=new Map;if(p?(D=sd(this._driver,o,p,_a,Yo,new Map,new Map,c,ih,u),D.forEach(Le=>{const Ye=no(G,Le.element,new Map);Le.postStyleProps.forEach(dt=>Ye.set(dt,null))})):(u.push(function Ru(){return new i.vHH(3300,!1)}()),D=[]),u.length)throw function Kl(h){return new i.vHH(3504,!1)}();G.forEach((Le,Ye)=>{Le.forEach((dt,mt)=>{Le.set(mt,this._driver.computeStyle(Ye,mt,ce.l3))})});const we=jr(D.map(Le=>{const Ye=G.get(Le.element);return this._buildPlayer(Le,new Map,Ye)}));return this._playersById.set(l,we),we.onDestroy(()=>this.destroy(l)),this.players.push(we),we}destroy(l){const o=this._getPlayer(l);o.destroy(),this._playersById.delete(l);const c=this.players.indexOf(o);c>=0&&this.players.splice(c,1)}_getPlayer(l){const o=this._playersById.get(l);if(!o)throw function bm(h){return new i.vHH(3301,!1)}();return o}listen(l,o,c,u){const p=Vu(o,"","","");return Lu(this._getPlayer(l),c,p,u),()=>{}}command(l,o,c,u){if("register"==c)return void this.register(l,u[0]);if("create"==c)return void this.create(l,o,u[0]||{});const p=this._getPlayer(l);switch(c){case"play":p.play();break;case"pause":p.pause();break;case"reset":p.reset();break;case"restart":p.restart();break;case"finish":p.finish();break;case"init":p.init();break;case"setPosition":p.setPosition(parseFloat(u[0]));break;case"destroy":this.destroy(l)}}}const oh="ng-animate-queued",Sa="ng-animate-disabled",Vm=[],ld={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},dd={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ko="__ng_removed";class ud{get params(){return this.options.params}constructor(l,o=""){this.namespaceId=o;const c=l&&l.hasOwnProperty("value");if(this.value=function ks(h){return h??null}(c?l.value:l),c){const p=Gr(l);delete p.value,this.options=p}else this.options={};this.options.params||(this.options.params={})}absorbOptions(l){const o=l.params;if(o){const c=this.options.params;Object.keys(o).forEach(u=>{null==c[u]&&(c[u]=o[u])})}}}const Aa="void",hd=new ud(Aa);class $m{constructor(l,o,c){this.id=l,this.hostElement=o,this._engine=c,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+l,yi(o,this._hostClassName)}listen(l,o,c,u){if(!this._triggers.has(o))throw function Fu(h,l){return new i.vHH(3302,!1)}();if(null==c||0==c.length)throw function Zl(h){return new i.vHH(3303,!1)}();if(!function gr(h){return"start"==h||"done"==h}(c))throw function xs(h,l){return new i.vHH(3400,!1)}();const p=no(this._elementListeners,l,[]),D={name:o,phase:c,callback:u};p.push(D);const G=no(this._engine.statesByElement,l,new Map);return G.has(o)||(yi(l,Jl),yi(l,Jl+"-"+o),G.set(o,hd)),()=>{this._engine.afterFlush(()=>{const fe=p.indexOf(D);fe>=0&&p.splice(fe,1),this._triggers.has(o)||G.delete(o)})}}register(l,o){return!this._triggers.has(l)&&(this._triggers.set(l,o),!0)}_getTrigger(l){const o=this._triggers.get(l);if(!o)throw function Ts(h){return new i.vHH(3401,!1)}();return o}trigger(l,o,c,u=!0){const p=this._getTrigger(o),D=new fd(this.id,o,l);let G=this._engine.statesByElement.get(l);G||(yi(l,Jl),yi(l,Jl+"-"+o),this._engine.statesByElement.set(l,G=new Map));let fe=G.get(o);const we=new ud(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&fe&&we.absorbOptions(fe.options),G.set(o,we),fe||(fe=hd),we.value!==Aa&&fe.value===we.value){if(!function lh(h,l){const o=Object.keys(h),c=Object.keys(l);if(o.length!=c.length)return!1;for(let u=0;u<o.length;u++){const p=o[u];if(!l.hasOwnProperty(p)||h[p]!==l[p])return!1}return!0}(fe.params,we.params)){const bt=[],zt=p.matchStyles(fe.value,fe.params,bt),kn=p.matchStyles(we.value,we.params,bt);bt.length?this._engine.reportError(bt):this._engine.afterFlush(()=>{Wr(l,zt),Hi(l,kn)})}return}const dt=no(this._engine.playersByElement,l,[]);dt.forEach(bt=>{bt.namespaceId==this.id&&bt.triggerName==o&&bt.queued&&bt.destroy()});let mt=p.matchTransition(fe.value,we.value,l,we.params),gt=!1;if(!mt){if(!u)return;mt=p.fallbackTransition,gt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:o,transition:mt,fromState:fe,toState:we,player:D,isFallbackTransition:gt}),gt||(yi(l,oh),D.onStart(()=>{Ia(l,oh)})),D.onDone(()=>{let bt=this.players.indexOf(D);bt>=0&&this.players.splice(bt,1);const zt=this._engine.playersByElement.get(l);if(zt){let kn=zt.indexOf(D);kn>=0&&zt.splice(kn,1)}}),this.players.push(D),dt.push(D),D}deregister(l){this._triggers.delete(l),this._engine.statesByElement.forEach(o=>o.delete(l)),this._elementListeners.forEach((o,c)=>{this._elementListeners.set(c,o.filter(u=>u.name!=l))})}clearElementCache(l){this._engine.statesByElement.delete(l),this._elementListeners.delete(l);const o=this._engine.playersByElement.get(l);o&&(o.forEach(c=>c.destroy()),this._engine.playersByElement.delete(l))}_signalRemovalForInnerTriggers(l,o){const c=this._engine.driver.query(l,ba,!0);c.forEach(u=>{if(u[ko])return;const p=this._engine.fetchNamespacesByElement(u);p.size?p.forEach(D=>D.triggerLeaveAnimation(u,o,!1,!0)):this.clearElementCache(u)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(u=>this.clearElementCache(u)))}triggerLeaveAnimation(l,o,c,u){const p=this._engine.statesByElement.get(l),D=new Map;if(p){const G=[];if(p.forEach((fe,we)=>{if(D.set(we,fe.value),this._triggers.has(we)){const Le=this.trigger(l,we,Aa,u);Le&&G.push(Le)}}),G.length)return this._engine.markElementAsRemoved(this.id,l,!0,o,D),c&&jr(G).onDone(()=>this._engine.processLeaveNode(l)),!0}return!1}prepareLeaveAnimationListeners(l){const o=this._elementListeners.get(l),c=this._engine.statesByElement.get(l);if(o&&c){const u=new Set;o.forEach(p=>{const D=p.name;if(u.has(D))return;u.add(D);const fe=this._triggers.get(D).fallbackTransition,we=c.get(D)||hd,Le=new ud(Aa),Ye=new fd(this.id,D,l);this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:D,transition:fe,fromState:we,toState:Le,player:Ye,isFallbackTransition:!0})})}}removeNode(l,o){const c=this._engine;if(l.childElementCount&&this._signalRemovalForInnerTriggers(l,o),this.triggerLeaveAnimation(l,o,!0))return;let u=!1;if(c.totalAnimations){const p=c.players.length?c.playersByQueriedElement.get(l):[];if(p&&p.length)u=!0;else{let D=l;for(;D=D.parentNode;)if(c.statesByElement.get(D)){u=!0;break}}}if(this.prepareLeaveAnimationListeners(l),u)c.markElementAsRemoved(this.id,l,!1,o);else{const p=l[ko];(!p||p===ld)&&(c.afterFlush(()=>this.clearElementCache(l)),c.destroyInnerAnimations(l),c._onRemovalComplete(l,o))}}insertNode(l,o){yi(l,this._hostClassName)}drainQueuedTransitions(l){const o=[];return this._queue.forEach(c=>{const u=c.player;if(u.destroyed)return;const p=c.element,D=this._elementListeners.get(p);D&&D.forEach(G=>{if(G.name==c.triggerName){const fe=Vu(p,c.triggerName,c.fromState.value,c.toState.value);fe._data=l,Lu(c.player,G.phase,fe,G.callback)}}),u.markedForDestroy?this._engine.afterFlush(()=>{u.destroy()}):o.push(c)}),this._queue=[],o.sort((c,u)=>{const p=c.transition.ast.depCount,D=u.transition.ast.depCount;return 0==p||0==D?p-D:this._engine.driver.containsElement(c.element,u.element)?1:-1})}destroy(l){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,l)}}class jm{_onRemovalComplete(l,o){this.onRemovalComplete(l,o)}constructor(l,o,c){this.bodyNode=l,this.driver=o,this._normalizer=c,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=(u,p)=>{}}get queuedPlayers(){const l=[];return this._namespaceList.forEach(o=>{o.players.forEach(c=>{c.queued&&l.push(c)})}),l}createNamespace(l,o){const c=new $m(l,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(c,o):(this.newHostElements.set(o,c),this.collectEnterElement(o)),this._namespaceLookup[l]=c}_balanceNamespaceList(l,o){const c=this._namespaceList,u=this.namespacesByHostElement;if(c.length-1>=0){let D=!1,G=this.driver.getParentElement(o);for(;G;){const fe=u.get(G);if(fe){const we=c.indexOf(fe);c.splice(we+1,0,l),D=!0;break}G=this.driver.getParentElement(G)}D||c.unshift(l)}else c.push(l);return u.set(o,l),l}register(l,o){let c=this._namespaceLookup[l];return c||(c=this.createNamespace(l,o)),c}registerTrigger(l,o,c){let u=this._namespaceLookup[l];u&&u.register(o,c)&&this.totalAnimations++}destroy(l,o){l&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const c=this._fetchNamespace(l);this.namespacesByHostElement.delete(c.hostElement);const u=this._namespaceList.indexOf(c);u>=0&&this._namespaceList.splice(u,1),c.destroy(o),delete this._namespaceLookup[l]}))}_fetchNamespace(l){return this._namespaceLookup[l]}fetchNamespacesByElement(l){const o=new Set,c=this.statesByElement.get(l);if(c)for(let u of c.values())if(u.namespaceId){const p=this._fetchNamespace(u.namespaceId);p&&o.add(p)}return o}trigger(l,o,c,u){if(vi(o)){const p=this._fetchNamespace(l);if(p)return p.trigger(o,c,u),!0}return!1}insertNode(l,o,c,u){if(!vi(o))return;const p=o[ko];if(p&&p.setForRemoval){p.setForRemoval=!1,p.setForMove=!0;const D=this.collectedLeaveElements.indexOf(o);D>=0&&this.collectedLeaveElements.splice(D,1)}if(l){const D=this._fetchNamespace(l);D&&D.insertNode(o,c)}u&&this.collectEnterElement(o)}collectEnterElement(l){this.collectedEnterElements.push(l)}markElementAsDisabled(l,o){o?this.disabledNodes.has(l)||(this.disabledNodes.add(l),yi(l,Sa)):this.disabledNodes.has(l)&&(this.disabledNodes.delete(l),Ia(l,Sa))}removeNode(l,o,c){if(vi(o)){const u=l?this._fetchNamespace(l):null;u?u.removeNode(o,c):this.markElementAsRemoved(l,o,!1,c);const p=this.namespacesByHostElement.get(o);p&&p.id!==l&&p.removeNode(o,c)}else this._onRemovalComplete(o,c)}markElementAsRemoved(l,o,c,u,p){this.collectedLeaveElements.push(o),o[ko]={namespaceId:l,setForRemoval:u,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:p}}listen(l,o,c,u,p){return vi(o)?this._fetchNamespace(l).listen(o,c,u,p):()=>{}}_buildInstruction(l,o,c,u,p){return l.transition.build(this.driver,l.element,l.fromState.value,l.toState.value,c,u,l.fromState.options,l.toState.options,o,p)}destroyInnerAnimations(l){let o=this.driver.query(l,ba,!0);o.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(l,Ql,!0),o.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(l){const o=this.playersByElement.get(l);o&&o.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(l){const o=this.playersByQueriedElement.get(l);o&&o.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(l=>{if(this.players.length)return jr(this.players).onDone(()=>l());l()})}processLeaveNode(l){const o=l[ko];if(o&&o.setForRemoval){if(l[ko]=ld,o.namespaceId){this.destroyInnerAnimations(l);const c=this._fetchNamespace(o.namespaceId);c&&c.clearElementCache(l)}this._onRemovalComplete(l,o.setForRemoval)}l.classList?.contains(Sa)&&this.markElementAsDisabled(l,!1),this.driver.query(l,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(l=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,u)=>this._balanceNamespaceList(c,u)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;c<this.collectedEnterElements.length;c++)yi(this.collectedEnterElements[c],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const c=[];try{o=this._flushAnimations(c,l)}finally{for(let u=0;u<c.length;u++)c[u]()}}else for(let c=0;c<this.collectedLeaveElements.length;c++)this.processLeaveNode(this.collectedLeaveElements[c]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(c=>c()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],o.length?jr(o).onDone(()=>{c.forEach(u=>u())}):c.forEach(u=>u())}}reportError(l){throw function Ds(h){return new i.vHH(3402,!1)}()}_flushAnimations(l,o){const c=new Sc,u=[],p=new Map,D=[],G=new Map,fe=new Map,we=new Map,Le=new Set;this.disabledNodes.forEach(It=>{Le.add(It);const Nt=this.driver.query(It,".ng-animate-queued",!0);for(let jt=0;jt<Nt.length;jt++)Le.add(Nt[jt])});const Ye=this.bodyNode,dt=Array.from(this.statesByElement.keys()),mt=Zo(dt,this.collectedEnterElements),gt=new Map;let bt=0;mt.forEach((It,Nt)=>{const jt=_a+bt++;gt.set(Nt,jt),It.forEach(pn=>yi(pn,jt))});const zt=[],kn=new Set,Ln=new Set;for(let It=0;It<this.collectedLeaveElements.length;It++){const Nt=this.collectedLeaveElements[It],jt=Nt[ko];jt&&jt.setForRemoval&&(zt.push(Nt),kn.add(Nt),jt.hasAnimation?this.driver.query(Nt,".ng-star-inserted",!0).forEach(pn=>kn.add(pn)):Ln.add(Nt))}const si=new Map,Bn=Zo(dt,Array.from(kn));Bn.forEach((It,Nt)=>{const jt=Yo+bt++;si.set(Nt,jt),It.forEach(pn=>yi(pn,jt))}),l.push(()=>{mt.forEach((It,Nt)=>{const jt=gt.get(Nt);It.forEach(pn=>Ia(pn,jt))}),Bn.forEach((It,Nt)=>{const jt=si.get(Nt);It.forEach(pn=>Ia(pn,jt))}),zt.forEach(It=>{this.processLeaveNode(It)})});const _r=[],oo=[];for(let It=this._namespaceList.length-1;It>=0;It--)this._namespaceList[It].drainQueuedTransitions(o).forEach(jt=>{const pn=jt.player,ci=jt.element;if(_r.push(pn),this.collectedEnterElements.length){const Ci=ci[ko];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(jt.triggerName)){const yr=Ci.previousTriggersValues.get(jt.triggerName),ro=this.statesByElement.get(jt.element);if(ro&&ro.has(jt.triggerName)){const Ha=ro.get(jt.triggerName);Ha.value=yr,ro.set(jt.triggerName,Ha)}}return void pn.destroy()}}const Gi=!Ye||!this.driver.containsElement(Ye,ci),Ei=si.get(ci),vr=gt.get(ci),Rn=this._buildInstruction(jt,c,vr,Ei,Gi);if(Rn.errors&&Rn.errors.length)return void oo.push(Rn);if(Gi)return pn.onStart(()=>Wr(ci,Rn.fromStyles)),pn.onDestroy(()=>Hi(ci,Rn.toStyles)),void u.push(pn);if(jt.isFallbackTransition)return pn.onStart(()=>Wr(ci,Rn.fromStyles)),pn.onDestroy(()=>Hi(ci,Rn.toStyles)),void u.push(pn);const Kc=[];Rn.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||Kc.push(Ci)}),Rn.timelines=Kc,c.append(ci,Rn.timelines),D.push({instruction:Rn,player:pn,element:ci}),Rn.queriedElements.forEach(Ci=>no(G,Ci,[]).push(pn)),Rn.preStyleProps.forEach((Ci,yr)=>{if(Ci.size){let ro=fe.get(yr);ro||fe.set(yr,ro=new Set),Ci.forEach((Ha,Kh)=>ro.add(Kh))}}),Rn.postStyleProps.forEach((Ci,yr)=>{let ro=we.get(yr);ro||we.set(yr,ro=new Set),Ci.forEach((Ha,Kh)=>ro.add(Kh))})});if(oo.length){const It=[];oo.forEach(Nt=>{It.push(function ql(h,l){return new i.vHH(3505,!1)}())}),_r.forEach(Nt=>Nt.destroy()),this.reportError(It)}const ai=new Map,br=new Map;D.forEach(It=>{const Nt=It.element;c.has(Nt)&&(br.set(Nt,Nt),this._beforeAnimationBuild(It.player.namespaceId,It.instruction,ai))}),u.forEach(It=>{const Nt=It.element;this._getPreviousPlayers(Nt,!1,It.namespaceId,It.triggerName,null).forEach(pn=>{no(ai,Nt,[]).push(pn),pn.destroy()})});const vo=zt.filter(It=>Hm(It,fe,we)),zi=new Map;md(zi,this.driver,Ln,we,ce.l3).forEach(It=>{Hm(It,fe,we)&&vo.push(It)});const Vs=new Map;mt.forEach((It,Nt)=>{md(Vs,this.driver,new Set(It),fe,ce.k1)}),vo.forEach(It=>{const Nt=zi.get(It),jt=Vs.get(It);zi.set(It,new Map([...Nt?.entries()??[],...jt?.entries()??[]]))});const Xr=[],Yh=[],Yc={};D.forEach(It=>{const{element:Nt,player:jt,instruction:pn}=It;if(c.has(Nt)){if(Le.has(Nt))return jt.onDestroy(()=>Hi(Nt,pn.toStyles)),jt.disabled=!0,jt.overrideTotalTime(pn.totalTime),void u.push(jt);let ci=Yc;if(br.size>1){let Ei=Nt;const vr=[];for(;Ei=Ei.parentNode;){const Rn=br.get(Ei);if(Rn){ci=Rn;break}vr.push(Ei)}vr.forEach(Rn=>br.set(Rn,ci))}const Gi=this._buildAnimation(jt.namespaceId,pn,ai,p,Vs,zi);if(jt.setRealPlayer(Gi),ci===Yc)Xr.push(jt);else{const Ei=this.playersByElement.get(ci);Ei&&Ei.length&&(jt.parentPlayer=jr(Ei)),u.push(jt)}}else Wr(Nt,pn.fromStyles),jt.onDestroy(()=>Hi(Nt,pn.toStyles)),Yh.push(jt),Le.has(Nt)&&u.push(jt)}),Yh.forEach(It=>{const Nt=p.get(It.element);if(Nt&&Nt.length){const jt=jr(Nt);It.setRealPlayer(jt)}}),u.forEach(It=>{It.parentPlayer?It.syncPlayerEvents(It.parentPlayer):It.destroy()});for(let It=0;It<zt.length;It++){const Nt=zt[It],jt=Nt[ko];if(Ia(Nt,Yo),jt&&jt.hasAnimation)continue;let pn=[];if(G.size){let Gi=G.get(Nt);Gi&&Gi.length&&pn.push(...Gi);let Ei=this.driver.query(Nt,Ql,!0);for(let vr=0;vr<Ei.length;vr++){let Rn=G.get(Ei[vr]);Rn&&Rn.length&&pn.push(...Rn)}}const ci=pn.filter(Gi=>!Gi.destroyed);ci.length?Pc(this,Nt,ci):this.processLeaveNode(Nt)}return zt.length=0,Xr.forEach(It=>{this.players.push(It),It.onDone(()=>{It.destroy();const Nt=this.players.indexOf(It);this.players.splice(Nt,1)}),It.play()}),Xr}afterFlush(l){this._flushFns.push(l)}afterFlushAnimationsDone(l){this._whenQuietFns.push(l)}_getPreviousPlayers(l,o,c,u,p){let D=[];if(o){const G=this.playersByQueriedElement.get(l);G&&(D=G)}else{const G=this.playersByElement.get(l);if(G){const fe=!p||p==Aa;G.forEach(we=>{we.queued||!fe&&we.triggerName!=u||D.push(we)})}}return(c||u)&&(D=D.filter(G=>!(c&&c!=G.namespaceId||u&&u!=G.triggerName))),D}_beforeAnimationBuild(l,o,c){const p=o.element,D=o.isRemovalTransition?void 0:l,G=o.isRemovalTransition?void 0:o.triggerName;for(const fe of o.timelines){const we=fe.element,Le=we!==p,Ye=no(c,we,[]);this._getPreviousPlayers(we,Le,D,G,o.toState).forEach(mt=>{const gt=mt.getRealPlayer();gt.beforeDestroy&&gt.beforeDestroy(),mt.destroy(),Ye.push(mt)})}Wr(p,o.fromStyles)}_buildAnimation(l,o,c,u,p,D){const G=o.triggerName,fe=o.element,we=[],Le=new Set,Ye=new Set,dt=o.timelines.map(gt=>{const bt=gt.element;Le.add(bt);const zt=bt[ko];if(zt&&zt.removedBeforeQueried)return new ce.ZN(gt.duration,gt.delay);const kn=bt!==fe,Ln=function ah(h){const l=[];return ch(h,l),l}((c.get(bt)||Vm).map(ai=>ai.getRealPlayer())).filter(ai=>!!ai.element&&ai.element===bt),si=p.get(bt),Bn=D.get(bt),_r=Nu(this._normalizer,gt.keyframes,si,Bn),oo=this._buildPlayer(gt,_r,Ln);if(gt.subTimeline&&u&&Ye.add(bt),kn){const ai=new fd(l,G,bt);ai.setRealPlayer(oo),we.push(ai)}return oo});we.forEach(gt=>{no(this.playersByQueriedElement,gt.element,[]).push(gt),gt.onDone(()=>function sh(h,l,o){let c=h.get(l);if(c){if(c.length){const u=c.indexOf(o);c.splice(u,1)}0==c.length&&h.delete(l)}return c}(this.playersByQueriedElement,gt.element,gt))}),Le.forEach(gt=>yi(gt,ju));const mt=jr(dt);return mt.onDestroy(()=>{Le.forEach(gt=>Ia(gt,ju)),Hi(fe,o.toStyles)}),Ye.forEach(gt=>{no(u,gt,[]).push(mt)}),mt}_buildPlayer(l,o,c){return o.length>0?this.driver.animate(l.element,o,l.duration,l.delay,l.easing,c):new ce.ZN(l.duration,l.delay)}}class fd{constructor(l,o,c){this.namespaceId=l,this.triggerName=o,this.element=c,this._player=new ce.ZN,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(l){this._containsRealPlayer||(this._player=l,this._queuedCallbacks.forEach((o,c)=>{o.forEach(u=>Lu(l,c,void 0,u))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(l.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(l){this.totalTime=l}syncPlayerEvents(l){const o=this._player;o.triggerCallback&&l.onStart(()=>o.triggerCallback("start")),l.onDone(()=>this.finish()),l.onDestroy(()=>this.destroy())}_queueEvent(l,o){no(this._queuedCallbacks,l,[]).push(o)}onDone(l){this.queued&&this._queueEvent("done",l),this._player.onDone(l)}onStart(l){this.queued&&this._queueEvent("start",l),this._player.onStart(l)}onDestroy(l){this.queued&&this._queueEvent("destroy",l),this._player.onDestroy(l)}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(l){this.queued||this._player.setPosition(l)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(l){const o=this._player;o.triggerCallback&&o.triggerCallback(l)}}function vi(h){return h&&1===h.nodeType}function Oc(h,l){const o=h.style.display;return h.style.display=l??"none",o}function md(h,l,o,c,u){const p=[];o.forEach(fe=>p.push(Oc(fe)));const D=[];c.forEach((fe,we)=>{const Le=new Map;fe.forEach(Ye=>{const dt=l.computeStyle(we,Ye,u);Le.set(Ye,dt),(!dt||0==dt.length)&&(we[ko]=dd,D.push(we))}),h.set(we,Le)});let G=0;return o.forEach(fe=>Oc(fe,p[G++])),D}function Zo(h,l){const o=new Map;if(h.forEach(G=>o.set(G,[])),0==l.length)return o;const u=new Set(l),p=new Map;function D(G){if(!G)return 1;let fe=p.get(G);if(fe)return fe;const we=G.parentNode;return fe=o.has(we)?we:u.has(we)?1:D(we),p.set(G,fe),fe}return l.forEach(G=>{const fe=D(G);1!==fe&&o.get(fe).push(G)}),o}function yi(h,l){h.classList?.add(l)}function Ia(h,l){h.classList?.remove(l)}function Pc(h,l,o){jr(o).onDone(()=>h.processLeaveNode(l))}function ch(h,l){for(let o=0;o<h.length;o++){const c=h[o];c instanceof ce.ZE?ch(c.players,l):l.push(c)}}function Hm(h,l,o){const c=o.get(h);if(!c)return!1;let u=l.get(h);return u?c.forEach(p=>u.add(p)):l.set(h,c),o.delete(h),!0}class Rs{constructor(l,o,c){this._driver=o,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(u,p)=>{},this._transitionEngine=new jm(l.body,o,c),this._timelineEngine=new Ma(l.body,o,c),this._transitionEngine.onRemovalComplete=(u,p)=>this.onRemovalComplete(u,p)}registerTrigger(l,o,c,u,p){const D=l+"-"+u;let G=this._triggerCache[D];if(!G){const fe=[],Le=Dc(this._driver,p,fe,[]);if(fe.length)throw function Cs(h,l){return new i.vHH(3404,!1)}();G=function io(h,l,o){return new cd(h,l,o)}(u,Le,this._normalizer),this._triggerCache[D]=G}this._transitionEngine.registerTrigger(o,u,G)}register(l,o){this._transitionEngine.register(l,o)}destroy(l,o){this._transitionEngine.destroy(l,o)}onInsert(l,o,c,u){this._transitionEngine.insertNode(l,o,c,u)}onRemove(l,o,c){this._transitionEngine.removeNode(l,o,c)}disableAnimations(l,o){this._transitionEngine.markElementAsDisabled(l,o)}process(l,o,c,u){if("@"==c.charAt(0)){const[p,D]=ym(c);this._timelineEngine.command(p,o,D,u)}else this._transitionEngine.trigger(l,o,c,u)}listen(l,o,c,u,p){if("@"==c.charAt(0)){const[D,G]=ym(c);return this._timelineEngine.listen(D,o,G,p)}return this._transitionEngine.listen(l,o,c,u,p)}flush(l=-1){this._transitionEngine.flush(l)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(l){this._transitionEngine.afterFlushAnimationsDone(l)}}let Um=(()=>{class h{static#e=this.initialStylesByElement=new WeakMap;constructor(o,c,u){this._element=o,this._startStyles=c,this._endStyles=u,this._state=0;let p=h.initialStylesByElement.get(o);p||h.initialStylesByElement.set(o,p=new Map),this._initialStyles=p}start(){this._state<1&&(this._startStyles&&Hi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Hi(this._element,this._initialStyles),this._endStyles&&(Hi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(h.initialStylesByElement.delete(this._element),this._startStyles&&(Wr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Wr(this._element,this._endStyles),this._endStyles=null),Hi(this._element,this._initialStyles),this._state=3)}}return h})();function pd(h){let l=null;return h.forEach((o,c)=>{(function gd(h){return"display"===h||"position"===h})(c)&&(l=l||new Map,l.set(c,o))}),l}class zm{constructor(l,o,c,u){this.element=l,this.keyframes=o,this.options=c,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const l=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,l,this.options),this._finalKeyframe=l.length?l[l.length-1]:new Map;const o=()=>this._onFinish();this.domPlayer.addEventListener("finish",o),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",o)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(l){const o=[];return l.forEach(c=>{o.push(Object.fromEntries(c))}),o}_triggerWebAnimation(l,o,c){return l.animate(this._convertKeyframesToObject(o),c)}onStart(l){this._originalOnStartFns.push(l),this._onStartFns.push(l)}onDone(l){this._originalOnDoneFns.push(l),this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(l=>l()),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(l=>l()),this._onDestroyFns=[])}setPosition(l){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=l*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const l=new Map;this.hasStarted()&&this._finalKeyframe.forEach((c,u)=>{"offset"!==u&&l.set(u,this._finished?c:Sm(this.element,u))}),this.currentSnapshot=l}triggerCallback(l){const o="start"===l?this._onStartFns:this._onDoneFns;o.forEach(c=>c()),o.length=0}}class Gm{validateStyleProperty(l){return!0}validateAnimatableStyleProperty(l){return!0}matchesElement(l,o){return!1}containsElement(l,o){return Di(l,o)}getParentElement(l){return ur(l)}query(l,o,c){return Ur(l,o,c)}computeStyle(l,o,c){return window.getComputedStyle(l)[o]}animate(l,o,c,u,p,D=[]){const fe={duration:c,delay:u,fill:0==u?"both":"forwards"};p&&(fe.easing=p);const we=new Map,Le=D.filter(mt=>mt instanceof zm);(function W_(h,l){return 0===h||0===l})(c,u)&&Le.forEach(mt=>{mt.currentSnapshot.forEach((gt,bt)=>we.set(bt,gt))});let Ye=function Mm(h){return h.length?h[0]instanceof Map?h:h.map(l=>va(l)):[]}(o).map(mt=>hr(mt));Ye=function Hu(h,l,o){if(o.size&&l.length){let c=l[0],u=[];if(o.forEach((p,D)=>{c.has(D)||u.push(D),c.set(D,p)}),u.length)for(let p=1;p<l.length;p++){let D=l[p];u.forEach(G=>D.set(G,Sm(h,G)))}}return l}(l,Ye,we);const dt=function q_(h,l){let o=null,c=null;return Array.isArray(l)&&l.length?(o=pd(l[0]),l.length>1&&(c=pd(l[l.length-1]))):l instanceof Map&&(o=pd(l)),o||c?new Um(h,o,c):null}(l,Ye);return new zm(l,Ye,fe,dt)}}const Wm="@.disabled";class Ym{constructor(l,o,c,u){this.namespaceId=l,this.delegate=o,this.engine=c,this._onDestroy=u,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(l){this.delegate.destroyNode?.(l)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(l,o){return this.delegate.createElement(l,o)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}appendChild(l,o){this.delegate.appendChild(l,o),this.engine.onInsert(this.namespaceId,o,l,!1)}insertBefore(l,o,c,u=!0){this.delegate.insertBefore(l,o,c),this.engine.onInsert(this.namespaceId,o,l,u)}removeChild(l,o,c){this.engine.onRemove(this.namespaceId,o,this.delegate)}selectRootElement(l,o){return this.delegate.selectRootElement(l,o)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,o,c,u){this.delegate.setAttribute(l,o,c,u)}removeAttribute(l,o,c){this.delegate.removeAttribute(l,o,c)}addClass(l,o){this.delegate.addClass(l,o)}removeClass(l,o){this.delegate.removeClass(l,o)}setStyle(l,o,c,u){this.delegate.setStyle(l,o,c,u)}removeStyle(l,o,c){this.delegate.removeStyle(l,o,c)}setProperty(l,o,c){"@"==o.charAt(0)&&o==Wm?this.disableAnimations(l,!!c):this.delegate.setProperty(l,o,c)}setValue(l,o){this.delegate.setValue(l,o)}listen(l,o,c){return this.delegate.listen(l,o,c)}disableAnimations(l,o){this.engine.disableAnimations(l,o)}}class J_ extends Ym{constructor(l,o,c,u,p){super(o,c,u,p),this.factory=l,this.namespaceId=o}setProperty(l,o,c){"@"==o.charAt(0)?"."==o.charAt(1)&&o==Wm?this.disableAnimations(l,c=void 0===c||!!c):this.engine.process(this.namespaceId,l,o.slice(1),c):this.delegate.setProperty(l,o,c)}listen(l,o,c){if("@"==o.charAt(0)){const u=function Km(h){switch(h){case"body":return document.body;case"document":return document;case"window":return window;default:return h}}(l);let p=o.slice(1),D="";return"@"!=p.charAt(0)&&([p,D]=function kc(h){const l=h.indexOf(".");return[h.substring(0,l),h.slice(l+1)]}(p)),this.engine.listen(this.namespaceId,u,p,D,G=>{this.factory.scheduleListenerCallback(G._data||-1,c,G)})}return this.delegate.listen(l,o,c)}}class Rc{constructor(l,o,c){this.delegate=l,this.engine=o,this._zone=c,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,o.onRemovalComplete=(u,p)=>{const D=p?.parentNode(u);D&&p.removeChild(D,u)}}createRenderer(l,o){const u=this.delegate.createRenderer(l,o);if(!l||!o?.data?.animation){const we=this._rendererCache;let Le=we.get(u);return Le||(Le=new Ym("",u,this.engine,()=>we.delete(u)),we.set(u,Le)),Le}const p=o.id,D=o.id+"-"+this._currentId;this._currentId++,this.engine.register(D,l);const G=we=>{Array.isArray(we)?we.forEach(G):this.engine.registerTrigger(p,D,l,we.name,we)};return o.data.animation.forEach(G),new J_(this,D,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(l,o,c){if(l>=0&&l<this._microtaskId)return void this._zone.run(()=>o(c));const u=this._animationCallbacksBuffer;0==u.length&&queueMicrotask(()=>{this._zone.run(()=>{u.forEach(p=>{const[D,G]=p;D(G)}),this._animationCallbacksBuffer=[]})}),u.push([o,c])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const Fs=[{provide:ga,useFactory:function uh(){return new Uu}},{provide:Rs,useClass:(()=>{class h extends Rs{constructor(o,c,u,p){super(o,c,u)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(x.K0),i.LFG(zr),i.LFG(ga),i.LFG(i.z2F))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})()},{provide:i.FYo,useFactory:function hh(h,l,o){return new Rc(h,l,o)},deps:[a.se,Rs,i.R0b]}],vd=[{provide:zr,useFactory:()=>new Gm},{provide:i.QbO,useValue:"BrowserAnimations"},...Fs],yd=[{provide:zr,useClass:Ms},{provide:i.QbO,useValue:"NoopAnimations"},...Fs];let fh=(()=>{class h{static withConfig(o){return{ngModule:h,providers:o.disableAnimations?yd:vd}}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:vd,imports:[a.b2]})}return h})();var Oa=y(9309),Td=y(534),Zm=y(6086);const Dd=["toast-component",""];function Ed(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.remove())}),i.TgZ(1,"span",6),i._uU(2,"\xd7"),i.qZA()()}}function qm(h,l){if(1&h&&(i.ynx(0),i._uU(1),i.BQk()),2&h){const o=i.oxw(2);i.xp6(1),i.hij("[",o.duplicatesCount+1,"]")}}function Jm(h,l){if(1&h&&(i.TgZ(0,"div"),i._uU(1),i.YNc(2,qm,2,1,"ng-container",4),i.qZA()),2&h){const o=i.oxw();i.Tol(o.options.titleClass),i.uIk("aria-label",o.title),i.xp6(1),i.hij(" ",o.title," "),i.xp6(1),i.Q6J("ngIf",o.duplicatesCount)}}function Qm(h,l){if(1&h&&i._UZ(0,"div",7),2&h){const o=i.oxw();i.Tol(o.options.messageClass),i.Q6J("innerHTML",o.message,i.oJD)}}function mh(h,l){if(1&h&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&h){const o=i.oxw();i.Tol(o.options.messageClass),i.uIk("aria-label",o.message),i.xp6(1),i.hij(" ",o.message," ")}}function Xm(h,l){if(1&h&&(i.TgZ(0,"div"),i._UZ(1,"div",9),i.qZA()),2&h){const o=i.oxw();i.xp6(1),i.Udp("width",o.width+"%")}}class gh{_attachedHost;component;viewContainerRef;injector;constructor(l,o){this.component=l,this.injector=o}attach(l,o){return this._attachedHost=l,l.attach(this,o)}detach(){const l=this._attachedHost;if(l)return this._attachedHost=void 0,l.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(l){this._attachedHost=l}}class _h{_attachedPortal;_disposeFn;attach(l,o){return this._attachedPortal=l,this.attachComponentPortal(l,o)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(l){this._disposeFn=l}}class tp{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new P.x;_activate=new P.x;_manualClose=new P.x;_resetTimeout=new P.x;_countDuplicate=new P.x;constructor(l){this._overlayRef=l}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(l,o){l&&this._resetTimeout.next(),o&&this._countDuplicate.next(++this.duplicatesCount)}}class Pa{toastId;config;message;title;toastType;toastRef;_onTap=new P.x;_onAction=new P.x;constructor(l,o,c,u,p,D){this.toastId=l,this.config=o,this.message=c,this.title=u,this.toastType=p,this.toastRef=D,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(l){this._onAction.next(l)}onAction(){return this._onAction.asObservable()}}const Ad=new i.OlP("ToastConfig");class np extends _h{_hostDomElement;_componentFactoryResolver;_appRef;constructor(l,o,c){super(),this._hostDomElement=l,this._componentFactoryResolver=o,this._appRef=c}attachComponentPortal(l,o){const c=this._componentFactoryResolver.resolveComponentFactory(l.component);let u;return u=c.create(l.injector),this._appRef.attachView(u.hostView),this.setDisposeFn(()=>{this._appRef.detachView(u.hostView),u.destroy()}),o?this._hostDomElement.insertBefore(this._getComponentRootNode(u),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(u)),u}_getComponentRootNode(l){return l.hostView.rootNodes[0]}}let vh=(()=>{class h{_document=(0,i.f3M)(x.K0);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const o=this._document.createElement("div");o.classList.add("overlay-container"),o.setAttribute("aria-live","polite"),this._document.body.appendChild(o),this._containerElement=o}static \u0275fac=function(c){return new(c||h)};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class ip{_portalHost;constructor(l){this._portalHost=l}attach(l,o=!0){return this._portalHost.attach(l,o)}detach(){return this._portalHost.detach()}}let op=(()=>{class h{_overlayContainer=(0,i.f3M)(vh);_componentFactoryResolver=(0,i.f3M)(i._Vd);_appRef=(0,i.f3M)(i.z2F);_document=(0,i.f3M)(x.K0);_paneElements=new Map;create(o,c){return this._createOverlayRef(this.getPaneElement(o,c))}getPaneElement(o="",c){return this._paneElements.get(c)||this._paneElements.set(c,{}),this._paneElements.get(c)[o]||(this._paneElements.get(c)[o]=this._createPaneElement(o,c)),this._paneElements.get(c)[o]}_createPaneElement(o,c){const u=this._document.createElement("div");return u.id="toast-container",u.classList.add(o),u.classList.add("toast-container"),c?c.getContainerElement().appendChild(u):this._overlayContainer.getContainerElement().appendChild(u),u}_createPortalHost(o){return new np(o,this._componentFactoryResolver,this._appRef)}_createOverlayRef(o){return new ip(this._createPortalHost(o))}static \u0275fac=function(c){return new(c||h)};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),ka=(()=>{class h{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(o,c,u,p,D){this.overlay=c,this._injector=u,this.sanitizer=p,this.ngZone=D,this.toastrConfig={...o.default,...o.config},o.config.iconClasses&&(this.toastrConfig.iconClasses={...o.default.iconClasses,...o.config.iconClasses})}show(o,c,u={},p=""){return this._preBuildNotification(p,o,c,this.applyConfig(u))}success(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",o,c,this.applyConfig(u))}error(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",o,c,this.applyConfig(u))}info(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",o,c,this.applyConfig(u))}warning(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",o,c,this.applyConfig(u))}clear(o){for(const c of this.toasts)if(void 0!==o){if(c.toastId===o)return void c.toastRef.manualClose()}else c.toastRef.manualClose()}remove(o){const c=this._findToast(o);if(!c||(c.activeToast.toastRef.close(),this.toasts.splice(c.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const u=this.toasts[this.currentlyActive].toastRef;u.isInactive()||(this.currentlyActive=this.currentlyActive+1,u.activate())}return!0}findDuplicate(o="",c="",u,p){const{includeTitleDuplicates:D}=this.toastrConfig;for(const G of this.toasts)if((!D||D&&G.title===o)&&G.message===c)return G.toastRef.onDuplicate(u,p),G;return null}applyConfig(o={}){return{...this.toastrConfig,...o}}_findToast(o){for(let c=0;c<this.toasts.length;c++)if(this.toasts[c].toastId===o)return{index:c,activeToast:this.toasts[c]};return null}_preBuildNotification(o,c,u,p){return p.onActivateTick?this.ngZone.run(()=>this._buildNotification(o,c,u,p)):this._buildNotification(o,c,u,p)}_buildNotification(o,c,u,p){if(!p.toastComponent)throw new Error("toastComponent required");const D=this.findDuplicate(u,c,this.toastrConfig.resetTimeoutOnDuplicate&&p.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&u||c)&&this.toastrConfig.preventDuplicates&&null!==D)return D;this.previousToastMessage=c;let G=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(G=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const fe=this.overlay.create(p.positionClass,this.overlayContainer);this.index=this.index+1;let we=c;c&&p.enableHtml&&(we=this.sanitizer.sanitize(i.q3G.HTML,c));const Le=new tp(fe),Ye=new Pa(this.index,p,we,u,o,Le),mt=i.zs3.create({providers:[{provide:Pa,useValue:Ye}],parent:this._injector}),gt=new gh(p.toastComponent,mt),bt=fe.attach(gt,p.newestOnTop);Le.componentInstance=bt.instance;const zt={toastId:this.index,title:u||"",message:c||"",toastRef:Le,onShown:Le.afterActivate(),onHidden:Le.afterClosed(),onTap:Ye.onTap(),onAction:Ye.onAction(),portal:bt};return G||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{zt.toastRef.activate()})),this.toasts.push(zt),zt}static \u0275fac=function(c){return new(c||h)(i.LFG(Ad),i.LFG(op),i.LFG(i.zs3),i.LFG(a.H7),i.LFG(i.R0b))};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();const rp={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class h{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(o,c,u){this.toastrService=o,this.toastPackage=c,this.ngZone=u,this.message=c.message,this.title=c.title,this.options=c.config,this.originalTimeout=c.config.timeOut,this.toastClasses=`${c.toastType} ${c.config.toastClass}`,this.sub=c.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=c.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=c.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=c.toastRef.countDuplicate().subscribe(p=>{this.duplicatesCount=p}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const o=(new Date).getTime();this.width=(this.hideTime-o)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(o,c){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(o),c)):this.timeout=setTimeout(()=>o(),c)}outsideInterval(o,c){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(o),c)):this.intervalId=setInterval(()=>o(),c)}runInsideAngular(o){this.ngZone?this.ngZone.run(()=>o()):o()}static \u0275fac=function(c){return new(c||h)(i.Y36(ka),i.Y36(Pa),i.Y36(i.R0b))};static \u0275cmp=i.Xpm({type:h,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(c,u){1&c&&i.NdJ("click",function(){return u.tapToast()})("mouseenter",function(){return u.stickAround()})("mouseleave",function(){return u.delayedHideToast()}),2&c&&(i.d8E("@flyInOut",u.state),i.Tol(u.toastClasses),i.Udp("display",u.displayStyle))},standalone:!0,features:[i.jDz],attrs:Dd,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(c,u){1&c&&i.YNc(0,Ed,3,0,"button",0)(1,Jm,3,5,"div",1)(2,Qm,1,3,"div",2)(3,mh,2,4,"div",3)(4,Xm,2,2,"div",4),2&c&&(i.Q6J("ngIf",u.options.closeButton),i.xp6(1),i.Q6J("ngIf",u.title),i.xp6(1),i.Q6J("ngIf",u.message&&u.options.enableHtml),i.xp6(1),i.Q6J("ngIf",u.message&&!u.options.enableHtml),i.xp6(1),i.Q6J("ngIf",u.options.progressBar))},dependencies:[x.O5],encapsulation:2,data:{animation:[(0,ce.X$)("flyInOut",[(0,ce.SB)("inactive",(0,ce.oB)({opacity:0})),(0,ce.SB)("active",(0,ce.oB)({opacity:1})),(0,ce.SB)("removed",(0,ce.oB)({opacity:0})),(0,ce.eR)("inactive => active",(0,ce.jt)("{{ easeTime }}ms {{ easing }}")),(0,ce.eR)("active => removed",(0,ce.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return h})()},Ra=(h={})=>(0,i.MR2)([{provide:Ad,useValue:{default:rp,config:h}}]);let sp=(()=>{class h{static forRoot(o={}){return{ngModule:h,providers:[Ra(o)]}}static \u0275fac=function(c){return new(c||h)};static \u0275mod=i.oAB({type:h});static \u0275inj=i.cJS({})}return h})();var Ns=y(5626),Nc=y(551),wh=y(8258),Lc=y(5402),Fa=y(3084),Bc=y(5747),dp=y(5046),Ch=y(6921);function up(h,l){if(1&h&&(i.TgZ(0,"p",7),i._uU(1),i.qZA()),2&h){const o=i.oxw();i.xp6(1),i.Oqu(o.error)}}let xh=(()=>{class h{constructor(o,c){this.globalExtras=o,this.dialogRef=c,this.editorOptions={theme:"vs-dark",language:"json",minimap:{enabled:!1}},this.text=o.text||'{\n "key": "value"\n}\n'}save(){try{this.globalExtras.save(this.text),this.dialogRef.close()}catch(o){this.error=o instanceof Error?o.message:JSON.stringify(o)}}clear(){this.text="{\n \n}\n",this.error=void 0}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Ch.W),i.Y36(At))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-dialog-global-extras"]],decls:19,vars:3,consts:[["mat-dialog-title",""],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],[1,"editor",3,"options","ngModel","ngModelChange"],["class","error",4,"ngIf"],[1,"hint"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","primary",3,"click"],[1,"error"]],template:function(c,u){1&c&&(i.TgZ(0,"header")(1,"h1",0),i._uU(2,"Extras globais"),i.qZA(),i._UZ(3,"s"),i.TgZ(4,"button",1)(5,"mat-icon"),i._uU(6,"close"),i.qZA()()(),i.TgZ(7,"p"),i._uU(8," Enviados em todas as requisi\xe7\xf5es, de todas as abas. Os extras de uma chamada espec\xedfica t\xeam preced\xeancia sobre estes.\n"),i.qZA(),i.TgZ(9,"ngx-monaco-editor",2),i.NdJ("ngModelChange",function(D){return u.text=D}),i.qZA(),i.YNc(10,up,2,1,"p",3),i.TgZ(11,"footer")(12,"span",4),i._uU(13,"Guardados apenas neste navegador."),i.qZA(),i._UZ(14,"s"),i.TgZ(15,"button",5),i.NdJ("click",function(){return u.clear()}),i._uU(16,"Limpar"),i.qZA(),i.TgZ(17,"button",6),i.NdJ("click",function(){return u.save()}),i._uU(18,"Salvar"),i.qZA()()),2&c&&(i.xp6(9),i.Q6J("options",u.editorOptions)("ngModel",u.text),i.xp6(1),i.Q6J("ngIf",u.error))},dependencies:[x.O5,V.JJ,V.On,Oa.T2,_.lW,_.RK,Li,na,mi.Hw],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2)}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:center}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 10px 0 0;padding:0}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}ngx-monaco-editor.editor[_ngcontent-%COMP%]{display:block;height:220px}p.error[_ngcontent-%COMP%]{margin-bottom:0;color:#f28b82}footer[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:20px}footer[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{font-size:12px;opacity:.6}footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}"]})}return h})();var Ro=y(3855),Vc=y(2311),$c=y(5861),ft=y(6068);let Id=(()=>{class h{constructor(){this.version="0.0.0"}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-dialog-about"]],decls:21,vars:2,consts:[["mat-dialog-title",""],["role","list"],[3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],[1,"links"],["href","https://sdkgen.github.io/","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen/issues/new","rel","external noreferer","target","_blank","mat-stroked-button",""]],template:function(c,u){1&c&&(i.TgZ(0,"header")(1,"h1",0),i._uU(2,"sdkgen Playground"),i.qZA(),i.TgZ(3,"mat-chip-set",1)(4,"mat-chip",2),i._uU(5),i.qZA()(),i._UZ(6,"s"),i.TgZ(7,"button",3)(8,"mat-icon"),i._uU(9,"close"),i.qZA()()(),i.TgZ(10,"p"),i._uU(11,"Ferramenta para explorar e invocar APIs feitas com sdkgen."),i.qZA(),i.TgZ(12,"p"),i._uU(13,"Feito com \u2764\ufe0f no Brasil \u{1f1e7}\u{1f1f7}"),i.qZA(),i.TgZ(14,"div",4)(15,"a",5),i._uU(16,"Documenta\xe7\xe3o"),i.qZA(),i.TgZ(17,"a",6),i._uU(18,"C\xf3digo-fonte"),i.qZA(),i.TgZ(19,"a",7),i._uU(20," Reportar um problema "),i.qZA()()),2&c&&(i.xp6(4),i.Q6J("disableRipple",!0),i.xp6(1),i.Oqu(u.version))},dependencies:[_.zs,_.RK,fi,qe,Li,na,mi.Hw],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2)}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], header[_ngcontent-%COMP%] button[_ngcontent-%COMP%], header[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline;align-self:center}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 10px 0 0;padding:0}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}a[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}.links[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]})}return h})();function Th(h,l){1&h&&(i.ynx(0),i.TgZ(1,"mat-icon",6),i._uU(2,"loop"),i.qZA(),i.BQk())}function Zr(h,l){1&h&&(i.ynx(0),i.TgZ(1,"mat-icon"),i._uU(2,"arrow_forward"),i.qZA(),i.BQk())}let Dh=(()=>{class h{constructor(o,c,u){this.sdkgen=o,this.toastr=c,this.dialog=u,this.loading=!1,this.url=new V.NI("")}ngOnInit(){fetch("/ast.json").then(o=>{o.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(o){var c=this;return(0,$c.Z)(function*(){o?.preventDefault();try{c.loading=!0,/^https?:\/\//.test(c.url.value)||c.url.setValue(`https://${c.url.value}`);const u=new URL(c.url.value);u.pathname+=(u.pathname.endsWith("/")?"":"/")+"ast.json";const p=u.toString();console.debug("astUrl",p);const D=yield fetch(p).then(function(){var G=(0,$c.Z)(function*(fe){return fe.ok?fe.json():fe});return function(fe){return G.apply(this,arguments)}}());if(D instanceof Response)throw D instanceof Error?D:new Error(D.statusText);if(!D.errors||!D.functionTable||!D.typeTable)throw new Error("Invalid AST");for(;typeof monaco>"u";)console.log("monaco"),yield new Promise(G=>setTimeout(G,250));console.debug("astJson",D),c.sdkgen.state$.next({astJson:D,astRoot:(0,ft.jsonToAst)(D),url:c.url.value})}catch(u){c.toastr.error(u instanceof Error?u.message:JSON.stringify(u),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{c.loading=!1}})()}openAbout(){this.dialog.open(Id)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Ro.G),i.Y36(ka),i.Y36(Mn))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-tab-nav"]],decls:9,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["mat-ripple","","type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],["mat-ripple","",1,"about-button",3,"click"],[1,"loader"]],template:function(c,u){1&c&&(i._UZ(0,"img",0),i.TgZ(1,"form",1),i.NdJ("submit",function(D){return u.loadUrl(D)}),i._UZ(2,"input",2),i.TgZ(3,"button",3),i.YNc(4,Th,3,0,"ng-container",4)(5,Zr,3,0,"ng-container",4),i.qZA()(),i.TgZ(6,"button",5),i.NdJ("click",function(){return u.openAbout()}),i.TgZ(7,"mat-icon"),i._uU(8,"info"),i.qZA()()),2&c&&(i.xp6(2),i.Q6J("formControl",u.url)("readonly",u.loading),i.xp6(1),i.Q6J("disabled",u.loading)("ngSwitch",u.loading),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[x.RF,x.n9,V._Y,V.Fj,V.JJ,V.JL,V.F,V.oH,mi.Hw,M.wG],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none;cursor:pointer;line-height:10px}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 2s linear infinite}button.about-button[_ngcontent-%COMP%]{width:42px;height:42px;border:0;border-radius:0;padding:0;background:transparent;cursor:pointer;color:inherit;line-height:0;text-align:center}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return h})();var Eh=y(3101);function Mh(h){return h.normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").toLowerCase()}let X_=(()=>{class h{transform(o,c){if(!o)return[];const u=Mh(c).split(/\s+/u).filter(Boolean);return 0===u.length?o:o.filter(p=>u.every(D=>p.searchIndex.includes(D)))}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275pipe=i.Yjl({name:"appFilter",type:h,pure:!0})}return h})();const Na={StringPrimitiveType:"Um texto livre, potencialmente de m\xfaltiplas linhas, codificado como UTF-8.",IntPrimitiveType:"Um n\xfamero inteiro de 32 bits, no intervalo de -2147483648 at\xe9 2147483647.",UIntPrimitiveType:"Um n\xfamero inteiro n\xe3o negativo, no intervalo de 0 at\xe9 4294967295.",FloatPrimitiveType:"Um n\xfamero de ponto flutuante de 64 bits, similar ao double do C.",BigIntPrimitiveType:"Um n\xfamero inteiro sem limite de precis\xe3o. Na maioria das plataformas este tipo \xe9 mais custoso.",MoneyPrimitiveType:"Um n\xfamero inteiro com precis\xe3o estendida, mas perform\xe1tico. Est\xe1 no intervalo de -9007199254740991 a 9007199254740991. \xdatil para opera\xe7\xf5es financeiras.",DecimalPrimitiveType:"Um n\xfamero inteiro ou fracionado representado por d\xedgitos decimais e com precis\xe3o din\xe2mica. \xdatil para opera\xe7\xf5es financeiras.",DatePrimitiveType:"Representa conceitualmente uma data do calend\xe1rio Gregoriano. Essa mesma data pode representar diferentes momento no tempo a depender da timezone. Para especificar um ponto no tempo utilize datetime.",DateTimePrimitiveType:"Representa um instante no tempo com precis\xe3o de milissegundos. Este instante ser\xe1 sempre traduzido para o fuso hor\xe1rio local do recebedor da mensagem.",BoolPrimitiveType:"Ou true ou false.",VoidPrimitiveType:"Tipo vazio, sem conte\xfado.",CpfPrimitiveType:"Similar a uma string, mas contendo um CPF v\xe1lido.",CnpjPrimitiveType:"Similar a uma string, mas contendo um CNPJ v\xe1lido.",EmailPrimitiveType:"Similar a uma string, mas contendo um e-mail v\xe1lido.",UrlPrimitiveType:"Similar a uma string, mas contendo uma URL v\xe1lida.",UuidPrimitiveType:"Similar a uma string, mas contendo um UUID v\xe1lido.",HexPrimitiveType:"Similar a uma string, mas contendo uma quantidade par de caracteres hexadecimais, \xfatil para representar bytes.",HtmlPrimitiveType:"Similar a uma string, mas contendo um HTML v\xe1lido.",BytesPrimitiveType:"Uma sequ\xeancia arbitr\xe1ria de bytes de qualquer comprimento. Pode ser utilizado para tr\xe1fego de dados bin\xe1rios.",Base64PrimitiveType:"Similar a uma string, mas necessariamente com uma codifica\xe7\xe3o Base 64 v\xe1lida.",XmlPrimitiveType:"Similar a uma string, mas contendo um XML v\xe1lido.",JsonPrimitiveType:"Um valor JSON qualquer, incluindo objetos, arrays, strings, n\xfameros e boleanos, em qualquer profundidade. Note que embora null possa aparecer dentro de um objeto ou array, o valor deste campo n\xe3o pode ser null diretamente. Para isso utilize json?."},pp={StringPrimitiveType:["","lorem ipsum","strings podem conter caracteres especiais \u{1f609}"],IntPrimitiveType:["0","6725082065","-3096576054"],UIntPrimitiveType:["0","1","340953460"],FloatPrimitiveType:["0.0","1.050654","-3454.6396854"],BigIntPrimitiveType:["87175082235506108544888893172310","0","1"],MoneyPrimitiveType:["100","-450954636342","121611633162977184630315"],DecimalPrimitiveType:["100","-10.35","0.00498375617834","3864958512342567"],DatePrimitiveType:["2020-01-01","1950-04-15","2194-12-31"],DateTimePrimitiveType:["2020-01-01T00:00:00.000","1950-04-15T02:11:58.892","2194-12-31T23:31:58.491"],BoolPrimitiveType:["true","false"],CpfPrimitiveType:["000.000.001-91","00000000191","000.000.002-72"],CnpjPrimitiveType:["00.000.000/0001-91","00000000000191","00.000.000/0002-72"],EmailPrimitiveType:["sample@example.com","root@localhost","test+label@10.0.0.5"],UrlPrimitiveType:["https://sdkgen.github.io/","https://goo.gl/maps/gUaKGTqR8BHXfX7b7","http://jobs.cubos.io"],UuidPrimitiveType:["c12c3329-c558-4c76-9a16-0efeb2b01605","00000000-0000-0000-0000-000000000000","1d5f2ef6-0def-11ec-82a8-0242ac130003"],HexPrimitiveType:["00","6375626f73","73646b67656e20706c617967726f756e64"],HtmlPrimitiveType:["<html><body><p>sdkgen</p></body></html>","<html><h1>Sdkgen","<script> alert('Hello world!'); <\/script>"],BytesPrimitiveType:[],Base64PrimitiveType:["Y3Vib3M=","c2RrZ2Vu","c2RrZ2VuIHBsYXlncm91bmQ="],XmlPrimitiveType:["<items><item>something</item></items>","<list />",'<?xml version="1.0" encoding="UTF-8"?><resposta><![CDATA[ol\xe1 <xml>]]></resposta>'],JsonPrimitiveType:["{}",'{"sdkgen":"playground"}','{"type":"json","items":[1,2,3],"some":null}']};function La(h){switch(h.constructor){case ft.StringPrimitiveType:return"StringPrimitiveType";case ft.IntPrimitiveType:return"IntPrimitiveType";case ft.UIntPrimitiveType:return"UIntPrimitiveType";case ft.FloatPrimitiveType:return"FloatPrimitiveType";case ft.BigIntPrimitiveType:return"BigIntPrimitiveType";case ft.MoneyPrimitiveType:return"MoneyPrimitiveType";case ft.DecimalPrimitiveType:return"DecimalPrimitiveType";case ft.DatePrimitiveType:return"DatePrimitiveType";case ft.DateTimePrimitiveType:return"DateTimePrimitiveType";case ft.BoolPrimitiveType:return"BoolPrimitiveType";case ft.VoidPrimitiveType:return"VoidPrimitiveType";case ft.CpfPrimitiveType:return"CpfPrimitiveType";case ft.CnpjPrimitiveType:return"CnpjPrimitiveType";case ft.EmailPrimitiveType:return"EmailPrimitiveType";case ft.UrlPrimitiveType:return"UrlPrimitiveType";case ft.UuidPrimitiveType:return"UuidPrimitiveType";case ft.HexPrimitiveType:return"HexPrimitiveType";case ft.HtmlPrimitiveType:return"HtmlPrimitiveType";case ft.BytesPrimitiveType:return"BytesPrimitiveType";case ft.Base64PrimitiveType:return"Base64PrimitiveType";case ft.XmlPrimitiveType:return"XmlPrimitiveType";case ft.JsonPrimitiveType:return"JsonPrimitiveType";case ft.OptionalType:return"OptionalType";case ft.EnumType:return"EnumType";case ft.ArrayType:return"ArrayType";case ft.StructType:return"StructType";default:return h.constructor.name}}function Ba(h){const l=[];switch(h.constructor){case ft.StringPrimitiveType:case ft.IntPrimitiveType:case ft.UIntPrimitiveType:case ft.FloatPrimitiveType:case ft.BigIntPrimitiveType:case ft.MoneyPrimitiveType:case ft.DecimalPrimitiveType:case ft.DatePrimitiveType:case ft.DateTimePrimitiveType:case ft.BoolPrimitiveType:case ft.VoidPrimitiveType:case ft.CpfPrimitiveType:case ft.CnpjPrimitiveType:case ft.EmailPrimitiveType:case ft.UrlPrimitiveType:case ft.UuidPrimitiveType:case ft.HexPrimitiveType:case ft.HtmlPrimitiveType:case ft.BytesPrimitiveType:case ft.Base64PrimitiveType:case ft.XmlPrimitiveType:case ft.JsonPrimitiveType:l.push("Primitivo");break;case ft.OptionalType:l.push("Opcional"),l.push(...Ba(h.base));break;case ft.TypeReference:l.push(...Ba(h.type));break;case ft.ArrayType:l.push("Array"),l.push(...Ba(h.base));break;case ft.EnumType:l.push("Enum");break;default:console.error("No labels for",La(h))}return l}function qr(h){switch(h.constructor){case ft.StringPrimitiveType:case ft.IntPrimitiveType:case ft.UIntPrimitiveType:case ft.FloatPrimitiveType:case ft.BigIntPrimitiveType:case ft.MoneyPrimitiveType:case ft.DecimalPrimitiveType:case ft.DatePrimitiveType:case ft.DateTimePrimitiveType:case ft.BoolPrimitiveType:case ft.VoidPrimitiveType:case ft.CpfPrimitiveType:case ft.CnpjPrimitiveType:case ft.EmailPrimitiveType:case ft.UrlPrimitiveType:case ft.UuidPrimitiveType:case ft.HexPrimitiveType:case ft.HtmlPrimitiveType:case ft.BytesPrimitiveType:case ft.Base64PrimitiveType:case ft.XmlPrimitiveType:case ft.JsonPrimitiveType:return{longDescription:Na[La(h)],shortDescription:Na[La(h)],examples:pp[La(h)]};case ft.OptionalType:{const u=qr(h.base);return{...u,longDescription:u.longDescription,shortDescription:`(opcional) ${u.shortDescription}`,examples:["null",...u.examples??[]]}}case ft.TypeReference:return qr(h.type);case ft.ArrayType:{const u=qr(h.base);return{...u,longDescription:u.longDescription,shortDescription:`(array) ${u.shortDescription}`,examples:["[]",...u.examples?.map(p=>`[${p}]`)??[]]}}case ft.EnumType:const l=h,o=l.values.slice(0,3),c=o.map(u=>u.struct?`${u.value}: ${JSON.stringify(Ro.G.buildJsonObject(u.struct.fields),null,2)}`:u.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${o.map(u=>`${u.value}${u.struct?"(\u2026)":""}`).join(", ")}${o.length>3?"\u2026":""}`,examples:c,isEnum:!0,isStruct:!0,structFields:l.values.map(u=>({name:u.value,type:u.struct,description:u.annotations.find(p=>p instanceof ft.DescriptionAnnotation)?.text,secret:!1}))};case ft.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${h.fields.slice(0,3).map(u=>u.name).join(", ")}\u2026`,isStruct:!0,structFields:h.fields.map(u=>({name:u.name,description:u.annotations.find(p=>p instanceof ft.DescriptionAnnotation)?.text,type:u.type,secret:u.secret})),examples:[JSON.stringify(Ro.G.buildJsonObject(h.fields),null,2)]};default:return{longDescription:"BUG: Unknown Type",shortDescription:"BUG: Unknown Type",examples:[]}}}function Od(h,l){1&h&&(i.TgZ(0,"button",6)(1,"mat-icon"),i._uU(2,"arrow_back"),i.qZA()())}function Sh(h,l){if(1&h&&(i.TgZ(0,"mat-chip",7),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.Q6J("disableRipple",!0),i.xp6(1),i.Oqu(o)}}function jc(h,l){1&h&&(i.TgZ(0,"button",8)(1,"mat-icon"),i._uU(2,"close"),i.qZA()())}function Va(h,l){if(1&h&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&h){const o=i.oxw();i.xp6(1),i.Oqu(null==o.typeDoc?null:o.typeDoc.longDescription)}}function Ah(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Nome"),i.qZA())}function Pd(h,l){if(1&h&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.name)}}function Hc(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Tipo"),i.qZA())}function Ih(h,l){1&h&&(i.TgZ(0,"span"),i._uU(1,"-"),i.qZA())}function kd(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"u",25),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(2);return i.KtG(p.showDocumentation(u.type))}),i._uU(1),i.qZA()}if(2&h){const o=i.oxw().$implicit,c=i.oxw(2);i.Q6J("matTooltip",c.getTooltip(o.type)),i.xp6(1),i.Oqu(o.type.name)}}function $a(h,l){1&h&&(i.TgZ(0,"td",22),i.YNc(1,Ih,2,0,"span",23)(2,kd,2,2,"u",24),i.qZA()),2&h&&(i.Q6J("ngSwitch",l.$implicit.type),i.xp6(1),i.Q6J("ngSwitchCase",null))}function gp(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Descri\xe7\xe3o"),i.qZA())}function Oh(h,l){if(1&h&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.description||"-")}}function _p(h,l){1&h&&i._UZ(0,"tr",27)}function bp(h,l){1&h&&i._UZ(0,"tr",28)}const vp=()=>[];function Ph(h,l){if(1&h&&(i.TgZ(0,"section")(1,"div",9)(2,"table",10),i.ynx(3,11),i.YNc(4,Ah,2,0,"th",12)(5,Pd,2,1,"td",13),i.BQk(),i.ynx(6,14),i.YNc(7,Hc,2,0,"th",12)(8,$a,3,2,"td",15),i.BQk(),i.ynx(9,16),i.YNc(10,gp,2,0,"th",12)(11,Oh,2,1,"td",17),i.BQk(),i.YNc(12,_p,1,0,"tr",18)(13,bp,1,0,"tr",19),i.qZA()()()),2&h){const o=i.oxw();let c;i.xp6(2),i.Q6J("dataSource",null!==(c=null==o.typeDoc?null:o.typeDoc.structFields)&&void 0!==c?c:i.DdM(3,vp)),i.xp6(10),i.Q6J("matHeaderRowDef",o.argumentsTableColumns),i.xp6(1),i.Q6J("matRowDefColumns",o.argumentsTableColumns)}}function kh(h,l){if(1&h&&(i.TgZ(0,"li")(1,"code",1),i._uU(2),i.qZA()()),2&h){const o=l.$implicit;i.xp6(2),i.Oqu(o)}}function Uc(h,l){if(1&h&&(i.TgZ(0,"section")(1,"h3"),i._uU(2,"Exemplos"),i.qZA(),i.TgZ(3,"ul"),i.YNc(4,kh,3,1,"li",29),i.qZA()()),2&h){const o=i.oxw();i.xp6(4),i.Q6J("ngForOf",null==o.typeDoc?null:o.typeDoc.examples)}}let Rd=(()=>{class h{constructor(o,c,u){this.dialogRef=o,this.data=c,this.dialog=u,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=Ba(this.data.type),this.typeDoc=qr(this.data.type)}getTooltip(o){return qr(o).shortDescription}showDocumentation(o){this.dialog.open(h,{position:{right:"0"},data:{type:o,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(At),i.Y36(L),i.Y36(Mn))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-type-details"]],decls:10,vars:7,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],["role","list"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["class","mono","mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell","",1,"mono",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","click",4,"ngSwitchDefault"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(c,u){1&c&&(i.TgZ(0,"h1"),i.YNc(1,Od,3,0,"button",0),i.TgZ(2,"span",1),i._uU(3),i.qZA(),i.TgZ(4,"mat-chip-set",2),i.YNc(5,Sh,2,2,"mat-chip",3),i.qZA(),i.YNc(6,jc,3,0,"button",4),i.qZA(),i.YNc(7,Va,2,1,"p",5)(8,Ph,14,4,"section",5)(9,Uc,5,1,"section",5)),2&c&&(i.xp6(1),i.Q6J("ngIf",u.data.subdialog),i.xp6(2),i.Oqu(u.data.type.name),i.xp6(2),i.Q6J("ngForOf",u.labels),i.xp6(1),i.Q6J("ngIf",!u.data.subdialog),i.xp6(1),i.Q6J("ngIf",null==u.typeDoc?null:u.typeDoc.longDescription),i.xp6(1),i.Q6J("ngIf",(null==u.typeDoc?null:u.typeDoc.isStruct)&&(null==u.typeDoc?null:u.typeDoc.structFields)),i.xp6(1),i.Q6J("ngIf",null==u.typeDoc||null==u.typeDoc.examples?null:u.typeDoc.examples.length))},dependencies:[x.sg,x.O5,x.RF,x.n9,x.ED,_.RK,fi,qe,Li,mi.Hw,$l,bs,ri,ha,ua,xn,fa,vs,uc,jl,Vr],styles:["h1[_ngcontent-%COMP%]{font-weight:200;font-size:1.75rem;word-break:break-all;word-wrap:break-word;color:#fff}h1[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;-webkit-user-select:none;user-select:none}h1[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-transform:uppercase}h1[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}h1[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{vertical-align:middle}h1[_ngcontent-%COMP%] button.back-button[_ngcontent-%COMP%]{margin-right:10px}h1[_ngcontent-%COMP%] button.close-button[_ngcontent-%COMP%]{float:right}p[_ngcontent-%COMP%]{line-height:1.5rem}section[_ngcontent-%COMP%]{margin-top:1rem}h3[_ngcontent-%COMP%]{font-weight:200;text-transform:uppercase}ul[_ngcontent-%COMP%]{padding-left:2rem}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:2rem;list-style:square}code[_ngcontent-%COMP%]{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem;white-space:pre-wrap;word-break:break-all;word-wrap:break-word}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{text-decoration-style:dotted;cursor:pointer}"]})}return h})();var Ls=y(4515);let yp=(()=>{class h{constructor(o){this.observer=o}isBelowSm(){return this.observer.observe(["(max-width: 575px)"])}isBelowMd(){return this.observer.observe(["(max-width: 767px)"])}isBelowLg(){return this.observer.observe(["(max-width: 991px)"])}isBelowXl(){return this.observer.observe(["(max-width: 1199px)"])}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Ls.Yg))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();function wp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.toggleAllGroups())}),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA()()}if(2&h){const o=i.oxw();i.Q6J("matTooltip",o.allGroupsCollapsed?"Expandir todas":"Recolher todas"),i.xp6(2),i.Oqu(o.allGroupsCollapsed?"unfold_more":"unfold_less")}}function eb(h,l){if(1&h&&(i.TgZ(0,"span",10),i._uU(1),i.qZA()),2&h){const o=i.oxw().$implicit;i.xp6(1),i.Oqu(o.description)}}const Cp=h=>({active:h});function zc(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"li",7),i.NdJ("click",function(){const p=i.CHM(o).$implicit,D=i.oxw();return i.KtG(D.selectedFunction=p)}),i.TgZ(1,"span",8),i._uU(2),i.qZA(),i.YNc(3,eb,2,1,"span",9),i.qZA()}if(2&h){const o=l.$implicit,c=i.oxw();i.Q6J("ngClass",i.VKq(3,Cp,(null==c.selectedFunction?null:c.selectedFunction.name)===o.name)),i.xp6(2),i.Oqu(o.name),i.xp6(1),i.Q6J("ngIf",o.description)}}function Fd(h,l){1&h&&i.GkF(0)}const Nd=h=>({$implicit:h});function Rh(h,l){if(1&h&&(i.ynx(0),i.YNc(1,Fd,1,0,"ng-container",12),i.BQk()),2&h){const o=l.$implicit;i.oxw(2);const c=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",c)("ngTemplateOutletContext",i.VKq(2,Nd,o))}}function Fh(h,l){if(1&h&&(i.TgZ(0,"ul"),i.YNc(1,Rh,2,4,"ng-container",11),i.ALo(2,"appFilter"),i.qZA()),2&h){const o=i.oxw();i.xp6(1),i.Q6J("ngForOf",i.xi3(2,1,o.fnTable,o.searchText))}}function Jr(h,l){1&h&&i.GkF(0)}function xp(h,l){if(1&h&&(i.ynx(0),i.YNc(1,Jr,1,0,"ng-container",12),i.BQk()),2&h){const o=l.$implicit;i.oxw(3);const c=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",c)("ngTemplateOutletContext",i.VKq(2,Nd,o))}}function Tp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"details",14),i.NdJ("toggle",function(u){const D=i.CHM(o).$implicit,G=i.oxw(2);return i.KtG(G.onGroupToggle(D,u))}),i.ALo(1,"appFilter"),i.TgZ(2,"summary",15)(3,"span",16),i._uU(4),i.qZA(),i.TgZ(5,"span",17),i._uU(6),i.ALo(7,"appFilter"),i.qZA()(),i.TgZ(8,"ul"),i.YNc(9,xp,2,4,"ng-container",11),i.ALo(10,"appFilter"),i.qZA()()}if(2&h){const o=l.$implicit,c=i.oxw(2);i.Q6J("open",c.isGroupOpen(o))("hidden",0===i.xi3(1,5,o.functions,c.searchText).length),i.xp6(4),i.Oqu(o.name),i.xp6(2),i.Oqu(i.xi3(7,8,o.functions,c.searchText).length),i.xp6(3),i.Q6J("ngForOf",i.xi3(10,11,o.functions,c.searchText))}}function Dp(h,l){if(1&h&&(i.ynx(0),i.YNc(1,Tp,11,14,"details",13),i.BQk()),2&h){const o=i.oxw();i.xp6(1),i.Q6J("ngForOf",o.fnGroups)}}function Ep(h,l){1&h&&i._UZ(0,"span")}function Mp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"span"),i._UZ(1,"br"),i._uU(2,"\xa0\xa0"),i.TgZ(3,"span",45),i._uU(4),i.qZA(),i.TgZ(5,"span",22),i._uU(6,":"),i.qZA(),i._uU(7,"\xa0"),i.TgZ(8,"u",23),i.NdJ("click",function(){const p=i.CHM(o).$implicit,D=i.oxw(2);return i.KtG(D.showDocumentation(p.rawType))}),i._uU(9),i.qZA(),i.YNc(10,Ep,1,0,"span",46),i.qZA()}if(2&h){const o=l.$implicit,c=l.index;i.oxw();const u=i.MAs(18),p=i.MAs(20),D=i.oxw();i.xp6(4),i.Oqu(o.name),i.xp6(4),i.Q6J("matTooltip",D.getTooltip(o.rawType)),i.xp6(1),i.Oqu(o.type),i.xp6(1),i.Q6J("ngIf",c!=D.selectedFunction.args.length-1)("ngIfThen",u)("ngIfElse",p)}}function qo(h,l){1&h&&i._uU(0,",")}function Bs(h,l){1&h&&i._UZ(0,"br")}function Sp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"u",37),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(3);return i.KtG(p.showDocumentation(u.dataType))}),i._uU(1),i.qZA()}if(2&h){const o=i.oxw().$implicit,c=i.oxw(3);i.Q6J("matTooltip",c.getTooltip(o.dataType)),i.xp6(1),i.hij("(",o.dataType.name,")")}}function Ap(h,l){if(1&h&&(i.TgZ(0,"mat-chip",50)(1,"span",51),i._uU(2),i.qZA(),i._UZ(3,"i"),i.TgZ(4,"span",52),i._uU(5),i.YNc(6,Sp,2,2,"u",53),i.qZA()()),2&h){const o=l.$implicit;i.Q6J("disableRipple",!0),i.xp6(2),i.Oqu(o.name),i.xp6(3),i.hij("",o.type," "),i.xp6(1),i.Q6J("ngIf",o.dataType&&"void"!==o.dataType.name)}}function Ip(h,l){if(1&h&&(i.TgZ(0,"section",47)(1,"mat-chip-set",48),i.YNc(2,Ap,7,4,"mat-chip",49),i.qZA()()),2&h){const o=i.oxw(2);i.xp6(2),i.Q6J("ngForOf",o.selectedFunction.labels)}}function Op(h,l){if(1&h&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&h){const o=i.oxw(2);i.xp6(1),i.Oqu(o.selectedFunction.description)}}function Pp(h,l){1&h&&(i.TgZ(0,"p",54),i._uU(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),i.qZA())}function kp(h,l){1&h&&(i.TgZ(0,"p",54),i._uU(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),i.qZA())}function Nh(h,l){1&h&&(i.TgZ(0,"th",64),i._uU(1,"Nome"),i.qZA())}function Rp(h,l){if(1&h&&(i.TgZ(0,"td",65),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.name)}}function Fp(h,l){1&h&&(i.TgZ(0,"th",64),i._uU(1,"Tipo"),i.qZA())}function Np(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"td",65)(1,"u",37),i.NdJ("click",function(){const p=i.CHM(o).$implicit,D=i.oxw(3);return i.KtG(D.showDocumentation(p.rawType))}),i._uU(2),i.qZA()()}if(2&h){const o=l.$implicit,c=i.oxw(3);i.xp6(1),i.Q6J("matTooltip",c.getTooltip(o.rawType)),i.xp6(1),i.Oqu(o.type)}}function Lp(h,l){1&h&&(i.TgZ(0,"th",64),i._uU(1,"Descri\xe7\xe3o"),i.qZA())}function Gc(h,l){if(1&h&&(i.TgZ(0,"td",66),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.description||"-")}}function Jo(h,l){1&h&&i._UZ(0,"tr",67)}function ja(h,l){1&h&&i._UZ(0,"tr",68)}function Lh(h,l){if(1&h&&(i.TgZ(0,"table",55),i.ynx(1,56),i.YNc(2,Nh,2,0,"th",57)(3,Rp,2,1,"td",58),i.BQk(),i.ynx(4,59),i.YNc(5,Fp,2,0,"th",57)(6,Np,3,2,"td",58),i.BQk(),i.ynx(7,60),i.YNc(8,Lp,2,0,"th",57)(9,Gc,2,1,"td",61),i.BQk(),i.YNc(10,Jo,1,0,"tr",62)(11,ja,1,0,"tr",63),i.qZA()),2&h){const o=i.oxw(2);i.Q6J("dataSource",o.selectedFunction.args),i.xp6(10),i.Q6J("matHeaderRowDef",o.argumentsTableColumns),i.xp6(1),i.Q6J("matRowDefColumns",o.argumentsTableColumns)}}function Bh(h,l){1&h&&(i.TgZ(0,"span",69),i._uU(1,"Dart"),i.qZA())}function Vh(h,l){1&h&&(i.TgZ(0,"span",69),i._uU(1,"Swift"),i.qZA())}const tb=()=>({theme:"vs-dark",language:"javascript"}),nb=()=>({theme:"vs-dark",language:"kotlin"}),ib=()=>({theme:"vs-dark",language:"dart"}),Ld=()=>({theme:"vs-dark",language:"swift"});function Bd(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"article")(1,"header")(2,"h1",18)(3,"span",19)(4,"span",20),i._uU(5,"fn"),i.qZA(),i._uU(6,"\xa0"),i.TgZ(7,"span",21),i._uU(8),i.qZA(),i._uU(9,"("),i.YNc(10,Mp,11,6,"span",11),i._uU(11,")"),i.TgZ(12,"span",22),i._uU(13,":"),i.qZA(),i._uU(14,"\xa0"),i.TgZ(15,"u",23),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.showDocumentation(u.selectedFunction.returns.rawType))}),i._uU(16),i.qZA()(),i.YNc(17,qo,1,0,"ng-template",null,24,i.W1O)(19,Bs,1,0,"ng-template",null,25,i.W1O),i._UZ(21,"s"),i.TgZ(22,"button",26),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.addSimpleCallTab())}),i.TgZ(23,"mat-icon"),i._uU(24,"play_arrow"),i.qZA(),i._uU(25,"\xa0EXECUTAR "),i.qZA()()(),i.YNc(26,Ip,3,1,"section",27),i.TgZ(27,"section",18)(28,"h2",28),i._uU(29,"Descri\xe7\xe3o"),i.qZA(),i.TgZ(30,"div",29),i.YNc(31,Op,2,1,"p",30)(32,Pp,2,0,"p",31),i.qZA(),i.TgZ(33,"h2",32),i._uU(34,"Par\xe2metros"),i.qZA(),i.TgZ(35,"div",29),i.YNc(36,kp,2,0,"p",31),i.TgZ(37,"div",33),i.YNc(38,Lh,12,3,"table",34),i.qZA()(),i.TgZ(39,"h2",35),i._uU(40,"Retorno"),i.qZA(),i.TgZ(41,"div")(42,"p",36)(43,"u",37),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.showDocumentation(u.selectedFunction.returns.rawType))}),i._uU(44),i.qZA()()(),i.TgZ(45,"h2",38),i._uU(46,"Exemplo de Requisi\xe7\xe3o"),i.qZA(),i.TgZ(47,"mat-tab-group",39)(48,"mat-tab",40),i._UZ(49,"ngx-monaco-editor",41),i.qZA(),i.TgZ(50,"mat-tab",42),i._UZ(51,"ngx-monaco-editor",41),i.qZA(),i.TgZ(52,"mat-tab",43),i.YNc(53,Bh,2,0,"ng-template",44),i._UZ(54,"ngx-monaco-editor",41),i.qZA(),i.TgZ(55,"mat-tab",43),i.YNc(56,Vh,2,0,"ng-template",44),i._UZ(57,"ngx-monaco-editor",41),i.qZA()()()()}if(2&h){const o=i.oxw();i.xp6(8),i.Oqu(o.selectedFunction.name),i.xp6(2),i.Q6J("ngForOf",o.selectedFunction.args),i.xp6(5),i.Q6J("matTooltip",o.getTooltip(o.selectedFunction.returns.rawType)),i.xp6(1),i.Oqu(o.selectedFunction.returns.type),i.xp6(10),i.Q6J("ngIf",o.selectedFunction.labels.length>0),i.xp6(4),i.Q6J("ngSwitch",!!o.selectedFunction.description),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("ngSwitch",o.selectedFunction.args.length),i.xp6(1),i.Q6J("ngSwitchCase",0),i.xp6(7),i.Q6J("matTooltip",o.getTooltip(o.selectedFunction.returns.rawType)),i.xp6(1),i.Oqu(o.selectedFunction.returns.type),i.xp6(5),i.Q6J("options",i.DdM(20,tb))("ngModel",o.selectedFunction.examples.typeScript),i.xp6(2),i.Q6J("options",i.DdM(21,nb))("ngModel",o.selectedFunction.examples.kotlin),i.xp6(3),i.Q6J("options",i.DdM(22,ib))("ngModel",o.selectedFunction.examples.dart),i.xp6(3),i.Q6J("options",i.DdM(23,Ld))("ngModel",o.selectedFunction.examples.swift)}}const ob=()=>({standalone:!0}),$h="(Sem tags)";function jh(h){return Mh([h.name,h.description??"",...h.tags,...h.labels.filter(l=>"REST"===l.name).map(l=>l.type)].join(" "))}let Bp=(()=>{class h{constructor(o,c,u){this.sdkgen=o,this.dialog=c,this.responsive=u,this.isBelowMd=!1,this.runFunction=new i.vpe,this.fnGroups=[],this.hasTags=!1,this.collapsedGroups=new Set,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(o=>{if(!o)return;this.selectedFunction=void 0,this.collapsedGroups.clear();const c=o.astRoot.operations.sort((u,p)=>u.name.localeCompare(p.name)).map(u=>{const p=o.astJson.annotations[`fn.${u.name}`],D=Ro.G.buildJsonObject(u.args);return p?.find(G=>"hidden"===G.type)?null:{name:u.name,description:p?.find(G=>"description"===G.type)?.value,args:u.args.map(({name:G,type:fe})=>{const we=[...o.astJson.annotations[`type.${fe.name}.${G}`]??[],...o.astJson.annotations[`fn.${u.name}.${G}`]??[]];return{name:G,description:we.find(Le=>"description"===Le.type)?.value,type:fe.name,rawType:fe}}),argsStr:u.args.map(G=>`${G.name}: ${G.type.name}`).join(", "),argsFields:u.args,returns:{type:u.returnType.name,rawType:u.returnType},labels:p?.filter(G=>["rest","throws","tag"].includes(G.type)).map(G=>"rest"===G.type?{name:"REST",type:`${G.value.method} ${G.value.path}`}:"throws"===G.type?{name:"THROWS",type:G.value,dataType:o.astRoot.errors.find(fe=>fe.name===G.value)?.dataType}:"tag"===G.type?{name:"TAG",type:G.value}:{name:"?",type:"?"})??[],tags:p?.filter(G=>"tag"===G.type).map(G=>G.value)??[],throws:p?.find(G=>"throws"===G.type)?.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(u.name,D),kotlin:this.sdkgen.getKotlinCode(u.name,u.args),dart:this.sdkgen.getDartCode(u.name,D),swift:this.sdkgen.getSwiftCode(u.name,D)}}}).filter(u=>!!u);this.fnTable=c.map(u=>({...u,searchIndex:jh(u)})),this.hasTags=this.fnTable.some(u=>u.tags.length>0),this.fnGroups=this.buildGroups(this.fnTable)})}buildGroups(o){const c=new Map;for(const u of o){const p=u.tags.length>0?u.tags:[$h];for(const D of p){const G=c.get(D)??[];G.push(u),c.set(D,G)}}return[...c.entries()].sort(([u],[p])=>u===$h?1:p===$h?-1:u.localeCompare(p)).map(([u,p])=>({name:u,functions:p}))}get allGroupsCollapsed(){return this.fnGroups.length>0&&this.fnGroups.every(o=>this.collapsedGroups.has(o.name))}toggleAllGroups(){if(this.allGroupsCollapsed)this.collapsedGroups.clear();else for(const o of this.fnGroups)this.collapsedGroups.add(o.name)}isGroupOpen(o){return!!this.searchText||!this.collapsedGroups.has(o.name)}onGroupToggle(o,c){this.searchText||(c.target.open?this.collapsedGroups.delete(o.name):this.collapsedGroups.add(o.name))}ngOnDestroy(){this.state$?.unsubscribe(),this.responsive$?.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(o=>{this.isBelowMd=o.matches})}addSimpleCallTab(){this.runFunction.emit(this.selectedFunction?.name)}getTooltip(o){return qr(o).shortDescription}showDocumentation(o){this.dialog.open(Rd,{position:{right:"0",top:"0",bottom:"0"},data:{type:o},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Ro.G),i.Y36(Mn),i.Y36(yp))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:13,vars:9,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],["type","button","class","collapse-toggle",3,"matTooltip","click",4,"ngIf"],["fnItem",""],[4,"ngIf"],["type","button",1,"collapse-toggle",3,"matTooltip","click"],["mat-ripple","",3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","fn-group",3,"open","hidden","toggle",4,"ngFor","ngForOf"],[1,"fn-group",3,"open","hidden","toggle"],[1,"fn-group-title"],[1,"fn-group-name"],[1,"fn-group-count"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[1,"k-sym"],[1,"k-type",3,"matTooltip","click"],["comma",""],["lineBreak",""],["mat-raised-button","","color","primary",3,"click"],["class","container","id","labels",4,"ngIf"],["id","description"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-content",4,"ngSwitchCase"],["id","parameters"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource",4,"ngSwitchDefault"],["id","returns"],[1,"mono"],[3,"matTooltip","click"],["id","sample-calls"],["animationDuration","0ms"],["label","TypeScript"],[3,"options","ngModel"],["label","Kotlin"],["disabled",""],["mat-tab-label",""],[1,"k-arg-name"],[4,"ngIf","ngIfThen","ngIfElse"],["id","labels",1,"container"],["role","list"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[1,"mono","bold"],[1,"mono","selectable"],[3,"matTooltip","click",4,"ngIf"],[1,"no-content"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matTooltip","Em breve!"]],template:function(c,u){1&c&&(i.TgZ(0,"as-split",0)(1,"as-split-area",1)(2,"aside")(3,"form")(4,"input",2),i.NdJ("ngModelChange",function(D){return u.searchText=D}),i.qZA(),i.YNc(5,wp,3,2,"button",3),i.qZA(),i.TgZ(6,"nav"),i.YNc(7,zc,4,5,"ng-template",null,4,i.W1O)(9,Fh,3,4,"ul",5)(10,Dp,2,1,"ng-container",5),i.qZA()()(),i.TgZ(11,"as-split-area"),i.YNc(12,Bd,58,24,"article",5),i.qZA()()),2&c&&(i.Q6J("direction",u.isBelowMd?"vertical":"horizontal"),i.xp6(1),i.Q6J("size",u.isBelowMd?130:350),i.xp6(3),i.Q6J("ngModel",u.searchText)("ngModelOptions",i.DdM(8,ob)),i.xp6(1),i.Q6J("ngIf",u.hasTags),i.xp6(4),i.Q6J("ngIf",!u.hasTags),i.xp6(1),i.Q6J("ngIf",u.hasTags),i.xp6(2),i.Q6J("ngIf",u.selectedFunction))},dependencies:[x.mk,x.sg,x.O5,x.tP,x.RF,x.n9,x.ED,V._Y,V.Fj,V.JJ,V.JL,V.On,V.F,Oa.T2,Td.Mq,Td.zE,_.lW,fi,qe,mi.Hw,M.wG,$l,bs,ri,ha,ua,xn,fa,vs,uc,jl,Oo.uD,Oo.uX,Oo.SP,Vr,X_],styles:['[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden!important}aside[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:#2b2b2b;height:100%;overflow:hidden}aside[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;gap:8px;width:100%;padding:10px;background:#2b2b2b;border-bottom:1px solid #444444}aside[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1 1 auto;display:block;background:#444444;border:0 none;color:#fff;width:100%;padding:5px}aside[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:#444444;border:0 none;border-radius:4px;color:#bbb;cursor:pointer;transition:background-color .15s ease,color .15s ease}aside[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%]:hover{background:#515151;color:#fff}aside[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;line-height:20px}nav[_ngcontent-%COMP%]{display:block;width:100%;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overflow-anchor:none}nav[_ngcontent-%COMP%] summary.fn-group-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin:0;padding:10px 10px 10px 12px;background:#3f3f3f;border-bottom:1px solid #515151;border-left:3px solid #569cd6;color:#ddd;font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;cursor:pointer;-webkit-user-select:none;user-select:none;list-style:none;position:sticky;top:0;z-index:1;transition:background-color .15s ease}nav[_ngcontent-%COMP%] summary.fn-group-title[_ngcontent-%COMP%]:hover{background:#494949}nav[_ngcontent-%COMP%] summary.fn-group-title[_ngcontent-%COMP%]::-webkit-details-marker{display:none}nav[_ngcontent-%COMP%] summary.fn-group-title[_ngcontent-%COMP%]:before{content:"";flex:0 0 auto;width:0;height:0;border-left:4px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s ease}nav[_ngcontent-%COMP%] summary.fn-group-title[_ngcontent-%COMP%] .fn-group-name[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis}nav[_ngcontent-%COMP%] summary.fn-group-title[_ngcontent-%COMP%] .fn-group-count[_ngcontent-%COMP%]{flex:0 0 auto;padding:1px 7px;border-radius:10px;background:rgba(86,156,214,.15);color:#569cd6;font-size:.7rem;font-weight:600}nav[_ngcontent-%COMP%] details[open][_ngcontent-%COMP%] > summary.fn-group-title[_ngcontent-%COMP%]:before{transform:rotate(90deg)}nav[_ngcontent-%COMP%] details[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:32px}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%;padding:15px 10px;border-bottom:1px solid #444444;cursor:pointer;-webkit-user-select:none;user-select:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#0000004d}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-call[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-description[_ngcontent-%COMP%]{color:#777;font-size:.9rem;margin-top:5px}u[_ngcontent-%COMP%]{text-decoration-style:dotted;cursor:pointer;font-family:Roboto Mono,monospace}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-color:#2b2b2b;padding:25px 20px;width:100%;position:sticky;top:0;left:0;right:0;z-index:3}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 auto;font-weight:300;font-size:1.75rem;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{display:flex;overflow:hidden}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] .mat-mdc-chip-action-label{display:flex}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;width:.5px;background:#fff;margin:0 7.5px;border-radius:5px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] .selectable[_ngcontent-%COMP%]{-webkit-user-select:text;user-select:text}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] .bold[_ngcontent-%COMP%]{font-weight:700}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:300;margin-top:40px;text-transform:uppercase}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{background-color:#383838;color:#fafafa;display:inline-block;padding:15px;border-radius:5px;margin-top:0}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] table[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .table-responsive[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-tab-group[_ngcontent-%COMP%]{width:100%;max-width:720px}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%;min-height:300px}']})}return h})();function Vp(h,l){1&h&&(i.ynx(0),i._uU(1,"Editor Avan\xe7ado"),i.BQk())}function $p(h,l){if(1&h&&(i.ynx(0),i.TgZ(1,"span",21),i._uU(2),i.qZA(),i.BQk()),2&h){const o=i.oxw(2).$implicit;i.xp6(2),i.hij("\u25b6\xa0",o.function,"")}}function jp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"span",18),i.YNc(1,Vp,2,0,"ng-container",19)(2,$p,3,1,"ng-container",19),i.qZA(),i.TgZ(3,"button",20),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(2);return i.KtG(p.closeTab(u))}),i.TgZ(4,"mat-icon"),i._uU(5,"close"),i.qZA()()}if(2&h){const o=i.oxw().$implicit;i.Q6J("ngSwitch",o.type),i.xp6(1),i.Q6J("ngSwitchCase","advanced"),i.xp6(1),i.Q6J("ngSwitchCase","simple")}}function Hh(h,l){1&h&&(i.ynx(0),i._UZ(1,"app-tab-editor"),i.BQk())}function Wc(h,l){if(1&h&&(i.ynx(0),i._UZ(1,"app-simple-call",22),i.BQk()),2&h){const o=i.oxw().$implicit;i.xp6(1),i.Q6J("fn",o.function)}}function Uh(h,l){if(1&h&&(i.TgZ(0,"mat-tab"),i.YNc(1,jp,6,3,"ng-template",16),i.ynx(2,18),i.YNc(3,Hh,2,0,"ng-container",19)(4,Wc,2,1,"ng-container",19),i.BQk(),i.qZA()),2&h){const o=l.$implicit;i.xp6(2),i.Q6J("ngSwitch",o.type),i.xp6(1),i.Q6J("ngSwitchCase","advanced"),i.xp6(1),i.Q6J("ngSwitchCase","simple")}}function Vd(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(o);const u=i.oxw(2);return i.KtG(u.addAdvancedTab())}),i.TgZ(1,"mat-icon"),i._uU(2,"add_circle"),i.qZA()()}}function Hp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){i.CHM(o);const u=i.oxw(2);return i.KtG(u.openGlobalExtras())}),i.TgZ(1,"mat-icon"),i._uU(2,"extension"),i.qZA()()}if(2&h){const o=i.oxw(2);i.ekj("active",o.extrasCount>0),i.Q6J("matTooltip",o.extrasTooltip)}}function Qr(h,l){if(1&h&&(i.TgZ(0,"button",25)(1,"mat-icon"),i._uU(2,"download"),i.qZA()()),2&h){i.oxw(2);const o=i.MAs(5);i.Q6J("matMenuTriggerFor",o)}}function zh(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"mat-tab-group",11),i.NdJ("selectedIndexChange",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p.selected.setValue(u))}),i.TgZ(1,"mat-tab",12)(2,"app-tab-home",13),i.NdJ("runFunction",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p.addSimpleTab(u))}),i.qZA()(),i.YNc(3,Uh,5,3,"mat-tab",14),i.TgZ(4,"mat-tab",15),i.YNc(5,Vd,3,0,"ng-template",16),i.qZA(),i.TgZ(6,"mat-tab",17),i.YNc(7,Hp,3,3,"ng-template",16),i.qZA(),i.TgZ(8,"mat-tab",15),i.YNc(9,Qr,3,1,"ng-template",16),i.qZA()()}if(2&h){const o=i.oxw();i.Q6J("selectedIndex",o.selected.value),i.xp6(3),i.Q6J("ngForOf",o.tabs)}}let Up=(()=>{class h{constructor(o,c,u,p,D){this.sdkgen=o,this.dialog=c,this.globalExtras=u,this.domSanitizer=p,this.matIconRegistry=D,this.selected=new V.NI(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const G of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(G,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${G}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(o=>{this.state=o??void 0})}ngOnDestroy(){this.state$?.unsubscribe()}get extrasCount(){return this.globalExtras.count}get extrasTooltip(){return this.extrasCount>0?`Extras globais (${this.extrasCount})`:"Extras globais"}openGlobalExtras(){this.dialog.open(xh,{panelClass:["dialog-responsive"]})}addSimpleTab(o){this.tabs.push({id:this.tabIndex++,function:o,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(o){this.tabs.splice(this.tabs.indexOf(o),1),this.selected.setValue(0)}downloadTarget(o){if(!this.state)return;let c,u;switch(o){case"typescript_nodeserver":c=(0,Bc.generateNodeServerSource)(this.state.astRoot),u="node-server.ts";break;case"typescript_nodeclient":c=(0,Bc.generateNodeClientSource)(this.state.astRoot),u="node-client.ts";break;case"typescript_web":c=(0,Bc.generateBrowserClientSource)(this.state.astRoot),u="web-client.ts";break;case"typescript_interfaces":c=(0,Bc.generateTypescriptInterfaces)(this.state.astRoot),u="interfaces.ts";break;case"flutter":c=(0,Nc.generateDartClientSource)(this.state.astRoot),u="flutter-client.dart";break;case"csharp_server":c=(0,Ns.generateCSharpServerSource)(this.state.astRoot),u="csharp-server.cs";break;case"fsharp_server":c=(0,wh.generateFSharpServerSource)(this.state.astRoot),u="fsharp-server.fs";break;case"kotlin_android":c=(0,Lc.generateAndroidClientSource)(this.state.astRoot,!0),u="android-client.kt";break;case"kotlin_android_without_callbacks":c=(0,Lc.generateAndroidClientSource)(this.state.astRoot,!1),u="android-client-no-callbacks.kt";break;case"swift_ios":c=(0,Fa.generateSwiftClientSource)(this.state.astRoot,!1),u="ios-client.swift";break;case"rxswift_ios":c=(0,Fa.generateSwiftClientSource)(this.state.astRoot,!0),u="ios-client-rx.swift"}(0,dp.saveAs)(new Blob([c],{type:"application/octet-stream"}),u)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Ro.G),i.Y36(Mn),i.Y36(Ch.W),i.Y36(a.H7),i.Y36(mi.jv))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-root"]],decls:46,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["downloadMenu","matMenu"],["id","download-menu-size-flow"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"click"],["svgIcon","typescript"],["svgIcon","dart"],["svgIcon","kotlin"],["svgIcon","swift"],["svgIcon","dot-net"],["id","main-tabs","animationDuration","150ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled","","labelClass","action-button"],["mat-tab-label",""],["disabled","","labelClass","right action-button"],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","matTooltip","Fechar aba",3,"click"],[1,"mono","tt-none"],[3,"fn"],["mat-icon-button","","matTooltip","Nova aba de editor avan\xe7ado",3,"click"],["mat-icon-button","",3,"matTooltip","click"],["mat-icon-button","","matTooltip","Baixar cliente ou servidor",3,"matMenuTriggerFor"]],template:function(c,u){1&c&&(i._UZ(0,"ngx-monaco-editor",0)(1,"app-tab-nav"),i.YNc(2,zh,10,2,"mat-tab-group",1),i.ALo(3,"async"),i.TgZ(4,"mat-menu",null,2),i._UZ(6,"div",3),i.TgZ(7,"button",4),i._uU(8,"Cliente"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_nodeclient")}),i._UZ(10,"mat-icon",6),i._uU(11,"Node.js"),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_web")}),i._UZ(13,"mat-icon",6),i._uU(14,"Web"),i.qZA(),i.TgZ(15,"button",5),i.NdJ("click",function(){return u.downloadTarget("flutter")}),i._UZ(16,"mat-icon",7),i._uU(17,"Flutter"),i.qZA(),i.TgZ(18,"button",5),i.NdJ("click",function(){return u.downloadTarget("kotlin_android")}),i._UZ(19,"mat-icon",8),i._uU(20,"Android"),i.qZA(),i.TgZ(21,"button",5),i.NdJ("click",function(){return u.downloadTarget("kotlin_android_without_callbacks")}),i._UZ(22,"mat-icon",8),i._uU(23,"Android (sem callbacks)"),i.qZA(),i.TgZ(24,"button",5),i.NdJ("click",function(){return u.downloadTarget("swift_ios")}),i._UZ(25,"mat-icon",9),i._uU(26,"iOS"),i.qZA(),i.TgZ(27,"button",5),i.NdJ("click",function(){return u.downloadTarget("rxswift_ios")}),i._UZ(28,"mat-icon",9),i._uU(29,"iOS (Rx)"),i.qZA(),i.TgZ(30,"button",4),i._uU(31,"Servidor"),i.qZA(),i.TgZ(32,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_nodeserver")}),i._UZ(33,"mat-icon",6),i._uU(34,"Node.js"),i.qZA(),i.TgZ(35,"button",5),i.NdJ("click",function(){return u.downloadTarget("csharp_server")}),i._UZ(36,"mat-icon",10),i._uU(37,"C#"),i.qZA(),i.TgZ(38,"button",5),i.NdJ("click",function(){return u.downloadTarget("fsharp_server")}),i._UZ(39,"mat-icon",10),i._uU(40,"F#"),i.qZA(),i.TgZ(41,"button",4),i._uU(42,"Outros"),i.qZA(),i.TgZ(43,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_interfaces")}),i._UZ(44,"mat-icon",6),i._uU(45,"Interfaces"),i.qZA()()),2&c&&(i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,u.sdkgen.state$)))},dependencies:[x.sg,x.O5,x.RF,x.n9,Oa.T2,_.RK,mi.Hw,sa,Lr,He,Oo.uD,Oo.uX,Oo.SP,Vr,Vc.Z,Dh,Eh.I,Bp,x.Ov],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%} app-root mat-tab-group#main-tabs>mat-tab-header{border-bottom:1px solid rgba(255,255,255,.1215686275)} app-root mat-tab-group#main-tabs .mat-mdc-tab{--mat-tab-header-active-label-text-color: #fff;--mat-tab-header-active-focus-label-text-color: #fff;--mat-tab-header-active-hover-label-text-color: #fff;text-decoration:none;transition:all .2s ease;min-width:0;text-transform:uppercase;-webkit-user-select:none;user-select:none;letter-spacing:normal} app-root mat-tab-group#main-tabs .mat-mdc-tab.right{margin-left:auto} app-root mat-tab-group#main-tabs .mat-mdc-tab .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:hover .mdc-tab__ripple:before{opacity:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(#mat-tab-label-0-0){padding-right:16px} app-root mat-tab-group#main-tabs .mat-mdc-tab button.active{color:#ffa726} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button{padding:0;padding-right:0!important;opacity:1;pointer-events:auto} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mdc-tab__content, app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mat-mdc-tab-ripple, app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mdc-tab__ripple:before{pointer-events:all} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button button{border-radius:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(.mat-mdc-tab-disabled) button{border-radius:0;display:inline-block;margin-left:10px;padding:0;width:30px;height:30px;line-height:30px} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(.mat-mdc-tab-disabled) button .mat-icon{width:20px;height:20px;font-size:20px;line-height:20px} app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-icon svg, app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-icon img, app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-add-icon{display:flex;align-items:center;justify-content:center;width:1rem;margin-right:.5rem} app-root mat-tab-group#main-tabs .mat-mdc-tab-body-wrapper{flex-grow:1} app-root mat-tab-group#main-tabs .mat-mdc-tab-body-wrapper mat-tab-body mat-tab-body{flex-grow:1;overflow:hidden} #download-menu-size-flow{width:185px;display:block;max-width:90vw}"]})}return h})(),Gh=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h,bootstrap:[Up]});static#n=this.\u0275inj=i.cJS({providers:[{provide:Oa.F_,useValue:"assets/vs"}],imports:[a.b2,V.u5,V.UX,Oa.nm,fh,Zm.s,sp.forRoot(),Td.fX,Z.JF,_.ot,en,po,mi.Ps,tt,M.si,hc,Oo.Nh,zl]})}return h})();(0,i.G48)(),a.q6().bootstrapModule(Gh).catch(h=>console.error(h))},1505:function(De,C,y){var a;!function(i){"use strict";var O,Z=1e9,V={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},_=!0,v="[DecimalError] ",x=v+"Invalid argument: ",M=v+"Exponent out of range: ",N=Math.floor,P=Math.pow,Y=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,w=1e7,I=7,R=9007199254740991,ie=N(R/I),X={};function ce(le,re){var K,j,F,z,H,Q,de,ge,Fe=le.constructor,Be=Fe.precision;if(!le.s||!re.s)return re.s||(re=new Fe(le)),_?je(re,Be):re;if(ge=re.d,H=le.e,F=re.e,de=(de=le.d).slice(),z=H-F){for(z<0?(j=de,z=-z,Q=ge.length):(j=ge,F=H,Q=de.length),z>(Q=(H=Math.ceil(Be/I))>Q?H+1:Q+1)&&(z=Q,j.length=1),j.reverse();z--;)j.push(0);j.reverse()}for((Q=de.length)-(z=ge.length)<0&&(z=Q,j=ge,ge=de,de=j),K=0;z;)K=(de[--z]=de[z]+ge[z]+K)/w|0,de[z]%=w;for(K&&(de.unshift(K),++F),Q=de.length;0==de[--Q];)de.pop();return re.d=de,re.e=F,_?je(re,Be):re}function Ne(le,re,K){if(le!==~~le||le<re||le>K)throw Error(x+le)}function Ge(le){var re,K,j,F=le.length-1,z="",H=le[0];if(F>0){for(z+=H,re=1;re<F;re++)(K=I-(j=le[re]+"").length)&&(z+=ke(K)),z+=j;(K=I-(j=(H=le[re])+"").length)&&(z+=ke(K))}else if(0===H)return"0";for(;H%10==0;)H/=10;return z+H}X.absoluteValue=X.abs=function(){var le=new this.constructor(this);return le.s&&(le.s=1),le},X.comparedTo=X.cmp=function(le){var re,K,j,F,z=this;if(le=new z.constructor(le),z.s!==le.s)return z.s||-le.s;if(z.e!==le.e)return z.e>le.e^z.s<0?1:-1;for(re=0,K=(j=z.d.length)<(F=le.d.length)?j:F;re<K;++re)if(z.d[re]!==le.d[re])return z.d[re]>le.d[re]^z.s<0?1:-1;return j===F?0:j>F^z.s<0?1:-1},X.decimalPlaces=X.dp=function(){var re=this.d.length-1,K=(re-this.e)*I;if(re=this.d[re])for(;re%10==0;re/=10)K--;return K<0?0:K},X.dividedBy=X.div=function(le){return Ve(this,new this.constructor(le))},X.dividedToIntegerBy=X.idiv=function(le){var K=this.constructor;return je(Ve(this,new K(le),0,1),K.precision)},X.equals=X.eq=function(le){return!this.cmp(le)},X.exponent=function(){return Pe(this)},X.greaterThan=X.gt=function(le){return this.cmp(le)>0},X.greaterThanOrEqualTo=X.gte=function(le){return this.cmp(le)>=0},X.isInteger=X.isint=function(){return this.e>this.d.length-2},X.isNegative=X.isneg=function(){return this.s<0},X.isPositive=X.ispos=function(){return this.s>0},X.isZero=function(){return 0===this.s},X.lessThan=X.lt=function(le){return this.cmp(le)<0},X.lessThanOrEqualTo=X.lte=function(le){return this.cmp(le)<1},X.logarithm=X.log=function(le){var re,K=this,j=K.constructor,F=j.precision,z=F+5;if(void 0===le)le=new j(10);else if((le=new j(le)).s<1||le.eq(O))throw Error(v+"NaN");if(K.s<1)throw Error(v+(K.s?"NaN":"-Infinity"));return K.eq(O)?new j(0):(_=!1,re=Ve(Ce(K,z),Ce(le,z),z),_=!0,je(re,F))},X.minus=X.sub=function(le){return le=new this.constructor(le),this.s==le.s?ut(this,le):ce(this,(le.s=-le.s,le))},X.modulo=X.mod=function(le){var re,K=this,j=K.constructor,F=j.precision;if(!(le=new j(le)).s)throw Error(v+"NaN");return K.s?(_=!1,re=Ve(K,le,0,1).times(le),_=!0,K.minus(re)):je(new j(K),F)},X.naturalExponential=X.exp=function(){return Ae(this)},X.naturalLogarithm=X.ln=function(){return Ce(this)},X.negated=X.neg=function(){var le=new this.constructor(this);return le.s=-le.s||0,le},X.plus=X.add=function(le){return le=new this.constructor(le),this.s==le.s?ce(this,le):ut(this,(le.s=-le.s,le))},X.precision=X.sd=function(le){var re,K,j,F=this;if(void 0!==le&&le!==!!le&&1!==le&&0!==le)throw Error(x+le);if(re=Pe(F)+1,K=(j=F.d.length-1)*I+1,j=F.d[j]){for(;j%10==0;j/=10)K--;for(j=F.d[0];j>=10;j/=10)K++}return le&&re>K?re:K},X.squareRoot=X.sqrt=function(){var le,re,K,j,F,z,H,Q=this,de=Q.constructor;if(Q.s<1){if(!Q.s)return new de(0);throw Error(v+"NaN")}for(le=Pe(Q),_=!1,0==(F=Math.sqrt(+Q))||F==1/0?(((re=Ge(Q.d)).length+le)%2==0&&(re+="0"),F=Math.sqrt(re),le=N((le+1)/2)-(le<0||le%2),j=new de(re=F==1/0?"5e"+le:(re=F.toExponential()).slice(0,re.indexOf("e")+1)+le)):j=new de(F.toString()),F=H=(K=de.precision)+3;;)if(j=(z=j).plus(Ve(Q,z,H+2)).times(.5),Ge(z.d).slice(0,H)===(re=Ge(j.d)).slice(0,H)){if(re=re.slice(H-3,H+1),F==H&&"4999"==re){if(je(z,K+1,0),z.times(z).eq(Q)){j=z;break}}else if("9999"!=re)break;H+=4}return _=!0,je(j,K)},X.times=X.mul=function(le){var re,K,j,F,z,H,Q,de,ge,Fe=this,Be=Fe.constructor,_t=Fe.d,Ke=(le=new Be(le)).d;if(!Fe.s||!le.s)return new Be(0);for(le.s*=Fe.s,K=Fe.e+le.e,(de=_t.length)<(ge=Ke.length)&&(z=_t,_t=Ke,Ke=z,H=de,de=ge,ge=H),z=[],j=H=de+ge;j--;)z.push(0);for(j=ge;--j>=0;){for(re=0,F=de+j;F>j;)Q=z[F]+Ke[j]*_t[F-j-1]+re,z[F--]=Q%w|0,re=Q/w|0;z[F]=(z[F]+re)%w|0}for(;!z[--H];)z.pop();return re?++K:z.shift(),le.d=z,le.e=K,_?je(le,Be.precision):le},X.toDecimalPlaces=X.todp=function(le,re){var K=this,j=K.constructor;return K=new j(K),void 0===le?K:(Ne(le,0,Z),void 0===re?re=j.rounding:Ne(re,0,8),je(K,le+Pe(K)+1,re))},X.toExponential=function(le,re){var K,j=this,F=j.constructor;return void 0===le?K=Dt(j,!0):(Ne(le,0,Z),void 0===re?re=F.rounding:Ne(re,0,8),K=Dt(j=je(new F(j),le+1,re),!0,le+1)),K},X.toFixed=function(le,re){var K,j,F=this,z=F.constructor;return void 0===le?Dt(F):(Ne(le,0,Z),void 0===re?re=z.rounding:Ne(re,0,8),K=Dt((j=je(new z(F),le+Pe(F)+1,re)).abs(),!1,le+Pe(j)+1),F.isneg()&&!F.isZero()?"-"+K:K)},X.toInteger=X.toint=function(){var re=this.constructor;return je(new re(this),Pe(this)+1,re.rounding)},X.toNumber=function(){return+this},X.toPower=X.pow=function(le){var re,K,j,F,z,Q=this,de=Q.constructor,Fe=+(le=new de(le));if(!le.s)return new de(O);if(!(Q=new de(Q)).s){if(le.s<1)throw Error(v+"Infinity");return Q}if(Q.eq(O))return Q;if(j=de.precision,le.eq(O))return je(Q,j);if(z=Q.s,(re=le.e)>=(K=le.d.length-1)){if((K=Fe<0?-Fe:Fe)<=R){for(F=new de(O),re=Math.ceil(j/I+4),_=!1;K%2&&Gt((F=F.times(Q)).d,re),0!==(K=N(K/2));)Gt((Q=Q.times(Q)).d,re);return _=!0,le.s<0?new de(O).div(F):je(F,j)}}else if(z<0)throw Error(v+"NaN");return z=z<0&&1&le.d[Math.max(re,K)]?-1:1,Q.s=1,_=!1,F=le.times(Ce(Q,j+12)),_=!0,(F=Ae(F)).s=z,F},X.toPrecision=function(le,re){var K,j,F=this,z=F.constructor;return void 0===le?j=Dt(F,(K=Pe(F))<=z.toExpNeg||K>=z.toExpPos):(Ne(le,1,Z),void 0===re?re=z.rounding:Ne(re,0,8),j=Dt(F=je(new z(F),le,re),le<=(K=Pe(F))||K<=z.toExpNeg,le)),j},X.toSignificantDigits=X.tosd=function(le,re){var j=this.constructor;return void 0===le?(le=j.precision,re=j.rounding):(Ne(le,1,Z),void 0===re?re=j.rounding:Ne(re,0,8)),je(new j(this),le,re)},X.toString=X.valueOf=X.val=X.toJSON=function(){var re=Pe(this),K=this.constructor;return Dt(this,re<=K.toExpNeg||re>=K.toExpPos)};var Ve=function(){function le(j,F){var z,H=0,Q=j.length;for(j=j.slice();Q--;)j[Q]=(z=j[Q]*F+H)%w|0,H=z/w|0;return H&&j.unshift(H),j}function re(j,F,z,H){var Q,de;if(z!=H)de=z>H?1:-1;else for(Q=de=0;Q<z;Q++)if(j[Q]!=F[Q]){de=j[Q]>F[Q]?1:-1;break}return de}function K(j,F,z){for(var H=0;z--;)j[z]-=H,j[z]=(H=j[z]<F[z]?1:0)*w+j[z]-F[z];for(;!j[0]&&j.length>1;)j.shift()}return function(j,F,z,H){var Q,de,ge,Fe,Be,_t,Ke,et,Me,ze,ne,se,Ee,$e,it,vt,pt,Ft,lt=j.constructor,Pt=j.s==F.s?1:-1,Ct=j.d,nn=F.d;if(!j.s)return new lt(j);if(!F.s)throw Error(v+"Division by zero");for(de=j.e-F.e,pt=nn.length,it=Ct.length,et=(Ke=new lt(Pt)).d=[],ge=0;nn[ge]==(Ct[ge]||0);)++ge;if(nn[ge]>(Ct[ge]||0)&&--de,(se=null==z?z=lt.precision:H?z+(Pe(j)-Pe(F))+1:z)<0)return new lt(0);if(se=se/I+2|0,ge=0,1==pt)for(Fe=0,nn=nn[0],se++;(ge<it||Fe)&&se--;ge++)et[ge]=(Ee=Fe*w+(Ct[ge]||0))/nn|0,Fe=Ee%nn|0;else{for((Fe=w/(nn[0]+1)|0)>1&&(nn=le(nn,Fe),Ct=le(Ct,Fe),pt=nn.length,it=Ct.length),$e=pt,ze=(Me=Ct.slice(0,pt)).length;ze<pt;)Me[ze++]=0;(Ft=nn.slice()).unshift(0),vt=nn[0],nn[1]>=w/2&&++vt;do{Fe=0,(Q=re(nn,Me,pt,ze))<0?(ne=Me[0],pt!=ze&&(ne=ne*w+(Me[1]||0)),(Fe=ne/vt|0)>1?(Fe>=w&&(Fe=w-1),1==(Q=re(Be=le(nn,Fe),Me,_t=Be.length,ze=Me.length))&&(Fe--,K(Be,pt<_t?Ft:nn,_t))):(0==Fe&&(Q=Fe=1),Be=nn.slice()),(_t=Be.length)<ze&&Be.unshift(0),K(Me,Be,ze),-1==Q&&(Q=re(nn,Me,pt,ze=Me.length))<1&&(Fe++,K(Me,pt<ze?Ft:nn,ze)),ze=Me.length):0===Q&&(Fe++,Me=[0]),et[ge++]=Fe,Q&&Me[0]?Me[ze++]=Ct[$e]||0:(Me=[Ct[$e]],ze=1)}while(($e++<it||void 0!==Me[0])&&se--)}return et[0]||et.shift(),Ke.e=de,je(Ke,H?z+Pe(Ke)+1:z)}}();function Ae(le,re){var K,F,z,H,Q,de=0,ge=0,Fe=le.constructor,Be=Fe.precision;if(Pe(le)>16)throw Error(M+Pe(le));if(!le.s)return new Fe(O);for(null==re?(_=!1,Q=Be):Q=re,H=new Fe(.03125);le.abs().gte(.1);)le=le.times(H),ge+=5;for(Q+=Math.log(P(2,ge))/Math.LN10*2+5|0,K=F=z=new Fe(O),Fe.precision=Q;;){if(F=je(F.times(le),Q),K=K.times(++de),Ge((H=z.plus(Ve(F,K,Q))).d).slice(0,Q)===Ge(z.d).slice(0,Q)){for(;ge--;)z=je(z.times(z),Q);return Fe.precision=Be,null==re?(_=!0,je(z,Be)):z}z=H}}function Pe(le){for(var re=le.e*I,K=le.d[0];K>=10;K/=10)re++;return re}function Se(le,re,K){if(re>le.LN10.sd())throw _=!0,K&&(le.precision=K),Error(v+"LN10 precision limit exceeded");return je(new le(le.LN10),re)}function ke(le){for(var re="";le--;)re+="0";return re}function Ce(le,re){var K,j,F,z,H,Q,de,ge,Fe,Be=1,Ke=le,et=Ke.d,Me=Ke.constructor,ze=Me.precision;if(Ke.s<1)throw Error(v+(Ke.s?"NaN":"-Infinity"));if(Ke.eq(O))return new Me(0);if(null==re?(_=!1,ge=ze):ge=re,Ke.eq(10))return null==re&&(_=!0),Se(Me,ge);if(Me.precision=ge+=10,j=(K=Ge(et)).charAt(0),z=Pe(Ke),!(Math.abs(z)<15e14))return de=Se(Me,ge+2,ze).times(z+""),Ke=Ce(new Me(j+"."+K.slice(1)),ge-10).plus(de),Me.precision=ze,null==re?(_=!0,je(Ke,ze)):Ke;for(;j<7&&1!=j||1==j&&K.charAt(1)>3;)j=(K=Ge((Ke=Ke.times(le)).d)).charAt(0),Be++;for(z=Pe(Ke),j>1?(Ke=new Me("0."+K),z++):Ke=new Me(j+"."+K.slice(1)),Q=H=Ke=Ve(Ke.minus(O),Ke.plus(O),ge),Fe=je(Ke.times(Ke),ge),F=3;;){if(H=je(H.times(Fe),ge),Ge((de=Q.plus(Ve(H,new Me(F),ge))).d).slice(0,ge)===Ge(Q.d).slice(0,ge))return Q=Q.times(2),0!==z&&(Q=Q.plus(Se(Me,ge+2,ze).times(z+""))),Q=Ve(Q,new Me(Be),ge),Me.precision=ze,null==re?(_=!0,je(Q,ze)):Q;Q=de,F+=2}}function Te(le,re){var K,j,F;for((K=re.indexOf("."))>-1&&(re=re.replace(".","")),(j=re.search(/e/i))>0?(K<0&&(K=j),K+=+re.slice(j+1),re=re.substring(0,j)):K<0&&(K=re.length),j=0;48===re.charCodeAt(j);)++j;for(F=re.length;48===re.charCodeAt(F-1);)--F;if(re=re.slice(j,F)){if(F-=j,le.e=N((K=K-j-1)/I),le.d=[],j=(K+1)%I,K<0&&(j+=I),j<F){for(j&&le.d.push(+re.slice(0,j)),F-=I;j<F;)le.d.push(+re.slice(j,j+=I));re=re.slice(j),j=I-re.length}else j-=F;for(;j--;)re+="0";if(le.d.push(+re),_&&(le.e>ie||le.e<-ie))throw Error(M+K)}else le.s=0,le.e=0,le.d=[0];return le}function je(le,re,K){var j,F,z,H,Q,de,ge,Fe,Be=le.d;for(H=1,z=Be[0];z>=10;z/=10)H++;if((j=re-H)<0)j+=I,F=re,ge=Be[Fe=0];else{if((Fe=Math.ceil((j+1)/I))>=(z=Be.length))return le;for(ge=z=Be[Fe],H=1;z>=10;z/=10)H++;F=(j%=I)-I+H}if(void 0!==K&&(Q=ge/(z=P(10,H-F-1))%10|0,de=re<0||void 0!==Be[Fe+1]||ge%z,de=K<4?(Q||de)&&(0==K||K==(le.s<0?3:2)):Q>5||5==Q&&(4==K||de||6==K&&(j>0?F>0?ge/P(10,H-F):0:Be[Fe-1])%10&1||K==(le.s<0?8:7))),re<1||!Be[0])return de?(z=Pe(le),Be.length=1,Be[0]=P(10,(I-(re=re-z-1)%I)%I),le.e=N(-re/I)||0):(Be.length=1,Be[0]=le.e=le.s=0),le;if(0==j?(Be.length=Fe,z=1,Fe--):(Be.length=Fe+1,z=P(10,I-j),Be[Fe]=F>0?(ge/P(10,H-F)%P(10,F)|0)*z:0),de)for(;;){if(0==Fe){(Be[0]+=z)==w&&(Be[0]=1,++le.e);break}if(Be[Fe]+=z,Be[Fe]!=w)break;Be[Fe--]=0,z=1}for(j=Be.length;0===Be[--j];)Be.pop();if(_&&(le.e>ie||le.e<-ie))throw Error(M+Pe(le));return le}function ut(le,re){var K,j,F,z,H,Q,de,ge,Fe,Be,_t=le.constructor,Ke=_t.precision;if(!le.s||!re.s)return re.s?re.s=-re.s:re=new _t(le),_?je(re,Ke):re;if(Be=re.d,j=re.e,ge=le.e,de=(de=le.d).slice(),H=ge-j){for((Fe=H<0)?(K=de,H=-H,Q=Be.length):(K=Be,j=ge,Q=de.length),H>(F=Math.max(Math.ceil(Ke/I),Q)+2)&&(H=F,K.length=1),K.reverse(),F=H;F--;)K.push(0);K.reverse()}else{for((Fe=(F=de.length)<(Q=Be.length))&&(Q=F),F=0;F<Q;F++)if(de[F]!=Be[F]){Fe=de[F]<Be[F];break}H=0}for(Fe&&(K=de,de=Be,Be=K,re.s=-re.s),F=Be.length-(Q=de.length);F>0;--F)de[Q++]=0;for(F=Be.length;F>H;){if(de[--F]<Be[F]){for(z=F;z&&0===de[--z];)de[z]=w-1;--de[z],de[F]+=w}de[F]-=Be[F]}for(;0===de[--Q];)de.pop();for(;0===de[0];de.shift())--j;return de[0]?(re.d=de,re.e=j,_?je(re,Ke):re):new _t(0)}function Dt(le,re,K){var j,F=Pe(le),z=Ge(le.d),H=z.length;return re?(K&&(j=K-H)>0?z=z.charAt(0)+"."+z.slice(1)+ke(j):H>1&&(z=z.charAt(0)+"."+z.slice(1)),z=z+(F<0?"e":"e+")+F):F<0?(z="0."+ke(-F-1)+z,K&&(j=K-H)>0&&(z+=ke(j))):F>=H?(z+=ke(F+1-H),K&&(j=K-F-1)>0&&(z=z+"."+ke(j))):((j=F+1)<H&&(z=z.slice(0,j)+"."+z.slice(j)),K&&(j=K-H)>0&&(F+1===H&&(z+="."),z+=ke(j))),le.s<0?"-"+z:z}function Gt(le,re){if(le.length>re)return le.length=re,!0}function Je(le){if(!le||"object"!=typeof le)throw Error(v+"Object expected");var re,K,j,F=["precision",1,Z,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(re=0;re<F.length;re+=3)if(void 0!==(j=le[K=F[re]])){if(!(N(j)===j&&j>=F[re+1]&&j<=F[re+2]))throw Error(x+K+": "+j);this[K]=j}if(void 0!==(j=le[K="LN10"])){if(j!=Math.LN10)throw Error(x+K+": "+j);this[K]=new this(j)}return this}(V=function Wt(le){var re,K,j;function F(z){var H=this;if(!(H instanceof F))return new F(z);if(H.constructor=F,z instanceof F)return H.s=z.s,H.e=z.e,void(H.d=(z=z.d)?z.slice():z);if("number"==typeof z){if(0*z!=0)throw Error(x+z);if(z>0)H.s=1;else{if(!(z<0))return H.s=0,H.e=0,void(H.d=[0]);z=-z,H.s=-1}return z===~~z&&z<1e7?(H.e=0,void(H.d=[z])):Te(H,z.toString())}if("string"!=typeof z)throw Error(x+z);if(45===z.charCodeAt(0)?(z=z.slice(1),H.s=-1):H.s=1,!Y.test(z))throw Error(x+z);Te(H,z)}if(F.prototype=X,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.clone=Wt,F.config=F.set=Je,void 0===le&&(le={}),le)for(j=["precision","rounding","toExpNeg","toExpPos","LN10"],re=0;re<j.length;)le.hasOwnProperty(K=j[re++])||(le[K]=this[K]);return F.config(le),F}(V)).default=V.Decimal=V,O=new V(1),void 0!==(a=function(){return V}.call(C,y,C,De))&&(De.exports=a)}()},5046:function(De,C){var y,i;void 0!==(i="function"==typeof(y=function(){"use strict";function V(P,Y,O){var w=new XMLHttpRequest;w.open("GET",P),w.responseType="blob",w.onload=function(){N(w.response,Y,O)},w.onerror=function(){console.error("could not download file")},w.send()}function _(P){var Y=new XMLHttpRequest;Y.open("HEAD",P,!1);try{Y.send()}catch{}return 200<=Y.status&&299>=Y.status}function v(P){try{P.dispatchEvent(new MouseEvent("click"))}catch{var Y=document.createEvent("MouseEvents");Y.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),P.dispatchEvent(Y)}}var x="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,M=x.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),N=x.saveAs||("object"!=typeof window||window!==x?function(){}:"download"in HTMLAnchorElement.prototype&&!M?function(P,Y,O){var w=x.URL||x.webkitURL,I=document.createElement("a");I.download=Y=Y||P.name||"download",I.rel="noopener","string"==typeof P?(I.href=P,I.origin===location.origin?v(I):_(I.href)?V(P,Y,O):v(I,I.target="_blank")):(I.href=w.createObjectURL(P),setTimeout(function(){w.revokeObjectURL(I.href)},4e4),setTimeout(function(){v(I)},0))}:"msSaveOrOpenBlob"in navigator?function(P,Y,O){if(Y=Y||P.name||"download","string"!=typeof P)navigator.msSaveOrOpenBlob(function Z(P,Y){return typeof Y>"u"?Y={autoBom:!1}:"object"!=typeof Y&&(console.warn("Deprecated: Expected third argument to be a object"),Y={autoBom:!Y}),Y.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(P.type)?new Blob(["\ufeff",P],{type:P.type}):P}(P,O),Y);else if(_(P))V(P,Y,O);else{var w=document.createElement("a");w.href=P,w.target="_blank",setTimeout(function(){v(w)})}}:function(P,Y,O,w){if((w=w||open("","_blank"))&&(w.document.title=w.document.body.innerText="downloading..."),"string"==typeof P)return V(P,Y,O);var I="application/octet-stream"===P.type,R=/constructor/i.test(x.HTMLElement)||x.safari,ie=/CriOS\/[\d]+/.test(navigator.userAgent);if((ie||I&&R||M)&&typeof FileReader<"u"){var X=new FileReader;X.onloadend=function(){var Ge=X.result;Ge=ie?Ge:Ge.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=Ge:location=Ge,w=null},X.readAsDataURL(P)}else{var ce=x.URL||x.webkitURL,Ne=ce.createObjectURL(P);w?w.location=Ne:location.href=Ne,w=null,setTimeout(function(){ce.revokeObjectURL(Ne)},4e4)}});x.saveAs=N.saveAs=N,De.exports=N})?y.apply(C,[]):y)&&(De.exports=i)},1625:(De,C,y)=>{"use strict";y.d(C,{X:()=>i});var a=y(9453);class i extends a.x{constructor(V){super(),this._value=V}get value(){return this.getValue()}_subscribe(V){const _=super._subscribe(V);return!_.closed&&V.next(this._value),_}getValue(){const{hasError:V,thrownError:_,_value:v}=this;if(V)throw _;return this._throwIfClosed(),v}next(V){super.next(this._value=V)}}},7371:(De,C,y)=>{"use strict";y.d(C,{y:()=>P});var a=y(9224),i=y(9592),Z=y(7878),V=y(2390);var x=y(6786),M=y(3276),N=y(1685);let P=(()=>{class I{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const X=new I;return X.source=this,X.operator=ie,X}subscribe(ie,X,ce){const Ne=function w(I){return I&&I instanceof a.Lv||function O(I){return I&&(0,M.m)(I.next)&&(0,M.m)(I.error)&&(0,M.m)(I.complete)}(I)&&(0,i.Nn)(I)}(ie)?ie:new a.Hp(ie,X,ce);return(0,N.x)(()=>{const{operator:Ge,source:Ve}=this;Ne.add(Ge?Ge.call(Ne,Ve):Ve?this._subscribe(Ne):this._trySubscribe(Ne))}),Ne}_trySubscribe(ie){try{return this._subscribe(ie)}catch(X){ie.error(X)}}forEach(ie,X){return new(X=Y(X))((ce,Ne)=>{const Ge=new a.Hp({next:Ve=>{try{ie(Ve)}catch(Ae){Ne(Ae),Ge.unsubscribe()}},error:Ne,complete:ce});this.subscribe(Ge)})}_subscribe(ie){var X;return null===(X=this.source)||void 0===X?void 0:X.subscribe(ie)}[Z.L](){return this}pipe(...ie){return function v(I){return 0===I.length?V.y:1===I.length?I[0]:function(ie){return I.reduce((X,ce)=>ce(X),ie)}}(ie)(this)}toPromise(ie){return new(ie=Y(ie))((X,ce)=>{let Ne;this.subscribe(Ge=>Ne=Ge,Ge=>ce(Ge),()=>X(Ne))})}}return I.create=R=>new I(R),I})();function Y(I){var R;return null!==(R=I??x.config.Promise)&&void 0!==R?R:Promise}},9453:(De,C,y)=>{"use strict";y.d(C,{x:()=>x});var a=y(7371),i=y(9592);const V=(0,y(3374).d)(N=>function(){N(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var _=y(7352),v=y(1685);let x=(()=>{class N extends a.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Y){const O=new M(this,this);return O.operator=Y,O}_throwIfClosed(){if(this.closed)throw new V}next(Y){(0,v.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const O of this.currentObservers)O.next(Y)}})}error(Y){(0,v.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Y;const{observers:O}=this;for(;O.length;)O.shift().error(Y)}})}complete(){(0,v.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Y}=this;for(;Y.length;)Y.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Y;return(null===(Y=this.observers)||void 0===Y?void 0:Y.length)>0}_trySubscribe(Y){return this._throwIfClosed(),super._trySubscribe(Y)}_subscribe(Y){return this._throwIfClosed(),this._checkFinalizedStatuses(Y),this._innerSubscribe(Y)}_innerSubscribe(Y){const{hasError:O,isStopped:w,observers:I}=this;return O||w?i.Lc:(this.currentObservers=null,I.push(Y),new i.w0(()=>{this.currentObservers=null,(0,_.P)(I,Y)}))}_checkFinalizedStatuses(Y){const{hasError:O,thrownError:w,isStopped:I}=this;O?Y.error(w):I&&Y.complete()}asObservable(){const Y=new a.y;return Y.source=this,Y}}return N.create=(P,Y)=>new M(P,Y),N})();class M extends x{constructor(P,Y){super(),this.destination=P,this.source=Y}next(P){var Y,O;null===(O=null===(Y=this.destination)||void 0===Y?void 0:Y.next)||void 0===O||O.call(Y,P)}error(P){var Y,O;null===(O=null===(Y=this.destination)||void 0===Y?void 0:Y.error)||void 0===O||O.call(Y,P)}complete(){var P,Y;null===(Y=null===(P=this.destination)||void 0===P?void 0:P.complete)||void 0===Y||Y.call(P)}_subscribe(P){var Y,O;return null!==(O=null===(Y=this.source)||void 0===Y?void 0:Y.subscribe(P))&&void 0!==O?O:i.Lc}}},9224:(De,C,y)=>{"use strict";y.d(C,{Hp:()=>ie,Lv:()=>O});var a=y(3276),i=y(9592),Z=y(6786),V=y(5625),_=y(1952);const v=N("C",void 0,void 0);function N(Ve,Ae,Pe){return{kind:Ve,value:Ae,error:Pe}}var P=y(1296),Y=y(1685);class O extends i.w0{constructor(Ae){super(),this.isStopped=!1,Ae?(this.destination=Ae,(0,i.Nn)(Ae)&&Ae.add(this)):this.destination=Ge}static create(Ae,Pe,Se){return new ie(Ae,Pe,Se)}next(Ae){this.isStopped?Ne(function M(Ve){return N("N",Ve,void 0)}(Ae),this):this._next(Ae)}error(Ae){this.isStopped?Ne(function x(Ve){return N("E",void 0,Ve)}(Ae),this):(this.isStopped=!0,this._error(Ae))}complete(){this.isStopped?Ne(v,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ae){this.destination.next(Ae)}_error(Ae){try{this.destination.error(Ae)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const w=Function.prototype.bind;function I(Ve,Ae){return w.call(Ve,Ae)}class R{constructor(Ae){this.partialObserver=Ae}next(Ae){const{partialObserver:Pe}=this;if(Pe.next)try{Pe.next(Ae)}catch(Se){X(Se)}}error(Ae){const{partialObserver:Pe}=this;if(Pe.error)try{Pe.error(Ae)}catch(Se){X(Se)}else X(Ae)}complete(){const{partialObserver:Ae}=this;if(Ae.complete)try{Ae.complete()}catch(Pe){X(Pe)}}}class ie extends O{constructor(Ae,Pe,Se){let ke;if(super(),(0,a.m)(Ae)||!Ae)ke={next:Ae??void 0,error:Pe??void 0,complete:Se??void 0};else{let Ce;this&&Z.config.useDeprecatedNextContext?(Ce=Object.create(Ae),Ce.unsubscribe=()=>this.unsubscribe(),ke={next:Ae.next&&I(Ae.next,Ce),error:Ae.error&&I(Ae.error,Ce),complete:Ae.complete&&I(Ae.complete,Ce)}):ke=Ae}this.destination=new R(ke)}}function X(Ve){Z.config.useDeprecatedSynchronousErrorHandling?(0,Y.O)(Ve):(0,V.h)(Ve)}function Ne(Ve,Ae){const{onStoppedNotification:Pe}=Z.config;Pe&&P.z.setTimeout(()=>Pe(Ve,Ae))}const Ge={closed:!0,next:_.Z,error:function ce(Ve){throw Ve},complete:_.Z}},9592:(De,C,y)=>{"use strict";y.d(C,{Lc:()=>v,w0:()=>_,Nn:()=>x});var a=y(3276);const Z=(0,y(3374).d)(N=>function(Y){N(this),this.message=Y?`${Y.length} errors occurred during unsubscription:\n${Y.map((O,w)=>`${w+1}) ${O.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Y});var V=y(7352);class _{constructor(P){this.initialTeardown=P,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let P;if(!this.closed){this.closed=!0;const{_parentage:Y}=this;if(Y)if(this._parentage=null,Array.isArray(Y))for(const I of Y)I.remove(this);else Y.remove(this);const{initialTeardown:O}=this;if((0,a.m)(O))try{O()}catch(I){P=I instanceof Z?I.errors:[I]}const{_finalizers:w}=this;if(w){this._finalizers=null;for(const I of w)try{M(I)}catch(R){P=P??[],R instanceof Z?P=[...P,...R.errors]:P.push(R)}}if(P)throw new Z(P)}}add(P){var Y;if(P&&P!==this)if(this.closed)M(P);else{if(P instanceof _){if(P.closed||P._hasParent(this))return;P._addParent(this)}(this._finalizers=null!==(Y=this._finalizers)&&void 0!==Y?Y:[]).push(P)}}_hasParent(P){const{_parentage:Y}=this;return Y===P||Array.isArray(Y)&&Y.includes(P)}_addParent(P){const{_parentage:Y}=this;this._parentage=Array.isArray(Y)?(Y.push(P),Y):Y?[Y,P]:P}_removeParent(P){const{_parentage:Y}=this;Y===P?this._parentage=null:Array.isArray(Y)&&(0,V.P)(Y,P)}remove(P){const{_finalizers:Y}=this;Y&&(0,V.P)(Y,P),P instanceof _&&P._removeParent(this)}}_.EMPTY=(()=>{const N=new _;return N.closed=!0,N})();const v=_.EMPTY;function x(N){return N instanceof _||N&&"closed"in N&&(0,a.m)(N.remove)&&(0,a.m)(N.add)&&(0,a.m)(N.unsubscribe)}function M(N){(0,a.m)(N)?N():N.unsubscribe()}},6786:(De,C,y)=>{"use strict";y.d(C,{config:()=>a});const a={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9925:(De,C,y)=>{"use strict";y.d(C,{z:()=>_});var a=y(5326),Z=y(177),V=y(107);function _(...v){return function i(){return(0,a.J)(1)}()((0,V.D)(v,(0,Z.yG)(v)))}},8025:(De,C,y)=>{"use strict";y.d(C,{E:()=>i});const i=new(y(7371).y)(_=>_.complete())},6312:(De,C,y)=>{"use strict";y.d(C,{D:()=>M});var a=y(7371),i=y(1003),Z=y(8299),V=y(177),_=y(2829),v=y(4574),x=y(5017);function M(...N){const P=(0,V.jO)(N),{args:Y,keys:O}=(0,i.D)(N),w=new a.y(I=>{const{length:R}=Y;if(!R)return void I.complete();const ie=new Array(R);let X=R,ce=R;for(let Ne=0;Ne<R;Ne++){let Ge=!1;(0,Z.Xf)(Y[Ne]).subscribe((0,_.x)(I,Ve=>{Ge||(Ge=!0,ce--),ie[Ne]=Ve},()=>X--,void 0,()=>{(!X||!Ge)&&(ce||I.next(O?(0,x.n)(O,ie):ie),I.complete())}))}});return P?w.pipe((0,v.Z)(P)):w}},107:(De,C,y)=>{"use strict";y.d(C,{D:()=>Se});var a=y(8299),i=y(8382),Z=y(4049),V=y(2829);function _(ke,Ce=0){return(0,Z.e)((Te,je)=>{Te.subscribe((0,V.x)(je,ut=>(0,i.f)(je,ke,()=>je.next(ut),Ce),()=>(0,i.f)(je,ke,()=>je.complete(),Ce),ut=>(0,i.f)(je,ke,()=>je.error(ut),Ce)))})}function v(ke,Ce=0){return(0,Z.e)((Te,je)=>{je.add(ke.schedule(()=>Te.subscribe(je),Ce))})}var N=y(7371),Y=y(8279),O=y(3276);function I(ke,Ce){if(!ke)throw new Error("Iterable cannot be null");return new N.y(Te=>{(0,i.f)(Te,Ce,()=>{const je=ke[Symbol.asyncIterator]();(0,i.f)(Te,Ce,()=>{je.next().then(ut=>{ut.done?Te.complete():Te.next(ut.value)})},0,!0)})})}var R=y(8620),ie=y(2753),X=y(4936),ce=y(5074),Ne=y(5e3),Ge=y(1380),Ve=y(3130);function Se(ke,Ce){return Ce?function Pe(ke,Ce){if(null!=ke){if((0,R.c)(ke))return function x(ke,Ce){return(0,a.Xf)(ke).pipe(v(Ce),_(Ce))}(ke,Ce);if((0,X.z)(ke))return function P(ke,Ce){return new N.y(Te=>{let je=0;return Ce.schedule(function(){je===ke.length?Te.complete():(Te.next(ke[je++]),Te.closed||this.schedule())})})}(ke,Ce);if((0,ie.t)(ke))return function M(ke,Ce){return(0,a.Xf)(ke).pipe(v(Ce),_(Ce))}(ke,Ce);if((0,Ne.D)(ke))return I(ke,Ce);if((0,ce.T)(ke))return function w(ke,Ce){return new N.y(Te=>{let je;return(0,i.f)(Te,Ce,()=>{je=ke[Y.h](),(0,i.f)(Te,Ce,()=>{let ut,Dt;try{({value:ut,done:Dt}=je.next())}catch(Gt){return void Te.error(Gt)}Dt?Te.complete():Te.next(ut)},0,!0)}),()=>(0,O.m)(je?.return)&&je.return()})}(ke,Ce);if((0,Ve.L)(ke))return function Ae(ke,Ce){return I((0,Ve.Q)(ke),Ce)}(ke,Ce)}throw(0,Ge.z)(ke)}(ke,Ce):(0,a.Xf)(ke)}},6058:(De,C,y)=>{"use strict";y.d(C,{R:()=>P});var a=y(8299),i=y(7371),Z=y(5123),V=y(4936),_=y(3276),v=y(4574);const x=["addListener","removeListener"],M=["addEventListener","removeEventListener"],N=["on","off"];function P(R,ie,X,ce){if((0,_.m)(X)&&(ce=X,X=void 0),ce)return P(R,ie,X).pipe((0,v.Z)(ce));const[Ne,Ge]=function I(R){return(0,_.m)(R.addEventListener)&&(0,_.m)(R.removeEventListener)}(R)?M.map(Ve=>Ae=>R[Ve](ie,Ae,X)):function O(R){return(0,_.m)(R.addListener)&&(0,_.m)(R.removeListener)}(R)?x.map(Y(R,ie)):function w(R){return(0,_.m)(R.on)&&(0,_.m)(R.off)}(R)?N.map(Y(R,ie)):[];if(!Ne&&(0,V.z)(R))return(0,Z.z)(Ve=>P(Ve,ie,X))((0,a.Xf)(R));if(!Ne)throw new TypeError("Invalid event target");return new i.y(Ve=>{const Ae=(...Pe)=>Ve.next(1<Pe.length?Pe:Pe[0]);return Ne(Ae),()=>Ge(Ae)})}function Y(R,ie){return X=>ce=>R[X](ie,ce)}},8299:(De,C,y)=>{"use strict";y.d(C,{Xf:()=>w});var a=y(2970),i=y(4936),Z=y(2753),V=y(7371),_=y(8620),v=y(5e3),x=y(1380),M=y(5074),N=y(3130),P=y(3276),Y=y(5625),O=y(7878);function w(Ve){if(Ve instanceof V.y)return Ve;if(null!=Ve){if((0,_.c)(Ve))return function I(Ve){return new V.y(Ae=>{const Pe=Ve[O.L]();if((0,P.m)(Pe.subscribe))return Pe.subscribe(Ae);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ve);if((0,i.z)(Ve))return function R(Ve){return new V.y(Ae=>{for(let Pe=0;Pe<Ve.length&&!Ae.closed;Pe++)Ae.next(Ve[Pe]);Ae.complete()})}(Ve);if((0,Z.t)(Ve))return function ie(Ve){return new V.y(Ae=>{Ve.then(Pe=>{Ae.closed||(Ae.next(Pe),Ae.complete())},Pe=>Ae.error(Pe)).then(null,Y.h)})}(Ve);if((0,v.D)(Ve))return ce(Ve);if((0,M.T)(Ve))return function X(Ve){return new V.y(Ae=>{for(const Pe of Ve)if(Ae.next(Pe),Ae.closed)return;Ae.complete()})}(Ve);if((0,N.L)(Ve))return function Ne(Ve){return ce((0,N.Q)(Ve))}(Ve)}throw(0,x.z)(Ve)}function ce(Ve){return new V.y(Ae=>{(function Ge(Ve,Ae){var Pe,Se,ke,Ce;return(0,a.mG)(this,void 0,void 0,function*(){try{for(Pe=(0,a.KL)(Ve);!(Se=yield Pe.next()).done;)if(Ae.next(Se.value),Ae.closed)return}catch(Te){ke={error:Te}}finally{try{Se&&!Se.done&&(Ce=Pe.return)&&(yield Ce.call(Pe))}finally{if(ke)throw ke.error}}Ae.complete()})})(Ve,Ae).catch(Pe=>Ae.error(Pe))})}},4991:(De,C,y)=>{"use strict";y.d(C,{T:()=>v});var a=y(5326),i=y(8299),Z=y(8025),V=y(177),_=y(107);function v(...x){const M=(0,V.yG)(x),N=(0,V._6)(x,1/0),P=x;return P.length?1===P.length?(0,i.Xf)(P[0]):(0,a.J)(N)((0,_.D)(P,M)):Z.E}},9627:(De,C,y)=>{"use strict";y.d(C,{of:()=>Z});var a=y(177),i=y(107);function Z(...V){const _=(0,a.yG)(V);return(0,i.D)(V,_)}},5117:(De,C,y)=>{"use strict";y.d(C,{H:()=>_});var a=y(7371),i=y(6589),Z=y(3946);function _(v=0,x,M=i.P){let N=-1;return null!=x&&((0,Z.K)(x)?M=x:N=x),new a.y(P=>{let Y=function V(v){return v instanceof Date&&!isNaN(v)}(v)?+v-M.now():v;Y<0&&(Y=0);let O=0;return M.schedule(function(){P.closed||(P.next(O++),0<=N?this.schedule(void 0,N):P.complete())},Y)})}},2829:(De,C,y)=>{"use strict";y.d(C,{x:()=>i});var a=y(9224);function i(V,_,v,x,M){return new Z(V,_,v,x,M)}class Z extends a.Lv{constructor(_,v,x,M,N,P){super(_),this.onFinalize=N,this.shouldUnsubscribe=P,this._next=v?function(Y){try{v(Y)}catch(O){_.error(O)}}:super._next,this._error=M?function(Y){try{M(Y)}catch(O){_.error(O)}finally{this.unsubscribe()}}:super._error,this._complete=x?function(){try{x()}catch(Y){_.error(Y)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var _;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:v}=this;super.unsubscribe(),!v&&(null===(_=this.onFinalize)||void 0===_||_.call(this))}}}},2067:(De,C,y)=>{"use strict";y.d(C,{b:()=>V});var a=y(6589),i=y(4049),Z=y(2829);function V(_,v=a.z){return(0,i.e)((x,M)=>{let N=null,P=null,Y=null;const O=()=>{if(N){N.unsubscribe(),N=null;const I=P;P=null,M.next(I)}};function w(){const I=Y+_,R=v.now();if(R<I)return N=this.schedule(void 0,I-R),void M.add(N);O()}x.subscribe((0,Z.x)(M,I=>{P=I,Y=v.now(),N||(N=v.schedule(w,_),M.add(N))},()=>{O(),M.complete()},void 0,()=>{P=N=null}))})}},4263:(De,C,y)=>{"use strict";y.d(C,{x:()=>V});var a=y(2390),i=y(4049),Z=y(2829);function V(v,x=a.y){return v=v??_,(0,i.e)((M,N)=>{let P,Y=!0;M.subscribe((0,Z.x)(N,O=>{const w=x(O);(Y||!v(P,w))&&(Y=!1,P=w,N.next(O))}))})}function _(v,x){return v===x}},1497:(De,C,y)=>{"use strict";y.d(C,{h:()=>Z});var a=y(4049),i=y(2829);function Z(V,_){return(0,a.e)((v,x)=>{let M=0;v.subscribe((0,i.x)(x,N=>V.call(_,N,M++)&&x.next(N)))})}},1927:(De,C,y)=>{"use strict";y.d(C,{x:()=>i});var a=y(4049);function i(Z){return(0,a.e)((V,_)=>{try{V.subscribe(_)}finally{_.add(Z)}})}},8412:(De,C,y)=>{"use strict";y.d(C,{U:()=>Z});var a=y(4049),i=y(2829);function Z(V,_){return(0,a.e)((v,x)=>{let M=0;v.subscribe((0,i.x)(x,N=>{x.next(V.call(_,N,M++))}))})}},5326:(De,C,y)=>{"use strict";y.d(C,{J:()=>Z});var a=y(5123),i=y(2390);function Z(V=1/0){return(0,a.z)(i.y,V)}},5123:(De,C,y)=>{"use strict";y.d(C,{z:()=>M});var a=y(8412),i=y(8299),Z=y(4049),V=y(8382),_=y(2829),x=y(3276);function M(N,P,Y=1/0){return(0,x.m)(P)?M((O,w)=>(0,a.U)((I,R)=>P(O,I,w,R))((0,i.Xf)(N(O,w))),Y):("number"==typeof P&&(Y=P),(0,Z.e)((O,w)=>function v(N,P,Y,O,w,I,R,ie){const X=[];let ce=0,Ne=0,Ge=!1;const Ve=()=>{Ge&&!X.length&&!ce&&P.complete()},Ae=Se=>ce<O?Pe(Se):X.push(Se),Pe=Se=>{I&&P.next(Se),ce++;let ke=!1;(0,i.Xf)(Y(Se,Ne++)).subscribe((0,_.x)(P,Ce=>{w?.(Ce),I?Ae(Ce):P.next(Ce)},()=>{ke=!0},void 0,()=>{if(ke)try{for(ce--;X.length&&ce<O;){const Ce=X.shift();R?(0,V.f)(P,R,()=>Pe(Ce)):Pe(Ce)}Ve()}catch(Ce){P.error(Ce)}}))};return N.subscribe((0,_.x)(P,Ae,()=>{Ge=!0,Ve()})),()=>{ie?.()}}(O,w,N,Y)))}},1800:(De,C,y)=>{"use strict";y.d(C,{T:()=>i});var a=y(1497);function i(Z){return(0,a.h)((V,_)=>Z<=_)}},19:(De,C,y)=>{"use strict";y.d(C,{O:()=>V});var a=y(9925),i=y(177),Z=y(4049);function V(..._){const v=(0,i.yG)(_);return(0,Z.e)((x,M)=>{(v?(0,a.z)(_,x,v):(0,a.z)(_,x)).subscribe(M)})}},2835:(De,C,y)=>{"use strict";y.d(C,{w:()=>V});var a=y(8299),i=y(4049),Z=y(2829);function V(_,v){return(0,i.e)((x,M)=>{let N=null,P=0,Y=!1;const O=()=>Y&&!N&&M.complete();x.subscribe((0,Z.x)(M,w=>{N?.unsubscribe();let I=0;const R=P++;(0,a.Xf)(_(w,R)).subscribe(N=(0,Z.x)(M,ie=>M.next(v?v(w,ie,R,I++):ie),()=>{N=null,O()}))},()=>{Y=!0,O()}))})}},3581:(De,C,y)=>{"use strict";y.d(C,{q:()=>V});var a=y(8025),i=y(4049),Z=y(2829);function V(_){return _<=0?()=>a.E:(0,i.e)((v,x)=>{let M=0;v.subscribe((0,Z.x)(x,N=>{++M<=_&&(x.next(N),_<=M&&x.complete())}))})}},5779:(De,C,y)=>{"use strict";y.d(C,{R:()=>_});var a=y(4049),i=y(2829),Z=y(8299),V=y(1952);function _(v){return(0,a.e)((x,M)=>{(0,Z.Xf)(v).subscribe((0,i.x)(M,()=>M.complete(),V.Z)),!M.closed&&x.subscribe(M)})}},4104:(De,C,y)=>{"use strict";y.d(C,{b:()=>_});var a=y(3276),i=y(4049),Z=y(2829),V=y(2390);function _(v,x,M){const N=(0,a.m)(v)||x||M?{next:v,error:x,complete:M}:v;return N?(0,i.e)((P,Y)=>{var O;null===(O=N.subscribe)||void 0===O||O.call(N);let w=!0;P.subscribe((0,Z.x)(Y,I=>{var R;null===(R=N.next)||void 0===R||R.call(N,I),Y.next(I)},()=>{var I;w=!1,null===(I=N.complete)||void 0===I||I.call(N),Y.complete()},I=>{var R;w=!1,null===(R=N.error)||void 0===R||R.call(N,I),Y.error(I)},()=>{var I,R;w&&(null===(I=N.unsubscribe)||void 0===I||I.call(N)),null===(R=N.finalize)||void 0===R||R.call(N)}))}):V.y}},2290:(De,C,y)=>{"use strict";y.d(C,{o:()=>_});var a=y(9592);class i extends a.w0{constructor(x,M){super()}schedule(x,M=0){return this}}const Z={setInterval(v,x,...M){const{delegate:N}=Z;return N?.setInterval?N.setInterval(v,x,...M):setInterval(v,x,...M)},clearInterval(v){const{delegate:x}=Z;return(x?.clearInterval||clearInterval)(v)},delegate:void 0};var V=y(7352);class _ extends i{constructor(x,M){super(x,M),this.scheduler=x,this.work=M,this.pending=!1}schedule(x,M=0){var N;if(this.closed)return this;this.state=x;const P=this.id,Y=this.scheduler;return null!=P&&(this.id=this.recycleAsyncId(Y,P,M)),this.pending=!0,this.delay=M,this.id=null!==(N=this.id)&&void 0!==N?N:this.requestAsyncId(Y,this.id,M),this}requestAsyncId(x,M,N=0){return Z.setInterval(x.flush.bind(x,this),N)}recycleAsyncId(x,M,N=0){if(null!=N&&this.delay===N&&!1===this.pending)return M;null!=M&&Z.clearInterval(M)}execute(x,M){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const N=this._execute(x,M);if(N)return N;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(x,M){let P,N=!1;try{this.work(x)}catch(Y){N=!0,P=Y||new Error("Scheduled action threw falsy error")}if(N)return this.unsubscribe(),P}unsubscribe(){if(!this.closed){const{id:x,scheduler:M}=this,{actions:N}=M;this.work=this.state=this.scheduler=null,this.pending=!1,(0,V.P)(N,this),null!=x&&(this.id=this.recycleAsyncId(M,x,null)),this.delay=null,super.unsubscribe()}}}},5349:(De,C,y)=>{"use strict";y.d(C,{v:()=>Z});const a={now:()=>(a.delegate||Date).now(),delegate:void 0};class i{constructor(_,v=i.now){this.schedulerActionCtor=_,this.now=v}schedule(_,v=0,x){return new this.schedulerActionCtor(this,_).schedule(x,v)}}i.now=a.now;class Z extends i{constructor(_,v=i.now){super(_,v),this.actions=[],this._active=!1}flush(_){const{actions:v}=this;if(this._active)return void v.push(_);let x;this._active=!0;do{if(x=_.execute(_.state,_.delay))break}while(_=v.shift());if(this._active=!1,x){for(;_=v.shift();)_.unsubscribe();throw x}}}},4453:(De,C,y)=>{"use strict";y.d(C,{E:()=>I});var a=y(2290);let Z,i=1;const V={};function _(ie){return ie in V&&(delete V[ie],!0)}const v={setImmediate(ie){const X=i++;return V[X]=!0,Z||(Z=Promise.resolve()),Z.then(()=>_(X)&&ie()),X},clearImmediate(ie){_(ie)}},{setImmediate:M,clearImmediate:N}=v,P={setImmediate(...ie){const{delegate:X}=P;return(X?.setImmediate||M)(...ie)},clearImmediate(ie){const{delegate:X}=P;return(X?.clearImmediate||N)(ie)},delegate:void 0};var O=y(5349);const I=new class w extends O.v{flush(X){this._active=!0;const ce=this._scheduled;this._scheduled=void 0;const{actions:Ne}=this;let Ge;X=X||Ne.shift();do{if(Ge=X.execute(X.state,X.delay))break}while((X=Ne[0])&&X.id===ce&&Ne.shift());if(this._active=!1,Ge){for(;(X=Ne[0])&&X.id===ce&&Ne.shift();)X.unsubscribe();throw Ge}}}(class Y extends a.o{constructor(X,ce){super(X,ce),this.scheduler=X,this.work=ce}requestAsyncId(X,ce,Ne=0){return null!==Ne&&Ne>0?super.requestAsyncId(X,ce,Ne):(X.actions.push(this),X._scheduled||(X._scheduled=P.setImmediate(X.flush.bind(X,void 0))))}recycleAsyncId(X,ce,Ne=0){var Ge;if(null!=Ne?Ne>0:this.delay>0)return super.recycleAsyncId(X,ce,Ne);const{actions:Ve}=X;null!=ce&&(null===(Ge=Ve[Ve.length-1])||void 0===Ge?void 0:Ge.id)!==ce&&(P.clearImmediate(ce),X._scheduled===ce&&(X._scheduled=void 0))}})},6589:(De,C,y)=>{"use strict";y.d(C,{P:()=>V,z:()=>Z});var a=y(2290);const Z=new(y(5349).v)(a.o),V=Z},1296:(De,C,y)=>{"use strict";y.d(C,{z:()=>a});const a={setTimeout(i,Z,...V){const{delegate:_}=a;return _?.setTimeout?_.setTimeout(i,Z,...V):setTimeout(i,Z,...V)},clearTimeout(i){const{delegate:Z}=a;return(Z?.clearTimeout||clearTimeout)(i)},delegate:void 0}},8279:(De,C,y)=>{"use strict";y.d(C,{h:()=>i});const i=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},7878:(De,C,y)=>{"use strict";y.d(C,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},177:(De,C,y)=>{"use strict";y.d(C,{_6:()=>v,jO:()=>V,yG:()=>_});var a=y(3276),i=y(3946);function Z(x){return x[x.length-1]}function V(x){return(0,a.m)(Z(x))?x.pop():void 0}function _(x){return(0,i.K)(Z(x))?x.pop():void 0}function v(x,M){return"number"==typeof Z(x)?x.pop():M}},1003:(De,C,y)=>{"use strict";y.d(C,{D:()=>_});const{isArray:a}=Array,{getPrototypeOf:i,prototype:Z,keys:V}=Object;function _(x){if(1===x.length){const M=x[0];if(a(M))return{args:M,keys:null};if(function v(x){return x&&"object"==typeof x&&i(x)===Z}(M)){const N=V(M);return{args:N.map(P=>M[P]),keys:N}}}return{args:x,keys:null}}},7352:(De,C,y)=>{"use strict";function a(i,Z){if(i){const V=i.indexOf(Z);0<=V&&i.splice(V,1)}}y.d(C,{P:()=>a})},3374:(De,C,y)=>{"use strict";function a(i){const V=i(_=>{Error.call(_),_.stack=(new Error).stack});return V.prototype=Object.create(Error.prototype),V.prototype.constructor=V,V}y.d(C,{d:()=>a})},5017:(De,C,y)=>{"use strict";function a(i,Z){return i.reduce((V,_,v)=>(V[_]=Z[v],V),{})}y.d(C,{n:()=>a})},1685:(De,C,y)=>{"use strict";y.d(C,{O:()=>V,x:()=>Z});var a=y(6786);let i=null;function Z(_){if(a.config.useDeprecatedSynchronousErrorHandling){const v=!i;if(v&&(i={errorThrown:!1,error:null}),_(),v){const{errorThrown:x,error:M}=i;if(i=null,x)throw M}}else _()}function V(_){a.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=_)}},8382:(De,C,y)=>{"use strict";function a(i,Z,V,_=0,v=!1){const x=Z.schedule(function(){V(),v?i.add(this.schedule(null,_)):this.unsubscribe()},_);if(i.add(x),!v)return x}y.d(C,{f:()=>a})},2390:(De,C,y)=>{"use strict";function a(i){return i}y.d(C,{y:()=>a})},4936:(De,C,y)=>{"use strict";y.d(C,{z:()=>a});const a=i=>i&&"number"==typeof i.length&&"function"!=typeof i},5e3:(De,C,y)=>{"use strict";y.d(C,{D:()=>i});var a=y(3276);function i(Z){return Symbol.asyncIterator&&(0,a.m)(Z?.[Symbol.asyncIterator])}},3276:(De,C,y)=>{"use strict";function a(i){return"function"==typeof i}y.d(C,{m:()=>a})},8620:(De,C,y)=>{"use strict";y.d(C,{c:()=>Z});var a=y(7878),i=y(3276);function Z(V){return(0,i.m)(V[a.L])}},5074:(De,C,y)=>{"use strict";y.d(C,{T:()=>Z});var a=y(8279),i=y(3276);function Z(V){return(0,i.m)(V?.[a.h])}},2753:(De,C,y)=>{"use strict";y.d(C,{t:()=>i});var a=y(3276);function i(Z){return(0,a.m)(Z?.then)}},3130:(De,C,y)=>{"use strict";y.d(C,{L:()=>V,Q:()=>Z});var a=y(2970),i=y(3276);function Z(_){return(0,a.FC)(this,arguments,function*(){const x=_.getReader();try{for(;;){const{value:M,done:N}=yield(0,a.qq)(x.read());if(N)return yield(0,a.qq)(void 0);yield yield(0,a.qq)(M)}}finally{x.releaseLock()}})}function V(_){return(0,i.m)(_?.getReader)}},3946:(De,C,y)=>{"use strict";y.d(C,{K:()=>i});var a=y(3276);function i(Z){return Z&&(0,a.m)(Z.schedule)}},4049:(De,C,y)=>{"use strict";y.d(C,{A:()=>i,e:()=>Z});var a=y(3276);function i(V){return(0,a.m)(V?.lift)}function Z(V){return _=>{if(i(_))return _.lift(function(v){try{return V(v,this)}catch(x){this.error(x)}});throw new TypeError("Unable to lift unknown Observable type")}}},4574:(De,C,y)=>{"use strict";y.d(C,{Z:()=>V});var a=y(8412);const{isArray:i}=Array;function V(_){return(0,a.U)(v=>function Z(_,v){return i(v)?_(...v):_(v)}(_,v))}},1952:(De,C,y)=>{"use strict";function a(){}y.d(C,{Z:()=>a})},5625:(De,C,y)=>{"use strict";y.d(C,{h:()=>Z});var a=y(6786),i=y(1296);function Z(V){i.z.setTimeout(()=>{const{onUnhandledError:_}=a.config;if(!_)throw V;_(V)})}},1380:(De,C,y)=>{"use strict";function a(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}y.d(C,{z:()=>a})},1106:function(De,C,y){"use strict";var a=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(C,"__esModule",{value:!0}),C.decode=C.encode=void 0;const i=a(y(1505)),Z=["string","email","phone","html","xml"],V=["json","bool","url","int","uint","float","money","hex","uuid","base64","void",...Z];class v extends Error{constructor(w,I,R){let ie;try{ie=JSON.stringify(R)}catch{ie=String(R)}super(`Invalid type at '${w}', expected ${String(I)}, got ${ie}`)}}function x(O,w,I){if("json"===w)return null==I?null:JSON.parse(JSON.stringify(I));if("bool"===w){if("boolean"!=typeof I)throw new v(O,w,I);return I}if(Z.indexOf(w)>=0){if("string"!=typeof I)throw new v(O,w,I);return I}if("hex"===w){if("string"!=typeof I||!/^(?:[A-Fa-f0-9]{2})*$/u.test(I))throw new v(O,w,I);return I.toLowerCase()}if("uuid"===w){if("string"!=typeof I||!/^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$/u.test(I))throw new v(O,w,I);return I.toLowerCase()}if("base64"===w){let R=!0;try{atob(I)}catch{R=!1}if("string"!=typeof I||!R||Buffer.from(I,"base64").toString("base64")!==I)throw new v(O,w,I);return I}if("int"===w){if("number"!=typeof I||(0|I)!==I)throw new v(O,w,I);return I}if("uint"===w){if("number"!=typeof I||(0|I)!==I||I<0)throw new v(O,w,I);return I}if("float"===w){if("number"!=typeof I)throw new v(O,w,I);return I}if("money"===w){if("number"!=typeof I||!Number.isInteger(I))throw new v(O,w,I);return I}if("url"===w){let R;if("string"==typeof I)try{R=new URL(I)}catch{}if(!R)throw new v(O,w,I);return R.toString()}if("void"===w)return null;throw new Error(`Unknown type '${w}' at '${O}'`)}function M(O){return typeof Buffer<"u"&&O instanceof Buffer}C.encode=function P(O,w,I,R){if("string"==typeof I&&!I.endsWith("?")&&"void"!==I&&null==R)throw new Error(`Invalid type at '${w}', cannot be null`);if(Array.isArray(I)){for(const ie of I){if(ie===R)return R;if(Array.isArray(R)&&2===R.length&&ie===R[0])return R[0];if(Array.isArray(ie)&&2===ie.length){if(ie[0]===R)return[R,P(O,`${w}.${ie[0]}`,ie[1],{})];if(Array.isArray(R)&&2===R.length&&ie[0]===R[0])return[R[0],P(O,`${w}.${ie[0]}`,ie[1],R[1])]}}throw new v(w,I,R)}if("object"==typeof I){if("object"!=typeof R)throw new v(w,I,R);const ie={};for(const X of Object.keys(I))ie[X]=P(O,`${w}.${X}`,I[X],R[X]);return ie}if(I.endsWith("?"))return null==R?null:P(O,w,I.slice(0,I.length-1),R);if(I.endsWith("[]")){if(!Array.isArray(R))throw new v(w,I,R);return R.map((ie,X)=>P(O,`${w}[${X}]`,I.slice(0,I.length-2),ie))}if(V.indexOf(I)>=0)return x(w,I,R);if("bytes"===I){if(!(R instanceof ArrayBuffer||R instanceof Uint8Array||M(R)))throw new v(w,I,R);return M(R)?R.toString("base64"):function N(O){const w=O instanceof Uint8Array?O:new Uint8Array(O),I=w,{toBase64:R}=I;if("function"==typeof R)return R.call(w);const ie=[];for(let X=0;X<w.length;X+=32768)ie.push(String.fromCharCode(...Array.from(w.subarray(X,X+32768))));return btoa(ie.join(""))}(R)}if("bigint"===I){if("bigint"!=typeof R)throw new v(w,I,R);return R.toString()}if("cpf"===I){if("string"!=typeof R)throw new v(w,I,R);return R}if("cnpj"===I){if("string"!=typeof R)throw new v(w,I,R);return R}if("date"===I){if((!(R instanceof Date)||isNaN(R.getTime()))&&("string"!=typeof R||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(R)))throw new v(w,I,R);const ie=R instanceof Date?R:new Date(R);return`${ie.getFullYear().toString().padStart(4,"0")}-${(ie.getMonth()+1).toString().padStart(2,"0")}-${ie.getDate().toString().padStart(2,"0")}`}if("datetime"===I){if((!(R instanceof Date)||isNaN(R.getTime()))&&("string"!=typeof R||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?(?:Z|[+-][012][0-9]:[0123456][0-9])?$/u.test(R)))throw new v(w,I,R);return("string"==typeof R?new Date(R):R).toISOString().replace("Z","")}if("decimal"===I){if(!("number"==typeof R||"string"==typeof R&&/^-?[0-9]+(?:\.[0-9]+)?$/u.test(R)||R instanceof i.default))throw new v(w,I,R);return new i.default(R).toString()}{const ie=O[I];if(ie)return P(O,w,ie,R);throw new Error(`Unknown type '${I}' at '${w}'`)}},C.decode=function Y(O,w,I,R){if("string"==typeof I&&!I.endsWith("?")&&"void"!==I&&null==R)throw new Error(`Invalid type at '${w}', cannot be null`);if(Array.isArray(I)){for(const ie of I){if(ie===R)return R;if(Array.isArray(R)&&2===R.length&&ie===R[0])return R[0];if(Array.isArray(ie)&&2===ie.length){if(ie[0]===R)return[R,Y(O,`${w}.${ie[0]}`,ie[1],{})];if(Array.isArray(R)&&2===R.length&&ie[0]===R[0])return[R[0],Y(O,`${w}.${ie[0]}`,ie[1],R[1])]}}throw new v(w,I,R)}if("object"==typeof I){if("object"!=typeof R)throw new v(w,I,R);const ie={};for(const X of Object.keys(I))ie[X]=Y(O,`${w}.${X}`,I[X],R[X]);return ie}if(I.endsWith("?"))return null==R?null:Y(O,w,I.slice(0,I.length-1),R);if(I.endsWith("[]")){if(!Array.isArray(R))throw new v(w,I,R);return R.map((ie,X)=>Y(O,`${w}[${X}]`,I.slice(0,I.length-2),ie))}if(V.indexOf(I)>=0)return x(w,I,R);if("bytes"!==I){if("bigint"===I){if("number"!=typeof R&&("string"!=typeof R||!/^-?[0-9]+$/u.test(R)))throw new v(w,I,R);return BigInt(R)}if("cpf"===I){if("string"!=typeof R)throw new v(w,I,R);return R}if("cnpj"===I){if("string"!=typeof R)throw new v(w,I,R);return R}if("date"===I){if("string"!=typeof R||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(R))throw new v(w,I,R);const ie=parseInt(R.split("-")[2],10),X=parseInt(R.split("-")[1],10)-1,ce=parseInt(R.split("-")[0],10),Ne=new Date(ce,X,ie);if(Ne.getFullYear()!==ce||Ne.getMonth()!==X||Ne.getDate()!==ie)throw new v(w,I,R);return Ne}if("datetime"===I){if("string"!=typeof R||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?Z?$/u.test(R))throw new v(w,I,R);return new Date(`${R.endsWith("Z")?R:R.concat("Z")}`)}if("decimal"===I){if("number"!=typeof R&&("string"!=typeof R||!/^-?[0-9]+(?:\.[0-9]+)?$/u.test(R)))throw new v(w,I,R);return new i.default(R)}{const ie=O[I];if(ie)return Y(O,w,ie,R);throw new Error(`Unknown type '${I}' at '${w}'`)}}if("string"!=typeof R)throw new v(w,`${I} (base 64)`,R);try{return Uint8Array.from(atob(R),ie=>ie.charCodeAt(0))}catch{const ie=Buffer.from(R,"base64");if(ie.toString("base64")!==R)throw new v(w,`${I} (base 64)`,R);return ie}}},6373:(De,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.SdkgenErrorWithData=C.SdkgenError=void 0;class y extends Error{get type(){return this.constructor.name}toJSON(){return{message:this.message,type:this.type}}}C.SdkgenError=y,C.SdkgenErrorWithData=class a extends y{constructor(Z,V){super(Z),this.data=V}toJSON(){return{data:this.data,message:this.message,type:this.type}}}},6463:(De,C,y)=>{"use strict";var a=y(7156).default;Object.defineProperty(C,"__esModule",{value:!0}),C.SdkgenHttpClient=void 0;const i=y(1106);function Z(M){let N="";for(let P=0;P<2*M;++P)N+="0123456789abcdef"[Math.floor(16*Math.random())];return N}const V=Z(20);function _(){try{let M=localStorage.getItem("deviceId");return M||(M=V,localStorage.setItem("deviceId",M)),M}catch{return V}}function v(M,N){return N in M}C.SdkgenHttpClient=class x{constructor(N,P,Y){this.baseUrl=N,this.astJson=P,this.errClasses=Y,this.extra=new Map,this.successHook=()=>{},this.errorHook=()=>{}}makeRequest(N,P){var Y=this;return a(function*(){const O=Y.astJson.functionTable[N];if(!O)throw new Error(`Unknown function ${N}`);const w={};Y.extra.forEach((X,ce)=>{w[ce]=X});const I={args:(0,i.encode)(Y.astJson.typeTable,`${N}.args`,O.args,P),deviceInfo:{id:_(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:document.currentScript?.getAttribute("src")??""},extra:w,name:N,requestId:Z(16),version:3},R=yield new Promise((X,ce)=>{const Ne=new XMLHttpRequest;Ne.open("POST",`${Y.baseUrl}/${N}`),Ne.setRequestHeader("Content-Type","application/sdkgen"),Ne.onreadystatechange=()=>{if(4===Ne.readyState)try{const Ge=JSON.parse(Ne.responseText);try{v(Ge,"error")&&Ge.error?ce(Ge.error):X(v(Ge,"result")?Ge.result:null)}catch(Ve){ce({message:`${Ve}`,type:"Fatal"})}}catch{ce({message:"Falha de conex\xe3o com o servidor",type:"Fatal"})}},Ne.send(JSON.stringify(I))}).catch(X=>{if(Y.errorHook(X,N,P),v(X,"type")&&v(X,"message")&&"string"==typeof X.type&&"string"==typeof X.message){const ce=X.type in Y.errClasses?X.type:"Fatal",Ne=Y.errClasses[ce],Ge=Y.astJson.errors.find(Ae=>Array.isArray(Ae)?Ae[0]===ce:Ae===ce);let Ve;throw Ve=Ge&&Array.isArray(Ge)&&v(X,"data")?new Ne(X.message,(0,i.decode)(Y.astJson.typeTable,`${ce}.data`,Ge[1],X.data)):new Ne(X.message,void 0),Ve.type=ce,Ve}throw X}),ie=(0,i.decode)(Y.astJson.typeTable,`${N}.ret`,O.ret,R);return Y.successHook(ie,N,P),ie})()}}},1611:function(De,C,y){"use strict";var a=this&&this.__createBinding||(Object.create?function(Z,V,_,v){void 0===v&&(v=_);var x=Object.getOwnPropertyDescriptor(V,_);(!x||("get"in x?!V.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return V[_]}}),Object.defineProperty(Z,v,x)}:function(Z,V,_,v){void 0===v&&(v=_),Z[v]=V[_]}),i=this&&this.__exportStar||function(Z,V){for(var _ in Z)"default"!==_&&!Object.prototype.hasOwnProperty.call(V,_)&&a(V,Z,_)};Object.defineProperty(C,"__esModule",{value:!0}),i(y(6373),C),i(y(6463),C)},8520:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateCSharpServerSource=void 0;const a=y(6068),i=y(3245);C.generateCSharpServerSource=function Z(V){let _="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing static Sdkgen.Runtime;\nusing static Sdkgen.Context;\nusing static Sdkgen.Helpers;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const v of V.operations){const x=v.returnType instanceof a.VoidPrimitiveType?"":`<${(0,i.generateTypeName)(v.returnType)}>`;_+=`\n public virtual Task${x} ${(0,i.capitalize)(v.name)}(${["Context ctx",...v.args.map(M=>`${(0,i.generateTypeName)(M.type)} ${(0,i.ident)(M.name)}`)].join(", ")})\n {\n return Task.FromException${x}(new FatalException("Function '${v.name}' not implemented."));\n }\n`}_+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const v of V.operations){_+=`\n case ${JSON.stringify(v.name)}:\n {`;for(const x of v.args)_+=`\n JsonElement ${x.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(x.name)}, out ${x.name}Json_))\n {\n ${x.type instanceof a.OptionalType?`${x.name}Json_ = new JsonElement();`:`throw new FatalException("'${v.name}().args.${x.name}' must be set to a value of type ${x.type.name}.");`}\n }\n ${(0,i.generateTypeName)(x.type)} ${(0,i.ident)(x.name)};\n ${(0,i.decodeType)(x.type,`${x.name}Json_`,`"${v.name}().args.${x.name}"`,(0,i.ident)(x.name)).replace(/\n/gu,"\n ")}`;_+=v.returnType instanceof a.VoidPrimitiveType?`\n await ${(0,i.capitalize)(v.name)}(${["context_",...v.args.map(x=>(0,i.ident)(x.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,i.capitalize)(v.name)}(${["context_",...v.args.map(x=>(0,i.ident)(x.name))].join(", ")});\n ${(0,i.encodeType)(v.returnType,"result_",`"${v.name}().ret"`).replace(/\n/gu,"\n ")}`,_+="\n return;\n }"}_+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const v of V.structTypes)_+=(0,i.generateStruct)(v);for(const v of V.enumTypes)_+=(0,i.generateEnum)(v);_+=`\n public string GetAstJson() => @"${JSON.stringify((0,a.astToJson)(V),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const v of V.errors)_+=`\n public class ${v.name}Exception : SdkgenException\n {\n public ${v.name}Exception(string message, Exception? inner = null) : base("${v.name}", message, inner) { }\n }\n`;return _+="\n}\n",_}},3245:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateEnum=C.generateStruct=C.encodeType=C.decodeType=C.generateTypeName=C.capitalize=C.ident=void 0;const a=y(6068),i=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while"],Z=[a.StringPrimitiveType,a.HtmlPrimitiveType,a.CpfPrimitiveType,a.CnpjPrimitiveType,a.BytesPrimitiveType,a.EmailPrimitiveType,a.UrlPrimitiveType,a.UuidPrimitiveType,a.HexPrimitiveType,a.Base64PrimitiveType,a.XmlPrimitiveType,a.StructType,a.ArrayType],V=[a.BigIntPrimitiveType,a.DatePrimitiveType,a.DateTimePrimitiveType,a.FloatPrimitiveType,a.IntPrimitiveType,a.MoneyPrimitiveType,a.DecimalPrimitiveType,a.UIntPrimitiveType];function _(O){return i.includes(O)?`@${O}`:O}function v(O){return O[0].toUpperCase()+O.slice(1)}function x(O){switch(O.constructor){case a.StringPrimitiveType:return"string";case a.IntPrimitiveType:return"int";case a.UIntPrimitiveType:return"uint";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"BigInteger";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"byte[]";case a.MoneyPrimitiveType:case a.DecimalPrimitiveType:return"decimal";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"JsonElement";case a.OptionalType:return`${x(O.base)}?`;case a.ArrayType:return`List<${x(O.base)}>`;case a.StructType:case a.EnumType:return O.name;case a.TypeReference:return x(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}function M(O,w,I,R,ie=1,X=!0){switch(O.constructor){case a.IntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetInt32(out ${R}))\n {\n throw new FatalException($"'{${I}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.UIntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetUInt32(out ${R}))\n {\n throw new FatalException($"'{${I}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.DecimalPrimitiveType:case a.MoneyPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetDecimal(out ${R}) || ${R} % 1 != 0)\n {\n throw new FatalException($"'{${I}}' must be an integer amount of cents.");\n }\n ${R} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case a.FloatPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.Number || !${w}.TryGetDouble(out ${R}))\n {\n throw new FatalException($"'{${I}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.BigIntPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${w}.GetString(), out ${R}))\n {\n throw new FatalException($"'{${I}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.StringPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a string.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.HtmlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a valid HTML string.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.CpfPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a valid CPF string.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.CnpjPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a valid CNPJ string.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.EmailPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a valid email.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.UrlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a valid URL string.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.UuidPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a valid UUID.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.HexPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a valid hex string.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.Base64PrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a base64 string.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.XmlPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a XML string.");\n }\n ${R} = ${w}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.BoolPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.True && ${w}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${I}}' must be either true or false.");\n }\n ${R} = ${w}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case a.BytesPrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${I}}' must be a string.");\n }\n try\n {\n ${R} = Convert.FromBase64String(${w}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${I}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.TypeReference:return M(O.type,w,I,R,ie);case a.OptionalType:if(V.includes(O.base.constructor)){const ce=`${R.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n ${R} = null;\n }\n else\n {\n ${x(O.base)} ${ce};\n ${M(O.base,w,I,ce,ie,!1).replace(/\n/gu,"\n ")}\n ${R} = ${ce};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n ${R} = null;\n }\n else\n {\n ${M(O.base,w,I,R,ie,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case a.EnumType:case a.StructType:return`${R} = Decode${O.name}(${w}, ${I});`;case a.JsonPrimitiveType:return X?`\n if (${w}.ValueKind == JsonValueKind.Null || ${w}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${I}}' can't be null.");\n }\n ${R} = ${w};\n `.replace(/\n {16}/gu,"\n").trim():`${R} = ${w};`;case a.DateTimePrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${R}) || DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${R})))\n {\n throw new FatalException($"'{${I}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.DatePrimitiveType:return`\n if (${w}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${w}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${R})))\n {\n throw new FatalException($"'{${I}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.ArrayType:return`\n if (${w}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${I}}' must be a date.");\n }\n ${R} = new ${x(O)}();\n for (var i${ie} = 0; i${ie} < ${w}.GetArrayLength(); ++i${ie})\n {\n ${x(O.base)} element${ie};\n ${M(O.base,`${w}[i${ie}]`,`$"{${I}}[{i${ie}}]"`,`element${ie}`,ie+1).replace(/\n/gu,"\n ")}\n ${R}.Add(element${ie});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${O.constructor.name}`)}}function N(O,w,I,R=1){switch(O.constructor){case a.StringPrimitiveType:return`resultWriter_.WriteStringValue(${w});`;case a.FloatPrimitiveType:case a.UIntPrimitiveType:case a.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${w});`;case a.DecimalPrimitiveType:case a.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${w} * 100));`;case a.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString());`;case a.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${w});`;case a.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${w}));`;case a.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case a.DatePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-dd"));`;case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.Base64PrimitiveType:case a.HexPrimitiveType:case a.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${w});`;case a.OptionalType:{let ie=O.base;for(;ie instanceof a.TypeReference;)ie=ie.type;return`\n if (${w} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${N(ie,Z.includes(ie.constructor)?w:`${w}.Value`,I,R).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case a.TypeReference:return N(O.type,w,I,R);case a.EnumType:case a.StructType:return`Encode${O.name}(${w}, resultWriter_, ${I});`;case a.JsonPrimitiveType:return`${w}.WriteTo(resultWriter_);`;case a.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${R} = 0; i${R} < ${w}.Count; ++i${R})\n {\n ${N(O.base,`${w}[i${R}]`,`$"{${I}}[{i${R}}]"`,R+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${O.constructor.name}`)}}C.ident=_,C.capitalize=v,C.generateTypeName=x,C.decodeType=M,C.encodeType=N,C.generateStruct=function P(O){return`\n public class ${O.name}\n {${O.fields.map(w=>`\n public ${x(w.type)} ${v(w.name)};`).join("")}\n public ${O.name}(${O.fields.map(w=>`${x(w.type)} ${_(w.name)}`).join(", ")})\n {${O.fields.map(w=>`\n ${v(w.name)} = ${_(w.name)};`).join("")}\n }\n }\n\n ${O.name} Decode${O.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${O.fields.map(w=>` JsonElement ${w.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(w.name)}, out ${w.name}Json_))\n {\n ${w.type instanceof a.OptionalType?`${w.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${w.name}' must be set to a value of type ${w.type.name}.");`}\n }\n ${x(w.type)} ${_(w.name)};\n ${M(w.type,`${w.name}Json_`,`$"{path_}.${w.name}"`,_(w.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${O.name}(${O.fields.map(w=>_(w.name)).join(", ")});\n }\n\n void Encode${O.name}(${O.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${O.fields.map(w=>`resultWriter_.WritePropertyName(${JSON.stringify(w.name)});\n ${N(w.type,`obj_.${v(w.name)}`,`$"{path_}.${w.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},C.generateEnum=function Y(O){return`\n public enum ${O.name}\n {${O.values.map(({value:w})=>`\n ${v(w)}`).join(",\n ")}\n }\n\n ${O.name} Decode${O.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{path_}' must be a string.");\n }\n var value = json_.GetString();${O.values.map(({value:w})=>`\n if (value == "${w}")\n {\n return ${O.name}.${v(w)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${O.values.map(({value:w})=>`'${w}'`).join(", ")}).");\n }\n\n void Encode${O.name}(${O.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${O.values.map(({value:w})=>`\n if (obj_ == ${O.name}.${v(w)})\n {\n resultWriter_.WriteStringValue("${w}");\n }`).join("")}\n }\n`}},5626:function(De,C,y){"use strict";var a=this&&this.__createBinding||(Object.create?function(Z,V,_,v){void 0===v&&(v=_);var x=Object.getOwnPropertyDescriptor(V,_);(!x||("get"in x?!V.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return V[_]}}),Object.defineProperty(Z,v,x)}:function(Z,V,_,v){void 0===v&&(v=_),Z[v]=V[_]}),i=this&&this.__exportStar||function(Z,V){for(var _ in Z)"default"!==_&&!Object.prototype.hasOwnProperty.call(V,_)&&a(V,Z,_)};Object.defineProperty(C,"__esModule",{value:!0}),i(y(8520),C)},6249:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateDartClientSource=void 0;const a=y(6068),i=y(7812);C.generateDartClientSource=function Z(V){let _="";_+="// ignore_for_file: constant_identifier_names\n",(0,a.hasType)(V,a.BytesPrimitiveType)&&(_+="import 'dart:typed_data';\n"),(0,a.hasType)(V,a.DecimalPrimitiveType)&&(_+="import 'package:decimal/decimal.dart';\n"),_+="import 'package:http/http.dart' as http;\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n";for(const v of V.enumTypes)_+=(0,i.generateEnum)(v),_+="\n";for(const v of V.structTypes)_+=(0,i.generateClass)(v),_+="\n";for(const v of V.errors)_+=(0,i.generateErrorClass)(v),_+="\n";_+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [http.Client? client]) : super(baseUrl, client, _typeTable, _fnTable, _errTable);\n${V.operations.filter(v=>v.annotations.every(x=>!(x instanceof a.HiddenAnnotation))).map(v=>`\n ${v.returnType instanceof a.VoidPrimitiveType?"Future<void> ":`Future<${(0,i.generateTypeName)(v.returnType)}> `}${v.name}(${0===v.args.length?"":`{${v.args.map(x=>`${x.type instanceof a.OptionalType?"":"required "}${(0,i.generateTypeName)(x.type)} ${(0,i.mangle)(x.name)}`).join(", ")}}`}) async { ${v.returnType instanceof a.VoidPrimitiveType?"":"final result = "}await makeRequest('${v.name}', {${v.args.map(x=>`'${x.name}': ${(0,i.mangle)(x.name)}`).join(", ")}});${v.returnType instanceof a.VoidPrimitiveType?"":` return ${(0,i.cast)("result",v.returnType)};`}}`).join("")}\n}\n\n`,_+="var _typeTable = {\n";for(const v of V.structTypes){_+=` '${v.name}': StructTypeDescription(\n`,_+=` ${v.name},\n`,_+=" {\n";for(const x of v.fields)_+=` '${x.name}': '${x.type.name}',\n`;_+=" },\n",_+=` (Map fields) => ${v.name}(\n`;for(const x of v.fields)_+=` ${(0,i.mangle)(x.name)}: ${(0,i.cast)(`fields['${x.name}']`,x.type)},\n`;_+=" ),\n",_+=` (${v.name} obj) => ({\n`;for(const x of v.fields)_+=` '${x.name}': obj.${(0,i.mangle)(x.name)},\n`;_+=" }),\n",_+=" ),\n"}for(const v of V.enumTypes)_+=` '${v.name}': EnumTypeDescription(${v.name}, ${v.name}.values, [\n ${v.values.map(x=>`'${x.value}'`).join(",\n ")}\n ]),\n`;_+="};\n\n",_+="var _fnTable = {\n";for(const v of V.operations){_+=` '${v.name}': FunctionDescription('${v.returnType.name}', {\n`;for(const x of v.args)_+=` '${x.name}': '${x.type.name}',\n`;_+=" }),\n"}_+="};\n\n",_+="var _errTable = {\n";for(const v of V.errors)_+=` '${v.name}': SdkgenErrorDescription('${v.dataType.name}', (msg, req, data) => ${v.name}(msg, req${v.dataType instanceof a.VoidPrimitiveType?"":", data"})),\n`;return _+="};\n",_}},7812:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateClass=C.cast=C.generateErrorClass=C.generateTypeName=C.generateEnum=C.mangle=void 0;const a=y(6068);function i(O){return["abstract","as","assert","async","await","bool","break","case","catch","class","const","continue","covariant","default","deferred","do","double","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","int","interface","is","library","mixin","new","null","on","operator","part","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"].includes(O)?`$${O}`:O}function V(O){switch(O.constructor){case a.StringPrimitiveType:return"String";case a.IntPrimitiveType:case a.UIntPrimitiveType:return"int";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"BigInt";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"Uint8List";case a.MoneyPrimitiveType:return"int";case a.DecimalPrimitiveType:return"Decimal";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"dynamic";case a.OptionalType:return`${V(O.base)}?`;case a.ArrayType:return`List<${V(O.base)}>`;case a.StructType:case a.EnumType:return O.name;case a.TypeReference:return V(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}C.mangle=i,C.generateEnum=function Z(O){return`enum ${O.name} {\n ${O.values.map(w=>w.value).join(",\n ")}\n}\n`},C.generateTypeName=V,C.generateErrorClass=function _(O){if(O.dataType instanceof a.VoidPrimitiveType)return`class ${O.name} extends SdkgenError {\n ${O.name}(super.msg, super.request);\n}\n`;const w=V(O.dataType);return`class ${O.name} extends SdkgenErrorWithData<${w}> {\n ${O.name}(super.msg, super.request, super.data);\n}\n`},C.cast=function v(O,w){return w instanceof a.OptionalType?`${O} == null ? null : ${v(O,w.base)}`:w instanceof a.ArrayType?`(${O} as List).map((e) => ${v("e",w.base)}).toList()`:w instanceof a.VoidPrimitiveType?O:w instanceof a.FloatPrimitiveType?`(${O} as num).toDouble()`:w instanceof a.MoneyPrimitiveType?`${O} as int`:`${O} as ${V(w)}`},C.generateClass=function Y(O){return`class ${O.name} {\n ${O.fields.map(w=>`final ${V(w.type)} ${i(w.name)};`).join("\n ")}\n\n${function x(O){let w=` ${O.name}({\n`;for(const I of O.fields)w+=I.type instanceof a.OptionalType?" ":" required ",w+=`this.${i(I.name)},\n`;return w+=" });\n",w}(O)}\n${function M(O){let w=" @override\n bool operator ==(other){\n";return w+=" if (identical(this, other)) return true;\n",w+=` return ${[`other is ${O.name}`,...O.fields.map(I=>`${i(I.name)} == other.${i(I.name)}`)].join(" && ")};\n`,w+=" }\n",w}(O)}\n${function N(O){return` @override\n int get hashCode => Object.hashAllUnordered([${O.fields.map(w=>i(w.name)).join(", ")}]);\n`}(O)}\n${function P(O){return` @override\n String toString() {\n return '${O.name} { ${O.fields.map(w=>`${w.name}: $${i(w.name).startsWith("$")?`{${i(w.name)}}`:i(w.name)}`).join(", ")} }';\n }\n`}(O)}}\n`}},551:function(De,C,y){"use strict";var a=this&&this.__createBinding||(Object.create?function(Z,V,_,v){void 0===v&&(v=_);var x=Object.getOwnPropertyDescriptor(V,_);(!x||("get"in x?!V.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return V[_]}}),Object.defineProperty(Z,v,x)}:function(Z,V,_,v){void 0===v&&(v=_),Z[v]=V[_]}),i=this&&this.__exportStar||function(Z,V){for(var _ in Z)"default"!==_&&!Object.prototype.hasOwnProperty.call(V,_)&&a(V,Z,_)};Object.defineProperty(C,"__esModule",{value:!0}),i(y(6249),C)},4155:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateFSharpServerSource=void 0;const a=y(6068),i=y(3882);C.generateFSharpServerSource=function Z(V){let _="module rec SdkgenGenerated\nopen Sdkgen.Runtime\nopen Sdkgen.Helpers\nopen Sdkgen.Context\nopen System.Threading.Tasks\nopen System.Text.Json\nopen System\nopen System.Globalization\n#if NET5_0\n// To use tasks as computation expression in .NET 5 install https://www.nuget.org/packages/TaskBuilder.fs/\nopen FSharp.Control.Tasks.V2.ContextInsensitive\n#endif\n";for(const v of V.errors)_+=`\ntype ${v.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${v.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${v.name}", message, inner)\n }\n`;for(const v of V.enumTypes)_+=`\n${(0,i.generateEnum)(v)}\n`;for(const v of V.structTypes)_+=`\n${(0,i.generateStruct)(v)}\n`;_+="\ntype Api() =";for(const v of V.operations){const x=v.returnType instanceof a.VoidPrimitiveType?"":`<${(0,i.generateTypeName)(v.returnType)}>`,M=v.args.length>0?`{| ${v.args.map(N=>`${N.name}: ${(0,i.generateTypeName)(N.type)};`).join("")} |} ->`:"";_+=`\n member val ${(0,i.capitalize)(v.name)}: Context -> ${M} Task${x} =\n fun _ -> (raise (FatalException("Function '${v.name}' not implemented.")))\n with get, set\n `}_+="\n interface BaseApi with\n member __.ExecuteFunction(context_: Context, resultWriter_: Utf8JsonWriter) : Task =\n task {\n match context_.Name with";for(const v of V.operations){_+=`\n | ${JSON.stringify(v.name)} ->`;for(const x of v.args)_+=`\n let ${x.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(x.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${v.name}().args.${x.name}' must be set to a value of type ${x.type.name}."))\n\n let ${(0,i.ident)(x.name)} =\n ${(0,i.decodeType)(x.type,`${x.name}Json_`,`"${v.name}().args.${x.name}"`,(0,i.ident)(x.name)).replace(/\n/gu,"\n ")}`;_+=v.returnType instanceof a.VoidPrimitiveType?`\n\n do! (__.${(0,i.capitalize)(v.name)} context_ ${v.args.length>0?"{|":""} ${v.args.map(x=>`${x.name} = ${(0,i.ident)(x.name)}`).join("; ")} ${v.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,i.capitalize)(v.name)} context_ ${v.args.length>0?"{|":""} ${v.args.map(x=>`${x.name} = ${(0,i.ident)(x.name)}`).join("; ")} ${v.args.length>0?"|}":""})\n ${(0,i.encodeType)(v.returnType,"result_",`"${v.name}().ret"`,1,!1).replace(/\n/gu,"\n ")}`}return _+="\n\n | _ -> raise (FatalException($\"Unknown function '{context_.Name}'.\"))\n } :> Task",_+=`\n member __.GetAstJson() = """${JSON.stringify((0,a.astToJson)(V),null,4).replace(/\n/gu,"\n ")}""";`,_}},3882:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateEnum=C.generateStruct=C.encodeType=C.decodeType=C.generateTypeName=C.capitalize=C.ident=void 0;const a=y(6068),i=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while","type","end","id"],V=[a.BigIntPrimitiveType,a.DatePrimitiveType,a.DateTimePrimitiveType,a.FloatPrimitiveType,a.IntPrimitiveType,a.MoneyPrimitiveType,a.UIntPrimitiveType,a.ArrayType];function _(O){return i.includes(O)?`${O}'`:O}function v(O){return O[0].toUpperCase()+O.slice(1)}function x(O){switch(O.constructor){case a.StringPrimitiveType:return"string";case a.IntPrimitiveType:return"int";case a.UIntPrimitiveType:return"uint";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"bigint";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"byte[]";case a.MoneyPrimitiveType:return"decimal";case a.UuidPrimitiveType:return"Guid";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"JsonElement";case a.OptionalType:return`${x(O.base)} option`;case a.ArrayType:return`${x(O.base)} list`;case a.StructType:case a.EnumType:return O.name;case a.TypeReference:return x(O.type);default:throw new Error(`BUG: generateTypeName with ${O.constructor.name}`)}}function M(O,w,I,R,ie=1,X=!0){switch(O.constructor){case a.IntPrimitiveType:return`\n decodeInt32 ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.UIntPrimitiveType:return`\n decodeUInt32 ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.MoneyPrimitiveType:return`\n (decodeMoney ${w} ${I}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case a.FloatPrimitiveType:return`\n decodeFloat ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.BigIntPrimitiveType:return`\n decodeBigInt ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.StringPrimitiveType:return`\n decodeString ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.HtmlPrimitiveType:return`\n decodeHtml ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.CpfPrimitiveType:return`\n decodeCpf ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.CnpjPrimitiveType:return`\n decodeCnpj ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.EmailPrimitiveType:return`\n decodeEmail ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.UrlPrimitiveType:return`\n decodeUrl ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.UuidPrimitiveType:return`\n decodeUuid ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.HexPrimitiveType:return`\n decodeHex ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.Base64PrimitiveType:return`\n decodeBase64 ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.XmlPrimitiveType:return`\n decodeXml ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.BoolPrimitiveType:return`\n decodeBool ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.BytesPrimitiveType:return`\n decodeBytes ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.TypeReference:return M(O.type,w,I,R,ie);case a.OptionalType:return V.includes(O.base.constructor)?`match ${w}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${M(O.base,w,I,R,ie,!1).replace(/\n/gu,"\n ")}) |> Some\n `.replace(/\n {16}/gu,"\n").trim():O.base instanceof a.OptionalType||O.base instanceof a.ArrayType?`\n (>.>) decodeOptional ${M(O.base,w,I,R,ie,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${M(O.base,w,I,R,ie,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case a.EnumType:case a.StructType:return`Decode${O.name} ${w} ${I}`;case a.JsonPrimitiveType:return X?`\n ${w}\n `.replace(/\n {16}/gu,"\n").trim():`${R} <- ${w}`;case a.DateTimePrimitiveType:return`\n decodeDateTime ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.DatePrimitiveType:return`\n decodeDate ${w} ${I}\n `.replace(/\n {16}/gu,"\n").trim();case a.ArrayType:return`\n match ${w}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${w}.GetArrayLength() - 1) do\n let item = ${w}.[i1]\n let partialResult =\n ${M(O.base,`${w}.[i1]`,`${I.slice(0,-1)}.{i1}"`,R,ie,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${I.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${O.constructor.name}`)}}function N(O,w,I,R=1,ie=!0){switch(O.constructor){case a.StringPrimitiveType:return`resultWriter_.WriteStringValue(${w})`;case a.FloatPrimitiveType:case a.UIntPrimitiveType:case a.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${w})`;case a.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${w} * 100m)))`;case a.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString())`;case a.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${w})`;case a.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${w}))`;case a.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case a.DatePrimitiveType:return`resultWriter_.WriteStringValue(${w}.ToString("yyyy-MM-dd"))`;case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.Base64PrimitiveType:case a.HexPrimitiveType:case a.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${w})`;case a.OptionalType:{let X=O.base;for(;X instanceof a.TypeReference;)X=X.type;return`\n if (${w}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${N(X,`${w}.Value`,I,R,ie)}\n `.replace(/\n {14}/gu,"\n").trim()}case a.TypeReference:return N(O.type,w,I,R,ie);case a.EnumType:case a.StructType:return`Encode${O.name} ${w} resultWriter_ ${I}`;case a.JsonPrimitiveType:return`${w}.WriteTo(resultWriter_)`;case a.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${R} in 0..${w}.Length - 1 do\n ${N(O.base,`${w}.[i${R}]`,`${I}`,R+1).replace(/\n/gu,"\n ")}\n resultWriter_.WriteEndArray()\n `.replace(/\n {14}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${O.constructor.name}`)}}C.ident=_,C.capitalize=v,C.generateTypeName=x,C.decodeType=M,C.encodeType=N,C.generateStruct=function P(O){return`\ntype ${O.name} = {\n ${O.fields.map(w=>`${v(w.name)}: ${x(w.type)}`).join(";\n ")}\n} with\n static member Create (${O.fields.map(w=>`${_(w.name)}: ${x(w.type)}`).join(", ")}): ${O.name} =\n { ${O.fields.map(w=>`${v(w.name)} = ${_(w.name)}`).join("; ")} }\n\nlet Decode${O.name} (json_: JsonElement) (path_: string): ${O.name} =\n if (json_.ValueKind <> JsonValueKind.Object) then raise (FatalException($"'{path_}' must be an object."))\n ${O.fields.map(w=>`\n let ${w.name}Json_ = decodeJsonElementStrict ${JSON.stringify(w.name)} json_ $"{path_}.${w.name}"\n let ${_(w.name)} =\n ${M(w.type,`${w.name}Json_`,`$"{path_}.${w.name}"`,_(w.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${O.fields.map(w=>`${v(w.name)} = ${_(w.name)}`).join("; ")} }\n\nlet Encode${O.name} (obj_: ${O.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${O.fields.map(w=>`\n resultWriter_.WritePropertyName(${JSON.stringify(w.name)})\n ${N(w.type,`obj_.${v(w.name)}`,`$"{path_}.${w.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},C.generateEnum=function Y(O){return`\ntype ${O.name} =\n ${O.values.map(({value:w})=>`| ${v(w)}`).join("\n ")}\n\nlet Decode${O.name} (json_: JsonElement) (path_: string): ${O.name} =\n if (json_.ValueKind <> JsonValueKind.String) then raise (FatalException($"'{path_}' must be a string."))\n match json_.GetString() with\n ${O.values.map(({value:w})=>`| "${w}" -> ${O.name}.${v(w)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${O.values.map(({value:w})=>`'${w}'`).join(", ")})."))\n\nlet Encode${O.name} (obj_: ${O.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${O.values.map(({value:w})=>`| ${O.name}.${v(w)} -> resultWriter_.WriteStringValue("${w}")`).join("\n ")}\n\n`}},8258:function(De,C,y){"use strict";var a=this&&this.__createBinding||(Object.create?function(Z,V,_,v){void 0===v&&(v=_);var x=Object.getOwnPropertyDescriptor(V,_);(!x||("get"in x?!V.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return V[_]}}),Object.defineProperty(Z,v,x)}:function(Z,V,_,v){void 0===v&&(v=_),Z[v]=V[_]}),i=this&&this.__exportStar||function(Z,V){for(var _ in Z)"default"!==_&&!Object.prototype.hasOwnProperty.call(V,_)&&a(V,Z,_)};Object.defineProperty(C,"__esModule",{value:!0}),i(y(4155),C)},8336:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateAndroidClientSource=void 0;const a=y(6068),i=y(5507);C.generateAndroidClientSource=function Z(V,_){let v='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.parcelize.Parcelize\nimport android.content.Context\nimport android.util.Base64\nimport com.google.gson.*\nimport com.google.gson.reflect.TypeToken\nimport com.google.gson.annotations.JsonAdapter\nimport com.google.gson.annotations.SerializedName\nimport io.sdkgen.runtime.SdkgenHttpClient\nimport kotlinx.coroutines.*\nimport kotlinx.coroutines.Dispatchers.IO\nimport kotlinx.parcelize.RawValue\nimport java.util.*\nimport okhttp3.Interceptor\n\ninline fun <reified T> Gson.fromJson(json: String) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\ninline fun <reified T> Gson.fromJson(json: JsonElement) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\n@Suppress("DeferredIsResult", "unused")\nclass ApiClient(\n baseUrl: String,\n val applicationContext: Context,\n defaultTimeoutMillis: Long = 10000L,\n fingerprint: String? = null,\n httpInterceptor: Interceptor? = null,\n httpNetworkInterceptor: Interceptor? = null\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis, fingerprint, httpInterceptor, httpNetworkInterceptor) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const N of V.enumTypes)v+=` ${(0,i.generateEnum)(N)}`,v+="\n";v+=" open class Error(val message: String? = null)\n",v+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const N of V.structTypes)v+=` ${(0,i.generateClass)(N)}\n`;const x=[],M=new a.ErrorNode("Connection",new a.VoidPrimitiveType);x.push(M.name),v+=` ${(0,i.generateErrorClass)(M)}`;for(const N of V.errors)v+=` ${(0,i.generateErrorClass)(N)}`,x.push(N.name);return x.length>0&&(v+=`\n enum class ErrorType {\n ${x.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${x.map(N=>`${N} -> ApiClient.${N}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),v+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",v+=V.operations.filter(N=>N.annotations.every(P=>!(P instanceof a.HiddenAnnotation))).map(N=>{let P="";const Y=[];Y.push("timeoutMillis: Long? = null"),_&&Y.push(`callback: ((response: Response<${(0,i.generateKotlinTypeName)(N.returnType)}>) -> Unit)? = null`);const O=N.args.map(w=>`${(0,i.mangle)(w.name)}: ${(0,i.generateKotlinTypeName)(w.type)}`).concat(Y);return P+=` fun ${(0,i.mangle)(N.name)}(\n ${O.join(",\n ")}\n ): Deferred<Response<out ${(0,i.generateKotlinTypeName)(N.returnType)}>> = sdkgenIOScope.async {\n`,N.args.length>0?(P+=" val bodyArgs = JsonObject().apply {\n",P+=N.args.map(w=>` ${(0,i.generateJsonAddRepresentation)(w.type,w.name)}`).join("\n"),P+="\n }\n"):P+=" val bodyArgs: JsonObject? = null",P+="\n",P+=` val call = makeRequest("${N.name}", bodyArgs, timeoutMillis)\n`,P+=` val response: Response<${(0,i.generateKotlinTypeName)(N.returnType)}> = handleCallResponse(call)\n`,_&&(P+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),P+=" return@async response\n",P+=" }\n",P}).join("\n"),v+='\n private inline fun <reified T> handleCallResponse(callResponse: InternalResponse): Response<T> {\n try {\n val data = if (callResponse.result?.get("result") != null)\n gson.fromJson<T>(callResponse.result?.get("result")!!)\n else null\n\n val error = if (callResponse.error != null) {\n val errorType = try {\n ErrorType.valueOf(callResponse.error?.get("type")?.asString ?: "")\n } catch (e: Exception) {\n ErrorType.Fatal\n }\n\n gson.fromJson(callResponse.error, errorType.type())\n } else null\n\n return Response(error, data, callResponse.stats)\n } catch(e: Exception) {\n return Response(Fatal(applicationContext.getString(io.sdkgen.runtime.R.string.sdkgen_error_serialization)), null, callResponse.stats)\n }\n }\n',v+="}\n",v}},5507:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateErrorClass=C.generateClass=C.getAnnotation=C.generateEnum=C.generateJsonAddRepresentation=C.mangle=C.generateKotlinTypeName=void 0;const a=y(6068);function i(N){switch(N.constructor){case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:return"Int";case a.FloatPrimitiveType:return"Double";case a.BigIntPrimitiveType:return"BigInt";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Calendar";case a.BoolPrimitiveType:return"Boolean";case a.BytesPrimitiveType:return"ByteArray";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"Unit";case a.JsonPrimitiveType:return"@RawValue JsonElement";case a.OptionalType:return`${i(N.base)}?`;case a.ArrayType:return`ArrayList<${i(N.base)}>`;case a.StructType:case a.EnumType:return N.name;case a.TypeReference:return i(N.type);default:throw new Error(`BUG: generateKotlinTypeName with ${N.constructor.name}`)}}function Z(N){return["in","out","as","break","class","continue","do","else","false","for","fun","if","in","interface","is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","Double","Float","Long","Int","Short","Byte"].includes(N)?`_${N}`:N}function v(N,P){let Y="";switch(P&&P!==Z(P)&&(Y+=` @SerializedName("${P}")\n`),N.constructor){case a.DatePrimitiveType:Y+=" @JsonAdapter(DateAdapter::class)\n";break;case a.DateTimePrimitiveType:Y+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case a.ArrayType:case a.OptionalType:Y+=v(N.base)}return Y}C.generateKotlinTypeName=i,C.mangle=Z,C.generateJsonAddRepresentation=function V(N,P){switch(N.constructor){case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:case a.BoolPrimitiveType:return`addProperty("${P}", ${Z(P)})`;case a.OptionalType:return V(N.base,P);case a.DatePrimitiveType:return`addProperty("${P}", ${Z(P)}?.let { DateAdapter.sdf.format(it.time)}) `;case a.DateTimePrimitiveType:return`addProperty("${P}", ${Z(P)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case a.ArrayType:case a.StructType:case a.EnumType:case a.TypeReference:case a.JsonPrimitiveType:return`add("${P}", gson.toJsonTree(${Z(P)}))`;case a.VoidPrimitiveType:return"";case a.BytesPrimitiveType:return`addProperty("${P}", Base64.encodeToString(${Z(P)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${N.constructor.name}`)}},C.generateEnum=function _(N){let P="@Parcelize \n";return P+=` enum class ${N.name} : Parcelable { ${N.values.map(Y=>Z(Y.value)).join(", ")} }\n`,P},C.getAnnotation=v,C.generateClass=function x(N){let P="@Parcelize\n";return P+=` data class ${N.name}(\n${N.fields.map(Y=>{let O=v(Y.type,Y.name);return O+=` var ${Z(Y.name)}: ${i(Y.type)}${Y.type.constructor===a.OptionalType?" = null":""}`,O}).join(",\n")}\n ) : Parcelable\n`,P},C.generateErrorClass=function M(N){return`class ${N.name}(message: String) : Error(message)\n`}},5402:function(De,C,y){"use strict";var a=this&&this.__createBinding||(Object.create?function(Z,V,_,v){void 0===v&&(v=_);var x=Object.getOwnPropertyDescriptor(V,_);(!x||("get"in x?!V.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return V[_]}}),Object.defineProperty(Z,v,x)}:function(Z,V,_,v){void 0===v&&(v=_),Z[v]=V[_]}),i=this&&this.__exportStar||function(Z,V){for(var _ in Z)"default"!==_&&!Object.prototype.hasOwnProperty.call(V,_)&&a(V,Z,_)};Object.defineProperty(C,"__esModule",{value:!0}),i(y(8336),C)},194:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.AstRoot=C.FunctionOperation=C.TypeDefinition=C.StructType=C.TypeReference=C.Spread=C.Field=C.EnumType=C.EnumValue=C.ArrayType=C.OptionalType=C.JsonPrimitiveType=C.XmlPrimitiveType=C.Base64PrimitiveType=C.HtmlPrimitiveType=C.HexPrimitiveType=C.UuidPrimitiveType=C.UrlPrimitiveType=C.EmailPrimitiveType=C.CnpjPrimitiveType=C.CpfPrimitiveType=C.DecimalPrimitiveType=C.MoneyPrimitiveType=C.VoidPrimitiveType=C.BytesPrimitiveType=C.BoolPrimitiveType=C.DateTimePrimitiveType=C.DatePrimitiveType=C.BigIntPrimitiveType=C.FloatPrimitiveType=C.UIntPrimitiveType=C.IntPrimitiveType=C.StringPrimitiveType=C.PrimitiveType=C.StatusCodeAnnotation=C.HiddenAnnotation=C.RestAnnotation=C.ArgDescriptionAnnotation=C.TagAnnotation=C.ThrowsAnnotation=C.DescriptionAnnotation=C.Annotation=C.ErrorNode=C.Type=C.AstNode=void 0;const a=y(2188);class i{constructor(){this.location=new a.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(et){return this.location=et.location,this}atLocation(et){return this.location=et,this}}C.AstNode=i;class Z extends i{toJSON(){const{name:et,...Me}={...this};return Me}}C.Type=Z,C.ErrorNode=class V extends i{constructor(et,Me){super(),this.name=et,this.dataType=Me,this.annotations=[]}};class _ extends i{}C.Annotation=_,C.DescriptionAnnotation=class v extends _{constructor(et){super(),this.text=et}},C.ThrowsAnnotation=class x extends _{constructor(et){super(),this.error=et}},C.TagAnnotation=class M extends _{constructor(et){super(),this.tag=et}},C.ArgDescriptionAnnotation=class N extends _{constructor(et,Me){super(),this.argName=et,this.text=Me}},C.RestAnnotation=class P extends _{constructor(et,Me,ze,ne,se,Ee){super(),this.method=et,this.path=Me,this.pathVariables=ze,this.queryVariables=ne,this.headers=se,this.bodyVariable=Ee}},C.HiddenAnnotation=class Y extends _{},C.StatusCodeAnnotation=class O extends _{constructor(et){super(),this.statusCode=et}};class w extends Z{toJSON(){return this.name}}C.PrimitiveType=w,C.StringPrimitiveType=class I extends w{constructor(){super(...arguments),this.name="string"}},C.IntPrimitiveType=class R extends w{constructor(){super(...arguments),this.name="int"}},C.UIntPrimitiveType=class ie extends w{constructor(){super(...arguments),this.name="uint"}},C.FloatPrimitiveType=class X extends w{constructor(){super(...arguments),this.name="float"}},C.BigIntPrimitiveType=class ce extends w{constructor(){super(...arguments),this.name="bigint"}},C.DatePrimitiveType=class Ne extends w{constructor(){super(...arguments),this.name="date"}},C.DateTimePrimitiveType=class Ge extends w{constructor(){super(...arguments),this.name="datetime"}},C.BoolPrimitiveType=class Ve extends w{constructor(){super(...arguments),this.name="bool"}},C.BytesPrimitiveType=class Ae extends w{constructor(){super(...arguments),this.name="bytes"}},C.VoidPrimitiveType=class Pe extends w{constructor(){super(...arguments),this.name="void"}},C.MoneyPrimitiveType=class Se extends w{constructor(){super(...arguments),this.name="money"}},C.DecimalPrimitiveType=class ke extends w{constructor(){super(...arguments),this.name="decimal"}},C.CpfPrimitiveType=class Ce extends w{constructor(){super(...arguments),this.name="cpf"}},C.CnpjPrimitiveType=class Te extends w{constructor(){super(...arguments),this.name="cnpj"}},C.EmailPrimitiveType=class je extends w{constructor(){super(...arguments),this.name="email"}},C.UrlPrimitiveType=class ut extends w{constructor(){super(...arguments),this.name="url"}},C.UuidPrimitiveType=class Dt extends w{constructor(){super(...arguments),this.name="uuid"}},C.HexPrimitiveType=class Gt extends w{constructor(){super(...arguments),this.name="hex"}},C.HtmlPrimitiveType=class Wt extends w{constructor(){super(...arguments),this.name="html"}},C.Base64PrimitiveType=class Je extends w{constructor(){super(...arguments),this.name="base64"}},C.XmlPrimitiveType=class le extends w{constructor(){super(...arguments),this.name="xml"}},C.JsonPrimitiveType=class re extends w{constructor(){super(...arguments),this.name="json"}},C.OptionalType=class K extends Z{constructor(et){super(),this.base=et}get name(){return`${this.base.name}?`}},C.ArrayType=class j extends Z{constructor(et){super(),this.base=et}get name(){return`${this.base.name}[]`}},C.EnumValue=class F extends i{constructor(et){super(),this.value=et,this.annotations=[],this.struct=null}},C.EnumType=class z extends Z{constructor(et){super(),this.values=et}get hasStructValues(){return this.values.some(et=>null!==et.struct)}},C.Field=class H extends i{constructor(et,Me,ze=!1){super(),this.name=et,this.type=Me,this.secret=ze,this.annotations=[]}},C.Spread=class Q extends i{constructor(et){super(),this.typeReference=et}},C.TypeReference=class de extends Z{constructor(et){super(),this.name=et}},C.StructType=class ge extends Z{constructor(et){super(),this.fieldsAndSpreads=et,this.fields=[]}},C.TypeDefinition=class Fe extends i{constructor(et,Me){super(),this.name=et,this.type=Me,this.annotations=[]}},C.FunctionOperation=class Be extends i{constructor(et,Me,ze){super(),this.name=et,this.fieldsAndSpreads=Me,this.returnType=ze,this.annotations=[],this.args=[]}},C.AstRoot=class _t{constructor(et=[],Me=[],ze=[]){this.typeDefinitions=et,this.operations=Me,this.errors=ze,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},4294:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.compatibilityIssues=void 0;const a=y(194);function i(_,v,x,M){if(x instanceof a.TypeReference)i(_,v,x.type,M);else if(M instanceof a.TypeReference)i(_,v,x,M.type);else if(x instanceof a.OptionalType||!(M instanceof a.OptionalType))if(x instanceof a.OptionalType&&M instanceof a.OptionalType)i(_,v,x.base,M.base);else{if(x instanceof a.OptionalType&&!(M instanceof a.OptionalType))return v.push(`${_} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void i(_,v,x.base,M);if(x instanceof a.ArrayType&&M instanceof a.ArrayType)i(_,v,x.base,M.base);else if(x instanceof a.StructType&&M instanceof a.StructType)for(const N of M.fields){const P=x.fields.find(Y=>Y.name===N.name);if(P)i(`${_}.${P.name}`,v,P.type,N.type);else{if(N.type instanceof a.OptionalType)continue;v.push(`${_}.${N.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(x instanceof a.UIntPrimitiveType&&M instanceof a.IntPrimitiveType||x instanceof a.IntPrimitiveType&&M instanceof a.FloatPrimitiveType||x instanceof a.MoneyPrimitiveType&&M instanceof a.IntPrimitiveType||x instanceof a.MoneyPrimitiveType&&M instanceof a.UIntPrimitiveType||x instanceof a.UIntPrimitiveType&&M instanceof a.BigIntPrimitiveType||x instanceof a.IntPrimitiveType&&M instanceof a.BigIntPrimitiveType||x instanceof a.MoneyPrimitiveType&&M instanceof a.BigIntPrimitiveType||x instanceof a.BigIntPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.UuidPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.XmlPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.DatePrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.DateTimePrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.CpfPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.CnpjPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.HexPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.HtmlPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.Base64PrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.BytesPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.BytesPrimitiveType&&M instanceof a.Base64PrimitiveType||x instanceof a.UrlPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.EmailPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.DecimalPrimitiveType&&M instanceof a.StringPrimitiveType||x instanceof a.EnumType&&M instanceof a.StringPrimitiveType)){if(x instanceof a.EnumType&&M instanceof a.EnumType){for(const N of x.values){const P=M.values.find(Y=>Y.value===N.value);P?i(`${_}.${N.value}`,v,N.struct??new a.StructType([]),P.struct??new a.StructType([])):v.push(`The enum at ${_} used to accept the value "${N.value}" that doesn't exist now. Clients that send it will fail.`)}return}x.constructor.name!==M.constructor.name&&v.push(`${_} was ${x.name} and now it is ${M.name}. They are not compatible.`)}}else i(_,v,x,M.base)}function Z(_,v,x,M){if(x instanceof a.TypeReference)Z(_,v,x.type,M);else if(M instanceof a.TypeReference)Z(_,v,x,M.type);else if(!(x instanceof a.OptionalType)||M instanceof a.OptionalType)if(x instanceof a.OptionalType&&M instanceof a.OptionalType)Z(_,v,x.base,M.base);else{if(!(x instanceof a.OptionalType)&&M instanceof a.OptionalType)return v.push(`${_} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void Z(_,v,x,M.base);if(x instanceof a.ArrayType&&M instanceof a.ArrayType)Z(_,v,x.base,M.base);else if(x instanceof a.StructType&&M instanceof a.StructType)for(const N of x.fields){const P=M.fields.find(Y=>Y.name===N.name);if(P)Z(`${_}.${N.name}`,v,N.type,P.type);else{if(N.type instanceof a.OptionalType)continue;v.push(`${_}.${N.name} used to exist with type ${N.type.name}, but it's now missing. Add it back.`)}}else if(!(x instanceof a.IntPrimitiveType&&M instanceof a.UIntPrimitiveType||x instanceof a.FloatPrimitiveType&&M instanceof a.IntPrimitiveType||x instanceof a.IntPrimitiveType&&M instanceof a.MoneyPrimitiveType||x instanceof a.UIntPrimitiveType&&M instanceof a.MoneyPrimitiveType||x instanceof a.BigIntPrimitiveType&&M instanceof a.UIntPrimitiveType||x instanceof a.BigIntPrimitiveType&&M instanceof a.IntPrimitiveType||x instanceof a.BigIntPrimitiveType&&M instanceof a.MoneyPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.BigIntPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.UuidPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.XmlPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.DatePrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.DateTimePrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.CpfPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.CnpjPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.HexPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.HtmlPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.Base64PrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.BytesPrimitiveType||x instanceof a.Base64PrimitiveType&&M instanceof a.BytesPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.UrlPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.EmailPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.DecimalPrimitiveType||x instanceof a.StringPrimitiveType&&M instanceof a.EnumType)){if(x instanceof a.EnumType&&M instanceof a.EnumType){for(const N of M.values){const P=x.values.find(Y=>Y.value===N.value);P?Z(`${_}.${N.value}`,v,P.struct??new a.StructType([]),N.struct??new a.StructType([])):v.push(`The enum at ${_} now has the value "${N.value}" that didn't exist before. Client will crash if it receives it`)}return}x.constructor.name!==M.constructor.name&&v.push(`${_} was ${x.name} and now it is ${M.name}. They are not compatible.`)}}else Z(_,v,x.base,M)}C.compatibilityIssues=function V(_,v){const x=[];for(const M of _.operations){const N=v.operations.find(P=>P.name===M.name);if(N){Z(`${M.name}.ret`,x,M.returnType,N.returnType);for(const P of N.args){const Y=M.args.find(O=>O.name===P.name);if(Y)i(`${M.name}.args.${Y.name}`,x,Y.type,P.type);else{if(P.type instanceof a.OptionalType)continue;x.push(`${M.name}.args.${P.name} didn't exist before and isn't optional. Make it optional.`)}}}else x.push(`function ${M.name} used to exist, but it's now missing. Add it back.`)}for(const M of _.errors){const N=v.errors.find(P=>P.name===M.name);N&&Z(`${M.name}.data`,x,M.dataType,N.dataType)}return x}},5029:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.hasType=void 0;const a=y(967);class i extends a.Visitor{constructor(_,v){super(_),this.type=v,this.found=!1}visit(_){_.constructor===this.type&&(this.found=!0),super.visit(_)}}C.hasType=function Z(V,_){const v=new i(V,_);return v.process(),v.found}},6068:function(De,C,y){"use strict";var a=this&&this.__createBinding||(Object.create?function(v,x,M,N){void 0===N&&(N=M);var P=Object.getOwnPropertyDescriptor(x,M);(!P||("get"in P?!x.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return x[M]}}),Object.defineProperty(v,N,P)}:function(v,x,M,N){void 0===N&&(N=M),v[N]=x[M]}),i=this&&this.__exportStar||function(v,x){for(var M in v)"default"!==M&&!Object.prototype.hasOwnProperty.call(x,M)&&a(x,v,M)};Object.defineProperty(C,"__esModule",{value:!0}),C.hasType=C.Visitor=C.jsonToAst=C.astToJson=void 0,i(y(194),C),i(y(4294),C);var Z=y(4059);Object.defineProperty(C,"astToJson",{enumerable:!0,get:function(){return Z.astToJson}}),Object.defineProperty(C,"jsonToAst",{enumerable:!0,get:function(){return Z.jsonToAst}}),i(y(3390),C),i(y(5014),C),i(y(2188),C);var V=y(967);Object.defineProperty(C,"Visitor",{enumerable:!0,get:function(){return V.Visitor}});var _=y(5029);Object.defineProperty(C,"hasType",{enumerable:!0,get:function(){return _.hasType}})},4059:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.jsonToAst=C.astToJson=void 0;const a=y(194),i=y(3835),Z=y(5127);function V(M){if(M instanceof a.DescriptionAnnotation)return{type:"description",value:M.text};if(M instanceof a.ThrowsAnnotation)return{type:"throws",value:M.error};if(M instanceof a.TagAnnotation)return{type:"tag",value:M.tag};if(M instanceof a.RestAnnotation)return{type:"rest",value:{bodyVariable:M.bodyVariable,headers:[...M.headers.entries()].sort(([N],[P])=>N.localeCompare(P)),method:M.method,path:M.path,pathVariables:M.pathVariables,queryVariables:[...M.queryVariables].sort((N,P)=>N.localeCompare(P))}};if(M instanceof a.HiddenAnnotation)return{type:"hidden",value:null};if(M instanceof a.StatusCodeAnnotation)return{type:"statusCode",value:M.statusCode};throw new Error(`BUG: annotationToJson with ${M.constructor.name}`)}function _(M){switch(M.type){case"description":return new a.DescriptionAnnotation(M.value);case"throws":return new a.ThrowsAnnotation(M.value);case"tag":return new a.TagAnnotation(M.value);case"rest":{const{method:N,path:P,pathVariables:Y,queryVariables:O,headers:w,bodyVariable:I}=M.value;return new a.RestAnnotation(N,P,Y,O,new Map(w),I)}case"hidden":return new a.HiddenAnnotation;case"statusCode":return new a.StatusCodeAnnotation(M.value);default:throw new Error(`BUG: annotationFromJson with ${M.type}`)}}C.astToJson=function v(M){const N={},P={};function Y(I){return I instanceof a.ArrayType?`${Y(I.base)}[]`:I instanceof a.OptionalType?`${Y(I.base)}?`:I.name}for(const{name:I,fields:R}of M.structTypes){if(I in P)throw new Error(`Duplicate struct type ${I}`);P[I]={};const ie=P[I];for(const X of R){ie[X.name]=Y(X.type);for(const ce of X.annotations)if(ce instanceof a.DescriptionAnnotation){const Ne=`type.${I}.${X.name}`;N[Ne]??=[],N[Ne].push(V(ce))}}}for(const{name:I,values:R}of M.enumTypes){if(I in P)throw new Error(`Duplicate enum type ${I}`);P[I]=R.map(ie=>ie.struct?[ie.value,ie.struct.name]:ie.value)}for(const{name:I,type:R}of M.typeDefinitions)R instanceof a.StructType||R instanceof a.EnumType||(P[I]=Y(R));const O={};for(const I of M.operations){const R={};for(const ie of I.args){R[ie.name]=Y(ie.type);for(const X of ie.annotations)if(X instanceof a.DescriptionAnnotation){const ce=`fn.${I.name}.${ie.name}`;N[ce]??=[],N[ce].push(V(X))}}O[I.name]={args:R,ret:Y(I.returnType)};for(const ie of I.annotations){const X=`fn.${I.name}`;N[X]??=[],N[X].push(V(ie))}}const w=M.errors.map(I=>I.dataType instanceof a.VoidPrimitiveType?I.name:[I.name,I.dataType.name]);for(const I of M.errors)for(const R of I.annotations){const ie=`error.${I.name}`;N[ie]??=[],N[ie].push(V(R))}return{annotations:N,errors:w,functionTable:O,typeTable:P}},C.jsonToAst=function x(M){const N=[],P=[],Y=[];function O(R,ie){if("string"==typeof R){const ce=Z.primitiveToAstClass.get(R);return ce?new ce:R.endsWith("?")?new a.OptionalType(O(R.slice(0,R.length-1))):R.endsWith("[]")?new a.ArrayType(O(R.slice(0,R.length-2))):new a.TypeReference(R)}if(Array.isArray(R))return new a.EnumType(R.map(ce=>{if(Array.isArray(ce)){const[Ne,Ge]=ce,Ve=new a.EnumValue(Ne);return Y.push([Ve,Ge]),Ve}return new a.EnumValue(ce)}));const X=[];for(const ce of Object.keys(R)){const Ne=new a.Field(ce,O(R[ce]));if(ie){const Ge=`type.${ie}.${ce}`;for(const Ve of M.annotations[Ge]??[])Ne.annotations.push(_(Ve))}X.push(Ne)}return new a.StructType(X)}for(const[R,ie]of Object.entries(M.typeTable)){const X=O(ie,R);P.push(new a.TypeDefinition(R,X))}for(const[R,ie]of Object.entries(M.functionTable)){const X=Object.keys(ie.args).map(Ge=>{const Ve=new a.Field(Ge,O(ie.args[Ge])),Ae=`fn.${R}.${Ge}`;for(const Pe of M.annotations[Ae]??[])Ve.annotations.push(_(Pe));return Ve}),ce=new a.FunctionOperation(R,X,O(ie.ret)),Ne=`fn.${R}`;for(const Ge of M.annotations[Ne]??[])ce.annotations.push(_(Ge));N.push(ce)}for(const[R,ie]of Y){const X=P.find(ce=>ce.name===ie)?.type;X instanceof a.StructType&&(R.struct=X)}const w=M.errors.map(R=>{let ie;if(Array.isArray(R)){const[ce,Ne]=R;ie=new a.ErrorNode(ce,O(Ne))}else ie=new a.ErrorNode(R,new a.VoidPrimitiveType);const X=`error.${ie.name}`;for(const ce of M.annotations[X]??[])ie.annotations.push(_(ce));return ie}),I=new a.AstRoot(P,N,w);return(0,i.analyse)(I),I}},3390:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.Lexer=C.LexerError=void 0;const a=y(2188);class i extends Error{}C.LexerError=i;class Z{static#e=this.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","decimal","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]);static#t=this.KEYWORDS=new Set([...Z.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"]);constructor(_,v="-"){this.source=_,this.filename=v,this.startPos=0,this.startLine=1,this.startColumn=1,this.pos=0,this.line=1,this.column=1}currentChar(){return this.source[this.pos]||"\0"}nextChar(){return this.column++,this.source[++this.pos]||"\0"}nextToken(){this.startPos=this.pos,this.startLine=this.line,this.startColumn=this.column;let _=null;switch(this.currentChar()){case"\0":return null;case" ":case"\r":case"\t":return this.nextChar(),this.nextToken();case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken();case"/":switch(this.nextChar()){case"/":for(;;)switch(this.nextChar()){case"\0":return null;case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken()}case"*":e:for(;;)switch(this.nextChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"*":for(;"*"===this.nextChar(););switch(this.currentChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"/":return this.nextChar(),this.nextToken()}}}break;case"{":this.nextChar(),_=new a.CurlyOpenSymbolToken;break;case"}":this.nextChar(),_=new a.CurlyCloseSymbolToken;break;case"(":this.nextChar(),_=new a.ParensOpenSymbolToken;break;case")":this.nextChar(),_=new a.ParensCloseSymbolToken;break;case"?":this.nextChar(),_=new a.OptionalSymbolToken;break;case":":this.nextChar(),_=new a.ColonSymbolToken;break;case"=":this.nextChar(),_=new a.EqualSymbolToken;break;case"!":this.nextChar(),_=new a.ExclamationMarkSymbolToken;break;case",":this.nextChar(),_=new a.CommaSymbolToken;break;case"[":"]"===this.nextChar()&&(this.nextChar(),_=new a.ArraySymbolToken);break;case".":"."===this.nextChar()&&"."===this.nextChar()&&(this.nextChar(),_=new a.SpreadSymbolToken);break;case"@":{let v="\\",x=this.startPos+1;for(;v.endsWith("\\");){for(v=v.slice(0,v.length-1).trim();!["\0","\n"].includes(this.nextChar()););v=`${v} ${this.source.substring(x,this.pos).trim()}`.trim(),x=this.pos+1}_=new a.AnnotationToken(v.trim());break}case'"':{const v=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":v.push("\n");break;case"t":v.push("\t");break;default:v.push(this.currentChar())}break;case'"':this.nextChar(),_=new a.StringLiteralToken(v.join(""));break e;default:v.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const v=this.source.substring(this.startPos,this.pos);switch(v){case"error":_=new a.ErrorKeywordToken;break;case"enum":_=new a.EnumKeywordToken;break;case"type":_=new a.TypeKeywordToken;break;case"import":_=new a.ImportKeywordToken;break;case"fn":_=new a.FnKeywordToken;break;case"true":_=new a.TrueKeywordToken;break;case"false":_=new a.FalseKeywordToken;break;default:_=Z.PRIMITIVES.has(v)?new a.PrimitiveTypeToken(v):new a.IdentifierToken(v)}}}if(null!==_)return _.location.filename=this.filename,_.location.line=this.startLine,_.location.column=this.startColumn,_;throw"\0"===this.currentChar()?new i(`Unexpected end of file at ${this.filename}`):new i(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}C.Lexer=Z},5014:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.Parser=C.ParserError=void 0;const a=y(194),i=y(3390),Z=y(5219),V=y(3835),_=y(2188),v=y(5127);class x extends Error{}C.ParserError=x,C.Parser=class M{constructor(P){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var w=new Error("Cannot find module 'fs'");throw w.code="MODULE_NOT_FOUND",w}())}catch{}const Y=Array.isArray(P)?[...P].reverse():[P];this.lexers=Y.map(O=>O instanceof i.Lexer?O:new i.Lexer(this.readFileSync(O).toString(),O)),this.nextToken()}nextToken(){for(;this.lexers.length>0;){if(this.token=this.lexers[this.lexers.length-1].nextToken(),this.token)return;this.lexers.pop()}}multiExpect(P){if(!this.token)throw new x(`Expected ${Object.keys(P).map(O=>O.replace("Token","")).join(" or ")}, but found end of file`);const Y=this.token.constructor.name;if(Y in P)return P[Y](this.token);if(P.IdentifierToken){const O=this.token.maybeAsIdentifier();if(O instanceof _.IdentifierToken)return P.IdentifierToken(O)}throw new x(`Expected ${Object.keys(P).map(O=>O.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(P){if(null===this.token)throw new x(`Expected ${P.name.replace("Token","")}, but found end of file`);if(this.token instanceof P)return this.token;if(P===_.IdentifierToken){const Y=this.token.maybeAsIdentifier();if(Y instanceof _.IdentifierToken)return Y}throw new x(`Expected ${P.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const P=[],Y=[],O=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{O.push(this.parseError())},FnKeywordToken:()=>{P.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const I=this.expect(_.StringLiteralToken),R=I.location.filename.replace(/[^/\\]+$/u,`${I.value}.sdkgen`);this.lexers.push(new i.Lexer(this.readFileSync(R).toString(),R)),this.nextToken()},TypeKeywordToken:()=>{Y.push(this.parseTypeDefinition())}});const w=new a.AstRoot(Y,P,O);return w.warnings=this.warnings,(0,V.analyse)(w),w}acceptAnnotations(){for(;this.token instanceof _.AnnotationToken;){const P=this.token.value.split(" "),Y=this.token.value.slice(P[0].length).trim();switch(P[0]){case"description":this.annotations.push(new a.DescriptionAnnotation(Y).at(this.token));break;case"arg":this.annotations.push(new a.ArgDescriptionAnnotation(P[1],this.token.value.slice(P[0].length+1+P[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new a.ThrowsAnnotation(Y).at(this.token));break;case"tag":if(""===Y)throw new x(`@tag annotation needs a value at ${this.token.location}`);this.annotations.push(new a.TagAnnotation(Y).at(this.token));break;case"rest":try{this.annotations.push((0,Z.parseRestAnnotation)(Y).at(this.token))}catch(O){throw new x(`${O instanceof Error?O.message:O} at ${this.token.location}`)}break;case"hidden":if(""!==Y)throw new x("@hidden annotation doesn't take any argument");this.annotations.push((new a.HiddenAnnotation).at(this.token));break;case"statusCode":{const O=parseInt(Y,10);if(O.toString()!==Y.trim())throw new x("@statusCode annotation takes an integer as argument");this.annotations.push(new a.StatusCodeAnnotation(O).at(this.token));break}default:throw new x(`Unknown annotation '${P[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new x(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const P=this.expect(_.TypeKeywordToken);this.nextToken();const Y=this.expect(_.IdentifierToken),O=Y.value;if(!/[A-Z]/u.test(O[0]))throw new x(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(O)} at ${Y.location}`);this.nextToken();const{annotations:w}=this;this.annotations=[];const I=this.parseType(),R=new a.TypeDefinition(O,I).at(P);return R.annotations=w,R}parseError(){const P=this.expect(_.ErrorKeywordToken);this.nextToken();const Y=this.expect(_.IdentifierToken),O=Y.value;if(!/[A-Z]/u.test(O[0]))throw new x(`Error name must start with an uppercase letter, but found ${JSON.stringify(O)} at ${Y.location}`);this.nextToken();const{annotations:w}=this;this.annotations=[];let I=new a.VoidPrimitiveType;(this.token instanceof _.CurlyOpenSymbolToken||this.token instanceof _.EnumKeywordToken||this.token instanceof _.IdentifierToken||this.token instanceof _.PrimitiveTypeToken)&&(I=this.parseType());const R=new a.ErrorNode(O,I).at(P);return R.annotations=w,R}parseOperation(){let{annotations:P}=this;this.annotations=[],this.expect(_.FnKeywordToken),this.nextToken();const Y=this.expect(_.IdentifierToken).value;this.nextToken(),this.expect(_.ParensOpenSymbolToken),this.nextToken();const O=new Set,w=[];let R,I=!1;for(;!I;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:ce=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),I=!0,R=ce},IdentifierToken:()=>{const ce=this.parseField();if(O.has(ce.name))throw new x(`Cannot redeclare argument '${ce.name}'`);O.add(ce.name),w.push(ce),this.multiExpect({ParensCloseSymbolToken:Ne=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),I=!0,R=Ne},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const ce=this.expect(_.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(ce.value[0]))throw new x(`Expected a type but found ${JSON.stringify(ce.value)} at ${ce.location}`);w.push(new a.Spread(new a.TypeReference(ce.value).at(ce)).at(ce)),this.multiExpect({ParensCloseSymbolToken:Ne=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),I=!0,R=Ne},CommaSymbolToken:()=>this.nextToken()})}});for(const ce of P)if(ce instanceof a.ArgDescriptionAnnotation){const Ne=w.find(Ge=>Ge instanceof a.Field&&Ge.name===ce.argName);if(!Ne)throw new x(`Argument '${ce.argName}' not found, at ${ce.location}`);Ne.annotations.push(new a.DescriptionAnnotation(ce.text).atLocation(ce.location))}P=P.filter(ce=>!(ce instanceof a.ArgDescriptionAnnotation));let ie=(new a.VoidPrimitiveType).at(R);this.token instanceof _.ColonSymbolToken&&(this.nextToken(),ie=this.parseType());const X=new a.FunctionOperation(Y,w,ie);return X.annotations=P,X}parseEnum(){this.checkCannotHaveAnnotationsHere();const P=this.expect(_.EnumKeywordToken);this.nextToken(),this.expect(_.CurlyOpenSymbolToken),this.nextToken();const Y=new a.EnumType([]).at(P);let O=!1;for(;!O;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),O=!0},IdentifierToken:w=>{const I=new a.EnumValue(w.value).at(w);if(I.annotations=this.annotations,this.annotations=[],Y.values.push(I),this.nextToken(),!(this.token instanceof _.ParensOpenSymbolToken))return;this.nextToken();const R=new Set,ie=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof _.IdentifierToken;){const X=this.parseField();if("tag"===X.name&&(X.name="_tag"),R.has(X.name))throw new x(`Cannot redeclare argument '${X.name}'`);if(R.add(X.name),ie.push(X),!(this.token instanceof _.CommaSymbolToken))break;this.nextToken()}I.struct=new a.StructType(ie).atLocation(I.location),this.expect(_.ParensCloseSymbolToken),this.nextToken()}});return Y}parseField(){const P=this.expect(_.IdentifierToken);this.nextToken(),this.expect(_.ColonSymbolToken),this.nextToken();const{annotations:Y}=this;this.annotations=[];const O=this.parseType(),w=new a.Field(P.value,O).at(P);for(w.annotations=Y;this.token instanceof _.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(_.IdentifierToken).value))throw new x(`Unknown field mark !${this.token.value} at ${this.token.location}`);w.secret=!0,this.nextToken()}return w}parseStruct(){const P=this.expect(_.CurlyOpenSymbolToken);this.nextToken();const Y=[],O=new Set;let w=!1;for(;!w;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),w=!0},IdentifierToken:()=>{const I=this.parseField();if(O.has(I.name))throw new x(`Cannot redeclare field '${I.name}'`);O.add(I.name),Y.push(I)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const I=this.expect(_.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(I.value[0]))throw new x(`Expected a type but found ${JSON.stringify(I.value)} at ${I.location}`);Y.push(new a.Spread(new a.TypeReference(I.value).at(I)).at(I))}});return new a.StructType(Y).at(P)}parseType(){this.checkCannotHaveAnnotationsHere();let P=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:Y=>{if(this.nextToken(),!/[A-Z]/u.test(Y.value[0]))throw new x(`Expected a type but found ${JSON.stringify(Y.value)} at ${Y.location}`);return new a.TypeReference(Y.value).at(Y)},PrimitiveTypeToken:Y=>{this.nextToken();const O=v.primitiveToAstClass.get(Y.value);if(O)return(new O).at(Y);throw new x(`BUG! Should handle primitive ${Y.value}`)}});for(;this.token instanceof _.ArraySymbolToken||this.token instanceof _.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:Y=>P=new a.ArrayType(P).at(Y),OptionalSymbolToken:Y=>P=new a.OptionalType(P).at(Y)}),this.nextToken();return P}}},5219:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.parseRestAnnotation=void 0;const a=y(194);function V(v){const x=/\{(?<name>\w+)\}/gu,M=[];let N;for(;null!==(N=x.exec(v));)N.groups?.name&&M.push(N.groups.name);return M}C.parseRestAnnotation=function _(v){const x=v.split(" "),M=x[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(M))throw new Error(`Unsupported method '${M}'`);let N=x[1];if(!N.startsWith("/"))throw new Error("Invalid path");let P=[];if(N.includes("?")){const[R,...ie]=N.split("?");N=R;const X=ie.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(X))throw new Error("Invalid querystring on path");P=V(X)}const Y=V(N),O=x.slice(2).join(" "),w=function i(v){const x=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,M=new Map;let N;for(;null!==(N=x.exec(v));)N.groups?.header&&N.groups.name&&M.set(N.groups.header.toLowerCase(),N.groups.name);return M}(O),I=function Z(v){const x=/\[body \{(?<name>\w+)\}\]/u.exec(v);return x?.groups?.name?x.groups.name:null}(O);return new a.RestAnnotation(M,N,Y,P,w,I)}},3733:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.CheckMultipleDeclarationVisitor=void 0;const a=y(967),i=y(194);C.CheckMultipleDeclarationVisitor=class Z extends a.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(_){if(_ instanceof i.TypeDefinition){const v=this.nameToType.get(_.name);if(v&&JSON.stringify(v)!==JSON.stringify(_.type))throw new a.SemanticError(`Type '${_.name}' at ${_.location} is defined multiple times (also at ${v.location})`);this.nameToType.set(_.name,_.type)}super.visit(_)}}},3367:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.GiveStructAndEnumNamesTransformer=void 0;const a=y(5417),i=y(967),Z=y(194);C.GiveStructAndEnumNamesTransformer=class V extends a.Transformer{constructor(){super(...arguments),this.path=[],this.names=new Map}transform(v){if(v instanceof Z.TypeDefinition)return this.path=[v.name],super.transform(v);if(v instanceof Z.ErrorNode)return this.path=[`${v.name}Data`],super.transform(v);if(v instanceof Z.FunctionOperation)return this.path=[v.name],super.transform(v);if(v instanceof Z.Field)try{return this.path.push(v.name),super.transform(v)}finally{this.path.pop()}else{if(!(v instanceof Z.EnumValue)){if(v instanceof Z.StructType||v instanceof Z.EnumType){v.name=this.path.map(M=>M[0].toUpperCase()+M.slice(1)).join("");const x=this.names.get(v.name);if(x){if(x.type.constructor!==v.constructor||JSON.stringify(x.type)!==JSON.stringify(v))throw new i.SemanticError(`The name of the type '${this.path.join(".")}' at ${v.location} will conflict with '${x.path.join(".")}' at ${x.type.location}`);return x.type}return this.names.set(v.name,{path:[...this.path],type:v}),super.transform(v)}return super.transform(v)}try{return this.path.push(v.value),super.transform(v)}finally{this.path.pop()}}}}},1489:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.MatchTypeDefinitionsVisitor=void 0;const a=y(967),i=y(194);C.MatchTypeDefinitionsVisitor=class Z extends a.Visitor{visit(_){if(_ instanceof i.TypeReference){const v=this.root.typeDefinitions.find(x=>x.name===_.name);if(void 0===v)throw new a.SemanticError(`Could not find type '${_.name}' at ${_.location}`);_.type=v.type}super.visit(_)}}},458:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.CheckDontReturnSecretVisitor=void 0;const a=y(967),i=y(194);C.CheckDontReturnSecretVisitor=class Z extends a.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(_){if(!this.visited.has(_))if(this.visited.add(_),_ instanceof i.FunctionOperation)this.isInReturn=!0,this.visited.clear(),this.path.push(`${_.name}(...)`),this.visit(_.returnType),this.path.pop(),this.isInReturn=!1;else if(_ instanceof i.TypeReference)this.visit(_.type);else if(_ instanceof i.Field){if(this.path.push(_.name),this.isInReturn&&_.secret)throw new a.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${_.location}`);super.visit(_),this.path.pop()}else super.visit(_)}}},9623:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.ExpandSpreadsVisitor=void 0;const a=y(967),i=y(194);C.ExpandSpreadsVisitor=class Z extends a.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(_,v){const x=new Map;for(const M of v){let N;if(M instanceof i.Field)N=[M];else{const P=M.typeReference.type;if(!(P instanceof i.StructType))throw new a.SemanticError(`A spread operator can't refer to something that is not a struct, in '${M.typeReference.name}' at ${M.location}.`);this.visit(P),N=P.fields}for(const P of N){const Y=x.get(P.name);Y?_[Y]=P:(x.set(P.name,_.length),_.push(P))}}}visit(_){if(_ instanceof i.StructType){if(this.processed.has(_))return;this.processed.add(_)}super.visit(_),_ instanceof i.StructType?(this.expandSpread(_.fields,_.fieldsAndSpreads),_.fieldsAndSpreads=[]):_ instanceof i.FunctionOperation&&(this.expandSpread(_.args,_.fieldsAndSpreads),_.fieldsAndSpreads=[])}}},1763:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.CheckEmptyStructOrEnumVisitor=void 0;const a=y(967),i=y(194);C.CheckEmptyStructOrEnumVisitor=class Z extends a.Visitor{visit(_){if(super.visit(_),_ instanceof i.EnumType&&0===_.values.length)throw new a.SemanticError(`Enum '${_.name}' at ${_.location} is empty`);if(_ instanceof i.StructType&&0===_.fields.length)throw new a.SemanticError(`Struct '${_.name}' at ${_.location} is empty`)}}},2910:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.ValidateRecursiveTypes=void 0;const a=y(967),i=y(194);C.ValidateRecursiveTypes=class Z extends a.Visitor{visit(_){if(super.visit(_),_ instanceof i.TypeDefinition&&this.isRecursiveType(_,_.type)){if(!(_.type instanceof i.StructType||_.type instanceof i.EnumType))throw new a.SemanticError(`Type '${_.name}' at ${_.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(_,_.type))throw new a.SemanticError(`Type '${_.name}' at ${_.location} is infinitely recursive`)}}isRecursiveType(_,v){return v instanceof i.TypeReference?_.name===v.name:v instanceof i.ArrayType||v instanceof i.OptionalType?this.isRecursiveType(_,v.base):v instanceof i.StructType?v.fields.some(x=>this.isRecursiveType(_,x.type)):v instanceof i.EnumType&&v.values.some(x=>x.struct&&this.isRecursiveType(_,x.struct))}isInfinitelyRecursiveType(_,v){return v instanceof i.TypeReference?v.name===_.name:v instanceof i.StructType?v.fields.some(x=>this.isInfinitelyRecursiveType(_,x.type)):v instanceof i.EnumType&&v.values.every(x=>x.struct&&this.isInfinitelyRecursiveType(_,x.struct))}}},3605:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.CollectStructAndEnumTypesVisitor=void 0;const a=y(967),i=y(194);C.CollectStructAndEnumTypesVisitor=class Z extends a.Visitor{constructor(){super(...arguments),this.visited=new Set}visit(_){super.visit(_),!this.visited.has(_)&&(this.visited.add(_),_ instanceof i.StructType?this.root.structTypes.push(_):_ instanceof i.EnumType&&this.root.enumTypes.push(_))}}},4749:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.ValidateAnnotationsVisitor=void 0;const a=y(967),i=y(194);function V(v){return v instanceof i.TypeReference?V(v.type):v}C.ValidateAnnotationsVisitor=class _ extends a.Visitor{visit(x){if(x instanceof i.EnumValue){for(const M of x.annotations)if(!(M instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${M.constructor.name.replace("Annotation","").toLowerCase()} at ${M.location}`)}else if(x instanceof i.TypeDefinition){for(const M of x.annotations)if(!(M instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${M.constructor.name.replace("Annotation","").toLowerCase()} at ${M.location}`)}else if(x instanceof i.Field){for(const M of x.annotations)if(!(M instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${M.constructor.name.replace("Annotation","").toLowerCase()} at ${M.location}`)}else if(x instanceof i.FunctionOperation){for(const M of x.annotations)if(!(M instanceof i.DescriptionAnnotation))if(M instanceof i.ThrowsAnnotation){if(!this.root.errors.some(N=>N.name===M.error))throw new a.SemanticError(`Unknown error type '${M.error}' at ${M.location}`)}else if(M instanceof i.RestAnnotation){const N=[...M.pathVariables,...M.queryVariables,...M.headers.values()];if(N.length!==new Set(N).size)throw new a.SemanticError(`Arguments must appear only once for rest annotation at ${M.location}`);for(const P of N){const Y=x.args.find(w=>w.name===P);if(!Y)throw new a.SemanticError(`Argument '${P}' not found at ${M.location}`);if(M.pathVariables.includes(P)&&Y.type instanceof i.OptionalType)throw new a.SemanticError(`The path argument '${P}' can't be nullable at ${M.location}`);if(!((v=V(Y.type instanceof i.OptionalType?Y.type.base:Y.type))instanceof i.BoolPrimitiveType||v instanceof i.IntPrimitiveType||v instanceof i.UIntPrimitiveType||v instanceof i.BigIntPrimitiveType||v instanceof i.FloatPrimitiveType||v instanceof i.StringPrimitiveType||v instanceof i.DatePrimitiveType||v instanceof i.DateTimePrimitiveType||v instanceof i.MoneyPrimitiveType||v instanceof i.DecimalPrimitiveType||v instanceof i.CpfPrimitiveType||v instanceof i.CnpjPrimitiveType||v instanceof i.UuidPrimitiveType||v instanceof i.HexPrimitiveType||v instanceof i.Base64PrimitiveType||v instanceof i.EnumType))throw new a.SemanticError(`Argument '${P}' can't have type '${Y.type.name}' for rest annotation at ${M.location}`)}for(const P of x.args){if(!N.includes(P.name)&&M.bodyVariable!==P.name)throw new a.SemanticError(`Argument '${P.name}' is missing from the rest annotation at ${M.location}`);const Y=[...M.pathVariables,...M.queryVariables];if("GET"===M.method&&Y.includes(P.name)&&P.secret)throw new a.SemanticError(`Argument marked as secret cannot be used in the path or query parts of a GET endpoint at ${M.location}`)}if("GET"===M.method&&x.returnType instanceof i.VoidPrimitiveType)throw new a.SemanticError(`A GET rest endpoint must return something at ${M.location}`)}else if(!(M instanceof i.HiddenAnnotation||M instanceof i.TagAnnotation))throw new a.SemanticError(`Cannot have @${M.constructor.name.replace("Annotation","").toLowerCase()} at ${M.location}`)}else if(x instanceof i.ErrorNode){for(const M of x.annotations){if(!(M instanceof i.StatusCodeAnnotation))throw new a.SemanticError(`Cannot have @${M.constructor.name.replace("Annotation","").toLowerCase()} at ${M.location}`);if(M.statusCode<400||M.statusCode>599)throw new a.SemanticError(`Error status code can only be 4xx or 5xx at ${M.location}`)}if(x.annotations.filter(M=>M instanceof i.StatusCodeAnnotation).length>1)throw new a.SemanticError(`Can't provide more than one status code at ${x.location}`)}var v}}},2971:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.CheckDuplicatedMembersOnEnumVisitor=void 0;const a=y(967),i=y(194);C.CheckDuplicatedMembersOnEnumVisitor=class Z extends a.Visitor{visit(_){if(super.visit(_),_ instanceof i.EnumType&&_.values.length!==new Set(_.values.map(v=>v.value)).size)throw new a.SemanticError(`Enum '${_.name}' at ${_.location} has duplicated members`)}}},3835:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.analyse=void 0;const a=y(3733),i=y(3367),Z=y(1489),V=y(458),_=y(9623),v=y(1763),x=y(2910),M=y(3605),N=y(4749),P=y(2971),Y=y(194);C.analyse=function O(w){w.errors.some(I=>"Fatal"===I.name)||w.errors.push(new Y.ErrorNode("Fatal",new Y.VoidPrimitiveType)),new a.CheckMultipleDeclarationVisitor(w).process(),new i.GiveStructAndEnumNamesTransformer(w).process(),new Z.MatchTypeDefinitionsVisitor(w).process(),new V.CheckDontReturnSecretVisitor(w).process(),new _.ExpandSpreadsVisitor(w).process(),new v.CheckEmptyStructOrEnumVisitor(w).process(),new x.ValidateRecursiveTypes(w).process(),new M.CollectStructAndEnumTypesVisitor(w).process(),new N.ValidateAnnotationsVisitor(w).process(),new P.CheckDuplicatedMembersOnEnumVisitor(w).process()}},5417:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.Transformer=C.SemanticError=void 0;const a=y(194);class i extends Error{}C.SemanticError=i,C.Transformer=class Z{constructor(_){this.root=_}process(){this.root.errors=this.root.errors.map(_=>this.transform(_)),this.root.typeDefinitions=this.root.typeDefinitions.map(_=>this.transform(_)),this.root.operations=this.root.operations.map(_=>this.transform(_))}transform(_){return _ instanceof a.FunctionOperation?(_.args=_.args.map(v=>this.transform(v)),_.fieldsAndSpreads=_.fieldsAndSpreads.map(v=>this.transform(v)),_.returnType=this.transform(_.returnType)):_ instanceof a.Field||_ instanceof a.TypeDefinition?_.type=this.transform(_.type):_ instanceof a.StructType?(_.fields=_.fields.map(v=>this.transform(v)),_.fieldsAndSpreads=_.fieldsAndSpreads.map(v=>this.transform(v))):_ instanceof a.EnumType?_.values=_.values.map(v=>this.transform(v)):_ instanceof a.EnumValue?_.struct&&(_.struct=this.transform(_.struct)):_ instanceof a.ArrayType||_ instanceof a.OptionalType?_.base=this.transform(_.base):_ instanceof a.ErrorNode?_.dataType=this.transform(_.dataType):_ instanceof a.Spread&&(_.typeReference=this.transform(_.typeReference)),_}}},967:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.Visitor=C.SemanticError=void 0;const a=y(194);class i extends Error{}C.SemanticError=i,C.Visitor=class Z{constructor(_){this.root=_}process(){for(const _ of this.root.errors)this.visit(_);for(const _ of this.root.typeDefinitions)this.visit(_);for(const _ of this.root.operations)this.visit(_)}visit(_){if(_ instanceof a.FunctionOperation){for(const v of _.args)this.visit(v);for(const v of _.fieldsAndSpreads)this.visit(v);this.visit(_.returnType)}else if(_ instanceof a.Field||_ instanceof a.TypeDefinition)this.visit(_.type);else if(_ instanceof a.StructType){for(const v of _.fields)this.visit(v);for(const v of _.fieldsAndSpreads)this.visit(v)}else if(_ instanceof a.EnumType)for(const v of _.values)this.visit(v);else _ instanceof a.EnumValue?_.struct&&this.visit(_.struct):_ instanceof a.ArrayType||_ instanceof a.OptionalType?this.visit(_.base):_ instanceof a.ErrorNode?this.visit(_.dataType):_ instanceof a.Spread&&this.visit(_.typeReference)}}},2188:(De,C)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.PrimitiveTypeToken=C.FalseKeywordToken=C.TrueKeywordToken=C.ErrorKeywordToken=C.FnKeywordToken=C.EnumKeywordToken=C.TypeKeywordToken=C.ImportKeywordToken=C.AnnotationToken=C.SpreadSymbolToken=C.CommaSymbolToken=C.ArraySymbolToken=C.OptionalSymbolToken=C.ColonSymbolToken=C.ParensCloseSymbolToken=C.ParensOpenSymbolToken=C.CurlyCloseSymbolToken=C.CurlyOpenSymbolToken=C.ExclamationMarkSymbolToken=C.EqualSymbolToken=C.StringLiteralToken=C.IdentifierToken=C.Token=C.TokenLocation=void 0;class y{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}C.TokenLocation=y;class a{constructor(ke=""){this.value=ke,this.location=new y,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const ke=this.constructor.name.replace("Token","");return""===this.value?ke:`${ke}(${JSON.stringify(this.value)})`}}C.Token=a;class i extends a{}C.IdentifierToken=i,C.StringLiteralToken=class Z extends a{},C.EqualSymbolToken=class V extends a{},C.ExclamationMarkSymbolToken=class _ extends a{},C.CurlyOpenSymbolToken=class v extends a{},C.CurlyCloseSymbolToken=class x extends a{},C.ParensOpenSymbolToken=class M extends a{},C.ParensCloseSymbolToken=class N extends a{},C.ColonSymbolToken=class P extends a{},C.OptionalSymbolToken=class Y extends a{},C.ArraySymbolToken=class O extends a{},C.CommaSymbolToken=class w extends a{},C.SpreadSymbolToken=class I extends a{},C.AnnotationToken=class R extends a{},C.ImportKeywordToken=class ie extends a{maybeAsIdentifier(){return new i("import")}},C.TypeKeywordToken=class X extends a{maybeAsIdentifier(){return new i("type")}},C.EnumKeywordToken=class ce extends a{maybeAsIdentifier(){return new i("enum")}},C.FnKeywordToken=class Ne extends a{maybeAsIdentifier(){return new i("fn")}},C.ErrorKeywordToken=class Ge extends a{maybeAsIdentifier(){return new i("error")}},C.TrueKeywordToken=class Ve extends a{maybeAsIdentifier(){return new i("true")}},C.FalseKeywordToken=class Ae extends a{maybeAsIdentifier(){return new i("false")}},C.PrimitiveTypeToken=class Pe extends a{maybeAsIdentifier(){return new i(this.value)}}},5127:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.primitiveToAstClass=void 0;const a=y(194);C.primitiveToAstClass=new Map,C.primitiveToAstClass.set("string",a.StringPrimitiveType),C.primitiveToAstClass.set("int",a.IntPrimitiveType),C.primitiveToAstClass.set("uint",a.UIntPrimitiveType),C.primitiveToAstClass.set("date",a.DatePrimitiveType),C.primitiveToAstClass.set("datetime",a.DateTimePrimitiveType),C.primitiveToAstClass.set("float",a.FloatPrimitiveType),C.primitiveToAstClass.set("bigint",a.BigIntPrimitiveType),C.primitiveToAstClass.set("bool",a.BoolPrimitiveType),C.primitiveToAstClass.set("bytes",a.BytesPrimitiveType),C.primitiveToAstClass.set("money",a.MoneyPrimitiveType),C.primitiveToAstClass.set("decimal",a.DecimalPrimitiveType),C.primitiveToAstClass.set("cpf",a.CpfPrimitiveType),C.primitiveToAstClass.set("cnpj",a.CnpjPrimitiveType),C.primitiveToAstClass.set("email",a.EmailPrimitiveType),C.primitiveToAstClass.set("html",a.HtmlPrimitiveType),C.primitiveToAstClass.set("url",a.UrlPrimitiveType),C.primitiveToAstClass.set("uuid",a.UuidPrimitiveType),C.primitiveToAstClass.set("hex",a.HexPrimitiveType),C.primitiveToAstClass.set("base64",a.Base64PrimitiveType),C.primitiveToAstClass.set("xml",a.XmlPrimitiveType),C.primitiveToAstClass.set("json",a.JsonPrimitiveType),C.primitiveToAstClass.set("void",a.VoidPrimitiveType)},7667:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateRxMethod=C.generateMethodSignature=C.generateErrorClass=C.generateClass=C.generateErrorType=C.generateEnum=C.generateJsonRepresentation=C.mangle=C.generateSwiftTypeName=void 0;const a=y(6068);function i(w){switch(w.constructor){case a.IntPrimitiveType:return"Int";case a.UIntPrimitiveType:return"UInt";case a.MoneyPrimitiveType:return"Int64";case a.FloatPrimitiveType:return"Double";case a.BigIntPrimitiveType:return"Decimal";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Date";case a.BoolPrimitiveType:return"Bool";case a.BytesPrimitiveType:return"Data";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.UrlPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"Void";case a.JsonPrimitiveType:return"AnyCodable";case a.OptionalType:return`${i(w.base)}?`;case a.ArrayType:return`[${i(w.base)}]`;case a.StructType:case a.EnumType:return`API.${w.name}`;case a.TypeReference:return i(w.type);default:throw new Error(`BUG: generateSwiftTypeName with ${w.constructor.name}`)}}function Z(w){return["associatedtype","deinit","extension","inout","let","in","as","break","class","continue","protocol","Protocol","rethrows","throws","static","do","else","false","for","guard","func","if","internal","struct","subscript","repeat","is","nil","Any","associativity","convenience","import","return","super","self","Self","throw","true","try","typealias","switch","case","default","defer","fallthrough","optional","var","while","catch","dynamic","didSet","Set","fileprivate","lazy","get","init","required","right","param","property","receiver","set","left","where","final","infix","indirect","open","operator","override","private","postfix","public","mutating","none","nonmutating","precedence","prefix","Type","unowned","weak","willSet"].includes(w)?`_${w}`:w}function V(w,I){switch(w.constructor){case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:case a.BoolPrimitiveType:return`${I}`;case a.OptionalType:return`${I} == nil ? nil : ${V(w.base,`${I}!`)}`;case a.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${I})`;case a.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${I})`;case a.EnumType:return`${I}.rawValue`;case a.TypeReference:return`${V(w.type,`${I}`)}`;case a.StructType:return`${I}.toJSON()`;case a.ArrayType:return`${I}.map({ return ${V(w.base,"$0")} })`;case a.JsonPrimitiveType:return`try? ${I}.toJson()`;case a.VoidPrimitiveType:return"nil";case a.BytesPrimitiveType:return`${I}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${w.constructor.name}`)}}C.generateSwiftTypeName=i,C.mangle=Z,C.generateJsonRepresentation=V,C.generateEnum=function _(w){let I=` public enum ${w.name}: String, Codable {\n`;return I+=w.values.map(R=>` case ${Z(R.value)} = "${R.value}"`).join("\n"),I+="\n }\n",I},C.generateErrorType=function v(w){let I=" public enum ErrorType: String, Codable {\n";return I+=w.map(R=>` case ${Z(R)} = "${R}"`).join("\n"),I+="\n }\n",I},C.generateClass=function N(w){return` public struct ${w.name}: Codable {\n${w.fields.map(I=>` var ${Z(I.name)}: ${i(I.type)}`).join("\n")}\n\n${function x(w){let I=" init(";return I+=w.fields.map(R=>`${Z(R.name)}: ${i(R.type)}`).join(", "),I+=") {\n",I+=w.fields.map(R=>` self.${Z(R.name)} = ${Z(R.name)}`).join("\n"),I+="\n }\n",I}(w)}\n${function M(w){let I=" func toJSON() -> [String: Any] {\n";return I+=" var json = [String: Any]()\n",I+=w.fields.map(R=>` json["${Z(R.name)}"] = ${V(R.type,R.name)}`).join("\n"),I+="\n return json",I+="\n }\n",I}(w)}\n }\n`},C.generateErrorClass=function P(){return" public class Failure: Error {\n var message: String?\n var code: Int?\n var type: ErrorType?\n \n init(message: String?, code: Int?, type: String?) {\n self.message = message\n self.code = code\n if let typeString = type {\n self.type = ErrorType(rawValue: typeString) ?? nil\n }\n }\n }\n"},C.generateMethodSignature=function Y(w){const I=w.args.map(R=>`${Z(R.name)}: ${i(R.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${w.returnType instanceof a.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${i(w.returnType)}>`}) -> Void)?`]);return` func ${Z(w.name)}(${I.join(", ")})`},C.generateRxMethod=function O(w){const I=w.args.map(ie=>`${Z(ie.name)}: ${i(ie.type)}`).concat(["timeoutSeconds: Double? = nil"]);let R=` static func ${Z(w.name)}(${I.join(", ")}) -> ${w.returnType instanceof a.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${i(w.returnType)}>>`} {\n`;return R+=" return Observable.create { observer -> Disposable in\n",R+=` API.calls.${Z(w.name)}(${w.args.map(ie=>`${Z(ie.name)}: ${Z(ie.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,R+=" observer.on(.next(result))\n",R+=" observer.on(.completed)\n",R+=" }\n",R+=" return Disposables.create()\n",R+=" }\n",R+=" }\n",R}},3084:function(De,C,y){"use strict";var a=this&&this.__createBinding||(Object.create?function(Z,V,_,v){void 0===v&&(v=_);var x=Object.getOwnPropertyDescriptor(V,_);(!x||("get"in x?!V.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return V[_]}}),Object.defineProperty(Z,v,x)}:function(Z,V,_,v){void 0===v&&(v=_),Z[v]=V[_]}),i=this&&this.__exportStar||function(Z,V){for(var _ in Z)"default"!==_&&!Object.prototype.hasOwnProperty.call(V,_)&&a(V,Z,_)};Object.defineProperty(C,"__esModule",{value:!0}),i(y(8280),C)},8280:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateSwiftClientSource=void 0;const a=y(6068),i=y(7667);C.generateSwiftClientSource=function Z(V,_){let v="import Foundation\nimport SdkgenRuntime\n";v+=_?"import RxSwift\nimport RxCocoa\n\n":"\n",v+="protocol APICallsProtocol {\n",v+=V.operations.filter(N=>N.annotations.every(P=>!(P instanceof a.HiddenAnnotation))).map(N=>`${(0,i.generateMethodSignature)(N)}`).join("\n"),v+="\n}\n\n",v+='class API: SdkgenResponse {\n\n static var calls = Calls(baseUrl: "")\n static var baseUrl: String? {\n didSet {\n self.calls = Calls(baseUrl: baseUrl ?? "")\n }\n }\n \n override init() {\n super.init()\n }\n\n';for(const N of V.enumTypes)v+=(0,i.generateEnum)(N),v+="\n";for(const N of V.structTypes)v+=(0,i.generateClass)(N),v+="\n";const x=[],M=new a.ErrorNode("Connection",new a.VoidPrimitiveType);x.push(M.name);for(const N of V.errors)x.push(N.name);return x.length>0&&(v+=(0,i.generateErrorType)(x),v+="\n"),v+=(0,i.generateErrorClass)(),v+="\n",v+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",v+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",v+=V.operations.filter(N=>N.annotations.every(P=>!(P instanceof a.HiddenAnnotation))).map(N=>{let P="";return P+=` ${(0,i.generateMethodSignature)(N)} {\n`,N.args.length>0?(P+=" var jsonArgs = [String: Any]()\n",P+=N.args.map(Y=>` jsonArgs["${(0,i.mangle)(Y.name)}"] = ${(0,i.generateJsonRepresentation)(Y.type,(0,i.mangle)(Y.name))}`).join("\n")):P+=" let jsonArgs = [String: Any]()",P+="\n\n",P+=` makeRequest("${N.name}", jsonArgs, timeoutSeconds, completion: { (value: ${N.returnType instanceof a.VoidPrimitiveType?"API.NoReply":(0,i.generateSwiftTypeName)(N.returnType)}) in\n`,P+=" callback?(API.Result.success(value))\n",P+=" }, onError: { error in\n",P+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",P+=" })",P+="\n }\n",P}).join("\n"),v+=" }\n",v+="}\n",_&&(v+="\n",v+="extension API: ReactiveCompatible {}\n\n",v+="extension Reactive where Base: API {\n",v+=V.operations.filter(N=>N.annotations.every(P=>!(P instanceof a.HiddenAnnotation))).map(N=>`${(0,i.generateRxMethod)(N)}`).join("\n"),v+="}\n"),v}},486:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateBrowserClientSource=void 0;const a=y(6068),i=y(7661);C.generateBrowserClientSource=function Z(V){let _="";_+=`/* eslint-disable */\nimport { SdkgenError${V.errors.some(x=>!(x.dataType instanceof a.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n`,(0,a.hasType)(V,a.DecimalPrimitiveType)&&(_+='import { Decimal } from "decimal.js-light";\n'),_+="\n";for(const x of V.enumTypes)_+=(0,i.generateTypescriptEnum)(x),_+="\n";for(const x of V.structTypes)_+=(0,i.generateTypescriptInterface)(x,!0),_+="\n";for(const x of V.errors)_+=(0,i.generateTypescriptErrorClass)(x,!0),_+="\n";return _+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${V.operations.filter(x=>x.annotations.every(M=>!(M instanceof a.HiddenAnnotation))).map(x=>`\n ${x.name}(args${0===x.args.length?"?":""}: {${x.args.map(M=>`${M.name}${M.type.name.endsWith("?")?"?":""}: ${(0,i.generateTypescriptTypeName)(M.type,!0)}`).join(", ")}}): Promise<${(0,i.generateTypescriptTypeName)(x.returnType,!0)}> { return this.makeRequest("${x.name}", args || {}); }`).join("")}\n}\n\n`,_+=`const errClasses = {\n${V.errors.map(x=>` ${x.name}`).join(",\n")}\n};\n\n`,_+=`const astJson = ${JSON.stringify((0,a.astToJson)(V),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,_}},7661:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.clearForLogging=C.generateTypescriptErrorClass=C.generateTypescriptEnum=C.generateTypescriptInterface=C.generateTypescriptTypeName=void 0;const a=y(6068);function i(x,M){switch(x.constructor){case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:return"number";case a.BigIntPrimitiveType:return"bigint";case a.DecimalPrimitiveType:return"Decimal";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Date";case a.BoolPrimitiveType:return"boolean";case a.BytesPrimitiveType:return M?"ArrayBuffer":"Buffer";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"any";case a.OptionalType:return`${i(x.base,M)} | null`;case a.ArrayType:{const{base:N}=x,P=i(N,M);return N instanceof a.OptionalType?`(${P})[]`:`${P}[]`}case a.StructType:case a.EnumType:return x.name;case a.TypeReference:return i(x.type,M);default:throw new Error(`BUG: generateTypescriptTypeName with ${x.constructor.name}`)}}C.generateTypescriptTypeName=i,C.generateTypescriptInterface=function Z(x,M){return`export interface ${x.name} {\n${x.fields.map(N=>` ${N.name}: ${i(N.type,M)}`).join("\n")}\n}\n`},C.generateTypescriptEnum=function V(x){return x.hasStructValues?`export type ${x.name} = ${x.values.map(M=>M.struct?`({tag: "${M.value}"} & ${M.struct.name})`:`{tag: "${M.value}"}`).join(" | ")};\n`:`export type ${x.name} = ${x.values.map(M=>`"${M.value}"`).join(" | ")};\n`},C.generateTypescriptErrorClass=function _(x,M){return`export class ${x.name} extends ${x.dataType instanceof a.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${i(x.dataType,M)}>`} {}\n`},C.clearForLogging=function v(x,M){switch(M.constructor){case a.TypeReference:return v(x,M.type);case a.OptionalType:{const N=v(x,M.base);return N?`if (${x} !== null && ${x} !== undefined) { ${N} }`:""}case a.ArrayType:{const N=v("el",M.base);return N?`for (const el of ${x}) { ${N} }`:""}case a.StructType:{const N=[];for(const P of M.fields)if(P.secret)N.push(`${x}.${P.name} = "<secret>";`);else{const Y=v(`${x}.${P.name}`,P.type);Y&&N.push(Y)}return N.join(" ")}default:return""}}},5747:function(De,C,y){"use strict";var a=this&&this.__createBinding||(Object.create?function(Z,V,_,v){void 0===v&&(v=_);var x=Object.getOwnPropertyDescriptor(V,_);(!x||("get"in x?!V.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return V[_]}}),Object.defineProperty(Z,v,x)}:function(Z,V,_,v){void 0===v&&(v=_),Z[v]=V[_]}),i=this&&this.__exportStar||function(Z,V){for(var _ in Z)"default"!==_&&!Object.prototype.hasOwnProperty.call(V,_)&&a(V,Z,_)};Object.defineProperty(C,"__esModule",{value:!0}),i(y(486),C),i(y(2301),C),i(y(9664),C),i(y(9966),C)},2301:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateTypescriptInterfaces=void 0;const a=y(7661);C.generateTypescriptInterfaces=function i(Z){let V="";for(const _ of Z.enumTypes)V+=(0,a.generateTypescriptEnum)(_);V+="\n";for(const _ of Z.structTypes)V+=(0,a.generateTypescriptInterface)(_,!1),V+="\n";return V}},9664:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateNodeClientSource=void 0;const a=y(6068),i=y(7661);C.generateNodeClientSource=function Z(V){let _="";const v=V.errors.some(M=>!(M.dataType instanceof a.VoidPrimitiveType));_+=`/* eslint-disable */\nimport { Context, Fatal${V.errors.filter(M=>"Fatal"!==M.name).some(M=>M.dataType instanceof a.VoidPrimitiveType)?", SdkgenError":""}${v?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n`,(0,a.hasType)(V,a.DecimalPrimitiveType)&&(_+='import { Decimal } from "decimal.js";\n'),_+="\n";for(const M of V.enumTypes)_+=(0,i.generateTypescriptEnum)(M),_+="\n";for(const M of V.structTypes)_+=(0,i.generateTypescriptInterface)(M,!1),_+="\n";for(const M of V.errors)"Fatal"!==M.name&&(_+=(0,i.generateTypescriptErrorClass)(M,!1),_+="\n");return _+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${V.operations.filter(M=>M.annotations.every(N=>!(N instanceof a.HiddenAnnotation))).map(M=>`\n ${M.name}(ctx: PartialDeep<Context> | null, args: {${M.args.map(N=>`${N.name}${N.type.name.endsWith("?")?"?":""}: ${(0,i.generateTypescriptTypeName)(N.type,!1)}`).join(", ")}}): Promise<${(0,i.generateTypescriptTypeName)(M.returnType,!1)}> { return this.makeRequest(ctx, "${M.name}", args); }`).join("")}\n}\n\n`,_+=`const errClasses = {\n${V.errors.map(M=>` ${M.name}`).join(",\n")}\n};\n\n`,_+=`const astJson = ${JSON.stringify((0,a.astToJson)(V),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,_}},9966:(De,C,y)=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.generateNodeServerSource=void 0;const a=y(6068),i=y(7661);C.generateNodeServerSource=function Z(V){let _="";const v=V.errors.some(M=>!(M.dataType instanceof a.VoidPrimitiveType));_+=`/* eslint-disable */\nimport { BaseApiConfig, type Context${V.errors.filter(M=>"Fatal"!==M.name).some(M=>M.dataType instanceof a.VoidPrimitiveType)?", SdkgenError":""}${v?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n`,(0,a.hasType)(V,a.DecimalPrimitiveType)&&(_+='import { Decimal } from "decimal.js";\n'),_+="\n";for(const M of V.enumTypes)_+=(0,i.generateTypescriptEnum)(M),_+="\n";for(const M of V.structTypes)_+=(0,i.generateTypescriptInterface)(M,!1),_+="\n";for(const M of V.errors)"Fatal"!==M.name&&(_+=(0,i.generateTypescriptErrorClass)(M,!1),_+="\n");return _+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n declare fn: {${V.operations.map(M=>`\n ${M.name}: (ctx: Context & ExtraContextT, args: {${M.args.map(N=>`${N.name}: ${(0,i.generateTypescriptTypeName)(N.type,!1)}`).join(", ")}}) => Promise<${(0,i.generateTypescriptTypeName)(M.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,a.astToJson)(V),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,_}},7156:De=>{function C(a,i,Z,V,_,v,x){try{var M=a[v](x),N=M.value}catch(P){return void Z(P)}M.done?i(N):Promise.resolve(N).then(V,_)}De.exports=function y(a){return function(){var i=this,Z=arguments;return new Promise(function(V,_){var v=a.apply(i,Z);function x(N){C(v,V,_,x,M,"next",N)}function M(N){C(v,V,_,x,M,"throw",N)}x(void 0)})}},De.exports.__esModule=!0,De.exports.default=De.exports},2970:(De,C,y)=>{"use strict";function O(K,j,F,z){return new(F||(F=Promise))(function(Q,de){function ge(_t){try{Be(z.next(_t))}catch(Ke){de(Ke)}}function Fe(_t){try{Be(z.throw(_t))}catch(Ke){de(Ke)}}function Be(_t){_t.done?Q(_t.value):function H(Q){return Q instanceof F?Q:new F(function(de){de(Q)})}(_t.value).then(ge,Fe)}Be((z=z.apply(K,j||[])).next())})}function Ve(K){return this instanceof Ve?(this.v=K,this):new Ve(K)}function Ae(K,j,F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var H,z=F.apply(K,j||[]),Q=[];return H={},de("next"),de("throw"),de("return"),H[Symbol.asyncIterator]=function(){return this},H;function de(et){z[et]&&(H[et]=function(Me){return new Promise(function(ze,ne){Q.push([et,Me,ze,ne])>1||ge(et,Me)})})}function ge(et,Me){try{!function Fe(et){et.value instanceof Ve?Promise.resolve(et.value.v).then(Be,_t):Ke(Q[0][2],et)}(z[et](Me))}catch(ze){Ke(Q[0][3],ze)}}function Be(et){ge("next",et)}function _t(et){ge("throw",et)}function Ke(et,Me){et(Me),Q.shift(),Q.length&&ge(Q[0][0],Q[0][1])}}function Se(K){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var F,j=K[Symbol.asyncIterator];return j?j.call(K):(K=function ie(K){var j="function"==typeof Symbol&&Symbol.iterator,F=j&&K[j],z=0;if(F)return F.call(K);if(K&&"number"==typeof K.length)return{next:function(){return K&&z>=K.length&&(K=void 0),{value:K&&K[z++],done:!K}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}(K),F={},z("next"),z("throw"),z("return"),F[Symbol.asyncIterator]=function(){return this},F);function z(Q){F[Q]=K[Q]&&function(de){return new Promise(function(ge,Fe){!function H(Q,de,ge,Fe){Promise.resolve(Fe).then(function(Be){Q({value:Be,done:ge})},de)}(ge,Fe,(de=K[Q](de)).done,de.value)})}}}y.d(C,{FC:()=>Ae,KL:()=>Se,mG:()=>O,qq:()=>Ve}),"function"==typeof SuppressedError&&SuppressedError},6e3:(De,C,y)=>{"use strict";y.d(C,{IO:()=>w,SB:()=>x,X$:()=>i,ZE:()=>Se,ZN:()=>Pe,eR:()=>N,jt:()=>Z,k1:()=>ke,l3:()=>a,oB:()=>v,pV:()=>Y,ru:()=>V,vP:()=>_});const a="*";function i(Ce,Te){return{type:7,name:Ce,definitions:Te,options:{}}}function Z(Ce,Te=null){return{type:4,styles:Te,timings:Ce}}function V(Ce,Te=null){return{type:3,steps:Ce,options:Te}}function _(Ce,Te=null){return{type:2,steps:Ce,options:Te}}function v(Ce){return{type:6,styles:Ce,offset:null}}function x(Ce,Te,je){return{type:0,name:Ce,styles:Te,options:je}}function N(Ce,Te,je=null){return{type:1,expr:Ce,animation:Te,options:je}}function Y(Ce=null){return{type:9,options:Ce}}function w(Ce,Te,je=null){return{type:11,selector:Ce,animation:Te,options:je}}class Pe{constructor(Te=0,je=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=Te+je}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Te=>Te()),this._onDoneFns=[])}onStart(Te){this._originalOnStartFns.push(Te),this._onStartFns.push(Te)}onDone(Te){this._originalOnDoneFns.push(Te),this._onDoneFns.push(Te)}onDestroy(Te){this._onDestroyFns.push(Te)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Te=>Te()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Te=>Te()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Te){this._position=this.totalTime?Te*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Te){const je="start"==Te?this._onStartFns:this._onDoneFns;je.forEach(ut=>ut()),je.length=0}}class Se{constructor(Te){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Te;let je=0,ut=0,Dt=0;const Gt=this.players.length;0==Gt?queueMicrotask(()=>this._onFinish()):this.players.forEach(Wt=>{Wt.onDone(()=>{++je==Gt&&this._onFinish()}),Wt.onDestroy(()=>{++ut==Gt&&this._onDestroy()}),Wt.onStart(()=>{++Dt==Gt&&this._onStart()})}),this.totalTime=this.players.reduce((Wt,Je)=>Math.max(Wt,Je.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Te=>Te()),this._onDoneFns=[])}init(){this.players.forEach(Te=>Te.init())}onStart(Te){this._onStartFns.push(Te)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Te=>Te()),this._onStartFns=[])}onDone(Te){this._onDoneFns.push(Te)}onDestroy(Te){this._onDestroyFns.push(Te)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Te=>Te.play())}pause(){this.players.forEach(Te=>Te.pause())}restart(){this.players.forEach(Te=>Te.restart())}finish(){this._onFinish(),this.players.forEach(Te=>Te.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Te=>Te.destroy()),this._onDestroyFns.forEach(Te=>Te()),this._onDestroyFns=[])}reset(){this.players.forEach(Te=>Te.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Te){const je=Te*this.totalTime;this.players.forEach(ut=>{const Dt=ut.totalTime?Math.min(1,je/ut.totalTime):1;ut.setPosition(Dt)})}getPosition(){const Te=this.players.reduce((je,ut)=>null===je||ut.totalTime>je.totalTime?ut:je,null);return null!=Te?Te.getPosition():0}beforeDestroy(){this.players.forEach(Te=>{Te.beforeDestroy&&Te.beforeDestroy()})}triggerCallback(Te){const je="start"==Te?this._onStartFns:this._onDoneFns;je.forEach(ut=>ut()),je.length=0}}const ke="!"},8654:(De,C,y)=>{"use strict";y.d(C,{$s:()=>je,Em:()=>Je,X6:()=>vt,ic:()=>re,kH:()=>wn,qV:()=>Me,qm:()=>Vn,rt:()=>$n,tE:()=>ei,yG:()=>pt});var a=y(9462),i=y(1322),Z=y(3844),V=y(9453),_=y(9592),v=y(1625),x=y(9627),M=y(7605),N=y(4104),P=y(2067),Y=y(1497),O=y(8412),w=y(3581),I=y(1800),R=y(4263),ie=y(5779),X=y(8267),ce=y(5988),Ne=y(4515);function Pe(We,me){return(We.getAttribute(me)||"").match(/\S+/g)||[]}const ke="cdk-describedby-message",Ce="cdk-describedby-host";let Te=0,je=(()=>{class We{constructor(W,B){this._platform=B,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Te++,this._document=W,this._id=(0,i.f3M)(i.AFp)+"-"+Te++}describe(W,B,ae){if(!this._canBeDescribed(W,B))return;const ee=ut(B,ae);"string"!=typeof B?(Dt(B,this._id),this._messageRegistry.set(ee,{messageElement:B,referenceCount:0})):this._messageRegistry.has(ee)||this._createMessageElement(B,ae),this._isElementDescribedByMessage(W,ee)||this._addMessageReference(W,ee)}removeDescription(W,B,ae){if(!B||!this._isElementNode(W))return;const ee=ut(B,ae);if(this._isElementDescribedByMessage(W,ee)&&this._removeMessageReference(W,ee),"string"==typeof B){const he=this._messageRegistry.get(ee);he&&0===he.referenceCount&&this._deleteMessageElement(ee)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const W=this._document.querySelectorAll(`[${Ce}="${this._id}"]`);for(let B=0;B<W.length;B++)this._removeCdkDescribedByReferenceIds(W[B]),W[B].removeAttribute(Ce);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(W,B){const ae=this._document.createElement("div");Dt(ae,this._id),ae.textContent=W,B&&ae.setAttribute("role",B),this._createMessagesContainer(),this._messagesContainer.appendChild(ae),this._messageRegistry.set(ut(W,B),{messageElement:ae,referenceCount:0})}_deleteMessageElement(W){this._messageRegistry.get(W)?.messageElement?.remove(),this._messageRegistry.delete(W)}_createMessagesContainer(){if(this._messagesContainer)return;const W="cdk-describedby-message-container",B=this._document.querySelectorAll(`.${W}[platform="server"]`);for(let ee=0;ee<B.length;ee++)B[ee].remove();const ae=this._document.createElement("div");ae.style.visibility="hidden",ae.classList.add(W),ae.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&ae.setAttribute("platform","server"),this._document.body.appendChild(ae),this._messagesContainer=ae}_removeCdkDescribedByReferenceIds(W){const B=Pe(W,"aria-describedby").filter(ae=>0!=ae.indexOf(ke));W.setAttribute("aria-describedby",B.join(" "))}_addMessageReference(W,B){const ae=this._messageRegistry.get(B);(function Ve(We,me,W){const B=Pe(We,me);B.some(ae=>ae.trim()==W.trim())||(B.push(W.trim()),We.setAttribute(me,B.join(" ")))})(W,"aria-describedby",ae.messageElement.id),W.setAttribute(Ce,this._id),ae.referenceCount++}_removeMessageReference(W,B){const ae=this._messageRegistry.get(B);ae.referenceCount--,function Ae(We,me,W){const ae=Pe(We,me).filter(ee=>ee!=W.trim());ae.length?We.setAttribute(me,ae.join(" ")):We.removeAttribute(me)}(W,"aria-describedby",ae.messageElement.id),W.removeAttribute(Ce)}_isElementDescribedByMessage(W,B){const ae=Pe(W,"aria-describedby"),ee=this._messageRegistry.get(B),he=ee&&ee.messageElement.id;return!!he&&-1!=ae.indexOf(he)}_canBeDescribed(W,B){if(!this._isElementNode(W))return!1;if(B&&"object"==typeof B)return!0;const ae=null==B?"":`${B}`.trim(),ee=W.getAttribute("aria-label");return!(!ae||ee&&ee.trim()===ae)}_isElementNode(W){return W.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(a.K0),i.LFG(Z.t4))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function ut(We,me){return"string"==typeof We?`${me||""}/${We}`:We}function Dt(We,me){We.id||(We.id=`${ke}-${me}-${Te++}`)}class Gt{constructor(me){this._items=me,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new V.x,this._typeaheadSubscription=_.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=W=>W.disabled,this._pressedLetters=[],this.tabOut=new V.x,this.change=new V.x,me instanceof i.n_E&&(this._itemChangesSubscription=me.changes.subscribe(W=>{if(this._activeItem){const ae=W.toArray().indexOf(this._activeItem);ae>-1&&ae!==this._activeItemIndex&&(this._activeItemIndex=ae)}}))}skipPredicate(me){return this._skipPredicateFn=me,this}withWrap(me=!0){return this._wrap=me,this}withVerticalOrientation(me=!0){return this._vertical=me,this}withHorizontalOrientation(me){return this._horizontal=me,this}withAllowedModifierKeys(me){return this._allowedModifierKeys=me,this}withTypeAhead(me=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,N.b)(W=>this._pressedLetters.push(W)),(0,P.b)(me),(0,Y.h)(()=>this._pressedLetters.length>0),(0,O.U)(()=>this._pressedLetters.join(""))).subscribe(W=>{const B=this._getItemsArray();for(let ae=1;ae<B.length+1;ae++){const ee=(this._activeItemIndex+ae)%B.length,he=B[ee];if(!this._skipPredicateFn(he)&&0===he.getLabel().toUpperCase().trim().indexOf(W)){this.setActiveItem(ee);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(me=!0){return this._homeAndEnd=me,this}withPageUpDown(me=!0,W=10){return this._pageUpAndDown={enabled:me,delta:W},this}setActiveItem(me){const W=this._activeItem;this.updateActiveItem(me),this._activeItem!==W&&this.change.next(this._activeItemIndex)}onKeydown(me){const W=me.keyCode,ae=["altKey","ctrlKey","metaKey","shiftKey"].every(ee=>!me[ee]||this._allowedModifierKeys.indexOf(ee)>-1);switch(W){case M.Mf:return void this.tabOut.next();case M.JH:if(this._vertical&&ae){this.setNextItemActive();break}return;case M.LH:if(this._vertical&&ae){this.setPreviousItemActive();break}return;case M.SV:if(this._horizontal&&ae){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case M.oh:if(this._horizontal&&ae){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case M.Sd:if(this._homeAndEnd&&ae){this.setFirstItemActive();break}return;case M.uR:if(this._homeAndEnd&&ae){this.setLastItemActive();break}return;case M.Ku:if(this._pageUpAndDown.enabled&&ae){const ee=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ee>0?ee:0,1);break}return;case M.VM:if(this._pageUpAndDown.enabled&&ae){const ee=this._activeItemIndex+this._pageUpAndDown.delta,he=this._getItemsArray().length;this._setActiveItemByIndex(ee<he?ee:he-1,-1);break}return;default:return void((ae||(0,M.Vb)(me,"shiftKey"))&&(me.key&&1===me.key.length?this._letterKeyStream.next(me.key.toLocaleUpperCase()):(W>=M.A&&W<=M.Z||W>=M.xE&&W<=M.aO)&&this._letterKeyStream.next(String.fromCharCode(W))))}this._pressedLetters=[],me.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(me){const W=this._getItemsArray(),B="number"==typeof me?me:W.indexOf(me);this._activeItem=W[B]??null,this._activeItemIndex=B}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(me){this._wrap?this._setActiveInWrapMode(me):this._setActiveInDefaultMode(me)}_setActiveInWrapMode(me){const W=this._getItemsArray();for(let B=1;B<=W.length;B++){const ae=(this._activeItemIndex+me*B+W.length)%W.length;if(!this._skipPredicateFn(W[ae]))return void this.setActiveItem(ae)}}_setActiveInDefaultMode(me){this._setActiveItemByIndex(this._activeItemIndex+me,me)}_setActiveItemByIndex(me,W){const B=this._getItemsArray();if(B[me]){for(;this._skipPredicateFn(B[me]);)if(!B[me+=W])return;this.setActiveItem(me)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class Je extends Gt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(me){return this._origin=me,this}setActiveItem(me){super.setActiveItem(me),this.activeItem&&this.activeItem.focus(this._origin)}}let re=(()=>{class We{constructor(W){this._platform=W}isDisabled(W){return W.hasAttribute("disabled")}isVisible(W){return function j(We){return!!(We.offsetWidth||We.offsetHeight||"function"==typeof We.getClientRects&&We.getClientRects().length)}(W)&&"visible"===getComputedStyle(W).visibility}isTabbable(W){if(!this._platform.isBrowser)return!1;const B=function K(We){try{return We.frameElement}catch{return null}}(function Ke(We){return We.ownerDocument&&We.ownerDocument.defaultView||window}(W));if(B&&(-1===Fe(B)||!this.isVisible(B)))return!1;let ae=W.nodeName.toLowerCase(),ee=Fe(W);return W.hasAttribute("contenteditable")?-1!==ee:!("iframe"===ae||"object"===ae||this._platform.WEBKIT&&this._platform.IOS&&!function Be(We){let me=We.nodeName.toLowerCase(),W="input"===me&&We.type;return"text"===W||"password"===W||"select"===me||"textarea"===me}(W))&&("audio"===ae?!!W.hasAttribute("controls")&&-1!==ee:"video"===ae?-1!==ee&&(null!==ee||this._platform.FIREFOX||W.hasAttribute("controls")):W.tabIndex>=0)}isFocusable(W,B){return function _t(We){return!function z(We){return function Q(We){return"input"==We.nodeName.toLowerCase()}(We)&&"hidden"==We.type}(We)&&(function F(We){let me=We.nodeName.toLowerCase();return"input"===me||"select"===me||"button"===me||"textarea"===me}(We)||function H(We){return function de(We){return"a"==We.nodeName.toLowerCase()}(We)&&We.hasAttribute("href")}(We)||We.hasAttribute("contenteditable")||ge(We))}(W)&&!this.isDisabled(W)&&(B?.ignoreVisibility||this.isVisible(W))}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(Z.t4))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function ge(We){if(!We.hasAttribute("tabindex")||void 0===We.tabIndex)return!1;let me=We.getAttribute("tabindex");return!(!me||isNaN(parseInt(me,10)))}function Fe(We){if(!ge(We))return null;const me=parseInt(We.getAttribute("tabindex")||"",10);return isNaN(me)?-1:me}class et{get enabled(){return this._enabled}set enabled(me){this._enabled=me,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(me,this._startAnchor),this._toggleAnchorTabIndex(me,this._endAnchor))}constructor(me,W,B,ae,ee=!1){this._element=me,this._checker=W,this._ngZone=B,this._document=ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ee||this.attachAnchors()}destroy(){const me=this._startAnchor,W=this._endAnchor;me&&(me.removeEventListener("focus",this.startAnchorListener),me.remove()),W&&(W.removeEventListener("focus",this.endAnchorListener),W.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(me){return new Promise(W=>{this._executeOnStable(()=>W(this.focusInitialElement(me)))})}focusFirstTabbableElementWhenReady(me){return new Promise(W=>{this._executeOnStable(()=>W(this.focusFirstTabbableElement(me)))})}focusLastTabbableElementWhenReady(me){return new Promise(W=>{this._executeOnStable(()=>W(this.focusLastTabbableElement(me)))})}_getRegionBoundary(me){const W=this._element.querySelectorAll(`[cdk-focus-region-${me}], [cdkFocusRegion${me}], [cdk-focus-${me}]`);return"start"==me?W.length?W[0]:this._getFirstTabbableElement(this._element):W.length?W[W.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(me){const W=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(W){if(!this._checker.isFocusable(W)){const B=this._getFirstTabbableElement(W);return B?.focus(me),!!B}return W.focus(me),!0}return this.focusFirstTabbableElement(me)}focusFirstTabbableElement(me){const W=this._getRegionBoundary("start");return W&&W.focus(me),!!W}focusLastTabbableElement(me){const W=this._getRegionBoundary("end");return W&&W.focus(me),!!W}hasAttached(){return this._hasAttached}_getFirstTabbableElement(me){if(this._checker.isFocusable(me)&&this._checker.isTabbable(me))return me;const W=me.children;for(let B=0;B<W.length;B++){const ae=W[B].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(W[B]):null;if(ae)return ae}return null}_getLastTabbableElement(me){if(this._checker.isFocusable(me)&&this._checker.isTabbable(me))return me;const W=me.children;for(let B=W.length-1;B>=0;B--){const ae=W[B].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(W[B]):null;if(ae)return ae}return null}_createAnchor(){const me=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,me),me.classList.add("cdk-visually-hidden"),me.classList.add("cdk-focus-trap-anchor"),me.setAttribute("aria-hidden","true"),me}_toggleAnchorTabIndex(me,W){me?W.setAttribute("tabindex","0"):W.removeAttribute("tabindex")}toggleAnchors(me){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(me,this._startAnchor),this._toggleAnchorTabIndex(me,this._endAnchor))}_executeOnStable(me){this._ngZone.isStable?me():this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(me)}}let Me=(()=>{class We{constructor(W,B,ae){this._checker=W,this._ngZone=B,this._document=ae}create(W,B=!1){return new et(W,this._checker,this._ngZone,this._document,B)}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(re),i.LFG(i.R0b),i.LFG(a.K0))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function vt(We){return 0===We.buttons||0===We.detail}function pt(We){const me=We.touches&&We.touches[0]||We.changedTouches&&We.changedTouches[0];return!(!me||-1!==me.identifier||null!=me.radiusX&&1!==me.radiusX||null!=me.radiusY&&1!==me.radiusY)}const Ft=new i.OlP("cdk-input-modality-detector-options"),lt={ignoreKeys:[M.zL,M.jx,M.b2,M.MW,M.JU]},Ct=(0,Z.i$)({passive:!0,capture:!0});let nn=(()=>{class We{get mostRecentModality(){return this._modality.value}constructor(W,B,ae,ee){this._platform=W,this._mostRecentTarget=null,this._modality=new v.X(null),this._lastTouchMs=0,this._onKeydown=he=>{this._options?.ignoreKeys?.some(S=>S===he.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,Z.sA)(he))},this._onMousedown=he=>{Date.now()-this._lastTouchMs<650||(this._modality.next(vt(he)?"keyboard":"mouse"),this._mostRecentTarget=(0,Z.sA)(he))},this._onTouchstart=he=>{pt(he)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,Z.sA)(he))},this._options={...lt,...ee},this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),W.isBrowser&&B.runOutsideAngular(()=>{ae.addEventListener("keydown",this._onKeydown,Ct),ae.addEventListener("mousedown",this._onMousedown,Ct),ae.addEventListener("touchstart",this._onTouchstart,Ct)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ct),document.removeEventListener("mousedown",this._onMousedown,Ct),document.removeEventListener("touchstart",this._onTouchstart,Ct))}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(Z.t4),i.LFG(i.R0b),i.LFG(a.K0),i.LFG(Ft,8))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();const Pi=new i.OlP("cdk-focus-monitor-default-options"),Ht=(0,Z.i$)({passive:!0,capture:!0});let ei=(()=>{class We{constructor(W,B,ae,ee,he){this._ngZone=W,this._platform=B,this._inputModalityDetector=ae,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 V.x,this._rootNodeFocusAndBlurListener=S=>{for(let ue=(0,Z.sA)(S);ue;ue=ue.parentElement)"focus"===S.type?this._onFocus(S,ue):this._onBlur(S,ue)},this._document=ee,this._detectionMode=he?.detectionMode||0}monitor(W,B=!1){const ae=(0,ce.fI)(W);if(!this._platform.isBrowser||1!==ae.nodeType)return(0,x.of)();const ee=(0,Z.kV)(ae)||this._getDocument(),he=this._elementInfo.get(ae);if(he)return B&&(he.checkChildren=!0),he.subject;const S={checkChildren:B,subject:new V.x,rootNode:ee};return this._elementInfo.set(ae,S),this._registerGlobalListeners(S),S.subject}stopMonitoring(W){const B=(0,ce.fI)(W),ae=this._elementInfo.get(B);ae&&(ae.subject.complete(),this._setClasses(B),this._elementInfo.delete(B),this._removeGlobalListeners(ae))}focusVia(W,B,ae){const ee=(0,ce.fI)(W);ee===this._getDocument().activeElement?this._getClosestElementsInfo(ee).forEach(([S,J])=>this._originChanged(S,B,J)):(this._setOrigin(B),"function"==typeof ee.focus&&ee.focus(ae))}ngOnDestroy(){this._elementInfo.forEach((W,B)=>this.stopMonitoring(B))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(W){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(W)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:W&&this._isLastInteractionFromInputLabel(W)?"mouse":"program"}_shouldBeAttributedToTouch(W){return 1===this._detectionMode||!!W?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(W,B){W.classList.toggle("cdk-focused",!!B),W.classList.toggle("cdk-touch-focused","touch"===B),W.classList.toggle("cdk-keyboard-focused","keyboard"===B),W.classList.toggle("cdk-mouse-focused","mouse"===B),W.classList.toggle("cdk-program-focused","program"===B)}_setOrigin(W,B=!1){this._ngZone.runOutsideAngular(()=>{this._origin=W,this._originFromTouchInteraction="touch"===W&&B,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(W,B){const ae=this._elementInfo.get(B),ee=(0,Z.sA)(W);!ae||!ae.checkChildren&&B!==ee||this._originChanged(B,this._getFocusOrigin(ee),ae)}_onBlur(W,B){const ae=this._elementInfo.get(B);!ae||ae.checkChildren&&W.relatedTarget instanceof Node&&B.contains(W.relatedTarget)||(this._setClasses(B),this._emitOrigin(ae,null))}_emitOrigin(W,B){W.subject.observers.length&&this._ngZone.run(()=>W.subject.next(B))}_registerGlobalListeners(W){if(!this._platform.isBrowser)return;const B=W.rootNode,ae=this._rootNodeFocusListenerCount.get(B)||0;ae||this._ngZone.runOutsideAngular(()=>{B.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ht),B.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ht)}),this._rootNodeFocusListenerCount.set(B,ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ie.R)(this._stopInputModalityDetector)).subscribe(ee=>{this._setOrigin(ee,!0)}))}_removeGlobalListeners(W){const B=W.rootNode;if(this._rootNodeFocusListenerCount.has(B)){const ae=this._rootNodeFocusListenerCount.get(B);ae>1?this._rootNodeFocusListenerCount.set(B,ae-1):(B.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ht),B.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ht),this._rootNodeFocusListenerCount.delete(B))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(W,B,ae){this._setClasses(W,B),this._emitOrigin(ae,B),this._lastFocusOrigin=B}_getClosestElementsInfo(W){const B=[];return this._elementInfo.forEach((ae,ee)=>{(ee===W||ae.checkChildren&&ee.contains(W))&&B.push([ee,ae])}),B}_isLastInteractionFromInputLabel(W){const{_mostRecentTarget:B,mostRecentModality:ae}=this._inputModalityDetector;if("mouse"!==ae||!B||B===W||"INPUT"!==W.nodeName&&"TEXTAREA"!==W.nodeName||W.disabled)return!1;const ee=W.labels;if(ee)for(let he=0;he<ee.length;he++)if(ee[he].contains(B))return!0;return!1}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(i.R0b),i.LFG(Z.t4),i.LFG(nn),i.LFG(a.K0,8),i.LFG(Pi,8))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})(),wn=(()=>{class We{constructor(W,B){this._elementRef=W,this._focusMonitor=B,this._focusOrigin=null,this.cdkFocusChange=new i.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const W=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(W,1===W.nodeType&&W.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||We)(i.Y36(i.SBq),i.Y36(ei))};static#t=this.\u0275dir=i.lG2({type:We,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return We})();const Et="cdk-high-contrast-black-on-white",Ot="cdk-high-contrast-white-on-black",In="cdk-high-contrast-active";let Vn=(()=>{class We{constructor(W,B){this._platform=W,this._document=B,this._breakpointSubscription=(0,i.f3M)(Ne.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const W=this._document.createElement("div");W.style.backgroundColor="rgb(1,2,3)",W.style.position="absolute",this._document.body.appendChild(W);const B=this._document.defaultView||window,ae=B&&B.getComputedStyle?B.getComputedStyle(W):null,ee=(ae&&ae.backgroundColor||"").replace(/ /g,"");switch(W.remove(),ee){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 W=this._document.body.classList;W.remove(In,Et,Ot),this._hasCheckedHighContrastMode=!0;const B=this.getHighContrastMode();1===B?W.add(In,Et):2===B&&W.add(In,Ot)}}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(Z.t4),i.LFG(a.K0))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})(),$n=(()=>{class We{constructor(W){W._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(Vn))};static#t=this.\u0275mod=i.oAB({type:We});static#n=this.\u0275inj=i.cJS({imports:[X.Q8]})}return We})()},4877:(De,C,y)=>{"use strict";y.d(C,{Is:()=>x,vT:()=>N});var a=y(1322),i=y(9462);const Z=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function V(){return(0,a.f3M)(i.K0)}}),_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let x=(()=>{class P{constructor(O){this.value="ltr",this.change=new a.vpe,O&&(this.value=function v(P){const Y=P?.toLowerCase()||"";return"auto"===Y&&typeof navigator<"u"&&navigator?.language?_.test(navigator.language)?"rtl":"ltr":"rtl"===Y?"rtl":"ltr"}((O.body?O.body.dir:null)||(O.documentElement?O.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(w){return new(w||P)(a.LFG(Z,8))};static#t=this.\u0275prov=a.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),N=(()=>{class P{static#e=this.\u0275fac=function(w){return new(w||P)};static#t=this.\u0275mod=a.oAB({type:P});static#n=this.\u0275inj=a.cJS({})}return P})()},5988:(De,C,y)=>{"use strict";y.d(C,{Eq:()=>_,HM:()=>v,Ig:()=>i,fI:()=>x,su:()=>Z});var a=y(1322);function i(N){return null!=N&&"false"!=`${N}`}function Z(N,P=0){return function V(N){return!isNaN(parseFloat(N))&&!isNaN(Number(N))}(N)?Number(N):P}function _(N){return Array.isArray(N)?N:[N]}function v(N){return null==N?"":"string"==typeof N?N:`${N}px`}function x(N){return N instanceof a.SBq?N.nativeElement:N}},7605:(De,C,y)=>{"use strict";y.d(C,{A:()=>z,JH:()=>Ge,JU:()=>v,K5:()=>_,Ku:()=>w,LH:()=>ce,L_:()=>O,MW:()=>Tn,Mf:()=>Z,SV:()=>Ne,Sd:()=>ie,VM:()=>I,Vb:()=>vn,Z:()=>rt,ZH:()=>i,aO:()=>le,b2:()=>_n,hY:()=>Y,jx:()=>x,oh:()=>X,uR:()=>R,xE:()=>ke,yY:()=>Se,zL:()=>M});const i=8,Z=9,_=13,v=16,x=17,M=18,Y=27,O=32,w=33,I=34,R=35,ie=36,X=37,ce=38,Ne=39,Ge=40,Se=46,ke=48,le=57,z=65,rt=90,Tn=91,_n=224;function vn(wt,...Mi){return Mi.length?Mi.some(Dn=>wt[Dn]):wt.altKey||wt.shiftKey||wt.ctrlKey||wt.metaKey}},4515:(De,C,y)=>{"use strict";y.d(C,{Yg:()=>Dt});var a=y(1322),i=y(5988),Z=y(9453),V=y(7371),_=y(1003),v=y(107),x=y(2390),M=y(4574),N=y(177),P=y(5017),Y=y(2829),O=y(8382);function R(Je,le,re){Je?(0,O.f)(re,Je,le):le()}var ie=y(9925),X=y(3581),ce=y(1800),Ne=y(2067),Ge=y(8412),Ve=y(19),Ae=y(5779),Pe=y(3844);const ke=new Set;let Ce,Te=(()=>{class Je{constructor(re,K){this._platform=re,this._nonce=K,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ut}matchMedia(re){return(this._platform.WEBKIT||this._platform.BLINK)&&function je(Je,le){if(!ke.has(Je))try{Ce||(Ce=document.createElement("style"),le&&(Ce.nonce=le),Ce.setAttribute("type","text/css"),document.head.appendChild(Ce)),Ce.sheet&&(Ce.sheet.insertRule(`@media ${Je} {body{ }}`,0),ke.add(Je))}catch(re){console.error(re)}}(re,this._nonce),this._matchMedia(re)}static#e=this.\u0275fac=function(K){return new(K||Je)(a.LFG(Pe.t4),a.LFG(a.Ojb,8))};static#t=this.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})();function ut(Je){return{matches:"all"===Je||""===Je,media:Je,addListener:()=>{},removeListener:()=>{}}}let Dt=(()=>{class Je{constructor(re,K){this._mediaMatcher=re,this._zone=K,this._queries=new Map,this._destroySubject=new Z.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(re){return Gt((0,i.Eq)(re)).some(j=>this._registerQuery(j).mql.matches)}observe(re){let F=function w(...Je){const le=(0,N.yG)(Je),re=(0,N.jO)(Je),{args:K,keys:j}=(0,_.D)(Je);if(0===K.length)return(0,v.D)([],le);const F=new V.y(function I(Je,le,re=x.y){return K=>{R(le,()=>{const{length:j}=Je,F=new Array(j);let z=j,H=j;for(let Q=0;Q<j;Q++)R(le,()=>{const de=(0,v.D)(Je[Q],le);let ge=!1;de.subscribe((0,Y.x)(K,Fe=>{F[Q]=Fe,ge||(ge=!0,H--),H||K.next(re(F.slice()))},()=>{--z||K.complete()}))},K)},K)}}(K,le,j?z=>(0,P.n)(j,z):x.y));return re?F.pipe((0,M.Z)(re)):F}(Gt((0,i.Eq)(re)).map(z=>this._registerQuery(z).observable));return F=(0,ie.z)(F.pipe((0,X.q)(1)),F.pipe((0,ce.T)(1),(0,Ne.b)(0))),F.pipe((0,Ge.U)(z=>{const H={matches:!1,breakpoints:{}};return z.forEach(({matches:Q,query:de})=>{H.matches=H.matches||Q,H.breakpoints[de]=Q}),H}))}_registerQuery(re){if(this._queries.has(re))return this._queries.get(re);const K=this._mediaMatcher.matchMedia(re),F={observable:new V.y(z=>{const H=Q=>this._zone.run(()=>z.next(Q));return K.addListener(H),()=>{K.removeListener(H)}}).pipe((0,Ve.O)(K),(0,Ge.U)(({matches:z})=>({query:re,matches:z})),(0,Ae.R)(this._destroySubject)),mql:K};return this._queries.set(re,F),F}static#e=this.\u0275fac=function(K){return new(K||Je)(a.LFG(Te),a.LFG(a.R0b))};static#t=this.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})();function Gt(Je){return Je.map(le=>le.split(",")).reduce((le,re)=>le.concat(re)).map(le=>le.trim())}},8267:(De,C,y)=>{"use strict";y.d(C,{Q8:()=>N,wD:()=>M});var a=y(5988),i=y(1322),Z=y(7371),V=y(9453),_=y(2067);let v=(()=>{class P{create(O){return typeof MutationObserver>"u"?null:new MutationObserver(O)}static#e=this.\u0275fac=function(w){return new(w||P)};static#t=this.\u0275prov=i.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),x=(()=>{class P{constructor(O){this._mutationObserverFactory=O,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((O,w)=>this._cleanupObserver(w))}observe(O){const w=(0,a.fI)(O);return new Z.y(I=>{const ie=this._observeElement(w).subscribe(I);return()=>{ie.unsubscribe(),this._unobserveElement(w)}})}_observeElement(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{const w=new V.x,I=this._mutationObserverFactory.create(R=>w.next(R));I&&I.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:I,stream:w,count:1})}return this._observedElements.get(O).stream}_unobserveElement(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}_cleanupObserver(O){if(this._observedElements.has(O)){const{observer:w,stream:I}=this._observedElements.get(O);w&&w.disconnect(),I.complete(),this._observedElements.delete(O)}}static#e=this.\u0275fac=function(w){return new(w||P)(i.LFG(v))};static#t=this.\u0275prov=i.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),M=(()=>{class P{get disabled(){return this._disabled}set disabled(O){this._disabled=O,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,a.su)(O),this._subscribe()}constructor(O,w,I){this._contentObserver=O,this._elementRef=w,this._ngZone=I,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const O=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?O.pipe((0,_.b)(this.debounce)):O).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(w){return new(w||P)(i.Y36(x),i.Y36(i.SBq),i.Y36(i.R0b))};static#t=this.\u0275dir=i.lG2({type:P,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled",i.VuI],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[i.Xq5]})}return P})(),N=(()=>{class P{static#e=this.\u0275fac=function(w){return new(w||P)};static#t=this.\u0275mod=i.oAB({type:P});static#n=this.\u0275inj=i.cJS({providers:[v]})}return P})()},3844:(De,C,y)=>{"use strict";y.d(C,{Mq:()=>I,Oy:()=>Ve,ht:()=>Ne,i$:()=>Y,kV:()=>ce,sA:()=>Ge,t4:()=>V});var a=y(1322),i=y(9462);let Z;try{Z=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Z=!1}let N,w,ie,V=(()=>{class Ae{constructor(Se){this._platformId=Se,this.isBrowser=this._platformId?(0,i.NF)(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&&!Z)&&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(ke){return new(ke||Ae)(a.LFG(a.Lbi))};static#t=this.\u0275prov=a.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})();function Y(Ae){return function P(){if(null==N&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>N=!0}))}finally{N=N||!1}return N}()?Ae:!!Ae.capture}function I(){if(null==w){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return w=!1,w;if("scrollBehavior"in document.documentElement.style)w=!0;else{const Ae=Element.prototype.scrollTo;w=!!Ae&&!/\{\s*\[native code\]\s*\}/.test(Ae.toString())}}return w}function ce(Ae){if(function X(){if(null==ie){const Ae=typeof document<"u"?document.head:null;ie=!(!Ae||!Ae.createShadowRoot&&!Ae.attachShadow)}return ie}()){const Pe=Ae.getRootNode?Ae.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Pe instanceof ShadowRoot)return Pe}return null}function Ne(){let Ae=typeof document<"u"&&document?document.activeElement:null;for(;Ae&&Ae.shadowRoot;){const Pe=Ae.shadowRoot.activeElement;if(Pe===Ae)break;Ae=Pe}return Ae}function Ge(Ae){return Ae.composedPath?Ae.composedPath()[0]:Ae.target}function Ve(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6512:(De,C,y)=>{"use strict";y.d(C,{C5:()=>P,Pl:()=>Ne,UE:()=>Y,eL:()=>Ve,en:()=>w,ig:()=>X,u0:()=>R});var a=y(1322),i=y(9462);class N{attach(Se){return this._attachedHost=Se,Se.attach(this)}detach(){let Se=this._attachedHost;null!=Se&&(this._attachedHost=null,Se.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Se){this._attachedHost=Se}}class P extends N{constructor(Se,ke,Ce,Te,je){super(),this.component=Se,this.viewContainerRef=ke,this.injector=Ce,this.componentFactoryResolver=Te,this.projectableNodes=je}}class Y extends N{constructor(Se,ke,Ce,Te){super(),this.templateRef=Se,this.viewContainerRef=ke,this.context=Ce,this.injector=Te}get origin(){return this.templateRef.elementRef}attach(Se,ke=this.context){return this.context=ke,super.attach(Se)}detach(){return this.context=void 0,super.detach()}}class O extends N{constructor(Se){super(),this.element=Se instanceof a.SBq?Se.nativeElement:Se}}class w{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Se){return Se instanceof P?(this._attachedPortal=Se,this.attachComponentPortal(Se)):Se instanceof Y?(this._attachedPortal=Se,this.attachTemplatePortal(Se)):this.attachDomPortal&&Se instanceof O?(this._attachedPortal=Se,this.attachDomPortal(Se)):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(Se){this._disposeFn=Se}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class R extends w{constructor(Se,ke,Ce,Te,je){super(),this.outletElement=Se,this._componentFactoryResolver=ke,this._appRef=Ce,this._defaultInjector=Te,this.attachDomPortal=ut=>{const Dt=ut.element,Gt=this._document.createComment("dom-portal");Dt.parentNode.insertBefore(Gt,Dt),this.outletElement.appendChild(Dt),this._attachedPortal=ut,super.setDisposeFn(()=>{Gt.parentNode&&Gt.parentNode.replaceChild(Dt,Gt)})},this._document=je}attachComponentPortal(Se){const Ce=(Se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Se.component);let Te;return Se.viewContainerRef?(Te=Se.viewContainerRef.createComponent(Ce,Se.viewContainerRef.length,Se.injector||Se.viewContainerRef.injector,Se.projectableNodes||void 0),this.setDisposeFn(()=>Te.destroy())):(Te=Ce.create(Se.injector||this._defaultInjector||a.zs3.NULL),this._appRef.attachView(Te.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Te.hostView),Te.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Te)),this._attachedPortal=Se,Te}attachTemplatePortal(Se){let ke=Se.viewContainerRef,Ce=ke.createEmbeddedView(Se.templateRef,Se.context,{injector:Se.injector});return Ce.rootNodes.forEach(Te=>this.outletElement.appendChild(Te)),Ce.detectChanges(),this.setDisposeFn(()=>{let Te=ke.indexOf(Ce);-1!==Te&&ke.remove(Te)}),this._attachedPortal=Se,Ce}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Se){return Se.hostView.rootNodes[0]}}let X=(()=>{class Pe extends Y{constructor(ke,Ce){super(ke,Ce)}static#e=this.\u0275fac=function(Ce){return new(Ce||Pe)(a.Y36(a.Rgc),a.Y36(a.s_b))};static#t=this.\u0275dir=a.lG2({type:Pe,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[a.qOj]})}return Pe})(),Ne=(()=>{class Pe extends w{constructor(ke,Ce,Te){super(),this._componentFactoryResolver=ke,this._viewContainerRef=Ce,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=je=>{const ut=je.element,Dt=this._document.createComment("dom-portal");je.setAttachedHost(this),ut.parentNode.insertBefore(Dt,ut),this._getRootNode().appendChild(ut),this._attachedPortal=je,super.setDisposeFn(()=>{Dt.parentNode&&Dt.parentNode.replaceChild(ut,Dt)})},this._document=Te}get portal(){return this._attachedPortal}set portal(ke){this.hasAttached()&&!ke&&!this._isInitialized||(this.hasAttached()&&super.detach(),ke&&super.attach(ke),this._attachedPortal=ke||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ke){ke.setAttachedHost(this);const Ce=null!=ke.viewContainerRef?ke.viewContainerRef:this._viewContainerRef,je=(ke.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ke.component),ut=Ce.createComponent(je,Ce.length,ke.injector||Ce.injector,ke.projectableNodes||void 0);return Ce!==this._viewContainerRef&&this._getRootNode().appendChild(ut.hostView.rootNodes[0]),super.setDisposeFn(()=>ut.destroy()),this._attachedPortal=ke,this._attachedRef=ut,this.attached.emit(ut),ut}attachTemplatePortal(ke){ke.setAttachedHost(this);const Ce=this._viewContainerRef.createEmbeddedView(ke.templateRef,ke.context,{injector:ke.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ke,this._attachedRef=Ce,this.attached.emit(Ce),Ce}_getRootNode(){const ke=this._viewContainerRef.element.nativeElement;return ke.nodeType===ke.ELEMENT_NODE?ke:ke.parentNode}static#e=this.\u0275fac=function(Ce){return new(Ce||Pe)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(i.K0))};static#t=this.\u0275dir=a.lG2({type:Pe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]})}return Pe})(),Ve=(()=>{class Pe{static#e=this.\u0275fac=function(Ce){return new(Ce||Pe)};static#t=this.\u0275mod=a.oAB({type:Pe});static#n=this.\u0275inj=a.cJS({})}return Pe})()},9467:(De,C,y)=>{"use strict";y.d(C,{ZD:()=>Ke,mF:()=>le,Cl:()=>et,rL:()=>j});var a=y(5988),i=y(1322),Z=y(9453),V=y(9627),_=y(7371),v=y(6058),x=y(2290),M=y(9592);const N={schedule(Me){let ze=requestAnimationFrame,ne=cancelAnimationFrame;const{delegate:se}=N;se&&(ze=se.requestAnimationFrame,ne=se.cancelAnimationFrame);const Ee=ze($e=>{ne=void 0,Me($e)});return new M.w0(()=>ne?.(Ee))},requestAnimationFrame(...Me){const{delegate:ze}=N;return(ze?.requestAnimationFrame||requestAnimationFrame)(...Me)},cancelAnimationFrame(...Me){const{delegate:ze}=N;return(ze?.cancelAnimationFrame||cancelAnimationFrame)(...Me)},delegate:void 0};var Y=y(5349);new class O extends Y.v{flush(ze){this._active=!0;const ne=this._scheduled;this._scheduled=void 0;const{actions:se}=this;let Ee;ze=ze||se.shift();do{if(Ee=ze.execute(ze.state,ze.delay))break}while((ze=se[0])&&ze.id===ne&&se.shift());if(this._active=!1,Ee){for(;(ze=se[0])&&ze.id===ne&&se.shift();)ze.unsubscribe();throw Ee}}}(class P extends x.o{constructor(ze,ne){super(ze,ne),this.scheduler=ze,this.work=ne}requestAsyncId(ze,ne,se=0){return null!==se&&se>0?super.requestAsyncId(ze,ne,se):(ze.actions.push(this),ze._scheduled||(ze._scheduled=N.requestAnimationFrame(()=>ze.flush(void 0))))}recycleAsyncId(ze,ne,se=0){var Ee;if(null!=se?se>0:this.delay>0)return super.recycleAsyncId(ze,ne,se);const{actions:$e}=ze;null!=ne&&(null===(Ee=$e[$e.length-1])||void 0===Ee?void 0:Ee.id)!==ne&&(N.cancelAnimationFrame(ne),ze._scheduled=void 0)}});y(4453);var ie=y(6589),X=y(4049),ce=y(8299),Ne=y(2829),Ve=y(5117);function Ae(Me,ze=ie.z){return function Ge(Me){return(0,X.e)((ze,ne)=>{let se=!1,Ee=null,$e=null,it=!1;const vt=()=>{if($e?.unsubscribe(),$e=null,se){se=!1;const Ft=Ee;Ee=null,ne.next(Ft)}it&&ne.complete()},pt=()=>{$e=null,it&&ne.complete()};ze.subscribe((0,Ne.x)(ne,Ft=>{se=!0,Ee=Ft,$e||(0,ce.Xf)(Me(Ft)).subscribe($e=(0,Ne.x)(ne,vt,pt))},()=>{it=!0,(!se||!$e||$e.closed)&&ne.complete()}))})}(()=>(0,Ve.H)(Me,ze))}var Pe=y(1497),Se=y(3844),ke=y(9462),Ce=y(4877);let le=(()=>{class Me{constructor(ne,se,Ee){this._ngZone=ne,this._platform=se,this._scrolled=new Z.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ee}register(ne){this.scrollContainers.has(ne)||this.scrollContainers.set(ne,ne.elementScrolled().subscribe(()=>this._scrolled.next(ne)))}deregister(ne){const se=this.scrollContainers.get(ne);se&&(se.unsubscribe(),this.scrollContainers.delete(ne))}scrolled(ne=20){return this._platform.isBrowser?new _.y(se=>{this._globalSubscription||this._addGlobalListener();const Ee=ne>0?this._scrolled.pipe(Ae(ne)).subscribe(se):this._scrolled.subscribe(se);return this._scrolledCount++,()=>{Ee.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,V.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ne,se)=>this.deregister(se)),this._scrolled.complete()}ancestorScrolled(ne,se){const Ee=this.getAncestorScrollContainers(ne);return this.scrolled(se).pipe((0,Pe.h)($e=>!$e||Ee.indexOf($e)>-1))}getAncestorScrollContainers(ne){const se=[];return this.scrollContainers.forEach((Ee,$e)=>{this._scrollableContainsElement($e,ne)&&se.push($e)}),se}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ne,se){let Ee=(0,a.fI)(se),$e=ne.getElementRef().nativeElement;do{if(Ee==$e)return!0}while(Ee=Ee.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ne=this._getWindow();return(0,v.R)(ne.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(se){return new(se||Me)(i.LFG(i.R0b),i.LFG(Se.t4),i.LFG(ke.K0,8))};static#t=this.\u0275prov=i.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})(),j=(()=>{class Me{constructor(ne,se,Ee){this._platform=ne,this._change=new Z.x,this._changeListener=$e=>{this._change.next($e)},this._document=Ee,se.runOutsideAngular(()=>{if(ne.isBrowser){const $e=this._getWindow();$e.addEventListener("resize",this._changeListener),$e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ne=this._getWindow();ne.removeEventListener("resize",this._changeListener),ne.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ne={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ne}getViewportRect(){const ne=this.getViewportScrollPosition(),{width:se,height:Ee}=this.getViewportSize();return{top:ne.top,left:ne.left,bottom:ne.top+Ee,right:ne.left+se,height:Ee,width:se}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ne=this._document,se=this._getWindow(),Ee=ne.documentElement,$e=Ee.getBoundingClientRect();return{top:-$e.top||ne.body.scrollTop||se.scrollY||Ee.scrollTop||0,left:-$e.left||ne.body.scrollLeft||se.scrollX||Ee.scrollLeft||0}}change(ne=20){return ne>0?this._change.pipe(Ae(ne)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ne=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ne.innerWidth,height:ne.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(se){return new(se||Me)(i.LFG(Se.t4),i.LFG(i.R0b),i.LFG(ke.K0,8))};static#t=this.\u0275prov=i.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})(),Ke=(()=>{class Me{static#e=this.\u0275fac=function(se){return new(se||Me)};static#t=this.\u0275mod=i.oAB({type:Me});static#n=this.\u0275inj=i.cJS({})}return Me})(),et=(()=>{class Me{static#e=this.\u0275fac=function(se){return new(se||Me)};static#t=this.\u0275mod=i.oAB({type:Me});static#n=this.\u0275inj=i.cJS({imports:[Ce.vT,Ke,Ce.vT,Ke]})}return Me})()},9462:(De,C,y)=>{"use strict";y.d(C,{ED:()=>mn,HT:()=>V,JF:()=>fo,K0:()=>v,Mx:()=>Ie,NF:()=>is,O5:()=>_n,Ov:()=>To,PM:()=>os,RF:()=>en,Ye:()=>X,bD:()=>ts,ez:()=>On,mk:()=>Re,n9:()=>Zt,q:()=>Z,sg:()=>$t,tP:()=>Vo,w_:()=>_});var a=y(1322);let i=null;function Z(){return i}function V(b){i||(i=b)}class _{}const v=new a.OlP("DocumentToken");let x=(()=>{class b{historyGo(E){throw new Error("Not implemented")}static#e=this.\u0275fac=function($){return new($||b)};static#t=this.\u0275prov=a.Yz7({token:b,factory:()=>(0,a.f3M)(N),providedIn:"platform"})}return b})(),N=(()=>{class b extends x{constructor(){super(),this._doc=(0,a.f3M)(v),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(E){const $=Z().getGlobalEventTarget(this._doc,"window");return $.addEventListener("popstate",E,!1),()=>$.removeEventListener("popstate",E)}onHashChange(E){const $=Z().getGlobalEventTarget(this._doc,"window");return $.addEventListener("hashchange",E,!1),()=>$.removeEventListener("hashchange",E)}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(E){this._location.pathname=E}pushState(E,$,pe){this._history.pushState(E,$,pe)}replaceState(E,$,pe){this._history.replaceState(E,$,pe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(E=0){this._history.go(E)}getState(){return this._history.state}static#e=this.\u0275fac=function($){return new($||b)};static#t=this.\u0275prov=a.Yz7({token:b,factory:()=>new b,providedIn:"platform"})}return b})();function P(b,q){if(0==b.length)return q;if(0==q.length)return b;let E=0;return b.endsWith("/")&&E++,q.startsWith("/")&&E++,2==E?b+q.substring(1):1==E?b+q:b+"/"+q}function Y(b){const q=b.match(/#|\?|$/),E=q&&q.index||b.length;return b.slice(0,E-("/"===b[E-1]?1:0))+b.slice(E)}function O(b){return b&&"?"!==b[0]?"?"+b:b}let w=(()=>{class b{historyGo(E){throw new Error("Not implemented")}static#e=this.\u0275fac=function($){return new($||b)};static#t=this.\u0275prov=a.Yz7({token:b,factory:()=>(0,a.f3M)(R),providedIn:"root"})}return b})();const I=new a.OlP("appBaseHref");let R=(()=>{class b extends w{constructor(E,$){super(),this._platformLocation=E,this._removeListenerFns=[],this._baseHref=$??this._platformLocation.getBaseHrefFromDOM()??(0,a.f3M)(v).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(E){this._removeListenerFns.push(this._platformLocation.onPopState(E),this._platformLocation.onHashChange(E))}getBaseHref(){return this._baseHref}prepareExternalUrl(E){return P(this._baseHref,E)}path(E=!1){const $=this._platformLocation.pathname+O(this._platformLocation.search),pe=this._platformLocation.hash;return pe&&E?`${$}${pe}`:$}pushState(E,$,pe,He){const tt=this.prepareExternalUrl(pe+O(He));this._platformLocation.pushState(E,$,tt)}replaceState(E,$,pe,He){const tt=this.prepareExternalUrl(pe+O(He));this._platformLocation.replaceState(E,$,tt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(E=0){this._platformLocation.historyGo?.(E)}static#e=this.\u0275fac=function($){return new($||b)(a.LFG(x),a.LFG(I,8))};static#t=this.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})(),X=(()=>{class b{constructor(E){this._subject=new a.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=E;const $=this._locationStrategy.getBaseHref();this._basePath=function Ve(b){if(new RegExp("^(https?:)?//").test(b)){const[,E]=b.split(/\/\/[^\/]+/);return E}return b}(Y(Ge($))),this._locationStrategy.onPopState(pe=>{this._subject.emit({url:this.path(!0),pop:!0,state:pe.state,type:pe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(E=!1){return this.normalize(this._locationStrategy.path(E))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(E,$=""){return this.path()==this.normalize(E+O($))}normalize(E){return b.stripTrailingSlash(function Ne(b,q){if(!b||!q.startsWith(b))return q;const E=q.substring(b.length);return""===E||["/",";","?","#"].includes(E[0])?E:q}(this._basePath,Ge(E)))}prepareExternalUrl(E){return E&&"/"!==E[0]&&(E="/"+E),this._locationStrategy.prepareExternalUrl(E)}go(E,$="",pe=null){this._locationStrategy.pushState(pe,"",E,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+O($)),pe)}replaceState(E,$="",pe=null){this._locationStrategy.replaceState(pe,"",E,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+O($)),pe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(E=0){this._locationStrategy.historyGo?.(E)}onUrlChange(E){return this._urlChangeListeners.push(E),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe($=>{this._notifyUrlChangeListeners($.url,$.state)})),()=>{const $=this._urlChangeListeners.indexOf(E);this._urlChangeListeners.splice($,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(E="",$){this._urlChangeListeners.forEach(pe=>pe(E,$))}subscribe(E,$,pe){return this._subject.subscribe({next:E,error:$,complete:pe})}static#e=this.normalizeQueryParams=O;static#t=this.joinWithSlash=P;static#n=this.stripTrailingSlash=Y;static#i=this.\u0275fac=function($){return new($||b)(a.LFG(w))};static#o=this.\u0275prov=a.Yz7({token:b,factory:()=>function ce(){return new X((0,a.LFG)(w))}(),providedIn:"root"})}return b})();function Ge(b){return b.replace(/\/index.html$/,"")}function Ie(b,q){q=encodeURIComponent(q);for(const E of b.split(";")){const $=E.indexOf("="),[pe,He]=-1==$?[E,""]:[E.slice(0,$),E.slice($+1)];if(pe.trim()===q)return decodeURIComponent(He)}return null}const _e=/\s+/,ve=[];let Re=(()=>{class b{constructor(E,$,pe,He){this._iterableDiffers=E,this._keyValueDiffers=$,this._ngEl=pe,this._renderer=He,this.initialClasses=ve,this.stateMap=new Map}set klass(E){this.initialClasses=null!=E?E.trim().split(_e):ve}set ngClass(E){this.rawClass="string"==typeof E?E.trim().split(_e):E}ngDoCheck(){for(const $ of this.initialClasses)this._updateState($,!0);const E=this.rawClass;if(Array.isArray(E)||E instanceof Set)for(const $ of E)this._updateState($,!0);else if(null!=E)for(const $ of Object.keys(E))this._updateState($,!!E[$]);this._applyStateDiff()}_updateState(E,$){const pe=this.stateMap.get(E);void 0!==pe?(pe.enabled!==$&&(pe.changed=!0,pe.enabled=$),pe.touched=!0):this.stateMap.set(E,{enabled:$,changed:!0,touched:!0})}_applyStateDiff(){for(const E of this.stateMap){const $=E[0],pe=E[1];pe.changed?(this._toggleClass($,pe.enabled),pe.changed=!1):pe.touched||(pe.enabled&&this._toggleClass($,!1),this.stateMap.delete($)),pe.touched=!1}}_toggleClass(E,$){(E=E.trim()).length>0&&E.split(_e).forEach(pe=>{$?this._renderer.addClass(this._ngEl.nativeElement,pe):this._renderer.removeClass(this._ngEl.nativeElement,pe)})}static#e=this.\u0275fac=function($){return new($||b)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))};static#t=this.\u0275dir=a.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return b})();class st{constructor(q,E,$,pe){this.$implicit=q,this.ngForOf=E,this.index=$,this.count=pe}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 $t=(()=>{class b{set ngForOf(E){this._ngForOf=E,this._ngForOfDirty=!0}set ngForTrackBy(E){this._trackByFn=E}get ngForTrackBy(){return this._trackByFn}constructor(E,$,pe){this._viewContainer=E,this._template=$,this._differs=pe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(E){E&&(this._template=E)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const E=this._ngForOf;!this._differ&&E&&(this._differ=this._differs.find(E).create(this.ngForTrackBy))}if(this._differ){const E=this._differ.diff(this._ngForOf);E&&this._applyChanges(E)}}_applyChanges(E){const $=this._viewContainer;E.forEachOperation((pe,He,tt)=>{if(null==pe.previousIndex)$.createEmbeddedView(this._template,new st(pe.item,this._ngForOf,-1,-1),null===tt?void 0:tt);else if(null==tt)$.remove(null===He?void 0:He);else if(null!==He){const yt=$.get(He);$.move(yt,tt),St(yt,pe)}});for(let pe=0,He=$.length;pe<He;pe++){const yt=$.get(pe).context;yt.index=pe,yt.count=He,yt.ngForOf=this._ngForOf}E.forEachIdentityChange(pe=>{St($.get(pe.currentIndex),pe)})}static ngTemplateContextGuard(E,$){return!0}static#e=this.\u0275fac=function($){return new($||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))};static#t=this.\u0275dir=a.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return b})();function St(b,q){b.context.$implicit=q.item}let _n=(()=>{class b{constructor(E,$){this._viewContainer=E,this._context=new vn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=$}set ngIf(E){this._context.$implicit=this._context.ngIf=E,this._updateView()}set ngIfThen(E){wt("ngIfThen",E),this._thenTemplateRef=E,this._thenViewRef=null,this._updateView()}set ngIfElse(E){wt("ngIfElse",E),this._elseTemplateRef=E,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(E,$){return!0}static#e=this.\u0275fac=function($){return new($||b)(a.Y36(a.s_b),a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return b})();class vn{constructor(){this.$implicit=null,this.ngIf=null}}function wt(b,q){if(q&&!q.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,a.AaK)(q)}'.`)}class Dn{constructor(q,E){this._viewContainerRef=q,this._templateRef=E,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(q){q&&!this._created?this.create():!q&&this._created&&this.destroy()}}let en=(()=>{class b{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(E){this._ngSwitch=E,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(E){this._defaultViews.push(E)}_matchCase(E){const $=E===this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||$,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),$}_updateDefaultCases(E){if(this._defaultViews.length>0&&E!==this._defaultUsed){this._defaultUsed=E;for(const $ of this._defaultViews)$.enforceState(E)}}static#e=this.\u0275fac=function($){return new($||b)};static#t=this.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return b})(),Zt=(()=>{class b{constructor(E,$,pe){this.ngSwitch=pe,pe._addCase(),this._view=new Dn(E,$)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function($){return new($||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(en,9))};static#t=this.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return b})(),mn=(()=>{class b{constructor(E,$,pe){pe._addDefault(new Dn(E,$))}static#e=this.\u0275fac=function($){return new($||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(en,9))};static#t=this.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return b})(),Vo=(()=>{class b{constructor(E){this._viewContainerRef=E,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(E){if(this._shouldRecreateView(E)){const $=this._viewContainerRef;if(this._viewRef&&$.remove($.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const pe=this._createContextForwardProxy();this._viewRef=$.createEmbeddedView(this.ngTemplateOutlet,pe,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(E){return!!E.ngTemplateOutlet||!!E.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(E,$,pe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,$,pe),get:(E,$,pe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,$,pe)}})}static#e=this.\u0275fac=function($){return new($||b)(a.Y36(a.s_b))};static#t=this.\u0275dir=a.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[a.TTD]})}return b})();class xo{createSubscription(q,E){return(0,a.rg0)(()=>q.subscribe({next:E,error:$=>{throw $}}))}dispose(q){(0,a.rg0)(()=>q.unsubscribe())}}class Er{createSubscription(q,E){return q.then(E,$=>{throw $})}dispose(q){}}const zs=new Er,Ja=new xo;let To=(()=>{class b{constructor(E){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=E}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(E){return this._obj?E!==this._obj?(this._dispose(),this.transform(E)):this._latestValue:(E&&this._subscribe(E),this._latestValue)}_subscribe(E){this._obj=E,this._strategy=this._selectStrategy(E),this._subscription=this._strategy.createSubscription(E,$=>this._updateLatestValue(E,$))}_selectStrategy(E){if((0,a.QGY)(E))return zs;if((0,a.F4k)(E))return Ja;throw function Zn(b,q){return new a.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(E,$){E===this._obj&&(this._latestValue=$,this._ref.markForCheck())}static#e=this.\u0275fac=function($){return new($||b)(a.Y36(a.sBO,16))};static#t=this.\u0275pipe=a.Yjl({name:"async",type:b,pure:!1,standalone:!0})}return b})(),On=(()=>{class b{static#e=this.\u0275fac=function($){return new($||b)};static#t=this.\u0275mod=a.oAB({type:b});static#n=this.\u0275inj=a.cJS({})}return b})();const ts="browser",qs="server";function is(b){return b===ts}function os(b){return b===qs}class fo{}},9272:(De,C,y)=>{"use strict";y.d(C,{eN:()=>z,JF:()=>gn}),y(5861);var i=y(1322),Z=y(9627),V=y(7371),_=y(107),v=y(5123),x=y(3276),N=y(1497),P=y(8412),Y=y(1927),O=y(2835),w=y(9462);class I{}class R{}class ie{constructor(_e){this.normalizedNames=new Map,this.lazyUpdate=null,_e?"string"==typeof _e?this.lazyInit=()=>{this.headers=new Map,_e.split("\n").forEach(ve=>{const Re=ve.indexOf(":");if(Re>0){const qe=ve.slice(0,Re),ct=qe.toLowerCase(),st=ve.slice(Re+1).trim();this.maybeSetNormalizedName(qe,ct),this.headers.has(ct)?this.headers.get(ct).push(st):this.headers.set(ct,[st])}})}:typeof Headers<"u"&&_e instanceof Headers?(this.headers=new Map,_e.forEach((ve,Re)=>{this.setHeaderEntries(Re,ve)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(_e).forEach(([ve,Re])=>{this.setHeaderEntries(ve,Re)})}:this.headers=new Map}has(_e){return this.init(),this.headers.has(_e.toLowerCase())}get(_e){this.init();const ve=this.headers.get(_e.toLowerCase());return ve&&ve.length>0?ve[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(_e){return this.init(),this.headers.get(_e.toLowerCase())||null}append(_e,ve){return this.clone({name:_e,value:ve,op:"a"})}set(_e,ve){return this.clone({name:_e,value:ve,op:"s"})}delete(_e,ve){return this.clone({name:_e,value:ve,op:"d"})}maybeSetNormalizedName(_e,ve){this.normalizedNames.has(ve)||this.normalizedNames.set(ve,_e)}init(){this.lazyInit&&(this.lazyInit instanceof ie?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(_e=>this.applyUpdate(_e)),this.lazyUpdate=null))}copyFrom(_e){_e.init(),Array.from(_e.headers.keys()).forEach(ve=>{this.headers.set(ve,_e.headers.get(ve)),this.normalizedNames.set(ve,_e.normalizedNames.get(ve))})}clone(_e){const ve=new ie;return ve.lazyInit=this.lazyInit&&this.lazyInit instanceof ie?this.lazyInit:this,ve.lazyUpdate=(this.lazyUpdate||[]).concat([_e]),ve}applyUpdate(_e){const ve=_e.name.toLowerCase();switch(_e.op){case"a":case"s":let Re=_e.value;if("string"==typeof Re&&(Re=[Re]),0===Re.length)return;this.maybeSetNormalizedName(_e.name,ve);const qe=("a"===_e.op?this.headers.get(ve):void 0)||[];qe.push(...Re),this.headers.set(ve,qe);break;case"d":const ct=_e.value;if(ct){let st=this.headers.get(ve);if(!st)return;st=st.filter($t=>-1===ct.indexOf($t)),0===st.length?(this.headers.delete(ve),this.normalizedNames.delete(ve)):this.headers.set(ve,st)}else this.headers.delete(ve),this.normalizedNames.delete(ve)}}setHeaderEntries(_e,ve){const Re=(Array.isArray(ve)?ve:[ve]).map(ct=>ct.toString()),qe=_e.toLowerCase();this.headers.set(qe,Re),this.maybeSetNormalizedName(_e,qe)}forEach(_e){this.init(),Array.from(this.normalizedNames.keys()).forEach(ve=>_e(this.normalizedNames.get(ve),this.headers.get(ve)))}}class ce{encodeKey(_e){return Ae(_e)}encodeValue(_e){return Ae(_e)}decodeKey(_e){return decodeURIComponent(_e)}decodeValue(_e){return decodeURIComponent(_e)}}const Ge=/%(\d[a-f0-9])/gi,Ve={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ae(Ie){return encodeURIComponent(Ie).replace(Ge,(_e,ve)=>Ve[ve]??_e)}function Pe(Ie){return`${Ie}`}class Se{constructor(_e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=_e.encoder||new ce,_e.fromString){if(_e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Ne(Ie,_e){const ve=new Map;return Ie.length>0&&Ie.replace(/^\?/,"").split("&").forEach(qe=>{const ct=qe.indexOf("="),[st,$t]=-1==ct?[_e.decodeKey(qe),""]:[_e.decodeKey(qe.slice(0,ct)),_e.decodeValue(qe.slice(ct+1))],St=ve.get(st)||[];St.push($t),ve.set(st,St)}),ve}(_e.fromString,this.encoder)}else _e.fromObject?(this.map=new Map,Object.keys(_e.fromObject).forEach(ve=>{const Re=_e.fromObject[ve],qe=Array.isArray(Re)?Re.map(Pe):[Pe(Re)];this.map.set(ve,qe)})):this.map=null}has(_e){return this.init(),this.map.has(_e)}get(_e){this.init();const ve=this.map.get(_e);return ve?ve[0]:null}getAll(_e){return this.init(),this.map.get(_e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(_e,ve){return this.clone({param:_e,value:ve,op:"a"})}appendAll(_e){const ve=[];return Object.keys(_e).forEach(Re=>{const qe=_e[Re];Array.isArray(qe)?qe.forEach(ct=>{ve.push({param:Re,value:ct,op:"a"})}):ve.push({param:Re,value:qe,op:"a"})}),this.clone(ve)}set(_e,ve){return this.clone({param:_e,value:ve,op:"s"})}delete(_e,ve){return this.clone({param:_e,value:ve,op:"d"})}toString(){return this.init(),this.keys().map(_e=>{const ve=this.encoder.encodeKey(_e);return this.map.get(_e).map(Re=>ve+"="+this.encoder.encodeValue(Re)).join("&")}).filter(_e=>""!==_e).join("&")}clone(_e){const ve=new Se({encoder:this.encoder});return ve.cloneFrom=this.cloneFrom||this,ve.updates=(this.updates||[]).concat(_e),ve}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(_e=>this.map.set(_e,this.cloneFrom.map.get(_e))),this.updates.forEach(_e=>{switch(_e.op){case"a":case"s":const ve=("a"===_e.op?this.map.get(_e.param):void 0)||[];ve.push(Pe(_e.value)),this.map.set(_e.param,ve);break;case"d":if(void 0===_e.value){this.map.delete(_e.param);break}{let Re=this.map.get(_e.param)||[];const qe=Re.indexOf(Pe(_e.value));-1!==qe&&Re.splice(qe,1),Re.length>0?this.map.set(_e.param,Re):this.map.delete(_e.param)}}}),this.cloneFrom=this.updates=null)}}class Ce{constructor(){this.map=new Map}set(_e,ve){return this.map.set(_e,ve),this}get(_e){return this.map.has(_e)||this.map.set(_e,_e.defaultValue()),this.map.get(_e)}delete(_e){return this.map.delete(_e),this}has(_e){return this.map.has(_e)}keys(){return this.map.keys()}}function je(Ie){return typeof ArrayBuffer<"u"&&Ie instanceof ArrayBuffer}function ut(Ie){return typeof Blob<"u"&&Ie instanceof Blob}function Dt(Ie){return typeof FormData<"u"&&Ie instanceof FormData}class Wt{constructor(_e,ve,Re,qe){let ct;if(this.url=ve,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=_e.toUpperCase(),function Te(Ie){switch(Ie){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qe?(this.body=void 0!==Re?Re:null,ct=qe):ct=Re,ct&&(this.reportProgress=!!ct.reportProgress,this.withCredentials=!!ct.withCredentials,ct.responseType&&(this.responseType=ct.responseType),ct.headers&&(this.headers=ct.headers),ct.context&&(this.context=ct.context),ct.params&&(this.params=ct.params),this.transferCache=ct.transferCache),this.headers||(this.headers=new ie),this.context||(this.context=new Ce),this.params){const st=this.params.toString();if(0===st.length)this.urlWithParams=ve;else{const $t=ve.indexOf("?");this.urlWithParams=ve+(-1===$t?"?":$t<ve.length-1?"&":"")+st}}else this.params=new Se,this.urlWithParams=ve}serializeBody(){return null===this.body?null:je(this.body)||ut(this.body)||Dt(this.body)||function Gt(Ie){return typeof URLSearchParams<"u"&&Ie instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Se?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Dt(this.body)?null:ut(this.body)?this.body.type||null:je(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Se?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(_e={}){const ve=_e.method||this.method,Re=_e.url||this.url,qe=_e.responseType||this.responseType,ct=void 0!==_e.body?_e.body:this.body,st=void 0!==_e.withCredentials?_e.withCredentials:this.withCredentials,$t=void 0!==_e.reportProgress?_e.reportProgress:this.reportProgress;let St=_e.headers||this.headers,Vt=_e.params||this.params;const _n=_e.context??this.context;return void 0!==_e.setHeaders&&(St=Object.keys(_e.setHeaders).reduce((vn,wt)=>vn.set(wt,_e.setHeaders[wt]),St)),_e.setParams&&(Vt=Object.keys(_e.setParams).reduce((vn,wt)=>vn.set(wt,_e.setParams[wt]),Vt)),new Wt(ve,Re,ct,{params:Vt,headers:St,context:_n,reportProgress:$t,responseType:qe,withCredentials:st})}}var Je=function(Ie){return Ie[Ie.Sent=0]="Sent",Ie[Ie.UploadProgress=1]="UploadProgress",Ie[Ie.ResponseHeader=2]="ResponseHeader",Ie[Ie.DownloadProgress=3]="DownloadProgress",Ie[Ie.Response=4]="Response",Ie[Ie.User=5]="User",Ie}(Je||{});class le{constructor(_e,ve=200,Re="OK"){this.headers=_e.headers||new ie,this.status=void 0!==_e.status?_e.status:ve,this.statusText=_e.statusText||Re,this.url=_e.url||null,this.ok=this.status>=200&&this.status<300}}class re extends le{constructor(_e={}){super(_e),this.type=Je.ResponseHeader}clone(_e={}){return new re({headers:_e.headers||this.headers,status:void 0!==_e.status?_e.status:this.status,statusText:_e.statusText||this.statusText,url:_e.url||this.url||void 0})}}class K extends le{constructor(_e={}){super(_e),this.type=Je.Response,this.body=void 0!==_e.body?_e.body:null}clone(_e={}){return new K({body:void 0!==_e.body?_e.body:this.body,headers:_e.headers||this.headers,status:void 0!==_e.status?_e.status:this.status,statusText:_e.statusText||this.statusText,url:_e.url||this.url||void 0})}}class j extends le{constructor(_e){super(_e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${_e.url||"(unknown url)"}`:`Http failure response for ${_e.url||"(unknown url)"}: ${_e.status} ${_e.statusText}`,this.error=_e.error||null}}function F(Ie,_e){return{body:_e,headers:Ie.headers,context:Ie.context,observe:Ie.observe,params:Ie.params,reportProgress:Ie.reportProgress,responseType:Ie.responseType,withCredentials:Ie.withCredentials,transferCache:Ie.transferCache}}let z=(()=>{class Ie{constructor(ve){this.handler=ve}request(ve,Re,qe={}){let ct;if(ve instanceof Wt)ct=ve;else{let St,Vt;St=qe.headers instanceof ie?qe.headers:new ie(qe.headers),qe.params&&(Vt=qe.params instanceof Se?qe.params:new Se({fromObject:qe.params})),ct=new Wt(ve,Re,void 0!==qe.body?qe.body:null,{headers:St,context:qe.context,params:Vt,reportProgress:qe.reportProgress,responseType:qe.responseType||"json",withCredentials:qe.withCredentials,transferCache:qe.transferCache})}const st=(0,Z.of)(ct).pipe(function M(Ie,_e){return(0,x.m)(_e)?(0,v.z)(Ie,_e,1):(0,v.z)(Ie,1)}(St=>this.handler.handle(St)));if(ve instanceof Wt||"events"===qe.observe)return st;const $t=st.pipe((0,N.h)(St=>St instanceof K));switch(qe.observe||"body"){case"body":switch(ct.responseType){case"arraybuffer":return $t.pipe((0,P.U)(St=>{if(null!==St.body&&!(St.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return St.body}));case"blob":return $t.pipe((0,P.U)(St=>{if(null!==St.body&&!(St.body instanceof Blob))throw new Error("Response is not a Blob.");return St.body}));case"text":return $t.pipe((0,P.U)(St=>{if(null!==St.body&&"string"!=typeof St.body)throw new Error("Response is not a string.");return St.body}));default:return $t.pipe((0,P.U)(St=>St.body))}case"response":return $t;default:throw new Error(`Unreachable: unhandled observe type ${qe.observe}}`)}}delete(ve,Re={}){return this.request("DELETE",ve,Re)}get(ve,Re={}){return this.request("GET",ve,Re)}head(ve,Re={}){return this.request("HEAD",ve,Re)}jsonp(ve,Re){return this.request("JSONP",ve,{params:(new Se).append(Re,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ve,Re={}){return this.request("OPTIONS",ve,Re)}patch(ve,Re,qe={}){return this.request("PATCH",ve,F(qe,Re))}post(ve,Re,qe={}){return this.request("POST",ve,F(qe,Re))}put(ve,Re,qe={}){return this.request("PUT",ve,F(qe,Re))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(I))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();function Ke(Ie,_e){return _e(Ie)}function et(Ie,_e){return(ve,Re)=>_e.intercept(ve,{handle:qe=>Ie(qe,Re)})}const ze=new i.OlP(""),ne=new i.OlP(""),se=new i.OlP(""),Ee=new i.OlP("");function $e(){let Ie=null;return(_e,ve)=>{null===Ie&&(Ie=((0,i.f3M)(ze,{optional:!0})??[]).reduceRight(et,Ke));const Re=(0,i.f3M)(i.I6F),qe=Re.add();return Ie(_e,ve).pipe((0,Y.x)(()=>Re.remove(qe)))}}let pt=(()=>{class Ie extends I{constructor(ve,Re){super(),this.backend=ve,this.injector=Re,this.chain=null,this.pendingTasks=(0,i.f3M)(i.I6F);const qe=(0,i.f3M)(Ee,{optional:!0});this.backend=qe??ve}handle(ve){if(null===this.chain){const qe=Array.from(new Set([...this.injector.get(ne),...this.injector.get(se,[])]));this.chain=qe.reduceRight((ct,st)=>function Me(Ie,_e,ve){return(Re,qe)=>(0,i.r_H)(ve,()=>_e(Re,ct=>Ie(ct,qe)))}(ct,st,this.injector),Ke)}const Re=this.pendingTasks.add();return this.chain(ve,qe=>this.backend.handle(qe)).pipe((0,Y.x)(()=>this.pendingTasks.remove(Re)))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(R),i.LFG(i.lqb))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();const Pi=/^\)\]\}',?\n/;let ei=(()=>{class Ie{constructor(ve){this.xhrFactory=ve}handle(ve){if("JSONP"===ve.method)throw new i.vHH(-2800,!1);const Re=this.xhrFactory;return(Re.\u0275loadImpl?(0,_.D)(Re.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,O.w)(()=>new V.y(ct=>{const st=Re.build();if(st.open(ve.method,ve.urlWithParams),ve.withCredentials&&(st.withCredentials=!0),ve.headers.forEach((en,Zt)=>st.setRequestHeader(en,Zt.join(","))),ve.headers.has("Accept")||st.setRequestHeader("Accept","application/json, text/plain, */*"),!ve.headers.has("Content-Type")){const en=ve.detectContentTypeHeader();null!==en&&st.setRequestHeader("Content-Type",en)}if(ve.responseType){const en=ve.responseType.toLowerCase();st.responseType="json"!==en?en:"text"}const $t=ve.serializeBody();let St=null;const Vt=()=>{if(null!==St)return St;const en=st.statusText||"OK",Zt=new ie(st.getAllResponseHeaders()),mn=function Ht(Ie){return"responseURL"in Ie&&Ie.responseURL?Ie.responseURL:/^X-Request-URL:/m.test(Ie.getAllResponseHeaders())?Ie.getResponseHeader("X-Request-URL"):null}(st)||ve.url;return St=new re({headers:Zt,status:st.status,statusText:en,url:mn}),St},_n=()=>{let{headers:en,status:Zt,statusText:mn,url:ti}=Vt(),on=null;204!==Zt&&(on=typeof st.response>"u"?st.responseText:st.response),0===Zt&&(Zt=on?200:0);let ni=Zt>=200&&Zt<300;if("json"===ve.responseType&&"string"==typeof on){const Co=on;on=on.replace(Pi,"");try{on=""!==on?JSON.parse(on):null}catch(Zi){on=Co,ni&&(ni=!1,on={error:Zi,text:on})}}ni?(ct.next(new K({body:on,headers:en,status:Zt,statusText:mn,url:ti||void 0})),ct.complete()):ct.error(new j({error:on,headers:en,status:Zt,statusText:mn,url:ti||void 0}))},vn=en=>{const{url:Zt}=Vt(),mn=new j({error:en,status:st.status||0,statusText:st.statusText||"Unknown Error",url:Zt||void 0});ct.error(mn)};let wt=!1;const Mi=en=>{wt||(ct.next(Vt()),wt=!0);let Zt={type:Je.DownloadProgress,loaded:en.loaded};en.lengthComputable&&(Zt.total=en.total),"text"===ve.responseType&&st.responseText&&(Zt.partialText=st.responseText),ct.next(Zt)},Dn=en=>{let Zt={type:Je.UploadProgress,loaded:en.loaded};en.lengthComputable&&(Zt.total=en.total),ct.next(Zt)};return st.addEventListener("load",_n),st.addEventListener("error",vn),st.addEventListener("timeout",vn),st.addEventListener("abort",vn),ve.reportProgress&&(st.addEventListener("progress",Mi),null!==$t&&st.upload&&st.upload.addEventListener("progress",Dn)),st.send($t),ct.next({type:Je.Sent}),()=>{st.removeEventListener("error",vn),st.removeEventListener("abort",vn),st.removeEventListener("load",_n),st.removeEventListener("timeout",vn),ve.reportProgress&&(st.removeEventListener("progress",Mi),null!==$t&&st.upload&&st.upload.removeEventListener("progress",Dn)),st.readyState!==st.DONE&&st.abort()}})))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(w.JF))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();const wn=new i.OlP("XSRF_ENABLED"),Ot=new i.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Vn=new i.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class $n{}let We=(()=>{class Ie{constructor(ve,Re,qe){this.doc=ve,this.platform=Re,this.cookieName=qe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ve=this.doc.cookie||"";return ve!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(ve,this.cookieName),this.lastCookieString=ve),this.lastToken}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(Ot))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();function me(Ie,_e){const ve=Ie.url.toLowerCase();if(!(0,i.f3M)(wn)||"GET"===Ie.method||"HEAD"===Ie.method||ve.startsWith("http://")||ve.startsWith("https://"))return _e(Ie);const Re=(0,i.f3M)($n).getToken(),qe=(0,i.f3M)(Vn);return null!=Re&&!Ie.headers.has(qe)&&(Ie=Ie.clone({headers:Ie.headers.set(qe,Re)})),_e(Ie)}var B=function(Ie){return Ie[Ie.Interceptors=0]="Interceptors",Ie[Ie.LegacyInterceptors=1]="LegacyInterceptors",Ie[Ie.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ie[Ie.NoXsrfProtection=3]="NoXsrfProtection",Ie[Ie.JsonpSupport=4]="JsonpSupport",Ie[Ie.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ie[Ie.Fetch=6]="Fetch",Ie}(B||{});function ee(...Ie){const _e=[z,ei,pt,{provide:I,useExisting:pt},{provide:R,useExisting:ei},{provide:ne,useValue:me,multi:!0},{provide:wn,useValue:!0},{provide:$n,useClass:We}];for(const ve of Ie)_e.push(...ve.\u0275providers);return(0,i.MR2)(_e)}const S=new i.OlP("LEGACY_INTERCEPTOR_FN");function J(){return function ae(Ie,_e){return{\u0275kind:Ie,\u0275providers:_e}}(B.LegacyInterceptors,[{provide:S,useFactory:$e},{provide:ne,useExisting:S,multi:!0}])}let gn=(()=>{class Ie{static#e=this.\u0275fac=function(Re){return new(Re||Ie)};static#t=this.\u0275mod=i.oAB({type:Ie});static#n=this.\u0275inj=i.cJS({providers:[ee(J())]})}return Ie})()},1322:(De,C,y)=>{"use strict";y.d(C,{QbO:()=>ud,AFp:()=>rh,hGG:()=>dA,z2F:()=>xl,Ojb:()=>Aa,sBO:()=>$b,_Vd:()=>$d,EJc:()=>XS,SBq:()=>jd,lqb:()=>bi,qLn:()=>$s,vpe:()=>Cr,OlP:()=>wt,zs3:()=>io,ZZ4:()=>Yp,aQg:()=>Kp,soG:()=>Ff,h0i:()=>Za,R0b:()=>li,FiY:()=>ya,Lbi:()=>dd,g9A:()=>ld,n_E:()=>Af,Qsj:()=>gC,FYo:()=>rb,JOm:()=>xd,q3G:()=>Qr,tp0:()=>Hi,Rgc:()=>uu,dDg:()=>HS,eoX:()=>Ow,GfV:()=>xw,s_b:()=>hf,ifc:()=>Si,VuI:()=>FA,Lck:()=>gM,eFA:()=>jw,G48:()=>oA,Gpc:()=>Ft,f3M:()=>tn,MR2:()=>Gu,Cb_:()=>NA,_c5:()=>lA,r_H:()=>Ac,rg0:()=>yC,c2e:()=>Tw,zSh:()=>od,wAp:()=>vl,I6F:()=>g_,vHH:()=>rt,lri:()=>Aw,rWj:()=>Iw,JZr:()=>hi,EiD:()=>Uh,mCW:()=>Gc,qzn:()=>Bs,JVY:()=>Ap,pB0:()=>kp,eBb:()=>Op,L6k:()=>Ip,LAX:()=>Pp,cg1:()=>Yg,kuF:()=>Tn,kL8:()=>by,dqk:()=>Vt,QGY:()=>qg,F4k:()=>Gy,RDi:()=>Bm,AaK:()=>$e,z3N:()=>qo,qOj:()=>fg,Xq5:()=>tv,TTD:()=>hn,_Bn:()=>I0,jDz:()=>P0,xp6:()=>wb,uIk:()=>mg,Tol:()=>bv,ekj:()=>wg,um2:()=>Uv,Suo:()=>nw,Xpm:()=>Ir,lG2:()=>as,Yz7:()=>Qt,cJS:()=>lo,oAB:()=>mo,Yjl:()=>cs,Y36:()=>Jc,_UZ:()=>Ug,GkF:()=>zg,BQk:()=>wf,ynx:()=>yf,qZA:()=>vf,TgZ:()=>bf,EpF:()=>_y,n5z:()=>Ru,Ikx:()=>Gg,LFG:()=>jn,$8M:()=>Zl,$Z:()=>xb,NdJ:()=>Jg,CRH:()=>iw,O4$:()=>uc,oxw:()=>qy,ALo:()=>Z0,lcZ:()=>q0,xi3:()=>J0,Hsn:()=>Qy,F$t:()=>Jy,Q6J:()=>bg,DdM:()=>$0,VKq:()=>j0,WLB:()=>H0,HTZ:()=>U0,iGM:()=>ew,MAs:()=>l0,wJu:()=>Wv,SjG:()=>Gv,x6l:()=>zv,KtG:()=>Xf,CHM:()=>Qf,oJD:()=>zh,Udp:()=>yg,d8E:()=>Wg,YNc:()=>ul,W1O:()=>aw,_uU:()=>v0,Oqu:()=>Xg,hij:()=>Ef,Gf:()=>tw});let i=null,V=1;function v(e){const t=i;return i=e,t}function w(e){if((!Pe(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==V)){if(!e.producerMustRecompute(e)&&!Ne(e))return e.dirty=!1,void(e.lastCleanEpoch=V);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=V}}function Ne(e){Se(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(w(n),r!==n.version))return!0}return!1}function Ae(e,t){if(function ke(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),Se(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)Ae(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],s=e.liveConsumerNode[t];Se(s),s.producerIndexOfThis[r]=t}}function Pe(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Se(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Wt=null;var et=y(9453),Me=y(9592),ze=y(1625),ne=y(8412);function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function Ee(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function $e(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map($e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function it(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const pt=se({__forward_ref__:se});function Ft(e){return e.__forward_ref__=Ft,e.toString=function(){return $e(this())},e}function lt(e){return Pt(e)?e():e}function Pt(e){return"function"==typeof e&&e.hasOwnProperty(pt)&&e.__forward_ref__===Ft}function Ct(e){return e&&!!e.\u0275providers}const hi="https://g.co/ng/security#xss";class rt extends Error{constructor(t,n){super(Tn(t,n)),this.code=t}}function Tn(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const ln=se({\u0275cmp:se}),Kn=se({\u0275dir:se}),dn=se({\u0275pipe:se}),Pi=se({\u0275mod:se}),Ht=se({\u0275fac:se}),ei=se({__NG_ELEMENT_ID__:se}),wn=se({__NG_ENV_ID__:se});function Et(e){return"string"==typeof e?e:null==e?"":String(e)}function W(e,t){throw new rt(-201,!1)}function qt(e,t){null==e&&function xt(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Qt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function lo(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ki(e){return wo(e,Bo)||wo(e,_e)}function wo(e,t){return e.hasOwnProperty(t)?e[t]:null}function uo(e){return e&&(e.hasOwnProperty(Ie)||e.hasOwnProperty(ve))?e[Ie]:null}const Bo=se({\u0275prov:se}),Ie=se({\u0275inj:se}),_e=se({ngInjectableDef:se}),ve=se({ngInjectorDef:se});var Re=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Re||{});let qe;function st(e){const t=qe;return qe=e,t}function $t(e,t,n){const r=Ki(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Re.Optional?null:void 0!==t?t:void W($e(e))}const Vt=globalThis;class wt{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Qt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const ki={},Zn="__NG_DI_FLAG__",xo="ngTempTokenPath",zs=/\n/gm,To="__source";let $o;function qi(e){const t=$o;return $o=e,t}function Ws(e,t=Re.Default){if(void 0===$o)throw new rt(-203,!1);return null===$o?$t(e,void 0,t):$o.get(e,t&Re.Optional?null:void 0,t)}function jn(e,t=Re.Default){return(function ct(){return qe}()||Ws)(lt(e),t)}function tn(e,t=Re.Default){return jn(e,tr(t))}function tr(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ri(e){const t=[];for(let n=0;n<e.length;n++){const r=lt(e[n]);if(Array.isArray(r)){if(0===r.length)throw new rt(900,!1);let s,d=Re.Default;for(let f=0;f<r.length;f++){const m=r[f],g=nr(m);"number"==typeof g?-1===g?s=m.token:d|=g:s=m}t.push(jn(s,d))}else t.push(jn(r))}return t}function Ji(e,t){return e[Zn]=t,e.prototype[Zn]=t,e}function nr(e){return e[Zn]}function Gn(e){return{toString:e}.toString()}var Do=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Do||{}),Si=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Si||{});const Fi={},rn=[];function jo(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const d=t.length;if(s+d===r||e.charCodeAt(s+d)<=32)return s}n=s+1}}function ho(e,t,n){let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const d=n[r++],f=n[r++],m=n[r++];e.setAttribute(t,f,m,d)}else{const d=s,f=n[++r];Zs(d)?e.setProperty(t,d,f):e.setAttribute(t,d,f),r++}}return r}function Ks(e){return 3===e||4===e||6===e}function Zs(e){return 64===e.charCodeAt(0)}function On(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?n=s:0===n||ts(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function ts(e,t,n,r,s){let d=0,f=e.length;if(-1===t)f=-1;else for(;d<e.length;){const m=e[d++];if("number"==typeof m){if(m===t){f=-1;break}if(m>t){f=d-1;break}}}for(;d<e.length;){const m=e[d];if("number"==typeof m)break;if(m===n){if(null===r)return void(null!==s&&(e[d+1]=s));if(r===e[d+1])return void(e[d+2]=s)}d++,null!==r&&d++,null!==s&&d++}-1!==f&&(e.splice(f,0,t),d=f+1),e.splice(d++,0,n),null!==r&&e.splice(d++,0,r),null!==s&&e.splice(d++,0,s)}const qs="ng-template";function ns(e,t,n){let r=0,s=!0;for(;r<e.length;){let d=e[r++];if("string"==typeof d&&s){const f=e[r++];if(n&&"class"===d&&-1!==jo(f.toLowerCase(),t,0))return!0}else{if(1===d){for(;r<e.length&&"string"==typeof(d=e[r++]);)if(d.toLowerCase()===t)return!0;return!1}"number"==typeof d&&(s=!1)}}return!1}function Js(e){return 4===e.type&&e.value!==qs}function is(e,t,n){return t===(4!==e.type||n?e.value:qs)}function os(e,t,n){let r=4;const s=e.attrs||[],d=function rs(e){for(let t=0;t<e.length;t++)if(Ks(e[t]))return t;return e.length}(s);let f=!1;for(let m=0;m<t.length;m++){const g=t[m];if("number"!=typeof g){if(!f)if(4&r){if(r=2|1&r,""!==g&&!is(e,g,n)||""===g&&1===t.length){if(Fn(r))return!1;f=!0}}else{const A=8&r?g:t[++m];if(8&r&&null!==e.attrs){if(!ns(e.attrs,A,n)){if(Fn(r))return!1;f=!0}continue}const oe=Dl(8&r?"class":g,s,Js(e),n);if(-1===oe){if(Fn(r))return!1;f=!0;continue}if(""!==A){let be;be=oe>d?"":s[oe+1].toLowerCase();const xe=8&r?be:null;if(xe&&-1!==jo(xe,A,0)||2&r&&A!==be){if(Fn(r))return!1;f=!0}}}}else{if(!f&&!Fn(r)&&!Fn(g))return!1;if(f&&Fn(g))continue;f=!1,r=g|1&r}}return Fn(r)||f}function Fn(e){return 0==(1&e)}function Dl(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let d=!1;for(;s<t.length;){const f=t[s];if(f===e)return s;if(3===f||6===f)d=!0;else{if(1===f||2===f){let m=t[++s];for(;"string"==typeof m;)m=t[++s];continue}if(4===f)break;if(0===f){s+=4;continue}}s+=d?1:2}return-1}return function Ho(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function ir(e,t,n=!1){for(let r=0;r<t.length;r++)if(os(e,t[r],n))return!0;return!1}function Qa(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let s=0;s<e.length;s++)if(e[s]!==r[s])continue e;return!0}}return!1}function fo(e,t){return e?":not("+t.trim()+")":t}function Xa(e){let t=e[0],n=1,r=2,s="",d=!1;for(;n<e.length;){let f=e[n];if("string"==typeof f)if(2&r){const m=e[++n];s+="["+f+(m.length>0?'="'+m+'"':"")+"]"}else 8&r?s+="."+f:4&r&&(s+=" "+f);else""!==s&&!Fn(f)&&(t+=fo(d,s),s=""),r=f,d=d||!Fn(r);n++}return""!==s&&(t+=fo(d,s)),t}function Ir(e){return Gn(()=>{const t=ls(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Do.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Si.Emulated,styles:e.styles||rn,_:null,schemas:e.schemas||null,tView:null,id:""};ta(n);const r=e.dependencies;return n.directiveDefs=ds(r,!1),n.pipeDefs=ds(r,!0),n.id=function us(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const s of n)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function ss(e){return Yt(e)||Hn(e)}function Xs(e){return null!==e}function mo(e){return Gn(()=>({type:e.type,bootstrap:e.bootstrap||rn,declarations:e.declarations||rn,imports:e.imports||rn,exports:e.exports||rn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ea(e,t){if(null==e)return Fi;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],d=s;Array.isArray(s)&&(d=s[1],s=s[0]),n[s]=r,t&&(t[s]=d)}return n}function as(e){return Gn(()=>{const t=ls(e);return ta(t),t})}function cs(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Yt(e){return e[ln]||null}function Hn(e){return e[Kn]||null}function Un(e){return e[dn]||null}function ls(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Fi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||rn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ea(e.inputs,t),outputs:ea(e.outputs),debugInfo:null}}function ta(e){e.features?.forEach(t=>t(e))}function ds(e,t){if(!e)return null;const n=t?Un:ss;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Xs)}const En=0,at=1,At=2,k=3,L=4,T=5,te=6,ye=7,ot=8,Rt=9,Mn=10,Lt=11,Li=12,na=13,Or=14,Pn=15,or=16,hs=17,po=18,Pr=19,tc=20,mi=21,kr=22,go=23,Bt=25,fs=1,Bi=7,Fr=9,Nn=10;var sr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e[e.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",e}(sr||{});function qn(e){return Array.isArray(e)&&"object"==typeof e[fs]}function Jn(e){return Array.isArray(e)&&!0===e[fs]}function ia(e){return 0!=(4&e.flags)}function ar(e){return e.componentOffset>-1}function oa(e){return 1==(1&e.flags)}function Qi(e){return!!e.template}function nc(e){return 0!=(512&e[At])}function un(e,t){return e.hasOwnProperty(Ht)?e[Ht]:null}class yn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function hn(){return Xt}function Xt(e){return e.type.prototype.ngOnChanges&&(e.setInput=bn),An}function An(){const e=Eo(this),t=e?.current;if(t){const n=e.previous;if(n===Fi)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function bn(e,t,n,r){const s=this.declaredInputs[n],d=Eo(e)||function _o(e,t){return e[Wn]=t}(e,{previous:Fi,current:null}),f=d.current||(d.current={}),m=d.previous,g=m[s];f[s]=new yn(g&&g.currentValue,t,m===Fi),e[r]=t}hn.ngInherit=!0;const Wn="__ngSimpleChanges__";function Eo(e){return e[Wn]||null}const ii=function(e,t,n){},Xi="svg";let ms=!1;function Sn(e){for(;Array.isArray(e);)e=e[En];return e}function So(e,t){return Sn(t[e])}function Ti(e,t){return Sn(t[e.index])}function Ao(e,t){return e.data[t]}function Go(e,t){return e[t]}function Vi(e,t){const n=t[e];return qn(n)?n:n[En]}function bo(e){return 128==(128&e[At])}function eo(e,t){return null==t?null:e[t]}function Al(e){e[hs]=0}function Il(e){1024&e[At]||(e[At]|=1024,bo(e)&&sc(e))}function oc(e){return 9216&e[At]||e[go]?.dirty}function rc(e){oc(e)?sc(e):64&e[At]&&(function Kf(){return ms}()?(e[At]|=1024,sc(e)):e[Mn].changeDetectionScheduler?.notify())}function sc(e){e[Mn].changeDetectionScheduler?.notify();let t=e[k];for(;null!==t&&!(Jn(t)&&t[At]&sr.HasChildViewsToRefresh||qn(t)&&8192&t[At]);){if(Jn(t))t[At]|=sr.HasChildViewsToRefresh;else if(t[At]|=8192,!bo(t))break;t=t[k]}}const Ut={lFrame:ha(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Io(){return Ut.bindingsEnabled}function cr(){return null!==Ut.skipHydrationRootTNode}function Ze(){return Ut.lFrame.lView}function cn(){return Ut.lFrame.tView}function Qf(e){return Ut.lFrame.contextLView=e,e[ot]}function Xf(e){return Ut.lFrame.contextLView=null,e}function Cn(){let e=em();for(;null!==e&&64===e.type;)e=e.parent;return e}function em(){return Ut.lFrame.currentTNode}function Wo(e,t){const n=Ut.lFrame;n.currentTNode=e,n.isParent=t}function la(){return Ut.lFrame.isParent}function Fl(){Ut.lFrame.isParent=!1}function oi(){const e=Ut.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $i(){return Ut.lFrame.bindingIndex++}function to(e){const t=Ut.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function im(e,t){const n=Ut.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ll(t)}function Ll(e){Ut.lFrame.currentDirectiveIndex=e}function Bl(e){const t=Ut.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function vu(){return Ut.lFrame.currentQueryIndex}function Vl(e){Ut.lFrame.currentQueryIndex=e}function $l(e){const t=e[at];return 2===t.type?t.declTNode:1===t.type?e[T]:null}function ua(e,t,n){if(n&Re.SkipSelf){let s=t,d=e;for(;!(s=s.parent,null!==s||n&Re.Host||(s=$l(d),null===s||(d=d[Or],10&s.type))););if(null===s)return!1;t=s,e=d}const r=Ut.lFrame=yu();return r.currentTNode=t,r.lView=e,!0}function bs(e){const t=yu(),n=e[at];Ut.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yu(){const e=Ut.lFrame,t=null===e?null:e.child;return null===t?ha(e):t}function ha(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function fa(){const e=Ut.lFrame;return Ut.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const wu=fa;function vs(){const e=fa();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ri(){return Ut.lFrame.selectedIndex}function Br(e){Ut.lFrame.selectedIndex=e}function xn(){const e=Ut.lFrame;return Ao(e.tView,e.selectedIndex)}function uc(){Ut.lFrame.currentNamespace=Xi}let am=!0;function hc(){return am}function dr(e){am=e}function Oo(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const d=e.data[n].type.prototype,{ngAfterContentInit:f,ngAfterContentChecked:m,ngAfterViewInit:g,ngAfterViewChecked:A,ngOnDestroy:U}=d;f&&(e.contentHooks??=[]).push(-n,f),m&&((e.contentHooks??=[]).push(n,m),(e.contentCheckHooks??=[]).push(n,m)),g&&(e.viewHooks??=[]).push(-n,g),A&&((e.viewHooks??=[]).push(n,A),(e.viewCheckHooks??=[]).push(n,A)),null!=U&&(e.destroyHooks??=[]).push(n,U)}}function fc(e,t,n){Hl(e,t,3,n)}function ma(e,t,n,r){(3&e[At])===n&&Hl(e,t,n,r)}function Cu(e,t){let n=e[At];(3&n)===t&&(n&=16383,n+=1,e[At]=n)}function Hl(e,t,n,r){const d=r??-1,f=t.length-1;let m=0;for(let g=void 0!==r?65535&e[hs]:0;g<f;g++)if("number"==typeof t[g+1]){if(m=t[g],null!=r&&m>=r)break}else t[g]<0&&(e[hs]+=65536),(m<d||-1==d)&&(cm(e,n,t,g),e[hs]=(4294901760&e[hs])+g+2),g++}function xu(e,t){ii(4,e,t);const n=v(null);try{t.call(e)}finally{v(n),ii(5,e,t)}}function cm(e,t,n,r){const s=n[r]<0,d=n[r+1],m=e[s?-n[r]:n[r]];s?e[At]>>14<e[hs]>>16&&(3&e[At])===t&&(e[At]+=16384,xu(m,d)):xu(m,d)}const ys=-1;class pa{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ul(e){return e!==ys}function Vr(e){return 32767&e}function pc(e,t){let n=function um(e){return e>>16}(e),r=t;for(;n>0;)r=r[Or],n--;return r}let zl=!0;function Gl(e){const t=zl;return zl=e,t}const Du=255,Eu=5;let fm=0;const Po={};function gc(e,t){const n=Mu(e,t);if(-1!==n)return n;const r=t[at];r.firstCreatePass&&(e.injectorIndex=t.length,Wl(r.data,e),Wl(t,null),Wl(r.blueprint,null));const s=_c(e,t),d=e.injectorIndex;if(Ul(s)){const f=Vr(s),m=pc(s,t),g=m[at].data;for(let A=0;A<8;A++)t[d+A]=m[f+A]|g[f+A]}return t[d+8]=s,d}function Wl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mu(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _c(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){if(r=Fu(s),null===r)return ys;if(n++,s=s[Or],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ys}function Yl(e,t,n){!function mm(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ei)&&(r=n[ei]),null==r&&(r=n[ei]=fm++);const s=r&Du;t.data[e+(s>>Eu)]|=1<<s}(e,t,n)}function Su(e,t,n){if(n&Re.Optional||void 0!==e)return e;W()}function Au(e,t,n,r){if(n&Re.Optional&&void 0===r&&(r=null),!(n&(Re.Self|Re.Host))){const s=e[Rt],d=st(void 0);try{return s?s.get(t,r,n&Re.Optional):$t(t,r,n&Re.Optional)}finally{st(d)}}return Su(r,0,n)}function Iu(e,t,n,r=Re.Default,s){if(null!==e){if(2048&t[At]&&!(r&Re.Self)){const f=function bm(e,t,n,r,s){let d=e,f=t;for(;null!==d&&null!==f&&2048&f[At]&&!(512&f[At]);){const m=Ou(d,f,n,r|Re.Self,Po);if(m!==Po)return m;let g=d.parent;if(!g){const A=f[tc];if(A){const U=A.get(n,Po,r);if(U!==Po)return U}g=Fu(f),f=f[Or]}d=g}return s}(e,t,n,r,Po);if(f!==Po)return f}const d=Ou(e,t,n,r,Po);if(d!==Po)return d}return Au(t,n,r,s)}function Ou(e,t,n,r,s){const d=function gm(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ei)?e[ei]:void 0;return"number"==typeof t?t>=0?t&Du:_m:t}(n);if("function"==typeof d){if(!ua(t,e,r))return r&Re.Host?Su(s,0,r):Au(t,n,r,s);try{let f;if(f=d(r),null!=f||r&Re.Optional)return f;W()}finally{wu()}}else if("number"==typeof d){let f=null,m=Mu(e,t),g=ys,A=r&Re.Host?t[Pn][T]:null;for((-1===m||r&Re.SkipSelf)&&(g=-1===m?_c(e,t):t[m+8],g!==ys&&ku(r,!1)?(f=t[at],m=Vr(g),t=pc(g,t)):m=-1);-1!==m;){const U=t[at];if(Pu(d,m,U.data)){const oe=pm(m,t,n,f,r,A);if(oe!==Po)return oe}g=t[m+8],g!==ys&&ku(r,t[at].data[m+8]===A)&&Pu(d,m,t)?(f=U,m=Vr(g),t=pc(g,t)):m=-1}}return s}function pm(e,t,n,r,s,d){const f=t[at],m=f.data[e+8],U=bc(m,f,n,null==r?ar(m)&&zl:r!=f&&0!=(3&m.type),s&Re.Host&&d===m);return null!==U?$r(t,f,U,m):Po}function bc(e,t,n,r,s){const d=e.providerIndexes,f=t.data,m=1048575&d,g=e.directiveStart,U=d>>20,be=s?m+U:e.directiveEnd;for(let xe=r?m:m+U;xe<be;xe++){const Ue=f[xe];if(xe<g&&n===Ue||xe>=g&&Ue.type===n)return xe}if(s){const xe=f[g];if(xe&&Qi(xe)&&xe.type===n)return g}return null}function $r(e,t,n,r){let s=e[n];const d=t.data;if(function V_(e){return e instanceof pa}(s)){const f=s;f.resolving&&function $n(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new rt(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Ot(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Et(e)}(d[n]));const m=Gl(f.canSeeViewProviders);f.resolving=!0;const A=f.injectImpl?st(f.injectImpl):null;ua(e,r,Re.Default);try{s=e[n]=f.factory(void 0,d,e,r),t.firstCreatePass&&n>=r.directiveStart&&function B_(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:d}=t.type.prototype;if(r){const f=Xt(t);(n.preOrderHooks??=[]).push(e,f),(n.preOrderCheckHooks??=[]).push(e,f)}s&&(n.preOrderHooks??=[]).push(0-e,s),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==A&&st(A),Gl(m),f.resolving=!1,wu()}}return s}function Pu(e,t,n){return!!(n[t+(e>>Eu)]&1<<e)}function ku(e,t){return!(e&Re.Self||e&Re.Host&&t)}class Qn{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Iu(this._tNode,this._lView,t,tr(r),n)}}function _m(){return new Qn(Cn(),Ze())}function Ru(e){return Gn(()=>{const t=e.prototype.constructor,n=t[Ht]||Kl(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const d=s[Ht]||Kl(s);if(d&&d!==n)return d;s=Object.getPrototypeOf(s)}return d=>new d})}function Kl(e){return Pt(e)?()=>{const t=Kl(lt(e));return t&&t()}:un(e)}function Fu(e){const t=e[at],n=t.type;return 2===n?t.declTNode:1===n?e[T]:null}function Zl(e){return function H_(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let s=0;for(;s<r;){const d=n[s];if(Ks(d))break;if(0===d)s+=2;else if("number"==typeof d)for(s++;s<r&&"string"==typeof n[s];)s++;else{if(d===t)return n[s+1];s+=2}}}return null}(Cn(),e)}const Ts="__parameters__";function Es(e,t,n){return Gn(()=>{const r=function ql(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...d){if(this instanceof s)return r.apply(this,d),this;const f=new s(...d);return m.annotation=f,m;function m(g,A,U){const oe=g.hasOwnProperty(Ts)?g[Ts]:Object.defineProperty(g,Ts,{value:[]})[Ts];for(;oe.length<=U;)oe.push(null);return(oe[U]=oe[U]||[]).push(f),g}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function Ur(e,t){e.forEach(n=>Array.isArray(n)?Ur(n,t):t(n))}function Tm(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ms(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function zr(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function ji(e,t,n){let r=Yo(e,t);return r>=0?e[1|r]=n:(r=~r,function $u(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function _a(e,t){const n=Yo(e,t);if(n>=0)return e[1|n]}function Yo(e,t){return function ba(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const d=r+(s-r>>1),f=e[d<<n];if(t===f)return d<<n;f>t?s=d:r=d+1}return~(s<<n)}(e,t,1)}const ya=Ji(Es("Optional"),8),Hi=Ji(Es("SkipSelf"),4),Ca=new wt("ENVIRONMENT_INITIALIZER"),Im=new wt("INJECTOR",-1),zu=new wt("INJECTOR_DEF_TYPES");class nd{get(t,n=ki){if(n===ki){const r=new Error(`NullInjectorError: No provider for ${$e(t)}!`);throw r.name="NullInjectorError",r}return n}}function Gu(e){return{\u0275providers:e}}function Cc(...e){return{\u0275providers:Wu(0,e),\u0275fromNgModule:!0}}function Wu(e,...t){const n=[],r=new Set;let s;const d=f=>{n.push(f)};return Ur(t,f=>{const m=f;xc(m,d,[],r)&&(s||=[],s.push(m))}),void 0!==s&&Yu(s,d),n}function Yu(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:s}=e[n];Os(s,d=>{t(d,r)})}}function xc(e,t,n,r){if(!(e=lt(e)))return!1;let s=null,d=uo(e);const f=!d&&Yt(e);if(d||f){if(f&&!f.standalone)return!1;s=e}else{const g=e.ngModule;if(d=uo(g),!d)return!1;s=g}const m=r.has(s);if(f){if(m)return!1;if(r.add(s),f.dependencies){const g="function"==typeof f.dependencies?f.dependencies():f.dependencies;for(const A of g)xc(A,t,n,r)}}else{if(!d)return!1;{if(null!=d.imports&&!m){let A;r.add(s);try{Ur(d.imports,U=>{xc(U,t,n,r)&&(A||=[],A.push(U))})}finally{}void 0!==A&&Yu(A,t)}if(!m){const A=un(s)||(()=>new s);t({provide:s,useFactory:A,deps:rn},s),t({provide:zu,useValue:s,multi:!0},s),t({provide:Ca,useValue:()=>jn(s),multi:!0},s)}const g=d.providers;if(null!=g&&!m){const A=e;Os(g,U=>{t(U,A)})}}}return s!==e&&void 0!==e.providers}function Os(e,t){for(let n of e)Ct(n)&&(n=n.\u0275providers),Array.isArray(n)?Os(n,t):t(n)}const Ku=se({provide:String,useValue:se});function Tc(e){return null!==e&&"object"==typeof e&&Ku in e}function fr(e){return"function"==typeof e}const od=new wt("Set Injector scope."),Ec={},Pm={};let rd;function Mc(){return void 0===rd&&(rd=new nd),rd}class bi{}class mr extends bi{get destroyed(){return this._destroyed}constructor(t,n,r,s){super(),this.parent=n,this.source=r,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ad(t,f=>this.processProvider(f)),this.records.set(Im,Ps(void 0,this)),s.has("environment")&&this.records.set(bi,Ps(void 0,this));const d=this.records.get(od);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(zu,rn,Re.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=qi(this),r=st(void 0);try{return t()}finally{qi(n),st(r)}}get(t,n=ki,r=Re.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(wn))return t[wn](this);r=tr(r);const d=qi(this),f=st(void 0);try{if(!(r&Re.SkipSelf)){let g=this.records.get(t);if(void 0===g){const A=function sd(e){return"function"==typeof e||"object"==typeof e&&e instanceof wt}(t)&&Ki(t);g=A&&this.injectableDefInScope(A)?Ps(xa(t),Ec):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(r&Re.Self?Mc():this.parent).get(t,n=r&Re.Optional&&n===ki?null:n)}catch(m){if("NullInjectorError"===m.name){if((m[xo]=m[xo]||[]).unshift($e(t)),d)throw m;return function Ys(e,t,n,r){const s=e[xo];throw t[To]&&s.unshift(t[To]),e.message=function Sr(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=$e(t);if(Array.isArray(t))s=t.map($e).join(" -> ");else if("object"==typeof t){let d=[];for(let f in t)if(t.hasOwnProperty(f)){let m=t[f];d.push(f+":"+("string"==typeof m?JSON.stringify(m):$e(m)))}s=`{${d.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(zs,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[xo]=null,e}(m,t,"R3InjectorError",this.source)}throw m}finally{st(f),qi(d)}}resolveInjectorInitializers(){const t=qi(this),n=st(void 0);try{const s=this.get(Ca,rn,Re.Self);for(const d of s)d()}finally{qi(t),st(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push($e(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new rt(205,!1)}processProvider(t){let n=fr(t=lt(t))?t:lt(t&&t.provide);const r=function km(e){return Tc(e)?Ps(void 0,e.useValue):Ps(qu(e),Ec)}(t);if(fr(t)||!0!==t.multi)this.records.get(n);else{let s=this.records.get(n);s||(s=Ps(void 0,Ec,!0),s.factory=()=>Ri(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ec&&(n.value=Pm,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Fm(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=lt(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function xa(e){const t=Ki(e),n=null!==t?t.factory:un(e);if(null!==n)return n;if(e instanceof wt)throw new rt(204,!1);if(e instanceof Function)return function Sc(e){const t=e.length;if(t>0)throw zr(t,"?"),new rt(204,!1);const n=function fi(e){return e&&(e[Bo]||e[_e])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new rt(204,!1)}function qu(e,t,n){let r;if(fr(e)){const s=lt(e);return un(s)||xa(s)}if(Tc(e))r=()=>lt(e.useValue);else if(function Dc(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ri(e.deps||[]));else if(function Zu(e){return!(!e||!e.useExisting)}(e))r=()=>jn(lt(e.useExisting));else{const s=lt(e&&(e.useClass||e.provide));if(!function Rm(e){return!!e.deps}(e))return un(s)||xa(s);r=()=>new s(...Ri(e.deps))}return r}function Ps(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ad(e,t){for(const n of e)Array.isArray(n)?ad(n,t):n&&Ct(n)?ad(n.\u0275providers,t):t(n)}function Ac(e,t){e instanceof mr&&e.assertNotDestroyed();const r=qi(e),s=st(void 0);try{return t()}finally{qi(r),st(s)}}function th(e,t=null,n=null,r){const s=nh(e,t,n,r);return s.resolveInjectorInitializers(),s}function nh(e,t=null,n=null,r,s=new Set){const d=[n||rn,Cc(e)];return r=r||("object"==typeof e?void 0:$e(e)),new mr(d,t||Mc(),r||null,s)}let Sa,io=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=ki;static#t=this.NULL=new nd;static create(n,r){if(Array.isArray(n))return th({name:""},r,n,"");{const s=n.name??"";return th({name:s},n.parent,n.providers,s)}}static#n=this.\u0275prov=Qt({token:e,providedIn:"any",factory:()=>jn(Im)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();function Bm(e){Sa=e}function pr(){if(void 0!==Sa)return Sa;if(typeof document<"u")return document;throw new rt(210,!1)}const rh=new wt("AppId",{providedIn:"root",factory:()=>Vm}),Vm="ng",ld=new wt("Platform Initializer"),dd=new wt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ud=new wt("AnimationModuleType"),Aa=new wt("CSP nonce",{providedIn:"root",factory:()=>pr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function wd(e){return 128==(128&e.flags)}var xd=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(xd||{});const Oa=/^>|^->|<!--|-->|--!>|<!-$/g,Td=/(<|>)/g,Zm="\u200b$1\u200b";const Ed=new Map;let qm=0;const Sd="__ngContext__";function wi(e,t){qn(t)?(e[Sd]=t[Pr],function Qm(e){Ed.set(e[Pr],e)}(t)):e[Sd]=t}let ka;function yh(e,t){return ka(e,t)}function Ra(e){const t=e[k];return Jn(t)?t[k]:t}function ap(e){return lp(e[Li])}function cp(e){return lp(e[L])}function lp(e){for(;null!==e&&!Jn(e);)e=e[L];return e}function Ns(e,t,n,r,s){if(null!=r){let d,f=!1;Jn(r)?d=r:qn(r)&&(f=!0,r=r[En]);const m=Sn(r);0===e&&null!==n?null==s?Dh(t,n,m):Zr(t,n,m,s||null,!0):1===e&&null!==n?Zr(t,n,m,s||null,!0):2===e?function Hc(e,t,n){const r=Na(e,t);r&&function Mh(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,m,f):3===e&&t.destroyNode(m),null!=d&&function _p(e,t,n,r,s){const d=n[Bi];d!==Sn(n)&&Ns(t,e,r,d,s);for(let m=Nn;m<n.length;m++){const g=n[m];$a(g[at],g,e,t,r,d)}}(t,e,d,n,s)}}function Lc(e,t){return e.createComment(function Dd(e){return e.replace(Oa,t=>t.replace(Td,Zm))}(t))}function Fa(e,t,n){return e.createElement(t,n)}function xh(e,t){const n=e[Fr],r=n.indexOf(t);n.splice(r,1)}function Ro(e,t){if(e.length<=Nn)return;const n=Nn+t,r=e[n];if(r){const s=r[or];null!==s&&s!==e&&xh(s,r),t>0&&(e[n-1][L]=r[L]);const d=Ms(e,Nn+t);!function Bc(e,t){$a(e,t,t[Lt],2,null,null),t[En]=null,t[T]=null}(r[at],r);const f=d[po];null!==f&&f.detachView(d[at]),r[k]=null,r[L]=null,r[At]&=-129}return r}function Vc(e,t){if(!(256&t[At])){const n=t[Lt];n.destroyNode&&$a(e,t,n,3,null,null),function up(e){let t=e[Li];if(!t)return $c(e[at],e);for(;t;){let n=null;if(qn(t))n=t[Li];else{const r=t[Nn];r&&(n=r)}if(!n){for(;t&&!t[L]&&t!==e;)qn(t)&&$c(t[at],t),t=t[k];null===t&&(t=e),qn(t)&&$c(t[at],t),n=t&&t[L]}t=n}}(t)}}function $c(e,t){if(!(256&t[At])){t[At]&=-129,t[At]|=256,t[go]&&function Ge(e){if(Se(e),Pe(e))for(let t=0;t<e.producerNode.length;t++)Ae(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}(t[go]),function mp(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const s=t[n[r]];if(!(s instanceof pa)){const d=n[r+1];if(Array.isArray(d))for(let f=0;f<d.length;f+=2){const m=s[d[f]],g=d[f+1];ii(4,m,g);try{g.call(m)}finally{ii(5,m,g)}}else{ii(4,s,d);try{d.call(s)}finally{ii(5,s,d)}}}}}(e,t),function ft(e,t){const n=e.cleanup,r=t[ye];if(null!==n)for(let d=0;d<n.length-1;d+=2)if("string"==typeof n[d]){const f=n[d+3];f>=0?r[f]():r[-f].unsubscribe(),d+=2}else n[d].call(r[n[d+1]]);null!==r&&(t[ye]=null);const s=t[mi];if(null!==s){t[mi]=null;for(let d=0;d<s.length;d++)(0,s[d])()}}(e,t),1===t[at].type&&t[Lt].destroy();const n=t[or];if(null!==n&&Jn(t[k])){n!==t[k]&&xh(n,t);const r=t[po];null!==r&&r.detachView(e)}!function Xm(e){Ed.delete(e[Pr])}(t)}}function Id(e,t,n){return function Th(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[En];{const{componentOffset:s}=r;if(s>-1){const{encapsulation:d}=e.data[r.directiveStart+s];if(d===Si.None||d===Si.Emulated)return null}return Ti(r,n)}}(e,t.parent,n)}function Zr(e,t,n,r,s){e.insertBefore(t,n,r,s)}function Dh(e,t,n){e.appendChild(t,n)}function Eh(e,t,n,r,s){null!==r?Zr(e,t,n,r,s):Dh(e,t,n)}function Na(e,t){return e.parentNode(t)}function La(e,t,n){return qr(e,t,n)}let Od,Uc,zc,qr=function Ba(e,t,n){return 40&e.type?Ti(e,n):null};function jc(e,t,n,r){const s=Id(e,r,t),d=t[Lt],m=La(r.parent||t[T],r,t);if(null!=s)if(Array.isArray(n))for(let g=0;g<n.length;g++)Eh(d,s,n[g],m,!1);else Eh(d,s,n,m,!1);void 0!==Od&&Od(d,r,t,n,s)}function Va(e,t){if(null!==t){const n=t.type;if(3&n)return Ti(t,e);if(4&n)return Pd(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Va(e,r);{const s=e[t.index];return Jn(s)?Pd(-1,s):Sn(s)}}if(32&n)return yh(t,e)()||Sn(e[t.index]);{const r=Ah(e,t);return null!==r?Array.isArray(r)?r[0]:Va(Ra(e[Pn]),r):Va(e,t.next)}}return null}function Ah(e,t){return null!==t?e[Pn][T].projection[t.projection]:null}function Pd(e,t){const n=Nn+e+1;if(n<t.length){const r=t[n],s=r[at].firstChild;if(null!==s)return Va(r,s)}return t[Bi]}function kd(e,t,n,r,s,d,f){for(;null!=n;){const m=r[n.index],g=n.type;if(f&&0===t&&(m&&wi(Sn(m),r),n.flags|=2),32!=(32&n.flags))if(8&g)kd(e,t,n.child,r,s,d,!1),Ns(t,e,s,m,d);else if(32&g){const A=yh(n,r);let U;for(;U=A();)Ns(t,e,s,U,d);Ns(t,e,s,m,d)}else 16&g?Oh(e,t,r,n,s,d):Ns(t,e,s,m,d);n=f?n.projectionNext:n.next}}function $a(e,t,n,r,s,d){kd(n,r,e.firstChild,t,s,d,!1)}function Oh(e,t,n,r,s,d){const f=n[Pn],g=f[T].projection[r.projection];if(Array.isArray(g))for(let A=0;A<g.length;A++)Ns(t,e,s,g[A],d);else{let A=g;const U=f[k];wd(r)&&(A.flags|=128),kd(e,t,A,U,s,d,!0)}}function Ph(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function kh(e,t,n){const{mergedAttrs:r,classes:s,styles:d}=n;null!==r&&ho(e,t,r),null!==s&&Ph(e,t,s),null!==d&&function vp(e,t,n){e.setAttribute(t,"style",n)}(e,t,d)}function Ls(e){return function Rd(){if(void 0===Uc&&(Uc=null,Vt.trustedTypes))try{Uc=Vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Uc}()?.createHTML(e)||e}function Nd(e){return function Fd(){if(void 0===zc&&(zc=null,Vt.trustedTypes))try{zc=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return zc}()?.createHTML(e)||e}class Jr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${hi})`}}class xp extends Jr{getTypeName(){return"HTML"}}class Tp extends Jr{getTypeName(){return"Style"}}class Dp extends Jr{getTypeName(){return"Script"}}class Ep extends Jr{getTypeName(){return"URL"}}class Mp extends Jr{getTypeName(){return"ResourceURL"}}function qo(e){return e instanceof Jr?e.changingThisBreaksApplicationSecurity:e}function Bs(e,t){const n=function Sp(e){return e instanceof Jr&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${hi})`)}return n===t}function Ap(e){return new xp(e)}function Ip(e){return new Tp(e)}function Op(e){return new Dp(e)}function Pp(e){return new Ep(e)}function kp(e){return new Mp(e)}class Rp{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Ls(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Fp{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Ls(t),n}}const Lp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Gc(e){return(e=String(e)).match(Lp)?e:"unsafe:"+e}function Jo(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ja(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Lh=Jo("area,br,col,hr,img,wbr"),Bh=Jo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vh=Jo("rp,rt"),Ld=ja(Lh,ja(Bh,Jo("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")),ja(Vh,Jo("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")),ja(Vh,Bh)),Bd=Jo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jh=ja(Bd,Jo("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"),Jo("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")),Bp=Jo("script,style,template");class Vp{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=this.checkClobberedElement(n,n.nextSibling);if(s){n=s;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Ld.hasOwnProperty(n))return this.sanitizedSomething=!0,!Bp.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let s=0;s<r.length;s++){const d=r.item(s),f=d.name,m=f.toLowerCase();if(!jh.hasOwnProperty(m)){this.sanitizedSomething=!0;continue}let g=d.value;Bd[m]&&(g=Gc(g)),this.buf.push(" ",f,'="',Hh(g),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Ld.hasOwnProperty(n)&&!Lh.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Hh(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const $p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jp=/([^\#-~ |!])/g;function Hh(e){return e.replace(/&/g,"&amp;").replace($p,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(jp,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Wc;function Uh(e,t){let n=null;try{Wc=Wc||function Nh(e){const t=new Fp(e);return function Np(){try{return!!(new window.DOMParser).parseFromString(Ls(""),"text/html")}catch{return!1}}()?new Rp(t):t}(e);let r=t?String(t):"";n=Wc.getInertBodyElement(r);let s=5,d=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=d,d=n.innerHTML,n=Wc.getInertBodyElement(r)}while(r!==d);return Ls((new Vp).sanitizeChildren(Vd(n)||n))}finally{if(n){const r=Vd(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Vd(e){return"content"in e&&function Hp(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Qr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Qr||{});function zh(e){const t=function G(){const e=Ze();return e&&e[Mn].sanitizer}();return t?Nd(t.sanitize(Qr.HTML,e)||""):Bs(e,"HTML")?Nd(qo(e)):Uh(pr(),Et(e))}class fe{}let Vs=(e,t,n)=>null;function Yc(e,t,n=!1){return Vs(e,t,n)}class Ci{}class yr{}class fC{resolveComponentFactory(t){throw function ro(e){const t=Error(`No component factory found for ${$e(e)}.`);return t.ngComponent=e,t}(t)}}let $d=(()=>{class e{static#e=this.NULL=new fC}return e})();function mC(){return qc(Cn(),Ze())}function qc(e,t){return new jd(Ti(e,t))}let jd=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=mC}return e})();function pC(e){return e instanceof jd?e.nativeElement:e}class rb{}let gC=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function _C(){const e=Ze(),n=Vi(Cn().index,e);return(qn(n)?n:e)[Lt]}()}return e})(),bC=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:()=>null})}return e})();const Gp={};function yC(e){const t=v(null);try{return e()}finally{v(t)}}function Zh(e){return!!Wp(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Wp(e){return null!==e&&("function"==typeof e||"object"==typeof e)}class sb{constructor(){}supports(t){return Zh(t)}create(t){return new TC(t)}}const xC=(e,t)=>t;class TC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||xC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,s=0,d=null;for(;n||r;){const f=!r||n&&n.currentIndex<cb(r,s,d)?n:r,m=cb(f,s,d),g=f.currentIndex;if(f===r)s--,r=r._nextRemoved;else if(n=n._next,null==f.previousIndex)s++;else{d||(d=[]);const A=m-s,U=g-s;if(A!=U){for(let be=0;be<A;be++){const xe=be<d.length?d[be]:d[be]=0,Ue=xe+be;U<=Ue&&Ue<A&&(d[be]=xe+1)}d[f.previousIndex]=U-A}}m!==g&&t(f,m,g)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Zh(t))throw new rt(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,d,f,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let m=0;m<this.length;m++)d=t[m],f=this._trackByFn(m,d),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,d,f,m)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,f,m),r=!0),n=n._next}else s=0,function CC(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,m=>{f=this._trackByFn(s,m),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,m,f,s)),Object.is(n.item,m)||this._addIdentityChange(n,m)):(n=this._mismatch(n,m,f,s),r=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,s){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,s)):t=this._addAfter(new DC(n,r),d,s),t}_verifyReinsertion(t,n,r,s){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==d?t=this._reinsertAfter(d,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,d=t._nextRemoved;return null===s?this._removalsHead=d:s._nextRemoved=d,null===d?this._removalsTail=s:d._prevRemoved=s,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new ab),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ab),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class DC{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class EC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class ab{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new EC,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function cb(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class lb{constructor(){}supports(t){return t instanceof Map||Wp(t)}create(){return new MC}}class MC{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Wp(t)))throw new rt(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const d=s._prev,f=s._next;return d&&(d._next=f),f&&(f._prev=d),s._next=null,s._prev=null,s}const r=new SC(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class SC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function db(){return new Yp([new sb])}let Yp=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:db});constructor(n){this.factories=n}static create(n,r){if(null!=r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||db()),deps:[[e,new Hi,new ya]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new rt(901,!1)}}return e})();function ub(){return new Kp([new lb])}let Kp=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:ub});constructor(n){this.factories=n}static create(n,r){if(r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||ub()),deps:[[e,new Hi,new ya]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new rt(901,!1)}}return e})();function Hd(e,t,n,r,s=!1){for(;null!==n;){const d=t[n.index];null!==d&&r.push(Sn(d)),Jn(d)&&hb(d,r);const f=n.type;if(8&f)Hd(e,t,n.child,r);else if(32&f){const m=yh(n,t);let g;for(;g=m();)r.push(g)}else if(16&f){const m=Ah(t,n);if(Array.isArray(m))r.push(...m);else{const g=Ra(t[Pn]);Hd(g[at],g,m,r,!0)}}n=s?n.projectionNext:n.next}return r}function hb(e,t){for(let n=Nn;n<e.length;n++){const r=e[n],s=r[at].firstChild;null!==s&&Hd(r[at],r,s,t)}e[Bi]!==e[En]&&t.push(e[Bi])}let fb=[];const kC={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{sc(e.lView)},consumerOnSignalRead(){this.lView[go]=this}};function Zp(e){return e.ngOriginalError}class $s{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Zp(t);for(;n&&Zp(n);)n=Zp(n);return n||null}}const pb=new wt("",{providedIn:"root",factory:()=>tn($s).handleError.bind(void 0)}),_b=new wt("",{providedIn:"root",factory:()=>!1}),Jt={};function wb(e){Cb(cn(),Ze(),ri()+e,!1)}function Cb(e,t,n,r){if(!r)if(3==(3&t[At])){const d=e.preOrderCheckHooks;null!==d&&fc(t,d,n)}else{const d=e.preOrderHooks;null!==d&&ma(t,d,0,n)}Br(n)}function Jc(e,t=Re.Default){const n=Ze();return null===n?jn(e,t):Iu(Cn(),n,lt(e),t)}function xb(){throw new Error("invalid")}function Jh(e,t,n,r,s,d,f,m,g,A,U){const oe=t.blueprint.slice();return oe[En]=s,oe[At]=204|r,(null!==A||e&&2048&e[At])&&(oe[At]|=2048),Al(oe),oe[k]=oe[Or]=e,oe[ot]=n,oe[Mn]=f||e&&e[Mn],oe[Lt]=m||e&&e[Lt],oe[Rt]=g||e&&e[Rt]||null,oe[T]=d,oe[Pr]=function Jm(){return qm++}(),oe[te]=U,oe[tc]=A,oe[Pn]=2==t.type?e[Pn]:oe,oe}function Qc(e,t,n,r,s){let d=e.data[t];if(null===d)d=function qp(e,t,n,r,s){const d=em(),f=la(),g=e.data[t]=function WC(e,t,n,r,s,d){let f=t?t.injectorIndex:-1,m=0;return cr()&&(m|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:f,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:m,providerIndexes:0,value:s,attrs:d,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,f?d:d&&d.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=g),null!==d&&(f?null==d.child&&null!==g.parent&&(d.child=g):null===d.next&&(d.next=g,g.prev=d)),g}(e,t,n,r,s),function bu(){return Ut.lFrame.inI18n}()&&(d.flags|=32);else if(64&d.type){d.type=n,d.value=r,d.attrs=s;const f=function lc(){const e=Ut.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();d.injectorIndex=null===f?-1:f.injectorIndex}return Wo(d,!0),d}function Ud(e,t,n,r){if(0===n)return-1;const s=t.length;for(let d=0;d<n;d++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function Tb(e,t,n,r,s){const d=ri(),f=2&r;try{Br(-1),f&&t.length>Bt&&Cb(e,t,Bt,!1),ii(f?2:0,s),n(r,s)}finally{Br(d),ii(f?3:1,s)}}function Jp(e,t,n){if(ia(t)){const r=v(null);try{const d=t.directiveEnd;for(let f=t.directiveStart;f<d;f++){const m=e.data[f];m.contentQueries&&m.contentQueries(1,n[f],f)}}finally{v(r)}}}function Qp(e,t,n){Io()&&(function XC(e,t,n,r){const s=n.directiveStart,d=n.directiveEnd;ar(n)&&function sx(e,t,n){const r=Ti(t,e),s=Db(n);let f=16;n.signals?f=4096:n.onPush&&(f=64);const m=Qh(e,Jh(e,s,null,f,r,t,null,e[Mn].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=m}(t,n,e.data[s+n.componentOffset]),e.firstCreatePass||gc(n,t),wi(r,t);const f=n.initialInputs;for(let m=s;m<d;m++){const g=e.data[m],A=$r(t,e,m,n);wi(A,t),null!==f&&ax(0,m-s,A,g,0,f),Qi(g)&&(Vi(n.index,t)[ot]=$r(t,e,m,n))}}(e,t,n,Ti(n,t)),64==(64&n.flags)&&Ib(e,t,n))}function Xp(e,t,n=Ti){const r=t.localNames;if(null!==r){let s=t.index+1;for(let d=0;d<r.length;d+=2){const f=r[d+1],m=-1===f?n(t,e):e[f];e[s++]=m}}}function Db(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=eg(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function eg(e,t,n,r,s,d,f,m,g,A,U){const oe=Bt+r,be=oe+s,xe=function $C(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Jt);return n}(oe,be),Ue="function"==typeof A?A():A;return xe[at]={type:e,blueprint:xe,template:n,queries:null,viewQuery:m,declTNode:t,data:xe.slice().fill(null,oe),bindingStartIndex:oe,expandoStartIndex:be,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof d?d():d,pipeRegistry:"function"==typeof f?f():f,firstChild:null,schemas:g,consts:Ue,incompleteFirstPass:!1,ssrId:U}}let Eb=e=>null;function Mb(e,t,n,r){for(let s in e)if(e.hasOwnProperty(s)){n=null===n?{}:n;const d=e[s];null===r?Sb(n,t,s,d):r.hasOwnProperty(s)&&Sb(n,t,r[s],d)}return n}function Sb(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function yo(e,t,n,r,s,d,f,m){const g=Ti(t,n);let U,A=t.inputs;!m&&null!=A&&(U=A[r])?(rg(e,n,U,r,s),ar(t)&&function ZC(e,t){const n=Vi(t,e);16&n[At]||(n[At]|=64)}(n,t.index)):3&t.type&&(r=function KC(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=f?f(s,t.value||"",r):s,d.setProperty(g,r,s))}function tg(e,t,n,r){if(Io()){const s=null===r?null:{"":-1},d=function tx(e,t){const n=e.directiveRegistry;let r=null,s=null;if(n)for(let d=0;d<n.length;d++){const f=n[d];if(ir(t,f.selectors,!1))if(r||(r=[]),Qi(f))if(null!==f.findHostDirectiveDefs){const m=[];s=s||new Map,f.findHostDirectiveDefs(f,m,s),r.unshift(...m,f),ng(e,t,m.length)}else r.unshift(f),ng(e,t,0);else s=s||new Map,f.findHostDirectiveDefs?.(f,r,s),r.push(f)}return null===r?null:[r,s]}(e,n);let f,m;null===d?f=m=null:[f,m]=d,null!==f&&Ab(e,t,n,f,s,m),s&&function nx(e,t,n){if(t){const r=e.localNames=[];for(let s=0;s<t.length;s+=2){const d=n[t[s+1]];if(null==d)throw new rt(-301,!1);r.push(t[s],d)}}}(n,r,s)}n.mergedAttrs=On(n.mergedAttrs,n.attrs)}function Ab(e,t,n,r,s,d){for(let A=0;A<r.length;A++)Yl(gc(n,t),e,r[A].type);!function ox(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let A=0;A<r.length;A++){const U=r[A];U.providersResolver&&U.providersResolver(U)}let f=!1,m=!1,g=Ud(e,t,r.length,null);for(let A=0;A<r.length;A++){const U=r[A];n.mergedAttrs=On(n.mergedAttrs,U.hostAttrs),rx(e,n,t,g,U),ix(g,U,s),null!==U.contentQueries&&(n.flags|=4),(null!==U.hostBindings||null!==U.hostAttrs||0!==U.hostVars)&&(n.flags|=64);const oe=U.type.prototype;!f&&(oe.ngOnChanges||oe.ngOnInit||oe.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),f=!0),!m&&(oe.ngOnChanges||oe.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),m=!0),g++}!function YC(e,t,n){const s=t.directiveEnd,d=e.data,f=t.attrs,m=[];let g=null,A=null;for(let U=t.directiveStart;U<s;U++){const oe=d[U],be=n?n.get(oe):null,Ue=be?be.outputs:null;g=Mb(oe.inputs,U,g,be?be.inputs:null),A=Mb(oe.outputs,U,A,Ue);const nt=null===g||null===f||Js(t)?null:cx(g,U,f);m.push(nt)}null!==g&&(g.hasOwnProperty("class")&&(t.flags|=8),g.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=m,t.inputs=g,t.outputs=A}(e,n,d)}function Ib(e,t,n){const r=n.directiveStart,s=n.directiveEnd,d=n.index,f=function om(){return Ut.lFrame.currentDirectiveIndex}();try{Br(d);for(let m=r;m<s;m++){const g=e.data[m],A=t[m];Ll(m),(null!==g.hostBindings||0!==g.hostVars||null!==g.hostAttrs)&&ex(g,A)}}finally{Br(-1),Ll(f)}}function ex(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ng(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ix(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Qi(t)&&(n[""]=e)}}function rx(e,t,n,r,s){e.data[r]=s;const d=s.factory||(s.factory=un(s.type)),f=new pa(d,Qi(s),Jc);e.blueprint[r]=f,n[r]=f,function JC(e,t,n,r,s){const d=s.hostBindings;if(d){let f=e.hostBindingOpCodes;null===f&&(f=e.hostBindingOpCodes=[]);const m=~t.index;(function QC(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=m&&f.push(m),f.push(n,r,d)}}(e,t,r,Ud(e,n,s.hostVars,Jt),s)}function wr(e,t,n,r,s,d){const f=Ti(e,t);!function ig(e,t,n,r,s,d,f){if(null==d)e.removeAttribute(t,s,n);else{const m=null==f?Et(d):f(d,r||"",s);e.setAttribute(t,s,m,n)}}(t[Lt],f,d,e.value,n,r,s)}function ax(e,t,n,r,s,d){const f=d[t];if(null!==f)for(let m=0;m<f.length;)Ob(r,n,f[m++],f[m++],f[m++])}function Ob(e,t,n,r,s){const d=v(null);try{const f=e.inputTransforms;null!==f&&f.hasOwnProperty(r)&&(s=f[r].call(t,s)),null!==e.setInput?e.setInput(t,s,n,r):t[r]=s}finally{v(d)}}function cx(e,t,n){let r=null,s=0;for(;s<n.length;){const d=n[s];if(0!==d)if(5!==d){if("number"==typeof d)break;if(e.hasOwnProperty(d)){null===r&&(r=[]);const f=e[d];for(let m=0;m<f.length;m+=2)if(f[m]===t){r.push(d,f[m+1],n[s+1]);break}}s+=2}else s+=2;else s+=4}return r}function Pb(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function kb(e,t){const n=e.contentQueries;if(null!==n){const r=v(null);try{for(let s=0;s<n.length;s+=2){const f=n[s+1];if(-1!==f){const m=e.data[f];Vl(n[s]),m.contentQueries(2,t[f],f)}}}finally{v(r)}}}function Qh(e,t){return e[Li]?e[na][L]=t:e[Li]=t,e[na]=t,t}function og(e,t,n){Vl(0);const r=v(null);try{t(e,n)}finally{v(r)}}function Rb(e){return e[ye]||(e[ye]=[])}function Fb(e){return e.cleanup||(e.cleanup=[])}function Nb(e,t,n){return(null===e||Qi(e))&&(n=function aa(e){for(;Array.isArray(e);){if("object"==typeof e[fs])return e;e=e[En]}return null}(n[t.index])),n[Lt]}function Xh(e,t){const n=e[Rt],r=n?n.get($s,null):null;r&&r.handleError(t)}function rg(e,t,n,r,s){for(let d=0;d<n.length;){const f=n[d++],m=n[d++];Ob(e.data[f],t[f],r,m,s)}}function ux(e,t,n,r){const s=t[At];if(256==(256&s))return;t[Mn].inlineEffectRunner?.flush(),bs(t);let f=null,m=null;(function hx(e){return 2!==e.type})(e)&&(m=function IC(e){return e[go]??function OC(e){const t=fb.pop()??Object.create(kC);return t.lView=e,t}(e)}(t),f=function X(e){return e&&(e.nextProducerIndex=0),v(e)}(m));try{Al(t),function tm(e){return Ut.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Tb(e,t,n,2,r);const g=3==(3&s);if(g){const oe=e.preOrderCheckHooks;null!==oe&&fc(t,oe,null)}else{const oe=e.preOrderHooks;null!==oe&&ma(t,oe,0,null),Cu(t,0)}if(function fx(e){for(let t=ap(e);null!==t;t=cp(t)){if(!(t[At]&sr.HasTransplantedViews))continue;const n=t[Fr];for(let r=0;r<n.length;r++){Il(n[r])}}}(t),Lb(t,0),null!==e.contentQueries&&kb(e,t),g){const oe=e.contentCheckHooks;null!==oe&&fc(t,oe)}else{const oe=e.contentHooks;null!==oe&&ma(t,oe,1),Cu(t,1)}!function VC(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const s=n[r];if(s<0)Br(~s);else{const d=s,f=n[++r],m=n[++r];im(f,d),m(2,t[d])}}}finally{Br(-1)}}(e,t);const A=e.components;null!==A&&Vb(t,A,0);const U=e.viewQuery;if(null!==U&&og(2,U,r),g){const oe=e.viewCheckHooks;null!==oe&&fc(t,oe)}else{const oe=e.viewHooks;null!==oe&&ma(t,oe,2),Cu(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[kr]){for(const oe of t[kr])oe();t[kr]=null}t[At]&=-73}catch(g){throw sc(t),g}finally{null!==m&&(function ce(e,t){if(v(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Pe(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Ae(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(m,f),function PC(e){e.lView[go]!==e&&(e.lView=null,fb.push(e))}(m)),vs()}}function Lb(e,t){for(let n=ap(e);null!==n;n=cp(n)){n[At]&=~sr.HasChildViewsToRefresh;for(let r=Nn;r<n.length;r++)Bb(n[r],t)}}function mx(e,t,n){Bb(Vi(t,e),n)}function Bb(e,t){bo(e)&&ag(e,t)}function ag(e,t){const r=e[at],s=e[At],d=e[go];let f=!!(0===t&&16&s);if(f||=!!(64&s&&0===t),f||=!!(1024&s),f||=!(!d?.dirty||!Ne(d)),d&&(d.dirty=!1),e[At]&=-9217,f)ux(r,e,r.template,e[ot]);else if(8192&s){Lb(e,1);const m=r.components;null!==m&&Vb(e,m,1)}}function Vb(e,t,n){for(let r=0;r<t.length;r++)mx(e,t[r],n)}function zd(e){for(e[Mn].changeDetectionScheduler?.notify();e;){e[At]|=64;const t=Ra(e);if(nc(e)&&!t)return e;e=t}return null}class Gd{get rootNodes(){const t=this._lView,n=t[at];return Hd(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ot]}set context(t){this._lView[ot]=t}get destroyed(){return 256==(256&this._lView[At])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[k];if(Jn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Ro(t,r),Ms(n,r))}this._attachedToViewContainer=!1}Vc(this._lView[at],this._lView)}onDestroy(t){!function gs(e,t){if(256==(256&e[At]))throw new rt(911,!1);null===e[mi]&&(e[mi]=[]),e[mi].push(t)}(this._lView,t)}markForCheck(){zd(this._cdRefInjectingView||this._lView)}detach(){this._lView[At]&=-129}reattach(){rc(this._lView),this._lView[At]|=128}detectChanges(){this._lView[At]|=1024,function sg(e,t=!0){const n=e[Mn],r=n.rendererFactory,s=n.afterRenderEventManager;r.begin?.(),s?.begin();try{!function dx(e){ag(e,0);let t=0;for(;oc(e);){if(100===t)throw new rt(103,!1);t++,ag(e,1)}}(e)}catch(f){throw t&&Xh(e,f),f}finally{r.end?.(),n.inlineEffectRunner?.flush(),s?.end()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new rt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ch(e,t){$a(e,t,t[Lt],2,null,null)}(this._lView[at],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new rt(902,!1);this._appRef=t,rc(this._lView)}}let $b=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=px}return e})();function px(e){return function gx(e,t,n){if(ar(e)&&!n){const r=Vi(e.index,t);return new Gd(r,r)}return 47&e.type?new Gd(t[Pn],t):null}(Cn(),Ze(),16==(16&e))}const jb=new Set;function Ua(e){jb.has(e)||(jb.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function lg(e){return t=>{setTimeout(e,void 0,t)}}const Cr=class Ex extends et.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let s=t,d=n||(()=>null),f=r;if(t&&"object"==typeof t){const g=t;s=g.next?.bind(g),d=g.error?.bind(g),f=g.complete?.bind(g)}this.__isAsync&&(d=lg(d),s&&(s=lg(s)),f&&(f=lg(f)));const m=super.subscribe({next:s,error:d,complete:f});return t instanceof Me.w0&&t.add(m),m}};function Hb(...e){}class li{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Cr(!1),this.onMicrotaskEmpty=new Cr(!1),this.onStable=new Cr(!1),this.onError=new Cr(!1),typeof Zone>"u")throw new rt(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function Mx(){const e="function"==typeof Vt.requestAnimationFrame;let t=Vt[e?"requestAnimationFrame":"setTimeout"],n=Vt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const s=n[Zone.__symbol__("OriginalDelegate")];s&&(n=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Ix(e){const t=()=>{!function Ax(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ug(e),e.isCheckStableRunning=!0,dg(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ug(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,d,f,m)=>{if(function Px(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(m))return n.invokeTask(s,d,f,m);try{return Ub(e),n.invokeTask(s,d,f,m)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),zb(e)}},onInvoke:(n,r,s,d,f,m,g)=>{try{return Ub(e),n.invoke(s,d,f,m,g)}finally{e.shouldCoalesceRunChangeDetection&&t(),zb(e)}},onHasTask:(n,r,s,d)=>{n.hasTask(s,d),r===s&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,ug(e),dg(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(n,r,s,d)=>(n.handleError(s,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!li.isInAngularZone())throw new rt(909,!1)}static assertNotInAngularZone(){if(li.isInAngularZone())throw new rt(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const d=this._inner,f=d.scheduleEventTask("NgZoneEvent: "+s,t,Sx,Hb,Hb);try{return d.runTask(f,n,r)}finally{d.cancelTask(f)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Sx={};function dg(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ug(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ub(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zb(e){e._nesting--,dg(e)}class Ox{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cr,this.onMicrotaskEmpty=new Cr,this.onStable=new Cr,this.onError=new Cr}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}let ef=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth){for(const n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:()=>new e})}return e})();function Nx(e,t){const n=Vi(t,e),r=n[at];!function Lx(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const s=n[En];null!==s&&null===n[te]&&(n[te]=Yc(s,n[Rt])),hg(r,n,n[ot])}function hg(e,t,n){bs(t);try{const r=e.viewQuery;null!==r&&og(1,r,n);const s=e.template;null!==s&&Tb(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&kb(e,t),e.staticViewQueries&&og(2,e.viewQuery,n);const d=e.components;null!==d&&function Bx(e,t){for(let n=0;n<t.length;n++)Nx(e,t[n])}(t,d)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[At]&=-5,vs()}}function tf(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,d=0;if(null!==t)for(let f=0;f<t.length;f++){const m=t[f];"number"==typeof m?d=m:1==d?s=it(s,m):2==d&&(r=it(r,m+": "+t[++f]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}class Zb extends $d{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Yt(t);return new Wd(n,this.ngModule)}}function qb(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class $x{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=tr(r);const s=this.injector.get(t,Gp,r);return s!==Gp||n===Gp?s:this.parentInjector.get(t,n,r)}}class Wd extends yr{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=qb(t.inputs);if(null!==n)for(const s of r)n.hasOwnProperty(s.propName)&&(s.transform=n[s.propName]);return r}get outputs(){return qb(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Uo(e){return e.map(Xa).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,s){let d=(s=s||this.ngModule)instanceof bi?s:s?.injector;d&&null!==this.componentDef.getStandaloneInjector&&(d=this.componentDef.getStandaloneInjector(d)||d);const f=d?new $x(t,d):t,m=f.get(rb,null);if(null===m)throw new rt(407,!1);const oe={rendererFactory:m,sanitizer:f.get(bC,null),inlineEffectRunner:null,afterRenderEventManager:f.get(ef,null),changeDetectionScheduler:f.get(fe,null)},be=m.createRenderer(null,this.componentDef),xe=this.componentDef.selectors[0][0]||"div",Ue=r?function jC(e,t,n,r){const d=r.get(_b,!1)||n===Si.ShadowDom,f=e.selectRootElement(t,d);return function HC(e){Eb(e)}(f),f}(be,r,this.componentDef.encapsulation,f):Fa(be,xe,function Vx(e){const t=e.toLowerCase();return"svg"===t?Xi:"math"===t?"math":null}(xe));let nt=512;this.componentDef.signals?nt|=4096:this.componentDef.onPush||(nt|=16);let ht=null;null!==Ue&&(ht=Yc(Ue,f,!0));const Tt=eg(0,null,null,1,0,null,null,null,null,null,null),Xe=Jh(null,Tt,null,nt,null,null,oe,be,f,null,ht);let Kt,sn;bs(Xe);try{const fn=this.componentDef;let Oi,Uf=null;fn.findHostDirectiveDefs?(Oi=[],Uf=new Map,fn.findHostDirectiveDefs(fn,Oi,Uf),Oi.push(fn)):Oi=[fn];const BA=function Hx(e,t){const n=e[at],r=Bt;return e[r]=t,Qc(n,r,2,"#host",null)}(Xe,Ue),VA=function Ux(e,t,n,r,s,d,f){const m=s[at];!function zx(e,t,n,r){for(const s of e)t.mergedAttrs=On(t.mergedAttrs,s.hostAttrs);null!==t.mergedAttrs&&(tf(t,t.mergedAttrs,!0),null!==n&&kh(r,n,t))}(r,e,t,f);let g=null;null!==t&&(g=Yc(t,s[Rt]));const A=d.rendererFactory.createRenderer(t,n);let U=16;n.signals?U=4096:n.onPush&&(U=64);const oe=Jh(s,Db(n),null,U,s[e.index],e,d,A,null,null,g);return m.firstCreatePass&&ng(m,e,r.length-1),Qh(s,oe),s[e.index]=oe}(BA,Ue,fn,Oi,Xe,oe,be);sn=Ao(Tt,Bt),Ue&&function Wx(e,t,n,r){if(r)ho(e,n,["ng-version","17.0.8"]);else{const{attrs:s,classes:d}=function Ar(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let d=e[r];if("string"==typeof d)2===s?""!==d&&t.push(d,e[++r]):8===s&&n.push(d);else{if(!Fn(s))break;s=d}r++}return{attrs:t,classes:n}}(t.selectors[0]);s&&ho(e,n,s),d&&d.length>0&&Ph(e,n,d.join(" "))}}(be,fn,Ue,r),void 0!==n&&function Yx(e,t,n){const r=e.projection=[];for(let s=0;s<t.length;s++){const d=n[s];r.push(null!=d?Array.from(d):null)}}(sn,this.ngContentSelectors,n),Kt=function Gx(e,t,n,r,s,d){const f=Cn(),m=s[at],g=Ti(f,s);Ab(m,s,f,n,null,r);for(let U=0;U<n.length;U++)wi($r(s,m,f.directiveStart+U,f),s);Ib(m,s,f),g&&wi(g,s);const A=$r(s,m,f.directiveStart+f.componentOffset,f);if(e[ot]=s[ot]=A,null!==d)for(const U of d)U(A,t);return Jp(m,f,e),A}(VA,fn,Oi,Uf,Xe,[Kx]),hg(Tt,Xe,null)}finally{vs()}return new jx(this.componentType,Kt,qc(sn,Xe),Xe,sn)}}class jx extends Ci{constructor(t,n,r,s,d){super(),this.location=r,this._rootLView=s,this._tNode=d,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Gd(s,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let s;if(null!==r&&(s=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const d=this._rootLView;rg(d[at],d,s,t,n),this.previousInputValues.set(t,n),zd(Vi(this._tNode.index,d))}}get injector(){return new Qn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Kx(){const e=Cn();Oo(Ze()[at],e)}function fg(e){let t=function Jb(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(Qi(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new rt(903,!1);s=t.\u0275dir}if(s){if(n){r.push(s);const f=e;f.inputs=nf(e.inputs),f.inputTransforms=nf(e.inputTransforms),f.declaredInputs=nf(e.declaredInputs),f.outputs=nf(e.outputs);const m=s.hostBindings;m&&Qx(e,m);const g=s.viewQuery,A=s.contentQueries;if(g&&qx(e,g),A&&Jx(e,A),Ee(e.inputs,s.inputs),Ee(e.declaredInputs,s.declaredInputs),Ee(e.outputs,s.outputs),null!==s.inputTransforms&&(null===f.inputTransforms&&(f.inputTransforms={}),Ee(f.inputTransforms,s.inputTransforms)),Qi(s)&&s.data.animation){const U=e.data;U.animation=(U.animation||[]).concat(s.data.animation)}}const d=s.features;if(d)for(let f=0;f<d.length;f++){const m=d[f];m&&m.ngInherit&&m(e),m===fg&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Zx(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=On(s.hostAttrs,n=On(n,s.hostAttrs))}}(r)}function nf(e){return e===Fi?{}:e===rn?[]:e}function qx(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function Jx(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,d)=>{t(r,s,d),n(r,s,d)}:t}function Qx(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}function tv(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];Array.isArray(s)&&s[2]&&(n[r]=s[2])}e.inputTransforms=n}function xr(e,t,n){return e[t]=n}function Yd(e,t){return e[t]}function di(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ga(e,t,n,r){const s=di(e,t,n);return di(e,t+1,r)||s}function mg(e,t,n,r){const s=Ze();return di(s,$i(),t)&&(cn(),wr(xn(),s,e,t,n,r)),mg}function sf(e,t){return e<<17|t<<2}function js(e){return e>>17&32767}function pg(e){return 2|e}function Wa(e){return(131068&e)>>2}function gg(e,t){return-131069&e|t<<2}function _g(e){return 1|e}function uv(e,t,n,r,s){const d=e[n+1],f=null===t;let m=r?js(d):Wa(d),g=!1;for(;0!==m&&(!1===g||f);){const U=e[m+1];lT(e[m],t)&&(g=!0,e[m+1]=r?_g(U):pg(U)),m=r?js(U):Wa(U)}g&&(e[n+1]=r?pg(d):_g(d))}function lT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Yo(e,t)>=0}const pi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hv(e){return e.substring(pi.key,pi.keyEnd)}function fv(e,t){const n=pi.textEnd;return n===t?-1:(t=pi.keyEnd=function fT(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,pi.key=t,n),cl(e,t,n))}function cl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function bg(e,t,n){const r=Ze();return di(r,$i(),t)&&yo(cn(),xn(),r,e,t,r[Lt],n,!1),bg}function vg(e,t,n,r,s){const f=s?"class":"style";rg(e,n,t.inputs[f],f,r)}function yg(e,t,n){return Qo(e,t,n,!1),yg}function wg(e,t){return Qo(e,t,null,!0),wg}function bv(e){!function Xo(e,t,n,r){const s=cn(),d=to(2);s.firstUpdatePass&&yv(s,null,d,r);const f=Ze();if(n!==Jt&&di(f,d,n)){const m=s.data[ri()];if(Tv(m,r)&&!vv(s,d)){let g=r?m.classesWithoutHost:m.stylesWithoutHost;null!==g&&(n=it(g,n||"")),vg(s,m,f,n,r)}else!function xT(e,t,n,r,s,d,f,m){s===Jt&&(s=rn);let g=0,A=0,U=0<s.length?s[0]:null,oe=0<d.length?d[0]:null;for(;null!==U||null!==oe;){const be=g<s.length?s[g+1]:void 0,xe=A<d.length?d[A+1]:void 0;let nt,Ue=null;U===oe?(g+=2,A+=2,be!==xe&&(Ue=oe,nt=xe)):null===oe||null!==U&&U<oe?(g+=2,Ue=U):(A+=2,Ue=oe,nt=xe),null!==Ue&&Cv(e,t,n,r,Ue,nt,f,m),U=g<s.length?s[g]:null,oe=A<d.length?d[A]:null}}(s,m,f,f[Lt],f[d+1],f[d+1]=function wT(e,t,n){if(null==n||""===n)return rn;const r=[],s=qo(n);if(Array.isArray(s))for(let d=0;d<s.length;d++)e(r,s[d],!0);else if("object"==typeof s)for(const d in s)s.hasOwnProperty(d)&&e(r,d,s[d]);else"string"==typeof s&&t(r,s);return r}(e,t,n),r,d)}}(CT,Dr,e,!0)}function Dr(e,t){for(let n=function uT(e){return function pv(e){pi.key=0,pi.keyEnd=0,pi.value=0,pi.valueEnd=0,pi.textEnd=e.length}(e),fv(e,cl(e,0,pi.textEnd))}(t);n>=0;n=fv(t,n))ji(e,hv(t),!0)}function Qo(e,t,n,r){const s=Ze(),d=cn(),f=to(2);d.firstUpdatePass&&yv(d,e,f,r),t!==Jt&&di(s,f,t)&&Cv(d,d.data[ri()],s,s[Lt],e,s[f+1]=function TT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=$e(qo(e)))),e}(t,n),r,f)}function vv(e,t){return t>=e.expandoStartIndex}function yv(e,t,n,r){const s=e.data;if(null===s[n+1]){const d=s[ri()],f=vv(e,n);Tv(d,r)&&null===t&&!f&&(t=!1),t=function _T(e,t,n,r){const s=Bl(e);let d=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=Kd(n=Cg(null,e,t,n,r),t.attrs,r),d=null);else{const f=t.directiveStylingLast;if(-1===f||e[f]!==s)if(n=Cg(s,e,t,n,r),null===d){let g=function bT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Wa(r))return e[js(r)]}(e,t,r);void 0!==g&&Array.isArray(g)&&(g=Cg(null,e,t,g[1],r),g=Kd(g,t.attrs,r),function vT(e,t,n,r){e[js(n?t.classBindings:t.styleBindings)]=r}(e,t,r,g))}else d=function yT(e,t,n){let r;const s=t.directiveEnd;for(let d=1+t.directiveStylingLast;d<s;d++)r=Kd(r,e[d].hostAttrs,n);return Kd(r,t.attrs,n)}(e,t,r)}return void 0!==d&&(r?t.residualClasses=d:t.residualStyles=d),n}(s,d,t,r),function aT(e,t,n,r,s,d){let f=d?t.classBindings:t.styleBindings,m=js(f),g=Wa(f);e[r]=n;let U,A=!1;if(Array.isArray(n)?(U=n[1],(null===U||Yo(n,U)>0)&&(A=!0)):U=n,s)if(0!==g){const be=js(e[m+1]);e[r+1]=sf(be,m),0!==be&&(e[be+1]=gg(e[be+1],r)),e[m+1]=function rT(e,t){return 131071&e|t<<17}(e[m+1],r)}else e[r+1]=sf(m,0),0!==m&&(e[m+1]=gg(e[m+1],r)),m=r;else e[r+1]=sf(g,0),0===m?m=r:e[g+1]=gg(e[g+1],r),g=r;A&&(e[r+1]=pg(e[r+1])),uv(e,U,r,!0),uv(e,U,r,!1),function cT(e,t,n,r,s){const d=s?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Yo(d,t)>=0&&(n[r+1]=_g(n[r+1]))}(t,U,e,r,d),f=sf(m,g),d?t.classBindings=f:t.styleBindings=f}(s,d,t,n,f,r)}}function Cg(e,t,n,r,s){let d=null;const f=n.directiveEnd;let m=n.directiveStylingLast;for(-1===m?m=n.directiveStart:m++;m<f&&(d=t[m],r=Kd(r,d.hostAttrs,s),d!==e);)m++;return null!==e&&(n.directiveStylingLast=m),r}function Kd(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let d=0;d<t.length;d++){const f=t[d];"number"==typeof f?s=f:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ji(e,f,!!n||t[++d]))}return void 0===e?null:e}function CT(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&ji(e,r,n)}function Cv(e,t,n,r,s,d,f,m){if(!(3&t.type))return;const g=e.data,A=g[m+1],U=function sT(e){return 1==(1&e)}(A)?xv(g,t,n,s,Wa(A),f):void 0;af(U)||(af(d)||function oT(e){return 2==(2&e)}(A)&&(d=xv(g,null,n,s,m,f)),function bp(e,t,n,r,s){if(t)s?e.addClass(n,r):e.removeClass(n,r);else{let d=-1===r.indexOf("-")?void 0:xd.DashCase;null==s?e.removeStyle(n,r,d):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),d|=xd.Important),e.setStyle(n,r,s,d))}}(r,f,So(ri(),n),s,d))}function xv(e,t,n,r,s,d){const f=null===t;let m;for(;s>0;){const g=e[s],A=Array.isArray(g),U=A?g[1]:g,oe=null===U;let be=n[s+1];be===Jt&&(be=oe?rn:void 0);let xe=oe?_a(be,r):U===r?be:void 0;if(A&&!af(xe)&&(xe=_a(g,r)),af(xe)&&(m=xe,f))return m;const Ue=e[s+1];s=f?js(Ue):Wa(Ue)}if(null!==t){let g=d?t.residualClasses:t.residualStyles;null!=g&&(m=_a(g,r))}return m}function af(e){return void 0!==e}function Tv(e,t){return 0!=(e.flags&(t?8:16))}let Iv=(e,t)=>null;function ll(e,t){return Iv(e,t)}class nD{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),s=Math.max(t,n),d=this.detach(s);if(s-r>1){const f=this.detach(r);this.attach(r,d),this.attach(s,f)}else this.attach(r,d)}move(t,n){this.attach(n,this.detach(t))}}function Sg(e,t,n,r,s){return e===n&&Object.is(t,r)?1:Object.is(s(e,t),s(n,r))?-1:0}function Ag(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function Ov(e,t,n,r,s){if(Ag(e,t,r,n(r,s)))e.updateValue(r,s);else{const d=e.create(r,s);e.attach(r,d)}}function Pv(e,t,n,r){const s=new Set;for(let d=t;d<=n;d++)s.add(r(d,e.at(d)));return s}class kv{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const s=this._vMap;for(;s.has(r);)r=s.get(r);s.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const s=this._vMap;for(;s.has(r);)r=s.get(r),t(r,n)}}}function Xd(e,t,n,r){const s=t.tView,m=Jh(e,s,n,4096&e[At]?4096:16,null,t,null,null,null,r?.injector??null,r?.dehydratedView??null);m[or]=e[t.index];const A=e[po];return null!==A&&(m[po]=A.createEmbeddedView(s)),hg(s,m,n),m}function Rv(e,t){const n=Nn+t;if(n<e.length)return e[n]}function dl(e,t){return!t||null===t.firstChild||wd(e)}function eu(e,t,n,r=!0){const s=t[at];if(function hp(e,t,n,r){const s=Nn+r,d=n.length;r>0&&(n[s-1][L]=t),r<d-Nn?(t[L]=n[s],Tm(n,Nn+r,t)):(n.push(t),t[L]=null),t[k]=n;const f=t[or];null!==f&&n!==f&&function fp(e,t){const n=e[Fr];t[Pn]!==t[k][k][Pn]&&(e[At]|=sr.HasTransplantedViews),null===n?e[Fr]=[t]:n.push(t)}(f,t);const m=t[po];null!==m&&m.insertView(e),rc(t),t[At]|=128}(s,t,e,n),r){const f=Pd(n,e),m=t[Lt],g=Na(m,e[Bi]);null!==g&&function dp(e,t,n,r,s,d){r[En]=s,r[T]=t,$a(e,r,n,1,s,d)}(s,e[T],m,t,g,f)}const d=t[te];null!==d&&null!==d.firstChild&&(d.firstChild=null)}function Ig(e,t){const n=Ro(e,t);return void 0!==n&&Vc(n[at],n),n}let hf=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=oD}return e})();function oD(){return Lv(Cn(),Ze())}const rD=hf,Fv=class extends rD{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return qc(this._hostTNode,this._hostLView)}get injector(){return new Qn(this._hostTNode,this._hostLView)}get parentInjector(){const t=_c(this._hostTNode,this._hostLView);if(Ul(t)){const n=pc(t,this._hostLView),r=Vr(t);return new Qn(n[at].data[r+8],n)}return new Qn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Nv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Nn}createEmbeddedView(t,n,r){let s,d;"number"==typeof r?s=r:null!=r&&(s=r.index,d=r.injector);const f=ll(this._lContainer,t.ssrId),m=t.createEmbeddedViewImpl(n||{},d,f);return this.insertImpl(m,s,dl(this._hostTNode,f)),m}createComponent(t,n,r,s,d){const f=t&&!function vc(e){return"function"==typeof e}(t);let m;if(f)m=n;else{const Ue=n||{};m=Ue.index,r=Ue.injector,s=Ue.projectableNodes,d=Ue.environmentInjector||Ue.ngModuleRef}const g=f?t:new Wd(Yt(t)),A=r||this.parentInjector;if(!d&&null==g.ngModule){const nt=(f?A:this.parentInjector).get(bi,null);nt&&(d=nt)}const U=Yt(g.componentType??{}),oe=ll(this._lContainer,U?.id??null),xe=g.create(A,s,oe?.firstChild??null,d);return this.insertImpl(xe.hostView,m,dl(this._hostTNode,oe)),xe}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const s=t._lView;if(function Sl(e){return Jn(e[k])}(s)){const m=this.indexOf(t);if(-1!==m)this.detach(m);else{const g=s[k],A=new Fv(g,g[T],g[k]);A.detach(A.indexOf(t))}}const d=this._adjustIndex(n),f=this._lContainer;return eu(f,s,d,r),t.attachToViewContainerRef(),Tm(Og(f),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Nv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ro(this._lContainer,n);r&&(Ms(Og(this._lContainer),n),Vc(r[at],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ro(this._lContainer,n);return r&&null!=Ms(Og(this._lContainer),n)?new Gd(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Nv(e){return e[8]}function Og(e){return e[8]||(e[8]=[])}function Lv(e,t){let n;const r=t[e.index];return Jn(r)?n=r:(n=Pb(r,t,null,e),t[e.index]=n,Qh(t,n)),Bv(n,t,e,r),new Fv(n,e,t)}let Bv=function $v(e,t,n,r){if(e[Bi])return;let s;s=8&n.type?Sn(r):function sD(e,t){const n=e[Lt],r=n.createComment(""),s=Ti(t,e);return Zr(n,Na(n,s),r,function pp(e,t){return e.nextSibling(t)}(n,s),!1),r}(t,n),e[Bi]=s},Pg=(e,t,n)=>!1;function ul(e,t,n,r,s,d,f,m){const g=Ze(),A=cn(),U=e+Bt,oe=A.firstCreatePass?function dD(e,t,n,r,s,d,f,m,g){const A=t.consts,U=Qc(t,e,4,f||null,eo(A,m));tg(t,n,U,eo(A,g)),Oo(t,U);const oe=U.tView=eg(2,U,r,s,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,A,null);return null!==t.queries&&(t.queries.template(t,U),oe.queries=t.queries.embeddedTView(U)),U}(U,A,g,t,n,r,s,d,f):A.data[U];Wo(oe,!1);const be=jv(A,g,oe,e);hc()&&jc(A,g,be,oe),wi(be,g);const xe=Pb(be,g,be,oe);return g[U]=xe,Qh(g,xe),function Vv(e,t,n){return Pg(e,t,n)}(xe,oe,g),oa(oe)&&Qp(A,g,oe),null!=f&&Xp(g,oe,m),ul}let jv=function Hv(e,t,n,r){return dr(!0),t[Lt].createComment("")};function Uv(e,t,n){Ua("NgControlFlow");const r=Ze(),s=$i(),d=kg(r,Bt+e);if(di(r,s,t)){const m=v(null);try{if(Ig(d,0),-1!==t){const g=Rg(r[at],Bt+t),A=ll(d,g.tView.ssrId);eu(d,Xd(r,g,n,{dehydratedView:A}),0,dl(g,A))}}finally{v(m)}}else{const m=Rv(d,0);void 0!==m&&(m[ot]=n)}}class fD{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Nn}}function zv(e,t){return t}class pD{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function Gv(e,t,n,r,s,d,f,m,g,A,U){Ua("NgControlFlow");const oe=void 0!==g,be=Ze(),xe=m?f.bind(be[Pn][ot]):f,Ue=new pD(oe,xe);be[Bt+e]=Ue,ul(e+1,t,n,r,s,d),oe&&ul(e+2,g,A,U)}class gD extends nD{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Nn}at(t){return this.getLView(t)[ot].$implicit}attach(t,n){const r=n[te];this.needsIndexUpdate||=t!==this.length,eu(this.lContainer,n,t,dl(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function _D(e,t){return Ro(e,t)}(this.lContainer,t)}create(t,n){const r=ll(this.lContainer,this.templateTNode.tView.ssrId);return Xd(this.hostLView,this.templateTNode,new fD(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Vc(t[at],t)}updateValue(t,n){this.getLView(t)[ot].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ot].$index=t}getLView(t){return function bD(e,t){return Rv(e,t)}(this.lContainer,t)}}function Wv(e){const t=v(null),n=ri();try{const r=Ze(),s=r[at],d=r[n];if(void 0===d.liveCollection){const m=n+1,g=kg(r,m),A=Rg(s,m);d.liveCollection=new gD(g,r,A)}else d.liveCollection.reset();const f=d.liveCollection;if(function iD(e,t,n){let r,s,d=0,f=e.length-1;if(Array.isArray(t)){let m=t.length-1;for(;d<=f&&d<=m;){const g=e.at(d),A=t[d],U=Sg(d,g,d,A,n);if(0!==U){U<0&&e.updateValue(d,A),d++;continue}const oe=e.at(f),be=t[m],xe=Sg(f,oe,m,be,n);if(0!==xe){xe<0&&e.updateValue(f,be),f--,m--;continue}const Ue=n(d,g),nt=n(f,oe),ht=n(d,A);if(Object.is(ht,nt)){const Tt=n(m,be);Object.is(Tt,Ue)?(e.swap(d,f),e.updateValue(f,be),m--,f--):e.move(f,d),e.updateValue(d,A),d++}else if(r??=new kv,s??=Pv(e,d,f,n),Ag(e,r,d,ht))e.updateValue(d,A),d++,f++;else if(s.has(ht))r.set(Ue,e.detach(d)),f--;else{const Tt=e.create(d,t[d]);e.attach(d,Tt),d++,f++}}for(;d<=m;)Ov(e,r,n,d,t[d]),d++}else if(null!=t){const m=t[Symbol.iterator]();let g=m.next();for(;!g.done&&d<=f;){const A=e.at(d),U=g.value,oe=Sg(d,A,d,U,n);if(0!==oe)oe<0&&e.updateValue(d,U),d++,g=m.next();else{r??=new kv,s??=Pv(e,d,f,n);const be=n(d,U);if(Ag(e,r,d,be))e.updateValue(d,U),d++,f++,g=m.next();else if(s.has(be)){const xe=n(d,A);r.set(xe,e.detach(d)),f--}else e.attach(d,e.create(d,U)),d++,f++,g=m.next()}}for(;!g.done;)Ov(e,r,n,e.length,g.value),g=m.next()}for(;d<=f;)e.destroy(e.detach(f--));r?.forEach(m=>{e.destroy(m)})}(f,e,d.trackByFn),f.updateIndexes(),d.hasEmptyBlock){const m=$i(),g=0===f.length;if(di(r,m,g)){const A=n+2,U=kg(r,A);if(g){const oe=Rg(s,A),be=ll(U,oe.tView.ssrId);eu(U,Xd(r,oe,void 0,{dehydratedView:be}),0,dl(oe,be))}else Ig(U,0)}}}finally{v(t)}}function kg(e,t){return e[t]}function Rg(e,t){return Ao(e,t)}function bf(e,t,n,r){const s=Ze(),d=cn(),f=Bt+e,m=s[Lt],g=d.firstCreatePass?function ZD(e,t,n,r,s,d){const f=t.consts,g=Qc(t,e,2,r,eo(f,s));return tg(t,n,g,eo(f,d)),null!==g.attrs&&tf(g,g.attrs,!1),null!==g.mergedAttrs&&tf(g,g.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,g),g}(f,d,s,t,n,r):d.data[f],A=py(d,s,g,m,t,e);s[f]=A;const U=oa(g);return Wo(g,!0),kh(m,A,g),32!=(32&g.flags)&&hc()&&jc(d,s,A,g),0===function qf(){return Ut.lFrame.elementDepthCount}()&&wi(A,s),function ca(){Ut.lFrame.elementDepthCount++}(),U&&(Qp(d,s,g),Jp(d,g,s)),null!==r&&Xp(s,g),bf}function vf(){let e=Cn();la()?Fl():(e=e.parent,Wo(e,!1));const t=e;(function kl(e){return Ut.skipHydrationRootTNode===e})(t)&&function Jf(){Ut.skipHydrationRootTNode=null}(),function ac(){Ut.lFrame.elementDepthCount--}();const n=cn();return n.firstCreatePass&&(Oo(n,e),ia(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function lm(e){return 0!=(8&e.flags)}(t)&&vg(n,t,Ze(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function dm(e){return 0!=(16&e.flags)}(t)&&vg(n,t,Ze(),t.stylesWithoutHost,!1),vf}function Ug(e,t,n,r){return bf(e,t,n,r),vf(),Ug}let py=(e,t,n,r,s,d)=>(dr(!0),Fa(r,s,function sm(){return Ut.lFrame.currentNamespace}()));function yf(e,t,n){const r=Ze(),s=cn(),d=e+Bt,f=s.firstCreatePass?function QD(e,t,n,r,s){const d=t.consts,f=eo(d,r),m=Qc(t,e,8,"ng-container",f);return null!==f&&tf(m,f,!0),tg(t,n,m,eo(d,s)),null!==t.queries&&t.queries.elementStart(t,m),m}(d,s,r,t,n):s.data[d];Wo(f,!0);const m=gy(s,r,f,e);return r[d]=m,hc()&&jc(s,r,m,f),wi(m,r),oa(f)&&(Qp(s,r,f),Jp(s,f,r)),null!=n&&Xp(r,f),yf}function wf(){let e=Cn();const t=cn();return la()?Fl():(e=e.parent,Wo(e,!1)),t.firstCreatePass&&(Oo(t,e),ia(e)&&t.queries.elementEnd(e)),wf}function zg(e,t,n){return yf(e,t,n),wf(),zg}let gy=(e,t,n,r)=>(dr(!0),Lc(t[Lt],""));function _y(){return Ze()}function Gg(e,t,n){const r=Ze();return di(r,$i(),t)&&yo(cn(),xn(),r,e,t,r[Lt],n,!0),Gg}function Wg(e,t,n){const r=Ze();if(di(r,$i(),t)){const d=cn(),f=xn();yo(d,f,r,e,t,Nb(Bl(d.data),f,r),n,!0)}return Wg}const Ka=void 0;var nE=["en",[["a","p"],["AM","PM"],Ka],[["AM","PM"],Ka,Ka],[["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"]],Ka,[["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"]],Ka,[["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}",Ka,"{1} 'at' {0}",Ka],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function tE(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let bl={};function Yg(e){const t=function iE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=vy(t);if(n)return n;const r=t.split("-")[0];if(n=vy(r),n)return n;if("en"===r)return nE;throw new rt(701,!1)}function by(e){return Yg(e)[vl.PluralCase]}function vy(e){return e in bl||(bl[e]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[e]),bl[e]}var vl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(vl||{});const yl="en-US";let yy=yl;function qg(e){return!!e&&"function"==typeof e.then}function Gy(e){return!!e&&"function"==typeof e.subscribe}function Jg(e,t,n,r){const s=Ze(),d=cn(),f=Cn();return function Yy(e,t,n,r,s,d,f){const m=oa(r),A=e.firstCreatePass&&Fb(e),U=t[ot],oe=Rb(t);let be=!0;if(3&r.type||f){const nt=Ti(r,t),ht=f?f(nt):nt,Tt=oe.length,Xe=f?sn=>f(Sn(sn[r.index])):r.index;let Kt=null;if(!f&&m&&(Kt=function JE(e,t,n,r){const s=e.cleanup;if(null!=s)for(let d=0;d<s.length-1;d+=2){const f=s[d];if(f===n&&s[d+1]===r){const m=t[ye],g=s[d+2];return m.length>g?m[g]:null}"string"==typeof f&&(d+=2)}return null}(e,t,s,r.index)),null!==Kt)(Kt.__ngLastListenerFn__||Kt).__ngNextListenerFn__=d,Kt.__ngLastListenerFn__=d,be=!1;else{d=Zy(r,t,U,d,!1);const sn=n.listen(ht,s,d);oe.push(d,sn),A&&A.push(s,Xe,Tt,Tt+1)}}else d=Zy(r,t,U,d,!1);const xe=r.outputs;let Ue;if(be&&null!==xe&&(Ue=xe[s])){const nt=Ue.length;if(nt)for(let ht=0;ht<nt;ht+=2){const fn=t[Ue[ht]][Ue[ht+1]].subscribe(d),Oi=oe.length;oe.push(d,fn),A&&A.push(s,r.index,Oi,-(Oi+1))}}}(d,s,s[Lt],f,e,t,r),Jg}function Ky(e,t,n,r){try{return ii(6,t,n),!1!==n(r)}catch(s){return Xh(e,s),!1}finally{ii(7,t,n)}}function Zy(e,t,n,r,s){return function d(f){if(f===Function)return r;zd(e.componentOffset>-1?Vi(e.index,t):t);let g=Ky(t,n,r,f),A=d.__ngNextListenerFn__;for(;A;)g=Ky(t,n,A,f)&&g,A=A.__ngNextListenerFn__;return s&&!1===g&&f.preventDefault(),g}}function qy(e=1){return function N_(e){return(Ut.lFrame.contextLView=function Ol(e,t){for(;e>0;)t=t[Or],e--;return t}(e,Ut.lFrame.contextLView))[ot]}(e)}function QE(e,t){let n=null;const r=function Qs(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let s=0;s<t.length;s++){const d=t[s];if("*"!==d){if(null===r?ir(e,d,!0):Qa(r,d))return s}else n=s}return n}function Jy(e){const t=Ze()[Pn][T];if(!t.projection){const r=t.projection=zr(e?e.length:1,null),s=r.slice();let d=t.child;for(;null!==d;){const f=e?QE(d,e):0;null!==f&&(s[f]?s[f].projectionNext=d:r[f]=d,s[f]=d),d=d.next}}}function Qy(e,t=0,n){const r=Ze(),s=cn(),d=Qc(s,Bt+e,16,null,n||null);null===d.projection&&(d.projection=t),Fl(),(!r[te]||cr())&&32!=(32&d.flags)&&function gp(e,t,n){Oh(t[Lt],0,t,n,Id(e,n,t),La(n.parent||t[T],n,t))}(s,r,d)}function l0(e){return Go(function dc(){return Ut.lFrame.contextLView}(),Bt+e)}function v0(e,t=""){const n=Ze(),r=cn(),s=e+Bt,d=r.firstCreatePass?Qc(r,s,1,t,null):r.data[s],f=y0(r,n,d,t,e);n[s]=f,hc()&&jc(r,n,f,d),Wo(d,!1)}let y0=(e,t,n,r,s)=>(dr(!0),function Nc(e,t){return e.createText(t)}(t[Lt],r));function Xg(e){return Ef("",e,""),Xg}function Ef(e,t,n){const r=Ze(),s=function el(e,t,n,r){return di(e,$i(),n)?t+Et(n)+r:Jt}(r,e,t,n);return s!==Jt&&function es(e,t,n){const r=So(t,e);!function wh(e,t,n){e.setValue(t,n)}(e[Lt],r,n)}(r,ri(),s),Ef}function e_(e,t,n,r,s){if(e=lt(e),Array.isArray(e))for(let d=0;d<e.length;d++)e_(e[d],t,n,r,s);else{const d=cn(),f=Ze(),m=Cn();let g=fr(e)?e:lt(e.provide);const A=qu(e),U=1048575&m.providerIndexes,oe=m.directiveStart,be=m.providerIndexes>>20;if(fr(e)||!e.multi){const xe=new pa(A,s,Jc),Ue=n_(g,t,s?U:U+be,oe);-1===Ue?(Yl(gc(m,f),d,g),t_(d,e,t.length),t.push(g),m.directiveStart++,m.directiveEnd++,s&&(m.providerIndexes+=1048576),n.push(xe),f.push(xe)):(n[Ue]=xe,f[Ue]=xe)}else{const xe=n_(g,t,U+be,oe),Ue=n_(g,t,U,U+be),ht=Ue>=0&&n[Ue];if(s&&!ht||!s&&!(xe>=0&&n[xe])){Yl(gc(m,f),d,g);const Tt=function mM(e,t,n,r,s){const d=new pa(e,n,Jc);return d.multi=[],d.index=t,d.componentProviders=0,A0(d,s,r&&!n),d}(s?fM:hM,n.length,s,r,A);!s&&ht&&(n[Ue].providerFactory=Tt),t_(d,e,t.length,0),t.push(g),m.directiveStart++,m.directiveEnd++,s&&(m.providerIndexes+=1048576),n.push(Tt),f.push(Tt)}else t_(d,e,xe>-1?xe:Ue,A0(n[s?Ue:xe],A,!s&&r));!s&&r&&ht&&n[Ue].componentProviders++}}}function t_(e,t,n,r){const s=fr(t),d=function Om(e){return!!e.useClass}(t);if(s||d){const g=(d?lt(t.useClass):t).prototype.ngOnDestroy;if(g){const A=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const U=A.indexOf(n);-1===U?A.push(n,[r,g]):A[U+1].push(r,g)}else A.push(n,g)}}}function A0(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function n_(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function hM(e,t,n,r){return i_(this.multi,[])}function fM(e,t,n,r){const s=this.multi;let d;if(this.providerFactory){const f=this.providerFactory.componentProviders,m=$r(n,n[at],this.providerFactory.index,r);d=m.slice(0,f),i_(s,d);for(let g=f;g<m.length;g++)d.push(m[g])}else d=[],i_(s,d);return d}function i_(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function I0(e,t=[]){return n=>{n.providersResolver=(r,s)=>function uM(e,t,n){const r=cn();if(r.firstCreatePass){const s=Qi(e);e_(n,r.data,r.blueprint,s,!0),e_(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class Za{}class pM{}function gM(e,t){return new o_(e,t??null,[])}class o_ extends Za{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zb(this);const s=function zn(e,t){const n=e[Pi]||null;if(!n&&!0===t)throw new Error(`Type ${$e(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function vi(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=nh(t,n,[{provide:Za,useValue:this},{provide:$d,useValue:this.componentFactoryResolver},...r],$e(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class r_ extends pM{constructor(t){super(),this.moduleType=t}create(t){return new o_(this.moduleType,t,[])}}class O0 extends Za{constructor(t){super(),this.componentFactoryResolver=new Zb(this),this.instance=null;const n=new mr([...t.providers,{provide:Za,useValue:this},{provide:$d,useValue:this.componentFactoryResolver}],t.parent||Mc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let vM=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Wu(0,n.type),s=r.length>0?function bM(e,t,n=null){return new O0({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Qt({token:e,providedIn:"environment",factory:()=>new e(jn(bi))})}return e})();function P0(e){Ua("NgStandalone"),e.getStandaloneInjector=t=>t.get(vM).getOrCreateStandaloneInjector(e)}function $0(e,t,n){const r=oi()+e,s=Ze();return s[r]===Jt?xr(s,r,n?t.call(n):t()):Yd(s,r)}function j0(e,t,n,r){return z0(Ze(),oi(),e,t,n,r)}function H0(e,t,n,r,s){return G0(Ze(),oi(),e,t,n,r,s)}function U0(e,t,n,r,s,d,f,m,g){const A=oi()+e,U=Ze(),oe=function Fo(e,t,n,r,s,d){const f=Ga(e,t,n,r);return Ga(e,t+2,s,d)||f}(U,A,n,r,s,d);return Ga(U,A+4,f,m)||oe?xr(U,A+6,g?t.call(g,n,r,s,d,f,m):t(n,r,s,d,f,m)):Yd(U,A+6)}function lu(e,t){const n=e[t];return n===Jt?void 0:n}function z0(e,t,n,r,s,d){const f=t+n;return di(e,f,s)?xr(e,f+1,d?r.call(d,s):r(s)):lu(e,f+1)}function G0(e,t,n,r,s,d,f){const m=t+n;return Ga(e,m,s,d)?xr(e,m+2,f?r.call(f,s,d):r(s,d)):lu(e,m+2)}function Z0(e,t){const n=cn();let r;const s=e+Bt;n.firstCreatePass?(r=function NM(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks??=[]).push(s,r.onDestroy)):r=n.data[s];const d=r.factory||(r.factory=un(r.type)),m=st(Jc);try{const g=Gl(!1),A=d();return Gl(g),function XE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ze(),s,A),A}finally{st(m)}}function q0(e,t,n){const r=e+Bt,s=Ze(),d=Go(s,r);return du(s,r)?z0(s,oi(),t,d.transform,n,d):d.transform(n)}function J0(e,t,n,r){const s=e+Bt,d=Ze(),f=Go(d,s);return du(d,s)?G0(d,oi(),t,f.transform,n,r,f):f.transform(n,r)}function du(e,t){return e[at].data[t].pure}function $M(){return this._results[Symbol.iterator]()}class Af{static#e=Symbol.iterator;get changes(){return this._changes??=new Cr}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Af.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=$M)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Di(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function xm(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],d=t[r];if(n&&(s=n(s),d=n(d)),d!==s)return!1}return!0}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}let uu=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=UM}return e})();const jM=uu,HM=class extends jM{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const s=Xd(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new Gd(s)}};function UM(){return If(Cn(),Ze())}function If(e,t){return 4&e.type?new HM(t,e,qc(e,t)):null}class a_{constructor(t){this.queryList=t,this.matches=null}clone(){return new a_(this.queryList)}setDirty(){this.queryList.setDirty()}}class c_{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let d=0;d<r;d++){const f=n.getByIndex(d);s.push(this.queries[f.indexInDeclarationView].clone())}return new c_(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==sw(t,n).matches&&this.queries[n].setDirty()}}class Q0{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class l_{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const s=null!==n?n.length:0,d=this.getByIndex(r).embeddedTView(t,s);d&&(d.indexInDeclarationView=r,null!==n?n.push(d):n=[d])}return null!==n?new l_(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class d_{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new d_(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const d=r[s];this.matchTNodeWithReadOption(t,n,zM(n,d)),this.matchTNodeWithReadOption(t,n,bc(n,t,d,!1,!1))}else r===uu?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,bc(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===jd||s===hf||s===uu&&4&n.type)this.addMatch(n.index,-2);else{const d=bc(n,t,s,!1,!1);null!==d&&this.addMatch(n.index,d)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function zM(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function WM(e,t,n,r){return-1===n?function GM(e,t){return 11&e.type?qc(e,t):4&e.type?If(e,t):null}(t,e):-2===n?function YM(e,t,n){return n===jd?qc(t,e):n===uu?If(t,e):n===hf?Lv(t,e):void 0}(e,t,r):$r(e,e[at],n,t)}function X0(e,t,n,r){const s=t[po].queries[r];if(null===s.matches){const d=e.data,f=n.matches,m=[];for(let g=0;g<f.length;g+=2){const A=f[g];m.push(A<0?null:WM(t,d[A],f[g+1],n.metadata.read))}s.matches=m}return s.matches}function u_(e,t,n,r){const s=e.queries.getByIndex(n),d=s.matches;if(null!==d){const f=X0(e,t,s,n);for(let m=0;m<d.length;m+=2){const g=d[m];if(g>0)r.push(f[m/2]);else{const A=d[m+1],U=t[-g];for(let oe=Nn;oe<U.length;oe++){const be=U[oe];be[or]===be[k]&&u_(be[at],be,A,r)}if(null!==U[Fr]){const oe=U[Fr];for(let be=0;be<oe.length;be++){const xe=oe[be];u_(xe[at],xe,A,r)}}}}}return r}function ew(e){const t=Ze(),n=cn(),r=vu();Vl(r+1);const s=sw(n,r);if(e.dirty&&function Zf(e){return 4==(4&e[At])}(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const d=s.crossesNgTemplate?u_(n,t,r,[]):X0(n,t,s,r);e.reset(d,pC),e.notifyOnChanges()}return!0}return!1}function tw(e,t,n){const r=cn();r.firstCreatePass&&(rw(r,new Q0(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),ow(r,Ze(),t)}function nw(e,t,n,r){const s=cn();if(s.firstCreatePass){const d=Cn();rw(s,new Q0(t,n,r),d.index),function ZM(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}ow(s,Ze(),n)}function iw(){return function KM(e,t){return e[po].queries[t].queryList}(Ze(),vu())}function ow(e,t,n){const r=new Af(4==(4&n));(function GC(e,t,n,r){const s=Rb(t);s.push(n),e.firstCreatePass&&Fb(e).push(r,s.length-1)})(e,t,r,r.destroy),null===t[po]&&(t[po]=new c_),t[po].queries.push(new a_(r))}function rw(e,t,n){null===e.queries&&(e.queries=new l_),e.queries.track(new d_(t,n))}function sw(e,t){return e.queries.getByIndex(t)}function aw(e,t){return If(e,t)}class xw{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let Tw=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),g_=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ze.X(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Aw=new wt(""),Iw=new wt("");let b_,HS=(()=>{class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,b_||(function US(e){b_=e}(s),s.addToWindow(r)),this._watchAngularEvents(),n.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:()=>{li.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 n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let d=-1;r&&r>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(f=>f.timeoutId!==d),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:s})}whenStable(n,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(jn(li),jn(Ow),jn(Iw))};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac})}return e})(),Ow=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return b_?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const zS=new wt("Application Initializer");let v_=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=tn(zS,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const s of this.appInits){const d=s();if(qg(d))n.push(d);else if(Gy(d)){const f=new Promise((m,g)=>{d.subscribe({complete:m,error:g})});n.push(f)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Pw=new wt("appBootstrapListener");function Fw(e,t){return Array.isArray(t)?t.reduce(Fw,e):{...e,...t}}let xl=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=tn(pb),this.componentTypes=[],this.components=[],this.isStable=tn(g_).hasPendingTasks.pipe((0,ne.U)(n=>!n)),this._injector=tn(bi)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const s=n instanceof yr;if(!this._injector.get(v_).done)throw!s&&function Ni(e){const t=Yt(e)||Hn(e)||Un(e);return null!==t&&t.standalone}(n),new rt(405,!1);let f;f=s?n:this._injector.get($d).resolveComponentFactory(n),this.componentTypes.push(f.componentType);const m=function WS(e){return e.isBoundToModule}(f)?void 0:this._injector.get(Za),A=f.create(io.NULL,[],r||f.selector,m),U=A.location.nativeElement,oe=A.injector.get(Aw,null);return oe?.registerApplication(U),A.onDestroy(()=>{this.detachView(A.hostView),kf(this.components,A),oe?.unregisterApplication(U)}),this._loadComponent(A),A}tick(){if(this._runningTick)throw new rt(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;kf(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Pw,[]);[...this._bootstrapListeners,...r].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>kf(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new rt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function kf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let KS=(()=>{class e{constructor(){this.zone=tn(li),this.applicationRef=tn(xl)}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(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ZS(){const e=tn(li),t=tn($s);return n=>e.runOutsideAngular(()=>t.handleError(n))}let JS=(()=>{class e{constructor(){this.subscription=new Me.w0,this.initialized=!1,this.zone=tn(li),this.pendingTasks=tn(g_)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{li.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{li.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ff=new wt("LocaleId",{providedIn:"root",factory:()=>tn(Ff,Re.Optional|Re.SkipSelf)||function QS(){return typeof $localize<"u"&&$localize.locale||yl}()}),XS=new wt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),y_=new wt("PlatformDestroyListeners");let Vw=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const s=function kx(e="zone.js",t){return"noop"===e?new Ox:"zone.js"===e?new li(t):e}(r?.ngZone,function Bw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{const d=function _M(e,t,n){return new o_(e,t,n)}(n.moduleType,this.injector,function Lw(e){return[{provide:li,useFactory:e},{provide:Ca,multi:!0,useFactory:()=>{const t=tn(KS,{optional:!0});return()=>t.initialize()}},{provide:Ca,multi:!0,useFactory:()=>{const t=tn(JS);return()=>{t.initialize()}}},{provide:pb,useFactory:ZS}]}(()=>s)),f=d.injector.get($s,null);return s.runOutsideAngular(()=>{const m=s.onError.subscribe({next:g=>{f.handleError(g)}});d.onDestroy(()=>{kf(this._modules,d),m.unsubscribe()})}),function Rw(e,t,n){try{const r=n();return qg(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(f,s,()=>{const m=d.injector.get(v_);return m.runInitializers(),m.donePromise.then(()=>(function wy(e){qt(e,"Expected localeId to be defined"),"string"==typeof e&&(yy=e.toLowerCase().replace(/_/g,"-"))}(d.injector.get(Ff,yl)||yl),this._moduleDoBootstrap(d),d))})})}bootstrapModule(n,r=[]){const s=Fw({},r);return function GS(e,t,n){const r=new r_(n);return Promise.resolve(r)}(0,0,n).then(d=>this.bootstrapModuleFactory(d,s))}_moduleDoBootstrap(n){const r=n.injector.get(xl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new rt(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new rt(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(y_,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(jn(io))};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Us=null;const $w=new wt("AllowMultipleToken");function jw(e,t,n=[]){const r=`Platform: ${t}`,s=new wt(r);return(d=[])=>{let f=w_();if(!f||f.injector.get($w,!1)){const m=[...n,...d,{provide:s,useValue:!0}];e?e(m):function tA(e){if(Us&&!Us.get($w,!1))throw new rt(400,!1);(function kw(){!function le(e){Wt=e}(()=>{throw new rt(600,!1)})})(),Us=e;const t=e.get(Vw);(function Uw(e){e.get(ld,null)?.forEach(n=>n())})(e)}(function Hw(e=[],t){return io.create({name:t,providers:[{provide:od,useValue:"platform"},{provide:y_,useValue:new Set([()=>Us=null])},...e]})}(m,r))}return function nA(e){const t=w_();if(!t)throw new rt(401,!1);return t}()}}function w_(){return Us?.get(Vw)??null}function oA(){}const lA=jw(null,"core",[]);let dA=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(jn(xl))};static#t=this.\u0275mod=mo({type:e});static#n=this.\u0275inj=lo({})}return e})();function FA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function NA(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}},8832:(De,C,y)=>{"use strict";y.d(C,{Cf:()=>X,F:()=>Vt,Fj:()=>I,JJ:()=>Ee,JL:()=>$e,JU:()=>M,NI:()=>wt,On:()=>ki,UX:()=>At,_Y:()=>Zn,a5:()=>Me,kI:()=>Ge,oH:()=>tn,sg:()=>Ri,u5:()=>at});var a=y(1322),i=y(9462),Z=y(107),V=y(6312),_=y(8412);let v=(()=>{class k{constructor(T,te){this._renderer=T,this._elementRef=te,this.onChange=ye=>{},this.onTouched=()=>{}}setProperty(T,te){this._renderer.setProperty(this._elementRef.nativeElement,T,te)}registerOnTouched(T){this.onTouched=T}registerOnChange(T){this.onChange=T}setDisabledState(T){this.setProperty("disabled",T)}static#e=this.\u0275fac=function(te){return new(te||k)(a.Y36(a.Qsj),a.Y36(a.SBq))};static#t=this.\u0275dir=a.lG2({type:k})}return k})(),x=(()=>{class k extends v{static#e=this.\u0275fac=(()=>{let T;return function(ye){return(T||(T=a.n5z(k)))(ye||k)}})();static#t=this.\u0275dir=a.lG2({type:k,features:[a.qOj]})}return k})();const M=new a.OlP("NgValueAccessor"),Y={provide:M,useExisting:(0,a.Gpc)(()=>I),multi:!0},w=new a.OlP("CompositionEventMode");let I=(()=>{class k extends v{constructor(T,te,ye){super(T,te),this._compositionMode=ye,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O(){const k=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(k.toLowerCase())}())}writeValue(T){this.setProperty("value",T??"")}_handleInput(T){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(T)}_compositionStart(){this._composing=!0}_compositionEnd(T){this._composing=!1,this._compositionMode&&this.onChange(T)}static#e=this.\u0275fac=function(te){return new(te||k)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(w,8))};static#t=this.\u0275dir=a.lG2({type:k,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(te,ye){1&te&&a.NdJ("input",function(Rt){return ye._handleInput(Rt.target.value)})("blur",function(){return ye.onTouched()})("compositionstart",function(){return ye._compositionStart()})("compositionend",function(Rt){return ye._compositionEnd(Rt.target.value)})},features:[a._Bn([Y]),a.qOj]})}return k})();function R(k){return null==k||("string"==typeof k||Array.isArray(k))&&0===k.length}function ie(k){return null!=k&&"number"==typeof k.length}const X=new a.OlP("NgValidators"),ce=new a.OlP("NgAsyncValidators"),Ne=/^(?=.{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 Ge{static min(L){return function Ve(k){return L=>{if(R(L.value)||R(k))return null;const T=parseFloat(L.value);return!isNaN(T)&&T<k?{min:{min:k,actual:L.value}}:null}}(L)}static max(L){return function Ae(k){return L=>{if(R(L.value)||R(k))return null;const T=parseFloat(L.value);return!isNaN(T)&&T>k?{max:{max:k,actual:L.value}}:null}}(L)}static required(L){return function Pe(k){return R(k.value)?{required:!0}:null}(L)}static requiredTrue(L){return function Se(k){return!0===k.value?null:{required:!0}}(L)}static email(L){return function ke(k){return R(k.value)||Ne.test(k.value)?null:{email:!0}}(L)}static minLength(L){return function Ce(k){return L=>R(L.value)||!ie(L.value)?null:L.value.length<k?{minlength:{requiredLength:k,actualLength:L.value.length}}:null}(L)}static maxLength(L){return function Te(k){return L=>ie(L.value)&&L.value.length>k?{maxlength:{requiredLength:k,actualLength:L.value.length}}:null}(L)}static pattern(L){return function je(k){if(!k)return ut;let L,T;return"string"==typeof k?(T="","^"!==k.charAt(0)&&(T+="^"),T+=k,"$"!==k.charAt(k.length-1)&&(T+="$"),L=new RegExp(T)):(T=k.toString(),L=k),te=>{if(R(te.value))return null;const ye=te.value;return L.test(ye)?null:{pattern:{requiredPattern:T,actualValue:ye}}}}(L)}static nullValidator(L){return null}static compose(L){return K(L)}static composeAsync(L){return F(L)}}function ut(k){return null}function Dt(k){return null!=k}function Gt(k){return(0,a.QGY)(k)?(0,Z.D)(k):k}function Wt(k){let L={};return k.forEach(T=>{L=null!=T?{...L,...T}:L}),0===Object.keys(L).length?null:L}function Je(k,L){return L.map(T=>T(k))}function re(k){return k.map(L=>function le(k){return!k.validate}(L)?L:T=>L.validate(T))}function K(k){if(!k)return null;const L=k.filter(Dt);return 0==L.length?null:function(T){return Wt(Je(T,L))}}function j(k){return null!=k?K(re(k)):null}function F(k){if(!k)return null;const L=k.filter(Dt);return 0==L.length?null:function(T){const te=Je(T,L).map(Gt);return(0,V.D)(te).pipe((0,_.U)(Wt))}}function z(k){return null!=k?F(re(k)):null}function H(k,L){return null===k?[L]:Array.isArray(k)?[...k,L]:[k,L]}function Q(k){return k._rawValidators}function de(k){return k._rawAsyncValidators}function ge(k){return k?Array.isArray(k)?k:[k]:[]}function Fe(k,L){return Array.isArray(k)?k.includes(L):k===L}function Be(k,L){const T=ge(L);return ge(k).forEach(ye=>{Fe(T,ye)||T.push(ye)}),T}function _t(k,L){return ge(L).filter(T=>!Fe(k,T))}class Ke{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(L){this._rawValidators=L||[],this._composedValidatorFn=j(this._rawValidators)}_setAsyncValidators(L){this._rawAsyncValidators=L||[],this._composedAsyncValidatorFn=z(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(L){this._onDestroyCallbacks.push(L)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(L=>L()),this._onDestroyCallbacks=[]}reset(L=void 0){this.control&&this.control.reset(L)}hasError(L,T){return!!this.control&&this.control.hasError(L,T)}getError(L,T){return this.control?this.control.getError(L,T):null}}class et extends Ke{get formDirective(){return null}get path(){return null}}class Me extends Ke{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ze{constructor(L){this._cd=L}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ee=(()=>{class k extends ze{constructor(T){super(T)}static#e=this.\u0275fac=function(te){return new(te||k)(a.Y36(Me,2))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(te,ye){2&te&&a.ekj("ng-untouched",ye.isUntouched)("ng-touched",ye.isTouched)("ng-pristine",ye.isPristine)("ng-dirty",ye.isDirty)("ng-valid",ye.isValid)("ng-invalid",ye.isInvalid)("ng-pending",ye.isPending)},features:[a.qOj]})}return k})(),$e=(()=>{class k extends ze{constructor(T){super(T)}static#e=this.\u0275fac=function(te){return new(te||k)(a.Y36(et,10))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(te,ye){2&te&&a.ekj("ng-untouched",ye.isUntouched)("ng-touched",ye.isTouched)("ng-pristine",ye.isPristine)("ng-dirty",ye.isDirty)("ng-valid",ye.isValid)("ng-invalid",ye.isInvalid)("ng-pending",ye.isPending)("ng-submitted",ye.isSubmitted)},features:[a.qOj]})}return k})();const wn="VALID",Et="INVALID",Ot="PENDING",In="DISABLED";function Vn(k){return(W(k)?k.validators:k)||null}function We(k,L){return(W(L)?L.asyncValidators:k)||null}function W(k){return null!=k&&!Array.isArray(k)&&"object"==typeof k}class ee{constructor(L,T){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(L),this._assignAsyncValidators(T)}get validator(){return this._composedValidatorFn}set validator(L){this._rawValidators=this._composedValidatorFn=L}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(L){this._rawAsyncValidators=this._composedAsyncValidatorFn=L}get parent(){return this._parent}get valid(){return this.status===wn}get invalid(){return this.status===Et}get pending(){return this.status==Ot}get disabled(){return this.status===In}get enabled(){return this.status!==In}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(L){this._assignValidators(L)}setAsyncValidators(L){this._assignAsyncValidators(L)}addValidators(L){this.setValidators(Be(L,this._rawValidators))}addAsyncValidators(L){this.setAsyncValidators(Be(L,this._rawAsyncValidators))}removeValidators(L){this.setValidators(_t(L,this._rawValidators))}removeAsyncValidators(L){this.setAsyncValidators(_t(L,this._rawAsyncValidators))}hasValidator(L){return Fe(this._rawValidators,L)}hasAsyncValidator(L){return Fe(this._rawAsyncValidators,L)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(L={}){this.touched=!0,this._parent&&!L.onlySelf&&this._parent.markAsTouched(L)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(L=>L.markAllAsTouched())}markAsUntouched(L={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(T=>{T.markAsUntouched({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}markAsDirty(L={}){this.pristine=!1,this._parent&&!L.onlySelf&&this._parent.markAsDirty(L)}markAsPristine(L={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(T=>{T.markAsPristine({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}markAsPending(L={}){this.status=Ot,!1!==L.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!L.onlySelf&&this._parent.markAsPending(L)}disable(L={}){const T=this._parentMarkedDirty(L.onlySelf);this.status=In,this.errors=null,this._forEachChild(te=>{te.disable({...L,onlySelf:!0})}),this._updateValue(),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...L,skipPristineCheck:T}),this._onDisabledChange.forEach(te=>te(!0))}enable(L={}){const T=this._parentMarkedDirty(L.onlySelf);this.status=wn,this._forEachChild(te=>{te.enable({...L,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent}),this._updateAncestors({...L,skipPristineCheck:T}),this._onDisabledChange.forEach(te=>te(!1))}_updateAncestors(L){this._parent&&!L.onlySelf&&(this._parent.updateValueAndValidity(L),L.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(L){this._parent=L}getRawValue(){return this.value}updateValueAndValidity(L={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wn||this.status===Ot)&&this._runAsyncValidator(L.emitEvent)),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!L.onlySelf&&this._parent.updateValueAndValidity(L)}_updateTreeValidity(L={emitEvent:!0}){this._forEachChild(T=>T._updateTreeValidity(L)),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?In:wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(L){if(this.asyncValidator){this.status=Ot,this._hasOwnPendingAsyncValidator=!0;const T=Gt(this.asyncValidator(this));this._asyncValidationSubscription=T.subscribe(te=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(te,{emitEvent:L})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(L,T={}){this.errors=L,this._updateControlsErrors(!1!==T.emitEvent)}get(L){let T=L;return null==T||(Array.isArray(T)||(T=T.split(".")),0===T.length)?null:T.reduce((te,ye)=>te&&te._find(ye),this)}getError(L,T){const te=T?this.get(T):this;return te&&te.errors?te.errors[L]:null}hasError(L,T){return!!this.getError(L,T)}get root(){let L=this;for(;L._parent;)L=L._parent;return L}_updateControlsErrors(L){this.status=this._calculateStatus(),L&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(L)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?In:this.errors?Et:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ot)?Ot:this._anyControlsHaveStatus(Et)?Et:wn}_anyControlsHaveStatus(L){return this._anyControls(T=>T.status===L)}_anyControlsDirty(){return this._anyControls(L=>L.dirty)}_anyControlsTouched(){return this._anyControls(L=>L.touched)}_updatePristine(L={}){this.pristine=!this._anyControlsDirty(),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}_updateTouched(L={}){this.touched=this._anyControlsTouched(),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}_registerOnCollectionChange(L){this._onCollectionChange=L}_setUpdateStrategy(L){W(L)&&null!=L.updateOn&&(this._updateOn=L.updateOn)}_parentMarkedDirty(L){return!L&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(L){return null}_assignValidators(L){this._rawValidators=Array.isArray(L)?L.slice():L,this._composedValidatorFn=function $n(k){return Array.isArray(k)?j(k):k||null}(this._rawValidators)}_assignAsyncValidators(L){this._rawAsyncValidators=Array.isArray(L)?L.slice():L,this._composedAsyncValidatorFn=function me(k){return Array.isArray(k)?z(k):k||null}(this._rawAsyncValidators)}}class he extends ee{constructor(L,T,te){super(Vn(T),We(te,T)),this.controls=L,this._initObservables(),this._setUpdateStrategy(T),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(L,T){return this.controls[L]?this.controls[L]:(this.controls[L]=T,T.setParent(this),T._registerOnCollectionChange(this._onCollectionChange),T)}addControl(L,T,te={}){this.registerControl(L,T),this.updateValueAndValidity({emitEvent:te.emitEvent}),this._onCollectionChange()}removeControl(L,T={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],this.updateValueAndValidity({emitEvent:T.emitEvent}),this._onCollectionChange()}setControl(L,T,te={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],T&&this.registerControl(L,T),this.updateValueAndValidity({emitEvent:te.emitEvent}),this._onCollectionChange()}contains(L){return this.controls.hasOwnProperty(L)&&this.controls[L].enabled}setValue(L,T={}){(function ae(k,L,T){k._forEachChild((te,ye)=>{if(void 0===T[ye])throw new a.vHH(1002,"")})})(this,0,L),Object.keys(L).forEach(te=>{(function B(k,L,T){const te=k.controls;if(!(L?Object.keys(te):te).length)throw new a.vHH(1e3,"");if(!te[T])throw new a.vHH(1001,"")})(this,!0,te),this.controls[te].setValue(L[te],{onlySelf:!0,emitEvent:T.emitEvent})}),this.updateValueAndValidity(T)}patchValue(L,T={}){null!=L&&(Object.keys(L).forEach(te=>{const ye=this.controls[te];ye&&ye.patchValue(L[te],{onlySelf:!0,emitEvent:T.emitEvent})}),this.updateValueAndValidity(T))}reset(L={},T={}){this._forEachChild((te,ye)=>{te.reset(L?L[ye]:null,{onlySelf:!0,emitEvent:T.emitEvent})}),this._updatePristine(T),this._updateTouched(T),this.updateValueAndValidity(T)}getRawValue(){return this._reduceChildren({},(L,T,te)=>(L[te]=T.getRawValue(),L))}_syncPendingControls(){let L=this._reduceChildren(!1,(T,te)=>!!te._syncPendingControls()||T);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){Object.keys(this.controls).forEach(T=>{const te=this.controls[T];te&&L(te,T)})}_setUpControls(){this._forEachChild(L=>{L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(L){for(const[T,te]of Object.entries(this.controls))if(this.contains(T)&&L(te))return!0;return!1}_reduceValue(){return this._reduceChildren({},(T,te,ye)=>((te.enabled||this.disabled)&&(T[ye]=te.value),T))}_reduceChildren(L,T){let te=L;return this._forEachChild((ye,ot)=>{te=T(te,ye,ot)}),te}_allControlsDisabled(){for(const L of Object.keys(this.controls))if(this.controls[L].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(L){return this.controls.hasOwnProperty(L)?this.controls[L]:null}}const Mt=new a.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>kt}),kt="always";function gn(k,L,T=kt){_i(k,L),L.valueAccessor.writeValue(k.value),(k.disabled||"always"===T)&&L.valueAccessor.setDisabledState?.(k.disabled),function er(k,L){L.valueAccessor.registerOnChange(T=>{k._pendingValue=T,k._pendingChange=!0,k._pendingDirty=!0,"change"===k.updateOn&&co(k,L)})}(k,L),function lo(k,L){const T=(te,ye)=>{L.valueAccessor.writeValue(te),ye&&L.viewToModelUpdate(te)};k.registerOnChange(T),L._registerOnDestroy(()=>{k._unregisterOnChange(T)})}(k,L),function Qt(k,L){L.valueAccessor.registerOnTouched(()=>{k._pendingTouched=!0,"blur"===k.updateOn&&k._pendingChange&&co(k,L),"submit"!==k.updateOn&&k.markAsTouched()})}(k,L),function xi(k,L){if(L.valueAccessor.setDisabledState){const T=te=>{L.valueAccessor.setDisabledState(te)};k.registerOnDisabledChange(T),L._registerOnDestroy(()=>{k._unregisterOnDisabledChange(T)})}}(k,L)}function qt(k,L,T=!0){const te=()=>{};L.valueAccessor&&(L.valueAccessor.registerOnChange(te),L.valueAccessor.registerOnTouched(te)),ao(k,L),k&&(L._invokeOnDestroyCallbacks(),k._registerOnCollectionChange(()=>{}))}function xt(k,L){k.forEach(T=>{T.registerOnValidatorChange&&T.registerOnValidatorChange(L)})}function _i(k,L){const T=Q(k);null!==L.validator?k.setValidators(H(T,L.validator)):"function"==typeof T&&k.setValidators([T]);const te=de(k);null!==L.asyncValidator?k.setAsyncValidators(H(te,L.asyncValidator)):"function"==typeof te&&k.setAsyncValidators([te]);const ye=()=>k.updateValueAndValidity();xt(L._rawValidators,ye),xt(L._rawAsyncValidators,ye)}function ao(k,L){let T=!1;if(null!==k){if(null!==L.validator){const ye=Q(k);if(Array.isArray(ye)&&ye.length>0){const ot=ye.filter(Rt=>Rt!==L.validator);ot.length!==ye.length&&(T=!0,k.setValidators(ot))}}if(null!==L.asyncValidator){const ye=de(k);if(Array.isArray(ye)&&ye.length>0){const ot=ye.filter(Rt=>Rt!==L.asyncValidator);ot.length!==ye.length&&(T=!0,k.setAsyncValidators(ot))}}}const te=()=>{};return xt(L._rawValidators,te),xt(L._rawAsyncValidators,te),T}function co(k,L){k._pendingDirty&&k.markAsDirty(),k.setValue(k._pendingValue,{emitModelToViewChange:!1}),L.viewToModelUpdate(k._pendingValue),k._pendingChange=!1}function Ki(k,L){_i(k,L)}function _e(k,L){if(!k.hasOwnProperty("model"))return!1;const T=k.model;return!!T.isFirstChange()||!Object.is(L,T.currentValue)}function Re(k,L){k._syncPendingControls(),L.forEach(T=>{const te=T.control;"submit"===te.updateOn&&te._pendingChange&&(T.viewToModelUpdate(te._pendingValue),te._pendingChange=!1)})}function qe(k,L){if(!L)return null;let T,te,ye;return Array.isArray(L),L.forEach(ot=>{ot.constructor===I?T=ot:function ve(k){return Object.getPrototypeOf(k.constructor)===x}(ot)?te=ot:ye=ot}),ye||te||T||null}const $t={provide:et,useExisting:(0,a.Gpc)(()=>Vt)},St=(()=>Promise.resolve())();let Vt=(()=>{class k extends et{constructor(T,te,ye){super(),this.callSetDisabledState=ye,this.submitted=!1,this._directives=new Set,this.ngSubmit=new a.vpe,this.form=new he({},j(T),z(te))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(T){St.then(()=>{const te=this._findContainer(T.path);T.control=te.registerControl(T.name,T.control),gn(T.control,T,this.callSetDisabledState),T.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(T)})}getControl(T){return this.form.get(T.path)}removeControl(T){St.then(()=>{const te=this._findContainer(T.path);te&&te.removeControl(T.name),this._directives.delete(T)})}addFormGroup(T){St.then(()=>{const te=this._findContainer(T.path),ye=new he({});Ki(ye,T),te.registerControl(T.name,ye),ye.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(T){St.then(()=>{const te=this._findContainer(T.path);te&&te.removeControl(T.name)})}getFormGroup(T){return this.form.get(T.path)}updateModel(T,te){St.then(()=>{this.form.get(T.path).setValue(te)})}setValue(T){this.control.setValue(T)}onSubmit(T){return this.submitted=!0,Re(this.form,this._directives),this.ngSubmit.emit(T),"dialog"===T?.target?.method}onReset(){this.resetForm()}resetForm(T=void 0){this.form.reset(T),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(T){return T.pop(),T.length?this.form.get(T):this.form}static#e=this.\u0275fac=function(te){return new(te||k)(a.Y36(X,10),a.Y36(ce,10),a.Y36(Mt,8))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(te,ye){1&te&&a.NdJ("submit",function(Rt){return ye.onSubmit(Rt)})("reset",function(){return ye.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([$t]),a.qOj]})}return k})();function _n(k,L){const T=k.indexOf(L);T>-1&&k.splice(T,1)}function vn(k){return"object"==typeof k&&null!==k&&2===Object.keys(k).length&&"value"in k&&"disabled"in k}const wt=class extends ee{constructor(L=null,T,te){super(Vn(T),We(te,T)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(L),this._setUpdateStrategy(T),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),W(T)&&(T.nonNullable||T.initialValueIsDefault)&&(this.defaultValue=vn(L)?L.value:L)}setValue(L,T={}){this.value=this._pendingValue=L,this._onChange.length&&!1!==T.emitModelToViewChange&&this._onChange.forEach(te=>te(this.value,!1!==T.emitViewToModelChange)),this.updateValueAndValidity(T)}patchValue(L,T={}){this.setValue(L,T)}reset(L=this.defaultValue,T={}){this._applyFormState(L),this.markAsPristine(T),this.markAsUntouched(T),this.setValue(this.value,T),this._pendingChange=!1}_updateValue(){}_anyControls(L){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(L){this._onChange.push(L)}_unregisterOnChange(L){_n(this._onChange,L)}registerOnDisabledChange(L){this._onDisabledChange.push(L)}_unregisterOnDisabledChange(L){_n(this._onDisabledChange,L)}_forEachChild(L){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(L){vn(L)?(this.value=this._pendingValue=L.value,L.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=L}},Zi={provide:Me,useExisting:(0,a.Gpc)(()=>ki)},Vo=(()=>Promise.resolve())();let ki=(()=>{class k extends Me{constructor(T,te,ye,ot,Rt,Mn){super(),this._changeDetectorRef=Rt,this.callSetDisabledState=Mn,this.control=new wt,this._registered=!1,this.name="",this.update=new a.vpe,this._parent=T,this._setValidators(te),this._setAsyncValidators(ye),this.valueAccessor=qe(0,ot)}ngOnChanges(T){if(this._checkForErrors(),!this._registered||"name"in T){if(this._registered&&(this._checkName(),this.formDirective)){const te=T.name.previousValue;this.formDirective.removeControl({name:te,path:this._getPath(te)})}this._setUpControl()}"isDisabled"in T&&this._updateDisabled(T),_e(T,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(T){this.viewModel=T,this.update.emit(T)}_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(){gn(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(T){Vo.then(()=>{this.control.setValue(T,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(T){const te=T.isDisabled.currentValue,ye=0!==te&&(0,a.VuI)(te);Vo.then(()=>{ye&&!this.control.disabled?this.control.disable():!ye&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(T){return this._parent?function an(k,L){return[...L.path,k]}(T,this._parent):[T]}static#e=this.\u0275fac=function(te){return new(te||k)(a.Y36(et,9),a.Y36(X,10),a.Y36(ce,10),a.Y36(M,10),a.Y36(a.sBO,8),a.Y36(Mt,8))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([Zi]),a.qOj,a.TTD]})}return k})(),Zn=(()=>{class k{static#e=this.\u0275fac=function(te){return new(te||k)};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return k})(),To=(()=>{class k{static#e=this.\u0275fac=function(te){return new(te||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({})}return k})();const jn=new a.OlP("NgModelWithFormControlWarning"),Mr={provide:Me,useExisting:(0,a.Gpc)(()=>tn)};let tn=(()=>{class k extends Me{set isDisabled(T){}static#e=this._ngModelWarningSentOnce=!1;constructor(T,te,ye,ot,Rt){super(),this._ngModelWarningConfig=ot,this.callSetDisabledState=Rt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(T),this._setAsyncValidators(te),this.valueAccessor=qe(0,ye)}ngOnChanges(T){if(this._isControlChanged(T)){const te=T.form.previousValue;te&&qt(te,this,!1),gn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}_e(T,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(T){this.viewModel=T,this.update.emit(T)}_isControlChanged(T){return T.hasOwnProperty("form")}static#t=this.\u0275fac=function(te){return new(te||k)(a.Y36(X,10),a.Y36(ce,10),a.Y36(M,10),a.Y36(jn,8),a.Y36(Mt,8))};static#n=this.\u0275dir=a.lG2({type:k,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([Mr]),a.qOj,a.TTD]})}return k})();const tr={provide:et,useExisting:(0,a.Gpc)(()=>Ri)};let Ri=(()=>{class k extends et{constructor(T,te,ye){super(),this.callSetDisabledState=ye,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(T),this._setAsyncValidators(te)}ngOnChanges(T){this._checkFormPresent(),T.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ao(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(T){const te=this.form.get(T.path);return gn(te,T,this.callSetDisabledState),te.updateValueAndValidity({emitEvent:!1}),this.directives.push(T),te}getControl(T){return this.form.get(T.path)}removeControl(T){qt(T.control||null,T,!1),function ct(k,L){const T=k.indexOf(L);T>-1&&k.splice(T,1)}(this.directives,T)}addFormGroup(T){this._setUpFormContainer(T)}removeFormGroup(T){this._cleanUpFormContainer(T)}getFormGroup(T){return this.form.get(T.path)}addFormArray(T){this._setUpFormContainer(T)}removeFormArray(T){this._cleanUpFormContainer(T)}getFormArray(T){return this.form.get(T.path)}updateModel(T,te){this.form.get(T.path).setValue(te)}onSubmit(T){return this.submitted=!0,Re(this.form,this.directives),this.ngSubmit.emit(T),"dialog"===T?.target?.method}onReset(){this.resetForm()}resetForm(T=void 0){this.form.reset(T),this.submitted=!1}_updateDomValue(){this.directives.forEach(T=>{const te=T.control,ye=this.form.get(T.path);te!==ye&&(qt(te||null,T),(k=>k instanceof wt)(ye)&&(gn(ye,T,this.callSetDisabledState),T.control=ye))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(T){const te=this.form.get(T.path);Ki(te,T),te.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(T){if(this.form){const te=this.form.get(T.path);te&&function Lo(k,L){return ao(k,L)}(te,T)&&te.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_i(this.form,this),this._oldForm&&ao(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(te){return new(te||k)(a.Y36(X,10),a.Y36(ce,10),a.Y36(Mt,8))};static#t=this.\u0275dir=a.lG2({type:k,selectors:[["","formGroup",""]],hostBindings:function(te,ye){1&te&&a.NdJ("submit",function(Rt){return ye.onSubmit(Rt)})("reset",function(){return ye.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([tr]),a.qOj,a.TTD]})}return k})(),Un=(()=>{class k{static#e=this.\u0275fac=function(te){return new(te||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({imports:[To]})}return k})(),at=(()=>{class k{static withConfig(T){return{ngModule:k,providers:[{provide:Mt,useValue:T.callSetDisabledState??kt}]}}static#e=this.\u0275fac=function(te){return new(te||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({imports:[Un]})}return k})(),At=(()=>{class k{static withConfig(T){return{ngModule:k,providers:[{provide:jn,useValue:T.warnOnNgModelWithFormControl??"always"},{provide:Mt,useValue:T.callSetDisabledState??kt}]}}static#e=this.\u0275fac=function(te){return new(te||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({imports:[Un]})}return k})()},7950:(De,C,y)=>{"use strict";y.d(C,{RK:()=>Dt,cs:()=>Ce,lW:()=>Ve,ot:()=>Wt,zs:()=>Ae});var a=y(3844),i=y(1322),Z=y(8654),V=y(9021);const _=["mat-button",""],v=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],x=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],N=".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}",P=["mat-fab",""],w=["mat-icon-button",""],I=["*"],X=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let ce=(()=>{class Je{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(re){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,re)}get disableRipple(){return this._disableRipple}set disableRipple(re){this._disableRipple=re,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(re){this._disabled=re,this._updateRippleDisabled()}constructor(re,K,j,F){this._elementRef=re,this._platform=K,this._ngZone=j,this._animationMode=F,this._focusMonitor=(0,i.f3M)(Z.tE),this._rippleLoader=(0,i.f3M)(V.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const z=this._elementRef.nativeElement,H=z.classList;for(const{attribute:Q,mdcClasses:de}of X)z.hasAttribute(Q)&&H.add(...de)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(re="program",K){re?this._focusMonitor.focusVia(this._elementRef.nativeElement,re,K):this._elementRef.nativeElement.focus(K)}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(K){i.$Z()};static#t=this.\u0275dir=i.lG2({type:Je,inputs:{color:"color",disableRipple:["disableRipple","disableRipple",i.VuI],disabled:["disabled","disabled",i.VuI]},features:[i.Xq5]})}return Je})(),Ge=(()=>{class Je extends ce{constructor(re,K,j,F){super(re,K,j,F),this._haltDisabledEvents=z=>{this.disabled&&(z.preventDefault(),z.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#e=this.\u0275fac=function(K){i.$Z()};static#t=this.\u0275dir=i.lG2({type:Je,inputs:{tabIndex:["tabIndex","tabIndex",re=>null==re?void 0:(0,i.Cb_)(re)]},features:[i.Xq5,i.qOj]})}return Je})(),Ve=(()=>{class Je extends ce{constructor(re,K,j,F){super(re,K,j,F)}static#e=this.\u0275fac=function(K){return new(K||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:9,hostBindings:function(K,j){2&K&&(i.uIk("disabled",j.disabled||null),i.Tol(j.color?"mat-"+j.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-unthemed",!j.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.qOj],attrs:_,ngContentSelectors:x,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(K,j){1&K&&(i.F$t(v),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&K&&i.ekj("mdc-button__ripple",!j._isFab)("mdc-fab__ripple",j._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(100% + 4px);width:calc(100% + 4px);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{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.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)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.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}.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 .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 Je})(),Ae=(()=>{class Je extends Ge{constructor(re,K,j,F){super(re,K,j,F)}static#e=this.\u0275fac=function(K){return new(K||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:11,hostBindings:function(K,j){2&K&&(i.uIk("disabled",j.disabled||null)("tabindex",j.disabled?-1:j.tabIndex)("aria-disabled",j.disabled.toString()),i.Tol(j.color?"mat-"+j.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-unthemed",!j.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.qOj],attrs:_,ngContentSelectors:x,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(K,j){1&K&&(i.F$t(v),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&K&&i.ekj("mdc-button__ripple",!j._isFab)("mdc-fab__ripple",j._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(100% + 4px);width:calc(100% + 4px);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{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.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)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.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}.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 .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)}',N],encapsulation:2,changeDetection:0})}return Je})();const Pe=new i.OlP("mat-mdc-fab-default-options",{providedIn:"root",factory:Se});function Se(){return{color:"accent"}}const ke=Se();let Ce=(()=>{class Je extends ce{constructor(re,K,j,F,z){super(re,K,j,F),this._options=z,this._isFab=!0,this._options=this._options||ke,this.color=this._options.color||ke.color}static#e=this.\u0275fac=function(K){return new(K||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8),i.Y36(Pe,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-fab",""]],hostVars:13,hostBindings:function(K,j){2&K&&(i.uIk("disabled",j.disabled||null),i.Tol(j.color?"mat-"+j.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-unthemed",!j.color)("mat-mdc-button-base",!0)("mdc-fab--extended",j.extended)("mat-mdc-extended-fab",j.extended))},inputs:{extended:["extended","extended",i.VuI]},exportAs:["matButton"],features:[i.Xq5,i.qOj],attrs:P,ngContentSelectors:x,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(K,j){1&K&&(i.F$t(v),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&K&&i.ekj("mdc-button__ripple",!j._isFab)("mdc-fab__ripple",j._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);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{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)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{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)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__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(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__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-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);flex-shrink:0;color:var(--mat-fab-foreground-color, inherit)}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{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)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow: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);color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return Je})(),Dt=(()=>{class Je extends ce{constructor(re,K,j,F){super(re,K,j,F),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(K){return new(K||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-icon-button",""]],hostVars:9,hostBindings:function(K,j){2&K&&(i.uIk("disabled",j.disabled||null),i.Tol(j.color?"mat-"+j.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===j._animationMode)("mat-unthemed",!j.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.qOj],attrs:w,ngContentSelectors:I,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(K,j){1&K&&(i.F$t(),i._UZ(0,"span",0),i.Hsn(1),i._UZ(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}.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{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-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;color:var(--mdc-icon-button-disabled-icon-color)}.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}.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-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.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}',N],encapsulation:2,changeDetection:0})}return Je})(),Wt=(()=>{class Je{static#e=this.\u0275fac=function(K){return new(K||Je)};static#t=this.\u0275mod=i.oAB({type:Je});static#n=this.\u0275inj=i.cJS({imports:[V.BQ,V.si,V.BQ]})}return Je})()},9021:(De,C,y)=>{"use strict";y.d(C,{rD:()=>de,Y2:()=>pt,BQ:()=>Ve,wG:()=>Ft,Fq:()=>We,si:()=>lt,pj:()=>Ce,Kr:()=>Te,Id:()=>ke,FD:()=>ut,sb:()=>je});var a=y(1322),i=y(8654),Z=y(4877),_=y(9462),v=y(3844),x=y(5988);const Ge=new a.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ne(){return!0}});let Ve=(()=>{class me{constructor(B,ae,ee){this._sanityChecks=ae,this._document=ee,this._hasDoneGlobalChecks=!1,B._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(B){return!(0,v.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[B])}static#e=this.\u0275fac=function(ae){return new(ae||me)(a.LFG(i.qm),a.LFG(Ge,8),a.LFG(_.K0))};static#t=this.\u0275mod=a.oAB({type:me});static#n=this.\u0275inj=a.cJS({imports:[Z.vT,Z.vT]})}return me})();function ke(me){return class extends me{get disabled(){return this._disabled}set disabled(W){this._disabled=(0,x.Ig)(W)}constructor(...W){super(...W),this._disabled=!1}}}function Ce(me,W){return class extends me{get color(){return this._color}set color(B){const ae=B||this.defaultColor;ae!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ae&&this._elementRef.nativeElement.classList.add(`mat-${ae}`),this._color=ae)}constructor(...B){super(...B),this.defaultColor=W,this.color=W}}}function Te(me){return class extends me{get disableRipple(){return this._disableRipple}set disableRipple(W){this._disableRipple=(0,x.Ig)(W)}constructor(...W){super(...W),this._disableRipple=!1}}}function je(me,W=0){return class extends me{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(B){this._tabIndex=null!=B?(0,x.su)(B):this.defaultTabIndex}constructor(...B){super(...B),this._tabIndex=W,this.defaultTabIndex=W}}}function ut(me){return class extends me{updateErrorState(){const W=this.errorState,he=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);he!==W&&(this.errorState=he,this.stateChanges.next())}constructor(...W){super(...W),this.errorState=!1}}}let de=(()=>{class me{isErrorState(B,ae){return!!(B&&B.invalid&&(B.touched||ae&&ae.submitted))}static#e=this.\u0275fac=function(ae){return new(ae||me)};static#t=this.\u0275prov=a.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})();class Ke{constructor(W,B,ae,ee=!1){this._renderer=W,this.element=B,this.config=ae,this._animationForciblyDisabledThroughCss=ee,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const et=(0,v.i$)({passive:!0,capture:!0});class Me{constructor(){this._events=new Map,this._delegateEventHandler=W=>{const B=(0,v.sA)(W);B&&this._events.get(W.type)?.forEach((ae,ee)=>{(ee===B||ee.contains(B))&&ae.forEach(he=>he.handleEvent(W))})}}addHandler(W,B,ae,ee){const he=this._events.get(B);if(he){const S=he.get(ae);S?S.add(ee):he.set(ae,new Set([ee]))}else this._events.set(B,new Map([[ae,new Set([ee])]])),W.runOutsideAngular(()=>{document.addEventListener(B,this._delegateEventHandler,et)})}removeHandler(W,B,ae){const ee=this._events.get(W);if(!ee)return;const he=ee.get(B);he&&(he.delete(ae),0===he.size&&ee.delete(B),0===ee.size&&(this._events.delete(W),document.removeEventListener(W,this._delegateEventHandler,et)))}}const ze={enterDuration:225,exitDuration:150},se=(0,v.i$)({passive:!0,capture:!0}),Ee=["mousedown","touchstart"],$e=["mouseup","mouseleave","touchend","touchcancel"];class it{static#e=this._eventManager=new Me;constructor(W,B,ae,ee){this._target=W,this._ngZone=B,this._platform=ee,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ee.isBrowser&&(this._containerElement=(0,x.fI)(ae))}fadeInRipple(W,B,ae={}){const ee=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),he={...ze,...ae.animation};ae.centered&&(W=ee.left+ee.width/2,B=ee.top+ee.height/2);const S=ae.radius||function vt(me,W,B){const ae=Math.max(Math.abs(me-B.left),Math.abs(me-B.right)),ee=Math.max(Math.abs(W-B.top),Math.abs(W-B.bottom));return Math.sqrt(ae*ae+ee*ee)}(W,B,ee),J=W-ee.left,ue=B-ee.top,Oe=he.enterDuration,Qe=document.createElement("div");Qe.classList.add("mat-ripple-element"),Qe.style.left=J-S+"px",Qe.style.top=ue-S+"px",Qe.style.height=2*S+"px",Qe.style.width=2*S+"px",null!=ae.color&&(Qe.style.backgroundColor=ae.color),Qe.style.transitionDuration=`${Oe}ms`,this._containerElement.appendChild(Qe);const Mt=window.getComputedStyle(Qe),an=Mt.transitionDuration,gn="none"===Mt.transitionProperty||"0s"===an||"0s, 0s"===an||0===ee.width&&0===ee.height,qt=new Ke(this,Qe,ae,gn);Qe.style.transform="scale3d(1, 1, 1)",qt.state=0,ae.persistent||(this._mostRecentTransientRipple=qt);let xt=null;return!gn&&(Oe||he.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const xi=()=>this._finishRippleTransition(qt),_i=()=>this._destroyRipple(qt);Qe.addEventListener("transitionend",xi),Qe.addEventListener("transitioncancel",_i),xt={onTransitionEnd:xi,onTransitionCancel:_i}}),this._activeRipples.set(qt,xt),(gn||!Oe)&&this._finishRippleTransition(qt),qt}fadeOutRipple(W){if(2===W.state||3===W.state)return;const B=W.element,ae={...ze,...W.config.animation};B.style.transitionDuration=`${ae.exitDuration}ms`,B.style.opacity="0",W.state=2,(W._animationForciblyDisabledThroughCss||!ae.exitDuration)&&this._finishRippleTransition(W)}fadeOutAll(){this._getActiveRipples().forEach(W=>W.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(W=>{W.config.persistent||W.fadeOut()})}setupTriggerEvents(W){const B=(0,x.fI)(W);!this._platform.isBrowser||!B||B===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=B,Ee.forEach(ae=>{it._eventManager.addHandler(this._ngZone,ae,B,this)}))}handleEvent(W){"mousedown"===W.type?this._onMousedown(W):"touchstart"===W.type?this._onTouchStart(W):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{$e.forEach(B=>{this._triggerElement.addEventListener(B,this,se)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(W){0===W.state?this._startFadeOutTransition(W):2===W.state&&this._destroyRipple(W)}_startFadeOutTransition(W){const B=W===this._mostRecentTransientRipple,{persistent:ae}=W.config;W.state=1,!ae&&(!B||!this._isPointerDown)&&W.fadeOut()}_destroyRipple(W){const B=this._activeRipples.get(W)??null;this._activeRipples.delete(W),this._activeRipples.size||(this._containerRect=null),W===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),W.state=3,null!==B&&(W.element.removeEventListener("transitionend",B.onTransitionEnd),W.element.removeEventListener("transitioncancel",B.onTransitionCancel)),W.element.remove()}_onMousedown(W){const B=(0,i.X6)(W),ae=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!B&&!ae&&(this._isPointerDown=!0,this.fadeInRipple(W.clientX,W.clientY,this._target.rippleConfig))}_onTouchStart(W){if(!this._target.rippleDisabled&&!(0,i.yG)(W)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const B=W.changedTouches;if(B)for(let ae=0;ae<B.length;ae++)this.fadeInRipple(B[ae].clientX,B[ae].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(W=>{!W.config.persistent&&(1===W.state||W.config.terminateOnPointerUp&&0===W.state)&&W.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const W=this._triggerElement;W&&(Ee.forEach(B=>it._eventManager.removeHandler(B,W,this)),this._pointerUpEventsRegistered&&$e.forEach(B=>W.removeEventListener(B,this,se)))}}const pt=new a.OlP("mat-ripple-global-options");let Ft=(()=>{class me{get disabled(){return this._disabled}set disabled(B){B&&this.fadeOutAllNonPersistent(),this._disabled=B,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(B){this._trigger=B,this._setupTriggerEventsIfEnabled()}constructor(B,ae,ee,he,S){this._elementRef=B,this._animationMode=S,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=he||{},this._rippleRenderer=new it(this,ae,B,ee)}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(B,ae=0,ee){return"number"==typeof B?this._rippleRenderer.fadeInRipple(B,ae,{...this.rippleConfig,...ee}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...B})}static#e=this.\u0275fac=function(ae){return new(ae||me)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(v.t4),a.Y36(pt,8),a.Y36(a.QbO,8))};static#t=this.\u0275dir=a.lG2({type:me,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ae,ee){2&ae&&a.ekj("mat-ripple-unbounded",ee.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 me})(),lt=(()=>{class me{static#e=this.\u0275fac=function(ae){return new(ae||me)};static#t=this.\u0275mod=a.oAB({type:me});static#n=this.\u0275inj=a.cJS({imports:[Ve,Ve]})}return me})();const wn={capture:!0},Et=["focus","click","mouseenter","touchstart"],Ot="mat-ripple-loader-uninitialized",In="mat-ripple-loader-class-name",Vn="mat-ripple-loader-centered",$n="mat-ripple-loader-disabled";let We=(()=>{class me{constructor(){this._document=(0,a.f3M)(_.K0,{optional:!0}),this._animationMode=(0,a.f3M)(a.QbO,{optional:!0}),this._globalRippleOptions=(0,a.f3M)(pt,{optional:!0}),this._platform=(0,a.f3M)(v.t4),this._ngZone=(0,a.f3M)(a.R0b),this._hosts=new Map,this._onInteraction=B=>{if(!(B.target instanceof HTMLElement))return;const ee=B.target.closest(`[${Ot}]`);ee&&this._createRipple(ee)},this._ngZone.runOutsideAngular(()=>{for(const B of Et)this._document?.addEventListener(B,this._onInteraction,wn)})}ngOnDestroy(){const B=this._hosts.keys();for(const ae of B)this.destroyRipple(ae);for(const ae of Et)this._document?.removeEventListener(ae,this._onInteraction,wn)}configureRipple(B,ae){B.setAttribute(Ot,""),(ae.className||!B.hasAttribute(In))&&B.setAttribute(In,ae.className||""),ae.centered&&B.setAttribute(Vn,""),ae.disabled&&B.setAttribute($n,"")}getRipple(B){return this._hosts.get(B)||this._createRipple(B)}setDisabled(B,ae){const ee=this._hosts.get(B);ee?ee.disabled=ae:ae?B.setAttribute($n,""):B.removeAttribute($n)}_createRipple(B){if(!this._document)return;const ae=this._hosts.get(B);if(ae)return ae;B.querySelector(".mat-ripple")?.remove();const ee=this._document.createElement("span");ee.classList.add("mat-ripple",B.getAttribute(In)),B.append(ee);const he=new Ft(new a.SBq(ee),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return he._isInitialized=!0,he.trigger=B,he.centered=B.hasAttribute(Vn),he.disabled=B.hasAttribute($n),this.attachRipple(B,he),he}attachRipple(B,ae){B.removeAttribute(Ot),this._hosts.set(B,ae)}destroyRipple(B){const ae=this._hosts.get(B);ae&&(ae.ngOnDestroy(),this._hosts.delete(B))}static#e=this.\u0275fac=function(ae){return new(ae||me)};static#t=this.\u0275prov=a.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})()},1238:(De,C,y)=>{"use strict";y.d(C,{Hw:()=>Ke,Ps:()=>et,jv:()=>le});var a=y(1322),i=y(9021),Z=y(5988),V=y(9462),_=y(9627),v=y(7371),x=y(3276),N=y(6312),P=y(9592),Y=y(4104),O=y(8412),w=y(8299),I=y(2829),R=y(4049);function ie(Me){return(0,R.e)((ze,ne)=>{let $e,se=null,Ee=!1;se=ze.subscribe((0,I.x)(ne,void 0,void 0,it=>{$e=(0,w.Xf)(Me(it,ie(Me)(ze))),se?(se.unsubscribe(),se=null,$e.subscribe(ne)):Ee=!0})),Ee&&(se.unsubscribe(),se=null,$e.subscribe(ne))})}var X=y(1927),ce=y(9453),Ne=y(9224);function Ve(Me,ze,...ne){if(!0===ze)return void Me();if(!1===ze)return;const se=new Ne.Hp({next:()=>{se.unsubscribe(),Me()}});return(0,w.Xf)(ze(...ne)).subscribe(se)}var Ae=y(3581),Pe=y(9272),Se=y(4707);const ke=["*"];let Ce;function je(Me){return function Te(){if(void 0===Ce&&(Ce=null,typeof window<"u")){const Me=window;void 0!==Me.trustedTypes&&(Ce=Me.trustedTypes.createPolicy("angular#components",{createHTML:ze=>ze}))}return Ce}()?.createHTML(Me)||Me}function ut(Me){return Error(`Unable to find icon with the name "${Me}"`)}function Gt(Me){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Me}".`)}function Wt(Me){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Me}".`)}class Je{constructor(ze,ne,se){this.url=ze,this.svgText=ne,this.options=se}}let le=(()=>{class Me{constructor(ne,se,Ee,$e){this._httpClient=ne,this._sanitizer=se,this._errorHandler=$e,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Ee}addSvgIcon(ne,se,Ee){return this.addSvgIconInNamespace("",ne,se,Ee)}addSvgIconLiteral(ne,se,Ee){return this.addSvgIconLiteralInNamespace("",ne,se,Ee)}addSvgIconInNamespace(ne,se,Ee,$e){return this._addSvgIconConfig(ne,se,new Je(Ee,null,$e))}addSvgIconResolver(ne){return this._resolvers.push(ne),this}addSvgIconLiteralInNamespace(ne,se,Ee,$e){const it=this._sanitizer.sanitize(a.q3G.HTML,Ee);if(!it)throw Wt(Ee);const vt=je(it);return this._addSvgIconConfig(ne,se,new Je("",vt,$e))}addSvgIconSet(ne,se){return this.addSvgIconSetInNamespace("",ne,se)}addSvgIconSetLiteral(ne,se){return this.addSvgIconSetLiteralInNamespace("",ne,se)}addSvgIconSetInNamespace(ne,se,Ee){return this._addSvgIconSetConfig(ne,new Je(se,null,Ee))}addSvgIconSetLiteralInNamespace(ne,se,Ee){const $e=this._sanitizer.sanitize(a.q3G.HTML,se);if(!$e)throw Wt(se);const it=je($e);return this._addSvgIconSetConfig(ne,new Je("",it,Ee))}registerFontClassAlias(ne,se=ne){return this._fontCssClassesByAlias.set(ne,se),this}classNameForFontAlias(ne){return this._fontCssClassesByAlias.get(ne)||ne}setDefaultFontSetClass(...ne){return this._defaultFontSetClass=ne,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ne){const se=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,ne);if(!se)throw Gt(ne);const Ee=this._cachedIconsByUrl.get(se);return Ee?(0,_.of)(j(Ee)):this._loadSvgIconFromConfig(new Je(ne,null)).pipe((0,Y.b)($e=>this._cachedIconsByUrl.set(se,$e)),(0,O.U)($e=>j($e)))}getNamedSvgIcon(ne,se=""){const Ee=F(se,ne);let $e=this._svgIconConfigs.get(Ee);if($e)return this._getSvgFromConfig($e);if($e=this._getIconConfigFromResolvers(se,ne),$e)return this._svgIconConfigs.set(Ee,$e),this._getSvgFromConfig($e);const it=this._iconSetConfigs.get(se);return it?this._getSvgFromIconSetConfigs(ne,it):function M(Me,ze){const ne=(0,x.m)(Me)?Me:()=>Me,se=Ee=>Ee.error(ne());return new v.y(ze?Ee=>ze.schedule(se,0,Ee):se)}(ut(Ee))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ne){return ne.svgText?(0,_.of)(j(this._svgElementFromConfig(ne))):this._loadSvgIconFromConfig(ne).pipe((0,O.U)(se=>j(se)))}_getSvgFromIconSetConfigs(ne,se){const Ee=this._extractIconWithNameFromAnySet(ne,se);if(Ee)return(0,_.of)(Ee);const $e=se.filter(it=>!it.svgText).map(it=>this._loadSvgIconSetFromConfig(it).pipe(ie(vt=>{const Ft=`Loading icon set URL: ${this._sanitizer.sanitize(a.q3G.RESOURCE_URL,it.url)} failed: ${vt.message}`;return this._errorHandler.handleError(new Error(Ft)),(0,_.of)(null)})));return(0,N.D)($e).pipe((0,O.U)(()=>{const it=this._extractIconWithNameFromAnySet(ne,se);if(!it)throw ut(ne);return it}))}_extractIconWithNameFromAnySet(ne,se){for(let Ee=se.length-1;Ee>=0;Ee--){const $e=se[Ee];if($e.svgText&&$e.svgText.toString().indexOf(ne)>-1){const it=this._svgElementFromConfig($e),vt=this._extractSvgIconFromSet(it,ne,$e.options);if(vt)return vt}}return null}_loadSvgIconFromConfig(ne){return this._fetchIcon(ne).pipe((0,Y.b)(se=>ne.svgText=se),(0,O.U)(()=>this._svgElementFromConfig(ne)))}_loadSvgIconSetFromConfig(ne){return ne.svgText?(0,_.of)(null):this._fetchIcon(ne).pipe((0,Y.b)(se=>ne.svgText=se))}_extractSvgIconFromSet(ne,se,Ee){const $e=ne.querySelector(`[id="${se}"]`);if(!$e)return null;const it=$e.cloneNode(!0);if(it.removeAttribute("id"),"svg"===it.nodeName.toLowerCase())return this._setSvgAttributes(it,Ee);if("symbol"===it.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(it),Ee);const vt=this._svgElementFromString(je("<svg></svg>"));return vt.appendChild(it),this._setSvgAttributes(vt,Ee)}_svgElementFromString(ne){const se=this._document.createElement("DIV");se.innerHTML=ne;const Ee=se.querySelector("svg");if(!Ee)throw Error("<svg> tag not found");return Ee}_toSvgElement(ne){const se=this._svgElementFromString(je("<svg></svg>")),Ee=ne.attributes;for(let $e=0;$e<Ee.length;$e++){const{name:it,value:vt}=Ee[$e];"id"!==it&&se.setAttribute(it,vt)}for(let $e=0;$e<ne.childNodes.length;$e++)ne.childNodes[$e].nodeType===this._document.ELEMENT_NODE&&se.appendChild(ne.childNodes[$e].cloneNode(!0));return se}_setSvgAttributes(ne,se){return ne.setAttribute("fit",""),ne.setAttribute("height","100%"),ne.setAttribute("width","100%"),ne.setAttribute("preserveAspectRatio","xMidYMid meet"),ne.setAttribute("focusable","false"),se&&se.viewBox&&ne.setAttribute("viewBox",se.viewBox),ne}_fetchIcon(ne){const{url:se,options:Ee}=ne,$e=Ee?.withCredentials??!1;if(!this._httpClient)throw function Dt(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==se)throw Error(`Cannot fetch icon from URL "${se}".`);const it=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,se);if(!it)throw Gt(se);const vt=this._inProgressUrlFetches.get(it);if(vt)return vt;const pt=this._httpClient.get(it,{responseType:"text",withCredentials:$e}).pipe((0,O.U)(Ft=>je(Ft)),(0,X.x)(()=>this._inProgressUrlFetches.delete(it)),function Ge(Me={}){const{connector:ze=(()=>new ce.x),resetOnError:ne=!0,resetOnComplete:se=!0,resetOnRefCountZero:Ee=!0}=Me;return $e=>{let it,vt,pt,Ft=0,lt=!1,Pt=!1;const Ct=()=>{vt?.unsubscribe(),vt=void 0},nn=()=>{Ct(),it=pt=void 0,lt=Pt=!1},hi=()=>{const rt=it;nn(),rt?.unsubscribe()};return(0,R.e)((rt,Tn)=>{Ft++,!Pt&&!lt&&Ct();const ln=pt=pt??ze();Tn.add(()=>{Ft--,0===Ft&&!Pt&&!lt&&(vt=Ve(hi,Ee))}),ln.subscribe(Tn),!it&&Ft>0&&(it=new Ne.Hp({next:Kn=>ln.next(Kn),error:Kn=>{Pt=!0,Ct(),vt=Ve(nn,ne,Kn),ln.error(Kn)},complete:()=>{lt=!0,Ct(),vt=Ve(nn,se),ln.complete()}}),(0,w.Xf)(rt).subscribe(it))})($e)}}());return this._inProgressUrlFetches.set(it,pt),pt}_addSvgIconConfig(ne,se,Ee){return this._svgIconConfigs.set(F(ne,se),Ee),this}_addSvgIconSetConfig(ne,se){const Ee=this._iconSetConfigs.get(ne);return Ee?Ee.push(se):this._iconSetConfigs.set(ne,[se]),this}_svgElementFromConfig(ne){if(!ne.svgElement){const se=this._svgElementFromString(ne.svgText);this._setSvgAttributes(se,ne.options),ne.svgElement=se}return ne.svgElement}_getIconConfigFromResolvers(ne,se){for(let Ee=0;Ee<this._resolvers.length;Ee++){const $e=this._resolvers[Ee](se,ne);if($e)return z($e)?new Je($e.url,null,$e.options):new Je($e,null)}}static#e=this.\u0275fac=function(se){return new(se||Me)(a.LFG(Pe.eN,8),a.LFG(Se.H7),a.LFG(V.K0,8),a.LFG(a.qLn))};static#t=this.\u0275prov=a.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})();function j(Me){return Me.cloneNode(!0)}function F(Me,ze){return Me+":"+ze}function z(Me){return!(!Me.url||!Me.options)}const H=(0,i.pj)(class{constructor(Me){this._elementRef=Me}}),Q=new a.OlP("MAT_ICON_DEFAULT_OPTIONS"),de=new a.OlP("mat-icon-location",{providedIn:"root",factory:function ge(){const Me=(0,a.f3M)(V.K0),ze=Me?Me.location:null;return{getPathname:()=>ze?ze.pathname+ze.search:""}}}),Fe=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Be=Fe.map(Me=>`[${Me}]`).join(", "),_t=/^url\(['"]?#(.*?)['"]?\)$/;let Ke=(()=>{class Me extends H{get inline(){return this._inline}set inline(ne){this._inline=(0,Z.Ig)(ne)}get svgIcon(){return this._svgIcon}set svgIcon(ne){ne!==this._svgIcon&&(ne?this._updateSvgIcon(ne):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ne)}get fontSet(){return this._fontSet}set fontSet(ne){const se=this._cleanupFontValue(ne);se!==this._fontSet&&(this._fontSet=se,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ne){const se=this._cleanupFontValue(ne);se!==this._fontIcon&&(this._fontIcon=se,this._updateFontIconClasses())}constructor(ne,se,Ee,$e,it,vt){super(ne),this._iconRegistry=se,this._location=$e,this._errorHandler=it,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=P.w0.EMPTY,vt&&(vt.color&&(this.color=this.defaultColor=vt.color),vt.fontSet&&(this.fontSet=vt.fontSet)),Ee||ne.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(ne){if(!ne)return["",""];const se=ne.split(":");switch(se.length){case 1:return["",se[0]];case 2:return se;default:throw Error(`Invalid icon name: "${ne}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ne=this._elementsWithExternalReferences;if(ne&&ne.size){const se=this._location.getPathname();se!==this._previousPath&&(this._previousPath=se,this._prependPathToReferences(se))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ne){this._clearSvgElement();const se=this._location.getPathname();this._previousPath=se,this._cacheChildrenWithExternalReferences(ne),this._prependPathToReferences(se),this._elementRef.nativeElement.appendChild(ne)}_clearSvgElement(){const ne=this._elementRef.nativeElement;let se=ne.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();se--;){const Ee=ne.childNodes[se];(1!==Ee.nodeType||"svg"===Ee.nodeName.toLowerCase())&&Ee.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ne=this._elementRef.nativeElement,se=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ee=>Ee.length>0);this._previousFontSetClass.forEach(Ee=>ne.classList.remove(Ee)),se.forEach(Ee=>ne.classList.add(Ee)),this._previousFontSetClass=se,this.fontIcon!==this._previousFontIconClass&&!se.includes("mat-ligature-font")&&(this._previousFontIconClass&&ne.classList.remove(this._previousFontIconClass),this.fontIcon&&ne.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ne){return"string"==typeof ne?ne.trim().split(" ")[0]:ne}_prependPathToReferences(ne){const se=this._elementsWithExternalReferences;se&&se.forEach((Ee,$e)=>{Ee.forEach(it=>{$e.setAttribute(it.name,`url('${ne}#${it.value}')`)})})}_cacheChildrenWithExternalReferences(ne){const se=ne.querySelectorAll(Be),Ee=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let $e=0;$e<se.length;$e++)Fe.forEach(it=>{const vt=se[$e],pt=vt.getAttribute(it),Ft=pt?pt.match(_t):null;if(Ft){let lt=Ee.get(vt);lt||(lt=[],Ee.set(vt,lt)),lt.push({name:it,value:Ft[1]})}})}_updateSvgIcon(ne){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ne){const[se,Ee]=this._splitIconName(ne);se&&(this._svgNamespace=se),Ee&&(this._svgName=Ee),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ee,se).pipe((0,Ae.q)(1)).subscribe($e=>this._setSvgElement($e),$e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${se}:${Ee}! ${$e.message}`))})}}static#e=this.\u0275fac=function(se){return new(se||Me)(a.Y36(a.SBq),a.Y36(le),a.$8M("aria-hidden"),a.Y36(de),a.Y36(a.qLn),a.Y36(Q,8))};static#t=this.\u0275cmp=a.Xpm({type:Me,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(se,Ee){2&se&&(a.uIk("data-mat-icon-type",Ee._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ee._svgName||Ee.fontIcon)("data-mat-icon-namespace",Ee._svgNamespace||Ee.fontSet)("fontIcon",Ee._usingFontIcon()?Ee.fontIcon:null),a.ekj("mat-icon-inline",Ee.inline)("mat-icon-no-color","primary"!==Ee.color&&"accent"!==Ee.color&&"warn"!==Ee.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[a.qOj],ngContentSelectors:ke,decls:1,vars:0,template:function(se,Ee){1&se&&(a.F$t(),a.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return Me})(),et=(()=>{class Me{static#e=this.\u0275fac=function(se){return new(se||Me)};static#t=this.\u0275mod=a.oAB({type:Me});static#n=this.\u0275inj=a.cJS({imports:[i.BQ,i.BQ]})}return Me})()},7361:(De,C,y)=>{"use strict";y.d(C,{Nh:()=>ae,SP:()=>In,uD:()=>$e,uX:()=>Tn});var a=y(9462),i=y(1322),Z=y(9021),V=y(6512),_=y(8267),v=y(8654),x=y(4877),M=y(9592),N=y(9453),P=y(6058),Y=y(9627),O=y(4991),w=y(8025),I=y(7371),R=y(5117),ie=y(19),X=y(4263),ce=y(5779),Ne=y(3581),Ge=y(2835),Ve=y(1800),Ae=y(1497),Pe=y(6e3),Se=y(5988),ke=y(9467),Ce=y(3844),Te=y(7605);function je(ee,he){}const ut=ee=>({animationDuration:ee}),Dt=(ee,he)=>({value:ee,params:he});function Gt(ee,he){1&ee&&i.Hsn(0)}const Wt=["*"],Je=["tabListContainer"],le=["tabList"],re=["tabListInner"],K=["nextPaginator"],j=["previousPaginator"],F=["tabBodyWrapper"],z=["tabHeader"];function H(ee,he){}function Q(ee,he){if(1&ee&&i.YNc(0,H,0,0,"ng-template",10),2&ee){const S=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",S.templateLabel)}}function de(ee,he){if(1&ee&&i._uU(0),2&ee){const S=i.oxw().$implicit;i.Oqu(S.textLabel)}}function ge(ee,he){if(1&ee){const S=i.EpF();i.TgZ(0,"div",4,5),i.NdJ("click",function(){const ue=i.CHM(S),Oe=ue.$implicit,Qe=ue.$index,Mt=i.oxw(),kt=i.MAs(1);return i.KtG(Mt._handleClick(Oe,kt,Qe))})("cdkFocusChange",function(ue){const Qe=i.CHM(S).$index,Mt=i.oxw();return i.KtG(Mt._tabFocusChanged(ue,Qe))}),i._UZ(2,"span",6)(3,"div",7),i.TgZ(4,"span",8)(5,"span",9),i.YNc(6,Q,1,1,null,10)(7,de,1,1),i.qZA()()()}if(2&ee){const S=he.$implicit,J=he.$index,ue=i.MAs(1),Oe=i.oxw();i.ekj("mdc-tab--active",Oe.selectedIndex===J),i.Q6J("id",Oe._getTabLabelId(J))("ngClass",S.labelClass)("disabled",S.disabled)("fitInkBarToContent",Oe.fitInkBarToContent),i.uIk("tabIndex",Oe._getTabIndex(J))("aria-posinset",J+1)("aria-setsize",Oe._tabs.length)("aria-controls",Oe._getTabContentId(J))("aria-selected",Oe.selectedIndex===J)("aria-label",S.ariaLabel||null)("aria-labelledby",!S.ariaLabel&&S.ariaLabelledby?S.ariaLabelledby:null),i.xp6(3),i.Q6J("matRippleTrigger",ue)("matRippleDisabled",S.disabled||Oe.disableRipple),i.xp6(3),i.um2(6,S.templateLabel?6:7)}}function Fe(ee,he){if(1&ee){const S=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){i.CHM(S);const ue=i.oxw();return i.KtG(ue._removeTabBodyWrapperHeight())})("_onCentering",function(ue){i.CHM(S);const Oe=i.oxw();return i.KtG(Oe._setTabBodyWrapperHeight(ue))}),i.qZA()}if(2&ee){const S=he.$implicit,J=he.$index,ue=i.oxw();i.ekj("mat-mdc-tab-body-active",ue.selectedIndex===J),i.Q6J("id",ue._getTabContentId(J))("ngClass",S.bodyClass)("content",S.content)("position",S.position)("origin",S.origin)("animationDuration",ue.animationDuration)("preserveContent",ue.preserveContent),i.uIk("tabindex",null!=ue.contentTabIndex&&ue.selectedIndex===J?ue.contentTabIndex:null)("aria-labelledby",ue._getTabLabelId(J))("aria-hidden",ue.selectedIndex!==J)}}const Ke={translateTab:(0,Pe.X$)("translateTab",[(0,Pe.SB)("center, void, left-origin-center, right-origin-center",(0,Pe.oB)({transform:"none"})),(0,Pe.SB)("left",(0,Pe.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Pe.SB)("right",(0,Pe.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Pe.eR)("* => left, * => right, left => center, right => center",(0,Pe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Pe.eR)("void => left-origin-center",[(0,Pe.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Pe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Pe.eR)("void => right-origin-center",[(0,Pe.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Pe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let et=(()=>{class ee extends V.Pl{constructor(S,J,ue,Oe){super(S,J,Oe),this._host=ue,this._centeringSub=M.w0.EMPTY,this._leavingSub=M.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,ie.O)(this._host._isCenterPosition(this._host._position))).subscribe(S=>{S&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>Me)),i.Y36(a.K0))};static#t=this.\u0275dir=i.lG2({type:ee,selectors:[["","matTabBodyHost",""]],features:[i.qOj]})}return ee})(),Me=(()=>{class ee{set position(S){this._positionIndex=S,this._computePositionAnimationState()}constructor(S,J,ue){this._elementRef=S,this._dir=J,this._dirChangeSubscription=M.w0.EMPTY,this._translateTabComplete=new N.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,J&&(this._dirChangeSubscription=J.change.subscribe(Oe=>{this._computePositionAnimationState(Oe),ue.markForCheck()})),this._translateTabComplete.pipe((0,X.x)((Oe,Qe)=>Oe.fromState===Qe.fromState&&Oe.toState===Qe.toState)).subscribe(Oe=>{this._isCenterPosition(Oe.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Oe.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(S){const J=this._isCenterPosition(S.toState);this._beforeCentering.emit(J),J&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(S){return"center"==S||"left-origin-center"==S||"right-origin-center"==S}_computePositionAnimationState(S=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==S?"left":"right":this._positionIndex>0?"ltr"==S?"right":"left":"center"}_computePositionFromOrigin(S){const J=this._getLayoutDirection();return"ltr"==J&&S<=0||"rtl"==J&&S>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i.SBq),i.Y36(x.Is,8),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:ee,selectors:[["mat-tab-body"]],viewQuery:function(J,ue){if(1&J&&i.Gf(V.Pl,5),2&J){let Oe;i.iGM(Oe=i.CRH())&&(ue._portalHost=Oe.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(J,ue){1&J&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(Qe){return ue._onTranslateTabStarted(Qe)})("@translateTab.done",function(Qe){return ue._translateTabComplete.next(Qe)}),i.YNc(2,je,0,0,"ng-template",2),i.qZA()),2&J&&i.Q6J("@translateTab",i.WLB(3,Dt,ue._position,i.VKq(1,ut,ue.animationDuration)))},dependencies:[et],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Ke.translateTab]}})}return ee})();const ze=new i.OlP("MatTabContent");let ne=(()=>{class ee{constructor(S){this.template=S}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:ee,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:ze,useExisting:ee}])]})}return ee})();const se=new i.OlP("MatTabLabel"),Ee=new i.OlP("MAT_TAB");let $e=(()=>{class ee extends V.ig{constructor(S,J,ue){super(S,J),this._closestTab=ue}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Ee,8))};static#t=this.\u0275dir=i.lG2({type:ee,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:se,useExisting:ee}]),i.qOj]})}return ee})();const it="mdc-tab-indicator--active",vt="mdc-tab-indicator--no-transition";class pt{constructor(he){this._items=he}hide(){this._items.forEach(he=>he.deactivateInkBar())}alignToElement(he){const S=this._items.find(ue=>ue.elementRef.nativeElement===he),J=this._currentItem;if(S!==J&&(J?.deactivateInkBar(),S)){const ue=J?.elementRef.nativeElement.getBoundingClientRect?.();S.activateInkBar(ue),this._currentItem=S}}}function Ft(ee){return class extends ee{constructor(...he){super(...he),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(he){const S=(0,Se.Ig)(he);this._fitToContent!==S&&(this._fitToContent=S,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(he){const S=this.elementRef.nativeElement;if(!he||!S.getBoundingClientRect||!this._inkBarContentElement)return void S.classList.add(it);const J=S.getBoundingClientRect(),ue=he.width/J.width,Oe=he.left-J.left;S.classList.add(vt),this._inkBarContentElement.style.setProperty("transform",`translateX(${Oe}px) scaleX(${ue})`),S.getBoundingClientRect(),S.classList.remove(vt),S.classList.add(it),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(it)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const he=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=he.createElement("span"),this._inkBarContentElement=he.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const Ct=Ft((0,Z.Id)(class{}));let nn=(()=>{class ee extends Ct{constructor(S){super(),this.elementRef=S}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:ee,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(J,ue){2&J&&(i.uIk("aria-disabled",!!ue.disabled),i.ekj("mat-mdc-tab-disabled",ue.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[i.qOj]})}return ee})();const hi=(0,Z.Id)(class{}),rt=new i.OlP("MAT_TAB_GROUP");let Tn=(()=>{class ee extends hi{get templateLabel(){return this._templateLabel}set templateLabel(S){this._setTemplateLabelInput(S)}get content(){return this._contentPortal}constructor(S,J){super(),this._viewContainerRef=S,this._closestTabGroup=J,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new N.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(S){(S.hasOwnProperty("textLabel")||S.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new V.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(S){S&&S._closestTab===this&&(this._templateLabel=S)}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i.s_b),i.Y36(rt,8))};static#t=this.\u0275cmp=i.Xpm({type:ee,selectors:[["mat-tab"]],contentQueries:function(J,ue,Oe){if(1&J&&(i.Suo(Oe,$e,5),i.Suo(Oe,ne,7,i.Rgc)),2&J){let Qe;i.iGM(Qe=i.CRH())&&(ue.templateLabel=Qe.first),i.iGM(Qe=i.CRH())&&(ue._explicitContent=Qe.first)}},viewQuery:function(J,ue){if(1&J&&i.Gf(i.Rgc,7),2&J){let Oe;i.iGM(Oe=i.CRH())&&(ue._implicitContent=Oe.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[i._Bn([{provide:Ee,useExisting:ee}]),i.qOj,i.TTD],ngContentSelectors:Wt,decls:1,vars:0,template:function(J,ue){1&J&&(i.F$t(),i.YNc(0,Gt,1,0,"ng-template"))},encapsulation:2})}return ee})();const ln=(0,Ce.i$)({passive:!0});let Pi=(()=>{class ee{get disablePagination(){return this._disablePagination}set disablePagination(S){this._disablePagination=(0,Se.Ig)(S)}get selectedIndex(){return this._selectedIndex}set selectedIndex(S){S=(0,Se.su)(S),this._selectedIndex!=S&&(this._selectedIndexChanged=!0,this._selectedIndex=S,this._keyManager&&this._keyManager.updateActiveItem(S))}constructor(S,J,ue,Oe,Qe,Mt,kt){this._elementRef=S,this._changeDetectorRef=J,this._viewportRuler=ue,this._dir=Oe,this._ngZone=Qe,this._platform=Mt,this._animationMode=kt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,Qe.runOutsideAngular(()=>{(0,P.R)(S.nativeElement,"mouseleave").pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,P.R)(this._previousPaginator.nativeElement,"touchstart",ln).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,P.R)(this._nextPaginator.nativeElement,"touchstart",ln).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const S=this._dir?this._dir.change:(0,Y.of)("ltr"),J=this._viewportRuler.change(150),ue=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new v.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Ne.q)(1)).subscribe(ue),(0,O.T)(S,J,this._items.changes,this._itemsResized()).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),ue()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Oe=>{this.indexFocused.emit(Oe),this._setTabFocus(Oe)})}_itemsResized(){return"function"!=typeof ResizeObserver?w.E:this._items.changes.pipe((0,ie.O)(this._items),(0,Ge.w)(S=>new I.y(J=>this._ngZone.runOutsideAngular(()=>{const ue=new ResizeObserver(Oe=>J.next(Oe));return S.forEach(Oe=>ue.observe(Oe.elementRef.nativeElement)),()=>{ue.disconnect()}}))),(0,Ve.T)(1),(0,Ae.h)(S=>S.some(J=>J.contentRect.width>0&&J.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(S){if(!(0,Te.Vb)(S))switch(S.keyCode){case Te.K5:case Te.L_:if(this.focusIndex!==this.selectedIndex){const J=this._items.get(this.focusIndex);J&&!J.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(S))}break;default:this._keyManager.onKeydown(S)}}_onContentChanges(){const S=this._elementRef.nativeElement.textContent;S!==this._currentTextContent&&(this._currentTextContent=S||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(S){!this._isValidIndex(S)||this.focusIndex===S||!this._keyManager||this._keyManager.setActiveItem(S)}_isValidIndex(S){return!this._items||!!this._items.toArray()[S]}_setTabFocus(S){if(this._showPaginationControls&&this._scrollToLabel(S),this._items&&this._items.length){this._items.toArray()[S].focus();const J=this._tabListContainer.nativeElement;J.scrollLeft="ltr"==this._getLayoutDirection()?0:J.scrollWidth-J.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const S=this.scrollDistance,J="ltr"===this._getLayoutDirection()?-S:S;this._tabList.nativeElement.style.transform=`translateX(${Math.round(J)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(S){this._scrollTo(S)}_scrollHeader(S){return this._scrollTo(this._scrollDistance+("before"==S?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(S){this._stopInterval(),this._scrollHeader(S)}_scrollToLabel(S){if(this.disablePagination)return;const J=this._items?this._items.toArray()[S]:null;if(!J)return;const ue=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Oe,offsetWidth:Qe}=J.elementRef.nativeElement;let Mt,kt;"ltr"==this._getLayoutDirection()?(Mt=Oe,kt=Mt+Qe):(kt=this._tabListInner.nativeElement.offsetWidth-Oe,Mt=kt-Qe);const an=this.scrollDistance,gn=this.scrollDistance+ue;Mt<an?this.scrollDistance-=an-Mt:kt>gn&&(this.scrollDistance+=Math.min(kt-gn,Mt-an))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const S=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;S||(this.scrollDistance=0),S!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=S}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const S=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,J=S?S.elementRef.nativeElement:null;J?this._inkBar.alignToElement(J):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(S,J){J&&null!=J.button&&0!==J.button||(this._stopInterval(),(0,R.H)(650,100).pipe((0,ce.R)((0,O.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ue,distance:Oe}=this._scrollHeader(S);(0===Oe||Oe>=ue)&&this._stopInterval()}))}_scrollTo(S){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const J=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(J,S)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:J,distance:this._scrollDistance}}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ke.rL),i.Y36(x.Is,8),i.Y36(i.R0b),i.Y36(Ce.t4),i.Y36(i.QbO,8))};static#t=this.\u0275dir=i.lG2({type:ee,inputs:{disablePagination:"disablePagination"}})}return ee})(),Ht=(()=>{class ee extends Pi{get disableRipple(){return this._disableRipple}set disableRipple(S){this._disableRipple=(0,Se.Ig)(S)}constructor(S,J,ue,Oe,Qe,Mt,kt){super(S,J,ue,Oe,Qe,Mt,kt),this._disableRipple=!1}ngAfterContentInit(){this._inkBar=new pt(this._items),super.ngAfterContentInit()}_itemSelected(S){S.preventDefault()}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ke.rL),i.Y36(x.Is,8),i.Y36(i.R0b),i.Y36(Ce.t4),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:ee,selectors:[["mat-tab-header"]],contentQueries:function(J,ue,Oe){if(1&J&&i.Suo(Oe,nn,4),2&J){let Qe;i.iGM(Qe=i.CRH())&&(ue._items=Qe)}},viewQuery:function(J,ue){if(1&J&&(i.Gf(Je,7),i.Gf(le,7),i.Gf(re,7),i.Gf(K,5),i.Gf(j,5)),2&J){let Oe;i.iGM(Oe=i.CRH())&&(ue._tabListContainer=Oe.first),i.iGM(Oe=i.CRH())&&(ue._tabList=Oe.first),i.iGM(Oe=i.CRH())&&(ue._tabListInner=Oe.first),i.iGM(Oe=i.CRH())&&(ue._nextPaginator=Oe.first),i.iGM(Oe=i.CRH())&&(ue._previousPaginator=Oe.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(J,ue){2&J&&i.ekj("mat-mdc-tab-header-pagination-controls-enabled",ue._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==ue._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:Wt,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(J,ue){1&J&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return ue._handlePaginatorClick("before")})("mousedown",function(Qe){return ue._handlePaginatorPress("before",Qe)})("touchend",function(){return ue._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(Qe){return ue._handleKeydown(Qe)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return ue._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA()()(),i.TgZ(10,"button",9,10),i.NdJ("mousedown",function(Qe){return ue._handlePaginatorPress("after",Qe)})("click",function(){return ue._handlePaginatorClick("after")})("touchend",function(){return ue._stopInterval()}),i._UZ(12,"div",2),i.qZA()),2&J&&(i.ekj("mat-mdc-tab-header-pagination-disabled",ue._disableScrollBefore),i.Q6J("matRippleDisabled",ue._disableScrollBefore||ue.disableRipple)("disabled",ue._disableScrollBefore||null),i.xp6(3),i.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode),i.xp6(7),i.ekj("mat-mdc-tab-header-pagination-disabled",ue._disableScrollAfter),i.Q6J("matRippleDisabled",ue._disableScrollAfter||ue.disableRipple)("disabled",ue._disableScrollAfter||null))},dependencies:[Z.wG,_.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return ee})();const ei=new i.OlP("MAT_TABS_CONFIG");let wn=0;const Et=(0,Z.pj)((0,Z.Kr)(class{constructor(ee){this._elementRef=ee}}),"primary");let In=(()=>{class ee extends Et{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(S){this._fitInkBarToContent=(0,Se.Ig)(S),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(S){this._stretchTabs=(0,Se.Ig)(S)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(S){this._dynamicHeight=(0,Se.Ig)(S)}get selectedIndex(){return this._selectedIndex}set selectedIndex(S){this._indexToSelect=(0,Se.su)(S,null)}get animationDuration(){return this._animationDuration}set animationDuration(S){this._animationDuration=/^\d+$/.test(S+"")?S+"ms":S}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(S){this._contentTabIndex=(0,Se.su)(S,null)}get disablePagination(){return this._disablePagination}set disablePagination(S){this._disablePagination=(0,Se.Ig)(S)}get preserveContent(){return this._preserveContent}set preserveContent(S){this._preserveContent=(0,Se.Ig)(S)}get backgroundColor(){return this._backgroundColor}set backgroundColor(S){const J=this._elementRef.nativeElement.classList;J.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),S&&J.add("mat-tabs-with-background",`mat-background-${S}`),this._backgroundColor=S}constructor(S,J,ue,Oe){super(S),this._changeDetectorRef=J,this._animationMode=Oe,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=M.w0.EMPTY,this._tabLabelSubscription=M.w0.EMPTY,this._fitInkBarToContent=!1,this._stretchTabs=!0,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=wn++,this.animationDuration=ue&&ue.animationDuration?ue.animationDuration:"500ms",this.disablePagination=!(!ue||null==ue.disablePagination)&&ue.disablePagination,this.dynamicHeight=!(!ue||null==ue.dynamicHeight)&&ue.dynamicHeight,this.contentTabIndex=ue?.contentTabIndex??null,this.preserveContent=!!ue?.preserveContent,this.fitInkBarToContent=!(!ue||null==ue.fitInkBarToContent)&&ue.fitInkBarToContent,this.stretchTabs=!ue||null==ue.stretchTabs||ue.stretchTabs}ngAfterContentChecked(){const S=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=S){const J=null==this._selectedIndex;if(!J){this.selectedTabChange.emit(this._createChangeEvent(S));const ue=this._tabBodyWrapper.nativeElement;ue.style.minHeight=ue.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ue,Oe)=>ue.isActive=Oe===S),J||(this.selectedIndexChange.emit(S),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((J,ue)=>{J.position=ue-S,null!=this._selectedIndex&&0==J.position&&!J.origin&&(J.origin=S-this._selectedIndex)}),this._selectedIndex!==S&&(this._selectedIndex=S,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const S=this._clampTabIndex(this._indexToSelect);if(S===this._selectedIndex){const J=this._tabs.toArray();let ue;for(let Oe=0;Oe<J.length;Oe++)if(J[Oe].isActive){this._indexToSelect=this._selectedIndex=Oe,this._lastFocusedTabIndex=null,ue=J[Oe];break}!ue&&J[S]&&Promise.resolve().then(()=>{J[S].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(S))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,ie.O)(this._allTabs)).subscribe(S=>{this._tabs.reset(S.filter(J=>J._closestTabGroup===this||!J._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(S){const J=this._tabHeader;J&&(J.focusIndex=S)}_focusChanged(S){this._lastFocusedTabIndex=S,this.focusChange.emit(this._createChangeEvent(S))}_createChangeEvent(S){const J=new Vn;return J.index=S,this._tabs&&this._tabs.length&&(J.tab=this._tabs.toArray()[S]),J}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,O.T)(...this._tabs.map(S=>S._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(S){return Math.min(this._tabs.length-1,Math.max(S||0,0))}_getTabLabelId(S){return`mat-tab-label-${this._groupId}-${S}`}_getTabContentId(S){return`mat-tab-content-${this._groupId}-${S}`}_setTabBodyWrapperHeight(S){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const J=this._tabBodyWrapper.nativeElement;J.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(J.style.height=S+"px")}_removeTabBodyWrapperHeight(){const S=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=S.clientHeight,S.style.height="",this.animationDone.emit()}_handleClick(S,J,ue){J.focusIndex=ue,S.disabled||(this.selectedIndex=ue)}_getTabIndex(S){return S===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(S,J){S&&"mouse"!==S&&"touch"!==S&&(this._tabHeader.focusIndex=J)}static#e=this.\u0275fac=function(J){return new(J||ee)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ei,8),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:ee,selectors:[["mat-tab-group"]],contentQueries:function(J,ue,Oe){if(1&J&&i.Suo(Oe,Tn,5),2&J){let Qe;i.iGM(Qe=i.CRH())&&(ue._allTabs=Qe)}},viewQuery:function(J,ue){if(1&J&&(i.Gf(F,5),i.Gf(z,5)),2&J){let Oe;i.iGM(Oe=i.CRH())&&(ue._tabBodyWrapper=Oe.first),i.iGM(Oe=i.CRH())&&(ue._tabHeader=Oe.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(J,ue){2&J&&(i.Udp("--mat-tab-animation-duration",ue.animationDuration),i.ekj("mat-mdc-tab-group-dynamic-height",ue.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===ue.headerPosition)("mat-mdc-tab-group-stretch-tabs",ue.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"],dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[i._Bn([{provide:rt,useExisting:ee}]),i.qOj],decls:8,vars:5,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(J,ue){1&J&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(Qe){return ue._focusChanged(Qe)})("selectFocusedIndex",function(Qe){return ue.selectedIndex=Qe}),i.SjG(2,ge,8,16,"div",12,i.x6l),i.qZA(),i.TgZ(4,"div",2,3),i.SjG(6,Fe,1,12,"mat-tab-body",13,i.x6l),i.qZA()),2&J&&(i.Q6J("selectedIndex",ue.selectedIndex||0)("disableRipple",ue.disableRipple)("disablePagination",ue.disablePagination),i.xp6(2),i.wJu(ue._tabs),i.xp6(2),i.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode),i.xp6(2),i.wJu(ue._tabs))},dependencies:[a.mk,V.Pl,Z.wG,v.kH,Me,nn,Ht],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return ee})();class Vn{}let ae=(()=>{class ee{static#e=this.\u0275fac=function(J){return new(J||ee)};static#t=this.\u0275mod=i.oAB({type:ee});static#n=this.\u0275inj=i.cJS({imports:[a.ez,Z.BQ,V.eL,Z.si,_.Q8,v.rt,Z.BQ]})}return ee})()},4707:(De,C,y)=>{"use strict";y.d(C,{H7:()=>wn,b2:()=>ze,q6:()=>_t,se:()=>ke});var a=y(1322),i=y(9462);class Z extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class V extends Z{static makeCurrent(){(0,i.HT)(new V)}onAndCancel(he,S,J){return he.addEventListener(S,J),()=>{he.removeEventListener(S,J)}}dispatchEvent(he,S){he.dispatchEvent(S)}remove(he){he.parentNode&&he.parentNode.removeChild(he)}createElement(he,S){return(S=S||this.getDefaultDocument()).createElement(he)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(he){return he.nodeType===Node.ELEMENT_NODE}isShadowRoot(he){return he instanceof DocumentFragment}getGlobalEventTarget(he,S){return"window"===S?window:"document"===S?he:"body"===S?he.body:null}getBaseHref(he){const S=function v(){return _=_||document.querySelector("base"),_?_.getAttribute("href"):null}();return null==S?null:function x(ee){return new URL(ee,document.baseURI).pathname}(S)}resetBaseElement(){_=null}getUserAgent(){return window.navigator.userAgent}getCookie(he){return(0,i.Mx)(document.cookie,he)}}let _=null,N=(()=>{class ee{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(J){return new(J||ee)};static#t=this.\u0275prov=a.Yz7({token:ee,factory:ee.\u0275fac})}return ee})();const P=new a.OlP("EventManagerPlugins");let Y=(()=>{class ee{constructor(S,J){this._zone=J,this._eventNameToPlugin=new Map,S.forEach(ue=>{ue.manager=this}),this._plugins=S.slice().reverse()}addEventListener(S,J,ue){return this._findPluginFor(J).addEventListener(S,J,ue)}getZone(){return this._zone}_findPluginFor(S){let J=this._eventNameToPlugin.get(S);if(J)return J;if(J=this._plugins.find(Oe=>Oe.supports(S)),!J)throw new a.vHH(5101,!1);return this._eventNameToPlugin.set(S,J),J}static#e=this.\u0275fac=function(J){return new(J||ee)(a.LFG(P),a.LFG(a.R0b))};static#t=this.\u0275prov=a.Yz7({token:ee,factory:ee.\u0275fac})}return ee})();class O{constructor(he){this._doc=he}}const w="ng-app-id";let I=(()=>{class ee{constructor(S,J,ue,Oe={}){this.doc=S,this.appId=J,this.nonce=ue,this.platformId=Oe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,i.PM)(Oe),this.resetHostNodes()}addStyles(S){for(const J of S)1===this.changeUsageCount(J,1)&&this.onStyleAdded(J)}removeStyles(S){for(const J of S)this.changeUsageCount(J,-1)<=0&&this.onStyleRemoved(J)}ngOnDestroy(){const S=this.styleNodesInDOM;S&&(S.forEach(J=>J.remove()),S.clear());for(const J of this.getAllStyles())this.onStyleRemoved(J);this.resetHostNodes()}addHost(S){this.hostNodes.add(S);for(const J of this.getAllStyles())this.addStyleToHost(S,J)}removeHost(S){this.hostNodes.delete(S)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(S){for(const J of this.hostNodes)this.addStyleToHost(J,S)}onStyleRemoved(S){const J=this.styleRef;J.get(S)?.elements?.forEach(ue=>ue.remove()),J.delete(S)}collectServerRenderedStyles(){const S=this.doc.head?.querySelectorAll(`style[${w}="${this.appId}"]`);if(S?.length){const J=new Map;return S.forEach(ue=>{null!=ue.textContent&&J.set(ue.textContent,ue)}),J}return null}changeUsageCount(S,J){const ue=this.styleRef;if(ue.has(S)){const Oe=ue.get(S);return Oe.usage+=J,Oe.usage}return ue.set(S,{usage:J,elements:[]}),J}getStyleElement(S,J){const ue=this.styleNodesInDOM,Oe=ue?.get(J);if(Oe?.parentNode===S)return ue.delete(J),Oe.removeAttribute(w),Oe;{const Qe=this.doc.createElement("style");return this.nonce&&Qe.setAttribute("nonce",this.nonce),Qe.textContent=J,this.platformIsServer&&Qe.setAttribute(w,this.appId),S.appendChild(Qe),Qe}}addStyleToHost(S,J){const ue=this.getStyleElement(S,J),Oe=this.styleRef,Qe=Oe.get(J)?.elements;Qe?Qe.push(ue):Oe.set(J,{elements:[ue],usage:1})}resetHostNodes(){const S=this.hostNodes;S.clear(),S.add(this.doc.head)}static#e=this.\u0275fac=function(J){return new(J||ee)(a.LFG(i.K0),a.LFG(a.AFp),a.LFG(a.Ojb,8),a.LFG(a.Lbi))};static#t=this.\u0275prov=a.Yz7({token:ee,factory:ee.\u0275fac})}return ee})();const R={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/"},ie=/%COMP%/g,X="%COMP%",ce=`_nghost-${X}`,Ne=`_ngcontent-${X}`,Ve=new a.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!0});function Se(ee,he){return he.map(S=>S.replace(ie,ee))}let ke=(()=>{class ee{constructor(S,J,ue,Oe,Qe,Mt,kt,an=null){this.eventManager=S,this.sharedStylesHost=J,this.appId=ue,this.removeStylesOnCompDestroy=Oe,this.doc=Qe,this.platformId=Mt,this.ngZone=kt,this.nonce=an,this.rendererByCompId=new Map,this.platformIsServer=(0,i.PM)(Mt),this.defaultRenderer=new Ce(S,Qe,kt,this.platformIsServer)}createRenderer(S,J){if(!S||!J)return this.defaultRenderer;this.platformIsServer&&J.encapsulation===a.ifc.ShadowDom&&(J={...J,encapsulation:a.ifc.Emulated});const ue=this.getOrCreateRenderer(S,J);return ue instanceof Wt?ue.applyToHost(S):ue instanceof Gt&&ue.applyStyles(),ue}getOrCreateRenderer(S,J){const ue=this.rendererByCompId;let Oe=ue.get(J.id);if(!Oe){const Qe=this.doc,Mt=this.ngZone,kt=this.eventManager,an=this.sharedStylesHost,gn=this.removeStylesOnCompDestroy,qt=this.platformIsServer;switch(J.encapsulation){case a.ifc.Emulated:Oe=new Wt(kt,an,J,this.appId,gn,Qe,Mt,qt);break;case a.ifc.ShadowDom:return new Dt(kt,an,S,J,Qe,Mt,this.nonce,qt);default:Oe=new Gt(kt,an,J,gn,Qe,Mt,qt)}ue.set(J.id,Oe)}return Oe}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(J){return new(J||ee)(a.LFG(Y),a.LFG(I),a.LFG(a.AFp),a.LFG(Ve),a.LFG(i.K0),a.LFG(a.Lbi),a.LFG(a.R0b),a.LFG(a.Ojb))};static#t=this.\u0275prov=a.Yz7({token:ee,factory:ee.\u0275fac})}return ee})();class Ce{constructor(he,S,J,ue){this.eventManager=he,this.doc=S,this.ngZone=J,this.platformIsServer=ue,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(he,S){return S?this.doc.createElementNS(R[S]||S,he):this.doc.createElement(he)}createComment(he){return this.doc.createComment(he)}createText(he){return this.doc.createTextNode(he)}appendChild(he,S){(ut(he)?he.content:he).appendChild(S)}insertBefore(he,S,J){he&&(ut(he)?he.content:he).insertBefore(S,J)}removeChild(he,S){he&&he.removeChild(S)}selectRootElement(he,S){let J="string"==typeof he?this.doc.querySelector(he):he;if(!J)throw new a.vHH(-5104,!1);return S||(J.textContent=""),J}parentNode(he){return he.parentNode}nextSibling(he){return he.nextSibling}setAttribute(he,S,J,ue){if(ue){S=ue+":"+S;const Oe=R[ue];Oe?he.setAttributeNS(Oe,S,J):he.setAttribute(S,J)}else he.setAttribute(S,J)}removeAttribute(he,S,J){if(J){const ue=R[J];ue?he.removeAttributeNS(ue,S):he.removeAttribute(`${J}:${S}`)}else he.removeAttribute(S)}addClass(he,S){he.classList.add(S)}removeClass(he,S){he.classList.remove(S)}setStyle(he,S,J,ue){ue&(a.JOm.DashCase|a.JOm.Important)?he.style.setProperty(S,J,ue&a.JOm.Important?"important":""):he.style[S]=J}removeStyle(he,S,J){J&a.JOm.DashCase?he.style.removeProperty(S):he.style[S]=""}setProperty(he,S,J){null!=he&&(he[S]=J)}setValue(he,S){he.nodeValue=S}listen(he,S,J){if("string"==typeof he&&!(he=(0,i.q)().getGlobalEventTarget(this.doc,he)))throw new Error(`Unsupported event target ${he} for event ${S}`);return this.eventManager.addEventListener(he,S,this.decoratePreventDefault(J))}decoratePreventDefault(he){return S=>{if("__ngUnwrap__"===S)return he;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>he(S)):he(S))&&S.preventDefault()}}}function ut(ee){return"TEMPLATE"===ee.tagName&&void 0!==ee.content}class Dt extends Ce{constructor(he,S,J,ue,Oe,Qe,Mt,kt){super(he,Oe,Qe,kt),this.sharedStylesHost=S,this.hostEl=J,this.shadowRoot=J.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const an=Se(ue.id,ue.styles);for(const gn of an){const qt=document.createElement("style");Mt&&qt.setAttribute("nonce",Mt),qt.textContent=gn,this.shadowRoot.appendChild(qt)}}nodeOrShadowRoot(he){return he===this.hostEl?this.shadowRoot:he}appendChild(he,S){return super.appendChild(this.nodeOrShadowRoot(he),S)}insertBefore(he,S,J){return super.insertBefore(this.nodeOrShadowRoot(he),S,J)}removeChild(he,S){return super.removeChild(this.nodeOrShadowRoot(he),S)}parentNode(he){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(he)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Gt extends Ce{constructor(he,S,J,ue,Oe,Qe,Mt,kt){super(he,Oe,Qe,Mt),this.sharedStylesHost=S,this.removeStylesOnCompDestroy=ue,this.styles=kt?Se(kt,J.styles):J.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Wt extends Gt{constructor(he,S,J,ue,Oe,Qe,Mt,kt){const an=ue+"-"+J.id;super(he,S,J,Oe,Qe,Mt,kt,an),this.contentAttr=function Ae(ee){return Ne.replace(ie,ee)}(an),this.hostAttr=function Pe(ee){return ce.replace(ie,ee)}(an)}applyToHost(he){this.applyStyles(),this.setAttribute(he,this.hostAttr,"")}createElement(he,S){const J=super.createElement(he,S);return super.setAttribute(J,this.contentAttr,""),J}}let Je=(()=>{class ee extends O{constructor(S){super(S)}supports(S){return!0}addEventListener(S,J,ue){return S.addEventListener(J,ue,!1),()=>this.removeEventListener(S,J,ue)}removeEventListener(S,J,ue){return S.removeEventListener(J,ue)}static#e=this.\u0275fac=function(J){return new(J||ee)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:ee,factory:ee.\u0275fac})}return ee})();const le=["alt","control","meta","shift"],re={"\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"},K={alt:ee=>ee.altKey,control:ee=>ee.ctrlKey,meta:ee=>ee.metaKey,shift:ee=>ee.shiftKey};let j=(()=>{class ee extends O{constructor(S){super(S)}supports(S){return null!=ee.parseEventName(S)}addEventListener(S,J,ue){const Oe=ee.parseEventName(J),Qe=ee.eventCallback(Oe.fullKey,ue,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(S,Oe.domEventName,Qe))}static parseEventName(S){const J=S.toLowerCase().split("."),ue=J.shift();if(0===J.length||"keydown"!==ue&&"keyup"!==ue)return null;const Oe=ee._normalizeKey(J.pop());let Qe="",Mt=J.indexOf("code");if(Mt>-1&&(J.splice(Mt,1),Qe="code."),le.forEach(an=>{const gn=J.indexOf(an);gn>-1&&(J.splice(gn,1),Qe+=an+".")}),Qe+=Oe,0!=J.length||0===Oe.length)return null;const kt={};return kt.domEventName=ue,kt.fullKey=Qe,kt}static matchEventFullKeyCode(S,J){let ue=re[S.key]||S.key,Oe="";return J.indexOf("code.")>-1&&(ue=S.code,Oe="code."),!(null==ue||!ue)&&(ue=ue.toLowerCase()," "===ue?ue="space":"."===ue&&(ue="dot"),le.forEach(Qe=>{Qe!==ue&&(0,K[Qe])(S)&&(Oe+=Qe+".")}),Oe+=ue,Oe===J)}static eventCallback(S,J,ue){return Oe=>{ee.matchEventFullKeyCode(Oe,S)&&ue.runGuarded(()=>J(Oe))}}static _normalizeKey(S){return"esc"===S?"escape":S}static#e=this.\u0275fac=function(J){return new(J||ee)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:ee,factory:ee.\u0275fac})}return ee})();const _t=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:i.bD},{provide:a.g9A,useValue:function de(){V.makeCurrent()},multi:!0},{provide:i.K0,useFactory:function Fe(){return(0,a.RDi)(document),document},deps:[]}]),Ke=new a.OlP(""),et=[{provide:a.rWj,useClass:class M{addToWindow(he){a.dqk.getAngularTestability=(J,ue=!0)=>{const Oe=he.findTestabilityInTree(J,ue);if(null==Oe)throw new a.vHH(5103,!1);return Oe},a.dqk.getAllAngularTestabilities=()=>he.getAllTestabilities(),a.dqk.getAllAngularRootElements=()=>he.getAllRootElements(),a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(J=>{const ue=a.dqk.getAllAngularTestabilities();let Oe=ue.length,Qe=!1;const Mt=function(kt){Qe=Qe||kt,Oe--,0==Oe&&J(Qe)};ue.forEach(kt=>{kt.whenStable(Mt)})})}findTestabilityInTree(he,S,J){return null==S?null:he.getTestability(S)??(J?(0,i.q)().isShadowRoot(S)?this.findTestabilityInTree(he,S.host,!0):this.findTestabilityInTree(he,S.parentElement,!0):null)}},deps:[]},{provide:a.lri,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]}],Me=[{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function ge(){return new a.qLn},deps:[]},{provide:P,useClass:Je,multi:!0,deps:[i.K0,a.R0b,a.Lbi]},{provide:P,useClass:j,multi:!0,deps:[i.K0]},ke,I,Y,{provide:a.FYo,useExisting:ke},{provide:i.JF,useClass:N,deps:[]},[]];let ze=(()=>{class ee{constructor(S){}static withServerTransition(S){return{ngModule:ee,providers:[{provide:a.AFp,useValue:S.appId}]}}static#e=this.\u0275fac=function(J){return new(J||ee)(a.LFG(Ke,12))};static#t=this.\u0275mod=a.oAB({type:ee});static#n=this.\u0275inj=a.cJS({providers:[...Me,...et],imports:[i.ez,a.hGG]})}return ee})();typeof window<"u"&&window;let wn=(()=>{class ee{static#e=this.\u0275fac=function(J){return new(J||ee)};static#t=this.\u0275prov=a.Yz7({token:ee,factory:function(J){let ue=null;return ue=J?new(J||ee):a.LFG(Ot),ue},providedIn:"root"})}return ee})(),Ot=(()=>{class ee extends wn{constructor(S){super(),this._doc=S}sanitize(S,J){if(null==J)return null;switch(S){case a.q3G.NONE:return J;case a.q3G.HTML:return(0,a.qzn)(J,"HTML")?(0,a.z3N)(J):(0,a.EiD)(this._doc,String(J)).toString();case a.q3G.STYLE:return(0,a.qzn)(J,"Style")?(0,a.z3N)(J):J;case a.q3G.SCRIPT:if((0,a.qzn)(J,"Script"))return(0,a.z3N)(J);throw new a.vHH(5200,!1);case a.q3G.URL:return(0,a.qzn)(J,"URL")?(0,a.z3N)(J):(0,a.mCW)(String(J));case a.q3G.RESOURCE_URL:if((0,a.qzn)(J,"ResourceURL"))return(0,a.z3N)(J);throw new a.vHH(5201,!1);default:throw new a.vHH(5202,!1)}}bypassSecurityTrustHtml(S){return(0,a.JVY)(S)}bypassSecurityTrustStyle(S){return(0,a.L6k)(S)}bypassSecurityTrustScript(S){return(0,a.eBb)(S)}bypassSecurityTrustUrl(S){return(0,a.LAX)(S)}bypassSecurityTrustResourceUrl(S){return(0,a.pB0)(S)}static#e=this.\u0275fac=function(J){return new(J||ee)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:ee,factory:function(J){let ue=null;return ue=J?new J:function Et(ee){return new Ot(ee.get(i.K0))}(a.LFG(a.zs3)),ue},providedIn:"root"})}return ee})()},9309:(De,C,y)=>{"use strict";y.d(C,{F_:()=>N,T2:()=>O,nm:()=>I});var a=y(1322),i=y(1497),Z=y(3581),V=y(1625),_=y(8832);const v=["editor"],N="MONACO_PATH";let P=(()=>{class R{constructor(X,ce){this.ngZone=X,this.monacoPathConfig=ce,this.isMonacoLoaded$=new V.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?X.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(X){X&&(this._monacoPath=X)}loadMonaco(){const X=()=>{let Ve=this._monacoPath;window.amdRequire=window.require;const Ae=!!this.nodeRequire,Pe=Ve.includes("http");Ae&&(window.require=this.nodeRequire,Pe||(Ve=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Ve}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},Se=>console.error("Error loading monaco-editor: ",Se))};if(window.amdRequire)return X();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const Ge=document.createElement("script");Ge.type="text/javascript",Ge.src=`${this._monacoPath}/loader.js`,Ge.addEventListener("load",X),document.body.appendChild(Ge)}addElectronFixScripts(){const X=document.createElement("script"),ce=document.createTextNode("self.module = undefined;"),Ne=document.createTextNode("self.process.browser = true;");X.appendChild(ce),X.appendChild(Ne),document.body.appendChild(X)}}return R.\u0275fac=function(X){return new(X||R)(a.LFG(a.R0b),a.LFG(N,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),O=(()=>{class R{constructor(X){this.monacoLoader=X,this.init=new a.vpe,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe((0,i.h)(X=>X),(0,Z.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(X){if(this.editor&&X.options&&!X.options.firstChange){const{language:ce,theme:Ne,...Ge}=X.options.currentValue,{language:Ve,theme:Ae}=X.options.previousValue;Ve!==ce&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),Ae!==Ne&&monaco.editor.setTheme(Ne),this.editor.updateOptions(Ge)}if(this.editor&&X.uri){const ce=X.uri.currentValue,Ne=X.uri.previousValue;if(Ne&&!ce||!Ne&&ce||ce&&Ne&&ce.path!==Ne.path){const Ge=this.editor.getValue();let Ve;this.modelUriInstance&&this.modelUriInstance.dispose(),ce&&(Ve=monaco.editor.getModels().find(Ae=>Ae.uri.path===ce.path)),this.modelUriInstance=Ve||monaco.editor.createModel(Ge,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(X){this.value=X,this.editor&&X?this.editor.setValue(X):this.editor&&this.editor.setValue("")}registerOnChange(X){this.propagateChange=X}registerOnTouched(X){this.onTouched=X}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(X){this.onErrorStatusChange=X}initEditor(){const X={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?{...X,...this.options}:X),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const X=this.modelMarkers.map(({message:Ne})=>Ne).join("|");this.parsedError!==X&&(this.parsedError=X,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return R.\u0275fac=function(X){return new(X||R)(a.Y36(P))},R.\u0275cmp=a.Xpm({type:R,selectors:[["ngx-monaco-editor"]],viewQuery:function(X,ce){if(1&X&&a.Gf(v,7),2&X){let Ne;a.iGM(Ne=a.CRH())&&(ce.editorContent=Ne.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[a._Bn([{provide:_.JU,useExisting:(0,a.Gpc)(()=>R),multi:!0},{provide:_.Cf,useExisting:(0,a.Gpc)(()=>R),multi:!0}]),a.TTD],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(X,ce){1&X&&(a.TgZ(0,"div",0,1),a._UZ(2,"div",2,3),a.qZA())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),R})(),I=(()=>{class R{}return R.\u0275fac=function(X){return new(X||R)},R.\u0275mod=a.oAB({type:R}),R.\u0275inj=a.cJS({imports:[[]]}),R})()},534:(De,C,y)=>{"use strict";y.d(C,{Mq:()=>Je,fX:()=>j,zE:()=>le});var a=y(1322),i=y(9462),Z=y(7371),V=y(9453),_=y(2067);const v=["gutterEls"];function x(F,z){1&F&&a.GkF(0)}const M=(F,z,H,Q,de,ge)=>({areaBefore:F,areaAfter:z,gutterNum:H,first:Q,last:de,isDragged:ge});function N(F,z){if(1&F&&(a.ynx(0),a.YNc(1,x,1,0,"ng-container",7),a.BQk()),2&F){const H=z.$implicit,Q=a.oxw(3),de=Q.$implicit,ge=Q.index,Fe=Q.first,Be=a.oxw();a.xp6(1),a.Q6J("ngTemplateOutlet",Be.customGutter.template)("ngTemplateOutletContext",a.HTZ(3,M,de,Be.displayedAreas[ge+1],ge+1,Fe,ge===Be.displayedAreas.length-2,Be.draggedGutterNum===ge+1))("ngTemplateOutletInjector",H)}}function P(F,z){if(1&F&&(a.ynx(0),a.YNc(1,N,2,10,"ng-container",6),a.BQk()),2&F){const H=a.oxw(2).index;a.xp6(1),a.Q6J("asSplitGutterDynamicInjector",H+1)}}function Y(F,z){1&F&&a._UZ(0,"div",8)}function O(F,z){if(1&F){const H=a.EpF();a.TgZ(0,"div",2,3),a.NdJ("keydown",function(de){a.CHM(H);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.startKeyboardDrag(de,2*ge+1,ge+1))})("mousedown",function(de){a.CHM(H);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.startMouseDrag(de,2*ge+1,ge+1))})("touchstart",function(de){a.CHM(H);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.startMouseDrag(de,2*ge+1,ge+1))})("mouseup",function(de){a.CHM(H);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.clickGutter(de,ge+1))})("touchend",function(de){a.CHM(H);const ge=a.oxw().index,Fe=a.oxw();return a.KtG(Fe.clickGutter(de,ge+1))}),a.YNc(2,P,2,1,"ng-container",4)(3,Y,1,0,"ng-template",null,5,a.W1O),a.qZA()}if(2&F){const H=a.MAs(4),Q=a.oxw(),de=Q.index,ge=Q.$implicit,Fe=a.oxw();a.Udp("flex-basis",Fe.gutterSize,"px")("order",2*de+1),a.ekj("as-dragged",Fe.draggedGutterNum===de+1),a.uIk("aria-label",Fe.gutterAriaLabel)("aria-orientation",Fe.direction)("aria-valuemin",ge.minSize)("aria-valuemax",ge.maxSize)("aria-valuenow","*"===ge.size?null:ge.size)("aria-valuetext",Fe.getAriaAreaSizeText(ge.size)),a.xp6(2),a.Q6J("ngIf",null==Fe.customGutter?null:Fe.customGutter.template)("ngIfElse",H)}}function w(F,z){1&F&&a.YNc(0,O,5,14,"div",1),2&F&&a.Q6J("ngIf",!1===z.last)}const I=["*"];function R(F){if(void 0!==F.changedTouches&&F.changedTouches.length>0)return{x:F.changedTouches[0].clientX,y:F.changedTouches[0].clientY};if(void 0!==F.clientX&&void 0!==F.clientY)return{x:F.clientX,y:F.clientY};if(void 0!==F.currentTarget){const z=F.currentTarget;return{x:z.offsetLeft,y:z.offsetTop}}return null}function ie(F,z,H){return Math.abs(F.x-z.x)<=H&&Math.abs(F.y-z.y)<=H}function ce(F,z){const H=F.nativeElement.getBoundingClientRect();return"horizontal"===z?H.width:H.height}function Ne(F){return"boolean"==typeof F?F:"false"!==F}function Ge(F,z){return null==F?z:(F=Number(F),!isNaN(F)&&F>=0?F:z)}function Ve(F,z){if("percent"===F){const H=z.reduce((de,ge)=>"*"!==ge?de+ge:de,0),Q=z.filter(de=>"*"===de);return!(Q.length>1)&&(1===Q.length||H>99.9)&&H<100.1}if("pixel"===F)return 1===z.filter(H=>"*"===H).length}function Ae(F){return"*"===F.size?null:!0===F.component.lockSize?F.size:null===F.component.minSize?null:F.component.minSize>F.size?F.size:F.component.minSize}function Pe(F){return"*"===F.size?null:!0===F.component.lockSize?F.size:null===F.component.maxSize?null:F.component.maxSize<F.size?F.size:F.component.maxSize}function Se(F,z,H,Q){return z.reduce((de,ge)=>{const Fe=function ke(F,z,H,Q){return 0===H?{areaSnapshot:z,pixelAbsorb:0,percentAfterAbsorption:z.sizePercentAtStart,pixelRemain:0}:0===z.sizePixelAtStart&&H<0?{areaSnapshot:z,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:H}:"percent"===F?function Ce(F,z,H){const de=(F.sizePixelAtStart+z)/H*100;if(z>0){if(null!==F.area.maxSize&&de>F.area.maxSize){const ge=F.area.maxSize/100*H;return{areaSnapshot:F,pixelAbsorb:ge,percentAfterAbsorption:F.area.maxSize,pixelRemain:F.sizePixelAtStart+z-ge}}return{areaSnapshot:F,pixelAbsorb:z,percentAfterAbsorption:de>100?100:de,pixelRemain:0}}if(z<0){if(null!==F.area.minSize&&de<F.area.minSize){const ge=F.area.minSize/100*H;return{areaSnapshot:F,pixelAbsorb:ge,percentAfterAbsorption:F.area.minSize,pixelRemain:F.sizePixelAtStart+z-ge}}return de<0?{areaSnapshot:F,pixelAbsorb:-F.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:z+F.sizePixelAtStart}:{areaSnapshot:F,pixelAbsorb:z,percentAfterAbsorption:de,pixelRemain:0}}}(z,H,Q):"pixel"===F?function Te(F,z,H){const Q=F.sizePixelAtStart+z;return z>0?null!==F.area.maxSize&&Q>F.area.maxSize?{areaSnapshot:F,pixelAbsorb:F.area.maxSize-F.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Q-F.area.maxSize}:{areaSnapshot:F,pixelAbsorb:z,percentAfterAbsorption:-1,pixelRemain:0}:z<0?null!==F.area.minSize&&Q<F.area.minSize?{areaSnapshot:F,pixelAbsorb:F.area.minSize+z-Q,percentAfterAbsorption:-1,pixelRemain:Q-F.area.minSize}:Q<0?{areaSnapshot:F,pixelAbsorb:-F.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:z+F.sizePixelAtStart}:{areaSnapshot:F,pixelAbsorb:z,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(z,H):void 0}(F,ge,de.remain,Q);return de.list.push(Fe),de.remain=Fe.pixelRemain,de},{remain:H,list:[]})}function je(F,z){"*"!==z.areaSnapshot.area.size&&("percent"===F?z.areaSnapshot.area.size=z.percentAfterAbsorption:"pixel"===F&&(z.areaSnapshot.area.size=z.areaSnapshot.sizePixelAtStart+z.pixelAbsorb))}const ut=new a.OlP("angular-split-global-config");let Dt=(()=>{class F{constructor(H){this.template=H,this.gutterToHandleElementMap=new Map,this.gutterToExcludeDragElementMap=new Map}canStartDragging(H,Q){return(!this.gutterToExcludeDragElementMap.has(Q)||!this.gutterToExcludeDragElementMap.get(Q).some(ge=>ge.nativeElement.contains(H)))&&(!this.gutterToHandleElementMap.has(Q)||this.gutterToHandleElementMap.get(Q).some(de=>de.nativeElement.contains(H)))}addToMap(H,Q,de){H.has(Q)?H.get(Q).push(de):H.set(Q,[de])}removedFromMap(H,Q,de){const ge=H.get(Q);ge.splice(ge.indexOf(de),1),0===ge.length&&H.delete(Q)}static ngTemplateContextGuard(H,Q){return!0}static#e=this.\u0275fac=function(Q){return new(Q||F)(a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["","asSplitGutter",""]]})}return F})();const Gt=new a.OlP("Gutter num");let Wt=(()=>{class F{set gutterNum(H){this.vcr.clear();const Q=a.zs3.create({providers:[{provide:Gt,useValue:H}],parent:this.vcr.injector});this.vcr.createEmbeddedView(this.templateRef,{$implicit:Q})}constructor(H,Q){this.vcr=H,this.templateRef=Q}static ngTemplateContextGuard(H,Q){return!0}static#e=this.\u0275fac=function(Q){return new(Q||F)(a.Y36(a.s_b),a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["","asSplitGutterDynamicInjector",""]],inputs:{gutterNum:["asSplitGutterDynamicInjector","gutterNum"]}})}return F})(),Je=(()=>{class F{set direction(H){this._direction="vertical"===H?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(H){this._unit="pixel"===H?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(H){this._gutterSize=Ge(H,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(H){this._gutterStep=Ge(H,1)}get gutterStep(){return this._gutterStep}set restrictMove(H){this._restrictMove=Ne(H)}get restrictMove(){return this._restrictMove}set useTransition(H){this._useTransition=Ne(H),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(H){this._disabled=Ne(H),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(H){this._dir="rtl"===H?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(H){this._gutterDblClickDuration=Ge(H,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new Z.y(H=>this.transitionEndSubscriber=H).pipe((0,_.b)(20))}constructor(H,Q,de,ge,Fe){this.ngZone=H,this.elRef=Q,this.cdRef=de,this.renderer=ge,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new a.vpe(!1),this.dragEnd=new a.vpe(!1),this.gutterClick=new a.vpe(!1),this.gutterDblClick=new a.vpe(!1),this.dragProgressSubject=new V.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.draggedGutterNum=void 0,this.direction=this._direction,this._config=Fe?Object.assign(this._config,Fe):this._config,Object.keys(this._config).forEach(Be=>{this[Be]=this._config[Be]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(H){const Q={component:H,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===H.visible?(this.displayedAreas.push(Q),this.build(!0,!0)):this.hiddenAreas.push(Q)}removeArea(H){if(this.displayedAreas.some(Q=>Q.component===H)){const Q=this.displayedAreas.find(de=>de.component===H);this.displayedAreas.splice(this.displayedAreas.indexOf(Q),1),this.build(!0,!0)}else if(this.hiddenAreas.some(Q=>Q.component===H)){const Q=this.hiddenAreas.find(de=>de.component===H);this.hiddenAreas.splice(this.hiddenAreas.indexOf(Q),1)}}updateArea(H,Q,de){!0===H.visible&&this.build(Q,de)}showArea(H){const Q=this.hiddenAreas.find(ge=>ge.component===H);if(void 0===Q)return;const de=this.hiddenAreas.splice(this.hiddenAreas.indexOf(Q),1);this.displayedAreas.push(...de),this.build(!0,!0)}hideArea(H){const Q=this.displayedAreas.find(ge=>ge.component===H);if(void 0===Q)return;const de=this.displayedAreas.splice(this.displayedAreas.indexOf(Q),1);de.forEach(ge=>{ge.order=0,ge.size=0}),this.hiddenAreas.push(...de),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(H=>H.size)}setVisibleAreaSizes(H){if(H.length!==this.displayedAreas.length)return!1;const Q=H.map(ge=>Ge(ge,"*"));return!1!==Ve(this.unit,Q)&&(this.displayedAreas.forEach((ge,Fe)=>ge.component._size=Q[Fe]),this.build(!1,!0),!0)}build(H,Q){if(this.stopDragging(),!0===H&&(this.displayedAreas.every(de=>null!==de.component.order)&&this.displayedAreas.sort((de,ge)=>de.component.order-ge.component.order),this.displayedAreas.forEach((de,ge)=>{de.order=2*ge,de.component.setStyleOrder(de.order)})),!0===Q){const de=Ve(this.unit,this.displayedAreas.map(ge=>ge.component.size));switch(this.unit){case"percent":{const ge=100/this.displayedAreas.length;this.displayedAreas.forEach(Fe=>{Fe.size=de?Fe.component.size:ge,Fe.minSize=Ae(Fe),Fe.maxSize=Pe(Fe)});break}case"pixel":if(de)this.displayedAreas.forEach(ge=>{ge.size=ge.component.size,ge.minSize=Ae(ge),ge.maxSize=Pe(ge)});else{const ge=this.displayedAreas.filter(Fe=>"*"===Fe.component.size);if(0===ge.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Fe,Be)=>{Fe.size=0===Be?"*":Fe.component.size,Fe.minSize=0===Be?null:Ae(Fe),Fe.maxSize=0===Be?null:Pe(Fe)});else if(ge.length>1){let Fe=!1;this.displayedAreas.forEach(Be=>{"*"===Be.component.size?!1===Fe?(Be.size="*",Be.minSize=null,Be.maxSize=null,Fe=!0):(Be.size=100,Be.minSize=null,Be.maxSize=null):(Be.size=Be.component.size,Be.minSize=Ae(Be),Be.maxSize=Pe(Be))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const H=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(Q=>{"*"===Q.size?Q.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):Q.component.setStyleFlex(0,0,`calc( ${Q.size}% - ${Q.size/100*H}px )`,null!==Q.minSize&&Q.minSize===Q.size,null!==Q.maxSize&&Q.maxSize===Q.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(H=>{"*"===H.size?H.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?H.component.setStyleFlex(0,0,"100%",!1,!1):H.component.setStyleFlex(0,0,`${H.size}px`,null!==H.minSize&&H.minSize===H.size,null!==H.maxSize&&H.maxSize===H.size)})}clickGutter(H,Q){const de=R(H);this.startPoint&&ie(this.startPoint,de,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",Q),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",Q),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(H,Q,de){if(!0===this.disabled||!0===this.isWaitingClear)return;const ge=function X(F,z){if("horizontal"===z)switch(F.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===z)switch(F.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const H=F.currentTarget,Q="PageUp"===F.key||"PageDown"===F.key?500:50;let de=H.offsetLeft,ge=H.offsetTop;switch(F.key){case"ArrowLeft":de-=Q;break;case"ArrowRight":de+=Q;break;case"ArrowUp":ge-=Q;break;case"ArrowDown":ge+=Q;break;case"PageUp":"vertical"===z?ge-=Q:de+=Q;break;case"PageDown":"vertical"===z?ge+=Q:de-=Q;break;default:return null}return{x:de,y:ge}}(H,this.direction);null!==ge&&(this.endPoint=ge,this.startPoint=R(H),H.preventDefault(),H.stopPropagation(),this.setupForDragEvent(Q,de),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(H,Q,de){this.customGutter&&!this.customGutter.canStartDragging(H.target,de)||(H.preventDefault(),H.stopPropagation(),this.startPoint=R(H),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(Q,de),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging()))}setupForDragEvent(H,Q){if(this.snapshot={gutterNum:Q,lastSteppedOffset:0,allAreasSizePixel:ce(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(de=>{const ge={area:de,sizePixelAtStart:ce(de.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?de.size:-1};de.order<H?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[ge]:this.snapshot.areasBeforeGutter.unshift(ge):de.order>H&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[ge]):this.snapshot.areasAfterGutter.push(ge))}),this.restrictMove&&"percent"===this.unit){const de=this.snapshot.areasBeforeGutter[0],ge=this.snapshot.areasAfterGutter[0];if("*"===de.area.size||"*"===ge.area.size){const Fe=this.displayedAreas.reduce((Be,_t)=>de.area!==_t&&ge.area!==_t?Be+_t.size:Be,0);this.snapshot.allInvolvedAreasSizePercent=100-Fe}else this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((Fe,Be)=>Fe+Be.sizePercentAtStart,0)}}startDragging(){this.displayedAreas.forEach(H=>H.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(H){H.preventDefault(),H.stopPropagation();const Q=R(H);null!==this._clickTimeout&&!ie(this.startPoint,Q,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=R(H),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=this.snapshot.gutterNum,this.cdRef.markForCheck(),this.notify("start",this.snapshot.gutterNum)})}let H="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(H=-H);const Q=Math.round(H/this.gutterStep)*this.gutterStep;if(Q===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=Q;let de=Se(this.unit,this.snapshot.areasBeforeGutter,-Q,this.snapshot.allAreasSizePixel),ge=Se(this.unit,this.snapshot.areasAfterGutter,Q,this.snapshot.allAreasSizePixel);if(0!==de.remain&&0!==ge.remain?Math.abs(de.remain)===Math.abs(ge.remain)||(Math.abs(de.remain)>Math.abs(ge.remain)?ge=Se(this.unit,this.snapshot.areasAfterGutter,Q+de.remain,this.snapshot.allAreasSizePixel):de=Se(this.unit,this.snapshot.areasBeforeGutter,-(Q-ge.remain),this.snapshot.allAreasSizePixel)):0!==de.remain?ge=Se(this.unit,this.snapshot.areasAfterGutter,Q+de.remain,this.snapshot.allAreasSizePixel):0!==ge.remain&&(de=Se(this.unit,this.snapshot.areasBeforeGutter,-(Q-ge.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const Fe=[...de.list,...ge.list],_t=Fe.find(Ke=>"*"==Ke.percentAfterAbsorption)??Fe.find(Ke=>0!==Ke.percentAfterAbsorption&&Ke.percentAfterAbsorption!==Ke.areaSnapshot.area.minSize&&Ke.percentAfterAbsorption!==Ke.areaSnapshot.area.maxSize);_t&&(_t.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-Fe.filter(Ke=>Ke!==_t).reduce((Ke,et)=>Ke+et.percentAfterAbsorption,0))}de.list.forEach(Fe=>je(this.unit,Fe)),ge.list.forEach(Fe=>je(this.unit,Fe)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(H){if(H&&(H.preventDefault(),H.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(Q=>Q.component.unlockEvents());this.dragListeners.length>0;){const Q=this.dragListeners.pop();Q&&Q()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=void 0,this.cdRef.markForCheck(),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(H,Q){const de=this.getVisibleAreaSizes();"start"===H?this.dragStart.emit({gutterNum:Q,sizes:de}):"end"===H?this.dragEnd.emit({gutterNum:Q,sizes:de}):"click"===H?this.gutterClick.emit({gutterNum:Q,sizes:de}):"dblclick"===H?this.gutterDblClick.emit({gutterNum:Q,sizes:de}):"transitionEnd"===H?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(de)):"progress"===H&&this.dragProgressSubject.next({gutterNum:Q,sizes:de})}ngOnDestroy(){this.stopDragging()}collapseArea(H,Q,de){const ge=this.displayedAreas.find(_t=>_t.component===H);if(void 0===ge)return;const Fe="right"===de?1:-1;ge.sizeBeforeCollapse||(ge.sizeBeforeCollapse=ge.size,ge.gutterBeforeCollapse=Fe),ge.size=Q;const Be=this.gutterEls.find(_t=>_t.nativeElement.style.order===`${ge.order+Fe}`);Be&&this.renderer.addClass(Be.nativeElement,"as-split-gutter-collapsed"),this.updateArea(H,!1,!1)}expandArea(H){const Q=this.displayedAreas.find(ge=>ge.component===H);if(void 0===Q||!Q.sizeBeforeCollapse)return;Q.size=Q.sizeBeforeCollapse,Q.sizeBeforeCollapse=null;const de=this.gutterEls.find(ge=>ge.nativeElement.style.order===`${Q.order+Q.gutterBeforeCollapse}`);de&&this.renderer.removeClass(de.nativeElement,"as-split-gutter-collapsed"),this.updateArea(H,!1,!1)}getAriaAreaSizeText(H){return"*"===H?null:H.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(Q){return new(Q||F)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(a.Qsj),a.Y36(ut,8))};static#t=this.\u0275cmp=a.Xpm({type:F,selectors:[["as-split"]],contentQueries:function(Q,de,ge){if(1&Q&&a.Suo(ge,Dt,5),2&Q){let Fe;a.iGM(Fe=a.CRH())&&(de.customGutter=Fe.first)}},viewQuery:function(Q,de){if(1&Q&&a.Gf(v,5),2&Q){let ge;a.iGM(ge=a.CRH())&&(de.gutterEls=ge)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:I,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"as-dragged","flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[4,"ngIf","ngIfElse"],["defaultGutterTpl",""],[4,"asSplitGutterDynamicInjector"],[4,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[1,"as-split-gutter-icon"]],template:function(Q,de){1&Q&&(a.F$t(),a.Hsn(0),a.YNc(1,w,1,1,"ng-template",0)),2&Q&&(a.xp6(1),a.Q6J("ngForOf",de.displayedAreas))},dependencies:[i.sg,i.O5,i.tP,Wt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return F})(),le=(()=>{class F{set order(H){this._order=Ge(H,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(H){this._size=Ge(H,"*"),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(H){this._minSize=Ge(H,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(H){this._maxSize=Ge(H,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(H){this._lockSize=Ne(H),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(H){this._visible=Ne(H),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(H,Q,de,ge){this.ngZone=H,this.elRef=Q,this.renderer=de,this.split=ge,this._order=null,this._size="*",this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",Q=>{"flex-basis"===Q.propertyName&&this.split.notify("transitionEnd",-1)})});const H=this.renderer.createElement("div");this.renderer.addClass(H,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,H)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,H)})}setStyleOrder(H){this.renderer.setStyle(this.elRef.nativeElement,"order",H)}setStyleFlex(H,Q,de,ge,Fe){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",H),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",Q),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",de),!0===ge?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Fe?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const H=this.lockListeners.pop();H&&H()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(H=0,Q="right"){this.split.collapseArea(this,H,Q)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(Q){return new(Q||F)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(a.Qsj),a.Y36(Je))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return F})(),j=(()=>{class F{static#e=this.\u0275fac=function(Q){return new(Q||F)};static#t=this.\u0275mod=a.oAB({type:F});static#n=this.\u0275inj=a.cJS({imports:[i.ez]})}return F})()},6086:(De,C,y)=>{"use strict";y.d(C,{Y:()=>N,s:()=>P});var a=y(1322),i=y(9462);function Z(Y,O){1&Y&&a._UZ(0,"div",9)}function V(Y,O){if(1&Y&&(a.TgZ(0,"span",10),a._uU(1),a.qZA()),2&Y){const w=a.oxw().$implicit;a.xp6(1),a.Oqu(w.description)}}function _(Y,O){if(1&Y&&(a.TgZ(0,"section",11),a._UZ(1,"ngx-json-viewer",12),a.qZA()),2&Y){const w=a.oxw().$implicit,I=a.oxw();a.xp6(1),a.Q6J("json",w.value)("expanded",I.expanded)("depth",I.depth)("_currentDepth",I._currentDepth+1)}}const v=Y=>["segment",Y],x=(Y,O)=>({"segment-main":!0,expandable:Y,expanded:O});function M(Y,O){if(1&Y){const w=a.EpF();a.TgZ(0,"section",2)(1,"section",3),a.NdJ("click",function(){const ie=a.CHM(w).$implicit,X=a.oxw();return a.KtG(X.toggle(ie))}),a.YNc(2,Z,1,0,"div",4),a.TgZ(3,"span",5),a._uU(4),a.qZA(),a.TgZ(5,"span",6),a._uU(6,": "),a.qZA(),a.YNc(7,V,2,1,"span",7),a.qZA(),a.YNc(8,_,2,4,"section",8),a.qZA()}if(2&Y){const w=O.$implicit,I=a.oxw();a.Q6J("ngClass",a.VKq(6,v,"segment-type-"+w.type)),a.xp6(1),a.Q6J("ngClass",a.WLB(8,x,I.isExpandable(w),w.expanded)),a.xp6(1),a.Q6J("ngIf",I.isExpandable(w)),a.xp6(2),a.Oqu(w.key),a.xp6(3),a.Q6J("ngIf",!w.expanded||!I.isExpandable(w)),a.xp6(1),a.Q6J("ngIf",w.expanded&&I.isExpandable(w))}}let N=(()=>{class Y{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(w=>{this.segments.push(this.parseKeyValue(w,this.json[w]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(w){return"object"===w.type||"array"===w.type}toggle(w){this.isExpandable(w)&&(w.expanded=!w.expanded)}parseKeyValue(w,I){const R={key:w,value:I,type:void 0,description:""+I,expanded:this.isExpanded()};switch(typeof R.value){case"number":R.type="number";break;case"boolean":R.type="boolean";break;case"function":R.type="function";break;case"string":R.type="string",R.description='"'+R.value+'"';break;case"undefined":R.type="undefined",R.description="undefined";break;case"object":null===R.value?(R.type="null",R.description="null"):Array.isArray(R.value)?(R.type="array",R.description="Array["+R.value.length+"] "+JSON.stringify(R.value)):R.value instanceof Date?R.type="date":(R.type="object",R.description="Object "+JSON.stringify(R.value))}return R}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(w){const I=new WeakMap;return function R(ie,X){let ce,Ne;return"object"!=typeof ie||null===ie||ie instanceof Boolean||ie instanceof Date||ie instanceof Number||ie instanceof RegExp||ie instanceof String?ie:(ce=I.get(ie),void 0!==ce?{$ref:ce}:(I.set(ie,X),Array.isArray(ie)?(Ne=[],ie.forEach(function(Ge,Ve){Ne[Ve]=R(Ge,X+"["+Ve+"]")})):(Ne={},Object.keys(ie).forEach(function(Ge){Ne[Ge]=R(ie[Ge],X+"["+JSON.stringify(Ge)+"]")})),Ne))}(w,"$")}}return Y.\u0275fac=function(w){return new(w||Y)},Y.\u0275cmp=a.Xpm({type:Y,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[a.TTD],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(w,I){1&w&&(a.TgZ(0,"section",0),a.YNc(1,M,9,11,"section",1),a.qZA()),2&w&&(a.xp6(1),a.Q6J("ngForOf",I.segments))},dependencies:[i.mk,i.sg,i.O5,Y],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),Y})(),P=(()=>{class Y{}return Y.\u0275fac=function(w){return new(w||Y)},Y.\u0275mod=a.oAB({type:Y}),Y.\u0275inj=a.cJS({imports:[i.ez]}),Y})()},5861:(De,C,y)=>{"use strict";function a(Z,V,_,v,x,M,N){try{var P=Z[M](N),Y=P.value}catch(O){return void _(O)}P.done?V(Y):Promise.resolve(Y).then(v,x)}function i(Z){return function(){var V=this,_=arguments;return new Promise(function(v,x){var M=Z.apply(V,_);function N(Y){a(M,v,x,N,P,"next",Y)}function P(Y){a(M,v,x,N,P,"throw",Y)}N(void 0)})}}y.d(C,{Z:()=>i})}},De=>{De(De.s=222)}]);