@sdkgen/playground 2.0.0 → 2.0.1

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.
@@ -1 +0,0 @@
1
- (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function(Ve,g){"use strict";var T,l=this&&this.__extends||(T=function(S,d){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,M){A.__proto__=M}||function(A,M){for(var b in M)Object.prototype.hasOwnProperty.call(M,b)&&(A[b]=M[b])})(S,d)},function(S,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function A(){this.constructor=S}T(S,d),S.prototype=null===d?Object.create(d):(A.prototype=d.prototype,new A)}),i=this&&this.__spreadArray||function(T,S,d){if(d||2===arguments.length)for(var b,A=0,M=S.length;A<M;A++)(b||!(A in S))&&(b||(b=Array.prototype.slice.call(S,0,A)),b[A]=S[A]);return T.concat(b||Array.prototype.slice.call(S))};Object.defineProperty(g,"__esModule",{value:!0}),g.decode=g.encode=void 0;var u=["string","email","phone","html","xml"],m=i(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],u,!0),c=function(T){function S(d,A,M){var k;try{k=JSON.stringify(M)}catch($){k=String(M)}return T.call(this,"Invalid type at '".concat(d,"', expected ").concat(A,", got ").concat(k))||this}return l(S,T),S}(Error);function s(T,S,d){if("json"===S)return null==d?null:JSON.parse(JSON.stringify(d));if("bool"===S){if("boolean"!=typeof d)throw new c(T,S,d);return d}if(u.indexOf(S)>=0){if("string"!=typeof d)throw new c(T,S,d);return d}if("hex"===S){if("string"!=typeof d||!/^(?:[A-Fa-f0-9]{2})*$/u.test(d))throw new c(T,S,d);return d.toLowerCase()}if("uuid"===S){if("string"!=typeof d||!/^[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(d))throw new c(T,S,d);return d.toLowerCase()}if("base64"===S){var A=!0;try{atob(d)}catch(b){A=!1}if("string"!=typeof d||!A)throw new c(T,S,d);return d}if("int"===S){if("number"!=typeof d||(0|d)!==d)throw new c(T,S,d);return d}if("uint"===S){if("number"!=typeof d||(0|d)!==d||d<0)throw new c(T,S,d);return d}if("float"===S){if("number"!=typeof d)throw new c(T,S,d);return d}if("money"===S){if("number"!=typeof d||!Number.isInteger(d))throw new c(T,S,d);return d}if("url"===S){var M=void 0;if("string"==typeof d)try{M=new URL(d)}catch(b){}if(!M)throw new c(T,S,d);return M.toString()}if("void"===S)return null;throw new Error("Unknown type '".concat(S,"' at '").concat(T,"'"))}g.encode=function _(T,S,d,A){if("string"==typeof d&&!d.endsWith("?")&&"void"!==d&&null==A)throw new Error("Invalid type at '".concat(S,"', cannot be null"));if(Array.isArray(d)){for(var M=0,b=d;M<b.length;M++){var k=b[M];if(k===A)return A;if(Array.isArray(A)&&2===A.length&&k===A[0])return A[0];if(Array.isArray(k)&&2===k.length){if(k[0]===A)return[A,_(T,"".concat(S,".").concat(k[0]),k[1],{})];if(Array.isArray(A)&&2===A.length&&k[0]===A[0])return[A[0],_(T,"".concat(S,".").concat(k[0]),k[1],A[1])]}}throw new c(S,d,A)}if("object"==typeof d){if("object"!=typeof A)throw new c(S,d,A);for(var $={},pe=0,U=Object.keys(d);pe<U.length;pe++){var ae=U[pe];$[ae]=_(T,"".concat(S,".").concat(ae),d[ae],A[ae])}return $}if(d.endsWith("?"))return null==A?null:_(T,S,d.slice(0,d.length-1),A);if(d.endsWith("[]")){if(!Array.isArray(A))throw new c(S,d,A);return A.map(function(me,be){return _(T,"".concat(S,"[").concat(be,"]"),d.slice(0,d.length-2),me)})}if(m.indexOf(d)>=0)return s(S,d,A);if("bytes"===d){if(!(A instanceof ArrayBuffer))throw new c(S,d,A);return btoa(String.fromCharCode.apply(String,new Uint8Array(A)))}if("bigint"===d){if("bigint"!=typeof A)throw new c(S,d,A);return A.toString()}if("cpf"===d){if("string"!=typeof A)throw new c(S,d,A);return A}if("cnpj"===d){if("string"!=typeof A)throw new c(S,d,A);return A}if("date"===d){if((!(A instanceof Date)||isNaN(A.getTime()))&&("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(A)))throw new c(S,d,A);return"string"==typeof A?new Date(A).toISOString().split("T")[0]:A.toISOString().split("T")[0]}if("datetime"===d){if((!(A instanceof Date)||isNaN(A.getTime()))&&("string"!=typeof A||!/^[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(A)))throw new c(S,d,A);return("string"==typeof A?new Date(A):A).toISOString().replace("Z","")}var Se=T[d];if(Se)return _(T,S,Se,A);throw new Error("Unknown type '".concat(d,"' at '").concat(S,"'"))},g.decode=function D(T,S,d,A){if("string"==typeof d&&!d.endsWith("?")&&"void"!==d&&null==A)throw new Error("Invalid type at '".concat(S,"', cannot be null"));if(Array.isArray(d)){for(var M=0,b=d;M<b.length;M++){var k=b[M];if(k===A)return A;if(Array.isArray(A)&&2===A.length&&k===A[0])return A[0];if(Array.isArray(k)&&2===k.length){if(k[0]===A)return[A,D(T,"".concat(S,".").concat(k[0]),k[1],{})];if(Array.isArray(A)&&2===A.length&&k[0]===A[0])return[A[0],D(T,"".concat(S,".").concat(k[0]),k[1],A[1])]}}throw new c(S,d,A)}if("object"==typeof d){if("object"!=typeof A)throw new c(S,d,A);for(var $={},pe=0,U=Object.keys(d);pe<U.length;pe++){var ae=U[pe];$[ae]=D(T,"".concat(S,".").concat(ae),d[ae],A[ae])}return $}if(d.endsWith("?"))return null==A?null:D(T,S,d.slice(0,d.length-1),A);if(d.endsWith("[]")){if(!Array.isArray(A))throw new c(S,d,A);return A.map(function(Le,qe){return D(T,"".concat(S,"[").concat(qe,"]"),d.slice(0,d.length-2),Le)})}if(m.indexOf(d)>=0)return s(S,d,A);if("bytes"!==d){if("bigint"===d){if("number"!=typeof A&&("string"!=typeof A||!/^-?[0-9]+$/u.test(A)))throw new c(S,d,A);return BigInt(A)}if("cpf"===d){if("string"!=typeof A)throw new c(S,d,A);return A}if("cnpj"===d){if("string"!=typeof A)throw new c(S,d,A);return A}if("date"===d){if("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(A))throw new c(S,d,A);var Se=parseInt(A.split("-")[2],10),me=parseInt(A.split("-")[1],10)-1,be=parseInt(A.split("-")[0],10),se=new Date(be,me,Se);if(se.getFullYear()!==be||se.getMonth()!==me||se.getDate()!==Se)throw new c(S,d,A);return se}if("datetime"===d){if("string"!=typeof A||!/^[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(A))throw new c(S,d,A);return new Date("".concat(A.endsWith("Z")?A:A.concat("Z")))}var Me=T[d];if(Me)return D(T,S,Me,A);throw new Error("Unknown type '".concat(d,"' at '").concat(S,"'"))}if("string"!=typeof A)throw new c(S,"".concat(d," (base 64)"),A);try{return Uint8Array.from(atob(A),function(Le){return Le.charCodeAt(0)})}catch(Le){throw new c(S,"".concat(d," (base 64)"),A)}}},2837:function(Ve,g){"use strict";var m,l=this&&this.__extends||(m=function(c,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,D){_.__proto__=D}||function(_,D){for(var T in D)Object.prototype.hasOwnProperty.call(D,T)&&(_[T]=D[T])})(c,s)},function(c,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function _(){this.constructor=c}m(c,s),c.prototype=null===s?Object.create(s):(_.prototype=s.prototype,new _)});Object.defineProperty(g,"__esModule",{value:!0}),g.SdkgenErrorWithData=g.SdkgenError=void 0;var i=function(m){function c(){return null!==m&&m.apply(this,arguments)||this}return l(c,m),Object.defineProperty(c.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),c.prototype.toJSON=function(){return{message:this.message,type:this.type}},c}(Error);g.SdkgenError=i;var u=function(m){function c(s,_){var D=m.call(this,s)||this;return D.data=_,D}return l(c,m),c.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},c}(i);g.SdkgenErrorWithData=u},2062:function(Ve,g,l){"use strict";var i=this&&this.__awaiter||function(S,d,A,M){return new(A||(A=Promise))(function(k,$){function pe(Se){try{ae(M.next(Se))}catch(me){$(me)}}function U(Se){try{ae(M.throw(Se))}catch(me){$(me)}}function ae(Se){Se.done?k(Se.value):function b(k){return k instanceof A?k:new A(function($){$(k)})}(Se.value).then(pe,U)}ae((M=M.apply(S,d||[])).next())})},u=this&&this.__generator||function(S,d){var M,b,k,$,A={label:0,sent:function(){if(1&k[0])throw k[1];return k[1]},trys:[],ops:[]};return $={next:pe(0),throw:pe(1),return:pe(2)},"function"==typeof Symbol&&($[Symbol.iterator]=function(){return this}),$;function pe(ae){return function(Se){return function U(ae){if(M)throw new TypeError("Generator is already executing.");for(;A;)try{if(M=1,b&&(k=2&ae[0]?b.return:ae[0]?b.throw||((k=b.return)&&k.call(b),0):b.next)&&!(k=k.call(b,ae[1])).done)return k;switch(b=0,k&&(ae=[2&ae[0],k.value]),ae[0]){case 0:case 1:k=ae;break;case 4:return A.label++,{value:ae[1],done:!1};case 5:A.label++,b=ae[1],ae=[0];continue;case 7:ae=A.ops.pop(),A.trys.pop();continue;default:if(!(k=(k=A.trys).length>0&&k[k.length-1])&&(6===ae[0]||2===ae[0])){A=0;continue}if(3===ae[0]&&(!k||ae[1]>k[0]&&ae[1]<k[3])){A.label=ae[1];break}if(6===ae[0]&&A.label<k[1]){A.label=k[1],k=ae;break}if(k&&A.label<k[2]){A.label=k[2],A.ops.push(ae);break}k[2]&&A.ops.pop(),A.trys.pop();continue}ae=d.call(S,A)}catch(Se){ae=[6,Se],b=0}finally{M=k=0}if(5&ae[0])throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}}([ae,Se])}}};Object.defineProperty(g,"__esModule",{value:!0}),g.SdkgenHttpClient=void 0;var m=l(4602);function c(S){for(var d="",A=0;A<2*S;++A)d+="0123456789abcdef"[Math.floor(16*Math.random())];return d}var s=c(20);function _(){try{var S=localStorage.getItem("deviceId");return S||(S=s,localStorage.setItem("deviceId",S)),S}catch(d){}return s}function D(S,d){return d in S}var T=function(){function S(d,A,M){this.astJson=A,this.errClasses=M,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=d}return S.prototype.makeRequest=function(d,A){var M,b;return i(this,void 0,void 0,function(){var k,$,pe,U,ae,Se=this;return u(this,function(me){switch(me.label){case 0:if(!(k=this.astJson.functionTable[d]))throw new Error("Unknown function ".concat(d));return $={},this.extra.forEach(function(be,se){$[se]=be}),pe={args:(0,m.encode)(this.astJson.typeTable,"".concat(d,".args"),k.args,A),deviceInfo:{id:_(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(b=null===(M=document.currentScript)||void 0===M?void 0:M.getAttribute("src"))&&void 0!==b?b:""},extra:$,name:d,requestId:c(16),version:3},[4,new Promise(function(be,se){var Me=new XMLHttpRequest;Me.open("POST","".concat(Se.baseUrl,"/").concat(d)),Me.setRequestHeader("Content-Type","application/sdkgen"),Me.onreadystatechange=function(){if(4===Me.readyState)try{var Le=JSON.parse(Me.responseText);try{D(Le,"error")&&Le.error?(se(Le.error),Se.errorHook(Le.error,d,A)):be(D(Le,"result")?Le.result:null)}catch(at){var qe={message:"".concat(at),type:"Fatal"};se(qe),Se.errorHook(qe,d,A)}}catch(at){se(qe={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),Se.errorHook(qe,d,A)}},Me.send(JSON.stringify(pe))}).catch(function(be){if(Se.errorHook(be,d,A),D(be,"type")&&D(be,"message")&&"string"==typeof be.type&&"string"==typeof be.message){var se=Se.errClasses[be.type];if(se){var Me=Se.astJson.errors.find(function(Le){return Array.isArray(Le)?Le[0]===be.type:Le===be.type});if(Me)throw Array.isArray(Me)&&D(be,"data")?new se(be.message,(0,m.decode)(Se.astJson.typeTable,"".concat(se.name,".data"),Me[1],be.data)):new se(be.message,void 0)}throw new Se.errClasses.Fatal("".concat(be.type,": ").concat(be.message))}throw be})];case 1:return U=me.sent(),ae=(0,m.decode)(this.astJson.typeTable,"".concat(d,".ret"),k.ret,U),this.successHook(ae,d,A),[2,ae]}})})},S}();g.SdkgenHttpClient=T},4539:function(Ve,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(2837),g),u(l(2062),g)},3905:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateCSharpServerSource=void 0;const i=l(6676),u=l(4510);g.generateCSharpServerSource=function m(c){let s="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 _ of c.operations){const D=_.returnType instanceof i.VoidPrimitiveType?"":`<${(0,u.generateTypeName)(_.returnType)}>`;s+=`\n public virtual Task${D} ${(0,u.capitalize)(_.name)}(${["Context ctx",..._.args.map(T=>`${(0,u.generateTypeName)(T.type)} ${(0,u.ident)(T.name)}`)].join(", ")})\n {\n return Task.FromException${D}(new FatalException("Function '${_.name}' not implemented."));\n }\n`}s+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const _ of c.operations){s+=`\n case ${JSON.stringify(_.name)}:\n {`;for(const D of _.args)s+=`\n JsonElement ${D.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(D.name)}, out ${D.name}Json_))\n {\n ${D.type instanceof i.OptionalType?`${D.name}Json_ = new JsonElement();`:`throw new FatalException("'${_.name}().args.${D.name}' must be set to a value of type ${D.type.name}.");`}\n }\n ${(0,u.generateTypeName)(D.type)} ${(0,u.ident)(D.name)};\n ${(0,u.decodeType)(D.type,`${D.name}Json_`,`"${_.name}().args.${D.name}"`,(0,u.ident)(D.name)).replace(/\n/gu,"\n ")}`;s+=_.returnType instanceof i.VoidPrimitiveType?`\n await ${(0,u.capitalize)(_.name)}(${["context_",..._.args.map(D=>(0,u.ident)(D.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,u.capitalize)(_.name)}(${["context_",..._.args.map(D=>(0,u.ident)(D.name))].join(", ")});\n ${(0,u.encodeType)(_.returnType,"result_",`"${_.name}().ret"`).replace(/\n/gu,"\n ")}`,s+="\n return;\n }"}s+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const _ of c.structTypes)s+=(0,u.generateStruct)(_);for(const _ of c.enumTypes)s+=(0,u.generateEnum)(_);s+=`\n public string GetAstJson() => @"${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const _ of c.errors)s+=`\n public class ${_.name}Exception : SdkgenException\n {\n public ${_.name}Exception(string message, Exception? inner = null) : base("${_.name}", message, inner) { }\n }\n`;return s+="\n}\n",s}},4510:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateEnum=g.generateStruct=g.encodeType=g.decodeType=g.generateTypeName=g.capitalize=g.ident=void 0;const i=l(6676),u=["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"],m=[i.StringPrimitiveType,i.HtmlPrimitiveType,i.CpfPrimitiveType,i.CnpjPrimitiveType,i.BytesPrimitiveType,i.EmailPrimitiveType,i.UrlPrimitiveType,i.UuidPrimitiveType,i.HexPrimitiveType,i.Base64PrimitiveType,i.XmlPrimitiveType,i.StructType,i.ArrayType],c=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType];function s(M){return u.includes(M)?`@${M}`:M}function _(M){return M[0].toUpperCase()+M.slice(1)}function D(M){switch(M.constructor){case i.StringPrimitiveType:return"string";case i.IntPrimitiveType:return"int";case i.UIntPrimitiveType:return"uint";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"BigInteger";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"byte[]";case i.MoneyPrimitiveType:return"decimal";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${D(M.base)}?`;case i.ArrayType:return`List<${D(M.base)}>`;case i.StructType:case i.EnumType:return M.name;case i.TypeReference:return D(M.type);default:throw new Error(`BUG: generateTypeName with ${M.constructor.name}`)}}function T(M,b,k,$,pe=1,U=!0){switch(M.constructor){case i.IntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetInt32(out ${$}))\n {\n throw new FatalException($"'{${k}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetUInt32(out ${$}))\n {\n throw new FatalException($"'{${k}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetDecimal(out ${$}) || ${$} % 1 != 0)\n {\n throw new FatalException($"'{${k}}' must be an integer amount of cents.");\n }\n ${$} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetDouble(out ${$}))\n {\n throw new FatalException($"'{${k}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${b}.GetString(), out ${$}))\n {\n throw new FatalException($"'{${k}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a string.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid HTML string.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid CPF string.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid CNPJ string.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid email.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid URL string.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid UUID.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a valid hex string.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a base64 string.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a XML string.");\n }\n ${$} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.True && ${b}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${k}}' must be either true or false.");\n }\n ${$} = ${b}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${k}}' must be a string.");\n }\n try\n {\n ${$} = Convert.FromBase64String(${b}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${k}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return T(M.type,b,k,$,pe);case i.OptionalType:if(c.includes(M.base.constructor)){const ae=`${$.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n ${$} = null;\n }\n else\n {\n ${D(M.base)} ${ae};\n ${T(M.base,b,k,ae,pe,!1).replace(/\n/gu,"\n ")}\n ${$} = ${ae};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n ${$} = null;\n }\n else\n {\n ${T(M.base,b,k,$,pe,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case i.EnumType:case i.StructType:return`${$} = Decode${M.name}(${b}, ${k});`;case i.JsonPrimitiveType:return U?`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${k}}' can't be null.");\n }\n ${$} = ${b};\n `.replace(/\n {16}/gu,"\n").trim():`${$} = ${b};`;case i.DateTimePrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${$}) || DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${$})))\n {\n throw new FatalException($"'{${k}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${$})))\n {\n throw new FatalException($"'{${k}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n if (${b}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${k}}' must be a date.");\n }\n ${$} = new ${D(M)}();\n for (var i${pe} = 0; i${pe} < ${b}.GetArrayLength(); ++i${pe})\n {\n ${D(M.base)} element${pe};\n ${T(M.base,`${b}[i${pe}]`,`$"{${k}}[{i${pe}}]"`,`element${pe}`,pe+1).replace(/\n/gu,"\n ")}\n ${$}.Add(element${pe});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${M.constructor.name}`)}}function S(M,b,k,$=1){switch(M.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${b});`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${b});`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${b} * 100));`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString());`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${b});`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${b}));`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString("yyyy-MM-dd"));`;case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.Base64PrimitiveType:case i.HexPrimitiveType:case i.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${b});`;case i.OptionalType:{let pe=M.base;for(;pe instanceof i.TypeReference;)pe=pe.type;return`\n if (${b} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${S(pe,m.includes(pe.constructor)?b:`${b}.Value`,k,$).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case i.TypeReference:return S(M.type,b,k,$);case i.EnumType:case i.StructType:return`Encode${M.name}(${b}, resultWriter_, ${k});`;case i.JsonPrimitiveType:return`${b}.WriteTo(resultWriter_);`;case i.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${$} = 0; i${$} < ${b}.Count; ++i${$})\n {\n ${S(M.base,`${b}[i${$}]`,`$"{${k}}[{i${$}}]"`,$+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${M.constructor.name}`)}}g.ident=s,g.capitalize=_,g.generateTypeName=D,g.decodeType=T,g.encodeType=S,g.generateStruct=function d(M){return`\n public class ${M.name}\n {${M.fields.map(b=>`\n public ${D(b.type)} ${_(b.name)};`).join("")}\n public ${M.name}(${M.fields.map(b=>`${D(b.type)} ${s(b.name)}`).join(", ")})\n {${M.fields.map(b=>`\n ${_(b.name)} = ${s(b.name)};`).join("")}\n }\n }\n\n ${M.name} Decode${M.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${M.fields.map(b=>` JsonElement ${b.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(b.name)}, out ${b.name}Json_))\n {\n ${b.type instanceof i.OptionalType?`${b.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${b.name}' must be set to a value of type ${b.type.name}.");`}\n }\n ${D(b.type)} ${s(b.name)};\n ${T(b.type,`${b.name}Json_`,`$"{path_}.${b.name}"`,s(b.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${M.name}(${M.fields.map(b=>s(b.name)).join(", ")});\n }\n\n void Encode${M.name}(${M.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${M.fields.map(b=>`resultWriter_.WritePropertyName(${JSON.stringify(b.name)});\n ${S(b.type,`obj_.${_(b.name)}`,`$"{path_}.${b.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},g.generateEnum=function A(M){return`\n public enum ${M.name}\n {${M.values.map(({value:b})=>`\n ${_(b)}`).join(",\n ")}\n }\n\n ${M.name} Decode${M.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();${M.values.map(({value:b})=>`\n if (value == "${b}")\n {\n return ${M.name}.${_(b)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${M.values.map(({value:b})=>`'${b}'`).join(", ")}).");\n }\n\n void Encode${M.name}(${M.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${M.values.map(({value:b})=>`\n if (obj_ == ${M.name}.${_(b)})\n {\n resultWriter_.WriteStringValue("${b}");\n }`).join("")}\n }\n`}},7179:function(Ve,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(3905),g)},1911:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateDartClientSource=void 0;const i=l(6676),u=l(5235);g.generateDartClientSource=function m(c){let s="";s+="import 'dart:typed_data';\nimport 'dart:ui';\n\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const _ of c.enumTypes)s+=(0,u.generateEnum)(_),s+="\n";for(const _ of c.structTypes)s+=(0,u.generateClass)(_),s+="\n";for(const _ of c.errors)s+=(0,u.generateErrorClass)(_),s+="\n";s+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl) : super(baseUrl, _typeTable, _fnTable, _errTable);\n${c.operations.filter(_=>_.annotations.every(D=>!(D instanceof i.HiddenAnnotation))).map(_=>`\n ${_.returnType instanceof i.VoidPrimitiveType?"Future<void> ":`Future<${(0,u.generateTypeName)(_.returnType)}> `}${_.name}(${0===_.args.length?"":`{${_.args.map(D=>`${D.type instanceof i.OptionalType?"":"required "}${(0,u.generateTypeName)(D.type)} ${(0,u.mangle)(D.name)}`).join(", ")}}`}) async { ${_.returnType instanceof i.VoidPrimitiveType?"":"return "}${(0,u.cast)(`await makeRequest('${_.name}', {${_.args.map(D=>`'${D.name}': ${(0,u.mangle)(D.name)}`).join(", ")}})`,_.returnType)}; }`).join("")}\n}\n\n`,s+="var _typeTable = {\n";for(const _ of c.structTypes){s+=` '${_.name}': StructTypeDescription(\n`,s+=` ${_.name},\n`,s+=" {\n";for(const D of _.fields)s+=` '${D.name}': '${D.type.name}',\n`;s+=" },\n",s+=` (Map fields) => ${_.name}(\n`;for(const D of _.fields)s+=` ${(0,u.mangle)(D.name)}: ${(0,u.cast)(`fields['${D.name}']`,D.type)},\n`;s+=" ),\n",s+=` (${_.name} obj) => ({\n`;for(const D of _.fields)s+=` '${D.name}': obj.${(0,u.mangle)(D.name)},\n`;s+=" }),\n",s+=" ),\n"}for(const _ of c.enumTypes)s+=` '${_.name}': EnumTypeDescription(${_.name}, ${_.name}.values, [\n ${_.values.map(D=>`'${D.value}'`).join(",\n ")}\n ]),\n`;s+="};\n\n",s+="var _fnTable = {\n";for(const _ of c.operations){s+=` '${_.name}': FunctionDescription('${_.returnType.name}', {\n`;for(const D of _.args)s+=` '${D.name}': '${D.type.name}',\n`;s+=" }),\n"}s+="};\n\n",s+="var _errTable = {\n";for(const _ of c.errors)s+=` '${_.name}': SdkgenErrorDescription('${_.dataType.name}', (msg, data) => ${_.name}(msg${_.dataType instanceof i.VoidPrimitiveType?"":", data"})),\n`;return s+="};\n",s}},5235:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateClass=g.cast=g.generateErrorClass=g.generateTypeName=g.generateEnum=g.mangle=void 0;const i=l(6676);function u(M){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(M)?`$${M}`:M}function c(M){switch(M.constructor){case i.StringPrimitiveType:return"String";case i.IntPrimitiveType:case i.UIntPrimitiveType:return"int";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"Uint8List";case i.MoneyPrimitiveType:return"int";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"dynamic";case i.OptionalType:return`${c(M.base)}?`;case i.ArrayType:return`List<${c(M.base)}>`;case i.StructType:case i.EnumType:return M.name;case i.TypeReference:return c(M.type);default:throw new Error(`BUG: generateTypeName with ${M.constructor.name}`)}}g.mangle=u,g.generateEnum=function m(M){return`enum ${M.name} {\n ${M.values.map(b=>b.value).join(",\n ")}\n}\n`},g.generateTypeName=c,g.generateErrorClass=function s(M){if(M.dataType instanceof i.VoidPrimitiveType)return`class ${M.name} extends SdkgenError {\n ${M.name}(String msg) : super(msg);\n}\n`;const b=c(M.dataType);return`class ${M.name} extends SdkgenErrorWithData<${b}> {\n ${M.name}(String msg, ${b} data) : super(msg, data);\n}\n`},g.cast=function _(M,b){return b instanceof i.OptionalType?`${M} == null ? null : ${_(M,b.base)}`:b instanceof i.ArrayType?`(${M} as List).map((e) => ${_("e",b.base)}).toList()`:b instanceof i.VoidPrimitiveType?M:b instanceof i.FloatPrimitiveType?`(${M} as num).toDouble()`:b instanceof i.MoneyPrimitiveType?`${M} as int`:`${M} as ${c(b)}`},g.generateClass=function A(M){return`class ${M.name} {\n ${M.fields.map(b=>`final ${c(b.type)} ${u(b.name)};`).join("\n ")}\n\n${function D(M){let b=` ${M.name}({\n`;for(const k of M.fields)b+=k.type instanceof i.OptionalType?" ":" required ",b+=`this.${u(k.name)},\n`;return b+=" });\n",b}(M)}\n${function T(M){let b=" bool operator ==(other){\n";return b+=" if (identical(this, other)) return true;\n",b+=` return ${[`other is ${M.name}`,...M.fields.map(k=>`${u(k.name)} == other.${u(k.name)}`)].join(" && ")};\n`,b+=" }\n",b}(M)}\n${function S(M){return` @override\n int get hashCode => hashList([${M.fields.map(b=>u(b.name)).join(", ")}]);\n`}(M)}\n${function d(M){return` String toString() {\n return '${M.name} { ${M.fields.map(b=>`${b.name}: $${u(b.name).startsWith("$")?`{${u(b.name)}}`:u(b.name)}`).join(", ")} }';\n }\n`}(M)}}\n`}},1823:function(Ve,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(1911),g)},196:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateFSharpServerSource=void 0;const i=l(6676),u=l(8735);g.generateFSharpServerSource=function m(c){let s="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 _ of c.errors)s+=`\ntype ${_.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${_.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${_.name}", message, inner)\n }\n`;for(const _ of c.enumTypes)s+=`\n${(0,u.generateEnum)(_)}\n`;for(const _ of c.structTypes)s+=`\n${(0,u.generateStruct)(_)}\n`;s+="\ntype Api() =";for(const _ of c.operations){const D=_.returnType instanceof i.VoidPrimitiveType?"":`<${(0,u.generateTypeName)(_.returnType)}>`,T=_.args.length>0?`{| ${_.args.map(S=>`${S.name}: ${(0,u.generateTypeName)(S.type)};`).join("")} |} ->`:"";s+=`\n member val ${(0,u.capitalize)(_.name)}: Context -> ${T} Task${D} =\n fun _ -> (raise (FatalException("Function '${_.name}' not implemented.")))\n with get, set\n `}s+="\n interface BaseApi with\n member __.ExecuteFunction(context_: Context, resultWriter_: Utf8JsonWriter) : Task =\n task {\n match context_.Name with";for(const _ of c.operations){s+=`\n | ${JSON.stringify(_.name)} ->`;for(const D of _.args)s+=`\n let ${D.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(D.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${_.name}().args.${D.name}' must be set to a value of type ${D.type.name}."))\n\n let ${(0,u.ident)(D.name)} =\n ${(0,u.decodeType)(D.type,`${D.name}Json_`,`"${_.name}().args.${D.name}"`,(0,u.ident)(D.name)).replace(/\n/gu,"\n ")}`;s+=_.returnType instanceof i.VoidPrimitiveType?`\n\n do! (__.${(0,u.capitalize)(_.name)} context_ ${_.args.length>0?"{|":""} ${_.args.map(D=>`${D.name} = ${(0,u.ident)(D.name)}`).join("; ")} ${_.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,u.capitalize)(_.name)} context_ ${_.args.length>0?"{|":""} ${_.args.map(D=>`${D.name} = ${(0,u.ident)(D.name)}`).join("; ")} ${_.args.length>0?"|}":""})\n ${(0,u.encodeType)(_.returnType,"result_",`"${_.name}().ret"`,1,!1).replace(/\n/gu,"\n ")}`}return s+="\n\n | _ -> raise (FatalException($\"Unknown function '{context_.Name}'.\"))\n } :> Task",s+=`\n member __.GetAstJson() = """${JSON.stringify((0,i.astToJson)(c),null,4).replace(/\n/gu,"\n ")}""";`,s}},8735:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateEnum=g.generateStruct=g.encodeType=g.decodeType=g.generateTypeName=g.capitalize=g.ident=void 0;const i=l(6676),u=["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"],c=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType,i.ArrayType];function s(M){return u.includes(M)?`${M}'`:M}function _(M){return M[0].toUpperCase()+M.slice(1)}function D(M){switch(M.constructor){case i.StringPrimitiveType:return"string";case i.IntPrimitiveType:return"int";case i.UIntPrimitiveType:return"uint";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"bigint";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"byte[]";case i.MoneyPrimitiveType:return"decimal";case i.UuidPrimitiveType:return"Guid";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${D(M.base)} option`;case i.ArrayType:return`${D(M.base)} list`;case i.StructType:case i.EnumType:return M.name;case i.TypeReference:return D(M.type);default:throw new Error(`BUG: generateTypeName with ${M.constructor.name}`)}}function T(M,b,k,$,pe=1,U=!0){switch(M.constructor){case i.IntPrimitiveType:return`\n decodeInt32 ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n decodeUInt32 ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n (decodeMoney ${b} ${k}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n decodeFloat ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n decodeBigInt ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n decodeString ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n decodeHtml ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n decodeCpf ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n decodeCnpj ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n decodeEmail ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n decodeUrl ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n decodeUuid ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n decodeHex ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n decodeBase64 ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n decodeXml ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n decodeBool ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n decodeBytes ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return T(M.type,b,k,$,pe);case i.OptionalType:return c.includes(M.base.constructor)?`match ${b}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${T(M.base,b,k,$,pe,!1).replace(/\n/gu,"\n ")}) |> Some\n `.replace(/\n {16}/gu,"\n").trim():M.base instanceof i.OptionalType||M.base instanceof i.ArrayType?`\n (>.>) decodeOptional ${T(M.base,b,k,$,pe,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${T(M.base,b,k,$,pe,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case i.EnumType:case i.StructType:return`Decode${M.name} ${b} ${k}`;case i.JsonPrimitiveType:return U?`\n ${b}\n `.replace(/\n {16}/gu,"\n").trim():`${$} <- ${b}`;case i.DateTimePrimitiveType:return`\n decodeDateTime ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n decodeDate ${b} ${k}\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n match ${b}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${b}.GetArrayLength() - 1) do\n let item = ${b}.[i1]\n let partialResult =\n ${T(M.base,`${b}.[i1]`,`${k.slice(0,-1)}.{i1}"`,$,pe,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${k.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${M.constructor.name}`)}}function S(M,b,k,$=1,pe=!0){switch(M.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${b})`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${b})`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${b} * 100m)))`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString())`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${b})`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${b}))`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString("yyyy-MM-dd"))`;case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.Base64PrimitiveType:case i.HexPrimitiveType:case i.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${b})`;case i.OptionalType:{let U=M.base;for(;U instanceof i.TypeReference;)U=U.type;return`\n if (${b}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${S(U,`${b}.Value`,k,$,pe)}\n `.replace(/\n {14}/gu,"\n").trim()}case i.TypeReference:return S(M.type,b,k,$,pe);case i.EnumType:case i.StructType:return`Encode${M.name} ${b} resultWriter_ ${k}`;case i.JsonPrimitiveType:return`${b}.WriteTo(resultWriter_)`;case i.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${$} in 0..${b}.Length - 1 do\n ${S(M.base,`${b}.[i${$}]`,`${k}`,$+1).replace(/\n/gu,"\n ")}\n resultWriter_.WriteEndArray()\n `.replace(/\n {14}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${M.constructor.name}`)}}g.ident=s,g.capitalize=_,g.generateTypeName=D,g.decodeType=T,g.encodeType=S,g.generateStruct=function d(M){return`\ntype ${M.name} = {\n ${M.fields.map(b=>`${_(b.name)}: ${D(b.type)}`).join(";\n ")}\n} with\n static member Create (${M.fields.map(b=>`${s(b.name)}: ${D(b.type)}`).join(", ")}): ${M.name} =\n { ${M.fields.map(b=>`${_(b.name)} = ${s(b.name)}`).join("; ")} }\n\nlet Decode${M.name} (json_: JsonElement) (path_: string): ${M.name} =\n if (json_.ValueKind <> JsonValueKind.Object) then raise (FatalException($"'{path_}' must be an object."))\n ${M.fields.map(b=>`\n let ${b.name}Json_ = decodeJsonElementStrict ${JSON.stringify(b.name)} json_ $"{path_}.${b.name}"\n let ${s(b.name)} =\n ${T(b.type,`${b.name}Json_`,`$"{path_}.${b.name}"`,s(b.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${M.fields.map(b=>`${_(b.name)} = ${s(b.name)}`).join("; ")} }\n\nlet Encode${M.name} (obj_: ${M.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${M.fields.map(b=>`\n resultWriter_.WritePropertyName(${JSON.stringify(b.name)})\n ${S(b.type,`obj_.${_(b.name)}`,`$"{path_}.${b.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},g.generateEnum=function A(M){return`\ntype ${M.name} =\n ${M.values.map(({value:b})=>`| ${_(b)}`).join("\n ")}\n\nlet Decode${M.name} (json_: JsonElement) (path_: string): ${M.name} =\n if (json_.ValueKind <> JsonValueKind.String) then raise (FatalException($"'{path_}' must be a string."))\n match json_.GetString() with\n ${M.values.map(({value:b})=>`| "${b}" -> ${M.name}.${_(b)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${M.values.map(({value:b})=>`'${b}'`).join(", ")})."))\n\nlet Encode${M.name} (obj_: ${M.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${M.values.map(({value:b})=>`| ${M.name}.${_(b)} -> resultWriter_.WriteStringValue("${b}")`).join("\n ")}\n\n`}},2863:function(Ve,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(196),g)},9409:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateAndroidClientSource=void 0;const i=l(6676),u=l(7250);g.generateAndroidClientSource=function m(c,s){let _='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.android.parcel.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 java.util.*\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) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const S of c.enumTypes)_+=` ${(0,u.generateEnum)(S)}`,_+="\n";_+=" open class Error(val message: String? = null)\n",_+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const S of c.structTypes)_+=` ${(0,u.generateClass)(S)}\n`;const D=[],T=new i.ErrorNode("Connection",new i.VoidPrimitiveType);D.push(T.name),_+=` ${(0,u.generateErrorClass)(T)}`;for(const S of c.errors)_+=` ${(0,u.generateErrorClass)(S)}`,D.push(S.name);return D.length>0&&(_+=`\n enum class ErrorType {\n ${D.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${D.map(S=>`${S} -> ApiClient.${S}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),_+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",_+=c.operations.filter(S=>S.annotations.every(d=>!(d instanceof i.HiddenAnnotation))).map(S=>{let d="";const A=[];A.push("timeoutMillis: Long? = null"),s&&A.push(`callback: ((response: Response<${(0,u.generateKotlinTypeName)(S.returnType)}>) -> Unit)? = null`);const M=S.args.map(b=>`${(0,u.mangle)(b.name)}: ${(0,u.generateKotlinTypeName)(b.type)}`).concat(A);return d+=` fun ${(0,u.mangle)(S.name)}(\n ${M.join(",\n ")}\n ): Deferred<Response<out ${(0,u.generateKotlinTypeName)(S.returnType)}>> = sdkgenIOScope.async {\n`,S.args.length>0?(d+=" val bodyArgs = JsonObject().apply {\n",d+=S.args.map(b=>` ${(0,u.generateJsonAddRepresentation)(b.type,b.name)}`).join("\n"),d+="\n }\n"):d+=" val bodyArgs: JsonObject? = null",d+="\n",d+=` val call = makeRequest("${S.name}", bodyArgs, timeoutMillis)\n`,d+=` val response: Response<${(0,u.generateKotlinTypeName)(S.returnType)}> = handleCallResponse(call)\n`,s&&(d+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),d+=" return@async response\n",d+=" }\n",d}).join("\n"),_+='\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',_+="}\n",_}},7250:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateErrorClass=g.generateClass=g.getAnnotation=g.generateEnum=g.generateJsonAddRepresentation=g.mangle=g.generateKotlinTypeName=void 0;const i=l(6676);function u(S){switch(S.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:return"Int";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Calendar";case i.BoolPrimitiveType:return"Boolean";case i.BytesPrimitiveType:return"ByteArray";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Unit";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${u(S.base)}?`;case i.ArrayType:return`ArrayList<${u(S.base)}>`;case i.StructType:case i.EnumType:return S.name;case i.TypeReference:return u(S.type);default:throw new Error(`BUG: generateKotlinTypeName with ${S.constructor.name}`)}}function m(S){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(S)?`_${S}`:S}function _(S,d){let A="";switch(d&&d!==m(d)&&(A+=` @SerializedName("${d}")\n`),S.constructor){case i.DatePrimitiveType:A+=" @JsonAdapter(DateAdapter::class)\n";break;case i.DateTimePrimitiveType:A+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case i.ArrayType:case i.OptionalType:A+=_(S.base)}return A}g.generateKotlinTypeName=u,g.mangle=m,g.generateJsonAddRepresentation=function c(S,d){switch(S.constructor){case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:case i.BoolPrimitiveType:return`addProperty("${d}", ${m(d)})`;case i.OptionalType:return c(S.base,d);case i.DatePrimitiveType:return`addProperty("${d}", ${m(d)}?.let { DateAdapter.sdf.format(it.time)}) `;case i.DateTimePrimitiveType:return`addProperty("${d}", ${m(d)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case i.ArrayType:case i.StructType:case i.EnumType:case i.TypeReference:case i.JsonPrimitiveType:return`add("${d}", gson.toJsonTree(${m(d)}))`;case i.VoidPrimitiveType:return"";case i.BytesPrimitiveType:return`addProperty("${d}", Base64.encodeToString(${m(d)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${S.constructor.name}`)}},g.generateEnum=function s(S){let d="@Parcelize \n";return d+=` enum class ${S.name} : Parcelable { ${S.values.map(A=>m(A.value)).join(", ")} }\n`,d},g.getAnnotation=_,g.generateClass=function D(S){let d="@Parcelize\n";return d+=` data class ${S.name}(\n${S.fields.map(A=>{let M=_(A.type,A.name);return M+=` var ${m(A.name)}: ${u(A.type)}${A.type.constructor===i.OptionalType?" = null":""}`,M}).join(",\n")}\n ) : Parcelable\n`,d},g.generateErrorClass=function T(S){return`class ${S.name}(message: String) : Error(message)\n`}},7402:function(Ve,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(9409),g)},1942:function(Ve,g,l){"use strict";var i=this&&this.__rest||function(Re,ye){var Je={};for(var mt in Re)Object.prototype.hasOwnProperty.call(Re,mt)&&ye.indexOf(mt)<0&&(Je[mt]=Re[mt]);if(null!=Re&&"function"==typeof Object.getOwnPropertySymbols){var yt=0;for(mt=Object.getOwnPropertySymbols(Re);yt<mt.length;yt++)ye.indexOf(mt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Re,mt[yt])&&(Je[mt[yt]]=Re[mt[yt]])}return Je};Object.defineProperty(g,"__esModule",{value:!0}),g.AstRoot=g.FunctionOperation=g.TypeDefinition=g.StructType=g.TypeReference=g.Spread=g.Field=g.EnumType=g.EnumValue=g.ArrayType=g.OptionalType=g.JsonPrimitiveType=g.XmlPrimitiveType=g.Base64PrimitiveType=g.HtmlPrimitiveType=g.HexPrimitiveType=g.UuidPrimitiveType=g.UrlPrimitiveType=g.EmailPrimitiveType=g.CnpjPrimitiveType=g.CpfPrimitiveType=g.MoneyPrimitiveType=g.VoidPrimitiveType=g.BytesPrimitiveType=g.BoolPrimitiveType=g.DateTimePrimitiveType=g.DatePrimitiveType=g.BigIntPrimitiveType=g.FloatPrimitiveType=g.UIntPrimitiveType=g.IntPrimitiveType=g.StringPrimitiveType=g.PrimitiveType=g.HiddenAnnotation=g.RestAnnotation=g.ArgDescriptionAnnotation=g.ThrowsAnnotation=g.DescriptionAnnotation=g.Annotation=g.ErrorNode=g.Type=g.AstNode=void 0;const u=l(9037);class m{constructor(){this.location=new u.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ye){return this.location=ye.location,this}atLocation(ye){return this.location=ye,this}}g.AstNode=m;class c extends m{toJSON(){const ye=Object.assign({},this);return i(ye,["name"])}}g.Type=c,g.ErrorNode=class s extends m{constructor(ye,Je){super(),this.name=ye,this.dataType=Je}};class _ extends m{}g.Annotation=_,g.DescriptionAnnotation=class D extends _{constructor(ye){super(),this.text=ye}},g.ThrowsAnnotation=class T extends _{constructor(ye){super(),this.error=ye}},g.ArgDescriptionAnnotation=class S extends _{constructor(ye,Je){super(),this.argName=ye,this.text=Je}},g.RestAnnotation=class d extends _{constructor(ye,Je,mt,yt,It,ut){super(),this.method=ye,this.path=Je,this.pathVariables=mt,this.queryVariables=yt,this.headers=It,this.bodyVariable=ut}},g.HiddenAnnotation=class A extends _{};class M extends c{toJSON(){return this.name}}g.PrimitiveType=M,g.StringPrimitiveType=class b extends M{constructor(){super(...arguments),this.name="string"}},g.IntPrimitiveType=class k extends M{constructor(){super(...arguments),this.name="int"}},g.UIntPrimitiveType=class $ extends M{constructor(){super(...arguments),this.name="uint"}},g.FloatPrimitiveType=class pe extends M{constructor(){super(...arguments),this.name="float"}},g.BigIntPrimitiveType=class U extends M{constructor(){super(...arguments),this.name="bigint"}},g.DatePrimitiveType=class ae extends M{constructor(){super(...arguments),this.name="date"}},g.DateTimePrimitiveType=class Se extends M{constructor(){super(...arguments),this.name="datetime"}},g.BoolPrimitiveType=class me extends M{constructor(){super(...arguments),this.name="bool"}},g.BytesPrimitiveType=class be extends M{constructor(){super(...arguments),this.name="bytes"}},g.VoidPrimitiveType=class se extends M{constructor(){super(...arguments),this.name="void"}},g.MoneyPrimitiveType=class Me extends M{constructor(){super(...arguments),this.name="money"}},g.CpfPrimitiveType=class Le extends M{constructor(){super(...arguments),this.name="cpf"}},g.CnpjPrimitiveType=class qe extends M{constructor(){super(...arguments),this.name="cnpj"}},g.EmailPrimitiveType=class at extends M{constructor(){super(...arguments),this.name="email"}},g.UrlPrimitiveType=class te extends M{constructor(){super(...arguments),this.name="url"}},g.UuidPrimitiveType=class Fe extends M{constructor(){super(...arguments),this.name="uuid"}},g.HexPrimitiveType=class X extends M{constructor(){super(...arguments),this.name="hex"}},g.HtmlPrimitiveType=class le extends M{constructor(){super(...arguments),this.name="html"}},g.Base64PrimitiveType=class Ae extends M{constructor(){super(...arguments),this.name="base64"}},g.XmlPrimitiveType=class ne extends M{constructor(){super(...arguments),this.name="xml"}},g.JsonPrimitiveType=class Ke extends M{constructor(){super(...arguments),this.name="json"}},g.OptionalType=class _e extends c{constructor(ye){super(),this.base=ye}get name(){return`${this.base.name}?`}},g.ArrayType=class tt extends c{constructor(ye){super(),this.base=ye}get name(){return`${this.base.name}[]`}},g.EnumValue=class Ce extends m{constructor(ye){super(),this.value=ye,this.annotations=[],this.struct=null}},g.EnumType=class He extends c{constructor(ye){super(),this.values=ye}get hasStructValues(){return this.values.some(ye=>null!==ye.struct)}},g.Field=class ct extends m{constructor(ye,Je,mt=!1){super(),this.name=ye,this.type=Je,this.secret=mt,this.annotations=[]}},g.Spread=class bt extends m{constructor(ye){super(),this.typeReference=ye}},g.TypeReference=class Be extends c{constructor(ye){super(),this.name=ye}},g.StructType=class Xe extends c{constructor(ye){super(),this.fieldsAndSpreads=ye,this.fields=[]}},g.TypeDefinition=class J extends m{constructor(ye,Je){super(),this.name=ye,this.type=Je,this.annotations=[]}},g.FunctionOperation=class ge extends m{constructor(ye,Je,mt){super(),this.name=ye,this.fieldsAndSpreads=Je,this.returnType=mt,this.annotations=[],this.args=[]}},g.AstRoot=class Ie{constructor(ye=[],Je=[],mt=[]){this.typeDefinitions=ye,this.operations=Je,this.errors=mt,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.compatibilityIssues=void 0;const i=l(1942);function u(s,_,D,T){var S,d;if(D instanceof i.TypeReference)u(s,_,D.type,T);else if(T instanceof i.TypeReference)u(s,_,D,T.type);else if(D instanceof i.OptionalType||!(T instanceof i.OptionalType))if(D instanceof i.OptionalType&&T instanceof i.OptionalType)u(s,_,D.base,T.base);else{if(D instanceof i.OptionalType&&!(T instanceof i.OptionalType))return _.push(`${s} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void u(s,_,D.base,T);if(D instanceof i.ArrayType&&T instanceof i.ArrayType)u(s,_,D.base,T.base);else if(D instanceof i.StructType&&T instanceof i.StructType)for(const A of T.fields){const M=D.fields.find(b=>b.name===A.name);if(M)u(`${s}.${M.name}`,_,M.type,A.type);else{if(A.type instanceof i.OptionalType)continue;_.push(`${s}.${A.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(D instanceof i.UIntPrimitiveType&&T instanceof i.IntPrimitiveType||D instanceof i.IntPrimitiveType&&T instanceof i.FloatPrimitiveType||D instanceof i.MoneyPrimitiveType&&T instanceof i.IntPrimitiveType||D instanceof i.MoneyPrimitiveType&&T instanceof i.UIntPrimitiveType||D instanceof i.UIntPrimitiveType&&T instanceof i.BigIntPrimitiveType||D instanceof i.IntPrimitiveType&&T instanceof i.BigIntPrimitiveType||D instanceof i.MoneyPrimitiveType&&T instanceof i.BigIntPrimitiveType||D instanceof i.BigIntPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.UuidPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.XmlPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.DatePrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.DateTimePrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.CpfPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.CnpjPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.HexPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.HtmlPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.Base64PrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.BytesPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.BytesPrimitiveType&&T instanceof i.Base64PrimitiveType||D instanceof i.UrlPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.EmailPrimitiveType&&T instanceof i.StringPrimitiveType||D instanceof i.EnumType&&T instanceof i.StringPrimitiveType)){if(D instanceof i.EnumType&&T instanceof i.EnumType){for(const A of D.values){const M=T.values.find(b=>b.value===A.value);M?u(`${s}.${A.value}`,_,null!==(S=A.struct)&&void 0!==S?S:new i.StructType([]),null!==(d=M.struct)&&void 0!==d?d:new i.StructType([])):_.push(`The enum at ${s} used to accept the value "${A.value}" that doesn't exist now. Clients that send it will fail.`)}return}D.constructor.name!==T.constructor.name&&_.push(`${s} was ${D.name} and now it is ${T.name}. They are not compatible.`)}}else u(s,_,D,T.base)}function m(s,_,D,T){var S,d;if(D instanceof i.TypeReference)m(s,_,D.type,T);else if(T instanceof i.TypeReference)m(s,_,D,T.type);else if(!(D instanceof i.OptionalType)||T instanceof i.OptionalType)if(D instanceof i.OptionalType&&T instanceof i.OptionalType)m(s,_,D.base,T.base);else{if(!(D instanceof i.OptionalType)&&T instanceof i.OptionalType)return _.push(`${s} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void m(s,_,D,T.base);if(D instanceof i.ArrayType&&T instanceof i.ArrayType)m(s,_,D.base,T.base);else if(D instanceof i.StructType&&T instanceof i.StructType)for(const A of D.fields){const M=T.fields.find(b=>b.name===A.name);if(M)m(`${s}.${A.name}`,_,A.type,M.type);else{if(A.type instanceof i.OptionalType)continue;_.push(`${s}.${A.name} used to exist with type ${A.type.name}, but it's now missing. Add it back.`)}}else if(!(D instanceof i.IntPrimitiveType&&T instanceof i.UIntPrimitiveType||D instanceof i.FloatPrimitiveType&&T instanceof i.IntPrimitiveType||D instanceof i.IntPrimitiveType&&T instanceof i.MoneyPrimitiveType||D instanceof i.UIntPrimitiveType&&T instanceof i.MoneyPrimitiveType||D instanceof i.BigIntPrimitiveType&&T instanceof i.UIntPrimitiveType||D instanceof i.BigIntPrimitiveType&&T instanceof i.IntPrimitiveType||D instanceof i.BigIntPrimitiveType&&T instanceof i.MoneyPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.BigIntPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.UuidPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.XmlPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.DatePrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.DateTimePrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.CpfPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.CnpjPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.HexPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.HtmlPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.Base64PrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.BytesPrimitiveType||D instanceof i.Base64PrimitiveType&&T instanceof i.BytesPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.UrlPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.EmailPrimitiveType||D instanceof i.StringPrimitiveType&&T instanceof i.EnumType)){if(D instanceof i.EnumType&&T instanceof i.EnumType){for(const A of T.values){const M=D.values.find(b=>b.value===A.value);M?m(`${s}.${A.value}`,_,null!==(S=M.struct)&&void 0!==S?S:new i.StructType([]),null!==(d=A.struct)&&void 0!==d?d:new i.StructType([])):_.push(`The enum at ${s} now has the value "${A.value}" that didn't exist before. Client will crash if it receives it`)}return}D.constructor.name!==T.constructor.name&&_.push(`${s} was ${D.name} and now it is ${T.name}. They are not compatible.`)}}else m(s,_,D.base,T)}g.compatibilityIssues=function c(s,_){const D=[];for(const T of s.operations){const S=_.operations.find(d=>d.name===T.name);if(S){m(`${T.name}.ret`,D,T.returnType,S.returnType);for(const d of S.args){const A=T.args.find(M=>M.name===d.name);if(A)u(`${T.name}.args.${A.name}`,D,A.type,d.type);else{if(d.type instanceof i.OptionalType)continue;D.push(`${T.name}.args.${d.name} didn't exist before and isn't optional. Make it optional.`)}}}else D.push(`function ${T.name} used to exist, but it's now missing. Add it back.`)}for(const T of s.errors){const S=_.errors.find(d=>d.name===T.name);!S||m(`${T.name}.data`,D,T.dataType,S.dataType)}return D}},6676:function(Ve,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,s,_,D){void 0===D&&(D=_),Object.defineProperty(c,D,{enumerable:!0,get:function(){return s[_]}})}:function(c,s,_,D){void 0===D&&(D=_),c[D]=s[_]}),u=this&&this.__exportStar||function(c,s){for(var _ in c)"default"!==_&&!Object.prototype.hasOwnProperty.call(s,_)&&i(s,c,_)};Object.defineProperty(g,"__esModule",{value:!0}),g.jsonToAst=g.astToJson=void 0,u(l(1942),g),u(l(9747),g);var m=l(1557);Object.defineProperty(g,"astToJson",{enumerable:!0,get:function(){return m.astToJson}}),Object.defineProperty(g,"jsonToAst",{enumerable:!0,get:function(){return m.jsonToAst}}),u(l(8053),g),u(l(2701),g),u(l(9037),g)},1557:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.jsonToAst=g.astToJson=void 0;const i=l(1942),u=l(6088),m=l(6569);function c(T){if(T instanceof i.DescriptionAnnotation)return{type:"description",value:T.text};if(T instanceof i.ThrowsAnnotation)return{type:"throws",value:T.error};if(T instanceof i.RestAnnotation)return{type:"rest",value:{bodyVariable:T.bodyVariable,headers:[...T.headers.entries()].sort(([S],[d])=>S.localeCompare(d)),method:T.method,path:T.path,pathVariables:[...T.pathVariables].sort((S,d)=>S.localeCompare(d)),queryVariables:[...T.queryVariables].sort((S,d)=>S.localeCompare(d))}};if(T instanceof i.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${T.constructor.name}`)}function s(T){switch(T.type){case"description":return new i.DescriptionAnnotation(T.value);case"throws":return new i.ThrowsAnnotation(T.value);case"rest":{const{method:S,path:d,pathVariables:A,queryVariables:M,headers:b,bodyVariable:k}=T.value;return new i.RestAnnotation(S,d,A,M,new Map(b),k)}case"hidden":return new i.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${T.type}`)}}g.astToJson=function _(T){var S,d,A;const M={},b={};function k(U){return U instanceof i.ArrayType?`${k(U.base)}[]`:U instanceof i.OptionalType?`${k(U.base)}?`:U.name}for(const{name:U,fields:ae}of T.structTypes){b[U]={};const Se=b[U];for(const me of ae){Se[me.name]=k(me.type);for(const be of me.annotations)if(be instanceof i.DescriptionAnnotation){const se=`type.${U}.${me.name}`;null!==(S=M[se])&&void 0!==S||(M[se]=[]),M[se].push(c(be))}}}for(const{name:U,values:ae}of T.enumTypes)b[U]=ae.map(Se=>Se.struct?[Se.value,Se.struct.name]:Se.value);for(const{name:U,type:ae}of T.typeDefinitions)ae instanceof i.StructType||ae instanceof i.EnumType||(b[U]=k(ae));const $={};for(const U of T.operations){const ae={};for(const Se of U.args){ae[Se.name]=k(Se.type);for(const me of Se.annotations)if(me instanceof i.DescriptionAnnotation){const be=`fn.${U.name}.${Se.name}`;null!==(d=M[be])&&void 0!==d||(M[be]=[]),M[be].push(c(me))}}$[U.name]={args:ae,ret:k(U.returnType)};for(const Se of U.annotations){const me=`fn.${U.name}`;null!==(A=M[me])&&void 0!==A||(M[me]=[]),M[me].push(c(Se))}}return{annotations:M,errors:T.errors.map(U=>U.dataType instanceof i.VoidPrimitiveType?U.name:[U.name,U.dataType.name]),functionTable:$,typeTable:b}},g.jsonToAst=function D(T){var S,d;const A=[],M=[],b=[];function k(U,ae){var Se;if("string"==typeof U){const be=m.primitiveToAstClass.get(U);return be?new be:U.endsWith("?")?new i.OptionalType(k(U.slice(0,U.length-1))):U.endsWith("[]")?new i.ArrayType(k(U.slice(0,U.length-2))):new i.TypeReference(U)}if(Array.isArray(U))return new i.EnumType(U.map(be=>{if(Array.isArray(be)){const[se,Me]=be,Le=new i.EnumValue(se);return b.push([Le,Me]),Le}return new i.EnumValue(be)}));const me=[];for(const be of Object.keys(U)){const se=new i.Field(be,k(U[be]));if(ae){const Me=`type.${ae}.${be}`;for(const Le of null!==(Se=T.annotations[Me])&&void 0!==Se?Se:[])se.annotations.push(s(Le))}me.push(se)}return new i.StructType(me)}for(const[U,ae]of Object.entries(T.typeTable)){const Se=k(ae,U);M.push(new i.TypeDefinition(U,Se))}for(const[U,ae]of Object.entries(T.functionTable)){const Se=Object.keys(ae.args).map(se=>{var Me;const Le=new i.Field(se,k(ae.args[se])),qe=`fn.${U}.${se}`;for(const at of null!==(Me=T.annotations[qe])&&void 0!==Me?Me:[])Le.annotations.push(s(at));return Le}),me=new i.FunctionOperation(U,Se,k(ae.ret)),be=`fn.${U}`;for(const se of null!==(S=T.annotations[be])&&void 0!==S?S:[])me.annotations.push(s(se));A.push(me)}for(const[U,ae]of b){const Se=null===(d=M.find(me=>me.name===ae))||void 0===d?void 0:d.type;Se instanceof i.StructType&&(U.struct=Se)}const $=T.errors.map(U=>Array.isArray(U)?new i.ErrorNode(U[0],k(U[1])):new i.ErrorNode(U,new i.VoidPrimitiveType)),pe=new i.AstRoot(M,A,$);return(0,u.analyse)(pe),pe}},8053:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Lexer=g.LexerError=void 0;const i=l(9037);class u extends Error{}g.LexerError=u;class m{constructor(s,_="-"){this.source=s,this.filename=_,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 s=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(),s=new i.CurlyOpenSymbolToken;break;case"}":this.nextChar(),s=new i.CurlyCloseSymbolToken;break;case"(":this.nextChar(),s=new i.ParensOpenSymbolToken;break;case")":this.nextChar(),s=new i.ParensCloseSymbolToken;break;case"?":this.nextChar(),s=new i.OptionalSymbolToken;break;case":":this.nextChar(),s=new i.ColonSymbolToken;break;case"=":this.nextChar(),s=new i.EqualSymbolToken;break;case"!":this.nextChar(),s=new i.ExclamationMarkSymbolToken;break;case",":this.nextChar(),s=new i.CommaSymbolToken;break;case"[":"]"===this.nextChar()&&(this.nextChar(),s=new i.ArraySymbolToken);break;case".":"."===this.nextChar()&&"."===this.nextChar()&&(this.nextChar(),s=new i.SpreadSymbolToken);break;case"@":{let _="\\",D=this.startPos+1;for(;"\\"===_[_.length-1];){for(_=_.slice(0,_.length-1).trim();!["\0","\n"].includes(this.nextChar()););_=`${_} ${this.source.substring(D,this.pos).trim()}`.trim(),D=this.pos+1}s=new i.AnnotationToken(_.trim());break}case'"':{const _=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":_.push("\n");break;case"t":_.push("\t");break;default:_.push(this.currentChar())}break;case'"':this.nextChar(),s=new i.StringLiteralToken(_.join(""));break e;default:_.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const _=this.source.substring(this.startPos,this.pos);switch(_){case"error":s=new i.ErrorKeywordToken;break;case"enum":s=new i.EnumKeywordToken;break;case"type":s=new i.TypeKeywordToken;break;case"import":s=new i.ImportKeywordToken;break;case"fn":s=new i.FnKeywordToken;break;case"true":s=new i.TrueKeywordToken;break;case"false":s=new i.FalseKeywordToken;break;default:s=m.PRIMITIVES.has(_)?new i.PrimitiveTypeToken(_):new i.IdentifierToken(_)}}}if(null!==s)return s.location.filename=this.filename,s.location.line=this.startLine,s.location.column=this.startColumn,s;throw"\0"===this.currentChar()?new u(`Unexpected end of file at ${this.filename}`):new u(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}g.Lexer=m,m.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),m.KEYWORDS=new Set([...m.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},2701:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Parser=g.ParserError=void 0;const i=l(1942),u=l(8053),m=l(7145),c=l(6088),s=l(9037),_=l(6569);class D extends Error{}g.ParserError=D,g.Parser=class T{constructor(d){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var M=new Error("Cannot find module 'fs'");throw M.code="MODULE_NOT_FOUND",M}())}catch(A){}this.lexers=d instanceof u.Lexer?[d]:[new u.Lexer(this.readFileSync(d).toString(),d)],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(d){if(!this.token)throw new D(`Expected ${Object.keys(d).map(M=>M.replace("Token","")).join(" or ")}, but found end of file`);const A=this.token.constructor.name;if(A in d)return d[A](this.token);if(d.IdentifierToken){const M=this.token.maybeAsIdentifier();if(M instanceof s.IdentifierToken)return d.IdentifierToken(M)}throw new D(`Expected ${Object.keys(d).map(M=>M.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(d){if(null===this.token)throw new D(`Expected ${d.name.replace("Token","")}, but found end of file`);if(this.token instanceof d)return this.token;if(d===s.IdentifierToken){const A=this.token.maybeAsIdentifier();if(A instanceof s.IdentifierToken)return A}throw new D(`Expected ${d.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const d=[],A=[],M=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{M.push(this.parseError())},FnKeywordToken:()=>{d.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const k=this.expect(s.StringLiteralToken),$=k.location.filename.replace(/[^/\\]+$/u,`${k.value}.sdkgen`);this.lexers.push(new u.Lexer(this.readFileSync($).toString(),$)),this.nextToken()},TypeKeywordToken:()=>{A.push(this.parseTypeDefinition())}});const b=new i.AstRoot(A,d,M);return b.warnings=this.warnings,(0,c.analyse)(b),b}acceptAnnotations(){for(;this.token instanceof s.AnnotationToken;){const d=this.token.value.split(" "),A=this.token.value.slice(d[0].length).trim();switch(d[0]){case"description":this.annotations.push(new i.DescriptionAnnotation(A).at(this.token));break;case"arg":this.annotations.push(new i.ArgDescriptionAnnotation(d[1],this.token.value.slice(d[0].length+1+d[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new i.ThrowsAnnotation(A).at(this.token));break;case"rest":try{this.annotations.push((0,m.parseRestAnnotation)(A).at(this.token))}catch(M){throw new D(`${M instanceof Error?M.message:M} at ${this.token.location}`)}break;case"hidden":if(""!==A)throw new D("@hidden annotation doesn't take any argument");this.annotations.push((new i.HiddenAnnotation).at(this.token));break;default:throw new D(`Unknown annotation '${d[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new D(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const d=this.expect(s.TypeKeywordToken);this.nextToken();const A=this.expect(s.IdentifierToken),M=A.value;if(!/[A-Z]/u.test(M[0]))throw new D(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(M)} at ${A.location}`);this.nextToken();const{annotations:b}=this;this.annotations=[];const k=this.parseType(),$=new i.TypeDefinition(M,k).at(d);return $.annotations=b,$}parseError(){this.checkCannotHaveAnnotationsHere();const d=this.expect(s.ErrorKeywordToken);this.nextToken();const A=this.expect(s.IdentifierToken),M=A.value;if(!/[A-Z]/u.test(M[0]))throw new D(`Error name must start with an uppercase letter, but found ${JSON.stringify(M)} at ${A.location}`);this.nextToken();let b=new i.VoidPrimitiveType;return(this.token instanceof s.CurlyOpenSymbolToken||this.token instanceof s.EnumKeywordToken||this.token instanceof s.IdentifierToken||this.token instanceof s.PrimitiveTypeToken)&&(b=this.parseType()),new i.ErrorNode(M,b).at(d)}parseOperation(){let{annotations:d}=this;this.annotations=[],this.expect(s.FnKeywordToken),this.nextToken();const A=this.expect(s.IdentifierToken).value;this.nextToken(),this.expect(s.ParensOpenSymbolToken),this.nextToken();const M=new Set,b=[];let $,k=!1;for(;!k;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:ae=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,$=ae},IdentifierToken:()=>{const ae=this.parseField();if(M.has(ae.name))throw new D(`Cannot redeclare argument '${ae.name}'`);M.add(ae.name),b.push(ae),this.multiExpect({ParensCloseSymbolToken:Se=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,$=Se},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const ae=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(ae.value[0]))throw new D(`Expected a type but found ${JSON.stringify(ae.value)} at ${ae.location}`);b.push(new i.Spread(new i.TypeReference(ae.value).at(ae)).at(ae)),this.multiExpect({ParensCloseSymbolToken:Se=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),k=!0,$=Se},CommaSymbolToken:()=>this.nextToken()})}});for(const ae of d)if(ae instanceof i.ArgDescriptionAnnotation){const Se=b.find(me=>me instanceof i.Field&&me.name===ae.argName);if(!Se)throw new D(`Argument '${ae.argName}' not found, at ${ae.location}`);Se.annotations.push(new i.DescriptionAnnotation(ae.text).atLocation(ae.location))}d=d.filter(ae=>!(ae instanceof i.ArgDescriptionAnnotation));let pe=(new i.VoidPrimitiveType).at($);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),pe=this.parseType());const U=new i.FunctionOperation(A,b,pe);return U.annotations=d,U}parseEnum(){this.checkCannotHaveAnnotationsHere();const d=this.expect(s.EnumKeywordToken);this.nextToken(),this.expect(s.CurlyOpenSymbolToken),this.nextToken();const A=new i.EnumType([]).at(d);let M=!1;for(;!M;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),M=!0},IdentifierToken:b=>{const k=new i.EnumValue(b.value).at(b);if(k.annotations=this.annotations,this.annotations=[],A.values.push(k),this.nextToken(),!(this.token instanceof s.ParensOpenSymbolToken))return;this.nextToken();const $=new Set,pe=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof s.IdentifierToken;){const U=this.parseField();if("tag"===U.name&&(U.name="_tag"),$.has(U.name))throw new D(`Cannot redeclare argument '${U.name}'`);if($.add(U.name),pe.push(U),!(this.token instanceof s.CommaSymbolToken))break;this.nextToken()}k.struct=new i.StructType(pe).atLocation(k.location),this.expect(s.ParensCloseSymbolToken),this.nextToken()}});return A}parseField(){const d=this.expect(s.IdentifierToken);this.nextToken(),this.expect(s.ColonSymbolToken),this.nextToken();const{annotations:A}=this;this.annotations=[];const M=this.parseType(),b=new i.Field(d.value,M).at(d);for(b.annotations=A;this.token instanceof s.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(s.IdentifierToken).value))throw new D(`Unknown field mark !${this.token.value} at ${this.token.location}`);b.secret=!0,this.nextToken()}return b}parseStruct(){const d=this.expect(s.CurlyOpenSymbolToken);this.nextToken();const A=[],M=new Set;let b=!1;for(;!b;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),b=!0},IdentifierToken:()=>{const k=this.parseField();if(M.has(k.name))throw new D(`Cannot redeclare field '${k.name}'`);M.add(k.name),A.push(k)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const k=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(k.value[0]))throw new D(`Expected a type but found ${JSON.stringify(k.value)} at ${k.location}`);A.push(new i.Spread(new i.TypeReference(k.value).at(k)).at(k))}});return new i.StructType(A).at(d)}parseType(){this.checkCannotHaveAnnotationsHere();let d=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:A=>{if(this.nextToken(),!/[A-Z]/u.test(A.value[0]))throw new D(`Expected a type but found ${JSON.stringify(A.value)} at ${A.location}`);return new i.TypeReference(A.value).at(A)},PrimitiveTypeToken:A=>{this.nextToken();const M=_.primitiveToAstClass.get(A.value);if(M)return(new M).at(A);throw new D(`BUG! Should handle primitive ${A.value}`)}});for(;this.token instanceof s.ArraySymbolToken||this.token instanceof s.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:A=>d=new i.ArrayType(d).at(A),OptionalSymbolToken:A=>d=new i.OptionalType(d).at(A)}),this.nextToken();return d}}},7145:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.parseRestAnnotation=void 0;const i=l(1942);function c(_){var D;const T=/\{(?<name>\w+)\}/gu,S=[];let d;for(;null!==(d=T.exec(_));)(null===(D=d.groups)||void 0===D?void 0:D.name)&&S.push(d.groups.name);return S}g.parseRestAnnotation=function s(_){const D=_.split(" "),T=D[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(T))throw new Error(`Unsupported method '${T}'`);let S=D[1];if(!S.startsWith("/"))throw new Error("Invalid path");let d=[];if(S.includes("?")){const[$,...pe]=S.split("?");S=$;const U=pe.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(U))throw new Error("Invalid querystring on path");d=c(U)}const A=c(S),M=D.slice(2).join(" "),b=function u(_){var D;const T=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,S=new Map;let d;for(;null!==(d=T.exec(_));)(null===(D=d.groups)||void 0===D?void 0:D.header)&&d.groups.name&&S.set(d.groups.header.toLowerCase(),d.groups.name);return S}(M),k=function m(_){var D;const T=/\[body \{(?<name>\w+)\}\]/u.exec(_);return(null===(D=null==T?void 0:T.groups)||void 0===D?void 0:D.name)?T.groups.name:null}(M);return new i.RestAnnotation(T,S,A,d,b,k)}},7629:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CheckMultipleDeclarationVisitor=void 0;const i=l(1942),u=l(3154);g.CheckMultipleDeclarationVisitor=class m extends u.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(s){if(s instanceof i.TypeDefinition){const _=this.nameToType.get(s.name);if(_&&JSON.stringify(_)!==JSON.stringify(s.type))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is defined multiple times (also at ${_.location})`);this.nameToType.set(s.name,s.type)}super.visit(s)}}},6153:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.GiveStructAndEnumNamesVisitor=void 0;const i=l(1942),u=l(3154);g.GiveStructAndEnumNamesVisitor=class m extends u.Visitor{constructor(){super(...arguments),this.path=[],this.names=new Map}visit(s){if(s instanceof i.TypeDefinition)this.path=[s.name],super.visit(s);else if(s instanceof i.ErrorNode)this.path=[`${s.name}Data`],super.visit(s);else if(s instanceof i.FunctionOperation)this.path=[s.name],super.visit(s);else if(s instanceof i.Field)this.path.push(s.name),super.visit(s),this.path.pop();else if(s instanceof i.EnumValue)this.path.push(s.value),super.visit(s),this.path.pop();else if(s instanceof i.StructType||s instanceof i.EnumType){s.name=this.path.map(D=>D[0].toUpperCase()+D.slice(1)).join("");const _=this.names.get(s.name);if(_&&JSON.stringify(_.type)!==JSON.stringify(s))throw new u.SemanticError(`The name of the type '${this.path.join(".")}' at ${s.location} will conflict with '${_.path.join(".")}' at ${_.type.location}`);this.names.set(s.name,{path:[...this.path],type:s}),super.visit(s)}else super.visit(s)}}},9471:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.MatchTypeDefinitionsVisitor=void 0;const i=l(1942),u=l(3154);g.MatchTypeDefinitionsVisitor=class m extends u.Visitor{visit(s){if(s instanceof i.TypeReference){const _=this.root.typeDefinitions.find(D=>D.name===s.name);if(void 0===_)throw new u.SemanticError(`Could not find type '${s.name}' at ${s.location}`);s.type=_.type}super.visit(s)}}},4612:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CheckDontReturnSecretVisitor=void 0;const i=l(1942),u=l(3154);g.CheckDontReturnSecretVisitor=class m extends u.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(s){if(!this.visited.has(s))if(this.visited.add(s),s instanceof i.FunctionOperation)this.isInReturn=!0,this.path.push(`${s.name}(...)`),this.visit(s.returnType),this.path.pop(),this.isInReturn=!1;else if(s instanceof i.TypeReference)this.visit(s.type);else if(s instanceof i.Field){if(this.path.push(s.name),this.isInReturn&&s.secret)throw new u.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${s.location}`);super.visit(s),this.path.pop()}else super.visit(s)}}},4978:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ExpandSpreadsVisitor=void 0;const i=l(1942),u=l(3154);g.ExpandSpreadsVisitor=class m extends u.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(s,_){const D=new Map;for(const T of _){let S;if(T instanceof i.Field)S=[T];else{const d=T.typeReference.type;if(!(d instanceof i.StructType))throw new u.SemanticError(`A spread operator can't refer to something that is not a struct, in '${T.typeReference.name}' at ${T.location}.`);this.visit(d),S=d.fields}for(const d of S){const A=D.get(d.name);A?s[A]=d:(D.set(d.name,s.length),s.push(d))}}}visit(s){if(s instanceof i.StructType){if(this.processed.has(s))return;this.processed.add(s)}super.visit(s),s instanceof i.StructType?(this.expandSpread(s.fields,s.fieldsAndSpreads),s.fieldsAndSpreads=[]):s instanceof i.FunctionOperation&&(this.expandSpread(s.args,s.fieldsAndSpreads),s.fieldsAndSpreads=[])}}},9866:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CheckEmptyStructOrEnumVisitor=void 0;const i=l(1942),u=l(3154);g.CheckEmptyStructOrEnumVisitor=class m extends u.Visitor{visit(s){if(super.visit(s),s instanceof i.EnumType&&0===s.values.length)throw new u.SemanticError(`Enum '${s.name}' at ${s.location} is empty`);if(s instanceof i.StructType&&0===s.fields.length)throw new u.SemanticError(`Struct '${s.name}' at ${s.location} is empty`)}}},4647:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ValidateRecursiveTypes=void 0;const i=l(1942),u=l(3154);g.ValidateRecursiveTypes=class m extends u.Visitor{visit(s){if(super.visit(s),s instanceof i.TypeDefinition&&this.isRecursiveType(s,s.type)){if(!(s.type instanceof i.StructType||s.type instanceof i.EnumType))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(s,s.type))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is infinitely recursive`)}}isRecursiveType(s,_){return _ instanceof i.TypeReference?s.name===_.name:_ instanceof i.ArrayType||_ instanceof i.OptionalType?this.isRecursiveType(s,_.base):_ instanceof i.StructType?_.fields.some(D=>this.isRecursiveType(s,D.type)):_ instanceof i.EnumType&&_.values.some(D=>D.struct&&this.isRecursiveType(s,D.struct))}isInfinitelyRecursiveType(s,_){return _ instanceof i.TypeReference?_.name===s.name:_ instanceof i.StructType?_.fields.some(D=>this.isInfinitelyRecursiveType(s,D.type)):_ instanceof i.EnumType&&_.values.every(D=>D.struct&&this.isInfinitelyRecursiveType(s,D.struct))}}},2060:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CollectStructAndEnumTypesVisitor=void 0;const i=l(1942),u=l(3154);g.CollectStructAndEnumTypesVisitor=class m extends u.Visitor{visit(s){super.visit(s),s instanceof i.StructType?this.root.structTypes.push(s):s instanceof i.EnumType&&this.root.enumTypes.push(s)}}},4212:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ValidateAnnotationsVisitor=void 0;const i=l(1942),u=l(3154);function c(_){return _ instanceof i.TypeReference?c(_.type):_}g.ValidateAnnotationsVisitor=class s extends u.Visitor{visit(D){if(D instanceof i.EnumValue){for(const T of D.annotations)if(!(T instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${T.constructor.name.replace("Annotation","").toLowerCase()} at ${T.location}`)}else if(D instanceof i.TypeDefinition){for(const T of D.annotations)if(!(T instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${T.constructor.name.replace("Annotation","").toLowerCase()} at ${T.location}`)}else if(D instanceof i.Field){for(const T of D.annotations)if(!(T instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${T.constructor.name.replace("Annotation","").toLowerCase()} at ${T.location}`)}else if(D instanceof i.FunctionOperation)for(const T of D.annotations)if(!(T instanceof i.DescriptionAnnotation))if(T instanceof i.ThrowsAnnotation){if(!this.root.errors.some(S=>S.name===T.error))throw new u.SemanticError(`Unknown error type '${T.error}' at ${T.location}`)}else if(T instanceof i.RestAnnotation){const S=[...T.pathVariables,...T.queryVariables,...T.headers.values()];if(S.length!==new Set(S).size)throw new u.SemanticError(`Arguments must appear only once for rest annotation at ${T.location}`);for(const d of S){const A=D.args.find(b=>b.name===d);if(!A)throw new u.SemanticError(`Argument '${d}' not found at ${T.location}`);if(T.pathVariables.includes(d)&&A.type instanceof i.OptionalType)throw new u.SemanticError(`The path argument '${d}' can't be nullable at ${T.location}`);if(!((_=c(A.type instanceof i.OptionalType?A.type.base:A.type))instanceof i.BoolPrimitiveType||_ instanceof i.IntPrimitiveType||_ instanceof i.UIntPrimitiveType||_ instanceof i.BigIntPrimitiveType||_ instanceof i.FloatPrimitiveType||_ instanceof i.StringPrimitiveType||_ instanceof i.DatePrimitiveType||_ instanceof i.DateTimePrimitiveType||_ instanceof i.MoneyPrimitiveType||_ instanceof i.CpfPrimitiveType||_ instanceof i.CnpjPrimitiveType||_ instanceof i.UuidPrimitiveType||_ instanceof i.HexPrimitiveType||_ instanceof i.Base64PrimitiveType||_ instanceof i.EnumType))throw new u.SemanticError(`Argument '${d}' can't have type '${A.type.name}' for rest annotation at ${T.location}`)}for(const d of D.args)if(!S.includes(d.name)&&T.bodyVariable!==d.name)throw new u.SemanticError(`Argument '${d.name}' is missing from the rest annotation at ${T.location}`);if("GET"===T.method&&D.returnType instanceof i.VoidPrimitiveType)throw new u.SemanticError(`A GET rest endpoint must return something at ${T.location}`)}else if(!(T instanceof i.HiddenAnnotation))throw new u.SemanticError(`Cannot have @${T.constructor.name.replace("Annotation","").toLowerCase()} at ${T.location}`);var _}}},6088:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.analyse=void 0;const i=l(1942),u=l(7629),m=l(6153),c=l(9471),s=l(4612),_=l(4978),D=l(9866),T=l(4647),S=l(2060),d=l(4212);g.analyse=function A(M){M.errors.some(b=>"Fatal"===b.name)||M.errors.push(new i.ErrorNode("Fatal",new i.VoidPrimitiveType)),new u.CheckMultipleDeclarationVisitor(M).process(),new m.GiveStructAndEnumNamesVisitor(M).process(),new c.MatchTypeDefinitionsVisitor(M).process(),new s.CheckDontReturnSecretVisitor(M).process(),new _.ExpandSpreadsVisitor(M).process(),new D.CheckEmptyStructOrEnumVisitor(M).process(),new T.ValidateRecursiveTypes(M).process(),new S.CollectStructAndEnumTypesVisitor(M).process(),new d.ValidateAnnotationsVisitor(M).process()}},3154:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Visitor=g.SemanticError=void 0;const i=l(1942);class u extends Error{}g.SemanticError=u,g.Visitor=class m{constructor(s){this.root=s}process(){for(const s of this.root.errors)this.visit(s);for(const s of this.root.typeDefinitions)this.visit(s);for(const s of this.root.operations)this.visit(s)}visit(s){if(s instanceof i.FunctionOperation){for(const _ of s.args)this.visit(_);for(const _ of s.fieldsAndSpreads)this.visit(_);this.visit(s.returnType)}else if(s instanceof i.Field||s instanceof i.TypeDefinition)this.visit(s.type);else if(s instanceof i.StructType){for(const _ of s.fields)this.visit(_);for(const _ of s.fieldsAndSpreads)this.visit(_)}else if(s instanceof i.EnumType)for(const _ of s.values)this.visit(_);else s instanceof i.EnumValue?s.struct&&this.visit(s.struct):s instanceof i.ArrayType||s instanceof i.OptionalType?this.visit(s.base):s instanceof i.ErrorNode?this.visit(s.dataType):s instanceof i.Spread&&this.visit(s.typeReference)}}},9037:(Ve,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.PrimitiveTypeToken=g.FalseKeywordToken=g.TrueKeywordToken=g.ErrorKeywordToken=g.FnKeywordToken=g.EnumKeywordToken=g.TypeKeywordToken=g.ImportKeywordToken=g.AnnotationToken=g.SpreadSymbolToken=g.CommaSymbolToken=g.ArraySymbolToken=g.OptionalSymbolToken=g.ColonSymbolToken=g.ParensCloseSymbolToken=g.ParensOpenSymbolToken=g.CurlyCloseSymbolToken=g.CurlyOpenSymbolToken=g.ExclamationMarkSymbolToken=g.EqualSymbolToken=g.StringLiteralToken=g.IdentifierToken=g.Token=g.TokenLocation=void 0;class l{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}g.TokenLocation=l;class i{constructor(qe=""){this.value=qe,this.location=new l,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const qe=this.constructor.name.replace("Token","");return""===this.value?qe:`${qe}(${JSON.stringify(this.value)})`}}g.Token=i;class u extends i{}g.IdentifierToken=u,g.StringLiteralToken=class m extends i{},g.EqualSymbolToken=class c extends i{},g.ExclamationMarkSymbolToken=class s extends i{},g.CurlyOpenSymbolToken=class _ extends i{},g.CurlyCloseSymbolToken=class D extends i{},g.ParensOpenSymbolToken=class T extends i{},g.ParensCloseSymbolToken=class S extends i{},g.ColonSymbolToken=class d extends i{},g.OptionalSymbolToken=class A extends i{},g.ArraySymbolToken=class M extends i{},g.CommaSymbolToken=class b extends i{},g.SpreadSymbolToken=class k extends i{},g.AnnotationToken=class $ extends i{},g.ImportKeywordToken=class pe extends i{maybeAsIdentifier(){return new u("import")}},g.TypeKeywordToken=class U extends i{maybeAsIdentifier(){return new u("type")}},g.EnumKeywordToken=class ae extends i{maybeAsIdentifier(){return new u("enum")}},g.FnKeywordToken=class Se extends i{maybeAsIdentifier(){return new u("fn")}},g.ErrorKeywordToken=class me extends i{maybeAsIdentifier(){return new u("error")}},g.TrueKeywordToken=class be extends i{maybeAsIdentifier(){return new u("true")}},g.FalseKeywordToken=class se extends i{maybeAsIdentifier(){return new u("false")}},g.PrimitiveTypeToken=class Me extends i{maybeAsIdentifier(){return new u(this.value)}}},6569:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.primitiveToAstClass=void 0;const i=l(1942);g.primitiveToAstClass=new Map,g.primitiveToAstClass.set("string",i.StringPrimitiveType),g.primitiveToAstClass.set("int",i.IntPrimitiveType),g.primitiveToAstClass.set("uint",i.UIntPrimitiveType),g.primitiveToAstClass.set("date",i.DatePrimitiveType),g.primitiveToAstClass.set("datetime",i.DateTimePrimitiveType),g.primitiveToAstClass.set("float",i.FloatPrimitiveType),g.primitiveToAstClass.set("bigint",i.BigIntPrimitiveType),g.primitiveToAstClass.set("bool",i.BoolPrimitiveType),g.primitiveToAstClass.set("bytes",i.BytesPrimitiveType),g.primitiveToAstClass.set("money",i.MoneyPrimitiveType),g.primitiveToAstClass.set("cpf",i.CpfPrimitiveType),g.primitiveToAstClass.set("cnpj",i.CnpjPrimitiveType),g.primitiveToAstClass.set("email",i.EmailPrimitiveType),g.primitiveToAstClass.set("html",i.HtmlPrimitiveType),g.primitiveToAstClass.set("url",i.UrlPrimitiveType),g.primitiveToAstClass.set("uuid",i.UuidPrimitiveType),g.primitiveToAstClass.set("hex",i.HexPrimitiveType),g.primitiveToAstClass.set("base64",i.Base64PrimitiveType),g.primitiveToAstClass.set("xml",i.XmlPrimitiveType),g.primitiveToAstClass.set("json",i.JsonPrimitiveType),g.primitiveToAstClass.set("void",i.VoidPrimitiveType)},5041:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.AppComponent=void 0;const i=l(655),u=l(3075),m=l(7179),c=l(1823),s=l(2863),_=l(7402),D=l(7295),T=l(2911),S=l(4327),d=(0,i.__importStar)(l(5e3)),A=(0,i.__importStar)(l(6395)),M=(0,i.__importStar)(l(2313)),b=(0,i.__importStar)(l(5245)),k=(0,i.__importStar)(l(107)),$=(0,i.__importStar)(l(2253)),pe=(0,i.__importStar)(l(9808)),U=(0,i.__importStar)(l(3251)),ae=(0,i.__importStar)(l(5585)),Se=(0,i.__importStar)(l(7423)),me=(0,i.__importStar)(l(7238)),be=(0,i.__importStar)(l(4264)),se=(0,i.__importStar)(l(7822)),Me=(0,i.__importStar)(l(2181));function Le(_e,tt){1&_e&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275text(1,"Editor Avan\xe7ado"),d.\u0275\u0275elementContainerEnd())}function qe(_e,tt){if(1&_e&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275elementStart(1,"span",20),d.\u0275\u0275text(2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementContainerEnd()),2&_e){const Ce=d.\u0275\u0275nextContext(2).$implicit;d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate1("\u25b6\xa0",Ce.function,"")}}function at(_e,tt){if(1&_e){const Ce=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"span",17),d.\u0275\u0275template(1,Le,2,0,"ng-container",18),d.\u0275\u0275template(2,qe,3,1,"ng-container",18),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(3,"button",19),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(Ce);const ct=d.\u0275\u0275nextContext().$implicit;return d.\u0275\u0275nextContext(2).closeTab(ct)}),d.\u0275\u0275elementStart(4,"mat-icon"),d.\u0275\u0275text(5,"close"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()}if(2&_e){const Ce=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275property("ngSwitch",Ce.type),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","advanced"),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","simple")}}function te(_e,tt){1&_e&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275element(1,"app-tab-editor"),d.\u0275\u0275elementContainerEnd())}function Fe(_e,tt){if(1&_e&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275element(1,"app-simple-call",21),d.\u0275\u0275elementContainerEnd()),2&_e){const Ce=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275property("fn",Ce.function)}}function X(_e,tt){if(1&_e&&(d.\u0275\u0275elementStart(0,"mat-tab"),d.\u0275\u0275template(1,at,6,3,"ng-template",16),d.\u0275\u0275elementContainerStart(2,17),d.\u0275\u0275template(3,te,2,0,"ng-container",18),d.\u0275\u0275template(4,Fe,2,1,"ng-container",18),d.\u0275\u0275elementContainerEnd(),d.\u0275\u0275elementEnd()),2&_e){const Ce=tt.$implicit;d.\u0275\u0275advance(2),d.\u0275\u0275property("ngSwitch",Ce.type),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","advanced"),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","simple")}}function le(_e,tt){if(1&_e){const Ce=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"button",22),d.\u0275\u0275listener("click",function(){return d.\u0275\u0275restoreView(Ce),d.\u0275\u0275nextContext(2).addAdvancedTab()}),d.\u0275\u0275elementStart(1,"mat-icon"),d.\u0275\u0275text(2,"add_circle"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()}}function Ae(_e,tt){if(1&_e&&(d.\u0275\u0275elementStart(0,"button",23),d.\u0275\u0275elementStart(1,"mat-icon"),d.\u0275\u0275text(2,"download"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&_e){d.\u0275\u0275nextContext(2);const Ce=d.\u0275\u0275reference(5);d.\u0275\u0275property("matMenuTriggerFor",Ce)}}function ne(_e,tt){if(1&_e){const Ce=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"mat-tab-group",11),d.\u0275\u0275listener("selectedIndexChange",function(ct){return d.\u0275\u0275restoreView(Ce),d.\u0275\u0275nextContext().selected.setValue(ct)}),d.\u0275\u0275elementStart(1,"mat-tab",12),d.\u0275\u0275elementStart(2,"app-tab-home",13),d.\u0275\u0275listener("runFunction",function(ct){return d.\u0275\u0275restoreView(Ce),d.\u0275\u0275nextContext().addSimpleTab(ct)}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(3,X,5,3,"mat-tab",14),d.\u0275\u0275elementStart(4,"mat-tab",15),d.\u0275\u0275template(5,le,3,0,"ng-template",16),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"mat-tab",15),d.\u0275\u0275template(7,Ae,3,1,"ng-template",16),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()}if(2&_e){const Ce=d.\u0275\u0275nextContext();d.\u0275\u0275property("selectedIndex",Ce.selected.value),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngForOf",Ce.tabs)}}class Ke{constructor(tt,Ce,He){this.sdkgen=tt,this.domSanitizer=Ce,this.matIconRegistry=He,this.selected=new u.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const ct of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(ct,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${ct}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(tt=>{this.state=null!=tt?tt:void 0})}ngOnDestroy(){var tt;null===(tt=this.state$)||void 0===tt||tt.unsubscribe()}addSimpleTab(tt){this.tabs.push({id:this.tabIndex++,function:tt,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(tt){this.tabs.splice(this.tabs.indexOf(tt),1),this.selected.setValue(0)}downloadTarget(tt){if(!this.state)return;let Ce,He;switch(tt){case"typescript_nodeserver":Ce=(0,T.generateNodeServerSource)(this.state.astRoot),He="node-server.ts";break;case"typescript_nodeclient":Ce=(0,T.generateNodeClientSource)(this.state.astRoot),He="node-client.ts";break;case"typescript_web":Ce=(0,T.generateBrowserClientSource)(this.state.astRoot),He="web-client.ts";break;case"typescript_interfaces":Ce=(0,T.generateTypescriptInterfaces)(this.state.astRoot),He="interfaces.ts";break;case"flutter":Ce=(0,c.generateDartClientSource)(this.state.astRoot),He="flutter-client.dart";break;case"csharp_server":Ce=(0,m.generateCSharpServerSource)(this.state.astRoot),He="csharp-server.cs";break;case"fsharp_server":Ce=(0,s.generateFSharpServerSource)(this.state.astRoot),He="fsharp-server.fs";break;case"kotlin_android":Ce=(0,_.generateAndroidClientSource)(this.state.astRoot,!0),He="android-client.kt";break;case"kotlin_android_without_callbacks":Ce=(0,_.generateAndroidClientSource)(this.state.astRoot,!1),He="android-client-no-callbacks.kt";break;case"swift_ios":Ce=(0,D.generateSwiftClientSource)(this.state.astRoot,!1),He="ios-client.swift";break;case"rxswift_ios":Ce=(0,D.generateSwiftClientSource)(this.state.astRoot,!0),He="ios-client-rx.swift"}(0,S.saveAs)(new Blob([Ce],{type:"application/octet-stream"}),He)}}g.AppComponent=Ke,Ke.\u0275fac=function(tt){return new(tt||Ke)(d.\u0275\u0275directiveInject(A.SdkgenService),d.\u0275\u0275directiveInject(M.DomSanitizer),d.\u0275\u0275directiveInject(b.MatIconRegistry))},Ke.\u0275cmp=d.\u0275\u0275defineComponent({type:Ke,selectors:[["app-root"]],decls:46,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms",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",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label",""],[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,"matMenuTriggerFor"]],template:function(tt,Ce){1&tt&&(d.\u0275\u0275element(0,"ngx-monaco-editor",0),d.\u0275\u0275element(1,"app-tab-nav"),d.\u0275\u0275template(2,ne,8,2,"mat-tab-group",1),d.\u0275\u0275pipe(3,"async"),d.\u0275\u0275elementStart(4,"mat-menu",null,2),d.\u0275\u0275element(6,"div",3),d.\u0275\u0275elementStart(7,"button",4),d.\u0275\u0275text(8,"Cliente"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(9,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("typescript_nodeclient")}),d.\u0275\u0275element(10,"mat-icon",6),d.\u0275\u0275text(11,"Node.js"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("typescript_web")}),d.\u0275\u0275element(13,"mat-icon",6),d.\u0275\u0275text(14,"Web"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(15,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("flutter")}),d.\u0275\u0275element(16,"mat-icon",7),d.\u0275\u0275text(17,"Flutter"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(18,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("kotlin_android")}),d.\u0275\u0275element(19,"mat-icon",8),d.\u0275\u0275text(20,"Android"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(21,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("kotlin_android_without_callbacks")}),d.\u0275\u0275element(22,"mat-icon",8),d.\u0275\u0275text(23,"Android (sem callbacks)"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(24,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("swift_ios")}),d.\u0275\u0275element(25,"mat-icon",9),d.\u0275\u0275text(26,"iOS"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(27,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("rxswift_ios")}),d.\u0275\u0275element(28,"mat-icon",9),d.\u0275\u0275text(29,"iOS (Rx)"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(30,"button",4),d.\u0275\u0275text(31,"Servidor"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(32,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("typescript_nodeserver")}),d.\u0275\u0275element(33,"mat-icon",6),d.\u0275\u0275text(34,"Node.js"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(35,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("csharp_server")}),d.\u0275\u0275element(36,"mat-icon",10),d.\u0275\u0275text(37,"C#"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(38,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("fsharp_server")}),d.\u0275\u0275element(39,"mat-icon",10),d.\u0275\u0275text(40,"F#"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(41,"button",4),d.\u0275\u0275text(42,"Outros"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(43,"button",5),d.\u0275\u0275listener("click",function(){return Ce.downloadTarget("typescript_interfaces")}),d.\u0275\u0275element(44,"mat-icon",6),d.\u0275\u0275text(45,"Interfaces"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&tt&&(d.\u0275\u0275advance(2),d.\u0275\u0275property("ngIf",d.\u0275\u0275pipeBind1(3,1,Ce.sdkgen.state$)))},directives:[k.MonacoEditorComponent,$.TabNavComponent,pe.NgIf,U.MatTabGroup,U.MatTab,ae.TabHomeComponent,pe.NgForOf,U.MatTabLabel,pe.NgSwitch,pe.NgSwitchCase,Se.MatButton,me.MatTooltip,b.MatIcon,be.TabEditorComponent,se.SimpleCallComponent,Me.MatMenuTrigger,Me.MatMenu,Me.MatMenuItem],pipes:[pe.AsyncPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%} #main-tabs>.mat-tab-header .mat-tab-label{text-transform:uppercase;-webkit-user-select:none;user-select:none} #main-tabs>.mat-tab-header .mat-tab-label.mat-ripple:not(#mat-tab-label-0-0){padding-right:0} #main-tabs>.mat-tab-header .mat-tab-label.mat-ripple:not(#mat-tab-label-0-0) button{border-radius:0;display:inline-block;margin-left:10px} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:nth-last-child(-n+2){min-width:0;padding:0 12px;color:unset;opacity:unset} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:nth-last-child(-n+2) button{margin-left:0!important} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:last-child{margin-left:auto} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:last-child button{padding:0 5px!important;display:block;box-sizing:content-box;margin-right:5px!important} #download-menu-size-flow{width:185px;display:block;max-width:90vw}"]})},6747:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.AppModule=void 0;const i=l(655),u=l(520),m=l(3075),c=l(7423),s=l(9417),_=l(508),D=l(8966),T=l(5245),S=l(2181),d=l(2075),A=l(3251),M=l(7238),b=l(2313),k=l(6360),$=l(107),pe=l(1430),U=l(5109),ae=l(2290),Se=l(5041),me=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class se{}g.AppModule=se,se.\u0275fac=function(Le){return new(Le||se)},se.\u0275mod=me.\u0275\u0275defineNgModule({type:se,bootstrap:[Se.AppComponent]}),se.\u0275inj=me.\u0275\u0275defineInjector({providers:[{provide:$.MONACO_PATH,useValue:"assets/vs"}],imports:[[b.BrowserModule,m.FormsModule,m.ReactiveFormsModule,$.MonacoEditorModule,k.BrowserAnimationsModule,U.NgxJsonViewerModule,ae.ToastrModule.forRoot(),pe.AngularSplitModule,u.HttpClientModule,c.MatButtonModule,s.MatChipsModule,D.MatDialogModule,T.MatIconModule,S.MatMenuModule,_.MatRippleModule,d.MatTableModule,A.MatTabsModule,M.MatTooltipModule]]})},8495:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ConsoleComponent=void 0;const i=l(655),u=l(9972),m=(0,i.__importStar)(l(5e3)),c=(0,i.__importStar)(l(7423)),s=(0,i.__importStar)(l(5245)),_=(0,i.__importStar)(l(9808)),D=(0,i.__importStar)(l(5109));function T(k,$){1&k&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"info_outline"),m.\u0275\u0275elementContainerEnd())}function S(k,$){1&k&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"error"),m.\u0275\u0275elementContainerEnd())}function d(k,$){1&k&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"public"),m.\u0275\u0275elementContainerEnd())}function A(k,$){if(1&k&&m.\u0275\u0275element(0,"ngx-json-viewer",6),2&k){const pe=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275property("json",pe.details)("expanded",!1)}}function M(k,$){if(1&k&&(m.\u0275\u0275elementStart(0,"li",2),m.\u0275\u0275elementStart(1,"mat-icon",3),m.\u0275\u0275template(2,T,2,0,"ng-container",4),m.\u0275\u0275template(3,S,2,0,"ng-container",4),m.\u0275\u0275template(4,d,2,0,"ng-container",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(5,"span"),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(7,A,1,2,"ngx-json-viewer",5),m.\u0275\u0275elementEnd()),2&k){const pe=$.$implicit,U=m.\u0275\u0275nextContext();m.\u0275\u0275property("ngClass",pe.type),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitch",pe.type)("ngClass",pe.type),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",U.itemTypes.INFO),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",U.itemTypes.ERROR),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",U.itemTypes.NETWORK),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(pe.message),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",pe.details)}}class b{constructor(){this.itemTypes=u.ConsoleItemType,this.items=[]}}g.ConsoleComponent=b,b.\u0275fac=function($){return new($||b)},b.\u0275cmp=m.\u0275\u0275defineComponent({type:b,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($,pe){1&$&&(m.\u0275\u0275elementStart(0,"header"),m.\u0275\u0275elementStart(1,"strong"),m.\u0275\u0275text(2,"CONSOLE"),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(3,"s"),m.\u0275\u0275elementStart(4,"button",0),m.\u0275\u0275listener("click",function(){return pe.items.splice(0,pe.items.length)}),m.\u0275\u0275elementStart(5,"mat-icon"),m.\u0275\u0275text(6,"delete"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(7,"ul"),m.\u0275\u0275template(8,M,8,8,"li",1),m.\u0275\u0275elementEnd()),2&$&&(m.\u0275\u0275advance(8),m.\u0275\u0275property("ngForOf",pe.items))},directives:[c.MatButton,s.MatIcon,_.NgForOf,_.NgClass,_.NgSwitch,_.NgSwitchCase,_.NgIf,D.NgxJsonViewerComponent],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 #e7e7e7;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}"]})},9972:(Ve,g)=>{"use strict";var i;Object.defineProperty(g,"__esModule",{value:!0}),g.ConsoleItemType=void 0,(i=g.ConsoleItemType||(g.ConsoleItemType={})).INFO="info",i.ERROR="error",i.NETWORK="network"},4814:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.DialogAboutComponent=void 0;const i=l(655),u=l(4147),m=(0,i.__importStar)(l(5e3)),c=(0,i.__importStar)(l(8966)),s=(0,i.__importStar)(l(9417)),_=(0,i.__importStar)(l(7423)),D=(0,i.__importStar)(l(5245)),T=(0,i.__importStar)(l(9808));function S(A,M){if(1&A&&(m.\u0275\u0275elementStart(0,"a",6),m.\u0275\u0275elementStart(1,"mat-chip",2),m.\u0275\u0275elementStart(2,"span",7),m.\u0275\u0275text(3),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(4,"s"),m.\u0275\u0275elementStart(5,"span",8),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()),2&A){const b=M.$implicit;m.\u0275\u0275property("href","https://www.npmjs.com/package/"+b[0]+"/v/"+b[1],m.\u0275\u0275sanitizeUrl),m.\u0275\u0275advance(1),m.\u0275\u0275property("disableRipple",!0),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(b[0]),m.\u0275\u0275advance(3),m.\u0275\u0275textInterpolate(b[1])}}class d{constructor(){this.version=u.version,this.dependencies=Object.entries(u.dependencies).filter(([M])=>M.startsWith("@sdkgen"))}}g.DialogAboutComponent=d,d.\u0275fac=function(M){return new(M||d)},d.\u0275cmp=m.\u0275\u0275defineComponent({type:d,selectors:[["app-dialog-about"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"selectable"],[3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],[1,"mat-chip-list-stacked",3,"selectable"],["target","_blank","rel","external noopener noreferrer",3,"href",4,"ngFor","ngForOf"],["target","_blank","rel","external noopener noreferrer",3,"href"],[1,"dependency-name"],[1,"dependency-version"]],template:function(M,b){1&M&&(m.\u0275\u0275elementStart(0,"header"),m.\u0275\u0275elementStart(1,"h1",0),m.\u0275\u0275text(2,"sdkgen Playground"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(3,"mat-chip-list",1),m.\u0275\u0275elementStart(4,"mat-chip",2),m.\u0275\u0275text(5),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(6,"s"),m.\u0275\u0275elementStart(7,"button",3),m.\u0275\u0275elementStart(8,"mat-icon"),m.\u0275\u0275text(9,"close"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(10,"p"),m.\u0275\u0275text(11,"Ferramenta para explorar e invocar APIs feitas com sdkgen."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(12,"section"),m.\u0275\u0275elementStart(13,"h4"),m.\u0275\u0275text(14,"Depend\xeancias"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(15,"mat-chip-list",4),m.\u0275\u0275template(16,S,7,4,"a",5),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()),2&M&&(m.\u0275\u0275advance(3),m.\u0275\u0275property("selectable",!1),m.\u0275\u0275advance(1),m.\u0275\u0275property("disableRipple",!0),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate(b.version),m.\u0275\u0275advance(10),m.\u0275\u0275property("selectable",!1),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngForOf",b.dependencies))},directives:[c.MatDialogTitle,s.MatChipList,s.MatChip,_.MatButton,c.MatDialogClose,D.MatIcon,T.NgForOf],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:5px}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}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:500}section[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{padding:0;overflow:hidden;cursor:pointer}section[_ngcontent-%COMP%] .dependency-name[_ngcontent-%COMP%]{padding:7px 12px}section[_ngcontent-%COMP%] .dependency-version[_ngcontent-%COMP%]{float:right;background:rgba(0,0,0,.15);padding:7px 12px;height:100%}"]})},4211:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.FilterPipe=void 0;const u=(0,l(655).__importStar)(l(5e3));class m{transform(s,_){if(!s)return[];if(!_)return s;const D=_.toLocaleLowerCase();return s.filter(T=>JSON.stringify(T).toLocaleLowerCase().includes(D))}}g.FilterPipe=m,m.\u0275fac=function(s){return new(s||m)},m.\u0275pipe=u.\u0275\u0275definePipe({name:"appFilter",type:m,pure:!0})},7120:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ResponsiveService=void 0;const i=l(655),u=(0,i.__importStar)(l(5e3)),m=(0,i.__importStar)(l(5113));class c{constructor(_){this.observer=_}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)"])}}g.ResponsiveService=c,c.\u0275fac=function(_){return new(_||c)(u.\u0275\u0275inject(m.BreakpointObserver))},c.\u0275prov=u.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"})},9435:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.getTypeDoc=g.getTypeLabels=g.getConstructorName=g.primitiveTypesExamples=g.primitiveTypes=void 0;const i=l(6676),u=l(6395);function m(_){switch(_.constructor){case i.StringPrimitiveType:return"StringPrimitiveType";case i.IntPrimitiveType:return"IntPrimitiveType";case i.UIntPrimitiveType:return"UIntPrimitiveType";case i.FloatPrimitiveType:return"FloatPrimitiveType";case i.BigIntPrimitiveType:return"BigIntPrimitiveType";case i.MoneyPrimitiveType:return"MoneyPrimitiveType";case i.DatePrimitiveType:return"DatePrimitiveType";case i.DateTimePrimitiveType:return"DateTimePrimitiveType";case i.BoolPrimitiveType:return"BoolPrimitiveType";case i.VoidPrimitiveType:return"VoidPrimitiveType";case i.CpfPrimitiveType:return"CpfPrimitiveType";case i.CnpjPrimitiveType:return"CnpjPrimitiveType";case i.EmailPrimitiveType:return"EmailPrimitiveType";case i.UrlPrimitiveType:return"UrlPrimitiveType";case i.UuidPrimitiveType:return"UuidPrimitiveType";case i.HexPrimitiveType:return"HexPrimitiveType";case i.HtmlPrimitiveType:return"HtmlPrimitiveType";case i.BytesPrimitiveType:return"BytesPrimitiveType";case i.Base64PrimitiveType:return"Base64PrimitiveType";case i.XmlPrimitiveType:return"XmlPrimitiveType";case i.JsonPrimitiveType:return"JsonPrimitiveType";case i.OptionalType:return"OptionalType";case i.EnumType:return"EnumType";case i.ArrayType:return"ArrayType";case i.StructType:return"StructType";default:return _.constructor.name}}g.primitiveTypes={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",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?."},g.primitiveTypesExamples={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"],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}']},g.getConstructorName=m,g.getTypeLabels=function c(_){const D=[];switch(_.constructor){case i.StringPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.FloatPrimitiveType:case i.BigIntPrimitiveType:case i.MoneyPrimitiveType:case i.DatePrimitiveType:case i.DateTimePrimitiveType:case i.BoolPrimitiveType:case i.VoidPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.HtmlPrimitiveType:case i.BytesPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.JsonPrimitiveType:D.push("Primitivo");break;case i.OptionalType:D.push("Opcional"),D.push(...c(_.base));break;case i.TypeReference:D.push(...c(_.type));break;case i.ArrayType:D.push("Array"),D.push(...c(_.base));break;case i.EnumType:D.push("Enum");break;default:console.error("No labels for",m(_))}return D},g.getTypeDoc=function s(_){var D,T,S;switch(_.constructor){case i.StringPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.FloatPrimitiveType:case i.BigIntPrimitiveType:case i.MoneyPrimitiveType:case i.DatePrimitiveType:case i.DateTimePrimitiveType:case i.BoolPrimitiveType:case i.VoidPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.HtmlPrimitiveType:case i.BytesPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.JsonPrimitiveType:return{longDescription:g.primitiveTypes[m(_)],shortDescription:g.primitiveTypes[m(_)],examples:g.primitiveTypesExamples[m(_)]};case i.OptionalType:{const b=s(_.base);return Object.assign(Object.assign({},b),{longDescription:b.longDescription,shortDescription:`(opcional) ${b.shortDescription}`,examples:["null",...null!==(D=b.examples)&&void 0!==D?D:[]]})}case i.TypeReference:return s(_.type);case i.ArrayType:{const b=s(_.base);return Object.assign(Object.assign({},b),{longDescription:b.longDescription,shortDescription:`(array) ${b.shortDescription}`,examples:["[]",...null!==(S=null===(T=b.examples)||void 0===T?void 0:T.map(k=>`[${k}]`))&&void 0!==S?S:[]]})}case i.EnumType:const d=_,A=d.values.slice(0,3),M=A.map(b=>b.struct?`${b.value}: ${JSON.stringify((new u.SdkgenService).buildJsonObject(b.struct.fields),null,2)}`:b.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${A.map(b=>`${b.value}${b.struct?"(\u2026)":""}`).join(", ")}${A.length>3?"\u2026":""}`,examples:M,isEnum:!0,isStruct:!0,structFields:d.values.map(b=>{var k;return{name:b.value,type:b.struct,description:null===(k=b.annotations.find($=>$ instanceof i.DescriptionAnnotation))||void 0===k?void 0:k.text,secret:!1}})};case i.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${_.fields.slice(0,3).map(b=>b.name).join(", ")}\u2026`,isStruct:!0,structFields:_.fields.map(b=>{var k;return{name:b.name,description:null===(k=b.annotations.find($=>$ instanceof i.DescriptionAnnotation))||void 0===k?void 0:k.text,type:b.type,secret:b.secret}}),examples:[JSON.stringify((new u.SdkgenService).buildJsonObject(_.fields),null,2)]};default:return{longDescription:"BUG: Unknown Type",shortDescription:"BUG: Unknown Type",examples:[]}}}},6395:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SdkgenService=void 0;const tslib_1=__webpack_require__(655),browser_runtime_1=__webpack_require__(4539),parser_1=__webpack_require__(6676),rxjs_1=__webpack_require__(9802),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3));class SdkgenService{constructor(){this.state$=new rxjs_1.BehaviorSubject(null)}buildJsonObject(Ve,g=new Set){const l=i=>{switch(i.constructor){case parser_1.StringPrimitiveType:return"";case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:return(new Date).toJSON().substring(0,10);case parser_1.DateTimePrimitiveType:return(new Date).toJSON().substring(0,23);case parser_1.BoolPrimitiveType:return Math.random()>.5;case parser_1.VoidPrimitiveType:return null;case parser_1.CpfPrimitiveType:return"000.000.001-91";case parser_1.CnpjPrimitiveType:return"00.000.001/0001-91";case parser_1.EmailPrimitiveType:return"joao@acme.com";case parser_1.UrlPrimitiveType:return"https://www.google.com/";case parser_1.UuidPrimitiveType:return"00000000-0000-0000-0000-000000000000";case parser_1.HexPrimitiveType:return new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("");case parser_1.HtmlPrimitiveType:return"<h1>Hello world!</h1>";case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return"0a=";case parser_1.XmlPrimitiveType:return"<xml></xml>";case parser_1.JsonPrimitiveType:return{};case parser_1.StructType:return g.has(i.name)?{}:this.buildJsonObject(i.fields,new Set([...g,i.name]));case parser_1.OptionalType:return null;case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:return[l(i.base),l(i.base),l(i.base)];case parser_1.EnumType:return i.values[0].value;default:return null}};return Ve.reduce((i,u)=>(i[u.name]=l(u.type),i),{})}getTypeScriptCode(Ve,g){return`await client.${Ve}(${JSON.stringify(g,null,2)});\n`}buildKotlinString(Ve,g=0){const l=i=>{switch(i.constructor){case parser_1.StringPrimitiveType:return'""';case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:case parser_1.DateTimePrimitiveType:return"Calendar.getInstance()";case parser_1.BoolPrimitiveType:return Math.random()>.5?"true":"false";case parser_1.VoidPrimitiveType:return"null";case parser_1.CpfPrimitiveType:return'"000.000.001-91"';case parser_1.CnpjPrimitiveType:return'"00.000.001/0001-91"';case parser_1.EmailPrimitiveType:return'"joao@acme.com"';case parser_1.UrlPrimitiveType:return'"https://www.google.com/"';case parser_1.UuidPrimitiveType:return'"00000000-0000-0000-0000-000000000000"';case parser_1.HexPrimitiveType:return`"${new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("")}"`;case parser_1.HtmlPrimitiveType:return'"<h1>Hello world!</h1>"';case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return'"0a="';case parser_1.XmlPrimitiveType:return'"<xml></xml>"';case parser_1.JsonPrimitiveType:return"json {}";case parser_1.StructType:return`${i.name}(\n${this.buildKotlinString(i.fields,g+1)}\n${" ".repeat(g+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:g++;const u=l(i.base);return g--,`arrayOf(\n${" ".repeat(g+2)}${u},\n${" ".repeat(g+2)}${u}\n${" ".repeat(g+1)})`;case parser_1.EnumType:return`"${i.values[0].value}"`;default:return"<>()"}};return Ve.map(i=>`${" ".repeat(g+1)}${l(i.type)}`).join(",\n")}getKotlinCode(Ve,g){return 0===g.length?`client.${Ve}().await();`:`client.${Ve}(\n${this.buildKotlinString(g)}\n).await();`}getDartCode(Ve,g){return'print("todo");'}getSwiftCode(Ve,g){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===browser_runtime_1.SdkgenErrorWithData?"data = null;":""}\n\n constructor(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""}) {\n super(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""});\n this.message = message;\n ${base===browser_runtime_1.SdkgenErrorWithData?"this.data = data;":""}\n this.toString = () => this.type + ": " + this.message;\n }\n }\n )`)(base)}return"string"==typeof cur?acc[cur]=errorClass(cur,browser_runtime_1.SdkgenError):acc[cur[0]]=errorClass(cur[0],browser_runtime_1.SdkgenErrorWithData),acc},{}),clientInstance=new browser_runtime_1.SdkgenHttpClient(url,ast,errorFns);return new Proxy(clientInstance,{get:(Ve,g)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(g.toString())?clientInstance[g.toString()]:function(){var l=_asyncToGenerator(function*(i){return clientInstance.makeRequest(g.toString(),i)});return function(i){return l.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function Ve(g){return new(g||SdkgenService)},SdkgenService.\u0275prov=i0.\u0275\u0275defineInjectable({token:SdkgenService,factory:SdkgenService.\u0275fac,providedIn:"root"})},7822:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleCallComponent=void 0;const tslib_1=__webpack_require__(655),forms_1=__webpack_require__(3075),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3)),i1=(0,tslib_1.__importStar)(__webpack_require__(6395)),i2=(0,tslib_1.__importStar)(__webpack_require__(1430)),i3=(0,tslib_1.__importStar)(__webpack_require__(3251)),i4=(0,tslib_1.__importStar)(__webpack_require__(7423)),i5=(0,tslib_1.__importStar)(__webpack_require__(5245)),i6=(0,tslib_1.__importStar)(__webpack_require__(107)),i7=(0,tslib_1.__importStar)(__webpack_require__(3075)),i8=(0,tslib_1.__importStar)(__webpack_require__(5109)),i9=(0,tslib_1.__importStar)(__webpack_require__(8495));class SimpleCallComponent{constructor(Ve){this.sdkgen=Ve,this.editorOptions={theme:"vs-dark",language:"json"},this.code="",this.selected=new forms_1.FormControl(0),this.consoleItems=[]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ve=>{!Ve||(this.generateFunctionCode(Ve.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Ve.url,Ve.astJson))})}ngOnDestroy(){var Ve;null===(Ve=this.state$)||void 0===Ve||Ve.unsubscribe()}run(){var _this=this;return _asyncToGenerator(function*(){{const events=_this.consoleItems;eval(code_execution_1.wrapper)}const exec=_this.client[_this.fn](JSON.parse(_this.code));try{_this.response={result:yield exec}}catch(Ve){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Ve.toString()}),delete Ve.toString,_this.response={error:{type:Ve.type,message:Ve.message,data:Ve.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(Ve,g){var l;const i=null===(l=Ve.operations.find(u=>u.name===g))||void 0===l?void 0:l.args;i&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(i),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function Ve(g){return new(g||SimpleCallComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},SimpleCallComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:SimpleCallComponent,selectors:[["app-simple-call"]],inputs:{fn:"fn"},decls:12,vars:7,consts:[["direction","vertical"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["label","Requisi\xe7\xe3o"],["mat-fab","",1,"run-fab",3,"click"],[3,"options","ngModel","ngModelChange"],["label","Resposta",3,"disabled"],[3,"json"],[3,"size"],[3,"items"]],template:function Ve(g,l){1&g&&(i0.\u0275\u0275elementStart(0,"as-split",0),i0.\u0275\u0275elementStart(1,"as-split-area"),i0.\u0275\u0275elementStart(2,"mat-tab-group",1),i0.\u0275\u0275listener("selectedIndexChange",function(u){return l.selected.setValue(u)}),i0.\u0275\u0275elementStart(3,"mat-tab",2),i0.\u0275\u0275elementStart(4,"button",3),i0.\u0275\u0275listener("click",function(){return l.run()}),i0.\u0275\u0275elementStart(5,"mat-icon"),i0.\u0275\u0275text(6,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"ngx-monaco-editor",4),i0.\u0275\u0275listener("ngModelChange",function(u){return l.code=u}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"mat-tab",5),i0.\u0275\u0275element(9,"ngx-json-viewer",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"as-split-area",7),i0.\u0275\u0275element(11,"app-console",8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd()),2&g&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",l.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",l.editorOptions)("ngModel",l.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!l.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",l.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",l.consoleItems))},directives:[i2.SplitComponent,i2.SplitAreaDirective,i3.MatTabGroup,i3.MatTab,i4.MatButton,i5.MatIcon,i6.MonacoEditorComponent,i7.NgControlStatus,i7.NgModel,i8.NgxJsonViewerComponent,i9.ConsoleComponent],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}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%}"]})},4264:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TabEditorComponent=void 0;const tslib_1=__webpack_require__(655),typescript_generator_1=__webpack_require__(2911),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3)),i1=(0,tslib_1.__importStar)(__webpack_require__(6395)),i2=(0,tslib_1.__importStar)(__webpack_require__(7423)),i3=(0,tslib_1.__importStar)(__webpack_require__(5245)),i4=(0,tslib_1.__importStar)(__webpack_require__(1430)),i5=(0,tslib_1.__importStar)(__webpack_require__(107)),i6=(0,tslib_1.__importStar)(__webpack_require__(3075)),i7=(0,tslib_1.__importStar)(__webpack_require__(8495));class TabEditorComponent{constructor(Ve){this.sdkgen=Ve,this.code="",this.editorOptions={theme:"vs-dark",language:"typescript"},this.consoleItems=[{type:console_types_1.ConsoleItemType.INFO,message:"Bem-vindo! A sa\xedda dos seus testes aparecer\xe1 aqui :)"}]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ve=>{if(!Ve)return;const g=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(Ve.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Ve.url,Ve.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 l=monaco.editor.getModels().find(u=>u.uri.toString().endsWith("client.d.ts"));l?l.setValue(g):monaco.editor.createModel(g,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[i]=Ve.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(i.name,this.sdkgen.buildJsonObject(i.args))})}ngOnDestroy(){var Ve;null===(Ve=this.state$)||void 0===Ve||Ve.unsubscribe()}patchBrowserClientSource(Ve){return`declare namespace sdkgen {\n${Ve.substring(95,Ve.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 _asyncToGenerator(function*(){try{yield eval(`\n (async (client, events) => {\n ${code_execution_1.wrapper}\n ${_this.code}\n })\n `)(_this.client,_this.consoleItems).finally(()=>eval(code_execution_1.unwrap))}catch(Ve){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Ve.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function Ve(g){return new(g||TabEditorComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},TabEditorComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:TabEditorComponent,selectors:[["app-tab-editor"]],decls:8,vars:4,consts:[["mat-fab","",1,"run-fab",3,"click"],["direction","vertical"],[1,"o-hidden"],[3,"options","ngModel","ngModelChange"],[3,"size"],[3,"items"]],template:function Ve(g,l){1&g&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return l.run()}),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"as-split",1),i0.\u0275\u0275elementStart(4,"as-split-area",2),i0.\u0275\u0275elementStart(5,"ngx-monaco-editor",3),i0.\u0275\u0275listener("ngModelChange",function(u){return l.code=u}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"as-split-area",4),i0.\u0275\u0275element(7,"app-console",5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd()),2&g&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",l.editorOptions)("ngModel",l.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",l.consoleItems))},directives:[i2.MatButton,i3.MatIcon,i4.SplitComponent,i4.SplitAreaDirective,i5.MonacoEditorComponent,i6.NgControlStatus,i6.NgModel,i7.ConsoleComponent],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}"]})},5585:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.TabHomeComponent=void 0;const i=l(655),u=l(5e3),m=l(9435),c=l(5281),s=(0,i.__importStar)(l(5e3)),_=(0,i.__importStar)(l(6395)),D=(0,i.__importStar)(l(8966)),T=(0,i.__importStar)(l(7120)),S=(0,i.__importStar)(l(1430)),d=(0,i.__importStar)(l(3075)),A=(0,i.__importStar)(l(9808)),M=(0,i.__importStar)(l(7238)),b=(0,i.__importStar)(l(7423)),k=(0,i.__importStar)(l(5245)),$=(0,i.__importStar)(l(9417)),pe=(0,i.__importStar)(l(2075)),U=(0,i.__importStar)(l(3251)),ae=(0,i.__importStar)(l(107)),Se=(0,i.__importStar)(l(4211));function me(ut,Ge){if(1&ut&&(s.\u0275\u0275elementStart(0,"span",8),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ut){const L=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.description)}}const be=function(ut){return{active:ut}};function se(ut,Ge){if(1&ut){const L=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"li",5),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(L).$implicit;return s.\u0275\u0275nextContext().selectedFunction=ue}),s.\u0275\u0275elementStart(1,"span",6),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(3,me,2,1,"span",7),s.\u0275\u0275elementEnd()}if(2&ut){const L=Ge.$implicit,re=s.\u0275\u0275nextContext();s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(3,be,(null==re.selectedFunction?null:re.selectedFunction.name)===L.name)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(L.name),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",L.description)}}function Me(ut,Ge){1&ut&&s.\u0275\u0275element(0,"span")}function Le(ut,Ge){if(1&ut){const L=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"span"),s.\u0275\u0275element(1,"br"),s.\u0275\u0275text(2,"\xa0\xa0"),s.\u0275\u0275elementStart(3,"span",37),s.\u0275\u0275text(4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(5,"span",14),s.\u0275\u0275text(6,":"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(7,"\xa0"),s.\u0275\u0275elementStart(8,"u",15),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(L).$implicit;return s.\u0275\u0275nextContext(2).showDocumentation(ue.rawType)}),s.\u0275\u0275text(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(10,Me,1,0,"span",38),s.\u0275\u0275elementEnd()}if(2&ut){const L=Ge.$implicit,re=Ge.index;s.\u0275\u0275nextContext();const Oe=s.\u0275\u0275reference(18),ue=s.\u0275\u0275reference(20),we=s.\u0275\u0275nextContext();s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(L.name),s.\u0275\u0275advance(4),s.\u0275\u0275property("matTooltip",we.getTooltip(L.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.type),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",re!=we.selectedFunction.args.length-1)("ngIfThen",Oe)("ngIfElse",ue)}}function qe(ut,Ge){1&ut&&s.\u0275\u0275text(0,",")}function at(ut,Ge){1&ut&&s.\u0275\u0275element(0,"br")}function te(ut,Ge){if(1&ut){const L=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(L);const Oe=s.\u0275\u0275nextContext().$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(Oe.dataType)}),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()}if(2&ut){const L=s.\u0275\u0275nextContext().$implicit,re=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("matTooltip",re.getTooltip(L.dataType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1("(",L.dataType.name,")")}}function Fe(ut,Ge){if(1&ut&&(s.\u0275\u0275elementStart(0,"mat-chip",42),s.\u0275\u0275elementStart(1,"span",28),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(3,"i"),s.\u0275\u0275elementStart(4,"span",28),s.\u0275\u0275text(5),s.\u0275\u0275template(6,te,2,2,"u",43),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&ut){const L=Ge.$implicit;s.\u0275\u0275property("disableRipple",!0),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(L.name),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1("",L.type," "),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",L.dataType&&"void"!==L.dataType.name)}}function X(ut,Ge){if(1&ut&&(s.\u0275\u0275elementStart(0,"section",39),s.\u0275\u0275elementStart(1,"mat-chip-list",40),s.\u0275\u0275template(2,Fe,7,4,"mat-chip",41),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&ut){const L=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("selectable",!1),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",L.selectedFunction.labels)}}function le(ut,Ge){if(1&ut&&(s.\u0275\u0275elementStart(0,"p"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ut){const L=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.selectedFunction.description)}}function Ae(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),s.\u0275\u0275elementEnd())}function ne(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),s.\u0275\u0275elementEnd())}function Ke(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Nome"),s.\u0275\u0275elementEnd())}function _e(ut,Ge){if(1&ut&&(s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ut){const L=Ge.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.name)}}function tt(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Tipo"),s.\u0275\u0275elementEnd())}function Ce(ut,Ge){if(1&ut){const L=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275elementStart(1,"u",29),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(L).$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(ue.rawType)}),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&ut){const L=Ge.$implicit,re=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("matTooltip",re.getTooltip(L.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.type)}}function He(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd())}function ct(ut,Ge){if(1&ut&&(s.\u0275\u0275elementStart(0,"td",56),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ut){const L=Ge.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.description||"-")}}function bt(ut,Ge){1&ut&&s.\u0275\u0275element(0,"tr",57)}function Be(ut,Ge){1&ut&&s.\u0275\u0275element(0,"tr",58)}function Xe(ut,Ge){if(1&ut&&(s.\u0275\u0275elementStart(0,"table",45),s.\u0275\u0275elementContainerStart(1,46),s.\u0275\u0275template(2,Ke,2,0,"th",47),s.\u0275\u0275template(3,_e,2,1,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(4,49),s.\u0275\u0275template(5,tt,2,0,"th",47),s.\u0275\u0275template(6,Ce,3,2,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(7,50),s.\u0275\u0275template(8,He,2,0,"th",47),s.\u0275\u0275template(9,ct,2,1,"td",51),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275template(10,bt,1,0,"tr",52),s.\u0275\u0275template(11,Be,1,0,"tr",53),s.\u0275\u0275elementEnd()),2&ut){const L=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("dataSource",L.selectedFunction.args),s.\u0275\u0275advance(10),s.\u0275\u0275property("matHeaderRowDef",L.argumentsTableColumns),s.\u0275\u0275advance(1),s.\u0275\u0275property("matRowDefColumns",L.argumentsTableColumns)}}function J(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function ge(ut,Ge){1&ut&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Swift"),s.\u0275\u0275elementEnd())}const Ie=function(){return{theme:"vs-dark",language:"javascript"}},Re=function(){return{theme:"vs-dark",language:"kotlin"}},ye=function(){return{theme:"vs-dark",language:"dart"}},Je=function(){return{theme:"vs-dark",language:"swift"}};function mt(ut,Ge){if(1&ut){const L=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"article"),s.\u0275\u0275elementStart(1,"header"),s.\u0275\u0275elementStart(2,"h1",9),s.\u0275\u0275elementStart(3,"span",10),s.\u0275\u0275elementStart(4,"span",11),s.\u0275\u0275text(5,"fn"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(6,"\xa0"),s.\u0275\u0275elementStart(7,"span",12),s.\u0275\u0275text(8),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(9,"("),s.\u0275\u0275template(10,Le,11,6,"span",13),s.\u0275\u0275text(11,")"),s.\u0275\u0275elementStart(12,"span",14),s.\u0275\u0275text(13,":"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(14,"\xa0"),s.\u0275\u0275elementStart(15,"u",15),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(L);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(16),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(17,qe,1,0,"ng-template",null,16,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275template(19,at,1,0,"ng-template",null,17,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275element(21,"s"),s.\u0275\u0275elementStart(22,"button",18),s.\u0275\u0275listener("click",function(){return s.\u0275\u0275restoreView(L),s.\u0275\u0275nextContext().addSimpleCallTab()}),s.\u0275\u0275elementStart(23,"mat-icon"),s.\u0275\u0275text(24,"play_arrow"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(25,"\xa0EXECUTAR "),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(26,X,3,2,"section",19),s.\u0275\u0275elementStart(27,"section",9),s.\u0275\u0275elementStart(28,"h2",20),s.\u0275\u0275text(29,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(30,"div",21),s.\u0275\u0275template(31,le,2,1,"p",22),s.\u0275\u0275template(32,Ae,2,0,"p",23),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(33,"h2",24),s.\u0275\u0275text(34,"Par\xe2metros"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(35,"div",21),s.\u0275\u0275template(36,ne,2,0,"p",23),s.\u0275\u0275elementStart(37,"div",25),s.\u0275\u0275template(38,Xe,12,3,"table",26),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(39,"h2",27),s.\u0275\u0275text(40,"Retorno"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(41,"div"),s.\u0275\u0275elementStart(42,"p",28),s.\u0275\u0275elementStart(43,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(L);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(44),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(45,"h2",30),s.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(47,"mat-tab-group",31),s.\u0275\u0275elementStart(48,"mat-tab",32),s.\u0275\u0275element(49,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(50,"mat-tab",34),s.\u0275\u0275element(51,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(52,"mat-tab",35),s.\u0275\u0275template(53,J,2,0,"ng-template",36),s.\u0275\u0275element(54,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(55,"mat-tab",35),s.\u0275\u0275template(56,ge,2,0,"ng-template",36),s.\u0275\u0275element(57,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&ut){const L=s.\u0275\u0275nextContext();s.\u0275\u0275advance(8),s.\u0275\u0275textInterpolate(L.selectedFunction.name),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",L.selectedFunction.args),s.\u0275\u0275advance(5),s.\u0275\u0275property("matTooltip",L.getTooltip(L.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.selectedFunction.returns.type),s.\u0275\u0275advance(10),s.\u0275\u0275property("ngIf",L.selectedFunction.labels.length>0),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngSwitch",!!L.selectedFunction.description),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!0),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!1),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngSwitch",L.selectedFunction.args.length),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",0),s.\u0275\u0275advance(7),s.\u0275\u0275property("matTooltip",L.getTooltip(L.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(L.selectedFunction.returns.type),s.\u0275\u0275advance(5),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(20,Ie))("ngModel",L.selectedFunction.examples.typeScript),s.\u0275\u0275advance(2),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(21,Re))("ngModel",L.selectedFunction.examples.kotlin),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(22,ye))("ngModel",L.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Je))("ngModel",L.selectedFunction.examples.swift)}}const yt=function(){return{standalone:!0}};class It{constructor(Ge,L,re){this.sdkgen=Ge,this.dialog=L,this.responsive=re,this.isBelowMd=!1,this.runFunction=new u.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ge=>{!Ge||(this.selectedFunction=void 0,this.fnTable=Ge.astRoot.operations.sort((L,re)=>L.name.localeCompare(re.name)).map(L=>{var re,Oe,ue;const we=Ge.astJson.annotations[`fn.${L.name}`],Ee=this.sdkgen.buildJsonObject(L.args);return(null==we?void 0:we.find(ie=>"hidden"===ie.type))?null:{name:L.name,description:null===(re=null==we?void 0:we.find(ie=>"description"===ie.type))||void 0===re?void 0:re.value,args:L.args.map(({name:ie,type:ve})=>{var Ze,it,ht;return{name:ie,description:null===(ht=[...null!==(Ze=Ge.astJson.annotations[`type.${ve}.${ie}`])&&void 0!==Ze?Ze:[],...null!==(it=Ge.astJson.annotations[`fn.${L.name}.${ie}`])&&void 0!==it?it:[]].find(Dt=>"description"===Dt.type))||void 0===ht?void 0:ht.value,type:ve.name,rawType:ve}}),argsStr:L.args.map(ie=>`${ie.name}: ${ie.type.name}`).join(", "),argsFields:L.args,returns:{type:L.returnType.name,rawType:L.returnType},labels:null!==(Oe=null==we?void 0:we.filter(ie=>["rest","throws"].includes(ie.type)).map(ie=>{var ve;return"rest"===ie.type?{name:"REST",type:`${ie.value.method} ${ie.value.path}`}:"throws"===ie.type?{name:"THROWS",type:ie.value,dataType:null===(ve=Ge.astRoot.errors.find(Ze=>Ze.name===ie.value))||void 0===ve?void 0:ve.dataType}:{name:"?",type:"?"}}))&&void 0!==Oe?Oe:[],throws:null===(ue=null==we?void 0:we.find(ie=>"throws"===ie.type))||void 0===ue?void 0:ue.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(L.name,Ee),kotlin:this.sdkgen.getKotlinCode(L.name,L.args),dart:this.sdkgen.getDartCode(L.name,Ee),swift:this.sdkgen.getSwiftCode(L.name,Ee)}}}).filter(L=>Boolean(L)))})}ngOnDestroy(){var Ge,L;null===(Ge=this.state$)||void 0===Ge||Ge.unsubscribe(),null===(L=this.responsive$)||void 0===L||L.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Ge=>{this.isBelowMd=Ge.matches})}addSimpleCallTab(){var Ge;this.runFunction.emit(null===(Ge=this.selectedFunction)||void 0===Ge?void 0:Ge.name)}getTooltip(Ge){return(0,m.getTypeDoc)(Ge).shortDescription}showDocumentation(Ge){this.dialog.open(c.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Ge},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}g.TabHomeComponent=It,It.\u0275fac=function(Ge){return new(Ge||It)(s.\u0275\u0275directiveInject(_.SdkgenService),s.\u0275\u0275directiveInject(D.MatDialog),s.\u0275\u0275directiveInject(T.ResponsiveService))},It.\u0275cmp=s.\u0275\u0275defineComponent({type:It,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:11,vars:10,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[4,"ngFor","ngForOf"],[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"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[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(Ge,L){1&Ge&&(s.\u0275\u0275elementStart(0,"as-split",0),s.\u0275\u0275elementStart(1,"as-split-area",1),s.\u0275\u0275elementStart(2,"aside"),s.\u0275\u0275elementStart(3,"nav"),s.\u0275\u0275elementStart(4,"form"),s.\u0275\u0275elementStart(5,"input",2),s.\u0275\u0275listener("ngModelChange",function(Oe){return L.searchText=Oe}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(6,"ul"),s.\u0275\u0275template(7,se,4,5,"li",3),s.\u0275\u0275pipe(8,"appFilter"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(9,"as-split-area"),s.\u0275\u0275template(10,mt,58,24,"article",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&Ge&&(s.\u0275\u0275property("direction",L.isBelowMd?"vertical":"horizontal"),s.\u0275\u0275advance(1),s.\u0275\u0275property("size",L.isBelowMd?130:350),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngModel",L.searchText)("ngModelOptions",s.\u0275\u0275pureFunction0(9,yt)),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",s.\u0275\u0275pipeBind2(8,6,L.fnTable,L.searchText)),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngIf",L.selectedFunction))},directives:[S.SplitComponent,S.SplitAreaDirective,d.\u0275NgNoValidate,d.NgControlStatusGroup,d.NgForm,d.DefaultValueAccessor,d.NgControlStatus,d.NgModel,A.NgForOf,A.NgClass,A.NgIf,M.MatTooltip,b.MatButton,k.MatIcon,$.MatChipList,$.MatChip,A.NgSwitch,A.NgSwitchCase,A.NgSwitchDefault,pe.MatTable,pe.MatColumnDef,pe.MatHeaderCellDef,pe.MatHeaderCell,pe.MatCellDef,pe.MatCell,pe.MatHeaderRowDef,pe.MatHeaderRow,pe.MatRowDef,pe.MatRow,U.MatTabGroup,U.MatTab,ae.MonacoEditorComponent,U.MatTabLabel],pipes:[Se.FilterPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden!important}aside[_ngcontent-%COMP%]{display:block;background:#2b2b2b;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}nav[_ngcontent-%COMP%]{display:block;width:100%}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:#2b2b2b;border-bottom:1px solid #444444;position:sticky;top:0;left:0;right:0;z-index:2}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;background:#444444;border:0 none;color:#fff;width:100%;padding:5px}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}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%]{-webkit-text-decoration-style:dotted;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;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%]{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%] i[_ngcontent-%COMP%]{display:block;width:1.3px;background:#FFF;margin:0 7.5px;border-radius:5px;height:calc(100% + 14px)}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}"]})},2253:(Ve,g,l)=>{"use strict";var i=l(8926).default;Object.defineProperty(g,"__esModule",{value:!0}),g.TabNavComponent=void 0;const u=l(655),m=l(3075),c=l(6676),s=l(4814),_=(0,u.__importStar)(l(5e3)),D=(0,u.__importStar)(l(6395)),T=(0,u.__importStar)(l(2290)),S=(0,u.__importStar)(l(8966)),d=(0,u.__importStar)(l(3075)),A=(0,u.__importStar)(l(508)),M=(0,u.__importStar)(l(9808)),b=(0,u.__importStar)(l(5245)),k=(0,u.__importStar)(l(7423));function $(ae,Se){1&ae&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"mat-icon",6),_.\u0275\u0275text(2,"loop"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}function pe(ae,Se){1&ae&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"arrow_forward"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}class U{constructor(Se,me,be){this.sdkgen=Se,this.toastr=me,this.dialog=be,this.loading=!1,this.url=new m.FormControl("")}ngOnInit(){fetch("/ast.json").then(Se=>{Se.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(Se){var me=this;return i(function*(){null==Se||Se.preventDefault();try{me.loading=!0,/^https?:\/\//.test(me.url.value)||me.url.setValue(`https://${me.url.value}`);const be=new URL(me.url.value);be.pathname+=(/\/$/u.test(be.pathname)?"":"/")+"ast.json";const se=be.toString();console.debug("astUrl",se);const Me=yield fetch(se).then(Le=>Le.ok?Le.json():Le);if(Me instanceof Response)throw Me instanceof Error?Me:new Error(Me.statusText);if(!Me.errors||!Me.functionTable||!Me.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(Le=>setTimeout(Le,250));console.debug("astJson",Me),me.sdkgen.state$.next({astJson:Me,astRoot:(0,c.jsonToAst)(Me),url:me.url.value})}catch(be){me.toastr.error(be instanceof Error?be.message:JSON.stringify(be),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{me.loading=!1}})()}openAbout(){this.dialog.open(s.DialogAboutComponent)}}g.TabNavComponent=U,U.\u0275fac=function(Se){return new(Se||U)(_.\u0275\u0275directiveInject(D.SdkgenService),_.\u0275\u0275directiveInject(T.ToastrService),_.\u0275\u0275directiveInject(S.MatDialog))},U.\u0275cmp=_.\u0275\u0275defineComponent({type:U,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-icon-button","",3,"click"],[1,"loader"]],template:function(Se,me){1&Se&&(_.\u0275\u0275element(0,"img",0),_.\u0275\u0275elementStart(1,"form",1),_.\u0275\u0275listener("submit",function(se){return me.loadUrl(se)}),_.\u0275\u0275element(2,"input",2),_.\u0275\u0275elementStart(3,"button",3),_.\u0275\u0275template(4,$,3,0,"ng-container",4),_.\u0275\u0275template(5,pe,3,0,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(6,"button",5),_.\u0275\u0275listener("click",function(){return me.openAbout()}),_.\u0275\u0275elementStart(7,"mat-icon"),_.\u0275\u0275text(8,"info"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&Se&&(_.\u0275\u0275advance(2),_.\u0275\u0275property("formControl",me.url)("readonly",me.loading),_.\u0275\u0275advance(1),_.\u0275\u0275property("disabled",me.loading)("ngSwitch",me.loading),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",!1))},directives:[d.\u0275NgNoValidate,d.NgControlStatusGroup,d.NgForm,d.DefaultValueAccessor,d.NgControlStatus,d.FormControlDirective,A.MatRipple,M.NgSwitch,M.NgSwitchCase,b.MatIcon,k.MatButton],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}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})},5281:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.TypeDetailsComponent=void 0;const i=l(655),u=l(8966),m=l(9435),c=(0,i.__importStar)(l(5e3)),s=(0,i.__importStar)(l(8966)),_=(0,i.__importStar)(l(9808)),D=(0,i.__importStar)(l(7423)),T=(0,i.__importStar)(l(5245)),S=(0,i.__importStar)(l(9417)),d=(0,i.__importStar)(l(2075)),A=(0,i.__importStar)(l(7238));function M(le,Ae){1&le&&(c.\u0275\u0275elementStart(0,"button",6),c.\u0275\u0275elementStart(1,"mat-icon"),c.\u0275\u0275text(2,"arrow_back"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd())}function b(le,Ae){if(1&le&&(c.\u0275\u0275elementStart(0,"mat-chip",7),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&le){const ne=Ae.$implicit;c.\u0275\u0275property("disableRipple",!0),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ne)}}function k(le,Ae){1&le&&(c.\u0275\u0275elementStart(0,"button",8),c.\u0275\u0275elementStart(1,"mat-icon"),c.\u0275\u0275text(2,"close"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd())}function $(le,Ae){1&le&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Nome"),c.\u0275\u0275elementEnd())}function pe(le,Ae){if(1&le&&(c.\u0275\u0275elementStart(0,"td",21),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&le){const ne=Ae.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ne.name)}}function U(le,Ae){1&le&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Tipo"),c.\u0275\u0275elementEnd())}function ae(le,Ae){1&le&&(c.\u0275\u0275elementStart(0,"span"),c.\u0275\u0275text(1,"-"),c.\u0275\u0275elementEnd())}function Se(le,Ae){if(1&le){const ne=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"u",25),c.\u0275\u0275listener("click",function(){c.\u0275\u0275restoreView(ne);const _e=c.\u0275\u0275nextContext().$implicit;return c.\u0275\u0275nextContext(2).showDocumentation(_e.type)}),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()}if(2&le){const ne=c.\u0275\u0275nextContext().$implicit,Ke=c.\u0275\u0275nextContext(2);c.\u0275\u0275property("matTooltip",Ke.getTooltip(ne.type)),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ne.type.name)}}function me(le,Ae){1&le&&(c.\u0275\u0275elementStart(0,"td",22),c.\u0275\u0275template(1,ae,2,0,"span",23),c.\u0275\u0275template(2,Se,2,2,"u",24),c.\u0275\u0275elementEnd()),2&le&&(c.\u0275\u0275property("ngSwitch",Ae.$implicit.type),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",null))}function be(le,Ae){1&le&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Descri\xe7\xe3o"),c.\u0275\u0275elementEnd())}function se(le,Ae){if(1&le&&(c.\u0275\u0275elementStart(0,"td",26),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&le){const ne=Ae.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ne.description||"-")}}function Me(le,Ae){1&le&&c.\u0275\u0275element(0,"tr",27)}function Le(le,Ae){1&le&&c.\u0275\u0275element(0,"tr",28)}const qe=function(){return[]};function at(le,Ae){if(1&le&&(c.\u0275\u0275elementStart(0,"section"),c.\u0275\u0275elementStart(1,"div",9),c.\u0275\u0275elementStart(2,"table",10),c.\u0275\u0275elementContainerStart(3,11),c.\u0275\u0275template(4,$,2,0,"th",12),c.\u0275\u0275template(5,pe,2,1,"td",13),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275elementContainerStart(6,14),c.\u0275\u0275template(7,U,2,0,"th",12),c.\u0275\u0275template(8,me,3,2,"td",15),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275elementContainerStart(9,16),c.\u0275\u0275template(10,be,2,0,"th",12),c.\u0275\u0275template(11,se,2,1,"td",17),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275template(12,Me,1,0,"tr",18),c.\u0275\u0275template(13,Le,1,0,"tr",19),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&le){const ne=c.\u0275\u0275nextContext();let Ke;c.\u0275\u0275advance(2),c.\u0275\u0275property("dataSource",null!==(Ke=null==ne.typeDoc?null:ne.typeDoc.structFields)&&void 0!==Ke?Ke:c.\u0275\u0275pureFunction0(3,qe)),c.\u0275\u0275advance(10),c.\u0275\u0275property("matHeaderRowDef",ne.argumentsTableColumns),c.\u0275\u0275advance(1),c.\u0275\u0275property("matRowDefColumns",ne.argumentsTableColumns)}}function te(le,Ae){if(1&le&&(c.\u0275\u0275elementStart(0,"li"),c.\u0275\u0275elementStart(1,"code",1),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&le){const ne=Ae.$implicit;c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(ne)}}function Fe(le,Ae){if(1&le&&(c.\u0275\u0275elementStart(0,"section"),c.\u0275\u0275elementStart(1,"h3"),c.\u0275\u0275text(2,"Exemplos"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(3,"ul"),c.\u0275\u0275template(4,te,3,1,"li",29),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&le){const ne=c.\u0275\u0275nextContext();c.\u0275\u0275advance(4),c.\u0275\u0275property("ngForOf",null==ne.typeDoc?null:ne.typeDoc.examples)}}class X{constructor(Ae,ne,Ke){this.dialogRef=Ae,this.data=ne,this.dialog=Ke,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=(0,m.getTypeLabels)(this.data.type),this.typeDoc=(0,m.getTypeDoc)(this.data.type)}getTooltip(Ae){return(0,m.getTypeDoc)(Ae).shortDescription}showDocumentation(Ae){this.dialog.open(X,{position:{right:"0"},data:{type:Ae,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}g.TypeDetailsComponent=X,X.\u0275fac=function(Ae){return new(Ae||X)(c.\u0275\u0275directiveInject(s.MatDialogRef),c.\u0275\u0275directiveInject(u.MAT_DIALOG_DATA),c.\u0275\u0275directiveInject(s.MatDialog))},X.\u0275cmp=c.\u0275\u0275defineComponent({type:X,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],[3,"selectable"],["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(Ae,ne){1&Ae&&(c.\u0275\u0275elementStart(0,"h1"),c.\u0275\u0275template(1,M,3,0,"button",0),c.\u0275\u0275elementStart(2,"span",1),c.\u0275\u0275text(3),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(4,"mat-chip-list",2),c.\u0275\u0275template(5,b,2,2,"mat-chip",3),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(6,k,3,0,"button",4),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(7,"p"),c.\u0275\u0275text(8),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(9,at,14,4,"section",5),c.\u0275\u0275template(10,Fe,5,1,"section",5)),2&Ae&&(c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",ne.data.subdialog),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(ne.data.type.name),c.\u0275\u0275advance(1),c.\u0275\u0275property("selectable",!1),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngForOf",ne.labels),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",!ne.data.subdialog),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(null==ne.typeDoc?null:ne.typeDoc.longDescription),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",(null==ne.typeDoc?null:ne.typeDoc.isStruct)&&(null==ne.typeDoc?null:ne.typeDoc.structFields)),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",null==ne.typeDoc||null==ne.typeDoc.examples?null:ne.typeDoc.examples.length))},directives:[_.NgIf,D.MatButton,s.MatDialogClose,T.MatIcon,S.MatChipList,_.NgForOf,S.MatChip,d.MatTable,d.MatColumnDef,d.MatHeaderCellDef,d.MatHeaderCell,d.MatCellDef,d.MatCell,_.NgSwitch,_.NgSwitchCase,_.NgSwitchDefault,A.MatTooltip,d.MatHeaderRowDef,d.MatHeaderRow,d.MatRowDef,d.MatRow],styles:["h1[_ngcontent-%COMP%]{font-weight:200;word-break:break-all;word-wrap:break-word}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;-webkit-user-select:none;user-select:none}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-transform:uppercase}h1[_ngcontent-%COMP%] mat-chip-list[_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:2rem}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%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer}"]})},8227:(Ve,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.unwrap=g.wrapper=void 0,g.wrapper='\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.___originalConsoleLog = console.log;\n console.log = function() {\n const event = { type: "info", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n return ___originalConsoleLog.apply(this, arguments);\n }\n\n window.___originalConsoleError = console.error;\n console.error = function() {\n //if (typeof arguments[0] === "string") {\n const event = { type: "error", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n //}\n return ___originalConsoleError.apply(this, arguments);\n }\n',g.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(Ve,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.environment=void 0,g.environment={production:!0}},4431:(Ve,g,l)=>{"use strict";const m=(0,l(655).__importStar)(l(2313)),c=l(5e3),s=l(6747);l(2340).environment.production&&(0,c.enableProdMode)(),m.platformBrowser().bootstrapModule(s.AppModule).catch(D=>console.error(D))},4327:function(Ve,g){var u;void 0!==(u=function(){"use strict";function c(d,A,M){var b=new XMLHttpRequest;b.open("GET",d),b.responseType="blob",b.onload=function(){S(b.response,A,M)},b.onerror=function(){console.error("could not download file")},b.send()}function s(d){var A=new XMLHttpRequest;A.open("HEAD",d,!1);try{A.send()}catch(M){}return 200<=A.status&&299>=A.status}function _(d){try{d.dispatchEvent(new MouseEvent("click"))}catch(M){var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),d.dispatchEvent(A)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,T=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),S=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!T?function(d,A,M){var b=D.URL||D.webkitURL,k=document.createElement("a");k.download=A=A||d.name||"download",k.rel="noopener","string"==typeof d?(k.href=d,k.origin===location.origin?_(k):s(k.href)?c(d,A,M):_(k,k.target="_blank")):(k.href=b.createObjectURL(d),setTimeout(function(){b.revokeObjectURL(k.href)},4e4),setTimeout(function(){_(k)},0))}:"msSaveOrOpenBlob"in navigator?function(d,A,M){if(A=A||d.name||"download","string"!=typeof d)navigator.msSaveOrOpenBlob(function m(d,A){return void 0===A?A={autoBom:!1}:"object"!=typeof A&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\ufeff",d],{type:d.type}):d}(d,M),A);else if(s(d))c(d,A,M);else{var b=document.createElement("a");b.href=d,b.target="_blank",setTimeout(function(){_(b)})}}:function(d,A,M,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),"string"==typeof d)return c(d,A,M);var k="application/octet-stream"===d.type,$=/constructor/i.test(D.HTMLElement)||D.safari,pe=/CriOS\/[\d]+/.test(navigator.userAgent);if((pe||k&&$||T)&&"undefined"!=typeof FileReader){var U=new FileReader;U.onloadend=function(){var me=U.result;me=pe?me:me.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=me:location=me,b=null},U.readAsDataURL(d)}else{var ae=D.URL||D.webkitURL,Se=ae.createObjectURL(d);b?b.location=Se:location.href=Se,b=null,setTimeout(function(){ae.revokeObjectURL(Se)},4e4)}});D.saveAs=S.saveAs=S,Ve.exports=S}.apply(g,[]))&&(Ve.exports=u)},5109:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{NgxJsonViewerComponent:()=>S,NgxJsonViewerModule:()=>d});var i=l(9808),u=l(5e3);function m(A,M){1&A&&u.\u0275\u0275element(0,"div",9)}function c(A,M){if(1&A&&(u.\u0275\u0275elementStart(0,"span",10),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&A){const b=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(b.description)}}function s(A,M){if(1&A&&(u.\u0275\u0275elementStart(0,"section",11),u.\u0275\u0275element(1,"ngx-json-viewer",12),u.\u0275\u0275elementEnd()),2&A){const b=u.\u0275\u0275nextContext().$implicit,k=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("json",b.value)("expanded",k.expanded)("depth",k.depth)("_currentDepth",k._currentDepth)}}const _=function(A){return["segment",A]},D=function(A,M){return{"segment-main":!0,expandable:A,expanded:M}};function T(A,M){if(1&A){const b=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"section",2),u.\u0275\u0275elementStart(1,"section",3),u.\u0275\u0275listener("click",function(){const pe=u.\u0275\u0275restoreView(b).$implicit;return u.\u0275\u0275nextContext().toggle(pe)}),u.\u0275\u0275template(2,m,1,0,"div",4),u.\u0275\u0275elementStart(3,"span",5),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"span",6),u.\u0275\u0275text(6,": "),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(7,c,2,1,"span",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(8,s,2,4,"section",8),u.\u0275\u0275elementEnd()}if(2&A){const b=M.$implicit,k=u.\u0275\u0275nextContext();u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(6,_,"segment-type-"+b.type)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction2(8,D,k.isExpandable(b),b.expanded)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",k.isExpandable(b)),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(b.key),u.\u0275\u0275advance(3),u.\u0275\u0275property("ngIf",!b.expanded||!k.isExpandable(b)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",b.expanded&&k.isExpandable(b))}}let S=(()=>{class A{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=-1,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),this._currentDepth++,"object"==typeof this.json?Object.keys(this.json).forEach(b=>{this.segments.push(this.parseKeyValue(b,this.json[b]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(b){return"object"===b.type||"array"===b.type}toggle(b){this.isExpandable(b)&&(b.expanded=!b.expanded)}parseKeyValue(b,k){const $={key:b,value:k,type:void 0,description:""+k,expanded:this.isExpanded()};switch(typeof $.value){case"number":$.type="number";break;case"boolean":$.type="boolean";break;case"function":$.type="function";break;case"string":$.type="string",$.description='"'+$.value+'"';break;case"undefined":$.type="undefined",$.description="undefined";break;case"object":null===$.value?($.type="null",$.description="null"):Array.isArray($.value)?($.type="array",$.description="Array["+$.value.length+"] "+JSON.stringify($.value)):$.value instanceof Date?$.type="date":($.type="object",$.description="Object "+JSON.stringify($.value))}return $}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(b){const k=new WeakMap;return function $(pe,U){let ae,Se;return"object"!=typeof pe||null===pe||pe instanceof Boolean||pe instanceof Date||pe instanceof Number||pe instanceof RegExp||pe instanceof String?pe:(ae=k.get(pe),void 0!==ae?{$ref:ae}:(k.set(pe,U),Array.isArray(pe)?(Se=[],pe.forEach(function(me,be){Se[be]=$(me,U+"["+be+"]")})):(Se={},Object.keys(pe).forEach(function(me){Se[me]=$(pe[me],U+"["+JSON.stringify(me)+"]")})),Se))}(b,"$")}}return A.\u0275fac=function(b){return new(b||A)},A.\u0275cmp=u.\u0275\u0275defineComponent({type:A,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[u.\u0275\u0275NgOnChangesFeature],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(b,k){1&b&&(u.\u0275\u0275elementStart(0,"section",0),u.\u0275\u0275template(1,T,9,11,"section",1),u.\u0275\u0275elementEnd()),2&b&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",k.segments))},directives:[i.NgForOf,i.NgClass,i.NgIf,A],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:monospace;font-size:1em;height:100%;overflow:hidden;position:relative;width:100%}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{margin:1px 1px 1px 12px;padding:2px}.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%]{color:#787878;font-size:.8em;line-height:1.2em;margin-left:-14px;margin-top:3px;position:absolute;vertical-align:middle}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{content:"\u25ba";display:inline-block;transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:#4e187c}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:#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:#ff6b6b}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#009688}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#b938a4}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#05668d}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#fff}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:red}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_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}']}),A})(),d=(()=>{class A{}return A.\u0275fac=function(b){return new(b||A)},A.\u0275mod=u.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=u.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),A})()},9802:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ArgumentOutOfRangeError:()=>ye,AsyncSubject:()=>U,BehaviorSubject:()=>k.X,ConnectableObservable:()=>_,EMPTY:()=>Ae.E,EmptyError:()=>ge,NEVER:()=>O,NotFoundError:()=>Je,Notification:()=>Ce,NotificationKind:()=>tt,ObjectUnsubscribedError:()=>mt.N,Observable:()=>i.y,ReplaySubject:()=>pe,Scheduler:()=>X.b,SequenceError:()=>yt,Subject:()=>b.x,Subscriber:()=>le.Lv,Subscription:()=>u.w0,TimeoutError:()=>L,UnsubscriptionError:()=>ue.B,VirtualAction:()=>Fe,VirtualTimeScheduler:()=>te,animationFrame:()=>at.r,animationFrameScheduler:()=>at.Z,animationFrames:()=>d,asap:()=>ae.e,asapScheduler:()=>ae.E,async:()=>Se.P,asyncScheduler:()=>Se.z,audit:()=>si.U,auditTime:()=>Gn.e,bindCallback:()=>it,bindNodeCallback:()=>ht,buffer:()=>wn,bufferCount:()=>In,bufferTime:()=>H,bufferToggle:()=>Pe,bufferWhen:()=>W,catchError:()=>xe.K,combineAll:()=>bn,combineLatest:()=>ft.a,combineLatestAll:()=>Lt,combineLatestWith:()=>On,concat:()=>Dt.z,concatAll:()=>Fn.u,concatMap:()=>yn.b,concatMapTo:()=>Mn,concatWith:()=>Cn,config:()=>Rn.v,connect:()=>ri,connectable:()=>Ft,count:()=>jn,debounce:()=>Vn,debounceTime:()=>hi.b,defaultIfEmpty:()=>yi,defer:()=>Bt.P,delay:()=>ai.g,delayWhen:()=>kn.j,dematerialize:()=>_r,distinct:()=>Ki,distinctUntilChanged:()=>ir.x,distinctUntilKeyChanged:()=>$n,elementAt:()=>wr,empty:()=>Ae.c,endWith:()=>ki,every:()=>yr,exhaust:()=>Ni,exhaustAll:()=>Di,exhaustMap:()=>rr,expand:()=>vr,filter:()=>je.h,finalize:()=>or.x,find:()=>Gi,findIndex:()=>Mi,first:()=>sr,firstValueFrom:()=>Re,flatMap:()=>Yi,forkJoin:()=>pn.D,from:()=>en.D,fromEvent:()=>$t.R,fromEventPattern:()=>Tt,generate:()=>Kt,groupBy:()=>Li,identity:()=>Be.y,ignoreElements:()=>Jn.l,iif:()=>tn,interval:()=>Q,isEmpty:()=>wi,isObservable:()=>Xe.b,last:()=>Bi,lastValueFrom:()=>Ie,map:()=>li.U,mapTo:()=>vi.h,materialize:()=>br,max:()=>Zi,merge:()=>N.T,mergeAll:()=>Si.J,mergeMap:()=>et.z,mergeMapTo:()=>oi,mergeScan:()=>ji,mergeWith:()=>Vi,min:()=>$i,multicast:()=>Ii,never:()=>q,noop:()=>bt.Z,observable:()=>D.L,observeOn:()=>ve.Q,of:()=>ne.of,onErrorResumeNext:()=>st,pairs:()=>Wt,pairwise:()=>Cr,partition:()=>Ue,pipe:()=>ct.z,pluck:()=>Y,publish:()=>f,publishBehavior:()=>p,publishLast:()=>x,publishReplay:()=>G,queue:()=>qe,queueScheduler:()=>Le,race:()=>he,raceWith:()=>fe,range:()=>dt,reduce:()=>wt,refCount:()=>s,repeat:()=>y,repeatWhen:()=>R,retry:()=>C,retryWhen:()=>V,sample:()=>De,sampleTime:()=>Ye,scan:()=>ot,scheduled:()=>gn.x,sequenceEqual:()=>Et,share:()=>xt.B,shareReplay:()=>Vt,single:()=>Qt,skip:()=>an.T,skipLast:()=>F,skipUntil:()=>P,skipWhile:()=>I,startWith:()=>Z.O,subscribeOn:()=>Ee.R,switchAll:()=>At,switchMap:()=>Qe.w,switchMapTo:()=>hn,switchScan:()=>Sn,take:()=>Fi.q,takeLast:()=>mi,takeUntil:()=>bi.R,takeWhile:()=>Ci,tap:()=>Hi.b,throttle:()=>Ct,throttleTime:()=>Mt,throwError:()=>Ke._,throwIfEmpty:()=>Hn,timeInterval:()=>Zt,timeout:()=>re,timeoutWith:()=>fn,timer:()=>de.H,timestamp:()=>Pn,toArray:()=>Yt,using:()=>Nt,window:()=>Ln,windowCount:()=>Xn,windowTime:()=>Ei,windowToggle:()=>An,windowWhen:()=>Ur,withLatestFrom:()=>Ir,zip:()=>nn,zipAll:()=>Un,zipWith:()=>Zn});var i=l(9751),u=l(6921),m=l(4482),c=l(5403);function s(){return(0,m.e)((oe,z)=>{let ee=null;oe._refCount++;const ce=new c.Q(z,void 0,void 0,void 0,()=>{if(!oe||oe._refCount<=0||0<--oe._refCount)return void(ee=null);const ke=oe._connection,We=ee;ee=null,ke&&(!We||ke===We)&&ke.unsubscribe(),z.unsubscribe()});oe.subscribe(ce),ce.closed||(ee=oe.connect())})}class _ extends i.y{constructor(z,ee){super(),this.source=z,this.subjectFactory=ee,this._subject=null,this._refCount=0,this._connection=null,(0,m.A)(z)&&(this.lift=z.lift)}_subscribe(z){return this.getSubject().subscribe(z)}getSubject(){const z=this._subject;return(!z||z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:z}=this;this._subject=this._connection=null,null==z||z.unsubscribe()}connect(){let z=this._connection;if(!z){z=this._connection=new u.w0;const ee=this.getSubject();z.add(this.source.subscribe(new c.Q(ee,void 0,()=>{this._teardown(),ee.complete()},ce=>{this._teardown(),ee.error(ce)},()=>this._teardown()))),z.closed&&(this._connection=null,z=u.w0.EMPTY)}return z}refCount(){return s()(this)}}var D=l(8822);const T={now:()=>(T.delegate||performance).now(),delegate:void 0};var S=l(3399);function d(oe){return oe?A(oe):M}function A(oe){const{schedule:z}=S.l;return new i.y(ee=>{const ce=new u.w0,ke=oe||T,We=ke.now(),rt=_t=>{const gt=ke.now();ee.next({timestamp:oe?gt:_t,elapsed:gt-We}),ee.closed||ce.add(z(rt))};return ce.add(z(rt)),ce})}const M=A();var b=l(6758),k=l(1135),$=l(6063);class pe extends b.x{constructor(z=1/0,ee=1/0,ce=$.l){super(),this._bufferSize=z,this._windowTime=ee,this._timestampProvider=ce,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ee===1/0,this._bufferSize=Math.max(1,z),this._windowTime=Math.max(1,ee)}next(z){const{isStopped:ee,_buffer:ce,_infiniteTimeWindow:ke,_timestampProvider:We,_windowTime:rt}=this;ee||(ce.push(z),!ke&&ce.push(We.now()+rt)),this._trimBuffer(),super.next(z)}_subscribe(z){this._throwIfClosed(),this._trimBuffer();const ee=this._innerSubscribe(z),{_infiniteTimeWindow:ce,_buffer:ke}=this,We=ke.slice();for(let rt=0;rt<We.length&&!z.closed;rt+=ce?1:2)z.next(We[rt]);return this._checkFinalizedStatuses(z),ee}_trimBuffer(){const{_bufferSize:z,_timestampProvider:ee,_buffer:ce,_infiniteTimeWindow:ke}=this,We=(ke?1:2)*z;if(z<1/0&&We<ce.length&&ce.splice(0,ce.length-We),!ke){const rt=ee.now();let _t=0;for(let gt=1;gt<ce.length&&ce[gt]<=rt;gt+=2)_t=gt;_t&&ce.splice(0,_t+1)}}}class U extends b.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(z){const{hasError:ee,_hasValue:ce,_value:ke,thrownError:We,isStopped:rt,_isComplete:_t}=this;ee?z.error(We):(rt||_t)&&(ce&&z.next(ke),z.complete())}next(z){this.isStopped||(this._value=z,this._hasValue=!0)}complete(){const{_hasValue:z,_value:ee,_isComplete:ce}=this;ce||(this._isComplete=!0,z&&super.next(ee),super.complete())}}var ae=l(3101),Se=l(4986),me=l(4408),se=l(8950);const Le=new class Me extends se.v{}(class be extends me.o{constructor(z,ee){super(z,ee),this.scheduler=z,this.work=ee}schedule(z,ee=0){return ee>0?super.schedule(z,ee):(this.delay=ee,this.state=z,this.scheduler.flush(this),this)}execute(z,ee){return ee>0||this.closed?super.execute(z,ee):this._execute(z,ee)}requestAsyncId(z,ee,ce=0){return null!=ce&&ce>0||null==ce&&this.delay>0?super.requestAsyncId(z,ee,ce):z.flush(this)}}),qe=Le;var at=l(29);let te=(()=>{class oe extends se.v{constructor(ee=Fe,ce=1/0){super(ee,()=>this.frame),this.maxFrames=ce,this.frame=0,this.index=-1}flush(){const{actions:ee,maxFrames:ce}=this;let ke,We;for(;(We=ee[0])&&We.delay<=ce&&(ee.shift(),this.frame=We.delay,!(ke=We.execute(We.state,We.delay))););if(ke){for(;We=ee.shift();)We.unsubscribe();throw ke}}}return oe.frameTimeFactor=10,oe})();class Fe extends me.o{constructor(z,ee,ce=(z.index+=1)){super(z,ee),this.scheduler=z,this.work=ee,this.index=ce,this.active=!0,this.index=z.index=ce}schedule(z,ee=0){if(Number.isFinite(ee)){if(!this.id)return super.schedule(z,ee);this.active=!1;const ce=new Fe(this.scheduler,this.work);return this.add(ce),ce.schedule(z,ee)}return u.w0.EMPTY}requestAsyncId(z,ee,ce=0){this.delay=z.frame+ce;const{actions:ke}=z;return ke.push(this),ke.sort(Fe.sortActions),!0}recycleAsyncId(z,ee,ce=0){}_execute(z,ee){if(!0===this.active)return super._execute(z,ee)}static sortActions(z,ee){return z.delay===ee.delay?z.index===ee.index?0:z.index>ee.index?1:-1:z.delay>ee.delay?1:-1}}var X=l(6646),le=l(930),Ae=l(515),ne=l(9646),Ke=l(2843),_e=l(576),tt=(()=>{return(oe=tt||(tt={})).NEXT="N",oe.ERROR="E",oe.COMPLETE="C",tt;var oe})();class Ce{constructor(z,ee,ce){this.kind=z,this.value=ee,this.error=ce,this.hasValue="N"===z}observe(z){return He(this,z)}do(z,ee,ce){const{kind:ke,value:We,error:rt}=this;return"N"===ke?null==z?void 0:z(We):"E"===ke?null==ee?void 0:ee(rt):null==ce?void 0:ce()}accept(z,ee,ce){var ke;return(0,_e.m)(null===(ke=z)||void 0===ke?void 0:ke.next)?this.observe(z):this.do(z,ee,ce)}toObservable(){const{kind:z,value:ee,error:ce}=this,ke="N"===z?(0,ne.of)(ee):"E"===z?(0,Ke._)(()=>ce):"C"===z?Ae.E:0;if(!ke)throw new TypeError(`Unexpected notification kind ${z}`);return ke}static createNext(z){return new Ce("N",z)}static createError(z){return new Ce("E",void 0,z)}static createComplete(){return Ce.completeNotification}}function He(oe,z){var ee,ce,ke;const{kind:We,value:rt,error:_t}=oe;if("string"!=typeof We)throw new TypeError('Invalid notification, missing "kind"');"N"===We?null===(ee=z.next)||void 0===ee||ee.call(z,rt):"E"===We?null===(ce=z.error)||void 0===ce||ce.call(z,_t):null===(ke=z.complete)||void 0===ke||ke.call(z)}Ce.completeNotification=new Ce("C");var ct=l(9635),bt=l(5032),Be=l(4671),Xe=l(5191),J=l(3888);const ge=(0,J.d)(oe=>function(){oe(this),this.name="EmptyError",this.message="no elements in sequence"});function Ie(oe,z){const ee="object"==typeof z;return new Promise((ce,ke)=>{let rt,We=!1;oe.subscribe({next:_t=>{rt=_t,We=!0},error:ke,complete:()=>{We?ce(rt):ee?ce(z.defaultValue):ke(new ge)}})})}function Re(oe,z){const ee="object"==typeof z;return new Promise((ce,ke)=>{const We=new le.Hp({next:rt=>{ce(rt),We.unsubscribe()},error:ke,complete:()=>{ee?ce(z.defaultValue):ke(new ge)}});oe.subscribe(We)})}const ye=(0,J.d)(oe=>function(){oe(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Je=(0,J.d)(oe=>function(ee){oe(this),this.name="NotFoundError",this.message=ee});var mt=l(7448);const yt=(0,J.d)(oe=>function(ee){oe(this),this.name="SequenceError",this.message=ee});var It=l(1165),ut=l(8421),Ge=l(9672);const L=(0,J.d)(oe=>function(ee=null){oe(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ee});function re(oe,z){const{first:ee,each:ce,with:ke=Oe,scheduler:We=(null!=z?z:Se.z),meta:rt=null}=(0,It.q)(oe)?{first:oe}:"number"==typeof oe?{each:oe}:oe;if(null==ee&&null==ce)throw new TypeError("No timeout provided.");return(0,m.e)((_t,gt)=>{let zt,Gt,_n=null,cn=0;const vn=dn=>{Gt=(0,Ge.f)(gt,We,()=>{try{zt.unsubscribe(),(0,ut.Xf)(ke({meta:rt,lastValue:_n,seen:cn})).subscribe(gt)}catch(En){gt.error(En)}},dn)};zt=_t.subscribe(new c.Q(gt,dn=>{null==Gt||Gt.unsubscribe(),cn++,gt.next(_n=dn),ce>0&&vn(ce)},void 0,void 0,()=>{(null==Gt?void 0:Gt.closed)||null==Gt||Gt.unsubscribe(),_n=null})),vn(null!=ee?"number"==typeof ee?ee:+ee-We.now():ce)})}function Oe(oe){throw new L(oe)}var ue=l(7896),we=l(3532),Ee=l(9468),ie=l(3268),ve=l(5363);function Ze(oe,z,ee,ce){if(ee){if(!(0,we.K)(ee))return function(...ke){return Ze(oe,z,ce).apply(this,ke).pipe((0,ie.Z)(ee))};ce=ee}return ce?function(...ke){return Ze(oe,z).apply(this,ke).pipe((0,Ee.R)(ce),(0,ve.Q)(ce))}:function(...ke){const We=new U;let rt=!0;return new i.y(_t=>{const gt=We.subscribe(_t);if(rt){rt=!1;let zt=!1,Gt=!1;z.apply(this,[...ke,(..._n)=>{if(oe){const cn=_n.shift();if(null!=cn)return void We.error(cn)}We.next(1<_n.length?_n:_n[0]),Gt=!0,zt&&We.complete()}]),Gt&&We.complete(),zt=!0}return gt})}}function it(oe,z,ee){return Ze(!1,oe,z,ee)}function ht(oe,z,ee){return Ze(!0,oe,z,ee)}var ft=l(9841),Dt=l(1350),Bt=l(9770);const Jt={connector:()=>new b.x,resetOnDisconnect:!0};function Ft(oe,z=Jt){let ee=null;const{connector:ce,resetOnDisconnect:ke=!0}=z;let We=ce();const rt=new i.y(_t=>We.subscribe(_t));return rt.connect=()=>((!ee||ee.closed)&&(ee=(0,Bt.P)(()=>oe).subscribe(We),ke&&ee.add(()=>We=ce())),ee),rt}var pn=l(4128),en=l(188),$t=l(4968);function Tt(oe,z,ee){return ee?Tt(oe,z).pipe((0,ie.Z)(ee)):new i.y(ce=>{const ke=(...rt)=>ce.next(1===rt.length?rt[0]:rt),We=oe(ke);return(0,_e.m)(z)?()=>z(ke,We):void 0})}var ln=l(6340);function Kt(oe,z,ee,ce,ke){let We,rt;function*_t(){for(let gt=rt;!z||z(gt);gt=ee(gt))yield We(gt)}return 1===arguments.length?({initialState:rt,condition:z,iterate:ee,resultSelector:We=Be.y,scheduler:ke}=oe):(rt=oe,!ce||(0,we.K)(ce)?(We=Be.y,ke=ce):We=ce),(0,Bt.P)(ke?()=>(0,ln.Q)(_t(),ke):_t)}function tn(oe,z,ee){return(0,Bt.P)(()=>oe()?z:ee)}var de=l(2805);function Q(oe=0,z=Se.z){return oe<0&&(oe=0),(0,de.H)(oe,oe,z)}var N=l(6451);const O=new i.y(bt.Z);function q(){return O}const{isArray:E}=Array;function j(oe){return 1===oe.length&&E(oe[0])?oe[0]:oe}function st(...oe){return function Ne(...oe){const z=j(oe);return(0,m.e)((ee,ce)=>{const ke=[ee,...z],We=()=>{if(!ce.closed)if(ke.length>0){let rt;try{rt=(0,ut.Xf)(ke.shift())}catch(gt){return void We()}const _t=new c.Q(ce,void 0,bt.Z,bt.Z);ce.add(rt.subscribe(_t)),_t.add(We)}else ce.complete()};We()})}(j(oe))(Ae.E)}function Wt(oe,z){return(0,en.D)(Object.entries(oe),z)}function Ht(oe,z){return(ee,ce)=>!oe.call(z,ee,ce)}var je=l(9300);function Ue(oe,z,ee){return[(0,je.h)(z,ee)((0,ut.Xf)(oe)),(0,je.h)(Ht(z,ee))((0,ut.Xf)(oe))]}function he(...oe){return 1===(oe=j(oe)).length?(0,ut.Xf)(oe[0]):new i.y($e(oe))}function $e(oe){return z=>{let ee=[];for(let ce=0;ee&&!z.closed&&ce<oe.length;ce++)ee.push((0,ut.Xf)(oe[ce]).subscribe(new c.Q(z,ke=>{if(ee){for(let We=0;We<ee.length;We++)We!==ce&&ee[We].unsubscribe();ee=null}z.next(ke)})))}}function dt(oe,z,ee){if(null==z&&(z=oe,oe=0),z<=0)return Ae.E;const ce=z+oe;return new i.y(ee?ke=>{let We=oe;return ee.schedule(function(){We<ce?(ke.next(We++),this.schedule()):ke.complete()})}:ke=>{let We=oe;for(;We<ce&&!ke.closed;)ke.next(We++);ke.complete()})}function Nt(oe,z){return new i.y(ee=>{const ce=oe(),ke=z(ce);return(ke?(0,ut.Xf)(ke):Ae.E).subscribe(ee),()=>{ce&&ce.unsubscribe()}})}var Rt=l(3269);function nn(...oe){const z=(0,Rt.jO)(oe),ee=j(oe);return ee.length?new i.y(ce=>{let ke=ee.map(()=>[]),We=ee.map(()=>!1);ce.add(()=>{ke=We=null});for(let rt=0;!ce.closed&&rt<ee.length;rt++)(0,ut.Xf)(ee[rt]).subscribe(new c.Q(ce,_t=>{if(ke[rt].push(_t),ke.every(gt=>gt.length)){const gt=ke.map(zt=>zt.shift());ce.next(z?z(...gt):gt),ke.some((zt,Gt)=>!zt.length&&We[Gt])&&ce.complete()}},()=>{We[rt]=!0,!ke[rt].length&&ce.complete()}));return()=>{ke=We=null}}):Ae.E}var gn=l(3762),Rn=l(2416),si=l(5615),Gn=l(453);function wn(oe){return(0,m.e)((z,ee)=>{let ce=[];return z.subscribe(new c.Q(ee,ke=>ce.push(ke),()=>{ee.next(ce),ee.complete()})),oe.subscribe(new c.Q(ee,()=>{const ke=ce;ce=[],ee.next(ke)},bt.Z)),()=>{ce=null}})}var Bn=l(8737);function In(oe,z=null){return z=null!=z?z:oe,(0,m.e)((ee,ce)=>{let ke=[],We=0;ee.subscribe(new c.Q(ce,rt=>{let _t=null;We++%z==0&&ke.push([]);for(const gt of ke)gt.push(rt),oe<=gt.length&&(_t=null!=_t?_t:[],_t.push(gt));if(_t)for(const gt of _t)(0,Bn.P)(ke,gt),ce.next(gt)},()=>{for(const rt of ke)ce.next(rt);ce.complete()},void 0,()=>{ke=null}))})}function H(oe,...z){var ee,ce;const ke=null!==(ee=(0,Rt.yG)(z))&&void 0!==ee?ee:Se.z,We=null!==(ce=z[0])&&void 0!==ce?ce:null,rt=z[1]||1/0;return(0,m.e)((_t,gt)=>{let zt=[],Gt=!1;const _n=dn=>{const{buffer:En,subs:Dn}=dn;Dn.unsubscribe(),(0,Bn.P)(zt,dn),gt.next(En),Gt&&cn()},cn=()=>{if(zt){const dn=new u.w0;gt.add(dn);const Dn={buffer:[],subs:dn};zt.push(Dn),(0,Ge.f)(dn,ke,()=>_n(Dn),oe)}};null!==We&&We>=0?(0,Ge.f)(gt,ke,cn,We,!0):Gt=!0,cn();const vn=new c.Q(gt,dn=>{const En=zt.slice();for(const Dn of En){const{buffer:ar}=Dn;ar.push(dn),rt<=ar.length&&_n(Dn)}},()=>{for(;null==zt?void 0:zt.length;)gt.next(zt.shift().buffer);null==vn||vn.unsubscribe(),gt.complete(),gt.unsubscribe()},void 0,()=>zt=null);_t.subscribe(vn)})}function Pe(oe,z){return(0,m.e)((ee,ce)=>{const ke=[];(0,ut.Xf)(oe).subscribe(new c.Q(ce,We=>{const rt=[];ke.push(rt);const _t=new u.w0;_t.add((0,ut.Xf)(z(We)).subscribe(new c.Q(ce,()=>{(0,Bn.P)(ke,rt),ce.next(rt),_t.unsubscribe()},bt.Z)))},bt.Z)),ee.subscribe(new c.Q(ce,We=>{for(const rt of ke)rt.push(We)},()=>{for(;ke.length>0;)ce.next(ke.shift());ce.complete()}))})}function W(oe){return(0,m.e)((z,ee)=>{let ce=null,ke=null;const We=()=>{null==ke||ke.unsubscribe();const rt=ce;ce=[],rt&&ee.next(rt),(0,ut.Xf)(oe()).subscribe(ke=new c.Q(ee,We,bt.Z))};We(),z.subscribe(new c.Q(ee,rt=>null==ce?void 0:ce.push(rt),()=>{ce&&ee.next(ce),ee.complete()},void 0,()=>ce=ke=null))})}var xe=l(262),et=l(6099);function lt(oe,z,ee,ce,ke){return(We,rt)=>{let _t=ee,gt=z,zt=0;We.subscribe(new c.Q(rt,Gt=>{const _n=zt++;gt=_t?oe(gt,Gt,_n):(_t=!0,Gt),ce&&rt.next(gt)},ke&&(()=>{_t&&rt.next(gt),rt.complete()})))}}function wt(oe,z){return(0,m.e)(lt(oe,z,arguments.length>=2,!1,!0))}const kt=(oe,z)=>(oe.push(z),oe);function Yt(){return(0,m.e)((oe,z)=>{wt(kt,[])(oe).subscribe(z)})}function un(oe,z){return(0,ct.z)(Yt(),(0,et.z)(ee=>oe(ee)),z?(0,ie.Z)(z):Be.y)}function Lt(oe){return un(ft.a,oe)}const bn=Lt;function rn(...oe){const z=(0,Rt.jO)(oe);return z?(0,ct.z)(rn(...oe),(0,ie.Z)(z)):(0,m.e)((ee,ce)=>{(0,ft.l)([ee,...j(oe)])(ce)})}function On(...oe){return rn(...oe)}var Fn=l(7886),yn=l(4351);function Mn(oe,z){return(0,_e.m)(z)?(0,yn.b)(()=>oe,z):(0,yn.b)(()=>oe)}function Cn(...oe){return function ii(...oe){const z=(0,Rt.yG)(oe);return(0,m.e)((ee,ce)=>{(0,Fn.u)()((0,en.D)([ee,...oe],z)).subscribe(ce)})}(...oe)}const Yn={connector:()=>new b.x};function ri(oe,z=Yn){const{connector:ee}=z;return(0,m.e)((ce,ke)=>{const We=ee();(0,en.D)(oe(function sn(oe){return new i.y(z=>oe.subscribe(z))}(We))).subscribe(ke),ke.add(ce.subscribe(We))})}function jn(oe){return wt((z,ee,ce)=>!oe||oe(ee,ce)?z+1:z,0)}function Vn(oe){return(0,m.e)((z,ee)=>{let ce=!1,ke=null,We=null;const rt=()=>{if(null==We||We.unsubscribe(),We=null,ce){ce=!1;const _t=ke;ke=null,ee.next(_t)}};z.subscribe(new c.Q(ee,_t=>{null==We||We.unsubscribe(),ce=!0,ke=_t,We=new c.Q(ee,rt,bt.Z),(0,ut.Xf)(oe(_t)).subscribe(We)},()=>{rt(),ee.complete()},void 0,()=>{ke=We=null}))})}var hi=l(8372);function yi(oe){return(0,m.e)((z,ee)=>{let ce=!1;z.subscribe(new c.Q(ee,ke=>{ce=!0,ee.next(ke)},()=>{ce||ee.next(oe),ee.complete()}))})}var ai=l(4326),kn=l(1260);function _r(){return(0,m.e)((oe,z)=>{oe.subscribe(new c.Q(z,ee=>He(ee,z)))})}function Ki(oe,z){return(0,m.e)((ee,ce)=>{const ke=new Set;ee.subscribe(new c.Q(ce,We=>{const rt=oe?oe(We):We;ke.has(rt)||(ke.add(rt),ce.next(We))})),null==z||z.subscribe(new c.Q(ce,()=>ke.clear(),bt.Z))})}var ir=l(1884);function $n(oe,z){return(0,ir.x)((ee,ce)=>z?z(ee[oe],ce[oe]):ee[oe]===ce[oe])}function Hn(oe=fi){return(0,m.e)((z,ee)=>{let ce=!1;z.subscribe(new c.Q(ee,ke=>{ce=!0,ee.next(ke)},()=>ce?ee.complete():ee.error(oe())))})}function fi(){return new ge}var Fi=l(5698);function wr(oe,z){if(oe<0)throw new ye;const ee=arguments.length>=2;return ce=>ce.pipe((0,je.h)((ke,We)=>We===oe),(0,Fi.q)(1),ee?yi(z):Hn(()=>new ye))}function ki(...oe){return z=>(0,Dt.z)(z,(0,ne.of)(...oe))}function yr(oe,z){return(0,m.e)((ee,ce)=>{let ke=0;ee.subscribe(new c.Q(ce,We=>{oe.call(z,We,ke++,ee)||(ce.next(!1),ce.complete())},()=>{ce.next(!0),ce.complete()}))})}function Di(){return(0,m.e)((oe,z)=>{let ee=!1,ce=null;oe.subscribe(new c.Q(z,ke=>{ce||(ce=(0,ut.Xf)(ke).subscribe(new c.Q(z,void 0,()=>{ce=null,ee&&z.complete()})))},()=>{ee=!0,!ce&&z.complete()}))})}const Ni=Di;var li=l(4004);function rr(oe,z){return z?ee=>ee.pipe(rr((ce,ke)=>(0,ut.Xf)(oe(ce,ke)).pipe((0,li.U)((We,rt)=>z(ce,We,ke,rt))))):(0,m.e)((ee,ce)=>{let ke=0,We=null,rt=!1;ee.subscribe(new c.Q(ce,_t=>{We||(We=new c.Q(ce,void 0,()=>{We=null,rt&&ce.complete()}),(0,ut.Xf)(oe(_t,ke++)).subscribe(We))},()=>{rt=!0,!We&&ce.complete()}))})}var pi=l(2733);function vr(oe,z=1/0,ee){return z=(z||0)<1?1/0:z,(0,m.e)((ce,ke)=>(0,pi.p)(ce,ke,oe,z,void 0,!0,ee))}var or=l(8746);function Gi(oe,z){return(0,m.e)(Ti(oe,z,"value"))}function Ti(oe,z,ee){const ce="index"===ee;return(ke,We)=>{let rt=0;ke.subscribe(new c.Q(We,_t=>{const gt=rt++;oe.call(z,_t,gt,ke)&&(We.next(ce?gt:_t),We.complete())},()=>{We.next(ce?-1:void 0),We.complete()}))}}function Mi(oe,z){return(0,m.e)(Ti(oe,z,"index"))}function sr(oe,z){const ee=arguments.length>=2;return ce=>ce.pipe(oe?(0,je.h)((ke,We)=>oe(ke,We,ce)):Be.y,(0,Fi.q)(1),ee?yi(z):Hn(()=>new ge))}function Li(oe,z,ee,ce){return(0,m.e)((ke,We)=>{let rt;z&&"function"!=typeof z?({duration:ee,element:rt,connector:ce}=z):rt=z;const _t=new Map,gt=cn=>{_t.forEach(cn),cn(We)},zt=cn=>gt(vn=>vn.error(cn)),Gt=new Qi(We,cn=>{try{const vn=oe(cn);let dn=_t.get(vn);if(!dn){_t.set(vn,dn=ce?ce():new b.x);const En=function _n(cn,vn){const dn=new i.y(En=>{Gt.activeGroups++;const Dn=vn.subscribe(En);return()=>{Dn.unsubscribe(),0==--Gt.activeGroups&&Gt.teardownAttempted&&Gt.unsubscribe()}});return dn.key=cn,dn}(vn,dn);if(We.next(En),ee){const Dn=new c.Q(dn,()=>{dn.complete(),null==Dn||Dn.unsubscribe()},void 0,void 0,()=>_t.delete(vn));Gt.add((0,ut.Xf)(ee(En)).subscribe(Dn))}}dn.next(rt?rt(cn):cn)}catch(vn){zt(vn)}},()=>gt(cn=>cn.complete()),zt,()=>_t.clear());ke.subscribe(Gt)})}class Qi extends c.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var Jn=l(8502);function wi(){return(0,m.e)((oe,z)=>{oe.subscribe(new c.Q(z,()=>{z.next(!1),z.complete()},()=>{z.next(!0),z.complete()}))})}function mi(oe){return oe<=0?()=>Ae.E:(0,m.e)((z,ee)=>{let ce=[];z.subscribe(new c.Q(ee,ke=>{ce.push(ke),oe<ce.length&&ce.shift()},()=>{for(const ke of ce)ee.next(ke);ee.complete()},void 0,()=>{ce=null}))})}function Bi(oe,z){const ee=arguments.length>=2;return ce=>ce.pipe(oe?(0,je.h)((ke,We)=>oe(ke,We,ce)):Be.y,mi(1),ee?yi(z):Hn(()=>new ge))}var vi=l(9718);function br(){return(0,m.e)((oe,z)=>{oe.subscribe(new c.Q(z,ee=>{z.next(Ce.createNext(ee))},()=>{z.next(Ce.createComplete()),z.complete()},ee=>{z.next(Ce.createError(ee)),z.complete()}))})}function Zi(oe){return wt((0,_e.m)(oe)?(z,ee)=>oe(z,ee)>0?z:ee:(z,ee)=>z>ee?z:ee)}var Si=l(8189);const Yi=et.z;function oi(oe,z,ee=1/0){return(0,_e.m)(z)?(0,et.z)(()=>oe,z,ee):("number"==typeof z&&(ee=z),(0,et.z)(()=>oe,ee))}function ji(oe,z,ee=1/0){return(0,m.e)((ce,ke)=>{let We=z;return(0,pi.p)(ce,ke,(rt,_t)=>oe(We,rt,_t),ee,rt=>{We=rt},!1,void 0,()=>We=null)})}function Vi(...oe){return function Nn(...oe){const z=(0,Rt.yG)(oe),ee=(0,Rt._6)(oe,1/0);return oe=j(oe),(0,m.e)((ce,ke)=>{(0,Si.J)(ee)((0,en.D)([ce,...oe],z)).subscribe(ke)})}(...oe)}function $i(oe){return wt((0,_e.m)(oe)?(z,ee)=>oe(z,ee)<0?z:ee:(z,ee)=>z<ee?z:ee)}function Ii(oe,z){const ee=(0,_e.m)(oe)?oe:()=>oe;return(0,_e.m)(z)?ri(z,{connector:ee}):ce=>new _(ce,ee)}function Cr(){return(0,m.e)((oe,z)=>{let ee,ce=!1;oe.subscribe(new c.Q(z,ke=>{const We=ee;ee=ke,ce&&z.next([We,ke]),ce=!0}))})}function Y(...oe){const z=oe.length;if(0===z)throw new Error("list of properties cannot be empty.");return(0,li.U)(ee=>{let ce=ee;for(let ke=0;ke<z;ke++){const We=null==ce?void 0:ce[oe[ke]];if(void 0===We)return;ce=We}return ce})}function f(oe){return oe?z=>ri(oe)(z):z=>Ii(new b.x)(z)}function p(oe){return z=>{const ee=new k.X(oe);return new _(z,()=>ee)}}function x(){return oe=>{const z=new U;return new _(oe,()=>z)}}function G(oe,z,ee,ce){ee&&!(0,_e.m)(ee)&&(ce=ee);const ke=(0,_e.m)(ee)?ee:void 0;return We=>Ii(new pe(oe,z,ce),ke)(We)}function fe(...oe){return oe.length?(0,m.e)((z,ee)=>{$e([z,...oe])(ee)}):Be.y}function y(oe){let ee,z=1/0;return null!=oe&&("object"==typeof oe?({count:z=1/0,delay:ee}=oe):z=oe),z<=0?()=>Ae.E:(0,m.e)((ce,ke)=>{let rt,We=0;const _t=()=>{if(null==rt||rt.unsubscribe(),rt=null,null!=ee){const zt="number"==typeof ee?(0,de.H)(ee):(0,ut.Xf)(ee(We)),Gt=new c.Q(ke,()=>{Gt.unsubscribe(),gt()});zt.subscribe(Gt)}else gt()},gt=()=>{let zt=!1;rt=ce.subscribe(new c.Q(ke,void 0,()=>{++We<z?rt?_t():zt=!0:ke.complete()})),zt&&_t()};gt()})}function R(oe){return(0,m.e)((z,ee)=>{let ce,We,ke=!1,rt=!1,_t=!1;const gt=()=>_t&&rt&&(ee.complete(),!0),Gt=()=>{_t=!1,ce=z.subscribe(new c.Q(ee,void 0,()=>{_t=!0,!gt()&&(We||(We=new b.x,oe(We).subscribe(new c.Q(ee,()=>{ce?Gt():ke=!0},()=>{rt=!0,gt()}))),We).next()})),ke&&(ce.unsubscribe(),ce=null,ke=!1,Gt())};Gt()})}function C(oe=1/0){let z;z=oe&&"object"==typeof oe?oe:{count:oe};const{count:ee=1/0,delay:ce,resetOnSuccess:ke=!1}=z;return ee<=0?Be.y:(0,m.e)((We,rt)=>{let gt,_t=0;const zt=()=>{let Gt=!1;gt=We.subscribe(new c.Q(rt,_n=>{ke&&(_t=0),rt.next(_n)},void 0,_n=>{if(_t++<ee){const cn=()=>{gt?(gt.unsubscribe(),gt=null,zt()):Gt=!0};if(null!=ce){const vn="number"==typeof ce?(0,de.H)(ce):(0,ut.Xf)(ce(_n,_t)),dn=new c.Q(rt,()=>{dn.unsubscribe(),cn()},()=>{rt.complete()});vn.subscribe(dn)}else cn()}else rt.error(_n)})),Gt&&(gt.unsubscribe(),gt=null,zt())};zt()})}function V(oe){return(0,m.e)((z,ee)=>{let ce,We,ke=!1;const rt=()=>{ce=z.subscribe(new c.Q(ee,void 0,void 0,_t=>{We||(We=new b.x,oe(We).subscribe(new c.Q(ee,()=>ce?rt():ke=!0))),We&&We.next(_t)})),ke&&(ce.unsubscribe(),ce=null,ke=!1,rt())};rt()})}function De(oe){return(0,m.e)((z,ee)=>{let ce=!1,ke=null;z.subscribe(new c.Q(ee,rt=>{ce=!0,ke=rt})),oe.subscribe(new c.Q(ee,()=>{if(ce){ce=!1;const rt=ke;ke=null,ee.next(rt)}},bt.Z))})}function Ye(oe,z=Se.z){return De(Q(oe,z))}function ot(oe,z){return(0,m.e)(lt(oe,z,arguments.length>=2,!0))}function Et(oe,z=((ee,ce)=>ee===ce)){return(0,m.e)((ee,ce)=>{const ke={buffer:[],complete:!1},We={buffer:[],complete:!1},rt=gt=>{ce.next(gt),ce.complete()},_t=(gt,zt)=>{const Gt=new c.Q(ce,_n=>{const{buffer:cn,complete:vn}=zt;0===cn.length?vn?rt(!1):gt.buffer.push(_n):!z(_n,cn.shift())&&rt(!1)},()=>{gt.complete=!0;const{complete:_n,buffer:cn}=zt;_n&&rt(0===cn.length),null==Gt||Gt.unsubscribe()});return Gt};ee.subscribe(_t(ke,We)),oe.subscribe(_t(We,ke))})}var xt=l(3099);function Vt(oe,z,ee){var ce,ke;let We,rt=!1;return oe&&"object"==typeof oe?(We=null!==(ce=oe.bufferSize)&&void 0!==ce?ce:1/0,z=null!==(ke=oe.windowTime)&&void 0!==ke?ke:1/0,rt=!!oe.refCount,ee=oe.scheduler):We=null!=oe?oe:1/0,(0,xt.B)({connector:()=>new pe(We,z,ee),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:rt})}function Qt(oe){return(0,m.e)((z,ee)=>{let ke,ce=!1,We=!1,rt=0;z.subscribe(new c.Q(ee,_t=>{We=!0,(!oe||oe(_t,rt++,z))&&(ce&&ee.error(new yt("Too many matching values")),ce=!0,ke=_t)},()=>{ce?(ee.next(ke),ee.complete()):ee.error(We?new Je("No matching values"):new ge)}))})}var an=l(5684);function F(oe){return oe<=0?Be.y:(0,m.e)((z,ee)=>{let ce=new Array(oe),ke=0;return z.subscribe(new c.Q(ee,We=>{const rt=ke++;if(rt<oe)ce[rt]=We;else{const _t=rt%oe,gt=ce[_t];ce[_t]=We,ee.next(gt)}})),()=>{ce=null}})}function P(oe){return(0,m.e)((z,ee)=>{let ce=!1;const ke=new c.Q(ee,()=>{null==ke||ke.unsubscribe(),ce=!0},bt.Z);(0,ut.Xf)(oe).subscribe(ke),z.subscribe(new c.Q(ee,We=>ce&&ee.next(We)))})}function I(oe){return(0,m.e)((z,ee)=>{let ce=!1,ke=0;z.subscribe(new c.Q(ee,We=>(ce||(ce=!oe(We,ke++)))&&ee.next(We)))})}var Z=l(8675),Qe=l(3900);function At(){return(0,Qe.w)(Be.y)}function hn(oe,z){return(0,_e.m)(z)?(0,Qe.w)(()=>oe,z):(0,Qe.w)(()=>oe)}function Sn(oe,z){return(0,m.e)((ee,ce)=>{let ke=z;return(0,Qe.w)((We,rt)=>oe(ke,We,rt),(We,rt)=>(ke=rt,rt))(ee).subscribe(ce),()=>{ke=null}})}var bi=l(2722);function Ci(oe,z=!1){return(0,m.e)((ee,ce)=>{let ke=0;ee.subscribe(new c.Q(ce,We=>{const rt=oe(We,ke++);(rt||z)&&ce.next(We),!rt&&ce.complete()}))})}var Hi=l(8505);const Sr={leading:!0,trailing:!1};function Ct(oe,z=Sr){return(0,m.e)((ee,ce)=>{const{leading:ke,trailing:We}=z;let rt=!1,_t=null,gt=null,zt=!1;const Gt=()=>{null==gt||gt.unsubscribe(),gt=null,We&&(vn(),zt&&ce.complete())},_n=()=>{gt=null,zt&&ce.complete()},cn=dn=>gt=(0,ut.Xf)(oe(dn)).subscribe(new c.Q(ce,Gt,_n)),vn=()=>{if(rt){rt=!1;const dn=_t;_t=null,ce.next(dn),!zt&&cn(dn)}};ee.subscribe(new c.Q(ce,dn=>{rt=!0,_t=dn,(!gt||gt.closed)&&(ke?vn():cn(dn))},()=>{zt=!0,(!(We&&rt&&gt)||gt.closed)&&ce.complete()}))})}function Mt(oe,z=Se.z,ee=Sr){const ce=(0,de.H)(oe,z);return Ct(()=>ce,ee)}function Zt(oe=Se.z){return z=>(0,Bt.P)(()=>z.pipe(ot(({current:ee},ce)=>({value:ce,current:oe.now(),last:ee}),{current:oe.now(),value:void 0,last:void 0}),(0,li.U)(({current:ee,last:ce,value:ke})=>new jt(ke,ee-ce))))}class jt{constructor(z,ee){this.value=z,this.interval=ee}}function fn(oe,z,ee){let ce,ke,We;if(ee=null!=ee?ee:Se.P,(0,It.q)(oe)?ce=oe:"number"==typeof oe&&(ke=oe),!z)throw new TypeError("No observable provided to switch to");if(We=()=>z,null==ce&&null==ke)throw new TypeError("No timeout provided.");return re({first:ce,each:ke,scheduler:ee,with:We})}function Pn(oe=$.l){return(0,li.U)(z=>({value:z,timestamp:oe.now()}))}function Ln(oe){return(0,m.e)((z,ee)=>{let ce=new b.x;ee.next(ce.asObservable());const ke=We=>{ce.error(We),ee.error(We)};return z.subscribe(new c.Q(ee,We=>null==ce?void 0:ce.next(We),()=>{ce.complete(),ee.complete()},ke)),oe.subscribe(new c.Q(ee,()=>{ce.complete(),ee.next(ce=new b.x)},bt.Z,ke)),()=>{null==ce||ce.unsubscribe(),ce=null}})}function Xn(oe,z=0){const ee=z>0?z:oe;return(0,m.e)((ce,ke)=>{let We=[new b.x],rt=[],_t=0;ke.next(We[0].asObservable()),ce.subscribe(new c.Q(ke,gt=>{for(const Gt of We)Gt.next(gt);const zt=_t-oe+1;if(zt>=0&&zt%ee==0&&We.shift().complete(),++_t%ee==0){const Gt=new b.x;We.push(Gt),ke.next(Gt.asObservable())}},()=>{for(;We.length>0;)We.shift().complete();ke.complete()},gt=>{for(;We.length>0;)We.shift().error(gt);ke.error(gt)},()=>{rt=null,We=null}))})}function Ei(oe,...z){var ee,ce;const ke=null!==(ee=(0,Rt.yG)(z))&&void 0!==ee?ee:Se.z,We=null!==(ce=z[0])&&void 0!==ce?ce:null,rt=z[1]||1/0;return(0,m.e)((_t,gt)=>{let zt=[],Gt=!1;const _n=En=>{const{window:Dn,subs:ar}=En;Dn.complete(),ar.unsubscribe(),(0,Bn.P)(zt,En),Gt&&cn()},cn=()=>{if(zt){const En=new u.w0;gt.add(En);const Dn=new b.x,ar={window:Dn,subs:En,seen:0};zt.push(ar),gt.next(Dn.asObservable()),(0,Ge.f)(En,ke,()=>_n(ar),oe)}};null!==We&&We>=0?(0,Ge.f)(gt,ke,cn,We,!0):Gt=!0,cn();const vn=En=>zt.slice().forEach(En),dn=En=>{vn(({window:Dn})=>En(Dn)),En(gt),gt.unsubscribe()};return _t.subscribe(new c.Q(gt,En=>{vn(Dn=>{Dn.window.next(En),rt<=++Dn.seen&&_n(Dn)})},()=>dn(En=>En.complete()),En=>dn(Dn=>Dn.error(En)))),()=>{zt=null}})}function An(oe,z){return(0,m.e)((ee,ce)=>{const ke=[],We=rt=>{for(;0<ke.length;)ke.shift().error(rt);ce.error(rt)};(0,ut.Xf)(oe).subscribe(new c.Q(ce,rt=>{const _t=new b.x;ke.push(_t);const gt=new u.w0;let Gt;try{Gt=(0,ut.Xf)(z(rt))}catch(_n){return void We(_n)}ce.next(_t.asObservable()),gt.add(Gt.subscribe(new c.Q(ce,()=>{(0,Bn.P)(ke,_t),_t.complete(),gt.unsubscribe()},bt.Z,We)))},bt.Z)),ee.subscribe(new c.Q(ce,rt=>{const _t=ke.slice();for(const gt of _t)gt.next(rt)},()=>{for(;0<ke.length;)ke.shift().complete();ce.complete()},We,()=>{for(;0<ke.length;)ke.shift().unsubscribe()}))})}function Ur(oe){return(0,m.e)((z,ee)=>{let ce,ke;const We=_t=>{ce.error(_t),ee.error(_t)},rt=()=>{let _t;null==ke||ke.unsubscribe(),null==ce||ce.complete(),ce=new b.x,ee.next(ce.asObservable());try{_t=(0,ut.Xf)(oe())}catch(gt){return void We(gt)}_t.subscribe(ke=new c.Q(ee,rt,rt,We))};rt(),z.subscribe(new c.Q(ee,_t=>ce.next(_t),()=>{ce.complete(),ee.complete()},We,()=>{null==ke||ke.unsubscribe(),ce=null}))})}function Ir(...oe){const z=(0,Rt.jO)(oe);return(0,m.e)((ee,ce)=>{const ke=oe.length,We=new Array(ke);let rt=oe.map(()=>!1),_t=!1;for(let gt=0;gt<ke;gt++)(0,ut.Xf)(oe[gt]).subscribe(new c.Q(ce,zt=>{We[gt]=zt,!_t&&!rt[gt]&&(rt[gt]=!0,(_t=rt.every(Be.y))&&(rt=null))},bt.Z));ee.subscribe(new c.Q(ce,gt=>{if(_t){const zt=[gt,...We];ce.next(z?z(...zt):zt)}}))})}function Un(oe){return un(nn,oe)}function Zn(...oe){return function xn(...oe){return(0,m.e)((z,ee)=>{nn(z,...oe).subscribe(ee)})}(...oe)}},1135:(Ve,g,l)=>{"use strict";l.d(g,{X:()=>u});var i=l(6758);class u extends i.x{constructor(c){super(),this._value=c}get value(){return this.getValue()}_subscribe(c){const s=super._subscribe(c);return!s.closed&&c.next(this._value),s}getValue(){const{hasError:c,thrownError:s,_value:_}=this;if(c)throw s;return this._throwIfClosed(),_}next(c){super.next(this._value=c)}}},9751:(Ve,g,l)=>{"use strict";l.d(g,{y:()=>T});var i=l(930),u=l(6921),m=l(8822),c=l(9635),s=l(2416),_=l(576),D=l(2806);let T=(()=>{class M{constructor(k){k&&(this._subscribe=k)}lift(k){const $=new M;return $.source=this,$.operator=k,$}subscribe(k,$,pe){const U=function A(M){return M&&M instanceof i.Lv||function d(M){return M&&(0,_.m)(M.next)&&(0,_.m)(M.error)&&(0,_.m)(M.complete)}(M)&&(0,u.Nn)(M)}(k)?k:new i.Hp(k,$,pe);return(0,D.x)(()=>{const{operator:ae,source:Se}=this;U.add(ae?ae.call(U,Se):Se?this._subscribe(U):this._trySubscribe(U))}),U}_trySubscribe(k){try{return this._subscribe(k)}catch($){k.error($)}}forEach(k,$){return new($=S($))((pe,U)=>{const ae=new i.Hp({next:Se=>{try{k(Se)}catch(me){U(me),ae.unsubscribe()}},error:U,complete:pe});this.subscribe(ae)})}_subscribe(k){var $;return null===($=this.source)||void 0===$?void 0:$.subscribe(k)}[m.L](){return this}pipe(...k){return(0,c.U)(k)(this)}toPromise(k){return new(k=S(k))(($,pe)=>{let U;this.subscribe(ae=>U=ae,ae=>pe(ae),()=>$(U))})}}return M.create=b=>new M(b),M})();function S(M){var b;return null!==(b=null!=M?M:s.v.Promise)&&void 0!==b?b:Promise}},6646:(Ve,g,l)=>{"use strict";l.d(g,{b:()=>u});var i=l(6063);class u{constructor(c,s=u.now){this.schedulerActionCtor=c,this.now=s}schedule(c,s=0,_){return new this.schedulerActionCtor(this,c).schedule(_,s)}}u.now=i.l.now},6758:(Ve,g,l)=>{"use strict";l.d(g,{x:()=>_});var i=l(9751),u=l(6921),m=l(7448),c=l(8737),s=l(2806);let _=(()=>{class T extends i.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(d){const A=new D(this,this);return A.operator=d,A}_throwIfClosed(){if(this.closed)throw new m.N}next(d){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const A=this.observers.slice();for(const M of A)M.next(d)}})}error(d){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=d;const{observers:A}=this;for(;A.length;)A.shift().error(d)}})}complete(){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:d}=this;for(;d.length;)d.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var d;return(null===(d=this.observers)||void 0===d?void 0:d.length)>0}_trySubscribe(d){return this._throwIfClosed(),super._trySubscribe(d)}_subscribe(d){return this._throwIfClosed(),this._checkFinalizedStatuses(d),this._innerSubscribe(d)}_innerSubscribe(d){const{hasError:A,isStopped:M,observers:b}=this;return A||M?u.Lc:(b.push(d),new u.w0(()=>(0,c.P)(b,d)))}_checkFinalizedStatuses(d){const{hasError:A,thrownError:M,isStopped:b}=this;A?d.error(M):b&&d.complete()}asObservable(){const d=new i.y;return d.source=this,d}}return T.create=(S,d)=>new D(S,d),T})();class D extends _{constructor(S,d){super(),this.destination=S,this.source=d}next(S){var d,A;null===(A=null===(d=this.destination)||void 0===d?void 0:d.next)||void 0===A||A.call(d,S)}error(S){var d,A;null===(A=null===(d=this.destination)||void 0===d?void 0:d.error)||void 0===A||A.call(d,S)}complete(){var S,d;null===(d=null===(S=this.destination)||void 0===S?void 0:S.complete)||void 0===d||d.call(S)}_subscribe(S){var d,A;return null!==(A=null===(d=this.source)||void 0===d?void 0:d.subscribe(S))&&void 0!==A?A:u.Lc}}},930:(Ve,g,l)=>{"use strict";l.d(g,{Hp:()=>b,Lv:()=>M});var i=l(576),u=l(6921),m=l(2416),c=l(7849),s=l(5032);const _=S("C",void 0,void 0);function S(ae,Se,me){return{kind:ae,value:Se,error:me}}var d=l(3410),A=l(2806);class M extends u.w0{constructor(Se){super(),this.isStopped=!1,Se?(this.destination=Se,(0,u.Nn)(Se)&&Se.add(this)):this.destination=U}static create(Se,me,be){return new b(Se,me,be)}next(Se){this.isStopped?pe(function T(ae){return S("N",ae,void 0)}(Se),this):this._next(Se)}error(Se){this.isStopped?pe(function D(ae){return S("E",void 0,ae)}(Se),this):(this.isStopped=!0,this._error(Se))}complete(){this.isStopped?pe(_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Se){this.destination.next(Se)}_error(Se){try{this.destination.error(Se)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class b extends M{constructor(Se,me,be){let se;if(super(),(0,i.m)(Se))se=Se;else if(Se){let Me;({next:se,error:me,complete:be}=Se),this&&m.v.useDeprecatedNextContext?(Me=Object.create(Se),Me.unsubscribe=()=>this.unsubscribe()):Me=Se,se=null==se?void 0:se.bind(Me),me=null==me?void 0:me.bind(Me),be=null==be?void 0:be.bind(Me)}this.destination={next:se?k(se):s.Z,error:k(null!=me?me:$),complete:be?k(be):s.Z}}}function k(ae,Se){return(...me)=>{try{ae(...me)}catch(be){m.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(be):(0,c.h)(be)}}}function $(ae){throw ae}function pe(ae,Se){const{onStoppedNotification:me}=m.v;me&&d.z.setTimeout(()=>me(ae,Se))}const U={closed:!0,next:s.Z,error:$,complete:s.Z}},6921:(Ve,g,l)=>{"use strict";l.d(g,{w0:()=>c,Lc:()=>s,Nn:()=>_});var i=l(576),u=l(7896),m=l(8737);class c{constructor(S){this.initialTeardown=S,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let S;if(!this.closed){this.closed=!0;const{_parentage:d}=this;if(d)if(this._parentage=null,Array.isArray(d))for(const b of d)b.remove(this);else d.remove(this);const{initialTeardown:A}=this;if((0,i.m)(A))try{A()}catch(b){S=b instanceof u.B?b.errors:[b]}const{_teardowns:M}=this;if(M){this._teardowns=null;for(const b of M)try{D(b)}catch(k){S=null!=S?S:[],k instanceof u.B?S=[...S,...k.errors]:S.push(k)}}if(S)throw new u.B(S)}}add(S){var d;if(S&&S!==this)if(this.closed)D(S);else{if(S instanceof c){if(S.closed||S._hasParent(this))return;S._addParent(this)}(this._teardowns=null!==(d=this._teardowns)&&void 0!==d?d:[]).push(S)}}_hasParent(S){const{_parentage:d}=this;return d===S||Array.isArray(d)&&d.includes(S)}_addParent(S){const{_parentage:d}=this;this._parentage=Array.isArray(d)?(d.push(S),d):d?[d,S]:S}_removeParent(S){const{_parentage:d}=this;d===S?this._parentage=null:Array.isArray(d)&&(0,m.P)(d,S)}remove(S){const{_teardowns:d}=this;d&&(0,m.P)(d,S),S instanceof c&&S._removeParent(this)}}c.EMPTY=(()=>{const T=new c;return T.closed=!0,T})();const s=c.EMPTY;function _(T){return T instanceof c||T&&"closed"in T&&(0,i.m)(T.remove)&&(0,i.m)(T.add)&&(0,i.m)(T.unsubscribe)}function D(T){(0,i.m)(T)?T():T.unsubscribe()}},2416:(Ve,g,l)=>{"use strict";l.d(g,{v:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ve,g,l)=>{"use strict";l.d(g,{a:()=>d,l:()=>A});var i=l(9751),u=l(4742),m=l(188),c=l(4671),s=l(3268),_=l(3269),D=l(1810),T=l(5403),S=l(9672);function d(...b){const k=(0,_.yG)(b),$=(0,_.jO)(b),{args:pe,keys:U}=(0,u.D)(b);if(0===pe.length)return(0,m.D)([],k);const ae=new i.y(A(pe,k,U?Se=>(0,D.n)(U,Se):c.y));return $?ae.pipe((0,s.Z)($)):ae}function A(b,k,$=c.y){return pe=>{M(k,()=>{const{length:U}=b,ae=new Array(U);let Se=U,me=U;for(let be=0;be<U;be++)M(k,()=>{const se=(0,m.D)(b[be],k);let Me=!1;se.subscribe(new T.Q(pe,Le=>{ae[be]=Le,Me||(Me=!0,me--),me||pe.next($(ae.slice()))},()=>{--Se||pe.complete()}))},pe)},pe)}}function M(b,k,$){b?(0,S.f)($,b,k):k()}},1350:(Ve,g,l)=>{"use strict";l.d(g,{z:()=>c});var i=l(7886),u=l(3269),m=l(188);function c(...s){return(0,i.u)()((0,m.D)(s,(0,u.yG)(s)))}},9770:(Ve,g,l)=>{"use strict";l.d(g,{P:()=>m});var i=l(9751),u=l(8421);function m(c){return new i.y(s=>{(0,u.Xf)(c()).subscribe(s)})}},515:(Ve,g,l)=>{"use strict";l.d(g,{E:()=>u,c:()=>m});var i=l(9751);const u=new i.y(s=>s.complete());function m(s){return s?function c(s){return new i.y(_=>s.schedule(()=>_.complete()))}(s):u}},4128:(Ve,g,l)=>{"use strict";l.d(g,{D:()=>T});var i=l(9751),u=l(4742),m=l(8421),c=l(3269),s=l(5403),_=l(3268),D=l(1810);function T(...S){const d=(0,c.jO)(S),{args:A,keys:M}=(0,u.D)(S),b=new i.y(k=>{const{length:$}=A;if(!$)return void k.complete();const pe=new Array($);let U=$,ae=$;for(let Se=0;Se<$;Se++){let me=!1;(0,m.Xf)(A[Se]).subscribe(new s.Q(k,be=>{me||(me=!0,ae--),pe[Se]=be},()=>U--,void 0,()=>{(!U||!me)&&(ae||k.next(M?(0,D.n)(M,pe):pe),k.complete())}))}});return d?b.pipe((0,_.Z)(d)):b}},188:(Ve,g,l)=>{"use strict";l.d(g,{D:()=>m});var i=l(3762),u=l(8421);function m(c,s){return s?(0,i.x)(c,s):(0,u.Xf)(c)}},4968:(Ve,g,l)=>{"use strict";l.d(g,{R:()=>d});var i=l(8421),u=l(9751),m=l(6099),c=l(1144),s=l(576),_=l(3268);const D=["addListener","removeListener"],T=["addEventListener","removeEventListener"],S=["on","off"];function d($,pe,U,ae){if((0,s.m)(U)&&(ae=U,U=void 0),ae)return d($,pe,U).pipe((0,_.Z)(ae));const[Se,me]=function k($){return(0,s.m)($.addEventListener)&&(0,s.m)($.removeEventListener)}($)?T.map(be=>se=>$[be](pe,se,U)):function M($){return(0,s.m)($.addListener)&&(0,s.m)($.removeListener)}($)?D.map(A($,pe)):function b($){return(0,s.m)($.on)&&(0,s.m)($.off)}($)?S.map(A($,pe)):[];if(!Se&&(0,c.z)($))return(0,m.z)(be=>d(be,pe,U))((0,i.Xf)($));if(!Se)throw new TypeError("Invalid event target");return new u.y(be=>{const se=(...Me)=>be.next(1<Me.length?Me:Me[0]);return Se(se),()=>me(se)})}function A($,pe){return U=>ae=>$[U](pe,ae)}},8421:(Ve,g,l)=>{"use strict";l.d(g,{Xf:()=>b});var i=l(655),u=l(1144),m=l(8239),c=l(9751),s=l(3670),_=l(2206),D=l(4532),T=l(6495),S=l(3260),d=l(576),A=l(7849),M=l(8822);function b(be){if(be instanceof c.y)return be;if(null!=be){if((0,s.c)(be))return function k(be){return new c.y(se=>{const Me=be[M.L]();if((0,d.m)(Me.subscribe))return Me.subscribe(se);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(be);if((0,u.z)(be))return function $(be){return new c.y(se=>{for(let Me=0;Me<be.length&&!se.closed;Me++)se.next(be[Me]);se.complete()})}(be);if((0,m.t)(be))return function pe(be){return new c.y(se=>{be.then(Me=>{se.closed||(se.next(Me),se.complete())},Me=>se.error(Me)).then(null,A.h)})}(be);if((0,_.D)(be))return ae(be);if((0,T.T)(be))return function U(be){return new c.y(se=>{for(const Me of be)if(se.next(Me),se.closed)return;se.complete()})}(be);if((0,S.L)(be))return function Se(be){return ae((0,S.Q)(be))}(be)}throw(0,D.z)(be)}function ae(be){return new c.y(se=>{(function me(be,se){var Me,Le,qe,at;return(0,i.__awaiter)(this,void 0,void 0,function*(){try{for(Me=(0,i.__asyncValues)(be);!(Le=yield Me.next()).done;)if(se.next(Le.value),se.closed)return}catch(te){qe={error:te}}finally{try{Le&&!Le.done&&(at=Me.return)&&(yield at.call(Me))}finally{if(qe)throw qe.error}}se.complete()})})(be,se).catch(Me=>se.error(Me))})}},6451:(Ve,g,l)=>{"use strict";l.d(g,{T:()=>_});var i=l(8189),u=l(8421),m=l(515),c=l(3269),s=l(188);function _(...D){const T=(0,c.yG)(D),S=(0,c._6)(D,1/0),d=D;return d.length?1===d.length?(0,u.Xf)(d[0]):(0,i.J)(S)((0,s.D)(d,T)):m.E}},9646:(Ve,g,l)=>{"use strict";l.d(g,{of:()=>m});var i=l(3269),u=l(188);function m(...c){const s=(0,i.yG)(c);return(0,u.D)(c,s)}},2843:(Ve,g,l)=>{"use strict";l.d(g,{_:()=>m});var i=l(9751),u=l(576);function m(c,s){const _=(0,u.m)(c)?c:()=>c,D=T=>T.error(_());return new i.y(s?T=>s.schedule(D,0,T):D)}},2805:(Ve,g,l)=>{"use strict";l.d(g,{H:()=>s});var i=l(9751),u=l(4986),m=l(3532),c=l(1165);function s(_=0,D,T=u.P){let S=-1;return null!=D&&((0,m.K)(D)?T=D:S=D),new i.y(d=>{let A=(0,c.q)(_)?+_-T.now():_;A<0&&(A=0);let M=0;return T.schedule(function(){d.closed||(d.next(M++),0<=S?this.schedule(void 0,S):d.complete())},A)})}},5403:(Ve,g,l)=>{"use strict";l.d(g,{Q:()=>u});var i=l(930);class u extends i.Lv{constructor(c,s,_,D,T){super(c),this.onFinalize=T,this._next=s?function(S){try{s(S)}catch(d){c.error(d)}}:super._next,this._error=D?function(S){try{D(S)}catch(d){c.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=_?function(){try{_()}catch(S){c.error(S)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var c;const{closed:s}=this;super.unsubscribe(),!s&&(null===(c=this.onFinalize)||void 0===c||c.call(this))}}},5615:(Ve,g,l)=>{"use strict";l.d(g,{U:()=>c});var i=l(4482),u=l(8421),m=l(5403);function c(s){return(0,i.e)((_,D)=>{let T=!1,S=null,d=null,A=!1;const M=()=>{if(null==d||d.unsubscribe(),d=null,T){T=!1;const k=S;S=null,D.next(k)}A&&D.complete()},b=()=>{d=null,A&&D.complete()};_.subscribe(new m.Q(D,k=>{T=!0,S=k,d||(0,u.Xf)(s(k)).subscribe(d=new m.Q(D,M,b))},()=>{A=!0,(!T||!d||d.closed)&&D.complete()}))})}},453:(Ve,g,l)=>{"use strict";l.d(g,{e:()=>c});var i=l(4986),u=l(5615),m=l(2805);function c(s,_=i.z){return(0,u.U)(()=>(0,m.H)(s,_))}},262:(Ve,g,l)=>{"use strict";l.d(g,{K:()=>c});var i=l(8421),u=l(5403),m=l(4482);function c(s){return(0,m.e)((_,D)=>{let d,T=null,S=!1;T=_.subscribe(new u.Q(D,void 0,void 0,A=>{d=(0,i.Xf)(s(A,c(s)(_))),T?(T.unsubscribe(),T=null,d.subscribe(D)):S=!0})),S&&(T.unsubscribe(),T=null,d.subscribe(D))})}},7886:(Ve,g,l)=>{"use strict";l.d(g,{u:()=>u});var i=l(8189);function u(){return(0,i.J)(1)}},4351:(Ve,g,l)=>{"use strict";l.d(g,{b:()=>m});var i=l(6099),u=l(576);function m(c,s){return(0,u.m)(s)?(0,i.z)(c,s,1):(0,i.z)(c,1)}},8372:(Ve,g,l)=>{"use strict";l.d(g,{b:()=>c});var i=l(4986),u=l(4482),m=l(5403);function c(s,_=i.z){return(0,u.e)((D,T)=>{let S=null,d=null,A=null;const M=()=>{if(S){S.unsubscribe(),S=null;const k=d;d=null,T.next(k)}};function b(){const k=A+s,$=_.now();if($<k)return S=this.schedule(void 0,k-$),void T.add(S);M()}D.subscribe(new m.Q(T,k=>{d=k,A=_.now(),S||(S=_.schedule(b,s),T.add(S))},()=>{M(),T.complete()},void 0,()=>{d=S=null}))})}},4326:(Ve,g,l)=>{"use strict";l.d(g,{g:()=>c});var i=l(4986),u=l(1260),m=l(2805);function c(s,_=i.z){const D=(0,m.H)(s,_);return(0,u.j)(()=>D)}},1260:(Ve,g,l)=>{"use strict";l.d(g,{j:()=>_});var i=l(1350),u=l(5698),m=l(8502),c=l(9718),s=l(6099);function _(D,T){return T?S=>(0,i.z)(T.pipe((0,u.q)(1),(0,m.l)()),S.pipe(_(D))):(0,s.z)((S,d)=>D(S,d).pipe((0,u.q)(1),(0,c.h)(S)))}},1884:(Ve,g,l)=>{"use strict";l.d(g,{x:()=>c});var i=l(4671),u=l(4482),m=l(5403);function c(_,D=i.y){return _=null!=_?_:s,(0,u.e)((T,S)=>{let d,A=!0;T.subscribe(new m.Q(S,M=>{const b=D(M);(A||!_(d,b))&&(A=!1,d=b,S.next(M))}))})}function s(_,D){return _===D}},9300:(Ve,g,l)=>{"use strict";l.d(g,{h:()=>m});var i=l(4482),u=l(5403);function m(c,s){return(0,i.e)((_,D)=>{let T=0;_.subscribe(new u.Q(D,S=>c.call(s,S,T++)&&D.next(S)))})}},8746:(Ve,g,l)=>{"use strict";l.d(g,{x:()=>u});var i=l(4482);function u(m){return(0,i.e)((c,s)=>{try{c.subscribe(s)}finally{s.add(m)}})}},8502:(Ve,g,l)=>{"use strict";l.d(g,{l:()=>c});var i=l(4482),u=l(5403),m=l(5032);function c(){return(0,i.e)((s,_)=>{s.subscribe(new u.Q(_,m.Z))})}},4004:(Ve,g,l)=>{"use strict";l.d(g,{U:()=>m});var i=l(4482),u=l(5403);function m(c,s){return(0,i.e)((_,D)=>{let T=0;_.subscribe(new u.Q(D,S=>{D.next(c.call(s,S,T++))}))})}},9718:(Ve,g,l)=>{"use strict";l.d(g,{h:()=>u});var i=l(4004);function u(m){return(0,i.U)(()=>m)}},8189:(Ve,g,l)=>{"use strict";l.d(g,{J:()=>m});var i=l(6099),u=l(4671);function m(c=1/0){return(0,i.z)(u.y,c)}},2733:(Ve,g,l)=>{"use strict";l.d(g,{p:()=>c});var i=l(8421),u=l(9672),m=l(5403);function c(s,_,D,T,S,d,A,M){const b=[];let k=0,$=0,pe=!1;const U=()=>{pe&&!b.length&&!k&&_.complete()},ae=me=>k<T?Se(me):b.push(me),Se=me=>{d&&_.next(me),k++;let be=!1;(0,i.Xf)(D(me,$++)).subscribe(new m.Q(_,se=>{null==S||S(se),d?ae(se):_.next(se)},()=>{be=!0},void 0,()=>{if(be)try{for(k--;b.length&&k<T;){const se=b.shift();A?(0,u.f)(_,A,()=>Se(se)):Se(se)}U()}catch(se){_.error(se)}}))};return s.subscribe(new m.Q(_,ae,()=>{pe=!0,U()})),()=>{null==M||M()}}},6099:(Ve,g,l)=>{"use strict";l.d(g,{z:()=>_});var i=l(4004),u=l(8421),m=l(4482),c=l(2733),s=l(576);function _(D,T,S=1/0){return(0,s.m)(T)?_((d,A)=>(0,i.U)((M,b)=>T(d,M,A,b))((0,u.Xf)(D(d,A))),S):("number"==typeof T&&(S=T),(0,m.e)((d,A)=>(0,c.p)(d,A,D,S)))}},5363:(Ve,g,l)=>{"use strict";l.d(g,{Q:()=>c});var i=l(9672),u=l(4482),m=l(5403);function c(s,_=0){return(0,u.e)((D,T)=>{D.subscribe(new m.Q(T,S=>(0,i.f)(T,s,()=>T.next(S),_),()=>(0,i.f)(T,s,()=>T.complete(),_),S=>(0,i.f)(T,s,()=>T.error(S),_)))})}},3099:(Ve,g,l)=>{"use strict";l.d(g,{B:()=>_});var i=l(188),u=l(5698),m=l(6758),c=l(930),s=l(4482);function _(T={}){const{connector:S=(()=>new m.x),resetOnError:d=!0,resetOnComplete:A=!0,resetOnRefCountZero:M=!0}=T;return b=>{let k=null,$=null,pe=null,U=0,ae=!1,Se=!1;const me=()=>{null==$||$.unsubscribe(),$=null},be=()=>{me(),k=pe=null,ae=Se=!1},se=()=>{const Me=k;be(),null==Me||Me.unsubscribe()};return(0,s.e)((Me,Le)=>{U++,!Se&&!ae&&me();const qe=pe=null!=pe?pe:S();Le.add(()=>{U--,0===U&&!Se&&!ae&&($=D(se,M))}),qe.subscribe(Le),k||(k=new c.Hp({next:at=>qe.next(at),error:at=>{Se=!0,me(),$=D(be,d,at),qe.error(at)},complete:()=>{ae=!0,me(),$=D(be,A),qe.complete()}}),(0,i.D)(Me).subscribe(k))})(b)}}function D(T,S,...d){return!0===S?(T(),null):!1===S?null:S(...d).pipe((0,u.q)(1)).subscribe(()=>T())}},5684:(Ve,g,l)=>{"use strict";l.d(g,{T:()=>u});var i=l(9300);function u(m){return(0,i.h)((c,s)=>m<=s)}},8675:(Ve,g,l)=>{"use strict";l.d(g,{O:()=>c});var i=l(1350),u=l(3269),m=l(4482);function c(...s){const _=(0,u.yG)(s);return(0,m.e)((D,T)=>{(_?(0,i.z)(s,D,_):(0,i.z)(s,D)).subscribe(T)})}},9468:(Ve,g,l)=>{"use strict";l.d(g,{R:()=>u});var i=l(4482);function u(m,c=0){return(0,i.e)((s,_)=>{_.add(m.schedule(()=>s.subscribe(_),c))})}},3900:(Ve,g,l)=>{"use strict";l.d(g,{w:()=>c});var i=l(8421),u=l(4482),m=l(5403);function c(s,_){return(0,u.e)((D,T)=>{let S=null,d=0,A=!1;const M=()=>A&&!S&&T.complete();D.subscribe(new m.Q(T,b=>{null==S||S.unsubscribe();let k=0;const $=d++;(0,i.Xf)(s(b,$)).subscribe(S=new m.Q(T,pe=>T.next(_?_(b,pe,$,k++):pe),()=>{S=null,M()}))},()=>{A=!0,M()}))})}},5698:(Ve,g,l)=>{"use strict";l.d(g,{q:()=>c});var i=l(515),u=l(4482),m=l(5403);function c(s){return s<=0?()=>i.E:(0,u.e)((_,D)=>{let T=0;_.subscribe(new m.Q(D,S=>{++T<=s&&(D.next(S),s<=T&&D.complete())}))})}},2722:(Ve,g,l)=>{"use strict";l.d(g,{R:()=>s});var i=l(4482),u=l(5403),m=l(8421),c=l(5032);function s(_){return(0,i.e)((D,T)=>{(0,m.Xf)(_).subscribe(new u.Q(T,()=>T.complete(),c.Z)),!T.closed&&D.subscribe(T)})}},8505:(Ve,g,l)=>{"use strict";l.d(g,{b:()=>s});var i=l(576),u=l(4482),m=l(5403),c=l(4671);function s(_,D,T){const S=(0,i.m)(_)||D||T?{next:_,error:D,complete:T}:_;return S?(0,u.e)((d,A)=>{var M;null===(M=S.subscribe)||void 0===M||M.call(S);let b=!0;d.subscribe(new m.Q(A,k=>{var $;null===($=S.next)||void 0===$||$.call(S,k),A.next(k)},()=>{var k;b=!1,null===(k=S.complete)||void 0===k||k.call(S),A.complete()},k=>{var $;b=!1,null===($=S.error)||void 0===$||$.call(S,k),A.error(k)},()=>{var k,$;b&&(null===(k=S.unsubscribe)||void 0===k||k.call(S)),null===($=S.finalize)||void 0===$||$.call(S)}))}):c.y}},6340:(Ve,g,l)=>{"use strict";l.d(g,{Q:()=>s});var i=l(9751),u=l(2202),m=l(576),c=l(9672);function s(_,D){return new i.y(T=>{let S;return(0,c.f)(T,D,()=>{S=_[u.h](),(0,c.f)(T,D,()=>{let d,A;try{({value:d,done:A}=S.next())}catch(M){return void T.error(M)}A?T.complete():T.next(d)},0,!0)}),()=>(0,m.m)(null==S?void 0:S.return)&&S.return()})}},3762:(Ve,g,l)=>{"use strict";l.d(g,{x:()=>Se});var i=l(8421),u=l(5363),m=l(9468),_=l(9751),T=l(6340),S=l(9672);function d(me,be){if(!me)throw new Error("Iterable cannot be null");return new _.y(se=>{(0,S.f)(se,be,()=>{const Me=me[Symbol.asyncIterator]();(0,S.f)(se,be,()=>{Me.next().then(Le=>{Le.done?se.complete():se.next(Le.value)})},0,!0)})})}var A=l(3670),M=l(8239),b=l(1144),k=l(6495),$=l(2206),pe=l(4532),U=l(3260);function Se(me,be){if(null!=me){if((0,A.c)(me))return function c(me,be){return(0,i.Xf)(me).pipe((0,m.R)(be),(0,u.Q)(be))}(me,be);if((0,b.z)(me))return function D(me,be){return new _.y(se=>{let Me=0;return be.schedule(function(){Me===me.length?se.complete():(se.next(me[Me++]),se.closed||this.schedule())})})}(me,be);if((0,M.t)(me))return function s(me,be){return(0,i.Xf)(me).pipe((0,m.R)(be),(0,u.Q)(be))}(me,be);if((0,$.D)(me))return d(me,be);if((0,k.T)(me))return(0,T.Q)(me,be);if((0,U.L)(me))return function ae(me,be){return d((0,U.Q)(me),be)}(me,be)}throw(0,pe.z)(me)}},4408:(Ve,g,l)=>{"use strict";l.d(g,{o:()=>s});var i=l(6921);class u extends i.w0{constructor(D,T){super()}schedule(D,T=0){return this}}const m={setInterval(..._){const{delegate:D}=m;return((null==D?void 0:D.setInterval)||setInterval)(..._)},clearInterval(_){const{delegate:D}=m;return((null==D?void 0:D.clearInterval)||clearInterval)(_)},delegate:void 0};var c=l(8737);class s extends u{constructor(D,T){super(D,T),this.scheduler=D,this.work=T,this.pending=!1}schedule(D,T=0){if(this.closed)return this;this.state=D;const S=this.id,d=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(d,S,T)),this.pending=!0,this.delay=T,this.id=this.id||this.requestAsyncId(d,this.id,T),this}requestAsyncId(D,T,S=0){return m.setInterval(D.flush.bind(D,this),S)}recycleAsyncId(D,T,S=0){if(null!=S&&this.delay===S&&!1===this.pending)return T;m.clearInterval(T)}execute(D,T){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const S=this._execute(D,T);if(S)return S;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(D,T){let d,S=!1;try{this.work(D)}catch(A){S=!0,d=A||new Error("Scheduled action threw falsy error")}if(S)return this.unsubscribe(),d}unsubscribe(){if(!this.closed){const{id:D,scheduler:T}=this,{actions:S}=T;this.work=this.state=this.scheduler=null,this.pending=!1,(0,c.P)(S,this),null!=D&&(this.id=this.recycleAsyncId(T,D,null)),this.delay=null,super.unsubscribe()}}}},8950:(Ve,g,l)=>{"use strict";l.d(g,{v:()=>u});var i=l(6646);class u extends i.b{constructor(c,s=i.b.now){super(c,s),this.actions=[],this._active=!1,this._scheduled=void 0}flush(c){const{actions:s}=this;if(this._active)return void s.push(c);let _;this._active=!0;do{if(_=c.execute(c.state,c.delay))break}while(c=s.shift());if(this._active=!1,_){for(;c=s.shift();)c.unsubscribe();throw _}}}},29:(Ve,g,l)=>{"use strict";l.d(g,{r:()=>D,Z:()=>_});var i=l(4408),u=l(3399),c=l(8950);const _=new class s extends c.v{flush(S){this._active=!0;const d=this._scheduled;this._scheduled=void 0;const{actions:A}=this;let M;S=S||A.shift();do{if(M=S.execute(S.state,S.delay))break}while((S=A[0])&&S.id===d&&A.shift());if(this._active=!1,M){for(;(S=A[0])&&S.id===d&&A.shift();)S.unsubscribe();throw M}}}(class m extends i.o{constructor(S,d){super(S,d),this.scheduler=S,this.work=d}requestAsyncId(S,d,A=0){return null!==A&&A>0?super.requestAsyncId(S,d,A):(S.actions.push(this),S._scheduled||(S._scheduled=u.l.requestAnimationFrame(()=>S.flush(void 0))))}recycleAsyncId(S,d,A=0){if(null!=A&&A>0||null==A&&this.delay>0)return super.recycleAsyncId(S,d,A);S.actions.some(M=>M.id===d)||(u.l.cancelAnimationFrame(d),S._scheduled=void 0)}}),D=_},3399:(Ve,g,l)=>{"use strict";l.d(g,{l:()=>u});var i=l(6921);const u={schedule(m){let c=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:_}=u;_&&(c=_.requestAnimationFrame,s=_.cancelAnimationFrame);const D=c(T=>{s=void 0,m(T)});return new i.w0(()=>null==s?void 0:s(D))},requestAnimationFrame(...m){const{delegate:c}=u;return((null==c?void 0:c.requestAnimationFrame)||requestAnimationFrame)(...m)},cancelAnimationFrame(...m){const{delegate:c}=u;return((null==c?void 0:c.cancelAnimationFrame)||cancelAnimationFrame)(...m)},delegate:void 0}},3101:(Ve,g,l)=>{"use strict";l.d(g,{e:()=>$,E:()=>k});var i=l(4408);let m,u=1;const c={};function s(pe){return pe in c&&(delete c[pe],!0)}const _={setImmediate(pe){const U=u++;return c[U]=!0,m||(m=Promise.resolve()),m.then(()=>s(U)&&pe()),U},clearImmediate(pe){s(pe)}},{setImmediate:T,clearImmediate:S}=_,d={setImmediate(...pe){const{delegate:U}=d;return((null==U?void 0:U.setImmediate)||T)(...pe)},clearImmediate(pe){const{delegate:U}=d;return((null==U?void 0:U.clearImmediate)||S)(pe)},delegate:void 0};var M=l(8950);const k=new class b extends M.v{flush(U){this._active=!0;const ae=this._scheduled;this._scheduled=void 0;const{actions:Se}=this;let me;U=U||Se.shift();do{if(me=U.execute(U.state,U.delay))break}while((U=Se[0])&&U.id===ae&&Se.shift());if(this._active=!1,me){for(;(U=Se[0])&&U.id===ae&&Se.shift();)U.unsubscribe();throw me}}}(class A extends i.o{constructor(U,ae){super(U,ae),this.scheduler=U,this.work=ae}requestAsyncId(U,ae,Se=0){return null!==Se&&Se>0?super.requestAsyncId(U,ae,Se):(U.actions.push(this),U._scheduled||(U._scheduled=d.setImmediate(U.flush.bind(U,void 0))))}recycleAsyncId(U,ae,Se=0){if(null!=Se&&Se>0||null==Se&&this.delay>0)return super.recycleAsyncId(U,ae,Se);U.actions.some(me=>me.id===ae)||(d.clearImmediate(ae),U._scheduled=void 0)}}),$=k},4986:(Ve,g,l)=>{"use strict";l.d(g,{z:()=>m,P:()=>c});var i=l(4408);const m=new(l(8950).v)(i.o),c=m},6063:(Ve,g,l)=>{"use strict";l.d(g,{l:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3410:(Ve,g,l)=>{"use strict";l.d(g,{z:()=>i});const i={setTimeout(...u){const{delegate:m}=i;return((null==m?void 0:m.setTimeout)||setTimeout)(...u)},clearTimeout(u){const{delegate:m}=i;return((null==m?void 0:m.clearTimeout)||clearTimeout)(u)},delegate:void 0}},2202:(Ve,g,l)=>{"use strict";l.d(g,{h:()=>u});const u=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Ve,g,l)=>{"use strict";l.d(g,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7448:(Ve,g,l)=>{"use strict";l.d(g,{N:()=>u});const u=(0,l(3888).d)(m=>function(){m(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})},7896:(Ve,g,l)=>{"use strict";l.d(g,{B:()=>u});const u=(0,l(3888).d)(m=>function(s){m(this),this.message=s?`${s.length} errors occurred during unsubscription:\n${s.map((_,D)=>`${D+1}) ${_.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=s})},3269:(Ve,g,l)=>{"use strict";l.d(g,{jO:()=>c,yG:()=>s,_6:()=>_});var i=l(576),u=l(3532);function m(D){return D[D.length-1]}function c(D){return(0,i.m)(m(D))?D.pop():void 0}function s(D){return(0,u.K)(m(D))?D.pop():void 0}function _(D,T){return"number"==typeof m(D)?D.pop():T}},4742:(Ve,g,l)=>{"use strict";l.d(g,{D:()=>s});const{isArray:i}=Array,{getPrototypeOf:u,prototype:m,keys:c}=Object;function s(D){if(1===D.length){const T=D[0];if(i(T))return{args:T,keys:null};if(function _(D){return D&&"object"==typeof D&&u(D)===m}(T)){const S=c(T);return{args:S.map(d=>T[d]),keys:S}}}return{args:D,keys:null}}},8737:(Ve,g,l)=>{"use strict";function i(u,m){if(u){const c=u.indexOf(m);0<=c&&u.splice(c,1)}}l.d(g,{P:()=>i})},3888:(Ve,g,l)=>{"use strict";function i(u){const c=u(s=>{Error.call(s),s.stack=(new Error).stack});return c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c}l.d(g,{d:()=>i})},1810:(Ve,g,l)=>{"use strict";function i(u,m){return u.reduce((c,s,_)=>(c[s]=m[_],c),{})}l.d(g,{n:()=>i})},2806:(Ve,g,l)=>{"use strict";l.d(g,{x:()=>m,O:()=>c});var i=l(2416);let u=null;function m(s){if(i.v.useDeprecatedSynchronousErrorHandling){const _=!u;if(_&&(u={errorThrown:!1,error:null}),s(),_){const{errorThrown:D,error:T}=u;if(u=null,D)throw T}}else s()}function c(s){i.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=s)}},9672:(Ve,g,l)=>{"use strict";function i(u,m,c,s=0,_=!1){const D=m.schedule(function(){c(),_?u.add(this.schedule(null,s)):this.unsubscribe()},s);if(u.add(D),!_)return D}l.d(g,{f:()=>i})},4671:(Ve,g,l)=>{"use strict";function i(u){return u}l.d(g,{y:()=>i})},1144:(Ve,g,l)=>{"use strict";l.d(g,{z:()=>i});const i=u=>u&&"number"==typeof u.length&&"function"!=typeof u},2206:(Ve,g,l)=>{"use strict";l.d(g,{D:()=>u});var i=l(576);function u(m){return Symbol.asyncIterator&&(0,i.m)(null==m?void 0:m[Symbol.asyncIterator])}},1165:(Ve,g,l)=>{"use strict";function i(u){return u instanceof Date&&!isNaN(u)}l.d(g,{q:()=>i})},576:(Ve,g,l)=>{"use strict";function i(u){return"function"==typeof u}l.d(g,{m:()=>i})},3670:(Ve,g,l)=>{"use strict";l.d(g,{c:()=>m});var i=l(8822),u=l(576);function m(c){return(0,u.m)(c[i.L])}},6495:(Ve,g,l)=>{"use strict";l.d(g,{T:()=>m});var i=l(2202),u=l(576);function m(c){return(0,u.m)(null==c?void 0:c[i.h])}},5191:(Ve,g,l)=>{"use strict";l.d(g,{b:()=>m});var i=l(9751),u=l(576);function m(c){return!!c&&(c instanceof i.y||(0,u.m)(c.lift)&&(0,u.m)(c.subscribe))}},8239:(Ve,g,l)=>{"use strict";l.d(g,{t:()=>u});var i=l(576);function u(m){return(0,i.m)(null==m?void 0:m.then)}},3260:(Ve,g,l)=>{"use strict";l.d(g,{Q:()=>m,L:()=>c});var i=l(655),u=l(576);function m(s){return(0,i.__asyncGenerator)(this,arguments,function*(){const D=s.getReader();try{for(;;){const{value:T,done:S}=yield(0,i.__await)(D.read());if(S)return yield(0,i.__await)(void 0);yield yield(0,i.__await)(T)}}finally{D.releaseLock()}})}function c(s){return(0,u.m)(null==s?void 0:s.getReader)}},3532:(Ve,g,l)=>{"use strict";l.d(g,{K:()=>u});var i=l(576);function u(m){return m&&(0,i.m)(m.schedule)}},4482:(Ve,g,l)=>{"use strict";l.d(g,{A:()=>u,e:()=>m});var i=l(576);function u(c){return(0,i.m)(null==c?void 0:c.lift)}function m(c){return s=>{if(u(s))return s.lift(function(_){try{return c(_,this)}catch(D){this.error(D)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ve,g,l)=>{"use strict";l.d(g,{Z:()=>c});var i=l(4004);const{isArray:u}=Array;function c(s){return(0,i.U)(_=>function m(s,_){return u(_)?s(..._):s(_)}(s,_))}},5032:(Ve,g,l)=>{"use strict";function i(){}l.d(g,{Z:()=>i})},9635:(Ve,g,l)=>{"use strict";l.d(g,{z:()=>u,U:()=>m});var i=l(4671);function u(...c){return m(c)}function m(c){return 0===c.length?i.y:1===c.length?c[0]:function(_){return c.reduce((D,T)=>T(D),_)}}},7849:(Ve,g,l)=>{"use strict";l.d(g,{h:()=>m});var i=l(2416),u=l(3410);function m(c){u.z.setTimeout(()=>{const{onUnhandledError:s}=i.v;if(!s)throw c;s(c)})}},4532:(Ve,g,l)=>{"use strict";function i(u){return new TypeError(`You provided ${null!==u&&"object"==typeof u?"an invalid object":`'${u}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(g,{z:()=>i})},3642:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateRxMethod=g.generateMethodSignature=g.generateErrorClass=g.generateClass=g.generateErrorType=g.generateEnum=g.generateJsonRepresentation=g.mangle=g.generateSwiftTypeName=void 0;const i=l(6676);function u(b){switch(b.constructor){case i.IntPrimitiveType:return"Int";case i.UIntPrimitiveType:return"UInt";case i.MoneyPrimitiveType:return"Int64";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"Decimal";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Date";case i.BoolPrimitiveType:return"Bool";case i.BytesPrimitiveType:return"Data";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.UrlPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Void";case i.JsonPrimitiveType:return"AnyCodable";case i.OptionalType:return`${u(b.base)}?`;case i.ArrayType:return`[${u(b.base)}]`;case i.StructType:case i.EnumType:return`API.${b.name}`;case i.TypeReference:return u(b.type);default:throw new Error(`BUG: generateSwiftTypeName with ${b.constructor.name}`)}}function m(b){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(b)?`_${b}`:b}function c(b,k){switch(b.constructor){case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:case i.BoolPrimitiveType:return`${k}`;case i.OptionalType:return`${k} == nil ? nil : ${c(b.base,`${k}!`)}`;case i.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${k})`;case i.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${k})`;case i.EnumType:return`${k}.rawValue`;case i.TypeReference:return`${c(b.type,`${k}`)}`;case i.StructType:return`${k}.toJSON()`;case i.ArrayType:return`${k}.map({ return ${c(b.base,"$0")} })`;case i.JsonPrimitiveType:return`try? ${k}.toJson()`;case i.VoidPrimitiveType:return"nil";case i.BytesPrimitiveType:return`${k}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${b.constructor.name}`)}}g.generateSwiftTypeName=u,g.mangle=m,g.generateJsonRepresentation=c,g.generateEnum=function s(b){let k=` public enum ${b.name}: String, Codable {\n`;return k+=b.values.map($=>` case ${m($.value)} = "${$.value}"`).join("\n"),k+="\n }\n",k},g.generateErrorType=function _(b){let k=" public enum ErrorType: String, Codable {\n";return k+=b.map($=>` case ${m($)} = "${$}"`).join("\n"),k+="\n }\n",k},g.generateClass=function S(b){return` public struct ${b.name}: Codable {\n${b.fields.map(k=>` var ${m(k.name)}: ${u(k.type)}`).join("\n")}\n\n${function D(b){let k=" init(";return k+=b.fields.map($=>`${m($.name)}: ${u($.type)}`).join(", "),k+=") {\n",k+=b.fields.map($=>` self.${m($.name)} = ${m($.name)}`).join("\n"),k+="\n }\n",k}(b)}\n${function T(b){let k=" func toJSON() -> [String: Any] {\n";return k+=" var json = [String: Any]()\n",k+=b.fields.map($=>` json["${m($.name)}"] = ${c($.type,$.name)}`).join("\n"),k+="\n return json",k+="\n }\n",k}(b)}\n }\n`},g.generateErrorClass=function d(){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"},g.generateMethodSignature=function A(b){const k=b.args.map($=>`${m($.name)}: ${u($.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${b.returnType instanceof i.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${u(b.returnType)}>`}) -> Void)?`]);return` func ${m(b.name)}(${k.join(", ")})`},g.generateRxMethod=function M(b){const k=b.args.map(pe=>`${m(pe.name)}: ${u(pe.type)}`).concat(["timeoutSeconds: Double? = nil"]);let $=` static func ${m(b.name)}(${k.join(", ")}) -> ${b.returnType instanceof i.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${u(b.returnType)}>>`} {\n`;return $+=" return Observable.create { observer -> Disposable in\n",$+=` API.calls.${m(b.name)}(${b.args.map(pe=>`${m(pe.name)}: ${m(pe.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,$+=" observer.on(.next(result))\n",$+=" observer.on(.completed)\n",$+=" }\n",$+=" return Disposables.create()\n",$+=" }\n",$+=" }\n",$}},7295:function(Ve,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(7636),g)},7636:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateSwiftClientSource=void 0;const i=l(6676),u=l(3642);g.generateSwiftClientSource=function m(c,s){let _="import Foundation\nimport SdkgenRuntime\n";_+=s?"import RxSwift\nimport RxCocoa\n\n":"\n",_+="protocol APICallsProtocol {\n",_+=c.operations.filter(S=>S.annotations.every(d=>!(d instanceof i.HiddenAnnotation))).map(S=>`${(0,u.generateMethodSignature)(S)}`).join("\n"),_+="\n}\n\n",_+='class API: SdkgenResponse {\n\n static var calls: APICallsProtocol = 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 S of c.enumTypes)_+=(0,u.generateEnum)(S),_+="\n";for(const S of c.structTypes)_+=(0,u.generateClass)(S),_+="\n";const D=[],T=new i.ErrorNode("Connection",new i.VoidPrimitiveType);D.push(T.name);for(const S of c.errors)D.push(S.name);return D.length>0&&(_+=(0,u.generateErrorType)(D),_+="\n"),_+=(0,u.generateErrorClass)(),_+="\n",_+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",_+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",_+=c.operations.filter(S=>S.annotations.every(d=>!(d instanceof i.HiddenAnnotation))).map(S=>{let d="";return d+=` ${(0,u.generateMethodSignature)(S)} {\n`,S.args.length>0?(d+=" var jsonArgs = [String: Any]()\n",d+=S.args.map(A=>` jsonArgs["${(0,u.mangle)(A.name)}"] = ${(0,u.generateJsonRepresentation)(A.type,(0,u.mangle)(A.name))}`).join("\n")):d+=" let jsonArgs = [String: Any]()",d+="\n\n",d+=` request("${S.name}", jsonArgs, timeoutSeconds, completion: { (value: ${S.returnType instanceof i.VoidPrimitiveType?"API.NoReply":(0,u.generateSwiftTypeName)(S.returnType)}) in\n`,d+=" callback?(API.Result.success(value))\n",d+=" }, onError: { error in\n",d+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",d+=" })",d+="\n }\n",d}).join("\n"),_+=" }\n",_+="}\n",s&&(_+="\n",_+="extension API: ReactiveCompatible {}\n\n",_+="extension Reactive where Base: API {\n",_+=c.operations.filter(S=>S.annotations.every(d=>!(d instanceof i.HiddenAnnotation))).map(S=>`${(0,u.generateRxMethod)(S)}`).join("\n"),_+="}\n"),_}},8173:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateBrowserClientSource=void 0;const i=l(6676),u=l(5596);g.generateBrowserClientSource=function m(c){let s="";s+=`/* eslint-disable */\nimport { SdkgenError${c.errors.some(D=>!(D.dataType instanceof i.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const D of c.enumTypes)s+=(0,u.generateTypescriptEnum)(D),s+="\n";for(const D of c.structTypes)s+=(0,u.generateTypescriptInterface)(D,!0),s+="\n";for(const D of c.errors)s+=(0,u.generateTypescriptErrorClass)(D,!0),s+="\n";return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${c.operations.filter(D=>D.annotations.every(T=>!(T instanceof i.HiddenAnnotation))).map(D=>`\n ${D.name}(args${0===D.args.length?"?":""}: {${D.args.map(T=>`${T.name}${T.type.name.endsWith("?")?"?":""}: ${(0,u.generateTypescriptTypeName)(T.type,!0)}`).join(", ")}}): Promise<${(0,u.generateTypescriptTypeName)(D.returnType,!0)}> { return this.makeRequest("${D.name}", args || {}); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${c.errors.map(D=>` ${D.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},5596:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.clearForLogging=g.generateTypescriptErrorClass=g.generateTypescriptEnum=g.generateTypescriptInterface=g.generateTypescriptTypeName=void 0;const i=l(6676);function u(D,T){switch(D.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:return"number";case i.BigIntPrimitiveType:return"bigint";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Date";case i.BoolPrimitiveType:return"boolean";case i.BytesPrimitiveType:return T?"ArrayBuffer":"Buffer";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"any";case i.OptionalType:return`${u(D.base,T)} | null`;case i.ArrayType:{const{base:S}=D,d=u(S,T);return S instanceof i.OptionalType?`(${d})[]`:`${d}[]`}case i.StructType:case i.EnumType:return D.name;case i.TypeReference:return u(D.type,T);default:throw new Error(`BUG: generateTypescriptTypeName with ${D.constructor.name}`)}}g.generateTypescriptTypeName=u,g.generateTypescriptInterface=function m(D,T){return`export interface ${D.name} {\n${D.fields.map(S=>` ${S.name}: ${u(S.type,T)}`).join("\n")}\n}\n`},g.generateTypescriptEnum=function c(D){return D.hasStructValues?`export type ${D.name} = ${D.values.map(T=>T.struct?`({tag: "${T.value}"} & ${T.struct.name})`:`{tag: "${T.value}"}`).join(" | ")};\n`:`export type ${D.name} = ${D.values.map(T=>`"${T.value}"`).join(" | ")};\n`},g.generateTypescriptErrorClass=function s(D,T){return`export class ${D.name} extends ${D.dataType instanceof i.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${u(D.dataType,T)}>`} {}\n`},g.clearForLogging=function _(D,T){switch(T.constructor){case i.TypeReference:return _(D,T.type);case i.OptionalType:{const S=_(D,T.base);return S?`if (${D} !== null && ${D} !== undefined) { ${S} }`:""}case i.ArrayType:{const S=_("el",T.base);return S?`for (const el of ${D}) { ${S} }`:""}case i.StructType:{const S=[];for(const d of T.fields)if(d.secret)S.push(`${D}.${d.name} = "<secret>";`);else{const A=_(`${D}.${d.name}`,d.type);A&&S.push(A)}return S.join(" ")}default:return""}}},2911:function(Ve,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(8173),g),u(l(7538),g),u(l(1727),g),u(l(615),g)},7538:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateTypescriptInterfaces=void 0;const i=l(5596);g.generateTypescriptInterfaces=function u(m){let c="";for(const s of m.enumTypes)c+=(0,i.generateTypescriptEnum)(s);c+="\n";for(const s of m.structTypes)c+=(0,i.generateTypescriptInterface)(s,!1),c+="\n";return c}},1727:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateNodeClientSource=void 0;const i=l(6676),u=l(5596);g.generateNodeClientSource=function m(c){let s="";const _=c.errors.some(T=>!(T.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { Context, Fatal${c.errors.filter(T=>"Fatal"!==T.name).some(T=>T.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${_?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const T of c.enumTypes)s+=(0,u.generateTypescriptEnum)(T),s+="\n";for(const T of c.structTypes)s+=(0,u.generateTypescriptInterface)(T,!1),s+="\n";for(const T of c.errors)"Fatal"!==T.name&&(s+=(0,u.generateTypescriptErrorClass)(T,!1),s+="\n");return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${c.operations.filter(T=>T.annotations.every(S=>!(S instanceof i.HiddenAnnotation))).map(T=>`\n ${T.name}(ctx: PartialDeep<Context> | null, args: {${T.args.map(S=>`${S.name}${S.type.name.endsWith("?")?"?":""}: ${(0,u.generateTypescriptTypeName)(S.type,!1)}`).join(", ")}}): Promise<${(0,u.generateTypescriptTypeName)(T.returnType,!1)}> { return this.makeRequest(ctx, "${T.name}", args); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${c.errors.map(T=>` ${T.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},615:(Ve,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateNodeServerSource=void 0;const i=l(6676),u=l(5596);g.generateNodeServerSource=function m(c){let s="";const _=c.errors.some(T=>!(T.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${c.errors.filter(T=>"Fatal"!==T.name).some(T=>T.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${_?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const T of c.enumTypes)s+=(0,u.generateTypescriptEnum)(T),s+="\n";for(const T of c.structTypes)s+=(0,u.generateTypescriptInterface)(T,!1),s+="\n";for(const T of c.errors)"Fatal"!==T.name&&(s+=(0,u.generateTypescriptErrorClass)(T,!1),s+="\n");return s+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${c.operations.map(T=>`\n ${T.name}: (ctx: Context & ExtraContextT, args: {${T.args.map(S=>`${S.name}: ${(0,u.generateTypescriptTypeName)(S.type,!1)}`).join(", ")}}) => Promise<${(0,u.generateTypescriptTypeName)(T.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,s}},8926:Ve=>{function g(i,u,m,c,s,_,D){try{var T=i[_](D),S=T.value}catch(d){return void m(d)}T.done?u(S):Promise.resolve(S).then(c,s)}Ve.exports=function l(i){return function(){var u=this,m=arguments;return new Promise(function(c,s){var _=i.apply(u,m);function D(S){g(_,c,s,D,T,"next",S)}function T(S){g(_,c,s,D,T,"throw",S)}D(void 0)})}},Ve.exports.__esModule=!0,Ve.exports.default=Ve.exports},655:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{__extends:()=>u,__assign:()=>m,__rest:()=>c,__decorate:()=>s,__param:()=>_,__metadata:()=>D,__awaiter:()=>T,__generator:()=>S,__createBinding:()=>d,__exportStar:()=>A,__values:()=>M,__read:()=>b,__spread:()=>k,__spreadArrays:()=>$,__spreadArray:()=>pe,__await:()=>U,__asyncGenerator:()=>ae,__asyncDelegator:()=>Se,__asyncValues:()=>me,__makeTemplateObject:()=>be,__importStar:()=>Me,__importDefault:()=>Le,__classPrivateFieldGet:()=>qe,__classPrivateFieldSet:()=>at});var i=function(te,Fe){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,le){X.__proto__=le}||function(X,le){for(var Ae in le)Object.prototype.hasOwnProperty.call(le,Ae)&&(X[Ae]=le[Ae])})(te,Fe)};function u(te,Fe){if("function"!=typeof Fe&&null!==Fe)throw new TypeError("Class extends value "+String(Fe)+" is not a constructor or null");function X(){this.constructor=te}i(te,Fe),te.prototype=null===Fe?Object.create(Fe):(X.prototype=Fe.prototype,new X)}var m=function(){return m=Object.assign||function(Fe){for(var X,le=1,Ae=arguments.length;le<Ae;le++)for(var ne in X=arguments[le])Object.prototype.hasOwnProperty.call(X,ne)&&(Fe[ne]=X[ne]);return Fe},m.apply(this,arguments)};function c(te,Fe){var X={};for(var le in te)Object.prototype.hasOwnProperty.call(te,le)&&Fe.indexOf(le)<0&&(X[le]=te[le]);if(null!=te&&"function"==typeof Object.getOwnPropertySymbols){var Ae=0;for(le=Object.getOwnPropertySymbols(te);Ae<le.length;Ae++)Fe.indexOf(le[Ae])<0&&Object.prototype.propertyIsEnumerable.call(te,le[Ae])&&(X[le[Ae]]=te[le[Ae]])}return X}function s(te,Fe,X,le){var Ke,Ae=arguments.length,ne=Ae<3?Fe:null===le?le=Object.getOwnPropertyDescriptor(Fe,X):le;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ne=Reflect.decorate(te,Fe,X,le);else for(var _e=te.length-1;_e>=0;_e--)(Ke=te[_e])&&(ne=(Ae<3?Ke(ne):Ae>3?Ke(Fe,X,ne):Ke(Fe,X))||ne);return Ae>3&&ne&&Object.defineProperty(Fe,X,ne),ne}function _(te,Fe){return function(X,le){Fe(X,le,te)}}function D(te,Fe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(te,Fe)}function T(te,Fe,X,le){return new(X||(X=Promise))(function(ne,Ke){function _e(He){try{Ce(le.next(He))}catch(ct){Ke(ct)}}function tt(He){try{Ce(le.throw(He))}catch(ct){Ke(ct)}}function Ce(He){He.done?ne(He.value):function Ae(ne){return ne instanceof X?ne:new X(function(Ke){Ke(ne)})}(He.value).then(_e,tt)}Ce((le=le.apply(te,Fe||[])).next())})}function S(te,Fe){var le,Ae,ne,Ke,X={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return Ke={next:_e(0),throw:_e(1),return:_e(2)},"function"==typeof Symbol&&(Ke[Symbol.iterator]=function(){return this}),Ke;function _e(Ce){return function(He){return function tt(Ce){if(le)throw new TypeError("Generator is already executing.");for(;X;)try{if(le=1,Ae&&(ne=2&Ce[0]?Ae.return:Ce[0]?Ae.throw||((ne=Ae.return)&&ne.call(Ae),0):Ae.next)&&!(ne=ne.call(Ae,Ce[1])).done)return ne;switch(Ae=0,ne&&(Ce=[2&Ce[0],ne.value]),Ce[0]){case 0:case 1:ne=Ce;break;case 4:return X.label++,{value:Ce[1],done:!1};case 5:X.label++,Ae=Ce[1],Ce=[0];continue;case 7:Ce=X.ops.pop(),X.trys.pop();continue;default:if(!(ne=(ne=X.trys).length>0&&ne[ne.length-1])&&(6===Ce[0]||2===Ce[0])){X=0;continue}if(3===Ce[0]&&(!ne||Ce[1]>ne[0]&&Ce[1]<ne[3])){X.label=Ce[1];break}if(6===Ce[0]&&X.label<ne[1]){X.label=ne[1],ne=Ce;break}if(ne&&X.label<ne[2]){X.label=ne[2],X.ops.push(Ce);break}ne[2]&&X.ops.pop(),X.trys.pop();continue}Ce=Fe.call(te,X)}catch(He){Ce=[6,He],Ae=0}finally{le=ne=0}if(5&Ce[0])throw Ce[1];return{value:Ce[0]?Ce[1]:void 0,done:!0}}([Ce,He])}}}var d=Object.create?function(te,Fe,X,le){void 0===le&&(le=X),Object.defineProperty(te,le,{enumerable:!0,get:function(){return Fe[X]}})}:function(te,Fe,X,le){void 0===le&&(le=X),te[le]=Fe[X]};function A(te,Fe){for(var X in te)"default"!==X&&!Object.prototype.hasOwnProperty.call(Fe,X)&&d(Fe,te,X)}function M(te){var Fe="function"==typeof Symbol&&Symbol.iterator,X=Fe&&te[Fe],le=0;if(X)return X.call(te);if(te&&"number"==typeof te.length)return{next:function(){return te&&le>=te.length&&(te=void 0),{value:te&&te[le++],done:!te}}};throw new TypeError(Fe?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(te,Fe){var X="function"==typeof Symbol&&te[Symbol.iterator];if(!X)return te;var Ae,Ke,le=X.call(te),ne=[];try{for(;(void 0===Fe||Fe-- >0)&&!(Ae=le.next()).done;)ne.push(Ae.value)}catch(_e){Ke={error:_e}}finally{try{Ae&&!Ae.done&&(X=le.return)&&X.call(le)}finally{if(Ke)throw Ke.error}}return ne}function k(){for(var te=[],Fe=0;Fe<arguments.length;Fe++)te=te.concat(b(arguments[Fe]));return te}function $(){for(var te=0,Fe=0,X=arguments.length;Fe<X;Fe++)te+=arguments[Fe].length;var le=Array(te),Ae=0;for(Fe=0;Fe<X;Fe++)for(var ne=arguments[Fe],Ke=0,_e=ne.length;Ke<_e;Ke++,Ae++)le[Ae]=ne[Ke];return le}function pe(te,Fe,X){if(X||2===arguments.length)for(var ne,le=0,Ae=Fe.length;le<Ae;le++)(ne||!(le in Fe))&&(ne||(ne=Array.prototype.slice.call(Fe,0,le)),ne[le]=Fe[le]);return te.concat(ne||Array.prototype.slice.call(Fe))}function U(te){return this instanceof U?(this.v=te,this):new U(te)}function ae(te,Fe,X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ae,le=X.apply(te,Fe||[]),ne=[];return Ae={},Ke("next"),Ke("throw"),Ke("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae;function Ke(bt){le[bt]&&(Ae[bt]=function(Be){return new Promise(function(Xe,J){ne.push([bt,Be,Xe,J])>1||_e(bt,Be)})})}function _e(bt,Be){try{!function tt(bt){bt.value instanceof U?Promise.resolve(bt.value.v).then(Ce,He):ct(ne[0][2],bt)}(le[bt](Be))}catch(Xe){ct(ne[0][3],Xe)}}function Ce(bt){_e("next",bt)}function He(bt){_e("throw",bt)}function ct(bt,Be){bt(Be),ne.shift(),ne.length&&_e(ne[0][0],ne[0][1])}}function Se(te){var Fe,X;return Fe={},le("next"),le("throw",function(Ae){throw Ae}),le("return"),Fe[Symbol.iterator]=function(){return this},Fe;function le(Ae,ne){Fe[Ae]=te[Ae]?function(Ke){return(X=!X)?{value:U(te[Ae](Ke)),done:"return"===Ae}:ne?ne(Ke):Ke}:ne}}function me(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,Fe=te[Symbol.asyncIterator];return Fe?Fe.call(te):(te=M(te),X={},le("next"),le("throw"),le("return"),X[Symbol.asyncIterator]=function(){return this},X);function le(ne){X[ne]=te[ne]&&function(Ke){return new Promise(function(_e,tt){!function Ae(ne,Ke,_e,tt){Promise.resolve(tt).then(function(Ce){ne({value:Ce,done:_e})},Ke)}(_e,tt,(Ke=te[ne](Ke)).done,Ke.value)})}}}function be(te,Fe){return Object.defineProperty?Object.defineProperty(te,"raw",{value:Fe}):te.raw=Fe,te}var se=Object.create?function(te,Fe){Object.defineProperty(te,"default",{enumerable:!0,value:Fe})}:function(te,Fe){te.default=Fe};function Me(te){if(te&&te.__esModule)return te;var Fe={};if(null!=te)for(var X in te)"default"!==X&&Object.prototype.hasOwnProperty.call(te,X)&&d(Fe,te,X);return se(Fe,te),Fe}function Le(te){return te&&te.__esModule?te:{default:te}}function qe(te,Fe,X,le){if("a"===X&&!le)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Fe?te!==Fe||!le:!Fe.has(te))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===X?le:"a"===X?le.call(te):le?le.value:Fe.get(te)}function at(te,Fe,X,le,Ae){if("m"===le)throw new TypeError("Private method is not writable");if("a"===le&&!Ae)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Fe?te!==Fe||!Ae:!Fe.has(te))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===le?Ae.call(te,X):Ae?Ae.value=X:Fe.set(te,X),X}},1777:(Ve,g,l)=>{"use strict";l.d(g,{l3:()=>m,_j:()=>i,LC:()=>u,ZN:()=>ae,jt:()=>s,F4:()=>d,vP:()=>D,SB:()=>S,oB:()=>T,eR:()=>A,X$:()=>c,ZE:()=>Se,k1:()=>me});class i{}class u{}const m="*";function c(be,se){return{type:7,name:be,definitions:se,options:{}}}function s(be,se=null){return{type:4,styles:se,timings:be}}function D(be,se=null){return{type:2,steps:be,options:se}}function T(be){return{type:6,styles:be,offset:null}}function S(be,se,Me){return{type:0,name:be,styles:se,options:Me}}function d(be){return{type:5,steps:be}}function A(be,se,Me=null){return{type:1,expr:be,animation:se,options:Me}}function U(be){Promise.resolve(null).then(be)}class ae{constructor(se=0,Me=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=se+Me}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(se=>se()),this._onDoneFns=[])}onStart(se){this._onStartFns.push(se)}onDone(se){this._onDoneFns.push(se)}onDestroy(se){this._onDestroyFns.push(se)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){U(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(se=>se()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(se=>se()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(se){this._position=this.totalTime?se*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(se){const Me="start"==se?this._onStartFns:this._onDoneFns;Me.forEach(Le=>Le()),Me.length=0}}class Se{constructor(se){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=se;let Me=0,Le=0,qe=0;const at=this.players.length;0==at?U(()=>this._onFinish()):this.players.forEach(te=>{te.onDone(()=>{++Me==at&&this._onFinish()}),te.onDestroy(()=>{++Le==at&&this._onDestroy()}),te.onStart(()=>{++qe==at&&this._onStart()})}),this.totalTime=this.players.reduce((te,Fe)=>Math.max(te,Fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(se=>se()),this._onDoneFns=[])}init(){this.players.forEach(se=>se.init())}onStart(se){this._onStartFns.push(se)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(se=>se()),this._onStartFns=[])}onDone(se){this._onDoneFns.push(se)}onDestroy(se){this._onDestroyFns.push(se)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(se=>se.play())}pause(){this.players.forEach(se=>se.pause())}restart(){this.players.forEach(se=>se.restart())}finish(){this._onFinish(),this.players.forEach(se=>se.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(se=>se.destroy()),this._onDestroyFns.forEach(se=>se()),this._onDestroyFns=[])}reset(){this.players.forEach(se=>se.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(se){const Me=se*this.totalTime;this.players.forEach(Le=>{const qe=Le.totalTime?Math.min(1,Me/Le.totalTime):1;Le.setPosition(qe)})}getPosition(){const se=this.players.reduce((Me,Le)=>null===Me||Le.totalTime>Me.totalTime?Le:Me,null);return null!=se?se.getPosition():0}beforeDestroy(){this.players.forEach(se=>{se.beforeDestroy&&se.beforeDestroy()})}triggerCallback(se){const Me="start"==se?this._onStartFns:this._onDoneFns;Me.forEach(Le=>Le()),Me.length=0}}const me="!"},5664:(Ve,g,l)=>{"use strict";l.d(g,{rt:()=>tn,$s:()=>te,kH:()=>en,Em:()=>ne,tE:()=>pn,qV:()=>mt,qm:()=>Kt,ic:()=>_e,X6:()=>Oe,yG:()=>ue});var i=l(9808),u=l(5e3),m=l(925),c=l(6758),s=l(6921),_=l(1135),D=l(9646),T=l(1159),S=l(8505),d=l(8372),A=l(9300),M=l(4004),b=l(5698),k=l(5684),$=l(1884),pe=l(2722),U=l(3191),ae=l(7144);function se(de,Q){return(de.getAttribute(Q)||"").match(/\S+/g)||[]}const Le="cdk-describedby-message",qe="cdk-describedby-host";let at=0,te=(()=>{class de{constructor(N,O){this._platform=O,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+at++,this._document=N}describe(N,O,q){if(!this._canBeDescribed(N,O))return;const E=Fe(O,q);"string"!=typeof O?(X(O),this._messageRegistry.set(E,{messageElement:O,referenceCount:0})):this._messageRegistry.has(E)||this._createMessageElement(O,q),this._isElementDescribedByMessage(N,E)||this._addMessageReference(N,E)}removeDescription(N,O,q){var E;if(!O||!this._isElementNode(N))return;const j=Fe(O,q);if(this._isElementDescribedByMessage(N,j)&&this._removeMessageReference(N,j),"string"==typeof O){const Ne=this._messageRegistry.get(j);Ne&&0===Ne.referenceCount&&this._deleteMessageElement(j)}0===(null===(E=this._messagesContainer)||void 0===E?void 0:E.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var N;const O=this._document.querySelectorAll(`[${qe}="${this._id}"]`);for(let q=0;q<O.length;q++)this._removeCdkDescribedByReferenceIds(O[q]),O[q].removeAttribute(qe);null===(N=this._messagesContainer)||void 0===N||N.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(N,O){const q=this._document.createElement("div");X(q),q.textContent=N,O&&q.setAttribute("role",O),this._createMessagesContainer(),this._messagesContainer.appendChild(q),this._messageRegistry.set(Fe(N,O),{messageElement:q,referenceCount:0})}_deleteMessageElement(N){var O,q;null===(q=null===(O=this._messageRegistry.get(N))||void 0===O?void 0:O.messageElement)||void 0===q||q.remove(),this._messageRegistry.delete(N)}_createMessagesContainer(){if(this._messagesContainer)return;const N="cdk-describedby-message-container",O=this._document.querySelectorAll(`.${N}[platform="server"]`);for(let E=0;E<O.length;E++)O[E].remove();const q=this._document.createElement("div");q.style.visibility="hidden",q.classList.add(N),q.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&q.setAttribute("platform","server"),this._document.body.appendChild(q),this._messagesContainer=q}_removeCdkDescribedByReferenceIds(N){const O=se(N,"aria-describedby").filter(q=>0!=q.indexOf(Le));N.setAttribute("aria-describedby",O.join(" "))}_addMessageReference(N,O){const q=this._messageRegistry.get(O);(function me(de,Q,N){const O=se(de,Q);O.some(q=>q.trim()==N.trim())||(O.push(N.trim()),de.setAttribute(Q,O.join(" ")))})(N,"aria-describedby",q.messageElement.id),N.setAttribute(qe,this._id),q.referenceCount++}_removeMessageReference(N,O){const q=this._messageRegistry.get(O);q.referenceCount--,function be(de,Q,N){const q=se(de,Q).filter(E=>E!=N.trim());q.length?de.setAttribute(Q,q.join(" ")):de.removeAttribute(Q)}(N,"aria-describedby",q.messageElement.id),N.removeAttribute(qe)}_isElementDescribedByMessage(N,O){const q=se(N,"aria-describedby"),E=this._messageRegistry.get(O),j=E&&E.messageElement.id;return!!j&&-1!=q.indexOf(j)}_canBeDescribed(N,O){if(!this._isElementNode(N))return!1;if(O&&"object"==typeof O)return!0;const q=null==O?"":`${O}`.trim(),E=N.getAttribute("aria-label");return!(!q||E&&E.trim()===q)}_isElementNode(N){return N.nodeType===this._document.ELEMENT_NODE}}return de.\u0275fac=function(N){return new(N||de)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(m.t4))},de.\u0275prov=u.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();function Fe(de,Q){return"string"==typeof de?`${Q||""}/${de}`:de}function X(de){de.id||(de.id=`${Le}-${at++}`)}class ne extends class le{constructor(Q){this._items=Q,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new c.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=N=>N.disabled,this._pressedLetters=[],this.tabOut=new c.x,this.change=new c.x,Q instanceof u.QueryList&&Q.changes.subscribe(N=>{if(this._activeItem){const q=N.toArray().indexOf(this._activeItem);q>-1&&q!==this._activeItemIndex&&(this._activeItemIndex=q)}})}skipPredicate(Q){return this._skipPredicateFn=Q,this}withWrap(Q=!0){return this._wrap=Q,this}withVerticalOrientation(Q=!0){return this._vertical=Q,this}withHorizontalOrientation(Q){return this._horizontal=Q,this}withAllowedModifierKeys(Q){return this._allowedModifierKeys=Q,this}withTypeAhead(Q=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(N=>this._pressedLetters.push(N)),(0,d.b)(Q),(0,A.h)(()=>this._pressedLetters.length>0),(0,M.U)(()=>this._pressedLetters.join(""))).subscribe(N=>{const O=this._getItemsArray();for(let q=1;q<O.length+1;q++){const E=(this._activeItemIndex+q)%O.length,j=O[E];if(!this._skipPredicateFn(j)&&0===j.getLabel().toUpperCase().trim().indexOf(N)){this.setActiveItem(E);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Q=!0){return this._homeAndEnd=Q,this}setActiveItem(Q){const N=this._activeItem;this.updateActiveItem(Q),this._activeItem!==N&&this.change.next(this._activeItemIndex)}onKeydown(Q){const N=Q.keyCode,q=["altKey","ctrlKey","metaKey","shiftKey"].every(E=>!Q[E]||this._allowedModifierKeys.indexOf(E)>-1);switch(N){case T.Mf:return void this.tabOut.next();case T.JH:if(this._vertical&&q){this.setNextItemActive();break}return;case T.LH:if(this._vertical&&q){this.setPreviousItemActive();break}return;case T.SV:if(this._horizontal&&q){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case T.oh:if(this._horizontal&&q){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case T.Sd:if(this._homeAndEnd&&q){this.setFirstItemActive();break}return;case T.uR:if(this._homeAndEnd&&q){this.setLastItemActive();break}return;default:return void((q||(0,T.Vb)(Q,"shiftKey"))&&(Q.key&&1===Q.key.length?this._letterKeyStream.next(Q.key.toLocaleUpperCase()):(N>=T.A&&N<=T.Z||N>=T.xE&&N<=T.aO)&&this._letterKeyStream.next(String.fromCharCode(N))))}this._pressedLetters=[],Q.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(Q){const N=this._getItemsArray(),O="number"==typeof Q?Q:N.indexOf(Q),q=N[O];this._activeItem=null==q?null:q,this._activeItemIndex=O}_setActiveItemByDelta(Q){this._wrap?this._setActiveInWrapMode(Q):this._setActiveInDefaultMode(Q)}_setActiveInWrapMode(Q){const N=this._getItemsArray();for(let O=1;O<=N.length;O++){const q=(this._activeItemIndex+Q*O+N.length)%N.length;if(!this._skipPredicateFn(N[q]))return void this.setActiveItem(q)}}_setActiveInDefaultMode(Q){this._setActiveItemByIndex(this._activeItemIndex+Q,Q)}_setActiveItemByIndex(Q,N){const O=this._getItemsArray();if(O[Q]){for(;this._skipPredicateFn(O[Q]);)if(!O[Q+=N])return;this.setActiveItem(Q)}}_getItemsArray(){return this._items instanceof u.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Q){return this._origin=Q,this}setActiveItem(Q){super.setActiveItem(Q),this.activeItem&&this.activeItem.focus(this._origin)}}let _e=(()=>{class de{constructor(N){this._platform=N}isDisabled(N){return N.hasAttribute("disabled")}isVisible(N){return function Ce(de){return!!(de.offsetWidth||de.offsetHeight||"function"==typeof de.getClientRects&&de.getClientRects().length)}(N)&&"visible"===getComputedStyle(N).visibility}isTabbable(N){if(!this._platform.isBrowser)return!1;const O=function tt(de){try{return de.frameElement}catch(Q){return null}}(function ye(de){return de.ownerDocument&&de.ownerDocument.defaultView||window}(N));if(O&&(-1===ge(O)||!this.isVisible(O)))return!1;let q=N.nodeName.toLowerCase(),E=ge(N);return N.hasAttribute("contenteditable")?-1!==E:!("iframe"===q||"object"===q||this._platform.WEBKIT&&this._platform.IOS&&!function Ie(de){let Q=de.nodeName.toLowerCase(),N="input"===Q&&de.type;return"text"===N||"password"===N||"select"===Q||"textarea"===Q}(N))&&("audio"===q?!!N.hasAttribute("controls")&&-1!==E:"video"===q?-1!==E&&(null!==E||this._platform.FIREFOX||N.hasAttribute("controls")):N.tabIndex>=0)}isFocusable(N,O){return function Re(de){return!function ct(de){return function Be(de){return"input"==de.nodeName.toLowerCase()}(de)&&"hidden"==de.type}(de)&&(function He(de){let Q=de.nodeName.toLowerCase();return"input"===Q||"select"===Q||"button"===Q||"textarea"===Q}(de)||function bt(de){return function Xe(de){return"a"==de.nodeName.toLowerCase()}(de)&&de.hasAttribute("href")}(de)||de.hasAttribute("contenteditable")||J(de))}(N)&&!this.isDisabled(N)&&((null==O?void 0:O.ignoreVisibility)||this.isVisible(N))}}return de.\u0275fac=function(N){return new(N||de)(u.\u0275\u0275inject(m.t4))},de.\u0275prov=u.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();function J(de){if(!de.hasAttribute("tabindex")||void 0===de.tabIndex)return!1;let Q=de.getAttribute("tabindex");return!(!Q||isNaN(parseInt(Q,10)))}function ge(de){if(!J(de))return null;const Q=parseInt(de.getAttribute("tabindex")||"",10);return isNaN(Q)?-1:Q}class Je{constructor(Q,N,O,q,E=!1){this._element=Q,this._checker=N,this._ngZone=O,this._document=q,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,E||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Q){this._enabled=Q,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Q,this._startAnchor),this._toggleAnchorTabIndex(Q,this._endAnchor))}destroy(){const Q=this._startAnchor,N=this._endAnchor;Q&&(Q.removeEventListener("focus",this.startAnchorListener),Q.remove()),N&&(N.removeEventListener("focus",this.endAnchorListener),N.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(Q){return new Promise(N=>{this._executeOnStable(()=>N(this.focusInitialElement(Q)))})}focusFirstTabbableElementWhenReady(Q){return new Promise(N=>{this._executeOnStable(()=>N(this.focusFirstTabbableElement(Q)))})}focusLastTabbableElementWhenReady(Q){return new Promise(N=>{this._executeOnStable(()=>N(this.focusLastTabbableElement(Q)))})}_getRegionBoundary(Q){const N=this._element.querySelectorAll(`[cdk-focus-region-${Q}], [cdkFocusRegion${Q}], [cdk-focus-${Q}]`);return"start"==Q?N.length?N[0]:this._getFirstTabbableElement(this._element):N.length?N[N.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Q){const N=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(N){if(!this._checker.isFocusable(N)){const O=this._getFirstTabbableElement(N);return null==O||O.focus(Q),!!O}return N.focus(Q),!0}return this.focusFirstTabbableElement(Q)}focusFirstTabbableElement(Q){const N=this._getRegionBoundary("start");return N&&N.focus(Q),!!N}focusLastTabbableElement(Q){const N=this._getRegionBoundary("end");return N&&N.focus(Q),!!N}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Q){if(this._checker.isFocusable(Q)&&this._checker.isTabbable(Q))return Q;const N=Q.children;for(let O=0;O<N.length;O++){const q=N[O].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(N[O]):null;if(q)return q}return null}_getLastTabbableElement(Q){if(this._checker.isFocusable(Q)&&this._checker.isTabbable(Q))return Q;const N=Q.children;for(let O=N.length-1;O>=0;O--){const q=N[O].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(N[O]):null;if(q)return q}return null}_createAnchor(){const Q=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Q),Q.classList.add("cdk-visually-hidden"),Q.classList.add("cdk-focus-trap-anchor"),Q.setAttribute("aria-hidden","true"),Q}_toggleAnchorTabIndex(Q,N){Q?N.setAttribute("tabindex","0"):N.removeAttribute("tabindex")}toggleAnchors(Q){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Q,this._startAnchor),this._toggleAnchorTabIndex(Q,this._endAnchor))}_executeOnStable(Q){this._ngZone.isStable?Q():this._ngZone.onStable.pipe((0,b.q)(1)).subscribe(Q)}}let mt=(()=>{class de{constructor(N,O,q){this._checker=N,this._ngZone=O,this._document=q}create(N,O=!1){return new Je(N,this._checker,this._ngZone,this._document,O)}}return de.\u0275fac=function(N){return new(N||de)(u.\u0275\u0275inject(_e),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT))},de.\u0275prov=u.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();function Oe(de){return 0===de.buttons||0===de.offsetX&&0===de.offsetY}function ue(de){const Q=de.touches&&de.touches[0]||de.changedTouches&&de.changedTouches[0];return!(!Q||-1!==Q.identifier||null!=Q.radiusX&&1!==Q.radiusX||null!=Q.radiusY&&1!==Q.radiusY)}const we=new u.InjectionToken("cdk-input-modality-detector-options"),Ee={ignoreKeys:[T.zL,T.jx,T.b2,T.MW,T.JU]},ve=(0,m.i$)({passive:!0,capture:!0});let Ze=(()=>{class de{constructor(N,O,q,E){this._platform=N,this._mostRecentTarget=null,this._modality=new _.X(null),this._lastTouchMs=0,this._onKeydown=j=>{var Ne,st;(null===(st=null===(Ne=this._options)||void 0===Ne?void 0:Ne.ignoreKeys)||void 0===st?void 0:st.some(Wt=>Wt===j.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,m.sA)(j))},this._onMousedown=j=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Oe(j)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.sA)(j))},this._onTouchstart=j=>{ue(j)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,m.sA)(j))},this._options=Object.assign(Object.assign({},Ee),E),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,$.x)()),N.isBrowser&&O.runOutsideAngular(()=>{q.addEventListener("keydown",this._onKeydown,ve),q.addEventListener("mousedown",this._onMousedown,ve),q.addEventListener("touchstart",this._onTouchstart,ve)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ve),document.removeEventListener("mousedown",this._onMousedown,ve),document.removeEventListener("touchstart",this._onTouchstart,ve))}}return de.\u0275fac=function(N){return new(N||de)(u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(we,8))},de.\u0275prov=u.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();const Jt=new u.InjectionToken("cdk-focus-monitor-default-options"),Ft=(0,m.i$)({passive:!0,capture:!0});let pn=(()=>{class de{constructor(N,O,q,E,j){this._ngZone=N,this._platform=O,this._inputModalityDetector=q,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 c.x,this._rootNodeFocusAndBlurListener=Ne=>{const st=(0,m.sA)(Ne),Wt="focus"===Ne.type?this._onFocus:this._onBlur;for(let Ht=st;Ht;Ht=Ht.parentElement)Wt.call(this,Ne,Ht)},this._document=E,this._detectionMode=(null==j?void 0:j.detectionMode)||0}monitor(N,O=!1){const q=(0,U.fI)(N);if(!this._platform.isBrowser||1!==q.nodeType)return(0,D.of)(null);const E=(0,m.kV)(q)||this._getDocument(),j=this._elementInfo.get(q);if(j)return O&&(j.checkChildren=!0),j.subject;const Ne={checkChildren:O,subject:new c.x,rootNode:E};return this._elementInfo.set(q,Ne),this._registerGlobalListeners(Ne),Ne.subject}stopMonitoring(N){const O=(0,U.fI)(N),q=this._elementInfo.get(O);q&&(q.subject.complete(),this._setClasses(O),this._elementInfo.delete(O),this._removeGlobalListeners(q))}focusVia(N,O,q){const E=(0,U.fI)(N);E===this._getDocument().activeElement?this._getClosestElementsInfo(E).forEach(([Ne,st])=>this._originChanged(Ne,O,st)):(this._setOrigin(O),"function"==typeof E.focus&&E.focus(q))}ngOnDestroy(){this._elementInfo.forEach((N,O)=>this.stopMonitoring(O))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(N){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(N)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(N){return 1===this._detectionMode||!!(null==N?void 0:N.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(N,O){N.classList.toggle("cdk-focused",!!O),N.classList.toggle("cdk-touch-focused","touch"===O),N.classList.toggle("cdk-keyboard-focused","keyboard"===O),N.classList.toggle("cdk-mouse-focused","mouse"===O),N.classList.toggle("cdk-program-focused","program"===O)}_setOrigin(N,O=!1){this._ngZone.runOutsideAngular(()=>{this._origin=N,this._originFromTouchInteraction="touch"===N&&O,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(N,O){const q=this._elementInfo.get(O),E=(0,m.sA)(N);!q||!q.checkChildren&&O!==E||this._originChanged(O,this._getFocusOrigin(E),q)}_onBlur(N,O){const q=this._elementInfo.get(O);!q||q.checkChildren&&N.relatedTarget instanceof Node&&O.contains(N.relatedTarget)||(this._setClasses(O),this._emitOrigin(q.subject,null))}_emitOrigin(N,O){this._ngZone.run(()=>N.next(O))}_registerGlobalListeners(N){if(!this._platform.isBrowser)return;const O=N.rootNode,q=this._rootNodeFocusListenerCount.get(O)||0;q||this._ngZone.runOutsideAngular(()=>{O.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ft),O.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ft)}),this._rootNodeFocusListenerCount.set(O,q+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,pe.R)(this._stopInputModalityDetector)).subscribe(E=>{this._setOrigin(E,!0)}))}_removeGlobalListeners(N){const O=N.rootNode;if(this._rootNodeFocusListenerCount.has(O)){const q=this._rootNodeFocusListenerCount.get(O);q>1?this._rootNodeFocusListenerCount.set(O,q-1):(O.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ft),O.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ft),this._rootNodeFocusListenerCount.delete(O))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(N,O,q){this._setClasses(N,O),this._emitOrigin(q.subject,O),this._lastFocusOrigin=O}_getClosestElementsInfo(N){const O=[];return this._elementInfo.forEach((q,E)=>{(E===N||q.checkChildren&&E.contains(N))&&O.push([E,q])}),O}}return de.\u0275fac=function(N){return new(N||de)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(Ze),u.\u0275\u0275inject(i.DOCUMENT,8),u.\u0275\u0275inject(Jt,8))},de.\u0275prov=u.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),en=(()=>{class de{constructor(N,O){this._elementRef=N,this._focusMonitor=O,this.cdkFocusChange=new u.EventEmitter}ngAfterViewInit(){const N=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(N,1===N.nodeType&&N.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(O=>this.cdkFocusChange.emit(O))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return de.\u0275fac=function(N){return new(N||de)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(pn))},de.\u0275dir=u.\u0275\u0275defineDirective({type:de,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),de})();const $t="cdk-high-contrast-black-on-white",Tt="cdk-high-contrast-white-on-black",ln="cdk-high-contrast-active";let Kt=(()=>{class de{constructor(N,O){this._platform=N,this._document=O}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const N=this._document.createElement("div");N.style.backgroundColor="rgb(1,2,3)",N.style.position="absolute",this._document.body.appendChild(N);const O=this._document.defaultView||window,q=O&&O.getComputedStyle?O.getComputedStyle(N):null,E=(q&&q.backgroundColor||"").replace(/ /g,"");switch(N.remove(),E){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const N=this._document.body.classList;N.remove(ln),N.remove($t),N.remove(Tt),this._hasCheckedHighContrastMode=!0;const O=this.getHighContrastMode();1===O?(N.add(ln),N.add($t)):2===O&&(N.add(ln),N.add(Tt))}}}return de.\u0275fac=function(N){return new(N||de)(u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(i.DOCUMENT))},de.\u0275prov=u.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),tn=(()=>{class de{constructor(N){N._applyBodyHighContrastModeCssClasses()}}return de.\u0275fac=function(N){return new(N||de)(u.\u0275\u0275inject(Kt))},de.\u0275mod=u.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=u.\u0275\u0275defineInjector({imports:[[m.ud,ae.Q8]]}),de})()},226:(Ve,g,l)=>{"use strict";l.d(g,{vT:()=>S,Is:()=>D});var i=l(5e3),u=l(9808);const m=new i.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function c(){return(0,i.inject)(u.DOCUMENT)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let D=(()=>{class d{constructor(M){if(this.value="ltr",this.change=new i.EventEmitter,M){const k=M.documentElement?M.documentElement.dir:null;this.value=function _(d){const A=(null==d?void 0:d.toLowerCase())||"";return"auto"===A&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===A?"rtl":"ltr"}((M.body?M.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return d.\u0275fac=function(M){return new(M||d)(i.\u0275\u0275inject(m,8))},d.\u0275prov=i.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),S=(()=>{class d{}return d.\u0275fac=function(M){return new(M||d)},d.\u0275mod=i.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=i.\u0275\u0275defineInjector({}),d})()},3191:(Ve,g,l)=>{"use strict";l.d(g,{t6:()=>c,Eq:()=>s,Ig:()=>u,HM:()=>_,fI:()=>D,su:()=>m});var i=l(5e3);function u(S){return null!=S&&"false"!=`${S}`}function m(S,d=0){return c(S)?Number(S):d}function c(S){return!isNaN(parseFloat(S))&&!isNaN(Number(S))}function s(S){return Array.isArray(S)?S:[S]}function _(S){return null==S?"":"string"==typeof S?S:`${S}px`}function D(S){return S instanceof i.ElementRef?S.nativeElement:S}},449:(Ve,g,l)=>{"use strict";l.d(g,{o2:()=>m,Ov:()=>T,yy:()=>_,eX:()=>D,k:()=>A,Z9:()=>c});var i=l(6758),u=l(5e3);class m{}function c(M){return M&&"function"==typeof M.connect}class _{applyChanges(b,k,$,pe,U){b.forEachOperation((ae,Se,me)=>{let be,se;if(null==ae.previousIndex){const Me=$(ae,Se,me);be=k.createEmbeddedView(Me.templateRef,Me.context,Me.index),se=1}else null==me?(k.remove(Se),se=3):(be=k.get(Se),k.move(be,me),se=2);U&&U({context:null==be?void 0:be.context,operation:se,record:ae})})}detach(){}}class D{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(b,k,$,pe,U){b.forEachOperation((ae,Se,me)=>{let be,se;null==ae.previousIndex?(be=this._insertView(()=>$(ae,Se,me),me,k,pe(ae)),se=be?1:0):null==me?(this._detachAndCacheView(Se,k),se=3):(be=this._moveView(Se,me,k,pe(ae)),se=2),U&&U({context:null==be?void 0:be.context,operation:se,record:ae})})}detach(){for(const b of this._viewCache)b.destroy();this._viewCache=[]}_insertView(b,k,$,pe){const U=this._insertViewFromCache(k,$);if(U)return void(U.context.$implicit=pe);const ae=b();return $.createEmbeddedView(ae.templateRef,ae.context,ae.index)}_detachAndCacheView(b,k){const $=k.detach(b);this._maybeCacheView($,k)}_moveView(b,k,$,pe){const U=$.get(b);return $.move(U,k),U.context.$implicit=pe,U}_maybeCacheView(b,k){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(b);else{const $=k.indexOf(b);-1===$?b.destroy():k.remove($)}}_insertViewFromCache(b,k){const $=this._viewCache.pop();return $&&k.insert($,b),$||null}}class T{constructor(b=!1,k,$=!0){this._multiple=b,this._emitChanges=$,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.x,k&&k.length&&(b?k.forEach(pe=>this._markSelected(pe)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...b){this._verifyValueAssignment(b),b.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...b){this._verifyValueAssignment(b),b.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(b){this.isSelected(b)?this.deselect(b):this.select(b)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(b){return this._selection.has(b)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(b){this._multiple&&this.selected&&this._selected.sort(b)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(b){this.isSelected(b)||(this._multiple||this._unmarkAll(),this._selection.add(b),this._emitChanges&&this._selectedToEmit.push(b))}_unmarkSelected(b){this.isSelected(b)&&(this._selection.delete(b),this._emitChanges&&this._deselectedToEmit.push(b))}_unmarkAll(){this.isEmpty()||this._selection.forEach(b=>this._unmarkSelected(b))}_verifyValueAssignment(b){}}const A=new u.InjectionToken("_ViewRepeater")},1159:(Ve,g,l)=>{"use strict";l.d(g,{A:()=>bt,zL:()=>T,ZH:()=>u,jx:()=>D,yY:()=>Le,JH:()=>me,uR:()=>$,K5:()=>s,hY:()=>A,Sd:()=>pe,oh:()=>U,b2:()=>ii,MW:()=>Dt,aO:()=>_e,SV:()=>Se,JU:()=>_,L_:()=>M,Mf:()=>m,LH:()=>ae,Z:()=>ft,xE:()=>qe,Vb:()=>Cn});const u=8,m=9,s=13,_=16,D=17,T=18,A=27,M=32,$=35,pe=36,U=37,ae=38,Se=39,me=40,Le=46,qe=48,_e=57,bt=65,ft=90,Dt=91,ii=224;function Cn(sn,...Yn){return Yn.length?Yn.some(ri=>sn[ri]):sn.altKey||sn.shiftKey||sn.ctrlKey||sn.metaKey}},5113:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{BreakpointObserver:()=>me,Breakpoints:()=>se,LayoutModule:()=>k,MediaMatcher:()=>U});var i=l(5e3),u=l(3191),m=l(6758),c=l(9841),s=l(1350),_=l(9751),D=l(5698),T=l(5684),S=l(8372),d=l(4004),A=l(8675),M=l(2722),b=l(925);let k=(()=>{class Me{}return Me.\u0275fac=function(qe){return new(qe||Me)},Me.\u0275mod=i.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=i.\u0275\u0275defineInjector({}),Me})();const $=new Set;let pe,U=(()=>{class Me{constructor(qe){this._platform=qe,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Se}matchMedia(qe){return(this._platform.WEBKIT||this._platform.BLINK)&&function ae(Me){if(!$.has(Me))try{pe||(pe=document.createElement("style"),pe.setAttribute("type","text/css"),document.head.appendChild(pe)),pe.sheet&&(pe.sheet.insertRule(`@media ${Me} {body{ }}`,0),$.add(Me))}catch(Le){console.error(Le)}}(qe),this._matchMedia(qe)}}return Me.\u0275fac=function(qe){return new(qe||Me)(i.\u0275\u0275inject(b.t4))},Me.\u0275prov=i.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})();function Se(Me){return{matches:"all"===Me||""===Me,media:Me,addListener:()=>{},removeListener:()=>{}}}let me=(()=>{class Me{constructor(qe,at){this._mediaMatcher=qe,this._zone=at,this._queries=new Map,this._destroySubject=new m.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(qe){return be((0,u.Eq)(qe)).some(te=>this._registerQuery(te).mql.matches)}observe(qe){const te=be((0,u.Eq)(qe)).map(X=>this._registerQuery(X).observable);let Fe=(0,c.a)(te);return Fe=(0,s.z)(Fe.pipe((0,D.q)(1)),Fe.pipe((0,T.T)(1),(0,S.b)(0))),Fe.pipe((0,d.U)(X=>{const le={matches:!1,breakpoints:{}};return X.forEach(({matches:Ae,query:ne})=>{le.matches=le.matches||Ae,le.breakpoints[ne]=Ae}),le}))}_registerQuery(qe){if(this._queries.has(qe))return this._queries.get(qe);const at=this._mediaMatcher.matchMedia(qe),Fe={observable:new _.y(X=>{const le=Ae=>this._zone.run(()=>X.next(Ae));return at.addListener(le),()=>{at.removeListener(le)}}).pipe((0,A.O)(at),(0,d.U)(({matches:X})=>({query:qe,matches:X})),(0,M.R)(this._destroySubject)),mql:at};return this._queries.set(qe,Fe),Fe}}return Me.\u0275fac=function(qe){return new(qe||Me)(i.\u0275\u0275inject(U),i.\u0275\u0275inject(i.NgZone))},Me.\u0275prov=i.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})();function be(Me){return Me.map(Le=>Le.split(",")).reduce((Le,qe)=>Le.concat(qe)).map(Le=>Le.trim())}const se={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(Ve,g,l)=>{"use strict";l.d(g,{wD:()=>T,Q8:()=>S});var i=l(3191),u=l(5e3),m=l(9751),c=l(6758),s=l(8372);let _=(()=>{class d{create(M){return"undefined"==typeof MutationObserver?null:new MutationObserver(M)}}return d.\u0275fac=function(M){return new(M||d)},d.\u0275prov=u.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),D=(()=>{class d{constructor(M){this._mutationObserverFactory=M,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((M,b)=>this._cleanupObserver(b))}observe(M){const b=(0,i.fI)(M);return new m.y(k=>{const pe=this._observeElement(b).subscribe(k);return()=>{pe.unsubscribe(),this._unobserveElement(b)}})}_observeElement(M){if(this._observedElements.has(M))this._observedElements.get(M).count++;else{const b=new c.x,k=this._mutationObserverFactory.create($=>b.next($));k&&k.observe(M,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(M,{observer:k,stream:b,count:1})}return this._observedElements.get(M).stream}_unobserveElement(M){this._observedElements.has(M)&&(this._observedElements.get(M).count--,this._observedElements.get(M).count||this._cleanupObserver(M))}_cleanupObserver(M){if(this._observedElements.has(M)){const{observer:b,stream:k}=this._observedElements.get(M);b&&b.disconnect(),k.complete(),this._observedElements.delete(M)}}}return d.\u0275fac=function(M){return new(M||d)(u.\u0275\u0275inject(_))},d.\u0275prov=u.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),T=(()=>{class d{constructor(M,b,k){this._contentObserver=M,this._elementRef=b,this._ngZone=k,this.event=new u.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(M){this._disabled=(0,i.Ig)(M),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(M){this._debounce=(0,i.su)(M),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const M=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?M.pipe((0,s.b)(this.debounce)):M).subscribe(this.event)})}_unsubscribe(){var M;null===(M=this._currentSubscription)||void 0===M||M.unsubscribe()}}return d.\u0275fac=function(M){return new(M||d)(u.\u0275\u0275directiveInject(D),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone))},d.\u0275dir=u.\u0275\u0275defineDirective({type:d,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),d})(),S=(()=>{class d{}return d.\u0275fac=function(M){return new(M||d)},d.\u0275mod=u.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=u.\u0275\u0275defineInjector({providers:[_]}),d})()},1314:(Ve,g,l)=>{"use strict";l.d(g,{aV:()=>ge,X_:()=>se,Xj:()=>X,U8:()=>It});var i=l(9071),u=l(9808),m=l(5e3),c=l(3191),s=l(925),_=l(226),D=l(7429),T=l(6758),S=l(6921),d=l(6451),A=l(5698),M=l(2722);const b=(0,s.Mq)();class k{constructor(L,re){this._viewportRuler=L,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=re}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,c.HM)(-this._previousScrollPosition.left),L.style.top=(0,c.HM)(-this._previousScrollPosition.top),L.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const L=this._document.documentElement,Oe=L.style,ue=this._document.body.style,we=Oe.scrollBehavior||"",Ee=ue.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,L.classList.remove("cdk-global-scrollblock"),b&&(Oe.scrollBehavior=ue.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(Oe.scrollBehavior=we,ue.scrollBehavior=Ee)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const re=this._document.body,Oe=this._viewportRuler.getViewportSize();return re.scrollHeight>Oe.height||re.scrollWidth>Oe.width}}class pe{constructor(L,re,Oe,ue){this._scrollDispatcher=L,this._ngZone=re,this._viewportRuler=Oe,this._config=ue,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);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=L.subscribe(()=>{const re=this._viewportRuler.getViewportScrollPosition().top;Math.abs(re-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 U{enable(){}disable(){}attach(){}}function ae(Ge,L){return L.some(re=>Ge.bottom<re.top||Ge.top>re.bottom||Ge.right<re.left||Ge.left>re.right)}function Se(Ge,L){return L.some(re=>Ge.top<re.top||Ge.bottom>re.bottom||Ge.left<re.left||Ge.right>re.right)}class me{constructor(L,re,Oe,ue){this._scrollDispatcher=L,this._viewportRuler=re,this._ngZone=Oe,this._config=ue,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 re=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:ue}=this._viewportRuler.getViewportSize();ae(re,[{width:Oe,height:ue,bottom:ue,right:Oe,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 be=(()=>{class Ge{constructor(re,Oe,ue,we){this._scrollDispatcher=re,this._viewportRuler=Oe,this._ngZone=ue,this.noop=()=>new U,this.close=Ee=>new pe(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ee),this.block=()=>new k(this._viewportRuler,this._document),this.reposition=Ee=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ee),this._document=we}}return Ge.\u0275fac=function(re){return new(re||Ge)(m.\u0275\u0275inject(i.mF),m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(u.DOCUMENT))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();class se{constructor(L){if(this.scrollStrategy=new U,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,L){const re=Object.keys(L);for(const Oe of re)void 0!==L[Oe]&&(this[Oe]=L[Oe])}}}class qe{constructor(L,re){this.connectionPair=L,this.scrollableViewProperties=re}}class Fe{constructor(L,re,Oe,ue,we,Ee,ie,ve,Ze){this._portalOutlet=L,this._host=re,this._pane=Oe,this._config=ue,this._ngZone=we,this._keyboardDispatcher=Ee,this._document=ie,this._location=ve,this._outsideClickDispatcher=Ze,this._backdropElement=null,this._backdropClick=new T.x,this._attachments=new T.x,this._detachments=new T.x,this._locationChanges=S.w0.EMPTY,this._backdropClickHandler=it=>this._backdropClick.next(it),this._keydownEvents=new T.x,this._outsidePointerEvents=new T.x,ue.scrollStrategy&&(this._scrollStrategy=ue.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ue.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(L){let re=this._portalOutlet.attach(L);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,A.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),re}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(){var L;const re=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),null===(L=this._host)||void 0===L||L.remove(),this._previousHostParent=this._pane=this._host=null,re&&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=Object.assign(Object.assign({},this._config),L),this._updateElementSize()}setDirection(L){this._config=Object.assign(Object.assign({},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,c.HM)(this._config.width),L.height=(0,c.HM)(this._config.height),L.minWidth=(0,c.HM)(this._config.minWidth),L.minHeight=(0,c.HM)(this._config.minHeight),L.maxWidth=(0,c.HM)(this._config.maxWidth),L.maxHeight=(0,c.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._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?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)return;let re;const Oe=()=>{L&&(L.removeEventListener("click",this._backdropClickHandler),L.removeEventListener("transitionend",Oe),this._disposeBackdrop(L)),this._config.backdropClass&&this._toggleClasses(L,this._config.backdropClass,!1),clearTimeout(re)};L.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{L.addEventListener("transitionend",Oe)}),L.style.pointerEvents="none",re=this._ngZone.runOutsideAngular(()=>setTimeout(Oe,500))}_toggleClasses(L,re,Oe){const ue=(0,c.Eq)(re||[]).filter(we=>!!we);ue.length&&(Oe?L.classList.add(...ue):L.classList.remove(...ue))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const L=this._ngZone.onStable.pipe((0,M.R)((0,d.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.remove(),this._backdropElement===L&&(this._backdropElement=null))}}let X=(()=>{class Ge{constructor(re,Oe){this._platform=Oe,this._document=re}ngOnDestroy(){var re;null===(re=this._containerElement)||void 0===re||re.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const re="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const ue=this._document.querySelectorAll(`.${re}[platform="server"], .${re}[platform="test"]`);for(let we=0;we<ue.length;we++)ue[we].remove()}const Oe=this._document.createElement("div");Oe.classList.add(re),(0,s.Oy)()?Oe.setAttribute("platform","test"):this._platform.isBrowser||Oe.setAttribute("platform","server"),this._document.body.appendChild(Oe),this._containerElement=Oe}}return Ge.\u0275fac=function(re){return new(re||Ge)(m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const le="cdk-overlay-connected-position-bounding-box",Ae=/([A-Za-z%]+)$/;class ne{constructor(L,re,Oe,ue,we){this._viewportRuler=re,this._document=Oe,this._platform=ue,this._overlayContainer=we,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 T.x,this._resizeSubscription=S.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(L)}get positions(){return this._preferredPositions}attach(L){this._validatePositions(),L.hostElement.classList.add(le),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,re=this._overlayRect,Oe=this._viewportRect,ue=this._containerRect,we=[];let Ee;for(let ie of this._preferredPositions){let ve=this._getOriginPoint(L,ue,ie),Ze=this._getOverlayPoint(ve,re,ie),it=this._getOverlayFit(Ze,re,Oe,ie);if(it.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ie,ve);this._canFitWithFlexibleDimensions(it,Ze,Oe)?we.push({position:ie,origin:ve,overlayRect:re,boundingBoxRect:this._calculateBoundingBoxRect(ve,ie)}):(!Ee||Ee.overlayFit.visibleArea<it.visibleArea)&&(Ee={overlayFit:it,overlayPoint:Ze,originPoint:ve,position:ie,overlayRect:re})}if(we.length){let ie=null,ve=-1;for(const Ze of we){const it=Ze.boundingBoxRect.width*Ze.boundingBoxRect.height*(Ze.position.weight||1);it>ve&&(ve=it,ie=Ze)}return this._isPushed=!1,void this._applyPosition(ie.position,ie.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ee.position,Ee.originPoint);this._applyPosition(Ee.position,Ee.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ke(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(le),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 re=this._getOriginPoint(this._originRect,this._containerRect,L);this._applyPosition(L,re)}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,re,Oe){let ue,we;if("center"==Oe.originX)ue=L.left+L.width/2;else{const Ee=this._isRtl()?L.right:L.left,ie=this._isRtl()?L.left:L.right;ue="start"==Oe.originX?Ee:ie}return re.left<0&&(ue-=re.left),we="center"==Oe.originY?L.top+L.height/2:"top"==Oe.originY?L.top:L.bottom,re.top<0&&(we-=re.top),{x:ue,y:we}}_getOverlayPoint(L,re,Oe){let ue,we;return ue="center"==Oe.overlayX?-re.width/2:"start"===Oe.overlayX?this._isRtl()?-re.width:0:this._isRtl()?0:-re.width,we="center"==Oe.overlayY?-re.height/2:"top"==Oe.overlayY?0:-re.height,{x:L.x+ue,y:L.y+we}}_getOverlayFit(L,re,Oe,ue){const we=tt(re);let{x:Ee,y:ie}=L,ve=this._getOffset(ue,"x"),Ze=this._getOffset(ue,"y");ve&&(Ee+=ve),Ze&&(ie+=Ze);let ft=0-ie,Dt=ie+we.height-Oe.height,Bt=this._subtractOverflows(we.width,0-Ee,Ee+we.width-Oe.width),Jt=this._subtractOverflows(we.height,ft,Dt),Ft=Bt*Jt;return{visibleArea:Ft,isCompletelyWithinViewport:we.width*we.height===Ft,fitsInViewportVertically:Jt===we.height,fitsInViewportHorizontally:Bt==we.width}}_canFitWithFlexibleDimensions(L,re,Oe){if(this._hasFlexibleDimensions){const ue=Oe.bottom-re.y,we=Oe.right-re.x,Ee=_e(this._overlayRef.getConfig().minHeight),ie=_e(this._overlayRef.getConfig().minWidth),Ze=L.fitsInViewportHorizontally||null!=ie&&ie<=we;return(L.fitsInViewportVertically||null!=Ee&&Ee<=ue)&&Ze}return!1}_pushOverlayOnScreen(L,re,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:L.x+this._previousPushAmount.x,y:L.y+this._previousPushAmount.y};const ue=tt(re),we=this._viewportRect,Ee=Math.max(L.x+ue.width-we.width,0),ie=Math.max(L.y+ue.height-we.height,0),ve=Math.max(we.top-Oe.top-L.y,0),Ze=Math.max(we.left-Oe.left-L.x,0);let it=0,ht=0;return it=ue.width<=we.width?Ze||-Ee:L.x<this._viewportMargin?we.left-Oe.left-L.x:0,ht=ue.height<=we.height?ve||-ie:L.y<this._viewportMargin?we.top-Oe.top-L.y:0,this._previousPushAmount={x:it,y:ht},{x:L.x+it,y:L.y+ht}}_applyPosition(L,re){if(this._setTransformOrigin(L),this._setOverlayElementStyles(re,L),this._setBoundingBoxStyles(re,L),L.panelClass&&this._addPanelClasses(L.panelClass),this._lastPosition=L,this._positionChanges.observers.length){const Oe=this._getScrollVisibility(),ue=new qe(L,Oe);this._positionChanges.next(ue)}this._isInitialRender=!1}_setTransformOrigin(L){if(!this._transformOriginSelector)return;const re=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Oe,ue=L.overlayY;Oe="center"===L.overlayX?"center":this._isRtl()?"start"===L.overlayX?"right":"left":"start"===L.overlayX?"left":"right";for(let we=0;we<re.length;we++)re[we].style.transformOrigin=`${Oe} ${ue}`}_calculateBoundingBoxRect(L,re){const Oe=this._viewportRect,ue=this._isRtl();let we,Ee,ie,it,ht,ft;if("top"===re.overlayY)Ee=L.y,we=Oe.height-Ee+this._viewportMargin;else if("bottom"===re.overlayY)ie=Oe.height-L.y+2*this._viewportMargin,we=Oe.height-ie+this._viewportMargin;else{const Dt=Math.min(Oe.bottom-L.y+Oe.top,L.y),Bt=this._lastBoundingBoxSize.height;we=2*Dt,Ee=L.y-Dt,we>Bt&&!this._isInitialRender&&!this._growAfterOpen&&(Ee=L.y-Bt/2)}if("end"===re.overlayX&&!ue||"start"===re.overlayX&&ue)ft=Oe.width-L.x+this._viewportMargin,it=L.x-this._viewportMargin;else if("start"===re.overlayX&&!ue||"end"===re.overlayX&&ue)ht=L.x,it=Oe.right-L.x;else{const Dt=Math.min(Oe.right-L.x+Oe.left,L.x),Bt=this._lastBoundingBoxSize.width;it=2*Dt,ht=L.x-Dt,it>Bt&&!this._isInitialRender&&!this._growAfterOpen&&(ht=L.x-Bt/2)}return{top:Ee,left:ht,bottom:ie,right:ft,width:it,height:we}}_setBoundingBoxStyles(L,re){const Oe=this._calculateBoundingBoxRect(L,re);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const ue={};if(this._hasExactPosition())ue.top=ue.left="0",ue.bottom=ue.right=ue.maxHeight=ue.maxWidth="",ue.width=ue.height="100%";else{const we=this._overlayRef.getConfig().maxHeight,Ee=this._overlayRef.getConfig().maxWidth;ue.height=(0,c.HM)(Oe.height),ue.top=(0,c.HM)(Oe.top),ue.bottom=(0,c.HM)(Oe.bottom),ue.width=(0,c.HM)(Oe.width),ue.left=(0,c.HM)(Oe.left),ue.right=(0,c.HM)(Oe.right),ue.alignItems="center"===re.overlayX?"center":"end"===re.overlayX?"flex-end":"flex-start",ue.justifyContent="center"===re.overlayY?"center":"bottom"===re.overlayY?"flex-end":"flex-start",we&&(ue.maxHeight=(0,c.HM)(we)),Ee&&(ue.maxWidth=(0,c.HM)(Ee))}this._lastBoundingBoxSize=Oe,Ke(this._boundingBox.style,ue)}_resetBoundingBoxStyles(){Ke(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ke(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(L,re){const Oe={},ue=this._hasExactPosition(),we=this._hasFlexibleDimensions,Ee=this._overlayRef.getConfig();if(ue){const it=this._viewportRuler.getViewportScrollPosition();Ke(Oe,this._getExactOverlayY(re,L,it)),Ke(Oe,this._getExactOverlayX(re,L,it))}else Oe.position="static";let ie="",ve=this._getOffset(re,"x"),Ze=this._getOffset(re,"y");ve&&(ie+=`translateX(${ve}px) `),Ze&&(ie+=`translateY(${Ze}px)`),Oe.transform=ie.trim(),Ee.maxHeight&&(ue?Oe.maxHeight=(0,c.HM)(Ee.maxHeight):we&&(Oe.maxHeight="")),Ee.maxWidth&&(ue?Oe.maxWidth=(0,c.HM)(Ee.maxWidth):we&&(Oe.maxWidth="")),Ke(this._pane.style,Oe)}_getExactOverlayY(L,re,Oe){let ue={top:"",bottom:""},we=this._getOverlayPoint(re,this._overlayRect,L);return this._isPushed&&(we=this._pushOverlayOnScreen(we,this._overlayRect,Oe)),"bottom"===L.overlayY?ue.bottom=this._document.documentElement.clientHeight-(we.y+this._overlayRect.height)+"px":ue.top=(0,c.HM)(we.y),ue}_getExactOverlayX(L,re,Oe){let Ee,ue={left:"",right:""},we=this._getOverlayPoint(re,this._overlayRect,L);return this._isPushed&&(we=this._pushOverlayOnScreen(we,this._overlayRect,Oe)),Ee=this._isRtl()?"end"===L.overlayX?"left":"right":"end"===L.overlayX?"right":"left","right"===Ee?ue.right=this._document.documentElement.clientWidth-(we.x+this._overlayRect.width)+"px":ue.left=(0,c.HM)(we.x),ue}_getScrollVisibility(){const L=this._getOriginRect(),re=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(ue=>ue.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Se(L,Oe),isOriginOutsideView:ae(L,Oe),isOverlayClipped:Se(re,Oe),isOverlayOutsideView:ae(re,Oe)}}_subtractOverflows(L,...re){return re.reduce((Oe,ue)=>Oe-Math.max(ue,0),L)}_getNarrowedViewportRect(){const L=this._document.documentElement.clientWidth,re=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+L-this._viewportMargin,bottom:Oe.top+re-this._viewportMargin,width:L-2*this._viewportMargin,height:re-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(L,re){return"x"===re?null==L.offsetX?this._offsetX:L.offsetX:null==L.offsetY?this._offsetY:L.offsetY}_validatePositions(){}_addPanelClasses(L){this._pane&&(0,c.Eq)(L).forEach(re=>{""!==re&&-1===this._appliedPanelClasses.indexOf(re)&&(this._appliedPanelClasses.push(re),this._pane.classList.add(re))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(L=>{this._pane.classList.remove(L)}),this._appliedPanelClasses=[])}_getOriginRect(){const L=this._origin;if(L instanceof m.ElementRef)return L.nativeElement.getBoundingClientRect();if(L instanceof Element)return L.getBoundingClientRect();const re=L.width||0,Oe=L.height||0;return{top:L.y,bottom:L.y+Oe,left:L.x,right:L.x+re,height:Oe,width:re}}}function Ke(Ge,L){for(let re in L)L.hasOwnProperty(re)&&(Ge[re]=L[re]);return Ge}function _e(Ge){if("number"!=typeof Ge&&null!=Ge){const[L,re]=Ge.split(Ae);return re&&"px"!==re?null:parseFloat(L)}return Ge||null}function tt(Ge){return{top:Math.floor(Ge.top),right:Math.floor(Ge.right),bottom:Math.floor(Ge.bottom),left:Math.floor(Ge.left),width:Math.floor(Ge.width),height:Math.floor(Ge.height)}}const Ce="cdk-global-overlay-wrapper";class He{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(L){const re=L.getConfig();this._overlayRef=L,this._width&&!re.width&&L.updateSize({width:this._width}),this._height&&!re.height&&L.updateSize({height:this._height}),L.hostElement.classList.add(Ce),this._isDisposed=!1}top(L=""){return this._bottomOffset="",this._topOffset=L,this._alignItems="flex-start",this}left(L=""){return this._rightOffset="",this._leftOffset=L,this._justifyContent="flex-start",this}bottom(L=""){return this._topOffset="",this._bottomOffset=L,this._alignItems="flex-end",this}right(L=""){return this._leftOffset="",this._rightOffset=L,this._justifyContent="flex-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._justifyContent="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,re=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:ue,height:we,maxWidth:Ee,maxHeight:ie}=Oe,ve=!("100%"!==ue&&"100vw"!==ue||Ee&&"100%"!==Ee&&"100vw"!==Ee),Ze=!("100%"!==we&&"100vh"!==we||ie&&"100%"!==ie&&"100vh"!==ie);L.position=this._cssPosition,L.marginLeft=ve?"0":this._leftOffset,L.marginTop=Ze?"0":this._topOffset,L.marginBottom=this._bottomOffset,L.marginRight=this._rightOffset,ve?re.justifyContent="flex-start":"center"===this._justifyContent?re.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?re.justifyContent="flex-end":"flex-end"===this._justifyContent&&(re.justifyContent="flex-start"):re.justifyContent=this._justifyContent,re.alignItems=Ze?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const L=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement,Oe=re.style;re.classList.remove(Ce),Oe.justifyContent=Oe.alignItems=L.marginTop=L.marginBottom=L.marginLeft=L.marginRight=L.position="",this._overlayRef=null,this._isDisposed=!0}}let ct=(()=>{class Ge{constructor(re,Oe,ue,we){this._viewportRuler=re,this._document=Oe,this._platform=ue,this._overlayContainer=we}global(){return new He}flexibleConnectedTo(re){return new ne(re,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ge.\u0275fac=function(re){return new(re||Ge)(m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4),m.\u0275\u0275inject(X))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),bt=(()=>{class Ge{constructor(re){this._attachedOverlays=[],this._document=re}ngOnDestroy(){this.detach()}add(re){this.remove(re),this._attachedOverlays.push(re)}remove(re){const Oe=this._attachedOverlays.indexOf(re);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}}return Ge.\u0275fac=function(re){return new(re||Ge)(m.\u0275\u0275inject(u.DOCUMENT))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),Be=(()=>{class Ge extends bt{constructor(re){super(re),this._keydownListener=Oe=>{const ue=this._attachedOverlays;for(let we=ue.length-1;we>-1;we--)if(ue[we]._keydownEvents.observers.length>0){ue[we]._keydownEvents.next(Oe);break}}}add(re){super.add(re),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ge.\u0275fac=function(re){return new(re||Ge)(m.\u0275\u0275inject(u.DOCUMENT))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),Xe=(()=>{class Ge extends bt{constructor(re,Oe){super(re),this._platform=Oe,this._cursorStyleIsSet=!1,this._pointerDownListener=ue=>{this._pointerDownEventTarget=(0,s.sA)(ue)},this._clickListener=ue=>{const we=(0,s.sA)(ue),Ee="click"===ue.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:we;this._pointerDownEventTarget=null;const ie=this._attachedOverlays.slice();for(let ve=ie.length-1;ve>-1;ve--){const Ze=ie[ve];if(!(Ze._outsidePointerEvents.observers.length<1)&&Ze.hasAttached()){if(Ze.overlayElement.contains(we)||Ze.overlayElement.contains(Ee))break;Ze._outsidePointerEvents.next(ue)}}}}add(re){if(super.add(re),!this._isAttached){const Oe=this._document.body;Oe.addEventListener("pointerdown",this._pointerDownListener,!0),Oe.addEventListener("click",this._clickListener,!0),Oe.addEventListener("auxclick",this._clickListener,!0),Oe.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Oe.style.cursor,Oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const re=this._document.body;re.removeEventListener("pointerdown",this._pointerDownListener,!0),re.removeEventListener("click",this._clickListener,!0),re.removeEventListener("auxclick",this._clickListener,!0),re.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(re.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ge.\u0275fac=function(re){return new(re||Ge)(m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),J=0,ge=(()=>{class Ge{constructor(re,Oe,ue,we,Ee,ie,ve,Ze,it,ht,ft){this.scrollStrategies=re,this._overlayContainer=Oe,this._componentFactoryResolver=ue,this._positionBuilder=we,this._keyboardDispatcher=Ee,this._injector=ie,this._ngZone=ve,this._document=Ze,this._directionality=it,this._location=ht,this._outsideClickDispatcher=ft}create(re){const Oe=this._createHostElement(),ue=this._createPaneElement(Oe),we=this._createPortalOutlet(ue),Ee=new se(re);return Ee.direction=Ee.direction||this._directionality.value,new Fe(we,Oe,ue,Ee,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(re){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+J++,Oe.classList.add("cdk-overlay-pane"),re.appendChild(Oe),Oe}_createHostElement(){const re=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(re),re}_createPortalOutlet(re){return this._appRef||(this._appRef=this._injector.get(m.ApplicationRef)),new D.u0(re,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ge.\u0275fac=function(re){return new(re||Ge)(m.\u0275\u0275inject(be),m.\u0275\u0275inject(X),m.\u0275\u0275inject(m.ComponentFactoryResolver),m.\u0275\u0275inject(ct),m.\u0275\u0275inject(Be),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(_.Is),m.\u0275\u0275inject(u.Location),m.\u0275\u0275inject(Xe))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();const yt={provide:new m.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[ge],useFactory:function mt(Ge){return()=>Ge.scrollStrategies.reposition()}};let It=(()=>{class Ge{}return Ge.\u0275fac=function(re){return new(re||Ge)},Ge.\u0275mod=m.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=m.\u0275\u0275defineInjector({providers:[ge,yt],imports:[[_.vT,D.eL,i.Cl],i.Cl]}),Ge})()},925:(Ve,g,l)=>{"use strict";l.d(g,{t4:()=>c,ud:()=>s,sA:()=>me,ht:()=>Se,kV:()=>ae,Oy:()=>be,i$:()=>A,Mq:()=>k});var i=l(5e3),u=l(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(se){m=!1}let S,b,pe,c=(()=>{class se{constructor(Le){this._platformId=Le,this.isBrowser=this._platformId?(0,u.isPlatformBrowser)(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&&!m)&&"undefined"!=typeof CSS&&!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}}return se.\u0275fac=function(Le){return new(Le||se)(i.\u0275\u0275inject(i.PLATFORM_ID))},se.\u0275prov=i.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),s=(()=>{class se{}return se.\u0275fac=function(Le){return new(Le||se)},se.\u0275mod=i.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=i.\u0275\u0275defineInjector({}),se})();function A(se){return function d(){if(null==S&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>S=!0}))}finally{S=S||!1}return S}()?se:!!se.capture}function k(){if(null==b){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return b=!1,b;if("scrollBehavior"in document.documentElement.style)b=!0;else{const se=Element.prototype.scrollTo;b=!!se&&!/\{\s*\[native code\]\s*\}/.test(se.toString())}}return b}function ae(se){if(function U(){if(null==pe){const se="undefined"!=typeof document?document.head:null;pe=!(!se||!se.createShadowRoot&&!se.attachShadow)}return pe}()){const Me=se.getRootNode?se.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Me instanceof ShadowRoot)return Me}return null}function Se(){let se="undefined"!=typeof document&&document?document.activeElement:null;for(;se&&se.shadowRoot;){const Me=se.shadowRoot.activeElement;if(Me===se)break;se=Me}return se}function me(se){return se.composedPath?se.composedPath()[0]:se.target}function be(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ve,g,l)=>{"use strict";l.d(g,{en:()=>b,ig:()=>U,Pl:()=>Se,C5:()=>d,u0:()=>$,eL:()=>be,UE:()=>A});var i=l(5e3),u=l(9808);class S{attach(Le){return this._attachedHost=Le,Le.attach(this)}detach(){let Le=this._attachedHost;null!=Le&&(this._attachedHost=null,Le.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Le){this._attachedHost=Le}}class d extends S{constructor(Le,qe,at,te){super(),this.component=Le,this.viewContainerRef=qe,this.injector=at,this.componentFactoryResolver=te}}class A extends S{constructor(Le,qe,at){super(),this.templateRef=Le,this.viewContainerRef=qe,this.context=at}get origin(){return this.templateRef.elementRef}attach(Le,qe=this.context){return this.context=qe,super.attach(Le)}detach(){return this.context=void 0,super.detach()}}class M extends S{constructor(Le){super(),this.element=Le instanceof i.ElementRef?Le.nativeElement:Le}}class b{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Le){return Le instanceof d?(this._attachedPortal=Le,this.attachComponentPortal(Le)):Le instanceof A?(this._attachedPortal=Le,this.attachTemplatePortal(Le)):this.attachDomPortal&&Le instanceof M?(this._attachedPortal=Le,this.attachDomPortal(Le)):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(Le){this._disposeFn=Le}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class $ extends b{constructor(Le,qe,at,te,Fe){super(),this.outletElement=Le,this._componentFactoryResolver=qe,this._appRef=at,this._defaultInjector=te,this.attachDomPortal=X=>{const le=X.element,Ae=this._document.createComment("dom-portal");le.parentNode.insertBefore(Ae,le),this.outletElement.appendChild(le),this._attachedPortal=X,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(le,Ae)})},this._document=Fe}attachComponentPortal(Le){const at=(Le.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Le.component);let te;return Le.viewContainerRef?(te=Le.viewContainerRef.createComponent(at,Le.viewContainerRef.length,Le.injector||Le.viewContainerRef.injector),this.setDisposeFn(()=>te.destroy())):(te=at.create(Le.injector||this._defaultInjector),this._appRef.attachView(te.hostView),this.setDisposeFn(()=>{this._appRef.detachView(te.hostView),te.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(te)),this._attachedPortal=Le,te}attachTemplatePortal(Le){let qe=Le.viewContainerRef,at=qe.createEmbeddedView(Le.templateRef,Le.context);return at.rootNodes.forEach(te=>this.outletElement.appendChild(te)),at.detectChanges(),this.setDisposeFn(()=>{let te=qe.indexOf(at);-1!==te&&qe.remove(te)}),this._attachedPortal=Le,at}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Le){return Le.hostView.rootNodes[0]}}let U=(()=>{class Me extends A{constructor(qe,at){super(qe,at)}}return Me.\u0275fac=function(qe){return new(qe||Me)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef))},Me.\u0275dir=i.\u0275\u0275defineDirective({type:Me,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.\u0275\u0275InheritDefinitionFeature]}),Me})(),Se=(()=>{class Me extends b{constructor(qe,at,te){super(),this._componentFactoryResolver=qe,this._viewContainerRef=at,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=Fe=>{const X=Fe.element,le=this._document.createComment("dom-portal");Fe.setAttachedHost(this),X.parentNode.insertBefore(le,X),this._getRootNode().appendChild(X),this._attachedPortal=Fe,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(X,le)})},this._document=te}get portal(){return this._attachedPortal}set portal(qe){this.hasAttached()&&!qe&&!this._isInitialized||(this.hasAttached()&&super.detach(),qe&&super.attach(qe),this._attachedPortal=qe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(qe){qe.setAttachedHost(this);const at=null!=qe.viewContainerRef?qe.viewContainerRef:this._viewContainerRef,Fe=(qe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(qe.component),X=at.createComponent(Fe,at.length,qe.injector||at.injector);return at!==this._viewContainerRef&&this._getRootNode().appendChild(X.hostView.rootNodes[0]),super.setDisposeFn(()=>X.destroy()),this._attachedPortal=qe,this._attachedRef=X,this.attached.emit(X),X}attachTemplatePortal(qe){qe.setAttachedHost(this);const at=this._viewContainerRef.createEmbeddedView(qe.templateRef,qe.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=qe,this._attachedRef=at,this.attached.emit(at),at}_getRootNode(){const qe=this._viewContainerRef.element.nativeElement;return qe.nodeType===qe.ELEMENT_NODE?qe:qe.parentNode}}return Me.\u0275fac=function(qe){return new(qe||Me)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(u.DOCUMENT))},Me.\u0275dir=i.\u0275\u0275defineDirective({type:Me,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.\u0275\u0275InheritDefinitionFeature]}),Me})(),be=(()=>{class Me{}return Me.\u0275fac=function(qe){return new(qe||Me)},Me.\u0275mod=i.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=i.\u0275\u0275defineInjector({}),Me})()},9071:(Ve,g,l)=>{"use strict";l.d(g,{ZD:()=>le,mF:()=>be,Cl:()=>Ae,rL:()=>Le});var i=l(3191),u=l(5e3),m=l(6758),c=l(9646),s=l(9751),_=l(4968),S=(l(29),l(3101),l(453)),d=l(9300),A=l(9808),M=l(925),b=l(226);let be=(()=>{class ne{constructor(_e,tt,Ce){this._ngZone=_e,this._platform=tt,this._scrolled=new m.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ce}register(_e){this.scrollContainers.has(_e)||this.scrollContainers.set(_e,_e.elementScrolled().subscribe(()=>this._scrolled.next(_e)))}deregister(_e){const tt=this.scrollContainers.get(_e);tt&&(tt.unsubscribe(),this.scrollContainers.delete(_e))}scrolled(_e=20){return this._platform.isBrowser?new s.y(tt=>{this._globalSubscription||this._addGlobalListener();const Ce=_e>0?this._scrolled.pipe((0,S.e)(_e)).subscribe(tt):this._scrolled.subscribe(tt);return this._scrolledCount++,()=>{Ce.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,c.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((_e,tt)=>this.deregister(tt)),this._scrolled.complete()}ancestorScrolled(_e,tt){const Ce=this.getAncestorScrollContainers(_e);return this.scrolled(tt).pipe((0,d.h)(He=>!He||Ce.indexOf(He)>-1))}getAncestorScrollContainers(_e){const tt=[];return this.scrollContainers.forEach((Ce,He)=>{this._scrollableContainsElement(He,_e)&&tt.push(He)}),tt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(_e,tt){let Ce=(0,i.fI)(tt),He=_e.getElementRef().nativeElement;do{if(Ce==He)return!0}while(Ce=Ce.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const _e=this._getWindow();return(0,_.R)(_e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ne.\u0275fac=function(_e){return new(_e||ne)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(M.t4),u.\u0275\u0275inject(A.DOCUMENT,8))},ne.\u0275prov=u.\u0275\u0275defineInjectable({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Le=(()=>{class ne{constructor(_e,tt,Ce){this._platform=_e,this._change=new m.x,this._changeListener=He=>{this._change.next(He)},this._document=Ce,tt.runOutsideAngular(()=>{if(_e.isBrowser){const He=this._getWindow();He.addEventListener("resize",this._changeListener),He.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const _e=this._getWindow();_e.removeEventListener("resize",this._changeListener),_e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const _e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),_e}getViewportRect(){const _e=this.getViewportScrollPosition(),{width:tt,height:Ce}=this.getViewportSize();return{top:_e.top,left:_e.left,bottom:_e.top+Ce,right:_e.left+tt,height:Ce,width:tt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const _e=this._document,tt=this._getWindow(),Ce=_e.documentElement,He=Ce.getBoundingClientRect();return{top:-He.top||_e.body.scrollTop||tt.scrollY||Ce.scrollTop||0,left:-He.left||_e.body.scrollLeft||tt.scrollX||Ce.scrollLeft||0}}change(_e=20){return _e>0?this._change.pipe((0,S.e)(_e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const _e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:_e.innerWidth,height:_e.innerHeight}:{width:0,height:0}}}return ne.\u0275fac=function(_e){return new(_e||ne)(u.\u0275\u0275inject(M.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(A.DOCUMENT,8))},ne.\u0275prov=u.\u0275\u0275defineInjectable({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),le=(()=>{class ne{}return ne.\u0275fac=function(_e){return new(_e||ne)},ne.\u0275mod=u.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=u.\u0275\u0275defineInjector({}),ne})(),Ae=(()=>{class ne{}return ne.\u0275fac=function(_e){return new(_e||ne)},ne.\u0275mod=u.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=u.\u0275\u0275defineInjector({imports:[[b.vT,M.ud,le],b.vT,le]}),ne})()},9808:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{APP_BASE_HREF:()=>Se,AsyncPipe:()=>ki,CommonModule:()=>Zi,CurrencyPipe:()=>wi,DATE_PIPE_DEFAULT_TIMEZONE:()=>rr,DOCUMENT:()=>D,DatePipe:()=>pi,DecimalPipe:()=>Qi,FormStyle:()=>X,FormatWidth:()=>Ae,HashLocationStrategy:()=>be,I18nPluralPipe:()=>or,I18nSelectPipe:()=>Gi,JsonPipe:()=>Ti,KeyValuePipe:()=>sr,LOCATION_INITIALIZED:()=>d,Location:()=>se,LocationStrategy:()=>U,LowerCasePipe:()=>yr,NgClass:()=>rn,NgComponentOutlet:()=>On,NgForOf:()=>yn,NgForOfContext:()=>Fn,NgIf:()=>Cn,NgIfContext:()=>sn,NgLocaleLocalization:()=>un,NgLocalization:()=>kt,NgPlural:()=>ai,NgPluralCase:()=>kn,NgStyle:()=>_r,NgSwitch:()=>jn,NgSwitchCase:()=>Vn,NgSwitchDefault:()=>hi,NgTemplateOutlet:()=>Ki,NumberFormatStyle:()=>te,NumberSymbol:()=>ne,PathLocationStrategy:()=>me,PercentPipe:()=>Jn,PlatformLocation:()=>T,Plural:()=>Fe,SlicePipe:()=>vi,TitleCasePipe:()=>Ni,TranslationWidth:()=>le,UpperCasePipe:()=>li,VERSION:()=>Cr,ViewportScroller:()=>Y,WeekDay:()=>Ke,XhrFactory:()=>fe,formatCurrency:()=>In,formatDate:()=>Bt,formatNumber:()=>Pe,formatPercent:()=>H,getCurrencySymbol:()=>we,getLocaleCurrencyCode:()=>mt,getLocaleCurrencyName:()=>Je,getLocaleCurrencySymbol:()=>ye,getLocaleDateFormat:()=>Xe,getLocaleDateTimeFormat:()=>ge,getLocaleDayNames:()=>Ce,getLocaleDayPeriods:()=>tt,getLocaleDirection:()=>re,getLocaleEraNames:()=>ct,getLocaleExtraDayPeriodRules:()=>Ge,getLocaleExtraDayPeriods:()=>L,getLocaleFirstDayOfWeek:()=>bt,getLocaleId:()=>_e,getLocaleMonthNames:()=>He,getLocaleNumberFormat:()=>Re,getLocaleNumberSymbol:()=>Ie,getLocalePluralCase:()=>It,getLocaleTimeFormat:()=>J,getLocaleWeekEndRange:()=>Be,getNumberOfCurrencyDigits:()=>ie,isPlatformBrowser:()=>Nn,isPlatformServer:()=>Vi,isPlatformWorkerApp:()=>$i,isPlatformWorkerUi:()=>Ii,registerLocaleData:()=>Lt,\u0275BrowserPlatformLocation:()=>A,\u0275DomAdapter:()=>_,\u0275NullViewportScroller:()=>G,\u0275PLATFORM_BROWSER_ID:()=>Si,\u0275PLATFORM_SERVER_ID:()=>Yi,\u0275PLATFORM_WORKER_APP_ID:()=>oi,\u0275PLATFORM_WORKER_UI_ID:()=>ji,\u0275getDOM:()=>m,\u0275parseCookieValue:()=>bn,\u0275setRootDomAdapter:()=>s});var i=l(5e3);let u=null;function m(){return u}function s(y){u||(u=y)}class _{}const D=new i.InjectionToken("DocumentToken");let T=(()=>{class y{historyGo(C){throw new Error("Not implemented")}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:function(){return function S(){return(0,i.\u0275\u0275inject)(A)}()},providedIn:"platform"}),y})();const d=new i.InjectionToken("Location Initialized");let A=(()=>{class y extends T{constructor(C){super(),this._doc=C,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(C){const V=m().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",C,!1),()=>V.removeEventListener("popstate",C)}onHashChange(C){const V=m().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",C,!1),()=>V.removeEventListener("hashchange",C)}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(C){this.location.pathname=C}pushState(C,V,De){M()?this._history.pushState(C,V,De):this.location.hash=De}replaceState(C,V,De){M()?this._history.replaceState(C,V,De):this.location.hash=De}forward(){this._history.forward()}back(){this._history.back()}historyGo(C=0){this._history.go(C)}getState(){return this._history.state}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275inject(D))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:function(){return function b(){return new A((0,i.\u0275\u0275inject)(D))}()},providedIn:"platform"}),y})();function M(){return!!window.history.pushState}function k(y,R){if(0==y.length)return R;if(0==R.length)return y;let C=0;return y.endsWith("/")&&C++,R.startsWith("/")&&C++,2==C?y+R.substring(1):1==C?y+R:y+"/"+R}function $(y){const R=y.match(/#|\?|$/),C=R&&R.index||y.length;return y.slice(0,C-("/"===y[C-1]?1:0))+y.slice(C)}function pe(y){return y&&"?"!==y[0]?"?"+y:y}let U=(()=>{class y{historyGo(C){throw new Error("Not implemented")}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:function(){return function ae(y){const R=(0,i.\u0275\u0275inject)(D).location;return new me((0,i.\u0275\u0275inject)(T),R&&R.origin||"")}()},providedIn:"root"}),y})();const Se=new i.InjectionToken("appBaseHref");let me=(()=>{class y extends U{constructor(C,V){if(super(),this._platformLocation=C,this._removeListenerFns=[],null==V&&(V=this._platformLocation.getBaseHrefFromDOM()),null==V)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=V}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(C){this._removeListenerFns.push(this._platformLocation.onPopState(C),this._platformLocation.onHashChange(C))}getBaseHref(){return this._baseHref}prepareExternalUrl(C){return k(this._baseHref,C)}path(C=!1){const V=this._platformLocation.pathname+pe(this._platformLocation.search),De=this._platformLocation.hash;return De&&C?`${V}${De}`:V}pushState(C,V,De,Ye){const ot=this.prepareExternalUrl(De+pe(Ye));this._platformLocation.pushState(C,V,ot)}replaceState(C,V,De,Ye){const ot=this.prepareExternalUrl(De+pe(Ye));this._platformLocation.replaceState(C,V,ot)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(C=0){var V,De;null===(De=(V=this._platformLocation).historyGo)||void 0===De||De.call(V,C)}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275inject(T),i.\u0275\u0275inject(Se,8))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac}),y})(),be=(()=>{class y extends U{constructor(C,V){super(),this._platformLocation=C,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(C){this._removeListenerFns.push(this._platformLocation.onPopState(C),this._platformLocation.onHashChange(C))}getBaseHref(){return this._baseHref}path(C=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(C){const V=k(this._baseHref,C);return V.length>0?"#"+V:V}pushState(C,V,De,Ye){let ot=this.prepareExternalUrl(De+pe(Ye));0==ot.length&&(ot=this._platformLocation.pathname),this._platformLocation.pushState(C,V,ot)}replaceState(C,V,De,Ye){let ot=this.prepareExternalUrl(De+pe(Ye));0==ot.length&&(ot=this._platformLocation.pathname),this._platformLocation.replaceState(C,V,ot)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(C=0){var V,De;null===(De=(V=this._platformLocation).historyGo)||void 0===De||De.call(V,C)}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275inject(T),i.\u0275\u0275inject(Se,8))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac}),y})(),se=(()=>{class y{constructor(C,V){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=C;const De=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=$(qe(De)),this._platformStrategy.onPopState(Ye=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ye.state,type:Ye.type})})}path(C=!1){return this.normalize(this._platformStrategy.path(C))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(C,V=""){return this.path()==this.normalize(C+pe(V))}normalize(C){return y.stripTrailingSlash(function Le(y,R){return y&&R.startsWith(y)?R.substring(y.length):R}(this._baseHref,qe(C)))}prepareExternalUrl(C){return C&&"/"!==C[0]&&(C="/"+C),this._platformStrategy.prepareExternalUrl(C)}go(C,V="",De=null){this._platformStrategy.pushState(De,"",C,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(C+pe(V)),De)}replaceState(C,V="",De=null){this._platformStrategy.replaceState(De,"",C,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(C+pe(V)),De)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(C=0){var V,De;null===(De=(V=this._platformStrategy).historyGo)||void 0===De||De.call(V,C)}onUrlChange(C){this._urlChangeListeners.push(C),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}))}_notifyUrlChangeListeners(C="",V){this._urlChangeListeners.forEach(De=>De(C,V))}subscribe(C,V,De){return this._subject.subscribe({next:C,error:V,complete:De})}}return y.normalizeQueryParams=pe,y.joinWithSlash=k,y.stripTrailingSlash=$,y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275inject(U),i.\u0275\u0275inject(T))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:function(){return function Me(){return new se((0,i.\u0275\u0275inject)(U),(0,i.\u0275\u0275inject)(T))}()},providedIn:"root"}),y})();function qe(y){return y.replace(/\/index.html$/,"")}const at={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var te=(()=>((te=te||{})[te.Decimal=0]="Decimal",te[te.Percent=1]="Percent",te[te.Currency=2]="Currency",te[te.Scientific=3]="Scientific",te))(),Fe=(()=>((Fe=Fe||{})[Fe.Zero=0]="Zero",Fe[Fe.One=1]="One",Fe[Fe.Two=2]="Two",Fe[Fe.Few=3]="Few",Fe[Fe.Many=4]="Many",Fe[Fe.Other=5]="Other",Fe))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),le=(()=>((le=le||{})[le.Narrow=0]="Narrow",le[le.Abbreviated=1]="Abbreviated",le[le.Wide=2]="Wide",le[le.Short=3]="Short",le))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),ne=(()=>((ne=ne||{})[ne.Decimal=0]="Decimal",ne[ne.Group=1]="Group",ne[ne.List=2]="List",ne[ne.PercentSign=3]="PercentSign",ne[ne.PlusSign=4]="PlusSign",ne[ne.MinusSign=5]="MinusSign",ne[ne.Exponential=6]="Exponential",ne[ne.SuperscriptingExponent=7]="SuperscriptingExponent",ne[ne.PerMille=8]="PerMille",ne[ne.Infinity=9]="Infinity",ne[ne.NaN=10]="NaN",ne[ne.TimeSeparator=11]="TimeSeparator",ne[ne.CurrencyDecimal=12]="CurrencyDecimal",ne[ne.CurrencyGroup=13]="CurrencyGroup",ne))(),Ke=(()=>((Ke=Ke||{})[Ke.Sunday=0]="Sunday",Ke[Ke.Monday=1]="Monday",Ke[Ke.Tuesday=2]="Tuesday",Ke[Ke.Wednesday=3]="Wednesday",Ke[Ke.Thursday=4]="Thursday",Ke[Ke.Friday=5]="Friday",Ke[Ke.Saturday=6]="Saturday",Ke))();function _e(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.LocaleId]}function tt(y,R,C){const V=(0,i.\u0275findLocaleData)(y),Ye=Oe([V[i.\u0275LocaleDataIndex.DayPeriodsFormat],V[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],R);return Oe(Ye,C)}function Ce(y,R,C){const V=(0,i.\u0275findLocaleData)(y),Ye=Oe([V[i.\u0275LocaleDataIndex.DaysFormat],V[i.\u0275LocaleDataIndex.DaysStandalone]],R);return Oe(Ye,C)}function He(y,R,C){const V=(0,i.\u0275findLocaleData)(y),Ye=Oe([V[i.\u0275LocaleDataIndex.MonthsFormat],V[i.\u0275LocaleDataIndex.MonthsStandalone]],R);return Oe(Ye,C)}function ct(y,R){return Oe((0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.Eras],R)}function bt(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.FirstDayOfWeek]}function Be(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.WeekendRange]}function Xe(y,R){return Oe((0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.DateFormat],R)}function J(y,R){return Oe((0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.TimeFormat],R)}function ge(y,R){return Oe((0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.DateTimeFormat],R)}function Ie(y,R){const C=(0,i.\u0275findLocaleData)(y),V=C[i.\u0275LocaleDataIndex.NumberSymbols][R];if(void 0===V){if(R===ne.CurrencyDecimal)return C[i.\u0275LocaleDataIndex.NumberSymbols][ne.Decimal];if(R===ne.CurrencyGroup)return C[i.\u0275LocaleDataIndex.NumberSymbols][ne.Group]}return V}function Re(y,R){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.NumberFormats][R]}function ye(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Je(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.CurrencyName]||null}function mt(y){return(0,i.\u0275getLocaleCurrencyCode)(y)}const It=i.\u0275getLocalePluralCase;function ut(y){if(!y[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${y[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ge(y){const R=(0,i.\u0275findLocaleData)(y);return ut(R),(R[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(V=>"string"==typeof V?ue(V):[ue(V[0]),ue(V[1])])}function L(y,R,C){const V=(0,i.\u0275findLocaleData)(y);ut(V);const Ye=Oe([V[i.\u0275LocaleDataIndex.ExtraData][0],V[i.\u0275LocaleDataIndex.ExtraData][1]],R)||[];return Oe(Ye,C)||[]}function re(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.Directionality]}function Oe(y,R){for(let C=R;C>-1;C--)if(void 0!==y[C])return y[C];throw new Error("Locale data API: locale data undefined")}function ue(y){const[R,C]=y.split(":");return{hours:+R,minutes:+C}}function we(y,R,C="en"){const V=function yt(y){return(0,i.\u0275findLocaleData)(y)[i.\u0275LocaleDataIndex.Currencies]}(C)[y]||at[y]||[],De=V[1];return"narrow"===R&&"string"==typeof De?De:V[0]||y}function ie(y){let R;const C=at[y];return C&&(R=C[2]),"number"==typeof R?R:2}const ve=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ze={},it=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ht=(()=>((ht=ht||{})[ht.Short=0]="Short",ht[ht.ShortGMT=1]="ShortGMT",ht[ht.Long=2]="Long",ht[ht.Extended=3]="Extended",ht))(),ft=(()=>((ft=ft||{})[ft.FullYear=0]="FullYear",ft[ft.Month=1]="Month",ft[ft.Date=2]="Date",ft[ft.Hours=3]="Hours",ft[ft.Minutes=4]="Minutes",ft[ft.Seconds=5]="Seconds",ft[ft.FractionalSeconds=6]="FractionalSeconds",ft[ft.Day=7]="Day",ft))(),Dt=(()=>((Dt=Dt||{})[Dt.DayPeriods=0]="DayPeriods",Dt[Dt.Days=1]="Days",Dt[Dt.Months=2]="Months",Dt[Dt.Eras=3]="Eras",Dt))();function Bt(y,R,C,V){let De=function Ue(y){if($e(y))return y;if("number"==typeof y&&!isNaN(y))return new Date(y);if("string"==typeof y){if(y=y.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(y)){const[De,Ye=1,ot=1]=y.split("-").map(Et=>+Et);return Jt(De,Ye-1,ot)}const C=parseFloat(y);if(!isNaN(y-C))return new Date(C);let V;if(V=y.match(ve))return function he(y){const R=new Date(0);let C=0,V=0;const De=y[8]?R.setUTCFullYear:R.setFullYear,Ye=y[8]?R.setUTCHours:R.setHours;y[9]&&(C=Number(y[9]+y[10]),V=Number(y[9]+y[11])),De.call(R,Number(y[1]),Number(y[2])-1,Number(y[3]));const ot=Number(y[4]||0)-C,Et=Number(y[5]||0)-V,Pt=Number(y[6]||0),xt=Math.floor(1e3*parseFloat("0."+(y[7]||0)));return Ye.call(R,ot,Et,Pt,xt),R}(V)}const R=new Date(y);if(!$e(R))throw new Error(`Unable to convert "${y}" into a date`);return R}(y);R=Ft(C,R)||R;let Et,ot=[];for(;R;){if(Et=it.exec(R),!Et){ot.push(R);break}{ot=ot.concat(Et.slice(1));const Vt=ot.pop();if(!Vt)break;R=Vt}}let Pt=De.getTimezoneOffset();V&&(Pt=Wt(V,Pt),De=function je(y,R,C){const V=C?-1:1,De=y.getTimezoneOffset();return function Ht(y,R){return(y=new Date(y.getTime())).setMinutes(y.getMinutes()+R),y}(y,V*(Wt(R,De)-De))}(De,V,!0));let xt="";return ot.forEach(Vt=>{const Qt=function st(y){if(Ne[y])return Ne[y];let R;switch(y){case"G":case"GG":case"GGG":R=Kt(Dt.Eras,le.Abbreviated);break;case"GGGG":R=Kt(Dt.Eras,le.Wide);break;case"GGGGG":R=Kt(Dt.Eras,le.Narrow);break;case"y":R=Tt(ft.FullYear,1,0,!1,!0);break;case"yy":R=Tt(ft.FullYear,2,0,!0,!0);break;case"yyy":R=Tt(ft.FullYear,3,0,!1,!0);break;case"yyyy":R=Tt(ft.FullYear,4,0,!1,!0);break;case"Y":R=j(1);break;case"YY":R=j(2,!0);break;case"YYY":R=j(3);break;case"YYYY":R=j(4);break;case"M":case"L":R=Tt(ft.Month,1,1);break;case"MM":case"LL":R=Tt(ft.Month,2,1);break;case"MMM":R=Kt(Dt.Months,le.Abbreviated);break;case"MMMM":R=Kt(Dt.Months,le.Wide);break;case"MMMMM":R=Kt(Dt.Months,le.Narrow);break;case"LLL":R=Kt(Dt.Months,le.Abbreviated,X.Standalone);break;case"LLLL":R=Kt(Dt.Months,le.Wide,X.Standalone);break;case"LLLLL":R=Kt(Dt.Months,le.Narrow,X.Standalone);break;case"w":R=E(1);break;case"ww":R=E(2);break;case"W":R=E(1,!0);break;case"d":R=Tt(ft.Date,1);break;case"dd":R=Tt(ft.Date,2);break;case"c":case"cc":R=Tt(ft.Day,1);break;case"ccc":R=Kt(Dt.Days,le.Abbreviated,X.Standalone);break;case"cccc":R=Kt(Dt.Days,le.Wide,X.Standalone);break;case"ccccc":R=Kt(Dt.Days,le.Narrow,X.Standalone);break;case"cccccc":R=Kt(Dt.Days,le.Short,X.Standalone);break;case"E":case"EE":case"EEE":R=Kt(Dt.Days,le.Abbreviated);break;case"EEEE":R=Kt(Dt.Days,le.Wide);break;case"EEEEE":R=Kt(Dt.Days,le.Narrow);break;case"EEEEEE":R=Kt(Dt.Days,le.Short);break;case"a":case"aa":case"aaa":R=Kt(Dt.DayPeriods,le.Abbreviated);break;case"aaaa":R=Kt(Dt.DayPeriods,le.Wide);break;case"aaaaa":R=Kt(Dt.DayPeriods,le.Narrow);break;case"b":case"bb":case"bbb":R=Kt(Dt.DayPeriods,le.Abbreviated,X.Standalone,!0);break;case"bbbb":R=Kt(Dt.DayPeriods,le.Wide,X.Standalone,!0);break;case"bbbbb":R=Kt(Dt.DayPeriods,le.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":R=Kt(Dt.DayPeriods,le.Abbreviated,X.Format,!0);break;case"BBBB":R=Kt(Dt.DayPeriods,le.Wide,X.Format,!0);break;case"BBBBB":R=Kt(Dt.DayPeriods,le.Narrow,X.Format,!0);break;case"h":R=Tt(ft.Hours,1,-12);break;case"hh":R=Tt(ft.Hours,2,-12);break;case"H":R=Tt(ft.Hours,1);break;case"HH":R=Tt(ft.Hours,2);break;case"m":R=Tt(ft.Minutes,1);break;case"mm":R=Tt(ft.Minutes,2);break;case"s":R=Tt(ft.Seconds,1);break;case"ss":R=Tt(ft.Seconds,2);break;case"S":R=Tt(ft.FractionalSeconds,1);break;case"SS":R=Tt(ft.FractionalSeconds,2);break;case"SSS":R=Tt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":R=de(ht.Short);break;case"ZZZZZ":R=de(ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":R=de(ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":R=de(ht.Long);break;default:return null}return Ne[y]=R,R}(Vt);xt+=Qt?Qt(De,C,Pt):"''"===Vt?"'":Vt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),xt}function Jt(y,R,C){const V=new Date(0);return V.setFullYear(y,R,C),V.setHours(0,0,0),V}function Ft(y,R){const C=_e(y);if(Ze[C]=Ze[C]||{},Ze[C][R])return Ze[C][R];let V="";switch(R){case"shortDate":V=Xe(y,Ae.Short);break;case"mediumDate":V=Xe(y,Ae.Medium);break;case"longDate":V=Xe(y,Ae.Long);break;case"fullDate":V=Xe(y,Ae.Full);break;case"shortTime":V=J(y,Ae.Short);break;case"mediumTime":V=J(y,Ae.Medium);break;case"longTime":V=J(y,Ae.Long);break;case"fullTime":V=J(y,Ae.Full);break;case"short":const De=Ft(y,"shortTime"),Ye=Ft(y,"shortDate");V=pn(ge(y,Ae.Short),[De,Ye]);break;case"medium":const ot=Ft(y,"mediumTime"),Et=Ft(y,"mediumDate");V=pn(ge(y,Ae.Medium),[ot,Et]);break;case"long":const Pt=Ft(y,"longTime"),xt=Ft(y,"longDate");V=pn(ge(y,Ae.Long),[Pt,xt]);break;case"full":const Vt=Ft(y,"fullTime"),Qt=Ft(y,"fullDate");V=pn(ge(y,Ae.Full),[Vt,Qt])}return V&&(Ze[C][R]=V),V}function pn(y,R){return R&&(y=y.replace(/\{([^}]+)}/g,function(C,V){return null!=R&&V in R?R[V]:C})),y}function en(y,R,C="-",V,De){let Ye="";(y<0||De&&y<=0)&&(De?y=1-y:(y=-y,Ye=C));let ot=String(y);for(;ot.length<R;)ot="0"+ot;return V&&(ot=ot.substr(ot.length-R)),Ye+ot}function Tt(y,R,C=0,V=!1,De=!1){return function(Ye,ot){let Et=function ln(y,R){switch(y){case ft.FullYear:return R.getFullYear();case ft.Month:return R.getMonth();case ft.Date:return R.getDate();case ft.Hours:return R.getHours();case ft.Minutes:return R.getMinutes();case ft.Seconds:return R.getSeconds();case ft.FractionalSeconds:return R.getMilliseconds();case ft.Day:return R.getDay();default:throw new Error(`Unknown DateType value "${y}".`)}}(y,Ye);if((C>0||Et>-C)&&(Et+=C),y===ft.Hours)0===Et&&-12===C&&(Et=12);else if(y===ft.FractionalSeconds)return function $t(y,R){return en(y,3).substr(0,R)}(Et,R);const Pt=Ie(ot,ne.MinusSign);return en(Et,R,Pt,V,De)}}function Kt(y,R,C=X.Format,V=!1){return function(De,Ye){return function tn(y,R,C,V,De,Ye){switch(C){case Dt.Months:return He(R,De,V)[y.getMonth()];case Dt.Days:return Ce(R,De,V)[y.getDay()];case Dt.DayPeriods:const ot=y.getHours(),Et=y.getMinutes();if(Ye){const xt=Ge(R),Vt=L(R,De,V),Qt=xt.findIndex(an=>{if(Array.isArray(an)){const[F,P]=an,I=ot>=F.hours&&Et>=F.minutes,Z=ot<P.hours||ot===P.hours&&Et<P.minutes;if(F.hours<P.hours){if(I&&Z)return!0}else if(I||Z)return!0}else if(an.hours===ot&&an.minutes===Et)return!0;return!1});if(-1!==Qt)return Vt[Qt]}return tt(R,De,V)[ot<12?0:1];case Dt.Eras:return ct(R,V)[y.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${C}`)}}(De,Ye,y,R,C,V)}}function de(y){return function(R,C,V){const De=-1*V,Ye=Ie(C,ne.MinusSign),ot=De>0?Math.floor(De/60):Math.ceil(De/60);switch(y){case ht.Short:return(De>=0?"+":"")+en(ot,2,Ye)+en(Math.abs(De%60),2,Ye);case ht.ShortGMT:return"GMT"+(De>=0?"+":"")+en(ot,1,Ye);case ht.Long:return"GMT"+(De>=0?"+":"")+en(ot,2,Ye)+":"+en(Math.abs(De%60),2,Ye);case ht.Extended:return 0===V?"Z":(De>=0?"+":"")+en(ot,2,Ye)+":"+en(Math.abs(De%60),2,Ye);default:throw new Error(`Unknown zone width "${y}"`)}}}function q(y){return Jt(y.getFullYear(),y.getMonth(),y.getDate()+(4-y.getDay()))}function E(y,R=!1){return function(C,V){let De;if(R){const Ye=new Date(C.getFullYear(),C.getMonth(),1).getDay()-1,ot=C.getDate();De=1+Math.floor((ot+Ye)/7)}else{const Ye=q(C),ot=function O(y){const R=Jt(y,0,1).getDay();return Jt(y,0,1+(R<=4?4:11)-R)}(Ye.getFullYear()),Et=Ye.getTime()-ot.getTime();De=1+Math.round(Et/6048e5)}return en(De,y,Ie(V,ne.MinusSign))}}function j(y,R=!1){return function(C,V){return en(q(C).getFullYear(),y,Ie(V,ne.MinusSign),R)}}const Ne={};function Wt(y,R){y=y.replace(/:/g,"");const C=Date.parse("Jan 01, 1970 00:00:00 "+y)/6e4;return isNaN(C)?R:C}function $e(y){return y instanceof Date&&!isNaN(y.valueOf())}const dt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Bn(y,R,C,V,De,Ye,ot=!1){let Et="",Pt=!1;if(isFinite(y)){let xt=function et(y){let V,De,Ye,ot,Et,R=Math.abs(y)+"",C=0;for((De=R.indexOf("."))>-1&&(R=R.replace(".","")),(Ye=R.search(/e/i))>0?(De<0&&(De=Ye),De+=+R.slice(Ye+1),R=R.substring(0,Ye)):De<0&&(De=R.length),Ye=0;"0"===R.charAt(Ye);Ye++);if(Ye===(Et=R.length))V=[0],De=1;else{for(Et--;"0"===R.charAt(Et);)Et--;for(De-=Ye,V=[],ot=0;Ye<=Et;Ye++,ot++)V[ot]=Number(R.charAt(Ye))}return De>22&&(V=V.splice(0,21),C=De-1,De=1),{digits:V,exponent:C,integerLen:De}}(y);ot&&(xt=function xe(y){if(0===y.digits[0])return y;const R=y.digits.length-y.integerLen;return y.exponent?y.exponent+=2:(0===R?y.digits.push(0,0):1===R&&y.digits.push(0),y.integerLen+=2),y}(xt));let Vt=R.minInt,Qt=R.minFrac,an=R.maxFrac;if(Ye){const At=Ye.match(dt);if(null===At)throw new Error(`${Ye} is not a valid digit info`);const hn=At[1],Sn=At[3],bi=At[5];null!=hn&&(Vt=wt(hn)),null!=Sn&&(Qt=wt(Sn)),null!=bi?an=wt(bi):null!=Sn&&Qt>an&&(an=Qt)}!function lt(y,R,C){if(R>C)throw new Error(`The minimum number of digits after fraction (${R}) is higher than the maximum (${C}).`);let V=y.digits,De=V.length-y.integerLen;const Ye=Math.min(Math.max(R,De),C);let ot=Ye+y.integerLen,Et=V[ot];if(ot>0){V.splice(Math.max(y.integerLen,ot));for(let Qt=ot;Qt<V.length;Qt++)V[Qt]=0}else{De=Math.max(0,De),y.integerLen=1,V.length=Math.max(1,ot=Ye+1),V[0]=0;for(let Qt=1;Qt<ot;Qt++)V[Qt]=0}if(Et>=5)if(ot-1<0){for(let Qt=0;Qt>ot;Qt--)V.unshift(0),y.integerLen++;V.unshift(1),y.integerLen++}else V[ot-1]++;for(;De<Math.max(0,Ye);De++)V.push(0);let Pt=0!==Ye;const xt=R+y.integerLen,Vt=V.reduceRight(function(Qt,an,F,P){return P[F]=(an+=Qt)<10?an:an-10,Pt&&(0===P[F]&&F>=xt?P.pop():Pt=!1),an>=10?1:0},0);Vt&&(V.unshift(Vt),y.integerLen++)}(xt,Qt,an);let F=xt.digits,P=xt.integerLen;const I=xt.exponent;let Z=[];for(Pt=F.every(At=>!At);P<Vt;P++)F.unshift(0);for(;P<0;P++)F.unshift(0);P>0?Z=F.splice(P,F.length):(Z=F,F=[0]);const Qe=[];for(F.length>=R.lgSize&&Qe.unshift(F.splice(-R.lgSize,F.length).join(""));F.length>R.gSize;)Qe.unshift(F.splice(-R.gSize,F.length).join(""));F.length&&Qe.unshift(F.join("")),Et=Qe.join(Ie(C,V)),Z.length&&(Et+=Ie(C,De)+Z.join("")),I&&(Et+=Ie(C,ne.Exponential)+"+"+I)}else Et=Ie(C,ne.Infinity);return Et=y<0&&!Pt?R.negPre+Et+R.negSuf:R.posPre+Et+R.posSuf,Et}function In(y,R,C,V,De){const ot=W(Re(R,te.Currency),Ie(R,ne.MinusSign));return ot.minFrac=ie(V),ot.maxFrac=ot.minFrac,Bn(y,ot,R,ne.CurrencyGroup,ne.CurrencyDecimal,De).replace("\xa4",C).replace("\xa4","").trim()}function H(y,R,C){return Bn(y,W(Re(R,te.Percent),Ie(R,ne.MinusSign)),R,ne.Group,ne.Decimal,C,!0).replace(new RegExp("%","g"),Ie(R,ne.PercentSign))}function Pe(y,R,C){return Bn(y,W(Re(R,te.Decimal),Ie(R,ne.MinusSign)),R,ne.Group,ne.Decimal,C)}function W(y,R="-"){const C={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},V=y.split(";"),De=V[0],Ye=V[1],ot=-1!==De.indexOf(".")?De.split("."):[De.substring(0,De.lastIndexOf("0")+1),De.substring(De.lastIndexOf("0")+1)],Et=ot[0],Pt=ot[1]||"";C.posPre=Et.substr(0,Et.indexOf("#"));for(let Vt=0;Vt<Pt.length;Vt++){const Qt=Pt.charAt(Vt);"0"===Qt?C.minFrac=C.maxFrac=Vt+1:"#"===Qt?C.maxFrac=Vt+1:C.posSuf+=Qt}const xt=Et.split(",");if(C.gSize=xt[1]?xt[1].length:0,C.lgSize=xt[2]||xt[1]?(xt[2]||xt[1]).length:0,Ye){const Vt=De.length-C.posPre.length-C.posSuf.length,Qt=Ye.indexOf("#");C.negPre=Ye.substr(0,Qt).replace(/'/g,""),C.negSuf=Ye.substr(Qt+Vt).replace(/'/g,"")}else C.negPre=R+C.posPre,C.negSuf=C.posSuf;return C}function wt(y){const R=parseInt(y);if(isNaN(R))throw new Error("Invalid integer literal when parsing "+y);return R}class kt{}function Yt(y,R,C,V){let De=`=${y}`;if(R.indexOf(De)>-1||(De=C.getPluralCategory(y,V),R.indexOf(De)>-1))return De;if(R.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${y}"`)}let un=(()=>{class y extends kt{constructor(C){super(),this.locale=C}getPluralCategory(C,V){switch(It(V||this.locale)(C)){case Fe.Zero:return"zero";case Fe.One:return"one";case Fe.Two:return"two";case Fe.Few:return"few";case Fe.Many:return"many";default:return"other"}}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275inject(i.LOCALE_ID))},y.\u0275prov=i.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac}),y})();function Lt(y,R,C){return(0,i.\u0275registerLocaleData)(y,R,C)}function bn(y,R){R=encodeURIComponent(R);for(const C of y.split(";")){const V=C.indexOf("="),[De,Ye]=-1==V?[C,""]:[C.slice(0,V),C.slice(V+1)];if(De.trim()===R)return decodeURIComponent(Ye)}return null}let rn=(()=>{class y{constructor(C,V,De,Ye){this._iterableDiffers=C,this._keyValueDiffers=V,this._ngEl=De,this._renderer=Ye,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(C){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof C?C.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(C){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof C?C.split(/\s+/):C,this._rawClass&&((0,i.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const C=this._iterableDiffer.diff(this._rawClass);C&&this._applyIterableChanges(C)}else if(this._keyValueDiffer){const C=this._keyValueDiffer.diff(this._rawClass);C&&this._applyKeyValueChanges(C)}}_applyKeyValueChanges(C){C.forEachAddedItem(V=>this._toggleClass(V.key,V.currentValue)),C.forEachChangedItem(V=>this._toggleClass(V.key,V.currentValue)),C.forEachRemovedItem(V=>{V.previousValue&&this._toggleClass(V.key,!1)})}_applyIterableChanges(C){C.forEachAddedItem(V=>{if("string"!=typeof V.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.\u0275stringify)(V.item)}`);this._toggleClass(V.item,!0)}),C.forEachRemovedItem(V=>this._toggleClass(V.item,!1))}_applyClasses(C){C&&(Array.isArray(C)||C instanceof Set?C.forEach(V=>this._toggleClass(V,!0)):Object.keys(C).forEach(V=>this._toggleClass(V,!!C[V])))}_removeClasses(C){C&&(Array.isArray(C)||C instanceof Set?C.forEach(V=>this._toggleClass(V,!1)):Object.keys(C).forEach(V=>this._toggleClass(V,!1)))}_toggleClass(C,V){(C=C.trim())&&C.split(/\s+/g).forEach(De=>{V?this._renderer.addClass(this._ngEl.nativeElement,De):this._renderer.removeClass(this._ngEl.nativeElement,De)})}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),y})(),On=(()=>{class y{constructor(C){this._viewContainerRef=C,this._componentRef=null,this._moduleRef=null}ngOnChanges(C){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const V=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(C.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const ot=V.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(ot.injector)}else this._moduleRef=null;const Ye=(this._moduleRef?this._moduleRef.componentFactoryResolver:V.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(Ye,this._viewContainerRef.length,V,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.\u0275\u0275NgOnChangesFeature]}),y})();class Fn{constructor(R,C,V,De){this.$implicit=R,this.ngForOf=C,this.index=V,this.count=De}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 yn=(()=>{class y{constructor(C,V,De){this._viewContainer=C,this._template=V,this._differs=De,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(C){this._ngForOf=C,this._ngForOfDirty=!0}set ngForTrackBy(C){this._trackByFn=C}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(C){C&&(this._template=C)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const C=this._ngForOf;!this._differ&&C&&(this._differ=this._differs.find(C).create(this.ngForTrackBy))}if(this._differ){const C=this._differ.diff(this._ngForOf);C&&this._applyChanges(C)}}_applyChanges(C){const V=this._viewContainer;C.forEachOperation((De,Ye,ot)=>{if(null==De.previousIndex)V.createEmbeddedView(this._template,new Fn(De.item,this._ngForOf,-1,-1),null===ot?void 0:ot);else if(null==ot)V.remove(null===Ye?void 0:Ye);else if(null!==Ye){const Et=V.get(Ye);V.move(Et,ot),Mn(Et,De)}});for(let De=0,Ye=V.length;De<Ye;De++){const Et=V.get(De).context;Et.index=De,Et.count=Ye,Et.ngForOf=this._ngForOf}C.forEachIdentityChange(De=>{Mn(V.get(De.currentIndex),De)})}static ngTemplateContextGuard(C,V){return!0}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),y})();function Mn(y,R){y.context.$implicit=R.item}let Cn=(()=>{class y{constructor(C,V){this._viewContainer=C,this._context=new sn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(C){this._context.$implicit=this._context.ngIf=C,this._updateView()}set ngIfThen(C){Yn("ngIfThen",C),this._thenTemplateRef=C,this._thenViewRef=null,this._updateView()}set ngIfElse(C){Yn("ngIfElse",C),this._elseTemplateRef=C,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(C,V){return!0}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),y})();class sn{constructor(){this.$implicit=null,this.ngIf=null}}function Yn(y,R){if(R&&!R.createEmbeddedView)throw new Error(`${y} must be a TemplateRef, but received '${(0,i.\u0275stringify)(R)}'.`)}class ri{constructor(R,C){this._viewContainerRef=R,this._templateRef=C,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(R){R&&!this._created?this.create():!R&&this._created&&this.destroy()}}let jn=(()=>{class y{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(C){this._ngSwitch=C,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(C){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(C)}_matchCase(C){const V=C==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(C){if(this._defaultViews&&C!==this._defaultUsed){this._defaultUsed=C;for(let V=0;V<this._defaultViews.length;V++)this._defaultViews[V].enforceState(C)}}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),y})(),Vn=(()=>{class y{constructor(C,V,De){this.ngSwitch=De,De._addCase(),this._view=new ri(C,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(jn,9))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),y})(),hi=(()=>{class y{constructor(C,V,De){De._addDefault(new ri(C,V))}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(jn,9))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngSwitchDefault",""]]}),y})(),ai=(()=>{class y{constructor(C){this._localization=C,this._caseViews={}}set ngPlural(C){this._switchValue=C,this._updateView()}addCase(C,V){this._caseViews[C]=V}_updateView(){this._clearViews();const C=Object.keys(this._caseViews),V=Yt(this._switchValue,C,this._localization);this._activateView(this._caseViews[V])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(C){C&&(this._activeView=C,this._activeView.create())}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(kt))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),y})(),kn=(()=>{class y{constructor(C,V,De,Ye){this.value=C;const ot=!isNaN(Number(C));Ye.addCase(ot?`=${C}`:C,new ri(De,V))}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275injectAttribute("ngPluralCase"),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(ai,1))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngPluralCase",""]]}),y})(),_r=(()=>{class y{constructor(C,V,De){this._ngEl=C,this._differs=V,this._renderer=De,this._ngStyle=null,this._differ=null}set ngStyle(C){this._ngStyle=C,!this._differ&&C&&(this._differ=this._differs.find(C).create())}ngDoCheck(){if(this._differ){const C=this._differ.diff(this._ngStyle);C&&this._applyChanges(C)}}_setStyle(C,V){const[De,Ye]=C.split(".");null!=(V=null!=V&&Ye?`${V}${Ye}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,De,V):this._renderer.removeStyle(this._ngEl.nativeElement,De)}_applyChanges(C){C.forEachRemovedItem(V=>this._setStyle(V.key,null)),C.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),C.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),y})(),Ki=(()=>{class y{constructor(C){this._viewContainerRef=C,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(C){if(C.ngTemplateOutlet){const V=this._viewContainerRef;this._viewRef&&V.remove(V.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?V.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&C.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},y.\u0275dir=i.\u0275\u0275defineDirective({type:y,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.\u0275\u0275NgOnChangesFeature]}),y})();function $n(y,R){return new i.\u0275RuntimeError(2100,"")}class Hn{createSubscription(R,C){return R.subscribe({next:C,error:V=>{throw V}})}dispose(R){R.unsubscribe()}onDestroy(R){R.unsubscribe()}}class fi{createSubscription(R,C){return R.then(C,V=>{throw V})}dispose(R){}onDestroy(R){}}const Fi=new fi,wr=new Hn;let ki=(()=>{class y{constructor(C){this._ref=C,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(C){return this._obj?C!==this._obj?(this._dispose(),this.transform(C)):this._latestValue:(C&&this._subscribe(C),this._latestValue)}_subscribe(C){this._obj=C,this._strategy=this._selectStrategy(C),this._subscription=this._strategy.createSubscription(C,V=>this._updateLatestValue(C,V))}_selectStrategy(C){if((0,i.\u0275isPromise)(C))return Fi;if((0,i.\u0275isSubscribable)(C))return wr;throw $n()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(C,V){C===this._obj&&(this._latestValue=V,this._ref.markForCheck())}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef,16))},y.\u0275pipe=i.\u0275\u0275definePipe({name:"async",type:y,pure:!1}),y})(),yr=(()=>{class y{transform(C){if(null==C)return null;if("string"!=typeof C)throw $n();return C.toLowerCase()}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275pipe=i.\u0275\u0275definePipe({name:"lowercase",type:y,pure:!0}),y})();const Di=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Ni=(()=>{class y{transform(C){if(null==C)return null;if("string"!=typeof C)throw $n();return C.replace(Di,V=>V[0].toUpperCase()+V.substr(1).toLowerCase())}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:y,pure:!0}),y})(),li=(()=>{class y{transform(C){if(null==C)return null;if("string"!=typeof C)throw $n();return C.toUpperCase()}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275pipe=i.\u0275\u0275definePipe({name:"uppercase",type:y,pure:!0}),y})();const rr=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let pi=(()=>{class y{constructor(C,V){this.locale=C,this.defaultTimezone=V}transform(C,V="mediumDate",De,Ye){var ot;if(null==C||""===C||C!=C)return null;try{return Bt(C,V,Ye||this.locale,null!==(ot=null!=De?De:this.defaultTimezone)&&void 0!==ot?ot:void 0)}catch(Et){throw $n()}}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(rr,24))},y.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:y,pure:!0}),y})();const vr=/#/g;let or=(()=>{class y{constructor(C){this._localization=C}transform(C,V,De){if(null==C)return"";if("object"!=typeof V||null===V)throw $n();return V[Yt(C,Object.keys(V),this._localization,De)].replace(vr,C.toString())}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(kt,16))},y.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nPlural",type:y,pure:!0}),y})(),Gi=(()=>{class y{transform(C,V){if(null==C)return"";if("object"!=typeof V||"string"!=typeof C)throw $n();return V.hasOwnProperty(C)?V[C]:V.hasOwnProperty("other")?V.other:""}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nSelect",type:y,pure:!0}),y})(),Ti=(()=>{class y{transform(C){return JSON.stringify(C,null,2)}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:y,pure:!1}),y})(),sr=(()=>{class y{constructor(C){this.differs=C,this.keyValues=[],this.compareFn=Li}transform(C,V=Li){if(!C||!(C instanceof Map)&&"object"!=typeof C)return null;this.differ||(this.differ=this.differs.find(C).create());const De=this.differ.diff(C),Ye=V!==this.compareFn;return De&&(this.keyValues=[],De.forEachItem(ot=>{this.keyValues.push(function Mi(y,R){return{key:y,value:R}}(ot.key,ot.currentValue))})),(De||Ye)&&(this.keyValues.sort(V),this.compareFn=V),this.keyValues}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.KeyValueDiffers,16))},y.\u0275pipe=i.\u0275\u0275definePipe({name:"keyvalue",type:y,pure:!1}),y})();function Li(y,R){const C=y.key,V=R.key;if(C===V)return 0;if(void 0===C)return 1;if(void 0===V)return-1;if(null===C)return 1;if(null===V)return-1;if("string"==typeof C&&"string"==typeof V)return C<V?-1:1;if("number"==typeof C&&"number"==typeof V)return C-V;if("boolean"==typeof C&&"boolean"==typeof V)return C<V?-1:1;const De=String(C),Ye=String(V);return De==Ye?0:De<Ye?-1:1}let Qi=(()=>{class y{constructor(C){this._locale=C}transform(C,V,De){if(!mi(C))return null;De=De||this._locale;try{return Pe(Bi(C),De,V)}catch(Ye){throw $n()}}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},y.\u0275pipe=i.\u0275\u0275definePipe({name:"number",type:y,pure:!0}),y})(),Jn=(()=>{class y{constructor(C){this._locale=C}transform(C,V,De){if(!mi(C))return null;De=De||this._locale;try{return H(Bi(C),De,V)}catch(Ye){throw $n()}}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},y.\u0275pipe=i.\u0275\u0275definePipe({name:"percent",type:y,pure:!0}),y})(),wi=(()=>{class y{constructor(C,V="USD"){this._locale=C,this._defaultCurrencyCode=V}transform(C,V=this._defaultCurrencyCode,De="symbol",Ye,ot){if(!mi(C))return null;ot=ot||this._locale,"boolean"==typeof De&&(De=De?"symbol":"code");let Et=V||this._defaultCurrencyCode;"code"!==De&&(Et="symbol"===De||"symbol-narrow"===De?we(Et,"symbol"===De?"wide":"narrow",ot):De);try{return In(Bi(C),ot,Et,V,Ye)}catch(Pt){throw $n()}}}return y.\u0275fac=function(C){return new(C||y)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(i.DEFAULT_CURRENCY_CODE,16))},y.\u0275pipe=i.\u0275\u0275definePipe({name:"currency",type:y,pure:!0}),y})();function mi(y){return!(null==y||""===y||y!=y)}function Bi(y){if("string"==typeof y&&!isNaN(Number(y)-parseFloat(y)))return Number(y);if("number"!=typeof y)throw new Error(`${y} is not a number`);return y}let vi=(()=>{class y{transform(C,V,De){if(null==C)return null;if(!this.supports(C))throw $n();return C.slice(V,De)}supports(C){return"string"==typeof C||Array.isArray(C)}}return y.\u0275fac=function(C){return new(C||y)},y.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:y,pure:!1}),y})(),Zi=(()=>{class y{}return y.\u0275fac=function(C){return new(C||y)},y.\u0275mod=i.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:kt,useClass:un}]}),y})();const Si="browser",Yi="server",oi="browserWorkerApp",ji="browserWorkerUi";function Nn(y){return y===Si}function Vi(y){return y===Yi}function $i(y){return y===oi}function Ii(y){return y===ji}const Cr=new i.Version("13.2.1");let Y=(()=>{class y{}return y.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:y,providedIn:"root",factory:()=>new f((0,i.\u0275\u0275inject)(D),window)}),y})();class f{constructor(R,C){this.document=R,this.window=C,this.offset=()=>[0,0]}setOffset(R){this.offset=Array.isArray(R)?()=>R:R}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(R){this.supportsScrolling()&&this.window.scrollTo(R[0],R[1])}scrollToAnchor(R){if(!this.supportsScrolling())return;const C=function x(y,R){const C=y.getElementById(R)||y.getElementsByName(R)[0];if(C)return C;if("function"==typeof y.createTreeWalker&&y.body&&(y.body.createShadowRoot||y.body.attachShadow)){const V=y.createTreeWalker(y.body,NodeFilter.SHOW_ELEMENT);let De=V.currentNode;for(;De;){const Ye=De.shadowRoot;if(Ye){const ot=Ye.getElementById(R)||Ye.querySelector(`[name="${R}"]`);if(ot)return ot}De=V.nextNode()}}return null}(this.document,R);C&&(this.scrollToElement(C),C.focus())}setHistoryScrollRestoration(R){if(this.supportScrollRestoration()){const C=this.window.history;C&&C.scrollRestoration&&(C.scrollRestoration=R)}}scrollToElement(R){const C=R.getBoundingClientRect(),V=C.left+this.window.pageXOffset,De=C.top+this.window.pageYOffset,Ye=this.offset();this.window.scrollTo(V-Ye[0],De-Ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const R=p(this.window.history)||p(Object.getPrototypeOf(this.window.history));return!(!R||!R.writable&&!R.set)}catch(R){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(R){return!1}}}function p(y){return Object.getOwnPropertyDescriptor(y,"scrollRestoration")}class G{setOffset(R){}getScrollPosition(){return[0,0]}scrollToPosition(R){}scrollToAnchor(R){}setHistoryScrollRestoration(R){}}class fe{}},520:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{HTTP_INTERCEPTORS:()=>_e,HttpBackend:()=>S,HttpClient:()=>ne,HttpClientJsonpModule:()=>ue,HttpClientModule:()=>Oe,HttpClientXsrfModule:()=>re,HttpContext:()=>Se,HttpContextToken:()=>ae,HttpErrorResponse:()=>le,HttpEventType:()=>at,HttpHandler:()=>T,HttpHeaderResponse:()=>Fe,HttpHeaders:()=>d,HttpParams:()=>U,HttpRequest:()=>qe,HttpResponse:()=>X,HttpResponseBase:()=>te,HttpUrlEncodingCodec:()=>A,HttpXhrBackend:()=>Re,HttpXsrfTokenExtractor:()=>mt,JsonpClientBackend:()=>Xe,JsonpInterceptor:()=>J,XhrFactory:()=>we,\u0275HttpInterceptingHandler:()=>ut});var i=l(9808),u=l(5e3),m=l(9646),c=l(9751),s=l(4351),_=l(9300),D=l(4004);class T{}class S{}class d{constructor(ie){this.normalizedNames=new Map,this.lazyUpdate=null,ie?this.lazyInit="string"==typeof ie?()=>{this.headers=new Map,ie.split("\n").forEach(ve=>{const Ze=ve.indexOf(":");if(Ze>0){const it=ve.slice(0,Ze),ht=it.toLowerCase(),ft=ve.slice(Ze+1).trim();this.maybeSetNormalizedName(it,ht),this.headers.has(ht)?this.headers.get(ht).push(ft):this.headers.set(ht,[ft])}})}:()=>{this.headers=new Map,Object.keys(ie).forEach(ve=>{let Ze=ie[ve];const it=ve.toLowerCase();"string"==typeof Ze&&(Ze=[Ze]),Ze.length>0&&(this.headers.set(it,Ze),this.maybeSetNormalizedName(ve,it))})}:this.headers=new Map}has(ie){return this.init(),this.headers.has(ie.toLowerCase())}get(ie){this.init();const ve=this.headers.get(ie.toLowerCase());return ve&&ve.length>0?ve[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ie){return this.init(),this.headers.get(ie.toLowerCase())||null}append(ie,ve){return this.clone({name:ie,value:ve,op:"a"})}set(ie,ve){return this.clone({name:ie,value:ve,op:"s"})}delete(ie,ve){return this.clone({name:ie,value:ve,op:"d"})}maybeSetNormalizedName(ie,ve){this.normalizedNames.has(ve)||this.normalizedNames.set(ve,ie)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ie=>this.applyUpdate(ie)),this.lazyUpdate=null))}copyFrom(ie){ie.init(),Array.from(ie.headers.keys()).forEach(ve=>{this.headers.set(ve,ie.headers.get(ve)),this.normalizedNames.set(ve,ie.normalizedNames.get(ve))})}clone(ie){const ve=new d;return ve.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,ve.lazyUpdate=(this.lazyUpdate||[]).concat([ie]),ve}applyUpdate(ie){const ve=ie.name.toLowerCase();switch(ie.op){case"a":case"s":let Ze=ie.value;if("string"==typeof Ze&&(Ze=[Ze]),0===Ze.length)return;this.maybeSetNormalizedName(ie.name,ve);const it=("a"===ie.op?this.headers.get(ve):void 0)||[];it.push(...Ze),this.headers.set(ve,it);break;case"d":const ht=ie.value;if(ht){let ft=this.headers.get(ve);if(!ft)return;ft=ft.filter(Dt=>-1===ht.indexOf(Dt)),0===ft.length?(this.headers.delete(ve),this.normalizedNames.delete(ve)):this.headers.set(ve,ft)}else this.headers.delete(ve),this.normalizedNames.delete(ve)}}forEach(ie){this.init(),Array.from(this.normalizedNames.keys()).forEach(ve=>ie(this.normalizedNames.get(ve),this.headers.get(ve)))}}class A{encodeKey(ie){return $(ie)}encodeValue(ie){return $(ie)}decodeKey(ie){return decodeURIComponent(ie)}decodeValue(ie){return decodeURIComponent(ie)}}const b=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function $(Ee){return encodeURIComponent(Ee).replace(b,(ie,ve)=>{var Ze;return null!==(Ze=k[ve])&&void 0!==Ze?Ze:ie})}function pe(Ee){return`${Ee}`}class U{constructor(ie={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ie.encoder||new A,ie.fromString){if(ie.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(Ee,ie){const ve=new Map;return Ee.length>0&&Ee.replace(/^\?/,"").split("&").forEach(it=>{const ht=it.indexOf("="),[ft,Dt]=-1==ht?[ie.decodeKey(it),""]:[ie.decodeKey(it.slice(0,ht)),ie.decodeValue(it.slice(ht+1))],Bt=ve.get(ft)||[];Bt.push(Dt),ve.set(ft,Bt)}),ve}(ie.fromString,this.encoder)}else ie.fromObject?(this.map=new Map,Object.keys(ie.fromObject).forEach(ve=>{const Ze=ie.fromObject[ve];this.map.set(ve,Array.isArray(Ze)?Ze:[Ze])})):this.map=null}has(ie){return this.init(),this.map.has(ie)}get(ie){this.init();const ve=this.map.get(ie);return ve?ve[0]:null}getAll(ie){return this.init(),this.map.get(ie)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ie,ve){return this.clone({param:ie,value:ve,op:"a"})}appendAll(ie){const ve=[];return Object.keys(ie).forEach(Ze=>{const it=ie[Ze];Array.isArray(it)?it.forEach(ht=>{ve.push({param:Ze,value:ht,op:"a"})}):ve.push({param:Ze,value:it,op:"a"})}),this.clone(ve)}set(ie,ve){return this.clone({param:ie,value:ve,op:"s"})}delete(ie,ve){return this.clone({param:ie,value:ve,op:"d"})}toString(){return this.init(),this.keys().map(ie=>{const ve=this.encoder.encodeKey(ie);return this.map.get(ie).map(Ze=>ve+"="+this.encoder.encodeValue(Ze)).join("&")}).filter(ie=>""!==ie).join("&")}clone(ie){const ve=new U({encoder:this.encoder});return ve.cloneFrom=this.cloneFrom||this,ve.updates=(this.updates||[]).concat(ie),ve}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ie=>this.map.set(ie,this.cloneFrom.map.get(ie))),this.updates.forEach(ie=>{switch(ie.op){case"a":case"s":const ve=("a"===ie.op?this.map.get(ie.param):void 0)||[];ve.push(pe(ie.value)),this.map.set(ie.param,ve);break;case"d":if(void 0===ie.value){this.map.delete(ie.param);break}{let Ze=this.map.get(ie.param)||[];const it=Ze.indexOf(pe(ie.value));-1!==it&&Ze.splice(it,1),Ze.length>0?this.map.set(ie.param,Ze):this.map.delete(ie.param)}}}),this.cloneFrom=this.updates=null)}}class ae{constructor(ie){this.defaultValue=ie}}class Se{constructor(){this.map=new Map}set(ie,ve){return this.map.set(ie,ve),this}get(ie){return this.map.has(ie)||this.map.set(ie,ie.defaultValue()),this.map.get(ie)}delete(ie){return this.map.delete(ie),this}has(ie){return this.map.has(ie)}keys(){return this.map.keys()}}function be(Ee){return"undefined"!=typeof ArrayBuffer&&Ee instanceof ArrayBuffer}function se(Ee){return"undefined"!=typeof Blob&&Ee instanceof Blob}function Me(Ee){return"undefined"!=typeof FormData&&Ee instanceof FormData}class qe{constructor(ie,ve,Ze,it){let ht;if(this.url=ve,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ie.toUpperCase(),function me(Ee){switch(Ee){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||it?(this.body=void 0!==Ze?Ze:null,ht=it):ht=Ze,ht&&(this.reportProgress=!!ht.reportProgress,this.withCredentials=!!ht.withCredentials,ht.responseType&&(this.responseType=ht.responseType),ht.headers&&(this.headers=ht.headers),ht.context&&(this.context=ht.context),ht.params&&(this.params=ht.params)),this.headers||(this.headers=new d),this.context||(this.context=new Se),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=ve;else{const Dt=ve.indexOf("?");this.urlWithParams=ve+(-1===Dt?"?":Dt<ve.length-1?"&":"")+ft}}else this.params=new U,this.urlWithParams=ve}serializeBody(){return null===this.body?null:be(this.body)||se(this.body)||Me(this.body)||function Le(Ee){return"undefined"!=typeof URLSearchParams&&Ee instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof U?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||Me(this.body)?null:se(this.body)?this.body.type||null:be(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof U?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ie={}){var ve;const Ze=ie.method||this.method,it=ie.url||this.url,ht=ie.responseType||this.responseType,ft=void 0!==ie.body?ie.body:this.body,Dt=void 0!==ie.withCredentials?ie.withCredentials:this.withCredentials,Bt=void 0!==ie.reportProgress?ie.reportProgress:this.reportProgress;let Jt=ie.headers||this.headers,Ft=ie.params||this.params;const pn=null!==(ve=ie.context)&&void 0!==ve?ve:this.context;return void 0!==ie.setHeaders&&(Jt=Object.keys(ie.setHeaders).reduce((en,$t)=>en.set($t,ie.setHeaders[$t]),Jt)),ie.setParams&&(Ft=Object.keys(ie.setParams).reduce((en,$t)=>en.set($t,ie.setParams[$t]),Ft)),new qe(Ze,it,ft,{params:Ft,headers:Jt,context:pn,reportProgress:Bt,responseType:ht,withCredentials:Dt})}}var at=(()=>((at=at||{})[at.Sent=0]="Sent",at[at.UploadProgress=1]="UploadProgress",at[at.ResponseHeader=2]="ResponseHeader",at[at.DownloadProgress=3]="DownloadProgress",at[at.Response=4]="Response",at[at.User=5]="User",at))();class te{constructor(ie,ve=200,Ze="OK"){this.headers=ie.headers||new d,this.status=void 0!==ie.status?ie.status:ve,this.statusText=ie.statusText||Ze,this.url=ie.url||null,this.ok=this.status>=200&&this.status<300}}class Fe extends te{constructor(ie={}){super(ie),this.type=at.ResponseHeader}clone(ie={}){return new Fe({headers:ie.headers||this.headers,status:void 0!==ie.status?ie.status:this.status,statusText:ie.statusText||this.statusText,url:ie.url||this.url||void 0})}}class X extends te{constructor(ie={}){super(ie),this.type=at.Response,this.body=void 0!==ie.body?ie.body:null}clone(ie={}){return new X({body:void 0!==ie.body?ie.body:this.body,headers:ie.headers||this.headers,status:void 0!==ie.status?ie.status:this.status,statusText:ie.statusText||this.statusText,url:ie.url||this.url||void 0})}}class le extends te{constructor(ie){super(ie,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ie.url||"(unknown url)"}`:`Http failure response for ${ie.url||"(unknown url)"}: ${ie.status} ${ie.statusText}`,this.error=ie.error||null}}function Ae(Ee,ie){return{body:ie,headers:Ee.headers,context:Ee.context,observe:Ee.observe,params:Ee.params,reportProgress:Ee.reportProgress,responseType:Ee.responseType,withCredentials:Ee.withCredentials}}let ne=(()=>{class Ee{constructor(ve){this.handler=ve}request(ve,Ze,it={}){let ht;if(ve instanceof qe)ht=ve;else{let Bt,Jt;Bt=it.headers instanceof d?it.headers:new d(it.headers),it.params&&(Jt=it.params instanceof U?it.params:new U({fromObject:it.params})),ht=new qe(ve,Ze,void 0!==it.body?it.body:null,{headers:Bt,context:it.context,params:Jt,reportProgress:it.reportProgress,responseType:it.responseType||"json",withCredentials:it.withCredentials})}const ft=(0,m.of)(ht).pipe((0,s.b)(Bt=>this.handler.handle(Bt)));if(ve instanceof qe||"events"===it.observe)return ft;const Dt=ft.pipe((0,_.h)(Bt=>Bt instanceof X));switch(it.observe||"body"){case"body":switch(ht.responseType){case"arraybuffer":return Dt.pipe((0,D.U)(Bt=>{if(null!==Bt.body&&!(Bt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Bt.body}));case"blob":return Dt.pipe((0,D.U)(Bt=>{if(null!==Bt.body&&!(Bt.body instanceof Blob))throw new Error("Response is not a Blob.");return Bt.body}));case"text":return Dt.pipe((0,D.U)(Bt=>{if(null!==Bt.body&&"string"!=typeof Bt.body)throw new Error("Response is not a string.");return Bt.body}));default:return Dt.pipe((0,D.U)(Bt=>Bt.body))}case"response":return Dt;default:throw new Error(`Unreachable: unhandled observe type ${it.observe}}`)}}delete(ve,Ze={}){return this.request("DELETE",ve,Ze)}get(ve,Ze={}){return this.request("GET",ve,Ze)}head(ve,Ze={}){return this.request("HEAD",ve,Ze)}jsonp(ve,Ze){return this.request("JSONP",ve,{params:(new U).append(Ze,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ve,Ze={}){return this.request("OPTIONS",ve,Ze)}patch(ve,Ze,it={}){return this.request("PATCH",ve,Ae(it,Ze))}post(ve,Ze,it={}){return this.request("POST",ve,Ae(it,Ze))}put(ve,Ze,it={}){return this.request("PUT",ve,Ae(it,Ze))}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(u.\u0275\u0275inject(T))},Ee.\u0275prov=u.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();class Ke{constructor(ie,ve){this.next=ie,this.interceptor=ve}handle(ie){return this.interceptor.intercept(ie,this.next)}}const _e=new u.InjectionToken("HTTP_INTERCEPTORS");let tt=(()=>{class Ee{intercept(ve,Ze){return Ze.handle(ve)}}return Ee.\u0275fac=function(ve){return new(ve||Ee)},Ee.\u0275prov=u.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})(),Ce=0;class Be{}let Xe=(()=>{class Ee{constructor(ve,Ze){this.callbackMap=ve,this.document=Ze,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Ce++}handle(ve){if("JSONP"!==ve.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==ve.responseType)throw new Error("JSONP requests must use Json response type.");return new c.y(Ze=>{const it=this.nextCallback(),ht=ve.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${it}$1`),ft=this.document.createElement("script");ft.src=ht;let Dt=null,Bt=!1,Jt=!1;this.callbackMap[it]=$t=>{delete this.callbackMap[it],!Jt&&(Dt=$t,Bt=!0)};const Ft=()=>{ft.parentNode&&ft.parentNode.removeChild(ft),delete this.callbackMap[it]},pn=$t=>{Jt||this.resolvedPromise.then(()=>{Ft(),Bt?(Ze.next(new X({body:Dt,status:200,statusText:"OK",url:ht})),Ze.complete()):Ze.error(new le({url:ht,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},en=$t=>{Jt||(Ft(),Ze.error(new le({error:$t,status:0,statusText:"JSONP Error",url:ht})))};return ft.addEventListener("load",pn),ft.addEventListener("error",en),this.document.body.appendChild(ft),Ze.next({type:at.Sent}),()=>{Jt=!0,ft.removeEventListener("load",pn),ft.removeEventListener("error",en),Ft()}})}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(u.\u0275\u0275inject(Be),u.\u0275\u0275inject(i.DOCUMENT))},Ee.\u0275prov=u.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})(),J=(()=>{class Ee{constructor(ve){this.jsonp=ve}intercept(ve,Ze){return"JSONP"===ve.method?this.jsonp.handle(ve):Ze.handle(ve)}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(u.\u0275\u0275inject(Xe))},Ee.\u0275prov=u.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();const ge=/^\)\]\}',?\n/;let Re=(()=>{class Ee{constructor(ve){this.xhrFactory=ve}handle(ve){if("JSONP"===ve.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new c.y(Ze=>{const it=this.xhrFactory.build();if(it.open(ve.method,ve.urlWithParams),ve.withCredentials&&(it.withCredentials=!0),ve.headers.forEach(($t,Tt)=>it.setRequestHeader($t,Tt.join(","))),ve.headers.has("Accept")||it.setRequestHeader("Accept","application/json, text/plain, */*"),!ve.headers.has("Content-Type")){const $t=ve.detectContentTypeHeader();null!==$t&&it.setRequestHeader("Content-Type",$t)}if(ve.responseType){const $t=ve.responseType.toLowerCase();it.responseType="json"!==$t?$t:"text"}const ht=ve.serializeBody();let ft=null;const Dt=()=>{if(null!==ft)return ft;const $t=1223===it.status?204:it.status,Tt=it.statusText||"OK",ln=new d(it.getAllResponseHeaders()),Kt=function Ie(Ee){return"responseURL"in Ee&&Ee.responseURL?Ee.responseURL:/^X-Request-URL:/m.test(Ee.getAllResponseHeaders())?Ee.getResponseHeader("X-Request-URL"):null}(it)||ve.url;return ft=new Fe({headers:ln,status:$t,statusText:Tt,url:Kt}),ft},Bt=()=>{let{headers:$t,status:Tt,statusText:ln,url:Kt}=Dt(),tn=null;204!==Tt&&(tn=void 0===it.response?it.responseText:it.response),0===Tt&&(Tt=tn?200:0);let de=Tt>=200&&Tt<300;if("json"===ve.responseType&&"string"==typeof tn){const Q=tn;tn=tn.replace(ge,"");try{tn=""!==tn?JSON.parse(tn):null}catch(N){tn=Q,de&&(de=!1,tn={error:N,text:tn})}}de?(Ze.next(new X({body:tn,headers:$t,status:Tt,statusText:ln,url:Kt||void 0})),Ze.complete()):Ze.error(new le({error:tn,headers:$t,status:Tt,statusText:ln,url:Kt||void 0}))},Jt=$t=>{const{url:Tt}=Dt(),ln=new le({error:$t,status:it.status||0,statusText:it.statusText||"Unknown Error",url:Tt||void 0});Ze.error(ln)};let Ft=!1;const pn=$t=>{Ft||(Ze.next(Dt()),Ft=!0);let Tt={type:at.DownloadProgress,loaded:$t.loaded};$t.lengthComputable&&(Tt.total=$t.total),"text"===ve.responseType&&!!it.responseText&&(Tt.partialText=it.responseText),Ze.next(Tt)},en=$t=>{let Tt={type:at.UploadProgress,loaded:$t.loaded};$t.lengthComputable&&(Tt.total=$t.total),Ze.next(Tt)};return it.addEventListener("load",Bt),it.addEventListener("error",Jt),it.addEventListener("timeout",Jt),it.addEventListener("abort",Jt),ve.reportProgress&&(it.addEventListener("progress",pn),null!==ht&&it.upload&&it.upload.addEventListener("progress",en)),it.send(ht),Ze.next({type:at.Sent}),()=>{it.removeEventListener("error",Jt),it.removeEventListener("abort",Jt),it.removeEventListener("load",Bt),it.removeEventListener("timeout",Jt),ve.reportProgress&&(it.removeEventListener("progress",pn),null!==ht&&it.upload&&it.upload.removeEventListener("progress",en)),it.readyState!==it.DONE&&it.abort()}})}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(u.\u0275\u0275inject(i.XhrFactory))},Ee.\u0275prov=u.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();const ye=new u.InjectionToken("XSRF_COOKIE_NAME"),Je=new u.InjectionToken("XSRF_HEADER_NAME");class mt{}let yt=(()=>{class Ee{constructor(ve,Ze,it){this.doc=ve,this.platform=Ze,this.cookieName=it,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,i.\u0275parseCookieValue)(ve,this.cookieName),this.lastCookieString=ve),this.lastToken}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(u.PLATFORM_ID),u.\u0275\u0275inject(ye))},Ee.\u0275prov=u.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})(),It=(()=>{class Ee{constructor(ve,Ze){this.tokenService=ve,this.headerName=Ze}intercept(ve,Ze){const it=ve.url.toLowerCase();if("GET"===ve.method||"HEAD"===ve.method||it.startsWith("http://")||it.startsWith("https://"))return Ze.handle(ve);const ht=this.tokenService.getToken();return null!==ht&&!ve.headers.has(this.headerName)&&(ve=ve.clone({headers:ve.headers.set(this.headerName,ht)})),Ze.handle(ve)}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(u.\u0275\u0275inject(mt),u.\u0275\u0275inject(Je))},Ee.\u0275prov=u.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})(),ut=(()=>{class Ee{constructor(ve,Ze){this.backend=ve,this.injector=Ze,this.chain=null}handle(ve){if(null===this.chain){const Ze=this.injector.get(_e,[]);this.chain=Ze.reduceRight((it,ht)=>new Ke(it,ht),this.backend)}return this.chain.handle(ve)}}return Ee.\u0275fac=function(ve){return new(ve||Ee)(u.\u0275\u0275inject(S),u.\u0275\u0275inject(u.Injector))},Ee.\u0275prov=u.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();function L(){return"object"==typeof window?window:{}}let re=(()=>{class Ee{static disable(){return{ngModule:Ee,providers:[{provide:It,useClass:tt}]}}static withOptions(ve={}){return{ngModule:Ee,providers:[ve.cookieName?{provide:ye,useValue:ve.cookieName}:[],ve.headerName?{provide:Je,useValue:ve.headerName}:[]]}}}return Ee.\u0275fac=function(ve){return new(ve||Ee)},Ee.\u0275mod=u.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=u.\u0275\u0275defineInjector({providers:[It,{provide:_e,useExisting:It,multi:!0},{provide:mt,useClass:yt},{provide:ye,useValue:"XSRF-TOKEN"},{provide:Je,useValue:"X-XSRF-TOKEN"}]}),Ee})(),Oe=(()=>{class Ee{}return Ee.\u0275fac=function(ve){return new(ve||Ee)},Ee.\u0275mod=u.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=u.\u0275\u0275defineInjector({providers:[ne,{provide:T,useClass:ut},Re,{provide:S,useExisting:Re}],imports:[[re.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Ee})(),ue=(()=>{class Ee{}return Ee.\u0275fac=function(ve){return new(ve||Ee)},Ee.\u0275mod=u.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=u.\u0275\u0275defineInjector({providers:[Xe,{provide:Be,useFactory:L},{provide:_e,useClass:J,multi:!0}]}),Ee})();const we=i.XhrFactory},5e3:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>s_,APP_BOOTSTRAP_LISTENER:()=>ug,APP_ID:()=>sg,APP_INITIALIZER:()=>ou,ApplicationInitStatus:()=>Po,ApplicationModule:()=>LE,ApplicationRef:()=>ps,Attribute:()=>Qu,COMPILER_OPTIONS:()=>pg,CUSTOM_ELEMENTS_SCHEMA:()=>Ad,ChangeDetectionStrategy:()=>ve,ChangeDetectorRef:()=>Pg,Compiler:()=>au,CompilerFactory:()=>Z0,Component:()=>B0,ComponentFactory:()=>ta,ComponentFactoryResolver:()=>as,ComponentRef:()=>zp,ContentChild:()=>l_,ContentChildren:()=>a_,DEFAULT_CURRENCY_CODE:()=>hg,DebugElement:()=>EE,DebugEventListener:()=>pE,DebugNode:()=>CE,DefaultIterableDiffer:()=>kg,Directive:()=>og,ElementRef:()=>ls,EmbeddedViewRef:()=>fE,ErrorHandler:()=>zo,EventEmitter:()=>mr,Host:()=>td,HostBinding:()=>H0,HostListener:()=>U0,INJECTOR:()=>Ws,Inject:()=>jo,InjectFlags:()=>L,Injectable:()=>cb,InjectionToken:()=>zn,Injector:()=>Oi,Input:()=>V0,IterableDiffers:()=>fa,KeyValueDiffers:()=>pa,LOCALE_ID:()=>da,MissingTranslationStrategy:()=>gr,ModuleWithComponentFactories:()=>fg,NO_ERRORS_SCHEMA:()=>Od,NgModule:()=>W0,NgModuleFactory:()=>tm,NgModuleRef:()=>wo,NgProbeToken:()=>iE,NgZone:()=>xi,Optional:()=>kr,Output:()=>$0,PACKAGE_ROOT_URL:()=>K0,PLATFORM_ID:()=>cg,PLATFORM_INITIALIZER:()=>lg,Pipe:()=>j0,PlatformRef:()=>mu,Query:()=>Fo,QueryList:()=>sa,ReflectiveInjector:()=>bo,ReflectiveKey:()=>Mr,Renderer2:()=>XC,RendererFactory2:()=>Gp,RendererStyleFlags2:()=>dr,ResolvedReflectiveFactory:()=>Cf,Sanitizer:()=>Qp,SecurityContext:()=>Qn,Self:()=>As,SimpleChange:()=>wi,SkipSelf:()=>Nr,TRANSLATIONS:()=>G0,TRANSLATIONS_FORMAT:()=>Q0,TemplateRef:()=>ds,Testability:()=>yg,TestabilityRegistry:()=>du,Type:()=>ws,VERSION:()=>Yp,Version:()=>Zp,ViewChild:()=>u_,ViewChildren:()=>c_,ViewContainerRef:()=>la,ViewEncapsulation:()=>ht,ViewRef:()=>Og,asNativeElements:()=>mE,assertPlatform:()=>Dg,createNgModuleRef:()=>a0,createPlatform:()=>Cg,createPlatformFactory:()=>Eg,defineInjectable:()=>J,destroyPlatform:()=>rE,enableProdMode:()=>cE,forwardRef:()=>A,getDebugNode:()=>ha,getModuleFactory:()=>uE,getNgModuleById:()=>dE,getPlatform:()=>pu,inject:()=>T_,isDevMode:()=>lE,platformCore:()=>AE,resolveForwardRef:()=>M,setTestabilityGetter:()=>nE,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>fu,\u0275APP_ID_RANDOM_PROVIDER:()=>ag,\u0275ChangeDetectorStatus:()=>Ze,\u0275ComponentFactory:()=>ta,\u0275Console:()=>dg,\u0275DEFAULT_LOCALE_ID:()=>ns,\u0275INJECTOR_SCOPE:()=>Dl,\u0275LifecycleHooksFeature:()=>af,\u0275LocaleDataIndex:()=>qt,\u0275NG_COMP_DEF:()=>ln,\u0275NG_DIR_DEF:()=>Kt,\u0275NG_ELEMENT_ID:()=>N,\u0275NG_INJ_DEF:()=>It,\u0275NG_MOD_DEF:()=>de,\u0275NG_PIPE_DEF:()=>tn,\u0275NG_PROV_DEF:()=>yt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>na,\u0275NO_CHANGE:()=>on,\u0275NgModuleFactory:()=>oa,\u0275NoopNgZone:()=>_g,\u0275ReflectionCapabilities:()=>Ma,\u0275Render3ComponentFactory:()=>ra,\u0275Render3ComponentRef:()=>qp,\u0275Render3NgModuleRef:()=>Wc,\u0275RuntimeError:()=>$,\u0275ViewRef:()=>Mo,\u0275_sanitizeHtml:()=>yd,\u0275_sanitizeUrl:()=>$o,\u0275allowSanitizationBypassAndThrow:()=>to,\u0275bypassSanitizationTrustHtml:()=>V_,\u0275bypassSanitizationTrustResourceUrl:()=>W_,\u0275bypassSanitizationTrustScript:()=>H_,\u0275bypassSanitizationTrustStyle:()=>$_,\u0275bypassSanitizationTrustUrl:()=>U_,\u0275clearResolutionOfComponentResourcesQueue:()=>sd,\u0275compileComponent:()=>Gm,\u0275compileDirective:()=>ru,\u0275compileNgModule:()=>$m,\u0275compileNgModuleDefs:()=>Hm,\u0275compileNgModuleFactory:()=>vg,\u0275compilePipe:()=>ig,\u0275createInjector:()=>Ml,\u0275defaultIterableDiffers:()=>$g,\u0275defaultKeyValueDiffers:()=>Hg,\u0275detectChanges:()=>$h,\u0275devModeEqual:()=>uf,\u0275findLocaleData:()=>Fc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>jm,\u0275getDebugNode:()=>ha,\u0275getDebugNodeR2:()=>bE,\u0275getDirectives:()=>Xh,\u0275getHostElement:()=>Il,\u0275getInjectableDef:()=>Ie,\u0275getLContext:()=>ci,\u0275getLocaleCurrencyCode:()=>Xb,\u0275getLocalePluralCase:()=>mp,\u0275getSanitizationBypassType:()=>ud,\u0275global:()=>Ft,\u0275injectChangeDetectorRef:()=>Ag,\u0275isBoundToModule:()=>bg,\u0275isDefaultChangeDetectionStrategy:()=>it,\u0275isListLikeIterable:()=>Jo,\u0275isObservable:()=>Af,\u0275isPromise:()=>Xl,\u0275isSubscribable:()=>Pf,\u0275ivyEnabled:()=>BE,\u0275makeDecorator:()=>Yr,\u0275markDirty:()=>Hh,\u0275noSideEffects:()=>ie,\u0275patchComponentDefWithScope:()=>tu,\u0275publishDefaultGlobalUtils:()=>Kv,\u0275publishGlobalUtil:()=>Wi,\u0275registerLocaleData:()=>Jb,\u0275registerNgModuleType:()=>im,\u0275renderComponent:()=>Gv,\u0275resetCompiledComponents:()=>I0,\u0275resetJitOptions:()=>w0,\u0275resolveComponentResources:()=>rd,\u0275setClassMetadata:()=>em,\u0275setCurrentInjector:()=>Ia,\u0275setDocument:()=>p,\u0275setLocaleId:()=>yp,\u0275store:()=>hf,\u0275stringify:()=>T,\u0275transitiveScopesFor:()=>fs,\u0275unregisterLocaleData:()=>qb,\u0275unwrapSafeValue:()=>Er,\u0275whenRendered:()=>Qv,\u0275\u0275CopyDefinitionFeature:()=>cf,\u0275\u0275FactoryTarget:()=>qn,\u0275\u0275InheritDefinitionFeature:()=>Al,\u0275\u0275NgOnChangesFeature:()=>mi,\u0275\u0275ProvidersFeature:()=>Wp,\u0275\u0275advance:()=>lh,\u0275\u0275attribute:()=>Rl,\u0275\u0275attributeInterpolate1:()=>Fl,\u0275\u0275attributeInterpolate2:()=>kl,\u0275\u0275attributeInterpolate3:()=>Nl,\u0275\u0275attributeInterpolate4:()=>Ll,\u0275\u0275attributeInterpolate5:()=>Bl,\u0275\u0275attributeInterpolate6:()=>jl,\u0275\u0275attributeInterpolate7:()=>Vl,\u0275\u0275attributeInterpolate8:()=>$l,\u0275\u0275attributeInterpolateV:()=>Hl,\u0275\u0275classMap:()=>Uf,\u0275\u0275classMapInterpolate1:()=>Jf,\u0275\u0275classMapInterpolate2:()=>Xf,\u0275\u0275classMapInterpolate3:()=>qf,\u0275\u0275classMapInterpolate4:()=>ep,\u0275\u0275classMapInterpolate5:()=>tp,\u0275\u0275classMapInterpolate6:()=>np,\u0275\u0275classMapInterpolate7:()=>ip,\u0275\u0275classMapInterpolate8:()=>rp,\u0275\u0275classMapInterpolateV:()=>op,\u0275\u0275classProp:()=>hc,\u0275\u0275contentQuery:()=>Rm,\u0275\u0275defineComponent:()=>q,\u0275\u0275defineDirective:()=>Ue,\u0275\u0275defineInjectable:()=>Xe,\u0275\u0275defineInjector:()=>ge,\u0275\u0275defineNgModule:()=>Wt,\u0275\u0275definePipe:()=>he,\u0275\u0275directiveInject:()=>es,\u0275\u0275disableBindings:()=>Sr,\u0275\u0275element:()=>wf,\u0275\u0275elementContainer:()=>Sf,\u0275\u0275elementContainerEnd:()=>Jl,\u0275\u0275elementContainerStart:()=>Yl,\u0275\u0275elementEnd:()=>Zl,\u0275\u0275elementStart:()=>Ql,\u0275\u0275enableBindings:()=>Hi,\u0275\u0275getCurrentView:()=>If,\u0275\u0275getInheritedFactory:()=>Gu,\u0275\u0275hostProperty:()=>xc,\u0275\u0275i18n:()=>jp,\u0275\u0275i18nApply:()=>$p,\u0275\u0275i18nAttributes:()=>Vp,\u0275\u0275i18nEnd:()=>Bc,\u0275\u0275i18nExp:()=>jc,\u0275\u0275i18nPostprocess:()=>Hp,\u0275\u0275i18nStart:()=>Lc,\u0275\u0275inject:()=>ni,\u0275\u0275injectAttribute:()=>Ea,\u0275\u0275invalidFactory:()=>Mf,\u0275\u0275invalidFactoryDep:()=>Pa,\u0275\u0275listener:()=>ql,\u0275\u0275loadQuery:()=>Fm,\u0275\u0275namespaceHTML:()=>Fu,\u0275\u0275namespaceMathML:()=>Ru,\u0275\u0275namespaceSVG:()=>xu,\u0275\u0275nextContext:()=>Rf,\u0275\u0275ngDeclareClassMetadata:()=>VE,\u0275\u0275ngDeclareComponent:()=>$E,\u0275\u0275ngDeclareDirective:()=>jE,\u0275\u0275ngDeclareFactory:()=>HE,\u0275\u0275ngDeclareInjectable:()=>WE,\u0275\u0275ngDeclareInjector:()=>zE,\u0275\u0275ngDeclareNgModule:()=>KE,\u0275\u0275ngDeclarePipe:()=>GE,\u0275\u0275pipe:()=>bm,\u0275\u0275pipeBind1:()=>Cm,\u0275\u0275pipeBind2:()=>Em,\u0275\u0275pipeBind3:()=>Dm,\u0275\u0275pipeBind4:()=>Tm,\u0275\u0275pipeBindV:()=>Mm,\u0275\u0275projection:()=>kf,\u0275\u0275projectionDef:()=>Ff,\u0275\u0275property:()=>Kl,\u0275\u0275propertyInterpolate:()=>nc,\u0275\u0275propertyInterpolate1:()=>Qs,\u0275\u0275propertyInterpolate2:()=>ic,\u0275\u0275propertyInterpolate3:()=>rc,\u0275\u0275propertyInterpolate4:()=>oc,\u0275\u0275propertyInterpolate5:()=>sc,\u0275\u0275propertyInterpolate6:()=>ac,\u0275\u0275propertyInterpolate7:()=>lc,\u0275\u0275propertyInterpolate8:()=>cc,\u0275\u0275propertyInterpolateV:()=>uc,\u0275\u0275pureFunction0:()=>om,\u0275\u0275pureFunction1:()=>sm,\u0275\u0275pureFunction2:()=>am,\u0275\u0275pureFunction3:()=>lm,\u0275\u0275pureFunction4:()=>cm,\u0275\u0275pureFunction5:()=>um,\u0275\u0275pureFunction6:()=>dm,\u0275\u0275pureFunction7:()=>hm,\u0275\u0275pureFunction8:()=>fm,\u0275\u0275pureFunctionV:()=>pm,\u0275\u0275queryRefresh:()=>Om,\u0275\u0275reference:()=>ff,\u0275\u0275resolveBody:()=>Nd,\u0275\u0275resolveDocument:()=>kd,\u0275\u0275resolveWindow:()=>Fd,\u0275\u0275restoreView:()=>Zt,\u0275\u0275sanitizeHtml:()=>vd,\u0275\u0275sanitizeResourceUrl:()=>ja,\u0275\u0275sanitizeScript:()=>Cd,\u0275\u0275sanitizeStyle:()=>bd,\u0275\u0275sanitizeUrl:()=>Ba,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Td,\u0275\u0275setComponentScope:()=>E,\u0275\u0275setNgModuleScope:()=>Ht,\u0275\u0275styleMap:()=>qi,\u0275\u0275styleMapInterpolate1:()=>sp,\u0275\u0275styleMapInterpolate2:()=>ap,\u0275\u0275styleMapInterpolate3:()=>lp,\u0275\u0275styleMapInterpolate4:()=>cp,\u0275\u0275styleMapInterpolate5:()=>up,\u0275\u0275styleMapInterpolate6:()=>dp,\u0275\u0275styleMapInterpolate7:()=>hp,\u0275\u0275styleMapInterpolate8:()=>fp,\u0275\u0275styleMapInterpolateV:()=>pp,\u0275\u0275styleProp:()=>dc,\u0275\u0275stylePropInterpolate1:()=>Dc,\u0275\u0275stylePropInterpolate2:()=>Tc,\u0275\u0275stylePropInterpolate3:()=>Mc,\u0275\u0275stylePropInterpolate4:()=>wc,\u0275\u0275stylePropInterpolate5:()=>Sc,\u0275\u0275stylePropInterpolate6:()=>Ic,\u0275\u0275stylePropInterpolate7:()=>Pc,\u0275\u0275stylePropInterpolate8:()=>Ac,\u0275\u0275stylePropInterpolateV:()=>Oc,\u0275\u0275syntheticHostListener:()=>ec,\u0275\u0275syntheticHostProperty:()=>Rc,\u0275\u0275template:()=>df,\u0275\u0275templateRefExtractor:()=>Bm,\u0275\u0275text:()=>Yf,\u0275\u0275textInterpolate:()=>pc,\u0275\u0275textInterpolate1:()=>Ys,\u0275\u0275textInterpolate2:()=>mc,\u0275\u0275textInterpolate3:()=>gc,\u0275\u0275textInterpolate4:()=>_c,\u0275\u0275textInterpolate5:()=>yc,\u0275\u0275textInterpolate6:()=>vc,\u0275\u0275textInterpolate7:()=>bc,\u0275\u0275textInterpolate8:()=>Cc,\u0275\u0275textInterpolateV:()=>Ec,\u0275\u0275trustConstantHtml:()=>Ed,\u0275\u0275trustConstantResourceUrl:()=>Dd,\u0275\u0275viewQuery:()=>xm});var i=l(6758),u=l(6921),m=l(9751),c=l(6451),s=l(3099);function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function D(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function T(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(T).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 S(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const d=_({__forward_ref__:_});function A(e){return e.__forward_ref__=A,e.toString=function(){return T(this())},e}function M(e){return b(e)?e():e}function b(e){return"function"==typeof e&&e.hasOwnProperty(d)&&e.__forward_ref__===A}class $ extends Error{constructor(t,n){super(function pe(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function ae(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}function se(e,t){const n=t?` in ${t}`:"";throw new $(-201,`No provider for ${ae(e)} found${n}`)}function He(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function Xe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const J=Xe;function ge(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ie(e){return Re(e,yt)||Re(e,ut)}function Re(e,t){return e.hasOwnProperty(t)?e[t]:null}function mt(e){return e&&(e.hasOwnProperty(It)||e.hasOwnProperty(Ge))?e[It]:null}const yt=_({\u0275prov:_}),It=_({\u0275inj:_}),ut=_({ngInjectableDef:_}),Ge=_({ngInjectorDef:_});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let re;function ue(e){const t=re;return re=e,t}function we(e,t,n){const r=Ie(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void se(T(e),"Injector")}function ie(e){return{toString:e}.toString()}var ve=(()=>((ve=ve||{})[ve.OnPush=0]="OnPush",ve[ve.Default=1]="Default",ve))(),Ze=(()=>((Ze=Ze||{})[Ze.CheckOnce=0]="CheckOnce",Ze[Ze.Checked=1]="Checked",Ze[Ze.CheckAlways=2]="CheckAlways",Ze[Ze.Detached=3]="Detached",Ze[Ze.Errored=4]="Errored",Ze[Ze.Destroyed=5]="Destroyed",Ze))();function it(e){return null==e||e===ve.Default}var ht=(()=>{return(e=ht||(ht={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ht;var e})();const ft="undefined"!=typeof globalThis&&globalThis,Dt="undefined"!=typeof window&&window,Bt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ft=ft||"undefined"!=typeof global&&global||Dt||Bt,$t={},Tt=[],ln=_({\u0275cmp:_}),Kt=_({\u0275dir:_}),tn=_({\u0275pipe:_}),de=_({\u0275mod:_}),Q=_({\u0275fac:_}),N=_({__NG_ELEMENT_ID__:_});let O=0;function q(e){return ie(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ve.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Tt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ht.Emulated,id:"c",styles:e.styles||Tt,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,h=e.pipes;return r.id+=O++,r.inputs=je(e.inputs,n),r.outputs=je(e.outputs),a&&a.forEach(v=>v(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(j):null,r.pipeDefs=h?()=>("function"==typeof h?h():h).map(Ne):null,r})}function E(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(j),r.pipeDefs=()=>n.map(Ne)}function j(e){return $e(e)||dt(e)}function Ne(e){return Nt(e)}const st={};function Wt(e){return ie(()=>{const t={type:e.type,bootstrap:e.bootstrap||Tt,declarations:e.declarations||Tt,imports:e.imports||Tt,exports:e.exports||Tt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(st[e.id]=e.type),t})}function Ht(e,t){return ie(()=>{const n=Rt(e,!0);n.declarations=t.declarations||Tt,n.imports=t.imports||Tt,n.exports=t.exports||Tt})}function je(e,t){if(null==e)return $t;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],a=o;Array.isArray(o)&&(a=o[1],o=o[0]),n[o]=r,t&&(t[o]=a)}return n}const Ue=q;function he(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function $e(e){return e[ln]||null}function dt(e){return e[Kt]||null}function Nt(e){return e[tn]||null}function Rt(e,t){const n=e[de]||null;if(!n&&!0===t)throw new Error(`Type ${T(e)} does not have '\u0275mod' property.`);return n}function jn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Vn(e){return Array.isArray(e)&&!0===e[1]}function hi(e){return 0!=(8&e.flags)}function yi(e){return 2==(2&e.flags)}function ai(e){return 1==(1&e.flags)}function kn(e){return null!==e.template}function _r(e){return 0!=(512&e[2])}function Jn(e,t){return e.hasOwnProperty(Q)?e[Q]:null}class wi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function mi(){return Bi}function Bi(e){return e.type.prototype.ngOnChanges&&(e.setInput=br),vi}function vi(){const e=Si(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===$t)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function br(e,t,n,r){const o=Si(e)||function Yi(e,t){return e[Zi]=t}(e,{previous:$t,current:null}),a=o.current||(o.current={}),h=o.previous,v=this.declaredInputs[n],w=h[v];a[v]=new wi(w&&w.currentValue,t,h===$t),e[r]=t}mi.ngInherit=!0;const Zi="__ngSimpleChanges__";function Si(e){return e[Zi]||null}let oi=null;const ji=e=>{oi=e},Nn=function(e,t,n){null!=oi&&oi(e,t,n)},Ii="math";let f;function p(e){f=e}function x(){return void 0!==f?f:"undefined"!=typeof document?document:void 0}function fe(e){return!!e.listen}const y={createRenderer:(e,t)=>x()};function C(e){for(;Array.isArray(e);)e=e[0];return e}function Ye(e,t){return C(t[e])}function ot(e,t){return C(t[e.index])}function Pt(e,t){return e.data[t]}function xt(e,t){return e[t]}function Vt(e,t){const n=t[e];return jn(n)?n:n[0]}function Qt(e){return 4==(4&e[2])}function an(e){return 128==(128&e[2])}function P(e,t){return null==t?null:e[t]}function I(e){e[18]=0}function Z(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Qe={lFrame:En(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ci(){return Qe.bindingsEnabled}function Hi(){Qe.bindingsEnabled=!0}function Sr(){Qe.bindingsEnabled=!1}function Ct(){return Qe.lFrame.lView}function Mt(){return Qe.lFrame.tView}function Zt(e){return Qe.lFrame.contextLView=e,e[8]}function jt(){let e=fn();for(;null!==e&&64===e.type;)e=e.parent;return e}function fn(){return Qe.lFrame.currentTNode}function Pn(){const e=Qe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ln(e,t){const n=Qe.lFrame;n.currentTNode=e,n.isParent=t}function Xn(){return Qe.lFrame.isParent}function Ei(){Qe.lFrame.isParent=!1}function Ir(){return Qe.isInCheckNoChangesMode}function Un(e){Qe.isInCheckNoChangesMode=e}function xn(){const e=Qe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Zn(){return Qe.lFrame.bindingIndex}function oe(e){return Qe.lFrame.bindingIndex=e}function z(){return Qe.lFrame.bindingIndex++}function ee(e){const t=Qe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ke(e){Qe.lFrame.inI18n=e}function We(e,t){const n=Qe.lFrame;n.bindingIndex=n.bindingRootIndex=e,_t(t)}function _t(e){Qe.lFrame.currentDirectiveIndex=e}function gt(e){const t=Qe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function zt(){return Qe.lFrame.currentQueryIndex}function Gt(e){Qe.lFrame.currentQueryIndex=e}function _n(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function cn(e,t,n){if(n&L.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=_n(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=Qe.lFrame=dn();return r.currentTNode=t,r.lView=e,!0}function vn(e){const t=dn(),n=e[1];Qe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function dn(){const e=Qe.lFrame,t=null===e?null:e.child;return null===t?En(e):t}function En(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 Dn(){const e=Qe.lFrame;return Qe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ar=Dn;function gs(){const e=Dn();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 gi(){return Qe.lFrame.selectedIndex}function Pr(e){Qe.lFrame.selectedIndex=e}function Wn(){const e=Qe.lFrame;return Pt(e.tView,e.selectedIndex)}function xu(){Qe.lFrame.currentNamespace="svg"}function Ru(){Qe.lFrame.currentNamespace=Ii}function Fu(){!function zg(){Qe.lFrame.currentNamespace=null}()}function _s(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:h,ngAfterContentChecked:v,ngAfterViewInit:w,ngAfterViewChecked:B,ngOnDestroy:K}=a;h&&(e.contentHooks||(e.contentHooks=[])).push(-n,h),v&&((e.contentHooks||(e.contentHooks=[])).push(n,v),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,v)),w&&(e.viewHooks||(e.viewHooks=[])).push(-n,w),B&&((e.viewHooks||(e.viewHooks=[])).push(n,B),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,B)),null!=K&&(e.destroyHooks||(e.destroyHooks=[])).push(n,K)}}function ys(e,t,n){ku(e,t,3,n)}function vs(e,t,n,r){(3&e[2])===n&&ku(e,t,n,r)}function ma(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ku(e,t,n,r){const a=null!=r?r:-1,h=t.length-1;let v=0;for(let w=void 0!==r?65535&e[18]:0;w<h;w++)if("number"==typeof t[w+1]){if(v=t[w],null!=r&&v>=r)break}else t[w]<0&&(e[18]+=65536),(v<a||-1==a)&&(Qg(e,n,t,w),e[18]=(4294901760&e[18])+w+2),w++}function Qg(e,t,n,r){const o=n[r]<0,a=n[r+1],v=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Nn(4,v,a);try{a.call(v)}finally{Nn(5,v,a)}}}else{Nn(4,v,a);try{a.call(v)}finally{Nn(5,v,a)}}}class Ao{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function bs(e,t,n){const r=fe(e);let o=0;for(;o<n.length;){const a=n[o];if("number"==typeof a){if(0!==a)break;o++;const h=n[o++],v=n[o++],w=n[o++];r?e.setAttribute(t,v,w,h):t.setAttributeNS(h,v,w)}else{const h=a,v=n[++o];_a(h)?r&&e.setProperty(t,h,v):r?e.setAttribute(t,h,v):t.setAttribute(h,v),o++}}return o}function Nu(e){return 3===e||4===e||6===e}function _a(e){return 64===e.charCodeAt(0)}function Cs(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 o=t[r];"number"==typeof o?n=o:0===n||Lu(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Lu(e,t,n,r,o){let a=0,h=e.length;if(-1===t)h=-1;else for(;a<e.length;){const v=e[a++];if("number"==typeof v){if(v===t){h=-1;break}if(v>t){h=a-1;break}}}for(;a<e.length;){const v=e[a];if("number"==typeof v)break;if(v===n){if(null===r)return void(null!==o&&(e[a+1]=o));if(r===e[a+1])return void(e[a+2]=o)}a++,null!==r&&a++,null!==o&&a++}-1!==h&&(e.splice(h,0,t),a=h+1),e.splice(a++,0,n),null!==r&&e.splice(a++,0,r),null!==o&&e.splice(a++,0,o)}function Bu(e){return-1!==e}function Wr(e){return 32767&e}function zr(e,t){let n=function qg(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let ya=!0;function Es(e){const t=ya;return ya=e,t}let e_=0;function xo(e,t){const n=ba(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,va(r.data,e),va(t,null),va(r.blueprint,null));const o=Ds(e,t),a=e.injectorIndex;if(Bu(o)){const h=Wr(o),v=zr(o,t),w=v[1].data;for(let B=0;B<8;B++)t[a+B]=v[h+B]|w[h+B]}return t[a+8]=o,a}function va(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ba(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ds(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const a=o[1],h=a.type;if(r=2===h?a.declTNode:1===h?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ts(e,t,n){!function t_(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(N)&&(r=n[N]),null==r&&(r=n[N]=e_++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function $u(e,t,n){if(n&L.Optional)return e;se(t,"NodeInjector")}function Hu(e,t,n,r){if(n&L.Optional&&void 0===r&&(r=null),0==(n&(L.Self|L.Host))){const o=e[9],a=ue(void 0);try{return o?o.get(t,r,n&L.Optional):we(t,r,n&L.Optional)}finally{ue(a)}}return $u(r,t,n)}function Uu(e,t,n,r=L.Default,o){if(null!==e){const a=function o_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(N)?e[N]:void 0;return"number"==typeof t?t>=0?255&t:i_:t}(n);if("function"==typeof a){if(!cn(t,e,r))return r&L.Host?$u(o,n,r):Hu(t,n,r,o);try{const h=a(r);if(null!=h||r&L.Optional)return h;se(n)}finally{ar()}}else if("number"==typeof a){let h=null,v=ba(e,t),w=-1,B=r&L.Host?t[16][6]:null;for((-1===v||r&L.SkipSelf)&&(w=-1===v?Ds(e,t):t[v+8],-1!==w&&Ku(r,!1)?(h=t[1],v=Wr(w),t=zr(w,t)):v=-1);-1!==v;){const K=t[1];if(zu(a,v,K.data)){const Te=r_(v,t,n,h,r,B);if(Te!==Wu)return Te}w=t[v+8],-1!==w&&Ku(r,t[1].data[v+8]===B)&&zu(a,v,t)?(h=K,v=Wr(w),t=zr(w,t)):v=-1}}}return Hu(t,n,r,o)}const Wu={};function i_(){return new Kr(jt(),Ct())}function r_(e,t,n,r,o,a){const h=t[1],v=h.data[e+8],K=Ms(v,h,n,null==r?yi(v)&&ya:r!=h&&0!=(3&v.type),o&L.Host&&a===v);return null!==K?Ro(t,h,K,v):Wu}function Ms(e,t,n,r,o){const a=e.providerIndexes,h=t.data,v=1048575&a,w=e.directiveStart,K=a>>20,ze=o?v+K:e.directiveEnd;for(let nt=r?v:v+K;nt<ze;nt++){const pt=h[nt];if(nt<w&&n===pt||nt>=w&&pt.type===n)return nt}if(o){const nt=h[w];if(nt&&kn(nt)&&nt.type===n)return w}return null}function Ro(e,t,n,r){let o=e[n];const a=t.data;if(function Zg(e){return e instanceof Ao}(o)){const h=o;h.resolving&&function Se(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new $(-200,`Circular dependency in DI detected for ${e}${n}`)}(ae(a[n]));const v=Es(h.canSeeViewProviders);h.resolving=!0;const w=h.injectImpl?ue(h.injectImpl):null;cn(e,r,L.Default);try{o=e[n]=h.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Gg(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const h=Bi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,h),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,h)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==w&&ue(w),Es(v),h.resolving=!1,ar()}}return o}function zu(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Ku(e,t){return!(e&L.Self||e&L.Host&&t)}class Kr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Uu(this._tNode,this._lView,t,r,n)}}function Gu(e){return ie(()=>{const t=e.prototype.constructor,n=t[Q]||Ca(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[Q]||Ca(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function Ca(e){return b(e)?()=>{const t=Ca(M(e));return t&&t()}:Jn(e)}function Ea(e){return function n_(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 o=0;for(;o<r;){const a=n[o];if(Nu(a))break;if(0===a)o+=2;else if("number"==typeof a)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(a===t)return n[o+1];o+=2}}}return null}(jt(),e)}const Gr="__annotations__",Qr="__parameters__",Zr="__prop__metadata__";function Yr(e,t,n,r,o){return ie(()=>{const a=Da(t);function h(...v){if(this instanceof h)return a.call(this,...v),this;const w=new h(...v);return function(K){return o&&o(K,...v),(K.hasOwnProperty(Gr)?K[Gr]:Object.defineProperty(K,Gr,{value:[]})[Gr]).push(w),r&&r(K),K}}return n&&(h.prototype=Object.create(n.prototype)),h.prototype.ngMetadataName=e,h.annotationCls=h,h})}function Da(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}function Jr(e,t,n){return ie(()=>{const r=Da(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const h=new o(...a);return v.annotation=h,v;function v(w,B,K){const Te=w.hasOwnProperty(Qr)?w[Qr]:Object.defineProperty(w,Qr,{value:[]})[Qr];for(;Te.length<=K;)Te.push(null);return(Te[K]=Te[K]||[]).push(h),w}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Or(e,t,n,r){return ie(()=>{const o=Da(t);function a(...h){if(this instanceof a)return o.apply(this,h),this;const v=new a(...h);return function w(B,K){const Te=B.constructor,ze=Te.hasOwnProperty(Zr)?Te[Zr]:Object.defineProperty(Te,Zr,{value:{}})[Zr];ze[K]=ze.hasOwnProperty(K)&&ze[K]||[],ze[K].unshift(v),r&&r(B,K,...h)}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Qu=Jr("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Ea(e)}));class zn{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=Xe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const s_=new zn("AnalyzeForEntryComponents");class Fo{}const a_=Or("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Fo),l_=Or("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Fo),c_=Or("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Fo),u_=Or("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Fo);var qn=(()=>((qn=qn||{})[qn.Directive=0]="Directive",qn[qn.Component=1]="Component",qn[qn.Injectable=2]="Injectable",qn[qn.Pipe=3]="Pipe",qn[qn.NgModule=4]="NgModule",qn))();function ei(e){const t=Ft.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const ws=Function;function ko(e){return"function"==typeof e}function Ui(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),Ui(r,t)):t!==e&&t.push(r)}return t}function lr(e,t){e.forEach(n=>Array.isArray(n)?lr(n,t):t(n))}function Yu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ss(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function No(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Pi(e,t,n){let r=Xr(e,t);return r>=0?e[1|r]=n:(r=~r,function f_(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Ta(e,t){const n=Xr(e,t);if(n>=0)return e[1|n]}function Xr(e,t){return function qu(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),h=e[a<<n];if(t===h)return a<<n;h>t?o=a:r=a+1}return~(o<<n)}(e,t,1)}const p_=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,m_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,g_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,__=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Ma{constructor(t){this._reflect=t||Ft.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;r=No(void 0===t?n.length:t.length);for(let o=0;o<r.length;o++)r[o]=void 0===t?[]:t[o]&&t[o]!=Object?[t[o]]:[],n&&null!=n[o]&&(r[o]=r[o].concat(n[o]));return r}_ownParameters(t,n){if(function y_(e){return p_.test(e)||__.test(e)||m_.test(e)&&!g_.test(e)}(t.toString()))return null;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;const o=t.ctorParameters;if(o&&o!==n.ctorParameters){const v="function"==typeof o?o():o,w=v.map(K=>K&&K.type),B=v.map(K=>K&&wa(K.decorators));return this._zipTypesAndAnnotations(w,B)}const a=t.hasOwnProperty(Qr)&&t[Qr],h=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return h||a?this._zipTypesAndAnnotations(h,a):No(t.length)}parameters(t){if(!ko(t))return[];const n=Is(t);let r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?wa(t.decorators):t.hasOwnProperty(Gr)?t[Gr]:null}annotations(t){if(!ko(t))return[];const n=Is(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){const r=t.propDecorators,o={};return Object.keys(r).forEach(a=>{o[a]=wa(r[a])}),o}return t.hasOwnProperty(Zr)?t[Zr]:null}propMetadata(t){if(!ko(t))return{};const n=Is(t),r={};if(n!==Object){const a=this.propMetadata(n);Object.keys(a).forEach(h=>{r[h]=a[h]})}const o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(a=>{const h=[];r.hasOwnProperty(a)&&h.push(...r[a]),h.push(...o[a]),r[a]=h}),r}ownPropMetadata(t){return ko(t)&&this._ownPropMetadata(t,Is(t))||{}}hasLifecycleHook(t,n){return t instanceof ws&&n in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${T(t)}`}resourceUri(t){return`./${T(t)}`}resolveIdentifier(t,n,r,o){return o}resolveEnum(t,n){return t[n]}}function wa(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Is(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const xr={},Sa="__NG_DI_FLAG__",Ps="ngTempTokenPath",b_=/\n/gm,ed="__source",E_=_({provide:String,useValue:_});let Lo;function Ia(e){const t=Lo;return Lo=e,t}function D_(e,t=L.Default){if(void 0===Lo)throw new $(203,"");return null===Lo?we(e,void 0,t):Lo.get(e,t&L.Optional?null:void 0,t)}function ni(e,t=L.Default){return(function Oe(){return re}()||D_)(M(e),t)}function Pa(e){throw new Error("invalid")}const T_=ni;function Aa(e){const t=[];for(let n=0;n<e.length;n++){const r=M(e[n]);if(Array.isArray(r)){if(0===r.length)throw new $(900,"");let o,a=L.Default;for(let h=0;h<r.length;h++){const v=r[h],w=M_(v);"number"==typeof w?-1===w?o=v.token:a|=w:o=v}t.push(ni(o,a))}else t.push(ni(r))}return t}function Bo(e,t){return e[Sa]=t,e.prototype[Sa]=t,e}function M_(e){return e[Sa]}const jo=Bo(Jr("Inject",e=>({token:e})),-1),kr=Bo(Jr("Optional"),8),As=Bo(Jr("Self"),2),Nr=Bo(Jr("SkipSelf"),4),td=Bo(Jr("Host"),1);let nd=null;function Oa(){return nd=nd||new Ma}function Os(e){return id(Oa().parameters(e))}function id(e){return e.map(t=>function I_(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const r=e[n];if(void 0===r)continue;const o=Object.getPrototypeOf(r);if(r instanceof kr||"Optional"===o.ngMetadataName)t.optional=!0;else if(r instanceof Nr||"SkipSelf"===o.ngMetadataName)t.skipSelf=!0;else if(r instanceof As||"Self"===o.ngMetadataName)t.self=!0;else if(r instanceof td||"Host"===o.ngMetadataName)t.host=!0;else if(r instanceof jo)t.token=r.token;else if(r instanceof Qu){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function rd(e){const t=[],n=new Map;function r(o){let a=n.get(o);if(!a){const h=e(o);n.set(o,a=h.then(O_))}return a}return qr.forEach((o,a)=>{const h=[];o.templateUrl&&h.push(r(o.templateUrl).then(Te=>{o.template=Te}));const v=o.styleUrls,w=o.styles||(o.styles=[]),B=o.styles.length;v&&v.forEach((Te,ze)=>{w.push(""),h.push(r(Te).then(nt=>{w[B+ze]=nt,v.splice(v.indexOf(Te),1),0==v.length&&(o.styleUrls=void 0)}))});const K=Promise.all(h).then(()=>function x_(e){Vo.delete(e)}(a));t.push(K)}),sd(),Promise.all(t).then(()=>{})}let qr=new Map;const Vo=new Set;function od(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function sd(){const e=qr;return qr=new Map,e}function O_(e){return"string"==typeof e?e:e.text()}let xs,Rs;function xa(){if(void 0===xs&&(xs=null,Ft.trustedTypes))try{xs=Ft.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return xs}function eo(e){var t;return(null===(t=xa())||void 0===t?void 0:t.createHTML(e))||e}function Ra(){if(void 0===Rs&&(Rs=null,Ft.trustedTypes))try{Rs=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Rs}function ad(e){var t;return(null===(t=Ra())||void 0===t?void 0:t.createHTML(e))||e}function ld(e){var t;return(null===(t=Ra())||void 0===t?void 0:t.createScript(e))||e}function cd(e){var t;return(null===(t=Ra())||void 0===t?void 0:t.createScriptURL(e))||e}class Lr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class k_ extends Lr{getTypeName(){return"HTML"}}class N_ extends Lr{getTypeName(){return"Style"}}class L_ extends Lr{getTypeName(){return"Script"}}class B_ extends Lr{getTypeName(){return"URL"}}class j_ extends Lr{getTypeName(){return"ResourceURL"}}function Er(e){return e instanceof Lr?e.changingThisBreaksApplicationSecurity:e}function to(e,t){const n=ud(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function ud(e){return e instanceof Lr&&e.getTypeName()||null}function V_(e){return new k_(e)}function $_(e){return new N_(e)}function H_(e){return new L_(e)}function U_(e){return new B_(e)}function W_(e){return new j_(e)}function dd(e){const t=new K_(e);return function G_(){try{return!!(new window.DOMParser).parseFromString(eo(""),"text/html")}catch(e){return!1}}()?new z_(t):t}class z_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(eo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class K_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=eo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=eo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0<o;o--){const h=n.item(o).name;("xmlns:ns1"===h||0===h.indexOf("ns1:"))&&t.removeAttribute(h)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const Q_=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Z_=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function $o(e){return(e=String(e)).match(Q_)||e.match(Z_)?e:"unsafe:"+e}function hd(e){return(e=String(e)).split(",").map(t=>$o(t.trim())).join(", ")}function cr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ho(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const fd=cr("area,br,col,hr,img,wbr"),pd=cr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),md=cr("rp,rt"),Fa=Ho(fd,Ho(pd,cr("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")),Ho(md,cr("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")),Ho(md,pd)),ka=cr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Na=cr("srcset"),gd=Ho(ka,Na,cr("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),cr("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")),Y_=cr("script,style,template");class J_{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 o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Fa.hasOwnProperty(n))return this.sanitizedSomething=!0,!Y_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o<r.length;o++){const a=r.item(o),h=a.name,v=h.toLowerCase();if(!gd.hasOwnProperty(v)){this.sanitizedSomething=!0;continue}let w=a.value;ka[v]&&(w=$o(w)),Na[v]&&(w=hd(w)),this.buf.push(" ",h,'="',_d(w),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fa.hasOwnProperty(n)&&!fd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(_d(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 X_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,q_=/([^\#-~ |!])/g;function _d(e){return e.replace(/&/g,"&amp;").replace(X_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(q_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Fs;function yd(e,t){let n=null;try{Fs=Fs||dd(e);let r=t?String(t):"";n=Fs.getInertBodyElement(r);let o=5,a=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=a,a=n.innerHTML,n=Fs.getInertBodyElement(r)}while(r!==a);return eo((new J_).sanitizeChildren(La(n)||n))}finally{if(n){const r=La(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function La(e){return"content"in e&&function ey(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Qn=(()=>((Qn=Qn||{})[Qn.NONE=0]="NONE",Qn[Qn.HTML=1]="HTML",Qn[Qn.STYLE=2]="STYLE",Qn[Qn.SCRIPT=3]="SCRIPT",Qn[Qn.URL=4]="URL",Qn[Qn.RESOURCE_URL=5]="RESOURCE_URL",Qn))();function vd(e){const t=Uo();return t?ad(t.sanitize(Qn.HTML,e)||""):to(e,"HTML")?ad(Er(e)):yd(x(),U(e))}function bd(e){const t=Uo();return t?t.sanitize(Qn.STYLE,e)||"":to(e,"Style")?Er(e):U(e)}function Ba(e){const t=Uo();return t?t.sanitize(Qn.URL,e)||"":to(e,"URL")?Er(e):$o(U(e))}function ja(e){const t=Uo();if(t)return cd(t.sanitize(Qn.RESOURCE_URL,e)||"");if(to(e,"ResourceURL"))return cd(Er(e));throw new $(904,"")}function Cd(e){const t=Uo();if(t)return ld(t.sanitize(Qn.SCRIPT,e)||"");if(to(e,"Script"))return ld(Er(e));throw new $(905,"")}function Ed(e){return eo(e[0])}function Dd(e){return function F_(e){var t;return(null===(t=xa())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Td(e,t,n){return function ty(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?ja:Ba}(t,n)(e)}function Uo(){const e=Ct();return e&&e[12]}function ci(e){let t=Wo(e);if(t){if(Array.isArray(t)){const n=t;let r,o,a;if(function ny(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(r=Id(n,e),-1==r)throw new Error("The provided component was not found in the application");o=e}else if(function iy(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function oy(e,t){let n=e[1].firstChild;for(;n;){const o=n.directiveEnd;for(let a=n.directiveStart;a<o;a++)if(e[a]===t)return n.index;n=ry(n)}return-1}(n,e),-1==r)throw new Error("The provided directive was not found in the application");a=Pd(r,n,!1)}else if(r=Sd(n,e),-1==r)return null;const h=C(n[r]),v=Wo(h),w=v&&!Array.isArray(v)?v:Va(n,r,h);if(o&&void 0===w.component&&(w.component=o,ui(w.component,w)),a&&void 0===w.directives){w.directives=a;for(let B=0;B<a.length;B++)ui(a[B],w)}ui(w.native,w),t=w}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=Wo(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const h=Sd(a,n);if(h>=0){const v=C(a[h]),w=Va(a,h,v);ui(v,w),t=w;break}}}}return t||null}function Va(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Md(e){let n,t=Wo(e);if(Array.isArray(t)){const r=Id(t,e);n=Vt(r,t);const o=Va(t,r,n[0]);o.component=e,ui(e,o),ui(o.native,o)}else n=Vt(t.nodeIndex,t.lView);return n}const wd="__ngContext__";function ui(e,t){e[wd]=t}function Wo(e){return e[wd]||null}function $a(e){const t=Wo(e);return t?Array.isArray(t)?t:t.lView:null}function Sd(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(C(e[r])===t)return r;return-1}function ry(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Id(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const o=n[r];if(Vt(o,e)[8]===t)return o}else if(Vt(20,e)[8]===t)return 20;return-1}function Pd(e,t,n){const r=t[1].data[e];let o=r.directiveStart;return 0==o?Tt:(!n&&2&r.flags&&o++,t.slice(o,r.directiveEnd))}const Ha="ngOriginalError";function Ua(e){return e[Ha]}function dy(e,...t){e.error(...t)}class zo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function uy(e){return e&&e.ngErrorLogger||dy}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ua(t);for(;n&&Ua(n);)n=Ua(n);return n||null}}const Ad={name:"custom-elements"},Od={name:"no-errors-schema"},hy=/^>|^->|<!--|-->|--!>|<!-$/g,fy=/(<|>)/;const Rd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ft))();function Fd(e){return e.ownerDocument.defaultView}function kd(e){return e.ownerDocument}function Nd(e){return e.ownerDocument.body}function ur(e){return e instanceof Function?e():e}var dr=(()=>((dr=dr||{})[dr.Important=1]="Important",dr[dr.DashCase=2]="DashCase",dr))();let Wa;function za(e,t){return Wa(e,t)}function Ko(e){const t=e[3];return Vn(t)?t[3]:t}function Vd(e){return function jd(e){let t=jn(e)?e:$a(e);for(;t&&!(512&t[2]);)t=Ko(t);return t}(e)[8]}function Ka(e){return $d(e[13])}function Ga(e){return $d(e[4])}function $d(e){for(;null!==e&&!Vn(e);)e=e[4];return e}function io(e,t,n,r,o){if(null!=r){let a,h=!1;Vn(r)?a=r:jn(r)&&(h=!0,r=r[0]);const v=C(r);0===e&&null!==n?null==o?Gd(t,n,v):Br(t,n,v,o||null,!0):1===e&&null!==n?Br(t,n,v,o||null,!0):2===e?eh(t,v,h):3===e&&t.destroyNode(v),null!=a&&function xy(e,t,n,r,o){const a=n[7];a!==C(n)&&io(t,e,r,a,o);for(let v=10;v<n.length;v++){const w=n[v];Go(w[1],w,e,t,r,a)}}(t,e,a,n,o)}}function Qa(e,t){return fe(e)?e.createText(t):e.createTextNode(t)}function Hd(e,t,n){fe(e)?e.setValue(t,n):t.textContent=n}function by(e,t){return e.createComment(function xd(e){return e.replace(hy,t=>t.replace(fy,"\u200b$1\u200b"))}(t))}function Za(e,t,n){if(fe(e))return e.createElement(t,n);{const r=null!==n?function Y(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":t===Ii?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?e.createElement(t):e.createElementNS(r,t)}}function Ud(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,Z(o,-1)),n.splice(r,1)}function Ya(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&Ud(o,r),t>0&&(e[n-1][4]=r[4]);const a=Ss(e,10+t);!function Cy(e,t){Go(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const h=a[19];null!==h&&h.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Wd(e,t){if(!(256&t[2])){const n=t[11];fe(n)&&n.destroyNode&&Go(e,t,n,3,null,null),function Ty(e){let t=e[13];if(!t)return Ja(e[1],e);for(;t;){let n=null;if(jn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)jn(t)&&Ja(t[1],t),t=t[3];null===t&&(t=e),jn(t)&&Ja(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ja(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Iy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Ao)){const a=n[r+1];if(Array.isArray(a))for(let h=0;h<a.length;h+=2){const v=o[a[h]],w=a[h+1];Nn(4,v,w);try{w.call(v)}finally{Nn(5,v,w)}}else{Nn(4,o,a);try{a.call(o)}finally{Nn(5,o,a)}}}}}(e,t),function Sy(e,t){const n=e.cleanup,r=t[7];let o=-1;if(null!==n)for(let a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){const h=n[a+1],v="function"==typeof h?h(t):C(t[h]),w=r[o=n[a+2]],B=n[a+3];"boolean"==typeof B?v.removeEventListener(n[a],w,B):B>=0?r[o=B]():r[o=-B].unsubscribe(),a+=2}else{const h=r[o=n[a+1]];n[a].call(h)}if(null!==r){for(let a=o+1;a<r.length;a++)r[a]();t[7]=null}}(e,t),1===t[1].type&&fe(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Vn(t[3])){n!==t[3]&&Ud(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function zd(e,t,n){return Kd(e,t.parent,n)}function Kd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const o=e.data[r.directiveStart].encapsulation;if(o===ht.None||o===ht.Emulated)return null}return ot(r,n)}function Br(e,t,n,r,o){fe(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function Gd(e,t,n){fe(e)?e.appendChild(t,n):t.appendChild(n)}function Qd(e,t,n,r,o){null!==r?Br(e,t,n,r,o):Gd(e,t,n)}function ks(e,t){return fe(e)?e.parentNode(t):t.parentNode}function Zd(e,t,n){return Jd(e,t,n)}function Yd(e,t,n){return 40&e.type?ot(e,n):null}let Xa,Jd=Yd;function Xd(e,t){Jd=e,Xa=t}function Ns(e,t,n,r){const o=zd(e,r,t),a=t[11],v=Zd(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let w=0;w<n.length;w++)Qd(a,o,n[w],v,!1);else Qd(a,o,n,v,!1);void 0!==Xa&&Xa(a,r,t,n,o)}function Ls(e,t){if(null!==t){const n=t.type;if(3&n)return ot(t,e);if(4&n)return qa(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Ls(e,r);{const o=e[t.index];return Vn(o)?qa(-1,o):C(o)}}if(32&n)return za(t,e)()||C(e[t.index]);{const r=qd(e,t);return null!==r?Array.isArray(r)?r[0]:Ls(Ko(e[16]),r):Ls(e,t.next)}}return null}function qd(e,t){return null!==t?e[16][6].projection[t.projection]:null}function qa(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return Ls(r,o)}return t[7]}function eh(e,t,n){const r=ks(e,t);r&&function Py(e,t,n,r){fe(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function el(e,t,n,r,o,a,h){for(;null!=n;){const v=r[n.index],w=n.type;if(h&&0===t&&(v&&ui(C(v),r),n.flags|=4),64!=(64&n.flags))if(8&w)el(e,t,n.child,r,o,a,!1),io(t,e,o,v,a);else if(32&w){const B=za(n,r);let K;for(;K=B();)io(t,e,o,K,a);io(t,e,o,v,a)}else 16&w?th(e,t,r,n,o,a):io(t,e,o,v,a);n=h?n.projectionNext:n.next}}function Go(e,t,n,r,o,a){el(n,r,e.firstChild,t,o,a,!1)}function th(e,t,n,r,o,a){const h=n[16],w=h[6].projection[r.projection];if(Array.isArray(w))for(let B=0;B<w.length;B++)io(t,e,o,w[B],a);else el(e,t,w,h[3],o,a,!0)}function nh(e,t,n){fe(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function tl(e,t,n){fe(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function ih(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const a=t.length;if(o+a===r||e.charCodeAt(o+a)<=32)return o}n=o+1}}const rh="ng-template";function Fy(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==ih(o.toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function oh(e){return 4===e.type&&e.value!==rh}function ky(e,t,n){return t===(4!==e.type||n?e.value:rh)}function Ny(e,t,n){let r=4;const o=e.attrs||[],a=function jy(e){for(let t=0;t<e.length;t++)if(Nu(e[t]))return t;return e.length}(o);let h=!1;for(let v=0;v<t.length;v++){const w=t[v];if("number"!=typeof w){if(!h)if(4&r){if(r=2|1&r,""!==w&&!ky(e,w,n)||""===w&&1===t.length){if(Ji(r))return!1;h=!0}}else{const B=8&r?w:t[++v];if(8&r&&null!==e.attrs){if(!Fy(e.attrs,B,n)){if(Ji(r))return!1;h=!0}continue}const Te=Ly(8&r?"class":w,o,oh(e),n);if(-1===Te){if(Ji(r))return!1;h=!0;continue}if(""!==B){let ze;ze=Te>a?"":o[Te+1].toLowerCase();const nt=8&r?ze:null;if(nt&&-1!==ih(nt,B,0)||2&r&&B!==ze){if(Ji(r))return!1;h=!0}}}}else{if(!h&&!Ji(r)&&!Ji(w))return!1;if(h&&Ji(w))continue;h=!1,r=w|1&r}}return Ji(r)||h}function Ji(e){return 0==(1&e)}function Ly(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let a=!1;for(;o<t.length;){const h=t[o];if(h===e)return o;if(3===h||6===h)a=!0;else{if(1===h||2===h){let v=t[++o];for(;"string"==typeof v;)v=t[++o];continue}if(4===h)break;if(0===h){o+=4;continue}}o+=a?1:2}return-1}return function Vy(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 sh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ny(e,t[r],n))return!0;return!1}function $y(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function ah(e,t){return e?":not("+t.trim()+")":t}function Hy(e){let t=e[0],n=1,r=2,o="",a=!1;for(;n<e.length;){let h=e[n];if("string"==typeof h)if(2&r){const v=e[++n];o+="["+h+(v.length>0?'="'+v+'"':"")+"]"}else 8&r?o+="."+h:4&r&&(o+=" "+h);else""!==o&&!Ji(h)&&(t+=ah(a,o),o=""),r=h,a=a||!Ji(r);n++}return""!==o&&(t+=ah(a,o)),t}const on={};function lh(e){ch(Mt(),Ct(),gi()+e,Ir())}function ch(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&ys(t,a,n)}else{const a=e.preOrderHooks;null!==a&&vs(t,a,0,n)}Pr(n)}function Bs(e,t){return e<<17|t<<2}function Xi(e){return e>>17&32767}function nl(e){return 2|e}function Dr(e){return(131068&e)>>2}function il(e,t){return-131069&e|t<<2}function rl(e){return 1|e}const hl=(()=>Promise.resolve(null))();function bh(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],a=n[r+1];if(-1!==a){const h=e.data[a];Gt(o),h.contentQueries(2,t[a],a)}}}function Qo(e,t,n,r,o,a,h,v,w,B){const K=t.blueprint.slice();return K[0]=o,K[2]=140|r,I(K),K[3]=K[15]=e,K[8]=n,K[10]=h||e&&e[10],K[11]=v||e&&e[11],K[12]=w||e&&e[12]||null,K[9]=B||e&&e[9]||null,K[6]=a,K[16]=2==t.type?e[16]:K,K}function ro(e,t,n,r,o){let a=e.data[t];if(null===a)a=fl(e,t,n,r,o),function ce(){return Qe.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const h=Pn();a.injectorIndex=null===h?-1:h.injectorIndex}return Ln(a,!0),a}function fl(e,t,n,r,o){const a=fn(),h=Xn(),w=e.data[t]=function sv(e,t,n,r,o,a){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next: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,h?a:a&&a.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=w),null!==a&&(h?null==a.child&&null!==w.parent&&(a.child=w):null===a.next&&(a.next=w)),w}function oo(e,t,n,r){if(0===n)return-1;const o=t.length;for(let a=0;a<n;a++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Zo(e,t,n){vn(t);try{const r=e.viewQuery;null!==r&&El(1,r,n);const o=e.template;null!==o&&Ch(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&bh(e,t),e.staticViewQueries&&El(2,e.viewQuery,n);const a=e.components;null!==a&&function iv(e,t){for(let n=0;n<t.length;n++)Tv(e,t[n])}(t,a)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,gs()}}function so(e,t,n,r){const o=t[2];if(256==(256&o))return;vn(t);const a=Ir();try{I(t),oe(e.bindingStartIndex),null!==n&&Ch(e,t,n,2,r);const h=3==(3&o);if(!a)if(h){const B=e.preOrderCheckHooks;null!==B&&ys(t,B,null)}else{const B=e.preOrderHooks;null!==B&&vs(t,B,0,null),ma(t,0)}if(function Ev(e){for(let t=Ka(e);null!==t;t=Ga(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const o=n[r],a=o[3];0==(1024&o[2])&&Z(a,1),o[2]|=1024}}}(t),function Cv(e){for(let t=Ka(e);null!==t;t=Ga(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];an(r)&&so(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&bh(e,t),!a)if(h){const B=e.contentCheckHooks;null!==B&&ys(t,B)}else{const B=e.contentHooks;null!==B&&vs(t,B,1),ma(t,1)}!function tv(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Pr(~o);else{const a=o,h=n[++r],v=n[++r];We(h,a),v(2,t[a])}}}finally{Pr(-1)}}(e,t);const v=e.components;null!==v&&function nv(e,t){for(let n=0;n<t.length;n++)Dv(e,t[n])}(t,v);const w=e.viewQuery;if(null!==w&&El(2,w,r),!a)if(h){const B=e.viewCheckHooks;null!==B&&ys(t,B)}else{const B=e.viewHooks;null!==B&&vs(t,B,2),ma(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Z(t[3],-1))}finally{gs()}}function rv(e,t,n,r){const o=t[10],a=!Ir(),h=Qt(t);try{a&&!h&&o.begin&&o.begin(),h&&Zo(e,t,r),so(e,t,n,r)}finally{a&&!h&&o.end&&o.end()}}function Ch(e,t,n,r,o){const a=gi(),h=2&r;try{Pr(-1),h&&t.length>20&&ch(e,t,20,Ir()),Nn(h?2:0,o),n(r,o)}finally{Pr(a),Nn(h?3:1,o)}}function Eh(e,t,n){if(hi(t)){const o=t.directiveEnd;for(let a=t.directiveStart;a<o;a++){const h=e.data[a];h.contentQueries&&h.contentQueries(1,n[a],a)}}}function pl(e,t,n){!Ci()||(function fv(e,t,n,r){const o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||xo(n,t),ui(r,t);const h=n.initialInputs;for(let v=o;v<a;v++){const w=e.data[v],B=kn(w);B&&yv(t,n,w);const K=Ro(t,e,v,n);ui(K,t),null!==h&&vv(0,v-o,K,w,0,h),B&&(Vt(n.index,t)[8]=K)}}(e,t,n,ot(n,t)),128==(128&n.flags)&&function pv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,h=n.index,v=function rt(){return Qe.lFrame.currentDirectiveIndex}();try{Pr(h);for(let w=r;w<o;w++){const B=e.data[w],K=t[w];_t(w),(null!==B.hostBindings||0!==B.hostVars||null!==B.hostAttrs)&&Ah(B,K)}}finally{Pr(-1),_t(v)}}(e,t,n))}function ml(e,t,n=ot){const r=t.localNames;if(null!==r){let o=t.index+1;for(let a=0;a<r.length;a+=2){const h=r[a+1],v=-1===h?n(t,e):e[h];e[o++]=v}}}function Dh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=$s(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function $s(e,t,n,r,o,a,h,v,w,B){const K=20+r,Te=K+o,ze=function ov(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:on);return n}(K,Te),nt="function"==typeof B?B():B;return ze[1]={type:e,blueprint:ze,template:n,queries:null,viewQuery:v,declTNode:t,data:ze.slice().fill(null,K),bindingStartIndex:K,expandoStartIndex:Te,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 a?a():a,pipeRegistry:"function"==typeof h?h():h,firstChild:null,schemas:w,consts:nt,incompleteFirstPass:!1}}function Mh(e,t,n){if(fe(e))return e.selectRootElement(t,n===ht.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function wh(e,t,n,r){const o=Nh(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Lh(e).push(r,o.length-1))}function Sh(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const o=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,o):n[r]=[t,o]}return n}function Ai(e,t,n,r,o,a,h,v){const w=ot(t,n);let K,B=t.inputs;!v&&null!=B&&(K=B[r])?(Vh(e,n,K,r,o),yi(t)&&function cv(e,t){const n=Vt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function lv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=h?h(o,t.value||"",r):o,fe(a)?a.setProperty(w,r,o):_a(r)||(w.setProperty?w.setProperty(r,o):w[r]=o))}function gl(e,t,n,r){let o=!1;if(Ci()){const a=function mv(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let a=0;a<r.length;a++){const h=r[a];sh(n,h.selectors,!1)&&(o||(o=[]),Ts(xo(n,t),e,h.type),kn(h)?(Oh(e,n),o.unshift(h)):o.push(h))}return o}(e,t,n),h=null===r?null:{"":-1};if(null!==a){o=!0,xh(n,e.data.length,a.length);for(let K=0;K<a.length;K++){const Te=a[K];Te.providersResolver&&Te.providersResolver(Te)}let v=!1,w=!1,B=oo(e,t,a.length,null);for(let K=0;K<a.length;K++){const Te=a[K];n.mergedAttrs=Cs(n.mergedAttrs,Te.hostAttrs),Rh(e,n,t,B,Te),_v(B,Te,h),null!==Te.contentQueries&&(n.flags|=8),(null!==Te.hostBindings||null!==Te.hostAttrs||0!==Te.hostVars)&&(n.flags|=128);const ze=Te.type.prototype;!v&&(ze.ngOnChanges||ze.ngOnInit||ze.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),v=!0),!w&&(ze.ngOnChanges||ze.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),w=!0),B++}!function av(e,t){const r=t.directiveEnd,o=e.data,a=t.attrs,h=[];let v=null,w=null;for(let B=t.directiveStart;B<r;B++){const K=o[B],Te=K.inputs,ze=null===a||oh(t)?null:bv(Te,a);h.push(ze),v=Sh(Te,B,v),w=Sh(K.outputs,B,w)}null!==v&&(v.hasOwnProperty("class")&&(t.flags|=16),v.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=h,t.inputs=v,t.outputs=w}(e,n)}h&&function gv(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const a=n[t[o+1]];if(null==a)throw new $(-301,!1);r.push(t[o],a)}}}(n,r,h)}return n.mergedAttrs=Cs(n.mergedAttrs,n.attrs),o}function Ph(e,t,n,r,o,a){const h=a.hostBindings;if(h){let v=e.hostBindingOpCodes;null===v&&(v=e.hostBindingOpCodes=[]);const w=~t.index;(function hv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(v)!=w&&v.push(w),v.push(r,o,h)}}function Ah(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Oh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function _v(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;kn(t)&&(n[""]=e)}}function xh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Rh(e,t,n,r,o){e.data[r]=o;const a=o.factory||(o.factory=Jn(o.type)),h=new Ao(a,kn(o),null);e.blueprint[r]=h,n[r]=h,Ph(e,t,0,r,oo(e,n,o.hostVars,on),o)}function yv(e,t,n){const r=ot(t,e),o=Dh(n),a=e[10],h=Hs(e,Qo(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=h}function hr(e,t,n,r,o,a){const h=ot(e,t);_l(t[11],h,a,e.value,n,r,o)}function _l(e,t,n,r,o,a,h){if(null==a)fe(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const v=null==h?U(a):h(a,r||"",o);fe(e)?e.setAttribute(t,o,v,n):n?t.setAttributeNS(n,o,v):t.setAttribute(o,v)}}function vv(e,t,n,r,o,a){const h=a[t];if(null!==h){const v=r.setInput;for(let w=0;w<h.length;){const B=h[w++],K=h[w++],Te=h[w++];null!==v?r.setInput(n,Te,B,K):n[K]=Te}}}function bv(e,t){let n=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Fh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Dv(e,t){const n=Vt(t,e);if(an(n)){const r=n[1];80&n[2]?so(r,n,r.template,n[8]):n[5]>0&&yl(n)}}function yl(e){for(let r=Ka(e);null!==r;r=Ga(r))for(let o=10;o<r.length;o++){const a=r[o];if(1024&a[2]){const h=a[1];so(h,a,h.template,a[8])}else a[5]>0&&yl(a)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=Vt(n[r],e);an(o)&&o[5]>0&&yl(o)}}function Tv(e,t){const n=Vt(t,e),r=n[1];(function Mv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Zo(r,n,n[8])}function Hs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function vl(e){for(;e;){e[2]|=64;const t=Ko(e);if(_r(e)&&!t)return e;e=t}return null}function bl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=$a(n),o=r[1];rv(o,r,o.template,n)}}function Cl(e,t,n){const r=t[10];r.begin&&r.begin();try{so(e,t,e.template,n)}catch(o){throw jh(t,o),o}finally{r.end&&r.end()}}function kh(e){bl(e[8])}function El(e,t,n){Gt(0),t(e,n)}const Pv=hl;function Nh(e){return e[7]||(e[7]=[])}function Lh(e){return e.cleanup||(e.cleanup=[])}function Bh(e,t,n){return(null===e||kn(e))&&(n=function V(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function jh(e,t){const n=e[9],r=n?n.get(zo,null):null;r&&r.handleError(t)}function Vh(e,t,n,r,o){for(let a=0;a<n.length;){const h=n[a++],v=n[a++],w=t[h],B=e.data[h];null!==B.setInput?B.setInput(w,o,r,v):w[v]=o}}function Tr(e,t,n){const r=Ye(t,e);Hd(e[11],r,n)}function Us(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let h=0;h<t.length;h++){const v=t[h];"number"==typeof v?a=v:1==a?o=S(o,v):2==a&&(r=S(r,v+": "+t[++h]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function $h(e){const t=Md(e);Cl(t[1],t,e)}function Hh(e){!function wv(e,t){if(0===e.flags&&e.clean==hl){let r;e.flags|=t,e.clean=new Promise(o=>r=o),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,bl(e)),2&e.flags){e.flags&=-3;const o=e.playerHandler;o&&o.flushPlayers()}e.clean=hl,r(null)})}}(vl(Md(e))[8],1)}const Ws=new zn("INJECTOR",-1);class Uh{get(t,n=xr){if(n===xr){const r=new Error(`NullInjectorError: No provider for ${T(t)}!`);throw r.name="NullInjectorError",r}return n}}const Dl=new zn("Set Injector scope."),Yo={},Av={};let Tl;function Wh(){return void 0===Tl&&(Tl=new Uh),Tl}function Ml(e,t=null,n=null,r){const o=zh(e,t,n,r);return o._resolveInjectorDefTypes(),o}function zh(e,t=null,n=null,r){return new Ov(e,n,t||Wh(),r)}class Ov{constructor(t,n,r,o=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];n&&lr(n,v=>this.processProvider(v,t,n)),lr([t],v=>this.processInjectorType(v,[],a)),this.records.set(Ws,ao(void 0,this));const h=this.records.get(Dl);this.scope=null!=h?h.value:null,this.source=o||("object"==typeof t?null:T(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=xr,r=L.Default){this.assertNotDestroyed();const o=Ia(this),a=ue(void 0);try{if(!(r&L.SkipSelf)){let v=this.records.get(t);if(void 0===v){const w=function jv(e){return"function"==typeof e||"object"==typeof e&&e instanceof zn}(t)&&Ie(t);v=w&&this.injectableDefInScope(w)?ao(wl(t),Yo):null,this.records.set(t,v)}if(null!=v)return this.hydrate(t,v)}return(r&L.Self?Wh():this.parent).get(t,n=r&L.Optional&&n===xr?null:n)}catch(h){if("NullInjectorError"===h.name){if((h[Ps]=h[Ps]||[]).unshift(T(t)),o)throw h;return function w_(e,t,n,r){const o=e[Ps];throw t[ed]&&o.unshift(t[ed]),e.message=function S_(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=T(t);if(Array.isArray(t))o=t.map(T).join(" -> ");else if("object"==typeof t){let a=[];for(let h in t)if(t.hasOwnProperty(h)){let v=t[h];a.push(h+":"+("string"==typeof v?JSON.stringify(v):T(v)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(b_,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Ps]=null,e}(h,t,"R3InjectorError",this.source)}throw h}finally{ue(a),Ia(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(T(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $(205,!1)}processInjectorType(t,n,r){if(!(t=M(t)))return!1;let o=mt(t);const a=null==o&&t.ngModule||void 0,h=void 0===a?t:a,v=-1!==r.indexOf(h);if(void 0!==a&&(o=mt(a)),null==o)return!1;if(null!=o.imports&&!v){let K;r.push(h);try{lr(o.imports,Te=>{this.processInjectorType(Te,n,r)&&(void 0===K&&(K=[]),K.push(Te))})}finally{}if(void 0!==K)for(let Te=0;Te<K.length;Te++){const{ngModule:ze,providers:nt}=K[Te];lr(nt,pt=>this.processProvider(pt,ze,nt||Tt))}}this.injectorDefTypes.add(h);const w=Jn(h)||(()=>new h);this.records.set(h,ao(w,Yo));const B=o.providers;if(null!=B&&!v){const K=t;lr(B,Te=>this.processProvider(Te,K,B))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,r){let o=lo(t=M(t))?t:M(t&&t.provide);const a=function Rv(e,t,n){return Gh(e)?ao(void 0,e.useValue):ao(Kh(e),Yo)}(t);if(lo(t)||!0!==t.multi)this.records.get(o);else{let h=this.records.get(o);h||(h=ao(void 0,Yo,!0),h.factory=()=>Aa(h.multi),this.records.set(o,h)),o=t,h.multi.push(t)}this.records.set(o,a)}hydrate(t,n){return n.value===Yo&&(n.value=Av,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Bv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=M(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function wl(e){const t=Ie(e),n=null!==t?t.factory:Jn(e);if(null!==n)return n;if(e instanceof zn)throw new $(204,!1);if(e instanceof Function)return function xv(e){const t=e.length;if(t>0)throw No(t,"?"),new $(204,!1);const n=function ye(e){const t=e&&(e[yt]||e[ut]);if(t){const n=function Je(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new $(204,!1)}function Kh(e,t,n){let r;if(lo(e)){const o=M(e);return Jn(o)||wl(o)}if(Gh(e))r=()=>M(e.useValue);else if(function kv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Aa(e.deps||[]));else if(function Fv(e){return!(!e||!e.useExisting)}(e))r=()=>ni(M(e.useExisting));else{const o=M(e&&(e.useClass||e.provide));if(!function Lv(e){return!!e.deps}(e))return Jn(o)||wl(o);r=()=>new o(...Aa(e.deps))}return r}function ao(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Gh(e){return null!==e&&"object"==typeof e&&E_ in e}function lo(e){return"function"==typeof e}let Oi=(()=>{class e{static create(n,r){var o;if(Array.isArray(n))return Ml({name:""},r,n,"");{const a=null!==(o=n.name)&&void 0!==o?o:"";return Ml({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=xr,e.NULL=new Uh,e.\u0275prov=Xe({token:e,providedIn:"any",factory:()=>ni(Ws)}),e.__NG_ELEMENT_ID__=-1,e})();function Sl(e){Pl(e);const t=ci(e);return null===t?null:(void 0===t.component&&(t.component=function sy(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Qh(e){Pl(e);const t=ci(e);return null===t?null:t.lView[8]}function Zh(e){const t=ci(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=Ko(n));)n=r;return 512&n[2]?null:n[8]}function Yh(e){return[...Vd(e).components]}function Jh(e){const t=ci(e);return null===t?Oi.NULL:new Kr(t.lView[1].data[t.nodeIndex],t.lView)}function Xh(e){if(e instanceof Text)return[];const t=ci(e);if(null===t)return[];const n=t.lView,r=n[1],o=t.nodeIndex;return(null==r?void 0:r.data[o])?(void 0===t.directives&&(t.directives=Pd(o,n,!1)),null===t.directives?[]:[...t.directives]):[]}function $v(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=$e(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?ve.OnPush:ve.Default};const r=dt(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Il(e){return ci(e).native}function qh(e){Pl(e);const t=ci(e);if(null===t)return[];const n=t.lView,o=n[7],a=n[1].cleanup,h=[];if(a&&o)for(let v=0;v<a.length;){const w=a[v++],B=a[v++];if("string"==typeof w){const K=w,Te=C(n[B]),ze=o[a[v++]],nt=a[v++],pt="boolean"==typeof nt||nt>=0?"dom":"output",St="boolean"==typeof nt&&nt;e==Te&&h.push({element:e,name:K,callback:ze,useCapture:St,type:pt})}}return h.sort(Uv),h}function Uv(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function Wv(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function Pl(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function zv(e){Hh(e),Yh(e).forEach(t=>$h(t))}let tf=!1;function Kv(){tf||(tf=!0,Wi("\u0275setProfiler",ji),Wi("getDirectiveMetadata",$v),Wi("getComponent",Sl),Wi("getContext",Qh),Wi("getListeners",qh),Wi("getOwningComponent",Zh),Wi("getHostElement",Il),Wi("getInjector",Jh),Wi("getRootComponents",Yh),Wi("getDirectives",Xh),Wi("applyChanges",zv))}function Wi(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Ft;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Gv(e,t={}){const n=t.rendererFactory||y,r=t.sanitizer||null,o=$e(e);o.type!=e&&(o.type=e);const a=o.selectors[0][0],v=Mh(n.createRenderer(null,null),t.host||a,o.encapsulation),w=o.onPush?576:528,B=sf(t.scheduler,t.playerHandler),K=n.createRenderer(v,o),Te=$s(0,null,null,1,0,null,null,null,null,null),ze=Qo(null,Te,B,w,null,null,n,K,null,t.injector||null);let nt;vn(ze);try{n.begin&&n.begin(),nt=rf(nf(v,o,ze,n,K,r),o,ze,B,t.hostFeatures||null),Zo(Te,ze,null),so(Te,ze,null,null)}finally{gs(),n.end&&n.end()}return nt}function nf(e,t,n,r,o,a){const h=n[1];n[20]=e;const w=ro(h,20,2,"#host",null),B=w.mergedAttrs=t.hostAttrs;null!==B&&(Us(w,B,!0),null!==e&&(bs(o,e,B),null!==w.classes&&tl(o,e,w.classes),null!==w.styles&&nh(o,e,w.styles)));const K=r.createRenderer(e,t),Te=Qo(n,Dh(t),null,t.onPush?64:16,n[20],w,r,K,a||null,null);return h.firstCreatePass&&(Ts(xo(w,n),h,t.type),Oh(h,w),xh(w,n.length,1)),Hs(n,Te),n[20]=Te}function rf(e,t,n,r,o){const a=n[1],h=function dv(e,t,n){const r=jt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Rh(e,r,t,oo(e,t,1,null),n));const o=Ro(t,e,r.directiveStart,r);ui(o,t);const a=ot(r,t);return a&&ui(a,t),o}(a,n,t);if(r.components.push(h),e[8]=h,o&&o.forEach(w=>w(h,t)),t.contentQueries){const w=jt();t.contentQueries(1,h,w.directiveStart)}const v=jt();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Pr(v.index),Ph(n[1],v,0,v.directiveStart,v.directiveEnd,t),Ah(t,h)),h}function sf(e,t){return{components:[],scheduler:e||Rd,clean:Pv,playerHandler:t||null,flags:0}}function af(e,t){_s($a(e)[1],jt())}function Qv(e){return Vd(e).clean}function lf(e){return Object.getPrototypeOf(e.prototype).constructor}function Al(e){let t=lf(e.type),n=!0;const r=[e];for(;t;){let o;if(kn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new $(903,"");o=t.\u0275dir}if(o){if(n){r.push(o);const h=e;h.inputs=Ol(e.inputs),h.declaredInputs=Ol(e.declaredInputs),h.outputs=Ol(e.outputs);const v=o.hostBindings;v&&Xv(e,v);const w=o.viewQuery,B=o.contentQueries;if(w&&Yv(e,w),B&&Jv(e,B),D(e.inputs,o.inputs),D(e.declaredInputs,o.declaredInputs),D(e.outputs,o.outputs),kn(o)&&o.data.animation){const K=e.data;K.animation=(K.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let h=0;h<a.length;h++){const v=a[h];v&&v.ngInherit&&v(e),v===Al&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Zv(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Cs(o.hostAttrs,n=Cs(n,o.hostAttrs))}}(r)}function Ol(e){return e===$t?{}:e===Tt?[]:e}function Yv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Jv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function Xv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}const qv=["providersResolver"],eb=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function cf(e){let n,t=lf(e.type);n=kn(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const o of qv)r[o]=n[o];if(kn(n))for(const o of eb)r[o]=n[o]}let zs=null;function co(){if(!zs){const e=Ft.Symbol;if(e&&e.iterator)zs=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(zs=r)}}}return zs}function uf(e,t){const n=Jo(e),r=Jo(t);return n&&r?function tb(e,t,n){const r=e[co()](),o=t[co()]();for(;;){const a=r.next(),h=o.next();if(a.done&&h.done)return!0;if(a.done||h.done||!n(a.value,h.value))return!1}}(e,t,uf):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function Jo(e){return!!xl(e)&&(Array.isArray(e)||!(e instanceof Map)&&co()in e)}function xl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function fr(e,t,n){return e[t]=n}function Xo(e,t){return e[t]}function di(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function jr(e,t,n,r){const o=di(e,t,n);return di(e,t+1,r)||o}function Ks(e,t,n,r,o){const a=jr(e,t,n,r);return di(e,t+2,o)||a}function zi(e,t,n,r,o,a){const h=jr(e,t,n,r);return jr(e,t+2,o,a)||h}function Rl(e,t,n,r){const o=Ct();return di(o,z(),t)&&(Mt(),hr(Wn(),o,e,t,n,r)),Rl}function uo(e,t){let n=!1,r=Zn();for(let a=1;a<t.length;a+=2)n=di(e,r++,t[a])||n;if(oe(r),!n)return on;let o=t[0];for(let a=1;a<t.length;a+=2)o+=U(t[a])+t[a+1];return o}function ho(e,t,n,r){return di(e,z(),n)?t+U(n)+r:on}function fo(e,t,n,r,o,a){const v=jr(e,Zn(),n,o);return ee(2),v?t+U(n)+r+U(o)+a:on}function po(e,t,n,r,o,a,h,v){const B=Ks(e,Zn(),n,o,h);return ee(3),B?t+U(n)+r+U(o)+a+U(h)+v:on}function mo(e,t,n,r,o,a,h,v,w,B){const Te=zi(e,Zn(),n,o,h,w);return ee(4),Te?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B:on}function go(e,t,n,r,o,a,h,v,w,B,K,Te){const ze=Zn();let nt=zi(e,ze,n,o,h,w);return nt=di(e,ze+4,K)||nt,ee(5),nt?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B+U(K)+Te:on}function _o(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt){const pt=Zn();let St=zi(e,pt,n,o,h,w);return St=jr(e,pt+4,K,ze)||St,ee(6),St?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B+U(K)+Te+U(ze)+nt:on}function yo(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St){const Ot=Zn();let Ut=zi(e,Ot,n,o,h,w);return Ut=Ks(e,Ot+4,K,ze,pt)||Ut,ee(7),Ut?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B+U(K)+Te+U(ze)+nt+U(pt)+St:on}function vo(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot,Ut){const vt=Zn();let Xt=zi(e,vt,n,o,h,w);return Xt=zi(e,vt+4,K,ze,pt,Ot)||Xt,ee(8),Xt?t+U(n)+r+U(o)+a+U(h)+v+U(w)+B+U(K)+Te+U(ze)+nt+U(pt)+St+U(Ot)+Ut:on}function Fl(e,t,n,r,o,a){const h=Ct(),v=ho(h,t,n,r);return v!==on&&hr(Wn(),h,e,v,o,a),Fl}function kl(e,t,n,r,o,a,h,v){const w=Ct(),B=fo(w,t,n,r,o,a);return B!==on&&hr(Wn(),w,e,B,h,v),kl}function Nl(e,t,n,r,o,a,h,v,w,B){const K=Ct(),Te=po(K,t,n,r,o,a,h,v);return Te!==on&&hr(Wn(),K,e,Te,w,B),Nl}function Ll(e,t,n,r,o,a,h,v,w,B,K,Te){const ze=Ct(),nt=mo(ze,t,n,r,o,a,h,v,w,B);return nt!==on&&hr(Wn(),ze,e,nt,K,Te),Ll}function Bl(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt){const pt=Ct(),St=go(pt,t,n,r,o,a,h,v,w,B,K,Te);return St!==on&&hr(Wn(),pt,e,St,ze,nt),Bl}function jl(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St){const Ot=Ct(),Ut=_o(Ot,t,n,r,o,a,h,v,w,B,K,Te,ze,nt);return Ut!==on&&hr(Wn(),Ot,e,Ut,pt,St),jl}function Vl(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot,Ut){const vt=Ct(),Xt=yo(vt,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St);return Xt!==on&&hr(Wn(),vt,e,Xt,Ot,Ut),Vl}function $l(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot,Ut,vt,Xt){const mn=Ct(),Tn=vo(mn,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot,Ut);return Tn!==on&&hr(Wn(),mn,e,Tn,vt,Xt),$l}function Hl(e,t,n,r){const o=Ct(),a=uo(o,t);return a!==on&&hr(Wn(),o,e,a,n,r),Hl}function df(e,t,n,r,o,a,h,v){const w=Ct(),B=Mt(),K=e+20,Te=B.firstCreatePass?function ib(e,t,n,r,o,a,h,v,w){const B=t.consts,K=ro(t,e,4,h||null,P(B,v));gl(t,n,K,P(B,w)),_s(t,K);const Te=K.tViews=$s(2,K,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B);return null!==t.queries&&(t.queries.template(t,K),Te.queries=t.queries.embeddedTView(K)),K}(K,B,w,t,n,r,o,a,h):B.data[K];Ln(Te,!1);const ze=w[11].createComment("");Ns(B,w,ze,Te),ui(ze,w),Hs(w,w[K]=Fh(ze,w,ze,Te)),ai(Te)&&pl(B,w,Te),null!=h&&ml(w,Te,v)}function hf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ff(e){return xt(function Ur(){return Qe.lFrame.contextLView}(),20+e)}const pf={\u0275\u0275defineInjectable:Xe,\u0275\u0275defineInjector:ge,\u0275\u0275inject:ni,\u0275\u0275invalidFactoryDep:Pa,resolveForwardRef:M};const ob=_({provide:String,useValue:_});function mf(e){return void 0!==e.useClass}function gf(e){return void 0!==e.useFactory}const cb=Yr("Injectable",void 0,void 0,void 0,(e,t)=>function rb(e,t){let n=null,r=null;e.hasOwnProperty(yt)||Object.defineProperty(e,yt,{get:()=>(null===n&&(n=ei().compileInjectable(pf,`ng:///${e.name}/\u0275prov.js`,function lb(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(mf(n)||gf(n))&&void 0!==n.deps&&(r.deps=id(n.deps)),mf(n)?r.useClass=n.useClass:function sb(e){return ob in e}(n)?r.useValue=n.useValue:gf(n)?r.useFactory=n.useFactory:function ab(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(Q)||Object.defineProperty(e,Q,{get:()=>{if(null===r){const o=ei();r=o.compileFactory(pf,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Os(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t));function Ul(e){return e.length>1?" ("+function ub(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(r=>T(r.token)).join(" -> ")+")":""}function Wl(e,t,n,r){const o=[t],a=n(o),h=r?function cy(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[Ha]=t,r}(a,r):Error(a);return h.addKey=db,h.keys=o,h.injectors=[e],h.constructResolvingMessage=n,h[Ha]=r,h}function db(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function _f(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n.push(a&&0!=a.length?a.map(T).join(" "):"?")}return Error("Cannot resolve all parameters for '"+T(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+T(e)+"' is decorated with Injectable.")}function _b(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Mr{constructor(t,n){if(this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=T(this.token)}static get(t){return yf.get(M(t))}static get numberOfKeys(){return yf.numberOfKeys}}class yb{constructor(){this._allKeys=new Map}get(t){if(t instanceof Mr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Mr(t,Mr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const yf=new yb;class vb{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,n){return this.reflectionCapabilities.hasLifecycleHook(t,n)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,n,r,o){return this.reflectionCapabilities.resolveIdentifier(t,n,r,o)}resolveEnum(t,n){return this.reflectionCapabilities.resolveEnum(t,n)}}const vf=new vb(new Ma);class Gs{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new Gs(t,!1,null)}}const bb=[];class bf{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class Cf{constructor(t,n){this.factory=t,this.dependencies=n}}function Cb(e){let t,n;if(e.useClass){const r=M(e.useClass);t=vf.factory(r),n=Df(r)}else e.useExisting?(t=r=>r,n=[Gs.fromKey(Mr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function Mb(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>Tf(e,r,n))}return Df(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=bb);return new Cf(t,n)}function Eb(e){return new bf(Mr.get(e.provide),[Cb(e)],e.multi||!1)}function Db(e){const r=function Tb(e,t){for(let n=0;n<e.length;n++){const r=e[n],o=t.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw _b(o,r);if(r.multiProvider)for(let a=0;a<r.resolvedFactories.length;a++)o.resolvedFactories.push(r.resolvedFactories[a]);else t.set(r.key.id,r)}else{let a;a=r.multiProvider?new bf(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Ef(e,[]).map(Eb),new Map);return Array.from(r.values())}function Ef(e,t){return e.forEach(n=>{if(n instanceof ws)t.push({provide:n,useClass:n});else if(n&&"object"==typeof n&&void 0!==n.provide)t.push(n);else{if(!Array.isArray(n))throw function mb(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Ef(n,t)}}),t}function Df(e){const t=vf.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw _f(e,t);return t.map(n=>Tf(e,n,t))}function Tf(e,t,n){let r=null,o=!1;if(!Array.isArray(t))return zl(t instanceof jo?t.token:t,o,null);let a=null;for(let h=0;h<t.length;++h){const v=t[h];v instanceof ws?r=v:v instanceof jo?r=v.token:v instanceof kr?o=!0:v instanceof As||v instanceof Nr?a=v:v instanceof zn&&(r=v)}if(r=M(r),null!=r)return zl(r,o,a);throw _f(e,n)}function zl(e,t,n){return new Gs(Mr.get(e),t,n)}const qo={};class bo{static resolve(t){return Db(t)}static resolveAndCreate(t,n){const r=bo.resolve(t);return bo.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new wb(t,n)}}let wb=(()=>{class e{constructor(n,r){this._constructionCounter=0,this._providers=n,this.parent=r||null;const o=n.length;this.keyIds=[],this.objs=[];for(let a=0;a<o;a++)this.keyIds[a]=n[a].key.id,this.objs[a]=qo}get(n,r=xr){return this._getByKey(Mr.get(n),null,r)}resolveAndCreateChild(n){const r=bo.resolve(n);return this.createChildFromResolved(r)}createChildFromResolved(n){const r=new e(n);return r.parent=this,r}resolveAndInstantiate(n){return this.instantiateResolved(bo.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function gb(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function fb(e,t){return Wl(e,t,function(n){return`Cannot instantiate cyclic dependency!${Ul(n)}`})}(this,n.key);return this._instantiateProvider(n)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(n){if(n.multiProvider){const r=[];for(let o=0;o<n.resolvedFactories.length;++o)r[o]=this._instantiate(n,n.resolvedFactories[o]);return r}return this._instantiate(n,n.resolvedFactories[0])}_instantiate(n,r){const o=r.factory;let a,h;try{a=r.dependencies.map(v=>this._getByReflectiveDependency(v))}catch(v){throw v.addKey&&v.addKey(this,n.key),v}try{h=o(...a)}catch(v){throw function pb(e,t,n,r){return Wl(e,r,function(o){const a=T(o[0].token);return`${t.message}: Error during instantiation of ${a}!${Ul(o)}.`},t)}(this,v,0,n.key)}return h}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:xr)}_getByKey(n,r,o){return n===e.INJECTOR_KEY?this:r instanceof As?this._getByKeySelf(n,o):this._getByKeyDefault(n,o,r)}_getObjByKeyId(n){for(let r=0;r<this.keyIds.length;r++)if(this.keyIds[r]===n)return this.objs[r]===qo&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return qo}_throwOrNull(n,r){if(r!==xr)return r;throw function hb(e,t){return Wl(e,t,function(n){return`No provider for ${T(n[0].token)}!${Ul(n)}`})}(this,n)}_getByKeySelf(n,r){const o=this._getObjByKeyId(n.id);return o!==qo?o:this._throwOrNull(n,r)}_getByKeyDefault(n,r,o){let a;for(a=o instanceof Nr?this.parent:this;a instanceof e;){const h=a,v=h._getObjByKeyId(n.id);if(v!==qo)return v;a=h.parent}return null!==a?a.get(n.token,r):this._throwOrNull(n,r)}get displayName(){return`ReflectiveInjector(providers: [${function Sb(e,t){const n=[];for(let r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,r=>' "'+r.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Mr.get(Oi),e})();function es(e,t=L.Default){const n=Ct();return null===n?ni(e,t):Uu(jt(),n,M(e),t)}function Mf(){throw new Error("invalid")}function Kl(e,t,n){const r=Ct();return di(r,z(),t)&&Ai(Mt(),Wn(),r,e,t,r[11],n,!1),Kl}function Gl(e,t,n,r,o){const h=o?"class":"style";Vh(e,n,t.inputs[h],h,r)}function Ql(e,t,n,r){const o=Ct(),a=Mt(),h=20+e,v=o[11],w=o[h]=Za(v,t,function Kg(){return Qe.lFrame.currentNamespace}()),B=a.firstCreatePass?function Ib(e,t,n,r,o,a,h){const v=t.consts,B=ro(t,e,2,o,P(v,a));return gl(t,n,B,P(v,h)),null!==B.attrs&&Us(B,B.attrs,!1),null!==B.mergedAttrs&&Us(B,B.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,B),B}(h,a,o,0,t,n,r):a.data[h];Ln(B,!0);const K=B.mergedAttrs;null!==K&&bs(v,w,K);const Te=B.classes;null!==Te&&tl(v,w,Te);const ze=B.styles;null!==ze&&nh(v,w,ze),64!=(64&B.flags)&&Ns(a,o,w,B),0===function hn(){return Qe.lFrame.elementDepthCount}()&&ui(w,o),function Sn(){Qe.lFrame.elementDepthCount++}(),ai(B)&&(pl(a,o,B),Eh(a,B,o)),null!==r&&ml(o,B)}function Zl(){let e=jt();Xn()?Ei():(e=e.parent,Ln(e,!1));const t=e;!function bi(){Qe.lFrame.elementDepthCount--}();const n=Mt();n.firstCreatePass&&(_s(n,e),hi(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Jg(e){return 0!=(16&e.flags)}(t)&&Gl(n,t,Ct(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Xg(e){return 0!=(32&e.flags)}(t)&&Gl(n,t,Ct(),t.stylesWithoutHost,!1)}function wf(e,t,n,r){Ql(e,t,n,r),Zl()}function Yl(e,t,n){const r=Ct(),o=Mt(),a=e+20,h=o.firstCreatePass?function Pb(e,t,n,r,o){const a=t.consts,h=P(a,r),v=ro(t,e,8,"ng-container",h);return null!==h&&Us(v,h,!0),gl(t,n,v,P(a,o)),null!==t.queries&&t.queries.elementStart(t,v),v}(a,o,r,t,n):o.data[a];Ln(h,!0);const v=r[a]=r[11].createComment("");Ns(o,r,v,h),ui(v,r),ai(h)&&(pl(o,r,h),Eh(o,h,r)),null!=n&&ml(r,h)}function Jl(){let e=jt();const t=Mt();Xn()?Ei():(e=e.parent,Ln(e,!1)),t.firstCreatePass&&(_s(t,e),hi(e)&&t.queries.elementEnd(e))}function Sf(e,t,n){Yl(e,t,n),Jl()}function If(){return Ct()}function Xl(e){return!!e&&"function"==typeof e.then}function Pf(e){return!!e&&"function"==typeof e.subscribe}const Af=Pf;function ql(e,t,n,r){const o=Ct(),a=Mt(),h=jt();return Of(a,o,o[11],h,e,t,!!n,r),ql}function ec(e,t){const n=jt(),r=Ct(),o=Mt();return Of(o,r,Bh(gt(o.data),n,r),n,e,t,!1),ec}function Of(e,t,n,r,o,a,h,v){const w=ai(r),K=e.firstCreatePass&&Lh(e),Te=t[8],ze=Nh(t);let nt=!0;if(3&r.type||v){const Ot=ot(r,t),Ut=v?v(Ot):Ot,vt=ze.length,Xt=v?mn=>v(C(mn[r.index])):r.index;if(fe(n)){let mn=null;if(!v&&w&&(mn=function Ab(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;a<o.length-1;a+=2){const h=o[a];if(h===n&&o[a+1]===r){const v=t[7],w=o[a+2];return v.length>w?v[w]:null}"string"==typeof h&&(a+=2)}return null}(e,t,o,r.index)),null!==mn)(mn.__ngLastListenerFn__||mn).__ngNextListenerFn__=a,mn.__ngLastListenerFn__=a,nt=!1;else{a=tc(r,t,Te,a,!1);const Tn=n.listen(Ut,o,a);ze.push(a,Tn),K&&K.push(o,Xt,vt,vt+1)}}else a=tc(r,t,Te,a,!0),Ut.addEventListener(o,a,h),ze.push(a),K&&K.push(o,Xt,vt,h)}else a=tc(r,t,Te,a,!1);const pt=r.outputs;let St;if(nt&&null!==pt&&(St=pt[o])){const Ot=St.length;if(Ot)for(let Ut=0;Ut<Ot;Ut+=2){const Ri=t[St[Ut]][St[Ut+1]].subscribe(a),Hr=ze.length;ze.push(a,Ri),K&&K.push(o,r.index,Hr,-(Hr+1))}}}function xf(e,t,n,r){try{return Nn(6,t,n),!1!==n(r)}catch(o){return jh(e,o),!1}finally{Nn(7,t,n)}}function tc(e,t,n,r,o){return function a(h){if(h===Function)return r;const v=2&e.flags?Vt(e.index,t):t;0==(32&t[2])&&vl(v);let w=xf(t,n,r,h),B=a.__ngNextListenerFn__;for(;B;)w=xf(t,n,B,h)&&w,B=B.__ngNextListenerFn__;return o&&!1===w&&(h.preventDefault(),h.returnValue=!1),w}}function Rf(e=1){return function Ug(e){return(Qe.lFrame.contextLView=function Wg(e,t){for(;e>0;)t=t[15],e--;return t}(e,Qe.lFrame.contextLView))[8]}(e)}function Ob(e,t){let n=null;const r=function By(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const a=t[o];if("*"!==a){if(null===r?sh(e,a,!0):$y(r,a))return o}else n=o}return n}function Ff(e){const t=Ct()[16][6];if(!t.projection){const r=t.projection=No(e?e.length:1,null),o=r.slice();let a=t.child;for(;null!==a;){const h=e?Ob(a,e):0;null!==h&&(o[h]?o[h].projectionNext=a:r[h]=a,o[h]=a),a=a.next}}}function kf(e,t=0,n){const r=Ct(),o=Mt(),a=ro(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ei(),64!=(64&a.flags)&&function Oy(e,t,n){th(t[11],0,t,n,zd(e,n,t),Zd(n.parent||t[6],n,t))}(o,r,a)}function nc(e,t,n){return Qs(e,"",t,"",n),nc}function Qs(e,t,n,r,o){const a=Ct(),h=ho(a,t,n,r);return h!==on&&Ai(Mt(),Wn(),a,e,h,a[11],o,!1),Qs}function ic(e,t,n,r,o,a,h){const v=Ct(),w=fo(v,t,n,r,o,a);return w!==on&&Ai(Mt(),Wn(),v,e,w,v[11],h,!1),ic}function rc(e,t,n,r,o,a,h,v,w){const B=Ct(),K=po(B,t,n,r,o,a,h,v);return K!==on&&Ai(Mt(),Wn(),B,e,K,B[11],w,!1),rc}function oc(e,t,n,r,o,a,h,v,w,B,K){const Te=Ct(),ze=mo(Te,t,n,r,o,a,h,v,w,B);return ze!==on&&Ai(Mt(),Wn(),Te,e,ze,Te[11],K,!1),oc}function sc(e,t,n,r,o,a,h,v,w,B,K,Te,ze){const nt=Ct(),pt=go(nt,t,n,r,o,a,h,v,w,B,K,Te);return pt!==on&&Ai(Mt(),Wn(),nt,e,pt,nt[11],ze,!1),sc}function ac(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt){const St=Ct(),Ot=_o(St,t,n,r,o,a,h,v,w,B,K,Te,ze,nt);return Ot!==on&&Ai(Mt(),Wn(),St,e,Ot,St[11],pt,!1),ac}function lc(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot){const Ut=Ct(),vt=yo(Ut,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St);return vt!==on&&Ai(Mt(),Wn(),Ut,e,vt,Ut[11],Ot,!1),lc}function cc(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot,Ut,vt){const Xt=Ct(),mn=vo(Xt,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot,Ut);return mn!==on&&Ai(Mt(),Wn(),Xt,e,mn,Xt[11],vt,!1),cc}function uc(e,t,n){const r=Ct(),o=uo(r,t);return o!==on&&Ai(Mt(),Wn(),r,e,o,r[11],n,!1),uc}function Nf(e,t,n,r,o){const a=e[n+1],h=null===t;let v=r?Xi(a):Dr(a),w=!1;for(;0!==v&&(!1===w||h);){const K=e[v+1];Fb(e[v],t)&&(w=!0,e[v+1]=r?rl(K):nl(K)),v=r?Xi(K):Dr(K)}w&&(e[n+1]=r?nl(a):rl(a))}function Fb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xr(e,t)>=0}const ti={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Lf(e){return e.substring(ti.key,ti.keyEnd)}function kb(e){return e.substring(ti.value,ti.valueEnd)}function Bf(e,t){const n=ti.textEnd;return n===t?-1:(t=ti.keyEnd=function Bb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ti.key=t,n),Co(e,t,n))}function jf(e,t){const n=ti.textEnd;let r=ti.key=Co(e,t,n);return n===r?-1:(r=ti.keyEnd=function jb(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=$f(e,r,n),r=ti.value=Co(e,r,n),r=ti.valueEnd=function Vb(e,t,n){let r=-1,o=-1,a=-1,h=t,v=h;for(;h<n;){const w=e.charCodeAt(h++);if(59===w)return v;34===w||39===w?v=h=Hf(e,w,h,n):t===h-4&&85===a&&82===o&&76===r&&40===w?v=h=Hf(e,41,h,n):w>32&&(v=h),a=o,o=r,r=-33&w}return v}(e,r,n),$f(e,r,n))}function Vf(e){ti.key=0,ti.keyEnd=0,ti.value=0,ti.valueEnd=0,ti.textEnd=e.length}function Co(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function $f(e,t,n,r){return(t=Co(e,t,n))<n&&t++,t}function Hf(e,t,n,r){let o=-1,a=n;for(;a<r;){const h=e.charCodeAt(a++);if(h==t&&92!==o)return a;o=92==h&&92===o?0:h}throw new Error}function dc(e,t,n){return er(e,t,n,!1),dc}function hc(e,t){return er(e,t,null,!0),hc}function qi(e){tr(Kf,$b,e,!1)}function $b(e,t){for(let n=function Lb(e){return Vf(e),jf(e,Co(e,0,ti.textEnd))}(t);n>=0;n=jf(t,n))Kf(e,Lf(t),kb(t))}function Uf(e){tr(Pi,pr,e,!0)}function pr(e,t){for(let n=function Nb(e){return Vf(e),Bf(e,Co(e,0,ti.textEnd))}(t);n>=0;n=Bf(t,n))Pi(e,Lf(t),!0)}function er(e,t,n,r){const o=Ct(),a=Mt(),h=ee(2);a.firstUpdatePass&&zf(a,e,h,r),t!==on&&di(o,h,t)&&Gf(a,a.data[gi()],o,o[11],e,o[h+1]=function Qb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=T(Er(e)))),e}(t,n),r,h)}function tr(e,t,n,r){const o=Mt(),a=ee(2);o.firstUpdatePass&&zf(o,null,a,r);const h=Ct();if(n!==on&&di(h,a,n)){const v=o.data[gi()];if(Zf(v,r)&&!Wf(o,a)){let w=r?v.classesWithoutHost:v.stylesWithoutHost;null!==w&&(n=S(w,n||"")),Gl(o,v,h,n,r)}else!function Gb(e,t,n,r,o,a,h,v){o===on&&(o=Tt);let w=0,B=0,K=0<o.length?o[0]:null,Te=0<a.length?a[0]:null;for(;null!==K||null!==Te;){const ze=w<o.length?o[w+1]:void 0,nt=B<a.length?a[B+1]:void 0;let St,pt=null;K===Te?(w+=2,B+=2,ze!==nt&&(pt=Te,St=nt)):null===Te||null!==K&&K<Te?(w+=2,pt=K):(B+=2,pt=Te,St=nt),null!==pt&&Gf(e,t,n,r,pt,St,h,v),K=w<o.length?o[w]:null,Te=B<a.length?a[B]:null}}(o,v,h,h[11],h[a+1],h[a+1]=function Kb(e,t,n){if(null==n||""===n)return Tt;const r=[],o=Er(n);if(Array.isArray(o))for(let a=0;a<o.length;a++)e(r,o[a],!0);else if("object"==typeof o)for(const a in o)o.hasOwnProperty(a)&&e(r,a,o[a]);else"string"==typeof o&&t(r,o);return r}(e,t,n),r,a)}}function Wf(e,t){return t>=e.expandoStartIndex}function zf(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[gi()],h=Wf(e,n);Zf(a,r)&&null===t&&!h&&(t=!1),t=function Hb(e,t,n,r){const o=gt(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=ts(n=fc(null,e,t,n,r),t.attrs,r),a=null);else{const h=t.directiveStylingLast;if(-1===h||e[h]!==o)if(n=fc(o,e,t,n,r),null===a){let w=function Ub(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Dr(r))return e[Xi(r)]}(e,t,r);void 0!==w&&Array.isArray(w)&&(w=fc(null,e,t,w[1],r),w=ts(w,t.attrs,r),function Wb(e,t,n,r){e[Xi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,w))}else a=function zb(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)r=ts(r,e[a].hostAttrs,n);return ts(r,t.attrs,n)}(e,t,r)}return void 0!==a&&(r?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,r),function xb(e,t,n,r,o,a){let h=a?t.classBindings:t.styleBindings,v=Xi(h),w=Dr(h);e[r]=n;let K,B=!1;if(Array.isArray(n)){const Te=n;K=Te[1],(null===K||Xr(Te,K)>0)&&(B=!0)}else K=n;if(o)if(0!==w){const ze=Xi(e[v+1]);e[r+1]=Bs(ze,v),0!==ze&&(e[ze+1]=il(e[ze+1],r)),e[v+1]=function zy(e,t){return 131071&e|t<<17}(e[v+1],r)}else e[r+1]=Bs(v,0),0!==v&&(e[v+1]=il(e[v+1],r)),v=r;else e[r+1]=Bs(w,0),0===v?v=r:e[w+1]=il(e[w+1],r),w=r;B&&(e[r+1]=nl(e[r+1])),Nf(e,K,r,!0),Nf(e,K,r,!1),function Rb(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Xr(a,t)>=0&&(n[r+1]=rl(n[r+1]))}(t,K,e,r,a),h=Bs(v,w),a?t.classBindings=h:t.styleBindings=h}(o,a,t,n,h,r)}}function fc(e,t,n,r,o){let a=null;const h=n.directiveEnd;let v=n.directiveStylingLast;for(-1===v?v=n.directiveStart:v++;v<h&&(a=t[v],r=ts(r,a.hostAttrs,o),a!==e);)v++;return null!==e&&(n.directiveStylingLast=v),r}function ts(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let a=0;a<t.length;a++){const h=t[a];"number"==typeof h?o=h:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Pi(e,h,!!n||t[++a]))}return void 0===e?null:e}function Kf(e,t,n){Pi(e,t,Er(n))}function Gf(e,t,n,r,o,a,h,v){if(!(3&t.type))return;const w=e.data,B=w[v+1];Zs(function hh(e){return 1==(1&e)}(B)?Qf(w,t,n,o,Dr(B),h):void 0)||(Zs(a)||function dh(e){return 2==(2&e)}(B)&&(a=Qf(w,null,n,o,v,h)),function Ry(e,t,n,r,o){const a=fe(e);if(t)o?a?e.addClass(n,r):n.classList.add(r):a?e.removeClass(n,r):n.classList.remove(r);else{let h=-1===r.indexOf("-")?void 0:dr.DashCase;if(null==o)a?e.removeStyle(n,r,h):n.style.removeProperty(r);else{const v="string"==typeof o&&o.endsWith("!important");v&&(o=o.slice(0,-10),h|=dr.Important),a?e.setStyle(n,r,o,h):n.style.setProperty(r,o,v?"important":"")}}}(r,h,Ye(gi(),n),o,a))}function Qf(e,t,n,r,o,a){const h=null===t;let v;for(;o>0;){const w=e[o],B=Array.isArray(w),K=B?w[1]:w,Te=null===K;let ze=n[o+1];ze===on&&(ze=Te?Tt:void 0);let nt=Te?Ta(ze,r):K===r?ze:void 0;if(B&&!Zs(nt)&&(nt=Ta(w,r)),Zs(nt)&&(v=nt,h))return v;const pt=e[o+1];o=h?Xi(pt):Dr(pt)}if(null!==t){let w=a?t.residualClasses:t.residualStyles;null!=w&&(v=Ta(w,r))}return v}function Zs(e){return void 0!==e}function Zf(e,t){return 0!=(e.flags&(t?16:32))}function Yf(e,t=""){const n=Ct(),r=Mt(),o=e+20,a=r.firstCreatePass?ro(r,o,1,t,null):r.data[o],h=n[o]=Qa(n[11],t);Ns(r,n,h,a),Ln(a,!1)}function pc(e){return Ys("",e,""),pc}function Ys(e,t,n){const r=Ct(),o=ho(r,e,t,n);return o!==on&&Tr(r,gi(),o),Ys}function mc(e,t,n,r,o){const a=Ct(),h=fo(a,e,t,n,r,o);return h!==on&&Tr(a,gi(),h),mc}function gc(e,t,n,r,o,a,h){const v=Ct(),w=po(v,e,t,n,r,o,a,h);return w!==on&&Tr(v,gi(),w),gc}function _c(e,t,n,r,o,a,h,v,w){const B=Ct(),K=mo(B,e,t,n,r,o,a,h,v,w);return K!==on&&Tr(B,gi(),K),_c}function yc(e,t,n,r,o,a,h,v,w,B,K){const Te=Ct(),ze=go(Te,e,t,n,r,o,a,h,v,w,B,K);return ze!==on&&Tr(Te,gi(),ze),yc}function vc(e,t,n,r,o,a,h,v,w,B,K,Te,ze){const nt=Ct(),pt=_o(nt,e,t,n,r,o,a,h,v,w,B,K,Te,ze);return pt!==on&&Tr(nt,gi(),pt),vc}function bc(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt){const St=Ct(),Ot=yo(St,e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt);return Ot!==on&&Tr(St,gi(),Ot),bc}function Cc(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot){const Ut=Ct(),vt=vo(Ut,e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot);return vt!==on&&Tr(Ut,gi(),vt),Cc}function Ec(e){const t=Ct(),n=uo(t,e);return n!==on&&Tr(t,gi(),n),Ec}function Jf(e,t,n){tr(Pi,pr,ho(Ct(),e,t,n),!0)}function Xf(e,t,n,r,o){tr(Pi,pr,fo(Ct(),e,t,n,r,o),!0)}function qf(e,t,n,r,o,a,h){tr(Pi,pr,po(Ct(),e,t,n,r,o,a,h),!0)}function ep(e,t,n,r,o,a,h,v,w){tr(Pi,pr,mo(Ct(),e,t,n,r,o,a,h,v,w),!0)}function tp(e,t,n,r,o,a,h,v,w,B,K){tr(Pi,pr,go(Ct(),e,t,n,r,o,a,h,v,w,B,K),!0)}function np(e,t,n,r,o,a,h,v,w,B,K,Te,ze){tr(Pi,pr,_o(Ct(),e,t,n,r,o,a,h,v,w,B,K,Te,ze),!0)}function ip(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt){tr(Pi,pr,yo(Ct(),e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt),!0)}function rp(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot){tr(Pi,pr,vo(Ct(),e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot),!0)}function op(e){tr(Pi,pr,uo(Ct(),e),!0)}function sp(e,t,n){qi(ho(Ct(),e,t,n))}function ap(e,t,n,r,o){qi(fo(Ct(),e,t,n,r,o))}function lp(e,t,n,r,o,a,h){qi(po(Ct(),e,t,n,r,o,a,h))}function cp(e,t,n,r,o,a,h,v,w){qi(mo(Ct(),e,t,n,r,o,a,h,v,w))}function up(e,t,n,r,o,a,h,v,w,B,K){qi(go(Ct(),e,t,n,r,o,a,h,v,w,B,K))}function dp(e,t,n,r,o,a,h,v,w,B,K,Te,ze){qi(_o(Ct(),e,t,n,r,o,a,h,v,w,B,K,Te,ze))}function hp(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt){qi(yo(Ct(),e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt))}function fp(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot){qi(vo(Ct(),e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot))}function pp(e){qi(uo(Ct(),e))}function Dc(e,t,n,r,o){return er(e,ho(Ct(),t,n,r),o,!1),Dc}function Tc(e,t,n,r,o,a,h){return er(e,fo(Ct(),t,n,r,o,a),h,!1),Tc}function Mc(e,t,n,r,o,a,h,v,w){return er(e,po(Ct(),t,n,r,o,a,h,v),w,!1),Mc}function wc(e,t,n,r,o,a,h,v,w,B,K){return er(e,mo(Ct(),t,n,r,o,a,h,v,w,B),K,!1),wc}function Sc(e,t,n,r,o,a,h,v,w,B,K,Te,ze){return er(e,go(Ct(),t,n,r,o,a,h,v,w,B,K,Te),ze,!1),Sc}function Ic(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt){return er(e,_o(Ct(),t,n,r,o,a,h,v,w,B,K,Te,ze,nt),pt,!1),Ic}function Pc(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot){return er(e,yo(Ct(),t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St),Ot,!1),Pc}function Ac(e,t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot,Ut,vt){return er(e,vo(Ct(),t,n,r,o,a,h,v,w,B,K,Te,ze,nt,pt,St,Ot,Ut),vt,!1),Ac}function Oc(e,t,n){return er(e,uo(Ct(),t),n,!1),Oc}function xc(e,t,n){const r=Ct();return di(r,z(),t)&&Ai(Mt(),Wn(),r,e,t,r[11],n,!0),xc}function Rc(e,t,n){const r=Ct();if(di(r,z(),t)){const a=Mt(),h=Wn();Ai(a,h,r,e,t,Bh(gt(a.data),h,r),n,!0)}return Rc}const Vr=void 0;var Yb=["en",[["a","p"],["AM","PM"],Vr],[["AM","PM"],Vr,Vr],[["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"]],Vr,[["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"]],Vr,[["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}",Vr,"{1} 'at' {0}",Vr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Zb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Eo={};function Jb(e,t,n){"string"!=typeof t&&(n=t,t=e[qt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Eo[t]=e,n&&(Eo[t][qt.ExtraData]=n)}function Fc(e){const t=function eC(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=gp(t);if(n)return n;const r=t.split("-")[0];if(n=gp(r),n)return n;if("en"===r)return Yb;throw new Error(`Missing locale data for the locale "${e}".`)}function Xb(e){return Fc(e)[qt.CurrencyCode]||null}function mp(e){return Fc(e)[qt.PluralCase]}function gp(e){return e in Eo||(Eo[e]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[e]),Eo[e]}function qb(){Eo={}}var qt=(()=>((qt=qt||{})[qt.LocaleId=0]="LocaleId",qt[qt.DayPeriodsFormat=1]="DayPeriodsFormat",qt[qt.DayPeriodsStandalone=2]="DayPeriodsStandalone",qt[qt.DaysFormat=3]="DaysFormat",qt[qt.DaysStandalone=4]="DaysStandalone",qt[qt.MonthsFormat=5]="MonthsFormat",qt[qt.MonthsStandalone=6]="MonthsStandalone",qt[qt.Eras=7]="Eras",qt[qt.FirstDayOfWeek=8]="FirstDayOfWeek",qt[qt.WeekendRange=9]="WeekendRange",qt[qt.DateFormat=10]="DateFormat",qt[qt.TimeFormat=11]="TimeFormat",qt[qt.DateTimeFormat=12]="DateTimeFormat",qt[qt.NumberSymbols=13]="NumberSymbols",qt[qt.NumberFormats=14]="NumberFormats",qt[qt.CurrencyCode=15]="CurrencyCode",qt[qt.CurrencySymbol=16]="CurrencySymbol",qt[qt.CurrencyName=17]="CurrencyName",qt[qt.Currencies=18]="Currencies",qt[qt.Directionality=19]="Directionality",qt[qt.PluralCase=20]="PluralCase",qt[qt.ExtraData=21]="ExtraData",qt))();const tC=["zero","one","two","few","many"],ns="en-US",Js={marker:"element"},Xs={marker:"ICU"};var Kn=(()=>((Kn=Kn||{})[Kn.SHIFT=2]="SHIFT",Kn[Kn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Kn[Kn.COMMENT=2]="COMMENT",Kn))();let _p=ns;function yp(e){(function Ce(e,t){null==e&&He(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(_p=e.toLowerCase().replace(/_/g,"-"))}function vp(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?Yd(e,0,n):C(n[o])}function bp(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let h=r,v=null;if(3&t.type||(v=h,h=o),null!==h&&0==(2&t.flags))for(let w=1;w<a.length;w++)Br(e,h,n[a[w]],v,!1)}}function Cp(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Ep(r)||oC(r,t)&&null===sC(r)&&aC(r,t.index)}}function Ep(e){return!(64&e.type)}function oC(e,t){return Ep(t)||e.index>t.index}function sC(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function aC(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Xd(vp,bp),e.insertBeforeIndex=t)}function is(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function uC(e,t,n){const r=fl(e,n,64,null,null);return Cp(t,r),r}function qs(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Dp(e){return e>>>17}function Tp(e){return(131070&e)>>>1}let rs=0,os=0;function wp(e,t,n,r){const o=n[11];let h,a=null;for(let v=0;v<t.length;v++){const w=t[v];if("string"==typeof w){const B=t[++v];null===n[B]&&(n[B]=Qa(o,w))}else if("number"==typeof w)switch(1&w){case 0:const B=Dp(w);let K,Te;if(null===a&&(a=B,h=ks(o,r)),B===a?(K=r,Te=h):(K=null,Te=C(n[B])),null!==Te){const St=Tp(w);Br(o,Te,n[St],K,!1);const Ut=is(e,St);if(null!==Ut&&"object"==typeof Ut){const vt=qs(Ut,n);null!==vt&&wp(e,Ut.create[vt],n,n[Ut.anchorIdx])}}break;case 1:const nt=t[++v],pt=t[++v];_l(o,Ye(w>>>1,n),null,null,nt,pt,null)}else switch(w){case Xs:const B=t[++v],K=t[++v];null===n[K]&&ui(n[K]=by(o,B),n);break;case Js:const Te=t[++v],ze=t[++v];null===n[ze]&&ui(n[ze]=Za(o,Te,null),n)}}}function Sp(e,t,n,r,o){for(let a=0;a<n.length;a++){const h=n[a],v=n[++a];if(h&o){let w="";for(let B=a+1;B<=a+v;B++){const K=n[B];if("string"==typeof K)w+=K;else if("number"==typeof K)if(K<0)w+=U(t[r-K]);else{const Te=K>>>2;switch(3&K){case 1:const ze=n[++B],nt=n[++B],pt=e.data[Te];"string"==typeof pt?_l(t[11],t[Te],null,pt,ze,w,nt):Ai(e,pt,t,ze,w,t[11],nt,!1);break;case 0:const St=t[Te];null!==St&&Hd(t[11],St,w);break;case 2:mC(e,is(e,Te),t,w);break;case 3:Ip(e,is(e,Te),r,t)}}}}else{const w=n[a+1];if(w>0&&3==(3&w)){const K=is(e,w>>>2);t[K.currentCaseLViewIndex]<0&&Ip(e,K,r,t)}}a+=v}}function Ip(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=rs;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),Sp(e,r,t.update[o],n,a)}}function mC(e,t,n,r){const o=function gC(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function nC(e,t){const n=mp(t)(parseInt(e,10)),r=tC[n];return void 0!==r?r:"other"}(t,function rC(){return _p}());n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(qs(t,n)!==o&&(Pp(e,t,n),n[t.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const h=n[t.anchorIdx];h&&wp(e,t.create[o],n,h)}}function Pp(e,t,n){let r=qs(t,n);if(null!==r){const o=t.remove[r];for(let a=0;a<o.length;a++){const h=o[a];if(h>0){const v=Ye(h,n);null!==v&&eh(n[11],v)}else Pp(e,is(e,~h),n)}}}function _C(){const e=[];let n,r,t=-1;function a(v,w){t=0;const B=qs(v,w);r=null!==B?v.remove[B]:Tt}function h(){if(t<r.length){const v=r[t++];return v>0?n[v]:(e.push(t,r),a(n[1].data[~v],n),h())}return 0===e.length?null:(r=e.pop(),t=e.pop(),h())}return function o(v,w){for(n=w;e.length;)e.pop();return a(v.value,w),h}}const ea=/\ufffd(\d+):?\d*\ufffd/gi,yC=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,vC=/\ufffd(\d+)\ufffd/,Op=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,bC=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,CC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,EC=/\uE500/g;function xp(e,t,n,r,o,a,h){const v=oo(e,r,1,null);let w=v<<Kn.SHIFT,B=Pn();t===B&&(B=null),null===B&&(w|=Kn.APPEND_EAGERLY),h&&(w|=Kn.COMMENT,function vy(e){void 0===Wa&&(Wa=e())}(_C)),o.push(w,null===a?"":a);const K=fl(e,v,h?32:1,null===a?"":a,null);Cp(n,K);const Te=K.index;return Ln(K,!1),null!==B&&t!==B&&function cC(e,t){let n=e.insertBeforeIndex;null===n?(Xd(vp,bp),n=e.insertBeforeIndex=[null,t]):(function te(e,t,n){e!=t&&He(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(B,Te),K}function MC(e,t,n,r,o,a,h){const v=h.match(ea),w=xp(e,t,n,a,r,v?null:h,!1);v&&Do(o,h,w.index,null,0,null)}function Do(e,t,n,r,o,a){const h=e.length,v=h+1;e.push(null,null);const w=h+2,B=t.split(ea);let K=0;for(let Te=0;Te<B.length;Te++){const ze=B[Te];if(1&Te){const nt=o+parseInt(ze,10);e.push(-1-nt),K|=Rp(nt)}else""!==ze&&e.push(ze)}return e.push(n<<2|(r?1:0)),r&&e.push(r,a),e[h]=K,e[v]=e.length-w,K}function SC(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r&&r<0&&t++}return t}function Rp(e){return 1<<Math.min(e,31)}function Fp(e){let t,a,n="",r=0,o=!1;for(;null!==(t=bC.exec(e));)o?t[0]===`\ufffd/*${a}\ufffd`&&(r=t.index,o=!1):(n+=e.substring(r,t.index+t[0].length),a=t[1],o=!0);return n+=e.substr(r),n}function kp(e,t,n,r,o,a){let h=0;const v={type:o.type,currentCaseLViewIndex:oo(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function RC(e,t,n){e.push(Rp(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,o,a),function lC(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,a,v);const w=o.values;for(let B=0;B<w.length;B++){const K=w[B],Te=[];for(let ze=0;ze<K.length;ze++){const nt=K[ze];if("string"!=typeof nt){const pt=Te.push(nt)-1;K[ze]=`\x3c!--\ufffd${pt}\ufffd--\x3e`}}h=OC(e,v,t,n,r,o.cases[B],K.join(""),Te)|h}h&&function FC(e,t,n){e.push(t,1,n<<2|3)}(n,h,a)}function AC(e){const t=[],n=[];let r=1,o=0;const a=kc(e=e.replace(Op,function(h,v,w){return r="select"===w?0:1,o=parseInt(v.substr(1),10),""}));for(let h=0;h<a.length;){let v=a[h++].trim();1===r&&(v=v.replace(/\s*(?:=)?(\w+)\s*/,"$1")),v.length&&t.push(v);const w=kc(a[h++]);t.length>n.length&&n.push(w)}return{type:r,mainBinding:o,cases:t,values:n}}function kc(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(e);){const v=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const w=e.substring(t,v);Op.test(w)?r.push(AC(w)):r.push(w),t=v+1}}else{if(0==n.length){const w=e.substring(t,v);r.push(w),t=v+1}n.push("{")}}const h=e.substring(t);return r.push(h),r}function OC(e,t,n,r,o,a,h,v){const w=[],B=[],K=[];t.cases.push(a),t.create.push(w),t.remove.push(B),t.update.push(K);const ze=dd(x()).getInertBodyElement(h),nt=La(ze)||ze;return nt?Np(e,t,n,r,w,B,K,nt,o,v,0):0}function Np(e,t,n,r,o,a,h,v,w,B,K){let Te=0,ze=v.firstChild;for(;ze;){const nt=oo(e,n,1,null);switch(ze.nodeType){case Node.ELEMENT_NODE:const pt=ze,St=pt.tagName.toLowerCase();if(Fa.hasOwnProperty(St)){Nc(o,Js,St,w,nt),e.data[nt]=St;const Xt=pt.attributes;for(let mn=0;mn<Xt.length;mn++){const Tn=Xt.item(mn),Ri=Tn.name.toLowerCase();Tn.value.match(ea)?gd.hasOwnProperty(Ri)&&Do(h,Tn.value,nt,Tn.name,0,ka[Ri]?$o:Na[Ri]?hd:null):kC(o,nt,Tn)}Te=Np(e,t,n,r,o,a,h,ze,nt,B,K+1)|Te,Lp(a,nt,K)}break;case Node.TEXT_NODE:const Ot=ze.textContent||"",Ut=Ot.match(ea);Nc(o,null,Ut?"":Ot,w,nt),Lp(a,nt,K),Ut&&(Te=Do(h,Ot,nt,null,0,null)|Te);break;case Node.COMMENT_NODE:const vt=vC.exec(ze.textContent||"");if(vt){const mn=B[parseInt(vt[1],10)];Nc(o,Xs,"",w,nt),kp(e,n,r,w,mn,nt),xC(a,nt,K)}}ze=ze.nextSibling}return Te}function Lp(e,t,n){0===n&&e.push(t)}function xC(e,t,n){0===n&&(e.push(~t),e.push(t))}function Nc(e,t,n,r,o){null!==t&&e.push(t),e.push(n,o,function dC(e,t,n){return e|t<<17|n<<1}(0,r,o))}function kC(e,t,n){e.push(t<<1|1,n.name,n.value)}const NC=/\[(\ufffd.+?\ufffd?)\]/,LC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,BC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,jC=/{([A-Z0-9_]+)}/g,VC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,$C=/\/\*/,HC=/\d+\:(\d+)/;function Lc(e,t,n=-1){const r=Mt(),o=Ct(),a=20+e,h=P(r.consts,t),v=Pn();r.firstCreatePass&&function TC(e,t,n,r,o,a){const h=Pn(),v=[],w=[],B=[[]];o=function PC(e,t){if(function IC(e){return-1===e}(t))return Fp(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Fp(e.substring(n,r))}}(o,a);const K=function DC(e){return e.replace(EC," ")}(o).split(CC);for(let Te=0;Te<K.length;Te++){let ze=K[Te];if(0==(1&Te)){const nt=kc(ze);for(let pt=0;pt<nt.length;pt++){let St=nt[pt];if(0==(1&pt)){const Ot=St;""!==Ot&&MC(e,h,B[0],v,w,n,Ot)}else{const Ot=St;if("object"!=typeof Ot)throw new Error(`Unable to parse ICU expression in "${o}" message.`);kp(e,n,w,t,Ot,xp(e,h,B[0],n,v,"",!0).index)}}}else{const nt=47===ze.charCodeAt(0),St=(ze.charCodeAt(nt?1:0),20+Number.parseInt(ze.substring(nt?2:1)));if(nt)B.shift(),Ln(Pn(),!1);else{const Ot=uC(e,B[0],St);B.unshift([]),Ln(Ot,!0)}}}e.data[r]={create:v,update:w}}(r,null===v?0:v.index,o,a,h,n);const w=r.data[a],K=Kd(r,v===o[6]?null:v,o);(function pC(e,t,n,r){const o=e[11];for(let a=0;a<t.length;a++){const h=t[a++],v=t[a],w=(h&Kn.COMMENT)===Kn.COMMENT,B=(h&Kn.APPEND_EAGERLY)===Kn.APPEND_EAGERLY,K=h>>>Kn.SHIFT;let Te=e[K];null===Te&&(Te=e[K]=w?o.createComment(v):Qa(o,v)),B&&null!==n&&Br(o,n,Te,r,!1)}})(o,w.create,K,v&&8&v.type?o[v.index]:null),ke(!0)}function Bc(){ke(!1)}function jp(e,t,n){Lc(e,t,n),Bc()}function Vp(e,t){const n=Mt();!function wC(e,t,n){const o=jt().index,a=[];if(e.firstCreatePass&&null===e.data[t]){for(let h=0;h<n.length;h+=2){const v=n[h],w=n[h+1];if(""!==w){if(yC.test(w))throw new Error(`ICU expressions are not supported in attributes. Message: "${w}".`);Do(a,w,o,v,SC(a),null)}}e.data[t]=a}}(n,e+20,P(n.consts,t))}function jc(e){return function hC(e){e&&(rs|=1<<Math.min(os,31)),os++}(di(Ct(),z(),e)),jc}function $p(e){!function fC(e,t,n){if(os>0){const r=e.data[n];Sp(e,t,Array.isArray(r)?r:r.update,Zn()-os-1,rs)}rs=0,os=0}(Mt(),Ct(),e+20)}function Hp(e,t={}){return function UC(e,t={}){let n=e;if(NC.test(e)){const r={},o=[0];n=n.replace(LC,(a,h,v)=>{const w=h||v,B=r[w]||[];if(B.length||(w.split("|").forEach(St=>{const Ot=St.match(HC),Ut=Ot?parseInt(Ot[1],10):0,vt=$C.test(St);B.push([Ut,vt,St])}),r[w]=B),!B.length)throw new Error(`i18n postprocess: unmatched placeholder - ${w}`);const K=o[o.length-1];let Te=0;for(let St=0;St<B.length;St++)if(B[St][0]===K){Te=St;break}const[ze,nt,pt]=B[Te];return nt?o.pop():K!==ze&&o.push(ze),B.splice(Te,1),pt})}return Object.keys(t).length&&(n=n.replace(BC,(r,o,a,h,v,w)=>t.hasOwnProperty(a)?`${o}${t[a]}${w}`:r),n=n.replace(jC,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(VC,(r,o)=>{if(t.hasOwnProperty(o)){const a=t[o];if(!a.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return a.shift()}return r})),n}(e,t)}function Vc(e,t,n,r,o){if(e=M(e),Array.isArray(e))for(let a=0;a<e.length;a++)Vc(e[a],t,n,r,o);else{const a=Mt(),h=Ct();let v=lo(e)?e:M(e.provide),w=Kh(e);const B=jt(),K=1048575&B.providerIndexes,Te=B.directiveStart,ze=B.providerIndexes>>20;if(lo(e)||!e.multi){const nt=new Ao(w,o,es),pt=Hc(v,t,o?K:K+ze,Te);-1===pt?(Ts(xo(B,h),a,v),$c(a,e,t.length),t.push(v),B.directiveStart++,B.directiveEnd++,o&&(B.providerIndexes+=1048576),n.push(nt),h.push(nt)):(n[pt]=nt,h[pt]=nt)}else{const nt=Hc(v,t,K+ze,Te),pt=Hc(v,t,K,K+ze),St=nt>=0&&n[nt],Ot=pt>=0&&n[pt];if(o&&!Ot||!o&&!St){Ts(xo(B,h),a,v);const Ut=function GC(e,t,n,r,o){const a=new Ao(e,n,es);return a.multi=[],a.index=t,a.componentProviders=0,Up(a,o,r&&!n),a}(o?KC:zC,n.length,o,r,w);!o&&Ot&&(n[pt].providerFactory=Ut),$c(a,e,t.length,0),t.push(v),B.directiveStart++,B.directiveEnd++,o&&(B.providerIndexes+=1048576),n.push(Ut),h.push(Ut)}else $c(a,e,nt>-1?nt:pt,Up(n[o?pt:nt],w,!o&&r));!o&&r&&Ot&&n[pt].componentProviders++}}}function $c(e,t,n,r){const o=lo(t),a=function Nv(e){return!!e.useClass}(t);if(o||a){const w=(a?M(t.useClass):t).prototype.ngOnDestroy;if(w){const B=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const K=B.indexOf(n);-1===K?B.push(n,[r,w]):B[K+1].push(r,w)}else B.push(n,w)}}}function Up(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function zC(e,t,n,r){return Uc(this.multi,[])}function KC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const h=this.providerFactory.componentProviders,v=Ro(n,n[1],this.providerFactory.index,r);a=v.slice(0,h),Uc(o,a);for(let w=h;w<v.length;w++)a.push(v[w])}else a=[],Uc(o,a);return a}function Uc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Wp(e,t=[]){return n=>{n.providersResolver=(r,o)=>function WC(e,t,n){const r=Mt();if(r.firstCreatePass){const o=kn(e);Vc(n,r.data,r.blueprint,o,!0),Vc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class zp{}class ta{}class ZC{resolveComponentFactory(t){throw function QC(e){const t=Error(`No component factory found for ${T(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let as=(()=>{class e{}return e.NULL=new ZC,e})();function YC(){return To(jt(),Ct())}function To(e,t){return new ls(ot(e,t))}let ls=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=YC,e})();function JC(e){return e instanceof ls?e.nativeElement:e}class Gp{}let XC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function e0(){const e=Ct(),n=Vt(jt().index,e);return function qC(e){return e[11]}(jn(n)?n:e)}(),e})(),Qp=(()=>{class e{}return e.\u0275prov=Xe({token:e,providedIn:"root",factory:()=>null}),e})();class Zp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Yp=new Zp("13.2.1"),na={};function ia(e,t,n,r,o=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&r.push(C(a)),Vn(a))for(let v=10;v<a.length;v++){const w=a[v],B=w[1].firstChild;null!==B&&ia(w[1],w,B,r)}const h=n.type;if(8&h)ia(e,t,n.child,r);else if(32&h){const v=za(n,t);let w;for(;w=v();)r.push(w)}else if(16&h){const v=qd(t,n);if(Array.isArray(v))r.push(...v);else{const w=Ko(t[16]);ia(w[1],w,v,r,!0)}}n=o?n.projectionNext:n.next}return r}class Mo{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return ia(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Vn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Ya(t,r),Ss(n,r))}this._attachedToViewContainer=!1}Wd(this._lView[1],this._lView)}onDestroy(t){wh(this._lView[1],this._lView,null,t)}markForCheck(){vl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Cl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Sv(e,t,n){Un(!0);try{Cl(e,t,n)}finally{Un(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new $(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Dy(e,t){Go(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new $(902,"");this._appRef=t}}class t0 extends Mo{constructor(t){super(t),this._view=t}detectChanges(){kh(this._view)}checkNoChanges(){!function Iv(e){Un(!0);try{kh(e)}finally{Un(!1)}}(this._view)}get context(){return null}}class Jp extends as{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=$e(t);return new ra(n,this.ngModule)}}function Xp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const r0=new zn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Rd});class ra extends ta{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Uy(e){return e.map(Hy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Xp(this.componentDef.inputs)}get outputs(){return Xp(this.componentDef.outputs)}create(t,n,r,o){const a=(o=o||this.ngModule)?function o0(e,t){return{get:(n,r,o)=>{const a=e.get(n,na,o);return a!==na||r===na?a:t.get(n,r,o)}}}(t,o.injector):t,h=a.get(Gp,y),v=a.get(Qp,null),w=h.createRenderer(null,this.componentDef),B=this.componentDef.selectors[0][0]||"div",K=r?Mh(w,r,this.componentDef.encapsulation):Za(h.createRenderer(null,this.componentDef),B,function n0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?Ii:null}(B)),Te=this.componentDef.onPush?576:528,ze=sf(),nt=$s(0,null,null,1,0,null,null,null,null,null),pt=Qo(null,nt,ze,Te,null,null,h,w,v,a);let St,Ot;vn(pt);try{const Ut=nf(K,this.componentDef,pt,h,w);if(K)if(r)bs(w,K,["ng-version",Yp.full]);else{const{attrs:vt,classes:Xt}=function Wy(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let a=e[r];if("string"==typeof a)2===o?""!==a&&t.push(a,e[++r]):8===o&&n.push(a);else{if(!Ji(o))break;o=a}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);vt&&bs(w,K,vt),Xt&&Xt.length>0&&tl(w,K,Xt.join(" "))}if(Ot=Pt(nt,20),void 0!==n){const vt=Ot.projection=[];for(let Xt=0;Xt<this.ngContentSelectors.length;Xt++){const mn=n[Xt];vt.push(null!=mn?Array.from(mn):null)}}St=rf(Ut,this.componentDef,pt,ze,[af]),Zo(nt,pt,null)}finally{gs()}return new qp(this.componentType,St,To(Ot,pt),pt,Ot)}}class qp extends zp{constructor(t,n,r,o,a){super(),this.location=r,this._rootLView=o,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new t0(o),this.componentType=t}get injector(){return new Kr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function em(e,t,n,r){return ie(()=>{const o=e;null!==t&&(o.hasOwnProperty("decorators")&&void 0!==o.decorators?o.decorators.push(...t):o.decorators=t),null!==n&&(o.ctorParameters=n),null!==r&&(o.propDecorators=o.hasOwnProperty("propDecorators")&&void 0!==o.propDecorators?Object.assign(Object.assign({},o.propDecorators),r):r)})}class wo{}class tm{}const So=new Map;function im(e){const t=new Set;!function n(r){const o=Rt(r,!0),a=o.id;if(null!==a){(function nm(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${T(t)} vs ${T(t.name)}`)})(a,So.get(a),r),So.set(a,r)}const h=ur(o.imports);for(const v of h)t.has(v)||(t.add(v),n(v))}(e)}function rm(e){return So.get(e)||st[e]}function a0(e,t){return new Wc(e,null!=t?t:null)}class Wc extends wo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Jp(this);const r=Rt(t);this._bootstrapComponents=ur(r.bootstrap),this._r3Injector=zh(t,n,[{provide:wo,useValue:this},{provide:as,useValue:this.componentFactoryResolver}],T(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Oi.THROW_IF_NOT_FOUND,r=L.Default){return t===Oi||t===wo||t===Ws?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class oa extends tm{constructor(t){super(),this.moduleType=t,null!==Rt(t)&&im(t)}create(t){return new Wc(this.moduleType,t)}}function om(e,t,n){const r=xn()+e,o=Ct();return o[r]===on?fr(o,r,n?t.call(n):t()):Xo(o,r)}function sm(e,t,n,r){return mm(Ct(),xn(),e,t,n,r)}function am(e,t,n,r,o){return gm(Ct(),xn(),e,t,n,r,o)}function lm(e,t,n,r,o,a){return _m(Ct(),xn(),e,t,n,r,o,a)}function cm(e,t,n,r,o,a,h){return ym(Ct(),xn(),e,t,n,r,o,a,h)}function um(e,t,n,r,o,a,h,v){const w=xn()+e,B=Ct(),K=zi(B,w,n,r,o,a);return di(B,w+4,h)||K?fr(B,w+5,v?t.call(v,n,r,o,a,h):t(n,r,o,a,h)):Xo(B,w+5)}function dm(e,t,n,r,o,a,h,v,w){const B=xn()+e,K=Ct(),Te=zi(K,B,n,r,o,a);return jr(K,B+4,h,v)||Te?fr(K,B+6,w?t.call(w,n,r,o,a,h,v):t(n,r,o,a,h,v)):Xo(K,B+6)}function hm(e,t,n,r,o,a,h,v,w,B){const K=xn()+e,Te=Ct();let ze=zi(Te,K,n,r,o,a);return Ks(Te,K+4,h,v,w)||ze?fr(Te,K+7,B?t.call(B,n,r,o,a,h,v,w):t(n,r,o,a,h,v,w)):Xo(Te,K+7)}function fm(e,t,n,r,o,a,h,v,w,B,K){const Te=xn()+e,ze=Ct(),nt=zi(ze,Te,n,r,o,a);return zi(ze,Te+4,h,v,w,B)||nt?fr(ze,Te+8,K?t.call(K,n,r,o,a,h,v,w,B):t(n,r,o,a,h,v,w,B)):Xo(ze,Te+8)}function pm(e,t,n,r){return vm(Ct(),xn(),e,t,n,r)}function cs(e,t){const n=e[t];return n===on?void 0:n}function mm(e,t,n,r,o,a){const h=t+n;return di(e,h,o)?fr(e,h+1,a?r.call(a,o):r(o)):cs(e,h+1)}function gm(e,t,n,r,o,a,h){const v=t+n;return jr(e,v,o,a)?fr(e,v+2,h?r.call(h,o,a):r(o,a)):cs(e,v+2)}function _m(e,t,n,r,o,a,h,v){const w=t+n;return Ks(e,w,o,a,h)?fr(e,w+3,v?r.call(v,o,a,h):r(o,a,h)):cs(e,w+3)}function ym(e,t,n,r,o,a,h,v,w){const B=t+n;return zi(e,B,o,a,h,v)?fr(e,B+4,w?r.call(w,o,a,h,v):r(o,a,h,v)):cs(e,B+4)}function vm(e,t,n,r,o,a){let h=t+n,v=!1;for(let w=0;w<o.length;w++)di(e,h++,o[w])&&(v=!0);return v?fr(e,h,r.apply(a,o)):cs(e,h)}function bm(e,t){const n=Mt();let r;const o=e+20;n.firstCreatePass?(r=function l0(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[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const a=r.factory||(r.factory=Jn(r.type)),h=ue(es);try{const v=Es(!1),w=a();return Es(v),hf(n,Ct(),o,w),w}finally{ue(h)}}function Cm(e,t,n){const r=e+20,o=Ct(),a=xt(o,r);return us(o,r)?mm(o,xn(),t,a.transform,n,a):a.transform(n)}function Em(e,t,n,r){const o=e+20,a=Ct(),h=xt(a,o);return us(a,o)?gm(a,xn(),t,h.transform,n,r,h):h.transform(n,r)}function Dm(e,t,n,r,o){const a=e+20,h=Ct(),v=xt(h,a);return us(h,a)?_m(h,xn(),t,v.transform,n,r,o,v):v.transform(n,r,o)}function Tm(e,t,n,r,o,a){const h=e+20,v=Ct(),w=xt(v,h);return us(v,h)?ym(v,xn(),t,w.transform,n,r,o,a,w):w.transform(n,r,o,a)}function Mm(e,t,n){const r=e+20,o=Ct(),a=xt(o,r);return us(o,r)?vm(o,xn(),t,a.transform,n,a):a.transform.apply(a,n)}function us(e,t){return e[1].data[t].pure}function zc(e){return t=>{setTimeout(e,void 0,t)}}const mr=class c0 extends i.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,a,h;let v=t,w=n||(()=>null),B=r;if(t&&"object"==typeof t){const Te=t;v=null===(o=Te.next)||void 0===o?void 0:o.bind(Te),w=null===(a=Te.error)||void 0===a?void 0:a.bind(Te),B=null===(h=Te.complete)||void 0===h?void 0:h.bind(Te)}this.__isAsync&&(w=zc(w),v&&(v=zc(v)),B&&(B=zc(B)));const K=super.subscribe({next:v,error:w,complete:B});return t instanceof u.w0&&t.add(K),K}};function u0(){return this._results[co()]()}class sa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=co(),r=sa.prototype;r[n]||(r[n]=u0)}get changes(){return this._changes||(this._changes=new mr)}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){const r=this;r.dirty=!1;const o=Ui(t);(this._changesDetected=!function d_(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],a=t[r];if(n&&(o=n(o),a=n(a)),a!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let ds=(()=>{class e{}return e.__NG_ELEMENT_ID__=f0,e})();const d0=ds,h0=class extends d0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=Qo(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(r[19]=a.createEmbeddedView(n)),Zo(n,r,t),new Mo(r)}};function f0(){return aa(jt(),Ct())}function aa(e,t){return 4&e.type?new h0(t,e,To(e,t)):null}let la=(()=>{class e{}return e.__NG_ELEMENT_ID__=p0,e})();function p0(){return Im(jt(),Ct())}const m0=la,wm=class extends m0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return To(this._hostTNode,this._hostLView)}get injector(){return new Kr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ds(this._hostTNode,this._hostLView);if(Bu(t)){const n=zr(t,this._hostLView),r=Wr(t);return new Kr(n[1].data[r+8],n)}return new Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Sm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const o=t.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(t,n,r,o,a){const h=t&&!ko(t);let v;if(h)v=n;else{const Te=n||{};v=Te.index,r=Te.injector,o=Te.projectableNodes,a=Te.ngModuleRef}const w=h?t:new ra($e(t)),B=r||this.parentInjector;if(!a&&null==w.ngModule&&B){const Te=B.get(wo,null);Te&&(a=Te)}const K=w.create(B,o,void 0,a);return this.insert(K.hostView,v),K}insert(t,n){const r=t._lView,o=r[1];if(function F(e){return Vn(e[3])}(r)){const K=this.indexOf(t);if(-1!==K)this.detach(K);else{const Te=r[3],ze=new wm(Te,Te[6],Te[3]);ze.detach(ze.indexOf(t))}}const a=this._adjustIndex(n),h=this._lContainer;!function My(e,t,n,r){const o=10+r,a=n.length;r>0&&(n[o-1][4]=t),r<a-10?(t[4]=n[o],Yu(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const h=t[17];null!==h&&n!==h&&function wy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(h,t);const v=t[19];null!==v&&v.insertView(e),t[2]|=128}(o,r,h,a);const v=qa(a,h),w=r[11],B=ks(w,h[7]);return null!==B&&function Ey(e,t,n,r,o,a){r[0]=o,r[6]=t,Go(e,r,n,1,o,a)}(o,h[6],w,r,B,v),t.attachToViewContainerRef(),Yu(Kc(h),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Sm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ya(this._lContainer,n);r&&(Ss(Kc(this._lContainer),n),Wd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ya(this._lContainer,n);return r&&null!=Ss(Kc(this._lContainer),n)?new Mo(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Sm(e){return e[8]}function Kc(e){return e[8]||(e[8]=[])}function Im(e,t){let n;const r=t[e.index];if(Vn(r))n=r;else{let o;if(8&e.type)o=C(r);else{const a=t[11];o=a.createComment("");const h=ot(e,t);Br(a,ks(a,h),o,function Ay(e,t){return fe(e)?e.nextSibling(t):t.nextSibling}(a,h),!1)}t[e.index]=n=Fh(r,t,o,e),Hs(t,n)}return new wm(n,e,t)}class Gc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Gc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Qc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let a=0;a<r;a++){const h=n.getByIndex(a);o.push(this.queries[h.indexInDeclarationView].clone())}return new Qc(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Lm(t,n).matches&&this.queries[n].setDirty()}}class Pm{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Zc{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 o=null!==n?n.length:0,a=this.getByIndex(r).embeddedTView(t,o);a&&(a.indexInDeclarationView=r,null!==n?n.push(a):n=[a])}return null!==n?new Zc(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 Yc{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 Yc(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 o=0;o<r.length;o++){const a=r[o];this.matchTNodeWithReadOption(t,n,y0(n,a)),this.matchTNodeWithReadOption(t,n,Ms(n,t,a,!1,!1))}else r===ds?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ms(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===ls||o===la||o===ds&&4&n.type)this.addMatch(n.index,-2);else{const a=Ms(n,t,o,!1,!1);null!==a&&this.addMatch(n.index,a)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function y0(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 b0(e,t,n,r){return-1===n?function v0(e,t){return 11&e.type?To(e,t):4&e.type?aa(e,t):null}(t,e):-2===n?function C0(e,t,n){return n===ls?To(t,e):n===ds?aa(t,e):n===la?Im(t,e):void 0}(e,t,r):Ro(e,e[1],n,t)}function Am(e,t,n,r){const o=t[19].queries[r];if(null===o.matches){const a=e.data,h=n.matches,v=[];for(let w=0;w<h.length;w+=2){const B=h[w];v.push(B<0?null:b0(t,a[B],h[w+1],n.metadata.read))}o.matches=v}return o.matches}function Jc(e,t,n,r){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const h=Am(e,t,o,n);for(let v=0;v<a.length;v+=2){const w=a[v];if(w>0)r.push(h[v/2]);else{const B=a[v+1],K=t[-w];for(let Te=10;Te<K.length;Te++){const ze=K[Te];ze[17]===ze[3]&&Jc(ze[1],ze,B,r)}if(null!==K[9]){const Te=K[9];for(let ze=0;ze<Te.length;ze++){const nt=Te[ze];Jc(nt[1],nt,B,r)}}}}}return r}function Om(e){const t=Ct(),n=Mt(),r=zt();Gt(r+1);const o=Lm(n,r);if(e.dirty&&Qt(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const a=o.crossesNgTemplate?Jc(n,t,r,[]):Am(n,t,o,r);e.reset(a,JC),e.notifyOnChanges()}return!0}return!1}function xm(e,t,n){const r=Mt();r.firstCreatePass&&(Nm(r,new Pm(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),km(r,Ct(),t)}function Rm(e,t,n,r){const o=Mt();if(o.firstCreatePass){const a=jt();Nm(o,new Pm(t,n,r),a.index),function D0(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}km(o,Ct(),n)}function Fm(){return function E0(e,t){return e[19].queries[t].queryList}(Ct(),zt())}function km(e,t,n){const r=new sa(4==(4&n));wh(e,t,r,r.destroy),null===t[19]&&(t[19]=new Qc),t[19].queries.push(new Gc(r))}function Nm(e,t,n){null===e.queries&&(e.queries=new Zc),e.queries.track(new Yc(t,n))}function Lm(e,t){return e.queries.getByIndex(t)}function Bm(e,t){return aa(e,t)}const _i=(()=>({\u0275\u0275attribute:Rl,\u0275\u0275attributeInterpolate1:Fl,\u0275\u0275attributeInterpolate2:kl,\u0275\u0275attributeInterpolate3:Nl,\u0275\u0275attributeInterpolate4:Ll,\u0275\u0275attributeInterpolate5:Bl,\u0275\u0275attributeInterpolate6:jl,\u0275\u0275attributeInterpolate7:Vl,\u0275\u0275attributeInterpolate8:$l,\u0275\u0275attributeInterpolateV:Hl,\u0275\u0275defineComponent:q,\u0275\u0275defineDirective:Ue,\u0275\u0275defineInjectable:Xe,\u0275\u0275defineInjector:ge,\u0275\u0275defineNgModule:Wt,\u0275\u0275definePipe:he,\u0275\u0275directiveInject:es,\u0275\u0275getInheritedFactory:Gu,\u0275\u0275inject:ni,\u0275\u0275injectAttribute:Ea,\u0275\u0275invalidFactory:Mf,\u0275\u0275invalidFactoryDep:Pa,\u0275\u0275templateRefExtractor:Bm,\u0275\u0275NgOnChangesFeature:mi,\u0275\u0275ProvidersFeature:Wp,\u0275\u0275CopyDefinitionFeature:cf,\u0275\u0275InheritDefinitionFeature:Al,\u0275\u0275nextContext:Rf,\u0275\u0275namespaceHTML:Fu,\u0275\u0275namespaceMathML:Ru,\u0275\u0275namespaceSVG:xu,\u0275\u0275enableBindings:Hi,\u0275\u0275disableBindings:Sr,\u0275\u0275elementStart:Ql,\u0275\u0275elementEnd:Zl,\u0275\u0275element:wf,\u0275\u0275elementContainerStart:Yl,\u0275\u0275elementContainerEnd:Jl,\u0275\u0275elementContainer:Sf,\u0275\u0275pureFunction0:om,\u0275\u0275pureFunction1:sm,\u0275\u0275pureFunction2:am,\u0275\u0275pureFunction3:lm,\u0275\u0275pureFunction4:cm,\u0275\u0275pureFunction5:um,\u0275\u0275pureFunction6:dm,\u0275\u0275pureFunction7:hm,\u0275\u0275pureFunction8:fm,\u0275\u0275pureFunctionV:pm,\u0275\u0275getCurrentView:If,\u0275\u0275restoreView:Zt,\u0275\u0275listener:ql,\u0275\u0275projection:kf,\u0275\u0275syntheticHostProperty:Rc,\u0275\u0275syntheticHostListener:ec,\u0275\u0275pipeBind1:Cm,\u0275\u0275pipeBind2:Em,\u0275\u0275pipeBind3:Dm,\u0275\u0275pipeBind4:Tm,\u0275\u0275pipeBindV:Mm,\u0275\u0275projectionDef:Ff,\u0275\u0275hostProperty:xc,\u0275\u0275property:Kl,\u0275\u0275propertyInterpolate:nc,\u0275\u0275propertyInterpolate1:Qs,\u0275\u0275propertyInterpolate2:ic,\u0275\u0275propertyInterpolate3:rc,\u0275\u0275propertyInterpolate4:oc,\u0275\u0275propertyInterpolate5:sc,\u0275\u0275propertyInterpolate6:ac,\u0275\u0275propertyInterpolate7:lc,\u0275\u0275propertyInterpolate8:cc,\u0275\u0275propertyInterpolateV:uc,\u0275\u0275pipe:bm,\u0275\u0275queryRefresh:Om,\u0275\u0275viewQuery:xm,\u0275\u0275loadQuery:Fm,\u0275\u0275contentQuery:Rm,\u0275\u0275reference:ff,\u0275\u0275classMap:Uf,\u0275\u0275classMapInterpolate1:Jf,\u0275\u0275classMapInterpolate2:Xf,\u0275\u0275classMapInterpolate3:qf,\u0275\u0275classMapInterpolate4:ep,\u0275\u0275classMapInterpolate5:tp,\u0275\u0275classMapInterpolate6:np,\u0275\u0275classMapInterpolate7:ip,\u0275\u0275classMapInterpolate8:rp,\u0275\u0275classMapInterpolateV:op,\u0275\u0275styleMap:qi,\u0275\u0275styleMapInterpolate1:sp,\u0275\u0275styleMapInterpolate2:ap,\u0275\u0275styleMapInterpolate3:lp,\u0275\u0275styleMapInterpolate4:cp,\u0275\u0275styleMapInterpolate5:up,\u0275\u0275styleMapInterpolate6:dp,\u0275\u0275styleMapInterpolate7:hp,\u0275\u0275styleMapInterpolate8:fp,\u0275\u0275styleMapInterpolateV:pp,\u0275\u0275styleProp:dc,\u0275\u0275stylePropInterpolate1:Dc,\u0275\u0275stylePropInterpolate2:Tc,\u0275\u0275stylePropInterpolate3:Mc,\u0275\u0275stylePropInterpolate4:wc,\u0275\u0275stylePropInterpolate5:Sc,\u0275\u0275stylePropInterpolate6:Ic,\u0275\u0275stylePropInterpolate7:Pc,\u0275\u0275stylePropInterpolate8:Ac,\u0275\u0275stylePropInterpolateV:Oc,\u0275\u0275classProp:hc,\u0275\u0275advance:lh,\u0275\u0275template:df,\u0275\u0275text:Yf,\u0275\u0275textInterpolate:pc,\u0275\u0275textInterpolate1:Ys,\u0275\u0275textInterpolate2:mc,\u0275\u0275textInterpolate3:gc,\u0275\u0275textInterpolate4:_c,\u0275\u0275textInterpolate5:yc,\u0275\u0275textInterpolate6:vc,\u0275\u0275textInterpolate7:bc,\u0275\u0275textInterpolate8:Cc,\u0275\u0275textInterpolateV:Ec,\u0275\u0275i18n:jp,\u0275\u0275i18nAttributes:Vp,\u0275\u0275i18nExp:jc,\u0275\u0275i18nStart:Lc,\u0275\u0275i18nEnd:Bc,\u0275\u0275i18nApply:$p,\u0275\u0275i18nPostprocess:Hp,\u0275\u0275resolveWindow:Fd,\u0275\u0275resolveDocument:kd,\u0275\u0275resolveBody:Nd,\u0275\u0275setComponentScope:E,\u0275\u0275setNgModuleScope:Ht,\u0275\u0275sanitizeHtml:vd,\u0275\u0275sanitizeStyle:bd,\u0275\u0275sanitizeResourceUrl:ja,\u0275\u0275sanitizeScript:Cd,\u0275\u0275sanitizeUrl:Ba,\u0275\u0275sanitizeUrlOrResourceUrl:Td,\u0275\u0275trustConstantHtml:Ed,\u0275\u0275trustConstantResourceUrl:Dd,forwardRef:A,resolveForwardRef:M}))();let Io=null;function w0(){Io=null}const hs=[];let Xc=!1;function jm(){if(!Xc){Xc=!0;try{for(let e=hs.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=hs[e];n.declarations&&n.declarations.every(Vm)&&(hs.splice(e,1),P0(t,n))}}finally{Xc=!1}}}function Vm(e){return Array.isArray(e)?e.every(Vm):!!M(e)}function $m(e,t={}){Hm(e,t),function S0(e,t){hs.push({moduleType:e,ngModule:t})}(e,t)}function Hm(e,t,n=!1){const r=Ui(t.declarations||Tt);let o=null;Object.defineProperty(e,de,{configurable:!0,get:()=>(null===o&&(o=ei().compileNgModule(_i,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Ui(t.bootstrap||Tt).map(M),declarations:r.map(M),imports:Ui(t.imports||Tt).map(M).map(Km),exports:Ui(t.exports||Tt).map(M).map(Km),schemas:t.schemas?Ui(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,Q,{get:()=>{if(null===a){const v=ei();a=v.compileFactory(_i,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Os(e),target:v.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let h=null;Object.defineProperty(e,It,{get:()=>{if(null===h){const v={name:e.name,type:e,providers:t.providers||Tt,imports:[(t.imports||Tt).map(M),(t.exports||Tt).map(M)]};h=ei().compileInjector(_i,`ng:///${e.name}/\u0275inj.js`,v)}return h},configurable:!1})}let ca=new WeakMap,eu=new WeakMap;function I0(){ca=new WeakMap,eu=new WeakMap,hs.length=0}function P0(e,t){const n=Ui(t.declarations||Tt),r=fs(e);n.forEach(o=>{o.hasOwnProperty(ln)?tu($e(o),r):!o.hasOwnProperty(Kt)&&!o.hasOwnProperty(tn)&&(o.ngSelectorScope=e)})}function tu(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(ln)?$e(n):dt(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Nt(n)),e.schemas=t.schemas,e.tView=null}function fs(e){if(!nu(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=Rt(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return ur(t.imports).forEach(r=>{const o=r;if(!nu(o))throw new Error(`Importing ${o.name} which does not have a \u0275mod property`);const a=fs(o);a.exported.directives.forEach(h=>n.compilation.directives.add(h)),a.exported.pipes.forEach(h=>n.compilation.pipes.add(h))}),ur(t.declarations).forEach(r=>{Nt(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),ur(t.exports).forEach(r=>{const o=r;if(nu(o)){const a=fs(o);a.exported.directives.forEach(h=>{n.compilation.directives.add(h),n.exported.directives.add(h)}),a.exported.pipes.forEach(h=>{n.compilation.pipes.add(h),n.exported.pipes.add(h)})}else Nt(o)?n.exported.pipes.add(o):n.exported.directives.add(o)}),t.transitiveCompileScopes=n,n}function Km(e){return function A0(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function nu(e){return!!Rt(e)}let iu=0;function Gm(e,t){let n=null;(function P_(e,t){od(t)&&(qr.set(e,t),Vo.add(e))})(e,t),Zm(e,t),Object.defineProperty(e,ln,{get:()=>{if(null===n){const r=ei();if(od(t)){const B=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&B.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&B.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),B.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(B.join("\n"))}const o=function M0(){return Io}();let a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);let h=t.encapsulation;void 0===h&&(h=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:ht.Emulated);const v=t.templateUrl||`ng:///${e.name}/template.html`,w=Object.assign(Object.assign({},Ym(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,v),template:t.template||"",preserveWhitespaces:a,styles:t.styles||Tt,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:h,interpolation:t.interpolation,viewProviders:t.viewProviders||null});iu++;try{w.usesInheritance&&Jm(e),n=r.compileComponent(_i,v,w)}finally{iu--}if(0===iu&&jm(),function O0(e){return void 0!==e.ngSelectorScope}(e)){const B=fs(e.ngSelectorScope);tu(n,B)}}return n},configurable:!1})}function ru(e,t){let n=null;Zm(e,t||{}),Object.defineProperty(e,Kt,{get:()=>{if(null===n){const r=Qm(e,t||{});n=ei().compileDirective(_i,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Qm(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=ei(),a=Ym(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&Jm(e),{metadata:a,sourceMapUrl:r}}function Zm(e,t){let n=null;Object.defineProperty(e,Q,{get:()=>{if(null===n){const r=Qm(e,t),o=ei();n=o.compileFactory(_i,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Os(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function x0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Ym(e,t){const n=Oa(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||$t,propMetadata:r,inputs:t.inputs||Tt,outputs:t.outputs||Tt,queries:Xm(e,r,qm),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!x0(e),exportAs:k0(t.exportAs),providers:t.providers||null,viewQueries:Xm(e,r,eg)}}function Jm(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!dt(n)&&!$e(n)&&L0(n)&&ru(n,null),n=Object.getPrototypeOf(n)}function R0(e){return"string"==typeof e?ng(e):M(e)}function F0(e,t){return{propertyName:e,predicate:R0(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Xm(e,t,n){const r=[];for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];a.forEach(h=>{if(n(h)){if(!h.selector)throw new Error(`Can't construct a query for the property "${o}" of "${ae(e)}" since the query selector wasn't defined.`);if(a.some(tg))throw new Error("Cannot combine @Input decorators with query decorators");r.push(F0(o,h))}})}return r}function k0(e){return void 0===e?null:ng(e)}function qm(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function eg(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function tg(e){return"Input"===e.ngMetadataName}function ng(e){return e.split(",").map(t=>t.trim())}const N0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function L0(e){const t=Oa();if(N0.some(r=>t.hasLifecycleHook(e,r)))return!0;const n=t.propMetadata(e);for(const r in n){const o=n[r];for(let a=0;a<o.length;a++){const h=o[a],v=h.ngMetadataName;if(tg(h)||qm(h)||eg(h)||"Output"===v||"HostBinding"===v||"HostListener"===v)return!0}}return!1}function ig(e,t){let n=null,r=null;Object.defineProperty(e,Q,{get:()=>{if(null===r){const o=rg(e,t),a=ei();r=a.compileFactory(_i,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Os(e),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,tn,{get:()=>{if(null===n){const o=rg(e,t);n=ei().compilePipe(_i,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function rg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const og=Yr("Directive",(e={})=>e,void 0,void 0,(e,t)=>ru(e,t)),B0=Yr("Component",(e={})=>Object.assign({changeDetection:ve.Default},e),og,void 0,(e,t)=>Gm(e,t)),j0=Yr("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>ig(e,t)),V0=Or("Input",e=>({bindingPropertyName:e})),$0=Or("Output",e=>({bindingPropertyName:e})),H0=Or("HostBinding",e=>({hostPropertyName:e})),U0=Or("HostListener",(e,t)=>({eventName:e,args:t})),W0=Yr("NgModule",e=>e,void 0,void 0,(e,t)=>$m(e,t));function ua(...e){}const ou=new zn("Application Initializer");let Po=(()=>{class e{constructor(n){this.appInits=n,this.resolve=ua,this.reject=ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const a=this.appInits[o]();if(Xl(a))n.push(a);else if(Af(a)){const h=new Promise((v,w)=>{a.subscribe({complete:v,error:w})});n.push(h)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(ni(ou,8))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e})();const sg=new zn("AppId"),ag={provide:sg,useFactory:function z0(){return`${su()}${su()}${su()}`},deps:[]};function su(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lg=new zn("Platform Initializer"),cg=new zn("Platform ID"),ug=new zn("appBootstrapListener"),K0=new zn("Application Packages Root URL");let dg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e})();const da=new zn("LocaleId"),hg=new zn("DefaultCurrencyCode"),G0=new zn("Translations"),Q0=new zn("TranslationsFormat");var gr=(()=>((gr=gr||{})[gr.Error=0]="Error",gr[gr.Warning=1]="Warning",gr[gr.Ignore=2]="Ignore",gr))();class fg{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let au=(()=>{class e{compileModuleSync(n){return new oa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=ur(Rt(n).declarations).reduce((h,v)=>{const w=$e(v);return w&&h.push(new ra(w)),h},[]);return new fg(r,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e})();const pg=new zn("compilerOptions");class Z0{}const Y0=(()=>Promise.resolve(0))();function lu(e){"undefined"==typeof Zone?Y0.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class xi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new mr(!1),this.onMicrotaskEmpty=new mr(!1),this.onStable=new mr(!1),this.onError=new mr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function J0(){let e=Ft.requestAnimationFrame,t=Ft.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function eE(e){const t=()=>{!function q0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ft,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,uu(e),e.isCheckStableRunning=!0,cu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),uu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,h,v)=>{try{return mg(e),n.invokeTask(o,a,h,v)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),gg(e)}},onInvoke:(n,r,o,a,h,v,w)=>{try{return mg(e),n.invoke(o,a,h,v,w)}finally{e.shouldCoalesceRunChangeDetection&&t(),gg(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,uu(e),cu(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(xi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const a=this._inner,h=a.scheduleEventTask("NgZoneEvent: "+o,t,X0,ua,ua);try{return a.runTask(h,n,r)}finally{a.cancelTask(h)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const X0={};function cu(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 uu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function mg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function gg(e){e._nesting--,cu(e)}class _g{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new mr,this.onMicrotaskEmpty=new mr,this.onStable=new mr,this.onError=new mr}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,o){return t.apply(n,r)}}let yg=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{xi.assertNotInAngularZone(),lu(()=>{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())lu(()=>{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,o){let a=-1;r&&r>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==a),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:o})}whenStable(n,r,o){if(o&&!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,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(ni(xi))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e})(),du=(()=>{class e{constructor(){this._applications=new Map,hu.addToWindow(this)}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 hu.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e})();class tE{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function nE(e){hu=e}let nr,hu=new tE;function vg(e,t,n){const r=new oa(n);return Promise.resolve(r)}function bg(e){return e.isBoundToModule}const fu=new zn("AllowMultipleToken");class iE{constructor(t,n){this.name=t,this.token=n}}function Cg(e){if(nr&&!nr.destroyed&&!nr.injector.get(fu,!1))throw new $(400,"");nr=e.get(mu);const t=e.get(lg,null);return t&&t.forEach(n=>n()),nr}function Eg(e,t,n=[]){const r=`Platform: ${t}`,o=new zn(r);return(a=[])=>{let h=pu();if(!h||h.injector.get(fu,!1))if(e)e(n.concat(a).concat({provide:o,useValue:!0}));else{const v=n.concat(a).concat({provide:o,useValue:!0},{provide:Dl,useValue:"platform"});Cg(Oi.create({providers:v,name:r}))}return Dg()}}function Dg(e){const t=pu();if(!t)throw new $(401,"");return t}function rE(){nr&&!nr.destroyed&&nr.destroy()}function pu(){return nr&&!nr.destroyed?nr:null}let mu=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const v=function oE(e,t){let n;return n="noop"===e?new _g:("zone.js"===e?void 0:e)||new xi({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),w=[{provide:xi,useValue:v}];return v.run(()=>{const B=Oi.create({providers:w,parent:this.injector,name:n.moduleType.name}),K=n.create(B),Te=K.injector.get(zo,null);if(!Te)throw new $(402,"");return v.runOutsideAngular(()=>{const ze=v.onError.subscribe({next:nt=>{Te.handleError(nt)}});K.onDestroy(()=>{gu(this._modules,K),ze.unsubscribe()})}),function sE(e,t,n){try{const r=n();return Xl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(Te,v,()=>{const ze=K.injector.get(Po);return ze.runInitializers(),ze.donePromise.then(()=>(yp(K.injector.get(da,ns)||ns),this._moduleDoBootstrap(K),K))})})}bootstrapModule(n,r=[]){const o=Tg({},r);return vg(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(ps);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new $(403,"");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 $(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(ni(Oi))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e})();function Tg(e,t){return Array.isArray(t)?t.reduce(Tg,e):Object.assign(Object.assign({},e),t)}let ps=(()=>{class e{constructor(n,r,o,a,h){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=a,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const v=new m.y(B=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{B.next(this._stable),B.complete()})}),w=new m.y(B=>{let K;this._zone.runOutsideAngular(()=>{K=this._zone.onStable.subscribe(()=>{xi.assertNotInAngularZone(),lu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,B.next(!0))})})});const Te=this._zone.onUnstable.subscribe(()=>{xi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{B.next(!1)}))});return()=>{K.unsubscribe(),Te.unsubscribe()}});this.isStable=(0,c.T)(v,w.pipe((0,s.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new $(405,"");let o;o=n instanceof ta?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const a=bg(o)?void 0:this._injector.get(wo),v=o.create(Oi.NULL,[],r||o.selector,a),w=v.location.nativeElement,B=v.injector.get(yg,null),K=B&&v.injector.get(du);return B&&K&&K.registerApplication(w,B),v.onDestroy(()=>{this.detachView(v.hostView),gu(this.components,v),K&&K.unregisterApplication(w)}),this._loadComponent(v),v}tick(){if(this._runningTick)throw new $(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;gu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(ug,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(ni(xi),ni(Oi),ni(zo),ni(as),ni(Po))},e.\u0275prov=Xe({token:e,factory:e.\u0275fac}),e})();function gu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let wg=!0,Sg=!1;function lE(){return Sg=!0,wg}function cE(){if(Sg)throw new Error("Cannot enable prod mode after platform setup.");wg=!1}function uE(e){const t=rm(e);if(!t)throw Ig(e);return new oa(t)}function dE(e){const t=rm(e);if(!t)throw Ig(e);return t}function Ig(e){return new Error(`No module with ID ${e} loaded`)}let Pg=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ag,e})();function Ag(e){return function hE(e,t,n){if(yi(e)&&!n){const r=Vt(e.index,t);return new Mo(r,r)}return 47&e.type?new Mo(t[16],t):null}(jt(),Ct(),16==(16&e))}class Og extends Pg{}class fE extends Og{}class pE{constructor(t,n){this.name=t,this.callback=n}}function mE(e){return e.map(t=>t.nativeElement)}class _u{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new ms(t):null}get injector(){return Jh(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Sl(t)||Zh(t))}get context(){return Sl(this.nativeNode)||Qh(this.nativeNode)}get listeners(){return qh(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function Hv(e){const t=ci(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function ay(e,t){const n=e[1].data[t];if(n&&n.localNames){const r={};let o=n.index+1;for(let a=0;a<n.localNames.length;a+=2)r[n.localNames[a]]=e[o],o++;return r}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function Vv(e){const t=ci(e);if(null===t)return[];const r=t.lView[1],o=r.data[t.nodeIndex],a=[],v=o.directiveEnd;for(let w=1048575&o.providerIndexes;w<v;w++){let B=r.data[w];Wv(B)&&(B=B.type),a.push(B)}return a}(this.nativeNode)}}class ms extends _u{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=ci(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=ci(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,o=r[t.nodeIndex],a={};return function gE(e,t){if(e){let n=Object.getPrototypeOf(e);const r=Node.prototype;for(;null!==n&&n!==r;){const o=Object.getOwnPropertyDescriptors(n);for(let a in o)if(!a.startsWith("__")&&!a.startsWith("on")){const h=e[a];_E(h)&&(t[a]=h)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,a),function yE(e,t,n,r){let o=t.propertyBindings;if(null!==o)for(let a=0;a<o.length;a++){const h=o[a],w=r[h].split("\ufffd"),B=w[0];if(w.length>1){let K=w[1];for(let Te=1;Te<w.length-1;Te++)K+=U(n[h+Te-1])+w[Te+1];e[B]=K}else e[B]=n[h]}}(a,o,n,r),a}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const r=ci(n);if(null===r)return{};const a=r.lView[1].data[r.nodeIndex].attrs,h=[];if(a){let w=0;for(;w<a.length;){const B=a[w];if("string"!=typeof B)break;t[B]=a[w+1],h.push(B.toLowerCase()),w+=2}}const v=n.attributes;for(let w=0;w<v.length;w++){const B=v[w],K=B.name.toLowerCase();-1===h.indexOf(K)&&(t[K]=B.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},r=this.nativeElement.className;return("string"!=typeof r?r.baseVal.split(" "):r.split(" ")).forEach(a=>t[a]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,n=[];for(let r=0;r<t.length;r++)n.push(Eu(t[r]));return n}get children(){const t=this.nativeElement;if(!t)return[];const n=t.children,r=[];for(let o=0;o<n.length;o++)r.push(Eu(n[o]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return xg(this,t,n,!0),n}queryAllNodes(t){const n=[];return xg(this,t,n,!1),n}triggerEventHandler(t,n){const r=this.nativeNode,o=[];this.listeners.forEach(a=>{if(a.name===t){const h=a.callback;h.call(r,n),o.push(h)}}),"function"==typeof r.eventListeners&&r.eventListeners(t).forEach(a=>{if(-1!==a.toString().indexOf("__ngUnwrap__")){const h=a("__ngUnwrap__");return-1===o.indexOf(h)&&h.call(r,n)}})}}function _E(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function xg(e,t,n,r){const o=ci(e.nativeNode);null!==o?$r(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):vu(e.nativeNode,t,n,r)}function $r(e,t,n,r,o,a){const h=function Et(e,t){const n=null===e?-1:e.index;return-1!==n?C(t[n]):null}(e,t);if(11&e.type){if(yu(h,n,r,o,a),yi(e)){const w=Vt(e.index,t);w&&w[1].firstChild&&$r(w[1].firstChild,w,n,r,o,a)}else e.child&&$r(e.child,t,n,r,o,a),h&&vu(h,n,r,o);const v=t[e.index];Vn(v)&&Rg(v,n,r,o,a)}else if(4&e.type){const v=t[e.index];yu(v[7],n,r,o,a),Rg(v,n,r,o,a)}else if(16&e.type){const v=t[16],B=v[6].projection[e.projection];if(Array.isArray(B))for(let K of B)yu(K,n,r,o,a);else if(B){const K=v[3];$r(K[1].data[B.index],K,n,r,o,a)}}else e.child&&$r(e.child,t,n,r,o,a);if(a!==h){const v=4&e.flags?e.projectionNext:e.next;v&&$r(v,t,n,r,o,a)}}function Rg(e,t,n,r,o){for(let a=10;a<e.length;a++){const h=e[a],v=h[1].firstChild;v&&$r(v,h,t,n,r,o)}}function yu(e,t,n,r,o){if(o!==e){const a=ha(e);if(!a)return;(r&&a instanceof ms&&t(a)&&-1===n.indexOf(a)||!r&&t(a)&&-1===n.indexOf(a))&&n.push(a)}}function vu(e,t,n,r){const o=e.childNodes,a=o.length;for(let h=0;h<a;h++){const v=o[h],w=ha(v);w&&((r&&w instanceof ms&&t(w)&&-1===n.indexOf(w)||!r&&t(w)&&-1===n.indexOf(w))&&n.push(w),vu(v,t,n,r))}}const Cu="__ng_debug__";function Eu(e){return e instanceof Node?(e.hasOwnProperty(Cu)||(e[Cu]=e.nodeType==Node.ELEMENT_NODE?new ms(e):new _u(e)),e[Cu]):null}const ha=Eu,bE=function vE(e){return null},CE=_u,EE=ms;class Fg{constructor(){}supports(t){return Jo(t)}create(t){return new kg(t)}}const DE=(e,t)=>t;class kg{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||DE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,a=null;for(;n||r;){const h=!r||n&&n.currentIndex<Lg(r,o,a)?n:r,v=Lg(h,o,a),w=h.currentIndex;if(h===r)o--,r=r._nextRemoved;else if(n=n._next,null==h.previousIndex)o++;else{a||(a=[]);const B=v-o,K=w-o;if(B!=K){for(let ze=0;ze<B;ze++){const nt=ze<a.length?a[ze]:a[ze]=0,pt=nt+ze;K<=pt&&pt<B&&(a[ze]=nt+1)}a[h.previousIndex]=K-B}}v!==w&&t(h,v,w)}}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=[]),!Jo(t))throw new $(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,a,h,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let v=0;v<this.length;v++)a=t[v],h=this._trackByFn(v,a),null!==n&&Object.is(n.trackById,h)?(r&&(n=this._verifyReinsertion(n,a,h,v)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,h,v),r=!0),n=n._next}else o=0,function nb(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[co()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,v=>{h=this._trackByFn(o,v),null!==n&&Object.is(n.trackById,h)?(r&&(n=this._verifyReinsertion(n,v,h,o)),Object.is(n.item,v)||this._addIdentityChange(n,v)):(n=this._mismatch(n,v,h,o),r=!0),n=n._next,o++}),this.length=o;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,o){let a;return null===t?a=this._itTail:(a=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,a,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,o)):t=this._addAfter(new TE(n,r),a,o),t}_verifyReinsertion(t,n,r,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==a?t=this._reinsertAfter(a,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),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 o=t._prevRemoved,a=t._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,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 o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ng),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 Ng),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 TE{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 ME{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 Ng{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new ME,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.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 Lg(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class Bg{constructor(){}supports(t){return t instanceof Map||xl(t)}create(){return new wE}}class wE{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||xl(t)))throw new $(900,"")}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,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,a)}}),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 o=this._records.get(t);this._maybeAddToChanges(o,n);const a=o._prev,h=o._next;return a&&(a._next=h),h&&(h._prev=a),o._next=null,o._prev=null,o}const r=new SE(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 SE{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 jg(){return new fa([new Fg])}let fa=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||jg()),deps:[[e,new Nr,new kr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new $(901,"")}}return e.\u0275prov=Xe({token:e,providedIn:"root",factory:jg}),e})();function Vg(){return new pa([new Bg])}let pa=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Vg()),deps:[[e,new Nr,new kr]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(r)return r;throw new $(901,"")}}return e.\u0275prov=Xe({token:e,providedIn:"root",factory:Vg}),e})();const IE=[new Bg],$g=new fa([new Fg]),Hg=new pa(IE),AE=Eg(null,"core",[{provide:cg,useValue:"unknown"},{provide:mu,deps:[Oi]},{provide:du,deps:[]},{provide:dg,deps:[]}]),kE=[{provide:ps,useClass:ps,deps:[xi,Oi,zo,as,Po]},{provide:r0,deps:[xi],useFactory:function NE(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Po,useClass:Po,deps:[[new kr,ou]]},{provide:au,useClass:au,deps:[]},ag,{provide:fa,useFactory:function OE(){return $g},deps:[]},{provide:pa,useFactory:function xE(){return Hg},deps:[]},{provide:da,useFactory:function RE(e){return e||function FE(){return"undefined"!=typeof $localize&&$localize.locale||ns}()},deps:[[new jo(da),new kr,new Nr]]},{provide:hg,useValue:"USD"}];let LE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(ni(ps))},e.\u0275mod=Wt({type:e}),e.\u0275inj=ge({providers:kE}),e})();const BE=!0;function jE(e){return ei().compileDirectiveDeclaration(_i,`ng:///${e.type.name}/\u0275fac.js`,e)}function VE(e){var t,n;em(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function $E(e){return ei().compileComponentDeclaration(_i,`ng:///${e.type.name}/\u0275cmp.js`,e)}function HE(e){return ei(function UE(e){switch(e){case qn.Directive:return"directive";case qn.Component:return"component";case qn.Injectable:return"injectable";case qn.Pipe:return"pipe";case qn.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(_i,`ng:///${e.type.name}/\u0275fac.js`,e)}function WE(e){return ei().compileInjectableDeclaration(_i,`ng:///${e.type.name}/\u0275prov.js`,e)}function zE(e){return ei().compileInjectorDeclaration(_i,`ng:///${e.type.name}/\u0275inj.js`,e)}function KE(e){return ei().compileNgModuleDeclaration(_i,`ng:///${e.type.name}/\u0275mod.js`,e)}function GE(e){return ei().compilePipeDeclaration(_i,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{AbstractControl:()=>kt,AbstractControlDirective:()=>Je,AbstractFormGroupDirective:()=>Fn,COMPOSITION_BUFFER_MODE:()=>b,CheckboxControlValueAccessor:()=>d,CheckboxRequiredValidator:()=>f,ControlContainer:()=>yt,DefaultValueAccessor:()=>k,EmailValidator:()=>x,FormArray:()=>Lt,FormArrayName:()=>pi,FormBuilder:()=>Qt,FormControl:()=>Yt,FormControlDirective:()=>ki,FormControlName:()=>Gi,FormGroup:()=>un,FormGroupDirective:()=>Di,FormGroupName:()=>li,FormsModule:()=>Pt,MaxLengthValidator:()=>R,MaxValidator:()=>Nn,MinLengthValidator:()=>fe,MinValidator:()=>$i,NG_ASYNC_VALIDATORS:()=>ae,NG_VALIDATORS:()=>U,NG_VALUE_ACCESSOR:()=>T,NgControl:()=>mt,NgControlStatus:()=>L,NgControlStatusGroup:()=>re,NgForm:()=>On,NgModel:()=>Vn,NgModelGroup:()=>Yn,NgSelectOption:()=>Qi,NumberValueAccessor:()=>ai,PatternValidator:()=>V,RadioControlValueAccessor:()=>$n,RangeValueAccessor:()=>fi,ReactiveFormsModule:()=>xt,RequiredValidator:()=>Y,SelectControlValueAccessor:()=>Li,SelectMultipleControlValueAccessor:()=>vi,VERSION:()=>an,Validators:()=>me,\u0275InternalFormsSharedModule:()=>Et,\u0275NgNoValidate:()=>hi,\u0275NgSelectMultipleOption:()=>br});var i=l(5e3),u=l(9808),m=l(188),c=l(4128),s=l(4004);let _=(()=>{class F{constructor(I,Z){this._renderer=I,this._elementRef=Z,this.onChange=Qe=>{},this.onTouched=()=>{}}setProperty(I,Z){this._renderer.setProperty(this._elementRef.nativeElement,I,Z)}registerOnTouched(I){this.onTouched=I}registerOnChange(I){this.onChange=I}setDisabledState(I){this.setProperty("disabled",I)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F}),F})(),D=(()=>{class F extends _{}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const T=new i.InjectionToken("NgValueAccessor"),S={provide:T,useExisting:(0,i.forwardRef)(()=>d),multi:!0};let d=(()=>{class F extends D{writeValue(I){this.setProperty("checked",I)}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(I,Z){1&I&&i.\u0275\u0275listener("change",function(At){return Z.onChange(At.target.checked)})("blur",function(){return Z.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([S]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const A={provide:T,useExisting:(0,i.forwardRef)(()=>k),multi:!0},b=new i.InjectionToken("CompositionEventMode");let k=(()=>{class F extends _{constructor(I,Z,Qe){super(I,Z),this._compositionMode=Qe,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function M(){const F=(0,u.\u0275getDOM)()?(0,u.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(F.toLowerCase())}())}writeValue(I){this.setProperty("value",null==I?"":I)}_handleInput(I){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(I)}_compositionStart(){this._composing=!0}_compositionEnd(I){this._composing=!1,this._compositionMode&&this.onChange(I)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(b,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,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(I,Z){1&I&&i.\u0275\u0275listener("input",function(At){return Z._handleInput(At.target.value)})("blur",function(){return Z.onTouched()})("compositionstart",function(){return Z._compositionStart()})("compositionend",function(At){return Z._compositionEnd(At.target.value)})},features:[i.\u0275\u0275ProvidersFeature([A]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function $(F){return null==F||0===F.length}function pe(F){return null!=F&&"number"==typeof F.length}const U=new i.InjectionToken("NgValidators"),ae=new i.InjectionToken("NgAsyncValidators"),Se=/^(?=.{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 me{static min(P){return be(P)}static max(P){return se(P)}static required(P){return Me(P)}static requiredTrue(P){return Le(P)}static email(P){return qe(P)}static minLength(P){return at(P)}static maxLength(P){return te(P)}static pattern(P){return Fe(P)}static nullValidator(P){return null}static compose(P){return Ce(P)}static composeAsync(P){return ct(P)}}function be(F){return P=>{if($(P.value)||$(F))return null;const I=parseFloat(P.value);return!isNaN(I)&&I<F?{min:{min:F,actual:P.value}}:null}}function se(F){return P=>{if($(P.value)||$(F))return null;const I=parseFloat(P.value);return!isNaN(I)&&I>F?{max:{max:F,actual:P.value}}:null}}function Me(F){return $(F.value)?{required:!0}:null}function Le(F){return!0===F.value?null:{required:!0}}function qe(F){return $(F.value)||Se.test(F.value)?null:{email:!0}}function at(F){return P=>$(P.value)||!pe(P.value)?null:P.value.length<F?{minlength:{requiredLength:F,actualLength:P.value.length}}:null}function te(F){return P=>pe(P.value)&&P.value.length>F?{maxlength:{requiredLength:F,actualLength:P.value.length}}:null}function Fe(F){if(!F)return X;let P,I;return"string"==typeof F?(I="","^"!==F.charAt(0)&&(I+="^"),I+=F,"$"!==F.charAt(F.length-1)&&(I+="$"),P=new RegExp(I)):(I=F.toString(),P=F),Z=>{if($(Z.value))return null;const Qe=Z.value;return P.test(Qe)?null:{pattern:{requiredPattern:I,actualValue:Qe}}}}function X(F){return null}function le(F){return null!=F}function Ae(F){const P=(0,i.\u0275isPromise)(F)?(0,m.D)(F):F;return(0,i.\u0275isObservable)(P),P}function ne(F){let P={};return F.forEach(I=>{P=null!=I?Object.assign(Object.assign({},P),I):P}),0===Object.keys(P).length?null:P}function Ke(F,P){return P.map(I=>I(F))}function tt(F){return F.map(P=>function _e(F){return!F.validate}(P)?P:I=>P.validate(I))}function Ce(F){if(!F)return null;const P=F.filter(le);return 0==P.length?null:function(I){return ne(Ke(I,P))}}function He(F){return null!=F?Ce(tt(F)):null}function ct(F){if(!F)return null;const P=F.filter(le);return 0==P.length?null:function(I){const Z=Ke(I,P).map(Ae);return(0,c.D)(Z).pipe((0,s.U)(ne))}}function bt(F){return null!=F?ct(tt(F)):null}function Be(F,P){return null===F?[P]:Array.isArray(F)?[...F,P]:[F,P]}function Xe(F){return F._rawValidators}function J(F){return F._rawAsyncValidators}function ge(F){return F?Array.isArray(F)?F:[F]:[]}function Ie(F,P){return Array.isArray(F)?F.includes(P):F===P}function Re(F,P){const I=ge(P);return ge(F).forEach(Qe=>{Ie(I,Qe)||I.push(Qe)}),I}function ye(F,P){return ge(P).filter(I=>!Ie(F,I))}class Je{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(P){this._rawValidators=P||[],this._composedValidatorFn=He(this._rawValidators)}_setAsyncValidators(P){this._rawAsyncValidators=P||[],this._composedAsyncValidatorFn=bt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(P){this._onDestroyCallbacks.push(P)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(P=>P()),this._onDestroyCallbacks=[]}reset(P){this.control&&this.control.reset(P)}hasError(P,I){return!!this.control&&this.control.hasError(P,I)}getError(P,I){return this.control?this.control.getError(P,I):null}}class mt extends Je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yt extends Je{get formDirective(){return null}get path(){return null}}class It{constructor(P){this._cd=P}is(P){var I,Z,Qe;return"submitted"===P?!!(null===(I=this._cd)||void 0===I?void 0:I.submitted):!!(null===(Qe=null===(Z=this._cd)||void 0===Z?void 0:Z.control)||void 0===Qe?void 0:Qe[P])}}let L=(()=>{class F extends It{constructor(I){super(I)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(mt,2))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(I,Z){2&I&&i.\u0275\u0275classProp("ng-untouched",Z.is("untouched"))("ng-touched",Z.is("touched"))("ng-pristine",Z.is("pristine"))("ng-dirty",Z.is("dirty"))("ng-valid",Z.is("valid"))("ng-invalid",Z.is("invalid"))("ng-pending",Z.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})(),re=(()=>{class F extends It{constructor(I){super(I)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(yt,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(I,Z){2&I&&i.\u0275\u0275classProp("ng-untouched",Z.is("untouched"))("ng-touched",Z.is("touched"))("ng-pristine",Z.is("pristine"))("ng-dirty",Z.is("dirty"))("ng-valid",Z.is("valid"))("ng-invalid",Z.is("invalid"))("ng-pending",Z.is("pending"))("ng-submitted",Z.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();function $t(F,P){return[...P.path,F]}function Tt(F,P){de(F,P),P.valueAccessor.writeValue(F.value),function N(F,P){P.valueAccessor.registerOnChange(I=>{F._pendingValue=I,F._pendingChange=!0,F._pendingDirty=!0,"change"===F.updateOn&&q(F,P)})}(F,P),function E(F,P){const I=(Z,Qe)=>{P.valueAccessor.writeValue(Z),Qe&&P.viewToModelUpdate(Z)};F.registerOnChange(I),P._registerOnDestroy(()=>{F._unregisterOnChange(I)})}(F,P),function O(F,P){P.valueAccessor.registerOnTouched(()=>{F._pendingTouched=!0,"blur"===F.updateOn&&F._pendingChange&&q(F,P),"submit"!==F.updateOn&&F.markAsTouched()})}(F,P),function tn(F,P){if(P.valueAccessor.setDisabledState){const I=Z=>{P.valueAccessor.setDisabledState(Z)};F.registerOnDisabledChange(I),P._registerOnDestroy(()=>{F._unregisterOnDisabledChange(I)})}}(F,P)}function ln(F,P,I=!0){const Z=()=>{};P.valueAccessor&&(P.valueAccessor.registerOnChange(Z),P.valueAccessor.registerOnTouched(Z)),Q(F,P),F&&(P._invokeOnDestroyCallbacks(),F._registerOnCollectionChange(()=>{}))}function Kt(F,P){F.forEach(I=>{I.registerOnValidatorChange&&I.registerOnValidatorChange(P)})}function de(F,P){const I=Xe(F);null!==P.validator?F.setValidators(Be(I,P.validator)):"function"==typeof I&&F.setValidators([I]);const Z=J(F);null!==P.asyncValidator?F.setAsyncValidators(Be(Z,P.asyncValidator)):"function"==typeof Z&&F.setAsyncValidators([Z]);const Qe=()=>F.updateValueAndValidity();Kt(P._rawValidators,Qe),Kt(P._rawAsyncValidators,Qe)}function Q(F,P){let I=!1;if(null!==F){if(null!==P.validator){const Qe=Xe(F);if(Array.isArray(Qe)&&Qe.length>0){const At=Qe.filter(hn=>hn!==P.validator);At.length!==Qe.length&&(I=!0,F.setValidators(At))}}if(null!==P.asyncValidator){const Qe=J(F);if(Array.isArray(Qe)&&Qe.length>0){const At=Qe.filter(hn=>hn!==P.asyncValidator);At.length!==Qe.length&&(I=!0,F.setAsyncValidators(At))}}}const Z=()=>{};return Kt(P._rawValidators,Z),Kt(P._rawAsyncValidators,Z),I}function q(F,P){F._pendingDirty&&F.markAsDirty(),F.setValue(F._pendingValue,{emitModelToViewChange:!1}),P.viewToModelUpdate(F._pendingValue),F._pendingChange=!1}function j(F,P){de(F,P)}function Ht(F,P){if(!F.hasOwnProperty("model"))return!1;const I=F.model;return!!I.isFirstChange()||!Object.is(P,I.currentValue)}function Ue(F,P){F._syncPendingControls(),P.forEach(I=>{const Z=I.control;"submit"===Z.updateOn&&Z._pendingChange&&(I.viewToModelUpdate(Z._pendingValue),Z._pendingChange=!1)})}function he(F,P){if(!P)return null;let I,Z,Qe;return Array.isArray(P),P.forEach(At=>{At.constructor===k?I=At:function je(F){return Object.getPrototypeOf(F.constructor)===D}(At)?Z=At:Qe=At}),Qe||Z||I||null}function $e(F,P){const I=F.indexOf(P);I>-1&&F.splice(I,1)}const Rt="VALID",nn="INVALID",gn="PENDING",Rn="DISABLED";function Gn(F){return(H(F)?F.validators:F)||null}function wn(F){return Array.isArray(F)?He(F):F||null}function Bn(F,P){return(H(P)?P.asyncValidators:F)||null}function In(F){return Array.isArray(F)?bt(F):F||null}function H(F){return null!=F&&!Array.isArray(F)&&"object"==typeof F}const Pe=F=>F instanceof Yt,W=F=>F instanceof un,xe=F=>F instanceof Lt;function et(F){return Pe(F)?F.value:F.getRawValue()}function lt(F,P){const I=W(F),Z=F.controls;if(!(I?Object.keys(Z):Z).length)throw new i.\u0275RuntimeError(1e3,"");if(!Z[P])throw new i.\u0275RuntimeError(1001,"")}function wt(F,P){W(F),F._forEachChild((Z,Qe)=>{if(void 0===P[Qe])throw new i.\u0275RuntimeError(1002,"")})}class kt{constructor(P,I){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=P,this._rawAsyncValidators=I,this._composedValidatorFn=wn(this._rawValidators),this._composedAsyncValidatorFn=In(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(P){this._rawValidators=this._composedValidatorFn=P}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(P){this._rawAsyncValidators=this._composedAsyncValidatorFn=P}get parent(){return this._parent}get valid(){return this.status===Rt}get invalid(){return this.status===nn}get pending(){return this.status==gn}get disabled(){return this.status===Rn}get enabled(){return this.status!==Rn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(P){this._rawValidators=P,this._composedValidatorFn=wn(P)}setAsyncValidators(P){this._rawAsyncValidators=P,this._composedAsyncValidatorFn=In(P)}addValidators(P){this.setValidators(Re(P,this._rawValidators))}addAsyncValidators(P){this.setAsyncValidators(Re(P,this._rawAsyncValidators))}removeValidators(P){this.setValidators(ye(P,this._rawValidators))}removeAsyncValidators(P){this.setAsyncValidators(ye(P,this._rawAsyncValidators))}hasValidator(P){return Ie(this._rawValidators,P)}hasAsyncValidator(P){return Ie(this._rawAsyncValidators,P)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(P={}){this.touched=!0,this._parent&&!P.onlySelf&&this._parent.markAsTouched(P)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(P=>P.markAllAsTouched())}markAsUntouched(P={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(I=>{I.markAsUntouched({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}markAsDirty(P={}){this.pristine=!1,this._parent&&!P.onlySelf&&this._parent.markAsDirty(P)}markAsPristine(P={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(I=>{I.markAsPristine({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}markAsPending(P={}){this.status=gn,!1!==P.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!P.onlySelf&&this._parent.markAsPending(P)}disable(P={}){const I=this._parentMarkedDirty(P.onlySelf);this.status=Rn,this.errors=null,this._forEachChild(Z=>{Z.disable(Object.assign(Object.assign({},P),{onlySelf:!0}))}),this._updateValue(),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},P),{skipPristineCheck:I})),this._onDisabledChange.forEach(Z=>Z(!0))}enable(P={}){const I=this._parentMarkedDirty(P.onlySelf);this.status=Rt,this._forEachChild(Z=>{Z.enable(Object.assign(Object.assign({},P),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},P),{skipPristineCheck:I})),this._onDisabledChange.forEach(Z=>Z(!1))}_updateAncestors(P){this._parent&&!P.onlySelf&&(this._parent.updateValueAndValidity(P),P.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(P){this._parent=P}updateValueAndValidity(P={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Rt||this.status===gn)&&this._runAsyncValidator(P.emitEvent)),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!P.onlySelf&&this._parent.updateValueAndValidity(P)}_updateTreeValidity(P={emitEvent:!0}){this._forEachChild(I=>I._updateTreeValidity(P)),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Rn:Rt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(P){if(this.asyncValidator){this.status=gn,this._hasOwnPendingAsyncValidator=!0;const I=Ae(this.asyncValidator(this));this._asyncValidationSubscription=I.subscribe(Z=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Z,{emitEvent:P})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(P,I={}){this.errors=P,this._updateControlsErrors(!1!==I.emitEvent)}get(P){return function si(F,P,I){if(null==P||(Array.isArray(P)||(P=P.split(I)),Array.isArray(P)&&0===P.length))return null;let Z=F;return P.forEach(Qe=>{Z=W(Z)?Z.controls.hasOwnProperty(Qe)?Z.controls[Qe]:null:xe(Z)&&Z.at(Qe)||null}),Z}(this,P,".")}getError(P,I){const Z=I?this.get(I):this;return Z&&Z.errors?Z.errors[P]:null}hasError(P,I){return!!this.getError(P,I)}get root(){let P=this;for(;P._parent;)P=P._parent;return P}_updateControlsErrors(P){this.status=this._calculateStatus(),P&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(P)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Rn:this.errors?nn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gn)?gn:this._anyControlsHaveStatus(nn)?nn:Rt}_anyControlsHaveStatus(P){return this._anyControls(I=>I.status===P)}_anyControlsDirty(){return this._anyControls(P=>P.dirty)}_anyControlsTouched(){return this._anyControls(P=>P.touched)}_updatePristine(P={}){this.pristine=!this._anyControlsDirty(),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}_updateTouched(P={}){this.touched=this._anyControlsTouched(),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}_isBoxedValue(P){return"object"==typeof P&&null!==P&&2===Object.keys(P).length&&"value"in P&&"disabled"in P}_registerOnCollectionChange(P){this._onCollectionChange=P}_setUpdateStrategy(P){H(P)&&null!=P.updateOn&&(this._updateOn=P.updateOn)}_parentMarkedDirty(P){return!P&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Yt extends kt{constructor(P=null,I,Z){super(Gn(I),Bn(Z,I)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(P),this._setUpdateStrategy(I),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),H(I)&&I.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(P)?P.value:P)}setValue(P,I={}){this.value=this._pendingValue=P,this._onChange.length&&!1!==I.emitModelToViewChange&&this._onChange.forEach(Z=>Z(this.value,!1!==I.emitViewToModelChange)),this.updateValueAndValidity(I)}patchValue(P,I={}){this.setValue(P,I)}reset(P=this.defaultValue,I={}){this._applyFormState(P),this.markAsPristine(I),this.markAsUntouched(I),this.setValue(this.value,I),this._pendingChange=!1}_updateValue(){}_anyControls(P){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(P){this._onChange.push(P)}_unregisterOnChange(P){$e(this._onChange,P)}registerOnDisabledChange(P){this._onDisabledChange.push(P)}_unregisterOnDisabledChange(P){$e(this._onDisabledChange,P)}_forEachChild(P){}_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(P){this._isBoxedValue(P)?(this.value=this._pendingValue=P.value,P.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=P}}class un extends kt{constructor(P,I,Z){super(Gn(I),Bn(Z,I)),this.controls=P,this._initObservables(),this._setUpdateStrategy(I),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(P,I){return this.controls[P]?this.controls[P]:(this.controls[P]=I,I.setParent(this),I._registerOnCollectionChange(this._onCollectionChange),I)}addControl(P,I,Z={}){this.registerControl(P,I),this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}removeControl(P,I={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),delete this.controls[P],this.updateValueAndValidity({emitEvent:I.emitEvent}),this._onCollectionChange()}setControl(P,I,Z={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),delete this.controls[P],I&&this.registerControl(P,I),this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}contains(P){return this.controls.hasOwnProperty(P)&&this.controls[P].enabled}setValue(P,I={}){wt(this,P),Object.keys(P).forEach(Z=>{lt(this,Z),this.controls[Z].setValue(P[Z],{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I)}patchValue(P,I={}){null!=P&&(Object.keys(P).forEach(Z=>{this.controls[Z]&&this.controls[Z].patchValue(P[Z],{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I))}reset(P={},I={}){this._forEachChild((Z,Qe)=>{Z.reset(P[Qe],{onlySelf:!0,emitEvent:I.emitEvent})}),this._updatePristine(I),this._updateTouched(I),this.updateValueAndValidity(I)}getRawValue(){return this._reduceChildren({},(P,I,Z)=>(P[Z]=et(I),P))}_syncPendingControls(){let P=this._reduceChildren(!1,(I,Z)=>!!Z._syncPendingControls()||I);return P&&this.updateValueAndValidity({onlySelf:!0}),P}_forEachChild(P){Object.keys(this.controls).forEach(I=>{const Z=this.controls[I];Z&&P(Z,I)})}_setUpControls(){this._forEachChild(P=>{P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(P){for(const I of Object.keys(this.controls)){const Z=this.controls[I];if(this.contains(I)&&P(Z))return!0}return!1}_reduceValue(){return this._reduceChildren({},(P,I,Z)=>((I.enabled||this.disabled)&&(P[Z]=I.value),P))}_reduceChildren(P,I){let Z=P;return this._forEachChild((Qe,At)=>{Z=I(Z,Qe,At)}),Z}_allControlsDisabled(){for(const P of Object.keys(this.controls))if(this.controls[P].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Lt extends kt{constructor(P,I,Z){super(Gn(I),Bn(Z,I)),this.controls=P,this._initObservables(),this._setUpdateStrategy(I),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(P){return this.controls[P]}push(P,I={}){this.controls.push(P),this._registerControl(P),this.updateValueAndValidity({emitEvent:I.emitEvent}),this._onCollectionChange()}insert(P,I,Z={}){this.controls.splice(P,0,I),this._registerControl(I),this.updateValueAndValidity({emitEvent:Z.emitEvent})}removeAt(P,I={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),this.controls.splice(P,1),this.updateValueAndValidity({emitEvent:I.emitEvent})}setControl(P,I,Z={}){this.controls[P]&&this.controls[P]._registerOnCollectionChange(()=>{}),this.controls.splice(P,1),I&&(this.controls.splice(P,0,I),this._registerControl(I)),this.updateValueAndValidity({emitEvent:Z.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(P,I={}){wt(this,P),P.forEach((Z,Qe)=>{lt(this,Qe),this.at(Qe).setValue(Z,{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I)}patchValue(P,I={}){null!=P&&(P.forEach((Z,Qe)=>{this.at(Qe)&&this.at(Qe).patchValue(Z,{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I))}reset(P=[],I={}){this._forEachChild((Z,Qe)=>{Z.reset(P[Qe],{onlySelf:!0,emitEvent:I.emitEvent})}),this._updatePristine(I),this._updateTouched(I),this.updateValueAndValidity(I)}getRawValue(){return this.controls.map(P=>et(P))}clear(P={}){this.controls.length<1||(this._forEachChild(I=>I._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:P.emitEvent}))}_syncPendingControls(){let P=this.controls.reduce((I,Z)=>!!Z._syncPendingControls()||I,!1);return P&&this.updateValueAndValidity({onlySelf:!0}),P}_forEachChild(P){this.controls.forEach((I,Z)=>{P(I,Z)})}_updateValue(){this.value=this.controls.filter(P=>P.enabled||this.disabled).map(P=>P.value)}_anyControls(P){return this.controls.some(I=>I.enabled&&P(I))}_setUpControls(){this._forEachChild(P=>this._registerControl(P))}_allControlsDisabled(){for(const P of this.controls)if(P.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(P){P.setParent(this),P._registerOnCollectionChange(this._onCollectionChange)}}const bn={provide:yt,useExisting:(0,i.forwardRef)(()=>On)},rn=(()=>Promise.resolve(null))();let On=(()=>{class F extends yt{constructor(I,Z){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.EventEmitter,this.form=new un({},He(I),bt(Z))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(I){rn.then(()=>{const Z=this._findContainer(I.path);I.control=Z.registerControl(I.name,I.control),Tt(I.control,I),I.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(I)})}getControl(I){return this.form.get(I.path)}removeControl(I){rn.then(()=>{const Z=this._findContainer(I.path);Z&&Z.removeControl(I.name),$e(this._directives,I)})}addFormGroup(I){rn.then(()=>{const Z=this._findContainer(I.path),Qe=new un({});j(Qe,I),Z.registerControl(I.name,Qe),Qe.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(I){rn.then(()=>{const Z=this._findContainer(I.path);Z&&Z.removeControl(I.name)})}getFormGroup(I){return this.form.get(I.path)}updateModel(I,Z){rn.then(()=>{this.form.get(I.path).setValue(Z)})}setValue(I){this.control.setValue(I)}onSubmit(I){return this.submitted=!0,Ue(this.form,this._directives),this.ngSubmit.emit(I),!1}onReset(){this.resetForm()}resetForm(I){this.form.reset(I),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(I){return I.pop(),I.length?this.form.get(I):this.form}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(ae,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(I,Z){1&I&&i.\u0275\u0275listener("submit",function(At){return Z.onSubmit(At)})("reset",function(){return Z.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([bn]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),Fn=(()=>{class F extends yt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $t(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275InheritDefinitionFeature]}),F})();const sn={provide:yt,useExisting:(0,i.forwardRef)(()=>Yn)};let Yn=(()=>{class F extends Fn{constructor(I,Z,Qe){super(),this._parent=I,this._setValidators(Z),this._setAsyncValidators(Qe)}_checkParentType(){}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(yt,5),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(ae,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.\u0275\u0275ProvidersFeature([sn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const ri={provide:mt,useExisting:(0,i.forwardRef)(()=>Vn)},jn=(()=>Promise.resolve(null))();let Vn=(()=>{class F extends mt{constructor(I,Z,Qe,At,hn){super(),this._changeDetectorRef=hn,this.control=new Yt,this._registered=!1,this.update=new i.EventEmitter,this._parent=I,this._setValidators(Z),this._setAsyncValidators(Qe),this.valueAccessor=he(0,At)}ngOnChanges(I){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in I&&this._updateDisabled(I),Ht(I,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$t(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(I){this.viewModel=I,this.update.emit(I)}_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(){Tt(this.control,this),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(I){jn.then(()=>{var Z;this.control.setValue(I,{emitViewToModelChange:!1}),null===(Z=this._changeDetectorRef)||void 0===Z||Z.markForCheck()})}_updateDisabled(I){const Z=I.isDisabled.currentValue,Qe=""===Z||Z&&"false"!==Z;jn.then(()=>{var At;Qe&&!this.control.disabled?this.control.disable():!Qe&&this.control.disabled&&this.control.enable(),null===(At=this._changeDetectorRef)||void 0===At||At.markForCheck()})}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(yt,9),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(ae,10),i.\u0275\u0275directiveInject(T,10),i.\u0275\u0275directiveInject(i.ChangeDetectorRef,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.\u0275\u0275ProvidersFeature([ri]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})(),hi=(()=>{class F{}return F.\u0275fac=function(I){return new(I||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),F})();const yi={provide:T,useExisting:(0,i.forwardRef)(()=>ai),multi:!0};let ai=(()=>{class F extends D{writeValue(I){this.setProperty("value",null==I?"":I)}registerOnChange(I){this.onChange=Z=>{I(""==Z?null:parseFloat(Z))}}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(I,Z){1&I&&i.\u0275\u0275listener("input",function(At){return Z.onChange(At.target.value)})("blur",function(){return Z.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([yi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const kn={provide:T,useExisting:(0,i.forwardRef)(()=>$n),multi:!0};let Ki=(()=>{class F{}return F.\u0275fac=function(I){return new(I||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({}),F})(),ir=(()=>{class F{constructor(){this._accessors=[]}add(I,Z){this._accessors.push([I,Z])}remove(I){for(let Z=this._accessors.length-1;Z>=0;--Z)if(this._accessors[Z][1]===I)return void this._accessors.splice(Z,1)}select(I){this._accessors.forEach(Z=>{this._isSameGroup(Z,I)&&Z[1]!==I&&Z[1].fireUncheck(I.value)})}_isSameGroup(I,Z){return!!I[0].control&&I[0]._parent===Z._control._parent&&I[1].name===Z.name}}return F.\u0275fac=function(I){return new(I||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Ki}),F})(),$n=(()=>{class F extends D{constructor(I,Z,Qe,At){super(I,Z),this._registry=Qe,this._injector=At,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(mt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(I){this._state=I===this.value,this.setProperty("checked",this._state)}registerOnChange(I){this._fn=I,this.onChange=()=>{I(this.value),this._registry.select(this)}}fireUncheck(I){this.writeValue(I)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(ir),i.\u0275\u0275directiveInject(i.Injector))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(I,Z){1&I&&i.\u0275\u0275listener("change",function(){return Z.onChange()})("blur",function(){return Z.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([kn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Hn={provide:T,useExisting:(0,i.forwardRef)(()=>fi),multi:!0};let fi=(()=>{class F extends D{writeValue(I){this.setProperty("value",parseFloat(I))}registerOnChange(I){this.onChange=Z=>{I(""==Z?null:parseFloat(Z))}}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(I,Z){1&I&&i.\u0275\u0275listener("change",function(At){return Z.onChange(At.target.value)})("input",function(At){return Z.onChange(At.target.value)})("blur",function(){return Z.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Hn]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Fi=new i.InjectionToken("NgModelWithFormControlWarning"),wr={provide:mt,useExisting:(0,i.forwardRef)(()=>ki)};let ki=(()=>{class F extends mt{constructor(I,Z,Qe,At){super(),this._ngModelWarningConfig=At,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(I),this._setAsyncValidators(Z),this.valueAccessor=he(0,Qe)}set isDisabled(I){}ngOnChanges(I){if(this._isControlChanged(I)){const Z=I.form.previousValue;Z&&ln(Z,this,!1),Tt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ht(I,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ln(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(I){this.viewModel=I,this.update.emit(I)}_isControlChanged(I){return I.hasOwnProperty("form")}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(ae,10),i.\u0275\u0275directiveInject(T,10),i.\u0275\u0275directiveInject(Fi,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([wr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const yr={provide:yt,useExisting:(0,i.forwardRef)(()=>Di)};let Di=(()=>{class F extends yt{constructor(I,Z){super(),this.validators=I,this.asyncValidators=Z,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(I),this._setAsyncValidators(Z)}ngOnChanges(I){this._checkFormPresent(),I.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Q(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(I){const Z=this.form.get(I.path);return Tt(Z,I),Z.updateValueAndValidity({emitEvent:!1}),this.directives.push(I),Z}getControl(I){return this.form.get(I.path)}removeControl(I){ln(I.control||null,I,!1),$e(this.directives,I)}addFormGroup(I){this._setUpFormContainer(I)}removeFormGroup(I){this._cleanUpFormContainer(I)}getFormGroup(I){return this.form.get(I.path)}addFormArray(I){this._setUpFormContainer(I)}removeFormArray(I){this._cleanUpFormContainer(I)}getFormArray(I){return this.form.get(I.path)}updateModel(I,Z){this.form.get(I.path).setValue(Z)}onSubmit(I){return this.submitted=!0,Ue(this.form,this.directives),this.ngSubmit.emit(I),!1}onReset(){this.resetForm()}resetForm(I){this.form.reset(I),this.submitted=!1}_updateDomValue(){this.directives.forEach(I=>{const Z=I.control,Qe=this.form.get(I.path);Z!==Qe&&(ln(Z||null,I),Pe(Qe)&&(Tt(Qe,I),I.control=Qe))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(I){const Z=this.form.get(I.path);j(Z,I),Z.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(I){if(this.form){const Z=this.form.get(I.path);Z&&function Ne(F,P){return Q(F,P)}(Z,I)&&Z.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){de(this.form,this),this._oldForm&&Q(this._oldForm,this)}_checkFormPresent(){}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(ae,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroup",""]],hostBindings:function(I,Z){1&I&&i.\u0275\u0275listener("submit",function(At){return Z.onSubmit(At)})("reset",function(){return Z.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([yr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Ni={provide:yt,useExisting:(0,i.forwardRef)(()=>li)};let li=(()=>{class F extends Fn{constructor(I,Z,Qe){super(),this._parent=I,this._setValidators(Z),this._setAsyncValidators(Qe)}_checkParentType(){vr(this._parent)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(yt,13),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(ae,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.\u0275\u0275ProvidersFeature([Ni]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const rr={provide:yt,useExisting:(0,i.forwardRef)(()=>pi)};let pi=(()=>{class F extends yt{constructor(I,Z,Qe){super(),this._parent=I,this._setValidators(Z),this._setAsyncValidators(Qe)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return $t(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){vr(this._parent)}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(yt,13),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(ae,10))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([rr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();function vr(F){return!(F instanceof li||F instanceof Di||F instanceof pi)}const or={provide:mt,useExisting:(0,i.forwardRef)(()=>Gi)};let Gi=(()=>{class F extends mt{constructor(I,Z,Qe,At,hn){super(),this._ngModelWarningConfig=hn,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=I,this._setValidators(Z),this._setAsyncValidators(Qe),this.valueAccessor=he(0,At)}set isDisabled(I){}ngOnChanges(I){this._added||this._setUpControl(),Ht(I,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(I){this.viewModel=I,this.update.emit(I)}get path(){return $t(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(yt,13),i.\u0275\u0275directiveInject(U,10),i.\u0275\u0275directiveInject(ae,10),i.\u0275\u0275directiveInject(T,10),i.\u0275\u0275directiveInject(Fi,8))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([or]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),F})();const Ti={provide:T,useExisting:(0,i.forwardRef)(()=>Li),multi:!0};function Mi(F,P){return null==F?`${P}`:(P&&"object"==typeof P&&(P="Object"),`${F}: ${P}`.slice(0,50))}let Li=(()=>{class F extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(I){this._compareWith=I}writeValue(I){this.value=I;const Qe=Mi(this._getOptionId(I),I);this.setProperty("value",Qe)}registerOnChange(I){this.onChange=Z=>{this.value=this._getOptionValue(Z),I(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(I){for(const Z of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Z),I))return Z;return null}_getOptionValue(I){const Z=function sr(F){return F.split(":")[0]}(I);return this._optionMap.has(Z)?this._optionMap.get(Z):I}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(I,Z){1&I&&i.\u0275\u0275listener("change",function(At){return Z.onChange(At.target.value)})("blur",function(){return Z.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Ti]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),Qi=(()=>{class F{constructor(I,Z,Qe){this._element=I,this._renderer=Z,this._select=Qe,this._select&&(this.id=this._select._registerOption())}set ngValue(I){null!=this._select&&(this._select._optionMap.set(this.id,I),this._setElementValue(Mi(this.id,I)),this._select.writeValue(this._select.value))}set value(I){this._setElementValue(I),this._select&&this._select.writeValue(this._select.value)}_setElementValue(I){this._renderer.setProperty(this._element.nativeElement,"value",I)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Li,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();const Jn={provide:T,useExisting:(0,i.forwardRef)(()=>vi),multi:!0};function wi(F,P){return null==F?`${P}`:("string"==typeof P&&(P=`'${P}'`),P&&"object"==typeof P&&(P="Object"),`${F}: ${P}`.slice(0,50))}let vi=(()=>{class F extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(I){this._compareWith=I}writeValue(I){let Z;if(this.value=I,Array.isArray(I)){const Qe=I.map(At=>this._getOptionId(At));Z=(At,hn)=>{At._setSelected(Qe.indexOf(hn.toString())>-1)}}else Z=(Qe,At)=>{Qe._setSelected(!1)};this._optionMap.forEach(Z)}registerOnChange(I){this.onChange=Z=>{const Qe=[],At=Z.selectedOptions;if(void 0!==At){const hn=At;for(let Sn=0;Sn<hn.length;Sn++){const Ci=this._getOptionValue(hn[Sn].value);Qe.push(Ci)}}else{const hn=Z.options;for(let Sn=0;Sn<hn.length;Sn++){const bi=hn[Sn];if(bi.selected){const Ci=this._getOptionValue(bi.value);Qe.push(Ci)}}}this.value=Qe,I(Qe)}}_registerOption(I){const Z=(this._idCounter++).toString();return this._optionMap.set(Z,I),Z}_getOptionId(I){for(const Z of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Z)._value,I))return Z;return null}_getOptionValue(I){const Z=function mi(F){return F.split(":")[0]}(I);return this._optionMap.has(Z)?this._optionMap.get(Z)._value:I}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(I,Z){1&I&&i.\u0275\u0275listener("change",function(At){return Z.onChange(At.target)})("blur",function(){return Z.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Jn]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),br=(()=>{class F{constructor(I,Z,Qe){this._element=I,this._renderer=Z,this._select=Qe,this._select&&(this.id=this._select._registerOption(this))}set ngValue(I){null!=this._select&&(this._value=I,this._setElementValue(wi(this.id,I)),this._select.writeValue(this._select.value))}set value(I){this._select?(this._value=I,this._setElementValue(wi(this.id,I)),this._select.writeValue(this._select.value)):this._setElementValue(I)}_setElementValue(I){this._renderer.setProperty(this._element.nativeElement,"value",I)}_setSelected(I){this._renderer.setProperty(this._element.nativeElement,"selected",I)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(I){return new(I||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(vi,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();function Zi(F){return"number"==typeof F?F:parseInt(F,10)}function Yi(F){return"number"==typeof F?F:parseFloat(F)}let oi=(()=>{class F{constructor(){this._validator=X}ngOnChanges(I){if(this.inputName in I){const Z=this.normalizeInput(I[this.inputName].currentValue);this._enabled=this.enabled(Z),this._validator=this._enabled?this.createValidator(Z):X,this._onChange&&this._onChange()}}validate(I){return this._validator(I)}registerOnValidatorChange(I){this._onChange=I}enabled(I){return null!=I}}return F.\u0275fac=function(I){return new(I||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,features:[i.\u0275\u0275NgOnChangesFeature]}),F})();const ji={provide:U,useExisting:(0,i.forwardRef)(()=>Nn),multi:!0};let Nn=(()=>{class F extends oi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=I=>Yi(I),this.createValidator=I=>se(I)}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(I,Z){2&I&&i.\u0275\u0275attribute("max",Z._enabled?Z.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([ji]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Vi={provide:U,useExisting:(0,i.forwardRef)(()=>$i),multi:!0};let $i=(()=>{class F extends oi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=I=>Yi(I),this.createValidator=I=>be(I)}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(I,Z){2&I&&i.\u0275\u0275attribute("min",Z._enabled?Z.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([Vi]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const Ii={provide:U,useExisting:(0,i.forwardRef)(()=>Y),multi:!0},Cr={provide:U,useExisting:(0,i.forwardRef)(()=>f),multi:!0};let Y=(()=>{class F extends oi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=I=>function Si(F){return null!=F&&!1!==F&&"false"!=`${F}`}(I),this.createValidator=I=>Me}enabled(I){return I}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(I,Z){2&I&&i.\u0275\u0275attribute("required",Z._enabled?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([Ii]),i.\u0275\u0275InheritDefinitionFeature]}),F})(),f=(()=>{class F extends Y{constructor(){super(...arguments),this.createValidator=I=>Le}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(I,Z){2&I&&i.\u0275\u0275attribute("required",Z._enabled?"":null)},features:[i.\u0275\u0275ProvidersFeature([Cr]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const p={provide:U,useExisting:(0,i.forwardRef)(()=>x),multi:!0};let x=(()=>{class F extends oi{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=I=>""===I||!0===I||"true"===I,this.createValidator=I=>qe}enabled(I){return I}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.\u0275\u0275ProvidersFeature([p]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const G={provide:U,useExisting:(0,i.forwardRef)(()=>fe),multi:!0};let fe=(()=>{class F extends oi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=I=>Zi(I),this.createValidator=I=>at(I)}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(I,Z){2&I&&i.\u0275\u0275attribute("minlength",Z._enabled?Z.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([G]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const y={provide:U,useExisting:(0,i.forwardRef)(()=>R),multi:!0};let R=(()=>{class F extends oi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=I=>Zi(I),this.createValidator=I=>te(I)}}return F.\u0275fac=function(){let P;return function(Z){return(P||(P=i.\u0275\u0275getInheritedFactory(F)))(Z||F)}}(),F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(I,Z){2&I&&i.\u0275\u0275attribute("maxlength",Z._enabled?Z.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([y]),i.\u0275\u0275InheritDefinitionFeature]}),F})();const C={provide:U,useExisting:(0,i.forwardRef)(()=>V),multi:!0};let V=(()=>{class F{constructor(){this._validator=X}ngOnChanges(I){"pattern"in I&&(this._createValidator(),this._onChange&&this._onChange())}validate(I){return this._validator(I)}registerOnValidatorChange(I){this._onChange=I}_createValidator(){this._validator=Fe(this.pattern)}}return F.\u0275fac=function(I){return new(I||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(I,Z){2&I&&i.\u0275\u0275attribute("pattern",Z.pattern?Z.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([C]),i.\u0275\u0275NgOnChangesFeature]}),F})(),Et=(()=>{class F{}return F.\u0275fac=function(I){return new(I||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ki]]}),F})(),Pt=(()=>{class F{}return F.\u0275fac=function(I){return new(I||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[Et]}),F})(),xt=(()=>{class F{static withConfig(I){return{ngModule:F,providers:[{provide:Fi,useValue:I.warnOnNgModelWithFormControl}]}}}return F.\u0275fac=function(I){return new(I||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({imports:[Et]}),F})(),Qt=(()=>{class F{group(I,Z=null){const Qe=this._reduceControls(I);let Sn,At=null,hn=null;return null!=Z&&(function Vt(F){return void 0!==F.asyncValidators||void 0!==F.validators||void 0!==F.updateOn}(Z)?(At=null!=Z.validators?Z.validators:null,hn=null!=Z.asyncValidators?Z.asyncValidators:null,Sn=null!=Z.updateOn?Z.updateOn:void 0):(At=null!=Z.validator?Z.validator:null,hn=null!=Z.asyncValidator?Z.asyncValidator:null)),new un(Qe,{asyncValidators:hn,updateOn:Sn,validators:At})}control(I,Z,Qe){return new Yt(I,Z,Qe)}array(I,Z,Qe){const At=I.map(hn=>this._createControl(hn));return new Lt(At,Z,Qe)}_reduceControls(I){const Z={};return Object.keys(I).forEach(Qe=>{Z[Qe]=this._createControl(I[Qe])}),Z}_createControl(I){return Pe(I)||W(I)||xe(I)?I:Array.isArray(I)?this.control(I[0],I.length>1?I[1]:null,I.length>2?I[2]:null):this.control(I)}}return F.\u0275fac=function(I){return new(I||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:xt}),F})();const an=new i.Version("13.2.1")},7423:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MatAnchor:()=>M,MatButton:()=>A,MatButtonModule:()=>b});var i=l(5e3),u=l(508),m=l(6360),c=l(5664);const s=["mat-button",""],_=["*"],S=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],d=(0,u.mixinColor)((0,u.mixinDisabled)((0,u.mixinDisableRipple)(class{constructor(k){this._elementRef=k}})));let A=(()=>{class k extends d{constructor(pe,U,ae){super(pe),this._focusMonitor=U,this._animationMode=ae,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Se of S)this._hasHostAttributes(Se)&&this._getHostElement().classList.add(Se);pe.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(pe,U){pe?this._focusMonitor.focusVia(this._getHostElement(),pe,U):this._getHostElement().focus(U)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...pe){return pe.some(U=>this._getHostElement().hasAttribute(U))}}return k.\u0275fac=function(pe){return new(pe||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(c.tE),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,8))},k.\u0275cmp=i.\u0275\u0275defineComponent({type:k,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(pe,U){if(1&pe&&i.\u0275\u0275viewQuery(u.MatRipple,5),2&pe){let ae;i.\u0275\u0275queryRefresh(ae=i.\u0275\u0275loadQuery())&&(U.ripple=ae.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(pe,U){2&pe&&(i.\u0275\u0275attribute("disabled",U.disabled||null),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===U._animationMode)("mat-button-disabled",U.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:_,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(pe,U){1&pe&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"span",1),i.\u0275\u0275element(3,"span",2)),2&pe&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",U.isRoundButton||U.isIconButton),i.\u0275\u0275property("matRippleDisabled",U._isRippleDisabled())("matRippleCentered",U.isIconButton)("matRippleTrigger",U._getHostElement()))},directives:[u.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),M=(()=>{class k extends A{constructor(pe,U,ae,Se){super(U,pe,ae),this._ngZone=Se,this._haltDisabledEvents=me=>{this.disabled&&(me.preventDefault(),me.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return k.\u0275fac=function(pe){return new(pe||k)(i.\u0275\u0275directiveInject(c.tE),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,8),i.\u0275\u0275directiveInject(i.NgZone,8))},k.\u0275cmp=i.\u0275\u0275defineComponent({type:k,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(pe,U){2&pe&&(i.\u0275\u0275attribute("tabindex",U.disabled?-1:U.tabIndex||0)("disabled",U.disabled||null)("aria-disabled",U.disabled.toString()),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===U._animationMode)("mat-button-disabled",U.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:_,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(pe,U){1&pe&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"span",1),i.\u0275\u0275element(3,"span",2)),2&pe&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",U.isRoundButton||U.isIconButton),i.\u0275\u0275property("matRippleDisabled",U._isRippleDisabled())("matRippleCentered",U.isIconButton)("matRippleTrigger",U._getHostElement()))},directives:[u.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),b=(()=>{class k{}return k.\u0275fac=function(pe){return new(pe||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.MatRippleModule,u.MatCommonModule],u.MatCommonModule]}),k})()},9417:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_CHIPS_DEFAULT_OPTIONS:()=>en,MAT_CHIP_AVATAR:()=>it,MAT_CHIP_REMOVE:()=>Ze,MAT_CHIP_TRAILING_ICON:()=>ht,MatChip:()=>Ft,MatChipAvatar:()=>Bt,MatChipInput:()=>Tt,MatChipList:()=>de,MatChipListChange:()=>tn,MatChipRemove:()=>pn,MatChipSelectionChange:()=>ve,MatChipTrailingIcon:()=>Jt,MatChipsModule:()=>N});var i=l(1159),u=l(5e3),m=l(508),c=l(3191),s=l(9808),_=l(6360),D=l(6758),T=l(6451),S=l(5698),d=l(2722),A=l(8675),M=l(925),b=l(5664),k=l(449),$=l(3075);l(1777);let He=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275dir=u.\u0275\u0275defineDirective({type:O}),O})();var Ee=l(226);const ie=["*"];class ve{constructor(q,E,j=!1){this.source=q,this.selected=E,this.isUserInput=j}}const Ze=new u.InjectionToken("MatChipRemove"),it=new u.InjectionToken("MatChipAvatar"),ht=new u.InjectionToken("MatChipTrailingIcon");class ft{constructor(q){this._elementRef=q}}const Dt=(0,m.mixinTabIndex)((0,m.mixinColor)((0,m.mixinDisableRipple)(ft),"primary"),-1);let Bt=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275dir=u.\u0275\u0275defineDirective({type:O,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[u.\u0275\u0275ProvidersFeature([{provide:it,useExisting:O}])]}),O})(),Jt=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275dir=u.\u0275\u0275defineDirective({type:O,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[u.\u0275\u0275ProvidersFeature([{provide:ht,useExisting:O}])]}),O})(),Ft=(()=>{class O extends Dt{constructor(E,j,Ne,st,Wt,Ht,je,Ue){super(E),this._ngZone=j,this._changeDetectorRef=Wt,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new D.x,this._onBlur=new D.x,this.selectionChange=new u.EventEmitter,this.destroyed=new u.EventEmitter,this.removed=new u.EventEmitter,this._addHostClassName(),this._chipRippleTarget=Ht.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new m.RippleRenderer(this,j,this._chipRippleTarget,Ne),this._chipRipple.setupTriggerEvents(E),this.rippleConfig=st||{},this._animationsDisabled="NoopAnimations"===je,this.tabIndex=null!=Ue&&parseInt(Ue)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(E){const j=(0,c.Ig)(E);j!==this._selected&&(this._selected=j,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(E){this._value=E}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(E){this._selectable=(0,c.Ig)(E)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(E){this._disabled=(0,c.Ig)(E)}get removable(){return this._removable}set removable(E){this._removable=(0,c.Ig)(E)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const E="mat-basic-chip",j=this._elementRef.nativeElement;j.hasAttribute(E)||j.tagName.toLowerCase()===E?j.classList.add(E):j.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(E=!1){return this._selected=!this.selected,this._dispatchSelectionChange(E),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(E){this.disabled&&E.preventDefault()}_handleKeydown(E){if(!this.disabled)switch(E.keyCode){case i.yY:case i.ZH:this.remove(),E.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),E.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(E=!1){this.selectionChange.emit({source:this,isUserInput:E,selected:this._selected})}}return O.\u0275fac=function(E){return new(E||O)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(M.t4),u.\u0275\u0275directiveInject(m.MAT_RIPPLE_GLOBAL_OPTIONS,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(s.DOCUMENT),u.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),u.\u0275\u0275injectAttribute("tabindex"))},O.\u0275dir=u.\u0275\u0275defineDirective({type:O,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(E,j,Ne){if(1&E&&(u.\u0275\u0275contentQuery(Ne,it,5),u.\u0275\u0275contentQuery(Ne,ht,5),u.\u0275\u0275contentQuery(Ne,Ze,5)),2&E){let st;u.\u0275\u0275queryRefresh(st=u.\u0275\u0275loadQuery())&&(j.avatar=st.first),u.\u0275\u0275queryRefresh(st=u.\u0275\u0275loadQuery())&&(j.trailingIcon=st.first),u.\u0275\u0275queryRefresh(st=u.\u0275\u0275loadQuery())&&(j.removeIcon=st.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(E,j){1&E&&u.\u0275\u0275listener("click",function(st){return j._handleClick(st)})("keydown",function(st){return j._handleKeydown(st)})("focus",function(){return j.focus()})("blur",function(){return j._blur()}),2&E&&(u.\u0275\u0275attribute("tabindex",j.disabled?null:j.tabIndex)("disabled",j.disabled||null)("aria-disabled",j.disabled.toString())("aria-selected",j.ariaSelected),u.\u0275\u0275classProp("mat-chip-selected",j.selected)("mat-chip-with-avatar",j.avatar)("mat-chip-with-trailing-icon",j.trailingIcon||j.removeIcon)("mat-chip-disabled",j.disabled)("_mat-animation-noopable",j._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[u.\u0275\u0275InheritDefinitionFeature]}),O})(),pn=(()=>{class O{constructor(E,j){this._parentChip=E,"BUTTON"===j.nativeElement.nodeName&&j.nativeElement.setAttribute("type","button")}_handleClick(E){const j=this._parentChip;j.removable&&!j.disabled&&j.remove(),E.stopPropagation()}}return O.\u0275fac=function(E){return new(E||O)(u.\u0275\u0275directiveInject(Ft),u.\u0275\u0275directiveInject(u.ElementRef))},O.\u0275dir=u.\u0275\u0275defineDirective({type:O,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(E,j){1&E&&u.\u0275\u0275listener("click",function(st){return j._handleClick(st)})},features:[u.\u0275\u0275ProvidersFeature([{provide:Ze,useExisting:O}])]}),O})();const en=new u.InjectionToken("mat-chips-default-options");let $t=0,Tt=(()=>{class O{constructor(E,j){this._elementRef=E,this._defaultOptions=j,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new u.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+$t++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(E){E&&(this._chipList=E,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(E){this._addOnBlur=(0,c.Ig)(E)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(E){this._disabled=(0,c.Ig)(E)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(E){if(E){if(E.keyCode===i.Mf&&!(0,i.Vb)(E,"shiftKey")&&this._chipList._allowFocusEscape(),E.keyCode===i.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void E.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(E)}_keyup(E){!this._focusLastChipOnBackspace&&E.keyCode===i.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,E.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(E){!this.inputElement.value&&!!E&&this._chipList._keydown(E),(!E||this._isSeparatorKey(E))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==E||E.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(E){this.inputElement.focus(E)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(E){return!(0,i.Vb)(E)&&new Set(this.separatorKeyCodes).has(E.keyCode)}}return O.\u0275fac=function(E){return new(E||O)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(en))},O.\u0275dir=u.\u0275\u0275defineDirective({type:O,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(E,j){1&E&&u.\u0275\u0275listener("keydown",function(st){return j._keydown(st)})("keyup",function(st){return j._keyup(st)})("blur",function(){return j._blur()})("focus",function(){return j._focus()})("input",function(){return j._onInput()}),2&E&&(u.\u0275\u0275hostProperty("id",j.id),u.\u0275\u0275attribute("disabled",j.disabled||null)("placeholder",j.placeholder||null)("aria-invalid",j._chipList&&j._chipList.ngControl?j._chipList.ngControl.invalid:null)("aria-required",j._chipList&&j._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[u.\u0275\u0275NgOnChangesFeature]}),O})();const ln=(0,m.mixinErrorState)(class{constructor(O,q,E,j){this._defaultErrorStateMatcher=O,this._parentForm=q,this._parentFormGroup=E,this.ngControl=j}});let Kt=0;class tn{constructor(q,E){this.source=q,this.value=E}}let de=(()=>{class O extends ln{constructor(E,j,Ne,st,Wt,Ht,je){super(Ht,st,Wt,je),this._elementRef=E,this._changeDetectorRef=j,this._dir=Ne,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new D.x,this._uid="mat-chip-list-"+Kt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ue,he)=>Ue===he,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new u.EventEmitter,this.valueChange=new u.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var E,j;return this.multiple?(null===(E=this._selectionModel)||void 0===E?void 0:E.selected)||[]:null===(j=this._selectionModel)||void 0===j?void 0:j.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(E){this._multiple=(0,c.Ig)(E),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(E){this._compareWith=E,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(E){this.writeValue(E),this._value=E}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var E,j,Ne,st;return null!==(st=null!==(E=this._required)&&void 0!==E?E:null===(Ne=null===(j=this.ngControl)||void 0===j?void 0:j.control)||void 0===Ne?void 0:Ne.hasValidator($.Validators.required))&&void 0!==st&&st}set required(E){this._required=(0,c.Ig)(E),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(E){this._placeholder=E,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(E){this._disabled=(0,c.Ig)(E),this._syncChipsState()}get selectable(){return this._selectable}set selectable(E){this._selectable=(0,c.Ig)(E),this.chips&&this.chips.forEach(j=>j.chipListSelectable=this._selectable)}set tabIndex(E){this._userTabIndex=E,this._tabIndex=E}get chipSelectionChanges(){return(0,T.T)(...this.chips.map(E=>E.selectionChange))}get chipFocusChanges(){return(0,T.T)(...this.chips.map(E=>E._onFocus))}get chipBlurChanges(){return(0,T.T)(...this.chips.map(E=>E._onBlur))}get chipRemoveChanges(){return(0,T.T)(...this.chips.map(E=>E.destroyed))}ngAfterContentInit(){this._keyManager=new b.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(E=>this._keyManager.withHorizontalOrientation(E)),this._keyManager.tabOut.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,A.O)(null),(0,d.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new k.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(E){this._chipInput=E,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",E.id)}setDescribedByIds(E){this._ariaDescribedby=E.join(" ")}writeValue(E){this.chips&&this._setSelectionByValue(E,!1)}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E,this.stateChanges.next()}onContainerClick(E){this._originatesFromChip(E)||this.focus()}focus(E){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(E),this.stateChanges.next()))}_focusInput(E){this._chipInput&&this._chipInput.focus(E)}_keydown(E){const j=E.target;j&&j.classList.contains("mat-chip")&&(this._keyManager.onKeydown(E),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const E=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(E)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(E){return E>=0&&E<this.chips.length}_setSelectionByValue(E,j=!0){if(this._clearSelection(),this.chips.forEach(Ne=>Ne.deselect()),Array.isArray(E))E.forEach(Ne=>this._selectValue(Ne,j)),this._sortValues();else{const Ne=this._selectValue(E,j);Ne&&j&&this._keyManager.setActiveItem(Ne)}}_selectValue(E,j=!0){const Ne=this.chips.find(st=>null!=st.value&&this._compareWith(st.value,E));return Ne&&(j?Ne.selectViaInteraction():Ne.select(),this._selectionModel.select(Ne)),Ne}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(E){this._selectionModel.clear(),this.chips.forEach(j=>{j!==E&&j.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(E=>{E.selected&&this._selectionModel.select(E)}),this.stateChanges.next())}_propagateChanges(E){let j=null;j=Array.isArray(this.selected)?this.selected.map(Ne=>Ne.value):this.selected?this.selected.value:E,this._value=j,this.change.emit(new tn(this,j)),this.valueChange.emit(j),this._onChange(j),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(E=>{E.source.selected?this._selectionModel.select(E.source):this._selectionModel.deselect(E.source),this.multiple||this.chips.forEach(j=>{!this._selectionModel.isSelected(j)&&j.selected&&j.deselect()}),E.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(E=>{let j=this.chips.toArray().indexOf(E.chip);this._isValidIndex(j)&&this._keyManager.updateActiveItem(j),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(E=>{const j=E.chip,Ne=this.chips.toArray().indexOf(E.chip);this._isValidIndex(Ne)&&j._hasFocus&&(this._lastDestroyedChipIndex=Ne)})}_originatesFromChip(E){let j=E.target;for(;j&&j!==this._elementRef.nativeElement;){if(j.classList.contains("mat-chip"))return!0;j=j.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(E=>E._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(E=>{E._chipListDisabled=this._disabled,E._chipListMultiple=this.multiple})}}return O.\u0275fac=function(E){return new(E||O)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(Ee.Is,8),u.\u0275\u0275directiveInject($.NgForm,8),u.\u0275\u0275directiveInject($.FormGroupDirective,8),u.\u0275\u0275directiveInject(m.ErrorStateMatcher),u.\u0275\u0275directiveInject($.NgControl,10))},O.\u0275cmp=u.\u0275\u0275defineComponent({type:O,selectors:[["mat-chip-list"]],contentQueries:function(E,j,Ne){if(1&E&&u.\u0275\u0275contentQuery(Ne,Ft,5),2&E){let st;u.\u0275\u0275queryRefresh(st=u.\u0275\u0275loadQuery())&&(j.chips=st)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(E,j){1&E&&u.\u0275\u0275listener("focus",function(){return j.focus()})("blur",function(){return j._blur()})("keydown",function(st){return j._keydown(st)}),2&E&&(u.\u0275\u0275hostProperty("id",j._uid),u.\u0275\u0275attribute("tabindex",j.disabled?null:j._tabIndex)("aria-describedby",j._ariaDescribedby||null)("aria-required",j.role?j.required:null)("aria-disabled",j.disabled.toString())("aria-invalid",j.errorState)("aria-multiselectable",j.multiple)("role",j.role)("aria-orientation",j.ariaOrientation),u.\u0275\u0275classProp("mat-chip-list-disabled",j.disabled)("mat-chip-list-invalid",j.errorState)("mat-chip-list-required",j.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[u.\u0275\u0275ProvidersFeature([{provide:He,useExisting:O}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ie,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(E,j){1&E&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275projection(1),u.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),O})(),N=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=u.\u0275\u0275defineNgModule({type:O}),O.\u0275inj=u.\u0275\u0275defineInjector({providers:[m.ErrorStateMatcher,{provide:en,useValue:{separatorKeyCodes:[i.K5]}}],imports:[[m.MatCommonModule]]}),O})()},508:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{AnimationCurves:()=>Se,AnimationDurations:()=>me,DateAdapter:()=>tt,ErrorStateMatcher:()=>Ie,MATERIAL_SANITY_CHECKS:()=>se,MAT_DATE_FORMATS:()=>Ce,MAT_DATE_LOCALE:()=>Ke,MAT_DATE_LOCALE_FACTORY:()=>_e,MAT_NATIVE_DATE_FORMATS:()=>Be,MAT_OPTGROUP:()=>Jt,MAT_OPTION_PARENT_COMPONENT:()=>ht,MAT_RIPPLE_GLOBAL_OPTIONS:()=>Ee,MatCommonModule:()=>Me,MatLine:()=>Re,MatLineModule:()=>mt,MatNativeDateModule:()=>J,MatOptgroup:()=>Ft,MatOption:()=>Tt,MatOptionModule:()=>tn,MatOptionSelectionChange:()=>en,MatPseudoCheckbox:()=>Ze,MatPseudoCheckboxModule:()=>it,MatRipple:()=>ie,MatRippleModule:()=>ve,NativeDateAdapter:()=>bt,NativeDateModule:()=>Xe,RippleRef:()=>yt,RippleRenderer:()=>Oe,ShowOnDirtyErrorStateMatcher:()=>ge,VERSION:()=>ae,_MatOptgroupBase:()=>Bt,_MatOptionBase:()=>$t,_countGroupLabelsBeforeOption:()=>ln,_getOptionScrollPosition:()=>Kt,defaultRippleAnimationConfig:()=>It,mixinColor:()=>Fe,mixinDisableRipple:()=>X,mixinDisabled:()=>te,mixinErrorState:()=>Ae,mixinInitialized:()=>ne,mixinTabIndex:()=>le,setLines:()=>ye});var i=l(5e3),u=l(226),c=l(9808),s=l(925),_=l(5664),D=l(3191),T=l(6758),S=l(9751),d=l(8675),A=l(6360),M=l(1159);const b=["*",[["mat-option"],["ng-container"]]],k=["*","mat-option, ng-container"];function $(de,Q){if(1&de&&i.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&de){const N=i.\u0275\u0275nextContext();i.\u0275\u0275property("state",N.selected?"checked":"unchecked")("disabled",N.disabled)}}function pe(de,Q){if(1&de&&(i.\u0275\u0275elementStart(0,"span",5),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&de){const N=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("(",N.group.label,")")}}const U=["*"],ae=new i.Version("13.2.1");let Se=(()=>{class de{}return de.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",de.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",de.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",de.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",de})(),me=(()=>{class de{}return de.COMPLEX="375ms",de.ENTERING="225ms",de.EXITING="195ms",de})();const se=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function be(){return!0}});let Me=(()=>{class de{constructor(N,O,q){this._sanityChecks=O,this._document=q,this._hasDoneGlobalChecks=!1,N._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(N){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[N])}}return de.\u0275fac=function(N){return new(N||de)(i.\u0275\u0275inject(_.qm),i.\u0275\u0275inject(se,8),i.\u0275\u0275inject(c.DOCUMENT))},de.\u0275mod=i.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.vT],u.vT]}),de})();function te(de){return class extends de{constructor(...Q){super(...Q),this._disabled=!1}get disabled(){return this._disabled}set disabled(Q){this._disabled=(0,D.Ig)(Q)}}}function Fe(de,Q){return class extends de{constructor(...N){super(...N),this.defaultColor=Q,this.color=Q}get color(){return this._color}set color(N){const O=N||this.defaultColor;O!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),O&&this._elementRef.nativeElement.classList.add(`mat-${O}`),this._color=O)}}}function X(de){return class extends de{constructor(...Q){super(...Q),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Q){this._disableRipple=(0,D.Ig)(Q)}}}function le(de,Q=0){return class extends de{constructor(...N){super(...N),this._tabIndex=Q,this.defaultTabIndex=Q}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(N){this._tabIndex=null!=N?(0,D.su)(N):this.defaultTabIndex}}}function Ae(de){return class extends de{constructor(...Q){super(...Q),this.stateChanges=new T.x,this.errorState=!1}updateErrorState(){const Q=this.errorState,E=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);E!==Q&&(this.errorState=E,this.stateChanges.next())}}}function ne(de){return class extends de{constructor(...Q){super(...Q),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new S.y(N=>{this._isInitialized?this._notifySubscriber(N):this._pendingSubscribers.push(N)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Q){Q.next(),Q.complete()}}}const Ke=new i.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:_e});function _e(){return(0,i.inject)(i.LOCALE_ID)}class tt{constructor(){this._localeChanges=new T.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Q){return this.isDateInstance(Q)&&this.isValid(Q)?Q:null}deserialize(Q){return null==Q||this.isDateInstance(Q)&&this.isValid(Q)?Q:this.invalid()}setLocale(Q){this.locale=Q,this._localeChanges.next()}compareDate(Q,N){return this.getYear(Q)-this.getYear(N)||this.getMonth(Q)-this.getMonth(N)||this.getDate(Q)-this.getDate(N)}sameDate(Q,N){if(Q&&N){let O=this.isValid(Q),q=this.isValid(N);return O&&q?!this.compareDate(Q,N):O==q}return Q==N}clampDate(Q,N,O){return N&&this.compareDate(Q,N)<0?N:O&&this.compareDate(Q,O)>0?O:Q}}const Ce=new i.InjectionToken("mat-date-formats"),He=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ct(de,Q){const N=Array(de);for(let O=0;O<de;O++)N[O]=Q(O);return N}let bt=(()=>{class de extends tt{constructor(N,O){super(),this.useUtcForDisplay=!1,super.setLocale(N)}getYear(N){return N.getFullYear()}getMonth(N){return N.getMonth()}getDate(N){return N.getDate()}getDayOfWeek(N){return N.getDay()}getMonthNames(N){const O=new Intl.DateTimeFormat(this.locale,{month:N,timeZone:"utc"});return ct(12,q=>this._format(O,new Date(2017,q,1)))}getDateNames(){const N=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ct(31,O=>this._format(N,new Date(2017,0,O+1)))}getDayOfWeekNames(N){const O=new Intl.DateTimeFormat(this.locale,{weekday:N,timeZone:"utc"});return ct(7,q=>this._format(O,new Date(2017,0,q+1)))}getYearName(N){const O=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(O,N)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(N){return this.getDate(this._createDateWithOverflow(this.getYear(N),this.getMonth(N)+1,0))}clone(N){return new Date(N.getTime())}createDate(N,O,q){let E=this._createDateWithOverflow(N,O,q);return E.getMonth(),E}today(){return new Date}parse(N){return"number"==typeof N?new Date(N):N?new Date(Date.parse(N)):null}format(N,O){if(!this.isValid(N))throw Error("NativeDateAdapter: Cannot format invalid date.");const q=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},O),{timeZone:"utc"}));return this._format(q,N)}addCalendarYears(N,O){return this.addCalendarMonths(N,12*O)}addCalendarMonths(N,O){let q=this._createDateWithOverflow(this.getYear(N),this.getMonth(N)+O,this.getDate(N));return this.getMonth(q)!=((this.getMonth(N)+O)%12+12)%12&&(q=this._createDateWithOverflow(this.getYear(q),this.getMonth(q),0)),q}addCalendarDays(N,O){return this._createDateWithOverflow(this.getYear(N),this.getMonth(N),this.getDate(N)+O)}toIso8601(N){return[N.getUTCFullYear(),this._2digit(N.getUTCMonth()+1),this._2digit(N.getUTCDate())].join("-")}deserialize(N){if("string"==typeof N){if(!N)return null;if(He.test(N)){let O=new Date(N);if(this.isValid(O))return O}}return super.deserialize(N)}isDateInstance(N){return N instanceof Date}isValid(N){return!isNaN(N.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(N,O,q){const E=new Date;return E.setFullYear(N,O,q),E.setHours(0,0,0,0),E}_2digit(N){return("00"+N).slice(-2)}_format(N,O){const q=new Date;return q.setUTCFullYear(O.getFullYear(),O.getMonth(),O.getDate()),q.setUTCHours(O.getHours(),O.getMinutes(),O.getSeconds(),O.getMilliseconds()),N.format(q)}}return de.\u0275fac=function(N){return new(N||de)(i.\u0275\u0275inject(Ke,8),i.\u0275\u0275inject(s.t4))},de.\u0275prov=i.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac}),de})();const Be={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Xe=(()=>{class de{}return de.\u0275fac=function(N){return new(N||de)},de.\u0275mod=i.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:tt,useClass:bt}],imports:[[s.ud]]}),de})(),J=(()=>{class de{}return de.\u0275fac=function(N){return new(N||de)},de.\u0275mod=i.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Ce,useValue:Be}],imports:[[Xe]]}),de})(),ge=(()=>{class de{isErrorState(N,O){return!!(N&&N.invalid&&(N.dirty||O&&O.submitted))}}return de.\u0275fac=function(N){return new(N||de)},de.\u0275prov=i.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac}),de})(),Ie=(()=>{class de{isErrorState(N,O){return!!(N&&N.invalid&&(N.touched||O&&O.submitted))}}return de.\u0275fac=function(N){return new(N||de)},de.\u0275prov=i.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac,providedIn:"root"}),de})(),Re=(()=>{class de{}return de.\u0275fac=function(N){return new(N||de)},de.\u0275dir=i.\u0275\u0275defineDirective({type:de,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),de})();function ye(de,Q,N="mat"){de.changes.pipe((0,d.O)(de)).subscribe(({length:O})=>{Je(Q,`${N}-2-line`,!1),Je(Q,`${N}-3-line`,!1),Je(Q,`${N}-multi-line`,!1),2===O||3===O?Je(Q,`${N}-${O}-line`,!0):O>3&&Je(Q,`${N}-multi-line`,!0)})}function Je(de,Q,N){de.nativeElement.classList.toggle(Q,N)}let mt=(()=>{class de{}return de.\u0275fac=function(N){return new(N||de)},de.\u0275mod=i.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Me],Me]}),de})();class yt{constructor(Q,N,O){this._renderer=Q,this.element=N,this.config=O,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const It={enterDuration:225,exitDuration:150},Ge=(0,s.i$)({passive:!0}),L=["mousedown","touchstart"],re=["mouseup","mouseleave","touchend","touchcancel"];class Oe{constructor(Q,N,O,q){this._target=Q,this._ngZone=N,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,q.isBrowser&&(this._containerElement=(0,D.fI)(O))}fadeInRipple(Q,N,O={}){const q=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),E=Object.assign(Object.assign({},It),O.animation);O.centered&&(Q=q.left+q.width/2,N=q.top+q.height/2);const j=O.radius||function we(de,Q,N){const O=Math.max(Math.abs(de-N.left),Math.abs(de-N.right)),q=Math.max(Math.abs(Q-N.top),Math.abs(Q-N.bottom));return Math.sqrt(O*O+q*q)}(Q,N,q),Ne=Q-q.left,st=N-q.top,Wt=E.enterDuration,Ht=document.createElement("div");Ht.classList.add("mat-ripple-element"),Ht.style.left=Ne-j+"px",Ht.style.top=st-j+"px",Ht.style.height=2*j+"px",Ht.style.width=2*j+"px",null!=O.color&&(Ht.style.backgroundColor=O.color),Ht.style.transitionDuration=`${Wt}ms`,this._containerElement.appendChild(Ht),function ue(de){window.getComputedStyle(de).getPropertyValue("opacity")}(Ht),Ht.style.transform="scale(1)";const je=new yt(this,Ht,O);return je.state=0,this._activeRipples.add(je),O.persistent||(this._mostRecentTransientRipple=je),this._runTimeoutOutsideZone(()=>{const Ue=je===this._mostRecentTransientRipple;je.state=1,!O.persistent&&(!Ue||!this._isPointerDown)&&je.fadeOut()},Wt),je}fadeOutRipple(Q){const N=this._activeRipples.delete(Q);if(Q===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!N)return;const O=Q.element,q=Object.assign(Object.assign({},It),Q.config.animation);O.style.transitionDuration=`${q.exitDuration}ms`,O.style.opacity="0",Q.state=2,this._runTimeoutOutsideZone(()=>{Q.state=3,O.remove()},q.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Q=>Q.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Q=>{Q.config.persistent||Q.fadeOut()})}setupTriggerEvents(Q){const N=(0,D.fI)(Q);!N||N===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=N,this._registerEvents(L))}handleEvent(Q){"mousedown"===Q.type?this._onMousedown(Q):"touchstart"===Q.type?this._onTouchStart(Q):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(re),this._pointerUpEventsRegistered=!0)}_onMousedown(Q){const N=(0,_.X6)(Q),O=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!N&&!O&&(this._isPointerDown=!0,this.fadeInRipple(Q.clientX,Q.clientY,this._target.rippleConfig))}_onTouchStart(Q){if(!this._target.rippleDisabled&&!(0,_.yG)(Q)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const N=Q.changedTouches;for(let O=0;O<N.length;O++)this.fadeInRipple(N[O].clientX,N[O].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Q=>{!Q.config.persistent&&(1===Q.state||Q.config.terminateOnPointerUp&&0===Q.state)&&Q.fadeOut()}))}_runTimeoutOutsideZone(Q,N=0){this._ngZone.runOutsideAngular(()=>setTimeout(Q,N))}_registerEvents(Q){this._ngZone.runOutsideAngular(()=>{Q.forEach(N=>{this._triggerElement.addEventListener(N,this,Ge)})})}_removeTriggerEvents(){this._triggerElement&&(L.forEach(Q=>{this._triggerElement.removeEventListener(Q,this,Ge)}),this._pointerUpEventsRegistered&&re.forEach(Q=>{this._triggerElement.removeEventListener(Q,this,Ge)}))}}const Ee=new i.InjectionToken("mat-ripple-global-options");let ie=(()=>{class de{constructor(N,O,q,E,j){this._elementRef=N,this._animationMode=j,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=E||{},this._rippleRenderer=new Oe(this,O,N,q)}get disabled(){return this._disabled}set disabled(N){N&&this.fadeOutAllNonPersistent(),this._disabled=N,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(N){this._trigger=N,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(N,O=0,q){return"number"==typeof N?this._rippleRenderer.fadeInRipple(N,O,Object.assign(Object.assign({},this.rippleConfig),q)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),N))}}return de.\u0275fac=function(N){return new(N||de)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(Ee,8),i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},de.\u0275dir=i.\u0275\u0275defineDirective({type:de,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(N,O){2&N&&i.\u0275\u0275classProp("mat-ripple-unbounded",O.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"]}),de})(),ve=(()=>{class de{}return de.\u0275fac=function(N){return new(N||de)},de.\u0275mod=i.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Me,s.ud],Me]}),de})(),Ze=(()=>{class de{constructor(N){this._animationMode=N,this.state="unchecked",this.disabled=!1}}return de.\u0275fac=function(N){return new(N||de)(i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},de.\u0275cmp=i.\u0275\u0275defineComponent({type:de,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(N,O){2&N&&i.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===O.state)("mat-pseudo-checkbox-checked","checked"===O.state)("mat-pseudo-checkbox-disabled",O.disabled)("_mat-animation-noopable","NoopAnimations"===O._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(N,O){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),de})(),it=(()=>{class de{}return de.\u0275fac=function(N){return new(N||de)},de.\u0275mod=i.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Me]]}),de})();const ht=new i.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),ft=te(class{});let Dt=0,Bt=(()=>{class de extends ft{constructor(N){var O;super(),this._labelId="mat-optgroup-label-"+Dt++,this._inert=null!==(O=null==N?void 0:N.inertGroups)&&void 0!==O&&O}}return de.\u0275fac=function(N){return new(N||de)(i.\u0275\u0275directiveInject(ht,8))},de.\u0275dir=i.\u0275\u0275defineDirective({type:de,inputs:{label:"label"},features:[i.\u0275\u0275InheritDefinitionFeature]}),de})();const Jt=new i.InjectionToken("MatOptgroup");let Ft=(()=>{class de extends Bt{}return de.\u0275fac=function(){let Q;return function(O){return(Q||(Q=i.\u0275\u0275getInheritedFactory(de)))(O||de)}}(),de.\u0275cmp=i.\u0275\u0275defineComponent({type:de,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(N,O){2&N&&(i.\u0275\u0275attribute("role",O._inert?null:"group")("aria-disabled",O._inert?null:O.disabled.toString())("aria-labelledby",O._inert?null:O._labelId),i.\u0275\u0275classProp("mat-optgroup-disabled",O.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[i.\u0275\u0275ProvidersFeature([{provide:Jt,useExisting:de}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:k,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(N,O){1&N&&(i.\u0275\u0275projectionDef(b),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275text(1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275projection(3,1)),2&N&&(i.\u0275\u0275property("id",O._labelId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",O.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),de})(),pn=0;class en{constructor(Q,N=!1){this.source=Q,this.isUserInput=N}}let $t=(()=>{class de{constructor(N,O,q,E){this._element=N,this._changeDetectorRef=O,this._parent=q,this.group=E,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+pn++,this.onSelectionChange=new i.EventEmitter,this._stateChanges=new T.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(N){this._disabled=(0,D.Ig)(N)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(N,O){const q=this._getHostElement();"function"==typeof q.focus&&q.focus(O)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(N){(N.keyCode===M.K5||N.keyCode===M.L_)&&!(0,M.Vb)(N)&&(this._selectViaInteraction(),N.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const N=this.viewValue;N!==this._mostRecentViewValue&&(this._mostRecentViewValue=N,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(N=!1){this.onSelectionChange.emit(new en(this,N))}}return de.\u0275fac=function(N){i.\u0275\u0275invalidFactory()},de.\u0275dir=i.\u0275\u0275defineDirective({type:de,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),de})(),Tt=(()=>{class de extends $t{constructor(N,O,q,E){super(N,O,q,E)}}return de.\u0275fac=function(N){return new(N||de)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(ht,8),i.\u0275\u0275directiveInject(Jt,8))},de.\u0275cmp=i.\u0275\u0275defineComponent({type:de,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(N,O){1&N&&i.\u0275\u0275listener("click",function(){return O._selectViaInteraction()})("keydown",function(E){return O._handleKeydown(E)}),2&N&&(i.\u0275\u0275hostProperty("id",O.id),i.\u0275\u0275attribute("tabindex",O._getTabIndex())("aria-selected",O._getAriaSelected())("aria-disabled",O.disabled.toString()),i.\u0275\u0275classProp("mat-selected",O.selected)("mat-option-multiple",O.multiple)("mat-active",O.active)("mat-option-disabled",O.disabled))},exportAs:["matOption"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:U,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(N,O){1&N&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,$,1,2,"mat-pseudo-checkbox",0),i.\u0275\u0275elementStart(1,"span",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,pe,2,1,"span",2),i.\u0275\u0275element(4,"div",3)),2&N&&(i.\u0275\u0275property("ngIf",O.multiple),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",O.group&&O.group._inert),i.\u0275\u0275advance(1),i.\u0275\u0275property("matRippleTrigger",O._getHostElement())("matRippleDisabled",O.disabled||O.disableRipple))},directives:[Ze,c.NgIf,ie],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),de})();function ln(de,Q,N){if(N.length){let O=Q.toArray(),q=N.toArray(),E=0;for(let j=0;j<de+1;j++)O[j].group&&O[j].group===q[E]&&E++;return E}return 0}function Kt(de,Q,N,O){return de<N?de:de+Q>N+O?Math.max(0,de-O+Q):N}let tn=(()=>{class de{}return de.\u0275fac=function(N){return new(N||de)},de.\u0275mod=i.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=i.\u0275\u0275defineInjector({imports:[[ve,c.CommonModule,Me,it]]}),de})()},8966:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_DIALOG_DATA:()=>Fe,MAT_DIALOG_DEFAULT_OPTIONS:()=>X,MAT_DIALOG_SCROLL_STRATEGY:()=>le,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>Ae,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ke,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ne,MatDialog:()=>tt,MatDialogActions:()=>Xe,MatDialogClose:()=>ct,MatDialogConfig:()=>me,MatDialogContainer:()=>Le,MatDialogContent:()=>Be,MatDialogModule:()=>ge,MatDialogRef:()=>at,MatDialogTitle:()=>bt,_MatDialogBase:()=>_e,_MatDialogContainerBase:()=>Me,_closeDialogVia:()=>te,matDialogAnimations:()=>be,throwMatDialogContentAlreadyAttachedError:()=>se});var i=l(1314),u=l(7429),m=l(5e3),c=l(508),s=l(226),_=l(6758),D=l(9770),T=l(6921),S=l(9646),d=l(9300),A=l(5698),M=l(8675),b=l(925),k=l(9808),$=l(1777),pe=l(5664),U=l(1159),ae=l(6360);function Se(Ie,Re){}class me{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const be={dialogContainer:(0,$.X$)("dialogContainer",[(0,$.SB)("void, exit",(0,$.oB)({opacity:0,transform:"scale(0.7)"})),(0,$.SB)("enter",(0,$.oB)({transform:"none"})),(0,$.eR)("* => enter",(0,$.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,$.oB)({transform:"none",opacity:1}))),(0,$.eR)("* => void, * => exit",(0,$.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,$.oB)({opacity:0})))])};function se(){throw Error("Attempting to attach dialog content after content is already attached")}let Me=(()=>{class Ie extends u.en{constructor(ye,Je,mt,yt,It,ut,Ge,L){super(),this._elementRef=ye,this._focusTrapFactory=Je,this._changeDetectorRef=mt,this._config=It,this._interactivityChecker=ut,this._ngZone=Ge,this._focusMonitor=L,this._animationStateChanged=new m.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=re=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(re)),this._ariaLabelledBy=It.ariaLabelledBy||null,this._document=yt}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(ye){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(ye)}attachTemplatePortal(ye){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(ye)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ye,Je){this._interactivityChecker.isFocusable(ye)||(ye.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{ye.addEventListener("blur",()=>ye.removeAttribute("tabindex")),ye.addEventListener("mousedown",()=>ye.removeAttribute("tabindex"))})),ye.focus(Je)}_focusByCssSelector(ye,Je){let mt=this._elementRef.nativeElement.querySelector(ye);mt&&this._forceFocus(mt,Je)}_trapFocus(){const ye=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ye.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Je=>{Je||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 ye=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&ye&&"function"==typeof ye.focus){const Je=(0,b.ht)(),mt=this._elementRef.nativeElement;(!Je||Je===this._document.body||Je===mt||mt.contains(Je))&&(this._focusMonitor?(this._focusMonitor.focusVia(ye,this._closeInteractionType),this._closeInteractionType=null):ye.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,b.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ye=this._elementRef.nativeElement,Je=(0,b.ht)();return ye===Je||ye.contains(Je)}}return Ie.\u0275fac=function(ye){return new(ye||Ie)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(pe.qV),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(k.DOCUMENT,8),m.\u0275\u0275directiveInject(me),m.\u0275\u0275directiveInject(pe.ic),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(pe.tE))},Ie.\u0275dir=m.\u0275\u0275defineDirective({type:Ie,viewQuery:function(ye,Je){if(1&ye&&m.\u0275\u0275viewQuery(u.Pl,7),2&ye){let mt;m.\u0275\u0275queryRefresh(mt=m.\u0275\u0275loadQuery())&&(Je._portalOutlet=mt.first)}},features:[m.\u0275\u0275InheritDefinitionFeature]}),Ie})(),Le=(()=>{class Ie extends Me{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:ye,totalTime:Je}){"enter"===ye?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Je})):"exit"===ye&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Je}))}_onAnimationStart({toState:ye,totalTime:Je}){"enter"===ye?this._animationStateChanged.next({state:"opening",totalTime:Je}):("exit"===ye||"void"===ye)&&this._animationStateChanged.next({state:"closing",totalTime:Je})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Ie.\u0275fac=function(){let Re;return function(Je){return(Re||(Re=m.\u0275\u0275getInheritedFactory(Ie)))(Je||Ie)}}(),Ie.\u0275cmp=m.\u0275\u0275defineComponent({type:Ie,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(ye,Je){1&ye&&m.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(yt){return Je._onAnimationStart(yt)})("@dialogContainer.done",function(yt){return Je._onAnimationDone(yt)}),2&ye&&(m.\u0275\u0275hostProperty("id",Je._id),m.\u0275\u0275attribute("role",Je._config.role)("aria-labelledby",Je._config.ariaLabel?null:Je._ariaLabelledBy)("aria-label",Je._config.ariaLabel)("aria-describedby",Je._config.ariaDescribedBy||null),m.\u0275\u0275syntheticHostProperty("@dialogContainer",Je._state))},features:[m.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ye,Je){1&ye&&m.\u0275\u0275template(0,Se,0,0,"ng-template",0)},directives:[u.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[be.dialogContainer]}}),Ie})(),qe=0;class at{constructor(Re,ye,Je="mat-dialog-"+qe++){this._overlayRef=Re,this._containerInstance=ye,this.id=Je,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new _.x,this._afterClosed=new _.x,this._beforeClosed=new _.x,this._state=0,ye._id=Je,ye._animationStateChanged.pipe((0,d.h)(mt=>"opened"===mt.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ye._animationStateChanged.pipe((0,d.h)(mt=>"closed"===mt.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Re.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Re.keydownEvents().pipe((0,d.h)(mt=>mt.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(mt))).subscribe(mt=>{mt.preventDefault(),te(this,"keyboard")}),Re.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():te(this,"mouse")})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,d.h)(ye=>"closing"===ye.state),(0,A.q)(1)).subscribe(ye=>{this._beforeClosed.next(Re),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ye.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Re){let ye=this._getPositionStrategy();return Re&&(Re.left||Re.right)?Re.left?ye.left(Re.left):ye.right(Re.right):ye.centerHorizontally(),Re&&(Re.top||Re.bottom)?Re.top?ye.top(Re.top):ye.bottom(Re.bottom):ye.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Re="",ye=""){return this._overlayRef.updateSize({width:Re,height:ye}),this._overlayRef.updatePosition(),this}addPanelClass(Re){return this._overlayRef.addPanelClass(Re),this}removePanelClass(Re){return this._overlayRef.removePanelClass(Re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function te(Ie,Re,ye){return void 0!==Ie._containerInstance&&(Ie._containerInstance._closeInteractionType=Re),Ie.close(ye)}const Fe=new m.InjectionToken("MatDialogData"),X=new m.InjectionToken("mat-dialog-default-options"),le=new m.InjectionToken("mat-dialog-scroll-strategy");function Ae(Ie){return()=>Ie.scrollStrategies.block()}function ne(Ie){return()=>Ie.scrollStrategies.block()}const Ke={provide:le,deps:[i.aV],useFactory:ne};let _e=(()=>{class Ie{constructor(ye,Je,mt,yt,It,ut,Ge,L,re,Oe){this._overlay=ye,this._injector=Je,this._defaultOptions=mt,this._parentDialog=yt,this._overlayContainer=It,this._dialogRefConstructor=Ge,this._dialogContainerType=L,this._dialogDataToken=re,this._animationMode=Oe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _.x,this._afterOpenedAtThisLevel=new _.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,D.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.O)(void 0))),this._scrollStrategy=ut}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ye=this._parentDialog;return ye?ye._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ye,Je){if(Je=function Ce(Ie,Re){return Object.assign(Object.assign({},Re),Ie)}(Je,this._defaultOptions||new me),Je.id&&this.getDialogById(Je.id),this._dialogAnimatingOpen)return this._lastDialogRef;const mt=this._createOverlay(Je),yt=this._attachDialogContainer(mt,Je);if("NoopAnimations"!==this._animationMode){const ut=yt._animationStateChanged.subscribe(Ge=>{"opening"===Ge.state&&(this._dialogAnimatingOpen=!0),"opened"===Ge.state&&(this._dialogAnimatingOpen=!1,ut.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new T.w0),this._animationStateSubscriptions.add(ut)}const It=this._attachDialogContent(ye,yt,mt,Je);return this._lastDialogRef=It,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(It),It.afterClosed().subscribe(()=>this._removeOpenDialog(It)),this.afterOpened.next(It),yt._initializeWithAttachedContent(),It}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ye){return this.openDialogs.find(Je=>Je.id===ye)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(ye){const Je=this._getOverlayConfig(ye);return this._overlay.create(Je)}_getOverlayConfig(ye){const Je=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:ye.scrollStrategy||this._scrollStrategy(),panelClass:ye.panelClass,hasBackdrop:ye.hasBackdrop,direction:ye.direction,minWidth:ye.minWidth,minHeight:ye.minHeight,maxWidth:ye.maxWidth,maxHeight:ye.maxHeight,disposeOnNavigation:ye.closeOnNavigation});return ye.backdropClass&&(Je.backdropClass=ye.backdropClass),Je}_attachDialogContainer(ye,Je){const yt=m.Injector.create({parent:Je&&Je.viewContainerRef&&Je.viewContainerRef.injector||this._injector,providers:[{provide:me,useValue:Je}]}),It=new u.C5(this._dialogContainerType,Je.viewContainerRef,yt,Je.componentFactoryResolver);return ye.attach(It).instance}_attachDialogContent(ye,Je,mt,yt){const It=new this._dialogRefConstructor(mt,Je,yt.id);if(ye instanceof m.TemplateRef)Je.attachTemplatePortal(new u.UE(ye,null,{$implicit:yt.data,dialogRef:It}));else{const ut=this._createInjector(yt,It,Je),Ge=Je.attachComponentPortal(new u.C5(ye,yt.viewContainerRef,ut));It.componentInstance=Ge.instance}return It.updateSize(yt.width,yt.height).updatePosition(yt.position),It}_createInjector(ye,Je,mt){const yt=ye&&ye.viewContainerRef&&ye.viewContainerRef.injector,It=[{provide:this._dialogContainerType,useValue:mt},{provide:this._dialogDataToken,useValue:ye.data},{provide:this._dialogRefConstructor,useValue:Je}];return ye.direction&&(!yt||!yt.get(s.Is,null,m.InjectFlags.Optional))&&It.push({provide:s.Is,useValue:{value:ye.direction,change:(0,S.of)()}}),m.Injector.create({parent:yt||this._injector,providers:It})}_removeOpenDialog(ye){const Je=this.openDialogs.indexOf(ye);Je>-1&&(this.openDialogs.splice(Je,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((mt,yt)=>{mt?yt.setAttribute("aria-hidden",mt):yt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ye=this._overlayContainer.getContainerElement();if(ye.parentElement){const Je=ye.parentElement.children;for(let mt=Je.length-1;mt>-1;mt--){let yt=Je[mt];yt!==ye&&"SCRIPT"!==yt.nodeName&&"STYLE"!==yt.nodeName&&!yt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(yt,yt.getAttribute("aria-hidden")),yt.setAttribute("aria-hidden","true"))}}}_closeDialogs(ye){let Je=ye.length;for(;Je--;)ye[Je].close()}}return Ie.\u0275fac=function(ye){m.\u0275\u0275invalidFactory()},Ie.\u0275dir=m.\u0275\u0275defineDirective({type:Ie}),Ie})(),tt=(()=>{class Ie extends _e{constructor(ye,Je,mt,yt,It,ut,Ge,L){super(ye,Je,yt,ut,Ge,It,at,Le,Fe,L)}}return Ie.\u0275fac=function(ye){return new(ye||Ie)(m.\u0275\u0275inject(i.aV),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(k.Location,8),m.\u0275\u0275inject(X,8),m.\u0275\u0275inject(le),m.\u0275\u0275inject(Ie,12),m.\u0275\u0275inject(i.Xj),m.\u0275\u0275inject(ae.ANIMATION_MODULE_TYPE,8))},Ie.\u0275prov=m.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac}),Ie})(),He=0,ct=(()=>{class Ie{constructor(ye,Je,mt){this.dialogRef=ye,this._elementRef=Je,this._dialog=mt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=J(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ye){const Je=ye._matDialogClose||ye._matDialogCloseResult;Je&&(this.dialogResult=Je.currentValue)}_onButtonClick(ye){te(this.dialogRef,0===ye.screenX&&0===ye.screenY?"keyboard":"mouse",this.dialogResult)}}return Ie.\u0275fac=function(ye){return new(ye||Ie)(m.\u0275\u0275directiveInject(at,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(tt))},Ie.\u0275dir=m.\u0275\u0275defineDirective({type:Ie,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ye,Je){1&ye&&m.\u0275\u0275listener("click",function(yt){return Je._onButtonClick(yt)}),2&ye&&m.\u0275\u0275attribute("aria-label",Je.ariaLabel||null)("type",Je.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[m.\u0275\u0275NgOnChangesFeature]}),Ie})(),bt=(()=>{class Ie{constructor(ye,Je,mt){this._dialogRef=ye,this._elementRef=Je,this._dialog=mt,this.id="mat-dialog-title-"+He++}ngOnInit(){this._dialogRef||(this._dialogRef=J(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const ye=this._dialogRef._containerInstance;ye&&!ye._ariaLabelledBy&&(ye._ariaLabelledBy=this.id)})}}return Ie.\u0275fac=function(ye){return new(ye||Ie)(m.\u0275\u0275directiveInject(at,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(tt))},Ie.\u0275dir=m.\u0275\u0275defineDirective({type:Ie,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(ye,Je){2&ye&&m.\u0275\u0275hostProperty("id",Je.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Ie})(),Be=(()=>{class Ie{}return Ie.\u0275fac=function(ye){return new(ye||Ie)},Ie.\u0275dir=m.\u0275\u0275defineDirective({type:Ie,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Ie})(),Xe=(()=>{class Ie{}return Ie.\u0275fac=function(ye){return new(ye||Ie)},Ie.\u0275dir=m.\u0275\u0275defineDirective({type:Ie,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Ie})();function J(Ie,Re){let ye=Ie.nativeElement.parentElement;for(;ye&&!ye.classList.contains("mat-dialog-container");)ye=ye.parentElement;return ye?Re.find(Je=>Je.id===ye.id):null}let ge=(()=>{class Ie{}return Ie.\u0275fac=function(ye){return new(ye||Ie)},Ie.\u0275mod=m.\u0275\u0275defineNgModule({type:Ie}),Ie.\u0275inj=m.\u0275\u0275defineInjector({providers:[tt,Ke],imports:[[i.U8,u.eL,c.MatCommonModule],c.MatCommonModule]}),Ie})()},5245:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ICON_REGISTRY_PROVIDER:()=>Fe,ICON_REGISTRY_PROVIDER_FACTORY:()=>te,MAT_ICON_LOCATION:()=>Ke,MAT_ICON_LOCATION_FACTORY:()=>_e,MatIcon:()=>ct,MatIconModule:()=>bt,MatIconRegistry:()=>at,getMatIconFailedToSanitizeLiteralError:()=>Le,getMatIconFailedToSanitizeUrlError:()=>Me,getMatIconNameNotFoundError:()=>be,getMatIconNoHttpProviderError:()=>se});var i=l(5e3),u=l(508),m=l(3191),c=l(9808),s=l(9646),_=l(2843),D=l(4128),T=l(6921),S=l(8505),d=l(4004),A=l(262),M=l(8746),b=l(3099),k=l(5698),$=l(520),pe=l(2313);const U=["*"];let ae;function me(Be){var Xe;return(null===(Xe=function Se(){if(void 0===ae&&(ae=null,"undefined"!=typeof window)){const Be=window;void 0!==Be.trustedTypes&&(ae=Be.trustedTypes.createPolicy("angular#components",{createHTML:Xe=>Xe}))}return ae}())||void 0===Xe?void 0:Xe.createHTML(Be))||Be}function be(Be){return Error(`Unable to find icon with the name "${Be}"`)}function se(){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.")}function Me(Be){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Be}".`)}function Le(Be){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Be}".`)}class qe{constructor(Xe,J,ge){this.url=Xe,this.svgText=J,this.options=ge}}let at=(()=>{class Be{constructor(J,ge,Ie,Re){this._httpClient=J,this._sanitizer=ge,this._errorHandler=Re,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",this._document=Ie}addSvgIcon(J,ge,Ie){return this.addSvgIconInNamespace("",J,ge,Ie)}addSvgIconLiteral(J,ge,Ie){return this.addSvgIconLiteralInNamespace("",J,ge,Ie)}addSvgIconInNamespace(J,ge,Ie,Re){return this._addSvgIconConfig(J,ge,new qe(Ie,null,Re))}addSvgIconResolver(J){return this._resolvers.push(J),this}addSvgIconLiteralInNamespace(J,ge,Ie,Re){const ye=this._sanitizer.sanitize(i.SecurityContext.HTML,Ie);if(!ye)throw Le(Ie);const Je=me(ye);return this._addSvgIconConfig(J,ge,new qe("",Je,Re))}addSvgIconSet(J,ge){return this.addSvgIconSetInNamespace("",J,ge)}addSvgIconSetLiteral(J,ge){return this.addSvgIconSetLiteralInNamespace("",J,ge)}addSvgIconSetInNamespace(J,ge,Ie){return this._addSvgIconSetConfig(J,new qe(ge,null,Ie))}addSvgIconSetLiteralInNamespace(J,ge,Ie){const Re=this._sanitizer.sanitize(i.SecurityContext.HTML,ge);if(!Re)throw Le(ge);const ye=me(Re);return this._addSvgIconSetConfig(J,new qe("",ye,Ie))}registerFontClassAlias(J,ge=J){return this._fontCssClassesByAlias.set(J,ge),this}classNameForFontAlias(J){return this._fontCssClassesByAlias.get(J)||J}setDefaultFontSetClass(J){return this._defaultFontSetClass=J,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(J){const ge=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,J);if(!ge)throw Me(J);const Ie=this._cachedIconsByUrl.get(ge);return Ie?(0,s.of)(X(Ie)):this._loadSvgIconFromConfig(new qe(J,null)).pipe((0,S.b)(Re=>this._cachedIconsByUrl.set(ge,Re)),(0,d.U)(Re=>X(Re)))}getNamedSvgIcon(J,ge=""){const Ie=le(ge,J);let Re=this._svgIconConfigs.get(Ie);if(Re)return this._getSvgFromConfig(Re);if(Re=this._getIconConfigFromResolvers(ge,J),Re)return this._svgIconConfigs.set(Ie,Re),this._getSvgFromConfig(Re);const ye=this._iconSetConfigs.get(ge);return ye?this._getSvgFromIconSetConfigs(J,ye):(0,_._)(be(Ie))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(J){return J.svgText?(0,s.of)(X(this._svgElementFromConfig(J))):this._loadSvgIconFromConfig(J).pipe((0,d.U)(ge=>X(ge)))}_getSvgFromIconSetConfigs(J,ge){const Ie=this._extractIconWithNameFromAnySet(J,ge);if(Ie)return(0,s.of)(Ie);const Re=ge.filter(ye=>!ye.svgText).map(ye=>this._loadSvgIconSetFromConfig(ye).pipe((0,A.K)(Je=>{const yt=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,ye.url)} failed: ${Je.message}`;return this._errorHandler.handleError(new Error(yt)),(0,s.of)(null)})));return(0,D.D)(Re).pipe((0,d.U)(()=>{const ye=this._extractIconWithNameFromAnySet(J,ge);if(!ye)throw be(J);return ye}))}_extractIconWithNameFromAnySet(J,ge){for(let Ie=ge.length-1;Ie>=0;Ie--){const Re=ge[Ie];if(Re.svgText&&Re.svgText.toString().indexOf(J)>-1){const ye=this._svgElementFromConfig(Re),Je=this._extractSvgIconFromSet(ye,J,Re.options);if(Je)return Je}}return null}_loadSvgIconFromConfig(J){return this._fetchIcon(J).pipe((0,S.b)(ge=>J.svgText=ge),(0,d.U)(()=>this._svgElementFromConfig(J)))}_loadSvgIconSetFromConfig(J){return J.svgText?(0,s.of)(null):this._fetchIcon(J).pipe((0,S.b)(ge=>J.svgText=ge))}_extractSvgIconFromSet(J,ge,Ie){const Re=J.querySelector(`[id="${ge}"]`);if(!Re)return null;const ye=Re.cloneNode(!0);if(ye.removeAttribute("id"),"svg"===ye.nodeName.toLowerCase())return this._setSvgAttributes(ye,Ie);if("symbol"===ye.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ye),Ie);const Je=this._svgElementFromString(me("<svg></svg>"));return Je.appendChild(ye),this._setSvgAttributes(Je,Ie)}_svgElementFromString(J){const ge=this._document.createElement("DIV");ge.innerHTML=J;const Ie=ge.querySelector("svg");if(!Ie)throw Error("<svg> tag not found");return Ie}_toSvgElement(J){const ge=this._svgElementFromString(me("<svg></svg>")),Ie=J.attributes;for(let Re=0;Re<Ie.length;Re++){const{name:ye,value:Je}=Ie[Re];"id"!==ye&&ge.setAttribute(ye,Je)}for(let Re=0;Re<J.childNodes.length;Re++)J.childNodes[Re].nodeType===this._document.ELEMENT_NODE&&ge.appendChild(J.childNodes[Re].cloneNode(!0));return ge}_setSvgAttributes(J,ge){return J.setAttribute("fit",""),J.setAttribute("height","100%"),J.setAttribute("width","100%"),J.setAttribute("preserveAspectRatio","xMidYMid meet"),J.setAttribute("focusable","false"),ge&&ge.viewBox&&J.setAttribute("viewBox",ge.viewBox),J}_fetchIcon(J){var ge;const{url:Ie,options:Re}=J,ye=null!==(ge=null==Re?void 0:Re.withCredentials)&&void 0!==ge&&ge;if(!this._httpClient)throw se();if(null==Ie)throw Error(`Cannot fetch icon from URL "${Ie}".`);const Je=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Ie);if(!Je)throw Me(Ie);const mt=this._inProgressUrlFetches.get(Je);if(mt)return mt;const yt=this._httpClient.get(Je,{responseType:"text",withCredentials:ye}).pipe((0,d.U)(It=>me(It)),(0,M.x)(()=>this._inProgressUrlFetches.delete(Je)),(0,b.B)());return this._inProgressUrlFetches.set(Je,yt),yt}_addSvgIconConfig(J,ge,Ie){return this._svgIconConfigs.set(le(J,ge),Ie),this}_addSvgIconSetConfig(J,ge){const Ie=this._iconSetConfigs.get(J);return Ie?Ie.push(ge):this._iconSetConfigs.set(J,[ge]),this}_svgElementFromConfig(J){if(!J.svgElement){const ge=this._svgElementFromString(J.svgText);this._setSvgAttributes(ge,J.options),J.svgElement=ge}return J.svgElement}_getIconConfigFromResolvers(J,ge){for(let Ie=0;Ie<this._resolvers.length;Ie++){const Re=this._resolvers[Ie](ge,J);if(Re)return Ae(Re)?new qe(Re.url,null,Re.options):new qe(Re,null)}}}return Be.\u0275fac=function(J){return new(J||Be)(i.\u0275\u0275inject($.HttpClient,8),i.\u0275\u0275inject(pe.DomSanitizer),i.\u0275\u0275inject(c.DOCUMENT,8),i.\u0275\u0275inject(i.ErrorHandler))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();function te(Be,Xe,J,ge,Ie){return Be||new at(Xe,J,Ie,ge)}const Fe={provide:at,deps:[[new i.Optional,new i.SkipSelf,at],[new i.Optional,$.HttpClient],pe.DomSanitizer,i.ErrorHandler,[new i.Optional,c.DOCUMENT]],useFactory:te};function X(Be){return Be.cloneNode(!0)}function le(Be,Xe){return Be+":"+Xe}function Ae(Be){return!(!Be.url||!Be.options)}const ne=(0,u.mixinColor)(class{constructor(Be){this._elementRef=Be}}),Ke=new i.InjectionToken("mat-icon-location",{providedIn:"root",factory:_e});function _e(){const Be=(0,i.inject)(c.DOCUMENT),Xe=Be?Be.location:null;return{getPathname:()=>Xe?Xe.pathname+Xe.search:""}}const tt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ce=tt.map(Be=>`[${Be}]`).join(", "),He=/^url\(['"]?#(.*?)['"]?\)$/;let ct=(()=>{class Be extends ne{constructor(J,ge,Ie,Re,ye){super(J),this._iconRegistry=ge,this._location=Re,this._errorHandler=ye,this._inline=!1,this._currentIconFetch=T.w0.EMPTY,Ie||J.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(J){this._inline=(0,m.Ig)(J)}get svgIcon(){return this._svgIcon}set svgIcon(J){J!==this._svgIcon&&(J?this._updateSvgIcon(J):this._svgIcon&&this._clearSvgElement(),this._svgIcon=J)}get fontSet(){return this._fontSet}set fontSet(J){const ge=this._cleanupFontValue(J);ge!==this._fontSet&&(this._fontSet=ge,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(J){const ge=this._cleanupFontValue(J);ge!==this._fontIcon&&(this._fontIcon=ge,this._updateFontIconClasses())}_splitIconName(J){if(!J)return["",""];const ge=J.split(":");switch(ge.length){case 1:return["",ge[0]];case 2:return ge;default:throw Error(`Invalid icon name: "${J}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const J=this._elementsWithExternalReferences;if(J&&J.size){const ge=this._location.getPathname();ge!==this._previousPath&&(this._previousPath=ge,this._prependPathToReferences(ge))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(J){this._clearSvgElement();const ge=J.querySelectorAll("style");for(let Re=0;Re<ge.length;Re++)ge[Re].textContent+=" ";const Ie=this._location.getPathname();this._previousPath=Ie,this._cacheChildrenWithExternalReferences(J),this._prependPathToReferences(Ie),this._elementRef.nativeElement.appendChild(J)}_clearSvgElement(){const J=this._elementRef.nativeElement;let ge=J.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();ge--;){const Ie=J.childNodes[ge];(1!==Ie.nodeType||"svg"===Ie.nodeName.toLowerCase())&&Ie.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const J=this._elementRef.nativeElement,ge=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();ge!=this._previousFontSetClass&&(this._previousFontSetClass&&J.classList.remove(this._previousFontSetClass),ge&&J.classList.add(ge),this._previousFontSetClass=ge),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&J.classList.remove(this._previousFontIconClass),this.fontIcon&&J.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(J){return"string"==typeof J?J.trim().split(" ")[0]:J}_prependPathToReferences(J){const ge=this._elementsWithExternalReferences;ge&&ge.forEach((Ie,Re)=>{Ie.forEach(ye=>{Re.setAttribute(ye.name,`url('${J}#${ye.value}')`)})})}_cacheChildrenWithExternalReferences(J){const ge=J.querySelectorAll(Ce),Ie=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Re=0;Re<ge.length;Re++)tt.forEach(ye=>{const Je=ge[Re],mt=Je.getAttribute(ye),yt=mt?mt.match(He):null;if(yt){let It=Ie.get(Je);It||(It=[],Ie.set(Je,It)),It.push({name:ye,value:yt[1]})}})}_updateSvgIcon(J){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),J){const[ge,Ie]=this._splitIconName(J);ge&&(this._svgNamespace=ge),Ie&&(this._svgName=Ie),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ie,ge).pipe((0,k.q)(1)).subscribe(Re=>this._setSvgElement(Re),Re=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${ge}:${Ie}! ${Re.message}`))})}}}return Be.\u0275fac=function(J){return new(J||Be)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(at),i.\u0275\u0275injectAttribute("aria-hidden"),i.\u0275\u0275directiveInject(Ke),i.\u0275\u0275directiveInject(i.ErrorHandler))},Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(J,ge){2&J&&(i.\u0275\u0275attribute("data-mat-icon-type",ge._usingFontIcon()?"font":"svg")("data-mat-icon-name",ge._svgName||ge.fontIcon)("data-mat-icon-namespace",ge._svgNamespace||ge.fontSet),i.\u0275\u0275classProp("mat-icon-inline",ge.inline)("mat-icon-no-color","primary"!==ge.color&&"accent"!==ge.color&&"warn"!==ge.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:U,decls:1,vars:0,template:function(J,ge){1&J&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),Be})(),bt=(()=>{class Be{}return Be.\u0275fac=function(J){return new(J||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.MatCommonModule],u.MatCommonModule]}),Be})()},2181:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_MENU_CONTENT:()=>Ae,MAT_MENU_DEFAULT_OPTIONS:()=>Xe,MAT_MENU_PANEL:()=>ct,MAT_MENU_SCROLL_STRATEGY:()=>ye,MatMenu:()=>Re,MatMenuContent:()=>Ke,MatMenuItem:()=>Be,MatMenuModule:()=>L,MatMenuTrigger:()=>Ge,_MatMenuBase:()=>Ie,_MatMenuContentBase:()=>ne,_MatMenuTriggerBase:()=>ut,fadeInItems:()=>X,matMenuAnimations:()=>Fe,transformMenu:()=>le});var i=l(5664),u=l(3191),m=l(1159),c=l(5e3),s=l(6758),_=l(6921),D=l(6451),T=l(9646),S=l(3101),d=l(8675),A=l(3900),M=l(5698),b=l(2722),k=l(9300),$=l(4326),pe=l(1777),U=l(7429),ae=l(9808),Se=l(508),me=l(1314),be=l(925),se=l(226),Me=l(9071);const Le=["mat-menu-item",""];function qe(re,Oe){1&re&&(c.\u0275\u0275namespaceSVG(),c.\u0275\u0275elementStart(0,"svg",2),c.\u0275\u0275element(1,"polygon",3),c.\u0275\u0275elementEnd())}const at=["*"];function te(re,Oe){if(1&re){const ue=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("keydown",function(Ee){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._handleKeydown(Ee)})("click",function(){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(Ee){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._onAnimationStart(Ee)})("@transformMenu.done",function(Ee){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._onAnimationDone(Ee)}),c.\u0275\u0275elementStart(1,"div",1),c.\u0275\u0275projection(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()}if(2&re){const ue=c.\u0275\u0275nextContext();c.\u0275\u0275property("id",ue.panelId)("ngClass",ue._classList)("@transformMenu",ue._panelAnimationState),c.\u0275\u0275attribute("aria-label",ue.ariaLabel||null)("aria-labelledby",ue.ariaLabelledby||null)("aria-describedby",ue.ariaDescribedby||null)}}const Fe={transformMenu:(0,pe.X$)("transformMenu",[(0,pe.SB)("void",(0,pe.oB)({opacity:0,transform:"scale(0.8)"})),(0,pe.eR)("void => enter",(0,pe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,pe.oB)({opacity:1,transform:"scale(1)"}))),(0,pe.eR)("* => void",(0,pe.jt)("100ms 25ms linear",(0,pe.oB)({opacity:0})))]),fadeInItems:(0,pe.X$)("fadeInItems",[(0,pe.SB)("showing",(0,pe.oB)({opacity:1})),(0,pe.eR)("void => *",[(0,pe.oB)({opacity:0}),(0,pe.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},X=Fe.fadeInItems,le=Fe.transformMenu,Ae=new c.InjectionToken("MatMenuContent");let ne=(()=>{class re{constructor(ue,we,Ee,ie,ve,Ze,it){this._template=ue,this._componentFactoryResolver=we,this._appRef=Ee,this._injector=ie,this._viewContainerRef=ve,this._document=Ze,this._changeDetectorRef=it,this._attached=new s.x}attach(ue={}){var we;this._portal||(this._portal=new U.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new U.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const Ee=this._template.elementRef.nativeElement;Ee.parentNode.insertBefore(this._outlet.outletElement,Ee),null===(we=this._changeDetectorRef)||void 0===we||we.markForCheck(),this._portal.attach(this._outlet,ue),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return re.\u0275fac=function(ue){return new(ue||re)(c.\u0275\u0275directiveInject(c.TemplateRef),c.\u0275\u0275directiveInject(c.ComponentFactoryResolver),c.\u0275\u0275directiveInject(c.ApplicationRef),c.\u0275\u0275directiveInject(c.Injector),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(ae.DOCUMENT),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},re.\u0275dir=c.\u0275\u0275defineDirective({type:re}),re})(),Ke=(()=>{class re extends ne{}return re.\u0275fac=function(){let Oe;return function(we){return(Oe||(Oe=c.\u0275\u0275getInheritedFactory(re)))(we||re)}}(),re.\u0275dir=c.\u0275\u0275defineDirective({type:re,selectors:[["ng-template","matMenuContent",""]],features:[c.\u0275\u0275ProvidersFeature([{provide:Ae,useExisting:re}]),c.\u0275\u0275InheritDefinitionFeature]}),re})();const ct=new c.InjectionToken("MAT_MENU_PANEL"),bt=(0,Se.mixinDisableRipple)((0,Se.mixinDisabled)(class{}));let Be=(()=>{class re extends bt{constructor(ue,we,Ee,ie,ve){var Ze;super(),this._elementRef=ue,this._focusMonitor=Ee,this._parentMenu=ie,this._changeDetectorRef=ve,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Ze=null==ie?void 0:ie.addItem)||void 0===Ze||Ze.call(ie,this)}focus(ue,we){this._focusMonitor&&ue?this._focusMonitor.focusVia(this._getHostElement(),ue,we):this._getHostElement().focus(we),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(ue){this.disabled&&(ue.preventDefault(),ue.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ue;const we=this._elementRef.nativeElement.cloneNode(!0),Ee=we.querySelectorAll("mat-icon, .material-icons");for(let ie=0;ie<Ee.length;ie++)Ee[ie].remove();return(null===(ue=we.textContent)||void 0===ue?void 0:ue.trim())||""}_setHighlighted(ue){var we;this._highlighted=ue,null===(we=this._changeDetectorRef)||void 0===we||we.markForCheck()}}return re.\u0275fac=function(ue){return new(ue||re)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(ae.DOCUMENT),c.\u0275\u0275directiveInject(i.tE),c.\u0275\u0275directiveInject(ct,8),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},re.\u0275cmp=c.\u0275\u0275defineComponent({type:re,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ue,we){1&ue&&c.\u0275\u0275listener("click",function(ie){return we._checkDisabled(ie)})("mouseenter",function(){return we._handleMouseEnter()}),2&ue&&(c.\u0275\u0275attribute("role",we.role)("tabindex",we._getTabIndex())("aria-disabled",we.disabled.toString())("disabled",we.disabled||null),c.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",we._highlighted)("mat-menu-item-submenu-trigger",we._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[c.\u0275\u0275InheritDefinitionFeature],attrs:Le,ngContentSelectors:at,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ue,we){1&ue&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275projection(0),c.\u0275\u0275element(1,"div",0),c.\u0275\u0275template(2,qe,2,0,"svg",1)),2&ue&&(c.\u0275\u0275advance(1),c.\u0275\u0275property("matRippleDisabled",we.disableRipple||we.disabled)("matRippleTrigger",we._getHostElement()),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",we._triggersSubmenu))},directives:[Se.MatRipple,ae.NgIf],encapsulation:2,changeDetection:0}),re})();const Xe=new c.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function J(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let ge=0,Ie=(()=>{class re{constructor(ue,we,Ee){this._elementRef=ue,this._ngZone=we,this._defaultOptions=Ee,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new c.QueryList,this._tabSubscription=_.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new c.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+ge++}get xPosition(){return this._xPosition}set xPosition(ue){this._xPosition=ue,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ue){this._yPosition=ue,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ue){this._overlapTrigger=(0,u.Ig)(ue)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ue){this._hasBackdrop=(0,u.Ig)(ue)}set panelClass(ue){const we=this._previousPanelClass;we&&we.length&&we.split(" ").forEach(Ee=>{this._classList[Ee]=!1}),this._previousPanelClass=ue,ue&&ue.length&&(ue.split(" ").forEach(Ee=>{this._classList[Ee]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ue){this.panelClass=ue}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,A.w)(ue=>(0,D.T)(...ue.map(we=>we._focused)))).subscribe(ue=>this._keyManager.updateActiveItem(ue))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,d.O)(this._directDescendantItems),(0,A.w)(we=>(0,D.T)(...we.map(Ee=>Ee._hovered))))}addItem(ue){}removeItem(ue){}_handleKeydown(ue){const we=ue.keyCode,Ee=this._keyManager;switch(we){case m.hY:(0,m.Vb)(ue)||(ue.preventDefault(),this.closed.emit("keydown"));break;case m.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case m.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(we===m.LH||we===m.JH)&&Ee.setFocusOrigin("keyboard"),void Ee.onKeydown(ue)}ue.stopPropagation()}focusFirstItem(ue="program"){this.lazyContent?this._ngZone.onStable.pipe((0,M.q)(1)).subscribe(()=>this._focusFirstItem(ue)):this._focusFirstItem(ue)}_focusFirstItem(ue){const we=this._keyManager;if(we.setFocusOrigin(ue).setFirstItemActive(),!we.activeItem&&this._directDescendantItems.length){let Ee=this._directDescendantItems.first._getHostElement().parentElement;for(;Ee;){if("menu"===Ee.getAttribute("role")){Ee.focus();break}Ee=Ee.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ue){const we=Math.min(this._baseElevation+ue,24),Ee=`${this._elevationPrefix}${we}`,ie=Object.keys(this._classList).find(ve=>ve.startsWith(this._elevationPrefix));(!ie||ie===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Ee]=!0,this._previousElevation=Ee)}setPositionClasses(ue=this.xPosition,we=this.yPosition){const Ee=this._classList;Ee["mat-menu-before"]="before"===ue,Ee["mat-menu-after"]="after"===ue,Ee["mat-menu-above"]="above"===we,Ee["mat-menu-below"]="below"===we}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ue){this._animationDone.next(ue),this._isAnimating=!1}_onAnimationStart(ue){this._isAnimating=!0,"enter"===ue.toState&&0===this._keyManager.activeItemIndex&&(ue.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,d.O)(this._allItems)).subscribe(ue=>{this._directDescendantItems.reset(ue.filter(we=>we._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return re.\u0275fac=function(ue){return new(ue||re)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(Xe))},re.\u0275dir=c.\u0275\u0275defineDirective({type:re,contentQueries:function(ue,we,Ee){if(1&ue&&(c.\u0275\u0275contentQuery(Ee,Ae,5),c.\u0275\u0275contentQuery(Ee,Be,5),c.\u0275\u0275contentQuery(Ee,Be,4)),2&ue){let ie;c.\u0275\u0275queryRefresh(ie=c.\u0275\u0275loadQuery())&&(we.lazyContent=ie.first),c.\u0275\u0275queryRefresh(ie=c.\u0275\u0275loadQuery())&&(we._allItems=ie),c.\u0275\u0275queryRefresh(ie=c.\u0275\u0275loadQuery())&&(we.items=ie)}},viewQuery:function(ue,we){if(1&ue&&c.\u0275\u0275viewQuery(c.TemplateRef,5),2&ue){let Ee;c.\u0275\u0275queryRefresh(Ee=c.\u0275\u0275loadQuery())&&(we.templateRef=Ee.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),re})(),Re=(()=>{class re extends Ie{constructor(ue,we,Ee){super(ue,we,Ee),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return re.\u0275fac=function(ue){return new(ue||re)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(Xe))},re.\u0275cmp=c.\u0275\u0275defineComponent({type:re,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ue,we){2&ue&&c.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[c.\u0275\u0275ProvidersFeature([{provide:ct,useExisting:re}]),c.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:at,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ue,we){1&ue&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275template(0,te,3,6,"ng-template"))},directives:[ae.NgClass],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Fe.transformMenu,Fe.fadeInItems]},changeDetection:0}),re})();const ye=new c.InjectionToken("mat-menu-scroll-strategy"),mt={provide:ye,deps:[me.aV],useFactory:function Je(re){return()=>re.scrollStrategies.reposition()}},It=(0,be.i$)({passive:!0});let ut=(()=>{class re{constructor(ue,we,Ee,ie,ve,Ze,it,ht){this._overlay=ue,this._element=we,this._viewContainerRef=Ee,this._menuItemInstance=Ze,this._dir=it,this._focusMonitor=ht,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=_.w0.EMPTY,this._hoverSubscription=_.w0.EMPTY,this._menuCloseSubscription=_.w0.EMPTY,this._handleTouchStart=ft=>{(0,i.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new c.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new c.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=ie,this._parentMaterialMenu=ve instanceof Ie?ve:void 0,we.nativeElement.addEventListener("touchstart",this._handleTouchStart,It),Ze&&(Ze._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ue){this.menu=ue}get menu(){return this._menu}set menu(ue){ue!==this._menu&&(this._menu=ue,this._menuCloseSubscription.unsubscribe(),ue&&(this._menuCloseSubscription=ue.close.subscribe(we=>{this._destroyMenu(we),("click"===we||"tab"===we)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(we)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,It),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const ue=this._createOverlay(),we=ue.getConfig(),Ee=we.positionStrategy;this._setPosition(Ee),we.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ue.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ie&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,b.R)(this.menu.close)).subscribe(()=>{Ee.withLockedPosition(!1).reapplyLastPosition(),Ee.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(ue,we){this._focusMonitor&&ue?this._focusMonitor.focusVia(this._element,ue,we):this._element.nativeElement.focus(we)}updatePosition(){var ue;null===(ue=this._overlayRef)||void 0===ue||ue.updatePosition()}_destroyMenu(ue){if(!this._overlayRef||!this.menuOpen)return;const we=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ue||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,we instanceof Ie?(we._resetAnimation(),we.lazyContent?we._animationDone.pipe((0,k.h)(Ee=>"void"===Ee.toState),(0,M.q)(1),(0,b.R)(we.lazyContent._attached)).subscribe({next:()=>we.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),we.lazyContent&&we.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let ue=0,we=this.menu.parentMenu;for(;we;)ue++,we=we.parentMenu;this.menu.setElevation(ue)}}_setIsMenuOpen(ue){this._menuOpen=ue,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ue)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ue=this._getOverlayConfig();this._subscribeToPositions(ue.positionStrategy),this._overlayRef=this._overlay.create(ue),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new me.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ue){this.menu.setPositionClasses&&ue.positionChanges.subscribe(we=>{this.menu.setPositionClasses("start"===we.connectionPair.overlayX?"after":"before","top"===we.connectionPair.overlayY?"below":"above")})}_setPosition(ue){let[we,Ee]="before"===this.menu.xPosition?["end","start"]:["start","end"],[ie,ve]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ze,it]=[ie,ve],[ht,ft]=[we,Ee],Dt=0;this.triggersSubmenu()?(ft=we="before"===this.menu.xPosition?"start":"end",Ee=ht="end"===we?"start":"end",Dt="bottom"===ie?8:-8):this.menu.overlapTrigger||(Ze="top"===ie?"bottom":"top",it="top"===ve?"bottom":"top"),ue.withPositions([{originX:we,originY:Ze,overlayX:ht,overlayY:ie,offsetY:Dt},{originX:Ee,originY:Ze,overlayX:ft,overlayY:ie,offsetY:Dt},{originX:we,originY:it,overlayX:ht,overlayY:ve,offsetY:-Dt},{originX:Ee,originY:it,overlayX:ft,overlayY:ve,offsetY:-Dt}])}_menuClosingActions(){const ue=this._overlayRef.backdropClick(),we=this._overlayRef.detachments(),Ee=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),ie=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(ve=>ve!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,T.of)();return(0,D.T)(ue,Ee,ie,we)}_handleMousedown(ue){(0,i.X6)(ue)||(this._openedBy=0===ue.button?"mouse":void 0,this.triggersSubmenu()&&ue.preventDefault())}_handleKeydown(ue){const we=ue.keyCode;(we===m.K5||we===m.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(we===m.SV&&"ltr"===this.dir||we===m.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ue){this.triggersSubmenu()?(ue.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(ue=>ue===this._menuItemInstance&&!ue.disabled),(0,$.g)(0,S.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ie&&this.menu._isAnimating?this.menu._animationDone.pipe((0,M.q)(1),(0,$.g)(0,S.E),(0,b.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new U.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return re.\u0275fac=function(ue){return new(ue||re)(c.\u0275\u0275directiveInject(me.aV),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(ye),c.\u0275\u0275directiveInject(ct,8),c.\u0275\u0275directiveInject(Be,10),c.\u0275\u0275directiveInject(se.Is,8),c.\u0275\u0275directiveInject(i.tE))},re.\u0275dir=c.\u0275\u0275defineDirective({type:re,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ue,we){1&ue&&c.\u0275\u0275listener("click",function(ie){return we._handleClick(ie)})("mousedown",function(ie){return we._handleMousedown(ie)})("keydown",function(ie){return we._handleKeydown(ie)}),2&ue&&c.\u0275\u0275attribute("aria-expanded",we.menuOpen||null)("aria-controls",we.menuOpen?we.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"}}),re})(),Ge=(()=>{class re extends ut{}return re.\u0275fac=function(){let Oe;return function(we){return(Oe||(Oe=c.\u0275\u0275getInheritedFactory(re)))(we||re)}}(),re.\u0275dir=c.\u0275\u0275defineDirective({type:re,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[c.\u0275\u0275InheritDefinitionFeature]}),re})(),L=(()=>{class re{}return re.\u0275fac=function(ue){return new(ue||re)},re.\u0275mod=c.\u0275\u0275defineNgModule({type:re}),re.\u0275inj=c.\u0275\u0275defineInjector({providers:[mt],imports:[[ae.CommonModule,Se.MatCommonModule,Se.MatRippleModule,me.U8],Me.ZD,Se.MatCommonModule]}),re})()},2075:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MatCell:()=>Ue,MatCellDef:()=>j,MatColumnDef:()=>Wt,MatFooterCell:()=>je,MatFooterCellDef:()=>st,MatFooterRow:()=>Rt,MatFooterRowDef:()=>$e,MatHeaderCell:()=>Ht,MatHeaderCellDef:()=>Ne,MatHeaderRow:()=>Nt,MatHeaderRowDef:()=>he,MatNoDataRow:()=>gn,MatRecycleRows:()=>q,MatRow:()=>nn,MatRowDef:()=>dt,MatTable:()=>E,MatTableDataSource:()=>In,MatTableModule:()=>Gn,MatTextColumn:()=>Rn,_MatTableDataSource:()=>Bn});var i=l(5e3),u=l(3191),m=l(449),c=l(9808),s=l(6758),_=l(188),D=l(1135),T=l(5191),S=l(9646),d=l(2722),A=l(5698),M=l(226),b=l(925),k=l(9071);const $=[[["caption"]],[["colgroup"],["col"]]],pe=["caption","colgroup, col"];function U(H,Pe){if(1&H&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",W.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",W.headerText," ")}}function ae(H,Pe){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=Pe.$implicit,xe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",xe.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",xe.dataAccessor(W,xe.name)," ")}}function Se(H){return class extends H{constructor(...Pe){super(...Pe),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Pe){const W=this._sticky;this._sticky=(0,u.Ig)(Pe),this._hasStickyChanged=W!==this._sticky}hasStickyChanged(){const Pe=this._hasStickyChanged;return this._hasStickyChanged=!1,Pe}resetStickyChanged(){this._hasStickyChanged=!1}}}const me=new i.InjectionToken("CDK_TABLE"),be=new i.InjectionToken("text-column-options");let se=(()=>{class H{constructor(W){this.template=W}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkCellDef",""]]}),H})(),Me=(()=>{class H{constructor(W){this.template=W}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkHeaderCellDef",""]]}),H})(),Le=(()=>{class H{constructor(W){this.template=W}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkFooterCellDef",""]]}),H})();class qe{}const at=Se(qe);let te=(()=>{class H extends at{constructor(W){super(),this._table=W,this._stickyEnd=!1}get name(){return this._name}set name(W){this._setNameInput(W)}get stickyEnd(){return this._stickyEnd}set stickyEnd(W){const xe=this._stickyEnd;this._stickyEnd=(0,u.Ig)(W),this._hasStickyChanged=xe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(W){W&&(this._name=W,this.cssClassFriendlyName=W.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(me,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkColumnDef",""]],contentQueries:function(W,xe,et){if(1&W&&(i.\u0275\u0275contentQuery(et,se,5),i.\u0275\u0275contentQuery(et,Me,5),i.\u0275\u0275contentQuery(et,Le,5)),2&W){let lt;i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(xe.cell=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(xe.headerCell=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(xe.footerCell=lt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})();class Fe{constructor(Pe,W){W.nativeElement.classList.add(...Pe._columnCssClassName)}}let X=(()=>{class H extends Fe{constructor(W,xe){super(W,xe)}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(te),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),le=(()=>{class H extends Fe{constructor(W,xe){var et;if(super(W,xe),1===(null===(et=W._table)||void 0===et?void 0:et._elementRef.nativeElement.nodeType)){const lt=W._table._elementRef.nativeElement.getAttribute("role");xe.nativeElement.setAttribute("role","grid"===lt||"treegrid"===lt?"gridcell":"cell")}}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(te),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ae=(()=>{class H extends Fe{constructor(W,xe){var et;if(super(W,xe),1===(null===(et=W._table)||void 0===et?void 0:et._elementRef.nativeElement.nodeType)){const lt=W._table._elementRef.nativeElement.getAttribute("role");xe.nativeElement.setAttribute("role","grid"===lt||"treegrid"===lt?"gridcell":"cell")}}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(te),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})();class ne{constructor(){this.tasks=[],this.endTasks=[]}}const Ke=new i.InjectionToken("_COALESCED_STYLE_SCHEDULER");let _e=(()=>{class H{constructor(W){this._ngZone=W,this._currentSchedule=null,this._destroyed=new s.x}schedule(W){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(W)}scheduleEnd(W){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(W)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ne,this._getScheduleObservable().pipe((0,d.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const W=this._currentSchedule;this._currentSchedule=new ne;for(const xe of W.tasks)xe();for(const xe of W.endTasks)xe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,_.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,A.q)(1))}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275inject(i.NgZone))},H.\u0275prov=i.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac}),H})(),Ce=(()=>{class H{constructor(W,xe){this.template=W,this._differs=xe}ngOnChanges(W){if(!this._columnsDiffer){const xe=W.columns&&W.columns.currentValue||[];this._columnsDiffer=this._differs.find(xe).create(),this._columnsDiffer.diff(xe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(W){return this instanceof bt?W.headerCell.template:this instanceof J?W.footerCell.template:W.cell.template}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,features:[i.\u0275\u0275NgOnChangesFeature]}),H})();class He extends Ce{}const ct=Se(He);let bt=(()=>{class H extends ct{constructor(W,xe,et){super(W,xe),this._table=et}ngOnChanges(W){super.ngOnChanges(W)}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(me,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),H})();class Be extends Ce{}const Xe=Se(Be);let J=(()=>{class H extends Xe{constructor(W,xe,et){super(W,xe),this._table=et}ngOnChanges(W){super.ngOnChanges(W)}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(me,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),H})(),ge=(()=>{class H extends Ce{constructor(W,xe,et){super(W,xe),this._table=et}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(me,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ie=(()=>{class H{constructor(W){this._viewContainer=W,H.mostRecentCellOutlet=this}ngOnDestroy(){H.mostRecentCellOutlet===this&&(H.mostRecentCellOutlet=null)}}return H.mostRecentCellOutlet=null,H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkCellOutlet",""]]}),H})(),Re=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({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(W,xe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ie],encapsulation:2}),H})(),ye=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,xe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ie],encapsulation:2}),H})(),Je=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,xe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ie],encapsulation:2}),H})(),mt=(()=>{class H{constructor(W){this.templateRef=W,this._contentClassName="cdk-no-data-row"}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","cdkNoDataRow",""]]}),H})();const yt=["top","bottom","left","right"];class It{constructor(Pe,W,xe,et,lt=!0,wt=!0,kt){this._isNativeHtmlTable=Pe,this._stickCellCss=W,this.direction=xe,this._coalescedStyleScheduler=et,this._isBrowser=lt,this._needsPositionStickyOnElement=wt,this._positionListener=kt,this._cachedCellWidths=[],this._borderCellCss={top:`${W}-border-elem-top`,bottom:`${W}-border-elem-bottom`,left:`${W}-border-elem-left`,right:`${W}-border-elem-right`}}clearStickyPositioning(Pe,W){const xe=[];for(const et of Pe)if(et.nodeType===et.ELEMENT_NODE){xe.push(et);for(let lt=0;lt<et.children.length;lt++)xe.push(et.children[lt])}this._coalescedStyleScheduler.schedule(()=>{for(const et of xe)this._removeStickyStyle(et,W)})}updateStickyColumns(Pe,W,xe,et=!0){if(!Pe.length||!this._isBrowser||!W.some(rn=>rn)&&!xe.some(rn=>rn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const lt=Pe[0],wt=lt.children.length,kt=this._getCellWidths(lt,et),Yt=this._getStickyStartColumnPositions(kt,W),un=this._getStickyEndColumnPositions(kt,xe),Lt=W.lastIndexOf(!0),bn=xe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const rn="rtl"===this.direction,On=rn?"right":"left",Fn=rn?"left":"right";for(const yn of Pe)for(let Mn=0;Mn<wt;Mn++){const ii=yn.children[Mn];W[Mn]&&this._addStickyStyle(ii,On,Yt[Mn],Mn===Lt),xe[Mn]&&this._addStickyStyle(ii,Fn,un[Mn],Mn===bn)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Lt?[]:kt.slice(0,Lt+1).map((yn,Mn)=>W[Mn]?yn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===bn?[]:kt.slice(bn).map((yn,Mn)=>xe[Mn+bn]?yn:null).reverse()}))})}stickRows(Pe,W,xe){if(!this._isBrowser)return;const et="bottom"===xe?Pe.slice().reverse():Pe,lt="bottom"===xe?W.slice().reverse():W,wt=[],kt=[],Yt=[];for(let Lt=0,bn=0;Lt<et.length;Lt++){if(!lt[Lt])continue;wt[Lt]=bn;const rn=et[Lt];Yt[Lt]=this._isNativeHtmlTable?Array.from(rn.children):[rn];const On=rn.getBoundingClientRect().height;bn+=On,kt[Lt]=On}const un=lt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Lt,bn;for(let rn=0;rn<et.length;rn++){if(!lt[rn])continue;const On=wt[rn],Fn=rn===un;for(const yn of Yt[rn])this._addStickyStyle(yn,xe,On,Fn)}"top"===xe?null===(Lt=this._positionListener)||void 0===Lt||Lt.stickyHeaderRowsUpdated({sizes:kt,offsets:wt,elements:Yt}):null===(bn=this._positionListener)||void 0===bn||bn.stickyFooterRowsUpdated({sizes:kt,offsets:wt,elements:Yt})})}updateStickyFooterContainer(Pe,W){if(!this._isNativeHtmlTable)return;const xe=Pe.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{W.some(et=>!et)?this._removeStickyStyle(xe,["bottom"]):this._addStickyStyle(xe,"bottom",0,!1)})}_removeStickyStyle(Pe,W){for(const et of W)Pe.style[et]="",Pe.classList.remove(this._borderCellCss[et]);yt.some(et=>-1===W.indexOf(et)&&Pe.style[et])?Pe.style.zIndex=this._getCalculatedZIndex(Pe):(Pe.style.zIndex="",this._needsPositionStickyOnElement&&(Pe.style.position=""),Pe.classList.remove(this._stickCellCss))}_addStickyStyle(Pe,W,xe,et){Pe.classList.add(this._stickCellCss),et&&Pe.classList.add(this._borderCellCss[W]),Pe.style[W]=`${xe}px`,Pe.style.zIndex=this._getCalculatedZIndex(Pe),this._needsPositionStickyOnElement&&(Pe.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Pe){const W={top:100,bottom:10,left:1,right:1};let xe=0;for(const et of yt)Pe.style[et]&&(xe+=W[et]);return xe?`${xe}`:""}_getCellWidths(Pe,W=!0){if(!W&&this._cachedCellWidths.length)return this._cachedCellWidths;const xe=[],et=Pe.children;for(let lt=0;lt<et.length;lt++)xe.push(et[lt].getBoundingClientRect().width);return this._cachedCellWidths=xe,xe}_getStickyStartColumnPositions(Pe,W){const xe=[];let et=0;for(let lt=0;lt<Pe.length;lt++)W[lt]&&(xe[lt]=et,et+=Pe[lt]);return xe}_getStickyEndColumnPositions(Pe,W){const xe=[];let et=0;for(let lt=Pe.length;lt>0;lt--)W[lt]&&(xe[lt]=et,et+=Pe[lt]);return xe}}const ie=new i.InjectionToken("CDK_SPL");let Ze=(()=>{class H{constructor(W,xe){this.viewContainer=W,this.elementRef=xe}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","rowOutlet",""]]}),H})(),it=(()=>{class H{constructor(W,xe){this.viewContainer=W,this.elementRef=xe}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","headerRowOutlet",""]]}),H})(),ht=(()=>{class H{constructor(W,xe){this.viewContainer=W,this.elementRef=xe}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","footerRowOutlet",""]]}),H})(),ft=(()=>{class H{constructor(W,xe){this.viewContainer=W,this.elementRef=xe}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","noDataRowOutlet",""]]}),H})(),Jt=(()=>{class H{constructor(W,xe,et,lt,wt,kt,Yt,un,Lt,bn,rn,On){this._differs=W,this._changeDetectorRef=xe,this._elementRef=et,this._dir=wt,this._platform=Yt,this._viewRepeater=un,this._coalescedStyleScheduler=Lt,this._viewportRuler=bn,this._stickyPositioningListener=rn,this._ngZone=On,this._onDestroy=new s.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.EventEmitter,this.viewChange=new D.X({start:0,end:Number.MAX_VALUE}),lt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=kt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(W){this._trackByFn=W}get dataSource(){return this._dataSource}set dataSource(W){this._dataSource!==W&&this._switchDataSource(W)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(W){this._multiTemplateDataRows=(0,u.Ig)(W),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(W){this._fixedLayout=(0,u.Ig)(W),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((W,xe)=>this.trackBy?this.trackBy(xe.dataIndex,xe.data):xe),this._viewportRuler.change().pipe((0,d.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const xe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||xe,this._forceRecalculateCellWidths=xe,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(W=>{W.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,m.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const W=this._dataDiffer.diff(this._renderRows);if(!W)return this._updateNoDataRow(),void this.contentChanged.next();const xe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(W,xe,(et,lt,wt)=>this._getEmbeddedViewArgs(et.item,wt),et=>et.item.data,et=>{1===et.operation&&et.context&&this._renderCellTemplateForItem(et.record.item.rowDef,et.context)}),this._updateRowIndexContext(),W.forEachIdentityChange(et=>{xe.get(et.currentIndex).context.$implicit=et.item.data}),this._updateNoDataRow(),this._ngZone&&i.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,A.q)(1),(0,d.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(W){this._customColumnDefs.add(W)}removeColumnDef(W){this._customColumnDefs.delete(W)}addRowDef(W){this._customRowDefs.add(W)}removeRowDef(W){this._customRowDefs.delete(W)}addHeaderRowDef(W){this._customHeaderRowDefs.add(W),this._headerRowDefChanged=!0}removeHeaderRowDef(W){this._customHeaderRowDefs.delete(W),this._headerRowDefChanged=!0}addFooterRowDef(W){this._customFooterRowDefs.add(W),this._footerRowDefChanged=!0}removeFooterRowDef(W){this._customFooterRowDefs.delete(W),this._footerRowDefChanged=!0}setNoDataRow(W){this._customNoDataRow=W}updateStickyHeaderRowStyles(){const W=this._getRenderedRows(this._headerRowOutlet),et=this._elementRef.nativeElement.querySelector("thead");et&&(et.style.display=W.length?"":"none");const lt=this._headerRowDefs.map(wt=>wt.sticky);this._stickyStyler.clearStickyPositioning(W,["top"]),this._stickyStyler.stickRows(W,lt,"top"),this._headerRowDefs.forEach(wt=>wt.resetStickyChanged())}updateStickyFooterRowStyles(){const W=this._getRenderedRows(this._footerRowOutlet),et=this._elementRef.nativeElement.querySelector("tfoot");et&&(et.style.display=W.length?"":"none");const lt=this._footerRowDefs.map(wt=>wt.sticky);this._stickyStyler.clearStickyPositioning(W,["bottom"]),this._stickyStyler.stickRows(W,lt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,lt),this._footerRowDefs.forEach(wt=>wt.resetStickyChanged())}updateStickyColumnStyles(){const W=this._getRenderedRows(this._headerRowOutlet),xe=this._getRenderedRows(this._rowOutlet),et=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...W,...xe,...et],["left","right"]),this._stickyColumnStylesNeedReset=!1),W.forEach((lt,wt)=>{this._addStickyColumnStyles([lt],this._headerRowDefs[wt])}),this._rowDefs.forEach(lt=>{const wt=[];for(let kt=0;kt<xe.length;kt++)this._renderRows[kt].rowDef===lt&&wt.push(xe[kt]);this._addStickyColumnStyles(wt,lt)}),et.forEach((lt,wt)=>{this._addStickyColumnStyles([lt],this._footerRowDefs[wt])}),Array.from(this._columnDefsByName.values()).forEach(lt=>lt.resetStickyChanged())}_getAllRenderRows(){const W=[],xe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let et=0;et<this._data.length;et++){let lt=this._data[et];const wt=this._getRenderRowsForData(lt,et,xe.get(lt));this._cachedRenderRowsMap.has(lt)||this._cachedRenderRowsMap.set(lt,new WeakMap);for(let kt=0;kt<wt.length;kt++){let Yt=wt[kt];const un=this._cachedRenderRowsMap.get(Yt.data);un.has(Yt.rowDef)?un.get(Yt.rowDef).push(Yt):un.set(Yt.rowDef,[Yt]),W.push(Yt)}}return W}_getRenderRowsForData(W,xe,et){return this._getRowDefs(W,xe).map(wt=>{const kt=et&&et.has(wt)?et.get(wt):[];if(kt.length){const Yt=kt.shift();return Yt.dataIndex=xe,Yt}return{data:W,rowDef:wt,dataIndex:xe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ft(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(xe=>{this._columnDefsByName.has(xe.name),this._columnDefsByName.set(xe.name,xe)})}_cacheRowDefs(){this._headerRowDefs=Ft(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ft(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ft(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const W=this._rowDefs.filter(xe=>!xe.when);this._defaultRowDef=W[0]}_renderUpdatedColumns(){const W=(wt,kt)=>wt||!!kt.getColumnsDiff(),xe=this._rowDefs.reduce(W,!1);xe&&this._forceRenderDataRows();const et=this._headerRowDefs.reduce(W,!1);et&&this._forceRenderHeaderRows();const lt=this._footerRowDefs.reduce(W,!1);return lt&&this._forceRenderFooterRows(),xe||et||lt}_switchDataSource(W){this._data=[],(0,m.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),W||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=W}_observeRenderChanges(){if(!this.dataSource)return;let W;(0,m.Z9)(this.dataSource)?W=this.dataSource.connect(this):(0,T.b)(this.dataSource)?W=this.dataSource:Array.isArray(this.dataSource)&&(W=(0,S.of)(this.dataSource)),this._renderChangeSubscription=W.pipe((0,d.R)(this._onDestroy)).subscribe(xe=>{this._data=xe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((W,xe)=>this._renderRow(this._headerRowOutlet,W,xe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((W,xe)=>this._renderRow(this._footerRowOutlet,W,xe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(W,xe){const et=Array.from(xe.columns||[]).map(kt=>this._columnDefsByName.get(kt)),lt=et.map(kt=>kt.sticky),wt=et.map(kt=>kt.stickyEnd);this._stickyStyler.updateStickyColumns(W,lt,wt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(W){const xe=[];for(let et=0;et<W.viewContainer.length;et++){const lt=W.viewContainer.get(et);xe.push(lt.rootNodes[0])}return xe}_getRowDefs(W,xe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let et=[];if(this.multiTemplateDataRows)et=this._rowDefs.filter(lt=>!lt.when||lt.when(xe,W));else{let lt=this._rowDefs.find(wt=>wt.when&&wt.when(xe,W))||this._defaultRowDef;lt&&et.push(lt)}return et}_getEmbeddedViewArgs(W,xe){return{templateRef:W.rowDef.template,context:{$implicit:W.data},index:xe}}_renderRow(W,xe,et,lt={}){const wt=W.viewContainer.createEmbeddedView(xe.template,lt,et);return this._renderCellTemplateForItem(xe,lt),wt}_renderCellTemplateForItem(W,xe){for(let et of this._getCellTemplates(W))Ie.mostRecentCellOutlet&&Ie.mostRecentCellOutlet._viewContainer.createEmbeddedView(et,xe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const W=this._rowOutlet.viewContainer;for(let xe=0,et=W.length;xe<et;xe++){const wt=W.get(xe).context;wt.count=et,wt.first=0===xe,wt.last=xe===et-1,wt.even=xe%2==0,wt.odd=!wt.even,this.multiTemplateDataRows?(wt.dataIndex=this._renderRows[xe].dataIndex,wt.renderIndex=xe):wt.index=this._renderRows[xe].dataIndex}}_getCellTemplates(W){return W&&W.columns?Array.from(W.columns,xe=>{const et=this._columnDefsByName.get(xe);return W.extractCellTemplate(et)}):[]}_applyNativeTableSections(){const W=this._document.createDocumentFragment(),xe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const et of xe){const lt=this._document.createElement(et.tag);lt.setAttribute("role","rowgroup");for(const wt of et.outlets)lt.appendChild(wt.elementRef.nativeElement);W.appendChild(lt)}this._elementRef.nativeElement.appendChild(W)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const W=(xe,et)=>xe||et.hasStickyChanged();this._headerRowDefs.reduce(W,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(W,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(W,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new It(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,S.of)()).pipe((0,d.R)(this._onDestroy)).subscribe(xe=>{this._stickyStyler.direction=xe,this.updateStickyColumnStyles()})}_getOwnDefs(W){return W.filter(xe=>!xe._table||xe._table===this)}_updateNoDataRow(){const W=this._customNoDataRow||this._noDataRow;if(!W)return;const xe=0===this._rowOutlet.viewContainer.length;if(xe===this._isShowingNoDataRow)return;const et=this._noDataRowOutlet.viewContainer;if(xe){const lt=et.createEmbeddedView(W.templateRef),wt=lt.rootNodes[0];1===lt.rootNodes.length&&(null==wt?void 0:wt.nodeType)===this._document.ELEMENT_NODE&&(wt.setAttribute("role","row"),wt.classList.add(W._contentClassName))}else et.clear();this._isShowingNoDataRow=xe}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275injectAttribute("role"),i.\u0275\u0275directiveInject(M.Is,8),i.\u0275\u0275directiveInject(c.DOCUMENT),i.\u0275\u0275directiveInject(b.t4),i.\u0275\u0275directiveInject(m.k),i.\u0275\u0275directiveInject(Ke),i.\u0275\u0275directiveInject(k.rL),i.\u0275\u0275directiveInject(ie,12),i.\u0275\u0275directiveInject(i.NgZone,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(W,xe,et){if(1&W&&(i.\u0275\u0275contentQuery(et,mt,5),i.\u0275\u0275contentQuery(et,te,5),i.\u0275\u0275contentQuery(et,ge,5),i.\u0275\u0275contentQuery(et,bt,5),i.\u0275\u0275contentQuery(et,J,5)),2&W){let lt;i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(xe._noDataRow=lt.first),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(xe._contentColumnDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(xe._contentRowDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(xe._contentHeaderRowDefs=lt),i.\u0275\u0275queryRefresh(lt=i.\u0275\u0275loadQuery())&&(xe._contentFooterRowDefs=lt)}},viewQuery:function(W,xe){if(1&W&&(i.\u0275\u0275viewQuery(Ze,7),i.\u0275\u0275viewQuery(it,7),i.\u0275\u0275viewQuery(ht,7),i.\u0275\u0275viewQuery(ft,7)),2&W){let et;i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(xe._rowOutlet=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(xe._headerRowOutlet=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(xe._footerRowOutlet=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(xe._noDataRowOutlet=et.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(W,xe){2&W&&i.\u0275\u0275classProp("cdk-table-fixed-layout",xe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:me,useExisting:H},{provide:m.k,useClass:m.yy},{provide:Ke,useClass:_e},{provide:ie,useValue:null}])],ngContentSelectors:pe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(W,xe){1&W&&(i.\u0275\u0275projectionDef($),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0),i.\u0275\u0275elementContainer(3,1),i.\u0275\u0275elementContainer(4,2),i.\u0275\u0275elementContainer(5,3))},directives:[it,Ze,ft,ht],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})();function Ft(H,Pe){return H.concat(Array.from(Pe))}let pn=(()=>{class H{constructor(W,xe){this._table=W,this._options=xe,this.justify="start",this._options=xe||{}}get name(){return this._name}set name(W){this._name=W,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((W,xe)=>W[xe])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const W=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(W):W[0].toUpperCase()+W.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return H.\u0275fac=function(W){return new(W||H)(i.\u0275\u0275directiveInject(Jt,8),i.\u0275\u0275directiveInject(be,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-text-column"]],viewQuery:function(W,xe){if(1&W&&(i.\u0275\u0275viewQuery(te,7),i.\u0275\u0275viewQuery(se,7),i.\u0275\u0275viewQuery(Me,7)),2&W){let et;i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(xe.columnDef=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(xe.cell=et.first),i.\u0275\u0275queryRefresh(et=i.\u0275\u0275loadQuery())&&(xe.headerCell=et.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(W,xe){1&W&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,U,2,3,"th",1),i.\u0275\u0275template(2,ae,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[te,Me,X,se,Ae],encapsulation:2}),H})(),$t=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[k.Cl]]}),H})();var Tt=l(508),ln=l(6451),Kt=l(9841),tn=l(4004);const de=[[["caption"]],[["colgroup"],["col"]]],Q=["caption","colgroup, col"];function N(H,Pe){if(1&H&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",W.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",W.headerText," ")}}function O(H,Pe){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const W=Pe.$implicit,xe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",xe.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",xe.dataAccessor(W,xe.name)," ")}}let q=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.eX}])]}),H})(),E=(()=>{class H extends Jt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(W,xe){2&W&&i.\u0275\u0275classProp("mat-table-fixed-layout",xe.fixedLayout)},exportAs:["matTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.yy},{provide:Jt,useExisting:H},{provide:me,useExisting:H},{provide:Ke,useClass:_e},{provide:ie,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Q,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(W,xe){1&W&&(i.\u0275\u0275projectionDef(de),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0),i.\u0275\u0275elementContainer(3,1),i.\u0275\u0275elementContainer(4,2),i.\u0275\u0275elementContainer(5,3))},directives:[it,Ze,ft,ht],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})(),j=(()=>{class H extends se{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:se,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ne=(()=>{class H extends Me{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Me,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),st=(()=>{class H extends Le{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Le,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Wt=(()=>{class H extends te{get name(){return this._name}set name(W){this._setNameInput(W)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.\u0275\u0275ProvidersFeature([{provide:te,useExisting:H},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ht=(()=>{class H extends X{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),je=(()=>{class H extends le{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ue=(()=>{class H extends Ae{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),he=(()=>{class H extends bt{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:bt,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),$e=(()=>{class H extends J{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:J,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),dt=(()=>{class H extends ge{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Nt=(()=>{class H extends Re{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Re,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,xe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ie],encapsulation:2}),H})(),Rt=(()=>{class H extends ye{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:ye,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,xe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ie],encapsulation:2}),H})(),nn=(()=>{class H extends Je{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Je,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(W,xe){1&W&&i.\u0275\u0275elementContainer(0,0)},directives:[Ie],encapsulation:2}),H})(),gn=(()=>{class H extends mt{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","matNoDataRow",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:mt,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Rn=(()=>{class H extends pn{}return H.\u0275fac=function(){let Pe;return function(xe){return(Pe||(Pe=i.\u0275\u0275getInheritedFactory(H)))(xe||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-text-column"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(W,xe){1&W&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,N,2,3,"th",1),i.\u0275\u0275template(2,O,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[Wt,Ne,Ht,j,Ue],encapsulation:2}),H})(),Gn=(()=>{class H{}return H.\u0275fac=function(W){return new(W||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[$t,Tt.MatCommonModule],Tt.MatCommonModule]}),H})();class Bn extends m.o2{constructor(Pe=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(W,xe)=>{const et=W[xe];if((0,u.t6)(et)){const lt=Number(et);return lt<9007199254740991?lt:et}return et},this.sortData=(W,xe)=>{const et=xe.active,lt=xe.direction;return et&&""!=lt?W.sort((wt,kt)=>{let Yt=this.sortingDataAccessor(wt,et),un=this.sortingDataAccessor(kt,et);const Lt=typeof Yt,bn=typeof un;Lt!==bn&&("number"===Lt&&(Yt+=""),"number"===bn&&(un+=""));let rn=0;return null!=Yt&&null!=un?Yt>un?rn=1:Yt<un&&(rn=-1):null!=Yt?rn=1:null!=un&&(rn=-1),rn*("asc"==lt?1:-1)}):W},this.filterPredicate=(W,xe)=>{const et=Object.keys(W).reduce((wt,kt)=>wt+W[kt]+"\u25ec","").toLowerCase(),lt=xe.trim().toLowerCase();return-1!=et.indexOf(lt)},this._data=new D.X(Pe),this._updateChangeSubscription()}get data(){return this._data.value}set data(Pe){Pe=Array.isArray(Pe)?Pe:[],this._data.next(Pe),this._renderChangesSubscription||this._filterData(Pe)}get filter(){return this._filter.value}set filter(Pe){this._filter.next(Pe),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Pe){this._sort=Pe,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Pe){this._paginator=Pe,this._updateChangeSubscription()}_updateChangeSubscription(){var Pe;const W=this._sort?(0,ln.T)(this._sort.sortChange,this._sort.initialized):(0,S.of)(null),xe=this._paginator?(0,ln.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,S.of)(null),lt=(0,Kt.a)([this._data,this._filter]).pipe((0,tn.U)(([Yt])=>this._filterData(Yt))),wt=(0,Kt.a)([lt,W]).pipe((0,tn.U)(([Yt])=>this._orderData(Yt))),kt=(0,Kt.a)([wt,xe]).pipe((0,tn.U)(([Yt])=>this._pageData(Yt)));null===(Pe=this._renderChangesSubscription)||void 0===Pe||Pe.unsubscribe(),this._renderChangesSubscription=kt.subscribe(Yt=>this._renderData.next(Yt))}_filterData(Pe){return this.filteredData=null==this.filter||""===this.filter?Pe:Pe.filter(W=>this.filterPredicate(W,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Pe){return this.sort?this.sortData(Pe.slice(),this.sort):Pe}_pageData(Pe){if(!this.paginator)return Pe;const W=this.paginator.pageIndex*this.paginator.pageSize;return Pe.slice(W,W+this.paginator.pageSize)}_updatePaginator(Pe){Promise.resolve().then(()=>{const W=this.paginator;if(W&&(W.length=Pe,W.pageIndex>0)){const xe=Math.ceil(W.length/W.pageSize)-1||0,et=Math.min(W.pageIndex,xe);et!==W.pageIndex&&(W.pageIndex=et,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Pe;null===(Pe=this._renderChangesSubscription)||void 0===Pe||Pe.unsubscribe(),this._renderChangesSubscription=null}}class In extends Bn{}},3251:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_TAB:()=>Je,MAT_TABS_CONFIG:()=>ue,MAT_TAB_GROUP:()=>It,MatInkBar:()=>ge,MatTab:()=>ut,MatTabBody:()=>Oe,MatTabBodyPortal:()=>L,MatTabChangeEvent:()=>Jt,MatTabContent:()=>Re,MatTabGroup:()=>en,MatTabHeader:()=>Dt,MatTabLabel:()=>mt,MatTabLabelWrapper:()=>Ee,MatTabLink:()=>de,MatTabNav:()=>ln,MatTabNavPanel:()=>Q,MatTabsModule:()=>N,_MAT_INK_BAR_POSITIONER:()=>Xe,_MatTabBodyBase:()=>re,_MatTabGroupBase:()=>pn,_MatTabHeaderBase:()=>ft,_MatTabLinkBase:()=>tn,_MatTabNavBase:()=>Tt,matTabsAnimations:()=>Ge});var i=l(5664),u=l(7144),m=l(7429),c=l(9808),s=l(5e3),_=l(508),D=l(6360),T=l(6758),S=l(6921),d=l(4968),A=l(9646),M=l(6451),b=l(2805),k=l(1777),$=l(8675),pe=l(1884),U=l(2722),ae=l(226),Se=l(3191),me=l(1159),be=l(925),se=l(9071);function Me(O,q){1&O&&s.\u0275\u0275projection(0)}const Le=["*"];function qe(O,q){}const at=function(O){return{animationDuration:O}},te=function(O,q){return{value:O,params:q}},Fe=["tabListContainer"],X=["tabList"],le=["tabListInner"],Ae=["nextPaginator"],ne=["previousPaginator"],Ke=["tabBodyWrapper"],_e=["tabHeader"];function tt(O,q){}function Ce(O,q){if(1&O&&s.\u0275\u0275template(0,tt,0,0,"ng-template",10),2&O){const E=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",E.templateLabel)}}function He(O,q){if(1&O&&s.\u0275\u0275text(0),2&O){const E=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(E.textLabel)}}function ct(O,q){if(1&O){const E=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const Ne=s.\u0275\u0275restoreView(E),st=Ne.$implicit,Wt=Ne.index,Ht=s.\u0275\u0275nextContext(),je=s.\u0275\u0275reference(1);return Ht._handleClick(st,je,Wt)})("cdkFocusChange",function(Ne){const Wt=s.\u0275\u0275restoreView(E).index;return s.\u0275\u0275nextContext()._tabFocusChanged(Ne,Wt)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,Ce,1,1,"ng-template",8),s.\u0275\u0275template(3,He,1,1,"ng-template",null,9,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&O){const E=q.$implicit,j=q.index,Ne=s.\u0275\u0275reference(4),st=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",st.selectedIndex===j),s.\u0275\u0275property("id",st._getTabLabelId(j))("ngClass",E.labelClass)("disabled",E.disabled)("matRippleDisabled",E.disabled||st.disableRipple),s.\u0275\u0275attribute("tabIndex",st._getTabIndex(E,j))("aria-posinset",j+1)("aria-setsize",st._tabs.length)("aria-controls",st._getTabContentId(j))("aria-selected",st.selectedIndex===j)("aria-label",E.ariaLabel||null)("aria-labelledby",!E.ariaLabel&&E.ariaLabelledby?E.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",E.templateLabel)("ngIfElse",Ne)}}function bt(O,q){if(1&O){const E=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",11),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(E),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(Ne){return s.\u0275\u0275restoreView(E),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(Ne)}),s.\u0275\u0275elementEnd()}if(2&O){const E=q.$implicit,j=q.index,Ne=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",Ne.selectedIndex===j),s.\u0275\u0275property("id",Ne._getTabContentId(j))("ngClass",E.bodyClass)("content",E.content)("position",E.position)("origin",E.origin)("animationDuration",Ne.animationDuration),s.\u0275\u0275attribute("tabindex",null!=Ne.contentTabIndex&&Ne.selectedIndex===j?Ne.contentTabIndex:null)("aria-labelledby",Ne._getTabLabelId(j))}}const Be=["mat-tab-nav-bar",""],Xe=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function J(){return q=>({left:q?(q.offsetLeft||0)+"px":"0",width:q?(q.offsetWidth||0)+"px":"0"})}});let ge=(()=>{class O{constructor(E,j,Ne,st){this._elementRef=E,this._ngZone=j,this._inkBarPositioner=Ne,this._animationMode=st}alignToElement(E){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(E))}):this._setStyles(E)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(E){const j=this._inkBarPositioner(E),Ne=this._elementRef.nativeElement;Ne.style.left=j.left,Ne.style.width=j.width}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(Xe),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(E,j){2&E&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===j._animationMode)}}),O})();const Ie=new s.InjectionToken("MatTabContent");let Re=(()=>{class O{constructor(E){this.template=E}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.TemplateRef))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:Ie,useExisting:O}])]}),O})();const ye=new s.InjectionToken("MatTabLabel"),Je=new s.InjectionToken("MAT_TAB");let mt=(()=>{class O extends m.ig{constructor(E,j,Ne){super(E,j),this._closestTab=Ne}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Je,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:ye,useExisting:O}]),s.\u0275\u0275InheritDefinitionFeature]}),O})();const yt=(0,_.mixinDisabled)(class{}),It=new s.InjectionToken("MAT_TAB_GROUP");let ut=(()=>{class O extends yt{constructor(E,j){super(),this._viewContainerRef=E,this._closestTabGroup=j,this.textLabel="",this._contentPortal=null,this._stateChanges=new T.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(E){this._setTemplateLabelInput(E)}get content(){return this._contentPortal}ngOnChanges(E){(E.hasOwnProperty("textLabel")||E.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new m.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(E){E&&E._closestTab===this&&(this._templateLabel=E)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(It,8))},O.\u0275cmp=s.\u0275\u0275defineComponent({type:O,selectors:[["mat-tab"]],contentQueries:function(E,j,Ne){if(1&E&&(s.\u0275\u0275contentQuery(Ne,ye,5),s.\u0275\u0275contentQuery(Ne,Ie,7,s.TemplateRef)),2&E){let st;s.\u0275\u0275queryRefresh(st=s.\u0275\u0275loadQuery())&&(j.templateLabel=st.first),s.\u0275\u0275queryRefresh(st=s.\u0275\u0275loadQuery())&&(j._explicitContent=st.first)}},viewQuery:function(E,j){if(1&E&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&E){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._implicitContent=Ne.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:Je,useExisting:O}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Le,decls:1,vars:0,template:function(E,j){1&E&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,Me,1,0,"ng-template"))},encapsulation:2}),O})();const Ge={translateTab:(0,k.X$)("translateTab",[(0,k.SB)("center, void, left-origin-center, right-origin-center",(0,k.oB)({transform:"none"})),(0,k.SB)("left",(0,k.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,k.SB)("right",(0,k.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,k.eR)("* => left, * => right, left => center, right => center",(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,k.eR)("void => left-origin-center",[(0,k.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,k.eR)("void => right-origin-center",[(0,k.oB)({transform:"translate3d(100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let L=(()=>{class O extends m.Pl{constructor(E,j,Ne,st){super(E,j,st),this._host=Ne,this._centeringSub=S.w0.EMPTY,this._leavingSub=S.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,$.O)(this._host._isCenterPosition(this._host._position))).subscribe(E=>{E&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Oe)),s.\u0275\u0275directiveInject(c.DOCUMENT))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),O})(),re=(()=>{class O{constructor(E,j,Ne){this._elementRef=E,this._dir=j,this._dirChangeSubscription=S.w0.EMPTY,this._translateTabComplete=new T.x,this._onCentering=new s.EventEmitter,this._beforeCentering=new s.EventEmitter,this._afterLeavingCenter=new s.EventEmitter,this._onCentered=new s.EventEmitter(!0),this.animationDuration="500ms",j&&(this._dirChangeSubscription=j.change.subscribe(st=>{this._computePositionAnimationState(st),Ne.markForCheck()})),this._translateTabComplete.pipe((0,pe.x)((st,Wt)=>st.fromState===Wt.fromState&&st.toState===Wt.toState)).subscribe(st=>{this._isCenterPosition(st.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(st.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(E){this._positionIndex=E,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(E){const j=this._isCenterPosition(E.toState);this._beforeCentering.emit(j),j&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(E){return"center"==E||"left-origin-center"==E||"right-origin-center"==E}_computePositionAnimationState(E=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==E?"left":"right":this._positionIndex>0?"ltr"==E?"right":"left":"center"}_computePositionFromOrigin(E){const j=this._getLayoutDirection();return"ltr"==j&&E<=0||"rtl"==j&&E>0?"left-origin-center":"right-origin-center"}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ae.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),O})(),Oe=(()=>{class O extends re{constructor(E,j,Ne){super(E,j,Ne)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ae.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},O.\u0275cmp=s.\u0275\u0275defineComponent({type:O,selectors:[["mat-tab-body"]],viewQuery:function(E,j){if(1&E&&s.\u0275\u0275viewQuery(m.Pl,5),2&E){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._portalHost=Ne.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(E,j){1&E&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(st){return j._onTranslateTabStarted(st)})("@translateTab.done",function(st){return j._translateTabComplete.next(st)}),s.\u0275\u0275template(2,qe,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&E&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,te,j._position,s.\u0275\u0275pureFunction1(1,at,j.animationDuration)))},directives:[L],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Ge.translateTab]}}),O})();const ue=new s.InjectionToken("MAT_TABS_CONFIG"),we=(0,_.mixinDisabled)(class{});let Ee=(()=>{class O extends we{constructor(E){super(),this.elementRef=E}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(E,j){2&E&&(s.\u0275\u0275attribute("aria-disabled",!!j.disabled),s.\u0275\u0275classProp("mat-tab-disabled",j.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),O})();const ie=(0,be.i$)({passive:!0});let ht=(()=>{class O{constructor(E,j,Ne,st,Wt,Ht,je){this._elementRef=E,this._changeDetectorRef=j,this._viewportRuler=Ne,this._dir=st,this._ngZone=Wt,this._platform=Ht,this._animationMode=je,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new T.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new T.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,Wt.runOutsideAngular(()=>{(0,d.R)(E.nativeElement,"mouseleave").pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(E){E=(0,Se.su)(E),this._selectedIndex!=E&&(this._selectedIndexChanged=!0,this._selectedIndex=E,this._keyManager&&this._keyManager.updateActiveItem(E))}ngAfterViewInit(){(0,d.R)(this._previousPaginator.nativeElement,"touchstart",ie).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,d.R)(this._nextPaginator.nativeElement,"touchstart",ie).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const E=this._dir?this._dir.change:(0,A.of)("ltr"),j=this._viewportRuler.change(150),Ne=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Ne):Ne(),(0,M.T)(E,j,this._items.changes).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(Ne)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,U.R)(this._destroyed)).subscribe(st=>{this.indexFocused.emit(st),this._setTabFocus(st)})}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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(E){if(!(0,me.Vb)(E))switch(E.keyCode){case me.K5:case me.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(E));break;default:this._keyManager.onKeydown(E)}}_onContentChanges(){const E=this._elementRef.nativeElement.textContent;E!==this._currentTextContent&&(this._currentTextContent=E||"",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(E){!this._isValidIndex(E)||this.focusIndex===E||!this._keyManager||this._keyManager.setActiveItem(E)}_isValidIndex(E){if(!this._items)return!0;const j=this._items?this._items.toArray()[E]:null;return!!j&&!j.disabled}_setTabFocus(E){if(this._showPaginationControls&&this._scrollToLabel(E),this._items&&this._items.length){this._items.toArray()[E].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 E=this.scrollDistance,j="ltr"===this._getLayoutDirection()?-E:E;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(E){this._scrollTo(E)}_scrollHeader(E){return this._scrollTo(this._scrollDistance+("before"==E?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(E){this._stopInterval(),this._scrollHeader(E)}_scrollToLabel(E){if(this.disablePagination)return;const j=this._items?this._items.toArray()[E]:null;if(!j)return;const Ne=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:st,offsetWidth:Wt}=j.elementRef.nativeElement;let Ht,je;"ltr"==this._getLayoutDirection()?(Ht=st,je=Ht+Wt):(je=this._tabListInner.nativeElement.offsetWidth-st,Ht=je-Wt);const Ue=this.scrollDistance,he=this.scrollDistance+Ne;Ht<Ue?this.scrollDistance-=Ue-Ht+60:je>he&&(this.scrollDistance+=je-he+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const E=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;E||(this.scrollDistance=0),E!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=E}}_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 E=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,j=E?E.elementRef.nativeElement:null;j?this._inkBar.alignToElement(j):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(E,j){j&&null!=j.button&&0!==j.button||(this._stopInterval(),(0,b.H)(650,100).pipe((0,U.R)((0,M.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ne,distance:st}=this._scrollHeader(E);(0===st||st>=Ne)&&this._stopInterval()}))}_scrollTo(E){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const j=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(j,E)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:j,distance:this._scrollDistance}}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(ae.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,inputs:{disablePagination:"disablePagination"}}),O})(),ft=(()=>{class O extends ht{constructor(E,j,Ne,st,Wt,Ht,je){super(E,j,Ne,st,Wt,Ht,je),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(E){this._disableRipple=(0,Se.Ig)(E)}_itemSelected(E){E.preventDefault()}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(ae.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),O})(),Dt=(()=>{class O extends ft{constructor(E,j,Ne,st,Wt,Ht,je){super(E,j,Ne,st,Wt,Ht,je)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(ae.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275cmp=s.\u0275\u0275defineComponent({type:O,selectors:[["mat-tab-header"]],contentQueries:function(E,j,Ne){if(1&E&&s.\u0275\u0275contentQuery(Ne,Ee,4),2&E){let st;s.\u0275\u0275queryRefresh(st=s.\u0275\u0275loadQuery())&&(j._items=st)}},viewQuery:function(E,j){if(1&E&&(s.\u0275\u0275viewQuery(ge,7),s.\u0275\u0275viewQuery(Fe,7),s.\u0275\u0275viewQuery(X,7),s.\u0275\u0275viewQuery(le,7),s.\u0275\u0275viewQuery(Ae,5),s.\u0275\u0275viewQuery(ne,5)),2&E){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._inkBar=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._tabListContainer=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._tabList=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._tabListInner=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._nextPaginator=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._previousPaginator=Ne.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(E,j){2&E&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",j._showPaginationControls)("mat-tab-header-rtl","rtl"==j._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Le,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(E,j){1&E&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return j._handlePaginatorClick("before")})("mousedown",function(st){return j._handlePaginatorPress("before",st)})("touchend",function(){return j._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(st){return j._handleKeydown(st)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return j._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(st){return j._handlePaginatorPress("after",st)})("click",function(){return j._handlePaginatorClick("after")})("touchend",function(){return j._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&E&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",j._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",j._disableScrollBefore||j.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===j._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",j._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",j._disableScrollAfter||j.disableRipple))},directives:[_.MatRipple,u.wD,ge],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),O})(),Bt=0;class Jt{}const Ft=(0,_.mixinColor)((0,_.mixinDisableRipple)(class{constructor(O){this._elementRef=O}}),"primary");let pn=(()=>{class O extends Ft{constructor(E,j,Ne,st){var Wt;super(E),this._changeDetectorRef=j,this._animationMode=st,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=S.w0.EMPTY,this._tabLabelSubscription=S.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.EventEmitter,this.focusChange=new s.EventEmitter,this.animationDone=new s.EventEmitter,this.selectedTabChange=new s.EventEmitter(!0),this._groupId=Bt++,this.animationDuration=Ne&&Ne.animationDuration?Ne.animationDuration:"500ms",this.disablePagination=!(!Ne||null==Ne.disablePagination)&&Ne.disablePagination,this.dynamicHeight=!(!Ne||null==Ne.dynamicHeight)&&Ne.dynamicHeight,this.contentTabIndex=null!==(Wt=null==Ne?void 0:Ne.contentTabIndex)&&void 0!==Wt?Wt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(E){this._dynamicHeight=(0,Se.Ig)(E)}get selectedIndex(){return this._selectedIndex}set selectedIndex(E){this._indexToSelect=(0,Se.su)(E,null)}get animationDuration(){return this._animationDuration}set animationDuration(E){this._animationDuration=/^\d+$/.test(E+"")?E+"ms":E}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(E){this._contentTabIndex=(0,Se.su)(E,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(E){const j=this._elementRef.nativeElement;j.classList.remove(`mat-background-${this.backgroundColor}`),E&&j.classList.add(`mat-background-${E}`),this._backgroundColor=E}ngAfterContentChecked(){const E=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=E){const j=null==this._selectedIndex;if(!j){this.selectedTabChange.emit(this._createChangeEvent(E));const Ne=this._tabBodyWrapper.nativeElement;Ne.style.minHeight=Ne.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ne,st)=>Ne.isActive=st===E),j||(this.selectedIndexChange.emit(E),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((j,Ne)=>{j.position=Ne-E,null!=this._selectedIndex&&0==j.position&&!j.origin&&(j.origin=E-this._selectedIndex)}),this._selectedIndex!==E&&(this._selectedIndex=E,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const j=this._tabs.toArray();for(let Ne=0;Ne<j.length;Ne++)if(j[Ne].isActive){this._indexToSelect=this._selectedIndex=Ne;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,$.O)(this._allTabs)).subscribe(E=>{this._tabs.reset(E.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(E){const j=this._tabHeader;j&&(j.focusIndex=E)}_focusChanged(E){this.focusChange.emit(this._createChangeEvent(E))}_createChangeEvent(E){const j=new Jt;return j.index=E,this._tabs&&this._tabs.length&&(j.tab=this._tabs.toArray()[E]),j}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,M.T)(...this._tabs.map(E=>E._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(E){return Math.min(this._tabs.length-1,Math.max(E||0,0))}_getTabLabelId(E){return`mat-tab-label-${this._groupId}-${E}`}_getTabContentId(E){return`mat-tab-content-${this._groupId}-${E}`}_setTabBodyWrapperHeight(E){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const j=this._tabBodyWrapper.nativeElement;j.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(j.style.height=E+"px")}_removeTabBodyWrapperHeight(){const E=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=E.clientHeight,E.style.height="",this.animationDone.emit()}_handleClick(E,j,Ne){E.disabled||(this.selectedIndex=j.focusIndex=Ne)}_getTabIndex(E,j){return E.disabled?null:this.selectedIndex===j?0:-1}_tabFocusChanged(E,j){E&&"mouse"!==E&&"touch"!==E&&(this._tabHeader.focusIndex=j)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.\u0275\u0275InheritDefinitionFeature]}),O})(),en=(()=>{class O extends pn{constructor(E,j,Ne,st){super(E,j,Ne,st)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275cmp=s.\u0275\u0275defineComponent({type:O,selectors:[["mat-tab-group"]],contentQueries:function(E,j,Ne){if(1&E&&s.\u0275\u0275contentQuery(Ne,ut,5),2&E){let st;s.\u0275\u0275queryRefresh(st=s.\u0275\u0275loadQuery())&&(j._allTabs=st)}},viewQuery:function(E,j){if(1&E&&(s.\u0275\u0275viewQuery(Ke,5),s.\u0275\u0275viewQuery(_e,5)),2&E){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._tabBodyWrapper=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._tabHeader=Ne.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(E,j){2&E&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",j.dynamicHeight)("mat-tab-group-inverted-header","below"===j.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:It,useExisting:O}]),s.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(E,j){1&E&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(st){return j._focusChanged(st)})("selectFocusedIndex",function(st){return j.selectedIndex=st}),s.\u0275\u0275template(2,ct,5,15,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,bt,1,10,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&E&&(s.\u0275\u0275property("selectedIndex",j.selectedIndex||0)("disableRipple",j.disableRipple)("disablePagination",j.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",j._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===j._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",j._tabs))},directives:[Dt,Oe,c.NgForOf,Ee,_.MatRipple,i.kH,c.NgClass,c.NgIf,m.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),O})(),$t=0,Tt=(()=>{class O extends ht{constructor(E,j,Ne,st,Wt,Ht,je){super(E,st,Wt,j,Ne,Ht,je),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(E){const j=this._elementRef.nativeElement.classList;j.remove(`mat-background-${this.backgroundColor}`),E&&j.add(`mat-background-${E}`),this._backgroundColor=E}get disableRipple(){return this._disableRipple}set disableRipple(E){this._disableRipple=(0,Se.Ig)(E)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,$.O)(null),(0,U.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const E=this._items.toArray();for(let j=0;j<E.length;j++)if(E[j].active)return this.selectedIndex=j,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=E[j].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ae.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[s.\u0275\u0275InheritDefinitionFeature]}),O})(),ln=(()=>{class O extends Tt{constructor(E,j,Ne,st,Wt,Ht,je){super(E,j,Ne,st,Wt,Ht,je)}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(ae.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275cmp=s.\u0275\u0275defineComponent({type:O,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(E,j,Ne){if(1&E&&s.\u0275\u0275contentQuery(Ne,de,5),2&E){let st;s.\u0275\u0275queryRefresh(st=s.\u0275\u0275loadQuery())&&(j._items=st)}},viewQuery:function(E,j){if(1&E&&(s.\u0275\u0275viewQuery(ge,7),s.\u0275\u0275viewQuery(Fe,7),s.\u0275\u0275viewQuery(X,7),s.\u0275\u0275viewQuery(le,7),s.\u0275\u0275viewQuery(Ae,5),s.\u0275\u0275viewQuery(ne,5)),2&E){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._inkBar=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._tabListContainer=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._tabList=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._tabListInner=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._nextPaginator=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&(j._previousPaginator=Ne.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(E,j){2&E&&(s.\u0275\u0275attribute("role",j._getRole()),s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",j._showPaginationControls)("mat-tab-header-rtl","rtl"==j._getLayoutDirection())("mat-primary","warn"!==j.color&&"accent"!==j.color)("mat-accent","accent"===j.color)("mat-warn","warn"===j.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:Be,ngContentSelectors:Le,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(E,j){1&E&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"button",0,1),s.\u0275\u0275listener("click",function(){return j._handlePaginatorClick("before")})("mousedown",function(st){return j._handlePaginatorPress("before",st)})("touchend",function(){return j._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(st){return j._handleKeydown(st)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return j._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(11,"button",9,10),s.\u0275\u0275listener("mousedown",function(st){return j._handlePaginatorPress("after",st)})("click",function(){return j._handlePaginatorClick("after")})("touchend",function(){return j._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&E&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",j._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",j._disableScrollBefore||j.disableRipple)("disabled",j._disableScrollBefore||null),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===j._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",j._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",j._disableScrollAfter||j.disableRipple)("disabled",j._disableScrollAfter||null))},directives:[_.MatRipple,u.wD,ge],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),O})();const Kt=(0,_.mixinTabIndex)((0,_.mixinDisableRipple)((0,_.mixinDisabled)(class{})));let tn=(()=>{class O extends Kt{constructor(E,j,Ne,st,Wt,Ht){super(),this._tabNavBar=E,this.elementRef=j,this._focusMonitor=Wt,this._isActive=!1,this.id="mat-tab-link-"+$t++,this.rippleConfig=Ne||{},this.tabIndex=parseInt(st)||0,"NoopAnimations"===Ht&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(E){const j=(0,Se.Ig)(E);j!==this._isActive&&(this._isActive=j,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(E){this._tabNavBar.tabPanel&&E.keyCode===me.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var E;return this._tabNavBar.tabPanel?null===(E=this._tabNavBar.tabPanel)||void 0===E?void 0:E.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(Tt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(_.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,inputs:{active:"active",id:"id"},features:[s.\u0275\u0275InheritDefinitionFeature]}),O})(),de=(()=>{class O extends tn{constructor(E,j,Ne,st,Wt,Ht,je,Ue){super(E,j,Wt,Ht,je,Ue),this._tabLinkRipple=new _.RippleRenderer(this,Ne,j,st),this._tabLinkRipple.setupTriggerEvents(j.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return O.\u0275fac=function(E){return new(E||O)(s.\u0275\u0275directiveInject(ln),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(_.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},O.\u0275dir=s.\u0275\u0275defineDirective({type:O,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(E,j){1&E&&s.\u0275\u0275listener("focus",function(){return j._handleFocus()})("keydown",function(st){return j._handleKeydown(st)}),2&E&&(s.\u0275\u0275attribute("aria-controls",j._getAriaControls())("aria-current",j._getAriaCurrent())("aria-disabled",j.disabled)("aria-selected",j._getAriaSelected())("id",j.id)("tabIndex",j._getTabIndex())("role",j._getRole()),s.\u0275\u0275classProp("mat-tab-disabled",j.disabled)("mat-tab-label-active",j.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),O})(),Q=(()=>{class O{constructor(){this.id="mat-tab-nav-panel-"+$t++}}return O.\u0275fac=function(E){return new(E||O)},O.\u0275cmp=s.\u0275\u0275defineComponent({type:O,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(E,j){2&E&&s.\u0275\u0275attribute("aria-labelledby",j._activeTabId)("id",j.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:Le,decls:1,vars:0,template:function(E,j){1&E&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),O})(),N=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=s.\u0275\u0275defineNgModule({type:O}),O.\u0275inj=s.\u0275\u0275defineInjector({imports:[[c.CommonModule,_.MatCommonModule,m.eL,_.MatRippleModule,u.Q8,i.rt],_.MatCommonModule]}),O})()},7238:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>te,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>Fe,MAT_TOOLTIP_SCROLL_STRATEGY:()=>Le,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>qe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>at,MatTooltip:()=>le,MatTooltipModule:()=>Ke,SCROLL_THROTTLE_MS:()=>ae,TOOLTIP_PANEL_CLASS:()=>Se,TooltipComponent:()=>ne,_MatTooltipBase:()=>X,_TooltipComponentBase:()=>Ae,getMatTooltipInvalidPositionError:()=>Me,matTooltipAnimations:()=>U});var i=l(1314),u=l(5664),m=l(9808),c=l(5e3),s=l(508),_=l(9071),D=l(3191),T=l(1159),S=l(5113),d=l(925),A=l(7429),M=l(6758),b=l(2722),k=l(5698),$=l(1777),pe=l(226);const U={tooltipState:(0,$.X$)("state",[(0,$.SB)("initial, void, hidden",(0,$.oB)({opacity:0,transform:"scale(0)"})),(0,$.SB)("visible",(0,$.oB)({transform:"scale(1)"})),(0,$.eR)("* => visible",(0,$.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,$.F4)([(0,$.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,$.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,$.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,$.eR)("* => hidden",(0,$.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,$.oB)({opacity:0})))])},ae=20,Se="mat-tooltip-panel",me="tooltip-panel",be=(0,d.i$)({passive:!0});function Me(_e){return Error(`Tooltip position "${_e}" is invalid.`)}const Le=new c.InjectionToken("mat-tooltip-scroll-strategy");function qe(_e){return()=>_e.scrollStrategies.reposition({scrollThrottle:ae})}const at={provide:Le,deps:[i.aV],useFactory:qe},te=new c.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:Fe});function Fe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let X=(()=>{class _e{constructor(Ce,He,ct,bt,Be,Xe,J,ge,Ie,Re,ye,Je){this._overlay=Ce,this._elementRef=He,this._scrollDispatcher=ct,this._viewContainerRef=bt,this._ngZone=Be,this._platform=Xe,this._ariaDescriber=J,this._focusMonitor=ge,this._dir=Re,this._defaultOptions=ye,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new M.x,this._scrollStrategy=Ie,this._document=Je,ye&&(ye.position&&(this.position=ye.position),ye.touchGestures&&(this.touchGestures=ye.touchGestures)),Re.change.pipe((0,b.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Ce){var He;Ce!==this._position&&(this._position=Ce,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(He=this._tooltipInstance)||void 0===He||He.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Ce){this._disabled=(0,D.Ig)(Ce),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Ce){this._showDelay=(0,D.su)(Ce)}get hideDelay(){return this._hideDelay}set hideDelay(Ce){this._hideDelay=(0,D.su)(Ce)}get message(){return this._message}set message(Ce){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Ce?String(Ce).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(Ce){this._tooltipClass=Ce,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,b.R)(this._destroyed)).subscribe(Ce=>{Ce?"keyboard"===Ce&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Ce=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([He,ct])=>{Ce.removeEventListener(He,ct,be)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Ce,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Ce)}show(Ce=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const He=this._createOverlay();this._detach(),this._portal=this._portal||new A.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=He.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,b.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(Ce)}hide(Ce=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(Ce)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Ce=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),He=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Ce);return He.positionChanges.pipe((0,b.R)(this._destroyed)).subscribe(ct=>{this._updateCurrentPositionClass(ct.connectionPair),this._tooltipInstance&&ct.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:He,panelClass:`${this._cssClassPrefix}-${me}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,b.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,b.R)(this._destroyed)).subscribe(()=>{var ct;return null===(ct=this._tooltipInstance)||void 0===ct?void 0:ct._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,b.R)(this._destroyed)).subscribe(ct=>{this._isTooltipVisible()&&ct.keyCode===T.hY&&!(0,T.Vb)(ct)&&(ct.preventDefault(),ct.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Ce){const He=Ce.getConfig().positionStrategy,ct=this._getOrigin(),bt=this._getOverlayPosition();He.withPositions([this._addOffset(Object.assign(Object.assign({},ct.main),bt.main)),this._addOffset(Object.assign(Object.assign({},ct.fallback),bt.fallback))])}_addOffset(Ce){return Ce}_getOrigin(){const Ce=!this._dir||"ltr"==this._dir.value,He=this.position;let ct;"above"==He||"below"==He?ct={originX:"center",originY:"above"==He?"top":"bottom"}:"before"==He||"left"==He&&Ce||"right"==He&&!Ce?ct={originX:"start",originY:"center"}:("after"==He||"right"==He&&Ce||"left"==He&&!Ce)&&(ct={originX:"end",originY:"center"});const{x:bt,y:Be}=this._invertPosition(ct.originX,ct.originY);return{main:ct,fallback:{originX:bt,originY:Be}}}_getOverlayPosition(){const Ce=!this._dir||"ltr"==this._dir.value,He=this.position;let ct;"above"==He?ct={overlayX:"center",overlayY:"bottom"}:"below"==He?ct={overlayX:"center",overlayY:"top"}:"before"==He||"left"==He&&Ce||"right"==He&&!Ce?ct={overlayX:"end",overlayY:"center"}:("after"==He||"right"==He&&Ce||"left"==He&&!Ce)&&(ct={overlayX:"start",overlayY:"center"});const{x:bt,y:Be}=this._invertPosition(ct.overlayX,ct.overlayY);return{main:ct,fallback:{overlayX:bt,overlayY:Be}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,k.q)(1),(0,b.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Ce){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Ce,this._tooltipInstance._markForCheck())}_invertPosition(Ce,He){return"above"===this.position||"below"===this.position?"top"===He?He="bottom":"bottom"===He&&(He="top"):"end"===Ce?Ce="start":"start"===Ce&&(Ce="end"),{x:Ce,y:He}}_updateCurrentPositionClass(Ce){const{overlayY:He,originX:ct,originY:bt}=Ce;let Be;if(Be="center"===He?this._dir&&"rtl"===this._dir.value?"end"===ct?"left":"right":"start"===ct?"left":"right":"bottom"===He&&"top"===bt?"above":"below",Be!==this._currentPosition){const Xe=this._overlayRef;if(Xe){const J=`${this._cssClassPrefix}-${me}-`;Xe.removePanelClass(J+this._currentPosition),Xe.addPanelClass(J+Be)}this._currentPosition=Be}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Ce=[];if(this._platformSupportsMouseEvents())Ce.push(["mouseleave",()=>this.hide()],["wheel",He=>this._wheelListener(He)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const He=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Ce.push(["touchend",He],["touchcancel",He])}this._addListeners(Ce),this._passiveListeners.push(...Ce)}_addListeners(Ce){Ce.forEach(([He,ct])=>{this._elementRef.nativeElement.addEventListener(He,ct,be)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Ce){if(this._isTooltipVisible()){const He=this._document.elementFromPoint(Ce.clientX,Ce.clientY),ct=this._elementRef.nativeElement;He!==ct&&!ct.contains(He)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Ce=this.touchGestures;if("off"!==Ce){const He=this._elementRef.nativeElement,ct=He.style;("on"===Ce||"INPUT"!==He.nodeName&&"TEXTAREA"!==He.nodeName)&&(ct.userSelect=ct.msUserSelect=ct.webkitUserSelect=ct.MozUserSelect="none"),("on"===Ce||!He.draggable)&&(ct.webkitUserDrag="none"),ct.touchAction="none",ct.webkitTapHighlightColor="transparent"}}}return _e.\u0275fac=function(Ce){c.\u0275\u0275invalidFactory()},_e.\u0275dir=c.\u0275\u0275defineDirective({type:_e,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),_e})(),le=(()=>{class _e extends X{constructor(Ce,He,ct,bt,Be,Xe,J,ge,Ie,Re,ye,Je){super(Ce,He,ct,bt,Be,Xe,J,ge,Ie,Re,ye,Je),this._tooltipComponent=ne}}return _e.\u0275fac=function(Ce){return new(Ce||_e)(c.\u0275\u0275directiveInject(i.aV),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(_.mF),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(d.t4),c.\u0275\u0275directiveInject(u.$s),c.\u0275\u0275directiveInject(u.tE),c.\u0275\u0275directiveInject(Le),c.\u0275\u0275directiveInject(pe.Is,8),c.\u0275\u0275directiveInject(te,8),c.\u0275\u0275directiveInject(m.DOCUMENT))},_e.\u0275dir=c.\u0275\u0275defineDirective({type:_e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[c.\u0275\u0275InheritDefinitionFeature]}),_e})(),Ae=(()=>{class _e{constructor(Ce){this._changeDetectorRef=Ce,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new M.x}show(Ce){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},Ce)}hide(Ce){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},Ce)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(Ce){const He=Ce.toState;"hidden"===He&&!this.isVisible()&&this._onHide.next(),("visible"===He||"hidden"===He)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return _e.\u0275fac=function(Ce){return new(Ce||_e)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},_e.\u0275dir=c.\u0275\u0275defineDirective({type:_e}),_e})(),ne=(()=>{class _e extends Ae{constructor(Ce,He){super(Ce),this._breakpointObserver=He,this._isHandset=this._breakpointObserver.observe(S.Breakpoints.Handset)}}return _e.\u0275fac=function(Ce){return new(Ce||_e)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(S.BreakpointObserver))},_e.\u0275cmp=c.\u0275\u0275defineComponent({type:_e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Ce,He){2&Ce&&c.\u0275\u0275styleProp("zoom","visible"===He._visibility?1:null)},features:[c.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(Ce,He){if(1&Ce&&(c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("@state.start",function(){return He._animationStart()})("@state.done",function(bt){return He._animationDone(bt)}),c.\u0275\u0275pipe(1,"async"),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd()),2&Ce){let ct;c.\u0275\u0275classProp("mat-tooltip-handset",null==(ct=c.\u0275\u0275pipeBind1(1,5,He._isHandset))?null:ct.matches),c.\u0275\u0275property("ngClass",He.tooltipClass)("@state",He._visibility),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(He.message)}},directives:[m.NgClass],pipes:[m.AsyncPipe],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[U.tooltipState]},changeDetection:0}),_e})(),Ke=(()=>{class _e{}return _e.\u0275fac=function(Ce){return new(Ce||_e)},_e.\u0275mod=c.\u0275\u0275defineNgModule({type:_e}),_e.\u0275inj=c.\u0275\u0275defineInjector({providers:[at],imports:[[u.rt,m.CommonModule,i.U8,s.MatCommonModule],s.MatCommonModule,_.ZD]}),_e})()},6360:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ANIMATION_MODULE_TYPE:()=>ji,BrowserAnimationsModule:()=>Ii,NoopAnimationsModule:()=>Cr,\u0275AnimationRenderer:()=>vi,\u0275AnimationRendererFactory:()=>mi,\u0275BrowserAnimationBuilder:()=>Mi,\u0275BrowserAnimationFactory:()=>sr,\u0275InjectableAnimationEngine:()=>Si});var i=l(5e3),u=l(2313),m=l(1777);function c(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(Y){switch(Y.length){case 0:return new m.ZN;case 1:return Y[0];default:return new m.ZE(Y)}}function D(Y,f,p,x,G={},fe={}){const y=[],R=[];let C=-1,V=null;if(x.forEach(De=>{const Ye=De.offset,ot=Ye==C,Et=ot&&V||{};Object.keys(De).forEach(Pt=>{let xt=Pt,Vt=De[Pt];if("offset"!==Pt)switch(xt=f.normalizePropertyName(xt,y),Vt){case m.k1:Vt=G[Pt];break;case m.l3:Vt=fe[Pt];break;default:Vt=f.normalizeStyleValue(Pt,xt,Vt,y)}Et[xt]=Vt}),ot||R.push(Et),V=Et,C=Ye}),y.length){const De="\n - ";throw new Error(`Unable to animate due to the following errors:${De}${y.join(De)}`)}return R}function T(Y,f,p,x){switch(f){case"start":Y.onStart(()=>x(p&&S(p,"start",Y)));break;case"done":Y.onDone(()=>x(p&&S(p,"done",Y)));break;case"destroy":Y.onDestroy(()=>x(p&&S(p,"destroy",Y)))}}function S(Y,f,p){const x=p.totalTime,fe=d(Y.element,Y.triggerName,Y.fromState,Y.toState,f||Y.phaseName,null==x?Y.totalTime:x,!!p.disabled),y=Y._data;return null!=y&&(fe._data=y),fe}function d(Y,f,p,x,G="",fe=0,y){return{element:Y,triggerName:f,fromState:p,toState:x,phaseName:G,totalTime:fe,disabled:!!y}}function A(Y,f,p){let x;return Y instanceof Map?(x=Y.get(f),x||Y.set(f,x=p)):(x=Y[f],x||(x=Y[f]=p)),x}function M(Y){const f=Y.indexOf(":");return[Y.substring(1,f),Y.substr(f+1)]}let b=(Y,f)=>!1,k=(Y,f,p)=>[];(s()||"undefined"!=typeof Element)&&(b=c()?(Y,f)=>{for(;f&&f!==document.documentElement;){if(f===Y)return!0;f=f.parentNode||f.host}return!1}:(Y,f)=>Y.contains(f),k=(Y,f,p)=>{if(p)return Array.from(Y.querySelectorAll(f));const x=Y.querySelector(f);return x?[x]:[]});let U=null,ae=!1;function Se(Y){U||(U=function me(){return"undefined"!=typeof document?document.body:null}()||{},ae=!!U.style&&"WebkitAppearance"in U.style);let f=!0;return U.style&&!function pe(Y){return"ebkit"==Y.substring(1,6)}(Y)&&(f=Y in U.style,!f&&ae&&(f="Webkit"+Y.charAt(0).toUpperCase()+Y.substr(1)in U.style)),f}const be=b,se=k;let Le=(()=>{class Y{validateStyleProperty(p){return Se(p)}matchesElement(p,x){return!1}containsElement(p,x){return be(p,x)}query(p,x,G){return se(p,x,G)}computeStyle(p,x,G){return G||""}animate(p,x,G,fe,y,R=[],C){return new m.ZN(G,fe)}}return Y.\u0275fac=function(p){return new(p||Y)},Y.\u0275prov=i.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac}),Y})(),qe=(()=>{class Y{}return Y.NOOP=new Le,Y})();const X="ng-enter",le="ng-leave",Ae="ng-trigger",ne=".ng-trigger",Ke="ng-animating",_e=".ng-animating";function tt(Y){if("number"==typeof Y)return Y;const f=Y.match(/^(-?[\.\d]+)(m?s)/);return!f||f.length<2?0:Ce(parseFloat(f[1]),f[2])}function Ce(Y,f){return"s"===f?1e3*Y:Y}function He(Y,f,p){return Y.hasOwnProperty("duration")?Y:function ct(Y,f,p){let G,fe=0,y="";if("string"==typeof Y){const R=Y.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===R)return f.push(`The provided timing value "${Y}" is invalid.`),{duration:0,delay:0,easing:""};G=Ce(parseFloat(R[1]),R[2]);const C=R[3];null!=C&&(fe=Ce(parseFloat(C),R[4]));const V=R[5];V&&(y=V)}else G=Y;if(!p){let R=!1,C=f.length;G<0&&(f.push("Duration values below 0 are not allowed for this animation step."),R=!0),fe<0&&(f.push("Delay values below 0 are not allowed for this animation step."),R=!0),R&&f.splice(C,0,`The provided timing value "${Y}" is invalid.`)}return{duration:G,delay:fe,easing:y}}(Y,f,p)}function bt(Y,f={}){return Object.keys(Y).forEach(p=>{f[p]=Y[p]}),f}function Xe(Y,f,p={}){if(f)for(let x in Y)p[x]=Y[x];else bt(Y,p);return p}function J(Y,f,p){return p?f+":"+p+";":""}function ge(Y){let f="";for(let p=0;p<Y.style.length;p++){const x=Y.style.item(p);f+=J(0,x,Y.style.getPropertyValue(x))}for(const p in Y.style)Y.style.hasOwnProperty(p)&&!p.startsWith("_")&&(f+=J(0,re(p),Y.style[p]));Y.setAttribute("style",f)}function Ie(Y,f,p){Y.style&&(Object.keys(f).forEach(x=>{const G=L(x);p&&!p.hasOwnProperty(x)&&(p[x]=Y.style[G]),Y.style[G]=f[x]}),s()&&ge(Y))}function Re(Y,f){Y.style&&(Object.keys(f).forEach(p=>{const x=L(p);Y.style[x]=""}),s()&&ge(Y))}function ye(Y){return Array.isArray(Y)?1==Y.length?Y[0]:(0,m.vP)(Y):Y}const mt=new RegExp("{{\\s*(.+?)\\s*}}","g");function yt(Y){let f=[];if("string"==typeof Y){let p;for(;p=mt.exec(Y);)f.push(p[1]);mt.lastIndex=0}return f}function It(Y,f,p){const x=Y.toString(),G=x.replace(mt,(fe,y)=>{let R=f[y];return f.hasOwnProperty(y)||(p.push(`Please provide a value for the animation param ${y}`),R=""),R.toString()});return G==x?Y:G}function ut(Y){const f=[];let p=Y.next();for(;!p.done;)f.push(p.value),p=Y.next();return f}const Ge=/-+([a-z0-9])/g;function L(Y){return Y.replace(Ge,(...f)=>f[1].toUpperCase())}function re(Y){return Y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function we(Y,f,p){switch(f.type){case 7:return Y.visitTrigger(f,p);case 0:return Y.visitState(f,p);case 1:return Y.visitTransition(f,p);case 2:return Y.visitSequence(f,p);case 3:return Y.visitGroup(f,p);case 4:return Y.visitAnimate(f,p);case 5:return Y.visitKeyframes(f,p);case 6:return Y.visitStyle(f,p);case 8:return Y.visitReference(f,p);case 9:return Y.visitAnimateChild(f,p);case 10:return Y.visitAnimateRef(f,p);case 11:return Y.visitQuery(f,p);case 12:return Y.visitStagger(f,p);default:throw new Error(`Unable to resolve animation metadata node #${f.type}`)}}function Ee(Y,f){return window.getComputedStyle(Y)[f]}function ve(Y,f){const p=[];return"string"==typeof Y?Y.split(/\s*,\s*/).forEach(x=>function Ze(Y,f,p){if(":"==Y[0]){const C=function it(Y,f){switch(Y){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,x)=>parseFloat(x)>parseFloat(p);case":decrement":return(p,x)=>parseFloat(x)<parseFloat(p);default:return f.push(`The transition alias value "${Y}" is not supported`),"* => *"}}(Y,p);if("function"==typeof C)return void f.push(C);Y=C}const x=Y.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==x||x.length<4)return p.push(`The provided transition expression "${Y}" is not supported`),f;const G=x[1],fe=x[2],y=x[3];f.push(Dt(G,y));"<"==fe[0]&&!("*"==G&&"*"==y)&&f.push(Dt(y,G))}(x,p,f)):p.push(Y),p}const ht=new Set(["true","1"]),ft=new Set(["false","0"]);function Dt(Y,f){const p=ht.has(Y)||ft.has(Y),x=ht.has(f)||ft.has(f);return(G,fe)=>{let y="*"==Y||Y==G,R="*"==f||f==fe;return!y&&p&&"boolean"==typeof G&&(y=G?ht.has(Y):ft.has(Y)),!R&&x&&"boolean"==typeof fe&&(R=fe?ht.has(f):ft.has(f)),y&&R}}const Jt=new RegExp("s*:selfs*,?","g");function Ft(Y,f,p){return new en(Y).build(f,p)}class en{constructor(f){this._driver=f}build(f,p){const x=new ln(p);return this._resetContextStyleTimingState(x),we(this,ye(f),x)}_resetContextStyleTimingState(f){f.currentQuerySelector="",f.collectedStyles={},f.collectedStyles[""]={},f.currentTime=0}visitTrigger(f,p){let x=p.queryCount=0,G=p.depCount=0;const fe=[],y=[];return"@"==f.name.charAt(0)&&p.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),f.definitions.forEach(R=>{if(this._resetContextStyleTimingState(p),0==R.type){const C=R,V=C.name;V.toString().split(/\s*,\s*/).forEach(De=>{C.name=De,fe.push(this.visitState(C,p))}),C.name=V}else if(1==R.type){const C=this.visitTransition(R,p);x+=C.queryCount,G+=C.depCount,y.push(C)}else p.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:f.name,states:fe,transitions:y,queryCount:x,depCount:G,options:null}}visitState(f,p){const x=this.visitStyle(f.styles,p),G=f.options&&f.options.params||null;if(x.containsDynamicStyles){const fe=new Set,y=G||{};if(x.styles.forEach(R=>{if(tn(R)){const C=R;Object.keys(C).forEach(V=>{yt(C[V]).forEach(De=>{y.hasOwnProperty(De)||fe.add(De)})})}}),fe.size){const R=ut(fe.values());p.errors.push(`state("${f.name}", ...) must define default values for all the following style substitutions: ${R.join(", ")}`)}}return{type:0,name:f.name,style:x,options:G?{params:G}:null}}visitTransition(f,p){p.queryCount=0,p.depCount=0;const x=we(this,ye(f.animation),p);return{type:1,matchers:ve(f.expr,p.errors),animation:x,queryCount:p.queryCount,depCount:p.depCount,options:Q(f.options)}}visitSequence(f,p){return{type:2,steps:f.steps.map(x=>we(this,x,p)),options:Q(f.options)}}visitGroup(f,p){const x=p.currentTime;let G=0;const fe=f.steps.map(y=>{p.currentTime=x;const R=we(this,y,p);return G=Math.max(G,p.currentTime),R});return p.currentTime=G,{type:3,steps:fe,options:Q(f.options)}}visitAnimate(f,p){const x=function de(Y,f){let p=null;if(Y.hasOwnProperty("duration"))p=Y;else if("number"==typeof Y)return N(He(Y,f).duration,0,"");const x=Y;if(x.split(/\s+/).some(fe=>"{"==fe.charAt(0)&&"{"==fe.charAt(1))){const fe=N(0,0,"");return fe.dynamic=!0,fe.strValue=x,fe}return p=p||He(x,f),N(p.duration,p.delay,p.easing)}(f.timings,p.errors);p.currentAnimateTimings=x;let G,fe=f.styles?f.styles:(0,m.oB)({});if(5==fe.type)G=this.visitKeyframes(fe,p);else{let y=f.styles,R=!1;if(!y){R=!0;const V={};x.easing&&(V.easing=x.easing),y=(0,m.oB)(V)}p.currentTime+=x.duration+x.delay;const C=this.visitStyle(y,p);C.isEmptyStep=R,G=C}return p.currentAnimateTimings=null,{type:4,timings:x,style:G,options:null}}visitStyle(f,p){const x=this._makeStyleAst(f,p);return this._validateStyleAst(x,p),x}_makeStyleAst(f,p){const x=[];Array.isArray(f.styles)?f.styles.forEach(y=>{"string"==typeof y?y==m.l3?x.push(y):p.errors.push(`The provided style string value ${y} is not allowed.`):x.push(y)}):x.push(f.styles);let G=!1,fe=null;return x.forEach(y=>{if(tn(y)){const R=y,C=R.easing;if(C&&(fe=C,delete R.easing),!G)for(let V in R)if(R[V].toString().indexOf("{{")>=0){G=!0;break}}}),{type:6,styles:x,easing:fe,offset:f.offset,containsDynamicStyles:G,options:null}}_validateStyleAst(f,p){const x=p.currentAnimateTimings;let G=p.currentTime,fe=p.currentTime;x&&fe>0&&(fe-=x.duration+x.delay),f.styles.forEach(y=>{"string"!=typeof y&&Object.keys(y).forEach(R=>{if(!this._driver.validateStyleProperty(R))return void p.errors.push(`The provided animation property "${R}" is not a supported CSS property for animations`);const C=p.collectedStyles[p.currentQuerySelector],V=C[R];let De=!0;V&&(fe!=G&&fe>=V.startTime&&G<=V.endTime&&(p.errors.push(`The CSS property "${R}" that exists between the times of "${V.startTime}ms" and "${V.endTime}ms" is also being animated in a parallel animation between the times of "${fe}ms" and "${G}ms"`),De=!1),fe=V.startTime),De&&(C[R]={startTime:fe,endTime:G}),p.options&&function Je(Y,f,p){const x=f.params||{},G=yt(Y);G.length&&G.forEach(fe=>{x.hasOwnProperty(fe)||p.push(`Unable to resolve the local animation param ${fe} in the given list of values`)})}(y[R],p.options,p.errors)})})}visitKeyframes(f,p){const x={type:5,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push("keyframes() must be placed inside of a call to animate()"),x;let fe=0;const y=[];let R=!1,C=!1,V=0;const De=f.steps.map(Qt=>{const an=this._makeStyleAst(Qt,p);let F=null!=an.offset?an.offset:function Kt(Y){if("string"==typeof Y)return null;let f=null;if(Array.isArray(Y))Y.forEach(p=>{if(tn(p)&&p.hasOwnProperty("offset")){const x=p;f=parseFloat(x.offset),delete x.offset}});else if(tn(Y)&&Y.hasOwnProperty("offset")){const p=Y;f=parseFloat(p.offset),delete p.offset}return f}(an.styles),P=0;return null!=F&&(fe++,P=an.offset=F),C=C||P<0||P>1,R=R||P<V,V=P,y.push(P),an});C&&p.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),R&&p.errors.push("Please ensure that all keyframe offsets are in order");const Ye=f.steps.length;let ot=0;fe>0&&fe<Ye?p.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==fe&&(ot=1/(Ye-1));const Et=Ye-1,Pt=p.currentTime,xt=p.currentAnimateTimings,Vt=xt.duration;return De.forEach((Qt,an)=>{const F=ot>0?an==Et?1:ot*an:y[an],P=F*Vt;p.currentTime=Pt+xt.delay+P,xt.duration=P,this._validateStyleAst(Qt,p),Qt.offset=F,x.styles.push(Qt)}),x}visitReference(f,p){return{type:8,animation:we(this,ye(f.animation),p),options:Q(f.options)}}visitAnimateChild(f,p){return p.depCount++,{type:9,options:Q(f.options)}}visitAnimateRef(f,p){return{type:10,animation:this.visitReference(f.animation,p),options:Q(f.options)}}visitQuery(f,p){const x=p.currentQuerySelector,G=f.options||{};p.queryCount++,p.currentQuery=f;const[fe,y]=function $t(Y){const f=!!Y.split(/\s*,\s*/).find(p=>":self"==p);return f&&(Y=Y.replace(Jt,"")),Y=Y.replace(/@\*/g,ne).replace(/@\w+/g,p=>ne+"-"+p.substr(1)).replace(/:animating/g,_e),[Y,f]}(f.selector);p.currentQuerySelector=x.length?x+" "+fe:fe,A(p.collectedStyles,p.currentQuerySelector,{});const R=we(this,ye(f.animation),p);return p.currentQuery=null,p.currentQuerySelector=x,{type:11,selector:fe,limit:G.limit||0,optional:!!G.optional,includeSelf:y,animation:R,originalSelector:f.selector,options:Q(f.options)}}visitStagger(f,p){p.currentQuery||p.errors.push("stagger() can only be used inside of query()");const x="full"===f.timings?{duration:0,delay:0,easing:"full"}:He(f.timings,p.errors,!0);return{type:12,animation:we(this,ye(f.animation),p),timings:x,options:null}}}class ln{constructor(f){this.errors=f,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function tn(Y){return!Array.isArray(Y)&&"object"==typeof Y}function Q(Y){return Y?(Y=bt(Y)).params&&(Y.params=function Tt(Y){return Y?bt(Y):null}(Y.params)):Y={},Y}function N(Y,f,p){return{duration:Y,delay:f,easing:p}}function O(Y,f,p,x,G,fe,y=null,R=!1){return{type:1,element:Y,keyframes:f,preStyleProps:p,postStyleProps:x,duration:G,delay:fe,totalTime:G+fe,easing:y,subTimeline:R}}class q{constructor(){this._map=new Map}get(f){return this._map.get(f)||[]}append(f,p){let x=this._map.get(f);x||this._map.set(f,x=[]),x.push(...p)}has(f){return this._map.has(f)}clear(){this._map.clear()}}const Ne=new RegExp(":enter","g"),Wt=new RegExp(":leave","g");function Ht(Y,f,p,x,G,fe={},y={},R,C,V=[]){return(new je).buildKeyframes(Y,f,p,x,G,fe,y,R,C,V)}class je{buildKeyframes(f,p,x,G,fe,y,R,C,V,De=[]){V=V||new q;const Ye=new he(f,p,V,G,fe,De,[]);Ye.options=C,Ye.currentTimeline.setStyles([y],null,Ye.errors,C),we(this,x,Ye);const ot=Ye.timelines.filter(Et=>Et.containsAnimation());if(Object.keys(R).length){let Et;for(let Pt=ot.length-1;Pt>=0;Pt--){const xt=ot[Pt];if(xt.element===p){Et=xt;break}}Et&&!Et.allowOnlyTimelineStyles()&&Et.setStyles([R],null,Ye.errors,C)}return ot.length?ot.map(Et=>Et.buildKeyframes()):[O(p,[],[],[],0,0,"",!1)]}visitTrigger(f,p){}visitState(f,p){}visitTransition(f,p){}visitAnimateChild(f,p){const x=p.subInstructions.get(p.element);if(x){const G=p.createSubContext(f.options),fe=p.currentTimeline.currentTime,y=this._visitSubInstructions(x,G,G.options);fe!=y&&p.transformIntoNewTimeline(y)}p.previousNode=f}visitAnimateRef(f,p){const x=p.createSubContext(f.options);x.transformIntoNewTimeline(),this.visitReference(f.animation,x),p.transformIntoNewTimeline(x.currentTimeline.currentTime),p.previousNode=f}_visitSubInstructions(f,p,x){let fe=p.currentTimeline.currentTime;const y=null!=x.duration?tt(x.duration):null,R=null!=x.delay?tt(x.delay):null;return 0!==y&&f.forEach(C=>{const V=p.appendInstructionToTimeline(C,y,R);fe=Math.max(fe,V.duration+V.delay)}),fe}visitReference(f,p){p.updateOptions(f.options,!0),we(this,f.animation,p),p.previousNode=f}visitSequence(f,p){const x=p.subContextCount;let G=p;const fe=f.options;if(fe&&(fe.params||fe.delay)&&(G=p.createSubContext(fe),G.transformIntoNewTimeline(),null!=fe.delay)){6==G.previousNode.type&&(G.currentTimeline.snapshotCurrentStyles(),G.previousNode=Ue);const y=tt(fe.delay);G.delayNextStep(y)}f.steps.length&&(f.steps.forEach(y=>we(this,y,G)),G.currentTimeline.applyStylesToKeyframe(),G.subContextCount>x&&G.transformIntoNewTimeline()),p.previousNode=f}visitGroup(f,p){const x=[];let G=p.currentTimeline.currentTime;const fe=f.options&&f.options.delay?tt(f.options.delay):0;f.steps.forEach(y=>{const R=p.createSubContext(f.options);fe&&R.delayNextStep(fe),we(this,y,R),G=Math.max(G,R.currentTimeline.currentTime),x.push(R.currentTimeline)}),x.forEach(y=>p.currentTimeline.mergeTimelineCollectedStyles(y)),p.transformIntoNewTimeline(G),p.previousNode=f}_visitTiming(f,p){if(f.dynamic){const x=f.strValue;return He(p.params?It(x,p.params,p.errors):x,p.errors)}return{duration:f.duration,delay:f.delay,easing:f.easing}}visitAnimate(f,p){const x=p.currentAnimateTimings=this._visitTiming(f.timings,p),G=p.currentTimeline;x.delay&&(p.incrementTime(x.delay),G.snapshotCurrentStyles());const fe=f.style;5==fe.type?this.visitKeyframes(fe,p):(p.incrementTime(x.duration),this.visitStyle(fe,p),G.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=f}visitStyle(f,p){const x=p.currentTimeline,G=p.currentAnimateTimings;!G&&x.getCurrentStyleProperties().length&&x.forwardFrame();const fe=G&&G.easing||f.easing;f.isEmptyStep?x.applyEmptyStep(fe):x.setStyles(f.styles,fe,p.errors,p.options),p.previousNode=f}visitKeyframes(f,p){const x=p.currentAnimateTimings,G=p.currentTimeline.duration,fe=x.duration,R=p.createSubContext().currentTimeline;R.easing=x.easing,f.styles.forEach(C=>{R.forwardTime((C.offset||0)*fe),R.setStyles(C.styles,C.easing,p.errors,p.options),R.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(R),p.transformIntoNewTimeline(G+fe),p.previousNode=f}visitQuery(f,p){const x=p.currentTimeline.currentTime,G=f.options||{},fe=G.delay?tt(G.delay):0;fe&&(6===p.previousNode.type||0==x&&p.currentTimeline.getCurrentStyleProperties().length)&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=Ue);let y=x;const R=p.invokeQuery(f.selector,f.originalSelector,f.limit,f.includeSelf,!!G.optional,p.errors);p.currentQueryTotal=R.length;let C=null;R.forEach((V,De)=>{p.currentQueryIndex=De;const Ye=p.createSubContext(f.options,V);fe&&Ye.delayNextStep(fe),V===p.element&&(C=Ye.currentTimeline),we(this,f.animation,Ye),Ye.currentTimeline.applyStylesToKeyframe(),y=Math.max(y,Ye.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(y),C&&(p.currentTimeline.mergeTimelineCollectedStyles(C),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=f}visitStagger(f,p){const x=p.parentContext,G=p.currentTimeline,fe=f.timings,y=Math.abs(fe.duration),R=y*(p.currentQueryTotal-1);let C=y*p.currentQueryIndex;switch(fe.duration<0?"reverse":fe.easing){case"reverse":C=R-C;break;case"full":C=x.currentStaggerTime}const De=p.currentTimeline;C&&De.delayNextStep(C);const Ye=De.currentTime;we(this,f.animation,p),p.previousNode=f,x.currentStaggerTime=G.currentTime-Ye+(G.startTime-x.currentTimeline.startTime)}}const Ue={};class he{constructor(f,p,x,G,fe,y,R,C){this._driver=f,this.element=p,this.subInstructions=x,this._enterClassName=G,this._leaveClassName=fe,this.errors=y,this.timelines=R,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ue,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new $e(this._driver,p,0),R.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(f,p){if(!f)return;const x=f;let G=this.options;null!=x.duration&&(G.duration=tt(x.duration)),null!=x.delay&&(G.delay=tt(x.delay));const fe=x.params;if(fe){let y=G.params;y||(y=this.options.params={}),Object.keys(fe).forEach(R=>{(!p||!y.hasOwnProperty(R))&&(y[R]=It(fe[R],y,this.errors))})}}_copyOptions(){const f={};if(this.options){const p=this.options.params;if(p){const x=f.params={};Object.keys(p).forEach(G=>{x[G]=p[G]})}}return f}createSubContext(f=null,p,x){const G=p||this.element,fe=new he(this._driver,G,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(G,x||0));return fe.previousNode=this.previousNode,fe.currentAnimateTimings=this.currentAnimateTimings,fe.options=this._copyOptions(),fe.updateOptions(f),fe.currentQueryIndex=this.currentQueryIndex,fe.currentQueryTotal=this.currentQueryTotal,fe.parentContext=this,this.subContextCount++,fe}transformIntoNewTimeline(f){return this.previousNode=Ue,this.currentTimeline=this.currentTimeline.fork(this.element,f),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(f,p,x){const G={duration:null!=p?p:f.duration,delay:this.currentTimeline.currentTime+(null!=x?x:0)+f.delay,easing:""},fe=new dt(this._driver,f.element,f.keyframes,f.preStyleProps,f.postStyleProps,G,f.stretchStartingKeyframe);return this.timelines.push(fe),G}incrementTime(f){this.currentTimeline.forwardTime(this.currentTimeline.duration+f)}delayNextStep(f){f>0&&this.currentTimeline.delayNextStep(f)}invokeQuery(f,p,x,G,fe,y){let R=[];if(G&&R.push(this.element),f.length>0){f=(f=f.replace(Ne,"."+this._enterClassName)).replace(Wt,"."+this._leaveClassName);let V=this._driver.query(this.element,f,1!=x);0!==x&&(V=x<0?V.slice(V.length+x,V.length):V.slice(0,x)),R.push(...V)}return!fe&&0==R.length&&y.push(`\`query("${p}")\` returned zero elements. (Use \`query("${p}", { optional: true })\` if you wish to allow this.)`),R}}class $e{constructor(f,p,x,G){this._driver=f,this.element=p,this.startTime=x,this._elementTimelineStylesLookup=G,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(f){const p=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||p?(this.forwardTime(this.currentTime+f),p&&this.snapshotCurrentStyles()):this.startTime+=f}fork(f,p){return this.applyStylesToKeyframe(),new $e(this._driver,f,p||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(f){this.applyStylesToKeyframe(),this.duration=f,this._loadKeyframe()}_updateStyle(f,p){this._localTimelineStyles[f]=p,this._globalTimelineStyles[f]=p,this._styleSummary[f]={time:this.currentTime,value:p}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(f){f&&(this._previousKeyframe.easing=f),Object.keys(this._globalTimelineStyles).forEach(p=>{this._backFill[p]=this._globalTimelineStyles[p]||m.l3,this._currentKeyframe[p]=m.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(f,p,x,G){p&&(this._previousKeyframe.easing=p);const fe=G&&G.params||{},y=function Rt(Y,f){const p={};let x;return Y.forEach(G=>{"*"===G?(x=x||Object.keys(f),x.forEach(fe=>{p[fe]=m.l3})):Xe(G,!1,p)}),p}(f,this._globalTimelineStyles);Object.keys(y).forEach(R=>{const C=It(y[R],fe,x);this._pendingStyles[R]=C,this._localTimelineStyles.hasOwnProperty(R)||(this._backFill[R]=this._globalTimelineStyles.hasOwnProperty(R)?this._globalTimelineStyles[R]:m.l3),this._updateStyle(R,C)})}applyStylesToKeyframe(){const f=this._pendingStyles,p=Object.keys(f);0!=p.length&&(this._pendingStyles={},p.forEach(x=>{this._currentKeyframe[x]=f[x]}),Object.keys(this._localTimelineStyles).forEach(x=>{this._currentKeyframe.hasOwnProperty(x)||(this._currentKeyframe[x]=this._localTimelineStyles[x])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(f=>{const p=this._localTimelineStyles[f];this._pendingStyles[f]=p,this._updateStyle(f,p)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const f=[];for(let p in this._currentKeyframe)f.push(p);return f}mergeTimelineCollectedStyles(f){Object.keys(f._styleSummary).forEach(p=>{const x=this._styleSummary[p],G=f._styleSummary[p];(!x||G.time>x.time)&&this._updateStyle(p,G.value)})}buildKeyframes(){this.applyStylesToKeyframe();const f=new Set,p=new Set,x=1===this._keyframes.size&&0===this.duration;let G=[];this._keyframes.forEach((R,C)=>{const V=Xe(R,!0);Object.keys(V).forEach(De=>{const Ye=V[De];Ye==m.k1?f.add(De):Ye==m.l3&&p.add(De)}),x||(V.offset=C/this.duration),G.push(V)});const fe=f.size?ut(f.values()):[],y=p.size?ut(p.values()):[];if(x){const R=G[0],C=bt(R);R.offset=0,C.offset=1,G=[R,C]}return O(this.element,G,fe,y,this.duration,this.startTime,this.easing,!1)}}class dt extends $e{constructor(f,p,x,G,fe,y,R=!1){super(f,p,y.delay),this.keyframes=x,this.preStyleProps=G,this.postStyleProps=fe,this._stretchStartingKeyframe=R,this.timings={duration:y.duration,delay:y.delay,easing:y.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let f=this.keyframes,{delay:p,duration:x,easing:G}=this.timings;if(this._stretchStartingKeyframe&&p){const fe=[],y=x+p,R=p/y,C=Xe(f[0],!1);C.offset=0,fe.push(C);const V=Xe(f[0],!1);V.offset=Nt(R),fe.push(V);const De=f.length-1;for(let Ye=1;Ye<=De;Ye++){let ot=Xe(f[Ye],!1);ot.offset=Nt((p+ot.offset*x)/y),fe.push(ot)}x=y,p=0,G="",f=fe}return O(this.element,f,this.preStyleProps,this.postStyleProps,x,p,G,!0)}}function Nt(Y,f=3){const p=Math.pow(10,f-1);return Math.round(Y*p)/p}class gn{}class si extends gn{normalizePropertyName(f,p){return L(f)}normalizeStyleValue(f,p,x,G){let fe="";const y=x.toString().trim();if(Gn[p]&&0!==x&&"0"!==x)if("number"==typeof x)fe="px";else{const R=x.match(/^[+-]?[\d\.]+([a-z]*)$/);R&&0==R[1].length&&G.push(`Please provide a CSS unit value for ${f}:${x}`)}return y+fe}}const Gn=(()=>function wn(Y){const f={};return Y.forEach(p=>f[p]=!0),f}("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".split(",")))();function Bn(Y,f,p,x,G,fe,y,R,C,V,De,Ye,ot){return{type:0,element:Y,triggerName:f,isRemovalTransition:G,fromState:p,fromStyles:fe,toState:x,toStyles:y,timelines:R,queriedElements:C,preStyleProps:V,postStyleProps:De,totalTime:Ye,errors:ot}}const In={};class H{constructor(f,p,x){this._triggerName=f,this.ast=p,this._stateStyles=x}match(f,p,x,G){return function Pe(Y,f,p,x,G){return Y.some(fe=>fe(f,p,x,G))}(this.ast.matchers,f,p,x,G)}buildStyles(f,p,x){const G=this._stateStyles["*"],fe=this._stateStyles[f],y=G?G.buildStyles(p,x):{};return fe?fe.buildStyles(p,x):y}build(f,p,x,G,fe,y,R,C,V,De){const Ye=[],ot=this.ast.options&&this.ast.options.params||In,Pt=this.buildStyles(x,R&&R.params||In,Ye),xt=C&&C.params||In,Vt=this.buildStyles(G,xt,Ye),Qt=new Set,an=new Map,F=new Map,P="void"===G,I={params:Object.assign(Object.assign({},ot),xt)},Z=De?[]:Ht(f,p,this.ast.animation,fe,y,Pt,Vt,I,V,Ye);let Qe=0;if(Z.forEach(hn=>{Qe=Math.max(hn.duration+hn.delay,Qe)}),Ye.length)return Bn(p,this._triggerName,x,G,P,Pt,Vt,[],[],an,F,Qe,Ye);Z.forEach(hn=>{const Sn=hn.element,bi=A(an,Sn,{});hn.preStyleProps.forEach(Hi=>bi[Hi]=!0);const Ci=A(F,Sn,{});hn.postStyleProps.forEach(Hi=>Ci[Hi]=!0),Sn!==p&&Qt.add(Sn)});const At=ut(Qt.values());return Bn(p,this._triggerName,x,G,P,Pt,Vt,Z,At,an,F,Qe)}}class W{constructor(f,p,x){this.styles=f,this.defaultParams=p,this.normalizer=x}buildStyles(f,p){const x={},G=bt(this.defaultParams);return Object.keys(f).forEach(fe=>{const y=f[fe];null!=y&&(G[fe]=y)}),this.styles.styles.forEach(fe=>{if("string"!=typeof fe){const y=fe;Object.keys(y).forEach(R=>{let C=y[R];C.length>1&&(C=It(C,G,p));const V=this.normalizer.normalizePropertyName(R,p);C=this.normalizer.normalizeStyleValue(R,V,C,p),x[V]=C})}}),x}}class et{constructor(f,p,x){this.name=f,this.ast=p,this._normalizer=x,this.transitionFactories=[],this.states={},p.states.forEach(G=>{this.states[G.name]=new W(G.style,G.options&&G.options.params||{},x)}),wt(this.states,"true","1"),wt(this.states,"false","0"),p.transitions.forEach(G=>{this.transitionFactories.push(new H(f,G,this.states))}),this.fallbackTransition=function lt(Y,f,p){return new H(Y,{type:1,animation:{type:2,steps:[],options:null},matchers:[(y,R)=>!0],options:null,queryCount:0,depCount:0},f)}(f,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(f,p,x,G){return this.transitionFactories.find(y=>y.match(f,p,x,G))||null}matchStyles(f,p,x){return this.fallbackTransition.buildStyles(f,p,x)}}function wt(Y,f,p){Y.hasOwnProperty(f)?Y.hasOwnProperty(p)||(Y[p]=Y[f]):Y.hasOwnProperty(p)&&(Y[f]=Y[p])}const kt=new q;class Yt{constructor(f,p,x){this.bodyNode=f,this._driver=p,this._normalizer=x,this._animations={},this._playersById={},this.players=[]}register(f,p){const x=[],G=Ft(this._driver,p,x);if(x.length)throw new Error(`Unable to build the animation due to the following errors: ${x.join("\n")}`);this._animations[f]=G}_buildPlayer(f,p,x){const G=f.element,fe=D(0,this._normalizer,0,f.keyframes,p,x);return this._driver.animate(G,fe,f.duration,f.delay,f.easing,[],!0)}create(f,p,x={}){const G=[],fe=this._animations[f];let y;const R=new Map;if(fe?(y=Ht(this._driver,p,fe,X,le,{},{},x,kt,G),y.forEach(De=>{const Ye=A(R,De.element,{});De.postStyleProps.forEach(ot=>Ye[ot]=null)})):(G.push("The requested animation doesn't exist or has already been destroyed"),y=[]),G.length)throw new Error(`Unable to create the animation due to the following errors: ${G.join("\n")}`);R.forEach((De,Ye)=>{Object.keys(De).forEach(ot=>{De[ot]=this._driver.computeStyle(Ye,ot,m.l3)})});const V=_(y.map(De=>{const Ye=R.get(De.element);return this._buildPlayer(De,{},Ye)}));return this._playersById[f]=V,V.onDestroy(()=>this.destroy(f)),this.players.push(V),V}destroy(f){const p=this._getPlayer(f);p.destroy(),delete this._playersById[f];const x=this.players.indexOf(p);x>=0&&this.players.splice(x,1)}_getPlayer(f){const p=this._playersById[f];if(!p)throw new Error(`Unable to find the timeline player referenced by ${f}`);return p}listen(f,p,x,G){const fe=d(p,"","","");return T(this._getPlayer(f),x,fe,G),()=>{}}command(f,p,x,G){if("register"==x)return void this.register(f,G[0]);if("create"==x)return void this.create(f,p,G[0]||{});const fe=this._getPlayer(f);switch(x){case"play":fe.play();break;case"pause":fe.pause();break;case"reset":fe.reset();break;case"restart":fe.restart();break;case"finish":fe.finish();break;case"init":fe.init();break;case"setPosition":fe.setPosition(parseFloat(G[0]));break;case"destroy":this.destroy(f)}}}const un="ng-animate-queued",bn="ng-animate-disabled",yn=[],Mn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ii={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cn="__ng_removed";class sn{constructor(f,p=""){this.namespaceId=p;const x=f&&f.hasOwnProperty("value");if(this.value=function ai(Y){return null!=Y?Y:null}(x?f.value:f),x){const fe=bt(f);delete fe.value,this.options=fe}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(f){const p=f.params;if(p){const x=this.options.params;Object.keys(p).forEach(G=>{null==x[G]&&(x[G]=p[G])})}}}const Yn="void",ri=new sn(Yn);class jn{constructor(f,p,x){this.id=f,this.hostElement=p,this._engine=x,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+f,Hn(p,this._hostClassName)}listen(f,p,x,G){if(!this._triggers.hasOwnProperty(p))throw new Error(`Unable to listen on the animation trigger event "${x}" because the animation trigger "${p}" doesn't exist!`);if(null==x||0==x.length)throw new Error(`Unable to listen on the animation trigger "${p}" because the provided event is undefined!`);if(!function _r(Y){return"start"==Y||"done"==Y}(x))throw new Error(`The provided animation trigger event "${x}" for the animation trigger "${p}" is not supported!`);const fe=A(this._elementListeners,f,[]),y={name:p,phase:x,callback:G};fe.push(y);const R=A(this._engine.statesByElement,f,{});return R.hasOwnProperty(p)||(Hn(f,Ae),Hn(f,Ae+"-"+p),R[p]=ri),()=>{this._engine.afterFlush(()=>{const C=fe.indexOf(y);C>=0&&fe.splice(C,1),this._triggers[p]||delete R[p]})}}register(f,p){return!this._triggers[f]&&(this._triggers[f]=p,!0)}_getTrigger(f){const p=this._triggers[f];if(!p)throw new Error(`The provided animation trigger "${f}" has not been registered!`);return p}trigger(f,p,x,G=!0){const fe=this._getTrigger(p),y=new hi(this.id,p,f);let R=this._engine.statesByElement.get(f);R||(Hn(f,Ae),Hn(f,Ae+"-"+p),this._engine.statesByElement.set(f,R={}));let C=R[p];const V=new sn(x,this.id);if(!(x&&x.hasOwnProperty("value"))&&C&&V.absorbOptions(C.options),R[p]=V,C||(C=ri),V.value!==Yn&&C.value===V.value){if(!function yr(Y,f){const p=Object.keys(Y),x=Object.keys(f);if(p.length!=x.length)return!1;for(let G=0;G<p.length;G++){const fe=p[G];if(!f.hasOwnProperty(fe)||Y[fe]!==f[fe])return!1}return!0}(C.params,V.params)){const xt=[],Vt=fe.matchStyles(C.value,C.params,xt),Qt=fe.matchStyles(V.value,V.params,xt);xt.length?this._engine.reportError(xt):this._engine.afterFlush(()=>{Re(f,Vt),Ie(f,Qt)})}return}const ot=A(this._engine.playersByElement,f,[]);ot.forEach(xt=>{xt.namespaceId==this.id&&xt.triggerName==p&&xt.queued&&xt.destroy()});let Et=fe.matchTransition(C.value,V.value,f,V.params),Pt=!1;if(!Et){if(!G)return;Et=fe.fallbackTransition,Pt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:p,transition:Et,fromState:C,toState:V,player:y,isFallbackTransition:Pt}),Pt||(Hn(f,un),y.onStart(()=>{fi(f,un)})),y.onDone(()=>{let xt=this.players.indexOf(y);xt>=0&&this.players.splice(xt,1);const Vt=this._engine.playersByElement.get(f);if(Vt){let Qt=Vt.indexOf(y);Qt>=0&&Vt.splice(Qt,1)}}),this.players.push(y),ot.push(y),y}deregister(f){delete this._triggers[f],this._engine.statesByElement.forEach((p,x)=>{delete p[f]}),this._elementListeners.forEach((p,x)=>{this._elementListeners.set(x,p.filter(G=>G.name!=f))})}clearElementCache(f){this._engine.statesByElement.delete(f),this._elementListeners.delete(f);const p=this._engine.playersByElement.get(f);p&&(p.forEach(x=>x.destroy()),this._engine.playersByElement.delete(f))}_signalRemovalForInnerTriggers(f,p){const x=this._engine.driver.query(f,ne,!0);x.forEach(G=>{if(G[Cn])return;const fe=this._engine.fetchNamespacesByElement(G);fe.size?fe.forEach(y=>y.triggerLeaveAnimation(G,p,!1,!0)):this.clearElementCache(G)}),this._engine.afterFlushAnimationsDone(()=>x.forEach(G=>this.clearElementCache(G)))}triggerLeaveAnimation(f,p,x,G){const fe=this._engine.statesByElement.get(f),y=new Map;if(fe){const R=[];if(Object.keys(fe).forEach(C=>{if(y.set(C,fe[C].value),this._triggers[C]){const V=this.trigger(f,C,Yn,G);V&&R.push(V)}}),R.length)return this._engine.markElementAsRemoved(this.id,f,!0,p,y),x&&_(R).onDone(()=>this._engine.processLeaveNode(f)),!0}return!1}prepareLeaveAnimationListeners(f){const p=this._elementListeners.get(f),x=this._engine.statesByElement.get(f);if(p&&x){const G=new Set;p.forEach(fe=>{const y=fe.name;if(G.has(y))return;G.add(y);const C=this._triggers[y].fallbackTransition,V=x[y]||ri,De=new sn(Yn),Ye=new hi(this.id,y,f);this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:y,transition:C,fromState:V,toState:De,player:Ye,isFallbackTransition:!0})})}}removeNode(f,p){const x=this._engine;if(f.childElementCount&&this._signalRemovalForInnerTriggers(f,p),this.triggerLeaveAnimation(f,p,!0))return;let G=!1;if(x.totalAnimations){const fe=x.players.length?x.playersByQueriedElement.get(f):[];if(fe&&fe.length)G=!0;else{let y=f;for(;y=y.parentNode;)if(x.statesByElement.get(y)){G=!0;break}}}if(this.prepareLeaveAnimationListeners(f),G)x.markElementAsRemoved(this.id,f,!1,p);else{const fe=f[Cn];(!fe||fe===Mn)&&(x.afterFlush(()=>this.clearElementCache(f)),x.destroyInnerAnimations(f),x._onRemovalComplete(f,p))}}insertNode(f,p){Hn(f,this._hostClassName)}drainQueuedTransitions(f){const p=[];return this._queue.forEach(x=>{const G=x.player;if(G.destroyed)return;const fe=x.element,y=this._elementListeners.get(fe);y&&y.forEach(R=>{if(R.name==x.triggerName){const C=d(fe,x.triggerName,x.fromState.value,x.toState.value);C._data=f,T(x.player,R.phase,C,R.callback)}}),G.markedForDestroy?this._engine.afterFlush(()=>{G.destroy()}):p.push(x)}),this._queue=[],p.sort((x,G)=>{const fe=x.transition.ast.depCount,y=G.transition.ast.depCount;return 0==fe||0==y?fe-y:this._engine.driver.containsElement(x.element,G.element)?1:-1})}destroy(f){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,f)}elementContainsData(f){let p=!1;return this._elementListeners.has(f)&&(p=!0),p=!!this._queue.find(x=>x.element===f)||p,p}}class Vn{constructor(f,p,x){this.bodyNode=f,this.driver=p,this._normalizer=x,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=(G,fe)=>{}}_onRemovalComplete(f,p){this.onRemovalComplete(f,p)}get queuedPlayers(){const f=[];return this._namespaceList.forEach(p=>{p.players.forEach(x=>{x.queued&&f.push(x)})}),f}createNamespace(f,p){const x=new jn(f,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(x,p):(this.newHostElements.set(p,x),this.collectEnterElement(p)),this._namespaceLookup[f]=x}_balanceNamespaceList(f,p){const x=this._namespaceList.length-1;if(x>=0){let G=!1;for(let fe=x;fe>=0;fe--)if(this.driver.containsElement(this._namespaceList[fe].hostElement,p)){this._namespaceList.splice(fe+1,0,f),G=!0;break}G||this._namespaceList.splice(0,0,f)}else this._namespaceList.push(f);return this.namespacesByHostElement.set(p,f),f}register(f,p){let x=this._namespaceLookup[f];return x||(x=this.createNamespace(f,p)),x}registerTrigger(f,p,x){let G=this._namespaceLookup[f];G&&G.register(p,x)&&this.totalAnimations++}destroy(f,p){if(!f)return;const x=this._fetchNamespace(f);this.afterFlush(()=>{this.namespacesByHostElement.delete(x.hostElement),delete this._namespaceLookup[f];const G=this._namespaceList.indexOf(x);G>=0&&this._namespaceList.splice(G,1)}),this.afterFlushAnimationsDone(()=>x.destroy(p))}_fetchNamespace(f){return this._namespaceLookup[f]}fetchNamespacesByElement(f){const p=new Set,x=this.statesByElement.get(f);if(x){const G=Object.keys(x);for(let fe=0;fe<G.length;fe++){const y=x[G[fe]].namespaceId;if(y){const R=this._fetchNamespace(y);R&&p.add(R)}}}return p}trigger(f,p,x,G){if(kn(p)){const fe=this._fetchNamespace(f);if(fe)return fe.trigger(p,x,G),!0}return!1}insertNode(f,p,x,G){if(!kn(p))return;const fe=p[Cn];if(fe&&fe.setForRemoval){fe.setForRemoval=!1,fe.setForMove=!0;const y=this.collectedLeaveElements.indexOf(p);y>=0&&this.collectedLeaveElements.splice(y,1)}if(f){const y=this._fetchNamespace(f);y&&y.insertNode(p,x)}G&&this.collectEnterElement(p)}collectEnterElement(f){this.collectedEnterElements.push(f)}markElementAsDisabled(f,p){p?this.disabledNodes.has(f)||(this.disabledNodes.add(f),Hn(f,bn)):this.disabledNodes.has(f)&&(this.disabledNodes.delete(f),fi(f,bn))}removeNode(f,p,x,G){if(kn(p)){const fe=f?this._fetchNamespace(f):null;if(fe?fe.removeNode(p,G):this.markElementAsRemoved(f,p,!1,G),x){const y=this.namespacesByHostElement.get(p);y&&y.id!==f&&y.removeNode(p,G)}}else this._onRemovalComplete(p,G)}markElementAsRemoved(f,p,x,G,fe){this.collectedLeaveElements.push(p),p[Cn]={namespaceId:f,setForRemoval:G,hasAnimation:x,removedBeforeQueried:!1,previousTriggersValues:fe}}listen(f,p,x,G,fe){return kn(p)?this._fetchNamespace(f).listen(p,x,G,fe):()=>{}}_buildInstruction(f,p,x,G,fe){return f.transition.build(this.driver,f.element,f.fromState.value,f.toState.value,x,G,f.fromState.options,f.toState.options,p,fe)}destroyInnerAnimations(f){let p=this.driver.query(f,ne,!0);p.forEach(x=>this.destroyActiveAnimationsForElement(x)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(f,_e,!0),p.forEach(x=>this.finishActiveQueriedAnimationOnElement(x)))}destroyActiveAnimationsForElement(f){const p=this.playersByElement.get(f);p&&p.forEach(x=>{x.queued?x.markedForDestroy=!0:x.destroy()})}finishActiveQueriedAnimationOnElement(f){const p=this.playersByQueriedElement.get(f);p&&p.forEach(x=>x.finish())}whenRenderingDone(){return new Promise(f=>{if(this.players.length)return _(this.players).onDone(()=>f());f()})}processLeaveNode(f){var p;const x=f[Cn];if(x&&x.setForRemoval){if(f[Cn]=Mn,x.namespaceId){this.destroyInnerAnimations(f);const G=this._fetchNamespace(x.namespaceId);G&&G.clearElementCache(f)}this._onRemovalComplete(f,x.setForRemoval)}(null===(p=f.classList)||void 0===p?void 0:p.contains(bn))&&this.markElementAsDisabled(f,!1),this.driver.query(f,".ng-animate-disabled",!0).forEach(G=>{this.markElementAsDisabled(G,!1)})}flush(f=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((x,G)=>this._balanceNamespaceList(x,G)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let x=0;x<this.collectedEnterElements.length;x++)Hn(this.collectedEnterElements[x],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const x=[];try{p=this._flushAnimations(x,f)}finally{for(let G=0;G<x.length;G++)x[G]()}}else for(let x=0;x<this.collectedLeaveElements.length;x++)this.processLeaveNode(this.collectedLeaveElements[x]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(x=>x()),this._flushFns=[],this._whenQuietFns.length){const x=this._whenQuietFns;this._whenQuietFns=[],p.length?_(p).onDone(()=>{x.forEach(G=>G())}):x.forEach(G=>G())}}reportError(f){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${f.join("\n")}`)}_flushAnimations(f,p){const x=new q,G=[],fe=new Map,y=[],R=new Map,C=new Map,V=new Map,De=new Set;this.disabledNodes.forEach(Mt=>{De.add(Mt);const Zt=this.driver.query(Mt,".ng-animate-queued",!0);for(let jt=0;jt<Zt.length;jt++)De.add(Zt[jt])});const Ye=this.bodyNode,ot=Array.from(this.statesByElement.keys()),Et=$n(ot,this.collectedEnterElements),Pt=new Map;let xt=0;Et.forEach((Mt,Zt)=>{const jt=X+xt++;Pt.set(Zt,jt),Mt.forEach(fn=>Hn(fn,jt))});const Vt=[],Qt=new Set,an=new Set;for(let Mt=0;Mt<this.collectedLeaveElements.length;Mt++){const Zt=this.collectedLeaveElements[Mt],jt=Zt[Cn];jt&&jt.setForRemoval&&(Vt.push(Zt),Qt.add(Zt),jt.hasAnimation?this.driver.query(Zt,".ng-star-inserted",!0).forEach(fn=>Qt.add(fn)):an.add(Zt))}const F=new Map,P=$n(ot,Array.from(Qt));P.forEach((Mt,Zt)=>{const jt=le+xt++;F.set(Zt,jt),Mt.forEach(fn=>Hn(fn,jt))}),f.push(()=>{Et.forEach((Mt,Zt)=>{const jt=Pt.get(Zt);Mt.forEach(fn=>fi(fn,jt))}),P.forEach((Mt,Zt)=>{const jt=F.get(Zt);Mt.forEach(fn=>fi(fn,jt))}),Vt.forEach(Mt=>{this.processLeaveNode(Mt)})});const I=[],Z=[];for(let Mt=this._namespaceList.length-1;Mt>=0;Mt--)this._namespaceList[Mt].drainQueuedTransitions(p).forEach(jt=>{const fn=jt.player,Pn=jt.element;if(I.push(fn),this.collectedEnterElements.length){const Un=Pn[Cn];if(Un&&Un.setForMove){if(Un.previousTriggersValues&&Un.previousTriggersValues.has(jt.triggerName)){const xn=Un.previousTriggersValues.get(jt.triggerName),Zn=this.statesByElement.get(jt.element);Zn&&Zn[jt.triggerName]&&(Zn[jt.triggerName].value=xn)}return void fn.destroy()}}const Ln=!Ye||!this.driver.containsElement(Ye,Pn),Xn=F.get(Pn),Ei=Pt.get(Pn),An=this._buildInstruction(jt,x,Ei,Xn,Ln);if(An.errors&&An.errors.length)return void Z.push(An);if(Ln)return fn.onStart(()=>Re(Pn,An.fromStyles)),fn.onDestroy(()=>Ie(Pn,An.toStyles)),void G.push(fn);if(jt.isFallbackTransition)return fn.onStart(()=>Re(Pn,An.fromStyles)),fn.onDestroy(()=>Ie(Pn,An.toStyles)),void G.push(fn);const Ur=[];An.timelines.forEach(Un=>{Un.stretchStartingKeyframe=!0,this.disabledNodes.has(Un.element)||Ur.push(Un)}),An.timelines=Ur,x.append(Pn,An.timelines),y.push({instruction:An,player:fn,element:Pn}),An.queriedElements.forEach(Un=>A(R,Un,[]).push(fn)),An.preStyleProps.forEach((Un,xn)=>{const Zn=Object.keys(Un);if(Zn.length){let oe=C.get(xn);oe||C.set(xn,oe=new Set),Zn.forEach(z=>oe.add(z))}}),An.postStyleProps.forEach((Un,xn)=>{const Zn=Object.keys(Un);let oe=V.get(xn);oe||V.set(xn,oe=new Set),Zn.forEach(z=>oe.add(z))})});if(Z.length){const Mt=[];Z.forEach(Zt=>{Mt.push(`@${Zt.triggerName} has failed due to:\n`),Zt.errors.forEach(jt=>Mt.push(`- ${jt}\n`))}),I.forEach(Zt=>Zt.destroy()),this.reportError(Mt)}const Qe=new Map,At=new Map;y.forEach(Mt=>{const Zt=Mt.element;x.has(Zt)&&(At.set(Zt,Zt),this._beforeAnimationBuild(Mt.player.namespaceId,Mt.instruction,Qe))}),G.forEach(Mt=>{const Zt=Mt.element;this._getPreviousPlayers(Zt,!1,Mt.namespaceId,Mt.triggerName,null).forEach(fn=>{A(Qe,Zt,[]).push(fn),fn.destroy()})});const hn=Vt.filter(Mt=>Di(Mt,C,V)),Sn=new Map;ir(Sn,this.driver,an,V,m.l3).forEach(Mt=>{Di(Mt,C,V)&&hn.push(Mt)});const Ci=new Map;Et.forEach((Mt,Zt)=>{ir(Ci,this.driver,new Set(Mt),C,m.k1)}),hn.forEach(Mt=>{const Zt=Sn.get(Mt),jt=Ci.get(Mt);Sn.set(Mt,Object.assign(Object.assign({},Zt),jt))});const Hi=[],Sr=[],Ct={};y.forEach(Mt=>{const{element:Zt,player:jt,instruction:fn}=Mt;if(x.has(Zt)){if(De.has(Zt))return jt.onDestroy(()=>Ie(Zt,fn.toStyles)),jt.disabled=!0,jt.overrideTotalTime(fn.totalTime),void G.push(jt);let Pn=Ct;if(At.size>1){let Xn=Zt;const Ei=[];for(;Xn=Xn.parentNode;){const An=At.get(Xn);if(An){Pn=An;break}Ei.push(Xn)}Ei.forEach(An=>At.set(An,Pn))}const Ln=this._buildAnimation(jt.namespaceId,fn,Qe,fe,Ci,Sn);if(jt.setRealPlayer(Ln),Pn===Ct)Hi.push(jt);else{const Xn=this.playersByElement.get(Pn);Xn&&Xn.length&&(jt.parentPlayer=_(Xn)),G.push(jt)}}else Re(Zt,fn.fromStyles),jt.onDestroy(()=>Ie(Zt,fn.toStyles)),Sr.push(jt),De.has(Zt)&&G.push(jt)}),Sr.forEach(Mt=>{const Zt=fe.get(Mt.element);if(Zt&&Zt.length){const jt=_(Zt);Mt.setRealPlayer(jt)}}),G.forEach(Mt=>{Mt.parentPlayer?Mt.syncPlayerEvents(Mt.parentPlayer):Mt.destroy()});for(let Mt=0;Mt<Vt.length;Mt++){const Zt=Vt[Mt],jt=Zt[Cn];if(fi(Zt,le),jt&&jt.hasAnimation)continue;let fn=[];if(R.size){let Ln=R.get(Zt);Ln&&Ln.length&&fn.push(...Ln);let Xn=this.driver.query(Zt,_e,!0);for(let Ei=0;Ei<Xn.length;Ei++){let An=R.get(Xn[Ei]);An&&An.length&&fn.push(...An)}}const Pn=fn.filter(Ln=>!Ln.destroyed);Pn.length?Fi(this,Zt,Pn):this.processLeaveNode(Zt)}return Vt.length=0,Hi.forEach(Mt=>{this.players.push(Mt),Mt.onDone(()=>{Mt.destroy();const Zt=this.players.indexOf(Mt);this.players.splice(Zt,1)}),Mt.play()}),Hi}elementContainsData(f,p){let x=!1;const G=p[Cn];return G&&G.setForRemoval&&(x=!0),this.playersByElement.has(p)&&(x=!0),this.playersByQueriedElement.has(p)&&(x=!0),this.statesByElement.has(p)&&(x=!0),this._fetchNamespace(f).elementContainsData(p)||x}afterFlush(f){this._flushFns.push(f)}afterFlushAnimationsDone(f){this._whenQuietFns.push(f)}_getPreviousPlayers(f,p,x,G,fe){let y=[];if(p){const R=this.playersByQueriedElement.get(f);R&&(y=R)}else{const R=this.playersByElement.get(f);if(R){const C=!fe||fe==Yn;R.forEach(V=>{V.queued||!C&&V.triggerName!=G||y.push(V)})}}return(x||G)&&(y=y.filter(R=>!(x&&x!=R.namespaceId||G&&G!=R.triggerName))),y}_beforeAnimationBuild(f,p,x){const fe=p.element,y=p.isRemovalTransition?void 0:f,R=p.isRemovalTransition?void 0:p.triggerName;for(const C of p.timelines){const V=C.element,De=V!==fe,Ye=A(x,V,[]);this._getPreviousPlayers(V,De,y,R,p.toState).forEach(Et=>{const Pt=Et.getRealPlayer();Pt.beforeDestroy&&Pt.beforeDestroy(),Et.destroy(),Ye.push(Et)})}Re(fe,p.fromStyles)}_buildAnimation(f,p,x,G,fe,y){const R=p.triggerName,C=p.element,V=[],De=new Set,Ye=new Set,ot=p.timelines.map(Pt=>{const xt=Pt.element;De.add(xt);const Vt=xt[Cn];if(Vt&&Vt.removedBeforeQueried)return new m.ZN(Pt.duration,Pt.delay);const Qt=xt!==C,an=function wr(Y){const f=[];return ki(Y,f),f}((x.get(xt)||yn).map(Qe=>Qe.getRealPlayer())).filter(Qe=>!!Qe.element&&Qe.element===xt),F=fe.get(xt),P=y.get(xt),I=D(0,this._normalizer,0,Pt.keyframes,F,P),Z=this._buildPlayer(Pt,I,an);if(Pt.subTimeline&&G&&Ye.add(xt),Qt){const Qe=new hi(f,R,xt);Qe.setRealPlayer(Z),V.push(Qe)}return Z});V.forEach(Pt=>{A(this.playersByQueriedElement,Pt.element,[]).push(Pt),Pt.onDone(()=>function yi(Y,f,p){let x;if(Y instanceof Map){if(x=Y.get(f),x){if(x.length){const G=x.indexOf(p);x.splice(G,1)}0==x.length&&Y.delete(f)}}else if(x=Y[f],x){if(x.length){const G=x.indexOf(p);x.splice(G,1)}0==x.length&&delete Y[f]}return x}(this.playersByQueriedElement,Pt.element,Pt))}),De.forEach(Pt=>Hn(Pt,Ke));const Et=_(ot);return Et.onDestroy(()=>{De.forEach(Pt=>fi(Pt,Ke)),Ie(C,p.toStyles)}),Ye.forEach(Pt=>{A(G,Pt,[]).push(Et)}),Et}_buildPlayer(f,p,x){return p.length>0?this.driver.animate(f.element,p,f.duration,f.delay,f.easing,x):new m.ZN(f.duration,f.delay)}}class hi{constructor(f,p,x){this.namespaceId=f,this.triggerName=p,this.element=x,this._player=new m.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(f){this._containsRealPlayer||(this._player=f,Object.keys(this._queuedCallbacks).forEach(p=>{this._queuedCallbacks[p].forEach(x=>T(f,p,void 0,x))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(f.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(f){this.totalTime=f}syncPlayerEvents(f){const p=this._player;p.triggerCallback&&f.onStart(()=>p.triggerCallback("start")),f.onDone(()=>this.finish()),f.onDestroy(()=>this.destroy())}_queueEvent(f,p){A(this._queuedCallbacks,f,[]).push(p)}onDone(f){this.queued&&this._queueEvent("done",f),this._player.onDone(f)}onStart(f){this.queued&&this._queueEvent("start",f),this._player.onStart(f)}onDestroy(f){this.queued&&this._queueEvent("destroy",f),this._player.onDestroy(f)}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(f){this.queued||this._player.setPosition(f)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(f){const p=this._player;p.triggerCallback&&p.triggerCallback(f)}}function kn(Y){return Y&&1===Y.nodeType}function Ki(Y,f){const p=Y.style.display;return Y.style.display=null!=f?f:"none",p}function ir(Y,f,p,x,G){const fe=[];p.forEach(C=>fe.push(Ki(C)));const y=[];x.forEach((C,V)=>{const De={};C.forEach(Ye=>{const ot=De[Ye]=f.computeStyle(V,Ye,G);(!ot||0==ot.length)&&(V[Cn]=ii,y.push(V))}),Y.set(V,De)});let R=0;return p.forEach(C=>Ki(C,fe[R++])),y}function $n(Y,f){const p=new Map;if(Y.forEach(R=>p.set(R,[])),0==f.length)return p;const G=new Set(f),fe=new Map;function y(R){if(!R)return 1;let C=fe.get(R);if(C)return C;const V=R.parentNode;return C=p.has(V)?V:G.has(V)?1:y(V),fe.set(R,C),C}return f.forEach(R=>{const C=y(R);1!==C&&p.get(C).push(R)}),p}function Hn(Y,f){var p;null===(p=Y.classList)||void 0===p||p.add(f)}function fi(Y,f){var p;null===(p=Y.classList)||void 0===p||p.remove(f)}function Fi(Y,f,p){_(p).onDone(()=>Y.processLeaveNode(f))}function ki(Y,f){for(let p=0;p<Y.length;p++){const x=Y[p];x instanceof m.ZE?ki(x.players,f):f.push(x)}}function Di(Y,f,p){const x=p.get(Y);if(!x)return!1;let G=f.get(Y);return G?x.forEach(fe=>G.add(fe)):f.set(Y,x),p.delete(Y),!0}class Ni{constructor(f,p,x){this.bodyNode=f,this._driver=p,this._normalizer=x,this._triggerCache={},this.onRemovalComplete=(G,fe)=>{},this._transitionEngine=new Vn(f,p,x),this._timelineEngine=new Yt(f,p,x),this._transitionEngine.onRemovalComplete=(G,fe)=>this.onRemovalComplete(G,fe)}registerTrigger(f,p,x,G,fe){const y=f+"-"+G;let R=this._triggerCache[y];if(!R){const C=[],V=Ft(this._driver,fe,C);if(C.length)throw new Error(`The animation trigger "${G}" has failed to build due to the following errors:\n - ${C.join("\n - ")}`);R=function xe(Y,f,p){return new et(Y,f,p)}(G,V,this._normalizer),this._triggerCache[y]=R}this._transitionEngine.registerTrigger(p,G,R)}register(f,p){this._transitionEngine.register(f,p)}destroy(f,p){this._transitionEngine.destroy(f,p)}onInsert(f,p,x,G){this._transitionEngine.insertNode(f,p,x,G)}onRemove(f,p,x,G){this._transitionEngine.removeNode(f,p,G||!1,x)}disableAnimations(f,p){this._transitionEngine.markElementAsDisabled(f,p)}process(f,p,x,G){if("@"==x.charAt(0)){const[fe,y]=M(x);this._timelineEngine.command(fe,p,y,G)}else this._transitionEngine.trigger(f,p,x,G)}listen(f,p,x,G,fe){if("@"==x.charAt(0)){const[y,R]=M(x);return this._timelineEngine.listen(y,p,R,fe)}return this._transitionEngine.listen(f,p,x,G,fe)}flush(f=-1){this._transitionEngine.flush(f)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let rr=(()=>{class Y{constructor(p,x,G){this._element=p,this._startStyles=x,this._endStyles=G,this._state=0;let fe=Y.initialStylesByElement.get(p);fe||Y.initialStylesByElement.set(p,fe={}),this._initialStyles=fe}start(){this._state<1&&(this._startStyles&&Ie(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ie(this._element,this._initialStyles),this._endStyles&&(Ie(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Y.initialStylesByElement.delete(this._element),this._startStyles&&(Re(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),Ie(this._element,this._initialStyles),this._state=3)}}return Y.initialStylesByElement=new WeakMap,Y})();function pi(Y){let f=null;const p=Object.keys(Y);for(let x=0;x<p.length;x++){const G=p[x];vr(G)&&(f=f||{},f[G]=Y[G])}return f}function vr(Y){return"display"===Y||"position"===Y}class or{constructor(f,p,x,G){this.element=f,this.keyframes=p,this.options=x,this._specialStyles=G,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=x.duration,this._delay=x.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(f=>f()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const f=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,f,this.options),this._finalKeyframe=f.length?f[f.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(f,p,x){return f.animate(p,x)}onStart(f){this._onStartFns.push(f)}onDone(f){this._onDoneFns.push(f)}onDestroy(f){this._onDestroyFns.push(f)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(f=>f()),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}_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(f=>f()),this._onDestroyFns=[])}setPosition(f){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=f*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const f={};if(this.hasStarted()){const p=this._finalKeyframe;Object.keys(p).forEach(x=>{"offset"!=x&&(f[x]=this._finished?p[x]:Ee(this.element,x))})}this.currentSnapshot=f}triggerCallback(f){const p="start"==f?this._onStartFns:this._onDoneFns;p.forEach(x=>x()),p.length=0}}class Gi{validateStyleProperty(f){return Se(f)}matchesElement(f,p){return!1}containsElement(f,p){return be(f,p)}query(f,p,x){return se(f,p,x)}computeStyle(f,p,x){return window.getComputedStyle(f)[p]}animate(f,p,x,G,fe,y=[]){const C={duration:x,delay:G,fill:0==G?"both":"forwards"};fe&&(C.easing=fe);const V={},De=y.filter(ot=>ot instanceof or);(function Oe(Y,f){return 0===Y||0===f})(x,G)&&De.forEach(ot=>{let Et=ot.currentSnapshot;Object.keys(Et).forEach(Pt=>V[Pt]=Et[Pt])}),p=function ue(Y,f,p){const x=Object.keys(p);if(x.length&&f.length){let fe=f[0],y=[];if(x.forEach(R=>{fe.hasOwnProperty(R)||y.push(R),fe[R]=p[R]}),y.length)for(var G=1;G<f.length;G++){let R=f[G];y.forEach(function(C){R[C]=Ee(Y,C)})}}return f}(f,p=p.map(ot=>Xe(ot,!1)),V);const Ye=function li(Y,f){let p=null,x=null;return Array.isArray(f)&&f.length?(p=pi(f[0]),f.length>1&&(x=pi(f[f.length-1]))):f&&(p=pi(f)),p||x?new rr(Y,p,x):null}(f,p);return new or(f,p,C,Ye)}}var Ti=l(9808);let Mi=(()=>{class Y extends m._j{constructor(p,x){super(),this._nextAnimationId=0,this._renderer=p.createRenderer(x.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(p){const x=this._nextAnimationId.toString();this._nextAnimationId++;const G=Array.isArray(p)?(0,m.vP)(p):p;return Qi(this._renderer,null,x,"register",[G]),new sr(x,this._renderer)}}return Y.\u0275fac=function(p){return new(p||Y)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Ti.DOCUMENT))},Y.\u0275prov=i.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac}),Y})();class sr extends m.LC{constructor(f,p){super(),this._id=f,this._renderer=p}create(f,p){return new Li(this._id,f,p||{},this._renderer)}}class Li{constructor(f,p,x,G){this.id=f,this.element=p,this._renderer=G,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",x)}_listen(f,p){return this._renderer.listen(this.element,`@@${this.id}:${f}`,p)}_command(f,...p){return Qi(this._renderer,this.element,this.id,f,p)}onDone(f){this._listen("done",f)}onStart(f){this._listen("start",f)}onDestroy(f){this._listen("destroy",f)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(f){this._command("setPosition",f)}getPosition(){var f,p;return null!==(p=null===(f=this._renderer.engine.players[+this.id])||void 0===f?void 0:f.getPosition())&&void 0!==p?p:0}}function Qi(Y,f,p,x,G){return Y.setProperty(f,`@@${p}:${x}`,G)}const wi="@.disabled";let mi=(()=>{class Y{constructor(p,x,G){this.delegate=p,this.engine=x,this._zone=G,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),x.onRemovalComplete=(fe,y)=>{const R=null==y?void 0:y.parentNode(fe);R&&y.removeChild(R,fe)}}createRenderer(p,x){const fe=this.delegate.createRenderer(p,x);if(!(p&&x&&x.data&&x.data.animation)){let De=this._rendererCache.get(fe);return De||(De=new Bi("",fe,this.engine),this._rendererCache.set(fe,De)),De}const y=x.id,R=x.id+"-"+this._currentId;this._currentId++,this.engine.register(R,p);const C=De=>{Array.isArray(De)?De.forEach(C):this.engine.registerTrigger(y,R,p,De.name,De)};return x.data.animation.forEach(C),new vi(this,R,fe,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(p,x,G){p>=0&&p<this._microtaskId?this._zone.run(()=>x(G)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(fe=>{const[y,R]=fe;y(R)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([x,G]))}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()}}return Y.\u0275fac=function(p){return new(p||Y)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Ni),i.\u0275\u0275inject(i.NgZone))},Y.\u0275prov=i.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac}),Y})();class Bi{constructor(f,p,x){this.namespaceId=f,this.delegate=p,this.engine=x,this.destroyNode=this.delegate.destroyNode?G=>p.destroyNode(G):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(f,p){return this.delegate.createElement(f,p)}createComment(f){return this.delegate.createComment(f)}createText(f){return this.delegate.createText(f)}appendChild(f,p){this.delegate.appendChild(f,p),this.engine.onInsert(this.namespaceId,p,f,!1)}insertBefore(f,p,x,G=!0){this.delegate.insertBefore(f,p,x),this.engine.onInsert(this.namespaceId,p,f,G)}removeChild(f,p,x){this.engine.onRemove(this.namespaceId,p,this.delegate,x)}selectRootElement(f,p){return this.delegate.selectRootElement(f,p)}parentNode(f){return this.delegate.parentNode(f)}nextSibling(f){return this.delegate.nextSibling(f)}setAttribute(f,p,x,G){this.delegate.setAttribute(f,p,x,G)}removeAttribute(f,p,x){this.delegate.removeAttribute(f,p,x)}addClass(f,p){this.delegate.addClass(f,p)}removeClass(f,p){this.delegate.removeClass(f,p)}setStyle(f,p,x,G){this.delegate.setStyle(f,p,x,G)}removeStyle(f,p,x){this.delegate.removeStyle(f,p,x)}setProperty(f,p,x){"@"==p.charAt(0)&&p==wi?this.disableAnimations(f,!!x):this.delegate.setProperty(f,p,x)}setValue(f,p){this.delegate.setValue(f,p)}listen(f,p,x){return this.delegate.listen(f,p,x)}disableAnimations(f,p){this.engine.disableAnimations(f,p)}}class vi extends Bi{constructor(f,p,x,G){super(p,x,G),this.factory=f,this.namespaceId=p}setProperty(f,p,x){"@"==p.charAt(0)?"."==p.charAt(1)&&p==wi?this.disableAnimations(f,x=void 0===x||!!x):this.engine.process(this.namespaceId,f,p.substr(1),x):this.delegate.setProperty(f,p,x)}listen(f,p,x){if("@"==p.charAt(0)){const G=function br(Y){switch(Y){case"body":return document.body;case"document":return document;case"window":return window;default:return Y}}(f);let fe=p.substr(1),y="";return"@"!=fe.charAt(0)&&([fe,y]=function Zi(Y){const f=Y.indexOf(".");return[Y.substring(0,f),Y.substr(f+1)]}(fe)),this.engine.listen(this.namespaceId,G,fe,y,R=>{this.factory.scheduleListenerCallback(R._data||-1,x,R)})}return this.delegate.listen(f,p,x)}}let Si=(()=>{class Y extends Ni{constructor(p,x,G){super(p.body,x,G)}ngOnDestroy(){this.flush()}}return Y.\u0275fac=function(p){return new(p||Y)(i.\u0275\u0275inject(Ti.DOCUMENT),i.\u0275\u0275inject(qe),i.\u0275\u0275inject(gn))},Y.\u0275prov=i.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac}),Y})();const ji=new i.InjectionToken("AnimationModuleType"),Nn=[{provide:m._j,useClass:Mi},{provide:gn,useFactory:function Yi(){return new si}},{provide:Ni,useClass:Si},{provide:i.RendererFactory2,useFactory:function oi(Y,f,p){return new mi(Y,f,p)},deps:[u.\u0275DomRendererFactory2,Ni,i.NgZone]}],Vi=[{provide:qe,useFactory:()=>new Gi},{provide:ji,useValue:"BrowserAnimations"},...Nn],$i=[{provide:qe,useClass:Le},{provide:ji,useValue:"NoopAnimations"},...Nn];let Ii=(()=>{class Y{static withConfig(p){return{ngModule:Y,providers:p.disableAnimations?$i:Vi}}}return Y.\u0275fac=function(p){return new(p||Y)},Y.\u0275mod=i.\u0275\u0275defineNgModule({type:Y}),Y.\u0275inj=i.\u0275\u0275defineInjector({providers:Vi,imports:[u.BrowserModule]}),Y})(),Cr=(()=>{class Y{}return Y.\u0275fac=function(p){return new(p||Y)},Y.\u0275mod=i.\u0275\u0275defineNgModule({type:Y}),Y.\u0275inj=i.\u0275\u0275defineInjector({providers:$i,imports:[u.BrowserModule]}),Y})()},2313:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>ut,BrowserTransferStateModule:()=>Kt,By:()=>tn,DomSanitizer:()=>Ne,EVENT_MANAGER_PLUGINS:()=>k,EventManager:()=>$,HAMMER_GESTURE_CONFIG:()=>N,HAMMER_LOADER:()=>O,HammerGestureConfig:()=>q,HammerModule:()=>j,Meta:()=>L,Title:()=>ue,TransferState:()=>Tt,VERSION:()=>Ht,disableDebugTools:()=>Ft,enableDebugTools:()=>Jt,makeStateKey:()=>$t,platformBrowser:()=>yt,\u0275BrowserDomAdapter:()=>c,\u0275BrowserGetTestability:()=>M,\u0275DomEventsPlugin:()=>He,\u0275DomRendererFactory2:()=>Ae,\u0275DomSanitizerImpl:()=>Wt,\u0275DomSharedStylesHost:()=>ae,\u0275HammerGesturesPlugin:()=>E,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>mt,\u0275KeyEventsPlugin:()=>ge,\u0275NAMESPACE_URIS:()=>me,\u0275SharedStylesHost:()=>U,\u0275TRANSITION_ID:()=>S,\u0275escapeHtml:()=>pn,\u0275flattenStyles:()=>Fe,\u0275initDomAdapter:()=>Re,\u0275shimContentAttribute:()=>at,\u0275shimHostAttribute:()=>te});var i=l(9808),u=l(5e3);class m extends i.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class c extends m{static makeCurrent(){(0,i.\u0275setRootDomAdapter)(new c)}onAndCancel(Ue,he,$e){return Ue.addEventListener(he,$e,!1),()=>{Ue.removeEventListener(he,$e,!1)}}dispatchEvent(Ue,he){Ue.dispatchEvent(he)}remove(Ue){Ue.parentNode&&Ue.parentNode.removeChild(Ue)}createElement(Ue,he){return(he=he||this.getDefaultDocument()).createElement(Ue)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ue){return Ue.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ue){return Ue instanceof DocumentFragment}getGlobalEventTarget(Ue,he){return"window"===he?window:"document"===he?Ue:"body"===he?Ue.body:null}getBaseHref(Ue){const he=function _(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==he?null:function T(je){D=D||document.createElement("a"),D.setAttribute("href",je);const Ue=D.pathname;return"/"===Ue.charAt(0)?Ue:`/${Ue}`}(he)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ue){return(0,i.\u0275parseCookieValue)(document.cookie,Ue)}}let D,s=null;const S=new u.InjectionToken("TRANSITION_ID"),A=[{provide:u.APP_INITIALIZER,useFactory:function d(je,Ue,he){return()=>{he.get(u.ApplicationInitStatus).donePromise.then(()=>{const $e=(0,i.\u0275getDOM)(),dt=Ue.querySelectorAll(`style[ng-transition="${je}"]`);for(let Nt=0;Nt<dt.length;Nt++)$e.remove(dt[Nt])})}},deps:[S,i.DOCUMENT,u.Injector],multi:!0}];class M{static init(){(0,u.setTestabilityGetter)(new M)}addToWindow(Ue){u.\u0275global.getAngularTestability=($e,dt=!0)=>{const Nt=Ue.findTestabilityInTree($e,dt);if(null==Nt)throw new Error("Could not find testability for element.");return Nt},u.\u0275global.getAllAngularTestabilities=()=>Ue.getAllTestabilities(),u.\u0275global.getAllAngularRootElements=()=>Ue.getAllRootElements(),u.\u0275global.frameworkStabilizers||(u.\u0275global.frameworkStabilizers=[]),u.\u0275global.frameworkStabilizers.push($e=>{const dt=u.\u0275global.getAllAngularTestabilities();let Nt=dt.length,Rt=!1;const nn=function(gn){Rt=Rt||gn,Nt--,0==Nt&&$e(Rt)};dt.forEach(function(gn){gn.whenStable(nn)})})}findTestabilityInTree(Ue,he,$e){if(null==he)return null;const dt=Ue.getTestability(he);return null!=dt?dt:$e?(0,i.\u0275getDOM)().isShadowRoot(he)?this.findTestabilityInTree(Ue,he.host,!0):this.findTestabilityInTree(Ue,he.parentElement,!0):null}}let b=(()=>{class je{build(){return new XMLHttpRequest}}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();const k=new u.InjectionToken("EventManagerPlugins");let $=(()=>{class je{constructor(he,$e){this._zone=$e,this._eventNameToPlugin=new Map,he.forEach(dt=>dt.manager=this),this._plugins=he.slice().reverse()}addEventListener(he,$e,dt){return this._findPluginFor($e).addEventListener(he,$e,dt)}addGlobalEventListener(he,$e,dt){return this._findPluginFor($e).addGlobalEventListener(he,$e,dt)}getZone(){return this._zone}_findPluginFor(he){const $e=this._eventNameToPlugin.get(he);if($e)return $e;const dt=this._plugins;for(let Nt=0;Nt<dt.length;Nt++){const Rt=dt[Nt];if(Rt.supports(he))return this._eventNameToPlugin.set(he,Rt),Rt}throw new Error(`No event manager plugin found for event ${he}`)}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(k),u.\u0275\u0275inject(u.NgZone))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();class pe{constructor(Ue){this._doc=Ue}addGlobalEventListener(Ue,he,$e){const dt=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,Ue);if(!dt)throw new Error(`Unsupported event target ${dt} for event ${he}`);return this.addEventListener(dt,he,$e)}}let U=(()=>{class je{constructor(){this._stylesSet=new Set}addStyles(he){const $e=new Set;he.forEach(dt=>{this._stylesSet.has(dt)||(this._stylesSet.add(dt),$e.add(dt))}),this.onStylesAdded($e)}onStylesAdded(he){}getAllStyles(){return Array.from(this._stylesSet)}}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})(),ae=(()=>{class je extends U{constructor(he){super(),this._doc=he,this._hostNodes=new Map,this._hostNodes.set(he.head,[])}_addStylesToHost(he,$e,dt){he.forEach(Nt=>{const Rt=this._doc.createElement("style");Rt.textContent=Nt,dt.push($e.appendChild(Rt))})}addHost(he){const $e=[];this._addStylesToHost(this._stylesSet,he,$e),this._hostNodes.set(he,$e)}removeHost(he){const $e=this._hostNodes.get(he);$e&&$e.forEach(Se),this._hostNodes.delete(he)}onStylesAdded(he){this._hostNodes.forEach(($e,dt)=>{this._addStylesToHost(he,dt,$e)})}ngOnDestroy(){this._hostNodes.forEach(he=>he.forEach(Se))}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();function Se(je){(0,i.\u0275getDOM)().remove(je)}const me={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/"},be=/%COMP%/g;function at(je){return"_ngcontent-%COMP%".replace(be,je)}function te(je){return"_nghost-%COMP%".replace(be,je)}function Fe(je,Ue,he){for(let $e=0;$e<Ue.length;$e++){let dt=Ue[$e];Array.isArray(dt)?Fe(je,dt,he):(dt=dt.replace(be,je),he.push(dt))}return he}function X(je){return Ue=>{if("__ngUnwrap__"===Ue)return je;!1===je(Ue)&&(Ue.preventDefault(),Ue.returnValue=!1)}}let Ae=(()=>{class je{constructor(he,$e,dt){this.eventManager=he,this.sharedStylesHost=$e,this.appId=dt,this.rendererByCompId=new Map,this.defaultRenderer=new ne(he)}createRenderer(he,$e){if(!he||!$e)return this.defaultRenderer;switch($e.encapsulation){case u.ViewEncapsulation.Emulated:{let dt=this.rendererByCompId.get($e.id);return dt||(dt=new tt(this.eventManager,this.sharedStylesHost,$e,this.appId),this.rendererByCompId.set($e.id,dt)),dt.applyToHost(he),dt}case 1:case u.ViewEncapsulation.ShadowDom:return new Ce(this.eventManager,this.sharedStylesHost,he,$e);default:if(!this.rendererByCompId.has($e.id)){const dt=Fe($e.id,$e.styles,[]);this.sharedStylesHost.addStyles(dt),this.rendererByCompId.set($e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject($),u.\u0275\u0275inject(ae),u.\u0275\u0275inject(u.APP_ID))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();class ne{constructor(Ue){this.eventManager=Ue,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ue,he){return he?document.createElementNS(me[he]||he,Ue):document.createElement(Ue)}createComment(Ue){return document.createComment(Ue)}createText(Ue){return document.createTextNode(Ue)}appendChild(Ue,he){Ue.appendChild(he)}insertBefore(Ue,he,$e){Ue&&Ue.insertBefore(he,$e)}removeChild(Ue,he){Ue&&Ue.removeChild(he)}selectRootElement(Ue,he){let $e="string"==typeof Ue?document.querySelector(Ue):Ue;if(!$e)throw new Error(`The selector "${Ue}" did not match any elements`);return he||($e.textContent=""),$e}parentNode(Ue){return Ue.parentNode}nextSibling(Ue){return Ue.nextSibling}setAttribute(Ue,he,$e,dt){if(dt){he=dt+":"+he;const Nt=me[dt];Nt?Ue.setAttributeNS(Nt,he,$e):Ue.setAttribute(he,$e)}else Ue.setAttribute(he,$e)}removeAttribute(Ue,he,$e){if($e){const dt=me[$e];dt?Ue.removeAttributeNS(dt,he):Ue.removeAttribute(`${$e}:${he}`)}else Ue.removeAttribute(he)}addClass(Ue,he){Ue.classList.add(he)}removeClass(Ue,he){Ue.classList.remove(he)}setStyle(Ue,he,$e,dt){dt&(u.RendererStyleFlags2.DashCase|u.RendererStyleFlags2.Important)?Ue.style.setProperty(he,$e,dt&u.RendererStyleFlags2.Important?"important":""):Ue.style[he]=$e}removeStyle(Ue,he,$e){$e&u.RendererStyleFlags2.DashCase?Ue.style.removeProperty(he):Ue.style[he]=""}setProperty(Ue,he,$e){Ue[he]=$e}setValue(Ue,he){Ue.nodeValue=he}listen(Ue,he,$e){return"string"==typeof Ue?this.eventManager.addGlobalEventListener(Ue,he,X($e)):this.eventManager.addEventListener(Ue,he,X($e))}}class tt extends ne{constructor(Ue,he,$e,dt){super(Ue),this.component=$e;const Nt=Fe(dt+"-"+$e.id,$e.styles,[]);he.addStyles(Nt),this.contentAttr=at(dt+"-"+$e.id),this.hostAttr=te(dt+"-"+$e.id)}applyToHost(Ue){super.setAttribute(Ue,this.hostAttr,"")}createElement(Ue,he){const $e=super.createElement(Ue,he);return super.setAttribute($e,this.contentAttr,""),$e}}class Ce extends ne{constructor(Ue,he,$e,dt){super(Ue),this.sharedStylesHost=he,this.hostEl=$e,this.shadowRoot=$e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Nt=Fe(dt.id,dt.styles,[]);for(let Rt=0;Rt<Nt.length;Rt++){const nn=document.createElement("style");nn.textContent=Nt[Rt],this.shadowRoot.appendChild(nn)}}nodeOrShadowRoot(Ue){return Ue===this.hostEl?this.shadowRoot:Ue}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ue,he){return super.appendChild(this.nodeOrShadowRoot(Ue),he)}insertBefore(Ue,he,$e){return super.insertBefore(this.nodeOrShadowRoot(Ue),he,$e)}removeChild(Ue,he){return super.removeChild(this.nodeOrShadowRoot(Ue),he)}parentNode(Ue){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ue)))}}let He=(()=>{class je extends pe{constructor(he){super(he)}supports(he){return!0}addEventListener(he,$e,dt){return he.addEventListener($e,dt,!1),()=>this.removeEventListener(he,$e,dt)}removeEventListener(he,$e,dt){return he.removeEventListener($e,dt)}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();const ct=["alt","control","meta","shift"],Be={"\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"},Xe={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},J={alt:je=>je.altKey,control:je=>je.ctrlKey,meta:je=>je.metaKey,shift:je=>je.shiftKey};let ge=(()=>{class je extends pe{constructor(he){super(he)}supports(he){return null!=je.parseEventName(he)}addEventListener(he,$e,dt){const Nt=je.parseEventName($e),Rt=je.eventCallback(Nt.fullKey,dt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.\u0275getDOM)().onAndCancel(he,Nt.domEventName,Rt))}static parseEventName(he){const $e=he.toLowerCase().split("."),dt=$e.shift();if(0===$e.length||"keydown"!==dt&&"keyup"!==dt)return null;const Nt=je._normalizeKey($e.pop());let Rt="";if(ct.forEach(gn=>{const Rn=$e.indexOf(gn);Rn>-1&&($e.splice(Rn,1),Rt+=gn+".")}),Rt+=Nt,0!=$e.length||0===Nt.length)return null;const nn={};return nn.domEventName=dt,nn.fullKey=Rt,nn}static getEventFullKey(he){let $e="",dt=function Ie(je){let Ue=je.key;if(null==Ue){if(Ue=je.keyIdentifier,null==Ue)return"Unidentified";Ue.startsWith("U+")&&(Ue=String.fromCharCode(parseInt(Ue.substring(2),16)),3===je.location&&Xe.hasOwnProperty(Ue)&&(Ue=Xe[Ue]))}return Be[Ue]||Ue}(he);return dt=dt.toLowerCase()," "===dt?dt="space":"."===dt&&(dt="dot"),ct.forEach(Nt=>{Nt!=dt&&J[Nt](he)&&($e+=Nt+".")}),$e+=dt,$e}static eventCallback(he,$e,dt){return Nt=>{je.getEventFullKey(Nt)===he&&dt.runGuarded(()=>$e(Nt))}}static _normalizeKey(he){return"esc"===he?"escape":he}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();function Re(){c.makeCurrent(),M.init()}const mt=[{provide:u.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID},{provide:u.PLATFORM_INITIALIZER,useValue:Re,multi:!0},{provide:i.DOCUMENT,useFactory:function Je(){return(0,u.\u0275setDocument)(document),document},deps:[]}],yt=(0,u.createPlatformFactory)(u.platformCore,"browser",mt),It=[{provide:u.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:u.ErrorHandler,useFactory:function ye(){return new u.ErrorHandler},deps:[]},{provide:k,useClass:He,multi:!0,deps:[i.DOCUMENT,u.NgZone,u.PLATFORM_ID]},{provide:k,useClass:ge,multi:!0,deps:[i.DOCUMENT]},{provide:Ae,useClass:Ae,deps:[$,ae,u.APP_ID]},{provide:u.RendererFactory2,useExisting:Ae},{provide:U,useExisting:ae},{provide:ae,useClass:ae,deps:[i.DOCUMENT]},{provide:u.Testability,useClass:u.Testability,deps:[u.NgZone]},{provide:$,useClass:$,deps:[k,u.NgZone]},{provide:i.XhrFactory,useClass:b,deps:[]}];let ut=(()=>{class je{constructor(he){if(he)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(he){return{ngModule:je,providers:[{provide:u.APP_ID,useValue:he.appId},{provide:S,useExisting:u.APP_ID},A]}}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(je,12))},je.\u0275mod=u.\u0275\u0275defineNgModule({type:je}),je.\u0275inj=u.\u0275\u0275defineInjector({providers:It,imports:[i.CommonModule,u.ApplicationModule]}),je})(),L=(()=>{class je{constructor(he){this._doc=he,this._dom=(0,i.\u0275getDOM)()}addTag(he,$e=!1){return he?this._getOrCreateElement(he,$e):null}addTags(he,$e=!1){return he?he.reduce((dt,Nt)=>(Nt&&dt.push(this._getOrCreateElement(Nt,$e)),dt),[]):[]}getTag(he){return he&&this._doc.querySelector(`meta[${he}]`)||null}getTags(he){if(!he)return[];const $e=this._doc.querySelectorAll(`meta[${he}]`);return $e?[].slice.call($e):[]}updateTag(he,$e){if(!he)return null;$e=$e||this._parseSelector(he);const dt=this.getTag($e);return dt?this._setMetaElementAttributes(he,dt):this._getOrCreateElement(he,!0)}removeTag(he){this.removeTagElement(this.getTag(he))}removeTagElement(he){he&&this._dom.remove(he)}_getOrCreateElement(he,$e=!1){if(!$e){const Rt=this._parseSelector(he),nn=this.getTags(Rt).filter(gn=>this._containsAttributes(he,gn))[0];if(void 0!==nn)return nn}const dt=this._dom.createElement("meta");return this._setMetaElementAttributes(he,dt),this._doc.getElementsByTagName("head")[0].appendChild(dt),dt}_setMetaElementAttributes(he,$e){return Object.keys(he).forEach(dt=>$e.setAttribute(this._getMetaKeyMap(dt),he[dt])),$e}_parseSelector(he){const $e=he.name?"name":"property";return`${$e}="${he[$e]}"`}_containsAttributes(he,$e){return Object.keys(he).every(dt=>$e.getAttribute(this._getMetaKeyMap(dt))===he[dt])}_getMetaKeyMap(he){return re[he]||he}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(he){let $e=null;return $e=he?new he:function Ge(){return new L((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),$e},providedIn:"root"}),je})();const re={httpEquiv:"http-equiv"};let ue=(()=>{class je{constructor(he){this._doc=he}getTitle(){return this._doc.title}setTitle(he){this._doc.title=he||""}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(he){let $e=null;return $e=he?new he:function Oe(){return new ue((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),$e},providedIn:"root"}),je})();function Ze(je,Ue){"undefined"!=typeof COMPILED&&COMPILED||((u.\u0275global.ng=u.\u0275global.ng||{})[je]=Ue)}const it="undefined"!=typeof window&&window||{};class ht{constructor(Ue,he){this.msPerTick=Ue,this.numTicks=he}}class ft{constructor(Ue){this.appRef=Ue.injector.get(u.ApplicationRef)}timeChangeDetection(Ue){const he=Ue&&Ue.record,$e="Change Detection",dt=null!=it.console.profile;he&&dt&&it.console.profile($e);const Nt=Dt();let Rt=0;for(;Rt<5||Dt()-Nt<500;)this.appRef.tick(),Rt++;const nn=Dt();he&&dt&&it.console.profileEnd($e);const gn=(nn-Nt)/Rt;return it.console.log(`ran ${Rt} change detection cycles`),it.console.log(`${gn.toFixed(2)} ms per check`),new ht(gn,Rt)}}function Dt(){return it.performance&&it.performance.now?it.performance.now():(new Date).getTime()}const Bt="profiler";function Jt(je){return Ze(Bt,new ft(je)),je}function Ft(){Ze(Bt,null)}function pn(je){const Ue={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return je.replace(/[&"'<>]/g,he=>Ue[he])}function $t(je){return je}let Tt=(()=>{class je{constructor(){this.store={},this.onSerializeCallbacks={}}static init(he){const $e=new je;return $e.store=he,$e}get(he,$e){return void 0!==this.store[he]?this.store[he]:$e}set(he,$e){this.store[he]=$e}remove(he){delete this.store[he]}hasKey(he){return this.store.hasOwnProperty(he)}onSerialize(he,$e){this.onSerializeCallbacks[he]=$e}toJson(){for(const he in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(he))try{this.store[he]=this.onSerializeCallbacks[he]()}catch($e){console.warn("Exception in onSerialize callback: ",$e)}return JSON.stringify(this.store)}}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();function ln(je,Ue){const he=je.getElementById(Ue+"-state");let $e={};if(he&&he.textContent)try{$e=JSON.parse(function en(je){const Ue={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return je.replace(/&[^;]+;/g,he=>Ue[he])}(he.textContent))}catch(dt){console.warn("Exception while restoring TransferState for app "+Ue,dt)}return Tt.init($e)}let Kt=(()=>{class je{}return je.\u0275fac=function(he){return new(he||je)},je.\u0275mod=u.\u0275\u0275defineNgModule({type:je}),je.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:Tt,useFactory:ln,deps:[i.DOCUMENT,u.APP_ID]}]}),je})();class tn{static all(){return()=>!0}static css(Ue){return he=>null!=he.nativeElement&&function de(je,Ue){return!!(0,i.\u0275getDOM)().isElementNode(je)&&(je.matches&&je.matches(Ue)||je.msMatchesSelector&&je.msMatchesSelector(Ue)||je.webkitMatchesSelector&&je.webkitMatchesSelector(Ue))}(he.nativeElement,Ue)}static directive(Ue){return he=>-1!==he.providerTokens.indexOf(Ue)}}const Q={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},N=new u.InjectionToken("HammerGestureConfig"),O=new u.InjectionToken("HammerLoader");let q=(()=>{class je{constructor(){this.events=[],this.overrides={}}buildHammer(he){const $e=new Hammer(he,this.options);$e.get("pinch").set({enable:!0}),$e.get("rotate").set({enable:!0});for(const dt in this.overrides)$e.get(dt).set(this.overrides[dt]);return $e}}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})(),E=(()=>{class je extends pe{constructor(he,$e,dt,Nt){super(he),this._config=$e,this.console=dt,this.loader=Nt,this._loaderPromise=null}supports(he){return!(!Q.hasOwnProperty(he.toLowerCase())&&!this.isCustomEvent(he)||!window.Hammer&&!this.loader)}addEventListener(he,$e,dt){const Nt=this.manager.getZone();if($e=$e.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Rt=!1,nn=()=>{Rt=!0};return this._loaderPromise.then(()=>{window.Hammer?Rt||(nn=this.addEventListener(he,$e,dt)):nn=()=>{}}).catch(()=>{nn=()=>{}}),()=>{nn()}}return Nt.runOutsideAngular(()=>{const Rt=this._config.buildHammer(he),nn=function(gn){Nt.runGuarded(function(){dt(gn)})};return Rt.on($e,nn),()=>{Rt.off($e,nn),"function"==typeof Rt.destroy&&Rt.destroy()}})}isCustomEvent(he){return this._config.events.indexOf(he)>-1}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(N),u.\u0275\u0275inject(u.\u0275Console),u.\u0275\u0275inject(O,8))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})(),j=(()=>{class je{}return je.\u0275fac=function(he){return new(he||je)},je.\u0275mod=u.\u0275\u0275defineNgModule({type:je}),je.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:k,useClass:E,multi:!0,deps:[i.DOCUMENT,N,u.\u0275Console,[new u.Optional,O]]},{provide:N,useClass:q,deps:[]}]}),je})(),Ne=(()=>{class je{}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(he){let $e=null;return $e=he?new(he||je):u.\u0275\u0275inject(Wt),$e},providedIn:"root"}),je})(),Wt=(()=>{class je extends Ne{constructor(he){super(),this._doc=he}sanitize(he,$e){if(null==$e)return null;switch(he){case u.SecurityContext.NONE:return $e;case u.SecurityContext.HTML:return(0,u.\u0275allowSanitizationBypassAndThrow)($e,"HTML")?(0,u.\u0275unwrapSafeValue)($e):(0,u.\u0275_sanitizeHtml)(this._doc,String($e)).toString();case u.SecurityContext.STYLE:return(0,u.\u0275allowSanitizationBypassAndThrow)($e,"Style")?(0,u.\u0275unwrapSafeValue)($e):$e;case u.SecurityContext.SCRIPT:if((0,u.\u0275allowSanitizationBypassAndThrow)($e,"Script"))return(0,u.\u0275unwrapSafeValue)($e);throw new Error("unsafe value used in a script context");case u.SecurityContext.URL:return(0,u.\u0275getSanitizationBypassType)($e),(0,u.\u0275allowSanitizationBypassAndThrow)($e,"URL")?(0,u.\u0275unwrapSafeValue)($e):(0,u.\u0275_sanitizeUrl)(String($e));case u.SecurityContext.RESOURCE_URL:if((0,u.\u0275allowSanitizationBypassAndThrow)($e,"ResourceURL"))return(0,u.\u0275unwrapSafeValue)($e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${he} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(he){return(0,u.\u0275bypassSanitizationTrustHtml)(he)}bypassSecurityTrustStyle(he){return(0,u.\u0275bypassSanitizationTrustStyle)(he)}bypassSecurityTrustScript(he){return(0,u.\u0275bypassSanitizationTrustScript)(he)}bypassSecurityTrustUrl(he){return(0,u.\u0275bypassSanitizationTrustUrl)(he)}bypassSecurityTrustResourceUrl(he){return(0,u.\u0275bypassSanitizationTrustResourceUrl)(he)}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(he){let $e=null;return $e=he?new he:function st(je){return new Wt(je.get(i.DOCUMENT))}(u.\u0275\u0275inject(u.Injector)),$e},providedIn:"root"}),je})();const Ht=new u.Version("13.2.1")},107:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{MONACO_PATH:()=>M,MonacoDiffEditorComponent:()=>pe,MonacoEditorComponent:()=>$,MonacoEditorLoaderDirective:()=>k,MonacoEditorLoaderService:()=>b,MonacoEditorModule:()=>U});var i=l(5e3),u=l(2722),m=l(9300),c=l(5698),s=l(1135),_=l(6758),D=l(655),T=l(3075);const S=["editor"],d=["diffEditor"],M="MONACO_PATH";let b=(()=>{class ae{constructor(me,be){this.ngZone=me,this.monacoPathConfig=be,this.isMonacoLoaded$=new s.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?me.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(me){me&&(this._monacoPath=me)}loadMonaco(){const me=()=>{let Le=this._monacoPath;window.amdRequire=window.require;const qe=!!this.nodeRequire,at=Le.includes("http");qe&&(window.require=this.nodeRequire,at||(Le=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Le}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},te=>console.error("Error loading monaco-editor: ",te))};if(window.amdRequire)return me();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const Me=document.createElement("script");Me.type="text/javascript",Me.src=`${this._monacoPath}/loader.js`,Me.addEventListener("load",me),document.body.appendChild(Me)}addElectronFixScripts(){const me=document.createElement("script"),be=document.createTextNode("self.module = undefined;"),se=document.createTextNode("self.process.browser = true;");me.appendChild(be),me.appendChild(se),document.body.appendChild(me)}}return ae.\u0275fac=function(me){return new(me||ae)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(M,8))},ae.\u0275prov=i.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),k=(()=>{class ae{constructor(me,be,se){this.templateRef=me,this.viewContainer=be,this.monacoEditorLoaderService=se,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new _.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,u.R)(this.destroyed$)).subscribe(me=>{if(!me)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return ae.\u0275fac=function(me){return new(me||ae)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(b))},ae.\u0275dir=i.\u0275\u0275defineDirective({type:ae,selectors:[["","ngxLoadMonacoEditor",""]]}),ae})(),$=(()=>{class ae{constructor(me){this.monacoLoader=me,this.init=new i.EventEmitter,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,m.h)(me=>me),(0,c.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(me){if(this.editor&&me.options&&!me.options.firstChange){const be=me.options.currentValue,{language:se,theme:Me}=be,Le=(0,D.__rest)(be,["language","theme"]),{language:qe,theme:at}=me.options.previousValue;qe!==se&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),at!==Me&&monaco.editor.setTheme(Me),this.editor.updateOptions(Le)}if(this.editor&&me.uri){const be=me.uri.currentValue,se=me.uri.previousValue;if(se&&!be||!se&&be||be&&se&&be.path!==se.path){const Me=this.editor.getValue();let Le;this.modelUriInstance&&this.modelUriInstance.dispose(),be&&(Le=monaco.editor.getModels().find(qe=>qe.uri.path===be.path)),this.modelUriInstance=Le||monaco.editor.createModel(Me,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(me){this.value=me,this.editor&&me?this.editor.setValue(me):this.editor&&this.editor.setValue("")}registerOnChange(me){this.propagateChange=me}registerOnTouched(me){this.onTouched=me}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(me){this.onErrorStatusChange=me}initEditor(){const me={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?Object.assign(Object.assign({},me),this.options):me),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const me=this.modelMarkers.map(({message:se})=>se).join("|");this.parsedError!==me&&(this.parsedError=me,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return ae.\u0275fac=function(me){return new(me||ae)(i.\u0275\u0275directiveInject(b))},ae.\u0275cmp=i.\u0275\u0275defineComponent({type:ae,selectors:[["ngx-monaco-editor"]],viewQuery:function(me,be){if(1&me&&i.\u0275\u0275viewQuery(S,7),2&me){let se;i.\u0275\u0275queryRefresh(se=i.\u0275\u0275loadQuery())&&(be.editorContent=se.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[i.\u0275\u0275ProvidersFeature([{provide:T.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>ae),multi:!0},{provide:T.NG_VALIDATORS,useExisting:(0,i.forwardRef)(()=>ae),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(me,be){1&me&&(i.\u0275\u0275elementStart(0,"div",0,1),i.\u0275\u0275element(2,"div",2,3),i.\u0275\u0275elementEnd())},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}),ae})(),pe=(()=>{class ae{constructor(me){this.monacoLoader=me,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,m.h)(me=>me),(0,c.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(me){if(this.editor&&(me.code&&!me.code.firstChange||me.modified&&!me.modified.firstChange)){const be=monaco.editor.createModel(this.modified),se=monaco.editor.createModel(this.original);this.editor.setModel({original:se,modified:be})}this.editor&&me.options&&!me.options.firstChange&&(me.options.previousValue.theme!==me.options.currentValue.theme&&monaco.editor.setTheme(me.options.currentValue.theme),this.editor.updateOptions(me.options.currentValue))}initMonaco(){let me={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(me=Object.assign({},me,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,me);const be=monaco.editor.createModel(this.original),se=monaco.editor.createModel(this.modified);this.editor.setModel({original:be,modified:se}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return ae.\u0275fac=function(me){return new(me||ae)(i.\u0275\u0275directiveInject(b))},ae.\u0275cmp=i.\u0275\u0275defineComponent({type:ae,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(me,be){if(1&me&&i.\u0275\u0275viewQuery(d,7),2&me){let se;i.\u0275\u0275queryRefresh(se=i.\u0275\u0275loadQuery())&&(be.editorContent=se.first)}},inputs:{original:"original",modified:"modified",options:"options"},outputs:{init:"init"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["diffEditor",""]],template:function(me,be){1&me&&(i.\u0275\u0275elementStart(0,"div",0,1),i.\u0275\u0275element(2,"div",2,3),i.\u0275\u0275elementEnd())},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}),ae})(),U=(()=>{class ae{}return ae.\u0275fac=function(me){return new(me||ae)},ae.\u0275mod=i.\u0275\u0275defineNgModule({type:ae}),ae.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),ae})()},1430:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>Me,AngularSplitModule:()=>at,SplitAreaDirective:()=>qe,SplitComponent:()=>Le});var i=l(5e3),u=l(9808),m=l(6758),c=l(9751),s=l(8372);const _=["gutterEls"];function D(te,Fe){if(1&te){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("mousedown",function(Ae){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Ae,2*ne+1,ne+1)})("touchstart",function(Ae){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Ae,2*ne+1,ne+1)})("mouseup",function(Ae){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Ae,ne+1)})("touchend",function(Ae){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Ae,ne+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&te){const X=i.\u0275\u0275nextContext().index,le=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",le.gutterSize,"px")("order",2*X+1)}}function T(te,Fe){1&te&&i.\u0275\u0275template(0,D,3,4,"div",1),2&te&&i.\u0275\u0275property("ngIf",!1===Fe.last)}const S=["*"];function d(te){return void 0!==te.changedTouches&&te.changedTouches.length>0?{x:te.changedTouches[0].clientX,y:te.changedTouches[0].clientY}:void 0!==te.clientX&&void 0!==te.clientY?{x:te.clientX,y:te.clientY}:null}function A(te,Fe,X){return Math.abs(te.x-Fe.x)<=X&&Math.abs(te.y-Fe.y)<=X}function M(te,Fe){const X=te.nativeElement.getBoundingClientRect();return"horizontal"===Fe?X.width:X.height}function b(te){return"boolean"==typeof te?te:"false"!==te}function k(te,Fe){return null==te?Fe:(te=Number(te),!isNaN(te)&&te>=0?te:Fe)}function $(te,Fe){if("percent"===te){const X=Fe.reduce((le,Ae)=>null!==Ae?le+Ae:le,0);return Fe.every(le=>null!==le)&&X>99.9&&X<100.1}if("pixel"===te)return 1===Fe.filter(X=>null===X).length}function pe(te){return null===te.size?null:!0===te.component.lockSize?te.size:null===te.component.minSize?null:te.component.minSize>te.size?te.size:te.component.minSize}function U(te){return null===te.size?null:!0===te.component.lockSize?te.size:null===te.component.maxSize?null:te.component.maxSize<te.size?te.size:te.component.maxSize}function ae(te,Fe,X,le){return Fe.reduce((Ae,ne)=>{const Ke=function Se(te,Fe,X,le){return 0===X?{areaSnapshot:Fe,pixelAbsorb:0,percentAfterAbsorption:Fe.sizePercentAtStart,pixelRemain:0}:0===Fe.sizePixelAtStart&&X<0?{areaSnapshot:Fe,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:X}:"percent"===te?function me(te,Fe,X){const Ae=(te.sizePixelAtStart+Fe)/X*100;if(Fe>0){if(null!==te.area.maxSize&&Ae>te.area.maxSize){const ne=te.area.maxSize/100*X;return{areaSnapshot:te,pixelAbsorb:ne,percentAfterAbsorption:te.area.maxSize,pixelRemain:te.sizePixelAtStart+Fe-ne}}return{areaSnapshot:te,pixelAbsorb:Fe,percentAfterAbsorption:Ae>100?100:Ae,pixelRemain:0}}if(Fe<0){if(null!==te.area.minSize&&Ae<te.area.minSize){const ne=te.area.minSize/100*X;return{areaSnapshot:te,pixelAbsorb:ne,percentAfterAbsorption:te.area.minSize,pixelRemain:te.sizePixelAtStart+Fe-ne}}return Ae<0?{areaSnapshot:te,pixelAbsorb:-te.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:Fe+te.sizePixelAtStart}:{areaSnapshot:te,pixelAbsorb:Fe,percentAfterAbsorption:Ae,pixelRemain:0}}}(Fe,X,le):"pixel"===te?function be(te,Fe,X){const le=te.sizePixelAtStart+Fe;return Fe>0?null!==te.area.maxSize&&le>te.area.maxSize?{areaSnapshot:te,pixelAbsorb:te.area.maxSize-te.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:le-te.area.maxSize}:{areaSnapshot:te,pixelAbsorb:Fe,percentAfterAbsorption:-1,pixelRemain:0}:Fe<0?null!==te.area.minSize&&le<te.area.minSize?{areaSnapshot:te,pixelAbsorb:te.area.minSize+Fe-le,percentAfterAbsorption:-1,pixelRemain:le-te.area.minSize}:le<0?{areaSnapshot:te,pixelAbsorb:-te.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Fe+te.sizePixelAtStart}:{areaSnapshot:te,pixelAbsorb:Fe,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(Fe,X):void 0}(te,ne,Ae.remain,le);return Ae.list.push(Ke),Ae.remain=Ke.pixelRemain,Ae},{remain:X,list:[]})}function se(te,Fe){"percent"===te?Fe.areaSnapshot.area.size=Fe.percentAfterAbsorption:"pixel"===te&&null!==Fe.areaSnapshot.area.size&&(Fe.areaSnapshot.area.size=Fe.areaSnapshot.sizePixelAtStart+Fe.pixelAbsorb)}const Me=new i.InjectionToken("angular-split-global-config");let Le=(()=>{class te{constructor(X,le,Ae,ne,Ke){this.ngZone=X,this.elRef=le,this.cdRef=Ae,this.renderer=ne,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 i.EventEmitter(!1),this.dragEnd=new i.EventEmitter(!1),this.gutterClick=new i.EventEmitter(!1),this.gutterDblClick=new i.EventEmitter(!1),this.dragProgressSubject=new m.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.direction=this._direction,this._config=Ke?Object.assign(this._config,Ke):this._config,Object.keys(this._config).forEach(_e=>{this[_e]=this._config[_e]})}set direction(X){this._direction="vertical"===X?"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(X){this._unit="pixel"===X?"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(X){this._gutterSize=k(X,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(X){this._gutterStep=k(X,1)}get gutterStep(){return this._gutterStep}set restrictMove(X){this._restrictMove=b(X)}get restrictMove(){return this._restrictMove}set useTransition(X){this._useTransition=b(X),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(X){this._disabled=b(X),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(X){this._dir="rtl"===X?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(X){this._gutterDblClickDuration=k(X,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new c.y(X=>this.transitionEndSubscriber=X).pipe((0,s.b)(20))}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(X){const le={component:X,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===X.visible?(this.displayedAreas.push(le),this.build(!0,!0)):this.hiddenAreas.push(le)}removeArea(X){if(this.displayedAreas.some(le=>le.component===X)){const le=this.displayedAreas.find(Ae=>Ae.component===X);this.displayedAreas.splice(this.displayedAreas.indexOf(le),1),this.build(!0,!0)}else if(this.hiddenAreas.some(le=>le.component===X)){const le=this.hiddenAreas.find(Ae=>Ae.component===X);this.hiddenAreas.splice(this.hiddenAreas.indexOf(le),1)}}updateArea(X,le,Ae){!0===X.visible&&this.build(le,Ae)}showArea(X){const le=this.hiddenAreas.find(ne=>ne.component===X);if(void 0===le)return;const Ae=this.hiddenAreas.splice(this.hiddenAreas.indexOf(le),1);this.displayedAreas.push(...Ae),this.build(!0,!0)}hideArea(X){const le=this.displayedAreas.find(ne=>ne.component===X);if(void 0===le)return;const Ae=this.displayedAreas.splice(this.displayedAreas.indexOf(le),1);Ae.forEach(ne=>{ne.order=0,ne.size=0}),this.hiddenAreas.push(...Ae),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(X=>null===X.size?"*":X.size)}setVisibleAreaSizes(X){if(X.length!==this.displayedAreas.length)return!1;const le=X.map(ne=>k(ne,null));return!1!==$(this.unit,le)&&(this.displayedAreas.forEach((ne,Ke)=>ne.component._size=le[Ke]),this.build(!1,!0),!0)}build(X,le){if(this.stopDragging(),!0===X&&(this.displayedAreas.every(Ae=>null!==Ae.component.order)&&this.displayedAreas.sort((Ae,ne)=>Ae.component.order-ne.component.order),this.displayedAreas.forEach((Ae,ne)=>{Ae.order=2*ne,Ae.component.setStyleOrder(Ae.order)})),!0===le){const Ae=$(this.unit,this.displayedAreas.map(ne=>ne.component.size));switch(this.unit){case"percent":{const ne=100/this.displayedAreas.length;this.displayedAreas.forEach(Ke=>{Ke.size=Ae?Ke.component.size:ne,Ke.minSize=pe(Ke),Ke.maxSize=U(Ke)});break}case"pixel":if(Ae)this.displayedAreas.forEach(ne=>{ne.size=ne.component.size,ne.minSize=pe(ne),ne.maxSize=U(ne)});else{const ne=this.displayedAreas.filter(Ke=>null===Ke.component.size);if(0===ne.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Ke,_e)=>{Ke.size=0===_e?null:Ke.component.size,Ke.minSize=0===_e?null:pe(Ke),Ke.maxSize=0===_e?null:U(Ke)});else if(ne.length>1){let Ke=!1;this.displayedAreas.forEach(_e=>{null===_e.component.size?!1===Ke?(_e.size=null,_e.minSize=null,_e.maxSize=null,Ke=!0):(_e.size=100,_e.minSize=null,_e.maxSize=null):(_e.size=_e.component.size,_e.minSize=pe(_e),_e.maxSize=U(_e))})}}}}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 X=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(le=>{le.component.setStyleFlex(0,0,`calc( ${le.size}% - ${le.size/100*X}px )`,null!==le.minSize&&le.minSize===le.size,null!==le.maxSize&&le.maxSize===le.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(X=>{null===X.size?X.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?X.component.setStyleFlex(0,0,"100%",!1,!1):X.component.setStyleFlex(0,0,`${X.size}px`,null!==X.minSize&&X.minSize===X.size,null!==X.maxSize&&X.maxSize===X.size)})}clickGutter(X,le){const Ae=d(X);this.startPoint&&A(this.startPoint,Ae,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",le),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",le),this.stopDragging()},this.gutterDblClickDuration))}startDragging(X,le,Ae){X.preventDefault(),X.stopPropagation(),this.startPoint=d(X),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:Ae,lastSteppedOffset:0,allAreasSizePixel:M(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(ne=>{const Ke={area:ne,sizePixelAtStart:M(ne.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?ne.size:-1};ne.order<le?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Ke]:this.snapshot.areasBeforeGutter.unshift(Ke):ne.order>le&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[Ke]):this.snapshot.areasAfterGutter.push(Ke))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((ne,Ke)=>ne+Ke.sizePercentAtStart,0),0!==this.snapshot.areasBeforeGutter.length&&0!==this.snapshot.areasAfterGutter.length&&(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.dragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.dragEvent.bind(this)))}),this.displayedAreas.forEach(ne=>ne.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(X){X.preventDefault(),X.stopPropagation();const le=d(X);if(null!==this._clickTimeout&&!A(this.startPoint,le,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=d(X),null===this.endPoint))return;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.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let Ae="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(Ae=-Ae);const ne=Math.round(Ae/this.gutterStep)*this.gutterStep;if(ne===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=ne;let Ke=ae(this.unit,this.snapshot.areasBeforeGutter,-ne,this.snapshot.allAreasSizePixel),_e=ae(this.unit,this.snapshot.areasAfterGutter,ne,this.snapshot.allAreasSizePixel);if(0!==Ke.remain&&0!==_e.remain?Math.abs(Ke.remain)===Math.abs(_e.remain)||(Math.abs(Ke.remain)>Math.abs(_e.remain)?_e=ae(this.unit,this.snapshot.areasAfterGutter,ne+Ke.remain,this.snapshot.allAreasSizePixel):Ke=ae(this.unit,this.snapshot.areasBeforeGutter,-(ne-_e.remain),this.snapshot.allAreasSizePixel)):0!==Ke.remain?_e=ae(this.unit,this.snapshot.areasAfterGutter,ne+Ke.remain,this.snapshot.allAreasSizePixel):0!==_e.remain&&(Ke=ae(this.unit,this.snapshot.areasBeforeGutter,-(ne-_e.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const tt=[...Ke.list,..._e.list],Ce=tt.find(He=>0!==He.percentAfterAbsorption&&He.percentAfterAbsorption!==He.areaSnapshot.area.minSize&&He.percentAfterAbsorption!==He.areaSnapshot.area.maxSize);Ce&&(Ce.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-tt.filter(He=>He!==Ce).reduce((He,ct)=>He+ct.percentAfterAbsorption,0))}Ke.list.forEach(tt=>se(this.unit,tt)),_e.list.forEach(tt=>se(this.unit,tt)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(X){if(X&&(X.preventDefault(),X.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(le=>le.component.unlockEvents());this.dragListeners.length>0;){const le=this.dragListeners.pop();le&&le()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(X,le){const Ae=this.getVisibleAreaSizes();"start"===X?this.dragStart.emit({gutterNum:le,sizes:Ae}):"end"===X?this.dragEnd.emit({gutterNum:le,sizes:Ae}):"click"===X?this.gutterClick.emit({gutterNum:le,sizes:Ae}):"dblclick"===X?this.gutterDblClick.emit({gutterNum:le,sizes:Ae}):"transitionEnd"===X?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(Ae)):"progress"===X&&this.dragProgressSubject.next({gutterNum:le,sizes:Ae})}ngOnDestroy(){this.stopDragging()}collapseArea(X,le,Ae){const ne=this.displayedAreas.find(tt=>tt.component===X);if(void 0===ne)return;const Ke="right"===Ae?1:-1;ne.sizeBeforeCollapse||(ne.sizeBeforeCollapse=ne.size,ne.gutterBeforeCollapse=Ke),ne.size=le;const _e=this.gutterEls.find(tt=>tt.nativeElement.style.order===`${ne.order+Ke}`);_e&&this.renderer.addClass(_e.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}expandArea(X){const le=this.displayedAreas.find(ne=>ne.component===X);if(void 0===le||!le.sizeBeforeCollapse)return;le.size=le.sizeBeforeCollapse,le.sizeBeforeCollapse=null;const Ae=this.gutterEls.find(ne=>ne.nativeElement.style.order===`${le.order+le.gutterBeforeCollapse}`);Ae&&this.renderer.removeClass(Ae.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}}return te.\u0275fac=function(X){return new(X||te)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Me,8))},te.\u0275cmp=i.\u0275\u0275defineComponent({type:te,selectors:[["as-split"]],viewQuery:function(X,le){if(1&X&&i.\u0275\u0275viewQuery(_,5),2&X){let Ae;i.\u0275\u0275queryRefresh(Ae=i.\u0275\u0275loadQuery())&&(le.gutterEls=Ae)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:S,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","as-split-gutter",3,"flex-basis","order","mousedown","touchstart","mouseup","touchend",4,"ngIf"],[1,"as-split-gutter",3,"mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(X,le){1&X&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,T,1,1,"ng-template",0)),2&X&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",le.displayedAreas))},directives:[u.NgForOf,u.NgIf],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%]{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}.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()}.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}),te})(),qe=(()=>{class te{constructor(X,le,Ae,ne){this.ngZone=X,this.elRef=le,this.renderer=Ae,this.split=ne,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(X){this._order=k(X,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(X){this._size=k(X,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(X){this._minSize=k(X,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(X){this._maxSize=k(X,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(X){this._lockSize=b(X),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(X){this._visible=b(X),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}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",X=>{"flex-basis"===X.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(X){this.renderer.setStyle(this.elRef.nativeElement,"order",X)}setStyleFlex(X,le,Ae,ne,Ke){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",X),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",le),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",Ae),!0===ne?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Ke?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 X=this.lockListeners.pop();X&&X()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(X=0,le="right"){this.split.collapseArea(this,X,le)}expand(){this.split.expandArea(this)}}return te.\u0275fac=function(X){return new(X||te)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Le))},te.\u0275dir=i.\u0275\u0275defineDirective({type:te,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),te})(),at=(()=>{class te{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:te,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:te,providers:[]}}}return te.\u0275fac=function(X){return new(X||te)},te.\u0275mod=i.\u0275\u0275defineNgModule({type:te}),te.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),te})()},2290:(Ve,g,l)=>{"use strict";l.r(g),l.d(g,{BasePortalHost:()=>se,ComponentPortal:()=>be,DefaultGlobalConfig:()=>_e,DefaultNoAnimationsGlobalConfig:()=>ct,DefaultNoComponentGlobalConfig:()=>Le,Overlay:()=>Ae,OverlayContainer:()=>le,OverlayRef:()=>X,TOAST_CONFIG:()=>qe,Toast:()=>Ke,ToastContainerDirective:()=>Se,ToastContainerModule:()=>me,ToastInjector:()=>te,ToastNoAnimation:()=>He,ToastNoAnimationModule:()=>bt,ToastPackage:()=>Me,ToastRef:()=>at,ToastrComponentlessModule:()=>Ce,ToastrModule:()=>tt,ToastrService:()=>ne});var i=l(5e3),u=l(1777),m=l(6758),c=l(9808),s=l(2313);const _=["toast-component",""];function D(Be,Xe){if(1&Be){const J=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(J),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function T(Be,Xe){if(1&Be&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Be){const J=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",J.duplicatesCount+1,"]")}}function S(Be,Xe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,T,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Be){const J=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(J.options.titleClass),i.\u0275\u0275attribute("aria-label",J.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",J.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",J.duplicatesCount)}}function d(Be,Xe){if(1&Be&&i.\u0275\u0275element(0,"div",7),2&Be){const J=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(J.options.messageClass),i.\u0275\u0275property("innerHTML",J.message,i.\u0275\u0275sanitizeHtml)}}function A(Be,Xe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Be){const J=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(J.options.messageClass),i.\u0275\u0275attribute("aria-label",J.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",J.message," ")}}function M(Be,Xe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Be){const J=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",J.width+"%")}}function b(Be,Xe){if(1&Be){const J=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(J),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function k(Be,Xe){if(1&Be&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Be){const J=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",J.duplicatesCount+1,"]")}}function $(Be,Xe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,k,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Be){const J=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(J.options.titleClass),i.\u0275\u0275attribute("aria-label",J.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",J.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",J.duplicatesCount)}}function pe(Be,Xe){if(1&Be&&i.\u0275\u0275element(0,"div",7),2&Be){const J=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(J.options.messageClass),i.\u0275\u0275property("innerHTML",J.message,i.\u0275\u0275sanitizeHtml)}}function U(Be,Xe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Be){const J=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(J.options.messageClass),i.\u0275\u0275attribute("aria-label",J.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",J.message," ")}}function ae(Be,Xe){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Be){const J=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",J.width+"%")}}let Se=(()=>{class Be{constructor(J){this.el=J}getContainerElement(){return this.el.nativeElement}}return Be.\u0275fac=function(J){return new(J||Be)(i.\u0275\u0275directiveInject(i.ElementRef))},Be.\u0275dir=i.\u0275\u0275defineDirective({type:Be,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Be})(),me=(()=>{class Be{}return Be.\u0275fac=function(J){return new(J||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({}),Be})();class be{constructor(Xe,J){this.component=Xe,this.injector=J}attach(Xe,J){return this._attachedHost=Xe,Xe.attach(this,J)}detach(){const Xe=this._attachedHost;if(Xe)return this._attachedHost=void 0,Xe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Xe){this._attachedHost=Xe}}class se{attach(Xe,J){return this._attachedPortal=Xe,this.attachComponentPortal(Xe,J)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Xe){this._disposeFn=Xe}}class Me{constructor(Xe,J,ge,Ie,Re,ye){this.toastId=Xe,this.config=J,this.message=ge,this.title=Ie,this.toastType=Re,this.toastRef=ye,this._onTap=new m.x,this._onAction=new m.x,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(Xe){this._onAction.next(Xe)}onAction(){return this._onAction.asObservable()}}const Le={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",payload:null},qe=new i.InjectionToken("ToastConfig");class at{constructor(Xe){this._overlayRef=Xe,this.duplicatesCount=0,this._afterClosed=new m.x,this._activate=new m.x,this._manualClose=new m.x,this._resetTimeout=new m.x,this._countDuplicate=new m.x}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(Xe,J){Xe&&this._resetTimeout.next(),J&&this._countDuplicate.next(++this.duplicatesCount)}}class te{constructor(Xe,J){this._toastPackage=Xe,this._parentInjector=J}get(Xe,J,ge){return Xe===Me?this._toastPackage:this._parentInjector.get(Xe,J,ge)}}class Fe extends se{constructor(Xe,J,ge){super(),this._hostDomElement=Xe,this._componentFactoryResolver=J,this._appRef=ge}attachComponentPortal(Xe,J){const ge=this._componentFactoryResolver.resolveComponentFactory(Xe.component);let Ie;return Ie=ge.create(Xe.injector),this._appRef.attachView(Ie.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ie.hostView),Ie.destroy()}),J?this._hostDomElement.insertBefore(this._getComponentRootNode(Ie),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ie)),Ie}_getComponentRootNode(Xe){return Xe.hostView.rootNodes[0]}}class X{constructor(Xe){this._portalHost=Xe}attach(Xe,J=!0){return this._portalHost.attach(Xe,J)}detach(){return this._portalHost.detach()}}let le=(()=>{class Be{constructor(J){this._document=J}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const J=this._document.createElement("div");J.classList.add("overlay-container"),this._document.body.appendChild(J),this._containerElement=J}}return Be.\u0275fac=function(J){return new(J||Be)(i.\u0275\u0275inject(c.DOCUMENT))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),Ae=(()=>{class Be{constructor(J,ge,Ie,Re){this._overlayContainer=J,this._componentFactoryResolver=ge,this._appRef=Ie,this._document=Re,this._paneElements=new Map}create(J,ge){return this._createOverlayRef(this.getPaneElement(J,ge))}getPaneElement(J="",ge){return this._paneElements.get(ge)||this._paneElements.set(ge,{}),this._paneElements.get(ge)[J]||(this._paneElements.get(ge)[J]=this._createPaneElement(J,ge)),this._paneElements.get(ge)[J]}_createPaneElement(J,ge){const Ie=this._document.createElement("div");return Ie.id="toast-container",Ie.classList.add(J),Ie.classList.add("toast-container"),ge?ge.getContainerElement().appendChild(Ie):this._overlayContainer.getContainerElement().appendChild(Ie),Ie}_createPortalHost(J){return new Fe(J,this._componentFactoryResolver,this._appRef)}_createOverlayRef(J){return new X(this._createPortalHost(J))}}return Be.\u0275fac=function(J){return new(J||Be)(i.\u0275\u0275inject(le),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(c.DOCUMENT))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),ne=(()=>{class Be{constructor(J,ge,Ie,Re,ye){this.overlay=ge,this._injector=Ie,this.sanitizer=Re,this.ngZone=ye,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},J.default),J.config),J.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},J.default.iconClasses),J.config.iconClasses))}show(J,ge,Ie={},Re=""){return this._preBuildNotification(Re,J,ge,this.applyConfig(Ie))}success(J,ge,Ie={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",J,ge,this.applyConfig(Ie))}error(J,ge,Ie={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",J,ge,this.applyConfig(Ie))}info(J,ge,Ie={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",J,ge,this.applyConfig(Ie))}warning(J,ge,Ie={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",J,ge,this.applyConfig(Ie))}clear(J){for(const ge of this.toasts)if(void 0!==J){if(ge.toastId===J)return void ge.toastRef.manualClose()}else ge.toastRef.manualClose()}remove(J){const ge=this._findToast(J);if(!ge||(ge.activeToast.toastRef.close(),this.toasts.splice(ge.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 Ie=this.toasts[this.currentlyActive].toastRef;Ie.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ie.activate())}return!0}findDuplicate(J="",ge="",Ie,Re){const{includeTitleDuplicates:ye}=this.toastrConfig;for(const Je of this.toasts){const mt=ye&&Je.title===J;if((!ye||mt)&&Je.message===ge)return Je.toastRef.onDuplicate(Ie,Re),Je}return null}applyConfig(J={}){return Object.assign(Object.assign({},this.toastrConfig),J)}_findToast(J){for(let ge=0;ge<this.toasts.length;ge++)if(this.toasts[ge].toastId===J)return{index:ge,activeToast:this.toasts[ge]};return null}_preBuildNotification(J,ge,Ie,Re){return Re.onActivateTick?this.ngZone.run(()=>this._buildNotification(J,ge,Ie,Re)):this._buildNotification(J,ge,Ie,Re)}_buildNotification(J,ge,Ie,Re){if(!Re.toastComponent)throw new Error("toastComponent required");const ye=this.findDuplicate(Ie,ge,this.toastrConfig.resetTimeoutOnDuplicate&&Re.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ie||ge)&&this.toastrConfig.preventDuplicates&&null!==ye)return ye;this.previousToastMessage=ge;let Je=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Je=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const mt=this.overlay.create(Re.positionClass,this.overlayContainer);this.index=this.index+1;let yt=ge;ge&&Re.enableHtml&&(yt=this.sanitizer.sanitize(i.SecurityContext.HTML,ge));const It=new at(mt),ut=new Me(this.index,Re,yt,Ie,J,It),Ge=new te(ut,this._injector),L=new be(Re.toastComponent,Ge),re=mt.attach(L,this.toastrConfig.newestOnTop);It.componentInstance=re.instance;const Oe={toastId:this.index,title:Ie||"",message:ge||"",toastRef:It,onShown:It.afterActivate(),onHidden:It.afterClosed(),onTap:ut.onTap(),onAction:ut.onAction(),portal:re};return Je||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Oe.toastRef.activate()})),this.toasts.push(Oe),Oe}}return Be.\u0275fac=function(J){return new(J||Be)(i.\u0275\u0275inject(qe),i.\u0275\u0275inject(Ae),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(s.DomSanitizer),i.\u0275\u0275inject(i.NgZone))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),Ke=(()=>{class Be{constructor(J,ge,Ie){this.toastrService=J,this.toastPackage=ge,this.ngZone=Ie,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=ge.message,this.title=ge.title,this.options=ge.config,this.originalTimeout=ge.config.timeOut,this.toastClasses=`${ge.toastType} ${ge.config.toastClass}`,this.sub=ge.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ge.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ge.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ge.toastRef.countDuplicate().subscribe(Re=>{this.duplicatesCount=Re})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},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 J=(new Date).getTime();this.width=(this.hideTime-J)/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=Object.assign(Object.assign({},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=Object.assign(Object.assign({},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&&(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(J,ge){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(J),ge)):this.timeout=setTimeout(()=>J(),ge)}outsideInterval(J,ge){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(J),ge)):this.intervalId=setInterval(()=>J(),ge)}runInsideAngular(J){this.ngZone?this.ngZone.run(()=>J()):J()}}return Be.\u0275fac=function(J){return new(J||Be)(i.\u0275\u0275directiveInject(ne),i.\u0275\u0275directiveInject(Me),i.\u0275\u0275directiveInject(i.NgZone))},Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(J,ge){1&J&&i.\u0275\u0275listener("click",function(){return ge.tapToast()})("mouseenter",function(){return ge.stickAround()})("mouseleave",function(){return ge.delayedHideToast()}),2&J&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",ge.state),i.\u0275\u0275classMap(ge.toastClasses),i.\u0275\u0275styleProp("display",ge.displayStyle))},attrs:_,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(J,ge){1&J&&(i.\u0275\u0275template(0,D,3,0,"button",0),i.\u0275\u0275template(1,S,3,5,"div",1),i.\u0275\u0275template(2,d,1,3,"div",2),i.\u0275\u0275template(3,A,2,4,"div",3),i.\u0275\u0275template(4,M,2,2,"div",4)),2&J&&(i.\u0275\u0275property("ngIf",ge.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ge.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ge.message&&ge.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ge.message&&!ge.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ge.options.progressBar))},directives:[c.NgIf],encapsulation:2,data:{animation:[(0,u.X$)("flyInOut",[(0,u.SB)("inactive",(0,u.oB)({opacity:0})),(0,u.SB)("active",(0,u.oB)({opacity:1})),(0,u.SB)("removed",(0,u.oB)({opacity:0})),(0,u.eR)("inactive => active",(0,u.jt)("{{ easeTime }}ms {{ easing }}")),(0,u.eR)("active => removed",(0,u.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Be})();const _e=Object.assign(Object.assign({},Le),{toastComponent:Ke});let tt=(()=>{class Be{static forRoot(J={}){return{ngModule:Be,providers:[{provide:qe,useValue:{default:_e,config:J}}]}}}return Be.\u0275fac=function(J){return new(J||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Be})(),Ce=(()=>{class Be{static forRoot(J={}){return{ngModule:tt,providers:[{provide:qe,useValue:{default:Le,config:J}}]}}}return Be.\u0275fac=function(J){return new(J||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Be})(),He=(()=>{class Be{constructor(J,ge,Ie){this.toastrService=J,this.toastPackage=ge,this.appRef=Ie,this.width=-1,this.toastClasses="",this.state="inactive",this.message=ge.message,this.title=ge.title,this.options=ge.config,this.originalTimeout=ge.config.timeOut,this.toastClasses=`${ge.toastType} ${ge.config.toastClass}`,this.sub=ge.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ge.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ge.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ge.toastRef.countDuplicate().subscribe(Re=>{this.duplicatesCount=Re})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const J=(new Date).getTime();this.width=(this.hideTime-J)/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="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(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||(this.timeout=setTimeout(()=>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.intervalId=setInterval(()=>this.updateProgress(),10)))}}return Be.\u0275fac=function(J){return new(J||Be)(i.\u0275\u0275directiveInject(ne),i.\u0275\u0275directiveInject(Me),i.\u0275\u0275directiveInject(i.ApplicationRef))},Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(J,ge){1&J&&i.\u0275\u0275listener("click",function(){return ge.tapToast()})("mouseenter",function(){return ge.stickAround()})("mouseleave",function(){return ge.delayedHideToast()}),2&J&&(i.\u0275\u0275classMap(ge.toastClasses),i.\u0275\u0275styleProp("display",ge.displayStyle))},attrs:_,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(J,ge){1&J&&(i.\u0275\u0275template(0,b,3,0,"button",0),i.\u0275\u0275template(1,$,3,5,"div",1),i.\u0275\u0275template(2,pe,1,3,"div",2),i.\u0275\u0275template(3,U,2,4,"div",3),i.\u0275\u0275template(4,ae,2,2,"div",4)),2&J&&(i.\u0275\u0275property("ngIf",ge.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ge.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ge.message&&ge.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ge.message&&!ge.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ge.options.progressBar))},directives:[c.NgIf],encapsulation:2}),Be})();const ct=Object.assign(Object.assign({},Le),{toastComponent:He});let bt=(()=>{class Be{static forRoot(J={}){return{ngModule:Be,providers:[{provide:qe,useValue:{default:ct,config:J}}]}}}return Be.\u0275fac=function(J){return new(J||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Be})()},4147:Ve=>{"use strict";Ve.exports=JSON.parse('{"name":"@sdkgen/playground","version":"2.0.0","description":"","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/sdkgen/sdkgen.git"},"publishConfig":{"access":"public"},"scripts":{"eslint:fix":"eslint --fix \'src/**/*.{t,j}s\'","eslint:check":"eslint \'src/**/*.{t,j}s\'","ng":"ng","start":"ng serve","build":"ng build","build:stats":"ng build --stats-json","analyze":"webpack-bundle-analyzer dist/stats.json","watch":"ng build --watch --configuration development"},"dependencies":{"@sdkgen/browser-runtime":"2.0.0","@sdkgen/csharp-generator":"2.0.0","@sdkgen/dart-generator":"2.0.0","@sdkgen/fsharp-generator":"2.0.0","@sdkgen/kotlin-generator":"2.0.0","@sdkgen/parser":"2.0.0","@sdkgen/swift-generator":"2.0.0","@sdkgen/typescript-generator":"2.0.0"},"devDependencies":{"@angular-devkit/build-angular":"~13.2.0","@angular/animations":"~13.2.0","@angular/cdk":"~13.2.0","@angular/cli":"~13.2.0","@angular/common":"~13.2.0","@angular/compiler":"~13.2.0","@angular/compiler-cli":"~13.2.0","@angular/core":"~13.2.0","@angular/forms":"~13.2.0","@angular/material":"~13.2.0","@angular/platform-browser":"~13.2.0","@angular/platform-browser-dynamic":"~13.2.0","@angular/router":"~13.2.0","@cubos/eslint-config":"^1.0.553260","@materia-ui/ngx-monaco-editor":"^6.0.0","@types/file-saver":"^2.0.3","@types/node":"^16.0.0","angular-split":"^13.0.0","file-saver":"^2.0.5","json":"^11.0.0","monaco-editor":"^0.32.0","ngx-json-viewer":"^3.0.2","ngx-toastr":"^14.2.1","rxjs":"~7.5.2","typescript":"~4.5.4","webpack-bundle-analyzer":"^4.5.0","zone.js":"~0.11.4"}}')}},Ve=>{Ve(Ve.s=4431)}]);